| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867328683286932870328713287232873328743287532876328773287832879328803288132882328833288432885328863288732888328893289032891328923289332894328953289632897328983289932900329013290232903329043290532906329073290832909329103291132912329133291432915329163291732918329193292032921329223292332924329253292632927329283292932930329313293232933329343293532936329373293832939329403294132942329433294432945329463294732948329493295032951329523295332954329553295632957329583295932960329613296232963329643296532966329673296832969329703297132972329733297432975329763297732978329793298032981329823298332984329853298632987329883298932990329913299232993329943299532996329973299832999330003300133002330033300433005330063300733008330093301033011330123301333014330153301633017330183301933020330213302233023330243302533026330273302833029330303303133032330333303433035330363303733038330393304033041330423304333044330453304633047330483304933050330513305233053330543305533056330573305833059330603306133062330633306433065330663306733068330693307033071330723307333074330753307633077330783307933080330813308233083330843308533086330873308833089330903309133092330933309433095330963309733098330993310033101331023310333104331053310633107331083310933110331113311233113331143311533116331173311833119331203312133122331233312433125331263312733128331293313033131331323313333134331353313633137331383313933140331413314233143331443314533146331473314833149331503315133152331533315433155331563315733158331593316033161331623316333164331653316633167331683316933170331713317233173331743317533176331773317833179331803318133182331833318433185331863318733188331893319033191331923319333194331953319633197331983319933200332013320233203332043320533206332073320833209332103321133212332133321433215332163321733218332193322033221332223322333224332253322633227332283322933230332313323233233332343323533236332373323833239332403324133242332433324433245332463324733248332493325033251332523325333254332553325633257332583325933260332613326233263332643326533266332673326833269332703327133272332733327433275332763327733278332793328033281332823328333284332853328633287332883328933290332913329233293332943329533296332973329833299333003330133302333033330433305333063330733308333093331033311333123331333314333153331633317333183331933320333213332233323333243332533326333273332833329333303333133332333333333433335333363333733338333393334033341333423334333344333453334633347333483334933350333513335233353333543335533356333573335833359333603336133362333633336433365333663336733368333693337033371333723337333374333753337633377333783337933380333813338233383333843338533386333873338833389333903339133392333933339433395333963339733398333993340033401334023340333404334053340633407334083340933410334113341233413334143341533416334173341833419334203342133422334233342433425334263342733428334293343033431334323343333434334353343633437334383343933440334413344233443334443344533446334473344833449334503345133452334533345433455334563345733458334593346033461334623346333464334653346633467334683346933470334713347233473334743347533476334773347833479334803348133482334833348433485334863348733488334893349033491334923349333494334953349633497334983349933500335013350233503335043350533506335073350833509335103351133512335133351433515335163351733518335193352033521335223352333524335253352633527335283352933530335313353233533335343353533536335373353833539335403354133542335433354433545335463354733548335493355033551335523355333554335553355633557335583355933560335613356233563335643356533566335673356833569335703357133572335733357433575335763357733578335793358033581335823358333584335853358633587335883358933590335913359233593335943359533596335973359833599336003360133602336033360433605336063360733608336093361033611336123361333614336153361633617336183361933620336213362233623336243362533626336273362833629336303363133632336333363433635336363363733638336393364033641336423364333644336453364633647336483364933650336513365233653336543365533656336573365833659336603366133662336633366433665336663366733668336693367033671336723367333674336753367633677336783367933680336813368233683336843368533686336873368833689336903369133692336933369433695336963369733698336993370033701337023370333704337053370633707337083370933710337113371233713337143371533716337173371833719337203372133722337233372433725337263372733728337293373033731337323373333734337353373633737337383373933740337413374233743337443374533746337473374833749337503375133752337533375433755337563375733758337593376033761337623376333764337653376633767337683376933770337713377233773337743377533776337773377833779337803378133782337833378433785337863378733788337893379033791337923379333794337953379633797337983379933800338013380233803338043380533806338073380833809338103381133812338133381433815338163381733818338193382033821338223382333824338253382633827338283382933830338313383233833338343383533836338373383833839338403384133842338433384433845338463384733848338493385033851338523385333854338553385633857338583385933860338613386233863338643386533866338673386833869338703387133872338733387433875338763387733878338793388033881338823388333884338853388633887338883388933890338913389233893338943389533896338973389833899339003390133902339033390433905339063390733908339093391033911339123391333914339153391633917339183391933920339213392233923339243392533926339273392833929339303393133932339333393433935339363393733938339393394033941339423394333944339453394633947339483394933950339513395233953339543395533956339573395833959339603396133962339633396433965339663396733968339693397033971339723397333974339753397633977339783397933980339813398233983339843398533986339873398833989339903399133992339933399433995339963399733998339993400034001340023400334004340053400634007340083400934010340113401234013340143401534016340173401834019340203402134022340233402434025340263402734028340293403034031340323403334034340353403634037340383403934040340413404234043340443404534046340473404834049340503405134052340533405434055340563405734058340593406034061340623406334064340653406634067340683406934070340713407234073340743407534076340773407834079340803408134082340833408434085340863408734088340893409034091340923409334094340953409634097340983409934100341013410234103341043410534106341073410834109341103411134112341133411434115341163411734118341193412034121341223412334124341253412634127341283412934130341313413234133341343413534136341373413834139341403414134142341433414434145341463414734148341493415034151341523415334154341553415634157341583415934160341613416234163341643416534166341673416834169341703417134172341733417434175341763417734178341793418034181341823418334184341853418634187341883418934190341913419234193341943419534196341973419834199342003420134202342033420434205342063420734208342093421034211342123421334214342153421634217342183421934220342213422234223342243422534226342273422834229342303423134232342333423434235342363423734238342393424034241342423424334244342453424634247342483424934250342513425234253342543425534256342573425834259342603426134262342633426434265342663426734268342693427034271342723427334274342753427634277342783427934280342813428234283342843428534286342873428834289342903429134292342933429434295342963429734298342993430034301343023430334304343053430634307343083430934310343113431234313343143431534316343173431834319343203432134322343233432434325343263432734328343293433034331343323433334334343353433634337343383433934340343413434234343343443434534346343473434834349343503435134352343533435434355343563435734358343593436034361343623436334364343653436634367343683436934370343713437234373343743437534376343773437834379343803438134382343833438434385343863438734388343893439034391343923439334394343953439634397343983439934400344013440234403344043440534406344073440834409344103441134412344133441434415344163441734418344193442034421344223442334424344253442634427344283442934430344313443234433344343443534436344373443834439344403444134442344433444434445344463444734448344493445034451344523445334454344553445634457344583445934460344613446234463344643446534466344673446834469344703447134472344733447434475344763447734478344793448034481344823448334484344853448634487344883448934490344913449234493344943449534496344973449834499345003450134502345033450434505345063450734508345093451034511345123451334514345153451634517345183451934520345213452234523345243452534526345273452834529345303453134532345333453434535345363453734538345393454034541345423454334544345453454634547345483454934550345513455234553345543455534556345573455834559345603456134562345633456434565345663456734568345693457034571345723457334574345753457634577345783457934580345813458234583345843458534586345873458834589345903459134592345933459434595345963459734598345993460034601346023460334604346053460634607346083460934610346113461234613346143461534616346173461834619346203462134622346233462434625346263462734628346293463034631346323463334634346353463634637346383463934640346413464234643346443464534646346473464834649346503465134652346533465434655346563465734658346593466034661346623466334664346653466634667346683466934670346713467234673346743467534676346773467834679346803468134682346833468434685346863468734688346893469034691346923469334694346953469634697346983469934700347013470234703347043470534706347073470834709347103471134712347133471434715347163471734718347193472034721347223472334724347253472634727347283472934730347313473234733347343473534736347373473834739347403474134742347433474434745347463474734748347493475034751347523475334754347553475634757347583475934760347613476234763347643476534766347673476834769347703477134772347733477434775347763477734778347793478034781347823478334784347853478634787347883478934790347913479234793347943479534796347973479834799348003480134802348033480434805348063480734808348093481034811348123481334814348153481634817348183481934820348213482234823348243482534826348273482834829348303483134832348333483434835348363483734838348393484034841348423484334844348453484634847348483484934850348513485234853348543485534856348573485834859348603486134862348633486434865348663486734868348693487034871348723487334874348753487634877348783487934880348813488234883348843488534886348873488834889348903489134892348933489434895348963489734898348993490034901349023490334904349053490634907349083490934910349113491234913349143491534916349173491834919349203492134922349233492434925349263492734928349293493034931349323493334934349353493634937349383493934940349413494234943349443494534946349473494834949349503495134952349533495434955349563495734958349593496034961349623496334964349653496634967349683496934970349713497234973349743497534976349773497834979349803498134982349833498434985349863498734988349893499034991349923499334994349953499634997349983499935000350013500235003350043500535006350073500835009350103501135012350133501435015350163501735018350193502035021350223502335024350253502635027350283502935030350313503235033350343503535036350373503835039350403504135042350433504435045350463504735048350493505035051350523505335054350553505635057350583505935060350613506235063350643506535066350673506835069350703507135072350733507435075350763507735078350793508035081350823508335084350853508635087350883508935090350913509235093350943509535096350973509835099351003510135102351033510435105351063510735108351093511035111351123511335114351153511635117351183511935120351213512235123351243512535126351273512835129351303513135132351333513435135351363513735138351393514035141351423514335144351453514635147351483514935150351513515235153351543515535156351573515835159351603516135162351633516435165351663516735168351693517035171351723517335174351753517635177351783517935180351813518235183351843518535186351873518835189351903519135192351933519435195351963519735198351993520035201352023520335204352053520635207352083520935210352113521235213352143521535216352173521835219352203522135222352233522435225352263522735228352293523035231352323523335234352353523635237352383523935240352413524235243352443524535246352473524835249352503525135252352533525435255352563525735258352593526035261352623526335264352653526635267352683526935270352713527235273352743527535276352773527835279352803528135282352833528435285352863528735288352893529035291352923529335294352953529635297352983529935300353013530235303353043530535306353073530835309353103531135312353133531435315353163531735318353193532035321353223532335324353253532635327353283532935330353313533235333353343533535336353373533835339353403534135342353433534435345353463534735348353493535035351353523535335354353553535635357353583535935360353613536235363353643536535366353673536835369353703537135372353733537435375353763537735378353793538035381353823538335384353853538635387353883538935390353913539235393353943539535396353973539835399354003540135402354033540435405354063540735408354093541035411354123541335414354153541635417354183541935420354213542235423354243542535426354273542835429354303543135432354333543435435354363543735438354393544035441354423544335444354453544635447354483544935450354513545235453354543545535456354573545835459354603546135462354633546435465354663546735468354693547035471354723547335474354753547635477354783547935480354813548235483354843548535486354873548835489354903549135492354933549435495354963549735498354993550035501355023550335504355053550635507355083550935510355113551235513355143551535516355173551835519355203552135522355233552435525355263552735528355293553035531355323553335534355353553635537355383553935540355413554235543355443554535546355473554835549355503555135552355533555435555355563555735558355593556035561355623556335564355653556635567355683556935570355713557235573355743557535576355773557835579355803558135582355833558435585355863558735588355893559035591355923559335594355953559635597355983559935600356013560235603356043560535606356073560835609356103561135612356133561435615356163561735618356193562035621356223562335624356253562635627356283562935630356313563235633356343563535636356373563835639356403564135642356433564435645356463564735648356493565035651356523565335654356553565635657356583565935660356613566235663356643566535666356673566835669356703567135672356733567435675356763567735678356793568035681356823568335684356853568635687356883568935690356913569235693356943569535696356973569835699357003570135702357033570435705357063570735708357093571035711357123571335714357153571635717357183571935720357213572235723357243572535726357273572835729357303573135732357333573435735357363573735738357393574035741357423574335744357453574635747357483574935750357513575235753357543575535756357573575835759357603576135762357633576435765357663576735768357693577035771357723577335774357753577635777357783577935780357813578235783357843578535786357873578835789357903579135792357933579435795357963579735798357993580035801358023580335804358053580635807358083580935810358113581235813358143581535816358173581835819358203582135822358233582435825358263582735828358293583035831358323583335834358353583635837358383583935840358413584235843358443584535846358473584835849358503585135852358533585435855358563585735858358593586035861358623586335864358653586635867358683586935870358713587235873358743587535876358773587835879358803588135882358833588435885358863588735888358893589035891358923589335894358953589635897358983589935900359013590235903359043590535906359073590835909359103591135912359133591435915359163591735918359193592035921359223592335924359253592635927359283592935930359313593235933359343593535936359373593835939359403594135942359433594435945359463594735948359493595035951359523595335954359553595635957359583595935960359613596235963359643596535966359673596835969359703597135972359733597435975359763597735978359793598035981359823598335984359853598635987359883598935990359913599235993359943599535996359973599835999360003600136002360033600436005360063600736008360093601036011360123601336014360153601636017360183601936020360213602236023360243602536026360273602836029360303603136032360333603436035360363603736038360393604036041360423604336044360453604636047360483604936050360513605236053360543605536056360573605836059360603606136062360633606436065360663606736068360693607036071360723607336074360753607636077360783607936080360813608236083360843608536086360873608836089360903609136092360933609436095360963609736098360993610036101361023610336104361053610636107361083610936110361113611236113361143611536116361173611836119361203612136122361233612436125361263612736128361293613036131361323613336134361353613636137361383613936140361413614236143361443614536146361473614836149361503615136152361533615436155361563615736158361593616036161361623616336164361653616636167361683616936170361713617236173361743617536176361773617836179361803618136182361833618436185361863618736188361893619036191361923619336194361953619636197361983619936200362013620236203362043620536206362073620836209362103621136212362133621436215362163621736218362193622036221362223622336224362253622636227362283622936230362313623236233362343623536236362373623836239362403624136242362433624436245362463624736248362493625036251362523625336254362553625636257362583625936260362613626236263362643626536266362673626836269362703627136272362733627436275362763627736278362793628036281362823628336284362853628636287362883628936290362913629236293362943629536296362973629836299363003630136302363033630436305363063630736308363093631036311363123631336314363153631636317363183631936320363213632236323363243632536326363273632836329363303633136332363333633436335363363633736338363393634036341363423634336344363453634636347363483634936350363513635236353363543635536356363573635836359363603636136362363633636436365363663636736368363693637036371363723637336374363753637636377363783637936380363813638236383363843638536386363873638836389363903639136392363933639436395363963639736398363993640036401364023640336404364053640636407364083640936410364113641236413364143641536416364173641836419364203642136422364233642436425364263642736428364293643036431364323643336434364353643636437364383643936440364413644236443364443644536446364473644836449364503645136452364533645436455364563645736458364593646036461364623646336464364653646636467364683646936470364713647236473364743647536476364773647836479364803648136482364833648436485364863648736488364893649036491364923649336494364953649636497364983649936500365013650236503365043650536506365073650836509365103651136512365133651436515365163651736518365193652036521365223652336524365253652636527365283652936530365313653236533365343653536536365373653836539365403654136542365433654436545365463654736548365493655036551365523655336554365553655636557365583655936560365613656236563365643656536566365673656836569365703657136572365733657436575365763657736578365793658036581365823658336584365853658636587365883658936590365913659236593365943659536596365973659836599366003660136602366033660436605366063660736608366093661036611366123661336614366153661636617366183661936620366213662236623366243662536626366273662836629366303663136632366333663436635366363663736638366393664036641366423664336644366453664636647366483664936650366513665236653366543665536656366573665836659366603666136662366633666436665366663666736668366693667036671366723667336674366753667636677366783667936680366813668236683366843668536686366873668836689366903669136692366933669436695366963669736698366993670036701367023670336704367053670636707367083670936710367113671236713367143671536716367173671836719367203672136722367233672436725367263672736728367293673036731367323673336734367353673636737367383673936740367413674236743367443674536746367473674836749367503675136752367533675436755367563675736758367593676036761367623676336764367653676636767367683676936770367713677236773367743677536776367773677836779367803678136782367833678436785367863678736788367893679036791367923679336794367953679636797367983679936800368013680236803368043680536806368073680836809368103681136812368133681436815368163681736818368193682036821368223682336824368253682636827368283682936830368313683236833368343683536836368373683836839368403684136842368433684436845368463684736848368493685036851368523685336854368553685636857368583685936860368613686236863368643686536866368673686836869368703687136872368733687436875368763687736878368793688036881368823688336884368853688636887368883688936890368913689236893368943689536896368973689836899369003690136902369033690436905369063690736908369093691036911369123691336914369153691636917369183691936920369213692236923369243692536926369273692836929369303693136932369333693436935369363693736938369393694036941369423694336944369453694636947369483694936950369513695236953369543695536956369573695836959369603696136962369633696436965369663696736968369693697036971369723697336974369753697636977369783697936980369813698236983369843698536986369873698836989369903699136992369933699436995369963699736998369993700037001370023700337004370053700637007370083700937010370113701237013370143701537016370173701837019370203702137022370233702437025370263702737028370293703037031370323703337034370353703637037370383703937040370413704237043370443704537046370473704837049370503705137052370533705437055370563705737058370593706037061370623706337064370653706637067370683706937070370713707237073370743707537076370773707837079370803708137082370833708437085370863708737088370893709037091370923709337094370953709637097370983709937100371013710237103371043710537106371073710837109371103711137112371133711437115371163711737118371193712037121371223712337124371253712637127371283712937130371313713237133371343713537136371373713837139371403714137142371433714437145371463714737148371493715037151371523715337154371553715637157371583715937160371613716237163371643716537166371673716837169371703717137172371733717437175371763717737178371793718037181371823718337184371853718637187371883718937190371913719237193371943719537196371973719837199372003720137202372033720437205372063720737208372093721037211372123721337214372153721637217372183721937220372213722237223372243722537226372273722837229372303723137232372333723437235372363723737238372393724037241372423724337244372453724637247372483724937250372513725237253372543725537256372573725837259372603726137262372633726437265372663726737268372693727037271372723727337274372753727637277372783727937280372813728237283372843728537286372873728837289372903729137292372933729437295372963729737298372993730037301373023730337304373053730637307373083730937310373113731237313373143731537316373173731837319373203732137322373233732437325373263732737328373293733037331373323733337334373353733637337373383733937340373413734237343373443734537346373473734837349373503735137352373533735437355373563735737358373593736037361373623736337364373653736637367373683736937370373713737237373373743737537376373773737837379373803738137382373833738437385373863738737388373893739037391373923739337394373953739637397373983739937400374013740237403374043740537406374073740837409374103741137412374133741437415374163741737418374193742037421374223742337424374253742637427374283742937430374313743237433374343743537436374373743837439374403744137442374433744437445374463744737448374493745037451374523745337454374553745637457374583745937460374613746237463374643746537466374673746837469374703747137472374733747437475374763747737478374793748037481374823748337484374853748637487374883748937490374913749237493374943749537496374973749837499375003750137502375033750437505375063750737508375093751037511375123751337514375153751637517375183751937520375213752237523375243752537526375273752837529375303753137532375333753437535375363753737538375393754037541375423754337544375453754637547375483754937550375513755237553375543755537556375573755837559375603756137562375633756437565375663756737568375693757037571375723757337574375753757637577375783757937580375813758237583375843758537586375873758837589375903759137592375933759437595375963759737598375993760037601376023760337604376053760637607376083760937610376113761237613376143761537616376173761837619376203762137622376233762437625376263762737628376293763037631376323763337634376353763637637376383763937640376413764237643376443764537646376473764837649376503765137652376533765437655376563765737658376593766037661376623766337664376653766637667376683766937670376713767237673376743767537676376773767837679376803768137682376833768437685376863768737688376893769037691376923769337694376953769637697376983769937700377013770237703377043770537706377073770837709377103771137712377133771437715377163771737718377193772037721377223772337724377253772637727377283772937730377313773237733377343773537736377373773837739377403774137742377433774437745377463774737748377493775037751377523775337754377553775637757377583775937760377613776237763377643776537766377673776837769377703777137772377733777437775377763777737778377793778037781377823778337784377853778637787377883778937790377913779237793377943779537796377973779837799378003780137802378033780437805378063780737808378093781037811378123781337814378153781637817378183781937820378213782237823378243782537826378273782837829378303783137832378333783437835378363783737838378393784037841378423784337844378453784637847378483784937850378513785237853378543785537856378573785837859378603786137862378633786437865378663786737868378693787037871378723787337874378753787637877378783787937880378813788237883378843788537886378873788837889378903789137892378933789437895378963789737898378993790037901379023790337904379053790637907379083790937910379113791237913379143791537916379173791837919379203792137922379233792437925379263792737928379293793037931379323793337934379353793637937379383793937940379413794237943379443794537946379473794837949379503795137952379533795437955379563795737958379593796037961379623796337964379653796637967379683796937970379713797237973379743797537976379773797837979379803798137982379833798437985379863798737988379893799037991379923799337994379953799637997379983799938000380013800238003380043800538006380073800838009380103801138012380133801438015380163801738018380193802038021380223802338024380253802638027380283802938030380313803238033380343803538036380373803838039380403804138042380433804438045380463804738048380493805038051380523805338054380553805638057380583805938060380613806238063380643806538066380673806838069380703807138072380733807438075380763807738078380793808038081380823808338084380853808638087380883808938090380913809238093380943809538096380973809838099381003810138102381033810438105381063810738108381093811038111381123811338114381153811638117381183811938120381213812238123381243812538126381273812838129381303813138132381333813438135381363813738138381393814038141381423814338144381453814638147381483814938150381513815238153381543815538156381573815838159381603816138162381633816438165381663816738168381693817038171381723817338174381753817638177381783817938180381813818238183381843818538186381873818838189381903819138192381933819438195381963819738198381993820038201382023820338204382053820638207382083820938210382113821238213382143821538216382173821838219382203822138222382233822438225382263822738228382293823038231382323823338234382353823638237382383823938240382413824238243382443824538246382473824838249382503825138252382533825438255382563825738258382593826038261382623826338264382653826638267382683826938270382713827238273382743827538276382773827838279382803828138282382833828438285382863828738288382893829038291382923829338294382953829638297382983829938300383013830238303383043830538306383073830838309383103831138312383133831438315383163831738318383193832038321383223832338324383253832638327383283832938330383313833238333383343833538336383373833838339383403834138342383433834438345383463834738348383493835038351383523835338354383553835638357383583835938360383613836238363383643836538366383673836838369383703837138372383733837438375383763837738378383793838038381383823838338384383853838638387383883838938390383913839238393383943839538396383973839838399384003840138402384033840438405384063840738408384093841038411384123841338414384153841638417384183841938420384213842238423384243842538426384273842838429384303843138432384333843438435384363843738438384393844038441384423844338444384453844638447384483844938450384513845238453384543845538456384573845838459384603846138462384633846438465384663846738468384693847038471384723847338474384753847638477384783847938480384813848238483384843848538486384873848838489384903849138492384933849438495384963849738498384993850038501385023850338504385053850638507385083850938510385113851238513385143851538516385173851838519385203852138522385233852438525385263852738528385293853038531385323853338534385353853638537385383853938540385413854238543385443854538546385473854838549385503855138552385533855438555385563855738558385593856038561385623856338564385653856638567385683856938570385713857238573385743857538576385773857838579385803858138582385833858438585385863858738588385893859038591385923859338594385953859638597385983859938600386013860238603386043860538606386073860838609386103861138612386133861438615386163861738618386193862038621386223862338624386253862638627386283862938630386313863238633386343863538636386373863838639386403864138642386433864438645386463864738648386493865038651386523865338654386553865638657386583865938660386613866238663386643866538666386673866838669386703867138672386733867438675386763867738678386793868038681386823868338684386853868638687386883868938690386913869238693386943869538696386973869838699387003870138702387033870438705387063870738708387093871038711387123871338714387153871638717387183871938720387213872238723387243872538726387273872838729387303873138732387333873438735387363873738738387393874038741387423874338744387453874638747387483874938750387513875238753387543875538756387573875838759387603876138762387633876438765387663876738768387693877038771387723877338774387753877638777387783877938780387813878238783387843878538786387873878838789387903879138792387933879438795387963879738798387993880038801388023880338804388053880638807388083880938810388113881238813388143881538816388173881838819388203882138822388233882438825388263882738828388293883038831388323883338834388353883638837388383883938840388413884238843388443884538846388473884838849388503885138852388533885438855388563885738858388593886038861388623886338864388653886638867388683886938870388713887238873388743887538876388773887838879388803888138882388833888438885388863888738888388893889038891388923889338894388953889638897388983889938900389013890238903389043890538906389073890838909389103891138912389133891438915389163891738918389193892038921389223892338924389253892638927389283892938930389313893238933389343893538936389373893838939389403894138942389433894438945389463894738948389493895038951389523895338954389553895638957389583895938960389613896238963389643896538966389673896838969389703897138972389733897438975389763897738978389793898038981389823898338984389853898638987389883898938990389913899238993389943899538996389973899838999390003900139002390033900439005390063900739008390093901039011390123901339014390153901639017390183901939020390213902239023390243902539026390273902839029390303903139032390333903439035390363903739038390393904039041390423904339044390453904639047390483904939050390513905239053390543905539056390573905839059390603906139062390633906439065390663906739068390693907039071390723907339074390753907639077390783907939080390813908239083390843908539086390873908839089390903909139092390933909439095390963909739098390993910039101391023910339104391053910639107391083910939110391113911239113391143911539116391173911839119391203912139122391233912439125391263912739128391293913039131391323913339134391353913639137391383913939140391413914239143391443914539146391473914839149391503915139152391533915439155391563915739158391593916039161391623916339164391653916639167391683916939170391713917239173391743917539176391773917839179391803918139182391833918439185391863918739188391893919039191391923919339194391953919639197391983919939200392013920239203392043920539206392073920839209392103921139212392133921439215392163921739218392193922039221392223922339224392253922639227392283922939230392313923239233392343923539236392373923839239392403924139242392433924439245392463924739248392493925039251392523925339254392553925639257392583925939260392613926239263392643926539266392673926839269392703927139272392733927439275392763927739278392793928039281392823928339284392853928639287392883928939290392913929239293392943929539296392973929839299393003930139302393033930439305393063930739308393093931039311393123931339314393153931639317393183931939320393213932239323393243932539326393273932839329393303933139332393333933439335393363933739338393393934039341393423934339344393453934639347393483934939350393513935239353393543935539356393573935839359393603936139362393633936439365393663936739368393693937039371393723937339374393753937639377393783937939380393813938239383393843938539386393873938839389393903939139392393933939439395393963939739398393993940039401394023940339404394053940639407394083940939410394113941239413394143941539416394173941839419394203942139422394233942439425394263942739428394293943039431394323943339434394353943639437394383943939440394413944239443394443944539446394473944839449394503945139452394533945439455394563945739458394593946039461394623946339464394653946639467394683946939470394713947239473394743947539476394773947839479394803948139482394833948439485394863948739488394893949039491394923949339494394953949639497394983949939500395013950239503395043950539506395073950839509395103951139512395133951439515395163951739518395193952039521395223952339524395253952639527395283952939530395313953239533395343953539536395373953839539395403954139542395433954439545395463954739548395493955039551395523955339554395553955639557395583955939560395613956239563395643956539566395673956839569395703957139572395733957439575395763957739578395793958039581395823958339584395853958639587395883958939590395913959239593395943959539596395973959839599396003960139602396033960439605396063960739608396093961039611396123961339614396153961639617396183961939620396213962239623396243962539626396273962839629396303963139632396333963439635396363963739638396393964039641396423964339644396453964639647396483964939650396513965239653396543965539656396573965839659396603966139662396633966439665396663966739668396693967039671396723967339674396753967639677396783967939680396813968239683396843968539686396873968839689396903969139692396933969439695396963969739698396993970039701397023970339704397053970639707397083970939710397113971239713397143971539716397173971839719397203972139722397233972439725397263972739728397293973039731397323973339734397353973639737397383973939740397413974239743397443974539746397473974839749397503975139752397533975439755397563975739758397593976039761397623976339764397653976639767397683976939770397713977239773397743977539776397773977839779397803978139782397833978439785397863978739788397893979039791397923979339794397953979639797397983979939800398013980239803398043980539806398073980839809398103981139812398133981439815398163981739818398193982039821398223982339824398253982639827398283982939830398313983239833398343983539836398373983839839398403984139842398433984439845398463984739848398493985039851398523985339854398553985639857398583985939860398613986239863398643986539866398673986839869398703987139872398733987439875398763987739878398793988039881398823988339884398853988639887398883988939890398913989239893398943989539896398973989839899399003990139902399033990439905399063990739908399093991039911399123991339914399153991639917399183991939920399213992239923399243992539926399273992839929399303993139932399333993439935399363993739938399393994039941399423994339944399453994639947399483994939950399513995239953399543995539956399573995839959399603996139962399633996439965399663996739968399693997039971399723997339974399753997639977399783997939980399813998239983399843998539986399873998839989399903999139992399933999439995399963999739998399994000040001400024000340004400054000640007400084000940010400114001240013400144001540016400174001840019400204002140022400234002440025400264002740028400294003040031400324003340034400354003640037400384003940040400414004240043400444004540046400474004840049400504005140052400534005440055400564005740058400594006040061400624006340064400654006640067400684006940070400714007240073400744007540076400774007840079400804008140082400834008440085400864008740088400894009040091400924009340094400954009640097400984009940100401014010240103401044010540106401074010840109401104011140112401134011440115401164011740118401194012040121401224012340124401254012640127401284012940130401314013240133401344013540136401374013840139401404014140142401434014440145401464014740148401494015040151401524015340154401554015640157401584015940160401614016240163401644016540166401674016840169401704017140172401734017440175401764017740178401794018040181401824018340184401854018640187401884018940190401914019240193401944019540196401974019840199402004020140202402034020440205402064020740208402094021040211402124021340214402154021640217402184021940220402214022240223402244022540226402274022840229402304023140232402334023440235402364023740238402394024040241402424024340244402454024640247402484024940250402514025240253402544025540256402574025840259402604026140262402634026440265402664026740268402694027040271402724027340274402754027640277402784027940280402814028240283402844028540286402874028840289402904029140292402934029440295402964029740298402994030040301403024030340304403054030640307403084030940310403114031240313403144031540316403174031840319403204032140322403234032440325403264032740328403294033040331403324033340334403354033640337403384033940340403414034240343403444034540346403474034840349403504035140352403534035440355403564035740358403594036040361403624036340364403654036640367403684036940370403714037240373403744037540376403774037840379403804038140382403834038440385403864038740388403894039040391403924039340394403954039640397403984039940400404014040240403404044040540406404074040840409404104041140412404134041440415404164041740418404194042040421404224042340424404254042640427404284042940430404314043240433404344043540436404374043840439404404044140442404434044440445404464044740448404494045040451404524045340454404554045640457404584045940460404614046240463404644046540466404674046840469404704047140472404734047440475404764047740478404794048040481404824048340484404854048640487404884048940490404914049240493404944049540496404974049840499405004050140502405034050440505405064050740508405094051040511405124051340514405154051640517405184051940520405214052240523405244052540526405274052840529405304053140532405334053440535405364053740538405394054040541405424054340544405454054640547405484054940550405514055240553405544055540556405574055840559405604056140562405634056440565405664056740568405694057040571405724057340574405754057640577405784057940580405814058240583405844058540586405874058840589405904059140592405934059440595405964059740598405994060040601406024060340604406054060640607406084060940610406114061240613406144061540616406174061840619406204062140622406234062440625406264062740628406294063040631406324063340634406354063640637406384063940640406414064240643406444064540646406474064840649406504065140652406534065440655406564065740658406594066040661406624066340664406654066640667406684066940670406714067240673406744067540676406774067840679406804068140682406834068440685406864068740688406894069040691406924069340694406954069640697406984069940700407014070240703407044070540706407074070840709407104071140712407134071440715407164071740718407194072040721407224072340724407254072640727407284072940730407314073240733407344073540736407374073840739407404074140742407434074440745407464074740748407494075040751407524075340754407554075640757407584075940760407614076240763407644076540766407674076840769407704077140772407734077440775407764077740778407794078040781407824078340784407854078640787407884078940790407914079240793407944079540796407974079840799408004080140802408034080440805408064080740808408094081040811408124081340814408154081640817408184081940820408214082240823408244082540826408274082840829408304083140832408334083440835408364083740838408394084040841408424084340844408454084640847408484084940850408514085240853408544085540856408574085840859408604086140862408634086440865408664086740868408694087040871408724087340874408754087640877408784087940880408814088240883408844088540886408874088840889408904089140892408934089440895408964089740898408994090040901409024090340904409054090640907409084090940910409114091240913409144091540916409174091840919409204092140922409234092440925409264092740928409294093040931409324093340934409354093640937409384093940940409414094240943409444094540946409474094840949409504095140952409534095440955409564095740958409594096040961409624096340964409654096640967409684096940970409714097240973409744097540976409774097840979409804098140982409834098440985409864098740988409894099040991409924099340994409954099640997409984099941000410014100241003410044100541006410074100841009410104101141012410134101441015410164101741018410194102041021410224102341024410254102641027410284102941030410314103241033410344103541036410374103841039410404104141042410434104441045410464104741048410494105041051410524105341054410554105641057410584105941060410614106241063410644106541066410674106841069410704107141072410734107441075410764107741078410794108041081410824108341084410854108641087410884108941090410914109241093410944109541096410974109841099411004110141102411034110441105411064110741108411094111041111411124111341114411154111641117411184111941120411214112241123411244112541126411274112841129411304113141132411334113441135411364113741138411394114041141411424114341144411454114641147411484114941150411514115241153411544115541156411574115841159411604116141162411634116441165411664116741168411694117041171411724117341174411754117641177411784117941180411814118241183411844118541186411874118841189411904119141192411934119441195411964119741198411994120041201412024120341204412054120641207412084120941210412114121241213412144121541216412174121841219412204122141222412234122441225412264122741228412294123041231412324123341234412354123641237412384123941240412414124241243412444124541246412474124841249412504125141252412534125441255412564125741258412594126041261412624126341264412654126641267412684126941270412714127241273412744127541276412774127841279412804128141282412834128441285412864128741288412894129041291412924129341294412954129641297412984129941300413014130241303413044130541306413074130841309413104131141312413134131441315413164131741318413194132041321413224132341324413254132641327413284132941330413314133241333413344133541336413374133841339413404134141342413434134441345413464134741348413494135041351413524135341354413554135641357413584135941360413614136241363413644136541366413674136841369413704137141372413734137441375413764137741378413794138041381413824138341384413854138641387413884138941390413914139241393413944139541396413974139841399414004140141402414034140441405414064140741408414094141041411414124141341414414154141641417414184141941420414214142241423414244142541426414274142841429414304143141432414334143441435414364143741438414394144041441414424144341444414454144641447414484144941450414514145241453414544145541456414574145841459414604146141462414634146441465414664146741468414694147041471414724147341474414754147641477414784147941480414814148241483414844148541486414874148841489414904149141492414934149441495414964149741498414994150041501415024150341504415054150641507415084150941510415114151241513415144151541516415174151841519415204152141522415234152441525415264152741528415294153041531415324153341534415354153641537415384153941540415414154241543415444154541546415474154841549415504155141552415534155441555415564155741558415594156041561415624156341564415654156641567415684156941570415714157241573415744157541576415774157841579415804158141582415834158441585415864158741588415894159041591415924159341594415954159641597415984159941600416014160241603416044160541606416074160841609416104161141612416134161441615416164161741618416194162041621416224162341624416254162641627416284162941630416314163241633416344163541636416374163841639416404164141642416434164441645416464164741648416494165041651416524165341654416554165641657416584165941660416614166241663416644166541666416674166841669416704167141672416734167441675416764167741678416794168041681416824168341684416854168641687416884168941690416914169241693416944169541696416974169841699417004170141702417034170441705417064170741708417094171041711417124171341714417154171641717417184171941720417214172241723417244172541726417274172841729417304173141732417334173441735417364173741738417394174041741417424174341744417454174641747417484174941750417514175241753417544175541756417574175841759417604176141762417634176441765417664176741768417694177041771417724177341774417754177641777417784177941780417814178241783417844178541786417874178841789417904179141792417934179441795417964179741798417994180041801418024180341804418054180641807418084180941810418114181241813418144181541816418174181841819418204182141822418234182441825418264182741828418294183041831418324183341834418354183641837418384183941840418414184241843418444184541846418474184841849418504185141852418534185441855418564185741858418594186041861418624186341864418654186641867418684186941870418714187241873418744187541876418774187841879418804188141882418834188441885418864188741888418894189041891418924189341894418954189641897418984189941900419014190241903419044190541906419074190841909419104191141912419134191441915419164191741918419194192041921419224192341924419254192641927419284192941930419314193241933419344193541936419374193841939419404194141942419434194441945419464194741948419494195041951419524195341954419554195641957419584195941960419614196241963419644196541966419674196841969419704197141972419734197441975419764197741978419794198041981419824198341984419854198641987419884198941990419914199241993419944199541996419974199841999420004200142002420034200442005420064200742008420094201042011420124201342014420154201642017420184201942020420214202242023420244202542026420274202842029420304203142032420334203442035420364203742038420394204042041420424204342044420454204642047420484204942050420514205242053420544205542056420574205842059420604206142062420634206442065420664206742068420694207042071420724207342074420754207642077420784207942080420814208242083420844208542086420874208842089420904209142092420934209442095420964209742098420994210042101421024210342104421054210642107421084210942110421114211242113421144211542116421174211842119421204212142122421234212442125421264212742128421294213042131421324213342134421354213642137421384213942140421414214242143421444214542146421474214842149421504215142152421534215442155421564215742158421594216042161421624216342164421654216642167421684216942170421714217242173421744217542176421774217842179421804218142182421834218442185421864218742188421894219042191421924219342194421954219642197421984219942200422014220242203422044220542206422074220842209422104221142212422134221442215422164221742218422194222042221422224222342224422254222642227422284222942230422314223242233422344223542236422374223842239422404224142242422434224442245422464224742248422494225042251422524225342254422554225642257422584225942260422614226242263422644226542266422674226842269422704227142272422734227442275422764227742278422794228042281422824228342284422854228642287422884228942290422914229242293422944229542296422974229842299423004230142302423034230442305423064230742308423094231042311423124231342314423154231642317423184231942320423214232242323423244232542326423274232842329423304233142332423334233442335423364233742338423394234042341423424234342344423454234642347423484234942350423514235242353423544235542356423574235842359423604236142362423634236442365423664236742368423694237042371423724237342374423754237642377423784237942380423814238242383423844238542386423874238842389423904239142392423934239442395423964239742398423994240042401424024240342404424054240642407424084240942410424114241242413424144241542416424174241842419424204242142422424234242442425424264242742428424294243042431424324243342434424354243642437424384243942440424414244242443424444244542446424474244842449424504245142452424534245442455424564245742458424594246042461424624246342464424654246642467424684246942470424714247242473424744247542476424774247842479424804248142482424834248442485424864248742488424894249042491424924249342494424954249642497424984249942500425014250242503425044250542506425074250842509425104251142512425134251442515425164251742518425194252042521425224252342524425254252642527425284252942530425314253242533425344253542536425374253842539425404254142542425434254442545425464254742548425494255042551425524255342554425554255642557425584255942560425614256242563425644256542566425674256842569425704257142572425734257442575425764257742578425794258042581425824258342584425854258642587425884258942590425914259242593425944259542596425974259842599426004260142602426034260442605426064260742608426094261042611426124261342614426154261642617426184261942620426214262242623426244262542626426274262842629426304263142632426334263442635426364263742638426394264042641426424264342644426454264642647426484264942650426514265242653426544265542656426574265842659426604266142662426634266442665426664266742668426694267042671426724267342674426754267642677426784267942680426814268242683426844268542686426874268842689426904269142692426934269442695426964269742698426994270042701427024270342704427054270642707427084270942710427114271242713427144271542716427174271842719427204272142722427234272442725427264272742728427294273042731427324273342734427354273642737427384273942740427414274242743427444274542746427474274842749427504275142752427534275442755427564275742758427594276042761427624276342764427654276642767427684276942770427714277242773427744277542776427774277842779427804278142782427834278442785427864278742788427894279042791427924279342794427954279642797427984279942800428014280242803428044280542806428074280842809428104281142812428134281442815428164281742818428194282042821428224282342824428254282642827428284282942830428314283242833428344283542836428374283842839428404284142842428434284442845428464284742848428494285042851428524285342854428554285642857428584285942860428614286242863428644286542866428674286842869428704287142872428734287442875428764287742878428794288042881428824288342884428854288642887428884288942890428914289242893428944289542896428974289842899429004290142902429034290442905429064290742908429094291042911429124291342914429154291642917429184291942920429214292242923429244292542926429274292842929429304293142932429334293442935429364293742938429394294042941429424294342944429454294642947429484294942950429514295242953429544295542956429574295842959429604296142962429634296442965429664296742968429694297042971429724297342974429754297642977429784297942980429814298242983429844298542986429874298842989429904299142992429934299442995429964299742998429994300043001430024300343004430054300643007430084300943010430114301243013430144301543016430174301843019430204302143022430234302443025430264302743028430294303043031430324303343034430354303643037430384303943040430414304243043430444304543046430474304843049430504305143052430534305443055430564305743058430594306043061430624306343064430654306643067430684306943070430714307243073430744307543076430774307843079430804308143082430834308443085430864308743088430894309043091430924309343094430954309643097430984309943100431014310243103431044310543106431074310843109431104311143112431134311443115431164311743118431194312043121431224312343124431254312643127431284312943130431314313243133431344313543136431374313843139431404314143142431434314443145431464314743148431494315043151431524315343154431554315643157431584315943160431614316243163431644316543166431674316843169431704317143172431734317443175431764317743178431794318043181431824318343184431854318643187431884318943190431914319243193431944319543196431974319843199432004320143202432034320443205432064320743208432094321043211432124321343214432154321643217432184321943220432214322243223432244322543226432274322843229432304323143232432334323443235432364323743238432394324043241432424324343244432454324643247432484324943250432514325243253432544325543256432574325843259432604326143262432634326443265432664326743268432694327043271432724327343274432754327643277432784327943280432814328243283432844328543286432874328843289432904329143292432934329443295432964329743298432994330043301433024330343304433054330643307433084330943310433114331243313433144331543316433174331843319433204332143322433234332443325433264332743328433294333043331433324333343334433354333643337433384333943340433414334243343433444334543346433474334843349433504335143352433534335443355433564335743358433594336043361433624336343364433654336643367433684336943370433714337243373433744337543376433774337843379433804338143382433834338443385433864338743388433894339043391433924339343394433954339643397433984339943400434014340243403434044340543406434074340843409434104341143412434134341443415434164341743418434194342043421434224342343424434254342643427434284342943430434314343243433434344343543436434374343843439434404344143442434434344443445434464344743448434494345043451434524345343454434554345643457434584345943460434614346243463434644346543466434674346843469434704347143472434734347443475434764347743478434794348043481434824348343484434854348643487434884348943490434914349243493434944349543496434974349843499435004350143502435034350443505435064350743508435094351043511435124351343514435154351643517435184351943520435214352243523435244352543526435274352843529435304353143532435334353443535435364353743538435394354043541435424354343544435454354643547435484354943550435514355243553435544355543556435574355843559435604356143562435634356443565435664356743568435694357043571435724357343574435754357643577435784357943580435814358243583435844358543586435874358843589435904359143592435934359443595435964359743598435994360043601436024360343604436054360643607436084360943610436114361243613436144361543616436174361843619436204362143622436234362443625436264362743628436294363043631436324363343634436354363643637436384363943640436414364243643436444364543646436474364843649436504365143652436534365443655436564365743658436594366043661436624366343664436654366643667436684366943670436714367243673436744367543676436774367843679436804368143682436834368443685436864368743688436894369043691436924369343694436954369643697436984369943700437014370243703437044370543706437074370843709437104371143712437134371443715437164371743718437194372043721437224372343724437254372643727437284372943730437314373243733437344373543736437374373843739437404374143742437434374443745437464374743748437494375043751437524375343754437554375643757437584375943760437614376243763437644376543766437674376843769437704377143772437734377443775437764377743778437794378043781437824378343784437854378643787437884378943790437914379243793437944379543796437974379843799438004380143802438034380443805438064380743808438094381043811438124381343814438154381643817438184381943820438214382243823438244382543826438274382843829438304383143832438334383443835438364383743838438394384043841438424384343844438454384643847438484384943850438514385243853438544385543856438574385843859438604386143862438634386443865438664386743868438694387043871438724387343874438754387643877438784387943880438814388243883438844388543886438874388843889438904389143892438934389443895438964389743898438994390043901439024390343904439054390643907439084390943910439114391243913439144391543916439174391843919439204392143922439234392443925439264392743928439294393043931439324393343934439354393643937439384393943940439414394243943439444394543946439474394843949439504395143952439534395443955439564395743958439594396043961439624396343964439654396643967439684396943970439714397243973439744397543976439774397843979439804398143982439834398443985439864398743988439894399043991439924399343994439954399643997439984399944000440014400244003440044400544006440074400844009440104401144012440134401444015440164401744018440194402044021440224402344024440254402644027440284402944030440314403244033440344403544036440374403844039440404404144042440434404444045440464404744048440494405044051440524405344054440554405644057440584405944060440614406244063440644406544066440674406844069440704407144072440734407444075440764407744078440794408044081440824408344084440854408644087440884408944090440914409244093440944409544096440974409844099441004410144102441034410444105441064410744108441094411044111441124411344114441154411644117441184411944120441214412244123441244412544126441274412844129441304413144132441334413444135441364413744138441394414044141441424414344144441454414644147441484414944150441514415244153441544415544156441574415844159441604416144162441634416444165441664416744168441694417044171441724417344174441754417644177441784417944180441814418244183441844418544186441874418844189441904419144192441934419444195441964419744198441994420044201442024420344204442054420644207442084420944210442114421244213442144421544216442174421844219442204422144222442234422444225442264422744228442294423044231442324423344234442354423644237442384423944240442414424244243442444424544246442474424844249442504425144252442534425444255442564425744258442594426044261442624426344264442654426644267442684426944270442714427244273442744427544276442774427844279442804428144282442834428444285442864428744288442894429044291442924429344294442954429644297442984429944300443014430244303443044430544306443074430844309443104431144312443134431444315443164431744318443194432044321443224432344324443254432644327443284432944330443314433244333443344433544336443374433844339443404434144342443434434444345443464434744348443494435044351443524435344354443554435644357443584435944360443614436244363443644436544366443674436844369443704437144372443734437444375443764437744378443794438044381443824438344384443854438644387443884438944390443914439244393443944439544396443974439844399444004440144402444034440444405444064440744408444094441044411444124441344414444154441644417444184441944420444214442244423444244442544426444274442844429444304443144432444334443444435444364443744438444394444044441444424444344444444454444644447444484444944450444514445244453444544445544456444574445844459444604446144462444634446444465444664446744468444694447044471444724447344474444754447644477444784447944480444814448244483444844448544486444874448844489444904449144492444934449444495444964449744498444994450044501445024450344504445054450644507445084450944510445114451244513445144451544516445174451844519445204452144522445234452444525445264452744528445294453044531445324453344534445354453644537445384453944540445414454244543445444454544546445474454844549445504455144552445534455444555445564455744558445594456044561445624456344564445654456644567445684456944570445714457244573445744457544576445774457844579445804458144582445834458444585445864458744588445894459044591445924459344594445954459644597445984459944600446014460244603446044460544606446074460844609446104461144612446134461444615446164461744618446194462044621446224462344624446254462644627446284462944630446314463244633446344463544636446374463844639446404464144642446434464444645446464464744648446494465044651446524465344654446554465644657446584465944660446614466244663446644466544666446674466844669446704467144672446734467444675446764467744678446794468044681446824468344684446854468644687446884468944690446914469244693446944469544696446974469844699447004470144702447034470444705447064470744708447094471044711447124471344714447154471644717447184471944720447214472244723447244472544726447274472844729447304473144732447334473444735447364473744738447394474044741447424474344744447454474644747447484474944750447514475244753447544475544756447574475844759447604476144762447634476444765447664476744768447694477044771447724477344774447754477644777447784477944780447814478244783447844478544786447874478844789447904479144792447934479444795447964479744798447994480044801448024480344804448054480644807448084480944810448114481244813448144481544816448174481844819448204482144822448234482444825448264482744828448294483044831448324483344834448354483644837448384483944840448414484244843448444484544846448474484844849448504485144852448534485444855448564485744858448594486044861448624486344864448654486644867448684486944870448714487244873448744487544876448774487844879448804488144882448834488444885448864488744888448894489044891448924489344894448954489644897448984489944900449014490244903449044490544906449074490844909449104491144912449134491444915449164491744918449194492044921449224492344924449254492644927449284492944930449314493244933449344493544936449374493844939449404494144942449434494444945449464494744948449494495044951449524495344954449554495644957449584495944960449614496244963449644496544966449674496844969449704497144972449734497444975449764497744978449794498044981449824498344984449854498644987449884498944990449914499244993449944499544996449974499844999450004500145002450034500445005450064500745008450094501045011450124501345014450154501645017450184501945020450214502245023450244502545026450274502845029450304503145032450334503445035450364503745038450394504045041450424504345044450454504645047450484504945050450514505245053450544505545056450574505845059450604506145062450634506445065450664506745068450694507045071450724507345074450754507645077450784507945080450814508245083450844508545086450874508845089450904509145092450934509445095450964509745098450994510045101451024510345104451054510645107451084510945110451114511245113451144511545116451174511845119451204512145122451234512445125451264512745128451294513045131451324513345134451354513645137451384513945140451414514245143451444514545146451474514845149451504515145152451534515445155451564515745158451594516045161451624516345164451654516645167451684516945170451714517245173451744517545176451774517845179451804518145182451834518445185451864518745188451894519045191451924519345194451954519645197451984519945200452014520245203452044520545206452074520845209452104521145212452134521445215452164521745218452194522045221452224522345224452254522645227452284522945230452314523245233452344523545236452374523845239452404524145242452434524445245452464524745248452494525045251452524525345254452554525645257452584525945260452614526245263452644526545266452674526845269452704527145272452734527445275452764527745278452794528045281452824528345284452854528645287452884528945290452914529245293452944529545296452974529845299453004530145302453034530445305453064530745308453094531045311453124531345314453154531645317453184531945320453214532245323453244532545326453274532845329453304533145332453334533445335453364533745338453394534045341453424534345344453454534645347453484534945350453514535245353453544535545356453574535845359453604536145362453634536445365453664536745368453694537045371453724537345374453754537645377453784537945380453814538245383453844538545386453874538845389453904539145392453934539445395453964539745398453994540045401454024540345404454054540645407454084540945410454114541245413454144541545416454174541845419454204542145422454234542445425454264542745428454294543045431454324543345434454354543645437454384543945440454414544245443454444544545446454474544845449454504545145452454534545445455454564545745458454594546045461454624546345464454654546645467454684546945470454714547245473454744547545476454774547845479454804548145482454834548445485454864548745488454894549045491454924549345494454954549645497454984549945500455014550245503455044550545506455074550845509455104551145512455134551445515455164551745518455194552045521455224552345524455254552645527455284552945530455314553245533455344553545536455374553845539455404554145542455434554445545455464554745548455494555045551455524555345554455554555645557455584555945560455614556245563455644556545566455674556845569455704557145572455734557445575455764557745578455794558045581455824558345584455854558645587455884558945590455914559245593455944559545596455974559845599456004560145602456034560445605456064560745608456094561045611456124561345614456154561645617456184561945620456214562245623456244562545626456274562845629456304563145632456334563445635456364563745638456394564045641456424564345644456454564645647456484564945650456514565245653456544565545656456574565845659456604566145662456634566445665456664566745668456694567045671456724567345674456754567645677456784567945680456814568245683456844568545686456874568845689456904569145692456934569445695456964569745698456994570045701457024570345704457054570645707457084570945710457114571245713457144571545716457174571845719457204572145722457234572445725457264572745728457294573045731457324573345734457354573645737457384573945740457414574245743457444574545746457474574845749457504575145752457534575445755457564575745758457594576045761457624576345764457654576645767457684576945770457714577245773457744577545776457774577845779457804578145782457834578445785457864578745788457894579045791457924579345794457954579645797457984579945800458014580245803458044580545806458074580845809458104581145812458134581445815458164581745818458194582045821458224582345824458254582645827458284582945830458314583245833458344583545836458374583845839458404584145842458434584445845458464584745848458494585045851458524585345854458554585645857458584585945860458614586245863458644586545866458674586845869458704587145872458734587445875458764587745878458794588045881458824588345884458854588645887458884588945890458914589245893458944589545896458974589845899459004590145902459034590445905459064590745908459094591045911459124591345914459154591645917459184591945920459214592245923459244592545926459274592845929459304593145932459334593445935459364593745938459394594045941459424594345944459454594645947459484594945950459514595245953459544595545956459574595845959459604596145962459634596445965459664596745968459694597045971459724597345974459754597645977459784597945980459814598245983459844598545986459874598845989459904599145992459934599445995459964599745998459994600046001460024600346004460054600646007460084600946010460114601246013460144601546016460174601846019460204602146022460234602446025460264602746028460294603046031460324603346034460354603646037460384603946040460414604246043460444604546046460474604846049460504605146052460534605446055460564605746058460594606046061460624606346064460654606646067460684606946070460714607246073460744607546076460774607846079460804608146082460834608446085460864608746088460894609046091460924609346094460954609646097460984609946100461014610246103461044610546106461074610846109461104611146112461134611446115461164611746118461194612046121461224612346124461254612646127461284612946130461314613246133461344613546136461374613846139461404614146142461434614446145461464614746148461494615046151461524615346154461554615646157461584615946160461614616246163461644616546166461674616846169461704617146172461734617446175461764617746178461794618046181461824618346184461854618646187461884618946190461914619246193461944619546196461974619846199462004620146202462034620446205462064620746208462094621046211462124621346214462154621646217462184621946220462214622246223462244622546226462274622846229462304623146232462334623446235462364623746238462394624046241462424624346244462454624646247462484624946250462514625246253462544625546256462574625846259462604626146262462634626446265462664626746268462694627046271462724627346274462754627646277462784627946280462814628246283462844628546286462874628846289462904629146292462934629446295462964629746298462994630046301463024630346304463054630646307463084630946310463114631246313463144631546316463174631846319463204632146322463234632446325463264632746328463294633046331463324633346334463354633646337463384633946340463414634246343463444634546346463474634846349463504635146352463534635446355463564635746358463594636046361463624636346364463654636646367463684636946370463714637246373463744637546376463774637846379463804638146382463834638446385463864638746388463894639046391463924639346394463954639646397463984639946400464014640246403464044640546406464074640846409464104641146412464134641446415464164641746418464194642046421464224642346424464254642646427464284642946430464314643246433464344643546436464374643846439464404644146442464434644446445464464644746448464494645046451464524645346454464554645646457464584645946460464614646246463464644646546466464674646846469464704647146472464734647446475464764647746478464794648046481464824648346484464854648646487464884648946490464914649246493464944649546496464974649846499465004650146502465034650446505465064650746508465094651046511465124651346514465154651646517465184651946520465214652246523465244652546526465274652846529465304653146532465334653446535465364653746538465394654046541465424654346544465454654646547465484654946550465514655246553465544655546556465574655846559465604656146562465634656446565465664656746568465694657046571465724657346574465754657646577465784657946580465814658246583465844658546586465874658846589465904659146592465934659446595465964659746598465994660046601466024660346604466054660646607466084660946610466114661246613466144661546616466174661846619466204662146622466234662446625466264662746628466294663046631466324663346634466354663646637466384663946640466414664246643466444664546646466474664846649466504665146652466534665446655466564665746658466594666046661466624666346664466654666646667466684666946670466714667246673466744667546676466774667846679466804668146682466834668446685466864668746688466894669046691466924669346694466954669646697466984669946700467014670246703467044670546706467074670846709467104671146712467134671446715467164671746718467194672046721467224672346724467254672646727467284672946730467314673246733467344673546736467374673846739467404674146742467434674446745467464674746748467494675046751467524675346754467554675646757467584675946760467614676246763467644676546766467674676846769467704677146772467734677446775467764677746778467794678046781467824678346784467854678646787467884678946790467914679246793467944679546796467974679846799468004680146802468034680446805468064680746808468094681046811468124681346814468154681646817468184681946820468214682246823468244682546826468274682846829468304683146832468334683446835468364683746838468394684046841468424684346844468454684646847468484684946850468514685246853468544685546856468574685846859468604686146862468634686446865468664686746868468694687046871468724687346874468754687646877468784687946880468814688246883468844688546886468874688846889468904689146892468934689446895468964689746898468994690046901469024690346904469054690646907469084690946910469114691246913469144691546916469174691846919469204692146922469234692446925469264692746928469294693046931469324693346934469354693646937469384693946940469414694246943469444694546946469474694846949469504695146952469534695446955469564695746958469594696046961469624696346964469654696646967469684696946970469714697246973469744697546976469774697846979469804698146982469834698446985469864698746988469894699046991469924699346994469954699646997469984699947000470014700247003470044700547006470074700847009470104701147012470134701447015470164701747018470194702047021470224702347024470254702647027470284702947030470314703247033470344703547036470374703847039470404704147042470434704447045470464704747048470494705047051470524705347054470554705647057470584705947060470614706247063470644706547066470674706847069470704707147072470734707447075470764707747078470794708047081470824708347084470854708647087470884708947090470914709247093470944709547096470974709847099471004710147102471034710447105471064710747108471094711047111471124711347114471154711647117471184711947120471214712247123471244712547126471274712847129471304713147132471334713447135471364713747138471394714047141471424714347144471454714647147471484714947150471514715247153471544715547156471574715847159471604716147162471634716447165471664716747168471694717047171471724717347174471754717647177471784717947180471814718247183471844718547186471874718847189471904719147192471934719447195471964719747198471994720047201472024720347204472054720647207472084720947210472114721247213472144721547216472174721847219472204722147222472234722447225472264722747228472294723047231472324723347234472354723647237472384723947240472414724247243472444724547246472474724847249472504725147252472534725447255472564725747258472594726047261472624726347264472654726647267472684726947270472714727247273472744727547276472774727847279472804728147282472834728447285472864728747288472894729047291472924729347294472954729647297472984729947300473014730247303473044730547306473074730847309473104731147312473134731447315473164731747318473194732047321473224732347324473254732647327473284732947330473314733247333473344733547336473374733847339473404734147342473434734447345473464734747348473494735047351473524735347354473554735647357473584735947360473614736247363473644736547366473674736847369473704737147372473734737447375473764737747378473794738047381473824738347384473854738647387473884738947390473914739247393473944739547396473974739847399474004740147402474034740447405474064740747408474094741047411474124741347414474154741647417474184741947420474214742247423474244742547426474274742847429474304743147432474334743447435474364743747438474394744047441474424744347444474454744647447474484744947450474514745247453474544745547456474574745847459474604746147462474634746447465474664746747468474694747047471474724747347474474754747647477474784747947480474814748247483474844748547486474874748847489474904749147492474934749447495474964749747498474994750047501475024750347504475054750647507475084750947510475114751247513475144751547516475174751847519475204752147522475234752447525475264752747528475294753047531475324753347534475354753647537475384753947540475414754247543475444754547546475474754847549475504755147552475534755447555475564755747558475594756047561475624756347564475654756647567475684756947570475714757247573475744757547576475774757847579475804758147582475834758447585475864758747588475894759047591475924759347594475954759647597475984759947600476014760247603476044760547606476074760847609476104761147612476134761447615476164761747618476194762047621476224762347624476254762647627476284762947630476314763247633476344763547636476374763847639476404764147642476434764447645476464764747648476494765047651476524765347654476554765647657476584765947660476614766247663476644766547666476674766847669476704767147672476734767447675476764767747678476794768047681476824768347684476854768647687476884768947690476914769247693476944769547696476974769847699477004770147702477034770447705477064770747708477094771047711477124771347714477154771647717477184771947720477214772247723477244772547726477274772847729477304773147732477334773447735477364773747738477394774047741477424774347744477454774647747477484774947750477514775247753477544775547756477574775847759477604776147762477634776447765477664776747768477694777047771477724777347774477754777647777477784777947780477814778247783477844778547786477874778847789477904779147792477934779447795477964779747798477994780047801478024780347804478054780647807478084780947810478114781247813478144781547816478174781847819478204782147822478234782447825478264782747828478294783047831478324783347834478354783647837478384783947840478414784247843478444784547846478474784847849478504785147852478534785447855478564785747858478594786047861478624786347864478654786647867478684786947870478714787247873478744787547876478774787847879478804788147882478834788447885478864788747888478894789047891478924789347894478954789647897478984789947900479014790247903479044790547906479074790847909479104791147912479134791447915479164791747918479194792047921479224792347924479254792647927479284792947930479314793247933479344793547936479374793847939479404794147942479434794447945479464794747948479494795047951479524795347954479554795647957479584795947960479614796247963479644796547966479674796847969479704797147972479734797447975479764797747978479794798047981479824798347984479854798647987479884798947990479914799247993479944799547996479974799847999480004800148002480034800448005480064800748008480094801048011480124801348014480154801648017480184801948020480214802248023480244802548026480274802848029480304803148032480334803448035480364803748038480394804048041480424804348044480454804648047480484804948050480514805248053480544805548056480574805848059480604806148062480634806448065480664806748068480694807048071480724807348074480754807648077480784807948080480814808248083480844808548086480874808848089480904809148092480934809448095480964809748098480994810048101481024810348104481054810648107481084810948110481114811248113481144811548116481174811848119481204812148122481234812448125481264812748128481294813048131481324813348134481354813648137481384813948140481414814248143481444814548146481474814848149481504815148152481534815448155481564815748158481594816048161481624816348164481654816648167481684816948170481714817248173481744817548176481774817848179481804818148182481834818448185481864818748188481894819048191481924819348194481954819648197481984819948200482014820248203482044820548206482074820848209482104821148212482134821448215482164821748218482194822048221482224822348224482254822648227482284822948230482314823248233482344823548236482374823848239482404824148242482434824448245482464824748248482494825048251482524825348254482554825648257482584825948260482614826248263482644826548266482674826848269482704827148272482734827448275482764827748278482794828048281482824828348284482854828648287482884828948290482914829248293482944829548296482974829848299483004830148302483034830448305483064830748308483094831048311483124831348314483154831648317483184831948320483214832248323483244832548326483274832848329483304833148332483334833448335483364833748338483394834048341483424834348344483454834648347483484834948350483514835248353483544835548356483574835848359483604836148362483634836448365483664836748368483694837048371483724837348374483754837648377483784837948380483814838248383483844838548386483874838848389483904839148392483934839448395483964839748398483994840048401484024840348404484054840648407484084840948410484114841248413484144841548416484174841848419484204842148422484234842448425484264842748428484294843048431484324843348434484354843648437484384843948440484414844248443484444844548446484474844848449484504845148452484534845448455484564845748458484594846048461484624846348464484654846648467484684846948470484714847248473484744847548476484774847848479484804848148482484834848448485484864848748488484894849048491484924849348494484954849648497484984849948500485014850248503485044850548506485074850848509485104851148512485134851448515485164851748518485194852048521485224852348524485254852648527485284852948530485314853248533485344853548536485374853848539485404854148542485434854448545485464854748548485494855048551485524855348554485554855648557485584855948560485614856248563485644856548566485674856848569485704857148572485734857448575485764857748578485794858048581485824858348584485854858648587485884858948590485914859248593485944859548596485974859848599486004860148602486034860448605486064860748608486094861048611486124861348614486154861648617486184861948620486214862248623486244862548626486274862848629486304863148632486334863448635486364863748638486394864048641486424864348644486454864648647486484864948650486514865248653486544865548656486574865848659486604866148662486634866448665486664866748668486694867048671486724867348674486754867648677486784867948680486814868248683486844868548686486874868848689486904869148692486934869448695486964869748698486994870048701487024870348704487054870648707487084870948710487114871248713487144871548716487174871848719487204872148722487234872448725487264872748728487294873048731487324873348734487354873648737487384873948740487414874248743487444874548746487474874848749487504875148752487534875448755487564875748758487594876048761487624876348764487654876648767487684876948770487714877248773487744877548776487774877848779487804878148782487834878448785487864878748788487894879048791487924879348794487954879648797487984879948800488014880248803488044880548806488074880848809488104881148812488134881448815488164881748818488194882048821488224882348824488254882648827488284882948830488314883248833488344883548836488374883848839488404884148842488434884448845488464884748848488494885048851488524885348854488554885648857488584885948860488614886248863488644886548866488674886848869488704887148872488734887448875488764887748878488794888048881488824888348884488854888648887488884888948890488914889248893488944889548896488974889848899489004890148902489034890448905489064890748908489094891048911489124891348914489154891648917489184891948920489214892248923489244892548926489274892848929489304893148932489334893448935489364893748938489394894048941489424894348944489454894648947489484894948950489514895248953489544895548956489574895848959489604896148962489634896448965489664896748968489694897048971489724897348974489754897648977489784897948980489814898248983489844898548986489874898848989489904899148992489934899448995489964899748998489994900049001490024900349004490054900649007490084900949010490114901249013490144901549016490174901849019490204902149022490234902449025490264902749028490294903049031490324903349034490354903649037490384903949040490414904249043490444904549046490474904849049490504905149052490534905449055490564905749058490594906049061490624906349064490654906649067490684906949070490714907249073490744907549076490774907849079490804908149082490834908449085490864908749088490894909049091490924909349094490954909649097490984909949100491014910249103491044910549106491074910849109491104911149112491134911449115491164911749118491194912049121491224912349124491254912649127491284912949130491314913249133491344913549136491374913849139491404914149142491434914449145491464914749148491494915049151491524915349154491554915649157491584915949160491614916249163491644916549166491674916849169491704917149172491734917449175491764917749178491794918049181491824918349184491854918649187491884918949190491914919249193491944919549196491974919849199492004920149202492034920449205492064920749208492094921049211492124921349214492154921649217492184921949220492214922249223492244922549226492274922849229492304923149232492334923449235492364923749238492394924049241492424924349244492454924649247492484924949250492514925249253492544925549256492574925849259492604926149262492634926449265492664926749268492694927049271492724927349274492754927649277492784927949280492814928249283492844928549286492874928849289492904929149292492934929449295492964929749298492994930049301493024930349304493054930649307493084930949310493114931249313493144931549316493174931849319493204932149322493234932449325493264932749328493294933049331493324933349334493354933649337493384933949340493414934249343493444934549346493474934849349493504935149352493534935449355493564935749358493594936049361493624936349364493654936649367493684936949370493714937249373493744937549376493774937849379493804938149382493834938449385493864938749388493894939049391493924939349394493954939649397493984939949400494014940249403494044940549406494074940849409494104941149412494134941449415494164941749418494194942049421494224942349424494254942649427494284942949430494314943249433494344943549436494374943849439494404944149442494434944449445494464944749448494494945049451494524945349454494554945649457494584945949460494614946249463494644946549466494674946849469494704947149472494734947449475494764947749478494794948049481494824948349484494854948649487494884948949490494914949249493494944949549496494974949849499495004950149502495034950449505495064950749508495094951049511495124951349514495154951649517495184951949520495214952249523495244952549526495274952849529495304953149532495334953449535495364953749538495394954049541495424954349544495454954649547495484954949550495514955249553495544955549556495574955849559495604956149562495634956449565495664956749568495694957049571495724957349574495754957649577495784957949580495814958249583495844958549586495874958849589495904959149592495934959449595495964959749598495994960049601496024960349604496054960649607496084960949610496114961249613496144961549616496174961849619496204962149622496234962449625496264962749628496294963049631496324963349634496354963649637496384963949640496414964249643496444964549646496474964849649496504965149652496534965449655496564965749658496594966049661496624966349664496654966649667496684966949670496714967249673496744967549676496774967849679496804968149682496834968449685496864968749688496894969049691496924969349694496954969649697496984969949700497014970249703497044970549706497074970849709497104971149712497134971449715497164971749718497194972049721497224972349724497254972649727497284972949730497314973249733497344973549736497374973849739497404974149742497434974449745497464974749748497494975049751497524975349754497554975649757497584975949760497614976249763497644976549766497674976849769497704977149772497734977449775497764977749778497794978049781497824978349784497854978649787497884978949790497914979249793497944979549796497974979849799498004980149802498034980449805498064980749808498094981049811498124981349814498154981649817498184981949820498214982249823498244982549826498274982849829498304983149832498334983449835498364983749838498394984049841498424984349844498454984649847498484984949850498514985249853498544985549856498574985849859498604986149862498634986449865498664986749868498694987049871498724987349874498754987649877498784987949880498814988249883498844988549886498874988849889498904989149892498934989449895498964989749898498994990049901499024990349904499054990649907499084990949910499114991249913499144991549916499174991849919499204992149922499234992449925499264992749928499294993049931499324993349934499354993649937499384993949940499414994249943499444994549946499474994849949499504995149952499534995449955499564995749958499594996049961499624996349964499654996649967499684996949970499714997249973499744997549976499774997849979499804998149982499834998449985499864998749988499894999049991499924999349994499954999649997499984999950000500015000250003500045000550006500075000850009500105001150012500135001450015500165001750018500195002050021500225002350024500255002650027500285002950030500315003250033500345003550036500375003850039500405004150042500435004450045500465004750048500495005050051500525005350054500555005650057500585005950060500615006250063500645006550066500675006850069500705007150072500735007450075500765007750078500795008050081500825008350084500855008650087500885008950090500915009250093500945009550096500975009850099501005010150102501035010450105501065010750108501095011050111501125011350114501155011650117501185011950120501215012250123501245012550126501275012850129501305013150132501335013450135501365013750138501395014050141501425014350144501455014650147501485014950150501515015250153501545015550156501575015850159501605016150162501635016450165501665016750168501695017050171501725017350174501755017650177501785017950180501815018250183501845018550186501875018850189501905019150192501935019450195501965019750198501995020050201502025020350204502055020650207502085020950210502115021250213502145021550216502175021850219502205022150222502235022450225502265022750228502295023050231502325023350234502355023650237502385023950240502415024250243502445024550246502475024850249502505025150252502535025450255502565025750258502595026050261502625026350264502655026650267502685026950270502715027250273502745027550276502775027850279502805028150282502835028450285502865028750288502895029050291502925029350294502955029650297502985029950300503015030250303503045030550306503075030850309503105031150312503135031450315503165031750318503195032050321503225032350324503255032650327503285032950330503315033250333503345033550336503375033850339503405034150342503435034450345503465034750348503495035050351503525035350354503555035650357503585035950360503615036250363503645036550366503675036850369503705037150372503735037450375503765037750378503795038050381503825038350384503855038650387503885038950390503915039250393503945039550396503975039850399504005040150402504035040450405504065040750408504095041050411504125041350414504155041650417504185041950420504215042250423504245042550426504275042850429504305043150432504335043450435504365043750438504395044050441504425044350444504455044650447504485044950450504515045250453504545045550456504575045850459504605046150462504635046450465504665046750468504695047050471504725047350474504755047650477504785047950480504815048250483504845048550486504875048850489504905049150492504935049450495504965049750498504995050050501505025050350504505055050650507505085050950510505115051250513505145051550516505175051850519505205052150522505235052450525505265052750528505295053050531505325053350534505355053650537505385053950540505415054250543505445054550546505475054850549505505055150552505535055450555505565055750558505595056050561505625056350564505655056650567505685056950570505715057250573505745057550576505775057850579505805058150582505835058450585505865058750588505895059050591505925059350594505955059650597505985059950600506015060250603506045060550606506075060850609506105061150612506135061450615506165061750618506195062050621506225062350624506255062650627506285062950630506315063250633506345063550636506375063850639506405064150642506435064450645506465064750648506495065050651506525065350654506555065650657506585065950660506615066250663506645066550666506675066850669506705067150672506735067450675506765067750678506795068050681506825068350684506855068650687506885068950690506915069250693506945069550696506975069850699507005070150702507035070450705507065070750708507095071050711507125071350714507155071650717507185071950720507215072250723507245072550726507275072850729507305073150732507335073450735507365073750738507395074050741507425074350744507455074650747507485074950750507515075250753507545075550756507575075850759507605076150762507635076450765507665076750768507695077050771507725077350774507755077650777507785077950780507815078250783507845078550786507875078850789507905079150792507935079450795507965079750798507995080050801508025080350804508055080650807508085080950810508115081250813508145081550816508175081850819508205082150822508235082450825508265082750828508295083050831508325083350834508355083650837508385083950840508415084250843508445084550846508475084850849508505085150852508535085450855508565085750858508595086050861508625086350864508655086650867508685086950870508715087250873508745087550876508775087850879508805088150882508835088450885508865088750888508895089050891508925089350894508955089650897508985089950900509015090250903509045090550906509075090850909509105091150912509135091450915509165091750918509195092050921509225092350924509255092650927509285092950930509315093250933509345093550936509375093850939509405094150942509435094450945509465094750948509495095050951509525095350954509555095650957509585095950960509615096250963509645096550966509675096850969509705097150972509735097450975509765097750978509795098050981509825098350984509855098650987509885098950990509915099250993509945099550996509975099850999510005100151002510035100451005510065100751008510095101051011510125101351014510155101651017510185101951020510215102251023510245102551026510275102851029510305103151032510335103451035510365103751038510395104051041510425104351044510455104651047510485104951050510515105251053510545105551056510575105851059510605106151062510635106451065510665106751068510695107051071510725107351074510755107651077510785107951080510815108251083510845108551086510875108851089510905109151092510935109451095510965109751098510995110051101511025110351104511055110651107511085110951110511115111251113511145111551116511175111851119511205112151122511235112451125511265112751128511295113051131511325113351134511355113651137511385113951140511415114251143511445114551146511475114851149511505115151152511535115451155511565115751158511595116051161511625116351164511655116651167511685116951170511715117251173511745117551176511775117851179511805118151182511835118451185511865118751188511895119051191511925119351194511955119651197511985119951200512015120251203512045120551206512075120851209512105121151212512135121451215512165121751218512195122051221512225122351224512255122651227512285122951230512315123251233512345123551236512375123851239512405124151242512435124451245512465124751248512495125051251512525125351254512555125651257512585125951260512615126251263512645126551266512675126851269512705127151272512735127451275512765127751278512795128051281512825128351284512855128651287512885128951290512915129251293512945129551296512975129851299513005130151302513035130451305513065130751308513095131051311513125131351314513155131651317513185131951320513215132251323513245132551326513275132851329513305133151332513335133451335513365133751338513395134051341513425134351344513455134651347513485134951350513515135251353513545135551356513575135851359513605136151362513635136451365513665136751368513695137051371513725137351374513755137651377513785137951380513815138251383513845138551386513875138851389513905139151392513935139451395513965139751398513995140051401514025140351404514055140651407514085140951410514115141251413514145141551416514175141851419514205142151422514235142451425514265142751428514295143051431514325143351434514355143651437514385143951440514415144251443514445144551446514475144851449514505145151452514535145451455514565145751458514595146051461514625146351464514655146651467514685146951470514715147251473514745147551476514775147851479514805148151482514835148451485514865148751488514895149051491514925149351494514955149651497514985149951500515015150251503515045150551506515075150851509515105151151512515135151451515515165151751518515195152051521515225152351524515255152651527515285152951530515315153251533515345153551536515375153851539515405154151542515435154451545515465154751548515495155051551515525155351554515555155651557515585155951560515615156251563515645156551566515675156851569515705157151572515735157451575515765157751578515795158051581515825158351584515855158651587515885158951590515915159251593515945159551596515975159851599516005160151602516035160451605516065160751608516095161051611516125161351614516155161651617516185161951620516215162251623516245162551626516275162851629516305163151632516335163451635516365163751638516395164051641516425164351644516455164651647516485164951650516515165251653516545165551656516575165851659516605166151662516635166451665516665166751668516695167051671516725167351674516755167651677516785167951680516815168251683516845168551686516875168851689516905169151692516935169451695516965169751698516995170051701517025170351704517055170651707517085170951710517115171251713517145171551716517175171851719517205172151722517235172451725517265172751728517295173051731517325173351734517355173651737517385173951740517415174251743517445174551746517475174851749517505175151752517535175451755517565175751758517595176051761517625176351764517655176651767517685176951770517715177251773517745177551776517775177851779517805178151782517835178451785517865178751788517895179051791517925179351794517955179651797517985179951800518015180251803518045180551806518075180851809518105181151812518135181451815518165181751818518195182051821518225182351824518255182651827518285182951830518315183251833518345183551836518375183851839518405184151842518435184451845518465184751848518495185051851518525185351854518555185651857518585185951860518615186251863518645186551866518675186851869518705187151872518735187451875518765187751878518795188051881518825188351884518855188651887518885188951890518915189251893518945189551896518975189851899519005190151902519035190451905519065190751908519095191051911519125191351914519155191651917519185191951920519215192251923519245192551926519275192851929519305193151932519335193451935519365193751938519395194051941519425194351944519455194651947519485194951950519515195251953519545195551956519575195851959519605196151962519635196451965519665196751968519695197051971519725197351974519755197651977519785197951980519815198251983519845198551986519875198851989519905199151992519935199451995519965199751998519995200052001520025200352004520055200652007520085200952010520115201252013520145201552016520175201852019520205202152022520235202452025520265202752028520295203052031520325203352034520355203652037520385203952040520415204252043520445204552046520475204852049520505205152052520535205452055520565205752058520595206052061520625206352064520655206652067520685206952070520715207252073520745207552076520775207852079520805208152082520835208452085520865208752088520895209052091520925209352094520955209652097520985209952100521015210252103521045210552106521075210852109521105211152112521135211452115521165211752118521195212052121521225212352124521255212652127521285212952130521315213252133521345213552136521375213852139521405214152142521435214452145521465214752148521495215052151521525215352154521555215652157521585215952160521615216252163521645216552166521675216852169521705217152172521735217452175521765217752178521795218052181521825218352184521855218652187521885218952190521915219252193521945219552196521975219852199522005220152202522035220452205522065220752208522095221052211522125221352214522155221652217522185221952220522215222252223522245222552226522275222852229522305223152232522335223452235522365223752238522395224052241522425224352244522455224652247522485224952250522515225252253522545225552256522575225852259522605226152262522635226452265522665226752268522695227052271522725227352274522755227652277522785227952280522815228252283522845228552286522875228852289522905229152292522935229452295522965229752298522995230052301523025230352304523055230652307523085230952310523115231252313523145231552316523175231852319523205232152322523235232452325523265232752328523295233052331523325233352334523355233652337523385233952340523415234252343523445234552346523475234852349523505235152352523535235452355523565235752358523595236052361523625236352364523655236652367523685236952370523715237252373523745237552376523775237852379523805238152382523835238452385523865238752388523895239052391523925239352394523955239652397523985239952400524015240252403524045240552406524075240852409524105241152412524135241452415524165241752418524195242052421524225242352424524255242652427524285242952430524315243252433524345243552436524375243852439524405244152442524435244452445524465244752448524495245052451524525245352454524555245652457524585245952460524615246252463524645246552466524675246852469524705247152472524735247452475524765247752478524795248052481524825248352484524855248652487524885248952490524915249252493524945249552496524975249852499525005250152502525035250452505525065250752508525095251052511525125251352514525155251652517525185251952520525215252252523525245252552526525275252852529525305253152532525335253452535525365253752538525395254052541525425254352544525455254652547525485254952550525515255252553525545255552556525575255852559525605256152562525635256452565525665256752568525695257052571525725257352574525755257652577525785257952580525815258252583525845258552586525875258852589525905259152592525935259452595525965259752598525995260052601526025260352604526055260652607526085260952610526115261252613526145261552616526175261852619526205262152622526235262452625526265262752628526295263052631526325263352634526355263652637526385263952640526415264252643526445264552646526475264852649526505265152652526535265452655526565265752658526595266052661526625266352664526655266652667526685266952670526715267252673526745267552676526775267852679526805268152682526835268452685526865268752688526895269052691526925269352694526955269652697526985269952700527015270252703527045270552706527075270852709527105271152712527135271452715527165271752718527195272052721527225272352724527255272652727527285272952730527315273252733527345273552736527375273852739527405274152742527435274452745527465274752748527495275052751527525275352754527555275652757527585275952760527615276252763527645276552766527675276852769527705277152772527735277452775527765277752778527795278052781527825278352784527855278652787527885278952790527915279252793527945279552796527975279852799528005280152802528035280452805528065280752808528095281052811528125281352814528155281652817528185281952820528215282252823528245282552826528275282852829528305283152832528335283452835528365283752838528395284052841528425284352844528455284652847528485284952850528515285252853528545285552856528575285852859528605286152862528635286452865528665286752868528695287052871528725287352874528755287652877528785287952880528815288252883528845288552886528875288852889528905289152892528935289452895528965289752898528995290052901529025290352904529055290652907529085290952910529115291252913529145291552916529175291852919529205292152922529235292452925529265292752928529295293052931529325293352934529355293652937529385293952940529415294252943529445294552946529475294852949529505295152952529535295452955529565295752958529595296052961529625296352964529655296652967529685296952970529715297252973529745297552976529775297852979529805298152982529835298452985529865298752988529895299052991529925299352994529955299652997529985299953000530015300253003530045300553006530075300853009530105301153012530135301453015530165301753018530195302053021530225302353024530255302653027530285302953030530315303253033530345303553036530375303853039530405304153042530435304453045530465304753048530495305053051530525305353054530555305653057530585305953060530615306253063530645306553066530675306853069530705307153072530735307453075530765307753078530795308053081530825308353084530855308653087530885308953090530915309253093530945309553096530975309853099531005310153102531035310453105531065310753108531095311053111531125311353114531155311653117531185311953120531215312253123531245312553126531275312853129531305313153132531335313453135531365313753138531395314053141531425314353144531455314653147531485314953150531515315253153531545315553156531575315853159531605316153162531635316453165531665316753168531695317053171531725317353174531755317653177531785317953180531815318253183531845318553186531875318853189531905319153192531935319453195531965319753198531995320053201532025320353204532055320653207532085320953210532115321253213532145321553216532175321853219532205322153222532235322453225532265322753228532295323053231532325323353234532355323653237532385323953240532415324253243532445324553246532475324853249532505325153252532535325453255532565325753258532595326053261532625326353264532655326653267532685326953270532715327253273532745327553276532775327853279532805328153282532835328453285532865328753288532895329053291532925329353294532955329653297532985329953300533015330253303533045330553306533075330853309533105331153312533135331453315533165331753318533195332053321533225332353324533255332653327533285332953330533315333253333533345333553336533375333853339533405334153342533435334453345533465334753348533495335053351533525335353354533555335653357533585335953360533615336253363533645336553366533675336853369533705337153372533735337453375533765337753378533795338053381533825338353384533855338653387533885338953390533915339253393533945339553396533975339853399534005340153402534035340453405534065340753408534095341053411534125341353414534155341653417534185341953420534215342253423534245342553426534275342853429534305343153432534335343453435534365343753438534395344053441534425344353444534455344653447534485344953450534515345253453534545345553456534575345853459534605346153462534635346453465534665346753468534695347053471534725347353474534755347653477534785347953480534815348253483534845348553486534875348853489534905349153492534935349453495534965349753498534995350053501535025350353504535055350653507535085350953510535115351253513535145351553516535175351853519535205352153522535235352453525535265352753528535295353053531535325353353534535355353653537535385353953540535415354253543535445354553546535475354853549535505355153552535535355453555535565355753558535595356053561535625356353564535655356653567535685356953570535715357253573535745357553576535775357853579535805358153582535835358453585535865358753588535895359053591535925359353594535955359653597535985359953600536015360253603536045360553606536075360853609536105361153612536135361453615536165361753618536195362053621536225362353624536255362653627536285362953630536315363253633536345363553636536375363853639536405364153642536435364453645536465364753648536495365053651536525365353654536555365653657536585365953660536615366253663536645366553666536675366853669536705367153672536735367453675536765367753678536795368053681536825368353684536855368653687536885368953690536915369253693536945369553696536975369853699537005370153702537035370453705537065370753708537095371053711537125371353714537155371653717537185371953720537215372253723537245372553726537275372853729537305373153732537335373453735537365373753738537395374053741537425374353744537455374653747537485374953750537515375253753537545375553756537575375853759537605376153762537635376453765537665376753768537695377053771537725377353774537755377653777537785377953780537815378253783537845378553786537875378853789537905379153792537935379453795537965379753798537995380053801538025380353804538055380653807538085380953810538115381253813538145381553816538175381853819538205382153822538235382453825538265382753828538295383053831538325383353834538355383653837538385383953840538415384253843538445384553846538475384853849538505385153852538535385453855538565385753858538595386053861538625386353864538655386653867538685386953870538715387253873538745387553876538775387853879538805388153882538835388453885538865388753888538895389053891538925389353894538955389653897538985389953900539015390253903539045390553906539075390853909539105391153912539135391453915539165391753918539195392053921539225392353924539255392653927539285392953930539315393253933539345393553936539375393853939539405394153942539435394453945539465394753948539495395053951539525395353954539555395653957539585395953960539615396253963539645396553966539675396853969539705397153972539735397453975539765397753978539795398053981539825398353984539855398653987539885398953990539915399253993539945399553996539975399853999540005400154002540035400454005540065400754008540095401054011540125401354014540155401654017540185401954020540215402254023540245402554026540275402854029540305403154032540335403454035540365403754038540395404054041540425404354044540455404654047540485404954050540515405254053540545405554056540575405854059540605406154062540635406454065540665406754068540695407054071540725407354074540755407654077540785407954080540815408254083540845408554086540875408854089540905409154092540935409454095540965409754098540995410054101541025410354104541055410654107541085410954110541115411254113541145411554116541175411854119541205412154122541235412454125541265412754128541295413054131541325413354134541355413654137541385413954140541415414254143541445414554146541475414854149541505415154152541535415454155541565415754158541595416054161541625416354164541655416654167541685416954170541715417254173541745417554176541775417854179541805418154182541835418454185541865418754188541895419054191541925419354194541955419654197541985419954200542015420254203542045420554206542075420854209542105421154212542135421454215542165421754218542195422054221542225422354224542255422654227542285422954230542315423254233542345423554236542375423854239542405424154242542435424454245542465424754248542495425054251542525425354254542555425654257542585425954260542615426254263542645426554266542675426854269542705427154272542735427454275542765427754278542795428054281542825428354284542855428654287542885428954290542915429254293542945429554296542975429854299543005430154302543035430454305543065430754308543095431054311543125431354314543155431654317543185431954320543215432254323543245432554326543275432854329543305433154332543335433454335543365433754338543395434054341543425434354344543455434654347543485434954350543515435254353543545435554356543575435854359543605436154362543635436454365543665436754368543695437054371543725437354374543755437654377543785437954380543815438254383543845438554386543875438854389543905439154392543935439454395543965439754398543995440054401544025440354404544055440654407544085440954410544115441254413544145441554416544175441854419544205442154422544235442454425544265442754428544295443054431544325443354434544355443654437544385443954440544415444254443544445444554446544475444854449544505445154452544535445454455544565445754458544595446054461544625446354464544655446654467544685446954470544715447254473544745447554476544775447854479544805448154482544835448454485544865448754488544895449054491544925449354494544955449654497544985449954500545015450254503545045450554506545075450854509545105451154512545135451454515545165451754518545195452054521545225452354524545255452654527545285452954530545315453254533545345453554536545375453854539545405454154542545435454454545545465454754548545495455054551545525455354554545555455654557545585455954560545615456254563545645456554566545675456854569545705457154572545735457454575545765457754578545795458054581545825458354584545855458654587545885458954590545915459254593545945459554596545975459854599546005460154602546035460454605546065460754608546095461054611546125461354614546155461654617546185461954620546215462254623546245462554626546275462854629546305463154632546335463454635546365463754638546395464054641546425464354644546455464654647546485464954650546515465254653546545465554656546575465854659546605466154662546635466454665546665466754668546695467054671546725467354674546755467654677546785467954680546815468254683546845468554686546875468854689546905469154692546935469454695546965469754698546995470054701547025470354704547055470654707547085470954710547115471254713547145471554716547175471854719547205472154722547235472454725547265472754728547295473054731547325473354734547355473654737547385473954740547415474254743547445474554746547475474854749547505475154752547535475454755547565475754758547595476054761547625476354764547655476654767547685476954770547715477254773547745477554776547775477854779547805478154782547835478454785547865478754788547895479054791547925479354794547955479654797547985479954800548015480254803548045480554806548075480854809548105481154812548135481454815548165481754818548195482054821548225482354824548255482654827548285482954830548315483254833548345483554836548375483854839548405484154842548435484454845548465484754848548495485054851548525485354854548555485654857548585485954860548615486254863548645486554866548675486854869548705487154872548735487454875548765487754878548795488054881548825488354884548855488654887548885488954890548915489254893548945489554896548975489854899549005490154902549035490454905549065490754908549095491054911549125491354914549155491654917549185491954920549215492254923549245492554926549275492854929549305493154932549335493454935549365493754938549395494054941549425494354944549455494654947549485494954950549515495254953549545495554956549575495854959549605496154962549635496454965549665496754968549695497054971549725497354974549755497654977549785497954980549815498254983549845498554986549875498854989549905499154992549935499454995549965499754998549995500055001550025500355004550055500655007550085500955010550115501255013550145501555016550175501855019550205502155022550235502455025550265502755028550295503055031550325503355034550355503655037550385503955040550415504255043550445504555046550475504855049550505505155052550535505455055550565505755058550595506055061550625506355064550655506655067550685506955070550715507255073550745507555076550775507855079550805508155082550835508455085550865508755088550895509055091550925509355094550955509655097550985509955100551015510255103551045510555106551075510855109551105511155112551135511455115551165511755118551195512055121551225512355124551255512655127551285512955130551315513255133551345513555136551375513855139551405514155142551435514455145551465514755148551495515055151551525515355154551555515655157551585515955160551615516255163551645516555166551675516855169551705517155172551735517455175551765517755178551795518055181551825518355184551855518655187551885518955190551915519255193551945519555196551975519855199552005520155202552035520455205552065520755208552095521055211552125521355214552155521655217552185521955220552215522255223552245522555226552275522855229552305523155232552335523455235552365523755238552395524055241552425524355244552455524655247552485524955250552515525255253552545525555256552575525855259552605526155262552635526455265552665526755268552695527055271552725527355274552755527655277552785527955280552815528255283552845528555286552875528855289552905529155292552935529455295552965529755298552995530055301553025530355304553055530655307553085530955310553115531255313553145531555316553175531855319553205532155322553235532455325553265532755328553295533055331553325533355334553355533655337553385533955340553415534255343553445534555346553475534855349553505535155352553535535455355553565535755358553595536055361553625536355364553655536655367553685536955370553715537255373553745537555376553775537855379553805538155382553835538455385553865538755388553895539055391553925539355394553955539655397553985539955400554015540255403554045540555406554075540855409554105541155412554135541455415554165541755418554195542055421554225542355424554255542655427554285542955430554315543255433554345543555436554375543855439554405544155442554435544455445554465544755448554495545055451554525545355454554555545655457554585545955460554615546255463554645546555466554675546855469554705547155472554735547455475554765547755478554795548055481554825548355484554855548655487554885548955490554915549255493554945549555496554975549855499555005550155502555035550455505555065550755508555095551055511555125551355514555155551655517555185551955520555215552255523555245552555526555275552855529555305553155532555335553455535555365553755538555395554055541555425554355544555455554655547555485554955550555515555255553555545555555556555575555855559555605556155562555635556455565555665556755568555695557055571555725557355574555755557655577555785557955580555815558255583555845558555586555875558855589555905559155592555935559455595555965559755598555995560055601556025560355604556055560655607556085560955610556115561255613556145561555616556175561855619556205562155622556235562455625556265562755628556295563055631556325563355634556355563655637556385563955640556415564255643556445564555646556475564855649556505565155652556535565455655556565565755658556595566055661556625566355664556655566655667556685566955670556715567255673556745567555676556775567855679556805568155682556835568455685556865568755688556895569055691556925569355694556955569655697556985569955700557015570255703557045570555706557075570855709557105571155712557135571455715557165571755718557195572055721557225572355724557255572655727557285572955730557315573255733557345573555736557375573855739557405574155742557435574455745557465574755748557495575055751557525575355754557555575655757557585575955760557615576255763557645576555766557675576855769557705577155772557735577455775557765577755778557795578055781557825578355784557855578655787557885578955790557915579255793557945579555796557975579855799558005580155802558035580455805558065580755808558095581055811558125581355814558155581655817558185581955820558215582255823558245582555826558275582855829558305583155832558335583455835558365583755838558395584055841558425584355844558455584655847558485584955850558515585255853558545585555856558575585855859558605586155862558635586455865558665586755868558695587055871558725587355874558755587655877558785587955880558815588255883558845588555886558875588855889558905589155892558935589455895558965589755898558995590055901559025590355904559055590655907559085590955910559115591255913559145591555916559175591855919559205592155922559235592455925559265592755928559295593055931559325593355934559355593655937559385593955940559415594255943559445594555946559475594855949559505595155952559535595455955559565595755958559595596055961559625596355964559655596655967559685596955970559715597255973559745597555976559775597855979559805598155982559835598455985559865598755988559895599055991559925599355994559955599655997559985599956000560015600256003560045600556006560075600856009560105601156012560135601456015560165601756018560195602056021560225602356024560255602656027560285602956030560315603256033560345603556036560375603856039560405604156042560435604456045560465604756048560495605056051560525605356054560555605656057560585605956060560615606256063560645606556066560675606856069560705607156072560735607456075560765607756078560795608056081560825608356084560855608656087560885608956090560915609256093560945609556096560975609856099561005610156102561035610456105561065610756108561095611056111561125611356114561155611656117561185611956120561215612256123561245612556126561275612856129561305613156132561335613456135561365613756138561395614056141561425614356144561455614656147561485614956150561515615256153561545615556156561575615856159561605616156162561635616456165561665616756168561695617056171561725617356174561755617656177561785617956180561815618256183561845618556186561875618856189561905619156192561935619456195561965619756198561995620056201562025620356204562055620656207562085620956210562115621256213562145621556216562175621856219562205622156222562235622456225562265622756228562295623056231562325623356234562355623656237562385623956240562415624256243562445624556246562475624856249562505625156252562535625456255562565625756258562595626056261562625626356264562655626656267562685626956270562715627256273562745627556276562775627856279562805628156282562835628456285562865628756288562895629056291562925629356294562955629656297562985629956300563015630256303563045630556306563075630856309563105631156312563135631456315563165631756318563195632056321563225632356324563255632656327563285632956330563315633256333563345633556336563375633856339563405634156342563435634456345563465634756348563495635056351563525635356354563555635656357563585635956360563615636256363563645636556366563675636856369563705637156372563735637456375563765637756378563795638056381563825638356384563855638656387563885638956390563915639256393563945639556396563975639856399564005640156402564035640456405564065640756408564095641056411564125641356414564155641656417564185641956420564215642256423564245642556426564275642856429564305643156432564335643456435564365643756438564395644056441564425644356444564455644656447564485644956450564515645256453564545645556456564575645856459564605646156462564635646456465564665646756468564695647056471564725647356474564755647656477564785647956480564815648256483564845648556486564875648856489564905649156492564935649456495564965649756498564995650056501565025650356504565055650656507565085650956510565115651256513565145651556516565175651856519565205652156522565235652456525565265652756528565295653056531565325653356534565355653656537565385653956540565415654256543565445654556546565475654856549565505655156552565535655456555565565655756558565595656056561565625656356564565655656656567565685656956570565715657256573565745657556576565775657856579565805658156582565835658456585565865658756588565895659056591565925659356594565955659656597565985659956600566015660256603566045660556606566075660856609566105661156612566135661456615566165661756618566195662056621566225662356624566255662656627566285662956630566315663256633566345663556636566375663856639566405664156642566435664456645566465664756648566495665056651566525665356654566555665656657566585665956660566615666256663566645666556666566675666856669566705667156672566735667456675566765667756678566795668056681566825668356684566855668656687566885668956690566915669256693566945669556696566975669856699567005670156702567035670456705567065670756708567095671056711567125671356714567155671656717567185671956720567215672256723567245672556726567275672856729567305673156732567335673456735567365673756738567395674056741567425674356744567455674656747567485674956750567515675256753567545675556756567575675856759567605676156762567635676456765567665676756768567695677056771567725677356774567755677656777567785677956780567815678256783567845678556786567875678856789567905679156792567935679456795567965679756798567995680056801568025680356804568055680656807568085680956810568115681256813568145681556816568175681856819568205682156822568235682456825568265682756828568295683056831568325683356834568355683656837568385683956840568415684256843568445684556846568475684856849568505685156852568535685456855568565685756858568595686056861568625686356864568655686656867568685686956870568715687256873568745687556876568775687856879568805688156882568835688456885568865688756888568895689056891568925689356894568955689656897568985689956900569015690256903569045690556906569075690856909569105691156912569135691456915569165691756918569195692056921569225692356924569255692656927569285692956930569315693256933569345693556936569375693856939569405694156942569435694456945569465694756948569495695056951569525695356954569555695656957569585695956960569615696256963569645696556966569675696856969569705697156972569735697456975569765697756978569795698056981569825698356984569855698656987569885698956990569915699256993569945699556996569975699856999570005700157002570035700457005570065700757008570095701057011570125701357014570155701657017570185701957020570215702257023570245702557026570275702857029570305703157032570335703457035570365703757038570395704057041570425704357044570455704657047570485704957050570515705257053570545705557056570575705857059570605706157062570635706457065570665706757068570695707057071570725707357074570755707657077570785707957080570815708257083570845708557086570875708857089570905709157092570935709457095570965709757098570995710057101571025710357104571055710657107571085710957110571115711257113571145711557116571175711857119571205712157122571235712457125571265712757128571295713057131571325713357134571355713657137571385713957140571415714257143571445714557146571475714857149571505715157152571535715457155571565715757158571595716057161571625716357164571655716657167571685716957170571715717257173571745717557176571775717857179571805718157182571835718457185571865718757188571895719057191571925719357194571955719657197571985719957200572015720257203572045720557206572075720857209572105721157212572135721457215572165721757218572195722057221572225722357224572255722657227572285722957230572315723257233572345723557236572375723857239572405724157242572435724457245572465724757248572495725057251572525725357254572555725657257572585725957260572615726257263572645726557266572675726857269572705727157272572735727457275572765727757278572795728057281572825728357284572855728657287572885728957290572915729257293572945729557296572975729857299573005730157302573035730457305573065730757308573095731057311573125731357314573155731657317573185731957320573215732257323573245732557326573275732857329573305733157332573335733457335573365733757338573395734057341573425734357344573455734657347573485734957350573515735257353573545735557356573575735857359573605736157362573635736457365573665736757368573695737057371573725737357374573755737657377573785737957380573815738257383573845738557386573875738857389573905739157392573935739457395573965739757398573995740057401574025740357404574055740657407574085740957410574115741257413574145741557416574175741857419574205742157422574235742457425574265742757428574295743057431574325743357434574355743657437574385743957440574415744257443574445744557446574475744857449574505745157452574535745457455574565745757458574595746057461574625746357464574655746657467574685746957470574715747257473574745747557476574775747857479574805748157482574835748457485574865748757488574895749057491574925749357494574955749657497574985749957500575015750257503575045750557506575075750857509575105751157512575135751457515575165751757518575195752057521575225752357524575255752657527575285752957530575315753257533575345753557536575375753857539575405754157542575435754457545575465754757548575495755057551575525755357554575555755657557575585755957560575615756257563575645756557566575675756857569575705757157572575735757457575575765757757578575795758057581575825758357584575855758657587575885758957590575915759257593575945759557596575975759857599576005760157602576035760457605576065760757608576095761057611576125761357614576155761657617576185761957620576215762257623576245762557626576275762857629576305763157632576335763457635576365763757638576395764057641576425764357644576455764657647576485764957650576515765257653576545765557656576575765857659576605766157662576635766457665576665766757668576695767057671576725767357674576755767657677576785767957680576815768257683576845768557686576875768857689576905769157692576935769457695576965769757698576995770057701577025770357704577055770657707577085770957710577115771257713577145771557716577175771857719577205772157722577235772457725577265772757728577295773057731577325773357734577355773657737577385773957740577415774257743577445774557746577475774857749577505775157752577535775457755577565775757758577595776057761577625776357764577655776657767577685776957770577715777257773577745777557776577775777857779577805778157782577835778457785577865778757788577895779057791577925779357794577955779657797577985779957800578015780257803578045780557806578075780857809578105781157812578135781457815578165781757818578195782057821578225782357824578255782657827578285782957830578315783257833578345783557836578375783857839578405784157842578435784457845578465784757848578495785057851578525785357854578555785657857578585785957860578615786257863578645786557866578675786857869578705787157872578735787457875578765787757878578795788057881578825788357884578855788657887578885788957890578915789257893578945789557896578975789857899579005790157902579035790457905579065790757908579095791057911579125791357914579155791657917579185791957920579215792257923579245792557926579275792857929579305793157932579335793457935579365793757938579395794057941579425794357944579455794657947579485794957950579515795257953579545795557956579575795857959579605796157962579635796457965579665796757968579695797057971579725797357974579755797657977579785797957980579815798257983579845798557986579875798857989579905799157992579935799457995579965799757998579995800058001580025800358004580055800658007580085800958010580115801258013580145801558016580175801858019580205802158022580235802458025580265802758028580295803058031580325803358034580355803658037580385803958040580415804258043580445804558046580475804858049580505805158052580535805458055580565805758058580595806058061580625806358064580655806658067580685806958070580715807258073580745807558076580775807858079580805808158082580835808458085580865808758088580895809058091580925809358094580955809658097580985809958100581015810258103581045810558106581075810858109581105811158112581135811458115581165811758118581195812058121581225812358124581255812658127581285812958130581315813258133581345813558136581375813858139581405814158142581435814458145581465814758148581495815058151581525815358154581555815658157581585815958160581615816258163581645816558166581675816858169581705817158172581735817458175581765817758178581795818058181581825818358184581855818658187581885818958190581915819258193581945819558196581975819858199582005820158202582035820458205582065820758208582095821058211582125821358214582155821658217582185821958220582215822258223582245822558226582275822858229582305823158232582335823458235582365823758238582395824058241582425824358244582455824658247582485824958250582515825258253582545825558256582575825858259582605826158262582635826458265582665826758268582695827058271582725827358274582755827658277582785827958280582815828258283582845828558286582875828858289582905829158292582935829458295582965829758298582995830058301583025830358304583055830658307583085830958310583115831258313583145831558316583175831858319583205832158322583235832458325583265832758328583295833058331583325833358334583355833658337583385833958340583415834258343583445834558346583475834858349583505835158352583535835458355583565835758358583595836058361583625836358364583655836658367583685836958370583715837258373583745837558376583775837858379583805838158382583835838458385583865838758388583895839058391583925839358394583955839658397583985839958400584015840258403584045840558406584075840858409584105841158412584135841458415584165841758418584195842058421584225842358424584255842658427584285842958430584315843258433584345843558436584375843858439584405844158442584435844458445584465844758448584495845058451584525845358454584555845658457584585845958460584615846258463584645846558466584675846858469584705847158472584735847458475584765847758478584795848058481584825848358484584855848658487584885848958490584915849258493584945849558496584975849858499585005850158502585035850458505585065850758508585095851058511585125851358514585155851658517585185851958520585215852258523585245852558526585275852858529585305853158532585335853458535585365853758538585395854058541585425854358544585455854658547585485854958550585515855258553585545855558556585575855858559585605856158562585635856458565585665856758568585695857058571585725857358574585755857658577585785857958580585815858258583585845858558586585875858858589585905859158592585935859458595585965859758598585995860058601586025860358604586055860658607586085860958610586115861258613586145861558616586175861858619586205862158622586235862458625586265862758628586295863058631586325863358634586355863658637586385863958640586415864258643586445864558646586475864858649586505865158652586535865458655586565865758658586595866058661586625866358664586655866658667586685866958670586715867258673586745867558676586775867858679586805868158682586835868458685586865868758688586895869058691586925869358694586955869658697586985869958700587015870258703587045870558706587075870858709587105871158712587135871458715587165871758718587195872058721587225872358724587255872658727587285872958730587315873258733587345873558736587375873858739587405874158742587435874458745587465874758748587495875058751587525875358754587555875658757587585875958760587615876258763587645876558766587675876858769587705877158772587735877458775587765877758778587795878058781587825878358784587855878658787587885878958790587915879258793587945879558796587975879858799588005880158802588035880458805588065880758808588095881058811588125881358814588155881658817588185881958820588215882258823588245882558826588275882858829588305883158832588335883458835588365883758838588395884058841588425884358844588455884658847588485884958850588515885258853588545885558856588575885858859588605886158862588635886458865588665886758868588695887058871588725887358874588755887658877588785887958880588815888258883588845888558886588875888858889588905889158892588935889458895588965889758898588995890058901589025890358904589055890658907589085890958910589115891258913589145891558916589175891858919589205892158922589235892458925589265892758928589295893058931589325893358934589355893658937589385893958940589415894258943589445894558946589475894858949589505895158952589535895458955589565895758958589595896058961589625896358964589655896658967589685896958970589715897258973589745897558976589775897858979589805898158982589835898458985589865898758988589895899058991589925899358994589955899658997589985899959000590015900259003590045900559006590075900859009590105901159012590135901459015590165901759018590195902059021590225902359024590255902659027590285902959030590315903259033590345903559036590375903859039590405904159042590435904459045590465904759048590495905059051590525905359054590555905659057590585905959060590615906259063590645906559066590675906859069590705907159072590735907459075590765907759078590795908059081590825908359084590855908659087590885908959090590915909259093590945909559096590975909859099591005910159102591035910459105591065910759108591095911059111591125911359114591155911659117591185911959120591215912259123591245912559126591275912859129591305913159132591335913459135591365913759138591395914059141591425914359144591455914659147591485914959150591515915259153591545915559156591575915859159591605916159162591635916459165591665916759168591695917059171591725917359174591755917659177591785917959180591815918259183591845918559186591875918859189591905919159192591935919459195591965919759198591995920059201592025920359204592055920659207592085920959210592115921259213592145921559216592175921859219592205922159222592235922459225592265922759228592295923059231592325923359234592355923659237592385923959240592415924259243592445924559246592475924859249592505925159252592535925459255592565925759258592595926059261592625926359264592655926659267592685926959270592715927259273592745927559276592775927859279592805928159282592835928459285592865928759288592895929059291592925929359294592955929659297592985929959300593015930259303593045930559306593075930859309593105931159312593135931459315593165931759318593195932059321593225932359324593255932659327593285932959330593315933259333593345933559336593375933859339593405934159342593435934459345593465934759348593495935059351593525935359354593555935659357593585935959360593615936259363593645936559366593675936859369593705937159372593735937459375593765937759378593795938059381593825938359384593855938659387593885938959390593915939259393593945939559396593975939859399594005940159402594035940459405594065940759408594095941059411594125941359414594155941659417594185941959420594215942259423594245942559426594275942859429594305943159432594335943459435594365943759438594395944059441594425944359444594455944659447594485944959450594515945259453594545945559456594575945859459594605946159462594635946459465594665946759468594695947059471594725947359474594755947659477594785947959480594815948259483594845948559486594875948859489594905949159492594935949459495594965949759498594995950059501595025950359504595055950659507595085950959510595115951259513595145951559516595175951859519595205952159522595235952459525595265952759528595295953059531595325953359534595355953659537595385953959540595415954259543595445954559546595475954859549595505955159552595535955459555595565955759558595595956059561595625956359564595655956659567595685956959570595715957259573595745957559576595775957859579595805958159582595835958459585595865958759588595895959059591595925959359594595955959659597595985959959600596015960259603596045960559606596075960859609596105961159612596135961459615596165961759618596195962059621596225962359624596255962659627596285962959630596315963259633596345963559636596375963859639596405964159642596435964459645596465964759648596495965059651596525965359654596555965659657596585965959660596615966259663596645966559666596675966859669596705967159672596735967459675596765967759678596795968059681596825968359684596855968659687596885968959690596915969259693596945969559696596975969859699597005970159702597035970459705597065970759708597095971059711597125971359714597155971659717597185971959720597215972259723597245972559726597275972859729597305973159732597335973459735597365973759738597395974059741597425974359744597455974659747597485974959750597515975259753597545975559756597575975859759597605976159762597635976459765597665976759768597695977059771597725977359774597755977659777597785977959780597815978259783597845978559786597875978859789597905979159792597935979459795597965979759798597995980059801598025980359804598055980659807598085980959810598115981259813598145981559816598175981859819598205982159822598235982459825598265982759828598295983059831598325983359834598355983659837598385983959840598415984259843598445984559846598475984859849598505985159852598535985459855598565985759858598595986059861598625986359864598655986659867598685986959870598715987259873598745987559876598775987859879598805988159882598835988459885598865988759888598895989059891598925989359894598955989659897598985989959900599015990259903599045990559906599075990859909599105991159912599135991459915599165991759918599195992059921599225992359924599255992659927599285992959930599315993259933599345993559936599375993859939599405994159942599435994459945599465994759948599495995059951599525995359954599555995659957599585995959960599615996259963599645996559966599675996859969599705997159972599735997459975599765997759978599795998059981599825998359984599855998659987599885998959990599915999259993599945999559996599975999859999600006000160002600036000460005600066000760008600096001060011600126001360014600156001660017600186001960020600216002260023600246002560026600276002860029600306003160032600336003460035600366003760038600396004060041600426004360044600456004660047600486004960050600516005260053600546005560056600576005860059600606006160062600636006460065600666006760068600696007060071600726007360074600756007660077600786007960080600816008260083600846008560086600876008860089600906009160092600936009460095600966009760098600996010060101601026010360104601056010660107601086010960110601116011260113601146011560116601176011860119601206012160122601236012460125601266012760128601296013060131601326013360134601356013660137601386013960140601416014260143601446014560146601476014860149601506015160152601536015460155601566015760158601596016060161601626016360164601656016660167601686016960170601716017260173601746017560176601776017860179601806018160182601836018460185601866018760188601896019060191601926019360194601956019660197601986019960200602016020260203602046020560206602076020860209602106021160212602136021460215602166021760218602196022060221602226022360224602256022660227602286022960230602316023260233602346023560236602376023860239602406024160242602436024460245602466024760248602496025060251602526025360254602556025660257602586025960260602616026260263602646026560266602676026860269602706027160272602736027460275602766027760278602796028060281602826028360284602856028660287602886028960290602916029260293602946029560296602976029860299603006030160302603036030460305603066030760308603096031060311603126031360314603156031660317603186031960320603216032260323603246032560326603276032860329603306033160332603336033460335603366033760338603396034060341603426034360344603456034660347603486034960350603516035260353603546035560356603576035860359603606036160362603636036460365603666036760368603696037060371603726037360374603756037660377603786037960380603816038260383603846038560386603876038860389603906039160392603936039460395603966039760398603996040060401604026040360404604056040660407604086040960410604116041260413604146041560416604176041860419604206042160422604236042460425604266042760428604296043060431604326043360434604356043660437604386043960440604416044260443604446044560446604476044860449604506045160452604536045460455604566045760458604596046060461604626046360464604656046660467604686046960470604716047260473604746047560476604776047860479604806048160482604836048460485604866048760488604896049060491604926049360494604956049660497604986049960500605016050260503605046050560506605076050860509605106051160512605136051460515605166051760518605196052060521605226052360524605256052660527605286052960530605316053260533605346053560536605376053860539605406054160542605436054460545605466054760548605496055060551605526055360554605556055660557605586055960560605616056260563605646056560566605676056860569605706057160572605736057460575605766057760578605796058060581605826058360584605856058660587605886058960590605916059260593605946059560596605976059860599606006060160602606036060460605606066060760608606096061060611606126061360614606156061660617606186061960620606216062260623606246062560626606276062860629606306063160632606336063460635606366063760638606396064060641606426064360644606456064660647606486064960650606516065260653606546065560656606576065860659606606066160662606636066460665606666066760668606696067060671606726067360674606756067660677606786067960680606816068260683606846068560686606876068860689606906069160692606936069460695606966069760698606996070060701607026070360704607056070660707607086070960710607116071260713607146071560716607176071860719607206072160722607236072460725607266072760728607296073060731607326073360734607356073660737607386073960740607416074260743607446074560746607476074860749607506075160752607536075460755607566075760758607596076060761607626076360764607656076660767607686076960770607716077260773607746077560776607776077860779607806078160782607836078460785607866078760788607896079060791607926079360794607956079660797607986079960800608016080260803608046080560806608076080860809608106081160812608136081460815608166081760818608196082060821608226082360824608256082660827608286082960830608316083260833608346083560836608376083860839608406084160842608436084460845608466084760848608496085060851608526085360854608556085660857608586085960860608616086260863608646086560866608676086860869608706087160872608736087460875608766087760878608796088060881608826088360884608856088660887608886088960890608916089260893608946089560896608976089860899609006090160902609036090460905609066090760908609096091060911609126091360914609156091660917609186091960920609216092260923609246092560926609276092860929609306093160932609336093460935609366093760938609396094060941609426094360944609456094660947609486094960950609516095260953609546095560956609576095860959609606096160962609636096460965609666096760968609696097060971609726097360974609756097660977609786097960980609816098260983609846098560986609876098860989609906099160992609936099460995609966099760998609996100061001610026100361004610056100661007610086100961010610116101261013610146101561016610176101861019610206102161022610236102461025610266102761028610296103061031610326103361034610356103661037610386103961040610416104261043610446104561046610476104861049610506105161052610536105461055610566105761058610596106061061610626106361064610656106661067610686106961070610716107261073610746107561076610776107861079610806108161082610836108461085610866108761088610896109061091610926109361094610956109661097610986109961100611016110261103611046110561106611076110861109611106111161112611136111461115611166111761118611196112061121611226112361124611256112661127611286112961130611316113261133611346113561136611376113861139611406114161142611436114461145611466114761148611496115061151611526115361154611556115661157611586115961160611616116261163611646116561166611676116861169611706117161172611736117461175611766117761178611796118061181611826118361184611856118661187611886118961190611916119261193611946119561196611976119861199612006120161202612036120461205612066120761208612096121061211612126121361214612156121661217612186121961220612216122261223612246122561226612276122861229612306123161232612336123461235612366123761238612396124061241612426124361244612456124661247612486124961250612516125261253612546125561256612576125861259612606126161262612636126461265612666126761268612696127061271612726127361274612756127661277612786127961280612816128261283612846128561286612876128861289612906129161292612936129461295612966129761298612996130061301613026130361304613056130661307613086130961310613116131261313613146131561316613176131861319613206132161322613236132461325613266132761328613296133061331613326133361334613356133661337613386133961340613416134261343613446134561346613476134861349613506135161352613536135461355613566135761358613596136061361613626136361364613656136661367613686136961370613716137261373613746137561376613776137861379613806138161382613836138461385613866138761388613896139061391613926139361394613956139661397613986139961400614016140261403614046140561406614076140861409614106141161412614136141461415614166141761418614196142061421614226142361424614256142661427614286142961430614316143261433614346143561436614376143861439614406144161442614436144461445614466144761448614496145061451614526145361454614556145661457614586145961460614616146261463614646146561466614676146861469614706147161472614736147461475614766147761478614796148061481614826148361484614856148661487614886148961490614916149261493614946149561496614976149861499615006150161502615036150461505615066150761508615096151061511615126151361514615156151661517615186151961520615216152261523615246152561526615276152861529615306153161532615336153461535615366153761538615396154061541615426154361544615456154661547615486154961550615516155261553615546155561556615576155861559615606156161562615636156461565615666156761568615696157061571615726157361574615756157661577615786157961580615816158261583615846158561586615876158861589615906159161592615936159461595615966159761598615996160061601616026160361604616056160661607616086160961610616116161261613616146161561616616176161861619616206162161622616236162461625616266162761628616296163061631616326163361634616356163661637616386163961640616416164261643616446164561646616476164861649616506165161652616536165461655616566165761658616596166061661616626166361664616656166661667616686166961670616716167261673616746167561676616776167861679616806168161682616836168461685616866168761688616896169061691616926169361694616956169661697616986169961700617016170261703617046170561706617076170861709617106171161712617136171461715617166171761718617196172061721617226172361724617256172661727617286172961730617316173261733617346173561736617376173861739617406174161742617436174461745617466174761748617496175061751617526175361754617556175661757617586175961760617616176261763617646176561766617676176861769617706177161772617736177461775617766177761778617796178061781617826178361784617856178661787617886178961790617916179261793617946179561796617976179861799618006180161802618036180461805618066180761808618096181061811618126181361814618156181661817618186181961820618216182261823618246182561826618276182861829618306183161832618336183461835618366183761838618396184061841618426184361844618456184661847618486184961850618516185261853618546185561856618576185861859618606186161862618636186461865618666186761868618696187061871618726187361874618756187661877618786187961880618816188261883618846188561886618876188861889618906189161892618936189461895618966189761898618996190061901619026190361904619056190661907619086190961910619116191261913619146191561916619176191861919619206192161922619236192461925619266192761928619296193061931619326193361934619356193661937619386193961940619416194261943619446194561946619476194861949619506195161952619536195461955619566195761958619596196061961619626196361964619656196661967619686196961970619716197261973619746197561976619776197861979619806198161982619836198461985619866198761988619896199061991619926199361994619956199661997619986199962000620016200262003620046200562006620076200862009620106201162012620136201462015620166201762018620196202062021620226202362024620256202662027620286202962030620316203262033620346203562036620376203862039620406204162042620436204462045620466204762048620496205062051620526205362054620556205662057620586205962060620616206262063620646206562066620676206862069620706207162072620736207462075620766207762078620796208062081620826208362084620856208662087620886208962090620916209262093620946209562096620976209862099621006210162102621036210462105621066210762108621096211062111621126211362114621156211662117621186211962120621216212262123621246212562126621276212862129621306213162132621336213462135621366213762138621396214062141621426214362144621456214662147621486214962150621516215262153621546215562156621576215862159621606216162162621636216462165621666216762168621696217062171621726217362174621756217662177621786217962180621816218262183621846218562186621876218862189621906219162192621936219462195621966219762198621996220062201622026220362204622056220662207622086220962210622116221262213622146221562216622176221862219622206222162222622236222462225622266222762228622296223062231622326223362234622356223662237622386223962240622416224262243622446224562246622476224862249622506225162252622536225462255622566225762258622596226062261622626226362264622656226662267622686226962270622716227262273622746227562276622776227862279622806228162282622836228462285622866228762288622896229062291622926229362294622956229662297622986229962300623016230262303623046230562306623076230862309623106231162312623136231462315623166231762318623196232062321623226232362324623256232662327623286232962330623316233262333623346233562336623376233862339623406234162342623436234462345623466234762348623496235062351623526235362354623556235662357623586235962360623616236262363623646236562366623676236862369623706237162372623736237462375623766237762378623796238062381623826238362384623856238662387623886238962390623916239262393623946239562396623976239862399624006240162402624036240462405624066240762408624096241062411624126241362414624156241662417624186241962420624216242262423624246242562426624276242862429624306243162432624336243462435624366243762438624396244062441624426244362444624456244662447624486244962450624516245262453624546245562456624576245862459624606246162462624636246462465624666246762468624696247062471624726247362474624756247662477624786247962480624816248262483624846248562486624876248862489624906249162492624936249462495624966249762498624996250062501625026250362504625056250662507625086250962510625116251262513625146251562516625176251862519625206252162522625236252462525625266252762528625296253062531625326253362534625356253662537625386253962540625416254262543625446254562546625476254862549625506255162552625536255462555625566255762558625596256062561625626256362564625656256662567625686256962570625716257262573625746257562576625776257862579625806258162582625836258462585625866258762588625896259062591625926259362594625956259662597625986259962600626016260262603626046260562606626076260862609626106261162612626136261462615626166261762618626196262062621626226262362624626256262662627626286262962630626316263262633626346263562636626376263862639626406264162642626436264462645626466264762648626496265062651626526265362654626556265662657626586265962660626616266262663626646266562666626676266862669626706267162672626736267462675626766267762678626796268062681626826268362684626856268662687626886268962690626916269262693626946269562696626976269862699627006270162702627036270462705627066270762708627096271062711627126271362714627156271662717627186271962720627216272262723627246272562726627276272862729627306273162732627336273462735627366273762738627396274062741627426274362744627456274662747627486274962750627516275262753627546275562756627576275862759627606276162762627636276462765627666276762768627696277062771627726277362774627756277662777627786277962780627816278262783627846278562786627876278862789627906279162792627936279462795627966279762798627996280062801628026280362804628056280662807628086280962810628116281262813628146281562816628176281862819628206282162822628236282462825628266282762828628296283062831628326283362834628356283662837628386283962840628416284262843628446284562846628476284862849628506285162852628536285462855628566285762858628596286062861628626286362864628656286662867628686286962870628716287262873628746287562876628776287862879628806288162882628836288462885628866288762888628896289062891628926289362894628956289662897628986289962900629016290262903629046290562906629076290862909629106291162912629136291462915629166291762918629196292062921629226292362924629256292662927629286292962930629316293262933629346293562936629376293862939629406294162942629436294462945629466294762948629496295062951629526295362954629556295662957629586295962960629616296262963629646296562966629676296862969629706297162972629736297462975629766297762978629796298062981629826298362984629856298662987629886298962990629916299262993629946299562996629976299862999630006300163002630036300463005630066300763008630096301063011630126301363014630156301663017630186301963020630216302263023630246302563026630276302863029630306303163032630336303463035630366303763038630396304063041630426304363044630456304663047630486304963050630516305263053630546305563056630576305863059630606306163062630636306463065630666306763068630696307063071630726307363074630756307663077630786307963080630816308263083630846308563086630876308863089630906309163092630936309463095630966309763098630996310063101631026310363104631056310663107631086310963110631116311263113631146311563116631176311863119631206312163122631236312463125631266312763128631296313063131631326313363134631356313663137631386313963140631416314263143631446314563146631476314863149631506315163152631536315463155631566315763158631596316063161631626316363164631656316663167631686316963170631716317263173631746317563176631776317863179631806318163182631836318463185631866318763188631896319063191631926319363194631956319663197631986319963200632016320263203632046320563206632076320863209632106321163212632136321463215632166321763218632196322063221632226322363224632256322663227632286322963230632316323263233632346323563236632376323863239632406324163242632436324463245632466324763248632496325063251632526325363254632556325663257632586325963260632616326263263632646326563266632676326863269632706327163272632736327463275632766327763278632796328063281632826328363284632856328663287632886328963290632916329263293632946329563296632976329863299633006330163302633036330463305633066330763308633096331063311633126331363314633156331663317633186331963320633216332263323633246332563326633276332863329633306333163332633336333463335633366333763338633396334063341633426334363344633456334663347633486334963350633516335263353633546335563356633576335863359633606336163362633636336463365633666336763368633696337063371633726337363374633756337663377633786337963380633816338263383633846338563386633876338863389633906339163392633936339463395633966339763398633996340063401634026340363404634056340663407634086340963410634116341263413634146341563416634176341863419634206342163422634236342463425634266342763428634296343063431634326343363434634356343663437634386343963440634416344263443634446344563446634476344863449634506345163452634536345463455634566345763458634596346063461634626346363464634656346663467634686346963470634716347263473634746347563476634776347863479634806348163482634836348463485634866348763488634896349063491634926349363494634956349663497634986349963500635016350263503635046350563506635076350863509635106351163512635136351463515635166351763518635196352063521635226352363524635256352663527635286352963530635316353263533635346353563536635376353863539635406354163542635436354463545635466354763548635496355063551635526355363554635556355663557635586355963560635616356263563635646356563566635676356863569635706357163572635736357463575635766357763578635796358063581635826358363584635856358663587635886358963590635916359263593635946359563596635976359863599636006360163602636036360463605636066360763608636096361063611636126361363614636156361663617636186361963620636216362263623636246362563626636276362863629636306363163632636336363463635636366363763638636396364063641636426364363644636456364663647636486364963650636516365263653636546365563656636576365863659636606366163662636636366463665636666366763668636696367063671636726367363674636756367663677636786367963680636816368263683636846368563686636876368863689636906369163692636936369463695636966369763698636996370063701637026370363704637056370663707637086370963710637116371263713637146371563716637176371863719637206372163722637236372463725637266372763728637296373063731637326373363734637356373663737637386373963740637416374263743637446374563746637476374863749637506375163752637536375463755637566375763758637596376063761637626376363764637656376663767637686376963770637716377263773637746377563776637776377863779637806378163782637836378463785637866378763788637896379063791637926379363794637956379663797637986379963800638016380263803638046380563806638076380863809638106381163812638136381463815638166381763818638196382063821638226382363824638256382663827638286382963830638316383263833638346383563836638376383863839638406384163842638436384463845638466384763848638496385063851638526385363854638556385663857638586385963860638616386263863638646386563866638676386863869638706387163872638736387463875638766387763878638796388063881638826388363884638856388663887638886388963890638916389263893638946389563896638976389863899639006390163902639036390463905639066390763908639096391063911639126391363914639156391663917639186391963920639216392263923639246392563926639276392863929639306393163932639336393463935639366393763938639396394063941639426394363944639456394663947639486394963950639516395263953639546395563956639576395863959639606396163962639636396463965639666396763968639696397063971639726397363974639756397663977639786397963980639816398263983639846398563986639876398863989639906399163992639936399463995639966399763998639996400064001640026400364004640056400664007640086400964010640116401264013640146401564016640176401864019640206402164022640236402464025640266402764028640296403064031640326403364034640356403664037640386403964040640416404264043640446404564046640476404864049640506405164052640536405464055640566405764058640596406064061640626406364064640656406664067640686406964070640716407264073640746407564076640776407864079640806408164082640836408464085640866408764088640896409064091640926409364094640956409664097640986409964100641016410264103641046410564106641076410864109641106411164112641136411464115641166411764118641196412064121641226412364124641256412664127641286412964130641316413264133641346413564136641376413864139641406414164142641436414464145641466414764148641496415064151641526415364154641556415664157641586415964160641616416264163641646416564166641676416864169641706417164172641736417464175641766417764178641796418064181641826418364184641856418664187641886418964190641916419264193641946419564196641976419864199642006420164202642036420464205642066420764208642096421064211642126421364214642156421664217642186421964220642216422264223642246422564226642276422864229642306423164232642336423464235642366423764238642396424064241642426424364244642456424664247642486424964250642516425264253642546425564256642576425864259642606426164262642636426464265642666426764268642696427064271642726427364274642756427664277642786427964280642816428264283642846428564286642876428864289642906429164292642936429464295642966429764298642996430064301643026430364304643056430664307643086430964310643116431264313643146431564316643176431864319643206432164322643236432464325643266432764328643296433064331643326433364334643356433664337643386433964340643416434264343643446434564346643476434864349643506435164352643536435464355643566435764358643596436064361643626436364364643656436664367643686436964370643716437264373643746437564376643776437864379643806438164382643836438464385643866438764388643896439064391643926439364394643956439664397643986439964400644016440264403644046440564406644076440864409644106441164412644136441464415644166441764418644196442064421644226442364424644256442664427644286442964430644316443264433644346443564436644376443864439644406444164442644436444464445644466444764448644496445064451644526445364454644556445664457644586445964460644616446264463644646446564466644676446864469644706447164472644736447464475644766447764478644796448064481644826448364484644856448664487644886448964490644916449264493644946449564496644976449864499645006450164502645036450464505645066450764508645096451064511645126451364514645156451664517645186451964520645216452264523645246452564526645276452864529645306453164532645336453464535645366453764538645396454064541645426454364544645456454664547645486454964550645516455264553645546455564556645576455864559645606456164562645636456464565645666456764568645696457064571645726457364574645756457664577645786457964580645816458264583645846458564586645876458864589645906459164592645936459464595645966459764598645996460064601646026460364604646056460664607646086460964610646116461264613646146461564616646176461864619646206462164622646236462464625646266462764628646296463064631646326463364634646356463664637646386463964640646416464264643646446464564646646476464864649646506465164652646536465464655646566465764658646596466064661646626466364664646656466664667646686466964670646716467264673646746467564676646776467864679646806468164682646836468464685646866468764688646896469064691646926469364694646956469664697646986469964700647016470264703647046470564706647076470864709647106471164712647136471464715647166471764718647196472064721647226472364724647256472664727647286472964730647316473264733647346473564736647376473864739647406474164742647436474464745647466474764748647496475064751647526475364754647556475664757647586475964760647616476264763647646476564766647676476864769647706477164772647736477464775647766477764778647796478064781647826478364784647856478664787647886478964790647916479264793647946479564796647976479864799648006480164802648036480464805648066480764808648096481064811648126481364814648156481664817648186481964820648216482264823648246482564826648276482864829648306483164832648336483464835648366483764838648396484064841648426484364844648456484664847648486484964850648516485264853648546485564856648576485864859648606486164862648636486464865648666486764868648696487064871648726487364874648756487664877648786487964880648816488264883648846488564886648876488864889648906489164892648936489464895648966489764898648996490064901649026490364904649056490664907649086490964910649116491264913649146491564916649176491864919649206492164922649236492464925649266492764928649296493064931649326493364934649356493664937649386493964940649416494264943649446494564946649476494864949649506495164952649536495464955649566495764958649596496064961649626496364964649656496664967649686496964970649716497264973649746497564976649776497864979649806498164982649836498464985649866498764988649896499064991649926499364994649956499664997649986499965000650016500265003650046500565006650076500865009650106501165012650136501465015650166501765018650196502065021650226502365024650256502665027650286502965030650316503265033650346503565036650376503865039650406504165042650436504465045650466504765048650496505065051650526505365054650556505665057650586505965060650616506265063650646506565066650676506865069650706507165072650736507465075650766507765078650796508065081650826508365084650856508665087650886508965090650916509265093650946509565096650976509865099651006510165102651036510465105651066510765108651096511065111651126511365114651156511665117651186511965120651216512265123651246512565126651276512865129651306513165132651336513465135651366513765138651396514065141651426514365144651456514665147651486514965150651516515265153651546515565156651576515865159651606516165162651636516465165651666516765168651696517065171651726517365174651756517665177651786517965180651816518265183651846518565186651876518865189651906519165192651936519465195651966519765198651996520065201652026520365204652056520665207652086520965210652116521265213652146521565216652176521865219652206522165222652236522465225652266522765228652296523065231652326523365234652356523665237652386523965240652416524265243652446524565246652476524865249652506525165252652536525465255652566525765258652596526065261652626526365264652656526665267652686526965270652716527265273652746527565276652776527865279652806528165282652836528465285652866528765288652896529065291652926529365294652956529665297652986529965300653016530265303653046530565306653076530865309653106531165312653136531465315653166531765318653196532065321653226532365324653256532665327653286532965330653316533265333653346533565336653376533865339653406534165342653436534465345653466534765348653496535065351653526535365354653556535665357653586535965360653616536265363653646536565366653676536865369653706537165372653736537465375653766537765378653796538065381653826538365384653856538665387653886538965390653916539265393653946539565396653976539865399654006540165402654036540465405654066540765408654096541065411654126541365414654156541665417654186541965420654216542265423654246542565426654276542865429654306543165432654336543465435654366543765438654396544065441654426544365444654456544665447654486544965450654516545265453654546545565456654576545865459654606546165462654636546465465654666546765468654696547065471654726547365474654756547665477654786547965480654816548265483654846548565486654876548865489654906549165492654936549465495654966549765498654996550065501655026550365504655056550665507655086550965510655116551265513655146551565516655176551865519655206552165522655236552465525655266552765528655296553065531655326553365534655356553665537655386553965540655416554265543655446554565546655476554865549655506555165552655536555465555655566555765558655596556065561655626556365564655656556665567655686556965570655716557265573655746557565576655776557865579655806558165582655836558465585655866558765588655896559065591655926559365594655956559665597655986559965600656016560265603656046560565606656076560865609656106561165612656136561465615656166561765618656196562065621656226562365624656256562665627656286562965630656316563265633656346563565636656376563865639656406564165642656436564465645656466564765648656496565065651656526565365654656556565665657656586565965660656616566265663656646566565666656676566865669656706567165672656736567465675656766567765678656796568065681656826568365684656856568665687656886568965690656916569265693656946569565696656976569865699657006570165702657036570465705657066570765708657096571065711657126571365714657156571665717657186571965720657216572265723657246572565726657276572865729657306573165732657336573465735657366573765738657396574065741657426574365744657456574665747657486574965750657516575265753657546575565756657576575865759657606576165762657636576465765657666576765768657696577065771657726577365774657756577665777657786577965780657816578265783657846578565786657876578865789657906579165792657936579465795657966579765798657996580065801658026580365804658056580665807658086580965810658116581265813658146581565816658176581865819658206582165822658236582465825658266582765828658296583065831658326583365834658356583665837658386583965840658416584265843658446584565846658476584865849658506585165852658536585465855658566585765858658596586065861658626586365864658656586665867658686586965870658716587265873658746587565876658776587865879658806588165882658836588465885658866588765888658896589065891658926589365894658956589665897658986589965900659016590265903659046590565906659076590865909659106591165912659136591465915659166591765918659196592065921659226592365924659256592665927659286592965930659316593265933659346593565936659376593865939659406594165942659436594465945659466594765948659496595065951659526595365954659556595665957659586595965960659616596265963659646596565966659676596865969659706597165972659736597465975659766597765978659796598065981659826598365984659856598665987659886598965990659916599265993659946599565996659976599865999660006600166002660036600466005660066600766008660096601066011660126601366014660156601666017660186601966020660216602266023660246602566026660276602866029660306603166032660336603466035660366603766038660396604066041660426604366044660456604666047660486604966050660516605266053660546605566056660576605866059660606606166062660636606466065660666606766068660696607066071660726607366074660756607666077660786607966080660816608266083660846608566086660876608866089660906609166092660936609466095660966609766098660996610066101661026610366104661056610666107661086610966110661116611266113661146611566116661176611866119661206612166122661236612466125661266612766128661296613066131661326613366134661356613666137661386613966140661416614266143661446614566146661476614866149661506615166152661536615466155661566615766158661596616066161661626616366164661656616666167661686616966170661716617266173661746617566176661776617866179661806618166182661836618466185661866618766188661896619066191661926619366194661956619666197661986619966200662016620266203662046620566206662076620866209662106621166212662136621466215662166621766218662196622066221662226622366224662256622666227662286622966230662316623266233662346623566236662376623866239662406624166242662436624466245662466624766248662496625066251662526625366254662556625666257662586625966260662616626266263662646626566266662676626866269662706627166272662736627466275662766627766278662796628066281662826628366284662856628666287662886628966290662916629266293662946629566296662976629866299663006630166302663036630466305663066630766308663096631066311663126631366314663156631666317663186631966320663216632266323663246632566326663276632866329663306633166332663336633466335663366633766338663396634066341663426634366344663456634666347663486634966350663516635266353663546635566356663576635866359663606636166362663636636466365663666636766368663696637066371663726637366374663756637666377663786637966380663816638266383663846638566386663876638866389663906639166392663936639466395663966639766398663996640066401664026640366404664056640666407664086640966410664116641266413664146641566416664176641866419664206642166422664236642466425664266642766428664296643066431664326643366434664356643666437664386643966440664416644266443664446644566446664476644866449664506645166452664536645466455664566645766458664596646066461664626646366464664656646666467664686646966470664716647266473664746647566476664776647866479664806648166482664836648466485664866648766488664896649066491664926649366494664956649666497664986649966500665016650266503665046650566506665076650866509665106651166512665136651466515665166651766518665196652066521665226652366524665256652666527665286652966530665316653266533665346653566536665376653866539665406654166542665436654466545665466654766548665496655066551665526655366554665556655666557665586655966560665616656266563665646656566566665676656866569665706657166572665736657466575665766657766578665796658066581665826658366584665856658666587665886658966590665916659266593665946659566596665976659866599666006660166602666036660466605666066660766608666096661066611666126661366614666156661666617666186661966620666216662266623666246662566626666276662866629666306663166632666336663466635666366663766638666396664066641666426664366644666456664666647666486664966650666516665266653666546665566656666576665866659666606666166662666636666466665666666666766668666696667066671666726667366674666756667666677666786667966680666816668266683666846668566686666876668866689666906669166692666936669466695666966669766698666996670066701667026670366704667056670666707667086670966710667116671266713667146671566716667176671866719667206672166722667236672466725667266672766728667296673066731667326673366734667356673666737667386673966740667416674266743667446674566746667476674866749667506675166752667536675466755667566675766758667596676066761667626676366764667656676666767667686676966770667716677266773667746677566776667776677866779667806678166782667836678466785667866678766788667896679066791667926679366794667956679666797667986679966800668016680266803668046680566806668076680866809668106681166812668136681466815668166681766818668196682066821668226682366824668256682666827668286682966830668316683266833668346683566836668376683866839668406684166842668436684466845668466684766848668496685066851668526685366854668556685666857668586685966860668616686266863668646686566866668676686866869668706687166872668736687466875668766687766878668796688066881668826688366884668856688666887668886688966890668916689266893668946689566896668976689866899669006690166902669036690466905669066690766908669096691066911669126691366914669156691666917669186691966920669216692266923669246692566926669276692866929669306693166932669336693466935669366693766938669396694066941669426694366944669456694666947669486694966950669516695266953669546695566956669576695866959669606696166962669636696466965669666696766968669696697066971669726697366974669756697666977669786697966980669816698266983669846698566986669876698866989669906699166992669936699466995669966699766998669996700067001670026700367004670056700667007670086700967010670116701267013670146701567016670176701867019670206702167022670236702467025670266702767028670296703067031670326703367034670356703667037670386703967040670416704267043670446704567046670476704867049670506705167052670536705467055670566705767058670596706067061670626706367064670656706667067670686706967070670716707267073670746707567076670776707867079670806708167082670836708467085670866708767088670896709067091670926709367094670956709667097670986709967100671016710267103671046710567106671076710867109671106711167112671136711467115671166711767118671196712067121671226712367124671256712667127671286712967130671316713267133671346713567136671376713867139671406714167142671436714467145671466714767148671496715067151671526715367154671556715667157671586715967160671616716267163671646716567166671676716867169671706717167172671736717467175671766717767178671796718067181671826718367184671856718667187671886718967190671916719267193671946719567196671976719867199672006720167202672036720467205672066720767208672096721067211672126721367214672156721667217672186721967220672216722267223672246722567226672276722867229672306723167232672336723467235672366723767238672396724067241672426724367244672456724667247672486724967250672516725267253672546725567256672576725867259672606726167262672636726467265672666726767268672696727067271672726727367274672756727667277672786727967280672816728267283672846728567286672876728867289672906729167292672936729467295672966729767298672996730067301673026730367304673056730667307673086730967310673116731267313673146731567316673176731867319673206732167322673236732467325673266732767328673296733067331673326733367334673356733667337673386733967340673416734267343673446734567346673476734867349673506735167352673536735467355673566735767358673596736067361673626736367364673656736667367673686736967370673716737267373673746737567376673776737867379673806738167382673836738467385673866738767388673896739067391673926739367394673956739667397673986739967400674016740267403674046740567406674076740867409674106741167412674136741467415674166741767418674196742067421674226742367424674256742667427674286742967430674316743267433674346743567436674376743867439674406744167442674436744467445674466744767448674496745067451674526745367454674556745667457674586745967460674616746267463674646746567466674676746867469674706747167472674736747467475674766747767478674796748067481674826748367484674856748667487674886748967490674916749267493674946749567496674976749867499675006750167502675036750467505675066750767508675096751067511675126751367514675156751667517675186751967520675216752267523675246752567526675276752867529675306753167532675336753467535675366753767538675396754067541675426754367544675456754667547675486754967550675516755267553675546755567556675576755867559675606756167562675636756467565675666756767568675696757067571675726757367574675756757667577675786757967580675816758267583675846758567586675876758867589675906759167592675936759467595675966759767598675996760067601676026760367604676056760667607676086760967610676116761267613676146761567616676176761867619676206762167622676236762467625676266762767628676296763067631676326763367634676356763667637676386763967640676416764267643676446764567646676476764867649676506765167652676536765467655676566765767658676596766067661676626766367664676656766667667676686766967670676716767267673676746767567676676776767867679676806768167682676836768467685676866768767688676896769067691676926769367694676956769667697676986769967700677016770267703677046770567706677076770867709677106771167712677136771467715677166771767718677196772067721677226772367724677256772667727677286772967730677316773267733677346773567736677376773867739677406774167742677436774467745677466774767748677496775067751677526775367754677556775667757677586775967760677616776267763677646776567766677676776867769677706777167772677736777467775677766777767778677796778067781677826778367784677856778667787677886778967790677916779267793677946779567796677976779867799678006780167802678036780467805678066780767808678096781067811678126781367814678156781667817678186781967820678216782267823678246782567826678276782867829678306783167832678336783467835678366783767838678396784067841678426784367844678456784667847678486784967850678516785267853678546785567856678576785867859678606786167862678636786467865678666786767868678696787067871678726787367874678756787667877678786787967880678816788267883678846788567886678876788867889678906789167892678936789467895678966789767898678996790067901679026790367904679056790667907679086790967910679116791267913679146791567916679176791867919679206792167922679236792467925679266792767928679296793067931679326793367934679356793667937679386793967940679416794267943679446794567946679476794867949679506795167952679536795467955679566795767958679596796067961679626796367964679656796667967679686796967970679716797267973679746797567976679776797867979679806798167982679836798467985679866798767988679896799067991679926799367994679956799667997679986799968000680016800268003680046800568006680076800868009680106801168012680136801468015680166801768018680196802068021680226802368024680256802668027680286802968030680316803268033680346803568036680376803868039680406804168042680436804468045680466804768048680496805068051680526805368054680556805668057680586805968060680616806268063680646806568066680676806868069680706807168072680736807468075680766807768078680796808068081680826808368084680856808668087680886808968090680916809268093680946809568096680976809868099681006810168102681036810468105681066810768108681096811068111681126811368114681156811668117681186811968120681216812268123681246812568126681276812868129681306813168132681336813468135681366813768138681396814068141681426814368144681456814668147681486814968150681516815268153681546815568156681576815868159681606816168162681636816468165681666816768168681696817068171681726817368174681756817668177681786817968180681816818268183681846818568186681876818868189681906819168192681936819468195681966819768198681996820068201682026820368204682056820668207682086820968210682116821268213682146821568216682176821868219682206822168222682236822468225682266822768228682296823068231682326823368234682356823668237682386823968240682416824268243682446824568246682476824868249682506825168252682536825468255682566825768258682596826068261682626826368264682656826668267682686826968270682716827268273682746827568276682776827868279682806828168282682836828468285682866828768288682896829068291682926829368294682956829668297682986829968300683016830268303683046830568306683076830868309683106831168312683136831468315683166831768318683196832068321683226832368324683256832668327683286832968330683316833268333683346833568336683376833868339683406834168342683436834468345683466834768348683496835068351683526835368354683556835668357683586835968360683616836268363683646836568366683676836868369683706837168372683736837468375683766837768378683796838068381683826838368384683856838668387683886838968390683916839268393683946839568396683976839868399684006840168402684036840468405684066840768408684096841068411684126841368414684156841668417684186841968420684216842268423684246842568426684276842868429684306843168432684336843468435684366843768438684396844068441684426844368444684456844668447684486844968450684516845268453684546845568456684576845868459684606846168462684636846468465684666846768468684696847068471684726847368474684756847668477684786847968480684816848268483684846848568486684876848868489684906849168492684936849468495684966849768498684996850068501685026850368504685056850668507685086850968510685116851268513685146851568516685176851868519685206852168522685236852468525685266852768528685296853068531685326853368534685356853668537685386853968540685416854268543685446854568546685476854868549685506855168552685536855468555685566855768558685596856068561685626856368564685656856668567685686856968570685716857268573685746857568576685776857868579685806858168582685836858468585685866858768588685896859068591685926859368594685956859668597685986859968600686016860268603686046860568606686076860868609686106861168612686136861468615686166861768618686196862068621686226862368624686256862668627686286862968630686316863268633686346863568636686376863868639686406864168642686436864468645686466864768648686496865068651686526865368654686556865668657686586865968660686616866268663686646866568666686676866868669686706867168672686736867468675686766867768678686796868068681686826868368684686856868668687686886868968690686916869268693686946869568696686976869868699687006870168702687036870468705687066870768708687096871068711687126871368714687156871668717687186871968720687216872268723687246872568726687276872868729687306873168732687336873468735687366873768738687396874068741687426874368744687456874668747687486874968750687516875268753687546875568756687576875868759687606876168762687636876468765687666876768768687696877068771687726877368774687756877668777687786877968780687816878268783687846878568786687876878868789687906879168792687936879468795687966879768798687996880068801688026880368804688056880668807688086880968810688116881268813688146881568816688176881868819688206882168822688236882468825688266882768828688296883068831688326883368834688356883668837688386883968840688416884268843688446884568846688476884868849688506885168852688536885468855688566885768858688596886068861688626886368864688656886668867688686886968870688716887268873688746887568876688776887868879688806888168882688836888468885688866888768888688896889068891688926889368894688956889668897688986889968900689016890268903689046890568906689076890868909689106891168912689136891468915689166891768918689196892068921689226892368924689256892668927689286892968930689316893268933689346893568936689376893868939689406894168942689436894468945689466894768948689496895068951689526895368954689556895668957689586895968960689616896268963689646896568966689676896868969689706897168972689736897468975689766897768978689796898068981689826898368984689856898668987689886898968990689916899268993689946899568996689976899868999690006900169002690036900469005690066900769008690096901069011690126901369014690156901669017690186901969020690216902269023690246902569026690276902869029690306903169032690336903469035690366903769038690396904069041690426904369044690456904669047690486904969050690516905269053690546905569056690576905869059690606906169062690636906469065690666906769068690696907069071690726907369074690756907669077690786907969080690816908269083690846908569086690876908869089690906909169092690936909469095690966909769098690996910069101691026910369104691056910669107691086910969110691116911269113691146911569116691176911869119691206912169122691236912469125691266912769128691296913069131691326913369134691356913669137691386913969140691416914269143691446914569146691476914869149691506915169152691536915469155691566915769158691596916069161691626916369164691656916669167691686916969170691716917269173691746917569176691776917869179691806918169182691836918469185691866918769188691896919069191691926919369194691956919669197691986919969200692016920269203692046920569206692076920869209692106921169212692136921469215692166921769218692196922069221692226922369224692256922669227692286922969230692316923269233692346923569236692376923869239692406924169242692436924469245692466924769248692496925069251692526925369254692556925669257692586925969260692616926269263692646926569266692676926869269692706927169272692736927469275692766927769278692796928069281692826928369284692856928669287692886928969290692916929269293692946929569296692976929869299693006930169302693036930469305693066930769308693096931069311693126931369314693156931669317693186931969320693216932269323693246932569326693276932869329693306933169332693336933469335693366933769338693396934069341693426934369344693456934669347693486934969350693516935269353693546935569356693576935869359693606936169362693636936469365693666936769368693696937069371693726937369374693756937669377693786937969380693816938269383693846938569386693876938869389693906939169392693936939469395693966939769398693996940069401694026940369404694056940669407694086940969410694116941269413694146941569416694176941869419694206942169422694236942469425694266942769428694296943069431694326943369434694356943669437694386943969440694416944269443694446944569446694476944869449694506945169452694536945469455694566945769458694596946069461694626946369464694656946669467694686946969470694716947269473694746947569476694776947869479694806948169482694836948469485694866948769488694896949069491694926949369494694956949669497694986949969500695016950269503695046950569506695076950869509695106951169512695136951469515695166951769518695196952069521695226952369524695256952669527695286952969530695316953269533695346953569536695376953869539695406954169542695436954469545695466954769548695496955069551695526955369554695556955669557695586955969560695616956269563695646956569566695676956869569695706957169572695736957469575695766957769578695796958069581695826958369584695856958669587695886958969590695916959269593695946959569596695976959869599696006960169602696036960469605696066960769608696096961069611696126961369614696156961669617696186961969620696216962269623696246962569626696276962869629696306963169632696336963469635696366963769638696396964069641696426964369644696456964669647696486964969650696516965269653696546965569656696576965869659696606966169662696636966469665696666966769668696696967069671696726967369674696756967669677696786967969680696816968269683696846968569686696876968869689696906969169692696936969469695696966969769698696996970069701697026970369704697056970669707697086970969710697116971269713697146971569716697176971869719697206972169722697236972469725697266972769728697296973069731697326973369734697356973669737697386973969740697416974269743697446974569746697476974869749697506975169752697536975469755697566975769758697596976069761697626976369764697656976669767697686976969770697716977269773697746977569776697776977869779697806978169782697836978469785697866978769788697896979069791697926979369794697956979669797697986979969800698016980269803698046980569806698076980869809698106981169812698136981469815698166981769818698196982069821698226982369824698256982669827698286982969830698316983269833698346983569836698376983869839698406984169842698436984469845698466984769848698496985069851698526985369854698556985669857698586985969860698616986269863698646986569866698676986869869698706987169872698736987469875698766987769878698796988069881698826988369884698856988669887698886988969890698916989269893698946989569896698976989869899699006990169902699036990469905699066990769908699096991069911699126991369914699156991669917699186991969920699216992269923699246992569926699276992869929699306993169932699336993469935699366993769938699396994069941699426994369944699456994669947699486994969950699516995269953699546995569956699576995869959699606996169962699636996469965699666996769968699696997069971699726997369974699756997669977699786997969980699816998269983699846998569986699876998869989699906999169992699936999469995699966999769998699997000070001700027000370004700057000670007700087000970010700117001270013700147001570016700177001870019700207002170022700237002470025700267002770028700297003070031700327003370034700357003670037700387003970040700417004270043700447004570046700477004870049700507005170052700537005470055700567005770058700597006070061700627006370064700657006670067700687006970070700717007270073700747007570076700777007870079700807008170082700837008470085700867008770088700897009070091700927009370094700957009670097700987009970100701017010270103701047010570106701077010870109701107011170112701137011470115701167011770118701197012070121701227012370124701257012670127701287012970130701317013270133701347013570136701377013870139701407014170142701437014470145701467014770148701497015070151701527015370154701557015670157701587015970160701617016270163701647016570166701677016870169701707017170172701737017470175701767017770178701797018070181701827018370184701857018670187701887018970190701917019270193701947019570196701977019870199702007020170202702037020470205702067020770208702097021070211702127021370214702157021670217702187021970220702217022270223702247022570226702277022870229702307023170232702337023470235702367023770238702397024070241702427024370244702457024670247702487024970250702517025270253702547025570256702577025870259702607026170262702637026470265702667026770268702697027070271702727027370274702757027670277702787027970280702817028270283702847028570286702877028870289702907029170292702937029470295702967029770298702997030070301703027030370304703057030670307703087030970310703117031270313703147031570316703177031870319703207032170322703237032470325703267032770328703297033070331703327033370334703357033670337703387033970340703417034270343703447034570346703477034870349703507035170352703537035470355703567035770358703597036070361703627036370364703657036670367703687036970370703717037270373703747037570376703777037870379703807038170382703837038470385703867038770388703897039070391703927039370394703957039670397703987039970400704017040270403704047040570406704077040870409704107041170412704137041470415704167041770418704197042070421704227042370424704257042670427704287042970430704317043270433704347043570436704377043870439704407044170442704437044470445704467044770448704497045070451704527045370454704557045670457704587045970460704617046270463704647046570466704677046870469704707047170472704737047470475704767047770478704797048070481704827048370484704857048670487704887048970490704917049270493704947049570496704977049870499705007050170502705037050470505705067050770508705097051070511705127051370514705157051670517705187051970520705217052270523705247052570526705277052870529705307053170532705337053470535705367053770538705397054070541705427054370544705457054670547705487054970550705517055270553705547055570556705577055870559705607056170562705637056470565705667056770568705697057070571705727057370574705757057670577705787057970580705817058270583705847058570586705877058870589705907059170592705937059470595705967059770598705997060070601706027060370604706057060670607706087060970610706117061270613706147061570616706177061870619706207062170622706237062470625706267062770628706297063070631706327063370634706357063670637706387063970640706417064270643706447064570646706477064870649706507065170652706537065470655706567065770658706597066070661706627066370664706657066670667706687066970670706717067270673706747067570676706777067870679706807068170682706837068470685706867068770688706897069070691706927069370694706957069670697706987069970700707017070270703707047070570706707077070870709707107071170712707137071470715707167071770718707197072070721707227072370724707257072670727707287072970730707317073270733707347073570736707377073870739707407074170742707437074470745707467074770748707497075070751707527075370754707557075670757707587075970760707617076270763707647076570766707677076870769707707077170772707737077470775707767077770778707797078070781707827078370784707857078670787707887078970790707917079270793707947079570796707977079870799708007080170802708037080470805708067080770808708097081070811708127081370814708157081670817708187081970820708217082270823708247082570826708277082870829708307083170832708337083470835708367083770838708397084070841708427084370844708457084670847708487084970850708517085270853708547085570856708577085870859708607086170862708637086470865708667086770868708697087070871708727087370874708757087670877708787087970880708817088270883708847088570886708877088870889708907089170892708937089470895708967089770898708997090070901709027090370904709057090670907709087090970910709117091270913709147091570916709177091870919709207092170922709237092470925709267092770928709297093070931709327093370934709357093670937709387093970940709417094270943709447094570946709477094870949709507095170952709537095470955709567095770958709597096070961709627096370964709657096670967709687096970970709717097270973709747097570976709777097870979709807098170982709837098470985709867098770988709897099070991709927099370994709957099670997709987099971000710017100271003710047100571006710077100871009710107101171012710137101471015710167101771018710197102071021710227102371024710257102671027710287102971030710317103271033710347103571036710377103871039710407104171042710437104471045710467104771048710497105071051710527105371054710557105671057710587105971060710617106271063710647106571066710677106871069710707107171072710737107471075710767107771078710797108071081710827108371084710857108671087710887108971090710917109271093710947109571096710977109871099711007110171102711037110471105711067110771108711097111071111711127111371114711157111671117711187111971120711217112271123711247112571126711277112871129711307113171132711337113471135711367113771138711397114071141711427114371144711457114671147711487114971150711517115271153711547115571156711577115871159711607116171162711637116471165711667116771168711697117071171711727117371174711757117671177711787117971180711817118271183711847118571186711877118871189711907119171192711937119471195711967119771198711997120071201712027120371204712057120671207712087120971210712117121271213712147121571216712177121871219712207122171222712237122471225712267122771228712297123071231712327123371234712357123671237712387123971240712417124271243712447124571246712477124871249712507125171252712537125471255712567125771258712597126071261712627126371264712657126671267712687126971270712717127271273712747127571276712777127871279712807128171282712837128471285712867128771288712897129071291712927129371294712957129671297712987129971300713017130271303713047130571306713077130871309713107131171312713137131471315713167131771318713197132071321713227132371324713257132671327713287132971330713317133271333713347133571336713377133871339713407134171342713437134471345713467134771348713497135071351713527135371354713557135671357713587135971360713617136271363713647136571366713677136871369713707137171372713737137471375713767137771378713797138071381713827138371384713857138671387713887138971390713917139271393713947139571396713977139871399714007140171402714037140471405714067140771408714097141071411714127141371414714157141671417714187141971420714217142271423714247142571426714277142871429714307143171432714337143471435714367143771438714397144071441714427144371444714457144671447714487144971450714517145271453714547145571456714577145871459714607146171462714637146471465714667146771468714697147071471714727147371474714757147671477714787147971480714817148271483714847148571486714877148871489714907149171492714937149471495714967149771498714997150071501715027150371504715057150671507715087150971510715117151271513715147151571516715177151871519715207152171522715237152471525715267152771528715297153071531715327153371534715357153671537715387153971540715417154271543715447154571546715477154871549715507155171552715537155471555715567155771558715597156071561715627156371564715657156671567715687156971570715717157271573715747157571576715777157871579715807158171582715837158471585715867158771588715897159071591715927159371594715957159671597715987159971600716017160271603716047160571606716077160871609716107161171612716137161471615716167161771618716197162071621716227162371624716257162671627716287162971630716317163271633716347163571636716377163871639716407164171642716437164471645716467164771648716497165071651716527165371654716557165671657716587165971660716617166271663716647166571666716677166871669716707167171672716737167471675716767167771678716797168071681716827168371684716857168671687716887168971690716917169271693716947169571696716977169871699717007170171702717037170471705717067170771708717097171071711717127171371714717157171671717717187171971720717217172271723717247172571726717277172871729717307173171732717337173471735717367173771738717397174071741717427174371744717457174671747717487174971750717517175271753717547175571756717577175871759717607176171762717637176471765717667176771768717697177071771717727177371774717757177671777717787177971780717817178271783717847178571786717877178871789717907179171792717937179471795717967179771798717997180071801718027180371804718057180671807718087180971810718117181271813718147181571816718177181871819718207182171822718237182471825718267182771828718297183071831718327183371834718357183671837718387183971840718417184271843718447184571846718477184871849718507185171852718537185471855718567185771858718597186071861718627186371864718657186671867718687186971870718717187271873718747187571876718777187871879718807188171882718837188471885718867188771888718897189071891718927189371894718957189671897718987189971900719017190271903719047190571906719077190871909719107191171912719137191471915719167191771918719197192071921719227192371924719257192671927719287192971930719317193271933719347193571936719377193871939719407194171942719437194471945719467194771948719497195071951719527195371954719557195671957719587195971960719617196271963719647196571966719677196871969719707197171972719737197471975719767197771978719797198071981719827198371984719857198671987719887198971990719917199271993719947199571996719977199871999720007200172002720037200472005720067200772008720097201072011720127201372014720157201672017720187201972020720217202272023720247202572026720277202872029720307203172032720337203472035720367203772038720397204072041720427204372044720457204672047720487204972050720517205272053720547205572056720577205872059720607206172062720637206472065720667206772068720697207072071720727207372074720757207672077720787207972080720817208272083720847208572086720877208872089720907209172092720937209472095720967209772098720997210072101721027210372104721057210672107721087210972110721117211272113721147211572116721177211872119721207212172122721237212472125721267212772128721297213072131721327213372134721357213672137721387213972140721417214272143721447214572146721477214872149721507215172152721537215472155721567215772158721597216072161721627216372164721657216672167721687216972170721717217272173721747217572176721777217872179721807218172182721837218472185721867218772188721897219072191721927219372194721957219672197721987219972200722017220272203722047220572206722077220872209722107221172212722137221472215722167221772218722197222072221722227222372224722257222672227722287222972230722317223272233722347223572236722377223872239722407224172242722437224472245722467224772248722497225072251722527225372254722557225672257722587225972260722617226272263722647226572266722677226872269722707227172272722737227472275722767227772278722797228072281722827228372284722857228672287722887228972290722917229272293722947229572296722977229872299723007230172302723037230472305723067230772308723097231072311723127231372314723157231672317723187231972320723217232272323723247232572326723277232872329723307233172332723337233472335723367233772338723397234072341723427234372344723457234672347723487234972350723517235272353723547235572356723577235872359723607236172362723637236472365723667236772368723697237072371723727237372374723757237672377723787237972380723817238272383723847238572386723877238872389723907239172392723937239472395723967239772398723997240072401724027240372404724057240672407724087240972410724117241272413724147241572416724177241872419724207242172422724237242472425724267242772428724297243072431724327243372434724357243672437724387243972440724417244272443724447244572446724477244872449724507245172452724537245472455724567245772458724597246072461724627246372464724657246672467724687246972470724717247272473724747247572476724777247872479724807248172482724837248472485724867248772488724897249072491724927249372494724957249672497724987249972500725017250272503725047250572506725077250872509725107251172512725137251472515725167251772518725197252072521725227252372524725257252672527725287252972530725317253272533725347253572536725377253872539725407254172542725437254472545725467254772548725497255072551725527255372554725557255672557725587255972560725617256272563725647256572566725677256872569725707257172572725737257472575725767257772578725797258072581725827258372584725857258672587725887258972590725917259272593725947259572596725977259872599726007260172602726037260472605726067260772608726097261072611726127261372614726157261672617726187261972620726217262272623726247262572626726277262872629726307263172632726337263472635726367263772638726397264072641726427264372644726457264672647726487264972650726517265272653726547265572656726577265872659726607266172662726637266472665726667266772668726697267072671726727267372674726757267672677726787267972680726817268272683726847268572686726877268872689726907269172692726937269472695726967269772698726997270072701727027270372704727057270672707727087270972710727117271272713727147271572716727177271872719727207272172722727237272472725727267272772728727297273072731727327273372734727357273672737727387273972740727417274272743727447274572746727477274872749727507275172752727537275472755727567275772758727597276072761727627276372764727657276672767727687276972770727717277272773727747277572776727777277872779727807278172782727837278472785727867278772788727897279072791727927279372794727957279672797727987279972800728017280272803728047280572806728077280872809728107281172812728137281472815728167281772818728197282072821728227282372824728257282672827728287282972830728317283272833728347283572836728377283872839728407284172842728437284472845728467284772848728497285072851728527285372854728557285672857728587285972860728617286272863728647286572866728677286872869728707287172872728737287472875728767287772878728797288072881728827288372884728857288672887728887288972890728917289272893728947289572896728977289872899729007290172902729037290472905729067290772908729097291072911729127291372914729157291672917729187291972920729217292272923729247292572926729277292872929729307293172932729337293472935729367293772938729397294072941729427294372944729457294672947729487294972950729517295272953729547295572956729577295872959729607296172962729637296472965729667296772968729697297072971729727297372974729757297672977729787297972980729817298272983729847298572986729877298872989729907299172992729937299472995729967299772998729997300073001730027300373004730057300673007730087300973010730117301273013730147301573016730177301873019730207302173022730237302473025730267302773028730297303073031730327303373034730357303673037730387303973040730417304273043730447304573046730477304873049730507305173052730537305473055730567305773058730597306073061730627306373064730657306673067730687306973070730717307273073730747307573076730777307873079730807308173082730837308473085730867308773088730897309073091730927309373094730957309673097730987309973100731017310273103731047310573106731077310873109731107311173112731137311473115731167311773118731197312073121731227312373124731257312673127731287312973130731317313273133731347313573136731377313873139731407314173142731437314473145731467314773148731497315073151731527315373154731557315673157731587315973160731617316273163731647316573166731677316873169731707317173172731737317473175731767317773178731797318073181731827318373184731857318673187731887318973190731917319273193731947319573196731977319873199732007320173202732037320473205732067320773208732097321073211732127321373214732157321673217732187321973220732217322273223732247322573226732277322873229732307323173232732337323473235732367323773238732397324073241732427324373244732457324673247732487324973250732517325273253732547325573256732577325873259732607326173262732637326473265732667326773268732697327073271732727327373274732757327673277732787327973280732817328273283732847328573286732877328873289732907329173292732937329473295732967329773298732997330073301733027330373304733057330673307733087330973310733117331273313733147331573316733177331873319733207332173322733237332473325733267332773328733297333073331733327333373334733357333673337733387333973340733417334273343733447334573346733477334873349733507335173352733537335473355733567335773358733597336073361733627336373364733657336673367733687336973370733717337273373733747337573376733777337873379733807338173382733837338473385733867338773388733897339073391733927339373394733957339673397733987339973400734017340273403734047340573406734077340873409734107341173412734137341473415734167341773418734197342073421734227342373424734257342673427734287342973430734317343273433734347343573436734377343873439734407344173442734437344473445734467344773448734497345073451734527345373454734557345673457734587345973460734617346273463734647346573466734677346873469734707347173472734737347473475734767347773478734797348073481734827348373484734857348673487734887348973490734917349273493734947349573496734977349873499735007350173502735037350473505735067350773508735097351073511735127351373514735157351673517735187351973520735217352273523735247352573526735277352873529735307353173532735337353473535735367353773538735397354073541735427354373544735457354673547735487354973550735517355273553735547355573556735577355873559735607356173562735637356473565735667356773568735697357073571735727357373574735757357673577735787357973580735817358273583735847358573586735877358873589735907359173592735937359473595735967359773598735997360073601736027360373604736057360673607736087360973610736117361273613736147361573616736177361873619736207362173622736237362473625736267362773628736297363073631736327363373634736357363673637736387363973640736417364273643736447364573646736477364873649736507365173652736537365473655736567365773658736597366073661736627366373664736657366673667736687366973670736717367273673736747367573676736777367873679736807368173682736837368473685736867368773688736897369073691736927369373694736957369673697736987369973700737017370273703737047370573706737077370873709737107371173712737137371473715737167371773718737197372073721737227372373724737257372673727737287372973730737317373273733737347373573736737377373873739737407374173742737437374473745737467374773748737497375073751737527375373754737557375673757737587375973760737617376273763737647376573766737677376873769737707377173772737737377473775737767377773778737797378073781737827378373784737857378673787737887378973790737917379273793737947379573796737977379873799738007380173802738037380473805738067380773808738097381073811738127381373814738157381673817738187381973820738217382273823738247382573826738277382873829738307383173832738337383473835738367383773838738397384073841738427384373844738457384673847738487384973850738517385273853738547385573856738577385873859738607386173862738637386473865738667386773868738697387073871738727387373874738757387673877738787387973880738817388273883738847388573886738877388873889738907389173892738937389473895738967389773898738997390073901739027390373904739057390673907739087390973910739117391273913739147391573916739177391873919739207392173922739237392473925739267392773928739297393073931739327393373934739357393673937739387393973940739417394273943739447394573946739477394873949739507395173952739537395473955739567395773958739597396073961739627396373964739657396673967739687396973970739717397273973739747397573976739777397873979739807398173982739837398473985739867398773988739897399073991739927399373994739957399673997739987399974000740017400274003740047400574006740077400874009740107401174012740137401474015740167401774018740197402074021740227402374024740257402674027740287402974030740317403274033740347403574036740377403874039740407404174042740437404474045740467404774048740497405074051740527405374054740557405674057740587405974060740617406274063740647406574066740677406874069740707407174072740737407474075740767407774078740797408074081740827408374084740857408674087740887408974090740917409274093740947409574096740977409874099741007410174102741037410474105741067410774108741097411074111741127411374114741157411674117741187411974120741217412274123741247412574126741277412874129741307413174132741337413474135741367413774138741397414074141741427414374144741457414674147741487414974150741517415274153741547415574156741577415874159741607416174162741637416474165741667416774168741697417074171741727417374174741757417674177741787417974180741817418274183741847418574186741877418874189741907419174192741937419474195741967419774198741997420074201742027420374204742057420674207742087420974210742117421274213742147421574216742177421874219742207422174222742237422474225742267422774228742297423074231742327423374234742357423674237742387423974240742417424274243742447424574246742477424874249742507425174252742537425474255742567425774258742597426074261742627426374264742657426674267742687426974270742717427274273742747427574276742777427874279742807428174282742837428474285742867428774288742897429074291742927429374294742957429674297742987429974300743017430274303743047430574306743077430874309743107431174312743137431474315743167431774318743197432074321743227432374324743257432674327743287432974330743317433274333743347433574336743377433874339743407434174342743437434474345743467434774348743497435074351743527435374354743557435674357743587435974360743617436274363743647436574366743677436874369743707437174372743737437474375743767437774378743797438074381743827438374384743857438674387743887438974390743917439274393743947439574396743977439874399744007440174402744037440474405744067440774408744097441074411744127441374414744157441674417744187441974420744217442274423744247442574426744277442874429744307443174432744337443474435744367443774438744397444074441744427444374444744457444674447744487444974450744517445274453744547445574456744577445874459744607446174462744637446474465744667446774468744697447074471744727447374474744757447674477744787447974480744817448274483744847448574486744877448874489744907449174492744937449474495744967449774498744997450074501745027450374504745057450674507745087450974510745117451274513745147451574516745177451874519745207452174522745237452474525745267452774528745297453074531745327453374534745357453674537745387453974540745417454274543745447454574546745477454874549745507455174552745537455474555745567455774558745597456074561745627456374564745657456674567745687456974570745717457274573745747457574576745777457874579745807458174582745837458474585745867458774588745897459074591745927459374594745957459674597745987459974600746017460274603746047460574606746077460874609746107461174612746137461474615746167461774618746197462074621746227462374624746257462674627746287462974630746317463274633746347463574636746377463874639746407464174642746437464474645746467464774648746497465074651746527465374654746557465674657746587465974660746617466274663746647466574666746677466874669746707467174672746737467474675746767467774678746797468074681746827468374684746857468674687746887468974690746917469274693746947469574696746977469874699747007470174702747037470474705747067470774708747097471074711747127471374714747157471674717747187471974720747217472274723747247472574726747277472874729747307473174732747337473474735747367473774738747397474074741747427474374744747457474674747747487474974750747517475274753747547475574756747577475874759747607476174762747637476474765747667476774768747697477074771747727477374774747757477674777747787477974780747817478274783747847478574786747877478874789747907479174792747937479474795747967479774798747997480074801748027480374804748057480674807748087480974810748117481274813748147481574816748177481874819748207482174822748237482474825748267482774828748297483074831748327483374834748357483674837748387483974840748417484274843748447484574846748477484874849748507485174852748537485474855748567485774858748597486074861748627486374864748657486674867748687486974870748717487274873748747487574876748777487874879748807488174882748837488474885748867488774888748897489074891748927489374894748957489674897748987489974900749017490274903749047490574906749077490874909749107491174912749137491474915749167491774918749197492074921749227492374924749257492674927749287492974930749317493274933749347493574936749377493874939749407494174942749437494474945749467494774948749497495074951749527495374954749557495674957749587495974960749617496274963749647496574966749677496874969749707497174972749737497474975749767497774978749797498074981749827498374984749857498674987749887498974990749917499274993749947499574996749977499874999750007500175002750037500475005750067500775008750097501075011750127501375014750157501675017750187501975020750217502275023750247502575026750277502875029750307503175032750337503475035750367503775038750397504075041750427504375044750457504675047750487504975050750517505275053750547505575056750577505875059750607506175062750637506475065750667506775068750697507075071750727507375074750757507675077750787507975080750817508275083750847508575086750877508875089750907509175092750937509475095750967509775098750997510075101751027510375104751057510675107751087510975110751117511275113751147511575116751177511875119751207512175122751237512475125751267512775128751297513075131751327513375134751357513675137751387513975140751417514275143751447514575146751477514875149751507515175152751537515475155751567515775158751597516075161751627516375164751657516675167751687516975170751717517275173751747517575176751777517875179751807518175182751837518475185751867518775188751897519075191751927519375194751957519675197751987519975200752017520275203752047520575206752077520875209752107521175212752137521475215752167521775218752197522075221752227522375224752257522675227752287522975230752317523275233752347523575236752377523875239752407524175242752437524475245752467524775248752497525075251752527525375254752557525675257752587525975260752617526275263752647526575266752677526875269752707527175272752737527475275752767527775278752797528075281752827528375284752857528675287752887528975290752917529275293752947529575296752977529875299753007530175302753037530475305753067530775308753097531075311753127531375314753157531675317753187531975320753217532275323753247532575326753277532875329753307533175332753337533475335753367533775338753397534075341753427534375344753457534675347753487534975350753517535275353753547535575356753577535875359753607536175362753637536475365753667536775368753697537075371753727537375374753757537675377753787537975380753817538275383753847538575386753877538875389753907539175392753937539475395753967539775398753997540075401754027540375404754057540675407754087540975410754117541275413754147541575416754177541875419754207542175422754237542475425754267542775428754297543075431754327543375434754357543675437754387543975440754417544275443754447544575446754477544875449754507545175452754537545475455754567545775458754597546075461754627546375464754657546675467754687546975470754717547275473754747547575476754777547875479754807548175482754837548475485754867548775488754897549075491754927549375494754957549675497754987549975500755017550275503755047550575506755077550875509755107551175512755137551475515755167551775518755197552075521755227552375524755257552675527755287552975530755317553275533755347553575536755377553875539755407554175542755437554475545755467554775548755497555075551755527555375554755557555675557755587555975560755617556275563755647556575566755677556875569755707557175572755737557475575755767557775578755797558075581755827558375584755857558675587755887558975590755917559275593755947559575596755977559875599756007560175602756037560475605756067560775608756097561075611756127561375614756157561675617756187561975620756217562275623756247562575626756277562875629756307563175632756337563475635756367563775638756397564075641756427564375644756457564675647756487564975650756517565275653756547565575656756577565875659756607566175662756637566475665756667566775668756697567075671756727567375674756757567675677756787567975680756817568275683756847568575686756877568875689756907569175692756937569475695756967569775698756997570075701757027570375704757057570675707757087570975710757117571275713757147571575716757177571875719757207572175722757237572475725757267572775728757297573075731757327573375734757357573675737757387573975740757417574275743757447574575746757477574875749757507575175752757537575475755757567575775758757597576075761757627576375764757657576675767757687576975770757717577275773757747577575776757777577875779757807578175782757837578475785757867578775788757897579075791757927579375794757957579675797757987579975800758017580275803758047580575806758077580875809758107581175812758137581475815758167581775818758197582075821758227582375824758257582675827758287582975830758317583275833758347583575836758377583875839758407584175842758437584475845758467584775848758497585075851758527585375854758557585675857758587585975860758617586275863758647586575866758677586875869758707587175872758737587475875758767587775878758797588075881758827588375884758857588675887758887588975890758917589275893758947589575896758977589875899759007590175902759037590475905759067590775908759097591075911759127591375914759157591675917759187591975920759217592275923759247592575926759277592875929759307593175932759337593475935759367593775938759397594075941759427594375944759457594675947759487594975950759517595275953759547595575956759577595875959759607596175962759637596475965759667596775968759697597075971759727597375974759757597675977759787597975980759817598275983759847598575986759877598875989759907599175992759937599475995759967599775998759997600076001760027600376004760057600676007760087600976010760117601276013760147601576016760177601876019760207602176022760237602476025760267602776028760297603076031760327603376034760357603676037760387603976040760417604276043760447604576046760477604876049760507605176052760537605476055760567605776058760597606076061760627606376064760657606676067760687606976070760717607276073760747607576076760777607876079760807608176082760837608476085760867608776088760897609076091760927609376094760957609676097760987609976100761017610276103761047610576106761077610876109761107611176112761137611476115761167611776118761197612076121761227612376124761257612676127761287612976130761317613276133761347613576136761377613876139761407614176142761437614476145761467614776148761497615076151761527615376154761557615676157761587615976160761617616276163761647616576166761677616876169761707617176172761737617476175761767617776178761797618076181761827618376184761857618676187761887618976190761917619276193761947619576196761977619876199762007620176202762037620476205762067620776208762097621076211762127621376214762157621676217762187621976220762217622276223762247622576226762277622876229762307623176232762337623476235762367623776238762397624076241762427624376244762457624676247762487624976250762517625276253762547625576256762577625876259762607626176262762637626476265762667626776268762697627076271762727627376274762757627676277762787627976280762817628276283762847628576286762877628876289762907629176292762937629476295762967629776298762997630076301763027630376304763057630676307763087630976310763117631276313763147631576316763177631876319763207632176322763237632476325763267632776328763297633076331763327633376334763357633676337763387633976340763417634276343763447634576346763477634876349763507635176352763537635476355763567635776358763597636076361763627636376364763657636676367763687636976370763717637276373763747637576376763777637876379763807638176382763837638476385763867638776388763897639076391763927639376394763957639676397763987639976400764017640276403764047640576406764077640876409764107641176412764137641476415764167641776418764197642076421764227642376424764257642676427764287642976430764317643276433764347643576436764377643876439764407644176442764437644476445764467644776448764497645076451764527645376454764557645676457764587645976460764617646276463764647646576466764677646876469764707647176472764737647476475764767647776478764797648076481764827648376484764857648676487764887648976490764917649276493764947649576496764977649876499765007650176502765037650476505765067650776508765097651076511765127651376514765157651676517765187651976520765217652276523765247652576526765277652876529765307653176532765337653476535765367653776538765397654076541765427654376544765457654676547765487654976550765517655276553765547655576556765577655876559765607656176562765637656476565765667656776568765697657076571765727657376574765757657676577765787657976580765817658276583765847658576586765877658876589765907659176592765937659476595765967659776598765997660076601766027660376604766057660676607766087660976610766117661276613766147661576616766177661876619766207662176622766237662476625766267662776628766297663076631766327663376634766357663676637766387663976640766417664276643766447664576646766477664876649766507665176652766537665476655766567665776658766597666076661766627666376664766657666676667766687666976670766717667276673766747667576676766777667876679766807668176682766837668476685766867668776688766897669076691766927669376694766957669676697766987669976700767017670276703767047670576706767077670876709767107671176712767137671476715767167671776718767197672076721767227672376724767257672676727767287672976730767317673276733767347673576736767377673876739767407674176742767437674476745767467674776748767497675076751767527675376754767557675676757767587675976760767617676276763767647676576766767677676876769767707677176772767737677476775767767677776778767797678076781767827678376784767857678676787767887678976790767917679276793767947679576796767977679876799768007680176802768037680476805768067680776808768097681076811768127681376814768157681676817768187681976820768217682276823768247682576826768277682876829768307683176832768337683476835768367683776838768397684076841768427684376844768457684676847768487684976850768517685276853768547685576856768577685876859768607686176862768637686476865768667686776868768697687076871768727687376874768757687676877768787687976880768817688276883768847688576886768877688876889768907689176892768937689476895768967689776898768997690076901769027690376904769057690676907769087690976910769117691276913769147691576916769177691876919769207692176922769237692476925769267692776928769297693076931769327693376934769357693676937769387693976940769417694276943769447694576946769477694876949769507695176952769537695476955769567695776958769597696076961769627696376964769657696676967769687696976970769717697276973769747697576976769777697876979769807698176982769837698476985769867698776988769897699076991769927699376994769957699676997769987699977000770017700277003770047700577006770077700877009770107701177012770137701477015770167701777018770197702077021770227702377024770257702677027770287702977030770317703277033770347703577036770377703877039770407704177042770437704477045770467704777048770497705077051770527705377054770557705677057770587705977060770617706277063770647706577066770677706877069770707707177072770737707477075770767707777078770797708077081770827708377084770857708677087770887708977090770917709277093770947709577096770977709877099771007710177102771037710477105771067710777108771097711077111771127711377114771157711677117771187711977120771217712277123771247712577126771277712877129771307713177132771337713477135771367713777138771397714077141771427714377144771457714677147771487714977150771517715277153771547715577156771577715877159771607716177162771637716477165771667716777168771697717077171771727717377174771757717677177771787717977180771817718277183771847718577186771877718877189771907719177192771937719477195771967719777198771997720077201772027720377204772057720677207772087720977210772117721277213772147721577216772177721877219772207722177222772237722477225772267722777228772297723077231772327723377234772357723677237772387723977240772417724277243772447724577246772477724877249772507725177252772537725477255772567725777258772597726077261772627726377264772657726677267772687726977270772717727277273772747727577276772777727877279772807728177282772837728477285772867728777288772897729077291772927729377294772957729677297772987729977300773017730277303773047730577306773077730877309773107731177312773137731477315773167731777318773197732077321773227732377324773257732677327773287732977330773317733277333773347733577336773377733877339773407734177342773437734477345773467734777348773497735077351773527735377354773557735677357773587735977360773617736277363773647736577366773677736877369773707737177372773737737477375773767737777378773797738077381773827738377384773857738677387773887738977390773917739277393773947739577396773977739877399774007740177402774037740477405774067740777408774097741077411774127741377414774157741677417774187741977420774217742277423774247742577426774277742877429774307743177432774337743477435774367743777438774397744077441774427744377444774457744677447774487744977450774517745277453774547745577456774577745877459774607746177462774637746477465774667746777468774697747077471774727747377474774757747677477774787747977480774817748277483774847748577486774877748877489774907749177492774937749477495774967749777498774997750077501775027750377504775057750677507775087750977510775117751277513775147751577516775177751877519775207752177522775237752477525775267752777528775297753077531775327753377534775357753677537775387753977540775417754277543775447754577546775477754877549775507755177552775537755477555775567755777558775597756077561775627756377564775657756677567775687756977570775717757277573775747757577576775777757877579775807758177582775837758477585775867758777588775897759077591775927759377594775957759677597775987759977600776017760277603776047760577606776077760877609776107761177612776137761477615776167761777618776197762077621776227762377624776257762677627776287762977630776317763277633776347763577636776377763877639776407764177642776437764477645776467764777648776497765077651776527765377654776557765677657776587765977660776617766277663776647766577666776677766877669776707767177672776737767477675776767767777678776797768077681776827768377684776857768677687776887768977690776917769277693776947769577696776977769877699777007770177702777037770477705777067770777708777097771077711777127771377714777157771677717777187771977720777217772277723777247772577726777277772877729777307773177732777337773477735777367773777738777397774077741777427774377744777457774677747777487774977750777517775277753777547775577756777577775877759777607776177762777637776477765777667776777768777697777077771777727777377774777757777677777777787777977780777817778277783777847778577786777877778877789777907779177792777937779477795777967779777798777997780077801778027780377804778057780677807778087780977810778117781277813778147781577816778177781877819778207782177822778237782477825778267782777828778297783077831778327783377834778357783677837778387783977840778417784277843778447784577846778477784877849778507785177852778537785477855778567785777858778597786077861778627786377864778657786677867778687786977870778717787277873778747787577876778777787877879778807788177882778837788477885778867788777888778897789077891778927789377894778957789677897778987789977900779017790277903779047790577906779077790877909779107791177912779137791477915779167791777918779197792077921779227792377924779257792677927779287792977930779317793277933779347793577936779377793877939779407794177942779437794477945779467794777948779497795077951779527795377954779557795677957779587795977960779617796277963779647796577966779677796877969779707797177972779737797477975779767797777978779797798077981779827798377984779857798677987779887798977990779917799277993779947799577996779977799877999780007800178002780037800478005780067800778008780097801078011780127801378014780157801678017780187801978020780217802278023780247802578026780277802878029780307803178032780337803478035780367803778038780397804078041780427804378044780457804678047780487804978050780517805278053780547805578056780577805878059780607806178062780637806478065780667806778068780697807078071780727807378074780757807678077780787807978080780817808278083780847808578086780877808878089780907809178092780937809478095780967809778098780997810078101781027810378104781057810678107781087810978110781117811278113781147811578116781177811878119781207812178122781237812478125781267812778128781297813078131781327813378134781357813678137781387813978140781417814278143781447814578146781477814878149781507815178152781537815478155781567815778158781597816078161781627816378164781657816678167781687816978170781717817278173781747817578176781777817878179781807818178182781837818478185781867818778188781897819078191781927819378194781957819678197781987819978200782017820278203782047820578206782077820878209782107821178212782137821478215782167821778218782197822078221782227822378224782257822678227782287822978230782317823278233782347823578236782377823878239782407824178242782437824478245782467824778248782497825078251782527825378254782557825678257782587825978260782617826278263782647826578266782677826878269782707827178272782737827478275782767827778278782797828078281782827828378284782857828678287782887828978290782917829278293782947829578296782977829878299783007830178302783037830478305783067830778308783097831078311783127831378314783157831678317783187831978320783217832278323783247832578326783277832878329783307833178332783337833478335783367833778338783397834078341783427834378344783457834678347783487834978350783517835278353783547835578356783577835878359783607836178362783637836478365783667836778368783697837078371783727837378374783757837678377783787837978380783817838278383783847838578386783877838878389783907839178392783937839478395783967839778398783997840078401784027840378404784057840678407784087840978410784117841278413784147841578416784177841878419784207842178422784237842478425784267842778428784297843078431784327843378434784357843678437784387843978440784417844278443784447844578446784477844878449784507845178452784537845478455784567845778458784597846078461784627846378464784657846678467784687846978470784717847278473784747847578476784777847878479784807848178482784837848478485784867848778488784897849078491784927849378494784957849678497784987849978500785017850278503785047850578506785077850878509785107851178512785137851478515785167851778518785197852078521785227852378524785257852678527785287852978530785317853278533785347853578536785377853878539785407854178542785437854478545785467854778548785497855078551785527855378554785557855678557785587855978560785617856278563785647856578566785677856878569785707857178572785737857478575785767857778578785797858078581785827858378584785857858678587785887858978590785917859278593785947859578596785977859878599786007860178602786037860478605786067860778608786097861078611786127861378614786157861678617786187861978620786217862278623786247862578626786277862878629786307863178632786337863478635786367863778638786397864078641786427864378644786457864678647786487864978650786517865278653786547865578656786577865878659786607866178662786637866478665786667866778668786697867078671786727867378674786757867678677786787867978680786817868278683786847868578686786877868878689786907869178692786937869478695786967869778698786997870078701787027870378704787057870678707787087870978710787117871278713787147871578716787177871878719787207872178722787237872478725787267872778728787297873078731787327873378734787357873678737787387873978740787417874278743 |
- var VE = Object.defineProperty;
- var KE = (e, t, n) =>
- t in e
- ? VE(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n })
- : (e[t] = n);
- var kd = (e, t, n) => (KE(e, typeof t != 'symbol' ? t + '' : t, n), n);
- function ile() {
- import.meta.url, import('_').catch(() => 1);
- async function* e() {}
- }
- (function () {
- const t = document.createElement('link').relList;
- if (t && t.supports && t.supports('modulepreload')) return;
- for (const o of document.querySelectorAll('link[rel="modulepreload"]')) r(o);
- new MutationObserver(o => {
- for (const i of o)
- if (i.type === 'childList')
- for (const a of i.addedNodes)
- a.tagName === 'LINK' && a.rel === 'modulepreload' && r(a);
- }).observe(document, { childList: !0, subtree: !0 });
- function n(o) {
- const i = {};
- return (
- o.integrity && (i.integrity = o.integrity),
- o.referrerPolicy && (i.referrerPolicy = o.referrerPolicy),
- o.crossOrigin === 'use-credentials'
- ? (i.credentials = 'include')
- : o.crossOrigin === 'anonymous'
- ? (i.credentials = 'omit')
- : (i.credentials = 'same-origin'),
- i
- );
- }
- function r(o) {
- if (o.ep) return;
- o.ep = !0;
- const i = n(o);
- fetch(o.href, i);
- }
- })();
- function S0(e, t) {
- const n = Object.create(null),
- r = e.split(',');
- for (let o = 0; o < r.length; o++) n[r[o]] = !0;
- return t ? o => !!n[o.toLowerCase()] : o => !!n[o];
- }
- const Zn = {},
- wc = [],
- ui = () => {},
- qE = () => !1,
- YE = /^on[^a-z]/,
- Sv = e => YE.test(e),
- _0 = e => e.startsWith('onUpdate:'),
- gr = Object.assign,
- R0 = (e, t) => {
- const n = e.indexOf(t);
- n > -1 && e.splice(n, 1);
- },
- GE = Object.prototype.hasOwnProperty,
- Sn = (e, t) => GE.call(e, t),
- Gt = Array.isArray,
- Kd = e => _v(e) === '[object Map]',
- XE = e => _v(e) === '[object Set]',
- tn = e => typeof e == 'function',
- _r = e => typeof e == 'string',
- P0 = e => typeof e == 'symbol',
- rr = e => e !== null && typeof e == 'object',
- __ = e => rr(e) && tn(e.then) && tn(e.catch),
- ZE = Object.prototype.toString,
- _v = e => ZE.call(e),
- QE = e => _v(e).slice(8, -1),
- JE = e => _v(e) === '[object Object]',
- k0 = e => _r(e) && e !== 'NaN' && e[0] !== '-' && '' + parseInt(e, 10) === e,
- zh = S0(
- ',key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted'
- ),
- Rv = e => {
- const t = Object.create(null);
- return n => t[n] || (t[n] = e(n));
- },
- e6 = /-(\w)/g,
- Ui = Rv(e => e.replace(e6, (t, n) => (n ? n.toUpperCase() : ''))),
- t6 = /\B([A-Z])/g,
- jc = Rv(e => e.replace(t6, '-$1').toLowerCase()),
- Pv = Rv(e => e.charAt(0).toUpperCase() + e.slice(1)),
- fg = Rv(e => (e ? `on${Pv(e)}` : '')),
- du = (e, t) => !Object.is(e, t),
- hg = (e, t) => {
- for (let n = 0; n < e.length; n++) e[n](t);
- },
- jh = (e, t, n) => {
- Object.defineProperty(e, t, { configurable: !0, enumerable: !1, value: n });
- },
- n6 = e => {
- const t = parseFloat(e);
- return isNaN(t) ? e : t;
- },
- r6 = e => {
- const t = _r(e) ? Number(e) : NaN;
- return isNaN(t) ? e : t;
- };
- let uw;
- const zm = () =>
- uw ||
- (uw =
- typeof globalThis < 'u'
- ? globalThis
- : typeof self < 'u'
- ? self
- : typeof window < 'u'
- ? window
- : typeof global < 'u'
- ? global
- : {});
- function kv(e) {
- if (Gt(e)) {
- const t = {};
- for (let n = 0; n < e.length; n++) {
- const r = e[n],
- o = _r(r) ? l6(r) : kv(r);
- if (o) for (const i in o) t[i] = o[i];
- }
- return t;
- } else {
- if (_r(e)) return e;
- if (rr(e)) return e;
- }
- }
- const o6 = /;(?![^(]*\))/g,
- i6 = /:([^]+)/,
- a6 = /\/\*[^]*?\*\//g;
- function l6(e) {
- const t = {};
- return (
- e
- .replace(a6, '')
- .split(o6)
- .forEach(n => {
- if (n) {
- const r = n.split(i6);
- r.length > 1 && (t[r[0].trim()] = r[1].trim());
- }
- }),
- t
- );
- }
- function T0(e) {
- let t = '';
- if (_r(e)) t = e;
- else if (Gt(e))
- for (let n = 0; n < e.length; n++) {
- const r = T0(e[n]);
- r && (t += r + ' ');
- }
- else if (rr(e)) for (const n in e) e[n] && (t += n + ' ');
- return t.trim();
- }
- const s6 =
- 'itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly',
- c6 = S0(s6);
- function R_(e) {
- return !!e || e === '';
- }
- let zo;
- class P_ {
- constructor(t = !1) {
- (this.detached = t),
- (this._active = !0),
- (this.effects = []),
- (this.cleanups = []),
- (this.parent = zo),
- !t && zo && (this.index = (zo.scopes || (zo.scopes = [])).push(this) - 1);
- }
- get active() {
- return this._active;
- }
- run(t) {
- if (this._active) {
- const n = zo;
- try {
- return (zo = this), t();
- } finally {
- zo = n;
- }
- }
- }
- on() {
- zo = this;
- }
- off() {
- zo = this.parent;
- }
- stop(t) {
- if (this._active) {
- let n, r;
- for (n = 0, r = this.effects.length; n < r; n++) this.effects[n].stop();
- for (n = 0, r = this.cleanups.length; n < r; n++) this.cleanups[n]();
- if (this.scopes)
- for (n = 0, r = this.scopes.length; n < r; n++) this.scopes[n].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 k_(e) {
- return new P_(e);
- }
- function d6(e, t = zo) {
- t && t.active && t.effects.push(e);
- }
- function T_() {
- return zo;
- }
- function u6(e) {
- zo && zo.cleanups.push(e);
- }
- const $0 = e => {
- const t = new Set(e);
- return (t.w = 0), (t.n = 0), t;
- },
- $_ = e => (e.w & dl) > 0,
- O_ = e => (e.n & dl) > 0,
- f6 = ({ deps: e }) => {
- if (e.length) for (let t = 0; t < e.length; t++) e[t].w |= dl;
- },
- h6 = e => {
- const { deps: t } = e;
- if (t.length) {
- let n = 0;
- for (let r = 0; r < t.length; r++) {
- const o = t[r];
- $_(o) && !O_(o) ? o.delete(e) : (t[n++] = o),
- (o.w &= ~dl),
- (o.n &= ~dl);
- }
- t.length = n;
- }
- },
- Uh = new WeakMap();
- let Bd = 0,
- dl = 1;
- const Am = 30;
- let ci;
- const hs = Symbol(''),
- Em = Symbol('');
- class O0 {
- constructor(t, n = null, r) {
- (this.fn = t),
- (this.scheduler = n),
- (this.active = !0),
- (this.deps = []),
- (this.parent = void 0),
- d6(this, r);
- }
- run() {
- if (!this.active) return this.fn();
- let t = ci,
- n = il;
- for (; t; ) {
- if (t === this) return;
- t = t.parent;
- }
- try {
- return (
- (this.parent = ci),
- (ci = this),
- (il = !0),
- (dl = 1 << ++Bd),
- Bd <= Am ? f6(this) : fw(this),
- this.fn()
- );
- } finally {
- Bd <= Am && h6(this),
- (dl = 1 << --Bd),
- (ci = this.parent),
- (il = n),
- (this.parent = void 0),
- this.deferStop && this.stop();
- }
- }
- stop() {
- ci === this
- ? (this.deferStop = !0)
- : this.active &&
- (fw(this), this.onStop && this.onStop(), (this.active = !1));
- }
- }
- function fw(e) {
- const { deps: t } = e;
- if (t.length) {
- for (let n = 0; n < t.length; n++) t[n].delete(e);
- t.length = 0;
- }
- }
- let il = !0;
- const z_ = [];
- function Uc() {
- z_.push(il), (il = !1);
- }
- function Wc() {
- const e = z_.pop();
- il = e === void 0 ? !0 : e;
- }
- function Co(e, t, n) {
- if (il && ci) {
- let r = Uh.get(e);
- r || Uh.set(e, (r = new Map()));
- let o = r.get(n);
- o || r.set(n, (o = $0())), A_(o);
- }
- }
- function A_(e, t) {
- let n = !1;
- Bd <= Am ? O_(e) || ((e.n |= dl), (n = !$_(e))) : (n = !e.has(ci)),
- n && (e.add(ci), ci.deps.push(e));
- }
- function ba(e, t, n, r, o, i) {
- const a = Uh.get(e);
- if (!a) return;
- let s = [];
- if (t === 'clear') s = [...a.values()];
- else if (n === 'length' && Gt(e)) {
- const c = Number(r);
- a.forEach((d, f) => {
- (f === 'length' || f >= c) && s.push(d);
- });
- } else
- switch ((n !== void 0 && s.push(a.get(n)), t)) {
- case 'add':
- Gt(e)
- ? k0(n) && s.push(a.get('length'))
- : (s.push(a.get(hs)), Kd(e) && s.push(a.get(Em)));
- break;
- case 'delete':
- Gt(e) || (s.push(a.get(hs)), Kd(e) && s.push(a.get(Em)));
- break;
- case 'set':
- Kd(e) && s.push(a.get(hs));
- break;
- }
- if (s.length === 1) s[0] && Mm(s[0]);
- else {
- const c = [];
- for (const d of s) d && c.push(...d);
- Mm($0(c));
- }
- }
- function Mm(e, t) {
- const n = Gt(e) ? e : [...e];
- for (const r of n) r.computed && hw(r);
- for (const r of n) r.computed || hw(r);
- }
- function hw(e, t) {
- (e !== ci || e.allowRecurse) && (e.scheduler ? e.scheduler() : e.run());
- }
- function v6(e, t) {
- var n;
- return (n = Uh.get(e)) == null ? void 0 : n.get(t);
- }
- const p6 = S0('__proto__,__v_isRef,__isVue'),
- E_ = new Set(
- Object.getOwnPropertyNames(Symbol)
- .filter(e => e !== 'arguments' && e !== 'caller')
- .map(e => Symbol[e])
- .filter(P0)
- ),
- g6 = z0(),
- m6 = z0(!1, !0),
- b6 = z0(!0),
- vw = y6();
- function y6() {
- const e = {};
- return (
- ['includes', 'indexOf', 'lastIndexOf'].forEach(t => {
- e[t] = function (...n) {
- const r = xn(this);
- for (let i = 0, a = this.length; i < a; i++) Co(r, 'get', i + '');
- const o = r[t](...n);
- return o === -1 || o === !1 ? r[t](...n.map(xn)) : o;
- };
- }),
- ['push', 'pop', 'shift', 'unshift', 'splice'].forEach(t => {
- e[t] = function (...n) {
- Uc();
- const r = xn(this)[t].apply(this, n);
- return Wc(), r;
- };
- }),
- e
- );
- }
- function x6(e) {
- const t = xn(this);
- return Co(t, 'has', e), t.hasOwnProperty(e);
- }
- function z0(e = !1, t = !1) {
- return function (r, o, i) {
- if (o === '__v_isReactive') return !e;
- if (o === '__v_isReadonly') return e;
- if (o === '__v_isShallow') return t;
- if (o === '__v_raw' && i === (e ? (t ? D6 : B_) : t ? F_ : D_).get(r))
- return r;
- const a = Gt(r);
- if (!e) {
- if (a && Sn(vw, o)) return Reflect.get(vw, o, i);
- if (o === 'hasOwnProperty') return x6;
- }
- const s = Reflect.get(r, o, i);
- return (P0(o) ? E_.has(o) : p6(o)) || (e || Co(r, 'get', o), t)
- ? s
- : lr(s)
- ? a && k0(o)
- ? s
- : s.value
- : rr(s)
- ? e
- ? Wi(s)
- : Xi(s)
- : s;
- };
- }
- const w6 = M_(),
- C6 = M_(!0);
- function M_(e = !1) {
- return function (n, r, o, i) {
- let a = n[r];
- if (kc(a) && lr(a) && !lr(o)) return !1;
- if (
- !e &&
- (!Wh(o) && !kc(o) && ((a = xn(a)), (o = xn(o))),
- !Gt(n) && lr(a) && !lr(o))
- )
- return (a.value = o), !0;
- const s = Gt(n) && k0(r) ? Number(r) < n.length : Sn(n, r),
- c = Reflect.set(n, r, o, i);
- return (
- n === xn(i) && (s ? du(o, a) && ba(n, 'set', r, o) : ba(n, 'add', r, o)),
- c
- );
- };
- }
- function S6(e, t) {
- const n = Sn(e, t);
- e[t];
- const r = Reflect.deleteProperty(e, t);
- return r && n && ba(e, 'delete', t, void 0), r;
- }
- function _6(e, t) {
- const n = Reflect.has(e, t);
- return (!P0(t) || !E_.has(t)) && Co(e, 'has', t), n;
- }
- function R6(e) {
- return Co(e, 'iterate', Gt(e) ? 'length' : hs), Reflect.ownKeys(e);
- }
- const I_ = { get: g6, set: w6, deleteProperty: S6, has: _6, ownKeys: R6 },
- P6 = {
- get: b6,
- set(e, t) {
- return !0;
- },
- deleteProperty(e, t) {
- return !0;
- }
- },
- k6 = gr({}, I_, { get: m6, set: C6 }),
- A0 = e => e,
- Tv = e => Reflect.getPrototypeOf(e);
- function Zf(e, t, n = !1, r = !1) {
- e = e.__v_raw;
- const o = xn(e),
- i = xn(t);
- n || (t !== i && Co(o, 'get', t), Co(o, 'get', i));
- const { has: a } = Tv(o),
- s = r ? A0 : n ? I0 : uu;
- if (a.call(o, t)) return s(e.get(t));
- if (a.call(o, i)) return s(e.get(i));
- e !== o && e.get(t);
- }
- function Qf(e, t = !1) {
- const n = this.__v_raw,
- r = xn(n),
- o = xn(e);
- return (
- t || (e !== o && Co(r, 'has', e), Co(r, 'has', o)),
- e === o ? n.has(e) : n.has(e) || n.has(o)
- );
- }
- function Jf(e, t = !1) {
- return (
- (e = e.__v_raw), !t && Co(xn(e), 'iterate', hs), Reflect.get(e, 'size', e)
- );
- }
- function pw(e) {
- e = xn(e);
- const t = xn(this);
- return Tv(t).has.call(t, e) || (t.add(e), ba(t, 'add', e, e)), this;
- }
- function gw(e, t) {
- t = xn(t);
- const n = xn(this),
- { has: r, get: o } = Tv(n);
- let i = r.call(n, e);
- i || ((e = xn(e)), (i = r.call(n, e)));
- const a = o.call(n, e);
- return (
- n.set(e, t), i ? du(t, a) && ba(n, 'set', e, t) : ba(n, 'add', e, t), this
- );
- }
- function mw(e) {
- const t = xn(this),
- { has: n, get: r } = Tv(t);
- let o = n.call(t, e);
- o || ((e = xn(e)), (o = n.call(t, e))), r && r.call(t, e);
- const i = t.delete(e);
- return o && ba(t, 'delete', e, void 0), i;
- }
- function bw() {
- const e = xn(this),
- t = e.size !== 0,
- n = e.clear();
- return t && ba(e, 'clear', void 0, void 0), n;
- }
- function eh(e, t) {
- return function (r, o) {
- const i = this,
- a = i.__v_raw,
- s = xn(a),
- c = t ? A0 : e ? I0 : uu;
- return (
- !e && Co(s, 'iterate', hs), a.forEach((d, f) => r.call(o, c(d), c(f), i))
- );
- };
- }
- function th(e, t, n) {
- return function (...r) {
- const o = this.__v_raw,
- i = xn(o),
- a = Kd(i),
- s = e === 'entries' || (e === Symbol.iterator && a),
- c = e === 'keys' && a,
- d = o[e](...r),
- f = n ? A0 : t ? I0 : uu;
- return (
- !t && Co(i, 'iterate', c ? Em : hs),
- {
- next() {
- const { value: v, done: p } = d.next();
- return p
- ? { value: v, done: p }
- : { value: s ? [f(v[0]), f(v[1])] : f(v), done: p };
- },
- [Symbol.iterator]() {
- return this;
- }
- }
- );
- };
- }
- function Va(e) {
- return function (...t) {
- return e === 'delete' ? !1 : this;
- };
- }
- function T6() {
- const e = {
- get(i) {
- return Zf(this, i);
- },
- get size() {
- return Jf(this);
- },
- has: Qf,
- add: pw,
- set: gw,
- delete: mw,
- clear: bw,
- forEach: eh(!1, !1)
- },
- t = {
- get(i) {
- return Zf(this, i, !1, !0);
- },
- get size() {
- return Jf(this);
- },
- has: Qf,
- add: pw,
- set: gw,
- delete: mw,
- clear: bw,
- forEach: eh(!1, !0)
- },
- n = {
- get(i) {
- return Zf(this, i, !0);
- },
- get size() {
- return Jf(this, !0);
- },
- has(i) {
- return Qf.call(this, i, !0);
- },
- add: Va('add'),
- set: Va('set'),
- delete: Va('delete'),
- clear: Va('clear'),
- forEach: eh(!0, !1)
- },
- r = {
- get(i) {
- return Zf(this, i, !0, !0);
- },
- get size() {
- return Jf(this, !0);
- },
- has(i) {
- return Qf.call(this, i, !0);
- },
- add: Va('add'),
- set: Va('set'),
- delete: Va('delete'),
- clear: Va('clear'),
- forEach: eh(!0, !0)
- };
- return (
- ['keys', 'values', 'entries', Symbol.iterator].forEach(i => {
- (e[i] = th(i, !1, !1)),
- (n[i] = th(i, !0, !1)),
- (t[i] = th(i, !1, !0)),
- (r[i] = th(i, !0, !0));
- }),
- [e, n, t, r]
- );
- }
- const [$6, O6, z6, A6] = T6();
- function E0(e, t) {
- const n = t ? (e ? A6 : z6) : e ? O6 : $6;
- return (r, o, i) =>
- o === '__v_isReactive'
- ? !e
- : o === '__v_isReadonly'
- ? e
- : o === '__v_raw'
- ? r
- : Reflect.get(Sn(n, o) && o in r ? n : r, o, i);
- }
- const E6 = { get: E0(!1, !1) },
- M6 = { get: E0(!1, !0) },
- I6 = { get: E0(!0, !1) },
- D_ = new WeakMap(),
- F_ = new WeakMap(),
- B_ = new WeakMap(),
- D6 = new WeakMap();
- function F6(e) {
- switch (e) {
- case 'Object':
- case 'Array':
- return 1;
- case 'Map':
- case 'Set':
- case 'WeakMap':
- case 'WeakSet':
- return 2;
- default:
- return 0;
- }
- }
- function B6(e) {
- return e.__v_skip || !Object.isExtensible(e) ? 0 : F6(QE(e));
- }
- function Xi(e) {
- return kc(e) ? e : M0(e, !1, I_, E6, D_);
- }
- function L6(e) {
- return M0(e, !1, k6, M6, F_);
- }
- function Wi(e) {
- return M0(e, !0, P6, I6, B_);
- }
- function M0(e, t, n, r, o) {
- if (!rr(e) || (e.__v_raw && !(t && e.__v_isReactive))) return e;
- const i = o.get(e);
- if (i) return i;
- const a = B6(e);
- if (a === 0) return e;
- const s = new Proxy(e, a === 2 ? r : n);
- return o.set(e, s), s;
- }
- function al(e) {
- return kc(e) ? al(e.__v_raw) : !!(e && e.__v_isReactive);
- }
- function kc(e) {
- return !!(e && e.__v_isReadonly);
- }
- function Wh(e) {
- return !!(e && e.__v_isShallow);
- }
- function L_(e) {
- return al(e) || kc(e);
- }
- function xn(e) {
- const t = e && e.__v_raw;
- return t ? xn(t) : e;
- }
- function Tc(e) {
- return jh(e, '__v_skip', !0), e;
- }
- const uu = e => (rr(e) ? Xi(e) : e),
- I0 = e => (rr(e) ? Wi(e) : e);
- function N_(e) {
- il && ci && ((e = xn(e)), A_(e.dep || (e.dep = $0())));
- }
- function H_(e, t) {
- e = xn(e);
- const n = e.dep;
- n && Mm(n);
- }
- function lr(e) {
- return !!(e && e.__v_isRef === !0);
- }
- function Z(e) {
- return j_(e, !1);
- }
- function N6(e) {
- return j_(e, !0);
- }
- function j_(e, t) {
- return lr(e) ? e : new H6(e, t);
- }
- class H6 {
- constructor(t, n) {
- (this.__v_isShallow = n),
- (this.dep = void 0),
- (this.__v_isRef = !0),
- (this._rawValue = n ? t : xn(t)),
- (this._value = n ? t : uu(t));
- }
- get value() {
- return N_(this), this._value;
- }
- set value(t) {
- const n = this.__v_isShallow || Wh(t) || kc(t);
- (t = n ? t : xn(t)),
- du(t, this._rawValue) &&
- ((this._rawValue = t), (this._value = n ? t : uu(t)), H_(this));
- }
- }
- function ll(e) {
- return lr(e) ? e.value : e;
- }
- const j6 = {
- get: (e, t, n) => ll(Reflect.get(e, t, n)),
- set: (e, t, n, r) => {
- const o = e[t];
- return lr(o) && !lr(n) ? ((o.value = n), !0) : Reflect.set(e, t, n, r);
- }
- };
- function U_(e) {
- return al(e) ? e : new Proxy(e, j6);
- }
- function U6(e) {
- const t = Gt(e) ? new Array(e.length) : {};
- for (const n in e) t[n] = W_(e, n);
- return t;
- }
- class W6 {
- constructor(t, n, r) {
- (this._object = t),
- (this._key = n),
- (this._defaultValue = r),
- (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 v6(xn(this._object), this._key);
- }
- }
- class V6 {
- constructor(t) {
- (this._getter = t), (this.__v_isRef = !0), (this.__v_isReadonly = !0);
- }
- get value() {
- return this._getter();
- }
- }
- function Ee(e, t, n) {
- return lr(e)
- ? e
- : tn(e)
- ? new V6(e)
- : rr(e) && arguments.length > 1
- ? W_(e, t, n)
- : Z(e);
- }
- function W_(e, t, n) {
- const r = e[t];
- return lr(r) ? r : new W6(e, t, n);
- }
- class K6 {
- constructor(t, n, r, o) {
- (this._setter = n),
- (this.dep = void 0),
- (this.__v_isRef = !0),
- (this.__v_isReadonly = !1),
- (this._dirty = !0),
- (this.effect = new O0(t, () => {
- this._dirty || ((this._dirty = !0), H_(this));
- })),
- (this.effect.computed = this),
- (this.effect.active = this._cacheable = !o),
- (this.__v_isReadonly = r);
- }
- get value() {
- const t = xn(this);
- return (
- N_(t),
- (t._dirty || !t._cacheable) &&
- ((t._dirty = !1), (t._value = t.effect.run())),
- t._value
- );
- }
- set value(t) {
- this._setter(t);
- }
- }
- function q6(e, t, n = !1) {
- let r, o;
- const i = tn(e);
- return (
- i ? ((r = e), (o = ui)) : ((r = e.get), (o = e.set)),
- new K6(r, o, i || !o, n)
- );
- }
- function sl(e, t, n, r) {
- let o;
- try {
- o = r ? e(...r) : e();
- } catch (i) {
- $v(i, t, n);
- }
- return o;
- }
- function Zo(e, t, n, r) {
- if (tn(e)) {
- const i = sl(e, t, n, r);
- return (
- i &&
- __(i) &&
- i.catch(a => {
- $v(a, t, n);
- }),
- i
- );
- }
- const o = [];
- for (let i = 0; i < e.length; i++) o.push(Zo(e[i], t, n, r));
- return o;
- }
- function $v(e, t, n, r = !0) {
- const o = t ? t.vnode : null;
- if (t) {
- let i = t.parent;
- const a = t.proxy,
- s = n;
- for (; i; ) {
- const d = i.ec;
- if (d) {
- for (let f = 0; f < d.length; f++) if (d[f](e, a, s) === !1) return;
- }
- i = i.parent;
- }
- const c = t.appContext.config.errorHandler;
- if (c) {
- sl(c, null, 10, [e, a, s]);
- return;
- }
- }
- Y6(e, n, o, r);
- }
- function Y6(e, t, n, r = !0) {
- console.error(e);
- }
- let fu = !1,
- Im = !1;
- const Kr = [];
- let Mi = 0;
- const Cc = [];
- let va = null,
- rs = 0;
- const V_ = Promise.resolve();
- let D0 = null;
- function mn(e) {
- const t = D0 || V_;
- return e ? t.then(this ? e.bind(this) : e) : t;
- }
- function G6(e) {
- let t = Mi + 1,
- n = Kr.length;
- for (; t < n; ) {
- const r = (t + n) >>> 1;
- hu(Kr[r]) < e ? (t = r + 1) : (n = r);
- }
- return t;
- }
- function F0(e) {
- (!Kr.length || !Kr.includes(e, fu && e.allowRecurse ? Mi + 1 : Mi)) &&
- (e.id == null ? Kr.push(e) : Kr.splice(G6(e.id), 0, e), K_());
- }
- function K_() {
- !fu && !Im && ((Im = !0), (D0 = V_.then(Y_)));
- }
- function X6(e) {
- const t = Kr.indexOf(e);
- t > Mi && Kr.splice(t, 1);
- }
- function Z6(e) {
- Gt(e)
- ? Cc.push(...e)
- : (!va || !va.includes(e, e.allowRecurse ? rs + 1 : rs)) && Cc.push(e),
- K_();
- }
- function yw(e, t = fu ? Mi + 1 : 0) {
- for (; t < Kr.length; t++) {
- const n = Kr[t];
- n && n.pre && (Kr.splice(t, 1), t--, n());
- }
- }
- function q_(e) {
- if (Cc.length) {
- const t = [...new Set(Cc)];
- if (((Cc.length = 0), va)) {
- va.push(...t);
- return;
- }
- for (va = t, va.sort((n, r) => hu(n) - hu(r)), rs = 0; rs < va.length; rs++)
- va[rs]();
- (va = null), (rs = 0);
- }
- }
- const hu = e => (e.id == null ? 1 / 0 : e.id),
- Q6 = (e, t) => {
- const n = hu(e) - hu(t);
- if (n === 0) {
- if (e.pre && !t.pre) return -1;
- if (t.pre && !e.pre) return 1;
- }
- return n;
- };
- function Y_(e) {
- (Im = !1), (fu = !0), Kr.sort(Q6);
- const t = ui;
- try {
- for (Mi = 0; Mi < Kr.length; Mi++) {
- const n = Kr[Mi];
- n && n.active !== !1 && sl(n, null, 14);
- }
- } finally {
- (Mi = 0),
- (Kr.length = 0),
- q_(),
- (fu = !1),
- (D0 = null),
- (Kr.length || Cc.length) && Y_();
- }
- }
- function J6(e, t, ...n) {
- if (e.isUnmounted) return;
- const r = e.vnode.props || Zn;
- let o = n;
- const i = t.startsWith('update:'),
- a = i && t.slice(7);
- if (a && a in r) {
- const f = `${a === 'modelValue' ? 'model' : a}Modifiers`,
- { number: v, trim: p } = r[f] || Zn;
- p && (o = n.map(m => (_r(m) ? m.trim() : m))), v && (o = n.map(n6));
- }
- let s,
- c = r[(s = fg(t))] || r[(s = fg(Ui(t)))];
- !c && i && (c = r[(s = fg(jc(t)))]), c && Zo(c, e, 6, o);
- const d = r[s + 'Once'];
- if (d) {
- if (!e.emitted) e.emitted = {};
- else if (e.emitted[s]) return;
- (e.emitted[s] = !0), Zo(d, e, 6, o);
- }
- }
- function G_(e, t, n = !1) {
- const r = t.emitsCache,
- o = r.get(e);
- if (o !== void 0) return o;
- const i = e.emits;
- let a = {},
- s = !1;
- if (!tn(e)) {
- const c = d => {
- const f = G_(d, t, !0);
- f && ((s = !0), gr(a, f));
- };
- !n && t.mixins.length && t.mixins.forEach(c),
- e.extends && c(e.extends),
- e.mixins && e.mixins.forEach(c);
- }
- return !i && !s
- ? (rr(e) && r.set(e, null), null)
- : (Gt(i) ? i.forEach(c => (a[c] = null)) : gr(a, i),
- rr(e) && r.set(e, a),
- a);
- }
- function Ov(e, t) {
- return !e || !Sv(t)
- ? !1
- : ((t = t.slice(2).replace(/Once$/, '')),
- Sn(e, t[0].toLowerCase() + t.slice(1)) || Sn(e, jc(t)) || Sn(e, t));
- }
- let Ar = null,
- X_ = null;
- function Vh(e) {
- const t = Ar;
- return (Ar = e), (X_ = (e && e.type.__scopeId) || null), t;
- }
- function eM(e, t = Ar, n) {
- if (!t || e._n) return e;
- const r = (...o) => {
- r._d && Aw(-1);
- const i = Vh(t);
- let a;
- try {
- a = e(...o);
- } finally {
- Vh(i), r._d && Aw(1);
- }
- return a;
- };
- return (r._n = !0), (r._c = !0), (r._d = !0), r;
- }
- function vg(e) {
- const {
- type: t,
- vnode: n,
- proxy: r,
- withProxy: o,
- props: i,
- propsOptions: [a],
- slots: s,
- attrs: c,
- emit: d,
- render: f,
- renderCache: v,
- data: p,
- setupState: m,
- ctx: g,
- inheritAttrs: w
- } = e;
- let x, y;
- const C = Vh(e);
- try {
- if (n.shapeFlag & 4) {
- const S = o || r;
- (x = Ai(f.call(S, S, v, i, m, p, g))), (y = c);
- } else {
- const S = t;
- (x = Ai(
- S.length > 1 ? S(i, { attrs: c, slots: s, emit: d }) : S(i, null)
- )),
- (y = t.props ? c : tM(c));
- }
- } catch (S) {
- (Xd.length = 0), $v(S, e, 1), (x = er(Eo));
- }
- let R = x;
- if (y && w !== !1) {
- const S = Object.keys(y),
- { shapeFlag: _ } = R;
- S.length && _ & 7 && (a && S.some(_0) && (y = nM(y, a)), (R = Mo(R, y)));
- }
- return (
- n.dirs && ((R = Mo(R)), (R.dirs = R.dirs ? R.dirs.concat(n.dirs) : n.dirs)),
- n.transition && (R.transition = n.transition),
- (x = R),
- Vh(C),
- x
- );
- }
- const tM = e => {
- let t;
- for (const n in e)
- (n === 'class' || n === 'style' || Sv(n)) && ((t || (t = {}))[n] = e[n]);
- return t;
- },
- nM = (e, t) => {
- const n = {};
- for (const r in e) (!_0(r) || !(r.slice(9) in t)) && (n[r] = e[r]);
- return n;
- };
- function rM(e, t, n) {
- const { props: r, children: o, component: i } = e,
- { props: a, children: s, patchFlag: c } = t,
- d = i.emitsOptions;
- if (t.dirs || t.transition) return !0;
- if (n && c >= 0) {
- if (c & 1024) return !0;
- if (c & 16) return r ? xw(r, a, d) : !!a;
- if (c & 8) {
- const f = t.dynamicProps;
- for (let v = 0; v < f.length; v++) {
- const p = f[v];
- if (a[p] !== r[p] && !Ov(d, p)) return !0;
- }
- }
- } else
- return (o || s) && (!s || !s.$stable)
- ? !0
- : r === a
- ? !1
- : r
- ? a
- ? xw(r, a, d)
- : !0
- : !!a;
- return !1;
- }
- function xw(e, t, n) {
- const r = Object.keys(t);
- if (r.length !== Object.keys(e).length) return !0;
- for (let o = 0; o < r.length; o++) {
- const i = r[o];
- if (t[i] !== e[i] && !Ov(n, i)) return !0;
- }
- return !1;
- }
- function oM({ vnode: e, parent: t }, n) {
- for (; t && t.subTree === e; ) ((e = t.vnode).el = n), (t = t.parent);
- }
- const iM = e => e.__isSuspense;
- function aM(e, t) {
- t && t.pendingBranch
- ? Gt(e)
- ? t.effects.push(...e)
- : t.effects.push(e)
- : Z6(e);
- }
- function Bn(e, t) {
- return B0(e, null, t);
- }
- const nh = {};
- function $t(e, t, n) {
- return B0(e, t, n);
- }
- function B0(
- e,
- t,
- { immediate: n, deep: r, flush: o, onTrack: i, onTrigger: a } = Zn
- ) {
- var s;
- const c = T_() === ((s = Sr) == null ? void 0 : s.scope) ? Sr : null;
- let d,
- f = !1,
- v = !1;
- if (
- (lr(e)
- ? ((d = () => e.value), (f = Wh(e)))
- : al(e)
- ? ((d = () => e), (r = !0))
- : Gt(e)
- ? ((v = !0),
- (f = e.some(S => al(S) || Wh(S))),
- (d = () =>
- e.map(S => {
- if (lr(S)) return S.value;
- if (al(S)) return ss(S);
- if (tn(S)) return sl(S, c, 2);
- })))
- : tn(e)
- ? t
- ? (d = () => sl(e, c, 2))
- : (d = () => {
- if (!(c && c.isUnmounted)) return p && p(), Zo(e, c, 3, [m]);
- })
- : (d = ui),
- t && r)
- ) {
- const S = d;
- d = () => ss(S());
- }
- let p,
- m = S => {
- p = C.onStop = () => {
- sl(S, c, 4);
- };
- },
- g;
- if (xu)
- if (
- ((m = ui),
- t ? n && Zo(t, c, 3, [d(), v ? [] : void 0, m]) : d(),
- o === 'sync')
- ) {
- const S = JM();
- g = S.__watcherHandles || (S.__watcherHandles = []);
- } else return ui;
- let w = v ? new Array(e.length).fill(nh) : nh;
- const x = () => {
- if (C.active)
- if (t) {
- const S = C.run();
- (r || f || (v ? S.some((_, P) => du(_, w[P])) : du(S, w))) &&
- (p && p(),
- Zo(t, c, 3, [S, w === nh ? void 0 : v && w[0] === nh ? [] : w, m]),
- (w = S));
- } else C.run();
- };
- x.allowRecurse = !!t;
- let y;
- o === 'sync'
- ? (y = x)
- : o === 'post'
- ? (y = () => bo(x, c && c.suspense))
- : ((x.pre = !0), c && (x.id = c.uid), (y = () => F0(x)));
- const C = new O0(d, y);
- t
- ? n
- ? x()
- : (w = C.run())
- : o === 'post'
- ? bo(C.run.bind(C), c && c.suspense)
- : C.run();
- const R = () => {
- C.stop(), c && c.scope && R0(c.scope.effects, C);
- };
- return g && g.push(R), R;
- }
- function lM(e, t, n) {
- const r = this.proxy,
- o = _r(e) ? (e.includes('.') ? Z_(r, e) : () => r[e]) : e.bind(r, r);
- let i;
- tn(t) ? (i = t) : ((i = t.handler), (n = t));
- const a = Sr;
- $c(this);
- const s = B0(o, i.bind(r), n);
- return a ? $c(a) : vs(), s;
- }
- function Z_(e, t) {
- const n = t.split('.');
- return () => {
- let r = e;
- for (let o = 0; o < n.length && r; o++) r = r[n[o]];
- return r;
- };
- }
- function ss(e, t) {
- if (!rr(e) || e.__v_skip || ((t = t || new Set()), t.has(e))) return e;
- if ((t.add(e), lr(e))) ss(e.value, t);
- else if (Gt(e)) for (let n = 0; n < e.length; n++) ss(e[n], t);
- else if (XE(e) || Kd(e))
- e.forEach(n => {
- ss(n, t);
- });
- else if (JE(e)) for (const n in e) ss(e[n], t);
- return e;
- }
- function Er(e, t) {
- const n = Ar;
- if (n === null) return e;
- const r = Iv(n) || n.proxy,
- o = e.dirs || (e.dirs = []);
- for (let i = 0; i < t.length; i++) {
- let [a, s, c, d = Zn] = t[i];
- a &&
- (tn(a) && (a = { mounted: a, updated: a }),
- a.deep && ss(s),
- o.push({
- dir: a,
- instance: r,
- value: s,
- oldValue: void 0,
- arg: c,
- modifiers: d
- }));
- }
- return e;
- }
- function ql(e, t, n, r) {
- const o = e.dirs,
- i = t && t.dirs;
- for (let a = 0; a < o.length; a++) {
- const s = o[a];
- i && (s.oldValue = i[a].value);
- let c = s.dir[r];
- c && (Uc(), Zo(c, n, 8, [e.el, s, e, t]), Wc());
- }
- }
- function Q_() {
- const e = {
- isMounted: !1,
- isLeaving: !1,
- isUnmounting: !1,
- leavingVNodes: new Map()
- };
- return (
- Hn(() => {
- e.isMounted = !0;
- }),
- qn(() => {
- e.isUnmounting = !0;
- }),
- e
- );
- }
- const qo = [Function, Array],
- J_ = {
- mode: String,
- appear: Boolean,
- persisted: Boolean,
- onBeforeEnter: qo,
- onEnter: qo,
- onAfterEnter: qo,
- onEnterCancelled: qo,
- onBeforeLeave: qo,
- onLeave: qo,
- onAfterLeave: qo,
- onLeaveCancelled: qo,
- onBeforeAppear: qo,
- onAppear: qo,
- onAfterAppear: qo,
- onAppearCancelled: qo
- },
- sM = {
- name: 'BaseTransition',
- props: J_,
- setup(e, { slots: t }) {
- const n = _a(),
- r = Q_();
- let o;
- return () => {
- const i = t.default && L0(t.default(), !0);
- if (!i || !i.length) return;
- let a = i[0];
- if (i.length > 1) {
- for (const w of i)
- if (w.type !== Eo) {
- a = w;
- break;
- }
- }
- const s = xn(e),
- { mode: c } = s;
- if (r.isLeaving) return pg(a);
- const d = ww(a);
- if (!d) return pg(a);
- const f = vu(d, s, r, n);
- pu(d, f);
- const v = n.subTree,
- p = v && ww(v);
- let m = !1;
- const { getTransitionKey: g } = d.type;
- if (g) {
- const w = g();
- o === void 0 ? (o = w) : w !== o && ((o = w), (m = !0));
- }
- if (p && p.type !== Eo && (!os(d, p) || m)) {
- const w = vu(p, s, r, n);
- if ((pu(p, w), c === 'out-in'))
- return (
- (r.isLeaving = !0),
- (w.afterLeave = () => {
- (r.isLeaving = !1), n.update.active !== !1 && n.update();
- }),
- pg(a)
- );
- c === 'in-out' &&
- d.type !== Eo &&
- (w.delayLeave = (x, y, C) => {
- const R = eR(r, p);
- (R[String(p.key)] = p),
- (x._leaveCb = () => {
- y(), (x._leaveCb = void 0), delete f.delayedLeave;
- }),
- (f.delayedLeave = C);
- });
- }
- return a;
- };
- }
- },
- cM = sM;
- function eR(e, t) {
- const { leavingVNodes: n } = e;
- let r = n.get(t.type);
- return r || ((r = Object.create(null)), n.set(t.type, r)), r;
- }
- function vu(e, t, n, r) {
- const {
- appear: o,
- mode: i,
- persisted: a = !1,
- onBeforeEnter: s,
- onEnter: c,
- onAfterEnter: d,
- onEnterCancelled: f,
- onBeforeLeave: v,
- onLeave: p,
- onAfterLeave: m,
- onLeaveCancelled: g,
- onBeforeAppear: w,
- onAppear: x,
- onAfterAppear: y,
- onAppearCancelled: C
- } = t,
- R = String(e.key),
- S = eR(n, e),
- _ = (A, z) => {
- A && Zo(A, r, 9, z);
- },
- P = (A, z) => {
- const k = z[1];
- _(A, z),
- Gt(A) ? A.every(M => M.length <= 1) && k() : A.length <= 1 && k();
- },
- T = {
- mode: i,
- persisted: a,
- beforeEnter(A) {
- let z = s;
- if (!n.isMounted)
- if (o) z = w || s;
- else return;
- A._leaveCb && A._leaveCb(!0);
- const k = S[R];
- k && os(e, k) && k.el._leaveCb && k.el._leaveCb(), _(z, [A]);
- },
- enter(A) {
- let z = c,
- k = d,
- M = f;
- if (!n.isMounted)
- if (o) (z = x || c), (k = y || d), (M = C || f);
- else return;
- let E = !1;
- const D = (A._enterCb = L => {
- E ||
- ((E = !0),
- L ? _(M, [A]) : _(k, [A]),
- T.delayedLeave && T.delayedLeave(),
- (A._enterCb = void 0));
- });
- z ? P(z, [A, D]) : D();
- },
- leave(A, z) {
- const k = String(e.key);
- if ((A._enterCb && A._enterCb(!0), n.isUnmounting)) return z();
- _(v, [A]);
- let M = !1;
- const E = (A._leaveCb = D => {
- M ||
- ((M = !0),
- z(),
- D ? _(g, [A]) : _(m, [A]),
- (A._leaveCb = void 0),
- S[k] === e && delete S[k]);
- });
- (S[k] = e), p ? P(p, [A, E]) : E();
- },
- clone(A) {
- return vu(A, t, n, r);
- }
- };
- return T;
- }
- function pg(e) {
- if (zv(e)) return (e = Mo(e)), (e.children = null), e;
- }
- function ww(e) {
- return zv(e) ? (e.children ? e.children[0] : void 0) : e;
- }
- function pu(e, t) {
- e.shapeFlag & 6 && e.component
- ? pu(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 L0(e, t = !1, n) {
- let r = [],
- o = 0;
- for (let i = 0; i < e.length; i++) {
- let a = e[i];
- const s = n == null ? a.key : String(n) + String(a.key != null ? a.key : i);
- a.type === on
- ? (a.patchFlag & 128 && o++, (r = r.concat(L0(a.children, t, s))))
- : (t || a.type !== Eo) && r.push(s != null ? Mo(a, { key: s }) : a);
- }
- if (o > 1) for (let i = 0; i < r.length; i++) r[i].patchFlag = -2;
- return r;
- }
- function Re(e, t) {
- return tn(e) ? (() => gr({ name: e.name }, t, { setup: e }))() : e;
- }
- const qd = e => !!e.type.__asyncLoader,
- zv = e => e.type.__isKeepAlive;
- function Av(e, t) {
- tR(e, 'a', t);
- }
- function Vc(e, t) {
- tR(e, 'da', t);
- }
- function tR(e, t, n = Sr) {
- const r =
- e.__wdc ||
- (e.__wdc = () => {
- let o = n;
- for (; o; ) {
- if (o.isDeactivated) return;
- o = o.parent;
- }
- return e();
- });
- if ((Ev(t, r, n), n)) {
- let o = n.parent;
- for (; o && o.parent; )
- zv(o.parent.vnode) && dM(r, t, n, o), (o = o.parent);
- }
- }
- function dM(e, t, n, r) {
- const o = Ev(t, e, r, !0);
- Mu(() => {
- R0(r[t], o);
- }, n);
- }
- function Ev(e, t, n = Sr, r = !1) {
- if (n) {
- const o = n[e] || (n[e] = []),
- i =
- t.__weh ||
- (t.__weh = (...a) => {
- if (n.isUnmounted) return;
- Uc(), $c(n);
- const s = Zo(t, n, e, a);
- return vs(), Wc(), s;
- });
- return r ? o.unshift(i) : o.push(i), i;
- }
- }
- const Sa =
- e =>
- (t, n = Sr) =>
- (!xu || e === 'sp') && Ev(e, (...r) => t(...r), n),
- yl = Sa('bm'),
- Hn = Sa('m'),
- uM = Sa('bu'),
- nR = Sa('u'),
- qn = Sa('bum'),
- Mu = Sa('um'),
- fM = Sa('sp'),
- hM = Sa('rtg'),
- vM = Sa('rtc');
- function pM(e, t = Sr) {
- Ev('ec', e, t);
- }
- const rR = 'components';
- function ale(e, t) {
- return mM(rR, e, !0, t) || e;
- }
- const gM = Symbol.for('v-ndc');
- function mM(e, t, n = !0, r = !1) {
- const o = Ar || Sr;
- if (o) {
- const i = o.type;
- if (e === rR) {
- const s = XM(i, !1);
- if (s && (s === t || s === Ui(t) || s === Pv(Ui(t)))) return i;
- }
- const a = Cw(o[e] || i[e], t) || Cw(o.appContext[e], t);
- return !a && r ? i : a;
- }
- }
- function Cw(e, t) {
- return e && (e[t] || e[Ui(t)] || e[Pv(Ui(t))]);
- }
- function N0(e, t, n = {}, r, o) {
- if (Ar.isCE || (Ar.parent && qd(Ar.parent) && Ar.parent.isCE))
- return t !== 'default' && (n.name = t), er('slot', n, r && r());
- let i = e[t];
- i && i._c && (i._d = !1), BM();
- const a = i && oR(i(n)),
- s = NM(
- on,
- { key: n.key || (a && a.key) || `_${t}` },
- a || (r ? r() : []),
- a && e._ === 1 ? 64 : -2
- );
- return (
- !o && s.scopeId && (s.slotScopeIds = [s.scopeId + '-s']),
- i && i._c && (i._d = !0),
- s
- );
- }
- function oR(e) {
- return e.some(t =>
- bu(t) ? !(t.type === Eo || (t.type === on && !oR(t.children))) : !0
- )
- ? e
- : null;
- }
- const Dm = e => (e ? (gR(e) ? Iv(e) || e.proxy : Dm(e.parent)) : null),
- Yd = gr(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 => Dm(e.parent),
- $root: e => Dm(e.root),
- $emit: e => e.emit,
- $options: e => H0(e),
- $forceUpdate: e => e.f || (e.f = () => F0(e.update)),
- $nextTick: e => e.n || (e.n = mn.bind(e.proxy)),
- $watch: e => lM.bind(e)
- }),
- gg = (e, t) => e !== Zn && !e.__isScriptSetup && Sn(e, t),
- bM = {
- get({ _: e }, t) {
- const {
- ctx: n,
- setupState: r,
- data: o,
- props: i,
- accessCache: a,
- type: s,
- appContext: c
- } = e;
- let d;
- if (t[0] !== '$') {
- const m = a[t];
- if (m !== void 0)
- switch (m) {
- case 1:
- return r[t];
- case 2:
- return o[t];
- case 4:
- return n[t];
- case 3:
- return i[t];
- }
- else {
- if (gg(r, t)) return (a[t] = 1), r[t];
- if (o !== Zn && Sn(o, t)) return (a[t] = 2), o[t];
- if ((d = e.propsOptions[0]) && Sn(d, t)) return (a[t] = 3), i[t];
- if (n !== Zn && Sn(n, t)) return (a[t] = 4), n[t];
- Fm && (a[t] = 0);
- }
- }
- const f = Yd[t];
- let v, p;
- if (f) return t === '$attrs' && Co(e, 'get', t), f(e);
- if ((v = s.__cssModules) && (v = v[t])) return v;
- if (n !== Zn && Sn(n, t)) return (a[t] = 4), n[t];
- if (((p = c.config.globalProperties), Sn(p, t))) return p[t];
- },
- set({ _: e }, t, n) {
- const { data: r, setupState: o, ctx: i } = e;
- return gg(o, t)
- ? ((o[t] = n), !0)
- : r !== Zn && Sn(r, t)
- ? ((r[t] = n), !0)
- : Sn(e.props, t) || (t[0] === '$' && t.slice(1) in e)
- ? !1
- : ((i[t] = n), !0);
- },
- has(
- {
- _: {
- data: e,
- setupState: t,
- accessCache: n,
- ctx: r,
- appContext: o,
- propsOptions: i
- }
- },
- a
- ) {
- let s;
- return (
- !!n[a] ||
- (e !== Zn && Sn(e, a)) ||
- gg(t, a) ||
- ((s = i[0]) && Sn(s, a)) ||
- Sn(r, a) ||
- Sn(Yd, a) ||
- Sn(o.config.globalProperties, a)
- );
- },
- defineProperty(e, t, n) {
- return (
- n.get != null
- ? (e._.accessCache[t] = 0)
- : Sn(n, 'value') && this.set(e, t, n.value, null),
- Reflect.defineProperty(e, t, n)
- );
- }
- };
- function Sw(e) {
- return Gt(e) ? e.reduce((t, n) => ((t[n] = null), t), {}) : e;
- }
- let Fm = !0;
- function yM(e) {
- const t = H0(e),
- n = e.proxy,
- r = e.ctx;
- (Fm = !1), t.beforeCreate && _w(t.beforeCreate, e, 'bc');
- const {
- data: o,
- computed: i,
- methods: a,
- watch: s,
- provide: c,
- inject: d,
- created: f,
- beforeMount: v,
- mounted: p,
- beforeUpdate: m,
- updated: g,
- activated: w,
- deactivated: x,
- beforeDestroy: y,
- beforeUnmount: C,
- destroyed: R,
- unmounted: S,
- render: _,
- renderTracked: P,
- renderTriggered: T,
- errorCaptured: A,
- serverPrefetch: z,
- expose: k,
- inheritAttrs: M,
- components: E,
- directives: D,
- filters: L
- } = t;
- if ((d && xM(d, r, null), a))
- for (const q in a) {
- const G = a[q];
- tn(G) && (r[q] = G.bind(n));
- }
- if (o) {
- const q = o.call(n, n);
- rr(q) && (e.data = Xi(q));
- }
- if (((Fm = !0), i))
- for (const q in i) {
- const G = i[q],
- ne = tn(G) ? G.bind(n, n) : tn(G.get) ? G.get.bind(n, n) : ui,
- X = !tn(G) && tn(G.set) ? G.set.bind(n) : ui,
- J = I({ get: ne, set: X });
- Object.defineProperty(r, q, {
- enumerable: !0,
- configurable: !0,
- get: () => J.value,
- set: re => (J.value = re)
- });
- }
- if (s) for (const q in s) iR(s[q], r, n, q);
- if (c) {
- const q = tn(c) ? c.call(n) : c;
- Reflect.ownKeys(q).forEach(G => {
- Rt(G, q[G]);
- });
- }
- f && _w(f, e, 'c');
- function B(q, G) {
- Gt(G) ? G.forEach(ne => q(ne.bind(n))) : G && q(G.bind(n));
- }
- if (
- (B(yl, v),
- B(Hn, p),
- B(uM, m),
- B(nR, g),
- B(Av, w),
- B(Vc, x),
- B(pM, A),
- B(vM, P),
- B(hM, T),
- B(qn, C),
- B(Mu, S),
- B(fM, z),
- Gt(k))
- )
- if (k.length) {
- const q = e.exposed || (e.exposed = {});
- k.forEach(G => {
- Object.defineProperty(q, G, {
- get: () => n[G],
- set: ne => (n[G] = ne)
- });
- });
- } else e.exposed || (e.exposed = {});
- _ && e.render === ui && (e.render = _),
- M != null && (e.inheritAttrs = M),
- E && (e.components = E),
- D && (e.directives = D);
- }
- function xM(e, t, n = ui) {
- Gt(e) && (e = Bm(e));
- for (const r in e) {
- const o = e[r];
- let i;
- rr(o)
- ? 'default' in o
- ? (i = Ze(o.from || r, o.default, !0))
- : (i = Ze(o.from || r))
- : (i = Ze(o)),
- lr(i)
- ? Object.defineProperty(t, r, {
- enumerable: !0,
- configurable: !0,
- get: () => i.value,
- set: a => (i.value = a)
- })
- : (t[r] = i);
- }
- }
- function _w(e, t, n) {
- Zo(Gt(e) ? e.map(r => r.bind(t.proxy)) : e.bind(t.proxy), t, n);
- }
- function iR(e, t, n, r) {
- const o = r.includes('.') ? Z_(n, r) : () => n[r];
- if (_r(e)) {
- const i = t[e];
- tn(i) && $t(o, i);
- } else if (tn(e)) $t(o, e.bind(n));
- else if (rr(e))
- if (Gt(e)) e.forEach(i => iR(i, t, n, r));
- else {
- const i = tn(e.handler) ? e.handler.bind(n) : t[e.handler];
- tn(i) && $t(o, i, e);
- }
- }
- function H0(e) {
- const t = e.type,
- { mixins: n, extends: r } = t,
- {
- mixins: o,
- optionsCache: i,
- config: { optionMergeStrategies: a }
- } = e.appContext,
- s = i.get(t);
- let c;
- return (
- s
- ? (c = s)
- : !o.length && !n && !r
- ? (c = t)
- : ((c = {}), o.length && o.forEach(d => Kh(c, d, a, !0)), Kh(c, t, a)),
- rr(t) && i.set(t, c),
- c
- );
- }
- function Kh(e, t, n, r = !1) {
- const { mixins: o, extends: i } = t;
- i && Kh(e, i, n, !0), o && o.forEach(a => Kh(e, a, n, !0));
- for (const a in t)
- if (!(r && a === 'expose')) {
- const s = wM[a] || (n && n[a]);
- e[a] = s ? s(e[a], t[a]) : t[a];
- }
- return e;
- }
- const wM = {
- data: Rw,
- props: Pw,
- emits: Pw,
- methods: Ld,
- computed: Ld,
- beforeCreate: ro,
- created: ro,
- beforeMount: ro,
- mounted: ro,
- beforeUpdate: ro,
- updated: ro,
- beforeDestroy: ro,
- beforeUnmount: ro,
- destroyed: ro,
- unmounted: ro,
- activated: ro,
- deactivated: ro,
- errorCaptured: ro,
- serverPrefetch: ro,
- components: Ld,
- directives: Ld,
- watch: SM,
- provide: Rw,
- inject: CM
- };
- function Rw(e, t) {
- return t
- ? e
- ? function () {
- return gr(
- tn(e) ? e.call(this, this) : e,
- tn(t) ? t.call(this, this) : t
- );
- }
- : t
- : e;
- }
- function CM(e, t) {
- return Ld(Bm(e), Bm(t));
- }
- function Bm(e) {
- if (Gt(e)) {
- const t = {};
- for (let n = 0; n < e.length; n++) t[e[n]] = e[n];
- return t;
- }
- return e;
- }
- function ro(e, t) {
- return e ? [...new Set([].concat(e, t))] : t;
- }
- function Ld(e, t) {
- return e ? gr(Object.create(null), e, t) : t;
- }
- function Pw(e, t) {
- return e
- ? Gt(e) && Gt(t)
- ? [...new Set([...e, ...t])]
- : gr(Object.create(null), Sw(e), Sw(t != null ? t : {}))
- : t;
- }
- function SM(e, t) {
- if (!e) return t;
- if (!t) return e;
- const n = gr(Object.create(null), e);
- for (const r in t) n[r] = ro(e[r], t[r]);
- return n;
- }
- function aR() {
- return {
- app: null,
- config: {
- isNativeTag: qE,
- 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 _M = 0;
- function RM(e, t) {
- return function (r, o = null) {
- tn(r) || (r = gr({}, r)), o != null && !rr(o) && (o = null);
- const i = aR(),
- a = new Set();
- let s = !1;
- const c = (i.app = {
- _uid: _M++,
- _component: r,
- _props: o,
- _container: null,
- _context: i,
- _instance: null,
- version: eI,
- get config() {
- return i.config;
- },
- set config(d) {},
- use(d, ...f) {
- return (
- a.has(d) ||
- (d && tn(d.install)
- ? (a.add(d), d.install(c, ...f))
- : tn(d) && (a.add(d), d(c, ...f))),
- c
- );
- },
- mixin(d) {
- return i.mixins.includes(d) || i.mixins.push(d), c;
- },
- component(d, f) {
- return f ? ((i.components[d] = f), c) : i.components[d];
- },
- directive(d, f) {
- return f ? ((i.directives[d] = f), c) : i.directives[d];
- },
- mount(d, f, v) {
- if (!s) {
- const p = er(r, o);
- return (
- (p.appContext = i),
- f && t ? t(p, d) : e(p, d, v),
- (s = !0),
- (c._container = d),
- (d.__vue_app__ = c),
- Iv(p.component) || p.component.proxy
- );
- }
- },
- unmount() {
- s && (e(null, c._container), delete c._container.__vue_app__);
- },
- provide(d, f) {
- return (i.provides[d] = f), c;
- },
- runWithContext(d) {
- gu = c;
- try {
- return d();
- } finally {
- gu = null;
- }
- }
- });
- return c;
- };
- }
- let gu = null;
- function Rt(e, t) {
- if (Sr) {
- let n = Sr.provides;
- const r = Sr.parent && Sr.parent.provides;
- r === n && (n = Sr.provides = Object.create(r)), (n[e] = t);
- }
- }
- function Ze(e, t, n = !1) {
- const r = Sr || Ar;
- if (r || gu) {
- const o = r
- ? r.parent == null
- ? r.vnode.appContext && r.vnode.appContext.provides
- : r.parent.provides
- : gu._context.provides;
- if (o && e in o) return o[e];
- if (arguments.length > 1) return n && tn(t) ? t.call(r && r.proxy) : t;
- }
- }
- function PM() {
- return !!(Sr || Ar || gu);
- }
- function kM(e, t, n, r = !1) {
- const o = {},
- i = {};
- jh(i, Mv, 1), (e.propsDefaults = Object.create(null)), lR(e, t, o, i);
- for (const a in e.propsOptions[0]) a in o || (o[a] = void 0);
- n ? (e.props = r ? o : L6(o)) : e.type.props ? (e.props = o) : (e.props = i),
- (e.attrs = i);
- }
- function TM(e, t, n, r) {
- const {
- props: o,
- attrs: i,
- vnode: { patchFlag: a }
- } = e,
- s = xn(o),
- [c] = e.propsOptions;
- let d = !1;
- if ((r || a > 0) && !(a & 16)) {
- if (a & 8) {
- const f = e.vnode.dynamicProps;
- for (let v = 0; v < f.length; v++) {
- let p = f[v];
- if (Ov(e.emitsOptions, p)) continue;
- const m = t[p];
- if (c)
- if (Sn(i, p)) m !== i[p] && ((i[p] = m), (d = !0));
- else {
- const g = Ui(p);
- o[g] = Lm(c, s, g, m, e, !1);
- }
- else m !== i[p] && ((i[p] = m), (d = !0));
- }
- }
- } else {
- lR(e, t, o, i) && (d = !0);
- let f;
- for (const v in s)
- (!t || (!Sn(t, v) && ((f = jc(v)) === v || !Sn(t, f)))) &&
- (c
- ? n &&
- (n[v] !== void 0 || n[f] !== void 0) &&
- (o[v] = Lm(c, s, v, void 0, e, !0))
- : delete o[v]);
- if (i !== s)
- for (const v in i) (!t || !Sn(t, v)) && (delete i[v], (d = !0));
- }
- d && ba(e, 'set', '$attrs');
- }
- function lR(e, t, n, r) {
- const [o, i] = e.propsOptions;
- let a = !1,
- s;
- if (t)
- for (let c in t) {
- if (zh(c)) continue;
- const d = t[c];
- let f;
- o && Sn(o, (f = Ui(c)))
- ? !i || !i.includes(f)
- ? (n[f] = d)
- : ((s || (s = {}))[f] = d)
- : Ov(e.emitsOptions, c) ||
- ((!(c in r) || d !== r[c]) && ((r[c] = d), (a = !0)));
- }
- if (i) {
- const c = xn(n),
- d = s || Zn;
- for (let f = 0; f < i.length; f++) {
- const v = i[f];
- n[v] = Lm(o, c, v, d[v], e, !Sn(d, v));
- }
- }
- return a;
- }
- function Lm(e, t, n, r, o, i) {
- const a = e[n];
- if (a != null) {
- const s = Sn(a, 'default');
- if (s && r === void 0) {
- const c = a.default;
- if (a.type !== Function && !a.skipFactory && tn(c)) {
- const { propsDefaults: d } = o;
- n in d ? (r = d[n]) : ($c(o), (r = d[n] = c.call(null, t)), vs());
- } else r = c;
- }
- a[0] &&
- (i && !s ? (r = !1) : a[1] && (r === '' || r === jc(n)) && (r = !0));
- }
- return r;
- }
- function sR(e, t, n = !1) {
- const r = t.propsCache,
- o = r.get(e);
- if (o) return o;
- const i = e.props,
- a = {},
- s = [];
- let c = !1;
- if (!tn(e)) {
- const f = v => {
- c = !0;
- const [p, m] = sR(v, t, !0);
- gr(a, p), m && s.push(...m);
- };
- !n && t.mixins.length && t.mixins.forEach(f),
- e.extends && f(e.extends),
- e.mixins && e.mixins.forEach(f);
- }
- if (!i && !c) return rr(e) && r.set(e, wc), wc;
- if (Gt(i))
- for (let f = 0; f < i.length; f++) {
- const v = Ui(i[f]);
- kw(v) && (a[v] = Zn);
- }
- else if (i)
- for (const f in i) {
- const v = Ui(f);
- if (kw(v)) {
- const p = i[f],
- m = (a[v] = Gt(p) || tn(p) ? { type: p } : gr({}, p));
- if (m) {
- const g = Ow(Boolean, m.type),
- w = Ow(String, m.type);
- (m[0] = g > -1),
- (m[1] = w < 0 || g < w),
- (g > -1 || Sn(m, 'default')) && s.push(v);
- }
- }
- }
- const d = [a, s];
- return rr(e) && r.set(e, d), d;
- }
- function kw(e) {
- return e[0] !== '$';
- }
- function Tw(e) {
- const t = e && e.toString().match(/^\s*(function|class) (\w+)/);
- return t ? t[2] : e === null ? 'null' : '';
- }
- function $w(e, t) {
- return Tw(e) === Tw(t);
- }
- function Ow(e, t) {
- return Gt(t) ? t.findIndex(n => $w(n, e)) : tn(t) && $w(t, e) ? 0 : -1;
- }
- const cR = e => e[0] === '_' || e === '$stable',
- j0 = e => (Gt(e) ? e.map(Ai) : [Ai(e)]),
- $M = (e, t, n) => {
- if (t._n) return t;
- const r = eM((...o) => j0(t(...o)), n);
- return (r._c = !1), r;
- },
- dR = (e, t, n) => {
- const r = e._ctx;
- for (const o in e) {
- if (cR(o)) continue;
- const i = e[o];
- if (tn(i)) t[o] = $M(o, i, r);
- else if (i != null) {
- const a = j0(i);
- t[o] = () => a;
- }
- }
- },
- uR = (e, t) => {
- const n = j0(t);
- e.slots.default = () => n;
- },
- OM = (e, t) => {
- if (e.vnode.shapeFlag & 32) {
- const n = t._;
- n ? ((e.slots = xn(t)), jh(t, '_', n)) : dR(t, (e.slots = {}));
- } else (e.slots = {}), t && uR(e, t);
- jh(e.slots, Mv, 1);
- },
- zM = (e, t, n) => {
- const { vnode: r, slots: o } = e;
- let i = !0,
- a = Zn;
- if (r.shapeFlag & 32) {
- const s = t._;
- s
- ? n && s === 1
- ? (i = !1)
- : (gr(o, t), !n && s === 1 && delete o._)
- : ((i = !t.$stable), dR(t, o)),
- (a = t);
- } else t && (uR(e, t), (a = { default: 1 }));
- if (i) for (const s in o) !cR(s) && !(s in a) && delete o[s];
- };
- function Nm(e, t, n, r, o = !1) {
- if (Gt(e)) {
- e.forEach((p, m) => Nm(p, t && (Gt(t) ? t[m] : t), n, r, o));
- return;
- }
- if (qd(r) && !o) return;
- const i = r.shapeFlag & 4 ? Iv(r.component) || r.component.proxy : r.el,
- a = o ? null : i,
- { i: s, r: c } = e,
- d = t && t.r,
- f = s.refs === Zn ? (s.refs = {}) : s.refs,
- v = s.setupState;
- if (
- (d != null &&
- d !== c &&
- (_r(d)
- ? ((f[d] = null), Sn(v, d) && (v[d] = null))
- : lr(d) && (d.value = null)),
- tn(c))
- )
- sl(c, s, 12, [a, f]);
- else {
- const p = _r(c),
- m = lr(c);
- if (p || m) {
- const g = () => {
- if (e.f) {
- const w = p ? (Sn(v, c) ? v[c] : f[c]) : c.value;
- o
- ? Gt(w) && R0(w, i)
- : Gt(w)
- ? w.includes(i) || w.push(i)
- : p
- ? ((f[c] = [i]), Sn(v, c) && (v[c] = f[c]))
- : ((c.value = [i]), e.k && (f[e.k] = c.value));
- } else
- p
- ? ((f[c] = a), Sn(v, c) && (v[c] = a))
- : m && ((c.value = a), e.k && (f[e.k] = a));
- };
- a ? ((g.id = -1), bo(g, n)) : g();
- }
- }
- }
- const bo = aM;
- function AM(e) {
- return EM(e);
- }
- function EM(e, t) {
- const n = zm();
- n.__VUE__ = !0;
- const {
- insert: r,
- remove: o,
- patchProp: i,
- createElement: a,
- createText: s,
- createComment: c,
- setText: d,
- setElementText: f,
- parentNode: v,
- nextSibling: p,
- setScopeId: m = ui,
- insertStaticContent: g
- } = e,
- w = (
- W,
- Q,
- ee,
- ve = null,
- oe = null,
- H = null,
- ae = !1,
- ge = null,
- Ce = !!Q.dynamicChildren
- ) => {
- if (W === Q) return;
- W && !os(W, Q) && ((ve = le(W)), re(W, oe, H, !0), (W = null)),
- Q.patchFlag === -2 && ((Ce = !1), (Q.dynamicChildren = null));
- const { type: se, ref: Se, shapeFlag: Ne } = Q;
- switch (se) {
- case Du:
- x(W, Q, ee, ve);
- break;
- case Eo:
- y(W, Q, ee, ve);
- break;
- case mg:
- W == null && C(Q, ee, ve, ae);
- break;
- case on:
- E(W, Q, ee, ve, oe, H, ae, ge, Ce);
- break;
- default:
- Ne & 1
- ? _(W, Q, ee, ve, oe, H, ae, ge, Ce)
- : Ne & 6
- ? D(W, Q, ee, ve, oe, H, ae, ge, Ce)
- : (Ne & 64 || Ne & 128) &&
- se.process(W, Q, ee, ve, oe, H, ae, ge, Ce, he);
- }
- Se != null && oe && Nm(Se, W && W.ref, H, Q || W, !Q);
- },
- x = (W, Q, ee, ve) => {
- if (W == null) r((Q.el = s(Q.children)), ee, ve);
- else {
- const oe = (Q.el = W.el);
- Q.children !== W.children && d(oe, Q.children);
- }
- },
- y = (W, Q, ee, ve) => {
- W == null ? r((Q.el = c(Q.children || '')), ee, ve) : (Q.el = W.el);
- },
- C = (W, Q, ee, ve) => {
- [W.el, W.anchor] = g(W.children, Q, ee, ve, W.el, W.anchor);
- },
- R = ({ el: W, anchor: Q }, ee, ve) => {
- let oe;
- for (; W && W !== Q; ) (oe = p(W)), r(W, ee, ve), (W = oe);
- r(Q, ee, ve);
- },
- S = ({ el: W, anchor: Q }) => {
- let ee;
- for (; W && W !== Q; ) (ee = p(W)), o(W), (W = ee);
- o(Q);
- },
- _ = (W, Q, ee, ve, oe, H, ae, ge, Ce) => {
- (ae = ae || Q.type === 'svg'),
- W == null
- ? P(Q, ee, ve, oe, H, ae, ge, Ce)
- : z(W, Q, oe, H, ae, ge, Ce);
- },
- P = (W, Q, ee, ve, oe, H, ae, ge) => {
- let Ce, se;
- const {
- type: Se,
- props: Ne,
- shapeFlag: Ge,
- transition: it,
- dirs: dt
- } = W;
- if (
- ((Ce = W.el = a(W.type, H, Ne && Ne.is, Ne)),
- Ge & 8
- ? f(Ce, W.children)
- : Ge & 16 &&
- A(
- W.children,
- Ce,
- null,
- ve,
- oe,
- H && Se !== 'foreignObject',
- ae,
- ge
- ),
- dt && ql(W, null, ve, 'created'),
- T(Ce, W, W.scopeId, ae, ve),
- Ne)
- ) {
- for (const Me in Ne)
- Me !== 'value' &&
- !zh(Me) &&
- i(Ce, Me, null, Ne[Me], H, W.children, ve, oe, Ie);
- 'value' in Ne && i(Ce, 'value', null, Ne.value),
- (se = Ne.onVnodeBeforeMount) && ki(se, ve, W);
- }
- dt && ql(W, null, ve, 'beforeMount');
- const xt = (!oe || (oe && !oe.pendingBranch)) && it && !it.persisted;
- xt && it.beforeEnter(Ce),
- r(Ce, Q, ee),
- ((se = Ne && Ne.onVnodeMounted) || xt || dt) &&
- bo(() => {
- se && ki(se, ve, W),
- xt && it.enter(Ce),
- dt && ql(W, null, ve, 'mounted');
- }, oe);
- },
- T = (W, Q, ee, ve, oe) => {
- if ((ee && m(W, ee), ve)) for (let H = 0; H < ve.length; H++) m(W, ve[H]);
- if (oe) {
- let H = oe.subTree;
- if (Q === H) {
- const ae = oe.vnode;
- T(W, ae, ae.scopeId, ae.slotScopeIds, oe.parent);
- }
- }
- },
- A = (W, Q, ee, ve, oe, H, ae, ge, Ce = 0) => {
- for (let se = Ce; se < W.length; se++) {
- const Se = (W[se] = ge ? el(W[se]) : Ai(W[se]));
- w(null, Se, Q, ee, ve, oe, H, ae, ge);
- }
- },
- z = (W, Q, ee, ve, oe, H, ae) => {
- const ge = (Q.el = W.el);
- let { patchFlag: Ce, dynamicChildren: se, dirs: Se } = Q;
- Ce |= W.patchFlag & 16;
- const Ne = W.props || Zn,
- Ge = Q.props || Zn;
- let it;
- ee && Yl(ee, !1),
- (it = Ge.onVnodeBeforeUpdate) && ki(it, ee, Q, W),
- Se && ql(Q, W, ee, 'beforeUpdate'),
- ee && Yl(ee, !0);
- const dt = oe && Q.type !== 'foreignObject';
- if (
- (se
- ? k(W.dynamicChildren, se, ge, ee, ve, dt, H)
- : ae || G(W, Q, ge, null, ee, ve, dt, H, !1),
- Ce > 0)
- ) {
- if (Ce & 16) M(ge, Q, Ne, Ge, ee, ve, oe);
- else if (
- (Ce & 2 &&
- Ne.class !== Ge.class &&
- i(ge, 'class', null, Ge.class, oe),
- Ce & 4 && i(ge, 'style', Ne.style, Ge.style, oe),
- Ce & 8)
- ) {
- const xt = Q.dynamicProps;
- for (let Me = 0; Me < xt.length; Me++) {
- const ut = xt[Me],
- wt = Ne[ut],
- Lt = Ge[ut];
- (Lt !== wt || ut === 'value') &&
- i(ge, ut, wt, Lt, oe, W.children, ee, ve, Ie);
- }
- }
- Ce & 1 && W.children !== Q.children && f(ge, Q.children);
- } else !ae && se == null && M(ge, Q, Ne, Ge, ee, ve, oe);
- ((it = Ge.onVnodeUpdated) || Se) &&
- bo(() => {
- it && ki(it, ee, Q, W), Se && ql(Q, W, ee, 'updated');
- }, ve);
- },
- k = (W, Q, ee, ve, oe, H, ae) => {
- for (let ge = 0; ge < Q.length; ge++) {
- const Ce = W[ge],
- se = Q[ge],
- Se =
- Ce.el && (Ce.type === on || !os(Ce, se) || Ce.shapeFlag & 70)
- ? v(Ce.el)
- : ee;
- w(Ce, se, Se, null, ve, oe, H, ae, !0);
- }
- },
- M = (W, Q, ee, ve, oe, H, ae) => {
- if (ee !== ve) {
- if (ee !== Zn)
- for (const ge in ee)
- !zh(ge) &&
- !(ge in ve) &&
- i(W, ge, ee[ge], null, ae, Q.children, oe, H, Ie);
- for (const ge in ve) {
- if (zh(ge)) continue;
- const Ce = ve[ge],
- se = ee[ge];
- Ce !== se &&
- ge !== 'value' &&
- i(W, ge, se, Ce, ae, Q.children, oe, H, Ie);
- }
- 'value' in ve && i(W, 'value', ee.value, ve.value);
- }
- },
- E = (W, Q, ee, ve, oe, H, ae, ge, Ce) => {
- const se = (Q.el = W ? W.el : s('')),
- Se = (Q.anchor = W ? W.anchor : s(''));
- let { patchFlag: Ne, dynamicChildren: Ge, slotScopeIds: it } = Q;
- it && (ge = ge ? ge.concat(it) : it),
- W == null
- ? (r(se, ee, ve),
- r(Se, ee, ve),
- A(Q.children, ee, Se, oe, H, ae, ge, Ce))
- : Ne > 0 && Ne & 64 && Ge && W.dynamicChildren
- ? (k(W.dynamicChildren, Ge, ee, oe, H, ae, ge),
- (Q.key != null || (oe && Q === oe.subTree)) && U0(W, Q, !0))
- : G(W, Q, ee, Se, oe, H, ae, ge, Ce);
- },
- D = (W, Q, ee, ve, oe, H, ae, ge, Ce) => {
- (Q.slotScopeIds = ge),
- W == null
- ? Q.shapeFlag & 512
- ? oe.ctx.activate(Q, ee, ve, ae, Ce)
- : L(Q, ee, ve, oe, H, ae, Ce)
- : j(W, Q, Ce);
- },
- L = (W, Q, ee, ve, oe, H, ae) => {
- const ge = (W.component = VM(W, ve, oe));
- if ((zv(W) && (ge.ctx.renderer = he), KM(ge), ge.asyncDep)) {
- if ((oe && oe.registerDep(ge, B), !W.el)) {
- const Ce = (ge.subTree = er(Eo));
- y(null, Ce, Q, ee);
- }
- return;
- }
- B(ge, W, Q, ee, oe, H, ae);
- },
- j = (W, Q, ee) => {
- const ve = (Q.component = W.component);
- if (rM(W, Q, ee))
- if (ve.asyncDep && !ve.asyncResolved) {
- q(ve, Q, ee);
- return;
- } else (ve.next = Q), X6(ve.update), ve.update();
- else (Q.el = W.el), (ve.vnode = Q);
- },
- B = (W, Q, ee, ve, oe, H, ae) => {
- const ge = () => {
- if (W.isMounted) {
- let { next: Se, bu: Ne, u: Ge, parent: it, vnode: dt } = W,
- xt = Se,
- Me;
- Yl(W, !1),
- Se ? ((Se.el = dt.el), q(W, Se, ae)) : (Se = dt),
- Ne && hg(Ne),
- (Me = Se.props && Se.props.onVnodeBeforeUpdate) &&
- ki(Me, it, Se, dt),
- Yl(W, !0);
- const ut = vg(W),
- wt = W.subTree;
- (W.subTree = ut),
- w(wt, ut, v(wt.el), le(wt), W, oe, H),
- (Se.el = ut.el),
- xt === null && oM(W, ut.el),
- Ge && bo(Ge, oe),
- (Me = Se.props && Se.props.onVnodeUpdated) &&
- bo(() => ki(Me, it, Se, dt), oe);
- } else {
- let Se;
- const { el: Ne, props: Ge } = Q,
- { bm: it, m: dt, parent: xt } = W,
- Me = qd(Q);
- if (
- (Yl(W, !1),
- it && hg(it),
- !Me && (Se = Ge && Ge.onVnodeBeforeMount) && ki(Se, xt, Q),
- Yl(W, !0),
- Ne && Ae)
- ) {
- const ut = () => {
- (W.subTree = vg(W)), Ae(Ne, W.subTree, W, oe, null);
- };
- Me
- ? Q.type.__asyncLoader().then(() => !W.isUnmounted && ut())
- : ut();
- } else {
- const ut = (W.subTree = vg(W));
- w(null, ut, ee, ve, W, oe, H), (Q.el = ut.el);
- }
- if ((dt && bo(dt, oe), !Me && (Se = Ge && Ge.onVnodeMounted))) {
- const ut = Q;
- bo(() => ki(Se, xt, ut), oe);
- }
- (Q.shapeFlag & 256 ||
- (xt && qd(xt.vnode) && xt.vnode.shapeFlag & 256)) &&
- W.a &&
- bo(W.a, oe),
- (W.isMounted = !0),
- (Q = ee = ve = null);
- }
- },
- Ce = (W.effect = new O0(ge, () => F0(se), W.scope)),
- se = (W.update = () => Ce.run());
- (se.id = W.uid), Yl(W, !0), se();
- },
- q = (W, Q, ee) => {
- Q.component = W;
- const ve = W.vnode.props;
- (W.vnode = Q),
- (W.next = null),
- TM(W, Q.props, ve, ee),
- zM(W, Q.children, ee),
- Uc(),
- yw(),
- Wc();
- },
- G = (W, Q, ee, ve, oe, H, ae, ge, Ce = !1) => {
- const se = W && W.children,
- Se = W ? W.shapeFlag : 0,
- Ne = Q.children,
- { patchFlag: Ge, shapeFlag: it } = Q;
- if (Ge > 0) {
- if (Ge & 128) {
- X(se, Ne, ee, ve, oe, H, ae, ge, Ce);
- return;
- } else if (Ge & 256) {
- ne(se, Ne, ee, ve, oe, H, ae, ge, Ce);
- return;
- }
- }
- it & 8
- ? (Se & 16 && Ie(se, oe, H), Ne !== se && f(ee, Ne))
- : Se & 16
- ? it & 16
- ? X(se, Ne, ee, ve, oe, H, ae, ge, Ce)
- : Ie(se, oe, H, !0)
- : (Se & 8 && f(ee, ''), it & 16 && A(Ne, ee, ve, oe, H, ae, ge, Ce));
- },
- ne = (W, Q, ee, ve, oe, H, ae, ge, Ce) => {
- (W = W || wc), (Q = Q || wc);
- const se = W.length,
- Se = Q.length,
- Ne = Math.min(se, Se);
- let Ge;
- for (Ge = 0; Ge < Ne; Ge++) {
- const it = (Q[Ge] = Ce ? el(Q[Ge]) : Ai(Q[Ge]));
- w(W[Ge], it, ee, null, oe, H, ae, ge, Ce);
- }
- se > Se ? Ie(W, oe, H, !0, !1, Ne) : A(Q, ee, ve, oe, H, ae, ge, Ce, Ne);
- },
- X = (W, Q, ee, ve, oe, H, ae, ge, Ce) => {
- let se = 0;
- const Se = Q.length;
- let Ne = W.length - 1,
- Ge = Se - 1;
- for (; se <= Ne && se <= Ge; ) {
- const it = W[se],
- dt = (Q[se] = Ce ? el(Q[se]) : Ai(Q[se]));
- if (os(it, dt)) w(it, dt, ee, null, oe, H, ae, ge, Ce);
- else break;
- se++;
- }
- for (; se <= Ne && se <= Ge; ) {
- const it = W[Ne],
- dt = (Q[Ge] = Ce ? el(Q[Ge]) : Ai(Q[Ge]));
- if (os(it, dt)) w(it, dt, ee, null, oe, H, ae, ge, Ce);
- else break;
- Ne--, Ge--;
- }
- if (se > Ne) {
- if (se <= Ge) {
- const it = Ge + 1,
- dt = it < Se ? Q[it].el : ve;
- for (; se <= Ge; )
- w(
- null,
- (Q[se] = Ce ? el(Q[se]) : Ai(Q[se])),
- ee,
- dt,
- oe,
- H,
- ae,
- ge,
- Ce
- ),
- se++;
- }
- } else if (se > Ge) for (; se <= Ne; ) re(W[se], oe, H, !0), se++;
- else {
- const it = se,
- dt = se,
- xt = new Map();
- for (se = dt; se <= Ge; se++) {
- const Qe = (Q[se] = Ce ? el(Q[se]) : Ai(Q[se]));
- Qe.key != null && xt.set(Qe.key, se);
- }
- let Me,
- ut = 0;
- const wt = Ge - dt + 1;
- let Lt = !1,
- ot = 0;
- const ct = new Array(wt);
- for (se = 0; se < wt; se++) ct[se] = 0;
- for (se = it; se <= Ne; se++) {
- const Qe = W[se];
- if (ut >= wt) {
- re(Qe, oe, H, !0);
- continue;
- }
- let ie;
- if (Qe.key != null) ie = xt.get(Qe.key);
- else
- for (Me = dt; Me <= Ge; Me++)
- if (ct[Me - dt] === 0 && os(Qe, Q[Me])) {
- ie = Me;
- break;
- }
- ie === void 0
- ? re(Qe, oe, H, !0)
- : ((ct[ie - dt] = se + 1),
- ie >= ot ? (ot = ie) : (Lt = !0),
- w(Qe, Q[ie], ee, null, oe, H, ae, ge, Ce),
- ut++);
- }
- const Xe = Lt ? MM(ct) : wc;
- for (Me = Xe.length - 1, se = wt - 1; se >= 0; se--) {
- const Qe = dt + se,
- ie = Q[Qe],
- $e = Qe + 1 < Se ? Q[Qe + 1].el : ve;
- ct[se] === 0
- ? w(null, ie, ee, $e, oe, H, ae, ge, Ce)
- : Lt && (Me < 0 || se !== Xe[Me] ? J(ie, ee, $e, 2) : Me--);
- }
- }
- },
- J = (W, Q, ee, ve, oe = null) => {
- const {
- el: H,
- type: ae,
- transition: ge,
- children: Ce,
- shapeFlag: se
- } = W;
- if (se & 6) {
- J(W.component.subTree, Q, ee, ve);
- return;
- }
- if (se & 128) {
- W.suspense.move(Q, ee, ve);
- return;
- }
- if (se & 64) {
- ae.move(W, Q, ee, he);
- return;
- }
- if (ae === on) {
- r(H, Q, ee);
- for (let Ne = 0; Ne < Ce.length; Ne++) J(Ce[Ne], Q, ee, ve);
- r(W.anchor, Q, ee);
- return;
- }
- if (ae === mg) {
- R(W, Q, ee);
- return;
- }
- if (ve !== 2 && se & 1 && ge)
- if (ve === 0) ge.beforeEnter(H), r(H, Q, ee), bo(() => ge.enter(H), oe);
- else {
- const { leave: Ne, delayLeave: Ge, afterLeave: it } = ge,
- dt = () => r(H, Q, ee),
- xt = () => {
- Ne(H, () => {
- dt(), it && it();
- });
- };
- Ge ? Ge(H, dt, xt) : xt();
- }
- else r(H, Q, ee);
- },
- re = (W, Q, ee, ve = !1, oe = !1) => {
- const {
- type: H,
- props: ae,
- ref: ge,
- children: Ce,
- dynamicChildren: se,
- shapeFlag: Se,
- patchFlag: Ne,
- dirs: Ge
- } = W;
- if ((ge != null && Nm(ge, null, ee, W, !0), Se & 256)) {
- Q.ctx.deactivate(W);
- return;
- }
- const it = Se & 1 && Ge,
- dt = !qd(W);
- let xt;
- if ((dt && (xt = ae && ae.onVnodeBeforeUnmount) && ki(xt, Q, W), Se & 6))
- Fe(W.component, ee, ve);
- else {
- if (Se & 128) {
- W.suspense.unmount(ee, ve);
- return;
- }
- it && ql(W, null, Q, 'beforeUnmount'),
- Se & 64
- ? W.type.remove(W, Q, ee, oe, he, ve)
- : se && (H !== on || (Ne > 0 && Ne & 64))
- ? Ie(se, Q, ee, !1, !0)
- : ((H === on && Ne & 384) || (!oe && Se & 16)) && Ie(Ce, Q, ee),
- ve && ce(W);
- }
- ((dt && (xt = ae && ae.onVnodeUnmounted)) || it) &&
- bo(() => {
- xt && ki(xt, Q, W), it && ql(W, null, Q, 'unmounted');
- }, ee);
- },
- ce = W => {
- const { type: Q, el: ee, anchor: ve, transition: oe } = W;
- if (Q === on) {
- pe(ee, ve);
- return;
- }
- if (Q === mg) {
- S(W);
- return;
- }
- const H = () => {
- o(ee), oe && !oe.persisted && oe.afterLeave && oe.afterLeave();
- };
- if (W.shapeFlag & 1 && oe && !oe.persisted) {
- const { leave: ae, delayLeave: ge } = oe,
- Ce = () => ae(ee, H);
- ge ? ge(W.el, H, Ce) : Ce();
- } else H();
- },
- pe = (W, Q) => {
- let ee;
- for (; W !== Q; ) (ee = p(W)), o(W), (W = ee);
- o(Q);
- },
- Fe = (W, Q, ee) => {
- const { bum: ve, scope: oe, update: H, subTree: ae, um: ge } = W;
- ve && hg(ve),
- oe.stop(),
- H && ((H.active = !1), re(ae, W, Q, ee)),
- ge && bo(ge, Q),
- bo(() => {
- W.isUnmounted = !0;
- }, Q),
- Q &&
- Q.pendingBranch &&
- !Q.isUnmounted &&
- W.asyncDep &&
- !W.asyncResolved &&
- W.suspenseId === Q.pendingId &&
- (Q.deps--, Q.deps === 0 && Q.resolve());
- },
- Ie = (W, Q, ee, ve = !1, oe = !1, H = 0) => {
- for (let ae = H; ae < W.length; ae++) re(W[ae], Q, ee, ve, oe);
- },
- le = W =>
- W.shapeFlag & 6
- ? le(W.component.subTree)
- : W.shapeFlag & 128
- ? W.suspense.next()
- : p(W.anchor || W.el),
- me = (W, Q, ee) => {
- W == null
- ? Q._vnode && re(Q._vnode, null, null, !0)
- : w(Q._vnode || null, W, Q, null, null, null, ee),
- yw(),
- q_(),
- (Q._vnode = W);
- },
- he = {
- p: w,
- um: re,
- m: J,
- r: ce,
- mt: L,
- mc: A,
- pc: G,
- pbc: k,
- n: le,
- o: e
- };
- let ue, Ae;
- return (
- t && ([ue, Ae] = t(he)), { render: me, hydrate: ue, createApp: RM(me, ue) }
- );
- }
- function Yl({ effect: e, update: t }, n) {
- e.allowRecurse = t.allowRecurse = n;
- }
- function U0(e, t, n = !1) {
- const r = e.children,
- o = t.children;
- if (Gt(r) && Gt(o))
- for (let i = 0; i < r.length; i++) {
- const a = r[i];
- let s = o[i];
- s.shapeFlag & 1 &&
- !s.dynamicChildren &&
- ((s.patchFlag <= 0 || s.patchFlag === 32) &&
- ((s = o[i] = el(o[i])), (s.el = a.el)),
- n || U0(a, s)),
- s.type === Du && (s.el = a.el);
- }
- }
- function MM(e) {
- const t = e.slice(),
- n = [0];
- let r, o, i, a, s;
- const c = e.length;
- for (r = 0; r < c; r++) {
- const d = e[r];
- if (d !== 0) {
- if (((o = n[n.length - 1]), e[o] < d)) {
- (t[r] = o), n.push(r);
- continue;
- }
- for (i = 0, a = n.length - 1; i < a; )
- (s = (i + a) >> 1), e[n[s]] < d ? (i = s + 1) : (a = s);
- d < e[n[i]] && (i > 0 && (t[r] = n[i - 1]), (n[i] = r));
- }
- }
- for (i = n.length, a = n[i - 1]; i-- > 0; ) (n[i] = a), (a = t[a]);
- return n;
- }
- const IM = e => e.__isTeleport,
- Gd = e => e && (e.disabled || e.disabled === ''),
- zw = e => typeof SVGElement < 'u' && e instanceof SVGElement,
- Hm = (e, t) => {
- const n = e && e.to;
- return _r(n) ? (t ? t(n) : null) : n;
- },
- DM = {
- __isTeleport: !0,
- process(e, t, n, r, o, i, a, s, c, d) {
- const {
- mc: f,
- pc: v,
- pbc: p,
- o: { insert: m, querySelector: g, createText: w, createComment: x }
- } = d,
- y = Gd(t.props);
- let { shapeFlag: C, children: R, dynamicChildren: S } = t;
- if (e == null) {
- const _ = (t.el = w('')),
- P = (t.anchor = w(''));
- m(_, n, r), m(P, n, r);
- const T = (t.target = Hm(t.props, g)),
- A = (t.targetAnchor = w(''));
- T && (m(A, T), (a = a || zw(T)));
- const z = (k, M) => {
- C & 16 && f(R, k, M, o, i, a, s, c);
- };
- y ? z(n, P) : T && z(T, A);
- } else {
- t.el = e.el;
- const _ = (t.anchor = e.anchor),
- P = (t.target = e.target),
- T = (t.targetAnchor = e.targetAnchor),
- A = Gd(e.props),
- z = A ? n : P,
- k = A ? _ : T;
- if (
- ((a = a || zw(P)),
- S
- ? (p(e.dynamicChildren, S, z, o, i, a, s), U0(e, t, !0))
- : c || v(e, t, z, k, o, i, a, s, !1),
- y)
- )
- A || rh(t, n, _, d, 1);
- else if ((t.props && t.props.to) !== (e.props && e.props.to)) {
- const M = (t.target = Hm(t.props, g));
- M && rh(t, M, null, d, 0);
- } else A && rh(t, P, T, d, 1);
- }
- fR(t);
- },
- remove(e, t, n, r, { um: o, o: { remove: i } }, a) {
- const {
- shapeFlag: s,
- children: c,
- anchor: d,
- targetAnchor: f,
- target: v,
- props: p
- } = e;
- if ((v && i(f), (a || !Gd(p)) && (i(d), s & 16)))
- for (let m = 0; m < c.length; m++) {
- const g = c[m];
- o(g, t, n, !0, !!g.dynamicChildren);
- }
- },
- move: rh,
- hydrate: FM
- };
- function rh(e, t, n, { o: { insert: r }, m: o }, i = 2) {
- i === 0 && r(e.targetAnchor, t, n);
- const { el: a, anchor: s, shapeFlag: c, children: d, props: f } = e,
- v = i === 2;
- if ((v && r(a, t, n), (!v || Gd(f)) && c & 16))
- for (let p = 0; p < d.length; p++) o(d[p], t, n, 2);
- v && r(s, t, n);
- }
- function FM(
- e,
- t,
- n,
- r,
- o,
- i,
- { o: { nextSibling: a, parentNode: s, querySelector: c } },
- d
- ) {
- const f = (t.target = Hm(t.props, c));
- if (f) {
- const v = f._lpa || f.firstChild;
- if (t.shapeFlag & 16)
- if (Gd(t.props))
- (t.anchor = d(a(e), t, s(e), n, r, o, i)), (t.targetAnchor = v);
- else {
- t.anchor = a(e);
- let p = v;
- for (; p; )
- if (
- ((p = a(p)), p && p.nodeType === 8 && p.data === 'teleport anchor')
- ) {
- (t.targetAnchor = p),
- (f._lpa = t.targetAnchor && a(t.targetAnchor));
- break;
- }
- d(v, t, f, n, r, o, i);
- }
- fR(t);
- }
- return t.anchor && a(t.anchor);
- }
- const Iu = DM;
- function fR(e) {
- const t = e.ctx;
- if (t && t.ut) {
- let n = e.children[0].el;
- for (; n !== e.targetAnchor; )
- n.nodeType === 1 && n.setAttribute('data-v-owner', t.uid),
- (n = n.nextSibling);
- t.ut();
- }
- }
- const on = Symbol.for('v-fgt'),
- Du = Symbol.for('v-txt'),
- Eo = Symbol.for('v-cmt'),
- mg = Symbol.for('v-stc'),
- Xd = [];
- let di = null;
- function BM(e = !1) {
- Xd.push((di = e ? null : []));
- }
- function LM() {
- Xd.pop(), (di = Xd[Xd.length - 1] || null);
- }
- let mu = 1;
- function Aw(e) {
- mu += e;
- }
- function hR(e) {
- return (
- (e.dynamicChildren = mu > 0 ? di || wc : null),
- LM(),
- mu > 0 && di && di.push(e),
- e
- );
- }
- function lle(e, t, n, r, o, i) {
- return hR(pR(e, t, n, r, o, i, !0));
- }
- function NM(e, t, n, r, o) {
- return hR(er(e, t, n, r, o, !0));
- }
- function bu(e) {
- return e ? e.__v_isVNode === !0 : !1;
- }
- function os(e, t) {
- return e.type === t.type && e.key === t.key;
- }
- const Mv = '__vInternal',
- vR = ({ key: e }) => (e != null ? e : null),
- Ah = ({ ref: e, ref_key: t, ref_for: n }) => (
- typeof e == 'number' && (e = '' + e),
- e != null
- ? _r(e) || lr(e) || tn(e)
- ? { i: Ar, r: e, k: t, f: !!n }
- : e
- : null
- );
- function pR(
- e,
- t = null,
- n = null,
- r = 0,
- o = null,
- i = e === on ? 0 : 1,
- a = !1,
- s = !1
- ) {
- const c = {
- __v_isVNode: !0,
- __v_skip: !0,
- type: e,
- props: t,
- key: t && vR(t),
- ref: t && Ah(t),
- scopeId: X_,
- slotScopeIds: null,
- children: n,
- component: null,
- suspense: null,
- ssContent: null,
- ssFallback: null,
- dirs: null,
- transition: null,
- el: null,
- anchor: null,
- target: null,
- targetAnchor: null,
- staticCount: 0,
- shapeFlag: i,
- patchFlag: r,
- dynamicProps: o,
- dynamicChildren: null,
- appContext: null,
- ctx: Ar
- };
- return (
- s
- ? (W0(c, n), i & 128 && e.normalize(c))
- : n && (c.shapeFlag |= _r(n) ? 8 : 16),
- mu > 0 &&
- !a &&
- di &&
- (c.patchFlag > 0 || i & 6) &&
- c.patchFlag !== 32 &&
- di.push(c),
- c
- );
- }
- const er = HM;
- function HM(e, t = null, n = null, r = 0, o = null, i = !1) {
- if (((!e || e === gM) && (e = Eo), bu(e))) {
- const s = Mo(e, t, !0);
- return (
- n && W0(s, n),
- mu > 0 &&
- !i &&
- di &&
- (s.shapeFlag & 6 ? (di[di.indexOf(e)] = s) : di.push(s)),
- (s.patchFlag |= -2),
- s
- );
- }
- if ((ZM(e) && (e = e.__vccOpts), t)) {
- t = jM(t);
- let { class: s, style: c } = t;
- s && !_r(s) && (t.class = T0(s)),
- rr(c) && (L_(c) && !Gt(c) && (c = gr({}, c)), (t.style = kv(c)));
- }
- const a = _r(e) ? 1 : iM(e) ? 128 : IM(e) ? 64 : rr(e) ? 4 : tn(e) ? 2 : 0;
- return pR(e, t, n, r, o, a, i, !0);
- }
- function jM(e) {
- return e ? (L_(e) || Mv in e ? gr({}, e) : e) : null;
- }
- function Mo(e, t, n = !1) {
- const { props: r, ref: o, patchFlag: i, children: a } = e,
- s = t ? qr(r || {}, t) : r;
- return {
- __v_isVNode: !0,
- __v_skip: !0,
- type: e.type,
- props: s,
- key: s && vR(s),
- ref:
- t && t.ref
- ? n && o
- ? Gt(o)
- ? o.concat(Ah(t))
- : [o, Ah(t)]
- : Ah(t)
- : o,
- scopeId: e.scopeId,
- slotScopeIds: e.slotScopeIds,
- children: a,
- target: e.target,
- targetAnchor: e.targetAnchor,
- staticCount: e.staticCount,
- shapeFlag: e.shapeFlag,
- patchFlag: t && e.type !== on ? (i === -1 ? 16 : i | 16) : i,
- dynamicProps: e.dynamicProps,
- dynamicChildren: e.dynamicChildren,
- appContext: e.appContext,
- dirs: e.dirs,
- transition: e.transition,
- component: e.component,
- suspense: e.suspense,
- ssContent: e.ssContent && Mo(e.ssContent),
- ssFallback: e.ssFallback && Mo(e.ssFallback),
- el: e.el,
- anchor: e.anchor,
- ctx: e.ctx,
- ce: e.ce
- };
- }
- function yu(e = ' ', t = 0) {
- return er(Du, null, e, t);
- }
- function Ai(e) {
- return e == null || typeof e == 'boolean'
- ? er(Eo)
- : Gt(e)
- ? er(on, null, e.slice())
- : typeof e == 'object'
- ? el(e)
- : er(Du, null, String(e));
- }
- function el(e) {
- return (e.el === null && e.patchFlag !== -1) || e.memo ? e : Mo(e);
- }
- function W0(e, t) {
- let n = 0;
- const { shapeFlag: r } = e;
- if (t == null) t = null;
- else if (Gt(t)) n = 16;
- else if (typeof t == 'object')
- if (r & 65) {
- const o = t.default;
- o && (o._c && (o._d = !1), W0(e, o()), o._c && (o._d = !0));
- return;
- } else {
- n = 32;
- const o = t._;
- !o && !(Mv in t)
- ? (t._ctx = Ar)
- : o === 3 &&
- Ar &&
- (Ar.slots._ === 1 ? (t._ = 1) : ((t._ = 2), (e.patchFlag |= 1024)));
- }
- else
- tn(t)
- ? ((t = { default: t, _ctx: Ar }), (n = 32))
- : ((t = String(t)), r & 64 ? ((n = 16), (t = [yu(t)])) : (n = 8));
- (e.children = t), (e.shapeFlag |= n);
- }
- function qr(...e) {
- const t = {};
- for (let n = 0; n < e.length; n++) {
- const r = e[n];
- for (const o in r)
- if (o === 'class')
- t.class !== r.class && (t.class = T0([t.class, r.class]));
- else if (o === 'style') t.style = kv([t.style, r.style]);
- else if (Sv(o)) {
- const i = t[o],
- a = r[o];
- a &&
- i !== a &&
- !(Gt(i) && i.includes(a)) &&
- (t[o] = i ? [].concat(i, a) : a);
- } else o !== '' && (t[o] = r[o]);
- }
- return t;
- }
- function ki(e, t, n, r = null) {
- Zo(e, t, 7, [n, r]);
- }
- const UM = aR();
- let WM = 0;
- function VM(e, t, n) {
- const r = e.type,
- o = (t ? t.appContext : e.appContext) || UM,
- i = {
- uid: WM++,
- vnode: e,
- type: r,
- parent: t,
- appContext: o,
- root: null,
- next: null,
- subTree: null,
- effect: null,
- update: null,
- scope: new P_(!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: sR(r, o),
- emitsOptions: G_(r, o),
- emit: null,
- emitted: null,
- propsDefaults: Zn,
- inheritAttrs: r.inheritAttrs,
- ctx: Zn,
- data: Zn,
- props: Zn,
- attrs: Zn,
- slots: Zn,
- refs: Zn,
- setupState: Zn,
- setupContext: null,
- attrsProxy: null,
- slotsProxy: null,
- suspense: n,
- suspenseId: n ? n.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 (
- (i.ctx = { _: i }),
- (i.root = t ? t.root : i),
- (i.emit = J6.bind(null, i)),
- e.ce && e.ce(i),
- i
- );
- }
- let Sr = null;
- const _a = () => Sr || Ar;
- let V0,
- ic,
- Ew = '__VUE_INSTANCE_SETTERS__';
- (ic = zm()[Ew]) || (ic = zm()[Ew] = []),
- ic.push(e => (Sr = e)),
- (V0 = e => {
- ic.length > 1 ? ic.forEach(t => t(e)) : ic[0](e);
- });
- const $c = e => {
- V0(e), e.scope.on();
- },
- vs = () => {
- Sr && Sr.scope.off(), V0(null);
- };
- function gR(e) {
- return e.vnode.shapeFlag & 4;
- }
- let xu = !1;
- function KM(e, t = !1) {
- xu = t;
- const { props: n, children: r } = e.vnode,
- o = gR(e);
- kM(e, n, o, t), OM(e, r);
- const i = o ? qM(e, t) : void 0;
- return (xu = !1), i;
- }
- function qM(e, t) {
- const n = e.type;
- (e.accessCache = Object.create(null)), (e.proxy = Tc(new Proxy(e.ctx, bM)));
- const { setup: r } = n;
- if (r) {
- const o = (e.setupContext = r.length > 1 ? GM(e) : null);
- $c(e), Uc();
- const i = sl(r, e, 0, [e.props, o]);
- if ((Wc(), vs(), __(i))) {
- if ((i.then(vs, vs), t))
- return i
- .then(a => {
- Mw(e, a, t);
- })
- .catch(a => {
- $v(a, e, 0);
- });
- e.asyncDep = i;
- } else Mw(e, i, t);
- } else mR(e, t);
- }
- function Mw(e, t, n) {
- tn(t)
- ? e.type.__ssrInlineRender
- ? (e.ssrRender = t)
- : (e.render = t)
- : rr(t) && (e.setupState = U_(t)),
- mR(e, n);
- }
- let Iw;
- function mR(e, t, n) {
- const r = e.type;
- if (!e.render) {
- if (!t && Iw && !r.render) {
- const o = r.template || H0(e).template;
- if (o) {
- const { isCustomElement: i, compilerOptions: a } = e.appContext.config,
- { delimiters: s, compilerOptions: c } = r,
- d = gr(gr({ isCustomElement: i, delimiters: s }, a), c);
- r.render = Iw(o, d);
- }
- }
- e.render = r.render || ui;
- }
- $c(e), Uc(), yM(e), Wc(), vs();
- }
- function YM(e) {
- return (
- e.attrsProxy ||
- (e.attrsProxy = new Proxy(e.attrs, {
- get(t, n) {
- return Co(e, 'get', '$attrs'), t[n];
- }
- }))
- );
- }
- function GM(e) {
- const t = n => {
- e.exposed = n || {};
- };
- return {
- get attrs() {
- return YM(e);
- },
- slots: e.slots,
- emit: e.emit,
- expose: t
- };
- }
- function Iv(e) {
- if (e.exposed)
- return (
- e.exposeProxy ||
- (e.exposeProxy = new Proxy(U_(Tc(e.exposed)), {
- get(t, n) {
- if (n in t) return t[n];
- if (n in Yd) return Yd[n](e);
- },
- has(t, n) {
- return n in t || n in Yd;
- }
- }))
- );
- }
- function XM(e, t = !0) {
- return tn(e) ? e.displayName || e.name : e.name || (t && e.__name);
- }
- function ZM(e) {
- return tn(e) && '__vccOpts' in e;
- }
- const I = (e, t) => q6(e, t, xu);
- function h(e, t, n) {
- const r = arguments.length;
- return r === 2
- ? rr(t) && !Gt(t)
- ? bu(t)
- ? er(e, null, [t])
- : er(e, t)
- : er(e, null, t)
- : (r > 3
- ? (n = Array.prototype.slice.call(arguments, 2))
- : r === 3 && bu(n) && (n = [n]),
- er(e, t, n));
- }
- const QM = Symbol.for('v-scx'),
- JM = () => Ze(QM),
- eI = '3.3.4',
- tI = 'http://www.w3.org/2000/svg',
- is = typeof document < 'u' ? document : null,
- Dw = is && is.createElement('template'),
- nI = {
- insert: (e, t, n) => {
- t.insertBefore(e, n || null);
- },
- remove: e => {
- const t = e.parentNode;
- t && t.removeChild(e);
- },
- createElement: (e, t, n, r) => {
- const o = t
- ? is.createElementNS(tI, e)
- : is.createElement(e, n ? { is: n } : void 0);
- return (
- e === 'select' &&
- r &&
- r.multiple != null &&
- o.setAttribute('multiple', r.multiple),
- o
- );
- },
- createText: e => is.createTextNode(e),
- createComment: e => is.createComment(e),
- setText: (e, t) => {
- e.nodeValue = t;
- },
- setElementText: (e, t) => {
- e.textContent = t;
- },
- parentNode: e => e.parentNode,
- nextSibling: e => e.nextSibling,
- querySelector: e => is.querySelector(e),
- setScopeId(e, t) {
- e.setAttribute(t, '');
- },
- insertStaticContent(e, t, n, r, o, i) {
- const a = n ? n.previousSibling : t.lastChild;
- if (o && (o === i || o.nextSibling))
- for (
- ;
- t.insertBefore(o.cloneNode(!0), n),
- !(o === i || !(o = o.nextSibling));
- );
- else {
- Dw.innerHTML = r ? `<svg>${e}</svg>` : e;
- const s = Dw.content;
- if (r) {
- const c = s.firstChild;
- for (; c.firstChild; ) s.appendChild(c.firstChild);
- s.removeChild(c);
- }
- t.insertBefore(s, n);
- }
- return [
- a ? a.nextSibling : t.firstChild,
- n ? n.previousSibling : t.lastChild
- ];
- }
- };
- function rI(e, t, n) {
- const r = e._vtc;
- r && (t = (t ? [t, ...r] : [...r]).join(' ')),
- t == null
- ? e.removeAttribute('class')
- : n
- ? e.setAttribute('class', t)
- : (e.className = t);
- }
- function oI(e, t, n) {
- const r = e.style,
- o = _r(n);
- if (n && !o) {
- if (t && !_r(t)) for (const i in t) n[i] == null && jm(r, i, '');
- for (const i in n) jm(r, i, n[i]);
- } else {
- const i = r.display;
- o ? t !== n && (r.cssText = n) : t && e.removeAttribute('style'),
- '_vod' in e && (r.display = i);
- }
- }
- const Fw = /\s*!important$/;
- function jm(e, t, n) {
- if (Gt(n)) n.forEach(r => jm(e, t, r));
- else if ((n == null && (n = ''), t.startsWith('--'))) e.setProperty(t, n);
- else {
- const r = iI(e, t);
- Fw.test(n)
- ? e.setProperty(jc(r), n.replace(Fw, ''), 'important')
- : (e[r] = n);
- }
- }
- const Bw = ['Webkit', 'Moz', 'ms'],
- bg = {};
- function iI(e, t) {
- const n = bg[t];
- if (n) return n;
- let r = Ui(t);
- if (r !== 'filter' && r in e) return (bg[t] = r);
- r = Pv(r);
- for (let o = 0; o < Bw.length; o++) {
- const i = Bw[o] + r;
- if (i in e) return (bg[t] = i);
- }
- return t;
- }
- const Lw = 'http://www.w3.org/1999/xlink';
- function aI(e, t, n, r, o) {
- if (r && t.startsWith('xlink:'))
- n == null
- ? e.removeAttributeNS(Lw, t.slice(6, t.length))
- : e.setAttributeNS(Lw, t, n);
- else {
- const i = c6(t);
- n == null || (i && !R_(n))
- ? e.removeAttribute(t)
- : e.setAttribute(t, i ? '' : n);
- }
- }
- function lI(e, t, n, r, o, i, a) {
- if (t === 'innerHTML' || t === 'textContent') {
- r && a(r, o, i), (e[t] = n == null ? '' : n);
- return;
- }
- const s = e.tagName;
- if (t === 'value' && s !== 'PROGRESS' && !s.includes('-')) {
- e._value = n;
- const d = s === 'OPTION' ? e.getAttribute('value') : e.value,
- f = n == null ? '' : n;
- d !== f && (e.value = f), n == null && e.removeAttribute(t);
- return;
- }
- let c = !1;
- if (n === '' || n == null) {
- const d = typeof e[t];
- d === 'boolean'
- ? (n = R_(n))
- : n == null && d === 'string'
- ? ((n = ''), (c = !0))
- : d === 'number' && ((n = 0), (c = !0));
- }
- try {
- e[t] = n;
- } catch (d) {}
- c && e.removeAttribute(t);
- }
- function sI(e, t, n, r) {
- e.addEventListener(t, n, r);
- }
- function cI(e, t, n, r) {
- e.removeEventListener(t, n, r);
- }
- function dI(e, t, n, r, o = null) {
- const i = e._vei || (e._vei = {}),
- a = i[t];
- if (r && a) a.value = r;
- else {
- const [s, c] = uI(t);
- if (r) {
- const d = (i[t] = vI(r, o));
- sI(e, s, d, c);
- } else a && (cI(e, s, a, c), (i[t] = void 0));
- }
- }
- const Nw = /(?:Once|Passive|Capture)$/;
- function uI(e) {
- let t;
- if (Nw.test(e)) {
- t = {};
- let r;
- for (; (r = e.match(Nw)); )
- (e = e.slice(0, e.length - r[0].length)), (t[r[0].toLowerCase()] = !0);
- }
- return [e[2] === ':' ? e.slice(3) : jc(e.slice(2)), t];
- }
- let yg = 0;
- const fI = Promise.resolve(),
- hI = () => yg || (fI.then(() => (yg = 0)), (yg = Date.now()));
- function vI(e, t) {
- const n = r => {
- if (!r._vts) r._vts = Date.now();
- else if (r._vts <= n.attached) return;
- Zo(pI(r, n.value), t, 5, [r]);
- };
- return (n.value = e), (n.attached = hI()), n;
- }
- function pI(e, t) {
- if (Gt(t)) {
- const n = e.stopImmediatePropagation;
- return (
- (e.stopImmediatePropagation = () => {
- n.call(e), (e._stopped = !0);
- }),
- t.map(r => o => !o._stopped && r && r(o))
- );
- } else return t;
- }
- const Hw = /^on[a-z]/,
- gI = (e, t, n, r, o = !1, i, a, s, c) => {
- t === 'class'
- ? rI(e, r, o)
- : t === 'style'
- ? oI(e, n, r)
- : Sv(t)
- ? _0(t) || dI(e, t, n, r, a)
- : (
- t[0] === '.'
- ? ((t = t.slice(1)), !0)
- : t[0] === '^'
- ? ((t = t.slice(1)), !1)
- : mI(e, t, r, o)
- )
- ? lI(e, t, r, i, a, s, c)
- : (t === 'true-value'
- ? (e._trueValue = r)
- : t === 'false-value' && (e._falseValue = r),
- aI(e, t, r, o));
- };
- function mI(e, t, n, r) {
- return r
- ? !!(
- t === 'innerHTML' ||
- t === 'textContent' ||
- (t in e && Hw.test(t) && tn(n))
- )
- : t === 'spellcheck' ||
- t === 'draggable' ||
- t === 'translate' ||
- t === 'form' ||
- (t === 'list' && e.tagName === 'INPUT') ||
- (t === 'type' && e.tagName === 'TEXTAREA') ||
- (Hw.test(t) && _r(n))
- ? !1
- : t in e;
- }
- const Ka = 'transition',
- Td = 'animation',
- Kn = (e, { slots: t }) => h(cM, yR(e), t);
- Kn.displayName = 'Transition';
- const bR = {
- 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
- },
- bI = (Kn.props = gr({}, J_, bR)),
- Gl = (e, t = []) => {
- Gt(e) ? e.forEach(n => n(...t)) : e && e(...t);
- },
- jw = e => (e ? (Gt(e) ? e.some(t => t.length > 1) : e.length > 1) : !1);
- function yR(e) {
- const t = {};
- for (const E in e) E in bR || (t[E] = e[E]);
- if (e.css === !1) return t;
- const {
- name: n = 'v',
- type: r,
- duration: o,
- enterFromClass: i = `${n}-enter-from`,
- enterActiveClass: a = `${n}-enter-active`,
- enterToClass: s = `${n}-enter-to`,
- appearFromClass: c = i,
- appearActiveClass: d = a,
- appearToClass: f = s,
- leaveFromClass: v = `${n}-leave-from`,
- leaveActiveClass: p = `${n}-leave-active`,
- leaveToClass: m = `${n}-leave-to`
- } = e,
- g = yI(o),
- w = g && g[0],
- x = g && g[1],
- {
- onBeforeEnter: y,
- onEnter: C,
- onEnterCancelled: R,
- onLeave: S,
- onLeaveCancelled: _,
- onBeforeAppear: P = y,
- onAppear: T = C,
- onAppearCancelled: A = R
- } = t,
- z = (E, D, L) => {
- Za(E, D ? f : s), Za(E, D ? d : a), L && L();
- },
- k = (E, D) => {
- (E._isLeaving = !1), Za(E, v), Za(E, m), Za(E, p), D && D();
- },
- M = E => (D, L) => {
- const j = E ? T : C,
- B = () => z(D, E, L);
- Gl(j, [D, B]),
- Uw(() => {
- Za(D, E ? c : i), ha(D, E ? f : s), jw(j) || Ww(D, r, w, B);
- });
- };
- return gr(t, {
- onBeforeEnter(E) {
- Gl(y, [E]), ha(E, i), ha(E, a);
- },
- onBeforeAppear(E) {
- Gl(P, [E]), ha(E, c), ha(E, d);
- },
- onEnter: M(!1),
- onAppear: M(!0),
- onLeave(E, D) {
- E._isLeaving = !0;
- const L = () => k(E, D);
- ha(E, v),
- wR(),
- ha(E, p),
- Uw(() => {
- E._isLeaving && (Za(E, v), ha(E, m), jw(S) || Ww(E, r, x, L));
- }),
- Gl(S, [E, L]);
- },
- onEnterCancelled(E) {
- z(E, !1), Gl(R, [E]);
- },
- onAppearCancelled(E) {
- z(E, !0), Gl(A, [E]);
- },
- onLeaveCancelled(E) {
- k(E), Gl(_, [E]);
- }
- });
- }
- function yI(e) {
- if (e == null) return null;
- if (rr(e)) return [xg(e.enter), xg(e.leave)];
- {
- const t = xg(e);
- return [t, t];
- }
- }
- function xg(e) {
- return r6(e);
- }
- function ha(e, t) {
- t.split(/\s+/).forEach(n => n && e.classList.add(n)),
- (e._vtc || (e._vtc = new Set())).add(t);
- }
- function Za(e, t) {
- t.split(/\s+/).forEach(r => r && e.classList.remove(r));
- const { _vtc: n } = e;
- n && (n.delete(t), n.size || (e._vtc = void 0));
- }
- function Uw(e) {
- requestAnimationFrame(() => {
- requestAnimationFrame(e);
- });
- }
- let xI = 0;
- function Ww(e, t, n, r) {
- const o = (e._endId = ++xI),
- i = () => {
- o === e._endId && r();
- };
- if (n) return setTimeout(i, n);
- const { type: a, timeout: s, propCount: c } = xR(e, t);
- if (!a) return r();
- const d = a + 'end';
- let f = 0;
- const v = () => {
- e.removeEventListener(d, p), i();
- },
- p = m => {
- m.target === e && ++f >= c && v();
- };
- setTimeout(() => {
- f < c && v();
- }, s + 1),
- e.addEventListener(d, p);
- }
- function xR(e, t) {
- const n = window.getComputedStyle(e),
- r = g => (n[g] || '').split(', '),
- o = r(`${Ka}Delay`),
- i = r(`${Ka}Duration`),
- a = Vw(o, i),
- s = r(`${Td}Delay`),
- c = r(`${Td}Duration`),
- d = Vw(s, c);
- let f = null,
- v = 0,
- p = 0;
- t === Ka
- ? a > 0 && ((f = Ka), (v = a), (p = i.length))
- : t === Td
- ? d > 0 && ((f = Td), (v = d), (p = c.length))
- : ((v = Math.max(a, d)),
- (f = v > 0 ? (a > d ? Ka : Td) : null),
- (p = f ? (f === Ka ? i.length : c.length) : 0));
- const m =
- f === Ka && /\b(transform|all)(,|$)/.test(r(`${Ka}Property`).toString());
- return { type: f, timeout: v, propCount: p, hasTransform: m };
- }
- function Vw(e, t) {
- for (; e.length < t.length; ) e = e.concat(e);
- return Math.max(...t.map((n, r) => Kw(n) + Kw(e[r])));
- }
- function Kw(e) {
- return Number(e.slice(0, -1).replace(',', '.')) * 1e3;
- }
- function wR() {
- return document.body.offsetHeight;
- }
- const CR = new WeakMap(),
- SR = new WeakMap(),
- _R = {
- name: 'TransitionGroup',
- props: gr({}, bI, { tag: String, moveClass: String }),
- setup(e, { slots: t }) {
- const n = _a(),
- r = Q_();
- let o, i;
- return (
- nR(() => {
- if (!o.length) return;
- const a = e.moveClass || `${e.name || 'v'}-move`;
- if (!RI(o[0].el, n.vnode.el, a)) return;
- o.forEach(CI), o.forEach(SI);
- const s = o.filter(_I);
- wR(),
- s.forEach(c => {
- const d = c.el,
- f = d.style;
- ha(d, a),
- (f.transform = f.webkitTransform = f.transitionDuration = '');
- const v = (d._moveCb = p => {
- (p && p.target !== d) ||
- ((!p || /transform$/.test(p.propertyName)) &&
- (d.removeEventListener('transitionend', v),
- (d._moveCb = null),
- Za(d, a)));
- });
- d.addEventListener('transitionend', v);
- });
- }),
- () => {
- const a = xn(e),
- s = yR(a);
- let c = a.tag || on;
- (o = i), (i = t.default ? L0(t.default()) : []);
- for (let d = 0; d < i.length; d++) {
- const f = i[d];
- f.key != null && pu(f, vu(f, s, r, n));
- }
- if (o)
- for (let d = 0; d < o.length; d++) {
- const f = o[d];
- pu(f, vu(f, s, r, n)), CR.set(f, f.el.getBoundingClientRect());
- }
- return er(c, null, i);
- }
- );
- }
- },
- wI = e => delete e.mode;
- _R.props;
- const K0 = _R;
- function CI(e) {
- const t = e.el;
- t._moveCb && t._moveCb(), t._enterCb && t._enterCb();
- }
- function SI(e) {
- SR.set(e, e.el.getBoundingClientRect());
- }
- function _I(e) {
- const t = CR.get(e),
- n = SR.get(e),
- r = t.left - n.left,
- o = t.top - n.top;
- if (r || o) {
- const i = e.el.style;
- return (
- (i.transform = i.webkitTransform = `translate(${r}px,${o}px)`),
- (i.transitionDuration = '0s'),
- e
- );
- }
- }
- function RI(e, t, n) {
- const r = e.cloneNode();
- e._vtc &&
- e._vtc.forEach(a => {
- a.split(/\s+/).forEach(s => s && r.classList.remove(s));
- }),
- n.split(/\s+/).forEach(a => a && r.classList.add(a)),
- (r.style.display = 'none');
- const o = t.nodeType === 1 ? t : t.parentNode;
- o.appendChild(r);
- const { hasTransform: i } = xR(r);
- return o.removeChild(r), i;
- }
- const vi = {
- beforeMount(e, { value: t }, { transition: n }) {
- (e._vod = e.style.display === 'none' ? '' : e.style.display),
- n && t ? n.beforeEnter(e) : $d(e, t);
- },
- mounted(e, { value: t }, { transition: n }) {
- n && t && n.enter(e);
- },
- updated(e, { value: t, oldValue: n }, { transition: r }) {
- !t != !n &&
- (r
- ? t
- ? (r.beforeEnter(e), $d(e, !0), r.enter(e))
- : r.leave(e, () => {
- $d(e, !1);
- })
- : $d(e, t));
- },
- beforeUnmount(e, { value: t }) {
- $d(e, t);
- }
- };
- function $d(e, t) {
- e.style.display = t ? e._vod : 'none';
- }
- const PI = gr({ patchProp: gI }, nI);
- let qw;
- function kI() {
- return qw || (qw = AM(PI));
- }
- const RR = (...e) => {
- const t = kI().createApp(...e),
- { mount: n } = t;
- return (
- (t.mount = r => {
- const o = TI(r);
- if (!o) return;
- const i = t._component;
- !tn(i) && !i.render && !i.template && (i.template = o.innerHTML),
- (o.innerHTML = '');
- const a = n(o, !1, o instanceof SVGElement);
- return (
- o instanceof Element &&
- (o.removeAttribute('v-cloak'), o.setAttribute('data-v-app', '')),
- a
- );
- }),
- t
- );
- };
- function TI(e) {
- return _r(e) ? document.querySelector(e) : e;
- }
- let qh = [];
- const PR = new WeakMap();
- function $I() {
- qh.forEach(e => e(...PR.get(e))), (qh = []);
- }
- function Oc(e, ...t) {
- PR.set(e, t),
- !qh.includes(e) && qh.push(e) === 1 && requestAnimationFrame($I);
- }
- function OI(e) {
- return e.nodeType === 9 ? null : e.parentNode;
- }
- function kR(e) {
- if (e === null) return null;
- const t = OI(e);
- if (t === null) return null;
- if (t.nodeType === 9) return document.documentElement;
- if (t.nodeType === 1) {
- const { overflow: n, overflowX: r, overflowY: o } = getComputedStyle(t);
- if (/(auto|scroll|overlay)/.test(n + o + r)) return t;
- }
- return kR(t);
- }
- function zI(e) {
- return typeof e == 'string'
- ? document.querySelector(e)
- : typeof e == 'function'
- ? e()
- : e;
- }
- function Io(e, t) {
- let { target: n } = e;
- for (; n; ) {
- if (n.dataset && n.dataset[t] !== void 0) return !0;
- n = n.parentElement;
- }
- return !1;
- }
- function ya(e) {
- return e.composedPath()[0] || null;
- }
- function AI(e) {
- if (typeof e == 'number') return { '': e.toString() };
- const t = {};
- return (
- e.split(/ +/).forEach(n => {
- if (n === '') return;
- const [r, o] = n.split(':');
- o === void 0 ? (t[''] = r) : (t[r] = o);
- }),
- t
- );
- }
- function Od(e, t) {
- var n;
- if (e == null) return;
- const r = AI(e);
- if (t === void 0) return r[''];
- if (typeof t == 'string')
- return (n = r[t]) !== null && n !== void 0 ? n : r[''];
- if (Array.isArray(t)) {
- for (let o = t.length - 1; o >= 0; --o) {
- const i = t[o];
- if (i in r) return r[i];
- }
- return r[''];
- } else {
- let o,
- i = -1;
- return (
- Object.keys(r).forEach(a => {
- const s = Number(a);
- !Number.isNaN(s) && t >= s && s >= i && ((i = s), (o = r[a]));
- }),
- o
- );
- }
- }
- function Lr(e) {
- return typeof e == 'string'
- ? e.endsWith('px')
- ? Number(e.slice(0, e.length - 2))
- : Number(e)
- : e;
- }
- function sr(e) {
- if (e != null)
- return typeof e == 'number' ? `${e}px` : e.endsWith('px') ? e : `${e}px`;
- }
- function Go(e, t) {
- const n = e.trim().split(/\s+/g),
- r = { top: n[0] };
- switch (n.length) {
- case 1:
- (r.right = n[0]), (r.bottom = n[0]), (r.left = n[0]);
- break;
- case 2:
- (r.right = n[1]), (r.left = n[1]), (r.bottom = n[0]);
- break;
- case 3:
- (r.right = n[1]), (r.bottom = n[2]), (r.left = n[1]);
- break;
- case 4:
- (r.right = n[1]), (r.bottom = n[2]), (r.left = n[3]);
- break;
- default:
- throw new Error('[seemly/getMargin]:' + e + ' is not a valid value.');
- }
- return t === void 0 ? r : r[t];
- }
- function EI(e, t) {
- const [n, r] = e.split(' ');
- return t ? (t === 'row' ? n : r) : { row: n, col: r || n };
- }
- const Yw = {
- 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'
- },
- Kc = '^\\s*',
- qc = '\\s*$',
- cs = '\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*',
- ds = '([0-9A-Fa-f])',
- us = '([0-9A-Fa-f]{2})',
- MI = new RegExp(`${Kc}rgb\\s*\\(${cs},${cs},${cs}\\)${qc}`),
- II = new RegExp(`${Kc}rgba\\s*\\(${cs},${cs},${cs},${cs}\\)${qc}`),
- DI = new RegExp(`${Kc}#${ds}${ds}${ds}${qc}`),
- FI = new RegExp(`${Kc}#${us}${us}${us}${qc}`),
- BI = new RegExp(`${Kc}#${ds}${ds}${ds}${ds}${qc}`),
- LI = new RegExp(`${Kc}#${us}${us}${us}${us}${qc}`);
- function mo(e) {
- return parseInt(e, 16);
- }
- function ul(e) {
- try {
- let t;
- if ((t = FI.exec(e))) return [mo(t[1]), mo(t[2]), mo(t[3]), 1];
- if ((t = MI.exec(e))) return [Wr(t[1]), Wr(t[5]), Wr(t[9]), 1];
- if ((t = II.exec(e))) return [Wr(t[1]), Wr(t[5]), Wr(t[9]), Zd(t[13])];
- if ((t = DI.exec(e)))
- return [mo(t[1] + t[1]), mo(t[2] + t[2]), mo(t[3] + t[3]), 1];
- if ((t = LI.exec(e)))
- return [mo(t[1]), mo(t[2]), mo(t[3]), Zd(mo(t[4]) / 255)];
- if ((t = BI.exec(e)))
- return [
- mo(t[1] + t[1]),
- mo(t[2] + t[2]),
- mo(t[3] + t[3]),
- Zd(mo(t[4] + t[4]) / 255)
- ];
- if (e in Yw) return ul(Yw[e]);
- throw new Error(`[seemly/rgba]: Invalid color value ${e}.`);
- } catch (t) {
- throw t;
- }
- }
- function NI(e) {
- return e > 1 ? 1 : e < 0 ? 0 : e;
- }
- function Um(e, t, n, r) {
- return `rgba(${Wr(e)}, ${Wr(t)}, ${Wr(n)}, ${NI(r)})`;
- }
- function wg(e, t, n, r, o) {
- return Wr((e * t * (1 - r) + n * r) / o);
- }
- function At(e, t) {
- Array.isArray(e) || (e = ul(e)), Array.isArray(t) || (t = ul(t));
- const n = e[3],
- r = t[3],
- o = Zd(n + r - n * r);
- return Um(
- wg(e[0], n, t[0], r, o),
- wg(e[1], n, t[1], r, o),
- wg(e[2], n, t[2], r, o),
- o
- );
- }
- function zt(e, t) {
- const [n, r, o, i = 1] = Array.isArray(e) ? e : ul(e);
- return t.alpha ? Um(n, r, o, t.alpha) : Um(n, r, o, i);
- }
- function oh(e, t) {
- const [n, r, o, i = 1] = Array.isArray(e) ? e : ul(e),
- { lightness: a = 1, alpha: s = 1 } = t;
- return HI([n * a, r * a, o * a, i * s]);
- }
- function Zd(e) {
- const t = Math.round(Number(e) * 100) / 100;
- return t > 1 ? 1 : t < 0 ? 0 : t;
- }
- function Wr(e) {
- const t = Math.round(Number(e));
- return t > 255 ? 255 : t < 0 ? 0 : t;
- }
- function HI(e) {
- const [t, n, r] = e;
- return 3 in e
- ? `rgba(${Wr(t)}, ${Wr(n)}, ${Wr(r)}, ${Zd(e[3])})`
- : `rgba(${Wr(t)}, ${Wr(n)}, ${Wr(r)}, 1)`;
- }
- function pi(e = 8) {
- return Math.random()
- .toString(16)
- .slice(2, 2 + e);
- }
- function TR(e, t) {
- const n = [];
- for (let r = 0; r < e; ++r) n.push(t);
- return n;
- }
- function Fu(e, t = 'default', n = []) {
- const o = e.$slots[t];
- return o === void 0 ? n : o();
- }
- function Gw(e, t = 'default', n = []) {
- const { children: r } = e;
- if (r !== null && typeof r == 'object' && !Array.isArray(r)) {
- const o = r[t];
- if (typeof o == 'function') return o();
- }
- return n;
- }
- function fi(e, t = [], n) {
- const r = {};
- return (
- t.forEach(o => {
- r[o] = e[o];
- }),
- Object.assign(r, n)
- );
- }
- function Yc(e, t = [], n) {
- const r = {};
- return (
- Object.getOwnPropertyNames(e).forEach(i => {
- t.includes(i) || (r[i] = e[i]);
- }),
- Object.assign(r, n)
- );
- }
- function hi(e, t = !0, n = []) {
- return (
- e.forEach(r => {
- if (r !== null) {
- if (typeof r != 'object') {
- (typeof r == 'string' || typeof r == 'number') &&
- n.push(yu(String(r)));
- return;
- }
- if (Array.isArray(r)) {
- hi(r, t, n);
- return;
- }
- if (r.type === on) {
- if (r.children === null) return;
- Array.isArray(r.children) && hi(r.children, t, n);
- } else r.type !== Eo && n.push(r);
- }
- }),
- n
- );
- }
- function ze(e, ...t) {
- if (Array.isArray(e)) e.forEach(n => ze(n, ...t));
- else return e(...t);
- }
- function Vi(e) {
- return Object.keys(e);
- }
- const _n = (e, ...t) =>
- typeof e == 'function'
- ? e(...t)
- : typeof e == 'string'
- ? yu(e)
- : typeof e == 'number'
- ? yu(String(e))
- : null;
- function Do(e, t) {
- console.error(`[naive/${e}]: ${t}`);
- }
- function io(e, t) {
- throw new Error(`[naive/${e}]: ${t}`);
- }
- function Xw(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 $R(e) {
- switch (typeof e) {
- case 'string':
- return e || void 0;
- case 'number':
- return String(e);
- default:
- return;
- }
- }
- function Wm(e, t = 'default', n = void 0) {
- const r = e[t];
- if (!r) return Do('getFirstSlotVNode', `slot[${t}] is empty`), null;
- const o = hi(r(n));
- return o.length === 1
- ? o[0]
- : (Do('getFirstSlotVNode', `slot[${t}] should have exactly one child`),
- null);
- }
- function OR(e) {
- return typeof e == 'string' ? `s-${e}` : `n-${e}`;
- }
- function zR(e) {
- return t => {
- t ? (e.value = t.$el) : (e.value = null);
- };
- }
- function Bu(e) {
- return e.some(t =>
- bu(t) ? !(t.type === Eo || (t.type === on && !Bu(t.children))) : !0
- )
- ? e
- : null;
- }
- function Kt(e, t) {
- return (e && Bu(e())) || t();
- }
- function jI(e, t, n) {
- return (e && Bu(e(t))) || n(t);
- }
- function cn(e, t) {
- const n = e && Bu(e());
- return t(n || null);
- }
- function ps(e) {
- return !(e && Bu(e()));
- }
- function Qd(e) {
- const t = e.filter(n => n !== void 0);
- if (t.length !== 0)
- return t.length === 1
- ? t[0]
- : n => {
- e.forEach(r => {
- r && r(n);
- });
- };
- }
- function UI(e) {
- var t;
- const n =
- (t = e.dirs) === null || t === void 0
- ? void 0
- : t.find(({ dir: r }) => r === vi);
- return !!(n && n.value === !1);
- }
- const Vm = Re({
- render() {
- var e, t;
- return (t = (e = this.$slots).default) === null || t === void 0
- ? void 0
- : t.call(e);
- }
- }),
- WI = /^(\d|\.)+$/,
- Zw = /(\d|\.)+/;
- function vn(e, { c: t = 1, offset: n = 0, attachPx: r = !0 } = {}) {
- if (typeof e == 'number') {
- const o = (e + n) * t;
- return o === 0 ? '0' : `${o}px`;
- } else if (typeof e == 'string')
- if (WI.test(e)) {
- const o = (Number(e) + n) * t;
- return r ? (o === 0 ? '0' : `${o}px`) : `${o}`;
- } else {
- const o = Zw.exec(e);
- return o ? e.replace(Zw, String((Number(o[0]) + n) * t)) : e;
- }
- return e;
- }
- function zc(e) {
- return e.replace(/#|\(|\)|,|\s/g, '_');
- }
- function VI(e) {
- let t = 0;
- for (let n = 0; n < e.length; ++n) e[n] === '&' && ++t;
- return t;
- }
- const AR = /\s*,(?![^(]*\))\s*/g,
- KI = /\s+/g;
- function qI(e, t) {
- const n = [];
- return (
- t.split(AR).forEach(r => {
- let o = VI(r);
- if (o) {
- if (o === 1) {
- e.forEach(a => {
- n.push(r.replace('&', a));
- });
- return;
- }
- } else {
- e.forEach(a => {
- n.push((a && a + ' ') + r);
- });
- return;
- }
- let i = [r];
- for (; o--; ) {
- const a = [];
- i.forEach(s => {
- e.forEach(c => {
- a.push(s.replace('&', c));
- });
- }),
- (i = a);
- }
- i.forEach(a => n.push(a));
- }),
- n
- );
- }
- function YI(e, t) {
- const n = [];
- return (
- t.split(AR).forEach(r => {
- e.forEach(o => {
- n.push((o && o + ' ') + r);
- });
- }),
- n
- );
- }
- function GI(e) {
- let t = [''];
- return (
- e.forEach(n => {
- (n = n && n.trim()),
- n && (n.includes('&') ? (t = qI(t, n)) : (t = YI(t, n)));
- }),
- t.join(', ').replace(KI, ' ')
- );
- }
- function Qw(e) {
- if (!e) return;
- const t = e.parentElement;
- t && t.removeChild(e);
- }
- function Dv(e) {
- return document.querySelector(`style[cssr-id="${e}"]`);
- }
- function XI(e) {
- const t = document.createElement('style');
- return t.setAttribute('cssr-id', e), t;
- }
- function ih(e) {
- return e ? /^\s*@(s|m)/.test(e) : !1;
- }
- const ZI = /[A-Z]/g;
- function ER(e) {
- return e.replace(ZI, t => '-' + t.toLowerCase());
- }
- function QI(e, t = ' ') {
- return typeof e == 'object' && e !== null
- ? ` {
- ` +
- Object.entries(e).map(n => t + ` ${ER(n[0])}: ${n[1]};`).join(`
- `) +
- `
- ` +
- t +
- '}'
- : `: ${e};`;
- }
- function JI(e, t, n) {
- return typeof e == 'function' ? e({ context: t.context, props: n }) : e;
- }
- function Jw(e, t, n, r) {
- if (!t) return '';
- const o = JI(t, n, r);
- if (!o) return '';
- if (typeof o == 'string')
- return `${e} {
- ${o}
- }`;
- const i = Object.keys(o);
- if (i.length === 0)
- return n.config.keepEmptyBlock
- ? e +
- ` {
- }`
- : '';
- const a = e ? [e + ' {'] : [];
- return (
- i.forEach(s => {
- const c = o[s];
- if (s === 'raw') {
- a.push(
- `
- ` +
- c +
- `
- `
- );
- return;
- }
- (s = ER(s)), c != null && a.push(` ${s}${QI(c)}`);
- }),
- e && a.push('}'),
- a.join(`
- `)
- );
- }
- function Km(e, t, n) {
- e &&
- e.forEach(r => {
- if (Array.isArray(r)) Km(r, t, n);
- else if (typeof r == 'function') {
- const o = r(t);
- Array.isArray(o) ? Km(o, t, n) : o && n(o);
- } else r && n(r);
- });
- }
- function MR(e, t, n, r, o, i) {
- const a = e.$;
- let s = '';
- if (!a || typeof a == 'string') ih(a) ? (s = a) : t.push(a);
- else if (typeof a == 'function') {
- const f = a({ context: r.context, props: o });
- ih(f) ? (s = f) : t.push(f);
- } else if ((a.before && a.before(r.context), !a.$ || typeof a.$ == 'string'))
- ih(a.$) ? (s = a.$) : t.push(a.$);
- else if (a.$) {
- const f = a.$({ context: r.context, props: o });
- ih(f) ? (s = f) : t.push(f);
- }
- const c = GI(t),
- d = Jw(c, e.props, r, o);
- s
- ? (n.push(`${s} {`),
- i &&
- d &&
- i.insertRule(`${s} {
- ${d}
- }
- `))
- : (i && d && i.insertRule(d), !i && d.length && n.push(d)),
- e.children &&
- Km(e.children, { context: r.context, props: o }, f => {
- if (typeof f == 'string') {
- const v = Jw(c, { raw: f }, r, o);
- i ? i.insertRule(v) : n.push(v);
- } else MR(f, t, n, r, o, i);
- }),
- t.pop(),
- s && n.push('}'),
- a && a.after && a.after(r.context);
- }
- function IR(e, t, n, r = !1) {
- const o = [];
- return (
- MR(e, [], o, t, n, r ? e.instance.__styleSheet : void 0),
- r
- ? ''
- : o.join(`
- `)
- );
- }
- function wu(e) {
- for (var t = 0, n, r = 0, o = e.length; o >= 4; ++r, o -= 4)
- (n =
- (e.charCodeAt(r) & 255) |
- ((e.charCodeAt(++r) & 255) << 8) |
- ((e.charCodeAt(++r) & 255) << 16) |
- ((e.charCodeAt(++r) & 255) << 24)),
- (n = (n & 65535) * 1540483477 + (((n >>> 16) * 59797) << 16)),
- (n ^= n >>> 24),
- (t =
- ((n & 65535) * 1540483477 + (((n >>> 16) * 59797) << 16)) ^
- ((t & 65535) * 1540483477 + (((t >>> 16) * 59797) << 16)));
- switch (o) {
- case 3:
- t ^= (e.charCodeAt(r + 2) & 255) << 16;
- case 2:
- t ^= (e.charCodeAt(r + 1) & 255) << 8;
- case 1:
- (t ^= e.charCodeAt(r) & 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 < 'u' && (window.__cssrContext = {});
- function eD(e, t, n) {
- const { els: r } = t;
- if (n === void 0) r.forEach(Qw), (t.els = []);
- else {
- const o = Dv(n);
- o && r.includes(o) && (Qw(o), (t.els = r.filter(i => i !== o)));
- }
- }
- function eC(e, t) {
- e.push(t);
- }
- function tD(e, t, n, r, o, i, a, s, c) {
- if (i && !c) {
- if (n === void 0) {
- console.error('[css-render/mount]: `id` is required in `silent` mode.');
- return;
- }
- const p = window.__cssrContext;
- p[n] || ((p[n] = !0), IR(t, e, r, i));
- return;
- }
- let d;
- if ((n === void 0 && ((d = t.render(r)), (n = wu(d))), c)) {
- c.adapter(n, d != null ? d : t.render(r));
- return;
- }
- const f = Dv(n);
- if (f !== null && !a) return f;
- const v = f != null ? f : XI(n);
- if ((d === void 0 && (d = t.render(r)), (v.textContent = d), f !== null))
- return f;
- if (s) {
- const p = document.head.querySelector(`meta[name="${s}"]`);
- if (p) return document.head.insertBefore(v, p), eC(t.els, v), v;
- }
- return (
- o
- ? document.head.insertBefore(
- v,
- document.head.querySelector('style, link')
- )
- : document.head.appendChild(v),
- eC(t.els, v),
- v
- );
- }
- function nD(e) {
- return IR(this, this.instance, e);
- }
- function rD(e = {}) {
- const {
- id: t,
- ssr: n,
- props: r,
- head: o = !1,
- silent: i = !1,
- force: a = !1,
- anchorMetaName: s
- } = e;
- return tD(this.instance, this, t, r, o, i, a, s, n);
- }
- function oD(e = {}) {
- const { id: t } = e;
- eD(this.instance, this, t);
- }
- const ah = function (e, t, n, r) {
- return {
- instance: e,
- $: t,
- props: n,
- children: r,
- els: [],
- render: nD,
- mount: rD,
- unmount: oD
- };
- },
- iD = function (e, t, n, r) {
- return Array.isArray(t)
- ? ah(e, { $: null }, null, t)
- : Array.isArray(n)
- ? ah(e, t, null, n)
- : Array.isArray(r)
- ? ah(e, t, n, r)
- : ah(e, t, n, null);
- };
- function DR(e = {}) {
- let t = null;
- const n = {
- c: (...r) => iD(n, ...r),
- use: (r, ...o) => r.install(n, ...o),
- find: Dv,
- context: {},
- config: e,
- get __styleSheet() {
- if (!t) {
- const r = document.createElement('style');
- return (
- document.head.appendChild(r),
- (t = document.styleSheets[document.styleSheets.length - 1]),
- t
- );
- }
- return t;
- }
- };
- return n;
- }
- function aD(e, t) {
- if (e === void 0) return !1;
- if (t) {
- const {
- context: { ids: n }
- } = t;
- return n.has(e);
- }
- return Dv(e) !== null;
- }
- function lD(e) {
- let t = '.',
- n = '__',
- r = '--',
- o;
- if (e) {
- let g = e.blockPrefix;
- g && (t = g),
- (g = e.elementPrefix),
- g && (n = g),
- (g = e.modifierPrefix),
- g && (r = g);
- }
- const i = {
- install(g) {
- o = g.c;
- const w = g.context;
- (w.bem = {}), (w.bem.b = null), (w.bem.els = null);
- }
- };
- function a(g) {
- let w, x;
- return {
- before(y) {
- (w = y.bem.b), (x = y.bem.els), (y.bem.els = null);
- },
- after(y) {
- (y.bem.b = w), (y.bem.els = x);
- },
- $({ context: y, props: C }) {
- return (
- (g = typeof g == 'string' ? g : g({ context: y, props: C })),
- (y.bem.b = g),
- `${(C == null ? void 0 : C.bPrefix) || t}${y.bem.b}`
- );
- }
- };
- }
- function s(g) {
- let w;
- return {
- before(x) {
- w = x.bem.els;
- },
- after(x) {
- x.bem.els = w;
- },
- $({ context: x, props: y }) {
- return (
- (g = typeof g == 'string' ? g : g({ context: x, props: y })),
- (x.bem.els = g.split(',').map(C => C.trim())),
- x.bem.els
- .map(
- C => `${(y == null ? void 0 : y.bPrefix) || t}${x.bem.b}${n}${C}`
- )
- .join(', ')
- );
- }
- };
- }
- function c(g) {
- return {
- $({ context: w, props: x }) {
- g = typeof g == 'string' ? g : g({ context: w, props: x });
- const y = g.split(',').map(S => S.trim());
- function C(S) {
- return y
- .map(
- _ =>
- `&${(x == null ? void 0 : x.bPrefix) || t}${w.bem.b}${
- S !== void 0 ? `${n}${S}` : ''
- }${r}${_}`
- )
- .join(', ');
- }
- const R = w.bem.els;
- return R !== null ? C(R[0]) : C();
- }
- };
- }
- function d(g) {
- return {
- $({ context: w, props: x }) {
- g = typeof g == 'string' ? g : g({ context: w, props: x });
- const y = w.bem.els;
- return `&:not(${(x == null ? void 0 : x.bPrefix) || t}${w.bem.b}${
- y !== null && y.length > 0 ? `${n}${y[0]}` : ''
- }${r}${g})`;
- }
- };
- }
- return (
- Object.assign(i, {
- cB: (...g) => o(a(g[0]), g[1], g[2]),
- cE: (...g) => o(s(g[0]), g[1], g[2]),
- cM: (...g) => o(c(g[0]), g[1], g[2]),
- cNotM: (...g) => o(d(g[0]), g[1], g[2])
- }),
- i
- );
- }
- function Oe(e, t) {
- return e + (t === 'default' ? '' : t.replace(/^[a-z]/, n => n.toUpperCase()));
- }
- Oe('abc', 'def');
- const sD = 'n',
- Cu = `.${sD}-`,
- cD = '__',
- dD = '--',
- FR = DR(),
- BR = lD({ blockPrefix: Cu, elementPrefix: cD, modifierPrefix: dD });
- FR.use(BR);
- const { c: F, find: sle } = FR,
- { cB: O, cE: V, cM: U, cNotM: jt } = BR;
- function xl(e) {
- return F(
- ({ props: { bPrefix: t } }) => `${t || Cu}modal, ${t || Cu}drawer`,
- [e]
- );
- }
- function Ps(e) {
- return F(({ props: { bPrefix: t } }) => `${t || Cu}popover`, [e]);
- }
- function LR(e) {
- return F(({ props: { bPrefix: t } }) => `&${t || Cu}modal`, e);
- }
- const uD = (...e) => F('>', [O(...e)]);
- let Cg;
- function fD() {
- return (
- Cg === void 0 &&
- (Cg =
- navigator.userAgent.includes('Node.js') ||
- navigator.userAgent.includes('jsdom')),
- Cg
- );
- }
- const Fo = typeof document < 'u' && typeof window < 'u',
- NR = new WeakSet();
- function Su(e) {
- NR.add(e);
- }
- function HR(e) {
- return !NR.has(e);
- }
- function hD(e, t, n) {
- var r;
- const o = Ze(e, null);
- if (o === null) return;
- const i = (r = _a()) === null || r === void 0 ? void 0 : r.proxy;
- $t(n, a),
- a(n.value),
- qn(() => {
- a(void 0, n.value);
- });
- function a(d, f) {
- const v = o[t];
- f !== void 0 && s(v, f), d !== void 0 && c(v, d);
- }
- function s(d, f) {
- d[f] || (d[f] = []),
- d[f].splice(
- d[f].findIndex(v => v === i),
- 1
- );
- }
- function c(d, f) {
- d[f] || (d[f] = []), ~d[f].findIndex(v => v === i) || d[f].push(i);
- }
- }
- function vD(e, t, n) {
- if (!t) return e;
- const r = Z(e.value);
- let o = null;
- return (
- $t(e, i => {
- o !== null && window.clearTimeout(o),
- i === !0
- ? n && !n.value
- ? (r.value = !0)
- : (o = window.setTimeout(() => {
- r.value = !0;
- }, t))
- : (r.value = !1);
- }),
- r
- );
- }
- function pD(e) {
- const t = Z(!!e.value);
- if (t.value) return Wi(t);
- const n = $t(e, r => {
- r && ((t.value = !0), n());
- });
- return Wi(t);
- }
- function kt(e) {
- const t = I(e),
- n = Z(t.value);
- return (
- $t(t, r => {
- n.value = r;
- }),
- typeof e == 'function'
- ? n
- : {
- __v_isRef: !0,
- get value() {
- return n.value;
- },
- set value(r) {
- e.set(r);
- }
- }
- );
- }
- function q0() {
- return _a() !== null;
- }
- const Fv = typeof window < 'u';
- let Sc, Jd;
- const gD = () => {
- var e, t;
- (Sc = Fv
- ? (t = (e = document) === null || e === void 0 ? void 0 : e.fonts) ===
- null || t === void 0
- ? void 0
- : t.ready
- : void 0),
- (Jd = !1),
- Sc !== void 0
- ? Sc.then(() => {
- Jd = !0;
- })
- : (Jd = !0);
- };
- gD();
- function jR(e) {
- if (Jd) return;
- let t = !1;
- Hn(() => {
- Jd ||
- Sc == null ||
- Sc.then(() => {
- t || e();
- });
- }),
- qn(() => {
- t = !0;
- });
- }
- function Eh(e) {
- return e.composedPath()[0];
- }
- const mD = { mousemoveoutside: new WeakMap(), clickoutside: new WeakMap() };
- function bD(e, t, n) {
- if (e === 'mousemoveoutside') {
- const r = o => {
- t.contains(Eh(o)) || n(o);
- };
- return { mousemove: r, touchstart: r };
- } else if (e === 'clickoutside') {
- let r = !1;
- const o = a => {
- r = !t.contains(Eh(a));
- },
- i = a => {
- r && (t.contains(Eh(a)) || n(a));
- };
- return { mousedown: o, mouseup: i, touchstart: o, touchend: i };
- }
- return (
- console.error(
- `[evtd/create-trap-handler]: name \`${e}\` is invalid. This could be a bug of evtd.`
- ),
- {}
- );
- }
- function UR(e, t, n) {
- const r = mD[e];
- let o = r.get(t);
- o === void 0 && r.set(t, (o = new WeakMap()));
- let i = o.get(n);
- return i === void 0 && o.set(n, (i = bD(e, t, n))), i;
- }
- function yD(e, t, n, r) {
- if (e === 'mousemoveoutside' || e === 'clickoutside') {
- const o = UR(e, t, n);
- return (
- Object.keys(o).forEach(i => {
- Tn(i, document, o[i], r);
- }),
- !0
- );
- }
- return !1;
- }
- function xD(e, t, n, r) {
- if (e === 'mousemoveoutside' || e === 'clickoutside') {
- const o = UR(e, t, n);
- return (
- Object.keys(o).forEach(i => {
- pn(i, document, o[i], r);
- }),
- !0
- );
- }
- return !1;
- }
- function wD() {
- if (typeof window > 'u') return { on: () => {}, off: () => {} };
- const e = new WeakMap(),
- t = new WeakMap();
- function n() {
- e.set(this, !0);
- }
- function r() {
- e.set(this, !0), t.set(this, !0);
- }
- function o(T, A, z) {
- const k = T[A];
- return (
- (T[A] = function () {
- return z.apply(T, arguments), k.apply(T, arguments);
- }),
- T
- );
- }
- function i(T, A) {
- T[A] = Event.prototype[A];
- }
- const a = new WeakMap(),
- s = Object.getOwnPropertyDescriptor(Event.prototype, 'currentTarget');
- function c() {
- var T;
- return (T = a.get(this)) !== null && T !== void 0 ? T : null;
- }
- function d(T, A) {
- s !== void 0 &&
- Object.defineProperty(T, 'currentTarget', {
- configurable: !0,
- enumerable: !0,
- get: A != null ? A : s.get
- });
- }
- const f = { bubble: {}, capture: {} },
- v = {};
- function p() {
- const T = function (A) {
- const { type: z, eventPhase: k, bubbles: M } = A,
- E = Eh(A);
- if (k === 2) return;
- const D = k === 1 ? 'capture' : 'bubble';
- let L = E;
- const j = [];
- for (; L === null && (L = window), j.push(L), L !== window; )
- L = L.parentNode || null;
- const B = f.capture[z],
- q = f.bubble[z];
- if (
- (o(A, 'stopPropagation', n),
- o(A, 'stopImmediatePropagation', r),
- d(A, c),
- D === 'capture')
- ) {
- if (B === void 0) return;
- for (let G = j.length - 1; G >= 0 && !e.has(A); --G) {
- const ne = j[G],
- X = B.get(ne);
- if (X !== void 0) {
- a.set(A, ne);
- for (const J of X) {
- if (t.has(A)) break;
- J(A);
- }
- }
- if (G === 0 && !M && q !== void 0) {
- const J = q.get(ne);
- if (J !== void 0)
- for (const re of J) {
- if (t.has(A)) break;
- re(A);
- }
- }
- }
- } else if (D === 'bubble') {
- if (q === void 0) return;
- for (let G = 0; G < j.length && !e.has(A); ++G) {
- const ne = j[G],
- X = q.get(ne);
- if (X !== void 0) {
- a.set(A, ne);
- for (const J of X) {
- if (t.has(A)) break;
- J(A);
- }
- }
- }
- }
- i(A, 'stopPropagation'), i(A, 'stopImmediatePropagation'), d(A);
- };
- return (T.displayName = 'evtdUnifiedHandler'), T;
- }
- function m() {
- const T = function (A) {
- const { type: z, eventPhase: k } = A;
- if (k !== 2) return;
- const M = v[z];
- M !== void 0 && M.forEach(E => E(A));
- };
- return (T.displayName = 'evtdUnifiedWindowEventHandler'), T;
- }
- const g = p(),
- w = m();
- function x(T, A) {
- const z = f[T];
- return (
- z[A] === void 0 &&
- ((z[A] = new Map()), window.addEventListener(A, g, T === 'capture')),
- z[A]
- );
- }
- function y(T) {
- return (
- v[T] === void 0 && ((v[T] = new Set()), window.addEventListener(T, w)),
- v[T]
- );
- }
- function C(T, A) {
- let z = T.get(A);
- return z === void 0 && T.set(A, (z = new Set())), z;
- }
- function R(T, A, z, k) {
- const M = f[A][z];
- if (M !== void 0) {
- const E = M.get(T);
- if (E !== void 0 && E.has(k)) return !0;
- }
- return !1;
- }
- function S(T, A) {
- const z = v[T];
- return !!(z !== void 0 && z.has(A));
- }
- function _(T, A, z, k) {
- let M;
- if (
- (typeof k == 'object' && k.once === !0
- ? (M = B => {
- P(T, A, M, k), z(B);
- })
- : (M = z),
- yD(T, A, M, k))
- )
- return;
- const D =
- k === !0 || (typeof k == 'object' && k.capture === !0)
- ? 'capture'
- : 'bubble',
- L = x(D, T),
- j = C(L, A);
- if ((j.has(M) || j.add(M), A === window)) {
- const B = y(T);
- B.has(M) || B.add(M);
- }
- }
- function P(T, A, z, k) {
- if (xD(T, A, z, k)) return;
- const E = k === !0 || (typeof k == 'object' && k.capture === !0),
- D = E ? 'capture' : 'bubble',
- L = x(D, T),
- j = C(L, A);
- if (A === window && !R(A, E ? 'bubble' : 'capture', T, z) && S(T, z)) {
- const q = v[T];
- q.delete(z),
- q.size === 0 && (window.removeEventListener(T, w), (v[T] = void 0));
- }
- j.has(z) && j.delete(z),
- j.size === 0 && L.delete(A),
- L.size === 0 &&
- (window.removeEventListener(T, g, D === 'capture'), (f[D][T] = void 0));
- }
- return { on: _, off: P };
- }
- const { on: Tn, off: pn } = wD(),
- Nd = Z(null);
- function tC(e) {
- if (e.clientX > 0 || e.clientY > 0) Nd.value = { x: e.clientX, y: e.clientY };
- else {
- const { target: t } = e;
- if (t instanceof Element) {
- const {
- left: n,
- top: r,
- width: o,
- height: i
- } = t.getBoundingClientRect();
- n > 0 || r > 0
- ? (Nd.value = { x: n + o / 2, y: r + i / 2 })
- : (Nd.value = { x: 0, y: 0 });
- } else Nd.value = null;
- }
- }
- let lh = 0,
- nC = !0;
- function WR() {
- if (!Fv) return Wi(Z(null));
- lh === 0 && Tn('click', document, tC, !0);
- const e = () => {
- lh += 1;
- };
- return (
- nC && (nC = q0())
- ? (yl(e),
- qn(() => {
- (lh -= 1), lh === 0 && pn('click', document, tC, !0);
- }))
- : e(),
- Wi(Nd)
- );
- }
- const CD = Z(void 0);
- let sh = 0;
- function rC() {
- CD.value = Date.now();
- }
- let oC = !0;
- function VR(e) {
- if (!Fv) return Wi(Z(!1));
- const t = Z(!1);
- let n = null;
- function r() {
- n !== null && window.clearTimeout(n);
- }
- function o() {
- r(),
- (t.value = !0),
- (n = window.setTimeout(() => {
- t.value = !1;
- }, e));
- }
- sh === 0 && Tn('click', window, rC, !0);
- const i = () => {
- (sh += 1), Tn('click', window, o, !0);
- };
- return (
- oC && (oC = q0())
- ? (yl(i),
- qn(() => {
- (sh -= 1),
- sh === 0 && pn('click', window, rC, !0),
- pn('click', window, o, !0),
- r();
- }))
- : i(),
- Wi(t)
- );
- }
- function An(e, t) {
- return (
- $t(e, n => {
- n !== void 0 && (t.value = n);
- }),
- I(() => (e.value === void 0 ? t.value : e.value))
- );
- }
- function yi() {
- const e = Z(!1);
- return (
- Hn(() => {
- e.value = !0;
- }),
- Wi(e)
- );
- }
- function xs(e, t) {
- return I(() => {
- for (const n of t) if (e[n] !== void 0) return e[n];
- return e[t[t.length - 1]];
- });
- }
- const SD =
- (typeof window > 'u'
- ? !1
- : /iPad|iPhone|iPod/.test(navigator.platform) ||
- (navigator.platform === 'MacIntel' && navigator.maxTouchPoints > 1)) &&
- !window.MSStream;
- function _D() {
- return SD;
- }
- const RD = { xs: 0, s: 640, m: 1024, l: 1280, xl: 1536, '2xl': 1920 };
- function PD(e) {
- return `(min-width: ${e}px)`;
- }
- const zd = {};
- function kD(e = RD) {
- if (!Fv) return I(() => []);
- if (typeof window.matchMedia != 'function') return I(() => []);
- const t = Z({}),
- n = Object.keys(e),
- r = (o, i) => {
- o.matches ? (t.value[i] = !0) : (t.value[i] = !1);
- };
- return (
- n.forEach(o => {
- const i = e[o];
- let a, s;
- zd[i] === void 0
- ? ((a = window.matchMedia(PD(i))),
- a.addEventListener
- ? a.addEventListener('change', c => {
- s.forEach(d => {
- d(c, o);
- });
- })
- : a.addListener &&
- a.addListener(c => {
- s.forEach(d => {
- d(c, o);
- });
- }),
- (s = new Set()),
- (zd[i] = { mql: a, cbs: s }))
- : ((a = zd[i].mql), (s = zd[i].cbs)),
- s.add(r),
- a.matches &&
- s.forEach(c => {
- c(a, o);
- });
- }),
- qn(() => {
- n.forEach(o => {
- const { cbs: i } = zd[e[o]];
- i.has(r) && i.delete(r);
- });
- }),
- I(() => {
- const { value: o } = t;
- return n.filter(i => o[i]);
- })
- );
- }
- function Y0(e = {}, t) {
- const n = Xi({ ctrl: !1, command: !1, win: !1, shift: !1, tab: !1 }),
- { keydown: r, keyup: o } = e,
- i = c => {
- switch (c.key) {
- case 'Control':
- n.ctrl = !0;
- break;
- case 'Meta':
- (n.command = !0), (n.win = !0);
- break;
- case 'Shift':
- n.shift = !0;
- break;
- case 'Tab':
- n.tab = !0;
- break;
- }
- r !== void 0 &&
- Object.keys(r).forEach(d => {
- if (d !== c.key) return;
- const f = r[d];
- if (typeof f == 'function') f(c);
- else {
- const { stop: v = !1, prevent: p = !1 } = f;
- v && c.stopPropagation(), p && c.preventDefault(), f.handler(c);
- }
- });
- },
- a = c => {
- switch (c.key) {
- case 'Control':
- n.ctrl = !1;
- break;
- case 'Meta':
- (n.command = !1), (n.win = !1);
- break;
- case 'Shift':
- n.shift = !1;
- break;
- case 'Tab':
- n.tab = !1;
- break;
- }
- o !== void 0 &&
- Object.keys(o).forEach(d => {
- if (d !== c.key) return;
- const f = o[d];
- if (typeof f == 'function') f(c);
- else {
- const { stop: v = !1, prevent: p = !1 } = f;
- v && c.stopPropagation(), p && c.preventDefault(), f.handler(c);
- }
- });
- },
- s = () => {
- (t === void 0 || t.value) &&
- (Tn('keydown', document, i), Tn('keyup', document, a)),
- t !== void 0 &&
- $t(t, c => {
- c
- ? (Tn('keydown', document, i), Tn('keyup', document, a))
- : (pn('keydown', document, i), pn('keyup', document, a));
- });
- };
- return (
- q0()
- ? (yl(s),
- qn(() => {
- (t === void 0 || t.value) &&
- (pn('keydown', document, i), pn('keyup', document, a));
- }))
- : s(),
- Wi(n)
- );
- }
- const G0 = 'n-internal-select-menu',
- KR = 'n-internal-select-menu-body',
- Lu = 'n-modal-body',
- qR = 'n-modal',
- Nu = 'n-drawer-body',
- X0 = 'n-drawer',
- Gc = 'n-popover-body',
- YR = '__disabled__';
- function Yr(e) {
- const t = Ze(Lu, null),
- n = Ze(Nu, null),
- r = Ze(Gc, null),
- o = Ze(KR, null),
- i = Z();
- if (typeof document < 'u') {
- i.value = document.fullscreenElement;
- const a = () => {
- i.value = document.fullscreenElement;
- };
- Hn(() => {
- Tn('fullscreenchange', document, a);
- }),
- qn(() => {
- pn('fullscreenchange', document, a);
- });
- }
- return kt(() => {
- var a;
- const { to: s } = e;
- return s !== void 0
- ? s === !1
- ? YR
- : s === !0
- ? i.value || 'body'
- : s
- : t != null && t.value
- ? (a = t.value.$el) !== null && a !== void 0
- ? a
- : t.value
- : n != null && n.value
- ? n.value
- : r != null && r.value
- ? r.value
- : o != null && o.value
- ? o.value
- : s != null
- ? s
- : i.value || 'body';
- });
- }
- Yr.tdkey = YR;
- Yr.propTo = { type: [String, Object, Boolean], default: void 0 };
- let iC = !1;
- function TD() {
- if (
- Fo &&
- window.CSS &&
- !iC &&
- ((iC = !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 qm(e, t, n = 'default') {
- const r = t[n];
- if (r === void 0) throw new Error(`[vueuc/${e}]: slot[${n}] is empty.`);
- return r();
- }
- function Ym(e, t = !0, n = []) {
- return (
- e.forEach(r => {
- if (r !== null) {
- if (typeof r != 'object') {
- (typeof r == 'string' || typeof r == 'number') &&
- n.push(yu(String(r)));
- return;
- }
- if (Array.isArray(r)) {
- Ym(r, t, n);
- return;
- }
- if (r.type === on) {
- if (r.children === null) return;
- Array.isArray(r.children) && Ym(r.children, t, n);
- } else r.type !== Eo && n.push(r);
- }
- }),
- n
- );
- }
- function aC(e, t, n = 'default') {
- const r = t[n];
- if (r === void 0) throw new Error(`[vueuc/${e}]: slot[${n}] is empty.`);
- const o = Ym(r());
- if (o.length === 1) return o[0];
- throw new Error(`[vueuc/${e}]: slot[${n}] should have exactly one child.`);
- }
- let qa = null;
- function GR() {
- if (
- qa === null &&
- ((qa = document.getElementById('v-binder-view-measurer')), qa === null)
- ) {
- (qa = document.createElement('div')), (qa.id = 'v-binder-view-measurer');
- const { style: e } = qa;
- (e.position = 'fixed'),
- (e.left = '0'),
- (e.right = '0'),
- (e.top = '0'),
- (e.bottom = '0'),
- (e.pointerEvents = 'none'),
- (e.visibility = 'hidden'),
- document.body.appendChild(qa);
- }
- return qa.getBoundingClientRect();
- }
- function $D(e, t) {
- const n = GR();
- return {
- top: t,
- left: e,
- height: 0,
- width: 0,
- right: n.width - e,
- bottom: n.height - t
- };
- }
- function Sg(e) {
- const t = e.getBoundingClientRect(),
- n = GR();
- return {
- left: t.left - n.left,
- top: t.top - n.top,
- bottom: n.height + n.top - t.bottom,
- right: n.width + n.left - t.right,
- width: t.width,
- height: t.height
- };
- }
- function OD(e) {
- return e.nodeType === 9 ? null : e.parentNode;
- }
- function XR(e) {
- if (e === null) return null;
- const t = OD(e);
- if (t === null) return null;
- if (t.nodeType === 9) return document;
- if (t.nodeType === 1) {
- const { overflow: n, overflowX: r, overflowY: o } = getComputedStyle(t);
- if (/(auto|scroll|overlay)/.test(n + o + r)) return t;
- }
- return XR(t);
- }
- const zD = Re({
- name: 'Binder',
- props: {
- syncTargetWithParent: Boolean,
- syncTarget: { type: Boolean, default: !0 }
- },
- setup(e) {
- var t;
- Rt('VBinder', (t = _a()) === null || t === void 0 ? void 0 : t.proxy);
- const n = Ze('VBinder', null),
- r = Z(null),
- o = y => {
- (r.value = y), n && e.syncTargetWithParent && n.setTargetRef(y);
- };
- let i = [];
- const a = () => {
- let y = r.value;
- for (; (y = XR(y)), y !== null; ) i.push(y);
- for (const C of i) Tn('scroll', C, v, !0);
- },
- s = () => {
- for (const y of i) pn('scroll', y, v, !0);
- i = [];
- },
- c = new Set(),
- d = y => {
- c.size === 0 && a(), c.has(y) || c.add(y);
- },
- f = y => {
- c.has(y) && c.delete(y), c.size === 0 && s();
- },
- v = () => {
- Oc(p);
- },
- p = () => {
- c.forEach(y => y());
- },
- m = new Set(),
- g = y => {
- m.size === 0 && Tn('resize', window, x), m.has(y) || m.add(y);
- },
- w = y => {
- m.has(y) && m.delete(y), m.size === 0 && pn('resize', window, x);
- },
- x = () => {
- m.forEach(y => y());
- };
- return (
- qn(() => {
- pn('resize', window, x), s();
- }),
- {
- targetRef: r,
- setTargetRef: o,
- addScrollListener: d,
- removeScrollListener: f,
- addResizeListener: g,
- removeResizeListener: w
- }
- );
- },
- render() {
- return qm('binder', this.$slots);
- }
- }),
- Xc = zD,
- Zc = Re({
- name: 'Target',
- setup() {
- const { setTargetRef: e, syncTarget: t } = Ze('VBinder');
- return { syncTarget: t, setTargetDirective: { mounted: e, updated: e } };
- },
- render() {
- const { syncTarget: e, setTargetDirective: t } = this;
- return e
- ? Er(aC('follower', this.$slots), [[t]])
- : aC('follower', this.$slots);
- }
- }),
- ac = '@@mmoContext',
- AD = {
- mounted(e, { value: t }) {
- (e[ac] = { handler: void 0 }),
- typeof t == 'function' &&
- ((e[ac].handler = t), Tn('mousemoveoutside', e, t));
- },
- updated(e, { value: t }) {
- const n = e[ac];
- typeof t == 'function'
- ? n.handler
- ? n.handler !== t &&
- (pn('mousemoveoutside', e, n.handler),
- (n.handler = t),
- Tn('mousemoveoutside', e, t))
- : ((e[ac].handler = t), Tn('mousemoveoutside', e, t))
- : n.handler &&
- (pn('mousemoveoutside', e, n.handler), (n.handler = void 0));
- },
- unmounted(e) {
- const { handler: t } = e[ac];
- t && pn('mousemoveoutside', e, t), (e[ac].handler = void 0);
- }
- },
- ED = AD,
- lc = '@@coContext',
- MD = {
- mounted(e, { value: t, modifiers: n }) {
- (e[lc] = { handler: void 0 }),
- typeof t == 'function' &&
- ((e[lc].handler = t),
- Tn('clickoutside', e, t, { capture: n.capture }));
- },
- updated(e, { value: t, modifiers: n }) {
- const r = e[lc];
- typeof t == 'function'
- ? r.handler
- ? r.handler !== t &&
- (pn('clickoutside', e, r.handler, { capture: n.capture }),
- (r.handler = t),
- Tn('clickoutside', e, t, { capture: n.capture }))
- : ((e[lc].handler = t),
- Tn('clickoutside', e, t, { capture: n.capture }))
- : r.handler &&
- (pn('clickoutside', e, r.handler, { capture: n.capture }),
- (r.handler = void 0));
- },
- unmounted(e, { modifiers: t }) {
- const { handler: n } = e[lc];
- n && pn('clickoutside', e, n, { capture: t.capture }),
- (e[lc].handler = void 0);
- }
- },
- xa = MD;
- function ID(e, t) {
- console.error(`[vdirs/${e}]: ${t}`);
- }
- class DD {
- constructor() {
- (this.elementZIndex = new Map()), (this.nextZIndex = 2e3);
- }
- get elementCount() {
- return this.elementZIndex.size;
- }
- ensureZIndex(t, n) {
- const { elementZIndex: r } = this;
- if (n !== void 0) {
- (t.style.zIndex = `${n}`), r.delete(t);
- return;
- }
- const { nextZIndex: o } = this;
- (r.has(t) && r.get(t) + 1 === this.nextZIndex) ||
- ((t.style.zIndex = `${o}`),
- r.set(t, o),
- (this.nextZIndex = o + 1),
- this.squashState());
- }
- unregister(t, n) {
- const { elementZIndex: r } = this;
- r.has(t)
- ? r.delete(t)
- : n === void 0 &&
- ID(
- '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((n, r) => n[1] - r[1]),
- (this.nextZIndex = 2e3),
- t.forEach(n => {
- const r = n[0],
- o = this.nextZIndex++;
- `${o}` !== r.style.zIndex && (r.style.zIndex = `${o}`);
- });
- }
- }
- const _g = new DD(),
- sc = '@@ziContext',
- FD = {
- mounted(e, t) {
- const { value: n = {} } = t,
- { zIndex: r, enabled: o } = n;
- (e[sc] = { enabled: !!o, initialized: !1 }),
- o && (_g.ensureZIndex(e, r), (e[sc].initialized = !0));
- },
- updated(e, t) {
- const { value: n = {} } = t,
- { zIndex: r, enabled: o } = n,
- i = e[sc].enabled;
- o && !i && (_g.ensureZIndex(e, r), (e[sc].initialized = !0)),
- (e[sc].enabled = !!o);
- },
- unmounted(e, t) {
- if (!e[sc].initialized) return;
- const { value: n = {} } = t,
- { zIndex: r } = n;
- _g.unregister(e, r);
- }
- },
- Hu = FD,
- ZR = Symbol('@css-render/vue3-ssr');
- function BD(e, t) {
- return `<style cssr-id="${e}">
- ${t}
- </style>`;
- }
- function LD(e, t) {
- const n = Ze(ZR, null);
- if (n === null) {
- console.error('[css-render/vue3-ssr]: no ssr context found.');
- return;
- }
- const { styles: r, ids: o } = n;
- o.has(e) || (r !== null && (o.add(e), r.push(BD(e, t))));
- }
- const ND = typeof document < 'u';
- function wl() {
- if (ND) return;
- const e = Ze(ZR, null);
- if (e !== null) return { adapter: LD, context: e };
- }
- function lC(e, t) {
- console.error(`[vueuc/${e}]: ${t}`);
- }
- const { c: Ni } = DR(),
- Bv = 'vueuc-style';
- function sC(e) {
- return e & -e;
- }
- class HD {
- constructor(t, n) {
- (this.l = t), (this.min = n);
- const r = new Array(t + 1);
- for (let o = 0; o < t + 1; ++o) r[o] = 0;
- this.ft = r;
- }
- add(t, n) {
- if (n === 0) return;
- const { l: r, ft: o } = this;
- for (t += 1; t <= r; ) (o[t] += n), (t += sC(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: n, min: r, l: o } = this;
- if (t > o) throw new Error('[FinweckTree.sum]: `i` is larger than length.');
- let i = t * r;
- for (; t > 0; ) (i += n[t]), (t -= sC(t));
- return i;
- }
- getBound(t) {
- let n = 0,
- r = this.l;
- for (; r > n; ) {
- const o = Math.floor((n + r) / 2),
- i = this.sum(o);
- if (i > t) {
- r = o;
- continue;
- } else if (i < t) {
- if (n === o) return this.sum(n + 1) <= t ? n + 1 : o;
- n = o;
- } else return o;
- }
- return n;
- }
- }
- function cC(e) {
- return typeof e == 'string' ? document.querySelector(e) : e();
- }
- const ju = Re({
- name: 'LazyTeleport',
- props: {
- to: { type: [String, Object], default: void 0 },
- disabled: Boolean,
- show: { type: Boolean, required: !0 }
- },
- setup(e) {
- return {
- showTeleport: pD(Ee(e, 'show')),
- mergedTo: I(() => {
- const { to: t } = e;
- return t != null ? t : 'body';
- })
- };
- },
- render() {
- return this.showTeleport
- ? this.disabled
- ? qm('lazy-teleport', this.$slots)
- : h(
- Iu,
- { disabled: this.disabled, to: this.mergedTo },
- qm('lazy-teleport', this.$slots)
- )
- : null;
- }
- }),
- ch = { top: 'bottom', bottom: 'top', left: 'right', right: 'left' },
- dC = { start: 'end', center: 'center', end: 'start' },
- Rg = { top: 'height', bottom: 'height', left: 'width', right: 'width' },
- jD = {
- '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'
- },
- UD = {
- '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'
- },
- WD = {
- 'bottom-start': 'right',
- 'bottom-end': 'left',
- 'top-start': 'right',
- 'top-end': 'left',
- 'right-start': 'bottom',
- 'right-end': 'top',
- 'left-start': 'bottom',
- 'left-end': 'top'
- },
- uC = { top: !0, bottom: !1, left: !0, right: !1 },
- fC = { top: 'end', bottom: 'start', left: 'end', right: 'start' };
- function VD(e, t, n, r, o, i) {
- if (!o || i) return { placement: e, top: 0, left: 0 };
- const [a, s] = e.split('-');
- let c = s != null ? s : 'center',
- d = { top: 0, left: 0 };
- const f = (m, g, w) => {
- let x = 0,
- y = 0;
- const C = n[m] - t[g] - t[m];
- return (
- C > 0 && r && (w ? (y = uC[g] ? C : -C) : (x = uC[g] ? C : -C)),
- { left: x, top: y }
- );
- },
- v = a === 'left' || a === 'right';
- if (c !== 'center') {
- const m = WD[e],
- g = ch[m],
- w = Rg[m];
- if (n[w] > t[w]) {
- if (t[m] + t[w] < n[w]) {
- const x = (n[w] - t[w]) / 2;
- t[m] < x || t[g] < x
- ? t[m] < t[g]
- ? ((c = dC[s]), (d = f(w, g, v)))
- : (d = f(w, m, v))
- : (c = 'center');
- }
- } else n[w] < t[w] && t[g] < 0 && t[m] > t[g] && (c = dC[s]);
- } else {
- const m = a === 'bottom' || a === 'top' ? 'left' : 'top',
- g = ch[m],
- w = Rg[m],
- x = (n[w] - t[w]) / 2;
- (t[m] < x || t[g] < x) &&
- (t[m] > t[g]
- ? ((c = fC[m]), (d = f(w, m, v)))
- : ((c = fC[g]), (d = f(w, g, v))));
- }
- let p = a;
- return (
- t[a] < n[Rg[a]] && t[a] < t[ch[a]] && (p = ch[a]),
- { placement: c !== 'center' ? `${p}-${c}` : p, left: d.left, top: d.top }
- );
- }
- function KD(e, t) {
- return t ? UD[e] : jD[e];
- }
- function qD(e, t, n, r, o, i) {
- if (i)
- switch (e) {
- case 'bottom-start':
- return {
- top: `${Math.round(n.top - t.top + n.height)}px`,
- left: `${Math.round(n.left - t.left)}px`,
- transform: 'translateY(-100%)'
- };
- case 'bottom-end':
- return {
- top: `${Math.round(n.top - t.top + n.height)}px`,
- left: `${Math.round(n.left - t.left + n.width)}px`,
- transform: 'translateX(-100%) translateY(-100%)'
- };
- case 'top-start':
- return {
- top: `${Math.round(n.top - t.top)}px`,
- left: `${Math.round(n.left - t.left)}px`,
- transform: ''
- };
- case 'top-end':
- return {
- top: `${Math.round(n.top - t.top)}px`,
- left: `${Math.round(n.left - t.left + n.width)}px`,
- transform: 'translateX(-100%)'
- };
- case 'right-start':
- return {
- top: `${Math.round(n.top - t.top)}px`,
- left: `${Math.round(n.left - t.left + n.width)}px`,
- transform: 'translateX(-100%)'
- };
- case 'right-end':
- return {
- top: `${Math.round(n.top - t.top + n.height)}px`,
- left: `${Math.round(n.left - t.left + n.width)}px`,
- transform: 'translateX(-100%) translateY(-100%)'
- };
- case 'left-start':
- return {
- top: `${Math.round(n.top - t.top)}px`,
- left: `${Math.round(n.left - t.left)}px`,
- transform: ''
- };
- case 'left-end':
- return {
- top: `${Math.round(n.top - t.top + n.height)}px`,
- left: `${Math.round(n.left - t.left)}px`,
- transform: 'translateY(-100%)'
- };
- case 'top':
- return {
- top: `${Math.round(n.top - t.top)}px`,
- left: `${Math.round(n.left - t.left + n.width / 2)}px`,
- transform: 'translateX(-50%)'
- };
- case 'right':
- return {
- top: `${Math.round(n.top - t.top + n.height / 2)}px`,
- left: `${Math.round(n.left - t.left + n.width)}px`,
- transform: 'translateX(-100%) translateY(-50%)'
- };
- case 'left':
- return {
- top: `${Math.round(n.top - t.top + n.height / 2)}px`,
- left: `${Math.round(n.left - t.left)}px`,
- transform: 'translateY(-50%)'
- };
- case 'bottom':
- default:
- return {
- top: `${Math.round(n.top - t.top + n.height)}px`,
- left: `${Math.round(n.left - t.left + n.width / 2)}px`,
- transform: 'translateX(-50%) translateY(-100%)'
- };
- }
- switch (e) {
- case 'bottom-start':
- return {
- top: `${Math.round(n.top - t.top + n.height + r)}px`,
- left: `${Math.round(n.left - t.left + o)}px`,
- transform: ''
- };
- case 'bottom-end':
- return {
- top: `${Math.round(n.top - t.top + n.height + r)}px`,
- left: `${Math.round(n.left - t.left + n.width + o)}px`,
- transform: 'translateX(-100%)'
- };
- case 'top-start':
- return {
- top: `${Math.round(n.top - t.top + r)}px`,
- left: `${Math.round(n.left - t.left + o)}px`,
- transform: 'translateY(-100%)'
- };
- case 'top-end':
- return {
- top: `${Math.round(n.top - t.top + r)}px`,
- left: `${Math.round(n.left - t.left + n.width + o)}px`,
- transform: 'translateX(-100%) translateY(-100%)'
- };
- case 'right-start':
- return {
- top: `${Math.round(n.top - t.top + r)}px`,
- left: `${Math.round(n.left - t.left + n.width + o)}px`,
- transform: ''
- };
- case 'right-end':
- return {
- top: `${Math.round(n.top - t.top + n.height + r)}px`,
- left: `${Math.round(n.left - t.left + n.width + o)}px`,
- transform: 'translateY(-100%)'
- };
- case 'left-start':
- return {
- top: `${Math.round(n.top - t.top + r)}px`,
- left: `${Math.round(n.left - t.left + o)}px`,
- transform: 'translateX(-100%)'
- };
- case 'left-end':
- return {
- top: `${Math.round(n.top - t.top + n.height + r)}px`,
- left: `${Math.round(n.left - t.left + o)}px`,
- transform: 'translateX(-100%) translateY(-100%)'
- };
- case 'top':
- return {
- top: `${Math.round(n.top - t.top + r)}px`,
- left: `${Math.round(n.left - t.left + n.width / 2 + o)}px`,
- transform: 'translateY(-100%) translateX(-50%)'
- };
- case 'right':
- return {
- top: `${Math.round(n.top - t.top + n.height / 2 + r)}px`,
- left: `${Math.round(n.left - t.left + n.width + o)}px`,
- transform: 'translateY(-50%)'
- };
- case 'left':
- return {
- top: `${Math.round(n.top - t.top + n.height / 2 + r)}px`,
- left: `${Math.round(n.left - t.left + o)}px`,
- transform: 'translateY(-50%) translateX(-100%)'
- };
- case 'bottom':
- default:
- return {
- top: `${Math.round(n.top - t.top + n.height + r)}px`,
- left: `${Math.round(n.left - t.left + n.width / 2 + o)}px`,
- transform: 'translateX(-50%)'
- };
- }
- }
- const YD = Ni([
- Ni('.v-binder-follower-container', {
- position: 'absolute',
- left: '0',
- right: '0',
- top: '0',
- height: '0',
- pointerEvents: 'none',
- zIndex: 'auto'
- }),
- Ni('.v-binder-follower-content', { position: 'absolute', zIndex: 'auto' }, [
- Ni('> *', { pointerEvents: 'all' })
- ])
- ]),
- Qc = Re({
- 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 = Ze('VBinder'),
- n = kt(() => (e.enabled !== void 0 ? e.enabled : e.show)),
- r = Z(null),
- o = Z(null),
- i = () => {
- const { syncTrigger: p } = e;
- p.includes('scroll') && t.addScrollListener(c),
- p.includes('resize') && t.addResizeListener(c);
- },
- a = () => {
- t.removeScrollListener(c), t.removeResizeListener(c);
- };
- Hn(() => {
- n.value && (c(), i());
- });
- const s = wl();
- YD.mount({ id: 'vueuc/binder', head: !0, anchorMetaName: Bv, ssr: s }),
- qn(() => {
- a();
- }),
- jR(() => {
- n.value && c();
- });
- const c = () => {
- if (!n.value) return;
- const p = r.value;
- if (p === null) return;
- const m = t.targetRef,
- { x: g, y: w, overlap: x } = e,
- y = g !== void 0 && w !== void 0 ? $D(g, w) : Sg(m);
- p.style.setProperty('--v-target-width', `${Math.round(y.width)}px`),
- p.style.setProperty('--v-target-height', `${Math.round(y.height)}px`);
- const {
- width: C,
- minWidth: R,
- placement: S,
- internalShift: _,
- flip: P
- } = e;
- p.setAttribute('v-placement', S),
- x ? p.setAttribute('v-overlap', '') : p.removeAttribute('v-overlap');
- const { style: T } = p;
- C === 'target'
- ? (T.width = `${y.width}px`)
- : C !== void 0
- ? (T.width = C)
- : (T.width = ''),
- R === 'target'
- ? (T.minWidth = `${y.width}px`)
- : R !== void 0
- ? (T.minWidth = R)
- : (T.minWidth = '');
- const A = Sg(p),
- z = Sg(o.value),
- { left: k, top: M, placement: E } = VD(S, y, A, _, P, x),
- D = KD(E, x),
- { left: L, top: j, transform: B } = qD(E, z, y, M, k, x);
- p.setAttribute('v-placement', E),
- p.style.setProperty('--v-offset-left', `${Math.round(k)}px`),
- p.style.setProperty('--v-offset-top', `${Math.round(M)}px`),
- (p.style.transform = `translateX(${L}) translateY(${j}) ${B}`),
- p.style.setProperty('--v-transform-origin', D),
- (p.style.transformOrigin = D);
- };
- $t(n, p => {
- p ? (i(), d()) : a();
- });
- const d = () => {
- mn()
- .then(c)
- .catch(p => console.error(p));
- };
- [
- 'placement',
- 'x',
- 'y',
- 'internalShift',
- 'flip',
- 'width',
- 'overlap',
- 'minWidth'
- ].forEach(p => {
- $t(Ee(e, p), c);
- }),
- ['teleportDisabled'].forEach(p => {
- $t(Ee(e, p), d);
- }),
- $t(Ee(e, 'syncTrigger'), p => {
- p.includes('resize')
- ? t.addResizeListener(c)
- : t.removeResizeListener(c),
- p.includes('scroll')
- ? t.addScrollListener(c)
- : t.removeScrollListener(c);
- });
- const f = yi(),
- v = kt(() => {
- const { to: p } = e;
- if (p !== void 0) return p;
- f.value;
- });
- return {
- VBinder: t,
- mergedEnabled: n,
- offsetContainerRef: o,
- followerRef: r,
- mergedTo: v,
- syncPosition: c
- };
- },
- render() {
- return h(
- ju,
- { show: this.show, to: this.mergedTo, disabled: this.teleportDisabled },
- {
- default: () => {
- var e, t;
- const n = h(
- 'div',
- {
- class: ['v-binder-follower-container', this.containerClass],
- ref: 'offsetContainerRef'
- },
- [
- h(
- '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
- ? Er(n, [
- [Hu, { enabled: this.mergedEnabled, zIndex: this.zIndex }]
- ])
- : n;
- }
- }
- );
- }
- });
- var gs = [],
- GD = function () {
- return gs.some(function (e) {
- return e.activeTargets.length > 0;
- });
- },
- XD = function () {
- return gs.some(function (e) {
- return e.skippedTargets.length > 0;
- });
- },
- hC = 'ResizeObserver loop completed with undelivered notifications.',
- ZD = function () {
- var e;
- typeof ErrorEvent == 'function'
- ? (e = new ErrorEvent('error', { message: hC }))
- : ((e = document.createEvent('Event')),
- e.initEvent('error', !1, !1),
- (e.message = hC)),
- window.dispatchEvent(e);
- },
- _u;
- (function (e) {
- (e.BORDER_BOX = 'border-box'),
- (e.CONTENT_BOX = 'content-box'),
- (e.DEVICE_PIXEL_CONTENT_BOX = 'device-pixel-content-box');
- })(_u || (_u = {}));
- var ms = function (e) {
- return Object.freeze(e);
- },
- QD = (function () {
- function e(t, n) {
- (this.inlineSize = t), (this.blockSize = n), ms(this);
- }
- return e;
- })(),
- QR = (function () {
- function e(t, n, r, o) {
- return (
- (this.x = t),
- (this.y = n),
- (this.width = r),
- (this.height = o),
- (this.top = this.y),
- (this.left = this.x),
- (this.bottom = this.top + this.height),
- (this.right = this.left + this.width),
- ms(this)
- );
- }
- return (
- (e.prototype.toJSON = function () {
- var t = this,
- n = t.x,
- r = t.y,
- o = t.top,
- i = t.right,
- a = t.bottom,
- s = t.left,
- c = t.width,
- d = t.height;
- return {
- x: n,
- y: r,
- top: o,
- right: i,
- bottom: a,
- left: s,
- width: c,
- height: d
- };
- }),
- (e.fromRect = function (t) {
- return new e(t.x, t.y, t.width, t.height);
- }),
- e
- );
- })(),
- Z0 = function (e) {
- return e instanceof SVGElement && 'getBBox' in e;
- },
- JR = function (e) {
- if (Z0(e)) {
- var t = e.getBBox(),
- n = t.width,
- r = t.height;
- return !n && !r;
- }
- var o = e,
- i = o.offsetWidth,
- a = o.offsetHeight;
- return !(i || a || e.getClientRects().length);
- },
- vC = function (e) {
- var t;
- if (e instanceof Element) return !0;
- var n =
- (t = e == null ? void 0 : e.ownerDocument) === null || t === void 0
- ? void 0
- : t.defaultView;
- return !!(n && e instanceof n.Element);
- },
- JD = 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;
- },
- eu = typeof window < 'u' ? window : {},
- dh = new WeakMap(),
- pC = /auto|scroll/,
- eF = /^tb|vertical/,
- tF = /msie|trident/i.test(eu.navigator && eu.navigator.userAgent),
- Ti = function (e) {
- return parseFloat(e || '0');
- },
- _c = function (e, t, n) {
- return (
- e === void 0 && (e = 0),
- t === void 0 && (t = 0),
- n === void 0 && (n = !1),
- new QD((n ? t : e) || 0, (n ? e : t) || 0)
- );
- },
- gC = ms({
- devicePixelContentBoxSize: _c(),
- borderBoxSize: _c(),
- contentBoxSize: _c(),
- contentRect: new QR(0, 0, 0, 0)
- }),
- eP = function (e, t) {
- if ((t === void 0 && (t = !1), dh.has(e) && !t)) return dh.get(e);
- if (JR(e)) return dh.set(e, gC), gC;
- var n = getComputedStyle(e),
- r = Z0(e) && e.ownerSVGElement && e.getBBox(),
- o = !tF && n.boxSizing === 'border-box',
- i = eF.test(n.writingMode || ''),
- a = !r && pC.test(n.overflowY || ''),
- s = !r && pC.test(n.overflowX || ''),
- c = r ? 0 : Ti(n.paddingTop),
- d = r ? 0 : Ti(n.paddingRight),
- f = r ? 0 : Ti(n.paddingBottom),
- v = r ? 0 : Ti(n.paddingLeft),
- p = r ? 0 : Ti(n.borderTopWidth),
- m = r ? 0 : Ti(n.borderRightWidth),
- g = r ? 0 : Ti(n.borderBottomWidth),
- w = r ? 0 : Ti(n.borderLeftWidth),
- x = v + d,
- y = c + f,
- C = w + m,
- R = p + g,
- S = s ? e.offsetHeight - R - e.clientHeight : 0,
- _ = a ? e.offsetWidth - C - e.clientWidth : 0,
- P = o ? x + C : 0,
- T = o ? y + R : 0,
- A = r ? r.width : Ti(n.width) - P - _,
- z = r ? r.height : Ti(n.height) - T - S,
- k = A + x + _ + C,
- M = z + y + S + R,
- E = ms({
- devicePixelContentBoxSize: _c(
- Math.round(A * devicePixelRatio),
- Math.round(z * devicePixelRatio),
- i
- ),
- borderBoxSize: _c(k, M, i),
- contentBoxSize: _c(A, z, i),
- contentRect: new QR(v, c, A, z)
- });
- return dh.set(e, E), E;
- },
- tP = function (e, t, n) {
- var r = eP(e, n),
- o = r.borderBoxSize,
- i = r.contentBoxSize,
- a = r.devicePixelContentBoxSize;
- switch (t) {
- case _u.DEVICE_PIXEL_CONTENT_BOX:
- return a;
- case _u.BORDER_BOX:
- return o;
- default:
- return i;
- }
- },
- nF = (function () {
- function e(t) {
- var n = eP(t);
- (this.target = t),
- (this.contentRect = n.contentRect),
- (this.borderBoxSize = ms([n.borderBoxSize])),
- (this.contentBoxSize = ms([n.contentBoxSize])),
- (this.devicePixelContentBoxSize = ms([n.devicePixelContentBoxSize]));
- }
- return e;
- })(),
- nP = function (e) {
- if (JR(e)) return 1 / 0;
- for (var t = 0, n = e.parentNode; n; ) (t += 1), (n = n.parentNode);
- return t;
- },
- rF = function () {
- var e = 1 / 0,
- t = [];
- gs.forEach(function (a) {
- if (a.activeTargets.length !== 0) {
- var s = [];
- a.activeTargets.forEach(function (d) {
- var f = new nF(d.target),
- v = nP(d.target);
- s.push(f),
- (d.lastReportedSize = tP(d.target, d.observedBox)),
- v < e && (e = v);
- }),
- t.push(function () {
- a.callback.call(a.observer, s, a.observer);
- }),
- a.activeTargets.splice(0, a.activeTargets.length);
- }
- });
- for (var n = 0, r = t; n < r.length; n++) {
- var o = r[n];
- o();
- }
- return e;
- },
- mC = function (e) {
- gs.forEach(function (n) {
- n.activeTargets.splice(0, n.activeTargets.length),
- n.skippedTargets.splice(0, n.skippedTargets.length),
- n.observationTargets.forEach(function (o) {
- o.isActive() &&
- (nP(o.target) > e
- ? n.activeTargets.push(o)
- : n.skippedTargets.push(o));
- });
- });
- },
- oF = function () {
- var e = 0;
- for (mC(e); GD(); ) (e = rF()), mC(e);
- return XD() && ZD(), e > 0;
- },
- Pg,
- rP = [],
- iF = function () {
- return rP.splice(0).forEach(function (e) {
- return e();
- });
- },
- aF = function (e) {
- if (!Pg) {
- var t = 0,
- n = document.createTextNode(''),
- r = { characterData: !0 };
- new MutationObserver(function () {
- return iF();
- }).observe(n, r),
- (Pg = function () {
- n.textContent = ''.concat(t ? t-- : t++);
- });
- }
- rP.push(e), Pg();
- },
- lF = function (e) {
- aF(function () {
- requestAnimationFrame(e);
- });
- },
- Mh = 0,
- sF = function () {
- return !!Mh;
- },
- cF = 250,
- dF = { attributes: !0, characterData: !0, childList: !0, subtree: !0 },
- bC = [
- 'resize',
- 'load',
- 'transitionend',
- 'animationend',
- 'animationstart',
- 'animationiteration',
- 'keyup',
- 'keydown',
- 'mouseup',
- 'mousedown',
- 'mouseover',
- 'mouseout',
- 'blur',
- 'focus'
- ],
- yC = function (e) {
- return e === void 0 && (e = 0), Date.now() + e;
- },
- kg = !1,
- uF = (function () {
- function e() {
- var t = this;
- (this.stopped = !0),
- (this.listener = function () {
- return t.schedule();
- });
- }
- return (
- (e.prototype.run = function (t) {
- var n = this;
- if ((t === void 0 && (t = cF), !kg)) {
- kg = !0;
- var r = yC(t);
- lF(function () {
- var o = !1;
- try {
- o = oF();
- } finally {
- if (((kg = !1), (t = r - yC()), !sF())) return;
- o ? n.run(1e3) : t > 0 ? n.run(t) : n.start();
- }
- });
- }
- }),
- (e.prototype.schedule = function () {
- this.stop(), this.run();
- }),
- (e.prototype.observe = function () {
- var t = this,
- n = function () {
- return t.observer && t.observer.observe(document.body, dF);
- };
- document.body ? n() : eu.addEventListener('DOMContentLoaded', n);
- }),
- (e.prototype.start = function () {
- var t = this;
- this.stopped &&
- ((this.stopped = !1),
- (this.observer = new MutationObserver(this.listener)),
- this.observe(),
- bC.forEach(function (n) {
- return eu.addEventListener(n, t.listener, !0);
- }));
- }),
- (e.prototype.stop = function () {
- var t = this;
- this.stopped ||
- (this.observer && this.observer.disconnect(),
- bC.forEach(function (n) {
- return eu.removeEventListener(n, t.listener, !0);
- }),
- (this.stopped = !0));
- }),
- e
- );
- })(),
- Gm = new uF(),
- xC = function (e) {
- !Mh && e > 0 && Gm.start(), (Mh += e), !Mh && Gm.stop();
- },
- fF = function (e) {
- return !Z0(e) && !JD(e) && getComputedStyle(e).display === 'inline';
- },
- hF = (function () {
- function e(t, n) {
- (this.target = t),
- (this.observedBox = n || _u.CONTENT_BOX),
- (this.lastReportedSize = { inlineSize: 0, blockSize: 0 });
- }
- return (
- (e.prototype.isActive = function () {
- var t = tP(this.target, this.observedBox, !0);
- return (
- fF(this.target) && (this.lastReportedSize = t),
- this.lastReportedSize.inlineSize !== t.inlineSize ||
- this.lastReportedSize.blockSize !== t.blockSize
- );
- }),
- e
- );
- })(),
- vF = (function () {
- function e(t, n) {
- (this.activeTargets = []),
- (this.skippedTargets = []),
- (this.observationTargets = []),
- (this.observer = t),
- (this.callback = n);
- }
- return e;
- })(),
- uh = new WeakMap(),
- wC = function (e, t) {
- for (var n = 0; n < e.length; n += 1) if (e[n].target === t) return n;
- return -1;
- },
- fh = (function () {
- function e() {}
- return (
- (e.connect = function (t, n) {
- var r = new vF(t, n);
- uh.set(t, r);
- }),
- (e.observe = function (t, n, r) {
- var o = uh.get(t),
- i = o.observationTargets.length === 0;
- wC(o.observationTargets, n) < 0 &&
- (i && gs.push(o),
- o.observationTargets.push(new hF(n, r && r.box)),
- xC(1),
- Gm.schedule());
- }),
- (e.unobserve = function (t, n) {
- var r = uh.get(t),
- o = wC(r.observationTargets, n),
- i = r.observationTargets.length === 1;
- o >= 0 &&
- (i && gs.splice(gs.indexOf(r), 1),
- r.observationTargets.splice(o, 1),
- xC(-1));
- }),
- (e.disconnect = function (t) {
- var n = this,
- r = uh.get(t);
- r.observationTargets.slice().forEach(function (o) {
- return n.unobserve(t, o.target);
- }),
- r.activeTargets.splice(0, r.activeTargets.length);
- }),
- e
- );
- })(),
- pF = (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."
- );
- fh.connect(this, t);
- }
- return (
- (e.prototype.observe = function (t, n) {
- if (arguments.length === 0)
- throw new TypeError(
- "Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present."
- );
- if (!vC(t))
- throw new TypeError(
- "Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element"
- );
- fh.observe(this, t, n);
- }),
- (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 (!vC(t))
- throw new TypeError(
- "Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element"
- );
- fh.unobserve(this, t);
- }),
- (e.prototype.disconnect = function () {
- fh.disconnect(this);
- }),
- (e.toString = function () {
- return 'function ResizeObserver () { [polyfill code] }';
- }),
- e
- );
- })();
- class gF {
- constructor() {
- (this.handleResize = this.handleResize.bind(this)),
- (this.observer = new ((typeof window < 'u' && window.ResizeObserver) ||
- pF)(this.handleResize)),
- (this.elHandlersMap = new Map());
- }
- handleResize(t) {
- for (const n of t) {
- const r = this.elHandlersMap.get(n.target);
- r !== void 0 && r(n);
- }
- }
- registerHandler(t, n) {
- this.elHandlersMap.set(t, n), this.observer.observe(t);
- }
- unregisterHandler(t) {
- this.elHandlersMap.has(t) &&
- (this.elHandlersMap.delete(t), this.observer.unobserve(t));
- }
- }
- const Yh = new gF(),
- Ki = Re({
- name: 'ResizeObserver',
- props: { onResize: Function },
- setup(e) {
- let t = !1;
- const n = _a().proxy;
- function r(o) {
- const { onResize: i } = e;
- i !== void 0 && i(o);
- }
- Hn(() => {
- const o = n.$el;
- if (o === void 0) {
- lC('resize-observer', '$el does not exist.');
- return;
- }
- if (
- o.nextElementSibling !== o.nextSibling &&
- o.nodeType === 3 &&
- o.nodeValue !== ''
- ) {
- lC(
- 'resize-observer',
- '$el can not be observed (it may be a text node).'
- );
- return;
- }
- o.nextElementSibling !== null &&
- (Yh.registerHandler(o.nextElementSibling, r), (t = !0));
- }),
- qn(() => {
- t && Yh.unregisterHandler(n.$el.nextElementSibling);
- });
- },
- render() {
- return N0(this.$slots, 'default');
- }
- });
- let hh;
- function mF() {
- return (
- hh === void 0 &&
- ('matchMedia' in window
- ? (hh = window.matchMedia('(pointer:coarse)').matches)
- : (hh = !1)),
- hh
- );
- }
- let Tg;
- function CC() {
- return (
- Tg === void 0 && (Tg = 'chrome' in window ? window.devicePixelRatio : 1), Tg
- );
- }
- const bF = Ni(
- '.v-vl',
- { maxHeight: 'inherit', height: '100%', overflow: 'auto', minWidth: '1px' },
- [
- Ni('&:not(.v-vl--show-scrollbar)', { scrollbarWidth: 'none' }, [
- Ni(
- '&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb',
- { width: 0, height: 0, display: 'none' }
- )
- ])
- ]
- ),
- Ac = Re({
- 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 = wl();
- bF.mount({
- id: 'vueuc/virtual-list',
- head: !0,
- anchorMetaName: Bv,
- ssr: t
- }),
- Hn(() => {
- const { defaultScrollIndex: M, defaultScrollKey: E } = e;
- M != null ? g({ index: M }) : E != null && g({ key: E });
- });
- let n = !1,
- r = !1;
- Av(() => {
- if (((n = !1), !r)) {
- r = !0;
- return;
- }
- g({ top: v.value, left: f });
- }),
- Vc(() => {
- (n = !0), r || (r = !0);
- });
- const o = I(() => {
- const M = new Map(),
- { keyField: E } = e;
- return (
- e.items.forEach((D, L) => {
- M.set(D[E], L);
- }),
- M
- );
- }),
- i = Z(null),
- a = Z(void 0),
- s = new Map(),
- c = I(() => {
- const { items: M, itemSize: E, keyField: D } = e,
- L = new HD(M.length, E);
- return (
- M.forEach((j, B) => {
- const q = j[D],
- G = s.get(q);
- G !== void 0 && L.add(B, G);
- }),
- L
- );
- }),
- d = Z(0);
- let f = 0;
- const v = Z(0),
- p = kt(() =>
- Math.max(c.value.getBound(v.value - Lr(e.paddingTop)) - 1, 0)
- ),
- m = I(() => {
- const { value: M } = a;
- if (M === void 0) return [];
- const { items: E, itemSize: D } = e,
- L = p.value,
- j = Math.min(L + Math.ceil(M / D + 1), E.length - 1),
- B = [];
- for (let q = L; q <= j; ++q) B.push(E[q]);
- return B;
- }),
- g = (M, E) => {
- if (typeof M == 'number') {
- C(M, E, 'auto');
- return;
- }
- const {
- left: D,
- top: L,
- index: j,
- key: B,
- position: q,
- behavior: G,
- debounce: ne = !0
- } = M;
- if (D !== void 0 || L !== void 0) C(D, L, G);
- else if (j !== void 0) y(j, G, ne);
- else if (B !== void 0) {
- const X = o.value.get(B);
- X !== void 0 && y(X, G, ne);
- } else
- q === 'bottom'
- ? C(0, Number.MAX_SAFE_INTEGER, G)
- : q === 'top' && C(0, 0, G);
- };
- let w,
- x = null;
- function y(M, E, D) {
- const { value: L } = c,
- j = L.sum(M) + Lr(e.paddingTop);
- if (!D) i.value.scrollTo({ left: 0, top: j, behavior: E });
- else {
- (w = M),
- x !== null && window.clearTimeout(x),
- (x = window.setTimeout(() => {
- (w = void 0), (x = null);
- }, 16));
- const { scrollTop: B, offsetHeight: q } = i.value;
- if (j > B) {
- const G = L.get(M);
- j + G <= B + q ||
- i.value.scrollTo({ left: 0, top: j + G - q, behavior: E });
- } else i.value.scrollTo({ left: 0, top: j, behavior: E });
- }
- }
- function C(M, E, D) {
- i.value.scrollTo({ left: M, top: E, behavior: D });
- }
- function R(M, E) {
- var D, L, j;
- if (n || e.ignoreItemResize || k(E.target)) return;
- const { value: B } = c,
- q = o.value.get(M),
- G = B.get(q),
- ne =
- (j =
- (L =
- (D = E.borderBoxSize) === null || D === void 0
- ? void 0
- : D[0]) === null || L === void 0
- ? void 0
- : L.blockSize) !== null && j !== void 0
- ? j
- : E.contentRect.height;
- if (ne === G) return;
- ne - e.itemSize === 0 ? s.delete(M) : s.set(M, ne - e.itemSize);
- const J = ne - G;
- if (J === 0) return;
- B.add(q, J);
- const re = i.value;
- if (re != null) {
- if (w === void 0) {
- const ce = B.sum(q);
- re.scrollTop > ce && re.scrollBy(0, J);
- } else if (q < w) re.scrollBy(0, J);
- else if (q === w) {
- const ce = B.sum(q);
- ne + ce > re.scrollTop + re.offsetHeight && re.scrollBy(0, J);
- }
- z();
- }
- d.value++;
- }
- const S = !mF();
- let _ = !1;
- function P(M) {
- var E;
- (E = e.onScroll) === null || E === void 0 || E.call(e, M),
- (!S || !_) && z();
- }
- function T(M) {
- var E;
- if (((E = e.onWheel) === null || E === void 0 || E.call(e, M), S)) {
- const D = i.value;
- if (D != null) {
- if (
- M.deltaX === 0 &&
- ((D.scrollTop === 0 && M.deltaY <= 0) ||
- (D.scrollTop + D.offsetHeight >= D.scrollHeight &&
- M.deltaY >= 0))
- )
- return;
- M.preventDefault(),
- (D.scrollTop += M.deltaY / CC()),
- (D.scrollLeft += M.deltaX / CC()),
- z(),
- (_ = !0),
- Oc(() => {
- _ = !1;
- });
- }
- }
- }
- function A(M) {
- if (n || k(M.target) || M.contentRect.height === a.value) return;
- a.value = M.contentRect.height;
- const { onResize: E } = e;
- E !== void 0 && E(M);
- }
- function z() {
- const { value: M } = i;
- M != null && ((v.value = M.scrollTop), (f = M.scrollLeft));
- }
- function k(M) {
- let E = M;
- for (; E !== null; ) {
- if (E.style.display === 'none') return !0;
- E = E.parentElement;
- }
- return !1;
- }
- return {
- listHeight: a,
- listStyle: { overflow: 'auto' },
- keyToIndex: o,
- itemsStyle: I(() => {
- const { itemResizable: M } = e,
- E = sr(c.value.sum());
- return (
- d.value,
- [
- e.itemsStyle,
- {
- boxSizing: 'content-box',
- height: M ? '' : E,
- minHeight: M ? E : '',
- paddingTop: sr(e.paddingTop),
- paddingBottom: sr(e.paddingBottom)
- }
- ]
- );
- }),
- visibleItemsStyle: I(
- () => (
- d.value, { transform: `translateY(${sr(c.value.sum(p.value))})` }
- )
- ),
- viewportItems: m,
- listElRef: i,
- itemsElRef: Z(null),
- scrollTo: g,
- handleListResize: A,
- handleListScroll: P,
- handleListWheel: T,
- handleItemResize: R
- };
- },
- render() {
- const {
- itemResizable: e,
- keyField: t,
- keyToIndex: n,
- visibleItemsTag: r
- } = this;
- return h(
- Ki,
- { onResize: this.handleListResize },
- {
- default: () => {
- var o, i;
- return h(
- 'div',
- qr(this.$attrs, {
- class: ['v-vl', this.showScrollbar && 'v-vl--show-scrollbar'],
- onScroll: this.handleListScroll,
- onWheel: this.handleListWheel,
- ref: 'listElRef'
- }),
- [
- this.items.length !== 0
- ? h(
- 'div',
- {
- ref: 'itemsElRef',
- class: 'v-vl-items',
- style: this.itemsStyle
- },
- [
- h(
- r,
- Object.assign(
- {
- class: 'v-vl-visible-items',
- style: this.visibleItemsStyle
- },
- this.visibleItemsProps
- ),
- {
- default: () =>
- this.viewportItems.map(a => {
- const s = a[t],
- c = n.get(s),
- d = this.$slots.default({
- item: a,
- index: c
- })[0];
- return e
- ? h(
- Ki,
- {
- key: s,
- onResize: f =>
- this.handleItemResize(s, f)
- },
- { default: () => d }
- )
- : ((d.key = s), d);
- })
- }
- )
- ]
- )
- : (i = (o = this.$slots).empty) === null || i === void 0
- ? void 0
- : i.call(o)
- ]
- );
- }
- }
- );
- }
- }),
- yF = Ni('.v-x-scroll', { overflow: 'auto', scrollbarWidth: 'none' }, [
- Ni('&::-webkit-scrollbar', { width: 0, height: 0 })
- ]),
- xF = Re({
- name: 'XScroll',
- props: { disabled: Boolean, onScroll: Function },
- setup() {
- const e = Z(null);
- function t(o) {
- !(o.currentTarget.offsetWidth < o.currentTarget.scrollWidth) ||
- o.deltaY === 0 ||
- ((o.currentTarget.scrollLeft += o.deltaY + o.deltaX),
- o.preventDefault());
- }
- const n = wl();
- return (
- yF.mount({
- id: 'vueuc/x-scroll',
- head: !0,
- anchorMetaName: Bv,
- ssr: n
- }),
- Object.assign(
- { selfRef: e, handleWheel: t },
- {
- scrollTo(...o) {
- var i;
- (i = e.value) === null || i === void 0 || i.scrollTo(...o);
- }
- }
- )
- );
- },
- render() {
- return h(
- 'div',
- {
- ref: 'selfRef',
- onScroll: this.onScroll,
- onWheel: this.disabled ? void 0 : this.handleWheel,
- class: 'v-x-scroll'
- },
- this.$slots
- );
- }
- }),
- Xl = 'v-hidden',
- wF = Ni('[v-hidden]', { display: 'none!important' }),
- SC = Re({
- name: 'Overflow',
- props: {
- getCounter: Function,
- getTail: Function,
- updateCounter: Function,
- onUpdateOverflow: Function
- },
- setup(e, { slots: t }) {
- const n = Z(null),
- r = Z(null);
- function o() {
- const { value: a } = n,
- { getCounter: s, getTail: c } = e;
- let d;
- if ((s !== void 0 ? (d = s()) : (d = r.value), !a || !d)) return;
- d.hasAttribute(Xl) && d.removeAttribute(Xl);
- const { children: f } = a,
- v = a.offsetWidth,
- p = [],
- m = t.tail ? (c == null ? void 0 : c()) : null;
- let g = m ? m.offsetWidth : 0,
- w = !1;
- const x = a.children.length - (t.tail ? 1 : 0);
- for (let C = 0; C < x - 1; ++C) {
- if (C < 0) continue;
- const R = f[C];
- if (w) {
- R.hasAttribute(Xl) || R.setAttribute(Xl, '');
- continue;
- } else R.hasAttribute(Xl) && R.removeAttribute(Xl);
- const S = R.offsetWidth;
- if (((g += S), (p[C] = S), g > v)) {
- const { updateCounter: _ } = e;
- for (let P = C; P >= 0; --P) {
- const T = x - 1 - P;
- _ !== void 0 ? _(T) : (d.textContent = `${T}`);
- const A = d.offsetWidth;
- if (((g -= p[P]), g + A <= v || P === 0)) {
- (w = !0),
- (C = P - 1),
- m &&
- (C === -1
- ? ((m.style.maxWidth = `${v - A}px`),
- (m.style.boxSizing = 'border-box'))
- : (m.style.maxWidth = ''));
- break;
- }
- }
- }
- }
- const { onUpdateOverflow: y } = e;
- w
- ? y !== void 0 && y(!0)
- : (y !== void 0 && y(!1), d.setAttribute(Xl, ''));
- }
- const i = wl();
- return (
- wF.mount({
- id: 'vueuc/overflow',
- head: !0,
- anchorMetaName: Bv,
- ssr: i
- }),
- Hn(o),
- { selfRef: n, counterRef: r, sync: o }
- );
- },
- render() {
- const { $slots: e } = this;
- return (
- mn(this.sync),
- h('div', { class: 'v-overflow', ref: 'selfRef' }, [
- N0(e, 'default'),
- e.counter
- ? e.counter()
- : h('span', {
- style: { display: 'inline-block' },
- ref: 'counterRef'
- }),
- e.tail ? e.tail() : null
- ])
- );
- }
- });
- function oP(e) {
- return e instanceof HTMLElement;
- }
- function iP(e) {
- for (let t = 0; t < e.childNodes.length; t++) {
- const n = e.childNodes[t];
- if (oP(n) && (lP(n) || iP(n))) return !0;
- }
- return !1;
- }
- function aP(e) {
- for (let t = e.childNodes.length - 1; t >= 0; t--) {
- const n = e.childNodes[t];
- if (oP(n) && (lP(n) || aP(n))) return !0;
- }
- return !1;
- }
- function lP(e) {
- if (!CF(e)) return !1;
- try {
- e.focus({ preventScroll: !0 });
- } catch (t) {}
- return document.activeElement === e;
- }
- function CF(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 Ad = [];
- const Q0 = Re({
- 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(),
- n = Z(null),
- r = Z(null);
- let o = !1,
- i = !1;
- const a = typeof document > 'u' ? null : document.activeElement;
- function s() {
- return Ad[Ad.length - 1] === t;
- }
- function c(x) {
- var y;
- x.code === 'Escape' &&
- s() &&
- ((y = e.onEsc) === null || y === void 0 || y.call(e, x));
- }
- Hn(() => {
- $t(
- () => e.active,
- x => {
- x
- ? (v(), Tn('keydown', document, c))
- : (pn('keydown', document, c), o && p());
- },
- { immediate: !0 }
- );
- }),
- qn(() => {
- pn('keydown', document, c), o && p();
- });
- function d(x) {
- if (!i && s()) {
- const y = f();
- if (y === null || y.contains(ya(x))) return;
- m('first');
- }
- }
- function f() {
- const x = n.value;
- if (x === null) return null;
- let y = x;
- for (
- ;
- (y = y.nextSibling),
- !(y === null || (y instanceof Element && y.tagName === 'DIV'));
- );
- return y;
- }
- function v() {
- var x;
- if (!e.disabled) {
- if ((Ad.push(t), e.autoFocus)) {
- const { initialFocusTo: y } = e;
- y === void 0
- ? m('first')
- : (x = cC(y)) === null ||
- x === void 0 ||
- x.focus({ preventScroll: !0 });
- }
- (o = !0), document.addEventListener('focus', d, !0);
- }
- }
- function p() {
- var x;
- if (
- e.disabled ||
- (document.removeEventListener('focus', d, !0),
- (Ad = Ad.filter(C => C !== t)),
- s())
- )
- return;
- const { finalFocusTo: y } = e;
- y !== void 0
- ? (x = cC(y)) === null || x === void 0 || x.focus({ preventScroll: !0 })
- : e.returnFocusOnDeactivated &&
- a instanceof HTMLElement &&
- ((i = !0), a.focus({ preventScroll: !0 }), (i = !1));
- }
- function m(x) {
- if (s() && e.active) {
- const y = n.value,
- C = r.value;
- if (y !== null && C !== null) {
- const R = f();
- if (R == null || R === C) {
- (i = !0), y.focus({ preventScroll: !0 }), (i = !1);
- return;
- }
- i = !0;
- const S = x === 'first' ? iP(R) : aP(R);
- (i = !1), S || ((i = !0), y.focus({ preventScroll: !0 }), (i = !1));
- }
- }
- }
- function g(x) {
- if (i) return;
- const y = f();
- y !== null &&
- (x.relatedTarget !== null && y.contains(x.relatedTarget)
- ? m('last')
- : m('first'));
- }
- function w(x) {
- i ||
- (x.relatedTarget !== null && x.relatedTarget === n.value
- ? m('last')
- : m('first'));
- }
- return {
- focusableStartRef: n,
- focusableEndRef: r,
- focusableStyle: 'position: absolute; height: 0; width: 0;',
- handleStartFocus: g,
- handleEndFocus: w
- };
- },
- render() {
- const { default: e } = this.$slots;
- if (e === void 0) return null;
- if (this.disabled) return e();
- const { active: t, focusableStyle: n } = this;
- return h(on, null, [
- h('div', {
- 'aria-hidden': 'true',
- tabindex: t ? '0' : '-1',
- ref: 'focusableStartRef',
- style: n,
- onFocus: this.handleStartFocus
- }),
- e(),
- h('div', {
- 'aria-hidden': 'true',
- style: n,
- ref: 'focusableEndRef',
- tabindex: t ? '0' : '-1',
- onFocus: this.handleEndFocus
- })
- ]);
- }
- });
- function sP(e, t) {
- t &&
- (Hn(() => {
- const { value: n } = e;
- n && Yh.registerHandler(n, t);
- }),
- qn(() => {
- const { value: n } = e;
- n && Yh.unregisterHandler(n);
- }));
- }
- let cc = 0,
- _C = '',
- RC = '',
- PC = '',
- kC = '';
- const Xm = Z('0px');
- function cP(e) {
- if (typeof document > 'u') return;
- const t = document.documentElement;
- let n,
- r = !1;
- const o = () => {
- (t.style.marginRight = _C),
- (t.style.overflow = RC),
- (t.style.overflowX = PC),
- (t.style.overflowY = kC),
- (Xm.value = '0px');
- };
- Hn(() => {
- n = $t(
- e,
- i => {
- if (i) {
- if (!cc) {
- const a = window.innerWidth - t.offsetWidth;
- a > 0 &&
- ((_C = t.style.marginRight),
- (t.style.marginRight = `${a}px`),
- (Xm.value = `${a}px`)),
- (RC = t.style.overflow),
- (PC = t.style.overflowX),
- (kC = t.style.overflowY),
- (t.style.overflow = 'hidden'),
- (t.style.overflowX = 'hidden'),
- (t.style.overflowY = 'hidden');
- }
- (r = !0), cc++;
- } else cc--, cc || o(), (r = !1);
- },
- { immediate: !0 }
- );
- }),
- qn(() => {
- n == null || n(), r && (cc--, cc || o(), (r = !1));
- });
- }
- const J0 = Z(!1),
- TC = () => {
- J0.value = !0;
- },
- $C = () => {
- J0.value = !1;
- };
- let Ed = 0;
- const dP = () => (
- Fo &&
- (yl(() => {
- Ed ||
- (window.addEventListener('compositionstart', TC),
- window.addEventListener('compositionend', $C)),
- Ed++;
- }),
- qn(() => {
- Ed <= 1
- ? (window.removeEventListener('compositionstart', TC),
- window.removeEventListener('compositionend', $C),
- (Ed = 0))
- : Ed--;
- })),
- J0
- );
- function ey(e) {
- const t = { isDeactivated: !1 };
- let n = !1;
- return (
- Av(() => {
- if (((t.isDeactivated = !1), !n)) {
- n = !0;
- return;
- }
- e();
- }),
- Vc(() => {
- (t.isDeactivated = !0), n || (n = !0);
- }),
- t
- );
- }
- function OC(e) {
- return e.nodeName === '#document';
- }
- const Zm = 'n-form-item';
- function ei(
- e,
- { defaultSize: t = 'medium', mergedSize: n, mergedDisabled: r } = {}
- ) {
- const o = Ze(Zm, null);
- Rt(Zm, null);
- const i = I(
- n
- ? () => n(o)
- : () => {
- const { size: c } = e;
- if (c) return c;
- if (o) {
- const { mergedSize: d } = o;
- if (d.value !== void 0) return d.value;
- }
- return t;
- }
- ),
- a = I(
- r
- ? () => r(o)
- : () => {
- const { disabled: c } = e;
- return c !== void 0 ? c : o ? o.disabled.value : !1;
- }
- ),
- s = I(() => {
- const { status: c } = e;
- return c || (o == null ? void 0 : o.mergedValidationStatus.value);
- });
- return (
- qn(() => {
- o && o.restoreValidation();
- }),
- {
- mergedSizeRef: i,
- mergedDisabledRef: a,
- mergedStatusRef: s,
- nTriggerFormBlur() {
- o && o.handleContentBlur();
- },
- nTriggerFormChange() {
- o && o.handleContentChange();
- },
- nTriggerFormFocus() {
- o && o.handleContentFocus();
- },
- nTriggerFormInput() {
- o && o.handleContentInput();
- }
- }
- );
- }
- var SF =
- typeof global == 'object' && global && global.Object === Object && global;
- const uP = SF;
- var _F = typeof self == 'object' && self && self.Object === Object && self,
- RF = uP || _F || Function('return this')();
- const xi = RF;
- var PF = xi.Symbol;
- const fl = PF;
- var fP = Object.prototype,
- kF = fP.hasOwnProperty,
- TF = fP.toString,
- Md = fl ? fl.toStringTag : void 0;
- function $F(e) {
- var t = kF.call(e, Md),
- n = e[Md];
- try {
- e[Md] = void 0;
- var r = !0;
- } catch (i) {}
- var o = TF.call(e);
- return r && (t ? (e[Md] = n) : delete e[Md]), o;
- }
- var OF = Object.prototype,
- zF = OF.toString;
- function AF(e) {
- return zF.call(e);
- }
- var EF = '[object Null]',
- MF = '[object Undefined]',
- zC = fl ? fl.toStringTag : void 0;
- function ks(e) {
- return e == null
- ? e === void 0
- ? MF
- : EF
- : zC && zC in Object(e)
- ? $F(e)
- : AF(e);
- }
- function hl(e) {
- return e != null && typeof e == 'object';
- }
- var IF = '[object Symbol]';
- function Lv(e) {
- return typeof e == 'symbol' || (hl(e) && ks(e) == IF);
- }
- function hP(e, t) {
- for (var n = -1, r = e == null ? 0 : e.length, o = Array(r); ++n < r; )
- o[n] = t(e[n], n, e);
- return o;
- }
- var DF = Array.isArray;
- const Qo = DF;
- var FF = 1 / 0,
- AC = fl ? fl.prototype : void 0,
- EC = AC ? AC.toString : void 0;
- function vP(e) {
- if (typeof e == 'string') return e;
- if (Qo(e)) return hP(e, vP) + '';
- if (Lv(e)) return EC ? EC.call(e) : '';
- var t = e + '';
- return t == '0' && 1 / e == -FF ? '-0' : t;
- }
- var BF = /\s/;
- function LF(e) {
- for (var t = e.length; t-- && BF.test(e.charAt(t)); );
- return t;
- }
- var NF = /^\s+/;
- function HF(e) {
- return e && e.slice(0, LF(e) + 1).replace(NF, '');
- }
- function Jo(e) {
- var t = typeof e;
- return e != null && (t == 'object' || t == 'function');
- }
- var MC = 0 / 0,
- jF = /^[-+]0x[0-9a-f]+$/i,
- UF = /^0b[01]+$/i,
- WF = /^0o[0-7]+$/i,
- VF = parseInt;
- function IC(e) {
- if (typeof e == 'number') return e;
- if (Lv(e)) return MC;
- if (Jo(e)) {
- var t = typeof e.valueOf == 'function' ? e.valueOf() : e;
- e = Jo(t) ? t + '' : t;
- }
- if (typeof e != 'string') return e === 0 ? e : +e;
- e = HF(e);
- var n = UF.test(e);
- return n || WF.test(e) ? VF(e.slice(2), n ? 2 : 8) : jF.test(e) ? MC : +e;
- }
- function ty(e) {
- return e;
- }
- var KF = '[object AsyncFunction]',
- qF = '[object Function]',
- YF = '[object GeneratorFunction]',
- GF = '[object Proxy]';
- function ny(e) {
- if (!Jo(e)) return !1;
- var t = ks(e);
- return t == qF || t == YF || t == KF || t == GF;
- }
- var XF = xi['__core-js_shared__'];
- const $g = XF;
- var DC = (function () {
- var e = /[^.]+$/.exec(($g && $g.keys && $g.keys.IE_PROTO) || '');
- return e ? 'Symbol(src)_1.' + e : '';
- })();
- function ZF(e) {
- return !!DC && DC in e;
- }
- var QF = Function.prototype,
- JF = QF.toString;
- function Ts(e) {
- if (e != null) {
- try {
- return JF.call(e);
- } catch (t) {}
- try {
- return e + '';
- } catch (t) {}
- }
- return '';
- }
- var e8 = /[\\^$.*+?()[\]{}|]/g,
- t8 = /^\[object .+?Constructor\]$/,
- n8 = Function.prototype,
- r8 = Object.prototype,
- o8 = n8.toString,
- i8 = r8.hasOwnProperty,
- a8 = RegExp(
- '^' +
- o8
- .call(i8)
- .replace(e8, '\\$&')
- .replace(
- /hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,
- '$1.*?'
- ) +
- '$'
- );
- function l8(e) {
- if (!Jo(e) || ZF(e)) return !1;
- var t = ny(e) ? a8 : t8;
- return t.test(Ts(e));
- }
- function s8(e, t) {
- return e == null ? void 0 : e[t];
- }
- function $s(e, t) {
- var n = s8(e, t);
- return l8(n) ? n : void 0;
- }
- var c8 = $s(xi, 'WeakMap');
- const Qm = c8;
- var FC = Object.create,
- d8 = (function () {
- function e() {}
- return function (t) {
- if (!Jo(t)) return {};
- if (FC) return FC(t);
- e.prototype = t;
- var n = new e();
- return (e.prototype = void 0), n;
- };
- })();
- const u8 = d8;
- function f8(e, t, n) {
- switch (n.length) {
- case 0:
- return e.call(t);
- case 1:
- return e.call(t, n[0]);
- case 2:
- return e.call(t, n[0], n[1]);
- case 3:
- return e.call(t, n[0], n[1], n[2]);
- }
- return e.apply(t, n);
- }
- function h8(e, t) {
- var n = -1,
- r = e.length;
- for (t || (t = Array(r)); ++n < r; ) t[n] = e[n];
- return t;
- }
- var v8 = 800,
- p8 = 16,
- g8 = Date.now;
- function m8(e) {
- var t = 0,
- n = 0;
- return function () {
- var r = g8(),
- o = p8 - (r - n);
- if (((n = r), o > 0)) {
- if (++t >= v8) return arguments[0];
- } else t = 0;
- return e.apply(void 0, arguments);
- };
- }
- function b8(e) {
- return function () {
- return e;
- };
- }
- var y8 = (function () {
- try {
- var e = $s(Object, 'defineProperty');
- return e({}, '', {}), e;
- } catch (t) {}
- })();
- const Gh = y8;
- var x8 = Gh
- ? function (e, t) {
- return Gh(e, 'toString', {
- configurable: !0,
- enumerable: !1,
- value: b8(t),
- writable: !0
- });
- }
- : ty;
- const w8 = x8;
- var C8 = m8(w8);
- const S8 = C8;
- var _8 = 9007199254740991,
- R8 = /^(?:0|[1-9]\d*)$/;
- function ry(e, t) {
- var n = typeof e;
- return (
- (t = t == null ? _8 : t),
- !!t &&
- (n == 'number' || (n != 'symbol' && R8.test(e))) &&
- e > -1 &&
- e % 1 == 0 &&
- e < t
- );
- }
- function oy(e, t, n) {
- t == '__proto__' && Gh
- ? Gh(e, t, { configurable: !0, enumerable: !0, value: n, writable: !0 })
- : (e[t] = n);
- }
- function Uu(e, t) {
- return e === t || (e !== e && t !== t);
- }
- var P8 = Object.prototype,
- k8 = P8.hasOwnProperty;
- function T8(e, t, n) {
- var r = e[t];
- (!(k8.call(e, t) && Uu(r, n)) || (n === void 0 && !(t in e))) && oy(e, t, n);
- }
- function $8(e, t, n, r) {
- var o = !n;
- n || (n = {});
- for (var i = -1, a = t.length; ++i < a; ) {
- var s = t[i],
- c = r ? r(n[s], e[s], s, n, e) : void 0;
- c === void 0 && (c = e[s]), o ? oy(n, s, c) : T8(n, s, c);
- }
- return n;
- }
- var BC = Math.max;
- function O8(e, t, n) {
- return (
- (t = BC(t === void 0 ? e.length - 1 : t, 0)),
- function () {
- for (
- var r = arguments, o = -1, i = BC(r.length - t, 0), a = Array(i);
- ++o < i;
- )
- a[o] = r[t + o];
- o = -1;
- for (var s = Array(t + 1); ++o < t; ) s[o] = r[o];
- return (s[t] = n(a)), f8(e, this, s);
- }
- );
- }
- function z8(e, t) {
- return S8(O8(e, t, ty), e + '');
- }
- var A8 = 9007199254740991;
- function iy(e) {
- return typeof e == 'number' && e > -1 && e % 1 == 0 && e <= A8;
- }
- function Jc(e) {
- return e != null && iy(e.length) && !ny(e);
- }
- function E8(e, t, n) {
- if (!Jo(n)) return !1;
- var r = typeof t;
- return (r == 'number' ? Jc(n) && ry(t, n.length) : r == 'string' && t in n)
- ? Uu(n[t], e)
- : !1;
- }
- function M8(e) {
- return z8(function (t, n) {
- var r = -1,
- o = n.length,
- i = o > 1 ? n[o - 1] : void 0,
- a = o > 2 ? n[2] : void 0;
- for (
- i = e.length > 3 && typeof i == 'function' ? (o--, i) : void 0,
- a && E8(n[0], n[1], a) && ((i = o < 3 ? void 0 : i), (o = 1)),
- t = Object(t);
- ++r < o;
- ) {
- var s = n[r];
- s && e(t, s, r, i);
- }
- return t;
- });
- }
- var I8 = Object.prototype;
- function ay(e) {
- var t = e && e.constructor,
- n = (typeof t == 'function' && t.prototype) || I8;
- return e === n;
- }
- function D8(e, t) {
- for (var n = -1, r = Array(e); ++n < e; ) r[n] = t(n);
- return r;
- }
- var F8 = '[object Arguments]';
- function LC(e) {
- return hl(e) && ks(e) == F8;
- }
- var pP = Object.prototype,
- B8 = pP.hasOwnProperty,
- L8 = pP.propertyIsEnumerable,
- N8 = LC(
- (function () {
- return arguments;
- })()
- )
- ? LC
- : function (e) {
- return hl(e) && B8.call(e, 'callee') && !L8.call(e, 'callee');
- };
- const Xh = N8;
- function H8() {
- return !1;
- }
- var gP = typeof exports == 'object' && exports && !exports.nodeType && exports,
- NC = gP && typeof module == 'object' && module && !module.nodeType && module,
- j8 = NC && NC.exports === gP,
- HC = j8 ? xi.Buffer : void 0,
- U8 = HC ? HC.isBuffer : void 0,
- W8 = U8 || H8;
- const Zh = W8;
- var V8 = '[object Arguments]',
- K8 = '[object Array]',
- q8 = '[object Boolean]',
- Y8 = '[object Date]',
- G8 = '[object Error]',
- X8 = '[object Function]',
- Z8 = '[object Map]',
- Q8 = '[object Number]',
- J8 = '[object Object]',
- eB = '[object RegExp]',
- tB = '[object Set]',
- nB = '[object String]',
- rB = '[object WeakMap]',
- oB = '[object ArrayBuffer]',
- iB = '[object DataView]',
- aB = '[object Float32Array]',
- lB = '[object Float64Array]',
- sB = '[object Int8Array]',
- cB = '[object Int16Array]',
- dB = '[object Int32Array]',
- uB = '[object Uint8Array]',
- fB = '[object Uint8ClampedArray]',
- hB = '[object Uint16Array]',
- vB = '[object Uint32Array]',
- Gn = {};
- Gn[aB] =
- Gn[lB] =
- Gn[sB] =
- Gn[cB] =
- Gn[dB] =
- Gn[uB] =
- Gn[fB] =
- Gn[hB] =
- Gn[vB] =
- !0;
- Gn[V8] =
- Gn[K8] =
- Gn[oB] =
- Gn[q8] =
- Gn[iB] =
- Gn[Y8] =
- Gn[G8] =
- Gn[X8] =
- Gn[Z8] =
- Gn[Q8] =
- Gn[J8] =
- Gn[eB] =
- Gn[tB] =
- Gn[nB] =
- Gn[rB] =
- !1;
- function pB(e) {
- return hl(e) && iy(e.length) && !!Gn[ks(e)];
- }
- function gB(e) {
- return function (t) {
- return e(t);
- };
- }
- var mP = typeof exports == 'object' && exports && !exports.nodeType && exports,
- tu = mP && typeof module == 'object' && module && !module.nodeType && module,
- mB = tu && tu.exports === mP,
- Og = mB && uP.process,
- bB = (function () {
- try {
- var e = tu && tu.require && tu.require('util').types;
- return e || (Og && Og.binding && Og.binding('util'));
- } catch (t) {}
- })();
- const jC = bB;
- var UC = jC && jC.isTypedArray,
- yB = UC ? gB(UC) : pB;
- const ly = yB;
- var xB = Object.prototype,
- wB = xB.hasOwnProperty;
- function bP(e, t) {
- var n = Qo(e),
- r = !n && Xh(e),
- o = !n && !r && Zh(e),
- i = !n && !r && !o && ly(e),
- a = n || r || o || i,
- s = a ? D8(e.length, String) : [],
- c = s.length;
- for (var d in e)
- (t || wB.call(e, d)) &&
- !(
- a &&
- (d == 'length' ||
- (o && (d == 'offset' || d == 'parent')) ||
- (i && (d == 'buffer' || d == 'byteLength' || d == 'byteOffset')) ||
- ry(d, c))
- ) &&
- s.push(d);
- return s;
- }
- function yP(e, t) {
- return function (n) {
- return e(t(n));
- };
- }
- var CB = yP(Object.keys, Object);
- const SB = CB;
- var _B = Object.prototype,
- RB = _B.hasOwnProperty;
- function PB(e) {
- if (!ay(e)) return SB(e);
- var t = [];
- for (var n in Object(e)) RB.call(e, n) && n != 'constructor' && t.push(n);
- return t;
- }
- function sy(e) {
- return Jc(e) ? bP(e) : PB(e);
- }
- function kB(e) {
- var t = [];
- if (e != null) for (var n in Object(e)) t.push(n);
- return t;
- }
- var TB = Object.prototype,
- $B = TB.hasOwnProperty;
- function OB(e) {
- if (!Jo(e)) return kB(e);
- var t = ay(e),
- n = [];
- for (var r in e) (r == 'constructor' && (t || !$B.call(e, r))) || n.push(r);
- return n;
- }
- function xP(e) {
- return Jc(e) ? bP(e, !0) : OB(e);
- }
- var zB = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
- AB = /^\w*$/;
- function cy(e, t) {
- if (Qo(e)) return !1;
- var n = typeof e;
- return n == 'number' || n == 'symbol' || n == 'boolean' || e == null || Lv(e)
- ? !0
- : AB.test(e) || !zB.test(e) || (t != null && e in Object(t));
- }
- var EB = $s(Object, 'create');
- const Ru = EB;
- function MB() {
- (this.__data__ = Ru ? Ru(null) : {}), (this.size = 0);
- }
- function IB(e) {
- var t = this.has(e) && delete this.__data__[e];
- return (this.size -= t ? 1 : 0), t;
- }
- var DB = '__lodash_hash_undefined__',
- FB = Object.prototype,
- BB = FB.hasOwnProperty;
- function LB(e) {
- var t = this.__data__;
- if (Ru) {
- var n = t[e];
- return n === DB ? void 0 : n;
- }
- return BB.call(t, e) ? t[e] : void 0;
- }
- var NB = Object.prototype,
- HB = NB.hasOwnProperty;
- function jB(e) {
- var t = this.__data__;
- return Ru ? t[e] !== void 0 : HB.call(t, e);
- }
- var UB = '__lodash_hash_undefined__';
- function WB(e, t) {
- var n = this.__data__;
- return (
- (this.size += this.has(e) ? 0 : 1),
- (n[e] = Ru && t === void 0 ? UB : t),
- this
- );
- }
- function ws(e) {
- var t = -1,
- n = e == null ? 0 : e.length;
- for (this.clear(); ++t < n; ) {
- var r = e[t];
- this.set(r[0], r[1]);
- }
- }
- ws.prototype.clear = MB;
- ws.prototype.delete = IB;
- ws.prototype.get = LB;
- ws.prototype.has = jB;
- ws.prototype.set = WB;
- function VB() {
- (this.__data__ = []), (this.size = 0);
- }
- function Nv(e, t) {
- for (var n = e.length; n--; ) if (Uu(e[n][0], t)) return n;
- return -1;
- }
- var KB = Array.prototype,
- qB = KB.splice;
- function YB(e) {
- var t = this.__data__,
- n = Nv(t, e);
- if (n < 0) return !1;
- var r = t.length - 1;
- return n == r ? t.pop() : qB.call(t, n, 1), --this.size, !0;
- }
- function GB(e) {
- var t = this.__data__,
- n = Nv(t, e);
- return n < 0 ? void 0 : t[n][1];
- }
- function XB(e) {
- return Nv(this.__data__, e) > -1;
- }
- function ZB(e, t) {
- var n = this.__data__,
- r = Nv(n, e);
- return r < 0 ? (++this.size, n.push([e, t])) : (n[r][1] = t), this;
- }
- function Ra(e) {
- var t = -1,
- n = e == null ? 0 : e.length;
- for (this.clear(); ++t < n; ) {
- var r = e[t];
- this.set(r[0], r[1]);
- }
- }
- Ra.prototype.clear = VB;
- Ra.prototype.delete = YB;
- Ra.prototype.get = GB;
- Ra.prototype.has = XB;
- Ra.prototype.set = ZB;
- var QB = $s(xi, 'Map');
- const Pu = QB;
- function JB() {
- (this.size = 0),
- (this.__data__ = {
- hash: new ws(),
- map: new (Pu || Ra)(),
- string: new ws()
- });
- }
- function eL(e) {
- var t = typeof e;
- return t == 'string' || t == 'number' || t == 'symbol' || t == 'boolean'
- ? e !== '__proto__'
- : e === null;
- }
- function Hv(e, t) {
- var n = e.__data__;
- return eL(t) ? n[typeof t == 'string' ? 'string' : 'hash'] : n.map;
- }
- function tL(e) {
- var t = Hv(this, e).delete(e);
- return (this.size -= t ? 1 : 0), t;
- }
- function nL(e) {
- return Hv(this, e).get(e);
- }
- function rL(e) {
- return Hv(this, e).has(e);
- }
- function oL(e, t) {
- var n = Hv(this, e),
- r = n.size;
- return n.set(e, t), (this.size += n.size == r ? 0 : 1), this;
- }
- function Pa(e) {
- var t = -1,
- n = e == null ? 0 : e.length;
- for (this.clear(); ++t < n; ) {
- var r = e[t];
- this.set(r[0], r[1]);
- }
- }
- Pa.prototype.clear = JB;
- Pa.prototype.delete = tL;
- Pa.prototype.get = nL;
- Pa.prototype.has = rL;
- Pa.prototype.set = oL;
- var iL = 'Expected a function';
- function dy(e, t) {
- if (typeof e != 'function' || (t != null && typeof t != 'function'))
- throw new TypeError(iL);
- var n = function () {
- var r = arguments,
- o = t ? t.apply(this, r) : r[0],
- i = n.cache;
- if (i.has(o)) return i.get(o);
- var a = e.apply(this, r);
- return (n.cache = i.set(o, a) || i), a;
- };
- return (n.cache = new (dy.Cache || Pa)()), n;
- }
- dy.Cache = Pa;
- var aL = 500;
- function lL(e) {
- var t = dy(e, function (r) {
- return n.size === aL && n.clear(), r;
- }),
- n = t.cache;
- return t;
- }
- var sL =
- /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,
- cL = /\\(\\)?/g,
- dL = lL(function (e) {
- var t = [];
- return (
- e.charCodeAt(0) === 46 && t.push(''),
- e.replace(sL, function (n, r, o, i) {
- t.push(o ? i.replace(cL, '$1') : r || n);
- }),
- t
- );
- });
- const uL = dL;
- function jv(e) {
- return e == null ? '' : vP(e);
- }
- function wP(e, t) {
- return Qo(e) ? e : cy(e, t) ? [e] : uL(jv(e));
- }
- var fL = 1 / 0;
- function Uv(e) {
- if (typeof e == 'string' || Lv(e)) return e;
- var t = e + '';
- return t == '0' && 1 / e == -fL ? '-0' : t;
- }
- function CP(e, t) {
- t = wP(t, e);
- for (var n = 0, r = t.length; e != null && n < r; ) e = e[Uv(t[n++])];
- return n && n == r ? e : void 0;
- }
- function ku(e, t, n) {
- var r = e == null ? void 0 : CP(e, t);
- return r === void 0 ? n : r;
- }
- function hL(e, t) {
- for (var n = -1, r = t.length, o = e.length; ++n < r; ) e[o + n] = t[n];
- return e;
- }
- var vL = yP(Object.getPrototypeOf, Object);
- const SP = vL;
- var pL = '[object Object]',
- gL = Function.prototype,
- mL = Object.prototype,
- _P = gL.toString,
- bL = mL.hasOwnProperty,
- yL = _P.call(Object);
- function xL(e) {
- if (!hl(e) || ks(e) != pL) return !1;
- var t = SP(e);
- if (t === null) return !0;
- var n = bL.call(t, 'constructor') && t.constructor;
- return typeof n == 'function' && n instanceof n && _P.call(n) == yL;
- }
- function wL(e, t, n) {
- var r = -1,
- o = e.length;
- t < 0 && (t = -t > o ? 0 : o + t),
- (n = n > o ? o : n),
- n < 0 && (n += o),
- (o = t > n ? 0 : (n - t) >>> 0),
- (t >>>= 0);
- for (var i = Array(o); ++r < o; ) i[r] = e[r + t];
- return i;
- }
- function CL(e, t, n) {
- var r = e.length;
- return (n = n === void 0 ? r : n), !t && n >= r ? e : wL(e, t, n);
- }
- var SL = '\\ud800-\\udfff',
- _L = '\\u0300-\\u036f',
- RL = '\\ufe20-\\ufe2f',
- PL = '\\u20d0-\\u20ff',
- kL = _L + RL + PL,
- TL = '\\ufe0e\\ufe0f',
- $L = '\\u200d',
- OL = RegExp('[' + $L + SL + kL + TL + ']');
- function RP(e) {
- return OL.test(e);
- }
- function zL(e) {
- return e.split('');
- }
- var PP = '\\ud800-\\udfff',
- AL = '\\u0300-\\u036f',
- EL = '\\ufe20-\\ufe2f',
- ML = '\\u20d0-\\u20ff',
- IL = AL + EL + ML,
- DL = '\\ufe0e\\ufe0f',
- FL = '[' + PP + ']',
- Jm = '[' + IL + ']',
- eb = '\\ud83c[\\udffb-\\udfff]',
- BL = '(?:' + Jm + '|' + eb + ')',
- kP = '[^' + PP + ']',
- TP = '(?:\\ud83c[\\udde6-\\uddff]){2}',
- $P = '[\\ud800-\\udbff][\\udc00-\\udfff]',
- LL = '\\u200d',
- OP = BL + '?',
- zP = '[' + DL + ']?',
- NL = '(?:' + LL + '(?:' + [kP, TP, $P].join('|') + ')' + zP + OP + ')*',
- HL = zP + OP + NL,
- jL = '(?:' + [kP + Jm + '?', Jm, TP, $P, FL].join('|') + ')',
- UL = RegExp(eb + '(?=' + eb + ')|' + jL + HL, 'g');
- function WL(e) {
- return e.match(UL) || [];
- }
- function VL(e) {
- return RP(e) ? WL(e) : zL(e);
- }
- function KL(e) {
- return function (t) {
- t = jv(t);
- var n = RP(t) ? VL(t) : void 0,
- r = n ? n[0] : t.charAt(0),
- o = n ? CL(n, 1).join('') : t.slice(1);
- return r[e]() + o;
- };
- }
- var qL = KL('toUpperCase');
- const YL = qL;
- function GL(e, t, n, r) {
- var o = -1,
- i = e == null ? 0 : e.length;
- for (r && i && (n = e[++o]); ++o < i; ) n = t(n, e[o], o, e);
- return n;
- }
- function XL(e) {
- return function (t) {
- return e == null ? void 0 : e[t];
- };
- }
- var ZL = {
- À: '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'
- },
- QL = XL(ZL);
- const JL = QL;
- var e7 = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,
- t7 = '\\u0300-\\u036f',
- n7 = '\\ufe20-\\ufe2f',
- r7 = '\\u20d0-\\u20ff',
- o7 = t7 + n7 + r7,
- i7 = '[' + o7 + ']',
- a7 = RegExp(i7, 'g');
- function l7(e) {
- return (e = jv(e)), e && e.replace(e7, JL).replace(a7, '');
- }
- var s7 = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
- function c7(e) {
- return e.match(s7) || [];
- }
- var d7 = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
- function u7(e) {
- return d7.test(e);
- }
- var AP = '\\ud800-\\udfff',
- f7 = '\\u0300-\\u036f',
- h7 = '\\ufe20-\\ufe2f',
- v7 = '\\u20d0-\\u20ff',
- p7 = f7 + h7 + v7,
- EP = '\\u2700-\\u27bf',
- MP = 'a-z\\xdf-\\xf6\\xf8-\\xff',
- g7 = '\\xac\\xb1\\xd7\\xf7',
- m7 = '\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf',
- b7 = '\\u2000-\\u206f',
- y7 =
- ' \\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',
- IP = 'A-Z\\xc0-\\xd6\\xd8-\\xde',
- x7 = '\\ufe0e\\ufe0f',
- DP = g7 + m7 + b7 + y7,
- FP = "['’]",
- WC = '[' + DP + ']',
- w7 = '[' + p7 + ']',
- BP = '\\d+',
- C7 = '[' + EP + ']',
- LP = '[' + MP + ']',
- NP = '[^' + AP + DP + BP + EP + MP + IP + ']',
- S7 = '\\ud83c[\\udffb-\\udfff]',
- _7 = '(?:' + w7 + '|' + S7 + ')',
- R7 = '[^' + AP + ']',
- HP = '(?:\\ud83c[\\udde6-\\uddff]){2}',
- jP = '[\\ud800-\\udbff][\\udc00-\\udfff]',
- gc = '[' + IP + ']',
- P7 = '\\u200d',
- VC = '(?:' + LP + '|' + NP + ')',
- k7 = '(?:' + gc + '|' + NP + ')',
- KC = '(?:' + FP + '(?:d|ll|m|re|s|t|ve))?',
- qC = '(?:' + FP + '(?:D|LL|M|RE|S|T|VE))?',
- UP = _7 + '?',
- WP = '[' + x7 + ']?',
- T7 = '(?:' + P7 + '(?:' + [R7, HP, jP].join('|') + ')' + WP + UP + ')*',
- $7 = '\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])',
- O7 = '\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])',
- z7 = WP + UP + T7,
- A7 = '(?:' + [C7, HP, jP].join('|') + ')' + z7,
- E7 = RegExp(
- [
- gc + '?' + LP + '+' + KC + '(?=' + [WC, gc, '$'].join('|') + ')',
- k7 + '+' + qC + '(?=' + [WC, gc + VC, '$'].join('|') + ')',
- gc + '?' + VC + '+' + KC,
- gc + '+' + qC,
- O7,
- $7,
- BP,
- A7
- ].join('|'),
- 'g'
- );
- function M7(e) {
- return e.match(E7) || [];
- }
- function I7(e, t, n) {
- return (
- (e = jv(e)),
- (t = n ? void 0 : t),
- t === void 0 ? (u7(e) ? M7(e) : c7(e)) : e.match(t) || []
- );
- }
- var D7 = "['’]",
- F7 = RegExp(D7, 'g');
- function B7(e) {
- return function (t) {
- return GL(I7(l7(t).replace(F7, '')), e, '');
- };
- }
- function L7() {
- (this.__data__ = new Ra()), (this.size = 0);
- }
- function N7(e) {
- var t = this.__data__,
- n = t.delete(e);
- return (this.size = t.size), n;
- }
- function H7(e) {
- return this.__data__.get(e);
- }
- function j7(e) {
- return this.__data__.has(e);
- }
- var U7 = 200;
- function W7(e, t) {
- var n = this.__data__;
- if (n instanceof Ra) {
- var r = n.__data__;
- if (!Pu || r.length < U7 - 1)
- return r.push([e, t]), (this.size = ++n.size), this;
- n = this.__data__ = new Pa(r);
- }
- return n.set(e, t), (this.size = n.size), this;
- }
- function Hi(e) {
- var t = (this.__data__ = new Ra(e));
- this.size = t.size;
- }
- Hi.prototype.clear = L7;
- Hi.prototype.delete = N7;
- Hi.prototype.get = H7;
- Hi.prototype.has = j7;
- Hi.prototype.set = W7;
- var VP = typeof exports == 'object' && exports && !exports.nodeType && exports,
- YC = VP && typeof module == 'object' && module && !module.nodeType && module,
- V7 = YC && YC.exports === VP,
- GC = V7 ? xi.Buffer : void 0,
- XC = GC ? GC.allocUnsafe : void 0;
- function K7(e, t) {
- if (t) return e.slice();
- var n = e.length,
- r = XC ? XC(n) : new e.constructor(n);
- return e.copy(r), r;
- }
- function q7(e, t) {
- for (var n = -1, r = e == null ? 0 : e.length, o = 0, i = []; ++n < r; ) {
- var a = e[n];
- t(a, n, e) && (i[o++] = a);
- }
- return i;
- }
- function Y7() {
- return [];
- }
- var G7 = Object.prototype,
- X7 = G7.propertyIsEnumerable,
- ZC = Object.getOwnPropertySymbols,
- Z7 = ZC
- ? function (e) {
- return e == null
- ? []
- : ((e = Object(e)),
- q7(ZC(e), function (t) {
- return X7.call(e, t);
- }));
- }
- : Y7;
- const Q7 = Z7;
- function J7(e, t, n) {
- var r = t(e);
- return Qo(e) ? r : hL(r, n(e));
- }
- function QC(e) {
- return J7(e, sy, Q7);
- }
- var e9 = $s(xi, 'DataView');
- const tb = e9;
- var t9 = $s(xi, 'Promise');
- const nb = t9;
- var n9 = $s(xi, 'Set');
- const rb = n9;
- var JC = '[object Map]',
- r9 = '[object Object]',
- eS = '[object Promise]',
- tS = '[object Set]',
- nS = '[object WeakMap]',
- rS = '[object DataView]',
- o9 = Ts(tb),
- i9 = Ts(Pu),
- a9 = Ts(nb),
- l9 = Ts(rb),
- s9 = Ts(Qm),
- es = ks;
- ((tb && es(new tb(new ArrayBuffer(1))) != rS) ||
- (Pu && es(new Pu()) != JC) ||
- (nb && es(nb.resolve()) != eS) ||
- (rb && es(new rb()) != tS) ||
- (Qm && es(new Qm()) != nS)) &&
- (es = function (e) {
- var t = ks(e),
- n = t == r9 ? e.constructor : void 0,
- r = n ? Ts(n) : '';
- if (r)
- switch (r) {
- case o9:
- return rS;
- case i9:
- return JC;
- case a9:
- return eS;
- case l9:
- return tS;
- case s9:
- return nS;
- }
- return t;
- });
- const oS = es;
- var c9 = xi.Uint8Array;
- const Qh = c9;
- function d9(e) {
- var t = new e.constructor(e.byteLength);
- return new Qh(t).set(new Qh(e)), t;
- }
- function u9(e, t) {
- var n = t ? d9(e.buffer) : e.buffer;
- return new e.constructor(n, e.byteOffset, e.length);
- }
- function f9(e) {
- return typeof e.constructor == 'function' && !ay(e) ? u8(SP(e)) : {};
- }
- var h9 = '__lodash_hash_undefined__';
- function v9(e) {
- return this.__data__.set(e, h9), this;
- }
- function p9(e) {
- return this.__data__.has(e);
- }
- function Jh(e) {
- var t = -1,
- n = e == null ? 0 : e.length;
- for (this.__data__ = new Pa(); ++t < n; ) this.add(e[t]);
- }
- Jh.prototype.add = Jh.prototype.push = v9;
- Jh.prototype.has = p9;
- function g9(e, t) {
- for (var n = -1, r = e == null ? 0 : e.length; ++n < r; )
- if (t(e[n], n, e)) return !0;
- return !1;
- }
- function m9(e, t) {
- return e.has(t);
- }
- var b9 = 1,
- y9 = 2;
- function KP(e, t, n, r, o, i) {
- var a = n & b9,
- s = e.length,
- c = t.length;
- if (s != c && !(a && c > s)) return !1;
- var d = i.get(e),
- f = i.get(t);
- if (d && f) return d == t && f == e;
- var v = -1,
- p = !0,
- m = n & y9 ? new Jh() : void 0;
- for (i.set(e, t), i.set(t, e); ++v < s; ) {
- var g = e[v],
- w = t[v];
- if (r) var x = a ? r(w, g, v, t, e, i) : r(g, w, v, e, t, i);
- if (x !== void 0) {
- if (x) continue;
- p = !1;
- break;
- }
- if (m) {
- if (
- !g9(t, function (y, C) {
- if (!m9(m, C) && (g === y || o(g, y, n, r, i))) return m.push(C);
- })
- ) {
- p = !1;
- break;
- }
- } else if (!(g === w || o(g, w, n, r, i))) {
- p = !1;
- break;
- }
- }
- return i.delete(e), i.delete(t), p;
- }
- function x9(e) {
- var t = -1,
- n = Array(e.size);
- return (
- e.forEach(function (r, o) {
- n[++t] = [o, r];
- }),
- n
- );
- }
- function w9(e) {
- var t = -1,
- n = Array(e.size);
- return (
- e.forEach(function (r) {
- n[++t] = r;
- }),
- n
- );
- }
- var C9 = 1,
- S9 = 2,
- _9 = '[object Boolean]',
- R9 = '[object Date]',
- P9 = '[object Error]',
- k9 = '[object Map]',
- T9 = '[object Number]',
- $9 = '[object RegExp]',
- O9 = '[object Set]',
- z9 = '[object String]',
- A9 = '[object Symbol]',
- E9 = '[object ArrayBuffer]',
- M9 = '[object DataView]',
- iS = fl ? fl.prototype : void 0,
- zg = iS ? iS.valueOf : void 0;
- function I9(e, t, n, r, o, i, a) {
- switch (n) {
- case M9:
- if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset)
- return !1;
- (e = e.buffer), (t = t.buffer);
- case E9:
- return !(e.byteLength != t.byteLength || !i(new Qh(e), new Qh(t)));
- case _9:
- case R9:
- case T9:
- return Uu(+e, +t);
- case P9:
- return e.name == t.name && e.message == t.message;
- case $9:
- case z9:
- return e == t + '';
- case k9:
- var s = x9;
- case O9:
- var c = r & C9;
- if ((s || (s = w9), e.size != t.size && !c)) return !1;
- var d = a.get(e);
- if (d) return d == t;
- (r |= S9), a.set(e, t);
- var f = KP(s(e), s(t), r, o, i, a);
- return a.delete(e), f;
- case A9:
- if (zg) return zg.call(e) == zg.call(t);
- }
- return !1;
- }
- var D9 = 1,
- F9 = Object.prototype,
- B9 = F9.hasOwnProperty;
- function L9(e, t, n, r, o, i) {
- var a = n & D9,
- s = QC(e),
- c = s.length,
- d = QC(t),
- f = d.length;
- if (c != f && !a) return !1;
- for (var v = c; v--; ) {
- var p = s[v];
- if (!(a ? p in t : B9.call(t, p))) return !1;
- }
- var m = i.get(e),
- g = i.get(t);
- if (m && g) return m == t && g == e;
- var w = !0;
- i.set(e, t), i.set(t, e);
- for (var x = a; ++v < c; ) {
- p = s[v];
- var y = e[p],
- C = t[p];
- if (r) var R = a ? r(C, y, p, t, e, i) : r(y, C, p, e, t, i);
- if (!(R === void 0 ? y === C || o(y, C, n, r, i) : R)) {
- w = !1;
- break;
- }
- x || (x = p == 'constructor');
- }
- if (w && !x) {
- var S = e.constructor,
- _ = t.constructor;
- S != _ &&
- 'constructor' in e &&
- 'constructor' in t &&
- !(
- typeof S == 'function' &&
- S instanceof S &&
- typeof _ == 'function' &&
- _ instanceof _
- ) &&
- (w = !1);
- }
- return i.delete(e), i.delete(t), w;
- }
- var N9 = 1,
- aS = '[object Arguments]',
- lS = '[object Array]',
- vh = '[object Object]',
- H9 = Object.prototype,
- sS = H9.hasOwnProperty;
- function j9(e, t, n, r, o, i) {
- var a = Qo(e),
- s = Qo(t),
- c = a ? lS : oS(e),
- d = s ? lS : oS(t);
- (c = c == aS ? vh : c), (d = d == aS ? vh : d);
- var f = c == vh,
- v = d == vh,
- p = c == d;
- if (p && Zh(e)) {
- if (!Zh(t)) return !1;
- (a = !0), (f = !1);
- }
- if (p && !f)
- return (
- i || (i = new Hi()),
- a || ly(e) ? KP(e, t, n, r, o, i) : I9(e, t, c, n, r, o, i)
- );
- if (!(n & N9)) {
- var m = f && sS.call(e, '__wrapped__'),
- g = v && sS.call(t, '__wrapped__');
- if (m || g) {
- var w = m ? e.value() : e,
- x = g ? t.value() : t;
- return i || (i = new Hi()), o(w, x, n, r, i);
- }
- }
- return p ? (i || (i = new Hi()), L9(e, t, n, r, o, i)) : !1;
- }
- function uy(e, t, n, r, o) {
- return e === t
- ? !0
- : e == null || t == null || (!hl(e) && !hl(t))
- ? e !== e && t !== t
- : j9(e, t, n, r, uy, o);
- }
- var U9 = 1,
- W9 = 2;
- function V9(e, t, n, r) {
- var o = n.length,
- i = o,
- a = !r;
- if (e == null) return !i;
- for (e = Object(e); o--; ) {
- var s = n[o];
- if (a && s[2] ? s[1] !== e[s[0]] : !(s[0] in e)) return !1;
- }
- for (; ++o < i; ) {
- s = n[o];
- var c = s[0],
- d = e[c],
- f = s[1];
- if (a && s[2]) {
- if (d === void 0 && !(c in e)) return !1;
- } else {
- var v = new Hi();
- if (r) var p = r(d, f, c, e, t, v);
- if (!(p === void 0 ? uy(f, d, U9 | W9, r, v) : p)) return !1;
- }
- }
- return !0;
- }
- function qP(e) {
- return e === e && !Jo(e);
- }
- function K9(e) {
- for (var t = sy(e), n = t.length; n--; ) {
- var r = t[n],
- o = e[r];
- t[n] = [r, o, qP(o)];
- }
- return t;
- }
- function YP(e, t) {
- return function (n) {
- return n == null ? !1 : n[e] === t && (t !== void 0 || e in Object(n));
- };
- }
- function q9(e) {
- var t = K9(e);
- return t.length == 1 && t[0][2]
- ? YP(t[0][0], t[0][1])
- : function (n) {
- return n === e || V9(n, e, t);
- };
- }
- function Y9(e, t) {
- return e != null && t in Object(e);
- }
- function G9(e, t, n) {
- t = wP(t, e);
- for (var r = -1, o = t.length, i = !1; ++r < o; ) {
- var a = Uv(t[r]);
- if (!(i = e != null && n(e, a))) break;
- e = e[a];
- }
- return i || ++r != o
- ? i
- : ((o = e == null ? 0 : e.length),
- !!o && iy(o) && ry(a, o) && (Qo(e) || Xh(e)));
- }
- function X9(e, t) {
- return e != null && G9(e, t, Y9);
- }
- var Z9 = 1,
- Q9 = 2;
- function J9(e, t) {
- return cy(e) && qP(t)
- ? YP(Uv(e), t)
- : function (n) {
- var r = ku(n, e);
- return r === void 0 && r === t ? X9(n, e) : uy(t, r, Z9 | Q9);
- };
- }
- function eN(e) {
- return function (t) {
- return t == null ? void 0 : t[e];
- };
- }
- function tN(e) {
- return function (t) {
- return CP(t, e);
- };
- }
- function nN(e) {
- return cy(e) ? eN(Uv(e)) : tN(e);
- }
- function rN(e) {
- return typeof e == 'function'
- ? e
- : e == null
- ? ty
- : typeof e == 'object'
- ? Qo(e)
- ? J9(e[0], e[1])
- : q9(e)
- : nN(e);
- }
- function oN(e) {
- return function (t, n, r) {
- for (var o = -1, i = Object(t), a = r(t), s = a.length; s--; ) {
- var c = a[e ? s : ++o];
- if (n(i[c], c, i) === !1) break;
- }
- return t;
- };
- }
- var iN = oN();
- const GP = iN;
- function aN(e, t) {
- return e && GP(e, t, sy);
- }
- function lN(e, t) {
- return function (n, r) {
- if (n == null) return n;
- if (!Jc(n)) return e(n, r);
- for (
- var o = n.length, i = t ? o : -1, a = Object(n);
- (t ? i-- : ++i < o) && r(a[i], i, a) !== !1;
- );
- return n;
- };
- }
- var sN = lN(aN);
- const cN = sN;
- var dN = function () {
- return xi.Date.now();
- };
- const Ag = dN;
- var uN = 'Expected a function',
- fN = Math.max,
- hN = Math.min;
- function vN(e, t, n) {
- var r,
- o,
- i,
- a,
- s,
- c,
- d = 0,
- f = !1,
- v = !1,
- p = !0;
- if (typeof e != 'function') throw new TypeError(uN);
- (t = IC(t) || 0),
- Jo(n) &&
- ((f = !!n.leading),
- (v = 'maxWait' in n),
- (i = v ? fN(IC(n.maxWait) || 0, t) : i),
- (p = 'trailing' in n ? !!n.trailing : p));
- function m(P) {
- var T = r,
- A = o;
- return (r = o = void 0), (d = P), (a = e.apply(A, T)), a;
- }
- function g(P) {
- return (d = P), (s = setTimeout(y, t)), f ? m(P) : a;
- }
- function w(P) {
- var T = P - c,
- A = P - d,
- z = t - T;
- return v ? hN(z, i - A) : z;
- }
- function x(P) {
- var T = P - c,
- A = P - d;
- return c === void 0 || T >= t || T < 0 || (v && A >= i);
- }
- function y() {
- var P = Ag();
- if (x(P)) return C(P);
- s = setTimeout(y, w(P));
- }
- function C(P) {
- return (s = void 0), p && r ? m(P) : ((r = o = void 0), a);
- }
- function R() {
- s !== void 0 && clearTimeout(s), (d = 0), (r = c = o = s = void 0);
- }
- function S() {
- return s === void 0 ? a : C(Ag());
- }
- function _() {
- var P = Ag(),
- T = x(P);
- if (((r = arguments), (o = this), (c = P), T)) {
- if (s === void 0) return g(c);
- if (v) return clearTimeout(s), (s = setTimeout(y, t)), m(c);
- }
- return s === void 0 && (s = setTimeout(y, t)), a;
- }
- return (_.cancel = R), (_.flush = S), _;
- }
- function ob(e, t, n) {
- ((n !== void 0 && !Uu(e[t], n)) || (n === void 0 && !(t in e))) &&
- oy(e, t, n);
- }
- function pN(e) {
- return hl(e) && Jc(e);
- }
- function ib(e, t) {
- if (!(t === 'constructor' && typeof e[t] == 'function') && t != '__proto__')
- return e[t];
- }
- function gN(e) {
- return $8(e, xP(e));
- }
- function mN(e, t, n, r, o, i, a) {
- var s = ib(e, n),
- c = ib(t, n),
- d = a.get(c);
- if (d) {
- ob(e, n, d);
- return;
- }
- var f = i ? i(s, c, n + '', e, t, a) : void 0,
- v = f === void 0;
- if (v) {
- var p = Qo(c),
- m = !p && Zh(c),
- g = !p && !m && ly(c);
- (f = c),
- p || m || g
- ? Qo(s)
- ? (f = s)
- : pN(s)
- ? (f = h8(s))
- : m
- ? ((v = !1), (f = K7(c, !0)))
- : g
- ? ((v = !1), (f = u9(c, !0)))
- : (f = [])
- : xL(c) || Xh(c)
- ? ((f = s), Xh(s) ? (f = gN(s)) : (!Jo(s) || ny(s)) && (f = f9(c)))
- : (v = !1);
- }
- v && (a.set(c, f), o(f, c, r, i, a), a.delete(c)), ob(e, n, f);
- }
- function XP(e, t, n, r, o) {
- e !== t &&
- GP(
- t,
- function (i, a) {
- if ((o || (o = new Hi()), Jo(i))) mN(e, t, a, n, XP, r, o);
- else {
- var s = r ? r(ib(e, a), i, a + '', e, t, o) : void 0;
- s === void 0 && (s = i), ob(e, a, s);
- }
- },
- xP
- );
- }
- function bN(e, t) {
- var n = -1,
- r = Jc(e) ? Array(e.length) : [];
- return (
- cN(e, function (o, i, a) {
- r[++n] = t(o, i, a);
- }),
- r
- );
- }
- function yN(e, t) {
- var n = Qo(e) ? hP : bN;
- return n(e, rN(t));
- }
- var xN = B7(function (e, t, n) {
- return e + (n ? '-' : '') + t.toLowerCase();
- });
- const ZP = xN;
- var wN = M8(function (e, t, n) {
- XP(e, t, n);
- });
- const Hd = wN;
- var CN = 'Expected a function';
- function Eg(e, t, n) {
- var r = !0,
- o = !0;
- if (typeof e != 'function') throw new TypeError(CN);
- return (
- Jo(n) &&
- ((r = 'leading' in n ? !!n.leading : r),
- (o = 'trailing' in n ? !!n.trailing : o)),
- vN(e, t, { leading: r, maxWait: t, trailing: o })
- );
- }
- const Bo = {
- 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: SN, fontFamily: _N, lineHeight: RN } = Bo,
- QP = F(
- 'body',
- `
- margin: 0;
- font-size: ${SN};
- font-family: ${_N};
- line-height: ${RN};
- -webkit-text-size-adjust: 100%;
- -webkit-tap-highlight-color: transparent;
- `,
- [
- F(
- 'input',
- `
- font-family: inherit;
- font-size: inherit;
- `
- )
- ]
- ),
- wa = 'n-config-provider',
- Ec = 'naive-ui-style';
- function Ke(e, t, n, r, o, i) {
- const a = wl(),
- s = Ze(wa, null);
- if (n) {
- const d = () => {
- const f = i == null ? void 0 : i.value;
- n.mount({
- id: f === void 0 ? t : f + t,
- head: !0,
- props: { bPrefix: f ? `.${f}-` : void 0 },
- anchorMetaName: Ec,
- ssr: a
- }),
- (s != null && s.preflightStyleDisabled) ||
- QP.mount({ id: 'n-global', head: !0, anchorMetaName: Ec, ssr: a });
- };
- a ? d() : yl(d);
- }
- return I(() => {
- var d;
- const {
- theme: { common: f, self: v, peers: p = {} } = {},
- themeOverrides: m = {},
- builtinThemeOverrides: g = {}
- } = o,
- { common: w, peers: x } = m,
- {
- common: y = void 0,
- [e]: { common: C = void 0, self: R = void 0, peers: S = {} } = {}
- } = (s == null ? void 0 : s.mergedThemeRef.value) || {},
- { common: _ = void 0, [e]: P = {} } =
- (s == null ? void 0 : s.mergedThemeOverridesRef.value) || {},
- { common: T, peers: A = {} } = P,
- z = Hd({}, f || C || y || r.common, _, T, w),
- k = Hd(
- (d = v || R || r.self) === null || d === void 0 ? void 0 : d(z),
- g,
- P,
- m
- );
- return {
- common: z,
- self: k,
- peers: Hd({}, r.peers, S, p),
- peerOverrides: Hd({}, g.peers, A, x)
- };
- });
- }
- Ke.props = {
- theme: Object,
- themeOverrides: Object,
- builtinThemeOverrides: Object
- };
- const JP = 'n';
- function yt(e = {}, t = { defaultBordered: !0 }) {
- const n = Ze(wa, null);
- return {
- inlineThemeDisabled: n == null ? void 0 : n.inlineThemeDisabled,
- mergedRtlRef: n == null ? void 0 : n.mergedRtlRef,
- mergedComponentPropsRef: n == null ? void 0 : n.mergedComponentPropsRef,
- mergedBreakpointsRef: n == null ? void 0 : n.mergedBreakpointsRef,
- mergedBorderedRef: I(() => {
- var r, o;
- const { bordered: i } = e;
- return i !== void 0
- ? i
- : (o =
- (r = n == null ? void 0 : n.mergedBorderedRef.value) !== null &&
- r !== void 0
- ? r
- : t.defaultBordered) !== null && o !== void 0
- ? o
- : !0;
- }),
- mergedClsPrefixRef: I(
- () => (n == null ? void 0 : n.mergedClsPrefixRef.value) || JP
- ),
- namespaceRef: I(() => (n == null ? void 0 : n.mergedNamespaceRef.value))
- };
- }
- const PN = {
- 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: '缩放到原始尺寸'
- }
- },
- kN = PN,
- TN = {
- 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'
- }
- },
- $N = TN;
- var ON = {
- 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}} 年' }
- },
- zN = function (t, n, r) {
- var o,
- i = ON[t];
- return (
- typeof i == 'string'
- ? (o = i)
- : n === 1
- ? (o = i.one)
- : (o = i.other.replace('{{count}}', String(n))),
- r != null && r.addSuffix
- ? r.comparison && r.comparison > 0
- ? o + '内'
- : o + '前'
- : o
- );
- };
- const AN = zN;
- function Rc(e) {
- return function () {
- var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {},
- n = t.width ? String(t.width) : e.defaultWidth,
- r = e.formats[n] || e.formats[e.defaultWidth];
- return r;
- };
- }
- var EN = {
- full: "y'年'M'月'd'日' EEEE",
- long: "y'年'M'月'd'日'",
- medium: 'yyyy-MM-dd',
- short: 'yy-MM-dd'
- },
- MN = {
- full: 'zzzz a h:mm:ss',
- long: 'z a h:mm:ss',
- medium: 'a h:mm:ss',
- short: 'a h:mm'
- },
- IN = {
- full: '{{date}} {{time}}',
- long: '{{date}} {{time}}',
- medium: '{{date}} {{time}}',
- short: '{{date}} {{time}}'
- },
- DN = {
- date: Rc({ formats: EN, defaultWidth: 'full' }),
- time: Rc({ formats: MN, defaultWidth: 'full' }),
- dateTime: Rc({ formats: IN, defaultWidth: 'full' })
- };
- const FN = DN;
- function Bt(e, t) {
- if (t.length < e)
- throw new TypeError(
- e +
- ' argument' +
- (e > 1 ? 's' : '') +
- ' required, but only ' +
- t.length +
- ' present'
- );
- }
- function qi(e) {
- '@babel/helpers - typeof';
- return (
- (qi =
- typeof Symbol == 'function' && typeof Symbol.iterator == 'symbol'
- ? function (t) {
- return typeof t;
- }
- : function (t) {
- return t &&
- typeof Symbol == 'function' &&
- t.constructor === Symbol &&
- t !== Symbol.prototype
- ? 'symbol'
- : typeof t;
- }),
- qi(e)
- );
- }
- function Xt(e) {
- Bt(1, arguments);
- var t = Object.prototype.toString.call(e);
- return e instanceof Date || (qi(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 < 'u' &&
- (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://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"
- ),
- console.warn(new Error().stack)),
- new Date(NaN));
- }
- function Ln(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);
- }
- var BN = {};
- function ed() {
- return BN;
- }
- function Ca(e, t) {
- var n, r, o, i, a, s, c, d;
- Bt(1, arguments);
- var f = ed(),
- v = Ln(
- (n =
- (r =
- (o =
- (i = t == null ? void 0 : t.weekStartsOn) !== null && i !== void 0
- ? i
- : t == null ||
- (a = t.locale) === null ||
- a === void 0 ||
- (s = a.options) === null ||
- s === void 0
- ? void 0
- : s.weekStartsOn) !== null && o !== void 0
- ? o
- : f.weekStartsOn) !== null && r !== void 0
- ? r
- : (c = f.locale) === null ||
- c === void 0 ||
- (d = c.options) === null ||
- d === void 0
- ? void 0
- : d.weekStartsOn) !== null && n !== void 0
- ? n
- : 0
- );
- if (!(v >= 0 && v <= 6))
- throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
- var p = Xt(e),
- m = p.getUTCDay(),
- g = (m < v ? 7 : 0) + m - v;
- return p.setUTCDate(p.getUTCDate() - g), p.setUTCHours(0, 0, 0, 0), p;
- }
- function LN(e, t, n) {
- Bt(2, arguments);
- var r = Ca(e, n),
- o = Ca(t, n);
- return r.getTime() === o.getTime();
- }
- function cS(e, t, n) {
- var r = 'eeee p';
- return LN(e, t, n)
- ? r
- : e.getTime() > t.getTime()
- ? "'下个'" + r
- : "'上个'" + r;
- }
- var NN = {
- lastWeek: cS,
- yesterday: "'昨天' p",
- today: "'今天' p",
- tomorrow: "'明天' p",
- nextWeek: cS,
- other: 'PP p'
- },
- HN = function (t, n, r, o) {
- var i = NN[t];
- return typeof i == 'function' ? i(n, r, o) : i;
- };
- const jN = HN;
- function Ii(e) {
- return function (t, n) {
- var r = n != null && n.context ? String(n.context) : 'standalone',
- o;
- if (r === 'formatting' && e.formattingValues) {
- var i = e.defaultFormattingWidth || e.defaultWidth,
- a = n != null && n.width ? String(n.width) : i;
- o = e.formattingValues[a] || e.formattingValues[i];
- } else {
- var s = e.defaultWidth,
- c = n != null && n.width ? String(n.width) : e.defaultWidth;
- o = e.values[c] || e.values[s];
- }
- var d = e.argumentCallback ? e.argumentCallback(t) : t;
- return o[d];
- };
- }
- var UN = {
- narrow: ['前', '公元'],
- abbreviated: ['前', '公元'],
- wide: ['公元前', '公元']
- },
- WN = {
- narrow: ['1', '2', '3', '4'],
- abbreviated: ['第一季', '第二季', '第三季', '第四季'],
- wide: ['第一季度', '第二季度', '第三季度', '第四季度']
- },
- VN = {
- narrow: [
- '一',
- '二',
- '三',
- '四',
- '五',
- '六',
- '七',
- '八',
- '九',
- '十',
- '十一',
- '十二'
- ],
- abbreviated: [
- '1月',
- '2月',
- '3月',
- '4月',
- '5月',
- '6月',
- '7月',
- '8月',
- '9月',
- '10月',
- '11月',
- '12月'
- ],
- wide: [
- '一月',
- '二月',
- '三月',
- '四月',
- '五月',
- '六月',
- '七月',
- '八月',
- '九月',
- '十月',
- '十一月',
- '十二月'
- ]
- },
- KN = {
- narrow: ['日', '一', '二', '三', '四', '五', '六'],
- short: ['日', '一', '二', '三', '四', '五', '六'],
- abbreviated: ['周日', '周一', '周二', '周三', '周四', '周五', '周六'],
- wide: ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六']
- },
- qN = {
- 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: '夜间'
- }
- },
- YN = {
- 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: '夜间'
- }
- },
- GN = function (t, n) {
- var r = Number(t);
- switch (n == null ? void 0 : n.unit) {
- case 'date':
- return r.toString() + '日';
- case 'hour':
- return r.toString() + '时';
- case 'minute':
- return r.toString() + '分';
- case 'second':
- return r.toString() + '秒';
- default:
- return '第 ' + r.toString();
- }
- },
- XN = {
- ordinalNumber: GN,
- era: Ii({ values: UN, defaultWidth: 'wide' }),
- quarter: Ii({
- values: WN,
- defaultWidth: 'wide',
- argumentCallback: function (t) {
- return t - 1;
- }
- }),
- month: Ii({ values: VN, defaultWidth: 'wide' }),
- day: Ii({ values: KN, defaultWidth: 'wide' }),
- dayPeriod: Ii({
- values: qN,
- defaultWidth: 'wide',
- formattingValues: YN,
- defaultFormattingWidth: 'wide'
- })
- };
- const ZN = XN;
- function Di(e) {
- return function (t) {
- var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {},
- r = n.width,
- o = (r && e.matchPatterns[r]) || e.matchPatterns[e.defaultMatchWidth],
- i = t.match(o);
- if (!i) return null;
- var a = i[0],
- s = (r && e.parsePatterns[r]) || e.parsePatterns[e.defaultParseWidth],
- c = Array.isArray(s)
- ? JN(s, function (v) {
- return v.test(a);
- })
- : QN(s, function (v) {
- return v.test(a);
- }),
- d;
- (d = e.valueCallback ? e.valueCallback(c) : c),
- (d = n.valueCallback ? n.valueCallback(d) : d);
- var f = t.slice(a.length);
- return { value: d, rest: f };
- };
- }
- function QN(e, t) {
- for (var n in e) if (e.hasOwnProperty(n) && t(e[n])) return n;
- }
- function JN(e, t) {
- for (var n = 0; n < e.length; n++) if (t(e[n])) return n;
- }
- function ek(e) {
- return function (t) {
- var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {},
- r = t.match(e.matchPattern);
- if (!r) return null;
- var o = r[0],
- i = t.match(e.parsePattern);
- if (!i) return null;
- var a = e.valueCallback ? e.valueCallback(i[0]) : i[0];
- a = n.valueCallback ? n.valueCallback(a) : a;
- var s = t.slice(o.length);
- return { value: a, rest: s };
- };
- }
- var eH = /^(第\s*)?\d+(日|时|分|秒)?/i,
- tH = /\d+/i,
- nH = { narrow: /^(前)/i, abbreviated: /^(前)/i, wide: /^(公元前|公元)/i },
- rH = { any: [/^(前)/i, /^(公元)/i] },
- oH = {
- narrow: /^[1234]/i,
- abbreviated: /^第[一二三四]刻/i,
- wide: /^第[一二三四]刻钟/i
- },
- iH = { any: [/(1|一)/i, /(2|二)/i, /(3|三)/i, /(4|四)/i] },
- aH = {
- narrow: /^(一|二|三|四|五|六|七|八|九|十[二一])/i,
- abbreviated: /^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,
- wide: /^(一|二|三|四|五|六|七|八|九|十[二一])月/i
- },
- lH = {
- 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
- ]
- },
- sH = {
- narrow: /^[一二三四五六日]/i,
- short: /^[一二三四五六日]/i,
- abbreviated: /^周[一二三四五六日]/i,
- wide: /^星期[一二三四五六日]/i
- },
- cH = { any: [/日/i, /一/i, /二/i, /三/i, /四/i, /五/i, /六/i] },
- dH = { any: /^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i },
- uH = {
- any: {
- am: /^上午?/i,
- pm: /^下午?/i,
- midnight: /^午夜/i,
- noon: /^[中正]午/i,
- morning: /^早上/i,
- afternoon: /^下午/i,
- evening: /^晚上?/i,
- night: /^凌晨/i
- }
- },
- fH = {
- ordinalNumber: ek({
- matchPattern: eH,
- parsePattern: tH,
- valueCallback: function (t) {
- return parseInt(t, 10);
- }
- }),
- era: Di({
- matchPatterns: nH,
- defaultMatchWidth: 'wide',
- parsePatterns: rH,
- defaultParseWidth: 'any'
- }),
- quarter: Di({
- matchPatterns: oH,
- defaultMatchWidth: 'wide',
- parsePatterns: iH,
- defaultParseWidth: 'any',
- valueCallback: function (t) {
- return t + 1;
- }
- }),
- month: Di({
- matchPatterns: aH,
- defaultMatchWidth: 'wide',
- parsePatterns: lH,
- defaultParseWidth: 'any'
- }),
- day: Di({
- matchPatterns: sH,
- defaultMatchWidth: 'wide',
- parsePatterns: cH,
- defaultParseWidth: 'any'
- }),
- dayPeriod: Di({
- matchPatterns: dH,
- defaultMatchWidth: 'any',
- parsePatterns: uH,
- defaultParseWidth: 'any'
- })
- };
- const hH = fH;
- var vH = {
- code: 'zh-CN',
- formatDistance: AN,
- formatLong: FN,
- formatRelative: jN,
- localize: ZN,
- match: hH,
- options: { weekStartsOn: 1, firstWeekContainsDate: 4 }
- };
- const pH = vH,
- gH = { name: 'zh-CN', locale: pH },
- mH = gH;
- var bH = {
- 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' }
- },
- yH = function (t, n, r) {
- var o,
- i = bH[t];
- return (
- typeof i == 'string'
- ? (o = i)
- : n === 1
- ? (o = i.one)
- : (o = i.other.replace('{{count}}', n.toString())),
- r != null && r.addSuffix
- ? r.comparison && r.comparison > 0
- ? 'in ' + o
- : o + ' ago'
- : o
- );
- };
- const xH = yH;
- var wH = {
- full: 'EEEE, MMMM do, y',
- long: 'MMMM do, y',
- medium: 'MMM d, y',
- short: 'MM/dd/yyyy'
- },
- CH = {
- full: 'h:mm:ss a zzzz',
- long: 'h:mm:ss a z',
- medium: 'h:mm:ss a',
- short: 'h:mm a'
- },
- SH = {
- full: "{{date}} 'at' {{time}}",
- long: "{{date}} 'at' {{time}}",
- medium: '{{date}}, {{time}}',
- short: '{{date}}, {{time}}'
- },
- _H = {
- date: Rc({ formats: wH, defaultWidth: 'full' }),
- time: Rc({ formats: CH, defaultWidth: 'full' }),
- dateTime: Rc({ formats: SH, defaultWidth: 'full' })
- };
- const RH = _H;
- var PH = {
- lastWeek: "'last' eeee 'at' p",
- yesterday: "'yesterday at' p",
- today: "'today at' p",
- tomorrow: "'tomorrow at' p",
- nextWeek: "eeee 'at' p",
- other: 'P'
- },
- kH = function (t, n, r, o) {
- return PH[t];
- };
- const TH = kH;
- var $H = {
- narrow: ['B', 'A'],
- abbreviated: ['BC', 'AD'],
- wide: ['Before Christ', 'Anno Domini']
- },
- OH = {
- narrow: ['1', '2', '3', '4'],
- abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'],
- wide: ['1st quarter', '2nd quarter', '3rd quarter', '4th quarter']
- },
- zH = {
- 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'
- ]
- },
- AH = {
- 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'
- ]
- },
- EH = {
- 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'
- }
- },
- MH = {
- 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'
- }
- },
- IH = function (t, n) {
- var r = Number(t),
- o = r % 100;
- if (o > 20 || o < 10)
- switch (o % 10) {
- case 1:
- return r + 'st';
- case 2:
- return r + 'nd';
- case 3:
- return r + 'rd';
- }
- return r + 'th';
- },
- DH = {
- ordinalNumber: IH,
- era: Ii({ values: $H, defaultWidth: 'wide' }),
- quarter: Ii({
- values: OH,
- defaultWidth: 'wide',
- argumentCallback: function (t) {
- return t - 1;
- }
- }),
- month: Ii({ values: zH, defaultWidth: 'wide' }),
- day: Ii({ values: AH, defaultWidth: 'wide' }),
- dayPeriod: Ii({
- values: EH,
- defaultWidth: 'wide',
- formattingValues: MH,
- defaultFormattingWidth: 'wide'
- })
- };
- const FH = DH;
- var BH = /^(\d+)(th|st|nd|rd)?/i,
- LH = /\d+/i,
- NH = {
- 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
- },
- HH = { any: [/^b/i, /^(a|c)/i] },
- jH = {
- narrow: /^[1234]/i,
- abbreviated: /^q[1234]/i,
- wide: /^[1234](th|st|nd|rd)? quarter/i
- },
- UH = { any: [/1/i, /2/i, /3/i, /4/i] },
- WH = {
- 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
- },
- VH = {
- 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
- ]
- },
- KH = {
- 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
- },
- qH = {
- 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]
- },
- YH = {
- 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
- },
- GH = {
- 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
- }
- },
- XH = {
- ordinalNumber: ek({
- matchPattern: BH,
- parsePattern: LH,
- valueCallback: function (t) {
- return parseInt(t, 10);
- }
- }),
- era: Di({
- matchPatterns: NH,
- defaultMatchWidth: 'wide',
- parsePatterns: HH,
- defaultParseWidth: 'any'
- }),
- quarter: Di({
- matchPatterns: jH,
- defaultMatchWidth: 'wide',
- parsePatterns: UH,
- defaultParseWidth: 'any',
- valueCallback: function (t) {
- return t + 1;
- }
- }),
- month: Di({
- matchPatterns: WH,
- defaultMatchWidth: 'wide',
- parsePatterns: VH,
- defaultParseWidth: 'any'
- }),
- day: Di({
- matchPatterns: KH,
- defaultMatchWidth: 'wide',
- parsePatterns: qH,
- defaultParseWidth: 'any'
- }),
- dayPeriod: Di({
- matchPatterns: YH,
- defaultMatchWidth: 'any',
- parsePatterns: GH,
- defaultParseWidth: 'any'
- })
- };
- const ZH = XH;
- var QH = {
- code: 'en-US',
- formatDistance: xH,
- formatLong: RH,
- formatRelative: TH,
- localize: FH,
- match: ZH,
- options: { weekStartsOn: 0, firstWeekContainsDate: 1 }
- };
- const fy = QH,
- JH = { name: 'en-US', locale: fy },
- ej = JH;
- function ph(e, t) {
- Bt(2, arguments);
- var n = Xt(e),
- r = Ln(t);
- return isNaN(r) ? new Date(NaN) : (r && n.setDate(n.getDate() + r), n);
- }
- function Fr(e, t) {
- Bt(2, arguments);
- var n = Xt(e),
- r = Ln(t);
- if (isNaN(r)) return new Date(NaN);
- if (!r) return n;
- var o = n.getDate(),
- i = new Date(n.getTime());
- i.setMonth(n.getMonth() + r + 1, 0);
- var a = i.getDate();
- return o >= a ? i : (n.setFullYear(i.getFullYear(), i.getMonth(), o), n);
- }
- function tj(e, t) {
- Bt(2, arguments);
- var n = Xt(e).getTime(),
- r = Ln(t);
- return new Date(n + r);
- }
- function tk(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 ev(e) {
- Bt(1, arguments);
- var t = Xt(e);
- return t.setHours(0, 0, 0, 0), t;
- }
- function nj(e, t) {
- Bt(2, arguments);
- var n = Ln(t),
- r = n * 3;
- return Fr(e, r);
- }
- function ab(e, t) {
- Bt(2, arguments);
- var n = Ln(t);
- return Fr(e, n * 12);
- }
- var rj = 6e4,
- oj = 36e5,
- ij = 1e3;
- function aj(e, t) {
- Bt(2, arguments);
- var n = ev(e),
- r = ev(t);
- return n.getTime() === r.getTime();
- }
- function lj(e) {
- return (
- Bt(1, arguments),
- e instanceof Date ||
- (qi(e) === 'object' &&
- Object.prototype.toString.call(e) === '[object Date]')
- );
- }
- function Xo(e) {
- if ((Bt(1, arguments), !lj(e) && typeof e != 'number')) return !1;
- var t = Xt(e);
- return !isNaN(Number(t));
- }
- function sj(e) {
- Bt(1, arguments);
- var t = Xt(e),
- n = Math.floor(t.getMonth() / 3) + 1;
- return n;
- }
- function cj(e) {
- Bt(1, arguments);
- var t = Xt(e);
- return t.setSeconds(0, 0), t;
- }
- function Tu(e) {
- Bt(1, arguments);
- var t = Xt(e),
- n = t.getMonth(),
- r = n - (n % 3);
- return t.setMonth(r, 1), t.setHours(0, 0, 0, 0), t;
- }
- function pa(e) {
- Bt(1, arguments);
- var t = Xt(e);
- return t.setDate(1), t.setHours(0, 0, 0, 0), t;
- }
- function hy(e) {
- Bt(1, arguments);
- var t = Xt(e),
- n = new Date(0);
- return n.setFullYear(t.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
- }
- function nk(e, t) {
- Bt(2, arguments);
- var n = Ln(t);
- return tj(e, -n);
- }
- var dj = 864e5;
- function uj(e) {
- Bt(1, arguments);
- var t = Xt(e),
- n = t.getTime();
- t.setUTCMonth(0, 1), t.setUTCHours(0, 0, 0, 0);
- var r = t.getTime(),
- o = n - r;
- return Math.floor(o / dj) + 1;
- }
- function Mc(e) {
- Bt(1, arguments);
- var t = 1,
- n = Xt(e),
- r = n.getUTCDay(),
- o = (r < t ? 7 : 0) + r - t;
- return n.setUTCDate(n.getUTCDate() - o), n.setUTCHours(0, 0, 0, 0), n;
- }
- function rk(e) {
- Bt(1, arguments);
- var t = Xt(e),
- n = t.getUTCFullYear(),
- r = new Date(0);
- r.setUTCFullYear(n + 1, 0, 4), r.setUTCHours(0, 0, 0, 0);
- var o = Mc(r),
- i = new Date(0);
- i.setUTCFullYear(n, 0, 4), i.setUTCHours(0, 0, 0, 0);
- var a = Mc(i);
- return t.getTime() >= o.getTime()
- ? n + 1
- : t.getTime() >= a.getTime()
- ? n
- : n - 1;
- }
- function fj(e) {
- Bt(1, arguments);
- var t = rk(e),
- n = new Date(0);
- n.setUTCFullYear(t, 0, 4), n.setUTCHours(0, 0, 0, 0);
- var r = Mc(n);
- return r;
- }
- var hj = 6048e5;
- function ok(e) {
- Bt(1, arguments);
- var t = Xt(e),
- n = Mc(t).getTime() - fj(t).getTime();
- return Math.round(n / hj) + 1;
- }
- function vy(e, t) {
- var n, r, o, i, a, s, c, d;
- Bt(1, arguments);
- var f = Xt(e),
- v = f.getUTCFullYear(),
- p = ed(),
- m = Ln(
- (n =
- (r =
- (o =
- (i = t == null ? void 0 : t.firstWeekContainsDate) !== null &&
- i !== void 0
- ? i
- : t == null ||
- (a = t.locale) === null ||
- a === void 0 ||
- (s = a.options) === null ||
- s === void 0
- ? void 0
- : s.firstWeekContainsDate) !== null && o !== void 0
- ? o
- : p.firstWeekContainsDate) !== null && r !== void 0
- ? r
- : (c = p.locale) === null ||
- c === void 0 ||
- (d = c.options) === null ||
- d === void 0
- ? void 0
- : d.firstWeekContainsDate) !== null && n !== void 0
- ? n
- : 1
- );
- if (!(m >= 1 && m <= 7))
- throw new RangeError(
- 'firstWeekContainsDate must be between 1 and 7 inclusively'
- );
- var g = new Date(0);
- g.setUTCFullYear(v + 1, 0, m), g.setUTCHours(0, 0, 0, 0);
- var w = Ca(g, t),
- x = new Date(0);
- x.setUTCFullYear(v, 0, m), x.setUTCHours(0, 0, 0, 0);
- var y = Ca(x, t);
- return f.getTime() >= w.getTime()
- ? v + 1
- : f.getTime() >= y.getTime()
- ? v
- : v - 1;
- }
- function vj(e, t) {
- var n, r, o, i, a, s, c, d;
- Bt(1, arguments);
- var f = ed(),
- v = Ln(
- (n =
- (r =
- (o =
- (i = t == null ? void 0 : t.firstWeekContainsDate) !== null &&
- i !== void 0
- ? i
- : t == null ||
- (a = t.locale) === null ||
- a === void 0 ||
- (s = a.options) === null ||
- s === void 0
- ? void 0
- : s.firstWeekContainsDate) !== null && o !== void 0
- ? o
- : f.firstWeekContainsDate) !== null && r !== void 0
- ? r
- : (c = f.locale) === null ||
- c === void 0 ||
- (d = c.options) === null ||
- d === void 0
- ? void 0
- : d.firstWeekContainsDate) !== null && n !== void 0
- ? n
- : 1
- ),
- p = vy(e, t),
- m = new Date(0);
- m.setUTCFullYear(p, 0, v), m.setUTCHours(0, 0, 0, 0);
- var g = Ca(m, t);
- return g;
- }
- var pj = 6048e5;
- function ik(e, t) {
- Bt(1, arguments);
- var n = Xt(e),
- r = Ca(n, t).getTime() - vj(n, t).getTime();
- return Math.round(r / pj) + 1;
- }
- function Dn(e, t) {
- for (var n = e < 0 ? '-' : '', r = Math.abs(e).toString(); r.length < t; )
- r = '0' + r;
- return n + r;
- }
- var gj = {
- y: function (t, n) {
- var r = t.getUTCFullYear(),
- o = r > 0 ? r : 1 - r;
- return Dn(n === 'yy' ? o % 100 : o, n.length);
- },
- M: function (t, n) {
- var r = t.getUTCMonth();
- return n === 'M' ? String(r + 1) : Dn(r + 1, 2);
- },
- d: function (t, n) {
- return Dn(t.getUTCDate(), n.length);
- },
- a: function (t, n) {
- var r = t.getUTCHours() / 12 >= 1 ? 'pm' : 'am';
- switch (n) {
- 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 (t, n) {
- return Dn(t.getUTCHours() % 12 || 12, n.length);
- },
- H: function (t, n) {
- return Dn(t.getUTCHours(), n.length);
- },
- m: function (t, n) {
- return Dn(t.getUTCMinutes(), n.length);
- },
- s: function (t, n) {
- return Dn(t.getUTCSeconds(), n.length);
- },
- S: function (t, n) {
- var r = n.length,
- o = t.getUTCMilliseconds(),
- i = Math.floor(o * Math.pow(10, r - 3));
- return Dn(i, n.length);
- }
- };
- const Ya = gj;
- var dc = {
- am: 'am',
- pm: 'pm',
- midnight: 'midnight',
- noon: 'noon',
- morning: 'morning',
- afternoon: 'afternoon',
- evening: 'evening',
- night: 'night'
- },
- mj = {
- G: function (t, n, r) {
- var o = t.getUTCFullYear() > 0 ? 1 : 0;
- switch (n) {
- case 'G':
- case 'GG':
- case 'GGG':
- return r.era(o, { width: 'abbreviated' });
- case 'GGGGG':
- return r.era(o, { width: 'narrow' });
- case 'GGGG':
- default:
- return r.era(o, { width: 'wide' });
- }
- },
- y: function (t, n, r) {
- if (n === 'yo') {
- var o = t.getUTCFullYear(),
- i = o > 0 ? o : 1 - o;
- return r.ordinalNumber(i, { unit: 'year' });
- }
- return Ya.y(t, n);
- },
- Y: function (t, n, r, o) {
- var i = vy(t, o),
- a = i > 0 ? i : 1 - i;
- if (n === 'YY') {
- var s = a % 100;
- return Dn(s, 2);
- }
- return n === 'Yo'
- ? r.ordinalNumber(a, { unit: 'year' })
- : Dn(a, n.length);
- },
- R: function (t, n) {
- var r = rk(t);
- return Dn(r, n.length);
- },
- u: function (t, n) {
- var r = t.getUTCFullYear();
- return Dn(r, n.length);
- },
- Q: function (t, n, r) {
- var o = Math.ceil((t.getUTCMonth() + 1) / 3);
- switch (n) {
- case 'Q':
- return String(o);
- case 'QQ':
- return Dn(o, 2);
- case 'Qo':
- return r.ordinalNumber(o, { unit: 'quarter' });
- case 'QQQ':
- return r.quarter(o, { width: 'abbreviated', context: 'formatting' });
- case 'QQQQQ':
- return r.quarter(o, { width: 'narrow', context: 'formatting' });
- case 'QQQQ':
- default:
- return r.quarter(o, { width: 'wide', context: 'formatting' });
- }
- },
- q: function (t, n, r) {
- var o = Math.ceil((t.getUTCMonth() + 1) / 3);
- switch (n) {
- case 'q':
- return String(o);
- case 'qq':
- return Dn(o, 2);
- case 'qo':
- return r.ordinalNumber(o, { unit: 'quarter' });
- case 'qqq':
- return r.quarter(o, { width: 'abbreviated', context: 'standalone' });
- case 'qqqqq':
- return r.quarter(o, { width: 'narrow', context: 'standalone' });
- case 'qqqq':
- default:
- return r.quarter(o, { width: 'wide', context: 'standalone' });
- }
- },
- M: function (t, n, r) {
- var o = t.getUTCMonth();
- switch (n) {
- case 'M':
- case 'MM':
- return Ya.M(t, n);
- case 'Mo':
- return r.ordinalNumber(o + 1, { unit: 'month' });
- case 'MMM':
- return r.month(o, { width: 'abbreviated', context: 'formatting' });
- case 'MMMMM':
- return r.month(o, { width: 'narrow', context: 'formatting' });
- case 'MMMM':
- default:
- return r.month(o, { width: 'wide', context: 'formatting' });
- }
- },
- L: function (t, n, r) {
- var o = t.getUTCMonth();
- switch (n) {
- case 'L':
- return String(o + 1);
- case 'LL':
- return Dn(o + 1, 2);
- case 'Lo':
- return r.ordinalNumber(o + 1, { unit: 'month' });
- case 'LLL':
- return r.month(o, { width: 'abbreviated', context: 'standalone' });
- case 'LLLLL':
- return r.month(o, { width: 'narrow', context: 'standalone' });
- case 'LLLL':
- default:
- return r.month(o, { width: 'wide', context: 'standalone' });
- }
- },
- w: function (t, n, r, o) {
- var i = ik(t, o);
- return n === 'wo'
- ? r.ordinalNumber(i, { unit: 'week' })
- : Dn(i, n.length);
- },
- I: function (t, n, r) {
- var o = ok(t);
- return n === 'Io'
- ? r.ordinalNumber(o, { unit: 'week' })
- : Dn(o, n.length);
- },
- d: function (t, n, r) {
- return n === 'do'
- ? r.ordinalNumber(t.getUTCDate(), { unit: 'date' })
- : Ya.d(t, n);
- },
- D: function (t, n, r) {
- var o = uj(t);
- return n === 'Do'
- ? r.ordinalNumber(o, { unit: 'dayOfYear' })
- : Dn(o, n.length);
- },
- E: function (t, n, r) {
- var o = t.getUTCDay();
- switch (n) {
- case 'E':
- case 'EE':
- 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' });
- }
- },
- e: function (t, n, r, o) {
- var i = t.getUTCDay(),
- a = (i - o.weekStartsOn + 8) % 7 || 7;
- switch (n) {
- case 'e':
- return String(a);
- case 'ee':
- return Dn(a, 2);
- case 'eo':
- return r.ordinalNumber(a, { unit: 'day' });
- case 'eee':
- return r.day(i, { width: 'abbreviated', context: 'formatting' });
- case 'eeeee':
- return r.day(i, { width: 'narrow', context: 'formatting' });
- case 'eeeeee':
- return r.day(i, { width: 'short', context: 'formatting' });
- case 'eeee':
- default:
- return r.day(i, { width: 'wide', context: 'formatting' });
- }
- },
- c: function (t, n, r, o) {
- var i = t.getUTCDay(),
- a = (i - o.weekStartsOn + 8) % 7 || 7;
- switch (n) {
- case 'c':
- return String(a);
- case 'cc':
- return Dn(a, n.length);
- case 'co':
- return r.ordinalNumber(a, { unit: 'day' });
- case 'ccc':
- return r.day(i, { width: 'abbreviated', context: 'standalone' });
- case 'ccccc':
- return r.day(i, { width: 'narrow', context: 'standalone' });
- case 'cccccc':
- return r.day(i, { width: 'short', context: 'standalone' });
- case 'cccc':
- default:
- return r.day(i, { width: 'wide', context: 'standalone' });
- }
- },
- i: function (t, n, r) {
- var o = t.getUTCDay(),
- i = o === 0 ? 7 : o;
- switch (n) {
- case 'i':
- return String(i);
- case 'ii':
- return Dn(i, n.length);
- case 'io':
- return r.ordinalNumber(i, { unit: 'day' });
- case 'iii':
- return r.day(o, { width: 'abbreviated', context: 'formatting' });
- case 'iiiii':
- return r.day(o, { width: 'narrow', context: 'formatting' });
- case 'iiiiii':
- return r.day(o, { width: 'short', context: 'formatting' });
- case 'iiii':
- default:
- return r.day(o, { width: 'wide', context: 'formatting' });
- }
- },
- a: function (t, n, r) {
- var o = t.getUTCHours(),
- i = o / 12 >= 1 ? 'pm' : 'am';
- switch (n) {
- case 'a':
- case 'aa':
- return r.dayPeriod(i, {
- width: 'abbreviated',
- context: 'formatting'
- });
- case 'aaa':
- return r
- .dayPeriod(i, { width: 'abbreviated', context: 'formatting' })
- .toLowerCase();
- case 'aaaaa':
- return r.dayPeriod(i, { width: 'narrow', context: 'formatting' });
- case 'aaaa':
- default:
- return r.dayPeriod(i, { width: 'wide', context: 'formatting' });
- }
- },
- b: function (t, n, r) {
- var o = t.getUTCHours(),
- i;
- switch (
- (o === 12
- ? (i = dc.noon)
- : o === 0
- ? (i = dc.midnight)
- : (i = o / 12 >= 1 ? 'pm' : 'am'),
- n)
- ) {
- case 'b':
- case 'bb':
- return r.dayPeriod(i, {
- width: 'abbreviated',
- context: 'formatting'
- });
- case 'bbb':
- return r
- .dayPeriod(i, { width: 'abbreviated', context: 'formatting' })
- .toLowerCase();
- case 'bbbbb':
- return r.dayPeriod(i, { width: 'narrow', context: 'formatting' });
- case 'bbbb':
- default:
- return r.dayPeriod(i, { width: 'wide', context: 'formatting' });
- }
- },
- B: function (t, n, r) {
- var o = t.getUTCHours(),
- i;
- switch (
- (o >= 17
- ? (i = dc.evening)
- : o >= 12
- ? (i = dc.afternoon)
- : o >= 4
- ? (i = dc.morning)
- : (i = dc.night),
- n)
- ) {
- case 'B':
- case 'BB':
- case 'BBB':
- return r.dayPeriod(i, {
- width: 'abbreviated',
- context: 'formatting'
- });
- case 'BBBBB':
- return r.dayPeriod(i, { width: 'narrow', context: 'formatting' });
- case 'BBBB':
- default:
- return r.dayPeriod(i, { width: 'wide', context: 'formatting' });
- }
- },
- h: function (t, n, r) {
- if (n === 'ho') {
- var o = t.getUTCHours() % 12;
- return o === 0 && (o = 12), r.ordinalNumber(o, { unit: 'hour' });
- }
- return Ya.h(t, n);
- },
- H: function (t, n, r) {
- return n === 'Ho'
- ? r.ordinalNumber(t.getUTCHours(), { unit: 'hour' })
- : Ya.H(t, n);
- },
- K: function (t, n, r) {
- var o = t.getUTCHours() % 12;
- return n === 'Ko'
- ? r.ordinalNumber(o, { unit: 'hour' })
- : Dn(o, n.length);
- },
- k: function (t, n, r) {
- var o = t.getUTCHours();
- return (
- o === 0 && (o = 24),
- n === 'ko' ? r.ordinalNumber(o, { unit: 'hour' }) : Dn(o, n.length)
- );
- },
- m: function (t, n, r) {
- return n === 'mo'
- ? r.ordinalNumber(t.getUTCMinutes(), { unit: 'minute' })
- : Ya.m(t, n);
- },
- s: function (t, n, r) {
- return n === 'so'
- ? r.ordinalNumber(t.getUTCSeconds(), { unit: 'second' })
- : Ya.s(t, n);
- },
- S: function (t, n) {
- return Ya.S(t, n);
- },
- X: function (t, n, r, o) {
- var i = o._originalDate || t,
- a = i.getTimezoneOffset();
- if (a === 0) return 'Z';
- switch (n) {
- case 'X':
- return uS(a);
- case 'XXXX':
- case 'XX':
- return ts(a);
- case 'XXXXX':
- case 'XXX':
- default:
- return ts(a, ':');
- }
- },
- x: function (t, n, r, o) {
- var i = o._originalDate || t,
- a = i.getTimezoneOffset();
- switch (n) {
- case 'x':
- return uS(a);
- case 'xxxx':
- case 'xx':
- return ts(a);
- case 'xxxxx':
- case 'xxx':
- default:
- return ts(a, ':');
- }
- },
- O: function (t, n, r, o) {
- var i = o._originalDate || t,
- a = i.getTimezoneOffset();
- switch (n) {
- case 'O':
- case 'OO':
- case 'OOO':
- return 'GMT' + dS(a, ':');
- case 'OOOO':
- default:
- return 'GMT' + ts(a, ':');
- }
- },
- z: function (t, n, r, o) {
- var i = o._originalDate || t,
- a = i.getTimezoneOffset();
- switch (n) {
- case 'z':
- case 'zz':
- case 'zzz':
- return 'GMT' + dS(a, ':');
- case 'zzzz':
- default:
- return 'GMT' + ts(a, ':');
- }
- },
- t: function (t, n, r, o) {
- var i = o._originalDate || t,
- a = Math.floor(i.getTime() / 1e3);
- return Dn(a, n.length);
- },
- T: function (t, n, r, o) {
- var i = o._originalDate || t,
- a = i.getTime();
- return Dn(a, n.length);
- }
- };
- function dS(e, t) {
- var n = e > 0 ? '-' : '+',
- r = Math.abs(e),
- o = Math.floor(r / 60),
- i = r % 60;
- if (i === 0) return n + String(o);
- var a = t || '';
- return n + String(o) + a + Dn(i, 2);
- }
- function uS(e, t) {
- if (e % 60 === 0) {
- var n = e > 0 ? '-' : '+';
- return n + Dn(Math.abs(e) / 60, 2);
- }
- return ts(e, t);
- }
- function ts(e, t) {
- var n = t || '',
- r = e > 0 ? '-' : '+',
- o = Math.abs(e),
- i = Dn(Math.floor(o / 60), 2),
- a = Dn(o % 60, 2);
- return r + i + n + a;
- }
- const bj = mj;
- var fS = function (t, n) {
- switch (t) {
- case 'P':
- return n.date({ width: 'short' });
- case 'PP':
- return n.date({ width: 'medium' });
- case 'PPP':
- return n.date({ width: 'long' });
- case 'PPPP':
- default:
- return n.date({ width: 'full' });
- }
- },
- ak = function (t, n) {
- switch (t) {
- case 'p':
- return n.time({ width: 'short' });
- case 'pp':
- return n.time({ width: 'medium' });
- case 'ppp':
- return n.time({ width: 'long' });
- case 'pppp':
- default:
- return n.time({ width: 'full' });
- }
- },
- yj = function (t, n) {
- var r = t.match(/(P+)(p+)?/) || [],
- o = r[1],
- i = r[2];
- if (!i) return fS(t, n);
- var a;
- switch (o) {
- case 'P':
- a = n.dateTime({ width: 'short' });
- break;
- case 'PP':
- a = n.dateTime({ width: 'medium' });
- break;
- case 'PPP':
- a = n.dateTime({ width: 'long' });
- break;
- case 'PPPP':
- default:
- a = n.dateTime({ width: 'full' });
- break;
- }
- return a.replace('{{date}}', fS(o, n)).replace('{{time}}', ak(i, n));
- },
- xj = { p: ak, P: yj };
- const lb = xj;
- var wj = ['D', 'DD'],
- Cj = ['YY', 'YYYY'];
- function lk(e) {
- return wj.indexOf(e) !== -1;
- }
- function sk(e) {
- return Cj.indexOf(e) !== -1;
- }
- function tv(e, t, n) {
- if (e === 'YYYY')
- throw new RangeError(
- 'Use `yyyy` instead of `YYYY` (in `'
- .concat(t, '`) for formatting years to the input `')
- .concat(
- n,
- '`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md'
- )
- );
- if (e === 'YY')
- throw new RangeError(
- 'Use `yy` instead of `YY` (in `'
- .concat(t, '`) for formatting years to the input `')
- .concat(
- n,
- '`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md'
- )
- );
- if (e === 'D')
- throw new RangeError(
- 'Use `d` instead of `D` (in `'
- .concat(t, '`) for formatting days of the month to the input `')
- .concat(
- n,
- '`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md'
- )
- );
- if (e === 'DD')
- throw new RangeError(
- 'Use `dd` instead of `DD` (in `'
- .concat(t, '`) for formatting days of the month to the input `')
- .concat(
- n,
- '`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md'
- )
- );
- }
- var Sj = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,
- _j = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,
- Rj = /^'([^]*?)'?$/,
- Pj = /''/g,
- kj = /[a-zA-Z]/;
- function Xn(e, t, n) {
- var r, o, i, a, s, c, d, f, v, p, m, g, w, x, y, C, R, S;
- Bt(2, arguments);
- var _ = String(t),
- P = ed(),
- T =
- (r =
- (o = n == null ? void 0 : n.locale) !== null && o !== void 0
- ? o
- : P.locale) !== null && r !== void 0
- ? r
- : fy,
- A = Ln(
- (i =
- (a =
- (s =
- (c = n == null ? void 0 : n.firstWeekContainsDate) !== null &&
- c !== void 0
- ? c
- : n == null ||
- (d = n.locale) === null ||
- d === void 0 ||
- (f = d.options) === null ||
- f === void 0
- ? void 0
- : f.firstWeekContainsDate) !== null && s !== void 0
- ? s
- : P.firstWeekContainsDate) !== null && a !== void 0
- ? a
- : (v = P.locale) === null ||
- v === void 0 ||
- (p = v.options) === null ||
- p === void 0
- ? void 0
- : p.firstWeekContainsDate) !== null && i !== void 0
- ? i
- : 1
- );
- if (!(A >= 1 && A <= 7))
- throw new RangeError(
- 'firstWeekContainsDate must be between 1 and 7 inclusively'
- );
- var z = Ln(
- (m =
- (g =
- (w =
- (x = n == null ? void 0 : n.weekStartsOn) !== null && x !== void 0
- ? x
- : n == null ||
- (y = n.locale) === null ||
- y === void 0 ||
- (C = y.options) === null ||
- C === void 0
- ? void 0
- : C.weekStartsOn) !== null && w !== void 0
- ? w
- : P.weekStartsOn) !== null && g !== void 0
- ? g
- : (R = P.locale) === null ||
- R === void 0 ||
- (S = R.options) === null ||
- S === void 0
- ? void 0
- : S.weekStartsOn) !== null && m !== void 0
- ? m
- : 0
- );
- if (!(z >= 0 && z <= 6))
- throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
- if (!T.localize)
- throw new RangeError('locale must contain localize property');
- if (!T.formatLong)
- throw new RangeError('locale must contain formatLong property');
- var k = Xt(e);
- if (!Xo(k)) throw new RangeError('Invalid time value');
- var M = tk(k),
- E = nk(k, M),
- D = {
- firstWeekContainsDate: A,
- weekStartsOn: z,
- locale: T,
- _originalDate: k
- },
- L = _.match(_j)
- .map(function (j) {
- var B = j[0];
- if (B === 'p' || B === 'P') {
- var q = lb[B];
- return q(j, T.formatLong);
- }
- return j;
- })
- .join('')
- .match(Sj)
- .map(function (j) {
- if (j === "''") return "'";
- var B = j[0];
- if (B === "'") return Tj(j);
- var q = bj[B];
- if (q)
- return (
- !(n != null && n.useAdditionalWeekYearTokens) &&
- sk(j) &&
- tv(j, t, String(e)),
- !(n != null && n.useAdditionalDayOfYearTokens) &&
- lk(j) &&
- tv(j, t, String(e)),
- q(E, j, T.localize, D)
- );
- if (B.match(kj))
- throw new RangeError(
- 'Format string contains an unescaped latin alphabet character `' +
- B +
- '`'
- );
- return j;
- })
- .join('');
- return L;
- }
- function Tj(e) {
- var t = e.match(Rj);
- return t ? t[1].replace(Pj, "'") : e;
- }
- function $j(e, t) {
- if (e == null)
- throw new TypeError(
- 'assign requires that input parameter not be null or undefined'
- );
- for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
- return e;
- }
- function li(e) {
- Bt(1, arguments);
- var t = Xt(e),
- n = t.getDate();
- return n;
- }
- function Oj(e) {
- Bt(1, arguments);
- var t = Xt(e),
- n = t.getDay();
- return n;
- }
- function zj(e) {
- Bt(1, arguments);
- var t = Xt(e),
- n = t.getFullYear(),
- r = t.getMonth(),
- o = new Date(0);
- return o.setFullYear(n, r + 1, 0), o.setHours(0, 0, 0, 0), o.getDate();
- }
- function rl(e) {
- Bt(1, arguments);
- var t = Xt(e),
- n = t.getHours();
- return n;
- }
- function nv(e) {
- Bt(1, arguments);
- var t = Xt(e),
- n = t.getMinutes();
- return n;
- }
- function Yn(e) {
- Bt(1, arguments);
- var t = Xt(e),
- n = t.getMonth();
- return n;
- }
- function rv(e) {
- Bt(1, arguments);
- var t = Xt(e),
- n = t.getSeconds();
- return n;
- }
- function ht(e) {
- Bt(1, arguments);
- var t = Xt(e),
- n = t.getTime();
- return n;
- }
- function Jn(e) {
- return Bt(1, arguments), Xt(e).getFullYear();
- }
- function hS(e, t) {
- (t == null || t > e.length) && (t = e.length);
- for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n];
- return r;
- }
- function Aj(e, t) {
- if (e) {
- if (typeof e == 'string') return hS(e, t);
- var n = Object.prototype.toString.call(e).slice(8, -1);
- if (
- (n === 'Object' && e.constructor && (n = e.constructor.name),
- n === 'Map' || n === 'Set')
- )
- return Array.from(e);
- if (n === 'Arguments' || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
- return hS(e, t);
- }
- }
- function vS(e, t) {
- var n = (typeof Symbol < 'u' && e[Symbol.iterator]) || e['@@iterator'];
- if (!n) {
- if (
- Array.isArray(e) ||
- (n = Aj(e)) ||
- (t && e && typeof e.length == 'number')
- ) {
- n && (e = n);
- var r = 0,
- o = function () {};
- return {
- s: o,
- n: function () {
- return r >= e.length ? { done: !0 } : { done: !1, value: e[r++] };
- },
- e: function (d) {
- throw d;
- },
- f: o
- };
- }
- throw new TypeError(`Invalid attempt to iterate non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
- }
- var i = !0,
- a = !1,
- s;
- return {
- s: function () {
- n = n.call(e);
- },
- n: function () {
- var d = n.next();
- return (i = d.done), d;
- },
- e: function (d) {
- (a = !0), (s = d);
- },
- f: function () {
- try {
- !i && n.return != null && n.return();
- } finally {
- if (a) throw s;
- }
- }
- };
- }
- function _t(e) {
- if (e === void 0)
- throw new ReferenceError(
- "this hasn't been initialised - super() hasn't been called"
- );
- return e;
- }
- function sb(e, t) {
- return (
- (sb = Object.setPrototypeOf
- ? Object.setPrototypeOf.bind()
- : function (r, o) {
- return (r.__proto__ = o), r;
- }),
- sb(e, t)
- );
- }
- function Rn(e, t) {
- if (typeof t != 'function' && t !== null)
- throw new TypeError('Super expression must either be null or a function');
- (e.prototype = Object.create(t && t.prototype, {
- constructor: { value: e, writable: !0, configurable: !0 }
- })),
- Object.defineProperty(e, 'prototype', { writable: !1 }),
- t && sb(e, t);
- }
- function ov(e) {
- return (
- (ov = Object.setPrototypeOf
- ? Object.getPrototypeOf.bind()
- : function (n) {
- return n.__proto__ || Object.getPrototypeOf(n);
- }),
- ov(e)
- );
- }
- function Ej() {
- if (typeof Reflect > 'u' || !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 Mj(e, t) {
- if (t && (qi(t) === 'object' || typeof t == 'function')) return t;
- if (t !== void 0)
- throw new TypeError(
- 'Derived constructors may only return object or undefined'
- );
- return _t(e);
- }
- function Pn(e) {
- var t = Ej();
- return function () {
- var r = ov(e),
- o;
- if (t) {
- var i = ov(this).constructor;
- o = Reflect.construct(r, arguments, i);
- } else o = r.apply(this, arguments);
- return Mj(this, o);
- };
- }
- function wn(e, t) {
- if (!(e instanceof t))
- throw new TypeError('Cannot call a class as a function');
- }
- function Ij(e, t) {
- if (qi(e) !== 'object' || e === null) return e;
- var n = e[Symbol.toPrimitive];
- if (n !== void 0) {
- var r = n.call(e, t || 'default');
- if (qi(r) !== 'object') return r;
- throw new TypeError('@@toPrimitive must return a primitive value.');
- }
- return (t === 'string' ? String : Number)(e);
- }
- function ck(e) {
- var t = Ij(e, 'string');
- return qi(t) === 'symbol' ? t : String(t);
- }
- function pS(e, t) {
- for (var n = 0; n < t.length; n++) {
- var r = t[n];
- (r.enumerable = r.enumerable || !1),
- (r.configurable = !0),
- 'value' in r && (r.writable = !0),
- Object.defineProperty(e, ck(r.key), r);
- }
- }
- function Cn(e, t, n) {
- return (
- t && pS(e.prototype, t),
- n && pS(e, n),
- Object.defineProperty(e, 'prototype', { writable: !1 }),
- e
- );
- }
- function bt(e, t, n) {
- return (
- (t = ck(t)),
- t in e
- ? Object.defineProperty(e, t, {
- value: n,
- enumerable: !0,
- configurable: !0,
- writable: !0
- })
- : (e[t] = n),
- e
- );
- }
- var Dj = 10,
- dk = (function () {
- function e() {
- wn(this, e), bt(this, 'priority', void 0), bt(this, 'subPriority', 0);
- }
- return (
- Cn(e, [
- {
- key: 'validate',
- value: function (n, r) {
- return !0;
- }
- }
- ]),
- e
- );
- })(),
- Fj = (function (e) {
- Rn(n, e);
- var t = Pn(n);
- function n(r, o, i, a, s) {
- var c;
- return (
- wn(this, n),
- (c = t.call(this)),
- (c.value = r),
- (c.validateValue = o),
- (c.setValue = i),
- (c.priority = a),
- s && (c.subPriority = s),
- c
- );
- }
- return (
- Cn(n, [
- {
- key: 'validate',
- value: function (o, i) {
- return this.validateValue(o, this.value, i);
- }
- },
- {
- key: 'set',
- value: function (o, i, a) {
- return this.setValue(o, i, this.value, a);
- }
- }
- ]),
- n
- );
- })(dk),
- Bj = (function (e) {
- Rn(n, e);
- var t = Pn(n);
- function n() {
- var r;
- wn(this, n);
- for (var o = arguments.length, i = new Array(o), a = 0; a < o; a++)
- i[a] = arguments[a];
- return (
- (r = t.call.apply(t, [this].concat(i))),
- bt(_t(r), 'priority', Dj),
- bt(_t(r), 'subPriority', -1),
- r
- );
- }
- return (
- Cn(n, [
- {
- key: 'set',
- value: function (o, i) {
- if (i.timestampIsSet) return o;
- var a = new Date(0);
- return (
- a.setFullYear(
- o.getUTCFullYear(),
- o.getUTCMonth(),
- o.getUTCDate()
- ),
- a.setHours(
- o.getUTCHours(),
- o.getUTCMinutes(),
- o.getUTCSeconds(),
- o.getUTCMilliseconds()
- ),
- a
- );
- }
- }
- ]),
- n
- );
- })(dk),
- En = (function () {
- function e() {
- wn(this, e),
- bt(this, 'incompatibleTokens', void 0),
- bt(this, 'priority', void 0),
- bt(this, 'subPriority', void 0);
- }
- return (
- Cn(e, [
- {
- key: 'run',
- value: function (n, r, o, i) {
- var a = this.parse(n, r, o, i);
- return a
- ? {
- setter: new Fj(
- a.value,
- this.validate,
- this.set,
- this.priority,
- this.subPriority
- ),
- rest: a.rest
- }
- : null;
- }
- },
- {
- key: 'validate',
- value: function (n, r, o) {
- return !0;
- }
- }
- ]),
- e
- );
- })(),
- Lj = (function (e) {
- Rn(n, e);
- var t = Pn(n);
- function n() {
- var r;
- wn(this, n);
- for (var o = arguments.length, i = new Array(o), a = 0; a < o; a++)
- i[a] = arguments[a];
- return (
- (r = t.call.apply(t, [this].concat(i))),
- bt(_t(r), 'priority', 140),
- bt(_t(r), 'incompatibleTokens', ['R', 'u', 't', 'T']),
- r
- );
- }
- return (
- Cn(n, [
- {
- key: 'parse',
- value: function (o, i, a) {
- switch (i) {
- case 'G':
- case 'GG':
- case 'GGG':
- return (
- a.era(o, { width: 'abbreviated' }) ||
- a.era(o, { width: 'narrow' })
- );
- case 'GGGGG':
- return a.era(o, { width: 'narrow' });
- case 'GGGG':
- default:
- return (
- a.era(o, { width: 'wide' }) ||
- a.era(o, { width: 'abbreviated' }) ||
- a.era(o, { width: 'narrow' })
- );
- }
- }
- },
- {
- key: 'set',
- value: function (o, i, a) {
- return (
- (i.era = a),
- o.setUTCFullYear(a, 0, 1),
- o.setUTCHours(0, 0, 0, 0),
- o
- );
- }
- }
- ]),
- n
- );
- })(En),
- vr = {
- 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}/
- },
- Fi = {
- 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 pr(e, t) {
- return e && { value: t(e.value), rest: e.rest };
- }
- function tr(e, t) {
- var n = t.match(e);
- return n ? { value: parseInt(n[0], 10), rest: t.slice(n[0].length) } : null;
- }
- function Bi(e, t) {
- var n = t.match(e);
- if (!n) return null;
- if (n[0] === 'Z') return { value: 0, rest: t.slice(1) };
- var r = n[1] === '+' ? 1 : -1,
- o = n[2] ? parseInt(n[2], 10) : 0,
- i = n[3] ? parseInt(n[3], 10) : 0,
- a = n[5] ? parseInt(n[5], 10) : 0;
- return { value: r * (o * oj + i * rj + a * ij), rest: t.slice(n[0].length) };
- }
- function uk(e) {
- return tr(vr.anyDigitsSigned, e);
- }
- function cr(e, t) {
- switch (e) {
- case 1:
- return tr(vr.singleDigit, t);
- case 2:
- return tr(vr.twoDigits, t);
- case 3:
- return tr(vr.threeDigits, t);
- case 4:
- return tr(vr.fourDigits, t);
- default:
- return tr(new RegExp('^\\d{1,' + e + '}'), t);
- }
- }
- function iv(e, t) {
- switch (e) {
- case 1:
- return tr(vr.singleDigitSigned, t);
- case 2:
- return tr(vr.twoDigitsSigned, t);
- case 3:
- return tr(vr.threeDigitsSigned, t);
- case 4:
- return tr(vr.fourDigitsSigned, t);
- default:
- return tr(new RegExp('^-?\\d{1,' + e + '}'), t);
- }
- }
- function py(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 fk(e, t) {
- var n = t > 0,
- r = n ? t : 1 - t,
- o;
- if (r <= 50) o = e || 100;
- else {
- var i = r + 50,
- a = Math.floor(i / 100) * 100,
- s = e >= i % 100;
- o = e + a - (s ? 100 : 0);
- }
- return n ? o : 1 - o;
- }
- function hk(e) {
- return e % 400 === 0 || (e % 4 === 0 && e % 100 !== 0);
- }
- var Nj = (function (e) {
- Rn(n, e);
- var t = Pn(n);
- function n() {
- var r;
- wn(this, n);
- for (var o = arguments.length, i = new Array(o), a = 0; a < o; a++)
- i[a] = arguments[a];
- return (
- (r = t.call.apply(t, [this].concat(i))),
- bt(_t(r), 'priority', 130),
- bt(_t(r), 'incompatibleTokens', [
- 'Y',
- 'R',
- 'u',
- 'w',
- 'I',
- 'i',
- 'e',
- 'c',
- 't',
- 'T'
- ]),
- r
- );
- }
- return (
- Cn(n, [
- {
- key: 'parse',
- value: function (o, i, a) {
- var s = function (d) {
- return { year: d, isTwoDigitYear: i === 'yy' };
- };
- switch (i) {
- case 'y':
- return pr(cr(4, o), s);
- case 'yo':
- return pr(a.ordinalNumber(o, { unit: 'year' }), s);
- default:
- return pr(cr(i.length, o), s);
- }
- }
- },
- {
- key: 'validate',
- value: function (o, i) {
- return i.isTwoDigitYear || i.year > 0;
- }
- },
- {
- key: 'set',
- value: function (o, i, a) {
- var s = o.getUTCFullYear();
- if (a.isTwoDigitYear) {
- var c = fk(a.year, s);
- return o.setUTCFullYear(c, 0, 1), o.setUTCHours(0, 0, 0, 0), o;
- }
- var d = !('era' in i) || i.era === 1 ? a.year : 1 - a.year;
- return o.setUTCFullYear(d, 0, 1), o.setUTCHours(0, 0, 0, 0), o;
- }
- }
- ]),
- n
- );
- })(En),
- Hj = (function (e) {
- Rn(n, e);
- var t = Pn(n);
- function n() {
- var r;
- wn(this, n);
- for (var o = arguments.length, i = new Array(o), a = 0; a < o; a++)
- i[a] = arguments[a];
- return (
- (r = t.call.apply(t, [this].concat(i))),
- bt(_t(r), 'priority', 130),
- bt(_t(r), 'incompatibleTokens', [
- 'y',
- 'R',
- 'u',
- 'Q',
- 'q',
- 'M',
- 'L',
- 'I',
- 'd',
- 'D',
- 'i',
- 't',
- 'T'
- ]),
- r
- );
- }
- return (
- Cn(n, [
- {
- key: 'parse',
- value: function (o, i, a) {
- var s = function (d) {
- return { year: d, isTwoDigitYear: i === 'YY' };
- };
- switch (i) {
- case 'Y':
- return pr(cr(4, o), s);
- case 'Yo':
- return pr(a.ordinalNumber(o, { unit: 'year' }), s);
- default:
- return pr(cr(i.length, o), s);
- }
- }
- },
- {
- key: 'validate',
- value: function (o, i) {
- return i.isTwoDigitYear || i.year > 0;
- }
- },
- {
- key: 'set',
- value: function (o, i, a, s) {
- var c = vy(o, s);
- if (a.isTwoDigitYear) {
- var d = fk(a.year, c);
- return (
- o.setUTCFullYear(d, 0, s.firstWeekContainsDate),
- o.setUTCHours(0, 0, 0, 0),
- Ca(o, s)
- );
- }
- var f = !('era' in i) || i.era === 1 ? a.year : 1 - a.year;
- return (
- o.setUTCFullYear(f, 0, s.firstWeekContainsDate),
- o.setUTCHours(0, 0, 0, 0),
- Ca(o, s)
- );
- }
- }
- ]),
- n
- );
- })(En),
- jj = (function (e) {
- Rn(n, e);
- var t = Pn(n);
- function n() {
- var r;
- wn(this, n);
- for (var o = arguments.length, i = new Array(o), a = 0; a < o; a++)
- i[a] = arguments[a];
- return (
- (r = t.call.apply(t, [this].concat(i))),
- bt(_t(r), 'priority', 130),
- bt(_t(r), 'incompatibleTokens', [
- 'G',
- 'y',
- 'Y',
- 'u',
- 'Q',
- 'q',
- 'M',
- 'L',
- 'w',
- 'd',
- 'D',
- 'e',
- 'c',
- 't',
- 'T'
- ]),
- r
- );
- }
- return (
- Cn(n, [
- {
- key: 'parse',
- value: function (o, i) {
- return iv(i === 'R' ? 4 : i.length, o);
- }
- },
- {
- key: 'set',
- value: function (o, i, a) {
- var s = new Date(0);
- return s.setUTCFullYear(a, 0, 4), s.setUTCHours(0, 0, 0, 0), Mc(s);
- }
- }
- ]),
- n
- );
- })(En),
- Uj = (function (e) {
- Rn(n, e);
- var t = Pn(n);
- function n() {
- var r;
- wn(this, n);
- for (var o = arguments.length, i = new Array(o), a = 0; a < o; a++)
- i[a] = arguments[a];
- return (
- (r = t.call.apply(t, [this].concat(i))),
- bt(_t(r), 'priority', 130),
- bt(_t(r), 'incompatibleTokens', [
- 'G',
- 'y',
- 'Y',
- 'R',
- 'w',
- 'I',
- 'i',
- 'e',
- 'c',
- 't',
- 'T'
- ]),
- r
- );
- }
- return (
- Cn(n, [
- {
- key: 'parse',
- value: function (o, i) {
- return iv(i === 'u' ? 4 : i.length, o);
- }
- },
- {
- key: 'set',
- value: function (o, i, a) {
- return o.setUTCFullYear(a, 0, 1), o.setUTCHours(0, 0, 0, 0), o;
- }
- }
- ]),
- n
- );
- })(En),
- Wj = (function (e) {
- Rn(n, e);
- var t = Pn(n);
- function n() {
- var r;
- wn(this, n);
- for (var o = arguments.length, i = new Array(o), a = 0; a < o; a++)
- i[a] = arguments[a];
- return (
- (r = t.call.apply(t, [this].concat(i))),
- bt(_t(r), 'priority', 120),
- bt(_t(r), 'incompatibleTokens', [
- 'Y',
- 'R',
- 'q',
- 'M',
- 'L',
- 'w',
- 'I',
- 'd',
- 'D',
- 'i',
- 'e',
- 'c',
- 't',
- 'T'
- ]),
- r
- );
- }
- return (
- Cn(n, [
- {
- key: 'parse',
- value: function (o, i, a) {
- switch (i) {
- case 'Q':
- case 'QQ':
- return cr(i.length, o);
- case 'Qo':
- return a.ordinalNumber(o, { unit: 'quarter' });
- case 'QQQ':
- return (
- a.quarter(o, {
- width: 'abbreviated',
- context: 'formatting'
- }) || a.quarter(o, { width: 'narrow', context: 'formatting' })
- );
- case 'QQQQQ':
- return a.quarter(o, { width: 'narrow', context: 'formatting' });
- case 'QQQQ':
- default:
- return (
- a.quarter(o, { width: 'wide', context: 'formatting' }) ||
- a.quarter(o, {
- width: 'abbreviated',
- context: 'formatting'
- }) ||
- a.quarter(o, { width: 'narrow', context: 'formatting' })
- );
- }
- }
- },
- {
- key: 'validate',
- value: function (o, i) {
- return i >= 1 && i <= 4;
- }
- },
- {
- key: 'set',
- value: function (o, i, a) {
- return o.setUTCMonth((a - 1) * 3, 1), o.setUTCHours(0, 0, 0, 0), o;
- }
- }
- ]),
- n
- );
- })(En),
- Vj = (function (e) {
- Rn(n, e);
- var t = Pn(n);
- function n() {
- var r;
- wn(this, n);
- for (var o = arguments.length, i = new Array(o), a = 0; a < o; a++)
- i[a] = arguments[a];
- return (
- (r = t.call.apply(t, [this].concat(i))),
- bt(_t(r), 'priority', 120),
- bt(_t(r), 'incompatibleTokens', [
- 'Y',
- 'R',
- 'Q',
- 'M',
- 'L',
- 'w',
- 'I',
- 'd',
- 'D',
- 'i',
- 'e',
- 'c',
- 't',
- 'T'
- ]),
- r
- );
- }
- return (
- Cn(n, [
- {
- key: 'parse',
- value: function (o, i, a) {
- switch (i) {
- case 'q':
- case 'qq':
- return cr(i.length, o);
- case 'qo':
- return a.ordinalNumber(o, { unit: 'quarter' });
- case 'qqq':
- return (
- a.quarter(o, {
- width: 'abbreviated',
- context: 'standalone'
- }) || a.quarter(o, { width: 'narrow', context: 'standalone' })
- );
- case 'qqqqq':
- return a.quarter(o, { width: 'narrow', context: 'standalone' });
- case 'qqqq':
- default:
- return (
- a.quarter(o, { width: 'wide', context: 'standalone' }) ||
- a.quarter(o, {
- width: 'abbreviated',
- context: 'standalone'
- }) ||
- a.quarter(o, { width: 'narrow', context: 'standalone' })
- );
- }
- }
- },
- {
- key: 'validate',
- value: function (o, i) {
- return i >= 1 && i <= 4;
- }
- },
- {
- key: 'set',
- value: function (o, i, a) {
- return o.setUTCMonth((a - 1) * 3, 1), o.setUTCHours(0, 0, 0, 0), o;
- }
- }
- ]),
- n
- );
- })(En),
- Kj = (function (e) {
- Rn(n, e);
- var t = Pn(n);
- function n() {
- var r;
- wn(this, n);
- for (var o = arguments.length, i = new Array(o), a = 0; a < o; a++)
- i[a] = arguments[a];
- return (
- (r = t.call.apply(t, [this].concat(i))),
- bt(_t(r), 'incompatibleTokens', [
- 'Y',
- 'R',
- 'q',
- 'Q',
- 'L',
- 'w',
- 'I',
- 'D',
- 'i',
- 'e',
- 'c',
- 't',
- 'T'
- ]),
- bt(_t(r), 'priority', 110),
- r
- );
- }
- return (
- Cn(n, [
- {
- key: 'parse',
- value: function (o, i, a) {
- var s = function (d) {
- return d - 1;
- };
- switch (i) {
- case 'M':
- return pr(tr(vr.month, o), s);
- case 'MM':
- return pr(cr(2, o), s);
- case 'Mo':
- return pr(a.ordinalNumber(o, { unit: 'month' }), s);
- case 'MMM':
- return (
- a.month(o, { width: 'abbreviated', context: 'formatting' }) ||
- a.month(o, { width: 'narrow', context: 'formatting' })
- );
- case 'MMMMM':
- return a.month(o, { width: 'narrow', context: 'formatting' });
- case 'MMMM':
- default:
- return (
- a.month(o, { width: 'wide', context: 'formatting' }) ||
- a.month(o, { width: 'abbreviated', context: 'formatting' }) ||
- a.month(o, { width: 'narrow', context: 'formatting' })
- );
- }
- }
- },
- {
- key: 'validate',
- value: function (o, i) {
- return i >= 0 && i <= 11;
- }
- },
- {
- key: 'set',
- value: function (o, i, a) {
- return o.setUTCMonth(a, 1), o.setUTCHours(0, 0, 0, 0), o;
- }
- }
- ]),
- n
- );
- })(En),
- qj = (function (e) {
- Rn(n, e);
- var t = Pn(n);
- function n() {
- var r;
- wn(this, n);
- for (var o = arguments.length, i = new Array(o), a = 0; a < o; a++)
- i[a] = arguments[a];
- return (
- (r = t.call.apply(t, [this].concat(i))),
- bt(_t(r), 'priority', 110),
- bt(_t(r), 'incompatibleTokens', [
- 'Y',
- 'R',
- 'q',
- 'Q',
- 'M',
- 'w',
- 'I',
- 'D',
- 'i',
- 'e',
- 'c',
- 't',
- 'T'
- ]),
- r
- );
- }
- return (
- Cn(n, [
- {
- key: 'parse',
- value: function (o, i, a) {
- var s = function (d) {
- return d - 1;
- };
- switch (i) {
- case 'L':
- return pr(tr(vr.month, o), s);
- case 'LL':
- return pr(cr(2, o), s);
- case 'Lo':
- return pr(a.ordinalNumber(o, { unit: 'month' }), s);
- case 'LLL':
- return (
- a.month(o, { width: 'abbreviated', context: 'standalone' }) ||
- a.month(o, { width: 'narrow', context: 'standalone' })
- );
- case 'LLLLL':
- return a.month(o, { width: 'narrow', context: 'standalone' });
- case 'LLLL':
- default:
- return (
- a.month(o, { width: 'wide', context: 'standalone' }) ||
- a.month(o, { width: 'abbreviated', context: 'standalone' }) ||
- a.month(o, { width: 'narrow', context: 'standalone' })
- );
- }
- }
- },
- {
- key: 'validate',
- value: function (o, i) {
- return i >= 0 && i <= 11;
- }
- },
- {
- key: 'set',
- value: function (o, i, a) {
- return o.setUTCMonth(a, 1), o.setUTCHours(0, 0, 0, 0), o;
- }
- }
- ]),
- n
- );
- })(En);
- function Yj(e, t, n) {
- Bt(2, arguments);
- var r = Xt(e),
- o = Ln(t),
- i = ik(r, n) - o;
- return r.setUTCDate(r.getUTCDate() - i * 7), r;
- }
- var Gj = (function (e) {
- Rn(n, e);
- var t = Pn(n);
- function n() {
- var r;
- wn(this, n);
- for (var o = arguments.length, i = new Array(o), a = 0; a < o; a++)
- i[a] = arguments[a];
- return (
- (r = t.call.apply(t, [this].concat(i))),
- bt(_t(r), 'priority', 100),
- bt(_t(r), 'incompatibleTokens', [
- 'y',
- 'R',
- 'u',
- 'q',
- 'Q',
- 'M',
- 'L',
- 'I',
- 'd',
- 'D',
- 'i',
- 't',
- 'T'
- ]),
- r
- );
- }
- return (
- Cn(n, [
- {
- key: 'parse',
- value: function (o, i, a) {
- switch (i) {
- case 'w':
- return tr(vr.week, o);
- case 'wo':
- return a.ordinalNumber(o, { unit: 'week' });
- default:
- return cr(i.length, o);
- }
- }
- },
- {
- key: 'validate',
- value: function (o, i) {
- return i >= 1 && i <= 53;
- }
- },
- {
- key: 'set',
- value: function (o, i, a, s) {
- return Ca(Yj(o, a, s), s);
- }
- }
- ]),
- n
- );
- })(En);
- function Xj(e, t) {
- Bt(2, arguments);
- var n = Xt(e),
- r = Ln(t),
- o = ok(n) - r;
- return n.setUTCDate(n.getUTCDate() - o * 7), n;
- }
- var Zj = (function (e) {
- Rn(n, e);
- var t = Pn(n);
- function n() {
- var r;
- wn(this, n);
- for (var o = arguments.length, i = new Array(o), a = 0; a < o; a++)
- i[a] = arguments[a];
- return (
- (r = t.call.apply(t, [this].concat(i))),
- bt(_t(r), 'priority', 100),
- bt(_t(r), 'incompatibleTokens', [
- 'y',
- 'Y',
- 'u',
- 'q',
- 'Q',
- 'M',
- 'L',
- 'w',
- 'd',
- 'D',
- 'e',
- 'c',
- 't',
- 'T'
- ]),
- r
- );
- }
- return (
- Cn(n, [
- {
- key: 'parse',
- value: function (o, i, a) {
- switch (i) {
- case 'I':
- return tr(vr.week, o);
- case 'Io':
- return a.ordinalNumber(o, { unit: 'week' });
- default:
- return cr(i.length, o);
- }
- }
- },
- {
- key: 'validate',
- value: function (o, i) {
- return i >= 1 && i <= 53;
- }
- },
- {
- key: 'set',
- value: function (o, i, a) {
- return Mc(Xj(o, a));
- }
- }
- ]),
- n
- );
- })(En),
- Qj = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31],
- Jj = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31],
- eU = (function (e) {
- Rn(n, e);
- var t = Pn(n);
- function n() {
- var r;
- wn(this, n);
- for (var o = arguments.length, i = new Array(o), a = 0; a < o; a++)
- i[a] = arguments[a];
- return (
- (r = t.call.apply(t, [this].concat(i))),
- bt(_t(r), 'priority', 90),
- bt(_t(r), 'subPriority', 1),
- bt(_t(r), 'incompatibleTokens', [
- 'Y',
- 'R',
- 'q',
- 'Q',
- 'w',
- 'I',
- 'D',
- 'i',
- 'e',
- 'c',
- 't',
- 'T'
- ]),
- r
- );
- }
- return (
- Cn(n, [
- {
- key: 'parse',
- value: function (o, i, a) {
- switch (i) {
- case 'd':
- return tr(vr.date, o);
- case 'do':
- return a.ordinalNumber(o, { unit: 'date' });
- default:
- return cr(i.length, o);
- }
- }
- },
- {
- key: 'validate',
- value: function (o, i) {
- var a = o.getUTCFullYear(),
- s = hk(a),
- c = o.getUTCMonth();
- return s ? i >= 1 && i <= Jj[c] : i >= 1 && i <= Qj[c];
- }
- },
- {
- key: 'set',
- value: function (o, i, a) {
- return o.setUTCDate(a), o.setUTCHours(0, 0, 0, 0), o;
- }
- }
- ]),
- n
- );
- })(En),
- tU = (function (e) {
- Rn(n, e);
- var t = Pn(n);
- function n() {
- var r;
- wn(this, n);
- for (var o = arguments.length, i = new Array(o), a = 0; a < o; a++)
- i[a] = arguments[a];
- return (
- (r = t.call.apply(t, [this].concat(i))),
- bt(_t(r), 'priority', 90),
- bt(_t(r), 'subpriority', 1),
- bt(_t(r), 'incompatibleTokens', [
- 'Y',
- 'R',
- 'q',
- 'Q',
- 'M',
- 'L',
- 'w',
- 'I',
- 'd',
- 'E',
- 'i',
- 'e',
- 'c',
- 't',
- 'T'
- ]),
- r
- );
- }
- return (
- Cn(n, [
- {
- key: 'parse',
- value: function (o, i, a) {
- switch (i) {
- case 'D':
- case 'DD':
- return tr(vr.dayOfYear, o);
- case 'Do':
- return a.ordinalNumber(o, { unit: 'date' });
- default:
- return cr(i.length, o);
- }
- }
- },
- {
- key: 'validate',
- value: function (o, i) {
- var a = o.getUTCFullYear(),
- s = hk(a);
- return s ? i >= 1 && i <= 366 : i >= 1 && i <= 365;
- }
- },
- {
- key: 'set',
- value: function (o, i, a) {
- return o.setUTCMonth(0, a), o.setUTCHours(0, 0, 0, 0), o;
- }
- }
- ]),
- n
- );
- })(En);
- function gy(e, t, n) {
- var r, o, i, a, s, c, d, f;
- Bt(2, arguments);
- var v = ed(),
- p = Ln(
- (r =
- (o =
- (i =
- (a = n == null ? void 0 : n.weekStartsOn) !== null && a !== void 0
- ? a
- : n == null ||
- (s = n.locale) === null ||
- s === void 0 ||
- (c = s.options) === null ||
- c === void 0
- ? void 0
- : c.weekStartsOn) !== null && i !== void 0
- ? i
- : v.weekStartsOn) !== null && o !== void 0
- ? o
- : (d = v.locale) === null ||
- d === void 0 ||
- (f = d.options) === null ||
- f === void 0
- ? void 0
- : f.weekStartsOn) !== null && r !== void 0
- ? r
- : 0
- );
- if (!(p >= 0 && p <= 6))
- throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
- var m = Xt(e),
- g = Ln(t),
- w = m.getUTCDay(),
- x = g % 7,
- y = (x + 7) % 7,
- C = (y < p ? 7 : 0) + g - w;
- return m.setUTCDate(m.getUTCDate() + C), m;
- }
- var nU = (function (e) {
- Rn(n, e);
- var t = Pn(n);
- function n() {
- var r;
- wn(this, n);
- for (var o = arguments.length, i = new Array(o), a = 0; a < o; a++)
- i[a] = arguments[a];
- return (
- (r = t.call.apply(t, [this].concat(i))),
- bt(_t(r), 'priority', 90),
- bt(_t(r), 'incompatibleTokens', ['D', 'i', 'e', 'c', 't', 'T']),
- r
- );
- }
- return (
- Cn(n, [
- {
- key: 'parse',
- value: function (o, i, a) {
- switch (i) {
- case 'E':
- case 'EE':
- case 'EEE':
- return (
- a.day(o, { width: 'abbreviated', context: 'formatting' }) ||
- a.day(o, { width: 'short', context: 'formatting' }) ||
- a.day(o, { width: 'narrow', context: 'formatting' })
- );
- case 'EEEEE':
- return a.day(o, { width: 'narrow', context: 'formatting' });
- case 'EEEEEE':
- return (
- a.day(o, { width: 'short', context: 'formatting' }) ||
- a.day(o, { width: 'narrow', context: 'formatting' })
- );
- case 'EEEE':
- default:
- return (
- a.day(o, { width: 'wide', context: 'formatting' }) ||
- a.day(o, { width: 'abbreviated', context: 'formatting' }) ||
- a.day(o, { width: 'short', context: 'formatting' }) ||
- a.day(o, { width: 'narrow', context: 'formatting' })
- );
- }
- }
- },
- {
- key: 'validate',
- value: function (o, i) {
- return i >= 0 && i <= 6;
- }
- },
- {
- key: 'set',
- value: function (o, i, a, s) {
- return (o = gy(o, a, s)), o.setUTCHours(0, 0, 0, 0), o;
- }
- }
- ]),
- n
- );
- })(En),
- rU = (function (e) {
- Rn(n, e);
- var t = Pn(n);
- function n() {
- var r;
- wn(this, n);
- for (var o = arguments.length, i = new Array(o), a = 0; a < o; a++)
- i[a] = arguments[a];
- return (
- (r = t.call.apply(t, [this].concat(i))),
- bt(_t(r), 'priority', 90),
- bt(_t(r), 'incompatibleTokens', [
- 'y',
- 'R',
- 'u',
- 'q',
- 'Q',
- 'M',
- 'L',
- 'I',
- 'd',
- 'D',
- 'E',
- 'i',
- 'c',
- 't',
- 'T'
- ]),
- r
- );
- }
- return (
- Cn(n, [
- {
- key: 'parse',
- value: function (o, i, a, s) {
- var c = function (f) {
- var v = Math.floor((f - 1) / 7) * 7;
- return ((f + s.weekStartsOn + 6) % 7) + v;
- };
- switch (i) {
- case 'e':
- case 'ee':
- return pr(cr(i.length, o), c);
- case 'eo':
- return pr(a.ordinalNumber(o, { unit: 'day' }), c);
- case 'eee':
- return (
- a.day(o, { width: 'abbreviated', context: 'formatting' }) ||
- a.day(o, { width: 'short', context: 'formatting' }) ||
- a.day(o, { width: 'narrow', context: 'formatting' })
- );
- case 'eeeee':
- return a.day(o, { width: 'narrow', context: 'formatting' });
- case 'eeeeee':
- return (
- a.day(o, { width: 'short', context: 'formatting' }) ||
- a.day(o, { width: 'narrow', context: 'formatting' })
- );
- case 'eeee':
- default:
- return (
- a.day(o, { width: 'wide', context: 'formatting' }) ||
- a.day(o, { width: 'abbreviated', context: 'formatting' }) ||
- a.day(o, { width: 'short', context: 'formatting' }) ||
- a.day(o, { width: 'narrow', context: 'formatting' })
- );
- }
- }
- },
- {
- key: 'validate',
- value: function (o, i) {
- return i >= 0 && i <= 6;
- }
- },
- {
- key: 'set',
- value: function (o, i, a, s) {
- return (o = gy(o, a, s)), o.setUTCHours(0, 0, 0, 0), o;
- }
- }
- ]),
- n
- );
- })(En),
- oU = (function (e) {
- Rn(n, e);
- var t = Pn(n);
- function n() {
- var r;
- wn(this, n);
- for (var o = arguments.length, i = new Array(o), a = 0; a < o; a++)
- i[a] = arguments[a];
- return (
- (r = t.call.apply(t, [this].concat(i))),
- bt(_t(r), 'priority', 90),
- bt(_t(r), 'incompatibleTokens', [
- 'y',
- 'R',
- 'u',
- 'q',
- 'Q',
- 'M',
- 'L',
- 'I',
- 'd',
- 'D',
- 'E',
- 'i',
- 'e',
- 't',
- 'T'
- ]),
- r
- );
- }
- return (
- Cn(n, [
- {
- key: 'parse',
- value: function (o, i, a, s) {
- var c = function (f) {
- var v = Math.floor((f - 1) / 7) * 7;
- return ((f + s.weekStartsOn + 6) % 7) + v;
- };
- switch (i) {
- case 'c':
- case 'cc':
- return pr(cr(i.length, o), c);
- case 'co':
- return pr(a.ordinalNumber(o, { unit: 'day' }), c);
- case 'ccc':
- return (
- a.day(o, { width: 'abbreviated', context: 'standalone' }) ||
- a.day(o, { width: 'short', context: 'standalone' }) ||
- a.day(o, { width: 'narrow', context: 'standalone' })
- );
- case 'ccccc':
- return a.day(o, { width: 'narrow', context: 'standalone' });
- case 'cccccc':
- return (
- a.day(o, { width: 'short', context: 'standalone' }) ||
- a.day(o, { width: 'narrow', context: 'standalone' })
- );
- case 'cccc':
- default:
- return (
- a.day(o, { width: 'wide', context: 'standalone' }) ||
- a.day(o, { width: 'abbreviated', context: 'standalone' }) ||
- a.day(o, { width: 'short', context: 'standalone' }) ||
- a.day(o, { width: 'narrow', context: 'standalone' })
- );
- }
- }
- },
- {
- key: 'validate',
- value: function (o, i) {
- return i >= 0 && i <= 6;
- }
- },
- {
- key: 'set',
- value: function (o, i, a, s) {
- return (o = gy(o, a, s)), o.setUTCHours(0, 0, 0, 0), o;
- }
- }
- ]),
- n
- );
- })(En);
- function iU(e, t) {
- Bt(2, arguments);
- var n = Ln(t);
- n % 7 === 0 && (n = n - 7);
- var r = 1,
- o = Xt(e),
- i = o.getUTCDay(),
- a = n % 7,
- s = (a + 7) % 7,
- c = (s < r ? 7 : 0) + n - i;
- return o.setUTCDate(o.getUTCDate() + c), o;
- }
- var aU = (function (e) {
- Rn(n, e);
- var t = Pn(n);
- function n() {
- var r;
- wn(this, n);
- for (var o = arguments.length, i = new Array(o), a = 0; a < o; a++)
- i[a] = arguments[a];
- return (
- (r = t.call.apply(t, [this].concat(i))),
- bt(_t(r), 'priority', 90),
- bt(_t(r), 'incompatibleTokens', [
- 'y',
- 'Y',
- 'u',
- 'q',
- 'Q',
- 'M',
- 'L',
- 'w',
- 'd',
- 'D',
- 'E',
- 'e',
- 'c',
- 't',
- 'T'
- ]),
- r
- );
- }
- return (
- Cn(n, [
- {
- key: 'parse',
- value: function (o, i, a) {
- var s = function (d) {
- return d === 0 ? 7 : d;
- };
- switch (i) {
- case 'i':
- case 'ii':
- return cr(i.length, o);
- case 'io':
- return a.ordinalNumber(o, { unit: 'day' });
- case 'iii':
- return pr(
- a.day(o, { width: 'abbreviated', context: 'formatting' }) ||
- a.day(o, { width: 'short', context: 'formatting' }) ||
- a.day(o, { width: 'narrow', context: 'formatting' }),
- s
- );
- case 'iiiii':
- return pr(
- a.day(o, { width: 'narrow', context: 'formatting' }),
- s
- );
- case 'iiiiii':
- return pr(
- a.day(o, { width: 'short', context: 'formatting' }) ||
- a.day(o, { width: 'narrow', context: 'formatting' }),
- s
- );
- case 'iiii':
- default:
- return pr(
- a.day(o, { width: 'wide', context: 'formatting' }) ||
- a.day(o, { width: 'abbreviated', context: 'formatting' }) ||
- a.day(o, { width: 'short', context: 'formatting' }) ||
- a.day(o, { width: 'narrow', context: 'formatting' }),
- s
- );
- }
- }
- },
- {
- key: 'validate',
- value: function (o, i) {
- return i >= 1 && i <= 7;
- }
- },
- {
- key: 'set',
- value: function (o, i, a) {
- return (o = iU(o, a)), o.setUTCHours(0, 0, 0, 0), o;
- }
- }
- ]),
- n
- );
- })(En),
- lU = (function (e) {
- Rn(n, e);
- var t = Pn(n);
- function n() {
- var r;
- wn(this, n);
- for (var o = arguments.length, i = new Array(o), a = 0; a < o; a++)
- i[a] = arguments[a];
- return (
- (r = t.call.apply(t, [this].concat(i))),
- bt(_t(r), 'priority', 80),
- bt(_t(r), 'incompatibleTokens', ['b', 'B', 'H', 'k', 't', 'T']),
- r
- );
- }
- return (
- Cn(n, [
- {
- key: 'parse',
- value: function (o, i, a) {
- switch (i) {
- case 'a':
- case 'aa':
- case 'aaa':
- return (
- a.dayPeriod(o, {
- width: 'abbreviated',
- context: 'formatting'
- }) ||
- a.dayPeriod(o, { width: 'narrow', context: 'formatting' })
- );
- case 'aaaaa':
- return a.dayPeriod(o, {
- width: 'narrow',
- context: 'formatting'
- });
- case 'aaaa':
- default:
- return (
- a.dayPeriod(o, { width: 'wide', context: 'formatting' }) ||
- a.dayPeriod(o, {
- width: 'abbreviated',
- context: 'formatting'
- }) ||
- a.dayPeriod(o, { width: 'narrow', context: 'formatting' })
- );
- }
- }
- },
- {
- key: 'set',
- value: function (o, i, a) {
- return o.setUTCHours(py(a), 0, 0, 0), o;
- }
- }
- ]),
- n
- );
- })(En),
- sU = (function (e) {
- Rn(n, e);
- var t = Pn(n);
- function n() {
- var r;
- wn(this, n);
- for (var o = arguments.length, i = new Array(o), a = 0; a < o; a++)
- i[a] = arguments[a];
- return (
- (r = t.call.apply(t, [this].concat(i))),
- bt(_t(r), 'priority', 80),
- bt(_t(r), 'incompatibleTokens', ['a', 'B', 'H', 'k', 't', 'T']),
- r
- );
- }
- return (
- Cn(n, [
- {
- key: 'parse',
- value: function (o, i, a) {
- switch (i) {
- case 'b':
- case 'bb':
- case 'bbb':
- return (
- a.dayPeriod(o, {
- width: 'abbreviated',
- context: 'formatting'
- }) ||
- a.dayPeriod(o, { width: 'narrow', context: 'formatting' })
- );
- case 'bbbbb':
- return a.dayPeriod(o, {
- width: 'narrow',
- context: 'formatting'
- });
- case 'bbbb':
- default:
- return (
- a.dayPeriod(o, { width: 'wide', context: 'formatting' }) ||
- a.dayPeriod(o, {
- width: 'abbreviated',
- context: 'formatting'
- }) ||
- a.dayPeriod(o, { width: 'narrow', context: 'formatting' })
- );
- }
- }
- },
- {
- key: 'set',
- value: function (o, i, a) {
- return o.setUTCHours(py(a), 0, 0, 0), o;
- }
- }
- ]),
- n
- );
- })(En),
- cU = (function (e) {
- Rn(n, e);
- var t = Pn(n);
- function n() {
- var r;
- wn(this, n);
- for (var o = arguments.length, i = new Array(o), a = 0; a < o; a++)
- i[a] = arguments[a];
- return (
- (r = t.call.apply(t, [this].concat(i))),
- bt(_t(r), 'priority', 80),
- bt(_t(r), 'incompatibleTokens', ['a', 'b', 't', 'T']),
- r
- );
- }
- return (
- Cn(n, [
- {
- key: 'parse',
- value: function (o, i, a) {
- switch (i) {
- case 'B':
- case 'BB':
- case 'BBB':
- return (
- a.dayPeriod(o, {
- width: 'abbreviated',
- context: 'formatting'
- }) ||
- a.dayPeriod(o, { width: 'narrow', context: 'formatting' })
- );
- case 'BBBBB':
- return a.dayPeriod(o, {
- width: 'narrow',
- context: 'formatting'
- });
- case 'BBBB':
- default:
- return (
- a.dayPeriod(o, { width: 'wide', context: 'formatting' }) ||
- a.dayPeriod(o, {
- width: 'abbreviated',
- context: 'formatting'
- }) ||
- a.dayPeriod(o, { width: 'narrow', context: 'formatting' })
- );
- }
- }
- },
- {
- key: 'set',
- value: function (o, i, a) {
- return o.setUTCHours(py(a), 0, 0, 0), o;
- }
- }
- ]),
- n
- );
- })(En),
- dU = (function (e) {
- Rn(n, e);
- var t = Pn(n);
- function n() {
- var r;
- wn(this, n);
- for (var o = arguments.length, i = new Array(o), a = 0; a < o; a++)
- i[a] = arguments[a];
- return (
- (r = t.call.apply(t, [this].concat(i))),
- bt(_t(r), 'priority', 70),
- bt(_t(r), 'incompatibleTokens', ['H', 'K', 'k', 't', 'T']),
- r
- );
- }
- return (
- Cn(n, [
- {
- key: 'parse',
- value: function (o, i, a) {
- switch (i) {
- case 'h':
- return tr(vr.hour12h, o);
- case 'ho':
- return a.ordinalNumber(o, { unit: 'hour' });
- default:
- return cr(i.length, o);
- }
- }
- },
- {
- key: 'validate',
- value: function (o, i) {
- return i >= 1 && i <= 12;
- }
- },
- {
- key: 'set',
- value: function (o, i, a) {
- var s = o.getUTCHours() >= 12;
- return (
- s && a < 12
- ? o.setUTCHours(a + 12, 0, 0, 0)
- : !s && a === 12
- ? o.setUTCHours(0, 0, 0, 0)
- : o.setUTCHours(a, 0, 0, 0),
- o
- );
- }
- }
- ]),
- n
- );
- })(En),
- uU = (function (e) {
- Rn(n, e);
- var t = Pn(n);
- function n() {
- var r;
- wn(this, n);
- for (var o = arguments.length, i = new Array(o), a = 0; a < o; a++)
- i[a] = arguments[a];
- return (
- (r = t.call.apply(t, [this].concat(i))),
- bt(_t(r), 'priority', 70),
- bt(_t(r), 'incompatibleTokens', ['a', 'b', 'h', 'K', 'k', 't', 'T']),
- r
- );
- }
- return (
- Cn(n, [
- {
- key: 'parse',
- value: function (o, i, a) {
- switch (i) {
- case 'H':
- return tr(vr.hour23h, o);
- case 'Ho':
- return a.ordinalNumber(o, { unit: 'hour' });
- default:
- return cr(i.length, o);
- }
- }
- },
- {
- key: 'validate',
- value: function (o, i) {
- return i >= 0 && i <= 23;
- }
- },
- {
- key: 'set',
- value: function (o, i, a) {
- return o.setUTCHours(a, 0, 0, 0), o;
- }
- }
- ]),
- n
- );
- })(En),
- fU = (function (e) {
- Rn(n, e);
- var t = Pn(n);
- function n() {
- var r;
- wn(this, n);
- for (var o = arguments.length, i = new Array(o), a = 0; a < o; a++)
- i[a] = arguments[a];
- return (
- (r = t.call.apply(t, [this].concat(i))),
- bt(_t(r), 'priority', 70),
- bt(_t(r), 'incompatibleTokens', ['h', 'H', 'k', 't', 'T']),
- r
- );
- }
- return (
- Cn(n, [
- {
- key: 'parse',
- value: function (o, i, a) {
- switch (i) {
- case 'K':
- return tr(vr.hour11h, o);
- case 'Ko':
- return a.ordinalNumber(o, { unit: 'hour' });
- default:
- return cr(i.length, o);
- }
- }
- },
- {
- key: 'validate',
- value: function (o, i) {
- return i >= 0 && i <= 11;
- }
- },
- {
- key: 'set',
- value: function (o, i, a) {
- var s = o.getUTCHours() >= 12;
- return (
- s && a < 12
- ? o.setUTCHours(a + 12, 0, 0, 0)
- : o.setUTCHours(a, 0, 0, 0),
- o
- );
- }
- }
- ]),
- n
- );
- })(En),
- hU = (function (e) {
- Rn(n, e);
- var t = Pn(n);
- function n() {
- var r;
- wn(this, n);
- for (var o = arguments.length, i = new Array(o), a = 0; a < o; a++)
- i[a] = arguments[a];
- return (
- (r = t.call.apply(t, [this].concat(i))),
- bt(_t(r), 'priority', 70),
- bt(_t(r), 'incompatibleTokens', ['a', 'b', 'h', 'H', 'K', 't', 'T']),
- r
- );
- }
- return (
- Cn(n, [
- {
- key: 'parse',
- value: function (o, i, a) {
- switch (i) {
- case 'k':
- return tr(vr.hour24h, o);
- case 'ko':
- return a.ordinalNumber(o, { unit: 'hour' });
- default:
- return cr(i.length, o);
- }
- }
- },
- {
- key: 'validate',
- value: function (o, i) {
- return i >= 1 && i <= 24;
- }
- },
- {
- key: 'set',
- value: function (o, i, a) {
- var s = a <= 24 ? a % 24 : a;
- return o.setUTCHours(s, 0, 0, 0), o;
- }
- }
- ]),
- n
- );
- })(En),
- vU = (function (e) {
- Rn(n, e);
- var t = Pn(n);
- function n() {
- var r;
- wn(this, n);
- for (var o = arguments.length, i = new Array(o), a = 0; a < o; a++)
- i[a] = arguments[a];
- return (
- (r = t.call.apply(t, [this].concat(i))),
- bt(_t(r), 'priority', 60),
- bt(_t(r), 'incompatibleTokens', ['t', 'T']),
- r
- );
- }
- return (
- Cn(n, [
- {
- key: 'parse',
- value: function (o, i, a) {
- switch (i) {
- case 'm':
- return tr(vr.minute, o);
- case 'mo':
- return a.ordinalNumber(o, { unit: 'minute' });
- default:
- return cr(i.length, o);
- }
- }
- },
- {
- key: 'validate',
- value: function (o, i) {
- return i >= 0 && i <= 59;
- }
- },
- {
- key: 'set',
- value: function (o, i, a) {
- return o.setUTCMinutes(a, 0, 0), o;
- }
- }
- ]),
- n
- );
- })(En),
- pU = (function (e) {
- Rn(n, e);
- var t = Pn(n);
- function n() {
- var r;
- wn(this, n);
- for (var o = arguments.length, i = new Array(o), a = 0; a < o; a++)
- i[a] = arguments[a];
- return (
- (r = t.call.apply(t, [this].concat(i))),
- bt(_t(r), 'priority', 50),
- bt(_t(r), 'incompatibleTokens', ['t', 'T']),
- r
- );
- }
- return (
- Cn(n, [
- {
- key: 'parse',
- value: function (o, i, a) {
- switch (i) {
- case 's':
- return tr(vr.second, o);
- case 'so':
- return a.ordinalNumber(o, { unit: 'second' });
- default:
- return cr(i.length, o);
- }
- }
- },
- {
- key: 'validate',
- value: function (o, i) {
- return i >= 0 && i <= 59;
- }
- },
- {
- key: 'set',
- value: function (o, i, a) {
- return o.setUTCSeconds(a, 0), o;
- }
- }
- ]),
- n
- );
- })(En),
- gU = (function (e) {
- Rn(n, e);
- var t = Pn(n);
- function n() {
- var r;
- wn(this, n);
- for (var o = arguments.length, i = new Array(o), a = 0; a < o; a++)
- i[a] = arguments[a];
- return (
- (r = t.call.apply(t, [this].concat(i))),
- bt(_t(r), 'priority', 30),
- bt(_t(r), 'incompatibleTokens', ['t', 'T']),
- r
- );
- }
- return (
- Cn(n, [
- {
- key: 'parse',
- value: function (o, i) {
- var a = function (c) {
- return Math.floor(c * Math.pow(10, -i.length + 3));
- };
- return pr(cr(i.length, o), a);
- }
- },
- {
- key: 'set',
- value: function (o, i, a) {
- return o.setUTCMilliseconds(a), o;
- }
- }
- ]),
- n
- );
- })(En),
- mU = (function (e) {
- Rn(n, e);
- var t = Pn(n);
- function n() {
- var r;
- wn(this, n);
- for (var o = arguments.length, i = new Array(o), a = 0; a < o; a++)
- i[a] = arguments[a];
- return (
- (r = t.call.apply(t, [this].concat(i))),
- bt(_t(r), 'priority', 10),
- bt(_t(r), 'incompatibleTokens', ['t', 'T', 'x']),
- r
- );
- }
- return (
- Cn(n, [
- {
- key: 'parse',
- value: function (o, i) {
- switch (i) {
- case 'X':
- return Bi(Fi.basicOptionalMinutes, o);
- case 'XX':
- return Bi(Fi.basic, o);
- case 'XXXX':
- return Bi(Fi.basicOptionalSeconds, o);
- case 'XXXXX':
- return Bi(Fi.extendedOptionalSeconds, o);
- case 'XXX':
- default:
- return Bi(Fi.extended, o);
- }
- }
- },
- {
- key: 'set',
- value: function (o, i, a) {
- return i.timestampIsSet ? o : new Date(o.getTime() - a);
- }
- }
- ]),
- n
- );
- })(En),
- bU = (function (e) {
- Rn(n, e);
- var t = Pn(n);
- function n() {
- var r;
- wn(this, n);
- for (var o = arguments.length, i = new Array(o), a = 0; a < o; a++)
- i[a] = arguments[a];
- return (
- (r = t.call.apply(t, [this].concat(i))),
- bt(_t(r), 'priority', 10),
- bt(_t(r), 'incompatibleTokens', ['t', 'T', 'X']),
- r
- );
- }
- return (
- Cn(n, [
- {
- key: 'parse',
- value: function (o, i) {
- switch (i) {
- case 'x':
- return Bi(Fi.basicOptionalMinutes, o);
- case 'xx':
- return Bi(Fi.basic, o);
- case 'xxxx':
- return Bi(Fi.basicOptionalSeconds, o);
- case 'xxxxx':
- return Bi(Fi.extendedOptionalSeconds, o);
- case 'xxx':
- default:
- return Bi(Fi.extended, o);
- }
- }
- },
- {
- key: 'set',
- value: function (o, i, a) {
- return i.timestampIsSet ? o : new Date(o.getTime() - a);
- }
- }
- ]),
- n
- );
- })(En),
- yU = (function (e) {
- Rn(n, e);
- var t = Pn(n);
- function n() {
- var r;
- wn(this, n);
- for (var o = arguments.length, i = new Array(o), a = 0; a < o; a++)
- i[a] = arguments[a];
- return (
- (r = t.call.apply(t, [this].concat(i))),
- bt(_t(r), 'priority', 40),
- bt(_t(r), 'incompatibleTokens', '*'),
- r
- );
- }
- return (
- Cn(n, [
- {
- key: 'parse',
- value: function (o) {
- return uk(o);
- }
- },
- {
- key: 'set',
- value: function (o, i, a) {
- return [new Date(a * 1e3), { timestampIsSet: !0 }];
- }
- }
- ]),
- n
- );
- })(En),
- xU = (function (e) {
- Rn(n, e);
- var t = Pn(n);
- function n() {
- var r;
- wn(this, n);
- for (var o = arguments.length, i = new Array(o), a = 0; a < o; a++)
- i[a] = arguments[a];
- return (
- (r = t.call.apply(t, [this].concat(i))),
- bt(_t(r), 'priority', 20),
- bt(_t(r), 'incompatibleTokens', '*'),
- r
- );
- }
- return (
- Cn(n, [
- {
- key: 'parse',
- value: function (o) {
- return uk(o);
- }
- },
- {
- key: 'set',
- value: function (o, i, a) {
- return [new Date(a), { timestampIsSet: !0 }];
- }
- }
- ]),
- n
- );
- })(En),
- wU = {
- G: new Lj(),
- y: new Nj(),
- Y: new Hj(),
- R: new jj(),
- u: new Uj(),
- Q: new Wj(),
- q: new Vj(),
- M: new Kj(),
- L: new qj(),
- w: new Gj(),
- I: new Zj(),
- d: new eU(),
- D: new tU(),
- E: new nU(),
- e: new rU(),
- c: new oU(),
- i: new aU(),
- a: new lU(),
- b: new sU(),
- B: new cU(),
- h: new dU(),
- H: new uU(),
- K: new fU(),
- k: new hU(),
- m: new vU(),
- s: new pU(),
- S: new gU(),
- X: new mU(),
- x: new bU(),
- t: new yU(),
- T: new xU()
- },
- CU = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,
- SU = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,
- _U = /^'([^]*?)'?$/,
- RU = /''/g,
- PU = /\S/,
- kU = /[a-zA-Z]/;
- function TU(e, t, n, r) {
- var o, i, a, s, c, d, f, v, p, m, g, w, x, y, C, R, S, _;
- Bt(3, arguments);
- var P = String(e),
- T = String(t),
- A = ed(),
- z =
- (o =
- (i = r == null ? void 0 : r.locale) !== null && i !== void 0
- ? i
- : A.locale) !== null && o !== void 0
- ? o
- : fy;
- if (!z.match) throw new RangeError('locale must contain match property');
- var k = Ln(
- (a =
- (s =
- (c =
- (d = r == null ? void 0 : r.firstWeekContainsDate) !== null &&
- d !== void 0
- ? d
- : r == null ||
- (f = r.locale) === null ||
- f === void 0 ||
- (v = f.options) === null ||
- v === void 0
- ? void 0
- : v.firstWeekContainsDate) !== null && c !== void 0
- ? c
- : A.firstWeekContainsDate) !== null && s !== void 0
- ? s
- : (p = A.locale) === null ||
- p === void 0 ||
- (m = p.options) === null ||
- m === void 0
- ? void 0
- : m.firstWeekContainsDate) !== null && a !== void 0
- ? a
- : 1
- );
- if (!(k >= 1 && k <= 7))
- throw new RangeError(
- 'firstWeekContainsDate must be between 1 and 7 inclusively'
- );
- var M = Ln(
- (g =
- (w =
- (x =
- (y = r == null ? void 0 : r.weekStartsOn) !== null && y !== void 0
- ? y
- : r == null ||
- (C = r.locale) === null ||
- C === void 0 ||
- (R = C.options) === null ||
- R === void 0
- ? void 0
- : R.weekStartsOn) !== null && x !== void 0
- ? x
- : A.weekStartsOn) !== null && w !== void 0
- ? w
- : (S = A.locale) === null ||
- S === void 0 ||
- (_ = S.options) === null ||
- _ === void 0
- ? void 0
- : _.weekStartsOn) !== null && g !== void 0
- ? g
- : 0
- );
- if (!(M >= 0 && M <= 6))
- throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
- if (T === '') return P === '' ? Xt(n) : new Date(NaN);
- var E = { firstWeekContainsDate: k, weekStartsOn: M, locale: z },
- D = [new Bj()],
- L = T.match(SU)
- .map(function (me) {
- var he = me[0];
- if (he in lb) {
- var ue = lb[he];
- return ue(me, z.formatLong);
- }
- return me;
- })
- .join('')
- .match(CU),
- j = [],
- B = vS(L),
- q;
- try {
- var G = function () {
- var he = q.value;
- !(r != null && r.useAdditionalWeekYearTokens) && sk(he) && tv(he, T, e),
- !(r != null && r.useAdditionalDayOfYearTokens) &&
- lk(he) &&
- tv(he, T, e);
- var ue = he[0],
- Ae = wU[ue];
- if (Ae) {
- var W = Ae.incompatibleTokens;
- if (Array.isArray(W)) {
- var Q = j.find(function (ve) {
- return W.includes(ve.token) || ve.token === ue;
- });
- if (Q)
- throw new RangeError(
- "The format string mustn't contain `"
- .concat(Q.fullToken, '` and `')
- .concat(he, '` at the same time')
- );
- } else if (Ae.incompatibleTokens === '*' && j.length > 0)
- throw new RangeError(
- "The format string mustn't contain `".concat(
- he,
- '` and any other token at the same time'
- )
- );
- j.push({ token: ue, fullToken: he });
- var ee = Ae.run(P, he, z.match, E);
- if (!ee) return { v: new Date(NaN) };
- D.push(ee.setter), (P = ee.rest);
- } else {
- if (ue.match(kU))
- throw new RangeError(
- 'Format string contains an unescaped latin alphabet character `' +
- ue +
- '`'
- );
- if (
- (he === "''" ? (he = "'") : ue === "'" && (he = $U(he)),
- P.indexOf(he) === 0)
- )
- P = P.slice(he.length);
- else return { v: new Date(NaN) };
- }
- };
- for (B.s(); !(q = B.n()).done; ) {
- var ne = G();
- if (qi(ne) === 'object') return ne.v;
- }
- } catch (me) {
- B.e(me);
- } finally {
- B.f();
- }
- if (P.length > 0 && PU.test(P)) return new Date(NaN);
- var X = D.map(function (me) {
- return me.priority;
- })
- .sort(function (me, he) {
- return he - me;
- })
- .filter(function (me, he, ue) {
- return ue.indexOf(me) === he;
- })
- .map(function (me) {
- return D.filter(function (he) {
- return he.priority === me;
- }).sort(function (he, ue) {
- return ue.subPriority - he.subPriority;
- });
- })
- .map(function (me) {
- return me[0];
- }),
- J = Xt(n);
- if (isNaN(J.getTime())) return new Date(NaN);
- var re = nk(J, tk(J)),
- ce = {},
- pe = vS(X),
- Fe;
- try {
- for (pe.s(); !(Fe = pe.n()).done; ) {
- var Ie = Fe.value;
- if (!Ie.validate(re, E)) return new Date(NaN);
- var le = Ie.set(re, ce, E);
- Array.isArray(le) ? ((re = le[0]), $j(ce, le[1])) : (re = le);
- }
- } catch (me) {
- pe.e(me);
- } finally {
- pe.f();
- }
- return re;
- }
- function $U(e) {
- return e.match(_U)[1].replace(RU, "'");
- }
- function OU(e) {
- Bt(1, arguments);
- var t = Xt(e);
- return t.setMinutes(0, 0, 0), t;
- }
- function Wv(e, t) {
- Bt(2, arguments);
- var n = Xt(e),
- r = Xt(t);
- return n.getFullYear() === r.getFullYear() && n.getMonth() === r.getMonth();
- }
- function vk(e, t) {
- Bt(2, arguments);
- var n = Tu(e),
- r = Tu(t);
- return n.getTime() === r.getTime();
- }
- function my(e) {
- Bt(1, arguments);
- var t = Xt(e);
- return t.setMilliseconds(0), t;
- }
- function pk(e, t) {
- Bt(2, arguments);
- var n = Xt(e),
- r = Xt(t);
- return n.getFullYear() === r.getFullYear();
- }
- function by(e, t) {
- Bt(2, arguments);
- var n = Xt(e),
- r = Ln(t),
- o = n.getFullYear(),
- i = n.getDate(),
- a = new Date(0);
- a.setFullYear(o, r, 15), a.setHours(0, 0, 0, 0);
- var s = zj(a);
- return n.setMonth(r, Math.min(i, s)), n;
- }
- function Br(e, t) {
- if ((Bt(2, arguments), qi(t) !== 'object' || t === null))
- throw new RangeError('values parameter must be an object');
- var n = Xt(e);
- return isNaN(n.getTime())
- ? new Date(NaN)
- : (t.year != null && n.setFullYear(t.year),
- t.month != null && (n = by(n, t.month)),
- t.date != null && n.setDate(Ln(t.date)),
- t.hours != null && n.setHours(Ln(t.hours)),
- t.minutes != null && n.setMinutes(Ln(t.minutes)),
- t.seconds != null && n.setSeconds(Ln(t.seconds)),
- t.milliseconds != null && n.setMilliseconds(Ln(t.milliseconds)),
- n);
- }
- function Zl(e, t) {
- Bt(2, arguments);
- var n = Xt(e),
- r = Ln(t);
- return n.setHours(r), n;
- }
- function Mg(e, t) {
- Bt(2, arguments);
- var n = Xt(e),
- r = Ln(t);
- return n.setMinutes(r), n;
- }
- function zU(e, t) {
- Bt(2, arguments);
- var n = Xt(e),
- r = Ln(t),
- o = Math.floor(n.getMonth() / 3) + 1,
- i = r - o;
- return by(n, n.getMonth() + i * 3);
- }
- function Ig(e, t) {
- Bt(2, arguments);
- var n = Xt(e),
- r = Ln(t);
- return n.setSeconds(r), n;
- }
- function gS(e, t) {
- Bt(2, arguments);
- var n = Xt(e),
- r = Ln(t);
- return isNaN(n.getTime()) ? new Date(NaN) : (n.setFullYear(r), n);
- }
- function ka(e) {
- const { mergedLocaleRef: t, mergedDateLocaleRef: n } = Ze(wa, null) || {},
- r = I(() => {
- var i, a;
- return (a =
- (i = t == null ? void 0 : t.value) === null || i === void 0
- ? void 0
- : i[e]) !== null && a !== void 0
- ? a
- : $N[e];
- });
- return {
- dateLocaleRef: I(() => {
- var i;
- return (i = n == null ? void 0 : n.value) !== null && i !== void 0
- ? i
- : ej;
- }),
- localeRef: r
- };
- }
- function Ta(e, t, n) {
- if (!t) return;
- const r = wl(),
- o = Ze(wa, null),
- i = () => {
- const a = n == null ? void 0 : n.value;
- t.mount({
- id: a === void 0 ? e : a + e,
- head: !0,
- anchorMetaName: Ec,
- props: { bPrefix: a ? `.${a}-` : void 0 },
- ssr: r
- }),
- (o != null && o.preflightStyleDisabled) ||
- QP.mount({ id: 'n-global', head: !0, anchorMetaName: Ec, ssr: r });
- };
- r ? i() : yl(i);
- }
- function Mt(e, t, n, r) {
- var o;
- n || io('useThemeClass', 'cssVarsRef is not passed');
- const i =
- (o = Ze(wa, null)) === null || o === void 0
- ? void 0
- : o.mergedThemeHashRef,
- a = Z(''),
- s = wl();
- let c;
- const d = `__${e}`,
- f = () => {
- let v = d;
- const p = t ? t.value : void 0,
- m = i == null ? void 0 : i.value;
- m && (v += '-' + m), p && (v += '-' + p);
- const { themeOverrides: g, builtinThemeOverrides: w } = r;
- g && (v += '-' + wu(JSON.stringify(g))),
- w && (v += '-' + wu(JSON.stringify(w))),
- (a.value = v),
- (c = () => {
- const x = n.value;
- let y = '';
- for (const C in x) y += `${C}: ${x[C]};`;
- F(`.${v}`, y).mount({ id: v, ssr: s }), (c = void 0);
- });
- };
- return (
- Bn(() => {
- f();
- }),
- {
- themeClass: a,
- onRender: () => {
- c == null || c();
- }
- }
- );
- }
- function dr(e, t, n) {
- if (!t) return;
- const r = wl(),
- o = I(() => {
- const { value: a } = t;
- if (!a) return;
- const s = a[e];
- if (s) return s;
- }),
- i = () => {
- Bn(() => {
- const { value: a } = n,
- s = `${a}${e}Rtl`;
- if (aD(s, r)) return;
- const { value: c } = o;
- c &&
- c.style.mount({
- id: s,
- head: !0,
- anchorMetaName: Ec,
- props: { bPrefix: a ? `.${a}-` : void 0 },
- ssr: r
- });
- });
- };
- return r ? i() : yl(i), o;
- }
- const yy = Re({
- name: 'Add',
- render() {
- return h(
- 'svg',
- {
- width: '512',
- height: '512',
- viewBox: '0 0 512 512',
- fill: 'none',
- xmlns: 'http://www.w3.org/2000/svg'
- },
- h('path', {
- d: 'M256 112V400M400 256H112',
- stroke: 'currentColor',
- 'stroke-width': '32',
- 'stroke-linecap': 'round',
- 'stroke-linejoin': 'round'
- })
- );
- }
- }),
- AU = Re({
- name: 'ArrowDown',
- render() {
- return h(
- 'svg',
- {
- viewBox: '0 0 28 28',
- version: '1.1',
- xmlns: 'http://www.w3.org/2000/svg'
- },
- h(
- 'g',
- { stroke: 'none', 'stroke-width': '1', 'fill-rule': 'evenodd' },
- h(
- 'g',
- { 'fill-rule': 'nonzero' },
- h('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 Mr(e, t) {
- return Re({
- name: YL(e),
- setup() {
- var n;
- const r =
- (n = Ze(wa, null)) === null || n === void 0 ? void 0 : n.mergedIconsRef;
- return () => {
- var o;
- const i =
- (o = r == null ? void 0 : r.value) === null || o === void 0
- ? void 0
- : o[e];
- return i ? i() : t;
- };
- }
- });
- }
- const EU = Mr(
- 'attach',
- h(
- 'svg',
- {
- viewBox: '0 0 16 16',
- version: '1.1',
- xmlns: 'http://www.w3.org/2000/svg'
- },
- h(
- 'g',
- {
- stroke: 'none',
- 'stroke-width': '1',
- fill: 'none',
- 'fill-rule': 'evenodd'
- },
- h(
- 'g',
- { fill: 'currentColor', 'fill-rule': 'nonzero' },
- h('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'
- })
- )
- )
- )
- ),
- vl = Re({
- name: 'Backward',
- render() {
- return h(
- 'svg',
- {
- viewBox: '0 0 20 20',
- fill: 'none',
- xmlns: 'http://www.w3.org/2000/svg'
- },
- h('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'
- })
- );
- }
- }),
- mS = Mr(
- 'date',
- h(
- 'svg',
- {
- width: '28px',
- height: '28px',
- viewBox: '0 0 28 28',
- version: '1.1',
- xmlns: 'http://www.w3.org/2000/svg'
- },
- h(
- 'g',
- { stroke: 'none', 'stroke-width': '1', 'fill-rule': 'evenodd' },
- h(
- 'g',
- { 'fill-rule': 'nonzero' },
- h('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'
- })
- )
- )
- )
- ),
- gk = Re({
- name: 'Checkmark',
- render() {
- return h(
- 'svg',
- { xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 16 16' },
- h(
- 'g',
- { fill: 'none' },
- h('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'
- })
- )
- );
- }
- }),
- xy = Re({
- name: 'ChevronRight',
- render() {
- return h(
- 'svg',
- {
- viewBox: '0 0 16 16',
- fill: 'none',
- xmlns: 'http://www.w3.org/2000/svg'
- },
- h('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'
- })
- );
- }
- }),
- mk = Mr(
- 'close',
- h(
- 'svg',
- {
- viewBox: '0 0 12 12',
- version: '1.1',
- xmlns: 'http://www.w3.org/2000/svg',
- 'aria-hidden': !0
- },
- h(
- 'g',
- {
- stroke: 'none',
- 'stroke-width': '1',
- fill: 'none',
- 'fill-rule': 'evenodd'
- },
- h(
- 'g',
- { fill: 'currentColor', 'fill-rule': 'nonzero' },
- h('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'
- })
- )
- )
- )
- ),
- bk = Re({
- name: 'Eye',
- render() {
- return h(
- 'svg',
- { xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 512 512' },
- h('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'
- }),
- h('circle', {
- cx: '256',
- cy: '256',
- r: '80',
- fill: 'none',
- stroke: 'currentColor',
- 'stroke-miterlimit': '10',
- 'stroke-width': '32'
- })
- );
- }
- }),
- MU = Re({
- name: 'EyeOff',
- render() {
- return h(
- 'svg',
- { xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 512 512' },
- h('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'
- }),
- h('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'
- }),
- h('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'
- }),
- h('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'
- }),
- h('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'
- })
- );
- }
- }),
- IU = Mr(
- 'trash',
- h(
- 'svg',
- { xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 512 512' },
- h('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;'
- }),
- h('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;'
- }),
- h('line', {
- x1: '312',
- y1: '240',
- x2: '200',
- y2: '352',
- style:
- 'fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;'
- }),
- h('line', {
- x1: '312',
- y1: '352',
- x2: '200',
- y2: '240',
- style:
- 'fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;'
- })
- )
- ),
- DU = Mr(
- 'download',
- h(
- 'svg',
- {
- viewBox: '0 0 16 16',
- version: '1.1',
- xmlns: 'http://www.w3.org/2000/svg'
- },
- h(
- 'g',
- {
- stroke: 'none',
- 'stroke-width': '1',
- fill: 'none',
- 'fill-rule': 'evenodd'
- },
- h(
- 'g',
- { fill: 'currentColor', 'fill-rule': 'nonzero' },
- h('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'
- })
- )
- )
- )
- ),
- FU = Re({
- name: 'Empty',
- render() {
- return h(
- 'svg',
- {
- viewBox: '0 0 28 28',
- fill: 'none',
- xmlns: 'http://www.w3.org/2000/svg'
- },
- h('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'
- }),
- h('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'
- })
- );
- }
- }),
- Os = Mr(
- 'error',
- h(
- 'svg',
- {
- viewBox: '0 0 48 48',
- version: '1.1',
- xmlns: 'http://www.w3.org/2000/svg'
- },
- h(
- 'g',
- { stroke: 'none', 'stroke-width': '1', 'fill-rule': 'evenodd' },
- h(
- 'g',
- { 'fill-rule': 'nonzero' },
- h('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'
- })
- )
- )
- )
- ),
- pl = Re({
- name: 'FastBackward',
- render() {
- return h(
- 'svg',
- {
- viewBox: '0 0 20 20',
- version: '1.1',
- xmlns: 'http://www.w3.org/2000/svg'
- },
- h(
- 'g',
- {
- stroke: 'none',
- 'stroke-width': '1',
- fill: 'none',
- 'fill-rule': 'evenodd'
- },
- h(
- 'g',
- { fill: 'currentColor', 'fill-rule': 'nonzero' },
- h('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'
- })
- )
- )
- );
- }
- }),
- gl = Re({
- name: 'FastForward',
- render() {
- return h(
- 'svg',
- {
- viewBox: '0 0 20 20',
- version: '1.1',
- xmlns: 'http://www.w3.org/2000/svg'
- },
- h(
- 'g',
- {
- stroke: 'none',
- 'stroke-width': '1',
- fill: 'none',
- 'fill-rule': 'evenodd'
- },
- h(
- 'g',
- { fill: 'currentColor', 'fill-rule': 'nonzero' },
- h('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'
- })
- )
- )
- );
- }
- }),
- BU = Re({
- name: 'Filter',
- render() {
- return h(
- 'svg',
- {
- viewBox: '0 0 28 28',
- version: '1.1',
- xmlns: 'http://www.w3.org/2000/svg'
- },
- h(
- 'g',
- { stroke: 'none', 'stroke-width': '1', 'fill-rule': 'evenodd' },
- h(
- 'g',
- { 'fill-rule': 'nonzero' },
- h('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'
- })
- )
- )
- );
- }
- }),
- ml = Re({
- name: 'Forward',
- render() {
- return h(
- 'svg',
- {
- viewBox: '0 0 20 20',
- fill: 'none',
- xmlns: 'http://www.w3.org/2000/svg'
- },
- h('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'
- })
- );
- }
- }),
- bl = Mr(
- 'info',
- h(
- 'svg',
- {
- viewBox: '0 0 28 28',
- version: '1.1',
- xmlns: 'http://www.w3.org/2000/svg'
- },
- h(
- 'g',
- { stroke: 'none', 'stroke-width': '1', 'fill-rule': 'evenodd' },
- h(
- 'g',
- { 'fill-rule': 'nonzero' },
- h('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'
- })
- )
- )
- )
- ),
- bS = Re({
- name: 'More',
- render() {
- return h(
- 'svg',
- {
- viewBox: '0 0 16 16',
- version: '1.1',
- xmlns: 'http://www.w3.org/2000/svg'
- },
- h(
- 'g',
- {
- stroke: 'none',
- 'stroke-width': '1',
- fill: 'none',
- 'fill-rule': 'evenodd'
- },
- h(
- 'g',
- { fill: 'currentColor', 'fill-rule': 'nonzero' },
- h('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'
- })
- )
- )
- );
- }
- }),
- LU = Re({
- name: 'Remove',
- render() {
- return h(
- 'svg',
- { xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 512 512' },
- h('line', {
- x1: '400',
- y1: '256',
- x2: '112',
- y2: '256',
- style: `
- fill: none;
- stroke: currentColor;
- stroke-linecap: round;
- stroke-linejoin: round;
- stroke-width: 32px;
- `
- })
- );
- }
- }),
- zs = Mr(
- 'success',
- h(
- 'svg',
- {
- viewBox: '0 0 48 48',
- version: '1.1',
- xmlns: 'http://www.w3.org/2000/svg'
- },
- h(
- 'g',
- { stroke: 'none', 'stroke-width': '1', 'fill-rule': 'evenodd' },
- h(
- 'g',
- { 'fill-rule': 'nonzero' },
- h('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'
- })
- )
- )
- )
- ),
- NU = Re({
- name: 'Switcher',
- render() {
- return h(
- 'svg',
- { xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 32 32' },
- h('path', { d: 'M12 8l10 8l-10 8z' })
- );
- }
- }),
- HU = Mr(
- 'time',
- h(
- 'svg',
- { xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 512 512' },
- h('path', {
- d: 'M256,64C150,64,64,150,64,256s86,192,192,192,192-86,192-192S362,64,256,64Z',
- style: `
- fill: none;
- stroke: currentColor;
- stroke-miterlimit: 10;
- stroke-width: 32px;
- `
- }),
- h('polyline', {
- points: '256 128 256 272 352 272',
- style: `
- fill: none;
- stroke: currentColor;
- stroke-linecap: round;
- stroke-linejoin: round;
- stroke-width: 32px;
- `
- })
- )
- ),
- As = Mr(
- 'warning',
- h(
- 'svg',
- {
- viewBox: '0 0 24 24',
- version: '1.1',
- xmlns: 'http://www.w3.org/2000/svg'
- },
- h(
- 'g',
- { stroke: 'none', 'stroke-width': '1', 'fill-rule': 'evenodd' },
- h(
- 'g',
- { 'fill-rule': 'nonzero' },
- h('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'
- })
- )
- )
- )
- ),
- jU = Mr(
- 'cancel',
- h(
- 'svg',
- {
- viewBox: '0 0 16 16',
- version: '1.1',
- xmlns: 'http://www.w3.org/2000/svg'
- },
- h(
- 'g',
- {
- stroke: 'none',
- 'stroke-width': '1',
- fill: 'none',
- 'fill-rule': 'evenodd'
- },
- h(
- 'g',
- { fill: 'currentColor', 'fill-rule': 'nonzero' },
- h('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'
- })
- )
- )
- )
- ),
- yk = Re({
- name: 'ChevronDown',
- render() {
- return h(
- 'svg',
- {
- viewBox: '0 0 16 16',
- fill: 'none',
- xmlns: 'http://www.w3.org/2000/svg'
- },
- h('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'
- })
- );
- }
- }),
- UU = Mr(
- 'clear',
- h(
- 'svg',
- {
- viewBox: '0 0 16 16',
- version: '1.1',
- xmlns: 'http://www.w3.org/2000/svg'
- },
- h(
- 'g',
- {
- stroke: 'none',
- 'stroke-width': '1',
- fill: 'none',
- 'fill-rule': 'evenodd'
- },
- h(
- 'g',
- { fill: 'currentColor', 'fill-rule': 'nonzero' },
- h('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'
- })
- )
- )
- )
- ),
- WU = Re({
- name: 'ChevronDownFilled',
- render() {
- return h(
- 'svg',
- {
- viewBox: '0 0 16 16',
- fill: 'none',
- xmlns: 'http://www.w3.org/2000/svg'
- },
- h('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'
- })
- );
- }
- }),
- VU = Mr(
- 'to',
- h(
- 'svg',
- {
- viewBox: '0 0 20 20',
- version: '1.1',
- xmlns: 'http://www.w3.org/2000/svg'
- },
- h(
- 'g',
- {
- stroke: 'none',
- 'stroke-width': '1',
- fill: 'none',
- 'fill-rule': 'evenodd'
- },
- h(
- 'g',
- { fill: 'currentColor', 'fill-rule': 'nonzero' },
- h('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'
- })
- )
- )
- )
- ),
- KU = Mr(
- 'retry',
- h(
- 'svg',
- { xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 512 512' },
- h('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;'
- }),
- h('polyline', {
- points: '256 58 336 138 256 218',
- style:
- 'fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;'
- })
- )
- ),
- qU = Mr(
- 'rotateClockwise',
- h(
- 'svg',
- {
- viewBox: '0 0 20 20',
- fill: 'none',
- xmlns: 'http://www.w3.org/2000/svg'
- },
- h('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'
- }),
- h('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'
- })
- )
- ),
- YU = Mr(
- 'rotateClockwise',
- h(
- 'svg',
- {
- viewBox: '0 0 20 20',
- fill: 'none',
- xmlns: 'http://www.w3.org/2000/svg'
- },
- h('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'
- }),
- h('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'
- })
- )
- ),
- GU = Mr(
- 'zoomIn',
- h(
- 'svg',
- {
- viewBox: '0 0 20 20',
- fill: 'none',
- xmlns: 'http://www.w3.org/2000/svg'
- },
- h('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'
- }),
- h('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'
- })
- )
- ),
- XU = Mr(
- 'zoomOut',
- h(
- 'svg',
- {
- viewBox: '0 0 20 20',
- fill: 'none',
- xmlns: 'http://www.w3.org/2000/svg'
- },
- h('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'
- }),
- h('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'
- })
- )
- ),
- ZU = Re({
- name: 'ResizeSmall',
- render() {
- return h(
- 'svg',
- { xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 20 20' },
- h(
- 'g',
- { fill: 'none' },
- h('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'
- })
- )
- );
- }
- }),
- Zi = Re({
- name: 'BaseIconSwitchTransition',
- setup(e, { slots: t }) {
- const n = yi();
- return () =>
- h(Kn, { name: 'icon-switch-transition', appear: n.value }, t);
- }
- }),
- Cl = Re({
- name: 'FadeInExpandTransition',
- props: {
- appear: Boolean,
- group: Boolean,
- mode: String,
- onLeave: Function,
- onAfterLeave: Function,
- onAfterEnter: Function,
- width: Boolean,
- reverse: Boolean
- },
- setup(e, { slots: t }) {
- function n(s) {
- e.width
- ? (s.style.maxWidth = `${s.offsetWidth}px`)
- : (s.style.maxHeight = `${s.offsetHeight}px`),
- s.offsetWidth;
- }
- function r(s) {
- e.width ? (s.style.maxWidth = '0') : (s.style.maxHeight = '0'),
- s.offsetWidth;
- const { onLeave: c } = e;
- c && c();
- }
- function o(s) {
- e.width ? (s.style.maxWidth = '') : (s.style.maxHeight = '');
- const { onAfterLeave: c } = e;
- c && c();
- }
- function i(s) {
- if (((s.style.transition = 'none'), e.width)) {
- const c = s.offsetWidth;
- (s.style.maxWidth = '0'),
- s.offsetWidth,
- (s.style.transition = ''),
- (s.style.maxWidth = `${c}px`);
- } else if (e.reverse)
- (s.style.maxHeight = `${s.offsetHeight}px`),
- s.offsetHeight,
- (s.style.transition = ''),
- (s.style.maxHeight = '0');
- else {
- const c = s.offsetHeight;
- (s.style.maxHeight = '0'),
- s.offsetWidth,
- (s.style.transition = ''),
- (s.style.maxHeight = `${c}px`);
- }
- s.offsetWidth;
- }
- function a(s) {
- var c;
- e.width
- ? (s.style.maxWidth = '')
- : e.reverse || (s.style.maxHeight = ''),
- (c = e.onAfterEnter) === null || c === void 0 || c.call(e);
- }
- return () => {
- const { group: s, width: c, appear: d, mode: f } = e,
- v = s ? K0 : Kn,
- p = {
- name: c
- ? 'fade-in-width-expand-transition'
- : 'fade-in-height-expand-transition',
- appear: d,
- onEnter: i,
- onAfterEnter: a,
- onBeforeLeave: n,
- onLeave: r,
- onAfterLeave: o
- };
- return s || (p.mode = f), h(v, p, t);
- };
- }
- }),
- QU = O(
- 'base-icon',
- `
- height: 1em;
- width: 1em;
- line-height: 1em;
- text-align: center;
- display: inline-block;
- position: relative;
- fill: currentColor;
- transform: translateZ(0);
- `,
- [
- F(
- 'svg',
- `
- height: 1em;
- width: 1em;
- `
- )
- ]
- ),
- Et = Re({
- 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) {
- Ta('-base-icon', QU, Ee(e, 'clsPrefix'));
- },
- render() {
- return h(
- '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
- );
- }
- }),
- JU = O(
- 'base-close',
- `
- display: flex;
- align-items: center;
- justify-content: center;
- cursor: pointer;
- background-color: transparent;
- color: var(--n-close-icon-color);
- border-radius: var(--n-close-border-radius);
- height: var(--n-close-size);
- width: var(--n-close-size);
- font-size: var(--n-close-icon-size);
- outline: none;
- border: none;
- position: relative;
- padding: 0;
- `,
- [
- U(
- 'absolute',
- `
- height: var(--n-close-icon-size);
- width: var(--n-close-icon-size);
- `
- ),
- F(
- '&::before',
- `
- content: "";
- position: absolute;
- width: var(--n-close-size);
- height: var(--n-close-size);
- left: 50%;
- top: 50%;
- transform: translateY(-50%) translateX(-50%);
- transition: inherit;
- border-radius: inherit;
- `
- ),
- jt('disabled', [
- F(
- '&:hover',
- `
- color: var(--n-close-icon-color-hover);
- `
- ),
- F(
- '&:hover::before',
- `
- background-color: var(--n-close-color-hover);
- `
- ),
- F(
- '&:focus::before',
- `
- background-color: var(--n-close-color-hover);
- `
- ),
- F(
- '&:active',
- `
- color: var(--n-close-icon-color-pressed);
- `
- ),
- F(
- '&:active::before',
- `
- background-color: var(--n-close-color-pressed);
- `
- )
- ]),
- U(
- 'disabled',
- `
- cursor: not-allowed;
- color: var(--n-close-icon-color-disabled);
- background-color: transparent;
- `
- ),
- U('round', [
- F(
- '&::before',
- `
- border-radius: 50%;
- `
- )
- ])
- ]
- ),
- Sl = Re({
- 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 (
- Ta('-base-close', JU, Ee(e, 'clsPrefix')),
- () => {
- const {
- clsPrefix: t,
- disabled: n,
- absolute: r,
- round: o,
- isButtonTag: i
- } = e;
- return h(
- i ? 'button' : 'div',
- {
- type: i ? 'button' : void 0,
- tabindex: n || !e.focusable ? -1 : 0,
- 'aria-disabled': n,
- 'aria-label': 'close',
- role: i ? void 0 : 'button',
- disabled: n,
- class: [
- `${t}-base-close`,
- r && `${t}-base-close--absolute`,
- n && `${t}-base-close--disabled`,
- o && `${t}-base-close--round`
- ],
- onMousedown: s => {
- e.focusable || s.preventDefault();
- },
- onClick: e.onClick
- },
- h(Et, { clsPrefix: t }, { default: () => h(mk, null) })
- );
- }
- );
- }
- }),
- _l = Re({
- props: { onFocus: Function, onBlur: Function },
- setup(e) {
- return () =>
- h('div', {
- style: 'width: 0; height: 0',
- tabindex: 0,
- onFocus: e.onFocus,
- onBlur: e.onBlur
- });
- }
- }),
- { cubicBezierEaseInOut: eW } = Bo;
- function br({
- originalTransform: e = '',
- left: t = 0,
- top: n = 0,
- transition: r = `all .3s ${eW} !important`
- } = {}) {
- return [
- F(
- '&.icon-switch-transition-enter-from, &.icon-switch-transition-leave-to',
- { transform: e + ' scale(0.75)', left: t, top: n, opacity: 0 }
- ),
- F(
- '&.icon-switch-transition-enter-to, &.icon-switch-transition-leave-from',
- { transform: `scale(1) ${e}`, left: t, top: n, opacity: 1 }
- ),
- F(
- '&.icon-switch-transition-enter-active, &.icon-switch-transition-leave-active',
- {
- transformOrigin: 'center',
- position: 'absolute',
- left: t,
- top: n,
- transition: r
- }
- )
- ];
- }
- const tW = F([
- F(
- '@keyframes loading-container-rotate',
- `
- to {
- -webkit-transform: rotate(360deg);
- transform: rotate(360deg);
- }
- `
- ),
- F(
- '@keyframes loading-layer-rotate',
- `
- 12.5% {
- -webkit-transform: rotate(135deg);
- transform: rotate(135deg);
- }
- 25% {
- -webkit-transform: rotate(270deg);
- transform: rotate(270deg);
- }
- 37.5% {
- -webkit-transform: rotate(405deg);
- transform: rotate(405deg);
- }
- 50% {
- -webkit-transform: rotate(540deg);
- transform: rotate(540deg);
- }
- 62.5% {
- -webkit-transform: rotate(675deg);
- transform: rotate(675deg);
- }
- 75% {
- -webkit-transform: rotate(810deg);
- transform: rotate(810deg);
- }
- 87.5% {
- -webkit-transform: rotate(945deg);
- transform: rotate(945deg);
- }
- 100% {
- -webkit-transform: rotate(1080deg);
- transform: rotate(1080deg);
- }
- `
- ),
- F(
- '@keyframes loading-left-spin',
- `
- from {
- -webkit-transform: rotate(265deg);
- transform: rotate(265deg);
- }
- 50% {
- -webkit-transform: rotate(130deg);
- transform: rotate(130deg);
- }
- to {
- -webkit-transform: rotate(265deg);
- transform: rotate(265deg);
- }
- `
- ),
- F(
- '@keyframes loading-right-spin',
- `
- from {
- -webkit-transform: rotate(-265deg);
- transform: rotate(-265deg);
- }
- 50% {
- -webkit-transform: rotate(-130deg);
- transform: rotate(-130deg);
- }
- to {
- -webkit-transform: rotate(-265deg);
- transform: rotate(-265deg);
- }
- `
- ),
- O(
- 'base-loading',
- `
- position: relative;
- line-height: 0;
- width: 1em;
- height: 1em;
- `,
- [
- V(
- 'transition-wrapper',
- `
- position: absolute;
- width: 100%;
- height: 100%;
- `,
- [br()]
- ),
- V(
- 'container',
- `
- display: inline-flex;
- position: relative;
- direction: ltr;
- line-height: 0;
- animation: loading-container-rotate 1568.2352941176ms linear infinite;
- font-size: 0;
- letter-spacing: 0;
- white-space: nowrap;
- opacity: 1;
- width: 100%;
- height: 100%;
- `,
- [
- V(
- 'svg',
- `
- stroke: var(--n-text-color);
- fill: transparent;
- position: absolute;
- height: 100%;
- overflow: hidden;
- `
- ),
- V(
- 'container-layer',
- `
- position: absolute;
- width: 100%;
- height: 100%;
- animation: loading-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;
- `,
- [
- V(
- 'container-layer-left',
- `
- display: inline-flex;
- position: relative;
- width: 50%;
- height: 100%;
- overflow: hidden;
- `,
- [
- V(
- 'svg',
- `
- animation: loading-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;
- width: 200%;
- `
- )
- ]
- ),
- V(
- 'container-layer-patch',
- `
- position: absolute;
- top: 0;
- left: 47.5%;
- box-sizing: border-box;
- width: 5%;
- height: 100%;
- overflow: hidden;
- `,
- [
- V(
- 'svg',
- `
- left: -900%;
- width: 2000%;
- transform: rotate(180deg);
- `
- )
- ]
- ),
- V(
- 'container-layer-right',
- `
- display: inline-flex;
- position: relative;
- width: 50%;
- height: 100%;
- overflow: hidden;
- `,
- [
- V(
- 'svg',
- `
- animation: loading-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;
- left: -100%;
- width: 200%;
- `
- )
- ]
- )
- ]
- )
- ]
- ),
- V(
- 'placeholder',
- `
- position: absolute;
- left: 50%;
- top: 50%;
- transform: translateX(-50%) translateY(-50%);
- `,
- [
- br({
- left: '50%',
- top: '50%',
- originalTransform: 'translateX(-50%) translateY(-50%)'
- })
- ]
- )
- ]
- )
- ]),
- nW = {
- strokeWidth: { type: Number, default: 28 },
- stroke: { type: String, default: void 0 }
- },
- $a = Re({
- 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 }
- },
- nW
- ),
- setup(e) {
- Ta('-base-loading', tW, Ee(e, 'clsPrefix'));
- },
- render() {
- const {
- clsPrefix: e,
- radius: t,
- strokeWidth: n,
- stroke: r,
- scale: o
- } = this,
- i = t / o;
- return h(
- 'div',
- { class: `${e}-base-loading`, role: 'img', 'aria-label': 'loading' },
- h(Zi, null, {
- default: () =>
- this.show
- ? h(
- 'div',
- {
- key: 'icon',
- class: `${e}-base-loading__transition-wrapper`
- },
- h(
- 'div',
- { class: `${e}-base-loading__container` },
- h(
- 'div',
- { class: `${e}-base-loading__container-layer` },
- h(
- 'div',
- { class: `${e}-base-loading__container-layer-left` },
- h(
- 'svg',
- {
- class: `${e}-base-loading__svg`,
- viewBox: `0 0 ${2 * i} ${2 * i}`,
- xmlns: 'http://www.w3.org/2000/svg',
- style: { color: r }
- },
- h('circle', {
- fill: 'none',
- stroke: 'currentColor',
- 'stroke-width': n,
- 'stroke-linecap': 'round',
- cx: i,
- cy: i,
- r: t - n / 2,
- 'stroke-dasharray': 4.91 * t,
- 'stroke-dashoffset': 2.46 * t
- })
- )
- ),
- h(
- 'div',
- { class: `${e}-base-loading__container-layer-patch` },
- h(
- 'svg',
- {
- class: `${e}-base-loading__svg`,
- viewBox: `0 0 ${2 * i} ${2 * i}`,
- xmlns: 'http://www.w3.org/2000/svg',
- style: { color: r }
- },
- h('circle', {
- fill: 'none',
- stroke: 'currentColor',
- 'stroke-width': n,
- 'stroke-linecap': 'round',
- cx: i,
- cy: i,
- r: t - n / 2,
- 'stroke-dasharray': 4.91 * t,
- 'stroke-dashoffset': 2.46 * t
- })
- )
- ),
- h(
- 'div',
- { class: `${e}-base-loading__container-layer-right` },
- h(
- 'svg',
- {
- class: `${e}-base-loading__svg`,
- viewBox: `0 0 ${2 * i} ${2 * i}`,
- xmlns: 'http://www.w3.org/2000/svg',
- style: { color: r }
- },
- h('circle', {
- fill: 'none',
- stroke: 'currentColor',
- 'stroke-width': n,
- 'stroke-linecap': 'round',
- cx: i,
- cy: i,
- r: t - n / 2,
- 'stroke-dasharray': 4.91 * t,
- 'stroke-dashoffset': 2.46 * t
- })
- )
- )
- )
- )
- )
- : h(
- 'div',
- {
- key: 'placeholder',
- class: `${e}-base-loading__placeholder`
- },
- this.$slots
- )
- })
- );
- }
- });
- function yS(e) {
- return Array.isArray(e) ? e : [e];
- }
- const cb = { STOP: 'STOP' };
- function xk(e, t) {
- const n = t(e);
- e.children !== void 0 && n !== cb.STOP && e.children.forEach(r => xk(r, t));
- }
- function rW(e, t = {}) {
- const { preserveGroup: n = !1 } = t,
- r = [],
- o = n
- ? a => {
- a.isLeaf || (r.push(a.key), i(a.children));
- }
- : a => {
- a.isLeaf || (a.isGroup || r.push(a.key), i(a.children));
- };
- function i(a) {
- a.forEach(o);
- }
- return i(e), r;
- }
- function oW(e, t) {
- const { isLeaf: n } = e;
- return n !== void 0 ? n : !t(e);
- }
- function iW(e) {
- return e.children;
- }
- function aW(e) {
- return e.key;
- }
- function lW() {
- return !1;
- }
- function sW(e, t) {
- const { isLeaf: n } = e;
- return !(n === !1 && !Array.isArray(t(e)));
- }
- function cW(e) {
- return e.disabled === !0;
- }
- function dW(e, t) {
- return e.isLeaf === !1 && !Array.isArray(t(e));
- }
- function Dg(e) {
- var t;
- return e == null
- ? []
- : Array.isArray(e)
- ? e
- : (t = e.checkedKeys) !== null && t !== void 0
- ? t
- : [];
- }
- function Fg(e) {
- var t;
- return e == null || Array.isArray(e)
- ? []
- : (t = e.indeterminateKeys) !== null && t !== void 0
- ? t
- : [];
- }
- function uW(e, t) {
- const n = new Set(e);
- return (
- t.forEach(r => {
- n.has(r) || n.add(r);
- }),
- Array.from(n)
- );
- }
- function fW(e, t) {
- const n = new Set(e);
- return (
- t.forEach(r => {
- n.has(r) && n.delete(r);
- }),
- Array.from(n)
- );
- }
- function hW(e) {
- return (e == null ? void 0 : e.type) === 'group';
- }
- function wk(e) {
- const t = new Map();
- return (
- e.forEach((n, r) => {
- t.set(n.key, r);
- }),
- n => {
- var r;
- return (r = t.get(n)) !== null && r !== void 0 ? r : null;
- }
- );
- }
- class vW extends Error {
- constructor() {
- super(),
- (this.message =
- 'SubtreeNotLoadedError: checking a subtree whose required nodes are not fully loaded.');
- }
- }
- function pW(e, t, n, r) {
- return av(t.concat(e), n, r, !1);
- }
- function gW(e, t) {
- const n = new Set();
- return (
- e.forEach(r => {
- const o = t.treeNodeMap.get(r);
- if (o !== void 0) {
- let i = o.parent;
- for (; i !== null && !(i.disabled || n.has(i.key)); )
- n.add(i.key), (i = i.parent);
- }
- }),
- n
- );
- }
- function mW(e, t, n, r) {
- const o = av(t, n, r, !1),
- i = av(e, n, r, !0),
- a = gW(e, n),
- s = [];
- return (
- o.forEach(c => {
- (i.has(c) || a.has(c)) && s.push(c);
- }),
- s.forEach(c => o.delete(c)),
- o
- );
- }
- function Bg(e, t) {
- const {
- checkedKeys: n,
- keysToCheck: r,
- keysToUncheck: o,
- indeterminateKeys: i,
- cascade: a,
- leafOnly: s,
- checkStrategy: c,
- allowNotLoaded: d
- } = e;
- if (!a)
- return r !== void 0
- ? { checkedKeys: uW(n, r), indeterminateKeys: Array.from(i) }
- : o !== void 0
- ? { checkedKeys: fW(n, o), indeterminateKeys: Array.from(i) }
- : { checkedKeys: Array.from(n), indeterminateKeys: Array.from(i) };
- const { levelTreeNodeMap: f } = t;
- let v;
- o !== void 0
- ? (v = mW(o, n, t, d))
- : r !== void 0
- ? (v = pW(r, n, t, d))
- : (v = av(n, t, d, !1));
- const p = c === 'parent',
- m = c === 'child' || s,
- g = v,
- w = new Set(),
- x = Math.max.apply(null, Array.from(f.keys()));
- for (let y = x; y >= 0; y -= 1) {
- const C = y === 0,
- R = f.get(y);
- for (const S of R) {
- if (S.isLeaf) continue;
- const { key: _, shallowLoaded: P } = S;
- if (
- (m &&
- P &&
- S.children.forEach(k => {
- !k.disabled &&
- !k.isLeaf &&
- k.shallowLoaded &&
- g.has(k.key) &&
- g.delete(k.key);
- }),
- S.disabled || !P)
- )
- continue;
- let T = !0,
- A = !1,
- z = !0;
- for (const k of S.children) {
- const M = k.key;
- if (!k.disabled) {
- if ((z && (z = !1), g.has(M))) A = !0;
- else if (w.has(M)) {
- (A = !0), (T = !1);
- break;
- } else if (((T = !1), A)) break;
- }
- }
- T && !z
- ? (p &&
- S.children.forEach(k => {
- !k.disabled && g.has(k.key) && g.delete(k.key);
- }),
- g.add(_))
- : A && w.add(_),
- C && m && g.has(_) && g.delete(_);
- }
- }
- return { checkedKeys: Array.from(g), indeterminateKeys: Array.from(w) };
- }
- function av(e, t, n, r) {
- const { treeNodeMap: o, getChildren: i } = t,
- a = new Set(),
- s = new Set(e);
- return (
- e.forEach(c => {
- const d = o.get(c);
- d !== void 0 &&
- xk(d, f => {
- if (f.disabled) return cb.STOP;
- const { key: v } = f;
- if (!a.has(v) && (a.add(v), s.add(v), dW(f.rawNode, i))) {
- if (r) return cb.STOP;
- if (!n) throw new vW();
- }
- });
- }),
- s
- );
- }
- function bW(e, { includeGroup: t = !1, includeSelf: n = !0 }, r) {
- var o;
- const i = r.treeNodeMap;
- let a = e == null ? null : (o = i.get(e)) !== null && o !== void 0 ? o : null;
- const s = { keyPath: [], treeNodePath: [], treeNode: a };
- if (a != null && a.ignored) return (s.treeNode = null), s;
- for (; a; )
- !a.ignored && (t || !a.isGroup) && s.treeNodePath.push(a), (a = a.parent);
- return (
- s.treeNodePath.reverse(),
- n || s.treeNodePath.pop(),
- (s.keyPath = s.treeNodePath.map(c => c.key)),
- s
- );
- }
- function yW(e) {
- if (e.length === 0) return null;
- const t = e[0];
- return t.isGroup || t.ignored || t.disabled ? t.getNext() : t;
- }
- function xW(e, t) {
- const n = e.siblings,
- r = n.length,
- { index: o } = e;
- return t ? n[(o + 1) % r] : o === n.length - 1 ? null : n[o + 1];
- }
- function xS(e, t, { loop: n = !1, includeDisabled: r = !1 } = {}) {
- const o = t === 'prev' ? wW : xW,
- i = { reverse: t === 'prev' };
- let a = !1,
- s = null;
- function c(d) {
- if (d !== null) {
- if (d === e) {
- if (!a) a = !0;
- else if (!e.disabled && !e.isGroup) {
- s = e;
- return;
- }
- } else if ((!d.disabled || r) && !d.ignored && !d.isGroup) {
- s = d;
- return;
- }
- if (d.isGroup) {
- const f = wy(d, i);
- f !== null ? (s = f) : c(o(d, n));
- } else {
- const f = o(d, !1);
- if (f !== null) c(f);
- else {
- const v = CW(d);
- v != null && v.isGroup ? c(o(v, n)) : n && c(o(d, !0));
- }
- }
- }
- }
- return c(e), s;
- }
- function wW(e, t) {
- const n = e.siblings,
- r = n.length,
- { index: o } = e;
- return t ? n[(o - 1 + r) % r] : o === 0 ? null : n[o - 1];
- }
- function CW(e) {
- return e.parent;
- }
- function wy(e, t = {}) {
- const { reverse: n = !1 } = t,
- { children: r } = e;
- if (r) {
- const { length: o } = r,
- i = n ? o - 1 : 0,
- a = n ? -1 : o,
- s = n ? -1 : 1;
- for (let c = i; c !== a; c += s) {
- const d = r[c];
- if (!d.disabled && !d.ignored)
- if (d.isGroup) {
- const f = wy(d, t);
- if (f !== null) return f;
- } else return d;
- }
- }
- return null;
- }
- const SW = {
- getChild() {
- return this.ignored ? null : wy(this);
- },
- getParent() {
- const { parent: e } = this;
- return e != null && e.isGroup ? e.getParent() : e;
- },
- getNext(e = {}) {
- return xS(this, 'next', e);
- },
- getPrev(e = {}) {
- return xS(this, 'prev', e);
- }
- };
- function db(e, t) {
- const n = t ? new Set(t) : void 0,
- r = [];
- function o(i) {
- i.forEach(a => {
- r.push(a),
- !(a.isLeaf || !a.children || a.ignored) &&
- (a.isGroup || n === void 0 || n.has(a.key)) &&
- o(a.children);
- });
- }
- return o(e), r;
- }
- function _W(e, t) {
- const n = e.key;
- for (; t; ) {
- if (t.key === n) return !0;
- t = t.parent;
- }
- return !1;
- }
- function Ck(e, t, n, r, o, i = null, a = 0) {
- const s = [];
- return (
- e.forEach((c, d) => {
- var f;
- const v = Object.create(r);
- if (
- ((v.rawNode = c),
- (v.siblings = s),
- (v.level = a),
- (v.index = d),
- (v.isFirstChild = d === 0),
- (v.isLastChild = d + 1 === e.length),
- (v.parent = i),
- !v.ignored)
- ) {
- const p = o(c);
- Array.isArray(p) && (v.children = Ck(p, t, n, r, o, v, a + 1));
- }
- s.push(v),
- t.set(v.key, v),
- n.has(a) || n.set(a, []),
- (f = n.get(a)) === null || f === void 0 || f.push(v);
- }),
- s
- );
- }
- function td(e, t = {}) {
- var n;
- const r = new Map(),
- o = new Map(),
- {
- getDisabled: i = cW,
- getIgnored: a = lW,
- getIsGroup: s = hW,
- getKey: c = aW
- } = t,
- d = (n = t.getChildren) !== null && n !== void 0 ? n : iW,
- f = t.ignoreEmptyChildren
- ? S => {
- const _ = d(S);
- return Array.isArray(_) ? (_.length ? _ : null) : _;
- }
- : d,
- v = Object.assign(
- {
- get key() {
- return c(this.rawNode);
- },
- get disabled() {
- return i(this.rawNode);
- },
- get isGroup() {
- return s(this.rawNode);
- },
- get isLeaf() {
- return oW(this.rawNode, f);
- },
- get shallowLoaded() {
- return sW(this.rawNode, f);
- },
- get ignored() {
- return a(this.rawNode);
- },
- contains(S) {
- return _W(this, S);
- }
- },
- SW
- ),
- p = Ck(e, r, o, v, f);
- function m(S) {
- if (S == null) return null;
- const _ = r.get(S);
- return _ && !_.isGroup && !_.ignored ? _ : null;
- }
- function g(S) {
- if (S == null) return null;
- const _ = r.get(S);
- return _ && !_.ignored ? _ : null;
- }
- function w(S, _) {
- const P = g(S);
- return P ? P.getPrev(_) : null;
- }
- function x(S, _) {
- const P = g(S);
- return P ? P.getNext(_) : null;
- }
- function y(S) {
- const _ = g(S);
- return _ ? _.getParent() : null;
- }
- function C(S) {
- const _ = g(S);
- return _ ? _.getChild() : null;
- }
- const R = {
- treeNodes: p,
- treeNodeMap: r,
- levelTreeNodeMap: o,
- maxLevel: Math.max(...o.keys()),
- getChildren: f,
- getFlattenedNodes(S) {
- return db(p, S);
- },
- getNode: m,
- getPrev: w,
- getNext: x,
- getParent: y,
- getChild: C,
- getFirstAvailableNode() {
- return yW(p);
- },
- getPath(S, _ = {}) {
- return bW(S, _, R);
- },
- getCheckedKeys(S, _ = {}) {
- const {
- cascade: P = !0,
- leafOnly: T = !1,
- checkStrategy: A = 'all',
- allowNotLoaded: z = !1
- } = _;
- return Bg(
- {
- checkedKeys: Dg(S),
- indeterminateKeys: Fg(S),
- cascade: P,
- leafOnly: T,
- checkStrategy: A,
- allowNotLoaded: z
- },
- R
- );
- },
- check(S, _, P = {}) {
- const {
- cascade: T = !0,
- leafOnly: A = !1,
- checkStrategy: z = 'all',
- allowNotLoaded: k = !1
- } = P;
- return Bg(
- {
- checkedKeys: Dg(_),
- indeterminateKeys: Fg(_),
- keysToCheck: S == null ? [] : yS(S),
- cascade: T,
- leafOnly: A,
- checkStrategy: z,
- allowNotLoaded: k
- },
- R
- );
- },
- uncheck(S, _, P = {}) {
- const {
- cascade: T = !0,
- leafOnly: A = !1,
- checkStrategy: z = 'all',
- allowNotLoaded: k = !1
- } = P;
- return Bg(
- {
- checkedKeys: Dg(_),
- indeterminateKeys: Fg(_),
- keysToUncheck: S == null ? [] : yS(S),
- cascade: T,
- leafOnly: A,
- checkStrategy: z,
- allowNotLoaded: k
- },
- R
- );
- },
- getNonLeafKeys(S = {}) {
- return rW(p, S);
- }
- };
- return R;
- }
- const Ft = {
- 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'
- },
- RW = ul(Ft.neutralBase),
- Sk = ul(Ft.neutralInvertBase),
- PW = 'rgba(' + Sk.slice(0, 3).join(', ') + ', ';
- function wS(e) {
- return PW + String(e) + ')';
- }
- function jr(e) {
- const t = Array.from(Sk);
- return (t[3] = Number(e)), At(RW, t);
- }
- const kW = Object.assign(Object.assign({ name: 'common' }, Bo), {
- baseColor: Ft.neutralBase,
- primaryColor: Ft.primaryDefault,
- primaryColorHover: Ft.primaryHover,
- primaryColorPressed: Ft.primaryActive,
- primaryColorSuppl: Ft.primarySuppl,
- infoColor: Ft.infoDefault,
- infoColorHover: Ft.infoHover,
- infoColorPressed: Ft.infoActive,
- infoColorSuppl: Ft.infoSuppl,
- successColor: Ft.successDefault,
- successColorHover: Ft.successHover,
- successColorPressed: Ft.successActive,
- successColorSuppl: Ft.successSuppl,
- warningColor: Ft.warningDefault,
- warningColorHover: Ft.warningHover,
- warningColorPressed: Ft.warningActive,
- warningColorSuppl: Ft.warningSuppl,
- errorColor: Ft.errorDefault,
- errorColorHover: Ft.errorHover,
- errorColorPressed: Ft.errorActive,
- errorColorSuppl: Ft.errorSuppl,
- textColorBase: Ft.neutralTextBase,
- textColor1: 'rgb(31, 34, 37)',
- textColor2: 'rgb(51, 54, 57)',
- textColor3: 'rgb(118, 124, 130)',
- textColorDisabled: jr(Ft.alpha4),
- placeholderColor: jr(Ft.alpha4),
- placeholderColorDisabled: jr(Ft.alpha5),
- iconColor: jr(Ft.alpha4),
- iconColorHover: oh(jr(Ft.alpha4), { lightness: 0.75 }),
- iconColorPressed: oh(jr(Ft.alpha4), { lightness: 0.9 }),
- iconColorDisabled: jr(Ft.alpha5),
- opacity1: Ft.alpha1,
- opacity2: Ft.alpha2,
- opacity3: Ft.alpha3,
- opacity4: Ft.alpha4,
- opacity5: Ft.alpha5,
- dividerColor: 'rgb(239, 239, 245)',
- borderColor: 'rgb(224, 224, 230)',
- closeIconColor: jr(Number(Ft.alphaClose)),
- closeIconColorHover: jr(Number(Ft.alphaClose)),
- closeIconColorPressed: jr(Number(Ft.alphaClose)),
- closeColorHover: 'rgba(0, 0, 0, .09)',
- closeColorPressed: 'rgba(0, 0, 0, .13)',
- clearColor: jr(Ft.alpha4),
- clearColorHover: oh(jr(Ft.alpha4), { lightness: 0.75 }),
- clearColorPressed: oh(jr(Ft.alpha4), { lightness: 0.9 }),
- scrollbarColor: wS(Ft.alphaScrollbar),
- scrollbarColorHover: wS(Ft.alphaScrollbarHover),
- scrollbarWidth: '5px',
- scrollbarHeight: '5px',
- scrollbarBorderRadius: '5px',
- progressRailColor: jr(Ft.alphaProgressRail),
- railColor: 'rgb(219, 219, 223)',
- popoverColor: Ft.neutralPopover,
- tableColor: Ft.neutralCard,
- cardColor: Ft.neutralCard,
- modalColor: Ft.neutralModal,
- bodyColor: Ft.neutralBody,
- tagColor: '#eee',
- avatarColor: jr(Ft.alphaAvatar),
- invertedColor: 'rgb(0, 20, 40)',
- inputColor: jr(Ft.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: Ft.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)'
- }),
- Nt = kW,
- TW = {
- iconSizeSmall: '34px',
- iconSizeMedium: '40px',
- iconSizeLarge: '46px',
- iconSizeHuge: '52px'
- },
- $W = e => {
- const {
- textColorDisabled: t,
- iconColor: n,
- textColor2: r,
- fontSizeSmall: o,
- fontSizeMedium: i,
- fontSizeLarge: a,
- fontSizeHuge: s
- } = e;
- return Object.assign(Object.assign({}, TW), {
- fontSizeSmall: o,
- fontSizeMedium: i,
- fontSizeLarge: a,
- fontSizeHuge: s,
- textColor: t,
- iconColor: n,
- extraTextColor: r
- });
- },
- OW = { name: 'Empty', common: Nt, self: $W },
- Vv = OW,
- zW = O(
- 'empty',
- `
- display: flex;
- flex-direction: column;
- align-items: center;
- font-size: var(--n-font-size);
- `,
- [
- V(
- 'icon',
- `
- width: var(--n-icon-size);
- height: var(--n-icon-size);
- font-size: var(--n-icon-size);
- line-height: var(--n-icon-size);
- color: var(--n-icon-color);
- transition:
- color .3s var(--n-bezier);
- `,
- [
- F('+', [
- V(
- 'description',
- `
- margin-top: 8px;
- `
- )
- ])
- ]
- ),
- V(
- 'description',
- `
- transition: color .3s var(--n-bezier);
- color: var(--n-text-color);
- `
- ),
- V(
- 'extra',
- `
- text-align: center;
- transition: color .3s var(--n-bezier);
- margin-top: 12px;
- color: var(--n-extra-text-color);
- `
- )
- ]
- ),
- AW = Object.assign(Object.assign({}, Ke.props), {
- description: String,
- showDescription: { type: Boolean, default: !0 },
- showIcon: { type: Boolean, default: !0 },
- size: { type: String, default: 'medium' },
- renderIcon: Function
- }),
- Cy = Re({
- name: 'Empty',
- props: AW,
- setup(e) {
- const { mergedClsPrefixRef: t, inlineThemeDisabled: n } = yt(e),
- r = Ke('Empty', '-empty', zW, Vv, e, t),
- { localeRef: o } = ka('Empty'),
- i = Ze(wa, null),
- a = I(() => {
- var f, v, p;
- return (f = e.description) !== null && f !== void 0
- ? f
- : (p =
- (v = i == null ? void 0 : i.mergedComponentPropsRef.value) ===
- null || v === void 0
- ? void 0
- : v.Empty) === null || p === void 0
- ? void 0
- : p.description;
- }),
- s = I(() => {
- var f, v;
- return (
- ((v =
- (f = i == null ? void 0 : i.mergedComponentPropsRef.value) ===
- null || f === void 0
- ? void 0
- : f.Empty) === null || v === void 0
- ? void 0
- : v.renderIcon) || (() => h(FU, null))
- );
- }),
- c = I(() => {
- const { size: f } = e,
- {
- common: { cubicBezierEaseInOut: v },
- self: {
- [Oe('iconSize', f)]: p,
- [Oe('fontSize', f)]: m,
- textColor: g,
- iconColor: w,
- extraTextColor: x
- }
- } = r.value;
- return {
- '--n-icon-size': p,
- '--n-font-size': m,
- '--n-bezier': v,
- '--n-text-color': g,
- '--n-icon-color': w,
- '--n-extra-text-color': x
- };
- }),
- d = n
- ? Mt(
- 'empty',
- I(() => {
- let f = '';
- const { size: v } = e;
- return (f += v[0]), f;
- }),
- c,
- e
- )
- : void 0;
- return {
- mergedClsPrefix: t,
- mergedRenderIcon: s,
- localizedDescription: I(() => a.value || o.value.description),
- cssVars: n ? void 0 : c,
- themeClass: d == null ? void 0 : d.themeClass,
- onRender: d == null ? void 0 : d.onRender
- };
- },
- render() {
- const { $slots: e, mergedClsPrefix: t, onRender: n } = this;
- return (
- n == null || n(),
- h(
- 'div',
- { class: [`${t}-empty`, this.themeClass], style: this.cssVars },
- this.showIcon
- ? h(
- 'div',
- { class: `${t}-empty__icon` },
- e.icon
- ? e.icon()
- : h(Et, { clsPrefix: t }, { default: this.mergedRenderIcon })
- )
- : null,
- this.showDescription
- ? h(
- 'div',
- { class: `${t}-empty__description` },
- e.default ? e.default() : this.localizedDescription
- )
- : null,
- e.extra ? h('div', { class: `${t}-empty__extra` }, e.extra()) : null
- )
- );
- }
- }),
- EW = e => {
- const { scrollbarColor: t, scrollbarColorHover: n } = e;
- return { color: t, colorHover: n };
- },
- MW = { name: 'Scrollbar', common: Nt, self: EW },
- Qi = MW,
- { cubicBezierEaseInOut: CS } = Bo;
- function Cs({
- name: e = 'fade-in',
- enterDuration: t = '0.2s',
- leaveDuration: n = '0.2s',
- enterCubicBezier: r = CS,
- leaveCubicBezier: o = CS
- } = {}) {
- return [
- F(`&.${e}-transition-enter-active`, {
- transition: `all ${t} ${r}!important`
- }),
- F(`&.${e}-transition-leave-active`, {
- transition: `all ${n} ${o}!important`
- }),
- F(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`, {
- opacity: 0
- }),
- F(`&.${e}-transition-leave-from, &.${e}-transition-enter-to`, {
- opacity: 1
- })
- ];
- }
- const IW = O(
- 'scrollbar',
- `
- overflow: hidden;
- position: relative;
- z-index: auto;
- height: 100%;
- width: 100%;
- `,
- [
- F('>', [
- O(
- 'scrollbar-container',
- `
- width: 100%;
- overflow: scroll;
- height: 100%;
- max-height: inherit;
- scrollbar-width: none;
- `,
- [
- F(
- '&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb',
- `
- width: 0;
- height: 0;
- display: none;
- `
- ),
- F('>', [
- O(
- 'scrollbar-content',
- `
- box-sizing: border-box;
- min-width: 100%;
- `
- )
- ])
- ]
- )
- ]),
- F('>, +', [
- O(
- 'scrollbar-rail',
- `
- position: absolute;
- pointer-events: none;
- user-select: none;
- -webkit-user-select: none;
- `,
- [
- U(
- 'horizontal',
- `
- left: 2px;
- right: 2px;
- bottom: 4px;
- height: var(--n-scrollbar-height);
- `,
- [
- F('>', [
- V(
- 'scrollbar',
- `
- height: var(--n-scrollbar-height);
- border-radius: var(--n-scrollbar-border-radius);
- right: 0;
- `
- )
- ])
- ]
- ),
- U(
- 'vertical',
- `
- right: 4px;
- top: 2px;
- bottom: 2px;
- width: var(--n-scrollbar-width);
- `,
- [
- F('>', [
- V(
- 'scrollbar',
- `
- width: var(--n-scrollbar-width);
- border-radius: var(--n-scrollbar-border-radius);
- bottom: 0;
- `
- )
- ])
- ]
- ),
- U('disabled', [
- F('>', [V('scrollbar', { pointerEvents: 'none' })])
- ]),
- F('>', [
- V(
- 'scrollbar',
- `
- position: absolute;
- cursor: pointer;
- pointer-events: all;
- background-color: var(--n-scrollbar-color);
- transition: background-color .2s var(--n-scrollbar-bezier);
- `,
- [
- Cs(),
- F('&:hover', {
- backgroundColor: 'var(--n-scrollbar-color-hover)'
- })
- ]
- )
- ])
- ]
- )
- ])
- ]
- ),
- DW = Object.assign(Object.assign({}, Ke.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
- }),
- _k = Re({
- name: 'Scrollbar',
- props: DW,
- inheritAttrs: !1,
- setup(e) {
- const {
- mergedClsPrefixRef: t,
- inlineThemeDisabled: n,
- mergedRtlRef: r
- } = yt(e),
- o = dr('Scrollbar', r, t),
- i = Z(null),
- a = Z(null),
- s = Z(null),
- c = Z(null),
- d = Z(null),
- f = Z(null),
- v = Z(null),
- p = Z(null),
- m = Z(null),
- g = Z(null),
- w = Z(null),
- x = Z(0),
- y = Z(0),
- C = Z(!1),
- R = Z(!1);
- let S = !1,
- _ = !1,
- P,
- T,
- A = 0,
- z = 0,
- k = 0,
- M = 0;
- const E = _D(),
- D = I(() => {
- const { value: ie } = p,
- { value: $e } = f,
- { value: Ue } = g;
- return ie === null || $e === null || Ue === null
- ? 0
- : Math.min(ie, (Ue * ie) / $e + e.size * 1.5);
- }),
- L = I(() => `${D.value}px`),
- j = I(() => {
- const { value: ie } = m,
- { value: $e } = v,
- { value: Ue } = w;
- return ie === null || $e === null || Ue === null
- ? 0
- : (Ue * ie) / $e + e.size * 1.5;
- }),
- B = I(() => `${j.value}px`),
- q = I(() => {
- const { value: ie } = p,
- { value: $e } = x,
- { value: Ue } = f,
- { value: lt } = g;
- if (ie === null || Ue === null || lt === null) return 0;
- {
- const st = Ue - ie;
- return st ? ($e / st) * (lt - D.value) : 0;
- }
- }),
- G = I(() => `${q.value}px`),
- ne = I(() => {
- const { value: ie } = m,
- { value: $e } = y,
- { value: Ue } = v,
- { value: lt } = w;
- if (ie === null || Ue === null || lt === null) return 0;
- {
- const st = Ue - ie;
- return st ? ($e / st) * (lt - j.value) : 0;
- }
- }),
- X = I(() => `${ne.value}px`),
- J = I(() => {
- const { value: ie } = p,
- { value: $e } = f;
- return ie !== null && $e !== null && $e > ie;
- }),
- re = I(() => {
- const { value: ie } = m,
- { value: $e } = v;
- return ie !== null && $e !== null && $e > ie;
- }),
- ce = I(() => {
- const { trigger: ie } = e;
- return ie === 'none' || C.value;
- }),
- pe = I(() => {
- const { trigger: ie } = e;
- return ie === 'none' || R.value;
- }),
- Fe = I(() => {
- const { container: ie } = e;
- return ie ? ie() : a.value;
- }),
- Ie = I(() => {
- const { content: ie } = e;
- return ie ? ie() : s.value;
- }),
- le = ey(() => {
- e.container || ue({ top: x.value, left: y.value });
- }),
- me = () => {
- le.isDeactivated || Ge();
- },
- he = ie => {
- if (le.isDeactivated) return;
- const { onResize: $e } = e;
- $e && $e(ie), Ge();
- },
- ue = (ie, $e) => {
- if (!e.scrollable) return;
- if (typeof ie == 'number') {
- W($e != null ? $e : 0, ie, 0, !1, 'auto');
- return;
- }
- const {
- left: Ue,
- top: lt,
- index: st,
- elSize: be,
- position: He,
- behavior: tt,
- el: pt,
- debounce: _e = !0
- } = ie;
- (Ue !== void 0 || lt !== void 0) &&
- W(Ue != null ? Ue : 0, lt != null ? lt : 0, 0, !1, tt),
- pt !== void 0
- ? W(0, pt.offsetTop, pt.offsetHeight, _e, tt)
- : st !== void 0 && be !== void 0
- ? W(0, st * be, be, _e, tt)
- : He === 'bottom'
- ? W(0, Number.MAX_SAFE_INTEGER, 0, !1, tt)
- : He === 'top' && W(0, 0, 0, !1, tt);
- },
- Ae = (ie, $e) => {
- if (!e.scrollable) return;
- const { value: Ue } = Fe;
- Ue &&
- (typeof ie == 'object'
- ? Ue.scrollBy(ie)
- : Ue.scrollBy(ie, $e || 0));
- };
- function W(ie, $e, Ue, lt, st) {
- const { value: be } = Fe;
- if (be) {
- if (lt) {
- const { scrollTop: He, offsetHeight: tt } = be;
- if ($e > He) {
- $e + Ue <= He + tt ||
- be.scrollTo({ left: ie, top: $e + Ue - tt, behavior: st });
- return;
- }
- }
- be.scrollTo({ left: ie, top: $e, behavior: st });
- }
- }
- function Q() {
- ae(), ge(), Ge();
- }
- function ee() {
- ve();
- }
- function ve() {
- oe(), H();
- }
- function oe() {
- T !== void 0 && window.clearTimeout(T),
- (T = window.setTimeout(() => {
- R.value = !1;
- }, e.duration));
- }
- function H() {
- P !== void 0 && window.clearTimeout(P),
- (P = window.setTimeout(() => {
- C.value = !1;
- }, e.duration));
- }
- function ae() {
- P !== void 0 && window.clearTimeout(P), (C.value = !0);
- }
- function ge() {
- T !== void 0 && window.clearTimeout(T), (R.value = !0);
- }
- function Ce(ie) {
- const { onScroll: $e } = e;
- $e && $e(ie), se();
- }
- function se() {
- const { value: ie } = Fe;
- ie &&
- ((x.value = ie.scrollTop),
- (y.value = ie.scrollLeft * (o != null && o.value ? -1 : 1)));
- }
- function Se() {
- const { value: ie } = Ie;
- ie && ((f.value = ie.offsetHeight), (v.value = ie.offsetWidth));
- const { value: $e } = Fe;
- $e && ((p.value = $e.offsetHeight), (m.value = $e.offsetWidth));
- const { value: Ue } = d,
- { value: lt } = c;
- Ue && (w.value = Ue.offsetWidth), lt && (g.value = lt.offsetHeight);
- }
- function Ne() {
- const { value: ie } = Fe;
- ie &&
- ((x.value = ie.scrollTop),
- (y.value = ie.scrollLeft * (o != null && o.value ? -1 : 1)),
- (p.value = ie.offsetHeight),
- (m.value = ie.offsetWidth),
- (f.value = ie.scrollHeight),
- (v.value = ie.scrollWidth));
- const { value: $e } = d,
- { value: Ue } = c;
- $e && (w.value = $e.offsetWidth), Ue && (g.value = Ue.offsetHeight);
- }
- function Ge() {
- e.scrollable && (e.useUnifiedContainer ? Ne() : (Se(), se()));
- }
- function it(ie) {
- var $e;
- return !(
- !(($e = i.value) === null || $e === void 0) && $e.contains(ya(ie))
- );
- }
- function dt(ie) {
- ie.preventDefault(),
- ie.stopPropagation(),
- (_ = !0),
- Tn('mousemove', window, xt, !0),
- Tn('mouseup', window, Me, !0),
- (z = y.value),
- (k =
- o != null && o.value ? window.innerWidth - ie.clientX : ie.clientX);
- }
- function xt(ie) {
- if (!_) return;
- P !== void 0 && window.clearTimeout(P),
- T !== void 0 && window.clearTimeout(T);
- const { value: $e } = m,
- { value: Ue } = v,
- { value: lt } = j;
- if ($e === null || Ue === null) return;
- const be =
- ((o != null && o.value
- ? window.innerWidth - ie.clientX - k
- : ie.clientX - k) *
- (Ue - $e)) /
- ($e - lt),
- He = Ue - $e;
- let tt = z + be;
- (tt = Math.min(He, tt)), (tt = Math.max(tt, 0));
- const { value: pt } = Fe;
- if (pt) {
- pt.scrollLeft = tt * (o != null && o.value ? -1 : 1);
- const { internalOnUpdateScrollLeft: _e } = e;
- _e && _e(tt);
- }
- }
- function Me(ie) {
- ie.preventDefault(),
- ie.stopPropagation(),
- pn('mousemove', window, xt, !0),
- pn('mouseup', window, Me, !0),
- (_ = !1),
- Ge(),
- it(ie) && ve();
- }
- function ut(ie) {
- ie.preventDefault(),
- ie.stopPropagation(),
- (S = !0),
- Tn('mousemove', window, wt, !0),
- Tn('mouseup', window, Lt, !0),
- (A = x.value),
- (M = ie.clientY);
- }
- function wt(ie) {
- if (!S) return;
- P !== void 0 && window.clearTimeout(P),
- T !== void 0 && window.clearTimeout(T);
- const { value: $e } = p,
- { value: Ue } = f,
- { value: lt } = D;
- if ($e === null || Ue === null) return;
- const be = ((ie.clientY - M) * (Ue - $e)) / ($e - lt),
- He = Ue - $e;
- let tt = A + be;
- (tt = Math.min(He, tt)), (tt = Math.max(tt, 0));
- const { value: pt } = Fe;
- pt && (pt.scrollTop = tt);
- }
- function Lt(ie) {
- ie.preventDefault(),
- ie.stopPropagation(),
- pn('mousemove', window, wt, !0),
- pn('mouseup', window, Lt, !0),
- (S = !1),
- Ge(),
- it(ie) && ve();
- }
- Bn(() => {
- const { value: ie } = re,
- { value: $e } = J,
- { value: Ue } = t,
- { value: lt } = d,
- { value: st } = c;
- lt &&
- (ie
- ? lt.classList.remove(`${Ue}-scrollbar-rail--disabled`)
- : lt.classList.add(`${Ue}-scrollbar-rail--disabled`)),
- st &&
- ($e
- ? st.classList.remove(`${Ue}-scrollbar-rail--disabled`)
- : st.classList.add(`${Ue}-scrollbar-rail--disabled`));
- }),
- Hn(() => {
- e.container || Ge();
- }),
- qn(() => {
- P !== void 0 && window.clearTimeout(P),
- T !== void 0 && window.clearTimeout(T),
- pn('mousemove', window, wt, !0),
- pn('mouseup', window, Lt, !0);
- });
- const ot = Ke('Scrollbar', '-scrollbar', IW, Qi, e, t),
- ct = I(() => {
- const {
- common: {
- cubicBezierEaseInOut: ie,
- scrollbarBorderRadius: $e,
- scrollbarHeight: Ue,
- scrollbarWidth: lt
- },
- self: { color: st, colorHover: be }
- } = ot.value;
- return {
- '--n-scrollbar-bezier': ie,
- '--n-scrollbar-color': st,
- '--n-scrollbar-color-hover': be,
- '--n-scrollbar-border-radius': $e,
- '--n-scrollbar-width': lt,
- '--n-scrollbar-height': Ue
- };
- }),
- Xe = n ? Mt('scrollbar', void 0, ct, e) : void 0;
- return Object.assign(
- Object.assign(
- {},
- {
- scrollTo: ue,
- scrollBy: Ae,
- sync: Ge,
- syncUnifiedContainer: Ne,
- handleMouseEnterWrapper: Q,
- handleMouseLeaveWrapper: ee
- }
- ),
- {
- mergedClsPrefix: t,
- rtlEnabled: o,
- containerScrollTop: x,
- wrapperRef: i,
- containerRef: a,
- contentRef: s,
- yRailRef: c,
- xRailRef: d,
- needYBar: J,
- needXBar: re,
- yBarSizePx: L,
- xBarSizePx: B,
- yBarTopPx: G,
- xBarLeftPx: X,
- isShowXBar: ce,
- isShowYBar: pe,
- isIos: E,
- handleScroll: Ce,
- handleContentResize: me,
- handleContainerResize: he,
- handleYScrollMouseDown: ut,
- handleXScrollMouseDown: dt,
- cssVars: n ? void 0 : ct,
- themeClass: Xe == null ? void 0 : Xe.themeClass,
- onRender: Xe == null ? void 0 : Xe.onRender
- }
- );
- },
- render() {
- var e;
- const {
- $slots: t,
- mergedClsPrefix: n,
- triggerDisplayManually: r,
- rtlEnabled: o,
- internalHoistYRail: i
- } = this;
- if (!this.scrollable)
- return (e = t.default) === null || e === void 0 ? void 0 : e.call(t);
- const a = this.trigger === 'none',
- s = () =>
- h(
- 'div',
- {
- ref: 'yRailRef',
- class: [`${n}-scrollbar-rail`, `${n}-scrollbar-rail--vertical`],
- 'data-scrollbar-rail': !0,
- style: this.verticalRailStyle,
- 'aria-hidden': !0
- },
- h(a ? Vm : Kn, a ? null : { name: 'fade-in-transition' }, {
- default: () =>
- this.needYBar && this.isShowYBar && !this.isIos
- ? h('div', {
- class: `${n}-scrollbar-rail__scrollbar`,
- style: { height: this.yBarSizePx, top: this.yBarTopPx },
- onMousedown: this.handleYScrollMouseDown
- })
- : null
- })
- ),
- c = () => {
- var f, v;
- return (
- (f = this.onRender) === null || f === void 0 || f.call(this),
- h(
- 'div',
- qr(this.$attrs, {
- role: 'none',
- ref: 'wrapperRef',
- class: [
- `${n}-scrollbar`,
- this.themeClass,
- o && `${n}-scrollbar--rtl`
- ],
- style: this.cssVars,
- onMouseenter: r ? void 0 : this.handleMouseEnterWrapper,
- onMouseleave: r ? void 0 : this.handleMouseLeaveWrapper
- }),
- [
- this.container
- ? (v = t.default) === null || v === void 0
- ? void 0
- : v.call(t)
- : h(
- 'div',
- {
- role: 'none',
- ref: 'containerRef',
- class: [
- `${n}-scrollbar-container`,
- this.containerClass
- ],
- style: this.containerStyle,
- onScroll: this.handleScroll,
- onWheel: this.onWheel
- },
- h(
- Ki,
- { onResize: this.handleContentResize },
- {
- default: () =>
- h(
- 'div',
- {
- ref: 'contentRef',
- role: 'none',
- style: [
- {
- width: this.xScrollable
- ? 'fit-content'
- : null
- },
- this.contentStyle
- ],
- class: [
- `${n}-scrollbar-content`,
- this.contentClass
- ]
- },
- t
- )
- }
- )
- ),
- i ? null : s(),
- this.xScrollable &&
- h(
- 'div',
- {
- ref: 'xRailRef',
- class: [
- `${n}-scrollbar-rail`,
- `${n}-scrollbar-rail--horizontal`
- ],
- style: this.horizontalRailStyle,
- 'data-scrollbar-rail': !0,
- 'aria-hidden': !0
- },
- h(a ? Vm : Kn, a ? null : { name: 'fade-in-transition' }, {
- default: () =>
- this.needXBar && this.isShowXBar && !this.isIos
- ? h('div', {
- class: `${n}-scrollbar-rail__scrollbar`,
- style: {
- width: this.xBarSizePx,
- right: o ? this.xBarLeftPx : void 0,
- left: o ? void 0 : this.xBarLeftPx
- },
- onMousedown: this.handleXScrollMouseDown
- })
- : null
- })
- )
- ]
- )
- );
- },
- d = this.container
- ? c()
- : h(Ki, { onResize: this.handleContainerResize }, { default: c });
- return i ? h(on, null, d, s()) : d;
- }
- }),
- yr = _k,
- lv = _k,
- FW = {
- 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'
- },
- BW = e => {
- const {
- borderRadius: t,
- popoverColor: n,
- textColor3: r,
- dividerColor: o,
- textColor2: i,
- primaryColorPressed: a,
- textColorDisabled: s,
- primaryColor: c,
- opacityDisabled: d,
- hoverColor: f,
- fontSizeSmall: v,
- fontSizeMedium: p,
- fontSizeLarge: m,
- fontSizeHuge: g,
- heightSmall: w,
- heightMedium: x,
- heightLarge: y,
- heightHuge: C
- } = e;
- return Object.assign(Object.assign({}, FW), {
- optionFontSizeSmall: v,
- optionFontSizeMedium: p,
- optionFontSizeLarge: m,
- optionFontSizeHuge: g,
- optionHeightSmall: w,
- optionHeightMedium: x,
- optionHeightLarge: y,
- optionHeightHuge: C,
- borderRadius: t,
- color: n,
- groupHeaderTextColor: r,
- actionDividerColor: o,
- optionTextColor: i,
- optionTextColorPressed: a,
- optionTextColorDisabled: s,
- optionTextColorActive: c,
- optionOpacityDisabled: d,
- optionCheckColor: c,
- optionColorPending: f,
- optionColorActive: 'rgba(0, 0, 0, 0)',
- optionColorActivePending: f,
- actionTextColor: i,
- loadingColor: c
- });
- },
- LW = {
- name: 'InternalSelectMenu',
- common: Nt,
- peers: { Scrollbar: Qi, Empty: Vv },
- self: BW
- },
- Sy = LW;
- function NW(e, t) {
- return h(
- Kn,
- { name: 'fade-in-scale-up-transition' },
- {
- default: () =>
- e
- ? h(
- Et,
- { clsPrefix: t, class: `${t}-base-select-option__check` },
- { default: () => h(gk) }
- )
- : null
- }
- );
- }
- const SS = Re({
- name: 'NBaseSelectOption',
- props: {
- clsPrefix: { type: String, required: !0 },
- tmNode: { type: Object, required: !0 }
- },
- setup(e) {
- const {
- valueRef: t,
- pendingTmNodeRef: n,
- multipleRef: r,
- valueSetRef: o,
- renderLabelRef: i,
- renderOptionRef: a,
- labelFieldRef: s,
- valueFieldRef: c,
- showCheckmarkRef: d,
- nodePropsRef: f,
- handleOptionClick: v,
- handleOptionMouseEnter: p
- } = Ze(G0),
- m = kt(() => {
- const { value: y } = n;
- return y ? e.tmNode.key === y.key : !1;
- });
- function g(y) {
- const { tmNode: C } = e;
- C.disabled || v(y, C);
- }
- function w(y) {
- const { tmNode: C } = e;
- C.disabled || p(y, C);
- }
- function x(y) {
- const { tmNode: C } = e,
- { value: R } = m;
- C.disabled || R || p(y, C);
- }
- return {
- multiple: r,
- isGrouped: kt(() => {
- const { tmNode: y } = e,
- { parent: C } = y;
- return C && C.rawNode.type === 'group';
- }),
- showCheckmark: d,
- nodeProps: f,
- isPending: m,
- isSelected: kt(() => {
- const { value: y } = t,
- { value: C } = r;
- if (y === null) return !1;
- const R = e.tmNode.rawNode[c.value];
- if (C) {
- const { value: S } = o;
- return S.has(R);
- } else return y === R;
- }),
- labelField: s,
- renderLabel: i,
- renderOption: a,
- handleMouseMove: x,
- handleMouseEnter: w,
- handleClick: g
- };
- },
- render() {
- const {
- clsPrefix: e,
- tmNode: { rawNode: t },
- isSelected: n,
- isPending: r,
- isGrouped: o,
- showCheckmark: i,
- nodeProps: a,
- renderOption: s,
- renderLabel: c,
- handleClick: d,
- handleMouseEnter: f,
- handleMouseMove: v
- } = this,
- p = NW(n, e),
- m = c ? [c(t, n), i && p] : [_n(t[this.labelField], t, n), i && p],
- g = a == null ? void 0 : a(t),
- w = h(
- 'div',
- Object.assign({}, g, {
- class: [
- `${e}-base-select-option`,
- t.class,
- g == null ? void 0 : g.class,
- {
- [`${e}-base-select-option--disabled`]: t.disabled,
- [`${e}-base-select-option--selected`]: n,
- [`${e}-base-select-option--grouped`]: o,
- [`${e}-base-select-option--pending`]: r,
- [`${e}-base-select-option--show-checkmark`]: i
- }
- ],
- style: [(g == null ? void 0 : g.style) || '', t.style || ''],
- onClick: Qd([d, g == null ? void 0 : g.onClick]),
- onMouseenter: Qd([f, g == null ? void 0 : g.onMouseenter]),
- onMousemove: Qd([v, g == null ? void 0 : g.onMousemove])
- }),
- h('div', { class: `${e}-base-select-option__content` }, m)
- );
- return t.render
- ? t.render({ node: w, option: t, selected: n })
- : s
- ? s({ node: w, option: t, selected: n })
- : w;
- }
- }),
- _S = Re({
- name: 'NBaseSelectGroupHeader',
- props: {
- clsPrefix: { type: String, required: !0 },
- tmNode: { type: Object, required: !0 }
- },
- setup() {
- const {
- renderLabelRef: e,
- renderOptionRef: t,
- labelFieldRef: n,
- nodePropsRef: r
- } = Ze(G0);
- return { labelField: n, nodeProps: r, renderLabel: e, renderOption: t };
- },
- render() {
- const {
- clsPrefix: e,
- renderLabel: t,
- renderOption: n,
- nodeProps: r,
- tmNode: { rawNode: o }
- } = this,
- i = r == null ? void 0 : r(o),
- a = t ? t(o, !1) : _n(o[this.labelField], o, !1),
- s = h(
- 'div',
- Object.assign({}, i, {
- class: [
- `${e}-base-select-group-header`,
- i == null ? void 0 : i.class
- ]
- }),
- a
- );
- return o.render
- ? o.render({ node: s, option: o })
- : n
- ? n({ node: s, option: o, selected: !1 })
- : s;
- }
- }),
- { cubicBezierEaseIn: RS, cubicBezierEaseOut: PS } = Bo;
- function gi({
- transformOrigin: e = 'inherit',
- duration: t = '.2s',
- enterScale: n = '.9',
- originalTransform: r = '',
- originalTransition: o = ''
- } = {}) {
- return [
- F('&.fade-in-scale-up-transition-leave-active', {
- transformOrigin: e,
- transition: `opacity ${t} ${RS}, transform ${t} ${RS} ${o && ',' + o}`
- }),
- F('&.fade-in-scale-up-transition-enter-active', {
- transformOrigin: e,
- transition: `opacity ${t} ${PS}, transform ${t} ${PS} ${o && ',' + o}`
- }),
- F(
- '&.fade-in-scale-up-transition-enter-from, &.fade-in-scale-up-transition-leave-to',
- { opacity: 0, transform: `${r} scale(${n})` }
- ),
- F(
- '&.fade-in-scale-up-transition-leave-from, &.fade-in-scale-up-transition-enter-to',
- { opacity: 1, transform: `${r} scale(1)` }
- )
- ];
- }
- const HW = O(
- 'base-select-menu',
- `
- line-height: 1.5;
- outline: none;
- z-index: 0;
- position: relative;
- border-radius: var(--n-border-radius);
- transition:
- background-color .3s var(--n-bezier),
- box-shadow .3s var(--n-bezier);
- background-color: var(--n-color);
- `,
- [
- O(
- 'scrollbar',
- `
- max-height: var(--n-height);
- `
- ),
- O(
- 'virtual-list',
- `
- max-height: var(--n-height);
- `
- ),
- O(
- 'base-select-option',
- `
- min-height: var(--n-option-height);
- font-size: var(--n-option-font-size);
- display: flex;
- align-items: center;
- `,
- [
- V(
- 'content',
- `
- z-index: 1;
- white-space: nowrap;
- text-overflow: ellipsis;
- overflow: hidden;
- `
- )
- ]
- ),
- O(
- 'base-select-group-header',
- `
- min-height: var(--n-option-height);
- font-size: .93em;
- display: flex;
- align-items: center;
- `
- ),
- O(
- 'base-select-menu-option-wrapper',
- `
- position: relative;
- width: 100%;
- `
- ),
- V(
- 'loading, empty',
- `
- display: flex;
- padding: 12px 32px;
- flex: 1;
- justify-content: center;
- `
- ),
- V(
- 'loading',
- `
- color: var(--n-loading-color);
- font-size: var(--n-loading-size);
- `
- ),
- V(
- 'action',
- `
- padding: 8px var(--n-option-padding-left);
- font-size: var(--n-option-font-size);
- transition:
- color .3s var(--n-bezier),
- border-color .3s var(--n-bezier);
- border-top: 1px solid var(--n-action-divider-color);
- color: var(--n-action-text-color);
- `
- ),
- O(
- 'base-select-group-header',
- `
- position: relative;
- cursor: default;
- padding: var(--n-option-padding);
- color: var(--n-group-header-text-color);
- `
- ),
- O(
- 'base-select-option',
- `
- cursor: pointer;
- position: relative;
- padding: var(--n-option-padding);
- transition:
- color .3s var(--n-bezier),
- opacity .3s var(--n-bezier);
- box-sizing: border-box;
- color: var(--n-option-text-color);
- opacity: 1;
- `,
- [
- U(
- 'show-checkmark',
- `
- padding-right: calc(var(--n-option-padding-right) + 20px);
- `
- ),
- F(
- '&::before',
- `
- content: "";
- position: absolute;
- left: 4px;
- right: 4px;
- top: 0;
- bottom: 0;
- border-radius: var(--n-border-radius);
- transition: background-color .3s var(--n-bezier);
- `
- ),
- F(
- '&:active',
- `
- color: var(--n-option-text-color-pressed);
- `
- ),
- U(
- 'grouped',
- `
- padding-left: calc(var(--n-option-padding-left) * 1.5);
- `
- ),
- U('pending', [
- F(
- '&::before',
- `
- background-color: var(--n-option-color-pending);
- `
- )
- ]),
- U(
- 'selected',
- `
- color: var(--n-option-text-color-active);
- `,
- [
- F(
- '&::before',
- `
- background-color: var(--n-option-color-active);
- `
- ),
- U('pending', [
- F(
- '&::before',
- `
- background-color: var(--n-option-color-active-pending);
- `
- )
- ])
- ]
- ),
- U(
- 'disabled',
- `
- cursor: not-allowed;
- `,
- [
- jt(
- 'selected',
- `
- color: var(--n-option-text-color-disabled);
- `
- ),
- U(
- 'selected',
- `
- opacity: var(--n-option-opacity-disabled);
- `
- )
- ]
- ),
- V(
- 'check',
- `
- font-size: 16px;
- position: absolute;
- right: calc(var(--n-option-padding-right) - 4px);
- top: calc(50% - 7px);
- color: var(--n-option-check-color);
- transition: color .3s var(--n-bezier);
- `,
- [gi({ enterScale: '0.5' })]
- )
- ]
- )
- ]
- ),
- Rk = Re({
- name: 'InternalSelectMenu',
- props: Object.assign(Object.assign({}, Ke.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 = Ke(
- 'InternalSelectMenu',
- '-internal-select-menu',
- HW,
- Sy,
- e,
- Ee(e, 'clsPrefix')
- ),
- n = Z(null),
- r = Z(null),
- o = Z(null),
- i = I(() => e.treeMate.getFlattenedNodes()),
- a = I(() => wk(i.value)),
- s = Z(null);
- function c() {
- const { treeMate: ne } = e;
- let X = null;
- const { value: J } = e;
- J === null
- ? (X = ne.getFirstAvailableNode())
- : (e.multiple
- ? (X = ne.getNode((J || [])[(J || []).length - 1]))
- : (X = ne.getNode(J)),
- (!X || X.disabled) && (X = ne.getFirstAvailableNode())),
- M(X || null);
- }
- function d() {
- const { value: ne } = s;
- ne && !e.treeMate.getNode(ne.key) && (s.value = null);
- }
- let f;
- $t(
- () => e.show,
- ne => {
- ne
- ? (f = $t(
- () => e.treeMate,
- () => {
- e.resetMenuOnOptionsChange
- ? (e.autoPending ? c() : d(), mn(E))
- : d();
- },
- { immediate: !0 }
- ))
- : f == null || f();
- },
- { immediate: !0 }
- ),
- qn(() => {
- f == null || f();
- });
- const v = I(() => Lr(t.value.self[Oe('optionHeight', e.size)])),
- p = I(() => Go(t.value.self[Oe('padding', e.size)])),
- m = I(() =>
- e.multiple && Array.isArray(e.value) ? new Set(e.value) : new Set()
- ),
- g = I(() => {
- const ne = i.value;
- return ne && ne.length === 0;
- });
- function w(ne) {
- const { onToggle: X } = e;
- X && X(ne);
- }
- function x(ne) {
- const { onScroll: X } = e;
- X && X(ne);
- }
- function y(ne) {
- var X;
- (X = o.value) === null || X === void 0 || X.sync(), x(ne);
- }
- function C() {
- var ne;
- (ne = o.value) === null || ne === void 0 || ne.sync();
- }
- function R() {
- const { value: ne } = s;
- return ne || null;
- }
- function S(ne, X) {
- X.disabled || M(X, !1);
- }
- function _(ne, X) {
- X.disabled || w(X);
- }
- function P(ne) {
- var X;
- Io(ne, 'action') ||
- (X = e.onKeyup) === null ||
- X === void 0 ||
- X.call(e, ne);
- }
- function T(ne) {
- var X;
- Io(ne, 'action') ||
- (X = e.onKeydown) === null ||
- X === void 0 ||
- X.call(e, ne);
- }
- function A(ne) {
- var X;
- (X = e.onMousedown) === null || X === void 0 || X.call(e, ne),
- !e.focusable && ne.preventDefault();
- }
- function z() {
- const { value: ne } = s;
- ne && M(ne.getNext({ loop: !0 }), !0);
- }
- function k() {
- const { value: ne } = s;
- ne && M(ne.getPrev({ loop: !0 }), !0);
- }
- function M(ne, X = !1) {
- (s.value = ne), X && E();
- }
- function E() {
- var ne, X;
- const J = s.value;
- if (!J) return;
- const re = a.value(J.key);
- re !== null &&
- (e.virtualScroll
- ? (ne = r.value) === null ||
- ne === void 0 ||
- ne.scrollTo({ index: re })
- : (X = o.value) === null ||
- X === void 0 ||
- X.scrollTo({ index: re, elSize: v.value }));
- }
- function D(ne) {
- var X, J;
- !((X = n.value) === null || X === void 0) &&
- X.contains(ne.target) &&
- ((J = e.onFocus) === null || J === void 0 || J.call(e, ne));
- }
- function L(ne) {
- var X, J;
- (!((X = n.value) === null || X === void 0) &&
- X.contains(ne.relatedTarget)) ||
- (J = e.onBlur) === null ||
- J === void 0 ||
- J.call(e, ne);
- }
- Rt(G0, {
- handleOptionMouseEnter: S,
- handleOptionClick: _,
- valueSetRef: m,
- pendingTmNodeRef: s,
- nodePropsRef: Ee(e, 'nodeProps'),
- showCheckmarkRef: Ee(e, 'showCheckmark'),
- multipleRef: Ee(e, 'multiple'),
- valueRef: Ee(e, 'value'),
- renderLabelRef: Ee(e, 'renderLabel'),
- renderOptionRef: Ee(e, 'renderOption'),
- labelFieldRef: Ee(e, 'labelField'),
- valueFieldRef: Ee(e, 'valueField')
- }),
- Rt(KR, n),
- Hn(() => {
- const { value: ne } = o;
- ne && ne.sync();
- });
- const j = I(() => {
- const { size: ne } = e,
- {
- common: { cubicBezierEaseInOut: X },
- self: {
- height: J,
- borderRadius: re,
- color: ce,
- groupHeaderTextColor: pe,
- actionDividerColor: Fe,
- optionTextColorPressed: Ie,
- optionTextColor: le,
- optionTextColorDisabled: me,
- optionTextColorActive: he,
- optionOpacityDisabled: ue,
- optionCheckColor: Ae,
- actionTextColor: W,
- optionColorPending: Q,
- optionColorActive: ee,
- loadingColor: ve,
- loadingSize: oe,
- optionColorActivePending: H,
- [Oe('optionFontSize', ne)]: ae,
- [Oe('optionHeight', ne)]: ge,
- [Oe('optionPadding', ne)]: Ce
- }
- } = t.value;
- return {
- '--n-height': J,
- '--n-action-divider-color': Fe,
- '--n-action-text-color': W,
- '--n-bezier': X,
- '--n-border-radius': re,
- '--n-color': ce,
- '--n-option-font-size': ae,
- '--n-group-header-text-color': pe,
- '--n-option-check-color': Ae,
- '--n-option-color-pending': Q,
- '--n-option-color-active': ee,
- '--n-option-color-active-pending': H,
- '--n-option-height': ge,
- '--n-option-opacity-disabled': ue,
- '--n-option-text-color': le,
- '--n-option-text-color-active': he,
- '--n-option-text-color-disabled': me,
- '--n-option-text-color-pressed': Ie,
- '--n-option-padding': Ce,
- '--n-option-padding-left': Go(Ce, 'left'),
- '--n-option-padding-right': Go(Ce, 'right'),
- '--n-loading-color': ve,
- '--n-loading-size': oe
- };
- }),
- { inlineThemeDisabled: B } = e,
- q = B
- ? Mt(
- 'internal-select-menu',
- I(() => e.size[0]),
- j,
- e
- )
- : void 0,
- G = { selfRef: n, next: z, prev: k, getPendingTmNode: R };
- return (
- sP(n, e.onResize),
- Object.assign(
- {
- mergedTheme: t,
- virtualListRef: r,
- scrollbarRef: o,
- itemSize: v,
- padding: p,
- flattenedNodes: i,
- empty: g,
- virtualListContainer() {
- const { value: ne } = r;
- return ne == null ? void 0 : ne.listElRef;
- },
- virtualListContent() {
- const { value: ne } = r;
- return ne == null ? void 0 : ne.itemsElRef;
- },
- doScroll: x,
- handleFocusin: D,
- handleFocusout: L,
- handleKeyUp: P,
- handleKeyDown: T,
- handleMouseDown: A,
- handleVirtualListResize: C,
- handleVirtualListScroll: y,
- cssVars: B ? void 0 : j,
- themeClass: q == null ? void 0 : q.themeClass,
- onRender: q == null ? void 0 : q.onRender
- },
- G
- )
- );
- },
- render() {
- const {
- $slots: e,
- virtualScroll: t,
- clsPrefix: n,
- mergedTheme: r,
- themeClass: o,
- onRender: i
- } = this;
- return (
- i == null || i(),
- h(
- 'div',
- {
- ref: 'selfRef',
- tabindex: this.focusable ? 0 : -1,
- class: [
- `${n}-base-select-menu`,
- o,
- this.multiple && `${n}-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
- ? h(
- 'div',
- { class: `${n}-base-select-menu__loading` },
- h($a, { clsPrefix: n, strokeWidth: 20 })
- )
- : this.empty
- ? h(
- 'div',
- { class: `${n}-base-select-menu__empty`, 'data-empty': !0 },
- Kt(e.empty, () => [
- h(Cy, {
- theme: r.peers.Empty,
- themeOverrides: r.peerOverrides.Empty
- })
- ])
- )
- : h(
- yr,
- {
- ref: 'scrollbarRef',
- theme: r.peers.Scrollbar,
- themeOverrides: r.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
- ? h(
- Ac,
- {
- ref: 'virtualListRef',
- class: `${n}-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: a }) =>
- a.isGroup
- ? h(_S, { key: a.key, clsPrefix: n, tmNode: a })
- : a.ignored
- ? null
- : h(SS, { clsPrefix: n, key: a.key, tmNode: a })
- }
- )
- : h(
- 'div',
- {
- class: `${n}-base-select-menu-option-wrapper`,
- style: {
- paddingTop: this.padding.top,
- paddingBottom: this.padding.bottom
- }
- },
- this.flattenedNodes.map(a =>
- a.isGroup
- ? h(_S, { key: a.key, clsPrefix: n, tmNode: a })
- : h(SS, { clsPrefix: n, key: a.key, tmNode: a })
- )
- )
- }
- ),
- cn(
- e.action,
- a =>
- a && [
- h(
- 'div',
- {
- class: `${n}-base-select-menu__action`,
- 'data-action': !0,
- key: 'action'
- },
- a
- ),
- h(_l, { onFocus: this.onTabOut, key: 'focus-detector' })
- ]
- )
- )
- );
- }
- }),
- jW = O(
- 'base-wave',
- `
- position: absolute;
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- border-radius: inherit;
- `
- ),
- Pk = Re({
- name: 'BaseWave',
- props: { clsPrefix: { type: String, required: !0 } },
- setup(e) {
- Ta('-base-wave', jW, Ee(e, 'clsPrefix'));
- const t = Z(null),
- n = Z(!1);
- let r = null;
- return (
- qn(() => {
- r !== null && window.clearTimeout(r);
- }),
- {
- active: n,
- selfRef: t,
- play() {
- r !== null && (window.clearTimeout(r), (n.value = !1), (r = null)),
- mn(() => {
- var o;
- (o = t.value) === null || o === void 0 || o.offsetHeight,
- (n.value = !0),
- (r = window.setTimeout(() => {
- (n.value = !1), (r = null);
- }, 1e3));
- });
- }
- }
- );
- },
- render() {
- const { clsPrefix: e } = this;
- return h('div', {
- ref: 'selfRef',
- 'aria-hidden': !0,
- class: [`${e}-base-wave`, this.active && `${e}-base-wave--active`]
- });
- }
- }),
- UW = {
- space: '6px',
- spaceArrow: '10px',
- arrowOffset: '10px',
- arrowOffsetVertical: '10px',
- arrowHeight: '6px',
- padding: '8px 14px'
- },
- WW = e => {
- const {
- boxShadow2: t,
- popoverColor: n,
- textColor2: r,
- borderRadius: o,
- fontSize: i,
- dividerColor: a
- } = e;
- return Object.assign(Object.assign({}, UW), {
- fontSize: i,
- borderRadius: o,
- color: n,
- dividerColor: a,
- textColor: r,
- boxShadow: t
- });
- },
- VW = { name: 'Popover', common: Nt, self: WW },
- nd = VW,
- Lg = { top: 'bottom', bottom: 'top', left: 'right', right: 'left' },
- Cr = 'var(--n-arrow-height) * 1.414',
- KW = F([
- O(
- 'popover',
- `
- transition:
- box-shadow .3s var(--n-bezier),
- background-color .3s var(--n-bezier),
- color .3s var(--n-bezier);
- position: relative;
- font-size: var(--n-font-size);
- color: var(--n-text-color);
- box-shadow: var(--n-box-shadow);
- word-break: break-word;
- `,
- [
- F('>', [
- O(
- 'scrollbar',
- `
- height: inherit;
- max-height: inherit;
- `
- )
- ]),
- jt(
- 'raw',
- `
- background-color: var(--n-color);
- border-radius: var(--n-border-radius);
- `,
- [
- jt('scrollable', [
- jt('show-header-or-footer', 'padding: var(--n-padding);')
- ])
- ]
- ),
- V(
- 'header',
- `
- padding: var(--n-padding);
- border-bottom: 1px solid var(--n-divider-color);
- transition: border-color .3s var(--n-bezier);
- `
- ),
- V(
- 'footer',
- `
- padding: var(--n-padding);
- border-top: 1px solid var(--n-divider-color);
- transition: border-color .3s var(--n-bezier);
- `
- ),
- U('scrollable, show-header-or-footer', [
- V(
- 'content',
- `
- padding: var(--n-padding);
- `
- )
- ])
- ]
- ),
- O(
- 'popover-shared',
- `
- transform-origin: inherit;
- `,
- [
- O(
- 'popover-arrow-wrapper',
- `
- position: absolute;
- overflow: hidden;
- pointer-events: none;
- `,
- [
- O(
- 'popover-arrow',
- `
- transition: background-color .3s var(--n-bezier);
- position: absolute;
- display: block;
- width: calc(${Cr});
- height: calc(${Cr});
- box-shadow: 0 0 8px 0 rgba(0, 0, 0, .12);
- transform: rotate(45deg);
- background-color: var(--n-color);
- pointer-events: all;
- `
- )
- ]
- ),
- F(
- '&.popover-transition-enter-from, &.popover-transition-leave-to',
- `
- opacity: 0;
- transform: scale(.85);
- `
- ),
- F(
- '&.popover-transition-enter-to, &.popover-transition-leave-from',
- `
- transform: scale(1);
- opacity: 1;
- `
- ),
- F(
- '&.popover-transition-enter-active',
- `
- transition:
- box-shadow .3s var(--n-bezier),
- background-color .3s var(--n-bezier),
- color .3s var(--n-bezier),
- opacity .15s var(--n-bezier-ease-out),
- transform .15s var(--n-bezier-ease-out);
- `
- ),
- F(
- '&.popover-transition-leave-active',
- `
- transition:
- box-shadow .3s var(--n-bezier),
- background-color .3s var(--n-bezier),
- color .3s var(--n-bezier),
- opacity .15s var(--n-bezier-ease-in),
- transform .15s var(--n-bezier-ease-in);
- `
- )
- ]
- ),
- Yo(
- 'top-start',
- `
- top: calc(${Cr} / -2);
- left: calc(${fa('top-start')} - var(--v-offset-left));
- `
- ),
- Yo(
- 'top',
- `
- top: calc(${Cr} / -2);
- transform: translateX(calc(${Cr} / -2)) rotate(45deg);
- left: 50%;
- `
- ),
- Yo(
- 'top-end',
- `
- top: calc(${Cr} / -2);
- right: calc(${fa('top-end')} + var(--v-offset-left));
- `
- ),
- Yo(
- 'bottom-start',
- `
- bottom: calc(${Cr} / -2);
- left: calc(${fa('bottom-start')} - var(--v-offset-left));
- `
- ),
- Yo(
- 'bottom',
- `
- bottom: calc(${Cr} / -2);
- transform: translateX(calc(${Cr} / -2)) rotate(45deg);
- left: 50%;
- `
- ),
- Yo(
- 'bottom-end',
- `
- bottom: calc(${Cr} / -2);
- right: calc(${fa('bottom-end')} + var(--v-offset-left));
- `
- ),
- Yo(
- 'left-start',
- `
- left: calc(${Cr} / -2);
- top: calc(${fa('left-start')} - var(--v-offset-top));
- `
- ),
- Yo(
- 'left',
- `
- left: calc(${Cr} / -2);
- transform: translateY(calc(${Cr} / -2)) rotate(45deg);
- top: 50%;
- `
- ),
- Yo(
- 'left-end',
- `
- left: calc(${Cr} / -2);
- bottom: calc(${fa('left-end')} + var(--v-offset-top));
- `
- ),
- Yo(
- 'right-start',
- `
- right: calc(${Cr} / -2);
- top: calc(${fa('right-start')} - var(--v-offset-top));
- `
- ),
- Yo(
- 'right',
- `
- right: calc(${Cr} / -2);
- transform: translateY(calc(${Cr} / -2)) rotate(45deg);
- top: 50%;
- `
- ),
- Yo(
- 'right-end',
- `
- right: calc(${Cr} / -2);
- bottom: calc(${fa('right-end')} + var(--v-offset-top));
- `
- ),
- ...yN(
- {
- top: ['right-start', 'left-start'],
- right: ['top-end', 'bottom-end'],
- bottom: ['right-end', 'left-end'],
- left: ['top-start', 'bottom-start']
- },
- (e, t) => {
- const n = ['right', 'left'].includes(t),
- r = n ? 'width' : 'height';
- return e.map(o => {
- const i = o.split('-')[1] === 'end',
- s = `calc((${`var(--v-target-${r}, 0px)`} - ${Cr}) / 2)`,
- c = fa(o);
- return F(`[v-placement="${o}"] >`, [
- O('popover-shared', [
- U('center-arrow', [
- O(
- 'popover-arrow',
- `${t}: calc(max(${s}, ${c}) ${i ? '+' : '-'} var(--v-offset-${
- n ? 'left' : 'top'
- }));`
- )
- ])
- ])
- ]);
- });
- }
- )
- ]);
- function fa(e) {
- return ['top', 'bottom'].includes(e.split('-')[0])
- ? 'var(--n-arrow-offset)'
- : 'var(--n-arrow-offset-vertical)';
- }
- function Yo(e, t) {
- const n = e.split('-')[0],
- r = ['top', 'bottom'].includes(n)
- ? 'height: var(--n-space-arrow);'
- : 'width: var(--n-space-arrow);';
- return F(`[v-placement="${e}"] >`, [
- O(
- 'popover-shared',
- `
- margin-${Lg[n]}: var(--n-space);
- `,
- [
- U(
- 'show-arrow',
- `
- margin-${Lg[n]}: var(--n-space-arrow);
- `
- ),
- U(
- 'overlap',
- `
- margin: 0;
- `
- ),
- uD(
- 'popover-arrow-wrapper',
- `
- right: 0;
- left: 0;
- top: 0;
- bottom: 0;
- ${n}: 100%;
- ${Lg[n]}: auto;
- ${r}
- `,
- [O('popover-arrow', t)]
- )
- ]
- )
- ]);
- }
- const kk = Object.assign(Object.assign({}, Ke.props), {
- to: Yr.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
- }),
- Tk = ({ arrowStyle: e, clsPrefix: t }) =>
- h(
- 'div',
- { key: '__popover-arrow__', class: `${t}-popover-arrow-wrapper` },
- h('div', { class: `${t}-popover-arrow`, style: e })
- ),
- qW = Re({
- name: 'PopoverBody',
- inheritAttrs: !1,
- props: kk,
- setup(e, { slots: t, attrs: n }) {
- const {
- namespaceRef: r,
- mergedClsPrefixRef: o,
- inlineThemeDisabled: i
- } = yt(e),
- a = Ke('Popover', '-popover', KW, nd, e, o),
- s = Z(null),
- c = Ze('NPopover'),
- d = Z(null),
- f = Z(e.show),
- v = Z(!1);
- Bn(() => {
- const { show: T } = e;
- T && !fD() && !e.internalDeactivateImmediately && (v.value = !0);
- });
- const p = I(() => {
- const { trigger: T, onClickoutside: A } = e,
- z = [],
- {
- positionManuallyRef: { value: k }
- } = c;
- return (
- k ||
- (T === 'click' && !A && z.push([xa, S, void 0, { capture: !0 }]),
- T === 'hover' && z.push([ED, R])),
- A && z.push([xa, S, void 0, { capture: !0 }]),
- (e.displayDirective === 'show' || (e.animated && v.value)) &&
- z.push([vi, e.show]),
- z
- );
- }),
- m = I(() => {
- const T = e.width === 'trigger' ? void 0 : vn(e.width),
- A = [];
- T && A.push({ width: T });
- const { maxWidth: z, minWidth: k } = e;
- return (
- z && A.push({ maxWidth: vn(z) }),
- k && A.push({ maxWidth: vn(k) }),
- i || A.push(g.value),
- A
- );
- }),
- g = I(() => {
- const {
- common: {
- cubicBezierEaseInOut: T,
- cubicBezierEaseIn: A,
- cubicBezierEaseOut: z
- },
- self: {
- space: k,
- spaceArrow: M,
- padding: E,
- fontSize: D,
- textColor: L,
- dividerColor: j,
- color: B,
- boxShadow: q,
- borderRadius: G,
- arrowHeight: ne,
- arrowOffset: X,
- arrowOffsetVertical: J
- }
- } = a.value;
- return {
- '--n-box-shadow': q,
- '--n-bezier': T,
- '--n-bezier-ease-in': A,
- '--n-bezier-ease-out': z,
- '--n-font-size': D,
- '--n-text-color': L,
- '--n-color': B,
- '--n-divider-color': j,
- '--n-border-radius': G,
- '--n-arrow-height': ne,
- '--n-arrow-offset': X,
- '--n-arrow-offset-vertical': J,
- '--n-padding': E,
- '--n-space': k,
- '--n-space-arrow': M
- };
- }),
- w = i ? Mt('popover', void 0, g, e) : void 0;
- c.setBodyInstance({ syncPosition: x }),
- qn(() => {
- c.setBodyInstance(null);
- }),
- $t(Ee(e, 'show'), T => {
- e.animated || (T ? (f.value = !0) : (f.value = !1));
- });
- function x() {
- var T;
- (T = s.value) === null || T === void 0 || T.syncPosition();
- }
- function y(T) {
- e.trigger === 'hover' &&
- e.keepAliveOnHover &&
- e.show &&
- c.handleMouseEnter(T);
- }
- function C(T) {
- e.trigger === 'hover' && e.keepAliveOnHover && c.handleMouseLeave(T);
- }
- function R(T) {
- e.trigger === 'hover' &&
- !_().contains(ya(T)) &&
- c.handleMouseMoveOutside(T);
- }
- function S(T) {
- ((e.trigger === 'click' && !_().contains(ya(T))) || e.onClickoutside) &&
- c.handleClickOutside(T);
- }
- function _() {
- return c.getTriggerElement();
- }
- Rt(Gc, d), Rt(Nu, null), Rt(Lu, null);
- function P() {
- if (
- (w == null || w.onRender(),
- !(e.displayDirective === 'show' || e.show || (e.animated && v.value)))
- )
- return null;
- let A;
- const z = c.internalRenderBodyRef.value,
- { value: k } = o;
- if (z)
- A = z(
- [
- `${k}-popover-shared`,
- w == null ? void 0 : w.themeClass.value,
- e.overlap && `${k}-popover-shared--overlap`,
- e.showArrow && `${k}-popover-shared--show-arrow`,
- e.arrowPointToCenter && `${k}-popover-shared--center-arrow`
- ],
- d,
- m.value,
- y,
- C
- );
- else {
- const { value: M } = c.extraClassRef,
- { internalTrapFocus: E } = e,
- D = !ps(t.header) || !ps(t.footer),
- L = () => {
- var j;
- const B = D
- ? h(
- on,
- null,
- cn(t.header, ne =>
- ne
- ? h(
- 'div',
- {
- class: `${k}-popover__header`,
- style: e.headerStyle
- },
- ne
- )
- : null
- ),
- cn(t.default, ne =>
- ne
- ? h(
- 'div',
- {
- class: `${k}-popover__content`,
- style: e.contentStyle
- },
- t
- )
- : null
- ),
- cn(t.footer, ne =>
- ne
- ? h(
- 'div',
- {
- class: `${k}-popover__footer`,
- style: e.footerStyle
- },
- ne
- )
- : null
- )
- )
- : e.scrollable
- ? (j = t.default) === null || j === void 0
- ? void 0
- : j.call(t)
- : h(
- 'div',
- { class: `${k}-popover__content`, style: e.contentStyle },
- t
- ),
- q = e.scrollable
- ? h(
- lv,
- {
- contentClass: D ? void 0 : `${k}-popover__content`,
- contentStyle: D ? void 0 : e.contentStyle
- },
- { default: () => B }
- )
- : B,
- G = e.showArrow
- ? Tk({ arrowStyle: e.arrowStyle, clsPrefix: k })
- : null;
- return [q, G];
- };
- A = h(
- 'div',
- qr(
- {
- class: [
- `${k}-popover`,
- `${k}-popover-shared`,
- w == null ? void 0 : w.themeClass.value,
- M.map(j => `${k}-${j}`),
- {
- [`${k}-popover--scrollable`]: e.scrollable,
- [`${k}-popover--show-header-or-footer`]: D,
- [`${k}-popover--raw`]: e.raw,
- [`${k}-popover-shared--overlap`]: e.overlap,
- [`${k}-popover-shared--show-arrow`]: e.showArrow,
- [`${k}-popover-shared--center-arrow`]: e.arrowPointToCenter
- }
- ],
- ref: d,
- style: m.value,
- onKeydown: c.handleKeydown,
- onMouseenter: y,
- onMouseleave: C
- },
- n
- ),
- E ? h(Q0, { active: e.show, autoFocus: !0 }, { default: L }) : L()
- );
- }
- return Er(A, p.value);
- }
- return {
- displayed: v,
- namespace: r,
- isMounted: c.isMountedRef,
- zIndex: c.zIndexRef,
- followerRef: s,
- adjustedTo: Yr(e),
- followerEnabled: f,
- renderContentNode: P
- };
- },
- render() {
- return h(
- Qc,
- {
- 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 === Yr.tdkey
- },
- {
- default: () =>
- this.animated
- ? h(
- Kn,
- {
- 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()
- }
- );
- }
- }),
- YW = Object.keys(kk),
- GW = {
- focus: ['onFocus', 'onBlur'],
- click: ['onClick'],
- hover: ['onMouseenter', 'onMouseleave'],
- manual: [],
- nested: ['onFocus', 'onBlur', 'onMouseenter', 'onMouseleave', 'onClick']
- };
- function XW(e, t, n) {
- GW[t].forEach(r => {
- e.props ? (e.props = Object.assign({}, e.props)) : (e.props = {});
- const o = e.props[r],
- i = n[r];
- o
- ? (e.props[r] = (...a) => {
- o(...a), i(...a);
- })
- : (e.props[r] = i);
- });
- }
- const Ic = {
- 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: Yr.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
- },
- ZW = Object.assign(Object.assign(Object.assign({}, Ke.props), Ic), {
- internalOnAfterLeave: Function,
- internalRenderBody: Function
- }),
- rd = Re({
- name: 'Popover',
- inheritAttrs: !1,
- props: ZW,
- __popover__: !0,
- setup(e) {
- const t = yi(),
- n = Z(null),
- r = I(() => e.show),
- o = Z(e.defaultShow),
- i = An(r, o),
- a = kt(() => (e.disabled ? !1 : i.value)),
- s = () => {
- if (e.disabled) return !0;
- const { getDisabled: L } = e;
- return !!(L != null && L());
- },
- c = () => (s() ? !1 : i.value),
- d = xs(e, ['arrow', 'showArrow']),
- f = I(() => (e.overlap ? !1 : d.value));
- let v = null;
- const p = Z(null),
- m = Z(null),
- g = kt(() => e.x !== void 0 && e.y !== void 0);
- function w(L) {
- const { 'onUpdate:show': j, onUpdateShow: B, onShow: q, onHide: G } = e;
- (o.value = L),
- j && ze(j, L),
- B && ze(B, L),
- L && q && ze(q, !0),
- L && G && ze(G, !1);
- }
- function x() {
- v && v.syncPosition();
- }
- function y() {
- const { value: L } = p;
- L && (window.clearTimeout(L), (p.value = null));
- }
- function C() {
- const { value: L } = m;
- L && (window.clearTimeout(L), (m.value = null));
- }
- function R() {
- const L = s();
- if (e.trigger === 'focus' && !L) {
- if (c()) return;
- w(!0);
- }
- }
- function S() {
- const L = s();
- if (e.trigger === 'focus' && !L) {
- if (!c()) return;
- w(!1);
- }
- }
- function _() {
- const L = s();
- if (e.trigger === 'hover' && !L) {
- if ((C(), p.value !== null || c())) return;
- const j = () => {
- w(!0), (p.value = null);
- },
- { delay: B } = e;
- B === 0 ? j() : (p.value = window.setTimeout(j, B));
- }
- }
- function P() {
- const L = s();
- if (e.trigger === 'hover' && !L) {
- if ((y(), m.value !== null || !c())) return;
- const j = () => {
- w(!1), (m.value = null);
- },
- { duration: B } = e;
- B === 0 ? j() : (m.value = window.setTimeout(j, B));
- }
- }
- function T() {
- P();
- }
- function A(L) {
- var j;
- c() &&
- (e.trigger === 'click' && (y(), C(), w(!1)),
- (j = e.onClickoutside) === null || j === void 0 || j.call(e, L));
- }
- function z() {
- if (e.trigger === 'click' && !s()) {
- y(), C();
- const L = !c();
- w(L);
- }
- }
- function k(L) {
- e.internalTrapFocus && L.key === 'Escape' && (y(), C(), w(!1));
- }
- function M(L) {
- o.value = L;
- }
- function E() {
- var L;
- return (L = n.value) === null || L === void 0 ? void 0 : L.targetRef;
- }
- function D(L) {
- v = L;
- }
- return (
- Rt('NPopover', {
- getTriggerElement: E,
- handleKeydown: k,
- handleMouseEnter: _,
- handleMouseLeave: P,
- handleClickOutside: A,
- handleMouseMoveOutside: T,
- setBodyInstance: D,
- positionManuallyRef: g,
- isMountedRef: t,
- zIndexRef: Ee(e, 'zIndex'),
- extraClassRef: Ee(e, 'internalExtraClass'),
- internalRenderBodyRef: Ee(e, 'internalRenderBody')
- }),
- Bn(() => {
- i.value && s() && w(!1);
- }),
- {
- binderInstRef: n,
- positionManually: g,
- mergedShowConsideringDisabledProp: a,
- uncontrolledShow: o,
- mergedShowArrow: f,
- getMergedShow: c,
- setShow: M,
- handleClick: z,
- handleMouseEnter: _,
- handleMouseLeave: P,
- handleFocus: R,
- handleBlur: S,
- syncPosition: x
- }
- );
- },
- render() {
- var e;
- const { positionManually: t, $slots: n } = this;
- let r,
- o = !1;
- if (
- !t &&
- (n.activator ? (r = Wm(n, 'activator')) : (r = Wm(n, 'trigger')), r)
- ) {
- (r = Mo(r)), (r = r.type === Du ? h('span', [r]) : r);
- const i = {
- onClick: this.handleClick,
- onMouseenter: this.handleMouseEnter,
- onMouseleave: this.handleMouseLeave,
- onFocus: this.handleFocus,
- onBlur: this.handleBlur
- };
- if (!((e = r.type) === null || e === void 0) && e.__popover__)
- (o = !0),
- r.props ||
- (r.props = {
- internalSyncTargetWithParent: !0,
- internalInheritedEventHandlers: []
- }),
- (r.props.internalSyncTargetWithParent = !0),
- r.props.internalInheritedEventHandlers
- ? (r.props.internalInheritedEventHandlers = [
- i,
- ...r.props.internalInheritedEventHandlers
- ])
- : (r.props.internalInheritedEventHandlers = [i]);
- else {
- const { internalInheritedEventHandlers: a } = this,
- s = [i, ...a],
- c = {
- onBlur: d => {
- s.forEach(f => {
- f.onBlur(d);
- });
- },
- onFocus: d => {
- s.forEach(f => {
- f.onFocus(d);
- });
- },
- onClick: d => {
- s.forEach(f => {
- f.onClick(d);
- });
- },
- onMouseenter: d => {
- s.forEach(f => {
- f.onMouseenter(d);
- });
- },
- onMouseleave: d => {
- s.forEach(f => {
- f.onMouseleave(d);
- });
- }
- };
- XW(r, a ? 'nested' : t ? 'manual' : this.trigger, c);
- }
- }
- return h(
- Xc,
- {
- ref: 'binderInstRef',
- syncTarget: !o,
- syncTargetWithParent: this.internalSyncTargetWithParent
- },
- {
- default: () => {
- this.mergedShowConsideringDisabledProp;
- const i = this.getMergedShow();
- return [
- this.internalTrapFocus && i
- ? Er(h('div', { style: { position: 'fixed', inset: 0 } }), [
- [Hu, { enabled: i, zIndex: this.zIndex }]
- ])
- : null,
- t ? null : h(Zc, null, { default: () => r }),
- h(
- qW,
- fi(
- this.$props,
- YW,
- Object.assign(Object.assign({}, this.$attrs), {
- showArrow: this.mergedShowArrow,
- show: i
- })
- ),
- {
- default: () => {
- var a, s;
- return (s = (a = this.$slots).default) === null ||
- s === void 0
- ? void 0
- : s.call(a);
- },
- header: () => {
- var a, s;
- return (s = (a = this.$slots).header) === null ||
- s === void 0
- ? void 0
- : s.call(a);
- },
- footer: () => {
- var a, s;
- return (s = (a = this.$slots).footer) === null ||
- s === void 0
- ? void 0
- : s.call(a);
- }
- }
- )
- ];
- }
- }
- );
- }
- }),
- QW = {
- 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'
- },
- JW = e => {
- const {
- textColor2: t,
- primaryColorHover: n,
- primaryColorPressed: r,
- primaryColor: o,
- infoColor: i,
- successColor: a,
- warningColor: s,
- errorColor: c,
- baseColor: d,
- borderColor: f,
- opacityDisabled: v,
- tagColor: p,
- closeIconColor: m,
- closeIconColorHover: g,
- closeIconColorPressed: w,
- borderRadiusSmall: x,
- fontSizeMini: y,
- fontSizeTiny: C,
- fontSizeSmall: R,
- fontSizeMedium: S,
- heightMini: _,
- heightTiny: P,
- heightSmall: T,
- heightMedium: A,
- closeColorHover: z,
- closeColorPressed: k,
- buttonColor2Hover: M,
- buttonColor2Pressed: E,
- fontWeightStrong: D
- } = e;
- return Object.assign(Object.assign({}, QW), {
- closeBorderRadius: x,
- heightTiny: _,
- heightSmall: P,
- heightMedium: T,
- heightLarge: A,
- borderRadius: x,
- opacityDisabled: v,
- fontSizeTiny: y,
- fontSizeSmall: C,
- fontSizeMedium: R,
- fontSizeLarge: S,
- fontWeightStrong: D,
- textColorCheckable: t,
- textColorHoverCheckable: t,
- textColorPressedCheckable: t,
- textColorChecked: d,
- colorCheckable: '#0000',
- colorHoverCheckable: M,
- colorPressedCheckable: E,
- colorChecked: o,
- colorCheckedHover: n,
- colorCheckedPressed: r,
- border: `1px solid ${f}`,
- textColor: t,
- color: p,
- colorBordered: 'rgb(250, 250, 252)',
- closeIconColor: m,
- closeIconColorHover: g,
- closeIconColorPressed: w,
- closeColorHover: z,
- closeColorPressed: k,
- borderPrimary: `1px solid ${zt(o, { alpha: 0.3 })}`,
- textColorPrimary: o,
- colorPrimary: zt(o, { alpha: 0.12 }),
- colorBorderedPrimary: zt(o, { alpha: 0.1 }),
- closeIconColorPrimary: o,
- closeIconColorHoverPrimary: o,
- closeIconColorPressedPrimary: o,
- closeColorHoverPrimary: zt(o, { alpha: 0.12 }),
- closeColorPressedPrimary: zt(o, { alpha: 0.18 }),
- borderInfo: `1px solid ${zt(i, { alpha: 0.3 })}`,
- textColorInfo: i,
- colorInfo: zt(i, { alpha: 0.12 }),
- colorBorderedInfo: zt(i, { alpha: 0.1 }),
- closeIconColorInfo: i,
- closeIconColorHoverInfo: i,
- closeIconColorPressedInfo: i,
- closeColorHoverInfo: zt(i, { alpha: 0.12 }),
- closeColorPressedInfo: zt(i, { alpha: 0.18 }),
- borderSuccess: `1px solid ${zt(a, { alpha: 0.3 })}`,
- textColorSuccess: a,
- colorSuccess: zt(a, { alpha: 0.12 }),
- colorBorderedSuccess: zt(a, { alpha: 0.1 }),
- closeIconColorSuccess: a,
- closeIconColorHoverSuccess: a,
- closeIconColorPressedSuccess: a,
- closeColorHoverSuccess: zt(a, { alpha: 0.12 }),
- closeColorPressedSuccess: zt(a, { alpha: 0.18 }),
- borderWarning: `1px solid ${zt(s, { alpha: 0.35 })}`,
- textColorWarning: s,
- colorWarning: zt(s, { alpha: 0.15 }),
- colorBorderedWarning: zt(s, { alpha: 0.12 }),
- closeIconColorWarning: s,
- closeIconColorHoverWarning: s,
- closeIconColorPressedWarning: s,
- closeColorHoverWarning: zt(s, { alpha: 0.12 }),
- closeColorPressedWarning: zt(s, { alpha: 0.18 }),
- borderError: `1px solid ${zt(c, { alpha: 0.23 })}`,
- textColorError: c,
- colorError: zt(c, { alpha: 0.1 }),
- colorBorderedError: zt(c, { alpha: 0.08 }),
- closeIconColorError: c,
- closeIconColorHoverError: c,
- closeIconColorPressedError: c,
- closeColorHoverError: zt(c, { alpha: 0.12 }),
- closeColorPressedError: zt(c, { alpha: 0.18 })
- });
- },
- eV = { name: 'Tag', common: Nt, self: JW },
- tV = eV,
- nV = {
- color: Object,
- type: { type: String, default: 'default' },
- round: Boolean,
- size: { type: String, default: 'medium' },
- closable: Boolean,
- disabled: { type: Boolean, default: void 0 }
- },
- rV = O(
- 'tag',
- `
- white-space: nowrap;
- position: relative;
- box-sizing: border-box;
- cursor: default;
- display: inline-flex;
- align-items: center;
- flex-wrap: nowrap;
- padding: var(--n-padding);
- border-radius: var(--n-border-radius);
- color: var(--n-text-color);
- background-color: var(--n-color);
- transition:
- border-color .3s var(--n-bezier),
- background-color .3s var(--n-bezier),
- color .3s var(--n-bezier),
- box-shadow .3s var(--n-bezier),
- opacity .3s var(--n-bezier);
- line-height: 1;
- height: var(--n-height);
- font-size: var(--n-font-size);
- `,
- [
- U(
- 'strong',
- `
- font-weight: var(--n-font-weight-strong);
- `
- ),
- V(
- 'border',
- `
- pointer-events: none;
- position: absolute;
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- border-radius: inherit;
- border: var(--n-border);
- transition: border-color .3s var(--n-bezier);
- `
- ),
- V(
- 'icon',
- `
- display: flex;
- margin: 0 4px 0 0;
- color: var(--n-text-color);
- transition: color .3s var(--n-bezier);
- font-size: var(--n-avatar-size-override);
- `
- ),
- V(
- 'avatar',
- `
- display: flex;
- margin: 0 6px 0 0;
- `
- ),
- V(
- 'close',
- `
- margin: var(--n-close-margin);
- transition:
- background-color .3s var(--n-bezier),
- color .3s var(--n-bezier);
- `
- ),
- U(
- 'round',
- `
- padding: 0 calc(var(--n-height) / 3);
- border-radius: calc(var(--n-height) / 2);
- `,
- [
- V(
- 'icon',
- `
- margin: 0 4px 0 calc((var(--n-height) - 8px) / -2);
- `
- ),
- V(
- 'avatar',
- `
- margin: 0 6px 0 calc((var(--n-height) - 8px) / -2);
- `
- ),
- U(
- 'closable',
- `
- padding: 0 calc(var(--n-height) / 4) 0 calc(var(--n-height) / 3);
- `
- )
- ]
- ),
- U('icon, avatar', [
- U(
- 'round',
- `
- padding: 0 calc(var(--n-height) / 3) 0 calc(var(--n-height) / 2);
- `
- )
- ]),
- U(
- 'disabled',
- `
- cursor: not-allowed !important;
- opacity: var(--n-opacity-disabled);
- `
- ),
- U(
- 'checkable',
- `
- cursor: pointer;
- box-shadow: none;
- color: var(--n-text-color-checkable);
- background-color: var(--n-color-checkable);
- `,
- [
- jt('disabled', [
- F('&:hover', 'background-color: var(--n-color-hover-checkable);', [
- jt('checked', 'color: var(--n-text-color-hover-checkable);')
- ]),
- F(
- '&:active',
- 'background-color: var(--n-color-pressed-checkable);',
- [jt('checked', 'color: var(--n-text-color-pressed-checkable);')]
- )
- ]),
- U(
- 'checked',
- `
- color: var(--n-text-color-checked);
- background-color: var(--n-color-checked);
- `,
- [
- jt('disabled', [
- F('&:hover', 'background-color: var(--n-color-checked-hover);'),
- F(
- '&:active',
- 'background-color: var(--n-color-checked-pressed);'
- )
- ])
- ]
- )
- ]
- )
- ]
- ),
- oV = Object.assign(Object.assign(Object.assign({}, Ke.props), nV), {
- 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
- }),
- $k = 'n-tag',
- Ih = Re({
- name: 'Tag',
- props: oV,
- setup(e) {
- const t = Z(null),
- {
- mergedBorderedRef: n,
- mergedClsPrefixRef: r,
- inlineThemeDisabled: o,
- mergedRtlRef: i
- } = yt(e),
- a = Ke('Tag', '-tag', rV, tV, e, r);
- Rt($k, { roundRef: Ee(e, 'round') });
- function s(m) {
- if (!e.disabled && e.checkable) {
- const {
- checked: g,
- onCheckedChange: w,
- onUpdateChecked: x,
- 'onUpdate:checked': y
- } = e;
- x && x(!g), y && y(!g), w && w(!g);
- }
- }
- function c(m) {
- if ((e.triggerClickOnClose || m.stopPropagation(), !e.disabled)) {
- const { onClose: g } = e;
- g && ze(g, m);
- }
- }
- const d = {
- setTextContent(m) {
- const { value: g } = t;
- g && (g.textContent = m);
- }
- },
- f = dr('Tag', i, r),
- v = I(() => {
- const {
- type: m,
- size: g,
- color: { color: w, textColor: x } = {}
- } = e,
- {
- common: { cubicBezierEaseInOut: y },
- self: {
- padding: C,
- closeMargin: R,
- closeMarginRtl: S,
- borderRadius: _,
- opacityDisabled: P,
- textColorCheckable: T,
- textColorHoverCheckable: A,
- textColorPressedCheckable: z,
- textColorChecked: k,
- colorCheckable: M,
- colorHoverCheckable: E,
- colorPressedCheckable: D,
- colorChecked: L,
- colorCheckedHover: j,
- colorCheckedPressed: B,
- closeBorderRadius: q,
- fontWeightStrong: G,
- [Oe('colorBordered', m)]: ne,
- [Oe('closeSize', g)]: X,
- [Oe('closeIconSize', g)]: J,
- [Oe('fontSize', g)]: re,
- [Oe('height', g)]: ce,
- [Oe('color', m)]: pe,
- [Oe('textColor', m)]: Fe,
- [Oe('border', m)]: Ie,
- [Oe('closeIconColor', m)]: le,
- [Oe('closeIconColorHover', m)]: me,
- [Oe('closeIconColorPressed', m)]: he,
- [Oe('closeColorHover', m)]: ue,
- [Oe('closeColorPressed', m)]: Ae
- }
- } = a.value;
- return {
- '--n-font-weight-strong': G,
- '--n-avatar-size-override': `calc(${ce} - 8px)`,
- '--n-bezier': y,
- '--n-border-radius': _,
- '--n-border': Ie,
- '--n-close-icon-size': J,
- '--n-close-color-pressed': Ae,
- '--n-close-color-hover': ue,
- '--n-close-border-radius': q,
- '--n-close-icon-color': le,
- '--n-close-icon-color-hover': me,
- '--n-close-icon-color-pressed': he,
- '--n-close-icon-color-disabled': le,
- '--n-close-margin': R,
- '--n-close-margin-rtl': S,
- '--n-close-size': X,
- '--n-color': w || (n.value ? ne : pe),
- '--n-color-checkable': M,
- '--n-color-checked': L,
- '--n-color-checked-hover': j,
- '--n-color-checked-pressed': B,
- '--n-color-hover-checkable': E,
- '--n-color-pressed-checkable': D,
- '--n-font-size': re,
- '--n-height': ce,
- '--n-opacity-disabled': P,
- '--n-padding': C,
- '--n-text-color': x || Fe,
- '--n-text-color-checkable': T,
- '--n-text-color-checked': k,
- '--n-text-color-hover-checkable': A,
- '--n-text-color-pressed-checkable': z
- };
- }),
- p = o
- ? Mt(
- 'tag',
- I(() => {
- let m = '';
- const {
- type: g,
- size: w,
- color: { color: x, textColor: y } = {}
- } = e;
- return (
- (m += g[0]),
- (m += w[0]),
- x && (m += `a${zc(x)}`),
- y && (m += `b${zc(y)}`),
- n.value && (m += 'c'),
- m
- );
- }),
- v,
- e
- )
- : void 0;
- return Object.assign(Object.assign({}, d), {
- rtlEnabled: f,
- mergedClsPrefix: r,
- contentRef: t,
- mergedBordered: n,
- handleClick: s,
- handleCloseClick: c,
- cssVars: o ? void 0 : v,
- themeClass: p == null ? void 0 : p.themeClass,
- onRender: p == null ? void 0 : p.onRender
- });
- },
- render() {
- var e, t;
- const {
- mergedClsPrefix: n,
- rtlEnabled: r,
- closable: o,
- color: { borderColor: i } = {},
- round: a,
- onRender: s,
- $slots: c
- } = this;
- s == null || s();
- const d = cn(
- c.avatar,
- v => v && h('div', { class: `${n}-tag__avatar` }, v)
- ),
- f = cn(c.icon, v => v && h('div', { class: `${n}-tag__icon` }, v));
- return h(
- 'div',
- {
- class: [
- `${n}-tag`,
- this.themeClass,
- {
- [`${n}-tag--rtl`]: r,
- [`${n}-tag--strong`]: this.strong,
- [`${n}-tag--disabled`]: this.disabled,
- [`${n}-tag--checkable`]: this.checkable,
- [`${n}-tag--checked`]: this.checkable && this.checked,
- [`${n}-tag--round`]: a,
- [`${n}-tag--avatar`]: d,
- [`${n}-tag--icon`]: f,
- [`${n}-tag--closable`]: o
- }
- ],
- style: this.cssVars,
- onClick: this.handleClick,
- onMouseenter: this.onMouseenter,
- onMouseleave: this.onMouseleave
- },
- f || d,
- h(
- 'span',
- { class: `${n}-tag__content`, ref: 'contentRef' },
- (t = (e = this.$slots).default) === null || t === void 0
- ? void 0
- : t.call(e)
- ),
- !this.checkable && o
- ? h(Sl, {
- clsPrefix: n,
- class: `${n}-tag__close`,
- disabled: this.disabled,
- onClick: this.handleCloseClick,
- focusable: this.internalCloseFocusable,
- round: a,
- isButtonTag: this.internalCloseIsButtonTag,
- absolute: !0
- })
- : null,
- !this.checkable && this.mergedBordered
- ? h('div', { class: `${n}-tag__border`, style: { borderColor: i } })
- : null
- );
- }
- }),
- iV = O(
- 'base-clear',
- `
- flex-shrink: 0;
- height: 1em;
- width: 1em;
- position: relative;
- `,
- [
- F('>', [
- V(
- 'clear',
- `
- font-size: var(--n-clear-size);
- height: 1em;
- width: 1em;
- cursor: pointer;
- color: var(--n-clear-color);
- transition: color .3s var(--n-bezier);
- display: flex;
- `,
- [
- F(
- '&:hover',
- `
- color: var(--n-clear-color-hover)!important;
- `
- ),
- F(
- '&:active',
- `
- color: var(--n-clear-color-pressed)!important;
- `
- )
- ]
- ),
- V(
- 'placeholder',
- `
- display: flex;
- `
- ),
- V(
- 'clear, placeholder',
- `
- position: absolute;
- left: 50%;
- top: 50%;
- transform: translateX(-50%) translateY(-50%);
- `,
- [
- br({
- originalTransform: 'translateX(-50%) translateY(-50%)',
- left: '50%',
- top: '50%'
- })
- ]
- )
- ])
- ]
- ),
- ub = Re({
- name: 'BaseClear',
- props: {
- clsPrefix: { type: String, required: !0 },
- show: Boolean,
- onClear: Function
- },
- setup(e) {
- return (
- Ta('-base-clear', iV, Ee(e, 'clsPrefix')),
- {
- handleMouseDown(t) {
- t.preventDefault();
- }
- }
- );
- },
- render() {
- const { clsPrefix: e } = this;
- return h(
- 'div',
- { class: `${e}-base-clear` },
- h(Zi, null, {
- default: () => {
- var t, n;
- return this.show
- ? h(
- 'div',
- {
- key: 'dismiss',
- class: `${e}-base-clear__clear`,
- onClick: this.onClear,
- onMousedown: this.handleMouseDown,
- 'data-clear': !0
- },
- Kt(this.$slots.icon, () => [
- h(Et, { clsPrefix: e }, { default: () => h(UU, null) })
- ])
- )
- : h(
- 'div',
- { key: 'icon', class: `${e}-base-clear__placeholder` },
- (n = (t = this.$slots).placeholder) === null || n === void 0
- ? void 0
- : n.call(t)
- );
- }
- })
- );
- }
- }),
- Ok = Re({
- 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: n } = e;
- return h(
- $a,
- {
- clsPrefix: n,
- class: `${n}-base-suffix`,
- strokeWidth: 24,
- scale: 0.85,
- show: e.loading
- },
- {
- default: () =>
- e.showArrow
- ? h(
- ub,
- { clsPrefix: n, show: e.showClear, onClear: e.onClear },
- {
- placeholder: () =>
- h(
- Et,
- { clsPrefix: n, class: `${n}-base-suffix__arrow` },
- { default: () => Kt(t.default, () => [h(yk, null)]) }
- )
- }
- )
- : null
- }
- );
- };
- }
- }),
- aV = {
- paddingSingle: '0 26px 0 12px',
- paddingMultiple: '3px 26px 0 12px',
- clearSize: '16px',
- arrowSize: '16px'
- },
- lV = e => {
- const {
- borderRadius: t,
- textColor2: n,
- textColorDisabled: r,
- inputColor: o,
- inputColorDisabled: i,
- primaryColor: a,
- primaryColorHover: s,
- warningColor: c,
- warningColorHover: d,
- errorColor: f,
- errorColorHover: v,
- borderColor: p,
- iconColor: m,
- iconColorDisabled: g,
- clearColor: w,
- clearColorHover: x,
- clearColorPressed: y,
- placeholderColor: C,
- placeholderColorDisabled: R,
- fontSizeTiny: S,
- fontSizeSmall: _,
- fontSizeMedium: P,
- fontSizeLarge: T,
- heightTiny: A,
- heightSmall: z,
- heightMedium: k,
- heightLarge: M
- } = e;
- return Object.assign(Object.assign({}, aV), {
- fontSizeTiny: S,
- fontSizeSmall: _,
- fontSizeMedium: P,
- fontSizeLarge: T,
- heightTiny: A,
- heightSmall: z,
- heightMedium: k,
- heightLarge: M,
- borderRadius: t,
- textColor: n,
- textColorDisabled: r,
- placeholderColor: C,
- placeholderColorDisabled: R,
- color: o,
- colorDisabled: i,
- colorActive: o,
- border: `1px solid ${p}`,
- borderHover: `1px solid ${s}`,
- borderActive: `1px solid ${a}`,
- borderFocus: `1px solid ${s}`,
- boxShadowHover: 'none',
- boxShadowActive: `0 0 0 2px ${zt(a, { alpha: 0.2 })}`,
- boxShadowFocus: `0 0 0 2px ${zt(a, { alpha: 0.2 })}`,
- caretColor: a,
- arrowColor: m,
- arrowColorDisabled: g,
- loadingColor: a,
- borderWarning: `1px solid ${c}`,
- borderHoverWarning: `1px solid ${d}`,
- borderActiveWarning: `1px solid ${c}`,
- borderFocusWarning: `1px solid ${d}`,
- boxShadowHoverWarning: 'none',
- boxShadowActiveWarning: `0 0 0 2px ${zt(c, { alpha: 0.2 })}`,
- boxShadowFocusWarning: `0 0 0 2px ${zt(c, { alpha: 0.2 })}`,
- colorActiveWarning: o,
- caretColorWarning: c,
- borderError: `1px solid ${f}`,
- borderHoverError: `1px solid ${v}`,
- borderActiveError: `1px solid ${f}`,
- borderFocusError: `1px solid ${v}`,
- boxShadowHoverError: 'none',
- boxShadowActiveError: `0 0 0 2px ${zt(f, { alpha: 0.2 })}`,
- boxShadowFocusError: `0 0 0 2px ${zt(f, { alpha: 0.2 })}`,
- colorActiveError: o,
- caretColorError: f,
- clearColor: w,
- clearColorHover: x,
- clearColorPressed: y
- });
- },
- sV = {
- name: 'InternalSelection',
- common: Nt,
- peers: { Popover: nd },
- self: lV
- },
- zk = sV,
- cV = F([
- O(
- 'base-selection',
- `
- position: relative;
- z-index: auto;
- box-shadow: none;
- width: 100%;
- max-width: 100%;
- display: inline-block;
- vertical-align: bottom;
- border-radius: var(--n-border-radius);
- min-height: var(--n-height);
- line-height: 1.5;
- font-size: var(--n-font-size);
- `,
- [
- O(
- 'base-loading',
- `
- color: var(--n-loading-color);
- `
- ),
- O('base-selection-tags', 'min-height: var(--n-height);'),
- V(
- 'border, state-border',
- `
- position: absolute;
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- pointer-events: none;
- border: var(--n-border);
- border-radius: inherit;
- transition:
- box-shadow .3s var(--n-bezier),
- border-color .3s var(--n-bezier);
- `
- ),
- V(
- 'state-border',
- `
- z-index: 1;
- border-color: #0000;
- `
- ),
- O(
- 'base-suffix',
- `
- cursor: pointer;
- position: absolute;
- top: 50%;
- transform: translateY(-50%);
- right: 10px;
- `,
- [
- V(
- 'arrow',
- `
- font-size: var(--n-arrow-size);
- color: var(--n-arrow-color);
- transition: color .3s var(--n-bezier);
- `
- )
- ]
- ),
- O(
- 'base-selection-overlay',
- `
- display: flex;
- align-items: center;
- white-space: nowrap;
- pointer-events: none;
- position: absolute;
- top: 0;
- right: 0;
- bottom: 0;
- left: 0;
- padding: var(--n-padding-single);
- transition: color .3s var(--n-bezier);
- `,
- [
- V(
- 'wrapper',
- `
- flex-basis: 0;
- flex-grow: 1;
- overflow: hidden;
- text-overflow: ellipsis;
- `
- )
- ]
- ),
- O(
- 'base-selection-placeholder',
- `
- color: var(--n-placeholder-color);
- `,
- [
- V(
- 'inner',
- `
- max-width: 100%;
- overflow: hidden;
- `
- )
- ]
- ),
- O(
- 'base-selection-tags',
- `
- cursor: pointer;
- outline: none;
- box-sizing: border-box;
- position: relative;
- z-index: auto;
- display: flex;
- padding: var(--n-padding-multiple);
- flex-wrap: wrap;
- align-items: center;
- width: 100%;
- vertical-align: bottom;
- background-color: var(--n-color);
- border-radius: inherit;
- transition:
- color .3s var(--n-bezier),
- box-shadow .3s var(--n-bezier),
- background-color .3s var(--n-bezier);
- `
- ),
- O(
- 'base-selection-label',
- `
- height: var(--n-height);
- display: inline-flex;
- width: 100%;
- vertical-align: bottom;
- cursor: pointer;
- outline: none;
- z-index: auto;
- box-sizing: border-box;
- position: relative;
- transition:
- color .3s var(--n-bezier),
- box-shadow .3s var(--n-bezier),
- background-color .3s var(--n-bezier);
- border-radius: inherit;
- background-color: var(--n-color);
- align-items: center;
- `,
- [
- O(
- 'base-selection-input',
- `
- font-size: inherit;
- line-height: inherit;
- outline: none;
- cursor: pointer;
- box-sizing: border-box;
- border:none;
- width: 100%;
- padding: var(--n-padding-single);
- background-color: #0000;
- color: var(--n-text-color);
- transition: color .3s var(--n-bezier);
- caret-color: var(--n-caret-color);
- `,
- [
- V(
- 'content',
- `
- text-overflow: ellipsis;
- overflow: hidden;
- white-space: nowrap;
- `
- )
- ]
- ),
- V(
- 'render-label',
- `
- color: var(--n-text-color);
- `
- )
- ]
- ),
- jt('disabled', [
- F('&:hover', [
- V(
- 'state-border',
- `
- box-shadow: var(--n-box-shadow-hover);
- border: var(--n-border-hover);
- `
- )
- ]),
- U('focus', [
- V(
- 'state-border',
- `
- box-shadow: var(--n-box-shadow-focus);
- border: var(--n-border-focus);
- `
- )
- ]),
- U('active', [
- V(
- 'state-border',
- `
- box-shadow: var(--n-box-shadow-active);
- border: var(--n-border-active);
- `
- ),
- O(
- 'base-selection-label',
- 'background-color: var(--n-color-active);'
- ),
- O('base-selection-tags', 'background-color: var(--n-color-active);')
- ])
- ]),
- U('disabled', 'cursor: not-allowed;', [
- V(
- 'arrow',
- `
- color: var(--n-arrow-color-disabled);
- `
- ),
- O(
- 'base-selection-label',
- `
- cursor: not-allowed;
- background-color: var(--n-color-disabled);
- `,
- [
- O(
- 'base-selection-input',
- `
- cursor: not-allowed;
- color: var(--n-text-color-disabled);
- `
- ),
- V(
- 'render-label',
- `
- color: var(--n-text-color-disabled);
- `
- )
- ]
- ),
- O(
- 'base-selection-tags',
- `
- cursor: not-allowed;
- background-color: var(--n-color-disabled);
- `
- ),
- O(
- 'base-selection-placeholder',
- `
- cursor: not-allowed;
- color: var(--n-placeholder-color-disabled);
- `
- )
- ]),
- O(
- 'base-selection-input-tag',
- `
- height: calc(var(--n-height) - 6px);
- line-height: calc(var(--n-height) - 6px);
- outline: none;
- display: none;
- position: relative;
- margin-bottom: 3px;
- max-width: 100%;
- vertical-align: bottom;
- `,
- [
- V(
- 'input',
- `
- font-size: inherit;
- font-family: inherit;
- min-width: 1px;
- padding: 0;
- background-color: #0000;
- outline: none;
- border: none;
- max-width: 100%;
- overflow: hidden;
- width: 1em;
- line-height: inherit;
- cursor: pointer;
- color: var(--n-text-color);
- caret-color: var(--n-caret-color);
- `
- ),
- V(
- 'mirror',
- `
- position: absolute;
- left: 0;
- top: 0;
- white-space: pre;
- visibility: hidden;
- user-select: none;
- -webkit-user-select: none;
- opacity: 0;
- `
- )
- ]
- ),
- ['warning', 'error'].map(e =>
- U(`${e}-status`, [
- V('state-border', `border: var(--n-border-${e});`),
- jt('disabled', [
- F('&:hover', [
- V(
- 'state-border',
- `
- box-shadow: var(--n-box-shadow-hover-${e});
- border: var(--n-border-hover-${e});
- `
- )
- ]),
- U('active', [
- V(
- 'state-border',
- `
- box-shadow: var(--n-box-shadow-active-${e});
- border: var(--n-border-active-${e});
- `
- ),
- O(
- 'base-selection-label',
- `background-color: var(--n-color-active-${e});`
- ),
- O(
- 'base-selection-tags',
- `background-color: var(--n-color-active-${e});`
- )
- ]),
- U('focus', [
- V(
- 'state-border',
- `
- box-shadow: var(--n-box-shadow-focus-${e});
- border: var(--n-border-focus-${e});
- `
- )
- ])
- ])
- ])
- )
- ]
- ),
- O(
- 'base-selection-popover',
- `
- margin-bottom: -3px;
- display: flex;
- flex-wrap: wrap;
- margin-right: -8px;
- `
- ),
- O(
- 'base-selection-tag-wrapper',
- `
- max-width: 100%;
- display: inline-flex;
- padding: 0 7px 3px 0;
- `,
- [
- F('&:last-child', 'padding-right: 0;'),
- O(
- 'tag',
- `
- font-size: 14px;
- max-width: 100%;
- `,
- [
- V(
- 'content',
- `
- line-height: 1.25;
- text-overflow: ellipsis;
- overflow: hidden;
- `
- )
- ]
- )
- ]
- )
- ]),
- dV = Re({
- name: 'InternalSelection',
- props: Object.assign(Object.assign({}, Ke.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 = Z(null),
- n = Z(null),
- r = Z(null),
- o = Z(null),
- i = Z(null),
- a = Z(null),
- s = Z(null),
- c = Z(null),
- d = Z(null),
- f = Z(null),
- v = Z(!1),
- p = Z(!1),
- m = Z(!1),
- g = Ke(
- 'InternalSelection',
- '-internal-selection',
- cV,
- zk,
- e,
- Ee(e, 'clsPrefix')
- ),
- w = I(() => e.clearable && !e.disabled && (m.value || e.active)),
- x = I(() =>
- e.selectedOption
- ? e.renderTag
- ? e.renderTag({ option: e.selectedOption, handleClose: () => {} })
- : e.renderLabel
- ? e.renderLabel(e.selectedOption, !0)
- : _n(e.selectedOption[e.labelField], e.selectedOption, !0)
- : e.placeholder
- ),
- y = I(() => {
- const se = e.selectedOption;
- if (se) return se[e.labelField];
- }),
- C = I(() =>
- e.multiple
- ? !!(Array.isArray(e.selectedOptions) && e.selectedOptions.length)
- : e.selectedOption !== null
- );
- function R() {
- var se;
- const { value: Se } = t;
- if (Se) {
- const { value: Ne } = n;
- Ne &&
- ((Ne.style.width = `${Se.offsetWidth}px`),
- e.maxTagCount !== 'responsive' &&
- ((se = d.value) === null || se === void 0 || se.sync()));
- }
- }
- function S() {
- const { value: se } = f;
- se && (se.style.display = 'none');
- }
- function _() {
- const { value: se } = f;
- se && (se.style.display = 'inline-block');
- }
- $t(Ee(e, 'active'), se => {
- se || S();
- }),
- $t(Ee(e, 'pattern'), () => {
- e.multiple && mn(R);
- });
- function P(se) {
- const { onFocus: Se } = e;
- Se && Se(se);
- }
- function T(se) {
- const { onBlur: Se } = e;
- Se && Se(se);
- }
- function A(se) {
- const { onDeleteOption: Se } = e;
- Se && Se(se);
- }
- function z(se) {
- const { onClear: Se } = e;
- Se && Se(se);
- }
- function k(se) {
- const { onPatternInput: Se } = e;
- Se && Se(se);
- }
- function M(se) {
- var Se;
- (!se.relatedTarget ||
- !(
- !((Se = r.value) === null || Se === void 0) &&
- Se.contains(se.relatedTarget)
- )) &&
- P(se);
- }
- function E(se) {
- var Se;
- (!((Se = r.value) === null || Se === void 0) &&
- Se.contains(se.relatedTarget)) ||
- T(se);
- }
- function D(se) {
- z(se);
- }
- function L() {
- m.value = !0;
- }
- function j() {
- m.value = !1;
- }
- function B(se) {
- !e.active ||
- !e.filterable ||
- (se.target !== n.value && se.preventDefault());
- }
- function q(se) {
- A(se);
- }
- function G(se) {
- if (se.key === 'Backspace' && !ne.value && !e.pattern.length) {
- const { selectedOptions: Se } = e;
- Se != null && Se.length && q(Se[Se.length - 1]);
- }
- }
- const ne = Z(!1);
- let X = null;
- function J(se) {
- const { value: Se } = t;
- if (Se) {
- const Ne = se.target.value;
- (Se.textContent = Ne), R();
- }
- e.ignoreComposition && ne.value ? (X = se) : k(se);
- }
- function re() {
- ne.value = !0;
- }
- function ce() {
- (ne.value = !1), e.ignoreComposition && k(X), (X = null);
- }
- function pe(se) {
- var Se;
- (p.value = !0),
- (Se = e.onPatternFocus) === null || Se === void 0 || Se.call(e, se);
- }
- function Fe(se) {
- var Se;
- (p.value = !1),
- (Se = e.onPatternBlur) === null || Se === void 0 || Se.call(e, se);
- }
- function Ie() {
- var se, Se;
- if (e.filterable)
- (p.value = !1),
- (se = a.value) === null || se === void 0 || se.blur(),
- (Se = n.value) === null || Se === void 0 || Se.blur();
- else if (e.multiple) {
- const { value: Ne } = o;
- Ne == null || Ne.blur();
- } else {
- const { value: Ne } = i;
- Ne == null || Ne.blur();
- }
- }
- function le() {
- var se, Se, Ne;
- e.filterable
- ? ((p.value = !1),
- (se = a.value) === null || se === void 0 || se.focus())
- : e.multiple
- ? (Se = o.value) === null || Se === void 0 || Se.focus()
- : (Ne = i.value) === null || Ne === void 0 || Ne.focus();
- }
- function me() {
- const { value: se } = n;
- se && (_(), se.focus());
- }
- function he() {
- const { value: se } = n;
- se && se.blur();
- }
- function ue(se) {
- const { value: Se } = s;
- Se && Se.setTextContent(`+${se}`);
- }
- function Ae() {
- const { value: se } = c;
- return se;
- }
- function W() {
- return n.value;
- }
- let Q = null;
- function ee() {
- Q !== null && window.clearTimeout(Q);
- }
- function ve() {
- e.disabled ||
- e.active ||
- (ee(),
- (Q = window.setTimeout(() => {
- C.value && (v.value = !0);
- }, 100)));
- }
- function oe() {
- ee();
- }
- function H(se) {
- se || (ee(), (v.value = !1));
- }
- $t(C, se => {
- se || (v.value = !1);
- }),
- Hn(() => {
- Bn(() => {
- const se = a.value;
- se && (se.tabIndex = e.disabled || p.value ? -1 : 0);
- });
- }),
- sP(r, e.onResize);
- const { inlineThemeDisabled: ae } = e,
- ge = I(() => {
- const { size: se } = e,
- {
- common: { cubicBezierEaseInOut: Se },
- self: {
- borderRadius: Ne,
- color: Ge,
- placeholderColor: it,
- textColor: dt,
- paddingSingle: xt,
- paddingMultiple: Me,
- caretColor: ut,
- colorDisabled: wt,
- textColorDisabled: Lt,
- placeholderColorDisabled: ot,
- colorActive: ct,
- boxShadowFocus: Xe,
- boxShadowActive: Qe,
- boxShadowHover: ie,
- border: $e,
- borderFocus: Ue,
- borderHover: lt,
- borderActive: st,
- arrowColor: be,
- arrowColorDisabled: He,
- loadingColor: tt,
- colorActiveWarning: pt,
- boxShadowFocusWarning: _e,
- boxShadowActiveWarning: Ve,
- boxShadowHoverWarning: nt,
- borderWarning: Ot,
- borderFocusWarning: $n,
- borderHoverWarning: jn,
- borderActiveWarning: Zt,
- colorActiveError: we,
- boxShadowFocusError: je,
- boxShadowActiveError: Ct,
- boxShadowHoverError: qt,
- borderError: xe,
- borderFocusError: De,
- borderHoverError: rt,
- borderActiveError: ft,
- clearColor: gt,
- clearColorHover: bn,
- clearColorPressed: ln,
- clearSize: ke,
- arrowSize: Je,
- [Oe('height', se)]: vt,
- [Oe('fontSize', se)]: Ut
- }
- } = g.value;
- return {
- '--n-bezier': Se,
- '--n-border': $e,
- '--n-border-active': st,
- '--n-border-focus': Ue,
- '--n-border-hover': lt,
- '--n-border-radius': Ne,
- '--n-box-shadow-active': Qe,
- '--n-box-shadow-focus': Xe,
- '--n-box-shadow-hover': ie,
- '--n-caret-color': ut,
- '--n-color': Ge,
- '--n-color-active': ct,
- '--n-color-disabled': wt,
- '--n-font-size': Ut,
- '--n-height': vt,
- '--n-padding-single': xt,
- '--n-padding-multiple': Me,
- '--n-placeholder-color': it,
- '--n-placeholder-color-disabled': ot,
- '--n-text-color': dt,
- '--n-text-color-disabled': Lt,
- '--n-arrow-color': be,
- '--n-arrow-color-disabled': He,
- '--n-loading-color': tt,
- '--n-color-active-warning': pt,
- '--n-box-shadow-focus-warning': _e,
- '--n-box-shadow-active-warning': Ve,
- '--n-box-shadow-hover-warning': nt,
- '--n-border-warning': Ot,
- '--n-border-focus-warning': $n,
- '--n-border-hover-warning': jn,
- '--n-border-active-warning': Zt,
- '--n-color-active-error': we,
- '--n-box-shadow-focus-error': je,
- '--n-box-shadow-active-error': Ct,
- '--n-box-shadow-hover-error': qt,
- '--n-border-error': xe,
- '--n-border-focus-error': De,
- '--n-border-hover-error': rt,
- '--n-border-active-error': ft,
- '--n-clear-size': ke,
- '--n-clear-color': gt,
- '--n-clear-color-hover': bn,
- '--n-clear-color-pressed': ln,
- '--n-arrow-size': Je
- };
- }),
- Ce = ae
- ? Mt(
- 'internal-selection',
- I(() => e.size[0]),
- ge,
- e
- )
- : void 0;
- return {
- mergedTheme: g,
- mergedClearable: w,
- patternInputFocused: p,
- filterablePlaceholder: x,
- label: y,
- selected: C,
- showTagsPanel: v,
- isComposing: ne,
- counterRef: s,
- counterWrapperRef: c,
- patternInputMirrorRef: t,
- patternInputRef: n,
- selfRef: r,
- multipleElRef: o,
- singleElRef: i,
- patternInputWrapperRef: a,
- overflowRef: d,
- inputTagElRef: f,
- handleMouseDown: B,
- handleFocusin: M,
- handleClear: D,
- handleMouseEnter: L,
- handleMouseLeave: j,
- handleDeleteOption: q,
- handlePatternKeyDown: G,
- handlePatternInputInput: J,
- handlePatternInputBlur: Fe,
- handlePatternInputFocus: pe,
- handleMouseEnterCounter: ve,
- handleMouseLeaveCounter: oe,
- handleFocusout: E,
- handleCompositionEnd: ce,
- handleCompositionStart: re,
- onPopoverUpdateShow: H,
- focus: le,
- focusInput: me,
- blur: Ie,
- blurInput: he,
- updateCounter: ue,
- getCounter: Ae,
- getTail: W,
- renderLabel: e.renderLabel,
- cssVars: ae ? void 0 : ge,
- themeClass: Ce == null ? void 0 : Ce.themeClass,
- onRender: Ce == null ? void 0 : Ce.onRender
- };
- },
- render() {
- const {
- status: e,
- multiple: t,
- size: n,
- disabled: r,
- filterable: o,
- maxTagCount: i,
- bordered: a,
- clsPrefix: s,
- onRender: c,
- renderTag: d,
- renderLabel: f
- } = this;
- c == null || c();
- const v = i === 'responsive',
- p = typeof i == 'number',
- m = v || p,
- g = h(Vm, null, {
- default: () =>
- h(
- Ok,
- {
- clsPrefix: s,
- loading: this.loading,
- showArrow: this.showArrow,
- showClear: this.mergedClearable && this.selected,
- onClear: this.handleClear
- },
- {
- default: () => {
- var x, y;
- return (y = (x = this.$slots).arrow) === null || y === void 0
- ? void 0
- : y.call(x);
- }
- }
- )
- });
- let w;
- if (t) {
- const { labelField: x } = this,
- y = E =>
- h(
- 'div',
- { class: `${s}-base-selection-tag-wrapper`, key: E.value },
- d
- ? d({
- option: E,
- handleClose: () => {
- this.handleDeleteOption(E);
- }
- })
- : h(
- Ih,
- {
- size: n,
- closable: !E.disabled,
- disabled: r,
- onClose: () => {
- this.handleDeleteOption(E);
- },
- internalCloseIsButtonTag: !1,
- internalCloseFocusable: !1
- },
- { default: () => (f ? f(E, !0) : _n(E[x], E, !0)) }
- )
- ),
- C = () =>
- (p ? this.selectedOptions.slice(0, i) : this.selectedOptions).map(
- y
- ),
- R = o
- ? h(
- 'div',
- {
- class: `${s}-base-selection-input-tag`,
- ref: 'inputTagElRef',
- key: '__input-tag__'
- },
- h(
- 'input',
- Object.assign({}, this.inputProps, {
- ref: 'patternInputRef',
- tabindex: -1,
- disabled: r,
- 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
- })
- ),
- h(
- 'span',
- {
- ref: 'patternInputMirrorRef',
- class: `${s}-base-selection-input-tag__mirror`
- },
- this.pattern
- )
- )
- : null,
- S = v
- ? () =>
- h(
- 'div',
- {
- class: `${s}-base-selection-tag-wrapper`,
- ref: 'counterWrapperRef'
- },
- h(Ih, {
- size: n,
- ref: 'counterRef',
- onMouseenter: this.handleMouseEnterCounter,
- onMouseleave: this.handleMouseLeaveCounter,
- disabled: r
- })
- )
- : void 0;
- let _;
- if (p) {
- const E = this.selectedOptions.length - i;
- E > 0 &&
- (_ = h(
- 'div',
- { class: `${s}-base-selection-tag-wrapper`, key: '__counter__' },
- h(
- Ih,
- {
- size: n,
- ref: 'counterRef',
- onMouseenter: this.handleMouseEnterCounter,
- disabled: r
- },
- { default: () => `+${E}` }
- )
- ));
- }
- const P = v
- ? o
- ? h(
- SC,
- {
- ref: 'overflowRef',
- updateCounter: this.updateCounter,
- getCounter: this.getCounter,
- getTail: this.getTail,
- style: {
- width: '100%',
- display: 'flex',
- overflow: 'hidden'
- }
- },
- { default: C, counter: S, tail: () => R }
- )
- : h(
- SC,
- {
- ref: 'overflowRef',
- updateCounter: this.updateCounter,
- getCounter: this.getCounter,
- style: {
- width: '100%',
- display: 'flex',
- overflow: 'hidden'
- }
- },
- { default: C, counter: S }
- )
- : p
- ? C().concat(_)
- : C(),
- T = m
- ? () =>
- h(
- 'div',
- { class: `${s}-base-selection-popover` },
- v ? C() : this.selectedOptions.map(y)
- )
- : void 0,
- A = m
- ? {
- 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,
- k = (
- this.selected
- ? !1
- : this.active
- ? !this.pattern && !this.isComposing
- : !0
- )
- ? h(
- 'div',
- {
- class: `${s}-base-selection-placeholder ${s}-base-selection-overlay`
- },
- h(
- 'div',
- { class: `${s}-base-selection-placeholder__inner` },
- this.placeholder
- )
- )
- : null,
- M = o
- ? h(
- 'div',
- {
- ref: 'patternInputWrapperRef',
- class: `${s}-base-selection-tags`
- },
- P,
- v ? null : R,
- g
- )
- : h(
- 'div',
- {
- ref: 'multipleElRef',
- class: `${s}-base-selection-tags`,
- tabindex: r ? void 0 : 0
- },
- P,
- g
- );
- w = h(
- on,
- null,
- m
- ? h(
- rd,
- Object.assign({}, A, {
- scrollable: !0,
- style: 'max-height: calc(var(--v-target-height) * 6.6);'
- }),
- { trigger: () => M, default: T }
- )
- : M,
- k
- );
- } else if (o) {
- const x = this.pattern || this.isComposing,
- y = this.active ? !x : !this.selected,
- C = this.active ? !1 : this.selected;
- w = h(
- 'div',
- { ref: 'patternInputWrapperRef', class: `${s}-base-selection-label` },
- h(
- 'input',
- Object.assign({}, this.inputProps, {
- ref: 'patternInputRef',
- class: `${s}-base-selection-input`,
- value: this.active ? this.pattern : '',
- placeholder: '',
- readonly: r,
- disabled: r,
- tabindex: -1,
- autofocus: this.autofocus,
- onFocus: this.handlePatternInputFocus,
- onBlur: this.handlePatternInputBlur,
- onInput: this.handlePatternInputInput,
- onCompositionstart: this.handleCompositionStart,
- onCompositionend: this.handleCompositionEnd
- })
- ),
- C
- ? h(
- 'div',
- {
- class: `${s}-base-selection-label__render-label ${s}-base-selection-overlay`,
- key: 'input'
- },
- h(
- 'div',
- { class: `${s}-base-selection-overlay__wrapper` },
- d
- ? d({ option: this.selectedOption, handleClose: () => {} })
- : f
- ? f(this.selectedOption, !0)
- : _n(this.label, this.selectedOption, !0)
- )
- )
- : null,
- y
- ? h(
- 'div',
- {
- class: `${s}-base-selection-placeholder ${s}-base-selection-overlay`,
- key: 'placeholder'
- },
- h(
- 'div',
- { class: `${s}-base-selection-overlay__wrapper` },
- this.filterablePlaceholder
- )
- )
- : null,
- g
- );
- } else
- w = h(
- 'div',
- {
- ref: 'singleElRef',
- class: `${s}-base-selection-label`,
- tabindex: this.disabled ? void 0 : 0
- },
- this.label !== void 0
- ? h(
- 'div',
- {
- class: `${s}-base-selection-input`,
- title: $R(this.label),
- key: 'input'
- },
- h(
- 'div',
- { class: `${s}-base-selection-input__content` },
- d
- ? d({ option: this.selectedOption, handleClose: () => {} })
- : f
- ? f(this.selectedOption, !0)
- : _n(this.label, this.selectedOption, !0)
- )
- )
- : h(
- 'div',
- {
- class: `${s}-base-selection-placeholder ${s}-base-selection-overlay`,
- key: 'placeholder'
- },
- h(
- 'div',
- { class: `${s}-base-selection-placeholder__inner` },
- this.placeholder
- )
- ),
- g
- );
- return h(
- '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
- },
- w,
- a ? h('div', { class: `${s}-base-selection__border` }) : null,
- a ? h('div', { class: `${s}-base-selection__state-border` }) : null
- );
- }
- }),
- kS = Re({
- 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 = Z(null),
- n = Z(e.value),
- r = Z(e.value),
- o = Z('up'),
- i = Z(!1),
- a = I(() =>
- i.value
- ? `${e.clsPrefix}-base-slot-machine-current-number--${o.value}-scroll`
- : null
- ),
- s = I(() =>
- i.value
- ? `${e.clsPrefix}-base-slot-machine-old-number--${o.value}-scroll`
- : null
- );
- $t(Ee(e, 'value'), (f, v) => {
- (n.value = v), (r.value = f), mn(c);
- });
- function c() {
- const f = e.newOriginalNumber,
- v = e.oldOriginalNumber;
- v === void 0 || f === void 0 || (f > v ? d('up') : v > f && d('down'));
- }
- function d(f) {
- (o.value = f),
- (i.value = !1),
- mn(() => {
- var v;
- (v = t.value) === null || v === void 0 || v.offsetWidth,
- (i.value = !0);
- });
- }
- return () => {
- const { clsPrefix: f } = e;
- return h(
- 'span',
- { ref: t, class: `${f}-base-slot-machine-number` },
- n.value !== null
- ? h(
- 'span',
- {
- class: [
- `${f}-base-slot-machine-old-number ${f}-base-slot-machine-old-number--top`,
- s.value
- ]
- },
- n.value
- )
- : null,
- h(
- 'span',
- { class: [`${f}-base-slot-machine-current-number`, a.value] },
- h(
- 'span',
- {
- ref: 'numberWrapper',
- class: [
- `${f}-base-slot-machine-current-number__inner`,
- typeof e.value != 'number' &&
- `${f}-base-slot-machine-current-number__inner--not-number`
- ]
- },
- r.value
- )
- ),
- n.value !== null
- ? h(
- 'span',
- {
- class: [
- `${f}-base-slot-machine-old-number ${f}-base-slot-machine-old-number--bottom`,
- s.value
- ]
- },
- n.value
- )
- : null
- );
- };
- }
- }),
- { cubicBezierEaseInOut: Ga } = Bo;
- function Ak({ duration: e = '.2s', delay: t = '.1s' } = {}) {
- return [
- F(
- '&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to',
- { opacity: 1 }
- ),
- F(
- '&.fade-in-width-expand-transition-leave-to, &.fade-in-width-expand-transition-enter-from',
- `
- opacity: 0!important;
- margin-left: 0!important;
- margin-right: 0!important;
- `
- ),
- F(
- '&.fade-in-width-expand-transition-leave-active',
- `
- overflow: hidden;
- transition:
- opacity ${e} ${Ga},
- max-width ${e} ${Ga} ${t},
- margin-left ${e} ${Ga} ${t},
- margin-right ${e} ${Ga} ${t};
- `
- ),
- F(
- '&.fade-in-width-expand-transition-enter-active',
- `
- overflow: hidden;
- transition:
- opacity ${e} ${Ga} ${t},
- max-width ${e} ${Ga},
- margin-left ${e} ${Ga},
- margin-right ${e} ${Ga};
- `
- )
- ];
- }
- const { cubicBezierEaseOut: uc } = Bo;
- function uV({ duration: e = '.2s' } = {}) {
- return [
- F('&.fade-up-width-expand-transition-leave-active', {
- transition: `
- opacity ${e} ${uc},
- max-width ${e} ${uc},
- transform ${e} ${uc}
- `
- }),
- F('&.fade-up-width-expand-transition-enter-active', {
- transition: `
- opacity ${e} ${uc},
- max-width ${e} ${uc},
- transform ${e} ${uc}
- `
- }),
- F('&.fade-up-width-expand-transition-enter-to', {
- opacity: 1,
- transform: 'translateX(0) translateY(0)'
- }),
- F('&.fade-up-width-expand-transition-enter-from', {
- maxWidth: '0 !important',
- opacity: 0,
- transform: 'translateY(60%)'
- }),
- F('&.fade-up-width-expand-transition-leave-from', {
- opacity: 1,
- transform: 'translateY(0)'
- }),
- F('&.fade-up-width-expand-transition-leave-to', {
- maxWidth: '0 !important',
- opacity: 0,
- transform: 'translateY(60%)'
- })
- ];
- }
- const fV = F([
- F(
- '@keyframes n-base-slot-machine-fade-up-in',
- `
- from {
- transform: translateY(60%);
- opacity: 0;
- }
- to {
- transform: translateY(0);
- opacity: 1;
- }
- `
- ),
- F(
- '@keyframes n-base-slot-machine-fade-down-in',
- `
- from {
- transform: translateY(-60%);
- opacity: 0;
- }
- to {
- transform: translateY(0);
- opacity: 1;
- }
- `
- ),
- F(
- '@keyframes n-base-slot-machine-fade-up-out',
- `
- from {
- transform: translateY(0%);
- opacity: 1;
- }
- to {
- transform: translateY(-60%);
- opacity: 0;
- }
- `
- ),
- F(
- '@keyframes n-base-slot-machine-fade-down-out',
- `
- from {
- transform: translateY(0%);
- opacity: 1;
- }
- to {
- transform: translateY(60%);
- opacity: 0;
- }
- `
- ),
- O(
- 'base-slot-machine',
- `
- overflow: hidden;
- white-space: nowrap;
- display: inline-block;
- height: 18px;
- line-height: 18px;
- `,
- [
- O(
- 'base-slot-machine-number',
- `
- display: inline-block;
- position: relative;
- height: 18px;
- width: .6em;
- max-width: .6em;
- `,
- [
- uV({ duration: '.2s' }),
- Ak({ duration: '.2s', delay: '0s' }),
- O(
- 'base-slot-machine-old-number',
- `
- display: inline-block;
- opacity: 0;
- position: absolute;
- left: 0;
- right: 0;
- `,
- [
- U('top', { transform: 'translateY(-100%)' }),
- U('bottom', { transform: 'translateY(100%)' }),
- U('down-scroll', {
- animation:
- 'n-base-slot-machine-fade-down-out .2s cubic-bezier(0, 0, .2, 1)',
- animationIterationCount: 1
- }),
- U('up-scroll', {
- animation:
- 'n-base-slot-machine-fade-up-out .2s cubic-bezier(0, 0, .2, 1)',
- animationIterationCount: 1
- })
- ]
- ),
- O(
- 'base-slot-machine-current-number',
- `
- display: inline-block;
- position: absolute;
- left: 0;
- top: 0;
- bottom: 0;
- right: 0;
- opacity: 1;
- transform: translateY(0);
- width: .6em;
- `,
- [
- U('down-scroll', {
- animation:
- 'n-base-slot-machine-fade-down-in .2s cubic-bezier(0, 0, .2, 1)',
- animationIterationCount: 1
- }),
- U('up-scroll', {
- animation:
- 'n-base-slot-machine-fade-up-in .2s cubic-bezier(0, 0, .2, 1)',
- animationIterationCount: 1
- }),
- V(
- 'inner',
- `
- display: inline-block;
- position: absolute;
- right: 0;
- top: 0;
- width: .6em;
- `,
- [
- U(
- 'not-number',
- `
- right: unset;
- left: 0;
- `
- )
- ]
- )
- ]
- )
- ]
- )
- ]
- )
- ]),
- hV = Re({
- 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) {
- Ta('-base-slot-machine', fV, Ee(e, 'clsPrefix'));
- const t = Z(),
- n = Z(),
- r = I(() => {
- if (typeof e.value == 'string') return [];
- if (e.value < 1) return [0];
- const o = [];
- let i = e.value;
- for (e.max !== void 0 && (i = Math.min(e.max, i)); i >= 1; )
- o.push(i % 10), (i /= 10), (i = Math.floor(i));
- return o.reverse(), o;
- });
- return (
- $t(Ee(e, 'value'), (o, i) => {
- typeof o == 'string'
- ? ((n.value = void 0), (t.value = void 0))
- : typeof i == 'string'
- ? ((n.value = o), (t.value = void 0))
- : ((n.value = o), (t.value = i));
- }),
- () => {
- const { value: o, clsPrefix: i } = e;
- return typeof o == 'number'
- ? h(
- 'span',
- { class: `${i}-base-slot-machine` },
- h(
- K0,
- { name: 'fade-up-width-expand-transition', tag: 'span' },
- {
- default: () =>
- r.value.map((a, s) =>
- h(kS, {
- clsPrefix: i,
- key: r.value.length - s - 1,
- oldOriginalNumber: t.value,
- newOriginalNumber: n.value,
- value: a
- })
- )
- }
- ),
- h(
- Cl,
- { key: '+', width: !0 },
- {
- default: () =>
- e.max !== void 0 && e.max < o
- ? h(kS, { clsPrefix: i, value: '+' })
- : null
- }
- )
- )
- : h('span', { class: `${i}-base-slot-machine` }, o);
- }
- );
- }
- }),
- vV = {
- 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'
- },
- pV = e => {
- const {
- lineHeight: t,
- borderRadius: n,
- fontWeightStrong: r,
- baseColor: o,
- dividerColor: i,
- actionColor: a,
- textColor1: s,
- textColor2: c,
- closeColorHover: d,
- closeColorPressed: f,
- closeIconColor: v,
- closeIconColorHover: p,
- closeIconColorPressed: m,
- infoColor: g,
- successColor: w,
- warningColor: x,
- errorColor: y,
- fontSize: C
- } = e;
- return Object.assign(Object.assign({}, vV), {
- fontSize: C,
- lineHeight: t,
- titleFontWeight: r,
- borderRadius: n,
- border: `1px solid ${i}`,
- color: a,
- titleTextColor: s,
- iconColor: c,
- contentTextColor: c,
- closeBorderRadius: n,
- closeColorHover: d,
- closeColorPressed: f,
- closeIconColor: v,
- closeIconColorHover: p,
- closeIconColorPressed: m,
- borderInfo: `1px solid ${At(o, zt(g, { alpha: 0.25 }))}`,
- colorInfo: At(o, zt(g, { alpha: 0.08 })),
- titleTextColorInfo: s,
- iconColorInfo: g,
- contentTextColorInfo: c,
- closeColorHoverInfo: d,
- closeColorPressedInfo: f,
- closeIconColorInfo: v,
- closeIconColorHoverInfo: p,
- closeIconColorPressedInfo: m,
- borderSuccess: `1px solid ${At(o, zt(w, { alpha: 0.25 }))}`,
- colorSuccess: At(o, zt(w, { alpha: 0.08 })),
- titleTextColorSuccess: s,
- iconColorSuccess: w,
- contentTextColorSuccess: c,
- closeColorHoverSuccess: d,
- closeColorPressedSuccess: f,
- closeIconColorSuccess: v,
- closeIconColorHoverSuccess: p,
- closeIconColorPressedSuccess: m,
- borderWarning: `1px solid ${At(o, zt(x, { alpha: 0.33 }))}`,
- colorWarning: At(o, zt(x, { alpha: 0.08 })),
- titleTextColorWarning: s,
- iconColorWarning: x,
- contentTextColorWarning: c,
- closeColorHoverWarning: d,
- closeColorPressedWarning: f,
- closeIconColorWarning: v,
- closeIconColorHoverWarning: p,
- closeIconColorPressedWarning: m,
- borderError: `1px solid ${At(o, zt(y, { alpha: 0.25 }))}`,
- colorError: At(o, zt(y, { alpha: 0.08 })),
- titleTextColorError: s,
- iconColorError: y,
- contentTextColorError: c,
- closeColorHoverError: d,
- closeColorPressedError: f,
- closeIconColorError: v,
- closeIconColorHoverError: p,
- closeIconColorPressedError: m
- });
- },
- gV = { name: 'Alert', common: Nt, self: pV },
- mV = gV,
- {
- cubicBezierEaseInOut: $i,
- cubicBezierEaseOut: bV,
- cubicBezierEaseIn: yV
- } = Bo;
- function Ss({
- overflow: e = 'hidden',
- duration: t = '.3s',
- originalTransition: n = '',
- leavingDelay: r = '0s',
- foldPadding: o = !1,
- enterToProps: i = void 0,
- leaveToProps: a = void 0,
- reverse: s = !1
- } = {}) {
- const c = s ? 'leave' : 'enter',
- d = s ? 'enter' : 'leave';
- return [
- F(
- `&.fade-in-height-expand-transition-${d}-from,
- &.fade-in-height-expand-transition-${c}-to`,
- Object.assign(Object.assign({}, i), { opacity: 1 })
- ),
- F(
- `&.fade-in-height-expand-transition-${d}-to,
- &.fade-in-height-expand-transition-${c}-from`,
- Object.assign(Object.assign({}, a), {
- opacity: 0,
- marginTop: '0 !important',
- marginBottom: '0 !important',
- paddingTop: o ? '0 !important' : void 0,
- paddingBottom: o ? '0 !important' : void 0
- })
- ),
- F(
- `&.fade-in-height-expand-transition-${d}-active`,
- `
- overflow: ${e};
- transition:
- max-height ${t} ${$i} ${r},
- opacity ${t} ${bV} ${r},
- margin-top ${t} ${$i} ${r},
- margin-bottom ${t} ${$i} ${r},
- padding-top ${t} ${$i} ${r},
- padding-bottom ${t} ${$i} ${r}
- ${n ? ',' + n : ''}
- `
- ),
- F(
- `&.fade-in-height-expand-transition-${c}-active`,
- `
- overflow: ${e};
- transition:
- max-height ${t} ${$i},
- opacity ${t} ${yV},
- margin-top ${t} ${$i},
- margin-bottom ${t} ${$i},
- padding-top ${t} ${$i},
- padding-bottom ${t} ${$i}
- ${n ? ',' + n : ''}
- `
- )
- ];
- }
- const xV = O(
- 'alert',
- `
- line-height: var(--n-line-height);
- border-radius: var(--n-border-radius);
- position: relative;
- transition: background-color .3s var(--n-bezier);
- background-color: var(--n-color);
- text-align: start;
- word-break: break-word;
- `,
- [
- V(
- 'border',
- `
- border-radius: inherit;
- position: absolute;
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- transition: border-color .3s var(--n-bezier);
- border: var(--n-border);
- pointer-events: none;
- `
- ),
- U('closable', [
- O('alert-body', [
- V(
- 'title',
- `
- padding-right: 24px;
- `
- )
- ])
- ]),
- V('icon', { color: 'var(--n-icon-color)' }),
- O('alert-body', { padding: 'var(--n-padding)' }, [
- V('title', { color: 'var(--n-title-text-color)' }),
- V('content', { color: 'var(--n-content-text-color)' })
- ]),
- Ss({
- originalTransition: 'transform .3s var(--n-bezier)',
- enterToProps: { transform: 'scale(1)' },
- leaveToProps: { transform: 'scale(0.9)' }
- }),
- V(
- 'icon',
- `
- position: absolute;
- left: 0;
- top: 0;
- align-items: center;
- justify-content: center;
- display: flex;
- width: var(--n-icon-size);
- height: var(--n-icon-size);
- font-size: var(--n-icon-size);
- margin: var(--n-icon-margin);
- `
- ),
- V(
- 'close',
- `
- transition:
- color .3s var(--n-bezier),
- background-color .3s var(--n-bezier);
- position: absolute;
- right: 0;
- top: 0;
- margin: var(--n-close-margin);
- `
- ),
- U('show-icon', [
- O('alert-body', {
- paddingLeft:
- 'calc(var(--n-icon-margin-left) + var(--n-icon-size) + var(--n-icon-margin-right))'
- })
- ]),
- O(
- 'alert-body',
- `
- border-radius: var(--n-border-radius);
- transition: border-color .3s var(--n-bezier);
- `,
- [
- V(
- 'title',
- `
- transition: color .3s var(--n-bezier);
- font-size: 16px;
- line-height: 19px;
- font-weight: var(--n-title-font-weight);
- `,
- [F('& +', [V('content', { marginTop: '9px' })])]
- ),
- V('content', {
- transition: 'color .3s var(--n-bezier)',
- fontSize: 'var(--n-font-size)'
- })
- ]
- ),
- V('icon', { transition: 'color .3s var(--n-bezier)' })
- ]
- ),
- wV = Object.assign(Object.assign({}, Ke.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
- }),
- CV = Re({
- name: 'Alert',
- inheritAttrs: !1,
- props: wV,
- setup(e) {
- const {
- mergedClsPrefixRef: t,
- mergedBorderedRef: n,
- inlineThemeDisabled: r,
- mergedRtlRef: o
- } = yt(e),
- i = Ke('Alert', '-alert', xV, mV, e, t),
- a = dr('Alert', o, t),
- s = I(() => {
- const {
- common: { cubicBezierEaseInOut: m },
- self: g
- } = i.value,
- {
- fontSize: w,
- borderRadius: x,
- titleFontWeight: y,
- lineHeight: C,
- iconSize: R,
- iconMargin: S,
- iconMarginRtl: _,
- closeIconSize: P,
- closeBorderRadius: T,
- closeSize: A,
- closeMargin: z,
- closeMarginRtl: k,
- padding: M
- } = g,
- { type: E } = e,
- { left: D, right: L } = Go(S);
- return {
- '--n-bezier': m,
- '--n-color': g[Oe('color', E)],
- '--n-close-icon-size': P,
- '--n-close-border-radius': T,
- '--n-close-color-hover': g[Oe('closeColorHover', E)],
- '--n-close-color-pressed': g[Oe('closeColorPressed', E)],
- '--n-close-icon-color': g[Oe('closeIconColor', E)],
- '--n-close-icon-color-hover': g[Oe('closeIconColorHover', E)],
- '--n-close-icon-color-pressed': g[Oe('closeIconColorPressed', E)],
- '--n-icon-color': g[Oe('iconColor', E)],
- '--n-border': g[Oe('border', E)],
- '--n-title-text-color': g[Oe('titleTextColor', E)],
- '--n-content-text-color': g[Oe('contentTextColor', E)],
- '--n-line-height': C,
- '--n-border-radius': x,
- '--n-font-size': w,
- '--n-title-font-weight': y,
- '--n-icon-size': R,
- '--n-icon-margin': S,
- '--n-icon-margin-rtl': _,
- '--n-close-size': A,
- '--n-close-margin': z,
- '--n-close-margin-rtl': k,
- '--n-padding': M,
- '--n-icon-margin-left': D,
- '--n-icon-margin-right': L
- };
- }),
- c = r
- ? Mt(
- 'alert',
- I(() => e.type[0]),
- s,
- e
- )
- : void 0,
- d = Z(!0),
- f = () => {
- const { onAfterLeave: m, onAfterHide: g } = e;
- m && m(), g && g();
- };
- return {
- rtlEnabled: a,
- mergedClsPrefix: t,
- mergedBordered: n,
- visible: d,
- handleCloseClick: () => {
- var m;
- Promise.resolve(
- (m = e.onClose) === null || m === void 0 ? void 0 : m.call(e)
- ).then(g => {
- g !== !1 && (d.value = !1);
- });
- },
- handleAfterLeave: () => {
- f();
- },
- mergedTheme: i,
- cssVars: r ? void 0 : s,
- themeClass: c == null ? void 0 : c.themeClass,
- onRender: c == null ? void 0 : c.onRender
- };
- },
- render() {
- var e;
- return (
- (e = this.onRender) === null || e === void 0 || e.call(this),
- h(
- Cl,
- { onAfterLeave: this.handleAfterLeave },
- {
- default: () => {
- const { mergedClsPrefix: t, $slots: n } = this,
- r = {
- 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
- ? h(
- 'div',
- Object.assign({}, qr(this.$attrs, r)),
- this.closable &&
- h(Sl, {
- clsPrefix: t,
- class: `${t}-alert__close`,
- onClick: this.handleCloseClick
- }),
- this.bordered && h('div', { class: `${t}-alert__border` }),
- this.showIcon &&
- h(
- 'div',
- { class: `${t}-alert__icon`, 'aria-hidden': 'true' },
- Kt(n.icon, () => [
- h(
- Et,
- { clsPrefix: t },
- {
- default: () => {
- switch (this.type) {
- case 'success':
- return h(zs, null);
- case 'info':
- return h(bl, null);
- case 'warning':
- return h(As, null);
- case 'error':
- return h(Os, null);
- default:
- return null;
- }
- }
- }
- )
- ])
- ),
- h(
- 'div',
- {
- class: [
- `${t}-alert-body`,
- this.mergedBordered && `${t}-alert-body--bordered`
- ]
- },
- cn(n.header, o => {
- const i = o || this.title;
- return i
- ? h('div', { class: `${t}-alert-body__title` }, i)
- : null;
- }),
- n.default &&
- h('div', { class: `${t}-alert-body__content` }, n)
- )
- )
- : null;
- }
- }
- )
- );
- }
- });
- function sv(e) {
- return e.type === 'group';
- }
- function Ek(e) {
- return e.type === 'ignored';
- }
- function Ng(e, t) {
- try {
- return !!(1 + t.toString().toLowerCase().indexOf(e.trim().toLowerCase()));
- } catch (n) {
- return !1;
- }
- }
- function Mk(e, t) {
- return {
- getIsGroup: sv,
- getIgnored: Ek,
- getKey(r) {
- return sv(r) ? r.name || r.key || 'key-required' : r[e];
- },
- getChildren(r) {
- return r[t];
- }
- };
- }
- function SV(e, t, n, r) {
- if (!t) return e;
- function o(i) {
- if (!Array.isArray(i)) return [];
- const a = [];
- for (const s of i)
- if (sv(s)) {
- const c = o(s[r]);
- c.length && a.push(Object.assign({}, s, { [r]: c }));
- } else {
- if (Ek(s)) continue;
- t(n, s) && a.push(s);
- }
- return a;
- }
- return o(e);
- }
- function _V(e, t, n) {
- const r = new Map();
- return (
- e.forEach(o => {
- sv(o)
- ? o[n].forEach(i => {
- r.set(i[t], i);
- })
- : r.set(o[t], o);
- }),
- r
- );
- }
- const RV = Fo && 'chrome' in window;
- Fo && navigator.userAgent.includes('Firefox');
- const Ik = Fo && navigator.userAgent.includes('Safari') && !RV,
- PV = {
- paddingTiny: '0 8px',
- paddingSmall: '0 10px',
- paddingMedium: '0 12px',
- paddingLarge: '0 14px',
- clearSize: '16px'
- },
- kV = e => {
- const {
- textColor2: t,
- textColor3: n,
- textColorDisabled: r,
- primaryColor: o,
- primaryColorHover: i,
- inputColor: a,
- inputColorDisabled: s,
- borderColor: c,
- warningColor: d,
- warningColorHover: f,
- errorColor: v,
- errorColorHover: p,
- borderRadius: m,
- lineHeight: g,
- fontSizeTiny: w,
- fontSizeSmall: x,
- fontSizeMedium: y,
- fontSizeLarge: C,
- heightTiny: R,
- heightSmall: S,
- heightMedium: _,
- heightLarge: P,
- actionColor: T,
- clearColor: A,
- clearColorHover: z,
- clearColorPressed: k,
- placeholderColor: M,
- placeholderColorDisabled: E,
- iconColor: D,
- iconColorDisabled: L,
- iconColorHover: j,
- iconColorPressed: B
- } = e;
- return Object.assign(Object.assign({}, PV), {
- countTextColorDisabled: r,
- countTextColor: n,
- heightTiny: R,
- heightSmall: S,
- heightMedium: _,
- heightLarge: P,
- fontSizeTiny: w,
- fontSizeSmall: x,
- fontSizeMedium: y,
- fontSizeLarge: C,
- lineHeight: g,
- lineHeightTextarea: g,
- borderRadius: m,
- iconSize: '16px',
- groupLabelColor: T,
- groupLabelTextColor: t,
- textColor: t,
- textColorDisabled: r,
- textDecorationColor: t,
- caretColor: o,
- placeholderColor: M,
- placeholderColorDisabled: E,
- color: a,
- colorDisabled: s,
- colorFocus: a,
- groupLabelBorder: `1px solid ${c}`,
- border: `1px solid ${c}`,
- borderHover: `1px solid ${i}`,
- borderDisabled: `1px solid ${c}`,
- borderFocus: `1px solid ${i}`,
- boxShadowFocus: `0 0 0 2px ${zt(o, { alpha: 0.2 })}`,
- loadingColor: o,
- loadingColorWarning: d,
- borderWarning: `1px solid ${d}`,
- borderHoverWarning: `1px solid ${f}`,
- colorFocusWarning: a,
- borderFocusWarning: `1px solid ${f}`,
- boxShadowFocusWarning: `0 0 0 2px ${zt(d, { alpha: 0.2 })}`,
- caretColorWarning: d,
- loadingColorError: v,
- borderError: `1px solid ${v}`,
- borderHoverError: `1px solid ${p}`,
- colorFocusError: a,
- borderFocusError: `1px solid ${p}`,
- boxShadowFocusError: `0 0 0 2px ${zt(v, { alpha: 0.2 })}`,
- caretColorError: v,
- clearColor: A,
- clearColorHover: z,
- clearColorPressed: k,
- iconColor: D,
- iconColorDisabled: L,
- iconColorHover: j,
- iconColorPressed: B,
- suffixTextColor: t
- });
- },
- TV = { name: 'Input', common: Nt, self: kV },
- Wu = TV,
- Dk = 'n-input';
- function $V(e) {
- let t = 0;
- for (const n of e) t++;
- return t;
- }
- function gh(e) {
- return e === '' || e == null;
- }
- function OV(e) {
- const t = Z(null);
- function n() {
- const { value: i } = e;
- if (!(i != null && i.focus)) {
- o();
- return;
- }
- const { selectionStart: a, selectionEnd: s, value: c } = i;
- if (a == null || s == null) {
- o();
- return;
- }
- t.value = {
- start: a,
- end: s,
- beforeText: c.slice(0, a),
- afterText: c.slice(s)
- };
- }
- function r() {
- var i;
- const { value: a } = t,
- { value: s } = e;
- if (!a || !s) return;
- const { value: c } = s,
- { start: d, beforeText: f, afterText: v } = a;
- let p = c.length;
- if (c.endsWith(v)) p = c.length - v.length;
- else if (c.startsWith(f)) p = f.length;
- else {
- const m = f[d - 1],
- g = c.indexOf(m, d - 1);
- g !== -1 && (p = g + 1);
- }
- (i = s.setSelectionRange) === null || i === void 0 || i.call(s, p, p);
- }
- function o() {
- t.value = null;
- }
- return $t(e, o), { recordCursor: n, restoreCursor: r };
- }
- const TS = Re({
- name: 'InputWordCount',
- setup(e, { slots: t }) {
- const {
- mergedValueRef: n,
- maxlengthRef: r,
- mergedClsPrefixRef: o,
- countGraphemesRef: i
- } = Ze(Dk),
- a = I(() => {
- const { value: s } = n;
- return s === null || Array.isArray(s) ? 0 : (i.value || $V)(s);
- });
- return () => {
- const { value: s } = r,
- { value: c } = n;
- return h(
- 'span',
- { class: `${o.value}-input-word-count` },
- jI(
- t.default,
- { value: c === null || Array.isArray(c) ? '' : c },
- () => [s === void 0 ? a.value : `${a.value} / ${s}`]
- )
- );
- };
- }
- }),
- zV = O(
- 'input',
- `
- max-width: 100%;
- cursor: text;
- line-height: 1.5;
- z-index: auto;
- outline: none;
- box-sizing: border-box;
- position: relative;
- display: inline-flex;
- border-radius: var(--n-border-radius);
- background-color: var(--n-color);
- transition: background-color .3s var(--n-bezier);
- font-size: var(--n-font-size);
- --n-padding-vertical: calc((var(--n-height) - 1.5 * var(--n-font-size)) / 2);
- `,
- [
- V(
- 'input, textarea',
- `
- overflow: hidden;
- flex-grow: 1;
- position: relative;
- `
- ),
- V(
- 'input-el, textarea-el, input-mirror, textarea-mirror, separator, placeholder',
- `
- box-sizing: border-box;
- font-size: inherit;
- line-height: 1.5;
- font-family: inherit;
- border: none;
- outline: none;
- background-color: #0000;
- text-align: inherit;
- transition:
- -webkit-text-fill-color .3s var(--n-bezier),
- caret-color .3s var(--n-bezier),
- color .3s var(--n-bezier),
- text-decoration-color .3s var(--n-bezier);
- `
- ),
- V(
- 'input-el, textarea-el',
- `
- -webkit-appearance: none;
- scrollbar-width: none;
- width: 100%;
- min-width: 0;
- text-decoration-color: var(--n-text-decoration-color);
- color: var(--n-text-color);
- caret-color: var(--n-caret-color);
- background-color: transparent;
- `,
- [
- F(
- '&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb',
- `
- width: 0;
- height: 0;
- display: none;
- `
- ),
- F(
- '&::placeholder',
- `
- color: #0000;
- -webkit-text-fill-color: transparent !important;
- `
- ),
- F('&:-webkit-autofill ~', [V('placeholder', 'display: none;')])
- ]
- ),
- U('round', [jt('textarea', 'border-radius: calc(var(--n-height) / 2);')]),
- V(
- 'placeholder',
- `
- pointer-events: none;
- position: absolute;
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- overflow: hidden;
- color: var(--n-placeholder-color);
- `,
- [
- F(
- 'span',
- `
- width: 100%;
- display: inline-block;
- `
- )
- ]
- ),
- U('textarea', [V('placeholder', 'overflow: visible;')]),
- jt('autosize', 'width: 100%;'),
- U('autosize', [
- V(
- 'textarea-el, input-el',
- `
- position: absolute;
- top: 0;
- left: 0;
- height: 100%;
- `
- )
- ]),
- O(
- 'input-wrapper',
- `
- overflow: hidden;
- display: inline-flex;
- flex-grow: 1;
- position: relative;
- padding-left: var(--n-padding-left);
- padding-right: var(--n-padding-right);
- `
- ),
- V(
- 'input-mirror',
- `
- padding: 0;
- height: var(--n-height);
- line-height: var(--n-height);
- overflow: hidden;
- visibility: hidden;
- position: static;
- white-space: pre;
- pointer-events: none;
- `
- ),
- V(
- 'input-el',
- `
- padding: 0;
- height: var(--n-height);
- line-height: var(--n-height);
- `,
- [
- F('+', [
- V(
- 'placeholder',
- `
- display: flex;
- align-items: center;
- `
- )
- ])
- ]
- ),
- jt('textarea', [V('placeholder', 'white-space: nowrap;')]),
- V(
- 'eye',
- `
- display: flex;
- align-items: center;
- justify-content: center;
- transition: color .3s var(--n-bezier);
- `
- ),
- U('textarea', 'width: 100%;', [
- O(
- 'input-word-count',
- `
- position: absolute;
- right: var(--n-padding-right);
- bottom: var(--n-padding-vertical);
- `
- ),
- U('resizable', [
- O(
- 'input-wrapper',
- `
- resize: vertical;
- min-height: var(--n-height);
- `
- )
- ]),
- V(
- 'textarea-el, textarea-mirror, placeholder',
- `
- height: 100%;
- padding-left: 0;
- padding-right: 0;
- padding-top: var(--n-padding-vertical);
- padding-bottom: var(--n-padding-vertical);
- word-break: break-word;
- display: inline-block;
- vertical-align: bottom;
- box-sizing: border-box;
- line-height: var(--n-line-height-textarea);
- margin: 0;
- resize: none;
- white-space: pre-wrap;
- `
- ),
- V(
- 'textarea-mirror',
- `
- width: 100%;
- pointer-events: none;
- overflow: hidden;
- visibility: hidden;
- position: static;
- white-space: pre-wrap;
- overflow-wrap: break-word;
- `
- )
- ]),
- U('pair', [
- V('input-el, placeholder', 'text-align: center;'),
- V(
- 'separator',
- `
- display: flex;
- align-items: center;
- transition: color .3s var(--n-bezier);
- color: var(--n-text-color);
- white-space: nowrap;
- `,
- [
- O(
- 'icon',
- `
- color: var(--n-icon-color);
- `
- ),
- O(
- 'base-icon',
- `
- color: var(--n-icon-color);
- `
- )
- ]
- )
- ]),
- U(
- 'disabled',
- `
- cursor: not-allowed;
- background-color: var(--n-color-disabled);
- `,
- [
- V('border', 'border: var(--n-border-disabled);'),
- V(
- 'input-el, textarea-el',
- `
- cursor: not-allowed;
- color: var(--n-text-color-disabled);
- text-decoration-color: var(--n-text-color-disabled);
- `
- ),
- V('placeholder', 'color: var(--n-placeholder-color-disabled);'),
- V('separator', 'color: var(--n-text-color-disabled);', [
- O(
- 'icon',
- `
- color: var(--n-icon-color-disabled);
- `
- ),
- O(
- 'base-icon',
- `
- color: var(--n-icon-color-disabled);
- `
- )
- ]),
- O(
- 'input-word-count',
- `
- color: var(--n-count-text-color-disabled);
- `
- ),
- V('suffix, prefix', 'color: var(--n-text-color-disabled);', [
- O(
- 'icon',
- `
- color: var(--n-icon-color-disabled);
- `
- ),
- O(
- 'internal-icon',
- `
- color: var(--n-icon-color-disabled);
- `
- )
- ])
- ]
- ),
- jt('disabled', [
- V(
- 'eye',
- `
- color: var(--n-icon-color);
- cursor: pointer;
- `,
- [
- F(
- '&:hover',
- `
- color: var(--n-icon-color-hover);
- `
- ),
- F(
- '&:active',
- `
- color: var(--n-icon-color-pressed);
- `
- )
- ]
- ),
- F('&:hover', [V('state-border', 'border: var(--n-border-hover);')]),
- U('focus', 'background-color: var(--n-color-focus);', [
- V(
- 'state-border',
- `
- border: var(--n-border-focus);
- box-shadow: var(--n-box-shadow-focus);
- `
- )
- ])
- ]),
- V(
- 'border, state-border',
- `
- box-sizing: border-box;
- position: absolute;
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- pointer-events: none;
- border-radius: inherit;
- border: var(--n-border);
- transition:
- box-shadow .3s var(--n-bezier),
- border-color .3s var(--n-bezier);
- `
- ),
- V(
- 'state-border',
- `
- border-color: #0000;
- z-index: 1;
- `
- ),
- V('prefix', 'margin-right: 4px;'),
- V(
- 'suffix',
- `
- margin-left: 4px;
- `
- ),
- V(
- 'suffix, prefix',
- `
- transition: color .3s var(--n-bezier);
- flex-wrap: nowrap;
- flex-shrink: 0;
- line-height: var(--n-height);
- white-space: nowrap;
- display: inline-flex;
- align-items: center;
- justify-content: center;
- color: var(--n-suffix-text-color);
- `,
- [
- O(
- 'base-loading',
- `
- font-size: var(--n-icon-size);
- margin: 0 2px;
- color: var(--n-loading-color);
- `
- ),
- O(
- 'base-clear',
- `
- font-size: var(--n-icon-size);
- `,
- [
- V('placeholder', [
- O(
- 'base-icon',
- `
- transition: color .3s var(--n-bezier);
- color: var(--n-icon-color);
- font-size: var(--n-icon-size);
- `
- )
- ])
- ]
- ),
- F('>', [
- O(
- 'icon',
- `
- transition: color .3s var(--n-bezier);
- color: var(--n-icon-color);
- font-size: var(--n-icon-size);
- `
- )
- ]),
- O(
- 'base-icon',
- `
- font-size: var(--n-icon-size);
- `
- )
- ]
- ),
- O(
- 'input-word-count',
- `
- pointer-events: none;
- line-height: 1.5;
- font-size: .85em;
- color: var(--n-count-text-color);
- transition: color .3s var(--n-bezier);
- margin-left: 4px;
- font-variant: tabular-nums;
- `
- ),
- ['warning', 'error'].map(e =>
- U(`${e}-status`, [
- jt('disabled', [
- O(
- 'base-loading',
- `
- color: var(--n-loading-color-${e})
- `
- ),
- V(
- 'input-el, textarea-el',
- `
- caret-color: var(--n-caret-color-${e});
- `
- ),
- V(
- 'state-border',
- `
- border: var(--n-border-${e});
- `
- ),
- F('&:hover', [
- V(
- 'state-border',
- `
- border: var(--n-border-hover-${e});
- `
- )
- ]),
- F(
- '&:focus',
- `
- background-color: var(--n-color-focus-${e});
- `,
- [
- V(
- 'state-border',
- `
- box-shadow: var(--n-box-shadow-focus-${e});
- border: var(--n-border-focus-${e});
- `
- )
- ]
- ),
- U(
- 'focus',
- `
- background-color: var(--n-color-focus-${e});
- `,
- [
- V(
- 'state-border',
- `
- box-shadow: var(--n-box-shadow-focus-${e});
- border: var(--n-border-focus-${e});
- `
- )
- ]
- )
- ])
- ])
- )
- ]
- ),
- AV = O('input', [
- U('disabled', [
- V(
- 'input-el, textarea-el',
- `
- -webkit-text-fill-color: var(--n-text-color-disabled);
- `
- )
- ])
- ]),
- EV = Object.assign(Object.assign({}, Ke.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
- }),
- Yi = Re({
- name: 'Input',
- props: EV,
- setup(e) {
- const {
- mergedClsPrefixRef: t,
- mergedBorderedRef: n,
- inlineThemeDisabled: r,
- mergedRtlRef: o
- } = yt(e),
- i = Ke('Input', '-input', zV, Wu, e, t);
- Ik && Ta('-input-safari', AV, t);
- const a = Z(null),
- s = Z(null),
- c = Z(null),
- d = Z(null),
- f = Z(null),
- v = Z(null),
- p = Z(null),
- m = OV(p),
- g = Z(null),
- { localeRef: w } = ka('Input'),
- x = Z(e.defaultValue),
- y = Ee(e, 'value'),
- C = An(y, x),
- R = ei(e),
- { mergedSizeRef: S, mergedDisabledRef: _, mergedStatusRef: P } = R,
- T = Z(!1),
- A = Z(!1),
- z = Z(!1),
- k = Z(!1);
- let M = null;
- const E = I(() => {
- const { placeholder: we, pair: je } = e;
- return je
- ? Array.isArray(we)
- ? we
- : we === void 0
- ? ['', '']
- : [we, we]
- : we === void 0
- ? [w.value.placeholder]
- : [we];
- }),
- D = I(() => {
- const { value: we } = z,
- { value: je } = C,
- { value: Ct } = E;
- return !we && (gh(je) || (Array.isArray(je) && gh(je[0]))) && Ct[0];
- }),
- L = I(() => {
- const { value: we } = z,
- { value: je } = C,
- { value: Ct } = E;
- return !we && Ct[1] && (gh(je) || (Array.isArray(je) && gh(je[1])));
- }),
- j = kt(() => e.internalForceFocus || T.value),
- B = kt(() => {
- if (_.value || e.readonly || !e.clearable || (!j.value && !A.value))
- return !1;
- const { value: we } = C,
- { value: je } = j;
- return e.pair
- ? !!(Array.isArray(we) && (we[0] || we[1])) && (A.value || je)
- : !!we && (A.value || je);
- }),
- q = I(() => {
- const { showPasswordOn: we } = e;
- if (we) return we;
- if (e.showPasswordToggle) return 'click';
- }),
- G = Z(!1),
- ne = I(() => {
- const { textDecoration: we } = e;
- return we
- ? Array.isArray(we)
- ? we.map(je => ({ textDecoration: je }))
- : [{ textDecoration: we }]
- : ['', ''];
- }),
- X = Z(void 0),
- J = () => {
- var we, je;
- if (e.type === 'textarea') {
- const { autosize: Ct } = e;
- if (
- (Ct &&
- (X.value =
- (je =
- (we = g.value) === null || we === void 0
- ? void 0
- : we.$el) === null || je === void 0
- ? void 0
- : je.offsetWidth),
- !s.value || typeof Ct == 'boolean')
- )
- return;
- const {
- paddingTop: qt,
- paddingBottom: xe,
- lineHeight: De
- } = window.getComputedStyle(s.value),
- rt = Number(qt.slice(0, -2)),
- ft = Number(xe.slice(0, -2)),
- gt = Number(De.slice(0, -2)),
- { value: bn } = c;
- if (!bn) return;
- if (Ct.minRows) {
- const ln = Math.max(Ct.minRows, 1),
- ke = `${rt + ft + gt * ln}px`;
- bn.style.minHeight = ke;
- }
- if (Ct.maxRows) {
- const ln = `${rt + ft + gt * Ct.maxRows}px`;
- bn.style.maxHeight = ln;
- }
- }
- },
- re = I(() => {
- const { maxlength: we } = e;
- return we === void 0 ? void 0 : Number(we);
- });
- Hn(() => {
- const { value: we } = C;
- Array.isArray(we) || He(we);
- });
- const ce = _a().proxy;
- function pe(we) {
- const { onUpdateValue: je, 'onUpdate:value': Ct, onInput: qt } = e,
- { nTriggerFormInput: xe } = R;
- je && ze(je, we),
- Ct && ze(Ct, we),
- qt && ze(qt, we),
- (x.value = we),
- xe();
- }
- function Fe(we) {
- const { onChange: je } = e,
- { nTriggerFormChange: Ct } = R;
- je && ze(je, we), (x.value = we), Ct();
- }
- function Ie(we) {
- const { onBlur: je } = e,
- { nTriggerFormBlur: Ct } = R;
- je && ze(je, we), Ct();
- }
- function le(we) {
- const { onFocus: je } = e,
- { nTriggerFormFocus: Ct } = R;
- je && ze(je, we), Ct();
- }
- function me(we) {
- const { onClear: je } = e;
- je && ze(je, we);
- }
- function he(we) {
- const { onInputBlur: je } = e;
- je && ze(je, we);
- }
- function ue(we) {
- const { onInputFocus: je } = e;
- je && ze(je, we);
- }
- function Ae() {
- const { onDeactivate: we } = e;
- we && ze(we);
- }
- function W() {
- const { onActivate: we } = e;
- we && ze(we);
- }
- function Q(we) {
- const { onClick: je } = e;
- je && ze(je, we);
- }
- function ee(we) {
- const { onWrapperFocus: je } = e;
- je && ze(je, we);
- }
- function ve(we) {
- const { onWrapperBlur: je } = e;
- je && ze(je, we);
- }
- function oe() {
- z.value = !0;
- }
- function H(we) {
- (z.value = !1), we.target === v.value ? ae(we, 1) : ae(we, 0);
- }
- function ae(we, je = 0, Ct = 'input') {
- const qt = we.target.value;
- if (
- (He(qt),
- we instanceof InputEvent && !we.isComposing && (z.value = !1),
- e.type === 'textarea')
- ) {
- const { value: De } = g;
- De && De.syncUnifiedContainer();
- }
- if (((M = qt), z.value)) return;
- m.recordCursor();
- const xe = ge(qt);
- if (xe)
- if (!e.pair) Ct === 'input' ? pe(qt) : Fe(qt);
- else {
- let { value: De } = C;
- Array.isArray(De) ? (De = [De[0], De[1]]) : (De = ['', '']),
- (De[je] = qt),
- Ct === 'input' ? pe(De) : Fe(De);
- }
- ce.$forceUpdate(), xe || mn(m.restoreCursor);
- }
- function ge(we) {
- const { countGraphemes: je, maxlength: Ct, minlength: qt } = e;
- if (je) {
- let De;
- if (
- (Ct !== void 0 &&
- (De === void 0 && (De = je(we)), De > Number(Ct))) ||
- (qt !== void 0 && (De === void 0 && (De = je(we)), De < Number(Ct)))
- )
- return !1;
- }
- const { allowInput: xe } = e;
- return typeof xe == 'function' ? xe(we) : !0;
- }
- function Ce(we) {
- he(we),
- we.relatedTarget === a.value && Ae(),
- (we.relatedTarget !== null &&
- (we.relatedTarget === f.value ||
- we.relatedTarget === v.value ||
- we.relatedTarget === s.value)) ||
- (k.value = !1),
- Ge(we, 'blur'),
- (p.value = null);
- }
- function se(we, je) {
- ue(we),
- (T.value = !0),
- (k.value = !0),
- W(),
- Ge(we, 'focus'),
- je === 0
- ? (p.value = f.value)
- : je === 1
- ? (p.value = v.value)
- : je === 2 && (p.value = s.value);
- }
- function Se(we) {
- e.passivelyActivated && (ve(we), Ge(we, 'blur'));
- }
- function Ne(we) {
- e.passivelyActivated && ((T.value = !0), ee(we), Ge(we, 'focus'));
- }
- function Ge(we, je) {
- (we.relatedTarget !== null &&
- (we.relatedTarget === f.value ||
- we.relatedTarget === v.value ||
- we.relatedTarget === s.value ||
- we.relatedTarget === a.value)) ||
- (je === 'focus'
- ? (le(we), (T.value = !0))
- : je === 'blur' && (Ie(we), (T.value = !1)));
- }
- function it(we, je) {
- ae(we, je, 'change');
- }
- function dt(we) {
- Q(we);
- }
- function xt(we) {
- me(we), e.pair ? (pe(['', '']), Fe(['', ''])) : (pe(''), Fe(''));
- }
- function Me(we) {
- const { onMousedown: je } = e;
- je && je(we);
- const { tagName: Ct } = we.target;
- if (Ct !== 'INPUT' && Ct !== 'TEXTAREA') {
- if (e.resizable) {
- const { value: qt } = a;
- if (qt) {
- const {
- left: xe,
- top: De,
- width: rt,
- height: ft
- } = qt.getBoundingClientRect(),
- gt = 14;
- if (
- xe + rt - gt < we.clientX &&
- we.clientX < xe + rt &&
- De + ft - gt < we.clientY &&
- we.clientY < De + ft
- )
- return;
- }
- }
- we.preventDefault(), T.value || ie();
- }
- }
- function ut() {
- var we;
- (A.value = !0),
- e.type === 'textarea' &&
- ((we = g.value) === null ||
- we === void 0 ||
- we.handleMouseEnterWrapper());
- }
- function wt() {
- var we;
- (A.value = !1),
- e.type === 'textarea' &&
- ((we = g.value) === null ||
- we === void 0 ||
- we.handleMouseLeaveWrapper());
- }
- function Lt() {
- _.value || (q.value === 'click' && (G.value = !G.value));
- }
- function ot(we) {
- if (_.value) return;
- we.preventDefault();
- const je = qt => {
- qt.preventDefault(), pn('mouseup', document, je);
- };
- if ((Tn('mouseup', document, je), q.value !== 'mousedown')) return;
- G.value = !0;
- const Ct = () => {
- (G.value = !1), pn('mouseup', document, Ct);
- };
- Tn('mouseup', document, Ct);
- }
- function ct(we) {
- var je;
- switch (
- ((je = e.onKeydown) === null || je === void 0 || je.call(e, we),
- we.key)
- ) {
- case 'Escape':
- Qe();
- break;
- case 'Enter':
- Xe(we);
- break;
- }
- }
- function Xe(we) {
- var je, Ct;
- if (e.passivelyActivated) {
- const { value: qt } = k;
- if (qt) {
- e.internalDeactivateOnEnter && Qe();
- return;
- }
- we.preventDefault(),
- e.type === 'textarea'
- ? (je = s.value) === null || je === void 0 || je.focus()
- : (Ct = f.value) === null || Ct === void 0 || Ct.focus();
- }
- }
- function Qe() {
- e.passivelyActivated &&
- ((k.value = !1),
- mn(() => {
- var we;
- (we = a.value) === null || we === void 0 || we.focus();
- }));
- }
- function ie() {
- var we, je, Ct;
- _.value ||
- (e.passivelyActivated
- ? (we = a.value) === null || we === void 0 || we.focus()
- : ((je = s.value) === null || je === void 0 || je.focus(),
- (Ct = f.value) === null || Ct === void 0 || Ct.focus()));
- }
- function $e() {
- var we;
- !((we = a.value) === null || we === void 0) &&
- we.contains(document.activeElement) &&
- document.activeElement.blur();
- }
- function Ue() {
- var we, je;
- (we = s.value) === null || we === void 0 || we.select(),
- (je = f.value) === null || je === void 0 || je.select();
- }
- function lt() {
- _.value || (s.value ? s.value.focus() : f.value && f.value.focus());
- }
- function st() {
- const { value: we } = a;
- we != null &&
- we.contains(document.activeElement) &&
- we !== document.activeElement &&
- Qe();
- }
- function be(we) {
- if (e.type === 'textarea') {
- const { value: je } = s;
- je == null || je.scrollTo(we);
- } else {
- const { value: je } = f;
- je == null || je.scrollTo(we);
- }
- }
- function He(we) {
- const { type: je, pair: Ct, autosize: qt } = e;
- if (!Ct && qt)
- if (je === 'textarea') {
- const { value: xe } = c;
- xe &&
- (xe.textContent =
- (we != null ? we : '') +
- `\r
- `);
- } else {
- const { value: xe } = d;
- xe && (we ? (xe.textContent = we) : (xe.innerHTML = ' '));
- }
- }
- function tt() {
- J();
- }
- const pt = Z({ top: '0' });
- function _e(we) {
- var je;
- const { scrollTop: Ct } = we.target;
- (pt.value.top = `${-Ct}px`),
- (je = g.value) === null || je === void 0 || je.syncUnifiedContainer();
- }
- let Ve = null;
- Bn(() => {
- const { autosize: we, type: je } = e;
- we && je === 'textarea'
- ? (Ve = $t(C, Ct => {
- !Array.isArray(Ct) && Ct !== M && He(Ct);
- }))
- : Ve == null || Ve();
- });
- let nt = null;
- Bn(() => {
- e.type === 'textarea'
- ? (nt = $t(C, we => {
- var je;
- !Array.isArray(we) &&
- we !== M &&
- ((je = g.value) === null ||
- je === void 0 ||
- je.syncUnifiedContainer());
- }))
- : nt == null || nt();
- }),
- Rt(Dk, {
- mergedValueRef: C,
- maxlengthRef: re,
- mergedClsPrefixRef: t,
- countGraphemesRef: Ee(e, 'countGraphemes')
- });
- const Ot = {
- wrapperElRef: a,
- inputElRef: f,
- textareaElRef: s,
- isCompositing: z,
- focus: ie,
- blur: $e,
- select: Ue,
- deactivate: st,
- activate: lt,
- scrollTo: be
- },
- $n = dr('Input', o, t),
- jn = I(() => {
- const { value: we } = S,
- {
- common: { cubicBezierEaseInOut: je },
- self: {
- color: Ct,
- borderRadius: qt,
- textColor: xe,
- caretColor: De,
- caretColorError: rt,
- caretColorWarning: ft,
- textDecorationColor: gt,
- border: bn,
- borderDisabled: ln,
- borderHover: ke,
- borderFocus: Je,
- placeholderColor: vt,
- placeholderColorDisabled: Ut,
- lineHeightTextarea: dn,
- colorDisabled: nn,
- colorFocus: kr,
- textColorDisabled: Yt,
- boxShadowFocus: On,
- iconSize: So,
- colorFocusWarning: Lo,
- boxShadowFocusWarning: No,
- borderWarning: _o,
- borderFocusWarning: Xr,
- borderHoverWarning: za,
- colorFocusError: Pl,
- boxShadowFocusError: Zr,
- borderError: kl,
- borderFocusError: Tl,
- borderHoverError: Aa,
- clearSize: Ea,
- clearColor: Ma,
- clearColorHover: $l,
- clearColorPressed: Ia,
- iconColor: Ds,
- iconColorDisabled: Da,
- suffixTextColor: Fs,
- countTextColor: Bs,
- countTextColorDisabled: Ls,
- iconColorHover: Ns,
- iconColorPressed: ta,
- loadingColor: ld,
- loadingColorError: Hs,
- loadingColorWarning: Ol,
- [Oe('padding', we)]: zl,
- [Oe('fontSize', we)]: Ci,
- [Oe('height', we)]: js
- }
- } = i.value,
- { left: Us, right: sd } = Go(zl);
- return {
- '--n-bezier': je,
- '--n-count-text-color': Bs,
- '--n-count-text-color-disabled': Ls,
- '--n-color': Ct,
- '--n-font-size': Ci,
- '--n-border-radius': qt,
- '--n-height': js,
- '--n-padding-left': Us,
- '--n-padding-right': sd,
- '--n-text-color': xe,
- '--n-caret-color': De,
- '--n-text-decoration-color': gt,
- '--n-border': bn,
- '--n-border-disabled': ln,
- '--n-border-hover': ke,
- '--n-border-focus': Je,
- '--n-placeholder-color': vt,
- '--n-placeholder-color-disabled': Ut,
- '--n-icon-size': So,
- '--n-line-height-textarea': dn,
- '--n-color-disabled': nn,
- '--n-color-focus': kr,
- '--n-text-color-disabled': Yt,
- '--n-box-shadow-focus': On,
- '--n-loading-color': ld,
- '--n-caret-color-warning': ft,
- '--n-color-focus-warning': Lo,
- '--n-box-shadow-focus-warning': No,
- '--n-border-warning': _o,
- '--n-border-focus-warning': Xr,
- '--n-border-hover-warning': za,
- '--n-loading-color-warning': Ol,
- '--n-caret-color-error': rt,
- '--n-color-focus-error': Pl,
- '--n-box-shadow-focus-error': Zr,
- '--n-border-error': kl,
- '--n-border-focus-error': Tl,
- '--n-border-hover-error': Aa,
- '--n-loading-color-error': Hs,
- '--n-clear-color': Ma,
- '--n-clear-size': Ea,
- '--n-clear-color-hover': $l,
- '--n-clear-color-pressed': Ia,
- '--n-icon-color': Ds,
- '--n-icon-color-hover': Ns,
- '--n-icon-color-pressed': ta,
- '--n-icon-color-disabled': Da,
- '--n-suffix-text-color': Fs
- };
- }),
- Zt = r
- ? Mt(
- 'input',
- I(() => {
- const { value: we } = S;
- return we[0];
- }),
- jn,
- e
- )
- : void 0;
- return Object.assign(Object.assign({}, Ot), {
- wrapperElRef: a,
- inputElRef: f,
- inputMirrorElRef: d,
- inputEl2Ref: v,
- textareaElRef: s,
- textareaMirrorElRef: c,
- textareaScrollbarInstRef: g,
- rtlEnabled: $n,
- uncontrolledValue: x,
- mergedValue: C,
- passwordVisible: G,
- mergedPlaceholder: E,
- showPlaceholder1: D,
- showPlaceholder2: L,
- mergedFocus: j,
- isComposing: z,
- activated: k,
- showClearButton: B,
- mergedSize: S,
- mergedDisabled: _,
- textDecorationStyle: ne,
- mergedClsPrefix: t,
- mergedBordered: n,
- mergedShowPasswordOn: q,
- placeholderStyle: pt,
- mergedStatus: P,
- textAreaScrollContainerWidth: X,
- handleTextAreaScroll: _e,
- handleCompositionStart: oe,
- handleCompositionEnd: H,
- handleInput: ae,
- handleInputBlur: Ce,
- handleInputFocus: se,
- handleWrapperBlur: Se,
- handleWrapperFocus: Ne,
- handleMouseEnter: ut,
- handleMouseLeave: wt,
- handleMouseDown: Me,
- handleChange: it,
- handleClick: dt,
- handleClear: xt,
- handlePasswordToggleClick: Lt,
- handlePasswordToggleMousedown: ot,
- handleWrapperKeydown: ct,
- handleTextAreaMirrorResize: tt,
- getTextareaScrollContainer: () => s.value,
- mergedTheme: i,
- cssVars: r ? void 0 : jn,
- themeClass: Zt == null ? void 0 : Zt.themeClass,
- onRender: Zt == null ? void 0 : Zt.onRender
- });
- },
- render() {
- var e, t;
- const {
- mergedClsPrefix: n,
- mergedStatus: r,
- themeClass: o,
- type: i,
- countGraphemes: a,
- onRender: s
- } = this,
- c = this.$slots;
- return (
- s == null || s(),
- h(
- 'div',
- {
- ref: 'wrapperElRef',
- class: [
- `${n}-input`,
- o,
- r && `${n}-input--${r}-status`,
- {
- [`${n}-input--rtl`]: this.rtlEnabled,
- [`${n}-input--disabled`]: this.mergedDisabled,
- [`${n}-input--textarea`]: i === 'textarea',
- [`${n}-input--resizable`]: this.resizable && !this.autosize,
- [`${n}-input--autosize`]: this.autosize,
- [`${n}-input--round`]: this.round && i !== 'textarea',
- [`${n}-input--pair`]: this.pair,
- [`${n}-input--focus`]: this.mergedFocus,
- [`${n}-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
- },
- h(
- 'div',
- { class: `${n}-input-wrapper` },
- cn(
- c.prefix,
- d => d && h('div', { class: `${n}-input__prefix` }, d)
- ),
- i === 'textarea'
- ? h(
- yr,
- {
- ref: 'textareaScrollbarInstRef',
- class: `${n}-input__textarea`,
- container: this.getTextareaScrollContainer,
- triggerDisplayManually: !0,
- useUnifiedContainer: !0,
- internalHoistYRail: !0
- },
- {
- default: () => {
- var d, f;
- const { textAreaScrollContainerWidth: v } = this,
- p = { width: this.autosize && v && `${v}px` };
- return h(
- on,
- null,
- h(
- 'textarea',
- Object.assign({}, this.inputProps, {
- ref: 'textareaElRef',
- class: [
- `${n}-input__textarea-el`,
- (d = this.inputProps) === null || d === void 0
- ? void 0
- : d.class
- ],
- autofocus: this.autofocus,
- rows: Number(this.rows),
- placeholder: this.placeholder,
- value: this.mergedValue,
- disabled: this.mergedDisabled,
- maxlength: a ? void 0 : this.maxlength,
- minlength: a ? void 0 : this.minlength,
- readonly: this.readonly,
- tabindex:
- this.passivelyActivated && !this.activated
- ? -1
- : void 0,
- style: [
- this.textDecorationStyle[0],
- (f = this.inputProps) === null || f === void 0
- ? void 0
- : f.style,
- p
- ],
- onBlur: this.handleInputBlur,
- onFocus: m => {
- this.handleInputFocus(m, 2);
- },
- onInput: this.handleInput,
- onChange: this.handleChange,
- onScroll: this.handleTextAreaScroll
- })
- ),
- this.showPlaceholder1
- ? h(
- 'div',
- {
- class: `${n}-input__placeholder`,
- style: [this.placeholderStyle, p],
- key: 'placeholder'
- },
- this.mergedPlaceholder[0]
- )
- : null,
- this.autosize
- ? h(
- Ki,
- { onResize: this.handleTextAreaMirrorResize },
- {
- default: () =>
- h('div', {
- ref: 'textareaMirrorElRef',
- class: `${n}-input__textarea-mirror`,
- key: 'mirror'
- })
- }
- )
- : null
- );
- }
- }
- )
- : h(
- 'div',
- { class: `${n}-input__input` },
- h(
- 'input',
- Object.assign(
- {
- type:
- i === 'password' &&
- this.mergedShowPasswordOn &&
- this.passwordVisible
- ? 'text'
- : i
- },
- this.inputProps,
- {
- ref: 'inputElRef',
- class: [
- `${n}-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: a ? void 0 : this.maxlength,
- minlength: a ? 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: d => {
- this.handleInputFocus(d, 0);
- },
- onInput: d => {
- this.handleInput(d, 0);
- },
- onChange: d => {
- this.handleChange(d, 0);
- }
- }
- )
- ),
- this.showPlaceholder1
- ? h(
- 'div',
- { class: `${n}-input__placeholder` },
- h('span', null, this.mergedPlaceholder[0])
- )
- : null,
- this.autosize
- ? h(
- 'div',
- {
- class: `${n}-input__input-mirror`,
- key: 'mirror',
- ref: 'inputMirrorElRef'
- },
- ' '
- )
- : null
- ),
- !this.pair &&
- cn(c.suffix, d =>
- d ||
- this.clearable ||
- this.showCount ||
- this.mergedShowPasswordOn ||
- this.loading !== void 0
- ? h('div', { class: `${n}-input__suffix` }, [
- cn(
- c['clear-icon-placeholder'],
- f =>
- (this.clearable || f) &&
- h(
- ub,
- {
- clsPrefix: n,
- show: this.showClearButton,
- onClear: this.handleClear
- },
- {
- placeholder: () => f,
- icon: () => {
- var v, p;
- return (p = (v = this.$slots)['clear-icon']) ===
- null || p === void 0
- ? void 0
- : p.call(v);
- }
- }
- )
- ),
- this.internalLoadingBeforeSuffix ? null : d,
- this.loading !== void 0
- ? h(Ok, {
- clsPrefix: n,
- loading: this.loading,
- showArrow: !1,
- showClear: !1,
- style: this.cssVars
- })
- : null,
- this.internalLoadingBeforeSuffix ? d : null,
- this.showCount && this.type !== 'textarea'
- ? h(TS, null, {
- default: f => {
- var v;
- return (v = c.count) === null || v === void 0
- ? void 0
- : v.call(c, f);
- }
- })
- : null,
- this.mergedShowPasswordOn && this.type === 'password'
- ? h(
- 'div',
- {
- class: `${n}-input__eye`,
- onMousedown: this.handlePasswordToggleMousedown,
- onClick: this.handlePasswordToggleClick
- },
- this.passwordVisible
- ? Kt(c['password-visible-icon'], () => [
- h(
- Et,
- { clsPrefix: n },
- { default: () => h(bk, null) }
- )
- ])
- : Kt(c['password-invisible-icon'], () => [
- h(
- Et,
- { clsPrefix: n },
- { default: () => h(MU, null) }
- )
- ])
- )
- : null
- ])
- : null
- )
- ),
- this.pair
- ? h(
- 'span',
- { class: `${n}-input__separator` },
- Kt(c.separator, () => [this.separator])
- )
- : null,
- this.pair
- ? h(
- 'div',
- { class: `${n}-input-wrapper` },
- h(
- 'div',
- { class: `${n}-input__input` },
- h('input', {
- ref: 'inputEl2Ref',
- type: this.type,
- class: `${n}-input__input-el`,
- tabindex:
- this.passivelyActivated && !this.activated ? -1 : void 0,
- placeholder: this.mergedPlaceholder[1],
- disabled: this.mergedDisabled,
- maxlength: a ? void 0 : this.maxlength,
- minlength: a ? 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: d => {
- this.handleInputFocus(d, 1);
- },
- onInput: d => {
- this.handleInput(d, 1);
- },
- onChange: d => {
- this.handleChange(d, 1);
- }
- }),
- this.showPlaceholder2
- ? h(
- 'div',
- { class: `${n}-input__placeholder` },
- h('span', null, this.mergedPlaceholder[1])
- )
- : null
- ),
- cn(
- c.suffix,
- d =>
- (this.clearable || d) &&
- h('div', { class: `${n}-input__suffix` }, [
- this.clearable &&
- h(
- ub,
- {
- clsPrefix: n,
- show: this.showClearButton,
- onClear: this.handleClear
- },
- {
- icon: () => {
- var f;
- return (f = c['clear-icon']) === null ||
- f === void 0
- ? void 0
- : f.call(c);
- },
- placeholder: () => {
- var f;
- return (f = c['clear-icon-placeholder']) ===
- null || f === void 0
- ? void 0
- : f.call(c);
- }
- }
- ),
- d
- ])
- )
- )
- : null,
- this.mergedBordered
- ? h('div', { class: `${n}-input__border` })
- : null,
- this.mergedBordered
- ? h('div', { class: `${n}-input__state-border` })
- : null,
- this.showCount && i === 'textarea'
- ? h(TS, null, {
- default: d => {
- var f;
- const { renderCount: v } = this;
- return v
- ? v(d)
- : (f = c.count) === null || f === void 0
- ? void 0
- : f.call(c, d);
- }
- })
- : null
- )
- );
- }
- }),
- MV = O(
- 'input-group',
- `
- display: inline-flex;
- width: 100%;
- flex-wrap: nowrap;
- vertical-align: bottom;
- `,
- [
- F('>', [
- O('input', [
- F(
- '&:not(:last-child)',
- `
- border-top-right-radius: 0!important;
- border-bottom-right-radius: 0!important;
- `
- ),
- F(
- '&:not(:first-child)',
- `
- border-top-left-radius: 0!important;
- border-bottom-left-radius: 0!important;
- margin-left: -1px!important;
- `
- )
- ]),
- O('button', [
- F(
- '&:not(:last-child)',
- `
- border-top-right-radius: 0!important;
- border-bottom-right-radius: 0!important;
- `,
- [
- V(
- 'state-border, border',
- `
- border-top-right-radius: 0!important;
- border-bottom-right-radius: 0!important;
- `
- )
- ]
- ),
- F(
- '&:not(:first-child)',
- `
- border-top-left-radius: 0!important;
- border-bottom-left-radius: 0!important;
- `,
- [
- V(
- 'state-border, border',
- `
- border-top-left-radius: 0!important;
- border-bottom-left-radius: 0!important;
- `
- )
- ]
- )
- ]),
- F('*', [
- F(
- '&:not(:last-child)',
- `
- border-top-right-radius: 0!important;
- border-bottom-right-radius: 0!important;
- `,
- [
- F('>', [
- O(
- 'input',
- `
- border-top-right-radius: 0!important;
- border-bottom-right-radius: 0!important;
- `
- ),
- O('base-selection', [
- O(
- 'base-selection-label',
- `
- border-top-right-radius: 0!important;
- border-bottom-right-radius: 0!important;
- `
- ),
- O(
- 'base-selection-tags',
- `
- border-top-right-radius: 0!important;
- border-bottom-right-radius: 0!important;
- `
- ),
- V(
- 'box-shadow, border, state-border',
- `
- border-top-right-radius: 0!important;
- border-bottom-right-radius: 0!important;
- `
- )
- ])
- ])
- ]
- ),
- F(
- '&:not(:first-child)',
- `
- margin-left: -1px!important;
- border-top-left-radius: 0!important;
- border-bottom-left-radius: 0!important;
- `,
- [
- F('>', [
- O(
- 'input',
- `
- border-top-left-radius: 0!important;
- border-bottom-left-radius: 0!important;
- `
- ),
- O('base-selection', [
- O(
- 'base-selection-label',
- `
- border-top-left-radius: 0!important;
- border-bottom-left-radius: 0!important;
- `
- ),
- O(
- 'base-selection-tags',
- `
- border-top-left-radius: 0!important;
- border-bottom-left-radius: 0!important;
- `
- ),
- V(
- 'box-shadow, border, state-border',
- `
- border-top-left-radius: 0!important;
- border-bottom-left-radius: 0!important;
- `
- )
- ])
- ])
- ]
- )
- ])
- ])
- ]
- ),
- IV = {},
- DV = Re({
- name: 'InputGroup',
- props: IV,
- setup(e) {
- const { mergedClsPrefixRef: t } = yt(e);
- return Ta('-input-group', MV, t), { mergedClsPrefix: t };
- },
- render() {
- const { mergedClsPrefix: e } = this;
- return h('div', { class: `${e}-input-group` }, this.$slots);
- }
- }),
- Dh = Fo && 'loading' in document.createElement('img'),
- FV = (e = {}) => {
- var t;
- const { root: n = 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 n == 'string' ? document.querySelector(n) : n) ||
- document.documentElement
- })
- };
- },
- Hg = new WeakMap(),
- jg = new WeakMap(),
- Ug = new WeakMap(),
- Fk = (e, t, n) => {
- if (!e) return () => {};
- const r = FV(t),
- { root: o } = r.options;
- let i;
- const a = Hg.get(o);
- a ? (i = a) : ((i = new Map()), Hg.set(o, i));
- let s, c;
- i.has(r.hash)
- ? ((c = i.get(r.hash)),
- c[1].has(e) || ((s = c[0]), c[1].add(e), s.observe(e)))
- : ((s = new IntersectionObserver(v => {
- v.forEach(p => {
- if (p.isIntersecting) {
- const m = jg.get(p.target),
- g = Ug.get(p.target);
- m && m(), g && (g.value = !0);
- }
- });
- }, r.options)),
- s.observe(e),
- (c = [s, new Set([e])]),
- i.set(r.hash, c));
- let d = !1;
- const f = () => {
- d ||
- (jg.delete(e),
- Ug.delete(e),
- (d = !0),
- c[1].has(e) && (c[0].unobserve(e), c[1].delete(e)),
- c[1].size <= 0 && i.delete(r.hash),
- i.size || Hg.delete(o));
- };
- return jg.set(e, f), Ug.set(e, n), f;
- },
- BV = e => {
- const {
- borderRadius: t,
- avatarColor: n,
- cardColor: r,
- fontSize: o,
- heightTiny: i,
- heightSmall: a,
- heightMedium: s,
- heightLarge: c,
- heightHuge: d,
- modalColor: f,
- popoverColor: v
- } = e;
- return {
- borderRadius: t,
- fontSize: o,
- border: `2px solid ${r}`,
- heightTiny: i,
- heightSmall: a,
- heightMedium: s,
- heightLarge: c,
- heightHuge: d,
- color: At(r, n),
- colorModal: At(f, n),
- colorPopover: At(v, n)
- };
- },
- LV = { name: 'Avatar', common: Nt, self: BV },
- NV = LV,
- HV = 'n-avatar-group',
- jV = O(
- 'avatar',
- `
- width: var(--n-merged-size);
- height: var(--n-merged-size);
- color: #FFF;
- font-size: var(--n-font-size);
- display: inline-flex;
- position: relative;
- overflow: hidden;
- text-align: center;
- border: var(--n-border);
- border-radius: var(--n-border-radius);
- --n-merged-color: var(--n-color);
- background-color: var(--n-merged-color);
- transition:
- border-color .3s var(--n-bezier),
- background-color .3s var(--n-bezier),
- color .3s var(--n-bezier);
- `,
- [
- xl(F('&', '--n-merged-color: var(--n-color-modal);')),
- Ps(F('&', '--n-merged-color: var(--n-color-popover);')),
- F(
- 'img',
- `
- width: 100%;
- height: 100%;
- `
- ),
- V(
- 'text',
- `
- white-space: nowrap;
- display: inline-block;
- position: absolute;
- left: 50%;
- top: 50%;
- `
- ),
- O(
- 'icon',
- `
- vertical-align: bottom;
- font-size: calc(var(--n-merged-size) - 6px);
- `
- ),
- V('text', 'line-height: 1.25')
- ]
- ),
- UV = Object.assign(Object.assign({}, Ke.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
- }),
- WV = Re({
- name: 'Avatar',
- props: UV,
- setup(e) {
- const { mergedClsPrefixRef: t, inlineThemeDisabled: n } = yt(e),
- r = Z(!1);
- let o = null;
- const i = Z(null),
- a = Z(null),
- s = () => {
- const { value: R } = i;
- if (R && (o === null || o !== R.innerHTML)) {
- o = R.innerHTML;
- const { value: S } = a;
- if (S) {
- const { offsetWidth: _, offsetHeight: P } = S,
- { offsetWidth: T, offsetHeight: A } = R,
- z = 0.9,
- k = Math.min((_ / T) * z, (P / A) * z, 1);
- R.style.transform = `translateX(-50%) translateY(-50%) scale(${k})`;
- }
- }
- },
- c = Ze(HV, null),
- d = I(() => {
- const { size: R } = e;
- if (R) return R;
- const { size: S } = c || {};
- return S || 'medium';
- }),
- f = Ke('Avatar', '-avatar', jV, NV, e, t),
- v = Ze($k, null),
- p = I(() => {
- if (c) return !0;
- const { round: R, circle: S } = e;
- return R !== void 0 || S !== void 0
- ? R || S
- : v
- ? v.roundRef.value
- : !1;
- }),
- m = I(() => (c ? !0 : e.bordered || !1)),
- g = R => {
- var S;
- if (!y.value) return;
- r.value = !0;
- const { onError: _, imgProps: P } = e;
- (S = P == null ? void 0 : P.onError) === null ||
- S === void 0 ||
- S.call(P, R),
- _ && _(R);
- };
- $t(
- () => e.src,
- () => (r.value = !1)
- );
- const w = I(() => {
- const R = d.value,
- S = p.value,
- _ = m.value,
- { color: P } = e,
- {
- self: {
- borderRadius: T,
- fontSize: A,
- color: z,
- border: k,
- colorModal: M,
- colorPopover: E
- },
- common: { cubicBezierEaseInOut: D }
- } = f.value;
- let L;
- return (
- typeof R == 'number'
- ? (L = `${R}px`)
- : (L = f.value.self[Oe('height', R)]),
- {
- '--n-font-size': A,
- '--n-border': _ ? k : 'none',
- '--n-border-radius': S ? '50%' : T,
- '--n-color': P || z,
- '--n-color-modal': P || M,
- '--n-color-popover': P || E,
- '--n-bezier': D,
- '--n-merged-size': `var(--n-avatar-size-override, ${L})`
- }
- );
- }),
- x = n
- ? Mt(
- 'avatar',
- I(() => {
- const R = d.value,
- S = p.value,
- _ = m.value,
- { color: P } = e;
- let T = '';
- return (
- R && (typeof R == 'number' ? (T += `a${R}`) : (T += R[0])),
- S && (T += 'b'),
- _ && (T += 'c'),
- P && (T += zc(P)),
- T
- );
- }),
- w,
- e
- )
- : void 0,
- y = Z(!e.lazy);
- Hn(() => {
- if (Dh) return;
- let R;
- const S = Bn(() => {
- R == null || R(),
- (R = void 0),
- e.lazy && (R = Fk(a.value, e.intersectionObserverOptions, y));
- });
- qn(() => {
- S(), R == null || R();
- });
- });
- const C = Z(!e.lazy);
- return {
- textRef: i,
- selfRef: a,
- mergedRoundRef: p,
- mergedClsPrefix: t,
- fitTextTransform: s,
- cssVars: n ? void 0 : w,
- themeClass: x == null ? void 0 : x.themeClass,
- onRender: x == null ? void 0 : x.onRender,
- hasLoadError: r,
- handleError: g,
- shouldStartLoading: y,
- loaded: C,
- mergedOnLoad: R => {
- var S;
- const { onLoad: _, imgProps: P } = e;
- _ == null || _(R),
- (S = P == null ? void 0 : P.onLoad) === null ||
- S === void 0 ||
- S.call(P, R),
- (C.value = !0);
- }
- };
- },
- render() {
- var e, t;
- const {
- $slots: n,
- src: r,
- mergedClsPrefix: o,
- lazy: i,
- onRender: a,
- mergedOnLoad: s,
- shouldStartLoading: c,
- loaded: d,
- hasLoadError: f
- } = this;
- a == null || a();
- let v;
- const p =
- !d &&
- !f &&
- (this.renderPlaceholder
- ? this.renderPlaceholder()
- : (t = (e = this.$slots).placeholder) === null || t === void 0
- ? void 0
- : t.call(e));
- return (
- this.hasLoadError
- ? (v = this.renderFallback
- ? this.renderFallback()
- : Kt(n.fallback, () => [
- h('img', {
- src: this.fallbackSrc,
- style: { objectFit: this.objectFit }
- })
- ]))
- : (v = cn(n.default, m => {
- if (m)
- return h(
- Ki,
- { onResize: this.fitTextTransform },
- {
- default: () =>
- h(
- 'span',
- { ref: 'textRef', class: `${o}-avatar__text` },
- m
- )
- }
- );
- if (r) {
- const { imgProps: g } = this;
- return h(
- 'img',
- Object.assign(Object.assign({}, g), {
- loading:
- Dh && !this.intersectionObserverOptions && i
- ? 'lazy'
- : 'eager',
- src: Dh || c || d ? r : void 0,
- onLoad: s,
- 'data-image-src': r,
- onError: this.handleError,
- style: [
- g == null ? void 0 : g.style,
- { objectFit: this.objectFit },
- p
- ? {
- height: '0',
- width: '0',
- visibility: 'hidden',
- position: 'absolute'
- }
- : ''
- ]
- })
- );
- }
- })),
- h(
- 'span',
- {
- ref: 'selfRef',
- class: [`${o}-avatar`, this.themeClass],
- style: this.cssVars
- },
- v,
- i && p
- )
- );
- }
- }),
- VV = {
- width: '44px',
- height: '44px',
- borderRadius: '22px',
- iconSize: '26px'
- },
- KV = e => {
- const {
- popoverColor: t,
- textColor2: n,
- primaryColorHover: r,
- primaryColorPressed: o
- } = e;
- return Object.assign(Object.assign({}, VV), {
- color: t,
- textColor: n,
- iconColor: n,
- iconColorHover: r,
- 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)'
- });
- },
- qV = { name: 'BackTop', common: Nt, self: KV },
- YV = qV,
- GV = h(
- 'svg',
- {
- viewBox: '0 0 24 24',
- version: '1.1',
- xmlns: 'http://www.w3.org/2000/svg',
- xlinkHref: 'http://www.w3.org/1999/xlink'
- },
- h(
- 'g',
- { stroke: 'none', 'stroke-width': '1', 'fill-rule': 'evenodd' },
- h(
- 'g',
- {
- transform: 'translate(-139.000000, -4423.000000)',
- 'fill-rule': 'nonzero'
- },
- h(
- 'g',
- { transform: 'translate(120.000000, 4285.000000)' },
- h(
- 'g',
- { transform: 'translate(7.000000, 126.000000)' },
- h(
- 'g',
- {
- transform:
- 'translate(24.000000, 24.000000) scale(1, -1) translate(-24.000000, -24.000000) translate(12.000000, 12.000000)'
- },
- h(
- 'g',
- { transform: 'translate(4.000000, 2.000000)' },
- h('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'
- }),
- h('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'
- })
- )
- )
- )
- )
- )
- )
- ),
- XV = O(
- 'back-top',
- `
- position: fixed;
- right: 40px;
- bottom: 40px;
- cursor: pointer;
- display: flex;
- align-items: center;
- justify-content: center;
- color: var(--n-text-color);
- transition:
- color .3s var(--n-bezier),
- box-shadow .3s var(--n-bezier),
- background-color .3s var(--n-bezier);
- border-radius: var(--n-border-radius);
- height: var(--n-height);
- min-width: var(--n-width);
- box-shadow: var(--n-box-shadow);
- background-color: var(--n-color);
- `,
- [
- gi(),
- U('transition-disabled', { transition: 'none !important' }),
- O(
- 'base-icon',
- `
- font-size: var(--n-icon-size);
- color: var(--n-icon-color);
- transition: color .3s var(--n-bezier);
- `
- ),
- F('svg', { pointerEvents: 'none' }),
- F('&:hover', { boxShadow: 'var(--n-box-shadow-hover)' }, [
- O('base-icon', { color: 'var(--n-icon-color-hover)' })
- ]),
- F('&:active', { boxShadow: 'var(--n-box-shadow-pressed)' }, [
- O('base-icon', { color: 'var(--n-icon-color-pressed)' })
- ])
- ]
- ),
- ZV = Object.assign(Object.assign({}, Ke.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
- }),
- QV = Re({
- name: 'BackTop',
- inheritAttrs: !1,
- props: ZV,
- setup(e) {
- const { mergedClsPrefixRef: t, inlineThemeDisabled: n } = yt(e),
- r = Z(null),
- o = Z(!1);
- Bn(() => {
- const { value: S } = r;
- if (S === null) {
- o.value = !1;
- return;
- }
- o.value = S >= e.visibilityHeight;
- });
- const i = Z(!1);
- $t(o, S => {
- var _;
- i.value &&
- ((_ = e['onUpdate:show']) === null || _ === void 0 || _.call(e, S));
- });
- const a = Ee(e, 'show'),
- s = An(a, o),
- c = Z(!0),
- d = Z(null),
- f = I(() => ({
- right: `calc(${vn(e.right)} + ${Xm.value})`,
- bottom: vn(e.bottom)
- }));
- let v, p;
- $t(s, S => {
- var _, P;
- i.value &&
- (S && ((_ = e.onShow) === null || _ === void 0 || _.call(e)),
- (P = e.onHide) === null || P === void 0 || P.call(e));
- });
- const m = Ke('BackTop', '-back-top', XV, YV, e, t);
- function g() {
- var S;
- if (p) return;
- p = !0;
- const _ =
- ((S = e.target) === null || S === void 0 ? void 0 : S.call(e)) ||
- zI(e.listenTo) ||
- kR(d.value);
- if (!_) return;
- v = _ === document.documentElement ? document : _;
- const { to: P } = e;
- typeof P == 'string' && document.querySelector(P),
- v.addEventListener('scroll', x),
- x();
- }
- function w() {
- (OC(v) ? document.documentElement : v).scrollTo({
- top: 0,
- behavior: 'smooth'
- });
- }
- function x() {
- (r.value = (OC(v) ? document.documentElement : v).scrollTop),
- i.value ||
- mn(() => {
- i.value = !0;
- });
- }
- function y() {
- c.value = !1;
- }
- Hn(() => {
- g(), (c.value = s.value);
- }),
- qn(() => {
- v && v.removeEventListener('scroll', x);
- });
- const C = I(() => {
- const {
- self: {
- color: S,
- boxShadow: _,
- boxShadowHover: P,
- boxShadowPressed: T,
- iconColor: A,
- iconColorHover: z,
- iconColorPressed: k,
- width: M,
- height: E,
- iconSize: D,
- borderRadius: L,
- textColor: j
- },
- common: { cubicBezierEaseInOut: B }
- } = m.value;
- return {
- '--n-bezier': B,
- '--n-border-radius': L,
- '--n-height': E,
- '--n-width': M,
- '--n-box-shadow': _,
- '--n-box-shadow-hover': P,
- '--n-box-shadow-pressed': T,
- '--n-color': S,
- '--n-icon-size': D,
- '--n-icon-color': A,
- '--n-icon-color-hover': z,
- '--n-icon-color-pressed': k,
- '--n-text-color': j
- };
- }),
- R = n ? Mt('back-top', void 0, C, e) : void 0;
- return {
- placeholderRef: d,
- style: f,
- mergedShow: s,
- isMounted: yi(),
- scrollElement: Z(null),
- scrollTop: r,
- DomInfoReady: i,
- transitionDisabled: c,
- mergedClsPrefix: t,
- handleAfterEnter: y,
- handleScroll: x,
- handleClick: w,
- cssVars: n ? void 0 : C,
- themeClass: R == null ? void 0 : R.themeClass,
- onRender: R == null ? void 0 : R.onRender
- };
- },
- render() {
- const { mergedClsPrefix: e } = this;
- return h(
- 'div',
- {
- ref: 'placeholderRef',
- class: `${e}-back-top-placeholder`,
- style: 'display: none',
- 'aria-hidden': !0
- },
- h(
- ju,
- { to: this.to, show: this.mergedShow },
- {
- default: () =>
- h(
- Kn,
- {
- 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
- ? h(
- 'div',
- qr(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, () => [
- h(Et, { clsPrefix: e }, { default: () => GV })
- ])
- )
- : null
- );
- }
- }
- )
- }
- )
- );
- }
- }),
- JV = e => {
- const {
- errorColor: t,
- infoColor: n,
- successColor: r,
- warningColor: o,
- fontFamily: i
- } = e;
- return {
- color: t,
- colorInfo: n,
- colorSuccess: r,
- colorError: t,
- colorWarning: o,
- fontSize: '12px',
- fontFamily: i
- };
- },
- eK = { name: 'Badge', common: Nt, self: JV },
- tK = eK,
- nK = F([
- F('@keyframes badge-wave-spread', {
- from: { boxShadow: '0 0 0.5px 0px var(--n-ripple-color)', opacity: 0.6 },
- to: { boxShadow: '0 0 0.5px 4.5px var(--n-ripple-color)', opacity: 0 }
- }),
- O(
- 'badge',
- `
- display: inline-flex;
- position: relative;
- vertical-align: middle;
- color: var(--n-color);
- font-family: var(--n-font-family);
- `,
- [
- U('as-is', [
- O('badge-sup', { position: 'static', transform: 'translateX(0)' }, [
- gi({
- transformOrigin: 'left bottom',
- originalTransform: 'translateX(0)'
- })
- ])
- ]),
- U('dot', [
- O(
- 'badge-sup',
- `
- height: 8px;
- width: 8px;
- padding: 0;
- min-width: 8px;
- left: 100%;
- bottom: calc(100% - 4px);
- `,
- [F('::before', 'border-radius: 4px;')]
- )
- ]),
- O(
- 'badge-sup',
- `
- background: var(--n-color);
- transition:
- background-color .3s var(--n-bezier),
- color .3s var(--n-bezier);
- color: #FFF;
- position: absolute;
- height: 18px;
- line-height: 18px;
- border-radius: 9px;
- padding: 0 6px;
- text-align: center;
- font-size: var(--n-font-size);
- transform: translateX(-50%);
- left: 100%;
- bottom: calc(100% - 9px);
- font-variant-numeric: tabular-nums;
- z-index: 1;
- display: flex;
- align-items: center;
- `,
- [
- gi({
- transformOrigin: 'left bottom',
- originalTransform: 'translateX(-50%)'
- }),
- O('base-wave', {
- zIndex: 1,
- animationDuration: '2s',
- animationIterationCount: 'infinite',
- animationDelay: '1s',
- animationTimingFunction: 'var(--n-ripple-bezier)',
- animationName: 'badge-wave-spread'
- }),
- F(
- '&::before',
- `
- opacity: 0;
- transform: scale(1);
- border-radius: 9px;
- content: "";
- position: absolute;
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- `
- )
- ]
- )
- ]
- )
- ]),
- rK = Object.assign(Object.assign({}, Ke.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
- }),
- oK = Re({
- name: 'Badge',
- props: rK,
- setup(e, { slots: t }) {
- const {
- mergedClsPrefixRef: n,
- inlineThemeDisabled: r,
- mergedRtlRef: o
- } = yt(e),
- i = Ke('Badge', '-badge', nK, tK, e, n),
- a = Z(!1),
- s = () => {
- a.value = !0;
- },
- c = () => {
- a.value = !1;
- },
- d = I(
- () =>
- e.show &&
- (e.dot ||
- (e.value !== void 0 && !(!e.showZero && Number(e.value) <= 0)) ||
- !ps(t.value))
- );
- Hn(() => {
- d.value && (a.value = !0);
- });
- const f = dr('Badge', o, n),
- v = I(() => {
- const { type: g, color: w } = e,
- {
- common: { cubicBezierEaseInOut: x, cubicBezierEaseOut: y },
- self: { [Oe('color', g)]: C, fontFamily: R, fontSize: S }
- } = i.value;
- return {
- '--n-font-size': S,
- '--n-font-family': R,
- '--n-color': w || C,
- '--n-ripple-color': w || C,
- '--n-bezier': x,
- '--n-ripple-bezier': y
- };
- }),
- p = r
- ? Mt(
- 'badge',
- I(() => {
- let g = '';
- const { type: w, color: x } = e;
- return w && (g += w[0]), x && (g += zc(x)), g;
- }),
- v,
- e
- )
- : void 0,
- m = I(() => {
- const { offset: g } = e;
- if (!g) return;
- const [w, x] = g,
- y = typeof w == 'number' ? `${w}px` : w,
- C = typeof x == 'number' ? `${x}px` : x;
- return {
- transform: `translate(calc(${
- f != null && f.value ? '50%' : '-50%'
- } + ${y}), ${C})`
- };
- });
- return {
- rtlEnabled: f,
- mergedClsPrefix: n,
- appeared: a,
- showBadge: d,
- handleAfterEnter: s,
- handleAfterLeave: c,
- cssVars: r ? void 0 : v,
- themeClass: p == null ? void 0 : p.themeClass,
- onRender: p == null ? void 0 : p.onRender,
- offsetStyle: m
- };
- },
- render() {
- var e;
- const {
- mergedClsPrefix: t,
- onRender: n,
- themeClass: r,
- $slots: o
- } = this;
- n == null || n();
- const i = (e = o.default) === null || e === void 0 ? void 0 : e.call(o);
- return h(
- 'div',
- {
- class: [
- `${t}-badge`,
- this.rtlEnabled && `${t}-badge--rtl`,
- r,
- { [`${t}-badge--dot`]: this.dot, [`${t}-badge--as-is`]: !i }
- ],
- style: this.cssVars
- },
- i,
- h(
- Kn,
- {
- name: 'fade-in-scale-up-transition',
- onAfterEnter: this.handleAfterEnter,
- onAfterLeave: this.handleAfterLeave
- },
- {
- default: () =>
- this.showBadge
- ? h(
- 'sup',
- {
- class: `${t}-badge-sup`,
- title: $R(this.value),
- style: this.offsetStyle
- },
- Kt(o.value, () => [
- this.dot
- ? null
- : h(hV, {
- clsPrefix: t,
- appeared: this.appeared,
- max: this.max,
- value: this.value
- })
- ]),
- this.processing ? h(Pk, { clsPrefix: t }) : null
- )
- : null
- }
- )
- );
- }
- }),
- iK = { fontWeightActive: '400' },
- aK = e => {
- const {
- fontSize: t,
- textColor3: n,
- textColor2: r,
- borderRadius: o,
- buttonColor2Hover: i,
- buttonColor2Pressed: a
- } = e;
- return Object.assign(Object.assign({}, iK), {
- fontSize: t,
- itemLineHeight: '1.25',
- itemTextColor: n,
- itemTextColorHover: r,
- itemTextColorPressed: r,
- itemTextColorActive: r,
- itemBorderRadius: o,
- itemColorHover: i,
- itemColorPressed: a,
- separatorColor: n
- });
- },
- lK = { name: 'Breadcrumb', common: Nt, self: aK },
- sK = lK,
- cK = O(
- 'breadcrumb',
- `
- white-space: nowrap;
- cursor: default;
- line-height: var(--n-item-line-height);
- `,
- [
- F(
- 'ul',
- `
- list-style: none;
- padding: 0;
- margin: 0;
- `
- ),
- F(
- 'a',
- `
- color: inherit;
- text-decoration: inherit;
- `
- ),
- O(
- 'breadcrumb-item',
- `
- font-size: var(--n-font-size);
- transition: color .3s var(--n-bezier);
- display: inline-flex;
- align-items: center;
- `,
- [
- O(
- 'icon',
- `
- font-size: 18px;
- vertical-align: -.2em;
- transition: color .3s var(--n-bezier);
- color: var(--n-item-text-color);
- `
- ),
- F('&:not(:last-child)', [
- U('clickable', [
- V(
- 'link',
- `
- cursor: pointer;
- `,
- [
- F(
- '&:hover',
- `
- background-color: var(--n-item-color-hover);
- `
- ),
- F(
- '&:active',
- `
- background-color: var(--n-item-color-pressed);
- `
- )
- ]
- )
- ])
- ]),
- V(
- 'link',
- `
- padding: 4px;
- border-radius: var(--n-item-border-radius);
- transition:
- background-color .3s var(--n-bezier),
- color .3s var(--n-bezier);
- color: var(--n-item-text-color);
- position: relative;
- `,
- [
- F(
- '&:hover',
- `
- color: var(--n-item-text-color-hover);
- `,
- [
- O(
- 'icon',
- `
- color: var(--n-item-text-color-hover);
- `
- )
- ]
- ),
- F(
- '&:active',
- `
- color: var(--n-item-text-color-pressed);
- `,
- [
- O(
- 'icon',
- `
- color: var(--n-item-text-color-pressed);
- `
- )
- ]
- )
- ]
- ),
- V(
- 'separator',
- `
- margin: 0 8px;
- color: var(--n-separator-color);
- transition: color .3s var(--n-bezier);
- user-select: none;
- -webkit-user-select: none;
- `
- ),
- F('&:last-child', [
- V(
- 'link',
- `
- font-weight: var(--n-font-weight-active);
- cursor: unset;
- color: var(--n-item-text-color-active);
- `,
- [
- O(
- 'icon',
- `
- color: var(--n-item-text-color-active);
- `
- )
- ]
- ),
- V(
- 'separator',
- `
- display: none;
- `
- )
- ])
- ]
- )
- ]
- ),
- Bk = 'n-breadcrumb',
- dK = Object.assign(Object.assign({}, Ke.props), {
- separator: { type: String, default: '/' }
- }),
- uK = Re({
- name: 'Breadcrumb',
- props: dK,
- setup(e) {
- const { mergedClsPrefixRef: t, inlineThemeDisabled: n } = yt(e),
- r = Ke('Breadcrumb', '-breadcrumb', cK, sK, e, t);
- Rt(Bk, { separatorRef: Ee(e, 'separator'), mergedClsPrefixRef: t });
- const o = I(() => {
- const {
- common: { cubicBezierEaseInOut: a },
- self: {
- separatorColor: s,
- itemTextColor: c,
- itemTextColorHover: d,
- itemTextColorPressed: f,
- itemTextColorActive: v,
- fontSize: p,
- fontWeightActive: m,
- itemBorderRadius: g,
- itemColorHover: w,
- itemColorPressed: x,
- itemLineHeight: y
- }
- } = r.value;
- return {
- '--n-font-size': p,
- '--n-bezier': a,
- '--n-item-text-color': c,
- '--n-item-text-color-hover': d,
- '--n-item-text-color-pressed': f,
- '--n-item-text-color-active': v,
- '--n-separator-color': s,
- '--n-item-color-hover': w,
- '--n-item-color-pressed': x,
- '--n-item-border-radius': g,
- '--n-font-weight-active': m,
- '--n-item-line-height': y
- };
- }),
- i = n ? Mt('breadcrumb', void 0, o, e) : void 0;
- return {
- mergedClsPrefix: t,
- cssVars: n ? void 0 : o,
- themeClass: i == null ? void 0 : i.themeClass,
- onRender: i == null ? void 0 : i.onRender
- };
- },
- render() {
- var e;
- return (
- (e = this.onRender) === null || e === void 0 || e.call(this),
- h(
- 'nav',
- {
- class: [`${this.mergedClsPrefix}-breadcrumb`, this.themeClass],
- style: this.cssVars,
- 'aria-label': 'Breadcrumb'
- },
- h('ul', null, this.$slots)
- )
- );
- }
- }),
- fK = (e = Fo ? window : null) => {
- const t = () => {
- const {
- hash: o,
- host: i,
- hostname: a,
- href: s,
- origin: c,
- pathname: d,
- port: f,
- protocol: v,
- search: p
- } = (e == null ? void 0 : e.location) || {};
- return {
- hash: o,
- host: i,
- hostname: a,
- href: s,
- origin: c,
- pathname: d,
- port: f,
- protocol: v,
- search: p
- };
- },
- n = () => {
- r.value = t();
- },
- r = Z(t());
- return (
- Hn(() => {
- e &&
- (e.addEventListener('popstate', n),
- e.addEventListener('hashchange', n));
- }),
- Mu(() => {
- e &&
- (e.removeEventListener('popstate', n),
- e.removeEventListener('hashchange', n));
- }),
- r
- );
- },
- hK = {
- separator: String,
- href: String,
- clickable: { type: Boolean, default: !0 },
- onClick: Function
- },
- vK = Re({
- name: 'BreadcrumbItem',
- props: hK,
- setup(e, { slots: t }) {
- const n = Ze(Bk, null);
- if (!n) return () => null;
- const { separatorRef: r, mergedClsPrefixRef: o } = n,
- i = fK(),
- a = I(() => (e.href ? 'a' : 'span')),
- s = I(() => (i.value.href === e.href ? 'location' : null));
- return () => {
- const { value: c } = o;
- return h(
- 'li',
- {
- class: [
- `${c}-breadcrumb-item`,
- e.clickable && `${c}-breadcrumb-item--clickable`
- ]
- },
- h(
- a.value,
- {
- class: `${c}-breadcrumb-item__link`,
- 'aria-current': s.value,
- href: e.href,
- onClick: e.onClick
- },
- t
- ),
- h(
- 'span',
- { class: `${c}-breadcrumb-item__separator`, 'aria-hidden': 'true' },
- Kt(t.separator, () => {
- var d;
- return [(d = e.separator) !== null && d !== void 0 ? d : r.value];
- })
- )
- );
- };
- }
- });
- function Ql(e) {
- return At(e, [255, 255, 255, 0.16]);
- }
- function mh(e) {
- return At(e, [0, 0, 0, 0.12]);
- }
- const pK = 'n-button-group',
- gK = {
- 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'
- },
- mK = e => {
- const {
- heightTiny: t,
- heightSmall: n,
- heightMedium: r,
- heightLarge: o,
- borderRadius: i,
- fontSizeTiny: a,
- fontSizeSmall: s,
- fontSizeMedium: c,
- fontSizeLarge: d,
- opacityDisabled: f,
- textColor2: v,
- textColor3: p,
- primaryColorHover: m,
- primaryColorPressed: g,
- borderColor: w,
- primaryColor: x,
- baseColor: y,
- infoColor: C,
- infoColorHover: R,
- infoColorPressed: S,
- successColor: _,
- successColorHover: P,
- successColorPressed: T,
- warningColor: A,
- warningColorHover: z,
- warningColorPressed: k,
- errorColor: M,
- errorColorHover: E,
- errorColorPressed: D,
- fontWeight: L,
- buttonColor2: j,
- buttonColor2Hover: B,
- buttonColor2Pressed: q,
- fontWeightStrong: G
- } = e;
- return Object.assign(Object.assign({}, gK), {
- heightTiny: t,
- heightSmall: n,
- heightMedium: r,
- heightLarge: o,
- borderRadiusTiny: i,
- borderRadiusSmall: i,
- borderRadiusMedium: i,
- borderRadiusLarge: i,
- fontSizeTiny: a,
- fontSizeSmall: s,
- fontSizeMedium: c,
- fontSizeLarge: d,
- opacityDisabled: f,
- colorOpacitySecondary: '0.16',
- colorOpacitySecondaryHover: '0.22',
- colorOpacitySecondaryPressed: '0.28',
- colorSecondary: j,
- colorSecondaryHover: B,
- colorSecondaryPressed: q,
- colorTertiary: j,
- colorTertiaryHover: B,
- colorTertiaryPressed: q,
- colorQuaternary: '#0000',
- colorQuaternaryHover: B,
- colorQuaternaryPressed: q,
- color: '#0000',
- colorHover: '#0000',
- colorPressed: '#0000',
- colorFocus: '#0000',
- colorDisabled: '#0000',
- textColor: v,
- textColorTertiary: p,
- textColorHover: m,
- textColorPressed: g,
- textColorFocus: m,
- textColorDisabled: v,
- textColorText: v,
- textColorTextHover: m,
- textColorTextPressed: g,
- textColorTextFocus: m,
- textColorTextDisabled: v,
- textColorGhost: v,
- textColorGhostHover: m,
- textColorGhostPressed: g,
- textColorGhostFocus: m,
- textColorGhostDisabled: v,
- border: `1px solid ${w}`,
- borderHover: `1px solid ${m}`,
- borderPressed: `1px solid ${g}`,
- borderFocus: `1px solid ${m}`,
- borderDisabled: `1px solid ${w}`,
- rippleColor: x,
- colorPrimary: x,
- colorHoverPrimary: m,
- colorPressedPrimary: g,
- colorFocusPrimary: m,
- colorDisabledPrimary: x,
- textColorPrimary: y,
- textColorHoverPrimary: y,
- textColorPressedPrimary: y,
- textColorFocusPrimary: y,
- textColorDisabledPrimary: y,
- textColorTextPrimary: x,
- textColorTextHoverPrimary: m,
- textColorTextPressedPrimary: g,
- textColorTextFocusPrimary: m,
- textColorTextDisabledPrimary: v,
- textColorGhostPrimary: x,
- textColorGhostHoverPrimary: m,
- textColorGhostPressedPrimary: g,
- textColorGhostFocusPrimary: m,
- textColorGhostDisabledPrimary: x,
- borderPrimary: `1px solid ${x}`,
- borderHoverPrimary: `1px solid ${m}`,
- borderPressedPrimary: `1px solid ${g}`,
- borderFocusPrimary: `1px solid ${m}`,
- borderDisabledPrimary: `1px solid ${x}`,
- rippleColorPrimary: x,
- colorInfo: C,
- colorHoverInfo: R,
- colorPressedInfo: S,
- colorFocusInfo: R,
- colorDisabledInfo: C,
- textColorInfo: y,
- textColorHoverInfo: y,
- textColorPressedInfo: y,
- textColorFocusInfo: y,
- textColorDisabledInfo: y,
- textColorTextInfo: C,
- textColorTextHoverInfo: R,
- textColorTextPressedInfo: S,
- textColorTextFocusInfo: R,
- textColorTextDisabledInfo: v,
- textColorGhostInfo: C,
- textColorGhostHoverInfo: R,
- textColorGhostPressedInfo: S,
- textColorGhostFocusInfo: R,
- textColorGhostDisabledInfo: C,
- borderInfo: `1px solid ${C}`,
- borderHoverInfo: `1px solid ${R}`,
- borderPressedInfo: `1px solid ${S}`,
- borderFocusInfo: `1px solid ${R}`,
- borderDisabledInfo: `1px solid ${C}`,
- rippleColorInfo: C,
- colorSuccess: _,
- colorHoverSuccess: P,
- colorPressedSuccess: T,
- colorFocusSuccess: P,
- colorDisabledSuccess: _,
- textColorSuccess: y,
- textColorHoverSuccess: y,
- textColorPressedSuccess: y,
- textColorFocusSuccess: y,
- textColorDisabledSuccess: y,
- textColorTextSuccess: _,
- textColorTextHoverSuccess: P,
- textColorTextPressedSuccess: T,
- textColorTextFocusSuccess: P,
- textColorTextDisabledSuccess: v,
- textColorGhostSuccess: _,
- textColorGhostHoverSuccess: P,
- textColorGhostPressedSuccess: T,
- textColorGhostFocusSuccess: P,
- textColorGhostDisabledSuccess: _,
- borderSuccess: `1px solid ${_}`,
- borderHoverSuccess: `1px solid ${P}`,
- borderPressedSuccess: `1px solid ${T}`,
- borderFocusSuccess: `1px solid ${P}`,
- borderDisabledSuccess: `1px solid ${_}`,
- rippleColorSuccess: _,
- colorWarning: A,
- colorHoverWarning: z,
- colorPressedWarning: k,
- colorFocusWarning: z,
- colorDisabledWarning: A,
- textColorWarning: y,
- textColorHoverWarning: y,
- textColorPressedWarning: y,
- textColorFocusWarning: y,
- textColorDisabledWarning: y,
- textColorTextWarning: A,
- textColorTextHoverWarning: z,
- textColorTextPressedWarning: k,
- textColorTextFocusWarning: z,
- textColorTextDisabledWarning: v,
- textColorGhostWarning: A,
- textColorGhostHoverWarning: z,
- textColorGhostPressedWarning: k,
- textColorGhostFocusWarning: z,
- textColorGhostDisabledWarning: A,
- borderWarning: `1px solid ${A}`,
- borderHoverWarning: `1px solid ${z}`,
- borderPressedWarning: `1px solid ${k}`,
- borderFocusWarning: `1px solid ${z}`,
- borderDisabledWarning: `1px solid ${A}`,
- rippleColorWarning: A,
- colorError: M,
- colorHoverError: E,
- colorPressedError: D,
- colorFocusError: E,
- colorDisabledError: M,
- textColorError: y,
- textColorHoverError: y,
- textColorPressedError: y,
- textColorFocusError: y,
- textColorDisabledError: y,
- textColorTextError: M,
- textColorTextHoverError: E,
- textColorTextPressedError: D,
- textColorTextFocusError: E,
- textColorTextDisabledError: v,
- textColorGhostError: M,
- textColorGhostHoverError: E,
- textColorGhostPressedError: D,
- textColorGhostFocusError: E,
- textColorGhostDisabledError: M,
- borderError: `1px solid ${M}`,
- borderHoverError: `1px solid ${E}`,
- borderPressedError: `1px solid ${D}`,
- borderFocusError: `1px solid ${E}`,
- borderDisabledError: `1px solid ${M}`,
- rippleColorError: M,
- waveOpacity: '0.6',
- fontWeight: L,
- fontWeightStrong: G
- });
- },
- bK = { name: 'Button', common: Nt, self: mK },
- Es = bK,
- yK = F([
- O(
- 'button',
- `
- margin: 0;
- font-weight: var(--n-font-weight);
- line-height: 1;
- font-family: inherit;
- padding: var(--n-padding);
- height: var(--n-height);
- font-size: var(--n-font-size);
- border-radius: var(--n-border-radius);
- color: var(--n-text-color);
- background-color: var(--n-color);
- width: var(--n-width);
- white-space: nowrap;
- outline: none;
- position: relative;
- z-index: auto;
- border: none;
- display: inline-flex;
- flex-wrap: nowrap;
- flex-shrink: 0;
- align-items: center;
- justify-content: center;
- user-select: none;
- -webkit-user-select: none;
- text-align: center;
- cursor: pointer;
- text-decoration: none;
- transition:
- color .3s var(--n-bezier),
- background-color .3s var(--n-bezier),
- opacity .3s var(--n-bezier),
- border-color .3s var(--n-bezier);
- `,
- [
- U('color', [
- V('border', { borderColor: 'var(--n-border-color)' }),
- U('disabled', [
- V('border', { borderColor: 'var(--n-border-color-disabled)' })
- ]),
- jt('disabled', [
- F('&:focus', [
- V('state-border', { borderColor: 'var(--n-border-color-focus)' })
- ]),
- F('&:hover', [
- V('state-border', { borderColor: 'var(--n-border-color-hover)' })
- ]),
- F('&:active', [
- V('state-border', {
- borderColor: 'var(--n-border-color-pressed)'
- })
- ]),
- U('pressed', [
- V('state-border', {
- borderColor: 'var(--n-border-color-pressed)'
- })
- ])
- ])
- ]),
- U(
- 'disabled',
- {
- backgroundColor: 'var(--n-color-disabled)',
- color: 'var(--n-text-color-disabled)'
- },
- [V('border', { border: 'var(--n-border-disabled)' })]
- ),
- jt('disabled', [
- F(
- '&:focus',
- {
- backgroundColor: 'var(--n-color-focus)',
- color: 'var(--n-text-color-focus)'
- },
- [V('state-border', { border: 'var(--n-border-focus)' })]
- ),
- F(
- '&:hover',
- {
- backgroundColor: 'var(--n-color-hover)',
- color: 'var(--n-text-color-hover)'
- },
- [V('state-border', { border: 'var(--n-border-hover)' })]
- ),
- F(
- '&:active',
- {
- backgroundColor: 'var(--n-color-pressed)',
- color: 'var(--n-text-color-pressed)'
- },
- [V('state-border', { border: 'var(--n-border-pressed)' })]
- ),
- U(
- 'pressed',
- {
- backgroundColor: 'var(--n-color-pressed)',
- color: 'var(--n-text-color-pressed)'
- },
- [V('state-border', { border: 'var(--n-border-pressed)' })]
- )
- ]),
- U('loading', 'cursor: wait;'),
- O(
- 'base-wave',
- `
- pointer-events: none;
- top: 0;
- right: 0;
- bottom: 0;
- left: 0;
- animation-iteration-count: 1;
- animation-duration: var(--n-ripple-duration);
- animation-timing-function: var(--n-bezier-ease-out), var(--n-bezier-ease-out);
- `,
- [
- U('active', {
- zIndex: 1,
- animationName: 'button-wave-spread, button-wave-opacity'
- })
- ]
- ),
- Fo && 'MozBoxSizing' in document.createElement('div').style
- ? F('&::moz-focus-inner', { border: 0 })
- : null,
- V(
- 'border, state-border',
- `
- position: absolute;
- left: 0;
- top: 0;
- right: 0;
- bottom: 0;
- border-radius: inherit;
- transition: border-color .3s var(--n-bezier);
- pointer-events: none;
- `
- ),
- V('border', { border: 'var(--n-border)' }),
- V('state-border', {
- border: 'var(--n-border)',
- borderColor: '#0000',
- zIndex: 1
- }),
- V(
- 'icon',
- `
- margin: var(--n-icon-margin);
- margin-left: 0;
- height: var(--n-icon-size);
- width: var(--n-icon-size);
- max-width: var(--n-icon-size);
- font-size: var(--n-icon-size);
- position: relative;
- flex-shrink: 0;
- `,
- [
- O(
- 'icon-slot',
- `
- height: var(--n-icon-size);
- width: var(--n-icon-size);
- position: absolute;
- left: 0;
- top: 50%;
- transform: translateY(-50%);
- display: flex;
- align-items: center;
- justify-content: center;
- `,
- [br({ top: '50%', originalTransform: 'translateY(-50%)' })]
- ),
- Ak()
- ]
- ),
- V(
- 'content',
- `
- display: flex;
- align-items: center;
- flex-wrap: nowrap;
- min-width: 0;
- `,
- [
- F('~', [
- V('icon', { margin: 'var(--n-icon-margin)', marginRight: 0 })
- ])
- ]
- ),
- U(
- 'block',
- `
- display: flex;
- width: 100%;
- `
- ),
- U('dashed', [
- V('border, state-border', { borderStyle: 'dashed !important' })
- ]),
- U('disabled', {
- cursor: 'not-allowed',
- opacity: 'var(--n-opacity-disabled)'
- })
- ]
- ),
- F('@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)' }
- }),
- F('@keyframes button-wave-opacity', {
- from: { opacity: 'var(--n-wave-opacity)' },
- to: { opacity: 0 }
- })
- ]),
- xK = Object.assign(Object.assign({}, Ke.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: !Ik }
- }),
- Lk = Re({
- name: 'Button',
- props: xK,
- setup(e) {
- const t = Z(null),
- n = Z(null),
- r = Z(!1),
- o = kt(
- () =>
- !e.quaternary &&
- !e.tertiary &&
- !e.secondary &&
- !e.text &&
- (!e.color || e.ghost || e.dashed) &&
- e.bordered
- ),
- i = Ze(pK, {}),
- { mergedSizeRef: a } = ei(
- {},
- {
- defaultSize: 'medium',
- mergedSize: S => {
- const { size: _ } = e;
- if (_) return _;
- const { size: P } = i;
- if (P) return P;
- const { mergedSize: T } = S || {};
- return T ? T.value : 'medium';
- }
- }
- ),
- s = I(() => e.focusable && !e.disabled),
- c = S => {
- var _;
- s.value || S.preventDefault(),
- !e.nativeFocusBehavior &&
- (S.preventDefault(),
- !e.disabled &&
- s.value &&
- ((_ = t.value) === null ||
- _ === void 0 ||
- _.focus({ preventScroll: !0 })));
- },
- d = S => {
- var _;
- if (!e.disabled && !e.loading) {
- const { onClick: P } = e;
- P && ze(P, S),
- e.text || (_ = n.value) === null || _ === void 0 || _.play();
- }
- },
- f = S => {
- switch (S.key) {
- case 'Enter':
- if (!e.keyboard) return;
- r.value = !1;
- }
- },
- v = S => {
- switch (S.key) {
- case 'Enter':
- if (!e.keyboard || e.loading) {
- S.preventDefault();
- return;
- }
- r.value = !0;
- }
- },
- p = () => {
- r.value = !1;
- },
- {
- inlineThemeDisabled: m,
- mergedClsPrefixRef: g,
- mergedRtlRef: w
- } = yt(e),
- x = Ke('Button', '-button', yK, Es, e, g),
- y = dr('Button', w, g),
- C = I(() => {
- const S = x.value,
- {
- common: { cubicBezierEaseInOut: _, cubicBezierEaseOut: P },
- self: T
- } = S,
- {
- rippleDuration: A,
- opacityDisabled: z,
- fontWeight: k,
- fontWeightStrong: M
- } = T,
- E = a.value,
- {
- dashed: D,
- type: L,
- ghost: j,
- text: B,
- color: q,
- round: G,
- circle: ne,
- textColor: X,
- secondary: J,
- tertiary: re,
- quaternary: ce,
- strong: pe
- } = e,
- Fe = { 'font-weight': pe ? M : k };
- let Ie = {
- '--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 le = L === 'tertiary',
- me = L === 'default',
- he = le ? 'default' : L;
- if (B) {
- const Ce = X || q;
- Ie = {
- '--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': Ce || T[Oe('textColorText', he)],
- '--n-text-color-hover': Ce
- ? Ql(Ce)
- : T[Oe('textColorTextHover', he)],
- '--n-text-color-pressed': Ce
- ? mh(Ce)
- : T[Oe('textColorTextPressed', he)],
- '--n-text-color-focus': Ce
- ? Ql(Ce)
- : T[Oe('textColorTextHover', he)],
- '--n-text-color-disabled':
- Ce || T[Oe('textColorTextDisabled', he)]
- };
- } else if (j || D) {
- const Ce = X || q;
- Ie = {
- '--n-color': '#0000',
- '--n-color-hover': '#0000',
- '--n-color-pressed': '#0000',
- '--n-color-focus': '#0000',
- '--n-color-disabled': '#0000',
- '--n-ripple-color': q || T[Oe('rippleColor', he)],
- '--n-text-color': Ce || T[Oe('textColorGhost', he)],
- '--n-text-color-hover': Ce
- ? Ql(Ce)
- : T[Oe('textColorGhostHover', he)],
- '--n-text-color-pressed': Ce
- ? mh(Ce)
- : T[Oe('textColorGhostPressed', he)],
- '--n-text-color-focus': Ce
- ? Ql(Ce)
- : T[Oe('textColorGhostHover', he)],
- '--n-text-color-disabled':
- Ce || T[Oe('textColorGhostDisabled', he)]
- };
- } else if (J) {
- const Ce = me
- ? T.textColor
- : le
- ? T.textColorTertiary
- : T[Oe('color', he)],
- se = q || Ce,
- Se = L !== 'default' && L !== 'tertiary';
- Ie = {
- '--n-color': Se
- ? zt(se, { alpha: Number(T.colorOpacitySecondary) })
- : T.colorSecondary,
- '--n-color-hover': Se
- ? zt(se, { alpha: Number(T.colorOpacitySecondaryHover) })
- : T.colorSecondaryHover,
- '--n-color-pressed': Se
- ? zt(se, { alpha: Number(T.colorOpacitySecondaryPressed) })
- : T.colorSecondaryPressed,
- '--n-color-focus': Se
- ? zt(se, { alpha: Number(T.colorOpacitySecondaryHover) })
- : T.colorSecondaryHover,
- '--n-color-disabled': T.colorSecondary,
- '--n-ripple-color': '#0000',
- '--n-text-color': se,
- '--n-text-color-hover': se,
- '--n-text-color-pressed': se,
- '--n-text-color-focus': se,
- '--n-text-color-disabled': se
- };
- } else if (re || ce) {
- const Ce = me
- ? T.textColor
- : le
- ? T.textColorTertiary
- : T[Oe('color', he)],
- se = q || Ce;
- re
- ? ((Ie['--n-color'] = T.colorTertiary),
- (Ie['--n-color-hover'] = T.colorTertiaryHover),
- (Ie['--n-color-pressed'] = T.colorTertiaryPressed),
- (Ie['--n-color-focus'] = T.colorSecondaryHover),
- (Ie['--n-color-disabled'] = T.colorTertiary))
- : ((Ie['--n-color'] = T.colorQuaternary),
- (Ie['--n-color-hover'] = T.colorQuaternaryHover),
- (Ie['--n-color-pressed'] = T.colorQuaternaryPressed),
- (Ie['--n-color-focus'] = T.colorQuaternaryHover),
- (Ie['--n-color-disabled'] = T.colorQuaternary)),
- (Ie['--n-ripple-color'] = '#0000'),
- (Ie['--n-text-color'] = se),
- (Ie['--n-text-color-hover'] = se),
- (Ie['--n-text-color-pressed'] = se),
- (Ie['--n-text-color-focus'] = se),
- (Ie['--n-text-color-disabled'] = se);
- } else
- Ie = {
- '--n-color': q || T[Oe('color', he)],
- '--n-color-hover': q ? Ql(q) : T[Oe('colorHover', he)],
- '--n-color-pressed': q ? mh(q) : T[Oe('colorPressed', he)],
- '--n-color-focus': q ? Ql(q) : T[Oe('colorFocus', he)],
- '--n-color-disabled': q || T[Oe('colorDisabled', he)],
- '--n-ripple-color': q || T[Oe('rippleColor', he)],
- '--n-text-color':
- X ||
- (q
- ? T.textColorPrimary
- : le
- ? T.textColorTertiary
- : T[Oe('textColor', he)]),
- '--n-text-color-hover':
- X ||
- (q ? T.textColorHoverPrimary : T[Oe('textColorHover', he)]),
- '--n-text-color-pressed':
- X ||
- (q ? T.textColorPressedPrimary : T[Oe('textColorPressed', he)]),
- '--n-text-color-focus':
- X ||
- (q ? T.textColorFocusPrimary : T[Oe('textColorFocus', he)]),
- '--n-text-color-disabled':
- X ||
- (q
- ? T.textColorDisabledPrimary
- : T[Oe('textColorDisabled', he)])
- };
- let ue = {
- '--n-border': 'initial',
- '--n-border-hover': 'initial',
- '--n-border-pressed': 'initial',
- '--n-border-focus': 'initial',
- '--n-border-disabled': 'initial'
- };
- B
- ? (ue = {
- '--n-border': 'none',
- '--n-border-hover': 'none',
- '--n-border-pressed': 'none',
- '--n-border-focus': 'none',
- '--n-border-disabled': 'none'
- })
- : (ue = {
- '--n-border': T[Oe('border', he)],
- '--n-border-hover': T[Oe('borderHover', he)],
- '--n-border-pressed': T[Oe('borderPressed', he)],
- '--n-border-focus': T[Oe('borderFocus', he)],
- '--n-border-disabled': T[Oe('borderDisabled', he)]
- });
- const {
- [Oe('height', E)]: Ae,
- [Oe('fontSize', E)]: W,
- [Oe('padding', E)]: Q,
- [Oe('paddingRound', E)]: ee,
- [Oe('iconSize', E)]: ve,
- [Oe('borderRadius', E)]: oe,
- [Oe('iconMargin', E)]: H,
- waveOpacity: ae
- } = T,
- ge = {
- '--n-width': ne && !B ? Ae : 'initial',
- '--n-height': B ? 'initial' : Ae,
- '--n-font-size': W,
- '--n-padding': ne || B ? 'initial' : G ? ee : Q,
- '--n-icon-size': ve,
- '--n-icon-margin': H,
- '--n-border-radius': B ? 'initial' : ne || G ? Ae : oe
- };
- return Object.assign(
- Object.assign(
- Object.assign(
- Object.assign(
- {
- '--n-bezier': _,
- '--n-bezier-ease-out': P,
- '--n-ripple-duration': A,
- '--n-opacity-disabled': z,
- '--n-wave-opacity': ae
- },
- Fe
- ),
- Ie
- ),
- ue
- ),
- ge
- );
- }),
- R = m
- ? Mt(
- 'button',
- I(() => {
- let S = '';
- const {
- dashed: _,
- type: P,
- ghost: T,
- text: A,
- color: z,
- round: k,
- circle: M,
- textColor: E,
- secondary: D,
- tertiary: L,
- quaternary: j,
- strong: B
- } = e;
- _ && (S += 'a'),
- T && (S += 'b'),
- A && (S += 'c'),
- k && (S += 'd'),
- M && (S += 'e'),
- D && (S += 'f'),
- L && (S += 'g'),
- j && (S += 'h'),
- B && (S += 'i'),
- z && (S += 'j' + zc(z)),
- E && (S += 'k' + zc(E));
- const { value: q } = a;
- return (S += 'l' + q[0]), (S += 'm' + P[0]), S;
- }),
- C,
- e
- )
- : void 0;
- return {
- selfElRef: t,
- waveElRef: n,
- mergedClsPrefix: g,
- mergedFocusable: s,
- mergedSize: a,
- showBorder: o,
- enterPressed: r,
- rtlEnabled: y,
- handleMousedown: c,
- handleKeydown: v,
- handleBlur: p,
- handleKeyup: f,
- handleClick: d,
- customColorCssVars: I(() => {
- const { color: S } = e;
- if (!S) return null;
- const _ = Ql(S);
- return {
- '--n-border-color': S,
- '--n-border-color-hover': _,
- '--n-border-color-pressed': mh(S),
- '--n-border-color-focus': _,
- '--n-border-color-disabled': S
- };
- }),
- cssVars: m ? void 0 : C,
- themeClass: R == null ? void 0 : R.themeClass,
- onRender: R == null ? void 0 : R.onRender
- };
- },
- render() {
- const { mergedClsPrefix: e, tag: t, onRender: n } = this;
- n == null || n();
- const r = cn(
- this.$slots.default,
- o => o && h('span', { class: `${e}-button__content` }, o)
- );
- return h(
- 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' && r,
- h(
- Cl,
- { width: !0 },
- {
- default: () =>
- cn(
- this.$slots.icon,
- o =>
- (this.loading || this.renderIcon || o) &&
- h(
- 'span',
- {
- class: `${e}-button__icon`,
- style: { margin: ps(this.$slots.default) ? '0' : '' }
- },
- h(Zi, null, {
- default: () =>
- this.loading
- ? h($a, {
- clsPrefix: e,
- key: 'loading',
- class: `${e}-icon-slot`,
- strokeWidth: 20
- })
- : h(
- 'div',
- {
- key: 'icon',
- class: `${e}-icon-slot`,
- role: 'none'
- },
- this.renderIcon ? this.renderIcon() : o
- )
- })
- )
- )
- }
- ),
- this.iconPlacement === 'left' && r,
- this.text ? null : h(Pk, { ref: 'waveElRef', clsPrefix: e }),
- this.showBorder
- ? h('div', {
- 'aria-hidden': !0,
- class: `${e}-button__border`,
- style: this.customColorCssVars
- })
- : null,
- this.showBorder
- ? h('div', {
- 'aria-hidden': !0,
- class: `${e}-button__state-border`,
- style: this.customColorCssVars
- })
- : null
- );
- }
- }),
- nr = Lk,
- ji = Lk,
- cv = 1901,
- _s = 40,
- wK = { date: aj, month: Wv, year: pk, quarter: vk };
- function ga(e, t, n) {
- const r = wK[n];
- return Array.isArray(e) ? e.some(o => r(o, t)) : r(e, t);
- }
- function Wg(e, t, n, r) {
- let o = !1,
- i = !1,
- a = !1;
- Array.isArray(n) &&
- (n[0] < e && e < n[1] && (o = !0),
- ga(n[0], e, 'date') && (i = !0),
- ga(n[1], e, 'date') && (a = !0));
- const s =
- n !== null &&
- (Array.isArray(n)
- ? ga(n[0], e, 'date') || ga(n[1], e, 'date')
- : ga(n, e, 'date'));
- return {
- type: 'date',
- dateObject: { date: li(e), month: Yn(e), year: Jn(e) },
- inCurrentMonth: Wv(e, t),
- isCurrentDate: ga(r, e, 'date'),
- inSpan: o,
- startOfSpan: i,
- endOfSpan: a,
- selected: s,
- ts: ht(e)
- };
- }
- function CK(e, t, n) {
- return {
- type: 'month',
- dateObject: { month: Yn(e), year: Jn(e) },
- isCurrent: Wv(n, e),
- selected: t !== null && ga(t, e, 'month'),
- ts: ht(e)
- };
- }
- function SK(e, t, n) {
- return {
- type: 'year',
- dateObject: { year: Jn(e) },
- isCurrent: pk(n, e),
- selected: t !== null && ga(t, e, 'year'),
- ts: ht(e)
- };
- }
- function _K(e, t, n) {
- return {
- type: 'quarter',
- dateObject: { quarter: sj(e), year: Jn(e) },
- isCurrent: vk(n, e),
- selected: t !== null && ga(t, e, 'quarter'),
- ts: ht(e)
- };
- }
- function fb(e, t, n, r, o = !1) {
- const i = Yn(e);
- let a = ht(pa(e)),
- s = ht(ph(a, -1));
- const c = [];
- let d = !o;
- for (; Oj(s) !== r || d; )
- c.unshift(Wg(s, e, t, n)), (s = ht(ph(s, -1))), (d = !1);
- for (; Yn(a) === i; ) c.push(Wg(a, e, t, n)), (a = ht(ph(a, 1)));
- const f = o ? (c.length <= 28 ? 28 : c.length <= 35 ? 35 : 42) : 42;
- for (; c.length < f; ) c.push(Wg(a, e, t, n)), (a = ht(ph(a, 1)));
- return c;
- }
- function hb(e, t, n) {
- const r = [],
- o = hy(e);
- for (let i = 0; i < 12; i++) r.push(CK(ht(Fr(o, i)), t, n));
- return r;
- }
- function vb(e, t, n) {
- const r = [],
- o = hy(e);
- for (let i = 0; i < 4; i++) r.push(_K(ht(nj(o, i)), t, n));
- return r;
- }
- function pb(e, t) {
- const n = [],
- r = new Date(cv, 0, 1);
- for (let o = 0; o < 200; o++) n.push(SK(ht(ab(r, o)), e, t));
- return n;
- }
- function wo(e, t, n, r) {
- const o = TU(e, t, n, r);
- return Xo(o) ? (Xn(o, t, r) === e ? o : new Date(NaN)) : o;
- }
- function Fh(e) {
- if (e === void 0) return;
- if (typeof e == 'number') return e;
- const [t, n, r] = e.split(':');
- return { hours: Number(t), minutes: Number(n), seconds: Number(r) };
- }
- function fc(e, t) {
- return Array.isArray(e) ? e[t === 'start' ? 0 : 1] : null;
- }
- const RK = {
- 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'
- },
- PK = e => {
- const {
- primaryColor: t,
- borderRadius: n,
- lineHeight: r,
- fontSize: o,
- cardColor: i,
- textColor2: a,
- textColor1: s,
- dividerColor: c,
- fontWeightStrong: d,
- closeIconColor: f,
- closeIconColorHover: v,
- closeIconColorPressed: p,
- closeColorHover: m,
- closeColorPressed: g,
- modalColor: w,
- boxShadow1: x,
- popoverColor: y,
- actionColor: C
- } = e;
- return Object.assign(Object.assign({}, RK), {
- lineHeight: r,
- color: i,
- colorModal: w,
- colorPopover: y,
- colorTarget: t,
- colorEmbedded: C,
- colorEmbeddedModal: C,
- colorEmbeddedPopover: C,
- textColor: a,
- titleTextColor: s,
- borderColor: c,
- actionColor: C,
- titleFontWeight: d,
- closeColorHover: m,
- closeColorPressed: g,
- closeBorderRadius: n,
- closeIconColor: f,
- closeIconColorHover: v,
- closeIconColorPressed: p,
- fontSizeSmall: o,
- fontSizeMedium: o,
- fontSizeLarge: o,
- fontSizeHuge: o,
- boxShadow: x,
- borderRadius: n
- });
- },
- kK = { name: 'Card', common: Nt, self: PK },
- Nk = kK,
- TK = F([
- O(
- 'card',
- `
- font-size: var(--n-font-size);
- line-height: var(--n-line-height);
- display: flex;
- flex-direction: column;
- width: 100%;
- box-sizing: border-box;
- position: relative;
- border-radius: var(--n-border-radius);
- background-color: var(--n-color);
- color: var(--n-text-color);
- word-break: break-word;
- transition:
- color .3s var(--n-bezier),
- background-color .3s var(--n-bezier),
- box-shadow .3s var(--n-bezier),
- border-color .3s var(--n-bezier);
- `,
- [
- LR({ background: 'var(--n-color-modal)' }),
- U('hoverable', [F('&:hover', 'box-shadow: var(--n-box-shadow);')]),
- U('content-segmented', [
- F('>', [V('content', { paddingTop: 'var(--n-padding-bottom)' })])
- ]),
- U('content-soft-segmented', [
- F('>', [
- V(
- 'content',
- `
- margin: 0 var(--n-padding-left);
- padding: var(--n-padding-bottom) 0;
- `
- )
- ])
- ]),
- U('footer-segmented', [
- F('>', [V('footer', { paddingTop: 'var(--n-padding-bottom)' })])
- ]),
- U('footer-soft-segmented', [
- F('>', [
- V(
- 'footer',
- `
- padding: var(--n-padding-bottom) 0;
- margin: 0 var(--n-padding-left);
- `
- )
- ])
- ]),
- F('>', [
- O(
- 'card-header',
- `
- box-sizing: border-box;
- display: flex;
- align-items: center;
- font-size: var(--n-title-font-size);
- padding:
- var(--n-padding-top)
- var(--n-padding-left)
- var(--n-padding-bottom)
- var(--n-padding-left);
- `,
- [
- V(
- 'main',
- `
- font-weight: var(--n-title-font-weight);
- transition: color .3s var(--n-bezier);
- flex: 1;
- min-width: 0;
- color: var(--n-title-text-color);
- `
- ),
- V(
- 'extra',
- `
- display: flex;
- align-items: center;
- font-size: var(--n-font-size);
- font-weight: 400;
- transition: color .3s var(--n-bezier);
- color: var(--n-text-color);
- `
- ),
- V(
- 'close',
- `
- margin: 0 0 0 8px;
- transition:
- background-color .3s var(--n-bezier),
- color .3s var(--n-bezier);
- `
- )
- ]
- ),
- V(
- 'action',
- `
- box-sizing: border-box;
- transition:
- background-color .3s var(--n-bezier),
- border-color .3s var(--n-bezier);
- background-clip: padding-box;
- background-color: var(--n-action-color);
- `
- ),
- V('content', 'flex: 1; min-width: 0;'),
- V(
- 'content, footer',
- `
- box-sizing: border-box;
- padding: 0 var(--n-padding-left) var(--n-padding-bottom) var(--n-padding-left);
- font-size: var(--n-font-size);
- `,
- [F('&:first-child', { paddingTop: 'var(--n-padding-bottom)' })]
- ),
- V(
- 'action',
- `
- background-color: var(--n-action-color);
- padding: var(--n-padding-bottom) var(--n-padding-left);
- border-bottom-left-radius: var(--n-border-radius);
- border-bottom-right-radius: var(--n-border-radius);
- `
- )
- ]),
- O(
- 'card-cover',
- `
- overflow: hidden;
- width: 100%;
- border-radius: var(--n-border-radius) var(--n-border-radius) 0 0;
- `,
- [
- F(
- 'img',
- `
- display: block;
- width: 100%;
- `
- )
- ]
- ),
- U(
- 'bordered',
- `
- border: 1px solid var(--n-border-color);
- `,
- [F('&:target', 'border-color: var(--n-color-target);')]
- ),
- U('action-segmented', [
- F('>', [
- V('action', [
- F('&:not(:first-child)', {
- borderTop: '1px solid var(--n-border-color)'
- })
- ])
- ])
- ]),
- U('content-segmented, content-soft-segmented', [
- F('>', [
- V('content', { transition: 'border-color 0.3s var(--n-bezier)' }, [
- F('&:not(:first-child)', {
- borderTop: '1px solid var(--n-border-color)'
- })
- ])
- ])
- ]),
- U('footer-segmented, footer-soft-segmented', [
- F('>', [
- V('footer', { transition: 'border-color 0.3s var(--n-bezier)' }, [
- F('&:not(:first-child)', {
- borderTop: '1px solid var(--n-border-color)'
- })
- ])
- ])
- ]),
- U(
- 'embedded',
- `
- background-color: var(--n-color-embedded);
- `
- )
- ]
- ),
- xl(
- O(
- 'card',
- `
- background: var(--n-color-modal);
- `,
- [
- U(
- 'embedded',
- `
- background-color: var(--n-color-embedded-modal);
- `
- )
- ]
- )
- ),
- Ps(
- O(
- 'card',
- `
- background: var(--n-color-popover);
- `,
- [
- U(
- 'embedded',
- `
- background-color: var(--n-color-embedded-popover);
- `
- )
- ]
- )
- )
- ]),
- _y = {
- 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' }
- },
- $K = Vi(_y),
- OK = Object.assign(Object.assign({}, Ke.props), _y),
- Hk = Re({
- name: 'Card',
- props: OK,
- setup(e) {
- const t = () => {
- const { onClose: d } = e;
- d && ze(d);
- },
- {
- inlineThemeDisabled: n,
- mergedClsPrefixRef: r,
- mergedRtlRef: o
- } = yt(e),
- i = Ke('Card', '-card', TK, Nk, e, r),
- a = dr('Card', o, r),
- s = I(() => {
- const { size: d } = e,
- {
- self: {
- color: f,
- colorModal: v,
- colorTarget: p,
- textColor: m,
- titleTextColor: g,
- titleFontWeight: w,
- borderColor: x,
- actionColor: y,
- borderRadius: C,
- lineHeight: R,
- closeIconColor: S,
- closeIconColorHover: _,
- closeIconColorPressed: P,
- closeColorHover: T,
- closeColorPressed: A,
- closeBorderRadius: z,
- closeIconSize: k,
- closeSize: M,
- boxShadow: E,
- colorPopover: D,
- colorEmbedded: L,
- colorEmbeddedModal: j,
- colorEmbeddedPopover: B,
- [Oe('padding', d)]: q,
- [Oe('fontSize', d)]: G,
- [Oe('titleFontSize', d)]: ne
- },
- common: { cubicBezierEaseInOut: X }
- } = i.value,
- { top: J, left: re, bottom: ce } = Go(q);
- return {
- '--n-bezier': X,
- '--n-border-radius': C,
- '--n-color': f,
- '--n-color-modal': v,
- '--n-color-popover': D,
- '--n-color-embedded': L,
- '--n-color-embedded-modal': j,
- '--n-color-embedded-popover': B,
- '--n-color-target': p,
- '--n-text-color': m,
- '--n-line-height': R,
- '--n-action-color': y,
- '--n-title-text-color': g,
- '--n-title-font-weight': w,
- '--n-close-icon-color': S,
- '--n-close-icon-color-hover': _,
- '--n-close-icon-color-pressed': P,
- '--n-close-color-hover': T,
- '--n-close-color-pressed': A,
- '--n-border-color': x,
- '--n-box-shadow': E,
- '--n-padding-top': J,
- '--n-padding-bottom': ce,
- '--n-padding-left': re,
- '--n-font-size': G,
- '--n-title-font-size': ne,
- '--n-close-size': M,
- '--n-close-icon-size': k,
- '--n-close-border-radius': z
- };
- }),
- c = n
- ? Mt(
- 'card',
- I(() => e.size[0]),
- s,
- e
- )
- : void 0;
- return {
- rtlEnabled: a,
- mergedClsPrefix: r,
- mergedTheme: i,
- handleCloseClick: t,
- cssVars: n ? void 0 : s,
- themeClass: c == null ? void 0 : c.themeClass,
- onRender: c == null ? void 0 : c.onRender
- };
- },
- render() {
- const {
- segmented: e,
- bordered: t,
- hoverable: n,
- mergedClsPrefix: r,
- rtlEnabled: o,
- onRender: i,
- embedded: a,
- tag: s,
- $slots: c
- } = this;
- return (
- i == null || i(),
- h(
- s,
- {
- class: [
- `${r}-card`,
- this.themeClass,
- a && `${r}-card--embedded`,
- {
- [`${r}-card--rtl`]: o,
- [`${r}-card--content${
- typeof e != 'boolean' && e.content === 'soft' ? '-soft' : ''
- }-segmented`]: e === !0 || (e !== !1 && e.content),
- [`${r}-card--footer${
- typeof e != 'boolean' && e.footer === 'soft' ? '-soft' : ''
- }-segmented`]: e === !0 || (e !== !1 && e.footer),
- [`${r}-card--action-segmented`]:
- e === !0 || (e !== !1 && e.action),
- [`${r}-card--bordered`]: t,
- [`${r}-card--hoverable`]: n
- }
- ],
- style: this.cssVars,
- role: this.role
- },
- cn(
- c.cover,
- d => d && h('div', { class: `${r}-card-cover`, role: 'none' }, d)
- ),
- cn(c.header, d =>
- d || this.title || this.closable
- ? h(
- 'div',
- { class: `${r}-card-header`, style: this.headerStyle },
- h(
- 'div',
- { class: `${r}-card-header__main`, role: 'heading' },
- d || this.title
- ),
- cn(
- c['header-extra'],
- f =>
- f &&
- h(
- 'div',
- {
- class: `${r}-card-header__extra`,
- style: this.headerExtraStyle
- },
- f
- )
- ),
- this.closable
- ? h(Sl, {
- clsPrefix: r,
- class: `${r}-card-header__close`,
- onClick: this.handleCloseClick,
- absolute: !0
- })
- : null
- )
- : null
- ),
- cn(
- c.default,
- d =>
- d &&
- h(
- 'div',
- {
- class: `${r}-card__content`,
- style: this.contentStyle,
- role: 'none'
- },
- d
- )
- ),
- cn(
- c.footer,
- d =>
- d && [
- h(
- 'div',
- {
- class: `${r}-card__footer`,
- style: this.footerStyle,
- role: 'none'
- },
- d
- )
- ]
- ),
- cn(
- c.action,
- d => d && h('div', { class: `${r}-card__action`, role: 'none' }, d)
- )
- )
- );
- }
- }),
- zK = {
- sizeSmall: '14px',
- sizeMedium: '16px',
- sizeLarge: '18px',
- labelPadding: '0 8px',
- labelFontWeight: '400'
- },
- AK = e => {
- const {
- baseColor: t,
- inputColorDisabled: n,
- cardColor: r,
- modalColor: o,
- popoverColor: i,
- textColorDisabled: a,
- borderColor: s,
- primaryColor: c,
- textColor2: d,
- fontSizeSmall: f,
- fontSizeMedium: v,
- fontSizeLarge: p,
- borderRadiusSmall: m,
- lineHeight: g
- } = e;
- return Object.assign(Object.assign({}, zK), {
- labelLineHeight: g,
- fontSizeSmall: f,
- fontSizeMedium: v,
- fontSizeLarge: p,
- borderRadius: m,
- color: t,
- colorChecked: c,
- colorDisabled: n,
- colorDisabledChecked: n,
- colorTableHeader: r,
- colorTableHeaderModal: o,
- colorTableHeaderPopover: i,
- checkMarkColor: t,
- checkMarkColorDisabled: a,
- checkMarkColorDisabledChecked: a,
- border: `1px solid ${s}`,
- borderDisabled: `1px solid ${s}`,
- borderDisabledChecked: `1px solid ${s}`,
- borderChecked: `1px solid ${c}`,
- borderFocus: `1px solid ${c}`,
- boxShadowFocus: `0 0 0 2px ${zt(c, { alpha: 0.3 })}`,
- textColor: d,
- textColorDisabled: a
- });
- },
- EK = { name: 'Checkbox', common: Nt, self: AK },
- Ry = EK,
- MK = h(
- 'svg',
- { viewBox: '0 0 64 64', class: 'check-icon' },
- h('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'
- })
- ),
- IK = h(
- 'svg',
- { viewBox: '0 0 100 100', class: 'line-icon' },
- h('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'
- })
- ),
- jk = 'n-checkbox-group',
- DK = {
- 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]
- },
- Uk = Re({
- name: 'CheckboxGroup',
- props: DK,
- setup(e) {
- const { mergedClsPrefixRef: t } = yt(e),
- n = ei(e),
- { mergedSizeRef: r, mergedDisabledRef: o } = n,
- i = Z(e.defaultValue),
- a = I(() => e.value),
- s = An(a, i),
- c = I(() => {
- var v;
- return (
- ((v = s.value) === null || v === void 0 ? void 0 : v.length) || 0
- );
- }),
- d = I(() => (Array.isArray(s.value) ? new Set(s.value) : new Set()));
- function f(v, p) {
- const { nTriggerFormInput: m, nTriggerFormChange: g } = n,
- { onChange: w, 'onUpdate:value': x, onUpdateValue: y } = e;
- if (Array.isArray(s.value)) {
- const C = Array.from(s.value),
- R = C.findIndex(S => S === p);
- v
- ? ~R ||
- (C.push(p),
- y && ze(y, C, { actionType: 'check', value: p }),
- x && ze(x, C, { actionType: 'check', value: p }),
- m(),
- g(),
- (i.value = C),
- w && ze(w, C))
- : ~R &&
- (C.splice(R, 1),
- y && ze(y, C, { actionType: 'uncheck', value: p }),
- x && ze(x, C, { actionType: 'uncheck', value: p }),
- w && ze(w, C),
- (i.value = C),
- m(),
- g());
- } else
- v
- ? (y && ze(y, [p], { actionType: 'check', value: p }),
- x && ze(x, [p], { actionType: 'check', value: p }),
- w && ze(w, [p]),
- (i.value = [p]),
- m(),
- g())
- : (y && ze(y, [], { actionType: 'uncheck', value: p }),
- x && ze(x, [], { actionType: 'uncheck', value: p }),
- w && ze(w, []),
- (i.value = []),
- m(),
- g());
- }
- return (
- Rt(jk, {
- checkedCountRef: c,
- maxRef: Ee(e, 'max'),
- minRef: Ee(e, 'min'),
- valueSetRef: d,
- disabledRef: o,
- mergedSizeRef: r,
- toggleCheckbox: f
- }),
- { mergedClsPrefix: t }
- );
- },
- render() {
- return h(
- 'div',
- { class: `${this.mergedClsPrefix}-checkbox-group`, role: 'group' },
- this.$slots
- );
- }
- }),
- FK = F([
- O(
- 'checkbox',
- `
- line-height: var(--n-label-line-height);
- font-size: var(--n-font-size);
- outline: none;
- cursor: pointer;
- display: inline-flex;
- flex-wrap: nowrap;
- align-items: flex-start;
- word-break: break-word;
- --n-merged-color-table: var(--n-color-table);
- `,
- [
- F('&:hover', [
- O('checkbox-box', [
- V('border', { border: 'var(--n-border-checked)' })
- ])
- ]),
- F('&:focus:not(:active)', [
- O('checkbox-box', [
- V(
- 'border',
- `
- border: var(--n-border-focus);
- box-shadow: var(--n-box-shadow-focus);
- `
- )
- ])
- ]),
- U('inside-table', [
- O(
- 'checkbox-box',
- `
- background-color: var(--n-merged-color-table);
- `
- )
- ]),
- U('checked', [
- O(
- 'checkbox-box',
- `
- background-color: var(--n-color-checked);
- `,
- [
- O('checkbox-icon', [
- F(
- '.check-icon',
- `
- opacity: 1;
- transform: scale(1);
- `
- )
- ])
- ]
- )
- ]),
- U('indeterminate', [
- O('checkbox-box', [
- O('checkbox-icon', [
- F(
- '.check-icon',
- `
- opacity: 0;
- transform: scale(.5);
- `
- ),
- F(
- '.line-icon',
- `
- opacity: 1;
- transform: scale(1);
- `
- )
- ])
- ])
- ]),
- U('checked, indeterminate', [
- F('&:focus:not(:active)', [
- O('checkbox-box', [
- V(
- 'border',
- `
- border: var(--n-border-checked);
- box-shadow: var(--n-box-shadow-focus);
- `
- )
- ])
- ]),
- O(
- 'checkbox-box',
- `
- background-color: var(--n-color-checked);
- border-left: 0;
- border-top: 0;
- `,
- [V('border', { border: 'var(--n-border-checked)' })]
- )
- ]),
- U('disabled', { cursor: 'not-allowed' }, [
- U('checked', [
- O(
- 'checkbox-box',
- `
- background-color: var(--n-color-disabled-checked);
- `,
- [
- V('border', { border: 'var(--n-border-disabled-checked)' }),
- O('checkbox-icon', [
- F('.check-icon, .line-icon', {
- fill: 'var(--n-check-mark-color-disabled-checked)'
- })
- ])
- ]
- )
- ]),
- O(
- 'checkbox-box',
- `
- background-color: var(--n-color-disabled);
- `,
- [
- V('border', { border: 'var(--n-border-disabled)' }),
- O('checkbox-icon', [
- F('.check-icon, .line-icon', {
- fill: 'var(--n-check-mark-color-disabled)'
- })
- ])
- ]
- ),
- V('label', { color: 'var(--n-text-color-disabled)' })
- ]),
- O(
- 'checkbox-box-wrapper',
- `
- position: relative;
- width: var(--n-size);
- flex-shrink: 0;
- flex-grow: 0;
- user-select: none;
- -webkit-user-select: none;
- `
- ),
- O(
- 'checkbox-box',
- `
- position: absolute;
- left: 0;
- top: 50%;
- transform: translateY(-50%);
- height: var(--n-size);
- width: var(--n-size);
- display: inline-block;
- box-sizing: border-box;
- border-radius: var(--n-border-radius);
- background-color: var(--n-color);
- transition: background-color 0.3s var(--n-bezier);
- `,
- [
- V(
- 'border',
- `
- transition:
- border-color .3s var(--n-bezier),
- box-shadow .3s var(--n-bezier);
- border-radius: inherit;
- position: absolute;
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- border: var(--n-border);
- `
- ),
- O(
- 'checkbox-icon',
- `
- display: flex;
- align-items: center;
- justify-content: center;
- position: absolute;
- left: 1px;
- right: 1px;
- top: 1px;
- bottom: 1px;
- `,
- [
- F(
- '.check-icon, .line-icon',
- `
- width: 100%;
- fill: var(--n-check-mark-color);
- opacity: 0;
- transform: scale(0.5);
- transform-origin: center;
- transition:
- fill 0.3s var(--n-bezier),
- transform 0.3s var(--n-bezier),
- opacity 0.3s var(--n-bezier),
- border-color 0.3s var(--n-bezier);
- `
- ),
- br({ left: '1px', top: '1px' })
- ]
- )
- ]
- ),
- V(
- 'label',
- `
- color: var(--n-text-color);
- transition: color .3s var(--n-bezier);
- user-select: none;
- -webkit-user-select: none;
- padding: var(--n-label-padding);
- font-weight: var(--n-label-font-weight);
- `,
- [F('&:empty', { display: 'none' })]
- )
- ]
- ),
- xl(
- O(
- 'checkbox',
- `
- --n-merged-color-table: var(--n-color-table-modal);
- `
- )
- ),
- Ps(
- O(
- 'checkbox',
- `
- --n-merged-color-table: var(--n-color-table-popover);
- `
- )
- )
- ]),
- BK = Object.assign(Object.assign({}, Ke.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]
- }),
- Vu = Re({
- name: 'Checkbox',
- props: BK,
- setup(e) {
- const t = Z(null),
- {
- mergedClsPrefixRef: n,
- inlineThemeDisabled: r,
- mergedRtlRef: o
- } = yt(e),
- i = ei(e, {
- mergedSize(P) {
- const { size: T } = e;
- if (T !== void 0) return T;
- if (c) {
- const { value: A } = c.mergedSizeRef;
- if (A !== void 0) return A;
- }
- if (P) {
- const { mergedSize: A } = P;
- if (A !== void 0) return A.value;
- }
- return 'medium';
- },
- mergedDisabled(P) {
- const { disabled: T } = e;
- if (T !== void 0) return T;
- if (c) {
- if (c.disabledRef.value) return !0;
- const {
- maxRef: { value: A },
- checkedCountRef: z
- } = c;
- if (A !== void 0 && z.value >= A && !p.value) return !0;
- const {
- minRef: { value: k }
- } = c;
- if (k !== void 0 && z.value <= k && p.value) return !0;
- }
- return P ? P.disabled.value : !1;
- }
- }),
- { mergedDisabledRef: a, mergedSizeRef: s } = i,
- c = Ze(jk, null),
- d = Z(e.defaultChecked),
- f = Ee(e, 'checked'),
- v = An(f, d),
- p = kt(() => {
- if (c) {
- const P = c.valueSetRef.value;
- return P && e.value !== void 0 ? P.has(e.value) : !1;
- } else return v.value === e.checkedValue;
- }),
- m = Ke('Checkbox', '-checkbox', FK, Ry, e, n);
- function g(P) {
- if (c && e.value !== void 0) c.toggleCheckbox(!p.value, e.value);
- else {
- const { onChange: T, 'onUpdate:checked': A, onUpdateChecked: z } = e,
- { nTriggerFormInput: k, nTriggerFormChange: M } = i,
- E = p.value ? e.uncheckedValue : e.checkedValue;
- A && ze(A, E, P),
- z && ze(z, E, P),
- T && ze(T, E, P),
- k(),
- M(),
- (d.value = E);
- }
- }
- function w(P) {
- a.value || g(P);
- }
- function x(P) {
- if (!a.value)
- switch (P.key) {
- case ' ':
- case 'Enter':
- g(P);
- }
- }
- function y(P) {
- switch (P.key) {
- case ' ':
- P.preventDefault();
- }
- }
- const C = {
- focus: () => {
- var P;
- (P = t.value) === null || P === void 0 || P.focus();
- },
- blur: () => {
- var P;
- (P = t.value) === null || P === void 0 || P.blur();
- }
- },
- R = dr('Checkbox', o, n),
- S = I(() => {
- const { value: P } = s,
- {
- common: { cubicBezierEaseInOut: T },
- self: {
- borderRadius: A,
- color: z,
- colorChecked: k,
- colorDisabled: M,
- colorTableHeader: E,
- colorTableHeaderModal: D,
- colorTableHeaderPopover: L,
- checkMarkColor: j,
- checkMarkColorDisabled: B,
- border: q,
- borderFocus: G,
- borderDisabled: ne,
- borderChecked: X,
- boxShadowFocus: J,
- textColor: re,
- textColorDisabled: ce,
- checkMarkColorDisabledChecked: pe,
- colorDisabledChecked: Fe,
- borderDisabledChecked: Ie,
- labelPadding: le,
- labelLineHeight: me,
- labelFontWeight: he,
- [Oe('fontSize', P)]: ue,
- [Oe('size', P)]: Ae
- }
- } = m.value;
- return {
- '--n-label-line-height': me,
- '--n-label-font-weight': he,
- '--n-size': Ae,
- '--n-bezier': T,
- '--n-border-radius': A,
- '--n-border': q,
- '--n-border-checked': X,
- '--n-border-focus': G,
- '--n-border-disabled': ne,
- '--n-border-disabled-checked': Ie,
- '--n-box-shadow-focus': J,
- '--n-color': z,
- '--n-color-checked': k,
- '--n-color-table': E,
- '--n-color-table-modal': D,
- '--n-color-table-popover': L,
- '--n-color-disabled': M,
- '--n-color-disabled-checked': Fe,
- '--n-text-color': re,
- '--n-text-color-disabled': ce,
- '--n-check-mark-color': j,
- '--n-check-mark-color-disabled': B,
- '--n-check-mark-color-disabled-checked': pe,
- '--n-font-size': ue,
- '--n-label-padding': le
- };
- }),
- _ = r
- ? Mt(
- 'checkbox',
- I(() => s.value[0]),
- S,
- e
- )
- : void 0;
- return Object.assign(i, C, {
- rtlEnabled: R,
- selfRef: t,
- mergedClsPrefix: n,
- mergedDisabled: a,
- renderedChecked: p,
- mergedTheme: m,
- labelId: pi(),
- handleClick: w,
- handleKeyUp: x,
- handleKeyDown: y,
- cssVars: r ? void 0 : S,
- themeClass: _ == null ? void 0 : _.themeClass,
- onRender: _ == null ? void 0 : _.onRender
- });
- },
- render() {
- var e;
- const {
- $slots: t,
- renderedChecked: n,
- mergedDisabled: r,
- indeterminate: o,
- privateInsideTable: i,
- cssVars: a,
- labelId: s,
- label: c,
- mergedClsPrefix: d,
- focusable: f,
- handleKeyUp: v,
- handleKeyDown: p,
- handleClick: m
- } = this;
- return (
- (e = this.onRender) === null || e === void 0 || e.call(this),
- h(
- 'div',
- {
- ref: 'selfRef',
- class: [
- `${d}-checkbox`,
- this.themeClass,
- this.rtlEnabled && `${d}-checkbox--rtl`,
- n && `${d}-checkbox--checked`,
- r && `${d}-checkbox--disabled`,
- o && `${d}-checkbox--indeterminate`,
- i && `${d}-checkbox--inside-table`
- ],
- tabindex: r || !f ? void 0 : 0,
- role: 'checkbox',
- 'aria-checked': o ? 'mixed' : n,
- 'aria-labelledby': s,
- style: a,
- onKeyup: v,
- onKeydown: p,
- onClick: m,
- onMousedown: () => {
- Tn(
- 'selectstart',
- window,
- g => {
- g.preventDefault();
- },
- { once: !0 }
- );
- }
- },
- h(
- 'div',
- { class: `${d}-checkbox-box-wrapper` },
- ' ',
- h(
- 'div',
- { class: `${d}-checkbox-box` },
- h(Zi, null, {
- default: () =>
- this.indeterminate
- ? h(
- 'div',
- { key: 'indeterminate', class: `${d}-checkbox-icon` },
- IK
- )
- : h(
- 'div',
- { key: 'check', class: `${d}-checkbox-icon` },
- MK
- )
- }),
- h('div', { class: `${d}-checkbox-box__border` })
- )
- ),
- c !== null || t.default
- ? h(
- 'span',
- { class: `${d}-checkbox__label`, id: s },
- t.default ? t.default() : c
- )
- : null
- )
- );
- }
- }),
- LK = {
- 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: () => (
- Do('config-provider', '`as` is deprecated, please use `tag` instead.'),
- !0
- ),
- default: void 0
- }
- },
- Py = Re({
- name: 'ConfigProvider',
- alias: ['App'],
- props: LK,
- setup(e) {
- const t = Ze(wa, null),
- n = I(() => {
- const { theme: g } = e;
- if (g === null) return;
- const w = t == null ? void 0 : t.mergedThemeRef.value;
- return g === void 0 ? w : w === void 0 ? g : Object.assign({}, w, g);
- }),
- r = I(() => {
- const { themeOverrides: g } = e;
- if (g !== null) {
- if (g === void 0)
- return t == null ? void 0 : t.mergedThemeOverridesRef.value;
- {
- const w = t == null ? void 0 : t.mergedThemeOverridesRef.value;
- return w === void 0 ? g : Hd({}, w, g);
- }
- }
- }),
- o = kt(() => {
- const { namespace: g } = e;
- return g === void 0
- ? t == null
- ? void 0
- : t.mergedNamespaceRef.value
- : g;
- }),
- i = kt(() => {
- const { bordered: g } = e;
- return g === void 0
- ? t == null
- ? void 0
- : t.mergedBorderedRef.value
- : g;
- }),
- a = I(() => {
- const { icons: g } = e;
- return g === void 0
- ? t == null
- ? void 0
- : t.mergedIconsRef.value
- : g;
- }),
- s = I(() => {
- const { componentOptions: g } = e;
- return g !== void 0
- ? g
- : t == null
- ? void 0
- : t.mergedComponentPropsRef.value;
- }),
- c = I(() => {
- const { clsPrefix: g } = e;
- return g !== void 0
- ? g
- : t == null
- ? void 0
- : t.mergedClsPrefixRef.value;
- }),
- d = I(() => {
- var g;
- const { rtl: w } = e;
- if (w === void 0) return t == null ? void 0 : t.mergedRtlRef.value;
- const x = {};
- for (const y of w)
- (x[y.name] = Tc(y)),
- (g = y.peers) === null ||
- g === void 0 ||
- g.forEach(C => {
- C.name in x || (x[C.name] = Tc(C));
- });
- return x;
- }),
- f = I(
- () =>
- e.breakpoints || (t == null ? void 0 : t.mergedBreakpointsRef.value)
- ),
- v =
- e.inlineThemeDisabled || (t == null ? void 0 : t.inlineThemeDisabled),
- p =
- e.preflightStyleDisabled ||
- (t == null ? void 0 : t.preflightStyleDisabled),
- m = I(() => {
- const { value: g } = n,
- { value: w } = r,
- x = w && Object.keys(w).length !== 0,
- y = g == null ? void 0 : g.name;
- return y
- ? x
- ? `${y}-${wu(JSON.stringify(r.value))}`
- : y
- : x
- ? wu(JSON.stringify(r.value))
- : '';
- });
- return (
- Rt(wa, {
- mergedThemeHashRef: m,
- mergedBreakpointsRef: f,
- mergedRtlRef: d,
- mergedIconsRef: a,
- mergedComponentPropsRef: s,
- mergedBorderedRef: i,
- mergedNamespaceRef: o,
- mergedClsPrefixRef: c,
- mergedLocaleRef: I(() => {
- const { locale: g } = e;
- if (g !== null)
- return g === void 0
- ? t == null
- ? void 0
- : t.mergedLocaleRef.value
- : g;
- }),
- mergedDateLocaleRef: I(() => {
- const { dateLocale: g } = e;
- if (g !== null)
- return g === void 0
- ? t == null
- ? void 0
- : t.mergedDateLocaleRef.value
- : g;
- }),
- mergedHljsRef: I(() => {
- const { hljs: g } = e;
- return g === void 0
- ? t == null
- ? void 0
- : t.mergedHljsRef.value
- : g;
- }),
- mergedKatexRef: I(() => {
- const { katex: g } = e;
- return g === void 0
- ? t == null
- ? void 0
- : t.mergedKatexRef.value
- : g;
- }),
- mergedThemeRef: n,
- mergedThemeOverridesRef: r,
- inlineThemeDisabled: v || !1,
- preflightStyleDisabled: p || !1
- }),
- {
- mergedClsPrefix: c,
- mergedBordered: i,
- mergedNamespace: o,
- mergedTheme: n,
- mergedThemeOverrides: r
- }
- );
- },
- render() {
- var e, t, n, r;
- return this.abstract
- ? (r = (n = this.$slots).default) === null || r === void 0
- ? void 0
- : r.call(n)
- : h(
- this.as || this.tag,
- { class: `${this.mergedClsPrefix || JP}-config-provider` },
- (t = (e = this.$slots).default) === null || t === void 0
- ? void 0
- : t.call(e)
- );
- }
- });
- function NK(e) {
- const { boxShadow2: t } = e;
- return { menuBoxShadow: t };
- }
- const HK = {
- name: 'Popselect',
- common: Nt,
- peers: { Popover: nd, InternalSelectMenu: Sy },
- self: NK
- },
- ky = HK,
- Wk = 'n-popselect',
- jK = O(
- 'popselect-menu',
- `
- box-shadow: var(--n-menu-box-shadow);
- `
- ),
- Ty = {
- 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]
- },
- $S = Vi(Ty),
- UK = Re({
- name: 'PopselectPanel',
- props: Ty,
- setup(e) {
- const t = Ze(Wk),
- { mergedClsPrefixRef: n, inlineThemeDisabled: r } = yt(e),
- o = Ke('Popselect', '-pop-select', jK, ky, t.props, n),
- i = I(() => td(e.options, Mk('value', 'children')));
- function a(p, m) {
- const { onUpdateValue: g, 'onUpdate:value': w, onChange: x } = e;
- g && ze(g, p, m), w && ze(w, p, m), x && ze(x, p, m);
- }
- function s(p) {
- d(p.key);
- }
- function c(p) {
- Io(p, 'action') || p.preventDefault();
- }
- function d(p) {
- const {
- value: { getNode: m }
- } = i;
- if (e.multiple)
- if (Array.isArray(e.value)) {
- const g = [],
- w = [];
- let x = !0;
- e.value.forEach(y => {
- if (y === p) {
- x = !1;
- return;
- }
- const C = m(y);
- C && (g.push(C.key), w.push(C.rawNode));
- }),
- x && (g.push(p), w.push(m(p).rawNode)),
- a(g, w);
- } else {
- const g = m(p);
- g && a([p], [g.rawNode]);
- }
- else if (e.value === p && e.cancelable) a(null, null);
- else {
- const g = m(p);
- g && a(p, g.rawNode);
- const { 'onUpdate:show': w, onUpdateShow: x } = t.props;
- w && ze(w, !1), x && ze(x, !1), t.setShow(!1);
- }
- mn(() => {
- t.syncPosition();
- });
- }
- $t(Ee(e, 'options'), () => {
- mn(() => {
- t.syncPosition();
- });
- });
- const f = I(() => {
- const {
- self: { menuBoxShadow: p }
- } = o.value;
- return { '--n-menu-box-shadow': p };
- }),
- v = r ? Mt('select', void 0, f, t.props) : void 0;
- return {
- mergedTheme: t.mergedThemeRef,
- mergedClsPrefix: n,
- treeMate: i,
- handleToggle: s,
- handleMenuMousedown: c,
- cssVars: r ? void 0 : f,
- themeClass: v == null ? void 0 : v.themeClass,
- onRender: v == null ? void 0 : v.onRender
- };
- },
- render() {
- var e;
- return (
- (e = this.onRender) === null || e === void 0 || e.call(this),
- h(
- Rk,
- {
- 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, n;
- return (
- ((n = (t = this.$slots).action) === null || n === void 0
- ? void 0
- : n.call(t)) || []
- );
- },
- empty: () => {
- var t, n;
- return (
- ((n = (t = this.$slots).empty) === null || n === void 0
- ? void 0
- : n.call(t)) || []
- );
- }
- }
- )
- );
- }
- }),
- WK = Object.assign(
- Object.assign(
- Object.assign(
- Object.assign({}, Ke.props),
- Yc(Ic, ['showArrow', 'arrow'])
- ),
- {
- placement: Object.assign(Object.assign({}, Ic.placement), {
- default: 'bottom'
- }),
- trigger: { type: String, default: 'hover' }
- }
- ),
- Ty
- ),
- VK = Re({
- name: 'Popselect',
- props: WK,
- inheritAttrs: !1,
- __popover__: !0,
- setup(e) {
- const { mergedClsPrefixRef: t } = yt(e),
- n = Ke('Popselect', '-popselect', void 0, ky, e, t),
- r = Z(null);
- function o() {
- var s;
- (s = r.value) === null || s === void 0 || s.syncPosition();
- }
- function i(s) {
- var c;
- (c = r.value) === null || c === void 0 || c.setShow(s);
- }
- return (
- Rt(Wk, { props: e, mergedThemeRef: n, syncPosition: o, setShow: i }),
- Object.assign(Object.assign({}, { syncPosition: o, setShow: i }), {
- popoverInstRef: r,
- mergedTheme: n
- })
- );
- },
- render() {
- const { mergedTheme: e } = this,
- t = {
- theme: e.peers.Popover,
- themeOverrides: e.peerOverrides.Popover,
- builtinThemeOverrides: { padding: '0' },
- ref: 'popoverInstRef',
- internalRenderBody: (n, r, o, i, a) => {
- const { $attrs: s } = this;
- return h(
- UK,
- Object.assign(
- {},
- s,
- { class: [s.class, n], style: [s.style, o] },
- fi(this.$props, $S),
- {
- ref: zR(r),
- onMouseenter: Qd([i, s.onMouseenter]),
- onMouseleave: Qd([a, s.onMouseleave])
- }
- ),
- {
- action: () => {
- var c, d;
- return (d = (c = this.$slots).action) === null || d === void 0
- ? void 0
- : d.call(c);
- },
- empty: () => {
- var c, d;
- return (d = (c = this.$slots).empty) === null || d === void 0
- ? void 0
- : d.call(c);
- }
- }
- );
- }
- };
- return h(
- rd,
- Object.assign({}, Yc(this.$props, $S), t, {
- internalDeactivateImmediately: !0
- }),
- {
- trigger: () => {
- var n, r;
- return (r = (n = this.$slots).default) === null || r === void 0
- ? void 0
- : r.call(n);
- }
- }
- );
- }
- });
- function KK(e) {
- const { boxShadow2: t } = e;
- return { menuBoxShadow: t };
- }
- const qK = {
- name: 'Select',
- common: Nt,
- peers: { InternalSelection: zk, InternalSelectMenu: Sy },
- self: KK
- },
- Vk = qK,
- YK = F([
- O(
- 'select',
- `
- z-index: auto;
- outline: none;
- width: 100%;
- position: relative;
- `
- ),
- O(
- 'select-menu',
- `
- margin: 4px 0;
- box-shadow: var(--n-menu-box-shadow);
- `,
- [
- gi({
- originalTransition:
- 'background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)'
- })
- ]
- )
- ]),
- GK = Object.assign(Object.assign({}, Ke.props), {
- to: Yr.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 },
- keyboard: { type: Boolean, default: !0 },
- 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
- }),
- Kk = Re({
- name: 'Select',
- props: GK,
- setup(e) {
- const {
- mergedClsPrefixRef: t,
- mergedBorderedRef: n,
- namespaceRef: r,
- inlineThemeDisabled: o
- } = yt(e),
- i = Ke('Select', '-select', YK, Vk, e, t),
- a = Z(e.defaultValue),
- s = Ee(e, 'value'),
- c = An(s, a),
- d = Z(!1),
- f = Z(''),
- v = I(() => {
- const { valueField: ie, childrenField: $e } = e,
- Ue = Mk(ie, $e);
- return td(E.value, Ue);
- }),
- p = I(() => _V(k.value, e.valueField, e.childrenField)),
- m = Z(!1),
- g = An(Ee(e, 'show'), m),
- w = Z(null),
- x = Z(null),
- y = Z(null),
- { localeRef: C } = ka('Select'),
- R = I(() => {
- var ie;
- return (ie = e.placeholder) !== null && ie !== void 0
- ? ie
- : C.value.placeholder;
- }),
- S = xs(e, ['items', 'options']),
- _ = [],
- P = Z([]),
- T = Z([]),
- A = Z(new Map()),
- z = I(() => {
- const { fallbackOption: ie } = e;
- if (ie === void 0) {
- const { labelField: $e, valueField: Ue } = e;
- return lt => ({ [$e]: String(lt), [Ue]: lt });
- }
- return ie === !1 ? !1 : $e => Object.assign(ie($e), { value: $e });
- }),
- k = I(() => T.value.concat(P.value).concat(S.value)),
- M = I(() => {
- const { filter: ie } = e;
- if (ie) return ie;
- const { labelField: $e, valueField: Ue } = e;
- return (lt, st) => {
- if (!st) return !1;
- const be = st[$e];
- if (typeof be == 'string') return Ng(lt, be);
- const He = st[Ue];
- return typeof He == 'string'
- ? Ng(lt, He)
- : typeof He == 'number'
- ? Ng(lt, String(He))
- : !1;
- };
- }),
- E = I(() => {
- if (e.remote) return S.value;
- {
- const { value: ie } = k,
- { value: $e } = f;
- return !$e.length || !e.filterable
- ? ie
- : SV(ie, M.value, $e, e.childrenField);
- }
- });
- function D(ie) {
- const $e = e.remote,
- { value: Ue } = A,
- { value: lt } = p,
- { value: st } = z,
- be = [];
- return (
- ie.forEach(He => {
- if (lt.has(He)) be.push(lt.get(He));
- else if ($e && Ue.has(He)) be.push(Ue.get(He));
- else if (st) {
- const tt = st(He);
- tt && be.push(tt);
- }
- }),
- be
- );
- }
- const L = I(() => {
- if (e.multiple) {
- const { value: ie } = c;
- return Array.isArray(ie) ? D(ie) : [];
- }
- return null;
- }),
- j = I(() => {
- const { value: ie } = c;
- return !e.multiple && !Array.isArray(ie)
- ? ie === null
- ? null
- : D([ie])[0] || null
- : null;
- }),
- B = ei(e),
- { mergedSizeRef: q, mergedDisabledRef: G, mergedStatusRef: ne } = B;
- function X(ie, $e) {
- const { onChange: Ue, 'onUpdate:value': lt, onUpdateValue: st } = e,
- { nTriggerFormChange: be, nTriggerFormInput: He } = B;
- Ue && ze(Ue, ie, $e),
- st && ze(st, ie, $e),
- lt && ze(lt, ie, $e),
- (a.value = ie),
- be(),
- He();
- }
- function J(ie) {
- const { onBlur: $e } = e,
- { nTriggerFormBlur: Ue } = B;
- $e && ze($e, ie), Ue();
- }
- function re() {
- const { onClear: ie } = e;
- ie && ze(ie);
- }
- function ce(ie) {
- const { onFocus: $e, showOnFocus: Ue } = e,
- { nTriggerFormFocus: lt } = B;
- $e && ze($e, ie), lt(), Ue && me();
- }
- function pe(ie) {
- const { onSearch: $e } = e;
- $e && ze($e, ie);
- }
- function Fe(ie) {
- const { onScroll: $e } = e;
- $e && ze($e, ie);
- }
- function Ie() {
- var ie;
- const { remote: $e, multiple: Ue } = e;
- if ($e) {
- const { value: lt } = A;
- if (Ue) {
- const { valueField: st } = e;
- (ie = L.value) === null ||
- ie === void 0 ||
- ie.forEach(be => {
- lt.set(be[st], be);
- });
- } else {
- const st = j.value;
- st && lt.set(st[e.valueField], st);
- }
- }
- }
- function le(ie) {
- const { onUpdateShow: $e, 'onUpdate:show': Ue } = e;
- $e && ze($e, ie), Ue && ze(Ue, ie), (m.value = ie);
- }
- function me() {
- G.value || (le(!0), (m.value = !0), e.filterable && Lt());
- }
- function he() {
- le(!1);
- }
- function ue() {
- (f.value = ''), (T.value = _);
- }
- const Ae = Z(!1);
- function W() {
- e.filterable && (Ae.value = !0);
- }
- function Q() {
- e.filterable && ((Ae.value = !1), g.value || ue());
- }
- function ee() {
- G.value || (g.value ? (e.filterable ? Lt() : he()) : me());
- }
- function ve(ie) {
- var $e, Ue;
- (!(
- (Ue =
- ($e = y.value) === null || $e === void 0 ? void 0 : $e.selfRef) ===
- null || Ue === void 0
- ) &&
- Ue.contains(ie.relatedTarget)) ||
- ((d.value = !1), J(ie), he());
- }
- function oe(ie) {
- ce(ie), (d.value = !0);
- }
- function H(ie) {
- d.value = !0;
- }
- function ae(ie) {
- var $e;
- (!(($e = w.value) === null || $e === void 0) &&
- $e.$el.contains(ie.relatedTarget)) ||
- ((d.value = !1), J(ie), he());
- }
- function ge() {
- var ie;
- (ie = w.value) === null || ie === void 0 || ie.focus(), he();
- }
- function Ce(ie) {
- var $e;
- g.value &&
- ((!(($e = w.value) === null || $e === void 0) &&
- $e.$el.contains(ya(ie))) ||
- he());
- }
- function se(ie) {
- if (!Array.isArray(ie)) return [];
- if (z.value) return Array.from(ie);
- {
- const { remote: $e } = e,
- { value: Ue } = p;
- if ($e) {
- const { value: lt } = A;
- return ie.filter(st => Ue.has(st) || lt.has(st));
- } else return ie.filter(lt => Ue.has(lt));
- }
- }
- function Se(ie) {
- Ne(ie.rawNode);
- }
- function Ne(ie) {
- if (G.value) return;
- const {
- tag: $e,
- remote: Ue,
- clearFilterAfterSelect: lt,
- valueField: st
- } = e;
- if ($e && !Ue) {
- const { value: be } = T,
- He = be[0] || null;
- if (He) {
- const tt = P.value;
- tt.length ? tt.push(He) : (P.value = [He]), (T.value = _);
- }
- }
- if ((Ue && A.value.set(ie[st], ie), e.multiple)) {
- const be = se(c.value),
- He = be.findIndex(tt => tt === ie[st]);
- if (~He) {
- if ((be.splice(He, 1), $e && !Ue)) {
- const tt = Ge(ie[st]);
- ~tt && (P.value.splice(tt, 1), lt && (f.value = ''));
- }
- } else be.push(ie[st]), lt && (f.value = '');
- X(be, D(be));
- } else {
- if ($e && !Ue) {
- const be = Ge(ie[st]);
- ~be ? (P.value = [P.value[be]]) : (P.value = _);
- }
- wt(), he(), X(ie[st], ie);
- }
- }
- function Ge(ie) {
- return P.value.findIndex(Ue => Ue[e.valueField] === ie);
- }
- function it(ie) {
- g.value || me();
- const { value: $e } = ie.target;
- f.value = $e;
- const { tag: Ue, remote: lt } = e;
- if ((pe($e), Ue && !lt)) {
- if (!$e) {
- T.value = _;
- return;
- }
- const { onCreate: st } = e,
- be = st ? st($e) : { [e.labelField]: $e, [e.valueField]: $e },
- { valueField: He } = e;
- S.value.some(tt => tt[He] === be[He]) ||
- P.value.some(tt => tt[He] === be[He])
- ? (T.value = _)
- : (T.value = [be]);
- }
- }
- function dt(ie) {
- ie.stopPropagation();
- const { multiple: $e } = e;
- !$e && e.filterable && he(), re(), $e ? X([], []) : X(null, null);
- }
- function xt(ie) {
- !Io(ie, 'action') && !Io(ie, 'empty') && ie.preventDefault();
- }
- function Me(ie) {
- Fe(ie);
- }
- function ut(ie) {
- var $e, Ue, lt, st, be;
- if (!e.keyboard) {
- ie.preventDefault();
- return;
- }
- switch (ie.key) {
- case ' ':
- if (e.filterable) break;
- ie.preventDefault();
- case 'Enter':
- if (
- !(!(($e = w.value) === null || $e === void 0) && $e.isComposing)
- ) {
- if (g.value) {
- const He =
- (Ue = y.value) === null || Ue === void 0
- ? void 0
- : Ue.getPendingTmNode();
- He ? Se(He) : e.filterable || (he(), wt());
- } else if ((me(), e.tag && Ae.value)) {
- const He = T.value[0];
- if (He) {
- const tt = He[e.valueField],
- { value: pt } = c;
- (e.multiple &&
- Array.isArray(pt) &&
- pt.some(_e => _e === tt)) ||
- Ne(He);
- }
- }
- }
- ie.preventDefault();
- break;
- case 'ArrowUp':
- if ((ie.preventDefault(), e.loading)) return;
- g.value && ((lt = y.value) === null || lt === void 0 || lt.prev());
- break;
- case 'ArrowDown':
- if ((ie.preventDefault(), e.loading)) return;
- g.value
- ? (st = y.value) === null || st === void 0 || st.next()
- : me();
- break;
- case 'Escape':
- g.value && (Su(ie), he()),
- (be = w.value) === null || be === void 0 || be.focus();
- break;
- }
- }
- function wt() {
- var ie;
- (ie = w.value) === null || ie === void 0 || ie.focus();
- }
- function Lt() {
- var ie;
- (ie = w.value) === null || ie === void 0 || ie.focusInput();
- }
- function ot() {
- var ie;
- g.value &&
- ((ie = x.value) === null || ie === void 0 || ie.syncPosition());
- }
- Ie(), $t(Ee(e, 'options'), Ie);
- const ct = {
- focus: () => {
- var ie;
- (ie = w.value) === null || ie === void 0 || ie.focus();
- },
- blur: () => {
- var ie;
- (ie = w.value) === null || ie === void 0 || ie.blur();
- }
- },
- Xe = I(() => {
- const {
- self: { menuBoxShadow: ie }
- } = i.value;
- return { '--n-menu-box-shadow': ie };
- }),
- Qe = o ? Mt('select', void 0, Xe, e) : void 0;
- return Object.assign(Object.assign({}, ct), {
- mergedStatus: ne,
- mergedClsPrefix: t,
- mergedBordered: n,
- namespace: r,
- treeMate: v,
- isMounted: yi(),
- triggerRef: w,
- menuRef: y,
- pattern: f,
- uncontrolledShow: m,
- mergedShow: g,
- adjustedTo: Yr(e),
- uncontrolledValue: a,
- mergedValue: c,
- followerRef: x,
- localizedPlaceholder: R,
- selectedOption: j,
- selectedOptions: L,
- mergedSize: q,
- mergedDisabled: G,
- focused: d,
- activeWithoutMenuOpen: Ae,
- inlineThemeDisabled: o,
- onTriggerInputFocus: W,
- onTriggerInputBlur: Q,
- handleTriggerOrMenuResize: ot,
- handleMenuFocus: H,
- handleMenuBlur: ae,
- handleMenuTabOut: ge,
- handleTriggerClick: ee,
- handleToggle: Se,
- handleDeleteOption: Ne,
- handlePatternInput: it,
- handleClear: dt,
- handleTriggerBlur: ve,
- handleTriggerFocus: oe,
- handleKeydown: ut,
- handleMenuAfterLeave: ue,
- handleMenuClickOutside: Ce,
- handleMenuScroll: Me,
- handleMenuKeydown: ut,
- handleMenuMousedown: xt,
- mergedTheme: i,
- cssVars: o ? void 0 : Xe,
- themeClass: Qe == null ? void 0 : Qe.themeClass,
- onRender: Qe == null ? void 0 : Qe.onRender
- });
- },
- render() {
- return h(
- 'div',
- { class: `${this.mergedClsPrefix}-select` },
- h(Xc, null, {
- default: () => [
- h(Zc, null, {
- default: () =>
- h(
- dV,
- {
- 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)
- ];
- }
- }
- )
- }),
- h(
- Qc,
- {
- ref: 'followerRef',
- show: this.mergedShow,
- to: this.adjustedTo,
- teleportDisabled: this.adjustedTo === Yr.tdkey,
- containerClass: this.namespace,
- width: this.consistentMenuWidth ? 'target' : void 0,
- minWidth: 'target',
- placement: this.placement
- },
- {
- default: () =>
- h(
- Kn,
- {
- name: 'fade-in-scale-up-transition',
- appear: this.isMounted,
- onAfterLeave: this.handleMenuAfterLeave
- },
- {
- default: () => {
- var e, t, n;
- return this.mergedShow ||
- this.displayDirective === 'show'
- ? ((e = this.onRender) === null ||
- e === void 0 ||
- e.call(this),
- Er(
- h(
- Rk,
- 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: [
- (n = this.menuProps) === null ||
- n === void 0
- ? void 0
- : n.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 r, o;
- return [
- (o = (r = this.$slots).empty) === null ||
- o === void 0
- ? void 0
- : o.call(r)
- ];
- },
- action: () => {
- var r, o;
- return [
- (o = (r = this.$slots).action) === null ||
- o === void 0
- ? void 0
- : o.call(r)
- ];
- }
- }
- ),
- this.displayDirective === 'show'
- ? [
- [vi, this.mergedShow],
- [
- xa,
- this.handleMenuClickOutside,
- void 0,
- { capture: !0 }
- ]
- ]
- : [
- [
- xa,
- this.handleMenuClickOutside,
- void 0,
- { capture: !0 }
- ]
- ]
- ))
- : null;
- }
- }
- )
- }
- )
- ]
- })
- );
- }
- }),
- XK = {
- 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'
- },
- ZK = e => {
- const {
- textColor2: t,
- primaryColor: n,
- primaryColorHover: r,
- primaryColorPressed: o,
- inputColorDisabled: i,
- textColorDisabled: a,
- borderColor: s,
- borderRadius: c,
- fontSizeTiny: d,
- fontSizeSmall: f,
- fontSizeMedium: v,
- heightTiny: p,
- heightSmall: m,
- heightMedium: g
- } = e;
- return Object.assign(Object.assign({}, XK), {
- 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: r,
- itemTextColorPressed: o,
- itemTextColorActive: n,
- itemTextColorDisabled: a,
- itemColor: '#0000',
- itemColorHover: '#0000',
- itemColorPressed: '#0000',
- itemColorActive: '#0000',
- itemColorActiveHover: '#0000',
- itemColorDisabled: i,
- itemBorder: '1px solid #0000',
- itemBorderHover: '1px solid #0000',
- itemBorderPressed: '1px solid #0000',
- itemBorderActive: `1px solid ${n}`,
- itemBorderDisabled: `1px solid ${s}`,
- itemBorderRadius: c,
- itemSizeSmall: p,
- itemSizeMedium: m,
- itemSizeLarge: g,
- itemFontSizeSmall: d,
- itemFontSizeMedium: f,
- itemFontSizeLarge: v,
- jumperFontSizeSmall: d,
- jumperFontSizeMedium: f,
- jumperFontSizeLarge: v,
- jumperTextColor: t,
- jumperTextColorDisabled: a
- });
- },
- QK = {
- name: 'Pagination',
- common: Nt,
- peers: { Select: Vk, Input: Wu, Popselect: ky },
- self: ZK
- },
- qk = QK;
- function JK(e, t, n) {
- let r = !1,
- o = !1,
- i = 1,
- a = t;
- if (t === 1)
- return {
- hasFastBackward: !1,
- hasFastForward: !1,
- fastForwardTo: a,
- fastBackwardTo: i,
- items: [
- {
- type: 'page',
- label: 1,
- active: e === 1,
- mayBeFastBackward: !1,
- mayBeFastForward: !1
- }
- ]
- };
- if (t === 2)
- return {
- hasFastBackward: !1,
- hasFastForward: !1,
- fastForwardTo: a,
- fastBackwardTo: i,
- 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,
- c = t;
- let d = e,
- f = e;
- const v = (n - 5) / 2;
- (f += Math.ceil(v)),
- (f = Math.min(Math.max(f, s + n - 3), c - 2)),
- (d -= Math.floor(v)),
- (d = Math.max(Math.min(d, c - n + 3), s + 2));
- let p = !1,
- m = !1;
- d > s + 2 && (p = !0), f < c - 2 && (m = !0);
- const g = [];
- g.push({
- type: 'page',
- label: 1,
- active: e === 1,
- mayBeFastBackward: !1,
- mayBeFastForward: !1
- }),
- p
- ? ((r = !0),
- (i = d - 1),
- g.push({
- type: 'fast-backward',
- active: !1,
- label: void 0,
- options: OS(s + 1, d - 1)
- }))
- : c >= s + 1 &&
- g.push({
- type: 'page',
- label: s + 1,
- mayBeFastBackward: !0,
- mayBeFastForward: !1,
- active: e === s + 1
- });
- for (let w = d; w <= f; ++w)
- g.push({
- type: 'page',
- label: w,
- mayBeFastBackward: !1,
- mayBeFastForward: !1,
- active: e === w
- });
- return (
- m
- ? ((o = !0),
- (a = f + 1),
- g.push({
- type: 'fast-forward',
- active: !1,
- label: void 0,
- options: OS(f + 1, c - 1)
- }))
- : f === c - 2 &&
- g[g.length - 1].label !== c - 1 &&
- g.push({
- type: 'page',
- mayBeFastForward: !0,
- mayBeFastBackward: !1,
- label: c - 1,
- active: e === c - 1
- }),
- g[g.length - 1].label !== c &&
- g.push({
- type: 'page',
- mayBeFastForward: !1,
- mayBeFastBackward: !1,
- label: c,
- active: e === c
- }),
- {
- hasFastBackward: r,
- hasFastForward: o,
- fastBackwardTo: i,
- fastForwardTo: a,
- items: g
- }
- );
- }
- function OS(e, t) {
- const n = [];
- for (let r = e; r <= t; ++r) n.push({ label: `${r}`, value: r });
- return n;
- }
- const zS = `
- background: var(--n-item-color-hover);
- color: var(--n-item-text-color-hover);
- border: var(--n-item-border-hover);
- `,
- AS = [
- U(
- 'button',
- `
- background: var(--n-button-color-hover);
- border: var(--n-button-border-hover);
- color: var(--n-button-icon-color-hover);
- `
- )
- ],
- eq = O(
- 'pagination',
- `
- display: flex;
- vertical-align: middle;
- font-size: var(--n-item-font-size);
- flex-wrap: nowrap;
- `,
- [
- O(
- 'pagination-prefix',
- `
- display: flex;
- align-items: center;
- margin: var(--n-prefix-margin);
- `
- ),
- O(
- 'pagination-suffix',
- `
- display: flex;
- align-items: center;
- margin: var(--n-suffix-margin);
- `
- ),
- F(
- '> *:not(:first-child)',
- `
- margin: var(--n-item-margin);
- `
- ),
- O(
- 'select',
- `
- width: var(--n-select-width);
- `
- ),
- F('&.transition-disabled', [
- O('pagination-item', 'transition: none!important;')
- ]),
- O(
- 'pagination-quick-jumper',
- `
- white-space: nowrap;
- display: flex;
- color: var(--n-jumper-text-color);
- transition: color .3s var(--n-bezier);
- align-items: center;
- font-size: var(--n-jumper-font-size);
- `,
- [
- O(
- 'input',
- `
- margin: var(--n-input-margin);
- width: var(--n-input-width);
- `
- )
- ]
- ),
- O(
- 'pagination-item',
- `
- position: relative;
- cursor: pointer;
- user-select: none;
- -webkit-user-select: none;
- display: flex;
- align-items: center;
- justify-content: center;
- box-sizing: border-box;
- min-width: var(--n-item-size);
- height: var(--n-item-size);
- padding: var(--n-item-padding);
- background-color: var(--n-item-color);
- color: var(--n-item-text-color);
- border-radius: var(--n-item-border-radius);
- border: var(--n-item-border);
- fill: var(--n-button-icon-color);
- transition:
- color .3s var(--n-bezier),
- border-color .3s var(--n-bezier),
- background-color .3s var(--n-bezier),
- fill .3s var(--n-bezier);
- `,
- [
- U(
- 'button',
- `
- background: var(--n-button-color);
- color: var(--n-button-icon-color);
- border: var(--n-button-border);
- padding: 0;
- `,
- [
- O(
- 'base-icon',
- `
- font-size: var(--n-button-icon-size);
- `
- )
- ]
- ),
- jt('disabled', [
- U('hover', zS, AS),
- F('&:hover', zS, AS),
- F(
- '&:active',
- `
- background: var(--n-item-color-pressed);
- color: var(--n-item-text-color-pressed);
- border: var(--n-item-border-pressed);
- `,
- [
- U(
- 'button',
- `
- background: var(--n-button-color-pressed);
- border: var(--n-button-border-pressed);
- color: var(--n-button-icon-color-pressed);
- `
- )
- ]
- ),
- U(
- 'active',
- `
- background: var(--n-item-color-active);
- color: var(--n-item-text-color-active);
- border: var(--n-item-border-active);
- `,
- [
- F(
- '&:hover',
- `
- background: var(--n-item-color-active-hover);
- `
- )
- ]
- )
- ]),
- U(
- 'disabled',
- `
- cursor: not-allowed;
- color: var(--n-item-text-color-disabled);
- `,
- [
- U(
- 'active, button',
- `
- background-color: var(--n-item-color-disabled);
- border: var(--n-item-border-disabled);
- `
- )
- ]
- )
- ]
- ),
- U(
- 'disabled',
- `
- cursor: not-allowed;
- `,
- [
- O(
- 'pagination-quick-jumper',
- `
- color: var(--n-jumper-text-color-disabled);
- `
- )
- ]
- ),
- U(
- 'simple',
- `
- display: flex;
- align-items: center;
- flex-wrap: nowrap;
- `,
- [
- O('pagination-quick-jumper', [
- O(
- 'input',
- `
- margin: 0;
- `
- )
- ])
- ]
- )
- ]
- ),
- tq = Object.assign(Object.assign({}, Ke.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: Yr.propTo,
- 'onUpdate:page': [Function, Array],
- onUpdatePage: [Function, Array],
- 'onUpdate:pageSize': [Function, Array],
- onUpdatePageSize: [Function, Array],
- onPageSizeChange: [Function, Array],
- onChange: [Function, Array]
- }),
- Yk = Re({
- name: 'Pagination',
- props: tq,
- setup(e) {
- const {
- mergedComponentPropsRef: t,
- mergedClsPrefixRef: n,
- inlineThemeDisabled: r,
- mergedRtlRef: o
- } = yt(e),
- i = Ke('Pagination', '-pagination', eq, qk, e, n),
- { localeRef: a } = ka('Pagination'),
- s = Z(null),
- c = Z(e.defaultPage),
- f = Z(
- (() => {
- const { defaultPageSize: ue } = e;
- if (ue !== void 0) return ue;
- const Ae = e.pageSizes[0];
- return typeof Ae == 'number' ? Ae : Ae.value || 10;
- })()
- ),
- v = An(Ee(e, 'page'), c),
- p = An(Ee(e, 'pageSize'), f),
- m = I(() => {
- const { itemCount: ue } = e;
- if (ue !== void 0) return Math.max(1, Math.ceil(ue / p.value));
- const { pageCount: Ae } = e;
- return Ae !== void 0 ? Math.max(Ae, 1) : 1;
- }),
- g = Z('');
- Bn(() => {
- e.simple, (g.value = String(v.value));
- });
- const w = Z(!1),
- x = Z(!1),
- y = Z(!1),
- C = Z(!1),
- R = () => {
- e.disabled || ((w.value = !0), B());
- },
- S = () => {
- e.disabled || ((w.value = !1), B());
- },
- _ = () => {
- (x.value = !0), B();
- },
- P = () => {
- (x.value = !1), B();
- },
- T = ue => {
- q(ue);
- },
- A = I(() => JK(v.value, m.value, e.pageSlot));
- Bn(() => {
- A.value.hasFastBackward
- ? A.value.hasFastForward || ((w.value = !1), (y.value = !1))
- : ((x.value = !1), (C.value = !1));
- });
- const z = I(() => {
- const ue = a.value.selectionSuffix;
- return e.pageSizes.map(Ae =>
- typeof Ae == 'number' ? { label: `${Ae} / ${ue}`, value: Ae } : Ae
- );
- }),
- k = I(() => {
- var ue, Ae;
- return (
- ((Ae =
- (ue = t == null ? void 0 : t.value) === null || ue === void 0
- ? void 0
- : ue.Pagination) === null || Ae === void 0
- ? void 0
- : Ae.inputSize) || Xw(e.size)
- );
- }),
- M = I(() => {
- var ue, Ae;
- return (
- ((Ae =
- (ue = t == null ? void 0 : t.value) === null || ue === void 0
- ? void 0
- : ue.Pagination) === null || Ae === void 0
- ? void 0
- : Ae.selectSize) || Xw(e.size)
- );
- }),
- E = I(() => (v.value - 1) * p.value),
- D = I(() => {
- const ue = v.value * p.value - 1,
- { itemCount: Ae } = e;
- return Ae !== void 0 && ue > Ae - 1 ? Ae - 1 : ue;
- }),
- L = I(() => {
- const { itemCount: ue } = e;
- return ue !== void 0 ? ue : (e.pageCount || 1) * p.value;
- }),
- j = dr('Pagination', o, n),
- B = () => {
- mn(() => {
- var ue;
- const { value: Ae } = s;
- Ae &&
- (Ae.classList.add('transition-disabled'),
- (ue = s.value) === null || ue === void 0 || ue.offsetWidth,
- Ae.classList.remove('transition-disabled'));
- });
- };
- function q(ue) {
- if (ue === v.value) return;
- const {
- 'onUpdate:page': Ae,
- onUpdatePage: W,
- onChange: Q,
- simple: ee
- } = e;
- Ae && ze(Ae, ue),
- W && ze(W, ue),
- Q && ze(Q, ue),
- (c.value = ue),
- ee && (g.value = String(ue));
- }
- function G(ue) {
- if (ue === p.value) return;
- const {
- 'onUpdate:pageSize': Ae,
- onUpdatePageSize: W,
- onPageSizeChange: Q
- } = e;
- Ae && ze(Ae, ue),
- W && ze(W, ue),
- Q && ze(Q, ue),
- (f.value = ue),
- m.value < v.value && q(m.value);
- }
- function ne() {
- if (e.disabled) return;
- const ue = Math.min(v.value + 1, m.value);
- q(ue);
- }
- function X() {
- if (e.disabled) return;
- const ue = Math.max(v.value - 1, 1);
- q(ue);
- }
- function J() {
- if (e.disabled) return;
- const ue = Math.min(A.value.fastForwardTo, m.value);
- q(ue);
- }
- function re() {
- if (e.disabled) return;
- const ue = Math.max(A.value.fastBackwardTo, 1);
- q(ue);
- }
- function ce(ue) {
- G(ue);
- }
- function pe() {
- const ue = parseInt(g.value);
- Number.isNaN(ue) ||
- (q(Math.max(1, Math.min(ue, m.value))), e.simple || (g.value = ''));
- }
- function Fe() {
- pe();
- }
- function Ie(ue) {
- if (!e.disabled)
- switch (ue.type) {
- case 'page':
- q(ue.label);
- break;
- case 'fast-backward':
- re();
- break;
- case 'fast-forward':
- J();
- break;
- }
- }
- function le(ue) {
- g.value = ue.replace(/\D+/g, '');
- }
- Bn(() => {
- v.value, p.value, B();
- });
- const me = I(() => {
- const { size: ue } = e,
- {
- self: {
- buttonBorder: Ae,
- buttonBorderHover: W,
- buttonBorderPressed: Q,
- buttonIconColor: ee,
- buttonIconColorHover: ve,
- buttonIconColorPressed: oe,
- itemTextColor: H,
- itemTextColorHover: ae,
- itemTextColorPressed: ge,
- itemTextColorActive: Ce,
- itemTextColorDisabled: se,
- itemColor: Se,
- itemColorHover: Ne,
- itemColorPressed: Ge,
- itemColorActive: it,
- itemColorActiveHover: dt,
- itemColorDisabled: xt,
- itemBorder: Me,
- itemBorderHover: ut,
- itemBorderPressed: wt,
- itemBorderActive: Lt,
- itemBorderDisabled: ot,
- itemBorderRadius: ct,
- jumperTextColor: Xe,
- jumperTextColorDisabled: Qe,
- buttonColor: ie,
- buttonColorHover: $e,
- buttonColorPressed: Ue,
- [Oe('itemPadding', ue)]: lt,
- [Oe('itemMargin', ue)]: st,
- [Oe('inputWidth', ue)]: be,
- [Oe('selectWidth', ue)]: He,
- [Oe('inputMargin', ue)]: tt,
- [Oe('selectMargin', ue)]: pt,
- [Oe('jumperFontSize', ue)]: _e,
- [Oe('prefixMargin', ue)]: Ve,
- [Oe('suffixMargin', ue)]: nt,
- [Oe('itemSize', ue)]: Ot,
- [Oe('buttonIconSize', ue)]: $n,
- [Oe('itemFontSize', ue)]: jn,
- [`${Oe('itemMargin', ue)}Rtl`]: Zt,
- [`${Oe('inputMargin', ue)}Rtl`]: we
- },
- common: { cubicBezierEaseInOut: je }
- } = i.value;
- return {
- '--n-prefix-margin': Ve,
- '--n-suffix-margin': nt,
- '--n-item-font-size': jn,
- '--n-select-width': He,
- '--n-select-margin': pt,
- '--n-input-width': be,
- '--n-input-margin': tt,
- '--n-input-margin-rtl': we,
- '--n-item-size': Ot,
- '--n-item-text-color': H,
- '--n-item-text-color-disabled': se,
- '--n-item-text-color-hover': ae,
- '--n-item-text-color-active': Ce,
- '--n-item-text-color-pressed': ge,
- '--n-item-color': Se,
- '--n-item-color-hover': Ne,
- '--n-item-color-disabled': xt,
- '--n-item-color-active': it,
- '--n-item-color-active-hover': dt,
- '--n-item-color-pressed': Ge,
- '--n-item-border': Me,
- '--n-item-border-hover': ut,
- '--n-item-border-disabled': ot,
- '--n-item-border-active': Lt,
- '--n-item-border-pressed': wt,
- '--n-item-padding': lt,
- '--n-item-border-radius': ct,
- '--n-bezier': je,
- '--n-jumper-font-size': _e,
- '--n-jumper-text-color': Xe,
- '--n-jumper-text-color-disabled': Qe,
- '--n-item-margin': st,
- '--n-item-margin-rtl': Zt,
- '--n-button-icon-size': $n,
- '--n-button-icon-color': ee,
- '--n-button-icon-color-hover': ve,
- '--n-button-icon-color-pressed': oe,
- '--n-button-color-hover': $e,
- '--n-button-color': ie,
- '--n-button-color-pressed': Ue,
- '--n-button-border': Ae,
- '--n-button-border-hover': W,
- '--n-button-border-pressed': Q
- };
- }),
- he = r
- ? Mt(
- 'pagination',
- I(() => {
- let ue = '';
- const { size: Ae } = e;
- return (ue += Ae[0]), ue;
- }),
- me,
- e
- )
- : void 0;
- return {
- rtlEnabled: j,
- mergedClsPrefix: n,
- locale: a,
- selfRef: s,
- mergedPage: v,
- pageItems: I(() => A.value.items),
- mergedItemCount: L,
- jumperValue: g,
- pageSizeOptions: z,
- mergedPageSize: p,
- inputSize: k,
- selectSize: M,
- mergedTheme: i,
- mergedPageCount: m,
- startIndex: E,
- endIndex: D,
- showFastForwardMenu: y,
- showFastBackwardMenu: C,
- fastForwardActive: w,
- fastBackwardActive: x,
- handleMenuSelect: T,
- handleFastForwardMouseenter: R,
- handleFastForwardMouseleave: S,
- handleFastBackwardMouseenter: _,
- handleFastBackwardMouseleave: P,
- handleJumperInput: le,
- handleBackwardClick: X,
- handleForwardClick: ne,
- handlePageItemClick: Ie,
- handleSizePickerChange: ce,
- handleQuickJumperChange: Fe,
- cssVars: r ? void 0 : me,
- themeClass: he == null ? void 0 : he.themeClass,
- onRender: he == null ? void 0 : he.onRender
- };
- },
- render() {
- const {
- $slots: e,
- mergedClsPrefix: t,
- disabled: n,
- cssVars: r,
- mergedPage: o,
- mergedPageCount: i,
- pageItems: a,
- showSizePicker: s,
- showQuickJumper: c,
- mergedTheme: d,
- locale: f,
- inputSize: v,
- selectSize: p,
- mergedPageSize: m,
- pageSizeOptions: g,
- jumperValue: w,
- simple: x,
- prev: y,
- next: C,
- prefix: R,
- suffix: S,
- label: _,
- goto: P,
- handleJumperInput: T,
- handleSizePickerChange: A,
- handleBackwardClick: z,
- handlePageItemClick: k,
- handleForwardClick: M,
- handleQuickJumperChange: E,
- onRender: D
- } = this;
- D == null || D();
- const L = e.prefix || R,
- j = e.suffix || S,
- B = y || e.prev,
- q = C || e.next,
- G = _ || e.label;
- return h(
- 'div',
- {
- ref: 'selfRef',
- class: [
- `${t}-pagination`,
- this.themeClass,
- this.rtlEnabled && `${t}-pagination--rtl`,
- n && `${t}-pagination--disabled`,
- x && `${t}-pagination--simple`
- ],
- style: r
- },
- L
- ? h(
- 'div',
- { class: `${t}-pagination-prefix` },
- L({
- page: o,
- pageSize: m,
- pageCount: i,
- startIndex: this.startIndex,
- endIndex: this.endIndex,
- itemCount: this.mergedItemCount
- })
- )
- : null,
- this.displayOrder.map(ne => {
- switch (ne) {
- case 'pages':
- return h(
- on,
- null,
- h(
- 'div',
- {
- class: [
- `${t}-pagination-item`,
- !B && `${t}-pagination-item--button`,
- (o <= 1 || o > i || n) && `${t}-pagination-item--disabled`
- ],
- onClick: z
- },
- B
- ? B({
- page: o,
- pageSize: m,
- pageCount: i,
- startIndex: this.startIndex,
- endIndex: this.endIndex,
- itemCount: this.mergedItemCount
- })
- : h(
- Et,
- { clsPrefix: t },
- {
- default: () =>
- this.rtlEnabled ? h(ml, null) : h(vl, null)
- }
- )
- ),
- x
- ? h(
- on,
- null,
- h(
- 'div',
- { class: `${t}-pagination-quick-jumper` },
- h(Yi, {
- value: w,
- onUpdateValue: T,
- size: v,
- placeholder: '',
- disabled: n,
- theme: d.peers.Input,
- themeOverrides: d.peerOverrides.Input,
- onChange: E
- })
- ),
- ' / ',
- i
- )
- : a.map((X, J) => {
- let re, ce, pe;
- const { type: Fe } = X;
- switch (Fe) {
- case 'page':
- const le = X.label;
- G
- ? (re = G({
- type: 'page',
- node: le,
- active: X.active
- }))
- : (re = le);
- break;
- case 'fast-forward':
- const me = this.fastForwardActive
- ? h(
- Et,
- { clsPrefix: t },
- {
- default: () =>
- this.rtlEnabled ? h(pl, null) : h(gl, null)
- }
- )
- : h(
- Et,
- { clsPrefix: t },
- { default: () => h(bS, null) }
- );
- G
- ? (re = G({
- type: 'fast-forward',
- node: me,
- active:
- this.fastForwardActive ||
- this.showFastForwardMenu
- }))
- : (re = me),
- (ce = this.handleFastForwardMouseenter),
- (pe = this.handleFastForwardMouseleave);
- break;
- case 'fast-backward':
- const he = this.fastBackwardActive
- ? h(
- Et,
- { clsPrefix: t },
- {
- default: () =>
- this.rtlEnabled ? h(gl, null) : h(pl, null)
- }
- )
- : h(
- Et,
- { clsPrefix: t },
- { default: () => h(bS, null) }
- );
- G
- ? (re = G({
- type: 'fast-backward',
- node: he,
- active:
- this.fastBackwardActive ||
- this.showFastBackwardMenu
- }))
- : (re = he),
- (ce = this.handleFastBackwardMouseenter),
- (pe = this.handleFastBackwardMouseleave);
- break;
- }
- const Ie = h(
- 'div',
- {
- key: J,
- class: [
- `${t}-pagination-item`,
- X.active && `${t}-pagination-item--active`,
- Fe !== 'page' &&
- ((Fe === 'fast-backward' &&
- this.showFastBackwardMenu) ||
- (Fe === 'fast-forward' &&
- this.showFastForwardMenu)) &&
- `${t}-pagination-item--hover`,
- n && `${t}-pagination-item--disabled`,
- Fe === 'page' && `${t}-pagination-item--clickable`
- ],
- onClick: () => {
- k(X);
- },
- onMouseenter: ce,
- onMouseleave: pe
- },
- re
- );
- if (
- Fe === 'page' &&
- !X.mayBeFastBackward &&
- !X.mayBeFastForward
- )
- return Ie;
- {
- const le =
- X.type === 'page'
- ? X.mayBeFastBackward
- ? 'fast-backward'
- : 'fast-forward'
- : X.type;
- return h(
- VK,
- {
- to: this.to,
- key: le,
- disabled: n,
- trigger: 'hover',
- virtualScroll: !0,
- style: { width: '60px' },
- theme: d.peers.Popselect,
- themeOverrides: d.peerOverrides.Popselect,
- builtinThemeOverrides: {
- peers: {
- InternalSelectMenu: {
- height: 'calc(var(--n-option-height) * 4.6)'
- }
- }
- },
- nodeProps: () => ({
- style: { justifyContent: 'center' }
- }),
- show:
- Fe === 'page'
- ? !1
- : Fe === 'fast-backward'
- ? this.showFastBackwardMenu
- : this.showFastForwardMenu,
- onUpdateShow: me => {
- Fe !== 'page' &&
- (me
- ? Fe === 'fast-backward'
- ? (this.showFastBackwardMenu = me)
- : (this.showFastForwardMenu = me)
- : ((this.showFastBackwardMenu = !1),
- (this.showFastForwardMenu = !1)));
- },
- options: X.type !== 'page' ? X.options : [],
- onUpdateValue: this.handleMenuSelect,
- scrollable: !0,
- showCheckmark: !1
- },
- { default: () => Ie }
- );
- }
- }),
- h(
- 'div',
- {
- class: [
- `${t}-pagination-item`,
- !q && `${t}-pagination-item--button`,
- {
- [`${t}-pagination-item--disabled`]: o < 1 || o >= i || n
- }
- ],
- onClick: M
- },
- q
- ? q({
- page: o,
- pageSize: m,
- pageCount: i,
- itemCount: this.mergedItemCount,
- startIndex: this.startIndex,
- endIndex: this.endIndex
- })
- : h(
- Et,
- { clsPrefix: t },
- {
- default: () =>
- this.rtlEnabled ? h(vl, null) : h(ml, null)
- }
- )
- )
- );
- case 'size-picker':
- return !x && s
- ? h(
- Kk,
- Object.assign(
- {
- consistentMenuWidth: !1,
- placeholder: '',
- showCheckmark: !1,
- to: this.to
- },
- this.selectProps,
- {
- size: p,
- options: g,
- value: m,
- disabled: n,
- theme: d.peers.Select,
- themeOverrides: d.peerOverrides.Select,
- onUpdateValue: A
- }
- )
- )
- : null;
- case 'quick-jumper':
- return !x && c
- ? h(
- 'div',
- { class: `${t}-pagination-quick-jumper` },
- P ? P() : Kt(this.$slots.goto, () => [f.goto]),
- h(Yi, {
- value: w,
- onUpdateValue: T,
- size: v,
- placeholder: '',
- disabled: n,
- theme: d.peers.Input,
- themeOverrides: d.peerOverrides.Input,
- onChange: E
- })
- )
- : null;
- default:
- return null;
- }
- }),
- j
- ? h(
- 'div',
- { class: `${t}-pagination-suffix` },
- j({
- page: o,
- pageSize: m,
- pageCount: i,
- startIndex: this.startIndex,
- endIndex: this.endIndex,
- itemCount: this.mergedItemCount
- })
- )
- : null
- );
- }
- }),
- nq = { padding: '8px 14px' },
- rq = e => {
- const { borderRadius: t, boxShadow2: n, baseColor: r } = e;
- return Object.assign(Object.assign({}, nq), {
- borderRadius: t,
- boxShadow: n,
- color: At(r, 'rgba(0, 0, 0, .85)'),
- textColor: r
- });
- },
- oq = { name: 'Tooltip', common: Nt, peers: { Popover: nd }, self: rq },
- Kv = oq,
- iq = { name: 'Ellipsis', common: Nt, peers: { Tooltip: Kv } },
- Gk = iq,
- aq = {
- radioSizeSmall: '14px',
- radioSizeMedium: '16px',
- radioSizeLarge: '18px',
- labelPadding: '0 8px',
- labelFontWeight: '400'
- },
- lq = e => {
- const {
- borderColor: t,
- primaryColor: n,
- baseColor: r,
- textColorDisabled: o,
- inputColorDisabled: i,
- textColor2: a,
- opacityDisabled: s,
- borderRadius: c,
- fontSizeSmall: d,
- fontSizeMedium: f,
- fontSizeLarge: v,
- heightSmall: p,
- heightMedium: m,
- heightLarge: g,
- lineHeight: w
- } = e;
- return Object.assign(Object.assign({}, aq), {
- labelLineHeight: w,
- buttonHeightSmall: p,
- buttonHeightMedium: m,
- buttonHeightLarge: g,
- fontSizeSmall: d,
- fontSizeMedium: f,
- fontSizeLarge: v,
- boxShadow: `inset 0 0 0 1px ${t}`,
- boxShadowActive: `inset 0 0 0 1px ${n}`,
- boxShadowFocus: `inset 0 0 0 1px ${n}, 0 0 0 2px ${zt(n, {
- alpha: 0.2
- })}`,
- boxShadowHover: `inset 0 0 0 1px ${n}`,
- boxShadowDisabled: `inset 0 0 0 1px ${t}`,
- color: r,
- colorDisabled: i,
- colorActive: '#0000',
- textColor: a,
- textColorDisabled: o,
- dotColorActive: n,
- dotColorDisabled: t,
- buttonBorderColor: t,
- buttonBorderColorActive: n,
- buttonBorderColorHover: t,
- buttonColor: r,
- buttonColorActive: r,
- buttonTextColor: a,
- buttonTextColorActive: n,
- buttonTextColorHover: n,
- opacityDisabled: s,
- buttonBoxShadowFocus: `inset 0 0 0 1px ${n}, 0 0 0 2px ${zt(n, {
- alpha: 0.3
- })}`,
- buttonBoxShadowHover: 'inset 0 0 0 1px #0000',
- buttonBoxShadow: 'inset 0 0 0 1px #0000',
- buttonBorderRadius: c
- });
- },
- sq = { name: 'Radio', common: Nt, self: lq },
- $y = sq,
- cq = {
- 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'
- },
- dq = e => {
- const {
- primaryColor: t,
- textColor2: n,
- dividerColor: r,
- hoverColor: o,
- popoverColor: i,
- invertedColor: a,
- borderRadius: s,
- fontSizeSmall: c,
- fontSizeMedium: d,
- fontSizeLarge: f,
- fontSizeHuge: v,
- heightSmall: p,
- heightMedium: m,
- heightLarge: g,
- heightHuge: w,
- textColor3: x,
- opacityDisabled: y
- } = e;
- return Object.assign(Object.assign({}, cq), {
- optionHeightSmall: p,
- optionHeightMedium: m,
- optionHeightLarge: g,
- optionHeightHuge: w,
- borderRadius: s,
- fontSizeSmall: c,
- fontSizeMedium: d,
- fontSizeLarge: f,
- fontSizeHuge: v,
- optionTextColor: n,
- optionTextColorHover: n,
- optionTextColorActive: t,
- optionTextColorChildActive: t,
- color: i,
- dividerColor: r,
- suffixColor: n,
- prefixColor: n,
- optionColorHover: o,
- optionColorActive: zt(t, { alpha: 0.1 }),
- groupHeaderTextColor: x,
- optionTextColorInverted: '#BBB',
- optionTextColorHoverInverted: '#FFF',
- optionTextColorActiveInverted: '#FFF',
- optionTextColorChildActiveInverted: '#FFF',
- colorInverted: a,
- dividerColorInverted: '#BBB',
- suffixColorInverted: '#BBB',
- prefixColorInverted: '#BBB',
- optionColorHoverInverted: t,
- optionColorActiveInverted: t,
- groupHeaderTextColorInverted: '#AAA',
- optionOpacityDisabled: y
- });
- },
- uq = { name: 'Dropdown', common: Nt, peers: { Popover: nd }, self: dq },
- Oy = uq,
- fq = {
- 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'
- },
- hq = e => {
- const {
- cardColor: t,
- modalColor: n,
- popoverColor: r,
- textColor2: o,
- textColor1: i,
- tableHeaderColor: a,
- tableColorHover: s,
- iconColor: c,
- primaryColor: d,
- fontWeightStrong: f,
- borderRadius: v,
- lineHeight: p,
- fontSizeSmall: m,
- fontSizeMedium: g,
- fontSizeLarge: w,
- dividerColor: x,
- heightSmall: y,
- opacityDisabled: C,
- tableColorStriped: R
- } = e;
- return Object.assign(Object.assign({}, fq), {
- actionDividerColor: x,
- lineHeight: p,
- borderRadius: v,
- fontSizeSmall: m,
- fontSizeMedium: g,
- fontSizeLarge: w,
- borderColor: At(t, x),
- tdColorHover: At(t, s),
- tdColorStriped: At(t, R),
- thColor: At(t, a),
- thColorHover: At(At(t, a), s),
- tdColor: t,
- tdTextColor: o,
- thTextColor: i,
- thFontWeight: f,
- thButtonColorHover: s,
- thIconColor: c,
- thIconColorActive: d,
- borderColorModal: At(n, x),
- tdColorHoverModal: At(n, s),
- tdColorStripedModal: At(n, R),
- thColorModal: At(n, a),
- thColorHoverModal: At(At(n, a), s),
- tdColorModal: n,
- borderColorPopover: At(r, x),
- tdColorHoverPopover: At(r, s),
- tdColorStripedPopover: At(r, R),
- thColorPopover: At(r, a),
- thColorHoverPopover: At(At(r, a), s),
- tdColorPopover: r,
- boxShadowBefore: 'inset -12px 0 8px -12px rgba(0, 0, 0, .18)',
- boxShadowAfter: 'inset 12px 0 8px -12px rgba(0, 0, 0, .18)',
- loadingColor: d,
- loadingSize: y,
- opacityLoading: C
- });
- },
- vq = {
- name: 'DataTable',
- common: Nt,
- peers: {
- Button: Es,
- Checkbox: Ry,
- Radio: $y,
- Pagination: qk,
- Scrollbar: Qi,
- Empty: Vv,
- Popover: nd,
- Ellipsis: Gk,
- Dropdown: Oy
- },
- self: hq
- },
- pq = vq,
- gq = Object.assign(Object.assign({}, Ic), Ke.props),
- qv = Re({
- name: 'Tooltip',
- props: gq,
- __popover__: !0,
- setup(e) {
- const { mergedClsPrefixRef: t } = yt(e),
- n = Ke('Tooltip', '-tooltip', void 0, Kv, e, t),
- r = Z(null);
- return Object.assign(
- Object.assign(
- {},
- {
- syncPosition() {
- r.value.syncPosition();
- },
- setShow(i) {
- r.value.setShow(i);
- }
- }
- ),
- {
- popoverRef: r,
- mergedTheme: n,
- popoverThemeOverrides: I(() => n.value.self)
- }
- );
- },
- render() {
- const { mergedTheme: e, internalExtraClass: t } = this;
- return h(
- rd,
- 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
- );
- }
- }),
- mq = O('ellipsis', { overflow: 'hidden' }, [
- jt(
- 'line-clamp',
- `
- white-space: nowrap;
- display: inline-block;
- vertical-align: bottom;
- max-width: 100%;
- `
- ),
- U(
- 'line-clamp',
- `
- display: -webkit-inline-box;
- -webkit-box-orient: vertical;
- `
- ),
- U(
- 'cursor-pointer',
- `
- cursor: pointer;
- `
- )
- ]);
- function ES(e) {
- return `${e}-ellipsis--line-clamp`;
- }
- function MS(e, t) {
- return `${e}-ellipsis--cursor-${t}`;
- }
- const bq = Object.assign(Object.assign({}, Ke.props), {
- expandTrigger: String,
- lineClamp: [Number, String],
- tooltip: { type: [Boolean, Object], default: !0 }
- }),
- Xk = Re({
- name: 'Ellipsis',
- inheritAttrs: !1,
- props: bq,
- setup(e, { slots: t, attrs: n }) {
- const { mergedClsPrefixRef: r } = yt(e),
- o = Ke('Ellipsis', '-ellipsis', mq, Gk, e, r),
- i = Z(null),
- a = Z(null),
- s = Z(null),
- c = Z(!1),
- d = I(() => {
- const { lineClamp: x } = e,
- { value: y } = c;
- return x !== void 0
- ? { textOverflow: '', '-webkit-line-clamp': y ? '' : x }
- : { textOverflow: y ? '' : 'ellipsis', '-webkit-line-clamp': '' };
- });
- function f() {
- let x = !1;
- const { value: y } = c;
- if (y) return !0;
- const { value: C } = i;
- if (C) {
- const { lineClamp: R } = e;
- if ((m(C), R !== void 0)) x = C.scrollHeight <= C.offsetHeight;
- else {
- const { value: S } = a;
- S &&
- (x =
- S.getBoundingClientRect().width <=
- C.getBoundingClientRect().width);
- }
- g(C, x);
- }
- return x;
- }
- const v = I(() =>
- e.expandTrigger === 'click'
- ? () => {
- var x;
- const { value: y } = c;
- y && ((x = s.value) === null || x === void 0 || x.setShow(!1)),
- (c.value = !y);
- }
- : void 0
- );
- Vc(() => {
- var x;
- e.tooltip && ((x = s.value) === null || x === void 0 || x.setShow(!1));
- });
- const p = () =>
- h(
- 'span',
- Object.assign(
- {},
- qr(n, {
- class: [
- `${r.value}-ellipsis`,
- e.lineClamp !== void 0 ? ES(r.value) : void 0,
- e.expandTrigger === 'click' ? MS(r.value, 'pointer') : void 0
- ],
- style: d.value
- }),
- {
- ref: 'triggerRef',
- onClick: v.value,
- onMouseenter: e.expandTrigger === 'click' ? f : void 0
- }
- ),
- e.lineClamp ? t : h('span', { ref: 'triggerInnerRef' }, t)
- );
- function m(x) {
- if (!x) return;
- const y = d.value,
- C = ES(r.value);
- e.lineClamp !== void 0 ? w(x, C, 'add') : w(x, C, 'remove');
- for (const R in y) x.style[R] !== y[R] && (x.style[R] = y[R]);
- }
- function g(x, y) {
- const C = MS(r.value, 'pointer');
- e.expandTrigger === 'click' && !y ? w(x, C, 'add') : w(x, C, 'remove');
- }
- function w(x, y, C) {
- C === 'add'
- ? x.classList.contains(y) || x.classList.add(y)
- : x.classList.contains(y) && x.classList.remove(y);
- }
- return {
- mergedTheme: o,
- triggerRef: i,
- triggerInnerRef: a,
- tooltipRef: s,
- handleClick: v,
- renderTrigger: p,
- getTooltipDisabled: f
- };
- },
- render() {
- var e;
- const { tooltip: t, renderTrigger: n, $slots: r } = this;
- if (t) {
- const { mergedTheme: o } = this;
- return h(
- qv,
- Object.assign({ ref: 'tooltipRef', placement: 'top' }, t, {
- getDisabled: this.getTooltipDisabled,
- theme: o.peers.Tooltip,
- themeOverrides: o.peerOverrides.Tooltip
- }),
- {
- trigger: n,
- default: (e = r.tooltip) !== null && e !== void 0 ? e : r.default
- }
- );
- } else return n();
- }
- }),
- yq = Re({
- 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 });
- }
- }),
- xq = Object.assign(Object.assign({}, Ke.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]
- }),
- wi = 'n-data-table',
- wq = Re({
- name: 'SortIcon',
- props: { column: { type: Object, required: !0 } },
- setup(e) {
- const { mergedComponentPropsRef: t } = yt(),
- { mergedSortStateRef: n, mergedClsPrefixRef: r } = Ze(wi),
- o = I(() => n.value.find(c => c.columnKey === e.column.key)),
- i = I(() => o.value !== void 0),
- a = I(() => {
- const { value: c } = o;
- return c && i.value ? c.order : !1;
- }),
- s = I(() => {
- var c, d;
- return (
- ((d =
- (c = t == null ? void 0 : t.value) === null || c === void 0
- ? void 0
- : c.DataTable) === null || d === void 0
- ? void 0
- : d.renderSorter) || e.column.renderSorter
- );
- });
- return {
- mergedClsPrefix: r,
- active: i,
- mergedSortOrder: a,
- mergedRenderSorter: s
- };
- },
- render() {
- const {
- mergedRenderSorter: e,
- mergedSortOrder: t,
- mergedClsPrefix: n
- } = this,
- { renderSorterIcon: r } = this.column;
- return e
- ? h(yq, { render: e, order: t })
- : h(
- 'span',
- {
- class: [
- `${n}-data-table-sorter`,
- t === 'ascend' && `${n}-data-table-sorter--asc`,
- t === 'descend' && `${n}-data-table-sorter--desc`
- ]
- },
- r
- ? r({ order: t })
- : h(Et, { clsPrefix: n }, { default: () => h(AU, null) })
- );
- }
- }),
- Cq = Re({
- 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: n } = this;
- return e({ active: t, show: n });
- }
- }),
- Sq = {
- 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 }
- },
- Zk = 'n-radio-group';
- function _q(e) {
- const t = ei(e, {
- mergedSize(C) {
- const { size: R } = e;
- if (R !== void 0) return R;
- if (a) {
- const {
- mergedSizeRef: { value: S }
- } = a;
- if (S !== void 0) return S;
- }
- return C ? C.mergedSize.value : 'medium';
- },
- mergedDisabled(C) {
- return !!(
- e.disabled ||
- (a != null && a.disabledRef.value) ||
- (C != null && C.disabled.value)
- );
- }
- }),
- { mergedSizeRef: n, mergedDisabledRef: r } = t,
- o = Z(null),
- i = Z(null),
- a = Ze(Zk, null),
- s = Z(e.defaultChecked),
- c = Ee(e, 'checked'),
- d = An(c, s),
- f = kt(() => (a ? a.valueRef.value === e.value : d.value)),
- v = kt(() => {
- const { name: C } = e;
- if (C !== void 0) return C;
- if (a) return a.nameRef.value;
- }),
- p = Z(!1);
- function m() {
- if (a) {
- const { doUpdateValue: C } = a,
- { value: R } = e;
- ze(C, R);
- } else {
- const { onUpdateChecked: C, 'onUpdate:checked': R } = e,
- { nTriggerFormInput: S, nTriggerFormChange: _ } = t;
- C && ze(C, !0), R && ze(R, !0), S(), _(), (s.value = !0);
- }
- }
- function g() {
- r.value || f.value || m();
- }
- function w() {
- g();
- }
- function x() {
- p.value = !1;
- }
- function y() {
- p.value = !0;
- }
- return {
- mergedClsPrefix: a ? a.mergedClsPrefixRef : yt(e).mergedClsPrefixRef,
- inputRef: o,
- labelRef: i,
- mergedName: v,
- mergedDisabled: r,
- uncontrolledChecked: s,
- renderSafeChecked: f,
- focus: p,
- mergedSize: n,
- handleRadioInputChange: w,
- handleRadioInputBlur: x,
- handleRadioInputFocus: y
- };
- }
- const Rq = O(
- 'radio',
- `
- line-height: var(--n-label-line-height);
- outline: none;
- position: relative;
- user-select: none;
- -webkit-user-select: none;
- display: inline-flex;
- align-items: flex-start;
- flex-wrap: nowrap;
- font-size: var(--n-font-size);
- word-break: break-word;
- `,
- [
- U('checked', [
- V(
- 'dot',
- `
- background-color: var(--n-color-active);
- `
- )
- ]),
- V(
- 'dot-wrapper',
- `
- position: relative;
- flex-shrink: 0;
- flex-grow: 0;
- width: var(--n-radio-size);
- `
- ),
- O(
- 'radio-input',
- `
- position: absolute;
- border: 0;
- border-radius: inherit;
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- opacity: 0;
- z-index: 1;
- cursor: pointer;
- `
- ),
- V(
- 'dot',
- `
- position: absolute;
- top: 50%;
- left: 0;
- transform: translateY(-50%);
- height: var(--n-radio-size);
- width: var(--n-radio-size);
- background: var(--n-color);
- box-shadow: var(--n-box-shadow);
- border-radius: 50%;
- transition:
- background-color .3s var(--n-bezier),
- box-shadow .3s var(--n-bezier);
- `,
- [
- F(
- '&::before',
- `
- content: "";
- opacity: 0;
- position: absolute;
- left: 4px;
- top: 4px;
- height: calc(100% - 8px);
- width: calc(100% - 8px);
- border-radius: 50%;
- transform: scale(.8);
- background: var(--n-dot-color-active);
- transition:
- opacity .3s var(--n-bezier),
- background-color .3s var(--n-bezier),
- transform .3s var(--n-bezier);
- `
- ),
- U('checked', { boxShadow: 'var(--n-box-shadow-active)' }, [
- F(
- '&::before',
- `
- opacity: 1;
- transform: scale(1);
- `
- )
- ])
- ]
- ),
- V(
- 'label',
- `
- color: var(--n-text-color);
- padding: var(--n-label-padding);
- font-weight: var(--n-label-font-weight);
- display: inline-block;
- transition: color .3s var(--n-bezier);
- `
- ),
- jt(
- 'disabled',
- `
- cursor: pointer;
- `,
- [
- F('&:hover', [V('dot', { boxShadow: 'var(--n-box-shadow-hover)' })]),
- U('focus', [
- F('&:not(:active)', [
- V('dot', { boxShadow: 'var(--n-box-shadow-focus)' })
- ])
- ])
- ]
- ),
- U(
- 'disabled',
- `
- cursor: not-allowed;
- `,
- [
- V(
- 'dot',
- {
- boxShadow: 'var(--n-box-shadow-disabled)',
- backgroundColor: 'var(--n-color-disabled)'
- },
- [
- F('&::before', {
- backgroundColor: 'var(--n-dot-color-disabled)'
- }),
- U(
- 'checked',
- `
- opacity: 1;
- `
- )
- ]
- ),
- V('label', { color: 'var(--n-text-color-disabled)' }),
- O(
- 'radio-input',
- `
- cursor: not-allowed;
- `
- )
- ]
- )
- ]
- ),
- zy = Re({
- name: 'Radio',
- props: Object.assign(Object.assign({}, Ke.props), Sq),
- setup(e) {
- const t = _q(e),
- n = Ke('Radio', '-radio', Rq, $y, e, t.mergedClsPrefix),
- r = I(() => {
- const {
- mergedSize: { value: d }
- } = t,
- {
- common: { cubicBezierEaseInOut: f },
- self: {
- boxShadow: v,
- boxShadowActive: p,
- boxShadowDisabled: m,
- boxShadowFocus: g,
- boxShadowHover: w,
- color: x,
- colorDisabled: y,
- colorActive: C,
- textColor: R,
- textColorDisabled: S,
- dotColorActive: _,
- dotColorDisabled: P,
- labelPadding: T,
- labelLineHeight: A,
- labelFontWeight: z,
- [Oe('fontSize', d)]: k,
- [Oe('radioSize', d)]: M
- }
- } = n.value;
- return {
- '--n-bezier': f,
- '--n-label-line-height': A,
- '--n-label-font-weight': z,
- '--n-box-shadow': v,
- '--n-box-shadow-active': p,
- '--n-box-shadow-disabled': m,
- '--n-box-shadow-focus': g,
- '--n-box-shadow-hover': w,
- '--n-color': x,
- '--n-color-active': C,
- '--n-color-disabled': y,
- '--n-dot-color-active': _,
- '--n-dot-color-disabled': P,
- '--n-font-size': k,
- '--n-radio-size': M,
- '--n-text-color': R,
- '--n-text-color-disabled': S,
- '--n-label-padding': T
- };
- }),
- {
- inlineThemeDisabled: o,
- mergedClsPrefixRef: i,
- mergedRtlRef: a
- } = yt(e),
- s = dr('Radio', a, i),
- c = o
- ? Mt(
- 'radio',
- I(() => t.mergedSize.value[0]),
- r,
- e
- )
- : void 0;
- return Object.assign(t, {
- rtlEnabled: s,
- cssVars: o ? void 0 : r,
- themeClass: c == null ? void 0 : c.themeClass,
- onRender: c == null ? void 0 : c.onRender
- });
- },
- render() {
- const { $slots: e, mergedClsPrefix: t, onRender: n, label: r } = this;
- return (
- n == null || n(),
- h(
- '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
- },
- h('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
- }),
- h(
- 'div',
- { class: `${t}-radio__dot-wrapper` },
- ' ',
- h('div', {
- class: [
- `${t}-radio__dot`,
- this.renderSafeChecked && `${t}-radio__dot--checked`
- ]
- })
- ),
- cn(e.default, o =>
- !o && !r
- ? null
- : h(
- 'div',
- { ref: 'labelRef', class: `${t}-radio__label` },
- o || r
- )
- )
- )
- );
- }
- }),
- Pq = O(
- 'radio-group',
- `
- display: inline-block;
- font-size: var(--n-font-size);
- `,
- [
- V(
- 'splitor',
- `
- display: inline-block;
- vertical-align: bottom;
- width: 1px;
- transition:
- background-color .3s var(--n-bezier),
- opacity .3s var(--n-bezier);
- background: var(--n-button-border-color);
- `,
- [
- U('checked', {
- backgroundColor: 'var(--n-button-border-color-active)'
- }),
- U('disabled', { opacity: 'var(--n-opacity-disabled)' })
- ]
- ),
- U(
- 'button-group',
- `
- white-space: nowrap;
- height: var(--n-height);
- line-height: var(--n-height);
- `,
- [
- O('radio-button', {
- height: 'var(--n-height)',
- lineHeight: 'var(--n-height)'
- }),
- V('splitor', { height: 'var(--n-height)' })
- ]
- ),
- O(
- 'radio-button',
- `
- vertical-align: bottom;
- outline: none;
- position: relative;
- user-select: none;
- -webkit-user-select: none;
- display: inline-block;
- box-sizing: border-box;
- padding-left: 14px;
- padding-right: 14px;
- white-space: nowrap;
- transition:
- background-color .3s var(--n-bezier),
- opacity .3s var(--n-bezier),
- border-color .3s var(--n-bezier),
- color .3s var(--n-bezier);
- color: var(--n-button-text-color);
- border-top: 1px solid var(--n-button-border-color);
- border-bottom: 1px solid var(--n-button-border-color);
- `,
- [
- O(
- 'radio-input',
- `
- pointer-events: none;
- position: absolute;
- border: 0;
- border-radius: inherit;
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- opacity: 0;
- z-index: 1;
- `
- ),
- V(
- 'state-border',
- `
- z-index: 1;
- pointer-events: none;
- position: absolute;
- box-shadow: var(--n-button-box-shadow);
- transition: box-shadow .3s var(--n-bezier);
- left: -1px;
- bottom: -1px;
- right: -1px;
- top: -1px;
- `
- ),
- F(
- '&:first-child',
- `
- border-top-left-radius: var(--n-button-border-radius);
- border-bottom-left-radius: var(--n-button-border-radius);
- border-left: 1px solid var(--n-button-border-color);
- `,
- [
- V(
- 'state-border',
- `
- border-top-left-radius: var(--n-button-border-radius);
- border-bottom-left-radius: var(--n-button-border-radius);
- `
- )
- ]
- ),
- F(
- '&:last-child',
- `
- border-top-right-radius: var(--n-button-border-radius);
- border-bottom-right-radius: var(--n-button-border-radius);
- border-right: 1px solid var(--n-button-border-color);
- `,
- [
- V(
- 'state-border',
- `
- border-top-right-radius: var(--n-button-border-radius);
- border-bottom-right-radius: var(--n-button-border-radius);
- `
- )
- ]
- ),
- jt(
- 'disabled',
- `
- cursor: pointer;
- `,
- [
- F('&:hover', [
- V(
- 'state-border',
- `
- transition: box-shadow .3s var(--n-bezier);
- box-shadow: var(--n-button-box-shadow-hover);
- `
- ),
- jt('checked', { color: 'var(--n-button-text-color-hover)' })
- ]),
- U('focus', [
- F('&:not(:active)', [
- V('state-border', {
- boxShadow: 'var(--n-button-box-shadow-focus)'
- })
- ])
- ])
- ]
- ),
- U(
- 'checked',
- `
- background: var(--n-button-color-active);
- color: var(--n-button-text-color-active);
- border-color: var(--n-button-border-color-active);
- `
- ),
- U(
- 'disabled',
- `
- cursor: not-allowed;
- opacity: var(--n-opacity-disabled);
- `
- )
- ]
- )
- ]
- );
- function kq(e, t, n) {
- var r;
- const o = [];
- let i = !1;
- for (let a = 0; a < e.length; ++a) {
- const s = e[a],
- c = (r = s.type) === null || r === void 0 ? void 0 : r.name;
- c === 'RadioButton' && (i = !0);
- const d = s.props;
- if (c !== 'RadioButton') {
- o.push(s);
- continue;
- }
- if (a === 0) o.push(s);
- else {
- const f = o[o.length - 1].props,
- v = t === f.value,
- p = f.disabled,
- m = t === d.value,
- g = d.disabled,
- w = (v ? 2 : 0) + (p ? 0 : 1),
- x = (m ? 2 : 0) + (g ? 0 : 1),
- y = {
- [`${n}-radio-group__splitor--disabled`]: p,
- [`${n}-radio-group__splitor--checked`]: v
- },
- C = {
- [`${n}-radio-group__splitor--disabled`]: g,
- [`${n}-radio-group__splitor--checked`]: m
- },
- R = w < x ? C : y;
- o.push(h('div', { class: [`${n}-radio-group__splitor`, R] }), s);
- }
- }
- return { children: o, isButtonGroup: i };
- }
- const Tq = Object.assign(Object.assign({}, Ke.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]
- }),
- Qk = Re({
- name: 'RadioGroup',
- props: Tq,
- setup(e) {
- const t = Z(null),
- {
- mergedSizeRef: n,
- mergedDisabledRef: r,
- nTriggerFormChange: o,
- nTriggerFormInput: i,
- nTriggerFormBlur: a,
- nTriggerFormFocus: s
- } = ei(e),
- {
- mergedClsPrefixRef: c,
- inlineThemeDisabled: d,
- mergedRtlRef: f
- } = yt(e),
- v = Ke('Radio', '-radio-group', Pq, $y, e, c),
- p = Z(e.defaultValue),
- m = Ee(e, 'value'),
- g = An(m, p);
- function w(_) {
- const { onUpdateValue: P, 'onUpdate:value': T } = e;
- P && ze(P, _), T && ze(T, _), (p.value = _), o(), i();
- }
- function x(_) {
- const { value: P } = t;
- P && (P.contains(_.relatedTarget) || s());
- }
- function y(_) {
- const { value: P } = t;
- P && (P.contains(_.relatedTarget) || a());
- }
- Rt(Zk, {
- mergedClsPrefixRef: c,
- nameRef: Ee(e, 'name'),
- valueRef: g,
- disabledRef: r,
- mergedSizeRef: n,
- doUpdateValue: w
- });
- const C = dr('Radio', f, c),
- R = I(() => {
- const { value: _ } = n,
- {
- common: { cubicBezierEaseInOut: P },
- self: {
- buttonBorderColor: T,
- buttonBorderColorActive: A,
- buttonBorderRadius: z,
- buttonBoxShadow: k,
- buttonBoxShadowFocus: M,
- buttonBoxShadowHover: E,
- buttonColorActive: D,
- buttonTextColor: L,
- buttonTextColorActive: j,
- buttonTextColorHover: B,
- opacityDisabled: q,
- [Oe('buttonHeight', _)]: G,
- [Oe('fontSize', _)]: ne
- }
- } = v.value;
- return {
- '--n-font-size': ne,
- '--n-bezier': P,
- '--n-button-border-color': T,
- '--n-button-border-color-active': A,
- '--n-button-border-radius': z,
- '--n-button-box-shadow': k,
- '--n-button-box-shadow-focus': M,
- '--n-button-box-shadow-hover': E,
- '--n-button-color-active': D,
- '--n-button-text-color': L,
- '--n-button-text-color-hover': B,
- '--n-button-text-color-active': j,
- '--n-height': G,
- '--n-opacity-disabled': q
- };
- }),
- S = d
- ? Mt(
- 'radio-group',
- I(() => n.value[0]),
- R,
- e
- )
- : void 0;
- return {
- selfElRef: t,
- rtlEnabled: C,
- mergedClsPrefix: c,
- mergedValue: g,
- handleFocusout: y,
- handleFocusin: x,
- cssVars: d ? void 0 : R,
- themeClass: S == null ? void 0 : S.themeClass,
- onRender: S == null ? void 0 : S.onRender
- };
- },
- render() {
- var e;
- const {
- mergedValue: t,
- mergedClsPrefix: n,
- handleFocusin: r,
- handleFocusout: o
- } = this,
- { children: i, isButtonGroup: a } = kq(hi(Fu(this)), t, n);
- return (
- (e = this.onRender) === null || e === void 0 || e.call(this),
- h(
- 'div',
- {
- onFocusin: r,
- onFocusout: o,
- ref: 'selfElRef',
- class: [
- `${n}-radio-group`,
- this.rtlEnabled && `${n}-radio-group--rtl`,
- this.themeClass,
- a && `${n}-radio-group--button-group`
- ],
- style: this.cssVars
- },
- i
- )
- );
- }
- }),
- Jk = 40,
- e3 = 40;
- function IS(e) {
- if (e.type === 'selection') return e.width === void 0 ? Jk : Lr(e.width);
- if (e.type === 'expand') return e.width === void 0 ? e3 : Lr(e.width);
- if (!('children' in e))
- return typeof e.width == 'string' ? Lr(e.width) : e.width;
- }
- function $q(e) {
- var t, n;
- if (e.type === 'selection')
- return vn((t = e.width) !== null && t !== void 0 ? t : Jk);
- if (e.type === 'expand')
- return vn((n = e.width) !== null && n !== void 0 ? n : e3);
- if (!('children' in e)) return vn(e.width);
- }
- function si(e) {
- return e.type === 'selection'
- ? '__n_selection__'
- : e.type === 'expand'
- ? '__n_expand__'
- : e.key;
- }
- function DS(e) {
- return e && (typeof e == 'object' ? Object.assign({}, e) : e);
- }
- function Oq(e) {
- return e === 'ascend' ? 1 : e === 'descend' ? -1 : 0;
- }
- function zq(e, t, n) {
- return (
- n !== void 0 && (e = Math.min(e, typeof n == 'number' ? n : parseFloat(n))),
- t !== void 0 && (e = Math.max(e, typeof t == 'number' ? t : parseFloat(t))),
- e
- );
- }
- function Aq(e, t) {
- if (t !== void 0) return { width: t, minWidth: t, maxWidth: t };
- const n = $q(e),
- { minWidth: r, maxWidth: o } = e;
- return { width: n, minWidth: vn(r) || n, maxWidth: vn(o) };
- }
- function Eq(e, t, n) {
- return typeof n == 'function' ? n(e, t) : n || '';
- }
- function Vg(e) {
- return (
- e.filterOptionValues !== void 0 ||
- (e.filterOptionValue === void 0 && e.defaultFilterOptionValues !== void 0)
- );
- }
- function Kg(e) {
- return 'children' in e ? !1 : !!e.sorter;
- }
- function t3(e) {
- return 'children' in e && e.children.length ? !1 : !!e.resizable;
- }
- function FS(e) {
- return 'children' in e
- ? !1
- : !!e.filter && (!!e.filterOptions || !!e.renderFilterMenu);
- }
- function BS(e) {
- if (e) {
- if (e === 'descend') return 'ascend';
- } else return 'descend';
- return !1;
- }
- function Mq(e, t) {
- return e.sorter === void 0
- ? null
- : t === null || t.columnKey !== e.key
- ? { columnKey: e.key, sorter: e.sorter, order: BS(!1) }
- : Object.assign(Object.assign({}, t), { order: BS(t.order) });
- }
- function n3(e, t) {
- return t.find(n => n.columnKey === e.key && n.order) !== void 0;
- }
- const Iq = Re({
- 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: n, localeRef: r } = Ze(wi),
- o = Z(e.value),
- i = I(() => {
- const { value: v } = o;
- return Array.isArray(v) ? v : null;
- }),
- a = I(() => {
- const { value: v } = o;
- return Vg(e.column)
- ? (Array.isArray(v) && v.length && v[0]) || null
- : Array.isArray(v)
- ? null
- : v;
- });
- function s(v) {
- e.onChange(v);
- }
- function c(v) {
- e.multiple && Array.isArray(v)
- ? (o.value = v)
- : Vg(e.column) && !Array.isArray(v)
- ? (o.value = [v])
- : (o.value = v);
- }
- function d() {
- s(o.value), e.onConfirm();
- }
- function f() {
- e.multiple || Vg(e.column) ? s([]) : s(null), e.onClear();
- }
- return {
- mergedClsPrefix: t,
- mergedTheme: n,
- locale: r,
- checkboxGroupValue: i,
- radioGroupValue: a,
- handleChange: c,
- handleConfirmClick: d,
- handleClearClick: f
- };
- },
- render() {
- const { mergedTheme: e, locale: t, mergedClsPrefix: n } = this;
- return h(
- 'div',
- { class: `${n}-data-table-filter-menu` },
- h(yr, null, {
- default: () => {
- const { checkboxGroupValue: r, handleChange: o } = this;
- return this.multiple
- ? h(
- Uk,
- {
- value: r,
- class: `${n}-data-table-filter-menu__group`,
- onUpdateValue: o
- },
- {
- default: () =>
- this.options.map(i =>
- h(
- Vu,
- {
- key: i.value,
- theme: e.peers.Checkbox,
- themeOverrides: e.peerOverrides.Checkbox,
- value: i.value
- },
- { default: () => i.label }
- )
- )
- }
- )
- : h(
- Qk,
- {
- name: this.radioGroupName,
- class: `${n}-data-table-filter-menu__group`,
- value: this.radioGroupValue,
- onUpdateValue: this.handleChange
- },
- {
- default: () =>
- this.options.map(i =>
- h(
- zy,
- {
- key: i.value,
- value: i.value,
- theme: e.peers.Radio,
- themeOverrides: e.peerOverrides.Radio
- },
- { default: () => i.label }
- )
- )
- }
- );
- }
- }),
- h(
- 'div',
- { class: `${n}-data-table-filter-menu__action` },
- h(
- nr,
- {
- size: 'tiny',
- theme: e.peers.Button,
- themeOverrides: e.peerOverrides.Button,
- onClick: this.handleClearClick
- },
- { default: () => t.clear }
- ),
- h(
- nr,
- {
- theme: e.peers.Button,
- themeOverrides: e.peerOverrides.Button,
- type: 'primary',
- size: 'tiny',
- onClick: this.handleConfirmClick
- },
- { default: () => t.confirm }
- )
- )
- );
- }
- });
- function Dq(e, t, n) {
- const r = Object.assign({}, e);
- return (r[t] = n), r;
- }
- const Fq = Re({
- name: 'DataTableFilterButton',
- props: {
- column: { type: Object, required: !0 },
- options: { type: Array, default: () => [] }
- },
- setup(e) {
- const { mergedComponentPropsRef: t } = yt(),
- {
- mergedThemeRef: n,
- mergedClsPrefixRef: r,
- mergedFilterStateRef: o,
- filterMenuCssVarsRef: i,
- paginationBehaviorOnFilterRef: a,
- doUpdatePage: s,
- doUpdateFilters: c
- } = Ze(wi),
- d = Z(!1),
- f = o,
- v = I(() => e.column.filterMultiple !== !1),
- p = I(() => {
- const C = f.value[e.column.key];
- if (C === void 0) {
- const { value: R } = v;
- return R ? [] : null;
- }
- return C;
- }),
- m = I(() => {
- const { value: C } = p;
- return Array.isArray(C) ? C.length > 0 : C !== null;
- }),
- g = I(() => {
- var C, R;
- return (
- ((R =
- (C = t == null ? void 0 : t.value) === null || C === void 0
- ? void 0
- : C.DataTable) === null || R === void 0
- ? void 0
- : R.renderFilter) || e.column.renderFilter
- );
- });
- function w(C) {
- const R = Dq(f.value, e.column.key, C);
- c(R, e.column), a.value === 'first' && s(1);
- }
- function x() {
- d.value = !1;
- }
- function y() {
- d.value = !1;
- }
- return {
- mergedTheme: n,
- mergedClsPrefix: r,
- active: m,
- showPopover: d,
- mergedRenderFilter: g,
- filterMultiple: v,
- mergedFilterValue: p,
- filterMenuCssVars: i,
- handleFilterChange: w,
- handleFilterMenuConfirm: y,
- handleFilterMenuCancel: x
- };
- },
- render() {
- const {
- mergedTheme: e,
- mergedClsPrefix: t,
- handleFilterMenuCancel: n
- } = this;
- return h(
- rd,
- {
- show: this.showPopover,
- onUpdateShow: r => (this.showPopover = r),
- trigger: 'click',
- theme: e.peers.Popover,
- themeOverrides: e.peerOverrides.Popover,
- placement: 'bottom',
- style: { padding: 0 }
- },
- {
- trigger: () => {
- const { mergedRenderFilter: r } = this;
- if (r)
- return h(Cq, {
- 'data-data-table-filter': !0,
- render: r,
- active: this.active,
- show: this.showPopover
- });
- const { renderFilterIcon: o } = this.column;
- return h(
- '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 })
- : h(Et, { clsPrefix: t }, { default: () => h(BU, null) })
- );
- },
- default: () => {
- const { renderFilterMenu: r } = this.column;
- return r
- ? r({ hide: n })
- : h(Iq, {
- 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
- });
- }
- }
- );
- }
- }),
- Bq = Re({
- name: 'ColumnResizeButton',
- props: {
- onResizeStart: Function,
- onResize: Function,
- onResizeEnd: Function
- },
- setup(e) {
- const { mergedClsPrefixRef: t } = Ze(wi),
- n = Z(!1);
- let r = 0;
- function o(c) {
- return c.clientX;
- }
- function i(c) {
- var d;
- const f = n.value;
- (r = o(c)),
- (n.value = !0),
- f ||
- (Tn('mousemove', window, a),
- Tn('mouseup', window, s),
- (d = e.onResizeStart) === null || d === void 0 || d.call(e));
- }
- function a(c) {
- var d;
- (d = e.onResize) === null || d === void 0 || d.call(e, o(c) - r);
- }
- function s() {
- var c;
- (n.value = !1),
- (c = e.onResizeEnd) === null || c === void 0 || c.call(e),
- pn('mousemove', window, a),
- pn('mouseup', window, s);
- }
- return (
- qn(() => {
- pn('mousemove', window, a), pn('mouseup', window, s);
- }),
- { mergedClsPrefix: t, active: n, handleMousedown: i }
- );
- },
- render() {
- const { mergedClsPrefix: e } = this;
- return h('span', {
- 'data-data-table-resizable': !0,
- class: [
- `${e}-data-table-resize-button`,
- this.active && `${e}-data-table-resize-button--active`
- ],
- onMousedown: this.handleMousedown
- });
- }
- }),
- r3 = Re({
- name: 'DropdownDivider',
- props: { clsPrefix: { type: String, required: !0 } },
- render() {
- return h('div', { class: `${this.clsPrefix}-dropdown-divider` });
- }
- }),
- Lq = e => {
- const {
- textColorBase: t,
- opacity1: n,
- opacity2: r,
- opacity3: o,
- opacity4: i,
- opacity5: a
- } = e;
- return {
- color: t,
- opacity1Depth: n,
- opacity2Depth: r,
- opacity3Depth: o,
- opacity4Depth: i,
- opacity5Depth: a
- };
- },
- Nq = { name: 'Icon', common: Nt, self: Lq },
- Hq = Nq,
- jq = O(
- 'icon',
- `
- height: 1em;
- width: 1em;
- line-height: 1em;
- text-align: center;
- display: inline-block;
- position: relative;
- fill: currentColor;
- transform: translateZ(0);
- `,
- [
- U('color-transition', { transition: 'color .3s var(--n-bezier)' }),
- U('depth', { color: 'var(--n-color)' }, [
- F('svg', {
- opacity: 'var(--n-opacity)',
- transition: 'opacity .3s var(--n-bezier)'
- })
- ]),
- F('svg', { height: '1em', width: '1em' })
- ]
- ),
- Uq = Object.assign(Object.assign({}, Ke.props), {
- depth: [String, Number],
- size: [Number, String],
- color: String,
- component: Object
- }),
- o3 = Re({
- _n_icon__: !0,
- name: 'Icon',
- inheritAttrs: !1,
- props: Uq,
- setup(e) {
- const { mergedClsPrefixRef: t, inlineThemeDisabled: n } = yt(e),
- r = Ke('Icon', '-icon', jq, Hq, e, t),
- o = I(() => {
- const { depth: a } = e,
- {
- common: { cubicBezierEaseInOut: s },
- self: c
- } = r.value;
- if (a !== void 0) {
- const { color: d, [`opacity${a}Depth`]: f } = c;
- return { '--n-bezier': s, '--n-color': d, '--n-opacity': f };
- }
- return { '--n-bezier': s, '--n-color': '', '--n-opacity': '' };
- }),
- i = n
- ? Mt(
- 'icon',
- I(() => `${e.depth || 'd'}`),
- o,
- e
- )
- : void 0;
- return {
- mergedClsPrefix: t,
- mergedStyle: I(() => {
- const { size: a, color: s } = e;
- return { fontSize: vn(a), color: s };
- }),
- cssVars: n ? void 0 : o,
- themeClass: i == null ? void 0 : i.themeClass,
- onRender: i == null ? void 0 : i.onRender
- };
- },
- render() {
- var e;
- const {
- $parent: t,
- depth: n,
- mergedClsPrefix: r,
- component: o,
- onRender: i,
- themeClass: a
- } = this;
- return (
- !((e = t == null ? void 0 : t.$options) === null || e === void 0) &&
- e._n_icon__ &&
- Do('icon', "don't wrap `n-icon` inside `n-icon`"),
- i == null || i(),
- h(
- 'i',
- qr(this.$attrs, {
- role: 'img',
- class: [
- `${r}-icon`,
- a,
- {
- [`${r}-icon--depth`]: n,
- [`${r}-icon--color-transition`]: n !== void 0
- }
- ],
- style: [this.cssVars, this.mergedStyle]
- }),
- o ? h(o) : this.$slots
- )
- );
- }
- }),
- Ay = 'n-dropdown-menu',
- Yv = 'n-dropdown',
- LS = 'n-dropdown-option';
- function gb(e, t) {
- return e.type === 'submenu' || (e.type === void 0 && e[t] !== void 0);
- }
- function Wq(e) {
- return e.type === 'group';
- }
- function i3(e) {
- return e.type === 'divider';
- }
- function Vq(e) {
- return e.type === 'render';
- }
- const a3 = Re({
- 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 = Ze(Yv),
- {
- hoverKeyRef: n,
- keyboardKeyRef: r,
- lastToggledSubmenuKeyRef: o,
- pendingKeyPathRef: i,
- activeKeyPathRef: a,
- animatedRef: s,
- mergedShowRef: c,
- renderLabelRef: d,
- renderIconRef: f,
- labelFieldRef: v,
- childrenFieldRef: p,
- renderOptionRef: m,
- nodePropsRef: g,
- menuPropsRef: w
- } = t,
- x = Ze(LS, null),
- y = Ze(Ay),
- C = Ze(Gc),
- R = I(() => e.tmNode.rawNode),
- S = I(() => {
- const { value: q } = p;
- return gb(e.tmNode.rawNode, q);
- }),
- _ = I(() => {
- const { disabled: q } = e.tmNode;
- return q;
- }),
- P = I(() => {
- if (!S.value) return !1;
- const { key: q, disabled: G } = e.tmNode;
- if (G) return !1;
- const { value: ne } = n,
- { value: X } = r,
- { value: J } = o,
- { value: re } = i;
- return ne !== null
- ? re.includes(q)
- : X !== null
- ? re.includes(q) && re[re.length - 1] !== q
- : J !== null
- ? re.includes(q)
- : !1;
- }),
- T = I(() => r.value === null && !s.value),
- A = vD(P, 300, T),
- z = I(() => !!(x != null && x.enteringSubmenuRef.value)),
- k = Z(!1);
- Rt(LS, { enteringSubmenuRef: k });
- function M() {
- k.value = !0;
- }
- function E() {
- k.value = !1;
- }
- function D() {
- const { parentKey: q, tmNode: G } = e;
- G.disabled ||
- (c.value && ((o.value = q), (r.value = null), (n.value = G.key)));
- }
- function L() {
- const { tmNode: q } = e;
- q.disabled || (c.value && n.value !== q.key && D());
- }
- function j(q) {
- if (e.tmNode.disabled || !c.value) return;
- const { relatedTarget: G } = q;
- G &&
- !Io({ target: G }, 'dropdownOption') &&
- !Io({ target: G }, 'scrollbarRail') &&
- (n.value = null);
- }
- function B() {
- const { value: q } = S,
- { tmNode: G } = e;
- c.value &&
- !q &&
- !G.disabled &&
- (t.doSelect(G.key, G.rawNode), t.doUpdateShow(!1));
- }
- return {
- labelField: v,
- renderLabel: d,
- renderIcon: f,
- siblingHasIcon: y.showIconRef,
- siblingHasSubmenu: y.hasSubmenuRef,
- menuProps: w,
- popoverBody: C,
- animated: s,
- mergedShowSubmenu: I(() => A.value && !z.value),
- rawNode: R,
- hasSubmenu: S,
- pending: kt(() => {
- const { value: q } = i,
- { key: G } = e.tmNode;
- return q.includes(G);
- }),
- childActive: kt(() => {
- const { value: q } = a,
- { key: G } = e.tmNode,
- ne = q.findIndex(X => G === X);
- return ne === -1 ? !1 : ne < q.length - 1;
- }),
- active: kt(() => {
- const { value: q } = a,
- { key: G } = e.tmNode,
- ne = q.findIndex(X => G === X);
- return ne === -1 ? !1 : ne === q.length - 1;
- }),
- mergedDisabled: _,
- renderOption: m,
- nodeProps: g,
- handleClick: B,
- handleMouseMove: L,
- handleMouseEnter: D,
- handleMouseLeave: j,
- handleSubmenuBeforeEnter: M,
- handleSubmenuAfterEnter: E
- };
- },
- render() {
- var e, t;
- const {
- animated: n,
- rawNode: r,
- mergedShowSubmenu: o,
- clsPrefix: i,
- siblingHasIcon: a,
- siblingHasSubmenu: s,
- renderLabel: c,
- renderIcon: d,
- renderOption: f,
- nodeProps: v,
- props: p,
- scrollable: m
- } = this;
- let g = null;
- if (o) {
- const C =
- (e = this.menuProps) === null || e === void 0
- ? void 0
- : e.call(this, r, r.children);
- g = h(
- l3,
- Object.assign({}, C, {
- clsPrefix: i,
- scrollable: this.scrollable,
- tmNodes: this.tmNode.children,
- parentKey: this.tmNode.key
- })
- );
- }
- const w = {
- class: [
- `${i}-dropdown-option-body`,
- this.pending && `${i}-dropdown-option-body--pending`,
- this.active && `${i}-dropdown-option-body--active`,
- this.childActive && `${i}-dropdown-option-body--child-active`,
- this.mergedDisabled && `${i}-dropdown-option-body--disabled`
- ],
- onMousemove: this.handleMouseMove,
- onMouseenter: this.handleMouseEnter,
- onMouseleave: this.handleMouseLeave,
- onClick: this.handleClick
- },
- x = v == null ? void 0 : v(r),
- y = h(
- 'div',
- Object.assign(
- {
- class: [`${i}-dropdown-option`, x == null ? void 0 : x.class],
- 'data-dropdown-option': !0
- },
- x
- ),
- h('div', qr(w, p), [
- h(
- 'div',
- {
- class: [
- `${i}-dropdown-option-body__prefix`,
- a && `${i}-dropdown-option-body__prefix--show-icon`
- ]
- },
- [d ? d(r) : _n(r.icon)]
- ),
- h(
- 'div',
- {
- 'data-dropdown-option': !0,
- class: `${i}-dropdown-option-body__label`
- },
- c
- ? c(r)
- : _n(
- (t = r[this.labelField]) !== null && t !== void 0
- ? t
- : r.title
- )
- ),
- h(
- 'div',
- {
- 'data-dropdown-option': !0,
- class: [
- `${i}-dropdown-option-body__suffix`,
- s && `${i}-dropdown-option-body__suffix--has-submenu`
- ]
- },
- this.hasSubmenu
- ? h(o3, null, { default: () => h(xy, null) })
- : null
- )
- ]),
- this.hasSubmenu
- ? h(Xc, null, {
- default: () => [
- h(Zc, null, {
- default: () =>
- h(
- 'div',
- { class: `${i}-dropdown-offset-container` },
- h(
- Qc,
- {
- show: this.mergedShowSubmenu,
- placement: this.placement,
- to: (m && this.popoverBody) || void 0,
- teleportDisabled: !m
- },
- {
- default: () =>
- h(
- 'div',
- { class: `${i}-dropdown-menu-wrapper` },
- n
- ? h(
- Kn,
- {
- onBeforeEnter:
- this.handleSubmenuBeforeEnter,
- onAfterEnter:
- this.handleSubmenuAfterEnter,
- name: 'fade-in-scale-up-transition',
- appear: !0
- },
- { default: () => g }
- )
- : g
- )
- }
- )
- )
- })
- ]
- })
- : null
- );
- return f ? f({ node: y, option: r }) : y;
- }
- }),
- Kq = Re({
- name: 'DropdownGroupHeader',
- props: {
- clsPrefix: { type: String, required: !0 },
- tmNode: { type: Object, required: !0 }
- },
- setup() {
- const { showIconRef: e, hasSubmenuRef: t } = Ze(Ay),
- {
- renderLabelRef: n,
- labelFieldRef: r,
- nodePropsRef: o,
- renderOptionRef: i
- } = Ze(Yv);
- return {
- labelField: r,
- showIcon: e,
- hasSubmenu: t,
- renderLabel: n,
- nodeProps: o,
- renderOption: i
- };
- },
- render() {
- var e;
- const {
- clsPrefix: t,
- hasSubmenu: n,
- showIcon: r,
- nodeProps: o,
- renderLabel: i,
- renderOption: a
- } = this,
- { rawNode: s } = this.tmNode,
- c = h(
- 'div',
- Object.assign(
- { class: `${t}-dropdown-option` },
- o == null ? void 0 : o(s)
- ),
- h(
- 'div',
- {
- class: `${t}-dropdown-option-body ${t}-dropdown-option-body--group`
- },
- h(
- 'div',
- {
- 'data-dropdown-option': !0,
- class: [
- `${t}-dropdown-option-body__prefix`,
- r && `${t}-dropdown-option-body__prefix--show-icon`
- ]
- },
- _n(s.icon)
- ),
- h(
- 'div',
- {
- class: `${t}-dropdown-option-body__label`,
- 'data-dropdown-option': !0
- },
- i
- ? i(s)
- : _n(
- (e = s.title) !== null && e !== void 0
- ? e
- : s[this.labelField]
- )
- ),
- h('div', {
- class: [
- `${t}-dropdown-option-body__suffix`,
- n && `${t}-dropdown-option-body__suffix--has-submenu`
- ],
- 'data-dropdown-option': !0
- })
- )
- );
- return a ? a({ node: c, option: s }) : c;
- }
- }),
- qq = Re({
- 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: n } = this,
- { children: r } = e;
- return h(
- on,
- null,
- h(Kq, { clsPrefix: n, tmNode: e, key: e.key }),
- r == null
- ? void 0
- : r.map(o => {
- const { rawNode: i } = o;
- return i.show === !1
- ? null
- : i3(i)
- ? h(r3, { clsPrefix: n, key: o.key })
- : o.isGroup
- ? (Do(
- 'dropdown',
- '`group` node is not allowed to be put in `group` node.'
- ),
- null)
- : h(a3, { clsPrefix: n, tmNode: o, parentKey: t, key: o.key });
- })
- );
- }
- }),
- Yq = Re({
- name: 'DropdownRenderOption',
- props: { tmNode: { type: Object, required: !0 } },
- render() {
- const {
- rawNode: { render: e, props: t }
- } = this.tmNode;
- return h('div', t, [e == null ? void 0 : e()]);
- }
- }),
- l3 = Re({
- 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: n } = Ze(Yv);
- Rt(Ay, {
- showIconRef: I(() => {
- const o = t.value;
- return e.tmNodes.some(i => {
- var a;
- if (i.isGroup)
- return (a = i.children) === null || a === void 0
- ? void 0
- : a.some(({ rawNode: c }) => (o ? o(c) : c.icon));
- const { rawNode: s } = i;
- return o ? o(s) : s.icon;
- });
- }),
- hasSubmenuRef: I(() => {
- const { value: o } = n;
- return e.tmNodes.some(i => {
- var a;
- if (i.isGroup)
- return (a = i.children) === null || a === void 0
- ? void 0
- : a.some(({ rawNode: c }) => gb(c, o));
- const { rawNode: s } = i;
- return gb(s, o);
- });
- })
- });
- const r = Z(null);
- return Rt(Lu, null), Rt(Nu, null), Rt(Gc, r), { bodyRef: r };
- },
- render() {
- const { parentKey: e, clsPrefix: t, scrollable: n } = this,
- r = this.tmNodes.map(o => {
- const { rawNode: i } = o;
- return i.show === !1
- ? null
- : Vq(i)
- ? h(Yq, { tmNode: o, key: o.key })
- : i3(i)
- ? h(r3, { clsPrefix: t, key: o.key })
- : Wq(i)
- ? h(qq, { clsPrefix: t, tmNode: o, parentKey: e, key: o.key })
- : h(a3, {
- clsPrefix: t,
- tmNode: o,
- parentKey: e,
- key: o.key,
- props: i.props,
- scrollable: n
- });
- });
- return h(
- 'div',
- {
- class: [`${t}-dropdown-menu`, n && `${t}-dropdown-menu--scrollable`],
- ref: 'bodyRef'
- },
- n
- ? h(
- lv,
- { contentClass: `${t}-dropdown-menu__content` },
- { default: () => r }
- )
- : r,
- this.showArrow
- ? Tk({ clsPrefix: t, arrowStyle: this.arrowStyle })
- : null
- );
- }
- }),
- Gq = O(
- 'dropdown-menu',
- `
- transform-origin: var(--v-transform-origin);
- background-color: var(--n-color);
- border-radius: var(--n-border-radius);
- box-shadow: var(--n-box-shadow);
- position: relative;
- transition:
- background-color .3s var(--n-bezier),
- box-shadow .3s var(--n-bezier);
- `,
- [
- gi(),
- O(
- 'dropdown-option',
- `
- position: relative;
- `,
- [
- F(
- 'a',
- `
- text-decoration: none;
- color: inherit;
- outline: none;
- `,
- [
- F(
- '&::before',
- `
- content: "";
- position: absolute;
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- `
- )
- ]
- ),
- O(
- 'dropdown-option-body',
- `
- display: flex;
- cursor: pointer;
- position: relative;
- height: var(--n-option-height);
- line-height: var(--n-option-height);
- font-size: var(--n-font-size);
- color: var(--n-option-text-color);
- transition: color .3s var(--n-bezier);
- `,
- [
- F(
- '&::before',
- `
- content: "";
- position: absolute;
- top: 0;
- bottom: 0;
- left: 4px;
- right: 4px;
- transition: background-color .3s var(--n-bezier);
- border-radius: var(--n-border-radius);
- `
- ),
- jt('disabled', [
- U(
- 'pending',
- `
- color: var(--n-option-text-color-hover);
- `,
- [
- V(
- 'prefix, suffix',
- `
- color: var(--n-option-text-color-hover);
- `
- ),
- F(
- '&::before',
- 'background-color: var(--n-option-color-hover);'
- )
- ]
- ),
- U(
- 'active',
- `
- color: var(--n-option-text-color-active);
- `,
- [
- V(
- 'prefix, suffix',
- `
- color: var(--n-option-text-color-active);
- `
- ),
- F(
- '&::before',
- 'background-color: var(--n-option-color-active);'
- )
- ]
- ),
- U(
- 'child-active',
- `
- color: var(--n-option-text-color-child-active);
- `,
- [
- V(
- 'prefix, suffix',
- `
- color: var(--n-option-text-color-child-active);
- `
- )
- ]
- )
- ]),
- U(
- 'disabled',
- `
- cursor: not-allowed;
- opacity: var(--n-option-opacity-disabled);
- `
- ),
- U(
- 'group',
- `
- font-size: calc(var(--n-font-size) - 1px);
- color: var(--n-group-header-text-color);
- `,
- [
- V(
- 'prefix',
- `
- width: calc(var(--n-option-prefix-width) / 2);
- `,
- [
- U(
- 'show-icon',
- `
- width: calc(var(--n-option-icon-prefix-width) / 2);
- `
- )
- ]
- )
- ]
- ),
- V(
- 'prefix',
- `
- width: var(--n-option-prefix-width);
- display: flex;
- justify-content: center;
- align-items: center;
- color: var(--n-prefix-color);
- transition: color .3s var(--n-bezier);
- z-index: 1;
- `,
- [
- U(
- 'show-icon',
- `
- width: var(--n-option-icon-prefix-width);
- `
- ),
- O(
- 'icon',
- `
- font-size: var(--n-option-icon-size);
- `
- )
- ]
- ),
- V(
- 'label',
- `
- white-space: nowrap;
- flex: 1;
- z-index: 1;
- `
- ),
- V(
- 'suffix',
- `
- box-sizing: border-box;
- flex-grow: 0;
- flex-shrink: 0;
- display: flex;
- justify-content: flex-end;
- align-items: center;
- min-width: var(--n-option-suffix-width);
- padding: 0 8px;
- transition: color .3s var(--n-bezier);
- color: var(--n-suffix-color);
- z-index: 1;
- `,
- [
- U(
- 'has-submenu',
- `
- width: var(--n-option-icon-suffix-width);
- `
- ),
- O(
- 'icon',
- `
- font-size: var(--n-option-icon-size);
- `
- )
- ]
- ),
- O('dropdown-menu', 'pointer-events: all;')
- ]
- ),
- O(
- 'dropdown-offset-container',
- `
- pointer-events: none;
- position: absolute;
- left: 0;
- right: 0;
- top: -4px;
- bottom: -4px;
- `
- )
- ]
- ),
- O(
- 'dropdown-divider',
- `
- transition: background-color .3s var(--n-bezier);
- background-color: var(--n-divider-color);
- height: 1px;
- margin: 4px 0;
- `
- ),
- O(
- 'dropdown-menu-wrapper',
- `
- transform-origin: var(--v-transform-origin);
- width: fit-content;
- `
- ),
- F('>', [
- O(
- 'scrollbar',
- `
- height: inherit;
- max-height: inherit;
- `
- )
- ]),
- jt(
- 'scrollable',
- `
- padding: var(--n-padding);
- `
- ),
- U('scrollable', [
- V(
- 'content',
- `
- padding: var(--n-padding);
- `
- )
- ])
- ]
- ),
- Xq = {
- 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]
- },
- Zq = Object.keys(Ic),
- Qq = Object.assign(Object.assign(Object.assign({}, Ic), Xq), Ke.props),
- Ey = Re({
- name: 'Dropdown',
- inheritAttrs: !1,
- props: Qq,
- setup(e) {
- const t = Z(!1),
- n = An(Ee(e, 'show'), t),
- r = I(() => {
- const { keyField: E, childrenField: D } = e;
- return td(e.options, {
- getKey(L) {
- return L[E];
- },
- getDisabled(L) {
- return L.disabled === !0;
- },
- getIgnored(L) {
- return L.type === 'divider' || L.type === 'render';
- },
- getChildren(L) {
- return L[D];
- }
- });
- }),
- o = I(() => r.value.treeNodes),
- i = Z(null),
- a = Z(null),
- s = Z(null),
- c = I(() => {
- var E, D, L;
- return (L =
- (D = (E = i.value) !== null && E !== void 0 ? E : a.value) !==
- null && D !== void 0
- ? D
- : s.value) !== null && L !== void 0
- ? L
- : null;
- }),
- d = I(() => r.value.getPath(c.value).keyPath),
- f = I(() => r.value.getPath(e.value).keyPath),
- v = kt(() => e.keyboard && n.value);
- Y0(
- {
- keydown: {
- ArrowUp: { prevent: !0, handler: _ },
- ArrowRight: { prevent: !0, handler: S },
- ArrowDown: { prevent: !0, handler: P },
- ArrowLeft: { prevent: !0, handler: R },
- Enter: { prevent: !0, handler: T },
- Escape: C
- }
- },
- v
- );
- const { mergedClsPrefixRef: p, inlineThemeDisabled: m } = yt(e),
- g = Ke('Dropdown', '-dropdown', Gq, Oy, e, p);
- Rt(Yv, {
- labelFieldRef: Ee(e, 'labelField'),
- childrenFieldRef: Ee(e, 'childrenField'),
- renderLabelRef: Ee(e, 'renderLabel'),
- renderIconRef: Ee(e, 'renderIcon'),
- hoverKeyRef: i,
- keyboardKeyRef: a,
- lastToggledSubmenuKeyRef: s,
- pendingKeyPathRef: d,
- activeKeyPathRef: f,
- animatedRef: Ee(e, 'animated'),
- mergedShowRef: n,
- nodePropsRef: Ee(e, 'nodeProps'),
- renderOptionRef: Ee(e, 'renderOption'),
- menuPropsRef: Ee(e, 'menuProps'),
- doSelect: w,
- doUpdateShow: x
- }),
- $t(n, E => {
- !e.animated && !E && y();
- });
- function w(E, D) {
- const { onSelect: L } = e;
- L && ze(L, E, D);
- }
- function x(E) {
- const { 'onUpdate:show': D, onUpdateShow: L } = e;
- D && ze(D, E), L && ze(L, E), (t.value = E);
- }
- function y() {
- (i.value = null), (a.value = null), (s.value = null);
- }
- function C() {
- x(!1);
- }
- function R() {
- z('left');
- }
- function S() {
- z('right');
- }
- function _() {
- z('up');
- }
- function P() {
- z('down');
- }
- function T() {
- const E = A();
- E != null && E.isLeaf && n.value && (w(E.key, E.rawNode), x(!1));
- }
- function A() {
- var E;
- const { value: D } = r,
- { value: L } = c;
- return !D || L === null
- ? null
- : (E = D.getNode(L)) !== null && E !== void 0
- ? E
- : null;
- }
- function z(E) {
- const { value: D } = c,
- {
- value: { getFirstAvailableNode: L }
- } = r;
- let j = null;
- if (D === null) {
- const B = L();
- B !== null && (j = B.key);
- } else {
- const B = A();
- if (B) {
- let q;
- switch (E) {
- case 'down':
- q = B.getNext();
- break;
- case 'up':
- q = B.getPrev();
- break;
- case 'right':
- q = B.getChild();
- break;
- case 'left':
- q = B.getParent();
- break;
- }
- q && (j = q.key);
- }
- }
- j !== null && ((i.value = null), (a.value = j));
- }
- const k = I(() => {
- const { size: E, inverted: D } = e,
- {
- common: { cubicBezierEaseInOut: L },
- self: j
- } = g.value,
- {
- padding: B,
- dividerColor: q,
- borderRadius: G,
- optionOpacityDisabled: ne,
- [Oe('optionIconSuffixWidth', E)]: X,
- [Oe('optionSuffixWidth', E)]: J,
- [Oe('optionIconPrefixWidth', E)]: re,
- [Oe('optionPrefixWidth', E)]: ce,
- [Oe('fontSize', E)]: pe,
- [Oe('optionHeight', E)]: Fe,
- [Oe('optionIconSize', E)]: Ie
- } = j,
- le = {
- '--n-bezier': L,
- '--n-font-size': pe,
- '--n-padding': B,
- '--n-border-radius': G,
- '--n-option-height': Fe,
- '--n-option-prefix-width': ce,
- '--n-option-icon-prefix-width': re,
- '--n-option-suffix-width': J,
- '--n-option-icon-suffix-width': X,
- '--n-option-icon-size': Ie,
- '--n-divider-color': q,
- '--n-option-opacity-disabled': ne
- };
- return (
- D
- ? ((le['--n-color'] = j.colorInverted),
- (le['--n-option-color-hover'] = j.optionColorHoverInverted),
- (le['--n-option-color-active'] = j.optionColorActiveInverted),
- (le['--n-option-text-color'] = j.optionTextColorInverted),
- (le['--n-option-text-color-hover'] =
- j.optionTextColorHoverInverted),
- (le['--n-option-text-color-active'] =
- j.optionTextColorActiveInverted),
- (le['--n-option-text-color-child-active'] =
- j.optionTextColorChildActiveInverted),
- (le['--n-prefix-color'] = j.prefixColorInverted),
- (le['--n-suffix-color'] = j.suffixColorInverted),
- (le['--n-group-header-text-color'] =
- j.groupHeaderTextColorInverted))
- : ((le['--n-color'] = j.color),
- (le['--n-option-color-hover'] = j.optionColorHover),
- (le['--n-option-color-active'] = j.optionColorActive),
- (le['--n-option-text-color'] = j.optionTextColor),
- (le['--n-option-text-color-hover'] = j.optionTextColorHover),
- (le['--n-option-text-color-active'] = j.optionTextColorActive),
- (le['--n-option-text-color-child-active'] =
- j.optionTextColorChildActive),
- (le['--n-prefix-color'] = j.prefixColor),
- (le['--n-suffix-color'] = j.suffixColor),
- (le['--n-group-header-text-color'] = j.groupHeaderTextColor)),
- le
- );
- }),
- M = m
- ? Mt(
- 'dropdown',
- I(() => `${e.size[0]}${e.inverted ? 'i' : ''}`),
- k,
- e
- )
- : void 0;
- return {
- mergedClsPrefix: p,
- mergedTheme: g,
- tmNodes: o,
- mergedShow: n,
- handleAfterLeave: () => {
- e.animated && y();
- },
- doUpdateShow: x,
- cssVars: m ? void 0 : k,
- themeClass: M == null ? void 0 : M.themeClass,
- onRender: M == null ? void 0 : M.onRender
- };
- },
- render() {
- const e = (r, o, i, a, s) => {
- var c;
- const { mergedClsPrefix: d, menuProps: f } = this;
- (c = this.onRender) === null || c === void 0 || c.call(this);
- const v =
- (f == null
- ? void 0
- : f(
- void 0,
- this.tmNodes.map(m => m.rawNode)
- )) || {},
- p = {
- ref: zR(o),
- class: [r, `${d}-dropdown`, this.themeClass],
- clsPrefix: d,
- tmNodes: this.tmNodes,
- style: [i, this.cssVars],
- showArrow: this.showArrow,
- arrowStyle: this.arrowStyle,
- scrollable: this.scrollable,
- onMouseenter: a,
- onMouseleave: s
- };
- return h(l3, qr(this.$attrs, p, v));
- },
- { mergedTheme: t } = this,
- n = {
- show: this.mergedShow,
- theme: t.peers.Popover,
- themeOverrides: t.peerOverrides.Popover,
- internalOnAfterLeave: this.handleAfterLeave,
- internalRenderBody: e,
- onUpdateShow: this.doUpdateShow,
- 'onUpdate:show': void 0
- };
- return h(rd, Object.assign({}, fi(this.$props, Zq), n), {
- trigger: () => {
- var r, o;
- return (o = (r = this.$slots).default) === null || o === void 0
- ? void 0
- : o.call(r);
- }
- });
- }
- }),
- s3 = '_n_all__',
- c3 = '_n_none__';
- function Jq(e, t, n, r) {
- return e
- ? o => {
- for (const i of e)
- switch (o) {
- case s3:
- n(!0);
- return;
- case c3:
- r(!0);
- return;
- default:
- if (typeof i == 'object' && i.key === o) {
- i.onSelect(t.value);
- return;
- }
- }
- }
- : () => {};
- }
- function eY(e, t) {
- return e
- ? e.map(n => {
- switch (n) {
- case 'all':
- return { label: t.checkTableAll, key: s3 };
- case 'none':
- return { label: t.uncheckTableAll, key: c3 };
- default:
- return n;
- }
- })
- : [];
- }
- const tY = Re({
- name: 'DataTableSelectionMenu',
- props: { clsPrefix: { type: String, required: !0 } },
- setup(e) {
- const {
- props: t,
- localeRef: n,
- checkOptionsRef: r,
- rawPaginatedDataRef: o,
- doCheckAll: i,
- doUncheckAll: a
- } = Ze(wi),
- s = I(() => Jq(r.value, o, i, a)),
- c = I(() => eY(r.value, n.value));
- return () => {
- var d, f, v, p;
- const { clsPrefix: m } = e;
- return h(
- Ey,
- {
- theme:
- (f = (d = t.theme) === null || d === void 0 ? void 0 : d.peers) ===
- null || f === void 0
- ? void 0
- : f.Dropdown,
- themeOverrides:
- (p =
- (v = t.themeOverrides) === null || v === void 0
- ? void 0
- : v.peers) === null || p === void 0
- ? void 0
- : p.Dropdown,
- options: c.value,
- onSelect: s.value
- },
- {
- default: () =>
- h(
- Et,
- { clsPrefix: m, class: `${m}-data-table-check-extra` },
- { default: () => h(yk, null) }
- )
- }
- );
- };
- }
- });
- function qg(e) {
- return typeof e.title == 'function' ? e.title(e) : e.title;
- }
- const d3 = Re({
- name: 'DataTableHeader',
- props: { discrete: { type: Boolean, default: !0 } },
- setup() {
- const {
- mergedClsPrefixRef: e,
- scrollXRef: t,
- fixedColumnLeftMapRef: n,
- fixedColumnRightMapRef: r,
- mergedCurrentPageRef: o,
- allRowsCheckedRef: i,
- someRowsCheckedRef: a,
- rowsRef: s,
- colsRef: c,
- mergedThemeRef: d,
- checkOptionsRef: f,
- mergedSortStateRef: v,
- componentId: p,
- scrollPartRef: m,
- mergedTableLayoutRef: g,
- headerCheckboxDisabledRef: w,
- onUnstableColumnResize: x,
- doUpdateResizableWidth: y,
- handleTableHeaderScroll: C,
- deriveNextSorter: R,
- doUncheckAll: S,
- doCheckAll: _
- } = Ze(wi),
- P = Z({});
- function T(j) {
- const B = P.value[j];
- return B == null ? void 0 : B.getBoundingClientRect().width;
- }
- function A() {
- i.value ? S() : _();
- }
- function z(j, B) {
- if (Io(j, 'dataTableFilter') || Io(j, 'dataTableResizable') || !Kg(B))
- return;
- const q = v.value.find(ne => ne.columnKey === B.key) || null,
- G = Mq(B, q);
- R(G);
- }
- function k() {
- m.value = 'head';
- }
- function M() {
- m.value = 'body';
- }
- const E = new Map();
- function D(j) {
- E.set(j.key, T(j.key));
- }
- function L(j, B) {
- const q = E.get(j.key);
- if (q === void 0) return;
- const G = q + B,
- ne = zq(G, j.minWidth, j.maxWidth);
- x(G, ne, j, T), y(j, ne);
- }
- return {
- cellElsRef: P,
- componentId: p,
- mergedSortState: v,
- mergedClsPrefix: e,
- scrollX: t,
- fixedColumnLeftMap: n,
- fixedColumnRightMap: r,
- currentPage: o,
- allRowsChecked: i,
- someRowsChecked: a,
- rows: s,
- cols: c,
- mergedTheme: d,
- checkOptions: f,
- mergedTableLayout: g,
- headerCheckboxDisabled: w,
- handleMouseenter: k,
- handleMouseleave: M,
- handleCheckboxUpdateChecked: A,
- handleColHeaderClick: z,
- handleTableHeaderScroll: C,
- handleColumnResizeStart: D,
- handleColumnResize: L
- };
- },
- render() {
- const {
- cellElsRef: e,
- mergedClsPrefix: t,
- fixedColumnLeftMap: n,
- fixedColumnRightMap: r,
- currentPage: o,
- allRowsChecked: i,
- someRowsChecked: a,
- rows: s,
- cols: c,
- mergedTheme: d,
- checkOptions: f,
- componentId: v,
- discrete: p,
- mergedTableLayout: m,
- headerCheckboxDisabled: g,
- mergedSortState: w,
- handleColHeaderClick: x,
- handleCheckboxUpdateChecked: y,
- handleColumnResizeStart: C,
- handleColumnResize: R
- } = this,
- S = h(
- 'thead',
- { class: `${t}-data-table-thead`, 'data-n-id': v },
- s.map(z =>
- h(
- 'tr',
- { class: `${t}-data-table-tr` },
- z.map(({ column: k, colSpan: M, rowSpan: E, isLast: D }) => {
- var L, j;
- const B = si(k),
- { ellipsis: q } = k,
- G = () =>
- k.type === 'selection'
- ? k.multiple !== !1
- ? h(
- on,
- null,
- h(Vu, {
- key: o,
- privateInsideTable: !0,
- checked: i,
- indeterminate: a,
- disabled: g,
- onUpdateChecked: y
- }),
- f ? h(tY, { clsPrefix: t }) : null
- )
- : null
- : h(
- on,
- null,
- h(
- 'div',
- { class: `${t}-data-table-th__title-wrapper` },
- h(
- 'div',
- { class: `${t}-data-table-th__title` },
- q === !0 || (q && !q.tooltip)
- ? h(
- 'div',
- { class: `${t}-data-table-th__ellipsis` },
- qg(k)
- )
- : q && typeof q == 'object'
- ? h(
- Xk,
- Object.assign({}, q, {
- theme: d.peers.Ellipsis,
- themeOverrides: d.peerOverrides.Ellipsis
- }),
- { default: () => qg(k) }
- )
- : qg(k)
- ),
- Kg(k) ? h(wq, { column: k }) : null
- ),
- FS(k)
- ? h(Fq, { column: k, options: k.filterOptions })
- : null,
- t3(k)
- ? h(Bq, {
- onResizeStart: () => {
- C(k);
- },
- onResize: J => {
- R(k, J);
- }
- })
- : null
- ),
- ne = B in n,
- X = B in r;
- return h(
- 'th',
- {
- ref: J => (e[B] = J),
- key: B,
- style: {
- textAlign: k.titleAlign || k.align,
- left: sr(
- (L = n[B]) === null || L === void 0 ? void 0 : L.start
- ),
- right: sr(
- (j = r[B]) === null || j === void 0 ? void 0 : j.start
- )
- },
- colspan: M,
- rowspan: E,
- 'data-col-key': B,
- class: [
- `${t}-data-table-th`,
- (ne || X) &&
- `${t}-data-table-th--fixed-${ne ? 'left' : 'right'}`,
- {
- [`${t}-data-table-th--hover`]: n3(k, w),
- [`${t}-data-table-th--filterable`]: FS(k),
- [`${t}-data-table-th--sortable`]: Kg(k),
- [`${t}-data-table-th--selection`]:
- k.type === 'selection',
- [`${t}-data-table-th--last`]: D
- },
- k.className
- ],
- onClick:
- k.type !== 'selection' &&
- k.type !== 'expand' &&
- !('children' in k)
- ? J => {
- x(J, k);
- }
- : void 0
- },
- G()
- );
- })
- )
- )
- );
- if (!p) return S;
- const {
- handleTableHeaderScroll: _,
- handleMouseenter: P,
- handleMouseleave: T,
- scrollX: A
- } = this;
- return h(
- 'div',
- {
- class: `${t}-data-table-base-table-header`,
- onScroll: _,
- onMouseenter: P,
- onMouseleave: T
- },
- h(
- 'table',
- {
- ref: 'body',
- class: `${t}-data-table-table`,
- style: { minWidth: vn(A), tableLayout: m }
- },
- h(
- 'colgroup',
- null,
- c.map(z => h('col', { key: z.key, style: z.style }))
- ),
- S
- )
- );
- }
- }),
- nY = Re({
- 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: n, renderCell: r } = this;
- let o;
- const { render: i, key: a, ellipsis: s } = t;
- if (
- (i && !e
- ? (o = i(n, this.index))
- : e
- ? (o = n[a].value)
- : (o = r ? r(ku(n, a), n, t) : ku(n, a)),
- s)
- )
- if (typeof s == 'object') {
- const { mergedTheme: c } = this;
- return h(
- Xk,
- Object.assign({}, s, {
- theme: c.peers.Ellipsis,
- themeOverrides: c.peerOverrides.Ellipsis
- }),
- { default: () => o }
- );
- } else
- return h(
- 'span',
- { class: `${this.clsPrefix}-data-table-td__ellipsis` },
- o
- );
- return o;
- }
- }),
- NS = Re({
- 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 h(
- 'div',
- {
- class: [
- `${e}-data-table-expand-trigger`,
- this.expanded && `${e}-data-table-expand-trigger--expanded`
- ],
- onClick: this.onClick
- },
- h(Zi, null, {
- default: () =>
- this.loading
- ? h($a, {
- key: 'loading',
- clsPrefix: this.clsPrefix,
- radius: 85,
- strokeWidth: 15,
- scale: 0.88
- })
- : this.renderExpandIcon
- ? this.renderExpandIcon({ expanded: this.expanded })
- : h(
- Et,
- { clsPrefix: e, key: 'base-icon' },
- { default: () => h(xy, null) }
- )
- })
- );
- }
- }),
- rY = Re({
- 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: n } =
- Ze(wi);
- return () => {
- const { rowKey: r } = e;
- return h(Vu, {
- privateInsideTable: !0,
- disabled: e.disabled,
- indeterminate: n.value.has(r),
- checked: t.value.has(r),
- onUpdateChecked: e.onUpdateChecked
- });
- };
- }
- }),
- oY = Re({
- 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: n } = Ze(wi);
- return () => {
- const { rowKey: r } = e;
- return h(zy, {
- name: n,
- disabled: e.disabled,
- checked: t.value.has(r),
- onUpdateChecked: e.onUpdateChecked
- });
- };
- }
- });
- function iY(e, t) {
- const n = [];
- function r(o, i) {
- o.forEach(a => {
- a.children && t.has(a.key)
- ? (n.push({ tmNode: a, striped: !1, key: a.key, index: i }),
- r(a.children, i))
- : n.push({ key: a.key, tmNode: a, striped: !1, index: i });
- });
- }
- return (
- e.forEach(o => {
- n.push(o);
- const { children: i } = o.tmNode;
- i && t.has(o.key) && r(i, o.index);
- }),
- n
- );
- }
- const aY = Re({
- 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: n,
- onMouseenter: r,
- onMouseleave: o
- } = this;
- return h(
- 'table',
- {
- style: { tableLayout: 'fixed' },
- class: `${e}-data-table-table`,
- onMouseenter: r,
- onMouseleave: o
- },
- h(
- 'colgroup',
- null,
- n.map(i => h('col', { key: i.key, style: i.style }))
- ),
- h(
- 'tbody',
- { 'data-n-id': t, class: `${e}-data-table-tbody` },
- this.$slots
- )
- );
- }
- }),
- lY = Re({
- name: 'DataTableBody',
- props: {
- onResize: Function,
- showHeader: Boolean,
- flexHeight: Boolean,
- bodyStyle: Object
- },
- setup(e) {
- const {
- slots: t,
- bodyWidthRef: n,
- mergedExpandedRowKeysRef: r,
- mergedClsPrefixRef: o,
- mergedThemeRef: i,
- scrollXRef: a,
- colsRef: s,
- paginatedDataRef: c,
- rawPaginatedDataRef: d,
- fixedColumnLeftMapRef: f,
- fixedColumnRightMapRef: v,
- mergedCurrentPageRef: p,
- rowClassNameRef: m,
- leftActiveFixedColKeyRef: g,
- leftActiveFixedChildrenColKeysRef: w,
- rightActiveFixedColKeyRef: x,
- rightActiveFixedChildrenColKeysRef: y,
- renderExpandRef: C,
- hoverKeyRef: R,
- summaryRef: S,
- mergedSortStateRef: _,
- virtualScrollRef: P,
- componentId: T,
- scrollPartRef: A,
- mergedTableLayoutRef: z,
- childTriggerColIndexRef: k,
- indentRef: M,
- rowPropsRef: E,
- maxHeightRef: D,
- stripedRef: L,
- loadingRef: j,
- onLoadRef: B,
- loadingKeySetRef: q,
- expandableRef: G,
- stickyExpandedRowsRef: ne,
- renderExpandIconRef: X,
- summaryPlacementRef: J,
- treeMateRef: re,
- scrollbarPropsRef: ce,
- setHeaderScrollLeft: pe,
- doUpdateExpandedRowKeys: Fe,
- handleTableBodyScroll: Ie,
- doCheck: le,
- doUncheck: me,
- renderCell: he
- } = Ze(wi),
- ue = Z(null),
- Ae = Z(null),
- W = Z(null),
- Q = kt(() => c.value.length === 0),
- ee = kt(() => e.showHeader || !Q.value),
- ve = kt(() => e.showHeader || Q.value);
- let oe = '';
- const H = I(() => new Set(r.value));
- function ae(ot) {
- var ct;
- return (ct = re.value.getNode(ot)) === null || ct === void 0
- ? void 0
- : ct.rawNode;
- }
- function ge(ot, ct, Xe) {
- const Qe = ae(ot.key);
- if (!Qe) {
- Do('data-table', `fail to get row data with key ${ot.key}`);
- return;
- }
- if (Xe) {
- const ie = c.value.findIndex($e => $e.key === oe);
- if (ie !== -1) {
- const $e = c.value.findIndex(be => be.key === ot.key),
- Ue = Math.min(ie, $e),
- lt = Math.max(ie, $e),
- st = [];
- c.value.slice(Ue, lt + 1).forEach(be => {
- be.disabled || st.push(be.key);
- }),
- ct ? le(st, !1, Qe) : me(st, Qe),
- (oe = ot.key);
- return;
- }
- }
- ct ? le(ot.key, !1, Qe) : me(ot.key, Qe), (oe = ot.key);
- }
- function Ce(ot) {
- const ct = ae(ot.key);
- if (!ct) {
- Do('data-table', `fail to get row data with key ${ot.key}`);
- return;
- }
- le(ot.key, !0, ct);
- }
- function se() {
- if (!ee.value) {
- const { value: ct } = W;
- return ct || null;
- }
- if (P.value) return it();
- const { value: ot } = ue;
- return ot ? ot.containerRef : null;
- }
- function Se(ot, ct) {
- var Xe;
- if (q.value.has(ot)) return;
- const { value: Qe } = r,
- ie = Qe.indexOf(ot),
- $e = Array.from(Qe);
- ~ie
- ? ($e.splice(ie, 1), Fe($e))
- : ct && !ct.isLeaf && !ct.shallowLoaded
- ? (q.value.add(ot),
- (Xe = B.value) === null ||
- Xe === void 0 ||
- Xe.call(B, ct.rawNode)
- .then(() => {
- const { value: Ue } = r,
- lt = Array.from(Ue);
- ~lt.indexOf(ot) || lt.push(ot), Fe(lt);
- })
- .finally(() => {
- q.value.delete(ot);
- }))
- : ($e.push(ot), Fe($e));
- }
- function Ne() {
- R.value = null;
- }
- function Ge() {
- A.value = 'body';
- }
- function it() {
- const { value: ot } = Ae;
- return ot == null ? void 0 : ot.listElRef;
- }
- function dt() {
- const { value: ot } = Ae;
- return ot == null ? void 0 : ot.itemsElRef;
- }
- function xt(ot) {
- var ct;
- Ie(ot), (ct = ue.value) === null || ct === void 0 || ct.sync();
- }
- function Me(ot) {
- var ct;
- const { onResize: Xe } = e;
- Xe && Xe(ot), (ct = ue.value) === null || ct === void 0 || ct.sync();
- }
- const ut = {
- getScrollContainer: se,
- scrollTo(ot, ct) {
- var Xe, Qe;
- P.value
- ? (Xe = Ae.value) === null || Xe === void 0 || Xe.scrollTo(ot, ct)
- : (Qe = ue.value) === null ||
- Qe === void 0 ||
- Qe.scrollTo(ot, ct);
- }
- },
- wt = F([
- ({ props: ot }) => {
- const ct = Qe =>
- Qe === null
- ? null
- : F(
- `[data-n-id="${ot.componentId}"] [data-col-key="${Qe}"]::after`,
- { boxShadow: 'var(--n-box-shadow-after)' }
- ),
- Xe = Qe =>
- Qe === null
- ? null
- : F(
- `[data-n-id="${ot.componentId}"] [data-col-key="${Qe}"]::before`,
- { boxShadow: 'var(--n-box-shadow-before)' }
- );
- return F([
- ct(ot.leftActiveFixedColKey),
- Xe(ot.rightActiveFixedColKey),
- ot.leftActiveFixedChildrenColKeys.map(Qe => ct(Qe)),
- ot.rightActiveFixedChildrenColKeys.map(Qe => Xe(Qe))
- ]);
- }
- ]);
- let Lt = !1;
- return (
- Bn(() => {
- const { value: ot } = g,
- { value: ct } = w,
- { value: Xe } = x,
- { value: Qe } = y;
- if (!Lt && ot === null && Xe === null) return;
- const ie = {
- leftActiveFixedColKey: ot,
- leftActiveFixedChildrenColKeys: ct,
- rightActiveFixedColKey: Xe,
- rightActiveFixedChildrenColKeys: Qe,
- componentId: T
- };
- wt.mount({ id: `n-${T}`, force: !0, props: ie, anchorMetaName: Ec }),
- (Lt = !0);
- }),
- Mu(() => {
- wt.unmount({ id: `n-${T}` });
- }),
- Object.assign(
- {
- bodyWidth: n,
- summaryPlacement: J,
- dataTableSlots: t,
- componentId: T,
- scrollbarInstRef: ue,
- virtualListRef: Ae,
- emptyElRef: W,
- summary: S,
- mergedClsPrefix: o,
- mergedTheme: i,
- scrollX: a,
- cols: s,
- loading: j,
- bodyShowHeaderOnly: ve,
- shouldDisplaySomeTablePart: ee,
- empty: Q,
- paginatedDataAndInfo: I(() => {
- const { value: ot } = L;
- let ct = !1;
- return {
- data: c.value.map(
- ot
- ? (Qe, ie) => (
- Qe.isLeaf || (ct = !0),
- {
- tmNode: Qe,
- key: Qe.key,
- striped: ie % 2 === 1,
- index: ie
- }
- )
- : (Qe, ie) => (
- Qe.isLeaf || (ct = !0),
- { tmNode: Qe, key: Qe.key, striped: !1, index: ie }
- )
- ),
- hasChildren: ct
- };
- }),
- rawPaginatedData: d,
- fixedColumnLeftMap: f,
- fixedColumnRightMap: v,
- currentPage: p,
- rowClassName: m,
- renderExpand: C,
- mergedExpandedRowKeySet: H,
- hoverKey: R,
- mergedSortState: _,
- virtualScroll: P,
- mergedTableLayout: z,
- childTriggerColIndex: k,
- indent: M,
- rowProps: E,
- maxHeight: D,
- loadingKeySet: q,
- expandable: G,
- stickyExpandedRows: ne,
- renderExpandIcon: X,
- scrollbarProps: ce,
- setHeaderScrollLeft: pe,
- handleMouseenterTable: Ge,
- handleVirtualListScroll: xt,
- handleVirtualListResize: Me,
- handleMouseleaveTable: Ne,
- virtualListContainer: it,
- virtualListContent: dt,
- handleTableBodyScroll: Ie,
- handleCheckboxUpdateChecked: ge,
- handleRadioUpdateChecked: Ce,
- handleUpdateExpanded: Se,
- renderCell: he
- },
- ut
- )
- );
- },
- render() {
- const {
- mergedTheme: e,
- scrollX: t,
- mergedClsPrefix: n,
- virtualScroll: r,
- maxHeight: o,
- mergedTableLayout: i,
- flexHeight: a,
- loadingKeySet: s,
- onResize: c,
- setHeaderScrollLeft: d
- } = this,
- f = t !== void 0 || o !== void 0 || a,
- v = !f && i === 'auto',
- p = t !== void 0 || v,
- m = { minWidth: vn(t) || '100%' };
- t && (m.width = '100%');
- const g = h(
- yr,
- Object.assign({}, this.scrollbarProps, {
- ref: 'scrollbarInstRef',
- scrollable: f || v,
- class: `${n}-data-table-base-table-body`,
- style: this.bodyStyle,
- theme: e.peers.Scrollbar,
- themeOverrides: e.peerOverrides.Scrollbar,
- contentStyle: m,
- container: r ? this.virtualListContainer : void 0,
- content: r ? this.virtualListContent : void 0,
- horizontalRailStyle: { zIndex: 3 },
- verticalRailStyle: { zIndex: 3 },
- xScrollable: p,
- onScroll: r ? void 0 : this.handleTableBodyScroll,
- internalOnUpdateScrollLeft: d,
- onResize: c
- }),
- {
- default: () => {
- const w = {},
- x = {},
- {
- cols: y,
- paginatedDataAndInfo: C,
- mergedTheme: R,
- fixedColumnLeftMap: S,
- fixedColumnRightMap: _,
- currentPage: P,
- rowClassName: T,
- mergedSortState: A,
- mergedExpandedRowKeySet: z,
- stickyExpandedRows: k,
- componentId: M,
- childTriggerColIndex: E,
- expandable: D,
- rowProps: L,
- handleMouseenterTable: j,
- handleMouseleaveTable: B,
- renderExpand: q,
- summary: G,
- handleCheckboxUpdateChecked: ne,
- handleRadioUpdateChecked: X,
- handleUpdateExpanded: J
- } = this,
- { length: re } = y;
- let ce;
- const { data: pe, hasChildren: Fe } = C,
- Ie = Fe ? iY(pe, z) : pe;
- if (G) {
- const ee = G(this.rawPaginatedData);
- if (Array.isArray(ee)) {
- const ve = ee.map((oe, H) => ({
- isSummaryRow: !0,
- key: `__n_summary__${H}`,
- tmNode: { rawNode: oe, disabled: !0 },
- index: -1
- }));
- ce =
- this.summaryPlacement === 'top'
- ? [...ve, ...Ie]
- : [...Ie, ...ve];
- } else {
- const ve = {
- isSummaryRow: !0,
- key: '__n_summary__',
- tmNode: { rawNode: ee, disabled: !0 },
- index: -1
- };
- ce =
- this.summaryPlacement === 'top' ? [ve, ...Ie] : [...Ie, ve];
- }
- } else ce = Ie;
- const le = Fe ? { width: sr(this.indent) } : void 0,
- me = [];
- ce.forEach(ee => {
- q && z.has(ee.key) && (!D || D(ee.tmNode.rawNode))
- ? me.push(ee, {
- isExpandedRow: !0,
- key: `${ee.key}-expand`,
- tmNode: ee.tmNode,
- index: ee.index
- })
- : me.push(ee);
- });
- const { length: he } = me,
- ue = {};
- pe.forEach(({ tmNode: ee }, ve) => {
- ue[ve] = ee.key;
- });
- const Ae = k ? this.bodyWidth : null,
- W = Ae === null ? void 0 : `${Ae}px`,
- Q = (ee, ve, oe) => {
- const { index: H } = ee;
- if ('isExpandedRow' in ee) {
- const {
- tmNode: { key: xt, rawNode: Me }
- } = ee;
- return h(
- 'tr',
- { class: `${n}-data-table-tr`, key: `${xt}__expand` },
- h(
- 'td',
- {
- class: [
- `${n}-data-table-td`,
- `${n}-data-table-td--last-col`,
- ve + 1 === he && `${n}-data-table-td--last-row`
- ],
- colspan: re
- },
- k
- ? h(
- 'div',
- {
- class: `${n}-data-table-expand`,
- style: { width: W }
- },
- q(Me, H)
- )
- : q(Me, H)
- )
- );
- }
- const ae = 'isSummaryRow' in ee,
- ge = !ae && ee.striped,
- { tmNode: Ce, key: se } = ee,
- { rawNode: Se } = Ce,
- Ne = z.has(se),
- Ge = L ? L(Se, H) : void 0,
- it = typeof T == 'string' ? T : Eq(Se, H, T);
- return h(
- 'tr',
- Object.assign(
- {
- onMouseenter: () => {
- this.hoverKey = se;
- },
- key: se,
- class: [
- `${n}-data-table-tr`,
- ae && `${n}-data-table-tr--summary`,
- ge && `${n}-data-table-tr--striped`,
- it
- ]
- },
- Ge
- ),
- y.map((xt, Me) => {
- var ut, wt, Lt, ot, ct;
- if (ve in w) {
- const Ve = w[ve],
- nt = Ve.indexOf(Me);
- if (~nt) return Ve.splice(nt, 1), null;
- }
- const { column: Xe } = xt,
- Qe = si(xt),
- { rowSpan: ie, colSpan: $e } = Xe,
- Ue = ae
- ? ((ut = ee.tmNode.rawNode[Qe]) === null ||
- ut === void 0
- ? void 0
- : ut.colSpan) || 1
- : $e
- ? $e(Se, H)
- : 1,
- lt = ae
- ? ((wt = ee.tmNode.rawNode[Qe]) === null ||
- wt === void 0
- ? void 0
- : wt.rowSpan) || 1
- : ie
- ? ie(Se, H)
- : 1,
- st = Me + Ue === re,
- be = ve + lt === he,
- He = lt > 1;
- if ((He && (x[ve] = { [Me]: [] }), Ue > 1 || He))
- for (let Ve = ve; Ve < ve + lt; ++Ve) {
- He && x[ve][Me].push(ue[Ve]);
- for (let nt = Me; nt < Me + Ue; ++nt)
- (Ve === ve && nt === Me) ||
- (Ve in w ? w[Ve].push(nt) : (w[Ve] = [nt]));
- }
- const tt = He ? this.hoverKey : null,
- { cellProps: pt } = Xe,
- _e = pt == null ? void 0 : pt(Se, H);
- return h(
- 'td',
- Object.assign({}, _e, {
- key: Qe,
- style: [
- {
- textAlign: Xe.align || void 0,
- left: sr(
- (Lt = S[Qe]) === null || Lt === void 0
- ? void 0
- : Lt.start
- ),
- right: sr(
- (ot = _[Qe]) === null || ot === void 0
- ? void 0
- : ot.start
- )
- },
- (_e == null ? void 0 : _e.style) || ''
- ],
- colspan: Ue,
- rowspan: oe ? void 0 : lt,
- 'data-col-key': Qe,
- class: [
- `${n}-data-table-td`,
- Xe.className,
- _e == null ? void 0 : _e.class,
- ae && `${n}-data-table-td--summary`,
- ((tt !== null && x[ve][Me].includes(tt)) ||
- n3(Xe, A)) &&
- `${n}-data-table-td--hover`,
- Xe.fixed && `${n}-data-table-td--fixed-${Xe.fixed}`,
- Xe.align && `${n}-data-table-td--${Xe.align}-align`,
- Xe.type === 'selection' &&
- `${n}-data-table-td--selection`,
- Xe.type === 'expand' && `${n}-data-table-td--expand`,
- st && `${n}-data-table-td--last-col`,
- be && `${n}-data-table-td--last-row`
- ]
- }),
- Fe && Me === E
- ? [
- TR(
- ae ? 0 : ee.tmNode.level,
- h('div', {
- class: `${n}-data-table-indent`,
- style: le
- })
- ),
- ae || ee.tmNode.isLeaf
- ? h('div', {
- class: `${n}-data-table-expand-placeholder`
- })
- : h(NS, {
- class: `${n}-data-table-expand-trigger`,
- clsPrefix: n,
- expanded: Ne,
- renderExpandIcon: this.renderExpandIcon,
- loading: s.has(ee.key),
- onClick: () => {
- J(se, ee.tmNode);
- }
- })
- ]
- : null,
- Xe.type === 'selection'
- ? ae
- ? null
- : Xe.multiple === !1
- ? h(oY, {
- key: P,
- rowKey: se,
- disabled: ee.tmNode.disabled,
- onUpdateChecked: () => {
- X(ee.tmNode);
- }
- })
- : h(rY, {
- key: P,
- rowKey: se,
- disabled: ee.tmNode.disabled,
- onUpdateChecked: (Ve, nt) => {
- ne(ee.tmNode, Ve, nt.shiftKey);
- }
- })
- : Xe.type === 'expand'
- ? ae
- ? null
- : !Xe.expandable ||
- (!(
- (ct = Xe.expandable) === null || ct === void 0
- ) &&
- ct.call(Xe, Se))
- ? h(NS, {
- clsPrefix: n,
- expanded: Ne,
- renderExpandIcon: this.renderExpandIcon,
- onClick: () => {
- J(se, null);
- }
- })
- : null
- : h(nY, {
- clsPrefix: n,
- index: H,
- row: Se,
- column: Xe,
- isSummary: ae,
- mergedTheme: R,
- renderCell: this.renderCell
- })
- );
- })
- );
- };
- return r
- ? h(
- Ac,
- {
- ref: 'virtualListRef',
- items: me,
- itemSize: 28,
- visibleItemsTag: aY,
- visibleItemsProps: {
- clsPrefix: n,
- id: M,
- cols: y,
- onMouseenter: j,
- onMouseleave: B
- },
- showScrollbar: !1,
- onResize: this.handleVirtualListResize,
- onScroll: this.handleVirtualListScroll,
- itemsStyle: m,
- itemResizable: !0
- },
- { default: ({ item: ee, index: ve }) => Q(ee, ve, !0) }
- )
- : h(
- 'table',
- {
- class: `${n}-data-table-table`,
- onMouseleave: B,
- onMouseenter: j,
- style: { tableLayout: this.mergedTableLayout }
- },
- h(
- 'colgroup',
- null,
- y.map(ee => h('col', { key: ee.key, style: ee.style }))
- ),
- this.showHeader ? h(d3, { discrete: !1 }) : null,
- this.empty
- ? null
- : h(
- 'tbody',
- { 'data-n-id': M, class: `${n}-data-table-tbody` },
- me.map((ee, ve) => Q(ee, ve, !1))
- )
- );
- }
- }
- );
- if (this.empty) {
- const w = () =>
- h(
- 'div',
- {
- class: [
- `${n}-data-table-empty`,
- this.loading && `${n}-data-table-empty--hide`
- ],
- style: this.bodyStyle,
- ref: 'emptyElRef'
- },
- Kt(this.dataTableSlots.empty, () => [
- h(Cy, {
- theme: this.mergedTheme.peers.Empty,
- themeOverrides: this.mergedTheme.peerOverrides.Empty
- })
- ])
- );
- return this.shouldDisplaySomeTablePart
- ? h(on, null, g, w())
- : h(Ki, { onResize: this.onResize }, { default: w });
- }
- return g;
- }
- }),
- sY = Re({
- setup() {
- const {
- mergedClsPrefixRef: e,
- rightFixedColumnsRef: t,
- leftFixedColumnsRef: n,
- bodyWidthRef: r,
- maxHeightRef: o,
- minHeightRef: i,
- flexHeightRef: a,
- syncScrollState: s
- } = Ze(wi),
- c = Z(null),
- d = Z(null),
- f = Z(null),
- v = Z(!(n.value.length || t.value.length)),
- p = I(() => ({ maxHeight: vn(o.value), minHeight: vn(i.value) }));
- function m(y) {
- (r.value = y.contentRect.width), s(), v.value || (v.value = !0);
- }
- function g() {
- const { value: y } = c;
- return y ? y.$el : null;
- }
- function w() {
- const { value: y } = d;
- return y ? y.getScrollContainer() : null;
- }
- const x = {
- getBodyElement: w,
- getHeaderElement: g,
- scrollTo(y, C) {
- var R;
- (R = d.value) === null || R === void 0 || R.scrollTo(y, C);
- }
- };
- return (
- Bn(() => {
- const { value: y } = f;
- if (!y) return;
- const C = `${e.value}-data-table-base-table--transition-disabled`;
- v.value
- ? setTimeout(() => {
- y.classList.remove(C);
- }, 0)
- : y.classList.add(C);
- }),
- Object.assign(
- {
- maxHeight: o,
- mergedClsPrefix: e,
- selfElRef: f,
- headerInstRef: c,
- bodyInstRef: d,
- bodyStyle: p,
- flexHeight: a,
- handleBodyResize: m
- },
- x
- )
- );
- },
- render() {
- const { mergedClsPrefix: e, maxHeight: t, flexHeight: n } = this,
- r = t === void 0 && !n;
- return h(
- 'div',
- { class: `${e}-data-table-base-table`, ref: 'selfElRef' },
- r ? null : h(d3, { ref: 'headerInstRef' }),
- h(lY, {
- ref: 'bodyInstRef',
- bodyStyle: this.bodyStyle,
- showHeader: r,
- flexHeight: n,
- onResize: this.handleBodyResize
- })
- );
- }
- });
- function cY(e, t) {
- const { paginatedDataRef: n, treeMateRef: r, selectionColumnRef: o } = t,
- i = Z(e.defaultCheckedRowKeys),
- a = I(() => {
- var _;
- const { checkedRowKeys: P } = e,
- T = P === void 0 ? i.value : P;
- return ((_ = o.value) === null || _ === void 0 ? void 0 : _.multiple) ===
- !1
- ? { checkedKeys: T.slice(0, 1), indeterminateKeys: [] }
- : r.value.getCheckedKeys(T, {
- cascade: e.cascade,
- allowNotLoaded: e.allowCheckingNotLoaded
- });
- }),
- s = I(() => a.value.checkedKeys),
- c = I(() => a.value.indeterminateKeys),
- d = I(() => new Set(s.value)),
- f = I(() => new Set(c.value)),
- v = I(() => {
- const { value: _ } = d;
- return n.value.reduce((P, T) => {
- const { key: A, disabled: z } = T;
- return P + (!z && _.has(A) ? 1 : 0);
- }, 0);
- }),
- p = I(() => n.value.filter(_ => _.disabled).length),
- m = I(() => {
- const { length: _ } = n.value,
- { value: P } = f;
- return (
- (v.value > 0 && v.value < _ - p.value) ||
- n.value.some(T => P.has(T.key))
- );
- }),
- g = I(() => {
- const { length: _ } = n.value;
- return v.value !== 0 && v.value === _ - p.value;
- }),
- w = I(() => n.value.length === 0);
- function x(_, P, T) {
- const {
- 'onUpdate:checkedRowKeys': A,
- onUpdateCheckedRowKeys: z,
- onCheckedRowKeysChange: k
- } = e,
- M = [],
- {
- value: { getNode: E }
- } = r;
- _.forEach(D => {
- var L;
- const j = (L = E(D)) === null || L === void 0 ? void 0 : L.rawNode;
- M.push(j);
- }),
- A && ze(A, _, M, { row: P, action: T }),
- z && ze(z, _, M, { row: P, action: T }),
- k && ze(k, _, M, { row: P, action: T }),
- (i.value = _);
- }
- function y(_, P = !1, T) {
- if (!e.loading) {
- if (P) {
- x(Array.isArray(_) ? _.slice(0, 1) : [_], T, 'check');
- return;
- }
- x(
- r.value.check(_, s.value, {
- cascade: e.cascade,
- allowNotLoaded: e.allowCheckingNotLoaded
- }).checkedKeys,
- T,
- 'check'
- );
- }
- }
- function C(_, P) {
- e.loading ||
- x(
- r.value.uncheck(_, s.value, {
- cascade: e.cascade,
- allowNotLoaded: e.allowCheckingNotLoaded
- }).checkedKeys,
- P,
- 'uncheck'
- );
- }
- function R(_ = !1) {
- const { value: P } = o;
- if (!P || e.loading) return;
- const T = [];
- (_ ? r.value.treeNodes : n.value).forEach(A => {
- A.disabled || T.push(A.key);
- }),
- x(
- r.value.check(T, s.value, {
- cascade: !0,
- allowNotLoaded: e.allowCheckingNotLoaded
- }).checkedKeys,
- void 0,
- 'checkAll'
- );
- }
- function S(_ = !1) {
- const { value: P } = o;
- if (!P || e.loading) return;
- const T = [];
- (_ ? r.value.treeNodes : n.value).forEach(A => {
- A.disabled || T.push(A.key);
- }),
- x(
- r.value.uncheck(T, s.value, {
- cascade: !0,
- allowNotLoaded: e.allowCheckingNotLoaded
- }).checkedKeys,
- void 0,
- 'uncheckAll'
- );
- }
- return {
- mergedCheckedRowKeySetRef: d,
- mergedCheckedRowKeysRef: s,
- mergedInderminateRowKeySetRef: f,
- someRowsCheckedRef: m,
- allRowsCheckedRef: g,
- headerCheckboxDisabledRef: w,
- doUpdateCheckedRowKeys: x,
- doCheckAll: R,
- doUncheckAll: S,
- doCheck: y,
- doUncheck: C
- };
- }
- function bh(e) {
- return typeof e == 'object' && typeof e.multiple == 'number'
- ? e.multiple
- : !1;
- }
- function dY(e, t) {
- return t &&
- (e === void 0 ||
- e === 'default' ||
- (typeof e == 'object' && e.compare === 'default'))
- ? uY(t)
- : typeof e == 'function'
- ? e
- : e && typeof e == 'object' && e.compare && e.compare !== 'default'
- ? e.compare
- : !1;
- }
- function uY(e) {
- return (t, n) => {
- const r = t[e],
- o = n[e];
- return typeof r == 'number' && typeof o == 'number'
- ? r - o
- : typeof r == 'string' && typeof o == 'string'
- ? r.localeCompare(o)
- : 0;
- };
- }
- function fY(e, { dataRelatedColsRef: t, filteredDataRef: n }) {
- const r = [];
- t.value.forEach(m => {
- var g;
- m.sorter !== void 0 &&
- p(r, {
- columnKey: m.key,
- sorter: m.sorter,
- order: (g = m.defaultSortOrder) !== null && g !== void 0 ? g : !1
- });
- });
- const o = Z(r),
- i = I(() => {
- const m = t.value.filter(
- x =>
- x.type !== 'selection' &&
- x.sorter !== void 0 &&
- (x.sortOrder === 'ascend' ||
- x.sortOrder === 'descend' ||
- x.sortOrder === !1)
- ),
- g = m.filter(x => x.sortOrder !== !1);
- if (g.length)
- return g.map(x => ({
- columnKey: x.key,
- order: x.sortOrder,
- sorter: x.sorter
- }));
- if (m.length) return [];
- const { value: w } = o;
- return Array.isArray(w) ? w : w ? [w] : [];
- }),
- a = I(() => {
- const m = i.value.slice().sort((g, w) => {
- const x = bh(g.sorter) || 0;
- return (bh(w.sorter) || 0) - x;
- });
- return m.length
- ? n.value.slice().sort((w, x) => {
- let y = 0;
- return (
- m.some(C => {
- const { columnKey: R, sorter: S, order: _ } = C,
- P = dY(S, R);
- return P && _ && ((y = P(w.rawNode, x.rawNode)), y !== 0)
- ? ((y = y * Oq(_)), !0)
- : !1;
- }),
- y
- );
- })
- : n.value;
- });
- function s(m) {
- let g = i.value.slice();
- return m && bh(m.sorter) !== !1
- ? ((g = g.filter(w => bh(w.sorter) !== !1)), p(g, m), g)
- : m || null;
- }
- function c(m) {
- const g = s(m);
- d(g);
- }
- function d(m) {
- const { 'onUpdate:sorter': g, onUpdateSorter: w, onSorterChange: x } = e;
- g && ze(g, m), w && ze(w, m), x && ze(x, m), (o.value = m);
- }
- function f(m, g = 'ascend') {
- if (!m) v();
- else {
- const w = t.value.find(
- y => y.type !== 'selection' && y.type !== 'expand' && y.key === m
- );
- if (!(w != null && w.sorter)) return;
- const x = w.sorter;
- c({ columnKey: m, sorter: x, order: g });
- }
- }
- function v() {
- d(null);
- }
- function p(m, g) {
- const w = m.findIndex(
- x => (g == null ? void 0 : g.columnKey) && x.columnKey === g.columnKey
- );
- w !== void 0 && w >= 0 ? (m[w] = g) : m.push(g);
- }
- return {
- clearSorter: v,
- sort: f,
- sortedDataRef: a,
- mergedSortStateRef: i,
- deriveNextSorter: c
- };
- }
- function hY(e, { dataRelatedColsRef: t }) {
- const n = I(() => {
- const X = J => {
- for (let re = 0; re < J.length; ++re) {
- const ce = J[re];
- if ('children' in ce) return X(ce.children);
- if (ce.type === 'selection') return ce;
- }
- return null;
- };
- return X(e.columns);
- }),
- r = I(() => {
- const { childrenKey: X } = e;
- return td(e.data, {
- ignoreEmptyChildren: !0,
- getKey: e.rowKey,
- getChildren: J => J[X],
- getDisabled: J => {
- var re, ce;
- return !!(
- !(
- (ce =
- (re = n.value) === null || re === void 0
- ? void 0
- : re.disabled) === null || ce === void 0
- ) && ce.call(re, J)
- );
- }
- });
- }),
- o = kt(() => {
- const { columns: X } = e,
- { length: J } = X;
- let re = null;
- for (let ce = 0; ce < J; ++ce) {
- const pe = X[ce];
- if ((!pe.type && re === null && (re = ce), 'tree' in pe && pe.tree))
- return ce;
- }
- return re || 0;
- }),
- i = Z({}),
- a = Z(1),
- s = Z(10),
- c = I(() => {
- const X = t.value.filter(
- ce =>
- ce.filterOptionValues !== void 0 || ce.filterOptionValue !== void 0
- ),
- J = {};
- return (
- X.forEach(ce => {
- var pe;
- ce.type === 'selection' ||
- ce.type === 'expand' ||
- (ce.filterOptionValues === void 0
- ? (J[ce.key] =
- (pe = ce.filterOptionValue) !== null && pe !== void 0
- ? pe
- : null)
- : (J[ce.key] = ce.filterOptionValues));
- }),
- Object.assign(DS(i.value), J)
- );
- }),
- d = I(() => {
- const X = c.value,
- { columns: J } = e;
- function re(Fe) {
- return (Ie, le) => !!~String(le[Fe]).indexOf(String(Ie));
- }
- const {
- value: { treeNodes: ce }
- } = r,
- pe = [];
- return (
- J.forEach(Fe => {
- Fe.type === 'selection' ||
- Fe.type === 'expand' ||
- 'children' in Fe ||
- pe.push([Fe.key, Fe]);
- }),
- ce
- ? ce.filter(Fe => {
- const { rawNode: Ie } = Fe;
- for (const [le, me] of pe) {
- let he = X[le];
- if (
- he == null ||
- (Array.isArray(he) || (he = [he]), !he.length)
- )
- continue;
- const ue = me.filter === 'default' ? re(le) : me.filter;
- if (me && typeof ue == 'function')
- if (me.filterMode === 'and') {
- if (he.some(Ae => !ue(Ae, Ie))) return !1;
- } else {
- if (he.some(Ae => ue(Ae, Ie))) continue;
- return !1;
- }
- }
- return !0;
- })
- : []
- );
- }),
- {
- sortedDataRef: f,
- deriveNextSorter: v,
- mergedSortStateRef: p,
- sort: m,
- clearSorter: g
- } = fY(e, { dataRelatedColsRef: t, filteredDataRef: d });
- t.value.forEach(X => {
- var J;
- if (X.filter) {
- const re = X.defaultFilterOptionValues;
- X.filterMultiple
- ? (i.value[X.key] = re || [])
- : re !== void 0
- ? (i.value[X.key] = re === null ? [] : re)
- : (i.value[X.key] =
- (J = X.defaultFilterOptionValue) !== null && J !== void 0
- ? J
- : null);
- }
- });
- const w = I(() => {
- const { pagination: X } = e;
- if (X !== !1) return X.page;
- }),
- x = I(() => {
- const { pagination: X } = e;
- if (X !== !1) return X.pageSize;
- }),
- y = An(w, a),
- C = An(x, s),
- R = kt(() => {
- const X = y.value;
- return e.remote
- ? X
- : Math.max(1, Math.min(Math.ceil(d.value.length / C.value), X));
- }),
- S = I(() => {
- const { pagination: X } = e;
- if (X) {
- const { pageCount: J } = X;
- if (J !== void 0) return J;
- }
- }),
- _ = I(() => {
- if (e.remote) return r.value.treeNodes;
- if (!e.pagination) return f.value;
- const X = C.value,
- J = (R.value - 1) * X;
- return f.value.slice(J, J + X);
- }),
- P = I(() => _.value.map(X => X.rawNode));
- function T(X) {
- const { pagination: J } = e;
- if (J) {
- const { onChange: re, 'onUpdate:page': ce, onUpdatePage: pe } = J;
- re && ze(re, X), pe && ze(pe, X), ce && ze(ce, X), M(X);
- }
- }
- function A(X) {
- const { pagination: J } = e;
- if (J) {
- const {
- onPageSizeChange: re,
- 'onUpdate:pageSize': ce,
- onUpdatePageSize: pe
- } = J;
- re && ze(re, X), pe && ze(pe, X), ce && ze(ce, X), E(X);
- }
- }
- const z = I(() => {
- if (e.remote) {
- const { pagination: X } = e;
- if (X) {
- const { itemCount: J } = X;
- if (J !== void 0) return J;
- }
- return;
- }
- return d.value.length;
- }),
- k = I(() =>
- Object.assign(Object.assign({}, e.pagination), {
- onChange: void 0,
- onUpdatePage: void 0,
- onUpdatePageSize: void 0,
- onPageSizeChange: void 0,
- 'onUpdate:page': T,
- 'onUpdate:pageSize': A,
- page: R.value,
- pageSize: C.value,
- pageCount: z.value === void 0 ? S.value : void 0,
- itemCount: z.value
- })
- );
- function M(X) {
- const { 'onUpdate:page': J, onPageChange: re, onUpdatePage: ce } = e;
- ce && ze(ce, X), J && ze(J, X), re && ze(re, X), (a.value = X);
- }
- function E(X) {
- const {
- 'onUpdate:pageSize': J,
- onPageSizeChange: re,
- onUpdatePageSize: ce
- } = e;
- re && ze(re, X), ce && ze(ce, X), J && ze(J, X), (s.value = X);
- }
- function D(X, J) {
- const {
- onUpdateFilters: re,
- 'onUpdate:filters': ce,
- onFiltersChange: pe
- } = e;
- re && ze(re, X, J), ce && ze(ce, X, J), pe && ze(pe, X, J), (i.value = X);
- }
- function L(X, J, re, ce) {
- var pe;
- (pe = e.onUnstableColumnResize) === null ||
- pe === void 0 ||
- pe.call(e, X, J, re, ce);
- }
- function j(X) {
- M(X);
- }
- function B() {
- q();
- }
- function q() {
- G({});
- }
- function G(X) {
- ne(X);
- }
- function ne(X) {
- X ? X && (i.value = DS(X)) : (i.value = {});
- }
- return {
- treeMateRef: r,
- mergedCurrentPageRef: R,
- mergedPaginationRef: k,
- paginatedDataRef: _,
- rawPaginatedDataRef: P,
- mergedFilterStateRef: c,
- mergedSortStateRef: p,
- hoverKeyRef: Z(null),
- selectionColumnRef: n,
- childTriggerColIndexRef: o,
- doUpdateFilters: D,
- deriveNextSorter: v,
- doUpdatePageSize: E,
- doUpdatePage: M,
- onUnstableColumnResize: L,
- filter: ne,
- filters: G,
- clearFilter: B,
- clearFilters: q,
- clearSorter: g,
- page: j,
- sort: m
- };
- }
- function vY(
- e,
- {
- mainTableInstRef: t,
- mergedCurrentPageRef: n,
- bodyWidthRef: r,
- scrollPartRef: o
- }
- ) {
- let i = 0;
- const a = Z(null),
- s = Z([]),
- c = Z(null),
- d = Z([]),
- f = I(() => vn(e.scrollX)),
- v = I(() => e.columns.filter(z => z.fixed === 'left')),
- p = I(() => e.columns.filter(z => z.fixed === 'right')),
- m = I(() => {
- const z = {};
- let k = 0;
- function M(E) {
- E.forEach(D => {
- const L = { start: k, end: 0 };
- (z[si(D)] = L),
- 'children' in D
- ? (M(D.children), (L.end = k))
- : ((k += IS(D) || 0), (L.end = k));
- });
- }
- return M(v.value), z;
- }),
- g = I(() => {
- const z = {};
- let k = 0;
- function M(E) {
- for (let D = E.length - 1; D >= 0; --D) {
- const L = E[D],
- j = { start: k, end: 0 };
- (z[si(L)] = j),
- 'children' in L
- ? (M(L.children), (j.end = k))
- : ((k += IS(L) || 0), (j.end = k));
- }
- }
- return M(p.value), z;
- });
- function w() {
- var z, k;
- const { value: M } = v;
- let E = 0;
- const { value: D } = m;
- let L = null;
- for (let j = 0; j < M.length; ++j) {
- const B = si(M[j]);
- if (
- i >
- (((z = D[B]) === null || z === void 0 ? void 0 : z.start) || 0) - E
- )
- (L = B),
- (E = ((k = D[B]) === null || k === void 0 ? void 0 : k.end) || 0);
- else break;
- }
- a.value = L;
- }
- function x() {
- s.value = [];
- let z = e.columns.find(k => si(k) === a.value);
- for (; z && 'children' in z; ) {
- const k = z.children.length;
- if (k === 0) break;
- const M = z.children[k - 1];
- s.value.push(si(M)), (z = M);
- }
- }
- function y() {
- var z, k;
- const { value: M } = p,
- E = Number(e.scrollX),
- { value: D } = r;
- if (D === null) return;
- let L = 0,
- j = null;
- const { value: B } = g;
- for (let q = M.length - 1; q >= 0; --q) {
- const G = si(M[q]);
- if (
- Math.round(
- i +
- (((z = B[G]) === null || z === void 0 ? void 0 : z.start) || 0) +
- D -
- L
- ) < E
- )
- (j = G),
- (L = ((k = B[G]) === null || k === void 0 ? void 0 : k.end) || 0);
- else break;
- }
- c.value = j;
- }
- function C() {
- d.value = [];
- let z = e.columns.find(k => si(k) === c.value);
- for (; z && 'children' in z && z.children.length; ) {
- const k = z.children[0];
- d.value.push(si(k)), (z = k);
- }
- }
- function R() {
- const z = t.value ? t.value.getHeaderElement() : null,
- k = t.value ? t.value.getBodyElement() : null;
- return { header: z, body: k };
- }
- function S() {
- const { body: z } = R();
- z && (z.scrollTop = 0);
- }
- function _() {
- o.value === 'head' && Oc(T);
- }
- function P(z) {
- var k;
- (k = e.onScroll) === null || k === void 0 || k.call(e, z),
- o.value === 'body' && Oc(T);
- }
- function T() {
- const { header: z, body: k } = R();
- if (!k) return;
- const { value: M } = r;
- if (M === null) return;
- const { value: E } = o;
- if (e.maxHeight || e.flexHeight) {
- if (!z) return;
- E === 'head'
- ? ((i = z.scrollLeft), (k.scrollLeft = i))
- : ((i = k.scrollLeft), (z.scrollLeft = i));
- } else i = k.scrollLeft;
- w(), x(), y(), C();
- }
- function A(z) {
- const { header: k } = R();
- k && ((k.scrollLeft = z), T());
- }
- return (
- $t(n, () => {
- S();
- }),
- {
- styleScrollXRef: f,
- fixedColumnLeftMapRef: m,
- fixedColumnRightMapRef: g,
- leftFixedColumnsRef: v,
- rightFixedColumnsRef: p,
- leftActiveFixedColKeyRef: a,
- leftActiveFixedChildrenColKeysRef: s,
- rightActiveFixedColKeyRef: c,
- rightActiveFixedChildrenColKeysRef: d,
- syncScrollState: T,
- handleTableBodyScroll: P,
- handleTableHeaderScroll: _,
- setHeaderScrollLeft: A
- }
- );
- }
- function pY() {
- const e = Z({});
- function t(o) {
- return e.value[o];
- }
- function n(o, i) {
- t3(o) && 'key' in o && (e.value[o.key] = i);
- }
- function r() {
- e.value = {};
- }
- return {
- getResizableWidth: t,
- doUpdateResizableWidth: n,
- clearResizableWidth: r
- };
- }
- function gY(e, t) {
- const n = [],
- r = [],
- o = [],
- i = new WeakMap();
- let a = -1,
- s = 0,
- c = !1;
- function d(p, m) {
- m > a && ((n[m] = []), (a = m));
- for (const g of p)
- if ('children' in g) d(g.children, m + 1);
- else {
- const w = 'key' in g ? g.key : void 0;
- r.push({
- key: si(g),
- style: Aq(g, w !== void 0 ? vn(t(w)) : void 0),
- column: g
- }),
- (s += 1),
- c || (c = !!g.ellipsis),
- o.push(g);
- }
- }
- d(e, 0);
- let f = 0;
- function v(p, m) {
- let g = 0;
- p.forEach((w, x) => {
- var y;
- if ('children' in w) {
- const C = f,
- R = { column: w, colSpan: 0, rowSpan: 1, isLast: !1 };
- v(w.children, m + 1),
- w.children.forEach(S => {
- var _, P;
- R.colSpan +=
- (P =
- (_ = i.get(S)) === null || _ === void 0
- ? void 0
- : _.colSpan) !== null && P !== void 0
- ? P
- : 0;
- }),
- C + R.colSpan === s && (R.isLast = !0),
- i.set(w, R),
- n[m].push(R);
- } else {
- if (f < g) {
- f += 1;
- return;
- }
- let C = 1;
- 'titleColSpan' in w &&
- (C = (y = w.titleColSpan) !== null && y !== void 0 ? y : 1),
- C > 1 && (g = f + C);
- const R = f + C === s,
- S = { column: w, colSpan: C, rowSpan: a - m + 1, isLast: R };
- i.set(w, S), n[m].push(S), (f += 1);
- }
- });
- }
- return v(e, 0), { hasEllipsis: c, rows: n, cols: r, dataRelatedCols: o };
- }
- function mY(e, t) {
- const n = I(() => gY(e.columns, t));
- return {
- rowsRef: I(() => n.value.rows),
- colsRef: I(() => n.value.cols),
- hasEllipsisRef: I(() => n.value.hasEllipsis),
- dataRelatedColsRef: I(() => n.value.dataRelatedCols)
- };
- }
- function bY(e, t) {
- const n = kt(() => {
- for (const d of e.columns) if (d.type === 'expand') return d.renderExpand;
- }),
- r = kt(() => {
- let d;
- for (const f of e.columns)
- if (f.type === 'expand') {
- d = f.expandable;
- break;
- }
- return d;
- }),
- o = Z(
- e.defaultExpandAll
- ? n != null && n.value
- ? (() => {
- const d = [];
- return (
- t.value.treeNodes.forEach(f => {
- var v;
- !((v = r.value) === null || v === void 0) &&
- v.call(r, f.rawNode) &&
- d.push(f.key);
- }),
- d
- );
- })()
- : t.value.getNonLeafKeys()
- : e.defaultExpandedRowKeys
- ),
- i = Ee(e, 'expandedRowKeys'),
- a = Ee(e, 'stickyExpandedRows'),
- s = An(i, o);
- function c(d) {
- const { onUpdateExpandedRowKeys: f, 'onUpdate:expandedRowKeys': v } = e;
- f && ze(f, d), v && ze(v, d), (o.value = d);
- }
- return {
- stickyExpandedRowsRef: a,
- mergedExpandedRowKeysRef: s,
- renderExpandRef: n,
- expandableRef: r,
- doUpdateExpandedRowKeys: c
- };
- }
- const HS = xY(),
- yY = F([
- O(
- 'data-table',
- `
- width: 100%;
- font-size: var(--n-font-size);
- display: flex;
- flex-direction: column;
- position: relative;
- --n-merged-th-color: var(--n-th-color);
- --n-merged-td-color: var(--n-td-color);
- --n-merged-border-color: var(--n-border-color);
- --n-merged-th-color-hover: var(--n-th-color-hover);
- --n-merged-td-color-hover: var(--n-td-color-hover);
- --n-merged-td-color-striped: var(--n-td-color-striped);
- `,
- [
- O(
- 'data-table-wrapper',
- `
- flex-grow: 1;
- display: flex;
- flex-direction: column;
- `
- ),
- U('flex-height', [
- F('>', [
- O('data-table-wrapper', [
- F('>', [
- O(
- 'data-table-base-table',
- `
- display: flex;
- flex-direction: column;
- flex-grow: 1;
- `,
- [
- F('>', [
- O('data-table-base-table-body', 'flex-basis: 0;', [
- F('&:last-child', 'flex-grow: 1;')
- ])
- ])
- ]
- )
- ])
- ])
- ])
- ]),
- F('>', [
- O(
- 'data-table-loading-wrapper',
- `
- color: var(--n-loading-color);
- font-size: var(--n-loading-size);
- position: absolute;
- left: 50%;
- top: 50%;
- transform: translateX(-50%) translateY(-50%);
- transition: color .3s var(--n-bezier);
- display: flex;
- align-items: center;
- justify-content: center;
- `,
- [gi({ originalTransform: 'translateX(-50%) translateY(-50%)' })]
- )
- ]),
- O(
- 'data-table-expand-placeholder',
- `
- margin-right: 8px;
- display: inline-block;
- width: 16px;
- height: 1px;
- `
- ),
- O(
- 'data-table-indent',
- `
- display: inline-block;
- height: 1px;
- `
- ),
- O(
- 'data-table-expand-trigger',
- `
- display: inline-flex;
- margin-right: 8px;
- cursor: pointer;
- font-size: 16px;
- vertical-align: -0.2em;
- position: relative;
- width: 16px;
- height: 16px;
- color: var(--n-td-text-color);
- transition: color .3s var(--n-bezier);
- `,
- [
- U('expanded', [
- O('icon', 'transform: rotate(90deg);', [
- br({ originalTransform: 'rotate(90deg)' })
- ]),
- O('base-icon', 'transform: rotate(90deg);', [
- br({ originalTransform: 'rotate(90deg)' })
- ])
- ]),
- O(
- 'base-loading',
- `
- color: var(--n-loading-color);
- transition: color .3s var(--n-bezier);
- position: absolute;
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- `,
- [br()]
- ),
- O(
- 'icon',
- `
- position: absolute;
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- `,
- [br()]
- ),
- O(
- 'base-icon',
- `
- position: absolute;
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- `,
- [br()]
- )
- ]
- ),
- O(
- 'data-table-thead',
- `
- transition: background-color .3s var(--n-bezier);
- background-color: var(--n-merged-th-color);
- `
- ),
- O(
- 'data-table-tr',
- `
- box-sizing: border-box;
- background-clip: padding-box;
- transition: background-color .3s var(--n-bezier);
- `,
- [
- O(
- 'data-table-expand',
- `
- position: sticky;
- left: 0;
- overflow: hidden;
- margin: calc(var(--n-th-padding) * -1);
- padding: var(--n-th-padding);
- box-sizing: border-box;
- `
- ),
- U(
- 'striped',
- 'background-color: var(--n-merged-td-color-striped);',
- [
- O(
- 'data-table-td',
- 'background-color: var(--n-merged-td-color-striped);'
- )
- ]
- ),
- jt('summary', [
- F(
- '&:hover',
- 'background-color: var(--n-merged-td-color-hover);',
- [
- F('>', [
- O(
- 'data-table-td',
- 'background-color: var(--n-merged-td-color-hover);'
- )
- ])
- ]
- )
- ])
- ]
- ),
- O(
- 'data-table-th',
- `
- padding: var(--n-th-padding);
- position: relative;
- text-align: start;
- box-sizing: border-box;
- background-color: var(--n-merged-th-color);
- border-color: var(--n-merged-border-color);
- border-bottom: 1px solid var(--n-merged-border-color);
- color: var(--n-th-text-color);
- transition:
- border-color .3s var(--n-bezier),
- color .3s var(--n-bezier),
- background-color .3s var(--n-bezier);
- font-weight: var(--n-th-font-weight);
- `,
- [
- U(
- 'filterable',
- `
- padding-right: 36px;
- `,
- [
- U(
- 'sortable',
- `
- padding-right: calc(var(--n-th-padding) + 36px);
- `
- )
- ]
- ),
- HS,
- U(
- 'selection',
- `
- padding: 0;
- text-align: center;
- line-height: 0;
- z-index: 3;
- `
- ),
- V(
- 'title-wrapper',
- `
- display: flex;
- align-items: center;
- flex-wrap: nowrap;
- max-width: 100%;
- `,
- [
- V(
- 'title',
- `
- flex: 1;
- min-width: 0;
- `
- )
- ]
- ),
- V(
- 'ellipsis',
- `
- display: inline-block;
- vertical-align: bottom;
- text-overflow: ellipsis;
- overflow: hidden;
- white-space: nowrap;
- max-width: 100%;
- `
- ),
- U(
- 'hover',
- `
- background-color: var(--n-merged-th-color-hover);
- `
- ),
- U(
- 'sortable',
- `
- cursor: pointer;
- `,
- [
- V(
- 'ellipsis',
- `
- max-width: calc(100% - 18px);
- `
- ),
- F(
- '&:hover',
- `
- background-color: var(--n-merged-th-color-hover);
- `
- )
- ]
- ),
- O(
- 'data-table-sorter',
- `
- height: var(--n-sorter-size);
- width: var(--n-sorter-size);
- margin-left: 4px;
- position: relative;
- display: inline-flex;
- align-items: center;
- justify-content: center;
- vertical-align: -0.2em;
- color: var(--n-th-icon-color);
- transition: color .3s var(--n-bezier);
- `,
- [
- O('base-icon', 'transition: transform .3s var(--n-bezier)'),
- U('desc', [
- O(
- 'base-icon',
- `
- transform: rotate(0deg);
- `
- )
- ]),
- U('asc', [
- O(
- 'base-icon',
- `
- transform: rotate(-180deg);
- `
- )
- ]),
- U(
- 'asc, desc',
- `
- color: var(--n-th-icon-color-active);
- `
- )
- ]
- ),
- O(
- 'data-table-resize-button',
- `
- width: var(--n-resizable-container-size);
- position: absolute;
- top: 0;
- right: calc(var(--n-resizable-container-size) / 2);
- bottom: 0;
- cursor: col-resize;
- user-select: none;
- `,
- [
- F(
- '&::after',
- `
- width: var(--n-resizable-size);
- height: 50%;
- position: absolute;
- top: 50%;
- left: calc(var(--n-resizable-container-size) / 2);
- bottom: 0;
- background-color: var(--n-merged-border-color);
- transform: translateY(-50%);
- transition: background-color .3s var(--n-bezier);
- z-index: 1;
- content: '';
- `
- ),
- U('active', [
- F(
- '&::after',
- `
- background-color: var(--n-th-icon-color-active);
- `
- )
- ]),
- F(
- '&:hover::after',
- `
- background-color: var(--n-th-icon-color-active);
- `
- )
- ]
- ),
- O(
- 'data-table-filter',
- `
- position: absolute;
- z-index: auto;
- right: 0;
- width: 36px;
- top: 0;
- bottom: 0;
- cursor: pointer;
- display: flex;
- justify-content: center;
- align-items: center;
- transition:
- background-color .3s var(--n-bezier),
- color .3s var(--n-bezier);
- font-size: var(--n-filter-size);
- color: var(--n-th-icon-color);
- `,
- [
- F(
- '&:hover',
- `
- background-color: var(--n-th-button-color-hover);
- `
- ),
- U(
- 'show',
- `
- background-color: var(--n-th-button-color-hover);
- `
- ),
- U(
- 'active',
- `
- background-color: var(--n-th-button-color-hover);
- color: var(--n-th-icon-color-active);
- `
- )
- ]
- )
- ]
- ),
- O(
- 'data-table-td',
- `
- padding: var(--n-td-padding);
- text-align: start;
- box-sizing: border-box;
- border: none;
- background-color: var(--n-merged-td-color);
- color: var(--n-td-text-color);
- border-bottom: 1px solid var(--n-merged-border-color);
- transition:
- box-shadow .3s var(--n-bezier),
- background-color .3s var(--n-bezier),
- border-color .3s var(--n-bezier),
- color .3s var(--n-bezier);
- `,
- [
- U('expand', [
- O(
- 'data-table-expand-trigger',
- `
- margin-right: 0;
- `
- )
- ]),
- U(
- 'last-row',
- `
- border-bottom: 0 solid var(--n-merged-border-color);
- `,
- [
- F(
- '&::after',
- `
- bottom: 0 !important;
- `
- ),
- F(
- '&::before',
- `
- bottom: 0 !important;
- `
- )
- ]
- ),
- U(
- 'summary',
- `
- background-color: var(--n-merged-th-color);
- `
- ),
- U(
- 'hover',
- `
- background-color: var(--n-merged-td-color-hover);
- `
- ),
- V(
- 'ellipsis',
- `
- display: inline-block;
- text-overflow: ellipsis;
- overflow: hidden;
- white-space: nowrap;
- max-width: 100%;
- vertical-align: bottom;
- `
- ),
- U(
- 'selection, expand',
- `
- text-align: center;
- padding: 0;
- line-height: 0;
- `
- ),
- HS
- ]
- ),
- O(
- 'data-table-empty',
- `
- box-sizing: border-box;
- padding: var(--n-empty-padding);
- flex-grow: 1;
- flex-shrink: 0;
- opacity: 1;
- display: flex;
- align-items: center;
- justify-content: center;
- transition: opacity .3s var(--n-bezier);
- `,
- [
- U(
- 'hide',
- `
- opacity: 0;
- `
- )
- ]
- ),
- V(
- 'pagination',
- `
- margin: var(--n-pagination-margin);
- display: flex;
- justify-content: flex-end;
- `
- ),
- O(
- 'data-table-wrapper',
- `
- position: relative;
- opacity: 1;
- transition: opacity .3s var(--n-bezier), border-color .3s var(--n-bezier);
- border-top-left-radius: var(--n-border-radius);
- border-top-right-radius: var(--n-border-radius);
- line-height: var(--n-line-height);
- `
- ),
- U('loading', [
- O(
- 'data-table-wrapper',
- `
- opacity: var(--n-opacity-loading);
- pointer-events: none;
- `
- )
- ]),
- U('single-column', [
- O(
- 'data-table-td',
- `
- border-bottom: 0 solid var(--n-merged-border-color);
- `,
- [
- F(
- '&::after, &::before',
- `
- bottom: 0 !important;
- `
- )
- ]
- )
- ]),
- jt('single-line', [
- O(
- 'data-table-th',
- `
- border-right: 1px solid var(--n-merged-border-color);
- `,
- [
- U(
- 'last',
- `
- border-right: 0 solid var(--n-merged-border-color);
- `
- )
- ]
- ),
- O(
- 'data-table-td',
- `
- border-right: 1px solid var(--n-merged-border-color);
- `,
- [
- U(
- 'last-col',
- `
- border-right: 0 solid var(--n-merged-border-color);
- `
- )
- ]
- )
- ]),
- U('bordered', [
- O(
- 'data-table-wrapper',
- `
- border: 1px solid var(--n-merged-border-color);
- border-bottom-left-radius: var(--n-border-radius);
- border-bottom-right-radius: var(--n-border-radius);
- overflow: hidden;
- `
- )
- ]),
- O('data-table-base-table', [
- U('transition-disabled', [
- O('data-table-th', [F('&::after, &::before', 'transition: none;')]),
- O('data-table-td', [F('&::after, &::before', 'transition: none;')])
- ])
- ]),
- U('bottom-bordered', [
- O('data-table-td', [
- U(
- 'last-row',
- `
- border-bottom: 1px solid var(--n-merged-border-color);
- `
- )
- ])
- ]),
- O(
- 'data-table-table',
- `
- font-variant-numeric: tabular-nums;
- width: 100%;
- word-break: break-word;
- transition: background-color .3s var(--n-bezier);
- border-collapse: separate;
- border-spacing: 0;
- background-color: var(--n-merged-td-color);
- `
- ),
- O(
- 'data-table-base-table-header',
- `
- border-top-left-radius: calc(var(--n-border-radius) - 1px);
- border-top-right-radius: calc(var(--n-border-radius) - 1px);
- z-index: 3;
- overflow: scroll;
- flex-shrink: 0;
- transition: border-color .3s var(--n-bezier);
- scrollbar-width: none;
- `,
- [
- F(
- '&::-webkit-scrollbar',
- `
- width: 0;
- height: 0;
- `
- )
- ]
- ),
- O(
- 'data-table-check-extra',
- `
- transition: color .3s var(--n-bezier);
- color: var(--n-th-icon-color);
- position: absolute;
- font-size: 14px;
- right: -4px;
- top: 50%;
- transform: translateY(-50%);
- z-index: 1;
- `
- )
- ]
- ),
- O('data-table-filter-menu', [
- O(
- 'scrollbar',
- `
- max-height: 240px;
- `
- ),
- V(
- 'group',
- `
- display: flex;
- flex-direction: column;
- padding: 12px 12px 0 12px;
- `,
- [
- O(
- 'checkbox',
- `
- margin-bottom: 12px;
- margin-right: 0;
- `
- ),
- O(
- 'radio',
- `
- margin-bottom: 12px;
- margin-right: 0;
- `
- )
- ]
- ),
- V(
- 'action',
- `
- padding: var(--n-action-padding);
- display: flex;
- flex-wrap: nowrap;
- justify-content: space-evenly;
- border-top: 1px solid var(--n-action-divider-color);
- `,
- [
- O('button', [
- F(
- '&:not(:last-child)',
- `
- margin: var(--n-action-button-margin);
- `
- ),
- F(
- '&:last-child',
- `
- margin-right: 0;
- `
- )
- ])
- ]
- ),
- O(
- 'divider',
- `
- margin: 0 !important;
- `
- )
- ]),
- xl(
- O(
- 'data-table',
- `
- --n-merged-th-color: var(--n-th-color-modal);
- --n-merged-td-color: var(--n-td-color-modal);
- --n-merged-border-color: var(--n-border-color-modal);
- --n-merged-th-color-hover: var(--n-th-color-hover-modal);
- --n-merged-td-color-hover: var(--n-td-color-hover-modal);
- --n-merged-td-color-striped: var(--n-td-color-striped-modal);
- `
- )
- ),
- Ps(
- O(
- 'data-table',
- `
- --n-merged-th-color: var(--n-th-color-popover);
- --n-merged-td-color: var(--n-td-color-popover);
- --n-merged-border-color: var(--n-border-color-popover);
- --n-merged-th-color-hover: var(--n-th-color-hover-popover);
- --n-merged-td-color-hover: var(--n-td-color-hover-popover);
- --n-merged-td-color-striped: var(--n-td-color-striped-popover);
- `
- )
- )
- ]);
- function xY() {
- return [
- U(
- 'fixed-left',
- `
- left: 0;
- position: sticky;
- z-index: 2;
- `,
- [
- F(
- '&::after',
- `
- pointer-events: none;
- content: "";
- width: 36px;
- display: inline-block;
- position: absolute;
- top: 0;
- bottom: -1px;
- transition: box-shadow .2s var(--n-bezier);
- right: -36px;
- `
- )
- ]
- ),
- U(
- 'fixed-right',
- `
- right: 0;
- position: sticky;
- z-index: 1;
- `,
- [
- F(
- '&::before',
- `
- pointer-events: none;
- content: "";
- width: 36px;
- display: inline-block;
- position: absolute;
- top: 0;
- bottom: -1px;
- transition: box-shadow .2s var(--n-bezier);
- left: -36px;
- `
- )
- ]
- )
- ];
- }
- const wY = Re({
- name: 'DataTable',
- alias: ['AdvancedTable'],
- props: xq,
- setup(e, { slots: t }) {
- const {
- mergedBorderedRef: n,
- mergedClsPrefixRef: r,
- inlineThemeDisabled: o
- } = yt(e),
- i = I(() => {
- const { bottomBordered: Xe } = e;
- return n.value ? !1 : Xe !== void 0 ? Xe : !0;
- }),
- a = Ke('DataTable', '-data-table', yY, pq, e, r),
- s = Z(null),
- c = Z('body');
- Vc(() => {
- c.value = 'body';
- });
- const d = Z(null),
- {
- getResizableWidth: f,
- clearResizableWidth: v,
- doUpdateResizableWidth: p
- } = pY(),
- {
- rowsRef: m,
- colsRef: g,
- dataRelatedColsRef: w,
- hasEllipsisRef: x
- } = mY(e, f),
- {
- treeMateRef: y,
- mergedCurrentPageRef: C,
- paginatedDataRef: R,
- rawPaginatedDataRef: S,
- selectionColumnRef: _,
- hoverKeyRef: P,
- mergedPaginationRef: T,
- mergedFilterStateRef: A,
- mergedSortStateRef: z,
- childTriggerColIndexRef: k,
- doUpdatePage: M,
- doUpdateFilters: E,
- onUnstableColumnResize: D,
- deriveNextSorter: L,
- filter: j,
- filters: B,
- clearFilter: q,
- clearFilters: G,
- clearSorter: ne,
- page: X,
- sort: J
- } = hY(e, { dataRelatedColsRef: w }),
- {
- doCheckAll: re,
- doUncheckAll: ce,
- doCheck: pe,
- doUncheck: Fe,
- headerCheckboxDisabledRef: Ie,
- someRowsCheckedRef: le,
- allRowsCheckedRef: me,
- mergedCheckedRowKeySetRef: he,
- mergedInderminateRowKeySetRef: ue
- } = cY(e, {
- selectionColumnRef: _,
- treeMateRef: y,
- paginatedDataRef: R
- }),
- {
- stickyExpandedRowsRef: Ae,
- mergedExpandedRowKeysRef: W,
- renderExpandRef: Q,
- expandableRef: ee,
- doUpdateExpandedRowKeys: ve
- } = bY(e, y),
- {
- handleTableBodyScroll: oe,
- handleTableHeaderScroll: H,
- syncScrollState: ae,
- setHeaderScrollLeft: ge,
- leftActiveFixedColKeyRef: Ce,
- leftActiveFixedChildrenColKeysRef: se,
- rightActiveFixedColKeyRef: Se,
- rightActiveFixedChildrenColKeysRef: Ne,
- leftFixedColumnsRef: Ge,
- rightFixedColumnsRef: it,
- fixedColumnLeftMapRef: dt,
- fixedColumnRightMapRef: xt
- } = vY(e, {
- scrollPartRef: c,
- bodyWidthRef: s,
- mainTableInstRef: d,
- mergedCurrentPageRef: C
- }),
- { localeRef: Me } = ka('DataTable'),
- ut = I(() =>
- e.virtualScroll || e.flexHeight || e.maxHeight !== void 0 || x.value
- ? 'fixed'
- : e.tableLayout
- );
- Rt(wi, {
- props: e,
- treeMateRef: y,
- renderExpandIconRef: Ee(e, 'renderExpandIcon'),
- loadingKeySetRef: Z(new Set()),
- slots: t,
- indentRef: Ee(e, 'indent'),
- childTriggerColIndexRef: k,
- bodyWidthRef: s,
- componentId: pi(),
- hoverKeyRef: P,
- mergedClsPrefixRef: r,
- mergedThemeRef: a,
- scrollXRef: I(() => e.scrollX),
- rowsRef: m,
- colsRef: g,
- paginatedDataRef: R,
- leftActiveFixedColKeyRef: Ce,
- leftActiveFixedChildrenColKeysRef: se,
- rightActiveFixedColKeyRef: Se,
- rightActiveFixedChildrenColKeysRef: Ne,
- leftFixedColumnsRef: Ge,
- rightFixedColumnsRef: it,
- fixedColumnLeftMapRef: dt,
- fixedColumnRightMapRef: xt,
- mergedCurrentPageRef: C,
- someRowsCheckedRef: le,
- allRowsCheckedRef: me,
- mergedSortStateRef: z,
- mergedFilterStateRef: A,
- loadingRef: Ee(e, 'loading'),
- rowClassNameRef: Ee(e, 'rowClassName'),
- mergedCheckedRowKeySetRef: he,
- mergedExpandedRowKeysRef: W,
- mergedInderminateRowKeySetRef: ue,
- localeRef: Me,
- scrollPartRef: c,
- expandableRef: ee,
- stickyExpandedRowsRef: Ae,
- rowKeyRef: Ee(e, 'rowKey'),
- renderExpandRef: Q,
- summaryRef: Ee(e, 'summary'),
- virtualScrollRef: Ee(e, 'virtualScroll'),
- rowPropsRef: Ee(e, 'rowProps'),
- stripedRef: Ee(e, 'striped'),
- checkOptionsRef: I(() => {
- const { value: Xe } = _;
- return Xe == null ? void 0 : Xe.options;
- }),
- rawPaginatedDataRef: S,
- filterMenuCssVarsRef: I(() => {
- const {
- self: {
- actionDividerColor: Xe,
- actionPadding: Qe,
- actionButtonMargin: ie
- }
- } = a.value;
- return {
- '--n-action-padding': Qe,
- '--n-action-button-margin': ie,
- '--n-action-divider-color': Xe
- };
- }),
- onLoadRef: Ee(e, 'onLoad'),
- mergedTableLayoutRef: ut,
- maxHeightRef: Ee(e, 'maxHeight'),
- minHeightRef: Ee(e, 'minHeight'),
- flexHeightRef: Ee(e, 'flexHeight'),
- headerCheckboxDisabledRef: Ie,
- paginationBehaviorOnFilterRef: Ee(e, 'paginationBehaviorOnFilter'),
- summaryPlacementRef: Ee(e, 'summaryPlacement'),
- scrollbarPropsRef: Ee(e, 'scrollbarProps'),
- syncScrollState: ae,
- doUpdatePage: M,
- doUpdateFilters: E,
- getResizableWidth: f,
- onUnstableColumnResize: D,
- clearResizableWidth: v,
- doUpdateResizableWidth: p,
- deriveNextSorter: L,
- doCheck: pe,
- doUncheck: Fe,
- doCheckAll: re,
- doUncheckAll: ce,
- doUpdateExpandedRowKeys: ve,
- handleTableHeaderScroll: H,
- handleTableBodyScroll: oe,
- setHeaderScrollLeft: ge,
- renderCell: Ee(e, 'renderCell')
- });
- const wt = {
- filter: j,
- filters: B,
- clearFilters: G,
- clearSorter: ne,
- page: X,
- sort: J,
- clearFilter: q,
- scrollTo: (Xe, Qe) => {
- var ie;
- (ie = d.value) === null || ie === void 0 || ie.scrollTo(Xe, Qe);
- }
- },
- Lt = I(() => {
- const { size: Xe } = e,
- {
- common: { cubicBezierEaseInOut: Qe },
- self: {
- borderColor: ie,
- tdColorHover: $e,
- thColor: Ue,
- thColorHover: lt,
- tdColor: st,
- tdTextColor: be,
- thTextColor: He,
- thFontWeight: tt,
- thButtonColorHover: pt,
- thIconColor: _e,
- thIconColorActive: Ve,
- filterSize: nt,
- borderRadius: Ot,
- lineHeight: $n,
- tdColorModal: jn,
- thColorModal: Zt,
- borderColorModal: we,
- thColorHoverModal: je,
- tdColorHoverModal: Ct,
- borderColorPopover: qt,
- thColorPopover: xe,
- tdColorPopover: De,
- tdColorHoverPopover: rt,
- thColorHoverPopover: ft,
- paginationMargin: gt,
- emptyPadding: bn,
- boxShadowAfter: ln,
- boxShadowBefore: ke,
- sorterSize: Je,
- resizableContainerSize: vt,
- resizableSize: Ut,
- loadingColor: dn,
- loadingSize: nn,
- opacityLoading: kr,
- tdColorStriped: Yt,
- tdColorStripedModal: On,
- tdColorStripedPopover: So,
- [Oe('fontSize', Xe)]: Lo,
- [Oe('thPadding', Xe)]: No,
- [Oe('tdPadding', Xe)]: _o
- }
- } = a.value;
- return {
- '--n-font-size': Lo,
- '--n-th-padding': No,
- '--n-td-padding': _o,
- '--n-bezier': Qe,
- '--n-border-radius': Ot,
- '--n-line-height': $n,
- '--n-border-color': ie,
- '--n-border-color-modal': we,
- '--n-border-color-popover': qt,
- '--n-th-color': Ue,
- '--n-th-color-hover': lt,
- '--n-th-color-modal': Zt,
- '--n-th-color-hover-modal': je,
- '--n-th-color-popover': xe,
- '--n-th-color-hover-popover': ft,
- '--n-td-color': st,
- '--n-td-color-hover': $e,
- '--n-td-color-modal': jn,
- '--n-td-color-hover-modal': Ct,
- '--n-td-color-popover': De,
- '--n-td-color-hover-popover': rt,
- '--n-th-text-color': He,
- '--n-td-text-color': be,
- '--n-th-font-weight': tt,
- '--n-th-button-color-hover': pt,
- '--n-th-icon-color': _e,
- '--n-th-icon-color-active': Ve,
- '--n-filter-size': nt,
- '--n-pagination-margin': gt,
- '--n-empty-padding': bn,
- '--n-box-shadow-before': ke,
- '--n-box-shadow-after': ln,
- '--n-sorter-size': Je,
- '--n-resizable-container-size': vt,
- '--n-resizable-size': Ut,
- '--n-loading-size': nn,
- '--n-loading-color': dn,
- '--n-opacity-loading': kr,
- '--n-td-color-striped': Yt,
- '--n-td-color-striped-modal': On,
- '--n-td-color-striped-popover': So
- };
- }),
- ot = o
- ? Mt(
- 'data-table',
- I(() => e.size[0]),
- Lt,
- e
- )
- : void 0,
- ct = I(() => {
- if (!e.pagination) return !1;
- if (e.paginateSinglePage) return !0;
- const Xe = T.value,
- { pageCount: Qe } = Xe;
- return Qe !== void 0
- ? Qe > 1
- : Xe.itemCount && Xe.pageSize && Xe.itemCount > Xe.pageSize;
- });
- return Object.assign(
- {
- mainTableInstRef: d,
- mergedClsPrefix: r,
- mergedTheme: a,
- paginatedData: R,
- mergedBordered: n,
- mergedBottomBordered: i,
- mergedPagination: T,
- mergedShowPagination: ct,
- cssVars: o ? void 0 : Lt,
- themeClass: ot == null ? void 0 : ot.themeClass,
- onRender: ot == null ? void 0 : ot.onRender
- },
- wt
- );
- },
- render() {
- const {
- mergedClsPrefix: e,
- themeClass: t,
- onRender: n,
- $slots: r,
- spinProps: o
- } = this;
- return (
- n == null || n(),
- h(
- '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
- },
- h(
- 'div',
- { class: `${e}-data-table-wrapper` },
- h(sY, { ref: 'mainTableInstRef' })
- ),
- this.mergedShowPagination
- ? h(
- 'div',
- { class: `${e}-data-table__pagination` },
- h(
- Yk,
- Object.assign(
- {
- theme: this.mergedTheme.peers.Pagination,
- themeOverrides: this.mergedTheme.peerOverrides.Pagination,
- disabled: this.loading
- },
- this.mergedPagination
- )
- )
- )
- : null,
- h(
- Kn,
- { name: 'fade-in-scale-up-transition' },
- {
- default: () =>
- this.loading
- ? h(
- 'div',
- { class: `${e}-data-table-loading-wrapper` },
- Kt(r.loading, () => [
- h(
- $a,
- Object.assign({ clsPrefix: e, strokeWidth: 20 }, o)
- )
- ])
- )
- : null
- }
- )
- )
- );
- }
- }),
- CY = {
- itemFontSize: '12px',
- itemHeight: '36px',
- itemWidth: '52px',
- panelActionPadding: '8px 0'
- },
- SY = e => {
- const {
- popoverColor: t,
- textColor2: n,
- primaryColor: r,
- hoverColor: o,
- dividerColor: i,
- opacityDisabled: a,
- boxShadow2: s,
- borderRadius: c,
- iconColor: d,
- iconColorDisabled: f
- } = e;
- return Object.assign(Object.assign({}, CY), {
- panelColor: t,
- panelBoxShadow: s,
- panelDividerColor: i,
- itemTextColor: n,
- itemTextColorActive: r,
- itemColorHover: o,
- itemOpacityDisabled: a,
- itemBorderRadius: c,
- borderRadius: c,
- iconColor: d,
- iconColorDisabled: f
- });
- },
- _Y = {
- name: 'TimePicker',
- common: Nt,
- peers: { Scrollbar: Qi, Button: Es, Input: Wu },
- self: SY
- },
- u3 = _Y,
- RY = {
- 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'
- },
- PY = e => {
- const {
- hoverColor: t,
- fontSize: n,
- textColor2: r,
- textColorDisabled: o,
- popoverColor: i,
- primaryColor: a,
- borderRadiusSmall: s,
- iconColor: c,
- iconColorDisabled: d,
- textColor1: f,
- dividerColor: v,
- boxShadow2: p,
- borderRadius: m,
- fontWeightStrong: g
- } = e;
- return Object.assign(Object.assign({}, RY), {
- itemFontSize: n,
- calendarDaysFontSize: n,
- calendarTitleFontSize: n,
- itemTextColor: r,
- itemTextColorDisabled: o,
- itemTextColorActive: i,
- itemTextColorCurrent: a,
- itemColorIncluded: zt(a, { alpha: 0.1 }),
- itemColorHover: t,
- itemColorDisabled: t,
- itemColorActive: a,
- itemBorderRadius: s,
- panelColor: i,
- panelTextColor: r,
- arrowColor: c,
- calendarTitleTextColor: f,
- calendarTitleColorHover: t,
- calendarDaysTextColor: r,
- panelHeaderDividerColor: v,
- calendarDaysDividerColor: v,
- calendarDividerColor: v,
- panelActionDividerColor: v,
- panelBoxShadow: p,
- panelBorderRadius: m,
- calendarTitleFontWeight: g,
- scrollItemBorderRadius: m,
- iconColor: c,
- iconColorDisabled: d
- });
- },
- kY = {
- name: 'DatePicker',
- common: Nt,
- peers: { Input: Wu, Button: Es, TimePicker: u3, Scrollbar: Qi },
- self: PY
- },
- TY = kY;
- function $Y(e, t) {
- const n = I(() => {
- const { isTimeDisabled: f } = e,
- { value: v } = t;
- if (!(v === null || Array.isArray(v))) return f == null ? void 0 : f(v);
- }),
- r = I(() => {
- var f;
- return (f = n.value) === null || f === void 0 ? void 0 : f.isHourDisabled;
- }),
- o = I(() => {
- var f;
- return (f = n.value) === null || f === void 0
- ? void 0
- : f.isMinuteDisabled;
- }),
- i = I(() => {
- var f;
- return (f = n.value) === null || f === void 0
- ? void 0
- : f.isSecondDisabled;
- }),
- a = I(() => {
- const { type: f, isDateDisabled: v } = e,
- { value: p } = t;
- return p === null ||
- Array.isArray(p) ||
- !['date', 'datetime'].includes(f) ||
- !v
- ? !1
- : v(p);
- }),
- s = I(() => {
- const { type: f } = e,
- { value: v } = t;
- if (v === null || f === 'datetime' || Array.isArray(v)) return !1;
- const p = new Date(v),
- m = p.getHours(),
- g = p.getMinutes(),
- w = p.getMinutes();
- return (
- (r.value ? r.value(m) : !1) ||
- (o.value ? o.value(g, m) : !1) ||
- (i.value ? i.value(w, g, m) : !1)
- );
- }),
- c = I(() => a.value || s.value);
- return {
- isValueInvalidRef: I(() => {
- const { type: f } = e;
- return f === 'date' ? a.value : f === 'datetime' ? c.value : !1;
- }),
- isDateInvalidRef: a,
- isTimeInvalidRef: s,
- isDateTimeInvalidRef: c,
- isHourDisabledRef: r,
- isMinuteDisabledRef: o,
- isSecondDisabledRef: i
- };
- }
- function OY(e, t) {
- const n = I(() => {
- const { isTimeDisabled: v } = e,
- { value: p } = t;
- return !Array.isArray(p) || !v
- ? [void 0, void 0]
- : [
- v == null ? void 0 : v(p[0], 'start', p),
- v == null ? void 0 : v(p[1], 'end', p)
- ];
- }),
- r = {
- isStartHourDisabledRef: I(() => {
- var v;
- return (v = n.value[0]) === null || v === void 0
- ? void 0
- : v.isHourDisabled;
- }),
- isEndHourDisabledRef: I(() => {
- var v;
- return (v = n.value[1]) === null || v === void 0
- ? void 0
- : v.isHourDisabled;
- }),
- isStartMinuteDisabledRef: I(() => {
- var v;
- return (v = n.value[0]) === null || v === void 0
- ? void 0
- : v.isMinuteDisabled;
- }),
- isEndMinuteDisabledRef: I(() => {
- var v;
- return (v = n.value[1]) === null || v === void 0
- ? void 0
- : v.isMinuteDisabled;
- }),
- isStartSecondDisabledRef: I(() => {
- var v;
- return (v = n.value[0]) === null || v === void 0
- ? void 0
- : v.isSecondDisabled;
- }),
- isEndSecondDisabledRef: I(() => {
- var v;
- return (v = n.value[1]) === null || v === void 0
- ? void 0
- : v.isSecondDisabled;
- })
- },
- o = I(() => {
- const { type: v, isDateDisabled: p } = e,
- { value: m } = t;
- return m === null ||
- !Array.isArray(m) ||
- !['daterange', 'datetimerange'].includes(v) ||
- !p
- ? !1
- : p(m[0], 'start', m);
- }),
- i = I(() => {
- const { type: v, isDateDisabled: p } = e,
- { value: m } = t;
- return m === null ||
- !Array.isArray(m) ||
- !['daterange', 'datetimerange'].includes(v) ||
- !p
- ? !1
- : p(m[1], 'end', m);
- }),
- a = I(() => {
- const { type: v } = e,
- { value: p } = t;
- if (p === null || !Array.isArray(p) || v !== 'datetimerange') return !1;
- const m = rl(p[0]),
- g = nv(p[0]),
- w = rv(p[0]),
- {
- isStartHourDisabledRef: x,
- isStartMinuteDisabledRef: y,
- isStartSecondDisabledRef: C
- } = r;
- return (
- (x.value ? x.value(m) : !1) ||
- (y.value ? y.value(g, m) : !1) ||
- (C.value ? C.value(w, g, m) : !1)
- );
- }),
- s = I(() => {
- const { type: v } = e,
- { value: p } = t;
- if (p === null || !Array.isArray(p) || v !== 'datetimerange') return !1;
- const m = rl(p[1]),
- g = nv(p[1]),
- w = rv(p[1]),
- {
- isEndHourDisabledRef: x,
- isEndMinuteDisabledRef: y,
- isEndSecondDisabledRef: C
- } = r;
- return (
- (x.value ? x.value(m) : !1) ||
- (y.value ? y.value(g, m) : !1) ||
- (C.value ? C.value(w, g, m) : !1)
- );
- }),
- c = I(() => o.value || a.value),
- d = I(() => i.value || s.value),
- f = I(() => c.value || d.value);
- return Object.assign(Object.assign({}, r), {
- isStartDateInvalidRef: o,
- isEndDateInvalidRef: i,
- isStartTimeInvalidRef: a,
- isEndTimeInvalidRef: s,
- isStartValueInvalidRef: c,
- isEndValueInvalidRef: d,
- isRangeInvalidRef: f
- });
- }
- const Gv = 'n-date-picker';
- var Nn =
- typeof globalThis < 'u'
- ? globalThis
- : typeof window < 'u'
- ? window
- : typeof global < 'u'
- ? global
- : typeof self < 'u'
- ? self
- : {};
- function Oa(e) {
- return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, 'default')
- ? e.default
- : e;
- }
- function zY(e) {
- if (e.__esModule) return e;
- var t = e.default;
- if (typeof t == 'function') {
- var n = function r() {
- if (this instanceof r) {
- var o = [null];
- o.push.apply(o, arguments);
- var i = Function.bind.apply(t, o);
- return new i();
- }
- return t.apply(this, arguments);
- };
- n.prototype = t.prototype;
- } else n = {};
- return (
- Object.defineProperty(n, '__esModule', { value: !0 }),
- Object.keys(e).forEach(function (r) {
- var o = Object.getOwnPropertyDescriptor(e, r);
- Object.defineProperty(
- n,
- r,
- o.get
- ? o
- : {
- enumerable: !0,
- get: function () {
- return e[r];
- }
- }
- );
- }),
- n
- );
- }
- var mb = { exports: {} },
- f3 = { exports: {} };
- (function (e) {
- function t(n) {
- return n && n.__esModule ? n : { default: n };
- }
- (e.exports = t), (e.exports.__esModule = !0), (e.exports.default = e.exports);
- })(f3);
- var or = f3.exports,
- bb = { exports: {} };
- (function (e, t) {
- Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = n);
- function n(r, o) {
- if (r == null)
- throw new TypeError(
- 'assign requires that input parameter not be null or undefined'
- );
- for (var i in o)
- Object.prototype.hasOwnProperty.call(o, i) && (r[i] = o[i]);
- return r;
- }
- e.exports = t.default;
- })(bb, bb.exports);
- var AY = bb.exports;
- (function (e, t) {
- var n = or.default;
- Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = o);
- var r = n(AY);
- function o(i) {
- return (0, r.default)({}, i);
- }
- e.exports = t.default;
- })(mb, mb.exports);
- var EY = mb.exports;
- const MY = Oa(EY);
- var yb = { exports: {} },
- xb = { exports: {} },
- wb = { exports: {} },
- h3 = { exports: {} };
- (function (e) {
- function t(n) {
- '@babel/helpers - typeof';
- return (
- (e.exports = t =
- typeof Symbol == 'function' && typeof Symbol.iterator == 'symbol'
- ? function (r) {
- return typeof r;
- }
- : function (r) {
- return r &&
- typeof Symbol == 'function' &&
- r.constructor === Symbol &&
- r !== Symbol.prototype
- ? 'symbol'
- : typeof r;
- }),
- (e.exports.__esModule = !0),
- (e.exports.default = e.exports),
- t(n)
- );
- }
- (e.exports = t), (e.exports.__esModule = !0), (e.exports.default = e.exports);
- })(h3);
- var v3 = h3.exports,
- Cb = { exports: {} };
- (function (e, t) {
- Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = n);
- function n(r, o) {
- if (o.length < r)
- throw new TypeError(
- r +
- ' argument' +
- (r > 1 ? 's' : '') +
- ' required, but only ' +
- o.length +
- ' present'
- );
- }
- e.exports = t.default;
- })(Cb, Cb.exports);
- var ao = Cb.exports;
- (function (e, t) {
- var n = or.default;
- Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = i);
- var r = n(v3),
- o = n(ao);
- function i(a) {
- return (
- (0, o.default)(1, arguments),
- a instanceof Date ||
- ((0, r.default)(a) === 'object' &&
- Object.prototype.toString.call(a) === '[object Date]')
- );
- }
- e.exports = t.default;
- })(wb, wb.exports);
- var IY = wb.exports,
- Sb = { exports: {} };
- (function (e, t) {
- var n = or.default;
- Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = i);
- var r = n(v3),
- o = n(ao);
- function i(a) {
- (0, o.default)(1, arguments);
- var s = Object.prototype.toString.call(a);
- return a instanceof Date ||
- ((0, r.default)(a) === 'object' && s === '[object Date]')
- ? new Date(a.getTime())
- : typeof a == 'number' || s === '[object Number]'
- ? new Date(a)
- : ((typeof a == 'string' || s === '[object String]') &&
- typeof console < 'u' &&
- (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://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"
- ),
- console.warn(new Error().stack)),
- new Date(NaN));
- }
- e.exports = t.default;
- })(Sb, Sb.exports);
- var Ji = Sb.exports;
- (function (e, t) {
- var n = or.default;
- Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = a);
- var r = n(IY),
- o = n(Ji),
- i = n(ao);
- function a(s) {
- if (
- ((0, i.default)(1, arguments), !(0, r.default)(s) && typeof s != 'number')
- )
- return !1;
- var c = (0, o.default)(s);
- return !isNaN(Number(c));
- }
- e.exports = t.default;
- })(xb, xb.exports);
- var DY = xb.exports,
- _b = { exports: {} },
- Rb = { exports: {} },
- Pb = { exports: {} };
- (function (e, t) {
- Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = n);
- function n(r) {
- if (r === null || r === !0 || r === !1) return NaN;
- var o = Number(r);
- return isNaN(o) ? o : o < 0 ? Math.ceil(o) : Math.floor(o);
- }
- e.exports = t.default;
- })(Pb, Pb.exports);
- var Ms = Pb.exports;
- const FY = Oa(Ms);
- (function (e, t) {
- var n = or.default;
- Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = a);
- var r = n(Ms),
- o = n(Ji),
- i = n(ao);
- function a(s, c) {
- (0, i.default)(2, arguments);
- var d = (0, o.default)(s).getTime(),
- f = (0, r.default)(c);
- return new Date(d + f);
- }
- e.exports = t.default;
- })(Rb, Rb.exports);
- var BY = Rb.exports;
- (function (e, t) {
- var n = or.default;
- Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = a);
- var r = n(BY),
- o = n(ao),
- i = n(Ms);
- function a(s, c) {
- (0, o.default)(2, arguments);
- var d = (0, i.default)(c);
- return (0, r.default)(s, -d);
- }
- e.exports = t.default;
- })(_b, _b.exports);
- var LY = _b.exports,
- kb = { exports: {} },
- Tb = { exports: {} };
- (function (e, t) {
- var n = or.default;
- Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = a);
- var r = n(Ji),
- o = n(ao),
- i = 864e5;
- function a(s) {
- (0, o.default)(1, arguments);
- var c = (0, r.default)(s),
- d = c.getTime();
- c.setUTCMonth(0, 1), c.setUTCHours(0, 0, 0, 0);
- var f = c.getTime(),
- v = d - f;
- return Math.floor(v / i) + 1;
- }
- e.exports = t.default;
- })(Tb, Tb.exports);
- var NY = Tb.exports,
- $b = { exports: {} },
- Ob = { exports: {} };
- (function (e, t) {
- var n = or.default;
- Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = i);
- var r = n(Ji),
- o = n(ao);
- function i(a) {
- (0, o.default)(1, arguments);
- var s = 1,
- c = (0, r.default)(a),
- d = c.getUTCDay(),
- f = (d < s ? 7 : 0) + d - s;
- return c.setUTCDate(c.getUTCDate() - f), c.setUTCHours(0, 0, 0, 0), c;
- }
- e.exports = t.default;
- })(Ob, Ob.exports);
- var My = Ob.exports,
- zb = { exports: {} },
- Ab = { exports: {} };
- (function (e, t) {
- var n = or.default;
- Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = a);
- var r = n(Ji),
- o = n(ao),
- i = n(My);
- function a(s) {
- (0, o.default)(1, arguments);
- var c = (0, r.default)(s),
- d = c.getUTCFullYear(),
- f = new Date(0);
- f.setUTCFullYear(d + 1, 0, 4), f.setUTCHours(0, 0, 0, 0);
- var v = (0, i.default)(f),
- p = new Date(0);
- p.setUTCFullYear(d, 0, 4), p.setUTCHours(0, 0, 0, 0);
- var m = (0, i.default)(p);
- return c.getTime() >= v.getTime()
- ? d + 1
- : c.getTime() >= m.getTime()
- ? d
- : d - 1;
- }
- e.exports = t.default;
- })(Ab, Ab.exports);
- var p3 = Ab.exports;
- (function (e, t) {
- var n = or.default;
- Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = a);
- var r = n(p3),
- o = n(My),
- i = n(ao);
- function a(s) {
- (0, i.default)(1, arguments);
- var c = (0, r.default)(s),
- d = new Date(0);
- d.setUTCFullYear(c, 0, 4), d.setUTCHours(0, 0, 0, 0);
- var f = (0, o.default)(d);
- return f;
- }
- e.exports = t.default;
- })(zb, zb.exports);
- var HY = zb.exports;
- (function (e, t) {
- var n = or.default;
- Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = c);
- var r = n(Ji),
- o = n(My),
- i = n(HY),
- a = n(ao),
- s = 6048e5;
- function c(d) {
- (0, a.default)(1, arguments);
- var f = (0, r.default)(d),
- v = (0, o.default)(f).getTime() - (0, i.default)(f).getTime();
- return Math.round(v / s) + 1;
- }
- e.exports = t.default;
- })($b, $b.exports);
- var jY = $b.exports,
- Eb = { exports: {} },
- Mb = { exports: {} },
- Is = {};
- Object.defineProperty(Is, '__esModule', { value: !0 });
- Is.getDefaultOptions = UY;
- Is.setDefaultOptions = WY;
- var g3 = {};
- function UY() {
- return g3;
- }
- function WY(e) {
- g3 = e;
- }
- (function (e, t) {
- var n = or.default;
- Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = s);
- var r = n(Ji),
- o = n(ao),
- i = n(Ms),
- a = Is;
- function s(c, d) {
- var f, v, p, m, g, w, x, y;
- (0, o.default)(1, arguments);
- var C = (0, a.getDefaultOptions)(),
- R = (0, i.default)(
- (f =
- (v =
- (p =
- (m = d == null ? void 0 : d.weekStartsOn) !== null && m !== void 0
- ? m
- : d == null ||
- (g = d.locale) === null ||
- g === void 0 ||
- (w = g.options) === null ||
- w === void 0
- ? void 0
- : w.weekStartsOn) !== null && p !== void 0
- ? p
- : C.weekStartsOn) !== null && v !== void 0
- ? v
- : (x = C.locale) === null ||
- x === void 0 ||
- (y = x.options) === null ||
- y === void 0
- ? void 0
- : y.weekStartsOn) !== null && f !== void 0
- ? f
- : 0
- );
- if (!(R >= 0 && R <= 6))
- throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
- var S = (0, r.default)(c),
- _ = S.getUTCDay(),
- P = (_ < R ? 7 : 0) + _ - R;
- return S.setUTCDate(S.getUTCDate() - P), S.setUTCHours(0, 0, 0, 0), S;
- }
- e.exports = t.default;
- })(Mb, Mb.exports);
- var Iy = Mb.exports,
- Ib = { exports: {} },
- Db = { exports: {} };
- (function (e, t) {
- var n = or.default;
- Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = c);
- var r = n(Ji),
- o = n(ao),
- i = n(Iy),
- a = n(Ms),
- s = Is;
- function c(d, f) {
- var v, p, m, g, w, x, y, C;
- (0, o.default)(1, arguments);
- var R = (0, r.default)(d),
- S = R.getUTCFullYear(),
- _ = (0, s.getDefaultOptions)(),
- P = (0, a.default)(
- (v =
- (p =
- (m =
- (g = f == null ? void 0 : f.firstWeekContainsDate) !== null &&
- g !== void 0
- ? g
- : f == null ||
- (w = f.locale) === null ||
- w === void 0 ||
- (x = w.options) === null ||
- x === void 0
- ? void 0
- : x.firstWeekContainsDate) !== null && m !== void 0
- ? m
- : _.firstWeekContainsDate) !== null && p !== void 0
- ? p
- : (y = _.locale) === null ||
- y === void 0 ||
- (C = y.options) === null ||
- C === void 0
- ? void 0
- : C.firstWeekContainsDate) !== null && v !== void 0
- ? v
- : 1
- );
- if (!(P >= 1 && P <= 7))
- throw new RangeError(
- 'firstWeekContainsDate must be between 1 and 7 inclusively'
- );
- var T = new Date(0);
- T.setUTCFullYear(S + 1, 0, P), T.setUTCHours(0, 0, 0, 0);
- var A = (0, i.default)(T, f),
- z = new Date(0);
- z.setUTCFullYear(S, 0, P), z.setUTCHours(0, 0, 0, 0);
- var k = (0, i.default)(z, f);
- return R.getTime() >= A.getTime()
- ? S + 1
- : R.getTime() >= k.getTime()
- ? S
- : S - 1;
- }
- e.exports = t.default;
- })(Db, Db.exports);
- var m3 = Db.exports;
- (function (e, t) {
- var n = or.default;
- Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = c);
- var r = n(m3),
- o = n(ao),
- i = n(Iy),
- a = n(Ms),
- s = Is;
- function c(d, f) {
- var v, p, m, g, w, x, y, C;
- (0, o.default)(1, arguments);
- var R = (0, s.getDefaultOptions)(),
- S = (0, a.default)(
- (v =
- (p =
- (m =
- (g = f == null ? void 0 : f.firstWeekContainsDate) !== null &&
- g !== void 0
- ? g
- : f == null ||
- (w = f.locale) === null ||
- w === void 0 ||
- (x = w.options) === null ||
- x === void 0
- ? void 0
- : x.firstWeekContainsDate) !== null && m !== void 0
- ? m
- : R.firstWeekContainsDate) !== null && p !== void 0
- ? p
- : (y = R.locale) === null ||
- y === void 0 ||
- (C = y.options) === null ||
- C === void 0
- ? void 0
- : C.firstWeekContainsDate) !== null && v !== void 0
- ? v
- : 1
- ),
- _ = (0, r.default)(d, f),
- P = new Date(0);
- P.setUTCFullYear(_, 0, S), P.setUTCHours(0, 0, 0, 0);
- var T = (0, i.default)(P, f);
- return T;
- }
- e.exports = t.default;
- })(Ib, Ib.exports);
- var VY = Ib.exports;
- (function (e, t) {
- var n = or.default;
- Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = c);
- var r = n(Ji),
- o = n(Iy),
- i = n(VY),
- a = n(ao),
- s = 6048e5;
- function c(d, f) {
- (0, a.default)(1, arguments);
- var v = (0, r.default)(d),
- p = (0, o.default)(v, f).getTime() - (0, i.default)(v, f).getTime();
- return Math.round(p / s) + 1;
- }
- e.exports = t.default;
- })(Eb, Eb.exports);
- var KY = Eb.exports,
- Fb = { exports: {} };
- (function (e, t) {
- Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = n);
- function n(r, o) {
- for (var i = r < 0 ? '-' : '', a = Math.abs(r).toString(); a.length < o; )
- a = '0' + a;
- return i + a;
- }
- e.exports = t.default;
- })(Fb, Fb.exports);
- var b3 = Fb.exports,
- Bb = { exports: {} };
- (function (e, t) {
- var n = or.default;
- Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = void 0);
- var r = n(b3),
- o = {
- y: function (s, c) {
- var d = s.getUTCFullYear(),
- f = d > 0 ? d : 1 - d;
- return (0, r.default)(c === 'yy' ? f % 100 : f, c.length);
- },
- M: function (s, c) {
- var d = s.getUTCMonth();
- return c === 'M' ? String(d + 1) : (0, r.default)(d + 1, 2);
- },
- d: function (s, c) {
- return (0, r.default)(s.getUTCDate(), c.length);
- },
- a: function (s, c) {
- var d = s.getUTCHours() / 12 >= 1 ? 'pm' : 'am';
- switch (c) {
- case 'a':
- case 'aa':
- return d.toUpperCase();
- case 'aaa':
- return d;
- case 'aaaaa':
- return d[0];
- case 'aaaa':
- default:
- return d === 'am' ? 'a.m.' : 'p.m.';
- }
- },
- h: function (s, c) {
- return (0, r.default)(s.getUTCHours() % 12 || 12, c.length);
- },
- H: function (s, c) {
- return (0, r.default)(s.getUTCHours(), c.length);
- },
- m: function (s, c) {
- return (0, r.default)(s.getUTCMinutes(), c.length);
- },
- s: function (s, c) {
- return (0, r.default)(s.getUTCSeconds(), c.length);
- },
- S: function (s, c) {
- var d = c.length,
- f = s.getUTCMilliseconds(),
- v = Math.floor(f * Math.pow(10, d - 3));
- return (0, r.default)(v, c.length);
- }
- },
- i = o;
- (t.default = i), (e.exports = t.default);
- })(Bb, Bb.exports);
- var qY = Bb.exports;
- (function (e, t) {
- var n = or.default;
- Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = void 0);
- var r = n(NY),
- o = n(jY),
- i = n(p3),
- a = n(KY),
- s = n(m3),
- c = n(b3),
- d = n(qY),
- f = {
- am: 'am',
- pm: 'pm',
- midnight: 'midnight',
- noon: 'noon',
- morning: 'morning',
- afternoon: 'afternoon',
- evening: 'evening',
- night: 'night'
- },
- v = {
- G: function (y, C, R) {
- var S = y.getUTCFullYear() > 0 ? 1 : 0;
- switch (C) {
- case 'G':
- case 'GG':
- case 'GGG':
- return R.era(S, { width: 'abbreviated' });
- case 'GGGGG':
- return R.era(S, { width: 'narrow' });
- case 'GGGG':
- default:
- return R.era(S, { width: 'wide' });
- }
- },
- y: function (y, C, R) {
- if (C === 'yo') {
- var S = y.getUTCFullYear(),
- _ = S > 0 ? S : 1 - S;
- return R.ordinalNumber(_, { unit: 'year' });
- }
- return d.default.y(y, C);
- },
- Y: function (y, C, R, S) {
- var _ = (0, s.default)(y, S),
- P = _ > 0 ? _ : 1 - _;
- if (C === 'YY') {
- var T = P % 100;
- return (0, c.default)(T, 2);
- }
- return C === 'Yo'
- ? R.ordinalNumber(P, { unit: 'year' })
- : (0, c.default)(P, C.length);
- },
- R: function (y, C) {
- var R = (0, i.default)(y);
- return (0, c.default)(R, C.length);
- },
- u: function (y, C) {
- var R = y.getUTCFullYear();
- return (0, c.default)(R, C.length);
- },
- Q: function (y, C, R) {
- var S = Math.ceil((y.getUTCMonth() + 1) / 3);
- switch (C) {
- case 'Q':
- return String(S);
- case 'QQ':
- return (0, c.default)(S, 2);
- case 'Qo':
- return R.ordinalNumber(S, { unit: 'quarter' });
- case 'QQQ':
- return R.quarter(S, {
- width: 'abbreviated',
- context: 'formatting'
- });
- case 'QQQQQ':
- return R.quarter(S, { width: 'narrow', context: 'formatting' });
- case 'QQQQ':
- default:
- return R.quarter(S, { width: 'wide', context: 'formatting' });
- }
- },
- q: function (y, C, R) {
- var S = Math.ceil((y.getUTCMonth() + 1) / 3);
- switch (C) {
- case 'q':
- return String(S);
- case 'qq':
- return (0, c.default)(S, 2);
- case 'qo':
- return R.ordinalNumber(S, { unit: 'quarter' });
- case 'qqq':
- return R.quarter(S, {
- width: 'abbreviated',
- context: 'standalone'
- });
- case 'qqqqq':
- return R.quarter(S, { width: 'narrow', context: 'standalone' });
- case 'qqqq':
- default:
- return R.quarter(S, { width: 'wide', context: 'standalone' });
- }
- },
- M: function (y, C, R) {
- var S = y.getUTCMonth();
- switch (C) {
- case 'M':
- case 'MM':
- return d.default.M(y, C);
- case 'Mo':
- return R.ordinalNumber(S + 1, { unit: 'month' });
- case 'MMM':
- return R.month(S, { width: 'abbreviated', context: 'formatting' });
- case 'MMMMM':
- return R.month(S, { width: 'narrow', context: 'formatting' });
- case 'MMMM':
- default:
- return R.month(S, { width: 'wide', context: 'formatting' });
- }
- },
- L: function (y, C, R) {
- var S = y.getUTCMonth();
- switch (C) {
- case 'L':
- return String(S + 1);
- case 'LL':
- return (0, c.default)(S + 1, 2);
- case 'Lo':
- return R.ordinalNumber(S + 1, { unit: 'month' });
- case 'LLL':
- return R.month(S, { width: 'abbreviated', context: 'standalone' });
- case 'LLLLL':
- return R.month(S, { width: 'narrow', context: 'standalone' });
- case 'LLLL':
- default:
- return R.month(S, { width: 'wide', context: 'standalone' });
- }
- },
- w: function (y, C, R, S) {
- var _ = (0, a.default)(y, S);
- return C === 'wo'
- ? R.ordinalNumber(_, { unit: 'week' })
- : (0, c.default)(_, C.length);
- },
- I: function (y, C, R) {
- var S = (0, o.default)(y);
- return C === 'Io'
- ? R.ordinalNumber(S, { unit: 'week' })
- : (0, c.default)(S, C.length);
- },
- d: function (y, C, R) {
- return C === 'do'
- ? R.ordinalNumber(y.getUTCDate(), { unit: 'date' })
- : d.default.d(y, C);
- },
- D: function (y, C, R) {
- var S = (0, r.default)(y);
- return C === 'Do'
- ? R.ordinalNumber(S, { unit: 'dayOfYear' })
- : (0, c.default)(S, C.length);
- },
- E: function (y, C, R) {
- var S = y.getUTCDay();
- switch (C) {
- case 'E':
- case 'EE':
- case 'EEE':
- return R.day(S, { width: 'abbreviated', context: 'formatting' });
- case 'EEEEE':
- return R.day(S, { width: 'narrow', context: 'formatting' });
- case 'EEEEEE':
- return R.day(S, { width: 'short', context: 'formatting' });
- case 'EEEE':
- default:
- return R.day(S, { width: 'wide', context: 'formatting' });
- }
- },
- e: function (y, C, R, S) {
- var _ = y.getUTCDay(),
- P = (_ - S.weekStartsOn + 8) % 7 || 7;
- switch (C) {
- case 'e':
- return String(P);
- case 'ee':
- return (0, c.default)(P, 2);
- case 'eo':
- return R.ordinalNumber(P, { unit: 'day' });
- case 'eee':
- return R.day(_, { width: 'abbreviated', context: 'formatting' });
- case 'eeeee':
- return R.day(_, { width: 'narrow', context: 'formatting' });
- case 'eeeeee':
- return R.day(_, { width: 'short', context: 'formatting' });
- case 'eeee':
- default:
- return R.day(_, { width: 'wide', context: 'formatting' });
- }
- },
- c: function (y, C, R, S) {
- var _ = y.getUTCDay(),
- P = (_ - S.weekStartsOn + 8) % 7 || 7;
- switch (C) {
- case 'c':
- return String(P);
- case 'cc':
- return (0, c.default)(P, C.length);
- case 'co':
- return R.ordinalNumber(P, { unit: 'day' });
- case 'ccc':
- return R.day(_, { width: 'abbreviated', context: 'standalone' });
- case 'ccccc':
- return R.day(_, { width: 'narrow', context: 'standalone' });
- case 'cccccc':
- return R.day(_, { width: 'short', context: 'standalone' });
- case 'cccc':
- default:
- return R.day(_, { width: 'wide', context: 'standalone' });
- }
- },
- i: function (y, C, R) {
- var S = y.getUTCDay(),
- _ = S === 0 ? 7 : S;
- switch (C) {
- case 'i':
- return String(_);
- case 'ii':
- return (0, c.default)(_, C.length);
- case 'io':
- return R.ordinalNumber(_, { unit: 'day' });
- case 'iii':
- return R.day(S, { width: 'abbreviated', context: 'formatting' });
- case 'iiiii':
- return R.day(S, { width: 'narrow', context: 'formatting' });
- case 'iiiiii':
- return R.day(S, { width: 'short', context: 'formatting' });
- case 'iiii':
- default:
- return R.day(S, { width: 'wide', context: 'formatting' });
- }
- },
- a: function (y, C, R) {
- var S = y.getUTCHours(),
- _ = S / 12 >= 1 ? 'pm' : 'am';
- switch (C) {
- case 'a':
- case 'aa':
- return R.dayPeriod(_, {
- width: 'abbreviated',
- context: 'formatting'
- });
- case 'aaa':
- return R.dayPeriod(_, {
- width: 'abbreviated',
- context: 'formatting'
- }).toLowerCase();
- case 'aaaaa':
- return R.dayPeriod(_, { width: 'narrow', context: 'formatting' });
- case 'aaaa':
- default:
- return R.dayPeriod(_, { width: 'wide', context: 'formatting' });
- }
- },
- b: function (y, C, R) {
- var S = y.getUTCHours(),
- _;
- switch (
- (S === 12
- ? (_ = f.noon)
- : S === 0
- ? (_ = f.midnight)
- : (_ = S / 12 >= 1 ? 'pm' : 'am'),
- C)
- ) {
- case 'b':
- case 'bb':
- return R.dayPeriod(_, {
- width: 'abbreviated',
- context: 'formatting'
- });
- case 'bbb':
- return R.dayPeriod(_, {
- width: 'abbreviated',
- context: 'formatting'
- }).toLowerCase();
- case 'bbbbb':
- return R.dayPeriod(_, { width: 'narrow', context: 'formatting' });
- case 'bbbb':
- default:
- return R.dayPeriod(_, { width: 'wide', context: 'formatting' });
- }
- },
- B: function (y, C, R) {
- var S = y.getUTCHours(),
- _;
- switch (
- (S >= 17
- ? (_ = f.evening)
- : S >= 12
- ? (_ = f.afternoon)
- : S >= 4
- ? (_ = f.morning)
- : (_ = f.night),
- C)
- ) {
- case 'B':
- case 'BB':
- case 'BBB':
- return R.dayPeriod(_, {
- width: 'abbreviated',
- context: 'formatting'
- });
- case 'BBBBB':
- return R.dayPeriod(_, { width: 'narrow', context: 'formatting' });
- case 'BBBB':
- default:
- return R.dayPeriod(_, { width: 'wide', context: 'formatting' });
- }
- },
- h: function (y, C, R) {
- if (C === 'ho') {
- var S = y.getUTCHours() % 12;
- return S === 0 && (S = 12), R.ordinalNumber(S, { unit: 'hour' });
- }
- return d.default.h(y, C);
- },
- H: function (y, C, R) {
- return C === 'Ho'
- ? R.ordinalNumber(y.getUTCHours(), { unit: 'hour' })
- : d.default.H(y, C);
- },
- K: function (y, C, R) {
- var S = y.getUTCHours() % 12;
- return C === 'Ko'
- ? R.ordinalNumber(S, { unit: 'hour' })
- : (0, c.default)(S, C.length);
- },
- k: function (y, C, R) {
- var S = y.getUTCHours();
- return (
- S === 0 && (S = 24),
- C === 'ko'
- ? R.ordinalNumber(S, { unit: 'hour' })
- : (0, c.default)(S, C.length)
- );
- },
- m: function (y, C, R) {
- return C === 'mo'
- ? R.ordinalNumber(y.getUTCMinutes(), { unit: 'minute' })
- : d.default.m(y, C);
- },
- s: function (y, C, R) {
- return C === 'so'
- ? R.ordinalNumber(y.getUTCSeconds(), { unit: 'second' })
- : d.default.s(y, C);
- },
- S: function (y, C) {
- return d.default.S(y, C);
- },
- X: function (y, C, R, S) {
- var _ = S._originalDate || y,
- P = _.getTimezoneOffset();
- if (P === 0) return 'Z';
- switch (C) {
- case 'X':
- return m(P);
- case 'XXXX':
- case 'XX':
- return g(P);
- case 'XXXXX':
- case 'XXX':
- default:
- return g(P, ':');
- }
- },
- x: function (y, C, R, S) {
- var _ = S._originalDate || y,
- P = _.getTimezoneOffset();
- switch (C) {
- case 'x':
- return m(P);
- case 'xxxx':
- case 'xx':
- return g(P);
- case 'xxxxx':
- case 'xxx':
- default:
- return g(P, ':');
- }
- },
- O: function (y, C, R, S) {
- var _ = S._originalDate || y,
- P = _.getTimezoneOffset();
- switch (C) {
- case 'O':
- case 'OO':
- case 'OOO':
- return 'GMT' + p(P, ':');
- case 'OOOO':
- default:
- return 'GMT' + g(P, ':');
- }
- },
- z: function (y, C, R, S) {
- var _ = S._originalDate || y,
- P = _.getTimezoneOffset();
- switch (C) {
- case 'z':
- case 'zz':
- case 'zzz':
- return 'GMT' + p(P, ':');
- case 'zzzz':
- default:
- return 'GMT' + g(P, ':');
- }
- },
- t: function (y, C, R, S) {
- var _ = S._originalDate || y,
- P = Math.floor(_.getTime() / 1e3);
- return (0, c.default)(P, C.length);
- },
- T: function (y, C, R, S) {
- var _ = S._originalDate || y,
- P = _.getTime();
- return (0, c.default)(P, C.length);
- }
- };
- function p(x, y) {
- var C = x > 0 ? '-' : '+',
- R = Math.abs(x),
- S = Math.floor(R / 60),
- _ = R % 60;
- if (_ === 0) return C + String(S);
- var P = y || '';
- return C + String(S) + P + (0, c.default)(_, 2);
- }
- function m(x, y) {
- if (x % 60 === 0) {
- var C = x > 0 ? '-' : '+';
- return C + (0, c.default)(Math.abs(x) / 60, 2);
- }
- return g(x, y);
- }
- function g(x, y) {
- var C = y || '',
- R = x > 0 ? '-' : '+',
- S = Math.abs(x),
- _ = (0, c.default)(Math.floor(S / 60), 2),
- P = (0, c.default)(S % 60, 2);
- return R + _ + C + P;
- }
- var w = v;
- (t.default = w), (e.exports = t.default);
- })(kb, kb.exports);
- var YY = kb.exports,
- Lb = { exports: {} };
- (function (e, t) {
- Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = void 0);
- var n = function (c, d) {
- switch (c) {
- case 'P':
- return d.date({ width: 'short' });
- case 'PP':
- return d.date({ width: 'medium' });
- case 'PPP':
- return d.date({ width: 'long' });
- case 'PPPP':
- default:
- return d.date({ width: 'full' });
- }
- },
- r = function (c, d) {
- switch (c) {
- case 'p':
- return d.time({ width: 'short' });
- case 'pp':
- return d.time({ width: 'medium' });
- case 'ppp':
- return d.time({ width: 'long' });
- case 'pppp':
- default:
- return d.time({ width: 'full' });
- }
- },
- o = function (c, d) {
- var f = c.match(/(P+)(p+)?/) || [],
- v = f[1],
- p = f[2];
- if (!p) return n(c, d);
- var m;
- switch (v) {
- case 'P':
- m = d.dateTime({ width: 'short' });
- break;
- case 'PP':
- m = d.dateTime({ width: 'medium' });
- break;
- case 'PPP':
- m = d.dateTime({ width: 'long' });
- break;
- case 'PPPP':
- default:
- m = d.dateTime({ width: 'full' });
- break;
- }
- return m.replace('{{date}}', n(v, d)).replace('{{time}}', r(p, d));
- },
- i = { p: r, P: o },
- a = i;
- (t.default = a), (e.exports = t.default);
- })(Lb, Lb.exports);
- var GY = Lb.exports,
- Nb = { exports: {} };
- (function (e, t) {
- Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = n);
- function n(r) {
- var o = new Date(
- Date.UTC(
- r.getFullYear(),
- r.getMonth(),
- r.getDate(),
- r.getHours(),
- r.getMinutes(),
- r.getSeconds(),
- r.getMilliseconds()
- )
- );
- return o.setUTCFullYear(r.getFullYear()), r.getTime() - o.getTime();
- }
- e.exports = t.default;
- })(Nb, Nb.exports);
- var y3 = Nb.exports;
- const jS = Oa(y3);
- var Ku = {};
- Object.defineProperty(Ku, '__esModule', { value: !0 });
- Ku.isProtectedDayOfYearToken = QY;
- Ku.isProtectedWeekYearToken = JY;
- Ku.throwProtectedError = eG;
- var XY = ['D', 'DD'],
- ZY = ['YY', 'YYYY'];
- function QY(e) {
- return XY.indexOf(e) !== -1;
- }
- function JY(e) {
- return ZY.indexOf(e) !== -1;
- }
- function eG(e, t, n) {
- if (e === 'YYYY')
- throw new RangeError(
- 'Use `yyyy` instead of `YYYY` (in `'
- .concat(t, '`) for formatting years to the input `')
- .concat(
- n,
- '`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md'
- )
- );
- if (e === 'YY')
- throw new RangeError(
- 'Use `yy` instead of `YY` (in `'
- .concat(t, '`) for formatting years to the input `')
- .concat(
- n,
- '`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md'
- )
- );
- if (e === 'D')
- throw new RangeError(
- 'Use `d` instead of `D` (in `'
- .concat(t, '`) for formatting days of the month to the input `')
- .concat(
- n,
- '`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md'
- )
- );
- if (e === 'DD')
- throw new RangeError(
- 'Use `dd` instead of `DD` (in `'
- .concat(t, '`) for formatting days of the month to the input `')
- .concat(
- n,
- '`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md'
- )
- );
- }
- var Hb = { exports: {} },
- jb = { exports: {} },
- Ub = { exports: {} };
- (function (e, t) {
- Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = void 0);
- var n = {
- 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' }
- },
- r = function (a, s, c) {
- var d,
- f = n[a];
- return (
- typeof f == 'string'
- ? (d = f)
- : s === 1
- ? (d = f.one)
- : (d = f.other.replace('{{count}}', s.toString())),
- c != null && c.addSuffix
- ? c.comparison && c.comparison > 0
- ? 'in ' + d
- : d + ' ago'
- : d
- );
- },
- o = r;
- (t.default = o), (e.exports = t.default);
- })(Ub, Ub.exports);
- var tG = Ub.exports,
- Wb = { exports: {} },
- Vb = { exports: {} };
- (function (e, t) {
- Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = n);
- function n(r) {
- return function () {
- var o =
- arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {},
- i = o.width ? String(o.width) : r.defaultWidth,
- a = r.formats[i] || r.formats[r.defaultWidth];
- return a;
- };
- }
- e.exports = t.default;
- })(Vb, Vb.exports);
- var nG = Vb.exports;
- (function (e, t) {
- var n = or.default;
- Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = void 0);
- var r = n(nG),
- o = {
- full: 'EEEE, MMMM do, y',
- long: 'MMMM do, y',
- medium: 'MMM d, y',
- short: 'MM/dd/yyyy'
- },
- i = {
- full: 'h:mm:ss a zzzz',
- long: 'h:mm:ss a z',
- medium: 'h:mm:ss a',
- short: 'h:mm a'
- },
- a = {
- 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: i, defaultWidth: 'full' }),
- dateTime: (0, r.default)({ formats: a, defaultWidth: 'full' })
- },
- c = s;
- (t.default = c), (e.exports = t.default);
- })(Wb, Wb.exports);
- var rG = Wb.exports,
- Kb = { exports: {} };
- (function (e, t) {
- Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = void 0);
- var n = {
- lastWeek: "'last' eeee 'at' p",
- yesterday: "'yesterday at' p",
- today: "'today at' p",
- tomorrow: "'tomorrow at' p",
- nextWeek: "eeee 'at' p",
- other: 'P'
- },
- r = function (a, s, c, d) {
- return n[a];
- },
- o = r;
- (t.default = o), (e.exports = t.default);
- })(Kb, Kb.exports);
- var oG = Kb.exports,
- qb = { exports: {} },
- Yb = { exports: {} };
- (function (e, t) {
- Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = n);
- function n(r) {
- return function (o, i) {
- var a = i != null && i.context ? String(i.context) : 'standalone',
- s;
- if (a === 'formatting' && r.formattingValues) {
- var c = r.defaultFormattingWidth || r.defaultWidth,
- d = i != null && i.width ? String(i.width) : c;
- s = r.formattingValues[d] || r.formattingValues[c];
- } else {
- var f = r.defaultWidth,
- v = i != null && i.width ? String(i.width) : r.defaultWidth;
- s = r.values[v] || r.values[f];
- }
- var p = r.argumentCallback ? r.argumentCallback(o) : o;
- return s[p];
- };
- }
- e.exports = t.default;
- })(Yb, Yb.exports);
- var iG = Yb.exports;
- (function (e, t) {
- var n = or.default;
- Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = void 0);
- var r = n(iG),
- o = {
- narrow: ['B', 'A'],
- abbreviated: ['BC', 'AD'],
- wide: ['Before Christ', 'Anno Domini']
- },
- i = {
- narrow: ['1', '2', '3', '4'],
- abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'],
- wide: ['1st quarter', '2nd quarter', '3rd quarter', '4th quarter']
- },
- a = {
- 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'
- ]
- },
- c = {
- 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'
- }
- },
- d = {
- 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'
- }
- },
- f = function (g, w) {
- var x = Number(g),
- y = x % 100;
- if (y > 20 || y < 10)
- switch (y % 10) {
- case 1:
- return x + 'st';
- case 2:
- return x + 'nd';
- case 3:
- return x + 'rd';
- }
- return x + 'th';
- },
- v = {
- ordinalNumber: f,
- era: (0, r.default)({ values: o, defaultWidth: 'wide' }),
- quarter: (0, r.default)({
- values: i,
- defaultWidth: 'wide',
- argumentCallback: function (g) {
- return g - 1;
- }
- }),
- month: (0, r.default)({ values: a, defaultWidth: 'wide' }),
- day: (0, r.default)({ values: s, defaultWidth: 'wide' }),
- dayPeriod: (0, r.default)({
- values: c,
- defaultWidth: 'wide',
- formattingValues: d,
- defaultFormattingWidth: 'wide'
- })
- },
- p = v;
- (t.default = p), (e.exports = t.default);
- })(qb, qb.exports);
- var aG = qb.exports,
- Gb = { exports: {} },
- Xb = { exports: {} };
- (function (e, t) {
- Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = n);
- function n(i) {
- return function (a) {
- var s =
- arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {},
- c = s.width,
- d = (c && i.matchPatterns[c]) || i.matchPatterns[i.defaultMatchWidth],
- f = a.match(d);
- if (!f) return null;
- var v = f[0],
- p = (c && i.parsePatterns[c]) || i.parsePatterns[i.defaultParseWidth],
- m = Array.isArray(p)
- ? o(p, function (x) {
- return x.test(v);
- })
- : r(p, function (x) {
- return x.test(v);
- }),
- g;
- (g = i.valueCallback ? i.valueCallback(m) : m),
- (g = s.valueCallback ? s.valueCallback(g) : g);
- var w = a.slice(v.length);
- return { value: g, rest: w };
- };
- }
- function r(i, a) {
- for (var s in i) if (i.hasOwnProperty(s) && a(i[s])) return s;
- }
- function o(i, a) {
- for (var s = 0; s < i.length; s++) if (a(i[s])) return s;
- }
- e.exports = t.default;
- })(Xb, Xb.exports);
- var lG = Xb.exports,
- Zb = { exports: {} };
- (function (e, t) {
- Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = n);
- function n(r) {
- return function (o) {
- var i =
- arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {},
- a = o.match(r.matchPattern);
- if (!a) return null;
- var s = a[0],
- c = o.match(r.parsePattern);
- if (!c) return null;
- var d = r.valueCallback ? r.valueCallback(c[0]) : c[0];
- d = i.valueCallback ? i.valueCallback(d) : d;
- var f = o.slice(s.length);
- return { value: d, rest: f };
- };
- }
- e.exports = t.default;
- })(Zb, Zb.exports);
- var sG = Zb.exports;
- (function (e, t) {
- var n = or.default;
- Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = void 0);
- var r = n(lG),
- o = n(sG),
- i = /^(\d+)(th|st|nd|rd)?/i,
- a = /\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
- },
- c = { any: [/^b/i, /^(a|c)/i] },
- d = {
- narrow: /^[1234]/i,
- abbreviated: /^q[1234]/i,
- wide: /^[1234](th|st|nd|rd)? quarter/i
- },
- f = { any: [/1/i, /2/i, /3/i, /4/i] },
- v = {
- 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
- },
- p = {
- 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
- ]
- },
- m = {
- 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
- },
- g = {
- 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]
- },
- w = {
- 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
- },
- x = {
- 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
- }
- },
- y = {
- ordinalNumber: (0, o.default)({
- matchPattern: i,
- parsePattern: a,
- valueCallback: function (S) {
- return parseInt(S, 10);
- }
- }),
- era: (0, r.default)({
- matchPatterns: s,
- defaultMatchWidth: 'wide',
- parsePatterns: c,
- defaultParseWidth: 'any'
- }),
- quarter: (0, r.default)({
- matchPatterns: d,
- defaultMatchWidth: 'wide',
- parsePatterns: f,
- defaultParseWidth: 'any',
- valueCallback: function (S) {
- return S + 1;
- }
- }),
- month: (0, r.default)({
- matchPatterns: v,
- defaultMatchWidth: 'wide',
- parsePatterns: p,
- defaultParseWidth: 'any'
- }),
- day: (0, r.default)({
- matchPatterns: m,
- defaultMatchWidth: 'wide',
- parsePatterns: g,
- defaultParseWidth: 'any'
- }),
- dayPeriod: (0, r.default)({
- matchPatterns: w,
- defaultMatchWidth: 'any',
- parsePatterns: x,
- defaultParseWidth: 'any'
- })
- },
- C = y;
- (t.default = C), (e.exports = t.default);
- })(Gb, Gb.exports);
- var cG = Gb.exports;
- (function (e, t) {
- var n = or.default;
- Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = void 0);
- var r = n(tG),
- o = n(rG),
- i = n(oG),
- a = n(aG),
- s = n(cG),
- c = {
- code: 'en-US',
- formatDistance: r.default,
- formatLong: o.default,
- formatRelative: i.default,
- localize: a.default,
- match: s.default,
- options: { weekStartsOn: 0, firstWeekContainsDate: 1 }
- },
- d = c;
- (t.default = d), (e.exports = t.default);
- })(jb, jb.exports);
- var dG = jb.exports;
- (function (e, t) {
- var n = or.default;
- Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = void 0);
- var r = n(dG),
- o = r.default;
- (t.default = o), (e.exports = t.default);
- })(Hb, Hb.exports);
- var uG = Hb.exports;
- (function (e, t) {
- var n = or.default;
- Object.defineProperty(t, '__esModule', { value: !0 }), (t.default = R);
- var r = n(DY),
- o = n(LY),
- i = n(Ji),
- a = n(YY),
- s = n(GY),
- c = n(y3),
- d = Ku,
- f = n(Ms),
- v = n(ao),
- p = Is,
- m = n(uG),
- g = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,
- w = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,
- x = /^'([^]*?)'?$/,
- y = /''/g,
- C = /[a-zA-Z]/;
- function R(_, P, T) {
- var A, z, k, M, E, D, L, j, B, q, G, ne, X, J, re, ce, pe, Fe;
- (0, v.default)(2, arguments);
- var Ie = String(P),
- le = (0, p.getDefaultOptions)(),
- me =
- (A =
- (z = T == null ? void 0 : T.locale) !== null && z !== void 0
- ? z
- : le.locale) !== null && A !== void 0
- ? A
- : m.default,
- he = (0, f.default)(
- (k =
- (M =
- (E =
- (D = T == null ? void 0 : T.firstWeekContainsDate) !== null &&
- D !== void 0
- ? D
- : T == null ||
- (L = T.locale) === null ||
- L === void 0 ||
- (j = L.options) === null ||
- j === void 0
- ? void 0
- : j.firstWeekContainsDate) !== null && E !== void 0
- ? E
- : le.firstWeekContainsDate) !== null && M !== void 0
- ? M
- : (B = le.locale) === null ||
- B === void 0 ||
- (q = B.options) === null ||
- q === void 0
- ? void 0
- : q.firstWeekContainsDate) !== null && k !== void 0
- ? k
- : 1
- );
- if (!(he >= 1 && he <= 7))
- throw new RangeError(
- 'firstWeekContainsDate must be between 1 and 7 inclusively'
- );
- var ue = (0, f.default)(
- (G =
- (ne =
- (X =
- (J = T == null ? void 0 : T.weekStartsOn) !== null && J !== void 0
- ? J
- : T == null ||
- (re = T.locale) === null ||
- re === void 0 ||
- (ce = re.options) === null ||
- ce === void 0
- ? void 0
- : ce.weekStartsOn) !== null && X !== void 0
- ? X
- : le.weekStartsOn) !== null && ne !== void 0
- ? ne
- : (pe = le.locale) === null ||
- pe === void 0 ||
- (Fe = pe.options) === null ||
- Fe === void 0
- ? void 0
- : Fe.weekStartsOn) !== null && G !== void 0
- ? G
- : 0
- );
- if (!(ue >= 0 && ue <= 6))
- throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
- if (!me.localize)
- throw new RangeError('locale must contain localize property');
- if (!me.formatLong)
- throw new RangeError('locale must contain formatLong property');
- var Ae = (0, i.default)(_);
- if (!(0, r.default)(Ae)) throw new RangeError('Invalid time value');
- var W = (0, c.default)(Ae),
- Q = (0, o.default)(Ae, W),
- ee = {
- firstWeekContainsDate: he,
- weekStartsOn: ue,
- locale: me,
- _originalDate: Ae
- },
- ve = Ie.match(w)
- .map(function (oe) {
- var H = oe[0];
- if (H === 'p' || H === 'P') {
- var ae = s.default[H];
- return ae(oe, me.formatLong);
- }
- return oe;
- })
- .join('')
- .match(g)
- .map(function (oe) {
- if (oe === "''") return "'";
- var H = oe[0];
- if (H === "'") return S(oe);
- var ae = a.default[H];
- if (ae)
- return (
- !(T != null && T.useAdditionalWeekYearTokens) &&
- (0, d.isProtectedWeekYearToken)(oe) &&
- (0, d.throwProtectedError)(oe, P, String(_)),
- !(T != null && T.useAdditionalDayOfYearTokens) &&
- (0, d.isProtectedDayOfYearToken)(oe) &&
- (0, d.throwProtectedError)(oe, P, String(_)),
- ae(Q, oe, me.localize, ee)
- );
- if (H.match(C))
- throw new RangeError(
- 'Format string contains an unescaped latin alphabet character `' +
- H +
- '`'
- );
- return oe;
- })
- .join('');
- return ve;
- }
- function S(_) {
- var P = _.match(x);
- return P ? P[1].replace(y, "'") : _;
- }
- e.exports = t.default;
- })(yb, yb.exports);
- var fG = yb.exports;
- const hG = Oa(fG);
- function US(e, t, n) {
- var r = gG(e, n.timeZone, n.locale);
- return r.formatToParts ? vG(r, t) : pG(r, t);
- }
- function vG(e, t) {
- for (var n = e.formatToParts(t), r = n.length - 1; r >= 0; --r)
- if (n[r].type === 'timeZoneName') return n[r].value;
- }
- function pG(e, t) {
- var n = e.format(t).replace(/\u200E/g, ''),
- r = / [\w-+ ]+$/.exec(n);
- return r ? r[0].substr(1) : '';
- }
- function gG(e, t, n) {
- if (n && !n.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(n ? [n.code, 'en-US'] : void 0, {
- timeZone: t,
- timeZoneName: e
- });
- }
- function mG(e, t) {
- var n = wG(t);
- return n.formatToParts ? yG(n, e) : xG(n, e);
- }
- var bG = { year: 0, month: 1, day: 2, hour: 3, minute: 4, second: 5 };
- function yG(e, t) {
- try {
- for (var n = e.formatToParts(t), r = [], o = 0; o < n.length; o++) {
- var i = bG[n[o].type];
- i >= 0 && (r[i] = parseInt(n[o].value, 10));
- }
- return r;
- } catch (a) {
- if (a instanceof RangeError) return [NaN];
- throw a;
- }
- }
- function xG(e, t) {
- var n = e.format(t).replace(/\u200E/g, ''),
- r = /(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);
- return [r[3], r[1], r[2], r[4], r[5], r[6]];
- }
- var Yg = {};
- function wG(e) {
- if (!Yg[e]) {
- var t = new Intl.DateTimeFormat('en-US', {
- hour12: !1,
- timeZone: 'America/New_York',
- year: 'numeric',
- month: 'numeric',
- day: '2-digit',
- hour: '2-digit',
- minute: '2-digit',
- second: '2-digit'
- }).format(new Date('2014-06-25T04:00:00.123Z')),
- n =
- t === '06/25/2014, 00:00:00' || t === '06/25/2014 00:00:00';
- Yg[e] = n
- ? new Intl.DateTimeFormat('en-US', {
- hour12: !1,
- timeZone: e,
- year: 'numeric',
- month: 'numeric',
- day: '2-digit',
- hour: '2-digit',
- minute: '2-digit',
- second: '2-digit'
- })
- : new Intl.DateTimeFormat('en-US', {
- hourCycle: 'h23',
- timeZone: e,
- year: 'numeric',
- month: 'numeric',
- day: '2-digit',
- hour: '2-digit',
- minute: '2-digit',
- second: '2-digit'
- });
- }
- return Yg[e];
- }
- function x3(e, t, n, r, o, i, a) {
- var s = new Date(0);
- return s.setUTCFullYear(e, t, n), s.setUTCHours(r, o, i, a), s;
- }
- var WS = 36e5,
- CG = 6e4,
- Gg = {
- timezone: /([Z+-].*)$/,
- timezoneZ: /^(Z)$/,
- timezoneHH: /^([+-]\d{2})$/,
- timezoneHHMM: /^([+-]\d{2}):?(\d{2})$/
- };
- function Dy(e, t, n) {
- var r, o;
- if (!e || ((r = Gg.timezoneZ.exec(e)), r)) return 0;
- var i;
- if (((r = Gg.timezoneHH.exec(e)), r))
- return (i = parseInt(r[1], 10)), VS(i) ? -(i * WS) : NaN;
- if (((r = Gg.timezoneHHMM.exec(e)), r)) {
- i = parseInt(r[1], 10);
- var a = parseInt(r[2], 10);
- return VS(i, a) ? ((o = Math.abs(i) * WS + a * CG), i > 0 ? -o : o) : NaN;
- }
- if (RG(e)) {
- t = new Date(t || Date.now());
- var s = n ? t : SG(t),
- c = Qb(s, e),
- d = n ? c : _G(t, c, e);
- return -d;
- }
- return NaN;
- }
- function SG(e) {
- return x3(
- e.getFullYear(),
- e.getMonth(),
- e.getDate(),
- e.getHours(),
- e.getMinutes(),
- e.getSeconds(),
- e.getMilliseconds()
- );
- }
- function Qb(e, t) {
- var n = mG(e, t),
- r = x3(n[0], n[1] - 1, n[2], n[3] % 24, n[4], n[5], 0).getTime(),
- o = e.getTime(),
- i = o % 1e3;
- return (o -= i >= 0 ? i : 1e3 + i), r - o;
- }
- function _G(e, t, n) {
- var r = e.getTime(),
- o = r - t,
- i = Qb(new Date(o), n);
- if (t === i) return t;
- o -= i - t;
- var a = Qb(new Date(o), n);
- return i === a ? i : Math.max(i, a);
- }
- function VS(e, t) {
- return -23 <= e && e <= 23 && (t == null || (0 <= t && t <= 59));
- }
- var KS = {};
- function RG(e) {
- if (KS[e]) return !0;
- try {
- return new Intl.DateTimeFormat(void 0, { timeZone: e }), (KS[e] = !0), !0;
- } catch (t) {
- return !1;
- }
- }
- var PG = 60 * 1e3,
- kG = {
- X: function (e, t, n, r) {
- var o = Xg(r.timeZone, r._originalDate || e);
- if (o === 0) return 'Z';
- switch (t) {
- case 'X':
- return qS(o);
- case 'XXXX':
- case 'XX':
- return mc(o);
- case 'XXXXX':
- case 'XXX':
- default:
- return mc(o, ':');
- }
- },
- x: function (e, t, n, r) {
- var o = Xg(r.timeZone, r._originalDate || e);
- switch (t) {
- case 'x':
- return qS(o);
- case 'xxxx':
- case 'xx':
- return mc(o);
- case 'xxxxx':
- case 'xxx':
- default:
- return mc(o, ':');
- }
- },
- O: function (e, t, n, r) {
- var o = Xg(r.timeZone, r._originalDate || e);
- switch (t) {
- case 'O':
- case 'OO':
- case 'OOO':
- return 'GMT' + TG(o, ':');
- case 'OOOO':
- default:
- return 'GMT' + mc(o, ':');
- }
- },
- z: function (e, t, n, r) {
- var o = r._originalDate || e;
- switch (t) {
- case 'z':
- case 'zz':
- case 'zzz':
- return US('short', o, r);
- case 'zzzz':
- default:
- return US('long', o, r);
- }
- }
- };
- function Xg(e, t) {
- var n = e ? Dy(e, t, !0) / PG : t.getTimezoneOffset();
- if (Number.isNaN(n))
- throw new RangeError('Invalid time zone specified: ' + e);
- return n;
- }
- function dv(e, t) {
- for (var n = e < 0 ? '-' : '', r = Math.abs(e).toString(); r.length < t; )
- r = '0' + r;
- return n + r;
- }
- function mc(e, t) {
- var n = t || '',
- r = e > 0 ? '-' : '+',
- o = Math.abs(e),
- i = dv(Math.floor(o / 60), 2),
- a = dv(Math.floor(o % 60), 2);
- return r + i + n + a;
- }
- function qS(e, t) {
- if (e % 60 === 0) {
- var n = e > 0 ? '-' : '+';
- return n + dv(Math.abs(e) / 60, 2);
- }
- return mc(e, t);
- }
- function TG(e, t) {
- var n = e > 0 ? '-' : '+',
- r = Math.abs(e),
- o = Math.floor(r / 60),
- i = r % 60;
- if (i === 0) return n + String(o);
- var a = t || '';
- return n + String(o) + a + dv(i, 2);
- }
- const $G = kG;
- var OG =
- /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,
- Zg = 36e5,
- YS = 6e4,
- zG = 2,
- oo = {
- 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: OG
- };
- function w3(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 n = t || {},
- r = n.additionalDigits == null ? zG : FY(n.additionalDigits);
- if (r !== 2 && r !== 1 && r !== 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 = AG(e),
- i = EG(o.date, r),
- a = i.year,
- s = i.restDateString,
- c = MG(s, a);
- if (isNaN(c)) return new Date(NaN);
- if (c) {
- var d = c.getTime(),
- f = 0,
- v;
- if (o.time && ((f = IG(o.time)), isNaN(f))) return new Date(NaN);
- if (o.timeZone || n.timeZone) {
- if (((v = Dy(o.timeZone || n.timeZone, new Date(d + f))), isNaN(v)))
- return new Date(NaN);
- } else (v = jS(new Date(d + f))), (v = jS(new Date(d + f + v)));
- return new Date(d + f + v);
- } else return new Date(NaN);
- }
- function AG(e) {
- var t = {},
- n = oo.dateTimePattern.exec(e),
- r;
- if (
- (n
- ? ((t.date = n[1]), (r = n[3]))
- : ((n = oo.datePattern.exec(e)),
- n ? ((t.date = n[1]), (r = n[2])) : ((t.date = null), (r = e))),
- r)
- ) {
- var o = oo.timeZone.exec(r);
- o
- ? ((t.time = r.replace(o[1], '')), (t.timeZone = o[1].trim()))
- : (t.time = r);
- }
- return t;
- }
- function EG(e, t) {
- var n = oo.YYY[t],
- r = oo.YYYYY[t],
- o;
- if (((o = oo.YYYY.exec(e) || r.exec(e)), o)) {
- var i = o[1];
- return { year: parseInt(i, 10), restDateString: e.slice(i.length) };
- }
- if (((o = oo.YY.exec(e) || n.exec(e)), o)) {
- var a = o[1];
- return { year: parseInt(a, 10) * 100, restDateString: e.slice(a.length) };
- }
- return { year: null };
- }
- function MG(e, t) {
- if (t === null) return null;
- var n, r, o, i;
- if (e.length === 0) return (r = new Date(0)), r.setUTCFullYear(t), r;
- if (((n = oo.MM.exec(e)), n))
- return (
- (r = new Date(0)),
- (o = parseInt(n[1], 10) - 1),
- XS(t, o) ? (r.setUTCFullYear(t, o), r) : new Date(NaN)
- );
- if (((n = oo.DDD.exec(e)), n)) {
- r = new Date(0);
- var a = parseInt(n[1], 10);
- return BG(t, a) ? (r.setUTCFullYear(t, 0, a), r) : new Date(NaN);
- }
- if (((n = oo.MMDD.exec(e)), n)) {
- (r = new Date(0)), (o = parseInt(n[1], 10) - 1);
- var s = parseInt(n[2], 10);
- return XS(t, o, s) ? (r.setUTCFullYear(t, o, s), r) : new Date(NaN);
- }
- if (((n = oo.Www.exec(e)), n))
- return (i = parseInt(n[1], 10) - 1), ZS(t, i) ? GS(t, i) : new Date(NaN);
- if (((n = oo.WwwD.exec(e)), n)) {
- i = parseInt(n[1], 10) - 1;
- var c = parseInt(n[2], 10) - 1;
- return ZS(t, i, c) ? GS(t, i, c) : new Date(NaN);
- }
- return null;
- }
- function IG(e) {
- var t, n, r;
- if (((t = oo.HH.exec(e)), t))
- return (
- (n = parseFloat(t[1].replace(',', '.'))), Qg(n) ? (n % 24) * Zg : NaN
- );
- if (((t = oo.HHMM.exec(e)), t))
- return (
- (n = parseInt(t[1], 10)),
- (r = parseFloat(t[2].replace(',', '.'))),
- Qg(n, r) ? (n % 24) * Zg + r * YS : NaN
- );
- if (((t = oo.HHMMSS.exec(e)), t)) {
- (n = parseInt(t[1], 10)), (r = parseInt(t[2], 10));
- var o = parseFloat(t[3].replace(',', '.'));
- return Qg(n, r, o) ? (n % 24) * Zg + r * YS + o * 1e3 : NaN;
- }
- return null;
- }
- function GS(e, t, n) {
- (t = t || 0), (n = n || 0);
- var r = new Date(0);
- r.setUTCFullYear(e, 0, 4);
- var o = r.getUTCDay() || 7,
- i = t * 7 + n + 1 - o;
- return r.setUTCDate(r.getUTCDate() + i), r;
- }
- var DG = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31],
- FG = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
- function C3(e) {
- return e % 400 === 0 || (e % 4 === 0 && e % 100 !== 0);
- }
- function XS(e, t, n) {
- if (t < 0 || t > 11) return !1;
- if (n != null) {
- if (n < 1) return !1;
- var r = C3(e);
- if ((r && n > FG[t]) || (!r && n > DG[t])) return !1;
- }
- return !0;
- }
- function BG(e, t) {
- if (t < 1) return !1;
- var n = C3(e);
- return !((n && t > 366) || (!n && t > 365));
- }
- function ZS(e, t, n) {
- return !(t < 0 || t > 52 || (n != null && (n < 0 || n > 6)));
- }
- function Qg(e, t, n) {
- return !(
- (e != null && (e < 0 || e >= 25)) ||
- (t != null && (t < 0 || t >= 60)) ||
- (n != null && (n < 0 || n >= 60))
- );
- }
- var LG = /([xXOz]+)|''|'(''|[^'])+('|$)/g;
- function NG(e, t, n) {
- var r = String(t),
- o = n || {},
- i = r.match(LG);
- if (i) {
- var a = w3(e, o);
- r = i.reduce(function (s, c) {
- if (c[0] === "'") return s;
- var d = s.indexOf(c),
- f = s[d - 1] === "'",
- v = s.replace(c, "'" + $G[c[0]](a, c, null, o) + "'");
- return f ? v.substring(0, d - 1) + v.substring(d + 1) : v;
- }, r);
- }
- return hG(e, r, o);
- }
- function HG(e, t, n) {
- var r = w3(e, n),
- o = Dy(t, r, !0),
- i = new Date(r.getTime() - o),
- a = new Date(0);
- return (
- a.setFullYear(i.getUTCFullYear(), i.getUTCMonth(), i.getUTCDate()),
- a.setHours(
- i.getUTCHours(),
- i.getUTCMinutes(),
- i.getUTCSeconds(),
- i.getUTCMilliseconds()
- ),
- a
- );
- }
- function jG(e, t, n, r) {
- var o = MY(r);
- return (o.timeZone = t), NG(HG(e, t), n, o);
- }
- const jd = {
- 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 Jg(e) {
- return `00${e}`.slice(-2);
- }
- function Ud(e, t, n) {
- return Array.isArray(t)
- ? (n === 'am'
- ? t.filter(r => r < 12)
- : n === 'pm'
- ? t.filter(r => r >= 12).map(r => (r === 12 ? 12 : r - 12))
- : t
- ).map(r => Jg(r))
- : typeof t == 'number'
- ? n === 'am'
- ? e.filter(r => {
- const o = Number(r);
- return o < 12 && o % t === 0;
- })
- : n === 'pm'
- ? e
- .filter(r => {
- const o = Number(r);
- return o >= 12 && o % t === 0;
- })
- .map(r => {
- const o = Number(r);
- return Jg(o === 12 ? 12 : o - 12);
- })
- : e.filter(r => Number(r) % t === 0)
- : n === 'am'
- ? e.filter(r => Number(r) < 12)
- : n === 'pm'
- ? e
- .map(r => Number(r))
- .filter(r => Number(r) >= 12)
- .map(r => Jg(r === 12 ? 12 : r - 12))
- : e;
- }
- function yh(e, t, n) {
- return n ? (typeof n == 'number' ? e % n === 0 : n.includes(e)) : !0;
- }
- function UG(e, t, n) {
- const r = Ud(jd[t], n).map(Number);
- let o, i;
- for (let a = 0; a < r.length; ++a) {
- const s = r[a];
- if (s === e) return s;
- if (s > e) {
- i = s;
- break;
- }
- o = s;
- }
- return o === void 0
- ? (i ||
- io('time-picker', "Please set 'hours' or 'minutes' or 'seconds' props"),
- i)
- : i === void 0 || i - e > e - o
- ? o
- : i;
- }
- function WG(e) {
- return rl(e) < 12 ? 'am' : 'pm';
- }
- const S3 = 'n-time-picker',
- xh = Re({
- 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: n } = this;
- return this.data.map(r => {
- const { label: o, disabled: i, value: a } = r,
- s = e === a;
- return h(
- 'div',
- {
- key: o,
- 'data-active': s ? '' : null,
- class: [
- `${n}-time-picker-col__item`,
- s && `${n}-time-picker-col__item--active`,
- i && `${n}-time-picker-col__item--disabled`
- ],
- onClick:
- t && !i
- ? () => {
- t(a);
- }
- : void 0
- },
- o
- );
- });
- }
- }),
- VG = {
- 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
- },
- KG = Re({
- name: 'TimePickerPanel',
- props: VG,
- setup(e) {
- const { mergedThemeRef: t, mergedClsPrefixRef: n } = Ze(S3),
- r = I(() => {
- const {
- isHourDisabled: s,
- hours: c,
- use12Hours: d,
- amPmValue: f
- } = e;
- if (d) {
- const v = f != null ? f : WG(Date.now());
- return Ud(jd.hours, c, v).map(p => {
- const m = Number(p),
- g = v === 'pm' && m !== 12 ? m + 12 : m;
- return { label: p, value: g, disabled: s ? s(g) : !1 };
- });
- } else
- return Ud(jd.hours, c).map(v => ({
- label: v,
- value: Number(v),
- disabled: s ? s(Number(v)) : !1
- }));
- }),
- o = I(() => {
- const { isMinuteDisabled: s, minutes: c } = e;
- return Ud(jd.minutes, c).map(d => ({
- label: d,
- value: Number(d),
- disabled: s ? s(Number(d), e.hourValue) : !1
- }));
- }),
- i = I(() => {
- const { isSecondDisabled: s, seconds: c } = e;
- return Ud(jd.seconds, c).map(d => ({
- label: d,
- value: Number(d),
- disabled: s ? s(Number(d), e.minuteValue, e.hourValue) : !1
- }));
- }),
- a = I(() => {
- const { isHourDisabled: s } = e;
- let c = !0,
- d = !0;
- for (let f = 0; f < 12; ++f)
- if (!(s != null && s(f))) {
- c = !1;
- break;
- }
- for (let f = 12; f < 24; ++f)
- if (!(s != null && s(f))) {
- d = !1;
- break;
- }
- return [
- { label: 'AM', value: 'am', disabled: c },
- { label: 'PM', value: 'pm', disabled: d }
- ];
- });
- return {
- mergedTheme: t,
- mergedClsPrefix: n,
- hours: r,
- minutes: o,
- seconds: i,
- amPm: a,
- hourScrollRef: Z(null),
- minuteScrollRef: Z(null),
- secondScrollRef: Z(null),
- amPmScrollRef: Z(null)
- };
- },
- render() {
- var e, t, n;
- const { mergedClsPrefix: r, mergedTheme: o } = this;
- return h(
- 'div',
- {
- tabindex: 0,
- class: `${r}-time-picker-panel`,
- onFocusin: this.onFocusin,
- onFocusout: this.onFocusout,
- onKeydown: this.onKeydown
- },
- h(
- 'div',
- { class: `${r}-time-picker-cols` },
- this.showHour
- ? h(
- 'div',
- {
- class: [
- `${r}-time-picker-col`,
- this.isHourInvalid && `${r}-time-picker-col--invalid`,
- this.transitionDisabled &&
- `${r}-time-picker-col--transition-disabled`
- ]
- },
- h(
- yr,
- {
- ref: 'hourScrollRef',
- theme: o.peers.Scrollbar,
- themeOverrides: o.peerOverrides.Scrollbar
- },
- {
- default: () => [
- h(xh, {
- clsPrefix: r,
- data: this.hours,
- activeValue: this.hourValue,
- onItemClick: this.onHourClick
- }),
- h('div', { class: `${r}-time-picker-col__padding` })
- ]
- }
- )
- )
- : null,
- this.showMinute
- ? h(
- 'div',
- {
- class: [
- `${r}-time-picker-col`,
- this.transitionDisabled &&
- `${r}-time-picker-col--transition-disabled`,
- this.isMinuteInvalid && `${r}-time-picker-col--invalid`
- ]
- },
- h(
- yr,
- {
- ref: 'minuteScrollRef',
- theme: o.peers.Scrollbar,
- themeOverrides: o.peerOverrides.Scrollbar
- },
- {
- default: () => [
- h(xh, {
- clsPrefix: r,
- data: this.minutes,
- activeValue: this.minuteValue,
- onItemClick: this.onMinuteClick
- }),
- h('div', { class: `${r}-time-picker-col__padding` })
- ]
- }
- )
- )
- : null,
- this.showSecond
- ? h(
- 'div',
- {
- class: [
- `${r}-time-picker-col`,
- this.isSecondInvalid && `${r}-time-picker-col--invalid`,
- this.transitionDisabled &&
- `${r}-time-picker-col--transition-disabled`
- ]
- },
- h(
- yr,
- {
- ref: 'secondScrollRef',
- theme: o.peers.Scrollbar,
- themeOverrides: o.peerOverrides.Scrollbar
- },
- {
- default: () => [
- h(xh, {
- clsPrefix: r,
- data: this.seconds,
- activeValue: this.secondValue,
- onItemClick: this.onSecondClick
- }),
- h('div', { class: `${r}-time-picker-col__padding` })
- ]
- }
- )
- )
- : null,
- this.use12Hours
- ? h(
- 'div',
- {
- class: [
- `${r}-time-picker-col`,
- this.isAmPmInvalid && `${r}-time-picker-col--invalid`,
- this.transitionDisabled &&
- `${r}-time-picker-col--transition-disabled`
- ]
- },
- h(
- yr,
- {
- ref: 'amPmScrollRef',
- theme: o.peers.Scrollbar,
- themeOverrides: o.peerOverrides.Scrollbar
- },
- {
- default: () => [
- h(xh, {
- clsPrefix: r,
- data: this.amPm,
- activeValue: this.amPmValue,
- onItemClick: this.onAmPmClick
- }),
- h('div', { class: `${r}-time-picker-col__padding` })
- ]
- }
- )
- )
- : null
- ),
- !((e = this.actions) === null || e === void 0) && e.length
- ? h(
- 'div',
- { class: `${r}-time-picker-actions` },
- !((t = this.actions) === null || t === void 0) &&
- t.includes('now')
- ? h(
- nr,
- {
- size: 'tiny',
- theme: o.peers.Button,
- themeOverrides: o.peerOverrides.Button,
- onClick: this.onNowClick
- },
- { default: () => this.nowText }
- )
- : null,
- !((n = this.actions) === null || n === void 0) &&
- n.includes('confirm')
- ? h(
- nr,
- {
- size: 'tiny',
- type: 'primary',
- class: `${r}-time-picker-actions__confirm`,
- theme: o.peers.Button,
- themeOverrides: o.peerOverrides.Button,
- disabled: this.isValueInvalid,
- onClick: this.onConfirmClick
- },
- { default: () => this.confirmText }
- )
- : null
- )
- : null,
- h(_l, { onFocus: this.onFocusDetectorFocus })
- );
- }
- }),
- qG = F([
- O(
- 'time-picker',
- `
- z-index: auto;
- position: relative;
- `,
- [
- O(
- 'time-picker-icon',
- `
- color: var(--n-icon-color-override);
- transition: color .3s var(--n-bezier);
- `
- ),
- U('disabled', [
- O(
- 'time-picker-icon',
- `
- color: var(--n-icon-color-disabled-override);
- `
- )
- ])
- ]
- ),
- O(
- 'time-picker-panel',
- `
- transition:
- box-shadow .3s var(--n-bezier),
- background-color .3s var(--n-bezier);
- outline: none;
- font-size: var(--n-item-font-size);
- border-radius: var(--n-border-radius);
- margin: 4px 0;
- min-width: 104px;
- overflow: hidden;
- background-color: var(--n-panel-color);
- box-shadow: var(--n-panel-box-shadow);
- `,
- [
- gi(),
- O(
- 'time-picker-actions',
- `
- padding: var(--n-panel-action-padding);
- align-items: center;
- display: flex;
- justify-content: space-evenly;
- `
- ),
- O(
- 'time-picker-cols',
- `
- height: calc(var(--n-item-height) * 6);
- display: flex;
- position: relative;
- transition: border-color .3s var(--n-bezier);
- border-bottom: 1px solid var(--n-panel-divider-color);
- `
- ),
- O(
- 'time-picker-col',
- `
- flex-grow: 1;
- min-width: var(--n-item-width);
- height: calc(var(--n-item-height) * 6);
- flex-direction: column;
- transition: box-shadow .3s var(--n-bezier);
- `,
- [
- U('transition-disabled', [
- V('item', 'transition: none;', [
- F('&::before', 'transition: none;')
- ])
- ]),
- V(
- 'padding',
- `
- height: calc(var(--n-item-height) * 5);
- `
- ),
- F('&:first-child', 'min-width: calc(var(--n-item-width) + 4px);', [
- V('item', [F('&::before', 'left: 4px;')])
- ]),
- V(
- 'item',
- `
- cursor: pointer;
- height: var(--n-item-height);
- display: flex;
- align-items: center;
- justify-content: center;
- transition:
- color .3s var(--n-bezier),
- background-color .3s var(--n-bezier),
- opacity .3s var(--n-bezier),
- text-decoration-color .3s var(--n-bezier);
- background: #0000;
- text-decoration-color: #0000;
- color: var(--n-item-text-color);
- z-index: 0;
- box-sizing: border-box;
- padding-top: 4px;
- position: relative;
- `,
- [
- F(
- '&::before',
- `
- content: "";
- transition: background-color .3s var(--n-bezier);
- z-index: -1;
- position: absolute;
- left: 0;
- right: 4px;
- top: 4px;
- bottom: 0;
- border-radius: var(--n-item-border-radius);
- `
- ),
- jt('disabled', [
- F(
- '&:hover::before',
- `
- background-color: var(--n-item-color-hover);
- `
- )
- ]),
- U(
- 'active',
- `
- color: var(--n-item-text-color-active);
- `,
- [
- F(
- '&::before',
- `
- background-color: var(--n-item-color-hover);
- `
- )
- ]
- ),
- U(
- 'disabled',
- `
- opacity: var(--n-item-opacity-disabled);
- cursor: not-allowed;
- `
- )
- ]
- ),
- U('invalid', [
- V('item', [
- U(
- 'active',
- `
- text-decoration: line-through;
- text-decoration-color: var(--n-item-text-color-active);
- `
- )
- ])
- ])
- ]
- )
- ]
- )
- ]);
- function em(e, t) {
- return e === void 0
- ? !0
- : Array.isArray(e)
- ? e.every(n => n >= 0 && n <= t)
- : e >= 0 && e <= t;
- }
- const YG = Object.assign(Object.assign({}, Ke.props), {
- to: Yr.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 => em(e, 23) },
- minutes: { type: [Number, Array], validator: e => em(e, 59) },
- seconds: { type: [Number, Array], validator: e => em(e, 59) },
- use12Hours: Boolean,
- stateful: { type: Boolean, default: !0 },
- onChange: [Function, Array]
- }),
- uv = Re({
- name: 'TimePicker',
- props: YG,
- setup(e) {
- const {
- mergedBorderedRef: t,
- mergedClsPrefixRef: n,
- namespaceRef: r,
- inlineThemeDisabled: o
- } = yt(e),
- { localeRef: i, dateLocaleRef: a } = ka('TimePicker'),
- s = ei(e),
- { mergedSizeRef: c, mergedDisabledRef: d, mergedStatusRef: f } = s,
- v = Ke('TimePicker', '-time-picker', qG, u3, e, n),
- p = Y0(),
- m = Z(null),
- g = Z(null),
- w = I(() => ({ locale: a.value.locale }));
- function x(_e) {
- return _e === null
- ? null
- : wo(_e, e.valueFormat || e.format, new Date(), w.value).getTime();
- }
- const { defaultValue: y, defaultFormattedValue: C } = e,
- R = Z(C !== void 0 ? x(C) : y),
- S = I(() => {
- const { formattedValue: _e } = e;
- if (_e !== void 0) return x(_e);
- const { value: Ve } = e;
- return Ve !== void 0 ? Ve : R.value;
- }),
- _ = I(() => {
- const { timeZone: _e } = e;
- return _e
- ? (Ve, nt, Ot) => jG(Ve, _e, nt, Ot)
- : (Ve, nt, Ot) => Xn(Ve, nt, Ot);
- }),
- P = Z('');
- $t(
- () => e.timeZone,
- () => {
- const _e = S.value;
- P.value = _e === null ? '' : _.value(_e, e.format, w.value);
- },
- { immediate: !0 }
- );
- const T = Z(!1),
- A = Ee(e, 'show'),
- z = An(A, T),
- k = Z(S.value),
- M = Z(!1),
- E = I(() => i.value.now),
- D = I(() =>
- e.placeholder !== void 0 ? e.placeholder : i.value.placeholder
- ),
- L = I(() => i.value.negativeText),
- j = I(() => i.value.positiveText),
- B = I(() => /H|h|K|k/.test(e.format)),
- q = I(() => e.format.includes('m')),
- G = I(() => e.format.includes('s')),
- ne = I(() => {
- const { isHourDisabled: _e } = e;
- return Fe.value === null
- ? !1
- : yh(Fe.value, 'hours', e.hours)
- ? _e
- ? _e(Fe.value)
- : !1
- : !0;
- }),
- X = I(() => {
- const { value: _e } = Ie,
- { value: Ve } = Fe;
- if (_e === null || Ve === null) return !1;
- if (!yh(_e, 'minutes', e.minutes)) return !0;
- const { isMinuteDisabled: nt } = e;
- return nt ? nt(_e, Ve) : !1;
- }),
- J = I(() => {
- const { value: _e } = Ie,
- { value: Ve } = Fe,
- { value: nt } = le;
- if (nt === null || _e === null || Ve === null) return !1;
- if (!yh(nt, 'seconds', e.seconds)) return !0;
- const { isSecondDisabled: Ot } = e;
- return Ot ? Ot(nt, _e, Ve) : !1;
- }),
- re = I(() => ne.value || X.value || J.value),
- ce = I(() => e.format.length + 4),
- pe = I(() => {
- const { value: _e } = S;
- return _e === null ? null : rl(_e) < 12 ? 'am' : 'pm';
- }),
- Fe = I(() => {
- const { value: _e } = S;
- return _e === null ? null : Number(_.value(_e, 'HH', w.value));
- }),
- Ie = I(() => {
- const { value: _e } = S;
- return _e === null ? null : Number(_.value(_e, 'mm', w.value));
- }),
- le = I(() => {
- const { value: _e } = S;
- return _e === null ? null : Number(_.value(_e, 'ss', w.value));
- });
- function me(_e, Ve) {
- const { onUpdateFormattedValue: nt, 'onUpdate:formattedValue': Ot } = e;
- nt && ze(nt, _e, Ve), Ot && ze(Ot, _e, Ve);
- }
- function he(_e) {
- return _e === null ? null : _.value(_e, e.valueFormat || e.format);
- }
- function ue(_e) {
- const { onUpdateValue: Ve, 'onUpdate:value': nt, onChange: Ot } = e,
- { nTriggerFormChange: $n, nTriggerFormInput: jn } = s,
- Zt = he(_e);
- Ve && ze(Ve, _e, Zt),
- nt && ze(nt, _e, Zt),
- Ot && ze(Ot, _e, Zt),
- me(Zt, _e),
- (R.value = _e),
- $n(),
- jn();
- }
- function Ae(_e) {
- const { onFocus: Ve } = e,
- { nTriggerFormFocus: nt } = s;
- Ve && ze(Ve, _e), nt();
- }
- function W(_e) {
- const { onBlur: Ve } = e,
- { nTriggerFormBlur: nt } = s;
- Ve && ze(Ve, _e), nt();
- }
- function Q() {
- const { onConfirm: _e } = e;
- _e && ze(_e, S.value, he(S.value));
- }
- function ee(_e) {
- var Ve;
- _e.stopPropagation(),
- ue(null),
- Ge(null),
- (Ve = e.onClear) === null || Ve === void 0 || Ve.call(e);
- }
- function ve() {
- Xe({ returnFocus: !0 });
- }
- function oe(_e) {
- _e.key === 'Escape' && z.value && Su(_e);
- }
- function H(_e) {
- var Ve;
- switch (_e.key) {
- case 'Escape':
- z.value && (Su(_e), Xe({ returnFocus: !0 }));
- break;
- case 'Tab':
- p.shift &&
- _e.target ===
- ((Ve = g.value) === null || Ve === void 0 ? void 0 : Ve.$el) &&
- (_e.preventDefault(), Xe({ returnFocus: !0 }));
- break;
- }
- }
- function ae() {
- (M.value = !0),
- mn(() => {
- M.value = !1;
- });
- }
- function ge(_e) {
- d.value || Io(_e, 'clear') || z.value || ot();
- }
- function Ce(_e) {
- typeof _e != 'string' &&
- (S.value === null
- ? ue(ht(Zl(OU(new Date()), _e)))
- : ue(ht(Zl(S.value, _e))));
- }
- function se(_e) {
- typeof _e != 'string' &&
- (S.value === null
- ? ue(ht(Mg(cj(new Date()), _e)))
- : ue(ht(Mg(S.value, _e))));
- }
- function Se(_e) {
- typeof _e != 'string' &&
- (S.value === null
- ? ue(ht(Ig(my(new Date()), _e)))
- : ue(ht(Ig(S.value, _e))));
- }
- function Ne(_e) {
- const { value: Ve } = S;
- if (Ve === null) {
- const nt = new Date(),
- Ot = rl(nt);
- _e === 'pm' && Ot < 12
- ? ue(ht(Zl(nt, Ot + 12)))
- : _e === 'am' && Ot >= 12 && ue(ht(Zl(nt, Ot - 12))),
- ue(ht(nt));
- } else {
- const nt = rl(Ve);
- _e === 'pm' && nt < 12
- ? ue(ht(Zl(Ve, nt + 12)))
- : _e === 'am' && nt >= 12 && ue(ht(Zl(Ve, nt - 12)));
- }
- }
- function Ge(_e) {
- _e === void 0 && (_e = S.value),
- _e === null
- ? (P.value = '')
- : (P.value = _.value(_e, e.format, w.value));
- }
- function it(_e) {
- Lt(_e) || Ae(_e);
- }
- function dt(_e) {
- var Ve;
- if (!Lt(_e))
- if (z.value) {
- const nt =
- (Ve = g.value) === null || Ve === void 0 ? void 0 : Ve.$el;
- (nt != null && nt.contains(_e.relatedTarget)) ||
- (Ge(), W(_e), Xe({ returnFocus: !1 }));
- } else Ge(), W(_e);
- }
- function xt() {
- d.value || z.value || ot();
- }
- function Me() {
- d.value || (Ge(), Xe({ returnFocus: !1 }));
- }
- function ut() {
- if (!g.value) return;
- const {
- hourScrollRef: _e,
- minuteScrollRef: Ve,
- secondScrollRef: nt,
- amPmScrollRef: Ot
- } = g.value;
- [_e, Ve, nt, Ot].forEach($n => {
- var jn;
- if (!$n) return;
- const Zt =
- (jn = $n.contentRef) === null || jn === void 0
- ? void 0
- : jn.querySelector('[data-active]');
- Zt && $n.scrollTo({ top: Zt.offsetTop });
- });
- }
- function wt(_e) {
- T.value = _e;
- const { onUpdateShow: Ve, 'onUpdate:show': nt } = e;
- Ve && ze(Ve, _e), nt && ze(nt, _e);
- }
- function Lt(_e) {
- var Ve, nt, Ot;
- return !!(
- (!(
- (nt =
- (Ve = m.value) === null || Ve === void 0
- ? void 0
- : Ve.wrapperElRef) === null || nt === void 0
- ) &&
- nt.contains(_e.relatedTarget)) ||
- (!((Ot = g.value) === null || Ot === void 0) &&
- Ot.$el.contains(_e.relatedTarget))
- );
- }
- function ot() {
- (k.value = S.value), wt(!0), mn(ut);
- }
- function ct(_e) {
- var Ve, nt;
- z.value &&
- !(
- !(
- (nt =
- (Ve = m.value) === null || Ve === void 0
- ? void 0
- : Ve.wrapperElRef) === null || nt === void 0
- ) && nt.contains(ya(_e))
- ) &&
- Xe({ returnFocus: !1 });
- }
- function Xe({ returnFocus: _e }) {
- var Ve;
- z.value &&
- (wt(!1),
- _e && ((Ve = m.value) === null || Ve === void 0 || Ve.focus()));
- }
- function Qe(_e) {
- if (_e === '') {
- ue(null);
- return;
- }
- const Ve = wo(_e, e.format, new Date(), w.value);
- if (((P.value = _e), Xo(Ve))) {
- const { value: nt } = S;
- if (nt !== null) {
- const Ot = Br(nt, {
- hours: rl(Ve),
- minutes: nv(Ve),
- seconds: rv(Ve)
- });
- ue(ht(Ot));
- } else ue(ht(Ve));
- }
- }
- function ie() {
- ue(k.value), wt(!1);
- }
- function $e() {
- const _e = new Date(),
- Ve = { hours: rl, minutes: nv, seconds: rv },
- [nt, Ot, $n] = ['hours', 'minutes', 'seconds'].map(Zt =>
- !e[Zt] || yh(Ve[Zt](_e), Zt, e[Zt])
- ? Ve[Zt](_e)
- : UG(Ve[Zt](_e), Zt, e[Zt])
- ),
- jn = Ig(Mg(Zl(S.value ? S.value : ht(_e), nt), Ot), $n);
- ue(ht(jn));
- }
- function Ue() {
- Ge(), Q(), Xe({ returnFocus: !0 });
- }
- function lt(_e) {
- Lt(_e) || (Ge(), W(_e), Xe({ returnFocus: !1 }));
- }
- $t(S, _e => {
- Ge(_e), ae(), mn(ut);
- }),
- $t(z, () => {
- re.value && ue(k.value);
- }),
- Rt(S3, { mergedThemeRef: v, mergedClsPrefixRef: n });
- const st = {
- focus: () => {
- var _e;
- (_e = m.value) === null || _e === void 0 || _e.focus();
- },
- blur: () => {
- var _e;
- (_e = m.value) === null || _e === void 0 || _e.blur();
- }
- },
- be = I(() => {
- const {
- common: { cubicBezierEaseInOut: _e },
- self: { iconColor: Ve, iconColorDisabled: nt }
- } = v.value;
- return {
- '--n-icon-color-override': Ve,
- '--n-icon-color-disabled-override': nt,
- '--n-bezier': _e
- };
- }),
- He = o ? Mt('time-picker-trigger', void 0, be, e) : void 0,
- tt = I(() => {
- const {
- self: {
- panelColor: _e,
- itemTextColor: Ve,
- itemTextColorActive: nt,
- itemColorHover: Ot,
- panelDividerColor: $n,
- panelBoxShadow: jn,
- itemOpacityDisabled: Zt,
- borderRadius: we,
- itemFontSize: je,
- itemWidth: Ct,
- itemHeight: qt,
- panelActionPadding: xe,
- itemBorderRadius: De
- },
- common: { cubicBezierEaseInOut: rt }
- } = v.value;
- return {
- '--n-bezier': rt,
- '--n-border-radius': we,
- '--n-item-color-hover': Ot,
- '--n-item-font-size': je,
- '--n-item-height': qt,
- '--n-item-opacity-disabled': Zt,
- '--n-item-text-color': Ve,
- '--n-item-text-color-active': nt,
- '--n-item-width': Ct,
- '--n-panel-action-padding': xe,
- '--n-panel-box-shadow': jn,
- '--n-panel-color': _e,
- '--n-panel-divider-color': $n,
- '--n-item-border-radius': De
- };
- }),
- pt = o ? Mt('time-picker', void 0, tt, e) : void 0;
- return {
- focus: st.focus,
- blur: st.blur,
- mergedStatus: f,
- mergedBordered: t,
- mergedClsPrefix: n,
- namespace: r,
- uncontrolledValue: R,
- mergedValue: S,
- isMounted: yi(),
- inputInstRef: m,
- panelInstRef: g,
- adjustedTo: Yr(e),
- mergedShow: z,
- localizedNow: E,
- localizedPlaceholder: D,
- localizedNegativeText: L,
- localizedPositiveText: j,
- hourInFormat: B,
- minuteInFormat: q,
- secondInFormat: G,
- mergedAttrSize: ce,
- displayTimeString: P,
- mergedSize: c,
- mergedDisabled: d,
- isValueInvalid: re,
- isHourInvalid: ne,
- isMinuteInvalid: X,
- isSecondInvalid: J,
- transitionDisabled: M,
- hourValue: Fe,
- minuteValue: Ie,
- secondValue: le,
- amPmValue: pe,
- handleInputKeydown: oe,
- handleTimeInputFocus: it,
- handleTimeInputBlur: dt,
- handleNowClick: $e,
- handleConfirmClick: Ue,
- handleTimeInputUpdateValue: Qe,
- handleMenuFocusOut: lt,
- handleCancelClick: ie,
- handleClickOutside: ct,
- handleTimeInputActivate: xt,
- handleTimeInputDeactivate: Me,
- handleHourClick: Ce,
- handleMinuteClick: se,
- handleSecondClick: Se,
- handleAmPmClick: Ne,
- handleTimeInputClear: ee,
- handleFocusDetectorFocus: ve,
- handleMenuKeydown: H,
- handleTriggerClick: ge,
- mergedTheme: v,
- triggerCssVars: o ? void 0 : be,
- triggerThemeClass: He == null ? void 0 : He.themeClass,
- triggerOnRender: He == null ? void 0 : He.onRender,
- cssVars: o ? void 0 : tt,
- themeClass: pt == null ? void 0 : pt.themeClass,
- onRender: pt == null ? void 0 : pt.onRender
- };
- },
- render() {
- const { mergedClsPrefix: e, $slots: t, triggerOnRender: n } = this;
- return (
- n == null || n(),
- h(
- 'div',
- {
- class: [`${e}-time-picker`, this.triggerThemeClass],
- style: this.triggerCssVars
- },
- h(Xc, null, {
- default: () => [
- h(Zc, null, {
- default: () =>
- h(
- Yi,
- {
- 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']: () =>
- h(
- Et,
- { clsPrefix: e, class: `${e}-time-picker-icon` },
- {
- default: () => (t.icon ? t.icon() : h(HU, null))
- }
- )
- }
- : null
- )
- }),
- h(
- Qc,
- {
- teleportDisabled: this.adjustedTo === Yr.tdkey,
- show: this.mergedShow,
- to: this.adjustedTo,
- containerClass: this.namespace,
- placement: this.placement
- },
- {
- default: () =>
- h(
- Kn,
- {
- name: 'fade-in-scale-up-transition',
- appear: this.isMounted
- },
- {
- default: () => {
- var r;
- return this.mergedShow
- ? ((r = this.onRender) === null ||
- r === void 0 ||
- r.call(this),
- Er(
- h(KG, {
- 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
- }),
- [
- [
- xa,
- this.handleClickOutside,
- void 0,
- { capture: !0 }
- ]
- ]
- ))
- : null;
- }
- }
- )
- }
- )
- ]
- })
- )
- );
- }
- }),
- GG = 'HH:mm:ss',
- _3 = {
- active: Boolean,
- dateFormat: String,
- timeFormat: { type: String, value: GG },
- 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 R3(e) {
- const {
- dateLocaleRef: t,
- timePickerSizeRef: n,
- timePickerPropsRef: r,
- localeRef: o,
- mergedClsPrefixRef: i,
- mergedThemeRef: a
- } = Ze(Gv),
- s = I(() => ({ locale: t.value.locale })),
- c = Z(null),
- d = Y0();
- function f() {
- const { onClear: E } = e;
- E && E();
- }
- function v() {
- const { onConfirm: E, value: D } = e;
- E && E(D);
- }
- function p(E, D) {
- const { onUpdateValue: L } = e;
- L(E, D);
- }
- function m(E = !1) {
- const { onClose: D } = e;
- D && D(E);
- }
- function g() {
- const { onTabOut: E } = e;
- E && E();
- }
- function w() {
- p(null, !0), m(!0), f();
- }
- function x() {
- g();
- }
- function y() {
- (e.active || e.panel) &&
- mn(() => {
- const { value: E } = c;
- if (!E) return;
- const D = E.querySelectorAll('[data-n-date]');
- D.forEach(L => {
- L.classList.add('transition-disabled');
- }),
- E.offsetWidth,
- D.forEach(L => {
- L.classList.remove('transition-disabled');
- });
- });
- }
- function C(E) {
- E.key === 'Tab' &&
- E.target === c.value &&
- d.shift &&
- (E.preventDefault(), g());
- }
- function R(E) {
- const { value: D } = c;
- d.tab && E.target === D && D != null && D.contains(E.relatedTarget) && g();
- }
- let S = null,
- _ = !1;
- function P() {
- (S = e.value), (_ = !0);
- }
- function T() {
- _ = !1;
- }
- function A() {
- _ && (p(S, !1), (_ = !1));
- }
- function z(E) {
- return typeof E == 'function' ? E() : E;
- }
- const k = Z(!1);
- function M() {
- k.value = !k.value;
- }
- return {
- mergedTheme: a,
- mergedClsPrefix: i,
- dateFnsOptions: s,
- timePickerSize: n,
- timePickerProps: r,
- selfRef: c,
- locale: o,
- doConfirm: v,
- doClose: m,
- doUpdateValue: p,
- doTabOut: g,
- handleClearClick: w,
- handleFocusDetectorFocus: x,
- disableTransitionOneTick: y,
- handlePanelKeyDown: C,
- handlePanelFocus: R,
- cachePendingValue: P,
- clearPendingValue: T,
- restorePendingValue: A,
- getShortcutValue: z,
- handleShortcutMouseleave: A,
- showMonthYearPanel: k,
- handleOpenQuickSelectMonthPanel: M
- };
- }
- const Fy = Object.assign(Object.assign({}, _3), {
- actions: { type: Array, default: () => ['now', 'clear', 'confirm'] }
- });
- function By(e, t) {
- const n = R3(e),
- {
- isValueInvalidRef: r,
- isDateDisabledRef: o,
- isDateInvalidRef: i,
- isTimeInvalidRef: a,
- isDateTimeInvalidRef: s,
- isHourDisabledRef: c,
- isMinuteDisabledRef: d,
- isSecondDisabledRef: f,
- localeRef: v,
- firstDayOfWeekRef: p,
- datePickerSlots: m
- } = Ze(Gv),
- g = {
- isValueInvalid: r,
- isDateDisabled: o,
- isDateInvalid: i,
- isTimeInvalid: a,
- isDateTimeInvalid: s,
- isHourDisabled: c,
- isMinuteDisabled: d,
- isSecondDisabled: f
- },
- w = I(() => e.dateFormat || v.value.dateFormat),
- x = Z(
- e.value === null || Array.isArray(e.value) ? '' : Xn(e.value, w.value)
- ),
- y = Z(e.value === null || Array.isArray(e.value) ? Date.now() : e.value),
- C = Z(null),
- R = Z(null),
- S = Z(null),
- _ = Z(Date.now()),
- P = I(() => {
- var H;
- return fb(
- y.value,
- e.value,
- _.value,
- (H = p.value) !== null && H !== void 0 ? H : v.value.firstDayOfWeek
- );
- }),
- T = I(() => {
- const { value: H } = e;
- return hb(y.value, Array.isArray(H) ? null : H, _.value);
- }),
- A = I(() => {
- const { value: H } = e;
- return pb(Array.isArray(H) ? null : H, _.value);
- }),
- z = I(() => {
- const { value: H } = e;
- return vb(y.value, Array.isArray(H) ? null : H, _.value);
- }),
- k = I(() =>
- P.value.slice(0, 7).map(H => {
- const { ts: ae } = H;
- return Xn(ae, v.value.dayFormat, n.dateFnsOptions.value);
- })
- ),
- M = I(() => Xn(y.value, v.value.monthFormat, n.dateFnsOptions.value)),
- E = I(() => Xn(y.value, v.value.yearFormat, n.dateFnsOptions.value));
- $t(y, (H, ae) => {
- (t === 'date' || t === 'datetime') &&
- (Wv(H, ae) || n.disableTransitionOneTick());
- }),
- $t(
- I(() => e.value),
- H => {
- H !== null && !Array.isArray(H)
- ? ((x.value = Xn(H, w.value, n.dateFnsOptions.value)), (y.value = H))
- : (x.value = '');
- }
- );
- function D(H) {
- return ht(
- t === 'datetime'
- ? my(H)
- : t === 'month'
- ? pa(H)
- : t === 'year'
- ? hy(H)
- : t === 'quarter'
- ? Tu(H)
- : ev(H)
- );
- }
- function L(H) {
- const {
- isDateDisabled: { value: ae }
- } = g;
- return ae ? ae(H) : !1;
- }
- function j(H) {
- const ae = wo(H, w.value, new Date(), n.dateFnsOptions.value);
- if (Xo(ae)) {
- if (e.value === null) n.doUpdateValue(ht(D(Date.now())), e.panel);
- else if (!Array.isArray(e.value)) {
- const ge = Br(e.value, { year: Jn(ae), month: Yn(ae), date: li(ae) });
- n.doUpdateValue(ht(D(ht(ge))), e.panel);
- }
- } else x.value = H;
- }
- function B() {
- const H = wo(x.value, w.value, new Date(), n.dateFnsOptions.value);
- if (Xo(H)) {
- if (e.value === null) n.doUpdateValue(ht(D(Date.now())), !1);
- else if (!Array.isArray(e.value)) {
- const ae = Br(e.value, { year: Jn(H), month: Yn(H), date: li(H) });
- n.doUpdateValue(ht(D(ht(ae))), !1);
- }
- } else re();
- }
- function q() {
- n.doUpdateValue(null, !0),
- (x.value = ''),
- n.doClose(!0),
- n.handleClearClick();
- }
- function G() {
- n.doUpdateValue(ht(D(Date.now())), !0);
- const H = Date.now();
- (y.value = H),
- n.doClose(!0),
- e.panel &&
- (t === 'month' || t === 'quarter' || t === 'year') &&
- (n.disableTransitionOneTick(), ve(H));
- }
- function ne(H) {
- if (L(H.ts)) return;
- let ae;
- if (
- (e.value !== null && !Array.isArray(e.value)
- ? (ae = e.value)
- : (ae = Date.now()),
- t === 'datetime' &&
- e.defaultTime !== null &&
- !Array.isArray(e.defaultTime))
- ) {
- const ge = Fh(e.defaultTime);
- ge && (ae = ht(Br(ae, ge)));
- }
- switch (
- ((ae = ht(
- H.type === 'quarter' && H.dateObject.quarter
- ? zU(gS(ae, H.dateObject.year), H.dateObject.quarter)
- : Br(ae, H.dateObject)
- )),
- n.doUpdateValue(D(ae), e.panel || t === 'date' || t === 'year'),
- t)
- ) {
- case 'date':
- n.doClose();
- break;
- case 'year':
- e.panel && n.disableTransitionOneTick(), n.doClose();
- break;
- case 'month':
- n.disableTransitionOneTick(), ve(ae);
- break;
- case 'quarter':
- n.disableTransitionOneTick(), ve(ae);
- break;
- }
- }
- function X(H, ae) {
- let ge;
- e.value !== null && !Array.isArray(e.value)
- ? (ge = e.value)
- : (ge = Date.now()),
- (ge = ht(
- H.type === 'month'
- ? by(ge, H.dateObject.month)
- : gS(ge, H.dateObject.year)
- )),
- ae(ge),
- ve(ge);
- }
- function J(H) {
- y.value = H;
- }
- function re(H) {
- if (e.value === null || Array.isArray(e.value)) {
- x.value = '';
- return;
- }
- H === void 0 && (H = e.value),
- (x.value = Xn(H, w.value, n.dateFnsOptions.value));
- }
- function ce() {
- g.isDateInvalid.value || g.isTimeInvalid.value || (n.doConfirm(), pe());
- }
- function pe() {
- e.active && n.doClose();
- }
- function Fe() {
- y.value = ht(ab(y.value, 1));
- }
- function Ie() {
- y.value = ht(ab(y.value, -1));
- }
- function le() {
- y.value = ht(Fr(y.value, 1));
- }
- function me() {
- y.value = ht(Fr(y.value, -1));
- }
- function he() {
- const { value: H } = C;
- return H == null ? void 0 : H.listElRef;
- }
- function ue() {
- const { value: H } = C;
- return H == null ? void 0 : H.itemsElRef;
- }
- function Ae(H) {
- var ae;
- (ae = R.value) === null || ae === void 0 || ae.sync();
- }
- function W(H) {
- H !== null && n.doUpdateValue(H, e.panel);
- }
- function Q(H) {
- n.cachePendingValue();
- const ae = n.getShortcutValue(H);
- typeof ae == 'number' && n.doUpdateValue(ae, !1);
- }
- function ee(H) {
- const ae = n.getShortcutValue(H);
- typeof ae == 'number' &&
- (n.doUpdateValue(ae, e.panel), n.clearPendingValue(), ce());
- }
- function ve(H) {
- const { value: ae } = e;
- if (S.value) {
- const ge = Yn(H === void 0 ? (ae === null ? Date.now() : ae) : H);
- S.value.scrollTo({ top: ge * _s });
- }
- if (C.value) {
- const ge = Jn(H === void 0 ? (ae === null ? Date.now() : ae) : H) - cv;
- C.value.scrollTo({ top: ge * _s });
- }
- }
- const oe = { monthScrollbarRef: S, yearScrollbarRef: R, yearVlRef: C };
- return Object.assign(
- Object.assign(
- Object.assign(
- Object.assign(
- {
- dateArray: P,
- monthArray: T,
- yearArray: A,
- quarterArray: z,
- calendarYear: E,
- calendarMonth: M,
- weekdays: k,
- mergedIsDateDisabled: L,
- nextYear: Fe,
- prevYear: Ie,
- nextMonth: le,
- prevMonth: me,
- handleNowClick: G,
- handleConfirmClick: ce,
- handleSingleShortcutMouseenter: Q,
- handleSingleShortcutClick: ee
- },
- g
- ),
- n
- ),
- oe
- ),
- {
- handleDateClick: ne,
- handleDateInputBlur: B,
- handleDateInput: j,
- handleTimePickerChange: W,
- clearSelectedDateTime: q,
- virtualListContainer: he,
- virtualListContent: ue,
- handleVirtualListScroll: Ae,
- timePickerSize: n.timePickerSize,
- dateInputValue: x,
- datePickerSlots: m,
- handleQuickMonthClick: X,
- justifyColumnsScrollState: ve,
- calendarValue: y,
- onUpdateCalendarValue: J
- }
- );
- }
- const P3 = Re({
- name: 'MonthPanel',
- props: Object.assign(Object.assign({}, Fy), {
- type: { type: String, required: !0 },
- useAsQuickJump: Boolean
- }),
- setup(e) {
- const t = By(e, e.type),
- n = i => {
- switch (i.type) {
- case 'year':
- return i.dateObject.year;
- case 'month':
- return i.dateObject.month + 1;
- case 'quarter':
- return `Q${i.dateObject.quarter}`;
- }
- },
- { useAsQuickJump: r } = e,
- o = (i, a, s) => {
- const {
- mergedIsDateDisabled: c,
- handleDateClick: d,
- handleQuickMonthClick: f
- } = t;
- return h(
- 'div',
- {
- 'data-n-date': !0,
- key: a,
- class: [
- `${s}-date-panel-month-calendar__picker-col-item`,
- {
- [`${s}-date-panel-month-calendar__picker-col-item--current`]:
- i.isCurrent,
- [`${s}-date-panel-month-calendar__picker-col-item--selected`]:
- i.selected,
- [`${s}-date-panel-month-calendar__picker-col-item--disabled`]:
- !r && c(i.ts)
- }
- ],
- onClick: () => {
- r
- ? f(i, v => {
- e.onUpdateValue(v, !1);
- })
- : d(i);
- }
- },
- n(i)
- );
- };
- return (
- Hn(() => {
- t.justifyColumnsScrollState();
- }),
- Object.assign(Object.assign({}, t), { renderItem: o })
- );
- },
- render() {
- const {
- mergedClsPrefix: e,
- mergedTheme: t,
- shortcuts: n,
- actions: r,
- renderItem: o,
- type: i,
- onRender: a
- } = this;
- return (
- a == null || a(),
- h(
- '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
- },
- h(
- 'div',
- { class: `${e}-date-panel-month-calendar` },
- h(
- yr,
- {
- 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: () =>
- h(
- Ac,
- {
- ref: 'yearVlRef',
- items: this.yearArray,
- itemSize: _s,
- showScrollbar: !1,
- keyField: 'ts',
- onScroll: this.handleVirtualListScroll,
- paddingBottom: 4
- },
- { default: ({ item: s, index: c }) => o(s, c, e) }
- )
- }
- ),
- i === 'month' || i === 'quarter'
- ? h(
- 'div',
- { class: `${e}-date-panel-month-calendar__picker-col` },
- h(
- yr,
- {
- ref: 'monthScrollbarRef',
- theme: t.peers.Scrollbar,
- themeOverrides: t.peerOverrides.Scrollbar
- },
- {
- default: () => [
- (i === 'month'
- ? this.monthArray
- : this.quarterArray
- ).map((s, c) => o(s, c, e)),
- h('div', {
- class: `${e}-date-panel-${i}-calendar__padding`
- })
- ]
- }
- )
- )
- : null
- ),
- this.datePickerSlots.footer
- ? h(
- 'div',
- { class: `${e}-date-panel-footer` },
- { default: this.datePickerSlots.footer }
- )
- : null,
- (r != null && r.length) || n
- ? h(
- 'div',
- { class: `${e}-date-panel-actions` },
- h(
- 'div',
- { class: `${e}-date-panel-actions__prefix` },
- n &&
- Object.keys(n).map(s => {
- const c = n[s];
- return Array.isArray(c)
- ? null
- : h(
- ji,
- {
- size: 'tiny',
- onMouseenter: () => {
- this.handleSingleShortcutMouseenter(c);
- },
- onClick: () => {
- this.handleSingleShortcutClick(c);
- },
- onMouseleave: () => {
- this.handleShortcutMouseleave();
- }
- },
- { default: () => s }
- );
- })
- ),
- h(
- 'div',
- { class: `${e}-date-panel-actions__suffix` },
- r != null && r.includes('clear')
- ? h(
- nr,
- {
- theme: t.peers.Button,
- themeOverrides: t.peerOverrides.Button,
- size: 'tiny',
- onClick: this.handleClearClick
- },
- { default: () => this.locale.clear }
- )
- : null,
- r != null && r.includes('now')
- ? h(
- nr,
- {
- theme: t.peers.Button,
- themeOverrides: t.peerOverrides.Button,
- size: 'tiny',
- onClick: this.handleNowClick
- },
- { default: () => this.locale.now }
- )
- : null,
- r != null && r.includes('confirm')
- ? h(
- nr,
- {
- theme: t.peers.Button,
- themeOverrides: t.peerOverrides.Button,
- size: 'tiny',
- type: 'primary',
- disabled: this.isDateInvalid,
- onClick: this.handleConfirmClick
- },
- { default: () => this.locale.confirm }
- )
- : null
- )
- )
- : null,
- h(_l, { onFocus: this.handleFocusDetectorFocus })
- )
- );
- }
- }),
- Dc = Re({
- 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 = Z(null),
- t = Z(null),
- n = Z(!1);
- function r(i) {
- var a;
- n.value &&
- !(!((a = e.value) === null || a === void 0) && a.contains(ya(i))) &&
- (n.value = !1);
- }
- function o() {
- n.value = !n.value;
- }
- return {
- show: n,
- triggerRef: e,
- monthPanelRef: t,
- handleHeaderClick: o,
- handleClickOutside: r
- };
- },
- render() {
- const { handleClickOutside: e, mergedClsPrefix: t } = this;
- return h(
- 'div',
- { class: `${t}-date-panel-month__month-year`, ref: 'triggerRef' },
- h(Xc, null, {
- default: () => [
- h(Zc, null, {
- default: () =>
- h(
- '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]
- )
- }),
- h(
- Qc,
- { show: this.show, teleportDisabled: !0 },
- {
- default: () =>
- h(
- Kn,
- { name: 'fade-in-scale-up-transition', appear: !0 },
- {
- default: () =>
- this.show
- ? Er(
- h(P3, {
- ref: 'monthPanelRef',
- onUpdateValue: this.onUpdateValue,
- actions: [],
- type: 'month',
- key: 'month',
- useAsQuickJump: !0,
- value: this.value
- }),
- [[xa, e, void 0, { capture: !0 }]]
- )
- : null
- }
- )
- }
- )
- ]
- })
- );
- }
- }),
- XG = Re({
- name: 'DateTimePanel',
- props: Fy,
- setup(e) {
- return By(e, 'datetime');
- },
- render() {
- var e, t, n, r;
- const {
- mergedClsPrefix: o,
- mergedTheme: i,
- shortcuts: a,
- timePickerProps: s,
- onRender: c,
- $slots: d
- } = this;
- return (
- c == null || c(),
- h(
- '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
- },
- h(
- 'div',
- { class: `${o}-date-panel-header` },
- h(Yi, {
- value: this.dateInputValue,
- theme: i.peers.Input,
- themeOverrides: i.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
- }),
- h(
- uv,
- Object.assign(
- {
- size: this.timePickerSize,
- placeholder: this.locale.selectTime,
- format: this.timeFormat
- },
- Array.isArray(s) ? void 0 : s,
- {
- showIcon: !1,
- to: !1,
- theme: i.peers.TimePicker,
- themeOverrides: i.peerOverrides.TimePicker,
- value: Array.isArray(this.value) ? null : this.value,
- isHourDisabled: this.isHourDisabled,
- isMinuteDisabled: this.isMinuteDisabled,
- isSecondDisabled: this.isSecondDisabled,
- onUpdateValue: this.handleTimePickerChange,
- stateful: !1
- }
- )
- )
- ),
- h(
- 'div',
- { class: `${o}-date-panel-calendar` },
- h(
- 'div',
- { class: `${o}-date-panel-month` },
- h(
- 'div',
- {
- class: `${o}-date-panel-month__fast-prev`,
- onClick: this.prevYear
- },
- Kt(d['prev-year'], () => [h(pl, null)])
- ),
- h(
- 'div',
- {
- class: `${o}-date-panel-month__prev`,
- onClick: this.prevMonth
- },
- Kt(d['prev-month'], () => [h(vl, null)])
- ),
- h(Dc, {
- monthBeforeYear: this.locale.monthBeforeYear,
- value: this.calendarValue,
- onUpdateValue: this.onUpdateCalendarValue,
- mergedClsPrefix: o,
- calendarMonth: this.calendarMonth,
- calendarYear: this.calendarYear
- }),
- h(
- 'div',
- {
- class: `${o}-date-panel-month__next`,
- onClick: this.nextMonth
- },
- Kt(d['next-month'], () => [h(ml, null)])
- ),
- h(
- 'div',
- {
- class: `${o}-date-panel-month__fast-next`,
- onClick: this.nextYear
- },
- Kt(d['next-year'], () => [h(gl, null)])
- )
- ),
- h(
- 'div',
- { class: `${o}-date-panel-weekdays` },
- this.weekdays.map(f =>
- h('div', { key: f, class: `${o}-date-panel-weekdays__day` }, f)
- )
- ),
- h(
- 'div',
- { class: `${o}-date-panel-dates` },
- this.dateArray.map((f, v) =>
- h(
- 'div',
- {
- 'data-n-date': !0,
- key: v,
- class: [
- `${o}-date-panel-date`,
- {
- [`${o}-date-panel-date--current`]: f.isCurrentDate,
- [`${o}-date-panel-date--selected`]: f.selected,
- [`${o}-date-panel-date--excluded`]: !f.inCurrentMonth,
- [`${o}-date-panel-date--disabled`]:
- this.mergedIsDateDisabled(f.ts)
- }
- ],
- onClick: () => {
- this.handleDateClick(f);
- }
- },
- h('div', { class: `${o}-date-panel-date__trigger` }),
- f.dateObject.date,
- f.isCurrentDate
- ? h('div', { class: `${o}-date-panel-date__sup` })
- : null
- )
- )
- )
- ),
- this.datePickerSlots.footer
- ? h(
- 'div',
- { class: `${o}-date-panel-footer` },
- this.datePickerSlots.footer()
- )
- : null,
- (!((e = this.actions) === null || e === void 0) && e.length) || a
- ? h(
- 'div',
- { class: `${o}-date-panel-actions` },
- h(
- 'div',
- { class: `${o}-date-panel-actions__prefix` },
- a &&
- Object.keys(a).map(f => {
- const v = a[f];
- return Array.isArray(v)
- ? null
- : h(
- ji,
- {
- size: 'tiny',
- onMouseenter: () => {
- this.handleSingleShortcutMouseenter(v);
- },
- onClick: () => {
- this.handleSingleShortcutClick(v);
- },
- onMouseleave: () => {
- this.handleShortcutMouseleave();
- }
- },
- { default: () => f }
- );
- })
- ),
- h(
- 'div',
- { class: `${o}-date-panel-actions__suffix` },
- !((t = this.actions) === null || t === void 0) &&
- t.includes('clear')
- ? h(
- nr,
- {
- theme: i.peers.Button,
- themeOverrides: i.peerOverrides.Button,
- size: 'tiny',
- onClick: this.clearSelectedDateTime
- },
- { default: () => this.locale.clear }
- )
- : null,
- !((n = this.actions) === null || n === void 0) &&
- n.includes('now')
- ? h(
- nr,
- {
- theme: i.peers.Button,
- themeOverrides: i.peerOverrides.Button,
- size: 'tiny',
- onClick: this.handleNowClick
- },
- { default: () => this.locale.now }
- )
- : null,
- !((r = this.actions) === null || r === void 0) &&
- r.includes('confirm')
- ? h(
- nr,
- {
- theme: i.peers.Button,
- themeOverrides: i.peerOverrides.Button,
- size: 'tiny',
- type: 'primary',
- disabled: this.isDateInvalid,
- onClick: this.handleConfirmClick
- },
- { default: () => this.locale.confirm }
- )
- : null
- )
- )
- : null,
- h(_l, { onFocus: this.handleFocusDetectorFocus })
- )
- );
- }
- }),
- Ly = Object.assign(Object.assign({}, _3), {
- defaultCalendarStartTime: Number,
- defaultCalendarEndTime: Number,
- bindCalendarMonths: Boolean,
- actions: { type: Array, default: () => ['clear', 'confirm'] }
- });
- function Ny(e, t) {
- var n, r;
- const {
- isDateDisabledRef: o,
- isStartHourDisabledRef: i,
- isEndHourDisabledRef: a,
- isStartMinuteDisabledRef: s,
- isEndMinuteDisabledRef: c,
- isStartSecondDisabledRef: d,
- isEndSecondDisabledRef: f,
- isStartDateInvalidRef: v,
- isEndDateInvalidRef: p,
- isStartTimeInvalidRef: m,
- isEndTimeInvalidRef: g,
- isStartValueInvalidRef: w,
- isEndValueInvalidRef: x,
- isRangeInvalidRef: y,
- localeRef: C,
- rangesRef: R,
- closeOnSelectRef: S,
- updateValueOnCloseRef: _,
- firstDayOfWeekRef: P,
- datePickerSlots: T
- } = Ze(Gv),
- A = {
- isDateDisabled: o,
- isStartHourDisabled: i,
- isEndHourDisabled: a,
- isStartMinuteDisabled: s,
- isEndMinuteDisabled: c,
- isStartSecondDisabled: d,
- isEndSecondDisabled: f,
- isStartDateInvalid: v,
- isEndDateInvalid: p,
- isStartTimeInvalid: m,
- isEndTimeInvalid: g,
- isStartValueInvalid: w,
- isEndValueInvalid: x,
- isRangeInvalid: y
- },
- z = R3(e),
- k = Z(null),
- M = Z(null),
- E = Z(null),
- D = Z(null),
- L = Z(null),
- j = Z(null),
- B = Z(null),
- q = Z(null),
- { value: G } = e,
- ne =
- (n = e.defaultCalendarStartTime) !== null && n !== void 0
- ? n
- : Array.isArray(G) && typeof G[0] == 'number'
- ? G[0]
- : Date.now(),
- X = Z(ne),
- J = Z(
- (r = e.defaultCalendarEndTime) !== null && r !== void 0
- ? r
- : Array.isArray(G) && typeof G[1] == 'number'
- ? G[1]
- : ht(Fr(ne, 1))
- );
- dt(!0);
- const re = Z(Date.now()),
- ce = Z(!1),
- pe = Z(0),
- Fe = I(() => e.dateFormat || C.value.dateFormat),
- Ie = Z(Array.isArray(G) ? Xn(G[0], Fe.value, z.dateFnsOptions.value) : ''),
- le = Z(Array.isArray(G) ? Xn(G[1], Fe.value, z.dateFnsOptions.value) : ''),
- me = I(() => (ce.value ? 'end' : 'start')),
- he = I(() => {
- var ke;
- return fb(
- X.value,
- e.value,
- re.value,
- (ke = P.value) !== null && ke !== void 0 ? ke : C.value.firstDayOfWeek
- );
- }),
- ue = I(() => {
- var ke;
- return fb(
- J.value,
- e.value,
- re.value,
- (ke = P.value) !== null && ke !== void 0 ? ke : C.value.firstDayOfWeek
- );
- }),
- Ae = I(() =>
- he.value.slice(0, 7).map(ke => {
- const { ts: Je } = ke;
- return Xn(Je, C.value.dayFormat, z.dateFnsOptions.value);
- })
- ),
- W = I(() => Xn(X.value, C.value.monthFormat, z.dateFnsOptions.value)),
- Q = I(() => Xn(J.value, C.value.monthFormat, z.dateFnsOptions.value)),
- ee = I(() => Xn(X.value, C.value.yearFormat, z.dateFnsOptions.value)),
- ve = I(() => Xn(J.value, C.value.yearFormat, z.dateFnsOptions.value)),
- oe = I(() => {
- const { value: ke } = e;
- return Array.isArray(ke) ? ke[0] : null;
- }),
- H = I(() => {
- const { value: ke } = e;
- return Array.isArray(ke) ? ke[1] : null;
- }),
- ae = I(() => {
- const { shortcuts: ke } = e;
- return ke || R.value;
- }),
- ge = I(() => pb(fc(e.value, 'start'), re.value)),
- Ce = I(() => pb(fc(e.value, 'end'), re.value)),
- se = I(() => {
- const ke = fc(e.value, 'start');
- return vb(ke != null ? ke : Date.now(), ke, re.value);
- }),
- Se = I(() => {
- const ke = fc(e.value, 'end');
- return vb(ke != null ? ke : Date.now(), ke, re.value);
- }),
- Ne = I(() => {
- const ke = fc(e.value, 'start');
- return hb(ke != null ? ke : Date.now(), ke, re.value);
- }),
- Ge = I(() => {
- const ke = fc(e.value, 'end');
- return hb(ke != null ? ke : Date.now(), ke, re.value);
- });
- $t(
- I(() => e.value),
- ke => {
- if (ke !== null && Array.isArray(ke)) {
- const [Je, vt] = ke;
- (Ie.value = Xn(Je, Fe.value, z.dateFnsOptions.value)),
- (le.value = Xn(vt, Fe.value, z.dateFnsOptions.value)),
- ce.value || Ue(ke);
- } else (Ie.value = ''), (le.value = '');
- }
- );
- function it(ke, Je) {
- (t === 'daterange' || t === 'datetimerange') &&
- (Jn(ke) !== Jn(Je) || Yn(ke) !== Yn(Je)) &&
- z.disableTransitionOneTick();
- }
- $t(X, it), $t(J, it);
- function dt(ke) {
- const Je = pa(X.value),
- vt = pa(J.value);
- (e.bindCalendarMonths || Je >= vt) &&
- (ke ? (J.value = ht(Fr(Je, 1))) : (X.value = ht(Fr(vt, -1))));
- }
- function xt() {
- (X.value = ht(Fr(X.value, 12))), dt(!0);
- }
- function Me() {
- (X.value = ht(Fr(X.value, -12))), dt(!0);
- }
- function ut() {
- (X.value = ht(Fr(X.value, 1))), dt(!0);
- }
- function wt() {
- (X.value = ht(Fr(X.value, -1))), dt(!0);
- }
- function Lt() {
- (J.value = ht(Fr(J.value, 12))), dt(!1);
- }
- function ot() {
- (J.value = ht(Fr(J.value, -12))), dt(!1);
- }
- function ct() {
- (J.value = ht(Fr(J.value, 1))), dt(!1);
- }
- function Xe() {
- (J.value = ht(Fr(J.value, -1))), dt(!1);
- }
- function Qe(ke) {
- (X.value = ke), dt(!0);
- }
- function ie(ke) {
- (J.value = ke), dt(!1);
- }
- function $e(ke) {
- const Je = o.value;
- if (!Je) return !1;
- if (!Array.isArray(e.value) || me.value === 'start')
- return Je(ke, 'start', null);
- {
- const { value: vt } = pe;
- return ke < pe.value
- ? Je(ke, 'start', [vt, vt])
- : Je(ke, 'end', [vt, vt]);
- }
- }
- function Ue(ke) {
- if (ke === null) return;
- const [Je, vt] = ke;
- (X.value = Je),
- pa(vt) <= pa(Je) ? (J.value = ht(pa(Fr(Je, 1)))) : (J.value = ht(pa(vt)));
- }
- function lt(ke) {
- if (!ce.value)
- (ce.value = !0), (pe.value = ke.ts), _e(ke.ts, ke.ts, 'done');
- else {
- ce.value = !1;
- const { value: Je } = e;
- e.panel && Array.isArray(Je)
- ? _e(Je[0], Je[1], 'done')
- : S.value && t === 'daterange' && (_.value ? He() : be());
- }
- }
- function st(ke) {
- if (ce.value) {
- if ($e(ke.ts)) return;
- ke.ts >= pe.value
- ? _e(pe.value, ke.ts, 'wipPreview')
- : _e(ke.ts, pe.value, 'wipPreview');
- }
- }
- function be() {
- y.value || (z.doConfirm(), He());
- }
- function He() {
- (ce.value = !1), e.active && z.doClose();
- }
- function tt(ke) {
- typeof ke != 'number' && (ke = ht(ke)),
- e.value === null
- ? z.doUpdateValue([ke, ke], e.panel)
- : Array.isArray(e.value) &&
- z.doUpdateValue([ke, Math.max(e.value[1], ke)], e.panel);
- }
- function pt(ke) {
- typeof ke != 'number' && (ke = ht(ke)),
- e.value === null
- ? z.doUpdateValue([ke, ke], e.panel)
- : Array.isArray(e.value) &&
- z.doUpdateValue([Math.min(e.value[0], ke), ke], e.panel);
- }
- function _e(ke, Je, vt) {
- if ((typeof ke != 'number' && (ke = ht(ke)), vt !== 'shortcutPreview')) {
- let Ut, dn;
- if (t === 'datetimerange') {
- const { defaultTime: nn } = e;
- Array.isArray(nn)
- ? ((Ut = Fh(nn[0])), (dn = Fh(nn[1])))
- : ((Ut = Fh(nn)), (dn = Ut));
- }
- Ut && (ke = ht(Br(ke, Ut))), dn && (Je = ht(Br(Je, dn)));
- }
- z.doUpdateValue([ke, Je], e.panel && vt === 'done');
- }
- function Ve(ke) {
- return ht(
- t === 'datetimerange' ? my(ke) : t === 'monthrange' ? pa(ke) : ev(ke)
- );
- }
- function nt(ke) {
- const Je = wo(ke, Fe.value, new Date(), z.dateFnsOptions.value);
- if (Xo(Je))
- if (e.value) {
- if (Array.isArray(e.value)) {
- const vt = Br(e.value[0], {
- year: Jn(Je),
- month: Yn(Je),
- date: li(Je)
- });
- tt(Ve(ht(vt)));
- }
- } else {
- const vt = Br(new Date(), {
- year: Jn(Je),
- month: Yn(Je),
- date: li(Je)
- });
- tt(Ve(ht(vt)));
- }
- else Ie.value = ke;
- }
- function Ot(ke) {
- const Je = wo(ke, Fe.value, new Date(), z.dateFnsOptions.value);
- if (Xo(Je)) {
- if (e.value === null) {
- const vt = Br(new Date(), {
- year: Jn(Je),
- month: Yn(Je),
- date: li(Je)
- });
- pt(Ve(ht(vt)));
- } else if (Array.isArray(e.value)) {
- const vt = Br(e.value[1], {
- year: Jn(Je),
- month: Yn(Je),
- date: li(Je)
- });
- pt(Ve(ht(vt)));
- }
- } else le.value = ke;
- }
- function $n() {
- const ke = wo(Ie.value, Fe.value, new Date(), z.dateFnsOptions.value),
- { value: Je } = e;
- if (Xo(ke)) {
- if (Je === null) {
- const vt = Br(new Date(), {
- year: Jn(ke),
- month: Yn(ke),
- date: li(ke)
- });
- tt(Ve(ht(vt)));
- } else if (Array.isArray(Je)) {
- const vt = Br(Je[0], { year: Jn(ke), month: Yn(ke), date: li(ke) });
- tt(Ve(ht(vt)));
- }
- } else Zt();
- }
- function jn() {
- const ke = wo(le.value, Fe.value, new Date(), z.dateFnsOptions.value),
- { value: Je } = e;
- if (Xo(ke)) {
- if (Je === null) {
- const vt = Br(new Date(), {
- year: Jn(ke),
- month: Yn(ke),
- date: li(ke)
- });
- pt(Ve(ht(vt)));
- } else if (Array.isArray(Je)) {
- const vt = Br(Je[1], { year: Jn(ke), month: Yn(ke), date: li(ke) });
- pt(Ve(ht(vt)));
- }
- } else Zt();
- }
- function Zt(ke) {
- const { value: Je } = e;
- if (Je === null || !Array.isArray(Je)) {
- (Ie.value = ''), (le.value = '');
- return;
- }
- ke === void 0 && (ke = Je),
- (Ie.value = Xn(ke[0], Fe.value, z.dateFnsOptions.value)),
- (le.value = Xn(ke[1], Fe.value, z.dateFnsOptions.value));
- }
- function we(ke) {
- ke !== null && tt(ke);
- }
- function je(ke) {
- ke !== null && pt(ke);
- }
- function Ct(ke) {
- z.cachePendingValue();
- const Je = z.getShortcutValue(ke);
- Array.isArray(Je) && _e(Je[0], Je[1], 'shortcutPreview');
- }
- function qt(ke) {
- const Je = z.getShortcutValue(ke);
- Array.isArray(Je) &&
- (_e(Je[0], Je[1], 'done'), z.clearPendingValue(), be());
- }
- function xe(ke, Je) {
- const vt = ke === void 0 ? e.value : ke;
- if (ke === void 0 || Je === 'start') {
- if (B.value) {
- const Ut = Array.isArray(vt) ? Yn(vt[0]) : Yn(Date.now());
- B.value.scrollTo({ debounce: !1, index: Ut, elSize: _s });
- }
- if (L.value) {
- const Ut = (Array.isArray(vt) ? Jn(vt[0]) : Jn(Date.now())) - cv;
- L.value.scrollTo({ index: Ut, debounce: !1 });
- }
- }
- if (ke === void 0 || Je === 'end') {
- if (q.value) {
- const Ut = Array.isArray(vt) ? Yn(vt[1]) : Yn(Date.now());
- q.value.scrollTo({ debounce: !1, index: Ut, elSize: _s });
- }
- if (j.value) {
- const Ut = (Array.isArray(vt) ? Jn(vt[1]) : Jn(Date.now())) - cv;
- j.value.scrollTo({ index: Ut, debounce: !1 });
- }
- }
- }
- function De(ke, Je) {
- const { value: vt } = e,
- Ut = !Array.isArray(vt),
- dn =
- ke.type === 'year' && t !== 'yearrange'
- ? Ut
- ? Br(ke.ts, {
- month: Yn(t === 'quarterrange' ? Tu(new Date()) : new Date())
- }).valueOf()
- : Br(ke.ts, {
- month: Yn(
- t === 'quarterrange'
- ? Tu(vt[Je === 'start' ? 0 : 1])
- : vt[Je === 'start' ? 0 : 1]
- )
- }).valueOf()
- : ke.ts;
- if (Ut) {
- const Yt = Ve(dn),
- On = [Yt, Yt];
- z.doUpdateValue(On, e.panel),
- xe(On, 'start'),
- xe(On, 'end'),
- z.disableTransitionOneTick();
- return;
- }
- const nn = [vt[0], vt[1]];
- let kr = !1;
- switch (
- (Je === 'start'
- ? ((nn[0] = Ve(dn)), nn[0] > nn[1] && ((nn[1] = nn[0]), (kr = !0)))
- : ((nn[1] = Ve(dn)), nn[0] > nn[1] && ((nn[0] = nn[1]), (kr = !0))),
- z.doUpdateValue(nn, e.panel),
- t)
- ) {
- case 'monthrange':
- case 'quarterrange':
- z.disableTransitionOneTick(),
- kr ? (xe(nn, 'start'), xe(nn, 'end')) : xe(nn, Je);
- break;
- case 'yearrange':
- z.disableTransitionOneTick(), xe(nn, 'start'), xe(nn, 'end');
- }
- }
- function rt() {
- var ke;
- (ke = E.value) === null || ke === void 0 || ke.sync();
- }
- function ft() {
- var ke;
- (ke = D.value) === null || ke === void 0 || ke.sync();
- }
- function gt(ke) {
- var Je, vt;
- return ke === 'start'
- ? (Je = L.value) === null || Je === void 0
- ? void 0
- : Je.listElRef
- : (vt = j.value) === null || vt === void 0
- ? void 0
- : vt.listElRef;
- }
- function bn(ke) {
- var Je, vt;
- return ke === 'start'
- ? (Je = L.value) === null || Je === void 0
- ? void 0
- : Je.itemsElRef
- : (vt = j.value) === null || vt === void 0
- ? void 0
- : vt.itemsElRef;
- }
- const ln = {
- startYearVlRef: L,
- endYearVlRef: j,
- startMonthScrollbarRef: B,
- endMonthScrollbarRef: q,
- startYearScrollbarRef: E,
- endYearScrollbarRef: D
- };
- return Object.assign(
- Object.assign(
- Object.assign(
- Object.assign(
- {
- startDatesElRef: k,
- endDatesElRef: M,
- handleDateClick: lt,
- handleColItemClick: De,
- handleDateMouseEnter: st,
- handleConfirmClick: be,
- startCalendarPrevYear: Me,
- startCalendarPrevMonth: wt,
- startCalendarNextYear: xt,
- startCalendarNextMonth: ut,
- endCalendarPrevYear: ot,
- endCalendarPrevMonth: Xe,
- endCalendarNextMonth: ct,
- endCalendarNextYear: Lt,
- mergedIsDateDisabled: $e,
- changeStartEndTime: _e,
- ranges: R,
- startCalendarMonth: W,
- startCalendarYear: ee,
- endCalendarMonth: Q,
- endCalendarYear: ve,
- weekdays: Ae,
- startDateArray: he,
- endDateArray: ue,
- startYearArray: ge,
- startMonthArray: Ne,
- startQuarterArray: se,
- endYearArray: Ce,
- endMonthArray: Ge,
- endQuarterArray: Se,
- isSelecting: ce,
- handleRangeShortcutMouseenter: Ct,
- handleRangeShortcutClick: qt
- },
- z
- ),
- A
- ),
- ln
- ),
- {
- startDateDisplayString: Ie,
- endDateInput: le,
- timePickerSize: z.timePickerSize,
- startTimeValue: oe,
- endTimeValue: H,
- datePickerSlots: T,
- shortcuts: ae,
- startCalendarDateTime: X,
- endCalendarDateTime: J,
- justifyColumnsScrollState: xe,
- handleFocusDetectorFocus: z.handleFocusDetectorFocus,
- handleStartTimePickerChange: we,
- handleEndTimePickerChange: je,
- handleStartDateInput: nt,
- handleStartDateInputBlur: $n,
- handleEndDateInput: Ot,
- handleEndDateInputBlur: jn,
- handleStartYearVlScroll: rt,
- handleEndYearVlScroll: ft,
- virtualListContainer: gt,
- virtualListContent: bn,
- onUpdateStartCalendarValue: Qe,
- onUpdateEndCalendarValue: ie
- }
- );
- }
- const ZG = Re({
- name: 'DateTimeRangePanel',
- props: Ly,
- setup(e) {
- return Ny(e, 'datetimerange');
- },
- render() {
- var e, t, n;
- const {
- mergedClsPrefix: r,
- mergedTheme: o,
- shortcuts: i,
- timePickerProps: a,
- onRender: s,
- $slots: c
- } = this;
- return (
- s == null || s(),
- h(
- 'div',
- {
- ref: 'selfRef',
- tabindex: 0,
- class: [
- `${r}-date-panel`,
- `${r}-date-panel--datetimerange`,
- !this.panel && `${r}-date-panel--shadow`,
- this.themeClass
- ],
- onKeydown: this.handlePanelKeyDown,
- onFocus: this.handlePanelFocus
- },
- h(
- 'div',
- { class: `${r}-date-panel-header` },
- h(Yi, {
- value: this.startDateDisplayString,
- theme: o.peers.Input,
- themeOverrides: o.peerOverrides.Input,
- size: this.timePickerSize,
- stateful: !1,
- class: `${r}-date-panel-date-input`,
- textDecoration: this.isStartValueInvalid ? 'line-through' : '',
- placeholder: this.locale.selectDate,
- onBlur: this.handleStartDateInputBlur,
- onUpdateValue: this.handleStartDateInput
- }),
- h(
- uv,
- Object.assign(
- {
- placeholder: this.locale.selectTime,
- format: this.timeFormat,
- size: this.timePickerSize
- },
- Array.isArray(a) ? a[0] : a,
- {
- 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
- }
- )
- ),
- h(Yi, {
- value: this.endDateInput,
- theme: o.peers.Input,
- themeOverrides: o.peerOverrides.Input,
- stateful: !1,
- size: this.timePickerSize,
- class: `${r}-date-panel-date-input`,
- textDecoration: this.isEndValueInvalid ? 'line-through' : '',
- placeholder: this.locale.selectDate,
- onBlur: this.handleEndDateInputBlur,
- onUpdateValue: this.handleEndDateInput
- }),
- h(
- uv,
- Object.assign(
- {
- placeholder: this.locale.selectTime,
- format: this.timeFormat,
- size: this.timePickerSize
- },
- Array.isArray(a) ? a[1] : a,
- {
- 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
- }
- )
- )
- ),
- h(
- 'div',
- {
- ref: 'startDatesElRef',
- class: `${r}-date-panel-calendar ${r}-date-panel-calendar--start`
- },
- h(
- 'div',
- { class: `${r}-date-panel-month` },
- h(
- 'div',
- {
- class: `${r}-date-panel-month__fast-prev`,
- onClick: this.startCalendarPrevYear
- },
- Kt(c['prev-year'], () => [h(pl, null)])
- ),
- h(
- 'div',
- {
- class: `${r}-date-panel-month__prev`,
- onClick: this.startCalendarPrevMonth
- },
- Kt(c['prev-month'], () => [h(vl, null)])
- ),
- h(Dc, {
- monthBeforeYear: this.locale.monthBeforeYear,
- value: this.startCalendarDateTime,
- onUpdateValue: this.onUpdateStartCalendarValue,
- mergedClsPrefix: r,
- calendarMonth: this.startCalendarMonth,
- calendarYear: this.startCalendarYear
- }),
- h(
- 'div',
- {
- class: `${r}-date-panel-month__next`,
- onClick: this.startCalendarNextMonth
- },
- Kt(c['next-month'], () => [h(ml, null)])
- ),
- h(
- 'div',
- {
- class: `${r}-date-panel-month__fast-next`,
- onClick: this.startCalendarNextYear
- },
- Kt(c['next-year'], () => [h(gl, null)])
- )
- ),
- h(
- 'div',
- { class: `${r}-date-panel-weekdays` },
- this.weekdays.map(d =>
- h('div', { key: d, class: `${r}-date-panel-weekdays__day` }, d)
- )
- ),
- h('div', { class: `${r}-date-panel__divider` }),
- h(
- 'div',
- { class: `${r}-date-panel-dates` },
- this.startDateArray.map((d, f) => {
- const v = this.mergedIsDateDisabled(d.ts);
- return h(
- 'div',
- {
- 'data-n-date': !0,
- key: f,
- class: [
- `${r}-date-panel-date`,
- {
- [`${r}-date-panel-date--excluded`]: !d.inCurrentMonth,
- [`${r}-date-panel-date--current`]: d.isCurrentDate,
- [`${r}-date-panel-date--selected`]: d.selected,
- [`${r}-date-panel-date--covered`]: d.inSpan,
- [`${r}-date-panel-date--start`]: d.startOfSpan,
- [`${r}-date-panel-date--end`]: d.endOfSpan,
- [`${r}-date-panel-date--disabled`]: v
- }
- ],
- onClick: v
- ? void 0
- : () => {
- this.handleDateClick(d);
- },
- onMouseenter: v
- ? void 0
- : () => {
- this.handleDateMouseEnter(d);
- }
- },
- h('div', { class: `${r}-date-panel-date__trigger` }),
- d.dateObject.date,
- d.isCurrentDate
- ? h('div', { class: `${r}-date-panel-date__sup` })
- : null
- );
- })
- )
- ),
- h('div', { class: `${r}-date-panel__vertical-divider` }),
- h(
- 'div',
- {
- ref: 'endDatesElRef',
- class: `${r}-date-panel-calendar ${r}-date-panel-calendar--end`
- },
- h(
- 'div',
- { class: `${r}-date-panel-month` },
- h(
- 'div',
- {
- class: `${r}-date-panel-month__fast-prev`,
- onClick: this.endCalendarPrevYear
- },
- Kt(c['prev-year'], () => [h(pl, null)])
- ),
- h(
- 'div',
- {
- class: `${r}-date-panel-month__prev`,
- onClick: this.endCalendarPrevMonth
- },
- Kt(c['prev-month'], () => [h(vl, null)])
- ),
- h(Dc, {
- monthBeforeYear: this.locale.monthBeforeYear,
- value: this.endCalendarDateTime,
- onUpdateValue: this.onUpdateEndCalendarValue,
- mergedClsPrefix: r,
- calendarMonth: this.endCalendarMonth,
- calendarYear: this.endCalendarYear
- }),
- h(
- 'div',
- {
- class: `${r}-date-panel-month__next`,
- onClick: this.endCalendarNextMonth
- },
- Kt(c['next-month'], () => [h(ml, null)])
- ),
- h(
- 'div',
- {
- class: `${r}-date-panel-month__fast-next`,
- onClick: this.endCalendarNextYear
- },
- Kt(c['next-year'], () => [h(gl, null)])
- )
- ),
- h(
- 'div',
- { class: `${r}-date-panel-weekdays` },
- this.weekdays.map(d =>
- h('div', { key: d, class: `${r}-date-panel-weekdays__day` }, d)
- )
- ),
- h('div', { class: `${r}-date-panel__divider` }),
- h(
- 'div',
- { class: `${r}-date-panel-dates` },
- this.endDateArray.map((d, f) => {
- const v = this.mergedIsDateDisabled(d.ts);
- return h(
- 'div',
- {
- 'data-n-date': !0,
- key: f,
- class: [
- `${r}-date-panel-date`,
- {
- [`${r}-date-panel-date--excluded`]: !d.inCurrentMonth,
- [`${r}-date-panel-date--current`]: d.isCurrentDate,
- [`${r}-date-panel-date--selected`]: d.selected,
- [`${r}-date-panel-date--covered`]: d.inSpan,
- [`${r}-date-panel-date--start`]: d.startOfSpan,
- [`${r}-date-panel-date--end`]: d.endOfSpan,
- [`${r}-date-panel-date--disabled`]: v
- }
- ],
- onClick: v
- ? void 0
- : () => {
- this.handleDateClick(d);
- },
- onMouseenter: v
- ? void 0
- : () => {
- this.handleDateMouseEnter(d);
- }
- },
- h('div', { class: `${r}-date-panel-date__trigger` }),
- d.dateObject.date,
- d.isCurrentDate
- ? h('div', { class: `${r}-date-panel-date__sup` })
- : null
- );
- })
- )
- ),
- this.datePickerSlots.footer
- ? h(
- 'div',
- { class: `${r}-date-panel-footer` },
- this.datePickerSlots.footer()
- )
- : null,
- (!((e = this.actions) === null || e === void 0) && e.length) || i
- ? h(
- 'div',
- { class: `${r}-date-panel-actions` },
- h(
- 'div',
- { class: `${r}-date-panel-actions__prefix` },
- i &&
- Object.keys(i).map(d => {
- const f = i[d];
- return Array.isArray(f) || typeof f == 'function'
- ? h(
- ji,
- {
- size: 'tiny',
- onMouseenter: () => {
- this.handleRangeShortcutMouseenter(f);
- },
- onClick: () => {
- this.handleRangeShortcutClick(f);
- },
- onMouseleave: () => {
- this.handleShortcutMouseleave();
- }
- },
- { default: () => d }
- )
- : null;
- })
- ),
- h(
- 'div',
- { class: `${r}-date-panel-actions__suffix` },
- !((t = this.actions) === null || t === void 0) &&
- t.includes('clear')
- ? h(
- nr,
- {
- theme: o.peers.Button,
- themeOverrides: o.peerOverrides.Button,
- size: 'tiny',
- onClick: this.handleClearClick
- },
- { default: () => this.locale.clear }
- )
- : null,
- !((n = this.actions) === null || n === void 0) &&
- n.includes('confirm')
- ? h(
- nr,
- {
- 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,
- h(_l, { onFocus: this.handleFocusDetectorFocus })
- )
- );
- }
- }),
- QG = Re({
- name: 'DatePanel',
- props: Fy,
- setup(e) {
- return By(e, 'date');
- },
- render() {
- var e, t, n;
- const {
- mergedClsPrefix: r,
- mergedTheme: o,
- shortcuts: i,
- onRender: a,
- $slots: s
- } = this;
- return (
- a == null || a(),
- h(
- 'div',
- {
- ref: 'selfRef',
- tabindex: 0,
- class: [
- `${r}-date-panel`,
- `${r}-date-panel--date`,
- !this.panel && `${r}-date-panel--shadow`,
- this.themeClass
- ],
- onFocus: this.handlePanelFocus,
- onKeydown: this.handlePanelKeyDown
- },
- h(
- 'div',
- { class: `${r}-date-panel-calendar` },
- h(
- 'div',
- { class: `${r}-date-panel-month` },
- h(
- 'div',
- {
- class: `${r}-date-panel-month__fast-prev`,
- onClick: this.prevYear
- },
- Kt(s['prev-year'], () => [h(pl, null)])
- ),
- h(
- 'div',
- {
- class: `${r}-date-panel-month__prev`,
- onClick: this.prevMonth
- },
- Kt(s['prev-month'], () => [h(vl, null)])
- ),
- h(Dc, {
- monthBeforeYear: this.locale.monthBeforeYear,
- value: this.calendarValue,
- onUpdateValue: this.onUpdateCalendarValue,
- mergedClsPrefix: r,
- calendarMonth: this.calendarMonth,
- calendarYear: this.calendarYear
- }),
- h(
- 'div',
- {
- class: `${r}-date-panel-month__next`,
- onClick: this.nextMonth
- },
- Kt(s['next-month'], () => [h(ml, null)])
- ),
- h(
- 'div',
- {
- class: `${r}-date-panel-month__fast-next`,
- onClick: this.nextYear
- },
- Kt(s['next-year'], () => [h(gl, null)])
- )
- ),
- h(
- 'div',
- { class: `${r}-date-panel-weekdays` },
- this.weekdays.map(c =>
- h('div', { key: c, class: `${r}-date-panel-weekdays__day` }, c)
- )
- ),
- h(
- 'div',
- { class: `${r}-date-panel-dates` },
- this.dateArray.map((c, d) =>
- h(
- 'div',
- {
- 'data-n-date': !0,
- key: d,
- class: [
- `${r}-date-panel-date`,
- {
- [`${r}-date-panel-date--current`]: c.isCurrentDate,
- [`${r}-date-panel-date--selected`]: c.selected,
- [`${r}-date-panel-date--excluded`]: !c.inCurrentMonth,
- [`${r}-date-panel-date--disabled`]:
- this.mergedIsDateDisabled(c.ts)
- }
- ],
- onClick: () => {
- this.handleDateClick(c);
- }
- },
- h('div', { class: `${r}-date-panel-date__trigger` }),
- c.dateObject.date,
- c.isCurrentDate
- ? h('div', { class: `${r}-date-panel-date__sup` })
- : null
- )
- )
- )
- ),
- this.datePickerSlots.footer
- ? h(
- 'div',
- { class: `${r}-date-panel-footer` },
- this.datePickerSlots.footer()
- )
- : null,
- (!((e = this.actions) === null || e === void 0) && e.length) || i
- ? h(
- 'div',
- { class: `${r}-date-panel-actions` },
- h(
- 'div',
- { class: `${r}-date-panel-actions__prefix` },
- i &&
- Object.keys(i).map(c => {
- const d = i[c];
- return Array.isArray(d)
- ? null
- : h(
- ji,
- {
- size: 'tiny',
- onMouseenter: () => {
- this.handleSingleShortcutMouseenter(d);
- },
- onClick: () => {
- this.handleSingleShortcutClick(d);
- },
- onMouseleave: () => {
- this.handleShortcutMouseleave();
- }
- },
- { default: () => c }
- );
- })
- ),
- h(
- 'div',
- { class: `${r}-date-panel-actions__suffix` },
- !((t = this.actions) === null || t === void 0) &&
- t.includes('clear')
- ? h(
- nr,
- {
- theme: o.peers.Button,
- themeOverrides: o.peerOverrides.Button,
- size: 'tiny',
- onClick: this.handleClearClick
- },
- { default: () => this.locale.clear }
- )
- : null,
- !((n = this.actions) === null || n === void 0) &&
- n.includes('now')
- ? h(
- nr,
- {
- theme: o.peers.Button,
- themeOverrides: o.peerOverrides.Button,
- size: 'tiny',
- onClick: this.handleNowClick
- },
- { default: () => this.locale.now }
- )
- : null
- )
- )
- : null,
- h(_l, { onFocus: this.handleFocusDetectorFocus })
- )
- );
- }
- }),
- JG = Re({
- name: 'DateRangePanel',
- props: Ly,
- setup(e) {
- return Ny(e, 'daterange');
- },
- render() {
- var e, t, n;
- const {
- mergedClsPrefix: r,
- mergedTheme: o,
- shortcuts: i,
- onRender: a,
- $slots: s
- } = this;
- return (
- a == null || a(),
- h(
- 'div',
- {
- ref: 'selfRef',
- tabindex: 0,
- class: [
- `${r}-date-panel`,
- `${r}-date-panel--daterange`,
- !this.panel && `${r}-date-panel--shadow`,
- this.themeClass
- ],
- onKeydown: this.handlePanelKeyDown,
- onFocus: this.handlePanelFocus
- },
- h(
- 'div',
- {
- ref: 'startDatesElRef',
- class: `${r}-date-panel-calendar ${r}-date-panel-calendar--start`
- },
- h(
- 'div',
- { class: `${r}-date-panel-month` },
- h(
- 'div',
- {
- class: `${r}-date-panel-month__fast-prev`,
- onClick: this.startCalendarPrevYear
- },
- Kt(s['prev-year'], () => [h(pl, null)])
- ),
- h(
- 'div',
- {
- class: `${r}-date-panel-month__prev`,
- onClick: this.startCalendarPrevMonth
- },
- Kt(s['prev-month'], () => [h(vl, null)])
- ),
- h(Dc, {
- monthBeforeYear: this.locale.monthBeforeYear,
- value: this.startCalendarDateTime,
- onUpdateValue: this.onUpdateStartCalendarValue,
- mergedClsPrefix: r,
- calendarMonth: this.startCalendarMonth,
- calendarYear: this.startCalendarYear
- }),
- h(
- 'div',
- {
- class: `${r}-date-panel-month__next`,
- onClick: this.startCalendarNextMonth
- },
- Kt(s['next-month'], () => [h(ml, null)])
- ),
- h(
- 'div',
- {
- class: `${r}-date-panel-month__fast-next`,
- onClick: this.startCalendarNextYear
- },
- Kt(s['next-year'], () => [h(gl, null)])
- )
- ),
- h(
- 'div',
- { class: `${r}-date-panel-weekdays` },
- this.weekdays.map(c =>
- h('div', { key: c, class: `${r}-date-panel-weekdays__day` }, c)
- )
- ),
- h('div', { class: `${r}-date-panel__divider` }),
- h(
- 'div',
- { class: `${r}-date-panel-dates` },
- this.startDateArray.map((c, d) =>
- h(
- 'div',
- {
- 'data-n-date': !0,
- key: d,
- class: [
- `${r}-date-panel-date`,
- {
- [`${r}-date-panel-date--excluded`]: !c.inCurrentMonth,
- [`${r}-date-panel-date--current`]: c.isCurrentDate,
- [`${r}-date-panel-date--selected`]: c.selected,
- [`${r}-date-panel-date--covered`]: c.inSpan,
- [`${r}-date-panel-date--start`]: c.startOfSpan,
- [`${r}-date-panel-date--end`]: c.endOfSpan,
- [`${r}-date-panel-date--disabled`]:
- this.mergedIsDateDisabled(c.ts)
- }
- ],
- onClick: () => {
- this.handleDateClick(c);
- },
- onMouseenter: () => {
- this.handleDateMouseEnter(c);
- }
- },
- h('div', { class: `${r}-date-panel-date__trigger` }),
- c.dateObject.date,
- c.isCurrentDate
- ? h('div', { class: `${r}-date-panel-date__sup` })
- : null
- )
- )
- )
- ),
- h('div', { class: `${r}-date-panel__vertical-divider` }),
- h(
- 'div',
- {
- ref: 'endDatesElRef',
- class: `${r}-date-panel-calendar ${r}-date-panel-calendar--end`
- },
- h(
- 'div',
- { class: `${r}-date-panel-month` },
- h(
- 'div',
- {
- class: `${r}-date-panel-month__fast-prev`,
- onClick: this.endCalendarPrevYear
- },
- Kt(s['prev-year'], () => [h(pl, null)])
- ),
- h(
- 'div',
- {
- class: `${r}-date-panel-month__prev`,
- onClick: this.endCalendarPrevMonth
- },
- Kt(s['prev-month'], () => [h(vl, null)])
- ),
- h(Dc, {
- monthBeforeYear: this.locale.monthBeforeYear,
- value: this.endCalendarDateTime,
- onUpdateValue: this.onUpdateEndCalendarValue,
- mergedClsPrefix: r,
- calendarMonth: this.endCalendarMonth,
- calendarYear: this.endCalendarYear
- }),
- h(
- 'div',
- {
- class: `${r}-date-panel-month__next`,
- onClick: this.endCalendarNextMonth
- },
- Kt(s['next-month'], () => [h(ml, null)])
- ),
- h(
- 'div',
- {
- class: `${r}-date-panel-month__fast-next`,
- onClick: this.endCalendarNextYear
- },
- Kt(s['next-year'], () => [h(gl, null)])
- )
- ),
- h(
- 'div',
- { class: `${r}-date-panel-weekdays` },
- this.weekdays.map(c =>
- h('div', { key: c, class: `${r}-date-panel-weekdays__day` }, c)
- )
- ),
- h('div', { class: `${r}-date-panel__divider` }),
- h(
- 'div',
- { class: `${r}-date-panel-dates` },
- this.endDateArray.map((c, d) =>
- h(
- 'div',
- {
- 'data-n-date': !0,
- key: d,
- class: [
- `${r}-date-panel-date`,
- {
- [`${r}-date-panel-date--excluded`]: !c.inCurrentMonth,
- [`${r}-date-panel-date--current`]: c.isCurrentDate,
- [`${r}-date-panel-date--selected`]: c.selected,
- [`${r}-date-panel-date--covered`]: c.inSpan,
- [`${r}-date-panel-date--start`]: c.startOfSpan,
- [`${r}-date-panel-date--end`]: c.endOfSpan,
- [`${r}-date-panel-date--disabled`]:
- this.mergedIsDateDisabled(c.ts)
- }
- ],
- onClick: () => {
- this.handleDateClick(c);
- },
- onMouseenter: () => {
- this.handleDateMouseEnter(c);
- }
- },
- h('div', { class: `${r}-date-panel-date__trigger` }),
- c.dateObject.date,
- c.isCurrentDate
- ? h('div', { class: `${r}-date-panel-date__sup` })
- : null
- )
- )
- )
- ),
- this.datePickerSlots.footer
- ? h(
- 'div',
- { class: `${r}-date-panel-footer` },
- this.datePickerSlots.footer()
- )
- : null,
- (!((e = this.actions) === null || e === void 0) && e.length) || i
- ? h(
- 'div',
- { class: `${r}-date-panel-actions` },
- h(
- 'div',
- { class: `${r}-date-panel-actions__prefix` },
- i &&
- Object.keys(i).map(c => {
- const d = i[c];
- return Array.isArray(d) || typeof d == 'function'
- ? h(
- ji,
- {
- size: 'tiny',
- onMouseenter: () => {
- this.handleRangeShortcutMouseenter(d);
- },
- onClick: () => {
- this.handleRangeShortcutClick(d);
- },
- onMouseleave: () => {
- this.handleShortcutMouseleave();
- }
- },
- { default: () => c }
- )
- : null;
- })
- ),
- h(
- 'div',
- { class: `${r}-date-panel-actions__suffix` },
- !((t = this.actions) === null || t === void 0) &&
- t.includes('clear')
- ? h(
- nr,
- {
- theme: o.peers.Button,
- themeOverrides: o.peerOverrides.Button,
- size: 'tiny',
- onClick: this.handleClearClick
- },
- { default: () => this.locale.clear }
- )
- : null,
- !((n = this.actions) === null || n === void 0) &&
- n.includes('confirm')
- ? h(
- nr,
- {
- 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,
- h(_l, { onFocus: this.handleFocusDetectorFocus })
- )
- );
- }
- }),
- eX = Re({
- name: 'MonthRangePanel',
- props: Object.assign(Object.assign({}, Ly), {
- type: { type: String, required: !0 }
- }),
- setup(e) {
- const t = Ny(e, e.type),
- n = (r, o, i, a) => {
- const { handleColItemClick: s } = t,
- c = !1;
- return h(
- 'div',
- {
- 'data-n-date': !0,
- key: o,
- class: [
- `${i}-date-panel-month-calendar__picker-col-item`,
- {
- [`${i}-date-panel-month-calendar__picker-col-item--current`]:
- r.isCurrent,
- [`${i}-date-panel-month-calendar__picker-col-item--selected`]:
- r.selected,
- [`${i}-date-panel-month-calendar__picker-col-item--disabled`]:
- c
- }
- ],
- onClick: () => {
- s(r, a);
- }
- },
- r.type === 'month'
- ? r.dateObject.month + 1
- : r.type === 'quarter'
- ? `Q${r.dateObject.quarter}`
- : r.dateObject.year
- );
- };
- return (
- Hn(() => {
- t.justifyColumnsScrollState();
- }),
- Object.assign(Object.assign({}, t), { renderItem: n })
- );
- },
- render() {
- var e, t, n;
- const {
- mergedClsPrefix: r,
- mergedTheme: o,
- shortcuts: i,
- type: a,
- renderItem: s,
- onRender: c
- } = this;
- return (
- c == null || c(),
- h(
- 'div',
- {
- ref: 'selfRef',
- tabindex: 0,
- class: [
- `${r}-date-panel`,
- `${r}-date-panel--daterange`,
- !this.panel && `${r}-date-panel--shadow`,
- this.themeClass
- ],
- onKeydown: this.handlePanelKeyDown,
- onFocus: this.handlePanelFocus
- },
- h(
- 'div',
- {
- ref: 'startDatesElRef',
- class: `${r}-date-panel-calendar ${r}-date-panel-calendar--start`
- },
- h(
- 'div',
- { class: `${r}-date-panel-month-calendar` },
- h(
- yr,
- {
- ref: 'startYearScrollbarRef',
- class: `${r}-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: () =>
- h(
- Ac,
- {
- ref: 'startYearVlRef',
- items: this.startYearArray,
- itemSize: _s,
- showScrollbar: !1,
- keyField: 'ts',
- onScroll: this.handleStartYearVlScroll,
- paddingBottom: 4
- },
- {
- default: ({ item: d, index: f }) => s(d, f, r, 'start')
- }
- )
- }
- ),
- a === 'monthrange' || a === 'quarterrange'
- ? h(
- 'div',
- { class: `${r}-date-panel-month-calendar__picker-col` },
- h(
- yr,
- {
- ref: 'startMonthScrollbarRef',
- theme: o.peers.Scrollbar,
- themeOverrides: o.peerOverrides.Scrollbar
- },
- {
- default: () => [
- (a === 'monthrange'
- ? this.startMonthArray
- : this.startQuarterArray
- ).map((d, f) => s(d, f, r, 'start')),
- a === 'monthrange' &&
- h('div', {
- class: `${r}-date-panel-month-calendar__padding`
- })
- ]
- }
- )
- )
- : null
- )
- ),
- h('div', { class: `${r}-date-panel__vertical-divider` }),
- h(
- 'div',
- {
- ref: 'endDatesElRef',
- class: `${r}-date-panel-calendar ${r}-date-panel-calendar--end`
- },
- h(
- 'div',
- { class: `${r}-date-panel-month-calendar` },
- h(
- yr,
- {
- ref: 'endYearScrollbarRef',
- class: `${r}-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: () =>
- h(
- Ac,
- {
- ref: 'endYearVlRef',
- items: this.endYearArray,
- itemSize: _s,
- showScrollbar: !1,
- keyField: 'ts',
- onScroll: this.handleEndYearVlScroll,
- paddingBottom: 4
- },
- { default: ({ item: d, index: f }) => s(d, f, r, 'end') }
- )
- }
- ),
- a === 'monthrange' || a === 'quarterrange'
- ? h(
- 'div',
- { class: `${r}-date-panel-month-calendar__picker-col` },
- h(
- yr,
- {
- ref: 'endMonthScrollbarRef',
- theme: o.peers.Scrollbar,
- themeOverrides: o.peerOverrides.Scrollbar
- },
- {
- default: () => [
- (a === 'monthrange'
- ? this.endMonthArray
- : this.endQuarterArray
- ).map((d, f) => s(d, f, r, 'end')),
- a === 'monthrange' &&
- h('div', {
- class: `${r}-date-panel-month-calendar__padding`
- })
- ]
- }
- )
- )
- : null
- )
- ),
- this.datePickerSlots.footer
- ? h(
- 'div',
- { class: `${r}-date-panel-footer` },
- N0(this.datePickerSlots, 'footer')
- )
- : null,
- (!((e = this.actions) === null || e === void 0) && e.length) || i
- ? h(
- 'div',
- { class: `${r}-date-panel-actions` },
- h(
- 'div',
- { class: `${r}-date-panel-actions__prefix` },
- i &&
- Object.keys(i).map(d => {
- const f = i[d];
- return Array.isArray(f) || typeof f == 'function'
- ? h(
- ji,
- {
- size: 'tiny',
- onMouseenter: () => {
- this.handleRangeShortcutMouseenter(f);
- },
- onClick: () => {
- this.handleRangeShortcutClick(f);
- },
- onMouseleave: () => {
- this.handleShortcutMouseleave();
- }
- },
- { default: () => d }
- )
- : null;
- })
- ),
- h(
- 'div',
- { class: `${r}-date-panel-actions__suffix` },
- !((t = this.actions) === null || t === void 0) &&
- t.includes('clear')
- ? h(
- ji,
- {
- theme: o.peers.Button,
- themeOverrides: o.peerOverrides.Button,
- size: 'tiny',
- onClick: this.handleClearClick
- },
- { default: () => this.locale.clear }
- )
- : null,
- !((n = this.actions) === null || n === void 0) &&
- n.includes('confirm')
- ? h(
- ji,
- {
- theme: o.peers.Button,
- themeOverrides: o.peerOverrides.Button,
- size: 'tiny',
- type: 'primary',
- disabled: this.isRangeInvalid,
- onClick: this.handleConfirmClick
- },
- { default: () => this.locale.confirm }
- )
- : null
- )
- )
- : null,
- h(_l, { onFocus: this.handleFocusDetectorFocus })
- )
- );
- }
- }),
- tX = F([
- O(
- 'date-picker',
- `
- position: relative;
- z-index: auto;
- `,
- [
- O(
- 'date-picker-icon',
- `
- color: var(--n-icon-color-override);
- transition: color .3s var(--n-bezier);
- `
- ),
- O(
- 'icon',
- `
- color: var(--n-icon-color-override);
- transition: color .3s var(--n-bezier);
- `
- ),
- U('disabled', [
- O(
- 'date-picker-icon',
- `
- color: var(--n-icon-color-disabled-override);
- `
- ),
- O(
- 'icon',
- `
- color: var(--n-icon-color-disabled-override);
- `
- )
- ])
- ]
- ),
- O(
- 'date-panel',
- `
- width: fit-content;
- outline: none;
- margin: 4px 0;
- display: grid;
- grid-template-columns: 0fr;
- border-radius: var(--n-panel-border-radius);
- background-color: var(--n-panel-color);
- color: var(--n-panel-text-color);
- `,
- [
- gi(),
- U(
- 'shadow',
- `
- box-shadow: var(--n-panel-box-shadow);
- `
- ),
- O(
- 'date-panel-calendar',
- {
- padding: 'var(--n-calendar-left-padding)',
- display: 'grid',
- gridTemplateColumns: '1fr',
- gridArea: 'left-calendar'
- },
- [
- U('end', {
- padding: 'var(--n-calendar-right-padding)',
- gridArea: 'right-calendar'
- })
- ]
- ),
- O(
- 'date-panel-month-calendar',
- { display: 'flex', gridArea: 'left-calendar' },
- [
- V(
- 'picker-col',
- `
- min-width: var(--n-scroll-item-width);
- height: calc(var(--n-scroll-item-height) * 6);
- user-select: none;
- -webkit-user-select: none;
- `,
- [
- F(
- '&:first-child',
- `
- min-width: calc(var(--n-scroll-item-width) + 4px);
- `,
- [V('picker-col-item', [F('&::before', 'left: 4px;')])]
- ),
- V(
- 'padding',
- `
- height: calc(var(--n-scroll-item-height) * 5)
- `
- )
- ]
- ),
- V(
- 'picker-col-item',
- `
- z-index: 0;
- cursor: pointer;
- height: var(--n-scroll-item-height);
- box-sizing: border-box;
- padding-top: 4px;
- display: flex;
- align-items: center;
- justify-content: center;
- position: relative;
- transition:
- color .3s var(--n-bezier),
- background-color .3s var(--n-bezier);
- background: #0000;
- color: var(--n-item-text-color);
- `,
- [
- F(
- '&::before',
- `
- z-index: -1;
- content: "";
- position: absolute;
- left: 0;
- right: 4px;
- top: 4px;
- bottom: 0;
- border-radius: var(--n-scroll-item-border-radius);
- transition:
- background-color .3s var(--n-bezier);
- `
- ),
- jt('disabled', [
- F(
- '&:hover::before',
- `
- background-color: var(--n-item-color-hover);
- `
- ),
- U(
- 'selected',
- `
- color: var(--n-item-color-active);
- `,
- [
- F(
- '&::before',
- 'background-color: var(--n-item-color-hover);'
- )
- ]
- )
- ]),
- U(
- 'disabled',
- `
- color: var(--n-item-text-color-disabled);
- cursor: not-allowed;
- `,
- [
- U('selected', [
- F(
- '&::before',
- `
- background-color: var(--n-item-color-disabled);
- `
- )
- ])
- ]
- )
- ]
- )
- ]
- ),
- U('date', {
- gridTemplateAreas: `
- "left-calendar"
- "footer"
- "action"
- `
- }),
- U('daterange', {
- gridTemplateAreas: `
- "left-calendar divider right-calendar"
- "footer footer footer"
- "action action action"
- `
- }),
- U('datetime', {
- gridTemplateAreas: `
- "header"
- "left-calendar"
- "footer"
- "action"
- `
- }),
- U('datetimerange', {
- gridTemplateAreas: `
- "header header header"
- "left-calendar divider right-calendar"
- "footer footer footer"
- "action action action"
- `
- }),
- U('month', {
- gridTemplateAreas: `
- "left-calendar"
- "footer"
- "action"
- `
- }),
- O('date-panel-footer', { gridArea: 'footer' }),
- O('date-panel-actions', { gridArea: 'action' }),
- O('date-panel-header', { gridArea: 'header' }),
- O(
- 'date-panel-header',
- `
- box-sizing: border-box;
- width: 100%;
- align-items: center;
- padding: var(--n-panel-header-padding);
- display: flex;
- justify-content: space-between;
- border-bottom: 1px solid var(--n-panel-header-divider-color);
- `,
- [
- F('>', [
- F('*:not(:last-child)', { marginRight: '10px' }),
- F('*', { flex: 1, width: 0 }),
- O('time-picker', { zIndex: 1 })
- ])
- ]
- ),
- O(
- 'date-panel-month',
- `
- box-sizing: border-box;
- display: grid;
- grid-template-columns: var(--n-calendar-title-grid-template-columns);
- align-items: center;
- justify-items: center;
- padding: var(--n-calendar-title-padding);
- height: var(--n-calendar-title-height);
- `,
- [
- V(
- 'prev, next, fast-prev, fast-next',
- `
- line-height: 0;
- cursor: pointer;
- width: var(--n-arrow-size);
- height: var(--n-arrow-size);
- color: var(--n-arrow-color);
- `
- ),
- V(
- 'month-year',
- `
- user-select: none;
- -webkit-user-select: none;
- flex-grow: 1;
- position: relative;
- `,
- [
- V(
- 'text',
- `
- font-size: var(--n-calendar-title-font-size);
- line-height: var(--n-calendar-title-font-size);
- font-weight: var(--n-calendar-title-font-weight);
- padding: 6px 8px;
- text-align: center;
- color: var(--n-calendar-title-text-color);
- cursor: pointer;
- transition: background-color .3s var(--n-bezier);
- border-radius: var(--n-panel-border-radius);
- `,
- [
- U(
- 'active',
- `
- background-color: var(--n-calendar-title-color-hover);
- `
- ),
- F(
- '&:hover',
- `
- background-color: var(--n-calendar-title-color-hover);
- `
- )
- ]
- )
- ]
- )
- ]
- ),
- O(
- 'date-panel-weekdays',
- `
- display: grid;
- margin: auto;
- grid-template-columns: repeat(7, var(--n-item-cell-width));
- grid-template-rows: repeat(1, var(--n-item-cell-height));
- align-items: center;
- justify-items: center;
- margin-bottom: 4px;
- border-bottom: 1px solid var(--n-calendar-days-divider-color);
- `,
- [
- V(
- 'day',
- `
- user-select: none;
- -webkit-user-select: none;
- line-height: 15px;
- width: var(--n-item-size);
- text-align: center;
- font-size: var(--n-calendar-days-font-size);
- color: var(--n-item-text-color);
- `
- )
- ]
- ),
- O(
- 'date-panel-dates',
- `
- margin: auto;
- display: grid;
- grid-template-columns: repeat(7, var(--n-item-cell-width));
- grid-template-rows: repeat(6, var(--n-item-cell-height));
- align-items: center;
- justify-items: center;
- flex-wrap: wrap;
- `,
- [
- O(
- 'date-panel-date',
- `
- user-select: none;
- -webkit-user-select: none;
- position: relative;
- width: var(--n-item-size);
- height: var(--n-item-size);
- line-height: var(--n-item-size);
- text-align: center;
- font-size: var(--n-item-font-size);
- border-radius: var(--n-item-border-radius);
- z-index: 0;
- cursor: pointer;
- transition:
- background-color .2s var(--n-bezier),
- color .2s var(--n-bezier);
- `,
- [
- V(
- 'trigger',
- `
- position: absolute;
- left: calc(var(--n-item-size) / 2 - var(--n-item-cell-width) / 2);
- top: calc(var(--n-item-size) / 2 - var(--n-item-cell-height) / 2);
- width: var(--n-item-cell-width);
- height: var(--n-item-cell-height);
- `
- ),
- jt('disabled', [
- jt('selected', [
- F('&:hover', {
- backgroundColor: 'var(--n-item-color-hover)'
- })
- ])
- ]),
- U('current', [
- V(
- 'sup',
- `
- position: absolute;
- top: 2px;
- right: 2px;
- content: "";
- height: 4px;
- width: 4px;
- border-radius: 2px;
- background-color: var(--n-item-color-active);
- transition:
- background-color .2s var(--n-bezier);
- `
- )
- ]),
- F(
- '&::after',
- `
- content: "";
- z-index: -1;
- position: absolute;
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- border-radius: inherit;
- transition: background-color .3s var(--n-bezier);
- `
- ),
- U('covered, start, end', [
- jt('excluded', [
- F(
- '&::before',
- `
- content: "";
- z-index: -2;
- position: absolute;
- left: calc((var(--n-item-size) - var(--n-item-cell-width)) / 2);
- right: calc((var(--n-item-size) - var(--n-item-cell-width)) / 2);
- top: 0;
- bottom: 0;
- background-color: var(--n-item-color-included);
- `
- ),
- F('&:nth-child(7n + 1)::before', {
- borderTopLeftRadius: 'var(--n-item-border-radius)',
- borderBottomLeftRadius: 'var(--n-item-border-radius)'
- }),
- F('&:nth-child(7n + 7)::before', {
- borderTopRightRadius: 'var(--n-item-border-radius)',
- borderBottomRightRadius: 'var(--n-item-border-radius)'
- })
- ])
- ]),
- U('selected', { color: 'var(--n-item-text-color-active)' }, [
- F('&::after', {
- backgroundColor: 'var(--n-item-color-active)'
- }),
- U('start', [F('&::before', { left: '50%' })]),
- U('end', [F('&::before', { right: '50%' })]),
- V('sup', { backgroundColor: 'var(--n-panel-color)' })
- ]),
- U('excluded', { color: 'var(--n-item-text-color-disabled)' }, [
- U('selected', [
- F('&::after', {
- backgroundColor: 'var(--n-item-color-disabled)'
- })
- ])
- ]),
- U(
- 'disabled',
- {
- cursor: 'not-allowed',
- color: 'var(--n-item-text-color-disabled)'
- },
- [
- U('covered', [
- F('&::before', {
- backgroundColor: 'var(--n-item-color-disabled)'
- })
- ]),
- U('selected', [
- F('&::before', {
- backgroundColor: 'var(--n-item-color-disabled)'
- }),
- F('&::after', {
- backgroundColor: 'var(--n-item-color-disabled)'
- })
- ])
- ]
- )
- ]
- )
- ]
- ),
- V(
- 'vertical-divider',
- `
- grid-area: divider;
- height: 100%;
- width: 1px;
- background-color: var(--n-calendar-divider-color);
- `
- ),
- O('date-panel-footer', {
- borderTop: '1px solid var(--n-panel-action-divider-color)',
- padding: 'var(--n-panel-extra-footer-padding)'
- }),
- O(
- 'date-panel-actions',
- `
- flex: 1;
- padding: var(--n-panel-action-padding);
- display: flex;
- align-items: center;
- justify-content: space-between;
- border-top: 1px solid var(--n-panel-action-divider-color);
- `,
- [
- V(
- 'prefix, suffix',
- `
- display: flex;
- margin-bottom: -8px;
- `
- ),
- V(
- 'suffix',
- `
- align-self: flex-end;
- `
- ),
- V(
- 'prefix',
- `
- flex-wrap: wrap;
- `
- ),
- O(
- 'button',
- `
- margin-bottom: 8px;
- `,
- [
- F(
- '&:not(:last-child)',
- `
- margin-right: 8px;
- `
- )
- ]
- )
- ]
- )
- ]
- ),
- F('[data-n-date].transition-disabled', { transition: 'none !important' }, [
- F('&::before, &::after', { transition: 'none !important' })
- ])
- ]),
- nX = Object.assign(Object.assign({}, Ke.props), {
- to: Yr.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]
- }),
- rX = Re({
- name: 'DatePicker',
- props: nX,
- setup(e, { slots: t }) {
- var n;
- const { localeRef: r, dateLocaleRef: o } = ka('DatePicker'),
- i = ei(e),
- { mergedSizeRef: a, mergedDisabledRef: s, mergedStatusRef: c } = i,
- {
- mergedComponentPropsRef: d,
- mergedClsPrefixRef: f,
- mergedBorderedRef: v,
- namespaceRef: p,
- inlineThemeDisabled: m
- } = yt(e),
- g = Z(null),
- w = Z(null),
- x = Z(null),
- y = Z(!1),
- C = Ee(e, 'show'),
- R = An(C, y),
- S = I(() => ({ locale: o.value.locale })),
- _ = I(() => {
- const { format: be } = e;
- if (be) return be;
- switch (e.type) {
- case 'date':
- case 'daterange':
- return r.value.dateFormat;
- case 'datetime':
- case 'datetimerange':
- return r.value.dateTimeFormat;
- case 'year':
- case 'yearrange':
- return r.value.yearTypeFormat;
- case 'month':
- case 'monthrange':
- return r.value.monthTypeFormat;
- case 'quarter':
- case 'quarterrange':
- return r.value.quarterFormat;
- }
- }),
- P = I(() => {
- var be;
- return (be = e.valueFormat) !== null && be !== void 0 ? be : _.value;
- });
- function T(be) {
- if (be === null) return null;
- const { value: He } = P,
- { value: tt } = S;
- return Array.isArray(be)
- ? [
- wo(be[0], He, new Date(), tt).getTime(),
- wo(be[1], He, new Date(), tt).getTime()
- ]
- : wo(be, He, new Date(), tt).getTime();
- }
- const { defaultFormattedValue: A, defaultValue: z } = e,
- k = Z(
- (n = A !== void 0 ? T(A) : z) !== null && n !== void 0 ? n : null
- ),
- M = I(() => {
- const { formattedValue: be } = e;
- return be !== void 0 ? T(be) : e.value;
- }),
- E = An(M, k),
- D = Z(null);
- Bn(() => {
- D.value = E.value;
- });
- const L = Z(''),
- j = Z(''),
- B = Z(''),
- q = Ke('DatePicker', '-date-picker', tX, TY, e, f),
- G = I(() => {
- var be, He;
- return (
- ((He =
- (be = d == null ? void 0 : d.value) === null || be === void 0
- ? void 0
- : be.DatePicker) === null || He === void 0
- ? void 0
- : He.timePickerSize) || 'small'
- );
- }),
- ne = I(() =>
- [
- 'daterange',
- 'datetimerange',
- 'monthrange',
- 'quarterrange',
- 'yearrange'
- ].includes(e.type)
- ),
- X = I(() => {
- const { placeholder: be } = e;
- if (be === void 0) {
- const { type: He } = e;
- switch (He) {
- case 'date':
- return r.value.datePlaceholder;
- case 'datetime':
- return r.value.datetimePlaceholder;
- case 'month':
- return r.value.monthPlaceholder;
- case 'year':
- return r.value.yearPlaceholder;
- case 'quarter':
- return r.value.quarterPlaceholder;
- default:
- return '';
- }
- } else return be;
- }),
- J = I(() =>
- e.startPlaceholder === void 0
- ? e.type === 'daterange'
- ? r.value.startDatePlaceholder
- : e.type === 'datetimerange'
- ? r.value.startDatetimePlaceholder
- : e.type === 'monthrange'
- ? r.value.startMonthPlaceholder
- : ''
- : e.startPlaceholder
- ),
- re = I(() =>
- e.endPlaceholder === void 0
- ? e.type === 'daterange'
- ? r.value.endDatePlaceholder
- : e.type === 'datetimerange'
- ? r.value.endDatetimePlaceholder
- : e.type === 'monthrange'
- ? r.value.endMonthPlaceholder
- : ''
- : e.endPlaceholder
- ),
- ce = I(() => {
- const { actions: be, type: He, clearable: tt } = e;
- if (be === null) return [];
- if (be !== void 0) return be;
- const pt = tt ? ['clear'] : [];
- switch (He) {
- case 'date':
- return pt.push('now'), pt;
- case 'datetime':
- return pt.push('now', 'confirm'), pt;
- case 'daterange':
- return pt.push('confirm'), pt;
- case 'datetimerange':
- return pt.push('confirm'), pt;
- case 'month':
- return pt.push('now', 'confirm'), pt;
- case 'year':
- return pt.push('now'), pt;
- case 'quarter':
- return pt.push('now', 'confirm'), pt;
- case 'monthrange':
- case 'yearrange':
- case 'quarterrange':
- return pt.push('confirm'), pt;
- default: {
- Do(
- 'date-picker',
- "The type is wrong, n-date-picker's type only supports `date`, `datetime`, `daterange` and `datetimerange`."
- );
- break;
- }
- }
- });
- function pe(be) {
- if (be === null) return null;
- if (Array.isArray(be)) {
- const { value: He } = P,
- { value: tt } = S;
- return [Xn(be[0], He, tt), Xn(be[1], He, S.value)];
- } else return Xn(be, P.value, S.value);
- }
- function Fe(be) {
- D.value = be;
- }
- function Ie(be, He) {
- const { 'onUpdate:formattedValue': tt, onUpdateFormattedValue: pt } = e;
- tt && ze(tt, be, He), pt && ze(pt, be, He);
- }
- function le(be, He) {
- const { 'onUpdate:value': tt, onUpdateValue: pt, onChange: _e } = e,
- { nTriggerFormChange: Ve, nTriggerFormInput: nt } = i,
- Ot = pe(be);
- He.doConfirm && he(be, Ot),
- pt && ze(pt, be, Ot),
- tt && ze(tt, be, Ot),
- _e && ze(_e, be, Ot),
- (k.value = be),
- Ie(Ot, be),
- Ve(),
- nt();
- }
- function me() {
- const { onClear: be } = e;
- be == null || be();
- }
- function he(be, He) {
- const { onConfirm: tt } = e;
- tt && tt(be, He);
- }
- function ue(be) {
- const { onFocus: He } = e,
- { nTriggerFormFocus: tt } = i;
- He && ze(He, be), tt();
- }
- function Ae(be) {
- const { onBlur: He } = e,
- { nTriggerFormBlur: tt } = i;
- He && ze(He, be), tt();
- }
- function W(be) {
- const { 'onUpdate:show': He, onUpdateShow: tt } = e;
- He && ze(He, be), tt && ze(tt, be), (y.value = be);
- }
- function Q(be) {
- be.key === 'Escape' && R.value && (Su(be), ct({ returnFocus: !0 }));
- }
- function ee(be) {
- be.key === 'Escape' && R.value && Su(be);
- }
- function ve() {
- var be;
- W(!1),
- (be = x.value) === null || be === void 0 || be.deactivate(),
- me();
- }
- function oe() {
- var be;
- (be = x.value) === null || be === void 0 || be.deactivate(), me();
- }
- function H() {
- ct({ returnFocus: !0 });
- }
- function ae(be) {
- var He;
- R.value &&
- !(
- !((He = w.value) === null || He === void 0) && He.contains(ya(be))
- ) &&
- ct({ returnFocus: !1 });
- }
- function ge(be) {
- ct({ returnFocus: !0, disableUpdateOnClose: be });
- }
- function Ce(be, He) {
- He ? le(be, { doConfirm: !1 }) : Fe(be);
- }
- function se() {
- const be = D.value;
- le(Array.isArray(be) ? [be[0], be[1]] : be, { doConfirm: !0 });
- }
- function Se() {
- const { value: be } = D;
- ne.value
- ? (Array.isArray(be) || be === null) && Ge(be)
- : Array.isArray(be) || Ne(be);
- }
- function Ne(be) {
- be === null ? (L.value = '') : (L.value = Xn(be, _.value, S.value));
- }
- function Ge(be) {
- if (be === null) (j.value = ''), (B.value = '');
- else {
- const He = S.value;
- (j.value = Xn(be[0], _.value, He)),
- (B.value = Xn(be[1], _.value, He));
- }
- }
- function it() {
- R.value || ot();
- }
- function dt(be) {
- var He;
- (!((He = g.value) === null || He === void 0) &&
- He.$el.contains(be.relatedTarget)) ||
- (Ae(be), Se(), ct({ returnFocus: !1 }));
- }
- function xt() {
- s.value || (Se(), ct({ returnFocus: !1 }));
- }
- function Me(be) {
- if (be === '') {
- le(null, { doConfirm: !1 }), (D.value = null), (L.value = '');
- return;
- }
- const He = wo(be, _.value, new Date(), S.value);
- Xo(He) ? (le(ht(He), { doConfirm: !1 }), Se()) : (L.value = be);
- }
- function ut(be) {
- if (be[0] === '' && be[1] === '') {
- le(null, { doConfirm: !1 }),
- (D.value = null),
- (j.value = ''),
- (B.value = '');
- return;
- }
- const [He, tt] = be,
- pt = wo(He, _.value, new Date(), S.value),
- _e = wo(tt, _.value, new Date(), S.value);
- Xo(pt) && Xo(_e)
- ? (le([ht(pt), ht(_e)], { doConfirm: !1 }), Se())
- : ([j.value, B.value] = be);
- }
- function wt(be) {
- s.value || Io(be, 'clear') || R.value || ot();
- }
- function Lt(be) {
- s.value || ue(be);
- }
- function ot() {
- s.value || R.value || W(!0);
- }
- function ct({ returnFocus: be, disableUpdateOnClose: He }) {
- var tt;
- R.value &&
- (W(!1),
- e.type !== 'date' && e.updateValueOnClose && !He && se(),
- be && ((tt = x.value) === null || tt === void 0 || tt.focus()));
- }
- $t(D, () => {
- Se();
- }),
- Se(),
- $t(R, be => {
- be || (D.value = E.value);
- });
- const Xe = $Y(e, D),
- Qe = OY(e, D);
- Rt(
- Gv,
- Object.assign(
- Object.assign(
- Object.assign(
- {
- mergedClsPrefixRef: f,
- mergedThemeRef: q,
- timePickerSizeRef: G,
- localeRef: r,
- dateLocaleRef: o,
- firstDayOfWeekRef: Ee(e, 'firstDayOfWeek'),
- isDateDisabledRef: Ee(e, 'isDateDisabled'),
- rangesRef: Ee(e, 'ranges'),
- timePickerPropsRef: Ee(e, 'timePickerProps'),
- closeOnSelectRef: Ee(e, 'closeOnSelect'),
- updateValueOnCloseRef: Ee(e, 'updateValueOnClose')
- },
- Xe
- ),
- Qe
- ),
- { datePickerSlots: t }
- )
- );
- const ie = {
- focus: () => {
- var be;
- (be = x.value) === null || be === void 0 || be.focus();
- },
- blur: () => {
- var be;
- (be = x.value) === null || be === void 0 || be.blur();
- }
- },
- $e = I(() => {
- const {
- common: { cubicBezierEaseInOut: be },
- self: { iconColor: He, iconColorDisabled: tt }
- } = q.value;
- return {
- '--n-bezier': be,
- '--n-icon-color-override': He,
- '--n-icon-color-disabled-override': tt
- };
- }),
- Ue = m ? Mt('date-picker-trigger', void 0, $e, e) : void 0,
- lt = I(() => {
- const { type: be } = e,
- {
- common: { cubicBezierEaseInOut: He },
- self: {
- calendarTitleFontSize: tt,
- calendarDaysFontSize: pt,
- itemFontSize: _e,
- itemTextColor: Ve,
- itemColorDisabled: nt,
- itemColorIncluded: Ot,
- itemColorHover: $n,
- itemColorActive: jn,
- itemBorderRadius: Zt,
- itemTextColorDisabled: we,
- itemTextColorActive: je,
- panelColor: Ct,
- panelTextColor: qt,
- arrowColor: xe,
- calendarTitleTextColor: De,
- panelActionDividerColor: rt,
- panelHeaderDividerColor: ft,
- calendarDaysDividerColor: gt,
- panelBoxShadow: bn,
- panelBorderRadius: ln,
- calendarTitleFontWeight: ke,
- panelExtraFooterPadding: Je,
- panelActionPadding: vt,
- itemSize: Ut,
- itemCellWidth: dn,
- itemCellHeight: nn,
- scrollItemWidth: kr,
- scrollItemHeight: Yt,
- calendarTitlePadding: On,
- calendarTitleHeight: So,
- calendarDaysHeight: Lo,
- calendarDaysTextColor: No,
- arrowSize: _o,
- panelHeaderPadding: Xr,
- calendarDividerColor: za,
- calendarTitleGridTempateColumns: Pl,
- iconColor: Zr,
- iconColorDisabled: kl,
- scrollItemBorderRadius: Tl,
- calendarTitleColorHover: Aa,
- [Oe('calendarLeftPadding', be)]: Ea,
- [Oe('calendarRightPadding', be)]: Ma
- }
- } = q.value;
- return {
- '--n-bezier': He,
- '--n-panel-border-radius': ln,
- '--n-panel-color': Ct,
- '--n-panel-box-shadow': bn,
- '--n-panel-text-color': qt,
- '--n-panel-header-padding': Xr,
- '--n-panel-header-divider-color': ft,
- '--n-calendar-left-padding': Ea,
- '--n-calendar-right-padding': Ma,
- '--n-calendar-title-color-hover': Aa,
- '--n-calendar-title-height': So,
- '--n-calendar-title-padding': On,
- '--n-calendar-title-font-size': tt,
- '--n-calendar-title-font-weight': ke,
- '--n-calendar-title-text-color': De,
- '--n-calendar-title-grid-template-columns': Pl,
- '--n-calendar-days-height': Lo,
- '--n-calendar-days-divider-color': gt,
- '--n-calendar-days-font-size': pt,
- '--n-calendar-days-text-color': No,
- '--n-calendar-divider-color': za,
- '--n-panel-action-padding': vt,
- '--n-panel-extra-footer-padding': Je,
- '--n-panel-action-divider-color': rt,
- '--n-item-font-size': _e,
- '--n-item-border-radius': Zt,
- '--n-item-size': Ut,
- '--n-item-cell-width': dn,
- '--n-item-cell-height': nn,
- '--n-item-text-color': Ve,
- '--n-item-color-included': Ot,
- '--n-item-color-disabled': nt,
- '--n-item-color-hover': $n,
- '--n-item-color-active': jn,
- '--n-item-text-color-disabled': we,
- '--n-item-text-color-active': je,
- '--n-scroll-item-width': kr,
- '--n-scroll-item-height': Yt,
- '--n-scroll-item-border-radius': Tl,
- '--n-arrow-size': _o,
- '--n-arrow-color': xe,
- '--n-icon-color': Zr,
- '--n-icon-color-disabled': kl
- };
- }),
- st = m
- ? Mt(
- 'date-picker',
- I(() => e.type),
- lt,
- e
- )
- : void 0;
- return Object.assign(Object.assign({}, ie), {
- mergedStatus: c,
- mergedClsPrefix: f,
- mergedBordered: v,
- namespace: p,
- uncontrolledValue: k,
- pendingValue: D,
- panelInstRef: g,
- triggerElRef: w,
- inputInstRef: x,
- isMounted: yi(),
- displayTime: L,
- displayStartTime: j,
- displayEndTime: B,
- mergedShow: R,
- adjustedTo: Yr(e),
- isRange: ne,
- localizedStartPlaceholder: J,
- localizedEndPlaceholder: re,
- mergedSize: a,
- mergedDisabled: s,
- localizedPlacehoder: X,
- isValueInvalid: Xe.isValueInvalidRef,
- isStartValueInvalid: Qe.isStartValueInvalidRef,
- isEndValueInvalid: Qe.isEndValueInvalidRef,
- handleInputKeydown: ee,
- handleClickOutside: ae,
- handleKeydown: Q,
- handleClear: ve,
- handlePanelClear: oe,
- handleTriggerClick: wt,
- handleInputActivate: it,
- handleInputDeactivate: xt,
- handleInputFocus: Lt,
- handleInputBlur: dt,
- handlePanelTabOut: H,
- handlePanelClose: ge,
- handleRangeUpdateValue: ut,
- handleSingleUpdateValue: Me,
- handlePanelUpdateValue: Ce,
- handlePanelConfirm: se,
- mergedTheme: q,
- actions: ce,
- triggerCssVars: m ? void 0 : $e,
- triggerThemeClass: Ue == null ? void 0 : Ue.themeClass,
- triggerOnRender: Ue == null ? void 0 : Ue.onRender,
- cssVars: m ? void 0 : lt,
- themeClass: st == null ? void 0 : st.themeClass,
- onRender: st == null ? void 0 : st.onRender
- });
- },
- render() {
- const {
- clearable: e,
- triggerOnRender: t,
- mergedClsPrefix: n,
- $slots: r
- } = 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
- },
- i = () => {
- const { type: s } = this;
- return s === 'datetime'
- ? h(XG, Object.assign({}, o), r)
- : s === 'daterange'
- ? h(
- JG,
- Object.assign({}, o, {
- defaultCalendarStartTime: this.defaultCalendarStartTime,
- defaultCalendarEndTime: this.defaultCalendarEndTime,
- bindCalendarMonths: this.bindCalendarMonths
- }),
- r
- )
- : s === 'datetimerange'
- ? h(
- ZG,
- Object.assign({}, o, {
- defaultCalendarStartTime: this.defaultCalendarStartTime,
- defaultCalendarEndTime: this.defaultCalendarEndTime,
- bindCalendarMonths: this.bindCalendarMonths
- }),
- r
- )
- : s === 'month' || s === 'year' || s === 'quarter'
- ? h(P3, Object.assign({}, o, { type: s, key: s }))
- : s === 'monthrange' || s === 'yearrange' || s === 'quarterrange'
- ? h(eX, Object.assign({}, o, { type: s }))
- : h(QG, Object.assign({}, o), r);
- };
- if (this.panel) return i();
- t == null || t();
- const a = {
- 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 h(
- 'div',
- {
- ref: 'triggerElRef',
- class: [
- `${n}-date-picker`,
- this.mergedDisabled && `${n}-date-picker--disabled`,
- this.isRange && `${n}-date-picker--range`,
- this.triggerThemeClass
- ],
- style: this.triggerCssVars,
- onKeydown: this.handleKeydown
- },
- h(Xc, null, {
- default: () => [
- h(Zc, null, {
- default: () =>
- this.isRange
- ? h(
- Yi,
- 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
- },
- a
- ),
- {
- separator: () =>
- this.separator === void 0
- ? Kt(r.separator, () => [
- h(
- Et,
- {
- clsPrefix: n,
- class: `${n}-date-picker-icon`
- },
- { default: () => h(VU, null) }
- )
- ])
- : this.separator,
- [e ? 'clear-icon-placeholder' : 'suffix']: () =>
- Kt(r['date-icon'], () => [
- h(
- Et,
- { clsPrefix: n, class: `${n}-date-picker-icon` },
- { default: () => h(mS, null) }
- )
- ])
- }
- )
- : h(
- Yi,
- 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
- },
- a
- ),
- {
- [e ? 'clear-icon-placeholder' : 'suffix']: () =>
- h(
- Et,
- { clsPrefix: n, class: `${n}-date-picker-icon` },
- {
- default: () =>
- Kt(r['date-icon'], () => [h(mS, null)])
- }
- )
- }
- )
- }),
- h(
- Qc,
- {
- show: this.mergedShow,
- containerClass: this.namespace,
- to: this.adjustedTo,
- teleportDisabled: this.adjustedTo === Yr.tdkey,
- placement: this.placement
- },
- {
- default: () =>
- h(
- Kn,
- {
- name: 'fade-in-scale-up-transition',
- appear: this.isMounted
- },
- {
- default: () =>
- this.mergedShow
- ? Er(i(), [
- [
- xa,
- this.handleClickOutside,
- void 0,
- { capture: !0 }
- ]
- ])
- : null
- }
- )
- }
- )
- ]
- })
- );
- }
- }),
- oX = {
- 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'
- },
- iX = e => {
- const {
- tableHeaderColor: t,
- textColor2: n,
- textColor1: r,
- cardColor: o,
- modalColor: i,
- popoverColor: a,
- dividerColor: s,
- borderRadius: c,
- fontWeightStrong: d,
- lineHeight: f,
- fontSizeSmall: v,
- fontSizeMedium: p,
- fontSizeLarge: m
- } = e;
- return Object.assign(Object.assign({}, oX), {
- lineHeight: f,
- fontSizeSmall: v,
- fontSizeMedium: p,
- fontSizeLarge: m,
- titleTextColor: r,
- thColor: At(o, t),
- thColorModal: At(i, t),
- thColorPopover: At(a, t),
- thTextColor: r,
- thFontWeight: d,
- tdTextColor: n,
- tdColor: o,
- tdColorModal: i,
- tdColorPopover: a,
- borderColor: At(o, s),
- borderColorModal: At(i, s),
- borderColorPopover: At(a, s),
- borderRadius: c
- });
- },
- aX = { name: 'Descriptions', common: Nt, self: iX },
- lX = aX,
- k3 = 'DESCRIPTION_ITEM_FLAG';
- function sX(e) {
- return typeof e == 'object' && e && !Array.isArray(e)
- ? e.type && e.type[k3]
- : !1;
- }
- const cX = F([
- O('descriptions', { fontSize: 'var(--n-font-size)' }, [
- O(
- 'descriptions-separator',
- `
- display: inline-block;
- margin: 0 8px 0 2px;
- `
- ),
- O('descriptions-table-wrapper', [
- O('descriptions-table', [
- O('descriptions-table-row', [
- O('descriptions-table-header', { padding: 'var(--n-th-padding)' }),
- O('descriptions-table-content', { padding: 'var(--n-td-padding)' })
- ])
- ])
- ]),
- jt('bordered', [
- O('descriptions-table-wrapper', [
- O('descriptions-table', [
- O('descriptions-table-row', [
- F('&:last-child', [
- O('descriptions-table-content', { paddingBottom: 0 })
- ])
- ])
- ])
- ])
- ]),
- U('left-label-placement', [
- O('descriptions-table-content', [F('> *', { verticalAlign: 'top' })])
- ]),
- U('left-label-align', [F('th', { textAlign: 'left' })]),
- U('center-label-align', [F('th', { textAlign: 'center' })]),
- U('right-label-align', [F('th', { textAlign: 'right' })]),
- U('bordered', [
- O(
- 'descriptions-table-wrapper',
- `
- border-radius: var(--n-border-radius);
- overflow: hidden;
- background: var(--n-merged-td-color);
- border: 1px solid var(--n-merged-border-color);
- `,
- [
- O('descriptions-table', [
- O('descriptions-table-row', [
- F('&:not(:last-child)', [
- O('descriptions-table-content', {
- borderBottom: '1px solid var(--n-merged-border-color)'
- }),
- O('descriptions-table-header', {
- borderBottom: '1px solid var(--n-merged-border-color)'
- })
- ]),
- O(
- 'descriptions-table-header',
- `
- font-weight: 400;
- background-clip: padding-box;
- background-color: var(--n-merged-th-color);
- `,
- [
- F('&:not(:last-child)', {
- borderRight: '1px solid var(--n-merged-border-color)'
- })
- ]
- ),
- O('descriptions-table-content', [
- F('&:not(:last-child)', {
- borderRight: '1px solid var(--n-merged-border-color)'
- })
- ])
- ])
- ])
- ]
- )
- ]),
- O(
- 'descriptions-header',
- `
- font-weight: var(--n-th-font-weight);
- font-size: 18px;
- transition: color .3s var(--n-bezier);
- line-height: var(--n-line-height);
- margin-bottom: 16px;
- color: var(--n-title-text-color);
- `
- ),
- O(
- 'descriptions-table-wrapper',
- `
- transition:
- background-color .3s var(--n-bezier),
- border-color .3s var(--n-bezier);
- `,
- [
- O(
- 'descriptions-table',
- `
- width: 100%;
- border-collapse: separate;
- border-spacing: 0;
- box-sizing: border-box;
- `,
- [
- O(
- 'descriptions-table-row',
- `
- box-sizing: border-box;
- transition: border-color .3s var(--n-bezier);
- `,
- [
- O(
- 'descriptions-table-header',
- `
- font-weight: var(--n-th-font-weight);
- line-height: var(--n-line-height);
- display: table-cell;
- box-sizing: border-box;
- color: var(--n-th-text-color);
- transition:
- color .3s var(--n-bezier),
- background-color .3s var(--n-bezier),
- border-color .3s var(--n-bezier);
- `
- ),
- O(
- 'descriptions-table-content',
- `
- vertical-align: top;
- line-height: var(--n-line-height);
- display: table-cell;
- box-sizing: border-box;
- color: var(--n-td-text-color);
- transition:
- color .3s var(--n-bezier),
- background-color .3s var(--n-bezier),
- border-color .3s var(--n-bezier);
- `,
- [
- V(
- 'content',
- `
- transition: color .3s var(--n-bezier);
- display: inline-block;
- color: var(--n-td-text-color);
- `
- )
- ]
- ),
- V(
- 'label',
- `
- font-weight: var(--n-th-font-weight);
- transition: color .3s var(--n-bezier);
- display: inline-block;
- margin-right: 14px;
- color: var(--n-th-text-color);
- `
- )
- ]
- )
- ]
- )
- ]
- )
- ]),
- O(
- 'descriptions-table-wrapper',
- `
- --n-merged-th-color: var(--n-th-color);
- --n-merged-td-color: var(--n-td-color);
- --n-merged-border-color: var(--n-border-color);
- `
- ),
- xl(
- O(
- 'descriptions-table-wrapper',
- `
- --n-merged-th-color: var(--n-th-color-modal);
- --n-merged-td-color: var(--n-td-color-modal);
- --n-merged-border-color: var(--n-border-color-modal);
- `
- )
- ),
- Ps(
- O(
- 'descriptions-table-wrapper',
- `
- --n-merged-th-color: var(--n-th-color-popover);
- --n-merged-td-color: var(--n-td-color-popover);
- --n-merged-border-color: var(--n-border-color-popover);
- `
- )
- )
- ]),
- dX = Object.assign(Object.assign({}, Ke.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]
- }),
- uX = Re({
- name: 'Descriptions',
- props: dX,
- setup(e) {
- const { mergedClsPrefixRef: t, inlineThemeDisabled: n } = yt(e),
- r = Ke('Descriptions', '-descriptions', cX, lX, e, t),
- o = I(() => {
- const { size: a, bordered: s } = e,
- {
- common: { cubicBezierEaseInOut: c },
- self: {
- titleTextColor: d,
- thColor: f,
- thColorModal: v,
- thColorPopover: p,
- thTextColor: m,
- thFontWeight: g,
- tdTextColor: w,
- tdColor: x,
- tdColorModal: y,
- tdColorPopover: C,
- borderColor: R,
- borderColorModal: S,
- borderColorPopover: _,
- borderRadius: P,
- lineHeight: T,
- [Oe('fontSize', a)]: A,
- [Oe(s ? 'thPaddingBordered' : 'thPadding', a)]: z,
- [Oe(s ? 'tdPaddingBordered' : 'tdPadding', a)]: k
- }
- } = r.value;
- return {
- '--n-title-text-color': d,
- '--n-th-padding': z,
- '--n-td-padding': k,
- '--n-font-size': A,
- '--n-bezier': c,
- '--n-th-font-weight': g,
- '--n-line-height': T,
- '--n-th-text-color': m,
- '--n-td-text-color': w,
- '--n-th-color': f,
- '--n-th-color-modal': v,
- '--n-th-color-popover': p,
- '--n-td-color': x,
- '--n-td-color-modal': y,
- '--n-td-color-popover': C,
- '--n-border-radius': P,
- '--n-border-color': R,
- '--n-border-color-modal': S,
- '--n-border-color-popover': _
- };
- }),
- i = n
- ? Mt(
- 'descriptions',
- I(() => {
- let a = '';
- const { size: s, bordered: c } = e;
- return c && (a += 'a'), (a += s[0]), a;
- }),
- o,
- e
- )
- : void 0;
- return {
- mergedClsPrefix: t,
- cssVars: n ? void 0 : o,
- themeClass: i == null ? void 0 : i.themeClass,
- onRender: i == null ? void 0 : i.onRender,
- compitableColumn: xs(e, ['columns', 'column']),
- inlineThemeDisabled: n
- };
- },
- render() {
- const e = this.$slots.default,
- t = e ? hi(e()) : [];
- t.length;
- const {
- compitableColumn: n,
- labelPlacement: r,
- labelAlign: o,
- size: i,
- bordered: a,
- title: s,
- cssVars: c,
- mergedClsPrefix: d,
- separator: f,
- onRender: v
- } = this;
- v == null || v();
- const p = t.filter(x => sX(x)),
- m = { span: 0, row: [], secondRow: [], rows: [] },
- w = p
- .reduce((x, y, C) => {
- const R = y.props || {},
- S = p.length - 1 === C,
- _ = ['label' in R ? R.label : Gw(y, 'label')],
- P = [Gw(y)],
- T = R.span || 1,
- A = x.span;
- x.span += T;
- const z = R.labelStyle || R['label-style'] || this.labelStyle,
- k = R.contentStyle || R['content-style'] || this.contentStyle;
- if (r === 'left')
- a
- ? x.row.push(
- h(
- 'th',
- {
- class: `${d}-descriptions-table-header`,
- colspan: 1,
- style: z
- },
- _
- ),
- h(
- 'td',
- {
- class: `${d}-descriptions-table-content`,
- colspan: S ? (n - A) * 2 + 1 : T * 2 - 1,
- style: k
- },
- P
- )
- )
- : x.row.push(
- h(
- 'td',
- {
- class: `${d}-descriptions-table-content`,
- colspan: S ? (n - A) * 2 : T * 2
- },
- h(
- 'span',
- {
- class: `${d}-descriptions-table-content__label`,
- style: z
- },
- [
- ..._,
- f &&
- h(
- 'span',
- { class: `${d}-descriptions-separator` },
- f
- )
- ]
- ),
- h(
- 'span',
- {
- class: `${d}-descriptions-table-content__content`,
- style: k
- },
- P
- )
- )
- );
- else {
- const M = S ? (n - A) * 2 : T * 2;
- x.row.push(
- h(
- 'th',
- {
- class: `${d}-descriptions-table-header`,
- colspan: M,
- style: z
- },
- _
- )
- ),
- x.secondRow.push(
- h(
- 'td',
- {
- class: `${d}-descriptions-table-content`,
- colspan: M,
- style: k
- },
- P
- )
- );
- }
- return (
- (x.span >= n || S) &&
- ((x.span = 0),
- x.row.length && (x.rows.push(x.row), (x.row = [])),
- r !== 'left' &&
- x.secondRow.length &&
- (x.rows.push(x.secondRow), (x.secondRow = []))),
- x
- );
- }, m)
- .rows.map(x => h('tr', { class: `${d}-descriptions-table-row` }, x));
- return h(
- 'div',
- {
- style: c,
- class: [
- `${d}-descriptions`,
- this.themeClass,
- `${d}-descriptions--${r}-label-placement`,
- `${d}-descriptions--${o}-label-align`,
- `${d}-descriptions--${i}-size`,
- a && `${d}-descriptions--bordered`
- ]
- },
- s || this.$slots.header
- ? h(
- 'div',
- { class: `${d}-descriptions-header` },
- s || Fu(this, 'header')
- )
- : null,
- h(
- 'div',
- { class: `${d}-descriptions-table-wrapper` },
- h('table', { class: `${d}-descriptions-table` }, h('tbody', null, w))
- )
- );
- }
- }),
- fX = {
- label: String,
- span: { type: Number, default: 1 },
- labelStyle: [Object, String],
- contentStyle: [Object, String]
- },
- hX = Re({
- name: 'DescriptionsItem',
- [k3]: !0,
- props: fX,
- render() {
- return null;
- }
- }),
- vX = {
- 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'
- },
- pX = e => {
- const {
- textColor1: t,
- textColor2: n,
- modalColor: r,
- closeIconColor: o,
- closeIconColorHover: i,
- closeIconColorPressed: a,
- closeColorHover: s,
- closeColorPressed: c,
- infoColor: d,
- successColor: f,
- warningColor: v,
- errorColor: p,
- primaryColor: m,
- dividerColor: g,
- borderRadius: w,
- fontWeightStrong: x,
- lineHeight: y,
- fontSize: C
- } = e;
- return Object.assign(Object.assign({}, vX), {
- fontSize: C,
- lineHeight: y,
- border: `1px solid ${g}`,
- titleTextColor: t,
- textColor: n,
- color: r,
- closeColorHover: s,
- closeColorPressed: c,
- closeIconColor: o,
- closeIconColorHover: i,
- closeIconColorPressed: a,
- closeBorderRadius: w,
- iconColor: m,
- iconColorInfo: d,
- iconColorSuccess: f,
- iconColorWarning: v,
- iconColorError: p,
- borderRadius: w,
- titleFontWeight: x
- });
- },
- gX = { name: 'Dialog', common: Nt, peers: { Button: Es }, self: pX },
- T3 = gX,
- Xv = {
- 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
- },
- $3 = Vi(Xv),
- mX = F([
- O(
- 'dialog',
- `
- word-break: break-word;
- line-height: var(--n-line-height);
- position: relative;
- background: var(--n-color);
- color: var(--n-text-color);
- box-sizing: border-box;
- margin: auto;
- border-radius: var(--n-border-radius);
- padding: var(--n-padding);
- transition:
- border-color .3s var(--n-bezier),
- background-color .3s var(--n-bezier),
- color .3s var(--n-bezier);
- `,
- [
- V('icon', { color: 'var(--n-icon-color)' }),
- U('bordered', { border: 'var(--n-border)' }),
- U('icon-top', [
- V('close', { margin: 'var(--n-close-margin)' }),
- V('icon', { margin: 'var(--n-icon-margin)' }),
- V('content', { textAlign: 'center' }),
- V('title', { justifyContent: 'center' }),
- V('action', { justifyContent: 'center' })
- ]),
- U('icon-left', [
- V('icon', { margin: 'var(--n-icon-margin)' }),
- U('closable', [
- V(
- 'title',
- `
- padding-right: calc(var(--n-close-size) + 6px);
- `
- )
- ])
- ]),
- V(
- 'close',
- `
- position: absolute;
- right: 0;
- top: 0;
- margin: var(--n-close-margin);
- transition:
- background-color .3s var(--n-bezier),
- color .3s var(--n-bezier);
- z-index: 1;
- `
- ),
- V(
- 'content',
- `
- font-size: var(--n-font-size);
- margin: var(--n-content-margin);
- position: relative;
- word-break: break-word;
- `,
- [U('last', 'margin-bottom: 0;')]
- ),
- V(
- 'action',
- `
- display: flex;
- justify-content: flex-end;
- `,
- [F('> *:not(:last-child)', { marginRight: 'var(--n-action-space)' })]
- ),
- V('icon', {
- fontSize: 'var(--n-icon-size)',
- transition: 'color .3s var(--n-bezier)'
- }),
- V(
- 'title',
- `
- transition: color .3s var(--n-bezier);
- display: flex;
- align-items: center;
- font-size: var(--n-title-font-size);
- font-weight: var(--n-title-font-weight);
- color: var(--n-title-text-color);
- `
- ),
- O('dialog-icon-container', {
- display: 'flex',
- justifyContent: 'center'
- })
- ]
- ),
- xl(
- O(
- 'dialog',
- `
- width: 446px;
- max-width: calc(100vw - 32px);
- `
- )
- ),
- O('dialog', [
- LR(`
- width: 446px;
- max-width: calc(100vw - 32px);
- `)
- ])
- ]),
- bX = {
- default: () => h(bl, null),
- info: () => h(bl, null),
- success: () => h(zs, null),
- warning: () => h(As, null),
- error: () => h(Os, null)
- },
- O3 = Re({
- name: 'Dialog',
- alias: ['NimbusConfirmCard', 'Confirm'],
- props: Object.assign(Object.assign({}, Ke.props), Xv),
- setup(e) {
- const {
- mergedComponentPropsRef: t,
- mergedClsPrefixRef: n,
- inlineThemeDisabled: r
- } = yt(e),
- o = I(() => {
- var v, p;
- const { iconPlacement: m } = e;
- return (
- m ||
- ((p =
- (v = t == null ? void 0 : t.value) === null || v === void 0
- ? void 0
- : v.Dialog) === null || p === void 0
- ? void 0
- : p.iconPlacement) ||
- 'left'
- );
- });
- function i(v) {
- const { onPositiveClick: p } = e;
- p && p(v);
- }
- function a(v) {
- const { onNegativeClick: p } = e;
- p && p(v);
- }
- function s() {
- const { onClose: v } = e;
- v && v();
- }
- const c = Ke('Dialog', '-dialog', mX, T3, e, n),
- d = I(() => {
- const { type: v } = e,
- p = o.value,
- {
- common: { cubicBezierEaseInOut: m },
- self: {
- fontSize: g,
- lineHeight: w,
- border: x,
- titleTextColor: y,
- textColor: C,
- color: R,
- closeBorderRadius: S,
- closeColorHover: _,
- closeColorPressed: P,
- closeIconColor: T,
- closeIconColorHover: A,
- closeIconColorPressed: z,
- closeIconSize: k,
- borderRadius: M,
- titleFontWeight: E,
- titleFontSize: D,
- padding: L,
- iconSize: j,
- actionSpace: B,
- contentMargin: q,
- closeSize: G,
- [p === 'top' ? 'iconMarginIconTop' : 'iconMargin']: ne,
- [p === 'top' ? 'closeMarginIconTop' : 'closeMargin']: X,
- [Oe('iconColor', v)]: J
- }
- } = c.value;
- return {
- '--n-font-size': g,
- '--n-icon-color': J,
- '--n-bezier': m,
- '--n-close-margin': X,
- '--n-icon-margin': ne,
- '--n-icon-size': j,
- '--n-close-size': G,
- '--n-close-icon-size': k,
- '--n-close-border-radius': S,
- '--n-close-color-hover': _,
- '--n-close-color-pressed': P,
- '--n-close-icon-color': T,
- '--n-close-icon-color-hover': A,
- '--n-close-icon-color-pressed': z,
- '--n-color': R,
- '--n-text-color': C,
- '--n-border-radius': M,
- '--n-padding': L,
- '--n-line-height': w,
- '--n-border': x,
- '--n-content-margin': q,
- '--n-title-font-size': D,
- '--n-title-font-weight': E,
- '--n-title-text-color': y,
- '--n-action-space': B
- };
- }),
- f = r
- ? Mt(
- 'dialog',
- I(() => `${e.type[0]}${o.value[0]}`),
- d,
- e
- )
- : void 0;
- return {
- mergedClsPrefix: n,
- mergedIconPlacement: o,
- mergedTheme: c,
- handlePositiveClick: i,
- handleNegativeClick: a,
- handleCloseClick: s,
- cssVars: r ? void 0 : d,
- themeClass: f == null ? void 0 : f.themeClass,
- onRender: f == null ? void 0 : f.onRender
- };
- },
- render() {
- var e;
- const {
- bordered: t,
- mergedIconPlacement: n,
- cssVars: r,
- closable: o,
- showIcon: i,
- title: a,
- content: s,
- action: c,
- negativeText: d,
- positiveText: f,
- positiveButtonProps: v,
- negativeButtonProps: p,
- handlePositiveClick: m,
- handleNegativeClick: g,
- mergedTheme: w,
- loading: x,
- type: y,
- mergedClsPrefix: C
- } = this;
- (e = this.onRender) === null || e === void 0 || e.call(this);
- const R = i
- ? h(
- Et,
- { clsPrefix: C, class: `${C}-dialog__icon` },
- {
- default: () =>
- cn(
- this.$slots.icon,
- _ => _ || (this.icon ? _n(this.icon) : bX[this.type]())
- )
- }
- )
- : null,
- S = cn(this.$slots.action, _ =>
- _ || f || d || c
- ? h(
- 'div',
- { class: `${C}-dialog__action` },
- _ ||
- (c
- ? [_n(c)]
- : [
- this.negativeText &&
- h(
- nr,
- Object.assign(
- {
- theme: w.peers.Button,
- themeOverrides: w.peerOverrides.Button,
- ghost: !0,
- size: 'small',
- onClick: g
- },
- p
- ),
- { default: () => _n(this.negativeText) }
- ),
- this.positiveText &&
- h(
- nr,
- Object.assign(
- {
- theme: w.peers.Button,
- themeOverrides: w.peerOverrides.Button,
- size: 'small',
- type: y === 'default' ? 'primary' : y,
- disabled: x,
- loading: x,
- onClick: m
- },
- v
- ),
- { default: () => _n(this.positiveText) }
- )
- ])
- )
- : null
- );
- return h(
- 'div',
- {
- class: [
- `${C}-dialog`,
- this.themeClass,
- this.closable && `${C}-dialog--closable`,
- `${C}-dialog--icon-${n}`,
- t && `${C}-dialog--bordered`
- ],
- style: r,
- role: 'dialog'
- },
- o
- ? h(Sl, {
- clsPrefix: C,
- class: `${C}-dialog__close`,
- onClick: this.handleCloseClick
- })
- : null,
- i && n === 'top'
- ? h('div', { class: `${C}-dialog-icon-container` }, R)
- : null,
- h(
- 'div',
- { class: `${C}-dialog__title` },
- i && n === 'left' ? R : null,
- Kt(this.$slots.header, () => [_n(a)])
- ),
- h(
- 'div',
- {
- class: [
- `${C}-dialog__content`,
- S ? '' : `${C}-dialog__content--last`
- ]
- },
- Kt(this.$slots.default, () => [_n(s)])
- ),
- S
- );
- }
- }),
- z3 = 'n-dialog-provider',
- A3 = 'n-dialog-api',
- yX = 'n-dialog-reactive-list',
- xX = e => {
- const { modalColor: t, textColor2: n, boxShadow3: r } = e;
- return { color: t, textColor: n, boxShadow: r };
- },
- wX = {
- name: 'Modal',
- common: Nt,
- peers: { Scrollbar: Qi, Dialog: T3, Card: Nk },
- self: xX
- },
- CX = wX,
- Hy = Object.assign(Object.assign({}, _y), Xv),
- SX = Vi(Hy),
- _X = Re({
- 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
- },
- Hy
- ),
- {
- 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 = Z(null),
- n = Z(null),
- r = Z(e.show),
- o = Z(null),
- i = Z(null);
- $t(Ee(e, 'show'), x => {
- x && (r.value = !0);
- }),
- cP(I(() => e.blockScroll && r.value));
- const a = Ze(qR);
- function s() {
- if (a.transformOriginRef.value === 'center') return '';
- const { value: x } = o,
- { value: y } = i;
- if (x === null || y === null) return '';
- if (n.value) {
- const C = n.value.containerScrollTop;
- return `${x}px ${y + C}px`;
- }
- return '';
- }
- function c(x) {
- if (a.transformOriginRef.value === 'center') return;
- const y = a.getMousePosition();
- if (!y || !n.value) return;
- const C = n.value.containerScrollTop,
- { offsetLeft: R, offsetTop: S } = x;
- if (y) {
- const _ = y.y,
- P = y.x;
- (o.value = -(R - P)), (i.value = -(S - _ - C));
- }
- x.style.transformOrigin = s();
- }
- function d(x) {
- mn(() => {
- c(x);
- });
- }
- function f(x) {
- (x.style.transformOrigin = s()), e.onBeforeLeave();
- }
- function v() {
- (r.value = !1), (o.value = null), (i.value = null), e.onAfterLeave();
- }
- function p() {
- const { onClose: x } = e;
- x && x();
- }
- function m() {
- e.onNegativeClick();
- }
- function g() {
- e.onPositiveClick();
- }
- const w = Z(null);
- return (
- $t(w, x => {
- x &&
- mn(() => {
- const y = x.el;
- y && t.value !== y && (t.value = y);
- });
- }),
- Rt(Lu, t),
- Rt(Nu, null),
- Rt(Gc, null),
- {
- mergedTheme: a.mergedThemeRef,
- appear: a.appearRef,
- isMounted: a.isMountedRef,
- mergedClsPrefix: a.mergedClsPrefixRef,
- bodyRef: t,
- scrollbarRef: n,
- displayed: r,
- childNodeRef: w,
- handlePositiveClick: g,
- handleNegativeClick: m,
- handleCloseClick: p,
- handleAfterLeave: v,
- handleBeforeLeave: f,
- handleEnter: d
- }
- );
- },
- render() {
- const {
- $slots: e,
- $attrs: t,
- handleEnter: n,
- handleAfterLeave: r,
- handleBeforeLeave: o,
- preset: i,
- mergedClsPrefix: a
- } = this;
- let s = null;
- if (!i) {
- if (((s = Wm(e)), !s)) {
- Do('modal', 'default slot is empty');
- return;
- }
- (s = Mo(s)), (s.props = qr({ class: `${a}-modal` }, t, s.props || {}));
- }
- return this.displayDirective === 'show' || this.displayed || this.show
- ? Er(
- h(
- 'div',
- { role: 'none', class: `${a}-modal-body-wrapper` },
- h(
- yr,
- {
- ref: 'scrollbarRef',
- theme: this.mergedTheme.peers.Scrollbar,
- themeOverrides: this.mergedTheme.peerOverrides.Scrollbar,
- contentClass: `${a}-modal-scroll-content`
- },
- {
- default: () => {
- var c;
- return [
- (c = this.renderMask) === null || c === void 0
- ? void 0
- : c.call(this),
- h(
- Q0,
- {
- disabled: !this.trapFocus,
- active: this.show,
- onEsc: this.onEsc,
- autoFocus: this.autoFocus
- },
- {
- default: () => {
- var d;
- return h(
- Kn,
- {
- name: 'fade-in-scale-up-transition',
- appear:
- (d = this.appear) !== null && d !== void 0
- ? d
- : this.isMounted,
- onEnter: n,
- onAfterEnter: this.onAfterEnter,
- onAfterLeave: r,
- onBeforeLeave: o
- },
- {
- default: () => {
- const f = [[vi, this.show]],
- { onClickoutside: v } = this;
- return (
- v &&
- f.push([
- xa,
- this.onClickoutside,
- void 0,
- { capture: !0 }
- ]),
- Er(
- this.preset === 'confirm' ||
- this.preset === 'dialog'
- ? h(
- O3,
- Object.assign(
- {},
- this.$attrs,
- {
- class: [
- `${a}-modal`,
- this.$attrs.class
- ],
- ref: 'bodyRef',
- theme:
- this.mergedTheme.peers.Dialog,
- themeOverrides:
- this.mergedTheme.peerOverrides
- .Dialog
- },
- fi(this.$props, $3),
- { 'aria-modal': 'true' }
- ),
- e
- )
- : this.preset === 'card'
- ? h(
- Hk,
- Object.assign(
- {},
- this.$attrs,
- {
- ref: 'bodyRef',
- class: [
- `${a}-modal`,
- this.$attrs.class
- ],
- theme:
- this.mergedTheme.peers.Card,
- themeOverrides:
- this.mergedTheme.peerOverrides
- .Card
- },
- fi(this.$props, $K),
- {
- 'aria-modal': 'true',
- role: 'dialog'
- }
- ),
- e
- )
- : (this.childNodeRef = s),
- f
- )
- );
- }
- }
- );
- }
- }
- )
- ];
- }
- }
- )
- ),
- [
- [
- vi,
- this.displayDirective === 'if' || this.displayed || this.show
- ]
- ]
- )
- : null;
- }
- }),
- RX = F([
- O(
- 'modal-container',
- `
- position: fixed;
- left: 0;
- top: 0;
- height: 0;
- width: 0;
- display: flex;
- `
- ),
- O(
- 'modal-mask',
- `
- position: fixed;
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- background-color: rgba(0, 0, 0, .4);
- `,
- [
- Cs({
- enterDuration: '.25s',
- leaveDuration: '.25s',
- enterCubicBezier: 'var(--n-bezier-ease-out)',
- leaveCubicBezier: 'var(--n-bezier-ease-out)'
- })
- ]
- ),
- O(
- 'modal-body-wrapper',
- `
- position: fixed;
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- overflow: visible;
- `,
- [
- O(
- 'modal-scroll-content',
- `
- min-height: 100%;
- display: flex;
- position: relative;
- `
- )
- ]
- ),
- O(
- 'modal',
- `
- position: relative;
- align-self: center;
- color: var(--n-text-color);
- margin: auto;
- box-shadow: var(--n-box-shadow);
- `,
- [gi({ duration: '.25s', enterScale: '.5' })]
- )
- ]),
- PX = Object.assign(
- Object.assign(
- Object.assign(Object.assign({}, Ke.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 }
- }),
- Hy
- ),
- {
- 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
- }
- ),
- E3 = Re({
- name: 'Modal',
- inheritAttrs: !1,
- props: PX,
- setup(e) {
- const t = Z(null),
- {
- mergedClsPrefixRef: n,
- namespaceRef: r,
- inlineThemeDisabled: o
- } = yt(e),
- i = Ke('Modal', '-modal', RX, CX, e, n),
- a = VR(64),
- s = WR(),
- c = yi(),
- d = e.internalDialog ? Ze(z3, null) : null,
- f = dP();
- function v(_) {
- const { onUpdateShow: P, 'onUpdate:show': T, onHide: A } = e;
- P && ze(P, _), T && ze(T, _), A && !_ && A(_);
- }
- function p() {
- const { onClose: _ } = e;
- _
- ? Promise.resolve(_()).then(P => {
- P !== !1 && v(!1);
- })
- : v(!1);
- }
- function m() {
- const { onPositiveClick: _ } = e;
- _
- ? Promise.resolve(_()).then(P => {
- P !== !1 && v(!1);
- })
- : v(!1);
- }
- function g() {
- const { onNegativeClick: _ } = e;
- _
- ? Promise.resolve(_()).then(P => {
- P !== !1 && v(!1);
- })
- : v(!1);
- }
- function w() {
- const { onBeforeLeave: _, onBeforeHide: P } = e;
- _ && ze(_), P && P();
- }
- function x() {
- const { onAfterLeave: _, onAfterHide: P } = e;
- _ && ze(_), P && P();
- }
- function y(_) {
- var P;
- const { onMaskClick: T } = e;
- T && T(_),
- e.maskClosable &&
- !((P = t.value) === null || P === void 0) &&
- P.contains(ya(_)) &&
- v(!1);
- }
- function C(_) {
- var P;
- (P = e.onEsc) === null || P === void 0 || P.call(e),
- e.show && e.closeOnEsc && HR(_) && !f.value && v(!1);
- }
- Rt(qR, {
- getMousePosition: () => {
- if (d) {
- const { clickedRef: _, clickPositionRef: P } = d;
- if (_.value && P.value) return P.value;
- }
- return a.value ? s.value : null;
- },
- mergedClsPrefixRef: n,
- mergedThemeRef: i,
- isMountedRef: c,
- appearRef: Ee(e, 'internalAppear'),
- transformOriginRef: Ee(e, 'transformOrigin')
- });
- const R = I(() => {
- const {
- common: { cubicBezierEaseOut: _ },
- self: { boxShadow: P, color: T, textColor: A }
- } = i.value;
- return {
- '--n-bezier-ease-out': _,
- '--n-box-shadow': P,
- '--n-color': T,
- '--n-text-color': A
- };
- }),
- S = o ? Mt('theme-class', void 0, R, e) : void 0;
- return {
- mergedClsPrefix: n,
- namespace: r,
- isMounted: c,
- containerRef: t,
- presetProps: I(() => fi(e, SX)),
- handleEsc: C,
- handleAfterLeave: x,
- handleClickoutside: y,
- handleBeforeLeave: w,
- doUpdateShow: v,
- handleNegativeClick: g,
- handlePositiveClick: m,
- handleCloseClick: p,
- cssVars: o ? void 0 : R,
- themeClass: S == null ? void 0 : S.themeClass,
- onRender: S == null ? void 0 : S.onRender
- };
- },
- render() {
- const { mergedClsPrefix: e } = this;
- return h(
- ju,
- { to: this.to, show: this.show },
- {
- default: () => {
- var t;
- (t = this.onRender) === null || t === void 0 || t.call(this);
- const { unstableShowMask: n } = this;
- return Er(
- h(
- 'div',
- {
- role: 'none',
- ref: 'containerRef',
- class: [
- `${e}-modal-container`,
- this.themeClass,
- this.namespace
- ],
- style: this.cssVars
- },
- h(
- _X,
- 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: n ? void 0 : this.handleClickoutside,
- renderMask: n
- ? () => {
- var r;
- return h(
- Kn,
- {
- name: 'fade-in-transition',
- key: 'mask',
- appear:
- (r = this.internalAppear) !== null &&
- r !== void 0
- ? r
- : this.isMounted
- },
- {
- default: () =>
- this.show
- ? h('div', {
- 'aria-hidden': !0,
- ref: 'containerRef',
- class: `${e}-modal-mask`,
- onClick: this.handleClickoutside
- })
- : null
- }
- );
- }
- : void 0
- }
- ),
- this.$slots
- )
- ),
- [[Hu, { zIndex: this.zIndex, enabled: this.show }]]
- );
- }
- }
- );
- }
- }),
- kX = Object.assign(Object.assign({}, Xv), {
- 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
- }),
- TX = Re({
- name: 'DialogEnvironment',
- props: Object.assign(Object.assign({}, kX), {
- internalKey: { type: String, required: !0 },
- to: [String, Object],
- onInternalAfterLeave: { type: Function, required: !0 }
- }),
- setup(e) {
- const t = Z(!0);
- function n() {
- const { onInternalAfterLeave: f, internalKey: v, onAfterLeave: p } = e;
- f && f(v), p && p();
- }
- function r(f) {
- const { onPositiveClick: v } = e;
- v
- ? Promise.resolve(v(f)).then(p => {
- p !== !1 && c();
- })
- : c();
- }
- function o(f) {
- const { onNegativeClick: v } = e;
- v
- ? Promise.resolve(v(f)).then(p => {
- p !== !1 && c();
- })
- : c();
- }
- function i() {
- const { onClose: f } = e;
- f
- ? Promise.resolve(f()).then(v => {
- v !== !1 && c();
- })
- : c();
- }
- function a(f) {
- const { onMaskClick: v, maskClosable: p } = e;
- v && (v(f), p && c());
- }
- function s() {
- const { onEsc: f } = e;
- f && f();
- }
- function c() {
- t.value = !1;
- }
- function d(f) {
- t.value = f;
- }
- return {
- show: t,
- hide: c,
- handleUpdateShow: d,
- handleAfterLeave: n,
- handleCloseClick: i,
- handleNegativeClick: o,
- handlePositiveClick: r,
- handleMaskClick: a,
- handleEsc: s
- };
- },
- render() {
- const {
- handlePositiveClick: e,
- handleUpdateShow: t,
- handleNegativeClick: n,
- handleCloseClick: r,
- handleAfterLeave: o,
- handleMaskClick: i,
- handleEsc: a,
- to: s,
- maskClosable: c,
- show: d
- } = this;
- return h(
- E3,
- {
- show: d,
- onUpdateShow: t,
- onMaskClick: i,
- onEsc: a,
- to: s,
- maskClosable: c,
- onAfterEnter: this.onAfterEnter,
- onAfterLeave: o,
- closeOnEsc: this.closeOnEsc,
- blockScroll: this.blockScroll,
- autoFocus: this.autoFocus,
- transformOrigin: this.transformOrigin,
- internalAppear: !0,
- internalDialog: !0
- },
- {
- default: () =>
- h(
- O3,
- Object.assign({}, fi(this.$props, $3), {
- style: this.internalStyle,
- onClose: r,
- onNegativeClick: n,
- onPositiveClick: e
- })
- )
- }
- );
- }
- }),
- $X = { injectionKey: String, to: [String, Object] },
- jy = Re({
- name: 'DialogProvider',
- props: $X,
- setup() {
- const e = Z([]),
- t = {};
- function n(s = {}) {
- const c = pi(),
- d = Xi(
- Object.assign(Object.assign({}, s), {
- key: c,
- destroy: () => {
- t[`n-dialog-${c}`].hide();
- }
- })
- );
- return e.value.push(d), d;
- }
- const r = ['info', 'success', 'warning', 'error'].map(
- s => c => n(Object.assign(Object.assign({}, c), { type: s }))
- );
- function o(s) {
- const { value: c } = e;
- c.splice(
- c.findIndex(d => d.key === s),
- 1
- );
- }
- function i() {
- Object.values(t).forEach(s => {
- s.hide();
- });
- }
- const a = {
- create: n,
- destroyAll: i,
- info: r[0],
- success: r[1],
- warning: r[2],
- error: r[3]
- };
- return (
- Rt(A3, a),
- Rt(z3, { clickedRef: VR(64), clickPositionRef: WR() }),
- Rt(yX, e),
- Object.assign(Object.assign({}, a), {
- dialogList: e,
- dialogInstRefs: t,
- handleAfterLeave: o
- })
- );
- },
- render() {
- var e, t;
- return h(on, null, [
- this.dialogList.map(n =>
- h(
- TX,
- Yc(n, ['destroy', 'style'], {
- internalStyle: n.style,
- to: this.to,
- ref: r => {
- r === null
- ? delete this.dialogInstRefs[`n-dialog-${n.key}`]
- : (this.dialogInstRefs[`n-dialog-${n.key}`] = r);
- },
- internalKey: n.key,
- onInternalAfterLeave: this.handleAfterLeave
- })
- )
- ),
- (t = (e = this.$slots).default) === null || t === void 0
- ? void 0
- : t.call(e)
- ]);
- }
- });
- function M3() {
- const e = Ze(A3, null);
- return (
- e === null && io('use-dialog', 'No outer <n-dialog-provider /> founded.'), e
- );
- }
- const OX = e => {
- const { textColor1: t, dividerColor: n, fontWeightStrong: r } = e;
- return { textColor: t, color: n, fontWeight: r };
- },
- zX = { name: 'Divider', common: Nt, self: OX },
- AX = zX,
- EX = O(
- 'divider',
- `
- position: relative;
- display: flex;
- width: 100%;
- box-sizing: border-box;
- font-size: 16px;
- color: var(--n-text-color);
- transition:
- color .3s var(--n-bezier),
- background-color .3s var(--n-bezier);
- `,
- [
- jt(
- 'vertical',
- `
- margin-top: 24px;
- margin-bottom: 24px;
- `,
- [
- jt(
- 'no-title',
- `
- display: flex;
- align-items: center;
- `
- )
- ]
- ),
- V(
- 'title',
- `
- display: flex;
- align-items: center;
- margin-left: 12px;
- margin-right: 12px;
- white-space: nowrap;
- font-weight: var(--n-font-weight);
- `
- ),
- U('title-position-left', [V('line', [U('left', { width: '28px' })])]),
- U('title-position-right', [V('line', [U('right', { width: '28px' })])]),
- U('dashed', [
- V(
- 'line',
- `
- background-color: #0000;
- height: 0px;
- width: 100%;
- border-style: dashed;
- border-width: 1px 0 0;
- `
- )
- ]),
- U(
- 'vertical',
- `
- display: inline-block;
- height: 1em;
- margin: 0 8px;
- vertical-align: middle;
- width: 1px;
- `
- ),
- V(
- 'line',
- `
- border: none;
- transition: background-color .3s var(--n-bezier), border-color .3s var(--n-bezier);
- height: 1px;
- width: 100%;
- margin: 0;
- `
- ),
- jt('dashed', [V('line', { backgroundColor: 'var(--n-color)' })]),
- U('dashed', [V('line', { borderColor: 'var(--n-color)' })]),
- U('vertical', { backgroundColor: 'var(--n-color)' })
- ]
- ),
- MX = Object.assign(Object.assign({}, Ke.props), {
- titlePlacement: { type: String, default: 'center' },
- dashed: Boolean,
- vertical: Boolean
- }),
- IX = Re({
- name: 'Divider',
- props: MX,
- setup(e) {
- const { mergedClsPrefixRef: t, inlineThemeDisabled: n } = yt(e),
- r = Ke('Divider', '-divider', EX, AX, e, t),
- o = I(() => {
- const {
- common: { cubicBezierEaseInOut: a },
- self: { color: s, textColor: c, fontWeight: d }
- } = r.value;
- return {
- '--n-bezier': a,
- '--n-color': s,
- '--n-text-color': c,
- '--n-font-weight': d
- };
- }),
- i = n ? Mt('divider', void 0, o, e) : void 0;
- return {
- mergedClsPrefix: t,
- cssVars: n ? void 0 : o,
- themeClass: i == null ? void 0 : i.themeClass,
- onRender: i == null ? void 0 : i.onRender
- };
- },
- render() {
- var e;
- const {
- $slots: t,
- titlePlacement: n,
- vertical: r,
- dashed: o,
- cssVars: i,
- mergedClsPrefix: a
- } = this;
- return (
- (e = this.onRender) === null || e === void 0 || e.call(this),
- h(
- 'div',
- {
- role: 'separator',
- class: [
- `${a}-divider`,
- this.themeClass,
- {
- [`${a}-divider--vertical`]: r,
- [`${a}-divider--no-title`]: !t.default,
- [`${a}-divider--dashed`]: o,
- [`${a}-divider--title-position-${n}`]: t.default && n
- }
- ],
- style: i
- },
- r
- ? null
- : h('div', {
- class: `${a}-divider__line ${a}-divider__line--left`
- }),
- !r && t.default
- ? h(
- on,
- null,
- h('div', { class: `${a}-divider__title` }, this.$slots),
- h('div', {
- class: `${a}-divider__line ${a}-divider__line--right`
- })
- )
- : null
- )
- );
- }
- }),
- DX = e => {
- const {
- modalColor: t,
- textColor1: n,
- textColor2: r,
- boxShadow3: o,
- lineHeight: i,
- fontWeightStrong: a,
- dividerColor: s,
- closeColorHover: c,
- closeColorPressed: d,
- closeIconColor: f,
- closeIconColorHover: v,
- closeIconColorPressed: p,
- borderRadius: m,
- primaryColorHover: g
- } = e;
- return {
- bodyPadding: '16px 24px',
- headerPadding: '16px 24px',
- footerPadding: '16px 24px',
- color: t,
- textColor: r,
- titleTextColor: n,
- titleFontSize: '18px',
- titleFontWeight: a,
- boxShadow: o,
- lineHeight: i,
- headerBorderBottom: `1px solid ${s}`,
- footerBorderTop: `1px solid ${s}`,
- closeIconColor: f,
- closeIconColorHover: v,
- closeIconColorPressed: p,
- closeSize: '22px',
- closeIconSize: '18px',
- closeColorHover: c,
- closeColorPressed: d,
- closeBorderRadius: m,
- resizableTriggerColorHover: g
- };
- },
- FX = { name: 'Drawer', common: Nt, peers: { Scrollbar: Qi }, self: DX },
- BX = FX,
- LX = Re({
- 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 = Z(!!e.show),
- n = Z(null),
- r = Ze(X0);
- let o = 0,
- i = '',
- a = null;
- const s = Z(!1),
- c = Z(!1),
- d = I(() => e.placement === 'top' || e.placement === 'bottom'),
- { mergedClsPrefixRef: f, mergedRtlRef: v } = yt(e),
- p = dr('Drawer', v, f),
- m = T => {
- (c.value = !0),
- (o = d.value ? T.clientY : T.clientX),
- (i = document.body.style.cursor),
- (document.body.style.cursor = d.value ? 'ns-resize' : 'ew-resize'),
- document.body.addEventListener('mousemove', C),
- document.body.addEventListener('mouseleave', S),
- document.body.addEventListener('mouseup', R);
- },
- g = () => {
- a !== null && (window.clearTimeout(a), (a = null)),
- c.value
- ? (s.value = !0)
- : (a = window.setTimeout(() => {
- s.value = !0;
- }, 300));
- },
- w = () => {
- a !== null && (window.clearTimeout(a), (a = null)), (s.value = !1);
- },
- { doUpdateHeight: x, doUpdateWidth: y } = r,
- C = T => {
- var A, z;
- if (c.value)
- if (d.value) {
- let k =
- ((A = n.value) === null || A === void 0
- ? void 0
- : A.offsetHeight) || 0;
- const M = o - T.clientY;
- (k += e.placement === 'bottom' ? M : -M), x(k), (o = T.clientY);
- } else {
- let k =
- ((z = n.value) === null || z === void 0
- ? void 0
- : z.offsetWidth) || 0;
- const M = o - T.clientX;
- (k += e.placement === 'right' ? M : -M), y(k), (o = T.clientX);
- }
- },
- R = () => {
- c.value &&
- ((o = 0),
- (c.value = !1),
- (document.body.style.cursor = i),
- document.body.removeEventListener('mousemove', C),
- document.body.removeEventListener('mouseup', R),
- document.body.removeEventListener('mouseleave', S));
- },
- S = R;
- Bn(() => {
- e.show && (t.value = !0);
- }),
- $t(
- () => e.show,
- T => {
- T || R();
- }
- ),
- qn(() => {
- R();
- });
- const _ = I(() => {
- const { show: T } = e,
- A = [[vi, T]];
- return (
- e.showMask || A.push([xa, e.onClickoutside, void 0, { capture: !0 }]),
- A
- );
- });
- function P() {
- var T;
- (t.value = !1),
- (T = e.onAfterLeave) === null || T === void 0 || T.call(e);
- }
- return (
- cP(I(() => e.blockScroll && t.value)),
- Rt(Nu, n),
- Rt(Gc, null),
- Rt(Lu, null),
- {
- bodyRef: n,
- rtlEnabled: p,
- mergedClsPrefix: r.mergedClsPrefixRef,
- isMounted: r.isMountedRef,
- mergedTheme: r.mergedThemeRef,
- displayed: t,
- transitionName: I(
- () =>
- ({
- 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: P,
- bodyDirectives: _,
- handleMousedownResizeTrigger: m,
- handleMouseenterResizeTrigger: g,
- handleMouseleaveResizeTrigger: w,
- isDragging: c,
- isHoverOnResizeTrigger: s
- }
- );
- },
- render() {
- const { $slots: e, mergedClsPrefix: t } = this;
- return this.displayDirective === 'show' || this.displayed || this.show
- ? Er(
- h(
- 'div',
- { role: 'none' },
- h(
- Q0,
- {
- disabled: !this.showMask || !this.trapFocus,
- active: this.show,
- autoFocus: this.autoFocus,
- onEsc: this.onEsc
- },
- {
- default: () =>
- h(
- Kn,
- {
- name: this.transitionName,
- appear: this.isMounted,
- onAfterEnter: this.onAfterEnter,
- onAfterLeave: this.handleAfterLeave
- },
- {
- default: () =>
- Er(
- h(
- 'div',
- qr(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
- ? h('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
- ? h(
- 'div',
- {
- class: `${t}-drawer-content-wrapper`,
- style: this.contentStyle,
- role: 'none'
- },
- e
- )
- : h(
- yr,
- 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
- )
- }
- )
- }
- )
- ),
- [
- [
- vi,
- this.displayDirective === 'if' || this.displayed || this.show
- ]
- ]
- )
- : null;
- }
- }),
- { cubicBezierEaseIn: NX, cubicBezierEaseOut: HX } = Bo;
- function jX({
- duration: e = '0.3s',
- leaveDuration: t = '0.2s',
- name: n = 'slide-in-from-right'
- } = {}) {
- return [
- F(`&.${n}-transition-leave-active`, { transition: `transform ${t} ${NX}` }),
- F(`&.${n}-transition-enter-active`, { transition: `transform ${e} ${HX}` }),
- F(`&.${n}-transition-enter-to`, { transform: 'translateX(0)' }),
- F(`&.${n}-transition-enter-from`, { transform: 'translateX(100%)' }),
- F(`&.${n}-transition-leave-from`, { transform: 'translateX(0)' }),
- F(`&.${n}-transition-leave-to`, { transform: 'translateX(100%)' })
- ];
- }
- const { cubicBezierEaseIn: UX, cubicBezierEaseOut: WX } = Bo;
- function VX({
- duration: e = '0.3s',
- leaveDuration: t = '0.2s',
- name: n = 'slide-in-from-left'
- } = {}) {
- return [
- F(`&.${n}-transition-leave-active`, { transition: `transform ${t} ${UX}` }),
- F(`&.${n}-transition-enter-active`, { transition: `transform ${e} ${WX}` }),
- F(`&.${n}-transition-enter-to`, { transform: 'translateX(0)' }),
- F(`&.${n}-transition-enter-from`, { transform: 'translateX(-100%)' }),
- F(`&.${n}-transition-leave-from`, { transform: 'translateX(0)' }),
- F(`&.${n}-transition-leave-to`, { transform: 'translateX(-100%)' })
- ];
- }
- const { cubicBezierEaseIn: KX, cubicBezierEaseOut: qX } = Bo;
- function YX({
- duration: e = '0.3s',
- leaveDuration: t = '0.2s',
- name: n = 'slide-in-from-top'
- } = {}) {
- return [
- F(`&.${n}-transition-leave-active`, { transition: `transform ${t} ${KX}` }),
- F(`&.${n}-transition-enter-active`, { transition: `transform ${e} ${qX}` }),
- F(`&.${n}-transition-enter-to`, { transform: 'translateY(0)' }),
- F(`&.${n}-transition-enter-from`, { transform: 'translateY(-100%)' }),
- F(`&.${n}-transition-leave-from`, { transform: 'translateY(0)' }),
- F(`&.${n}-transition-leave-to`, { transform: 'translateY(-100%)' })
- ];
- }
- const { cubicBezierEaseIn: GX, cubicBezierEaseOut: XX } = Bo;
- function ZX({
- duration: e = '0.3s',
- leaveDuration: t = '0.2s',
- name: n = 'slide-in-from-bottom'
- } = {}) {
- return [
- F(`&.${n}-transition-leave-active`, { transition: `transform ${t} ${GX}` }),
- F(`&.${n}-transition-enter-active`, { transition: `transform ${e} ${XX}` }),
- F(`&.${n}-transition-enter-to`, { transform: 'translateY(0)' }),
- F(`&.${n}-transition-enter-from`, { transform: 'translateY(100%)' }),
- F(`&.${n}-transition-leave-from`, { transform: 'translateY(0)' }),
- F(`&.${n}-transition-leave-to`, { transform: 'translateY(100%)' })
- ];
- }
- const QX = F([
- O(
- 'drawer',
- `
- word-break: break-word;
- line-height: var(--n-line-height);
- position: absolute;
- pointer-events: all;
- box-shadow: var(--n-box-shadow);
- transition:
- background-color .3s var(--n-bezier),
- color .3s var(--n-bezier);
- background-color: var(--n-color);
- color: var(--n-text-color);
- box-sizing: border-box;
- `,
- [
- jX(),
- VX(),
- YX(),
- ZX(),
- U(
- 'unselectable',
- `
- user-select: none;
- -webkit-user-select: none;
- `
- ),
- U('native-scrollbar', [
- O(
- 'drawer-content-wrapper',
- `
- overflow: auto;
- height: 100%;
- `
- )
- ]),
- V(
- 'resize-trigger',
- `
- position: absolute;
- background-color: #0000;
- transition: background-color .3s var(--n-bezier);
- `,
- [
- U(
- 'hover',
- `
- background-color: var(--n-resize-trigger-color-hover);
- `
- )
- ]
- ),
- O(
- 'drawer-content-wrapper',
- `
- box-sizing: border-box;
- `
- ),
- O(
- 'drawer-content',
- `
- height: 100%;
- display: flex;
- flex-direction: column;
- `,
- [
- U('native-scrollbar', [
- O(
- 'drawer-body-content-wrapper',
- `
- height: 100%;
- overflow: auto;
- `
- )
- ]),
- O(
- 'drawer-body',
- `
- flex: 1 0 0;
- overflow: hidden;
- `
- ),
- O(
- 'drawer-body-content-wrapper',
- `
- box-sizing: border-box;
- padding: var(--n-body-padding);
- `
- ),
- O(
- 'drawer-header',
- `
- font-weight: var(--n-title-font-weight);
- line-height: 1;
- font-size: var(--n-title-font-size);
- color: var(--n-title-text-color);
- padding: var(--n-header-padding);
- transition: border .3s var(--n-bezier);
- border-bottom: 1px solid var(--n-divider-color);
- border-bottom: var(--n-header-border-bottom);
- display: flex;
- justify-content: space-between;
- align-items: center;
- `,
- [
- V(
- 'close',
- `
- margin-left: 6px;
- transition:
- background-color .3s var(--n-bezier),
- color .3s var(--n-bezier);
- `
- )
- ]
- ),
- O(
- 'drawer-footer',
- `
- display: flex;
- justify-content: flex-end;
- border-top: var(--n-footer-border-top);
- transition: border .3s var(--n-bezier);
- padding: var(--n-footer-padding);
- `
- )
- ]
- ),
- U(
- 'right-placement',
- `
- top: 0;
- bottom: 0;
- right: 0;
- `,
- [
- V(
- 'resize-trigger',
- `
- width: 3px;
- height: 100%;
- top: 0;
- left: 0;
- transform: translateX(-1.5px);
- cursor: ew-resize;
- `
- )
- ]
- ),
- U(
- 'left-placement',
- `
- top: 0;
- bottom: 0;
- left: 0;
- `,
- [
- V(
- 'resize-trigger',
- `
- width: 3px;
- height: 100%;
- top: 0;
- right: 0;
- transform: translateX(1.5px);
- cursor: ew-resize;
- `
- )
- ]
- ),
- U(
- 'top-placement',
- `
- top: 0;
- left: 0;
- right: 0;
- `,
- [
- V(
- 'resize-trigger',
- `
- width: 100%;
- height: 3px;
- bottom: 0;
- left: 0;
- transform: translateY(1.5px);
- cursor: ns-resize;
- `
- )
- ]
- ),
- U(
- 'bottom-placement',
- `
- left: 0;
- bottom: 0;
- right: 0;
- `,
- [
- V(
- 'resize-trigger',
- `
- width: 100%;
- height: 3px;
- top: 0;
- left: 0;
- transform: translateY(-1.5px);
- cursor: ns-resize;
- `
- )
- ]
- )
- ]
- ),
- F('body', [F('>', [O('drawer-container', { position: 'fixed' })])]),
- O(
- 'drawer-container',
- `
- position: relative;
- position: absolute;
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- pointer-events: none;
- `,
- [F('> *', { pointerEvents: 'all' })]
- ),
- O(
- 'drawer-mask',
- `
- background-color: rgba(0, 0, 0, .3);
- position: absolute;
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- `,
- [
- U(
- 'invisible',
- `
- background-color: rgba(0, 0, 0, 0)
- `
- ),
- Cs({
- enterDuration: '0.2s',
- leaveDuration: '0.2s',
- enterCubicBezier: 'var(--n-bezier-in)',
- leaveCubicBezier: 'var(--n-bezier-out)'
- })
- ]
- )
- ]),
- JX = Object.assign(Object.assign({}, Ke.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
- }),
- eZ = Re({
- name: 'Drawer',
- inheritAttrs: !1,
- props: JX,
- setup(e) {
- const {
- mergedClsPrefixRef: t,
- namespaceRef: n,
- inlineThemeDisabled: r
- } = yt(e),
- o = yi(),
- i = Ke('Drawer', '-drawer', QX, BX, e, t),
- a = Z(e.defaultWidth),
- s = Z(e.defaultHeight),
- c = An(Ee(e, 'width'), a),
- d = An(Ee(e, 'height'), s),
- f = I(() => {
- const { placement: _ } = e;
- return _ === 'top' || _ === 'bottom' ? '' : vn(c.value);
- }),
- v = I(() => {
- const { placement: _ } = e;
- return _ === 'left' || _ === 'right' ? '' : vn(d.value);
- }),
- p = _ => {
- const { onUpdateWidth: P, 'onUpdate:width': T } = e;
- P && ze(P, _), T && ze(T, _), (a.value = _);
- },
- m = _ => {
- const { onUpdateHeight: P, 'onUpdate:width': T } = e;
- P && ze(P, _), T && ze(T, _), (s.value = _);
- },
- g = I(() => [{ width: f.value, height: v.value }, e.drawerStyle || '']);
- function w(_) {
- const { onMaskClick: P, maskClosable: T } = e;
- T && C(!1), P && P(_);
- }
- const x = dP();
- function y(_) {
- var P;
- (P = e.onEsc) === null || P === void 0 || P.call(e),
- e.show && e.closeOnEsc && HR(_) && !x.value && C(!1);
- }
- function C(_) {
- const { onHide: P, onUpdateShow: T, 'onUpdate:show': A } = e;
- T && ze(T, _), A && ze(A, _), P && !_ && ze(P, _);
- }
- Rt(X0, {
- isMountedRef: o,
- mergedThemeRef: i,
- mergedClsPrefixRef: t,
- doUpdateShow: C,
- doUpdateHeight: m,
- doUpdateWidth: p
- });
- const R = I(() => {
- const {
- common: {
- cubicBezierEaseInOut: _,
- cubicBezierEaseIn: P,
- cubicBezierEaseOut: T
- },
- self: {
- color: A,
- textColor: z,
- boxShadow: k,
- lineHeight: M,
- headerPadding: E,
- footerPadding: D,
- bodyPadding: L,
- titleFontSize: j,
- titleTextColor: B,
- titleFontWeight: q,
- headerBorderBottom: G,
- footerBorderTop: ne,
- closeIconColor: X,
- closeIconColorHover: J,
- closeIconColorPressed: re,
- closeColorHover: ce,
- closeColorPressed: pe,
- closeIconSize: Fe,
- closeSize: Ie,
- closeBorderRadius: le,
- resizableTriggerColorHover: me
- }
- } = i.value;
- return {
- '--n-line-height': M,
- '--n-color': A,
- '--n-text-color': z,
- '--n-box-shadow': k,
- '--n-bezier': _,
- '--n-bezier-out': T,
- '--n-bezier-in': P,
- '--n-header-padding': E,
- '--n-body-padding': L,
- '--n-footer-padding': D,
- '--n-title-text-color': B,
- '--n-title-font-size': j,
- '--n-title-font-weight': q,
- '--n-header-border-bottom': G,
- '--n-footer-border-top': ne,
- '--n-close-icon-color': X,
- '--n-close-icon-color-hover': J,
- '--n-close-icon-color-pressed': re,
- '--n-close-size': Ie,
- '--n-close-color-hover': ce,
- '--n-close-color-pressed': pe,
- '--n-close-icon-size': Fe,
- '--n-close-border-radius': le,
- '--n-resize-trigger-color-hover': me
- };
- }),
- S = r ? Mt('drawer', void 0, R, e) : void 0;
- return {
- mergedClsPrefix: t,
- namespace: n,
- mergedBodyStyle: g,
- handleMaskClick: w,
- handleEsc: y,
- mergedTheme: i,
- cssVars: r ? void 0 : R,
- themeClass: S == null ? void 0 : S.themeClass,
- onRender: S == null ? void 0 : S.onRender,
- isMounted: o
- };
- },
- render() {
- const { mergedClsPrefix: e } = this;
- return h(
- ju,
- { to: this.to, show: this.show },
- {
- default: () => {
- var t;
- return (
- (t = this.onRender) === null || t === void 0 || t.call(this),
- Er(
- h(
- 'div',
- {
- class: [
- `${e}-drawer-container`,
- this.namespace,
- this.themeClass
- ],
- style: this.cssVars,
- role: 'none'
- },
- this.showMask
- ? h(
- Kn,
- { name: 'fade-in-transition', appear: this.isMounted },
- {
- default: () =>
- this.show
- ? h('div', {
- 'aria-hidden': !0,
- class: [
- `${e}-drawer-mask`,
- this.showMask === 'transparent' &&
- `${e}-drawer-mask--invisible`
- ],
- onClick: this.handleMaskClick
- })
- : null
- }
- )
- : null,
- h(
- LX,
- 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
- )
- ),
- [[Hu, { zIndex: this.zIndex, enabled: this.show }]]
- )
- );
- }
- }
- );
- }
- }),
- tZ = {
- title: { type: String },
- headerStyle: [Object, String],
- footerStyle: [Object, String],
- bodyStyle: [Object, String],
- bodyContentStyle: [Object, String],
- nativeScrollbar: { type: Boolean, default: !0 },
- scrollbarProps: Object,
- closable: Boolean
- },
- nZ = Re({
- name: 'DrawerContent',
- props: tZ,
- setup() {
- const e = Ze(X0, null);
- e ||
- io(
- 'drawer-content',
- '`n-drawer-content` must be placed inside `n-drawer`.'
- );
- const { doUpdateShow: t } = e;
- function n() {
- t(!1);
- }
- return {
- handleCloseClick: n,
- mergedTheme: e.mergedThemeRef,
- mergedClsPrefix: e.mergedClsPrefixRef
- };
- },
- render() {
- const {
- title: e,
- mergedClsPrefix: t,
- nativeScrollbar: n,
- mergedTheme: r,
- bodyStyle: o,
- bodyContentStyle: i,
- headerStyle: a,
- footerStyle: s,
- scrollbarProps: c,
- closable: d,
- $slots: f
- } = this;
- return h(
- 'div',
- {
- role: 'none',
- class: [
- `${t}-drawer-content`,
- n && `${t}-drawer-content--native-scrollbar`
- ]
- },
- f.header || e || d
- ? h(
- 'div',
- { class: `${t}-drawer-header`, style: a, role: 'none' },
- h(
- 'div',
- {
- class: `${t}-drawer-header__main`,
- role: 'heading',
- 'aria-level': '1'
- },
- f.header !== void 0 ? f.header() : e
- ),
- d &&
- h(Sl, {
- onClick: this.handleCloseClick,
- clsPrefix: t,
- class: `${t}-drawer-header__close`,
- absolute: !0
- })
- )
- : null,
- n
- ? h(
- 'div',
- { class: `${t}-drawer-body`, style: o, role: 'none' },
- h(
- 'div',
- {
- class: `${t}-drawer-body-content-wrapper`,
- style: i,
- role: 'none'
- },
- f
- )
- )
- : h(
- yr,
- Object.assign(
- {
- themeOverrides: r.peerOverrides.Scrollbar,
- theme: r.peers.Scrollbar
- },
- c,
- {
- class: `${t}-drawer-body`,
- contentClass: `${t}-drawer-body-content-wrapper`,
- contentStyle: i
- }
- ),
- f
- ),
- f.footer
- ? h(
- 'div',
- { class: `${t}-drawer-footer`, style: s, role: 'none' },
- f.footer()
- )
- : null
- );
- }
- }),
- rZ = { gapSmall: '4px 8px', gapMedium: '8px 12px', gapLarge: '12px 16px' },
- oZ = () => rZ,
- iZ = { name: 'Space', self: oZ },
- aZ = iZ;
- let tm;
- const lZ = () => {
- if (!Fo) return !0;
- if (tm === 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), (tm = t);
- }
- return tm;
- },
- sZ = Object.assign(Object.assign({}, Ke.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 }
- }),
- cZ = Re({
- name: 'Space',
- props: sZ,
- setup(e) {
- const { mergedClsPrefixRef: t, mergedRtlRef: n } = yt(e),
- r = Ke('Space', '-space', void 0, aZ, e, t),
- o = dr('Space', n, t);
- return {
- useGap: lZ(),
- rtlEnabled: o,
- mergedClsPrefix: t,
- margin: I(() => {
- const { size: i } = e;
- if (Array.isArray(i)) return { horizontal: i[0], vertical: i[1] };
- if (typeof i == 'number') return { horizontal: i, vertical: i };
- const {
- self: { [Oe('gap', i)]: a }
- } = r.value,
- { row: s, col: c } = EI(a);
- return { horizontal: Lr(c), vertical: Lr(s) };
- })
- };
- },
- render() {
- const {
- vertical: e,
- align: t,
- inline: n,
- justify: r,
- itemStyle: o,
- margin: i,
- wrap: a,
- mergedClsPrefix: s,
- rtlEnabled: c,
- useGap: d,
- wrapItem: f,
- internalUseGap: v
- } = this,
- p = hi(Fu(this));
- if (!p.length) return null;
- const m = `${i.horizontal}px`,
- g = `${i.horizontal / 2}px`,
- w = `${i.vertical}px`,
- x = `${i.vertical / 2}px`,
- y = p.length - 1,
- C = r.startsWith('space-');
- return h(
- 'div',
- {
- role: 'none',
- class: [`${s}-space`, c && `${s}-space--rtl`],
- style: {
- display: n ? 'inline-flex' : 'flex',
- flexDirection: e ? 'column' : 'row',
- justifyContent: ['start', 'end'].includes(r) ? 'flex-' + r : r,
- flexWrap: !a || e ? 'nowrap' : 'wrap',
- marginTop: d || e ? '' : `-${x}`,
- marginBottom: d || e ? '' : `-${x}`,
- alignItems: t,
- gap: d ? `${i.vertical}px ${i.horizontal}px` : ''
- }
- },
- !f && (d || v)
- ? p
- : p.map((R, S) =>
- h(
- 'div',
- {
- role: 'none',
- style: [
- o,
- { maxWidth: '100%' },
- d
- ? ''
- : e
- ? { marginBottom: S !== y ? w : '' }
- : c
- ? {
- marginLeft: C
- ? r === 'space-between' && S === y
- ? ''
- : g
- : S !== y
- ? m
- : '',
- marginRight: C
- ? r === 'space-between' && S === 0
- ? ''
- : g
- : '',
- paddingTop: x,
- paddingBottom: x
- }
- : {
- marginRight: C
- ? r === 'space-between' && S === y
- ? ''
- : g
- : S !== y
- ? m
- : '',
- marginLeft: C
- ? r === 'space-between' && S === 0
- ? ''
- : g
- : '',
- paddingTop: x,
- paddingBottom: x
- }
- ]
- },
- R
- )
- )
- );
- }
- }),
- dZ = { name: 'Element', common: Nt },
- uZ = dZ,
- fZ = Object.assign(Object.assign({}, Ke.props), {
- tag: { type: String, default: 'div' }
- }),
- hZ = Re({
- name: 'Element',
- alias: ['El'],
- props: fZ,
- setup(e) {
- const { mergedClsPrefixRef: t, inlineThemeDisabled: n } = yt(e),
- r = Ke('Element', '-element', void 0, uZ, e, t),
- o = I(() => {
- const { common: a } = r.value;
- return Object.keys(a).reduce(
- (s, c) => ((s[`--${ZP(c)}`] = a[c]), s),
- {}
- );
- }),
- i = n ? Mt('element', void 0, o, e) : void 0;
- return {
- mergedClsPrefix: t,
- cssVars: n ? void 0 : o,
- themeClass: i == null ? void 0 : i.themeClass,
- onRender: i == null ? void 0 : i.onRender
- };
- },
- render() {
- var e;
- const {
- tag: t,
- mergedClsPrefix: n,
- cssVars: r,
- themeClass: o,
- onRender: i,
- $slots: a
- } = this;
- return (
- i == null || i(),
- h(
- t,
- { role: 'none', class: [`${n}-element`, o], style: r },
- (e = a.default) === null || e === void 0 ? void 0 : e.call(a)
- )
- );
- }
- }),
- vZ = {
- 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'
- },
- pZ = e => {
- const {
- heightSmall: t,
- heightMedium: n,
- heightLarge: r,
- textColor1: o,
- errorColor: i,
- warningColor: a,
- lineHeight: s,
- textColor3: c
- } = e;
- return Object.assign(Object.assign({}, vZ), {
- blankHeightSmall: t,
- blankHeightMedium: n,
- blankHeightLarge: r,
- lineHeight: s,
- labelTextColor: o,
- asteriskColor: i,
- feedbackTextColorError: i,
- feedbackTextColorWarning: a,
- feedbackTextColor: c
- });
- },
- gZ = { name: 'Form', common: Nt, self: pZ },
- I3 = gZ,
- mZ = O('form', [
- U(
- 'inline',
- `
- width: 100%;
- display: inline-flex;
- align-items: flex-start;
- align-content: space-around;
- `,
- [
- O('form-item', { width: 'auto', marginRight: '18px' }, [
- F('&:last-child', { marginRight: 0 })
- ])
- ]
- )
- ]),
- qu = 'n-form',
- D3 = 'n-form-item-insts';
- var bZ =
- (globalThis && globalThis.__awaiter) ||
- function (e, t, n, r) {
- function o(i) {
- return i instanceof n
- ? i
- : new n(function (a) {
- a(i);
- });
- }
- return new (n || (n = Promise))(function (i, a) {
- function s(f) {
- try {
- d(r.next(f));
- } catch (v) {
- a(v);
- }
- }
- function c(f) {
- try {
- d(r.throw(f));
- } catch (v) {
- a(v);
- }
- }
- function d(f) {
- f.done ? i(f.value) : o(f.value).then(s, c);
- }
- d((r = r.apply(e, t || [])).next());
- });
- };
- const yZ = Object.assign(Object.assign({}, Ke.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
- }),
- xZ = Re({
- name: 'Form',
- props: yZ,
- setup(e) {
- const { mergedClsPrefixRef: t } = yt(e);
- Ke('Form', '-form', mZ, I3, e, t);
- const n = {},
- r = Z(void 0),
- o = c => {
- const d = r.value;
- (d === void 0 || c >= d) && (r.value = c);
- };
- function i(c, d = () => !0) {
- return bZ(this, void 0, void 0, function* () {
- yield new Promise((f, v) => {
- const p = [];
- for (const m of Vi(n)) {
- const g = n[m];
- for (const w of g) w.path && p.push(w.internalValidate(null, d));
- }
- Promise.all(p).then(m => {
- if (m.some(g => !g.valid)) {
- const g = m.filter(w => w.errors).map(w => w.errors);
- c && c(g), v(g);
- } else c && c(), f();
- });
- });
- });
- }
- function a() {
- for (const c of Vi(n)) {
- const d = n[c];
- for (const f of d) f.restoreValidation();
- }
- }
- return (
- Rt(qu, {
- props: e,
- maxChildLabelWidthRef: r,
- deriveMaxChildLabelWidth: o
- }),
- Rt(D3, { formItems: n }),
- Object.assign(
- { validate: i, restoreValidation: a },
- { mergedClsPrefix: t }
- )
- );
- },
- render() {
- const { mergedClsPrefix: e } = this;
- return h(
- 'form',
- {
- class: [`${e}-form`, this.inline && `${e}-form--inline`],
- onSubmit: this.onSubmit
- },
- this.$slots
- );
- }
- });
- function fs() {
- return (
- (fs = Object.assign
- ? Object.assign.bind()
- : function (e) {
- for (var t = 1; t < arguments.length; t++) {
- var n = arguments[t];
- for (var r in n)
- Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
- }
- return e;
- }),
- fs.apply(this, arguments)
- );
- }
- function wZ(e, t) {
- (e.prototype = Object.create(t.prototype)),
- (e.prototype.constructor = e),
- $u(e, t);
- }
- function Jb(e) {
- return (
- (Jb = Object.setPrototypeOf
- ? Object.getPrototypeOf.bind()
- : function (n) {
- return n.__proto__ || Object.getPrototypeOf(n);
- }),
- Jb(e)
- );
- }
- function $u(e, t) {
- return (
- ($u = Object.setPrototypeOf
- ? Object.setPrototypeOf.bind()
- : function (r, o) {
- return (r.__proto__ = o), r;
- }),
- $u(e, t)
- );
- }
- function CZ() {
- if (typeof Reflect > 'u' || !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 Bh(e, t, n) {
- return (
- CZ()
- ? (Bh = Reflect.construct.bind())
- : (Bh = function (o, i, a) {
- var s = [null];
- s.push.apply(s, i);
- var c = Function.bind.apply(o, s),
- d = new c();
- return a && $u(d, a.prototype), d;
- }),
- Bh.apply(null, arguments)
- );
- }
- function SZ(e) {
- return Function.toString.call(e).indexOf('[native code]') !== -1;
- }
- function e0(e) {
- var t = typeof Map == 'function' ? new Map() : void 0;
- return (
- (e0 = function (r) {
- if (r === null || !SZ(r)) return r;
- if (typeof r != 'function')
- throw new TypeError(
- 'Super expression must either be null or a function'
- );
- if (typeof t < 'u') {
- if (t.has(r)) return t.get(r);
- t.set(r, o);
- }
- function o() {
- return Bh(r, arguments, Jb(this).constructor);
- }
- return (
- (o.prototype = Object.create(r.prototype, {
- constructor: {
- value: o,
- enumerable: !1,
- writable: !0,
- configurable: !0
- }
- })),
- $u(o, r)
- );
- }),
- e0(e)
- );
- }
- var _Z = /%[sdj%]/g,
- RZ = function () {};
- typeof process < 'u' && process.env;
- function t0(e) {
- if (!e || !e.length) return null;
- var t = {};
- return (
- e.forEach(function (n) {
- var r = n.field;
- (t[r] = t[r] || []), t[r].push(n);
- }),
- t
- );
- }
- function Ao(e) {
- for (
- var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1;
- r < t;
- r++
- )
- n[r - 1] = arguments[r];
- var o = 0,
- i = n.length;
- if (typeof e == 'function') return e.apply(null, n);
- if (typeof e == 'string') {
- var a = e.replace(_Z, function (s) {
- if (s === '%%') return '%';
- if (o >= i) return s;
- switch (s) {
- case '%s':
- return String(n[o++]);
- case '%d':
- return Number(n[o++]);
- case '%j':
- try {
- return JSON.stringify(n[o++]);
- } catch (c) {
- return '[Circular]';
- }
- break;
- default:
- return s;
- }
- });
- return a;
- }
- return e;
- }
- function PZ(e) {
- return (
- e === 'string' ||
- e === 'url' ||
- e === 'hex' ||
- e === 'email' ||
- e === 'date' ||
- e === 'pattern'
- );
- }
- function Rr(e, t) {
- return !!(
- e == null ||
- (t === 'array' && Array.isArray(e) && !e.length) ||
- (PZ(t) && typeof e == 'string' && !e)
- );
- }
- function kZ(e, t, n) {
- var r = [],
- o = 0,
- i = e.length;
- function a(s) {
- r.push.apply(r, s || []), o++, o === i && n(r);
- }
- e.forEach(function (s) {
- t(s, a);
- });
- }
- function QS(e, t, n) {
- var r = 0,
- o = e.length;
- function i(a) {
- if (a && a.length) {
- n(a);
- return;
- }
- var s = r;
- (r = r + 1), s < o ? t(e[s], i) : n([]);
- }
- i([]);
- }
- function TZ(e) {
- var t = [];
- return (
- Object.keys(e).forEach(function (n) {
- t.push.apply(t, e[n] || []);
- }),
- t
- );
- }
- var JS = (function (e) {
- wZ(t, e);
- function t(n, r) {
- var o;
- return (
- (o = e.call(this, 'Async Validation Error') || this),
- (o.errors = n),
- (o.fields = r),
- o
- );
- }
- return t;
- })(e0(Error));
- function $Z(e, t, n, r, o) {
- if (t.first) {
- var i = new Promise(function (p, m) {
- var g = function (y) {
- return r(y), y.length ? m(new JS(y, t0(y))) : p(o);
- },
- w = TZ(e);
- QS(w, n, g);
- });
- return (
- i.catch(function (p) {
- return p;
- }),
- i
- );
- }
- var a = t.firstFields === !0 ? Object.keys(e) : t.firstFields || [],
- s = Object.keys(e),
- c = s.length,
- d = 0,
- f = [],
- v = new Promise(function (p, m) {
- var g = function (x) {
- if ((f.push.apply(f, x), d++, d === c))
- return r(f), f.length ? m(new JS(f, t0(f))) : p(o);
- };
- s.length || (r(f), p(o)),
- s.forEach(function (w) {
- var x = e[w];
- a.indexOf(w) !== -1 ? QS(x, n, g) : kZ(x, n, g);
- });
- });
- return (
- v.catch(function (p) {
- return p;
- }),
- v
- );
- }
- function OZ(e) {
- return !!(e && e.message !== void 0);
- }
- function zZ(e, t) {
- for (var n = e, r = 0; r < t.length; r++) {
- if (n == null) return n;
- n = n[t[r]];
- }
- return n;
- }
- function e2(e, t) {
- return function (n) {
- var r;
- return (
- e.fullFields
- ? (r = zZ(t, e.fullFields))
- : (r = t[n.field || e.fullField]),
- OZ(n)
- ? ((n.field = n.field || e.fullField), (n.fieldValue = r), n)
- : {
- message: typeof n == 'function' ? n() : n,
- fieldValue: r,
- field: n.field || e.fullField
- }
- );
- };
- }
- function t2(e, t) {
- if (t) {
- for (var n in t)
- if (t.hasOwnProperty(n)) {
- var r = t[n];
- typeof r == 'object' && typeof e[n] == 'object'
- ? (e[n] = fs({}, e[n], r))
- : (e[n] = r);
- }
- }
- return e;
- }
- var F3 = function (t, n, r, o, i, a) {
- t.required &&
- (!r.hasOwnProperty(t.field) || Rr(n, a || t.type)) &&
- o.push(Ao(i.messages.required, t.fullField));
- },
- AZ = function (t, n, r, o, i) {
- (/^\s+$/.test(n) || n === '') &&
- o.push(Ao(i.messages.whitespace, t.fullField));
- },
- wh,
- EZ = function () {
- if (wh) return wh;
- var e = '[a-fA-F\\d:]',
- t = function (S) {
- return S && S.includeBoundaries
- ? '(?:(?<=\\s|^)(?=' + e + ')|(?<=' + e + ')(?=\\s|$))'
- : '';
- },
- n =
- '(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}',
- r = '[a-fA-F\\d]{1,4}',
- o = (
- `
- (?:
- (?:` +
- r +
- ':){7}(?:' +
- r +
- `|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
- (?:` +
- r +
- ':){6}(?:' +
- n +
- '|:' +
- r +
- `|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
- (?:` +
- r +
- ':){5}(?::' +
- n +
- '|(?::' +
- r +
- `){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
- (?:` +
- r +
- ':){4}(?:(?::' +
- r +
- '){0,1}:' +
- n +
- '|(?::' +
- r +
- `){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
- (?:` +
- r +
- ':){3}(?:(?::' +
- r +
- '){0,2}:' +
- n +
- '|(?::' +
- r +
- `){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
- (?:` +
- r +
- ':){2}(?:(?::' +
- r +
- '){0,3}:' +
- n +
- '|(?::' +
- r +
- `){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
- (?:` +
- r +
- ':){1}(?:(?::' +
- r +
- '){0,4}:' +
- n +
- '|(?::' +
- r +
- `){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
- (?::(?:(?::` +
- r +
- '){0,5}:' +
- n +
- '|(?::' +
- r +
- `){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
- )(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
- `
- )
- .replace(/\s*\/\/.*$/gm, '')
- .replace(/\n/g, '')
- .trim(),
- i = new RegExp('(?:^' + n + '$)|(?:^' + o + '$)'),
- a = new RegExp('^' + n + '$'),
- s = new RegExp('^' + o + '$'),
- c = function (S) {
- return S && S.exact
- ? i
- : new RegExp(
- '(?:' + t(S) + n + t(S) + ')|(?:' + t(S) + o + t(S) + ')',
- 'g'
- );
- };
- (c.v4 = function (R) {
- return R && R.exact ? a : new RegExp('' + t(R) + n + t(R), 'g');
- }),
- (c.v6 = function (R) {
- return R && R.exact ? s : new RegExp('' + t(R) + o + t(R), 'g');
- });
- var d = '(?:(?:[a-z]+:)?//)',
- f = '(?:\\S+(?::\\S*)?@)?',
- v = c.v4().source,
- p = c.v6().source,
- m = '(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)',
- g = '(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*',
- w = '(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))',
- x = '(?::\\d{2,5})?',
- y = '(?:[/?#][^\\s"]*)?',
- C =
- '(?:' +
- d +
- '|www\\.)' +
- f +
- '(?:localhost|' +
- v +
- '|' +
- p +
- '|' +
- m +
- g +
- w +
- ')' +
- x +
- y;
- return (wh = new RegExp('(?:^' + C + '$)', 'i')), wh;
- },
- n2 = {
- 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,}))$/,
- hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i
- },
- Wd = {
- integer: function (t) {
- return Wd.number(t) && parseInt(t, 10) === t;
- },
- float: function (t) {
- return Wd.number(t) && !Wd.integer(t);
- },
- array: function (t) {
- return Array.isArray(t);
- },
- regexp: function (t) {
- if (t instanceof RegExp) return !0;
- try {
- return !!new RegExp(t);
- } catch (n) {
- 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' && !Wd.array(t);
- },
- method: function (t) {
- return typeof t == 'function';
- },
- email: function (t) {
- return typeof t == 'string' && t.length <= 320 && !!t.match(n2.email);
- },
- url: function (t) {
- return typeof t == 'string' && t.length <= 2048 && !!t.match(EZ());
- },
- hex: function (t) {
- return typeof t == 'string' && !!t.match(n2.hex);
- }
- },
- MZ = function (t, n, r, o, i) {
- if (t.required && n === void 0) {
- F3(t, n, r, o, i);
- return;
- }
- var a = [
- 'integer',
- 'float',
- 'array',
- 'regexp',
- 'object',
- 'method',
- 'email',
- 'number',
- 'date',
- 'url',
- 'hex'
- ],
- s = t.type;
- a.indexOf(s) > -1
- ? Wd[s](n) || o.push(Ao(i.messages.types[s], t.fullField, t.type))
- : s &&
- typeof n !== t.type &&
- o.push(Ao(i.messages.types[s], t.fullField, t.type));
- },
- IZ = function (t, n, r, o, i) {
- var a = typeof t.len == 'number',
- s = typeof t.min == 'number',
- c = typeof t.max == 'number',
- d = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g,
- f = n,
- v = null,
- p = typeof n == 'number',
- m = typeof n == 'string',
- g = Array.isArray(n);
- if ((p ? (v = 'number') : m ? (v = 'string') : g && (v = 'array'), !v))
- return !1;
- g && (f = n.length),
- m && (f = n.replace(d, '_').length),
- a
- ? f !== t.len && o.push(Ao(i.messages[v].len, t.fullField, t.len))
- : s && !c && f < t.min
- ? o.push(Ao(i.messages[v].min, t.fullField, t.min))
- : c && !s && f > t.max
- ? o.push(Ao(i.messages[v].max, t.fullField, t.max))
- : s &&
- c &&
- (f < t.min || f > t.max) &&
- o.push(Ao(i.messages[v].range, t.fullField, t.min, t.max));
- },
- hc = 'enum',
- DZ = function (t, n, r, o, i) {
- (t[hc] = Array.isArray(t[hc]) ? t[hc] : []),
- t[hc].indexOf(n) === -1 &&
- o.push(Ao(i.messages[hc], t.fullField, t[hc].join(', ')));
- },
- FZ = function (t, n, r, o, i) {
- if (t.pattern) {
- if (t.pattern instanceof RegExp)
- (t.pattern.lastIndex = 0),
- t.pattern.test(n) ||
- o.push(Ao(i.messages.pattern.mismatch, t.fullField, n, t.pattern));
- else if (typeof t.pattern == 'string') {
- var a = new RegExp(t.pattern);
- a.test(n) ||
- o.push(Ao(i.messages.pattern.mismatch, t.fullField, n, t.pattern));
- }
- }
- },
- gn = {
- required: F3,
- whitespace: AZ,
- type: MZ,
- range: IZ,
- enum: DZ,
- pattern: FZ
- },
- BZ = function (t, n, r, o, i) {
- var a = [],
- s = t.required || (!t.required && o.hasOwnProperty(t.field));
- if (s) {
- if (Rr(n, 'string') && !t.required) return r();
- gn.required(t, n, o, a, i, 'string'),
- Rr(n, 'string') ||
- (gn.type(t, n, o, a, i),
- gn.range(t, n, o, a, i),
- gn.pattern(t, n, o, a, i),
- t.whitespace === !0 && gn.whitespace(t, n, o, a, i));
- }
- r(a);
- },
- LZ = function (t, n, r, o, i) {
- var a = [],
- s = t.required || (!t.required && o.hasOwnProperty(t.field));
- if (s) {
- if (Rr(n) && !t.required) return r();
- gn.required(t, n, o, a, i), n !== void 0 && gn.type(t, n, o, a, i);
- }
- r(a);
- },
- NZ = function (t, n, r, o, i) {
- var a = [],
- s = t.required || (!t.required && o.hasOwnProperty(t.field));
- if (s) {
- if ((n === '' && (n = void 0), Rr(n) && !t.required)) return r();
- gn.required(t, n, o, a, i),
- n !== void 0 && (gn.type(t, n, o, a, i), gn.range(t, n, o, a, i));
- }
- r(a);
- },
- HZ = function (t, n, r, o, i) {
- var a = [],
- s = t.required || (!t.required && o.hasOwnProperty(t.field));
- if (s) {
- if (Rr(n) && !t.required) return r();
- gn.required(t, n, o, a, i), n !== void 0 && gn.type(t, n, o, a, i);
- }
- r(a);
- },
- jZ = function (t, n, r, o, i) {
- var a = [],
- s = t.required || (!t.required && o.hasOwnProperty(t.field));
- if (s) {
- if (Rr(n) && !t.required) return r();
- gn.required(t, n, o, a, i), Rr(n) || gn.type(t, n, o, a, i);
- }
- r(a);
- },
- UZ = function (t, n, r, o, i) {
- var a = [],
- s = t.required || (!t.required && o.hasOwnProperty(t.field));
- if (s) {
- if (Rr(n) && !t.required) return r();
- gn.required(t, n, o, a, i),
- n !== void 0 && (gn.type(t, n, o, a, i), gn.range(t, n, o, a, i));
- }
- r(a);
- },
- WZ = function (t, n, r, o, i) {
- var a = [],
- s = t.required || (!t.required && o.hasOwnProperty(t.field));
- if (s) {
- if (Rr(n) && !t.required) return r();
- gn.required(t, n, o, a, i),
- n !== void 0 && (gn.type(t, n, o, a, i), gn.range(t, n, o, a, i));
- }
- r(a);
- },
- VZ = function (t, n, r, o, i) {
- var a = [],
- s = t.required || (!t.required && o.hasOwnProperty(t.field));
- if (s) {
- if (n == null && !t.required) return r();
- gn.required(t, n, o, a, i, 'array'),
- n != null && (gn.type(t, n, o, a, i), gn.range(t, n, o, a, i));
- }
- r(a);
- },
- KZ = function (t, n, r, o, i) {
- var a = [],
- s = t.required || (!t.required && o.hasOwnProperty(t.field));
- if (s) {
- if (Rr(n) && !t.required) return r();
- gn.required(t, n, o, a, i), n !== void 0 && gn.type(t, n, o, a, i);
- }
- r(a);
- },
- qZ = 'enum',
- YZ = function (t, n, r, o, i) {
- var a = [],
- s = t.required || (!t.required && o.hasOwnProperty(t.field));
- if (s) {
- if (Rr(n) && !t.required) return r();
- gn.required(t, n, o, a, i), n !== void 0 && gn[qZ](t, n, o, a, i);
- }
- r(a);
- },
- GZ = function (t, n, r, o, i) {
- var a = [],
- s = t.required || (!t.required && o.hasOwnProperty(t.field));
- if (s) {
- if (Rr(n, 'string') && !t.required) return r();
- gn.required(t, n, o, a, i), Rr(n, 'string') || gn.pattern(t, n, o, a, i);
- }
- r(a);
- },
- XZ = function (t, n, r, o, i) {
- var a = [],
- s = t.required || (!t.required && o.hasOwnProperty(t.field));
- if (s) {
- if (Rr(n, 'date') && !t.required) return r();
- if ((gn.required(t, n, o, a, i), !Rr(n, 'date'))) {
- var c;
- n instanceof Date ? (c = n) : (c = new Date(n)),
- gn.type(t, c, o, a, i),
- c && gn.range(t, c.getTime(), o, a, i);
- }
- }
- r(a);
- },
- ZZ = function (t, n, r, o, i) {
- var a = [],
- s = Array.isArray(n) ? 'array' : typeof n;
- gn.required(t, n, o, a, i, s), r(a);
- },
- nm = function (t, n, r, o, i) {
- var a = t.type,
- s = [],
- c = t.required || (!t.required && o.hasOwnProperty(t.field));
- if (c) {
- if (Rr(n, a) && !t.required) return r();
- gn.required(t, n, o, s, i, a), Rr(n, a) || gn.type(t, n, o, s, i);
- }
- r(s);
- },
- QZ = function (t, n, r, o, i) {
- var a = [],
- s = t.required || (!t.required && o.hasOwnProperty(t.field));
- if (s) {
- if (Rr(n) && !t.required) return r();
- gn.required(t, n, o, a, i);
- }
- r(a);
- },
- nu = {
- string: BZ,
- method: LZ,
- number: NZ,
- boolean: HZ,
- regexp: jZ,
- integer: UZ,
- float: WZ,
- array: VZ,
- object: KZ,
- enum: YZ,
- pattern: GZ,
- date: XZ,
- url: nm,
- hex: nm,
- email: nm,
- required: ZZ,
- any: QZ
- };
- function n0() {
- 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 r0 = n0(),
- Yu = (function () {
- function e(n) {
- (this.rules = null), (this._messages = r0), this.define(n);
- }
- var t = e.prototype;
- return (
- (t.define = function (r) {
- var o = this;
- if (!r) throw new Error('Cannot configure a schema with no rules');
- if (typeof r != 'object' || Array.isArray(r))
- throw new Error('Rules must be an object');
- (this.rules = {}),
- Object.keys(r).forEach(function (i) {
- var a = r[i];
- o.rules[i] = Array.isArray(a) ? a : [a];
- });
- }),
- (t.messages = function (r) {
- return r && (this._messages = t2(n0(), r)), this._messages;
- }),
- (t.validate = function (r, o, i) {
- var a = this;
- o === void 0 && (o = {}), i === void 0 && (i = function () {});
- var s = r,
- c = o,
- d = i;
- if (
- (typeof c == 'function' && ((d = c), (c = {})),
- !this.rules || Object.keys(this.rules).length === 0)
- )
- return d && d(null, s), Promise.resolve(s);
- function f(w) {
- var x = [],
- y = {};
- function C(S) {
- if (Array.isArray(S)) {
- var _;
- x = (_ = x).concat.apply(_, S);
- } else x.push(S);
- }
- for (var R = 0; R < w.length; R++) C(w[R]);
- x.length ? ((y = t0(x)), d(x, y)) : d(null, s);
- }
- if (c.messages) {
- var v = this.messages();
- v === r0 && (v = n0()), t2(v, c.messages), (c.messages = v);
- } else c.messages = this.messages();
- var p = {},
- m = c.keys || Object.keys(this.rules);
- m.forEach(function (w) {
- var x = a.rules[w],
- y = s[w];
- x.forEach(function (C) {
- var R = C;
- typeof R.transform == 'function' &&
- (s === r && (s = fs({}, s)), (y = s[w] = R.transform(y))),
- typeof R == 'function' ? (R = { validator: R }) : (R = fs({}, R)),
- (R.validator = a.getValidationMethod(R)),
- R.validator &&
- ((R.field = w),
- (R.fullField = R.fullField || w),
- (R.type = a.getType(R)),
- (p[w] = p[w] || []),
- p[w].push({ rule: R, value: y, source: s, field: w }));
- });
- });
- var g = {};
- return $Z(
- p,
- c,
- function (w, x) {
- var y = w.rule,
- C =
- (y.type === 'object' || y.type === 'array') &&
- (typeof y.fields == 'object' ||
- typeof y.defaultField == 'object');
- (C = C && (y.required || (!y.required && w.value))),
- (y.field = w.field);
- function R(P, T) {
- return fs({}, T, {
- fullField: y.fullField + '.' + P,
- fullFields: y.fullFields ? [].concat(y.fullFields, [P]) : [P]
- });
- }
- function S(P) {
- P === void 0 && (P = []);
- var T = Array.isArray(P) ? P : [P];
- !c.suppressWarning &&
- T.length &&
- e.warning('async-validator:', T),
- T.length && y.message !== void 0 && (T = [].concat(y.message));
- var A = T.map(e2(y, s));
- if (c.first && A.length) return (g[y.field] = 1), x(A);
- if (!C) x(A);
- else {
- if (y.required && !w.value)
- return (
- y.message !== void 0
- ? (A = [].concat(y.message).map(e2(y, s)))
- : c.error &&
- (A = [c.error(y, Ao(c.messages.required, y.field))]),
- x(A)
- );
- var z = {};
- y.defaultField &&
- Object.keys(w.value).map(function (E) {
- z[E] = y.defaultField;
- }),
- (z = fs({}, z, w.rule.fields));
- var k = {};
- Object.keys(z).forEach(function (E) {
- var D = z[E],
- L = Array.isArray(D) ? D : [D];
- k[E] = L.map(R.bind(null, E));
- });
- var M = new e(k);
- M.messages(c.messages),
- w.rule.options &&
- ((w.rule.options.messages = c.messages),
- (w.rule.options.error = c.error)),
- M.validate(w.value, w.rule.options || c, function (E) {
- var D = [];
- A && A.length && D.push.apply(D, A),
- E && E.length && D.push.apply(D, E),
- x(D.length ? D : null);
- });
- }
- }
- var _;
- if (y.asyncValidator)
- _ = y.asyncValidator(y, w.value, S, w.source, c);
- else if (y.validator) {
- try {
- _ = y.validator(y, w.value, S, w.source, c);
- } catch (P) {
- console.error == null || console.error(P),
- c.suppressValidatorError ||
- setTimeout(function () {
- throw P;
- }, 0),
- S(P.message);
- }
- _ === !0
- ? S()
- : _ === !1
- ? S(
- typeof y.message == 'function'
- ? y.message(y.fullField || y.field)
- : y.message || (y.fullField || y.field) + ' fails'
- )
- : _ instanceof Array
- ? S(_)
- : _ instanceof Error && S(_.message);
- }
- _ &&
- _.then &&
- _.then(
- function () {
- return S();
- },
- function (P) {
- return S(P);
- }
- );
- },
- function (w) {
- f(w);
- },
- s
- );
- }),
- (t.getType = function (r) {
- if (
- (r.type === void 0 &&
- r.pattern instanceof RegExp &&
- (r.type = 'pattern'),
- typeof r.validator != 'function' &&
- r.type &&
- !nu.hasOwnProperty(r.type))
- )
- throw new Error(Ao('Unknown rule type %s', r.type));
- return r.type || 'string';
- }),
- (t.getValidationMethod = function (r) {
- if (typeof r.validator == 'function') return r.validator;
- var o = Object.keys(r),
- i = o.indexOf('message');
- return (
- i !== -1 && o.splice(i, 1),
- o.length === 1 && o[0] === 'required'
- ? nu.required
- : nu[this.getType(r)] || void 0
- );
- }),
- e
- );
- })();
- Yu.register = function (t, n) {
- if (typeof n != 'function')
- throw new Error(
- 'Cannot register a validator by type, validator is not a function'
- );
- nu[t] = n;
- };
- Yu.warning = RZ;
- Yu.messages = r0;
- Yu.validators = nu;
- function JZ(e) {
- const t = Ze(qu, null);
- return {
- mergedSize: I(() =>
- e.size !== void 0
- ? e.size
- : (t == null ? void 0 : t.props.size) !== void 0
- ? t.props.size
- : 'medium'
- )
- };
- }
- function eQ(e) {
- const t = Ze(qu, null),
- n = I(() => {
- const { labelPlacement: m } = e;
- return m !== void 0
- ? m
- : t != null && t.props.labelPlacement
- ? t.props.labelPlacement
- : 'top';
- }),
- r = I(
- () =>
- n.value === 'left' &&
- (e.labelWidth === 'auto' ||
- (t == null ? void 0 : t.props.labelWidth) === 'auto')
- ),
- o = I(() => {
- if (n.value === 'top') return;
- const { labelWidth: m } = e;
- if (m !== void 0 && m !== 'auto') return vn(m);
- if (r.value) {
- const g = t == null ? void 0 : t.maxChildLabelWidthRef.value;
- return g !== void 0 ? vn(g) : void 0;
- }
- if ((t == null ? void 0 : t.props.labelWidth) !== void 0)
- return vn(t.props.labelWidth);
- }),
- i = I(() => {
- const { labelAlign: m } = e;
- if (m) return m;
- if (t != null && t.props.labelAlign) return t.props.labelAlign;
- }),
- a = I(() => {
- var m;
- return [
- (m = e.labelProps) === null || m === void 0 ? void 0 : m.style,
- e.labelStyle,
- { width: o.value }
- ];
- }),
- s = I(() => {
- const { showRequireMark: m } = e;
- return m !== void 0 ? m : t == null ? void 0 : t.props.showRequireMark;
- }),
- c = I(() => {
- const { requireMarkPlacement: m } = e;
- return m !== void 0
- ? m
- : (t == null ? void 0 : t.props.requireMarkPlacement) || 'right';
- }),
- d = Z(!1),
- f = I(() => {
- const { validationStatus: m } = e;
- if (m !== void 0) return m;
- if (d.value) return 'error';
- }),
- v = I(() => {
- const { showFeedback: m } = e;
- return m !== void 0
- ? m
- : (t == null ? void 0 : t.props.showFeedback) !== void 0
- ? t.props.showFeedback
- : !0;
- }),
- p = I(() => {
- const { showLabel: m } = e;
- return m !== void 0
- ? m
- : (t == null ? void 0 : t.props.showLabel) !== void 0
- ? t.props.showLabel
- : !0;
- });
- return {
- validationErrored: d,
- mergedLabelStyle: a,
- mergedLabelPlacement: n,
- mergedLabelAlign: i,
- mergedShowRequireMark: s,
- mergedRequireMarkPlacement: c,
- mergedValidationStatus: f,
- mergedShowFeedback: v,
- mergedShowLabel: p,
- isAutoLabelWidth: r
- };
- }
- function tQ(e) {
- const t = Ze(qu, null),
- n = I(() => {
- const { rulePath: a } = e;
- if (a !== void 0) return a;
- const { path: s } = e;
- if (s !== void 0) return s;
- }),
- r = I(() => {
- const a = [],
- { rule: s } = e;
- if ((s !== void 0 && (Array.isArray(s) ? a.push(...s) : a.push(s)), t)) {
- const { rules: c } = t.props,
- { value: d } = n;
- if (c !== void 0 && d !== void 0) {
- const f = ku(c, d);
- f !== void 0 && (Array.isArray(f) ? a.push(...f) : a.push(f));
- }
- }
- return a;
- }),
- o = I(() => r.value.some(a => a.required)),
- i = I(() => o.value || e.required);
- return { mergedRules: r, mergedRequired: i };
- }
- const { cubicBezierEaseInOut: r2 } = Bo;
- function nQ({
- name: e = 'fade-down',
- fromOffset: t = '-4px',
- enterDuration: n = '.3s',
- leaveDuration: r = '.3s',
- enterCubicBezier: o = r2,
- leaveCubicBezier: i = r2
- } = {}) {
- return [
- F(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`, {
- opacity: 0,
- transform: `translateY(${t})`
- }),
- F(`&.${e}-transition-enter-to, &.${e}-transition-leave-from`, {
- opacity: 1,
- transform: 'translateY(0)'
- }),
- F(`&.${e}-transition-leave-active`, {
- transition: `opacity ${r} ${i}, transform ${r} ${i}`
- }),
- F(`&.${e}-transition-enter-active`, {
- transition: `opacity ${n} ${o}, transform ${n} ${o}`
- })
- ];
- }
- const rQ = O(
- 'form-item',
- `
- display: grid;
- line-height: var(--n-line-height);
- `,
- [
- O(
- 'form-item-label',
- `
- grid-area: label;
- align-items: center;
- line-height: 1.25;
- text-align: var(--n-label-text-align);
- font-size: var(--n-label-font-size);
- min-height: var(--n-label-height);
- padding: var(--n-label-padding);
- color: var(--n-label-text-color);
- transition: color .3s var(--n-bezier);
- box-sizing: border-box;
- font-weight: var(--n-label-font-weight);
- `,
- [
- V(
- 'asterisk',
- `
- white-space: nowrap;
- user-select: none;
- -webkit-user-select: none;
- color: var(--n-asterisk-color);
- transition: color .3s var(--n-bezier);
- `
- ),
- V(
- 'asterisk-placeholder',
- `
- grid-area: mark;
- user-select: none;
- -webkit-user-select: none;
- visibility: hidden;
- `
- )
- ]
- ),
- O(
- 'form-item-blank',
- `
- grid-area: blank;
- min-height: var(--n-blank-height);
- `
- ),
- U('auto-label-width', [O('form-item-label', 'white-space: nowrap;')]),
- U(
- 'left-labelled',
- `
- grid-template-areas:
- "label blank"
- "label feedback";
- grid-template-columns: auto minmax(0, 1fr);
- grid-template-rows: auto 1fr;
- align-items: start;
- `,
- [
- O(
- 'form-item-label',
- `
- display: grid;
- grid-template-columns: 1fr auto;
- min-height: var(--n-blank-height);
- height: auto;
- box-sizing: border-box;
- flex-shrink: 0;
- flex-grow: 0;
- `,
- [
- U(
- 'reverse-columns-space',
- `
- grid-template-columns: auto 1fr;
- `
- ),
- U(
- 'left-mark',
- `
- grid-template-areas:
- "mark text"
- ". text";
- `
- ),
- U(
- 'right-mark',
- `
- grid-template-areas:
- "text mark"
- "text .";
- `
- ),
- U(
- 'right-hanging-mark',
- `
- grid-template-areas:
- "text mark"
- "text .";
- `
- ),
- V(
- 'text',
- `
- grid-area: text;
- `
- ),
- V(
- 'asterisk',
- `
- grid-area: mark;
- align-self: end;
- `
- )
- ]
- )
- ]
- ),
- U(
- 'top-labelled',
- `
- grid-template-areas:
- "label"
- "blank"
- "feedback";
- grid-template-rows: minmax(var(--n-label-height), auto) 1fr;
- grid-template-columns: minmax(0, 100%);
- `,
- [
- U(
- 'no-label',
- `
- grid-template-areas:
- "blank"
- "feedback";
- grid-template-rows: 1fr;
- `
- ),
- O(
- 'form-item-label',
- `
- display: flex;
- align-items: flex-start;
- justify-content: var(--n-label-text-align);
- `
- )
- ]
- ),
- O(
- 'form-item-blank',
- `
- box-sizing: border-box;
- display: flex;
- align-items: center;
- position: relative;
- `
- ),
- O(
- 'form-item-feedback-wrapper',
- `
- grid-area: feedback;
- box-sizing: border-box;
- min-height: var(--n-feedback-height);
- font-size: var(--n-feedback-font-size);
- line-height: 1.25;
- transform-origin: top left;
- `,
- [
- F(
- '&:not(:empty)',
- `
- padding: var(--n-feedback-padding);
- `
- ),
- O(
- 'form-item-feedback',
- {
- transition: 'color .3s var(--n-bezier)',
- color: 'var(--n-feedback-text-color)'
- },
- [
- U('warning', { color: 'var(--n-feedback-text-color-warning)' }),
- U('error', { color: 'var(--n-feedback-text-color-error)' }),
- nQ({
- fromOffset: '-3px',
- enterDuration: '.3s',
- leaveDuration: '.2s'
- })
- ]
- )
- ]
- )
- ]
- );
- var o2 =
- (globalThis && globalThis.__awaiter) ||
- function (e, t, n, r) {
- function o(i) {
- return i instanceof n
- ? i
- : new n(function (a) {
- a(i);
- });
- }
- return new (n || (n = Promise))(function (i, a) {
- function s(f) {
- try {
- d(r.next(f));
- } catch (v) {
- a(v);
- }
- }
- function c(f) {
- try {
- d(r.throw(f));
- } catch (v) {
- a(v);
- }
- }
- function d(f) {
- f.done ? i(f.value) : o(f.value).then(s, c);
- }
- d((r = r.apply(e, t || [])).next());
- });
- };
- const oQ = Object.assign(Object.assign({}, Ke.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 i2(e, t) {
- return (...n) => {
- try {
- const r = e(...n);
- return (!t &&
- (typeof r == 'boolean' || r instanceof Error || Array.isArray(r))) ||
- (r != null && r.then)
- ? r
- : (r === void 0 ||
- Do(
- 'form-item/validate',
- `You return a ${typeof r} typed value in the validator method, which is not recommended. Please use ` +
- (t ? '`Promise`' : '`boolean`, `Error` or `Promise`') +
- ' typed value instead.'
- ),
- !0);
- } catch (r) {
- Do(
- '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(r);
- return;
- }
- };
- }
- const iQ = Re({
- name: 'FormItem',
- props: oQ,
- setup(e) {
- hD(D3, 'formItems', Ee(e, 'path'));
- const { mergedClsPrefixRef: t, inlineThemeDisabled: n } = yt(e),
- r = Ze(qu, null),
- o = JZ(e),
- i = eQ(e),
- { validationErrored: a } = i,
- { mergedRequired: s, mergedRules: c } = tQ(e),
- { mergedSize: d } = o,
- {
- mergedLabelPlacement: f,
- mergedLabelAlign: v,
- mergedRequireMarkPlacement: p
- } = i,
- m = Z([]),
- g = Z(pi()),
- w = r ? Ee(r.props, 'disabled') : Z(!1),
- x = Ke('Form', '-form-item', rQ, I3, e, t);
- $t(Ee(e, 'path'), () => {
- e.ignorePathChange || y();
- });
- function y() {
- (m.value = []), (a.value = !1), e.feedback && (g.value = pi());
- }
- function C() {
- T('blur');
- }
- function R() {
- T('change');
- }
- function S() {
- T('focus');
- }
- function _() {
- T('input');
- }
- function P(D, L) {
- return o2(this, void 0, void 0, function* () {
- let j, B, q, G;
- typeof D == 'string'
- ? ((j = D), (B = L))
- : D !== null &&
- typeof D == 'object' &&
- ((j = D.trigger),
- (B = D.callback),
- (q = D.shouldRuleBeApplied),
- (G = D.options)),
- yield new Promise((ne, X) => {
- T(j, q, G).then(({ valid: J, errors: re }) => {
- J ? (B && B(), ne()) : (B && B(re), X(re));
- });
- });
- });
- }
- const T = (D = null, L = () => !0, j = { suppressWarning: !0 }) =>
- o2(this, void 0, void 0, function* () {
- const { path: B } = e;
- j ? j.first || (j.first = e.first) : (j = {});
- const { value: q } = c,
- G = r ? ku(r.props.model, B || '') : void 0,
- ne = {},
- X = {},
- J = (
- D
- ? q.filter(Fe =>
- Array.isArray(Fe.trigger)
- ? Fe.trigger.includes(D)
- : Fe.trigger === D
- )
- : q
- )
- .filter(L)
- .map((Fe, Ie) => {
- const le = Object.assign({}, Fe);
- if (
- (le.validator && (le.validator = i2(le.validator, !1)),
- le.asyncValidator &&
- (le.asyncValidator = i2(le.asyncValidator, !0)),
- le.renderMessage)
- ) {
- const me = `__renderMessage__${Ie}`;
- (X[me] = le.message),
- (le.message = me),
- (ne[me] = le.renderMessage);
- }
- return le;
- });
- if (!J.length) return { valid: !0 };
- const re = B != null ? B : '__n_no_path__',
- ce = new Yu({ [re]: J }),
- { validateMessages: pe } = (r == null ? void 0 : r.props) || {};
- return (
- pe && ce.messages(pe),
- yield new Promise(Fe => {
- ce.validate({ [re]: G }, j, Ie => {
- Ie != null && Ie.length
- ? ((m.value = Ie.map(le => {
- const me = (le == null ? void 0 : le.message) || '';
- return {
- key: me,
- render: () =>
- me.startsWith('__renderMessage__') ? ne[me]() : me
- };
- })),
- Ie.forEach(le => {
- var me;
- !((me = le.message) === null || me === void 0) &&
- me.startsWith('__renderMessage__') &&
- (le.message = X[le.message]);
- }),
- (a.value = !0),
- Fe({ valid: !1, errors: Ie }))
- : (y(), Fe({ valid: !0 }));
- });
- })
- );
- });
- Rt(Zm, {
- path: Ee(e, 'path'),
- disabled: w,
- mergedSize: o.mergedSize,
- mergedValidationStatus: i.mergedValidationStatus,
- restoreValidation: y,
- handleContentBlur: C,
- handleContentChange: R,
- handleContentFocus: S,
- handleContentInput: _
- });
- const A = { validate: P, restoreValidation: y, internalValidate: T },
- z = Z(null);
- Hn(() => {
- if (!i.isAutoLabelWidth.value) return;
- const D = z.value;
- if (D !== null) {
- const L = D.style.whiteSpace;
- (D.style.whiteSpace = 'nowrap'),
- (D.style.width = ''),
- r == null ||
- r.deriveMaxChildLabelWidth(
- Number(getComputedStyle(D).width.slice(0, -2))
- ),
- (D.style.whiteSpace = L);
- }
- });
- const k = I(() => {
- var D;
- const { value: L } = d,
- { value: j } = f,
- B = j === 'top' ? 'vertical' : 'horizontal',
- {
- common: { cubicBezierEaseInOut: q },
- self: {
- labelTextColor: G,
- asteriskColor: ne,
- lineHeight: X,
- feedbackTextColor: J,
- feedbackTextColorWarning: re,
- feedbackTextColorError: ce,
- feedbackPadding: pe,
- labelFontWeight: Fe,
- [Oe('labelHeight', L)]: Ie,
- [Oe('blankHeight', L)]: le,
- [Oe('feedbackFontSize', L)]: me,
- [Oe('feedbackHeight', L)]: he,
- [Oe('labelPadding', B)]: ue,
- [Oe('labelTextAlign', B)]: Ae,
- [Oe(Oe('labelFontSize', j), L)]: W
- }
- } = x.value;
- let Q = (D = v.value) !== null && D !== void 0 ? D : Ae;
- return (
- j === 'top' && (Q = Q === 'right' ? 'flex-end' : 'flex-start'),
- {
- '--n-bezier': q,
- '--n-line-height': X,
- '--n-blank-height': le,
- '--n-label-font-size': W,
- '--n-label-text-align': Q,
- '--n-label-height': Ie,
- '--n-label-padding': ue,
- '--n-label-font-weight': Fe,
- '--n-asterisk-color': ne,
- '--n-label-text-color': G,
- '--n-feedback-padding': pe,
- '--n-feedback-font-size': me,
- '--n-feedback-height': he,
- '--n-feedback-text-color': J,
- '--n-feedback-text-color-warning': re,
- '--n-feedback-text-color-error': ce
- }
- );
- }),
- M = n
- ? Mt(
- 'form-item',
- I(() => {
- var D;
- return `${d.value[0]}${f.value[0]}${
- ((D = v.value) === null || D === void 0 ? void 0 : D[0]) || ''
- }`;
- }),
- k,
- e
- )
- : void 0,
- E = I(
- () => f.value === 'left' && p.value === 'left' && v.value === 'left'
- );
- return Object.assign(
- Object.assign(
- Object.assign(
- Object.assign(
- {
- labelElementRef: z,
- mergedClsPrefix: t,
- mergedRequired: s,
- feedbackId: g,
- renderExplains: m,
- reverseColSpace: E
- },
- i
- ),
- o
- ),
- A
- ),
- {
- cssVars: n ? void 0 : k,
- themeClass: M == null ? void 0 : M.themeClass,
- onRender: M == null ? void 0 : M.onRender
- }
- );
- },
- render() {
- const {
- $slots: e,
- mergedClsPrefix: t,
- mergedShowLabel: n,
- mergedShowRequireMark: r,
- mergedRequireMarkPlacement: o,
- onRender: i
- } = this,
- a = r !== void 0 ? r : this.mergedRequired;
- i == null || i();
- const s = () => {
- const c = this.$slots.label ? this.$slots.label() : this.label;
- if (!c) return null;
- const d = h('span', { class: `${t}-form-item-label__text` }, c),
- f = a
- ? h(
- 'span',
- { class: `${t}-form-item-label__asterisk` },
- o !== 'left' ? ' *' : '* '
- )
- : o === 'right-hanging' &&
- h(
- 'span',
- { class: `${t}-form-item-label__asterisk-placeholder` },
- ' *'
- ),
- { labelProps: v } = this;
- return h(
- 'label',
- Object.assign({}, v, {
- class: [
- v == null ? void 0 : v.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' ? [f, d] : [d, f]
- );
- };
- return h(
- '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`,
- !n && `${t}-form-item--no-label`
- ],
- style: this.cssVars
- },
- n && s(),
- h(
- 'div',
- {
- class: [
- `${t}-form-item-blank`,
- this.mergedValidationStatus &&
- `${t}-form-item-blank--${this.mergedValidationStatus}`
- ]
- },
- e
- ),
- this.mergedShowFeedback
- ? h(
- 'div',
- {
- key: this.feedbackId,
- class: `${t}-form-item-feedback-wrapper`
- },
- h(
- Kn,
- { name: 'fade-down-transition', mode: 'out-in' },
- {
- default: () => {
- const { mergedValidationStatus: c } = this;
- return cn(e.feedback, d => {
- var f;
- const { feedback: v } = this,
- p =
- d || v
- ? h(
- 'div',
- {
- key: '__feedback__',
- class: `${t}-form-item-feedback__line`
- },
- d || v
- )
- : this.renderExplains.length
- ? (f = this.renderExplains) === null || f === void 0
- ? void 0
- : f.map(({ key: m, render: g }) =>
- h(
- 'div',
- {
- key: m,
- class: `${t}-form-item-feedback__line`
- },
- g()
- )
- )
- : null;
- return p
- ? c === 'warning'
- ? h(
- 'div',
- {
- key: 'controlled-warning',
- class: `${t}-form-item-feedback ${t}-form-item-feedback--warning`
- },
- p
- )
- : c === 'error'
- ? h(
- 'div',
- {
- key: 'controlled-error',
- class: `${t}-form-item-feedback ${t}-form-item-feedback--error`
- },
- p
- )
- : c === 'success'
- ? h(
- 'div',
- {
- key: 'controlled-success',
- class: `${t}-form-item-feedback ${t}-form-item-feedback--success`
- },
- p
- )
- : h(
- 'div',
- {
- key: 'controlled-default',
- class: `${t}-form-item-feedback`
- },
- p
- )
- : null;
- });
- }
- }
- )
- )
- : null
- );
- }
- }),
- a2 = 1,
- B3 = 'n-grid',
- L3 = 1,
- aQ = {
- span: { type: [Number, String], default: L3 },
- offset: { type: [Number, String], default: 0 },
- suffix: Boolean,
- privateOffset: Number,
- privateSpan: Number,
- privateColStart: Number,
- privateShow: { type: Boolean, default: !0 }
- },
- lQ = Re({
- __GRID_ITEM__: !0,
- name: 'GridItem',
- alias: ['Gi'],
- props: aQ,
- setup() {
- const {
- isSsrRef: e,
- xGapRef: t,
- itemStyleRef: n,
- overflowRef: r,
- layoutShiftDisabledRef: o
- } = Ze(B3),
- i = _a();
- return {
- overflow: r,
- itemStyle: n,
- layoutShiftDisabled: o,
- mergedXGap: I(() => sr(t.value || 0)),
- deriveStyle: () => {
- e.value;
- const {
- privateSpan: a = L3,
- privateShow: s = !0,
- privateColStart: c = void 0,
- privateOffset: d = 0
- } = i.vnode.props,
- { value: f } = t,
- v = sr(f || 0);
- return {
- display: s ? '' : 'none',
- gridColumn: `${c != null ? c : `span ${a}`} / span ${a}`,
- marginLeft: d
- ? `calc((100% - (${a} - 1) * ${v}) / ${a} * ${d} + ${v} * ${d})`
- : ''
- };
- }
- };
- },
- render() {
- var e, t;
- if (this.layoutShiftDisabled) {
- const { span: n, offset: r, mergedXGap: o } = this;
- return h(
- 'div',
- {
- style: {
- gridColumn: `span ${n} / span ${n}`,
- marginLeft: r
- ? `calc((100% - (${n} - 1) * ${o}) / ${n} * ${r} + ${o} * ${r})`
- : ''
- }
- },
- this.$slots
- );
- }
- return h(
- 'div',
- { style: [this.itemStyle, this.deriveStyle()] },
- (t = (e = this.$slots).default) === null || t === void 0
- ? void 0
- : t.call(e, { overflow: this.overflow })
- );
- }
- }),
- sQ = Array.apply(null, { length: 24 }).map((e, t) => {
- const n = t + 1,
- r = `calc(100% / 24 * ${n})`;
- return [
- U(`${n}-span`, { width: r }),
- U(`${n}-offset`, { marginLeft: r }),
- U(`${n}-push`, { left: r }),
- U(`${n}-pull`, { right: r })
- ];
- }),
- cQ = F([
- O('row', { width: '100%', display: 'flex', flexWrap: 'wrap' }),
- O(
- 'col',
- {
- verticalAlign: 'top',
- boxSizing: 'border-box',
- display: 'inline-block',
- position: 'relative',
- zIndex: 'auto'
- },
- [
- V('box', {
- position: 'relative',
- zIndex: 'auto',
- width: '100%',
- height: '100%'
- }),
- sQ
- ]
- )
- ]),
- N3 = 'n-row',
- dQ = {
- gutter: { type: [Array, Number, String], default: 0 },
- alignItems: String,
- justifyContent: String
- },
- uQ = Re({
- name: 'Row',
- props: dQ,
- setup(e) {
- const { mergedClsPrefixRef: t, mergedRtlRef: n } = yt(e);
- Ta('-legacy-grid', cQ, t);
- const r = dr('Row', n, t),
- o = kt(() => {
- const { gutter: a } = e;
- return (Array.isArray(a) && a[1]) || 0;
- }),
- i = kt(() => {
- const { gutter: a } = e;
- return Array.isArray(a) ? a[0] : Number(a);
- });
- return (
- Rt(N3, {
- mergedClsPrefixRef: t,
- gutterRef: Ee(e, 'gutter'),
- verticalGutterRef: o,
- horizontalGutterRef: i
- }),
- {
- mergedClsPrefix: t,
- rtlEnabled: r,
- styleMargin: kt(
- () => `-${vn(o.value, { c: 0.5 })} -${vn(i.value, { c: 0.5 })}`
- ),
- styleWidth: kt(() => `calc(100% + ${vn(i.value)})`)
- }
- );
- },
- render() {
- return h(
- '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
- );
- }
- }),
- fQ = {
- span: { type: [String, Number], default: 1 },
- push: { type: [String, Number], default: 0 },
- pull: { type: [String, Number], default: 0 },
- offset: { type: [String, Number], default: 0 }
- },
- hQ = Re({
- name: 'Col',
- props: fQ,
- setup(e) {
- const t = Ze(N3, null);
- return (
- t || io('col', '`n-col` must be placed inside `n-row`.'),
- {
- mergedClsPrefix: t.mergedClsPrefixRef,
- gutter: t.gutterRef,
- stylePadding: I(
- () =>
- `${vn(t.verticalGutterRef.value, { c: 0.5 })} ${vn(
- t.horizontalGutterRef.value,
- { c: 0.5 }
- )}`
- ),
- mergedPush: I(() => Number(e.push) - Number(e.pull))
- }
- );
- },
- render() {
- const {
- $slots: e,
- span: t,
- mergedPush: n,
- offset: r,
- stylePadding: o,
- gutter: i,
- mergedClsPrefix: a
- } = this;
- return h(
- 'div',
- {
- class: [
- `${a}-col`,
- {
- [`${a}-col--${t}-span`]: !0,
- [`${a}-col--${n}-push`]: n > 0,
- [`${a}-col--${-n}-pull`]: n < 0,
- [`${a}-col--${r}-offset`]: r
- }
- ],
- style: { padding: o }
- },
- i ? h('div', null, e) : e
- );
- }
- }),
- vQ = { xs: 0, s: 640, m: 1024, l: 1280, xl: 1536, xxl: 1920 },
- H3 = 24,
- rm = '__ssr__',
- pQ = {
- layoutShiftDisabled: Boolean,
- responsive: { type: [String, Boolean], default: 'self' },
- cols: { type: [Number, String], default: H3 },
- itemResponsive: Boolean,
- collapsed: Boolean,
- collapsedRows: { type: Number, default: 1 },
- itemStyle: [Object, String],
- xGap: { type: [Number, String], default: 0 },
- yGap: { type: [Number, String], default: 0 }
- },
- gQ = Re({
- name: 'Grid',
- inheritAttrs: !1,
- props: pQ,
- setup(e) {
- const { mergedClsPrefixRef: t, mergedBreakpointsRef: n } = yt(e),
- r = /^\d+$/,
- o = Z(void 0),
- i = kD((n == null ? void 0 : n.value) || vQ),
- a = kt(
- () =>
- !!(
- e.itemResponsive ||
- !r.test(e.cols.toString()) ||
- !r.test(e.xGap.toString()) ||
- !r.test(e.yGap.toString())
- )
- ),
- s = I(() => {
- if (a.value) return e.responsive === 'self' ? o.value : i.value;
- }),
- c = kt(() => {
- var y;
- return (y = Number(Od(e.cols.toString(), s.value))) !== null &&
- y !== void 0
- ? y
- : H3;
- }),
- d = kt(() => Od(e.xGap.toString(), s.value)),
- f = kt(() => Od(e.yGap.toString(), s.value)),
- v = y => {
- o.value = y.contentRect.width;
- },
- p = y => {
- Oc(v, y);
- },
- m = Z(!1),
- g = I(() => {
- if (e.responsive === 'self') return p;
- }),
- w = Z(!1),
- x = Z();
- return (
- Hn(() => {
- const { value: y } = x;
- y && y.hasAttribute(rm) && (y.removeAttribute(rm), (w.value = !0));
- }),
- Rt(B3, {
- layoutShiftDisabledRef: Ee(e, 'layoutShiftDisabled'),
- isSsrRef: w,
- itemStyleRef: Ee(e, 'itemStyle'),
- xGapRef: d,
- overflowRef: m
- }),
- {
- isSsr: !Fo,
- contentEl: x,
- mergedClsPrefix: t,
- style: I(() =>
- e.layoutShiftDisabled
- ? {
- width: '100%',
- display: 'grid',
- gridTemplateColumns: `repeat(${e.cols}, minmax(0, 1fr))`,
- columnGap: sr(e.xGap),
- rowGap: sr(e.yGap)
- }
- : {
- width: '100%',
- display: 'grid',
- gridTemplateColumns: `repeat(${c.value}, minmax(0, 1fr))`,
- columnGap: sr(d.value),
- rowGap: sr(f.value)
- }
- ),
- isResponsive: a,
- responsiveQuery: s,
- responsiveCols: c,
- handleResize: g,
- overflow: m
- }
- );
- },
- render() {
- if (this.layoutShiftDisabled)
- return h(
- 'div',
- qr(
- {
- ref: 'contentEl',
- class: `${this.mergedClsPrefix}-grid`,
- style: this.style
- },
- this.$attrs
- ),
- this.$slots
- );
- const e = () => {
- var t, n, r, o, i, a, s;
- this.overflow = !1;
- const c = hi(Fu(this)),
- d = [],
- {
- collapsed: f,
- collapsedRows: v,
- responsiveCols: p,
- responsiveQuery: m
- } = this;
- c.forEach(C => {
- var R, S, _, P;
- if (
- ((R = C == null ? void 0 : C.type) === null || R === void 0
- ? void 0
- : R.__GRID_ITEM__) !== !0
- )
- return;
- if (UI(C)) {
- const z = Mo(C);
- z.props
- ? (z.props.privateShow = !1)
- : (z.props = { privateShow: !1 }),
- d.push({ child: z, rawChildSpan: 0 });
- return;
- }
- C.dirs =
- ((S = C.dirs) === null || S === void 0
- ? void 0
- : S.filter(({ dir: z }) => z !== vi)) || null;
- const T = Mo(C),
- A = Number(
- (P = Od(
- (_ = T.props) === null || _ === void 0 ? void 0 : _.span,
- m
- )) !== null && P !== void 0
- ? P
- : a2
- );
- A !== 0 && d.push({ child: T, rawChildSpan: A });
- });
- let g = 0;
- const w =
- (t = d[d.length - 1]) === null || t === void 0 ? void 0 : t.child;
- if (w != null && w.props) {
- const C = (n = w.props) === null || n === void 0 ? void 0 : n.suffix;
- C !== void 0 &&
- C !== !1 &&
- ((g =
- (o = (r = w.props) === null || r === void 0 ? void 0 : r.span) !==
- null && o !== void 0
- ? o
- : a2),
- (w.props.privateSpan = g),
- (w.props.privateColStart = p + 1 - g),
- (w.props.privateShow =
- (i = w.props.privateShow) !== null && i !== void 0 ? i : !0));
- }
- let x = 0,
- y = !1;
- for (const { child: C, rawChildSpan: R } of d) {
- if ((y && (this.overflow = !0), !y)) {
- const S = Number(
- (s = Od(
- (a = C.props) === null || a === void 0 ? void 0 : a.offset,
- m
- )) !== null && s !== void 0
- ? s
- : 0
- ),
- _ = Math.min(R + S, p);
- if (
- (C.props
- ? ((C.props.privateSpan = _), (C.props.privateOffset = S))
- : (C.props = { privateSpan: _, privateOffset: S }),
- f)
- ) {
- const P = x % p;
- _ + P > p && (x += p - P),
- _ + x + g > v * p ? (y = !0) : (x += _);
- }
- }
- y &&
- (C.props
- ? C.props.privateShow !== !0 && (C.props.privateShow = !1)
- : (C.props = { privateShow: !1 }));
- }
- return h(
- 'div',
- qr(
- {
- ref: 'contentEl',
- class: `${this.mergedClsPrefix}-grid`,
- style: this.style,
- [rm]: this.isSsr || void 0
- },
- this.$attrs
- ),
- d.map(({ child: C }) => C)
- );
- };
- return this.isResponsive && this.responsive === 'self'
- ? h(Ki, { onResize: this.handleResize }, { default: e })
- : e();
- }
- }),
- Uy = Object.assign(Object.assign({}, Ke.props), {
- showToolbar: { type: Boolean, default: !0 },
- showToolbarTooltip: Boolean
- }),
- j3 = 'n-image';
- function mQ() {
- return {
- toolbarIconColor: 'rgba(255, 255, 255, .9)',
- toolbarColor: 'rgba(0, 0, 0, .35)',
- toolbarBoxShadow: 'none',
- toolbarBorderRadius: '24px'
- };
- }
- const bQ = { name: 'Image', common: Nt, peers: { Tooltip: Kv }, self: mQ },
- yQ = {
- closeMargin: '16px 12px',
- closeSize: '20px',
- closeIconSize: '16px',
- width: '365px',
- padding: '16px',
- titleFontSize: '16px',
- metaFontSize: '12px',
- descriptionFontSize: '12px'
- },
- xQ = e => {
- const {
- textColor2: t,
- successColor: n,
- infoColor: r,
- warningColor: o,
- errorColor: i,
- popoverColor: a,
- closeIconColor: s,
- closeIconColorHover: c,
- closeIconColorPressed: d,
- closeColorHover: f,
- closeColorPressed: v,
- textColor1: p,
- textColor3: m,
- borderRadius: g,
- fontWeightStrong: w,
- boxShadow2: x,
- lineHeight: y,
- fontSize: C
- } = e;
- return Object.assign(Object.assign({}, yQ), {
- borderRadius: g,
- lineHeight: y,
- fontSize: C,
- headerFontWeight: w,
- iconColor: t,
- iconColorSuccess: n,
- iconColorInfo: r,
- iconColorWarning: o,
- iconColorError: i,
- color: a,
- textColor: t,
- closeIconColor: s,
- closeIconColorHover: c,
- closeIconColorPressed: d,
- closeBorderRadius: g,
- closeColorHover: f,
- closeColorPressed: v,
- headerTextColor: p,
- descriptionTextColor: m,
- actionTextColor: t,
- boxShadow: x
- });
- },
- wQ = { name: 'Notification', common: Nt, peers: { Scrollbar: Qi }, self: xQ },
- CQ = wQ,
- SQ = {
- 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'
- },
- _Q = e => {
- const {
- textColor2: t,
- closeIconColor: n,
- closeIconColorHover: r,
- closeIconColorPressed: o,
- infoColor: i,
- successColor: a,
- errorColor: s,
- warningColor: c,
- popoverColor: d,
- boxShadow2: f,
- primaryColor: v,
- lineHeight: p,
- borderRadius: m,
- closeColorHover: g,
- closeColorPressed: w
- } = e;
- return Object.assign(Object.assign({}, SQ), {
- closeBorderRadius: m,
- textColor: t,
- textColorInfo: t,
- textColorSuccess: t,
- textColorError: t,
- textColorWarning: t,
- textColorLoading: t,
- color: d,
- colorInfo: d,
- colorSuccess: d,
- colorError: d,
- colorWarning: d,
- colorLoading: d,
- boxShadow: f,
- boxShadowInfo: f,
- boxShadowSuccess: f,
- boxShadowError: f,
- boxShadowWarning: f,
- boxShadowLoading: f,
- iconColor: t,
- iconColorInfo: i,
- iconColorSuccess: a,
- iconColorWarning: c,
- iconColorError: s,
- iconColorLoading: v,
- closeColorHover: g,
- closeColorPressed: w,
- closeIconColor: n,
- closeIconColorHover: r,
- closeIconColorPressed: o,
- closeColorHoverInfo: g,
- closeColorPressedInfo: w,
- closeIconColorInfo: n,
- closeIconColorHoverInfo: r,
- closeIconColorPressedInfo: o,
- closeColorHoverSuccess: g,
- closeColorPressedSuccess: w,
- closeIconColorSuccess: n,
- closeIconColorHoverSuccess: r,
- closeIconColorPressedSuccess: o,
- closeColorHoverError: g,
- closeColorPressedError: w,
- closeIconColorError: n,
- closeIconColorHoverError: r,
- closeIconColorPressedError: o,
- closeColorHoverWarning: g,
- closeColorPressedWarning: w,
- closeIconColorWarning: n,
- closeIconColorHoverWarning: r,
- closeIconColorPressedWarning: o,
- closeColorHoverLoading: g,
- closeColorPressedLoading: w,
- closeIconColorLoading: n,
- closeIconColorHoverLoading: r,
- closeIconColorPressedLoading: o,
- loadingColor: v,
- lineHeight: p,
- borderRadius: m
- });
- },
- RQ = { name: 'Message', common: Nt, self: _Q },
- PQ = RQ,
- kQ = e => {
- const { textColorDisabled: t } = e;
- return { iconColorDisabled: t };
- },
- TQ = {
- name: 'InputNumber',
- common: Nt,
- peers: { Button: Es, Input: Wu },
- self: kQ
- },
- $Q = TQ,
- OQ = e => {
- const {
- baseColor: t,
- textColor2: n,
- bodyColor: r,
- cardColor: o,
- dividerColor: i,
- actionColor: a,
- scrollbarColor: s,
- scrollbarColorHover: c,
- invertedColor: d
- } = e;
- return {
- textColor: n,
- textColorInverted: '#FFF',
- color: r,
- colorEmbedded: a,
- headerColor: o,
- headerColorInverted: d,
- footerColor: a,
- footerColorInverted: d,
- headerBorderColor: i,
- headerBorderColorInverted: d,
- footerBorderColor: i,
- footerBorderColorInverted: d,
- siderBorderColor: i,
- siderBorderColorInverted: d,
- siderColor: o,
- siderColorInverted: d,
- siderToggleButtonBorder: `1px solid ${i}`,
- siderToggleButtonColor: t,
- siderToggleButtonIconColor: n,
- siderToggleButtonIconColorInverted: n,
- siderToggleBarColor: At(r, s),
- siderToggleBarColorHover: At(r, c),
- __invertScrollbar: 'true'
- };
- },
- zQ = { name: 'Layout', common: Nt, peers: { Scrollbar: Qi }, self: OQ },
- Zv = zQ,
- AQ = e => {
- const {
- textColor2: t,
- cardColor: n,
- modalColor: r,
- popoverColor: o,
- dividerColor: i,
- borderRadius: a,
- fontSize: s,
- hoverColor: c
- } = e;
- return {
- textColor: t,
- color: n,
- colorHover: c,
- colorModal: r,
- colorHoverModal: At(r, c),
- colorPopover: o,
- colorHoverPopover: At(o, c),
- borderColor: i,
- borderColorModal: At(r, i),
- borderColorPopover: At(o, i),
- borderRadius: a,
- fontSize: s
- };
- },
- EQ = { name: 'List', common: Nt, self: AQ },
- MQ = EQ,
- IQ = e => {
- const { primaryColor: t, errorColor: n } = e;
- return { colorError: n, colorLoading: t, height: '2px' };
- },
- DQ = { name: 'LoadingBar', common: Nt, self: IQ },
- FQ = DQ;
- function BQ(e, t, n, r) {
- return {
- itemColorHoverInverted: '#0000',
- itemColorActiveInverted: t,
- itemColorActiveHoverInverted: t,
- itemColorActiveCollapsedInverted: t,
- itemTextColorInverted: e,
- itemTextColorHoverInverted: n,
- itemTextColorChildActiveInverted: n,
- itemTextColorChildActiveHoverInverted: n,
- itemTextColorActiveInverted: n,
- itemTextColorActiveHoverInverted: n,
- itemTextColorHorizontalInverted: e,
- itemTextColorHoverHorizontalInverted: n,
- itemTextColorChildActiveHorizontalInverted: n,
- itemTextColorChildActiveHoverHorizontalInverted: n,
- itemTextColorActiveHorizontalInverted: n,
- itemTextColorActiveHoverHorizontalInverted: n,
- itemIconColorInverted: e,
- itemIconColorHoverInverted: n,
- itemIconColorActiveInverted: n,
- itemIconColorActiveHoverInverted: n,
- itemIconColorChildActiveInverted: n,
- itemIconColorChildActiveHoverInverted: n,
- itemIconColorCollapsedInverted: e,
- itemIconColorHorizontalInverted: e,
- itemIconColorHoverHorizontalInverted: n,
- itemIconColorActiveHorizontalInverted: n,
- itemIconColorActiveHoverHorizontalInverted: n,
- itemIconColorChildActiveHorizontalInverted: n,
- itemIconColorChildActiveHoverHorizontalInverted: n,
- arrowColorInverted: e,
- arrowColorHoverInverted: n,
- arrowColorActiveInverted: n,
- arrowColorActiveHoverInverted: n,
- arrowColorChildActiveInverted: n,
- arrowColorChildActiveHoverInverted: n,
- groupTextColorInverted: r
- };
- }
- const LQ = e => {
- const {
- borderRadius: t,
- textColor3: n,
- primaryColor: r,
- textColor2: o,
- textColor1: i,
- fontSize: a,
- dividerColor: s,
- hoverColor: c,
- primaryColorHover: d
- } = e;
- return Object.assign(
- {
- borderRadius: t,
- color: '#0000',
- groupTextColor: n,
- itemColorHover: c,
- itemColorActive: zt(r, { alpha: 0.1 }),
- itemColorActiveHover: zt(r, { alpha: 0.1 }),
- itemColorActiveCollapsed: zt(r, { alpha: 0.1 }),
- itemTextColor: o,
- itemTextColorHover: o,
- itemTextColorActive: r,
- itemTextColorActiveHover: r,
- itemTextColorChildActive: r,
- itemTextColorChildActiveHover: r,
- itemTextColorHorizontal: o,
- itemTextColorHoverHorizontal: d,
- itemTextColorActiveHorizontal: r,
- itemTextColorActiveHoverHorizontal: r,
- itemTextColorChildActiveHorizontal: r,
- itemTextColorChildActiveHoverHorizontal: r,
- itemIconColor: i,
- itemIconColorHover: i,
- itemIconColorActive: r,
- itemIconColorActiveHover: r,
- itemIconColorChildActive: r,
- itemIconColorChildActiveHover: r,
- itemIconColorCollapsed: i,
- itemIconColorHorizontal: i,
- itemIconColorHoverHorizontal: d,
- itemIconColorActiveHorizontal: r,
- itemIconColorActiveHoverHorizontal: r,
- itemIconColorChildActiveHorizontal: r,
- itemIconColorChildActiveHoverHorizontal: r,
- itemHeight: '42px',
- arrowColor: o,
- arrowColorHover: o,
- arrowColorActive: r,
- arrowColorActiveHover: r,
- arrowColorChildActive: r,
- arrowColorChildActiveHover: r,
- colorInverted: '#0000',
- borderColorHorizontal: '#0000',
- fontSize: a,
- dividerColor: s
- },
- BQ('#BBB', r, '#FFF', '#AAA')
- );
- },
- NQ = {
- name: 'Menu',
- common: Nt,
- peers: { Tooltip: Kv, Dropdown: Oy },
- self: LQ
- },
- HQ = NQ,
- jQ = e => {
- const {
- infoColor: t,
- successColor: n,
- warningColor: r,
- errorColor: o,
- textColor2: i,
- progressRailColor: a,
- fontSize: s,
- fontWeight: c
- } = e;
- return {
- fontSize: s,
- fontSizeCircle: '28px',
- fontWeightCircle: c,
- railColor: a,
- railHeight: '8px',
- iconSizeCircle: '36px',
- iconSizeLine: '18px',
- iconColor: t,
- iconColorInfo: t,
- iconColorSuccess: n,
- iconColorWarning: r,
- iconColorError: o,
- textColorCircle: i,
- textColorLineInner: 'rgb(255, 255, 255)',
- textColorLineOuter: i,
- fillColor: t,
- fillColorInfo: t,
- fillColorSuccess: n,
- fillColorWarning: r,
- fillColorError: o,
- lineBgProcessing:
- 'linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)'
- };
- },
- UQ = { name: 'Progress', common: Nt, self: jQ },
- U3 = UQ,
- WQ = {
- 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
- },
- VQ = e => {
- const {
- textColor2: t,
- textColor1: n,
- errorColor: r,
- successColor: o,
- infoColor: i,
- warningColor: a,
- lineHeight: s,
- fontWeightStrong: c
- } = e;
- return Object.assign(Object.assign({}, WQ), {
- lineHeight: s,
- titleFontWeight: c,
- titleTextColor: n,
- textColor: t,
- iconColorError: r,
- iconColorSuccess: o,
- iconColorInfo: i,
- iconColorWarning: a
- });
- },
- KQ = { name: 'Result', common: Nt, self: VQ },
- qQ = KQ,
- YQ = e => {
- const {
- opacityDisabled: t,
- heightTiny: n,
- heightSmall: r,
- heightMedium: o,
- heightLarge: i,
- heightHuge: a,
- primaryColor: s,
- fontSize: c
- } = e;
- return {
- fontSize: c,
- textColor: s,
- sizeTiny: n,
- sizeSmall: r,
- sizeMedium: o,
- sizeLarge: i,
- sizeHuge: a,
- color: s,
- opacitySpinning: t
- };
- },
- GQ = { name: 'Spin', common: Nt, self: YQ },
- XQ = GQ,
- ZQ = {
- stepHeaderFontSizeSmall: '14px',
- stepHeaderFontSizeMedium: '16px',
- indicatorIndexFontSizeSmall: '14px',
- indicatorIndexFontSizeMedium: '16px',
- indicatorSizeSmall: '22px',
- indicatorSizeMedium: '28px',
- indicatorIconSizeSmall: '14px',
- indicatorIconSizeMedium: '18px'
- },
- QQ = e => {
- const {
- fontWeightStrong: t,
- baseColor: n,
- textColorDisabled: r,
- primaryColor: o,
- errorColor: i,
- textColor1: a,
- textColor2: s
- } = e;
- return Object.assign(Object.assign({}, ZQ), {
- stepHeaderFontWeight: t,
- indicatorTextColorProcess: n,
- indicatorTextColorWait: r,
- indicatorTextColorFinish: o,
- indicatorTextColorError: i,
- indicatorBorderColorProcess: o,
- indicatorBorderColorWait: r,
- indicatorBorderColorFinish: o,
- indicatorBorderColorError: i,
- indicatorColorProcess: o,
- indicatorColorWait: '#0000',
- indicatorColorFinish: '#0000',
- indicatorColorError: '#0000',
- splitorColorProcess: r,
- splitorColorWait: r,
- splitorColorFinish: o,
- splitorColorError: r,
- headerTextColorProcess: a,
- headerTextColorWait: r,
- headerTextColorFinish: r,
- headerTextColorError: i,
- descriptionTextColorProcess: s,
- descriptionTextColorWait: r,
- descriptionTextColorFinish: r,
- descriptionTextColorError: i
- });
- },
- JQ = { name: 'Steps', common: Nt, self: QQ },
- eJ = JQ,
- tJ = {
- 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'
- },
- nJ = e => {
- const {
- primaryColor: t,
- opacityDisabled: n,
- borderRadius: r,
- textColor3: o
- } = e,
- i = 'rgba(0, 0, 0, .14)';
- return Object.assign(Object.assign({}, tJ), {
- iconColor: o,
- textColor: 'white',
- loadingColor: t,
- opacityDisabled: n,
- railColor: i,
- 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: r,
- railBorderRadiusMedium: r,
- railBorderRadiusLarge: r,
- buttonBorderRadiusSmall: r,
- buttonBorderRadiusMedium: r,
- buttonBorderRadiusLarge: r,
- boxShadowFocus: `0 0 0 2px ${zt(t, { alpha: 0.2 })}`
- });
- },
- rJ = { name: 'Switch', common: Nt, self: nJ },
- oJ = rJ,
- iJ = {
- thPaddingSmall: '6px',
- thPaddingMedium: '12px',
- thPaddingLarge: '12px',
- tdPaddingSmall: '6px',
- tdPaddingMedium: '12px',
- tdPaddingLarge: '12px'
- },
- aJ = e => {
- const {
- dividerColor: t,
- cardColor: n,
- modalColor: r,
- popoverColor: o,
- tableHeaderColor: i,
- tableColorStriped: a,
- textColor1: s,
- textColor2: c,
- borderRadius: d,
- fontWeightStrong: f,
- lineHeight: v,
- fontSizeSmall: p,
- fontSizeMedium: m,
- fontSizeLarge: g
- } = e;
- return Object.assign(Object.assign({}, iJ), {
- fontSizeSmall: p,
- fontSizeMedium: m,
- fontSizeLarge: g,
- lineHeight: v,
- borderRadius: d,
- borderColor: At(n, t),
- borderColorModal: At(r, t),
- borderColorPopover: At(o, t),
- tdColor: n,
- tdColorModal: r,
- tdColorPopover: o,
- tdColorStriped: At(n, a),
- tdColorStripedModal: At(r, a),
- tdColorStripedPopover: At(o, a),
- thColor: At(n, i),
- thColorModal: At(r, i),
- thColorPopover: At(o, i),
- thTextColor: s,
- tdTextColor: c,
- thFontWeight: f
- });
- },
- lJ = { name: 'Table', common: Nt, self: aJ },
- sJ = lJ,
- cJ = {
- tabFontSizeSmall: '14px',
- tabFontSizeMedium: '14px',
- tabFontSizeLarge: '16px',
- tabGapSmallLine: '36px',
- tabGapMediumLine: '36px',
- tabGapLargeLine: '36px',
- tabGapSmallLineVertical: '8px',
- tabGapMediumLineVertical: '8px',
- tabGapLargeLineVertical: '8px',
- tabPaddingSmallLine: '6px 0',
- tabPaddingMediumLine: '10px 0',
- tabPaddingLargeLine: '14px 0',
- tabPaddingVerticalSmallLine: '6px 12px',
- tabPaddingVerticalMediumLine: '8px 16px',
- tabPaddingVerticalLargeLine: '10px 20px',
- tabGapSmallBar: '36px',
- tabGapMediumBar: '36px',
- tabGapLargeBar: '36px',
- tabGapSmallBarVertical: '8px',
- tabGapMediumBarVertical: '8px',
- tabGapLargeBarVertical: '8px',
- tabPaddingSmallBar: '4px 0',
- tabPaddingMediumBar: '6px 0',
- tabPaddingLargeBar: '10px 0',
- tabPaddingVerticalSmallBar: '6px 12px',
- tabPaddingVerticalMediumBar: '8px 16px',
- tabPaddingVerticalLargeBar: '10px 20px',
- tabGapSmallCard: '4px',
- tabGapMediumCard: '4px',
- tabGapLargeCard: '4px',
- tabGapSmallCardVertical: '4px',
- tabGapMediumCardVertical: '4px',
- tabGapLargeCardVertical: '4px',
- tabPaddingSmallCard: '8px 16px',
- tabPaddingMediumCard: '10px 20px',
- tabPaddingLargeCard: '12px 24px',
- tabPaddingSmallSegment: '4px 0',
- tabPaddingMediumSegment: '6px 0',
- tabPaddingLargeSegment: '8px 0',
- tabPaddingVerticalLargeSegment: '0 8px',
- tabPaddingVerticalSmallCard: '8px 12px',
- tabPaddingVerticalMediumCard: '10px 16px',
- tabPaddingVerticalLargeCard: '12px 20px',
- tabPaddingVerticalSmallSegment: '0 4px',
- tabPaddingVerticalMediumSegment: '0 6px',
- tabGapSmallSegment: '0',
- tabGapMediumSegment: '0',
- tabGapLargeSegment: '0',
- tabGapSmallSegmentVertical: '0',
- tabGapMediumSegmentVertical: '0',
- tabGapLargeSegmentVertical: '0',
- panePaddingSmall: '8px 0 0 0',
- panePaddingMedium: '12px 0 0 0',
- panePaddingLarge: '16px 0 0 0',
- closeSize: '18px',
- closeIconSize: '14px'
- },
- dJ = e => {
- const {
- textColor2: t,
- primaryColor: n,
- textColorDisabled: r,
- closeIconColor: o,
- closeIconColorHover: i,
- closeIconColorPressed: a,
- closeColorHover: s,
- closeColorPressed: c,
- tabColor: d,
- baseColor: f,
- dividerColor: v,
- fontWeight: p,
- textColor1: m,
- borderRadius: g,
- fontSize: w,
- fontWeightStrong: x
- } = e;
- return Object.assign(Object.assign({}, cJ), {
- colorSegment: d,
- tabFontSizeCard: w,
- tabTextColorLine: m,
- tabTextColorActiveLine: n,
- tabTextColorHoverLine: n,
- tabTextColorDisabledLine: r,
- tabTextColorSegment: m,
- tabTextColorActiveSegment: t,
- tabTextColorHoverSegment: t,
- tabTextColorDisabledSegment: r,
- tabTextColorBar: m,
- tabTextColorActiveBar: n,
- tabTextColorHoverBar: n,
- tabTextColorDisabledBar: r,
- tabTextColorCard: m,
- tabTextColorHoverCard: m,
- tabTextColorActiveCard: n,
- tabTextColorDisabledCard: r,
- barColor: n,
- closeIconColor: o,
- closeIconColorHover: i,
- closeIconColorPressed: a,
- closeColorHover: s,
- closeColorPressed: c,
- closeBorderRadius: g,
- tabColor: d,
- tabColorSegment: f,
- tabBorderColor: v,
- tabFontWeightActive: p,
- tabFontWeight: p,
- tabBorderRadius: g,
- paneTextColor: t,
- fontWeightStrong: x
- });
- },
- uJ = { name: 'Tabs', common: Nt, self: dJ },
- fJ = uJ,
- hJ = e => {
- const {
- textColor1: t,
- textColor2: n,
- fontWeightStrong: r,
- fontSize: o
- } = e;
- return { fontSize: o, titleTextColor: t, textColor: n, titleFontWeight: r };
- },
- vJ = { name: 'Thing', common: Nt, self: hJ },
- pJ = vJ,
- gJ = e => {
- const {
- borderRadiusSmall: t,
- hoverColor: n,
- pressedColor: r,
- primaryColor: o,
- textColor3: i,
- textColor2: a,
- textColorDisabled: s,
- fontSize: c
- } = e;
- return {
- fontSize: c,
- nodeBorderRadius: t,
- nodeColorHover: n,
- nodeColorPressed: r,
- nodeColorActive: zt(o, { alpha: 0.1 }),
- arrowColor: i,
- nodeTextColor: a,
- nodeTextColorDisabled: s,
- loadingColor: o,
- dropMarkColor: o
- };
- },
- mJ = {
- name: 'Tree',
- common: Nt,
- peers: { Checkbox: Ry, Scrollbar: Qi, Empty: Vv },
- self: gJ
- },
- bJ = mJ,
- yJ = e => {
- const {
- iconColor: t,
- primaryColor: n,
- errorColor: r,
- textColor2: o,
- successColor: i,
- opacityDisabled: a,
- actionColor: s,
- borderColor: c,
- hoverColor: d,
- lineHeight: f,
- borderRadius: v,
- fontSize: p
- } = e;
- return {
- fontSize: p,
- lineHeight: f,
- borderRadius: v,
- draggerColor: s,
- draggerBorder: `1px dashed ${c}`,
- draggerBorderHover: `1px dashed ${n}`,
- itemColorHover: d,
- itemColorHoverError: zt(r, { alpha: 0.06 }),
- itemTextColor: o,
- itemTextColorError: r,
- itemTextColorSuccess: i,
- itemIconColor: t,
- itemDisabledOpacity: a,
- itemBorderImageCardError: `1px solid ${r}`,
- itemBorderImageCard: `1px solid ${c}`
- };
- },
- xJ = {
- name: 'Upload',
- common: Nt,
- peers: { Button: Es, Progress: U3 },
- self: yJ
- },
- wJ = xJ,
- CJ = h(
- 'svg',
- { viewBox: '0 0 20 20', fill: 'none', xmlns: 'http://www.w3.org/2000/svg' },
- h('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'
- })
- ),
- SJ = h(
- 'svg',
- { viewBox: '0 0 20 20', fill: 'none', xmlns: 'http://www.w3.org/2000/svg' },
- h('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'
- })
- ),
- _J = h(
- 'svg',
- { viewBox: '0 0 20 20', fill: 'none', xmlns: 'http://www.w3.org/2000/svg' },
- h('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'
- })
- ),
- RJ = F([
- F('body >', [O('image-container', 'position: fixed;')]),
- O(
- 'image-preview-container',
- `
- position: fixed;
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- display: flex;
- `
- ),
- O(
- 'image-preview-overlay',
- `
- z-index: -1;
- position: absolute;
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- background: rgba(0, 0, 0, .3);
- `,
- [Cs()]
- ),
- O(
- 'image-preview-toolbar',
- `
- z-index: 1;
- position: absolute;
- left: 50%;
- transform: translateX(-50%);
- border-radius: var(--n-toolbar-border-radius);
- height: 48px;
- bottom: 40px;
- padding: 0 12px;
- background: var(--n-toolbar-color);
- box-shadow: var(--n-toolbar-box-shadow);
- color: var(--n-toolbar-icon-color);
- transition: color .3s var(--n-bezier);
- display: flex;
- align-items: center;
- `,
- [
- O(
- 'base-icon',
- `
- padding: 0 8px;
- font-size: 28px;
- cursor: pointer;
- `
- ),
- Cs()
- ]
- ),
- O(
- 'image-preview-wrapper',
- `
- position: absolute;
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- display: flex;
- pointer-events: none;
- `,
- [gi()]
- ),
- O(
- 'image-preview',
- `
- user-select: none;
- -webkit-user-select: none;
- pointer-events: all;
- margin: auto;
- max-height: calc(100vh - 32px);
- max-width: calc(100vw - 32px);
- transition: transform .3s var(--n-bezier);
- `
- ),
- O(
- 'image',
- `
- display: inline-flex;
- max-height: 100%;
- max-width: 100%;
- `,
- [
- jt(
- 'preview-disabled',
- `
- cursor: pointer;
- `
- ),
- F(
- 'img',
- `
- border-radius: inherit;
- `
- )
- ]
- )
- ]),
- Ch = 32,
- W3 = Re({
- name: 'ImagePreview',
- props: Object.assign(Object.assign({}, Uy), {
- onNext: Function,
- onPrev: Function,
- clsPrefix: { type: String, required: !0 }
- }),
- setup(e) {
- const t = Ke('Image', '-image', RJ, bQ, e, Ee(e, 'clsPrefix'));
- let n = null;
- const r = Z(null),
- o = Z(null),
- i = Z(void 0),
- a = Z(!1),
- s = Z(!1),
- { localeRef: c } = ka('Image');
- function d() {
- const { value: W } = o;
- if (!n || !W) return;
- const { style: Q } = W,
- ee = n.getBoundingClientRect(),
- ve = ee.left + ee.width / 2,
- oe = ee.top + ee.height / 2;
- Q.transformOrigin = `${ve}px ${oe}px`;
- }
- function f(W) {
- var Q, ee;
- switch (W.key) {
- case ' ':
- W.preventDefault();
- break;
- case 'ArrowLeft':
- (Q = e.onPrev) === null || Q === void 0 || Q.call(e);
- break;
- case 'ArrowRight':
- (ee = e.onNext) === null || ee === void 0 || ee.call(e);
- break;
- case 'Escape':
- Fe();
- break;
- }
- }
- $t(a, W => {
- W ? Tn('keydown', document, f) : pn('keydown', document, f);
- }),
- qn(() => {
- pn('keydown', document, f);
- });
- let v = 0,
- p = 0,
- m = 0,
- g = 0,
- w = 0,
- x = 0,
- y = 0,
- C = 0,
- R = !1;
- function S(W) {
- const { clientX: Q, clientY: ee } = W;
- (m = Q - v), (g = ee - p), Oc(pe);
- }
- function _(W) {
- const {
- mouseUpClientX: Q,
- mouseUpClientY: ee,
- mouseDownClientX: ve,
- mouseDownClientY: oe
- } = W,
- H = ve - Q,
- ae = oe - ee,
- ge = `vertical${ae > 0 ? 'Top' : 'Bottom'}`,
- Ce = `horizontal${H > 0 ? 'Left' : 'Right'}`;
- return {
- moveVerticalDirection: ge,
- moveHorizontalDirection: Ce,
- deltaHorizontal: H,
- deltaVertical: ae
- };
- }
- function P(W) {
- const { value: Q } = r;
- if (!Q) return { offsetX: 0, offsetY: 0 };
- const ee = Q.getBoundingClientRect(),
- {
- moveVerticalDirection: ve,
- moveHorizontalDirection: oe,
- deltaHorizontal: H,
- deltaVertical: ae
- } = W || {};
- let ge = 0,
- Ce = 0;
- return (
- ee.width <= window.innerWidth
- ? (ge = 0)
- : ee.left > 0
- ? (ge = (ee.width - window.innerWidth) / 2)
- : ee.right < window.innerWidth
- ? (ge = -(ee.width - window.innerWidth) / 2)
- : oe === 'horizontalRight'
- ? (ge = Math.min(
- (ee.width - window.innerWidth) / 2,
- w - (H != null ? H : 0)
- ))
- : (ge = Math.max(
- -((ee.width - window.innerWidth) / 2),
- w - (H != null ? H : 0)
- )),
- ee.height <= window.innerHeight
- ? (Ce = 0)
- : ee.top > 0
- ? (Ce = (ee.height - window.innerHeight) / 2)
- : ee.bottom < window.innerHeight
- ? (Ce = -(ee.height - window.innerHeight) / 2)
- : ve === 'verticalBottom'
- ? (Ce = Math.min(
- (ee.height - window.innerHeight) / 2,
- x - (ae != null ? ae : 0)
- ))
- : (Ce = Math.max(
- -((ee.height - window.innerHeight) / 2),
- x - (ae != null ? ae : 0)
- )),
- { offsetX: ge, offsetY: Ce }
- );
- }
- function T(W) {
- pn('mousemove', document, S), pn('mouseup', document, T);
- const { clientX: Q, clientY: ee } = W;
- R = !1;
- const ve = _({
- mouseUpClientX: Q,
- mouseUpClientY: ee,
- mouseDownClientX: y,
- mouseDownClientY: C
- }),
- oe = P(ve);
- (m = oe.offsetX), (g = oe.offsetY), pe();
- }
- const A = Ze(j3, null);
- function z(W) {
- var Q, ee;
- if (
- ((ee =
- (Q = A == null ? void 0 : A.previewedImgPropsRef.value) === null ||
- Q === void 0
- ? void 0
- : Q.onMousedown) === null ||
- ee === void 0 ||
- ee.call(Q, W),
- W.button !== 0)
- )
- return;
- const { clientX: ve, clientY: oe } = W;
- (R = !0),
- (v = ve - m),
- (p = oe - g),
- (w = m),
- (x = g),
- (y = ve),
- (C = oe),
- pe(),
- Tn('mousemove', document, S),
- Tn('mouseup', document, T);
- }
- function k(W) {
- var Q, ee;
- (ee =
- (Q = A == null ? void 0 : A.previewedImgPropsRef.value) === null ||
- Q === void 0
- ? void 0
- : Q.onDblclick) === null ||
- ee === void 0 ||
- ee.call(Q, W);
- const ve = J();
- (D = D === ve ? 1 : ve), pe();
- }
- const M = 1.5;
- let E = 0,
- D = 1,
- L = 0;
- function j() {
- (D = 1), (E = 0);
- }
- function B() {
- var W;
- j(), (L = 0), (W = e.onPrev) === null || W === void 0 || W.call(e);
- }
- function q() {
- var W;
- j(), (L = 0), (W = e.onNext) === null || W === void 0 || W.call(e);
- }
- function G() {
- (L -= 90), pe();
- }
- function ne() {
- (L += 90), pe();
- }
- function X() {
- const { value: W } = r;
- if (!W) return 1;
- const { innerWidth: Q, innerHeight: ee } = window,
- ve = Math.max(1, W.naturalHeight / (ee - Ch)),
- oe = Math.max(1, W.naturalWidth / (Q - Ch));
- return Math.max(3, ve * 2, oe * 2);
- }
- function J() {
- const { value: W } = r;
- if (!W) return 1;
- const { innerWidth: Q, innerHeight: ee } = window,
- ve = W.naturalHeight / (ee - Ch),
- oe = W.naturalWidth / (Q - Ch);
- return ve < 1 && oe < 1 ? 1 : Math.max(ve, oe);
- }
- function re() {
- const W = X();
- D < W && ((E += 1), (D = Math.min(W, Math.pow(M, E))), pe());
- }
- function ce() {
- if (D > 0.5) {
- const W = D;
- (E -= 1), (D = Math.max(0.5, Math.pow(M, E)));
- const Q = W - D;
- pe(!1);
- const ee = P();
- (D += Q), pe(!1), (D -= Q), (m = ee.offsetX), (g = ee.offsetY), pe();
- }
- }
- function pe(W = !0) {
- var Q;
- const { value: ee } = r;
- if (!ee) return;
- const { style: ve } = ee,
- oe = kv(
- (Q = A == null ? void 0 : A.previewedImgPropsRef.value) === null ||
- Q === void 0
- ? void 0
- : Q.style
- );
- let H = '';
- if (typeof oe == 'string') H = oe + ';';
- else for (const ge in oe) H += `${ZP(ge)}: ${oe[ge]};`;
- const ae = `transform-origin: center; transform: translateX(${m}px) translateY(${g}px) rotate(${L}deg) scale(${D});`;
- R
- ? (ve.cssText = H + 'cursor: grabbing; transition: none;' + ae)
- : (ve.cssText =
- H + 'cursor: grab;' + ae + (W ? '' : 'transition: none;')),
- W || ee.offsetHeight;
- }
- function Fe() {
- (a.value = !a.value), (s.value = !0);
- }
- function Ie() {
- (D = J()),
- (E = Math.ceil(Math.log(D) / Math.log(M))),
- (m = 0),
- (g = 0),
- pe();
- }
- const le = {
- setPreviewSrc: W => {
- i.value = W;
- },
- setThumbnailEl: W => {
- n = W;
- },
- toggleShow: Fe
- };
- function me(W, Q) {
- if (e.showToolbarTooltip) {
- const { value: ee } = t;
- return h(
- qv,
- {
- to: !1,
- theme: ee.peers.Tooltip,
- themeOverrides: ee.peerOverrides.Tooltip,
- keepAliveOnHover: !1
- },
- { default: () => c.value[Q], trigger: () => W }
- );
- } else return W;
- }
- const he = I(() => {
- const {
- common: { cubicBezierEaseInOut: W },
- self: {
- toolbarIconColor: Q,
- toolbarBorderRadius: ee,
- toolbarBoxShadow: ve,
- toolbarColor: oe
- }
- } = t.value;
- return {
- '--n-bezier': W,
- '--n-toolbar-icon-color': Q,
- '--n-toolbar-color': oe,
- '--n-toolbar-border-radius': ee,
- '--n-toolbar-box-shadow': ve
- };
- }),
- { inlineThemeDisabled: ue } = yt(),
- Ae = ue ? Mt('image-preview', void 0, he, e) : void 0;
- return Object.assign(
- {
- previewRef: r,
- previewWrapperRef: o,
- previewSrc: i,
- show: a,
- appear: yi(),
- displayed: s,
- previewedImgProps: A == null ? void 0 : A.previewedImgPropsRef,
- handleWheel(W) {
- W.preventDefault();
- },
- handlePreviewMousedown: z,
- handlePreviewDblclick: k,
- syncTransformOrigin: d,
- handleAfterLeave: () => {
- j(), (L = 0), (s.value = !1);
- },
- handleDragStart: W => {
- var Q, ee;
- (ee =
- (Q = A == null ? void 0 : A.previewedImgPropsRef.value) ===
- null || Q === void 0
- ? void 0
- : Q.onDragstart) === null ||
- ee === void 0 ||
- ee.call(Q, W),
- W.preventDefault();
- },
- zoomIn: re,
- zoomOut: ce,
- rotateCounterclockwise: G,
- rotateClockwise: ne,
- handleSwitchPrev: B,
- handleSwitchNext: q,
- withTooltip: me,
- resizeToOrignalImageSize: Ie,
- cssVars: ue ? void 0 : he,
- themeClass: Ae == null ? void 0 : Ae.themeClass,
- onRender: Ae == null ? void 0 : Ae.onRender
- },
- le
- );
- },
- render() {
- var e, t;
- const { clsPrefix: n } = this;
- return h(
- on,
- null,
- (t = (e = this.$slots).default) === null || t === void 0
- ? void 0
- : t.call(e),
- h(
- ju,
- { show: this.show },
- {
- default: () => {
- var r;
- return this.show || this.displayed
- ? ((r = this.onRender) === null || r === void 0 || r.call(this),
- Er(
- h(
- 'div',
- {
- class: [
- `${n}-image-preview-container`,
- this.themeClass
- ],
- style: this.cssVars,
- onWheel: this.handleWheel
- },
- h(
- Kn,
- { name: 'fade-in-transition', appear: this.appear },
- {
- default: () =>
- this.show
- ? h('div', {
- class: `${n}-image-preview-overlay`,
- onClick: this.toggleShow
- })
- : null
- }
- ),
- this.showToolbar
- ? h(
- Kn,
- { name: 'fade-in-transition', appear: this.appear },
- {
- default: () => {
- if (!this.show) return null;
- const { withTooltip: o } = this;
- return h(
- 'div',
- { class: `${n}-image-preview-toolbar` },
- this.onPrev
- ? h(
- on,
- null,
- o(
- h(
- Et,
- {
- clsPrefix: n,
- onClick: this.handleSwitchPrev
- },
- { default: () => CJ }
- ),
- 'tipPrevious'
- ),
- o(
- h(
- Et,
- {
- clsPrefix: n,
- onClick: this.handleSwitchNext
- },
- { default: () => SJ }
- ),
- 'tipNext'
- )
- )
- : null,
- o(
- h(
- Et,
- {
- clsPrefix: n,
- onClick: this.rotateCounterclockwise
- },
- { default: () => h(YU, null) }
- ),
- 'tipCounterclockwise'
- ),
- o(
- h(
- Et,
- {
- clsPrefix: n,
- onClick: this.rotateClockwise
- },
- { default: () => h(qU, null) }
- ),
- 'tipClockwise'
- ),
- o(
- h(
- Et,
- {
- clsPrefix: n,
- onClick: this.resizeToOrignalImageSize
- },
- { default: () => h(ZU, null) }
- ),
- 'tipOriginalSize'
- ),
- o(
- h(
- Et,
- { clsPrefix: n, onClick: this.zoomOut },
- { default: () => h(XU, null) }
- ),
- 'tipZoomOut'
- ),
- o(
- h(
- Et,
- { clsPrefix: n, onClick: this.zoomIn },
- { default: () => h(GU, null) }
- ),
- 'tipZoomIn'
- ),
- o(
- h(
- Et,
- {
- clsPrefix: n,
- onClick: this.toggleShow
- },
- { default: () => _J }
- ),
- 'tipClose'
- )
- );
- }
- }
- )
- : null,
- h(
- Kn,
- {
- name: 'fade-in-scale-up-transition',
- onAfterLeave: this.handleAfterLeave,
- appear: this.appear,
- onEnter: this.syncTransformOrigin,
- onBeforeLeave: this.syncTransformOrigin
- },
- {
- default: () => {
- const { previewedImgProps: o = {} } = this;
- return Er(
- h(
- 'div',
- {
- class: `${n}-image-preview-wrapper`,
- ref: 'previewWrapperRef'
- },
- h(
- 'img',
- Object.assign({}, o, {
- draggable: !1,
- onMousedown: this.handlePreviewMousedown,
- onDblclick: this.handlePreviewDblclick,
- class: [`${n}-image-preview`, o.class],
- key: this.previewSrc,
- src: this.previewSrc,
- ref: 'previewRef',
- onDragstart: this.handleDragStart
- })
- )
- ),
- [[vi, this.show]]
- );
- }
- }
- )
- ),
- [[Hu, { enabled: this.show }]]
- ))
- : null;
- }
- }
- )
- );
- }
- }),
- V3 = 'n-image-group',
- PJ = Uy,
- kJ = Re({
- name: 'ImageGroup',
- props: PJ,
- setup(e) {
- let t;
- const { mergedClsPrefixRef: n } = yt(e),
- r = `c${pi()}`,
- o = _a(),
- i = c => {
- var d;
- (t = c), (d = s.value) === null || d === void 0 || d.setPreviewSrc(c);
- };
- function a(c) {
- if (!(o != null && o.proxy)) return;
- const f = o.proxy.$el.parentElement.querySelectorAll(
- `[data-group-id=${r}]:not([data-error=true])`
- );
- if (!f.length) return;
- const v = Array.from(f).findIndex(p => p.dataset.previewSrc === t);
- ~v
- ? i(f[(v + c + f.length) % f.length].dataset.previewSrc)
- : i(f[0].dataset.previewSrc);
- }
- Rt(V3, {
- mergedClsPrefixRef: n,
- setPreviewSrc: i,
- setThumbnailEl: c => {
- var d;
- (d = s.value) === null || d === void 0 || d.setThumbnailEl(c);
- },
- toggleShow: () => {
- var c;
- (c = s.value) === null || c === void 0 || c.toggleShow();
- },
- groupId: r
- });
- const s = Z(null);
- return {
- mergedClsPrefix: n,
- previewInstRef: s,
- next: () => {
- a(1);
- },
- prev: () => {
- a(-1);
- }
- };
- },
- render() {
- return h(
- W3,
- {
- 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
- );
- }
- }),
- TJ = 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
- },
- Uy
- ),
- $J = Re({
- name: 'Image',
- props: TJ,
- inheritAttrs: !1,
- setup(e) {
- const t = Z(null),
- n = Z(!1),
- r = Z(null),
- o = Ze(V3, null),
- { mergedClsPrefixRef: i } = o || yt(e),
- a = {
- click: () => {
- if (e.previewDisabled || n.value) return;
- const d = e.previewSrc || e.src;
- if (o) {
- o.setPreviewSrc(d), o.setThumbnailEl(t.value), o.toggleShow();
- return;
- }
- const { value: f } = r;
- f &&
- (f.setPreviewSrc(d), f.setThumbnailEl(t.value), f.toggleShow());
- }
- },
- s = Z(!e.lazy);
- Hn(() => {
- var d;
- (d = t.value) === null ||
- d === void 0 ||
- d.setAttribute(
- 'data-group-id',
- (o == null ? void 0 : o.groupId) || ''
- );
- }),
- Hn(() => {
- if (e.lazy && e.intersectionObserverOptions) {
- let d;
- const f = Bn(() => {
- d == null || d(),
- (d = void 0),
- (d = Fk(t.value, e.intersectionObserverOptions, s));
- });
- qn(() => {
- f(), d == null || d();
- });
- }
- }),
- Bn(() => {
- var d;
- e.src,
- (d = e.imgProps) === null || d === void 0 || d.src,
- (n.value = !1);
- });
- const c = Z(!1);
- return (
- Rt(j3, { previewedImgPropsRef: Ee(e, 'previewedImgProps') }),
- Object.assign(
- {
- mergedClsPrefix: i,
- groupId: o == null ? void 0 : o.groupId,
- previewInstRef: r,
- imageRef: t,
- showError: n,
- shouldStartLoading: s,
- loaded: c,
- mergedOnClick: d => {
- var f, v;
- a.click(),
- (v =
- (f = e.imgProps) === null || f === void 0
- ? void 0
- : f.onClick) === null ||
- v === void 0 ||
- v.call(f, d);
- },
- mergedOnError: d => {
- if (!s.value) return;
- n.value = !0;
- const { onError: f, imgProps: { onError: v } = {} } = e;
- f == null || f(d), v == null || v(d);
- },
- mergedOnLoad: d => {
- const { onLoad: f, imgProps: { onLoad: v } = {} } = e;
- f == null || f(d), v == null || v(d), (c.value = !0);
- }
- },
- a
- )
- );
- },
- render() {
- var e, t;
- const {
- mergedClsPrefix: n,
- imgProps: r = {},
- loaded: o,
- $attrs: i,
- lazy: a
- } = this,
- s =
- (t = (e = this.$slots).placeholder) === null || t === void 0
- ? void 0
- : t.call(e),
- c = this.src || r.src,
- d = h(
- 'img',
- Object.assign(Object.assign({}, r), {
- ref: 'imageRef',
- width: this.width || r.width,
- height: this.height || r.height,
- src: this.showError
- ? this.fallbackSrc
- : a && this.intersectionObserverOptions
- ? this.shouldStartLoading
- ? c
- : void 0
- : c,
- alt: this.alt || r.alt,
- 'aria-label': this.alt || r.alt,
- onClick: this.mergedOnClick,
- onError: this.mergedOnError,
- onLoad: this.mergedOnLoad,
- loading:
- Dh && a && !this.intersectionObserverOptions ? 'lazy' : 'eager',
- style: [
- r.style || '',
- s && !o ? { height: '0', width: '0', visibility: 'hidden' } : '',
- { objectFit: this.objectFit }
- ],
- 'data-error': this.showError,
- 'data-preview-src': this.previewSrc || this.src
- })
- );
- return h(
- 'div',
- Object.assign({}, i, {
- role: 'none',
- class: [
- i.class,
- `${n}-image`,
- (this.previewDisabled || this.showError) &&
- `${n}-image--preview-disabled`
- ]
- }),
- this.groupId
- ? d
- : h(
- W3,
- {
- theme: this.theme,
- themeOverrides: this.themeOverrides,
- clsPrefix: n,
- ref: 'previewInstRef',
- showToolbar: this.showToolbar,
- showToolbarTooltip: this.showToolbarTooltip
- },
- { default: () => d }
- ),
- !o && s
- );
- }
- });
- function OJ(e) {
- return e == null || (typeof e == 'string' && e.trim() === '')
- ? null
- : Number(e);
- }
- function zJ(e) {
- return e.includes('.') && (/^(-)?\d+.*(\.|0)$/.test(e) || /^\.\d+$/.test(e));
- }
- function om(e) {
- return e == null ? !0 : !Number.isNaN(e);
- }
- function l2(e, t) {
- return e == null ? '' : t === void 0 ? String(e) : e.toFixed(t);
- }
- function im(e) {
- if (e === null) return null;
- if (typeof e == 'number') return e;
- {
- const t = Number(e);
- return Number.isNaN(t) ? null : t;
- }
- }
- const AJ = F([
- O(
- 'input-number-suffix',
- `
- display: inline-block;
- margin-right: 10px;
- `
- ),
- O(
- 'input-number-prefix',
- `
- display: inline-block;
- margin-left: 10px;
- `
- )
- ]),
- s2 = 800,
- c2 = 100,
- EJ = Object.assign(Object.assign({}, Ke.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]
- }),
- MJ = Re({
- name: 'InputNumber',
- props: EJ,
- setup(e) {
- const {
- mergedBorderedRef: t,
- mergedClsPrefixRef: n,
- mergedRtlRef: r
- } = yt(e),
- o = Ke('InputNumber', '-input-number', AJ, $Q, e, n),
- { localeRef: i } = ka('InputNumber'),
- a = ei(e),
- { mergedSizeRef: s, mergedDisabledRef: c, mergedStatusRef: d } = a,
- f = Z(null),
- v = Z(null),
- p = Z(null),
- m = Z(e.defaultValue),
- g = Ee(e, 'value'),
- w = An(g, m),
- x = Z(''),
- y = H => {
- const ae = String(H).split('.')[1];
- return ae ? ae.length : 0;
- },
- C = H => {
- const ae = [e.min, e.max, e.step, H].map(ge =>
- ge === void 0 ? 0 : y(ge)
- );
- return Math.max(...ae);
- },
- R = kt(() => {
- const { placeholder: H } = e;
- return H !== void 0 ? H : i.value.placeholder;
- }),
- S = kt(() => {
- const H = im(e.step);
- return H !== null ? (H === 0 ? 1 : Math.abs(H)) : 1;
- }),
- _ = kt(() => {
- const H = im(e.min);
- return H !== null ? H : null;
- }),
- P = kt(() => {
- const H = im(e.max);
- return H !== null ? H : null;
- }),
- T = H => {
- const { value: ae } = w;
- if (H === ae) {
- z();
- return;
- }
- const { 'onUpdate:value': ge, onUpdateValue: Ce, onChange: se } = e,
- { nTriggerFormInput: Se, nTriggerFormChange: Ne } = a;
- se && ze(se, H),
- Ce && ze(Ce, H),
- ge && ze(ge, H),
- (m.value = H),
- Se(),
- Ne();
- },
- A = ({
- offset: H,
- doUpdateIfValid: ae,
- fixPrecision: ge,
- isInputing: Ce
- }) => {
- const { value: se } = x;
- if (Ce && zJ(se)) return !1;
- const Se = (e.parse || OJ)(se);
- if (Se === null) return ae && T(null), null;
- if (om(Se)) {
- const Ne = y(Se),
- { precision: Ge } = e;
- if (Ge !== void 0 && Ge < Ne && !ge) return !1;
- let it = parseFloat((Se + H).toFixed(Ge != null ? Ge : C(Se)));
- if (om(it)) {
- const { value: dt } = P,
- { value: xt } = _;
- if (dt !== null && it > dt) {
- if (!ae || Ce) return !1;
- it = dt;
- }
- if (xt !== null && it < xt) {
- if (!ae || Ce) return !1;
- it = xt;
- }
- return e.validator && !e.validator(it) ? !1 : (ae && T(it), it);
- }
- }
- return !1;
- },
- z = () => {
- const { value: H } = w;
- if (om(H)) {
- const { format: ae, precision: ge } = e;
- ae
- ? (x.value = ae(H))
- : H === null || ge === void 0 || y(H) > ge
- ? (x.value = l2(H, void 0))
- : (x.value = l2(H, ge));
- } else x.value = String(H);
- };
- z();
- const k = kt(
- () =>
- A({
- offset: 0,
- doUpdateIfValid: !1,
- isInputing: !1,
- fixPrecision: !1
- }) === !1
- ),
- M = kt(() => {
- const { value: H } = w;
- if (e.validator && H === null) return !1;
- const { value: ae } = S;
- return (
- A({
- offset: -ae,
- doUpdateIfValid: !1,
- isInputing: !1,
- fixPrecision: !1
- }) !== !1
- );
- }),
- E = kt(() => {
- const { value: H } = w;
- if (e.validator && H === null) return !1;
- const { value: ae } = S;
- return (
- A({
- offset: +ae,
- doUpdateIfValid: !1,
- isInputing: !1,
- fixPrecision: !1
- }) !== !1
- );
- });
- function D(H) {
- const { onFocus: ae } = e,
- { nTriggerFormFocus: ge } = a;
- ae && ze(ae, H), ge();
- }
- function L(H) {
- var ae, ge;
- if (
- H.target ===
- ((ae = f.value) === null || ae === void 0 ? void 0 : ae.wrapperElRef)
- )
- return;
- const Ce = A({
- offset: 0,
- doUpdateIfValid: !0,
- isInputing: !1,
- fixPrecision: !0
- });
- if (Ce !== !1) {
- const Ne =
- (ge = f.value) === null || ge === void 0 ? void 0 : ge.inputElRef;
- Ne && (Ne.value = String(Ce || '')), w.value === Ce && z();
- } else z();
- const { onBlur: se } = e,
- { nTriggerFormBlur: Se } = a;
- se && ze(se, H),
- Se(),
- mn(() => {
- z();
- });
- }
- function j(H) {
- const { onClear: ae } = e;
- ae && ze(ae, H);
- }
- function B() {
- const { value: H } = E;
- if (!H) {
- le();
- return;
- }
- const { value: ae } = w;
- if (ae === null) e.validator || T(X());
- else {
- const { value: ge } = S;
- A({
- offset: ge,
- doUpdateIfValid: !0,
- isInputing: !1,
- fixPrecision: !0
- });
- }
- }
- function q() {
- const { value: H } = M;
- if (!H) {
- Ie();
- return;
- }
- const { value: ae } = w;
- if (ae === null) e.validator || T(X());
- else {
- const { value: ge } = S;
- A({
- offset: -ge,
- doUpdateIfValid: !0,
- isInputing: !1,
- fixPrecision: !0
- });
- }
- }
- const G = D,
- ne = L;
- function X() {
- if (e.validator) return null;
- const { value: H } = _,
- { value: ae } = P;
- return H !== null ? Math.max(0, H) : ae !== null ? Math.min(0, ae) : 0;
- }
- function J(H) {
- j(H), T(null);
- }
- function re(H) {
- var ae, ge, Ce;
- !((ae = p.value) === null || ae === void 0) &&
- ae.$el.contains(H.target) &&
- H.preventDefault(),
- !((ge = v.value) === null || ge === void 0) &&
- ge.$el.contains(H.target) &&
- H.preventDefault(),
- (Ce = f.value) === null || Ce === void 0 || Ce.activate();
- }
- let ce = null,
- pe = null,
- Fe = null;
- function Ie() {
- Fe && (window.clearTimeout(Fe), (Fe = null)),
- ce && (window.clearInterval(ce), (ce = null));
- }
- function le() {
- he && (window.clearTimeout(he), (he = null)),
- pe && (window.clearInterval(pe), (pe = null));
- }
- function me() {
- Ie(),
- (Fe = window.setTimeout(() => {
- ce = window.setInterval(() => {
- q();
- }, c2);
- }, s2)),
- Tn('mouseup', document, Ie, { once: !0 });
- }
- let he = null;
- function ue() {
- le(),
- (he = window.setTimeout(() => {
- pe = window.setInterval(() => {
- B();
- }, c2);
- }, s2)),
- Tn('mouseup', document, le, { once: !0 });
- }
- const Ae = () => {
- pe || B();
- },
- W = () => {
- ce || q();
- };
- function Q(H) {
- var ae, ge;
- if (H.key === 'Enter') {
- if (
- H.target ===
- ((ae = f.value) === null || ae === void 0
- ? void 0
- : ae.wrapperElRef)
- )
- return;
- A({
- offset: 0,
- doUpdateIfValid: !0,
- isInputing: !1,
- fixPrecision: !0
- }) !== !1 &&
- ((ge = f.value) === null || ge === void 0 || ge.deactivate());
- } else if (H.key === 'ArrowUp') {
- if (!E.value || e.keyboard.ArrowUp === !1) return;
- H.preventDefault(),
- A({
- offset: 0,
- doUpdateIfValid: !0,
- isInputing: !1,
- fixPrecision: !0
- }) !== !1 && B();
- } else if (H.key === 'ArrowDown') {
- if (!M.value || e.keyboard.ArrowDown === !1) return;
- H.preventDefault(),
- A({
- offset: 0,
- doUpdateIfValid: !0,
- isInputing: !1,
- fixPrecision: !0
- }) !== !1 && q();
- }
- }
- function ee(H) {
- (x.value = H),
- e.updateValueOnInput &&
- !e.format &&
- !e.parse &&
- e.precision === void 0 &&
- A({
- offset: 0,
- doUpdateIfValid: !0,
- isInputing: !0,
- fixPrecision: !1
- });
- }
- $t(w, () => {
- z();
- });
- const ve = {
- focus: () => {
- var H;
- return (H = f.value) === null || H === void 0 ? void 0 : H.focus();
- },
- blur: () => {
- var H;
- return (H = f.value) === null || H === void 0 ? void 0 : H.blur();
- }
- },
- oe = dr('InputNumber', r, n);
- return Object.assign(Object.assign({}, ve), {
- rtlEnabled: oe,
- inputInstRef: f,
- minusButtonInstRef: v,
- addButtonInstRef: p,
- mergedClsPrefix: n,
- mergedBordered: t,
- uncontrolledValue: m,
- mergedValue: w,
- mergedPlaceholder: R,
- displayedValueInvalid: k,
- mergedSize: s,
- mergedDisabled: c,
- displayedValue: x,
- addable: E,
- minusable: M,
- mergedStatus: d,
- handleFocus: G,
- handleBlur: ne,
- handleClear: J,
- handleMouseDown: re,
- handleAddClick: Ae,
- handleMinusClick: W,
- handleAddMousedown: ue,
- handleMinusMousedown: me,
- handleKeyDown: Q,
- handleUpdateDisplayedValue: ee,
- mergedTheme: o,
- inputThemeOverrides: {
- paddingSmall: '0 8px 0 10px',
- paddingMedium: '0 8px 0 12px',
- paddingLarge: '0 8px 0 14px'
- },
- buttonThemeOverrides: I(() => {
- const {
- self: { iconColorDisabled: H }
- } = o.value,
- [ae, ge, Ce, se] = ul(H);
- return {
- textColorTextDisabled: `rgb(${ae}, ${ge}, ${Ce})`,
- opacityDisabled: `${se}`
- };
- })
- });
- },
- render() {
- const { mergedClsPrefix: e, $slots: t } = this,
- n = () =>
- h(
- ji,
- {
- 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'], () => [
- h(Et, { clsPrefix: e }, { default: () => h(LU, null) })
- ])
- }
- ),
- r = () =>
- h(
- ji,
- {
- 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'], () => [
- h(Et, { clsPrefix: e }, { default: () => h(yy, null) })
- ])
- }
- );
- return h(
- 'div',
- {
- class: [
- `${e}-input-number`,
- this.rtlEnabled && `${e}-input-number--rtl`
- ]
- },
- h(
- Yi,
- {
- 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'
- ? [
- n(),
- cn(t.prefix, i =>
- i
- ? h('span', { class: `${e}-input-number-prefix` }, i)
- : null
- )
- ]
- : (o = t.prefix) === null || o === void 0
- ? void 0
- : o.call(t);
- },
- suffix: () => {
- var o;
- return this.showButton
- ? [
- cn(t.suffix, i =>
- i
- ? h('span', { class: `${e}-input-number-suffix` }, i)
- : null
- ),
- this.buttonPlacement === 'right' ? n() : null,
- r()
- ]
- : (o = t.suffix) === null || o === void 0
- ? void 0
- : o.call(t);
- }
- }
- )
- );
- }
- }),
- K3 = 'n-layout-sider',
- Qv = { type: String, default: 'static' },
- IJ = O(
- 'layout',
- `
- color: var(--n-text-color);
- background-color: var(--n-color);
- box-sizing: border-box;
- position: relative;
- z-index: auto;
- flex: auto;
- overflow: hidden;
- transition:
- box-shadow .3s var(--n-bezier),
- background-color .3s var(--n-bezier),
- color .3s var(--n-bezier);
- `,
- [
- O(
- 'layout-scroll-container',
- `
- overflow-x: hidden;
- box-sizing: border-box;
- height: 100%;
- `
- ),
- U(
- 'absolute-positioned',
- `
- position: absolute;
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- `
- )
- ]
- ),
- DJ = {
- embedded: Boolean,
- position: Qv,
- nativeScrollbar: { type: Boolean, default: !0 },
- scrollbarProps: Object,
- onScroll: Function,
- contentStyle: { type: [String, Object], default: '' },
- hasSider: Boolean,
- siderPlacement: { type: String, default: 'left' }
- },
- q3 = 'n-layout';
- function Y3(e) {
- return Re({
- name: e ? 'LayoutContent' : 'Layout',
- props: Object.assign(Object.assign({}, Ke.props), DJ),
- setup(t) {
- const n = Z(null),
- r = Z(null),
- { mergedClsPrefixRef: o, inlineThemeDisabled: i } = yt(t),
- a = Ke('Layout', '-layout', IJ, Zv, t, o);
- function s(w, x) {
- if (t.nativeScrollbar) {
- const { value: y } = n;
- y && (x === void 0 ? y.scrollTo(w) : y.scrollTo(w, x));
- } else {
- const { value: y } = r;
- y && y.scrollTo(w, x);
- }
- }
- Rt(q3, t);
- let c = 0,
- d = 0;
- const f = w => {
- var x;
- const y = w.target;
- (c = y.scrollLeft),
- (d = y.scrollTop),
- (x = t.onScroll) === null || x === void 0 || x.call(t, w);
- };
- ey(() => {
- if (t.nativeScrollbar) {
- const w = n.value;
- w && ((w.scrollTop = d), (w.scrollLeft = c));
- }
- });
- const v = {
- display: 'flex',
- flexWrap: 'nowrap',
- width: '100%',
- flexDirection: 'row'
- },
- p = { scrollTo: s },
- m = I(() => {
- const {
- common: { cubicBezierEaseInOut: w },
- self: x
- } = a.value;
- return {
- '--n-bezier': w,
- '--n-color': t.embedded ? x.colorEmbedded : x.color,
- '--n-text-color': x.textColor
- };
- }),
- g = i
- ? Mt(
- 'layout',
- I(() => (t.embedded ? 'e' : '')),
- m,
- t
- )
- : void 0;
- return Object.assign(
- {
- mergedClsPrefix: o,
- scrollableElRef: n,
- scrollbarInstRef: r,
- hasSiderStyle: v,
- mergedTheme: a,
- handleNativeElScroll: f,
- cssVars: i ? void 0 : m,
- themeClass: g == null ? void 0 : g.themeClass,
- onRender: g == null ? void 0 : g.onRender
- },
- p
- );
- },
- render() {
- var t;
- const { mergedClsPrefix: n, hasSider: r } = this;
- (t = this.onRender) === null || t === void 0 || t.call(this);
- const o = r ? this.hasSiderStyle : void 0,
- i = [
- this.themeClass,
- e && `${n}-layout-content`,
- `${n}-layout`,
- `${n}-layout--${this.position}-positioned`
- ];
- return h(
- 'div',
- { class: i, style: this.cssVars },
- this.nativeScrollbar
- ? h(
- 'div',
- {
- ref: 'scrollableElRef',
- class: `${n}-layout-scroll-container`,
- style: [this.contentStyle, o],
- onScroll: this.handleNativeElScroll
- },
- this.$slots
- )
- : h(
- yr,
- 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 FJ = Y3(!1),
- BJ = Y3(!0),
- LJ = O(
- 'layout-header',
- `
- transition:
- color .3s var(--n-bezier),
- background-color .3s var(--n-bezier),
- box-shadow .3s var(--n-bezier),
- border-color .3s var(--n-bezier);
- box-sizing: border-box;
- width: 100%;
- background-color: var(--n-color);
- color: var(--n-text-color);
- `,
- [
- U(
- 'absolute-positioned',
- `
- position: absolute;
- left: 0;
- right: 0;
- top: 0;
- `
- ),
- U(
- 'bordered',
- `
- border-bottom: solid 1px var(--n-border-color);
- `
- )
- ]
- ),
- NJ = {
- position: Qv,
- inverted: Boolean,
- bordered: { type: Boolean, default: !1 }
- },
- HJ = Re({
- name: 'LayoutHeader',
- props: Object.assign(Object.assign({}, Ke.props), NJ),
- setup(e) {
- const { mergedClsPrefixRef: t, inlineThemeDisabled: n } = yt(e),
- r = Ke('Layout', '-layout-header', LJ, Zv, e, t),
- o = I(() => {
- const {
- common: { cubicBezierEaseInOut: a },
- self: s
- } = r.value,
- c = { '--n-bezier': a };
- return (
- e.inverted
- ? ((c['--n-color'] = s.headerColorInverted),
- (c['--n-text-color'] = s.textColorInverted),
- (c['--n-border-color'] = s.headerBorderColorInverted))
- : ((c['--n-color'] = s.headerColor),
- (c['--n-text-color'] = s.textColor),
- (c['--n-border-color'] = s.headerBorderColor)),
- c
- );
- }),
- i = n
- ? Mt(
- 'layout-header',
- I(() => (e.inverted ? 'a' : 'b')),
- o,
- e
- )
- : void 0;
- return {
- mergedClsPrefix: t,
- cssVars: n ? void 0 : o,
- themeClass: i == null ? void 0 : i.themeClass,
- onRender: i == null ? void 0 : i.onRender
- };
- },
- render() {
- var e;
- const { mergedClsPrefix: t } = this;
- return (
- (e = this.onRender) === null || e === void 0 || e.call(this),
- h(
- '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
- )
- );
- }
- }),
- jJ = O(
- 'layout-footer',
- `
- transition:
- box-shadow .3s var(--n-bezier),
- color .3s var(--n-bezier),
- background-color .3s var(--n-bezier),
- border-color .3s var(--n-bezier);
- color: var(--n-text-color);
- background-color: var(--n-color);
- box-sizing: border-box;
- `,
- [
- U(
- 'absolute-positioned',
- `
- position: absolute;
- left: 0;
- right: 0;
- bottom: 0;
- `
- ),
- U(
- 'bordered',
- `
- border-top: solid 1px var(--n-border-color);
- `
- )
- ]
- ),
- UJ = Object.assign(Object.assign({}, Ke.props), {
- inverted: Boolean,
- position: Qv,
- bordered: Boolean
- }),
- WJ = Re({
- name: 'LayoutFooter',
- props: UJ,
- setup(e) {
- const { mergedClsPrefixRef: t, inlineThemeDisabled: n } = yt(e),
- r = Ke('Layout', '-layout-footer', jJ, Zv, e, t),
- o = I(() => {
- const {
- common: { cubicBezierEaseInOut: a },
- self: s
- } = r.value,
- c = { '--n-bezier': a };
- return (
- e.inverted
- ? ((c['--n-color'] = s.footerColorInverted),
- (c['--n-text-color'] = s.textColorInverted),
- (c['--n-border-color'] = s.footerBorderColorInverted))
- : ((c['--n-color'] = s.footerColor),
- (c['--n-text-color'] = s.textColor),
- (c['--n-border-color'] = s.footerBorderColor)),
- c
- );
- }),
- i = n
- ? Mt(
- 'layout-footer',
- I(() => (e.inverted ? 'a' : 'b')),
- o,
- e
- )
- : void 0;
- return {
- mergedClsPrefix: t,
- cssVars: n ? void 0 : o,
- themeClass: i == null ? void 0 : i.themeClass,
- onRender: i == null ? void 0 : i.onRender
- };
- },
- render() {
- var e;
- const { mergedClsPrefix: t } = this;
- return (
- (e = this.onRender) === null || e === void 0 || e.call(this),
- h(
- '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
- )
- );
- }
- }),
- VJ = O(
- 'layout-sider',
- `
- flex-shrink: 0;
- box-sizing: border-box;
- position: relative;
- z-index: 1;
- color: var(--n-text-color);
- transition:
- color .3s var(--n-bezier),
- border-color .3s var(--n-bezier),
- min-width .3s var(--n-bezier),
- max-width .3s var(--n-bezier),
- transform .3s var(--n-bezier),
- background-color .3s var(--n-bezier);
- background-color: var(--n-color);
- display: flex;
- justify-content: flex-end;
- `,
- [
- U('bordered', [
- V(
- 'border',
- `
- content: "";
- position: absolute;
- top: 0;
- bottom: 0;
- width: 1px;
- background-color: var(--n-border-color);
- transition: background-color .3s var(--n-bezier);
- `
- )
- ]),
- V('left-placement', [
- U('bordered', [
- V(
- 'border',
- `
- right: 0;
- `
- )
- ])
- ]),
- U(
- 'right-placement',
- `
- justify-content: flex-start;
- `,
- [
- U('bordered', [
- V(
- 'border',
- `
- left: 0;
- `
- )
- ]),
- U('collapsed', [
- O('layout-toggle-button', [
- O(
- 'base-icon',
- `
- transform: rotate(180deg);
- `
- )
- ]),
- O('layout-toggle-bar', [
- F('&:hover', [
- V('top', {
- transform: 'rotate(-12deg) scale(1.15) translateY(-2px)'
- }),
- V('bottom', {
- transform: 'rotate(12deg) scale(1.15) translateY(2px)'
- })
- ])
- ])
- ]),
- O(
- 'layout-toggle-button',
- `
- left: 0;
- transform: translateX(-50%) translateY(-50%);
- `,
- [
- O(
- 'base-icon',
- `
- transform: rotate(0);
- `
- )
- ]
- ),
- O(
- 'layout-toggle-bar',
- `
- left: -28px;
- transform: rotate(180deg);
- `,
- [
- F('&:hover', [
- V('top', {
- transform: 'rotate(12deg) scale(1.15) translateY(-2px)'
- }),
- V('bottom', {
- transform: 'rotate(-12deg) scale(1.15) translateY(2px)'
- })
- ])
- ]
- )
- ]
- ),
- U('collapsed', [
- O('layout-toggle-bar', [
- F('&:hover', [
- V('top', {
- transform: 'rotate(-12deg) scale(1.15) translateY(-2px)'
- }),
- V('bottom', {
- transform: 'rotate(12deg) scale(1.15) translateY(2px)'
- })
- ])
- ]),
- O('layout-toggle-button', [
- O(
- 'base-icon',
- `
- transform: rotate(0);
- `
- )
- ])
- ]),
- O(
- 'layout-toggle-button',
- `
- transition:
- color .3s var(--n-bezier),
- right .3s var(--n-bezier),
- left .3s var(--n-bezier),
- border-color .3s var(--n-bezier),
- background-color .3s var(--n-bezier);
- cursor: pointer;
- width: 24px;
- height: 24px;
- position: absolute;
- top: 50%;
- right: 0;
- border-radius: 50%;
- display: flex;
- align-items: center;
- justify-content: center;
- font-size: 18px;
- color: var(--n-toggle-button-icon-color);
- border: var(--n-toggle-button-border);
- background-color: var(--n-toggle-button-color);
- box-shadow: 0 2px 4px 0px rgba(0, 0, 0, .06);
- transform: translateX(50%) translateY(-50%);
- z-index: 1;
- `,
- [
- O(
- 'base-icon',
- `
- transition: transform .3s var(--n-bezier);
- transform: rotate(180deg);
- `
- )
- ]
- ),
- O(
- 'layout-toggle-bar',
- `
- cursor: pointer;
- height: 72px;
- width: 32px;
- position: absolute;
- top: calc(50% - 36px);
- right: -28px;
- `,
- [
- V(
- 'top, bottom',
- `
- position: absolute;
- width: 4px;
- border-radius: 2px;
- height: 38px;
- left: 14px;
- transition:
- background-color .3s var(--n-bezier),
- transform .3s var(--n-bezier);
- `
- ),
- V(
- 'bottom',
- `
- position: absolute;
- top: 34px;
- `
- ),
- F('&:hover', [
- V('top', {
- transform: 'rotate(12deg) scale(1.15) translateY(-2px)'
- }),
- V('bottom', {
- transform: 'rotate(-12deg) scale(1.15) translateY(2px)'
- })
- ]),
- V('top, bottom', { backgroundColor: 'var(--n-toggle-bar-color)' }),
- F('&:hover', [
- V('top, bottom', {
- backgroundColor: 'var(--n-toggle-bar-color-hover)'
- })
- ])
- ]
- ),
- V(
- 'border',
- `
- position: absolute;
- top: 0;
- right: 0;
- bottom: 0;
- width: 1px;
- transition: background-color .3s var(--n-bezier);
- `
- ),
- O(
- 'layout-sider-scroll-container',
- `
- flex-grow: 1;
- flex-shrink: 0;
- box-sizing: border-box;
- height: 100%;
- opacity: 0;
- transition: opacity .3s var(--n-bezier);
- max-width: 100%;
- `
- ),
- U('show-content', [O('layout-sider-scroll-container', { opacity: 1 })]),
- U(
- 'absolute-positioned',
- `
- position: absolute;
- left: 0;
- top: 0;
- bottom: 0;
- `
- )
- ]
- ),
- KJ = Re({
- name: 'LayoutToggleButton',
- props: { clsPrefix: { type: String, required: !0 }, onClick: Function },
- render() {
- const { clsPrefix: e } = this;
- return h(
- 'div',
- { class: `${e}-layout-toggle-button`, onClick: this.onClick },
- h(Et, { clsPrefix: e }, { default: () => h(xy, null) })
- );
- }
- }),
- qJ = Re({
- props: { clsPrefix: { type: String, required: !0 }, onClick: Function },
- render() {
- const { clsPrefix: e } = this;
- return h(
- 'div',
- { onClick: this.onClick, class: `${e}-layout-toggle-bar` },
- h('div', { class: `${e}-layout-toggle-bar__top` }),
- h('div', { class: `${e}-layout-toggle-bar__bottom` })
- );
- }
- }),
- YJ = {
- position: Qv,
- 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
- },
- GJ = Re({
- name: 'LayoutSider',
- props: Object.assign(Object.assign({}, Ke.props), YJ),
- setup(e) {
- const t = Ze(q3),
- n = Z(null),
- r = Z(null),
- o = I(() => vn(c.value ? e.collapsedWidth : e.width)),
- i = I(() =>
- e.collapseMode !== 'transform' ? {} : { minWidth: vn(e.width) }
- ),
- a = I(() => (t ? t.siderPlacement : 'left')),
- s = Z(e.defaultCollapsed),
- c = An(Ee(e, 'collapsed'), s);
- function d(_, P) {
- if (e.nativeScrollbar) {
- const { value: T } = n;
- T && (P === void 0 ? T.scrollTo(_) : T.scrollTo(_, P));
- } else {
- const { value: T } = r;
- T && T.scrollTo(_, P);
- }
- }
- function f() {
- const {
- 'onUpdate:collapsed': _,
- onUpdateCollapsed: P,
- onExpand: T,
- onCollapse: A
- } = e,
- { value: z } = c;
- P && ze(P, !z),
- _ && ze(_, !z),
- (s.value = !z),
- z ? T && ze(T) : A && ze(A);
- }
- let v = 0,
- p = 0;
- const m = _ => {
- var P;
- const T = _.target;
- (v = T.scrollLeft),
- (p = T.scrollTop),
- (P = e.onScroll) === null || P === void 0 || P.call(e, _);
- };
- ey(() => {
- if (e.nativeScrollbar) {
- const _ = n.value;
- _ && ((_.scrollTop = p), (_.scrollLeft = v));
- }
- }),
- Rt(K3, { collapsedRef: c, collapseModeRef: Ee(e, 'collapseMode') });
- const { mergedClsPrefixRef: g, inlineThemeDisabled: w } = yt(e),
- x = Ke('Layout', '-layout-sider', VJ, Zv, e, g);
- function y(_) {
- var P, T;
- _.propertyName === 'max-width' &&
- (c.value
- ? (P = e.onAfterLeave) === null || P === void 0 || P.call(e)
- : (T = e.onAfterEnter) === null || T === void 0 || T.call(e));
- }
- const C = { scrollTo: d },
- R = I(() => {
- const {
- common: { cubicBezierEaseInOut: _ },
- self: P
- } = x.value,
- {
- siderToggleButtonColor: T,
- siderToggleButtonBorder: A,
- siderToggleBarColor: z,
- siderToggleBarColorHover: k
- } = P,
- M = {
- '--n-bezier': _,
- '--n-toggle-button-color': T,
- '--n-toggle-button-border': A,
- '--n-toggle-bar-color': z,
- '--n-toggle-bar-color-hover': k
- };
- return (
- e.inverted
- ? ((M['--n-color'] = P.siderColorInverted),
- (M['--n-text-color'] = P.textColorInverted),
- (M['--n-border-color'] = P.siderBorderColorInverted),
- (M['--n-toggle-button-icon-color'] =
- P.siderToggleButtonIconColorInverted),
- (M.__invertScrollbar = P.__invertScrollbar))
- : ((M['--n-color'] = P.siderColor),
- (M['--n-text-color'] = P.textColor),
- (M['--n-border-color'] = P.siderBorderColor),
- (M['--n-toggle-button-icon-color'] =
- P.siderToggleButtonIconColor)),
- M
- );
- }),
- S = w
- ? Mt(
- 'layout-sider',
- I(() => (e.inverted ? 'a' : 'b')),
- R,
- e
- )
- : void 0;
- return Object.assign(
- {
- scrollableElRef: n,
- scrollbarInstRef: r,
- mergedClsPrefix: g,
- mergedTheme: x,
- styleMaxWidth: o,
- mergedCollapsed: c,
- scrollContainerStyle: i,
- siderPlacement: a,
- handleNativeElScroll: m,
- handleTransitionend: y,
- handleTriggerClick: f,
- inlineThemeDisabled: w,
- cssVars: R,
- themeClass: S == null ? void 0 : S.themeClass,
- onRender: S == null ? void 0 : S.onRender
- },
- C
- );
- },
- render() {
- var e;
- const { mergedClsPrefix: t, mergedCollapsed: n, showTrigger: r } = this;
- return (
- (e = this.onRender) === null || e === void 0 || e.call(this),
- h(
- '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`,
- n && `${t}-layout-sider--collapsed`,
- (!n || this.showCollapsedContent) &&
- `${t}-layout-sider--show-content`
- ],
- onTransitionend: this.handleTransitionend,
- style: [
- this.inlineThemeDisabled ? void 0 : this.cssVars,
- { maxWidth: this.styleMaxWidth, width: vn(this.width) }
- ]
- },
- this.nativeScrollbar
- ? h(
- 'div',
- {
- class: `${t}-layout-sider-scroll-container`,
- onScroll: this.handleNativeElScroll,
- style: [
- this.scrollContainerStyle,
- { overflow: 'auto' },
- this.contentStyle
- ],
- ref: 'scrollableElRef'
- },
- this.$slots
- )
- : h(
- yr,
- 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
- ),
- r
- ? r === 'bar'
- ? h(qJ, {
- clsPrefix: t,
- style: n ? this.collapsedTriggerStyle : this.triggerStyle,
- onClick: this.handleTriggerClick
- })
- : h(KJ, {
- clsPrefix: t,
- style: n ? this.collapsedTriggerStyle : this.triggerStyle,
- onClick: this.handleTriggerClick
- })
- : null,
- this.bordered
- ? h('div', { class: `${t}-layout-sider__border` })
- : null
- )
- );
- }
- }),
- XJ = F([
- O(
- 'list',
- `
- --n-merged-border-color: var(--n-border-color);
- --n-merged-color: var(--n-color);
- --n-merged-color-hover: var(--n-color-hover);
- margin: 0;
- font-size: var(--n-font-size);
- transition:
- background-color .3s var(--n-bezier),
- color .3s var(--n-bezier),
- border-color .3s var(--n-bezier);
- padding: 0;
- list-style-type: none;
- color: var(--n-text-color);
- background-color: var(--n-merged-color);
- `,
- [
- U('show-divider', [
- O('list-item', [
- F('&:not(:last-child)', [
- V(
- 'divider',
- `
- background-color: var(--n-merged-border-color);
- `
- )
- ])
- ])
- ]),
- U('clickable', [
- O(
- 'list-item',
- `
- cursor: pointer;
- `
- )
- ]),
- U(
- 'bordered',
- `
- border: 1px solid var(--n-merged-border-color);
- border-radius: var(--n-border-radius);
- `
- ),
- U('hoverable', [
- O(
- 'list-item',
- `
- border-radius: var(--n-border-radius);
- `,
- [
- F(
- '&:hover',
- `
- background-color: var(--n-merged-color-hover);
- `,
- [
- V(
- 'divider',
- `
- background-color: transparent;
- `
- )
- ]
- )
- ]
- )
- ]),
- U('bordered, hoverable', [
- O(
- 'list-item',
- `
- padding: 12px 20px;
- `
- ),
- V(
- 'header, footer',
- `
- padding: 12px 20px;
- `
- )
- ]),
- V(
- 'header, footer',
- `
- padding: 12px 0;
- box-sizing: border-box;
- transition: border-color .3s var(--n-bezier);
- `,
- [
- F(
- '&:not(:last-child)',
- `
- border-bottom: 1px solid var(--n-merged-border-color);
- `
- )
- ]
- ),
- O(
- 'list-item',
- `
- position: relative;
- padding: 12px 0;
- box-sizing: border-box;
- display: flex;
- flex-wrap: nowrap;
- align-items: center;
- transition:
- background-color .3s var(--n-bezier),
- border-color .3s var(--n-bezier);
- `,
- [
- V(
- 'prefix',
- `
- margin-right: 20px;
- flex: 0;
- `
- ),
- V(
- 'suffix',
- `
- margin-left: 20px;
- flex: 0;
- `
- ),
- V(
- 'main',
- `
- flex: 1;
- `
- ),
- V(
- 'divider',
- `
- height: 1px;
- position: absolute;
- bottom: 0;
- left: 0;
- right: 0;
- background-color: transparent;
- transition: background-color .3s var(--n-bezier);
- pointer-events: none;
- `
- )
- ]
- )
- ]
- ),
- xl(
- O(
- 'list',
- `
- --n-merged-color-hover: var(--n-color-hover-modal);
- --n-merged-color: var(--n-color-modal);
- --n-merged-border-color: var(--n-border-color-modal);
- `
- )
- ),
- Ps(
- O(
- 'list',
- `
- --n-merged-color-hover: var(--n-color-hover-popover);
- --n-merged-color: var(--n-color-popover);
- --n-merged-border-color: var(--n-border-color-popover);
- `
- )
- )
- ]),
- ZJ = Object.assign(Object.assign({}, Ke.props), {
- size: { type: String, default: 'medium' },
- bordered: Boolean,
- clickable: Boolean,
- hoverable: Boolean,
- showDivider: { type: Boolean, default: !0 }
- }),
- G3 = 'n-list',
- QJ = Re({
- name: 'List',
- props: ZJ,
- setup(e) {
- const {
- mergedClsPrefixRef: t,
- inlineThemeDisabled: n,
- mergedRtlRef: r
- } = yt(e),
- o = dr('List', r, t),
- i = Ke('List', '-list', XJ, MQ, e, t);
- Rt(G3, { showDividerRef: Ee(e, 'showDivider'), mergedClsPrefixRef: t });
- const a = I(() => {
- const {
- common: { cubicBezierEaseInOut: c },
- self: {
- fontSize: d,
- textColor: f,
- color: v,
- colorModal: p,
- colorPopover: m,
- borderColor: g,
- borderColorModal: w,
- borderColorPopover: x,
- borderRadius: y,
- colorHover: C,
- colorHoverModal: R,
- colorHoverPopover: S
- }
- } = i.value;
- return {
- '--n-font-size': d,
- '--n-bezier': c,
- '--n-text-color': f,
- '--n-color': v,
- '--n-border-radius': y,
- '--n-border-color': g,
- '--n-border-color-modal': w,
- '--n-border-color-popover': x,
- '--n-color-modal': p,
- '--n-color-popover': m,
- '--n-color-hover': C,
- '--n-color-hover-modal': R,
- '--n-color-hover-popover': S
- };
- }),
- s = n ? Mt('list', void 0, a, e) : void 0;
- return {
- mergedClsPrefix: t,
- rtlEnabled: o,
- cssVars: n ? void 0 : a,
- themeClass: s == null ? void 0 : s.themeClass,
- onRender: s == null ? void 0 : s.onRender
- };
- },
- render() {
- var e;
- const { $slots: t, mergedClsPrefix: n, onRender: r } = this;
- return (
- r == null || r(),
- h(
- 'ul',
- {
- class: [
- `${n}-list`,
- this.rtlEnabled && `${n}-list--rtl`,
- this.bordered && `${n}-list--bordered`,
- this.showDivider && `${n}-list--show-divider`,
- this.hoverable && `${n}-list--hoverable`,
- this.clickable && `${n}-list--clickable`,
- this.themeClass
- ],
- style: this.cssVars
- },
- t.header
- ? h('div', { class: `${n}-list__header` }, t.header())
- : null,
- (e = t.default) === null || e === void 0 ? void 0 : e.call(t),
- t.footer ? h('div', { class: `${n}-list__footer` }, t.footer()) : null
- )
- );
- }
- }),
- JJ = Re({
- name: 'ListItem',
- setup() {
- const e = Ze(G3, null);
- return (
- e || io('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 h(
- 'li',
- { class: `${t}-list-item` },
- e.prefix
- ? h('div', { class: `${t}-list-item__prefix` }, e.prefix())
- : null,
- e.default ? h('div', { class: `${t}-list-item__main` }, e) : null,
- e.suffix
- ? h('div', { class: `${t}-list-item__suffix` }, e.suffix())
- : null,
- this.showDivider && h('div', { class: `${t}-list-item__divider` })
- );
- }
- }),
- X3 = 'n-loading-bar',
- Z3 = 'n-loading-bar-api',
- eee = O(
- 'loading-bar-container',
- `
- z-index: 5999;
- position: fixed;
- top: 0;
- left: 0;
- right: 0;
- height: 2px;
- `,
- [
- Cs({ enterDuration: '0.3s', leaveDuration: '0.8s' }),
- O(
- 'loading-bar',
- `
- width: 100%;
- transition:
- max-width 4s linear,
- background .2s linear;
- height: var(--n-height);
- `,
- [
- U(
- 'starting',
- `
- background: var(--n-color-loading);
- `
- ),
- U(
- 'finishing',
- `
- background: var(--n-color-loading);
- transition:
- max-width .2s linear,
- background .2s linear;
- `
- ),
- U(
- 'error',
- `
- background: var(--n-color-error);
- transition:
- max-width .2s linear,
- background .2s linear;
- `
- )
- ]
- )
- ]
- );
- var am =
- (globalThis && globalThis.__awaiter) ||
- function (e, t, n, r) {
- function o(i) {
- return i instanceof n
- ? i
- : new n(function (a) {
- a(i);
- });
- }
- return new (n || (n = Promise))(function (i, a) {
- function s(f) {
- try {
- d(r.next(f));
- } catch (v) {
- a(v);
- }
- }
- function c(f) {
- try {
- d(r.throw(f));
- } catch (v) {
- a(v);
- }
- }
- function d(f) {
- f.done ? i(f.value) : o(f.value).then(s, c);
- }
- d((r = r.apply(e, t || [])).next());
- });
- };
- function Sh(e, t) {
- return `${t}-loading-bar ${t}-loading-bar--${e}`;
- }
- const tee = Re({
- name: 'LoadingBar',
- props: { containerStyle: [String, Object] },
- setup() {
- const { inlineThemeDisabled: e } = yt(),
- { props: t, mergedClsPrefixRef: n } = Ze(X3),
- r = Z(null),
- o = Z(!1),
- i = Z(!1),
- a = Z(!1),
- s = Z(!1);
- let c = !1;
- const d = Z(!1),
- f = I(() => {
- const { loadingBarStyle: _ } = t;
- return _ ? _[d.value ? 'error' : 'loading'] : '';
- });
- function v() {
- return am(this, void 0, void 0, function* () {
- (o.value = !1),
- (a.value = !1),
- (c = !1),
- (d.value = !1),
- (s.value = !0),
- yield mn(),
- (s.value = !1);
- });
- }
- function p(_ = 0, P = 80, T = 'starting') {
- return am(this, void 0, void 0, function* () {
- yield v(), (a.value = !0), (i.value = !0), yield mn();
- const A = r.value;
- A &&
- ((A.style.maxWidth = `${_}%`),
- (A.style.transition = 'none'),
- A.offsetWidth,
- (A.className = Sh(T, n.value)),
- (A.style.transition = ''),
- (A.style.maxWidth = `${P}%`));
- });
- }
- function m() {
- if (c || d.value || !a.value) return;
- c = !0;
- const _ = r.value;
- _ &&
- ((_.className = Sh('finishing', n.value)),
- (_.style.maxWidth = '100%'),
- _.offsetWidth,
- (a.value = !1));
- }
- function g() {
- if (!(c || d.value))
- if (!a.value)
- p(100, 100, 'error').then(() => {
- d.value = !0;
- const _ = r.value;
- _ &&
- ((_.className = Sh('error', n.value)),
- _.offsetWidth,
- (a.value = !1));
- });
- else {
- d.value = !0;
- const _ = r.value;
- if (!_) return;
- (_.className = Sh('error', n.value)),
- (_.style.maxWidth = '100%'),
- _.offsetWidth,
- (a.value = !1);
- }
- }
- function w() {
- o.value = !0;
- }
- function x() {
- o.value = !1;
- }
- function y() {
- return am(this, void 0, void 0, function* () {
- yield v();
- });
- }
- const C = Ke('LoadingBar', '-loading-bar', eee, FQ, t, n),
- R = I(() => {
- const {
- self: { height: _, colorError: P, colorLoading: T }
- } = C.value;
- return {
- '--n-height': _,
- '--n-color-loading': T,
- '--n-color-error': P
- };
- }),
- S = e ? Mt('loading-bar', void 0, R, t) : void 0;
- return {
- mergedClsPrefix: n,
- loadingBarRef: r,
- started: i,
- loading: a,
- entering: o,
- transitionDisabled: s,
- start: p,
- error: g,
- finish: m,
- handleEnter: w,
- handleAfterEnter: x,
- handleAfterLeave: y,
- mergedLoadingBarStyle: f,
- cssVars: e ? void 0 : R,
- themeClass: S == null ? void 0 : S.themeClass,
- onRender: S == null ? void 0 : S.onRender
- };
- },
- render() {
- if (!this.started) return null;
- const { mergedClsPrefix: e } = this;
- return h(
- Kn,
- {
- 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),
- Er(
- h(
- 'div',
- {
- class: [`${e}-loading-bar-container`, this.themeClass],
- style: this.containerStyle
- },
- h('div', {
- ref: 'loadingBarRef',
- class: [`${e}-loading-bar`],
- style: [this.cssVars, this.mergedLoadingBarStyle]
- })
- ),
- [[vi, this.loading || (!this.loading && this.entering)]]
- )
- );
- }
- }
- );
- }
- }),
- nee = Object.assign(Object.assign({}, Ke.props), {
- to: { type: [String, Object, Boolean], default: void 0 },
- containerStyle: [String, Object],
- loadingBarStyle: { type: Object }
- }),
- Q3 = Re({
- name: 'LoadingBarProvider',
- props: nee,
- setup(e) {
- const t = yi(),
- n = Z(null),
- r = {
- start() {
- var i;
- t.value
- ? (i = n.value) === null || i === void 0 || i.start()
- : mn(() => {
- var a;
- (a = n.value) === null || a === void 0 || a.start();
- });
- },
- error() {
- var i;
- t.value
- ? (i = n.value) === null || i === void 0 || i.error()
- : mn(() => {
- var a;
- (a = n.value) === null || a === void 0 || a.error();
- });
- },
- finish() {
- var i;
- t.value
- ? (i = n.value) === null || i === void 0 || i.finish()
- : mn(() => {
- var a;
- (a = n.value) === null || a === void 0 || a.finish();
- });
- }
- },
- { mergedClsPrefixRef: o } = yt(e);
- return (
- Rt(Z3, r),
- Rt(X3, { props: e, mergedClsPrefixRef: o }),
- Object.assign(r, { loadingBarRef: n })
- );
- },
- render() {
- var e, t;
- return h(
- on,
- null,
- h(
- Iu,
- { disabled: this.to === !1, to: this.to || 'body' },
- h(tee, { ref: 'loadingBarRef', containerStyle: this.containerStyle })
- ),
- (t = (e = this.$slots).default) === null || t === void 0
- ? void 0
- : t.call(e)
- );
- }
- });
- function ree() {
- const e = Ze(Z3, null);
- return (
- e === null &&
- io('use-loading-bar', 'No outer <n-loading-bar-provider /> founded.'),
- e
- );
- }
- const Gu = 'n-menu',
- Wy = 'n-submenu',
- Vy = 'n-menu-item-group',
- _h = 8;
- function Ky(e) {
- const t = Ze(Gu),
- { props: n, mergedCollapsedRef: r } = t,
- o = Ze(Wy, null),
- i = Ze(Vy, null),
- a = I(() => n.mode === 'horizontal'),
- s = I(() =>
- a.value ? n.dropdownPlacement : 'tmNodes' in e ? 'right-start' : 'right'
- ),
- c = I(() => {
- var p;
- return Math.max(
- (p = n.collapsedIconSize) !== null && p !== void 0 ? p : n.iconSize,
- n.iconSize
- );
- }),
- d = I(() => {
- var p;
- return !a.value &&
- e.root &&
- r.value &&
- (p = n.collapsedIconSize) !== null &&
- p !== void 0
- ? p
- : n.iconSize;
- }),
- f = I(() => {
- if (a.value) return;
- const { collapsedWidth: p, indent: m, rootIndent: g } = n,
- { root: w, isGroup: x } = e,
- y = g === void 0 ? m : g;
- if (w) return r.value ? p / 2 - c.value / 2 : y;
- if (i) return m / 2 + i.paddingLeftRef.value;
- if (o) return (x ? m / 2 : m) + o.paddingLeftRef.value;
- }),
- v = I(() => {
- const { collapsedWidth: p, indent: m, rootIndent: g } = n,
- { value: w } = c,
- { root: x } = e;
- return a.value || !x || !r.value
- ? _h
- : (g === void 0 ? m : g) + w + _h - (p + w) / 2;
- });
- return {
- dropdownPlacement: s,
- activeIconSize: d,
- maxIconSize: c,
- paddingLeft: f,
- iconMarginRight: v,
- NMenu: t,
- NSubmenu: o
- };
- }
- const qy = {
- internalKey: { type: [String, Number], required: !0 },
- root: Boolean,
- isGroup: Boolean,
- level: { type: Number, required: !0 },
- title: [String, Function],
- extra: [String, Function]
- },
- J3 = Object.assign(Object.assign({}, qy), {
- tmNode: { type: Object, required: !0 },
- tmNodes: { type: Array, required: !0 }
- }),
- oee = Re({
- name: 'MenuOptionGroup',
- props: J3,
- setup(e) {
- Rt(Wy, null);
- const t = Ky(e);
- Rt(Vy, { paddingLeftRef: t.paddingLeft });
- const { mergedClsPrefixRef: n, props: r } = Ze(Gu);
- return function () {
- const { value: o } = n,
- i = t.paddingLeft.value,
- { nodeProps: a } = r,
- s = a == null ? void 0 : a(e.tmNode.rawNode);
- return h(
- 'div',
- { class: `${o}-menu-item-group`, role: 'group' },
- h(
- 'div',
- Object.assign({}, s, {
- class: [
- `${o}-menu-item-group-title`,
- s == null ? void 0 : s.class
- ],
- style: [
- (s == null ? void 0 : s.style) || '',
- i !== void 0 ? `padding-left: ${i}px;` : ''
- ]
- }),
- _n(e.title),
- e.extra ? h(on, null, ' ', _n(e.extra)) : null
- ),
- h(
- 'div',
- null,
- e.tmNodes.map(c => Yy(c, r))
- )
- );
- };
- }
- }),
- eT = Re({
- 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 } = Ze(Gu);
- return {
- menuProps: t,
- style: I(() => {
- const { paddingLeft: n } = e;
- return { paddingLeft: n && `${n}px` };
- }),
- iconStyle: I(() => {
- const { maxIconSize: n, activeIconSize: r, iconMarginRight: o } = e;
- return {
- width: `${n}px`,
- height: `${n}px`,
- fontSize: `${r}px`,
- marginRight: `${o}px`
- };
- })
- };
- },
- render() {
- const {
- clsPrefix: e,
- tmNode: t,
- menuProps: {
- renderIcon: n,
- renderLabel: r,
- renderExtra: o,
- expandIcon: i
- }
- } = this,
- a = n ? n(t.rawNode) : _n(this.icon);
- return h(
- 'div',
- {
- onClick: s => {
- var c;
- (c = this.onClick) === null || c === void 0 || c.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
- },
- a &&
- h(
- 'div',
- {
- class: `${e}-menu-item-content__icon`,
- style: this.iconStyle,
- role: 'none'
- },
- [a]
- ),
- h(
- 'div',
- { class: `${e}-menu-item-content-header`, role: 'none' },
- r ? r(t.rawNode) : _n(this.title),
- this.extra || o
- ? h(
- 'span',
- { class: `${e}-menu-item-content-header__extra` },
- ' ',
- o ? o(t.rawNode) : _n(this.extra)
- )
- : null
- ),
- this.showArrow
- ? h(
- Et,
- {
- ariaHidden: !0,
- class: `${e}-menu-item-content__arrow`,
- clsPrefix: e
- },
- { default: () => (i ? i(t.rawNode) : h(WU, null)) }
- )
- : null
- );
- }
- }),
- tT = Object.assign(Object.assign({}, qy), {
- rawNodes: { type: Array, default: () => [] },
- tmNodes: { type: Array, default: () => [] },
- tmNode: { type: Object, required: !0 },
- disabled: { type: Boolean, default: !1 },
- icon: Function,
- onClick: Function
- }),
- iee = Re({
- name: 'Submenu',
- props: tT,
- setup(e) {
- const t = Ky(e),
- { NMenu: n, NSubmenu: r } = t,
- { props: o, mergedCollapsedRef: i, mergedThemeRef: a } = n,
- s = I(() => {
- const { disabled: p } = e;
- return (r != null && r.mergedDisabledRef.value) || o.disabled
- ? !0
- : p;
- }),
- c = Z(!1);
- Rt(Wy, { paddingLeftRef: t.paddingLeft, mergedDisabledRef: s }),
- Rt(Vy, null);
- function d() {
- const { onClick: p } = e;
- p && p();
- }
- function f() {
- s.value || (i.value || n.toggleExpand(e.internalKey), d());
- }
- function v(p) {
- c.value = p;
- }
- return {
- menuProps: o,
- mergedTheme: a,
- doSelect: n.doSelect,
- inverted: n.invertedRef,
- isHorizontal: n.isHorizontalRef,
- mergedClsPrefix: n.mergedClsPrefixRef,
- maxIconSize: t.maxIconSize,
- activeIconSize: t.activeIconSize,
- iconMarginRight: t.iconMarginRight,
- dropdownPlacement: t.dropdownPlacement,
- dropdownShow: c,
- paddingLeft: t.paddingLeft,
- mergedDisabled: s,
- mergedValue: n.mergedValueRef,
- childActive: kt(() => n.activePathRef.value.includes(e.internalKey)),
- collapsed: I(() =>
- o.mode === 'horizontal'
- ? !1
- : i.value
- ? !0
- : !n.mergedExpandedKeysRef.value.includes(e.internalKey)
- ),
- dropdownEnabled: I(
- () => !s.value && (o.mode === 'horizontal' || i.value)
- ),
- handlePopoverShowChange: v,
- handleClick: f
- };
- },
- render() {
- var e;
- const {
- mergedClsPrefix: t,
- menuProps: { renderIcon: n, renderLabel: r }
- } = this,
- o = () => {
- const {
- isHorizontal: a,
- paddingLeft: s,
- collapsed: c,
- mergedDisabled: d,
- maxIconSize: f,
- activeIconSize: v,
- title: p,
- childActive: m,
- icon: g,
- handleClick: w,
- menuProps: { nodeProps: x },
- dropdownShow: y,
- iconMarginRight: C,
- tmNode: R,
- mergedClsPrefix: S
- } = this,
- _ = x == null ? void 0 : x(R.rawNode);
- return h(
- 'div',
- Object.assign({}, _, {
- class: [`${S}-menu-item`, _ == null ? void 0 : _.class],
- role: 'menuitem'
- }),
- h(eT, {
- tmNode: R,
- paddingLeft: s,
- collapsed: c,
- disabled: d,
- iconMarginRight: C,
- maxIconSize: f,
- activeIconSize: v,
- title: p,
- extra: this.extra,
- showArrow: !a,
- childActive: m,
- clsPrefix: S,
- icon: g,
- hover: y,
- onClick: w
- })
- );
- },
- i = () =>
- h(Cl, null, {
- default: () => {
- const { tmNodes: a, collapsed: s } = this;
- return s
- ? null
- : h(
- 'div',
- { class: `${t}-submenu-children`, role: 'menu' },
- a.map(c => Yy(c, this.menuProps))
- );
- }
- });
- return this.root
- ? h(
- Ey,
- 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: n,
- renderLabel: r
- }
- ),
- {
- default: () =>
- h(
- 'div',
- {
- class: `${t}-submenu`,
- role: 'menuitem',
- 'aria-expanded': !this.collapsed
- },
- o(),
- this.isHorizontal ? null : i()
- )
- }
- )
- : h(
- 'div',
- {
- class: `${t}-submenu`,
- role: 'menuitem',
- 'aria-expanded': !this.collapsed
- },
- o(),
- i()
- );
- }
- }),
- nT = Object.assign(Object.assign({}, qy), {
- tmNode: { type: Object, required: !0 },
- disabled: Boolean,
- icon: Function,
- onClick: Function
- }),
- aee = Re({
- name: 'MenuOption',
- props: nT,
- setup(e) {
- const t = Ky(e),
- { NSubmenu: n, NMenu: r } = t,
- { props: o, mergedClsPrefixRef: i, mergedCollapsedRef: a } = r,
- s = n ? n.mergedDisabledRef : { value: !1 },
- c = I(() => s.value || e.disabled);
- function d(v) {
- const { onClick: p } = e;
- p && p(v);
- }
- function f(v) {
- c.value || (r.doSelect(e.internalKey, e.tmNode.rawNode), d(v));
- }
- return {
- mergedClsPrefix: i,
- dropdownPlacement: t.dropdownPlacement,
- paddingLeft: t.paddingLeft,
- iconMarginRight: t.iconMarginRight,
- maxIconSize: t.maxIconSize,
- activeIconSize: t.activeIconSize,
- mergedTheme: r.mergedThemeRef,
- menuProps: o,
- dropdownEnabled: kt(
- () => e.root && a.value && o.mode !== 'horizontal' && !c.value
- ),
- selected: kt(() => r.mergedValueRef.value === e.internalKey),
- mergedDisabled: c,
- handleClick: f
- };
- },
- render() {
- const {
- mergedClsPrefix: e,
- mergedTheme: t,
- tmNode: n,
- menuProps: { renderLabel: r, nodeProps: o }
- } = this,
- i = o == null ? void 0 : o(n.rawNode);
- return h(
- 'div',
- Object.assign({}, i, {
- role: 'menuitem',
- class: [`${e}-menu-item`, i == null ? void 0 : i.class]
- }),
- h(
- qv,
- {
- theme: t.peers.Tooltip,
- themeOverrides: t.peerOverrides.Tooltip,
- trigger: 'hover',
- placement: this.dropdownPlacement,
- disabled: !this.dropdownEnabled || this.title === void 0,
- internalExtraClass: ['menu-tooltip']
- },
- {
- default: () => (r ? r(n.rawNode) : _n(this.title)),
- trigger: () =>
- h(eT, {
- tmNode: n,
- 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
- })
- }
- )
- );
- }
- }),
- lee = Re({
- name: 'MenuDivider',
- setup() {
- const e = Ze(Gu),
- { mergedClsPrefixRef: t, isHorizontalRef: n } = e;
- return () =>
- n.value ? null : h('div', { class: `${t.value}-menu-divider` });
- }
- }),
- see = Vi(J3),
- cee = Vi(nT),
- dee = Vi(tT);
- function rT(e) {
- return e.type === 'divider' || e.type === 'render';
- }
- function uee(e) {
- return e.type === 'divider';
- }
- function Yy(e, t) {
- const { rawNode: n } = e,
- { show: r } = n;
- if (r === !1) return null;
- if (rT(n))
- return uee(n) ? h(lee, Object.assign({ key: e.key }, n.props)) : null;
- const { labelField: o } = t,
- { key: i, level: a, isGroup: s } = e,
- c = Object.assign(Object.assign({}, n), {
- title: n.title || n[o],
- extra: n.titleExtra || n.extra,
- key: i,
- internalKey: i,
- level: a,
- root: a === 0,
- isGroup: s
- });
- return e.children
- ? e.isGroup
- ? h(oee, fi(c, see, { tmNode: e, tmNodes: e.children, key: i }))
- : h(
- iee,
- fi(c, dee, {
- key: i,
- rawNodes: n[t.childrenField],
- tmNodes: e.children,
- tmNode: e
- })
- )
- : h(aee, fi(c, cee, { key: i, tmNode: e }));
- }
- const d2 = [
- F('&::before', 'background-color: var(--n-item-color-hover);'),
- V(
- 'arrow',
- `
- color: var(--n-arrow-color-hover);
- `
- ),
- V(
- 'icon',
- `
- color: var(--n-item-icon-color-hover);
- `
- ),
- O(
- 'menu-item-content-header',
- `
- color: var(--n-item-text-color-hover);
- `,
- [
- F(
- 'a',
- `
- color: var(--n-item-text-color-hover);
- `
- ),
- V(
- 'extra',
- `
- color: var(--n-item-text-color-hover);
- `
- )
- ]
- )
- ],
- u2 = [
- V(
- 'icon',
- `
- color: var(--n-item-icon-color-hover-horizontal);
- `
- ),
- O(
- 'menu-item-content-header',
- `
- color: var(--n-item-text-color-hover-horizontal);
- `,
- [
- F(
- 'a',
- `
- color: var(--n-item-text-color-hover-horizontal);
- `
- ),
- V(
- 'extra',
- `
- color: var(--n-item-text-color-hover-horizontal);
- `
- )
- ]
- )
- ],
- fee = F([
- O(
- 'menu',
- `
- background-color: var(--n-color);
- color: var(--n-item-text-color);
- overflow: hidden;
- transition: background-color .3s var(--n-bezier);
- box-sizing: border-box;
- font-size: var(--n-font-size);
- padding-bottom: 6px;
- `,
- [
- U(
- 'horizontal',
- `
- display: inline-flex;
- padding-bottom: 0;
- `,
- [
- O('submenu', 'margin: 0;'),
- O('menu-item', 'margin: 0;'),
- O(
- 'menu-item-content',
- `
- padding: 0 20px;
- border-bottom: 2px solid #0000;
- `,
- [
- F('&::before', 'display: none;'),
- U(
- 'selected',
- 'border-bottom: 2px solid var(--n-border-color-horizontal)'
- )
- ]
- ),
- O('menu-item-content', [
- U('selected', [
- V('icon', 'color: var(--n-item-icon-color-active-horizontal);'),
- O(
- 'menu-item-content-header',
- `
- color: var(--n-item-text-color-active-horizontal);
- `,
- [
- F(
- 'a',
- 'color: var(--n-item-text-color-active-horizontal);'
- ),
- V(
- 'extra',
- 'color: var(--n-item-text-color-active-horizontal);'
- )
- ]
- )
- ]),
- U(
- 'child-active',
- `
- border-bottom: 2px solid var(--n-border-color-horizontal);
- `,
- [
- O(
- 'menu-item-content-header',
- `
- color: var(--n-item-text-color-child-active-horizontal);
- `,
- [
- F(
- 'a',
- `
- color: var(--n-item-text-color-child-active-horizontal);
- `
- ),
- V(
- 'extra',
- `
- color: var(--n-item-text-color-child-active-horizontal);
- `
- )
- ]
- ),
- V(
- 'icon',
- `
- color: var(--n-item-icon-color-child-active-horizontal);
- `
- )
- ]
- ),
- jt('disabled', [
- jt('selected, child-active', [F('&:focus-within', u2)]),
- U('selected', [
- Jl(null, [
- V(
- 'icon',
- 'color: var(--n-item-icon-color-active-hover-horizontal);'
- ),
- O(
- 'menu-item-content-header',
- `
- color: var(--n-item-text-color-active-hover-horizontal);
- `,
- [
- F(
- 'a',
- 'color: var(--n-item-text-color-active-hover-horizontal);'
- ),
- V(
- 'extra',
- 'color: var(--n-item-text-color-active-hover-horizontal);'
- )
- ]
- )
- ])
- ]),
- U('child-active', [
- Jl(null, [
- V(
- 'icon',
- 'color: var(--n-item-icon-color-child-active-hover-horizontal);'
- ),
- O(
- 'menu-item-content-header',
- `
- color: var(--n-item-text-color-child-active-hover-horizontal);
- `,
- [
- F(
- 'a',
- 'color: var(--n-item-text-color-child-active-hover-horizontal);'
- ),
- V(
- 'extra',
- 'color: var(--n-item-text-color-child-active-hover-horizontal);'
- )
- ]
- )
- ])
- ]),
- Jl(
- 'border-bottom: 2px solid var(--n-border-color-horizontal);',
- u2
- )
- ]),
- O('menu-item-content-header', [
- F('a', 'color: var(--n-item-text-color-horizontal);')
- ])
- ])
- ]
- ),
- U('collapsed', [
- O('menu-item-content', [
- U('selected', [
- F(
- '&::before',
- `
- background-color: var(--n-item-color-active-collapsed) !important;
- `
- )
- ]),
- O('menu-item-content-header', 'opacity: 0;'),
- V('arrow', 'opacity: 0;'),
- V('icon', 'color: var(--n-item-icon-color-collapsed);')
- ])
- ]),
- O(
- 'menu-item',
- `
- height: var(--n-item-height);
- margin-top: 6px;
- position: relative;
- `
- ),
- O(
- 'menu-item-content',
- `
- box-sizing: border-box;
- line-height: 1.75;
- height: 100%;
- display: grid;
- grid-template-areas: "icon content arrow";
- grid-template-columns: auto 1fr auto;
- align-items: center;
- cursor: pointer;
- position: relative;
- padding-right: 18px;
- transition:
- background-color .3s var(--n-bezier),
- padding-left .3s var(--n-bezier),
- border-color .3s var(--n-bezier);
- `,
- [
- F('> *', 'z-index: 1;'),
- F(
- '&::before',
- `
- z-index: auto;
- content: "";
- background-color: #0000;
- position: absolute;
- left: 8px;
- right: 8px;
- top: 0;
- bottom: 0;
- pointer-events: none;
- border-radius: var(--n-border-radius);
- transition: background-color .3s var(--n-bezier);
- `
- ),
- U(
- 'disabled',
- `
- opacity: .45;
- cursor: not-allowed;
- `
- ),
- U('collapsed', [V('arrow', 'transform: rotate(0);')]),
- U('selected', [
- F('&::before', 'background-color: var(--n-item-color-active);'),
- V('arrow', 'color: var(--n-arrow-color-active);'),
- V('icon', 'color: var(--n-item-icon-color-active);'),
- O(
- 'menu-item-content-header',
- `
- color: var(--n-item-text-color-active);
- `,
- [
- F('a', 'color: var(--n-item-text-color-active);'),
- V('extra', 'color: var(--n-item-text-color-active);')
- ]
- )
- ]),
- U('child-active', [
- O(
- 'menu-item-content-header',
- `
- color: var(--n-item-text-color-child-active);
- `,
- [
- F(
- 'a',
- `
- color: var(--n-item-text-color-child-active);
- `
- ),
- V(
- 'extra',
- `
- color: var(--n-item-text-color-child-active);
- `
- )
- ]
- ),
- V(
- 'arrow',
- `
- color: var(--n-arrow-color-child-active);
- `
- ),
- V(
- 'icon',
- `
- color: var(--n-item-icon-color-child-active);
- `
- )
- ]),
- jt('disabled', [
- jt('selected, child-active', [F('&:focus-within', d2)]),
- U('selected', [
- Jl(null, [
- V('arrow', 'color: var(--n-arrow-color-active-hover);'),
- V('icon', 'color: var(--n-item-icon-color-active-hover);'),
- O(
- 'menu-item-content-header',
- `
- color: var(--n-item-text-color-active-hover);
- `,
- [
- F('a', 'color: var(--n-item-text-color-active-hover);'),
- V(
- 'extra',
- 'color: var(--n-item-text-color-active-hover);'
- )
- ]
- )
- ])
- ]),
- U('child-active', [
- Jl(null, [
- V('arrow', 'color: var(--n-arrow-color-child-active-hover);'),
- V(
- 'icon',
- 'color: var(--n-item-icon-color-child-active-hover);'
- ),
- O(
- 'menu-item-content-header',
- `
- color: var(--n-item-text-color-child-active-hover);
- `,
- [
- F(
- 'a',
- 'color: var(--n-item-text-color-child-active-hover);'
- ),
- V(
- 'extra',
- 'color: var(--n-item-text-color-child-active-hover);'
- )
- ]
- )
- ])
- ]),
- U('selected', [
- Jl(null, [
- F(
- '&::before',
- 'background-color: var(--n-item-color-active-hover);'
- )
- ])
- ]),
- Jl(null, d2)
- ]),
- V(
- 'icon',
- `
- grid-area: icon;
- color: var(--n-item-icon-color);
- transition:
- color .3s var(--n-bezier),
- font-size .3s var(--n-bezier),
- margin-right .3s var(--n-bezier);
- box-sizing: content-box;
- display: inline-flex;
- align-items: center;
- justify-content: center;
- `
- ),
- V(
- 'arrow',
- `
- grid-area: arrow;
- font-size: 16px;
- color: var(--n-arrow-color);
- transform: rotate(180deg);
- opacity: 1;
- transition:
- color .3s var(--n-bezier),
- transform 0.2s var(--n-bezier),
- opacity 0.2s var(--n-bezier);
- `
- ),
- O(
- 'menu-item-content-header',
- `
- grid-area: content;
- transition:
- color .3s var(--n-bezier),
- opacity .3s var(--n-bezier);
- opacity: 1;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- color: var(--n-item-text-color);
- `,
- [
- F(
- 'a',
- `
- outline: none;
- text-decoration: none;
- transition: color .3s var(--n-bezier);
- color: var(--n-item-text-color);
- `,
- [
- F(
- '&::before',
- `
- content: "";
- position: absolute;
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- `
- )
- ]
- ),
- V(
- 'extra',
- `
- font-size: .93em;
- color: var(--n-group-text-color);
- transition: color .3s var(--n-bezier);
- `
- )
- ]
- )
- ]
- ),
- O(
- 'submenu',
- `
- cursor: pointer;
- position: relative;
- margin-top: 6px;
- `,
- [
- O(
- 'menu-item-content',
- `
- height: var(--n-item-height);
- `
- ),
- O(
- 'submenu-children',
- `
- overflow: hidden;
- padding: 0;
- `,
- [Ss({ duration: '.2s' })]
- )
- ]
- ),
- O('menu-item-group', [
- O(
- 'menu-item-group-title',
- `
- margin-top: 6px;
- color: var(--n-group-text-color);
- cursor: default;
- font-size: .93em;
- height: 36px;
- display: flex;
- align-items: center;
- transition:
- padding-left .3s var(--n-bezier),
- color .3s var(--n-bezier);
- `
- )
- ])
- ]
- ),
- O('menu-tooltip', [
- F(
- 'a',
- `
- color: inherit;
- text-decoration: none;
- `
- )
- ]),
- O(
- 'menu-divider',
- `
- transition: background-color .3s var(--n-bezier);
- background-color: var(--n-divider-color);
- height: 1px;
- margin: 6px 18px;
- `
- )
- ]);
- function Jl(e, t) {
- return [U('hover', e, t), F('&:hover', e, t)];
- }
- const hee = Object.assign(Object.assign({}, Ke.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, default: !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' }
- }),
- vee = Re({
- name: 'Menu',
- props: hee,
- setup(e) {
- const { mergedClsPrefixRef: t, inlineThemeDisabled: n } = yt(e),
- r = Ke('Menu', '-menu', fee, HQ, e, t),
- o = Ze(K3, null),
- i = I(() => {
- var A;
- const { collapsed: z } = e;
- if (z !== void 0) return z;
- if (o) {
- const { collapseModeRef: k, collapsedRef: M } = o;
- if (k.value === 'width')
- return (A = M.value) !== null && A !== void 0 ? A : !1;
- }
- return !1;
- }),
- a = I(() => {
- const { keyField: A, childrenField: z, disabledField: k } = e;
- return td(e.items || e.options, {
- getIgnored(M) {
- return rT(M);
- },
- getChildren(M) {
- return M[z];
- },
- getDisabled(M) {
- return M[k];
- },
- getKey(M) {
- var E;
- return (E = M[A]) !== null && E !== void 0 ? E : M.name;
- }
- });
- }),
- s = I(() => new Set(a.value.treeNodes.map(A => A.key))),
- { watchProps: c } = e,
- d = Z(null);
- c != null && c.includes('defaultValue')
- ? Bn(() => {
- d.value = e.defaultValue;
- })
- : (d.value = e.defaultValue);
- const f = Ee(e, 'value'),
- v = An(f, d),
- p = Z([]),
- m = () => {
- p.value = e.defaultExpandAll
- ? a.value.getNonLeafKeys()
- : e.defaultExpandedNames ||
- e.defaultExpandedKeys ||
- a.value.getPath(v.value, { includeSelf: !1 }).keyPath;
- };
- c != null && c.includes('defaultExpandedKeys') ? Bn(m) : m();
- const g = xs(e, ['expandedNames', 'expandedKeys']),
- w = An(g, p),
- x = I(() => a.value.treeNodes),
- y = I(() => a.value.getPath(v.value).keyPath);
- Rt(Gu, {
- props: e,
- mergedCollapsedRef: i,
- mergedThemeRef: r,
- mergedValueRef: v,
- mergedExpandedKeysRef: w,
- activePathRef: y,
- mergedClsPrefixRef: t,
- isHorizontalRef: I(() => e.mode === 'horizontal'),
- invertedRef: Ee(e, 'inverted'),
- doSelect: C,
- toggleExpand: S
- });
- function C(A, z) {
- const { 'onUpdate:value': k, onUpdateValue: M, onSelect: E } = e;
- M && ze(M, A, z), k && ze(k, A, z), E && ze(E, A, z), (d.value = A);
- }
- function R(A) {
- const {
- 'onUpdate:expandedKeys': z,
- onUpdateExpandedKeys: k,
- onExpandedNamesChange: M,
- onOpenNamesChange: E
- } = e;
- z && ze(z, A),
- k && ze(k, A),
- M && ze(M, A),
- E && ze(E, A),
- (p.value = A);
- }
- function S(A) {
- const z = Array.from(w.value),
- k = z.findIndex(M => M === A);
- if (~k) z.splice(k, 1);
- else {
- if (e.accordion && s.value.has(A)) {
- const M = z.findIndex(E => s.value.has(E));
- M > -1 && z.splice(M, 1);
- }
- z.push(A);
- }
- R(z);
- }
- const _ = A => {
- const z = a.value.getPath(A != null ? A : v.value, {
- includeSelf: !1
- }).keyPath;
- if (!z.length) return;
- const k = Array.from(w.value),
- M = new Set([...k, ...z]);
- e.accordion &&
- s.value.forEach(E => {
- M.has(E) && !z.includes(E) && M.delete(E);
- }),
- R(Array.from(M));
- },
- P = I(() => {
- const { inverted: A } = e,
- {
- common: { cubicBezierEaseInOut: z },
- self: k
- } = r.value,
- {
- borderRadius: M,
- borderColorHorizontal: E,
- fontSize: D,
- itemHeight: L,
- dividerColor: j
- } = k,
- B = {
- '--n-divider-color': j,
- '--n-bezier': z,
- '--n-font-size': D,
- '--n-border-color-horizontal': E,
- '--n-border-radius': M,
- '--n-item-height': L
- };
- return (
- A
- ? ((B['--n-group-text-color'] = k.groupTextColorInverted),
- (B['--n-color'] = k.colorInverted),
- (B['--n-item-text-color'] = k.itemTextColorInverted),
- (B['--n-item-text-color-hover'] = k.itemTextColorHoverInverted),
- (B['--n-item-text-color-active'] =
- k.itemTextColorActiveInverted),
- (B['--n-item-text-color-child-active'] =
- k.itemTextColorChildActiveInverted),
- (B['--n-item-text-color-child-active-hover'] =
- k.itemTextColorChildActiveInverted),
- (B['--n-item-text-color-active-hover'] =
- k.itemTextColorActiveHoverInverted),
- (B['--n-item-icon-color'] = k.itemIconColorInverted),
- (B['--n-item-icon-color-hover'] = k.itemIconColorHoverInverted),
- (B['--n-item-icon-color-active'] =
- k.itemIconColorActiveInverted),
- (B['--n-item-icon-color-active-hover'] =
- k.itemIconColorActiveHoverInverted),
- (B['--n-item-icon-color-child-active'] =
- k.itemIconColorChildActiveInverted),
- (B['--n-item-icon-color-child-active-hover'] =
- k.itemIconColorChildActiveHoverInverted),
- (B['--n-item-icon-color-collapsed'] =
- k.itemIconColorCollapsedInverted),
- (B['--n-item-text-color-horizontal'] =
- k.itemTextColorHorizontalInverted),
- (B['--n-item-text-color-hover-horizontal'] =
- k.itemTextColorHoverHorizontalInverted),
- (B['--n-item-text-color-active-horizontal'] =
- k.itemTextColorActiveHorizontalInverted),
- (B['--n-item-text-color-child-active-horizontal'] =
- k.itemTextColorChildActiveHorizontalInverted),
- (B['--n-item-text-color-child-active-hover-horizontal'] =
- k.itemTextColorChildActiveHoverHorizontalInverted),
- (B['--n-item-text-color-active-hover-horizontal'] =
- k.itemTextColorActiveHoverHorizontalInverted),
- (B['--n-item-icon-color-horizontal'] =
- k.itemIconColorHorizontalInverted),
- (B['--n-item-icon-color-hover-horizontal'] =
- k.itemIconColorHoverHorizontalInverted),
- (B['--n-item-icon-color-active-horizontal'] =
- k.itemIconColorActiveHorizontalInverted),
- (B['--n-item-icon-color-active-hover-horizontal'] =
- k.itemIconColorActiveHoverHorizontalInverted),
- (B['--n-item-icon-color-child-active-horizontal'] =
- k.itemIconColorChildActiveHorizontalInverted),
- (B['--n-item-icon-color-child-active-hover-horizontal'] =
- k.itemIconColorChildActiveHoverHorizontalInverted),
- (B['--n-arrow-color'] = k.arrowColorInverted),
- (B['--n-arrow-color-hover'] = k.arrowColorHoverInverted),
- (B['--n-arrow-color-active'] = k.arrowColorActiveInverted),
- (B['--n-arrow-color-active-hover'] =
- k.arrowColorActiveHoverInverted),
- (B['--n-arrow-color-child-active'] =
- k.arrowColorChildActiveInverted),
- (B['--n-arrow-color-child-active-hover'] =
- k.arrowColorChildActiveHoverInverted),
- (B['--n-item-color-hover'] = k.itemColorHoverInverted),
- (B['--n-item-color-active'] = k.itemColorActiveInverted),
- (B['--n-item-color-active-hover'] =
- k.itemColorActiveHoverInverted),
- (B['--n-item-color-active-collapsed'] =
- k.itemColorActiveCollapsedInverted))
- : ((B['--n-group-text-color'] = k.groupTextColor),
- (B['--n-color'] = k.color),
- (B['--n-item-text-color'] = k.itemTextColor),
- (B['--n-item-text-color-hover'] = k.itemTextColorHover),
- (B['--n-item-text-color-active'] = k.itemTextColorActive),
- (B['--n-item-text-color-child-active'] =
- k.itemTextColorChildActive),
- (B['--n-item-text-color-child-active-hover'] =
- k.itemTextColorChildActiveHover),
- (B['--n-item-text-color-active-hover'] =
- k.itemTextColorActiveHover),
- (B['--n-item-icon-color'] = k.itemIconColor),
- (B['--n-item-icon-color-hover'] = k.itemIconColorHover),
- (B['--n-item-icon-color-active'] = k.itemIconColorActive),
- (B['--n-item-icon-color-active-hover'] =
- k.itemIconColorActiveHover),
- (B['--n-item-icon-color-child-active'] =
- k.itemIconColorChildActive),
- (B['--n-item-icon-color-child-active-hover'] =
- k.itemIconColorChildActiveHover),
- (B['--n-item-icon-color-collapsed'] = k.itemIconColorCollapsed),
- (B['--n-item-text-color-horizontal'] =
- k.itemTextColorHorizontal),
- (B['--n-item-text-color-hover-horizontal'] =
- k.itemTextColorHoverHorizontal),
- (B['--n-item-text-color-active-horizontal'] =
- k.itemTextColorActiveHorizontal),
- (B['--n-item-text-color-child-active-horizontal'] =
- k.itemTextColorChildActiveHorizontal),
- (B['--n-item-text-color-child-active-hover-horizontal'] =
- k.itemTextColorChildActiveHoverHorizontal),
- (B['--n-item-text-color-active-hover-horizontal'] =
- k.itemTextColorActiveHoverHorizontal),
- (B['--n-item-icon-color-horizontal'] =
- k.itemIconColorHorizontal),
- (B['--n-item-icon-color-hover-horizontal'] =
- k.itemIconColorHoverHorizontal),
- (B['--n-item-icon-color-active-horizontal'] =
- k.itemIconColorActiveHorizontal),
- (B['--n-item-icon-color-active-hover-horizontal'] =
- k.itemIconColorActiveHoverHorizontal),
- (B['--n-item-icon-color-child-active-horizontal'] =
- k.itemIconColorChildActiveHorizontal),
- (B['--n-item-icon-color-child-active-hover-horizontal'] =
- k.itemIconColorChildActiveHoverHorizontal),
- (B['--n-arrow-color'] = k.arrowColor),
- (B['--n-arrow-color-hover'] = k.arrowColorHover),
- (B['--n-arrow-color-active'] = k.arrowColorActive),
- (B['--n-arrow-color-active-hover'] = k.arrowColorActiveHover),
- (B['--n-arrow-color-child-active'] = k.arrowColorChildActive),
- (B['--n-arrow-color-child-active-hover'] =
- k.arrowColorChildActiveHover),
- (B['--n-item-color-hover'] = k.itemColorHover),
- (B['--n-item-color-active'] = k.itemColorActive),
- (B['--n-item-color-active-hover'] = k.itemColorActiveHover),
- (B['--n-item-color-active-collapsed'] =
- k.itemColorActiveCollapsed)),
- B
- );
- }),
- T = n
- ? Mt(
- 'menu',
- I(() => (e.inverted ? 'a' : 'b')),
- P,
- e
- )
- : void 0;
- return {
- mergedClsPrefix: t,
- controlledExpandedKeys: g,
- uncontrolledExpanededKeys: p,
- mergedExpandedKeys: w,
- uncontrolledValue: d,
- mergedValue: v,
- activePath: y,
- tmNodes: x,
- mergedTheme: r,
- mergedCollapsed: i,
- cssVars: n ? void 0 : P,
- themeClass: T == null ? void 0 : T.themeClass,
- onRender: T == null ? void 0 : T.onRender,
- showOption: _
- };
- },
- render() {
- const { mergedClsPrefix: e, mode: t, themeClass: n, onRender: r } = this;
- return (
- r == null || r(),
- h(
- 'div',
- {
- role: t === 'horizontal' ? 'menubar' : 'menu',
- class: [
- `${e}-menu`,
- n,
- `${e}-menu--${t}`,
- this.mergedCollapsed && `${e}-menu--collapsed`
- ],
- style: this.cssVars
- },
- this.tmNodes.map(o => Yy(o, this.$props))
- )
- );
- }
- }),
- oT = {
- 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
- },
- iT = 'n-message-api',
- aT = 'n-message-provider',
- pee = F([
- O(
- 'message-wrapper',
- `
- margin: var(--n-margin);
- z-index: 0;
- transform-origin: top center;
- display: flex;
- `,
- [
- Ss({
- overflow: 'visible',
- originalTransition: 'transform .3s var(--n-bezier)',
- enterToProps: { transform: 'scale(1)' },
- leaveToProps: { transform: 'scale(0.85)' }
- })
- ]
- ),
- O(
- 'message',
- `
- box-sizing: border-box;
- display: flex;
- align-items: center;
- transition:
- color .3s var(--n-bezier),
- box-shadow .3s var(--n-bezier),
- background-color .3s var(--n-bezier),
- opacity .3s var(--n-bezier),
- transform .3s var(--n-bezier),
- margin-bottom .3s var(--n-bezier);
- padding: var(--n-padding);
- border-radius: var(--n-border-radius);
- flex-wrap: nowrap;
- overflow: hidden;
- max-width: var(--n-max-width);
- color: var(--n-text-color);
- background-color: var(--n-color);
- box-shadow: var(--n-box-shadow);
- `,
- [
- V(
- 'content',
- `
- display: inline-block;
- line-height: var(--n-line-height);
- font-size: var(--n-font-size);
- `
- ),
- V(
- 'icon',
- `
- position: relative;
- margin: var(--n-icon-margin);
- height: var(--n-icon-size);
- width: var(--n-icon-size);
- font-size: var(--n-icon-size);
- flex-shrink: 0;
- `,
- [
- ['default', 'info', 'success', 'warning', 'error', 'loading'].map(
- e =>
- U(`${e}-type`, [
- F(
- '> *',
- `
- color: var(--n-icon-color-${e});
- transition: color .3s var(--n-bezier);
- `
- )
- ])
- ),
- F(
- '> *',
- `
- position: absolute;
- left: 0;
- top: 0;
- right: 0;
- bottom: 0;
- `,
- [br()]
- )
- ]
- ),
- V(
- 'close',
- `
- margin: var(--n-close-margin);
- transition:
- background-color .3s var(--n-bezier),
- color .3s var(--n-bezier);
- flex-shrink: 0;
- `,
- [
- F(
- '&:hover',
- `
- color: var(--n-close-icon-color-hover);
- `
- ),
- F(
- '&:active',
- `
- color: var(--n-close-icon-color-pressed);
- `
- )
- ]
- )
- ]
- ),
- O(
- 'message-container',
- `
- z-index: 6000;
- position: fixed;
- height: 0;
- overflow: visible;
- display: flex;
- flex-direction: column;
- align-items: center;
- `,
- [
- U(
- 'top',
- `
- top: 12px;
- left: 0;
- right: 0;
- `
- ),
- U(
- 'top-left',
- `
- top: 12px;
- left: 12px;
- right: 0;
- align-items: flex-start;
- `
- ),
- U(
- 'top-right',
- `
- top: 12px;
- left: 0;
- right: 12px;
- align-items: flex-end;
- `
- ),
- U(
- 'bottom',
- `
- bottom: 4px;
- left: 0;
- right: 0;
- justify-content: flex-end;
- `
- ),
- U(
- 'bottom-left',
- `
- bottom: 4px;
- left: 12px;
- right: 0;
- justify-content: flex-end;
- align-items: flex-start;
- `
- ),
- U(
- 'bottom-right',
- `
- bottom: 4px;
- left: 0;
- right: 12px;
- justify-content: flex-end;
- align-items: flex-end;
- `
- )
- ]
- )
- ]),
- gee = {
- info: () => h(bl, null),
- success: () => h(zs, null),
- warning: () => h(As, null),
- error: () => h(Os, null),
- default: () => null
- },
- mee = Re({
- name: 'Message',
- props: Object.assign(Object.assign({}, oT), { render: Function }),
- setup(e) {
- const { inlineThemeDisabled: t, mergedRtlRef: n } = yt(e),
- { props: r, mergedClsPrefixRef: o } = Ze(aT),
- i = dr('Message', n, o),
- a = Ke('Message', '-message', pee, PQ, r, o),
- s = I(() => {
- const { type: d } = e,
- {
- common: { cubicBezierEaseInOut: f },
- self: {
- padding: v,
- margin: p,
- maxWidth: m,
- iconMargin: g,
- closeMargin: w,
- closeSize: x,
- iconSize: y,
- fontSize: C,
- lineHeight: R,
- borderRadius: S,
- iconColorInfo: _,
- iconColorSuccess: P,
- iconColorWarning: T,
- iconColorError: A,
- iconColorLoading: z,
- closeIconSize: k,
- closeBorderRadius: M,
- [Oe('textColor', d)]: E,
- [Oe('boxShadow', d)]: D,
- [Oe('color', d)]: L,
- [Oe('closeColorHover', d)]: j,
- [Oe('closeColorPressed', d)]: B,
- [Oe('closeIconColor', d)]: q,
- [Oe('closeIconColorPressed', d)]: G,
- [Oe('closeIconColorHover', d)]: ne
- }
- } = a.value;
- return {
- '--n-bezier': f,
- '--n-margin': p,
- '--n-padding': v,
- '--n-max-width': m,
- '--n-font-size': C,
- '--n-icon-margin': g,
- '--n-icon-size': y,
- '--n-close-icon-size': k,
- '--n-close-border-radius': M,
- '--n-close-size': x,
- '--n-close-margin': w,
- '--n-text-color': E,
- '--n-color': L,
- '--n-box-shadow': D,
- '--n-icon-color-info': _,
- '--n-icon-color-success': P,
- '--n-icon-color-warning': T,
- '--n-icon-color-error': A,
- '--n-icon-color-loading': z,
- '--n-close-color-hover': j,
- '--n-close-color-pressed': B,
- '--n-close-icon-color': q,
- '--n-close-icon-color-pressed': G,
- '--n-close-icon-color-hover': ne,
- '--n-line-height': R,
- '--n-border-radius': S
- };
- }),
- c = t
- ? Mt(
- 'message',
- I(() => e.type[0]),
- s,
- {}
- )
- : void 0;
- return {
- mergedClsPrefix: o,
- rtlEnabled: i,
- messageProviderProps: r,
- handleClose() {
- var d;
- (d = e.onClose) === null || d === void 0 || d.call(e);
- },
- cssVars: t ? void 0 : s,
- themeClass: c == null ? void 0 : c.themeClass,
- onRender: c == null ? void 0 : c.onRender,
- placement: r.placement
- };
- },
- render() {
- const {
- render: e,
- type: t,
- closable: n,
- content: r,
- mergedClsPrefix: o,
- cssVars: i,
- themeClass: a,
- onRender: s,
- icon: c,
- handleClose: d,
- showIcon: f
- } = this;
- s == null || s();
- let v;
- return h(
- 'div',
- {
- class: [`${o}-message-wrapper`, a],
- onMouseenter: this.onMouseenter,
- onMouseleave: this.onMouseleave,
- style: [
- {
- alignItems: this.placement.startsWith('top')
- ? 'flex-start'
- : 'flex-end'
- },
- i
- ]
- },
- e
- ? e(this.$props)
- : h(
- 'div',
- {
- class: [
- `${o}-message ${o}-message--${t}-type`,
- this.rtlEnabled && `${o}-message--rtl`
- ]
- },
- (v = bee(c, t, o)) && f
- ? h(
- 'div',
- {
- class: `${o}-message__icon ${o}-message__icon--${t}-type`
- },
- h(Zi, null, { default: () => v })
- )
- : null,
- h('div', { class: `${o}-message__content` }, _n(r)),
- n
- ? h(Sl, {
- clsPrefix: o,
- class: `${o}-message__close`,
- onClick: d,
- absolute: !0
- })
- : null
- )
- );
- }
- });
- function bee(e, t, n) {
- if (typeof e == 'function') return e();
- {
- const r =
- t === 'loading'
- ? h($a, { clsPrefix: n, strokeWidth: 24, scale: 0.85 })
- : gee[t]();
- return r ? h(Et, { clsPrefix: n, key: t }, { default: () => r }) : null;
- }
- }
- const yee = Re({
- name: 'MessageEnvironment',
- props: Object.assign(Object.assign({}, oT), {
- 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 n = Z(!0);
- Hn(() => {
- r();
- });
- function r() {
- const { duration: f } = e;
- f && (t = window.setTimeout(a, f));
- }
- function o(f) {
- f.currentTarget === f.target &&
- t !== null &&
- (window.clearTimeout(t), (t = null));
- }
- function i(f) {
- f.currentTarget === f.target && r();
- }
- function a() {
- const { onHide: f } = e;
- (n.value = !1), t && (window.clearTimeout(t), (t = null)), f && f();
- }
- function s() {
- const { onClose: f } = e;
- f && f(), a();
- }
- function c() {
- const {
- onAfterLeave: f,
- onInternalAfterLeave: v,
- onAfterHide: p,
- internalKey: m
- } = e;
- f && f(), v && v(m), p && p();
- }
- function d() {
- a();
- }
- return {
- show: n,
- hide: a,
- handleClose: s,
- handleAfterLeave: c,
- handleMouseleave: i,
- handleMouseenter: o,
- deactivate: d
- };
- },
- render() {
- return h(
- Cl,
- {
- appear: !0,
- onAfterLeave: this.handleAfterLeave,
- onLeave: this.onLeave
- },
- {
- default: () => [
- this.show
- ? h(mee, {
- 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
- ]
- }
- );
- }
- }),
- xee = Object.assign(Object.assign({}, Ke.props), {
- to: [String, Object],
- duration: { type: Number, default: 3e3 },
- keepAliveOnHover: Boolean,
- max: Number,
- placement: { type: String, default: 'top' },
- closable: Boolean,
- containerStyle: [String, Object]
- }),
- Gy = Re({
- name: 'MessageProvider',
- props: xee,
- setup(e) {
- const { mergedClsPrefixRef: t } = yt(e),
- n = Z([]),
- r = Z({}),
- o = {
- create(c, d) {
- return i(c, Object.assign({ type: 'default' }, d));
- },
- info(c, d) {
- return i(c, Object.assign(Object.assign({}, d), { type: 'info' }));
- },
- success(c, d) {
- return i(
- c,
- Object.assign(Object.assign({}, d), { type: 'success' })
- );
- },
- warning(c, d) {
- return i(
- c,
- Object.assign(Object.assign({}, d), { type: 'warning' })
- );
- },
- error(c, d) {
- return i(c, Object.assign(Object.assign({}, d), { type: 'error' }));
- },
- loading(c, d) {
- return i(
- c,
- Object.assign(Object.assign({}, d), { type: 'loading' })
- );
- },
- destroyAll: s
- };
- Rt(aT, { props: e, mergedClsPrefixRef: t }), Rt(iT, o);
- function i(c, d) {
- const f = pi(),
- v = Xi(
- Object.assign(Object.assign({}, d), {
- content: c,
- key: f,
- destroy: () => {
- var m;
- (m = r.value[f]) === null || m === void 0 || m.hide();
- }
- })
- ),
- { max: p } = e;
- return p && n.value.length >= p && n.value.shift(), n.value.push(v), v;
- }
- function a(c) {
- n.value.splice(
- n.value.findIndex(d => d.key === c),
- 1
- ),
- delete r.value[c];
- }
- function s() {
- Object.values(r.value).forEach(c => {
- c.hide();
- });
- }
- return Object.assign(
- {
- mergedClsPrefix: t,
- messageRefs: r,
- messageList: n,
- handleAfterLeave: a
- },
- o
- );
- },
- render() {
- var e, t, n;
- return h(
- on,
- null,
- (t = (e = this.$slots).default) === null || t === void 0
- ? void 0
- : t.call(e),
- this.messageList.length
- ? h(
- Iu,
- { to: (n = this.to) !== null && n !== void 0 ? n : 'body' },
- h(
- 'div',
- {
- class: [
- `${this.mergedClsPrefix}-message-container`,
- `${this.mergedClsPrefix}-message-container--${this.placement}`
- ],
- key: 'message-container',
- style: this.containerStyle
- },
- this.messageList.map(r =>
- h(
- yee,
- Object.assign(
- {
- ref: o => {
- o && (this.messageRefs[r.key] = o);
- },
- internalKey: r.key,
- onInternalAfterLeave: this.handleAfterLeave
- },
- Yc(r, ['destroy'], void 0),
- {
- duration:
- r.duration === void 0 ? this.duration : r.duration,
- keepAliveOnHover:
- r.keepAliveOnHover === void 0
- ? this.keepAliveOnHover
- : r.keepAliveOnHover,
- closable:
- r.closable === void 0 ? this.closable : r.closable
- }
- )
- )
- )
- )
- )
- : null
- );
- }
- });
- function wee() {
- const e = Ze(iT, null);
- return (
- e === null &&
- io(
- '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 Jv = 'n-notification-provider',
- Cee = Re({
- name: 'NotificationContainer',
- props: {
- scrollable: { type: Boolean, required: !0 },
- placement: { type: String, required: !0 }
- },
- setup() {
- const {
- mergedThemeRef: e,
- mergedClsPrefixRef: t,
- wipTransitionCountRef: n
- } = Ze(Jv),
- r = Z(null);
- return (
- Bn(() => {
- var o, i;
- n.value > 0
- ? (o = r == null ? void 0 : r.value) === null ||
- o === void 0 ||
- o.classList.add('transitioning')
- : (i = r == null ? void 0 : r.value) === null ||
- i === void 0 ||
- i.classList.remove('transitioning');
- }),
- { selfRef: r, mergedTheme: e, mergedClsPrefix: t, transitioning: n }
- );
- },
- render() {
- const {
- $slots: e,
- scrollable: t,
- mergedClsPrefix: n,
- mergedTheme: r,
- placement: o
- } = this;
- return h(
- 'div',
- {
- ref: 'selfRef',
- class: [
- `${n}-notification-container`,
- t && `${n}-notification-container--scrollable`,
- `${n}-notification-container--${o}`
- ]
- },
- t
- ? h(
- yr,
- {
- theme: r.peers.Scrollbar,
- themeOverrides: r.peerOverrides.Scrollbar,
- contentStyle: { overflow: 'hidden' }
- },
- e
- )
- : e
- );
- }
- }),
- See = {
- info: () => h(bl, null),
- success: () => h(zs, null),
- warning: () => h(As, null),
- error: () => h(Os, null),
- default: () => null
- },
- Xy = {
- 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
- },
- _ee = Vi(Xy),
- Ree = Re({
- name: 'Notification',
- props: Xy,
- setup(e) {
- const { mergedClsPrefixRef: t, mergedThemeRef: n, props: r } = Ze(Jv),
- { inlineThemeDisabled: o, mergedRtlRef: i } = yt(),
- a = dr('Notification', i, t),
- s = I(() => {
- const { type: d } = e,
- {
- self: {
- color: f,
- textColor: v,
- closeIconColor: p,
- closeIconColorHover: m,
- closeIconColorPressed: g,
- headerTextColor: w,
- descriptionTextColor: x,
- actionTextColor: y,
- borderRadius: C,
- headerFontWeight: R,
- boxShadow: S,
- lineHeight: _,
- fontSize: P,
- closeMargin: T,
- closeSize: A,
- width: z,
- padding: k,
- closeIconSize: M,
- closeBorderRadius: E,
- closeColorHover: D,
- closeColorPressed: L,
- titleFontSize: j,
- metaFontSize: B,
- descriptionFontSize: q,
- [Oe('iconColor', d)]: G
- },
- common: {
- cubicBezierEaseOut: ne,
- cubicBezierEaseIn: X,
- cubicBezierEaseInOut: J
- }
- } = n.value,
- { left: re, right: ce, top: pe, bottom: Fe } = Go(k);
- return {
- '--n-color': f,
- '--n-font-size': P,
- '--n-text-color': v,
- '--n-description-text-color': x,
- '--n-action-text-color': y,
- '--n-title-text-color': w,
- '--n-title-font-weight': R,
- '--n-bezier': J,
- '--n-bezier-ease-out': ne,
- '--n-bezier-ease-in': X,
- '--n-border-radius': C,
- '--n-box-shadow': S,
- '--n-close-border-radius': E,
- '--n-close-color-hover': D,
- '--n-close-color-pressed': L,
- '--n-close-icon-color': p,
- '--n-close-icon-color-hover': m,
- '--n-close-icon-color-pressed': g,
- '--n-line-height': _,
- '--n-icon-color': G,
- '--n-close-margin': T,
- '--n-close-size': A,
- '--n-close-icon-size': M,
- '--n-width': z,
- '--n-padding-left': re,
- '--n-padding-right': ce,
- '--n-padding-top': pe,
- '--n-padding-bottom': Fe,
- '--n-title-font-size': j,
- '--n-meta-font-size': B,
- '--n-description-font-size': q
- };
- }),
- c = o
- ? Mt(
- 'notification',
- I(() => e.type[0]),
- s,
- r
- )
- : void 0;
- return {
- mergedClsPrefix: t,
- showAvatar: I(() => e.avatar || e.type !== 'default'),
- handleCloseClick() {
- e.onClose();
- },
- rtlEnabled: a,
- cssVars: o ? void 0 : s,
- themeClass: c == null ? void 0 : c.themeClass,
- onRender: c == null ? void 0 : c.onRender
- };
- },
- render() {
- var e;
- const { mergedClsPrefix: t } = this;
- return (
- (e = this.onRender) === null || e === void 0 || e.call(this),
- h(
- 'div',
- {
- class: [`${t}-notification-wrapper`, this.themeClass],
- onMouseenter: this.onMouseenter,
- onMouseleave: this.onMouseleave,
- style: this.cssVars
- },
- h(
- '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
- ? h(
- 'div',
- { class: `${t}-notification__avatar` },
- this.avatar
- ? _n(this.avatar)
- : this.type !== 'default'
- ? h(
- Et,
- { clsPrefix: t },
- { default: () => See[this.type]() }
- )
- : null
- )
- : null,
- this.closable
- ? h(Sl, {
- clsPrefix: t,
- class: `${t}-notification__close`,
- onClick: this.handleCloseClick
- })
- : null,
- h(
- 'div',
- { ref: 'bodyRef', class: `${t}-notification-main` },
- this.title
- ? h(
- 'div',
- { class: `${t}-notification-main__header` },
- _n(this.title)
- )
- : null,
- this.description
- ? h(
- 'div',
- { class: `${t}-notification-main__description` },
- _n(this.description)
- )
- : null,
- this.content
- ? h(
- 'pre',
- { class: `${t}-notification-main__content` },
- _n(this.content)
- )
- : null,
- this.meta || this.action
- ? h(
- 'div',
- { class: `${t}-notification-main-footer` },
- this.meta
- ? h(
- 'div',
- { class: `${t}-notification-main-footer__meta` },
- _n(this.meta)
- )
- : null,
- this.action
- ? h(
- 'div',
- { class: `${t}-notification-main-footer__action` },
- _n(this.action)
- )
- : null
- )
- : null
- )
- )
- )
- );
- }
- }),
- Pee = Object.assign(Object.assign({}, Xy), {
- duration: Number,
- onClose: Function,
- onLeave: Function,
- onAfterEnter: Function,
- onAfterLeave: Function,
- onHide: Function,
- onAfterShow: Function,
- onAfterHide: Function
- }),
- kee = Re({
- name: 'NotificationEnvironment',
- props: Object.assign(Object.assign({}, Pee), {
- internalKey: { type: String, required: !0 },
- onInternalAfterLeave: { type: Function, required: !0 }
- }),
- setup(e) {
- const { wipTransitionCountRef: t } = Ze(Jv),
- n = Z(!0);
- let r = null;
- function o() {
- (n.value = !1), r && window.clearTimeout(r);
- }
- function i(g) {
- t.value++,
- mn(() => {
- (g.style.height = `${g.offsetHeight}px`),
- (g.style.maxHeight = '0'),
- (g.style.transition = 'none'),
- g.offsetHeight,
- (g.style.transition = ''),
- (g.style.maxHeight = g.style.height);
- });
- }
- function a(g) {
- t.value--, (g.style.height = ''), (g.style.maxHeight = '');
- const { onAfterEnter: w, onAfterShow: x } = e;
- w && w(), x && x();
- }
- function s(g) {
- t.value++,
- (g.style.maxHeight = `${g.offsetHeight}px`),
- (g.style.height = `${g.offsetHeight}px`),
- g.offsetHeight;
- }
- function c(g) {
- const { onHide: w } = e;
- w && w(), (g.style.maxHeight = '0'), g.offsetHeight;
- }
- function d() {
- t.value--;
- const {
- onAfterLeave: g,
- onInternalAfterLeave: w,
- onAfterHide: x,
- internalKey: y
- } = e;
- g && g(), w(y), x && x();
- }
- function f() {
- const { duration: g } = e;
- g && (r = window.setTimeout(o, g));
- }
- function v(g) {
- g.currentTarget === g.target &&
- r !== null &&
- (window.clearTimeout(r), (r = null));
- }
- function p(g) {
- g.currentTarget === g.target && f();
- }
- function m() {
- const { onClose: g } = e;
- g
- ? Promise.resolve(g()).then(w => {
- w !== !1 && o();
- })
- : o();
- }
- return (
- Hn(() => {
- e.duration && (r = window.setTimeout(o, e.duration));
- }),
- {
- show: n,
- hide: o,
- handleClose: m,
- handleAfterLeave: d,
- handleLeave: c,
- handleBeforeLeave: s,
- handleAfterEnter: a,
- handleBeforeEnter: i,
- handleMouseenter: v,
- handleMouseleave: p
- }
- );
- },
- render() {
- return h(
- Kn,
- {
- name: 'notification-transition',
- appear: !0,
- onBeforeEnter: this.handleBeforeEnter,
- onAfterEnter: this.handleAfterEnter,
- onBeforeLeave: this.handleBeforeLeave,
- onLeave: this.handleLeave,
- onAfterLeave: this.handleAfterLeave
- },
- {
- default: () =>
- this.show
- ? h(
- Ree,
- Object.assign({}, fi(this.$props, _ee), {
- onClose: this.handleClose,
- onMouseenter:
- this.duration && this.keepAliveOnHover
- ? this.handleMouseenter
- : void 0,
- onMouseleave:
- this.duration && this.keepAliveOnHover
- ? this.handleMouseleave
- : void 0
- })
- )
- : null
- }
- );
- }
- }),
- Tee = F([
- O(
- 'notification-container',
- `
- z-index: 4000;
- position: fixed;
- overflow: visible;
- display: flex;
- flex-direction: column;
- align-items: flex-end;
- `,
- [
- F('>', [
- O(
- 'scrollbar',
- `
- width: initial;
- overflow: visible;
- height: -moz-fit-content !important;
- height: fit-content !important;
- max-height: 100vh !important;
- `,
- [
- F('>', [
- O(
- 'scrollbar-container',
- `
- height: -moz-fit-content !important;
- height: fit-content !important;
- max-height: 100vh !important;
- `,
- [
- O(
- 'scrollbar-content',
- `
- padding-top: 12px;
- padding-bottom: 33px;
- `
- )
- ]
- )
- ])
- ]
- )
- ]),
- U(
- 'top, top-right, top-left',
- `
- top: 12px;
- `,
- [
- F('&.transitioning >', [
- O('scrollbar', [
- F('>', [
- O(
- 'scrollbar-container',
- `
- min-height: 100vh !important;
- `
- )
- ])
- ])
- ])
- ]
- ),
- U(
- 'bottom, bottom-right, bottom-left',
- `
- bottom: 12px;
- `,
- [
- F('>', [
- O('scrollbar', [
- F('>', [
- O('scrollbar-container', [
- O(
- 'scrollbar-content',
- `
- padding-bottom: 12px;
- `
- )
- ])
- ])
- ])
- ]),
- O(
- 'notification-wrapper',
- `
- display: flex;
- align-items: flex-end;
- margin-bottom: 0;
- margin-top: 12px;
- `
- )
- ]
- ),
- U(
- 'top, bottom',
- `
- left: 50%;
- transform: translateX(-50%);
- `,
- [
- O('notification-wrapper', [
- F(
- '&.notification-transition-enter-from, &.notification-transition-leave-to',
- `
- transform: scale(0.85);
- `
- ),
- F(
- '&.notification-transition-leave-from, &.notification-transition-enter-to',
- `
- transform: scale(1);
- `
- )
- ])
- ]
- ),
- U('top', [
- O(
- 'notification-wrapper',
- `
- transform-origin: top center;
- `
- )
- ]),
- U('bottom', [
- O(
- 'notification-wrapper',
- `
- transform-origin: bottom center;
- `
- )
- ]),
- U('top-right, bottom-right', [
- O(
- 'notification',
- `
- margin-left: 28px;
- margin-right: 16px;
- `
- )
- ]),
- U('top-left, bottom-left', [
- O(
- 'notification',
- `
- margin-left: 16px;
- margin-right: 28px;
- `
- )
- ]),
- U(
- 'top-right',
- `
- right: 0;
- `,
- [Rh('top-right')]
- ),
- U(
- 'top-left',
- `
- left: 0;
- `,
- [Rh('top-left')]
- ),
- U(
- 'bottom-right',
- `
- right: 0;
- `,
- [Rh('bottom-right')]
- ),
- U(
- 'bottom-left',
- `
- left: 0;
- `,
- [Rh('bottom-left')]
- ),
- U('scrollable', [
- U(
- 'top-right',
- `
- top: 0;
- `
- ),
- U(
- 'top-left',
- `
- top: 0;
- `
- ),
- U(
- 'bottom-right',
- `
- bottom: 0;
- `
- ),
- U(
- 'bottom-left',
- `
- bottom: 0;
- `
- )
- ]),
- O(
- 'notification-wrapper',
- `
- margin-bottom: 12px;
- `,
- [
- F(
- '&.notification-transition-enter-from, &.notification-transition-leave-to',
- `
- opacity: 0;
- margin-top: 0 !important;
- margin-bottom: 0 !important;
- `
- ),
- F(
- '&.notification-transition-leave-from, &.notification-transition-enter-to',
- `
- opacity: 1;
- `
- ),
- F(
- '&.notification-transition-leave-active',
- `
- transition:
- background-color .3s var(--n-bezier),
- color .3s var(--n-bezier),
- opacity .3s var(--n-bezier),
- transform .3s var(--n-bezier-ease-in),
- max-height .3s var(--n-bezier),
- margin-top .3s linear,
- margin-bottom .3s linear,
- box-shadow .3s var(--n-bezier);
- `
- ),
- F(
- '&.notification-transition-enter-active',
- `
- transition:
- background-color .3s var(--n-bezier),
- color .3s var(--n-bezier),
- opacity .3s var(--n-bezier),
- transform .3s var(--n-bezier-ease-out),
- max-height .3s var(--n-bezier),
- margin-top .3s linear,
- margin-bottom .3s linear,
- box-shadow .3s var(--n-bezier);
- `
- )
- ]
- ),
- O(
- 'notification',
- `
- background-color: var(--n-color);
- color: var(--n-text-color);
- transition:
- background-color .3s var(--n-bezier),
- color .3s var(--n-bezier),
- opacity .3s var(--n-bezier),
- box-shadow .3s var(--n-bezier);
- font-family: inherit;
- font-size: var(--n-font-size);
- font-weight: 400;
- position: relative;
- display: flex;
- overflow: hidden;
- flex-shrink: 0;
- padding-left: var(--n-padding-left);
- padding-right: var(--n-padding-right);
- width: var(--n-width);
- border-radius: var(--n-border-radius);
- box-shadow: var(--n-box-shadow);
- box-sizing: border-box;
- opacity: 1;
- `,
- [
- V('avatar', [
- O('icon', { color: 'var(--n-icon-color)' }),
- O('base-icon', { color: 'var(--n-icon-color)' })
- ]),
- U('show-avatar', [
- O(
- 'notification-main',
- `
- margin-left: 40px;
- width: calc(100% - 40px);
- `
- )
- ]),
- U('closable', [
- O('notification-main', [
- F('> *:first-child', { paddingRight: '20px' })
- ]),
- V(
- 'close',
- `
- position: absolute;
- top: 0;
- right: 0;
- margin: var(--n-close-margin);
- transition:
- background-color .3s var(--n-bezier),
- color .3s var(--n-bezier);
- `
- )
- ]),
- V(
- 'avatar',
- `
- position: absolute;
- top: var(--n-padding-top);
- left: var(--n-padding-left);
- width: 28px;
- height: 28px;
- font-size: 28px;
- display: flex;
- align-items: center;
- justify-content: center;
- `,
- [O('icon', 'transition: color .3s var(--n-bezier);')]
- ),
- O(
- 'notification-main',
- `
- padding-top: var(--n-padding-top);
- padding-bottom: var(--n-padding-bottom);
- box-sizing: border-box;
- display: flex;
- flex-direction: column;
- margin-left: 8px;
- width: calc(100% - 8px);
- `,
- [
- O(
- 'notification-main-footer',
- `
- display: flex;
- align-items: center;
- justify-content: space-between;
- margin-top: 12px;
- `,
- [
- V(
- 'meta',
- `
- font-size: var(--n-meta-font-size);
- transition: color .3s var(--n-bezier-ease-out);
- color: var(--n-description-text-color);
- `
- ),
- V(
- 'action',
- `
- cursor: pointer;
- transition: color .3s var(--n-bezier-ease-out);
- color: var(--n-action-text-color);
- `
- )
- ]
- ),
- V(
- 'header',
- `
- font-weight: var(--n-title-font-weight);
- font-size: var(--n-title-font-size);
- transition: color .3s var(--n-bezier-ease-out);
- color: var(--n-title-text-color);
- `
- ),
- V(
- 'description',
- `
- margin-top: 8px;
- font-size: var(--n-description-font-size);
- white-space: pre-wrap;
- word-wrap: break-word;
- transition: color .3s var(--n-bezier-ease-out);
- color: var(--n-description-text-color);
- `
- ),
- V(
- 'content',
- `
- line-height: var(--n-line-height);
- margin: 12px 0 0 0;
- font-family: inherit;
- white-space: pre-wrap;
- word-wrap: break-word;
- transition: color .3s var(--n-bezier-ease-out);
- color: var(--n-text-color);
- `,
- [F('&:first-child', { margin: 0 })]
- )
- ]
- )
- ]
- )
- ]
- )
- ]);
- function Rh(e) {
- const n = e.split('-')[1] === 'left' ? 'calc(-100%)' : 'calc(100%)',
- r = '0';
- return O('notification-wrapper', [
- F(
- '&.notification-transition-enter-from, &.notification-transition-leave-to',
- `
- transform: translate(${n}, 0);
- `
- ),
- F(
- '&.notification-transition-leave-from, &.notification-transition-enter-to',
- `
- transform: translate(${r}, 0);
- `
- )
- ]);
- }
- const lT = 'n-notification-api',
- $ee = Object.assign(Object.assign({}, Ke.props), {
- containerStyle: [String, Object],
- to: [String, Object],
- scrollable: { type: Boolean, default: !0 },
- max: Number,
- placement: { type: String, default: 'top-right' },
- keepAliveOnHover: Boolean
- }),
- Zy = Re({
- name: 'NotificationProvider',
- props: $ee,
- setup(e) {
- const { mergedClsPrefixRef: t } = yt(e),
- n = Z([]),
- r = {},
- o = new Set();
- function i(m) {
- const g = pi(),
- w = () => {
- o.add(g), r[g] && r[g].hide();
- },
- x = Xi(
- Object.assign(Object.assign({}, m), {
- key: g,
- destroy: w,
- hide: w,
- deactivate: w
- })
- ),
- { max: y } = e;
- if (y && n.value.length - o.size >= y) {
- let C = !1,
- R = 0;
- for (const S of n.value) {
- if (!o.has(S.key)) {
- r[S.key] && (S.destroy(), (C = !0));
- break;
- }
- R++;
- }
- C || n.value.splice(R, 1);
- }
- return n.value.push(x), x;
- }
- const a = ['info', 'success', 'warning', 'error'].map(
- m => g => i(Object.assign(Object.assign({}, g), { type: m }))
- );
- function s(m) {
- o.delete(m),
- n.value.splice(
- n.value.findIndex(g => g.key === m),
- 1
- );
- }
- const c = Ke('Notification', '-notification', Tee, CQ, e, t),
- d = {
- create: i,
- info: a[0],
- success: a[1],
- warning: a[2],
- error: a[3],
- open: v,
- destroyAll: p
- },
- f = Z(0);
- Rt(lT, d),
- Rt(Jv, {
- props: e,
- mergedClsPrefixRef: t,
- mergedThemeRef: c,
- wipTransitionCountRef: f
- });
- function v(m) {
- return i(m);
- }
- function p() {
- Object.values(n.value).forEach(m => {
- m.hide();
- });
- }
- return Object.assign(
- {
- mergedClsPrefix: t,
- notificationList: n,
- notificationRefs: r,
- handleAfterLeave: s
- },
- d
- );
- },
- render() {
- var e, t, n;
- const { placement: r } = this;
- return h(
- on,
- null,
- (t = (e = this.$slots).default) === null || t === void 0
- ? void 0
- : t.call(e),
- this.notificationList.length
- ? h(
- Iu,
- { to: (n = this.to) !== null && n !== void 0 ? n : 'body' },
- h(
- Cee,
- {
- style: this.containerStyle,
- scrollable: this.scrollable && r !== 'top' && r !== 'bottom',
- placement: r
- },
- {
- default: () =>
- this.notificationList.map(o =>
- h(
- kee,
- Object.assign(
- {
- ref: i => {
- const a = o.key;
- i === null
- ? delete this.notificationRefs[a]
- : (this.notificationRefs[a] = i);
- }
- },
- Yc(o, ['destroy', 'hide', 'deactivate']),
- {
- internalKey: o.key,
- onInternalAfterLeave: this.handleAfterLeave,
- keepAliveOnHover:
- o.keepAliveOnHover === void 0
- ? this.keepAliveOnHover
- : o.keepAliveOnHover
- }
- )
- )
- )
- }
- )
- )
- : null
- );
- }
- });
- function Oee() {
- const e = Ze(lT, null);
- return (
- e === null &&
- io('use-notification', 'No outer `n-notification-provider` found.'),
- e
- );
- }
- const zee = F([
- O('progress', { display: 'inline-block' }, [
- O(
- 'progress-icon',
- `
- color: var(--n-icon-color);
- transition: color .3s var(--n-bezier);
- `
- ),
- U(
- 'line',
- `
- width: 100%;
- display: block;
- `,
- [
- O(
- 'progress-content',
- `
- display: flex;
- align-items: center;
- `,
- [O('progress-graph', { flex: 1 })]
- ),
- O('progress-custom-content', { marginLeft: '14px' }),
- O(
- 'progress-icon',
- `
- width: 30px;
- padding-left: 14px;
- height: var(--n-icon-size-line);
- line-height: var(--n-icon-size-line);
- font-size: var(--n-icon-size-line);
- `,
- [
- U(
- 'as-text',
- `
- color: var(--n-text-color-line-outer);
- text-align: center;
- width: 40px;
- font-size: var(--n-font-size);
- padding-left: 4px;
- transition: color .3s var(--n-bezier);
- `
- )
- ]
- )
- ]
- ),
- U('circle, dashboard', { width: '120px' }, [
- O(
- 'progress-custom-content',
- `
- position: absolute;
- left: 50%;
- top: 50%;
- transform: translateX(-50%) translateY(-50%);
- display: flex;
- align-items: center;
- justify-content: center;
- `
- ),
- O(
- 'progress-text',
- `
- position: absolute;
- left: 50%;
- top: 50%;
- transform: translateX(-50%) translateY(-50%);
- display: flex;
- align-items: center;
- color: inherit;
- font-size: var(--n-font-size-circle);
- color: var(--n-text-color-circle);
- font-weight: var(--n-font-weight-circle);
- transition: color .3s var(--n-bezier);
- white-space: nowrap;
- `
- ),
- O(
- 'progress-icon',
- `
- position: absolute;
- left: 50%;
- top: 50%;
- transform: translateX(-50%) translateY(-50%);
- display: flex;
- align-items: center;
- color: var(--n-icon-color);
- font-size: var(--n-icon-size-circle);
- `
- )
- ]),
- U(
- 'multiple-circle',
- `
- width: 200px;
- color: inherit;
- `,
- [
- O(
- 'progress-text',
- `
- font-weight: var(--n-font-weight-circle);
- color: var(--n-text-color-circle);
- position: absolute;
- left: 50%;
- top: 50%;
- transform: translateX(-50%) translateY(-50%);
- display: flex;
- align-items: center;
- justify-content: center;
- transition: color .3s var(--n-bezier);
- `
- )
- ]
- ),
- O('progress-content', { position: 'relative' }),
- O('progress-graph', { position: 'relative' }, [
- O('progress-graph-circle', [
- F('svg', { verticalAlign: 'bottom' }),
- O(
- 'progress-graph-circle-fill',
- `
- stroke: var(--n-fill-color);
- transition:
- opacity .3s var(--n-bezier),
- stroke .3s var(--n-bezier),
- stroke-dasharray .3s var(--n-bezier);
- `,
- [U('empty', { opacity: 0 })]
- ),
- O(
- 'progress-graph-circle-rail',
- `
- transition: stroke .3s var(--n-bezier);
- overflow: hidden;
- stroke: var(--n-rail-color);
- `
- )
- ]),
- O('progress-graph-line', [
- U('indicator-inside', [
- O(
- 'progress-graph-line-rail',
- `
- height: 16px;
- line-height: 16px;
- border-radius: 10px;
- `,
- [
- O(
- 'progress-graph-line-fill',
- `
- height: inherit;
- border-radius: 10px;
- `
- ),
- O(
- 'progress-graph-line-indicator',
- `
- background: #0000;
- white-space: nowrap;
- text-align: right;
- margin-left: 14px;
- margin-right: 14px;
- height: inherit;
- font-size: 12px;
- color: var(--n-text-color-line-inner);
- transition: color .3s var(--n-bezier);
- `
- )
- ]
- )
- ]),
- U(
- 'indicator-inside-label',
- `
- height: 16px;
- display: flex;
- align-items: center;
- `,
- [
- O(
- 'progress-graph-line-rail',
- `
- flex: 1;
- transition: background-color .3s var(--n-bezier);
- `
- ),
- O(
- 'progress-graph-line-indicator',
- `
- background: var(--n-fill-color);
- font-size: 12px;
- transform: translateZ(0);
- display: flex;
- vertical-align: middle;
- height: 16px;
- line-height: 16px;
- padding: 0 10px;
- border-radius: 10px;
- position: absolute;
- white-space: nowrap;
- color: var(--n-text-color-line-inner);
- transition:
- right .2s var(--n-bezier),
- color .3s var(--n-bezier),
- background-color .3s var(--n-bezier);
- `
- )
- ]
- ),
- O(
- 'progress-graph-line-rail',
- `
- position: relative;
- overflow: hidden;
- height: var(--n-rail-height);
- border-radius: 5px;
- background-color: var(--n-rail-color);
- transition: background-color .3s var(--n-bezier);
- `,
- [
- O(
- 'progress-graph-line-fill',
- `
- background: var(--n-fill-color);
- position: relative;
- border-radius: 5px;
- height: inherit;
- width: 100%;
- max-width: 0%;
- transition:
- background-color .3s var(--n-bezier),
- max-width .2s var(--n-bezier);
- `,
- [
- U('processing', [
- F(
- '&::after',
- `
- content: "";
- background-image: var(--n-line-bg-processing);
- animation: progress-processing-animation 2s var(--n-bezier) infinite;
- `
- )
- ])
- ]
- )
- ]
- )
- ])
- ])
- ]),
- F(
- '@keyframes progress-processing-animation',
- `
- 0% {
- position: absolute;
- left: 0;
- top: 0;
- bottom: 0;
- right: 100%;
- opacity: 1;
- }
- 66% {
- position: absolute;
- left: 0;
- top: 0;
- bottom: 0;
- right: 0;
- opacity: 0;
- }
- 100% {
- position: absolute;
- left: 0;
- top: 0;
- bottom: 0;
- right: 0;
- opacity: 0;
- }
- `
- )
- ]),
- Aee = {
- success: h(zs, null),
- error: h(Os, null),
- warning: h(As, null),
- info: h(bl, null)
- },
- Eee = Re({
- 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 n = I(() => vn(e.height)),
- r = I(() =>
- e.railBorderRadius !== void 0
- ? vn(e.railBorderRadius)
- : e.height !== void 0
- ? vn(e.height, { c: 0.5 })
- : ''
- ),
- o = I(() =>
- e.fillBorderRadius !== void 0
- ? vn(e.fillBorderRadius)
- : e.railBorderRadius !== void 0
- ? vn(e.railBorderRadius)
- : e.height !== void 0
- ? vn(e.height, { c: 0.5 })
- : ''
- );
- return () => {
- const {
- indicatorPlacement: i,
- railColor: a,
- railStyle: s,
- percentage: c,
- unit: d,
- indicatorTextColor: f,
- status: v,
- showIndicator: p,
- fillColor: m,
- processing: g,
- clsPrefix: w
- } = e;
- return h(
- 'div',
- { class: `${w}-progress-content`, role: 'none' },
- h(
- 'div',
- { class: `${w}-progress-graph`, 'aria-hidden': !0 },
- h(
- 'div',
- {
- class: [
- `${w}-progress-graph-line`,
- { [`${w}-progress-graph-line--indicator-${i}`]: !0 }
- ]
- },
- h(
- 'div',
- {
- class: `${w}-progress-graph-line-rail`,
- style: [
- {
- backgroundColor: a,
- height: n.value,
- borderRadius: r.value
- },
- s
- ]
- },
- h(
- 'div',
- {
- class: [
- `${w}-progress-graph-line-fill`,
- g && `${w}-progress-graph-line-fill--processing`
- ],
- style: {
- maxWidth: `${e.percentage}%`,
- backgroundColor: m,
- height: n.value,
- lineHeight: n.value,
- borderRadius: o.value
- }
- },
- i === 'inside'
- ? h(
- 'div',
- {
- class: `${w}-progress-graph-line-indicator`,
- style: { color: f }
- },
- c,
- d
- )
- : null
- )
- )
- )
- ),
- p && i === 'outside'
- ? h(
- 'div',
- null,
- t.default
- ? h(
- 'div',
- {
- class: `${w}-progress-custom-content`,
- style: { color: f },
- role: 'none'
- },
- t.default()
- )
- : v === 'default'
- ? h(
- 'div',
- {
- role: 'none',
- class: `${w}-progress-icon ${w}-progress-icon--as-text`,
- style: { color: f }
- },
- c,
- d
- )
- : h(
- 'div',
- { class: `${w}-progress-icon`, 'aria-hidden': !0 },
- h(Et, { clsPrefix: w }, { default: () => Aee[v] })
- )
- )
- : null
- );
- };
- }
- }),
- Mee = {
- success: h(zs, null),
- error: h(Os, null),
- warning: h(As, null),
- info: h(bl, null)
- },
- Iee = Re({
- 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 n(r, o, i) {
- const { gapDegree: a, viewBoxWidth: s, strokeWidth: c } = e,
- d = 50,
- f = 0,
- v = d,
- p = 0,
- m = 2 * d,
- g = 50 + c / 2,
- w = `M ${g},${g} m ${f},${v}
- a ${d},${d} 0 1 1 ${p},${-m}
- a ${d},${d} 0 1 1 ${-p},${m}`,
- x = Math.PI * 2 * d,
- y = {
- stroke: i,
- strokeDasharray: `${(r / 100) * (x - a)}px ${s * 8}px`,
- strokeDashoffset: `-${a / 2}px`,
- transformOrigin: o ? 'center' : void 0,
- transform: o ? `rotate(${o}deg)` : void 0
- };
- return { pathString: w, pathStyle: y };
- }
- return () => {
- const {
- fillColor: r,
- railColor: o,
- strokeWidth: i,
- offsetDegree: a,
- status: s,
- percentage: c,
- showIndicator: d,
- indicatorTextColor: f,
- unit: v,
- gapOffsetDegree: p,
- clsPrefix: m
- } = e,
- { pathString: g, pathStyle: w } = n(100, 0, o),
- { pathString: x, pathStyle: y } = n(c, a, r),
- C = 100 + i;
- return h(
- 'div',
- { class: `${m}-progress-content`, role: 'none' },
- h(
- 'div',
- { class: `${m}-progress-graph`, 'aria-hidden': !0 },
- h(
- 'div',
- {
- class: `${m}-progress-graph-circle`,
- style: { transform: p ? `rotate(${p}deg)` : void 0 }
- },
- h(
- 'svg',
- { viewBox: `0 0 ${C} ${C}` },
- h(
- 'g',
- null,
- h('path', {
- class: `${m}-progress-graph-circle-rail`,
- d: g,
- 'stroke-width': i,
- 'stroke-linecap': 'round',
- fill: 'none',
- style: w
- })
- ),
- h(
- 'g',
- null,
- h('path', {
- class: [
- `${m}-progress-graph-circle-fill`,
- c === 0 && `${m}-progress-graph-circle-fill--empty`
- ],
- d: x,
- 'stroke-width': i,
- 'stroke-linecap': 'round',
- fill: 'none',
- style: y
- })
- )
- )
- )
- ),
- d
- ? h(
- 'div',
- null,
- t.default
- ? h(
- 'div',
- { class: `${m}-progress-custom-content`, role: 'none' },
- t.default()
- )
- : s !== 'default'
- ? h(
- 'div',
- { class: `${m}-progress-icon`, 'aria-hidden': !0 },
- h(Et, { clsPrefix: m }, { default: () => Mee[s] })
- )
- : h(
- 'div',
- {
- class: `${m}-progress-text`,
- style: { color: f },
- role: 'none'
- },
- h('span', { class: `${m}-progress-text__percentage` }, c),
- h('span', { class: `${m}-progress-text__unit` }, v)
- )
- )
- : null
- );
- };
- }
- });
- function f2(e, t, n = 100) {
- return `m ${n / 2} ${n / 2 - e} a ${e} ${e} 0 1 1 0 ${
- 2 * e
- } a ${e} ${e} 0 1 1 0 -${2 * e}`;
- }
- const Dee = Re({
- 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 n = I(() =>
- e.percentage.map(
- (o, i) =>
- `${
- ((Math.PI * o) / 100) *
- (e.viewBoxWidth / 2 -
- (e.strokeWidth / 2) * (1 + 2 * i) -
- e.circleGap * i) *
- 2
- }, ${e.viewBoxWidth * 8}`
- )
- );
- return () => {
- const {
- viewBoxWidth: r,
- strokeWidth: o,
- circleGap: i,
- showIndicator: a,
- fillColor: s,
- railColor: c,
- railStyle: d,
- percentage: f,
- clsPrefix: v
- } = e;
- return h(
- 'div',
- { class: `${v}-progress-content`, role: 'none' },
- h(
- 'div',
- { class: `${v}-progress-graph`, 'aria-hidden': !0 },
- h(
- 'div',
- { class: `${v}-progress-graph-circle` },
- h(
- 'svg',
- { viewBox: `0 0 ${r} ${r}` },
- f.map((p, m) =>
- h(
- 'g',
- { key: m },
- h('path', {
- class: `${v}-progress-graph-circle-rail`,
- d: f2(r / 2 - (o / 2) * (1 + 2 * m) - i * m, o, r),
- 'stroke-width': o,
- 'stroke-linecap': 'round',
- fill: 'none',
- style: [{ strokeDashoffset: 0, stroke: c[m] }, d[m]]
- }),
- h('path', {
- class: [
- `${v}-progress-graph-circle-fill`,
- p === 0 && `${v}-progress-graph-circle-fill--empty`
- ],
- d: f2(r / 2 - (o / 2) * (1 + 2 * m) - i * m, o, r),
- 'stroke-width': o,
- 'stroke-linecap': 'round',
- fill: 'none',
- style: {
- strokeDasharray: n.value[m],
- strokeDashoffset: 0,
- stroke: s[m]
- }
- })
- )
- )
- )
- )
- ),
- a && t.default
- ? h(
- 'div',
- null,
- h('div', { class: `${v}-progress-text` }, t.default())
- )
- : null
- );
- };
- }
- }),
- Fee = Object.assign(Object.assign({}, Ke.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
- }),
- sT = Re({
- name: 'Progress',
- props: Fee,
- setup(e) {
- const t = I(() => e.indicatorPlacement || e.indicatorPosition),
- n = I(() => {
- if (e.gapDegree || e.gapDegree === 0) return e.gapDegree;
- if (e.type === 'dashboard') return 75;
- }),
- { mergedClsPrefixRef: r, inlineThemeDisabled: o } = yt(e),
- i = Ke('Progress', '-progress', zee, U3, e, r),
- a = I(() => {
- const { status: c } = e,
- {
- common: { cubicBezierEaseInOut: d },
- self: {
- fontSize: f,
- fontSizeCircle: v,
- railColor: p,
- railHeight: m,
- iconSizeCircle: g,
- iconSizeLine: w,
- textColorCircle: x,
- textColorLineInner: y,
- textColorLineOuter: C,
- lineBgProcessing: R,
- fontWeightCircle: S,
- [Oe('iconColor', c)]: _,
- [Oe('fillColor', c)]: P
- }
- } = i.value;
- return {
- '--n-bezier': d,
- '--n-fill-color': P,
- '--n-font-size': f,
- '--n-font-size-circle': v,
- '--n-font-weight-circle': S,
- '--n-icon-color': _,
- '--n-icon-size-circle': g,
- '--n-icon-size-line': w,
- '--n-line-bg-processing': R,
- '--n-rail-color': p,
- '--n-rail-height': m,
- '--n-text-color-circle': x,
- '--n-text-color-line-inner': y,
- '--n-text-color-line-outer': C
- };
- }),
- s = o
- ? Mt(
- 'progress',
- I(() => e.status[0]),
- a,
- e
- )
- : void 0;
- return {
- mergedClsPrefix: r,
- mergedIndicatorPlacement: t,
- gapDeg: n,
- cssVars: o ? void 0 : a,
- themeClass: s == null ? void 0 : s.themeClass,
- onRender: s == null ? void 0 : s.onRender
- };
- },
- render() {
- const {
- type: e,
- cssVars: t,
- indicatorTextColor: n,
- showIndicator: r,
- status: o,
- railColor: i,
- railStyle: a,
- color: s,
- percentage: c,
- viewBoxWidth: d,
- strokeWidth: f,
- mergedIndicatorPlacement: v,
- unit: p,
- borderRadius: m,
- fillBorderRadius: g,
- height: w,
- processing: x,
- circleGap: y,
- mergedClsPrefix: C,
- gapDeg: R,
- gapOffsetDegree: S,
- themeClass: _,
- $slots: P,
- onRender: T
- } = this;
- return (
- T == null || T(),
- h(
- 'div',
- {
- class: [
- _,
- `${C}-progress`,
- `${C}-progress--${e}`,
- `${C}-progress--${o}`
- ],
- style: t,
- 'aria-valuemax': 100,
- 'aria-valuemin': 0,
- 'aria-valuenow': c,
- role:
- e === 'circle' || e === 'line' || e === 'dashboard'
- ? 'progressbar'
- : 'none'
- },
- e === 'circle' || e === 'dashboard'
- ? h(
- Iee,
- {
- clsPrefix: C,
- status: o,
- showIndicator: r,
- indicatorTextColor: n,
- railColor: i,
- fillColor: s,
- railStyle: a,
- offsetDegree: this.offsetDegree,
- percentage: c,
- viewBoxWidth: d,
- strokeWidth: f,
- gapDegree: R === void 0 ? (e === 'dashboard' ? 75 : 0) : R,
- gapOffsetDegree: S,
- unit: p
- },
- P
- )
- : e === 'line'
- ? h(
- Eee,
- {
- clsPrefix: C,
- status: o,
- showIndicator: r,
- indicatorTextColor: n,
- railColor: i,
- fillColor: s,
- railStyle: a,
- percentage: c,
- processing: x,
- indicatorPlacement: v,
- unit: p,
- fillBorderRadius: g,
- railBorderRadius: m,
- height: w
- },
- P
- )
- : e === 'multiple-circle'
- ? h(
- Dee,
- {
- clsPrefix: C,
- strokeWidth: f,
- railColor: i,
- fillColor: s,
- railStyle: a,
- viewBoxWidth: d,
- percentage: c,
- showIndicator: r,
- circleGap: y
- },
- P
- )
- : null
- )
- );
- }
- }),
- Bee = h(
- 'svg',
- { xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 36 36' },
- h('circle', { fill: '#FFCB4C', cx: '18', cy: '17.018', r: '17' }),
- h('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'
- }),
- h('ellipse', {
- fill: '#65471B',
- cx: '13.119',
- cy: '11.174',
- rx: '2.125',
- ry: '2.656'
- }),
- h('ellipse', {
- fill: '#65471B',
- cx: '24.375',
- cy: '12.236',
- rx: '2.125',
- ry: '2.656'
- }),
- h('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'
- }),
- h('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'
- })
- ),
- Lee = h(
- 'svg',
- { xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 36 36' },
- h('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'
- }),
- h('ellipse', { fill: '#664500', cx: '18', cy: '27', rx: '5', ry: '6' }),
- h('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'
- })
- ),
- Nee = h(
- 'svg',
- { xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 36 36' },
- h('ellipse', { fill: '#292F33', cx: '18', cy: '26', rx: '18', ry: '10' }),
- h('ellipse', { fill: '#66757F', cx: '18', cy: '24', rx: '18', ry: '10' }),
- h('path', {
- fill: '#E1E8ED',
- d: 'M18 31C3.042 31 1 16 1 12h34c0 2-1.958 19-17 19z'
- }),
- h('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'
- }),
- h('ellipse', { fill: '#A6D388', cx: '18', cy: '13', rx: '15', ry: '7' }),
- h('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'
- })
- ),
- Hee = h(
- 'svg',
- { xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 36 36' },
- h('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'
- }),
- h('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'
- })
- ),
- jee = O(
- 'result',
- `
- color: var(--n-text-color);
- line-height: var(--n-line-height);
- font-size: var(--n-font-size);
- transition:
- color .3s var(--n-bezier);
- `,
- [
- O(
- 'result-icon',
- `
- display: flex;
- justify-content: center;
- transition: color .3s var(--n-bezier);
- `,
- [
- V(
- 'status-image',
- `
- font-size: var(--n-icon-size);
- width: 1em;
- height: 1em;
- `
- ),
- O(
- 'base-icon',
- `
- color: var(--n-icon-color);
- font-size: var(--n-icon-size);
- `
- )
- ]
- ),
- O('result-content', { marginTop: '24px' }),
- O(
- 'result-footer',
- `
- margin-top: 24px;
- text-align: center;
- `
- ),
- O('result-header', [
- V(
- 'title',
- `
- margin-top: 16px;
- font-weight: var(--n-title-font-weight);
- transition: color .3s var(--n-bezier);
- text-align: center;
- color: var(--n-title-text-color);
- font-size: var(--n-title-font-size);
- `
- ),
- V(
- 'description',
- `
- margin-top: 4px;
- text-align: center;
- font-size: var(--n-font-size);
- `
- )
- ])
- ]
- ),
- Uee = {
- 403: Hee,
- 404: Bee,
- 418: Nee,
- 500: Lee,
- info: h(bl, null),
- success: h(zs, null),
- warning: h(As, null),
- error: h(Os, null)
- },
- Wee = Object.assign(Object.assign({}, Ke.props), {
- size: { type: String, default: 'medium' },
- status: { type: String, default: 'info' },
- title: String,
- description: String
- }),
- Vee = Re({
- name: 'Result',
- props: Wee,
- setup(e) {
- const { mergedClsPrefixRef: t, inlineThemeDisabled: n } = yt(e),
- r = Ke('Result', '-result', jee, qQ, e, t),
- o = I(() => {
- const { size: a, status: s } = e,
- {
- common: { cubicBezierEaseInOut: c },
- self: {
- textColor: d,
- lineHeight: f,
- titleTextColor: v,
- titleFontWeight: p,
- [Oe('iconColor', s)]: m,
- [Oe('fontSize', a)]: g,
- [Oe('titleFontSize', a)]: w,
- [Oe('iconSize', a)]: x
- }
- } = r.value;
- return {
- '--n-bezier': c,
- '--n-font-size': g,
- '--n-icon-size': x,
- '--n-line-height': f,
- '--n-text-color': d,
- '--n-title-font-size': w,
- '--n-title-font-weight': p,
- '--n-title-text-color': v,
- '--n-icon-color': m || ''
- };
- }),
- i = n
- ? Mt(
- 'result',
- I(() => {
- const { size: a, status: s } = e;
- let c = '';
- return a && (c += a[0]), s && (c += s[0]), c;
- }),
- o,
- e
- )
- : void 0;
- return {
- mergedClsPrefix: t,
- cssVars: n ? void 0 : o,
- themeClass: i == null ? void 0 : i.themeClass,
- onRender: i == null ? void 0 : i.onRender
- };
- },
- render() {
- var e;
- const { status: t, $slots: n, mergedClsPrefix: r, onRender: o } = this;
- return (
- o == null || o(),
- h(
- 'div',
- { class: [`${r}-result`, this.themeClass], style: this.cssVars },
- h(
- 'div',
- { class: `${r}-result-icon` },
- ((e = n.icon) === null || e === void 0 ? void 0 : e.call(n)) ||
- h(Et, { clsPrefix: r }, { default: () => Uee[t] })
- ),
- h(
- 'div',
- { class: `${r}-result-header` },
- this.title
- ? h('div', { class: `${r}-result-header__title` }, this.title)
- : null,
- this.description
- ? h(
- 'div',
- { class: `${r}-result-header__description` },
- this.description
- )
- : null
- ),
- n.default && h('div', { class: `${r}-result-content` }, n),
- n.footer && h('div', { class: `${r}-result-footer` }, n.footer())
- )
- );
- }
- }),
- Kee = e => {
- const {
- heightSmall: t,
- heightMedium: n,
- heightLarge: r,
- borderRadius: o
- } = e;
- return {
- color: '#eee',
- colorEnd: '#ddd',
- borderRadius: o,
- heightSmall: t,
- heightMedium: n,
- heightLarge: r
- };
- },
- qee = { name: 'Skeleton', common: Nt, self: Kee },
- Yee = F([
- O(
- 'skeleton',
- `
- height: 1em;
- width: 100%;
- transition: background-color .3s var(--n-bezier);
- transition:
- --n-color-start .3s var(--n-bezier),
- --n-color-end .3s var(--n-bezier),
- background-color .3s var(--n-bezier);
- animation: 2s skeleton-loading infinite cubic-bezier(0.36, 0, 0.64, 1);
- background-color: var(--n-color-start);
- `
- ),
- F(
- '@keyframes skeleton-loading',
- `
- 0% {
- background: var(--n-color-start);
- }
- 40% {
- background: var(--n-color-end);
- }
- 80% {
- background: var(--n-color-start);
- }
- 100% {
- background: var(--n-color-start);
- }
- `
- )
- ]),
- Gee = Object.assign(Object.assign({}, Ke.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 }
- }),
- Xee = Re({
- name: 'Skeleton',
- inheritAttrs: !1,
- props: Gee,
- setup(e) {
- TD();
- const { mergedClsPrefixRef: t } = yt(e),
- n = Ke('Skeleton', '-skeleton', Yee, qee, e, t);
- return {
- mergedClsPrefix: t,
- style: I(() => {
- var r, o;
- const i = n.value,
- {
- common: { cubicBezierEaseInOut: a }
- } = i,
- s = i.self,
- { color: c, colorEnd: d, borderRadius: f } = s;
- let v;
- const {
- circle: p,
- sharp: m,
- round: g,
- width: w,
- height: x,
- size: y,
- text: C,
- animated: R
- } = e;
- y !== void 0 && (v = s[Oe('height', y)]);
- const S = p
- ? (r = w != null ? w : x) !== null && r !== void 0
- ? r
- : v
- : w,
- _ = (o = p && w != null ? w : x) !== null && o !== void 0 ? o : v;
- return {
- display: C ? 'inline-block' : '',
- verticalAlign: C ? '-0.125em' : '',
- borderRadius: p ? '50%' : g ? '4096px' : m ? '' : f,
- width: typeof S == 'number' ? sr(S) : S,
- height: typeof _ == 'number' ? sr(_) : _,
- animation: R ? '' : 'none',
- '--n-bezier': a,
- '--n-color-start': c,
- '--n-color-end': d
- };
- })
- };
- },
- render() {
- const { repeat: e, style: t, mergedClsPrefix: n, $attrs: r } = this,
- o = h('div', qr({ class: `${n}-skeleton`, style: t }, r));
- return e > 1
- ? h(
- on,
- null,
- Array.apply(null, { length: e }).map(i => [
- o,
- `
- `
- ])
- )
- : o;
- }
- }),
- Zee = F([
- F(
- '@keyframes spin-rotate',
- `
- from {
- transform: rotate(0);
- }
- to {
- transform: rotate(360deg);
- }
- `
- ),
- O('spin-container', { position: 'relative' }, [
- O(
- 'spin-body',
- `
- position: absolute;
- top: 50%;
- left: 50%;
- transform: translateX(-50%) translateY(-50%);
- `,
- [Cs()]
- )
- ]),
- O(
- 'spin-body',
- `
- display: inline-flex;
- align-items: center;
- justify-content: center;
- flex-direction: column;
- `
- ),
- O(
- 'spin',
- `
- display: inline-flex;
- height: var(--n-size);
- width: var(--n-size);
- font-size: var(--n-size);
- color: var(--n-color);
- `,
- [
- U(
- 'rotate',
- `
- animation: spin-rotate 2s linear infinite;
- `
- )
- ]
- ),
- O(
- 'spin-description',
- `
- display: inline-block;
- font-size: var(--n-font-size);
- color: var(--n-text-color);
- transition: color .3s var(--n-bezier);
- margin-top: 8px;
- `
- ),
- O(
- 'spin-content',
- `
- opacity: 1;
- transition: opacity .3s var(--n-bezier);
- pointer-events: all;
- `,
- [
- U(
- 'spinning',
- `
- user-select: none;
- -webkit-user-select: none;
- pointer-events: none;
- opacity: var(--n-opacity-spinning);
- `
- )
- ]
- )
- ]),
- Qee = { small: 20, medium: 18, large: 16 },
- Jee = Object.assign(Object.assign({}, Ke.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 }
- }),
- ete = Re({
- name: 'Spin',
- props: Jee,
- setup(e) {
- const { mergedClsPrefixRef: t, inlineThemeDisabled: n } = yt(e),
- r = Ke('Spin', '-spin', Zee, XQ, e, t),
- o = I(() => {
- const { size: a } = e,
- {
- common: { cubicBezierEaseInOut: s },
- self: c
- } = r.value,
- { opacitySpinning: d, color: f, textColor: v } = c,
- p = typeof a == 'number' ? sr(a) : c[Oe('size', a)];
- return {
- '--n-bezier': s,
- '--n-opacity-spinning': d,
- '--n-size': p,
- '--n-color': f,
- '--n-text-color': v
- };
- }),
- i = n
- ? Mt(
- 'spin',
- I(() => {
- const { size: a } = e;
- return typeof a == 'number' ? String(a) : a[0];
- }),
- o,
- e
- )
- : void 0;
- return {
- mergedClsPrefix: t,
- compitableShow: xs(e, ['spinning', 'show']),
- mergedStrokeWidth: I(() => {
- const { strokeWidth: a } = e;
- if (a !== void 0) return a;
- const { size: s } = e;
- return Qee[typeof s == 'number' ? 'medium' : s];
- }),
- cssVars: n ? void 0 : o,
- themeClass: i == null ? void 0 : i.themeClass,
- onRender: i == null ? void 0 : i.onRender
- };
- },
- render() {
- var e, t;
- const { $slots: n, mergedClsPrefix: r, description: o } = this,
- i = n.icon && this.rotate,
- a =
- (o || n.description) &&
- h(
- 'div',
- { class: `${r}-spin-description` },
- o ||
- ((e = n.description) === null || e === void 0
- ? void 0
- : e.call(n))
- ),
- s = n.icon
- ? h(
- 'div',
- { class: [`${r}-spin-body`, this.themeClass] },
- h(
- 'div',
- {
- class: [`${r}-spin`, i && `${r}-spin--rotate`],
- style: n.default ? '' : this.cssVars
- },
- n.icon()
- ),
- a
- )
- : h(
- 'div',
- { class: [`${r}-spin-body`, this.themeClass] },
- h($a, {
- clsPrefix: r,
- style: n.default ? '' : this.cssVars,
- stroke: this.stroke,
- 'stroke-width': this.mergedStrokeWidth,
- class: `${r}-spin`
- }),
- a
- );
- return (
- (t = this.onRender) === null || t === void 0 || t.call(this),
- n.default
- ? h(
- 'div',
- {
- class: [`${r}-spin-container`, this.themeClass],
- style: this.cssVars
- },
- h(
- 'div',
- {
- class: [
- `${r}-spin-content`,
- this.compitableShow && `${r}-spin-content--spinning`
- ]
- },
- n
- ),
- h(
- Kn,
- { name: 'fade-in-transition' },
- { default: () => (this.compitableShow ? s : null) }
- )
- )
- : s
- );
- }
- }),
- tte = O(
- 'steps',
- `
- width: 100%;
- display: flex;
- `,
- [
- O(
- 'step',
- `
- position: relative;
- display: flex;
- flex: 1;
- `,
- [
- U('disabled', 'cursor: not-allowed'),
- U(
- 'clickable',
- `
- cursor: pointer;
- `
- ),
- F('&:last-child', [O('step-splitor', 'display: none;')])
- ]
- ),
- O(
- 'step-splitor',
- `
- background-color: var(--n-splitor-color);
- margin-top: calc(var(--n-step-header-font-size) / 2);
- height: 1px;
- flex: 1;
- align-self: flex-start;
- margin-left: 12px;
- margin-right: 12px;
- transition:
- color .3s var(--n-bezier),
- background-color .3s var(--n-bezier);
- `
- ),
- O('step-content', 'flex: 1;', [
- O(
- 'step-content-header',
- `
- color: var(--n-header-text-color);
- margin-top: calc(var(--n-indicator-size) / 2 - var(--n-step-header-font-size) / 2);
- line-height: var(--n-step-header-font-size);
- font-size: var(--n-step-header-font-size);
- position: relative;
- display: flex;
- font-weight: var(--n-step-header-font-weight);
- margin-left: 9px;
- transition:
- color .3s var(--n-bezier),
- background-color .3s var(--n-bezier);
- `,
- [
- V(
- 'title',
- `
- white-space: nowrap;
- flex: 0;
- `
- )
- ]
- ),
- V(
- 'description',
- `
- color: var(--n-description-text-color);
- margin-top: 12px;
- margin-left: 9px;
- transition:
- color .3s var(--n-bezier),
- background-color .3s var(--n-bezier);
- `
- )
- ]),
- O(
- 'step-indicator',
- `
- background-color: var(--n-indicator-color);
- box-shadow: 0 0 0 1px var(--n-indicator-border-color);
- height: var(--n-indicator-size);
- width: var(--n-indicator-size);
- border-radius: 50%;
- display: flex;
- align-items: center;
- justify-content: center;
- transition:
- background-color .3s var(--n-bezier),
- box-shadow .3s var(--n-bezier);
- `,
- [
- O(
- 'step-indicator-slot',
- `
- position: relative;
- width: var(--n-indicator-icon-size);
- height: var(--n-indicator-icon-size);
- font-size: var(--n-indicator-icon-size);
- line-height: var(--n-indicator-icon-size);
- `,
- [
- V(
- 'index',
- `
- display: inline-block;
- text-align: center;
- position: absolute;
- left: 0;
- top: 0;
- font-size: var(--n-indicator-index-font-size);
- width: var(--n-indicator-icon-size);
- height: var(--n-indicator-icon-size);
- line-height: var(--n-indicator-icon-size);
- color: var(--n-indicator-text-color);
- transition: color .3s var(--n-bezier);
- `,
- [br()]
- ),
- O(
- 'icon',
- `
- color: var(--n-indicator-text-color);
- transition: color .3s var(--n-bezier);
- `,
- [br()]
- ),
- O(
- 'base-icon',
- `
- color: var(--n-indicator-text-color);
- transition: color .3s var(--n-bezier);
- `,
- [br()]
- )
- ]
- )
- ]
- ),
- U('vertical', 'flex-direction: column;', [
- jt('show-description', [F('>', [O('step', 'padding-bottom: 8px;')])]),
- F('>', [
- O('step', 'margin-bottom: 16px;', [
- F('&:last-child', 'margin-bottom: 0;'),
- F('>', [
- O('step-indicator', [
- F('>', [
- O(
- 'step-splitor',
- `
- position: absolute;
- bottom: -8px;
- width: 1px;
- margin: 0 !important;
- left: calc(var(--n-indicator-size) / 2);
- height: calc(100% - var(--n-indicator-size));
- `
- )
- ])
- ]),
- O('step-content', [V('description', 'margin-top: 8px;')])
- ])
- ])
- ])
- ])
- ]
- );
- function nte(e, t) {
- return typeof e != 'object' || e === null || Array.isArray(e)
- ? null
- : (e.props || (e.props = {}), (e.props.internalIndex = t + 1), e);
- }
- function rte(e) {
- return e.map((t, n) => nte(t, n));
- }
- const ote = Object.assign(Object.assign({}, Ke.props), {
- current: Number,
- status: { type: String, default: 'process' },
- size: { type: String, default: 'medium' },
- vertical: Boolean,
- 'onUpdate:current': [Function, Array],
- onUpdateCurrent: [Function, Array]
- }),
- cT = 'n-steps',
- ite = Re({
- name: 'Steps',
- props: ote,
- setup(e, { slots: t }) {
- const { mergedClsPrefixRef: n, mergedRtlRef: r } = yt(e),
- o = dr('Steps', r, n),
- i = Ke('Steps', '-steps', tte, eJ, e, n);
- return (
- Rt(cT, {
- props: e,
- mergedThemeRef: i,
- mergedClsPrefixRef: n,
- stepsSlots: t
- }),
- { mergedClsPrefix: n, rtlEnabled: o }
- );
- },
- render() {
- const { mergedClsPrefix: e } = this;
- return h(
- 'div',
- {
- class: [
- `${e}-steps`,
- this.rtlEnabled && `${e}-steps--rtl`,
- this.vertical && `${e}-steps--vertical`
- ]
- },
- rte(hi(Fu(this)))
- );
- }
- }),
- ate = {
- status: String,
- title: String,
- description: String,
- disabled: Boolean,
- internalIndex: { type: Number, default: 0 }
- },
- lte = Re({
- name: 'Step',
- props: ate,
- setup(e) {
- const t = Ze(cT, null);
- t || io('step', '`n-step` must be placed inside `n-steps`.');
- const { inlineThemeDisabled: n } = yt(),
- {
- props: r,
- mergedThemeRef: o,
- mergedClsPrefixRef: i,
- stepsSlots: a
- } = t,
- s = I(() => r.vertical),
- c = I(() => {
- const { status: p } = e;
- if (p) return p;
- {
- const { internalIndex: m } = e,
- { current: g } = r;
- if (g === void 0) return 'process';
- if (m < g) return 'finish';
- if (m === g) return r.status || 'process';
- if (m > g) return 'wait';
- }
- return 'process';
- }),
- d = I(() => {
- const { value: p } = c,
- { size: m } = r,
- {
- common: { cubicBezierEaseInOut: g },
- self: {
- stepHeaderFontWeight: w,
- [Oe('stepHeaderFontSize', m)]: x,
- [Oe('indicatorIndexFontSize', m)]: y,
- [Oe('indicatorSize', m)]: C,
- [Oe('indicatorIconSize', m)]: R,
- [Oe('indicatorTextColor', p)]: S,
- [Oe('indicatorBorderColor', p)]: _,
- [Oe('headerTextColor', p)]: P,
- [Oe('splitorColor', p)]: T,
- [Oe('indicatorColor', p)]: A,
- [Oe('descriptionTextColor', p)]: z
- }
- } = o.value;
- return {
- '--n-bezier': g,
- '--n-description-text-color': z,
- '--n-header-text-color': P,
- '--n-indicator-border-color': _,
- '--n-indicator-color': A,
- '--n-indicator-icon-size': R,
- '--n-indicator-index-font-size': y,
- '--n-indicator-size': C,
- '--n-indicator-text-color': S,
- '--n-splitor-color': T,
- '--n-step-header-font-size': x,
- '--n-step-header-font-weight': w
- };
- }),
- f = n
- ? Mt(
- 'step',
- I(() => {
- const { value: p } = c,
- { size: m } = r;
- return `${p[0]}${m[0]}`;
- }),
- d,
- r
- )
- : void 0,
- v = I(() => {
- if (e.disabled) return;
- const { onUpdateCurrent: p, 'onUpdate:current': m } = r;
- return p || m
- ? () => {
- p && ze(p, e.internalIndex), m && ze(m, e.internalIndex);
- }
- : void 0;
- });
- return {
- stepsSlots: a,
- mergedClsPrefix: i,
- vertical: s,
- mergedStatus: c,
- handleStepClick: v,
- cssVars: n ? void 0 : d,
- themeClass: f == null ? void 0 : f.themeClass,
- onRender: f == null ? void 0 : f.onRender
- };
- },
- render() {
- const {
- mergedClsPrefix: e,
- onRender: t,
- handleStepClick: n,
- disabled: r
- } = this,
- o = cn(this.$slots.default, i => {
- const a = i || this.description;
- return a
- ? h('div', { class: `${e}-step-content__description` }, a)
- : null;
- });
- return (
- t == null || t(),
- h(
- 'div',
- {
- class: [
- `${e}-step`,
- r && `${e}-step--disabled`,
- !r && n && `${e}-step--clickable`,
- this.themeClass,
- o && `${e}-step--show-description`,
- `${e}-step--${this.mergedStatus}-status`
- ],
- style: this.cssVars,
- onClick: n
- },
- h(
- 'div',
- { class: `${e}-step-indicator` },
- h(
- 'div',
- { class: `${e}-step-indicator-slot` },
- h(Zi, null, {
- default: () =>
- cn(this.$slots.icon, i => {
- const { mergedStatus: a, stepsSlots: s } = this;
- return a === 'finish' || a === 'error'
- ? a === 'finish'
- ? h(
- Et,
- { clsPrefix: e, key: 'finish' },
- {
- default: () =>
- Kt(s['finish-icon'], () => [h(gk, null)])
- }
- )
- : a === 'error'
- ? h(
- Et,
- { clsPrefix: e, key: 'error' },
- {
- default: () =>
- Kt(s['error-icon'], () => [h(mk, null)])
- }
- )
- : null
- : i ||
- h(
- 'div',
- {
- key: this.internalIndex,
- class: `${e}-step-indicator-slot__index`
- },
- this.internalIndex
- );
- })
- })
- ),
- this.vertical ? h('div', { class: `${e}-step-splitor` }) : null
- ),
- h(
- 'div',
- { class: `${e}-step-content` },
- h(
- 'div',
- { class: `${e}-step-content-header` },
- h(
- 'div',
- { class: `${e}-step-content-header__title` },
- Kt(this.$slots.title, () => [this.title])
- ),
- this.vertical ? null : h('div', { class: `${e}-step-splitor` })
- ),
- o
- )
- )
- );
- }
- }),
- ste = O(
- 'switch',
- `
- height: var(--n-height);
- min-width: var(--n-width);
- vertical-align: middle;
- user-select: none;
- -webkit-user-select: none;
- display: inline-flex;
- outline: none;
- justify-content: center;
- align-items: center;
- `,
- [
- V(
- 'children-placeholder',
- `
- height: var(--n-rail-height);
- display: flex;
- flex-direction: column;
- overflow: hidden;
- pointer-events: none;
- visibility: hidden;
- `
- ),
- V(
- 'rail-placeholder',
- `
- display: flex;
- flex-wrap: none;
- `
- ),
- V(
- 'button-placeholder',
- `
- width: calc(1.75 * var(--n-rail-height));
- height: var(--n-rail-height);
- `
- ),
- O(
- 'base-loading',
- `
- position: absolute;
- top: 50%;
- left: 50%;
- transform: translateX(-50%) translateY(-50%);
- font-size: calc(var(--n-button-width) - 4px);
- color: var(--n-loading-color);
- transition: color .3s var(--n-bezier);
- `,
- [
- br({
- left: '50%',
- top: '50%',
- originalTransform: 'translateX(-50%) translateY(-50%)'
- })
- ]
- ),
- V(
- 'checked, unchecked',
- `
- transition: color .3s var(--n-bezier);
- color: var(--n-text-color);
- box-sizing: border-box;
- position: absolute;
- white-space: nowrap;
- top: 0;
- bottom: 0;
- display: flex;
- align-items: center;
- line-height: 1;
- `
- ),
- V(
- 'checked',
- `
- right: 0;
- padding-right: calc(1.25 * var(--n-rail-height) - var(--n-offset));
- `
- ),
- V(
- 'unchecked',
- `
- left: 0;
- justify-content: flex-end;
- padding-left: calc(1.25 * var(--n-rail-height) - var(--n-offset));
- `
- ),
- F('&:focus', [
- V(
- 'rail',
- `
- box-shadow: var(--n-box-shadow-focus);
- `
- )
- ]),
- U('round', [
- V('rail', 'border-radius: calc(var(--n-rail-height) / 2);', [
- V('button', 'border-radius: calc(var(--n-button-height) / 2);')
- ])
- ]),
- jt('disabled', [
- jt('icon', [
- U('rubber-band', [
- U('pressed', [
- V('rail', [
- V('button', 'max-width: var(--n-button-width-pressed);')
- ])
- ]),
- V('rail', [
- F('&:active', [
- V('button', 'max-width: var(--n-button-width-pressed);')
- ])
- ]),
- U('active', [
- U('pressed', [
- V('rail', [
- V(
- 'button',
- 'left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));'
- )
- ])
- ]),
- V('rail', [
- F('&:active', [
- V(
- 'button',
- 'left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));'
- )
- ])
- ])
- ])
- ])
- ])
- ]),
- U('active', [
- V('rail', [
- V(
- 'button',
- 'left: calc(100% - var(--n-button-width) - var(--n-offset))'
- )
- ])
- ]),
- V(
- 'rail',
- `
- overflow: hidden;
- height: var(--n-rail-height);
- min-width: var(--n-rail-width);
- border-radius: var(--n-rail-border-radius);
- cursor: pointer;
- position: relative;
- transition:
- opacity .3s var(--n-bezier),
- background .3s var(--n-bezier),
- box-shadow .3s var(--n-bezier);
- background-color: var(--n-rail-color);
- `,
- [
- V(
- 'button-icon',
- `
- color: var(--n-icon-color);
- transition: color .3s var(--n-bezier);
- font-size: calc(var(--n-button-height) - 4px);
- position: absolute;
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- display: flex;
- justify-content: center;
- align-items: center;
- line-height: 1;
- `,
- [br()]
- ),
- V(
- 'button',
- `
- align-items: center;
- top: var(--n-offset);
- left: var(--n-offset);
- height: var(--n-button-height);
- width: var(--n-button-width-pressed);
- max-width: var(--n-button-width);
- border-radius: var(--n-button-border-radius);
- background-color: var(--n-button-color);
- box-shadow: var(--n-button-box-shadow);
- box-sizing: border-box;
- cursor: inherit;
- content: "";
- position: absolute;
- transition:
- background-color .3s var(--n-bezier),
- left .3s var(--n-bezier),
- opacity .3s var(--n-bezier),
- max-width .3s var(--n-bezier),
- box-shadow .3s var(--n-bezier);
- `
- )
- ]
- ),
- U('active', [V('rail', 'background-color: var(--n-rail-color-active);')]),
- U('loading', [
- V(
- 'rail',
- `
- cursor: wait;
- `
- )
- ]),
- U('disabled', [
- V(
- 'rail',
- `
- cursor: not-allowed;
- opacity: .5;
- `
- )
- ])
- ]
- ),
- cte = Object.assign(Object.assign({}, Ke.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 Id;
- const dte = Re({
- name: 'Switch',
- props: cte,
- setup(e) {
- Id === void 0 &&
- (typeof CSS < 'u'
- ? typeof CSS.supports < 'u'
- ? (Id = CSS.supports('width', 'max(1px)'))
- : (Id = !1)
- : (Id = !0));
- const { mergedClsPrefixRef: t, inlineThemeDisabled: n } = yt(e),
- r = Ke('Switch', '-switch', ste, oJ, e, t),
- o = ei(e),
- { mergedSizeRef: i, mergedDisabledRef: a } = o,
- s = Z(e.defaultValue),
- c = Ee(e, 'value'),
- d = An(c, s),
- f = I(() => d.value === e.checkedValue),
- v = Z(!1),
- p = Z(!1),
- m = I(() => {
- const { railStyle: A } = e;
- if (A) return A({ focused: p.value, checked: f.value });
- });
- function g(A) {
- const { 'onUpdate:value': z, onChange: k, onUpdateValue: M } = e,
- { nTriggerFormInput: E, nTriggerFormChange: D } = o;
- z && ze(z, A), M && ze(M, A), k && ze(k, A), (s.value = A), E(), D();
- }
- function w() {
- const { nTriggerFormFocus: A } = o;
- A();
- }
- function x() {
- const { nTriggerFormBlur: A } = o;
- A();
- }
- function y() {
- e.loading ||
- a.value ||
- (d.value !== e.checkedValue
- ? g(e.checkedValue)
- : g(e.uncheckedValue));
- }
- function C() {
- (p.value = !0), w();
- }
- function R() {
- (p.value = !1), x(), (v.value = !1);
- }
- function S(A) {
- e.loading ||
- a.value ||
- (A.key === ' ' &&
- (d.value !== e.checkedValue
- ? g(e.checkedValue)
- : g(e.uncheckedValue),
- (v.value = !1)));
- }
- function _(A) {
- e.loading ||
- a.value ||
- (A.key === ' ' && (A.preventDefault(), (v.value = !0)));
- }
- const P = I(() => {
- const { value: A } = i,
- {
- self: {
- opacityDisabled: z,
- railColor: k,
- railColorActive: M,
- buttonBoxShadow: E,
- buttonColor: D,
- boxShadowFocus: L,
- loadingColor: j,
- textColor: B,
- iconColor: q,
- [Oe('buttonHeight', A)]: G,
- [Oe('buttonWidth', A)]: ne,
- [Oe('buttonWidthPressed', A)]: X,
- [Oe('railHeight', A)]: J,
- [Oe('railWidth', A)]: re,
- [Oe('railBorderRadius', A)]: ce,
- [Oe('buttonBorderRadius', A)]: pe
- },
- common: { cubicBezierEaseInOut: Fe }
- } = r.value;
- let Ie, le, me;
- return (
- Id
- ? ((Ie = `calc((${J} - ${G}) / 2)`),
- (le = `max(${J}, ${G})`),
- (me = `max(${re}, calc(${re} + ${G} - ${J}))`))
- : ((Ie = sr((Lr(J) - Lr(G)) / 2)),
- (le = sr(Math.max(Lr(J), Lr(G)))),
- (me = Lr(J) > Lr(G) ? re : sr(Lr(re) + Lr(G) - Lr(J)))),
- {
- '--n-bezier': Fe,
- '--n-button-border-radius': pe,
- '--n-button-box-shadow': E,
- '--n-button-color': D,
- '--n-button-width': ne,
- '--n-button-width-pressed': X,
- '--n-button-height': G,
- '--n-height': le,
- '--n-offset': Ie,
- '--n-opacity-disabled': z,
- '--n-rail-border-radius': ce,
- '--n-rail-color': k,
- '--n-rail-color-active': M,
- '--n-rail-height': J,
- '--n-rail-width': re,
- '--n-width': me,
- '--n-box-shadow-focus': L,
- '--n-loading-color': j,
- '--n-text-color': B,
- '--n-icon-color': q
- }
- );
- }),
- T = n
- ? Mt(
- 'switch',
- I(() => i.value[0]),
- P,
- e
- )
- : void 0;
- return {
- handleClick: y,
- handleBlur: R,
- handleFocus: C,
- handleKeyup: S,
- handleKeydown: _,
- mergedRailStyle: m,
- pressed: v,
- mergedClsPrefix: t,
- mergedValue: d,
- checked: f,
- mergedDisabled: a,
- cssVars: n ? void 0 : P,
- themeClass: T == null ? void 0 : T.themeClass,
- onRender: T == null ? void 0 : T.onRender
- };
- },
- render() {
- const {
- mergedClsPrefix: e,
- mergedDisabled: t,
- checked: n,
- mergedRailStyle: r,
- onRender: o,
- $slots: i
- } = this;
- o == null || o();
- const {
- checked: a,
- unchecked: s,
- icon: c,
- 'checked-icon': d,
- 'unchecked-icon': f
- } = i,
- v = !(ps(c) && ps(d) && ps(f));
- return h(
- 'div',
- {
- role: 'switch',
- 'aria-checked': n,
- class: [
- `${e}-switch`,
- this.themeClass,
- v && `${e}-switch--icon`,
- n && `${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
- },
- h(
- 'div',
- { class: `${e}-switch__rail`, 'aria-hidden': 'true', style: r },
- cn(a, p =>
- cn(s, m =>
- p || m
- ? h(
- 'div',
- {
- 'aria-hidden': !0,
- class: `${e}-switch__children-placeholder`
- },
- h(
- 'div',
- { class: `${e}-switch__rail-placeholder` },
- h('div', { class: `${e}-switch__button-placeholder` }),
- p
- ),
- h(
- 'div',
- { class: `${e}-switch__rail-placeholder` },
- h('div', { class: `${e}-switch__button-placeholder` }),
- m
- )
- )
- : null
- )
- ),
- h(
- 'div',
- { class: `${e}-switch__button` },
- cn(c, p =>
- cn(d, m =>
- cn(f, g =>
- h(Zi, null, {
- default: () =>
- this.loading
- ? h($a, {
- key: 'loading',
- clsPrefix: e,
- strokeWidth: 20
- })
- : this.checked && (m || p)
- ? h(
- 'div',
- {
- class: `${e}-switch__button-icon`,
- key: m ? 'checked-icon' : 'icon'
- },
- m || p
- )
- : !this.checked && (g || p)
- ? h(
- 'div',
- {
- class: `${e}-switch__button-icon`,
- key: g ? 'unchecked-icon' : 'icon'
- },
- g || p
- )
- : null
- })
- )
- )
- ),
- cn(
- a,
- p =>
- p &&
- h('div', { key: 'checked', class: `${e}-switch__checked` }, p)
- ),
- cn(
- s,
- p =>
- p &&
- h(
- 'div',
- { key: 'unchecked', class: `${e}-switch__unchecked` },
- p
- )
- )
- )
- )
- );
- }
- }),
- ute = F([
- O(
- 'table',
- `
- font-size: var(--n-font-size);
- font-variant-numeric: tabular-nums;
- line-height: var(--n-line-height);
- width: 100%;
- border-radius: var(--n-border-radius) var(--n-border-radius) 0 0;
- text-align: left;
- border-collapse: separate;
- border-spacing: 0;
- overflow: hidden;
- background-color: var(--n-td-color);
- border-color: var(--n-merged-border-color);
- transition:
- background-color .3s var(--n-bezier),
- border-color .3s var(--n-bezier),
- color .3s var(--n-bezier);
- --n-merged-border-color: var(--n-border-color);
- `,
- [
- F(
- 'th',
- `
- white-space: nowrap;
- transition:
- background-color .3s var(--n-bezier),
- border-color .3s var(--n-bezier),
- color .3s var(--n-bezier);
- text-align: inherit;
- padding: var(--n-th-padding);
- vertical-align: inherit;
- text-transform: none;
- border: 0px solid var(--n-merged-border-color);
- font-weight: var(--n-th-font-weight);
- color: var(--n-th-text-color);
- background-color: var(--n-th-color);
- border-bottom: 1px solid var(--n-merged-border-color);
- border-right: 1px solid var(--n-merged-border-color);
- `,
- [
- F(
- '&:last-child',
- `
- border-right: 0px solid var(--n-merged-border-color);
- `
- )
- ]
- ),
- F(
- 'td',
- `
- transition:
- background-color .3s var(--n-bezier),
- border-color .3s var(--n-bezier),
- color .3s var(--n-bezier);
- padding: var(--n-td-padding);
- color: var(--n-td-text-color);
- background-color: var(--n-td-color);
- border: 0px solid var(--n-merged-border-color);
- border-right: 1px solid var(--n-merged-border-color);
- border-bottom: 1px solid var(--n-merged-border-color);
- `,
- [
- F(
- '&:last-child',
- `
- border-right: 0px solid var(--n-merged-border-color);
- `
- )
- ]
- ),
- U(
- 'bordered',
- `
- border: 1px solid var(--n-merged-border-color);
- border-radius: var(--n-border-radius);
- `,
- [
- F('tr', [
- F('&:last-child', [
- F(
- 'td',
- `
- border-bottom: 0 solid var(--n-merged-border-color);
- `
- )
- ])
- ])
- ]
- ),
- U('single-line', [
- F(
- 'th',
- `
- border-right: 0px solid var(--n-merged-border-color);
- `
- ),
- F(
- 'td',
- `
- border-right: 0px solid var(--n-merged-border-color);
- `
- )
- ]),
- U('single-column', [
- F('tr', [
- F('&:not(:last-child)', [
- F(
- 'td',
- `
- border-bottom: 0px solid var(--n-merged-border-color);
- `
- )
- ])
- ])
- ]),
- U('striped', [
- F('tr:nth-of-type(even)', [
- F('td', 'background-color: var(--n-td-color-striped)')
- ])
- ]),
- jt('bottom-bordered', [
- F('tr', [
- F('&:last-child', [
- F(
- 'td',
- `
- border-bottom: 0px solid var(--n-merged-border-color);
- `
- )
- ])
- ])
- ])
- ]
- ),
- xl(
- O(
- 'table',
- `
- background-color: var(--n-td-color-modal);
- --n-merged-border-color: var(--n-border-color-modal);
- `,
- [
- F(
- 'th',
- `
- background-color: var(--n-th-color-modal);
- `
- ),
- F(
- 'td',
- `
- background-color: var(--n-td-color-modal);
- `
- )
- ]
- )
- ),
- Ps(
- O(
- 'table',
- `
- background-color: var(--n-td-color-popover);
- --n-merged-border-color: var(--n-border-color-popover);
- `,
- [
- F(
- 'th',
- `
- background-color: var(--n-th-color-popover);
- `
- ),
- F(
- 'td',
- `
- background-color: var(--n-td-color-popover);
- `
- )
- ]
- )
- )
- ]),
- fte = Object.assign(Object.assign({}, Ke.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' }
- }),
- hte = Re({
- name: 'Table',
- props: fte,
- setup(e) {
- const {
- mergedClsPrefixRef: t,
- inlineThemeDisabled: n,
- mergedRtlRef: r
- } = yt(e),
- o = Ke('Table', '-table', ute, sJ, e, t),
- i = dr('Table', r, t),
- a = I(() => {
- const { size: c } = e,
- {
- self: {
- borderColor: d,
- tdColor: f,
- tdColorModal: v,
- tdColorPopover: p,
- thColor: m,
- thColorModal: g,
- thColorPopover: w,
- thTextColor: x,
- tdTextColor: y,
- borderRadius: C,
- thFontWeight: R,
- lineHeight: S,
- borderColorModal: _,
- borderColorPopover: P,
- tdColorStriped: T,
- tdColorStripedModal: A,
- tdColorStripedPopover: z,
- [Oe('fontSize', c)]: k,
- [Oe('tdPadding', c)]: M,
- [Oe('thPadding', c)]: E
- },
- common: { cubicBezierEaseInOut: D }
- } = o.value;
- return {
- '--n-bezier': D,
- '--n-td-color': f,
- '--n-td-color-modal': v,
- '--n-td-color-popover': p,
- '--n-td-text-color': y,
- '--n-border-color': d,
- '--n-border-color-modal': _,
- '--n-border-color-popover': P,
- '--n-border-radius': C,
- '--n-font-size': k,
- '--n-th-color': m,
- '--n-th-color-modal': g,
- '--n-th-color-popover': w,
- '--n-th-font-weight': R,
- '--n-th-text-color': x,
- '--n-line-height': S,
- '--n-td-padding': M,
- '--n-th-padding': E,
- '--n-td-color-striped': T,
- '--n-td-color-striped-modal': A,
- '--n-td-color-striped-popover': z
- };
- }),
- s = n
- ? Mt(
- 'table',
- I(() => e.size[0]),
- a,
- e
- )
- : void 0;
- return {
- rtlEnabled: i,
- mergedClsPrefix: t,
- cssVars: n ? void 0 : a,
- 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),
- h(
- '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
- )
- );
- }
- }),
- Qy = 'n-tabs',
- dT = {
- 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]
- },
- vte = Re({
- __TAB_PANE__: !0,
- name: 'TabPane',
- alias: ['TabPanel'],
- props: dT,
- setup(e) {
- const t = Ze(Qy, null);
- return (
- t || io('tab-pane', '`n-tab-pane` must be placed inside `n-tabs`.'),
- {
- style: t.paneStyleRef,
- class: t.paneClassRef,
- mergedClsPrefix: t.mergedClsPrefixRef
- }
- );
- },
- render() {
- return h(
- 'div',
- {
- class: [`${this.mergedClsPrefix}-tab-pane`, this.class],
- style: this.style
- },
- this.$slots
- );
- }
- }),
- pte = Object.assign(
- {
- internalLeftPadded: Boolean,
- internalAddable: Boolean,
- internalCreatedByPane: Boolean
- },
- Yc(dT, ['displayDirective'])
- ),
- o0 = Re({
- __TAB__: !0,
- inheritAttrs: !1,
- name: 'Tab',
- props: pte,
- setup(e) {
- const {
- mergedClsPrefixRef: t,
- valueRef: n,
- typeRef: r,
- closableRef: o,
- tabStyleRef: i,
- tabChangeIdRef: a,
- onBeforeLeaveRef: s,
- triggerRef: c,
- handleAdd: d,
- activateTab: f,
- handleClose: v
- } = Ze(Qy);
- return {
- trigger: c,
- mergedClosable: I(() => {
- if (e.internalAddable) return !1;
- const { closable: p } = e;
- return p === void 0 ? o.value : p;
- }),
- style: i,
- clsPrefix: t,
- value: n,
- type: r,
- handleClose(p) {
- p.stopPropagation(), !e.disabled && v(e.name);
- },
- activateTab() {
- if (e.disabled) return;
- if (e.internalAddable) {
- d();
- return;
- }
- const { name: p } = e,
- m = ++a.id;
- if (p !== n.value) {
- const { value: g } = s;
- g
- ? Promise.resolve(g(e.name, n.value)).then(w => {
- w && a.id === m && f(p);
- })
- : f(p);
- }
- }
- };
- },
- render() {
- const {
- internalAddable: e,
- clsPrefix: t,
- name: n,
- disabled: r,
- label: o,
- tab: i,
- value: a,
- mergedClosable: s,
- style: c,
- trigger: d,
- $slots: { default: f }
- } = this,
- v = o != null ? o : i;
- return h(
- 'div',
- { class: `${t}-tabs-tab-wrapper` },
- this.internalLeftPadded
- ? h('div', { class: `${t}-tabs-tab-pad` })
- : null,
- h(
- 'div',
- Object.assign(
- { key: n, 'data-name': n, 'data-disabled': r ? !0 : void 0 },
- qr(
- {
- class: [
- `${t}-tabs-tab`,
- a === n && `${t}-tabs-tab--active`,
- r && `${t}-tabs-tab--disabled`,
- s && `${t}-tabs-tab--closable`,
- e && `${t}-tabs-tab--addable`
- ],
- onClick: d === 'click' ? this.activateTab : void 0,
- onMouseenter: d === 'hover' ? this.activateTab : void 0,
- style: e ? void 0 : c
- },
- this.internalCreatedByPane ? this.tabProps || {} : this.$attrs
- )
- ),
- h(
- 'span',
- { class: `${t}-tabs-tab__label` },
- e
- ? h(
- on,
- null,
- h('div', { class: `${t}-tabs-tab__height-placeholder` }, ' '),
- h(Et, { clsPrefix: t }, { default: () => h(yy, null) })
- )
- : f
- ? f()
- : typeof v == 'object'
- ? v
- : _n(v != null ? v : n)
- ),
- s && this.type === 'card'
- ? h(Sl, {
- clsPrefix: t,
- class: `${t}-tabs-tab__close`,
- onClick: this.handleClose,
- disabled: r
- })
- : null
- )
- );
- }
- }),
- gte = O(
- 'tabs',
- `
- box-sizing: border-box;
- width: 100%;
- display: flex;
- flex-direction: column;
- transition:
- background-color .3s var(--n-bezier),
- border-color .3s var(--n-bezier);
- `,
- [
- U('segment-type', [
- O('tabs-rail', [
- F('&.transition-disabled', 'color: red;', [
- O(
- 'tabs-tab',
- `
- transition: none;
- `
- )
- ])
- ])
- ]),
- U('top', [
- O(
- 'tab-pane',
- `
- padding: var(--n-pane-padding-top) var(--n-pane-padding-right) var(--n-pane-padding-bottom) var(--n-pane-padding-left);
- `
- )
- ]),
- U('left', [
- O(
- 'tab-pane',
- `
- padding: var(--n-pane-padding-right) var(--n-pane-padding-bottom) var(--n-pane-padding-left) var(--n-pane-padding-top);
- `
- )
- ]),
- U(
- 'left, right',
- `
- flex-direction: row;
- `,
- [
- O(
- 'tabs-bar',
- `
- width: 2px;
- right: 0;
- transition:
- top .2s var(--n-bezier),
- max-height .2s var(--n-bezier),
- background-color .3s var(--n-bezier);
- `
- ),
- O(
- 'tabs-tab',
- `
- padding: var(--n-tab-padding-vertical);
- `
- )
- ]
- ),
- U(
- 'right',
- `
- flex-direction: row-reverse;
- `,
- [
- O(
- 'tab-pane',
- `
- padding: var(--n-pane-padding-left) var(--n-pane-padding-top) var(--n-pane-padding-right) var(--n-pane-padding-bottom);
- `
- ),
- O(
- 'tabs-bar',
- `
- left: 0;
- `
- )
- ]
- ),
- U(
- 'bottom',
- `
- flex-direction: column-reverse;
- justify-content: flex-end;
- `,
- [
- O(
- 'tab-pane',
- `
- padding: var(--n-pane-padding-bottom) var(--n-pane-padding-right) var(--n-pane-padding-top) var(--n-pane-padding-left);
- `
- ),
- O(
- 'tabs-bar',
- `
- top: 0;
- `
- )
- ]
- ),
- O(
- 'tabs-rail',
- `
- padding: 3px;
- border-radius: var(--n-tab-border-radius);
- width: 100%;
- background-color: var(--n-color-segment);
- transition: background-color .3s var(--n-bezier);
- display: flex;
- align-items: center;
- `,
- [
- O(
- 'tabs-tab-wrapper',
- `
- flex-basis: 0;
- flex-grow: 1;
- display: flex;
- align-items: center;
- justify-content: center;
- `,
- [
- O(
- 'tabs-tab',
- `
- overflow: hidden;
- border-radius: var(--n-tab-border-radius);
- width: 100%;
- display: flex;
- align-items: center;
- justify-content: center;
- `,
- [
- U(
- 'active',
- `
- font-weight: var(--n-font-weight-strong);
- color: var(--n-tab-text-color-active);
- background-color: var(--n-tab-color-segment);
- box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .08);
- `
- ),
- F(
- '&:hover',
- `
- color: var(--n-tab-text-color-hover);
- `
- )
- ]
- )
- ]
- )
- ]
- ),
- U('flex', [
- O('tabs-nav', { width: '100%' }, [
- O('tabs-wrapper', { width: '100%' }, [
- O('tabs-tab', { marginRight: 0 })
- ])
- ])
- ]),
- O(
- 'tabs-nav',
- `
- box-sizing: border-box;
- line-height: 1.5;
- display: flex;
- transition: border-color .3s var(--n-bezier);
- `,
- [
- V(
- 'prefix, suffix',
- `
- display: flex;
- align-items: center;
- `
- ),
- V('prefix', 'padding-right: 16px;'),
- V('suffix', 'padding-left: 16px;')
- ]
- ),
- U('top, bottom', [
- O('tabs-nav-scroll-wrapper', [
- F(
- '&::before',
- `
- top: 0;
- bottom: 0;
- left: 0;
- width: 20px;
- `
- ),
- F(
- '&::after',
- `
- top: 0;
- bottom: 0;
- right: 0;
- width: 20px;
- `
- ),
- U('shadow-start', [
- F(
- '&::before',
- `
- box-shadow: inset 10px 0 8px -8px rgba(0, 0, 0, .12);
- `
- )
- ]),
- U('shadow-end', [
- F(
- '&::after',
- `
- box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, .12);
- `
- )
- ])
- ])
- ]),
- U('left, right', [
- O('tabs-nav-scroll-wrapper', [
- F(
- '&::before',
- `
- top: 0;
- left: 0;
- right: 0;
- height: 20px;
- `
- ),
- F(
- '&::after',
- `
- bottom: 0;
- left: 0;
- right: 0;
- height: 20px;
- `
- ),
- U('shadow-start', [
- F(
- '&::before',
- `
- box-shadow: inset 0 10px 8px -8px rgba(0, 0, 0, .12);
- `
- )
- ]),
- U('shadow-end', [
- F(
- '&::after',
- `
- box-shadow: inset 0 -10px 8px -8px rgba(0, 0, 0, .12);
- `
- )
- ])
- ])
- ]),
- O(
- 'tabs-nav-scroll-wrapper',
- `
- flex: 1;
- position: relative;
- overflow: hidden;
- `,
- [
- O(
- 'tabs-nav-y-scroll',
- `
- height: 100%;
- width: 100%;
- overflow-y: auto;
- scrollbar-width: none;
- `,
- [
- F(
- '&::-webkit-scrollbar',
- `
- width: 0;
- height: 0;
- `
- )
- ]
- ),
- F(
- '&::before, &::after',
- `
- transition: box-shadow .3s var(--n-bezier);
- pointer-events: none;
- content: "";
- position: absolute;
- z-index: 1;
- `
- )
- ]
- ),
- O(
- 'tabs-nav-scroll-content',
- `
- display: flex;
- position: relative;
- min-width: 100%;
- width: fit-content;
- box-sizing: border-box;
- `
- ),
- O(
- 'tabs-wrapper',
- `
- display: inline-flex;
- flex-wrap: nowrap;
- position: relative;
- `
- ),
- O(
- 'tabs-tab-wrapper',
- `
- display: flex;
- flex-wrap: nowrap;
- flex-shrink: 0;
- flex-grow: 0;
- `
- ),
- O(
- 'tabs-tab',
- `
- cursor: pointer;
- white-space: nowrap;
- flex-wrap: nowrap;
- display: inline-flex;
- align-items: center;
- color: var(--n-tab-text-color);
- font-size: var(--n-tab-font-size);
- background-clip: padding-box;
- padding: var(--n-tab-padding);
- transition:
- box-shadow .3s var(--n-bezier),
- color .3s var(--n-bezier),
- background-color .3s var(--n-bezier),
- border-color .3s var(--n-bezier);
- `,
- [
- U('disabled', { cursor: 'not-allowed' }),
- V(
- 'close',
- `
- margin-left: 6px;
- transition:
- background-color .3s var(--n-bezier),
- color .3s var(--n-bezier);
- `
- ),
- V(
- 'label',
- `
- display: flex;
- align-items: center;
- `
- )
- ]
- ),
- O(
- 'tabs-bar',
- `
- position: absolute;
- bottom: 0;
- height: 2px;
- border-radius: 1px;
- background-color: var(--n-bar-color);
- transition:
- left .2s var(--n-bezier),
- max-width .2s var(--n-bezier),
- background-color .3s var(--n-bezier);
- `,
- [
- F(
- '&.transition-disabled',
- `
- transition: none;
- `
- ),
- U(
- 'disabled',
- `
- background-color: var(--n-tab-text-color-disabled)
- `
- )
- ]
- ),
- O(
- 'tabs-pane-wrapper',
- `
- position: relative;
- overflow: hidden;
- transition: max-height .2s var(--n-bezier);
- `
- ),
- O(
- 'tab-pane',
- `
- color: var(--n-pane-text-color);
- width: 100%;
- transition:
- color .3s var(--n-bezier),
- background-color .3s var(--n-bezier),
- opacity .2s var(--n-bezier);
- left: 0;
- right: 0;
- top: 0;
- `,
- [
- F(
- '&.next-transition-leave-active, &.prev-transition-leave-active, &.next-transition-enter-active, &.prev-transition-enter-active',
- `
- transition:
- color .3s var(--n-bezier),
- background-color .3s var(--n-bezier),
- transform .2s var(--n-bezier),
- opacity .2s var(--n-bezier);
- `
- ),
- F(
- '&.next-transition-leave-active, &.prev-transition-leave-active',
- `
- position: absolute;
- `
- ),
- F(
- '&.next-transition-enter-from, &.prev-transition-leave-to',
- `
- transform: translateX(32px);
- opacity: 0;
- `
- ),
- F(
- '&.next-transition-leave-to, &.prev-transition-enter-from',
- `
- transform: translateX(-32px);
- opacity: 0;
- `
- ),
- F(
- '&.next-transition-leave-from, &.next-transition-enter-to, &.prev-transition-leave-from, &.prev-transition-enter-to',
- `
- transform: translateX(0);
- opacity: 1;
- `
- )
- ]
- ),
- O(
- 'tabs-tab-pad',
- `
- box-sizing: border-box;
- width: var(--n-tab-gap);
- flex-grow: 0;
- flex-shrink: 0;
- `
- ),
- U('line-type, bar-type', [
- O(
- 'tabs-tab',
- `
- font-weight: var(--n-tab-font-weight);
- box-sizing: border-box;
- vertical-align: bottom;
- `,
- [
- F('&:hover', { color: 'var(--n-tab-text-color-hover)' }),
- U(
- 'active',
- `
- color: var(--n-tab-text-color-active);
- font-weight: var(--n-tab-font-weight-active);
- `
- ),
- U('disabled', { color: 'var(--n-tab-text-color-disabled)' })
- ]
- )
- ]),
- O('tabs-nav', [
- U('line-type', [
- U('top', [
- V(
- 'prefix, suffix',
- `
- border-bottom: 1px solid var(--n-tab-border-color);
- `
- ),
- O(
- 'tabs-nav-scroll-content',
- `
- border-bottom: 1px solid var(--n-tab-border-color);
- `
- ),
- O(
- 'tabs-bar',
- `
- bottom: -1px;
- `
- )
- ]),
- U('left', [
- V(
- 'prefix, suffix',
- `
- border-right: 1px solid var(--n-tab-border-color);
- `
- ),
- O(
- 'tabs-nav-scroll-content',
- `
- border-right: 1px solid var(--n-tab-border-color);
- `
- ),
- O(
- 'tabs-bar',
- `
- right: -1px;
- `
- )
- ]),
- U('right', [
- V(
- 'prefix, suffix',
- `
- border-left: 1px solid var(--n-tab-border-color);
- `
- ),
- O(
- 'tabs-nav-scroll-content',
- `
- border-left: 1px solid var(--n-tab-border-color);
- `
- ),
- O(
- 'tabs-bar',
- `
- left: -1px;
- `
- )
- ]),
- U('bottom', [
- V(
- 'prefix, suffix',
- `
- border-top: 1px solid var(--n-tab-border-color);
- `
- ),
- O(
- 'tabs-nav-scroll-content',
- `
- border-top: 1px solid var(--n-tab-border-color);
- `
- ),
- O(
- 'tabs-bar',
- `
- top: -1px;
- `
- )
- ]),
- V(
- 'prefix, suffix',
- `
- transition: border-color .3s var(--n-bezier);
- `
- ),
- O(
- 'tabs-nav-scroll-content',
- `
- transition: border-color .3s var(--n-bezier);
- `
- ),
- O(
- 'tabs-bar',
- `
- border-radius: 0;
- `
- )
- ]),
- U('card-type', [
- V(
- 'prefix, suffix',
- `
- transition: border-color .3s var(--n-bezier);
- border-bottom: 1px solid var(--n-tab-border-color);
- `
- ),
- O(
- 'tabs-pad',
- `
- flex-grow: 1;
- transition: border-color .3s var(--n-bezier);
- border-bottom: 1px solid var(--n-tab-border-color);
- `
- ),
- O(
- 'tabs-tab-pad',
- `
- transition: border-color .3s var(--n-bezier);
- `
- ),
- O(
- 'tabs-tab',
- `
- font-weight: var(--n-tab-font-weight);
- border: 1px solid var(--n-tab-border-color);
- background-color: var(--n-tab-color);
- box-sizing: border-box;
- position: relative;
- vertical-align: bottom;
- display: flex;
- justify-content: space-between;
- font-size: var(--n-tab-font-size);
- color: var(--n-tab-text-color);
- `,
- [
- U(
- 'addable',
- `
- padding-left: 8px;
- padding-right: 8px;
- font-size: 16px;
- `,
- [
- V(
- 'height-placeholder',
- `
- width: 0;
- font-size: var(--n-tab-font-size);
- `
- ),
- jt('disabled', [
- F(
- '&:hover',
- `
- color: var(--n-tab-text-color-hover);
- `
- )
- ])
- ]
- ),
- U('closable', 'padding-right: 8px;'),
- U(
- 'active',
- `
- background-color: #0000;
- font-weight: var(--n-tab-font-weight-active);
- color: var(--n-tab-text-color-active);
- `
- ),
- U('disabled', 'color: var(--n-tab-text-color-disabled);')
- ]
- ),
- O(
- 'tabs-scroll-padding',
- 'border-bottom: 1px solid var(--n-tab-border-color);'
- )
- ]),
- U('left, right', [
- O(
- 'tabs-wrapper',
- `
- flex-direction: column;
- `,
- [
- O(
- 'tabs-tab-wrapper',
- `
- flex-direction: column;
- `,
- [
- O(
- 'tabs-tab-pad',
- `
- height: var(--n-tab-gap-vertical);
- width: 100%;
- `
- )
- ]
- )
- ]
- )
- ]),
- U('top', [
- U('card-type', [
- O(
- 'tabs-tab',
- `
- border-top-left-radius: var(--n-tab-border-radius);
- border-top-right-radius: var(--n-tab-border-radius);
- `,
- [
- U(
- 'active',
- `
- border-bottom: 1px solid #0000;
- `
- )
- ]
- ),
- O(
- 'tabs-tab-pad',
- `
- border-bottom: 1px solid var(--n-tab-border-color);
- `
- )
- ])
- ]),
- U('left', [
- U('card-type', [
- O(
- 'tabs-tab',
- `
- border-top-left-radius: var(--n-tab-border-radius);
- border-bottom-left-radius: var(--n-tab-border-radius);
- `,
- [
- U(
- 'active',
- `
- border-right: 1px solid #0000;
- `
- )
- ]
- ),
- O(
- 'tabs-tab-pad',
- `
- border-right: 1px solid var(--n-tab-border-color);
- `
- )
- ])
- ]),
- U('right', [
- U('card-type', [
- O(
- 'tabs-tab',
- `
- border-top-right-radius: var(--n-tab-border-radius);
- border-bottom-right-radius: var(--n-tab-border-radius);
- `,
- [
- U(
- 'active',
- `
- border-left: 1px solid #0000;
- `
- )
- ]
- ),
- O(
- 'tabs-tab-pad',
- `
- border-left: 1px solid var(--n-tab-border-color);
- `
- )
- ])
- ]),
- U('bottom', [
- U('card-type', [
- O(
- 'tabs-tab',
- `
- border-bottom-left-radius: var(--n-tab-border-radius);
- border-bottom-right-radius: var(--n-tab-border-radius);
- `,
- [
- U(
- 'active',
- `
- border-top: 1px solid #0000;
- `
- )
- ]
- ),
- O(
- 'tabs-tab-pad',
- `
- border-top: 1px solid var(--n-tab-border-color);
- `
- )
- ])
- ])
- ])
- ]
- ),
- mte = Object.assign(Object.assign({}, Ke.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],
- paneWrapperClass: String,
- paneWrapperStyle: [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]
- }),
- bte = Re({
- name: 'Tabs',
- props: mte,
- setup(e, { slots: t }) {
- var n, r, o, i;
- const { mergedClsPrefixRef: a, inlineThemeDisabled: s } = yt(e),
- c = Ke('Tabs', '-tabs', gte, fJ, e, a),
- d = Z(null),
- f = Z(null),
- v = Z(null),
- p = Z(null),
- m = Z(null),
- g = Z(!0),
- w = Z(!0),
- x = xs(e, ['labelSize', 'size']),
- y = xs(e, ['activeName', 'value']),
- C = Z(
- (r = (n = y.value) !== null && n !== void 0 ? n : e.defaultValue) !==
- null && r !== void 0
- ? r
- : t.default
- ? (i =
- (o = hi(t.default())[0]) === null || o === void 0
- ? void 0
- : o.props) === null || i === void 0
- ? void 0
- : i.name
- : null
- ),
- R = An(y, C),
- S = { id: 0 },
- _ = I(() => {
- if (!(!e.justifyContent || e.type === 'card'))
- return { display: 'flex', justifyContent: e.justifyContent };
- });
- $t(R, () => {
- (S.id = 0), z(), k();
- });
- function P() {
- var oe;
- const { value: H } = R;
- return H === null
- ? null
- : (oe = d.value) === null || oe === void 0
- ? void 0
- : oe.querySelector(`[data-name="${H}"]`);
- }
- function T(oe) {
- if (e.type === 'card') return;
- const { value: H } = f;
- if (H && oe) {
- const ae = `${a.value}-tabs-bar--disabled`,
- { barWidth: ge, placement: Ce } = e;
- if (
- (oe.dataset.disabled === 'true'
- ? H.classList.add(ae)
- : H.classList.remove(ae),
- ['top', 'bottom'].includes(Ce))
- ) {
- if (
- (A(['top', 'maxHeight', 'height']),
- typeof ge == 'number' && oe.offsetWidth >= ge)
- ) {
- const se = Math.floor((oe.offsetWidth - ge) / 2) + oe.offsetLeft;
- (H.style.left = `${se}px`), (H.style.maxWidth = `${ge}px`);
- } else
- (H.style.left = `${oe.offsetLeft}px`),
- (H.style.maxWidth = `${oe.offsetWidth}px`);
- (H.style.width = '8192px'), H.offsetWidth;
- } else {
- if (
- (A(['left', 'maxWidth', 'width']),
- typeof ge == 'number' && oe.offsetHeight >= ge)
- ) {
- const se = Math.floor((oe.offsetHeight - ge) / 2) + oe.offsetTop;
- (H.style.top = `${se}px`), (H.style.maxHeight = `${ge}px`);
- } else
- (H.style.top = `${oe.offsetTop}px`),
- (H.style.maxHeight = `${oe.offsetHeight}px`);
- (H.style.height = '8192px'), H.offsetHeight;
- }
- }
- }
- function A(oe) {
- const { value: H } = f;
- if (H) for (const ae of oe) H.style[ae] = '';
- }
- function z() {
- if (e.type === 'card') return;
- const oe = P();
- oe && T(oe);
- }
- function k(oe) {
- var H;
- const ae = (H = m.value) === null || H === void 0 ? void 0 : H.$el;
- if (!ae) return;
- const ge = P();
- if (!ge) return;
- const { scrollLeft: Ce, offsetWidth: se } = ae,
- { offsetLeft: Se, offsetWidth: Ne } = ge;
- Ce > Se
- ? ae.scrollTo({ top: 0, left: Se, behavior: 'smooth' })
- : Se + Ne > Ce + se &&
- ae.scrollTo({ top: 0, left: Se + Ne - se, behavior: 'smooth' });
- }
- const M = Z(null);
- let E = 0,
- D = null;
- function L(oe) {
- const H = M.value;
- if (H) {
- E = oe.getBoundingClientRect().height;
- const ae = `${E}px`,
- ge = () => {
- (H.style.height = ae), (H.style.maxHeight = ae);
- };
- D ? (ge(), D(), (D = null)) : (D = ge);
- }
- }
- function j(oe) {
- const H = M.value;
- if (H) {
- const ae = oe.getBoundingClientRect().height,
- ge = () => {
- document.body.offsetHeight,
- (H.style.maxHeight = `${ae}px`),
- (H.style.height = `${Math.max(E, ae)}px`);
- };
- D ? (D(), (D = null), ge()) : (D = ge);
- }
- }
- function B() {
- const oe = M.value;
- oe && ((oe.style.maxHeight = ''), (oe.style.height = ''));
- }
- const q = { value: [] },
- G = Z('next');
- function ne(oe) {
- const H = R.value;
- let ae = 'next';
- for (const ge of q.value) {
- if (ge === H) break;
- if (ge === oe) {
- ae = 'prev';
- break;
- }
- }
- (G.value = ae), X(oe);
- }
- function X(oe) {
- const {
- onActiveNameChange: H,
- onUpdateValue: ae,
- 'onUpdate:value': ge
- } = e;
- H && ze(H, oe), ae && ze(ae, oe), ge && ze(ge, oe), (C.value = oe);
- }
- function J(oe) {
- const { onClose: H } = e;
- H && ze(H, oe);
- }
- function re() {
- const { value: oe } = f;
- if (!oe) return;
- const H = 'transition-disabled';
- oe.classList.add(H), z(), oe.classList.remove(H);
- }
- let ce = 0;
- function pe(oe) {
- var H;
- if (
- (oe.contentRect.width === 0 && oe.contentRect.height === 0) ||
- ce === oe.contentRect.width
- )
- return;
- ce = oe.contentRect.width;
- const { type: ae } = e;
- (ae === 'line' || ae === 'bar') && re(),
- ae !== 'segment' &&
- ue((H = m.value) === null || H === void 0 ? void 0 : H.$el);
- }
- const Fe = Eg(pe, 64);
- $t([() => e.justifyContent, () => e.size], () => {
- mn(() => {
- const { type: oe } = e;
- (oe === 'line' || oe === 'bar') && re();
- });
- });
- const Ie = Z(!1);
- function le(oe) {
- var H;
- const {
- target: ae,
- contentRect: { width: ge }
- } = oe,
- Ce = ae.parentElement.offsetWidth;
- if (!Ie.value) Ce < ge && (Ie.value = !0);
- else {
- const { value: se } = p;
- if (!se) return;
- Ce - ge > se.$el.offsetWidth && (Ie.value = !1);
- }
- ue((H = m.value) === null || H === void 0 ? void 0 : H.$el);
- }
- const me = Eg(le, 64);
- function he() {
- const { onAdd: oe } = e;
- oe && oe(),
- mn(() => {
- const H = P(),
- { value: ae } = m;
- !H ||
- !ae ||
- ae.scrollTo({ left: H.offsetLeft, top: 0, behavior: 'smooth' });
- });
- }
- function ue(oe) {
- if (!oe) return;
- const { placement: H } = e;
- if (H === 'top' || H === 'bottom') {
- const { scrollLeft: ae, scrollWidth: ge, offsetWidth: Ce } = oe;
- (g.value = ae <= 0), (w.value = ae + Ce >= ge);
- } else {
- const { scrollTop: ae, scrollHeight: ge, offsetHeight: Ce } = oe;
- (g.value = ae <= 0), (w.value = ae + Ce >= ge);
- }
- }
- const Ae = Eg(oe => {
- ue(oe.target);
- }, 64);
- Rt(Qy, {
- triggerRef: Ee(e, 'trigger'),
- tabStyleRef: Ee(e, 'tabStyle'),
- paneClassRef: Ee(e, 'paneClass'),
- paneStyleRef: Ee(e, 'paneStyle'),
- mergedClsPrefixRef: a,
- typeRef: Ee(e, 'type'),
- closableRef: Ee(e, 'closable'),
- valueRef: R,
- tabChangeIdRef: S,
- onBeforeLeaveRef: Ee(e, 'onBeforeLeave'),
- activateTab: ne,
- handleClose: J,
- handleAdd: he
- }),
- jR(() => {
- z(), k();
- }),
- Bn(() => {
- const { value: oe } = v;
- if (!oe) return;
- const { value: H } = a,
- ae = `${H}-tabs-nav-scroll-wrapper--shadow-start`,
- ge = `${H}-tabs-nav-scroll-wrapper--shadow-end`;
- g.value ? oe.classList.remove(ae) : oe.classList.add(ae),
- w.value ? oe.classList.remove(ge) : oe.classList.add(ge);
- });
- const W = Z(null);
- $t(R, () => {
- if (e.type === 'segment') {
- const oe = W.value;
- oe &&
- mn(() => {
- oe.classList.add('transition-disabled'),
- oe.offsetWidth,
- oe.classList.remove('transition-disabled');
- });
- }
- });
- const Q = {
- syncBarPosition: () => {
- z();
- }
- },
- ee = I(() => {
- const { value: oe } = x,
- { type: H } = e,
- ae = { card: 'Card', bar: 'Bar', line: 'Line', segment: 'Segment' }[
- H
- ],
- ge = `${oe}${ae}`,
- {
- self: {
- barColor: Ce,
- closeIconColor: se,
- closeIconColorHover: Se,
- closeIconColorPressed: Ne,
- tabColor: Ge,
- tabBorderColor: it,
- paneTextColor: dt,
- tabFontWeight: xt,
- tabBorderRadius: Me,
- tabFontWeightActive: ut,
- colorSegment: wt,
- fontWeightStrong: Lt,
- tabColorSegment: ot,
- closeSize: ct,
- closeIconSize: Xe,
- closeColorHover: Qe,
- closeColorPressed: ie,
- closeBorderRadius: $e,
- [Oe('panePadding', oe)]: Ue,
- [Oe('tabPadding', ge)]: lt,
- [Oe('tabPaddingVertical', ge)]: st,
- [Oe('tabGap', ge)]: be,
- [Oe('tabGap', `${ge}Vertical`)]: He,
- [Oe('tabTextColor', H)]: tt,
- [Oe('tabTextColorActive', H)]: pt,
- [Oe('tabTextColorHover', H)]: _e,
- [Oe('tabTextColorDisabled', H)]: Ve,
- [Oe('tabFontSize', oe)]: nt
- },
- common: { cubicBezierEaseInOut: Ot }
- } = c.value;
- return {
- '--n-bezier': Ot,
- '--n-color-segment': wt,
- '--n-bar-color': Ce,
- '--n-tab-font-size': nt,
- '--n-tab-text-color': tt,
- '--n-tab-text-color-active': pt,
- '--n-tab-text-color-disabled': Ve,
- '--n-tab-text-color-hover': _e,
- '--n-pane-text-color': dt,
- '--n-tab-border-color': it,
- '--n-tab-border-radius': Me,
- '--n-close-size': ct,
- '--n-close-icon-size': Xe,
- '--n-close-color-hover': Qe,
- '--n-close-color-pressed': ie,
- '--n-close-border-radius': $e,
- '--n-close-icon-color': se,
- '--n-close-icon-color-hover': Se,
- '--n-close-icon-color-pressed': Ne,
- '--n-tab-color': Ge,
- '--n-tab-font-weight': xt,
- '--n-tab-font-weight-active': ut,
- '--n-tab-padding': lt,
- '--n-tab-padding-vertical': st,
- '--n-tab-gap': be,
- '--n-tab-gap-vertical': He,
- '--n-pane-padding-left': Go(Ue, 'left'),
- '--n-pane-padding-right': Go(Ue, 'right'),
- '--n-pane-padding-top': Go(Ue, 'top'),
- '--n-pane-padding-bottom': Go(Ue, 'bottom'),
- '--n-font-weight-strong': Lt,
- '--n-tab-color-segment': ot
- };
- }),
- ve = s
- ? Mt(
- 'tabs',
- I(() => `${x.value[0]}${e.type[0]}`),
- ee,
- e
- )
- : void 0;
- return Object.assign(
- {
- mergedClsPrefix: a,
- mergedValue: R,
- renderedNames: new Set(),
- tabsRailElRef: W,
- tabsPaneWrapperRef: M,
- tabsElRef: d,
- barElRef: f,
- addTabInstRef: p,
- xScrollInstRef: m,
- scrollWrapperElRef: v,
- addTabFixed: Ie,
- tabWrapperStyle: _,
- handleNavResize: Fe,
- mergedSize: x,
- handleScroll: Ae,
- handleTabsResize: me,
- cssVars: s ? void 0 : ee,
- themeClass: ve == null ? void 0 : ve.themeClass,
- animationDirection: G,
- renderNameListRef: q,
- onAnimationBeforeLeave: L,
- onAnimationEnter: j,
- onAnimationAfterEnter: B,
- onRender: ve == null ? void 0 : ve.onRender
- },
- Q
- );
- },
- render() {
- const {
- mergedClsPrefix: e,
- type: t,
- placement: n,
- addTabFixed: r,
- addable: o,
- mergedSize: i,
- renderNameListRef: a,
- onRender: s,
- paneWrapperClass: c,
- paneWrapperStyle: d,
- $slots: { default: f, prefix: v, suffix: p }
- } = this;
- s == null || s();
- const m = f ? hi(f()).filter(_ => _.type.__TAB_PANE__ === !0) : [],
- g = f ? hi(f()).filter(_ => _.type.__TAB__ === !0) : [],
- w = !g.length,
- x = t === 'card',
- y = t === 'segment',
- C = !x && !y && this.justifyContent;
- a.value = [];
- const R = () => {
- const _ = h(
- 'div',
- { style: this.tabWrapperStyle, class: [`${e}-tabs-wrapper`] },
- C
- ? null
- : h('div', {
- class: `${e}-tabs-scroll-padding`,
- style: { width: `${this.tabsPadding}px` }
- }),
- w
- ? m.map(
- (P, T) => (
- a.value.push(P.props.name),
- lm(
- h(
- o0,
- Object.assign({}, P.props, {
- internalCreatedByPane: !0,
- internalLeftPadded:
- T !== 0 &&
- (!C ||
- C === 'center' ||
- C === 'start' ||
- C === 'end')
- }),
- P.children ? { default: P.children.tab } : void 0
- )
- )
- )
- )
- : g.map(
- (P, T) => (
- a.value.push(P.props.name), lm(T !== 0 && !C ? p2(P) : P)
- )
- ),
- !r && o && x ? v2(o, (w ? m.length : g.length) !== 0) : null,
- C
- ? null
- : h('div', {
- class: `${e}-tabs-scroll-padding`,
- style: { width: `${this.tabsPadding}px` }
- })
- );
- return h(
- 'div',
- { ref: 'tabsElRef', class: `${e}-tabs-nav-scroll-content` },
- x && o
- ? h(Ki, { onResize: this.handleTabsResize }, { default: () => _ })
- : _,
- x ? h('div', { class: `${e}-tabs-pad` }) : null,
- x ? null : h('div', { ref: 'barElRef', class: `${e}-tabs-bar` })
- );
- },
- S = y ? 'top' : n;
- return h(
- 'div',
- {
- class: [
- `${e}-tabs`,
- this.themeClass,
- `${e}-tabs--${t}-type`,
- `${e}-tabs--${i}-size`,
- C && `${e}-tabs--flex`,
- `${e}-tabs--${S}`
- ],
- style: this.cssVars
- },
- h(
- 'div',
- {
- class: [
- `${e}-tabs-nav--${t}-type`,
- `${e}-tabs-nav--${S}`,
- `${e}-tabs-nav`
- ]
- },
- cn(v, _ => _ && h('div', { class: `${e}-tabs-nav__prefix` }, _)),
- y
- ? h(
- 'div',
- { class: `${e}-tabs-rail`, ref: 'tabsRailElRef' },
- w
- ? m.map(
- (_, P) => (
- a.value.push(_.props.name),
- h(
- o0,
- Object.assign({}, _.props, {
- internalCreatedByPane: !0,
- internalLeftPadded: P !== 0
- }),
- _.children ? { default: _.children.tab } : void 0
- )
- )
- )
- : g.map(
- (_, P) => (
- a.value.push(_.props.name), P === 0 ? _ : p2(_)
- )
- )
- )
- : h(
- Ki,
- { onResize: this.handleNavResize },
- {
- default: () =>
- h(
- 'div',
- {
- class: `${e}-tabs-nav-scroll-wrapper`,
- ref: 'scrollWrapperElRef'
- },
- ['top', 'bottom'].includes(S)
- ? h(
- xF,
- {
- ref: 'xScrollInstRef',
- onScroll: this.handleScroll
- },
- { default: R }
- )
- : h(
- 'div',
- {
- class: `${e}-tabs-nav-y-scroll`,
- onScroll: this.handleScroll
- },
- R()
- )
- )
- }
- ),
- r && o && x ? v2(o, !0) : null,
- cn(p, _ => _ && h('div', { class: `${e}-tabs-nav__suffix` }, _))
- ),
- w &&
- (this.animated && (S === 'top' || S === 'bottom')
- ? h(
- 'div',
- {
- ref: 'tabsPaneWrapperRef',
- style: d,
- class: [`${e}-tabs-pane-wrapper`, c]
- },
- h2(
- m,
- this.mergedValue,
- this.renderedNames,
- this.onAnimationBeforeLeave,
- this.onAnimationEnter,
- this.onAnimationAfterEnter,
- this.animationDirection
- )
- )
- : h2(m, this.mergedValue, this.renderedNames))
- );
- }
- });
- function h2(e, t, n, r, o, i, a) {
- const s = [];
- return (
- e.forEach(c => {
- const { name: d, displayDirective: f, 'display-directive': v } = c.props,
- p = g => f === g || v === g,
- m = t === d;
- if (
- (c.key !== void 0 && (c.key = d),
- m || p('show') || (p('show:lazy') && n.has(d)))
- ) {
- n.has(d) || n.add(d);
- const g = !p('if');
- s.push(g ? Er(c, [[vi, m]]) : c);
- }
- }),
- a
- ? h(
- K0,
- {
- name: `${a}-transition`,
- onBeforeLeave: r,
- onEnter: o,
- onAfterEnter: i
- },
- { default: () => s }
- )
- : s
- );
- }
- function v2(e, t) {
- return h(o0, {
- ref: 'addTabInstRef',
- key: '__addable',
- name: '__addable',
- internalCreatedByPane: !0,
- internalAddable: !0,
- internalLeftPadded: t,
- disabled: typeof e == 'object' && e.disabled
- });
- }
- function p2(e) {
- const t = Mo(e);
- return (
- t.props
- ? (t.props.internalLeftPadded = !0)
- : (t.props = { internalLeftPadded: !0 }),
- t
- );
- }
- function lm(e) {
- return (
- Array.isArray(e.dynamicProps)
- ? e.dynamicProps.includes('internalLeftPadded') ||
- e.dynamicProps.push('internalLeftPadded')
- : (e.dynamicProps = ['internalLeftPadded']),
- e
- );
- }
- const yte = O(
- 'thing',
- `
- display: flex;
- transition: color .3s var(--n-bezier);
- font-size: var(--n-font-size);
- color: var(--n-text-color);
- `,
- [
- O(
- 'thing-avatar',
- `
- margin-right: 12px;
- margin-top: 2px;
- `
- ),
- O(
- 'thing-avatar-header-wrapper',
- `
- display: flex;
- flex-wrap: nowrap;
- `,
- [
- O(
- 'thing-header-wrapper',
- `
- flex: 1;
- `
- )
- ]
- ),
- O(
- 'thing-main',
- `
- flex-grow: 1;
- `,
- [
- O(
- 'thing-header',
- `
- display: flex;
- margin-bottom: 4px;
- justify-content: space-between;
- align-items: center;
- `,
- [
- V(
- 'title',
- `
- font-size: 16px;
- font-weight: var(--n-title-font-weight);
- transition: color .3s var(--n-bezier);
- color: var(--n-title-text-color);
- `
- )
- ]
- ),
- V('description', [
- F(
- '&:not(:last-child)',
- `
- margin-bottom: 4px;
- `
- )
- ]),
- V('content', [
- F(
- '&:not(:first-child)',
- `
- margin-top: 12px;
- `
- )
- ]),
- V('footer', [
- F(
- '&:not(:first-child)',
- `
- margin-top: 12px;
- `
- )
- ]),
- V('action', [
- F(
- '&:not(:first-child)',
- `
- margin-top: 12px;
- `
- )
- ])
- ]
- )
- ]
- ),
- xte = Object.assign(Object.assign({}, Ke.props), {
- title: String,
- titleExtra: String,
- description: String,
- descriptionStyle: [String, Object],
- content: String,
- contentStyle: [String, Object],
- contentIndented: Boolean
- }),
- wte = Re({
- name: 'Thing',
- props: xte,
- setup(e, { slots: t }) {
- const {
- mergedClsPrefixRef: n,
- inlineThemeDisabled: r,
- mergedRtlRef: o
- } = yt(e),
- i = Ke('Thing', '-thing', yte, pJ, e, n),
- a = dr('Thing', o, n),
- s = I(() => {
- const {
- self: {
- titleTextColor: d,
- textColor: f,
- titleFontWeight: v,
- fontSize: p
- },
- common: { cubicBezierEaseInOut: m }
- } = i.value;
- return {
- '--n-bezier': m,
- '--n-font-size': p,
- '--n-text-color': f,
- '--n-title-font-weight': v,
- '--n-title-text-color': d
- };
- }),
- c = r ? Mt('thing', void 0, s, e) : void 0;
- return () => {
- var d;
- const { value: f } = n,
- v = a ? a.value : !1;
- return (
- (d = c == null ? void 0 : c.onRender) === null ||
- d === void 0 ||
- d.call(c),
- h(
- 'div',
- {
- class: [
- `${f}-thing`,
- c == null ? void 0 : c.themeClass,
- v && `${f}-thing--rtl`
- ],
- style: r ? void 0 : s.value
- },
- t.avatar && e.contentIndented
- ? h('div', { class: `${f}-thing-avatar` }, t.avatar())
- : null,
- h(
- 'div',
- { class: `${f}-thing-main` },
- !e.contentIndented &&
- (t.header ||
- e.title ||
- t['header-extra'] ||
- e.titleExtra ||
- t.avatar)
- ? h(
- 'div',
- { class: `${f}-thing-avatar-header-wrapper` },
- t.avatar
- ? h('div', { class: `${f}-thing-avatar` }, t.avatar())
- : null,
- t.header || e.title || t['header-extra'] || e.titleExtra
- ? h(
- 'div',
- { class: `${f}-thing-header-wrapper` },
- h(
- 'div',
- { class: `${f}-thing-header` },
- t.header || e.title
- ? h(
- 'div',
- { class: `${f}-thing-header__title` },
- t.header ? t.header() : e.title
- )
- : null,
- t['header-extra'] || e.titleExtra
- ? h(
- 'div',
- { class: `${f}-thing-header__extra` },
- t['header-extra']
- ? t['header-extra']()
- : e.titleExtra
- )
- : null
- ),
- t.description || e.description
- ? h(
- 'div',
- {
- class: `${f}-thing-main__description`,
- style: e.descriptionStyle
- },
- t.description ? t.description() : e.description
- )
- : null
- )
- : null
- )
- : h(
- on,
- null,
- t.header || e.title || t['header-extra'] || e.titleExtra
- ? h(
- 'div',
- { class: `${f}-thing-header` },
- t.header || e.title
- ? h(
- 'div',
- { class: `${f}-thing-header__title` },
- t.header ? t.header() : e.title
- )
- : null,
- t['header-extra'] || e.titleExtra
- ? h(
- 'div',
- { class: `${f}-thing-header__extra` },
- t['header-extra']
- ? t['header-extra']()
- : e.titleExtra
- )
- : null
- )
- : null,
- t.description || e.description
- ? h(
- 'div',
- {
- class: `${f}-thing-main__description`,
- style: e.descriptionStyle
- },
- t.description ? t.description() : e.description
- )
- : null
- ),
- t.default || e.content
- ? h(
- 'div',
- {
- class: `${f}-thing-main__content`,
- style: e.contentStyle
- },
- t.default ? t.default() : e.content
- )
- : null,
- t.footer
- ? h('div', { class: `${f}-thing-main__footer` }, t.footer())
- : null,
- t.action
- ? h('div', { class: `${f}-thing-main__action` }, t.action())
- : null
- )
- )
- );
- };
- }
- }),
- uT = 'n-tree-select',
- Xu = 'n-tree',
- Cte = Re({
- name: 'NTreeSwitcher',
- props: {
- clsPrefix: { type: String, required: !0 },
- expanded: Boolean,
- selected: Boolean,
- hide: Boolean,
- loading: Boolean,
- onClick: Function
- },
- setup(e) {
- const { renderSwitcherIconRef: t } = Ze(Xu, null);
- return () => {
- const { clsPrefix: n } = e;
- return h(
- 'span',
- {
- 'data-switcher': !0,
- class: [
- `${n}-tree-node-switcher`,
- e.expanded && `${n}-tree-node-switcher--expanded`,
- e.hide && `${n}-tree-node-switcher--hide`
- ],
- onClick: e.onClick
- },
- h(
- 'div',
- { class: `${n}-tree-node-switcher__icon` },
- h(Zi, null, {
- default: () => {
- if (e.loading)
- return h($a, {
- clsPrefix: n,
- key: 'loading',
- radius: 85,
- strokeWidth: 20
- });
- const { value: r } = t;
- return r
- ? r({ expanded: e.expanded, selected: e.selected })
- : h(
- Et,
- { clsPrefix: n, key: 'switcher' },
- { default: () => h(NU, null) }
- );
- }
- })
- )
- );
- };
- }
- }),
- Ste = Re({
- name: 'NTreeNodeCheckbox',
- props: {
- clsPrefix: { type: String, required: !0 },
- right: Boolean,
- focusable: Boolean,
- disabled: Boolean,
- checked: Boolean,
- indeterminate: Boolean,
- onCheck: Function
- },
- setup(e) {
- const t = Ze(Xu);
- function n(o) {
- const { onCheck: i } = e;
- i && i(o);
- }
- function r(o) {
- e.indeterminate ? n(!1) : n(o);
- }
- return { handleUpdateValue: r, mergedTheme: t.mergedThemeRef };
- },
- render() {
- const {
- clsPrefix: e,
- mergedTheme: t,
- checked: n,
- indeterminate: r,
- disabled: o,
- focusable: i,
- handleUpdateValue: a
- } = this;
- return h(
- 'span',
- {
- class: [
- `${e}-tree-node-checkbox`,
- this.right && `${e}-tree-node-checkbox--right`
- ],
- 'data-checkbox': !0
- },
- h(Vu, {
- focusable: i,
- disabled: o,
- theme: t.peers.Checkbox,
- themeOverrides: t.peerOverrides.Checkbox,
- checked: n,
- indeterminate: r,
- onUpdateChecked: a
- })
- );
- }
- }),
- _te = Re({
- 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: n,
- renderSuffixRef: r,
- labelFieldRef: o
- } = Ze(Xu),
- i = Z(null);
- function a(c) {
- const { onClick: d } = e;
- d && d(c);
- }
- function s(c) {
- a(c);
- }
- return {
- selfRef: i,
- renderLabel: t,
- renderPrefix: n,
- renderSuffix: r,
- labelField: o,
- handleClick: s
- };
- },
- render() {
- const {
- clsPrefix: e,
- labelField: t,
- nodeProps: n,
- checked: r = !1,
- selected: o = !1,
- renderLabel: i,
- renderPrefix: a,
- renderSuffix: s,
- handleClick: c,
- onDragstart: d,
- tmNode: {
- rawNode: f,
- rawNode: { prefix: v, suffix: p, [t]: m }
- }
- } = this;
- return h(
- 'span',
- Object.assign({}, n, {
- ref: 'selfRef',
- class: [`${e}-tree-node-content`, n == null ? void 0 : n.class],
- onClick: c,
- draggable: d === void 0 ? void 0 : !0,
- onDragstart: d
- }),
- a || v
- ? h(
- 'div',
- { class: `${e}-tree-node-content__prefix` },
- a ? a({ option: f, selected: o, checked: r }) : _n(v)
- )
- : null,
- h(
- 'div',
- { class: `${e}-tree-node-content__text` },
- i ? i({ option: f, selected: o, checked: r }) : _n(m)
- ),
- s || p
- ? h(
- 'div',
- { class: `${e}-tree-node-content__suffix` },
- s ? s({ option: f, selected: o, checked: r }) : _n(p)
- )
- : null
- );
- }
- });
- function g2({ position: e, offsetLevel: t, indent: n, el: r }) {
- 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 i = e === 'before' ? 'top' : 'bottom';
- (o[i] = 0),
- (o.left = `${r.offsetLeft + 6 - t * n}px`),
- (o.height = '2px'),
- (o.backgroundColor = 'var(--n-drop-mark-color)'),
- (o.transformOrigin = i),
- (o.borderRadius = '1px'),
- (o.transform = e === 'before' ? 'translateY(-4px)' : 'translateY(4px)');
- }
- return h('div', { style: o });
- }
- function Rte({ dropPosition: e, node: t }) {
- return t.isLeaf === !1 || t.children ? !0 : e !== 'inside';
- }
- function Pte(e) {
- return I(() => (e.leafOnly ? 'child' : e.checkStrategy));
- }
- function Qa(e, t) {
- return !!e.rawNode[t];
- }
- function fT(e, t, n, r) {
- e == null ||
- e.forEach(o => {
- n(o), fT(o[t], t, n, r), r(o);
- });
- }
- function kte(e, t, n, r, o) {
- const i = new Set(),
- a = new Set(),
- s = [];
- return (
- fT(
- e,
- r,
- c => {
- if ((s.push(c), o(t, c))) {
- a.add(c[n]);
- for (let d = s.length - 2; d >= 0; --d)
- if (!i.has(s[d][n])) i.add(s[d][n]);
- else return;
- }
- },
- () => {
- s.pop();
- }
- ),
- { expandedKeys: Array.from(i), highlightKeySet: a }
- );
- }
- if (Fo && Image) {
- const e = new Image();
- e.src =
- 'data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==';
- }
- function Tte(e, t, n, r, o) {
- const i = new Set(),
- a = new Set(),
- s = new Set(),
- c = [],
- d = [],
- f = [];
- function v(m) {
- m.forEach(g => {
- if ((f.push(g), t(n, g))) {
- i.add(g[r]), s.add(g[r]);
- for (let x = f.length - 2; x >= 0; --x) {
- const y = f[x][r];
- if (!a.has(y)) a.add(y), i.has(y) && i.delete(y);
- else break;
- }
- }
- const w = g[o];
- w && v(w), f.pop();
- });
- }
- v(e);
- function p(m, g) {
- m.forEach(w => {
- const x = w[r],
- y = i.has(x),
- C = a.has(x);
- if (!y && !C) return;
- const R = w[o];
- if (R)
- if (y) g.push(w);
- else {
- c.push(x);
- const S = Object.assign(Object.assign({}, w), { [o]: [] });
- g.push(S), p(R, S[o]);
- }
- else g.push(w);
- });
- }
- return p(e, d), { filteredTree: d, highlightKeySet: s, expandedKeys: c };
- }
- const $te = Re({
- name: 'TreeNode',
- props: {
- clsPrefix: { type: String, required: !0 },
- tmNode: { type: Object, required: !0 }
- },
- setup(e) {
- const t = Ze(Xu),
- {
- droppingNodeParentRef: n,
- droppingMouseNodeRef: r,
- draggingNodeRef: o,
- droppingPositionRef: i,
- droppingOffsetLevelRef: a,
- nodePropsRef: s,
- indentRef: c,
- blockLineRef: d,
- checkboxPlacementRef: f,
- checkOnClickRef: v,
- disabledFieldRef: p
- } = t,
- m = kt(() => !!e.tmNode.rawNode.checkboxDisabled),
- g = kt(() => Qa(e.tmNode, p.value)),
- w = kt(() => t.disabledRef.value || g.value),
- x = I(() => {
- const { value: G } = s;
- if (G) return G({ option: e.tmNode.rawNode });
- }),
- y = Z(null),
- C = { value: null };
- Hn(() => {
- C.value = y.value.$el;
- });
- function R() {
- const { tmNode: G } = e;
- if (!G.isLeaf && !G.shallowLoaded) {
- if (!t.loadingKeysRef.value.has(G.key))
- t.loadingKeysRef.value.add(G.key);
- else return;
- const {
- onLoadRef: { value: ne }
- } = t;
- ne &&
- ne(G.rawNode)
- .then(X => {
- X !== !1 && t.handleSwitcherClick(G);
- })
- .finally(() => {
- t.loadingKeysRef.value.delete(G.key);
- });
- } else t.handleSwitcherClick(G);
- }
- const S = kt(
- () =>
- !g.value &&
- t.selectableRef.value &&
- (t.internalTreeSelect
- ? t.mergedCheckStrategyRef.value !== 'child' ||
- (t.multipleRef.value && t.cascadeRef.value) ||
- e.tmNode.isLeaf
- : !0)
- ),
- _ = kt(
- () =>
- t.checkableRef.value &&
- (t.cascadeRef.value ||
- t.mergedCheckStrategyRef.value !== 'child' ||
- e.tmNode.isLeaf)
- ),
- P = kt(() => t.displayedCheckedKeysRef.value.includes(e.tmNode.key)),
- T = kt(() => {
- const { value: G } = _;
- if (!G) return !1;
- const { value: ne } = v;
- return typeof ne == 'boolean' ? ne : ne(e.tmNode.rawNode);
- });
- function A(G) {
- const { value: ne } = t.expandOnClickRef,
- { value: X } = S,
- { value: J } = T;
- if ((!X && !ne && !J) || Io(G, 'checkbox') || Io(G, 'switcher')) return;
- const { tmNode: re } = e;
- X && t.handleSelect(re), ne && !re.isLeaf && R(), J && M(!P.value);
- }
- function z(G) {
- var ne, X;
- d.value ||
- (w.value || A(G),
- (X =
- (ne = x.value) === null || ne === void 0 ? void 0 : ne.onClick) ===
- null ||
- X === void 0 ||
- X.call(ne, G));
- }
- function k(G) {
- var ne, X;
- d.value &&
- (w.value || A(G),
- (X =
- (ne = x.value) === null || ne === void 0 ? void 0 : ne.onClick) ===
- null ||
- X === void 0 ||
- X.call(ne, G));
- }
- function M(G) {
- t.handleCheck(e.tmNode, G);
- }
- function E(G) {
- t.handleDragStart({ event: G, node: e.tmNode });
- }
- function D(G) {
- G.currentTarget === G.target &&
- t.handleDragEnter({ event: G, node: e.tmNode });
- }
- function L(G) {
- G.preventDefault(), t.handleDragOver({ event: G, node: e.tmNode });
- }
- function j(G) {
- t.handleDragEnd({ event: G, node: e.tmNode });
- }
- function B(G) {
- G.currentTarget === G.target &&
- t.handleDragLeave({ event: G, node: e.tmNode });
- }
- function q(G) {
- G.preventDefault(),
- i.value !== null &&
- t.handleDrop({ event: G, node: e.tmNode, dropPosition: i.value });
- }
- return {
- showDropMark: kt(() => {
- const { value: G } = o;
- if (!G) return;
- const { value: ne } = i;
- if (!ne) return;
- const { value: X } = r;
- if (!X) return;
- const { tmNode: J } = e;
- return J.key === X.key;
- }),
- showDropMarkAsParent: kt(() => {
- const { value: G } = n;
- if (!G) return !1;
- const { tmNode: ne } = e,
- { value: X } = i;
- return X === 'before' || X === 'after' ? G.key === ne.key : !1;
- }),
- pending: kt(() => t.pendingNodeKeyRef.value === e.tmNode.key),
- loading: kt(() => t.loadingKeysRef.value.has(e.tmNode.key)),
- highlight: kt(() => {
- var G;
- return (G = t.highlightKeySetRef.value) === null || G === void 0
- ? void 0
- : G.has(e.tmNode.key);
- }),
- checked: P,
- indeterminate: kt(() =>
- t.displayedIndeterminateKeysRef.value.includes(e.tmNode.key)
- ),
- selected: kt(() =>
- t.mergedSelectedKeysRef.value.includes(e.tmNode.key)
- ),
- expanded: kt(() =>
- t.mergedExpandedKeysRef.value.includes(e.tmNode.key)
- ),
- disabled: w,
- checkable: _,
- mergedCheckOnClick: T,
- checkboxDisabled: m,
- selectable: S,
- expandOnClick: t.expandOnClickRef,
- internalScrollable: t.internalScrollableRef,
- draggable: t.draggableRef,
- blockLine: d,
- nodeProps: x,
- checkboxFocusable: t.internalCheckboxFocusableRef,
- droppingPosition: i,
- droppingOffsetLevel: a,
- indent: c,
- checkboxPlacement: f,
- contentInstRef: y,
- contentElRef: C,
- handleCheck: M,
- handleDrop: q,
- handleDragStart: E,
- handleDragEnter: D,
- handleDragOver: L,
- handleDragEnd: j,
- handleDragLeave: B,
- handleLineClick: k,
- handleContentClick: z,
- handleSwitcherClick: R
- };
- },
- render() {
- const {
- tmNode: e,
- clsPrefix: t,
- checkable: n,
- expandOnClick: r,
- selectable: o,
- selected: i,
- checked: a,
- highlight: s,
- draggable: c,
- blockLine: d,
- indent: f,
- disabled: v,
- pending: p,
- internalScrollable: m,
- nodeProps: g,
- checkboxPlacement: w
- } = this,
- x =
- c && !v
- ? {
- onDragenter: this.handleDragEnter,
- onDragleave: this.handleDragLeave,
- onDragend: this.handleDragEnd,
- onDrop: this.handleDrop,
- onDragover: this.handleDragOver
- }
- : void 0,
- y = m ? OR(e.key) : void 0,
- C = w === 'right',
- R = n
- ? h(Ste, {
- right: C,
- focusable: this.checkboxFocusable,
- disabled: v || this.checkboxDisabled,
- clsPrefix: t,
- checked: this.checked,
- indeterminate: this.indeterminate,
- onCheck: this.handleCheck
- })
- : null;
- return h(
- 'div',
- Object.assign({ class: `${t}-tree-node-wrapper` }, x),
- h(
- 'div',
- Object.assign({}, d ? g : void 0, {
- class: [
- `${t}-tree-node`,
- {
- [`${t}-tree-node--selected`]: i,
- [`${t}-tree-node--checkable`]: n,
- [`${t}-tree-node--highlight`]: s,
- [`${t}-tree-node--pending`]: p,
- [`${t}-tree-node--disabled`]: v,
- [`${t}-tree-node--selectable`]: o,
- [`${t}-tree-node--clickable`]: o || r || this.mergedCheckOnClick
- },
- g == null ? void 0 : g.class
- ],
- 'data-key': y,
- draggable: c && d,
- onClick: this.handleLineClick,
- onDragstart: c && d && !v ? this.handleDragStart : void 0
- }),
- TR(
- e.level,
- h(
- 'div',
- { class: `${t}-tree-node-indent` },
- h('div', { style: { width: `${f}px` } })
- )
- ),
- h(Cte, {
- clsPrefix: t,
- expanded: this.expanded,
- selected: i,
- loading: this.loading,
- hide: e.isLeaf,
- onClick: this.handleSwitcherClick
- }),
- C ? null : R,
- h(_te, {
- ref: 'contentInstRef',
- clsPrefix: t,
- checked: a,
- selected: i,
- onClick: this.handleContentClick,
- nodeProps: d ? void 0 : g,
- onDragstart: c && !d && !v ? this.handleDragStart : void 0,
- tmNode: e
- }),
- c
- ? this.showDropMark
- ? g2({
- el: this.contentElRef.value,
- position: this.droppingPosition,
- offsetLevel: this.droppingOffsetLevel,
- indent: f
- })
- : this.showDropMarkAsParent
- ? g2({
- el: this.contentElRef.value,
- position: 'inside',
- offsetLevel: this.droppingOffsetLevel,
- indent: f
- })
- : null
- : null,
- C ? R : null
- )
- );
- }
- }),
- hT = $te;
- function Ote({
- props: e,
- fNodesRef: t,
- mergedExpandedKeysRef: n,
- mergedSelectedKeysRef: r,
- handleSelect: o,
- handleSwitcherClick: i
- }) {
- const { value: a } = r,
- s = Ze(uT, null),
- c = s ? s.pendingNodeKeyRef : Z(a.length ? a[a.length - 1] : null);
- function d(f) {
- if (!e.keyboard) return;
- const { value: v } = c;
- if (v === null) {
- if (
- ((f.key === 'ArrowDown' || f.key === 'ArrowUp') && f.preventDefault(),
- ['ArrowDown', 'ArrowUp', 'ArrowLeft', 'ArrowRight'].includes(f.key) &&
- v === null)
- ) {
- const { value: p } = t;
- let m = 0;
- for (; m < p.length; ) {
- if (!p[m].disabled) {
- c.value = p[m].key;
- break;
- }
- m += 1;
- }
- }
- } else {
- const { value: p } = t;
- let m = p.findIndex(g => g.key === v);
- if (!~m) return;
- if (f.key === 'Enter') o(p[m]);
- else if (f.key === 'ArrowDown')
- for (f.preventDefault(), m += 1; m < p.length; ) {
- if (!p[m].disabled) {
- c.value = p[m].key;
- break;
- }
- m += 1;
- }
- else if (f.key === 'ArrowUp')
- for (f.preventDefault(), m -= 1; m >= 0; ) {
- if (!p[m].disabled) {
- c.value = p[m].key;
- break;
- }
- m -= 1;
- }
- else if (f.key === 'ArrowLeft') {
- const g = p[m];
- if (g.isLeaf || !n.value.includes(v)) {
- const w = g.getParent();
- w && (c.value = w.key);
- } else i(g);
- } else if (f.key === 'ArrowRight') {
- const g = p[m];
- if (g.isLeaf) return;
- if (!n.value.includes(v)) i(g);
- else
- for (m += 1; m < p.length; ) {
- if (!p[m].disabled) {
- c.value = p[m].key;
- break;
- }
- m += 1;
- }
- }
- }
- }
- return { pendingNodeKeyRef: c, handleKeydown: d };
- }
- const zte = Re({
- 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 h(
- Cl,
- {
- onAfterEnter: this.onAfterEnter,
- appear: !0,
- reverse: this.mode === 'collapse'
- },
- {
- default: () =>
- h(
- 'div',
- {
- class: [
- `${e}-tree-motion-wrapper`,
- `${e}-tree-motion-wrapper--${this.mode}`
- ],
- style: { height: sr(this.height) }
- },
- this.nodes.map(t => h(hT, { clsPrefix: e, tmNode: t }))
- )
- }
- );
- }
- }),
- Ate = O(
- 'tree',
- `
- font-size: var(--n-font-size);
- outline: none;
- `,
- [
- F(
- 'ul, li',
- `
- margin: 0;
- padding: 0;
- list-style: none;
- `
- ),
- F('>', [O('tree-node', [F('&:first-child', { marginTop: 0 })])]),
- O(
- 'tree-node-indent',
- `
- flex-grow: 0;
- flex-shrink: 0;
- height: 0;
- `
- ),
- O('tree-motion-wrapper', [
- U('expand', [Ss({ duration: '0.2s' })]),
- U('collapse', [Ss({ duration: '0.2s', reverse: !0 })])
- ]),
- O(
- 'tree-node-wrapper',
- `
- box-sizing: border-box;
- padding: 3px 0;
- `
- ),
- O(
- 'tree-node',
- `
- transform: translate3d(0,0,0);
- position: relative;
- display: flex;
- border-radius: var(--n-node-border-radius);
- transition: background-color .3s var(--n-bezier);
- `,
- [
- U('highlight', [
- O('tree-node-content', [
- V('text', {
- borderBottomColor: 'var(--n-node-text-color-disabled)'
- })
- ])
- ]),
- U('disabled', [
- O(
- 'tree-node-content',
- `
- color: var(--n-node-text-color-disabled);
- cursor: not-allowed;
- `
- )
- ]),
- jt('disabled', [
- U('clickable', [
- O(
- 'tree-node-content',
- `
- cursor: pointer;
- `
- )
- ])
- ])
- ]
- ),
- U('block-node', [
- O(
- 'tree-node-content',
- `
- flex: 1;
- min-width: 0;
- `
- )
- ]),
- jt('block-line', [
- O('tree-node', [
- jt('disabled', [
- O('tree-node-content', [
- F('&:hover', { backgroundColor: 'var(--n-node-color-hover)' })
- ]),
- U('selectable', [
- O('tree-node-content', [
- F('&:active', {
- backgroundColor: 'var(--n-node-color-pressed)'
- })
- ])
- ]),
- U('pending', [
- O(
- 'tree-node-content',
- `
- background-color: var(--n-node-color-hover);
- `
- )
- ]),
- U('selected', [
- O('tree-node-content', {
- backgroundColor: 'var(--n-node-color-active)'
- })
- ])
- ])
- ])
- ]),
- U('block-line', [
- O('tree-node', [
- jt('disabled', [
- F('&:hover', { backgroundColor: 'var(--n-node-color-hover)' }),
- U(
- 'pending',
- `
- background-color: var(--n-node-color-hover);
- `
- ),
- U('selectable', [
- jt('selected', [
- F('&:active', {
- backgroundColor: 'var(--n-node-color-pressed)'
- })
- ])
- ]),
- U('selected', { backgroundColor: 'var(--n-node-color-active)' })
- ]),
- U(
- 'disabled',
- `
- cursor: not-allowed;
- `
- )
- ])
- ]),
- O(
- 'tree-node-switcher',
- `
- cursor: pointer;
- display: inline-flex;
- flex-shrink: 0;
- height: 24px;
- width: 24px;
- align-items: center;
- justify-content: center;
- transition: transform .15s var(--n-bezier);
- vertical-align: bottom;
- `,
- [
- V(
- 'icon',
- `
- position: relative;
- height: 14px;
- width: 14px;
- display: flex;
- color: var(--n-arrow-color);
- transition: color .3s var(--n-bezier);
- font-size: 14px;
- `,
- [
- O('icon', [br()]),
- O(
- 'base-loading',
- `
- color: var(--n-loading-color);
- position: absolute;
- left: 0;
- top: 0;
- right: 0;
- bottom: 0;
- `,
- [br()]
- ),
- O('base-icon', [br()])
- ]
- ),
- U('hide', { visibility: 'hidden' }),
- U('expanded', { transform: 'rotate(90deg)' })
- ]
- ),
- O(
- 'tree-node-checkbox',
- `
- display: inline-flex;
- height: 24px;
- width: 16px;
- vertical-align: bottom;
- align-items: center;
- justify-content: center;
- margin-right: 4px;
- `,
- [U('right', 'margin-left: 4px;')]
- ),
- U('checkable', [
- O(
- 'tree-node-content',
- `
- padding: 0 6px;
- `
- )
- ]),
- O(
- 'tree-node-content',
- `
- position: relative;
- display: inline-flex;
- align-items: center;
- min-height: 24px;
- box-sizing: border-box;
- line-height: 1.5;
- vertical-align: bottom;
- padding: 0 6px 0 4px;
- cursor: default;
- border-radius: var(--n-node-border-radius);
- text-decoration-color: #0000;
- text-decoration-line: underline;
- color: var(--n-node-text-color);
- transition:
- color .3s var(--n-bezier),
- text-decoration-color .3s var(--n-bezier),
- background-color .3s var(--n-bezier),
- border-color .3s var(--n-bezier);
- `,
- [
- F('&:last-child', { marginBottom: 0 }),
- V(
- 'prefix',
- `
- display: inline-flex;
- margin-right: 8px;
- `
- ),
- V(
- 'text',
- `
- border-bottom: 1px solid #0000;
- transition: border-color .3s var(--n-bezier);
- flex-grow: 1;
- max-width: 100%;
- `
- ),
- V(
- 'suffix',
- `
- display: inline-flex;
- `
- )
- ]
- ),
- V('empty', 'margin: auto;')
- ]
- );
- var Ete =
- (globalThis && globalThis.__awaiter) ||
- function (e, t, n, r) {
- function o(i) {
- return i instanceof n
- ? i
- : new n(function (a) {
- a(i);
- });
- }
- return new (n || (n = Promise))(function (i, a) {
- function s(f) {
- try {
- d(r.next(f));
- } catch (v) {
- a(v);
- }
- }
- function c(f) {
- try {
- d(r.throw(f));
- } catch (v) {
- a(v);
- }
- }
- function d(f) {
- f.done ? i(f.value) : o(f.value).then(s, c);
- }
- d((r = r.apply(e, t || [])).next());
- });
- };
- const Ph = 30;
- function Mte(e, t, n, r) {
- return {
- getIsGroup() {
- return !1;
- },
- getKey(i) {
- return i[e];
- },
- getChildren: r || (i => i[t]),
- getDisabled(i) {
- return !!(i[n] || i.checkboxDisabled);
- }
- };
- }
- const Ite = {
- 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]
- },
- Dte = Object.assign(
- Object.assign(
- Object.assign(Object.assign({}, Ke.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: Rte },
- 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]
- }),
- Ite
- ),
- {
- 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
- }
- ),
- Fte = Re({
- name: 'Tree',
- props: Dte,
- setup(e) {
- const {
- mergedClsPrefixRef: t,
- inlineThemeDisabled: n,
- mergedRtlRef: r
- } = yt(e),
- o = dr('Tree', r, t),
- i = Ke('Tree', '-tree', Ate, bJ, e, t),
- a = Z(null),
- s = Z(null),
- c = Z(null);
- function d() {
- var xe;
- return (xe = c.value) === null || xe === void 0 ? void 0 : xe.listElRef;
- }
- function f() {
- var xe;
- return (xe = c.value) === null || xe === void 0
- ? void 0
- : xe.itemsElRef;
- }
- const v = I(() => {
- const { filter: xe } = e;
- if (xe) return xe;
- const { labelField: De } = e;
- return (rt, ft) => {
- if (!rt.length) return !0;
- const gt = ft[De];
- return typeof gt == 'string'
- ? gt.toLowerCase().includes(rt.toLowerCase())
- : !1;
- };
- }),
- p = I(() => {
- const { pattern: xe } = e;
- return xe
- ? !xe.length || !v.value
- ? {
- filteredTree: e.data,
- highlightKeySet: null,
- expandedKeys: void 0
- }
- : Tte(e.data, v.value, xe, e.keyField, e.childrenField)
- : {
- filteredTree: e.data,
- highlightKeySet: null,
- expandedKeys: void 0
- };
- }),
- m = I(() =>
- td(
- e.showIrrelevantNodes ? e.data : p.value.filteredTree,
- Mte(e.keyField, e.childrenField, e.disabledField, e.getChildren)
- )
- ),
- g = Ze(uT, null),
- w = e.internalTreeSelect ? g.dataTreeMate : m,
- { watchProps: x } = e,
- y = Z([]);
- x != null && x.includes('defaultCheckedKeys')
- ? Bn(() => {
- y.value = e.defaultCheckedKeys;
- })
- : (y.value = e.defaultCheckedKeys);
- const C = Ee(e, 'checkedKeys'),
- R = An(C, y),
- S = I(() =>
- w.value.getCheckedKeys(R.value, {
- cascade: e.cascade,
- allowNotLoaded: e.allowCheckingNotLoaded
- })
- ),
- _ = Pte(e),
- P = I(() => S.value.checkedKeys),
- T = I(() => {
- const { indeterminateKeys: xe } = e;
- return xe !== void 0 ? xe : S.value.indeterminateKeys;
- }),
- A = Z([]);
- x != null && x.includes('defaultSelectedKeys')
- ? Bn(() => {
- A.value = e.defaultSelectedKeys;
- })
- : (A.value = e.defaultSelectedKeys);
- const z = Ee(e, 'selectedKeys'),
- k = An(z, A),
- M = Z([]),
- E = xe => {
- M.value = e.defaultExpandAll
- ? w.value.getNonLeafKeys()
- : xe === void 0
- ? e.defaultExpandedKeys
- : xe;
- };
- x != null && x.includes('defaultExpandedKeys')
- ? Bn(() => {
- E(void 0);
- })
- : Bn(() => {
- E(e.defaultExpandedKeys);
- });
- const D = Ee(e, 'expandedKeys'),
- L = An(D, M),
- j = I(() => m.value.getFlattenedNodes(L.value)),
- { pendingNodeKeyRef: B, handleKeydown: q } = Ote({
- props: e,
- mergedSelectedKeysRef: k,
- fNodesRef: j,
- mergedExpandedKeysRef: L,
- handleSelect: st,
- handleSwitcherClick: lt
- });
- let G = null,
- ne = null;
- const X = Z(new Set()),
- J = I(() => e.internalHighlightKeySet || p.value.highlightKeySet),
- re = An(J, X),
- ce = Z(new Set()),
- pe = I(() => L.value.filter(xe => !ce.value.has(xe)));
- let Fe = 0;
- const Ie = Z(null),
- le = Z(null),
- me = Z(null),
- he = Z(null),
- ue = Z(0),
- Ae = I(() => {
- const { value: xe } = le;
- return xe ? xe.parent : null;
- });
- $t(
- Ee(e, 'data'),
- () => {
- ce.value.clear(), (B.value = null), ct();
- },
- { deep: !1 }
- );
- let W = !1;
- const Q = () => {
- (W = !0),
- mn(() => {
- W = !1;
- });
- };
- let ee;
- $t(Ee(e, 'pattern'), (xe, De) => {
- if (e.showIrrelevantNodes)
- if (((ee = void 0), xe)) {
- const { expandedKeys: rt, highlightKeySet: ft } = kte(
- e.data,
- e.pattern,
- e.keyField,
- e.childrenField,
- v.value
- );
- (X.value = ft),
- Q(),
- Ne(rt, Se(rt), { node: null, action: 'filter' });
- } else X.value = new Set();
- else if (!xe.length)
- ee !== void 0 &&
- (Q(), Ne(ee, Se(ee), { node: null, action: 'filter' }));
- else {
- De.length || (ee = L.value);
- const { expandedKeys: rt } = p.value;
- rt !== void 0 &&
- (Q(), Ne(rt, Se(rt), { node: null, action: 'filter' }));
- }
- });
- function ve(xe) {
- return Ete(this, void 0, void 0, function* () {
- const { onLoad: De } = e;
- if (!De) {
- yield Promise.resolve();
- return;
- }
- const { value: rt } = ce;
- if (!rt.has(xe.key)) {
- rt.add(xe.key);
- try {
- (yield De(xe.rawNode)) === !1 && ie();
- } catch (ft) {
- console.error(ft), ie();
- }
- rt.delete(xe.key);
- }
- });
- }
- Bn(() => {
- var xe;
- const { value: De } = m;
- if (!De) return;
- const { getNode: rt } = De;
- (xe = L.value) === null ||
- xe === void 0 ||
- xe.forEach(ft => {
- const gt = rt(ft);
- gt && !gt.shallowLoaded && ve(gt);
- });
- });
- const oe = Z(!1),
- H = Z([]);
- $t(pe, (xe, De) => {
- if (!e.animated || W) {
- mn(Ce);
- return;
- }
- const rt = new Set(De);
- let ft = null,
- gt = null;
- for (const Ut of xe)
- if (!rt.has(Ut)) {
- if (ft !== null) return;
- ft = Ut;
- }
- const bn = new Set(xe);
- for (const Ut of De)
- if (!bn.has(Ut)) {
- if (gt !== null) return;
- gt = Ut;
- }
- if (ft === null && gt === null) return;
- const { virtualScroll: ln } = e,
- ke = (ln ? c.value.listElRef : a.value).offsetHeight,
- Je = Math.ceil(ke / Ph) + 1;
- let vt;
- if (
- (ft !== null && (vt = De),
- gt !== null &&
- (vt === void 0 ? (vt = xe) : (vt = vt.filter(Ut => Ut !== gt))),
- (oe.value = !0),
- (H.value = m.value.getFlattenedNodes(vt)),
- ft !== null)
- ) {
- const Ut = H.value.findIndex(dn => dn.key === ft);
- if (~Ut) {
- const dn = H.value[Ut].children;
- if (dn) {
- const nn = db(dn, xe);
- H.value.splice(Ut + 1, 0, {
- __motion: !0,
- mode: 'expand',
- height: ln ? nn.length * Ph : void 0,
- nodes: ln ? nn.slice(0, Je) : nn
- });
- }
- }
- }
- if (gt !== null) {
- const Ut = H.value.findIndex(dn => dn.key === gt);
- if (~Ut) {
- const dn = H.value[Ut].children;
- if (!dn) return;
- oe.value = !0;
- const nn = db(dn, xe);
- H.value.splice(Ut + 1, 0, {
- __motion: !0,
- mode: 'collapse',
- height: ln ? nn.length * Ph : void 0,
- nodes: ln ? nn.slice(0, Je) : nn
- });
- }
- }
- });
- const ae = I(() => wk(j.value)),
- ge = I(() => (oe.value ? H.value : j.value));
- function Ce() {
- const { value: xe } = s;
- xe && xe.sync();
- }
- function se() {
- (oe.value = !1), e.virtualScroll && mn(Ce);
- }
- function Se(xe) {
- const { getNode: De } = w.value;
- return xe.map(rt => {
- var ft;
- return (
- ((ft = De(rt)) === null || ft === void 0 ? void 0 : ft.rawNode) ||
- null
- );
- });
- }
- function Ne(xe, De, rt) {
- const { 'onUpdate:expandedKeys': ft, onUpdateExpandedKeys: gt } = e;
- (M.value = xe), ft && ze(ft, xe, De, rt), gt && ze(gt, xe, De, rt);
- }
- function Ge(xe, De, rt) {
- const { 'onUpdate:checkedKeys': ft, onUpdateCheckedKeys: gt } = e;
- (y.value = xe), gt && ze(gt, xe, De, rt), ft && ze(ft, xe, De, rt);
- }
- function it(xe, De) {
- const {
- 'onUpdate:indeterminateKeys': rt,
- onUpdateIndeterminateKeys: ft
- } = e;
- rt && ze(rt, xe, De), ft && ze(ft, xe, De);
- }
- function dt(xe, De, rt) {
- const { 'onUpdate:selectedKeys': ft, onUpdateSelectedKeys: gt } = e;
- (A.value = xe), gt && ze(gt, xe, De, rt), ft && ze(ft, xe, De, rt);
- }
- function xt(xe) {
- const { onDragenter: De } = e;
- De && ze(De, xe);
- }
- function Me(xe) {
- const { onDragleave: De } = e;
- De && ze(De, xe);
- }
- function ut(xe) {
- const { onDragend: De } = e;
- De && ze(De, xe);
- }
- function wt(xe) {
- const { onDragstart: De } = e;
- De && ze(De, xe);
- }
- function Lt(xe) {
- const { onDragover: De } = e;
- De && ze(De, xe);
- }
- function ot(xe) {
- const { onDrop: De } = e;
- De && ze(De, xe);
- }
- function ct() {
- Xe(), Qe();
- }
- function Xe() {
- Ie.value = null;
- }
- function Qe() {
- (ue.value = 0),
- (le.value = null),
- (me.value = null),
- (he.value = null),
- ie();
- }
- function ie() {
- G && (window.clearTimeout(G), (G = null)), (ne = null);
- }
- function $e(xe, De) {
- if (e.disabled || Qa(xe, e.disabledField)) return;
- if (e.internalUnifySelectCheck && !e.multiple) {
- st(xe);
- return;
- }
- const rt = De ? 'check' : 'uncheck',
- { checkedKeys: ft, indeterminateKeys: gt } = w.value[rt](
- xe.key,
- P.value,
- {
- cascade: e.cascade,
- checkStrategy: _.value,
- allowNotLoaded: e.allowCheckingNotLoaded
- }
- );
- Ge(ft, Se(ft), { node: xe.rawNode, action: rt }), it(gt, Se(gt));
- }
- function Ue(xe) {
- if (e.disabled) return;
- const { key: De } = xe,
- { value: rt } = L,
- ft = rt.findIndex(gt => gt === De);
- if (~ft) {
- const gt = Array.from(rt);
- gt.splice(ft, 1),
- Ne(gt, Se(gt), { node: xe.rawNode, action: 'collapse' });
- } else {
- const gt = m.value.getNode(De);
- if (!gt || gt.isLeaf) return;
- let bn;
- if (e.accordion) {
- const ln = new Set(xe.siblings.map(({ key: ke }) => ke));
- (bn = rt.filter(ke => !ln.has(ke))), bn.push(De);
- } else bn = rt.concat(De);
- Ne(bn, Se(bn), { node: xe.rawNode, action: 'expand' });
- }
- }
- function lt(xe) {
- e.disabled || oe.value || Ue(xe);
- }
- function st(xe) {
- if (!(e.disabled || !e.selectable)) {
- if (((B.value = xe.key), e.internalUnifySelectCheck)) {
- const {
- value: { checkedKeys: De, indeterminateKeys: rt }
- } = S;
- e.multiple
- ? $e(xe, !(De.includes(xe.key) || rt.includes(xe.key)))
- : Ge([xe.key], Se([xe.key]), {
- node: xe.rawNode,
- action: 'check'
- });
- }
- if (e.multiple) {
- const De = Array.from(k.value),
- rt = De.findIndex(ft => ft === xe.key);
- ~rt ? e.cancelable && De.splice(rt, 1) : ~rt || De.push(xe.key),
- dt(De, Se(De), {
- node: xe.rawNode,
- action: ~rt ? 'unselect' : 'select'
- });
- } else
- k.value.includes(xe.key)
- ? e.cancelable &&
- dt([], [], { node: xe.rawNode, action: 'unselect' })
- : dt([xe.key], Se([xe.key]), {
- node: xe.rawNode,
- action: 'select'
- });
- }
- }
- function be(xe) {
- if ((G && (window.clearTimeout(G), (G = null)), xe.isLeaf)) return;
- ne = xe.key;
- const De = () => {
- if (ne !== xe.key) return;
- const { value: rt } = me;
- if (rt && rt.key === xe.key && !L.value.includes(xe.key)) {
- const ft = L.value.concat(xe.key);
- Ne(ft, Se(ft), { node: xe.rawNode, action: 'expand' });
- }
- (G = null), (ne = null);
- };
- xe.shallowLoaded
- ? (G = window.setTimeout(() => {
- De();
- }, 1e3))
- : (G = window.setTimeout(() => {
- ve(xe).then(() => {
- De();
- });
- }, 1e3));
- }
- function He({ event: xe, node: De }) {
- !e.draggable ||
- e.disabled ||
- Qa(De, e.disabledField) ||
- (nt({ event: xe, node: De }, !1),
- xt({ event: xe, node: De.rawNode }));
- }
- function tt({ event: xe, node: De }) {
- !e.draggable ||
- e.disabled ||
- Qa(De, e.disabledField) ||
- Me({ event: xe, node: De.rawNode });
- }
- function pt(xe) {
- xe.target === xe.currentTarget && Qe();
- }
- function _e({ event: xe, node: De }) {
- ct(),
- !(!e.draggable || e.disabled || Qa(De, e.disabledField)) &&
- ut({ event: xe, node: De.rawNode });
- }
- function Ve({ event: xe, node: De }) {
- !e.draggable ||
- e.disabled ||
- Qa(De, e.disabledField) ||
- ((Fe = xe.clientX),
- (Ie.value = De),
- wt({ event: xe, node: De.rawNode }));
- }
- function nt({ event: xe, node: De }, rt = !0) {
- var ft;
- if (!e.draggable || e.disabled || Qa(De, e.disabledField)) return;
- const { value: gt } = Ie;
- if (!gt) return;
- const { allowDrop: bn, indent: ln } = e;
- rt && Lt({ event: xe, node: De.rawNode });
- const ke = xe.currentTarget,
- { height: Je, top: vt } = ke.getBoundingClientRect(),
- Ut = xe.clientY - vt;
- let dn;
- bn({ node: De.rawNode, dropPosition: 'inside', phase: 'drag' })
- ? Ut <= 8
- ? (dn = 'before')
- : Ut >= Je - 8
- ? (dn = 'after')
- : (dn = 'inside')
- : Ut <= Je / 2
- ? (dn = 'before')
- : (dn = 'after');
- const { value: kr } = ae;
- let Yt, On;
- const So = kr(De.key);
- if (So === null) {
- Qe();
- return;
- }
- let Lo = !1;
- dn === 'inside'
- ? ((Yt = De), (On = 'inside'))
- : dn === 'before'
- ? De.isFirstChild
- ? ((Yt = De), (On = 'before'))
- : ((Yt = j.value[So - 1]), (On = 'after'))
- : ((Yt = De), (On = 'after')),
- !Yt.isLeaf &&
- L.value.includes(Yt.key) &&
- ((Lo = !0),
- On === 'after' &&
- ((Yt = j.value[So + 1]),
- Yt ? (On = 'before') : ((Yt = De), (On = 'inside'))));
- const No = Yt;
- if (
- ((me.value = No),
- !Lo && gt.isLastChild && gt.key === Yt.key && (On = 'after'),
- On === 'after')
- ) {
- let _o = Fe - xe.clientX,
- Xr = 0;
- for (
- ;
- _o >= ln / 2 && Yt.parent !== null && Yt.isLastChild && Xr < 1;
- )
- (_o -= ln), (Xr += 1), (Yt = Yt.parent);
- ue.value = Xr;
- } else ue.value = 0;
- if (
- (gt.contains(Yt) ||
- (On === 'inside' &&
- ((ft = gt.parent) === null || ft === void 0 ? void 0 : ft.key) ===
- Yt.key)) &&
- !(gt.key === No.key && gt.key === Yt.key)
- ) {
- Qe();
- return;
- }
- if (!bn({ node: Yt.rawNode, dropPosition: On, phase: 'drag' })) {
- Qe();
- return;
- }
- if (gt.key === Yt.key) ie();
- else if (ne !== Yt.key)
- if (On === 'inside') {
- if (e.expandOnDragenter) {
- if ((be(Yt), !Yt.shallowLoaded && ne !== Yt.key)) {
- ct();
- return;
- }
- } else if (!Yt.shallowLoaded) {
- ct();
- return;
- }
- } else ie();
- else On !== 'inside' && ie();
- (he.value = On), (le.value = Yt);
- }
- function Ot({ event: xe, node: De, dropPosition: rt }) {
- if (!e.draggable || e.disabled || Qa(De, e.disabledField)) return;
- const { value: ft } = Ie,
- { value: gt } = le,
- { value: bn } = he;
- if (
- !(!ft || !gt || !bn) &&
- e.allowDrop({ node: gt.rawNode, dropPosition: bn, phase: 'drag' }) &&
- ft.key !== gt.key
- ) {
- if (bn === 'before') {
- const ln = ft.getNext({ includeDisabled: !0 });
- if (ln && ln.key === gt.key) {
- Qe();
- return;
- }
- }
- if (bn === 'after') {
- const ln = ft.getPrev({ includeDisabled: !0 });
- if (ln && ln.key === gt.key) {
- Qe();
- return;
- }
- }
- ot({
- event: xe,
- node: gt.rawNode,
- dragNode: ft.rawNode,
- dropPosition: rt
- }),
- ct();
- }
- }
- function $n() {
- Ce();
- }
- function jn() {
- Ce();
- }
- function Zt(xe) {
- var De;
- if (e.virtualScroll || e.internalScrollable) {
- const { value: rt } = s;
- if (
- !(
- (De = rt == null ? void 0 : rt.containerRef) === null ||
- De === void 0
- ) &&
- De.contains(xe.relatedTarget)
- )
- return;
- B.value = null;
- } else {
- const { value: rt } = a;
- if (rt != null && rt.contains(xe.relatedTarget)) return;
- B.value = null;
- }
- }
- $t(B, xe => {
- var De, rt;
- if (xe !== null) {
- if (e.virtualScroll)
- (De = c.value) === null ||
- De === void 0 ||
- De.scrollTo({ key: xe });
- else if (e.internalScrollable) {
- const { value: ft } = s;
- if (ft === null) return;
- const gt =
- (rt = ft.contentRef) === null || rt === void 0
- ? void 0
- : rt.querySelector(`[data-key="${OR(xe)}"]`);
- if (!gt) return;
- ft.scrollTo({ el: gt });
- }
- }
- }),
- Rt(Xu, {
- loadingKeysRef: ce,
- highlightKeySetRef: re,
- displayedCheckedKeysRef: P,
- displayedIndeterminateKeysRef: T,
- mergedSelectedKeysRef: k,
- mergedExpandedKeysRef: L,
- mergedThemeRef: i,
- mergedCheckStrategyRef: _,
- nodePropsRef: Ee(e, 'nodeProps'),
- disabledRef: Ee(e, 'disabled'),
- checkableRef: Ee(e, 'checkable'),
- selectableRef: Ee(e, 'selectable'),
- expandOnClickRef: Ee(e, 'expandOnClick'),
- onLoadRef: Ee(e, 'onLoad'),
- draggableRef: Ee(e, 'draggable'),
- blockLineRef: Ee(e, 'blockLine'),
- indentRef: Ee(e, 'indent'),
- cascadeRef: Ee(e, 'cascade'),
- checkOnClickRef: Ee(e, 'checkOnClick'),
- checkboxPlacementRef: e.checkboxPlacement,
- droppingMouseNodeRef: me,
- droppingNodeParentRef: Ae,
- draggingNodeRef: Ie,
- droppingPositionRef: he,
- droppingOffsetLevelRef: ue,
- fNodesRef: j,
- pendingNodeKeyRef: B,
- disabledFieldRef: Ee(e, 'disabledField'),
- internalScrollableRef: Ee(e, 'internalScrollable'),
- internalCheckboxFocusableRef: Ee(e, 'internalCheckboxFocusable'),
- internalTreeSelect: e.internalTreeSelect,
- renderLabelRef: Ee(e, 'renderLabel'),
- renderPrefixRef: Ee(e, 'renderPrefix'),
- renderSuffixRef: Ee(e, 'renderSuffix'),
- renderSwitcherIconRef: Ee(e, 'renderSwitcherIcon'),
- labelFieldRef: Ee(e, 'labelField'),
- multipleRef: Ee(e, 'multiple'),
- handleSwitcherClick: lt,
- handleDragEnd: _e,
- handleDragEnter: He,
- handleDragLeave: tt,
- handleDragStart: Ve,
- handleDrop: Ot,
- handleDragOver: nt,
- handleSelect: st,
- handleCheck: $e
- });
- function we(xe) {
- var De;
- (De = c.value) === null || De === void 0 || De.scrollTo(xe);
- }
- const je = {
- handleKeydown: q,
- scrollTo: we,
- getCheckedData: () => {
- if (!e.checkable) return { keys: [], options: [] };
- const { checkedKeys: xe } = S.value;
- return { keys: xe, options: Se(xe) };
- },
- getIndeterminateData: () => {
- if (!e.checkable) return { keys: [], options: [] };
- const { indeterminateKeys: xe } = S.value;
- return { keys: xe, options: Se(xe) };
- }
- },
- Ct = I(() => {
- const {
- common: { cubicBezierEaseInOut: xe },
- self: {
- fontSize: De,
- nodeBorderRadius: rt,
- nodeColorHover: ft,
- nodeColorPressed: gt,
- nodeColorActive: bn,
- arrowColor: ln,
- loadingColor: ke,
- nodeTextColor: Je,
- nodeTextColorDisabled: vt,
- dropMarkColor: Ut
- }
- } = i.value;
- return {
- '--n-arrow-color': ln,
- '--n-loading-color': ke,
- '--n-bezier': xe,
- '--n-font-size': De,
- '--n-node-border-radius': rt,
- '--n-node-color-active': bn,
- '--n-node-color-hover': ft,
- '--n-node-color-pressed': gt,
- '--n-node-text-color': Je,
- '--n-node-text-color-disabled': vt,
- '--n-drop-mark-color': Ut
- };
- }),
- qt = n ? Mt('tree', void 0, Ct, e) : void 0;
- return Object.assign(Object.assign({}, je), {
- mergedClsPrefix: t,
- mergedTheme: i,
- rtlEnabled: o,
- fNodes: ge,
- aip: oe,
- selfElRef: a,
- virtualListInstRef: c,
- scrollbarInstRef: s,
- handleFocusout: Zt,
- handleDragLeaveTree: pt,
- handleScroll: $n,
- getScrollContainer: d,
- getScrollContent: f,
- handleAfterEnter: se,
- handleResize: jn,
- cssVars: n ? void 0 : Ct,
- themeClass: qt == null ? void 0 : qt.themeClass,
- onRender: qt == null ? void 0 : qt.onRender
- });
- },
- render() {
- var e;
- const { fNodes: t, internalRenderEmpty: n } = this;
- if (!t.length && n) return n();
- const {
- mergedClsPrefix: r,
- blockNode: o,
- blockLine: i,
- draggable: a,
- disabled: s,
- internalFocusable: c,
- checkable: d,
- handleKeydown: f,
- rtlEnabled: v,
- handleFocusout: p
- } = this,
- m = c && !s,
- g = m ? '0' : void 0,
- w = [
- `${r}-tree`,
- v && `${r}-tree--rtl`,
- d && `${r}-tree--checkable`,
- (i || o) && `${r}-tree--block-node`,
- i && `${r}-tree--block-line`
- ],
- x = C =>
- '__motion' in C
- ? h(zte, {
- height: C.height,
- nodes: C.nodes,
- clsPrefix: r,
- mode: C.mode,
- onAfterEnter: this.handleAfterEnter
- })
- : h(hT, { key: C.key, tmNode: C, clsPrefix: r });
- if (this.virtualScroll) {
- const { mergedTheme: C, internalScrollablePadding: R } = this,
- S = Go(R || '0');
- return h(
- lv,
- {
- ref: 'scrollbarInstRef',
- onDragleave: a ? this.handleDragLeaveTree : void 0,
- container: this.getScrollContainer,
- content: this.getScrollContent,
- class: w,
- theme: C.peers.Scrollbar,
- themeOverrides: C.peerOverrides.Scrollbar,
- tabindex: g,
- onKeydown: m ? f : void 0,
- onFocusout: m ? p : void 0
- },
- {
- default: () => {
- var _;
- return (
- (_ = this.onRender) === null || _ === void 0 || _.call(this),
- h(
- Ac,
- {
- ref: 'virtualListInstRef',
- items: this.fNodes,
- itemSize: Ph,
- ignoreItemResize: this.aip,
- paddingTop: S.top,
- paddingBottom: S.bottom,
- class: this.themeClass,
- style: [
- this.cssVars,
- { paddingLeft: S.left, paddingRight: S.right }
- ],
- onScroll: this.handleScroll,
- onResize: this.handleResize,
- showScrollbar: !1,
- itemResizable: !0
- },
- { default: ({ item: P }) => x(P) }
- )
- );
- }
- }
- );
- }
- const { internalScrollable: y } = this;
- return (
- w.push(this.themeClass),
- (e = this.onRender) === null || e === void 0 || e.call(this),
- y
- ? h(
- lv,
- {
- class: w,
- tabindex: g,
- onKeydown: m ? f : void 0,
- onFocusout: m ? p : void 0,
- style: this.cssVars,
- contentStyle: { padding: this.internalScrollablePadding }
- },
- {
- default: () =>
- h(
- 'div',
- {
- onDragleave: a ? this.handleDragLeaveTree : void 0,
- ref: 'selfElRef'
- },
- this.fNodes.map(x)
- )
- }
- )
- : h(
- 'div',
- {
- class: w,
- tabindex: g,
- ref: 'selfElRef',
- style: this.cssVars,
- onKeydown: m ? f : void 0,
- onFocusout: m ? p : void 0,
- onDragleave: a ? this.handleDragLeaveTree : void 0
- },
- t.length
- ? t.map(x)
- : Kt(this.$slots.empty, () => [
- h(Cy, {
- class: `${r}-tree__empty`,
- theme: this.mergedTheme.peers.Empty,
- themeOverrides: this.mergedTheme.peerOverrides.Empty
- })
- ])
- )
- );
- }
- }),
- od = 'n-upload',
- vT = '__UPLOAD_DRAGGER__',
- Bte = Re({
- name: 'UploadDragger',
- [vT]: !0,
- setup(e, { slots: t }) {
- const n = Ze(od, null);
- return (
- n ||
- io(
- 'upload-dragger',
- '`n-upload-dragger` must be placed inside `n-upload`.'
- ),
- () => {
- const {
- mergedClsPrefixRef: { value: r },
- mergedDisabledRef: { value: o },
- maxReachedRef: { value: i }
- } = n;
- return h(
- 'div',
- {
- class: [
- `${r}-upload-dragger`,
- (o || i) && `${r}-upload-dragger--disabled`
- ]
- },
- t
- );
- }
- );
- }
- });
- var pT =
- (globalThis && globalThis.__awaiter) ||
- function (e, t, n, r) {
- function o(i) {
- return i instanceof n
- ? i
- : new n(function (a) {
- a(i);
- });
- }
- return new (n || (n = Promise))(function (i, a) {
- function s(f) {
- try {
- d(r.next(f));
- } catch (v) {
- a(v);
- }
- }
- function c(f) {
- try {
- d(r.throw(f));
- } catch (v) {
- a(v);
- }
- }
- function d(f) {
- f.done ? i(f.value) : o(f.value).then(s, c);
- }
- d((r = r.apply(e, t || [])).next());
- });
- };
- const gT = e => e.includes('image/'),
- m2 = (e = '') => {
- const t = e.split('/'),
- r = t[t.length - 1].split(/#|\?/)[0];
- return (/\.[^./\\]*$/.exec(r) || [''])[0];
- },
- b2 = /(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i,
- mT = e => {
- if (e.type) return gT(e.type);
- const t = m2(e.name || '');
- if (b2.test(t)) return !0;
- const n = e.thumbnailUrl || e.url || '',
- r = m2(n);
- return !!(/^data:image\//.test(n) || b2.test(r));
- };
- function Lte(e) {
- return pT(this, void 0, void 0, function* () {
- return yield new Promise(t => {
- if (!e.type || !gT(e.type)) {
- t('');
- return;
- }
- t(window.URL.createObjectURL(e));
- });
- });
- }
- const Nte = Fo && window.FileReader && window.File;
- function Hte(e) {
- return e.isDirectory;
- }
- function jte(e) {
- return e.isFile;
- }
- function Ute(e, t) {
- return pT(this, void 0, void 0, function* () {
- const n = [];
- let r,
- o = 0;
- function i() {
- o++;
- }
- function a() {
- o--, o || r(n);
- }
- function s(c) {
- c.forEach(d => {
- if (d) {
- if ((i(), t && Hte(d))) {
- const f = d.createReader();
- i(),
- f.readEntries(
- v => {
- s(v), a();
- },
- () => {
- a();
- }
- );
- } else
- jte(d) &&
- (i(),
- d.file(
- f => {
- n.push({ file: f, entry: d, source: 'dnd' }), a();
- },
- () => {
- a();
- }
- ));
- a();
- }
- });
- }
- return (
- yield new Promise(c => {
- (r = c), s(e);
- }),
- n
- );
- });
- }
- function Ou(e) {
- const {
- id: t,
- name: n,
- percentage: r,
- status: o,
- url: i,
- file: a,
- thumbnailUrl: s,
- type: c,
- fullPath: d,
- batchId: f
- } = e;
- return {
- id: t,
- name: n,
- percentage: r != null ? r : null,
- status: o,
- url: i != null ? i : null,
- file: a != null ? a : null,
- thumbnailUrl: s != null ? s : null,
- type: c != null ? c : null,
- fullPath: d != null ? d : null,
- batchId: f != null ? f : null
- };
- }
- function Wte(e, t, n) {
- return (
- (e = e.toLowerCase()),
- (t = t.toLocaleLowerCase()),
- (n = n.toLocaleLowerCase()),
- n
- .split(',')
- .map(o => o.trim())
- .filter(Boolean)
- .some(o => {
- if (o.startsWith('.')) {
- if (e.endsWith(o)) return !0;
- } else if (o.includes('/')) {
- const [i, a] = t.split('/'),
- [s, c] = o.split('/');
- if (
- (s === '*' || (i && s && s === i)) &&
- (c === '*' || (a && c && c === a))
- )
- return !0;
- } else return !0;
- return !1;
- })
- );
- }
- const Vte = (e, t) => {
- if (!e) return;
- const n = document.createElement('a');
- (n.href = e),
- t !== void 0 && (n.download = t),
- document.body.appendChild(n),
- n.click(),
- document.body.removeChild(n);
- },
- bT = Re({
- name: 'UploadTrigger',
- props: { abstract: Boolean },
- setup(e, { slots: t }) {
- const n = Ze(od, null);
- n ||
- io(
- 'upload-trigger',
- '`n-upload-trigger` must be placed inside `n-upload`.'
- );
- const {
- mergedClsPrefixRef: r,
- mergedDisabledRef: o,
- maxReachedRef: i,
- listTypeRef: a,
- dragOverRef: s,
- openOpenFileDialog: c,
- draggerInsideRef: d,
- handleFileAddition: f,
- mergedDirectoryDndRef: v,
- triggerStyleRef: p
- } = n,
- m = I(() => a.value === 'image-card');
- function g() {
- o.value || i.value || c();
- }
- function w(R) {
- R.preventDefault(), (s.value = !0);
- }
- function x(R) {
- R.preventDefault(), (s.value = !0);
- }
- function y(R) {
- R.preventDefault(), (s.value = !1);
- }
- function C(R) {
- var S;
- if ((R.preventDefault(), !d.value || o.value || i.value)) {
- s.value = !1;
- return;
- }
- const _ =
- (S = R.dataTransfer) === null || S === void 0 ? void 0 : S.items;
- _ != null && _.length
- ? Ute(
- Array.from(_).map(P => P.webkitGetAsEntry()),
- v.value
- )
- .then(P => {
- f(P);
- })
- .finally(() => {
- s.value = !1;
- })
- : (s.value = !1);
- }
- return () => {
- var R;
- const { value: S } = r;
- return e.abstract
- ? (R = t.default) === null || R === void 0
- ? void 0
- : R.call(t, {
- handleClick: g,
- handleDrop: C,
- handleDragOver: w,
- handleDragEnter: x,
- handleDragLeave: y
- })
- : h(
- 'div',
- {
- class: [
- `${S}-upload-trigger`,
- (o.value || i.value) && `${S}-upload-trigger--disabled`,
- m.value && `${S}-upload-trigger--image-card`
- ],
- style: p.value,
- onClick: g,
- onDrop: C,
- onDragover: w,
- onDragenter: x,
- onDragleave: y
- },
- m.value
- ? h(Bte, null, {
- default: () =>
- Kt(t.default, () => [
- h(Et, { clsPrefix: S }, { default: () => h(yy, null) })
- ])
- })
- : t
- );
- };
- }
- }),
- Kte = Re({
- name: 'UploadProgress',
- props: {
- show: Boolean,
- percentage: { type: Number, required: !0 },
- status: { type: String, required: !0 }
- },
- setup() {
- return { mergedTheme: Ze(od).mergedThemeRef };
- },
- render() {
- return h(Cl, null, {
- default: () =>
- this.show
- ? h(sT, {
- type: 'line',
- showIndicator: !1,
- percentage: this.percentage,
- status: this.status,
- height: 2,
- theme: this.mergedTheme.peers.Progress,
- themeOverrides: this.mergedTheme.peerOverrides.Progress
- })
- : null
- });
- }
- }),
- qte = h(
- 'svg',
- { xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 28 28' },
- h(
- 'g',
- { fill: 'none' },
- h('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'
- })
- )
- ),
- Yte = h(
- 'svg',
- { xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 28 28' },
- h(
- 'g',
- { fill: 'none' },
- h('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 Gte =
- (globalThis && globalThis.__awaiter) ||
- function (e, t, n, r) {
- function o(i) {
- return i instanceof n
- ? i
- : new n(function (a) {
- a(i);
- });
- }
- return new (n || (n = Promise))(function (i, a) {
- function s(f) {
- try {
- d(r.next(f));
- } catch (v) {
- a(v);
- }
- }
- function c(f) {
- try {
- d(r.throw(f));
- } catch (v) {
- a(v);
- }
- }
- function d(f) {
- f.done ? i(f.value) : o(f.value).then(s, c);
- }
- d((r = r.apply(e, t || [])).next());
- });
- };
- const kh = {
- paddingMedium: '0 3px',
- heightMedium: '24px',
- iconSizeMedium: '18px'
- },
- Xte = Re({
- name: 'UploadFile',
- props: {
- clsPrefix: { type: String, required: !0 },
- file: { type: Object, required: !0 },
- listType: { type: String, required: !0 }
- },
- setup(e) {
- const t = Ze(od),
- n = Z(null),
- r = Z(''),
- o = I(() => {
- const { file: _ } = e;
- return _.status === 'finished'
- ? 'success'
- : _.status === 'error'
- ? 'error'
- : 'info';
- }),
- i = I(() => {
- const { file: _ } = e;
- if (_.status === 'error') return 'error';
- }),
- a = I(() => {
- const { file: _ } = e;
- return _.status === 'uploading';
- }),
- s = I(() => {
- if (!t.showCancelButtonRef.value) return !1;
- const { file: _ } = e;
- return ['uploading', 'pending', 'error'].includes(_.status);
- }),
- c = I(() => {
- if (!t.showRemoveButtonRef.value) return !1;
- const { file: _ } = e;
- return ['finished'].includes(_.status);
- }),
- d = I(() => {
- if (!t.showDownloadButtonRef.value) return !1;
- const { file: _ } = e;
- return ['finished'].includes(_.status);
- }),
- f = I(() => {
- if (!t.showRetryButtonRef.value) return !1;
- const { file: _ } = e;
- return ['error'].includes(_.status);
- }),
- v = kt(() => r.value || e.file.thumbnailUrl || e.file.url),
- p = I(() => {
- if (!t.showPreviewButtonRef.value) return !1;
- const {
- file: { status: _ },
- listType: P
- } = e;
- return ['finished'].includes(_) && v.value && P === 'image-card';
- });
- function m() {
- t.submit(e.file.id);
- }
- function g(_) {
- _.preventDefault();
- const { file: P } = e;
- ['finished', 'pending', 'error'].includes(P.status)
- ? x(P)
- : ['uploading'].includes(P.status)
- ? C(P)
- : Do('upload', 'The button clicked type is unknown.');
- }
- function w(_) {
- _.preventDefault(), y(e.file);
- }
- function x(_) {
- const {
- xhrMap: P,
- doChange: T,
- onRemoveRef: { value: A },
- mergedFileListRef: { value: z }
- } = t;
- Promise.resolve(
- A ? A({ file: Object.assign({}, _), fileList: z }) : !0
- ).then(k => {
- if (k === !1) return;
- const M = Object.assign({}, _, { status: 'removed' });
- P.delete(_.id), T(M, void 0, { remove: !0 });
- });
- }
- function y(_) {
- const {
- onDownloadRef: { value: P }
- } = t;
- Promise.resolve(P ? P(Object.assign({}, _)) : !0).then(T => {
- T !== !1 && Vte(_.url, _.name);
- });
- }
- function C(_) {
- const { xhrMap: P } = t,
- T = P.get(_.id);
- T == null || T.abort(), x(Object.assign({}, _));
- }
- function R() {
- const {
- onPreviewRef: { value: _ }
- } = t;
- if (_) _(e.file);
- else if (e.listType === 'image-card') {
- const { value: P } = n;
- if (!P) return;
- P.click();
- }
- }
- const S = () =>
- Gte(this, void 0, void 0, function* () {
- const { listType: _ } = e;
- (_ !== 'image' && _ !== 'image-card') ||
- (t.shouldUseThumbnailUrlRef.value(e.file) &&
- (r.value = yield t.getFileThumbnailUrlResolver(e.file)));
- });
- return (
- Bn(() => {
- S();
- }),
- {
- mergedTheme: t.mergedThemeRef,
- progressStatus: o,
- buttonType: i,
- showProgress: a,
- disabled: t.mergedDisabledRef,
- showCancelButton: s,
- showRemoveButton: c,
- showDownloadButton: d,
- showRetryButton: f,
- showPreviewButton: p,
- mergedThumbnailUrl: v,
- shouldUseThumbnailUrl: t.shouldUseThumbnailUrlRef,
- renderIcon: t.renderIconRef,
- imageRef: n,
- handleRemoveOrCancelClick: g,
- handleDownloadClick: w,
- handleRetryClick: m,
- handlePreviewClick: R
- }
- );
- },
- render() {
- const {
- clsPrefix: e,
- mergedTheme: t,
- listType: n,
- file: r,
- renderIcon: o
- } = this;
- let i;
- const a = n === 'image';
- a || n === 'image-card'
- ? (i =
- !this.shouldUseThumbnailUrl(r) || !this.mergedThumbnailUrl
- ? h(
- 'span',
- { class: `${e}-upload-file-info__thumbnail` },
- o
- ? o(r)
- : mT(r)
- ? h(Et, { clsPrefix: e }, { default: () => qte })
- : h(Et, { clsPrefix: e }, { default: () => Yte })
- )
- : h(
- 'a',
- {
- rel: 'noopener noreferer',
- target: '_blank',
- href: r.url || void 0,
- class: `${e}-upload-file-info__thumbnail`,
- onClick: this.handlePreviewClick
- },
- n === 'image-card'
- ? h($J, {
- src: this.mergedThumbnailUrl || void 0,
- previewSrc: r.url || void 0,
- alt: r.name,
- ref: 'imageRef'
- })
- : h('img', {
- src: this.mergedThumbnailUrl || void 0,
- alt: r.name
- })
- ))
- : (i = h(
- 'span',
- { class: `${e}-upload-file-info__thumbnail` },
- o ? o(r) : h(Et, { clsPrefix: e }, { default: () => h(EU, null) })
- ));
- const c = h(Kte, {
- show: this.showProgress,
- percentage: r.percentage || 0,
- status: this.progressStatus
- }),
- d = n === 'text' || n === 'image';
- return h(
- 'div',
- {
- class: [
- `${e}-upload-file`,
- `${e}-upload-file--${this.progressStatus}-status`,
- r.url &&
- r.status !== 'error' &&
- n !== 'image-card' &&
- `${e}-upload-file--with-url`,
- `${e}-upload-file--${n}-type`
- ]
- },
- h(
- 'div',
- { class: `${e}-upload-file-info` },
- i,
- h(
- 'div',
- { class: `${e}-upload-file-info__name` },
- d &&
- (r.url && r.status !== 'error'
- ? h(
- 'a',
- {
- rel: 'noopener noreferer',
- target: '_blank',
- href: r.url || void 0,
- onClick: this.handlePreviewClick
- },
- r.name
- )
- : h('span', { onClick: this.handlePreviewClick }, r.name)),
- a && c
- ),
- h(
- 'div',
- {
- class: [
- `${e}-upload-file-info__action`,
- `${e}-upload-file-info__action--${n}-type`
- ]
- },
- this.showPreviewButton
- ? h(
- nr,
- {
- key: 'preview',
- quaternary: !0,
- type: this.buttonType,
- onClick: this.handlePreviewClick,
- theme: t.peers.Button,
- themeOverrides: t.peerOverrides.Button,
- builtinThemeOverrides: kh
- },
- {
- icon: () =>
- h(Et, { clsPrefix: e }, { default: () => h(bk, null) })
- }
- )
- : null,
- (this.showRemoveButton || this.showCancelButton) &&
- !this.disabled &&
- h(
- nr,
- {
- key: 'cancelOrTrash',
- theme: t.peers.Button,
- themeOverrides: t.peerOverrides.Button,
- quaternary: !0,
- builtinThemeOverrides: kh,
- type: this.buttonType,
- onClick: this.handleRemoveOrCancelClick
- },
- {
- icon: () =>
- h(Zi, null, {
- default: () =>
- this.showRemoveButton
- ? h(
- Et,
- { clsPrefix: e, key: 'trash' },
- { default: () => h(IU, null) }
- )
- : h(
- Et,
- { clsPrefix: e, key: 'cancel' },
- { default: () => h(jU, null) }
- )
- })
- }
- ),
- this.showRetryButton &&
- !this.disabled &&
- h(
- nr,
- {
- key: 'retry',
- quaternary: !0,
- type: this.buttonType,
- onClick: this.handleRetryClick,
- theme: t.peers.Button,
- themeOverrides: t.peerOverrides.Button,
- builtinThemeOverrides: kh
- },
- {
- icon: () =>
- h(Et, { clsPrefix: e }, { default: () => h(KU, null) })
- }
- ),
- this.showDownloadButton
- ? h(
- nr,
- {
- key: 'download',
- quaternary: !0,
- type: this.buttonType,
- onClick: this.handleDownloadClick,
- theme: t.peers.Button,
- themeOverrides: t.peerOverrides.Button,
- builtinThemeOverrides: kh
- },
- {
- icon: () =>
- h(Et, { clsPrefix: e }, { default: () => h(DU, null) })
- }
- )
- : null
- )
- ),
- !a && c
- );
- }
- }),
- Zte = Re({
- name: 'UploadFileList',
- setup(e, { slots: t }) {
- const n = Ze(od, null);
- n ||
- io(
- 'upload-file-list',
- '`n-upload-file-list` must be placed inside `n-upload`.'
- );
- const {
- abstractRef: r,
- mergedClsPrefixRef: o,
- listTypeRef: i,
- mergedFileListRef: a,
- fileListStyleRef: s,
- cssVarsRef: c,
- themeClassRef: d,
- maxReachedRef: f,
- showTriggerRef: v,
- imageGroupPropsRef: p
- } = n,
- m = I(() => i.value === 'image-card'),
- g = () =>
- a.value.map(x =>
- h(Xte, {
- clsPrefix: o.value,
- key: x.id,
- file: x,
- listType: i.value
- })
- ),
- w = () =>
- m.value
- ? h(kJ, Object.assign({}, p.value), { default: g })
- : h(Cl, { group: !0 }, { default: g });
- return () => {
- const { value: x } = o,
- { value: y } = r;
- return h(
- 'div',
- {
- class: [
- `${x}-upload-file-list`,
- m.value && `${x}-upload-file-list--grid`,
- y ? (d == null ? void 0 : d.value) : void 0
- ],
- style: [y && c ? c.value : '', s.value]
- },
- w(),
- v.value && !f.value && m.value && h(bT, null, t)
- );
- };
- }
- }),
- Qte = F([
- O('upload', 'width: 100%;', [
- U('dragger-inside', [
- O(
- 'upload-trigger',
- `
- display: block;
- `
- )
- ]),
- U('drag-over', [
- O(
- 'upload-dragger',
- `
- border: var(--n-dragger-border-hover);
- `
- )
- ])
- ]),
- O(
- 'upload-dragger',
- `
- cursor: pointer;
- box-sizing: border-box;
- width: 100%;
- text-align: center;
- border-radius: var(--n-border-radius);
- padding: 24px;
- opacity: 1;
- transition:
- opacity .3s var(--n-bezier),
- border-color .3s var(--n-bezier),
- background-color .3s var(--n-bezier);
- background-color: var(--n-dragger-color);
- border: var(--n-dragger-border);
- `,
- [
- F(
- '&:hover',
- `
- border: var(--n-dragger-border-hover);
- `
- ),
- U(
- 'disabled',
- `
- cursor: not-allowed;
- `
- )
- ]
- ),
- O(
- 'upload-trigger',
- `
- display: inline-block;
- box-sizing: border-box;
- opacity: 1;
- transition: opacity .3s var(--n-bezier);
- `,
- [
- F('+', [O('upload-file-list', 'margin-top: 8px;')]),
- U(
- 'disabled',
- `
- opacity: var(--n-item-disabled-opacity);
- cursor: not-allowed;
- `
- ),
- U(
- 'image-card',
- `
- width: 96px;
- height: 96px;
- `,
- [
- O(
- 'base-icon',
- `
- font-size: 24px;
- `
- ),
- O(
- 'upload-dragger',
- `
- padding: 0;
- height: 100%;
- width: 100%;
- display: flex;
- align-items: center;
- justify-content: center;
- `
- )
- ]
- )
- ]
- ),
- O(
- 'upload-file-list',
- `
- line-height: var(--n-line-height);
- opacity: 1;
- transition: opacity .3s var(--n-bezier);
- `,
- [
- F('a, img', 'outline: none;'),
- U(
- 'disabled',
- `
- opacity: var(--n-item-disabled-opacity);
- cursor: not-allowed;
- `,
- [O('upload-file', 'cursor: not-allowed;')]
- ),
- U(
- 'grid',
- `
- display: grid;
- grid-template-columns: repeat(auto-fill, 96px);
- grid-gap: 8px;
- margin-top: 0;
- `
- ),
- O(
- 'upload-file',
- `
- display: block;
- box-sizing: border-box;
- cursor: default;
- padding: 0px 12px 0 6px;
- transition: background-color .3s var(--n-bezier);
- border-radius: var(--n-border-radius);
- `,
- [
- Ss(),
- O('progress', [Ss({ foldPadding: !0 })]),
- F(
- '&:hover',
- `
- background-color: var(--n-item-color-hover);
- `,
- [
- O('upload-file-info', [
- V(
- 'action',
- `
- opacity: 1;
- `
- )
- ])
- ]
- ),
- U(
- 'image-type',
- `
- border-radius: var(--n-border-radius);
- text-decoration: underline;
- text-decoration-color: #0000;
- `,
- [
- O(
- 'upload-file-info',
- `
- padding-top: 0px;
- padding-bottom: 0px;
- width: 100%;
- height: 100%;
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 6px 0;
- `,
- [
- O(
- 'progress',
- `
- padding: 2px 0;
- margin-bottom: 0;
- `
- ),
- V(
- 'name',
- `
- padding: 0 8px;
- `
- ),
- V(
- 'thumbnail',
- `
- width: 32px;
- height: 32px;
- font-size: 28px;
- display: flex;
- justify-content: center;
- align-items: center;
- `,
- [
- F(
- 'img',
- `
- width: 100%;
- `
- )
- ]
- )
- ]
- )
- ]
- ),
- U('text-type', [
- O(
- 'progress',
- `
- box-sizing: border-box;
- padding-bottom: 6px;
- margin-bottom: 6px;
- `
- )
- ]),
- U(
- 'image-card-type',
- `
- position: relative;
- width: 96px;
- height: 96px;
- border: var(--n-item-border-image-card);
- border-radius: var(--n-border-radius);
- padding: 0;
- display: flex;
- align-items: center;
- justify-content: center;
- transition: border-color .3s var(--n-bezier), background-color .3s var(--n-bezier);
- border-radius: var(--n-border-radius);
- overflow: hidden;
- `,
- [
- O(
- 'progress',
- `
- position: absolute;
- left: 8px;
- bottom: 8px;
- right: 8px;
- width: unset;
- `
- ),
- O(
- 'upload-file-info',
- `
- padding: 0;
- width: 100%;
- height: 100%;
- `,
- [
- V(
- 'thumbnail',
- `
- width: 100%;
- height: 100%;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- font-size: 36px;
- `,
- [
- F(
- 'img',
- `
- width: 100%;
- `
- )
- ]
- )
- ]
- ),
- F(
- '&::before',
- `
- position: absolute;
- z-index: 1;
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- border-radius: inherit;
- opacity: 0;
- transition: opacity .2s var(--n-bezier);
- content: "";
- `
- ),
- F('&:hover', [
- F('&::before', 'opacity: 1;'),
- O('upload-file-info', [V('thumbnail', 'opacity: .12;')])
- ])
- ]
- ),
- U('error-status', [
- F(
- '&:hover',
- `
- background-color: var(--n-item-color-hover-error);
- `
- ),
- O('upload-file-info', [
- V('name', 'color: var(--n-item-text-color-error);'),
- V('thumbnail', 'color: var(--n-item-text-color-error);')
- ]),
- U(
- 'image-card-type',
- `
- border: var(--n-item-border-image-card-error);
- `
- )
- ]),
- U(
- 'with-url',
- `
- cursor: pointer;
- `,
- [
- O('upload-file-info', [
- V(
- 'name',
- `
- color: var(--n-item-text-color-success);
- text-decoration-color: var(--n-item-text-color-success);
- `,
- [
- F(
- 'a',
- `
- text-decoration: underline;
- `
- )
- ]
- )
- ])
- ]
- ),
- O(
- 'upload-file-info',
- `
- position: relative;
- padding-top: 6px;
- padding-bottom: 6px;
- display: flex;
- flex-wrap: nowrap;
- `,
- [
- V(
- 'thumbnail',
- `
- font-size: 18px;
- opacity: 1;
- transition: opacity .2s var(--n-bezier);
- color: var(--n-item-icon-color);
- `,
- [
- O(
- 'base-icon',
- `
- margin-right: 2px;
- vertical-align: middle;
- transition: color .3s var(--n-bezier);
- `
- )
- ]
- ),
- V(
- 'action',
- `
- padding-top: inherit;
- padding-bottom: inherit;
- position: absolute;
- right: 0;
- top: 0;
- bottom: 0;
- width: 80px;
- display: flex;
- align-items: center;
- transition: opacity .2s var(--n-bezier);
- justify-content: flex-end;
- opacity: 0;
- `,
- [
- O('button', [
- F('&:not(:last-child)', { marginRight: '4px' }),
- O('base-icon', [F('svg', [br()])])
- ]),
- U(
- 'image-type',
- `
- position: relative;
- max-width: 80px;
- width: auto;
- `
- ),
- U(
- 'image-card-type',
- `
- z-index: 2;
- position: absolute;
- width: 100%;
- height: 100%;
- left: 0;
- right: 0;
- bottom: 0;
- top: 0;
- display: flex;
- justify-content: center;
- align-items: center;
- `
- )
- ]
- ),
- V(
- 'name',
- `
- color: var(--n-item-text-color);
- flex: 1;
- display: flex;
- justify-content: center;
- text-overflow: ellipsis;
- overflow: hidden;
- flex-direction: column;
- text-decoration-color: #0000;
- font-size: var(--n-font-size);
- transition:
- color .3s var(--n-bezier),
- text-decoration-color .3s var(--n-bezier);
- `,
- [
- F(
- 'a',
- `
- color: inherit;
- text-decoration: underline;
- `
- )
- ]
- )
- ]
- )
- ]
- )
- ]
- ),
- O(
- 'upload-file-input',
- `
- display: block;
- width: 0;
- height: 0;
- opacity: 0;
- `
- )
- ]);
- var y2 =
- (globalThis && globalThis.__awaiter) ||
- function (e, t, n, r) {
- function o(i) {
- return i instanceof n
- ? i
- : new n(function (a) {
- a(i);
- });
- }
- return new (n || (n = Promise))(function (i, a) {
- function s(f) {
- try {
- d(r.next(f));
- } catch (v) {
- a(v);
- }
- }
- function c(f) {
- try {
- d(r.throw(f));
- } catch (v) {
- a(v);
- }
- }
- function d(f) {
- f.done ? i(f.value) : o(f.value).then(s, c);
- }
- d((r = r.apply(e, t || [])).next());
- });
- };
- function Jte(e, t, n) {
- const { doChange: r, xhrMap: o } = e;
- let i = 0;
- function a(c) {
- var d;
- let f = Object.assign({}, t, { status: 'error', percentage: i });
- o.delete(t.id),
- (f = Ou(
- ((d = e.onError) === null || d === void 0
- ? void 0
- : d.call(e, { file: f, event: c })) || f
- )),
- r(f, c);
- }
- function s(c) {
- var d;
- if (e.isErrorState) {
- if (e.isErrorState(n)) {
- a(c);
- return;
- }
- } else if (n.status < 200 || n.status >= 300) {
- a(c);
- return;
- }
- let f = Object.assign({}, t, { status: 'finished', percentage: i });
- o.delete(t.id),
- (f = Ou(
- ((d = e.onFinish) === null || d === void 0
- ? void 0
- : d.call(e, { file: f, event: c })) || f
- )),
- r(f, c);
- }
- return {
- handleXHRLoad: s,
- handleXHRError: a,
- handleXHRAbort(c) {
- const d = Object.assign({}, t, {
- status: 'removed',
- file: null,
- percentage: i
- });
- o.delete(t.id), r(d, c);
- },
- handleXHRProgress(c) {
- const d = Object.assign({}, t, { status: 'uploading' });
- if (c.lengthComputable) {
- const f = Math.ceil((c.loaded / c.total) * 100);
- (d.percentage = f), (i = f);
- }
- r(d, c);
- }
- };
- }
- function ene(e) {
- const {
- inst: t,
- file: n,
- data: r,
- headers: o,
- withCredentials: i,
- action: a,
- customRequest: s
- } = e,
- { doChange: c } = e.inst;
- let d = 0;
- s({
- file: n,
- data: r,
- headers: o,
- withCredentials: i,
- action: a,
- onProgress(f) {
- const v = Object.assign({}, n, { status: 'uploading' }),
- p = f.percent;
- (v.percentage = p), (d = p), c(v);
- },
- onFinish() {
- var f;
- let v = Object.assign({}, n, { status: 'finished', percentage: d });
- (v = Ou(
- ((f = t.onFinish) === null || f === void 0
- ? void 0
- : f.call(t, { file: v })) || v
- )),
- c(v);
- },
- onError() {
- var f;
- let v = Object.assign({}, n, { status: 'error', percentage: d });
- (v = Ou(
- ((f = t.onError) === null || f === void 0
- ? void 0
- : f.call(t, { file: v })) || v
- )),
- c(v);
- }
- });
- }
- function tne(e, t, n) {
- const r = Jte(e, t, n);
- (n.onabort = r.handleXHRAbort),
- (n.onerror = r.handleXHRError),
- (n.onload = r.handleXHRLoad),
- n.upload && (n.upload.onprogress = r.handleXHRProgress);
- }
- function yT(e, t) {
- return typeof e == 'function' ? e({ file: t }) : e || {};
- }
- function nne(e, t, n) {
- const r = yT(t, n);
- r &&
- Object.keys(r).forEach(o => {
- e.setRequestHeader(o, r[o]);
- });
- }
- function rne(e, t, n) {
- const r = yT(t, n);
- r &&
- Object.keys(r).forEach(o => {
- e.append(o, r[o]);
- });
- }
- function one(
- e,
- t,
- n,
- {
- method: r,
- action: o,
- withCredentials: i,
- responseType: a,
- headers: s,
- data: c
- }
- ) {
- const d = new XMLHttpRequest();
- (d.responseType = a), e.xhrMap.set(n.id, d), (d.withCredentials = i);
- const f = new FormData();
- if ((rne(f, c, n), f.append(t, n.file), tne(e, n, d), o !== void 0)) {
- d.open(r.toUpperCase(), o), nne(d, s, n), d.send(f);
- const v = Object.assign({}, n, { status: 'uploading' });
- e.doChange(v);
- }
- }
- const ine = Object.assign(Object.assign({}, Ke.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 => (Nte ? mT(e) : !1) },
- createThumbnailUrl: Function,
- abstract: Boolean,
- max: Number,
- showTrigger: { type: Boolean, default: !0 },
- imageGroupProps: Object,
- inputProps: Object,
- triggerStyle: [String, Object],
- renderIcon: Object
- }),
- ane = Re({
- name: 'Upload',
- props: ine,
- setup(e) {
- e.abstract &&
- e.listType === 'image-card' &&
- io(
- 'upload',
- 'when the list-type is image-card, abstract is not supported.'
- );
- const { mergedClsPrefixRef: t, inlineThemeDisabled: n } = yt(e),
- r = Ke('Upload', '-upload', Qte, wJ, e, t),
- o = ei(e),
- i = I(() => {
- const { max: z } = e;
- return z !== void 0 ? m.value.length >= z : !1;
- }),
- a = Z(e.defaultFileList),
- s = Ee(e, 'fileList'),
- c = Z(null),
- d = { value: !1 },
- f = Z(!1),
- v = new Map(),
- p = An(s, a),
- m = I(() => p.value.map(Ou));
- function g() {
- var z;
- (z = c.value) === null || z === void 0 || z.click();
- }
- function w(z) {
- const k = z.target;
- C(
- k.files
- ? Array.from(k.files).map(M => ({
- file: M,
- entry: null,
- source: 'input'
- }))
- : null,
- z
- ),
- (k.value = '');
- }
- function x(z) {
- const { 'onUpdate:fileList': k, onUpdateFileList: M } = e;
- k && ze(k, z), M && ze(M, z), (a.value = z);
- }
- const y = I(() => e.multiple || e.directory);
- function C(z, k) {
- if (!z || z.length === 0) return;
- const { onBeforeUpload: M } = e;
- z = y.value ? z : [z[0]];
- const { max: E, accept: D } = e;
- (z = z.filter(({ file: j, source: B }) =>
- B === 'dnd' && D != null && D.trim() ? Wte(j.name, j.type, D) : !0
- )),
- E && (z = z.slice(0, E - m.value.length));
- const L = pi();
- Promise.all(
- z.map(({ file: j, entry: B }) =>
- y2(this, void 0, void 0, function* () {
- var q;
- const G = {
- id: pi(),
- batchId: L,
- name: j.name,
- status: 'pending',
- percentage: 0,
- file: j,
- url: null,
- type: j.type,
- thumbnailUrl: null,
- fullPath:
- (q = B == null ? void 0 : B.fullPath) !== null && q !== void 0
- ? q
- : `/${j.webkitRelativePath || j.name}`
- };
- return !M || (yield M({ file: G, fileList: m.value })) !== !1
- ? G
- : null;
- })
- )
- )
- .then(j =>
- y2(this, void 0, void 0, function* () {
- let B = Promise.resolve();
- j.forEach(q => {
- B = B.then(mn).then(() => {
- q && S(q, k, { append: !0 });
- });
- }),
- yield B;
- })
- )
- .then(() => {
- e.defaultUpload && R();
- });
- }
- function R(z) {
- const {
- method: k,
- action: M,
- withCredentials: E,
- headers: D,
- data: L,
- name: j
- } = e,
- B = z !== void 0 ? m.value.filter(G => G.id === z) : m.value,
- q = z !== void 0;
- B.forEach(G => {
- const { status: ne } = G;
- (ne === 'pending' || (ne === 'error' && q)) &&
- (e.customRequest
- ? ene({
- inst: {
- doChange: S,
- xhrMap: v,
- onFinish: e.onFinish,
- onError: e.onError
- },
- file: G,
- action: M,
- withCredentials: E,
- headers: D,
- data: L,
- customRequest: e.customRequest
- })
- : one(
- {
- doChange: S,
- xhrMap: v,
- onFinish: e.onFinish,
- onError: e.onError,
- isErrorState: e.isErrorState
- },
- j,
- G,
- {
- method: k,
- action: M,
- withCredentials: E,
- responseType: e.responseType,
- headers: D,
- data: L
- }
- ));
- });
- }
- const S = (z, k, M = { append: !1, remove: !1 }) => {
- const { append: E, remove: D } = M,
- L = Array.from(m.value),
- j = L.findIndex(B => B.id === z.id);
- if (E || D || ~j) {
- E ? L.push(z) : D ? L.splice(j, 1) : L.splice(j, 1, z);
- const { onChange: B } = e;
- B && B({ file: z, fileList: L, event: k }), x(L);
- }
- };
- function _(z) {
- var k;
- if (z.thumbnailUrl) return z.thumbnailUrl;
- const { createThumbnailUrl: M } = e;
- return M
- ? (k = M(z.file, z)) !== null && k !== void 0
- ? k
- : z.url || ''
- : z.url
- ? z.url
- : z.file
- ? Lte(z.file)
- : '';
- }
- const P = I(() => {
- const {
- common: { cubicBezierEaseInOut: z },
- self: {
- draggerColor: k,
- draggerBorder: M,
- draggerBorderHover: E,
- itemColorHover: D,
- itemColorHoverError: L,
- itemTextColorError: j,
- itemTextColorSuccess: B,
- itemTextColor: q,
- itemIconColor: G,
- itemDisabledOpacity: ne,
- lineHeight: X,
- borderRadius: J,
- fontSize: re,
- itemBorderImageCardError: ce,
- itemBorderImageCard: pe
- }
- } = r.value;
- return {
- '--n-bezier': z,
- '--n-border-radius': J,
- '--n-dragger-border': M,
- '--n-dragger-border-hover': E,
- '--n-dragger-color': k,
- '--n-font-size': re,
- '--n-item-color-hover': D,
- '--n-item-color-hover-error': L,
- '--n-item-disabled-opacity': ne,
- '--n-item-icon-color': G,
- '--n-item-text-color': q,
- '--n-item-text-color-error': j,
- '--n-item-text-color-success': B,
- '--n-line-height': X,
- '--n-item-border-image-card-error': ce,
- '--n-item-border-image-card': pe
- };
- }),
- T = n ? Mt('upload', void 0, P, e) : void 0;
- Rt(od, {
- mergedClsPrefixRef: t,
- mergedThemeRef: r,
- showCancelButtonRef: Ee(e, 'showCancelButton'),
- showDownloadButtonRef: Ee(e, 'showDownloadButton'),
- showRemoveButtonRef: Ee(e, 'showRemoveButton'),
- showRetryButtonRef: Ee(e, 'showRetryButton'),
- onRemoveRef: Ee(e, 'onRemove'),
- onDownloadRef: Ee(e, 'onDownload'),
- mergedFileListRef: m,
- triggerStyleRef: Ee(e, 'triggerStyle'),
- shouldUseThumbnailUrlRef: Ee(e, 'shouldUseThumbnailUrl'),
- renderIconRef: Ee(e, 'renderIcon'),
- xhrMap: v,
- submit: R,
- doChange: S,
- showPreviewButtonRef: Ee(e, 'showPreviewButton'),
- onPreviewRef: Ee(e, 'onPreview'),
- getFileThumbnailUrlResolver: _,
- listTypeRef: Ee(e, 'listType'),
- dragOverRef: f,
- openOpenFileDialog: g,
- draggerInsideRef: d,
- handleFileAddition: C,
- mergedDisabledRef: o.mergedDisabledRef,
- maxReachedRef: i,
- fileListStyleRef: Ee(e, 'fileListStyle'),
- abstractRef: Ee(e, 'abstract'),
- acceptRef: Ee(e, 'accept'),
- cssVarsRef: n ? void 0 : P,
- themeClassRef: T == null ? void 0 : T.themeClass,
- onRender: T == null ? void 0 : T.onRender,
- showTriggerRef: Ee(e, 'showTrigger'),
- imageGroupPropsRef: Ee(e, 'imageGroupProps'),
- mergedDirectoryDndRef: I(() => {
- var z;
- return (z = e.directoryDnd) !== null && z !== void 0
- ? z
- : e.directory;
- })
- });
- const A = {
- clear: () => {
- a.value = [];
- },
- submit: R,
- openOpenFileDialog: g
- };
- return Object.assign(
- {
- mergedClsPrefix: t,
- draggerInsideRef: d,
- inputElRef: c,
- mergedTheme: r,
- dragOver: f,
- mergedMultiple: y,
- cssVars: n ? void 0 : P,
- themeClass: T == null ? void 0 : T.themeClass,
- onRender: T == null ? void 0 : T.onRender,
- handleFileInputChange: w
- },
- A
- );
- },
- render() {
- var e, t;
- const {
- draggerInsideRef: n,
- mergedClsPrefix: r,
- $slots: o,
- directory: i,
- onRender: a
- } = this;
- if (o.default && !this.abstract) {
- const c = o.default()[0];
- !((e = c == null ? void 0 : c.type) === null || e === void 0) &&
- e[vT] &&
- (n.value = !0);
- }
- const s = h(
- 'input',
- Object.assign({}, this.inputProps, {
- ref: 'inputElRef',
- type: 'file',
- class: `${r}-upload-file-input`,
- accept: this.accept,
- multiple: this.mergedMultiple,
- onChange: this.handleFileInputChange,
- webkitdirectory: i || void 0,
- directory: i || void 0
- })
- );
- return this.abstract
- ? h(
- on,
- null,
- (t = o.default) === null || t === void 0 ? void 0 : t.call(o),
- h(Iu, { to: 'body' }, s)
- )
- : (a == null || a(),
- h(
- 'div',
- {
- class: [
- `${r}-upload`,
- n.value && `${r}-upload--dragger-inside`,
- this.dragOver && `${r}-upload--drag-over`,
- this.themeClass
- ],
- style: this.cssVars
- },
- s,
- this.showTrigger &&
- this.listType !== 'image-card' &&
- h(bT, null, o),
- this.showFileList && h(Zte, null, o)
- ));
- }
- }),
- lne = Re({
- name: 'InjectionExtractor',
- props: { onSetup: Function },
- setup(e, { slots: t }) {
- var n;
- return (
- (n = e.onSetup) === null || n === void 0 || n.call(e),
- () => {
- var r;
- return (r = t.default) === null || r === void 0 ? void 0 : r.call(t);
- }
- );
- }
- }),
- sne = { message: wee, notification: Oee, loadingBar: ree, dialog: M3 };
- function cne({ providersAndProps: e, configProviderProps: t }) {
- let r = RR(() =>
- h(Py, ll(t), {
- default: () =>
- e.map(({ type: s, Provider: c, props: d }) =>
- h(c, ll(d), {
- default: () => h(lne, { onSetup: () => (o[s] = sne[s]()) })
- })
- )
- })
- );
- const o = { app: r };
- let i;
- return (
- Fo &&
- ((i = document.createElement('div')),
- document.body.appendChild(i),
- r.mount(i)),
- Object.assign(
- {
- unmount: () => {
- var s;
- if (r === null || i === null) {
- Do(
- 'discrete',
- 'unmount call no need because discrete app has been unmounted'
- );
- return;
- }
- r.unmount(),
- (s = i.parentNode) === null || s === void 0 || s.removeChild(i),
- (i = null),
- (r = null);
- }
- },
- o
- )
- );
- }
- function dne(
- e,
- {
- configProviderProps: t,
- messageProviderProps: n,
- dialogProviderProps: r,
- notificationProviderProps: o,
- loadingBarProviderProps: i
- } = {}
- ) {
- const a = [];
- return (
- e.forEach(c => {
- switch (c) {
- case 'message':
- a.push({ type: c, Provider: Gy, props: n });
- break;
- case 'notification':
- a.push({ type: c, Provider: Zy, props: o });
- break;
- case 'dialog':
- a.push({ type: c, Provider: jy, props: r });
- break;
- case 'loadingBar':
- a.push({ type: c, Provider: Q3, props: i });
- break;
- }
- }),
- cne({ providersAndProps: a, configProviderProps: t })
- );
- }
- const une = '2.34.4';
- function fne({ componentPrefix: e = 'N', components: t = [] } = {}) {
- const n = [];
- function r(i, a, s) {
- i.component(e + a) || i.component(e + a, s);
- }
- function o(i) {
- n.includes(i) ||
- (n.push(i),
- t.forEach(a => {
- const { name: s, alias: c } = a;
- r(i, s, a),
- c &&
- c.forEach(d => {
- r(i, d, a);
- });
- }));
- }
- return { version: une, componentPrefix: e, install: o };
- }
- const hne = Re({
- name: 'application-page',
- setup(e, { slots: t }) {
- return () =>
- er(jy, null, {
- default: () => [
- er(Zy, null, {
- default: () => [
- er(Gy, { max: 1 }, { default: () => [t.default && t.default()] })
- ]
- })
- ]
- });
- }
- });
- /*!
- * vue-router v4.2.2
- * (c) 2023 Eduardo San Martin Morote
- * @license MIT
- */ const bc = typeof window < 'u';
- function vne(e) {
- return e.__esModule || e[Symbol.toStringTag] === 'Module';
- }
- const Fn = Object.assign;
- function sm(e, t) {
- const n = {};
- for (const r in t) {
- const o = t[r];
- n[r] = mi(o) ? o.map(e) : e(o);
- }
- return n;
- }
- const ru = () => {},
- mi = Array.isArray,
- pne = /\/$/,
- gne = e => e.replace(pne, '');
- function cm(e, t, n = '/') {
- let r,
- o = {},
- i = '',
- a = '';
- const s = t.indexOf('#');
- let c = t.indexOf('?');
- return (
- s < c && s >= 0 && (c = -1),
- c > -1 &&
- ((r = t.slice(0, c)),
- (i = t.slice(c + 1, s > -1 ? s : t.length)),
- (o = e(i))),
- s > -1 && ((r = r || t.slice(0, s)), (a = t.slice(s, t.length))),
- (r = xne(r != null ? r : t, n)),
- { fullPath: r + (i && '?') + i + a, path: r, query: o, hash: a }
- );
- }
- function mne(e, t) {
- const n = t.query ? e(t.query) : '';
- return t.path + (n && '?') + n + (t.hash || '');
- }
- function x2(e, t) {
- return !t || !e.toLowerCase().startsWith(t.toLowerCase())
- ? e
- : e.slice(t.length) || '/';
- }
- function bne(e, t, n) {
- const r = t.matched.length - 1,
- o = n.matched.length - 1;
- return (
- r > -1 &&
- r === o &&
- Fc(t.matched[r], n.matched[o]) &&
- xT(t.params, n.params) &&
- e(t.query) === e(n.query) &&
- t.hash === n.hash
- );
- }
- function Fc(e, t) {
- return (e.aliasOf || e) === (t.aliasOf || t);
- }
- function xT(e, t) {
- if (Object.keys(e).length !== Object.keys(t).length) return !1;
- for (const n in e) if (!yne(e[n], t[n])) return !1;
- return !0;
- }
- function yne(e, t) {
- return mi(e) ? w2(e, t) : mi(t) ? w2(t, e) : e === t;
- }
- function w2(e, t) {
- return mi(t)
- ? e.length === t.length && e.every((n, r) => n === t[r])
- : e.length === 1 && e[0] === t;
- }
- function xne(e, t) {
- if (e.startsWith('/')) return e;
- if (!e) return t;
- const n = t.split('/'),
- r = e.split('/'),
- o = r[r.length - 1];
- (o === '..' || o === '.') && r.push('');
- let i = n.length - 1,
- a,
- s;
- for (a = 0; a < r.length; a++)
- if (((s = r[a]), s !== '.'))
- if (s === '..') i > 1 && i--;
- else break;
- return (
- n.slice(0, i).join('/') +
- '/' +
- r.slice(a - (a === r.length ? 1 : 0)).join('/')
- );
- }
- var zu;
- (function (e) {
- (e.pop = 'pop'), (e.push = 'push');
- })(zu || (zu = {}));
- var ou;
- (function (e) {
- (e.back = 'back'), (e.forward = 'forward'), (e.unknown = '');
- })(ou || (ou = {}));
- function wne(e) {
- if (!e)
- if (bc) {
- const t = document.querySelector('base');
- (e = (t && t.getAttribute('href')) || '/'),
- (e = e.replace(/^\w+:\/\/[^\/]+/, ''));
- } else e = '/';
- return e[0] !== '/' && e[0] !== '#' && (e = '/' + e), gne(e);
- }
- const Cne = /^[^#]+#/;
- function Sne(e, t) {
- return e.replace(Cne, '#') + t;
- }
- function _ne(e, t) {
- const n = document.documentElement.getBoundingClientRect(),
- r = e.getBoundingClientRect();
- return {
- behavior: t.behavior,
- left: r.left - n.left - (t.left || 0),
- top: r.top - n.top - (t.top || 0)
- };
- }
- const ep = () => ({ left: window.pageXOffset, top: window.pageYOffset });
- function Rne(e) {
- let t;
- if ('el' in e) {
- const n = e.el,
- r = typeof n == 'string' && n.startsWith('#'),
- o =
- typeof n == 'string'
- ? r
- ? document.getElementById(n.slice(1))
- : document.querySelector(n)
- : n;
- if (!o) return;
- t = _ne(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 C2(e, t) {
- return (history.state ? history.state.position - t : -1) + e;
- }
- const i0 = new Map();
- function Pne(e, t) {
- i0.set(e, t);
- }
- function kne(e) {
- const t = i0.get(e);
- return i0.delete(e), t;
- }
- let Tne = () => location.protocol + '//' + location.host;
- function wT(e, t) {
- const { pathname: n, search: r, hash: o } = t,
- i = e.indexOf('#');
- if (i > -1) {
- let s = o.includes(e.slice(i)) ? e.slice(i).length : 1,
- c = o.slice(s);
- return c[0] !== '/' && (c = '/' + c), x2(c, '');
- }
- return x2(n, e) + r + o;
- }
- function $ne(e, t, n, r) {
- let o = [],
- i = [],
- a = null;
- const s = ({ state: p }) => {
- const m = wT(e, location),
- g = n.value,
- w = t.value;
- let x = 0;
- if (p) {
- if (((n.value = m), (t.value = p), a && a === g)) {
- a = null;
- return;
- }
- x = w ? p.position - w.position : 0;
- } else r(m);
- o.forEach(y => {
- y(n.value, g, {
- delta: x,
- type: zu.pop,
- direction: x ? (x > 0 ? ou.forward : ou.back) : ou.unknown
- });
- });
- };
- function c() {
- a = n.value;
- }
- function d(p) {
- o.push(p);
- const m = () => {
- const g = o.indexOf(p);
- g > -1 && o.splice(g, 1);
- };
- return i.push(m), m;
- }
- function f() {
- const { history: p } = window;
- p.state && p.replaceState(Fn({}, p.state, { scroll: ep() }), '');
- }
- function v() {
- for (const p of i) p();
- (i = []),
- window.removeEventListener('popstate', s),
- window.removeEventListener('beforeunload', f);
- }
- return (
- window.addEventListener('popstate', s),
- window.addEventListener('beforeunload', f, { passive: !0 }),
- { pauseListeners: c, listen: d, destroy: v }
- );
- }
- function S2(e, t, n, r = !1, o = !1) {
- return {
- back: e,
- current: t,
- forward: n,
- replaced: r,
- position: window.history.length,
- scroll: o ? ep() : null
- };
- }
- function One(e) {
- const { history: t, location: n } = window,
- r = { value: wT(e, n) },
- o = { value: t.state };
- o.value ||
- i(
- r.value,
- {
- back: null,
- current: r.value,
- forward: null,
- position: t.length - 1,
- replaced: !0,
- scroll: null
- },
- !0
- );
- function i(c, d, f) {
- const v = e.indexOf('#'),
- p =
- v > -1
- ? (n.host && document.querySelector('base') ? e : e.slice(v)) + c
- : Tne() + e + c;
- try {
- t[f ? 'replaceState' : 'pushState'](d, '', p), (o.value = d);
- } catch (m) {
- console.error(m), n[f ? 'replace' : 'assign'](p);
- }
- }
- function a(c, d) {
- const f = Fn({}, t.state, S2(o.value.back, c, o.value.forward, !0), d, {
- position: o.value.position
- });
- i(c, f, !0), (r.value = c);
- }
- function s(c, d) {
- const f = Fn({}, o.value, t.state, { forward: c, scroll: ep() });
- i(f.current, f, !0);
- const v = Fn({}, S2(r.value, c, null), { position: f.position + 1 }, d);
- i(c, v, !1), (r.value = c);
- }
- return { location: r, state: o, push: s, replace: a };
- }
- function zne(e) {
- e = wne(e);
- const t = One(e),
- n = $ne(e, t.state, t.location, t.replace);
- function r(i, a = !0) {
- a || n.pauseListeners(), history.go(i);
- }
- const o = Fn(
- { location: '', base: e, go: r, createHref: Sne.bind(null, e) },
- t,
- n
- );
- return (
- Object.defineProperty(o, 'location', {
- enumerable: !0,
- get: () => t.location.value
- }),
- Object.defineProperty(o, 'state', {
- enumerable: !0,
- get: () => t.state.value
- }),
- o
- );
- }
- function Ane(e) {
- return typeof e == 'string' || (e && typeof e == 'object');
- }
- function CT(e) {
- return typeof e == 'string' || typeof e == 'symbol';
- }
- const Xa = {
- path: '/',
- name: void 0,
- params: {},
- query: {},
- hash: '',
- fullPath: '/',
- matched: [],
- meta: {},
- redirectedFrom: void 0
- },
- ST = Symbol('');
- var _2;
- (function (e) {
- (e[(e.aborted = 4)] = 'aborted'),
- (e[(e.cancelled = 8)] = 'cancelled'),
- (e[(e.duplicated = 16)] = 'duplicated');
- })(_2 || (_2 = {}));
- function Bc(e, t) {
- return Fn(new Error(), { type: e, [ST]: !0 }, t);
- }
- function zi(e, t) {
- return e instanceof Error && ST in e && (t == null || !!(e.type & t));
- }
- const R2 = '[^/]+?',
- Ene = { sensitive: !1, strict: !1, start: !0, end: !0 },
- Mne = /[.+*?^${}()[\]/\\]/g;
- function Ine(e, t) {
- const n = Fn({}, Ene, t),
- r = [];
- let o = n.start ? '^' : '';
- const i = [];
- for (const d of e) {
- const f = d.length ? [] : [90];
- n.strict && !d.length && (o += '/');
- for (let v = 0; v < d.length; v++) {
- const p = d[v];
- let m = 40 + (n.sensitive ? 0.25 : 0);
- if (p.type === 0)
- v || (o += '/'), (o += p.value.replace(Mne, '\\$&')), (m += 40);
- else if (p.type === 1) {
- const { value: g, repeatable: w, optional: x, regexp: y } = p;
- i.push({ name: g, repeatable: w, optional: x });
- const C = y || R2;
- if (C !== R2) {
- m += 10;
- try {
- new RegExp(`(${C})`);
- } catch (S) {
- throw new Error(
- `Invalid custom RegExp for param "${g}" (${C}): ` + S.message
- );
- }
- }
- let R = w ? `((?:${C})(?:/(?:${C}))*)` : `(${C})`;
- v || (R = x && d.length < 2 ? `(?:/${R})` : '/' + R),
- x && (R += '?'),
- (o += R),
- (m += 20),
- x && (m += -8),
- w && (m += -20),
- C === '.*' && (m += -50);
- }
- f.push(m);
- }
- r.push(f);
- }
- if (n.strict && n.end) {
- const d = r.length - 1;
- r[d][r[d].length - 1] += 0.7000000000000001;
- }
- n.strict || (o += '/?'), n.end ? (o += '$') : n.strict && (o += '(?:/|$)');
- const a = new RegExp(o, n.sensitive ? '' : 'i');
- function s(d) {
- const f = d.match(a),
- v = {};
- if (!f) return null;
- for (let p = 1; p < f.length; p++) {
- const m = f[p] || '',
- g = i[p - 1];
- v[g.name] = m && g.repeatable ? m.split('/') : m;
- }
- return v;
- }
- function c(d) {
- let f = '',
- v = !1;
- for (const p of e) {
- (!v || !f.endsWith('/')) && (f += '/'), (v = !1);
- for (const m of p)
- if (m.type === 0) f += m.value;
- else if (m.type === 1) {
- const { value: g, repeatable: w, optional: x } = m,
- y = g in d ? d[g] : '';
- if (mi(y) && !w)
- throw new Error(
- `Provided param "${g}" is an array but it is not repeatable (* or + modifiers)`
- );
- const C = mi(y) ? y.join('/') : y;
- if (!C)
- if (x)
- p.length < 2 &&
- (f.endsWith('/') ? (f = f.slice(0, -1)) : (v = !0));
- else throw new Error(`Missing required param "${g}"`);
- f += C;
- }
- }
- return f || '/';
- }
- return { re: a, score: r, keys: i, parse: s, stringify: c };
- }
- function Dne(e, t) {
- let n = 0;
- for (; n < e.length && n < t.length; ) {
- const r = t[n] - e[n];
- if (r) return r;
- n++;
- }
- 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 Fne(e, t) {
- let n = 0;
- const r = e.score,
- o = t.score;
- for (; n < r.length && n < o.length; ) {
- const i = Dne(r[n], o[n]);
- if (i) return i;
- n++;
- }
- if (Math.abs(o.length - r.length) === 1) {
- if (P2(r)) return 1;
- if (P2(o)) return -1;
- }
- return o.length - r.length;
- }
- function P2(e) {
- const t = e[e.length - 1];
- return e.length > 0 && t[t.length - 1] < 0;
- }
- const Bne = { type: 0, value: '' },
- Lne = /[a-zA-Z0-9_]/;
- function Nne(e) {
- if (!e) return [[]];
- if (e === '/') return [[Bne]];
- if (!e.startsWith('/')) throw new Error(`Invalid path "${e}"`);
- function t(m) {
- throw new Error(`ERR (${n})/"${d}": ${m}`);
- }
- let n = 0,
- r = n;
- const o = [];
- let i;
- function a() {
- i && o.push(i), (i = []);
- }
- let s = 0,
- c,
- d = '',
- f = '';
- function v() {
- d &&
- (n === 0
- ? i.push({ type: 0, value: d })
- : n === 1 || n === 2 || n === 3
- ? (i.length > 1 &&
- (c === '*' || c === '+') &&
- t(
- `A repeatable param (${d}) must be alone in its segment. eg: '/:ids+.`
- ),
- i.push({
- type: 1,
- value: d,
- regexp: f,
- repeatable: c === '*' || c === '+',
- optional: c === '*' || c === '?'
- }))
- : t('Invalid state to consume buffer'),
- (d = ''));
- }
- function p() {
- d += c;
- }
- for (; s < e.length; ) {
- if (((c = e[s++]), c === '\\' && n !== 2)) {
- (r = n), (n = 4);
- continue;
- }
- switch (n) {
- case 0:
- c === '/' ? (d && v(), a()) : c === ':' ? (v(), (n = 1)) : p();
- break;
- case 4:
- p(), (n = r);
- break;
- case 1:
- c === '('
- ? (n = 2)
- : Lne.test(c)
- ? p()
- : (v(), (n = 0), c !== '*' && c !== '?' && c !== '+' && s--);
- break;
- case 2:
- c === ')'
- ? f[f.length - 1] == '\\'
- ? (f = f.slice(0, -1) + c)
- : (n = 3)
- : (f += c);
- break;
- case 3:
- v(), (n = 0), c !== '*' && c !== '?' && c !== '+' && s--, (f = '');
- break;
- default:
- t('Unknown state');
- break;
- }
- }
- return n === 2 && t(`Unfinished custom RegExp for param "${d}"`), v(), a(), o;
- }
- function Hne(e, t, n) {
- const r = Ine(Nne(e.path), n),
- o = Fn(r, { record: e, parent: t, children: [], alias: [] });
- return t && !o.record.aliasOf == !t.record.aliasOf && t.children.push(o), o;
- }
- function jne(e, t) {
- const n = [],
- r = new Map();
- t = $2({ strict: !1, end: !0, sensitive: !1 }, t);
- function o(f) {
- return r.get(f);
- }
- function i(f, v, p) {
- const m = !p,
- g = Une(f);
- g.aliasOf = p && p.record;
- const w = $2(t, f),
- x = [g];
- if ('alias' in f) {
- const R = typeof f.alias == 'string' ? [f.alias] : f.alias;
- for (const S of R)
- x.push(
- Fn({}, g, {
- components: p ? p.record.components : g.components,
- path: S,
- aliasOf: p ? p.record : g
- })
- );
- }
- let y, C;
- for (const R of x) {
- const { path: S } = R;
- if (v && S[0] !== '/') {
- const _ = v.record.path,
- P = _[_.length - 1] === '/' ? '' : '/';
- R.path = v.record.path + (S && P + S);
- }
- if (
- ((y = Hne(R, v, w)),
- p
- ? p.alias.push(y)
- : ((C = C || y),
- C !== y && C.alias.push(y),
- m && f.name && !T2(y) && a(f.name)),
- g.children)
- ) {
- const _ = g.children;
- for (let P = 0; P < _.length; P++) i(_[P], y, p && p.children[P]);
- }
- (p = p || y),
- ((y.record.components && Object.keys(y.record.components).length) ||
- y.record.name ||
- y.record.redirect) &&
- c(y);
- }
- return C
- ? () => {
- a(C);
- }
- : ru;
- }
- function a(f) {
- if (CT(f)) {
- const v = r.get(f);
- v &&
- (r.delete(f),
- n.splice(n.indexOf(v), 1),
- v.children.forEach(a),
- v.alias.forEach(a));
- } else {
- const v = n.indexOf(f);
- v > -1 &&
- (n.splice(v, 1),
- f.record.name && r.delete(f.record.name),
- f.children.forEach(a),
- f.alias.forEach(a));
- }
- }
- function s() {
- return n;
- }
- function c(f) {
- let v = 0;
- for (
- ;
- v < n.length &&
- Fne(f, n[v]) >= 0 &&
- (f.record.path !== n[v].record.path || !_T(f, n[v]));
- )
- v++;
- n.splice(v, 0, f), f.record.name && !T2(f) && r.set(f.record.name, f);
- }
- function d(f, v) {
- let p,
- m = {},
- g,
- w;
- if ('name' in f && f.name) {
- if (((p = r.get(f.name)), !p)) throw Bc(1, { location: f });
- (w = p.record.name),
- (m = Fn(
- k2(
- v.params,
- p.keys.filter(C => !C.optional).map(C => C.name)
- ),
- f.params &&
- k2(
- f.params,
- p.keys.map(C => C.name)
- )
- )),
- (g = p.stringify(m));
- } else if ('path' in f)
- (g = f.path),
- (p = n.find(C => C.re.test(g))),
- p && ((m = p.parse(g)), (w = p.record.name));
- else {
- if (((p = v.name ? r.get(v.name) : n.find(C => C.re.test(v.path))), !p))
- throw Bc(1, { location: f, currentLocation: v });
- (w = p.record.name),
- (m = Fn({}, v.params, f.params)),
- (g = p.stringify(m));
- }
- const x = [];
- let y = p;
- for (; y; ) x.unshift(y.record), (y = y.parent);
- return { name: w, path: g, params: m, matched: x, meta: Vne(x) };
- }
- return (
- e.forEach(f => i(f)),
- {
- addRoute: i,
- resolve: d,
- removeRoute: a,
- getRoutes: s,
- getRecordMatcher: o
- }
- );
- }
- function k2(e, t) {
- const n = {};
- for (const r of t) r in e && (n[r] = e[r]);
- return n;
- }
- function Une(e) {
- return {
- path: e.path,
- redirect: e.redirect,
- name: e.name,
- meta: e.meta || {},
- aliasOf: void 0,
- beforeEnter: e.beforeEnter,
- props: Wne(e),
- children: e.children || [],
- instances: {},
- leaveGuards: new Set(),
- updateGuards: new Set(),
- enterCallbacks: {},
- components:
- 'components' in e
- ? e.components || null
- : e.component && { default: e.component }
- };
- }
- function Wne(e) {
- const t = {},
- n = e.props || !1;
- if ('component' in e) t.default = n;
- else for (const r in e.components) t[r] = typeof n == 'boolean' ? n : n[r];
- return t;
- }
- function T2(e) {
- for (; e; ) {
- if (e.record.aliasOf) return !0;
- e = e.parent;
- }
- return !1;
- }
- function Vne(e) {
- return e.reduce((t, n) => Fn(t, n.meta), {});
- }
- function $2(e, t) {
- const n = {};
- for (const r in e) n[r] = r in t ? t[r] : e[r];
- return n;
- }
- function _T(e, t) {
- return t.children.some(n => n === e || _T(e, n));
- }
- const RT = /#/g,
- Kne = /&/g,
- qne = /\//g,
- Yne = /=/g,
- Gne = /\?/g,
- PT = /\+/g,
- Xne = /%5B/g,
- Zne = /%5D/g,
- kT = /%5E/g,
- Qne = /%60/g,
- TT = /%7B/g,
- Jne = /%7C/g,
- $T = /%7D/g,
- ere = /%20/g;
- function Jy(e) {
- return encodeURI('' + e)
- .replace(Jne, '|')
- .replace(Xne, '[')
- .replace(Zne, ']');
- }
- function tre(e) {
- return Jy(e).replace(TT, '{').replace($T, '}').replace(kT, '^');
- }
- function a0(e) {
- return Jy(e)
- .replace(PT, '%2B')
- .replace(ere, '+')
- .replace(RT, '%23')
- .replace(Kne, '%26')
- .replace(Qne, '`')
- .replace(TT, '{')
- .replace($T, '}')
- .replace(kT, '^');
- }
- function nre(e) {
- return a0(e).replace(Yne, '%3D');
- }
- function rre(e) {
- return Jy(e).replace(RT, '%23').replace(Gne, '%3F');
- }
- function ore(e) {
- return e == null ? '' : rre(e).replace(qne, '%2F');
- }
- function fv(e) {
- try {
- return decodeURIComponent('' + e);
- } catch (t) {}
- return '' + e;
- }
- function ire(e) {
- const t = {};
- if (e === '' || e === '?') return t;
- const r = (e[0] === '?' ? e.slice(1) : e).split('&');
- for (let o = 0; o < r.length; ++o) {
- const i = r[o].replace(PT, ' '),
- a = i.indexOf('='),
- s = fv(a < 0 ? i : i.slice(0, a)),
- c = a < 0 ? null : fv(i.slice(a + 1));
- if (s in t) {
- let d = t[s];
- mi(d) || (d = t[s] = [d]), d.push(c);
- } else t[s] = c;
- }
- return t;
- }
- function O2(e) {
- let t = '';
- for (let n in e) {
- const r = e[n];
- if (((n = nre(n)), r == null)) {
- r !== void 0 && (t += (t.length ? '&' : '') + n);
- continue;
- }
- (mi(r) ? r.map(i => i && a0(i)) : [r && a0(r)]).forEach(i => {
- i !== void 0 &&
- ((t += (t.length ? '&' : '') + n), i != null && (t += '=' + i));
- });
- }
- return t;
- }
- function are(e) {
- const t = {};
- for (const n in e) {
- const r = e[n];
- r !== void 0 &&
- (t[n] = mi(r)
- ? r.map(o => (o == null ? null : '' + o))
- : r == null
- ? r
- : '' + r);
- }
- return t;
- }
- const OT = Symbol(''),
- z2 = Symbol(''),
- tp = Symbol(''),
- e1 = Symbol(''),
- l0 = Symbol('');
- function Dd() {
- let e = [];
- function t(r) {
- return (
- e.push(r),
- () => {
- const o = e.indexOf(r);
- o > -1 && e.splice(o, 1);
- }
- );
- }
- function n() {
- e = [];
- }
- return { add: t, list: () => e, reset: n };
- }
- function lre(e, t, n) {
- const r = () => {
- e[t].delete(n);
- };
- Mu(r),
- Vc(r),
- Av(() => {
- e[t].add(n);
- }),
- e[t].add(n);
- }
- function cle(e) {
- const t = Ze(OT, {}).value;
- t && lre(t, 'updateGuards', e);
- }
- function tl(e, t, n, r, o) {
- const i = r && (r.enterCallbacks[o] = r.enterCallbacks[o] || []);
- return () =>
- new Promise((a, s) => {
- const c = v => {
- v === !1
- ? s(Bc(4, { from: n, to: t }))
- : v instanceof Error
- ? s(v)
- : Ane(v)
- ? s(Bc(2, { from: t, to: v }))
- : (i &&
- r.enterCallbacks[o] === i &&
- typeof v == 'function' &&
- i.push(v),
- a());
- },
- d = e.call(r && r.instances[o], t, n, c);
- let f = Promise.resolve(d);
- e.length < 3 && (f = f.then(c)), f.catch(v => s(v));
- });
- }
- function dm(e, t, n, r) {
- const o = [];
- for (const i of e)
- for (const a in i.components) {
- let s = i.components[a];
- if (!(t !== 'beforeRouteEnter' && !i.instances[a]))
- if (sre(s)) {
- const d = (s.__vccOpts || s)[t];
- d && o.push(tl(d, n, r, i, a));
- } else {
- let c = s();
- o.push(() =>
- c.then(d => {
- if (!d)
- return Promise.reject(
- new Error(`Couldn't resolve component "${a}" at "${i.path}"`)
- );
- const f = vne(d) ? d.default : d;
- i.components[a] = f;
- const p = (f.__vccOpts || f)[t];
- return p && tl(p, n, r, i, a)();
- })
- );
- }
- }
- return o;
- }
- function sre(e) {
- return (
- typeof e == 'object' ||
- 'displayName' in e ||
- 'props' in e ||
- '__vccOpts' in e
- );
- }
- function A2(e) {
- const t = Ze(tp),
- n = Ze(e1),
- r = I(() => t.resolve(ll(e.to))),
- o = I(() => {
- const { matched: c } = r.value,
- { length: d } = c,
- f = c[d - 1],
- v = n.matched;
- if (!f || !v.length) return -1;
- const p = v.findIndex(Fc.bind(null, f));
- if (p > -1) return p;
- const m = E2(c[d - 2]);
- return d > 1 && E2(f) === m && v[v.length - 1].path !== m
- ? v.findIndex(Fc.bind(null, c[d - 2]))
- : p;
- }),
- i = I(() => o.value > -1 && fre(n.params, r.value.params)),
- a = I(
- () =>
- o.value > -1 &&
- o.value === n.matched.length - 1 &&
- xT(n.params, r.value.params)
- );
- function s(c = {}) {
- return ure(c)
- ? t[ll(e.replace) ? 'replace' : 'push'](ll(e.to)).catch(ru)
- : Promise.resolve();
- }
- return {
- route: r,
- href: I(() => r.value.href),
- isActive: i,
- isExactActive: a,
- navigate: s
- };
- }
- const cre = Re({
- name: 'RouterLink',
- compatConfig: { MODE: 3 },
- props: {
- to: { type: [String, Object], required: !0 },
- replace: Boolean,
- activeClass: String,
- exactActiveClass: String,
- custom: Boolean,
- ariaCurrentValue: { type: String, default: 'page' }
- },
- useLink: A2,
- setup(e, { slots: t }) {
- const n = Xi(A2(e)),
- { options: r } = Ze(tp),
- o = I(() => ({
- [M2(e.activeClass, r.linkActiveClass, 'router-link-active')]:
- n.isActive,
- [M2(
- e.exactActiveClass,
- r.linkExactActiveClass,
- 'router-link-exact-active'
- )]: n.isExactActive
- }));
- return () => {
- const i = t.default && t.default(n);
- return e.custom
- ? i
- : h(
- 'a',
- {
- 'aria-current': n.isExactActive ? e.ariaCurrentValue : null,
- href: n.href,
- onClick: n.navigate,
- class: o.value
- },
- i
- );
- };
- }
- }),
- dre = cre;
- function ure(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 fre(e, t) {
- for (const n in t) {
- const r = t[n],
- o = e[n];
- if (typeof r == 'string') {
- if (r !== o) return !1;
- } else if (!mi(o) || o.length !== r.length || r.some((i, a) => i !== o[a]))
- return !1;
- }
- return !0;
- }
- function E2(e) {
- return e ? (e.aliasOf ? e.aliasOf.path : e.path) : '';
- }
- const M2 = (e, t, n) => (e != null ? e : t != null ? t : n),
- hre = Re({
- name: 'RouterView',
- inheritAttrs: !1,
- props: { name: { type: String, default: 'default' }, route: Object },
- compatConfig: { MODE: 3 },
- setup(e, { attrs: t, slots: n }) {
- const r = Ze(l0),
- o = I(() => e.route || r.value),
- i = Ze(z2, 0),
- a = I(() => {
- let d = ll(i);
- const { matched: f } = o.value;
- let v;
- for (; (v = f[d]) && !v.components; ) d++;
- return d;
- }),
- s = I(() => o.value.matched[a.value]);
- Rt(
- z2,
- I(() => a.value + 1)
- ),
- Rt(OT, s),
- Rt(l0, o);
- const c = Z();
- return (
- $t(
- () => [c.value, s.value, e.name],
- ([d, f, v], [p, m, g]) => {
- f &&
- ((f.instances[v] = d),
- m &&
- m !== f &&
- d &&
- d === p &&
- (f.leaveGuards.size || (f.leaveGuards = m.leaveGuards),
- f.updateGuards.size || (f.updateGuards = m.updateGuards))),
- d &&
- f &&
- (!m || !Fc(f, m) || !p) &&
- (f.enterCallbacks[v] || []).forEach(w => w(d));
- },
- { flush: 'post' }
- ),
- () => {
- const d = o.value,
- f = e.name,
- v = s.value,
- p = v && v.components[f];
- if (!p) return I2(n.default, { Component: p, route: d });
- const m = v.props[f],
- g = m
- ? m === !0
- ? d.params
- : typeof m == 'function'
- ? m(d)
- : m
- : null,
- x = h(
- p,
- Fn({}, g, t, {
- onVnodeUnmounted: y => {
- y.component.isUnmounted && (v.instances[f] = null);
- },
- ref: c
- })
- );
- return I2(n.default, { Component: x, route: d }) || x;
- }
- );
- }
- });
- function I2(e, t) {
- if (!e) return null;
- const n = e(t);
- return n.length === 1 ? n[0] : n;
- }
- const zT = hre;
- function vre(e) {
- const t = jne(e.routes, e),
- n = e.parseQuery || ire,
- r = e.stringifyQuery || O2,
- o = e.history,
- i = Dd(),
- a = Dd(),
- s = Dd(),
- c = N6(Xa);
- let d = Xa;
- bc &&
- e.scrollBehavior &&
- 'scrollRestoration' in history &&
- (history.scrollRestoration = 'manual');
- const f = sm.bind(null, le => '' + le),
- v = sm.bind(null, ore),
- p = sm.bind(null, fv);
- function m(le, me) {
- let he, ue;
- return (
- CT(le) ? ((he = t.getRecordMatcher(le)), (ue = me)) : (ue = le),
- t.addRoute(ue, he)
- );
- }
- function g(le) {
- const me = t.getRecordMatcher(le);
- me && t.removeRoute(me);
- }
- function w() {
- return t.getRoutes().map(le => le.record);
- }
- function x(le) {
- return !!t.getRecordMatcher(le);
- }
- function y(le, me) {
- if (((me = Fn({}, me || c.value)), typeof le == 'string')) {
- const ee = cm(n, le, me.path),
- ve = t.resolve({ path: ee.path }, me),
- oe = o.createHref(ee.fullPath);
- return Fn(ee, ve, {
- params: p(ve.params),
- hash: fv(ee.hash),
- redirectedFrom: void 0,
- href: oe
- });
- }
- let he;
- if ('path' in le) he = Fn({}, le, { path: cm(n, le.path, me.path).path });
- else {
- const ee = Fn({}, le.params);
- for (const ve in ee) ee[ve] == null && delete ee[ve];
- (he = Fn({}, le, { params: v(ee) })), (me.params = v(me.params));
- }
- const ue = t.resolve(he, me),
- Ae = le.hash || '';
- ue.params = f(p(ue.params));
- const W = mne(r, Fn({}, le, { hash: tre(Ae), path: ue.path })),
- Q = o.createHref(W);
- return Fn(
- {
- fullPath: W,
- hash: Ae,
- query: r === O2 ? are(le.query) : le.query || {}
- },
- ue,
- { redirectedFrom: void 0, href: Q }
- );
- }
- function C(le) {
- return typeof le == 'string' ? cm(n, le, c.value.path) : Fn({}, le);
- }
- function R(le, me) {
- if (d !== le) return Bc(8, { from: me, to: le });
- }
- function S(le) {
- return T(le);
- }
- function _(le) {
- return S(Fn(C(le), { replace: !0 }));
- }
- function P(le) {
- const me = le.matched[le.matched.length - 1];
- if (me && me.redirect) {
- const { redirect: he } = me;
- let ue = typeof he == 'function' ? he(le) : he;
- return (
- typeof ue == 'string' &&
- ((ue =
- ue.includes('?') || ue.includes('#') ? (ue = C(ue)) : { path: ue }),
- (ue.params = {})),
- Fn(
- {
- query: le.query,
- hash: le.hash,
- params: 'path' in ue ? {} : le.params
- },
- ue
- )
- );
- }
- }
- function T(le, me) {
- const he = (d = y(le)),
- ue = c.value,
- Ae = le.state,
- W = le.force,
- Q = le.replace === !0,
- ee = P(he);
- if (ee)
- return T(
- Fn(C(ee), {
- state: typeof ee == 'object' ? Fn({}, Ae, ee.state) : Ae,
- force: W,
- replace: Q
- }),
- me || he
- );
- const ve = he;
- ve.redirectedFrom = me;
- let oe;
- return (
- !W &&
- bne(r, ue, he) &&
- ((oe = Bc(16, { to: ve, from: ue })), J(ue, ue, !0, !1)),
- (oe ? Promise.resolve(oe) : k(ve, ue))
- .catch(H => (zi(H) ? (zi(H, 2) ? H : X(H)) : G(H, ve, ue)))
- .then(H => {
- if (H) {
- if (zi(H, 2))
- return T(
- Fn({ replace: Q }, C(H.to), {
- state: typeof H.to == 'object' ? Fn({}, Ae, H.to.state) : Ae,
- force: W
- }),
- me || ve
- );
- } else H = E(ve, ue, !0, Q, Ae);
- return M(ve, ue, H), H;
- })
- );
- }
- function A(le, me) {
- const he = R(le, me);
- return he ? Promise.reject(he) : Promise.resolve();
- }
- function z(le) {
- const me = pe.values().next().value;
- return me && typeof me.runWithContext == 'function'
- ? me.runWithContext(le)
- : le();
- }
- function k(le, me) {
- let he;
- const [ue, Ae, W] = pre(le, me);
- he = dm(ue.reverse(), 'beforeRouteLeave', le, me);
- for (const ee of ue)
- ee.leaveGuards.forEach(ve => {
- he.push(tl(ve, le, me));
- });
- const Q = A.bind(null, le, me);
- return (
- he.push(Q),
- Ie(he)
- .then(() => {
- he = [];
- for (const ee of i.list()) he.push(tl(ee, le, me));
- return he.push(Q), Ie(he);
- })
- .then(() => {
- he = dm(Ae, 'beforeRouteUpdate', le, me);
- for (const ee of Ae)
- ee.updateGuards.forEach(ve => {
- he.push(tl(ve, le, me));
- });
- return he.push(Q), Ie(he);
- })
- .then(() => {
- he = [];
- for (const ee of le.matched)
- if (ee.beforeEnter && !me.matched.includes(ee))
- if (mi(ee.beforeEnter))
- for (const ve of ee.beforeEnter) he.push(tl(ve, le, me));
- else he.push(tl(ee.beforeEnter, le, me));
- return he.push(Q), Ie(he);
- })
- .then(
- () => (
- le.matched.forEach(ee => (ee.enterCallbacks = {})),
- (he = dm(W, 'beforeRouteEnter', le, me)),
- he.push(Q),
- Ie(he)
- )
- )
- .then(() => {
- he = [];
- for (const ee of a.list()) he.push(tl(ee, le, me));
- return he.push(Q), Ie(he);
- })
- .catch(ee => (zi(ee, 8) ? ee : Promise.reject(ee)))
- );
- }
- function M(le, me, he) {
- for (const ue of s.list()) z(() => ue(le, me, he));
- }
- function E(le, me, he, ue, Ae) {
- const W = R(le, me);
- if (W) return W;
- const Q = me === Xa,
- ee = bc ? history.state : {};
- he &&
- (ue || Q
- ? o.replace(le.fullPath, Fn({ scroll: Q && ee && ee.scroll }, Ae))
- : o.push(le.fullPath, Ae)),
- (c.value = le),
- J(le, me, he, Q),
- X();
- }
- let D;
- function L() {
- D ||
- (D = o.listen((le, me, he) => {
- if (!Fe.listening) return;
- const ue = y(le),
- Ae = P(ue);
- if (Ae) {
- T(Fn(Ae, { replace: !0 }), ue).catch(ru);
- return;
- }
- d = ue;
- const W = c.value;
- bc && Pne(C2(W.fullPath, he.delta), ep()),
- k(ue, W)
- .catch(Q =>
- zi(Q, 12)
- ? Q
- : zi(Q, 2)
- ? (T(Q.to, ue)
- .then(ee => {
- zi(ee, 20) &&
- !he.delta &&
- he.type === zu.pop &&
- o.go(-1, !1);
- })
- .catch(ru),
- Promise.reject())
- : (he.delta && o.go(-he.delta, !1), G(Q, ue, W))
- )
- .then(Q => {
- (Q = Q || E(ue, W, !1)),
- Q &&
- (he.delta && !zi(Q, 8)
- ? o.go(-he.delta, !1)
- : he.type === zu.pop && zi(Q, 20) && o.go(-1, !1)),
- M(ue, W, Q);
- })
- .catch(ru);
- }));
- }
- let j = Dd(),
- B = Dd(),
- q;
- function G(le, me, he) {
- X(le);
- const ue = B.list();
- return (
- ue.length ? ue.forEach(Ae => Ae(le, me, he)) : console.error(le),
- Promise.reject(le)
- );
- }
- function ne() {
- return q && c.value !== Xa
- ? Promise.resolve()
- : new Promise((le, me) => {
- j.add([le, me]);
- });
- }
- function X(le) {
- return (
- q ||
- ((q = !le),
- L(),
- j.list().forEach(([me, he]) => (le ? he(le) : me())),
- j.reset()),
- le
- );
- }
- function J(le, me, he, ue) {
- const { scrollBehavior: Ae } = e;
- if (!bc || !Ae) return Promise.resolve();
- const W =
- (!he && kne(C2(le.fullPath, 0))) ||
- ((ue || !he) && history.state && history.state.scroll) ||
- null;
- return mn()
- .then(() => Ae(le, me, W))
- .then(Q => Q && Rne(Q))
- .catch(Q => G(Q, le, me));
- }
- const re = le => o.go(le);
- let ce;
- const pe = new Set(),
- Fe = {
- currentRoute: c,
- listening: !0,
- addRoute: m,
- removeRoute: g,
- hasRoute: x,
- getRoutes: w,
- resolve: y,
- options: e,
- push: S,
- replace: _,
- go: re,
- back: () => re(-1),
- forward: () => re(1),
- beforeEach: i.add,
- beforeResolve: a.add,
- afterEach: s.add,
- onError: B.add,
- isReady: ne,
- install(le) {
- const me = this;
- le.component('RouterLink', dre),
- le.component('RouterView', zT),
- (le.config.globalProperties.$router = me),
- Object.defineProperty(le.config.globalProperties, '$route', {
- enumerable: !0,
- get: () => ll(c)
- }),
- bc &&
- !ce &&
- c.value === Xa &&
- ((ce = !0), S(o.location).catch(Ae => {}));
- const he = {};
- for (const Ae in Xa) he[Ae] = I(() => c.value[Ae]);
- le.provide(tp, me), le.provide(e1, Xi(he)), le.provide(l0, c);
- const ue = le.unmount;
- pe.add(le),
- (le.unmount = function () {
- pe.delete(le),
- pe.size < 1 &&
- ((d = Xa),
- D && D(),
- (D = null),
- (c.value = Xa),
- (ce = !1),
- (q = !1)),
- ue();
- });
- }
- };
- function Ie(le) {
- return le.reduce((me, he) => me.then(() => z(he)), Promise.resolve());
- }
- return Fe;
- }
- function pre(e, t) {
- const n = [],
- r = [],
- o = [],
- i = Math.max(t.matched.length, e.matched.length);
- for (let a = 0; a < i; a++) {
- const s = t.matched[a];
- s && (e.matched.find(d => Fc(d, s)) ? r.push(s) : n.push(s));
- const c = e.matched[a];
- c && (t.matched.find(d => Fc(d, c)) || o.push(c));
- }
- return [n, r, o];
- }
- function gre() {
- return Ze(tp);
- }
- function dle() {
- return Ze(e1);
- }
- const mre = [
- '#2d8cf0',
- '#0960bd',
- '#0084f4',
- '#009688',
- '#536dfe',
- '#ff5c93',
- '#ee4f12',
- '#0096c7',
- '#9c27b0',
- '#ff9800',
- '#FF3D68',
- '#00C1D4',
- '#71EFA3',
- '#171010',
- '#78DEC7',
- '#1768AC',
- '#FB9300',
- '#FC5404'
- ],
- xc = { darkTheme: !1, appTheme: '#198CFE', appThemeList: mre };
- var t1 = (e => (
- (e.BASE_LOGIN = '/login'),
- (e.BASE_LOGIN_NAME = 'Login'),
- (e.REDIRECT = '/redirect'),
- (e.BASE_HOME = '/home'),
- (e.SONG_DEFAULT_COVER =
- 'https://gyt.ks3-cn-beijing.ksyuncs.com/courseware/1687916228530.png'),
- e
- ))(t1 || {}),
- bre = (e => (
- (e.IMG = 'IMG'),
- (e.VIDEO = 'VIDEO'),
- (e.MUSIC = 'MUSIC'),
- (e.SONG = 'SONG'),
- e
- ))(bre || {}),
- hv = { exports: {} };
- /**
- * @license
- * Lodash <https://lodash.com/>
- * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
- * Released under MIT license <https://lodash.com/license>
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
- */ hv.exports;
- (function (e, t) {
- (function () {
- var n,
- r = '4.17.21',
- o = 200,
- i = 'Unsupported core-js use. Try https://npms.io/search?q=ponyfill.',
- a = 'Expected a function',
- s = 'Invalid `variable` option passed into `_.template`',
- c = '__lodash_hash_undefined__',
- d = 500,
- f = '__lodash_placeholder__',
- v = 1,
- p = 2,
- m = 4,
- g = 1,
- w = 2,
- x = 1,
- y = 2,
- C = 4,
- R = 8,
- S = 16,
- _ = 32,
- P = 64,
- T = 128,
- A = 256,
- z = 512,
- k = 30,
- M = '...',
- E = 800,
- D = 16,
- L = 1,
- j = 2,
- B = 3,
- q = 1 / 0,
- G = 9007199254740991,
- ne = 17976931348623157e292,
- X = 0 / 0,
- J = 4294967295,
- re = J - 1,
- ce = J >>> 1,
- pe = [
- ['ary', T],
- ['bind', x],
- ['bindKey', y],
- ['curry', R],
- ['curryRight', S],
- ['flip', z],
- ['partial', _],
- ['partialRight', P],
- ['rearg', A]
- ],
- Fe = '[object Arguments]',
- Ie = '[object Array]',
- le = '[object AsyncFunction]',
- me = '[object Boolean]',
- he = '[object Date]',
- ue = '[object DOMException]',
- Ae = '[object Error]',
- W = '[object Function]',
- Q = '[object GeneratorFunction]',
- ee = '[object Map]',
- ve = '[object Number]',
- oe = '[object Null]',
- H = '[object Object]',
- ae = '[object Promise]',
- ge = '[object Proxy]',
- Ce = '[object RegExp]',
- se = '[object Set]',
- Se = '[object String]',
- Ne = '[object Symbol]',
- Ge = '[object Undefined]',
- it = '[object WeakMap]',
- dt = '[object WeakSet]',
- xt = '[object ArrayBuffer]',
- Me = '[object DataView]',
- ut = '[object Float32Array]',
- wt = '[object Float64Array]',
- Lt = '[object Int8Array]',
- ot = '[object Int16Array]',
- ct = '[object Int32Array]',
- Xe = '[object Uint8Array]',
- Qe = '[object Uint8ClampedArray]',
- ie = '[object Uint16Array]',
- $e = '[object Uint32Array]',
- Ue = /\b__p \+= '';/g,
- lt = /\b(__p \+=) '' \+/g,
- st = /(__e\(.*?\)|\b__t\)) \+\n'';/g,
- be = /&(?:amp|lt|gt|quot|#39);/g,
- He = /[&<>"']/g,
- tt = RegExp(be.source),
- pt = RegExp(He.source),
- _e = /<%-([\s\S]+?)%>/g,
- Ve = /<%([\s\S]+?)%>/g,
- nt = /<%=([\s\S]+?)%>/g,
- Ot = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
- $n = /^\w*$/,
- jn =
- /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,
- Zt = /[\\^$.*+?()[\]{}|]/g,
- we = RegExp(Zt.source),
- je = /^\s+/,
- Ct = /\s/,
- qt = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,
- xe = /\{\n\/\* \[wrapped with (.+)\] \*/,
- De = /,? & /,
- rt = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,
- ft = /[()=,{}\[\]\/\s]/,
- gt = /\\(\\)?/g,
- bn = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,
- ln = /\w*$/,
- ke = /^[-+]0x[0-9a-f]+$/i,
- Je = /^0b[01]+$/i,
- vt = /^\[object .+?Constructor\]$/,
- Ut = /^0o[0-7]+$/i,
- dn = /^(?:0|[1-9]\d*)$/,
- nn = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,
- kr = /($^)/,
- Yt = /['\n\r\u2028\u2029\\]/g,
- On = '\\ud800-\\udfff',
- So = '\\u0300-\\u036f',
- Lo = '\\ufe20-\\ufe2f',
- No = '\\u20d0-\\u20ff',
- _o = So + Lo + No,
- Xr = '\\u2700-\\u27bf',
- za = 'a-z\\xdf-\\xf6\\xf8-\\xff',
- Pl = '\\xac\\xb1\\xd7\\xf7',
- Zr = '\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf',
- kl = '\\u2000-\\u206f',
- Tl =
- ' \\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',
- Aa = 'A-Z\\xc0-\\xd6\\xd8-\\xde',
- Ea = '\\ufe0e\\ufe0f',
- Ma = Pl + Zr + kl + Tl,
- $l = "['’]",
- Ia = '[' + On + ']',
- Ds = '[' + Ma + ']',
- Da = '[' + _o + ']',
- Fs = '\\d+',
- Bs = '[' + Xr + ']',
- Ls = '[' + za + ']',
- Ns = '[^' + On + Ma + Fs + Xr + za + Aa + ']',
- ta = '\\ud83c[\\udffb-\\udfff]',
- ld = '(?:' + Da + '|' + ta + ')',
- Hs = '[^' + On + ']',
- Ol = '(?:\\ud83c[\\udde6-\\uddff]){2}',
- zl = '[\\ud800-\\udbff][\\udc00-\\udfff]',
- Ci = '[' + Aa + ']',
- js = '\\u200d',
- Us = '(?:' + Ls + '|' + Ns + ')',
- sd = '(?:' + Ci + '|' + Ns + ')',
- ef = '(?:' + $l + '(?:d|ll|m|re|s|t|ve))?',
- tf = '(?:' + $l + '(?:D|LL|M|RE|S|T|VE))?',
- cd = ld + '?',
- nf = '[' + Ea + ']?',
- rf = '(?:' + js + '(?:' + [Hs, Ol, zl].join('|') + ')' + nf + cd + ')*',
- op = '\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])',
- ip = '\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])',
- Al = nf + cd + rf,
- ap = '(?:' + [Bs, Ol, zl].join('|') + ')' + Al,
- Fa = '(?:' + [Hs + Da + '?', Da, Ol, zl, Ia].join('|') + ')',
- Si = RegExp($l, 'g'),
- lp = RegExp(Da, 'g'),
- Ws = RegExp(ta + '(?=' + ta + ')|' + Fa + Al, 'g'),
- Vs = RegExp(
- [
- Ci + '?' + Ls + '+' + ef + '(?=' + [Ds, Ci, '$'].join('|') + ')',
- sd + '+' + tf + '(?=' + [Ds, Ci + Us, '$'].join('|') + ')',
- Ci + '?' + Us + '+' + ef,
- Ci + '+' + tf,
- ip,
- op,
- Fs,
- ap
- ].join('|'),
- 'g'
- ),
- sp = RegExp('[' + js + On + _o + Ea + ']'),
- cp = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,
- dp = [
- 'Array',
- 'Buffer',
- 'DataView',
- 'Date',
- 'Error',
- 'Float32Array',
- 'Float64Array',
- 'Function',
- 'Int8Array',
- 'Int16Array',
- 'Int32Array',
- 'Map',
- 'Math',
- 'Object',
- 'Promise',
- 'RegExp',
- 'Set',
- 'String',
- 'Symbol',
- 'TypeError',
- 'Uint8Array',
- 'Uint8ClampedArray',
- 'Uint16Array',
- 'Uint32Array',
- 'WeakMap',
- '_',
- 'clearTimeout',
- 'isFinite',
- 'parseInt',
- 'setTimeout'
- ],
- of = -1,
- Un = {};
- (Un[ut] =
- Un[wt] =
- Un[Lt] =
- Un[ot] =
- Un[ct] =
- Un[Xe] =
- Un[Qe] =
- Un[ie] =
- Un[$e] =
- !0),
- (Un[Fe] =
- Un[Ie] =
- Un[xt] =
- Un[me] =
- Un[Me] =
- Un[he] =
- Un[Ae] =
- Un[W] =
- Un[ee] =
- Un[ve] =
- Un[H] =
- Un[Ce] =
- Un[se] =
- Un[Se] =
- Un[it] =
- !1);
- var Wn = {};
- (Wn[Fe] =
- Wn[Ie] =
- Wn[xt] =
- Wn[Me] =
- Wn[me] =
- Wn[he] =
- Wn[ut] =
- Wn[wt] =
- Wn[Lt] =
- Wn[ot] =
- Wn[ct] =
- Wn[ee] =
- Wn[ve] =
- Wn[H] =
- Wn[Ce] =
- Wn[se] =
- Wn[Se] =
- Wn[Ne] =
- Wn[Xe] =
- Wn[Qe] =
- Wn[ie] =
- Wn[$e] =
- !0),
- (Wn[Ae] = Wn[W] = Wn[it] = !1);
- var Ks = {
- À: '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'
- },
- na = {
- '&': '&',
- '<': '<',
- '>': '>',
- '"': '"',
- "'": '''
- },
- dd = {
- '&': '&',
- '<': '<',
- '>': '>',
- '"': '"',
- ''': "'"
- },
- af = {
- '\\': '\\',
- "'": "'",
- '\n': 'n',
- '\r': 'r',
- '\u2028': 'u2028',
- '\u2029': 'u2029'
- },
- lf = parseFloat,
- ti = parseInt,
- ud = typeof Nn == 'object' && Nn && Nn.Object === Object && Nn,
- up = typeof self == 'object' && self && self.Object === Object && self,
- ur = ud || up || Function('return this')(),
- El = t && !t.nodeType && t,
- lo = El && !0 && e && !e.nodeType && e,
- Ml = lo && lo.exports === El,
- Il = Ml && ud.process,
- Qr = (function () {
- try {
- var Pe = lo && lo.require && lo.require('util').types;
- return Pe || (Il && Il.binding && Il.binding('util'));
- } catch (We) {}
- })(),
- sf = Qr && Qr.isArrayBuffer,
- cf = Qr && Qr.isDate,
- df = Qr && Qr.isMap,
- Dl = Qr && Qr.isRegExp,
- uf = Qr && Qr.isSet,
- ff = Qr && Qr.isTypedArray;
- function Jr(Pe, We, Be) {
- switch (Be.length) {
- case 0:
- return Pe.call(We);
- case 1:
- return Pe.call(We, Be[0]);
- case 2:
- return Pe.call(We, Be[0], Be[1]);
- case 3:
- return Pe.call(We, Be[0], Be[1], Be[2]);
- }
- return Pe.apply(We, Be);
- }
- function K(Pe, We, Be, St) {
- for (var Qt = -1, zn = Pe == null ? 0 : Pe.length; ++Qt < zn; ) {
- var xr = Pe[Qt];
- We(St, xr, Be(xr), Pe);
- }
- return St;
- }
- function de(Pe, We) {
- for (
- var Be = -1, St = Pe == null ? 0 : Pe.length;
- ++Be < St && We(Pe[Be], Be, Pe) !== !1;
- );
- return Pe;
- }
- function Le(Pe, We) {
- for (
- var Be = Pe == null ? 0 : Pe.length;
- Be-- && We(Pe[Be], Be, Pe) !== !1;
- );
- return Pe;
- }
- function at(Pe, We) {
- for (var Be = -1, St = Pe == null ? 0 : Pe.length; ++Be < St; )
- if (!We(Pe[Be], Be, Pe)) return !1;
- return !0;
- }
- function It(Pe, We) {
- for (
- var Be = -1, St = Pe == null ? 0 : Pe.length, Qt = 0, zn = [];
- ++Be < St;
- ) {
- var xr = Pe[Be];
- We(xr, Be, Pe) && (zn[Qt++] = xr);
- }
- return zn;
- }
- function Pt(Pe, We) {
- var Be = Pe == null ? 0 : Pe.length;
- return !!Be && fo(Pe, We, 0) > -1;
- }
- function un(Pe, We, Be) {
- for (var St = -1, Qt = Pe == null ? 0 : Pe.length; ++St < Qt; )
- if (Be(We, Pe[St])) return !0;
- return !1;
- }
- function Dt(Pe, We) {
- for (
- var Be = -1, St = Pe == null ? 0 : Pe.length, Qt = Array(St);
- ++Be < St;
- )
- Qt[Be] = We(Pe[Be], Be, Pe);
- return Qt;
- }
- function kn(Pe, We) {
- for (var Be = -1, St = We.length, Qt = Pe.length; ++Be < St; )
- Pe[Qt + Be] = We[Be];
- return Pe;
- }
- function ir(Pe, We, Be, St) {
- var Qt = -1,
- zn = Pe == null ? 0 : Pe.length;
- for (St && zn && (Be = Pe[++Qt]); ++Qt < zn; )
- Be = We(Be, Pe[Qt], Qt, Pe);
- return Be;
- }
- function Ir(Pe, We, Be, St) {
- var Qt = Pe == null ? 0 : Pe.length;
- for (St && Qt && (Be = Pe[--Qt]); Qt--; ) Be = We(Be, Pe[Qt], Qt, Pe);
- return Be;
- }
- function Tr(Pe, We) {
- for (var Be = -1, St = Pe == null ? 0 : Pe.length; ++Be < St; )
- if (We(Pe[Be], Be, Pe)) return !0;
- return !1;
- }
- var mr = fp('length');
- function so(Pe) {
- return Pe.split('');
- }
- function co(Pe) {
- return Pe.match(rt) || [];
- }
- function ni(Pe, We, Be) {
- var St;
- return (
- Be(Pe, function (Qt, zn, xr) {
- if (We(Qt, zn, xr)) return (St = zn), !1;
- }),
- St
- );
- }
- function uo(Pe, We, Be, St) {
- for (var Qt = Pe.length, zn = Be + (St ? 1 : -1); St ? zn-- : ++zn < Qt; )
- if (We(Pe[zn], zn, Pe)) return zn;
- return -1;
- }
- function fo(Pe, We, Be) {
- return We === We ? z$(Pe, We, Be) : uo(Pe, Fl, Be);
- }
- function hf(Pe, We, Be, St) {
- for (var Qt = Be - 1, zn = Pe.length; ++Qt < zn; )
- if (St(Pe[Qt], We)) return Qt;
- return -1;
- }
- function Fl(Pe) {
- return Pe !== Pe;
- }
- function Bl(Pe, We) {
- var Be = Pe == null ? 0 : Pe.length;
- return Be ? vp(Pe, We) / Be : X;
- }
- function fp(Pe) {
- return function (We) {
- return We == null ? n : We[Pe];
- };
- }
- function hp(Pe) {
- return function (We) {
- return Pe == null ? n : Pe[We];
- };
- }
- function g1(Pe, We, Be, St, Qt) {
- return (
- Qt(Pe, function (zn, xr, Vn) {
- Be = St ? ((St = !1), zn) : We(Be, zn, xr, Vn);
- }),
- Be
- );
- }
- function w$(Pe, We) {
- var Be = Pe.length;
- for (Pe.sort(We); Be--; ) Pe[Be] = Pe[Be].value;
- return Pe;
- }
- function vp(Pe, We) {
- for (var Be, St = -1, Qt = Pe.length; ++St < Qt; ) {
- var zn = We(Pe[St]);
- zn !== n && (Be = Be === n ? zn : Be + zn);
- }
- return Be;
- }
- function pp(Pe, We) {
- for (var Be = -1, St = Array(Pe); ++Be < Pe; ) St[Be] = We(Be);
- return St;
- }
- function C$(Pe, We) {
- return Dt(We, function (Be) {
- return [Be, Pe[Be]];
- });
- }
- function m1(Pe) {
- return Pe && Pe.slice(0, w1(Pe) + 1).replace(je, '');
- }
- function Ro(Pe) {
- return function (We) {
- return Pe(We);
- };
- }
- function gp(Pe, We) {
- return Dt(We, function (Be) {
- return Pe[Be];
- });
- }
- function fd(Pe, We) {
- return Pe.has(We);
- }
- function b1(Pe, We) {
- for (var Be = -1, St = Pe.length; ++Be < St && fo(We, Pe[Be], 0) > -1; );
- return Be;
- }
- function y1(Pe, We) {
- for (var Be = Pe.length; Be-- && fo(We, Pe[Be], 0) > -1; );
- return Be;
- }
- function S$(Pe, We) {
- for (var Be = Pe.length, St = 0; Be--; ) Pe[Be] === We && ++St;
- return St;
- }
- var _$ = hp(Ks),
- R$ = hp(na);
- function P$(Pe) {
- return '\\' + af[Pe];
- }
- function k$(Pe, We) {
- return Pe == null ? n : Pe[We];
- }
- function qs(Pe) {
- return sp.test(Pe);
- }
- function T$(Pe) {
- return cp.test(Pe);
- }
- function $$(Pe) {
- for (var We, Be = []; !(We = Pe.next()).done; ) Be.push(We.value);
- return Be;
- }
- function mp(Pe) {
- var We = -1,
- Be = Array(Pe.size);
- return (
- Pe.forEach(function (St, Qt) {
- Be[++We] = [Qt, St];
- }),
- Be
- );
- }
- function x1(Pe, We) {
- return function (Be) {
- return Pe(We(Be));
- };
- }
- function Ba(Pe, We) {
- for (var Be = -1, St = Pe.length, Qt = 0, zn = []; ++Be < St; ) {
- var xr = Pe[Be];
- (xr === We || xr === f) && ((Pe[Be] = f), (zn[Qt++] = Be));
- }
- return zn;
- }
- function vf(Pe) {
- var We = -1,
- Be = Array(Pe.size);
- return (
- Pe.forEach(function (St) {
- Be[++We] = St;
- }),
- Be
- );
- }
- function O$(Pe) {
- var We = -1,
- Be = Array(Pe.size);
- return (
- Pe.forEach(function (St) {
- Be[++We] = [St, St];
- }),
- Be
- );
- }
- function z$(Pe, We, Be) {
- for (var St = Be - 1, Qt = Pe.length; ++St < Qt; )
- if (Pe[St] === We) return St;
- return -1;
- }
- function A$(Pe, We, Be) {
- for (var St = Be + 1; St--; ) if (Pe[St] === We) return St;
- return St;
- }
- function Ys(Pe) {
- return qs(Pe) ? M$(Pe) : mr(Pe);
- }
- function ri(Pe) {
- return qs(Pe) ? I$(Pe) : so(Pe);
- }
- function w1(Pe) {
- for (var We = Pe.length; We-- && Ct.test(Pe.charAt(We)); );
- return We;
- }
- var E$ = hp(dd);
- function M$(Pe) {
- for (var We = (Ws.lastIndex = 0); Ws.test(Pe); ) ++We;
- return We;
- }
- function I$(Pe) {
- return Pe.match(Ws) || [];
- }
- function D$(Pe) {
- return Pe.match(Vs) || [];
- }
- var F$ = function Pe(We) {
- We = We == null ? ur : Gs.defaults(ur.Object(), We, Gs.pick(ur, dp));
- var Be = We.Array,
- St = We.Date,
- Qt = We.Error,
- zn = We.Function,
- xr = We.Math,
- Vn = We.Object,
- bp = We.RegExp,
- B$ = We.String,
- Ho = We.TypeError,
- pf = Be.prototype,
- L$ = zn.prototype,
- Xs = Vn.prototype,
- gf = We['__core-js_shared__'],
- mf = L$.toString,
- In = Xs.hasOwnProperty,
- N$ = 0,
- C1 = (function () {
- var l = /[^.]+$/.exec((gf && gf.keys && gf.keys.IE_PROTO) || '');
- return l ? 'Symbol(src)_1.' + l : '';
- })(),
- bf = Xs.toString,
- H$ = mf.call(Vn),
- j$ = ur._,
- U$ = bp(
- '^' +
- mf
- .call(In)
- .replace(Zt, '\\$&')
- .replace(
- /hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,
- '$1.*?'
- ) +
- '$'
- ),
- yf = Ml ? We.Buffer : n,
- La = We.Symbol,
- xf = We.Uint8Array,
- S1 = yf ? yf.allocUnsafe : n,
- wf = x1(Vn.getPrototypeOf, Vn),
- _1 = Vn.create,
- R1 = Xs.propertyIsEnumerable,
- Cf = pf.splice,
- P1 = La ? La.isConcatSpreadable : n,
- hd = La ? La.iterator : n,
- Ll = La ? La.toStringTag : n,
- Sf = (function () {
- try {
- var l = Wl(Vn, 'defineProperty');
- return l({}, '', {}), l;
- } catch (u) {}
- })(),
- W$ = We.clearTimeout !== ur.clearTimeout && We.clearTimeout,
- V$ = St && St.now !== ur.Date.now && St.now,
- K$ = We.setTimeout !== ur.setTimeout && We.setTimeout,
- _f = xr.ceil,
- Rf = xr.floor,
- yp = Vn.getOwnPropertySymbols,
- q$ = yf ? yf.isBuffer : n,
- k1 = We.isFinite,
- Y$ = pf.join,
- G$ = x1(Vn.keys, Vn),
- wr = xr.max,
- Nr = xr.min,
- X$ = St.now,
- Z$ = We.parseInt,
- T1 = xr.random,
- Q$ = pf.reverse,
- xp = Wl(We, 'DataView'),
- vd = Wl(We, 'Map'),
- wp = Wl(We, 'Promise'),
- Zs = Wl(We, 'Set'),
- pd = Wl(We, 'WeakMap'),
- gd = Wl(Vn, 'create'),
- Pf = pd && new pd(),
- Qs = {},
- J$ = Vl(xp),
- e5 = Vl(vd),
- t5 = Vl(wp),
- n5 = Vl(Zs),
- r5 = Vl(pd),
- kf = La ? La.prototype : n,
- md = kf ? kf.valueOf : n,
- $1 = kf ? kf.toString : n;
- function Y(l) {
- if (ar(l) && !Jt(l) && !(l instanceof fn)) {
- if (l instanceof jo) return l;
- if (In.call(l, '__wrapped__')) return Ox(l);
- }
- return new jo(l);
- }
- var Js = (function () {
- function l() {}
- return function (u) {
- if (!Qn(u)) return {};
- if (_1) return _1(u);
- l.prototype = u;
- var b = new l();
- return (l.prototype = n), b;
- };
- })();
- function Tf() {}
- function jo(l, u) {
- (this.__wrapped__ = l),
- (this.__actions__ = []),
- (this.__chain__ = !!u),
- (this.__index__ = 0),
- (this.__values__ = n);
- }
- (Y.templateSettings = {
- escape: _e,
- evaluate: Ve,
- interpolate: nt,
- variable: '',
- imports: { _: Y }
- }),
- (Y.prototype = Tf.prototype),
- (Y.prototype.constructor = Y),
- (jo.prototype = Js(Tf.prototype)),
- (jo.prototype.constructor = jo);
- function fn(l) {
- (this.__wrapped__ = l),
- (this.__actions__ = []),
- (this.__dir__ = 1),
- (this.__filtered__ = !1),
- (this.__iteratees__ = []),
- (this.__takeCount__ = J),
- (this.__views__ = []);
- }
- function o5() {
- var l = new fn(this.__wrapped__);
- return (
- (l.__actions__ = ho(this.__actions__)),
- (l.__dir__ = this.__dir__),
- (l.__filtered__ = this.__filtered__),
- (l.__iteratees__ = ho(this.__iteratees__)),
- (l.__takeCount__ = this.__takeCount__),
- (l.__views__ = ho(this.__views__)),
- l
- );
- }
- function i5() {
- if (this.__filtered__) {
- var l = new fn(this);
- (l.__dir__ = -1), (l.__filtered__ = !0);
- } else (l = this.clone()), (l.__dir__ *= -1);
- return l;
- }
- function a5() {
- var l = this.__wrapped__.value(),
- u = this.__dir__,
- b = Jt(l),
- $ = u < 0,
- N = b ? l.length : 0,
- te = bO(0, N, this.__views__),
- fe = te.start,
- ye = te.end,
- Te = ye - fe,
- qe = $ ? ye : fe - 1,
- Ye = this.__iteratees__,
- et = Ye.length,
- mt = 0,
- Tt = Nr(Te, this.__takeCount__);
- if (!b || (!$ && N == Te && Tt == Te)) return J1(l, this.__actions__);
- var Wt = [];
- e: for (; Te-- && mt < Tt; ) {
- qe += u;
- for (var rn = -1, Vt = l[qe]; ++rn < et; ) {
- var sn = Ye[rn],
- yn = sn.iteratee,
- To = sn.type,
- no = yn(Vt);
- if (To == j) Vt = no;
- else if (!no) {
- if (To == L) continue e;
- break e;
- }
- }
- Wt[mt++] = Vt;
- }
- return Wt;
- }
- (fn.prototype = Js(Tf.prototype)), (fn.prototype.constructor = fn);
- function Nl(l) {
- var u = -1,
- b = l == null ? 0 : l.length;
- for (this.clear(); ++u < b; ) {
- var $ = l[u];
- this.set($[0], $[1]);
- }
- }
- function l5() {
- (this.__data__ = gd ? gd(null) : {}), (this.size = 0);
- }
- function s5(l) {
- var u = this.has(l) && delete this.__data__[l];
- return (this.size -= u ? 1 : 0), u;
- }
- function c5(l) {
- var u = this.__data__;
- if (gd) {
- var b = u[l];
- return b === c ? n : b;
- }
- return In.call(u, l) ? u[l] : n;
- }
- function d5(l) {
- var u = this.__data__;
- return gd ? u[l] !== n : In.call(u, l);
- }
- function u5(l, u) {
- var b = this.__data__;
- return (
- (this.size += this.has(l) ? 0 : 1),
- (b[l] = gd && u === n ? c : u),
- this
- );
- }
- (Nl.prototype.clear = l5),
- (Nl.prototype.delete = s5),
- (Nl.prototype.get = c5),
- (Nl.prototype.has = d5),
- (Nl.prototype.set = u5);
- function ra(l) {
- var u = -1,
- b = l == null ? 0 : l.length;
- for (this.clear(); ++u < b; ) {
- var $ = l[u];
- this.set($[0], $[1]);
- }
- }
- function f5() {
- (this.__data__ = []), (this.size = 0);
- }
- function h5(l) {
- var u = this.__data__,
- b = $f(u, l);
- if (b < 0) return !1;
- var $ = u.length - 1;
- return b == $ ? u.pop() : Cf.call(u, b, 1), --this.size, !0;
- }
- function v5(l) {
- var u = this.__data__,
- b = $f(u, l);
- return b < 0 ? n : u[b][1];
- }
- function p5(l) {
- return $f(this.__data__, l) > -1;
- }
- function g5(l, u) {
- var b = this.__data__,
- $ = $f(b, l);
- return $ < 0 ? (++this.size, b.push([l, u])) : (b[$][1] = u), this;
- }
- (ra.prototype.clear = f5),
- (ra.prototype.delete = h5),
- (ra.prototype.get = v5),
- (ra.prototype.has = p5),
- (ra.prototype.set = g5);
- function oa(l) {
- var u = -1,
- b = l == null ? 0 : l.length;
- for (this.clear(); ++u < b; ) {
- var $ = l[u];
- this.set($[0], $[1]);
- }
- }
- function m5() {
- (this.size = 0),
- (this.__data__ = {
- hash: new Nl(),
- map: new (vd || ra)(),
- string: new Nl()
- });
- }
- function b5(l) {
- var u = Hf(this, l).delete(l);
- return (this.size -= u ? 1 : 0), u;
- }
- function y5(l) {
- return Hf(this, l).get(l);
- }
- function x5(l) {
- return Hf(this, l).has(l);
- }
- function w5(l, u) {
- var b = Hf(this, l),
- $ = b.size;
- return b.set(l, u), (this.size += b.size == $ ? 0 : 1), this;
- }
- (oa.prototype.clear = m5),
- (oa.prototype.delete = b5),
- (oa.prototype.get = y5),
- (oa.prototype.has = x5),
- (oa.prototype.set = w5);
- function Hl(l) {
- var u = -1,
- b = l == null ? 0 : l.length;
- for (this.__data__ = new oa(); ++u < b; ) this.add(l[u]);
- }
- function C5(l) {
- return this.__data__.set(l, c), this;
- }
- function S5(l) {
- return this.__data__.has(l);
- }
- (Hl.prototype.add = Hl.prototype.push = C5), (Hl.prototype.has = S5);
- function oi(l) {
- var u = (this.__data__ = new ra(l));
- this.size = u.size;
- }
- function _5() {
- (this.__data__ = new ra()), (this.size = 0);
- }
- function R5(l) {
- var u = this.__data__,
- b = u.delete(l);
- return (this.size = u.size), b;
- }
- function P5(l) {
- return this.__data__.get(l);
- }
- function k5(l) {
- return this.__data__.has(l);
- }
- function T5(l, u) {
- var b = this.__data__;
- if (b instanceof ra) {
- var $ = b.__data__;
- if (!vd || $.length < o - 1)
- return $.push([l, u]), (this.size = ++b.size), this;
- b = this.__data__ = new oa($);
- }
- return b.set(l, u), (this.size = b.size), this;
- }
- (oi.prototype.clear = _5),
- (oi.prototype.delete = R5),
- (oi.prototype.get = P5),
- (oi.prototype.has = k5),
- (oi.prototype.set = T5);
- function O1(l, u) {
- var b = Jt(l),
- $ = !b && Kl(l),
- N = !b && !$ && Wa(l),
- te = !b && !$ && !N && rc(l),
- fe = b || $ || N || te,
- ye = fe ? pp(l.length, B$) : [],
- Te = ye.length;
- for (var qe in l)
- (u || In.call(l, qe)) &&
- !(
- fe &&
- (qe == 'length' ||
- (N && (qe == 'offset' || qe == 'parent')) ||
- (te &&
- (qe == 'buffer' ||
- qe == 'byteLength' ||
- qe == 'byteOffset')) ||
- sa(qe, Te))
- ) &&
- ye.push(qe);
- return ye;
- }
- function z1(l) {
- var u = l.length;
- return u ? l[Ap(0, u - 1)] : n;
- }
- function $5(l, u) {
- return jf(ho(l), jl(u, 0, l.length));
- }
- function O5(l) {
- return jf(ho(l));
- }
- function Cp(l, u, b) {
- ((b !== n && !ii(l[u], b)) || (b === n && !(u in l))) && ia(l, u, b);
- }
- function bd(l, u, b) {
- var $ = l[u];
- (!(In.call(l, u) && ii($, b)) || (b === n && !(u in l))) &&
- ia(l, u, b);
- }
- function $f(l, u) {
- for (var b = l.length; b--; ) if (ii(l[b][0], u)) return b;
- return -1;
- }
- function z5(l, u, b, $) {
- return (
- Na(l, function (N, te, fe) {
- u($, N, b(N), fe);
- }),
- $
- );
- }
- function A1(l, u) {
- return l && Ri(u, $r(u), l);
- }
- function A5(l, u) {
- return l && Ri(u, po(u), l);
- }
- function ia(l, u, b) {
- u == '__proto__' && Sf
- ? Sf(l, u, {
- configurable: !0,
- enumerable: !0,
- value: b,
- writable: !0
- })
- : (l[u] = b);
- }
- function Sp(l, u) {
- for (var b = -1, $ = u.length, N = Be($), te = l == null; ++b < $; )
- N[b] = te ? n : rg(l, u[b]);
- return N;
- }
- function jl(l, u, b) {
- return (
- l === l &&
- (b !== n && (l = l <= b ? l : b),
- u !== n && (l = l >= u ? l : u)),
- l
- );
- }
- function Uo(l, u, b, $, N, te) {
- var fe,
- ye = u & v,
- Te = u & p,
- qe = u & m;
- if ((b && (fe = N ? b(l, $, N, te) : b(l)), fe !== n)) return fe;
- if (!Qn(l)) return l;
- var Ye = Jt(l);
- if (Ye) {
- if (((fe = xO(l)), !ye)) return ho(l, fe);
- } else {
- var et = Hr(l),
- mt = et == W || et == Q;
- if (Wa(l)) return nx(l, ye);
- if (et == H || et == Fe || (mt && !N)) {
- if (((fe = Te || mt ? {} : wx(l)), !ye))
- return Te ? cO(l, A5(fe, l)) : sO(l, A1(fe, l));
- } else {
- if (!Wn[et]) return N ? l : {};
- fe = wO(l, et, ye);
- }
- }
- te || (te = new oi());
- var Tt = te.get(l);
- if (Tt) return Tt;
- te.set(l, fe),
- Xx(l)
- ? l.forEach(function (Vt) {
- fe.add(Uo(Vt, u, b, Vt, l, te));
- })
- : Yx(l) &&
- l.forEach(function (Vt, sn) {
- fe.set(sn, Uo(Vt, u, b, sn, l, te));
- });
- var Wt = qe ? (Te ? Up : jp) : Te ? po : $r,
- rn = Ye ? n : Wt(l);
- return (
- de(rn || l, function (Vt, sn) {
- rn && ((sn = Vt), (Vt = l[sn])),
- bd(fe, sn, Uo(Vt, u, b, sn, l, te));
- }),
- fe
- );
- }
- function E5(l) {
- var u = $r(l);
- return function (b) {
- return E1(b, l, u);
- };
- }
- function E1(l, u, b) {
- var $ = b.length;
- if (l == null) return !$;
- for (l = Vn(l); $--; ) {
- var N = b[$],
- te = u[N],
- fe = l[N];
- if ((fe === n && !(N in l)) || !te(fe)) return !1;
- }
- return !0;
- }
- function M1(l, u, b) {
- if (typeof l != 'function') throw new Ho(a);
- return Rd(function () {
- l.apply(n, b);
- }, u);
- }
- function yd(l, u, b, $) {
- var N = -1,
- te = Pt,
- fe = !0,
- ye = l.length,
- Te = [],
- qe = u.length;
- if (!ye) return Te;
- b && (u = Dt(u, Ro(b))),
- $
- ? ((te = un), (fe = !1))
- : u.length >= o && ((te = fd), (fe = !1), (u = new Hl(u)));
- e: for (; ++N < ye; ) {
- var Ye = l[N],
- et = b == null ? Ye : b(Ye);
- if (((Ye = $ || Ye !== 0 ? Ye : 0), fe && et === et)) {
- for (var mt = qe; mt--; ) if (u[mt] === et) continue e;
- Te.push(Ye);
- } else te(u, et, $) || Te.push(Ye);
- }
- return Te;
- }
- var Na = lx(_i),
- I1 = lx(Rp, !0);
- function M5(l, u) {
- var b = !0;
- return (
- Na(l, function ($, N, te) {
- return (b = !!u($, N, te)), b;
- }),
- b
- );
- }
- function Of(l, u, b) {
- for (var $ = -1, N = l.length; ++$ < N; ) {
- var te = l[$],
- fe = u(te);
- if (fe != null && (ye === n ? fe === fe && !ko(fe) : b(fe, ye)))
- var ye = fe,
- Te = te;
- }
- return Te;
- }
- function I5(l, u, b, $) {
- var N = l.length;
- for (
- b = en(b),
- b < 0 && (b = -b > N ? 0 : N + b),
- $ = $ === n || $ > N ? N : en($),
- $ < 0 && ($ += N),
- $ = b > $ ? 0 : Qx($);
- b < $;
- )
- l[b++] = u;
- return l;
- }
- function D1(l, u) {
- var b = [];
- return (
- Na(l, function ($, N, te) {
- u($, N, te) && b.push($);
- }),
- b
- );
- }
- function Dr(l, u, b, $, N) {
- var te = -1,
- fe = l.length;
- for (b || (b = SO), N || (N = []); ++te < fe; ) {
- var ye = l[te];
- u > 0 && b(ye)
- ? u > 1
- ? Dr(ye, u - 1, b, $, N)
- : kn(N, ye)
- : $ || (N[N.length] = ye);
- }
- return N;
- }
- var _p = sx(),
- F1 = sx(!0);
- function _i(l, u) {
- return l && _p(l, u, $r);
- }
- function Rp(l, u) {
- return l && F1(l, u, $r);
- }
- function zf(l, u) {
- return It(u, function (b) {
- return ca(l[b]);
- });
- }
- function Ul(l, u) {
- u = ja(u, l);
- for (var b = 0, $ = u.length; l != null && b < $; ) l = l[Pi(u[b++])];
- return b && b == $ ? l : n;
- }
- function B1(l, u, b) {
- var $ = u(l);
- return Jt(l) ? $ : kn($, b(l));
- }
- function eo(l) {
- return l == null
- ? l === n
- ? Ge
- : oe
- : Ll && Ll in Vn(l)
- ? mO(l)
- : OO(l);
- }
- function Pp(l, u) {
- return l > u;
- }
- function D5(l, u) {
- return l != null && In.call(l, u);
- }
- function F5(l, u) {
- return l != null && u in Vn(l);
- }
- function B5(l, u, b) {
- return l >= Nr(u, b) && l < wr(u, b);
- }
- function kp(l, u, b) {
- for (
- var $ = b ? un : Pt,
- N = l[0].length,
- te = l.length,
- fe = te,
- ye = Be(te),
- Te = 1 / 0,
- qe = [];
- fe--;
- ) {
- var Ye = l[fe];
- fe && u && (Ye = Dt(Ye, Ro(u))),
- (Te = Nr(Ye.length, Te)),
- (ye[fe] =
- !b && (u || (N >= 120 && Ye.length >= 120))
- ? new Hl(fe && Ye)
- : n);
- }
- Ye = l[0];
- var et = -1,
- mt = ye[0];
- e: for (; ++et < N && qe.length < Te; ) {
- var Tt = Ye[et],
- Wt = u ? u(Tt) : Tt;
- if (
- ((Tt = b || Tt !== 0 ? Tt : 0), !(mt ? fd(mt, Wt) : $(qe, Wt, b)))
- ) {
- for (fe = te; --fe; ) {
- var rn = ye[fe];
- if (!(rn ? fd(rn, Wt) : $(l[fe], Wt, b))) continue e;
- }
- mt && mt.push(Wt), qe.push(Tt);
- }
- }
- return qe;
- }
- function L5(l, u, b, $) {
- return (
- _i(l, function (N, te, fe) {
- u($, b(N), te, fe);
- }),
- $
- );
- }
- function xd(l, u, b) {
- (u = ja(u, l)), (l = Rx(l, u));
- var $ = l == null ? l : l[Pi(Vo(u))];
- return $ == null ? n : Jr($, l, b);
- }
- function L1(l) {
- return ar(l) && eo(l) == Fe;
- }
- function N5(l) {
- return ar(l) && eo(l) == xt;
- }
- function H5(l) {
- return ar(l) && eo(l) == he;
- }
- function wd(l, u, b, $, N) {
- return l === u
- ? !0
- : l == null || u == null || (!ar(l) && !ar(u))
- ? l !== l && u !== u
- : j5(l, u, b, $, wd, N);
- }
- function j5(l, u, b, $, N, te) {
- var fe = Jt(l),
- ye = Jt(u),
- Te = fe ? Ie : Hr(l),
- qe = ye ? Ie : Hr(u);
- (Te = Te == Fe ? H : Te), (qe = qe == Fe ? H : qe);
- var Ye = Te == H,
- et = qe == H,
- mt = Te == qe;
- if (mt && Wa(l)) {
- if (!Wa(u)) return !1;
- (fe = !0), (Ye = !1);
- }
- if (mt && !Ye)
- return (
- te || (te = new oi()),
- fe || rc(l) ? bx(l, u, b, $, N, te) : pO(l, u, Te, b, $, N, te)
- );
- if (!(b & g)) {
- var Tt = Ye && In.call(l, '__wrapped__'),
- Wt = et && In.call(u, '__wrapped__');
- if (Tt || Wt) {
- var rn = Tt ? l.value() : l,
- Vt = Wt ? u.value() : u;
- return te || (te = new oi()), N(rn, Vt, b, $, te);
- }
- }
- return mt ? (te || (te = new oi()), gO(l, u, b, $, N, te)) : !1;
- }
- function U5(l) {
- return ar(l) && Hr(l) == ee;
- }
- function Tp(l, u, b, $) {
- var N = b.length,
- te = N,
- fe = !$;
- if (l == null) return !te;
- for (l = Vn(l); N--; ) {
- var ye = b[N];
- if (fe && ye[2] ? ye[1] !== l[ye[0]] : !(ye[0] in l)) return !1;
- }
- for (; ++N < te; ) {
- ye = b[N];
- var Te = ye[0],
- qe = l[Te],
- Ye = ye[1];
- if (fe && ye[2]) {
- if (qe === n && !(Te in l)) return !1;
- } else {
- var et = new oi();
- if ($) var mt = $(qe, Ye, Te, l, u, et);
- if (!(mt === n ? wd(Ye, qe, g | w, $, et) : mt)) return !1;
- }
- }
- return !0;
- }
- function N1(l) {
- if (!Qn(l) || RO(l)) return !1;
- var u = ca(l) ? U$ : vt;
- return u.test(Vl(l));
- }
- function W5(l) {
- return ar(l) && eo(l) == Ce;
- }
- function V5(l) {
- return ar(l) && Hr(l) == se;
- }
- function K5(l) {
- return ar(l) && Yf(l.length) && !!Un[eo(l)];
- }
- function H1(l) {
- return typeof l == 'function'
- ? l
- : l == null
- ? go
- : typeof l == 'object'
- ? Jt(l)
- ? W1(l[0], l[1])
- : U1(l)
- : cw(l);
- }
- function $p(l) {
- if (!_d(l)) return G$(l);
- var u = [];
- for (var b in Vn(l)) In.call(l, b) && b != 'constructor' && u.push(b);
- return u;
- }
- function q5(l) {
- if (!Qn(l)) return $O(l);
- var u = _d(l),
- b = [];
- for (var $ in l)
- ($ == 'constructor' && (u || !In.call(l, $))) || b.push($);
- return b;
- }
- function Op(l, u) {
- return l < u;
- }
- function j1(l, u) {
- var b = -1,
- $ = vo(l) ? Be(l.length) : [];
- return (
- Na(l, function (N, te, fe) {
- $[++b] = u(N, te, fe);
- }),
- $
- );
- }
- function U1(l) {
- var u = Vp(l);
- return u.length == 1 && u[0][2]
- ? Sx(u[0][0], u[0][1])
- : function (b) {
- return b === l || Tp(b, l, u);
- };
- }
- function W1(l, u) {
- return qp(l) && Cx(u)
- ? Sx(Pi(l), u)
- : function (b) {
- var $ = rg(b, l);
- return $ === n && $ === u ? og(b, l) : wd(u, $, g | w);
- };
- }
- function Af(l, u, b, $, N) {
- l !== u &&
- _p(
- u,
- function (te, fe) {
- if ((N || (N = new oi()), Qn(te))) Y5(l, u, fe, b, Af, $, N);
- else {
- var ye = $ ? $(Gp(l, fe), te, fe + '', l, u, N) : n;
- ye === n && (ye = te), Cp(l, fe, ye);
- }
- },
- po
- );
- }
- function Y5(l, u, b, $, N, te, fe) {
- var ye = Gp(l, b),
- Te = Gp(u, b),
- qe = fe.get(Te);
- if (qe) {
- Cp(l, b, qe);
- return;
- }
- var Ye = te ? te(ye, Te, b + '', l, u, fe) : n,
- et = Ye === n;
- if (et) {
- var mt = Jt(Te),
- Tt = !mt && Wa(Te),
- Wt = !mt && !Tt && rc(Te);
- (Ye = Te),
- mt || Tt || Wt
- ? Jt(ye)
- ? (Ye = ye)
- : fr(ye)
- ? (Ye = ho(ye))
- : Tt
- ? ((et = !1), (Ye = nx(Te, !0)))
- : Wt
- ? ((et = !1), (Ye = rx(Te, !0)))
- : (Ye = [])
- : Pd(Te) || Kl(Te)
- ? ((Ye = ye),
- Kl(ye) ? (Ye = Jx(ye)) : (!Qn(ye) || ca(ye)) && (Ye = wx(Te)))
- : (et = !1);
- }
- et && (fe.set(Te, Ye), N(Ye, Te, $, te, fe), fe.delete(Te)),
- Cp(l, b, Ye);
- }
- function V1(l, u) {
- var b = l.length;
- if (b) return (u += u < 0 ? b : 0), sa(u, b) ? l[u] : n;
- }
- function K1(l, u, b) {
- u.length
- ? (u = Dt(u, function (te) {
- return Jt(te)
- ? function (fe) {
- return Ul(fe, te.length === 1 ? te[0] : te);
- }
- : te;
- }))
- : (u = [go]);
- var $ = -1;
- u = Dt(u, Ro(Ht()));
- var N = j1(l, function (te, fe, ye) {
- var Te = Dt(u, function (qe) {
- return qe(te);
- });
- return { criteria: Te, index: ++$, value: te };
- });
- return w$(N, function (te, fe) {
- return lO(te, fe, b);
- });
- }
- function G5(l, u) {
- return q1(l, u, function (b, $) {
- return og(l, $);
- });
- }
- function q1(l, u, b) {
- for (var $ = -1, N = u.length, te = {}; ++$ < N; ) {
- var fe = u[$],
- ye = Ul(l, fe);
- b(ye, fe) && Cd(te, ja(fe, l), ye);
- }
- return te;
- }
- function X5(l) {
- return function (u) {
- return Ul(u, l);
- };
- }
- function zp(l, u, b, $) {
- var N = $ ? hf : fo,
- te = -1,
- fe = u.length,
- ye = l;
- for (l === u && (u = ho(u)), b && (ye = Dt(l, Ro(b))); ++te < fe; )
- for (
- var Te = 0, qe = u[te], Ye = b ? b(qe) : qe;
- (Te = N(ye, Ye, Te, $)) > -1;
- )
- ye !== l && Cf.call(ye, Te, 1), Cf.call(l, Te, 1);
- return l;
- }
- function Y1(l, u) {
- for (var b = l ? u.length : 0, $ = b - 1; b--; ) {
- var N = u[b];
- if (b == $ || N !== te) {
- var te = N;
- sa(N) ? Cf.call(l, N, 1) : Ip(l, N);
- }
- }
- return l;
- }
- function Ap(l, u) {
- return l + Rf(T1() * (u - l + 1));
- }
- function Z5(l, u, b, $) {
- for (
- var N = -1, te = wr(_f((u - l) / (b || 1)), 0), fe = Be(te);
- te--;
- )
- (fe[$ ? te : ++N] = l), (l += b);
- return fe;
- }
- function Ep(l, u) {
- var b = '';
- if (!l || u < 1 || u > G) return b;
- do u % 2 && (b += l), (u = Rf(u / 2)), u && (l += l);
- while (u);
- return b;
- }
- function an(l, u) {
- return Xp(_x(l, u, go), l + '');
- }
- function Q5(l) {
- return z1(oc(l));
- }
- function J5(l, u) {
- var b = oc(l);
- return jf(b, jl(u, 0, b.length));
- }
- function Cd(l, u, b, $) {
- if (!Qn(l)) return l;
- u = ja(u, l);
- for (
- var N = -1, te = u.length, fe = te - 1, ye = l;
- ye != null && ++N < te;
- ) {
- var Te = Pi(u[N]),
- qe = b;
- if (
- Te === '__proto__' ||
- Te === 'constructor' ||
- Te === 'prototype'
- )
- return l;
- if (N != fe) {
- var Ye = ye[Te];
- (qe = $ ? $(Ye, Te, ye) : n),
- qe === n && (qe = Qn(Ye) ? Ye : sa(u[N + 1]) ? [] : {});
- }
- bd(ye, Te, qe), (ye = ye[Te]);
- }
- return l;
- }
- var G1 = Pf
- ? function (l, u) {
- return Pf.set(l, u), l;
- }
- : go,
- eO = Sf
- ? function (l, u) {
- return Sf(l, 'toString', {
- configurable: !0,
- enumerable: !1,
- value: ag(u),
- writable: !0
- });
- }
- : go;
- function tO(l) {
- return jf(oc(l));
- }
- function Wo(l, u, b) {
- var $ = -1,
- N = l.length;
- u < 0 && (u = -u > N ? 0 : N + u),
- (b = b > N ? N : b),
- b < 0 && (b += N),
- (N = u > b ? 0 : (b - u) >>> 0),
- (u >>>= 0);
- for (var te = Be(N); ++$ < N; ) te[$] = l[$ + u];
- return te;
- }
- function nO(l, u) {
- var b;
- return (
- Na(l, function ($, N, te) {
- return (b = u($, N, te)), !b;
- }),
- !!b
- );
- }
- function Ef(l, u, b) {
- var $ = 0,
- N = l == null ? $ : l.length;
- if (typeof u == 'number' && u === u && N <= ce) {
- for (; $ < N; ) {
- var te = ($ + N) >>> 1,
- fe = l[te];
- fe !== null && !ko(fe) && (b ? fe <= u : fe < u)
- ? ($ = te + 1)
- : (N = te);
- }
- return N;
- }
- return Mp(l, u, go, b);
- }
- function Mp(l, u, b, $) {
- var N = 0,
- te = l == null ? 0 : l.length;
- if (te === 0) return 0;
- u = b(u);
- for (
- var fe = u !== u, ye = u === null, Te = ko(u), qe = u === n;
- N < te;
- ) {
- var Ye = Rf((N + te) / 2),
- et = b(l[Ye]),
- mt = et !== n,
- Tt = et === null,
- Wt = et === et,
- rn = ko(et);
- if (fe) var Vt = $ || Wt;
- else
- qe
- ? (Vt = Wt && ($ || mt))
- : ye
- ? (Vt = Wt && mt && ($ || !Tt))
- : Te
- ? (Vt = Wt && mt && !Tt && ($ || !rn))
- : Tt || rn
- ? (Vt = !1)
- : (Vt = $ ? et <= u : et < u);
- Vt ? (N = Ye + 1) : (te = Ye);
- }
- return Nr(te, re);
- }
- function X1(l, u) {
- for (var b = -1, $ = l.length, N = 0, te = []; ++b < $; ) {
- var fe = l[b],
- ye = u ? u(fe) : fe;
- if (!b || !ii(ye, Te)) {
- var Te = ye;
- te[N++] = fe === 0 ? 0 : fe;
- }
- }
- return te;
- }
- function Z1(l) {
- return typeof l == 'number' ? l : ko(l) ? X : +l;
- }
- function Po(l) {
- if (typeof l == 'string') return l;
- if (Jt(l)) return Dt(l, Po) + '';
- if (ko(l)) return $1 ? $1.call(l) : '';
- var u = l + '';
- return u == '0' && 1 / l == -q ? '-0' : u;
- }
- function Ha(l, u, b) {
- var $ = -1,
- N = Pt,
- te = l.length,
- fe = !0,
- ye = [],
- Te = ye;
- if (b) (fe = !1), (N = un);
- else if (te >= o) {
- var qe = u ? null : hO(l);
- if (qe) return vf(qe);
- (fe = !1), (N = fd), (Te = new Hl());
- } else Te = u ? [] : ye;
- e: for (; ++$ < te; ) {
- var Ye = l[$],
- et = u ? u(Ye) : Ye;
- if (((Ye = b || Ye !== 0 ? Ye : 0), fe && et === et)) {
- for (var mt = Te.length; mt--; ) if (Te[mt] === et) continue e;
- u && Te.push(et), ye.push(Ye);
- } else N(Te, et, b) || (Te !== ye && Te.push(et), ye.push(Ye));
- }
- return ye;
- }
- function Ip(l, u) {
- return (
- (u = ja(u, l)), (l = Rx(l, u)), l == null || delete l[Pi(Vo(u))]
- );
- }
- function Q1(l, u, b, $) {
- return Cd(l, u, b(Ul(l, u)), $);
- }
- function Mf(l, u, b, $) {
- for (
- var N = l.length, te = $ ? N : -1;
- ($ ? te-- : ++te < N) && u(l[te], te, l);
- );
- return b
- ? Wo(l, $ ? 0 : te, $ ? te + 1 : N)
- : Wo(l, $ ? te + 1 : 0, $ ? N : te);
- }
- function J1(l, u) {
- var b = l;
- return (
- b instanceof fn && (b = b.value()),
- ir(
- u,
- function ($, N) {
- return N.func.apply(N.thisArg, kn([$], N.args));
- },
- b
- )
- );
- }
- function Dp(l, u, b) {
- var $ = l.length;
- if ($ < 2) return $ ? Ha(l[0]) : [];
- for (var N = -1, te = Be($); ++N < $; )
- for (var fe = l[N], ye = -1; ++ye < $; )
- ye != N && (te[N] = yd(te[N] || fe, l[ye], u, b));
- return Ha(Dr(te, 1), u, b);
- }
- function ex(l, u, b) {
- for (var $ = -1, N = l.length, te = u.length, fe = {}; ++$ < N; ) {
- var ye = $ < te ? u[$] : n;
- b(fe, l[$], ye);
- }
- return fe;
- }
- function Fp(l) {
- return fr(l) ? l : [];
- }
- function Bp(l) {
- return typeof l == 'function' ? l : go;
- }
- function ja(l, u) {
- return Jt(l) ? l : qp(l, u) ? [l] : $x(Mn(l));
- }
- var rO = an;
- function Ua(l, u, b) {
- var $ = l.length;
- return (b = b === n ? $ : b), !u && b >= $ ? l : Wo(l, u, b);
- }
- var tx =
- W$ ||
- function (l) {
- return ur.clearTimeout(l);
- };
- function nx(l, u) {
- if (u) return l.slice();
- var b = l.length,
- $ = S1 ? S1(b) : new l.constructor(b);
- return l.copy($), $;
- }
- function Lp(l) {
- var u = new l.constructor(l.byteLength);
- return new xf(u).set(new xf(l)), u;
- }
- function oO(l, u) {
- var b = u ? Lp(l.buffer) : l.buffer;
- return new l.constructor(b, l.byteOffset, l.byteLength);
- }
- function iO(l) {
- var u = new l.constructor(l.source, ln.exec(l));
- return (u.lastIndex = l.lastIndex), u;
- }
- function aO(l) {
- return md ? Vn(md.call(l)) : {};
- }
- function rx(l, u) {
- var b = u ? Lp(l.buffer) : l.buffer;
- return new l.constructor(b, l.byteOffset, l.length);
- }
- function ox(l, u) {
- if (l !== u) {
- var b = l !== n,
- $ = l === null,
- N = l === l,
- te = ko(l),
- fe = u !== n,
- ye = u === null,
- Te = u === u,
- qe = ko(u);
- if (
- (!ye && !qe && !te && l > u) ||
- (te && fe && Te && !ye && !qe) ||
- ($ && fe && Te) ||
- (!b && Te) ||
- !N
- )
- return 1;
- if (
- (!$ && !te && !qe && l < u) ||
- (qe && b && N && !$ && !te) ||
- (ye && b && N) ||
- (!fe && N) ||
- !Te
- )
- return -1;
- }
- return 0;
- }
- function lO(l, u, b) {
- for (
- var $ = -1,
- N = l.criteria,
- te = u.criteria,
- fe = N.length,
- ye = b.length;
- ++$ < fe;
- ) {
- var Te = ox(N[$], te[$]);
- if (Te) {
- if ($ >= ye) return Te;
- var qe = b[$];
- return Te * (qe == 'desc' ? -1 : 1);
- }
- }
- return l.index - u.index;
- }
- function ix(l, u, b, $) {
- for (
- var N = -1,
- te = l.length,
- fe = b.length,
- ye = -1,
- Te = u.length,
- qe = wr(te - fe, 0),
- Ye = Be(Te + qe),
- et = !$;
- ++ye < Te;
- )
- Ye[ye] = u[ye];
- for (; ++N < fe; ) (et || N < te) && (Ye[b[N]] = l[N]);
- for (; qe--; ) Ye[ye++] = l[N++];
- return Ye;
- }
- function ax(l, u, b, $) {
- for (
- var N = -1,
- te = l.length,
- fe = -1,
- ye = b.length,
- Te = -1,
- qe = u.length,
- Ye = wr(te - ye, 0),
- et = Be(Ye + qe),
- mt = !$;
- ++N < Ye;
- )
- et[N] = l[N];
- for (var Tt = N; ++Te < qe; ) et[Tt + Te] = u[Te];
- for (; ++fe < ye; ) (mt || N < te) && (et[Tt + b[fe]] = l[N++]);
- return et;
- }
- function ho(l, u) {
- var b = -1,
- $ = l.length;
- for (u || (u = Be($)); ++b < $; ) u[b] = l[b];
- return u;
- }
- function Ri(l, u, b, $) {
- var N = !b;
- b || (b = {});
- for (var te = -1, fe = u.length; ++te < fe; ) {
- var ye = u[te],
- Te = $ ? $(b[ye], l[ye], ye, b, l) : n;
- Te === n && (Te = l[ye]), N ? ia(b, ye, Te) : bd(b, ye, Te);
- }
- return b;
- }
- function sO(l, u) {
- return Ri(l, Kp(l), u);
- }
- function cO(l, u) {
- return Ri(l, yx(l), u);
- }
- function If(l, u) {
- return function (b, $) {
- var N = Jt(b) ? K : z5,
- te = u ? u() : {};
- return N(b, l, Ht($, 2), te);
- };
- }
- function ec(l) {
- return an(function (u, b) {
- var $ = -1,
- N = b.length,
- te = N > 1 ? b[N - 1] : n,
- fe = N > 2 ? b[2] : n;
- for (
- te = l.length > 3 && typeof te == 'function' ? (N--, te) : n,
- fe && to(b[0], b[1], fe) && ((te = N < 3 ? n : te), (N = 1)),
- u = Vn(u);
- ++$ < N;
- ) {
- var ye = b[$];
- ye && l(u, ye, $, te);
- }
- return u;
- });
- }
- function lx(l, u) {
- return function (b, $) {
- if (b == null) return b;
- if (!vo(b)) return l(b, $);
- for (
- var N = b.length, te = u ? N : -1, fe = Vn(b);
- (u ? te-- : ++te < N) && $(fe[te], te, fe) !== !1;
- );
- return b;
- };
- }
- function sx(l) {
- return function (u, b, $) {
- for (var N = -1, te = Vn(u), fe = $(u), ye = fe.length; ye--; ) {
- var Te = fe[l ? ye : ++N];
- if (b(te[Te], Te, te) === !1) break;
- }
- return u;
- };
- }
- function dO(l, u, b) {
- var $ = u & x,
- N = Sd(l);
- function te() {
- var fe = this && this !== ur && this instanceof te ? N : l;
- return fe.apply($ ? b : this, arguments);
- }
- return te;
- }
- function cx(l) {
- return function (u) {
- u = Mn(u);
- var b = qs(u) ? ri(u) : n,
- $ = b ? b[0] : u.charAt(0),
- N = b ? Ua(b, 1).join('') : u.slice(1);
- return $[l]() + N;
- };
- }
- function tc(l) {
- return function (u) {
- return ir(lw(aw(u).replace(Si, '')), l, '');
- };
- }
- function Sd(l) {
- return function () {
- var u = arguments;
- switch (u.length) {
- case 0:
- return new l();
- case 1:
- return new l(u[0]);
- case 2:
- return new l(u[0], u[1]);
- case 3:
- return new l(u[0], u[1], u[2]);
- case 4:
- return new l(u[0], u[1], u[2], u[3]);
- case 5:
- return new l(u[0], u[1], u[2], u[3], u[4]);
- case 6:
- return new l(u[0], u[1], u[2], u[3], u[4], u[5]);
- case 7:
- return new l(u[0], u[1], u[2], u[3], u[4], u[5], u[6]);
- }
- var b = Js(l.prototype),
- $ = l.apply(b, u);
- return Qn($) ? $ : b;
- };
- }
- function uO(l, u, b) {
- var $ = Sd(l);
- function N() {
- for (
- var te = arguments.length, fe = Be(te), ye = te, Te = nc(N);
- ye--;
- )
- fe[ye] = arguments[ye];
- var qe =
- te < 3 && fe[0] !== Te && fe[te - 1] !== Te ? [] : Ba(fe, Te);
- if (((te -= qe.length), te < b))
- return vx(l, u, Df, N.placeholder, n, fe, qe, n, n, b - te);
- var Ye = this && this !== ur && this instanceof N ? $ : l;
- return Jr(Ye, this, fe);
- }
- return N;
- }
- function dx(l) {
- return function (u, b, $) {
- var N = Vn(u);
- if (!vo(u)) {
- var te = Ht(b, 3);
- (u = $r(u)),
- (b = function (ye) {
- return te(N[ye], ye, N);
- });
- }
- var fe = l(u, b, $);
- return fe > -1 ? N[te ? u[fe] : fe] : n;
- };
- }
- function ux(l) {
- return la(function (u) {
- var b = u.length,
- $ = b,
- N = jo.prototype.thru;
- for (l && u.reverse(); $--; ) {
- var te = u[$];
- if (typeof te != 'function') throw new Ho(a);
- if (N && !fe && Nf(te) == 'wrapper') var fe = new jo([], !0);
- }
- for ($ = fe ? $ : b; ++$ < b; ) {
- te = u[$];
- var ye = Nf(te),
- Te = ye == 'wrapper' ? Wp(te) : n;
- Te &&
- Yp(Te[0]) &&
- Te[1] == (T | R | _ | A) &&
- !Te[4].length &&
- Te[9] == 1
- ? (fe = fe[Nf(Te[0])].apply(fe, Te[3]))
- : (fe = te.length == 1 && Yp(te) ? fe[ye]() : fe.thru(te));
- }
- return function () {
- var qe = arguments,
- Ye = qe[0];
- if (fe && qe.length == 1 && Jt(Ye)) return fe.plant(Ye).value();
- for (var et = 0, mt = b ? u[et].apply(this, qe) : Ye; ++et < b; )
- mt = u[et].call(this, mt);
- return mt;
- };
- });
- }
- function Df(l, u, b, $, N, te, fe, ye, Te, qe) {
- var Ye = u & T,
- et = u & x,
- mt = u & y,
- Tt = u & (R | S),
- Wt = u & z,
- rn = mt ? n : Sd(l);
- function Vt() {
- for (var sn = arguments.length, yn = Be(sn), To = sn; To--; )
- yn[To] = arguments[To];
- if (Tt)
- var no = nc(Vt),
- $o = S$(yn, no);
- if (
- ($ && (yn = ix(yn, $, N, Tt)),
- te && (yn = ax(yn, te, fe, Tt)),
- (sn -= $o),
- Tt && sn < qe)
- ) {
- var hr = Ba(yn, no);
- return vx(l, u, Df, Vt.placeholder, b, yn, hr, ye, Te, qe - sn);
- }
- var ai = et ? b : this,
- ua = mt ? ai[l] : l;
- return (
- (sn = yn.length),
- ye ? (yn = zO(yn, ye)) : Wt && sn > 1 && yn.reverse(),
- Ye && Te < sn && (yn.length = Te),
- this && this !== ur && this instanceof Vt && (ua = rn || Sd(ua)),
- ua.apply(ai, yn)
- );
- }
- return Vt;
- }
- function fx(l, u) {
- return function (b, $) {
- return L5(b, l, u($), {});
- };
- }
- function Ff(l, u) {
- return function (b, $) {
- var N;
- if (b === n && $ === n) return u;
- if ((b !== n && (N = b), $ !== n)) {
- if (N === n) return $;
- typeof b == 'string' || typeof $ == 'string'
- ? ((b = Po(b)), ($ = Po($)))
- : ((b = Z1(b)), ($ = Z1($))),
- (N = l(b, $));
- }
- return N;
- };
- }
- function Np(l) {
- return la(function (u) {
- return (
- (u = Dt(u, Ro(Ht()))),
- an(function (b) {
- var $ = this;
- return l(u, function (N) {
- return Jr(N, $, b);
- });
- })
- );
- });
- }
- function Bf(l, u) {
- u = u === n ? ' ' : Po(u);
- var b = u.length;
- if (b < 2) return b ? Ep(u, l) : u;
- var $ = Ep(u, _f(l / Ys(u)));
- return qs(u) ? Ua(ri($), 0, l).join('') : $.slice(0, l);
- }
- function fO(l, u, b, $) {
- var N = u & x,
- te = Sd(l);
- function fe() {
- for (
- var ye = -1,
- Te = arguments.length,
- qe = -1,
- Ye = $.length,
- et = Be(Ye + Te),
- mt = this && this !== ur && this instanceof fe ? te : l;
- ++qe < Ye;
- )
- et[qe] = $[qe];
- for (; Te--; ) et[qe++] = arguments[++ye];
- return Jr(mt, N ? b : this, et);
- }
- return fe;
- }
- function hx(l) {
- return function (u, b, $) {
- return (
- $ && typeof $ != 'number' && to(u, b, $) && (b = $ = n),
- (u = da(u)),
- b === n ? ((b = u), (u = 0)) : (b = da(b)),
- ($ = $ === n ? (u < b ? 1 : -1) : da($)),
- Z5(u, b, $, l)
- );
- };
- }
- function Lf(l) {
- return function (u, b) {
- return (
- (typeof u == 'string' && typeof b == 'string') ||
- ((u = Ko(u)), (b = Ko(b))),
- l(u, b)
- );
- };
- }
- function vx(l, u, b, $, N, te, fe, ye, Te, qe) {
- var Ye = u & R,
- et = Ye ? fe : n,
- mt = Ye ? n : fe,
- Tt = Ye ? te : n,
- Wt = Ye ? n : te;
- (u |= Ye ? _ : P), (u &= ~(Ye ? P : _)), u & C || (u &= ~(x | y));
- var rn = [l, u, N, Tt, et, Wt, mt, ye, Te, qe],
- Vt = b.apply(n, rn);
- return Yp(l) && Px(Vt, rn), (Vt.placeholder = $), kx(Vt, l, u);
- }
- function Hp(l) {
- var u = xr[l];
- return function (b, $) {
- if (
- ((b = Ko(b)), ($ = $ == null ? 0 : Nr(en($), 292)), $ && k1(b))
- ) {
- var N = (Mn(b) + 'e').split('e'),
- te = u(N[0] + 'e' + (+N[1] + $));
- return (
- (N = (Mn(te) + 'e').split('e')), +(N[0] + 'e' + (+N[1] - $))
- );
- }
- return u(b);
- };
- }
- var hO =
- Zs && 1 / vf(new Zs([, -0]))[1] == q
- ? function (l) {
- return new Zs(l);
- }
- : cg;
- function px(l) {
- return function (u) {
- var b = Hr(u);
- return b == ee ? mp(u) : b == se ? O$(u) : C$(u, l(u));
- };
- }
- function aa(l, u, b, $, N, te, fe, ye) {
- var Te = u & y;
- if (!Te && typeof l != 'function') throw new Ho(a);
- var qe = $ ? $.length : 0;
- if (
- (qe || ((u &= ~(_ | P)), ($ = N = n)),
- (fe = fe === n ? fe : wr(en(fe), 0)),
- (ye = ye === n ? ye : en(ye)),
- (qe -= N ? N.length : 0),
- u & P)
- ) {
- var Ye = $,
- et = N;
- $ = N = n;
- }
- var mt = Te ? n : Wp(l),
- Tt = [l, u, b, $, N, Ye, et, te, fe, ye];
- if (
- (mt && TO(Tt, mt),
- (l = Tt[0]),
- (u = Tt[1]),
- (b = Tt[2]),
- ($ = Tt[3]),
- (N = Tt[4]),
- (ye = Tt[9] =
- Tt[9] === n ? (Te ? 0 : l.length) : wr(Tt[9] - qe, 0)),
- !ye && u & (R | S) && (u &= ~(R | S)),
- !u || u == x)
- )
- var Wt = dO(l, u, b);
- else
- u == R || u == S
- ? (Wt = uO(l, u, ye))
- : (u == _ || u == (x | _)) && !N.length
- ? (Wt = fO(l, u, b, $))
- : (Wt = Df.apply(n, Tt));
- var rn = mt ? G1 : Px;
- return kx(rn(Wt, Tt), l, u);
- }
- function gx(l, u, b, $) {
- return l === n || (ii(l, Xs[b]) && !In.call($, b)) ? u : l;
- }
- function mx(l, u, b, $, N, te) {
- return (
- Qn(l) && Qn(u) && (te.set(u, l), Af(l, u, n, mx, te), te.delete(u)),
- l
- );
- }
- function vO(l) {
- return Pd(l) ? n : l;
- }
- function bx(l, u, b, $, N, te) {
- var fe = b & g,
- ye = l.length,
- Te = u.length;
- if (ye != Te && !(fe && Te > ye)) return !1;
- var qe = te.get(l),
- Ye = te.get(u);
- if (qe && Ye) return qe == u && Ye == l;
- var et = -1,
- mt = !0,
- Tt = b & w ? new Hl() : n;
- for (te.set(l, u), te.set(u, l); ++et < ye; ) {
- var Wt = l[et],
- rn = u[et];
- if ($)
- var Vt = fe ? $(rn, Wt, et, u, l, te) : $(Wt, rn, et, l, u, te);
- if (Vt !== n) {
- if (Vt) continue;
- mt = !1;
- break;
- }
- if (Tt) {
- if (
- !Tr(u, function (sn, yn) {
- if (!fd(Tt, yn) && (Wt === sn || N(Wt, sn, b, $, te)))
- return Tt.push(yn);
- })
- ) {
- mt = !1;
- break;
- }
- } else if (!(Wt === rn || N(Wt, rn, b, $, te))) {
- mt = !1;
- break;
- }
- }
- return te.delete(l), te.delete(u), mt;
- }
- function pO(l, u, b, $, N, te, fe) {
- switch (b) {
- case Me:
- if (l.byteLength != u.byteLength || l.byteOffset != u.byteOffset)
- return !1;
- (l = l.buffer), (u = u.buffer);
- case xt:
- return !(
- l.byteLength != u.byteLength || !te(new xf(l), new xf(u))
- );
- case me:
- case he:
- case ve:
- return ii(+l, +u);
- case Ae:
- return l.name == u.name && l.message == u.message;
- case Ce:
- case Se:
- return l == u + '';
- case ee:
- var ye = mp;
- case se:
- var Te = $ & g;
- if ((ye || (ye = vf), l.size != u.size && !Te)) return !1;
- var qe = fe.get(l);
- if (qe) return qe == u;
- ($ |= w), fe.set(l, u);
- var Ye = bx(ye(l), ye(u), $, N, te, fe);
- return fe.delete(l), Ye;
- case Ne:
- if (md) return md.call(l) == md.call(u);
- }
- return !1;
- }
- function gO(l, u, b, $, N, te) {
- var fe = b & g,
- ye = jp(l),
- Te = ye.length,
- qe = jp(u),
- Ye = qe.length;
- if (Te != Ye && !fe) return !1;
- for (var et = Te; et--; ) {
- var mt = ye[et];
- if (!(fe ? mt in u : In.call(u, mt))) return !1;
- }
- var Tt = te.get(l),
- Wt = te.get(u);
- if (Tt && Wt) return Tt == u && Wt == l;
- var rn = !0;
- te.set(l, u), te.set(u, l);
- for (var Vt = fe; ++et < Te; ) {
- mt = ye[et];
- var sn = l[mt],
- yn = u[mt];
- if ($)
- var To = fe ? $(yn, sn, mt, u, l, te) : $(sn, yn, mt, l, u, te);
- if (!(To === n ? sn === yn || N(sn, yn, b, $, te) : To)) {
- rn = !1;
- break;
- }
- Vt || (Vt = mt == 'constructor');
- }
- if (rn && !Vt) {
- var no = l.constructor,
- $o = u.constructor;
- no != $o &&
- 'constructor' in l &&
- 'constructor' in u &&
- !(
- typeof no == 'function' &&
- no instanceof no &&
- typeof $o == 'function' &&
- $o instanceof $o
- ) &&
- (rn = !1);
- }
- return te.delete(l), te.delete(u), rn;
- }
- function la(l) {
- return Xp(_x(l, n, Ex), l + '');
- }
- function jp(l) {
- return B1(l, $r, Kp);
- }
- function Up(l) {
- return B1(l, po, yx);
- }
- var Wp = Pf
- ? function (l) {
- return Pf.get(l);
- }
- : cg;
- function Nf(l) {
- for (
- var u = l.name + '', b = Qs[u], $ = In.call(Qs, u) ? b.length : 0;
- $--;
- ) {
- var N = b[$],
- te = N.func;
- if (te == null || te == l) return N.name;
- }
- return u;
- }
- function nc(l) {
- var u = In.call(Y, 'placeholder') ? Y : l;
- return u.placeholder;
- }
- function Ht() {
- var l = Y.iteratee || lg;
- return (
- (l = l === lg ? H1 : l),
- arguments.length ? l(arguments[0], arguments[1]) : l
- );
- }
- function Hf(l, u) {
- var b = l.__data__;
- return _O(u) ? b[typeof u == 'string' ? 'string' : 'hash'] : b.map;
- }
- function Vp(l) {
- for (var u = $r(l), b = u.length; b--; ) {
- var $ = u[b],
- N = l[$];
- u[b] = [$, N, Cx(N)];
- }
- return u;
- }
- function Wl(l, u) {
- var b = k$(l, u);
- return N1(b) ? b : n;
- }
- function mO(l) {
- var u = In.call(l, Ll),
- b = l[Ll];
- try {
- l[Ll] = n;
- var $ = !0;
- } catch (te) {}
- var N = bf.call(l);
- return $ && (u ? (l[Ll] = b) : delete l[Ll]), N;
- }
- var Kp = yp
- ? function (l) {
- return l == null
- ? []
- : ((l = Vn(l)),
- It(yp(l), function (u) {
- return R1.call(l, u);
- }));
- }
- : dg,
- yx = yp
- ? function (l) {
- for (var u = []; l; ) kn(u, Kp(l)), (l = wf(l));
- return u;
- }
- : dg,
- Hr = eo;
- ((xp && Hr(new xp(new ArrayBuffer(1))) != Me) ||
- (vd && Hr(new vd()) != ee) ||
- (wp && Hr(wp.resolve()) != ae) ||
- (Zs && Hr(new Zs()) != se) ||
- (pd && Hr(new pd()) != it)) &&
- (Hr = function (l) {
- var u = eo(l),
- b = u == H ? l.constructor : n,
- $ = b ? Vl(b) : '';
- if ($)
- switch ($) {
- case J$:
- return Me;
- case e5:
- return ee;
- case t5:
- return ae;
- case n5:
- return se;
- case r5:
- return it;
- }
- return u;
- });
- function bO(l, u, b) {
- for (var $ = -1, N = b.length; ++$ < N; ) {
- var te = b[$],
- fe = te.size;
- switch (te.type) {
- case 'drop':
- l += fe;
- break;
- case 'dropRight':
- u -= fe;
- break;
- case 'take':
- u = Nr(u, l + fe);
- break;
- case 'takeRight':
- l = wr(l, u - fe);
- break;
- }
- }
- return { start: l, end: u };
- }
- function yO(l) {
- var u = l.match(xe);
- return u ? u[1].split(De) : [];
- }
- function xx(l, u, b) {
- u = ja(u, l);
- for (var $ = -1, N = u.length, te = !1; ++$ < N; ) {
- var fe = Pi(u[$]);
- if (!(te = l != null && b(l, fe))) break;
- l = l[fe];
- }
- return te || ++$ != N
- ? te
- : ((N = l == null ? 0 : l.length),
- !!N && Yf(N) && sa(fe, N) && (Jt(l) || Kl(l)));
- }
- function xO(l) {
- var u = l.length,
- b = new l.constructor(u);
- return (
- u &&
- typeof l[0] == 'string' &&
- In.call(l, 'index') &&
- ((b.index = l.index), (b.input = l.input)),
- b
- );
- }
- function wx(l) {
- return typeof l.constructor == 'function' && !_d(l) ? Js(wf(l)) : {};
- }
- function wO(l, u, b) {
- var $ = l.constructor;
- switch (u) {
- case xt:
- return Lp(l);
- case me:
- case he:
- return new $(+l);
- case Me:
- return oO(l, b);
- case ut:
- case wt:
- case Lt:
- case ot:
- case ct:
- case Xe:
- case Qe:
- case ie:
- case $e:
- return rx(l, b);
- case ee:
- return new $();
- case ve:
- case Se:
- return new $(l);
- case Ce:
- return iO(l);
- case se:
- return new $();
- case Ne:
- return aO(l);
- }
- }
- function CO(l, u) {
- var b = u.length;
- if (!b) return l;
- var $ = b - 1;
- return (
- (u[$] = (b > 1 ? '& ' : '') + u[$]),
- (u = u.join(b > 2 ? ', ' : ' ')),
- l.replace(
- qt,
- `{
- /* [wrapped with ` +
- u +
- `] */
- `
- )
- );
- }
- function SO(l) {
- return Jt(l) || Kl(l) || !!(P1 && l && l[P1]);
- }
- function sa(l, u) {
- var b = typeof l;
- return (
- (u = u == null ? G : u),
- !!u &&
- (b == 'number' || (b != 'symbol' && dn.test(l))) &&
- l > -1 &&
- l % 1 == 0 &&
- l < u
- );
- }
- function to(l, u, b) {
- if (!Qn(b)) return !1;
- var $ = typeof u;
- return (
- $ == 'number' ? vo(b) && sa(u, b.length) : $ == 'string' && u in b
- )
- ? ii(b[u], l)
- : !1;
- }
- function qp(l, u) {
- if (Jt(l)) return !1;
- var b = typeof l;
- return b == 'number' ||
- b == 'symbol' ||
- b == 'boolean' ||
- l == null ||
- ko(l)
- ? !0
- : $n.test(l) || !Ot.test(l) || (u != null && l in Vn(u));
- }
- function _O(l) {
- var u = typeof l;
- return u == 'string' ||
- u == 'number' ||
- u == 'symbol' ||
- u == 'boolean'
- ? l !== '__proto__'
- : l === null;
- }
- function Yp(l) {
- var u = Nf(l),
- b = Y[u];
- if (typeof b != 'function' || !(u in fn.prototype)) return !1;
- if (l === b) return !0;
- var $ = Wp(b);
- return !!$ && l === $[0];
- }
- function RO(l) {
- return !!C1 && C1 in l;
- }
- var PO = gf ? ca : ug;
- function _d(l) {
- var u = l && l.constructor,
- b = (typeof u == 'function' && u.prototype) || Xs;
- return l === b;
- }
- function Cx(l) {
- return l === l && !Qn(l);
- }
- function Sx(l, u) {
- return function (b) {
- return b == null ? !1 : b[l] === u && (u !== n || l in Vn(b));
- };
- }
- function kO(l) {
- var u = Kf(l, function ($) {
- return b.size === d && b.clear(), $;
- }),
- b = u.cache;
- return u;
- }
- function TO(l, u) {
- var b = l[1],
- $ = u[1],
- N = b | $,
- te = N < (x | y | T),
- fe =
- ($ == T && b == R) ||
- ($ == T && b == A && l[7].length <= u[8]) ||
- ($ == (T | A) && u[7].length <= u[8] && b == R);
- if (!(te || fe)) return l;
- $ & x && ((l[2] = u[2]), (N |= b & x ? 0 : C));
- var ye = u[3];
- if (ye) {
- var Te = l[3];
- (l[3] = Te ? ix(Te, ye, u[4]) : ye),
- (l[4] = Te ? Ba(l[3], f) : u[4]);
- }
- return (
- (ye = u[5]),
- ye &&
- ((Te = l[5]),
- (l[5] = Te ? ax(Te, ye, u[6]) : ye),
- (l[6] = Te ? Ba(l[5], f) : u[6])),
- (ye = u[7]),
- ye && (l[7] = ye),
- $ & T && (l[8] = l[8] == null ? u[8] : Nr(l[8], u[8])),
- l[9] == null && (l[9] = u[9]),
- (l[0] = u[0]),
- (l[1] = N),
- l
- );
- }
- function $O(l) {
- var u = [];
- if (l != null) for (var b in Vn(l)) u.push(b);
- return u;
- }
- function OO(l) {
- return bf.call(l);
- }
- function _x(l, u, b) {
- return (
- (u = wr(u === n ? l.length - 1 : u, 0)),
- function () {
- for (
- var $ = arguments,
- N = -1,
- te = wr($.length - u, 0),
- fe = Be(te);
- ++N < te;
- )
- fe[N] = $[u + N];
- N = -1;
- for (var ye = Be(u + 1); ++N < u; ) ye[N] = $[N];
- return (ye[u] = b(fe)), Jr(l, this, ye);
- }
- );
- }
- function Rx(l, u) {
- return u.length < 2 ? l : Ul(l, Wo(u, 0, -1));
- }
- function zO(l, u) {
- for (var b = l.length, $ = Nr(u.length, b), N = ho(l); $--; ) {
- var te = u[$];
- l[$] = sa(te, b) ? N[te] : n;
- }
- return l;
- }
- function Gp(l, u) {
- if (
- !(u === 'constructor' && typeof l[u] == 'function') &&
- u != '__proto__'
- )
- return l[u];
- }
- var Px = Tx(G1),
- Rd =
- K$ ||
- function (l, u) {
- return ur.setTimeout(l, u);
- },
- Xp = Tx(eO);
- function kx(l, u, b) {
- var $ = u + '';
- return Xp(l, CO($, AO(yO($), b)));
- }
- function Tx(l) {
- var u = 0,
- b = 0;
- return function () {
- var $ = X$(),
- N = D - ($ - b);
- if (((b = $), N > 0)) {
- if (++u >= E) return arguments[0];
- } else u = 0;
- return l.apply(n, arguments);
- };
- }
- function jf(l, u) {
- var b = -1,
- $ = l.length,
- N = $ - 1;
- for (u = u === n ? $ : u; ++b < u; ) {
- var te = Ap(b, N),
- fe = l[te];
- (l[te] = l[b]), (l[b] = fe);
- }
- return (l.length = u), l;
- }
- var $x = kO(function (l) {
- var u = [];
- return (
- l.charCodeAt(0) === 46 && u.push(''),
- l.replace(jn, function (b, $, N, te) {
- u.push(N ? te.replace(gt, '$1') : $ || b);
- }),
- u
- );
- });
- function Pi(l) {
- if (typeof l == 'string' || ko(l)) return l;
- var u = l + '';
- return u == '0' && 1 / l == -q ? '-0' : u;
- }
- function Vl(l) {
- if (l != null) {
- try {
- return mf.call(l);
- } catch (u) {}
- try {
- return l + '';
- } catch (u) {}
- }
- return '';
- }
- function AO(l, u) {
- return (
- de(pe, function (b) {
- var $ = '_.' + b[0];
- u & b[1] && !Pt(l, $) && l.push($);
- }),
- l.sort()
- );
- }
- function Ox(l) {
- if (l instanceof fn) return l.clone();
- var u = new jo(l.__wrapped__, l.__chain__);
- return (
- (u.__actions__ = ho(l.__actions__)),
- (u.__index__ = l.__index__),
- (u.__values__ = l.__values__),
- u
- );
- }
- function EO(l, u, b) {
- (b ? to(l, u, b) : u === n) ? (u = 1) : (u = wr(en(u), 0));
- var $ = l == null ? 0 : l.length;
- if (!$ || u < 1) return [];
- for (var N = 0, te = 0, fe = Be(_f($ / u)); N < $; )
- fe[te++] = Wo(l, N, (N += u));
- return fe;
- }
- function MO(l) {
- for (
- var u = -1, b = l == null ? 0 : l.length, $ = 0, N = [];
- ++u < b;
- ) {
- var te = l[u];
- te && (N[$++] = te);
- }
- return N;
- }
- function IO() {
- var l = arguments.length;
- if (!l) return [];
- for (var u = Be(l - 1), b = arguments[0], $ = l; $--; )
- u[$ - 1] = arguments[$];
- return kn(Jt(b) ? ho(b) : [b], Dr(u, 1));
- }
- var DO = an(function (l, u) {
- return fr(l) ? yd(l, Dr(u, 1, fr, !0)) : [];
- }),
- FO = an(function (l, u) {
- var b = Vo(u);
- return (
- fr(b) && (b = n), fr(l) ? yd(l, Dr(u, 1, fr, !0), Ht(b, 2)) : []
- );
- }),
- BO = an(function (l, u) {
- var b = Vo(u);
- return fr(b) && (b = n), fr(l) ? yd(l, Dr(u, 1, fr, !0), n, b) : [];
- });
- function LO(l, u, b) {
- var $ = l == null ? 0 : l.length;
- return $
- ? ((u = b || u === n ? 1 : en(u)), Wo(l, u < 0 ? 0 : u, $))
- : [];
- }
- function NO(l, u, b) {
- var $ = l == null ? 0 : l.length;
- return $
- ? ((u = b || u === n ? 1 : en(u)),
- (u = $ - u),
- Wo(l, 0, u < 0 ? 0 : u))
- : [];
- }
- function HO(l, u) {
- return l && l.length ? Mf(l, Ht(u, 3), !0, !0) : [];
- }
- function jO(l, u) {
- return l && l.length ? Mf(l, Ht(u, 3), !0) : [];
- }
- function UO(l, u, b, $) {
- var N = l == null ? 0 : l.length;
- return N
- ? (b && typeof b != 'number' && to(l, u, b) && ((b = 0), ($ = N)),
- I5(l, u, b, $))
- : [];
- }
- function zx(l, u, b) {
- var $ = l == null ? 0 : l.length;
- if (!$) return -1;
- var N = b == null ? 0 : en(b);
- return N < 0 && (N = wr($ + N, 0)), uo(l, Ht(u, 3), N);
- }
- function Ax(l, u, b) {
- var $ = l == null ? 0 : l.length;
- if (!$) return -1;
- var N = $ - 1;
- return (
- b !== n && ((N = en(b)), (N = b < 0 ? wr($ + N, 0) : Nr(N, $ - 1))),
- uo(l, Ht(u, 3), N, !0)
- );
- }
- function Ex(l) {
- var u = l == null ? 0 : l.length;
- return u ? Dr(l, 1) : [];
- }
- function WO(l) {
- var u = l == null ? 0 : l.length;
- return u ? Dr(l, q) : [];
- }
- function VO(l, u) {
- var b = l == null ? 0 : l.length;
- return b ? ((u = u === n ? 1 : en(u)), Dr(l, u)) : [];
- }
- function KO(l) {
- for (var u = -1, b = l == null ? 0 : l.length, $ = {}; ++u < b; ) {
- var N = l[u];
- $[N[0]] = N[1];
- }
- return $;
- }
- function Mx(l) {
- return l && l.length ? l[0] : n;
- }
- function qO(l, u, b) {
- var $ = l == null ? 0 : l.length;
- if (!$) return -1;
- var N = b == null ? 0 : en(b);
- return N < 0 && (N = wr($ + N, 0)), fo(l, u, N);
- }
- function YO(l) {
- var u = l == null ? 0 : l.length;
- return u ? Wo(l, 0, -1) : [];
- }
- var GO = an(function (l) {
- var u = Dt(l, Fp);
- return u.length && u[0] === l[0] ? kp(u) : [];
- }),
- XO = an(function (l) {
- var u = Vo(l),
- b = Dt(l, Fp);
- return (
- u === Vo(b) ? (u = n) : b.pop(),
- b.length && b[0] === l[0] ? kp(b, Ht(u, 2)) : []
- );
- }),
- ZO = an(function (l) {
- var u = Vo(l),
- b = Dt(l, Fp);
- return (
- (u = typeof u == 'function' ? u : n),
- u && b.pop(),
- b.length && b[0] === l[0] ? kp(b, n, u) : []
- );
- });
- function QO(l, u) {
- return l == null ? '' : Y$.call(l, u);
- }
- function Vo(l) {
- var u = l == null ? 0 : l.length;
- return u ? l[u - 1] : n;
- }
- function JO(l, u, b) {
- var $ = l == null ? 0 : l.length;
- if (!$) return -1;
- var N = $;
- return (
- b !== n && ((N = en(b)), (N = N < 0 ? wr($ + N, 0) : Nr(N, $ - 1))),
- u === u ? A$(l, u, N) : uo(l, Fl, N, !0)
- );
- }
- function e4(l, u) {
- return l && l.length ? V1(l, en(u)) : n;
- }
- var t4 = an(Ix);
- function Ix(l, u) {
- return l && l.length && u && u.length ? zp(l, u) : l;
- }
- function n4(l, u, b) {
- return l && l.length && u && u.length ? zp(l, u, Ht(b, 2)) : l;
- }
- function r4(l, u, b) {
- return l && l.length && u && u.length ? zp(l, u, n, b) : l;
- }
- var o4 = la(function (l, u) {
- var b = l == null ? 0 : l.length,
- $ = Sp(l, u);
- return (
- Y1(
- l,
- Dt(u, function (N) {
- return sa(N, b) ? +N : N;
- }).sort(ox)
- ),
- $
- );
- });
- function i4(l, u) {
- var b = [];
- if (!(l && l.length)) return b;
- var $ = -1,
- N = [],
- te = l.length;
- for (u = Ht(u, 3); ++$ < te; ) {
- var fe = l[$];
- u(fe, $, l) && (b.push(fe), N.push($));
- }
- return Y1(l, N), b;
- }
- function Zp(l) {
- return l == null ? l : Q$.call(l);
- }
- function a4(l, u, b) {
- var $ = l == null ? 0 : l.length;
- return $
- ? (b && typeof b != 'number' && to(l, u, b)
- ? ((u = 0), (b = $))
- : ((u = u == null ? 0 : en(u)), (b = b === n ? $ : en(b))),
- Wo(l, u, b))
- : [];
- }
- function l4(l, u) {
- return Ef(l, u);
- }
- function s4(l, u, b) {
- return Mp(l, u, Ht(b, 2));
- }
- function c4(l, u) {
- var b = l == null ? 0 : l.length;
- if (b) {
- var $ = Ef(l, u);
- if ($ < b && ii(l[$], u)) return $;
- }
- return -1;
- }
- function d4(l, u) {
- return Ef(l, u, !0);
- }
- function u4(l, u, b) {
- return Mp(l, u, Ht(b, 2), !0);
- }
- function f4(l, u) {
- var b = l == null ? 0 : l.length;
- if (b) {
- var $ = Ef(l, u, !0) - 1;
- if (ii(l[$], u)) return $;
- }
- return -1;
- }
- function h4(l) {
- return l && l.length ? X1(l) : [];
- }
- function v4(l, u) {
- return l && l.length ? X1(l, Ht(u, 2)) : [];
- }
- function p4(l) {
- var u = l == null ? 0 : l.length;
- return u ? Wo(l, 1, u) : [];
- }
- function g4(l, u, b) {
- return l && l.length
- ? ((u = b || u === n ? 1 : en(u)), Wo(l, 0, u < 0 ? 0 : u))
- : [];
- }
- function m4(l, u, b) {
- var $ = l == null ? 0 : l.length;
- return $
- ? ((u = b || u === n ? 1 : en(u)),
- (u = $ - u),
- Wo(l, u < 0 ? 0 : u, $))
- : [];
- }
- function b4(l, u) {
- return l && l.length ? Mf(l, Ht(u, 3), !1, !0) : [];
- }
- function y4(l, u) {
- return l && l.length ? Mf(l, Ht(u, 3)) : [];
- }
- var x4 = an(function (l) {
- return Ha(Dr(l, 1, fr, !0));
- }),
- w4 = an(function (l) {
- var u = Vo(l);
- return fr(u) && (u = n), Ha(Dr(l, 1, fr, !0), Ht(u, 2));
- }),
- C4 = an(function (l) {
- var u = Vo(l);
- return (
- (u = typeof u == 'function' ? u : n), Ha(Dr(l, 1, fr, !0), n, u)
- );
- });
- function S4(l) {
- return l && l.length ? Ha(l) : [];
- }
- function _4(l, u) {
- return l && l.length ? Ha(l, Ht(u, 2)) : [];
- }
- function R4(l, u) {
- return (
- (u = typeof u == 'function' ? u : n),
- l && l.length ? Ha(l, n, u) : []
- );
- }
- function Qp(l) {
- if (!(l && l.length)) return [];
- var u = 0;
- return (
- (l = It(l, function (b) {
- if (fr(b)) return (u = wr(b.length, u)), !0;
- })),
- pp(u, function (b) {
- return Dt(l, fp(b));
- })
- );
- }
- function Dx(l, u) {
- if (!(l && l.length)) return [];
- var b = Qp(l);
- return u == null
- ? b
- : Dt(b, function ($) {
- return Jr(u, n, $);
- });
- }
- var P4 = an(function (l, u) {
- return fr(l) ? yd(l, u) : [];
- }),
- k4 = an(function (l) {
- return Dp(It(l, fr));
- }),
- T4 = an(function (l) {
- var u = Vo(l);
- return fr(u) && (u = n), Dp(It(l, fr), Ht(u, 2));
- }),
- $4 = an(function (l) {
- var u = Vo(l);
- return (u = typeof u == 'function' ? u : n), Dp(It(l, fr), n, u);
- }),
- O4 = an(Qp);
- function z4(l, u) {
- return ex(l || [], u || [], bd);
- }
- function A4(l, u) {
- return ex(l || [], u || [], Cd);
- }
- var E4 = an(function (l) {
- var u = l.length,
- b = u > 1 ? l[u - 1] : n;
- return (b = typeof b == 'function' ? (l.pop(), b) : n), Dx(l, b);
- });
- function Fx(l) {
- var u = Y(l);
- return (u.__chain__ = !0), u;
- }
- function M4(l, u) {
- return u(l), l;
- }
- function Uf(l, u) {
- return u(l);
- }
- var I4 = la(function (l) {
- var u = l.length,
- b = u ? l[0] : 0,
- $ = this.__wrapped__,
- N = function (te) {
- return Sp(te, l);
- };
- return u > 1 ||
- this.__actions__.length ||
- !($ instanceof fn) ||
- !sa(b)
- ? this.thru(N)
- : (($ = $.slice(b, +b + (u ? 1 : 0))),
- $.__actions__.push({ func: Uf, args: [N], thisArg: n }),
- new jo($, this.__chain__).thru(function (te) {
- return u && !te.length && te.push(n), te;
- }));
- });
- function D4() {
- return Fx(this);
- }
- function F4() {
- return new jo(this.value(), this.__chain__);
- }
- function B4() {
- this.__values__ === n && (this.__values__ = Zx(this.value()));
- var l = this.__index__ >= this.__values__.length,
- u = l ? n : this.__values__[this.__index__++];
- return { done: l, value: u };
- }
- function L4() {
- return this;
- }
- function N4(l) {
- for (var u, b = this; b instanceof Tf; ) {
- var $ = Ox(b);
- ($.__index__ = 0),
- ($.__values__ = n),
- u ? (N.__wrapped__ = $) : (u = $);
- var N = $;
- b = b.__wrapped__;
- }
- return (N.__wrapped__ = l), u;
- }
- function H4() {
- var l = this.__wrapped__;
- if (l instanceof fn) {
- var u = l;
- return (
- this.__actions__.length && (u = new fn(this)),
- (u = u.reverse()),
- u.__actions__.push({ func: Uf, args: [Zp], thisArg: n }),
- new jo(u, this.__chain__)
- );
- }
- return this.thru(Zp);
- }
- function j4() {
- return J1(this.__wrapped__, this.__actions__);
- }
- var U4 = If(function (l, u, b) {
- In.call(l, b) ? ++l[b] : ia(l, b, 1);
- });
- function W4(l, u, b) {
- var $ = Jt(l) ? at : M5;
- return b && to(l, u, b) && (u = n), $(l, Ht(u, 3));
- }
- function V4(l, u) {
- var b = Jt(l) ? It : D1;
- return b(l, Ht(u, 3));
- }
- var K4 = dx(zx),
- q4 = dx(Ax);
- function Y4(l, u) {
- return Dr(Wf(l, u), 1);
- }
- function G4(l, u) {
- return Dr(Wf(l, u), q);
- }
- function X4(l, u, b) {
- return (b = b === n ? 1 : en(b)), Dr(Wf(l, u), b);
- }
- function Bx(l, u) {
- var b = Jt(l) ? de : Na;
- return b(l, Ht(u, 3));
- }
- function Lx(l, u) {
- var b = Jt(l) ? Le : I1;
- return b(l, Ht(u, 3));
- }
- var Z4 = If(function (l, u, b) {
- In.call(l, b) ? l[b].push(u) : ia(l, b, [u]);
- });
- function Q4(l, u, b, $) {
- (l = vo(l) ? l : oc(l)), (b = b && !$ ? en(b) : 0);
- var N = l.length;
- return (
- b < 0 && (b = wr(N + b, 0)),
- Gf(l) ? b <= N && l.indexOf(u, b) > -1 : !!N && fo(l, u, b) > -1
- );
- }
- var J4 = an(function (l, u, b) {
- var $ = -1,
- N = typeof u == 'function',
- te = vo(l) ? Be(l.length) : [];
- return (
- Na(l, function (fe) {
- te[++$] = N ? Jr(u, fe, b) : xd(fe, u, b);
- }),
- te
- );
- }),
- ez = If(function (l, u, b) {
- ia(l, b, u);
- });
- function Wf(l, u) {
- var b = Jt(l) ? Dt : j1;
- return b(l, Ht(u, 3));
- }
- function tz(l, u, b, $) {
- return l == null
- ? []
- : (Jt(u) || (u = u == null ? [] : [u]),
- (b = $ ? n : b),
- Jt(b) || (b = b == null ? [] : [b]),
- K1(l, u, b));
- }
- var nz = If(
- function (l, u, b) {
- l[b ? 0 : 1].push(u);
- },
- function () {
- return [[], []];
- }
- );
- function rz(l, u, b) {
- var $ = Jt(l) ? ir : g1,
- N = arguments.length < 3;
- return $(l, Ht(u, 4), b, N, Na);
- }
- function oz(l, u, b) {
- var $ = Jt(l) ? Ir : g1,
- N = arguments.length < 3;
- return $(l, Ht(u, 4), b, N, I1);
- }
- function iz(l, u) {
- var b = Jt(l) ? It : D1;
- return b(l, qf(Ht(u, 3)));
- }
- function az(l) {
- var u = Jt(l) ? z1 : Q5;
- return u(l);
- }
- function lz(l, u, b) {
- (b ? to(l, u, b) : u === n) ? (u = 1) : (u = en(u));
- var $ = Jt(l) ? $5 : J5;
- return $(l, u);
- }
- function sz(l) {
- var u = Jt(l) ? O5 : tO;
- return u(l);
- }
- function cz(l) {
- if (l == null) return 0;
- if (vo(l)) return Gf(l) ? Ys(l) : l.length;
- var u = Hr(l);
- return u == ee || u == se ? l.size : $p(l).length;
- }
- function dz(l, u, b) {
- var $ = Jt(l) ? Tr : nO;
- return b && to(l, u, b) && (u = n), $(l, Ht(u, 3));
- }
- var uz = an(function (l, u) {
- if (l == null) return [];
- var b = u.length;
- return (
- b > 1 && to(l, u[0], u[1])
- ? (u = [])
- : b > 2 && to(u[0], u[1], u[2]) && (u = [u[0]]),
- K1(l, Dr(u, 1), [])
- );
- }),
- Vf =
- V$ ||
- function () {
- return ur.Date.now();
- };
- function fz(l, u) {
- if (typeof u != 'function') throw new Ho(a);
- return (
- (l = en(l)),
- function () {
- if (--l < 1) return u.apply(this, arguments);
- }
- );
- }
- function Nx(l, u, b) {
- return (
- (u = b ? n : u),
- (u = l && u == null ? l.length : u),
- aa(l, T, n, n, n, n, u)
- );
- }
- function Hx(l, u) {
- var b;
- if (typeof u != 'function') throw new Ho(a);
- return (
- (l = en(l)),
- function () {
- return (
- --l > 0 && (b = u.apply(this, arguments)), l <= 1 && (u = n), b
- );
- }
- );
- }
- var Jp = an(function (l, u, b) {
- var $ = x;
- if (b.length) {
- var N = Ba(b, nc(Jp));
- $ |= _;
- }
- return aa(l, $, u, b, N);
- }),
- jx = an(function (l, u, b) {
- var $ = x | y;
- if (b.length) {
- var N = Ba(b, nc(jx));
- $ |= _;
- }
- return aa(u, $, l, b, N);
- });
- function Ux(l, u, b) {
- u = b ? n : u;
- var $ = aa(l, R, n, n, n, n, n, u);
- return ($.placeholder = Ux.placeholder), $;
- }
- function Wx(l, u, b) {
- u = b ? n : u;
- var $ = aa(l, S, n, n, n, n, n, u);
- return ($.placeholder = Wx.placeholder), $;
- }
- function Vx(l, u, b) {
- var $,
- N,
- te,
- fe,
- ye,
- Te,
- qe = 0,
- Ye = !1,
- et = !1,
- mt = !0;
- if (typeof l != 'function') throw new Ho(a);
- (u = Ko(u) || 0),
- Qn(b) &&
- ((Ye = !!b.leading),
- (et = 'maxWait' in b),
- (te = et ? wr(Ko(b.maxWait) || 0, u) : te),
- (mt = 'trailing' in b ? !!b.trailing : mt));
- function Tt(hr) {
- var ai = $,
- ua = N;
- return ($ = N = n), (qe = hr), (fe = l.apply(ua, ai)), fe;
- }
- function Wt(hr) {
- return (qe = hr), (ye = Rd(sn, u)), Ye ? Tt(hr) : fe;
- }
- function rn(hr) {
- var ai = hr - Te,
- ua = hr - qe,
- dw = u - ai;
- return et ? Nr(dw, te - ua) : dw;
- }
- function Vt(hr) {
- var ai = hr - Te,
- ua = hr - qe;
- return Te === n || ai >= u || ai < 0 || (et && ua >= te);
- }
- function sn() {
- var hr = Vf();
- if (Vt(hr)) return yn(hr);
- ye = Rd(sn, rn(hr));
- }
- function yn(hr) {
- return (ye = n), mt && $ ? Tt(hr) : (($ = N = n), fe);
- }
- function To() {
- ye !== n && tx(ye), (qe = 0), ($ = Te = N = ye = n);
- }
- function no() {
- return ye === n ? fe : yn(Vf());
- }
- function $o() {
- var hr = Vf(),
- ai = Vt(hr);
- if ((($ = arguments), (N = this), (Te = hr), ai)) {
- if (ye === n) return Wt(Te);
- if (et) return tx(ye), (ye = Rd(sn, u)), Tt(Te);
- }
- return ye === n && (ye = Rd(sn, u)), fe;
- }
- return ($o.cancel = To), ($o.flush = no), $o;
- }
- var hz = an(function (l, u) {
- return M1(l, 1, u);
- }),
- vz = an(function (l, u, b) {
- return M1(l, Ko(u) || 0, b);
- });
- function pz(l) {
- return aa(l, z);
- }
- function Kf(l, u) {
- if (typeof l != 'function' || (u != null && typeof u != 'function'))
- throw new Ho(a);
- var b = function () {
- var $ = arguments,
- N = u ? u.apply(this, $) : $[0],
- te = b.cache;
- if (te.has(N)) return te.get(N);
- var fe = l.apply(this, $);
- return (b.cache = te.set(N, fe) || te), fe;
- };
- return (b.cache = new (Kf.Cache || oa)()), b;
- }
- Kf.Cache = oa;
- function qf(l) {
- if (typeof l != 'function') throw new Ho(a);
- return function () {
- var u = arguments;
- switch (u.length) {
- case 0:
- return !l.call(this);
- case 1:
- return !l.call(this, u[0]);
- case 2:
- return !l.call(this, u[0], u[1]);
- case 3:
- return !l.call(this, u[0], u[1], u[2]);
- }
- return !l.apply(this, u);
- };
- }
- function gz(l) {
- return Hx(2, l);
- }
- var mz = rO(function (l, u) {
- u =
- u.length == 1 && Jt(u[0])
- ? Dt(u[0], Ro(Ht()))
- : Dt(Dr(u, 1), Ro(Ht()));
- var b = u.length;
- return an(function ($) {
- for (var N = -1, te = Nr($.length, b); ++N < te; )
- $[N] = u[N].call(this, $[N]);
- return Jr(l, this, $);
- });
- }),
- eg = an(function (l, u) {
- var b = Ba(u, nc(eg));
- return aa(l, _, n, u, b);
- }),
- Kx = an(function (l, u) {
- var b = Ba(u, nc(Kx));
- return aa(l, P, n, u, b);
- }),
- bz = la(function (l, u) {
- return aa(l, A, n, n, n, u);
- });
- function yz(l, u) {
- if (typeof l != 'function') throw new Ho(a);
- return (u = u === n ? u : en(u)), an(l, u);
- }
- function xz(l, u) {
- if (typeof l != 'function') throw new Ho(a);
- return (
- (u = u == null ? 0 : wr(en(u), 0)),
- an(function (b) {
- var $ = b[u],
- N = Ua(b, 0, u);
- return $ && kn(N, $), Jr(l, this, N);
- })
- );
- }
- function wz(l, u, b) {
- var $ = !0,
- N = !0;
- if (typeof l != 'function') throw new Ho(a);
- return (
- Qn(b) &&
- (($ = 'leading' in b ? !!b.leading : $),
- (N = 'trailing' in b ? !!b.trailing : N)),
- Vx(l, u, { leading: $, maxWait: u, trailing: N })
- );
- }
- function Cz(l) {
- return Nx(l, 1);
- }
- function Sz(l, u) {
- return eg(Bp(u), l);
- }
- function _z() {
- if (!arguments.length) return [];
- var l = arguments[0];
- return Jt(l) ? l : [l];
- }
- function Rz(l) {
- return Uo(l, m);
- }
- function Pz(l, u) {
- return (u = typeof u == 'function' ? u : n), Uo(l, m, u);
- }
- function kz(l) {
- return Uo(l, v | m);
- }
- function Tz(l, u) {
- return (u = typeof u == 'function' ? u : n), Uo(l, v | m, u);
- }
- function $z(l, u) {
- return u == null || E1(l, u, $r(u));
- }
- function ii(l, u) {
- return l === u || (l !== l && u !== u);
- }
- var Oz = Lf(Pp),
- zz = Lf(function (l, u) {
- return l >= u;
- }),
- Kl = L1(
- (function () {
- return arguments;
- })()
- )
- ? L1
- : function (l) {
- return ar(l) && In.call(l, 'callee') && !R1.call(l, 'callee');
- },
- Jt = Be.isArray,
- Az = sf ? Ro(sf) : N5;
- function vo(l) {
- return l != null && Yf(l.length) && !ca(l);
- }
- function fr(l) {
- return ar(l) && vo(l);
- }
- function Ez(l) {
- return l === !0 || l === !1 || (ar(l) && eo(l) == me);
- }
- var Wa = q$ || ug,
- Mz = cf ? Ro(cf) : H5;
- function Iz(l) {
- return ar(l) && l.nodeType === 1 && !Pd(l);
- }
- function Dz(l) {
- if (l == null) return !0;
- if (
- vo(l) &&
- (Jt(l) ||
- typeof l == 'string' ||
- typeof l.splice == 'function' ||
- Wa(l) ||
- rc(l) ||
- Kl(l))
- )
- return !l.length;
- var u = Hr(l);
- if (u == ee || u == se) return !l.size;
- if (_d(l)) return !$p(l).length;
- for (var b in l) if (In.call(l, b)) return !1;
- return !0;
- }
- function Fz(l, u) {
- return wd(l, u);
- }
- function Bz(l, u, b) {
- b = typeof b == 'function' ? b : n;
- var $ = b ? b(l, u) : n;
- return $ === n ? wd(l, u, n, b) : !!$;
- }
- function tg(l) {
- if (!ar(l)) return !1;
- var u = eo(l);
- return (
- u == Ae ||
- u == ue ||
- (typeof l.message == 'string' &&
- typeof l.name == 'string' &&
- !Pd(l))
- );
- }
- function Lz(l) {
- return typeof l == 'number' && k1(l);
- }
- function ca(l) {
- if (!Qn(l)) return !1;
- var u = eo(l);
- return u == W || u == Q || u == le || u == ge;
- }
- function qx(l) {
- return typeof l == 'number' && l == en(l);
- }
- function Yf(l) {
- return typeof l == 'number' && l > -1 && l % 1 == 0 && l <= G;
- }
- function Qn(l) {
- var u = typeof l;
- return l != null && (u == 'object' || u == 'function');
- }
- function ar(l) {
- return l != null && typeof l == 'object';
- }
- var Yx = df ? Ro(df) : U5;
- function Nz(l, u) {
- return l === u || Tp(l, u, Vp(u));
- }
- function Hz(l, u, b) {
- return (b = typeof b == 'function' ? b : n), Tp(l, u, Vp(u), b);
- }
- function jz(l) {
- return Gx(l) && l != +l;
- }
- function Uz(l) {
- if (PO(l)) throw new Qt(i);
- return N1(l);
- }
- function Wz(l) {
- return l === null;
- }
- function Vz(l) {
- return l == null;
- }
- function Gx(l) {
- return typeof l == 'number' || (ar(l) && eo(l) == ve);
- }
- function Pd(l) {
- if (!ar(l) || eo(l) != H) return !1;
- var u = wf(l);
- if (u === null) return !0;
- var b = In.call(u, 'constructor') && u.constructor;
- return typeof b == 'function' && b instanceof b && mf.call(b) == H$;
- }
- var ng = Dl ? Ro(Dl) : W5;
- function Kz(l) {
- return qx(l) && l >= -G && l <= G;
- }
- var Xx = uf ? Ro(uf) : V5;
- function Gf(l) {
- return typeof l == 'string' || (!Jt(l) && ar(l) && eo(l) == Se);
- }
- function ko(l) {
- return typeof l == 'symbol' || (ar(l) && eo(l) == Ne);
- }
- var rc = ff ? Ro(ff) : K5;
- function qz(l) {
- return l === n;
- }
- function Yz(l) {
- return ar(l) && Hr(l) == it;
- }
- function Gz(l) {
- return ar(l) && eo(l) == dt;
- }
- var Xz = Lf(Op),
- Zz = Lf(function (l, u) {
- return l <= u;
- });
- function Zx(l) {
- if (!l) return [];
- if (vo(l)) return Gf(l) ? ri(l) : ho(l);
- if (hd && l[hd]) return $$(l[hd]());
- var u = Hr(l),
- b = u == ee ? mp : u == se ? vf : oc;
- return b(l);
- }
- function da(l) {
- if (!l) return l === 0 ? l : 0;
- if (((l = Ko(l)), l === q || l === -q)) {
- var u = l < 0 ? -1 : 1;
- return u * ne;
- }
- return l === l ? l : 0;
- }
- function en(l) {
- var u = da(l),
- b = u % 1;
- return u === u ? (b ? u - b : u) : 0;
- }
- function Qx(l) {
- return l ? jl(en(l), 0, J) : 0;
- }
- function Ko(l) {
- if (typeof l == 'number') return l;
- if (ko(l)) return X;
- if (Qn(l)) {
- var u = typeof l.valueOf == 'function' ? l.valueOf() : l;
- l = Qn(u) ? u + '' : u;
- }
- if (typeof l != 'string') return l === 0 ? l : +l;
- l = m1(l);
- var b = Je.test(l);
- return b || Ut.test(l)
- ? ti(l.slice(2), b ? 2 : 8)
- : ke.test(l)
- ? X
- : +l;
- }
- function Jx(l) {
- return Ri(l, po(l));
- }
- function Qz(l) {
- return l ? jl(en(l), -G, G) : l === 0 ? l : 0;
- }
- function Mn(l) {
- return l == null ? '' : Po(l);
- }
- var Jz = ec(function (l, u) {
- if (_d(u) || vo(u)) {
- Ri(u, $r(u), l);
- return;
- }
- for (var b in u) In.call(u, b) && bd(l, b, u[b]);
- }),
- ew = ec(function (l, u) {
- Ri(u, po(u), l);
- }),
- Xf = ec(function (l, u, b, $) {
- Ri(u, po(u), l, $);
- }),
- eA = ec(function (l, u, b, $) {
- Ri(u, $r(u), l, $);
- }),
- tA = la(Sp);
- function nA(l, u) {
- var b = Js(l);
- return u == null ? b : A1(b, u);
- }
- var rA = an(function (l, u) {
- l = Vn(l);
- var b = -1,
- $ = u.length,
- N = $ > 2 ? u[2] : n;
- for (N && to(u[0], u[1], N) && ($ = 1); ++b < $; )
- for (
- var te = u[b], fe = po(te), ye = -1, Te = fe.length;
- ++ye < Te;
- ) {
- var qe = fe[ye],
- Ye = l[qe];
- (Ye === n || (ii(Ye, Xs[qe]) && !In.call(l, qe))) &&
- (l[qe] = te[qe]);
- }
- return l;
- }),
- oA = an(function (l) {
- return l.push(n, mx), Jr(tw, n, l);
- });
- function iA(l, u) {
- return ni(l, Ht(u, 3), _i);
- }
- function aA(l, u) {
- return ni(l, Ht(u, 3), Rp);
- }
- function lA(l, u) {
- return l == null ? l : _p(l, Ht(u, 3), po);
- }
- function sA(l, u) {
- return l == null ? l : F1(l, Ht(u, 3), po);
- }
- function cA(l, u) {
- return l && _i(l, Ht(u, 3));
- }
- function dA(l, u) {
- return l && Rp(l, Ht(u, 3));
- }
- function uA(l) {
- return l == null ? [] : zf(l, $r(l));
- }
- function fA(l) {
- return l == null ? [] : zf(l, po(l));
- }
- function rg(l, u, b) {
- var $ = l == null ? n : Ul(l, u);
- return $ === n ? b : $;
- }
- function hA(l, u) {
- return l != null && xx(l, u, D5);
- }
- function og(l, u) {
- return l != null && xx(l, u, F5);
- }
- var vA = fx(function (l, u, b) {
- u != null && typeof u.toString != 'function' && (u = bf.call(u)),
- (l[u] = b);
- }, ag(go)),
- pA = fx(function (l, u, b) {
- u != null && typeof u.toString != 'function' && (u = bf.call(u)),
- In.call(l, u) ? l[u].push(b) : (l[u] = [b]);
- }, Ht),
- gA = an(xd);
- function $r(l) {
- return vo(l) ? O1(l) : $p(l);
- }
- function po(l) {
- return vo(l) ? O1(l, !0) : q5(l);
- }
- function mA(l, u) {
- var b = {};
- return (
- (u = Ht(u, 3)),
- _i(l, function ($, N, te) {
- ia(b, u($, N, te), $);
- }),
- b
- );
- }
- function bA(l, u) {
- var b = {};
- return (
- (u = Ht(u, 3)),
- _i(l, function ($, N, te) {
- ia(b, N, u($, N, te));
- }),
- b
- );
- }
- var yA = ec(function (l, u, b) {
- Af(l, u, b);
- }),
- tw = ec(function (l, u, b, $) {
- Af(l, u, b, $);
- }),
- xA = la(function (l, u) {
- var b = {};
- if (l == null) return b;
- var $ = !1;
- (u = Dt(u, function (te) {
- return (te = ja(te, l)), $ || ($ = te.length > 1), te;
- })),
- Ri(l, Up(l), b),
- $ && (b = Uo(b, v | p | m, vO));
- for (var N = u.length; N--; ) Ip(b, u[N]);
- return b;
- });
- function wA(l, u) {
- return nw(l, qf(Ht(u)));
- }
- var CA = la(function (l, u) {
- return l == null ? {} : G5(l, u);
- });
- function nw(l, u) {
- if (l == null) return {};
- var b = Dt(Up(l), function ($) {
- return [$];
- });
- return (
- (u = Ht(u)),
- q1(l, b, function ($, N) {
- return u($, N[0]);
- })
- );
- }
- function SA(l, u, b) {
- u = ja(u, l);
- var $ = -1,
- N = u.length;
- for (N || ((N = 1), (l = n)); ++$ < N; ) {
- var te = l == null ? n : l[Pi(u[$])];
- te === n && (($ = N), (te = b)), (l = ca(te) ? te.call(l) : te);
- }
- return l;
- }
- function _A(l, u, b) {
- return l == null ? l : Cd(l, u, b);
- }
- function RA(l, u, b, $) {
- return (
- ($ = typeof $ == 'function' ? $ : n), l == null ? l : Cd(l, u, b, $)
- );
- }
- var rw = px($r),
- ow = px(po);
- function PA(l, u, b) {
- var $ = Jt(l),
- N = $ || Wa(l) || rc(l);
- if (((u = Ht(u, 4)), b == null)) {
- var te = l && l.constructor;
- N
- ? (b = $ ? new te() : [])
- : Qn(l)
- ? (b = ca(te) ? Js(wf(l)) : {})
- : (b = {});
- }
- return (
- (N ? de : _i)(l, function (fe, ye, Te) {
- return u(b, fe, ye, Te);
- }),
- b
- );
- }
- function kA(l, u) {
- return l == null ? !0 : Ip(l, u);
- }
- function TA(l, u, b) {
- return l == null ? l : Q1(l, u, Bp(b));
- }
- function $A(l, u, b, $) {
- return (
- ($ = typeof $ == 'function' ? $ : n),
- l == null ? l : Q1(l, u, Bp(b), $)
- );
- }
- function oc(l) {
- return l == null ? [] : gp(l, $r(l));
- }
- function OA(l) {
- return l == null ? [] : gp(l, po(l));
- }
- function zA(l, u, b) {
- return (
- b === n && ((b = u), (u = n)),
- b !== n && ((b = Ko(b)), (b = b === b ? b : 0)),
- u !== n && ((u = Ko(u)), (u = u === u ? u : 0)),
- jl(Ko(l), u, b)
- );
- }
- function AA(l, u, b) {
- return (
- (u = da(u)),
- b === n ? ((b = u), (u = 0)) : (b = da(b)),
- (l = Ko(l)),
- B5(l, u, b)
- );
- }
- function EA(l, u, b) {
- if (
- (b && typeof b != 'boolean' && to(l, u, b) && (u = b = n),
- b === n &&
- (typeof u == 'boolean'
- ? ((b = u), (u = n))
- : typeof l == 'boolean' && ((b = l), (l = n))),
- l === n && u === n
- ? ((l = 0), (u = 1))
- : ((l = da(l)), u === n ? ((u = l), (l = 0)) : (u = da(u))),
- l > u)
- ) {
- var $ = l;
- (l = u), (u = $);
- }
- if (b || l % 1 || u % 1) {
- var N = T1();
- return Nr(l + N * (u - l + lf('1e-' + ((N + '').length - 1))), u);
- }
- return Ap(l, u);
- }
- var MA = tc(function (l, u, b) {
- return (u = u.toLowerCase()), l + (b ? iw(u) : u);
- });
- function iw(l) {
- return ig(Mn(l).toLowerCase());
- }
- function aw(l) {
- return (l = Mn(l)), l && l.replace(nn, _$).replace(lp, '');
- }
- function IA(l, u, b) {
- (l = Mn(l)), (u = Po(u));
- var $ = l.length;
- b = b === n ? $ : jl(en(b), 0, $);
- var N = b;
- return (b -= u.length), b >= 0 && l.slice(b, N) == u;
- }
- function DA(l) {
- return (l = Mn(l)), l && pt.test(l) ? l.replace(He, R$) : l;
- }
- function FA(l) {
- return (l = Mn(l)), l && we.test(l) ? l.replace(Zt, '\\$&') : l;
- }
- var BA = tc(function (l, u, b) {
- return l + (b ? '-' : '') + u.toLowerCase();
- }),
- LA = tc(function (l, u, b) {
- return l + (b ? ' ' : '') + u.toLowerCase();
- }),
- NA = cx('toLowerCase');
- function HA(l, u, b) {
- (l = Mn(l)), (u = en(u));
- var $ = u ? Ys(l) : 0;
- if (!u || $ >= u) return l;
- var N = (u - $) / 2;
- return Bf(Rf(N), b) + l + Bf(_f(N), b);
- }
- function jA(l, u, b) {
- (l = Mn(l)), (u = en(u));
- var $ = u ? Ys(l) : 0;
- return u && $ < u ? l + Bf(u - $, b) : l;
- }
- function UA(l, u, b) {
- (l = Mn(l)), (u = en(u));
- var $ = u ? Ys(l) : 0;
- return u && $ < u ? Bf(u - $, b) + l : l;
- }
- function WA(l, u, b) {
- return (
- b || u == null ? (u = 0) : u && (u = +u),
- Z$(Mn(l).replace(je, ''), u || 0)
- );
- }
- function VA(l, u, b) {
- return (
- (b ? to(l, u, b) : u === n) ? (u = 1) : (u = en(u)), Ep(Mn(l), u)
- );
- }
- function KA() {
- var l = arguments,
- u = Mn(l[0]);
- return l.length < 3 ? u : u.replace(l[1], l[2]);
- }
- var qA = tc(function (l, u, b) {
- return l + (b ? '_' : '') + u.toLowerCase();
- });
- function YA(l, u, b) {
- return (
- b && typeof b != 'number' && to(l, u, b) && (u = b = n),
- (b = b === n ? J : b >>> 0),
- b
- ? ((l = Mn(l)),
- l &&
- (typeof u == 'string' || (u != null && !ng(u))) &&
- ((u = Po(u)), !u && qs(l))
- ? Ua(ri(l), 0, b)
- : l.split(u, b))
- : []
- );
- }
- var GA = tc(function (l, u, b) {
- return l + (b ? ' ' : '') + ig(u);
- });
- function XA(l, u, b) {
- return (
- (l = Mn(l)),
- (b = b == null ? 0 : jl(en(b), 0, l.length)),
- (u = Po(u)),
- l.slice(b, b + u.length) == u
- );
- }
- function ZA(l, u, b) {
- var $ = Y.templateSettings;
- b && to(l, u, b) && (u = n), (l = Mn(l)), (u = Xf({}, u, $, gx));
- var N = Xf({}, u.imports, $.imports, gx),
- te = $r(N),
- fe = gp(N, te),
- ye,
- Te,
- qe = 0,
- Ye = u.interpolate || kr,
- et = "__p += '",
- mt = bp(
- (u.escape || kr).source +
- '|' +
- Ye.source +
- '|' +
- (Ye === nt ? bn : kr).source +
- '|' +
- (u.evaluate || kr).source +
- '|$',
- 'g'
- ),
- Tt =
- '//# sourceURL=' +
- (In.call(u, 'sourceURL')
- ? (u.sourceURL + '').replace(/\s/g, ' ')
- : 'lodash.templateSources[' + ++of + ']') +
- `
- `;
- l.replace(mt, function (Vt, sn, yn, To, no, $o) {
- return (
- yn || (yn = To),
- (et += l.slice(qe, $o).replace(Yt, P$)),
- sn &&
- ((ye = !0),
- (et +=
- `' +
- __e(` +
- sn +
- `) +
- '`)),
- no &&
- ((Te = !0),
- (et +=
- `';
- ` +
- no +
- `;
- __p += '`)),
- yn &&
- (et +=
- `' +
- ((__t = (` +
- yn +
- `)) == null ? '' : __t) +
- '`),
- (qe = $o + Vt.length),
- Vt
- );
- }),
- (et += `';
- `);
- var Wt = In.call(u, 'variable') && u.variable;
- if (!Wt)
- et =
- `with (obj) {
- ` +
- et +
- `
- }
- `;
- else if (ft.test(Wt)) throw new Qt(s);
- (et = (Te ? et.replace(Ue, '') : et)
- .replace(lt, '$1')
- .replace(st, '$1;')),
- (et =
- 'function(' +
- (Wt || 'obj') +
- `) {
- ` +
- (Wt
- ? ''
- : `obj || (obj = {});
- `) +
- "var __t, __p = ''" +
- (ye ? ', __e = _.escape' : '') +
- (Te
- ? `, __j = Array.prototype.join;
- function print() { __p += __j.call(arguments, '') }
- `
- : `;
- `) +
- et +
- `return __p
- }`);
- var rn = sw(function () {
- return zn(te, Tt + 'return ' + et).apply(n, fe);
- });
- if (((rn.source = et), tg(rn))) throw rn;
- return rn;
- }
- function QA(l) {
- return Mn(l).toLowerCase();
- }
- function JA(l) {
- return Mn(l).toUpperCase();
- }
- function eE(l, u, b) {
- if (((l = Mn(l)), l && (b || u === n))) return m1(l);
- if (!l || !(u = Po(u))) return l;
- var $ = ri(l),
- N = ri(u),
- te = b1($, N),
- fe = y1($, N) + 1;
- return Ua($, te, fe).join('');
- }
- function tE(l, u, b) {
- if (((l = Mn(l)), l && (b || u === n))) return l.slice(0, w1(l) + 1);
- if (!l || !(u = Po(u))) return l;
- var $ = ri(l),
- N = y1($, ri(u)) + 1;
- return Ua($, 0, N).join('');
- }
- function nE(l, u, b) {
- if (((l = Mn(l)), l && (b || u === n))) return l.replace(je, '');
- if (!l || !(u = Po(u))) return l;
- var $ = ri(l),
- N = b1($, ri(u));
- return Ua($, N).join('');
- }
- function rE(l, u) {
- var b = k,
- $ = M;
- if (Qn(u)) {
- var N = 'separator' in u ? u.separator : N;
- (b = 'length' in u ? en(u.length) : b),
- ($ = 'omission' in u ? Po(u.omission) : $);
- }
- l = Mn(l);
- var te = l.length;
- if (qs(l)) {
- var fe = ri(l);
- te = fe.length;
- }
- if (b >= te) return l;
- var ye = b - Ys($);
- if (ye < 1) return $;
- var Te = fe ? Ua(fe, 0, ye).join('') : l.slice(0, ye);
- if (N === n) return Te + $;
- if ((fe && (ye += Te.length - ye), ng(N))) {
- if (l.slice(ye).search(N)) {
- var qe,
- Ye = Te;
- for (
- N.global || (N = bp(N.source, Mn(ln.exec(N)) + 'g')),
- N.lastIndex = 0;
- (qe = N.exec(Ye));
- )
- var et = qe.index;
- Te = Te.slice(0, et === n ? ye : et);
- }
- } else if (l.indexOf(Po(N), ye) != ye) {
- var mt = Te.lastIndexOf(N);
- mt > -1 && (Te = Te.slice(0, mt));
- }
- return Te + $;
- }
- function oE(l) {
- return (l = Mn(l)), l && tt.test(l) ? l.replace(be, E$) : l;
- }
- var iE = tc(function (l, u, b) {
- return l + (b ? ' ' : '') + u.toUpperCase();
- }),
- ig = cx('toUpperCase');
- function lw(l, u, b) {
- return (
- (l = Mn(l)),
- (u = b ? n : u),
- u === n ? (T$(l) ? D$(l) : co(l)) : l.match(u) || []
- );
- }
- var sw = an(function (l, u) {
- try {
- return Jr(l, n, u);
- } catch (b) {
- return tg(b) ? b : new Qt(b);
- }
- }),
- aE = la(function (l, u) {
- return (
- de(u, function (b) {
- (b = Pi(b)), ia(l, b, Jp(l[b], l));
- }),
- l
- );
- });
- function lE(l) {
- var u = l == null ? 0 : l.length,
- b = Ht();
- return (
- (l = u
- ? Dt(l, function ($) {
- if (typeof $[1] != 'function') throw new Ho(a);
- return [b($[0]), $[1]];
- })
- : []),
- an(function ($) {
- for (var N = -1; ++N < u; ) {
- var te = l[N];
- if (Jr(te[0], this, $)) return Jr(te[1], this, $);
- }
- })
- );
- }
- function sE(l) {
- return E5(Uo(l, v));
- }
- function ag(l) {
- return function () {
- return l;
- };
- }
- function cE(l, u) {
- return l == null || l !== l ? u : l;
- }
- var dE = ux(),
- uE = ux(!0);
- function go(l) {
- return l;
- }
- function lg(l) {
- return H1(typeof l == 'function' ? l : Uo(l, v));
- }
- function fE(l) {
- return U1(Uo(l, v));
- }
- function hE(l, u) {
- return W1(l, Uo(u, v));
- }
- var vE = an(function (l, u) {
- return function (b) {
- return xd(b, l, u);
- };
- }),
- pE = an(function (l, u) {
- return function (b) {
- return xd(l, b, u);
- };
- });
- function sg(l, u, b) {
- var $ = $r(u),
- N = zf(u, $);
- b == null &&
- !(Qn(u) && (N.length || !$.length)) &&
- ((b = u), (u = l), (l = this), (N = zf(u, $r(u))));
- var te = !(Qn(b) && 'chain' in b) || !!b.chain,
- fe = ca(l);
- return (
- de(N, function (ye) {
- var Te = u[ye];
- (l[ye] = Te),
- fe &&
- (l.prototype[ye] = function () {
- var qe = this.__chain__;
- if (te || qe) {
- var Ye = l(this.__wrapped__),
- et = (Ye.__actions__ = ho(this.__actions__));
- return (
- et.push({ func: Te, args: arguments, thisArg: l }),
- (Ye.__chain__ = qe),
- Ye
- );
- }
- return Te.apply(l, kn([this.value()], arguments));
- });
- }),
- l
- );
- }
- function gE() {
- return ur._ === this && (ur._ = j$), this;
- }
- function cg() {}
- function mE(l) {
- return (
- (l = en(l)),
- an(function (u) {
- return V1(u, l);
- })
- );
- }
- var bE = Np(Dt),
- yE = Np(at),
- xE = Np(Tr);
- function cw(l) {
- return qp(l) ? fp(Pi(l)) : X5(l);
- }
- function wE(l) {
- return function (u) {
- return l == null ? n : Ul(l, u);
- };
- }
- var CE = hx(),
- SE = hx(!0);
- function dg() {
- return [];
- }
- function ug() {
- return !1;
- }
- function _E() {
- return {};
- }
- function RE() {
- return '';
- }
- function PE() {
- return !0;
- }
- function kE(l, u) {
- if (((l = en(l)), l < 1 || l > G)) return [];
- var b = J,
- $ = Nr(l, J);
- (u = Ht(u)), (l -= J);
- for (var N = pp($, u); ++b < l; ) u(b);
- return N;
- }
- function TE(l) {
- return Jt(l) ? Dt(l, Pi) : ko(l) ? [l] : ho($x(Mn(l)));
- }
- function $E(l) {
- var u = ++N$;
- return Mn(l) + u;
- }
- var OE = Ff(function (l, u) {
- return l + u;
- }, 0),
- zE = Hp('ceil'),
- AE = Ff(function (l, u) {
- return l / u;
- }, 1),
- EE = Hp('floor');
- function ME(l) {
- return l && l.length ? Of(l, go, Pp) : n;
- }
- function IE(l, u) {
- return l && l.length ? Of(l, Ht(u, 2), Pp) : n;
- }
- function DE(l) {
- return Bl(l, go);
- }
- function FE(l, u) {
- return Bl(l, Ht(u, 2));
- }
- function BE(l) {
- return l && l.length ? Of(l, go, Op) : n;
- }
- function LE(l, u) {
- return l && l.length ? Of(l, Ht(u, 2), Op) : n;
- }
- var NE = Ff(function (l, u) {
- return l * u;
- }, 1),
- HE = Hp('round'),
- jE = Ff(function (l, u) {
- return l - u;
- }, 0);
- function UE(l) {
- return l && l.length ? vp(l, go) : 0;
- }
- function WE(l, u) {
- return l && l.length ? vp(l, Ht(u, 2)) : 0;
- }
- return (
- (Y.after = fz),
- (Y.ary = Nx),
- (Y.assign = Jz),
- (Y.assignIn = ew),
- (Y.assignInWith = Xf),
- (Y.assignWith = eA),
- (Y.at = tA),
- (Y.before = Hx),
- (Y.bind = Jp),
- (Y.bindAll = aE),
- (Y.bindKey = jx),
- (Y.castArray = _z),
- (Y.chain = Fx),
- (Y.chunk = EO),
- (Y.compact = MO),
- (Y.concat = IO),
- (Y.cond = lE),
- (Y.conforms = sE),
- (Y.constant = ag),
- (Y.countBy = U4),
- (Y.create = nA),
- (Y.curry = Ux),
- (Y.curryRight = Wx),
- (Y.debounce = Vx),
- (Y.defaults = rA),
- (Y.defaultsDeep = oA),
- (Y.defer = hz),
- (Y.delay = vz),
- (Y.difference = DO),
- (Y.differenceBy = FO),
- (Y.differenceWith = BO),
- (Y.drop = LO),
- (Y.dropRight = NO),
- (Y.dropRightWhile = HO),
- (Y.dropWhile = jO),
- (Y.fill = UO),
- (Y.filter = V4),
- (Y.flatMap = Y4),
- (Y.flatMapDeep = G4),
- (Y.flatMapDepth = X4),
- (Y.flatten = Ex),
- (Y.flattenDeep = WO),
- (Y.flattenDepth = VO),
- (Y.flip = pz),
- (Y.flow = dE),
- (Y.flowRight = uE),
- (Y.fromPairs = KO),
- (Y.functions = uA),
- (Y.functionsIn = fA),
- (Y.groupBy = Z4),
- (Y.initial = YO),
- (Y.intersection = GO),
- (Y.intersectionBy = XO),
- (Y.intersectionWith = ZO),
- (Y.invert = vA),
- (Y.invertBy = pA),
- (Y.invokeMap = J4),
- (Y.iteratee = lg),
- (Y.keyBy = ez),
- (Y.keys = $r),
- (Y.keysIn = po),
- (Y.map = Wf),
- (Y.mapKeys = mA),
- (Y.mapValues = bA),
- (Y.matches = fE),
- (Y.matchesProperty = hE),
- (Y.memoize = Kf),
- (Y.merge = yA),
- (Y.mergeWith = tw),
- (Y.method = vE),
- (Y.methodOf = pE),
- (Y.mixin = sg),
- (Y.negate = qf),
- (Y.nthArg = mE),
- (Y.omit = xA),
- (Y.omitBy = wA),
- (Y.once = gz),
- (Y.orderBy = tz),
- (Y.over = bE),
- (Y.overArgs = mz),
- (Y.overEvery = yE),
- (Y.overSome = xE),
- (Y.partial = eg),
- (Y.partialRight = Kx),
- (Y.partition = nz),
- (Y.pick = CA),
- (Y.pickBy = nw),
- (Y.property = cw),
- (Y.propertyOf = wE),
- (Y.pull = t4),
- (Y.pullAll = Ix),
- (Y.pullAllBy = n4),
- (Y.pullAllWith = r4),
- (Y.pullAt = o4),
- (Y.range = CE),
- (Y.rangeRight = SE),
- (Y.rearg = bz),
- (Y.reject = iz),
- (Y.remove = i4),
- (Y.rest = yz),
- (Y.reverse = Zp),
- (Y.sampleSize = lz),
- (Y.set = _A),
- (Y.setWith = RA),
- (Y.shuffle = sz),
- (Y.slice = a4),
- (Y.sortBy = uz),
- (Y.sortedUniq = h4),
- (Y.sortedUniqBy = v4),
- (Y.split = YA),
- (Y.spread = xz),
- (Y.tail = p4),
- (Y.take = g4),
- (Y.takeRight = m4),
- (Y.takeRightWhile = b4),
- (Y.takeWhile = y4),
- (Y.tap = M4),
- (Y.throttle = wz),
- (Y.thru = Uf),
- (Y.toArray = Zx),
- (Y.toPairs = rw),
- (Y.toPairsIn = ow),
- (Y.toPath = TE),
- (Y.toPlainObject = Jx),
- (Y.transform = PA),
- (Y.unary = Cz),
- (Y.union = x4),
- (Y.unionBy = w4),
- (Y.unionWith = C4),
- (Y.uniq = S4),
- (Y.uniqBy = _4),
- (Y.uniqWith = R4),
- (Y.unset = kA),
- (Y.unzip = Qp),
- (Y.unzipWith = Dx),
- (Y.update = TA),
- (Y.updateWith = $A),
- (Y.values = oc),
- (Y.valuesIn = OA),
- (Y.without = P4),
- (Y.words = lw),
- (Y.wrap = Sz),
- (Y.xor = k4),
- (Y.xorBy = T4),
- (Y.xorWith = $4),
- (Y.zip = O4),
- (Y.zipObject = z4),
- (Y.zipObjectDeep = A4),
- (Y.zipWith = E4),
- (Y.entries = rw),
- (Y.entriesIn = ow),
- (Y.extend = ew),
- (Y.extendWith = Xf),
- sg(Y, Y),
- (Y.add = OE),
- (Y.attempt = sw),
- (Y.camelCase = MA),
- (Y.capitalize = iw),
- (Y.ceil = zE),
- (Y.clamp = zA),
- (Y.clone = Rz),
- (Y.cloneDeep = kz),
- (Y.cloneDeepWith = Tz),
- (Y.cloneWith = Pz),
- (Y.conformsTo = $z),
- (Y.deburr = aw),
- (Y.defaultTo = cE),
- (Y.divide = AE),
- (Y.endsWith = IA),
- (Y.eq = ii),
- (Y.escape = DA),
- (Y.escapeRegExp = FA),
- (Y.every = W4),
- (Y.find = K4),
- (Y.findIndex = zx),
- (Y.findKey = iA),
- (Y.findLast = q4),
- (Y.findLastIndex = Ax),
- (Y.findLastKey = aA),
- (Y.floor = EE),
- (Y.forEach = Bx),
- (Y.forEachRight = Lx),
- (Y.forIn = lA),
- (Y.forInRight = sA),
- (Y.forOwn = cA),
- (Y.forOwnRight = dA),
- (Y.get = rg),
- (Y.gt = Oz),
- (Y.gte = zz),
- (Y.has = hA),
- (Y.hasIn = og),
- (Y.head = Mx),
- (Y.identity = go),
- (Y.includes = Q4),
- (Y.indexOf = qO),
- (Y.inRange = AA),
- (Y.invoke = gA),
- (Y.isArguments = Kl),
- (Y.isArray = Jt),
- (Y.isArrayBuffer = Az),
- (Y.isArrayLike = vo),
- (Y.isArrayLikeObject = fr),
- (Y.isBoolean = Ez),
- (Y.isBuffer = Wa),
- (Y.isDate = Mz),
- (Y.isElement = Iz),
- (Y.isEmpty = Dz),
- (Y.isEqual = Fz),
- (Y.isEqualWith = Bz),
- (Y.isError = tg),
- (Y.isFinite = Lz),
- (Y.isFunction = ca),
- (Y.isInteger = qx),
- (Y.isLength = Yf),
- (Y.isMap = Yx),
- (Y.isMatch = Nz),
- (Y.isMatchWith = Hz),
- (Y.isNaN = jz),
- (Y.isNative = Uz),
- (Y.isNil = Vz),
- (Y.isNull = Wz),
- (Y.isNumber = Gx),
- (Y.isObject = Qn),
- (Y.isObjectLike = ar),
- (Y.isPlainObject = Pd),
- (Y.isRegExp = ng),
- (Y.isSafeInteger = Kz),
- (Y.isSet = Xx),
- (Y.isString = Gf),
- (Y.isSymbol = ko),
- (Y.isTypedArray = rc),
- (Y.isUndefined = qz),
- (Y.isWeakMap = Yz),
- (Y.isWeakSet = Gz),
- (Y.join = QO),
- (Y.kebabCase = BA),
- (Y.last = Vo),
- (Y.lastIndexOf = JO),
- (Y.lowerCase = LA),
- (Y.lowerFirst = NA),
- (Y.lt = Xz),
- (Y.lte = Zz),
- (Y.max = ME),
- (Y.maxBy = IE),
- (Y.mean = DE),
- (Y.meanBy = FE),
- (Y.min = BE),
- (Y.minBy = LE),
- (Y.stubArray = dg),
- (Y.stubFalse = ug),
- (Y.stubObject = _E),
- (Y.stubString = RE),
- (Y.stubTrue = PE),
- (Y.multiply = NE),
- (Y.nth = e4),
- (Y.noConflict = gE),
- (Y.noop = cg),
- (Y.now = Vf),
- (Y.pad = HA),
- (Y.padEnd = jA),
- (Y.padStart = UA),
- (Y.parseInt = WA),
- (Y.random = EA),
- (Y.reduce = rz),
- (Y.reduceRight = oz),
- (Y.repeat = VA),
- (Y.replace = KA),
- (Y.result = SA),
- (Y.round = HE),
- (Y.runInContext = Pe),
- (Y.sample = az),
- (Y.size = cz),
- (Y.snakeCase = qA),
- (Y.some = dz),
- (Y.sortedIndex = l4),
- (Y.sortedIndexBy = s4),
- (Y.sortedIndexOf = c4),
- (Y.sortedLastIndex = d4),
- (Y.sortedLastIndexBy = u4),
- (Y.sortedLastIndexOf = f4),
- (Y.startCase = GA),
- (Y.startsWith = XA),
- (Y.subtract = jE),
- (Y.sum = UE),
- (Y.sumBy = WE),
- (Y.template = ZA),
- (Y.times = kE),
- (Y.toFinite = da),
- (Y.toInteger = en),
- (Y.toLength = Qx),
- (Y.toLower = QA),
- (Y.toNumber = Ko),
- (Y.toSafeInteger = Qz),
- (Y.toString = Mn),
- (Y.toUpper = JA),
- (Y.trim = eE),
- (Y.trimEnd = tE),
- (Y.trimStart = nE),
- (Y.truncate = rE),
- (Y.unescape = oE),
- (Y.uniqueId = $E),
- (Y.upperCase = iE),
- (Y.upperFirst = ig),
- (Y.each = Bx),
- (Y.eachRight = Lx),
- (Y.first = Mx),
- sg(
- Y,
- (function () {
- var l = {};
- return (
- _i(Y, function (u, b) {
- In.call(Y.prototype, b) || (l[b] = u);
- }),
- l
- );
- })(),
- { chain: !1 }
- ),
- (Y.VERSION = r),
- de(
- [
- 'bind',
- 'bindKey',
- 'curry',
- 'curryRight',
- 'partial',
- 'partialRight'
- ],
- function (l) {
- Y[l].placeholder = Y;
- }
- ),
- de(['drop', 'take'], function (l, u) {
- (fn.prototype[l] = function (b) {
- b = b === n ? 1 : wr(en(b), 0);
- var $ = this.__filtered__ && !u ? new fn(this) : this.clone();
- return (
- $.__filtered__
- ? ($.__takeCount__ = Nr(b, $.__takeCount__))
- : $.__views__.push({
- size: Nr(b, J),
- type: l + ($.__dir__ < 0 ? 'Right' : '')
- }),
- $
- );
- }),
- (fn.prototype[l + 'Right'] = function (b) {
- return this.reverse()[l](b).reverse();
- });
- }),
- de(['filter', 'map', 'takeWhile'], function (l, u) {
- var b = u + 1,
- $ = b == L || b == B;
- fn.prototype[l] = function (N) {
- var te = this.clone();
- return (
- te.__iteratees__.push({ iteratee: Ht(N, 3), type: b }),
- (te.__filtered__ = te.__filtered__ || $),
- te
- );
- };
- }),
- de(['head', 'last'], function (l, u) {
- var b = 'take' + (u ? 'Right' : '');
- fn.prototype[l] = function () {
- return this[b](1).value()[0];
- };
- }),
- de(['initial', 'tail'], function (l, u) {
- var b = 'drop' + (u ? '' : 'Right');
- fn.prototype[l] = function () {
- return this.__filtered__ ? new fn(this) : this[b](1);
- };
- }),
- (fn.prototype.compact = function () {
- return this.filter(go);
- }),
- (fn.prototype.find = function (l) {
- return this.filter(l).head();
- }),
- (fn.prototype.findLast = function (l) {
- return this.reverse().find(l);
- }),
- (fn.prototype.invokeMap = an(function (l, u) {
- return typeof l == 'function'
- ? new fn(this)
- : this.map(function (b) {
- return xd(b, l, u);
- });
- })),
- (fn.prototype.reject = function (l) {
- return this.filter(qf(Ht(l)));
- }),
- (fn.prototype.slice = function (l, u) {
- l = en(l);
- var b = this;
- return b.__filtered__ && (l > 0 || u < 0)
- ? new fn(b)
- : (l < 0 ? (b = b.takeRight(-l)) : l && (b = b.drop(l)),
- u !== n &&
- ((u = en(u)), (b = u < 0 ? b.dropRight(-u) : b.take(u - l))),
- b);
- }),
- (fn.prototype.takeRightWhile = function (l) {
- return this.reverse().takeWhile(l).reverse();
- }),
- (fn.prototype.toArray = function () {
- return this.take(J);
- }),
- _i(fn.prototype, function (l, u) {
- var b = /^(?:filter|find|map|reject)|While$/.test(u),
- $ = /^(?:head|last)$/.test(u),
- N = Y[$ ? 'take' + (u == 'last' ? 'Right' : '') : u],
- te = $ || /^find/.test(u);
- N &&
- (Y.prototype[u] = function () {
- var fe = this.__wrapped__,
- ye = $ ? [1] : arguments,
- Te = fe instanceof fn,
- qe = ye[0],
- Ye = Te || Jt(fe),
- et = function (sn) {
- var yn = N.apply(Y, kn([sn], ye));
- return $ && mt ? yn[0] : yn;
- };
- Ye &&
- b &&
- typeof qe == 'function' &&
- qe.length != 1 &&
- (Te = Ye = !1);
- var mt = this.__chain__,
- Tt = !!this.__actions__.length,
- Wt = te && !mt,
- rn = Te && !Tt;
- if (!te && Ye) {
- fe = rn ? fe : new fn(this);
- var Vt = l.apply(fe, ye);
- return (
- Vt.__actions__.push({ func: Uf, args: [et], thisArg: n }),
- new jo(Vt, mt)
- );
- }
- return Wt && rn
- ? l.apply(this, ye)
- : ((Vt = this.thru(et)),
- Wt ? ($ ? Vt.value()[0] : Vt.value()) : Vt);
- });
- }),
- de(
- ['pop', 'push', 'shift', 'sort', 'splice', 'unshift'],
- function (l) {
- var u = pf[l],
- b = /^(?:push|sort|unshift)$/.test(l) ? 'tap' : 'thru',
- $ = /^(?:pop|shift)$/.test(l);
- Y.prototype[l] = function () {
- var N = arguments;
- if ($ && !this.__chain__) {
- var te = this.value();
- return u.apply(Jt(te) ? te : [], N);
- }
- return this[b](function (fe) {
- return u.apply(Jt(fe) ? fe : [], N);
- });
- };
- }
- ),
- _i(fn.prototype, function (l, u) {
- var b = Y[u];
- if (b) {
- var $ = b.name + '';
- In.call(Qs, $) || (Qs[$] = []), Qs[$].push({ name: u, func: b });
- }
- }),
- (Qs[Df(n, y).name] = [{ name: 'wrapper', func: n }]),
- (fn.prototype.clone = o5),
- (fn.prototype.reverse = i5),
- (fn.prototype.value = a5),
- (Y.prototype.at = I4),
- (Y.prototype.chain = D4),
- (Y.prototype.commit = F4),
- (Y.prototype.next = B4),
- (Y.prototype.plant = N4),
- (Y.prototype.reverse = H4),
- (Y.prototype.toJSON = Y.prototype.valueOf = Y.prototype.value = j4),
- (Y.prototype.first = Y.prototype.head),
- hd && (Y.prototype[hd] = L4),
- Y
- );
- },
- Gs = F$();
- lo ? (((lo.exports = Gs)._ = Gs), (El._ = Gs)) : (ur._ = Gs);
- }).call(Nn);
- })(hv, hv.exports);
- hv.exports;
- function um(e, t) {
- const n = parseInt(e, 16) + t,
- r = n > 255 ? 255 : n;
- return r.toString(16).length > 1 ? r.toString(16) : `0${r.toString(16)}`;
- }
- function s0(e, t) {
- return (
- (e = e.indexOf('#') >= 0 ? e.substring(1, e.length) : e),
- (t = Math.trunc((255 * t) / 100)),
- `#${um(e.substring(0, 2), t)}${um(e.substring(2, 4), t)}${um(
- e.substring(4, 6),
- t
- )}`
- );
- }
- const ule = (e, t) => {
- if (isNaN(e)) return '00:00';
- const n = Math.floor(e / 60)
- .toString()
- .padStart(2, '0'),
- r = Math.floor(e % 60)
- .toString()
- .padStart(2, '0');
- return t === 'cn' ? n + '分' + r + '秒' : n + ':' + r;
- };
- function fle() {
- const e =
- document.querySelector('.n-input--error-status') ||
- document.querySelector('.n-base-selection--error-status');
- e == null || e.scrollIntoView({ block: 'center', behavior: 'smooth' });
- }
- const yre = Re({
- name: 'router-error',
- setup() {
- const e = gre(),
- t = M3();
- let n = !1;
- return (
- e.onError(r => {
- (r.message + '').indexOf('imported') != -1 &&
- !n &&
- ((n = !0),
- t.warning({
- title: '更新提示',
- content: '网站有更新请点击确定刷新页面?',
- positiveText: '确定',
- negativeText: '取消',
- onPositiveClick: () => {
- window.location.reload();
- }
- }));
- }),
- () => er('div', null, null)
- );
- }
- }),
- xre = Re({
- name: 'App',
- setup() {
- const e = Z(),
- t = I(() => {
- const a = xc.appTheme,
- s = s0(xc.appTheme, 6);
- return {
- common: {
- primaryColor: a,
- primaryColorHover: s,
- primaryColorPressed: s
- },
- LoadingBar: { colorLoading: a }
- };
- }),
- n = Z(''),
- r = () => {
- const a = window.chrome,
- s = window.navigator,
- c = s.vendor,
- d = typeof window.opr < 'u',
- f = s.userAgent.indexOf('Edge') > -1;
- return (
- (e.value = s.userAgent.match('CriOS')),
- e.value ||
- (a !== null &&
- typeof a < 'u' &&
- c === 'Google Inc.' &&
- d === !1 &&
- f === !1)
- );
- },
- o = () => {
- const a = navigator.userAgent.split(' ');
- let s = '';
- for (let c = 0; c < a.length; c++) /chrome/i.test(a[c]) && (s = a[c]);
- return s ? Number(s.split('/')[1].split('.')[0]) : !1;
- };
- if (r()) {
- const a = o();
- (!a || (a && a < 100)) &&
- (n.value = '您当前的chrome版本过低,为了保证您的用户体验请升级后使用');
- } else
- (n.value = '为了保证您的用户体验,请使用chrome打开,点击确定下载'),
- console.log('---');
- return () =>
- er(on, null, [
- er(
- Py,
- { locale: kN, themeOverrides: t.value, dateLocale: mH },
- {
- default: () => [
- er(hne, null, {
- default: () => [er(zT, null, null), er(yre, null, null)]
- })
- ]
- }
- )
- ]);
- }
- }),
- wre = 'modulepreload',
- Cre = function (e, t) {
- return new URL(e, t).href;
- },
- D2 = {},
- Oo = function (t, n, r) {
- if (!n || n.length === 0) return t();
- const o = document.getElementsByTagName('link');
- return Promise.all(
- n.map(i => {
- if (((i = Cre(i, r)), i in D2)) return;
- D2[i] = !0;
- const a = i.endsWith('.css'),
- s = a ? '[rel="stylesheet"]' : '';
- if (!!r)
- for (let f = o.length - 1; f >= 0; f--) {
- const v = o[f];
- if (v.href === i && (!a || v.rel === 'stylesheet')) return;
- }
- else if (document.querySelector(`link[href="${i}"]${s}`)) return;
- const d = document.createElement('link');
- if (
- ((d.rel = a ? 'stylesheet' : wre),
- a || ((d.as = 'script'), (d.crossOrigin = '')),
- (d.href = i),
- document.head.appendChild(d),
- a)
- )
- return new Promise((f, v) => {
- d.addEventListener('load', f),
- d.addEventListener('error', () =>
- v(new Error(`Unable to preload CSS for ${i}`))
- );
- });
- })
- ).then(() => t());
- },
- Sre = [
- {
- name: 'login',
- path: '/login',
- component: () =>
- Oo(
- () => import('./index-e54bdbe6.js'),
- ['./index-e54bdbe6.js', './index-b2565c53.css'],
- import.meta.url
- ),
- meta: { title: '登录', singleLayout: 'blank' }
- },
- {
- name: '/Layout',
- path: '/',
- component: () =>
- Oo(
- () => import('./index-87948892.js'),
- [
- './index-87948892.js',
- './teacherIcon-b8e3946d.js',
- './index-0310aded.css'
- ],
- import.meta.url
- ),
- children: [
- {
- path: '',
- name: 'Home',
- component: () =>
- Oo(
- () => import('./index-57b61e93.js'),
- [
- './index-57b61e93.js',
- './index-50a86bda.js',
- './index-6bdaf167.js',
- './headerD-14ad9998.js',
- './teacherIcon-b8e3946d.js',
- './index-9f1df0ca.css'
- ],
- import.meta.url
- )
- },
- {
- name: 'prepare-lessons',
- path: '/prepare-lessons',
- component: () =>
- Oo(
- () => import('./index-5a20e5e0.js'),
- [
- './index-5a20e5e0.js',
- './index-0080adf8.js',
- './index-27437a09.js',
- './index-365803d4.css',
- './index-cfe5893c.css',
- './searchArray-faf30440.js',
- './index-50a86bda.js',
- './index-dec9deed.css'
- ],
- import.meta.url
- ),
- meta: { title: '备课', singleLayout: 'blank' }
- },
- {
- path: '/studentList',
- name: 'studentList',
- component: () =>
- Oo(
- () => import('./index-c49d3bfa.js'),
- [
- './index-c49d3bfa.js',
- './index-d5891a93.js',
- './index-ba8fbd96.css',
- './index-6bdaf167.js',
- './index-11c15e80.css'
- ],
- import.meta.url
- ),
- meta: { title: '学生列表', singleLayout: 'blank' }
- },
- {
- path: '/classList',
- name: 'classList',
- component: () =>
- Oo(
- () => import('./index-fac2d31b.js'),
- [
- './index-fac2d31b.js',
- './index-d5891a93.js',
- './index-ba8fbd96.css',
- './index-6bdaf167.js',
- './index-2a301af6.css'
- ],
- import.meta.url
- ),
- meta: { title: '班级列表', singleLayout: 'blank' }
- },
- {
- path: '/xiaoku-ai',
- name: 'xiaoku-ai',
- component: () =>
- Oo(
- () => import('./index-859b522b.js'),
- [
- './index-859b522b.js',
- './index-ed61fc52.js',
- './index-e2faebf6.css',
- './index-001415db.css'
- ],
- import.meta.url
- ),
- meta: { title: '小酷AI' }
- },
- {
- path: '/xiaoku-music',
- name: 'xiaoku-music',
- component: () =>
- Oo(
- () => import('./index-42f8d71a.js'),
- [
- './index-42f8d71a.js',
- './index-ed61fc52.js',
- './index-e2faebf6.css',
- './data-8bf93671.js',
- './index-27437a09.js',
- './index-365803d4.css',
- './Slider-8a1e1297.js',
- './index-16c80eef.css'
- ],
- import.meta.url
- ),
- meta: { title: '曲谱库' }
- },
- {
- path: '/setting',
- name: 'base-setting',
- component: () =>
- Oo(
- () => import('./index-6dffb769.js'),
- [
- './index-6dffb769.js',
- './headerD-14ad9998.js',
- './teacherIcon-b8e3946d.js',
- './index-1baabc1e.css'
- ],
- import.meta.url
- ),
- meta: { title: '设置' }
- },
- {
- path: '/natural-resources',
- name: 'natural-resources',
- component: () =>
- Oo(
- () => import('./index-52e7e49f.js'),
- [
- './index-52e7e49f.js',
- './index-0080adf8.js',
- './index-27437a09.js',
- './index-365803d4.css',
- './index-cfe5893c.css',
- './index-6bdaf167.js',
- './index-ed61fc52.js',
- './index-e2faebf6.css',
- './searchArray-faf30440.js',
- './tick-0dc7bcdc.js',
- './tick-eab18532.css',
- './Slider-8a1e1297.js',
- './index-112745ea.css'
- ],
- import.meta.url
- ),
- meta: { title: '资源' }
- }
- ]
- },
- {
- name: 'attend-class',
- path: '/attend-class',
- component: () =>
- Oo(
- () => import('./index-b8a0eda5.js'),
- [
- './index-b8a0eda5.js',
- './tick-0dc7bcdc.js',
- './tick-eab18532.css',
- './index-0080adf8.js',
- './index-27437a09.js',
- './index-365803d4.css',
- './index-cfe5893c.css',
- './Slider-8a1e1297.js',
- './index-ed61fc52.js',
- './index-e2faebf6.css',
- './data-8bf93671.js',
- './index-5a5ffe57.css'
- ],
- import.meta.url
- ),
- meta: { title: '开始上课', singleLayout: 'blank' }
- },
- {
- name: '404',
- path: '/404',
- component: () =>
- Oo(() => import('./index-58e22c03.js'), [], import.meta.url),
- meta: { title: '未找到', singleLayout: 'blank' }
- },
- {
- name: 'not-found',
- path: '/:path(.*)*',
- component: () =>
- Oo(() => import('./index-58e22c03.js'), [], import.meta.url),
- meta: { title: '未找到', singleLayout: 'blank' }
- }
- ];
- var AT = { exports: {} };
- function _re(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 fm = { exports: {} };
- const Rre = {},
- Pre = Object.freeze(
- Object.defineProperty(
- { __proto__: null, default: Rre },
- Symbol.toStringTag,
- { value: 'Module' }
- )
- ),
- ET = zY(Pre);
- var F2;
- function ea() {
- return (
- F2 ||
- ((F2 = 1),
- (function (e, t) {
- (function (n, r) {
- e.exports = r();
- })(Nn, function () {
- var n =
- n ||
- (function (r, o) {
- var i;
- if (
- (typeof window < 'u' && window.crypto && (i = window.crypto),
- typeof self < 'u' && self.crypto && (i = self.crypto),
- typeof globalThis < 'u' &&
- globalThis.crypto &&
- (i = globalThis.crypto),
- !i &&
- typeof window < 'u' &&
- window.msCrypto &&
- (i = window.msCrypto),
- !i && typeof Nn < 'u' && Nn.crypto && (i = Nn.crypto),
- !i && typeof _re == 'function')
- )
- try {
- i = ET;
- } catch (C) {}
- var a = function () {
- if (i) {
- if (typeof i.getRandomValues == 'function')
- try {
- return i.getRandomValues(new Uint32Array(1))[0];
- } catch (C) {}
- if (typeof i.randomBytes == 'function')
- try {
- return i.randomBytes(4).readInt32LE();
- } catch (C) {}
- }
- throw new Error(
- 'Native crypto module could not be used to get secure random number.'
- );
- },
- s =
- Object.create ||
- (function () {
- function C() {}
- return function (R) {
- var S;
- return (
- (C.prototype = R),
- (S = new C()),
- (C.prototype = null),
- S
- );
- };
- })(),
- c = {},
- d = (c.lib = {}),
- f = (d.Base = (function () {
- return {
- extend: function (C) {
- var R = s(this);
- return (
- C && R.mixIn(C),
- (!R.hasOwnProperty('init') || this.init === R.init) &&
- (R.init = function () {
- R.$super.init.apply(this, arguments);
- }),
- (R.init.prototype = R),
- (R.$super = this),
- R
- );
- },
- create: function () {
- var C = this.extend();
- return C.init.apply(C, arguments), C;
- },
- init: function () {},
- mixIn: function (C) {
- for (var R in C) C.hasOwnProperty(R) && (this[R] = C[R]);
- C.hasOwnProperty('toString') &&
- (this.toString = C.toString);
- },
- clone: function () {
- return this.init.prototype.extend(this);
- }
- };
- })()),
- v = (d.WordArray = f.extend({
- init: function (C, R) {
- (C = this.words = C || []),
- R != o
- ? (this.sigBytes = R)
- : (this.sigBytes = C.length * 4);
- },
- toString: function (C) {
- return (C || m).stringify(this);
- },
- concat: function (C) {
- var R = this.words,
- S = C.words,
- _ = this.sigBytes,
- P = C.sigBytes;
- if ((this.clamp(), _ % 4))
- for (var T = 0; T < P; T++) {
- var A = (S[T >>> 2] >>> (24 - (T % 4) * 8)) & 255;
- R[(_ + T) >>> 2] |= A << (24 - ((_ + T) % 4) * 8);
- }
- else
- for (var z = 0; z < P; z += 4)
- R[(_ + z) >>> 2] = S[z >>> 2];
- return (this.sigBytes += P), this;
- },
- clamp: function () {
- var C = this.words,
- R = this.sigBytes;
- (C[R >>> 2] &= 4294967295 << (32 - (R % 4) * 8)),
- (C.length = r.ceil(R / 4));
- },
- clone: function () {
- var C = f.clone.call(this);
- return (C.words = this.words.slice(0)), C;
- },
- random: function (C) {
- for (var R = [], S = 0; S < C; S += 4) R.push(a());
- return new v.init(R, C);
- }
- })),
- p = (c.enc = {}),
- m = (p.Hex = {
- stringify: function (C) {
- for (
- var R = C.words, S = C.sigBytes, _ = [], P = 0;
- P < S;
- P++
- ) {
- var T = (R[P >>> 2] >>> (24 - (P % 4) * 8)) & 255;
- _.push((T >>> 4).toString(16)),
- _.push((T & 15).toString(16));
- }
- return _.join('');
- },
- parse: function (C) {
- for (var R = C.length, S = [], _ = 0; _ < R; _ += 2)
- S[_ >>> 3] |=
- parseInt(C.substr(_, 2), 16) << (24 - (_ % 8) * 4);
- return new v.init(S, R / 2);
- }
- }),
- g = (p.Latin1 = {
- stringify: function (C) {
- for (
- var R = C.words, S = C.sigBytes, _ = [], P = 0;
- P < S;
- P++
- ) {
- var T = (R[P >>> 2] >>> (24 - (P % 4) * 8)) & 255;
- _.push(String.fromCharCode(T));
- }
- return _.join('');
- },
- parse: function (C) {
- for (var R = C.length, S = [], _ = 0; _ < R; _++)
- S[_ >>> 2] |=
- (C.charCodeAt(_) & 255) << (24 - (_ % 4) * 8);
- return new v.init(S, R);
- }
- }),
- w = (p.Utf8 = {
- stringify: function (C) {
- try {
- return decodeURIComponent(escape(g.stringify(C)));
- } catch (R) {
- throw new Error('Malformed UTF-8 data');
- }
- },
- parse: function (C) {
- return g.parse(unescape(encodeURIComponent(C)));
- }
- }),
- x = (d.BufferedBlockAlgorithm = f.extend({
- reset: function () {
- (this._data = new v.init()), (this._nDataBytes = 0);
- },
- _append: function (C) {
- typeof C == 'string' && (C = w.parse(C)),
- this._data.concat(C),
- (this._nDataBytes += C.sigBytes);
- },
- _process: function (C) {
- var R,
- S = this._data,
- _ = S.words,
- P = S.sigBytes,
- T = this.blockSize,
- A = T * 4,
- z = P / A;
- C
- ? (z = r.ceil(z))
- : (z = r.max((z | 0) - this._minBufferSize, 0));
- var k = z * T,
- M = r.min(k * 4, P);
- if (k) {
- for (var E = 0; E < k; E += T) this._doProcessBlock(_, E);
- (R = _.splice(0, k)), (S.sigBytes -= M);
- }
- return new v.init(R, M);
- },
- clone: function () {
- var C = f.clone.call(this);
- return (C._data = this._data.clone()), C;
- },
- _minBufferSize: 0
- }));
- d.Hasher = x.extend({
- cfg: f.extend(),
- init: function (C) {
- (this.cfg = this.cfg.extend(C)), this.reset();
- },
- reset: function () {
- x.reset.call(this), this._doReset();
- },
- update: function (C) {
- return this._append(C), this._process(), this;
- },
- finalize: function (C) {
- C && this._append(C);
- var R = this._doFinalize();
- return R;
- },
- blockSize: 16,
- _createHelper: function (C) {
- return function (R, S) {
- return new C.init(S).finalize(R);
- };
- },
- _createHmacHelper: function (C) {
- return function (R, S) {
- return new y.HMAC.init(C, S).finalize(R);
- };
- }
- });
- var y = (c.algo = {});
- return c;
- })(Math);
- return n;
- });
- })(fm)),
- fm.exports
- );
- }
- var hm = { exports: {} },
- B2;
- function kre() {
- return (
- B2 ||
- ((B2 = 1),
- (function (e, t) {
- (function (n, r) {
- e.exports = r(ea());
- })(Nn, function (n) {
- return (
- (function () {
- var r = n,
- o = r.lib,
- i = o.WordArray,
- a = r.enc;
- a.Base64 = {
- stringify: function (c) {
- var d = c.words,
- f = c.sigBytes,
- v = this._map;
- c.clamp();
- for (var p = [], m = 0; m < f; m += 3)
- for (
- var g = (d[m >>> 2] >>> (24 - (m % 4) * 8)) & 255,
- w =
- (d[(m + 1) >>> 2] >>> (24 - ((m + 1) % 4) * 8)) & 255,
- x =
- (d[(m + 2) >>> 2] >>> (24 - ((m + 2) % 4) * 8)) & 255,
- y = (g << 16) | (w << 8) | x,
- C = 0;
- C < 4 && m + C * 0.75 < f;
- C++
- )
- p.push(v.charAt((y >>> (6 * (3 - C))) & 63));
- var R = v.charAt(64);
- if (R) for (; p.length % 4; ) p.push(R);
- return p.join('');
- },
- parse: function (c) {
- var d = c.length,
- f = this._map,
- v = this._reverseMap;
- if (!v) {
- v = this._reverseMap = [];
- for (var p = 0; p < f.length; p++) v[f.charCodeAt(p)] = p;
- }
- var m = f.charAt(64);
- if (m) {
- var g = c.indexOf(m);
- g !== -1 && (d = g);
- }
- return s(c, d, v);
- },
- _map: 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='
- };
- function s(c, d, f) {
- for (var v = [], p = 0, m = 0; m < d; m++)
- if (m % 4) {
- var g = f[c.charCodeAt(m - 1)] << ((m % 4) * 2),
- w = f[c.charCodeAt(m)] >>> (6 - (m % 4) * 2),
- x = g | w;
- (v[p >>> 2] |= x << (24 - (p % 4) * 8)), p++;
- }
- return i.create(v, p);
- }
- })(),
- n.enc.Base64
- );
- });
- })(hm)),
- hm.exports
- );
- }
- var vm = { exports: {} },
- L2;
- function Tre() {
- return (
- L2 ||
- ((L2 = 1),
- (function (e, t) {
- (function (n, r) {
- e.exports = r(ea());
- })(Nn, function (n) {
- return (
- (function (r) {
- var o = n,
- i = o.lib,
- a = i.WordArray,
- s = i.Hasher,
- c = o.algo,
- d = [];
- (function () {
- for (var w = 0; w < 64; w++)
- d[w] = (r.abs(r.sin(w + 1)) * 4294967296) | 0;
- })();
- var f = (c.MD5 = s.extend({
- _doReset: function () {
- this._hash = new a.init([
- 1732584193, 4023233417, 2562383102, 271733878
- ]);
- },
- _doProcessBlock: function (w, x) {
- for (var y = 0; y < 16; y++) {
- var C = x + y,
- R = w[C];
- w[C] =
- (((R << 8) | (R >>> 24)) & 16711935) |
- (((R << 24) | (R >>> 8)) & 4278255360);
- }
- var S = this._hash.words,
- _ = w[x + 0],
- P = w[x + 1],
- T = w[x + 2],
- A = w[x + 3],
- z = w[x + 4],
- k = w[x + 5],
- M = w[x + 6],
- E = w[x + 7],
- D = w[x + 8],
- L = w[x + 9],
- j = w[x + 10],
- B = w[x + 11],
- q = w[x + 12],
- G = w[x + 13],
- ne = w[x + 14],
- X = w[x + 15],
- J = S[0],
- re = S[1],
- ce = S[2],
- pe = S[3];
- (J = v(J, re, ce, pe, _, 7, d[0])),
- (pe = v(pe, J, re, ce, P, 12, d[1])),
- (ce = v(ce, pe, J, re, T, 17, d[2])),
- (re = v(re, ce, pe, J, A, 22, d[3])),
- (J = v(J, re, ce, pe, z, 7, d[4])),
- (pe = v(pe, J, re, ce, k, 12, d[5])),
- (ce = v(ce, pe, J, re, M, 17, d[6])),
- (re = v(re, ce, pe, J, E, 22, d[7])),
- (J = v(J, re, ce, pe, D, 7, d[8])),
- (pe = v(pe, J, re, ce, L, 12, d[9])),
- (ce = v(ce, pe, J, re, j, 17, d[10])),
- (re = v(re, ce, pe, J, B, 22, d[11])),
- (J = v(J, re, ce, pe, q, 7, d[12])),
- (pe = v(pe, J, re, ce, G, 12, d[13])),
- (ce = v(ce, pe, J, re, ne, 17, d[14])),
- (re = v(re, ce, pe, J, X, 22, d[15])),
- (J = p(J, re, ce, pe, P, 5, d[16])),
- (pe = p(pe, J, re, ce, M, 9, d[17])),
- (ce = p(ce, pe, J, re, B, 14, d[18])),
- (re = p(re, ce, pe, J, _, 20, d[19])),
- (J = p(J, re, ce, pe, k, 5, d[20])),
- (pe = p(pe, J, re, ce, j, 9, d[21])),
- (ce = p(ce, pe, J, re, X, 14, d[22])),
- (re = p(re, ce, pe, J, z, 20, d[23])),
- (J = p(J, re, ce, pe, L, 5, d[24])),
- (pe = p(pe, J, re, ce, ne, 9, d[25])),
- (ce = p(ce, pe, J, re, A, 14, d[26])),
- (re = p(re, ce, pe, J, D, 20, d[27])),
- (J = p(J, re, ce, pe, G, 5, d[28])),
- (pe = p(pe, J, re, ce, T, 9, d[29])),
- (ce = p(ce, pe, J, re, E, 14, d[30])),
- (re = p(re, ce, pe, J, q, 20, d[31])),
- (J = m(J, re, ce, pe, k, 4, d[32])),
- (pe = m(pe, J, re, ce, D, 11, d[33])),
- (ce = m(ce, pe, J, re, B, 16, d[34])),
- (re = m(re, ce, pe, J, ne, 23, d[35])),
- (J = m(J, re, ce, pe, P, 4, d[36])),
- (pe = m(pe, J, re, ce, z, 11, d[37])),
- (ce = m(ce, pe, J, re, E, 16, d[38])),
- (re = m(re, ce, pe, J, j, 23, d[39])),
- (J = m(J, re, ce, pe, G, 4, d[40])),
- (pe = m(pe, J, re, ce, _, 11, d[41])),
- (ce = m(ce, pe, J, re, A, 16, d[42])),
- (re = m(re, ce, pe, J, M, 23, d[43])),
- (J = m(J, re, ce, pe, L, 4, d[44])),
- (pe = m(pe, J, re, ce, q, 11, d[45])),
- (ce = m(ce, pe, J, re, X, 16, d[46])),
- (re = m(re, ce, pe, J, T, 23, d[47])),
- (J = g(J, re, ce, pe, _, 6, d[48])),
- (pe = g(pe, J, re, ce, E, 10, d[49])),
- (ce = g(ce, pe, J, re, ne, 15, d[50])),
- (re = g(re, ce, pe, J, k, 21, d[51])),
- (J = g(J, re, ce, pe, q, 6, d[52])),
- (pe = g(pe, J, re, ce, A, 10, d[53])),
- (ce = g(ce, pe, J, re, j, 15, d[54])),
- (re = g(re, ce, pe, J, P, 21, d[55])),
- (J = g(J, re, ce, pe, D, 6, d[56])),
- (pe = g(pe, J, re, ce, X, 10, d[57])),
- (ce = g(ce, pe, J, re, M, 15, d[58])),
- (re = g(re, ce, pe, J, G, 21, d[59])),
- (J = g(J, re, ce, pe, z, 6, d[60])),
- (pe = g(pe, J, re, ce, B, 10, d[61])),
- (ce = g(ce, pe, J, re, T, 15, d[62])),
- (re = g(re, ce, pe, J, L, 21, d[63])),
- (S[0] = (S[0] + J) | 0),
- (S[1] = (S[1] + re) | 0),
- (S[2] = (S[2] + ce) | 0),
- (S[3] = (S[3] + pe) | 0);
- },
- _doFinalize: function () {
- var w = this._data,
- x = w.words,
- y = this._nDataBytes * 8,
- C = w.sigBytes * 8;
- x[C >>> 5] |= 128 << (24 - (C % 32));
- var R = r.floor(y / 4294967296),
- S = y;
- (x[(((C + 64) >>> 9) << 4) + 15] =
- (((R << 8) | (R >>> 24)) & 16711935) |
- (((R << 24) | (R >>> 8)) & 4278255360)),
- (x[(((C + 64) >>> 9) << 4) + 14] =
- (((S << 8) | (S >>> 24)) & 16711935) |
- (((S << 24) | (S >>> 8)) & 4278255360)),
- (w.sigBytes = (x.length + 1) * 4),
- this._process();
- for (var _ = this._hash, P = _.words, T = 0; T < 4; T++) {
- var A = P[T];
- P[T] =
- (((A << 8) | (A >>> 24)) & 16711935) |
- (((A << 24) | (A >>> 8)) & 4278255360);
- }
- return _;
- },
- clone: function () {
- var w = s.clone.call(this);
- return (w._hash = this._hash.clone()), w;
- }
- }));
- function v(w, x, y, C, R, S, _) {
- var P = w + ((x & y) | (~x & C)) + R + _;
- return ((P << S) | (P >>> (32 - S))) + x;
- }
- function p(w, x, y, C, R, S, _) {
- var P = w + ((x & C) | (y & ~C)) + R + _;
- return ((P << S) | (P >>> (32 - S))) + x;
- }
- function m(w, x, y, C, R, S, _) {
- var P = w + (x ^ y ^ C) + R + _;
- return ((P << S) | (P >>> (32 - S))) + x;
- }
- function g(w, x, y, C, R, S, _) {
- var P = w + (y ^ (x | ~C)) + R + _;
- return ((P << S) | (P >>> (32 - S))) + x;
- }
- (o.MD5 = s._createHelper(f)),
- (o.HmacMD5 = s._createHmacHelper(f));
- })(Math),
- n.MD5
- );
- });
- })(vm)),
- vm.exports
- );
- }
- var pm = { exports: {} },
- gm = { exports: {} },
- N2;
- function $re() {
- return (
- N2 ||
- ((N2 = 1),
- (function (e, t) {
- (function (n, r) {
- e.exports = r(ea());
- })(Nn, function (n) {
- return (
- (function () {
- var r = n,
- o = r.lib,
- i = o.WordArray,
- a = o.Hasher,
- s = r.algo,
- c = [],
- d = (s.SHA1 = a.extend({
- _doReset: function () {
- this._hash = new i.init([
- 1732584193, 4023233417, 2562383102, 271733878, 3285377520
- ]);
- },
- _doProcessBlock: function (f, v) {
- for (
- var p = this._hash.words,
- m = p[0],
- g = p[1],
- w = p[2],
- x = p[3],
- y = p[4],
- C = 0;
- C < 80;
- C++
- ) {
- if (C < 16) c[C] = f[v + C] | 0;
- else {
- var R = c[C - 3] ^ c[C - 8] ^ c[C - 14] ^ c[C - 16];
- c[C] = (R << 1) | (R >>> 31);
- }
- var S = ((m << 5) | (m >>> 27)) + y + c[C];
- C < 20
- ? (S += ((g & w) | (~g & x)) + 1518500249)
- : C < 40
- ? (S += (g ^ w ^ x) + 1859775393)
- : C < 60
- ? (S += ((g & w) | (g & x) | (w & x)) - 1894007588)
- : (S += (g ^ w ^ x) - 899497514),
- (y = x),
- (x = w),
- (w = (g << 30) | (g >>> 2)),
- (g = m),
- (m = S);
- }
- (p[0] = (p[0] + m) | 0),
- (p[1] = (p[1] + g) | 0),
- (p[2] = (p[2] + w) | 0),
- (p[3] = (p[3] + x) | 0),
- (p[4] = (p[4] + y) | 0);
- },
- _doFinalize: function () {
- var f = this._data,
- v = f.words,
- p = this._nDataBytes * 8,
- m = f.sigBytes * 8;
- return (
- (v[m >>> 5] |= 128 << (24 - (m % 32))),
- (v[(((m + 64) >>> 9) << 4) + 14] = Math.floor(
- p / 4294967296
- )),
- (v[(((m + 64) >>> 9) << 4) + 15] = p),
- (f.sigBytes = v.length * 4),
- this._process(),
- this._hash
- );
- },
- clone: function () {
- var f = a.clone.call(this);
- return (f._hash = this._hash.clone()), f;
- }
- }));
- (r.SHA1 = a._createHelper(d)),
- (r.HmacSHA1 = a._createHmacHelper(d));
- })(),
- n.SHA1
- );
- });
- })(gm)),
- gm.exports
- );
- }
- var mm = { exports: {} },
- H2;
- function Ore() {
- return (
- H2 ||
- ((H2 = 1),
- (function (e, t) {
- (function (n, r) {
- e.exports = r(ea());
- })(Nn, function (n) {
- (function () {
- var r = n,
- o = r.lib,
- i = o.Base,
- a = r.enc,
- s = a.Utf8,
- c = r.algo;
- c.HMAC = i.extend({
- init: function (d, f) {
- (d = this._hasher = new d.init()),
- typeof f == 'string' && (f = s.parse(f));
- var v = d.blockSize,
- p = v * 4;
- f.sigBytes > p && (f = d.finalize(f)), f.clamp();
- for (
- var m = (this._oKey = f.clone()),
- g = (this._iKey = f.clone()),
- w = m.words,
- x = g.words,
- y = 0;
- y < v;
- y++
- )
- (w[y] ^= 1549556828), (x[y] ^= 909522486);
- (m.sigBytes = g.sigBytes = p), this.reset();
- },
- reset: function () {
- var d = this._hasher;
- d.reset(), d.update(this._iKey);
- },
- update: function (d) {
- return this._hasher.update(d), this;
- },
- finalize: function (d) {
- var f = this._hasher,
- v = f.finalize(d);
- f.reset();
- var p = f.finalize(this._oKey.clone().concat(v));
- return p;
- }
- });
- })();
- });
- })(mm)),
- mm.exports
- );
- }
- var j2;
- function MT() {
- return (
- j2 ||
- ((j2 = 1),
- (function (e, t) {
- (function (n, r, o) {
- e.exports = r(ea(), $re(), Ore());
- })(Nn, function (n) {
- return (
- (function () {
- var r = n,
- o = r.lib,
- i = o.Base,
- a = o.WordArray,
- s = r.algo,
- c = s.MD5,
- d = (s.EvpKDF = i.extend({
- cfg: i.extend({
- keySize: 128 / 32,
- hasher: c,
- iterations: 1
- }),
- init: function (f) {
- this.cfg = this.cfg.extend(f);
- },
- compute: function (f, v) {
- for (
- var p,
- m = this.cfg,
- g = m.hasher.create(),
- w = a.create(),
- x = w.words,
- y = m.keySize,
- C = m.iterations;
- x.length < y;
- ) {
- p && g.update(p),
- (p = g.update(f).finalize(v)),
- g.reset();
- for (var R = 1; R < C; R++)
- (p = g.finalize(p)), g.reset();
- w.concat(p);
- }
- return (w.sigBytes = y * 4), w;
- }
- }));
- r.EvpKDF = function (f, v, p) {
- return d.create(p).compute(f, v);
- };
- })(),
- n.EvpKDF
- );
- });
- })(pm)),
- pm.exports
- );
- }
- var bm = { exports: {} },
- U2;
- function n1() {
- return (
- U2 ||
- ((U2 = 1),
- (function (e, t) {
- (function (n, r, o) {
- e.exports = r(ea(), MT());
- })(Nn, function (n) {
- n.lib.Cipher ||
- (function (r) {
- var o = n,
- i = o.lib,
- a = i.Base,
- s = i.WordArray,
- c = i.BufferedBlockAlgorithm,
- d = o.enc;
- d.Utf8;
- var f = d.Base64,
- v = o.algo,
- p = v.EvpKDF,
- m = (i.Cipher = c.extend({
- cfg: a.extend(),
- createEncryptor: function (k, M) {
- return this.create(this._ENC_XFORM_MODE, k, M);
- },
- createDecryptor: function (k, M) {
- return this.create(this._DEC_XFORM_MODE, k, M);
- },
- init: function (k, M, E) {
- (this.cfg = this.cfg.extend(E)),
- (this._xformMode = k),
- (this._key = M),
- this.reset();
- },
- reset: function () {
- c.reset.call(this), this._doReset();
- },
- process: function (k) {
- return this._append(k), this._process();
- },
- finalize: function (k) {
- k && this._append(k);
- var M = this._doFinalize();
- return M;
- },
- keySize: 128 / 32,
- ivSize: 128 / 32,
- _ENC_XFORM_MODE: 1,
- _DEC_XFORM_MODE: 2,
- _createHelper: (function () {
- function k(M) {
- return typeof M == 'string' ? z : P;
- }
- return function (M) {
- return {
- encrypt: function (E, D, L) {
- return k(D).encrypt(M, E, D, L);
- },
- decrypt: function (E, D, L) {
- return k(D).decrypt(M, E, D, L);
- }
- };
- };
- })()
- }));
- i.StreamCipher = m.extend({
- _doFinalize: function () {
- var k = this._process(!0);
- return k;
- },
- blockSize: 1
- });
- var g = (o.mode = {}),
- w = (i.BlockCipherMode = a.extend({
- createEncryptor: function (k, M) {
- return this.Encryptor.create(k, M);
- },
- createDecryptor: function (k, M) {
- return this.Decryptor.create(k, M);
- },
- init: function (k, M) {
- (this._cipher = k), (this._iv = M);
- }
- })),
- x = (g.CBC = (function () {
- var k = w.extend();
- (k.Encryptor = k.extend({
- processBlock: function (E, D) {
- var L = this._cipher,
- j = L.blockSize;
- M.call(this, E, D, j),
- L.encryptBlock(E, D),
- (this._prevBlock = E.slice(D, D + j));
- }
- })),
- (k.Decryptor = k.extend({
- processBlock: function (E, D) {
- var L = this._cipher,
- j = L.blockSize,
- B = E.slice(D, D + j);
- L.decryptBlock(E, D),
- M.call(this, E, D, j),
- (this._prevBlock = B);
- }
- }));
- function M(E, D, L) {
- var j,
- B = this._iv;
- B ? ((j = B), (this._iv = r)) : (j = this._prevBlock);
- for (var q = 0; q < L; q++) E[D + q] ^= j[q];
- }
- return k;
- })()),
- y = (o.pad = {}),
- C = (y.Pkcs7 = {
- pad: function (k, M) {
- for (
- var E = M * 4,
- D = E - (k.sigBytes % E),
- L = (D << 24) | (D << 16) | (D << 8) | D,
- j = [],
- B = 0;
- B < D;
- B += 4
- )
- j.push(L);
- var q = s.create(j, D);
- k.concat(q);
- },
- unpad: function (k) {
- var M = k.words[(k.sigBytes - 1) >>> 2] & 255;
- k.sigBytes -= M;
- }
- });
- i.BlockCipher = m.extend({
- cfg: m.cfg.extend({ mode: x, padding: C }),
- reset: function () {
- var k;
- m.reset.call(this);
- var M = this.cfg,
- E = M.iv,
- D = M.mode;
- this._xformMode == this._ENC_XFORM_MODE
- ? (k = D.createEncryptor)
- : ((k = D.createDecryptor), (this._minBufferSize = 1)),
- this._mode && this._mode.__creator == k
- ? this._mode.init(this, E && E.words)
- : ((this._mode = k.call(D, this, E && E.words)),
- (this._mode.__creator = k));
- },
- _doProcessBlock: function (k, M) {
- this._mode.processBlock(k, M);
- },
- _doFinalize: function () {
- var k,
- M = this.cfg.padding;
- return (
- this._xformMode == this._ENC_XFORM_MODE
- ? (M.pad(this._data, this.blockSize),
- (k = this._process(!0)))
- : ((k = this._process(!0)), M.unpad(k)),
- k
- );
- },
- blockSize: 128 / 32
- });
- var R = (i.CipherParams = a.extend({
- init: function (k) {
- this.mixIn(k);
- },
- toString: function (k) {
- return (k || this.formatter).stringify(this);
- }
- })),
- S = (o.format = {}),
- _ = (S.OpenSSL = {
- stringify: function (k) {
- var M,
- E = k.ciphertext,
- D = k.salt;
- return (
- D
- ? (M = s
- .create([1398893684, 1701076831])
- .concat(D)
- .concat(E))
- : (M = E),
- M.toString(f)
- );
- },
- parse: function (k) {
- var M,
- E = f.parse(k),
- D = E.words;
- return (
- D[0] == 1398893684 &&
- D[1] == 1701076831 &&
- ((M = s.create(D.slice(2, 4))),
- D.splice(0, 4),
- (E.sigBytes -= 16)),
- R.create({ ciphertext: E, salt: M })
- );
- }
- }),
- P = (i.SerializableCipher = a.extend({
- cfg: a.extend({ format: _ }),
- encrypt: function (k, M, E, D) {
- D = this.cfg.extend(D);
- var L = k.createEncryptor(E, D),
- j = L.finalize(M),
- B = L.cfg;
- return R.create({
- ciphertext: j,
- key: E,
- iv: B.iv,
- algorithm: k,
- mode: B.mode,
- padding: B.padding,
- blockSize: k.blockSize,
- formatter: D.format
- });
- },
- decrypt: function (k, M, E, D) {
- (D = this.cfg.extend(D)), (M = this._parse(M, D.format));
- var L = k.createDecryptor(E, D).finalize(M.ciphertext);
- return L;
- },
- _parse: function (k, M) {
- return typeof k == 'string' ? M.parse(k, this) : k;
- }
- })),
- T = (o.kdf = {}),
- A = (T.OpenSSL = {
- execute: function (k, M, E, D) {
- D || (D = s.random(64 / 8));
- var L = p.create({ keySize: M + E }).compute(k, D),
- j = s.create(L.words.slice(M), E * 4);
- return (
- (L.sigBytes = M * 4), R.create({ key: L, iv: j, salt: D })
- );
- }
- }),
- z = (i.PasswordBasedCipher = P.extend({
- cfg: P.cfg.extend({ kdf: A }),
- encrypt: function (k, M, E, D) {
- D = this.cfg.extend(D);
- var L = D.kdf.execute(E, k.keySize, k.ivSize);
- D.iv = L.iv;
- var j = P.encrypt.call(this, k, M, L.key, D);
- return j.mixIn(L), j;
- },
- decrypt: function (k, M, E, D) {
- (D = this.cfg.extend(D)), (M = this._parse(M, D.format));
- var L = D.kdf.execute(E, k.keySize, k.ivSize, M.salt);
- D.iv = L.iv;
- var j = P.decrypt.call(this, k, M, L.key, D);
- return j;
- }
- }));
- })();
- });
- })(bm)),
- bm.exports
- );
- }
- (function (e, t) {
- (function (n, r, o) {
- e.exports = r(ea(), kre(), Tre(), MT(), n1());
- })(Nn, function (n) {
- return (
- (function () {
- var r = n,
- o = r.lib,
- i = o.BlockCipher,
- a = r.algo,
- s = [],
- c = [],
- d = [],
- f = [],
- v = [],
- p = [],
- m = [],
- g = [],
- w = [],
- x = [];
- (function () {
- for (var R = [], S = 0; S < 256; S++)
- S < 128 ? (R[S] = S << 1) : (R[S] = (S << 1) ^ 283);
- for (var _ = 0, P = 0, S = 0; S < 256; S++) {
- var T = P ^ (P << 1) ^ (P << 2) ^ (P << 3) ^ (P << 4);
- (T = (T >>> 8) ^ (T & 255) ^ 99), (s[_] = T), (c[T] = _);
- var A = R[_],
- z = R[A],
- k = R[z],
- M = (R[T] * 257) ^ (T * 16843008);
- (d[_] = (M << 24) | (M >>> 8)),
- (f[_] = (M << 16) | (M >>> 16)),
- (v[_] = (M << 8) | (M >>> 24)),
- (p[_] = M);
- var M = (k * 16843009) ^ (z * 65537) ^ (A * 257) ^ (_ * 16843008);
- (m[T] = (M << 24) | (M >>> 8)),
- (g[T] = (M << 16) | (M >>> 16)),
- (w[T] = (M << 8) | (M >>> 24)),
- (x[T] = M),
- _ ? ((_ = A ^ R[R[R[k ^ A]]]), (P ^= R[R[P]])) : (_ = P = 1);
- }
- })();
- var y = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54],
- C = (a.AES = i.extend({
- _doReset: function () {
- var R;
- if (!(this._nRounds && this._keyPriorReset === this._key)) {
- for (
- var S = (this._keyPriorReset = this._key),
- _ = S.words,
- P = S.sigBytes / 4,
- T = (this._nRounds = P + 6),
- A = (T + 1) * 4,
- z = (this._keySchedule = []),
- k = 0;
- k < A;
- k++
- )
- k < P
- ? (z[k] = _[k])
- : ((R = z[k - 1]),
- k % P
- ? P > 6 &&
- k % P == 4 &&
- (R =
- (s[R >>> 24] << 24) |
- (s[(R >>> 16) & 255] << 16) |
- (s[(R >>> 8) & 255] << 8) |
- s[R & 255])
- : ((R = (R << 8) | (R >>> 24)),
- (R =
- (s[R >>> 24] << 24) |
- (s[(R >>> 16) & 255] << 16) |
- (s[(R >>> 8) & 255] << 8) |
- s[R & 255]),
- (R ^= y[(k / P) | 0] << 24)),
- (z[k] = z[k - P] ^ R));
- for (var M = (this._invKeySchedule = []), E = 0; E < A; E++) {
- var k = A - E;
- if (E % 4) var R = z[k];
- else var R = z[k - 4];
- E < 4 || k <= 4
- ? (M[E] = R)
- : (M[E] =
- m[s[R >>> 24]] ^
- g[s[(R >>> 16) & 255]] ^
- w[s[(R >>> 8) & 255]] ^
- x[s[R & 255]]);
- }
- }
- },
- encryptBlock: function (R, S) {
- this._doCryptBlock(R, S, this._keySchedule, d, f, v, p, s);
- },
- decryptBlock: function (R, S) {
- var _ = R[S + 1];
- (R[S + 1] = R[S + 3]),
- (R[S + 3] = _),
- this._doCryptBlock(R, S, this._invKeySchedule, m, g, w, x, c);
- var _ = R[S + 1];
- (R[S + 1] = R[S + 3]), (R[S + 3] = _);
- },
- _doCryptBlock: function (R, S, _, P, T, A, z, k) {
- for (
- var M = this._nRounds,
- E = R[S] ^ _[0],
- D = R[S + 1] ^ _[1],
- L = R[S + 2] ^ _[2],
- j = R[S + 3] ^ _[3],
- B = 4,
- q = 1;
- q < M;
- q++
- ) {
- var G =
- P[E >>> 24] ^
- T[(D >>> 16) & 255] ^
- A[(L >>> 8) & 255] ^
- z[j & 255] ^
- _[B++],
- ne =
- P[D >>> 24] ^
- T[(L >>> 16) & 255] ^
- A[(j >>> 8) & 255] ^
- z[E & 255] ^
- _[B++],
- X =
- P[L >>> 24] ^
- T[(j >>> 16) & 255] ^
- A[(E >>> 8) & 255] ^
- z[D & 255] ^
- _[B++],
- J =
- P[j >>> 24] ^
- T[(E >>> 16) & 255] ^
- A[(D >>> 8) & 255] ^
- z[L & 255] ^
- _[B++];
- (E = G), (D = ne), (L = X), (j = J);
- }
- var G =
- ((k[E >>> 24] << 24) |
- (k[(D >>> 16) & 255] << 16) |
- (k[(L >>> 8) & 255] << 8) |
- k[j & 255]) ^
- _[B++],
- ne =
- ((k[D >>> 24] << 24) |
- (k[(L >>> 16) & 255] << 16) |
- (k[(j >>> 8) & 255] << 8) |
- k[E & 255]) ^
- _[B++],
- X =
- ((k[L >>> 24] << 24) |
- (k[(j >>> 16) & 255] << 16) |
- (k[(E >>> 8) & 255] << 8) |
- k[D & 255]) ^
- _[B++],
- J =
- ((k[j >>> 24] << 24) |
- (k[(E >>> 16) & 255] << 16) |
- (k[(D >>> 8) & 255] << 8) |
- k[L & 255]) ^
- _[B++];
- (R[S] = G), (R[S + 1] = ne), (R[S + 2] = X), (R[S + 3] = J);
- },
- keySize: 256 / 32
- }));
- r.AES = i._createHelper(C);
- })(),
- n.AES
- );
- });
- })(AT);
- var W2 = AT.exports,
- IT = { exports: {} };
- (function (e, t) {
- (function (n, r) {
- e.exports = r(ea());
- })(Nn, function (n) {
- return n.enc.Utf8;
- });
- })(IT);
- var c0 = IT.exports;
- const zre = Oa(c0);
- var DT = { exports: {} };
- (function (e, t) {
- (function (n, r, o) {
- e.exports = r(ea(), n1());
- })(Nn, function (n) {
- return n.pad.Pkcs7;
- });
- })(DT);
- var Are = DT.exports;
- const Ere = Oa(Are);
- var FT = { exports: {} };
- (function (e, t) {
- (function (n, r, o) {
- e.exports = r(ea(), n1());
- })(Nn, function (n) {
- return (
- (n.mode.ECB = (function () {
- var r = n.lib.BlockCipherMode.extend();
- return (
- (r.Encryptor = r.extend({
- processBlock: function (o, i) {
- this._cipher.encryptBlock(o, i);
- }
- })),
- (r.Decryptor = r.extend({
- processBlock: function (o, i) {
- this._cipher.decryptBlock(o, i);
- }
- })),
- r
- );
- })()),
- n.mode.ECB
- );
- });
- })(FT);
- var Mre = FT.exports;
- const Ire = Oa(Mre),
- Dre = '1111111111000000',
- Fre = '0000001111111111';
- class Bre {
- constructor(t = Dre, n = Fre) {
- kd(this, 'key');
- kd(this, 'iv');
- (this.key = c0.parse(t)), (this.iv = c0.parse(n));
- }
- get getOptions() {
- return { mode: Ire, padding: Ere, iv: this.iv };
- }
- encryptByAES(t) {
- return W2.encrypt(t, this.key, this.getOptions).toString();
- }
- decryptByAES(t) {
- return W2.decrypt(t, this.key, this.getOptions).toString(zre);
- }
- }
- var Lre = !1;
- /*!
- * pinia v2.1.4
- * (c) 2023 Eduardo San Martin Morote
- * @license MIT
- */ let BT;
- const np = e => (BT = e),
- LT = Symbol();
- function d0(e) {
- return (
- e &&
- typeof e == 'object' &&
- Object.prototype.toString.call(e) === '[object Object]' &&
- typeof e.toJSON != 'function'
- );
- }
- var iu;
- (function (e) {
- (e.direct = 'direct'),
- (e.patchObject = 'patch object'),
- (e.patchFunction = 'patch function');
- })(iu || (iu = {}));
- function Nre() {
- const e = k_(!0),
- t = e.run(() => Z({}));
- let n = [],
- r = [];
- const o = Tc({
- install(i) {
- np(o),
- (o._a = i),
- i.provide(LT, o),
- (i.config.globalProperties.$pinia = o),
- r.forEach(a => n.push(a)),
- (r = []);
- },
- use(i) {
- return !this._a && !Lre ? r.push(i) : n.push(i), this;
- },
- _p: n,
- _a: null,
- _e: e,
- _s: new Map(),
- state: t
- });
- return o;
- }
- const NT = () => {};
- function V2(e, t, n, r = NT) {
- e.push(t);
- const o = () => {
- const i = e.indexOf(t);
- i > -1 && (e.splice(i, 1), r());
- };
- return !n && T_() && u6(o), o;
- }
- function vc(e, ...t) {
- e.slice().forEach(n => {
- n(...t);
- });
- }
- const Hre = e => e();
- function u0(e, t) {
- e instanceof Map && t instanceof Map && t.forEach((n, r) => e.set(r, n)),
- e instanceof Set && t instanceof Set && t.forEach(e.add, e);
- for (const n in t) {
- if (!t.hasOwnProperty(n)) continue;
- const r = t[n],
- o = e[n];
- d0(o) && d0(r) && e.hasOwnProperty(n) && !lr(r) && !al(r)
- ? (e[n] = u0(o, r))
- : (e[n] = r);
- }
- return e;
- }
- const jre = Symbol();
- function Ure(e) {
- return !d0(e) || !e.hasOwnProperty(jre);
- }
- const { assign: Ja } = Object;
- function Wre(e) {
- return !!(lr(e) && e.effect);
- }
- function Vre(e, t, n, r) {
- const { state: o, actions: i, getters: a } = t,
- s = n.state.value[e];
- let c;
- function d() {
- s || (n.state.value[e] = o ? o() : {});
- const f = U6(n.state.value[e]);
- return Ja(
- f,
- i,
- Object.keys(a || {}).reduce(
- (v, p) => (
- (v[p] = Tc(
- I(() => {
- np(n);
- const m = n._s.get(e);
- return a[p].call(m, m);
- })
- )),
- v
- ),
- {}
- )
- );
- }
- return (c = HT(e, d, t, n, r, !0)), c;
- }
- function HT(e, t, n = {}, r, o, i) {
- let a;
- const s = Ja({ actions: {} }, n),
- c = { deep: !0 };
- let d,
- f,
- v = [],
- p = [],
- m;
- const g = r.state.value[e];
- !i && !g && (r.state.value[e] = {}), Z({});
- let w;
- function x(A) {
- let z;
- (d = f = !1),
- typeof A == 'function'
- ? (A(r.state.value[e]),
- (z = { type: iu.patchFunction, storeId: e, events: m }))
- : (u0(r.state.value[e], A),
- (z = { type: iu.patchObject, payload: A, storeId: e, events: m }));
- const k = (w = Symbol());
- mn().then(() => {
- w === k && (d = !0);
- }),
- (f = !0),
- vc(v, z, r.state.value[e]);
- }
- const y = i
- ? function () {
- const { state: z } = n,
- k = z ? z() : {};
- this.$patch(M => {
- Ja(M, k);
- });
- }
- : NT;
- function C() {
- a.stop(), (v = []), (p = []), r._s.delete(e);
- }
- function R(A, z) {
- return function () {
- np(r);
- const k = Array.from(arguments),
- M = [],
- E = [];
- function D(B) {
- M.push(B);
- }
- function L(B) {
- E.push(B);
- }
- vc(p, { args: k, name: A, store: _, after: D, onError: L });
- let j;
- try {
- j = z.apply(this && this.$id === e ? this : _, k);
- } catch (B) {
- throw (vc(E, B), B);
- }
- return j instanceof Promise
- ? j.then(B => (vc(M, B), B)).catch(B => (vc(E, B), Promise.reject(B)))
- : (vc(M, j), j);
- };
- }
- const S = {
- _p: r,
- $id: e,
- $onAction: V2.bind(null, p),
- $patch: x,
- $reset: y,
- $subscribe(A, z = {}) {
- const k = V2(v, A, z.detached, () => M()),
- M = a.run(() =>
- $t(
- () => r.state.value[e],
- E => {
- (z.flush === 'sync' ? f : d) &&
- A({ storeId: e, type: iu.direct, events: m }, E);
- },
- Ja({}, c, z)
- )
- );
- return k;
- },
- $dispose: C
- },
- _ = Xi(S);
- r._s.set(e, _);
- const P = (r._a && r._a.runWithContext) || Hre,
- T = r._e.run(() => ((a = k_()), P(() => a.run(t))));
- for (const A in T) {
- const z = T[A];
- if ((lr(z) && !Wre(z)) || al(z))
- i ||
- (g && Ure(z) && (lr(z) ? (z.value = g[A]) : u0(z, g[A])),
- (r.state.value[e][A] = z));
- else if (typeof z == 'function') {
- const k = R(A, z);
- (T[A] = k), (s.actions[A] = z);
- }
- }
- return (
- Ja(_, T),
- Ja(xn(_), T),
- Object.defineProperty(_, '$state', {
- get: () => r.state.value[e],
- set: A => {
- x(z => {
- Ja(z, A);
- });
- }
- }),
- r._p.forEach(A => {
- Ja(
- _,
- a.run(() => A({ store: _, app: r._a, pinia: r, options: s }))
- );
- }),
- g && i && n.hydrate && n.hydrate(_.$state, g),
- (d = !0),
- (f = !0),
- _
- );
- }
- function Kre(e, t, n) {
- let r, o;
- const i = typeof t == 'function';
- typeof e == 'string' ? ((r = e), (o = i ? n : t)) : ((o = e), (r = e.id));
- function a(s, c) {
- const d = PM();
- return (
- (s = s || (d ? Ze(LT, null) : null)),
- s && np(s),
- (s = BT),
- s._s.has(r) || (i ? HT(r, t, o, s) : Vre(r, o, s)),
- s._s.get(r)
- );
- }
- return (a.$id = r), a;
- }
- const qre = Nre();
- function Yre(e) {
- e.use(qre);
- }
- const Lh = 'ACCESS-TOKEN',
- Gre = 'IM-TOKEN',
- K2 = 'CURRENT-USER',
- q2 = 60 * 60 * 24 * 7,
- Xre = ({ prefixKey: e = '', storage: t = localStorage } = {}) => {
- const n = class {
- constructor() {
- kd(this, 'storage', t);
- kd(this, 'prefixKey', e);
- }
- getKey(r) {
- return `${this.prefixKey}${r}`.toUpperCase();
- }
- set(r, o, i = q2) {
- const a = JSON.stringify({
- value: o,
- expire: i !== null ? new Date().getTime() + i * 1e3 : null
- });
- this.storage.setItem(this.getKey(r), a);
- }
- get(r, o = null) {
- const i = this.storage.getItem(this.getKey(r));
- if (i)
- try {
- const a = JSON.parse(i),
- { value: s, expire: c } = a;
- if (c === null || c >= Date.now()) return s;
- this.remove(r);
- } catch (a) {
- return o;
- }
- return o;
- }
- remove(r) {
- this.storage.removeItem(this.getKey(r));
- }
- clear() {
- this.storage.clear();
- }
- setCookie(r, o, i = q2) {
- document.cookie = `${this.getKey(r)}=${o}; Max-Age=${i}`;
- }
- getCookie(r) {
- const o = document.cookie.split('; ');
- for (let i = 0, a = o.length; i < a; i++) {
- const s = o[i].split('=');
- if (s[0] === this.getKey(r)) return s[1];
- }
- return '';
- }
- removeCookie(r) {
- this.setCookie(r, 1, -1);
- }
- clearCookie() {
- const r = document.cookie.match(/[^ =;]+(?==)/g);
- if (r)
- for (let o = r.length; o--; )
- document.cookie = r[o] + '=0;expire=' + new Date(0).toUTCString();
- }
- };
- return new n();
- },
- ns = Xre();
- var Zre = function () {
- if (
- typeof Symbol != 'function' ||
- typeof Object.getOwnPropertySymbols != 'function'
- )
- return !1;
- if (typeof Symbol.iterator == 'symbol') return !0;
- var t = {},
- n = Symbol('test'),
- r = Object(n);
- if (
- typeof n == 'string' ||
- Object.prototype.toString.call(n) !== '[object Symbol]' ||
- Object.prototype.toString.call(r) !== '[object Symbol]'
- )
- return !1;
- var o = 42;
- t[n] = o;
- for (n in t) return !1;
- if (
- (typeof Object.keys == 'function' && Object.keys(t).length !== 0) ||
- (typeof Object.getOwnPropertyNames == 'function' &&
- Object.getOwnPropertyNames(t).length !== 0)
- )
- return !1;
- var i = Object.getOwnPropertySymbols(t);
- if (
- i.length !== 1 ||
- i[0] !== n ||
- !Object.prototype.propertyIsEnumerable.call(t, n)
- )
- return !1;
- if (typeof Object.getOwnPropertyDescriptor == 'function') {
- var a = Object.getOwnPropertyDescriptor(t, n);
- if (a.value !== o || a.enumerable !== !0) return !1;
- }
- return !0;
- },
- Y2 = typeof Symbol < 'u' && Symbol,
- Qre = Zre,
- Jre = function () {
- return typeof Y2 != 'function' ||
- typeof Symbol != 'function' ||
- typeof Y2('foo') != 'symbol' ||
- typeof Symbol('bar') != 'symbol'
- ? !1
- : Qre();
- },
- G2 = { foo: {} },
- eoe = Object,
- toe = function () {
- return (
- { __proto__: G2 }.foo === G2.foo && !({ __proto__: null } instanceof eoe)
- );
- },
- noe = 'Function.prototype.bind called on incompatible ',
- ym = Array.prototype.slice,
- roe = Object.prototype.toString,
- ooe = '[object Function]',
- ioe = function (t) {
- var n = this;
- if (typeof n != 'function' || roe.call(n) !== ooe)
- throw new TypeError(noe + n);
- for (
- var r = ym.call(arguments, 1),
- o,
- i = function () {
- if (this instanceof o) {
- var f = n.apply(this, r.concat(ym.call(arguments)));
- return Object(f) === f ? f : this;
- } else return n.apply(t, r.concat(ym.call(arguments)));
- },
- a = Math.max(0, n.length - r.length),
- s = [],
- c = 0;
- c < a;
- c++
- )
- s.push('$' + c);
- if (
- ((o = Function(
- 'binder',
- 'return function (' +
- s.join(',') +
- '){ return binder.apply(this,arguments); }'
- )(i)),
- n.prototype)
- ) {
- var d = function () {};
- (d.prototype = n.prototype),
- (o.prototype = new d()),
- (d.prototype = null);
- }
- return o;
- },
- aoe = ioe,
- r1 = Function.prototype.bind || aoe,
- loe = r1,
- soe = loe.call(Function.call, Object.prototype.hasOwnProperty),
- hn,
- Lc = SyntaxError,
- jT = Function,
- Pc = TypeError,
- xm = function (e) {
- try {
- return jT('"use strict"; return (' + e + ').constructor;')();
- } catch (t) {}
- },
- bs = Object.getOwnPropertyDescriptor;
- if (bs)
- try {
- bs({}, '');
- } catch (e) {
- bs = null;
- }
- var wm = function () {
- throw new Pc();
- },
- coe = bs
- ? (function () {
- try {
- return arguments.callee, wm;
- } catch (e) {
- try {
- return bs(arguments, 'callee').get;
- } catch (t) {
- return wm;
- }
- }
- })()
- : wm,
- pc = Jre(),
- doe = toe(),
- zr =
- Object.getPrototypeOf ||
- (doe
- ? function (e) {
- return e.__proto__;
- }
- : null),
- yc = {},
- uoe = typeof Uint8Array > 'u' || !zr ? hn : zr(Uint8Array),
- ys = {
- '%AggregateError%': typeof AggregateError > 'u' ? hn : AggregateError,
- '%Array%': Array,
- '%ArrayBuffer%': typeof ArrayBuffer > 'u' ? hn : ArrayBuffer,
- '%ArrayIteratorPrototype%': pc && zr ? zr([][Symbol.iterator]()) : hn,
- '%AsyncFromSyncIteratorPrototype%': hn,
- '%AsyncFunction%': yc,
- '%AsyncGenerator%': yc,
- '%AsyncGeneratorFunction%': yc,
- '%AsyncIteratorPrototype%': yc,
- '%Atomics%': typeof Atomics > 'u' ? hn : Atomics,
- '%BigInt%': typeof BigInt > 'u' ? hn : BigInt,
- '%BigInt64Array%': typeof BigInt64Array > 'u' ? hn : BigInt64Array,
- '%BigUint64Array%': typeof BigUint64Array > 'u' ? hn : BigUint64Array,
- '%Boolean%': Boolean,
- '%DataView%': typeof DataView > 'u' ? hn : DataView,
- '%Date%': Date,
- '%decodeURI%': decodeURI,
- '%decodeURIComponent%': decodeURIComponent,
- '%encodeURI%': encodeURI,
- '%encodeURIComponent%': encodeURIComponent,
- '%Error%': Error,
- '%eval%': eval,
- '%EvalError%': EvalError,
- '%Float32Array%': typeof Float32Array > 'u' ? hn : Float32Array,
- '%Float64Array%': typeof Float64Array > 'u' ? hn : Float64Array,
- '%FinalizationRegistry%':
- typeof FinalizationRegistry > 'u' ? hn : FinalizationRegistry,
- '%Function%': jT,
- '%GeneratorFunction%': yc,
- '%Int8Array%': typeof Int8Array > 'u' ? hn : Int8Array,
- '%Int16Array%': typeof Int16Array > 'u' ? hn : Int16Array,
- '%Int32Array%': typeof Int32Array > 'u' ? hn : Int32Array,
- '%isFinite%': isFinite,
- '%isNaN%': isNaN,
- '%IteratorPrototype%': pc && zr ? zr(zr([][Symbol.iterator]())) : hn,
- '%JSON%': typeof JSON == 'object' ? JSON : hn,
- '%Map%': typeof Map > 'u' ? hn : Map,
- '%MapIteratorPrototype%':
- typeof Map > 'u' || !pc || !zr ? hn : zr(new Map()[Symbol.iterator]()),
- '%Math%': Math,
- '%Number%': Number,
- '%Object%': Object,
- '%parseFloat%': parseFloat,
- '%parseInt%': parseInt,
- '%Promise%': typeof Promise > 'u' ? hn : Promise,
- '%Proxy%': typeof Proxy > 'u' ? hn : Proxy,
- '%RangeError%': RangeError,
- '%ReferenceError%': ReferenceError,
- '%Reflect%': typeof Reflect > 'u' ? hn : Reflect,
- '%RegExp%': RegExp,
- '%Set%': typeof Set > 'u' ? hn : Set,
- '%SetIteratorPrototype%':
- typeof Set > 'u' || !pc || !zr ? hn : zr(new Set()[Symbol.iterator]()),
- '%SharedArrayBuffer%':
- typeof SharedArrayBuffer > 'u' ? hn : SharedArrayBuffer,
- '%String%': String,
- '%StringIteratorPrototype%': pc && zr ? zr(''[Symbol.iterator]()) : hn,
- '%Symbol%': pc ? Symbol : hn,
- '%SyntaxError%': Lc,
- '%ThrowTypeError%': coe,
- '%TypedArray%': uoe,
- '%TypeError%': Pc,
- '%Uint8Array%': typeof Uint8Array > 'u' ? hn : Uint8Array,
- '%Uint8ClampedArray%':
- typeof Uint8ClampedArray > 'u' ? hn : Uint8ClampedArray,
- '%Uint16Array%': typeof Uint16Array > 'u' ? hn : Uint16Array,
- '%Uint32Array%': typeof Uint32Array > 'u' ? hn : Uint32Array,
- '%URIError%': URIError,
- '%WeakMap%': typeof WeakMap > 'u' ? hn : WeakMap,
- '%WeakRef%': typeof WeakRef > 'u' ? hn : WeakRef,
- '%WeakSet%': typeof WeakSet > 'u' ? hn : WeakSet
- };
- if (zr)
- try {
- null.error;
- } catch (e) {
- var foe = zr(zr(e));
- ys['%Error.prototype%'] = foe;
- }
- var hoe = function e(t) {
- var n;
- if (t === '%AsyncFunction%') n = xm('async function () {}');
- else if (t === '%GeneratorFunction%') n = xm('function* () {}');
- else if (t === '%AsyncGeneratorFunction%') n = xm('async function* () {}');
- else if (t === '%AsyncGenerator%') {
- var r = e('%AsyncGeneratorFunction%');
- r && (n = r.prototype);
- } else if (t === '%AsyncIteratorPrototype%') {
- var o = e('%AsyncGenerator%');
- o && zr && (n = zr(o.prototype));
- }
- return (ys[t] = n), n;
- },
- X2 = {
- '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
- '%ArrayPrototype%': ['Array', 'prototype'],
- '%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
- '%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
- '%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
- '%ArrayProto_values%': ['Array', 'prototype', 'values'],
- '%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
- '%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
- '%AsyncGeneratorPrototype%': [
- 'AsyncGeneratorFunction',
- 'prototype',
- 'prototype'
- ],
- '%BooleanPrototype%': ['Boolean', 'prototype'],
- '%DataViewPrototype%': ['DataView', 'prototype'],
- '%DatePrototype%': ['Date', 'prototype'],
- '%ErrorPrototype%': ['Error', 'prototype'],
- '%EvalErrorPrototype%': ['EvalError', 'prototype'],
- '%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
- '%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
- '%FunctionPrototype%': ['Function', 'prototype'],
- '%Generator%': ['GeneratorFunction', 'prototype'],
- '%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
- '%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
- '%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
- '%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
- '%JSONParse%': ['JSON', 'parse'],
- '%JSONStringify%': ['JSON', 'stringify'],
- '%MapPrototype%': ['Map', 'prototype'],
- '%NumberPrototype%': ['Number', 'prototype'],
- '%ObjectPrototype%': ['Object', 'prototype'],
- '%ObjProto_toString%': ['Object', 'prototype', 'toString'],
- '%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
- '%PromisePrototype%': ['Promise', 'prototype'],
- '%PromiseProto_then%': ['Promise', 'prototype', 'then'],
- '%Promise_all%': ['Promise', 'all'],
- '%Promise_reject%': ['Promise', 'reject'],
- '%Promise_resolve%': ['Promise', 'resolve'],
- '%RangeErrorPrototype%': ['RangeError', 'prototype'],
- '%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
- '%RegExpPrototype%': ['RegExp', 'prototype'],
- '%SetPrototype%': ['Set', 'prototype'],
- '%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
- '%StringPrototype%': ['String', 'prototype'],
- '%SymbolPrototype%': ['Symbol', 'prototype'],
- '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
- '%TypedArrayPrototype%': ['TypedArray', 'prototype'],
- '%TypeErrorPrototype%': ['TypeError', 'prototype'],
- '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
- '%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
- '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
- '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
- '%URIErrorPrototype%': ['URIError', 'prototype'],
- '%WeakMapPrototype%': ['WeakMap', 'prototype'],
- '%WeakSetPrototype%': ['WeakSet', 'prototype']
- },
- Zu = r1,
- vv = soe,
- voe = Zu.call(Function.call, Array.prototype.concat),
- poe = Zu.call(Function.apply, Array.prototype.splice),
- Z2 = Zu.call(Function.call, String.prototype.replace),
- pv = Zu.call(Function.call, String.prototype.slice),
- goe = Zu.call(Function.call, RegExp.prototype.exec),
- moe =
- /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,
- boe = /\\(\\)?/g,
- yoe = function (t) {
- var n = pv(t, 0, 1),
- r = pv(t, -1);
- if (n === '%' && r !== '%')
- throw new Lc('invalid intrinsic syntax, expected closing `%`');
- if (r === '%' && n !== '%')
- throw new Lc('invalid intrinsic syntax, expected opening `%`');
- var o = [];
- return (
- Z2(t, moe, function (i, a, s, c) {
- o[o.length] = s ? Z2(c, boe, '$1') : a || i;
- }),
- o
- );
- },
- xoe = function (t, n) {
- var r = t,
- o;
- if ((vv(X2, r) && ((o = X2[r]), (r = '%' + o[0] + '%')), vv(ys, r))) {
- var i = ys[r];
- if ((i === yc && (i = hoe(r)), typeof i > 'u' && !n))
- throw new Pc(
- 'intrinsic ' +
- t +
- ' exists, but is not available. Please file an issue!'
- );
- return { alias: o, name: r, value: i };
- }
- throw new Lc('intrinsic ' + t + ' does not exist!');
- },
- o1 = function (t, n) {
- if (typeof t != 'string' || t.length === 0)
- throw new Pc('intrinsic name must be a non-empty string');
- if (arguments.length > 1 && typeof n != 'boolean')
- throw new Pc('"allowMissing" argument must be a boolean');
- if (goe(/^%?[^%]*%?$/, t) === null)
- throw new Lc(
- '`%` may not be present anywhere but at the beginning and end of the intrinsic name'
- );
- var r = yoe(t),
- o = r.length > 0 ? r[0] : '',
- i = xoe('%' + o + '%', n),
- a = i.name,
- s = i.value,
- c = !1,
- d = i.alias;
- d && ((o = d[0]), poe(r, voe([0, 1], d)));
- for (var f = 1, v = !0; f < r.length; f += 1) {
- var p = r[f],
- m = pv(p, 0, 1),
- g = pv(p, -1);
- if (
- (m === '"' ||
- m === "'" ||
- m === '`' ||
- g === '"' ||
- g === "'" ||
- g === '`') &&
- m !== g
- )
- throw new Lc('property names with quotes must have matching quotes');
- if (
- ((p === 'constructor' || !v) && (c = !0),
- (o += '.' + p),
- (a = '%' + o + '%'),
- vv(ys, a))
- )
- s = ys[a];
- else if (s != null) {
- if (!(p in s)) {
- if (!n)
- throw new Pc(
- 'base intrinsic for ' +
- t +
- ' exists, but the property is not available.'
- );
- return;
- }
- if (bs && f + 1 >= r.length) {
- var w = bs(s, p);
- (v = !!w),
- v && 'get' in w && !('originalValue' in w.get)
- ? (s = w.get)
- : (s = s[p]);
- } else (v = vv(s, p)), (s = s[p]);
- v && !c && (ys[a] = s);
- }
- }
- return s;
- },
- UT = { exports: {} };
- (function (e) {
- var t = r1,
- n = o1,
- r = n('%Function.prototype.apply%'),
- o = n('%Function.prototype.call%'),
- i = n('%Reflect.apply%', !0) || t.call(o, r),
- a = n('%Object.getOwnPropertyDescriptor%', !0),
- s = n('%Object.defineProperty%', !0),
- c = n('%Math.max%');
- if (s)
- try {
- s({}, 'a', { value: 1 });
- } catch (f) {
- s = null;
- }
- e.exports = function (v) {
- var p = i(t, o, arguments);
- if (a && s) {
- var m = a(p, 'length');
- m.configurable &&
- s(p, 'length', { value: 1 + c(0, v.length - (arguments.length - 1)) });
- }
- return p;
- };
- var d = function () {
- return i(t, r, arguments);
- };
- s ? s(e.exports, 'apply', { value: d }) : (e.exports.apply = d);
- })(UT);
- var woe = UT.exports,
- WT = o1,
- VT = woe,
- Coe = VT(WT('String.prototype.indexOf')),
- Soe = function (t, n) {
- var r = WT(t, !!n);
- return typeof r == 'function' && Coe(t, '.prototype.') > -1 ? VT(r) : r;
- },
- i1 = typeof Map == 'function' && Map.prototype,
- Cm =
- Object.getOwnPropertyDescriptor && i1
- ? Object.getOwnPropertyDescriptor(Map.prototype, 'size')
- : null,
- gv = i1 && Cm && typeof Cm.get == 'function' ? Cm.get : null,
- Q2 = i1 && Map.prototype.forEach,
- a1 = typeof Set == 'function' && Set.prototype,
- Sm =
- Object.getOwnPropertyDescriptor && a1
- ? Object.getOwnPropertyDescriptor(Set.prototype, 'size')
- : null,
- mv = a1 && Sm && typeof Sm.get == 'function' ? Sm.get : null,
- J2 = a1 && Set.prototype.forEach,
- _oe = typeof WeakMap == 'function' && WeakMap.prototype,
- au = _oe ? WeakMap.prototype.has : null,
- Roe = typeof WeakSet == 'function' && WeakSet.prototype,
- lu = Roe ? WeakSet.prototype.has : null,
- Poe = typeof WeakRef == 'function' && WeakRef.prototype,
- e_ = Poe ? WeakRef.prototype.deref : null,
- koe = Boolean.prototype.valueOf,
- Toe = Object.prototype.toString,
- $oe = Function.prototype.toString,
- Ooe = String.prototype.match,
- l1 = String.prototype.slice,
- ol = String.prototype.replace,
- zoe = String.prototype.toUpperCase,
- t_ = String.prototype.toLowerCase,
- KT = RegExp.prototype.test,
- n_ = Array.prototype.concat,
- Ei = Array.prototype.join,
- Aoe = Array.prototype.slice,
- r_ = Math.floor,
- f0 = typeof BigInt == 'function' ? BigInt.prototype.valueOf : null,
- _m = Object.getOwnPropertySymbols,
- h0 =
- typeof Symbol == 'function' && typeof Symbol.iterator == 'symbol'
- ? Symbol.prototype.toString
- : null,
- Nc = typeof Symbol == 'function' && typeof Symbol.iterator == 'object',
- Gr =
- typeof Symbol == 'function' &&
- Symbol.toStringTag &&
- (typeof Symbol.toStringTag === Nc || 'symbol')
- ? Symbol.toStringTag
- : null,
- qT = Object.prototype.propertyIsEnumerable,
- o_ =
- (typeof Reflect == 'function'
- ? Reflect.getPrototypeOf
- : Object.getPrototypeOf) ||
- ([].__proto__ === Array.prototype
- ? function (e) {
- return e.__proto__;
- }
- : null);
- function i_(e, t) {
- if (
- e === 1 / 0 ||
- e === -1 / 0 ||
- e !== e ||
- (e && e > -1e3 && e < 1e3) ||
- KT.call(/e/, t)
- )
- return t;
- var n = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
- if (typeof e == 'number') {
- var r = e < 0 ? -r_(-e) : r_(e);
- if (r !== e) {
- var o = String(r),
- i = l1.call(t, o.length + 1);
- return (
- ol.call(o, n, '$&_') +
- '.' +
- ol.call(ol.call(i, /([0-9]{3})/g, '$&_'), /_$/, '')
- );
- }
- }
- return ol.call(t, n, '$&_');
- }
- var v0 = ET,
- a_ = v0.custom,
- l_ = GT(a_) ? a_ : null,
- Eoe = function e(t, n, r, o) {
- var i = n || {};
- if (
- nl(i, 'quoteStyle') &&
- i.quoteStyle !== 'single' &&
- i.quoteStyle !== 'double'
- )
- throw new TypeError('option "quoteStyle" must be "single" or "double"');
- if (
- nl(i, 'maxStringLength') &&
- (typeof i.maxStringLength == 'number'
- ? i.maxStringLength < 0 && i.maxStringLength !== 1 / 0
- : i.maxStringLength !== null)
- )
- throw new TypeError(
- 'option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`'
- );
- var a = nl(i, 'customInspect') ? i.customInspect : !0;
- if (typeof a != 'boolean' && a !== 'symbol')
- throw new TypeError(
- 'option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`'
- );
- if (
- nl(i, 'indent') &&
- i.indent !== null &&
- i.indent !== ' ' &&
- !(parseInt(i.indent, 10) === i.indent && i.indent > 0)
- )
- throw new TypeError(
- 'option "indent" must be "\\t", an integer > 0, or `null`'
- );
- if (nl(i, 'numericSeparator') && typeof i.numericSeparator != 'boolean')
- throw new TypeError(
- 'option "numericSeparator", if provided, must be `true` or `false`'
- );
- var s = i.numericSeparator;
- if (typeof t > 'u') return 'undefined';
- if (t === null) return 'null';
- if (typeof t == 'boolean') return t ? 'true' : 'false';
- if (typeof t == 'string') return ZT(t, i);
- if (typeof t == 'number') {
- if (t === 0) return 1 / 0 / t > 0 ? '0' : '-0';
- var c = String(t);
- return s ? i_(t, c) : c;
- }
- if (typeof t == 'bigint') {
- var d = String(t) + 'n';
- return s ? i_(t, d) : d;
- }
- var f = typeof i.depth > 'u' ? 5 : i.depth;
- if ((typeof r > 'u' && (r = 0), r >= f && f > 0 && typeof t == 'object'))
- return p0(t) ? '[Array]' : '[Object]';
- var v = Zoe(i, r);
- if (typeof o > 'u') o = [];
- else if (XT(o, t) >= 0) return '[Circular]';
- function p(D, L, j) {
- if ((L && ((o = Aoe.call(o)), o.push(L)), j)) {
- var B = { depth: i.depth };
- return (
- nl(i, 'quoteStyle') && (B.quoteStyle = i.quoteStyle),
- e(D, B, r + 1, o)
- );
- }
- return e(D, i, r + 1, o);
- }
- if (typeof t == 'function' && !s_(t)) {
- var m = joe(t),
- g = Th(t, p);
- return (
- '[Function' +
- (m ? ': ' + m : ' (anonymous)') +
- ']' +
- (g.length > 0 ? ' { ' + Ei.call(g, ', ') + ' }' : '')
- );
- }
- if (GT(t)) {
- var w = Nc
- ? ol.call(String(t), /^(Symbol\(.*\))_[^)]*$/, '$1')
- : h0.call(t);
- return typeof t == 'object' && !Nc ? Fd(w) : w;
- }
- if (Yoe(t)) {
- for (
- var x = '<' + t_.call(String(t.nodeName)),
- y = t.attributes || [],
- C = 0;
- C < y.length;
- C++
- )
- x += ' ' + y[C].name + '=' + YT(Moe(y[C].value), 'double', i);
- return (
- (x += '>'),
- t.childNodes && t.childNodes.length && (x += '...'),
- (x += '</' + t_.call(String(t.nodeName)) + '>'),
- x
- );
- }
- if (p0(t)) {
- if (t.length === 0) return '[]';
- var R = Th(t, p);
- return v && !Xoe(R)
- ? '[' + g0(R, v) + ']'
- : '[ ' + Ei.call(R, ', ') + ' ]';
- }
- if (Doe(t)) {
- var S = Th(t, p);
- return !('cause' in Error.prototype) &&
- 'cause' in t &&
- !qT.call(t, 'cause')
- ? '{ [' +
- String(t) +
- '] ' +
- Ei.call(n_.call('[cause]: ' + p(t.cause), S), ', ') +
- ' }'
- : S.length === 0
- ? '[' + String(t) + ']'
- : '{ [' + String(t) + '] ' + Ei.call(S, ', ') + ' }';
- }
- if (typeof t == 'object' && a) {
- if (l_ && typeof t[l_] == 'function' && v0)
- return v0(t, { depth: f - r });
- if (a !== 'symbol' && typeof t.inspect == 'function') return t.inspect();
- }
- if (Uoe(t)) {
- var _ = [];
- return (
- Q2 &&
- Q2.call(t, function (D, L) {
- _.push(p(L, t, !0) + ' => ' + p(D, t));
- }),
- c_('Map', gv.call(t), _, v)
- );
- }
- if (Koe(t)) {
- var P = [];
- return (
- J2 &&
- J2.call(t, function (D) {
- P.push(p(D, t));
- }),
- c_('Set', mv.call(t), P, v)
- );
- }
- if (Woe(t)) return Rm('WeakMap');
- if (qoe(t)) return Rm('WeakSet');
- if (Voe(t)) return Rm('WeakRef');
- if (Boe(t)) return Fd(p(Number(t)));
- if (Noe(t)) return Fd(p(f0.call(t)));
- if (Loe(t)) return Fd(koe.call(t));
- if (Foe(t)) return Fd(p(String(t)));
- if (!Ioe(t) && !s_(t)) {
- var T = Th(t, p),
- A = o_
- ? o_(t) === Object.prototype
- : t instanceof Object || t.constructor === Object,
- z = t instanceof Object ? '' : 'null prototype',
- k =
- !A && Gr && Object(t) === t && Gr in t
- ? l1.call(Rl(t), 8, -1)
- : z
- ? 'Object'
- : '',
- M =
- A || typeof t.constructor != 'function'
- ? ''
- : t.constructor.name
- ? t.constructor.name + ' '
- : '',
- E =
- M +
- (k || z
- ? '[' + Ei.call(n_.call([], k || [], z || []), ': ') + '] '
- : '');
- return T.length === 0
- ? E + '{}'
- : v
- ? E + '{' + g0(T, v) + '}'
- : E + '{ ' + Ei.call(T, ', ') + ' }';
- }
- return String(t);
- };
- function YT(e, t, n) {
- var r = (n.quoteStyle || t) === 'double' ? '"' : "'";
- return r + e + r;
- }
- function Moe(e) {
- return ol.call(String(e), /"/g, '"');
- }
- function p0(e) {
- return (
- Rl(e) === '[object Array]' && (!Gr || !(typeof e == 'object' && Gr in e))
- );
- }
- function Ioe(e) {
- return (
- Rl(e) === '[object Date]' && (!Gr || !(typeof e == 'object' && Gr in e))
- );
- }
- function s_(e) {
- return (
- Rl(e) === '[object RegExp]' && (!Gr || !(typeof e == 'object' && Gr in e))
- );
- }
- function Doe(e) {
- return (
- Rl(e) === '[object Error]' && (!Gr || !(typeof e == 'object' && Gr in e))
- );
- }
- function Foe(e) {
- return (
- Rl(e) === '[object String]' && (!Gr || !(typeof e == 'object' && Gr in e))
- );
- }
- function Boe(e) {
- return (
- Rl(e) === '[object Number]' && (!Gr || !(typeof e == 'object' && Gr in e))
- );
- }
- function Loe(e) {
- return (
- Rl(e) === '[object Boolean]' && (!Gr || !(typeof e == 'object' && Gr in e))
- );
- }
- function GT(e) {
- if (Nc) return e && typeof e == 'object' && e instanceof Symbol;
- if (typeof e == 'symbol') return !0;
- if (!e || typeof e != 'object' || !h0) return !1;
- try {
- return h0.call(e), !0;
- } catch (t) {}
- return !1;
- }
- function Noe(e) {
- if (!e || typeof e != 'object' || !f0) return !1;
- try {
- return f0.call(e), !0;
- } catch (t) {}
- return !1;
- }
- var Hoe =
- Object.prototype.hasOwnProperty ||
- function (e) {
- return e in this;
- };
- function nl(e, t) {
- return Hoe.call(e, t);
- }
- function Rl(e) {
- return Toe.call(e);
- }
- function joe(e) {
- if (e.name) return e.name;
- var t = Ooe.call($oe.call(e), /^function\s*([\w$]+)/);
- return t ? t[1] : null;
- }
- function XT(e, t) {
- if (e.indexOf) return e.indexOf(t);
- for (var n = 0, r = e.length; n < r; n++) if (e[n] === t) return n;
- return -1;
- }
- function Uoe(e) {
- if (!gv || !e || typeof e != 'object') return !1;
- try {
- gv.call(e);
- try {
- mv.call(e);
- } catch (t) {
- return !0;
- }
- return e instanceof Map;
- } catch (t) {}
- return !1;
- }
- function Woe(e) {
- if (!au || !e || typeof e != 'object') return !1;
- try {
- au.call(e, au);
- try {
- lu.call(e, lu);
- } catch (t) {
- return !0;
- }
- return e instanceof WeakMap;
- } catch (t) {}
- return !1;
- }
- function Voe(e) {
- if (!e_ || !e || typeof e != 'object') return !1;
- try {
- return e_.call(e), !0;
- } catch (t) {}
- return !1;
- }
- function Koe(e) {
- if (!mv || !e || typeof e != 'object') return !1;
- try {
- mv.call(e);
- try {
- gv.call(e);
- } catch (t) {
- return !0;
- }
- return e instanceof Set;
- } catch (t) {}
- return !1;
- }
- function qoe(e) {
- if (!lu || !e || typeof e != 'object') return !1;
- try {
- lu.call(e, lu);
- try {
- au.call(e, au);
- } catch (t) {
- return !0;
- }
- return e instanceof WeakSet;
- } catch (t) {}
- return !1;
- }
- function Yoe(e) {
- return !e || typeof e != 'object'
- ? !1
- : typeof HTMLElement < 'u' && e instanceof HTMLElement
- ? !0
- : typeof e.nodeName == 'string' && typeof e.getAttribute == 'function';
- }
- function ZT(e, t) {
- if (e.length > t.maxStringLength) {
- var n = e.length - t.maxStringLength,
- r = '... ' + n + ' more character' + (n > 1 ? 's' : '');
- return ZT(l1.call(e, 0, t.maxStringLength), t) + r;
- }
- var o = ol.call(ol.call(e, /(['\\])/g, '\\$1'), /[\x00-\x1f]/g, Goe);
- return YT(o, 'single', t);
- }
- function Goe(e) {
- var t = e.charCodeAt(0),
- n = { 8: 'b', 9: 't', 10: 'n', 12: 'f', 13: 'r' }[t];
- return n ? '\\' + n : '\\x' + (t < 16 ? '0' : '') + zoe.call(t.toString(16));
- }
- function Fd(e) {
- return 'Object(' + e + ')';
- }
- function Rm(e) {
- return e + ' { ? }';
- }
- function c_(e, t, n, r) {
- var o = r ? g0(n, r) : Ei.call(n, ', ');
- return e + ' (' + t + ') {' + o + '}';
- }
- function Xoe(e) {
- for (var t = 0; t < e.length; t++)
- if (
- XT(
- e[t],
- `
- `
- ) >= 0
- )
- return !1;
- return !0;
- }
- function Zoe(e, t) {
- var n;
- if (e.indent === ' ') n = ' ';
- else if (typeof e.indent == 'number' && e.indent > 0)
- n = Ei.call(Array(e.indent + 1), ' ');
- else return null;
- return { base: n, prev: Ei.call(Array(t + 1), n) };
- }
- function g0(e, t) {
- if (e.length === 0) return '';
- var n =
- `
- ` +
- t.prev +
- t.base;
- return (
- n +
- Ei.call(e, ',' + n) +
- `
- ` +
- t.prev
- );
- }
- function Th(e, t) {
- var n = p0(e),
- r = [];
- if (n) {
- r.length = e.length;
- for (var o = 0; o < e.length; o++) r[o] = nl(e, o) ? t(e[o], e) : '';
- }
- var i = typeof _m == 'function' ? _m(e) : [],
- a;
- if (Nc) {
- a = {};
- for (var s = 0; s < i.length; s++) a['$' + i[s]] = i[s];
- }
- for (var c in e)
- nl(e, c) &&
- ((n && String(Number(c)) === c && c < e.length) ||
- (Nc && a['$' + c] instanceof Symbol) ||
- (KT.call(/[^\w$]/, c)
- ? r.push(t(c, e) + ': ' + t(e[c], e))
- : r.push(c + ': ' + t(e[c], e))));
- if (typeof _m == 'function')
- for (var d = 0; d < i.length; d++)
- qT.call(e, i[d]) && r.push('[' + t(i[d]) + ']: ' + t(e[i[d]], e));
- return r;
- }
- var s1 = o1,
- id = Soe,
- Qoe = Eoe,
- Joe = s1('%TypeError%'),
- $h = s1('%WeakMap%', !0),
- Oh = s1('%Map%', !0),
- eie = id('WeakMap.prototype.get', !0),
- tie = id('WeakMap.prototype.set', !0),
- nie = id('WeakMap.prototype.has', !0),
- rie = id('Map.prototype.get', !0),
- oie = id('Map.prototype.set', !0),
- iie = id('Map.prototype.has', !0),
- c1 = function (e, t) {
- for (var n = e, r; (r = n.next) !== null; n = r)
- if (r.key === t)
- return (n.next = r.next), (r.next = e.next), (e.next = r), r;
- },
- aie = function (e, t) {
- var n = c1(e, t);
- return n && n.value;
- },
- lie = function (e, t, n) {
- var r = c1(e, t);
- r ? (r.value = n) : (e.next = { key: t, next: e.next, value: n });
- },
- sie = function (e, t) {
- return !!c1(e, t);
- },
- cie = function () {
- var t,
- n,
- r,
- o = {
- assert: function (i) {
- if (!o.has(i))
- throw new Joe('Side channel does not contain ' + Qoe(i));
- },
- get: function (i) {
- if ($h && i && (typeof i == 'object' || typeof i == 'function')) {
- if (t) return eie(t, i);
- } else if (Oh) {
- if (n) return rie(n, i);
- } else if (r) return aie(r, i);
- },
- has: function (i) {
- if ($h && i && (typeof i == 'object' || typeof i == 'function')) {
- if (t) return nie(t, i);
- } else if (Oh) {
- if (n) return iie(n, i);
- } else if (r) return sie(r, i);
- return !1;
- },
- set: function (i, a) {
- $h && i && (typeof i == 'object' || typeof i == 'function')
- ? (t || (t = new $h()), tie(t, i, a))
- : Oh
- ? (n || (n = new Oh()), oie(n, i, a))
- : (r || (r = { key: {}, next: null }), lie(r, i, a));
- }
- };
- return o;
- },
- die = String.prototype.replace,
- uie = /%20/g,
- Pm = { RFC1738: 'RFC1738', RFC3986: 'RFC3986' },
- d1 = {
- default: Pm.RFC3986,
- formatters: {
- RFC1738: function (e) {
- return die.call(e, uie, '+');
- },
- RFC3986: function (e) {
- return String(e);
- }
- },
- RFC1738: Pm.RFC1738,
- RFC3986: Pm.RFC3986
- },
- fie = d1,
- km = Object.prototype.hasOwnProperty,
- as = Array.isArray,
- Oi = (function () {
- for (var e = [], t = 0; t < 256; ++t)
- e.push('%' + ((t < 16 ? '0' : '') + t.toString(16)).toUpperCase());
- return e;
- })(),
- hie = function (t) {
- for (; t.length > 1; ) {
- var n = t.pop(),
- r = n.obj[n.prop];
- if (as(r)) {
- for (var o = [], i = 0; i < r.length; ++i)
- typeof r[i] < 'u' && o.push(r[i]);
- n.obj[n.prop] = o;
- }
- }
- },
- QT = function (t, n) {
- for (
- var r = n && n.plainObjects ? Object.create(null) : {}, o = 0;
- o < t.length;
- ++o
- )
- typeof t[o] < 'u' && (r[o] = t[o]);
- return r;
- },
- vie = function e(t, n, r) {
- if (!n) return t;
- if (typeof n != 'object') {
- if (as(t)) t.push(n);
- else if (t && typeof t == 'object')
- ((r && (r.plainObjects || r.allowPrototypes)) ||
- !km.call(Object.prototype, n)) &&
- (t[n] = !0);
- else return [t, n];
- return t;
- }
- if (!t || typeof t != 'object') return [t].concat(n);
- var o = t;
- return (
- as(t) && !as(n) && (o = QT(t, r)),
- as(t) && as(n)
- ? (n.forEach(function (i, a) {
- if (km.call(t, a)) {
- var s = t[a];
- s && typeof s == 'object' && i && typeof i == 'object'
- ? (t[a] = e(s, i, r))
- : t.push(i);
- } else t[a] = i;
- }),
- t)
- : Object.keys(n).reduce(function (i, a) {
- var s = n[a];
- return km.call(i, a) ? (i[a] = e(i[a], s, r)) : (i[a] = s), i;
- }, o)
- );
- },
- pie = function (t, n) {
- return Object.keys(n).reduce(function (r, o) {
- return (r[o] = n[o]), r;
- }, t);
- },
- gie = function (e, t, n) {
- var r = e.replace(/\+/g, ' ');
- if (n === 'iso-8859-1') return r.replace(/%[0-9a-f]{2}/gi, unescape);
- try {
- return decodeURIComponent(r);
- } catch (o) {
- return r;
- }
- },
- mie = function (t, n, r, o, i) {
- if (t.length === 0) return t;
- var a = t;
- if (
- (typeof t == 'symbol'
- ? (a = Symbol.prototype.toString.call(t))
- : typeof t != 'string' && (a = String(t)),
- r === 'iso-8859-1')
- )
- return escape(a).replace(/%u[0-9a-f]{4}/gi, function (f) {
- return '%26%23' + parseInt(f.slice(2), 16) + '%3B';
- });
- for (var s = '', c = 0; c < a.length; ++c) {
- var d = a.charCodeAt(c);
- if (
- d === 45 ||
- d === 46 ||
- d === 95 ||
- d === 126 ||
- (d >= 48 && d <= 57) ||
- (d >= 65 && d <= 90) ||
- (d >= 97 && d <= 122) ||
- (i === fie.RFC1738 && (d === 40 || d === 41))
- ) {
- s += a.charAt(c);
- continue;
- }
- if (d < 128) {
- s = s + Oi[d];
- continue;
- }
- if (d < 2048) {
- s = s + (Oi[192 | (d >> 6)] + Oi[128 | (d & 63)]);
- continue;
- }
- if (d < 55296 || d >= 57344) {
- s =
- s +
- (Oi[224 | (d >> 12)] +
- Oi[128 | ((d >> 6) & 63)] +
- Oi[128 | (d & 63)]);
- continue;
- }
- (c += 1),
- (d = 65536 + (((d & 1023) << 10) | (a.charCodeAt(c) & 1023))),
- (s +=
- Oi[240 | (d >> 18)] +
- Oi[128 | ((d >> 12) & 63)] +
- Oi[128 | ((d >> 6) & 63)] +
- Oi[128 | (d & 63)]);
- }
- return s;
- },
- bie = function (t) {
- for (
- var n = [{ obj: { o: t }, prop: 'o' }], r = [], o = 0;
- o < n.length;
- ++o
- )
- for (
- var i = n[o], a = i.obj[i.prop], s = Object.keys(a), c = 0;
- c < s.length;
- ++c
- ) {
- var d = s[c],
- f = a[d];
- typeof f == 'object' &&
- f !== null &&
- r.indexOf(f) === -1 &&
- (n.push({ obj: a, prop: d }), r.push(f));
- }
- return hie(n), t;
- },
- yie = function (t) {
- return Object.prototype.toString.call(t) === '[object RegExp]';
- },
- xie = function (t) {
- return !t || typeof t != 'object'
- ? !1
- : !!(
- t.constructor &&
- t.constructor.isBuffer &&
- t.constructor.isBuffer(t)
- );
- },
- wie = function (t, n) {
- return [].concat(t, n);
- },
- Cie = function (t, n) {
- if (as(t)) {
- for (var r = [], o = 0; o < t.length; o += 1) r.push(n(t[o]));
- return r;
- }
- return n(t);
- },
- JT = {
- arrayToObject: QT,
- assign: pie,
- combine: wie,
- compact: bie,
- decode: gie,
- encode: mie,
- isBuffer: xie,
- isRegExp: yie,
- maybeMap: Cie,
- merge: vie
- },
- e$ = cie,
- Nh = JT,
- su = d1,
- Sie = Object.prototype.hasOwnProperty,
- d_ = {
- brackets: function (t) {
- return t + '[]';
- },
- comma: 'comma',
- indices: function (t, n) {
- return t + '[' + n + ']';
- },
- repeat: function (t) {
- return t;
- }
- },
- ma = Array.isArray,
- _ie = Array.prototype.push,
- t$ = function (e, t) {
- _ie.apply(e, ma(t) ? t : [t]);
- },
- Rie = Date.prototype.toISOString,
- u_ = su.default,
- Ur = {
- addQueryPrefix: !1,
- allowDots: !1,
- charset: 'utf-8',
- charsetSentinel: !1,
- delimiter: '&',
- encode: !0,
- encoder: Nh.encode,
- encodeValuesOnly: !1,
- format: u_,
- formatter: su.formatters[u_],
- indices: !1,
- serializeDate: function (t) {
- return Rie.call(t);
- },
- skipNulls: !1,
- strictNullHandling: !1
- },
- Pie = function (t) {
- return (
- typeof t == 'string' ||
- typeof t == 'number' ||
- typeof t == 'boolean' ||
- typeof t == 'symbol' ||
- typeof t == 'bigint'
- );
- },
- Tm = {},
- kie = function e(t, n, r, o, i, a, s, c, d, f, v, p, m, g, w, x) {
- for (var y = t, C = x, R = 0, S = !1; (C = C.get(Tm)) !== void 0 && !S; ) {
- var _ = C.get(t);
- if (((R += 1), typeof _ < 'u')) {
- if (_ === R) throw new RangeError('Cyclic object value');
- S = !0;
- }
- typeof C.get(Tm) > 'u' && (R = 0);
- }
- if (
- (typeof c == 'function'
- ? (y = c(n, y))
- : y instanceof Date
- ? (y = v(y))
- : r === 'comma' &&
- ma(y) &&
- (y = Nh.maybeMap(y, function (B) {
- return B instanceof Date ? v(B) : B;
- })),
- y === null)
- ) {
- if (i) return s && !g ? s(n, Ur.encoder, w, 'key', p) : n;
- y = '';
- }
- if (Pie(y) || Nh.isBuffer(y)) {
- if (s) {
- var P = g ? n : s(n, Ur.encoder, w, 'key', p);
- return [m(P) + '=' + m(s(y, Ur.encoder, w, 'value', p))];
- }
- return [m(n) + '=' + m(String(y))];
- }
- var T = [];
- if (typeof y > 'u') return T;
- var A;
- if (r === 'comma' && ma(y))
- g && s && (y = Nh.maybeMap(y, s)),
- (A = [{ value: y.length > 0 ? y.join(',') || null : void 0 }]);
- else if (ma(c)) A = c;
- else {
- var z = Object.keys(y);
- A = d ? z.sort(d) : z;
- }
- for (
- var k = o && ma(y) && y.length === 1 ? n + '[]' : n, M = 0;
- M < A.length;
- ++M
- ) {
- var E = A[M],
- D = typeof E == 'object' && typeof E.value < 'u' ? E.value : y[E];
- if (!(a && D === null)) {
- var L = ma(y)
- ? typeof r == 'function'
- ? r(k, E)
- : k
- : k + (f ? '.' + E : '[' + E + ']');
- x.set(t, R);
- var j = e$();
- j.set(Tm, x),
- t$(
- T,
- e(
- D,
- L,
- r,
- o,
- i,
- a,
- r === 'comma' && g && ma(y) ? null : s,
- c,
- d,
- f,
- v,
- p,
- m,
- g,
- w,
- j
- )
- );
- }
- }
- return T;
- },
- Tie = function (t) {
- if (!t) return Ur;
- if (
- t.encoder !== null &&
- typeof t.encoder < 'u' &&
- typeof t.encoder != 'function'
- )
- throw new TypeError('Encoder has to be a function.');
- var n = t.charset || Ur.charset;
- if (
- typeof t.charset < 'u' &&
- t.charset !== 'utf-8' &&
- t.charset !== 'iso-8859-1'
- )
- throw new TypeError(
- 'The charset option must be either utf-8, iso-8859-1, or undefined'
- );
- var r = su.default;
- if (typeof t.format < 'u') {
- if (!Sie.call(su.formatters, t.format))
- throw new TypeError('Unknown format option provided.');
- r = t.format;
- }
- var o = su.formatters[r],
- i = Ur.filter;
- return (
- (typeof t.filter == 'function' || ma(t.filter)) && (i = t.filter),
- {
- addQueryPrefix:
- typeof t.addQueryPrefix == 'boolean'
- ? t.addQueryPrefix
- : Ur.addQueryPrefix,
- allowDots: typeof t.allowDots > 'u' ? Ur.allowDots : !!t.allowDots,
- charset: n,
- charsetSentinel:
- typeof t.charsetSentinel == 'boolean'
- ? t.charsetSentinel
- : Ur.charsetSentinel,
- delimiter: typeof t.delimiter > 'u' ? Ur.delimiter : t.delimiter,
- encode: typeof t.encode == 'boolean' ? t.encode : Ur.encode,
- encoder: typeof t.encoder == 'function' ? t.encoder : Ur.encoder,
- encodeValuesOnly:
- typeof t.encodeValuesOnly == 'boolean'
- ? t.encodeValuesOnly
- : Ur.encodeValuesOnly,
- filter: i,
- format: r,
- formatter: o,
- serializeDate:
- typeof t.serializeDate == 'function'
- ? t.serializeDate
- : Ur.serializeDate,
- skipNulls: typeof t.skipNulls == 'boolean' ? t.skipNulls : Ur.skipNulls,
- sort: typeof t.sort == 'function' ? t.sort : null,
- strictNullHandling:
- typeof t.strictNullHandling == 'boolean'
- ? t.strictNullHandling
- : Ur.strictNullHandling
- }
- );
- },
- $ie = function (e, t) {
- var n = e,
- r = Tie(t),
- o,
- i;
- typeof r.filter == 'function'
- ? ((i = r.filter), (n = i('', n)))
- : ma(r.filter) && ((i = r.filter), (o = i));
- var a = [];
- if (typeof n != 'object' || n === null) return '';
- var s;
- t && t.arrayFormat in d_
- ? (s = t.arrayFormat)
- : t && 'indices' in t
- ? (s = t.indices ? 'indices' : 'repeat')
- : (s = 'indices');
- var c = d_[s];
- if (t && 'commaRoundTrip' in t && typeof t.commaRoundTrip != 'boolean')
- throw new TypeError('`commaRoundTrip` must be a boolean, or absent');
- var d = c === 'comma' && t && t.commaRoundTrip;
- o || (o = Object.keys(n)), r.sort && o.sort(r.sort);
- for (var f = e$(), v = 0; v < o.length; ++v) {
- var p = o[v];
- (r.skipNulls && n[p] === null) ||
- t$(
- a,
- kie(
- n[p],
- p,
- c,
- d,
- r.strictNullHandling,
- r.skipNulls,
- r.encode ? r.encoder : null,
- r.filter,
- r.sort,
- r.allowDots,
- r.serializeDate,
- r.format,
- r.formatter,
- r.encodeValuesOnly,
- r.charset,
- f
- )
- );
- }
- var m = a.join(r.delimiter),
- g = r.addQueryPrefix === !0 ? '?' : '';
- return (
- r.charsetSentinel &&
- (r.charset === 'iso-8859-1'
- ? (g += 'utf8=%26%2310003%3B&')
- : (g += 'utf8=%E2%9C%93&')),
- m.length > 0 ? g + m : ''
- );
- },
- Hc = JT,
- m0 = Object.prototype.hasOwnProperty,
- Oie = Array.isArray,
- Or = {
- allowDots: !1,
- allowPrototypes: !1,
- allowSparse: !1,
- arrayLimit: 20,
- charset: 'utf-8',
- charsetSentinel: !1,
- comma: !1,
- decoder: Hc.decode,
- delimiter: '&',
- depth: 5,
- ignoreQueryPrefix: !1,
- interpretNumericEntities: !1,
- parameterLimit: 1e3,
- parseArrays: !0,
- plainObjects: !1,
- strictNullHandling: !1
- },
- zie = function (e) {
- return e.replace(/&#(\d+);/g, function (t, n) {
- return String.fromCharCode(parseInt(n, 10));
- });
- },
- n$ = function (e, t) {
- return e && typeof e == 'string' && t.comma && e.indexOf(',') > -1
- ? e.split(',')
- : e;
- },
- Aie = 'utf8=%26%2310003%3B',
- Eie = 'utf8=%E2%9C%93',
- Mie = function (t, n) {
- var r = { __proto__: null },
- o = n.ignoreQueryPrefix ? t.replace(/^\?/, '') : t,
- i = n.parameterLimit === 1 / 0 ? void 0 : n.parameterLimit,
- a = o.split(n.delimiter, i),
- s = -1,
- c,
- d = n.charset;
- if (n.charsetSentinel)
- for (c = 0; c < a.length; ++c)
- a[c].indexOf('utf8=') === 0 &&
- (a[c] === Eie ? (d = 'utf-8') : a[c] === Aie && (d = 'iso-8859-1'),
- (s = c),
- (c = a.length));
- for (c = 0; c < a.length; ++c)
- if (c !== s) {
- var f = a[c],
- v = f.indexOf(']='),
- p = v === -1 ? f.indexOf('=') : v + 1,
- m,
- g;
- p === -1
- ? ((m = n.decoder(f, Or.decoder, d, 'key')),
- (g = n.strictNullHandling ? null : ''))
- : ((m = n.decoder(f.slice(0, p), Or.decoder, d, 'key')),
- (g = Hc.maybeMap(n$(f.slice(p + 1), n), function (w) {
- return n.decoder(w, Or.decoder, d, 'value');
- }))),
- g && n.interpretNumericEntities && d === 'iso-8859-1' && (g = zie(g)),
- f.indexOf('[]=') > -1 && (g = Oie(g) ? [g] : g),
- m0.call(r, m) ? (r[m] = Hc.combine(r[m], g)) : (r[m] = g);
- }
- return r;
- },
- Iie = function (e, t, n, r) {
- for (var o = r ? t : n$(t, n), i = e.length - 1; i >= 0; --i) {
- var a,
- s = e[i];
- if (s === '[]' && n.parseArrays) a = [].concat(o);
- else {
- a = n.plainObjects ? Object.create(null) : {};
- var c =
- s.charAt(0) === '[' && s.charAt(s.length - 1) === ']'
- ? s.slice(1, -1)
- : s,
- d = parseInt(c, 10);
- !n.parseArrays && c === ''
- ? (a = { 0: o })
- : !isNaN(d) &&
- s !== c &&
- String(d) === c &&
- d >= 0 &&
- n.parseArrays &&
- d <= n.arrayLimit
- ? ((a = []), (a[d] = o))
- : c !== '__proto__' && (a[c] = o);
- }
- o = a;
- }
- return o;
- },
- Die = function (t, n, r, o) {
- if (t) {
- var i = r.allowDots ? t.replace(/\.([^.[]+)/g, '[$1]') : t,
- a = /(\[[^[\]]*])/,
- s = /(\[[^[\]]*])/g,
- c = r.depth > 0 && a.exec(i),
- d = c ? i.slice(0, c.index) : i,
- f = [];
- if (d) {
- if (
- !r.plainObjects &&
- m0.call(Object.prototype, d) &&
- !r.allowPrototypes
- )
- return;
- f.push(d);
- }
- for (
- var v = 0;
- r.depth > 0 && (c = s.exec(i)) !== null && v < r.depth;
- ) {
- if (
- ((v += 1),
- !r.plainObjects &&
- m0.call(Object.prototype, c[1].slice(1, -1)) &&
- !r.allowPrototypes)
- )
- return;
- f.push(c[1]);
- }
- return c && f.push('[' + i.slice(c.index) + ']'), Iie(f, n, r, o);
- }
- },
- Fie = function (t) {
- if (!t) return Or;
- if (
- t.decoder !== null &&
- t.decoder !== void 0 &&
- typeof t.decoder != 'function'
- )
- throw new TypeError('Decoder has to be a function.');
- if (
- typeof t.charset < 'u' &&
- t.charset !== 'utf-8' &&
- t.charset !== 'iso-8859-1'
- )
- throw new TypeError(
- 'The charset option must be either utf-8, iso-8859-1, or undefined'
- );
- var n = typeof t.charset > 'u' ? Or.charset : t.charset;
- return {
- allowDots: typeof t.allowDots > 'u' ? Or.allowDots : !!t.allowDots,
- allowPrototypes:
- typeof t.allowPrototypes == 'boolean'
- ? t.allowPrototypes
- : Or.allowPrototypes,
- allowSparse:
- typeof t.allowSparse == 'boolean' ? t.allowSparse : Or.allowSparse,
- arrayLimit:
- typeof t.arrayLimit == 'number' ? t.arrayLimit : Or.arrayLimit,
- charset: n,
- charsetSentinel:
- typeof t.charsetSentinel == 'boolean'
- ? t.charsetSentinel
- : Or.charsetSentinel,
- comma: typeof t.comma == 'boolean' ? t.comma : Or.comma,
- decoder: typeof t.decoder == 'function' ? t.decoder : Or.decoder,
- delimiter:
- typeof t.delimiter == 'string' || Hc.isRegExp(t.delimiter)
- ? t.delimiter
- : Or.delimiter,
- depth: typeof t.depth == 'number' || t.depth === !1 ? +t.depth : Or.depth,
- ignoreQueryPrefix: t.ignoreQueryPrefix === !0,
- interpretNumericEntities:
- typeof t.interpretNumericEntities == 'boolean'
- ? t.interpretNumericEntities
- : Or.interpretNumericEntities,
- parameterLimit:
- typeof t.parameterLimit == 'number'
- ? t.parameterLimit
- : Or.parameterLimit,
- parseArrays: t.parseArrays !== !1,
- plainObjects:
- typeof t.plainObjects == 'boolean' ? t.plainObjects : Or.plainObjects,
- strictNullHandling:
- typeof t.strictNullHandling == 'boolean'
- ? t.strictNullHandling
- : Or.strictNullHandling
- };
- },
- Bie = function (e, t) {
- var n = Fie(t);
- if (e === '' || e === null || typeof e > 'u')
- return n.plainObjects ? Object.create(null) : {};
- for (
- var r = typeof e == 'string' ? Mie(e, n) : e,
- o = n.plainObjects ? Object.create(null) : {},
- i = Object.keys(r),
- a = 0;
- a < i.length;
- ++a
- ) {
- var s = i[a],
- c = Die(s, r[s], n, typeof e == 'string');
- o = Hc.merge(o, c, n);
- }
- return n.allowSparse === !0 ? o : Hc.compact(o);
- },
- Lie = $ie,
- Nie = Bie,
- Hie = d1,
- r$ = { formats: Hie, parse: Nie, stringify: Lie },
- Vr =
- (typeof globalThis < 'u' && globalThis) ||
- (typeof self < 'u' && self) ||
- (typeof Vr < 'u' && Vr),
- yo = {
- searchParams: 'URLSearchParams' in Vr,
- iterable: 'Symbol' in Vr && 'iterator' in Symbol,
- blob:
- 'FileReader' in Vr &&
- 'Blob' in Vr &&
- (function () {
- try {
- return new Blob(), !0;
- } catch (e) {
- return !1;
- }
- })(),
- formData: 'FormData' in Vr,
- arrayBuffer: 'ArrayBuffer' in Vr
- };
- function jie(e) {
- return e && DataView.prototype.isPrototypeOf(e);
- }
- if (yo.arrayBuffer)
- var Uie = [
- '[object Int8Array]',
- '[object Uint8Array]',
- '[object Uint8ClampedArray]',
- '[object Int16Array]',
- '[object Uint16Array]',
- '[object Int32Array]',
- '[object Uint32Array]',
- '[object Float32Array]',
- '[object Float64Array]'
- ],
- Wie =
- ArrayBuffer.isView ||
- function (e) {
- return e && Uie.indexOf(Object.prototype.toString.call(e)) > -1;
- };
- function Qu(e) {
- if (
- (typeof e != 'string' && (e = String(e)),
- /[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e) || e === '')
- )
- throw new TypeError('Invalid character in header field name: "' + e + '"');
- return e.toLowerCase();
- }
- function u1(e) {
- return typeof e != 'string' && (e = String(e)), e;
- }
- function f1(e) {
- var t = {
- next: function () {
- var n = e.shift();
- return { done: n === void 0, value: n };
- }
- };
- return (
- yo.iterable &&
- (t[Symbol.iterator] = function () {
- return t;
- }),
- t
- );
- }
- function Pr(e) {
- (this.map = {}),
- e instanceof Pr
- ? e.forEach(function (t, n) {
- this.append(n, t);
- }, this)
- : Array.isArray(e)
- ? e.forEach(function (t) {
- this.append(t[0], t[1]);
- }, this)
- : e &&
- Object.getOwnPropertyNames(e).forEach(function (t) {
- this.append(t, e[t]);
- }, this);
- }
- Pr.prototype.append = function (e, t) {
- (e = Qu(e)), (t = u1(t));
- var n = this.map[e];
- this.map[e] = n ? n + ', ' + t : t;
- };
- Pr.prototype.delete = function (e) {
- delete this.map[Qu(e)];
- };
- Pr.prototype.get = function (e) {
- return (e = Qu(e)), this.has(e) ? this.map[e] : null;
- };
- Pr.prototype.has = function (e) {
- return this.map.hasOwnProperty(Qu(e));
- };
- Pr.prototype.set = function (e, t) {
- this.map[Qu(e)] = u1(t);
- };
- Pr.prototype.forEach = function (e, t) {
- for (var n in this.map)
- this.map.hasOwnProperty(n) && e.call(t, this.map[n], n, this);
- };
- Pr.prototype.keys = function () {
- var e = [];
- return (
- this.forEach(function (t, n) {
- e.push(n);
- }),
- f1(e)
- );
- };
- Pr.prototype.values = function () {
- var e = [];
- return (
- this.forEach(function (t) {
- e.push(t);
- }),
- f1(e)
- );
- };
- Pr.prototype.entries = function () {
- var e = [];
- return (
- this.forEach(function (t, n) {
- e.push([n, t]);
- }),
- f1(e)
- );
- };
- yo.iterable && (Pr.prototype[Symbol.iterator] = Pr.prototype.entries);
- function $m(e) {
- if (e.bodyUsed) return Promise.reject(new TypeError('Already read'));
- e.bodyUsed = !0;
- }
- function o$(e) {
- return new Promise(function (t, n) {
- (e.onload = function () {
- t(e.result);
- }),
- (e.onerror = function () {
- n(e.error);
- });
- });
- }
- function Vie(e) {
- var t = new FileReader(),
- n = o$(t);
- return t.readAsArrayBuffer(e), n;
- }
- function Kie(e) {
- var t = new FileReader(),
- n = o$(t);
- return t.readAsText(e), n;
- }
- function qie(e) {
- for (
- var t = new Uint8Array(e), n = new Array(t.length), r = 0;
- r < t.length;
- r++
- )
- n[r] = String.fromCharCode(t[r]);
- return n.join('');
- }
- function f_(e) {
- if (e.slice) return e.slice(0);
- var t = new Uint8Array(e.byteLength);
- return t.set(new Uint8Array(e)), t.buffer;
- }
- function i$() {
- return (
- (this.bodyUsed = !1),
- (this._initBody = function (e) {
- (this.bodyUsed = this.bodyUsed),
- (this._bodyInit = e),
- e
- ? typeof e == 'string'
- ? (this._bodyText = e)
- : yo.blob && Blob.prototype.isPrototypeOf(e)
- ? (this._bodyBlob = e)
- : yo.formData && FormData.prototype.isPrototypeOf(e)
- ? (this._bodyFormData = e)
- : yo.searchParams && URLSearchParams.prototype.isPrototypeOf(e)
- ? (this._bodyText = e.toString())
- : yo.arrayBuffer && yo.blob && jie(e)
- ? ((this._bodyArrayBuffer = f_(e.buffer)),
- (this._bodyInit = new Blob([this._bodyArrayBuffer])))
- : yo.arrayBuffer &&
- (ArrayBuffer.prototype.isPrototypeOf(e) || Wie(e))
- ? (this._bodyArrayBuffer = f_(e))
- : (this._bodyText = e = Object.prototype.toString.call(e))
- : (this._bodyText = ''),
- this.headers.get('content-type') ||
- (typeof e == 'string'
- ? this.headers.set('content-type', 'text/plain;charset=UTF-8')
- : this._bodyBlob && this._bodyBlob.type
- ? this.headers.set('content-type', this._bodyBlob.type)
- : yo.searchParams &&
- URLSearchParams.prototype.isPrototypeOf(e) &&
- this.headers.set(
- 'content-type',
- 'application/x-www-form-urlencoded;charset=UTF-8'
- ));
- }),
- yo.blob &&
- ((this.blob = function () {
- var e = $m(this);
- if (e) return e;
- if (this._bodyBlob) return Promise.resolve(this._bodyBlob);
- if (this._bodyArrayBuffer)
- return Promise.resolve(new Blob([this._bodyArrayBuffer]));
- if (this._bodyFormData)
- throw new Error('could not read FormData body as blob');
- return Promise.resolve(new Blob([this._bodyText]));
- }),
- (this.arrayBuffer = function () {
- if (this._bodyArrayBuffer) {
- var e = $m(this);
- return (
- e ||
- (ArrayBuffer.isView(this._bodyArrayBuffer)
- ? Promise.resolve(
- this._bodyArrayBuffer.buffer.slice(
- this._bodyArrayBuffer.byteOffset,
- this._bodyArrayBuffer.byteOffset +
- this._bodyArrayBuffer.byteLength
- )
- )
- : Promise.resolve(this._bodyArrayBuffer))
- );
- } else return this.blob().then(Vie);
- })),
- (this.text = function () {
- var e = $m(this);
- if (e) return e;
- if (this._bodyBlob) return Kie(this._bodyBlob);
- if (this._bodyArrayBuffer)
- return Promise.resolve(qie(this._bodyArrayBuffer));
- if (this._bodyFormData)
- throw new Error('could not read FormData body as text');
- return Promise.resolve(this._bodyText);
- }),
- yo.formData &&
- (this.formData = function () {
- return this.text().then(Xie);
- }),
- (this.json = function () {
- return this.text().then(JSON.parse);
- }),
- this
- );
- }
- var Yie = ['DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT'];
- function Gie(e) {
- var t = e.toUpperCase();
- return Yie.indexOf(t) > -1 ? t : e;
- }
- function Rs(e, t) {
- if (!(this instanceof Rs))
- throw new TypeError(
- 'Please use the "new" operator, this DOM object constructor cannot be called as a function.'
- );
- t = t || {};
- var n = t.body;
- if (e instanceof Rs) {
- if (e.bodyUsed) throw new TypeError('Already read');
- (this.url = e.url),
- (this.credentials = e.credentials),
- t.headers || (this.headers = new Pr(e.headers)),
- (this.method = e.method),
- (this.mode = e.mode),
- (this.signal = e.signal),
- !n && e._bodyInit != null && ((n = e._bodyInit), (e.bodyUsed = !0));
- } else this.url = String(e);
- if (
- ((this.credentials = t.credentials || this.credentials || 'same-origin'),
- (t.headers || !this.headers) && (this.headers = new Pr(t.headers)),
- (this.method = Gie(t.method || this.method || 'GET')),
- (this.mode = t.mode || this.mode || null),
- (this.signal = t.signal || this.signal),
- (this.referrer = null),
- (this.method === 'GET' || this.method === 'HEAD') && n)
- )
- throw new TypeError('Body not allowed for GET or HEAD requests');
- if (
- (this._initBody(n),
- (this.method === 'GET' || this.method === 'HEAD') &&
- (t.cache === 'no-store' || t.cache === 'no-cache'))
- ) {
- var r = /([?&])_=[^&]*/;
- if (r.test(this.url))
- this.url = this.url.replace(r, '$1_=' + new Date().getTime());
- else {
- var o = /\?/;
- this.url += (o.test(this.url) ? '&' : '?') + '_=' + new Date().getTime();
- }
- }
- }
- Rs.prototype.clone = function () {
- return new Rs(this, { body: this._bodyInit });
- };
- function Xie(e) {
- var t = new FormData();
- return (
- e
- .trim()
- .split('&')
- .forEach(function (n) {
- if (n) {
- var r = n.split('='),
- o = r.shift().replace(/\+/g, ' '),
- i = r.join('=').replace(/\+/g, ' ');
- t.append(decodeURIComponent(o), decodeURIComponent(i));
- }
- }),
- t
- );
- }
- function Zie(e) {
- var t = new Pr(),
- n = e.replace(/\r?\n[\t ]+/g, ' ');
- return (
- n
- .split('\r')
- .map(function (r) {
- return r.indexOf(`
- `) === 0
- ? r.substr(1, r.length)
- : r;
- })
- .forEach(function (r) {
- var o = r.split(':'),
- i = o.shift().trim();
- if (i) {
- var a = o.join(':').trim();
- t.append(i, a);
- }
- }),
- t
- );
- }
- i$.call(Rs.prototype);
- function Gi(e, t) {
- if (!(this instanceof Gi))
- throw new TypeError(
- 'Please use the "new" operator, this DOM object constructor cannot be called as a function.'
- );
- t || (t = {}),
- (this.type = 'default'),
- (this.status = t.status === void 0 ? 200 : t.status),
- (this.ok = this.status >= 200 && this.status < 300),
- (this.statusText = t.statusText === void 0 ? '' : '' + t.statusText),
- (this.headers = new Pr(t.headers)),
- (this.url = t.url || ''),
- this._initBody(e);
- }
- i$.call(Gi.prototype);
- Gi.prototype.clone = function () {
- return new Gi(this._bodyInit, {
- status: this.status,
- statusText: this.statusText,
- headers: new Pr(this.headers),
- url: this.url
- });
- };
- Gi.error = function () {
- var e = new Gi(null, { status: 0, statusText: '' });
- return (e.type = 'error'), e;
- };
- var Qie = [301, 302, 303, 307, 308];
- Gi.redirect = function (e, t) {
- if (Qie.indexOf(t) === -1) throw new RangeError('Invalid status code');
- return new Gi(null, { status: t, headers: { location: e } });
- };
- var ls = Vr.DOMException;
- try {
- new ls();
- } catch (e) {
- (ls = function (t, n) {
- (this.message = t), (this.name = n);
- var r = Error(t);
- this.stack = r.stack;
- }),
- (ls.prototype = Object.create(Error.prototype)),
- (ls.prototype.constructor = ls);
- }
- function a$(e, t) {
- return new Promise(function (n, r) {
- var o = new Rs(e, t);
- if (o.signal && o.signal.aborted) return r(new ls('Aborted', 'AbortError'));
- var i = new XMLHttpRequest();
- function a() {
- i.abort();
- }
- (i.onload = function () {
- var c = {
- status: i.status,
- statusText: i.statusText,
- headers: Zie(i.getAllResponseHeaders() || '')
- };
- c.url =
- 'responseURL' in i ? i.responseURL : c.headers.get('X-Request-URL');
- var d = 'response' in i ? i.response : i.responseText;
- setTimeout(function () {
- n(new Gi(d, c));
- }, 0);
- }),
- (i.onerror = function () {
- setTimeout(function () {
- r(new TypeError('Network request failed'));
- }, 0);
- }),
- (i.ontimeout = function () {
- setTimeout(function () {
- r(new TypeError('Network request failed'));
- }, 0);
- }),
- (i.onabort = function () {
- setTimeout(function () {
- r(new ls('Aborted', 'AbortError'));
- }, 0);
- });
- function s(c) {
- try {
- return c === '' && Vr.location.href ? Vr.location.href : c;
- } catch (d) {
- return c;
- }
- }
- i.open(o.method, s(o.url), !0),
- o.credentials === 'include'
- ? (i.withCredentials = !0)
- : o.credentials === 'omit' && (i.withCredentials = !1),
- 'responseType' in i &&
- (yo.blob
- ? (i.responseType = 'blob')
- : yo.arrayBuffer &&
- o.headers.get('Content-Type') &&
- o.headers
- .get('Content-Type')
- .indexOf('application/octet-stream') !== -1 &&
- (i.responseType = 'arraybuffer')),
- t && typeof t.headers == 'object' && !(t.headers instanceof Pr)
- ? Object.getOwnPropertyNames(t.headers).forEach(function (c) {
- i.setRequestHeader(c, u1(t.headers[c]));
- })
- : o.headers.forEach(function (c, d) {
- i.setRequestHeader(d, c);
- }),
- o.signal &&
- (o.signal.addEventListener('abort', a),
- (i.onreadystatechange = function () {
- i.readyState === 4 && o.signal.removeEventListener('abort', a);
- })),
- i.send(typeof o._bodyInit > 'u' ? null : o._bodyInit);
- });
- }
- a$.polyfill = !0;
- Vr.fetch ||
- ((Vr.fetch = a$), (Vr.Headers = Pr), (Vr.Request = Rs), (Vr.Response = Gi));
- self.fetch.bind(self);
- function h_(e, t) {
- var n = Object.keys(e);
- if (Object.getOwnPropertySymbols) {
- var r = Object.getOwnPropertySymbols(e);
- t &&
- (r = r.filter(function (o) {
- return Object.getOwnPropertyDescriptor(e, o).enumerable;
- })),
- n.push.apply(n, r);
- }
- return n;
- }
- function xo(e) {
- for (var t = 1; t < arguments.length; t++) {
- var n = arguments[t] != null ? arguments[t] : {};
- t % 2
- ? h_(Object(n), !0).forEach(function (r) {
- Jie(e, r, n[r]);
- })
- : Object.getOwnPropertyDescriptors
- ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n))
- : h_(Object(n)).forEach(function (r) {
- Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
- });
- }
- return e;
- }
- function cl(e) {
- '@babel/helpers - typeof';
- return (
- typeof Symbol == 'function' && typeof Symbol.iterator == 'symbol'
- ? (cl = function (t) {
- return typeof t;
- })
- : (cl = function (t) {
- return t &&
- typeof Symbol == 'function' &&
- t.constructor === Symbol &&
- t !== Symbol.prototype
- ? 'symbol'
- : typeof t;
- }),
- cl(e)
- );
- }
- function Ju(e, t) {
- if (!(e instanceof t))
- throw new TypeError('Cannot call a class as a function');
- }
- function v_(e, t) {
- for (var n = 0; n < t.length; n++) {
- var r = t[n];
- (r.enumerable = r.enumerable || !1),
- (r.configurable = !0),
- 'value' in r && (r.writable = !0),
- Object.defineProperty(e, r.key, r);
- }
- }
- function h1(e, t, n) {
- return t && v_(e.prototype, t), n && v_(e, n), e;
- }
- function Jie(e, t, n) {
- return (
- t in e
- ? Object.defineProperty(e, t, {
- value: n,
- enumerable: !0,
- configurable: !0,
- writable: !0
- })
- : (e[t] = n),
- e
- );
- }
- function l$(e, t) {
- if (typeof t != 'function' && t !== null)
- throw new TypeError('Super expression must either be null or a function');
- (e.prototype = Object.create(t && t.prototype, {
- constructor: { value: e, writable: !0, configurable: !0 }
- })),
- t && Eu(e, t);
- }
- function Au(e) {
- return (
- (Au = Object.setPrototypeOf
- ? Object.getPrototypeOf
- : function (n) {
- return n.__proto__ || Object.getPrototypeOf(n);
- }),
- Au(e)
- );
- }
- function Eu(e, t) {
- return (
- (Eu =
- Object.setPrototypeOf ||
- function (r, o) {
- return (r.__proto__ = o), r;
- }),
- Eu(e, t)
- );
- }
- function s$() {
- if (typeof Reflect > 'u' || !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 Hh(e, t, n) {
- return (
- s$()
- ? (Hh = Reflect.construct)
- : (Hh = function (o, i, a) {
- var s = [null];
- s.push.apply(s, i);
- var c = Function.bind.apply(o, s),
- d = new c();
- return a && Eu(d, a.prototype), d;
- }),
- Hh.apply(null, arguments)
- );
- }
- function eae(e) {
- return Function.toString.call(e).indexOf('[native code]') !== -1;
- }
- function bv(e) {
- var t = typeof Map == 'function' ? new Map() : void 0;
- return (
- (bv = function (r) {
- if (r === null || !eae(r)) return r;
- if (typeof r != 'function')
- throw new TypeError(
- 'Super expression must either be null or a function'
- );
- if (typeof t < 'u') {
- if (t.has(r)) return t.get(r);
- t.set(r, o);
- }
- function o() {
- return Hh(r, arguments, Au(this).constructor);
- }
- return (
- (o.prototype = Object.create(r.prototype, {
- constructor: {
- value: o,
- enumerable: !1,
- writable: !0,
- configurable: !0
- }
- })),
- Eu(o, r)
- );
- }),
- bv(e)
- );
- }
- function tae(e) {
- if (e === void 0)
- throw new ReferenceError(
- "this hasn't been initialised - super() hasn't been called"
- );
- return e;
- }
- function nae(e, t) {
- if (t && (typeof t == 'object' || typeof t == 'function')) return t;
- if (t !== void 0)
- throw new TypeError(
- 'Derived constructors may only return object or undefined'
- );
- return tae(e);
- }
- function c$(e) {
- var t = s$();
- return function () {
- var r = Au(e),
- o;
- if (t) {
- var i = Au(this).constructor;
- o = Reflect.construct(r, arguments, i);
- } else o = r.apply(this, arguments);
- return nae(this, o);
- };
- }
- function Li(e) {
- return rae(e) || oae(e) || iae(e) || aae();
- }
- function rae(e) {
- if (Array.isArray(e)) return b0(e);
- }
- function oae(e) {
- if (
- (typeof Symbol < 'u' && e[Symbol.iterator] != null) ||
- e['@@iterator'] != null
- )
- return Array.from(e);
- }
- function iae(e, t) {
- if (e) {
- if (typeof e == 'string') return b0(e, t);
- var n = Object.prototype.toString.call(e).slice(8, -1);
- if (
- (n === 'Object' && e.constructor && (n = e.constructor.name),
- n === 'Map' || n === 'Set')
- )
- return Array.from(e);
- if (n === 'Arguments' || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
- return b0(e, t);
- }
- }
- function b0(e, t) {
- (t == null || t > e.length) && (t = e.length);
- for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n];
- return r;
- }
- function aae() {
- throw new TypeError(`Invalid attempt to spread non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
- }
- function lae(e) {
- if (!Array.isArray(e)) throw new TypeError('Middlewares must be an array!');
- for (var t = e.length, n = 0; n < t; n++)
- if (typeof e[n] != 'function')
- throw new TypeError('Middleware must be componsed of function');
- return function (o, i) {
- var a = -1;
- function s(c) {
- if (c <= a)
- return Promise.reject(
- new Error(
- 'next() should not be called multiple times in one middleware!'
- )
- );
- a = c;
- var d = e[c] || i;
- if (!d) return Promise.resolve();
- try {
- return Promise.resolve(
- d(o, function () {
- return s(c + 1);
- })
- );
- } catch (f) {
- return Promise.reject(f);
- }
- }
- return s(0);
- };
- }
- var bi = (function () {
- function e(t) {
- if ((Ju(this, e), !Array.isArray(t)))
- throw new TypeError('Default middlewares must be an array!');
- (this.defaultMiddlewares = Li(t)), (this.middlewares = []);
- }
- return (
- h1(e, [
- {
- key: 'use',
- value: function (n) {
- var r =
- arguments.length > 1 && arguments[1] !== void 0
- ? arguments[1]
- : { global: !1, core: !1, defaultInstance: !1 },
- o = !1,
- i = !1,
- a = !1;
- if (
- (typeof r == 'number'
- ? (process && process.env, (o = !0), (i = !1))
- : cl(r) === 'object' &&
- r &&
- ((i = r.global || !1),
- (o = r.core || !1),
- (a = r.defaultInstance || !1)),
- i)
- ) {
- e.globalMiddlewares.splice(
- e.globalMiddlewares.length - e.defaultGlobalMiddlewaresLength,
- 0,
- n
- );
- return;
- }
- if (o) {
- e.coreMiddlewares.splice(
- e.coreMiddlewares.length - e.defaultCoreMiddlewaresLength,
- 0,
- n
- );
- return;
- }
- if (a) {
- this.defaultMiddlewares.push(n);
- return;
- }
- this.middlewares.push(n);
- }
- },
- {
- key: 'execute',
- value: function () {
- var n =
- arguments.length > 0 && arguments[0] !== void 0
- ? arguments[0]
- : null,
- r = lae(
- [].concat(
- Li(this.middlewares),
- Li(this.defaultMiddlewares),
- Li(e.globalMiddlewares),
- Li(e.coreMiddlewares)
- )
- );
- return r(n);
- }
- }
- ]),
- e
- );
- })();
- bi.globalMiddlewares = [];
- bi.defaultGlobalMiddlewaresLength = 0;
- bi.coreMiddlewares = [];
- bi.defaultCoreMiddlewaresLength = 0;
- var sae = (function () {
- function e(t) {
- Ju(this, e),
- (this.cache = new Map()),
- (this.timer = {}),
- this.extendOptions(t);
- }
- return (
- h1(e, [
- {
- key: 'extendOptions',
- value: function (n) {
- this.maxCache = n.maxCache || 0;
- }
- },
- {
- key: 'get',
- value: function (n) {
- return this.cache.get(JSON.stringify(n));
- }
- },
- {
- key: 'set',
- value: function (n, r) {
- var o = this,
- i =
- arguments.length > 2 && arguments[2] !== void 0
- ? arguments[2]
- : 6e4;
- if (this.maxCache > 0 && this.cache.size >= this.maxCache) {
- var a = Li(this.cache.keys())[0];
- this.cache.delete(a),
- this.timer[a] && clearTimeout(this.timer[a]);
- }
- var s = JSON.stringify(n);
- this.cache.set(s, r),
- i > 0 &&
- (this.timer[s] = setTimeout(function () {
- o.cache.delete(s), delete o.timer[s];
- }, i));
- }
- },
- {
- key: 'delete',
- value: function (n) {
- var r = JSON.stringify(n);
- return delete this.timer[r], this.cache.delete(r);
- }
- },
- {
- key: 'clear',
- value: function () {
- return (this.timer = {}), this.cache.clear();
- }
- }
- ]),
- e
- );
- })(),
- d$ = (function (e) {
- l$(n, e);
- var t = c$(n);
- function n(r, o) {
- var i,
- a =
- arguments.length > 2 && arguments[2] !== void 0
- ? arguments[2]
- : 'RequestError';
- return (
- Ju(this, n),
- (i = t.call(this, r)),
- (i.name = 'RequestError'),
- (i.request = o),
- (i.type = a),
- i
- );
- }
- return n;
- })(bv(Error)),
- Vd = (function (e) {
- l$(n, e);
- var t = c$(n);
- function n(r, o, i, a) {
- var s,
- c =
- arguments.length > 4 && arguments[4] !== void 0
- ? arguments[4]
- : 'ResponseError';
- return (
- Ju(this, n),
- (s = t.call(this, o || r.statusText)),
- (s.name = 'ResponseError'),
- (s.data = i),
- (s.response = r),
- (s.request = a),
- (s.type = c),
- s
- );
- }
- return n;
- })(bv(Error));
- function cae(e) {
- return new Promise(function (t, n) {
- var r = new FileReader();
- (r.onload = function () {
- t(r.result);
- }),
- (r.onerror = n),
- r.readAsText(e, 'GBK');
- });
- }
- function p_(e) {
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1,
- n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null,
- r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : null;
- try {
- return JSON.parse(e);
- } catch (o) {
- if (t) throw new Vd(n, 'JSON.parse fail', e, r, 'ParseError');
- }
- return e;
- }
- function dae(e, t, n) {
- return new Promise(function (r, o) {
- setTimeout(function () {
- o(new d$(t || 'timeout of '.concat(e, 'ms exceeded'), n, 'Timeout'));
- }, e);
- });
- }
- function g_(e) {
- return new Promise(function (t, n) {
- e.cancelToken &&
- e.cancelToken.promise.then(function (r) {
- n(r);
- });
- });
- }
- var uae = Object.prototype.toString;
- function u$() {
- var e;
- return (
- typeof process < 'u' &&
- uae.call(process) === '[object process]' &&
- (e = 'NODE'),
- typeof XMLHttpRequest < 'u' && (e = 'BROWSER'),
- e
- );
- }
- function y0(e) {
- return (
- cl(e) === 'object' && Object.prototype.toString.call(e) === '[object Array]'
- );
- }
- function f$(e) {
- return typeof URLSearchParams < 'u' && e instanceof URLSearchParams;
- }
- function fae(e) {
- return (
- cl(e) === 'object' && Object.prototype.toString.call(e) === '[object Date]'
- );
- }
- function m_(e) {
- return e !== null && cl(e) === 'object';
- }
- function b_(e, t) {
- if (e)
- if ((cl(e) !== 'object' && (e = [e]), y0(e)))
- for (var n = 0; n < e.length; n++) t.call(null, e[n], n, e);
- else
- for (var r in e)
- Object.prototype.hasOwnProperty.call(e, r) && t.call(null, e[r], r, e);
- }
- function y_(e) {
- return f$(e)
- ? r$.parse(e.toString(), { strictNullHandling: !0 })
- : typeof e == 'string'
- ? [e]
- : e;
- }
- function x0(e) {
- return r$.stringify(e, { arrayFormat: 'repeat', strictNullHandling: !0 });
- }
- function h$(e, t) {
- return xo(
- xo(xo({}, e), t),
- {},
- {
- headers: xo(xo({}, e.headers), t.headers),
- params: xo(xo({}, y_(e.params)), y_(t.params)),
- method: (t.method || e.method || 'get').toLowerCase()
- }
- );
- }
- var hae = function (t) {
- var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {},
- r = n.prefix,
- o = n.suffix;
- return (
- r && (t = ''.concat(r).concat(t)),
- o && (t = ''.concat(t).concat(o)),
- { url: t, options: n }
- );
- };
- function vae(e, t) {
- var n = t.method,
- r = n === void 0 ? 'get' : n;
- return r.toLowerCase() === 'get';
- }
- function pae(e, t) {
- if (!e) return t();
- var n = e.req;
- n = n === void 0 ? {} : n;
- var r = n.options,
- o = r === void 0 ? {} : r,
- i = n.url,
- a = i === void 0 ? '' : i,
- s = e.cache,
- c = e.responseInterceptors,
- d = o.timeout,
- f = d === void 0 ? 0 : d,
- v = o.timeoutMessage,
- p = o.__umiRequestCoreType__,
- m = p === void 0 ? 'normal' : p,
- g = o.useCache,
- w = g === void 0 ? !1 : g,
- x = o.method,
- y = x === void 0 ? 'get' : x,
- C = o.params,
- R = o.ttl,
- S = o.validateCache,
- _ = S === void 0 ? vae : S;
- if (m !== 'normal') return process && process.env, t();
- var P = fetch;
- if (!P) throw new Error('Global fetch not exist!');
- var T = u$() === 'BROWSER',
- A = _(a, o) && w && T;
- if (A) {
- var z = s.get({ url: a, params: C, method: y });
- if (z) return (z = z.clone()), (z.useCache = !0), (e.res = z), t();
- }
- var k;
- return (
- f > 0
- ? (k = Promise.race([g_(o), P(a, o), dae(f, v, e.req)]))
- : (k = Promise.race([g_(o), P(a, o)])),
- c.forEach(function (M) {
- k = k.then(function (E) {
- var D = typeof E.clone == 'function' ? E.clone() : E;
- return M(D, o);
- });
- }),
- k.then(function (M) {
- if (A && M.status === 200) {
- var E = M.clone();
- (E.useCache = !0), s.set({ url: a, params: C, method: y }, E, R);
- }
- return (e.res = M), t();
- })
- );
- }
- function gae(e, t) {
- var n;
- return t()
- .then(function () {
- if (e) {
- var r = e.res,
- o = r === void 0 ? {} : r,
- i = e.req,
- a = i === void 0 ? {} : i,
- s = a || {},
- c = s.options;
- c = c === void 0 ? {} : c;
- var d = c.responseType,
- f = d === void 0 ? 'json' : d,
- v = c.charset,
- p = v === void 0 ? 'utf8' : v;
- c.getResponse;
- var m = c.throwErrIfParseFail,
- g = m === void 0 ? !1 : m,
- w = c.parseResponse,
- x = w === void 0 ? !0 : w;
- if (x && !(!o || !o.clone)) {
- if (
- ((n = u$() === 'BROWSER' ? o.clone() : o),
- (n.useCache = o.useCache || !1),
- p === 'gbk')
- )
- try {
- return o
- .blob()
- .then(cae)
- .then(function (y) {
- return p_(y, !1, n, a);
- });
- } catch (y) {
- throw new Vd(n, y.message, null, a, 'ParseError');
- }
- else if (f === 'json')
- return o.text().then(function (y) {
- return p_(y, g, n, a);
- });
- try {
- return o[f]();
- } catch (y) {
- throw new Vd(n, 'responseType not support', null, a, 'ParseError');
- }
- }
- }
- })
- .then(function (r) {
- if (e) {
- e.res;
- var o = e.req,
- i = o === void 0 ? {} : o,
- a = i || {},
- s = a.options;
- s = s === void 0 ? {} : s;
- var c = s.getResponse,
- d = c === void 0 ? !1 : c;
- if (n) {
- if (n.status >= 200 && n.status < 300) {
- if (d) {
- e.res = { data: r, response: n };
- return;
- }
- e.res = r;
- return;
- }
- throw new Vd(n, 'http error', r, i, 'HttpError');
- }
- }
- })
- .catch(function (r) {
- if (r instanceof d$ || r instanceof Vd) throw r;
- var o = e.req,
- i = e.res;
- throw (
- ((r.request = r.request || o),
- (r.response = r.response || i),
- (r.type = r.type || r.name),
- (r.data = r.data || void 0),
- r)
- );
- });
- }
- function mae(e, t) {
- if (!e) return t();
- var n = e.req;
- n = n === void 0 ? {} : n;
- var r = n.options,
- o = r === void 0 ? {} : r,
- i = o.method,
- a = i === void 0 ? 'get' : i;
- if (['post', 'put', 'patch', 'delete'].indexOf(a.toLowerCase()) === -1)
- return t();
- var s = o.requestType,
- c = s === void 0 ? 'json' : s,
- d = o.data;
- if (d) {
- var f = Object.prototype.toString.call(d);
- f === '[object Object]' || f === '[object Array]'
- ? c === 'json'
- ? ((o.headers = xo(
- {
- Accept: 'application/json',
- 'Content-Type': 'application/json;charset=UTF-8'
- },
- o.headers
- )),
- (o.body = JSON.stringify(d)))
- : c === 'form' &&
- ((o.headers = xo(
- {
- Accept: 'application/json',
- 'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'
- },
- o.headers
- )),
- (o.body = x0(d)))
- : ((o.headers = xo({ Accept: 'application/json' }, o.headers)),
- (o.body = d));
- }
- return (e.req.options = o), t();
- }
- function bae(e, t) {
- var n, r;
- if (e)
- if (t) n = t(e);
- else if (f$(e)) n = e.toString();
- else if (y0(e))
- (r = []),
- b_(e, function (i) {
- i === null || typeof i > 'u'
- ? r.push(i)
- : r.push(m_(i) ? JSON.stringify(i) : i);
- }),
- (n = x0(r));
- else {
- (r = {}),
- b_(e, function (i, a) {
- var s = i;
- i === null || typeof i > 'u'
- ? (r[a] = i)
- : fae(i)
- ? (s = i.toISOString())
- : y0(i)
- ? (s = i)
- : m_(i) && (s = JSON.stringify(i)),
- (r[a] = s);
- });
- var o = x0(r);
- n = o;
- }
- return n;
- }
- function yae(e, t) {
- if (!e) return t();
- var n = e.req;
- n = n === void 0 ? {} : n;
- var r = n.options,
- o = r === void 0 ? {} : r,
- i = o.paramsSerializer,
- a = o.params,
- s = e.req;
- s = s === void 0 ? {} : s;
- var c = s.url,
- d = c === void 0 ? '' : c;
- (o.method = o.method ? o.method.toUpperCase() : 'GET'),
- (o.credentials = o.credentials || 'same-origin');
- var f = bae(a, i);
- if (((e.req.originUrl = d), f)) {
- var v = d.indexOf('?') !== -1 ? '&' : '?';
- e.req.url = ''.concat(d).concat(v).concat(f);
- }
- return (e.req.options = o), t();
- }
- var v$ = [mae, yae, gae],
- p$ = [pae];
- bi.globalMiddlewares = v$;
- bi.defaultGlobalMiddlewaresLength = v$.length;
- bi.coreMiddlewares = p$;
- bi.defaultCoreMiddlewaresLength = p$.length;
- var cu = (function () {
- function e(t) {
- Ju(this, e),
- (this.onion = new bi([])),
- (this.fetchIndex = 0),
- (this.mapCache = new sae(t)),
- (this.initOptions = t),
- (this.instanceRequestInterceptors = []),
- (this.instanceResponseInterceptors = []);
- }
- return (
- h1(
- e,
- [
- {
- key: 'use',
- value: function (n) {
- var r =
- arguments.length > 1 && arguments[1] !== void 0
- ? arguments[1]
- : { global: !1, core: !1 };
- return this.onion.use(n, r), this;
- }
- },
- {
- key: 'extendOptions',
- value: function (n) {
- (this.initOptions = h$(this.initOptions, n)),
- this.mapCache.extendOptions(n);
- }
- },
- {
- key: 'dealRequestInterceptors',
- value: function (n) {
- var r = function (a, s) {
- return a.then(function () {
- var c =
- arguments.length > 0 && arguments[0] !== void 0
- ? arguments[0]
- : {};
- return (
- (n.req.url = c.url || n.req.url),
- (n.req.options = c.options || n.req.options),
- s(n.req.url, n.req.options)
- );
- });
- },
- o = [].concat(
- Li(e.requestInterceptors),
- Li(this.instanceRequestInterceptors)
- );
- return o.reduce(r, Promise.resolve()).then(function () {
- var i =
- arguments.length > 0 && arguments[0] !== void 0
- ? arguments[0]
- : {};
- return (
- (n.req.url = i.url || n.req.url),
- (n.req.options = i.options || n.req.options),
- Promise.resolve()
- );
- });
- }
- },
- {
- key: 'request',
- value: function (n, r) {
- var o = this,
- i = this.onion,
- a = {
- req: { url: n, options: xo(xo({}, r), {}, { url: n }) },
- res: null,
- cache: this.mapCache,
- responseInterceptors: [].concat(
- Li(e.responseInterceptors),
- Li(this.instanceResponseInterceptors)
- )
- };
- if (typeof n != 'string') throw new Error('url MUST be a string');
- return new Promise(function (s, c) {
- o.dealRequestInterceptors(a)
- .then(function () {
- return i.execute(a);
- })
- .then(function () {
- s(a.res);
- })
- .catch(function (d) {
- var f = a.req.options.errorHandler;
- if (f)
- try {
- var v = f(d);
- s(v);
- } catch (p) {
- c(p);
- }
- else c(d);
- });
- });
- }
- }
- ],
- [
- {
- key: 'requestUse',
- value: function (n) {
- var r =
- arguments.length > 1 && arguments[1] !== void 0
- ? arguments[1]
- : { global: !0 };
- if (typeof n != 'function')
- throw new TypeError('Interceptor must be function!');
- r.global
- ? e.requestInterceptors.push(n)
- : this.instanceRequestInterceptors.push(n);
- }
- },
- {
- key: 'responseUse',
- value: function (n) {
- var r =
- arguments.length > 1 && arguments[1] !== void 0
- ? arguments[1]
- : { global: !0 };
- if (typeof n != 'function')
- throw new TypeError('Interceptor must be function!');
- r.global
- ? e.responseInterceptors.push(n)
- : this.instanceResponseInterceptors.push(n);
- }
- }
- ]
- ),
- e
- );
- })();
- cu.requestInterceptors = [hae];
- cu.responseInterceptors = [];
- function rp(e) {
- this.message = e;
- }
- rp.prototype.toString = function () {
- return this.message ? 'Cancel: '.concat(this.message) : 'Cancel';
- };
- rp.prototype.__CANCEL__ = !0;
- function yv(e) {
- if (typeof e != 'function')
- throw new TypeError('executor must be a function.');
- var t;
- this.promise = new Promise(function (o) {
- t = o;
- });
- var n = this;
- e(function (o) {
- n.reason || ((n.reason = new rp(o)), t(n.reason));
- });
- }
- yv.prototype.throwIfRequested = function () {
- if (this.reason) throw this.reason;
- };
- yv.source = function () {
- var t,
- n = new yv(function (o) {
- t = o;
- });
- return { token: n, cancel: t };
- };
- function xae(e) {
- return !!(e && e.__CANCEL__);
- }
- var v1 = function () {
- var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {},
- n = new cu(t),
- r = function (a) {
- var s =
- arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {},
- c = h$(n.initOptions, s);
- return n.request(a, c);
- };
- (r.use = n.use.bind(n)),
- (r.fetchIndex = n.fetchIndex),
- (r.interceptors = {
- request: { use: cu.requestUse.bind(n) },
- response: { use: cu.responseUse.bind(n) }
- });
- var o = ['get', 'post', 'delete', 'put', 'patch', 'head', 'options', 'rpc'];
- return (
- o.forEach(function (i) {
- r[i] = function (a, s) {
- return r(a, xo(xo({}, s), {}, { method: i }));
- };
- }),
- (r.Cancel = rp),
- (r.CancelToken = yv),
- (r.isCancel = xae),
- (r.extendOptions = n.extendOptions.bind(n)),
- (r.middlewares = {
- instance: n.onion.middlewares,
- defaultInstance: n.onion.defaultMiddlewares,
- global: bi.globalMiddlewares,
- core: bi.coreMiddlewares
- }),
- r
- );
- },
- wae = function (t) {
- return v1(t);
- };
- v1({ parseResponse: !1 });
- v1({});
- var xv = { exports: {} };
- xv.exports;
- (function (e, t) {
- var n = 9007199254740991,
- r = '[object Arguments]',
- o = '[object Function]',
- i = '[object GeneratorFunction]',
- a = '[object Map]',
- s = '[object Object]',
- c = '[object Promise]',
- d = '[object Set]',
- f = '[object WeakMap]',
- v = '[object DataView]',
- p = /[\\^$.*+?()[\]{}|]/g,
- m = /^\[object .+?Constructor\]$/,
- g = typeof Nn == 'object' && Nn && Nn.Object === Object && Nn,
- w = typeof self == 'object' && self && self.Object === Object && self,
- x = g || w || Function('return this')(),
- y = t && !t.nodeType && t,
- C = y && !0 && e && !e.nodeType && e,
- R = C && C.exports === y;
- function S(Me, ut) {
- return Me == null ? void 0 : Me[ut];
- }
- function _(Me) {
- var ut = !1;
- if (Me != null && typeof Me.toString != 'function')
- try {
- ut = !!(Me + '');
- } catch (wt) {}
- return ut;
- }
- function P(Me, ut) {
- return function (wt) {
- return Me(ut(wt));
- };
- }
- var T = Function.prototype,
- A = Object.prototype,
- z = x['__core-js_shared__'],
- k = (function () {
- var Me = /[^.]+$/.exec((z && z.keys && z.keys.IE_PROTO) || '');
- return Me ? 'Symbol(src)_1.' + Me : '';
- })(),
- M = T.toString,
- E = A.hasOwnProperty,
- D = A.toString,
- L = RegExp(
- '^' +
- M.call(E)
- .replace(p, '\\$&')
- .replace(
- /hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,
- '$1.*?'
- ) +
- '$'
- ),
- j = R ? x.Buffer : void 0,
- B = A.propertyIsEnumerable,
- q = j ? j.isBuffer : void 0,
- G = P(Object.keys, Object),
- ne = W(x, 'DataView'),
- X = W(x, 'Map'),
- J = W(x, 'Promise'),
- re = W(x, 'Set'),
- ce = W(x, 'WeakMap'),
- pe = !B.call({ valueOf: 1 }, 'valueOf'),
- Fe = oe(ne),
- Ie = oe(X),
- le = oe(J),
- me = oe(re),
- he = oe(ce);
- function ue(Me) {
- return D.call(Me);
- }
- function Ae(Me) {
- if (!it(Me) || ee(Me)) return !1;
- var ut = Ne(Me) || _(Me) ? L : m;
- return ut.test(oe(Me));
- }
- function W(Me, ut) {
- var wt = S(Me, ut);
- return Ae(wt) ? wt : void 0;
- }
- var Q = ue;
- ((ne && Q(new ne(new ArrayBuffer(1))) != v) ||
- (X && Q(new X()) != a) ||
- (J && Q(J.resolve()) != c) ||
- (re && Q(new re()) != d) ||
- (ce && Q(new ce()) != f)) &&
- (Q = function (Me) {
- var ut = D.call(Me),
- wt = ut == s ? Me.constructor : void 0,
- Lt = wt ? oe(wt) : void 0;
- if (Lt)
- switch (Lt) {
- case Fe:
- return v;
- case Ie:
- return a;
- case le:
- return c;
- case me:
- return d;
- case he:
- return f;
- }
- return ut;
- });
- function ee(Me) {
- return !!k && k in Me;
- }
- function ve(Me) {
- var ut = Me && Me.constructor,
- wt = (typeof ut == 'function' && ut.prototype) || A;
- return Me === wt;
- }
- function oe(Me) {
- if (Me != null) {
- try {
- return M.call(Me);
- } catch (ut) {}
- try {
- return Me + '';
- } catch (ut) {}
- }
- return '';
- }
- function H(Me) {
- return (
- Ce(Me) &&
- E.call(Me, 'callee') &&
- (!B.call(Me, 'callee') || D.call(Me) == r)
- );
- }
- var ae = Array.isArray;
- function ge(Me) {
- return Me != null && Ge(Me.length) && !Ne(Me);
- }
- function Ce(Me) {
- return dt(Me) && ge(Me);
- }
- var se = q || xt;
- function Se(Me) {
- if (
- ge(Me) &&
- (ae(Me) ||
- typeof Me == 'string' ||
- typeof Me.splice == 'function' ||
- se(Me) ||
- H(Me))
- )
- return !Me.length;
- var ut = Q(Me);
- if (ut == a || ut == d) return !Me.size;
- if (pe || ve(Me)) return !G(Me).length;
- for (var wt in Me) if (E.call(Me, wt)) return !1;
- return !0;
- }
- function Ne(Me) {
- var ut = it(Me) ? D.call(Me) : '';
- return ut == o || ut == i;
- }
- function Ge(Me) {
- return typeof Me == 'number' && Me > -1 && Me % 1 == 0 && Me <= n;
- }
- function it(Me) {
- var ut = typeof Me;
- return !!Me && (ut == 'object' || ut == 'function');
- }
- function dt(Me) {
- return !!Me && typeof Me == 'object';
- }
- function xt() {
- return !1;
- }
- e.exports = Se;
- })(xv, xv.exports);
- var Cae = xv.exports,
- Sae = '[object Object]';
- function _ae(e) {
- var t = !1;
- if (e != null && typeof e.toString != 'function')
- try {
- t = !!(e + '');
- } catch (n) {}
- return t;
- }
- function Rae(e, t) {
- return function (n) {
- return e(t(n));
- };
- }
- var Pae = Function.prototype,
- g$ = Object.prototype,
- m$ = Pae.toString,
- kae = g$.hasOwnProperty,
- Tae = m$.call(Object),
- $ae = g$.toString,
- Oae = Rae(Object.getPrototypeOf, Object);
- function zae(e) {
- return !!e && typeof e == 'object';
- }
- function Aae(e) {
- if (!zae(e) || $ae.call(e) != Sae || _ae(e)) return !1;
- var t = Oae(e);
- if (t === null) return !0;
- var n = kae.call(t, 'constructor') && t.constructor;
- return typeof n == 'function' && n instanceof n && m$.call(n) == Tae;
- }
- var Eae = Aae,
- wv = { exports: {} };
- wv.exports;
- (function (e, t) {
- var n = 200,
- r = 'Expected a function',
- o = '__lodash_hash_undefined__',
- i = 1,
- a = 2,
- s = 1 / 0,
- c = 9007199254740991,
- d = '[object Arguments]',
- f = '[object Array]',
- v = '[object Boolean]',
- p = '[object Date]',
- m = '[object Error]',
- g = '[object Function]',
- w = '[object GeneratorFunction]',
- x = '[object Map]',
- y = '[object Number]',
- C = '[object Object]',
- R = '[object Promise]',
- S = '[object RegExp]',
- _ = '[object Set]',
- P = '[object String]',
- T = '[object Symbol]',
- A = '[object WeakMap]',
- z = '[object ArrayBuffer]',
- k = '[object DataView]',
- M = '[object Float32Array]',
- E = '[object Float64Array]',
- D = '[object Int8Array]',
- L = '[object Int16Array]',
- j = '[object Int32Array]',
- B = '[object Uint8Array]',
- q = '[object Uint8ClampedArray]',
- G = '[object Uint16Array]',
- ne = '[object Uint32Array]',
- X = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
- J = /^\w*$/,
- re = /^\./,
- ce =
- /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,
- pe = /[\\^$.*+?()[\]{}|]/g,
- Fe = /\\(\\)?/g,
- Ie = /^\[object .+?Constructor\]$/,
- le = /^(?:0|[1-9]\d*)$/,
- me = {};
- (me[M] = me[E] = me[D] = me[L] = me[j] = me[B] = me[q] = me[G] = me[ne] = !0),
- (me[d] =
- me[f] =
- me[z] =
- me[v] =
- me[k] =
- me[p] =
- me[m] =
- me[g] =
- me[x] =
- me[y] =
- me[C] =
- me[S] =
- me[_] =
- me[P] =
- me[A] =
- !1);
- var he = typeof Nn == 'object' && Nn && Nn.Object === Object && Nn,
- ue = typeof self == 'object' && self && self.Object === Object && self,
- Ae = he || ue || Function('return this')(),
- W = t && !t.nodeType && t,
- Q = W && !0 && e && !e.nodeType && e,
- ee = Q && Q.exports === W,
- ve = ee && he.process,
- oe = (function () {
- try {
- return ve && ve.binding('util');
- } catch (K) {}
- })(),
- H = oe && oe.isTypedArray;
- function ae(K, de) {
- for (
- var Le = -1, at = K ? K.length : 0;
- ++Le < at && de(K[Le], Le, K) !== !1;
- );
- return K;
- }
- function ge(K, de) {
- for (var Le = -1, at = K ? K.length : 0; ++Le < at; )
- if (de(K[Le], Le, K)) return !0;
- return !1;
- }
- function Ce(K) {
- return function (de) {
- return de == null ? void 0 : de[K];
- };
- }
- function se(K, de) {
- for (var Le = -1, at = Array(K); ++Le < K; ) at[Le] = de(Le);
- return at;
- }
- function Se(K) {
- return function (de) {
- return K(de);
- };
- }
- function Ne(K, de) {
- return K == null ? void 0 : K[de];
- }
- function Ge(K) {
- var de = !1;
- if (K != null && typeof K.toString != 'function')
- try {
- de = !!(K + '');
- } catch (Le) {}
- return de;
- }
- function it(K) {
- var de = -1,
- Le = Array(K.size);
- return (
- K.forEach(function (at, It) {
- Le[++de] = [It, at];
- }),
- Le
- );
- }
- function dt(K, de) {
- return function (Le) {
- return K(de(Le));
- };
- }
- function xt(K) {
- var de = -1,
- Le = Array(K.size);
- return (
- K.forEach(function (at) {
- Le[++de] = at;
- }),
- Le
- );
- }
- var Me = Array.prototype,
- ut = Function.prototype,
- wt = Object.prototype,
- Lt = Ae['__core-js_shared__'],
- ot = (function () {
- var K = /[^.]+$/.exec((Lt && Lt.keys && Lt.keys.IE_PROTO) || '');
- return K ? 'Symbol(src)_1.' + K : '';
- })(),
- ct = ut.toString,
- Xe = wt.hasOwnProperty,
- Qe = wt.toString,
- ie = RegExp(
- '^' +
- ct
- .call(Xe)
- .replace(pe, '\\$&')
- .replace(
- /hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,
- '$1.*?'
- ) +
- '$'
- ),
- $e = Ae.Symbol,
- Ue = Ae.Uint8Array,
- lt = dt(Object.getPrototypeOf, Object),
- st = Object.create,
- be = wt.propertyIsEnumerable,
- He = Me.splice,
- tt = dt(Object.keys, Object),
- pt = Fa(Ae, 'DataView'),
- _e = Fa(Ae, 'Map'),
- Ve = Fa(Ae, 'Promise'),
- nt = Fa(Ae, 'Set'),
- Ot = Fa(Ae, 'WeakMap'),
- $n = Fa(Object, 'create'),
- jn = na(pt),
- Zt = na(_e),
- we = na(Ve),
- je = na(nt),
- Ct = na(Ot),
- qt = $e ? $e.prototype : void 0,
- xe = qt ? qt.valueOf : void 0,
- De = qt ? qt.toString : void 0;
- function rt(K) {
- var de = -1,
- Le = K ? K.length : 0;
- for (this.clear(); ++de < Le; ) {
- var at = K[de];
- this.set(at[0], at[1]);
- }
- }
- function ft() {
- this.__data__ = $n ? $n(null) : {};
- }
- function gt(K) {
- return this.has(K) && delete this.__data__[K];
- }
- function bn(K) {
- var de = this.__data__;
- if ($n) {
- var Le = de[K];
- return Le === o ? void 0 : Le;
- }
- return Xe.call(de, K) ? de[K] : void 0;
- }
- function ln(K) {
- var de = this.__data__;
- return $n ? de[K] !== void 0 : Xe.call(de, K);
- }
- function ke(K, de) {
- var Le = this.__data__;
- return (Le[K] = $n && de === void 0 ? o : de), this;
- }
- (rt.prototype.clear = ft),
- (rt.prototype.delete = gt),
- (rt.prototype.get = bn),
- (rt.prototype.has = ln),
- (rt.prototype.set = ke);
- function Je(K) {
- var de = -1,
- Le = K ? K.length : 0;
- for (this.clear(); ++de < Le; ) {
- var at = K[de];
- this.set(at[0], at[1]);
- }
- }
- function vt() {
- this.__data__ = [];
- }
- function Ut(K) {
- var de = this.__data__,
- Le = Ia(de, K);
- if (Le < 0) return !1;
- var at = de.length - 1;
- return Le == at ? de.pop() : He.call(de, Le, 1), !0;
- }
- function dn(K) {
- var de = this.__data__,
- Le = Ia(de, K);
- return Le < 0 ? void 0 : de[Le][1];
- }
- function nn(K) {
- return Ia(this.__data__, K) > -1;
- }
- function kr(K, de) {
- var Le = this.__data__,
- at = Ia(Le, K);
- return at < 0 ? Le.push([K, de]) : (Le[at][1] = de), this;
- }
- (Je.prototype.clear = vt),
- (Je.prototype.delete = Ut),
- (Je.prototype.get = dn),
- (Je.prototype.has = nn),
- (Je.prototype.set = kr);
- function Yt(K) {
- var de = -1,
- Le = K ? K.length : 0;
- for (this.clear(); ++de < Le; ) {
- var at = K[de];
- this.set(at[0], at[1]);
- }
- }
- function On() {
- this.__data__ = { hash: new rt(), map: new (_e || Je)(), string: new rt() };
- }
- function So(K) {
- return Al(this, K).delete(K);
- }
- function Lo(K) {
- return Al(this, K).get(K);
- }
- function No(K) {
- return Al(this, K).has(K);
- }
- function _o(K, de) {
- return Al(this, K).set(K, de), this;
- }
- (Yt.prototype.clear = On),
- (Yt.prototype.delete = So),
- (Yt.prototype.get = Lo),
- (Yt.prototype.has = No),
- (Yt.prototype.set = _o);
- function Xr(K) {
- var de = -1,
- Le = K ? K.length : 0;
- for (this.__data__ = new Yt(); ++de < Le; ) this.add(K[de]);
- }
- function za(K) {
- return this.__data__.set(K, o), this;
- }
- function Pl(K) {
- return this.__data__.has(K);
- }
- (Xr.prototype.add = Xr.prototype.push = za), (Xr.prototype.has = Pl);
- function Zr(K) {
- this.__data__ = new Je(K);
- }
- function kl() {
- this.__data__ = new Je();
- }
- function Tl(K) {
- return this.__data__.delete(K);
- }
- function Aa(K) {
- return this.__data__.get(K);
- }
- function Ea(K) {
- return this.__data__.has(K);
- }
- function Ma(K, de) {
- var Le = this.__data__;
- if (Le instanceof Je) {
- var at = Le.__data__;
- if (!_e || at.length < n - 1) return at.push([K, de]), this;
- Le = this.__data__ = new Yt(at);
- }
- return Le.set(K, de), this;
- }
- (Zr.prototype.clear = kl),
- (Zr.prototype.delete = Tl),
- (Zr.prototype.get = Aa),
- (Zr.prototype.has = Ea),
- (Zr.prototype.set = Ma);
- function $l(K, de) {
- var Le = ti(K) || lf(K) ? se(K.length, String) : [],
- at = Le.length,
- It = !!at;
- for (var Pt in K)
- (de || Xe.call(K, Pt)) &&
- !(It && (Pt == 'length' || Ws(Pt, at))) &&
- Le.push(Pt);
- return Le;
- }
- function Ia(K, de) {
- for (var Le = K.length; Le--; ) if (af(K[Le][0], de)) return Le;
- return -1;
- }
- function Ds(K) {
- return lo(K) ? st(K) : {};
- }
- var Da = nf();
- function Fs(K, de) {
- return K && Da(K, de, Dl);
- }
- function Bs(K, de) {
- de = Vs(de, K) ? [de] : cd(de);
- for (var Le = 0, at = de.length; K != null && Le < at; )
- K = K[Ks(de[Le++])];
- return Le && Le == at ? K : void 0;
- }
- function Ls(K) {
- return Qe.call(K);
- }
- function Ns(K, de) {
- return K != null && de in Object(K);
- }
- function ta(K, de, Le, at, It) {
- return K === de
- ? !0
- : K == null || de == null || (!lo(K) && !Ml(de))
- ? K !== K && de !== de
- : ld(K, de, ta, Le, at, It);
- }
- function ld(K, de, Le, at, It, Pt) {
- var un = ti(K),
- Dt = ti(de),
- kn = f,
- ir = f;
- un || ((kn = Si(K)), (kn = kn == d ? C : kn)),
- Dt || ((ir = Si(de)), (ir = ir == d ? C : ir));
- var Ir = kn == C && !Ge(K),
- Tr = ir == C && !Ge(de),
- mr = kn == ir;
- if (mr && !Ir)
- return (
- Pt || (Pt = new Zr()),
- un || Qr(K) ? rf(K, de, Le, at, It, Pt) : op(K, de, kn, Le, at, It, Pt)
- );
- if (!(It & a)) {
- var so = Ir && Xe.call(K, '__wrapped__'),
- co = Tr && Xe.call(de, '__wrapped__');
- if (so || co) {
- var ni = so ? K.value() : K,
- uo = co ? de.value() : de;
- return Pt || (Pt = new Zr()), Le(ni, uo, at, It, Pt);
- }
- }
- return mr ? (Pt || (Pt = new Zr()), ip(K, de, Le, at, It, Pt)) : !1;
- }
- function Hs(K, de, Le, at) {
- var It = Le.length,
- Pt = It,
- un = !at;
- if (K == null) return !Pt;
- for (K = Object(K); It--; ) {
- var Dt = Le[It];
- if (un && Dt[2] ? Dt[1] !== K[Dt[0]] : !(Dt[0] in K)) return !1;
- }
- for (; ++It < Pt; ) {
- Dt = Le[It];
- var kn = Dt[0],
- ir = K[kn],
- Ir = Dt[1];
- if (un && Dt[2]) {
- if (ir === void 0 && !(kn in K)) return !1;
- } else {
- var Tr = new Zr();
- if (at) var mr = at(ir, Ir, kn, K, de, Tr);
- if (!(mr === void 0 ? ta(Ir, ir, at, i | a, Tr) : mr)) return !1;
- }
- }
- return !0;
- }
- function Ol(K) {
- if (!lo(K) || cp(K)) return !1;
- var de = ur(K) || Ge(K) ? ie : Ie;
- return de.test(na(K));
- }
- function zl(K) {
- return Ml(K) && El(K.length) && !!me[Qe.call(K)];
- }
- function Ci(K) {
- return typeof K == 'function'
- ? K
- : K == null
- ? ff
- : typeof K == 'object'
- ? ti(K)
- ? sd(K[0], K[1])
- : Us(K)
- : Jr(K);
- }
- function js(K) {
- if (!dp(K)) return tt(K);
- var de = [];
- for (var Le in Object(K))
- Xe.call(K, Le) && Le != 'constructor' && de.push(Le);
- return de;
- }
- function Us(K) {
- var de = ap(K);
- return de.length == 1 && de[0][2]
- ? Un(de[0][0], de[0][1])
- : function (Le) {
- return Le === K || Hs(Le, K, de);
- };
- }
- function sd(K, de) {
- return Vs(K) && of(de)
- ? Un(Ks(K), de)
- : function (Le) {
- var at = cf(Le, K);
- return at === void 0 && at === de
- ? df(Le, K)
- : ta(de, at, void 0, i | a);
- };
- }
- function ef(K) {
- return function (de) {
- return Bs(de, K);
- };
- }
- function tf(K) {
- if (typeof K == 'string') return K;
- if (Il(K)) return De ? De.call(K) : '';
- var de = K + '';
- return de == '0' && 1 / K == -s ? '-0' : de;
- }
- function cd(K) {
- return ti(K) ? K : Wn(K);
- }
- function nf(K) {
- return function (de, Le, at) {
- for (var It = -1, Pt = Object(de), un = at(de), Dt = un.length; Dt--; ) {
- var kn = un[K ? Dt : ++It];
- if (Le(Pt[kn], kn, Pt) === !1) break;
- }
- return de;
- };
- }
- function rf(K, de, Le, at, It, Pt) {
- var un = It & a,
- Dt = K.length,
- kn = de.length;
- if (Dt != kn && !(un && kn > Dt)) return !1;
- var ir = Pt.get(K);
- if (ir && Pt.get(de)) return ir == de;
- var Ir = -1,
- Tr = !0,
- mr = It & i ? new Xr() : void 0;
- for (Pt.set(K, de), Pt.set(de, K); ++Ir < Dt; ) {
- var so = K[Ir],
- co = de[Ir];
- if (at)
- var ni = un ? at(co, so, Ir, de, K, Pt) : at(so, co, Ir, K, de, Pt);
- if (ni !== void 0) {
- if (ni) continue;
- Tr = !1;
- break;
- }
- if (mr) {
- if (
- !ge(de, function (uo, fo) {
- if (!mr.has(fo) && (so === uo || Le(so, uo, at, It, Pt)))
- return mr.add(fo);
- })
- ) {
- Tr = !1;
- break;
- }
- } else if (!(so === co || Le(so, co, at, It, Pt))) {
- Tr = !1;
- break;
- }
- }
- return Pt.delete(K), Pt.delete(de), Tr;
- }
- function op(K, de, Le, at, It, Pt, un) {
- switch (Le) {
- case k:
- if (K.byteLength != de.byteLength || K.byteOffset != de.byteOffset)
- return !1;
- (K = K.buffer), (de = de.buffer);
- case z:
- return !(K.byteLength != de.byteLength || !at(new Ue(K), new Ue(de)));
- case v:
- case p:
- case y:
- return af(+K, +de);
- case m:
- return K.name == de.name && K.message == de.message;
- case S:
- case P:
- return K == de + '';
- case x:
- var Dt = it;
- case _:
- var kn = Pt & a;
- if ((Dt || (Dt = xt), K.size != de.size && !kn)) return !1;
- var ir = un.get(K);
- if (ir) return ir == de;
- (Pt |= i), un.set(K, de);
- var Ir = rf(Dt(K), Dt(de), at, It, Pt, un);
- return un.delete(K), Ir;
- case T:
- if (xe) return xe.call(K) == xe.call(de);
- }
- return !1;
- }
- function ip(K, de, Le, at, It, Pt) {
- var un = It & a,
- Dt = Dl(K),
- kn = Dt.length,
- ir = Dl(de),
- Ir = ir.length;
- if (kn != Ir && !un) return !1;
- for (var Tr = kn; Tr--; ) {
- var mr = Dt[Tr];
- if (!(un ? mr in de : Xe.call(de, mr))) return !1;
- }
- var so = Pt.get(K);
- if (so && Pt.get(de)) return so == de;
- var co = !0;
- Pt.set(K, de), Pt.set(de, K);
- for (var ni = un; ++Tr < kn; ) {
- mr = Dt[Tr];
- var uo = K[mr],
- fo = de[mr];
- if (at)
- var hf = un ? at(fo, uo, mr, de, K, Pt) : at(uo, fo, mr, K, de, Pt);
- if (!(hf === void 0 ? uo === fo || Le(uo, fo, at, It, Pt) : hf)) {
- co = !1;
- break;
- }
- ni || (ni = mr == 'constructor');
- }
- if (co && !ni) {
- var Fl = K.constructor,
- Bl = de.constructor;
- Fl != Bl &&
- 'constructor' in K &&
- 'constructor' in de &&
- !(
- typeof Fl == 'function' &&
- Fl instanceof Fl &&
- typeof Bl == 'function' &&
- Bl instanceof Bl
- ) &&
- (co = !1);
- }
- return Pt.delete(K), Pt.delete(de), co;
- }
- function Al(K, de) {
- var Le = K.__data__;
- return sp(de) ? Le[typeof de == 'string' ? 'string' : 'hash'] : Le.map;
- }
- function ap(K) {
- for (var de = Dl(K), Le = de.length; Le--; ) {
- var at = de[Le],
- It = K[at];
- de[Le] = [at, It, of(It)];
- }
- return de;
- }
- function Fa(K, de) {
- var Le = Ne(K, de);
- return Ol(Le) ? Le : void 0;
- }
- var Si = Ls;
- ((pt && Si(new pt(new ArrayBuffer(1))) != k) ||
- (_e && Si(new _e()) != x) ||
- (Ve && Si(Ve.resolve()) != R) ||
- (nt && Si(new nt()) != _) ||
- (Ot && Si(new Ot()) != A)) &&
- (Si = function (K) {
- var de = Qe.call(K),
- Le = de == C ? K.constructor : void 0,
- at = Le ? na(Le) : void 0;
- if (at)
- switch (at) {
- case jn:
- return k;
- case Zt:
- return x;
- case we:
- return R;
- case je:
- return _;
- case Ct:
- return A;
- }
- return de;
- });
- function lp(K, de, Le) {
- de = Vs(de, K) ? [de] : cd(de);
- for (var at, It = -1, un = de.length; ++It < un; ) {
- var Pt = Ks(de[It]);
- if (!(at = K != null && Le(K, Pt))) break;
- K = K[Pt];
- }
- if (at) return at;
- var un = K ? K.length : 0;
- return !!un && El(un) && Ws(Pt, un) && (ti(K) || lf(K));
- }
- function Ws(K, de) {
- return (
- (de = de == null ? c : de),
- !!de &&
- (typeof K == 'number' || le.test(K)) &&
- K > -1 &&
- K % 1 == 0 &&
- K < de
- );
- }
- function Vs(K, de) {
- if (ti(K)) return !1;
- var Le = typeof K;
- return Le == 'number' ||
- Le == 'symbol' ||
- Le == 'boolean' ||
- K == null ||
- Il(K)
- ? !0
- : J.test(K) || !X.test(K) || (de != null && K in Object(de));
- }
- function sp(K) {
- var de = typeof K;
- return de == 'string' || de == 'number' || de == 'symbol' || de == 'boolean'
- ? K !== '__proto__'
- : K === null;
- }
- function cp(K) {
- return !!ot && ot in K;
- }
- function dp(K) {
- var de = K && K.constructor,
- Le = (typeof de == 'function' && de.prototype) || wt;
- return K === Le;
- }
- function of(K) {
- return K === K && !lo(K);
- }
- function Un(K, de) {
- return function (Le) {
- return Le == null
- ? !1
- : Le[K] === de && (de !== void 0 || K in Object(Le));
- };
- }
- var Wn = dd(function (K) {
- K = sf(K);
- var de = [];
- return (
- re.test(K) && de.push(''),
- K.replace(ce, function (Le, at, It, Pt) {
- de.push(It ? Pt.replace(Fe, '$1') : at || Le);
- }),
- de
- );
- });
- function Ks(K) {
- if (typeof K == 'string' || Il(K)) return K;
- var de = K + '';
- return de == '0' && 1 / K == -s ? '-0' : de;
- }
- function na(K) {
- if (K != null) {
- try {
- return ct.call(K);
- } catch (de) {}
- try {
- return K + '';
- } catch (de) {}
- }
- return '';
- }
- function dd(K, de) {
- if (typeof K != 'function' || (de && typeof de != 'function'))
- throw new TypeError(r);
- var Le = function () {
- var at = arguments,
- It = de ? de.apply(this, at) : at[0],
- Pt = Le.cache;
- if (Pt.has(It)) return Pt.get(It);
- var un = K.apply(this, at);
- return (Le.cache = Pt.set(It, un)), un;
- };
- return (Le.cache = new (dd.Cache || Yt)()), Le;
- }
- dd.Cache = Yt;
- function af(K, de) {
- return K === de || (K !== K && de !== de);
- }
- function lf(K) {
- return (
- up(K) &&
- Xe.call(K, 'callee') &&
- (!be.call(K, 'callee') || Qe.call(K) == d)
- );
- }
- var ti = Array.isArray;
- function ud(K) {
- return K != null && El(K.length) && !ur(K);
- }
- function up(K) {
- return Ml(K) && ud(K);
- }
- function ur(K) {
- var de = lo(K) ? Qe.call(K) : '';
- return de == g || de == w;
- }
- function El(K) {
- return typeof K == 'number' && K > -1 && K % 1 == 0 && K <= c;
- }
- function lo(K) {
- var de = typeof K;
- return !!K && (de == 'object' || de == 'function');
- }
- function Ml(K) {
- return !!K && typeof K == 'object';
- }
- function Il(K) {
- return typeof K == 'symbol' || (Ml(K) && Qe.call(K) == T);
- }
- var Qr = H ? Se(H) : zl;
- function sf(K) {
- return K == null ? '' : tf(K);
- }
- function cf(K, de, Le) {
- var at = K == null ? void 0 : Bs(K, de);
- return at === void 0 ? Le : at;
- }
- function df(K, de) {
- return K != null && lp(K, de, Ns);
- }
- function Dl(K) {
- return ud(K) ? $l(K) : js(K);
- }
- function uf(K, de, Le) {
- var at = ti(K) || Qr(K);
- if (((de = Ci(de)), Le == null))
- if (at || lo(K)) {
- var It = K.constructor;
- at ? (Le = ti(K) ? new It() : []) : (Le = ur(It) ? Ds(lt(K)) : {});
- } else Le = {};
- return (
- (at ? ae : Fs)(K, function (Pt, un, Dt) {
- return de(Le, Pt, un, Dt);
- }),
- Le
- );
- }
- function ff(K) {
- return K;
- }
- function Jr(K) {
- return Vs(K) ? Ce(Ks(K)) : ef(K);
- }
- e.exports = uf;
- })(wv, wv.exports);
- var Mae = wv.exports;
- const Iae = Cae,
- x_ = Eae,
- Dae = Mae;
- var Fae = function e(
- t,
- {
- cleanKeys: n = [],
- cleanValues: r = [],
- emptyArrays: o = !0,
- emptyObjects: i = !0,
- emptyStrings: a = !0,
- NaNValues: s = !1,
- nullValues: c = !0,
- undefinedValues: d = !0
- } = {}
- ) {
- return Dae(t, (f, v, p) => {
- if (
- !n.includes(p) &&
- ((Array.isArray(v) || x_(v)) &&
- (v = e(v, {
- NaNValues: s,
- cleanKeys: n,
- cleanValues: r,
- emptyArrays: o,
- emptyObjects: i,
- emptyStrings: a,
- nullValues: c,
- undefinedValues: d
- })),
- !r.includes(v) &&
- !(i && x_(v) && Iae(v)) &&
- !(o && Array.isArray(v) && !v.length) &&
- !(a && v === '') &&
- !(s && Number.isNaN(v)) &&
- !(c && v === null) &&
- !(d && v === void 0))
- ) {
- if (Array.isArray(f)) return f.push(v);
- f[p] = v;
- }
- });
- };
- const w_ = Oa(Fae),
- ad = wae({ hideLoading: !0, timeout: 2e4, timeoutMessage: '请求超时' });
- ad.interceptors.request.use(
- (e, t) => {
- t.hideLoading || window.$message.loading('加载中...');
- const r = p1().getToken || '',
- o = {};
- return (
- r &&
- !['/api-oauth/userlogin', '/api-auth/open/sendSms'].includes(e) &&
- (o.Authorization = r),
- {
- url: e,
- options: {
- ...t,
- params: w_(t.params),
- data: w_(t.data),
- headers: { ...t.headers, ...o }
- }
- }
- );
- },
- { global: !1 }
- );
- ad.interceptors.response.use(
- async e => {
- const t = p1();
- if (e.status > 299 || e.status < 200) {
- const r = '服务器错误,状态码' + e.status;
- throw (window.$message.error(r), new Error(r));
- }
- const n = await e.clone().json();
- if (n.code === 401 || n.code === 4001 || n.code == 403 || n.code == 5e3) {
- t.logout(), y$.replace('/login'), location.reload();
- return;
- }
- if (n.code !== 200 && n.errCode !== 0) {
- const r = n.msg || n.message || '处理失败,请重试';
- throw (
- (n.code === 403 || n.code === 401 || window.$message.error(r),
- new Error(r))
- );
- }
- return e;
- },
- { global: !1 }
- );
- const Bae = e =>
- ad.post('/edu-app/userlogin', { requestType: 'form', data: e }),
- Lae = () => ad.get('/edu-app/user/getUserInfo'),
- hle = e => ad.post('/edu-app/subject/page', { data: e }),
- vle = e => ad.post('/edu-app/musicSheetCategories/page', { data: e }),
- p1 = Kre('user-store', {
- state: () => ({
- token: ns.get(Lh, ''),
- imToken: ns.get(Gre, ''),
- username: '',
- avatar: '',
- info: ns.get(K2, {})
- }),
- getters: {
- getToken() {
- return this.token;
- },
- getImToken() {
- return this.imToken;
- },
- getAvatar() {
- return this.avatar;
- },
- getNickname() {
- return this.username;
- },
- getUserInfo() {
- return this.info;
- }
- },
- actions: {
- setToken(e) {
- this.token = e;
- },
- setImToken(e) {
- this.imToken = e;
- },
- setAvatar(e) {
- this.avatar = e;
- },
- setUsername(e) {
- this.username = e;
- },
- setUserInfo(e) {
- this.info = e;
- },
- async login(e) {
- try {
- const { data: t } = await Bae(e);
- console.log(t, 'data');
- const n = t.token_type + ' ' + t.access_token,
- r = 7 * 24 * 60 * 60 * 1e3;
- return ns.set(Lh, n, r), this.setToken(n), Promise.resolve();
- } catch (t) {
- return Promise.reject(t);
- }
- },
- async getInfo() {
- return new Promise((e, t) => {
- Lae()
- .then(n => {
- const r = n.data;
- this.setUserInfo(r),
- this.setAvatar(r.account.avatar),
- this.setUsername(r.nickname),
- e(!0);
- })
- .catch(n => {
- t(n);
- });
- });
- },
- async logout() {
- return (
- this.setUserInfo(''),
- ns.remove(Lh),
- ns.remove(K2),
- Promise.resolve('')
- );
- }
- }
- }),
- w0 = t1.BASE_LOGIN,
- Nae = [w0],
- Hae = () => {
- const e = window.chrome,
- t = window.navigator,
- n = t.vendor,
- r = typeof window.opr < 'u',
- o = t.userAgent.indexOf('Edge') > -1;
- return (
- t.userAgent.match('CriOS') ||
- (e !== null &&
- typeof e < 'u' &&
- n === 'Google Inc.' &&
- r === !1 &&
- o === !1)
- );
- };
- function jae(e) {
- const t = p1();
- e.beforeEach(async (n, r, o) => {
- if (!Hae()) return;
- if (
- (window.$loadingBar && window.$loadingBar.start(),
- r.path === w0 && n.name === 'errorPage')
- ) {
- o(t1.BASE_HOME);
- return;
- }
- if (Nae.includes(n.path)) {
- o();
- return;
- }
- if (!ns.get(Lh)) {
- if (n.meta.ignoreAuth) {
- o();
- return;
- }
- const a = { path: w0, replace: !0 };
- n.path && (a.query = { ...a.query, redirect: n.path }),
- console.log(a, n),
- o(a);
- return;
- }
- await t.getInfo(), o();
- }),
- e.afterEach((n, r, o) => {
- zi(o) && console.log('failed navigation', o),
- window.$loadingBar && window.$loadingBar.finish();
- });
- }
- const b$ = new Bre(),
- Uae = 9007199254740991;
- function Wae(e) {
- return typeof e == 'number' && e > -1 && e % 1 == 0 && e <= Uae;
- }
- function Cv(e) {
- return e === void 0;
- }
- function Vae(e) {
- return e != null && typeof e != 'function' && Wae(e.length);
- }
- function C_(e) {
- return e === null;
- }
- function Kae(e) {
- if (!e) return '';
- const t = Object.keys(e)
- .map(n => {
- const r = e[n];
- if (Cv(r)) return '';
- if (C_(r)) return n;
- if (Array.isArray(r)) {
- const o = [];
- return (
- r.forEach(i => {
- Cv(i) || (C_(i) ? o.push(n) : o.push(n + '=' + i));
- }),
- o.join('&')
- );
- }
- return `${n}=${r}`;
- })
- .filter(n => n.length > 0)
- .join('&');
- return t ? `?${b$.encryptByAES(t)}` : '';
- }
- function qae(e) {
- const t = {};
- return (
- (e = e.trim().replace(/^(\?|#|&)/, '')),
- e &&
- ((e = b$.decryptByAES(e)),
- e.split('&').forEach(n => {
- const r = n.replace(/\+/g, ' ').split('='),
- o = r.shift(),
- i = r.length > 0 ? r.join('=') : null;
- Cv(o) ||
- (Cv(t[o])
- ? (t[o] = i)
- : Vae(t[o])
- ? t[o].push(i)
- : (t[o] = [t[o], i]));
- })),
- t
- );
- }
- const C0 = vre({
- history: zne('/classroom'),
- routes: [...Sre],
- stringifyQuery: Kae,
- parseQuery: qae,
- scrollBehavior(e) {
- if (e.hash) return { el: e.hash, behavior: 'smooth' };
- }
- });
- function Yae(e) {
- e.use(C0), jae(C0);
- }
- const y$ = C0;
- var Om = { exports: {} },
- S_;
- function x$() {
- return (
- S_ ||
- ((S_ = 1),
- (function (e, t) {
- (function (n, r) {
- e.exports = r();
- })(Nn, function () {
- var n = 1e3,
- r = 6e4,
- o = 36e5,
- i = 'millisecond',
- a = 'second',
- s = 'minute',
- c = 'hour',
- d = 'day',
- f = 'week',
- v = 'month',
- p = 'quarter',
- m = 'year',
- g = 'date',
- w = 'Invalid Date',
- x =
- /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,
- y =
- /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,
- C = {
- name: 'en',
- weekdays:
- 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
- '_'
- ),
- months:
- 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
- '_'
- ),
- ordinal: function (D) {
- var L = ['th', 'st', 'nd', 'rd'],
- j = D % 100;
- return '[' + D + (L[(j - 20) % 10] || L[j] || L[0]) + ']';
- }
- },
- R = function (D, L, j) {
- var B = String(D);
- return !B || B.length >= L
- ? D
- : '' + Array(L + 1 - B.length).join(j) + D;
- },
- S = {
- s: R,
- z: function (D) {
- var L = -D.utcOffset(),
- j = Math.abs(L),
- B = Math.floor(j / 60),
- q = j % 60;
- return (L <= 0 ? '+' : '-') + R(B, 2, '0') + ':' + R(q, 2, '0');
- },
- m: function D(L, j) {
- if (L.date() < j.date()) return -D(j, L);
- var B = 12 * (j.year() - L.year()) + (j.month() - L.month()),
- q = L.clone().add(B, v),
- G = j - q < 0,
- ne = L.clone().add(B + (G ? -1 : 1), v);
- return +(-(B + (j - q) / (G ? q - ne : ne - q)) || 0);
- },
- a: function (D) {
- return D < 0 ? Math.ceil(D) || 0 : Math.floor(D);
- },
- p: function (D) {
- return (
- { M: v, y: m, w: f, d, D: g, h: c, m: s, s: a, ms: i, Q: p }[
- D
- ] ||
- String(D || '')
- .toLowerCase()
- .replace(/s$/, '')
- );
- },
- u: function (D) {
- return D === void 0;
- }
- },
- _ = 'en',
- P = {};
- P[_] = C;
- var T = function (D) {
- return D instanceof M;
- },
- A = function D(L, j, B) {
- var q;
- if (!L) return _;
- if (typeof L == 'string') {
- var G = L.toLowerCase();
- P[G] && (q = G), j && ((P[G] = j), (q = G));
- var ne = L.split('-');
- if (!q && ne.length > 1) return D(ne[0]);
- } else {
- var X = L.name;
- (P[X] = L), (q = X);
- }
- return !B && q && (_ = q), q || (!B && _);
- },
- z = function (D, L) {
- if (T(D)) return D.clone();
- var j = typeof L == 'object' ? L : {};
- return (j.date = D), (j.args = arguments), new M(j);
- },
- k = S;
- (k.l = A),
- (k.i = T),
- (k.w = function (D, L) {
- return z(D, {
- locale: L.$L,
- utc: L.$u,
- x: L.$x,
- $offset: L.$offset
- });
- });
- var M = (function () {
- function D(j) {
- (this.$L = A(j.locale, null, !0)), this.parse(j);
- }
- var L = D.prototype;
- return (
- (L.parse = function (j) {
- (this.$d = (function (B) {
- var q = B.date,
- G = B.utc;
- if (q === null) return new Date(NaN);
- if (k.u(q)) return new Date();
- if (q instanceof Date) return new Date(q);
- if (typeof q == 'string' && !/Z$/i.test(q)) {
- var ne = q.match(x);
- if (ne) {
- var X = ne[2] - 1 || 0,
- J = (ne[7] || '0').substring(0, 3);
- return G
- ? new Date(
- Date.UTC(
- ne[1],
- X,
- ne[3] || 1,
- ne[4] || 0,
- ne[5] || 0,
- ne[6] || 0,
- J
- )
- )
- : new Date(
- ne[1],
- X,
- ne[3] || 1,
- ne[4] || 0,
- ne[5] || 0,
- ne[6] || 0,
- J
- );
- }
- }
- return new Date(q);
- })(j)),
- (this.$x = j.x || {}),
- this.init();
- }),
- (L.init = function () {
- var j = this.$d;
- (this.$y = j.getFullYear()),
- (this.$M = j.getMonth()),
- (this.$D = j.getDate()),
- (this.$W = j.getDay()),
- (this.$H = j.getHours()),
- (this.$m = j.getMinutes()),
- (this.$s = j.getSeconds()),
- (this.$ms = j.getMilliseconds());
- }),
- (L.$utils = function () {
- return k;
- }),
- (L.isValid = function () {
- return this.$d.toString() !== w;
- }),
- (L.isSame = function (j, B) {
- var q = z(j);
- return this.startOf(B) <= q && q <= this.endOf(B);
- }),
- (L.isAfter = function (j, B) {
- return z(j) < this.startOf(B);
- }),
- (L.isBefore = function (j, B) {
- return this.endOf(B) < z(j);
- }),
- (L.$g = function (j, B, q) {
- return k.u(j) ? this[B] : this.set(q, j);
- }),
- (L.unix = function () {
- return Math.floor(this.valueOf() / 1e3);
- }),
- (L.valueOf = function () {
- return this.$d.getTime();
- }),
- (L.startOf = function (j, B) {
- var q = this,
- G = !!k.u(B) || B,
- ne = k.p(j),
- X = function (me, he) {
- var ue = k.w(
- q.$u ? Date.UTC(q.$y, he, me) : new Date(q.$y, he, me),
- q
- );
- return G ? ue : ue.endOf(d);
- },
- J = function (me, he) {
- return k.w(
- q
- .toDate()
- [me].apply(
- q.toDate('s'),
- (G ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(he)
- ),
- q
- );
- },
- re = this.$W,
- ce = this.$M,
- pe = this.$D,
- Fe = 'set' + (this.$u ? 'UTC' : '');
- switch (ne) {
- case m:
- return G ? X(1, 0) : X(31, 11);
- case v:
- return G ? X(1, ce) : X(0, ce + 1);
- case f:
- var Ie = this.$locale().weekStart || 0,
- le = (re < Ie ? re + 7 : re) - Ie;
- return X(G ? pe - le : pe + (6 - le), ce);
- case d:
- case g:
- return J(Fe + 'Hours', 0);
- case c:
- return J(Fe + 'Minutes', 1);
- case s:
- return J(Fe + 'Seconds', 2);
- case a:
- return J(Fe + 'Milliseconds', 3);
- default:
- return this.clone();
- }
- }),
- (L.endOf = function (j) {
- return this.startOf(j, !1);
- }),
- (L.$set = function (j, B) {
- var q,
- G = k.p(j),
- ne = 'set' + (this.$u ? 'UTC' : ''),
- X = ((q = {}),
- (q[d] = ne + 'Date'),
- (q[g] = ne + 'Date'),
- (q[v] = ne + 'Month'),
- (q[m] = ne + 'FullYear'),
- (q[c] = ne + 'Hours'),
- (q[s] = ne + 'Minutes'),
- (q[a] = ne + 'Seconds'),
- (q[i] = ne + 'Milliseconds'),
- q)[G],
- J = G === d ? this.$D + (B - this.$W) : B;
- if (G === v || G === m) {
- var re = this.clone().set(g, 1);
- re.$d[X](J),
- re.init(),
- (this.$d = re.set(
- g,
- Math.min(this.$D, re.daysInMonth())
- ).$d);
- } else X && this.$d[X](J);
- return this.init(), this;
- }),
- (L.set = function (j, B) {
- return this.clone().$set(j, B);
- }),
- (L.get = function (j) {
- return this[k.p(j)]();
- }),
- (L.add = function (j, B) {
- var q,
- G = this;
- j = Number(j);
- var ne = k.p(B),
- X = function (ce) {
- var pe = z(G);
- return k.w(pe.date(pe.date() + Math.round(ce * j)), G);
- };
- if (ne === v) return this.set(v, this.$M + j);
- if (ne === m) return this.set(m, this.$y + j);
- if (ne === d) return X(1);
- if (ne === f) return X(7);
- var J =
- ((q = {}), (q[s] = r), (q[c] = o), (q[a] = n), q)[ne] ||
- 1,
- re = this.$d.getTime() + j * J;
- return k.w(re, this);
- }),
- (L.subtract = function (j, B) {
- return this.add(-1 * j, B);
- }),
- (L.format = function (j) {
- var B = this,
- q = this.$locale();
- if (!this.isValid()) return q.invalidDate || w;
- var G = j || 'YYYY-MM-DDTHH:mm:ssZ',
- ne = k.z(this),
- X = this.$H,
- J = this.$m,
- re = this.$M,
- ce = q.weekdays,
- pe = q.months,
- Fe = q.meridiem,
- Ie = function (he, ue, Ae, W) {
- return (he && (he[ue] || he(B, G))) || Ae[ue].slice(0, W);
- },
- le = function (he) {
- return k.s(X % 12 || 12, he, '0');
- },
- me =
- Fe ||
- function (he, ue, Ae) {
- var W = he < 12 ? 'AM' : 'PM';
- return Ae ? W.toLowerCase() : W;
- };
- return G.replace(y, function (he, ue) {
- return (
- ue ||
- (function (Ae) {
- switch (Ae) {
- case 'YY':
- return String(B.$y).slice(-2);
- case 'YYYY':
- return k.s(B.$y, 4, '0');
- case 'M':
- return re + 1;
- case 'MM':
- return k.s(re + 1, 2, '0');
- case 'MMM':
- return Ie(q.monthsShort, re, pe, 3);
- case 'MMMM':
- return Ie(pe, re);
- case 'D':
- return B.$D;
- case 'DD':
- return k.s(B.$D, 2, '0');
- case 'd':
- return String(B.$W);
- case 'dd':
- return Ie(q.weekdaysMin, B.$W, ce, 2);
- case 'ddd':
- return Ie(q.weekdaysShort, B.$W, ce, 3);
- case 'dddd':
- return ce[B.$W];
- case 'H':
- return String(X);
- case 'HH':
- return k.s(X, 2, '0');
- case 'h':
- return le(1);
- case 'hh':
- return le(2);
- case 'a':
- return me(X, J, !0);
- case 'A':
- return me(X, J, !1);
- case 'm':
- return String(J);
- case 'mm':
- return k.s(J, 2, '0');
- case 's':
- return String(B.$s);
- case 'ss':
- return k.s(B.$s, 2, '0');
- case 'SSS':
- return k.s(B.$ms, 3, '0');
- case 'Z':
- return ne;
- }
- return null;
- })(he) ||
- ne.replace(':', '')
- );
- });
- }),
- (L.utcOffset = function () {
- return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
- }),
- (L.diff = function (j, B, q) {
- var G,
- ne = this,
- X = k.p(B),
- J = z(j),
- re = (J.utcOffset() - this.utcOffset()) * r,
- ce = this - J,
- pe = function () {
- return k.m(ne, J);
- };
- switch (X) {
- case m:
- G = pe() / 12;
- break;
- case v:
- G = pe();
- break;
- case p:
- G = pe() / 3;
- break;
- case f:
- G = (ce - re) / 6048e5;
- break;
- case d:
- G = (ce - re) / 864e5;
- break;
- case c:
- G = ce / o;
- break;
- case s:
- G = ce / r;
- break;
- case a:
- G = ce / n;
- break;
- default:
- G = ce;
- }
- return q ? G : k.a(G);
- }),
- (L.daysInMonth = function () {
- return this.endOf(v).$D;
- }),
- (L.$locale = function () {
- return P[this.$L];
- }),
- (L.locale = function (j, B) {
- if (!j) return this.$L;
- var q = this.clone(),
- G = A(j, B, !0);
- return G && (q.$L = G), q;
- }),
- (L.clone = function () {
- return k.w(this.$d, this);
- }),
- (L.toDate = function () {
- return new Date(this.valueOf());
- }),
- (L.toJSON = function () {
- return this.isValid() ? this.toISOString() : null;
- }),
- (L.toISOString = function () {
- return this.$d.toISOString();
- }),
- (L.toString = function () {
- return this.$d.toUTCString();
- }),
- D
- );
- })(),
- E = M.prototype;
- return (
- (z.prototype = E),
- [
- ['$ms', i],
- ['$s', a],
- ['$m', s],
- ['$H', c],
- ['$W', d],
- ['$M', v],
- ['$y', m],
- ['$D', g]
- ].forEach(function (D) {
- E[D[1]] = function (L) {
- return this.$g(L, D[0], D[1]);
- };
- }),
- (z.extend = function (D, L) {
- return D.$i || (D(L, M, z), (D.$i = !0)), z;
- }),
- (z.locale = A),
- (z.isDayjs = T),
- (z.unix = function (D) {
- return z(1e3 * D);
- }),
- (z.en = P[_]),
- (z.Ls = P),
- (z.p = {}),
- z
- );
- });
- })(Om)),
- Om.exports
- );
- }
- var Gae = x$();
- const Xae = Oa(Gae),
- Zae = I(() => ({
- theme: void 0,
- themeOverrides: {
- common: {
- primaryColor: xc.appTheme,
- primaryColorHover: s0(xc.appTheme, 6),
- primaryColorPressed: s0(xc.appTheme, 6)
- },
- LoadingBar: { colorLoading: xc.appTheme }
- }
- })),
- Qae = fne({
- components: [
- Gy,
- jy,
- Py,
- Yi,
- nr,
- xZ,
- iQ,
- Uk,
- Vu,
- o3,
- FJ,
- HJ,
- BJ,
- WJ,
- GJ,
- vee,
- uK,
- vK,
- Ey,
- cZ,
- qv,
- WV,
- bte,
- vte,
- Hk,
- uQ,
- hQ,
- eZ,
- nZ,
- IX,
- dte,
- oK,
- CV,
- hZ,
- Ih,
- Zy,
- sT,
- rX,
- gQ,
- lQ,
- QJ,
- JJ,
- wte,
- wY,
- rd,
- Yk,
- Kk,
- Qk,
- zy,
- ite,
- lte,
- DV,
- Vee,
- uX,
- hX,
- hte,
- MJ,
- Q3,
- E3,
- ane,
- Fte,
- ete,
- uv,
- QV,
- Xee
- ]
- }),
- {
- message: Jae,
- dialog: ple,
- notification: gle,
- loadingBar: ele
- } = dne(['message', 'dialog', 'notification', 'loadingBar'], {
- configProviderProps: Zae
- });
- window.$message = Jae;
- window.$loadingBar = ele;
- function tle(e) {
- e.use(Qae);
- }
- var nle = { exports: {} };
- (function (e, t) {
- (function (n, r) {
- e.exports = r(x$());
- })(Nn, function (n) {
- function r(a) {
- return a && typeof a == 'object' && 'default' in a ? a : { default: a };
- }
- var o = r(n),
- i = {
- name: 'zh-cn',
- weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'),
- weekdaysShort: '周日_周一_周二_周三_周四_周五_周六'.split('_'),
- weekdaysMin: '日_一_二_三_四_五_六'.split('_'),
- months:
- '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split(
- '_'
- ),
- monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split(
- '_'
- ),
- ordinal: function (a, s) {
- return s === 'W' ? a + '周' : a + '日';
- },
- weekStart: 1,
- yearStart: 4,
- formats: {
- LT: 'HH:mm',
- LTS: 'HH:mm:ss',
- L: 'YYYY/MM/DD',
- LL: 'YYYY年M月D日',
- LLL: 'YYYY年M月D日Ah点mm分',
- LLLL: 'YYYY年M月D日ddddAh点mm分',
- l: 'YYYY/M/D',
- ll: 'YYYY年M月D日',
- lll: 'YYYY年M月D日 HH:mm',
- llll: 'YYYY年M月D日dddd HH:mm'
- },
- relativeTime: {
- future: '%s内',
- past: '%s前',
- s: '几秒',
- m: '1 分钟',
- mm: '%d 分钟',
- h: '1 小时',
- hh: '%d 小时',
- d: '1 天',
- dd: '%d 天',
- M: '1 个月',
- MM: '%d 个月',
- y: '1 年',
- yy: '%d 年'
- },
- meridiem: function (a, s) {
- var c = 100 * a + s;
- return c < 600
- ? '凌晨'
- : c < 900
- ? '早上'
- : c < 1100
- ? '上午'
- : c < 1300
- ? '中午'
- : c < 1800
- ? '下午'
- : '晚上';
- }
- };
- return o.default.locale(i, null, !0), i;
- });
- })(nle);
- async function rle() {
- const e = RR(xre);
- tle(e),
- Yre(e),
- Yae(e),
- Xae.locale('zh-ch'),
- await y$.isReady(),
- e.mount('#app');
- }
- rle();
- export {
- sT as $,
- IC as A,
- xi as B,
- jv as C,
- ka as D,
- I as E,
- on as F,
- Bn as G,
- rX as H,
- qr as I,
- ll as J,
- Kre as K,
- xc as L,
- mn as M,
- xZ as N,
- wY as O,
- t1 as P,
- cZ as Q,
- Kk as R,
- _a as S,
- Kn as T,
- ete as U,
- bu as V,
- wte as W,
- T_ as X,
- u6 as Y,
- Mu as Z,
- ule as _,
- ile as __vite_legacy_guard,
- dle as a,
- uK as a0,
- vK as a1,
- K0 as a2,
- gQ as a3,
- lQ as a4,
- hle as a5,
- vle as a6,
- ad as a7,
- Cy as a8,
- U6 as a9,
- nZ as aA,
- yr as aB,
- Hk as aC,
- Nt as aD,
- uM as aE,
- F as aF,
- U as aG,
- gi as aH,
- xl as aI,
- Ps as aJ,
- ei as aK,
- An as aL,
- qn as aM,
- yi as aN,
- Yr as aO,
- Xc as aP,
- Zc as aQ,
- Kt as aR,
- Qc as aS,
- Tn as aT,
- pn as aU,
- ze as aV,
- Ee as aa,
- ane as ab,
- fle as ac,
- bre as ad,
- dte as ae,
- M3 as af,
- Yk as ag,
- O as ah,
- V as ai,
- yt as aj,
- Ke as ak,
- Oe as al,
- Mt as am,
- h as an,
- Wu as ao,
- Xee as ap,
- Nn as aq,
- Oa as ar,
- BM as as,
- lle as at,
- kv as au,
- Xk as av,
- Ih as aw,
- MJ as ax,
- qv as ay,
- eZ as az,
- wee as b,
- p1 as c,
- Re as d,
- Xi as e,
- er as f,
- iQ as g,
- Yi as h,
- DV as i,
- nr as j,
- yu as k,
- Vu as l,
- bte as m,
- vte as n,
- $J as o,
- cle as p,
- Hn as q,
- Z as r,
- ns as s,
- oK as t,
- gre as u,
- rd as v,
- $t as w,
- o3 as x,
- ale as y,
- E3 as z
- };
|