vue.js 2.8MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130381313813238133381343813538136381373813838139381403814138142381433814438145381463814738148381493815038151381523815338154381553815638157381583815938160381613816238163381643816538166381673816838169381703817138172381733817438175381763817738178381793818038181381823818338184381853818638187381883818938190381913819238193381943819538196381973819838199382003820138202382033820438205382063820738208382093821038211382123821338214382153821638217382183821938220382213822238223382243822538226382273822838229382303823138232382333823438235382363823738238382393824038241382423824338244382453824638247382483824938250382513825238253382543825538256382573825838259382603826138262382633826438265382663826738268382693827038271382723827338274382753827638277382783827938280382813828238283382843828538286382873828838289382903829138292382933829438295382963829738298382993830038301383023830338304383053830638307383083830938310383113831238313383143831538316383173831838319383203832138322383233832438325383263832738328383293833038331383323833338334383353833638337383383833938340383413834238343383443834538346383473834838349383503835138352383533835438355383563835738358383593836038361383623836338364383653836638367383683836938370383713837238373383743837538376383773837838379383803838138382383833838438385383863838738388383893839038391383923839338394383953839638397383983839938400384013840238403384043840538406384073840838409384103841138412384133841438415384163841738418384193842038421384223842338424384253842638427384283842938430384313843238433384343843538436384373843838439384403844138442384433844438445384463844738448384493845038451384523845338454384553845638457384583845938460384613846238463384643846538466384673846838469384703847138472384733847438475384763847738478384793848038481384823848338484384853848638487384883848938490384913849238493384943849538496384973849838499385003850138502385033850438505385063850738508385093851038511385123851338514385153851638517385183851938520385213852238523385243852538526385273852838529385303853138532385333853438535385363853738538385393854038541385423854338544385453854638547385483854938550385513855238553385543855538556385573855838559385603856138562385633856438565385663856738568385693857038571385723857338574385753857638577385783857938580385813858238583385843858538586385873858838589385903859138592385933859438595385963859738598385993860038601386023860338604386053860638607386083860938610386113861238613386143861538616386173861838619386203862138622386233862438625386263862738628386293863038631386323863338634386353863638637386383863938640386413864238643386443864538646386473864838649386503865138652386533865438655386563865738658386593866038661386623866338664386653866638667386683866938670386713867238673386743867538676386773867838679386803868138682386833868438685386863868738688386893869038691386923869338694386953869638697386983869938700387013870238703387043870538706387073870838709387103871138712387133871438715387163871738718387193872038721387223872338724387253872638727387283872938730387313873238733387343873538736387373873838739387403874138742387433874438745387463874738748387493875038751387523875338754387553875638757387583875938760387613876238763387643876538766387673876838769387703877138772387733877438775387763877738778387793878038781387823878338784387853878638787387883878938790387913879238793387943879538796387973879838799388003880138802388033880438805388063880738808388093881038811388123881338814388153881638817388183881938820388213882238823388243882538826388273882838829388303883138832388333883438835388363883738838388393884038841388423884338844388453884638847388483884938850388513885238853388543885538856388573885838859388603886138862388633886438865388663886738868388693887038871388723887338874388753887638877388783887938880388813888238883388843888538886388873888838889388903889138892388933889438895388963889738898388993890038901389023890338904389053890638907389083890938910389113891238913389143891538916389173891838919389203892138922389233892438925389263892738928389293893038931389323893338934389353893638937389383893938940389413894238943389443894538946389473894838949389503895138952389533895438955389563895738958389593896038961389623896338964389653896638967389683896938970389713897238973389743897538976389773897838979389803898138982389833898438985389863898738988389893899038991389923899338994389953899638997389983899939000390013900239003390043900539006390073900839009390103901139012390133901439015390163901739018390193902039021390223902339024390253902639027390283902939030390313903239033390343903539036390373903839039390403904139042390433904439045390463904739048390493905039051390523905339054390553905639057390583905939060390613906239063390643906539066390673906839069390703907139072390733907439075390763907739078390793908039081390823908339084390853908639087390883908939090390913909239093390943909539096390973909839099391003910139102391033910439105391063910739108391093911039111391123911339114391153911639117391183911939120391213912239123391243912539126391273912839129391303913139132391333913439135391363913739138391393914039141391423914339144391453914639147391483914939150391513915239153391543915539156391573915839159391603916139162391633916439165391663916739168391693917039171391723917339174391753917639177391783917939180391813918239183391843918539186391873918839189391903919139192391933919439195391963919739198391993920039201392023920339204392053920639207392083920939210392113921239213392143921539216392173921839219392203922139222392233922439225392263922739228392293923039231392323923339234392353923639237392383923939240392413924239243392443924539246392473924839249392503925139252392533925439255392563925739258392593926039261392623926339264392653926639267392683926939270392713927239273392743927539276392773927839279392803928139282392833928439285392863928739288392893929039291392923929339294392953929639297392983929939300393013930239303393043930539306393073930839309393103931139312393133931439315393163931739318393193932039321393223932339324393253932639327393283932939330393313933239333393343933539336393373933839339393403934139342393433934439345393463934739348393493935039351393523935339354393553935639357393583935939360393613936239363393643936539366393673936839369393703937139372393733937439375393763937739378393793938039381393823938339384393853938639387393883938939390393913939239393393943939539396393973939839399394003940139402394033940439405394063940739408394093941039411394123941339414394153941639417394183941939420394213942239423394243942539426394273942839429394303943139432394333943439435394363943739438394393944039441394423944339444394453944639447394483944939450394513945239453394543945539456394573945839459394603946139462394633946439465394663946739468394693947039471394723947339474394753947639477394783947939480394813948239483394843948539486394873948839489394903949139492394933949439495394963949739498394993950039501395023950339504395053950639507395083950939510395113951239513395143951539516395173951839519395203952139522395233952439525395263952739528395293953039531395323953339534395353953639537395383953939540395413954239543395443954539546395473954839549395503955139552395533955439555395563955739558395593956039561395623956339564395653956639567395683956939570395713957239573395743957539576395773957839579395803958139582395833958439585395863958739588395893959039591395923959339594395953959639597395983959939600396013960239603396043960539606396073960839609396103961139612396133961439615396163961739618396193962039621396223962339624396253962639627396283962939630396313963239633396343963539636396373963839639396403964139642396433964439645396463964739648396493965039651396523965339654396553965639657396583965939660396613966239663396643966539666396673966839669396703967139672396733967439675396763967739678396793968039681396823968339684396853968639687396883968939690396913969239693396943969539696396973969839699397003970139702397033970439705397063970739708397093971039711397123971339714397153971639717397183971939720397213972239723397243972539726397273972839729397303973139732397333973439735397363973739738397393974039741397423974339744397453974639747397483974939750397513975239753397543975539756397573975839759397603976139762397633976439765397663976739768397693977039771397723977339774397753977639777397783977939780397813978239783397843978539786397873978839789397903979139792397933979439795397963979739798397993980039801398023980339804398053980639807398083980939810398113981239813398143981539816398173981839819398203982139822398233982439825398263982739828398293983039831398323983339834398353983639837398383983939840398413984239843398443984539846398473984839849398503985139852398533985439855398563985739858398593986039861398623986339864398653986639867398683986939870398713987239873398743987539876398773987839879398803988139882398833988439885398863988739888398893989039891398923989339894398953989639897398983989939900399013990239903399043990539906399073990839909399103991139912399133991439915399163991739918399193992039921399223992339924399253992639927399283992939930399313993239933399343993539936399373993839939399403994139942399433994439945399463994739948399493995039951399523995339954399553995639957399583995939960399613996239963399643996539966399673996839969399703997139972399733997439975399763997739978399793998039981399823998339984399853998639987399883998939990399913999239993399943999539996399973999839999400004000140002400034000440005400064000740008400094001040011400124001340014400154001640017400184001940020400214002240023400244002540026400274002840029400304003140032400334003440035400364003740038400394004040041400424004340044400454004640047400484004940050400514005240053400544005540056400574005840059400604006140062400634006440065400664006740068400694007040071400724007340074400754007640077400784007940080400814008240083400844008540086400874008840089400904009140092400934009440095400964009740098400994010040101401024010340104401054010640107401084010940110401114011240113401144011540116401174011840119401204012140122401234012440125401264012740128401294013040131401324013340134401354013640137401384013940140401414014240143401444014540146401474014840149401504015140152401534015440155401564015740158401594016040161401624016340164401654016640167401684016940170401714017240173401744017540176401774017840179401804018140182401834018440185401864018740188401894019040191401924019340194401954019640197401984019940200402014020240203402044020540206402074020840209402104021140212402134021440215402164021740218402194022040221402224022340224402254022640227402284022940230402314023240233402344023540236402374023840239402404024140242402434024440245402464024740248402494025040251402524025340254402554025640257402584025940260402614026240263402644026540266402674026840269402704027140272402734027440275402764027740278402794028040281402824028340284402854028640287402884028940290402914029240293402944029540296402974029840299403004030140302403034030440305403064030740308403094031040311403124031340314403154031640317403184031940320403214032240323403244032540326403274032840329403304033140332403334033440335403364033740338403394034040341403424034340344403454034640347403484034940350403514035240353403544035540356403574035840359403604036140362403634036440365403664036740368403694037040371403724037340374403754037640377403784037940380403814038240383403844038540386403874038840389403904039140392403934039440395403964039740398403994040040401404024040340404404054040640407404084040940410404114041240413404144041540416404174041840419404204042140422404234042440425404264042740428404294043040431404324043340434404354043640437404384043940440404414044240443404444044540446404474044840449404504045140452404534045440455404564045740458404594046040461404624046340464404654046640467404684046940470404714047240473404744047540476404774047840479404804048140482404834048440485404864048740488404894049040491404924049340494404954049640497404984049940500405014050240503405044050540506405074050840509405104051140512405134051440515405164051740518405194052040521405224052340524405254052640527405284052940530405314053240533405344053540536405374053840539405404054140542405434054440545405464054740548405494055040551405524055340554405554055640557405584055940560405614056240563405644056540566405674056840569405704057140572405734057440575405764057740578405794058040581405824058340584405854058640587405884058940590405914059240593405944059540596405974059840599406004060140602406034060440605406064060740608406094061040611406124061340614406154061640617406184061940620406214062240623406244062540626406274062840629406304063140632406334063440635406364063740638406394064040641406424064340644406454064640647406484064940650406514065240653406544065540656406574065840659406604066140662406634066440665406664066740668406694067040671406724067340674406754067640677406784067940680406814068240683406844068540686406874068840689406904069140692406934069440695406964069740698406994070040701407024070340704407054070640707407084070940710407114071240713407144071540716407174071840719407204072140722407234072440725407264072740728407294073040731407324073340734407354073640737407384073940740407414074240743407444074540746407474074840749407504075140752407534075440755407564075740758407594076040761407624076340764407654076640767407684076940770407714077240773407744077540776407774077840779407804078140782407834078440785407864078740788407894079040791407924079340794407954079640797407984079940800408014080240803408044080540806408074080840809408104081140812408134081440815408164081740818408194082040821408224082340824408254082640827408284082940830408314083240833408344083540836408374083840839408404084140842408434084440845408464084740848408494085040851408524085340854408554085640857408584085940860408614086240863408644086540866408674086840869408704087140872408734087440875408764087740878408794088040881408824088340884408854088640887408884088940890408914089240893408944089540896408974089840899409004090140902409034090440905409064090740908409094091040911409124091340914409154091640917409184091940920409214092240923409244092540926409274092840929409304093140932409334093440935409364093740938409394094040941409424094340944409454094640947409484094940950409514095240953409544095540956409574095840959409604096140962409634096440965409664096740968409694097040971409724097340974409754097640977409784097940980409814098240983409844098540986409874098840989409904099140992409934099440995409964099740998409994100041001410024100341004410054100641007410084100941010410114101241013410144101541016410174101841019410204102141022410234102441025410264102741028410294103041031410324103341034410354103641037410384103941040410414104241043410444104541046410474104841049410504105141052410534105441055410564105741058410594106041061410624106341064410654106641067410684106941070410714107241073410744107541076410774107841079410804108141082410834108441085410864108741088410894109041091410924109341094410954109641097410984109941100411014110241103411044110541106411074110841109411104111141112411134111441115411164111741118411194112041121411224112341124411254112641127411284112941130411314113241133411344113541136411374113841139411404114141142411434114441145411464114741148411494115041151411524115341154411554115641157411584115941160411614116241163411644116541166411674116841169411704117141172411734117441175411764117741178411794118041181411824118341184411854118641187411884118941190411914119241193411944119541196411974119841199412004120141202412034120441205412064120741208412094121041211412124121341214412154121641217412184121941220412214122241223412244122541226412274122841229412304123141232412334123441235412364123741238412394124041241412424124341244412454124641247412484124941250412514125241253412544125541256412574125841259412604126141262412634126441265412664126741268412694127041271412724127341274412754127641277412784127941280412814128241283412844128541286412874128841289412904129141292412934129441295412964129741298412994130041301413024130341304413054130641307413084130941310413114131241313413144131541316413174131841319413204132141322413234132441325413264132741328413294133041331413324133341334413354133641337413384133941340413414134241343413444134541346413474134841349413504135141352413534135441355413564135741358413594136041361413624136341364413654136641367413684136941370413714137241373413744137541376413774137841379413804138141382413834138441385413864138741388413894139041391413924139341394413954139641397413984139941400414014140241403414044140541406414074140841409414104141141412414134141441415414164141741418414194142041421414224142341424414254142641427414284142941430414314143241433414344143541436414374143841439414404144141442414434144441445414464144741448414494145041451414524145341454414554145641457414584145941460414614146241463414644146541466414674146841469414704147141472414734147441475414764147741478414794148041481414824148341484414854148641487414884148941490414914149241493414944149541496414974149841499415004150141502415034150441505415064150741508415094151041511415124151341514415154151641517415184151941520415214152241523415244152541526415274152841529415304153141532415334153441535415364153741538415394154041541415424154341544415454154641547415484154941550415514155241553415544155541556415574155841559415604156141562415634156441565415664156741568415694157041571415724157341574415754157641577415784157941580415814158241583415844158541586415874158841589415904159141592415934159441595415964159741598415994160041601416024160341604416054160641607416084160941610416114161241613416144161541616416174161841619416204162141622416234162441625416264162741628416294163041631416324163341634416354163641637416384163941640416414164241643416444164541646416474164841649416504165141652416534165441655416564165741658416594166041661416624166341664416654166641667416684166941670416714167241673416744167541676416774167841679416804168141682416834168441685416864168741688416894169041691416924169341694416954169641697416984169941700417014170241703417044170541706417074170841709417104171141712417134171441715417164171741718417194172041721417224172341724417254172641727417284172941730417314173241733417344173541736417374173841739417404174141742417434174441745417464174741748417494175041751417524175341754417554175641757417584175941760417614176241763417644176541766417674176841769417704177141772417734177441775417764177741778417794178041781417824178341784417854178641787417884178941790417914179241793417944179541796417974179841799418004180141802418034180441805418064180741808418094181041811418124181341814418154181641817418184181941820418214182241823418244182541826418274182841829418304183141832418334183441835418364183741838418394184041841418424184341844418454184641847418484184941850418514185241853418544185541856418574185841859418604186141862418634186441865418664186741868418694187041871418724187341874418754187641877418784187941880418814188241883418844188541886418874188841889418904189141892418934189441895418964189741898418994190041901419024190341904419054190641907419084190941910419114191241913419144191541916419174191841919419204192141922419234192441925419264192741928419294193041931419324193341934419354193641937419384193941940419414194241943419444194541946419474194841949419504195141952419534195441955419564195741958419594196041961419624196341964419654196641967419684196941970419714197241973419744197541976419774197841979419804198141982419834198441985419864198741988419894199041991419924199341994419954199641997419984199942000420014200242003420044200542006420074200842009420104201142012420134201442015420164201742018420194202042021420224202342024420254202642027420284202942030420314203242033420344203542036420374203842039420404204142042420434204442045420464204742048420494205042051420524205342054420554205642057420584205942060420614206242063420644206542066420674206842069420704207142072420734207442075420764207742078420794208042081420824208342084420854208642087420884208942090420914209242093420944209542096420974209842099421004210142102421034210442105421064210742108421094211042111421124211342114421154211642117421184211942120421214212242123421244212542126421274212842129421304213142132421334213442135421364213742138421394214042141421424214342144421454214642147421484214942150421514215242153421544215542156421574215842159421604216142162421634216442165421664216742168421694217042171421724217342174421754217642177421784217942180421814218242183421844218542186421874218842189421904219142192421934219442195421964219742198421994220042201422024220342204422054220642207422084220942210422114221242213422144221542216422174221842219422204222142222422234222442225422264222742228422294223042231422324223342234422354223642237422384223942240422414224242243422444224542246422474224842249422504225142252422534225442255422564225742258422594226042261422624226342264422654226642267422684226942270422714227242273422744227542276422774227842279422804228142282422834228442285422864228742288422894229042291422924229342294422954229642297422984229942300423014230242303423044230542306423074230842309423104231142312423134231442315423164231742318423194232042321423224232342324423254232642327423284232942330423314233242333423344233542336423374233842339423404234142342423434234442345423464234742348423494235042351423524235342354423554235642357423584235942360423614236242363423644236542366423674236842369423704237142372423734237442375423764237742378423794238042381423824238342384423854238642387423884238942390423914239242393423944239542396423974239842399424004240142402424034240442405424064240742408424094241042411424124241342414424154241642417424184241942420424214242242423424244242542426424274242842429424304243142432424334243442435424364243742438424394244042441424424244342444424454244642447424484244942450424514245242453424544245542456424574245842459424604246142462424634246442465424664246742468424694247042471424724247342474424754247642477424784247942480424814248242483424844248542486424874248842489424904249142492424934249442495424964249742498424994250042501425024250342504425054250642507425084250942510425114251242513425144251542516425174251842519425204252142522425234252442525425264252742528425294253042531425324253342534425354253642537425384253942540425414254242543425444254542546425474254842549425504255142552425534255442555425564255742558425594256042561425624256342564425654256642567425684256942570425714257242573425744257542576425774257842579425804258142582425834258442585425864258742588425894259042591425924259342594425954259642597425984259942600426014260242603426044260542606426074260842609426104261142612426134261442615426164261742618426194262042621426224262342624426254262642627426284262942630426314263242633426344263542636426374263842639426404264142642426434264442645426464264742648426494265042651426524265342654426554265642657426584265942660426614266242663426644266542666426674266842669426704267142672426734267442675426764267742678426794268042681426824268342684426854268642687426884268942690426914269242693426944269542696426974269842699427004270142702427034270442705427064270742708427094271042711427124271342714427154271642717427184271942720427214272242723427244272542726427274272842729427304273142732427334273442735427364273742738427394274042741427424274342744427454274642747427484274942750427514275242753427544275542756427574275842759427604276142762427634276442765427664276742768427694277042771427724277342774427754277642777427784277942780427814278242783427844278542786427874278842789427904279142792427934279442795427964279742798427994280042801428024280342804428054280642807428084280942810428114281242813428144281542816428174281842819428204282142822428234282442825428264282742828428294283042831428324283342834428354283642837428384283942840428414284242843428444284542846428474284842849428504285142852428534285442855428564285742858428594286042861428624286342864428654286642867428684286942870428714287242873428744287542876428774287842879428804288142882428834288442885428864288742888428894289042891428924289342894428954289642897428984289942900429014290242903429044290542906429074290842909429104291142912429134291442915429164291742918429194292042921429224292342924429254292642927429284292942930429314293242933429344293542936429374293842939429404294142942429434294442945429464294742948429494295042951429524295342954429554295642957429584295942960429614296242963429644296542966429674296842969429704297142972429734297442975429764297742978429794298042981429824298342984429854298642987429884298942990429914299242993429944299542996429974299842999430004300143002430034300443005430064300743008430094301043011430124301343014430154301643017430184301943020430214302243023430244302543026430274302843029430304303143032430334303443035430364303743038430394304043041430424304343044430454304643047430484304943050430514305243053430544305543056430574305843059430604306143062430634306443065430664306743068430694307043071430724307343074430754307643077430784307943080430814308243083430844308543086430874308843089430904309143092430934309443095430964309743098430994310043101431024310343104431054310643107431084310943110431114311243113431144311543116431174311843119431204312143122431234312443125431264312743128431294313043131431324313343134431354313643137431384313943140431414314243143431444314543146431474314843149431504315143152431534315443155431564315743158431594316043161431624316343164431654316643167431684316943170431714317243173431744317543176431774317843179431804318143182431834318443185431864318743188431894319043191431924319343194431954319643197431984319943200432014320243203432044320543206432074320843209432104321143212432134321443215432164321743218432194322043221432224322343224432254322643227432284322943230432314323243233432344323543236432374323843239432404324143242432434324443245432464324743248432494325043251432524325343254432554325643257432584325943260432614326243263432644326543266432674326843269432704327143272432734327443275432764327743278432794328043281432824328343284432854328643287432884328943290432914329243293432944329543296432974329843299433004330143302433034330443305433064330743308433094331043311433124331343314433154331643317433184331943320433214332243323433244332543326433274332843329433304333143332433334333443335433364333743338433394334043341433424334343344433454334643347433484334943350433514335243353433544335543356433574335843359433604336143362433634336443365433664336743368433694337043371433724337343374433754337643377433784337943380433814338243383433844338543386433874338843389433904339143392433934339443395433964339743398433994340043401434024340343404434054340643407434084340943410434114341243413434144341543416434174341843419434204342143422434234342443425434264342743428434294343043431434324343343434434354343643437434384343943440434414344243443434444344543446434474344843449434504345143452434534345443455434564345743458434594346043461434624346343464434654346643467434684346943470434714347243473434744347543476434774347843479434804348143482434834348443485434864348743488434894349043491434924349343494434954349643497434984349943500435014350243503435044350543506435074350843509435104351143512435134351443515435164351743518435194352043521435224352343524435254352643527435284352943530435314353243533435344353543536435374353843539435404354143542435434354443545435464354743548435494355043551435524355343554435554355643557435584355943560435614356243563435644356543566435674356843569435704357143572435734357443575435764357743578435794358043581435824358343584435854358643587435884358943590435914359243593435944359543596435974359843599436004360143602436034360443605436064360743608436094361043611436124361343614436154361643617436184361943620436214362243623436244362543626436274362843629436304363143632436334363443635436364363743638436394364043641436424364343644436454364643647436484364943650436514365243653436544365543656436574365843659436604366143662436634366443665436664366743668436694367043671436724367343674436754367643677436784367943680436814368243683436844368543686436874368843689436904369143692436934369443695436964369743698436994370043701437024370343704437054370643707437084370943710437114371243713437144371543716437174371843719437204372143722437234372443725437264372743728437294373043731437324373343734437354373643737437384373943740437414374243743437444374543746437474374843749437504375143752437534375443755437564375743758437594376043761437624376343764437654376643767437684376943770437714377243773437744377543776437774377843779437804378143782437834378443785437864378743788437894379043791437924379343794437954379643797437984379943800438014380243803438044380543806438074380843809438104381143812438134381443815438164381743818438194382043821438224382343824438254382643827438284382943830438314383243833438344383543836438374383843839438404384143842438434384443845438464384743848438494385043851438524385343854438554385643857438584385943860438614386243863438644386543866438674386843869438704387143872438734387443875438764387743878438794388043881438824388343884438854388643887438884388943890438914389243893438944389543896438974389843899439004390143902439034390443905439064390743908439094391043911439124391343914439154391643917439184391943920439214392243923439244392543926439274392843929439304393143932439334393443935439364393743938439394394043941439424394343944439454394643947439484394943950439514395243953439544395543956439574395843959439604396143962439634396443965439664396743968439694397043971439724397343974439754397643977439784397943980439814398243983439844398543986439874398843989439904399143992439934399443995439964399743998439994400044001440024400344004440054400644007440084400944010440114401244013440144401544016440174401844019440204402144022440234402444025440264402744028440294403044031440324403344034440354403644037440384403944040440414404244043440444404544046440474404844049440504405144052440534405444055440564405744058440594406044061440624406344064440654406644067440684406944070440714407244073440744407544076440774407844079440804408144082440834408444085440864408744088440894409044091440924409344094440954409644097440984409944100441014410244103441044410544106441074410844109441104411144112441134411444115441164411744118441194412044121441224412344124441254412644127441284412944130441314413244133441344413544136441374413844139441404414144142441434414444145441464414744148441494415044151441524415344154441554415644157441584415944160441614416244163441644416544166441674416844169441704417144172441734417444175441764417744178441794418044181441824418344184441854418644187441884418944190441914419244193441944419544196441974419844199442004420144202442034420444205442064420744208442094421044211442124421344214442154421644217442184421944220442214422244223442244422544226442274422844229442304423144232442334423444235442364423744238442394424044241442424424344244442454424644247442484424944250442514425244253442544425544256442574425844259442604426144262442634426444265442664426744268442694427044271442724427344274442754427644277442784427944280442814428244283442844428544286442874428844289442904429144292442934429444295442964429744298442994430044301443024430344304443054430644307443084430944310443114431244313443144431544316443174431844319443204432144322443234432444325443264432744328443294433044331443324433344334443354433644337443384433944340443414434244343443444434544346443474434844349443504435144352443534435444355443564435744358443594436044361443624436344364443654436644367443684436944370443714437244373443744437544376443774437844379443804438144382443834438444385443864438744388443894439044391443924439344394443954439644397443984439944400444014440244403444044440544406444074440844409444104441144412444134441444415444164441744418444194442044421444224442344424444254442644427444284442944430444314443244433444344443544436444374443844439444404444144442444434444444445444464444744448444494445044451444524445344454444554445644457444584445944460444614446244463444644446544466444674446844469444704447144472444734447444475444764447744478444794448044481444824448344484444854448644487444884448944490444914449244493444944449544496444974449844499445004450144502445034450444505445064450744508445094451044511445124451344514445154451644517445184451944520445214452244523445244452544526445274452844529445304453144532445334453444535445364453744538445394454044541445424454344544445454454644547445484454944550445514455244553445544455544556445574455844559445604456144562445634456444565445664456744568445694457044571445724457344574445754457644577445784457944580445814458244583445844458544586445874458844589445904459144592445934459444595445964459744598445994460044601446024460344604446054460644607446084460944610446114461244613446144461544616446174461844619446204462144622446234462444625446264462744628446294463044631446324463344634446354463644637446384463944640446414464244643446444464544646446474464844649446504465144652446534465444655446564465744658446594466044661446624466344664446654466644667446684466944670446714467244673446744467544676446774467844679446804468144682446834468444685446864468744688446894469044691446924469344694446954469644697446984469944700447014470244703447044470544706447074470844709447104471144712447134471444715447164471744718447194472044721447224472344724447254472644727447284472944730447314473244733447344473544736447374473844739447404474144742447434474444745447464474744748447494475044751447524475344754447554475644757447584475944760447614476244763447644476544766447674476844769447704477144772447734477444775447764477744778447794478044781447824478344784447854478644787447884478944790447914479244793447944479544796447974479844799448004480144802448034480444805448064480744808448094481044811448124481344814448154481644817448184481944820448214482244823448244482544826448274482844829448304483144832448334483444835448364483744838448394484044841448424484344844448454484644847448484484944850448514485244853448544485544856448574485844859448604486144862448634486444865448664486744868448694487044871448724487344874448754487644877448784487944880448814488244883448844488544886448874488844889448904489144892448934489444895448964489744898448994490044901449024490344904449054490644907449084490944910449114491244913449144491544916449174491844919449204492144922449234492444925449264492744928449294493044931449324493344934449354493644937449384493944940449414494244943449444494544946449474494844949449504495144952449534495444955449564495744958449594496044961449624496344964449654496644967449684496944970449714497244973449744497544976449774497844979449804498144982449834498444985449864498744988449894499044991449924499344994449954499644997449984499945000450014500245003450044500545006450074500845009450104501145012450134501445015450164501745018450194502045021450224502345024450254502645027450284502945030450314503245033450344503545036450374503845039450404504145042450434504445045450464504745048450494505045051450524505345054450554505645057450584505945060450614506245063450644506545066450674506845069450704507145072450734507445075450764507745078450794508045081450824508345084450854508645087450884508945090450914509245093450944509545096450974509845099451004510145102451034510445105451064510745108451094511045111451124511345114451154511645117451184511945120451214512245123451244512545126451274512845129451304513145132451334513445135451364513745138451394514045141451424514345144451454514645147451484514945150451514515245153451544515545156451574515845159451604516145162451634516445165451664516745168451694517045171451724517345174451754517645177451784517945180451814518245183451844518545186451874518845189451904519145192451934519445195451964519745198451994520045201452024520345204452054520645207452084520945210452114521245213452144521545216452174521845219452204522145222452234522445225452264522745228452294523045231452324523345234452354523645237452384523945240452414524245243452444524545246452474524845249452504525145252452534525445255452564525745258452594526045261452624526345264452654526645267452684526945270452714527245273452744527545276452774527845279452804528145282452834528445285452864528745288452894529045291452924529345294452954529645297452984529945300453014530245303453044530545306453074530845309453104531145312453134531445315453164531745318453194532045321453224532345324453254532645327453284532945330453314533245333453344533545336453374533845339453404534145342453434534445345453464534745348453494535045351453524535345354453554535645357453584535945360453614536245363453644536545366453674536845369453704537145372453734537445375453764537745378453794538045381453824538345384453854538645387453884538945390453914539245393453944539545396453974539845399454004540145402454034540445405454064540745408454094541045411454124541345414454154541645417454184541945420454214542245423454244542545426454274542845429454304543145432454334543445435454364543745438454394544045441454424544345444454454544645447454484544945450454514545245453454544545545456454574545845459454604546145462454634546445465454664546745468454694547045471454724547345474454754547645477454784547945480454814548245483454844548545486454874548845489454904549145492454934549445495454964549745498454994550045501455024550345504455054550645507455084550945510455114551245513455144551545516455174551845519455204552145522455234552445525455264552745528455294553045531455324553345534455354553645537455384553945540455414554245543455444554545546455474554845549455504555145552455534555445555455564555745558455594556045561455624556345564455654556645567455684556945570455714557245573455744557545576455774557845579455804558145582455834558445585455864558745588455894559045591455924559345594455954559645597455984559945600456014560245603456044560545606456074560845609456104561145612456134561445615456164561745618456194562045621456224562345624456254562645627456284562945630456314563245633456344563545636456374563845639456404564145642456434564445645456464564745648456494565045651456524565345654456554565645657456584565945660456614566245663456644566545666456674566845669456704567145672456734567445675456764567745678456794568045681456824568345684456854568645687456884568945690456914569245693456944569545696456974569845699457004570145702457034570445705457064570745708457094571045711457124571345714457154571645717457184571945720457214572245723457244572545726457274572845729457304573145732457334573445735457364573745738457394574045741457424574345744457454574645747457484574945750457514575245753457544575545756457574575845759457604576145762457634576445765457664576745768457694577045771457724577345774457754577645777457784577945780457814578245783457844578545786457874578845789457904579145792457934579445795457964579745798457994580045801458024580345804458054580645807458084580945810458114581245813458144581545816458174581845819458204582145822458234582445825458264582745828458294583045831458324583345834458354583645837458384583945840458414584245843458444584545846458474584845849458504585145852458534585445855458564585745858458594586045861458624586345864458654586645867458684586945870458714587245873458744587545876458774587845879458804588145882458834588445885458864588745888458894589045891458924589345894458954589645897458984589945900459014590245903459044590545906459074590845909459104591145912459134591445915459164591745918459194592045921459224592345924459254592645927459284592945930459314593245933459344593545936459374593845939459404594145942459434594445945459464594745948459494595045951459524595345954459554595645957459584595945960459614596245963459644596545966459674596845969459704597145972459734597445975459764597745978459794598045981459824598345984459854598645987459884598945990459914599245993459944599545996459974599845999460004600146002460034600446005460064600746008460094601046011460124601346014460154601646017460184601946020460214602246023460244602546026460274602846029460304603146032460334603446035460364603746038460394604046041460424604346044460454604646047460484604946050460514605246053460544605546056460574605846059460604606146062460634606446065460664606746068460694607046071460724607346074460754607646077460784607946080460814608246083460844608546086460874608846089460904609146092460934609446095460964609746098460994610046101461024610346104461054610646107461084610946110461114611246113461144611546116461174611846119461204612146122461234612446125461264612746128461294613046131461324613346134461354613646137461384613946140461414614246143461444614546146461474614846149461504615146152461534615446155461564615746158461594616046161461624616346164461654616646167461684616946170461714617246173461744617546176461774617846179461804618146182461834618446185461864618746188461894619046191461924619346194461954619646197461984619946200462014620246203462044620546206462074620846209462104621146212462134621446215462164621746218462194622046221462224622346224462254622646227462284622946230462314623246233462344623546236462374623846239462404624146242462434624446245462464624746248462494625046251462524625346254462554625646257462584625946260462614626246263462644626546266462674626846269462704627146272462734627446275462764627746278462794628046281462824628346284462854628646287462884628946290462914629246293462944629546296462974629846299463004630146302463034630446305463064630746308463094631046311463124631346314463154631646317463184631946320463214632246323463244632546326463274632846329463304633146332463334633446335463364633746338463394634046341463424634346344463454634646347463484634946350463514635246353463544635546356463574635846359463604636146362463634636446365463664636746368463694637046371463724637346374463754637646377463784637946380463814638246383463844638546386463874638846389463904639146392463934639446395463964639746398463994640046401464024640346404464054640646407464084640946410464114641246413464144641546416464174641846419464204642146422464234642446425464264642746428464294643046431464324643346434464354643646437464384643946440464414644246443464444644546446464474644846449464504645146452464534645446455464564645746458464594646046461464624646346464464654646646467464684646946470464714647246473464744647546476464774647846479464804648146482464834648446485464864648746488464894649046491464924649346494464954649646497464984649946500465014650246503465044650546506465074650846509465104651146512465134651446515465164651746518465194652046521465224652346524465254652646527465284652946530465314653246533465344653546536465374653846539465404654146542465434654446545465464654746548465494655046551465524655346554465554655646557465584655946560465614656246563465644656546566465674656846569465704657146572465734657446575465764657746578465794658046581465824658346584465854658646587465884658946590465914659246593465944659546596465974659846599466004660146602466034660446605466064660746608466094661046611466124661346614466154661646617466184661946620466214662246623466244662546626466274662846629466304663146632466334663446635466364663746638466394664046641466424664346644466454664646647466484664946650466514665246653466544665546656466574665846659466604666146662466634666446665466664666746668466694667046671466724667346674466754667646677466784667946680466814668246683466844668546686466874668846689466904669146692466934669446695466964669746698466994670046701467024670346704467054670646707467084670946710467114671246713467144671546716467174671846719467204672146722467234672446725467264672746728467294673046731467324673346734467354673646737467384673946740467414674246743467444674546746467474674846749467504675146752467534675446755467564675746758467594676046761467624676346764467654676646767467684676946770467714677246773467744677546776467774677846779467804678146782467834678446785467864678746788467894679046791467924679346794467954679646797467984679946800468014680246803468044680546806468074680846809468104681146812468134681446815468164681746818468194682046821468224682346824468254682646827468284682946830468314683246833468344683546836468374683846839468404684146842468434684446845468464684746848468494685046851468524685346854468554685646857468584685946860468614686246863468644686546866468674686846869468704687146872468734687446875468764687746878468794688046881468824688346884468854688646887468884688946890468914689246893468944689546896468974689846899469004690146902469034690446905469064690746908469094691046911469124691346914469154691646917469184691946920469214692246923469244692546926469274692846929469304693146932469334693446935469364693746938469394694046941469424694346944469454694646947469484694946950469514695246953469544695546956469574695846959469604696146962469634696446965469664696746968469694697046971469724697346974469754697646977469784697946980469814698246983469844698546986469874698846989469904699146992469934699446995469964699746998469994700047001470024700347004470054700647007470084700947010470114701247013470144701547016470174701847019470204702147022470234702447025470264702747028470294703047031470324703347034470354703647037470384703947040470414704247043470444704547046470474704847049470504705147052470534705447055470564705747058470594706047061470624706347064470654706647067470684706947070470714707247073470744707547076470774707847079470804708147082470834708447085470864708747088470894709047091470924709347094470954709647097470984709947100471014710247103471044710547106471074710847109471104711147112471134711447115471164711747118471194712047121471224712347124471254712647127471284712947130471314713247133471344713547136471374713847139471404714147142471434714447145471464714747148471494715047151471524715347154471554715647157471584715947160471614716247163471644716547166471674716847169471704717147172471734717447175471764717747178471794718047181471824718347184471854718647187471884718947190471914719247193471944719547196471974719847199472004720147202472034720447205472064720747208472094721047211472124721347214472154721647217472184721947220472214722247223472244722547226472274722847229472304723147232472334723447235472364723747238472394724047241472424724347244472454724647247472484724947250472514725247253472544725547256472574725847259472604726147262472634726447265472664726747268472694727047271472724727347274472754727647277472784727947280472814728247283472844728547286472874728847289472904729147292472934729447295472964729747298472994730047301473024730347304473054730647307473084730947310473114731247313473144731547316473174731847319473204732147322473234732447325473264732747328473294733047331473324733347334473354733647337473384733947340473414734247343473444734547346473474734847349473504735147352473534735447355473564735747358473594736047361473624736347364473654736647367473684736947370473714737247373473744737547376473774737847379473804738147382473834738447385473864738747388473894739047391473924739347394473954739647397473984739947400474014740247403474044740547406474074740847409474104741147412474134741447415474164741747418474194742047421474224742347424474254742647427474284742947430474314743247433474344743547436474374743847439474404744147442474434744447445474464744747448474494745047451474524745347454474554745647457474584745947460474614746247463474644746547466474674746847469474704747147472474734747447475474764747747478474794748047481474824748347484474854748647487474884748947490474914749247493474944749547496474974749847499475004750147502475034750447505475064750747508475094751047511475124751347514475154751647517475184751947520475214752247523475244752547526475274752847529475304753147532475334753447535475364753747538475394754047541475424754347544475454754647547475484754947550475514755247553475544755547556475574755847559475604756147562475634756447565475664756747568475694757047571475724757347574475754757647577475784757947580475814758247583475844758547586475874758847589475904759147592475934759447595475964759747598475994760047601476024760347604476054760647607476084760947610476114761247613476144761547616476174761847619476204762147622476234762447625476264762747628476294763047631476324763347634476354763647637476384763947640476414764247643476444764547646476474764847649476504765147652476534765447655476564765747658476594766047661476624766347664476654766647667476684766947670476714767247673476744767547676476774767847679476804768147682476834768447685476864768747688476894769047691476924769347694476954769647697476984769947700477014770247703477044770547706477074770847709477104771147712477134771447715477164771747718477194772047721477224772347724477254772647727477284772947730477314773247733477344773547736477374773847739477404774147742477434774447745477464774747748477494775047751477524775347754477554775647757477584775947760477614776247763477644776547766477674776847769477704777147772477734777447775477764777747778477794778047781477824778347784477854778647787477884778947790477914779247793477944779547796477974779847799478004780147802478034780447805478064780747808478094781047811478124781347814478154781647817478184781947820478214782247823478244782547826478274782847829478304783147832478334783447835478364783747838478394784047841478424784347844478454784647847478484784947850478514785247853478544785547856478574785847859478604786147862478634786447865478664786747868478694787047871478724787347874478754787647877478784787947880478814788247883478844788547886478874788847889478904789147892478934789447895478964789747898478994790047901479024790347904479054790647907479084790947910479114791247913479144791547916479174791847919479204792147922479234792447925479264792747928479294793047931479324793347934479354793647937479384793947940479414794247943479444794547946479474794847949479504795147952479534795447955479564795747958479594796047961479624796347964479654796647967479684796947970479714797247973479744797547976479774797847979479804798147982479834798447985479864798747988479894799047991479924799347994479954799647997479984799948000480014800248003480044800548006480074800848009480104801148012480134801448015480164801748018480194802048021480224802348024480254802648027480284802948030480314803248033480344803548036480374803848039480404804148042480434804448045480464804748048480494805048051480524805348054480554805648057480584805948060480614806248063480644806548066480674806848069480704807148072480734807448075480764807748078480794808048081480824808348084480854808648087480884808948090480914809248093480944809548096480974809848099481004810148102481034810448105481064810748108481094811048111481124811348114481154811648117481184811948120481214812248123481244812548126481274812848129481304813148132481334813448135481364813748138481394814048141481424814348144481454814648147481484814948150481514815248153481544815548156481574815848159481604816148162481634816448165481664816748168481694817048171481724817348174481754817648177481784817948180481814818248183481844818548186481874818848189481904819148192481934819448195481964819748198481994820048201482024820348204482054820648207482084820948210482114821248213482144821548216482174821848219482204822148222482234822448225482264822748228482294823048231482324823348234482354823648237482384823948240482414824248243482444824548246482474824848249482504825148252482534825448255482564825748258482594826048261482624826348264482654826648267482684826948270482714827248273482744827548276482774827848279482804828148282482834828448285482864828748288482894829048291482924829348294482954829648297482984829948300483014830248303483044830548306483074830848309483104831148312483134831448315483164831748318483194832048321483224832348324483254832648327483284832948330483314833248333483344833548336483374833848339483404834148342483434834448345483464834748348483494835048351483524835348354483554835648357483584835948360483614836248363483644836548366483674836848369483704837148372483734837448375483764837748378483794838048381483824838348384483854838648387483884838948390483914839248393483944839548396483974839848399484004840148402484034840448405484064840748408484094841048411484124841348414484154841648417484184841948420484214842248423484244842548426484274842848429484304843148432484334843448435484364843748438484394844048441484424844348444484454844648447484484844948450484514845248453484544845548456484574845848459484604846148462484634846448465484664846748468484694847048471484724847348474484754847648477484784847948480484814848248483484844848548486484874848848489484904849148492484934849448495484964849748498484994850048501485024850348504485054850648507485084850948510485114851248513485144851548516485174851848519485204852148522485234852448525485264852748528485294853048531485324853348534485354853648537485384853948540485414854248543485444854548546485474854848549485504855148552485534855448555485564855748558485594856048561485624856348564485654856648567485684856948570485714857248573485744857548576485774857848579485804858148582485834858448585485864858748588485894859048591485924859348594485954859648597485984859948600486014860248603486044860548606486074860848609486104861148612486134861448615486164861748618486194862048621486224862348624486254862648627486284862948630486314863248633486344863548636486374863848639486404864148642486434864448645486464864748648486494865048651486524865348654486554865648657486584865948660486614866248663486644866548666486674866848669486704867148672486734867448675486764867748678486794868048681486824868348684486854868648687486884868948690486914869248693486944869548696486974869848699487004870148702487034870448705487064870748708487094871048711487124871348714487154871648717487184871948720487214872248723487244872548726487274872848729487304873148732487334873448735487364873748738487394874048741487424874348744487454874648747487484874948750487514875248753487544875548756487574875848759487604876148762487634876448765487664876748768487694877048771487724877348774487754877648777487784877948780487814878248783487844878548786487874878848789487904879148792487934879448795487964879748798487994880048801488024880348804488054880648807488084880948810488114881248813488144881548816488174881848819488204882148822488234882448825488264882748828488294883048831488324883348834488354883648837488384883948840488414884248843488444884548846488474884848849488504885148852488534885448855488564885748858488594886048861488624886348864488654886648867488684886948870488714887248873488744887548876488774887848879488804888148882488834888448885488864888748888488894889048891488924889348894488954889648897488984889948900489014890248903489044890548906489074890848909489104891148912489134891448915489164891748918489194892048921489224892348924489254892648927489284892948930489314893248933489344893548936489374893848939489404894148942489434894448945489464894748948489494895048951489524895348954489554895648957489584895948960489614896248963489644896548966489674896848969489704897148972489734897448975489764897748978489794898048981489824898348984489854898648987489884898948990489914899248993489944899548996489974899848999490004900149002490034900449005490064900749008490094901049011490124901349014490154901649017490184901949020490214902249023490244902549026490274902849029490304903149032490334903449035490364903749038490394904049041490424904349044490454904649047490484904949050490514905249053490544905549056490574905849059490604906149062490634906449065490664906749068490694907049071490724907349074490754907649077490784907949080490814908249083490844908549086490874908849089490904909149092490934909449095490964909749098490994910049101491024910349104491054910649107491084910949110491114911249113491144911549116491174911849119491204912149122491234912449125491264912749128491294913049131491324913349134491354913649137491384913949140491414914249143491444914549146491474914849149491504915149152491534915449155491564915749158491594916049161491624916349164491654916649167491684916949170491714917249173491744917549176491774917849179491804918149182491834918449185491864918749188491894919049191491924919349194491954919649197491984919949200492014920249203492044920549206492074920849209492104921149212492134921449215492164921749218492194922049221492224922349224492254922649227492284922949230492314923249233492344923549236492374923849239492404924149242492434924449245492464924749248492494925049251492524925349254492554925649257492584925949260492614926249263492644926549266492674926849269492704927149272492734927449275492764927749278492794928049281492824928349284492854928649287492884928949290492914929249293492944929549296492974929849299493004930149302493034930449305493064930749308493094931049311493124931349314493154931649317493184931949320493214932249323493244932549326493274932849329493304933149332493334933449335493364933749338493394934049341493424934349344493454934649347493484934949350493514935249353493544935549356493574935849359493604936149362493634936449365493664936749368493694937049371493724937349374493754937649377493784937949380493814938249383493844938549386493874938849389493904939149392493934939449395493964939749398493994940049401494024940349404494054940649407494084940949410494114941249413494144941549416494174941849419494204942149422494234942449425494264942749428494294943049431494324943349434494354943649437494384943949440494414944249443494444944549446494474944849449494504945149452494534945449455494564945749458494594946049461494624946349464494654946649467494684946949470494714947249473494744947549476494774947849479494804948149482494834948449485494864948749488494894949049491494924949349494494954949649497494984949949500495014950249503495044950549506495074950849509495104951149512495134951449515495164951749518495194952049521495224952349524495254952649527495284952949530495314953249533495344953549536495374953849539495404954149542495434954449545495464954749548495494955049551495524955349554495554955649557495584955949560495614956249563495644956549566495674956849569495704957149572495734957449575495764957749578495794958049581495824958349584495854958649587495884958949590495914959249593495944959549596495974959849599496004960149602496034960449605496064960749608496094961049611496124961349614496154961649617496184961949620496214962249623496244962549626496274962849629496304963149632496334963449635496364963749638496394964049641496424964349644496454964649647496484964949650496514965249653496544965549656496574965849659496604966149662496634966449665496664966749668496694967049671496724967349674496754967649677496784967949680496814968249683496844968549686496874968849689496904969149692496934969449695496964969749698496994970049701497024970349704497054970649707497084970949710497114971249713497144971549716497174971849719497204972149722497234972449725497264972749728497294973049731497324973349734497354973649737497384973949740497414974249743497444974549746497474974849749497504975149752497534975449755497564975749758497594976049761497624976349764497654976649767497684976949770497714977249773497744977549776497774977849779497804978149782497834978449785497864978749788497894979049791497924979349794497954979649797497984979949800498014980249803498044980549806498074980849809498104981149812498134981449815498164981749818498194982049821498224982349824498254982649827498284982949830498314983249833498344983549836498374983849839498404984149842498434984449845498464984749848498494985049851498524985349854498554985649857498584985949860498614986249863498644986549866498674986849869498704987149872498734987449875498764987749878498794988049881498824988349884498854988649887498884988949890498914989249893498944989549896498974989849899499004990149902499034990449905499064990749908499094991049911499124991349914499154991649917499184991949920499214992249923499244992549926499274992849929499304993149932499334993449935499364993749938499394994049941499424994349944499454994649947499484994949950499514995249953499544995549956499574995849959499604996149962499634996449965499664996749968499694997049971499724997349974499754997649977499784997949980499814998249983499844998549986499874998849989499904999149992499934999449995499964999749998499995000050001500025000350004500055000650007500085000950010500115001250013500145001550016500175001850019500205002150022500235002450025500265002750028500295003050031500325003350034500355003650037500385003950040500415004250043500445004550046500475004850049500505005150052500535005450055500565005750058500595006050061500625006350064500655006650067500685006950070500715007250073500745007550076500775007850079500805008150082500835008450085500865008750088500895009050091500925009350094500955009650097500985009950100501015010250103501045010550106501075010850109501105011150112501135011450115501165011750118501195012050121501225012350124501255012650127501285012950130501315013250133501345013550136501375013850139501405014150142501435014450145501465014750148501495015050151501525015350154501555015650157501585015950160501615016250163501645016550166501675016850169501705017150172501735017450175501765017750178501795018050181501825018350184501855018650187501885018950190501915019250193501945019550196501975019850199502005020150202502035020450205502065020750208502095021050211502125021350214502155021650217502185021950220502215022250223502245022550226502275022850229502305023150232502335023450235502365023750238502395024050241502425024350244502455024650247502485024950250502515025250253502545025550256502575025850259502605026150262502635026450265502665026750268502695027050271502725027350274502755027650277502785027950280502815028250283502845028550286502875028850289502905029150292502935029450295502965029750298502995030050301503025030350304503055030650307503085030950310503115031250313503145031550316503175031850319503205032150322503235032450325503265032750328503295033050331503325033350334503355033650337503385033950340503415034250343503445034550346503475034850349503505035150352503535035450355503565035750358503595036050361503625036350364503655036650367503685036950370503715037250373503745037550376503775037850379503805038150382503835038450385503865038750388503895039050391503925039350394503955039650397503985039950400504015040250403504045040550406504075040850409504105041150412504135041450415504165041750418504195042050421504225042350424504255042650427504285042950430504315043250433504345043550436504375043850439504405044150442504435044450445504465044750448504495045050451504525045350454504555045650457504585045950460504615046250463504645046550466504675046850469504705047150472504735047450475504765047750478504795048050481504825048350484504855048650487504885048950490504915049250493504945049550496504975049850499505005050150502505035050450505505065050750508505095051050511505125051350514505155051650517505185051950520505215052250523505245052550526505275052850529505305053150532505335053450535505365053750538505395054050541505425054350544505455054650547505485054950550505515055250553505545055550556505575055850559505605056150562505635056450565505665056750568505695057050571505725057350574505755057650577505785057950580505815058250583505845058550586505875058850589505905059150592505935059450595505965059750598505995060050601506025060350604506055060650607506085060950610506115061250613506145061550616506175061850619506205062150622506235062450625506265062750628506295063050631506325063350634506355063650637506385063950640506415064250643506445064550646506475064850649506505065150652506535065450655506565065750658506595066050661506625066350664506655066650667506685066950670506715067250673506745067550676506775067850679506805068150682506835068450685506865068750688506895069050691506925069350694506955069650697506985069950700507015070250703507045070550706507075070850709507105071150712507135071450715507165071750718507195072050721507225072350724507255072650727507285072950730507315073250733507345073550736507375073850739507405074150742507435074450745507465074750748507495075050751507525075350754507555075650757507585075950760507615076250763507645076550766507675076850769507705077150772507735077450775507765077750778507795078050781507825078350784507855078650787507885078950790507915079250793507945079550796507975079850799508005080150802508035080450805508065080750808508095081050811508125081350814508155081650817508185081950820508215082250823508245082550826508275082850829508305083150832508335083450835508365083750838508395084050841508425084350844508455084650847508485084950850508515085250853508545085550856508575085850859508605086150862508635086450865508665086750868508695087050871508725087350874508755087650877508785087950880508815088250883508845088550886508875088850889508905089150892508935089450895508965089750898508995090050901509025090350904509055090650907509085090950910509115091250913509145091550916509175091850919509205092150922509235092450925509265092750928509295093050931509325093350934509355093650937509385093950940509415094250943509445094550946509475094850949509505095150952509535095450955509565095750958509595096050961509625096350964509655096650967509685096950970509715097250973509745097550976509775097850979509805098150982509835098450985509865098750988509895099050991509925099350994509955099650997509985099951000510015100251003510045100551006510075100851009510105101151012510135101451015510165101751018510195102051021510225102351024510255102651027510285102951030510315103251033510345103551036510375103851039510405104151042510435104451045510465104751048510495105051051510525105351054510555105651057510585105951060510615106251063510645106551066510675106851069510705107151072510735107451075510765107751078510795108051081510825108351084510855108651087510885108951090510915109251093510945109551096510975109851099511005110151102511035110451105511065110751108511095111051111511125111351114511155111651117511185111951120511215112251123511245112551126511275112851129511305113151132511335113451135511365113751138511395114051141511425114351144511455114651147511485114951150511515115251153511545115551156511575115851159511605116151162511635116451165511665116751168511695117051171511725117351174511755117651177511785117951180511815118251183511845118551186511875118851189511905119151192511935119451195511965119751198511995120051201512025120351204512055120651207512085120951210512115121251213512145121551216512175121851219512205122151222512235122451225512265122751228512295123051231512325123351234512355123651237512385123951240512415124251243512445124551246512475124851249512505125151252512535125451255512565125751258512595126051261512625126351264512655126651267512685126951270512715127251273512745127551276512775127851279512805128151282512835128451285512865128751288512895129051291512925129351294512955129651297512985129951300513015130251303513045130551306513075130851309513105131151312513135131451315513165131751318513195132051321513225132351324513255132651327513285132951330513315133251333513345133551336513375133851339513405134151342513435134451345513465134751348513495135051351513525135351354513555135651357513585135951360513615136251363513645136551366513675136851369513705137151372513735137451375513765137751378513795138051381513825138351384513855138651387513885138951390513915139251393513945139551396513975139851399514005140151402514035140451405514065140751408514095141051411514125141351414514155141651417514185141951420514215142251423514245142551426514275142851429514305143151432514335143451435514365143751438514395144051441514425144351444514455144651447514485144951450514515145251453514545145551456514575145851459514605146151462514635146451465514665146751468514695147051471514725147351474514755147651477514785147951480514815148251483514845148551486514875148851489514905149151492514935149451495514965149751498514995150051501515025150351504515055150651507515085150951510515115151251513515145151551516515175151851519515205152151522515235152451525515265152751528515295153051531515325153351534515355153651537515385153951540515415154251543515445154551546515475154851549515505155151552515535155451555515565155751558515595156051561515625156351564515655156651567515685156951570515715157251573515745157551576515775157851579515805158151582515835158451585515865158751588515895159051591515925159351594515955159651597515985159951600516015160251603516045160551606516075160851609516105161151612516135161451615516165161751618516195162051621516225162351624516255162651627516285162951630516315163251633516345163551636516375163851639516405164151642516435164451645516465164751648516495165051651516525165351654516555165651657516585165951660516615166251663516645166551666516675166851669516705167151672516735167451675516765167751678516795168051681516825168351684516855168651687516885168951690516915169251693516945169551696516975169851699517005170151702517035170451705517065170751708517095171051711517125171351714517155171651717517185171951720517215172251723517245172551726517275172851729517305173151732517335173451735517365173751738517395174051741517425174351744517455174651747517485174951750517515175251753517545175551756517575175851759517605176151762517635176451765517665176751768517695177051771517725177351774517755177651777517785177951780517815178251783517845178551786517875178851789517905179151792517935179451795517965179751798517995180051801518025180351804518055180651807518085180951810518115181251813518145181551816518175181851819518205182151822518235182451825518265182751828518295183051831518325183351834518355183651837518385183951840518415184251843518445184551846518475184851849518505185151852518535185451855518565185751858518595186051861518625186351864518655186651867518685186951870518715187251873518745187551876518775187851879518805188151882518835188451885518865188751888518895189051891518925189351894518955189651897518985189951900519015190251903519045190551906519075190851909519105191151912519135191451915519165191751918519195192051921519225192351924519255192651927519285192951930519315193251933519345193551936519375193851939519405194151942519435194451945519465194751948519495195051951519525195351954519555195651957519585195951960519615196251963519645196551966519675196851969519705197151972519735197451975519765197751978519795198051981519825198351984519855198651987519885198951990519915199251993519945199551996519975199851999520005200152002520035200452005520065200752008520095201052011520125201352014520155201652017520185201952020520215202252023520245202552026520275202852029520305203152032520335203452035520365203752038520395204052041520425204352044520455204652047520485204952050520515205252053520545205552056520575205852059520605206152062520635206452065520665206752068520695207052071520725207352074520755207652077520785207952080520815208252083520845208552086520875208852089520905209152092520935209452095520965209752098520995210052101521025210352104521055210652107521085210952110521115211252113521145211552116521175211852119521205212152122521235212452125521265212752128521295213052131521325213352134521355213652137521385213952140521415214252143521445214552146521475214852149521505215152152521535215452155521565215752158521595216052161521625216352164521655216652167521685216952170521715217252173521745217552176521775217852179521805218152182521835218452185521865218752188521895219052191521925219352194521955219652197521985219952200522015220252203522045220552206522075220852209522105221152212522135221452215522165221752218522195222052221522225222352224522255222652227522285222952230522315223252233522345223552236522375223852239522405224152242522435224452245522465224752248522495225052251522525225352254522555225652257522585225952260522615226252263522645226552266522675226852269522705227152272522735227452275522765227752278522795228052281522825228352284522855228652287522885228952290522915229252293522945229552296522975229852299523005230152302523035230452305523065230752308523095231052311523125231352314523155231652317523185231952320523215232252323523245232552326523275232852329523305233152332523335233452335523365233752338523395234052341523425234352344523455234652347523485234952350523515235252353523545235552356523575235852359523605236152362523635236452365523665236752368523695237052371523725237352374523755237652377523785237952380523815238252383523845238552386523875238852389523905239152392523935239452395523965239752398523995240052401524025240352404524055240652407524085240952410524115241252413524145241552416524175241852419524205242152422524235242452425524265242752428524295243052431524325243352434524355243652437524385243952440524415244252443524445244552446524475244852449524505245152452524535245452455524565245752458524595246052461524625246352464524655246652467524685246952470524715247252473524745247552476524775247852479524805248152482524835248452485524865248752488524895249052491524925249352494524955249652497524985249952500525015250252503525045250552506525075250852509525105251152512525135251452515525165251752518525195252052521525225252352524525255252652527525285252952530525315253252533525345253552536525375253852539525405254152542525435254452545525465254752548525495255052551525525255352554525555255652557525585255952560525615256252563525645256552566525675256852569525705257152572525735257452575525765257752578525795258052581525825258352584525855258652587525885258952590525915259252593525945259552596525975259852599526005260152602526035260452605526065260752608526095261052611526125261352614526155261652617526185261952620526215262252623526245262552626526275262852629526305263152632526335263452635526365263752638526395264052641526425264352644526455264652647526485264952650526515265252653526545265552656526575265852659526605266152662526635266452665526665266752668526695267052671526725267352674526755267652677526785267952680526815268252683526845268552686526875268852689526905269152692526935269452695526965269752698526995270052701527025270352704527055270652707527085270952710527115271252713527145271552716527175271852719527205272152722527235272452725527265272752728527295273052731527325273352734527355273652737527385273952740527415274252743527445274552746527475274852749527505275152752527535275452755527565275752758527595276052761527625276352764527655276652767527685276952770527715277252773527745277552776527775277852779527805278152782527835278452785527865278752788527895279052791527925279352794527955279652797527985279952800528015280252803528045280552806528075280852809528105281152812528135281452815528165281752818528195282052821528225282352824528255282652827528285282952830528315283252833528345283552836528375283852839528405284152842528435284452845528465284752848528495285052851528525285352854528555285652857528585285952860528615286252863528645286552866528675286852869528705287152872528735287452875528765287752878528795288052881528825288352884528855288652887528885288952890528915289252893528945289552896528975289852899529005290152902529035290452905529065290752908529095291052911529125291352914529155291652917529185291952920529215292252923529245292552926529275292852929529305293152932529335293452935529365293752938529395294052941529425294352944529455294652947529485294952950529515295252953529545295552956529575295852959529605296152962529635296452965529665296752968529695297052971529725297352974529755297652977529785297952980529815298252983529845298552986529875298852989529905299152992529935299452995529965299752998529995300053001530025300353004530055300653007530085300953010530115301253013530145301553016530175301853019530205302153022530235302453025530265302753028530295303053031530325303353034530355303653037530385303953040530415304253043530445304553046530475304853049530505305153052530535305453055530565305753058530595306053061530625306353064530655306653067530685306953070530715307253073530745307553076530775307853079530805308153082530835308453085530865308753088530895309053091530925309353094530955309653097530985309953100531015310253103531045310553106531075310853109531105311153112531135311453115531165311753118531195312053121531225312353124531255312653127531285312953130531315313253133531345313553136531375313853139531405314153142531435314453145531465314753148531495315053151531525315353154531555315653157531585315953160531615316253163531645316553166531675316853169531705317153172531735317453175531765317753178531795318053181531825318353184531855318653187531885318953190531915319253193531945319553196531975319853199532005320153202532035320453205532065320753208532095321053211532125321353214532155321653217532185321953220532215322253223532245322553226532275322853229532305323153232532335323453235532365323753238532395324053241532425324353244532455324653247532485324953250532515325253253532545325553256532575325853259532605326153262532635326453265532665326753268532695327053271532725327353274532755327653277532785327953280532815328253283532845328553286532875328853289532905329153292532935329453295532965329753298532995330053301533025330353304533055330653307533085330953310533115331253313533145331553316533175331853319533205332153322533235332453325533265332753328533295333053331533325333353334533355333653337533385333953340533415334253343533445334553346533475334853349533505335153352533535335453355533565335753358533595336053361533625336353364533655336653367533685336953370533715337253373533745337553376533775337853379533805338153382533835338453385533865338753388533895339053391533925339353394533955339653397533985339953400534015340253403534045340553406534075340853409534105341153412534135341453415534165341753418534195342053421534225342353424534255342653427534285342953430534315343253433534345343553436534375343853439534405344153442534435344453445534465344753448534495345053451534525345353454534555345653457534585345953460534615346253463534645346553466534675346853469534705347153472534735347453475534765347753478534795348053481534825348353484534855348653487534885348953490534915349253493534945349553496534975349853499535005350153502535035350453505535065350753508535095351053511535125351353514535155351653517535185351953520535215352253523535245352553526535275352853529535305353153532535335353453535535365353753538535395354053541535425354353544535455354653547535485354953550535515355253553535545355553556535575355853559535605356153562535635356453565535665356753568535695357053571535725357353574535755357653577535785357953580535815358253583535845358553586535875358853589535905359153592535935359453595535965359753598535995360053601536025360353604536055360653607536085360953610536115361253613536145361553616536175361853619536205362153622536235362453625536265362753628536295363053631536325363353634536355363653637536385363953640536415364253643536445364553646536475364853649536505365153652536535365453655536565365753658536595366053661536625366353664536655366653667536685366953670536715367253673536745367553676536775367853679536805368153682536835368453685536865368753688536895369053691536925369353694536955369653697536985369953700537015370253703537045370553706537075370853709537105371153712537135371453715537165371753718537195372053721537225372353724537255372653727537285372953730537315373253733537345373553736537375373853739537405374153742537435374453745537465374753748537495375053751537525375353754537555375653757537585375953760537615376253763537645376553766537675376853769537705377153772537735377453775537765377753778537795378053781537825378353784537855378653787537885378953790537915379253793537945379553796537975379853799538005380153802538035380453805538065380753808538095381053811538125381353814538155381653817538185381953820538215382253823538245382553826538275382853829538305383153832538335383453835538365383753838538395384053841538425384353844538455384653847538485384953850538515385253853538545385553856538575385853859538605386153862538635386453865538665386753868538695387053871538725387353874538755387653877538785387953880538815388253883538845388553886538875388853889538905389153892538935389453895538965389753898538995390053901539025390353904539055390653907539085390953910539115391253913539145391553916539175391853919539205392153922539235392453925539265392753928539295393053931539325393353934539355393653937539385393953940539415394253943539445394553946539475394853949539505395153952539535395453955539565395753958539595396053961539625396353964539655396653967539685396953970539715397253973539745397553976539775397853979539805398153982539835398453985539865398753988539895399053991539925399353994539955399653997539985399954000540015400254003540045400554006540075400854009540105401154012540135401454015540165401754018540195402054021540225402354024540255402654027540285402954030540315403254033540345403554036540375403854039540405404154042540435404454045540465404754048540495405054051540525405354054540555405654057540585405954060540615406254063540645406554066540675406854069540705407154072540735407454075540765407754078540795408054081540825408354084540855408654087540885408954090540915409254093540945409554096540975409854099541005410154102541035410454105541065410754108541095411054111541125411354114541155411654117541185411954120541215412254123541245412554126541275412854129541305413154132541335413454135541365413754138541395414054141541425414354144541455414654147541485414954150541515415254153541545415554156541575415854159541605416154162541635416454165541665416754168541695417054171541725417354174541755417654177541785417954180541815418254183541845418554186541875418854189541905419154192541935419454195541965419754198541995420054201542025420354204542055420654207542085420954210542115421254213542145421554216542175421854219542205422154222542235422454225542265422754228542295423054231542325423354234542355423654237542385423954240542415424254243542445424554246542475424854249542505425154252542535425454255542565425754258542595426054261542625426354264542655426654267542685426954270542715427254273542745427554276542775427854279542805428154282542835428454285542865428754288542895429054291542925429354294542955429654297542985429954300543015430254303543045430554306543075430854309543105431154312543135431454315543165431754318543195432054321543225432354324543255432654327543285432954330543315433254333543345433554336543375433854339543405434154342543435434454345543465434754348543495435054351543525435354354543555435654357543585435954360543615436254363543645436554366543675436854369543705437154372543735437454375543765437754378543795438054381543825438354384543855438654387543885438954390543915439254393543945439554396543975439854399544005440154402544035440454405544065440754408544095441054411544125441354414544155441654417544185441954420544215442254423544245442554426544275442854429544305443154432544335443454435544365443754438544395444054441544425444354444544455444654447544485444954450544515445254453544545445554456544575445854459544605446154462544635446454465544665446754468544695447054471544725447354474544755447654477544785447954480544815448254483544845448554486544875448854489544905449154492544935449454495544965449754498544995450054501545025450354504545055450654507545085450954510545115451254513545145451554516545175451854519545205452154522545235452454525545265452754528545295453054531545325453354534545355453654537545385453954540545415454254543545445454554546545475454854549545505455154552545535455454555545565455754558545595456054561545625456354564545655456654567545685456954570545715457254573545745457554576545775457854579545805458154582545835458454585545865458754588545895459054591545925459354594545955459654597545985459954600546015460254603546045460554606546075460854609546105461154612546135461454615546165461754618546195462054621546225462354624546255462654627546285462954630546315463254633546345463554636546375463854639546405464154642546435464454645546465464754648546495465054651546525465354654546555465654657546585465954660546615466254663546645466554666546675466854669546705467154672546735467454675546765467754678546795468054681546825468354684546855468654687546885468954690546915469254693546945469554696546975469854699547005470154702547035470454705547065470754708547095471054711547125471354714547155471654717547185471954720547215472254723547245472554726547275472854729547305473154732547335473454735547365473754738547395474054741547425474354744547455474654747547485474954750547515475254753547545475554756547575475854759547605476154762547635476454765547665476754768547695477054771547725477354774547755477654777547785477954780547815478254783547845478554786547875478854789547905479154792547935479454795547965479754798547995480054801548025480354804548055480654807548085480954810548115481254813548145481554816548175481854819548205482154822548235482454825548265482754828548295483054831548325483354834548355483654837548385483954840548415484254843548445484554846548475484854849548505485154852548535485454855548565485754858548595486054861548625486354864548655486654867548685486954870548715487254873548745487554876548775487854879548805488154882548835488454885548865488754888548895489054891548925489354894548955489654897548985489954900549015490254903549045490554906549075490854909549105491154912549135491454915549165491754918549195492054921549225492354924549255492654927549285492954930549315493254933549345493554936549375493854939549405494154942549435494454945549465494754948549495495054951549525495354954549555495654957549585495954960549615496254963549645496554966549675496854969549705497154972549735497454975549765497754978549795498054981549825498354984549855498654987549885498954990549915499254993549945499554996549975499854999550005500155002550035500455005550065500755008550095501055011550125501355014550155501655017550185501955020550215502255023550245502555026550275502855029550305503155032550335503455035550365503755038550395504055041550425504355044550455504655047550485504955050550515505255053550545505555056550575505855059550605506155062550635506455065550665506755068550695507055071550725507355074550755507655077550785507955080550815508255083550845508555086550875508855089550905509155092550935509455095550965509755098550995510055101551025510355104551055510655107551085510955110551115511255113551145511555116551175511855119551205512155122551235512455125551265512755128551295513055131551325513355134551355513655137551385513955140551415514255143551445514555146551475514855149551505515155152551535515455155551565515755158551595516055161551625516355164551655516655167551685516955170551715517255173551745517555176551775517855179551805518155182551835518455185551865518755188551895519055191551925519355194551955519655197551985519955200552015520255203552045520555206552075520855209552105521155212552135521455215552165521755218552195522055221552225522355224552255522655227552285522955230552315523255233552345523555236552375523855239552405524155242552435524455245552465524755248552495525055251552525525355254552555525655257552585525955260552615526255263552645526555266552675526855269552705527155272552735527455275552765527755278552795528055281552825528355284552855528655287552885528955290552915529255293552945529555296552975529855299553005530155302553035530455305553065530755308553095531055311553125531355314553155531655317553185531955320553215532255323553245532555326553275532855329553305533155332553335533455335553365533755338553395534055341553425534355344553455534655347553485534955350553515535255353553545535555356553575535855359553605536155362553635536455365553665536755368553695537055371553725537355374553755537655377553785537955380553815538255383553845538555386553875538855389553905539155392553935539455395553965539755398553995540055401554025540355404554055540655407554085540955410554115541255413554145541555416554175541855419554205542155422554235542455425554265542755428554295543055431554325543355434554355543655437554385543955440554415544255443554445544555446554475544855449554505545155452554535545455455554565545755458554595546055461554625546355464554655546655467554685546955470554715547255473554745547555476554775547855479554805548155482554835548455485554865548755488554895549055491554925549355494554955549655497554985549955500555015550255503555045550555506555075550855509555105551155512555135551455515555165551755518555195552055521555225552355524555255552655527555285552955530555315553255533555345553555536555375553855539555405554155542555435554455545555465554755548555495555055551555525555355554555555555655557555585555955560555615556255563555645556555566555675556855569555705557155572555735557455575555765557755578555795558055581555825558355584555855558655587555885558955590555915559255593555945559555596555975559855599556005560155602556035560455605556065560755608556095561055611556125561355614556155561655617556185561955620556215562255623556245562555626556275562855629556305563155632556335563455635556365563755638556395564055641556425564355644556455564655647556485564955650556515565255653556545565555656556575565855659556605566155662556635566455665556665566755668556695567055671556725567355674556755567655677556785567955680556815568255683556845568555686556875568855689556905569155692556935569455695556965569755698556995570055701557025570355704557055570655707557085570955710557115571255713557145571555716557175571855719557205572155722557235572455725557265572755728557295573055731557325573355734557355573655737557385573955740557415574255743557445574555746557475574855749557505575155752557535575455755557565575755758557595576055761557625576355764557655576655767557685576955770557715577255773557745577555776557775577855779557805578155782557835578455785557865578755788557895579055791557925579355794557955579655797557985579955800558015580255803558045580555806558075580855809558105581155812558135581455815558165581755818558195582055821558225582355824558255582655827558285582955830558315583255833558345583555836558375583855839558405584155842558435584455845558465584755848558495585055851558525585355854558555585655857558585585955860558615586255863558645586555866558675586855869558705587155872558735587455875558765587755878558795588055881558825588355884558855588655887558885588955890558915589255893558945589555896558975589855899559005590155902559035590455905559065590755908559095591055911559125591355914559155591655917559185591955920559215592255923559245592555926559275592855929559305593155932559335593455935559365593755938559395594055941559425594355944559455594655947559485594955950559515595255953559545595555956559575595855959559605596155962559635596455965559665596755968559695597055971559725597355974559755597655977559785597955980559815598255983559845598555986559875598855989559905599155992559935599455995559965599755998559995600056001560025600356004560055600656007560085600956010560115601256013560145601556016560175601856019560205602156022560235602456025560265602756028560295603056031560325603356034560355603656037560385603956040560415604256043560445604556046560475604856049560505605156052560535605456055560565605756058560595606056061560625606356064560655606656067560685606956070560715607256073560745607556076560775607856079560805608156082560835608456085560865608756088560895609056091560925609356094560955609656097560985609956100561015610256103561045610556106561075610856109561105611156112561135611456115561165611756118561195612056121561225612356124561255612656127561285612956130561315613256133561345613556136561375613856139561405614156142561435614456145561465614756148561495615056151561525615356154561555615656157561585615956160561615616256163561645616556166561675616856169561705617156172561735617456175561765617756178561795618056181561825618356184561855618656187561885618956190561915619256193561945619556196561975619856199562005620156202562035620456205562065620756208562095621056211562125621356214562155621656217562185621956220562215622256223562245622556226562275622856229562305623156232562335623456235562365623756238562395624056241562425624356244562455624656247562485624956250562515625256253562545625556256562575625856259562605626156262562635626456265562665626756268562695627056271562725627356274562755627656277562785627956280562815628256283562845628556286562875628856289562905629156292562935629456295562965629756298562995630056301563025630356304563055630656307563085630956310563115631256313563145631556316563175631856319563205632156322563235632456325563265632756328563295633056331563325633356334563355633656337563385633956340563415634256343563445634556346563475634856349563505635156352563535635456355563565635756358563595636056361563625636356364563655636656367563685636956370563715637256373563745637556376563775637856379563805638156382563835638456385563865638756388563895639056391563925639356394563955639656397563985639956400564015640256403564045640556406564075640856409564105641156412564135641456415564165641756418564195642056421564225642356424564255642656427564285642956430564315643256433564345643556436564375643856439564405644156442564435644456445564465644756448564495645056451564525645356454564555645656457564585645956460564615646256463564645646556466564675646856469564705647156472564735647456475564765647756478564795648056481564825648356484564855648656487564885648956490564915649256493564945649556496564975649856499565005650156502565035650456505565065650756508565095651056511565125651356514565155651656517565185651956520565215652256523565245652556526565275652856529565305653156532565335653456535565365653756538565395654056541565425654356544565455654656547565485654956550565515655256553565545655556556565575655856559565605656156562565635656456565565665656756568565695657056571565725657356574565755657656577565785657956580565815658256583565845658556586565875658856589565905659156592565935659456595565965659756598565995660056601566025660356604566055660656607566085660956610566115661256613566145661556616566175661856619566205662156622566235662456625566265662756628566295663056631566325663356634566355663656637566385663956640566415664256643566445664556646566475664856649566505665156652566535665456655566565665756658566595666056661566625666356664566655666656667566685666956670566715667256673566745667556676566775667856679566805668156682566835668456685566865668756688566895669056691566925669356694566955669656697566985669956700567015670256703567045670556706567075670856709567105671156712567135671456715567165671756718567195672056721567225672356724567255672656727567285672956730567315673256733567345673556736567375673856739567405674156742567435674456745567465674756748567495675056751567525675356754567555675656757567585675956760567615676256763567645676556766567675676856769567705677156772567735677456775567765677756778567795678056781567825678356784567855678656787567885678956790567915679256793567945679556796567975679856799568005680156802568035680456805568065680756808568095681056811568125681356814568155681656817568185681956820568215682256823568245682556826568275682856829568305683156832568335683456835568365683756838568395684056841568425684356844568455684656847568485684956850568515685256853568545685556856568575685856859568605686156862568635686456865568665686756868568695687056871568725687356874568755687656877568785687956880568815688256883568845688556886568875688856889568905689156892568935689456895568965689756898568995690056901569025690356904569055690656907569085690956910569115691256913569145691556916569175691856919569205692156922569235692456925569265692756928569295693056931569325693356934569355693656937569385693956940569415694256943569445694556946569475694856949569505695156952569535695456955569565695756958569595696056961569625696356964569655696656967569685696956970569715697256973569745697556976569775697856979569805698156982569835698456985569865698756988569895699056991569925699356994569955699656997569985699957000570015700257003570045700557006570075700857009570105701157012570135701457015570165701757018570195702057021570225702357024570255702657027570285702957030570315703257033570345703557036570375703857039570405704157042570435704457045570465704757048570495705057051570525705357054570555705657057570585705957060570615706257063570645706557066570675706857069570705707157072570735707457075570765707757078570795708057081570825708357084570855708657087570885708957090570915709257093570945709557096570975709857099571005710157102571035710457105571065710757108571095711057111571125711357114571155711657117571185711957120571215712257123571245712557126571275712857129571305713157132571335713457135571365713757138571395714057141571425714357144571455714657147571485714957150571515715257153571545715557156571575715857159571605716157162571635716457165571665716757168571695717057171571725717357174571755717657177571785717957180571815718257183571845718557186571875718857189571905719157192571935719457195571965719757198571995720057201572025720357204572055720657207572085720957210572115721257213572145721557216572175721857219572205722157222572235722457225572265722757228572295723057231572325723357234572355723657237572385723957240572415724257243572445724557246572475724857249572505725157252572535725457255572565725757258572595726057261572625726357264572655726657267572685726957270572715727257273572745727557276572775727857279572805728157282572835728457285572865728757288572895729057291572925729357294572955729657297572985729957300573015730257303573045730557306573075730857309573105731157312573135731457315573165731757318573195732057321573225732357324573255732657327573285732957330573315733257333573345733557336573375733857339573405734157342573435734457345573465734757348573495735057351573525735357354573555735657357573585735957360573615736257363573645736557366573675736857369573705737157372573735737457375573765737757378573795738057381573825738357384573855738657387573885738957390573915739257393573945739557396573975739857399574005740157402574035740457405574065740757408574095741057411574125741357414574155741657417574185741957420574215742257423574245742557426574275742857429574305743157432574335743457435574365743757438574395744057441574425744357444574455744657447574485744957450574515745257453574545745557456574575745857459574605746157462574635746457465574665746757468574695747057471574725747357474574755747657477574785747957480574815748257483574845748557486574875748857489574905749157492574935749457495574965749757498574995750057501575025750357504575055750657507575085750957510575115751257513575145751557516575175751857519575205752157522575235752457525575265752757528575295753057531575325753357534575355753657537575385753957540575415754257543575445754557546575475754857549575505755157552575535755457555575565755757558575595756057561575625756357564575655756657567575685756957570575715757257573575745757557576575775757857579575805758157582575835758457585575865758757588575895759057591575925759357594575955759657597575985759957600576015760257603576045760557606576075760857609576105761157612576135761457615576165761757618576195762057621576225762357624576255762657627576285762957630576315763257633576345763557636576375763857639576405764157642576435764457645576465764757648576495765057651576525765357654576555765657657576585765957660576615766257663576645766557666576675766857669576705767157672576735767457675576765767757678576795768057681576825768357684576855768657687576885768957690576915769257693576945769557696576975769857699577005770157702577035770457705577065770757708577095771057711577125771357714577155771657717577185771957720577215772257723577245772557726577275772857729577305773157732577335773457735577365773757738577395774057741577425774357744577455774657747577485774957750577515775257753577545775557756577575775857759577605776157762577635776457765577665776757768577695777057771577725777357774577755777657777577785777957780577815778257783577845778557786577875778857789577905779157792577935779457795577965779757798577995780057801578025780357804578055780657807578085780957810578115781257813578145781557816578175781857819578205782157822578235782457825578265782757828578295783057831578325783357834578355783657837578385783957840578415784257843578445784557846578475784857849578505785157852578535785457855578565785757858578595786057861578625786357864578655786657867578685786957870578715787257873578745787557876578775787857879578805788157882578835788457885578865788757888578895789057891578925789357894578955789657897578985789957900579015790257903579045790557906579075790857909579105791157912579135791457915579165791757918579195792057921579225792357924579255792657927579285792957930579315793257933579345793557936579375793857939579405794157942579435794457945579465794757948579495795057951579525795357954579555795657957579585795957960579615796257963579645796557966579675796857969579705797157972579735797457975579765797757978579795798057981579825798357984579855798657987579885798957990579915799257993579945799557996579975799857999580005800158002580035800458005580065800758008580095801058011580125801358014580155801658017580185801958020580215802258023580245802558026580275802858029580305803158032580335803458035580365803758038580395804058041580425804358044580455804658047580485804958050580515805258053580545805558056580575805858059580605806158062580635806458065580665806758068580695807058071580725807358074580755807658077580785807958080580815808258083580845808558086580875808858089580905809158092580935809458095580965809758098580995810058101581025810358104581055810658107581085810958110581115811258113581145811558116581175811858119581205812158122581235812458125581265812758128581295813058131581325813358134581355813658137581385813958140581415814258143581445814558146581475814858149581505815158152581535815458155581565815758158581595816058161581625816358164581655816658167581685816958170581715817258173581745817558176581775817858179581805818158182581835818458185581865818758188581895819058191581925819358194581955819658197581985819958200582015820258203582045820558206582075820858209582105821158212582135821458215582165821758218582195822058221582225822358224582255822658227582285822958230582315823258233582345823558236582375823858239582405824158242582435824458245582465824758248582495825058251582525825358254582555825658257582585825958260582615826258263582645826558266582675826858269582705827158272582735827458275582765827758278582795828058281582825828358284582855828658287582885828958290582915829258293582945829558296582975829858299583005830158302583035830458305583065830758308583095831058311583125831358314583155831658317583185831958320583215832258323583245832558326583275832858329583305833158332583335833458335583365833758338583395834058341583425834358344583455834658347583485834958350583515835258353583545835558356583575835858359583605836158362583635836458365583665836758368583695837058371583725837358374583755837658377583785837958380583815838258383583845838558386
  1. /******/ (() => { // webpackBootstrap
  2. /******/ var __webpack_modules__ = ({
  3. /***/ "./node_modules/@inertiajs/inertia-vue3/dist/index.js":
  4. /*!************************************************************!*\
  5. !*** ./node_modules/@inertiajs/inertia-vue3/dist/index.js ***!
  6. \************************************************************/
  7. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  8. function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var r=e(__webpack_require__(/*! lodash.isequal */ "./node_modules/lodash.isequal/index.js")),t=__webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js"),n=e(__webpack_require__(/*! lodash.clonedeep */ "./node_modules/lodash.clonedeep/index.js")),o=__webpack_require__(/*! @inertiajs/inertia */ "./node_modules/@inertiajs/inertia/dist/index.js");function i(){return(i=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}function a(){var e=[].slice.call(arguments),a="string"==typeof e[0]?e[0]:null,u=("string"==typeof e[0]?e[1]:e[0])||{},s=a?o.Inertia.restore(a):null,c=n(u),l=null,p=null,f=function(e){return e},d=t.reactive(i({},s?s.data:u,{isDirty:!1,errors:s?s.errors:{},hasErrors:!1,processing:!1,progress:null,wasSuccessful:!1,recentlySuccessful:!1,data:function(){var e=this;return Object.keys(u).reduce(function(r,t){return r[t]=e[t],r},{})},transform:function(e){return f=e,this},defaults:function(e,r){var t;return c=void 0===e?this.data():Object.assign({},n(c),r?((t={})[e]=r,t):e),this},reset:function(){var e=[].slice.call(arguments),r=n(c);return Object.assign(this,0===e.length?r:Object.keys(r).filter(function(r){return e.includes(r)}).reduce(function(e,t){return e[t]=r[t],e},{})),this},setError:function(e,r){var t;return Object.assign(this.errors,r?((t={})[e]=r,t):e),this.hasErrors=Object.keys(this.errors).length>0,this},clearErrors:function(){var e=this,r=[].slice.call(arguments);return this.errors=Object.keys(this.errors).reduce(function(t,n){var o;return i({},t,r.length>0&&!r.includes(n)?((o={})[n]=e.errors[n],o):{})},{}),this.hasErrors=Object.keys(this.errors).length>0,this},submit:function(e,r,t){var a=this,u=this;void 0===t&&(t={});var s=f(this.data()),d=i({},t,{onCancelToken:function(e){if(l=e,t.onCancelToken)return t.onCancelToken(e)},onBefore:function(e){if(u.wasSuccessful=!1,u.recentlySuccessful=!1,clearTimeout(p),t.onBefore)return t.onBefore(e)},onStart:function(e){if(u.processing=!0,t.onStart)return t.onStart(e)},onProgress:function(e){if(u.progress=e,t.onProgress)return t.onProgress(e)},onSuccess:function(e){try{var r=function(e){return c=n(a.data()),a.isDirty=!1,e};return a.processing=!1,a.progress=null,a.clearErrors(),a.wasSuccessful=!0,a.recentlySuccessful=!0,p=setTimeout(function(){return a.recentlySuccessful=!1},2e3),Promise.resolve(t.onSuccess?Promise.resolve(t.onSuccess(e)).then(r):r(null))}catch(e){return Promise.reject(e)}},onError:function(e){if(u.processing=!1,u.progress=null,u.clearErrors().setError(e),t.onError)return t.onError(e)},onCancel:function(){if(u.processing=!1,u.progress=null,t.onCancel)return t.onCancel()},onFinish:function(){if(u.processing=!1,u.progress=null,l=null,t.onFinish)return t.onFinish()}});"delete"===e?o.Inertia.delete(r,i({},d,{data:s})):o.Inertia[e](r,s,d)},get:function(e,r){this.submit("get",e,r)},post:function(e,r){this.submit("post",e,r)},put:function(e,r){this.submit("put",e,r)},patch:function(e,r){this.submit("patch",e,r)},delete:function(e,r){this.submit("delete",e,r)},cancel:function(){l&&l.cancel()},__rememberable:null===a,__remember:function(){return{data:this.data(),errors:this.errors}},__restore:function(e){Object.assign(this,e.data),this.setError(e.errors)}}));return t.watch(d,function(e){d.isDirty=!r(d.data(),c),a&&o.Inertia.remember(n(e.__remember()),a)},{immediate:!0,deep:!0}),d}var u={created:function(){var e=this;if(this.$options.remember){Array.isArray(this.$options.remember)&&(this.$options.remember={data:this.$options.remember}),"string"==typeof this.$options.remember&&(this.$options.remember={data:[this.$options.remember]}),"string"==typeof this.$options.remember.data&&(this.$options.remember={data:[this.$options.remember.data]});var r=this.$options.remember.key instanceof Function?this.$options.remember.key.call(this):this.$options.remember.key,t=o.Inertia.restore(r),a=this.$options.remember.data.filter(function(r){return!(null!==e[r]&&"object"==typeof e[r]&&!1===e[r].__rememberable)}),u=function(r){return null!==e[r]&&"object"==typeof e[r]&&"function"==typeof e[r].__remember&&"function"==typeof e[r].__restore};a.forEach(function(s){void 0!==e[s]&&void 0!==t&&void 0!==t[s]&&(u(s)?e[s].__restore(t[s]):e[s]=t[s]),e.$watch(s,function(){o.Inertia.remember(a.reduce(function(r,t){var o;return i({},r,((o={})[t]=n(u(t)?e[t].__remember():e[t]),o))},{}),r)},{immediate:!0,deep:!0})})}}},s=t.ref(null),c=t.ref({}),l=t.ref(null),p=null,f={name:"Inertia",props:{initialPage:{type:Object,required:!0},initialComponent:{type:Object,required:!1},resolveComponent:{type:Function,required:!1},titleCallback:{type:Function,required:!1,default:function(e){return e}},onHeadUpdate:{type:Function,required:!1,default:function(){return function(){}}}},setup:function(e){var r=e.initialPage,n=e.initialComponent,a=e.resolveComponent,u=e.titleCallback,f=e.onHeadUpdate;s.value=n?t.markRaw(n):null,c.value=r,l.value=null;var d="undefined"==typeof window;return p=o.createHeadManager(d,u,f),d||o.Inertia.init({initialPage:r,resolveComponent:a,swapComponent:function(e){try{return s.value=t.markRaw(e.component),c.value=e.page,l.value=e.preserveState?l.value:Date.now(),Promise.resolve()}catch(e){return Promise.reject(e)}}}),function(){if(s.value){s.value.inheritAttrs=!!s.value.inheritAttrs;var e=t.h(s.value,i({},c.value.props,{key:l.value}));return s.value.layout?"function"==typeof s.value.layout?s.value.layout(t.h,e):(Array.isArray(s.value.layout)?s.value.layout:[s.value.layout]).concat(e).reverse().reduce(function(e,r){return r.inheritAttrs=!!r.inheritAttrs,t.h(r,i({},c.value.props),function(){return e})}):e}}}},d={install:function(e){o.Inertia.form=a,Object.defineProperty(e.config.globalProperties,"$inertia",{get:function(){return o.Inertia}}),Object.defineProperty(e.config.globalProperties,"$page",{get:function(){return c.value}}),Object.defineProperty(e.config.globalProperties,"$headManager",{get:function(){return p}}),e.mixin(u)}},h={props:{title:{type:String,required:!1}},data:function(){return{provider:this.$headManager.createProvider()}},beforeUnmount:function(){this.provider.disconnect()},methods:{isUnaryTag:function(e){return["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"].indexOf(e.type)>-1},renderTagStart:function(e){e.props=e.props||{},e.props.inertia=void 0!==e.props["head-key"]?e.props["head-key"]:"";var r=Object.keys(e.props).reduce(function(r,t){var n=e.props[t];return["key","head-key"].includes(t)?r:""===n?r+" "+t:r+" "+t+'="'+n+'"'},"");return"<"+e.type+r+">"},renderTagChildren:function(e){var r=this;return"string"==typeof e.children?e.children:e.children.reduce(function(e,t){return e+r.renderTag(t)},"")},renderTag:function(e){if("Symbol(Text)"===e.type.toString())return e.children;if("Symbol()"===e.type.toString())return"";if("Symbol(Comment)"===e.type.toString())return"";var r=this.renderTagStart(e);return e.children&&(r+=this.renderTagChildren(e)),this.isUnaryTag(e)||(r+="</"+e.type+">"),r},addTitleElement:function(e){return this.title&&!e.find(function(e){return e.startsWith("<title")})&&e.push("<title inertia>"+this.title+"</title>"),e},renderNodes:function(e){var r=this;return this.addTitleElement(e.flatMap(function(e){return"Symbol(Fragment)"===e.type.toString()?e.children:e}).map(function(e){return r.renderTag(e)}).filter(function(e){return e}))}},render:function(){this.provider.update(this.renderNodes(this.$slots.default?this.$slots.default():[]))}},m={name:"InertiaLink",props:{as:{type:String,default:"a"},data:{type:Object,default:function(){return{}}},href:{type:String},method:{type:String,default:"get"},replace:{type:Boolean,default:!1},preserveScroll:{type:Boolean,default:!1},preserveState:{type:Boolean,default:null},only:{type:Array,default:function(){return[]}},headers:{type:Object,default:function(){return{}}},queryStringArrayFormat:{type:String,default:"brackets"}},setup:function(e,r){var n=r.slots,a=r.attrs;return function(e){var r=e.as.toLowerCase(),u=e.method.toLowerCase(),s=o.mergeDataIntoQueryString(u,e.href||"",e.data,e.queryStringArrayFormat),c=s[0],l=s[1];return"a"===r&&"get"!==u&&console.warn('Creating POST/PUT/PATCH/DELETE <a> links is discouraged as it causes "Open Link in New Tab/Window" accessibility issues.\n\nPlease specify a more appropriate element using the "as" attribute. For example:\n\n<Link href="'+c+'" method="'+u+'" as="button">...</Link>'),t.h(e.as,i({},a,"a"===r?{href:c}:{},{onClick:function(r){var t;o.shouldIntercept(r)&&(r.preventDefault(),o.Inertia.visit(c,{data:l,method:u,replace:e.replace,preserveScroll:e.preserveScroll,preserveState:null!=(t=e.preserveState)?t:"get"!==u,only:e.only,headers:e.headers,onCancelToken:a.onCancelToken||function(){return{}},onBefore:a.onBefore||function(){return{}},onStart:a.onStart||function(){return{}},onProgress:a.onProgress||function(){return{}},onFinish:a.onFinish||function(){return{}},onCancel:a.onCancel||function(){return{}},onSuccess:a.onSuccess||function(){return{}},onError:a.onError||function(){return{}}}))}}),n)}}};exports.App=f,exports.Head=h,exports.InertiaApp=f,exports.InertiaHead=h,exports.InertiaLink=m,exports.Link=m,exports.app=f,exports.createInertiaApp=function(e){try{var r,n,o,i,a,u,s;n=void 0===(r=e.id)?"app":r,o=e.resolve,i=e.setup,a=e.title,u=e.page,s=e.render;var c="undefined"==typeof window,l=c?null:document.getElementById(n),p=u||JSON.parse(l.dataset.page),h=function(e){return Promise.resolve(o(e)).then(function(e){return e.default||e})},m=[];return Promise.resolve(h(p.component).then(function(e){return i({el:l,app:f,App:f,props:{initialPage:p,initialComponent:e,resolveComponent:h,titleCallback:a,onHeadUpdate:c?function(e){return m=e}:null},plugin:d})})).then(function(e){return function(){if(c)return Promise.resolve(s(t.createSSRApp({render:function(){return t.h("div",{id:n,"data-page":JSON.stringify(p),innerHTML:s(e)})}}))).then(function(e){return{head:m,body:e}})}()})}catch(e){return Promise.reject(e)}},exports.link=m,exports.plugin=d,exports.useForm=a,exports.usePage=function(){return{props:t.computed(function(){return c.value.props}),url:t.computed(function(){return c.value.url}),component:t.computed(function(){return c.value.component}),version:t.computed(function(){return c.value.version})}},exports.useRemember=function(e,r){if("object"==typeof e&&null!==e&&!1===e.__rememberable)return e;var i=o.Inertia.restore(r),a=t.isReactive(e)?t.reactive:t.ref,u="function"==typeof e.__remember&&"function"==typeof e.__restore,s=void 0===i?e:a(u?e.__restore(i):i);return t.watch(s,function(t){o.Inertia.remember(n(u?e.__remember():t),r)},{immediate:!0,deep:!0}),s};
  9. //# sourceMappingURL=index.js.map
  10. /***/ }),
  11. /***/ "./node_modules/@inertiajs/inertia/dist/index.js":
  12. /*!*******************************************************!*\
  13. !*** ./node_modules/@inertiajs/inertia/dist/index.js ***!
  14. \*******************************************************/
  15. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  16. function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var t=e(__webpack_require__(/*! axios */ "./node_modules/@inertiajs/inertia/node_modules/axios/index.js")),n=__webpack_require__(/*! qs */ "./node_modules/@inertiajs/inertia/node_modules/qs/lib/index.js"),i=e(__webpack_require__(/*! deepmerge */ "./node_modules/deepmerge/dist/cjs.js"));function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}var o,s={modal:null,listener:null,show:function(e){var t=this;"object"==typeof e&&(e="All Inertia requests must receive a valid Inertia response, however a plain JSON response was received.<hr>"+JSON.stringify(e));var n=document.createElement("html");n.innerHTML=e,n.querySelectorAll("a").forEach(function(e){return e.setAttribute("target","_top")}),this.modal=document.createElement("div"),this.modal.style.position="fixed",this.modal.style.width="100vw",this.modal.style.height="100vh",this.modal.style.padding="50px",this.modal.style.boxSizing="border-box",this.modal.style.backgroundColor="rgba(0, 0, 0, .6)",this.modal.style.zIndex=2e5,this.modal.addEventListener("click",function(){return t.hide()});var i=document.createElement("iframe");if(i.style.backgroundColor="white",i.style.borderRadius="5px",i.style.width="100%",i.style.height="100%",this.modal.appendChild(i),document.body.prepend(this.modal),document.body.style.overflow="hidden",!i.contentWindow)throw new Error("iframe not yet ready.");i.contentWindow.document.open(),i.contentWindow.document.write(n.outerHTML),i.contentWindow.document.close(),this.listener=this.hideOnEscape.bind(this),document.addEventListener("keydown",this.listener)},hide:function(){this.modal.outerHTML="",this.modal=null,document.body.style.overflow="visible",document.removeEventListener("keydown",this.listener)},hideOnEscape:function(e){27===e.keyCode&&this.hide()}};function a(e,t){var n;return function(){var i=arguments,r=this;clearTimeout(n),n=setTimeout(function(){return e.apply(r,[].slice.call(i))},t)}}function c(e,t,n){for(var i in void 0===t&&(t=new FormData),void 0===n&&(n=null),e=e||{})Object.prototype.hasOwnProperty.call(e,i)&&d(t,l(n,i),e[i]);return t}function l(e,t){return e?e+"["+t+"]":t}function d(e,t,n){return Array.isArray(n)?Array.from(n.keys()).forEach(function(i){return d(e,l(t,i.toString()),n[i])}):n instanceof Date?e.append(t,n.toISOString()):n instanceof File?e.append(t,n,n.name):n instanceof Blob?e.append(t,n):"boolean"==typeof n?e.append(t,n?"1":"0"):"string"==typeof n?e.append(t,n):"number"==typeof n?e.append(t,""+n):null==n?e.append(t,""):void c(n,e,t)}function u(e){return new URL(e.toString(),window.location.toString())}function h(e,t,r,o){void 0===o&&(o="brackets");var s=/^https?:\/\//.test(t.toString()),a=s||t.toString().startsWith("/"),c=!a&&!t.toString().startsWith("#")&&!t.toString().startsWith("?"),l=t.toString().includes("?")||e===exports.Method.GET&&Object.keys(r).length,d=t.toString().includes("#"),u=new URL(t.toString(),"http://localhost");return e===exports.Method.GET&&Object.keys(r).length&&(u.search=n.stringify(i(n.parse(u.search,{ignoreQueryPrefix:!0}),r),{encodeValuesOnly:!0,arrayFormat:o}),r={}),[[s?u.protocol+"//"+u.host:"",a?u.pathname:"",c?u.pathname.substring(1):"",l?u.search:"",d?u.hash:""].join(""),r]}function p(e){return(e=new URL(e.href)).hash="",e}function f(e,t){return document.dispatchEvent(new CustomEvent("inertia:"+e,t))}(o=exports.Method||(exports.Method={})).GET="get",o.POST="post",o.PUT="put",o.PATCH="patch",o.DELETE="delete";var v=function(e){return f("finish",{detail:{visit:e}})},m=function(e){return f("navigate",{detail:{page:e}})},g="undefined"==typeof window,w=function(){function e(){this.visitId=null}var n=e.prototype;return n.init=function(e){var t=e.resolveComponent,n=e.swapComponent;this.page=e.initialPage,this.resolveComponent=t,this.swapComponent=n,this.isBackForwardVisit()?this.handleBackForwardVisit(this.page):this.isLocationVisit()?this.handleLocationVisit(this.page):this.handleInitialPageVisit(this.page),this.setupEventListeners()},n.handleInitialPageVisit=function(e){this.page.url+=window.location.hash,this.setPage(e,{preserveState:!0}).then(function(){return m(e)})},n.setupEventListeners=function(){window.addEventListener("popstate",this.handlePopstateEvent.bind(this)),document.addEventListener("scroll",a(this.handleScrollEvent.bind(this),100),!0)},n.scrollRegions=function(){return document.querySelectorAll("[scroll-region]")},n.handleScrollEvent=function(e){"function"==typeof e.target.hasAttribute&&e.target.hasAttribute("scroll-region")&&this.saveScrollPositions()},n.saveScrollPositions=function(){this.replaceState(r({},this.page,{scrollRegions:Array.from(this.scrollRegions()).map(function(e){return{top:e.scrollTop,left:e.scrollLeft}})}))},n.resetScrollPositions=function(){var e;document.documentElement.scrollTop=0,document.documentElement.scrollLeft=0,this.scrollRegions().forEach(function(e){e.scrollTop=0,e.scrollLeft=0}),this.saveScrollPositions(),window.location.hash&&(null==(e=document.getElementById(window.location.hash.slice(1)))||e.scrollIntoView())},n.restoreScrollPositions=function(){var e=this;this.page.scrollRegions&&this.scrollRegions().forEach(function(t,n){var i=e.page.scrollRegions[n];i&&(t.scrollTop=i.top,t.scrollLeft=i.left)})},n.isBackForwardVisit=function(){return window.history.state&&window.performance&&window.performance.getEntriesByType("navigation").length>0&&"back_forward"===window.performance.getEntriesByType("navigation")[0].type},n.handleBackForwardVisit=function(e){var t=this;window.history.state.version=e.version,this.setPage(window.history.state,{preserveScroll:!0,preserveState:!0}).then(function(){t.restoreScrollPositions(),m(e)})},n.locationVisit=function(e,t){try{window.sessionStorage.setItem("inertiaLocationVisit",JSON.stringify({preserveScroll:t})),window.location.href=e.href,p(window.location).href===p(e).href&&window.location.reload()}catch(e){return!1}},n.isLocationVisit=function(){try{return null!==window.sessionStorage.getItem("inertiaLocationVisit")}catch(e){return!1}},n.handleLocationVisit=function(e){var t,n,i,r,o=this,s=JSON.parse(window.sessionStorage.getItem("inertiaLocationVisit")||"");window.sessionStorage.removeItem("inertiaLocationVisit"),e.url+=window.location.hash,e.rememberedState=null!=(t=null==(n=window.history.state)?void 0:n.rememberedState)?t:{},e.scrollRegions=null!=(i=null==(r=window.history.state)?void 0:r.scrollRegions)?i:[],this.setPage(e,{preserveScroll:s.preserveScroll,preserveState:!0}).then(function(){s.preserveScroll&&o.restoreScrollPositions(),m(e)})},n.isLocationVisitResponse=function(e){return e&&409===e.status&&e.headers["x-inertia-location"]},n.isInertiaResponse=function(e){return null==e?void 0:e.headers["x-inertia"]},n.createVisitId=function(){return this.visitId={},this.visitId},n.cancelVisit=function(e,t){var n=t.cancelled,i=void 0!==n&&n,r=t.interrupted,o=void 0!==r&&r;!e||e.completed||e.cancelled||e.interrupted||(e.cancelToken.cancel(),e.onCancel(),e.completed=!1,e.cancelled=i,e.interrupted=o,v(e),e.onFinish(e))},n.finishVisit=function(e){e.cancelled||e.interrupted||(e.completed=!0,e.cancelled=!1,e.interrupted=!1,v(e),e.onFinish(e))},n.resolvePreserveOption=function(e,t){return"function"==typeof e?e(t):"errors"===e?Object.keys(t.props.errors||{}).length>0:e},n.visit=function(e,n){var i=this,o=void 0===n?{}:n,a=o.method,l=void 0===a?exports.Method.GET:a,d=o.data,v=void 0===d?{}:d,m=o.replace,g=void 0!==m&&m,w=o.preserveScroll,y=void 0!==w&&w,S=o.preserveState,b=void 0!==S&&S,E=o.only,P=void 0===E?[]:E,I=o.headers,x=void 0===I?{}:I,V=o.errorBag,T=void 0===V?"":V,L=o.forceFormData,O=void 0!==L&&L,k=o.onCancelToken,C=void 0===k?function(){}:k,M=o.onBefore,A=void 0===M?function(){}:M,F=o.onStart,R=void 0===F?function(){}:F,j=o.onProgress,D=void 0===j?function(){}:j,B=o.onFinish,q=void 0===B?function(){}:B,N=o.onCancel,H=void 0===N?function(){}:N,W=o.onSuccess,G=void 0===W?function(){}:W,U=o.onError,X=void 0===U?function(){}:U,J=o.queryStringArrayFormat,K=void 0===J?"brackets":J,_="string"==typeof e?u(e):e;if(!function e(t){return t instanceof File||t instanceof Blob||t instanceof FileList&&t.length>0||t instanceof FormData&&Array.from(t.values()).some(function(t){return e(t)})||"object"==typeof t&&null!==t&&Object.values(t).some(function(t){return e(t)})}(v)&&!O||v instanceof FormData||(v=c(v)),!(v instanceof FormData)){var z=h(l,_,v,K),Q=z[1];_=u(z[0]),v=Q}var Y={url:_,method:l,data:v,replace:g,preserveScroll:y,preserveState:b,only:P,headers:x,errorBag:T,forceFormData:O,queryStringArrayFormat:K,cancelled:!1,completed:!1,interrupted:!1};if(!1!==A(Y)&&function(e){return f("before",{cancelable:!0,detail:{visit:e}})}(Y)){this.activeVisit&&this.cancelVisit(this.activeVisit,{interrupted:!0}),this.saveScrollPositions();var Z=this.createVisitId();this.activeVisit=r({},Y,{onCancelToken:C,onBefore:A,onStart:R,onProgress:D,onFinish:q,onCancel:H,onSuccess:G,onError:X,queryStringArrayFormat:K,cancelToken:t.CancelToken.source()}),C({cancel:function(){i.activeVisit&&i.cancelVisit(i.activeVisit,{cancelled:!0})}}),function(e){f("start",{detail:{visit:e}})}(Y),R(Y),t({method:l,url:p(_).href,data:l===exports.Method.GET?{}:v,params:l===exports.Method.GET?v:{},cancelToken:this.activeVisit.cancelToken.token,headers:r({},x,{Accept:"text/html, application/xhtml+xml","X-Requested-With":"XMLHttpRequest","X-Inertia":!0},P.length?{"X-Inertia-Partial-Component":this.page.component,"X-Inertia-Partial-Data":P.join(",")}:{},T&&T.length?{"X-Inertia-Error-Bag":T}:{},this.page.version?{"X-Inertia-Version":this.page.version}:{}),onUploadProgress:function(e){v instanceof FormData&&(e.percentage=Math.round(e.loaded/e.total*100),function(e){f("progress",{detail:{progress:e}})}(e),D(e))}}).then(function(e){var t;if(!i.isInertiaResponse(e))return Promise.reject({response:e});var n=e.data;P.length&&n.component===i.page.component&&(n.props=r({},i.page.props,n.props)),y=i.resolvePreserveOption(y,n),(b=i.resolvePreserveOption(b,n))&&null!=(t=window.history.state)&&t.rememberedState&&n.component===i.page.component&&(n.rememberedState=window.history.state.rememberedState);var o=_,s=u(n.url);return o.hash&&!s.hash&&p(o).href===s.href&&(s.hash=o.hash,n.url=s.href),i.setPage(n,{visitId:Z,replace:g,preserveScroll:y,preserveState:b})}).then(function(){var e=i.page.props.errors||{};if(Object.keys(e).length>0){var t=T?e[T]?e[T]:{}:e;return function(e){f("error",{detail:{errors:e}})}(t),X(t)}return f("success",{detail:{page:i.page}}),G(i.page)}).catch(function(e){if(i.isInertiaResponse(e.response))return i.setPage(e.response.data,{visitId:Z});if(i.isLocationVisitResponse(e.response)){var t=u(e.response.headers["x-inertia-location"]),n=_;n.hash&&!t.hash&&p(n).href===t.href&&(t.hash=n.hash),i.locationVisit(t,!0===y)}else{if(!e.response)return Promise.reject(e);f("invalid",{cancelable:!0,detail:{response:e.response}})&&s.show(e.response.data)}}).then(function(){i.activeVisit&&i.finishVisit(i.activeVisit)}).catch(function(e){if(!t.isCancel(e)){var n=f("exception",{cancelable:!0,detail:{exception:e}});if(i.activeVisit&&i.finishVisit(i.activeVisit),n)return Promise.reject(e)}})}},n.setPage=function(e,t){var n=this,i=void 0===t?{}:t,r=i.visitId,o=void 0===r?this.createVisitId():r,s=i.replace,a=void 0!==s&&s,c=i.preserveScroll,l=void 0!==c&&c,d=i.preserveState,h=void 0!==d&&d;return Promise.resolve(this.resolveComponent(e.component)).then(function(t){o===n.visitId&&(e.scrollRegions=e.scrollRegions||[],e.rememberedState=e.rememberedState||{},(a=a||u(e.url).href===window.location.href)?n.replaceState(e):n.pushState(e),n.swapComponent({component:t,page:e,preserveState:h}).then(function(){l||n.resetScrollPositions(),a||m(e)}))})},n.pushState=function(e){this.page=e,window.history.pushState(e,"",e.url)},n.replaceState=function(e){this.page=e,window.history.replaceState(e,"",e.url)},n.handlePopstateEvent=function(e){var t=this;if(null!==e.state){var n=e.state,i=this.createVisitId();Promise.resolve(this.resolveComponent(n.component)).then(function(e){i===t.visitId&&(t.page=n,t.swapComponent({component:e,page:n,preserveState:!1}).then(function(){t.restoreScrollPositions(),m(n)}))})}else{var o=u(this.page.url);o.hash=window.location.hash,this.replaceState(r({},this.page,{url:o.href})),this.resetScrollPositions()}},n.get=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),this.visit(e,r({},n,{method:exports.Method.GET,data:t}))},n.reload=function(e){return void 0===e&&(e={}),this.visit(window.location.href,r({},e,{preserveScroll:!0,preserveState:!0}))},n.replace=function(e,t){var n;return void 0===t&&(t={}),console.warn("Inertia.replace() has been deprecated and will be removed in a future release. Please use Inertia."+(null!=(n=t.method)?n:"get")+"() instead."),this.visit(e,r({preserveState:!0},t,{replace:!0}))},n.post=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),this.visit(e,r({preserveState:!0},n,{method:exports.Method.POST,data:t}))},n.put=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),this.visit(e,r({preserveState:!0},n,{method:exports.Method.PUT,data:t}))},n.patch=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),this.visit(e,r({preserveState:!0},n,{method:exports.Method.PATCH,data:t}))},n.delete=function(e,t){return void 0===t&&(t={}),this.visit(e,r({preserveState:!0},t,{method:exports.Method.DELETE}))},n.remember=function(e,t){var n,i;void 0===t&&(t="default"),g||this.replaceState(r({},this.page,{rememberedState:r({},null==(n=this.page)?void 0:n.rememberedState,(i={},i[t]=e,i))}))},n.restore=function(e){var t,n;if(void 0===e&&(e="default"),!g)return null==(t=window.history.state)||null==(n=t.rememberedState)?void 0:n[e]},n.on=function(e,t){var n=function(e){var n=t(e);e.cancelable&&!e.defaultPrevented&&!1===n&&e.preventDefault()};return document.addEventListener("inertia:"+e,n),function(){return document.removeEventListener("inertia:"+e,n)}},e}(),y={buildDOMElement:function(e){var t=document.createElement("template");t.innerHTML=e;var n=t.content.firstChild;if(!e.startsWith("<script "))return n;var i=document.createElement("script");return i.innerHTML=n.innerHTML,n.getAttributeNames().forEach(function(e){i.setAttribute(e,n.getAttribute(e)||"")}),i},isInertiaManagedElement:function(e){return e.nodeType===Node.ELEMENT_NODE&&null!==e.getAttribute("inertia")},findMatchingElementIndex:function(e,t){var n=e.getAttribute("inertia");return null!==n?t.findIndex(function(e){return e.getAttribute("inertia")===n}):-1},update:a(function(e){var t=this,n=e.map(function(e){return t.buildDOMElement(e)});Array.from(document.head.childNodes).filter(function(e){return t.isInertiaManagedElement(e)}).forEach(function(e){var i=t.findMatchingElementIndex(e,n);if(-1!==i){var r,o=n.splice(i,1)[0];o&&!e.isEqualNode(o)&&(null==e||null==(r=e.parentNode)||r.replaceChild(o,e))}else{var s;null==e||null==(s=e.parentNode)||s.removeChild(e)}}),n.forEach(function(e){return document.head.appendChild(e)})},1)},S=new w;exports.Inertia=S,exports.createHeadManager=function(e,t,n){var i={},r=0;function o(){var e=Object.values(i).reduce(function(e,t){return e.concat(t)},[]).reduce(function(e,n){if(-1===n.indexOf("<"))return e;if(0===n.indexOf("<title ")){var i=n.match(/(<title [^>]+>)(.*?)(<\/title>)/);return e.title=i?""+i[1]+t(i[2])+i[3]:n,e}var r=n.match(/ inertia="[^"]+"/);return r?e[r[0]]=n:e[Object.keys(e).length]=n,e},{});return Object.values(e)}function s(){e?n(o()):y.update(o())}return{createProvider:function(){var e=function(){var e=r+=1;return i[e]=[],e.toString()}();return{update:function(t){return function(e,t){void 0===t&&(t=[]),null!==e&&Object.keys(i).indexOf(e)>-1&&(i[e]=t),s()}(e,t)},disconnect:function(){return function(e){null!==e&&-1!==Object.keys(i).indexOf(e)&&(delete i[e],s())}(e)}}}}},exports.hrefToUrl=u,exports.mergeDataIntoQueryString=h,exports.shouldIntercept=function(e){var t="a"===e.currentTarget.tagName.toLowerCase();return!(e.target&&null!=e&&e.target.isContentEditable||e.defaultPrevented||t&&e.which>1||t&&e.altKey||t&&e.ctrlKey||t&&e.metaKey||t&&e.shiftKey)},exports.urlWithoutHash=p;
  17. //# sourceMappingURL=index.js.map
  18. /***/ }),
  19. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/index.js":
  20. /*!*********************************************************************!*\
  21. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/index.js ***!
  22. \*********************************************************************/
  23. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  24. module.exports = __webpack_require__(/*! ./lib/axios */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/axios.js");
  25. /***/ }),
  26. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/adapters/xhr.js":
  27. /*!********************************************************************************!*\
  28. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/lib/adapters/xhr.js ***!
  29. \********************************************************************************/
  30. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  31. "use strict";
  32. var utils = __webpack_require__(/*! ./../utils */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/utils.js");
  33. var settle = __webpack_require__(/*! ./../core/settle */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/settle.js");
  34. var cookies = __webpack_require__(/*! ./../helpers/cookies */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/cookies.js");
  35. var buildURL = __webpack_require__(/*! ./../helpers/buildURL */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/buildURL.js");
  36. var buildFullPath = __webpack_require__(/*! ../core/buildFullPath */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/buildFullPath.js");
  37. var parseHeaders = __webpack_require__(/*! ./../helpers/parseHeaders */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/parseHeaders.js");
  38. var isURLSameOrigin = __webpack_require__(/*! ./../helpers/isURLSameOrigin */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/isURLSameOrigin.js");
  39. var createError = __webpack_require__(/*! ../core/createError */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/createError.js");
  40. module.exports = function xhrAdapter(config) {
  41. return new Promise(function dispatchXhrRequest(resolve, reject) {
  42. var requestData = config.data;
  43. var requestHeaders = config.headers;
  44. var responseType = config.responseType;
  45. if (utils.isFormData(requestData)) {
  46. delete requestHeaders['Content-Type']; // Let the browser set it
  47. }
  48. var request = new XMLHttpRequest();
  49. // HTTP basic authentication
  50. if (config.auth) {
  51. var username = config.auth.username || '';
  52. var password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : '';
  53. requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password);
  54. }
  55. var fullPath = buildFullPath(config.baseURL, config.url);
  56. request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);
  57. // Set the request timeout in MS
  58. request.timeout = config.timeout;
  59. function onloadend() {
  60. if (!request) {
  61. return;
  62. }
  63. // Prepare the response
  64. var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null;
  65. var responseData = !responseType || responseType === 'text' || responseType === 'json' ?
  66. request.responseText : request.response;
  67. var response = {
  68. data: responseData,
  69. status: request.status,
  70. statusText: request.statusText,
  71. headers: responseHeaders,
  72. config: config,
  73. request: request
  74. };
  75. settle(resolve, reject, response);
  76. // Clean up request
  77. request = null;
  78. }
  79. if ('onloadend' in request) {
  80. // Use onloadend if available
  81. request.onloadend = onloadend;
  82. } else {
  83. // Listen for ready state to emulate onloadend
  84. request.onreadystatechange = function handleLoad() {
  85. if (!request || request.readyState !== 4) {
  86. return;
  87. }
  88. // The request errored out and we didn't get a response, this will be
  89. // handled by onerror instead
  90. // With one exception: request that using file: protocol, most browsers
  91. // will return status as 0 even though it's a successful request
  92. if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {
  93. return;
  94. }
  95. // readystate handler is calling before onerror or ontimeout handlers,
  96. // so we should call onloadend on the next 'tick'
  97. setTimeout(onloadend);
  98. };
  99. }
  100. // Handle browser request cancellation (as opposed to a manual cancellation)
  101. request.onabort = function handleAbort() {
  102. if (!request) {
  103. return;
  104. }
  105. reject(createError('Request aborted', config, 'ECONNABORTED', request));
  106. // Clean up request
  107. request = null;
  108. };
  109. // Handle low level network errors
  110. request.onerror = function handleError() {
  111. // Real errors are hidden from us by the browser
  112. // onerror should only fire if it's a network error
  113. reject(createError('Network Error', config, null, request));
  114. // Clean up request
  115. request = null;
  116. };
  117. // Handle timeout
  118. request.ontimeout = function handleTimeout() {
  119. var timeoutErrorMessage = 'timeout of ' + config.timeout + 'ms exceeded';
  120. if (config.timeoutErrorMessage) {
  121. timeoutErrorMessage = config.timeoutErrorMessage;
  122. }
  123. reject(createError(
  124. timeoutErrorMessage,
  125. config,
  126. config.transitional && config.transitional.clarifyTimeoutError ? 'ETIMEDOUT' : 'ECONNABORTED',
  127. request));
  128. // Clean up request
  129. request = null;
  130. };
  131. // Add xsrf header
  132. // This is only done if running in a standard browser environment.
  133. // Specifically not if we're in a web worker, or react-native.
  134. if (utils.isStandardBrowserEnv()) {
  135. // Add xsrf header
  136. var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ?
  137. cookies.read(config.xsrfCookieName) :
  138. undefined;
  139. if (xsrfValue) {
  140. requestHeaders[config.xsrfHeaderName] = xsrfValue;
  141. }
  142. }
  143. // Add headers to the request
  144. if ('setRequestHeader' in request) {
  145. utils.forEach(requestHeaders, function setRequestHeader(val, key) {
  146. if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') {
  147. // Remove Content-Type if data is undefined
  148. delete requestHeaders[key];
  149. } else {
  150. // Otherwise add header to the request
  151. request.setRequestHeader(key, val);
  152. }
  153. });
  154. }
  155. // Add withCredentials to request if needed
  156. if (!utils.isUndefined(config.withCredentials)) {
  157. request.withCredentials = !!config.withCredentials;
  158. }
  159. // Add responseType to request if needed
  160. if (responseType && responseType !== 'json') {
  161. request.responseType = config.responseType;
  162. }
  163. // Handle progress if needed
  164. if (typeof config.onDownloadProgress === 'function') {
  165. request.addEventListener('progress', config.onDownloadProgress);
  166. }
  167. // Not all browsers support upload events
  168. if (typeof config.onUploadProgress === 'function' && request.upload) {
  169. request.upload.addEventListener('progress', config.onUploadProgress);
  170. }
  171. if (config.cancelToken) {
  172. // Handle cancellation
  173. config.cancelToken.promise.then(function onCanceled(cancel) {
  174. if (!request) {
  175. return;
  176. }
  177. request.abort();
  178. reject(cancel);
  179. // Clean up request
  180. request = null;
  181. });
  182. }
  183. if (!requestData) {
  184. requestData = null;
  185. }
  186. // Send the request
  187. request.send(requestData);
  188. });
  189. };
  190. /***/ }),
  191. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/axios.js":
  192. /*!*************************************************************************!*\
  193. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/lib/axios.js ***!
  194. \*************************************************************************/
  195. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  196. "use strict";
  197. var utils = __webpack_require__(/*! ./utils */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/utils.js");
  198. var bind = __webpack_require__(/*! ./helpers/bind */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/bind.js");
  199. var Axios = __webpack_require__(/*! ./core/Axios */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/Axios.js");
  200. var mergeConfig = __webpack_require__(/*! ./core/mergeConfig */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/mergeConfig.js");
  201. var defaults = __webpack_require__(/*! ./defaults */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/defaults.js");
  202. /**
  203. * Create an instance of Axios
  204. *
  205. * @param {Object} defaultConfig The default config for the instance
  206. * @return {Axios} A new instance of Axios
  207. */
  208. function createInstance(defaultConfig) {
  209. var context = new Axios(defaultConfig);
  210. var instance = bind(Axios.prototype.request, context);
  211. // Copy axios.prototype to instance
  212. utils.extend(instance, Axios.prototype, context);
  213. // Copy context to instance
  214. utils.extend(instance, context);
  215. return instance;
  216. }
  217. // Create the default instance to be exported
  218. var axios = createInstance(defaults);
  219. // Expose Axios class to allow class inheritance
  220. axios.Axios = Axios;
  221. // Factory for creating new instances
  222. axios.create = function create(instanceConfig) {
  223. return createInstance(mergeConfig(axios.defaults, instanceConfig));
  224. };
  225. // Expose Cancel & CancelToken
  226. axios.Cancel = __webpack_require__(/*! ./cancel/Cancel */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/cancel/Cancel.js");
  227. axios.CancelToken = __webpack_require__(/*! ./cancel/CancelToken */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/cancel/CancelToken.js");
  228. axios.isCancel = __webpack_require__(/*! ./cancel/isCancel */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/cancel/isCancel.js");
  229. // Expose all/spread
  230. axios.all = function all(promises) {
  231. return Promise.all(promises);
  232. };
  233. axios.spread = __webpack_require__(/*! ./helpers/spread */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/spread.js");
  234. // Expose isAxiosError
  235. axios.isAxiosError = __webpack_require__(/*! ./helpers/isAxiosError */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/isAxiosError.js");
  236. module.exports = axios;
  237. // Allow use of default import syntax in TypeScript
  238. module.exports["default"] = axios;
  239. /***/ }),
  240. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/cancel/Cancel.js":
  241. /*!*********************************************************************************!*\
  242. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/lib/cancel/Cancel.js ***!
  243. \*********************************************************************************/
  244. /***/ ((module) => {
  245. "use strict";
  246. /**
  247. * A `Cancel` is an object that is thrown when an operation is canceled.
  248. *
  249. * @class
  250. * @param {string=} message The message.
  251. */
  252. function Cancel(message) {
  253. this.message = message;
  254. }
  255. Cancel.prototype.toString = function toString() {
  256. return 'Cancel' + (this.message ? ': ' + this.message : '');
  257. };
  258. Cancel.prototype.__CANCEL__ = true;
  259. module.exports = Cancel;
  260. /***/ }),
  261. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/cancel/CancelToken.js":
  262. /*!**************************************************************************************!*\
  263. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/lib/cancel/CancelToken.js ***!
  264. \**************************************************************************************/
  265. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  266. "use strict";
  267. var Cancel = __webpack_require__(/*! ./Cancel */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/cancel/Cancel.js");
  268. /**
  269. * A `CancelToken` is an object that can be used to request cancellation of an operation.
  270. *
  271. * @class
  272. * @param {Function} executor The executor function.
  273. */
  274. function CancelToken(executor) {
  275. if (typeof executor !== 'function') {
  276. throw new TypeError('executor must be a function.');
  277. }
  278. var resolvePromise;
  279. this.promise = new Promise(function promiseExecutor(resolve) {
  280. resolvePromise = resolve;
  281. });
  282. var token = this;
  283. executor(function cancel(message) {
  284. if (token.reason) {
  285. // Cancellation has already been requested
  286. return;
  287. }
  288. token.reason = new Cancel(message);
  289. resolvePromise(token.reason);
  290. });
  291. }
  292. /**
  293. * Throws a `Cancel` if cancellation has been requested.
  294. */
  295. CancelToken.prototype.throwIfRequested = function throwIfRequested() {
  296. if (this.reason) {
  297. throw this.reason;
  298. }
  299. };
  300. /**
  301. * Returns an object that contains a new `CancelToken` and a function that, when called,
  302. * cancels the `CancelToken`.
  303. */
  304. CancelToken.source = function source() {
  305. var cancel;
  306. var token = new CancelToken(function executor(c) {
  307. cancel = c;
  308. });
  309. return {
  310. token: token,
  311. cancel: cancel
  312. };
  313. };
  314. module.exports = CancelToken;
  315. /***/ }),
  316. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/cancel/isCancel.js":
  317. /*!***********************************************************************************!*\
  318. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/lib/cancel/isCancel.js ***!
  319. \***********************************************************************************/
  320. /***/ ((module) => {
  321. "use strict";
  322. module.exports = function isCancel(value) {
  323. return !!(value && value.__CANCEL__);
  324. };
  325. /***/ }),
  326. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/Axios.js":
  327. /*!******************************************************************************!*\
  328. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/Axios.js ***!
  329. \******************************************************************************/
  330. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  331. "use strict";
  332. var utils = __webpack_require__(/*! ./../utils */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/utils.js");
  333. var buildURL = __webpack_require__(/*! ../helpers/buildURL */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/buildURL.js");
  334. var InterceptorManager = __webpack_require__(/*! ./InterceptorManager */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/InterceptorManager.js");
  335. var dispatchRequest = __webpack_require__(/*! ./dispatchRequest */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/dispatchRequest.js");
  336. var mergeConfig = __webpack_require__(/*! ./mergeConfig */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/mergeConfig.js");
  337. var validator = __webpack_require__(/*! ../helpers/validator */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/validator.js");
  338. var validators = validator.validators;
  339. /**
  340. * Create a new instance of Axios
  341. *
  342. * @param {Object} instanceConfig The default config for the instance
  343. */
  344. function Axios(instanceConfig) {
  345. this.defaults = instanceConfig;
  346. this.interceptors = {
  347. request: new InterceptorManager(),
  348. response: new InterceptorManager()
  349. };
  350. }
  351. /**
  352. * Dispatch a request
  353. *
  354. * @param {Object} config The config specific for this request (merged with this.defaults)
  355. */
  356. Axios.prototype.request = function request(config) {
  357. /*eslint no-param-reassign:0*/
  358. // Allow for axios('example/url'[, config]) a la fetch API
  359. if (typeof config === 'string') {
  360. config = arguments[1] || {};
  361. config.url = arguments[0];
  362. } else {
  363. config = config || {};
  364. }
  365. config = mergeConfig(this.defaults, config);
  366. // Set config.method
  367. if (config.method) {
  368. config.method = config.method.toLowerCase();
  369. } else if (this.defaults.method) {
  370. config.method = this.defaults.method.toLowerCase();
  371. } else {
  372. config.method = 'get';
  373. }
  374. var transitional = config.transitional;
  375. if (transitional !== undefined) {
  376. validator.assertOptions(transitional, {
  377. silentJSONParsing: validators.transitional(validators.boolean, '1.0.0'),
  378. forcedJSONParsing: validators.transitional(validators.boolean, '1.0.0'),
  379. clarifyTimeoutError: validators.transitional(validators.boolean, '1.0.0')
  380. }, false);
  381. }
  382. // filter out skipped interceptors
  383. var requestInterceptorChain = [];
  384. var synchronousRequestInterceptors = true;
  385. this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
  386. if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) {
  387. return;
  388. }
  389. synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
  390. requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
  391. });
  392. var responseInterceptorChain = [];
  393. this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
  394. responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
  395. });
  396. var promise;
  397. if (!synchronousRequestInterceptors) {
  398. var chain = [dispatchRequest, undefined];
  399. Array.prototype.unshift.apply(chain, requestInterceptorChain);
  400. chain = chain.concat(responseInterceptorChain);
  401. promise = Promise.resolve(config);
  402. while (chain.length) {
  403. promise = promise.then(chain.shift(), chain.shift());
  404. }
  405. return promise;
  406. }
  407. var newConfig = config;
  408. while (requestInterceptorChain.length) {
  409. var onFulfilled = requestInterceptorChain.shift();
  410. var onRejected = requestInterceptorChain.shift();
  411. try {
  412. newConfig = onFulfilled(newConfig);
  413. } catch (error) {
  414. onRejected(error);
  415. break;
  416. }
  417. }
  418. try {
  419. promise = dispatchRequest(newConfig);
  420. } catch (error) {
  421. return Promise.reject(error);
  422. }
  423. while (responseInterceptorChain.length) {
  424. promise = promise.then(responseInterceptorChain.shift(), responseInterceptorChain.shift());
  425. }
  426. return promise;
  427. };
  428. Axios.prototype.getUri = function getUri(config) {
  429. config = mergeConfig(this.defaults, config);
  430. return buildURL(config.url, config.params, config.paramsSerializer).replace(/^\?/, '');
  431. };
  432. // Provide aliases for supported request methods
  433. utils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {
  434. /*eslint func-names:0*/
  435. Axios.prototype[method] = function(url, config) {
  436. return this.request(mergeConfig(config || {}, {
  437. method: method,
  438. url: url,
  439. data: (config || {}).data
  440. }));
  441. };
  442. });
  443. utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
  444. /*eslint func-names:0*/
  445. Axios.prototype[method] = function(url, data, config) {
  446. return this.request(mergeConfig(config || {}, {
  447. method: method,
  448. url: url,
  449. data: data
  450. }));
  451. };
  452. });
  453. module.exports = Axios;
  454. /***/ }),
  455. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/InterceptorManager.js":
  456. /*!*******************************************************************************************!*\
  457. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/InterceptorManager.js ***!
  458. \*******************************************************************************************/
  459. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  460. "use strict";
  461. var utils = __webpack_require__(/*! ./../utils */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/utils.js");
  462. function InterceptorManager() {
  463. this.handlers = [];
  464. }
  465. /**
  466. * Add a new interceptor to the stack
  467. *
  468. * @param {Function} fulfilled The function to handle `then` for a `Promise`
  469. * @param {Function} rejected The function to handle `reject` for a `Promise`
  470. *
  471. * @return {Number} An ID used to remove interceptor later
  472. */
  473. InterceptorManager.prototype.use = function use(fulfilled, rejected, options) {
  474. this.handlers.push({
  475. fulfilled: fulfilled,
  476. rejected: rejected,
  477. synchronous: options ? options.synchronous : false,
  478. runWhen: options ? options.runWhen : null
  479. });
  480. return this.handlers.length - 1;
  481. };
  482. /**
  483. * Remove an interceptor from the stack
  484. *
  485. * @param {Number} id The ID that was returned by `use`
  486. */
  487. InterceptorManager.prototype.eject = function eject(id) {
  488. if (this.handlers[id]) {
  489. this.handlers[id] = null;
  490. }
  491. };
  492. /**
  493. * Iterate over all the registered interceptors
  494. *
  495. * This method is particularly useful for skipping over any
  496. * interceptors that may have become `null` calling `eject`.
  497. *
  498. * @param {Function} fn The function to call for each interceptor
  499. */
  500. InterceptorManager.prototype.forEach = function forEach(fn) {
  501. utils.forEach(this.handlers, function forEachHandler(h) {
  502. if (h !== null) {
  503. fn(h);
  504. }
  505. });
  506. };
  507. module.exports = InterceptorManager;
  508. /***/ }),
  509. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/buildFullPath.js":
  510. /*!**************************************************************************************!*\
  511. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/buildFullPath.js ***!
  512. \**************************************************************************************/
  513. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  514. "use strict";
  515. var isAbsoluteURL = __webpack_require__(/*! ../helpers/isAbsoluteURL */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/isAbsoluteURL.js");
  516. var combineURLs = __webpack_require__(/*! ../helpers/combineURLs */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/combineURLs.js");
  517. /**
  518. * Creates a new URL by combining the baseURL with the requestedURL,
  519. * only when the requestedURL is not already an absolute URL.
  520. * If the requestURL is absolute, this function returns the requestedURL untouched.
  521. *
  522. * @param {string} baseURL The base URL
  523. * @param {string} requestedURL Absolute or relative URL to combine
  524. * @returns {string} The combined full path
  525. */
  526. module.exports = function buildFullPath(baseURL, requestedURL) {
  527. if (baseURL && !isAbsoluteURL(requestedURL)) {
  528. return combineURLs(baseURL, requestedURL);
  529. }
  530. return requestedURL;
  531. };
  532. /***/ }),
  533. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/createError.js":
  534. /*!************************************************************************************!*\
  535. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/createError.js ***!
  536. \************************************************************************************/
  537. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  538. "use strict";
  539. var enhanceError = __webpack_require__(/*! ./enhanceError */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/enhanceError.js");
  540. /**
  541. * Create an Error with the specified message, config, error code, request and response.
  542. *
  543. * @param {string} message The error message.
  544. * @param {Object} config The config.
  545. * @param {string} [code] The error code (for example, 'ECONNABORTED').
  546. * @param {Object} [request] The request.
  547. * @param {Object} [response] The response.
  548. * @returns {Error} The created error.
  549. */
  550. module.exports = function createError(message, config, code, request, response) {
  551. var error = new Error(message);
  552. return enhanceError(error, config, code, request, response);
  553. };
  554. /***/ }),
  555. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/dispatchRequest.js":
  556. /*!****************************************************************************************!*\
  557. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/dispatchRequest.js ***!
  558. \****************************************************************************************/
  559. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  560. "use strict";
  561. var utils = __webpack_require__(/*! ./../utils */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/utils.js");
  562. var transformData = __webpack_require__(/*! ./transformData */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/transformData.js");
  563. var isCancel = __webpack_require__(/*! ../cancel/isCancel */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/cancel/isCancel.js");
  564. var defaults = __webpack_require__(/*! ../defaults */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/defaults.js");
  565. /**
  566. * Throws a `Cancel` if cancellation has been requested.
  567. */
  568. function throwIfCancellationRequested(config) {
  569. if (config.cancelToken) {
  570. config.cancelToken.throwIfRequested();
  571. }
  572. }
  573. /**
  574. * Dispatch a request to the server using the configured adapter.
  575. *
  576. * @param {object} config The config that is to be used for the request
  577. * @returns {Promise} The Promise to be fulfilled
  578. */
  579. module.exports = function dispatchRequest(config) {
  580. throwIfCancellationRequested(config);
  581. // Ensure headers exist
  582. config.headers = config.headers || {};
  583. // Transform request data
  584. config.data = transformData.call(
  585. config,
  586. config.data,
  587. config.headers,
  588. config.transformRequest
  589. );
  590. // Flatten headers
  591. config.headers = utils.merge(
  592. config.headers.common || {},
  593. config.headers[config.method] || {},
  594. config.headers
  595. );
  596. utils.forEach(
  597. ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],
  598. function cleanHeaderConfig(method) {
  599. delete config.headers[method];
  600. }
  601. );
  602. var adapter = config.adapter || defaults.adapter;
  603. return adapter(config).then(function onAdapterResolution(response) {
  604. throwIfCancellationRequested(config);
  605. // Transform response data
  606. response.data = transformData.call(
  607. config,
  608. response.data,
  609. response.headers,
  610. config.transformResponse
  611. );
  612. return response;
  613. }, function onAdapterRejection(reason) {
  614. if (!isCancel(reason)) {
  615. throwIfCancellationRequested(config);
  616. // Transform response data
  617. if (reason && reason.response) {
  618. reason.response.data = transformData.call(
  619. config,
  620. reason.response.data,
  621. reason.response.headers,
  622. config.transformResponse
  623. );
  624. }
  625. }
  626. return Promise.reject(reason);
  627. });
  628. };
  629. /***/ }),
  630. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/enhanceError.js":
  631. /*!*************************************************************************************!*\
  632. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/enhanceError.js ***!
  633. \*************************************************************************************/
  634. /***/ ((module) => {
  635. "use strict";
  636. /**
  637. * Update an Error with the specified config, error code, and response.
  638. *
  639. * @param {Error} error The error to update.
  640. * @param {Object} config The config.
  641. * @param {string} [code] The error code (for example, 'ECONNABORTED').
  642. * @param {Object} [request] The request.
  643. * @param {Object} [response] The response.
  644. * @returns {Error} The error.
  645. */
  646. module.exports = function enhanceError(error, config, code, request, response) {
  647. error.config = config;
  648. if (code) {
  649. error.code = code;
  650. }
  651. error.request = request;
  652. error.response = response;
  653. error.isAxiosError = true;
  654. error.toJSON = function toJSON() {
  655. return {
  656. // Standard
  657. message: this.message,
  658. name: this.name,
  659. // Microsoft
  660. description: this.description,
  661. number: this.number,
  662. // Mozilla
  663. fileName: this.fileName,
  664. lineNumber: this.lineNumber,
  665. columnNumber: this.columnNumber,
  666. stack: this.stack,
  667. // Axios
  668. config: this.config,
  669. code: this.code
  670. };
  671. };
  672. return error;
  673. };
  674. /***/ }),
  675. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/mergeConfig.js":
  676. /*!************************************************************************************!*\
  677. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/mergeConfig.js ***!
  678. \************************************************************************************/
  679. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  680. "use strict";
  681. var utils = __webpack_require__(/*! ../utils */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/utils.js");
  682. /**
  683. * Config-specific merge-function which creates a new config-object
  684. * by merging two configuration objects together.
  685. *
  686. * @param {Object} config1
  687. * @param {Object} config2
  688. * @returns {Object} New object resulting from merging config2 to config1
  689. */
  690. module.exports = function mergeConfig(config1, config2) {
  691. // eslint-disable-next-line no-param-reassign
  692. config2 = config2 || {};
  693. var config = {};
  694. var valueFromConfig2Keys = ['url', 'method', 'data'];
  695. var mergeDeepPropertiesKeys = ['headers', 'auth', 'proxy', 'params'];
  696. var defaultToConfig2Keys = [
  697. 'baseURL', 'transformRequest', 'transformResponse', 'paramsSerializer',
  698. 'timeout', 'timeoutMessage', 'withCredentials', 'adapter', 'responseType', 'xsrfCookieName',
  699. 'xsrfHeaderName', 'onUploadProgress', 'onDownloadProgress', 'decompress',
  700. 'maxContentLength', 'maxBodyLength', 'maxRedirects', 'transport', 'httpAgent',
  701. 'httpsAgent', 'cancelToken', 'socketPath', 'responseEncoding'
  702. ];
  703. var directMergeKeys = ['validateStatus'];
  704. function getMergedValue(target, source) {
  705. if (utils.isPlainObject(target) && utils.isPlainObject(source)) {
  706. return utils.merge(target, source);
  707. } else if (utils.isPlainObject(source)) {
  708. return utils.merge({}, source);
  709. } else if (utils.isArray(source)) {
  710. return source.slice();
  711. }
  712. return source;
  713. }
  714. function mergeDeepProperties(prop) {
  715. if (!utils.isUndefined(config2[prop])) {
  716. config[prop] = getMergedValue(config1[prop], config2[prop]);
  717. } else if (!utils.isUndefined(config1[prop])) {
  718. config[prop] = getMergedValue(undefined, config1[prop]);
  719. }
  720. }
  721. utils.forEach(valueFromConfig2Keys, function valueFromConfig2(prop) {
  722. if (!utils.isUndefined(config2[prop])) {
  723. config[prop] = getMergedValue(undefined, config2[prop]);
  724. }
  725. });
  726. utils.forEach(mergeDeepPropertiesKeys, mergeDeepProperties);
  727. utils.forEach(defaultToConfig2Keys, function defaultToConfig2(prop) {
  728. if (!utils.isUndefined(config2[prop])) {
  729. config[prop] = getMergedValue(undefined, config2[prop]);
  730. } else if (!utils.isUndefined(config1[prop])) {
  731. config[prop] = getMergedValue(undefined, config1[prop]);
  732. }
  733. });
  734. utils.forEach(directMergeKeys, function merge(prop) {
  735. if (prop in config2) {
  736. config[prop] = getMergedValue(config1[prop], config2[prop]);
  737. } else if (prop in config1) {
  738. config[prop] = getMergedValue(undefined, config1[prop]);
  739. }
  740. });
  741. var axiosKeys = valueFromConfig2Keys
  742. .concat(mergeDeepPropertiesKeys)
  743. .concat(defaultToConfig2Keys)
  744. .concat(directMergeKeys);
  745. var otherKeys = Object
  746. .keys(config1)
  747. .concat(Object.keys(config2))
  748. .filter(function filterAxiosKeys(key) {
  749. return axiosKeys.indexOf(key) === -1;
  750. });
  751. utils.forEach(otherKeys, mergeDeepProperties);
  752. return config;
  753. };
  754. /***/ }),
  755. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/settle.js":
  756. /*!*******************************************************************************!*\
  757. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/settle.js ***!
  758. \*******************************************************************************/
  759. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  760. "use strict";
  761. var createError = __webpack_require__(/*! ./createError */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/createError.js");
  762. /**
  763. * Resolve or reject a Promise based on response status.
  764. *
  765. * @param {Function} resolve A function that resolves the promise.
  766. * @param {Function} reject A function that rejects the promise.
  767. * @param {object} response The response.
  768. */
  769. module.exports = function settle(resolve, reject, response) {
  770. var validateStatus = response.config.validateStatus;
  771. if (!response.status || !validateStatus || validateStatus(response.status)) {
  772. resolve(response);
  773. } else {
  774. reject(createError(
  775. 'Request failed with status code ' + response.status,
  776. response.config,
  777. null,
  778. response.request,
  779. response
  780. ));
  781. }
  782. };
  783. /***/ }),
  784. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/transformData.js":
  785. /*!**************************************************************************************!*\
  786. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/transformData.js ***!
  787. \**************************************************************************************/
  788. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  789. "use strict";
  790. var utils = __webpack_require__(/*! ./../utils */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/utils.js");
  791. var defaults = __webpack_require__(/*! ./../defaults */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/defaults.js");
  792. /**
  793. * Transform the data for a request or a response
  794. *
  795. * @param {Object|String} data The data to be transformed
  796. * @param {Array} headers The headers for the request or response
  797. * @param {Array|Function} fns A single function or Array of functions
  798. * @returns {*} The resulting transformed data
  799. */
  800. module.exports = function transformData(data, headers, fns) {
  801. var context = this || defaults;
  802. /*eslint no-param-reassign:0*/
  803. utils.forEach(fns, function transform(fn) {
  804. data = fn.call(context, data, headers);
  805. });
  806. return data;
  807. };
  808. /***/ }),
  809. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/defaults.js":
  810. /*!****************************************************************************!*\
  811. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/lib/defaults.js ***!
  812. \****************************************************************************/
  813. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  814. "use strict";
  815. /* provided dependency */ var process = __webpack_require__(/*! process/browser.js */ "./node_modules/process/browser.js");
  816. var utils = __webpack_require__(/*! ./utils */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/utils.js");
  817. var normalizeHeaderName = __webpack_require__(/*! ./helpers/normalizeHeaderName */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/normalizeHeaderName.js");
  818. var enhanceError = __webpack_require__(/*! ./core/enhanceError */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/core/enhanceError.js");
  819. var DEFAULT_CONTENT_TYPE = {
  820. 'Content-Type': 'application/x-www-form-urlencoded'
  821. };
  822. function setContentTypeIfUnset(headers, value) {
  823. if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) {
  824. headers['Content-Type'] = value;
  825. }
  826. }
  827. function getDefaultAdapter() {
  828. var adapter;
  829. if (typeof XMLHttpRequest !== 'undefined') {
  830. // For browsers use XHR adapter
  831. adapter = __webpack_require__(/*! ./adapters/xhr */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/adapters/xhr.js");
  832. } else if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') {
  833. // For node use HTTP adapter
  834. adapter = __webpack_require__(/*! ./adapters/http */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/adapters/xhr.js");
  835. }
  836. return adapter;
  837. }
  838. function stringifySafely(rawValue, parser, encoder) {
  839. if (utils.isString(rawValue)) {
  840. try {
  841. (parser || JSON.parse)(rawValue);
  842. return utils.trim(rawValue);
  843. } catch (e) {
  844. if (e.name !== 'SyntaxError') {
  845. throw e;
  846. }
  847. }
  848. }
  849. return (encoder || JSON.stringify)(rawValue);
  850. }
  851. var defaults = {
  852. transitional: {
  853. silentJSONParsing: true,
  854. forcedJSONParsing: true,
  855. clarifyTimeoutError: false
  856. },
  857. adapter: getDefaultAdapter(),
  858. transformRequest: [function transformRequest(data, headers) {
  859. normalizeHeaderName(headers, 'Accept');
  860. normalizeHeaderName(headers, 'Content-Type');
  861. if (utils.isFormData(data) ||
  862. utils.isArrayBuffer(data) ||
  863. utils.isBuffer(data) ||
  864. utils.isStream(data) ||
  865. utils.isFile(data) ||
  866. utils.isBlob(data)
  867. ) {
  868. return data;
  869. }
  870. if (utils.isArrayBufferView(data)) {
  871. return data.buffer;
  872. }
  873. if (utils.isURLSearchParams(data)) {
  874. setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8');
  875. return data.toString();
  876. }
  877. if (utils.isObject(data) || (headers && headers['Content-Type'] === 'application/json')) {
  878. setContentTypeIfUnset(headers, 'application/json');
  879. return stringifySafely(data);
  880. }
  881. return data;
  882. }],
  883. transformResponse: [function transformResponse(data) {
  884. var transitional = this.transitional;
  885. var silentJSONParsing = transitional && transitional.silentJSONParsing;
  886. var forcedJSONParsing = transitional && transitional.forcedJSONParsing;
  887. var strictJSONParsing = !silentJSONParsing && this.responseType === 'json';
  888. if (strictJSONParsing || (forcedJSONParsing && utils.isString(data) && data.length)) {
  889. try {
  890. return JSON.parse(data);
  891. } catch (e) {
  892. if (strictJSONParsing) {
  893. if (e.name === 'SyntaxError') {
  894. throw enhanceError(e, this, 'E_JSON_PARSE');
  895. }
  896. throw e;
  897. }
  898. }
  899. }
  900. return data;
  901. }],
  902. /**
  903. * A timeout in milliseconds to abort a request. If set to 0 (default) a
  904. * timeout is not created.
  905. */
  906. timeout: 0,
  907. xsrfCookieName: 'XSRF-TOKEN',
  908. xsrfHeaderName: 'X-XSRF-TOKEN',
  909. maxContentLength: -1,
  910. maxBodyLength: -1,
  911. validateStatus: function validateStatus(status) {
  912. return status >= 200 && status < 300;
  913. }
  914. };
  915. defaults.headers = {
  916. common: {
  917. 'Accept': 'application/json, text/plain, */*'
  918. }
  919. };
  920. utils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) {
  921. defaults.headers[method] = {};
  922. });
  923. utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
  924. defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE);
  925. });
  926. module.exports = defaults;
  927. /***/ }),
  928. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/bind.js":
  929. /*!********************************************************************************!*\
  930. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/bind.js ***!
  931. \********************************************************************************/
  932. /***/ ((module) => {
  933. "use strict";
  934. module.exports = function bind(fn, thisArg) {
  935. return function wrap() {
  936. var args = new Array(arguments.length);
  937. for (var i = 0; i < args.length; i++) {
  938. args[i] = arguments[i];
  939. }
  940. return fn.apply(thisArg, args);
  941. };
  942. };
  943. /***/ }),
  944. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/buildURL.js":
  945. /*!************************************************************************************!*\
  946. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/buildURL.js ***!
  947. \************************************************************************************/
  948. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  949. "use strict";
  950. var utils = __webpack_require__(/*! ./../utils */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/utils.js");
  951. function encode(val) {
  952. return encodeURIComponent(val).
  953. replace(/%3A/gi, ':').
  954. replace(/%24/g, '$').
  955. replace(/%2C/gi, ',').
  956. replace(/%20/g, '+').
  957. replace(/%5B/gi, '[').
  958. replace(/%5D/gi, ']');
  959. }
  960. /**
  961. * Build a URL by appending params to the end
  962. *
  963. * @param {string} url The base of the url (e.g., http://www.google.com)
  964. * @param {object} [params] The params to be appended
  965. * @returns {string} The formatted url
  966. */
  967. module.exports = function buildURL(url, params, paramsSerializer) {
  968. /*eslint no-param-reassign:0*/
  969. if (!params) {
  970. return url;
  971. }
  972. var serializedParams;
  973. if (paramsSerializer) {
  974. serializedParams = paramsSerializer(params);
  975. } else if (utils.isURLSearchParams(params)) {
  976. serializedParams = params.toString();
  977. } else {
  978. var parts = [];
  979. utils.forEach(params, function serialize(val, key) {
  980. if (val === null || typeof val === 'undefined') {
  981. return;
  982. }
  983. if (utils.isArray(val)) {
  984. key = key + '[]';
  985. } else {
  986. val = [val];
  987. }
  988. utils.forEach(val, function parseValue(v) {
  989. if (utils.isDate(v)) {
  990. v = v.toISOString();
  991. } else if (utils.isObject(v)) {
  992. v = JSON.stringify(v);
  993. }
  994. parts.push(encode(key) + '=' + encode(v));
  995. });
  996. });
  997. serializedParams = parts.join('&');
  998. }
  999. if (serializedParams) {
  1000. var hashmarkIndex = url.indexOf('#');
  1001. if (hashmarkIndex !== -1) {
  1002. url = url.slice(0, hashmarkIndex);
  1003. }
  1004. url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
  1005. }
  1006. return url;
  1007. };
  1008. /***/ }),
  1009. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/combineURLs.js":
  1010. /*!***************************************************************************************!*\
  1011. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/combineURLs.js ***!
  1012. \***************************************************************************************/
  1013. /***/ ((module) => {
  1014. "use strict";
  1015. /**
  1016. * Creates a new URL by combining the specified URLs
  1017. *
  1018. * @param {string} baseURL The base URL
  1019. * @param {string} relativeURL The relative URL
  1020. * @returns {string} The combined URL
  1021. */
  1022. module.exports = function combineURLs(baseURL, relativeURL) {
  1023. return relativeURL
  1024. ? baseURL.replace(/\/+$/, '') + '/' + relativeURL.replace(/^\/+/, '')
  1025. : baseURL;
  1026. };
  1027. /***/ }),
  1028. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/cookies.js":
  1029. /*!***********************************************************************************!*\
  1030. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/cookies.js ***!
  1031. \***********************************************************************************/
  1032. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  1033. "use strict";
  1034. var utils = __webpack_require__(/*! ./../utils */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/utils.js");
  1035. module.exports = (
  1036. utils.isStandardBrowserEnv() ?
  1037. // Standard browser envs support document.cookie
  1038. (function standardBrowserEnv() {
  1039. return {
  1040. write: function write(name, value, expires, path, domain, secure) {
  1041. var cookie = [];
  1042. cookie.push(name + '=' + encodeURIComponent(value));
  1043. if (utils.isNumber(expires)) {
  1044. cookie.push('expires=' + new Date(expires).toGMTString());
  1045. }
  1046. if (utils.isString(path)) {
  1047. cookie.push('path=' + path);
  1048. }
  1049. if (utils.isString(domain)) {
  1050. cookie.push('domain=' + domain);
  1051. }
  1052. if (secure === true) {
  1053. cookie.push('secure');
  1054. }
  1055. document.cookie = cookie.join('; ');
  1056. },
  1057. read: function read(name) {
  1058. var match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)'));
  1059. return (match ? decodeURIComponent(match[3]) : null);
  1060. },
  1061. remove: function remove(name) {
  1062. this.write(name, '', Date.now() - 86400000);
  1063. }
  1064. };
  1065. })() :
  1066. // Non standard browser env (web workers, react-native) lack needed support.
  1067. (function nonStandardBrowserEnv() {
  1068. return {
  1069. write: function write() {},
  1070. read: function read() { return null; },
  1071. remove: function remove() {}
  1072. };
  1073. })()
  1074. );
  1075. /***/ }),
  1076. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/isAbsoluteURL.js":
  1077. /*!*****************************************************************************************!*\
  1078. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/isAbsoluteURL.js ***!
  1079. \*****************************************************************************************/
  1080. /***/ ((module) => {
  1081. "use strict";
  1082. /**
  1083. * Determines whether the specified URL is absolute
  1084. *
  1085. * @param {string} url The URL to test
  1086. * @returns {boolean} True if the specified URL is absolute, otherwise false
  1087. */
  1088. module.exports = function isAbsoluteURL(url) {
  1089. // A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
  1090. // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
  1091. // by any combination of letters, digits, plus, period, or hyphen.
  1092. return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(url);
  1093. };
  1094. /***/ }),
  1095. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/isAxiosError.js":
  1096. /*!****************************************************************************************!*\
  1097. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/isAxiosError.js ***!
  1098. \****************************************************************************************/
  1099. /***/ ((module) => {
  1100. "use strict";
  1101. /**
  1102. * Determines whether the payload is an error thrown by Axios
  1103. *
  1104. * @param {*} payload The value to test
  1105. * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false
  1106. */
  1107. module.exports = function isAxiosError(payload) {
  1108. return (typeof payload === 'object') && (payload.isAxiosError === true);
  1109. };
  1110. /***/ }),
  1111. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/isURLSameOrigin.js":
  1112. /*!*******************************************************************************************!*\
  1113. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/isURLSameOrigin.js ***!
  1114. \*******************************************************************************************/
  1115. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  1116. "use strict";
  1117. var utils = __webpack_require__(/*! ./../utils */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/utils.js");
  1118. module.exports = (
  1119. utils.isStandardBrowserEnv() ?
  1120. // Standard browser envs have full support of the APIs needed to test
  1121. // whether the request URL is of the same origin as current location.
  1122. (function standardBrowserEnv() {
  1123. var msie = /(msie|trident)/i.test(navigator.userAgent);
  1124. var urlParsingNode = document.createElement('a');
  1125. var originURL;
  1126. /**
  1127. * Parse a URL to discover it's components
  1128. *
  1129. * @param {String} url The URL to be parsed
  1130. * @returns {Object}
  1131. */
  1132. function resolveURL(url) {
  1133. var href = url;
  1134. if (msie) {
  1135. // IE needs attribute set twice to normalize properties
  1136. urlParsingNode.setAttribute('href', href);
  1137. href = urlParsingNode.href;
  1138. }
  1139. urlParsingNode.setAttribute('href', href);
  1140. // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils
  1141. return {
  1142. href: urlParsingNode.href,
  1143. protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',
  1144. host: urlParsingNode.host,
  1145. search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '',
  1146. hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',
  1147. hostname: urlParsingNode.hostname,
  1148. port: urlParsingNode.port,
  1149. pathname: (urlParsingNode.pathname.charAt(0) === '/') ?
  1150. urlParsingNode.pathname :
  1151. '/' + urlParsingNode.pathname
  1152. };
  1153. }
  1154. originURL = resolveURL(window.location.href);
  1155. /**
  1156. * Determine if a URL shares the same origin as the current location
  1157. *
  1158. * @param {String} requestURL The URL to test
  1159. * @returns {boolean} True if URL shares the same origin, otherwise false
  1160. */
  1161. return function isURLSameOrigin(requestURL) {
  1162. var parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;
  1163. return (parsed.protocol === originURL.protocol &&
  1164. parsed.host === originURL.host);
  1165. };
  1166. })() :
  1167. // Non standard browser envs (web workers, react-native) lack needed support.
  1168. (function nonStandardBrowserEnv() {
  1169. return function isURLSameOrigin() {
  1170. return true;
  1171. };
  1172. })()
  1173. );
  1174. /***/ }),
  1175. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/normalizeHeaderName.js":
  1176. /*!***********************************************************************************************!*\
  1177. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/normalizeHeaderName.js ***!
  1178. \***********************************************************************************************/
  1179. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  1180. "use strict";
  1181. var utils = __webpack_require__(/*! ../utils */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/utils.js");
  1182. module.exports = function normalizeHeaderName(headers, normalizedName) {
  1183. utils.forEach(headers, function processHeader(value, name) {
  1184. if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) {
  1185. headers[normalizedName] = value;
  1186. delete headers[name];
  1187. }
  1188. });
  1189. };
  1190. /***/ }),
  1191. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/parseHeaders.js":
  1192. /*!****************************************************************************************!*\
  1193. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/parseHeaders.js ***!
  1194. \****************************************************************************************/
  1195. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  1196. "use strict";
  1197. var utils = __webpack_require__(/*! ./../utils */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/utils.js");
  1198. // Headers whose duplicates are ignored by node
  1199. // c.f. https://nodejs.org/api/http.html#http_message_headers
  1200. var ignoreDuplicateOf = [
  1201. 'age', 'authorization', 'content-length', 'content-type', 'etag',
  1202. 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',
  1203. 'last-modified', 'location', 'max-forwards', 'proxy-authorization',
  1204. 'referer', 'retry-after', 'user-agent'
  1205. ];
  1206. /**
  1207. * Parse headers into an object
  1208. *
  1209. * ```
  1210. * Date: Wed, 27 Aug 2014 08:58:49 GMT
  1211. * Content-Type: application/json
  1212. * Connection: keep-alive
  1213. * Transfer-Encoding: chunked
  1214. * ```
  1215. *
  1216. * @param {String} headers Headers needing to be parsed
  1217. * @returns {Object} Headers parsed into an object
  1218. */
  1219. module.exports = function parseHeaders(headers) {
  1220. var parsed = {};
  1221. var key;
  1222. var val;
  1223. var i;
  1224. if (!headers) { return parsed; }
  1225. utils.forEach(headers.split('\n'), function parser(line) {
  1226. i = line.indexOf(':');
  1227. key = utils.trim(line.substr(0, i)).toLowerCase();
  1228. val = utils.trim(line.substr(i + 1));
  1229. if (key) {
  1230. if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) {
  1231. return;
  1232. }
  1233. if (key === 'set-cookie') {
  1234. parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]);
  1235. } else {
  1236. parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;
  1237. }
  1238. }
  1239. });
  1240. return parsed;
  1241. };
  1242. /***/ }),
  1243. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/spread.js":
  1244. /*!**********************************************************************************!*\
  1245. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/spread.js ***!
  1246. \**********************************************************************************/
  1247. /***/ ((module) => {
  1248. "use strict";
  1249. /**
  1250. * Syntactic sugar for invoking a function and expanding an array for arguments.
  1251. *
  1252. * Common use case would be to use `Function.prototype.apply`.
  1253. *
  1254. * ```js
  1255. * function f(x, y, z) {}
  1256. * var args = [1, 2, 3];
  1257. * f.apply(null, args);
  1258. * ```
  1259. *
  1260. * With `spread` this example can be re-written.
  1261. *
  1262. * ```js
  1263. * spread(function(x, y, z) {})([1, 2, 3]);
  1264. * ```
  1265. *
  1266. * @param {Function} callback
  1267. * @returns {Function}
  1268. */
  1269. module.exports = function spread(callback) {
  1270. return function wrap(arr) {
  1271. return callback.apply(null, arr);
  1272. };
  1273. };
  1274. /***/ }),
  1275. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/validator.js":
  1276. /*!*************************************************************************************!*\
  1277. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/validator.js ***!
  1278. \*************************************************************************************/
  1279. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  1280. "use strict";
  1281. var pkg = __webpack_require__(/*! ./../../package.json */ "./node_modules/@inertiajs/inertia/node_modules/axios/package.json");
  1282. var validators = {};
  1283. // eslint-disable-next-line func-names
  1284. ['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach(function(type, i) {
  1285. validators[type] = function validator(thing) {
  1286. return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type;
  1287. };
  1288. });
  1289. var deprecatedWarnings = {};
  1290. var currentVerArr = pkg.version.split('.');
  1291. /**
  1292. * Compare package versions
  1293. * @param {string} version
  1294. * @param {string?} thanVersion
  1295. * @returns {boolean}
  1296. */
  1297. function isOlderVersion(version, thanVersion) {
  1298. var pkgVersionArr = thanVersion ? thanVersion.split('.') : currentVerArr;
  1299. var destVer = version.split('.');
  1300. for (var i = 0; i < 3; i++) {
  1301. if (pkgVersionArr[i] > destVer[i]) {
  1302. return true;
  1303. } else if (pkgVersionArr[i] < destVer[i]) {
  1304. return false;
  1305. }
  1306. }
  1307. return false;
  1308. }
  1309. /**
  1310. * Transitional option validator
  1311. * @param {function|boolean?} validator
  1312. * @param {string?} version
  1313. * @param {string} message
  1314. * @returns {function}
  1315. */
  1316. validators.transitional = function transitional(validator, version, message) {
  1317. var isDeprecated = version && isOlderVersion(version);
  1318. function formatMessage(opt, desc) {
  1319. return '[Axios v' + pkg.version + '] Transitional option \'' + opt + '\'' + desc + (message ? '. ' + message : '');
  1320. }
  1321. // eslint-disable-next-line func-names
  1322. return function(value, opt, opts) {
  1323. if (validator === false) {
  1324. throw new Error(formatMessage(opt, ' has been removed in ' + version));
  1325. }
  1326. if (isDeprecated && !deprecatedWarnings[opt]) {
  1327. deprecatedWarnings[opt] = true;
  1328. // eslint-disable-next-line no-console
  1329. console.warn(
  1330. formatMessage(
  1331. opt,
  1332. ' has been deprecated since v' + version + ' and will be removed in the near future'
  1333. )
  1334. );
  1335. }
  1336. return validator ? validator(value, opt, opts) : true;
  1337. };
  1338. };
  1339. /**
  1340. * Assert object's properties type
  1341. * @param {object} options
  1342. * @param {object} schema
  1343. * @param {boolean?} allowUnknown
  1344. */
  1345. function assertOptions(options, schema, allowUnknown) {
  1346. if (typeof options !== 'object') {
  1347. throw new TypeError('options must be an object');
  1348. }
  1349. var keys = Object.keys(options);
  1350. var i = keys.length;
  1351. while (i-- > 0) {
  1352. var opt = keys[i];
  1353. var validator = schema[opt];
  1354. if (validator) {
  1355. var value = options[opt];
  1356. var result = value === undefined || validator(value, opt, options);
  1357. if (result !== true) {
  1358. throw new TypeError('option ' + opt + ' must be ' + result);
  1359. }
  1360. continue;
  1361. }
  1362. if (allowUnknown !== true) {
  1363. throw Error('Unknown option ' + opt);
  1364. }
  1365. }
  1366. }
  1367. module.exports = {
  1368. isOlderVersion: isOlderVersion,
  1369. assertOptions: assertOptions,
  1370. validators: validators
  1371. };
  1372. /***/ }),
  1373. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/utils.js":
  1374. /*!*************************************************************************!*\
  1375. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/lib/utils.js ***!
  1376. \*************************************************************************/
  1377. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  1378. "use strict";
  1379. var bind = __webpack_require__(/*! ./helpers/bind */ "./node_modules/@inertiajs/inertia/node_modules/axios/lib/helpers/bind.js");
  1380. // utils is a library of generic helper functions non-specific to axios
  1381. var toString = Object.prototype.toString;
  1382. /**
  1383. * Determine if a value is an Array
  1384. *
  1385. * @param {Object} val The value to test
  1386. * @returns {boolean} True if value is an Array, otherwise false
  1387. */
  1388. function isArray(val) {
  1389. return toString.call(val) === '[object Array]';
  1390. }
  1391. /**
  1392. * Determine if a value is undefined
  1393. *
  1394. * @param {Object} val The value to test
  1395. * @returns {boolean} True if the value is undefined, otherwise false
  1396. */
  1397. function isUndefined(val) {
  1398. return typeof val === 'undefined';
  1399. }
  1400. /**
  1401. * Determine if a value is a Buffer
  1402. *
  1403. * @param {Object} val The value to test
  1404. * @returns {boolean} True if value is a Buffer, otherwise false
  1405. */
  1406. function isBuffer(val) {
  1407. return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)
  1408. && typeof val.constructor.isBuffer === 'function' && val.constructor.isBuffer(val);
  1409. }
  1410. /**
  1411. * Determine if a value is an ArrayBuffer
  1412. *
  1413. * @param {Object} val The value to test
  1414. * @returns {boolean} True if value is an ArrayBuffer, otherwise false
  1415. */
  1416. function isArrayBuffer(val) {
  1417. return toString.call(val) === '[object ArrayBuffer]';
  1418. }
  1419. /**
  1420. * Determine if a value is a FormData
  1421. *
  1422. * @param {Object} val The value to test
  1423. * @returns {boolean} True if value is an FormData, otherwise false
  1424. */
  1425. function isFormData(val) {
  1426. return (typeof FormData !== 'undefined') && (val instanceof FormData);
  1427. }
  1428. /**
  1429. * Determine if a value is a view on an ArrayBuffer
  1430. *
  1431. * @param {Object} val The value to test
  1432. * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false
  1433. */
  1434. function isArrayBufferView(val) {
  1435. var result;
  1436. if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {
  1437. result = ArrayBuffer.isView(val);
  1438. } else {
  1439. result = (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer);
  1440. }
  1441. return result;
  1442. }
  1443. /**
  1444. * Determine if a value is a String
  1445. *
  1446. * @param {Object} val The value to test
  1447. * @returns {boolean} True if value is a String, otherwise false
  1448. */
  1449. function isString(val) {
  1450. return typeof val === 'string';
  1451. }
  1452. /**
  1453. * Determine if a value is a Number
  1454. *
  1455. * @param {Object} val The value to test
  1456. * @returns {boolean} True if value is a Number, otherwise false
  1457. */
  1458. function isNumber(val) {
  1459. return typeof val === 'number';
  1460. }
  1461. /**
  1462. * Determine if a value is an Object
  1463. *
  1464. * @param {Object} val The value to test
  1465. * @returns {boolean} True if value is an Object, otherwise false
  1466. */
  1467. function isObject(val) {
  1468. return val !== null && typeof val === 'object';
  1469. }
  1470. /**
  1471. * Determine if a value is a plain Object
  1472. *
  1473. * @param {Object} val The value to test
  1474. * @return {boolean} True if value is a plain Object, otherwise false
  1475. */
  1476. function isPlainObject(val) {
  1477. if (toString.call(val) !== '[object Object]') {
  1478. return false;
  1479. }
  1480. var prototype = Object.getPrototypeOf(val);
  1481. return prototype === null || prototype === Object.prototype;
  1482. }
  1483. /**
  1484. * Determine if a value is a Date
  1485. *
  1486. * @param {Object} val The value to test
  1487. * @returns {boolean} True if value is a Date, otherwise false
  1488. */
  1489. function isDate(val) {
  1490. return toString.call(val) === '[object Date]';
  1491. }
  1492. /**
  1493. * Determine if a value is a File
  1494. *
  1495. * @param {Object} val The value to test
  1496. * @returns {boolean} True if value is a File, otherwise false
  1497. */
  1498. function isFile(val) {
  1499. return toString.call(val) === '[object File]';
  1500. }
  1501. /**
  1502. * Determine if a value is a Blob
  1503. *
  1504. * @param {Object} val The value to test
  1505. * @returns {boolean} True if value is a Blob, otherwise false
  1506. */
  1507. function isBlob(val) {
  1508. return toString.call(val) === '[object Blob]';
  1509. }
  1510. /**
  1511. * Determine if a value is a Function
  1512. *
  1513. * @param {Object} val The value to test
  1514. * @returns {boolean} True if value is a Function, otherwise false
  1515. */
  1516. function isFunction(val) {
  1517. return toString.call(val) === '[object Function]';
  1518. }
  1519. /**
  1520. * Determine if a value is a Stream
  1521. *
  1522. * @param {Object} val The value to test
  1523. * @returns {boolean} True if value is a Stream, otherwise false
  1524. */
  1525. function isStream(val) {
  1526. return isObject(val) && isFunction(val.pipe);
  1527. }
  1528. /**
  1529. * Determine if a value is a URLSearchParams object
  1530. *
  1531. * @param {Object} val The value to test
  1532. * @returns {boolean} True if value is a URLSearchParams object, otherwise false
  1533. */
  1534. function isURLSearchParams(val) {
  1535. return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams;
  1536. }
  1537. /**
  1538. * Trim excess whitespace off the beginning and end of a string
  1539. *
  1540. * @param {String} str The String to trim
  1541. * @returns {String} The String freed of excess whitespace
  1542. */
  1543. function trim(str) {
  1544. return str.trim ? str.trim() : str.replace(/^\s+|\s+$/g, '');
  1545. }
  1546. /**
  1547. * Determine if we're running in a standard browser environment
  1548. *
  1549. * This allows axios to run in a web worker, and react-native.
  1550. * Both environments support XMLHttpRequest, but not fully standard globals.
  1551. *
  1552. * web workers:
  1553. * typeof window -> undefined
  1554. * typeof document -> undefined
  1555. *
  1556. * react-native:
  1557. * navigator.product -> 'ReactNative'
  1558. * nativescript
  1559. * navigator.product -> 'NativeScript' or 'NS'
  1560. */
  1561. function isStandardBrowserEnv() {
  1562. if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||
  1563. navigator.product === 'NativeScript' ||
  1564. navigator.product === 'NS')) {
  1565. return false;
  1566. }
  1567. return (
  1568. typeof window !== 'undefined' &&
  1569. typeof document !== 'undefined'
  1570. );
  1571. }
  1572. /**
  1573. * Iterate over an Array or an Object invoking a function for each item.
  1574. *
  1575. * If `obj` is an Array callback will be called passing
  1576. * the value, index, and complete array for each item.
  1577. *
  1578. * If 'obj' is an Object callback will be called passing
  1579. * the value, key, and complete object for each property.
  1580. *
  1581. * @param {Object|Array} obj The object to iterate
  1582. * @param {Function} fn The callback to invoke for each item
  1583. */
  1584. function forEach(obj, fn) {
  1585. // Don't bother if no value provided
  1586. if (obj === null || typeof obj === 'undefined') {
  1587. return;
  1588. }
  1589. // Force an array if not already something iterable
  1590. if (typeof obj !== 'object') {
  1591. /*eslint no-param-reassign:0*/
  1592. obj = [obj];
  1593. }
  1594. if (isArray(obj)) {
  1595. // Iterate over array values
  1596. for (var i = 0, l = obj.length; i < l; i++) {
  1597. fn.call(null, obj[i], i, obj);
  1598. }
  1599. } else {
  1600. // Iterate over object keys
  1601. for (var key in obj) {
  1602. if (Object.prototype.hasOwnProperty.call(obj, key)) {
  1603. fn.call(null, obj[key], key, obj);
  1604. }
  1605. }
  1606. }
  1607. }
  1608. /**
  1609. * Accepts varargs expecting each argument to be an object, then
  1610. * immutably merges the properties of each object and returns result.
  1611. *
  1612. * When multiple objects contain the same key the later object in
  1613. * the arguments list will take precedence.
  1614. *
  1615. * Example:
  1616. *
  1617. * ```js
  1618. * var result = merge({foo: 123}, {foo: 456});
  1619. * console.log(result.foo); // outputs 456
  1620. * ```
  1621. *
  1622. * @param {Object} obj1 Object to merge
  1623. * @returns {Object} Result of all merge properties
  1624. */
  1625. function merge(/* obj1, obj2, obj3, ... */) {
  1626. var result = {};
  1627. function assignValue(val, key) {
  1628. if (isPlainObject(result[key]) && isPlainObject(val)) {
  1629. result[key] = merge(result[key], val);
  1630. } else if (isPlainObject(val)) {
  1631. result[key] = merge({}, val);
  1632. } else if (isArray(val)) {
  1633. result[key] = val.slice();
  1634. } else {
  1635. result[key] = val;
  1636. }
  1637. }
  1638. for (var i = 0, l = arguments.length; i < l; i++) {
  1639. forEach(arguments[i], assignValue);
  1640. }
  1641. return result;
  1642. }
  1643. /**
  1644. * Extends object a by mutably adding to it the properties of object b.
  1645. *
  1646. * @param {Object} a The object to be extended
  1647. * @param {Object} b The object to copy properties from
  1648. * @param {Object} thisArg The object to bind function to
  1649. * @return {Object} The resulting value of object a
  1650. */
  1651. function extend(a, b, thisArg) {
  1652. forEach(b, function assignValue(val, key) {
  1653. if (thisArg && typeof val === 'function') {
  1654. a[key] = bind(val, thisArg);
  1655. } else {
  1656. a[key] = val;
  1657. }
  1658. });
  1659. return a;
  1660. }
  1661. /**
  1662. * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)
  1663. *
  1664. * @param {string} content with BOM
  1665. * @return {string} content value without BOM
  1666. */
  1667. function stripBOM(content) {
  1668. if (content.charCodeAt(0) === 0xFEFF) {
  1669. content = content.slice(1);
  1670. }
  1671. return content;
  1672. }
  1673. module.exports = {
  1674. isArray: isArray,
  1675. isArrayBuffer: isArrayBuffer,
  1676. isBuffer: isBuffer,
  1677. isFormData: isFormData,
  1678. isArrayBufferView: isArrayBufferView,
  1679. isString: isString,
  1680. isNumber: isNumber,
  1681. isObject: isObject,
  1682. isPlainObject: isPlainObject,
  1683. isUndefined: isUndefined,
  1684. isDate: isDate,
  1685. isFile: isFile,
  1686. isBlob: isBlob,
  1687. isFunction: isFunction,
  1688. isStream: isStream,
  1689. isURLSearchParams: isURLSearchParams,
  1690. isStandardBrowserEnv: isStandardBrowserEnv,
  1691. forEach: forEach,
  1692. merge: merge,
  1693. extend: extend,
  1694. trim: trim,
  1695. stripBOM: stripBOM
  1696. };
  1697. /***/ }),
  1698. /***/ "./node_modules/@inertiajs/inertia/node_modules/qs/lib/formats.js":
  1699. /*!************************************************************************!*\
  1700. !*** ./node_modules/@inertiajs/inertia/node_modules/qs/lib/formats.js ***!
  1701. \************************************************************************/
  1702. /***/ ((module) => {
  1703. "use strict";
  1704. var replace = String.prototype.replace;
  1705. var percentTwenties = /%20/g;
  1706. var Format = {
  1707. RFC1738: 'RFC1738',
  1708. RFC3986: 'RFC3986'
  1709. };
  1710. module.exports = {
  1711. 'default': Format.RFC3986,
  1712. formatters: {
  1713. RFC1738: function (value) {
  1714. return replace.call(value, percentTwenties, '+');
  1715. },
  1716. RFC3986: function (value) {
  1717. return String(value);
  1718. }
  1719. },
  1720. RFC1738: Format.RFC1738,
  1721. RFC3986: Format.RFC3986
  1722. };
  1723. /***/ }),
  1724. /***/ "./node_modules/@inertiajs/inertia/node_modules/qs/lib/index.js":
  1725. /*!**********************************************************************!*\
  1726. !*** ./node_modules/@inertiajs/inertia/node_modules/qs/lib/index.js ***!
  1727. \**********************************************************************/
  1728. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  1729. "use strict";
  1730. var stringify = __webpack_require__(/*! ./stringify */ "./node_modules/@inertiajs/inertia/node_modules/qs/lib/stringify.js");
  1731. var parse = __webpack_require__(/*! ./parse */ "./node_modules/@inertiajs/inertia/node_modules/qs/lib/parse.js");
  1732. var formats = __webpack_require__(/*! ./formats */ "./node_modules/@inertiajs/inertia/node_modules/qs/lib/formats.js");
  1733. module.exports = {
  1734. formats: formats,
  1735. parse: parse,
  1736. stringify: stringify
  1737. };
  1738. /***/ }),
  1739. /***/ "./node_modules/@inertiajs/inertia/node_modules/qs/lib/parse.js":
  1740. /*!**********************************************************************!*\
  1741. !*** ./node_modules/@inertiajs/inertia/node_modules/qs/lib/parse.js ***!
  1742. \**********************************************************************/
  1743. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  1744. "use strict";
  1745. var utils = __webpack_require__(/*! ./utils */ "./node_modules/@inertiajs/inertia/node_modules/qs/lib/utils.js");
  1746. var has = Object.prototype.hasOwnProperty;
  1747. var isArray = Array.isArray;
  1748. var defaults = {
  1749. allowDots: false,
  1750. allowPrototypes: false,
  1751. allowSparse: false,
  1752. arrayLimit: 20,
  1753. charset: 'utf-8',
  1754. charsetSentinel: false,
  1755. comma: false,
  1756. decoder: utils.decode,
  1757. delimiter: '&',
  1758. depth: 5,
  1759. ignoreQueryPrefix: false,
  1760. interpretNumericEntities: false,
  1761. parameterLimit: 1000,
  1762. parseArrays: true,
  1763. plainObjects: false,
  1764. strictNullHandling: false
  1765. };
  1766. var interpretNumericEntities = function (str) {
  1767. return str.replace(/&#(\d+);/g, function ($0, numberStr) {
  1768. return String.fromCharCode(parseInt(numberStr, 10));
  1769. });
  1770. };
  1771. var parseArrayValue = function (val, options) {
  1772. if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) {
  1773. return val.split(',');
  1774. }
  1775. return val;
  1776. };
  1777. // This is what browsers will submit when the ✓ character occurs in an
  1778. // application/x-www-form-urlencoded body and the encoding of the page containing
  1779. // the form is iso-8859-1, or when the submitted form has an accept-charset
  1780. // attribute of iso-8859-1. Presumably also with other charsets that do not contain
  1781. // the ✓ character, such as us-ascii.
  1782. var isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('&#10003;')
  1783. // These are the percent-encoded utf-8 octets representing a checkmark, indicating that the request actually is utf-8 encoded.
  1784. var charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓')
  1785. var parseValues = function parseQueryStringValues(str, options) {
  1786. var obj = {};
  1787. var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str;
  1788. var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;
  1789. var parts = cleanStr.split(options.delimiter, limit);
  1790. var skipIndex = -1; // Keep track of where the utf8 sentinel was found
  1791. var i;
  1792. var charset = options.charset;
  1793. if (options.charsetSentinel) {
  1794. for (i = 0; i < parts.length; ++i) {
  1795. if (parts[i].indexOf('utf8=') === 0) {
  1796. if (parts[i] === charsetSentinel) {
  1797. charset = 'utf-8';
  1798. } else if (parts[i] === isoSentinel) {
  1799. charset = 'iso-8859-1';
  1800. }
  1801. skipIndex = i;
  1802. i = parts.length; // The eslint settings do not allow break;
  1803. }
  1804. }
  1805. }
  1806. for (i = 0; i < parts.length; ++i) {
  1807. if (i === skipIndex) {
  1808. continue;
  1809. }
  1810. var part = parts[i];
  1811. var bracketEqualsPos = part.indexOf(']=');
  1812. var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1;
  1813. var key, val;
  1814. if (pos === -1) {
  1815. key = options.decoder(part, defaults.decoder, charset, 'key');
  1816. val = options.strictNullHandling ? null : '';
  1817. } else {
  1818. key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key');
  1819. val = utils.maybeMap(
  1820. parseArrayValue(part.slice(pos + 1), options),
  1821. function (encodedVal) {
  1822. return options.decoder(encodedVal, defaults.decoder, charset, 'value');
  1823. }
  1824. );
  1825. }
  1826. if (val && options.interpretNumericEntities && charset === 'iso-8859-1') {
  1827. val = interpretNumericEntities(val);
  1828. }
  1829. if (part.indexOf('[]=') > -1) {
  1830. val = isArray(val) ? [val] : val;
  1831. }
  1832. if (has.call(obj, key)) {
  1833. obj[key] = utils.combine(obj[key], val);
  1834. } else {
  1835. obj[key] = val;
  1836. }
  1837. }
  1838. return obj;
  1839. };
  1840. var parseObject = function (chain, val, options, valuesParsed) {
  1841. var leaf = valuesParsed ? val : parseArrayValue(val, options);
  1842. for (var i = chain.length - 1; i >= 0; --i) {
  1843. var obj;
  1844. var root = chain[i];
  1845. if (root === '[]' && options.parseArrays) {
  1846. obj = [].concat(leaf);
  1847. } else {
  1848. obj = options.plainObjects ? Object.create(null) : {};
  1849. var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;
  1850. var index = parseInt(cleanRoot, 10);
  1851. if (!options.parseArrays && cleanRoot === '') {
  1852. obj = { 0: leaf };
  1853. } else if (
  1854. !isNaN(index)
  1855. && root !== cleanRoot
  1856. && String(index) === cleanRoot
  1857. && index >= 0
  1858. && (options.parseArrays && index <= options.arrayLimit)
  1859. ) {
  1860. obj = [];
  1861. obj[index] = leaf;
  1862. } else if (cleanRoot !== '__proto__') {
  1863. obj[cleanRoot] = leaf;
  1864. }
  1865. }
  1866. leaf = obj;
  1867. }
  1868. return leaf;
  1869. };
  1870. var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
  1871. if (!givenKey) {
  1872. return;
  1873. }
  1874. // Transform dot notation to bracket notation
  1875. var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, '[$1]') : givenKey;
  1876. // The regex chunks
  1877. var brackets = /(\[[^[\]]*])/;
  1878. var child = /(\[[^[\]]*])/g;
  1879. // Get the parent
  1880. var segment = options.depth > 0 && brackets.exec(key);
  1881. var parent = segment ? key.slice(0, segment.index) : key;
  1882. // Stash the parent if it exists
  1883. var keys = [];
  1884. if (parent) {
  1885. // If we aren't using plain objects, optionally prefix keys that would overwrite object prototype properties
  1886. if (!options.plainObjects && has.call(Object.prototype, parent)) {
  1887. if (!options.allowPrototypes) {
  1888. return;
  1889. }
  1890. }
  1891. keys.push(parent);
  1892. }
  1893. // Loop through children appending to the array until we hit depth
  1894. var i = 0;
  1895. while (options.depth > 0 && (segment = child.exec(key)) !== null && i < options.depth) {
  1896. i += 1;
  1897. if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {
  1898. if (!options.allowPrototypes) {
  1899. return;
  1900. }
  1901. }
  1902. keys.push(segment[1]);
  1903. }
  1904. // If there's a remainder, just add whatever is left
  1905. if (segment) {
  1906. keys.push('[' + key.slice(segment.index) + ']');
  1907. }
  1908. return parseObject(keys, val, options, valuesParsed);
  1909. };
  1910. var normalizeParseOptions = function normalizeParseOptions(opts) {
  1911. if (!opts) {
  1912. return defaults;
  1913. }
  1914. if (opts.decoder !== null && opts.decoder !== undefined && typeof opts.decoder !== 'function') {
  1915. throw new TypeError('Decoder has to be a function.');
  1916. }
  1917. if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
  1918. throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
  1919. }
  1920. var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset;
  1921. return {
  1922. allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
  1923. allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes,
  1924. allowSparse: typeof opts.allowSparse === 'boolean' ? opts.allowSparse : defaults.allowSparse,
  1925. arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit,
  1926. charset: charset,
  1927. charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
  1928. comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma,
  1929. decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder,
  1930. delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
  1931. // eslint-disable-next-line no-implicit-coercion, no-extra-parens
  1932. depth: (typeof opts.depth === 'number' || opts.depth === false) ? +opts.depth : defaults.depth,
  1933. ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
  1934. interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
  1935. parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit,
  1936. parseArrays: opts.parseArrays !== false,
  1937. plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects,
  1938. strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
  1939. };
  1940. };
  1941. module.exports = function (str, opts) {
  1942. var options = normalizeParseOptions(opts);
  1943. if (str === '' || str === null || typeof str === 'undefined') {
  1944. return options.plainObjects ? Object.create(null) : {};
  1945. }
  1946. var tempObj = typeof str === 'string' ? parseValues(str, options) : str;
  1947. var obj = options.plainObjects ? Object.create(null) : {};
  1948. // Iterate over the keys and setup the new object
  1949. var keys = Object.keys(tempObj);
  1950. for (var i = 0; i < keys.length; ++i) {
  1951. var key = keys[i];
  1952. var newObj = parseKeys(key, tempObj[key], options, typeof str === 'string');
  1953. obj = utils.merge(obj, newObj, options);
  1954. }
  1955. if (options.allowSparse === true) {
  1956. return obj;
  1957. }
  1958. return utils.compact(obj);
  1959. };
  1960. /***/ }),
  1961. /***/ "./node_modules/@inertiajs/inertia/node_modules/qs/lib/stringify.js":
  1962. /*!**************************************************************************!*\
  1963. !*** ./node_modules/@inertiajs/inertia/node_modules/qs/lib/stringify.js ***!
  1964. \**************************************************************************/
  1965. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  1966. "use strict";
  1967. var getSideChannel = __webpack_require__(/*! side-channel */ "./node_modules/side-channel/index.js");
  1968. var utils = __webpack_require__(/*! ./utils */ "./node_modules/@inertiajs/inertia/node_modules/qs/lib/utils.js");
  1969. var formats = __webpack_require__(/*! ./formats */ "./node_modules/@inertiajs/inertia/node_modules/qs/lib/formats.js");
  1970. var has = Object.prototype.hasOwnProperty;
  1971. var arrayPrefixGenerators = {
  1972. brackets: function brackets(prefix) {
  1973. return prefix + '[]';
  1974. },
  1975. comma: 'comma',
  1976. indices: function indices(prefix, key) {
  1977. return prefix + '[' + key + ']';
  1978. },
  1979. repeat: function repeat(prefix) {
  1980. return prefix;
  1981. }
  1982. };
  1983. var isArray = Array.isArray;
  1984. var split = String.prototype.split;
  1985. var push = Array.prototype.push;
  1986. var pushToArray = function (arr, valueOrArray) {
  1987. push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]);
  1988. };
  1989. var toISO = Date.prototype.toISOString;
  1990. var defaultFormat = formats['default'];
  1991. var defaults = {
  1992. addQueryPrefix: false,
  1993. allowDots: false,
  1994. charset: 'utf-8',
  1995. charsetSentinel: false,
  1996. delimiter: '&',
  1997. encode: true,
  1998. encoder: utils.encode,
  1999. encodeValuesOnly: false,
  2000. format: defaultFormat,
  2001. formatter: formats.formatters[defaultFormat],
  2002. // deprecated
  2003. indices: false,
  2004. serializeDate: function serializeDate(date) {
  2005. return toISO.call(date);
  2006. },
  2007. skipNulls: false,
  2008. strictNullHandling: false
  2009. };
  2010. var isNonNullishPrimitive = function isNonNullishPrimitive(v) {
  2011. return typeof v === 'string'
  2012. || typeof v === 'number'
  2013. || typeof v === 'boolean'
  2014. || typeof v === 'symbol'
  2015. || typeof v === 'bigint';
  2016. };
  2017. var sentinel = {};
  2018. var stringify = function stringify(
  2019. object,
  2020. prefix,
  2021. generateArrayPrefix,
  2022. strictNullHandling,
  2023. skipNulls,
  2024. encoder,
  2025. filter,
  2026. sort,
  2027. allowDots,
  2028. serializeDate,
  2029. format,
  2030. formatter,
  2031. encodeValuesOnly,
  2032. charset,
  2033. sideChannel
  2034. ) {
  2035. var obj = object;
  2036. var tmpSc = sideChannel;
  2037. var step = 0;
  2038. var findFlag = false;
  2039. while ((tmpSc = tmpSc.get(sentinel)) !== void undefined && !findFlag) {
  2040. // Where object last appeared in the ref tree
  2041. var pos = tmpSc.get(object);
  2042. step += 1;
  2043. if (typeof pos !== 'undefined') {
  2044. if (pos === step) {
  2045. throw new RangeError('Cyclic object value');
  2046. } else {
  2047. findFlag = true; // Break while
  2048. }
  2049. }
  2050. if (typeof tmpSc.get(sentinel) === 'undefined') {
  2051. step = 0;
  2052. }
  2053. }
  2054. if (typeof filter === 'function') {
  2055. obj = filter(prefix, obj);
  2056. } else if (obj instanceof Date) {
  2057. obj = serializeDate(obj);
  2058. } else if (generateArrayPrefix === 'comma' && isArray(obj)) {
  2059. obj = utils.maybeMap(obj, function (value) {
  2060. if (value instanceof Date) {
  2061. return serializeDate(value);
  2062. }
  2063. return value;
  2064. });
  2065. }
  2066. if (obj === null) {
  2067. if (strictNullHandling) {
  2068. return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, 'key', format) : prefix;
  2069. }
  2070. obj = '';
  2071. }
  2072. if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {
  2073. if (encoder) {
  2074. var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, 'key', format);
  2075. if (generateArrayPrefix === 'comma' && encodeValuesOnly) {
  2076. var valuesArray = split.call(String(obj), ',');
  2077. var valuesJoined = '';
  2078. for (var i = 0; i < valuesArray.length; ++i) {
  2079. valuesJoined += (i === 0 ? '' : ',') + formatter(encoder(valuesArray[i], defaults.encoder, charset, 'value', format));
  2080. }
  2081. return [formatter(keyValue) + '=' + valuesJoined];
  2082. }
  2083. return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset, 'value', format))];
  2084. }
  2085. return [formatter(prefix) + '=' + formatter(String(obj))];
  2086. }
  2087. var values = [];
  2088. if (typeof obj === 'undefined') {
  2089. return values;
  2090. }
  2091. var objKeys;
  2092. if (generateArrayPrefix === 'comma' && isArray(obj)) {
  2093. // we need to join elements in
  2094. objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : void undefined }];
  2095. } else if (isArray(filter)) {
  2096. objKeys = filter;
  2097. } else {
  2098. var keys = Object.keys(obj);
  2099. objKeys = sort ? keys.sort(sort) : keys;
  2100. }
  2101. for (var j = 0; j < objKeys.length; ++j) {
  2102. var key = objKeys[j];
  2103. var value = typeof key === 'object' && typeof key.value !== 'undefined' ? key.value : obj[key];
  2104. if (skipNulls && value === null) {
  2105. continue;
  2106. }
  2107. var keyPrefix = isArray(obj)
  2108. ? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(prefix, key) : prefix
  2109. : prefix + (allowDots ? '.' + key : '[' + key + ']');
  2110. sideChannel.set(object, step);
  2111. var valueSideChannel = getSideChannel();
  2112. valueSideChannel.set(sentinel, sideChannel);
  2113. pushToArray(values, stringify(
  2114. value,
  2115. keyPrefix,
  2116. generateArrayPrefix,
  2117. strictNullHandling,
  2118. skipNulls,
  2119. encoder,
  2120. filter,
  2121. sort,
  2122. allowDots,
  2123. serializeDate,
  2124. format,
  2125. formatter,
  2126. encodeValuesOnly,
  2127. charset,
  2128. valueSideChannel
  2129. ));
  2130. }
  2131. return values;
  2132. };
  2133. var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
  2134. if (!opts) {
  2135. return defaults;
  2136. }
  2137. if (opts.encoder !== null && typeof opts.encoder !== 'undefined' && typeof opts.encoder !== 'function') {
  2138. throw new TypeError('Encoder has to be a function.');
  2139. }
  2140. var charset = opts.charset || defaults.charset;
  2141. if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
  2142. throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
  2143. }
  2144. var format = formats['default'];
  2145. if (typeof opts.format !== 'undefined') {
  2146. if (!has.call(formats.formatters, opts.format)) {
  2147. throw new TypeError('Unknown format option provided.');
  2148. }
  2149. format = opts.format;
  2150. }
  2151. var formatter = formats.formatters[format];
  2152. var filter = defaults.filter;
  2153. if (typeof opts.filter === 'function' || isArray(opts.filter)) {
  2154. filter = opts.filter;
  2155. }
  2156. return {
  2157. addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults.addQueryPrefix,
  2158. allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
  2159. charset: charset,
  2160. charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
  2161. delimiter: typeof opts.delimiter === 'undefined' ? defaults.delimiter : opts.delimiter,
  2162. encode: typeof opts.encode === 'boolean' ? opts.encode : defaults.encode,
  2163. encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults.encoder,
  2164. encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults.encodeValuesOnly,
  2165. filter: filter,
  2166. format: format,
  2167. formatter: formatter,
  2168. serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults.serializeDate,
  2169. skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults.skipNulls,
  2170. sort: typeof opts.sort === 'function' ? opts.sort : null,
  2171. strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
  2172. };
  2173. };
  2174. module.exports = function (object, opts) {
  2175. var obj = object;
  2176. var options = normalizeStringifyOptions(opts);
  2177. var objKeys;
  2178. var filter;
  2179. if (typeof options.filter === 'function') {
  2180. filter = options.filter;
  2181. obj = filter('', obj);
  2182. } else if (isArray(options.filter)) {
  2183. filter = options.filter;
  2184. objKeys = filter;
  2185. }
  2186. var keys = [];
  2187. if (typeof obj !== 'object' || obj === null) {
  2188. return '';
  2189. }
  2190. var arrayFormat;
  2191. if (opts && opts.arrayFormat in arrayPrefixGenerators) {
  2192. arrayFormat = opts.arrayFormat;
  2193. } else if (opts && 'indices' in opts) {
  2194. arrayFormat = opts.indices ? 'indices' : 'repeat';
  2195. } else {
  2196. arrayFormat = 'indices';
  2197. }
  2198. var generateArrayPrefix = arrayPrefixGenerators[arrayFormat];
  2199. if (!objKeys) {
  2200. objKeys = Object.keys(obj);
  2201. }
  2202. if (options.sort) {
  2203. objKeys.sort(options.sort);
  2204. }
  2205. var sideChannel = getSideChannel();
  2206. for (var i = 0; i < objKeys.length; ++i) {
  2207. var key = objKeys[i];
  2208. if (options.skipNulls && obj[key] === null) {
  2209. continue;
  2210. }
  2211. pushToArray(keys, stringify(
  2212. obj[key],
  2213. key,
  2214. generateArrayPrefix,
  2215. options.strictNullHandling,
  2216. options.skipNulls,
  2217. options.encode ? options.encoder : null,
  2218. options.filter,
  2219. options.sort,
  2220. options.allowDots,
  2221. options.serializeDate,
  2222. options.format,
  2223. options.formatter,
  2224. options.encodeValuesOnly,
  2225. options.charset,
  2226. sideChannel
  2227. ));
  2228. }
  2229. var joined = keys.join(options.delimiter);
  2230. var prefix = options.addQueryPrefix === true ? '?' : '';
  2231. if (options.charsetSentinel) {
  2232. if (options.charset === 'iso-8859-1') {
  2233. // encodeURIComponent('&#10003;'), the "numeric entity" representation of a checkmark
  2234. prefix += 'utf8=%26%2310003%3B&';
  2235. } else {
  2236. // encodeURIComponent('✓')
  2237. prefix += 'utf8=%E2%9C%93&';
  2238. }
  2239. }
  2240. return joined.length > 0 ? prefix + joined : '';
  2241. };
  2242. /***/ }),
  2243. /***/ "./node_modules/@inertiajs/inertia/node_modules/qs/lib/utils.js":
  2244. /*!**********************************************************************!*\
  2245. !*** ./node_modules/@inertiajs/inertia/node_modules/qs/lib/utils.js ***!
  2246. \**********************************************************************/
  2247. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  2248. "use strict";
  2249. var formats = __webpack_require__(/*! ./formats */ "./node_modules/@inertiajs/inertia/node_modules/qs/lib/formats.js");
  2250. var has = Object.prototype.hasOwnProperty;
  2251. var isArray = Array.isArray;
  2252. var hexTable = (function () {
  2253. var array = [];
  2254. for (var i = 0; i < 256; ++i) {
  2255. array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());
  2256. }
  2257. return array;
  2258. }());
  2259. var compactQueue = function compactQueue(queue) {
  2260. while (queue.length > 1) {
  2261. var item = queue.pop();
  2262. var obj = item.obj[item.prop];
  2263. if (isArray(obj)) {
  2264. var compacted = [];
  2265. for (var j = 0; j < obj.length; ++j) {
  2266. if (typeof obj[j] !== 'undefined') {
  2267. compacted.push(obj[j]);
  2268. }
  2269. }
  2270. item.obj[item.prop] = compacted;
  2271. }
  2272. }
  2273. };
  2274. var arrayToObject = function arrayToObject(source, options) {
  2275. var obj = options && options.plainObjects ? Object.create(null) : {};
  2276. for (var i = 0; i < source.length; ++i) {
  2277. if (typeof source[i] !== 'undefined') {
  2278. obj[i] = source[i];
  2279. }
  2280. }
  2281. return obj;
  2282. };
  2283. var merge = function merge(target, source, options) {
  2284. /* eslint no-param-reassign: 0 */
  2285. if (!source) {
  2286. return target;
  2287. }
  2288. if (typeof source !== 'object') {
  2289. if (isArray(target)) {
  2290. target.push(source);
  2291. } else if (target && typeof target === 'object') {
  2292. if ((options && (options.plainObjects || options.allowPrototypes)) || !has.call(Object.prototype, source)) {
  2293. target[source] = true;
  2294. }
  2295. } else {
  2296. return [target, source];
  2297. }
  2298. return target;
  2299. }
  2300. if (!target || typeof target !== 'object') {
  2301. return [target].concat(source);
  2302. }
  2303. var mergeTarget = target;
  2304. if (isArray(target) && !isArray(source)) {
  2305. mergeTarget = arrayToObject(target, options);
  2306. }
  2307. if (isArray(target) && isArray(source)) {
  2308. source.forEach(function (item, i) {
  2309. if (has.call(target, i)) {
  2310. var targetItem = target[i];
  2311. if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') {
  2312. target[i] = merge(targetItem, item, options);
  2313. } else {
  2314. target.push(item);
  2315. }
  2316. } else {
  2317. target[i] = item;
  2318. }
  2319. });
  2320. return target;
  2321. }
  2322. return Object.keys(source).reduce(function (acc, key) {
  2323. var value = source[key];
  2324. if (has.call(acc, key)) {
  2325. acc[key] = merge(acc[key], value, options);
  2326. } else {
  2327. acc[key] = value;
  2328. }
  2329. return acc;
  2330. }, mergeTarget);
  2331. };
  2332. var assign = function assignSingleSource(target, source) {
  2333. return Object.keys(source).reduce(function (acc, key) {
  2334. acc[key] = source[key];
  2335. return acc;
  2336. }, target);
  2337. };
  2338. var decode = function (str, decoder, charset) {
  2339. var strWithoutPlus = str.replace(/\+/g, ' ');
  2340. if (charset === 'iso-8859-1') {
  2341. // unescape never throws, no try...catch needed:
  2342. return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
  2343. }
  2344. // utf-8
  2345. try {
  2346. return decodeURIComponent(strWithoutPlus);
  2347. } catch (e) {
  2348. return strWithoutPlus;
  2349. }
  2350. };
  2351. var encode = function encode(str, defaultEncoder, charset, kind, format) {
  2352. // This code was originally written by Brian White (mscdex) for the io.js core querystring library.
  2353. // It has been adapted here for stricter adherence to RFC 3986
  2354. if (str.length === 0) {
  2355. return str;
  2356. }
  2357. var string = str;
  2358. if (typeof str === 'symbol') {
  2359. string = Symbol.prototype.toString.call(str);
  2360. } else if (typeof str !== 'string') {
  2361. string = String(str);
  2362. }
  2363. if (charset === 'iso-8859-1') {
  2364. return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) {
  2365. return '%26%23' + parseInt($0.slice(2), 16) + '%3B';
  2366. });
  2367. }
  2368. var out = '';
  2369. for (var i = 0; i < string.length; ++i) {
  2370. var c = string.charCodeAt(i);
  2371. if (
  2372. c === 0x2D // -
  2373. || c === 0x2E // .
  2374. || c === 0x5F // _
  2375. || c === 0x7E // ~
  2376. || (c >= 0x30 && c <= 0x39) // 0-9
  2377. || (c >= 0x41 && c <= 0x5A) // a-z
  2378. || (c >= 0x61 && c <= 0x7A) // A-Z
  2379. || (format === formats.RFC1738 && (c === 0x28 || c === 0x29)) // ( )
  2380. ) {
  2381. out += string.charAt(i);
  2382. continue;
  2383. }
  2384. if (c < 0x80) {
  2385. out = out + hexTable[c];
  2386. continue;
  2387. }
  2388. if (c < 0x800) {
  2389. out = out + (hexTable[0xC0 | (c >> 6)] + hexTable[0x80 | (c & 0x3F)]);
  2390. continue;
  2391. }
  2392. if (c < 0xD800 || c >= 0xE000) {
  2393. out = out + (hexTable[0xE0 | (c >> 12)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]);
  2394. continue;
  2395. }
  2396. i += 1;
  2397. c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF));
  2398. /* eslint operator-linebreak: [2, "before"] */
  2399. out += hexTable[0xF0 | (c >> 18)]
  2400. + hexTable[0x80 | ((c >> 12) & 0x3F)]
  2401. + hexTable[0x80 | ((c >> 6) & 0x3F)]
  2402. + hexTable[0x80 | (c & 0x3F)];
  2403. }
  2404. return out;
  2405. };
  2406. var compact = function compact(value) {
  2407. var queue = [{ obj: { o: value }, prop: 'o' }];
  2408. var refs = [];
  2409. for (var i = 0; i < queue.length; ++i) {
  2410. var item = queue[i];
  2411. var obj = item.obj[item.prop];
  2412. var keys = Object.keys(obj);
  2413. for (var j = 0; j < keys.length; ++j) {
  2414. var key = keys[j];
  2415. var val = obj[key];
  2416. if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {
  2417. queue.push({ obj: obj, prop: key });
  2418. refs.push(val);
  2419. }
  2420. }
  2421. }
  2422. compactQueue(queue);
  2423. return value;
  2424. };
  2425. var isRegExp = function isRegExp(obj) {
  2426. return Object.prototype.toString.call(obj) === '[object RegExp]';
  2427. };
  2428. var isBuffer = function isBuffer(obj) {
  2429. if (!obj || typeof obj !== 'object') {
  2430. return false;
  2431. }
  2432. return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
  2433. };
  2434. var combine = function combine(a, b) {
  2435. return [].concat(a, b);
  2436. };
  2437. var maybeMap = function maybeMap(val, fn) {
  2438. if (isArray(val)) {
  2439. var mapped = [];
  2440. for (var i = 0; i < val.length; i += 1) {
  2441. mapped.push(fn(val[i]));
  2442. }
  2443. return mapped;
  2444. }
  2445. return fn(val);
  2446. };
  2447. module.exports = {
  2448. arrayToObject: arrayToObject,
  2449. assign: assign,
  2450. combine: combine,
  2451. compact: compact,
  2452. decode: decode,
  2453. encode: encode,
  2454. isBuffer: isBuffer,
  2455. isRegExp: isRegExp,
  2456. maybeMap: maybeMap,
  2457. merge: merge
  2458. };
  2459. /***/ }),
  2460. /***/ "./node_modules/@inertiajs/progress/dist/index.js":
  2461. /*!********************************************************!*\
  2462. !*** ./node_modules/@inertiajs/progress/dist/index.js ***!
  2463. \********************************************************/
  2464. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  2465. var n,e=(n=__webpack_require__(/*! nprogress */ "./node_modules/nprogress/nprogress.js"))&&"object"==typeof n&&"default"in n?n.default:n,t=null;function r(n){document.addEventListener("inertia:start",o.bind(null,n)),document.addEventListener("inertia:progress",i),document.addEventListener("inertia:finish",s)}function o(n){t=setTimeout(function(){return e.start()},n)}function i(n){e.isStarted()&&n.detail.progress.percentage&&e.set(Math.max(e.status,n.detail.progress.percentage/100*.9))}function s(n){clearTimeout(t),e.isStarted()&&(n.detail.visit.completed?e.done():n.detail.visit.interrupted?e.set(0):n.detail.visit.cancelled&&(e.done(),e.remove()))}exports.InertiaProgress={init:function(n){var t=void 0===n?{}:n,o=t.delay,i=t.color,s=void 0===i?"#29d":i,a=t.includeCSS,p=void 0===a||a,d=t.showSpinner,l=void 0!==d&&d;r(void 0===o?250:o),e.configure({showSpinner:l}),p&&function(n){var e=document.createElement("style");e.type="text/css",e.textContent="\n #nprogress {\n pointer-events: none;\n }\n\n #nprogress .bar {\n background: "+n+";\n\n position: fixed;\n z-index: 1031;\n top: 0;\n left: 0;\n\n width: 100%;\n height: 2px;\n }\n\n #nprogress .peg {\n display: block;\n position: absolute;\n right: 0px;\n width: 100px;\n height: 100%;\n box-shadow: 0 0 10px "+n+", 0 0 5px "+n+";\n opacity: 1.0;\n\n -webkit-transform: rotate(3deg) translate(0px, -4px);\n -ms-transform: rotate(3deg) translate(0px, -4px);\n transform: rotate(3deg) translate(0px, -4px);\n }\n\n #nprogress .spinner {\n display: block;\n position: fixed;\n z-index: 1031;\n top: 15px;\n right: 15px;\n }\n\n #nprogress .spinner-icon {\n width: 18px;\n height: 18px;\n box-sizing: border-box;\n\n border: solid 2px transparent;\n border-top-color: "+n+";\n border-left-color: "+n+";\n border-radius: 50%;\n\n -webkit-animation: nprogress-spinner 400ms linear infinite;\n animation: nprogress-spinner 400ms linear infinite;\n }\n\n .nprogress-custom-parent {\n overflow: hidden;\n position: relative;\n }\n\n .nprogress-custom-parent #nprogress .spinner,\n .nprogress-custom-parent #nprogress .bar {\n position: absolute;\n }\n\n @-webkit-keyframes nprogress-spinner {\n 0% { -webkit-transform: rotate(0deg); }\n 100% { -webkit-transform: rotate(360deg); }\n }\n @keyframes nprogress-spinner {\n 0% { transform: rotate(0deg); }\n 100% { transform: rotate(360deg); }\n }\n ",document.head.appendChild(e)}(s)}};
  2466. //# sourceMappingURL=index.js.map
  2467. /***/ }),
  2468. /***/ "./node_modules/@vue/compiler-core/dist/compiler-core.esm-bundler.js":
  2469. /*!***************************************************************************!*\
  2470. !*** ./node_modules/@vue/compiler-core/dist/compiler-core.esm-bundler.js ***!
  2471. \***************************************************************************/
  2472. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  2473. "use strict";
  2474. __webpack_require__.r(__webpack_exports__);
  2475. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  2476. /* harmony export */ "BASE_TRANSITION": () => (/* binding */ BASE_TRANSITION),
  2477. /* harmony export */ "CAMELIZE": () => (/* binding */ CAMELIZE),
  2478. /* harmony export */ "CAPITALIZE": () => (/* binding */ CAPITALIZE),
  2479. /* harmony export */ "CREATE_BLOCK": () => (/* binding */ CREATE_BLOCK),
  2480. /* harmony export */ "CREATE_COMMENT": () => (/* binding */ CREATE_COMMENT),
  2481. /* harmony export */ "CREATE_ELEMENT_BLOCK": () => (/* binding */ CREATE_ELEMENT_BLOCK),
  2482. /* harmony export */ "CREATE_ELEMENT_VNODE": () => (/* binding */ CREATE_ELEMENT_VNODE),
  2483. /* harmony export */ "CREATE_SLOTS": () => (/* binding */ CREATE_SLOTS),
  2484. /* harmony export */ "CREATE_STATIC": () => (/* binding */ CREATE_STATIC),
  2485. /* harmony export */ "CREATE_TEXT": () => (/* binding */ CREATE_TEXT),
  2486. /* harmony export */ "CREATE_VNODE": () => (/* binding */ CREATE_VNODE),
  2487. /* harmony export */ "FRAGMENT": () => (/* binding */ FRAGMENT),
  2488. /* harmony export */ "GUARD_REACTIVE_PROPS": () => (/* binding */ GUARD_REACTIVE_PROPS),
  2489. /* harmony export */ "IS_MEMO_SAME": () => (/* binding */ IS_MEMO_SAME),
  2490. /* harmony export */ "IS_REF": () => (/* binding */ IS_REF),
  2491. /* harmony export */ "KEEP_ALIVE": () => (/* binding */ KEEP_ALIVE),
  2492. /* harmony export */ "MERGE_PROPS": () => (/* binding */ MERGE_PROPS),
  2493. /* harmony export */ "NORMALIZE_CLASS": () => (/* binding */ NORMALIZE_CLASS),
  2494. /* harmony export */ "NORMALIZE_PROPS": () => (/* binding */ NORMALIZE_PROPS),
  2495. /* harmony export */ "NORMALIZE_STYLE": () => (/* binding */ NORMALIZE_STYLE),
  2496. /* harmony export */ "OPEN_BLOCK": () => (/* binding */ OPEN_BLOCK),
  2497. /* harmony export */ "POP_SCOPE_ID": () => (/* binding */ POP_SCOPE_ID),
  2498. /* harmony export */ "PUSH_SCOPE_ID": () => (/* binding */ PUSH_SCOPE_ID),
  2499. /* harmony export */ "RENDER_LIST": () => (/* binding */ RENDER_LIST),
  2500. /* harmony export */ "RENDER_SLOT": () => (/* binding */ RENDER_SLOT),
  2501. /* harmony export */ "RESOLVE_COMPONENT": () => (/* binding */ RESOLVE_COMPONENT),
  2502. /* harmony export */ "RESOLVE_DIRECTIVE": () => (/* binding */ RESOLVE_DIRECTIVE),
  2503. /* harmony export */ "RESOLVE_DYNAMIC_COMPONENT": () => (/* binding */ RESOLVE_DYNAMIC_COMPONENT),
  2504. /* harmony export */ "RESOLVE_FILTER": () => (/* binding */ RESOLVE_FILTER),
  2505. /* harmony export */ "SET_BLOCK_TRACKING": () => (/* binding */ SET_BLOCK_TRACKING),
  2506. /* harmony export */ "SUSPENSE": () => (/* binding */ SUSPENSE),
  2507. /* harmony export */ "TELEPORT": () => (/* binding */ TELEPORT),
  2508. /* harmony export */ "TO_DISPLAY_STRING": () => (/* binding */ TO_DISPLAY_STRING),
  2509. /* harmony export */ "TO_HANDLERS": () => (/* binding */ TO_HANDLERS),
  2510. /* harmony export */ "TO_HANDLER_KEY": () => (/* binding */ TO_HANDLER_KEY),
  2511. /* harmony export */ "UNREF": () => (/* binding */ UNREF),
  2512. /* harmony export */ "WITH_CTX": () => (/* binding */ WITH_CTX),
  2513. /* harmony export */ "WITH_DIRECTIVES": () => (/* binding */ WITH_DIRECTIVES),
  2514. /* harmony export */ "WITH_MEMO": () => (/* binding */ WITH_MEMO),
  2515. /* harmony export */ "advancePositionWithClone": () => (/* binding */ advancePositionWithClone),
  2516. /* harmony export */ "advancePositionWithMutation": () => (/* binding */ advancePositionWithMutation),
  2517. /* harmony export */ "assert": () => (/* binding */ assert),
  2518. /* harmony export */ "baseCompile": () => (/* binding */ baseCompile),
  2519. /* harmony export */ "baseParse": () => (/* binding */ baseParse),
  2520. /* harmony export */ "buildDirectiveArgs": () => (/* binding */ buildDirectiveArgs),
  2521. /* harmony export */ "buildProps": () => (/* binding */ buildProps),
  2522. /* harmony export */ "buildSlots": () => (/* binding */ buildSlots),
  2523. /* harmony export */ "checkCompatEnabled": () => (/* binding */ checkCompatEnabled),
  2524. /* harmony export */ "createArrayExpression": () => (/* binding */ createArrayExpression),
  2525. /* harmony export */ "createAssignmentExpression": () => (/* binding */ createAssignmentExpression),
  2526. /* harmony export */ "createBlockStatement": () => (/* binding */ createBlockStatement),
  2527. /* harmony export */ "createCacheExpression": () => (/* binding */ createCacheExpression),
  2528. /* harmony export */ "createCallExpression": () => (/* binding */ createCallExpression),
  2529. /* harmony export */ "createCompilerError": () => (/* binding */ createCompilerError),
  2530. /* harmony export */ "createCompoundExpression": () => (/* binding */ createCompoundExpression),
  2531. /* harmony export */ "createConditionalExpression": () => (/* binding */ createConditionalExpression),
  2532. /* harmony export */ "createForLoopParams": () => (/* binding */ createForLoopParams),
  2533. /* harmony export */ "createFunctionExpression": () => (/* binding */ createFunctionExpression),
  2534. /* harmony export */ "createIfStatement": () => (/* binding */ createIfStatement),
  2535. /* harmony export */ "createInterpolation": () => (/* binding */ createInterpolation),
  2536. /* harmony export */ "createObjectExpression": () => (/* binding */ createObjectExpression),
  2537. /* harmony export */ "createObjectProperty": () => (/* binding */ createObjectProperty),
  2538. /* harmony export */ "createReturnStatement": () => (/* binding */ createReturnStatement),
  2539. /* harmony export */ "createRoot": () => (/* binding */ createRoot),
  2540. /* harmony export */ "createSequenceExpression": () => (/* binding */ createSequenceExpression),
  2541. /* harmony export */ "createSimpleExpression": () => (/* binding */ createSimpleExpression),
  2542. /* harmony export */ "createStructuralDirectiveTransform": () => (/* binding */ createStructuralDirectiveTransform),
  2543. /* harmony export */ "createTemplateLiteral": () => (/* binding */ createTemplateLiteral),
  2544. /* harmony export */ "createTransformContext": () => (/* binding */ createTransformContext),
  2545. /* harmony export */ "createVNodeCall": () => (/* binding */ createVNodeCall),
  2546. /* harmony export */ "extractIdentifiers": () => (/* binding */ extractIdentifiers),
  2547. /* harmony export */ "findDir": () => (/* binding */ findDir),
  2548. /* harmony export */ "findProp": () => (/* binding */ findProp),
  2549. /* harmony export */ "generate": () => (/* binding */ generate),
  2550. /* harmony export */ "generateCodeFrame": () => (/* reexport safe */ _vue_shared__WEBPACK_IMPORTED_MODULE_0__.generateCodeFrame),
  2551. /* harmony export */ "getBaseTransformPreset": () => (/* binding */ getBaseTransformPreset),
  2552. /* harmony export */ "getInnerRange": () => (/* binding */ getInnerRange),
  2553. /* harmony export */ "getMemoedVNodeCall": () => (/* binding */ getMemoedVNodeCall),
  2554. /* harmony export */ "getVNodeBlockHelper": () => (/* binding */ getVNodeBlockHelper),
  2555. /* harmony export */ "getVNodeHelper": () => (/* binding */ getVNodeHelper),
  2556. /* harmony export */ "hasDynamicKeyVBind": () => (/* binding */ hasDynamicKeyVBind),
  2557. /* harmony export */ "hasScopeRef": () => (/* binding */ hasScopeRef),
  2558. /* harmony export */ "helperNameMap": () => (/* binding */ helperNameMap),
  2559. /* harmony export */ "injectProp": () => (/* binding */ injectProp),
  2560. /* harmony export */ "isBuiltInType": () => (/* binding */ isBuiltInType),
  2561. /* harmony export */ "isCoreComponent": () => (/* binding */ isCoreComponent),
  2562. /* harmony export */ "isFunctionType": () => (/* binding */ isFunctionType),
  2563. /* harmony export */ "isInDestructureAssignment": () => (/* binding */ isInDestructureAssignment),
  2564. /* harmony export */ "isMemberExpression": () => (/* binding */ isMemberExpression),
  2565. /* harmony export */ "isMemberExpressionBrowser": () => (/* binding */ isMemberExpressionBrowser),
  2566. /* harmony export */ "isMemberExpressionNode": () => (/* binding */ isMemberExpressionNode),
  2567. /* harmony export */ "isReferencedIdentifier": () => (/* binding */ isReferencedIdentifier),
  2568. /* harmony export */ "isSimpleIdentifier": () => (/* binding */ isSimpleIdentifier),
  2569. /* harmony export */ "isSlotOutlet": () => (/* binding */ isSlotOutlet),
  2570. /* harmony export */ "isStaticArgOf": () => (/* binding */ isStaticArgOf),
  2571. /* harmony export */ "isStaticExp": () => (/* binding */ isStaticExp),
  2572. /* harmony export */ "isStaticProperty": () => (/* binding */ isStaticProperty),
  2573. /* harmony export */ "isStaticPropertyKey": () => (/* binding */ isStaticPropertyKey),
  2574. /* harmony export */ "isTemplateNode": () => (/* binding */ isTemplateNode),
  2575. /* harmony export */ "isText": () => (/* binding */ isText),
  2576. /* harmony export */ "isVSlot": () => (/* binding */ isVSlot),
  2577. /* harmony export */ "locStub": () => (/* binding */ locStub),
  2578. /* harmony export */ "makeBlock": () => (/* binding */ makeBlock),
  2579. /* harmony export */ "noopDirectiveTransform": () => (/* binding */ noopDirectiveTransform),
  2580. /* harmony export */ "processExpression": () => (/* binding */ processExpression),
  2581. /* harmony export */ "processFor": () => (/* binding */ processFor),
  2582. /* harmony export */ "processIf": () => (/* binding */ processIf),
  2583. /* harmony export */ "processSlotOutlet": () => (/* binding */ processSlotOutlet),
  2584. /* harmony export */ "registerRuntimeHelpers": () => (/* binding */ registerRuntimeHelpers),
  2585. /* harmony export */ "resolveComponentType": () => (/* binding */ resolveComponentType),
  2586. /* harmony export */ "toValidAssetId": () => (/* binding */ toValidAssetId),
  2587. /* harmony export */ "trackSlotScopes": () => (/* binding */ trackSlotScopes),
  2588. /* harmony export */ "trackVForSlotScopes": () => (/* binding */ trackVForSlotScopes),
  2589. /* harmony export */ "transform": () => (/* binding */ transform),
  2590. /* harmony export */ "transformBind": () => (/* binding */ transformBind),
  2591. /* harmony export */ "transformElement": () => (/* binding */ transformElement),
  2592. /* harmony export */ "transformExpression": () => (/* binding */ transformExpression),
  2593. /* harmony export */ "transformModel": () => (/* binding */ transformModel),
  2594. /* harmony export */ "transformOn": () => (/* binding */ transformOn),
  2595. /* harmony export */ "traverseNode": () => (/* binding */ traverseNode),
  2596. /* harmony export */ "walkBlockDeclarations": () => (/* binding */ walkBlockDeclarations),
  2597. /* harmony export */ "walkFunctionParams": () => (/* binding */ walkFunctionParams),
  2598. /* harmony export */ "walkIdentifiers": () => (/* binding */ walkIdentifiers),
  2599. /* harmony export */ "warnDeprecation": () => (/* binding */ warnDeprecation)
  2600. /* harmony export */ });
  2601. /* harmony import */ var _vue_shared__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @vue/shared */ "./node_modules/@vue/shared/dist/shared.esm-bundler.js");
  2602. function defaultOnError(error) {
  2603. throw error;
  2604. }
  2605. function defaultOnWarn(msg) {
  2606. ( true) && console.warn(`[Vue warn] ${msg.message}`);
  2607. }
  2608. function createCompilerError(code, loc, messages, additionalMessage) {
  2609. const msg = true
  2610. ? (messages || errorMessages)[code] + (additionalMessage || ``)
  2611. : 0;
  2612. const error = new SyntaxError(String(msg));
  2613. error.code = code;
  2614. error.loc = loc;
  2615. return error;
  2616. }
  2617. const errorMessages = {
  2618. // parse errors
  2619. [0 /* ABRUPT_CLOSING_OF_EMPTY_COMMENT */]: 'Illegal comment.',
  2620. [1 /* CDATA_IN_HTML_CONTENT */]: 'CDATA section is allowed only in XML context.',
  2621. [2 /* DUPLICATE_ATTRIBUTE */]: 'Duplicate attribute.',
  2622. [3 /* END_TAG_WITH_ATTRIBUTES */]: 'End tag cannot have attributes.',
  2623. [4 /* END_TAG_WITH_TRAILING_SOLIDUS */]: "Illegal '/' in tags.",
  2624. [5 /* EOF_BEFORE_TAG_NAME */]: 'Unexpected EOF in tag.',
  2625. [6 /* EOF_IN_CDATA */]: 'Unexpected EOF in CDATA section.',
  2626. [7 /* EOF_IN_COMMENT */]: 'Unexpected EOF in comment.',
  2627. [8 /* EOF_IN_SCRIPT_HTML_COMMENT_LIKE_TEXT */]: 'Unexpected EOF in script.',
  2628. [9 /* EOF_IN_TAG */]: 'Unexpected EOF in tag.',
  2629. [10 /* INCORRECTLY_CLOSED_COMMENT */]: 'Incorrectly closed comment.',
  2630. [11 /* INCORRECTLY_OPENED_COMMENT */]: 'Incorrectly opened comment.',
  2631. [12 /* INVALID_FIRST_CHARACTER_OF_TAG_NAME */]: "Illegal tag name. Use '&lt;' to print '<'.",
  2632. [13 /* MISSING_ATTRIBUTE_VALUE */]: 'Attribute value was expected.',
  2633. [14 /* MISSING_END_TAG_NAME */]: 'End tag name was expected.',
  2634. [15 /* MISSING_WHITESPACE_BETWEEN_ATTRIBUTES */]: 'Whitespace was expected.',
  2635. [16 /* NESTED_COMMENT */]: "Unexpected '<!--' in comment.",
  2636. [17 /* UNEXPECTED_CHARACTER_IN_ATTRIBUTE_NAME */]: 'Attribute name cannot contain U+0022 ("), U+0027 (\'), and U+003C (<).',
  2637. [18 /* UNEXPECTED_CHARACTER_IN_UNQUOTED_ATTRIBUTE_VALUE */]: 'Unquoted attribute value cannot contain U+0022 ("), U+0027 (\'), U+003C (<), U+003D (=), and U+0060 (`).',
  2638. [19 /* UNEXPECTED_EQUALS_SIGN_BEFORE_ATTRIBUTE_NAME */]: "Attribute name cannot start with '='.",
  2639. [21 /* UNEXPECTED_QUESTION_MARK_INSTEAD_OF_TAG_NAME */]: "'<?' is allowed only in XML context.",
  2640. [20 /* UNEXPECTED_NULL_CHARACTER */]: `Unexpected null character.`,
  2641. [22 /* UNEXPECTED_SOLIDUS_IN_TAG */]: "Illegal '/' in tags.",
  2642. // Vue-specific parse errors
  2643. [23 /* X_INVALID_END_TAG */]: 'Invalid end tag.',
  2644. [24 /* X_MISSING_END_TAG */]: 'Element is missing end tag.',
  2645. [25 /* X_MISSING_INTERPOLATION_END */]: 'Interpolation end sign was not found.',
  2646. [27 /* X_MISSING_DYNAMIC_DIRECTIVE_ARGUMENT_END */]: 'End bracket for dynamic directive argument was not found. ' +
  2647. 'Note that dynamic directive argument cannot contain spaces.',
  2648. [26 /* X_MISSING_DIRECTIVE_NAME */]: 'Legal directive name was expected.',
  2649. // transform errors
  2650. [28 /* X_V_IF_NO_EXPRESSION */]: `v-if/v-else-if is missing expression.`,
  2651. [29 /* X_V_IF_SAME_KEY */]: `v-if/else branches must use unique keys.`,
  2652. [30 /* X_V_ELSE_NO_ADJACENT_IF */]: `v-else/v-else-if has no adjacent v-if or v-else-if.`,
  2653. [31 /* X_V_FOR_NO_EXPRESSION */]: `v-for is missing expression.`,
  2654. [32 /* X_V_FOR_MALFORMED_EXPRESSION */]: `v-for has invalid expression.`,
  2655. [33 /* X_V_FOR_TEMPLATE_KEY_PLACEMENT */]: `<template v-for> key should be placed on the <template> tag.`,
  2656. [34 /* X_V_BIND_NO_EXPRESSION */]: `v-bind is missing expression.`,
  2657. [35 /* X_V_ON_NO_EXPRESSION */]: `v-on is missing expression.`,
  2658. [36 /* X_V_SLOT_UNEXPECTED_DIRECTIVE_ON_SLOT_OUTLET */]: `Unexpected custom directive on <slot> outlet.`,
  2659. [37 /* X_V_SLOT_MIXED_SLOT_USAGE */]: `Mixed v-slot usage on both the component and nested <template>.` +
  2660. `When there are multiple named slots, all slots should use <template> ` +
  2661. `syntax to avoid scope ambiguity.`,
  2662. [38 /* X_V_SLOT_DUPLICATE_SLOT_NAMES */]: `Duplicate slot names found. `,
  2663. [39 /* X_V_SLOT_EXTRANEOUS_DEFAULT_SLOT_CHILDREN */]: `Extraneous children found when component already has explicitly named ` +
  2664. `default slot. These children will be ignored.`,
  2665. [40 /* X_V_SLOT_MISPLACED */]: `v-slot can only be used on components or <template> tags.`,
  2666. [41 /* X_V_MODEL_NO_EXPRESSION */]: `v-model is missing expression.`,
  2667. [42 /* X_V_MODEL_MALFORMED_EXPRESSION */]: `v-model value must be a valid JavaScript member expression.`,
  2668. [43 /* X_V_MODEL_ON_SCOPE_VARIABLE */]: `v-model cannot be used on v-for or v-slot scope variables because they are not writable.`,
  2669. [44 /* X_INVALID_EXPRESSION */]: `Error parsing JavaScript expression: `,
  2670. [45 /* X_KEEP_ALIVE_INVALID_CHILDREN */]: `<KeepAlive> expects exactly one child component.`,
  2671. // generic errors
  2672. [46 /* X_PREFIX_ID_NOT_SUPPORTED */]: `"prefixIdentifiers" option is not supported in this build of compiler.`,
  2673. [47 /* X_MODULE_MODE_NOT_SUPPORTED */]: `ES module mode is not supported in this build of compiler.`,
  2674. [48 /* X_CACHE_HANDLER_NOT_SUPPORTED */]: `"cacheHandlers" option is only supported when the "prefixIdentifiers" option is enabled.`,
  2675. [49 /* X_SCOPE_ID_NOT_SUPPORTED */]: `"scopeId" option is only supported in module mode.`,
  2676. // just to fulfill types
  2677. [50 /* __EXTEND_POINT__ */]: ``
  2678. };
  2679. const FRAGMENT = Symbol(( true) ? `Fragment` : 0);
  2680. const TELEPORT = Symbol(( true) ? `Teleport` : 0);
  2681. const SUSPENSE = Symbol(( true) ? `Suspense` : 0);
  2682. const KEEP_ALIVE = Symbol(( true) ? `KeepAlive` : 0);
  2683. const BASE_TRANSITION = Symbol(( true) ? `BaseTransition` : 0);
  2684. const OPEN_BLOCK = Symbol(( true) ? `openBlock` : 0);
  2685. const CREATE_BLOCK = Symbol(( true) ? `createBlock` : 0);
  2686. const CREATE_ELEMENT_BLOCK = Symbol(( true) ? `createElementBlock` : 0);
  2687. const CREATE_VNODE = Symbol(( true) ? `createVNode` : 0);
  2688. const CREATE_ELEMENT_VNODE = Symbol(( true) ? `createElementVNode` : 0);
  2689. const CREATE_COMMENT = Symbol(( true) ? `createCommentVNode` : 0);
  2690. const CREATE_TEXT = Symbol(( true) ? `createTextVNode` : 0);
  2691. const CREATE_STATIC = Symbol(( true) ? `createStaticVNode` : 0);
  2692. const RESOLVE_COMPONENT = Symbol(( true) ? `resolveComponent` : 0);
  2693. const RESOLVE_DYNAMIC_COMPONENT = Symbol(( true) ? `resolveDynamicComponent` : 0);
  2694. const RESOLVE_DIRECTIVE = Symbol(( true) ? `resolveDirective` : 0);
  2695. const RESOLVE_FILTER = Symbol(( true) ? `resolveFilter` : 0);
  2696. const WITH_DIRECTIVES = Symbol(( true) ? `withDirectives` : 0);
  2697. const RENDER_LIST = Symbol(( true) ? `renderList` : 0);
  2698. const RENDER_SLOT = Symbol(( true) ? `renderSlot` : 0);
  2699. const CREATE_SLOTS = Symbol(( true) ? `createSlots` : 0);
  2700. const TO_DISPLAY_STRING = Symbol(( true) ? `toDisplayString` : 0);
  2701. const MERGE_PROPS = Symbol(( true) ? `mergeProps` : 0);
  2702. const NORMALIZE_CLASS = Symbol(( true) ? `normalizeClass` : 0);
  2703. const NORMALIZE_STYLE = Symbol(( true) ? `normalizeStyle` : 0);
  2704. const NORMALIZE_PROPS = Symbol(( true) ? `normalizeProps` : 0);
  2705. const GUARD_REACTIVE_PROPS = Symbol(( true) ? `guardReactiveProps` : 0);
  2706. const TO_HANDLERS = Symbol(( true) ? `toHandlers` : 0);
  2707. const CAMELIZE = Symbol(( true) ? `camelize` : 0);
  2708. const CAPITALIZE = Symbol(( true) ? `capitalize` : 0);
  2709. const TO_HANDLER_KEY = Symbol(( true) ? `toHandlerKey` : 0);
  2710. const SET_BLOCK_TRACKING = Symbol(( true) ? `setBlockTracking` : 0);
  2711. const PUSH_SCOPE_ID = Symbol(( true) ? `pushScopeId` : 0);
  2712. const POP_SCOPE_ID = Symbol(( true) ? `popScopeId` : 0);
  2713. const WITH_CTX = Symbol(( true) ? `withCtx` : 0);
  2714. const UNREF = Symbol(( true) ? `unref` : 0);
  2715. const IS_REF = Symbol(( true) ? `isRef` : 0);
  2716. const WITH_MEMO = Symbol(( true) ? `withMemo` : 0);
  2717. const IS_MEMO_SAME = Symbol(( true) ? `isMemoSame` : 0);
  2718. // Name mapping for runtime helpers that need to be imported from 'vue' in
  2719. // generated code. Make sure these are correctly exported in the runtime!
  2720. // Using `any` here because TS doesn't allow symbols as index type.
  2721. const helperNameMap = {
  2722. [FRAGMENT]: `Fragment`,
  2723. [TELEPORT]: `Teleport`,
  2724. [SUSPENSE]: `Suspense`,
  2725. [KEEP_ALIVE]: `KeepAlive`,
  2726. [BASE_TRANSITION]: `BaseTransition`,
  2727. [OPEN_BLOCK]: `openBlock`,
  2728. [CREATE_BLOCK]: `createBlock`,
  2729. [CREATE_ELEMENT_BLOCK]: `createElementBlock`,
  2730. [CREATE_VNODE]: `createVNode`,
  2731. [CREATE_ELEMENT_VNODE]: `createElementVNode`,
  2732. [CREATE_COMMENT]: `createCommentVNode`,
  2733. [CREATE_TEXT]: `createTextVNode`,
  2734. [CREATE_STATIC]: `createStaticVNode`,
  2735. [RESOLVE_COMPONENT]: `resolveComponent`,
  2736. [RESOLVE_DYNAMIC_COMPONENT]: `resolveDynamicComponent`,
  2737. [RESOLVE_DIRECTIVE]: `resolveDirective`,
  2738. [RESOLVE_FILTER]: `resolveFilter`,
  2739. [WITH_DIRECTIVES]: `withDirectives`,
  2740. [RENDER_LIST]: `renderList`,
  2741. [RENDER_SLOT]: `renderSlot`,
  2742. [CREATE_SLOTS]: `createSlots`,
  2743. [TO_DISPLAY_STRING]: `toDisplayString`,
  2744. [MERGE_PROPS]: `mergeProps`,
  2745. [NORMALIZE_CLASS]: `normalizeClass`,
  2746. [NORMALIZE_STYLE]: `normalizeStyle`,
  2747. [NORMALIZE_PROPS]: `normalizeProps`,
  2748. [GUARD_REACTIVE_PROPS]: `guardReactiveProps`,
  2749. [TO_HANDLERS]: `toHandlers`,
  2750. [CAMELIZE]: `camelize`,
  2751. [CAPITALIZE]: `capitalize`,
  2752. [TO_HANDLER_KEY]: `toHandlerKey`,
  2753. [SET_BLOCK_TRACKING]: `setBlockTracking`,
  2754. [PUSH_SCOPE_ID]: `pushScopeId`,
  2755. [POP_SCOPE_ID]: `popScopeId`,
  2756. [WITH_CTX]: `withCtx`,
  2757. [UNREF]: `unref`,
  2758. [IS_REF]: `isRef`,
  2759. [WITH_MEMO]: `withMemo`,
  2760. [IS_MEMO_SAME]: `isMemoSame`
  2761. };
  2762. function registerRuntimeHelpers(helpers) {
  2763. Object.getOwnPropertySymbols(helpers).forEach(s => {
  2764. helperNameMap[s] = helpers[s];
  2765. });
  2766. }
  2767. // AST Utilities ---------------------------------------------------------------
  2768. // Some expressions, e.g. sequence and conditional expressions, are never
  2769. // associated with template nodes, so their source locations are just a stub.
  2770. // Container types like CompoundExpression also don't need a real location.
  2771. const locStub = {
  2772. source: '',
  2773. start: { line: 1, column: 1, offset: 0 },
  2774. end: { line: 1, column: 1, offset: 0 }
  2775. };
  2776. function createRoot(children, loc = locStub) {
  2777. return {
  2778. type: 0 /* ROOT */,
  2779. children,
  2780. helpers: [],
  2781. components: [],
  2782. directives: [],
  2783. hoists: [],
  2784. imports: [],
  2785. cached: 0,
  2786. temps: 0,
  2787. codegenNode: undefined,
  2788. loc
  2789. };
  2790. }
  2791. function createVNodeCall(context, tag, props, children, patchFlag, dynamicProps, directives, isBlock = false, disableTracking = false, isComponent = false, loc = locStub) {
  2792. if (context) {
  2793. if (isBlock) {
  2794. context.helper(OPEN_BLOCK);
  2795. context.helper(getVNodeBlockHelper(context.inSSR, isComponent));
  2796. }
  2797. else {
  2798. context.helper(getVNodeHelper(context.inSSR, isComponent));
  2799. }
  2800. if (directives) {
  2801. context.helper(WITH_DIRECTIVES);
  2802. }
  2803. }
  2804. return {
  2805. type: 13 /* VNODE_CALL */,
  2806. tag,
  2807. props,
  2808. children,
  2809. patchFlag,
  2810. dynamicProps,
  2811. directives,
  2812. isBlock,
  2813. disableTracking,
  2814. isComponent,
  2815. loc
  2816. };
  2817. }
  2818. function createArrayExpression(elements, loc = locStub) {
  2819. return {
  2820. type: 17 /* JS_ARRAY_EXPRESSION */,
  2821. loc,
  2822. elements
  2823. };
  2824. }
  2825. function createObjectExpression(properties, loc = locStub) {
  2826. return {
  2827. type: 15 /* JS_OBJECT_EXPRESSION */,
  2828. loc,
  2829. properties
  2830. };
  2831. }
  2832. function createObjectProperty(key, value) {
  2833. return {
  2834. type: 16 /* JS_PROPERTY */,
  2835. loc: locStub,
  2836. key: (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isString)(key) ? createSimpleExpression(key, true) : key,
  2837. value
  2838. };
  2839. }
  2840. function createSimpleExpression(content, isStatic = false, loc = locStub, constType = 0 /* NOT_CONSTANT */) {
  2841. return {
  2842. type: 4 /* SIMPLE_EXPRESSION */,
  2843. loc,
  2844. content,
  2845. isStatic,
  2846. constType: isStatic ? 3 /* CAN_STRINGIFY */ : constType
  2847. };
  2848. }
  2849. function createInterpolation(content, loc) {
  2850. return {
  2851. type: 5 /* INTERPOLATION */,
  2852. loc,
  2853. content: (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isString)(content)
  2854. ? createSimpleExpression(content, false, loc)
  2855. : content
  2856. };
  2857. }
  2858. function createCompoundExpression(children, loc = locStub) {
  2859. return {
  2860. type: 8 /* COMPOUND_EXPRESSION */,
  2861. loc,
  2862. children
  2863. };
  2864. }
  2865. function createCallExpression(callee, args = [], loc = locStub) {
  2866. return {
  2867. type: 14 /* JS_CALL_EXPRESSION */,
  2868. loc,
  2869. callee,
  2870. arguments: args
  2871. };
  2872. }
  2873. function createFunctionExpression(params, returns = undefined, newline = false, isSlot = false, loc = locStub) {
  2874. return {
  2875. type: 18 /* JS_FUNCTION_EXPRESSION */,
  2876. params,
  2877. returns,
  2878. newline,
  2879. isSlot,
  2880. loc
  2881. };
  2882. }
  2883. function createConditionalExpression(test, consequent, alternate, newline = true) {
  2884. return {
  2885. type: 19 /* JS_CONDITIONAL_EXPRESSION */,
  2886. test,
  2887. consequent,
  2888. alternate,
  2889. newline,
  2890. loc: locStub
  2891. };
  2892. }
  2893. function createCacheExpression(index, value, isVNode = false) {
  2894. return {
  2895. type: 20 /* JS_CACHE_EXPRESSION */,
  2896. index,
  2897. value,
  2898. isVNode,
  2899. loc: locStub
  2900. };
  2901. }
  2902. function createBlockStatement(body) {
  2903. return {
  2904. type: 21 /* JS_BLOCK_STATEMENT */,
  2905. body,
  2906. loc: locStub
  2907. };
  2908. }
  2909. function createTemplateLiteral(elements) {
  2910. return {
  2911. type: 22 /* JS_TEMPLATE_LITERAL */,
  2912. elements,
  2913. loc: locStub
  2914. };
  2915. }
  2916. function createIfStatement(test, consequent, alternate) {
  2917. return {
  2918. type: 23 /* JS_IF_STATEMENT */,
  2919. test,
  2920. consequent,
  2921. alternate,
  2922. loc: locStub
  2923. };
  2924. }
  2925. function createAssignmentExpression(left, right) {
  2926. return {
  2927. type: 24 /* JS_ASSIGNMENT_EXPRESSION */,
  2928. left,
  2929. right,
  2930. loc: locStub
  2931. };
  2932. }
  2933. function createSequenceExpression(expressions) {
  2934. return {
  2935. type: 25 /* JS_SEQUENCE_EXPRESSION */,
  2936. expressions,
  2937. loc: locStub
  2938. };
  2939. }
  2940. function createReturnStatement(returns) {
  2941. return {
  2942. type: 26 /* JS_RETURN_STATEMENT */,
  2943. returns,
  2944. loc: locStub
  2945. };
  2946. }
  2947. const isStaticExp = (p) => p.type === 4 /* SIMPLE_EXPRESSION */ && p.isStatic;
  2948. const isBuiltInType = (tag, expected) => tag === expected || tag === (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.hyphenate)(expected);
  2949. function isCoreComponent(tag) {
  2950. if (isBuiltInType(tag, 'Teleport')) {
  2951. return TELEPORT;
  2952. }
  2953. else if (isBuiltInType(tag, 'Suspense')) {
  2954. return SUSPENSE;
  2955. }
  2956. else if (isBuiltInType(tag, 'KeepAlive')) {
  2957. return KEEP_ALIVE;
  2958. }
  2959. else if (isBuiltInType(tag, 'BaseTransition')) {
  2960. return BASE_TRANSITION;
  2961. }
  2962. }
  2963. const nonIdentifierRE = /^\d|[^\$\w]/;
  2964. const isSimpleIdentifier = (name) => !nonIdentifierRE.test(name);
  2965. const validFirstIdentCharRE = /[A-Za-z_$\xA0-\uFFFF]/;
  2966. const validIdentCharRE = /[\.\?\w$\xA0-\uFFFF]/;
  2967. const whitespaceRE = /\s+[.[]\s*|\s*[.[]\s+/g;
  2968. /**
  2969. * Simple lexer to check if an expression is a member expression. This is
  2970. * lax and only checks validity at the root level (i.e. does not validate exps
  2971. * inside square brackets), but it's ok since these are only used on template
  2972. * expressions and false positives are invalid expressions in the first place.
  2973. */
  2974. const isMemberExpressionBrowser = (path) => {
  2975. // remove whitespaces around . or [ first
  2976. path = path.trim().replace(whitespaceRE, s => s.trim());
  2977. let state = 0 /* inMemberExp */;
  2978. let stateStack = [];
  2979. let currentOpenBracketCount = 0;
  2980. let currentOpenParensCount = 0;
  2981. let currentStringType = null;
  2982. for (let i = 0; i < path.length; i++) {
  2983. const char = path.charAt(i);
  2984. switch (state) {
  2985. case 0 /* inMemberExp */:
  2986. if (char === '[') {
  2987. stateStack.push(state);
  2988. state = 1 /* inBrackets */;
  2989. currentOpenBracketCount++;
  2990. }
  2991. else if (char === '(') {
  2992. stateStack.push(state);
  2993. state = 2 /* inParens */;
  2994. currentOpenParensCount++;
  2995. }
  2996. else if (!(i === 0 ? validFirstIdentCharRE : validIdentCharRE).test(char)) {
  2997. return false;
  2998. }
  2999. break;
  3000. case 1 /* inBrackets */:
  3001. if (char === `'` || char === `"` || char === '`') {
  3002. stateStack.push(state);
  3003. state = 3 /* inString */;
  3004. currentStringType = char;
  3005. }
  3006. else if (char === `[`) {
  3007. currentOpenBracketCount++;
  3008. }
  3009. else if (char === `]`) {
  3010. if (!--currentOpenBracketCount) {
  3011. state = stateStack.pop();
  3012. }
  3013. }
  3014. break;
  3015. case 2 /* inParens */:
  3016. if (char === `'` || char === `"` || char === '`') {
  3017. stateStack.push(state);
  3018. state = 3 /* inString */;
  3019. currentStringType = char;
  3020. }
  3021. else if (char === `(`) {
  3022. currentOpenParensCount++;
  3023. }
  3024. else if (char === `)`) {
  3025. // if the exp ends as a call then it should not be considered valid
  3026. if (i === path.length - 1) {
  3027. return false;
  3028. }
  3029. if (!--currentOpenParensCount) {
  3030. state = stateStack.pop();
  3031. }
  3032. }
  3033. break;
  3034. case 3 /* inString */:
  3035. if (char === currentStringType) {
  3036. state = stateStack.pop();
  3037. currentStringType = null;
  3038. }
  3039. break;
  3040. }
  3041. }
  3042. return !currentOpenBracketCount && !currentOpenParensCount;
  3043. };
  3044. const isMemberExpressionNode = _vue_shared__WEBPACK_IMPORTED_MODULE_0__.NOOP
  3045. ;
  3046. const isMemberExpression = isMemberExpressionBrowser
  3047. ;
  3048. function getInnerRange(loc, offset, length) {
  3049. const source = loc.source.slice(offset, offset + length);
  3050. const newLoc = {
  3051. source,
  3052. start: advancePositionWithClone(loc.start, loc.source, offset),
  3053. end: loc.end
  3054. };
  3055. if (length != null) {
  3056. newLoc.end = advancePositionWithClone(loc.start, loc.source, offset + length);
  3057. }
  3058. return newLoc;
  3059. }
  3060. function advancePositionWithClone(pos, source, numberOfCharacters = source.length) {
  3061. return advancePositionWithMutation((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.extend)({}, pos), source, numberOfCharacters);
  3062. }
  3063. // advance by mutation without cloning (for performance reasons), since this
  3064. // gets called a lot in the parser
  3065. function advancePositionWithMutation(pos, source, numberOfCharacters = source.length) {
  3066. let linesCount = 0;
  3067. let lastNewLinePos = -1;
  3068. for (let i = 0; i < numberOfCharacters; i++) {
  3069. if (source.charCodeAt(i) === 10 /* newline char code */) {
  3070. linesCount++;
  3071. lastNewLinePos = i;
  3072. }
  3073. }
  3074. pos.offset += numberOfCharacters;
  3075. pos.line += linesCount;
  3076. pos.column =
  3077. lastNewLinePos === -1
  3078. ? pos.column + numberOfCharacters
  3079. : numberOfCharacters - lastNewLinePos;
  3080. return pos;
  3081. }
  3082. function assert(condition, msg) {
  3083. /* istanbul ignore if */
  3084. if (!condition) {
  3085. throw new Error(msg || `unexpected compiler condition`);
  3086. }
  3087. }
  3088. function findDir(node, name, allowEmpty = false) {
  3089. for (let i = 0; i < node.props.length; i++) {
  3090. const p = node.props[i];
  3091. if (p.type === 7 /* DIRECTIVE */ &&
  3092. (allowEmpty || p.exp) &&
  3093. ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isString)(name) ? p.name === name : name.test(p.name))) {
  3094. return p;
  3095. }
  3096. }
  3097. }
  3098. function findProp(node, name, dynamicOnly = false, allowEmpty = false) {
  3099. for (let i = 0; i < node.props.length; i++) {
  3100. const p = node.props[i];
  3101. if (p.type === 6 /* ATTRIBUTE */) {
  3102. if (dynamicOnly)
  3103. continue;
  3104. if (p.name === name && (p.value || allowEmpty)) {
  3105. return p;
  3106. }
  3107. }
  3108. else if (p.name === 'bind' &&
  3109. (p.exp || allowEmpty) &&
  3110. isStaticArgOf(p.arg, name)) {
  3111. return p;
  3112. }
  3113. }
  3114. }
  3115. function isStaticArgOf(arg, name) {
  3116. return !!(arg && isStaticExp(arg) && arg.content === name);
  3117. }
  3118. function hasDynamicKeyVBind(node) {
  3119. return node.props.some(p => p.type === 7 /* DIRECTIVE */ &&
  3120. p.name === 'bind' &&
  3121. (!p.arg || // v-bind="obj"
  3122. p.arg.type !== 4 /* SIMPLE_EXPRESSION */ || // v-bind:[_ctx.foo]
  3123. !p.arg.isStatic) // v-bind:[foo]
  3124. );
  3125. }
  3126. function isText(node) {
  3127. return node.type === 5 /* INTERPOLATION */ || node.type === 2 /* TEXT */;
  3128. }
  3129. function isVSlot(p) {
  3130. return p.type === 7 /* DIRECTIVE */ && p.name === 'slot';
  3131. }
  3132. function isTemplateNode(node) {
  3133. return (node.type === 1 /* ELEMENT */ && node.tagType === 3 /* TEMPLATE */);
  3134. }
  3135. function isSlotOutlet(node) {
  3136. return node.type === 1 /* ELEMENT */ && node.tagType === 2 /* SLOT */;
  3137. }
  3138. function getVNodeHelper(ssr, isComponent) {
  3139. return ssr || isComponent ? CREATE_VNODE : CREATE_ELEMENT_VNODE;
  3140. }
  3141. function getVNodeBlockHelper(ssr, isComponent) {
  3142. return ssr || isComponent ? CREATE_BLOCK : CREATE_ELEMENT_BLOCK;
  3143. }
  3144. const propsHelperSet = new Set([NORMALIZE_PROPS, GUARD_REACTIVE_PROPS]);
  3145. function getUnnormalizedProps(props, callPath = []) {
  3146. if (props &&
  3147. !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isString)(props) &&
  3148. props.type === 14 /* JS_CALL_EXPRESSION */) {
  3149. const callee = props.callee;
  3150. if (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isString)(callee) && propsHelperSet.has(callee)) {
  3151. return getUnnormalizedProps(props.arguments[0], callPath.concat(props));
  3152. }
  3153. }
  3154. return [props, callPath];
  3155. }
  3156. function injectProp(node, prop, context) {
  3157. let propsWithInjection;
  3158. /**
  3159. * 1. mergeProps(...)
  3160. * 2. toHandlers(...)
  3161. * 3. normalizeProps(...)
  3162. * 4. normalizeProps(guardReactiveProps(...))
  3163. *
  3164. * we need to get the real props before normalization
  3165. */
  3166. let props = node.type === 13 /* VNODE_CALL */ ? node.props : node.arguments[2];
  3167. let callPath = [];
  3168. let parentCall;
  3169. if (props &&
  3170. !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isString)(props) &&
  3171. props.type === 14 /* JS_CALL_EXPRESSION */) {
  3172. const ret = getUnnormalizedProps(props);
  3173. props = ret[0];
  3174. callPath = ret[1];
  3175. parentCall = callPath[callPath.length - 1];
  3176. }
  3177. if (props == null || (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isString)(props)) {
  3178. propsWithInjection = createObjectExpression([prop]);
  3179. }
  3180. else if (props.type === 14 /* JS_CALL_EXPRESSION */) {
  3181. // merged props... add ours
  3182. // only inject key to object literal if it's the first argument so that
  3183. // if doesn't override user provided keys
  3184. const first = props.arguments[0];
  3185. if (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isString)(first) && first.type === 15 /* JS_OBJECT_EXPRESSION */) {
  3186. first.properties.unshift(prop);
  3187. }
  3188. else {
  3189. if (props.callee === TO_HANDLERS) {
  3190. // #2366
  3191. propsWithInjection = createCallExpression(context.helper(MERGE_PROPS), [
  3192. createObjectExpression([prop]),
  3193. props
  3194. ]);
  3195. }
  3196. else {
  3197. props.arguments.unshift(createObjectExpression([prop]));
  3198. }
  3199. }
  3200. !propsWithInjection && (propsWithInjection = props);
  3201. }
  3202. else if (props.type === 15 /* JS_OBJECT_EXPRESSION */) {
  3203. let alreadyExists = false;
  3204. // check existing key to avoid overriding user provided keys
  3205. if (prop.key.type === 4 /* SIMPLE_EXPRESSION */) {
  3206. const propKeyName = prop.key.content;
  3207. alreadyExists = props.properties.some(p => p.key.type === 4 /* SIMPLE_EXPRESSION */ &&
  3208. p.key.content === propKeyName);
  3209. }
  3210. if (!alreadyExists) {
  3211. props.properties.unshift(prop);
  3212. }
  3213. propsWithInjection = props;
  3214. }
  3215. else {
  3216. // single v-bind with expression, return a merged replacement
  3217. propsWithInjection = createCallExpression(context.helper(MERGE_PROPS), [
  3218. createObjectExpression([prop]),
  3219. props
  3220. ]);
  3221. // in the case of nested helper call, e.g. `normalizeProps(guardReactiveProps(props))`,
  3222. // it will be rewritten as `normalizeProps(mergeProps({ key: 0 }, props))`,
  3223. // the `guardReactiveProps` will no longer be needed
  3224. if (parentCall && parentCall.callee === GUARD_REACTIVE_PROPS) {
  3225. parentCall = callPath[callPath.length - 2];
  3226. }
  3227. }
  3228. if (node.type === 13 /* VNODE_CALL */) {
  3229. if (parentCall) {
  3230. parentCall.arguments[0] = propsWithInjection;
  3231. }
  3232. else {
  3233. node.props = propsWithInjection;
  3234. }
  3235. }
  3236. else {
  3237. if (parentCall) {
  3238. parentCall.arguments[0] = propsWithInjection;
  3239. }
  3240. else {
  3241. node.arguments[2] = propsWithInjection;
  3242. }
  3243. }
  3244. }
  3245. function toValidAssetId(name, type) {
  3246. // see issue#4422, we need adding identifier on validAssetId if variable `name` has specific character
  3247. return `_${type}_${name.replace(/[^\w]/g, (searchValue, replaceValue) => {
  3248. return searchValue === '-' ? '_' : name.charCodeAt(replaceValue).toString();
  3249. })}`;
  3250. }
  3251. // Check if a node contains expressions that reference current context scope ids
  3252. function hasScopeRef(node, ids) {
  3253. if (!node || Object.keys(ids).length === 0) {
  3254. return false;
  3255. }
  3256. switch (node.type) {
  3257. case 1 /* ELEMENT */:
  3258. for (let i = 0; i < node.props.length; i++) {
  3259. const p = node.props[i];
  3260. if (p.type === 7 /* DIRECTIVE */ &&
  3261. (hasScopeRef(p.arg, ids) || hasScopeRef(p.exp, ids))) {
  3262. return true;
  3263. }
  3264. }
  3265. return node.children.some(c => hasScopeRef(c, ids));
  3266. case 11 /* FOR */:
  3267. if (hasScopeRef(node.source, ids)) {
  3268. return true;
  3269. }
  3270. return node.children.some(c => hasScopeRef(c, ids));
  3271. case 9 /* IF */:
  3272. return node.branches.some(b => hasScopeRef(b, ids));
  3273. case 10 /* IF_BRANCH */:
  3274. if (hasScopeRef(node.condition, ids)) {
  3275. return true;
  3276. }
  3277. return node.children.some(c => hasScopeRef(c, ids));
  3278. case 4 /* SIMPLE_EXPRESSION */:
  3279. return (!node.isStatic &&
  3280. isSimpleIdentifier(node.content) &&
  3281. !!ids[node.content]);
  3282. case 8 /* COMPOUND_EXPRESSION */:
  3283. return node.children.some(c => (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isObject)(c) && hasScopeRef(c, ids));
  3284. case 5 /* INTERPOLATION */:
  3285. case 12 /* TEXT_CALL */:
  3286. return hasScopeRef(node.content, ids);
  3287. case 2 /* TEXT */:
  3288. case 3 /* COMMENT */:
  3289. return false;
  3290. default:
  3291. if ((true)) ;
  3292. return false;
  3293. }
  3294. }
  3295. function getMemoedVNodeCall(node) {
  3296. if (node.type === 14 /* JS_CALL_EXPRESSION */ && node.callee === WITH_MEMO) {
  3297. return node.arguments[1].returns;
  3298. }
  3299. else {
  3300. return node;
  3301. }
  3302. }
  3303. function makeBlock(node, { helper, removeHelper, inSSR }) {
  3304. if (!node.isBlock) {
  3305. node.isBlock = true;
  3306. removeHelper(getVNodeHelper(inSSR, node.isComponent));
  3307. helper(OPEN_BLOCK);
  3308. helper(getVNodeBlockHelper(inSSR, node.isComponent));
  3309. }
  3310. }
  3311. const deprecationData = {
  3312. ["COMPILER_IS_ON_ELEMENT" /* COMPILER_IS_ON_ELEMENT */]: {
  3313. message: `Platform-native elements with "is" prop will no longer be ` +
  3314. `treated as components in Vue 3 unless the "is" value is explicitly ` +
  3315. `prefixed with "vue:".`,
  3316. link: `https://v3-migration.vuejs.org/breaking-changes/custom-elements-interop.html`
  3317. },
  3318. ["COMPILER_V_BIND_SYNC" /* COMPILER_V_BIND_SYNC */]: {
  3319. message: key => `.sync modifier for v-bind has been removed. Use v-model with ` +
  3320. `argument instead. \`v-bind:${key}.sync\` should be changed to ` +
  3321. `\`v-model:${key}\`.`,
  3322. link: `https://v3-migration.vuejs.org/breaking-changes/v-model.html`
  3323. },
  3324. ["COMPILER_V_BIND_PROP" /* COMPILER_V_BIND_PROP */]: {
  3325. message: `.prop modifier for v-bind has been removed and no longer necessary. ` +
  3326. `Vue 3 will automatically set a binding as DOM property when appropriate.`
  3327. },
  3328. ["COMPILER_V_BIND_OBJECT_ORDER" /* COMPILER_V_BIND_OBJECT_ORDER */]: {
  3329. message: `v-bind="obj" usage is now order sensitive and behaves like JavaScript ` +
  3330. `object spread: it will now overwrite an existing non-mergeable attribute ` +
  3331. `that appears before v-bind in the case of conflict. ` +
  3332. `To retain 2.x behavior, move v-bind to make it the first attribute. ` +
  3333. `You can also suppress this warning if the usage is intended.`,
  3334. link: `https://v3-migration.vuejs.org/breaking-changes/v-bind.html`
  3335. },
  3336. ["COMPILER_V_ON_NATIVE" /* COMPILER_V_ON_NATIVE */]: {
  3337. message: `.native modifier for v-on has been removed as is no longer necessary.`,
  3338. link: `https://v3-migration.vuejs.org/breaking-changes/v-on-native-modifier-removed.html`
  3339. },
  3340. ["COMPILER_V_IF_V_FOR_PRECEDENCE" /* COMPILER_V_IF_V_FOR_PRECEDENCE */]: {
  3341. message: `v-if / v-for precedence when used on the same element has changed ` +
  3342. `in Vue 3: v-if now takes higher precedence and will no longer have ` +
  3343. `access to v-for scope variables. It is best to avoid the ambiguity ` +
  3344. `with <template> tags or use a computed property that filters v-for ` +
  3345. `data source.`,
  3346. link: `https://v3-migration.vuejs.org/breaking-changes/v-if-v-for.html`
  3347. },
  3348. ["COMPILER_NATIVE_TEMPLATE" /* COMPILER_NATIVE_TEMPLATE */]: {
  3349. message: `<template> with no special directives will render as a native template ` +
  3350. `element instead of its inner content in Vue 3.`
  3351. },
  3352. ["COMPILER_INLINE_TEMPLATE" /* COMPILER_INLINE_TEMPLATE */]: {
  3353. message: `"inline-template" has been removed in Vue 3.`,
  3354. link: `https://v3-migration.vuejs.org/breaking-changes/inline-template-attribute.html`
  3355. },
  3356. ["COMPILER_FILTER" /* COMPILER_FILTERS */]: {
  3357. message: `filters have been removed in Vue 3. ` +
  3358. `The "|" symbol will be treated as native JavaScript bitwise OR operator. ` +
  3359. `Use method calls or computed properties instead.`,
  3360. link: `https://v3-migration.vuejs.org/breaking-changes/filters.html`
  3361. }
  3362. };
  3363. function getCompatValue(key, context) {
  3364. const config = context.options
  3365. ? context.options.compatConfig
  3366. : context.compatConfig;
  3367. const value = config && config[key];
  3368. if (key === 'MODE') {
  3369. return value || 3; // compiler defaults to v3 behavior
  3370. }
  3371. else {
  3372. return value;
  3373. }
  3374. }
  3375. function isCompatEnabled(key, context) {
  3376. const mode = getCompatValue('MODE', context);
  3377. const value = getCompatValue(key, context);
  3378. // in v3 mode, only enable if explicitly set to true
  3379. // otherwise enable for any non-false value
  3380. return mode === 3 ? value === true : value !== false;
  3381. }
  3382. function checkCompatEnabled(key, context, loc, ...args) {
  3383. const enabled = isCompatEnabled(key, context);
  3384. if (( true) && enabled) {
  3385. warnDeprecation(key, context, loc, ...args);
  3386. }
  3387. return enabled;
  3388. }
  3389. function warnDeprecation(key, context, loc, ...args) {
  3390. const val = getCompatValue(key, context);
  3391. if (val === 'suppress-warning') {
  3392. return;
  3393. }
  3394. const { message, link } = deprecationData[key];
  3395. const msg = `(deprecation ${key}) ${typeof message === 'function' ? message(...args) : message}${link ? `\n Details: ${link}` : ``}`;
  3396. const err = new SyntaxError(msg);
  3397. err.code = key;
  3398. if (loc)
  3399. err.loc = loc;
  3400. context.onWarn(err);
  3401. }
  3402. // The default decoder only provides escapes for characters reserved as part of
  3403. // the template syntax, and is only used if the custom renderer did not provide
  3404. // a platform-specific decoder.
  3405. const decodeRE = /&(gt|lt|amp|apos|quot);/g;
  3406. const decodeMap = {
  3407. gt: '>',
  3408. lt: '<',
  3409. amp: '&',
  3410. apos: "'",
  3411. quot: '"'
  3412. };
  3413. const defaultParserOptions = {
  3414. delimiters: [`{{`, `}}`],
  3415. getNamespace: () => 0 /* HTML */,
  3416. getTextMode: () => 0 /* DATA */,
  3417. isVoidTag: _vue_shared__WEBPACK_IMPORTED_MODULE_0__.NO,
  3418. isPreTag: _vue_shared__WEBPACK_IMPORTED_MODULE_0__.NO,
  3419. isCustomElement: _vue_shared__WEBPACK_IMPORTED_MODULE_0__.NO,
  3420. decodeEntities: (rawText) => rawText.replace(decodeRE, (_, p1) => decodeMap[p1]),
  3421. onError: defaultOnError,
  3422. onWarn: defaultOnWarn,
  3423. comments: ("development" !== 'production')
  3424. };
  3425. function baseParse(content, options = {}) {
  3426. const context = createParserContext(content, options);
  3427. const start = getCursor(context);
  3428. return createRoot(parseChildren(context, 0 /* DATA */, []), getSelection(context, start));
  3429. }
  3430. function createParserContext(content, rawOptions) {
  3431. const options = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.extend)({}, defaultParserOptions);
  3432. let key;
  3433. for (key in rawOptions) {
  3434. // @ts-ignore
  3435. options[key] =
  3436. rawOptions[key] === undefined
  3437. ? defaultParserOptions[key]
  3438. : rawOptions[key];
  3439. }
  3440. return {
  3441. options,
  3442. column: 1,
  3443. line: 1,
  3444. offset: 0,
  3445. originalSource: content,
  3446. source: content,
  3447. inPre: false,
  3448. inVPre: false,
  3449. onWarn: options.onWarn
  3450. };
  3451. }
  3452. function parseChildren(context, mode, ancestors) {
  3453. const parent = last(ancestors);
  3454. const ns = parent ? parent.ns : 0 /* HTML */;
  3455. const nodes = [];
  3456. while (!isEnd(context, mode, ancestors)) {
  3457. const s = context.source;
  3458. let node = undefined;
  3459. if (mode === 0 /* DATA */ || mode === 1 /* RCDATA */) {
  3460. if (!context.inVPre && startsWith(s, context.options.delimiters[0])) {
  3461. // '{{'
  3462. node = parseInterpolation(context, mode);
  3463. }
  3464. else if (mode === 0 /* DATA */ && s[0] === '<') {
  3465. // https://html.spec.whatwg.org/multipage/parsing.html#tag-open-state
  3466. if (s.length === 1) {
  3467. emitError(context, 5 /* EOF_BEFORE_TAG_NAME */, 1);
  3468. }
  3469. else if (s[1] === '!') {
  3470. // https://html.spec.whatwg.org/multipage/parsing.html#markup-declaration-open-state
  3471. if (startsWith(s, '<!--')) {
  3472. node = parseComment(context);
  3473. }
  3474. else if (startsWith(s, '<!DOCTYPE')) {
  3475. // Ignore DOCTYPE by a limitation.
  3476. node = parseBogusComment(context);
  3477. }
  3478. else if (startsWith(s, '<![CDATA[')) {
  3479. if (ns !== 0 /* HTML */) {
  3480. node = parseCDATA(context, ancestors);
  3481. }
  3482. else {
  3483. emitError(context, 1 /* CDATA_IN_HTML_CONTENT */);
  3484. node = parseBogusComment(context);
  3485. }
  3486. }
  3487. else {
  3488. emitError(context, 11 /* INCORRECTLY_OPENED_COMMENT */);
  3489. node = parseBogusComment(context);
  3490. }
  3491. }
  3492. else if (s[1] === '/') {
  3493. // https://html.spec.whatwg.org/multipage/parsing.html#end-tag-open-state
  3494. if (s.length === 2) {
  3495. emitError(context, 5 /* EOF_BEFORE_TAG_NAME */, 2);
  3496. }
  3497. else if (s[2] === '>') {
  3498. emitError(context, 14 /* MISSING_END_TAG_NAME */, 2);
  3499. advanceBy(context, 3);
  3500. continue;
  3501. }
  3502. else if (/[a-z]/i.test(s[2])) {
  3503. emitError(context, 23 /* X_INVALID_END_TAG */);
  3504. parseTag(context, 1 /* End */, parent);
  3505. continue;
  3506. }
  3507. else {
  3508. emitError(context, 12 /* INVALID_FIRST_CHARACTER_OF_TAG_NAME */, 2);
  3509. node = parseBogusComment(context);
  3510. }
  3511. }
  3512. else if (/[a-z]/i.test(s[1])) {
  3513. node = parseElement(context, ancestors);
  3514. // 2.x <template> with no directive compat
  3515. if (isCompatEnabled("COMPILER_NATIVE_TEMPLATE" /* COMPILER_NATIVE_TEMPLATE */, context) &&
  3516. node &&
  3517. node.tag === 'template' &&
  3518. !node.props.some(p => p.type === 7 /* DIRECTIVE */ &&
  3519. isSpecialTemplateDirective(p.name))) {
  3520. ( true) &&
  3521. warnDeprecation("COMPILER_NATIVE_TEMPLATE" /* COMPILER_NATIVE_TEMPLATE */, context, node.loc);
  3522. node = node.children;
  3523. }
  3524. }
  3525. else if (s[1] === '?') {
  3526. emitError(context, 21 /* UNEXPECTED_QUESTION_MARK_INSTEAD_OF_TAG_NAME */, 1);
  3527. node = parseBogusComment(context);
  3528. }
  3529. else {
  3530. emitError(context, 12 /* INVALID_FIRST_CHARACTER_OF_TAG_NAME */, 1);
  3531. }
  3532. }
  3533. }
  3534. if (!node) {
  3535. node = parseText(context, mode);
  3536. }
  3537. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isArray)(node)) {
  3538. for (let i = 0; i < node.length; i++) {
  3539. pushNode(nodes, node[i]);
  3540. }
  3541. }
  3542. else {
  3543. pushNode(nodes, node);
  3544. }
  3545. }
  3546. // Whitespace handling strategy like v2
  3547. let removedWhitespace = false;
  3548. if (mode !== 2 /* RAWTEXT */ && mode !== 1 /* RCDATA */) {
  3549. const shouldCondense = context.options.whitespace !== 'preserve';
  3550. for (let i = 0; i < nodes.length; i++) {
  3551. const node = nodes[i];
  3552. if (!context.inPre && node.type === 2 /* TEXT */) {
  3553. if (!/[^\t\r\n\f ]/.test(node.content)) {
  3554. const prev = nodes[i - 1];
  3555. const next = nodes[i + 1];
  3556. // Remove if:
  3557. // - the whitespace is the first or last node, or:
  3558. // - (condense mode) the whitespace is adjacent to a comment, or:
  3559. // - (condense mode) the whitespace is between two elements AND contains newline
  3560. if (!prev ||
  3561. !next ||
  3562. (shouldCondense &&
  3563. (prev.type === 3 /* COMMENT */ ||
  3564. next.type === 3 /* COMMENT */ ||
  3565. (prev.type === 1 /* ELEMENT */ &&
  3566. next.type === 1 /* ELEMENT */ &&
  3567. /[\r\n]/.test(node.content))))) {
  3568. removedWhitespace = true;
  3569. nodes[i] = null;
  3570. }
  3571. else {
  3572. // Otherwise, the whitespace is condensed into a single space
  3573. node.content = ' ';
  3574. }
  3575. }
  3576. else if (shouldCondense) {
  3577. // in condense mode, consecutive whitespaces in text are condensed
  3578. // down to a single space.
  3579. node.content = node.content.replace(/[\t\r\n\f ]+/g, ' ');
  3580. }
  3581. }
  3582. // Remove comment nodes if desired by configuration.
  3583. else if (node.type === 3 /* COMMENT */ && !context.options.comments) {
  3584. removedWhitespace = true;
  3585. nodes[i] = null;
  3586. }
  3587. }
  3588. if (context.inPre && parent && context.options.isPreTag(parent.tag)) {
  3589. // remove leading newline per html spec
  3590. // https://html.spec.whatwg.org/multipage/grouping-content.html#the-pre-element
  3591. const first = nodes[0];
  3592. if (first && first.type === 2 /* TEXT */) {
  3593. first.content = first.content.replace(/^\r?\n/, '');
  3594. }
  3595. }
  3596. }
  3597. return removedWhitespace ? nodes.filter(Boolean) : nodes;
  3598. }
  3599. function pushNode(nodes, node) {
  3600. if (node.type === 2 /* TEXT */) {
  3601. const prev = last(nodes);
  3602. // Merge if both this and the previous node are text and those are
  3603. // consecutive. This happens for cases like "a < b".
  3604. if (prev &&
  3605. prev.type === 2 /* TEXT */ &&
  3606. prev.loc.end.offset === node.loc.start.offset) {
  3607. prev.content += node.content;
  3608. prev.loc.end = node.loc.end;
  3609. prev.loc.source += node.loc.source;
  3610. return;
  3611. }
  3612. }
  3613. nodes.push(node);
  3614. }
  3615. function parseCDATA(context, ancestors) {
  3616. advanceBy(context, 9);
  3617. const nodes = parseChildren(context, 3 /* CDATA */, ancestors);
  3618. if (context.source.length === 0) {
  3619. emitError(context, 6 /* EOF_IN_CDATA */);
  3620. }
  3621. else {
  3622. advanceBy(context, 3);
  3623. }
  3624. return nodes;
  3625. }
  3626. function parseComment(context) {
  3627. const start = getCursor(context);
  3628. let content;
  3629. // Regular comment.
  3630. const match = /--(\!)?>/.exec(context.source);
  3631. if (!match) {
  3632. content = context.source.slice(4);
  3633. advanceBy(context, context.source.length);
  3634. emitError(context, 7 /* EOF_IN_COMMENT */);
  3635. }
  3636. else {
  3637. if (match.index <= 3) {
  3638. emitError(context, 0 /* ABRUPT_CLOSING_OF_EMPTY_COMMENT */);
  3639. }
  3640. if (match[1]) {
  3641. emitError(context, 10 /* INCORRECTLY_CLOSED_COMMENT */);
  3642. }
  3643. content = context.source.slice(4, match.index);
  3644. // Advancing with reporting nested comments.
  3645. const s = context.source.slice(0, match.index);
  3646. let prevIndex = 1, nestedIndex = 0;
  3647. while ((nestedIndex = s.indexOf('<!--', prevIndex)) !== -1) {
  3648. advanceBy(context, nestedIndex - prevIndex + 1);
  3649. if (nestedIndex + 4 < s.length) {
  3650. emitError(context, 16 /* NESTED_COMMENT */);
  3651. }
  3652. prevIndex = nestedIndex + 1;
  3653. }
  3654. advanceBy(context, match.index + match[0].length - prevIndex + 1);
  3655. }
  3656. return {
  3657. type: 3 /* COMMENT */,
  3658. content,
  3659. loc: getSelection(context, start)
  3660. };
  3661. }
  3662. function parseBogusComment(context) {
  3663. const start = getCursor(context);
  3664. const contentStart = context.source[1] === '?' ? 1 : 2;
  3665. let content;
  3666. const closeIndex = context.source.indexOf('>');
  3667. if (closeIndex === -1) {
  3668. content = context.source.slice(contentStart);
  3669. advanceBy(context, context.source.length);
  3670. }
  3671. else {
  3672. content = context.source.slice(contentStart, closeIndex);
  3673. advanceBy(context, closeIndex + 1);
  3674. }
  3675. return {
  3676. type: 3 /* COMMENT */,
  3677. content,
  3678. loc: getSelection(context, start)
  3679. };
  3680. }
  3681. function parseElement(context, ancestors) {
  3682. // Start tag.
  3683. const wasInPre = context.inPre;
  3684. const wasInVPre = context.inVPre;
  3685. const parent = last(ancestors);
  3686. const element = parseTag(context, 0 /* Start */, parent);
  3687. const isPreBoundary = context.inPre && !wasInPre;
  3688. const isVPreBoundary = context.inVPre && !wasInVPre;
  3689. if (element.isSelfClosing || context.options.isVoidTag(element.tag)) {
  3690. // #4030 self-closing <pre> tag
  3691. if (isPreBoundary) {
  3692. context.inPre = false;
  3693. }
  3694. if (isVPreBoundary) {
  3695. context.inVPre = false;
  3696. }
  3697. return element;
  3698. }
  3699. // Children.
  3700. ancestors.push(element);
  3701. const mode = context.options.getTextMode(element, parent);
  3702. const children = parseChildren(context, mode, ancestors);
  3703. ancestors.pop();
  3704. // 2.x inline-template compat
  3705. {
  3706. const inlineTemplateProp = element.props.find(p => p.type === 6 /* ATTRIBUTE */ && p.name === 'inline-template');
  3707. if (inlineTemplateProp &&
  3708. checkCompatEnabled("COMPILER_INLINE_TEMPLATE" /* COMPILER_INLINE_TEMPLATE */, context, inlineTemplateProp.loc)) {
  3709. const loc = getSelection(context, element.loc.end);
  3710. inlineTemplateProp.value = {
  3711. type: 2 /* TEXT */,
  3712. content: loc.source,
  3713. loc
  3714. };
  3715. }
  3716. }
  3717. element.children = children;
  3718. // End tag.
  3719. if (startsWithEndTagOpen(context.source, element.tag)) {
  3720. parseTag(context, 1 /* End */, parent);
  3721. }
  3722. else {
  3723. emitError(context, 24 /* X_MISSING_END_TAG */, 0, element.loc.start);
  3724. if (context.source.length === 0 && element.tag.toLowerCase() === 'script') {
  3725. const first = children[0];
  3726. if (first && startsWith(first.loc.source, '<!--')) {
  3727. emitError(context, 8 /* EOF_IN_SCRIPT_HTML_COMMENT_LIKE_TEXT */);
  3728. }
  3729. }
  3730. }
  3731. element.loc = getSelection(context, element.loc.start);
  3732. if (isPreBoundary) {
  3733. context.inPre = false;
  3734. }
  3735. if (isVPreBoundary) {
  3736. context.inVPre = false;
  3737. }
  3738. return element;
  3739. }
  3740. const isSpecialTemplateDirective = /*#__PURE__*/ (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.makeMap)(`if,else,else-if,for,slot`);
  3741. function parseTag(context, type, parent) {
  3742. // Tag open.
  3743. const start = getCursor(context);
  3744. const match = /^<\/?([a-z][^\t\r\n\f />]*)/i.exec(context.source);
  3745. const tag = match[1];
  3746. const ns = context.options.getNamespace(tag, parent);
  3747. advanceBy(context, match[0].length);
  3748. advanceSpaces(context);
  3749. // save current state in case we need to re-parse attributes with v-pre
  3750. const cursor = getCursor(context);
  3751. const currentSource = context.source;
  3752. // check <pre> tag
  3753. if (context.options.isPreTag(tag)) {
  3754. context.inPre = true;
  3755. }
  3756. // Attributes.
  3757. let props = parseAttributes(context, type);
  3758. // check v-pre
  3759. if (type === 0 /* Start */ &&
  3760. !context.inVPre &&
  3761. props.some(p => p.type === 7 /* DIRECTIVE */ && p.name === 'pre')) {
  3762. context.inVPre = true;
  3763. // reset context
  3764. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.extend)(context, cursor);
  3765. context.source = currentSource;
  3766. // re-parse attrs and filter out v-pre itself
  3767. props = parseAttributes(context, type).filter(p => p.name !== 'v-pre');
  3768. }
  3769. // Tag close.
  3770. let isSelfClosing = false;
  3771. if (context.source.length === 0) {
  3772. emitError(context, 9 /* EOF_IN_TAG */);
  3773. }
  3774. else {
  3775. isSelfClosing = startsWith(context.source, '/>');
  3776. if (type === 1 /* End */ && isSelfClosing) {
  3777. emitError(context, 4 /* END_TAG_WITH_TRAILING_SOLIDUS */);
  3778. }
  3779. advanceBy(context, isSelfClosing ? 2 : 1);
  3780. }
  3781. if (type === 1 /* End */) {
  3782. return;
  3783. }
  3784. // 2.x deprecation checks
  3785. if (( true) &&
  3786. isCompatEnabled("COMPILER_V_IF_V_FOR_PRECEDENCE" /* COMPILER_V_IF_V_FOR_PRECEDENCE */, context)) {
  3787. let hasIf = false;
  3788. let hasFor = false;
  3789. for (let i = 0; i < props.length; i++) {
  3790. const p = props[i];
  3791. if (p.type === 7 /* DIRECTIVE */) {
  3792. if (p.name === 'if') {
  3793. hasIf = true;
  3794. }
  3795. else if (p.name === 'for') {
  3796. hasFor = true;
  3797. }
  3798. }
  3799. if (hasIf && hasFor) {
  3800. warnDeprecation("COMPILER_V_IF_V_FOR_PRECEDENCE" /* COMPILER_V_IF_V_FOR_PRECEDENCE */, context, getSelection(context, start));
  3801. break;
  3802. }
  3803. }
  3804. }
  3805. let tagType = 0 /* ELEMENT */;
  3806. if (!context.inVPre) {
  3807. if (tag === 'slot') {
  3808. tagType = 2 /* SLOT */;
  3809. }
  3810. else if (tag === 'template') {
  3811. if (props.some(p => p.type === 7 /* DIRECTIVE */ && isSpecialTemplateDirective(p.name))) {
  3812. tagType = 3 /* TEMPLATE */;
  3813. }
  3814. }
  3815. else if (isComponent(tag, props, context)) {
  3816. tagType = 1 /* COMPONENT */;
  3817. }
  3818. }
  3819. return {
  3820. type: 1 /* ELEMENT */,
  3821. ns,
  3822. tag,
  3823. tagType,
  3824. props,
  3825. isSelfClosing,
  3826. children: [],
  3827. loc: getSelection(context, start),
  3828. codegenNode: undefined // to be created during transform phase
  3829. };
  3830. }
  3831. function isComponent(tag, props, context) {
  3832. const options = context.options;
  3833. if (options.isCustomElement(tag)) {
  3834. return false;
  3835. }
  3836. if (tag === 'component' ||
  3837. /^[A-Z]/.test(tag) ||
  3838. isCoreComponent(tag) ||
  3839. (options.isBuiltInComponent && options.isBuiltInComponent(tag)) ||
  3840. (options.isNativeTag && !options.isNativeTag(tag))) {
  3841. return true;
  3842. }
  3843. // at this point the tag should be a native tag, but check for potential "is"
  3844. // casting
  3845. for (let i = 0; i < props.length; i++) {
  3846. const p = props[i];
  3847. if (p.type === 6 /* ATTRIBUTE */) {
  3848. if (p.name === 'is' && p.value) {
  3849. if (p.value.content.startsWith('vue:')) {
  3850. return true;
  3851. }
  3852. else if (checkCompatEnabled("COMPILER_IS_ON_ELEMENT" /* COMPILER_IS_ON_ELEMENT */, context, p.loc)) {
  3853. return true;
  3854. }
  3855. }
  3856. }
  3857. else {
  3858. // directive
  3859. // v-is (TODO Deprecate)
  3860. if (p.name === 'is') {
  3861. return true;
  3862. }
  3863. else if (
  3864. // :is on plain element - only treat as component in compat mode
  3865. p.name === 'bind' &&
  3866. isStaticArgOf(p.arg, 'is') &&
  3867. true &&
  3868. checkCompatEnabled("COMPILER_IS_ON_ELEMENT" /* COMPILER_IS_ON_ELEMENT */, context, p.loc)) {
  3869. return true;
  3870. }
  3871. }
  3872. }
  3873. }
  3874. function parseAttributes(context, type) {
  3875. const props = [];
  3876. const attributeNames = new Set();
  3877. while (context.source.length > 0 &&
  3878. !startsWith(context.source, '>') &&
  3879. !startsWith(context.source, '/>')) {
  3880. if (startsWith(context.source, '/')) {
  3881. emitError(context, 22 /* UNEXPECTED_SOLIDUS_IN_TAG */);
  3882. advanceBy(context, 1);
  3883. advanceSpaces(context);
  3884. continue;
  3885. }
  3886. if (type === 1 /* End */) {
  3887. emitError(context, 3 /* END_TAG_WITH_ATTRIBUTES */);
  3888. }
  3889. const attr = parseAttribute(context, attributeNames);
  3890. // Trim whitespace between class
  3891. // https://github.com/vuejs/core/issues/4251
  3892. if (attr.type === 6 /* ATTRIBUTE */ &&
  3893. attr.value &&
  3894. attr.name === 'class') {
  3895. attr.value.content = attr.value.content.replace(/\s+/g, ' ').trim();
  3896. }
  3897. if (type === 0 /* Start */) {
  3898. props.push(attr);
  3899. }
  3900. if (/^[^\t\r\n\f />]/.test(context.source)) {
  3901. emitError(context, 15 /* MISSING_WHITESPACE_BETWEEN_ATTRIBUTES */);
  3902. }
  3903. advanceSpaces(context);
  3904. }
  3905. return props;
  3906. }
  3907. function parseAttribute(context, nameSet) {
  3908. // Name.
  3909. const start = getCursor(context);
  3910. const match = /^[^\t\r\n\f />][^\t\r\n\f />=]*/.exec(context.source);
  3911. const name = match[0];
  3912. if (nameSet.has(name)) {
  3913. emitError(context, 2 /* DUPLICATE_ATTRIBUTE */);
  3914. }
  3915. nameSet.add(name);
  3916. if (name[0] === '=') {
  3917. emitError(context, 19 /* UNEXPECTED_EQUALS_SIGN_BEFORE_ATTRIBUTE_NAME */);
  3918. }
  3919. {
  3920. const pattern = /["'<]/g;
  3921. let m;
  3922. while ((m = pattern.exec(name))) {
  3923. emitError(context, 17 /* UNEXPECTED_CHARACTER_IN_ATTRIBUTE_NAME */, m.index);
  3924. }
  3925. }
  3926. advanceBy(context, name.length);
  3927. // Value
  3928. let value = undefined;
  3929. if (/^[\t\r\n\f ]*=/.test(context.source)) {
  3930. advanceSpaces(context);
  3931. advanceBy(context, 1);
  3932. advanceSpaces(context);
  3933. value = parseAttributeValue(context);
  3934. if (!value) {
  3935. emitError(context, 13 /* MISSING_ATTRIBUTE_VALUE */);
  3936. }
  3937. }
  3938. const loc = getSelection(context, start);
  3939. if (!context.inVPre && /^(v-[A-Za-z0-9-]|:|\.|@|#)/.test(name)) {
  3940. const match = /(?:^v-([a-z0-9-]+))?(?:(?::|^\.|^@|^#)(\[[^\]]+\]|[^\.]+))?(.+)?$/i.exec(name);
  3941. let isPropShorthand = startsWith(name, '.');
  3942. let dirName = match[1] ||
  3943. (isPropShorthand || startsWith(name, ':')
  3944. ? 'bind'
  3945. : startsWith(name, '@')
  3946. ? 'on'
  3947. : 'slot');
  3948. let arg;
  3949. if (match[2]) {
  3950. const isSlot = dirName === 'slot';
  3951. const startOffset = name.lastIndexOf(match[2]);
  3952. const loc = getSelection(context, getNewPosition(context, start, startOffset), getNewPosition(context, start, startOffset + match[2].length + ((isSlot && match[3]) || '').length));
  3953. let content = match[2];
  3954. let isStatic = true;
  3955. if (content.startsWith('[')) {
  3956. isStatic = false;
  3957. if (!content.endsWith(']')) {
  3958. emitError(context, 27 /* X_MISSING_DYNAMIC_DIRECTIVE_ARGUMENT_END */);
  3959. content = content.slice(1);
  3960. }
  3961. else {
  3962. content = content.slice(1, content.length - 1);
  3963. }
  3964. }
  3965. else if (isSlot) {
  3966. // #1241 special case for v-slot: vuetify relies extensively on slot
  3967. // names containing dots. v-slot doesn't have any modifiers and Vue 2.x
  3968. // supports such usage so we are keeping it consistent with 2.x.
  3969. content += match[3] || '';
  3970. }
  3971. arg = {
  3972. type: 4 /* SIMPLE_EXPRESSION */,
  3973. content,
  3974. isStatic,
  3975. constType: isStatic
  3976. ? 3 /* CAN_STRINGIFY */
  3977. : 0 /* NOT_CONSTANT */,
  3978. loc
  3979. };
  3980. }
  3981. if (value && value.isQuoted) {
  3982. const valueLoc = value.loc;
  3983. valueLoc.start.offset++;
  3984. valueLoc.start.column++;
  3985. valueLoc.end = advancePositionWithClone(valueLoc.start, value.content);
  3986. valueLoc.source = valueLoc.source.slice(1, -1);
  3987. }
  3988. const modifiers = match[3] ? match[3].slice(1).split('.') : [];
  3989. if (isPropShorthand)
  3990. modifiers.push('prop');
  3991. // 2.x compat v-bind:foo.sync -> v-model:foo
  3992. if (dirName === 'bind' && arg) {
  3993. if (modifiers.includes('sync') &&
  3994. checkCompatEnabled("COMPILER_V_BIND_SYNC" /* COMPILER_V_BIND_SYNC */, context, loc, arg.loc.source)) {
  3995. dirName = 'model';
  3996. modifiers.splice(modifiers.indexOf('sync'), 1);
  3997. }
  3998. if (( true) && modifiers.includes('prop')) {
  3999. checkCompatEnabled("COMPILER_V_BIND_PROP" /* COMPILER_V_BIND_PROP */, context, loc);
  4000. }
  4001. }
  4002. return {
  4003. type: 7 /* DIRECTIVE */,
  4004. name: dirName,
  4005. exp: value && {
  4006. type: 4 /* SIMPLE_EXPRESSION */,
  4007. content: value.content,
  4008. isStatic: false,
  4009. // Treat as non-constant by default. This can be potentially set to
  4010. // other values by `transformExpression` to make it eligible for hoisting.
  4011. constType: 0 /* NOT_CONSTANT */,
  4012. loc: value.loc
  4013. },
  4014. arg,
  4015. modifiers,
  4016. loc
  4017. };
  4018. }
  4019. // missing directive name or illegal directive name
  4020. if (!context.inVPre && startsWith(name, 'v-')) {
  4021. emitError(context, 26 /* X_MISSING_DIRECTIVE_NAME */);
  4022. }
  4023. return {
  4024. type: 6 /* ATTRIBUTE */,
  4025. name,
  4026. value: value && {
  4027. type: 2 /* TEXT */,
  4028. content: value.content,
  4029. loc: value.loc
  4030. },
  4031. loc
  4032. };
  4033. }
  4034. function parseAttributeValue(context) {
  4035. const start = getCursor(context);
  4036. let content;
  4037. const quote = context.source[0];
  4038. const isQuoted = quote === `"` || quote === `'`;
  4039. if (isQuoted) {
  4040. // Quoted value.
  4041. advanceBy(context, 1);
  4042. const endIndex = context.source.indexOf(quote);
  4043. if (endIndex === -1) {
  4044. content = parseTextData(context, context.source.length, 4 /* ATTRIBUTE_VALUE */);
  4045. }
  4046. else {
  4047. content = parseTextData(context, endIndex, 4 /* ATTRIBUTE_VALUE */);
  4048. advanceBy(context, 1);
  4049. }
  4050. }
  4051. else {
  4052. // Unquoted
  4053. const match = /^[^\t\r\n\f >]+/.exec(context.source);
  4054. if (!match) {
  4055. return undefined;
  4056. }
  4057. const unexpectedChars = /["'<=`]/g;
  4058. let m;
  4059. while ((m = unexpectedChars.exec(match[0]))) {
  4060. emitError(context, 18 /* UNEXPECTED_CHARACTER_IN_UNQUOTED_ATTRIBUTE_VALUE */, m.index);
  4061. }
  4062. content = parseTextData(context, match[0].length, 4 /* ATTRIBUTE_VALUE */);
  4063. }
  4064. return { content, isQuoted, loc: getSelection(context, start) };
  4065. }
  4066. function parseInterpolation(context, mode) {
  4067. const [open, close] = context.options.delimiters;
  4068. const closeIndex = context.source.indexOf(close, open.length);
  4069. if (closeIndex === -1) {
  4070. emitError(context, 25 /* X_MISSING_INTERPOLATION_END */);
  4071. return undefined;
  4072. }
  4073. const start = getCursor(context);
  4074. advanceBy(context, open.length);
  4075. const innerStart = getCursor(context);
  4076. const innerEnd = getCursor(context);
  4077. const rawContentLength = closeIndex - open.length;
  4078. const rawContent = context.source.slice(0, rawContentLength);
  4079. const preTrimContent = parseTextData(context, rawContentLength, mode);
  4080. const content = preTrimContent.trim();
  4081. const startOffset = preTrimContent.indexOf(content);
  4082. if (startOffset > 0) {
  4083. advancePositionWithMutation(innerStart, rawContent, startOffset);
  4084. }
  4085. const endOffset = rawContentLength - (preTrimContent.length - content.length - startOffset);
  4086. advancePositionWithMutation(innerEnd, rawContent, endOffset);
  4087. advanceBy(context, close.length);
  4088. return {
  4089. type: 5 /* INTERPOLATION */,
  4090. content: {
  4091. type: 4 /* SIMPLE_EXPRESSION */,
  4092. isStatic: false,
  4093. // Set `isConstant` to false by default and will decide in transformExpression
  4094. constType: 0 /* NOT_CONSTANT */,
  4095. content,
  4096. loc: getSelection(context, innerStart, innerEnd)
  4097. },
  4098. loc: getSelection(context, start)
  4099. };
  4100. }
  4101. function parseText(context, mode) {
  4102. const endTokens = mode === 3 /* CDATA */ ? [']]>'] : ['<', context.options.delimiters[0]];
  4103. let endIndex = context.source.length;
  4104. for (let i = 0; i < endTokens.length; i++) {
  4105. const index = context.source.indexOf(endTokens[i], 1);
  4106. if (index !== -1 && endIndex > index) {
  4107. endIndex = index;
  4108. }
  4109. }
  4110. const start = getCursor(context);
  4111. const content = parseTextData(context, endIndex, mode);
  4112. return {
  4113. type: 2 /* TEXT */,
  4114. content,
  4115. loc: getSelection(context, start)
  4116. };
  4117. }
  4118. /**
  4119. * Get text data with a given length from the current location.
  4120. * This translates HTML entities in the text data.
  4121. */
  4122. function parseTextData(context, length, mode) {
  4123. const rawText = context.source.slice(0, length);
  4124. advanceBy(context, length);
  4125. if (mode === 2 /* RAWTEXT */ ||
  4126. mode === 3 /* CDATA */ ||
  4127. !rawText.includes('&')) {
  4128. return rawText;
  4129. }
  4130. else {
  4131. // DATA or RCDATA containing "&"". Entity decoding required.
  4132. return context.options.decodeEntities(rawText, mode === 4 /* ATTRIBUTE_VALUE */);
  4133. }
  4134. }
  4135. function getCursor(context) {
  4136. const { column, line, offset } = context;
  4137. return { column, line, offset };
  4138. }
  4139. function getSelection(context, start, end) {
  4140. end = end || getCursor(context);
  4141. return {
  4142. start,
  4143. end,
  4144. source: context.originalSource.slice(start.offset, end.offset)
  4145. };
  4146. }
  4147. function last(xs) {
  4148. return xs[xs.length - 1];
  4149. }
  4150. function startsWith(source, searchString) {
  4151. return source.startsWith(searchString);
  4152. }
  4153. function advanceBy(context, numberOfCharacters) {
  4154. const { source } = context;
  4155. advancePositionWithMutation(context, source, numberOfCharacters);
  4156. context.source = source.slice(numberOfCharacters);
  4157. }
  4158. function advanceSpaces(context) {
  4159. const match = /^[\t\r\n\f ]+/.exec(context.source);
  4160. if (match) {
  4161. advanceBy(context, match[0].length);
  4162. }
  4163. }
  4164. function getNewPosition(context, start, numberOfCharacters) {
  4165. return advancePositionWithClone(start, context.originalSource.slice(start.offset, numberOfCharacters), numberOfCharacters);
  4166. }
  4167. function emitError(context, code, offset, loc = getCursor(context)) {
  4168. if (offset) {
  4169. loc.offset += offset;
  4170. loc.column += offset;
  4171. }
  4172. context.options.onError(createCompilerError(code, {
  4173. start: loc,
  4174. end: loc,
  4175. source: ''
  4176. }));
  4177. }
  4178. function isEnd(context, mode, ancestors) {
  4179. const s = context.source;
  4180. switch (mode) {
  4181. case 0 /* DATA */:
  4182. if (startsWith(s, '</')) {
  4183. // TODO: probably bad performance
  4184. for (let i = ancestors.length - 1; i >= 0; --i) {
  4185. if (startsWithEndTagOpen(s, ancestors[i].tag)) {
  4186. return true;
  4187. }
  4188. }
  4189. }
  4190. break;
  4191. case 1 /* RCDATA */:
  4192. case 2 /* RAWTEXT */: {
  4193. const parent = last(ancestors);
  4194. if (parent && startsWithEndTagOpen(s, parent.tag)) {
  4195. return true;
  4196. }
  4197. break;
  4198. }
  4199. case 3 /* CDATA */:
  4200. if (startsWith(s, ']]>')) {
  4201. return true;
  4202. }
  4203. break;
  4204. }
  4205. return !s;
  4206. }
  4207. function startsWithEndTagOpen(source, tag) {
  4208. return (startsWith(source, '</') &&
  4209. source.slice(2, 2 + tag.length).toLowerCase() === tag.toLowerCase() &&
  4210. /[\t\r\n\f />]/.test(source[2 + tag.length] || '>'));
  4211. }
  4212. function hoistStatic(root, context) {
  4213. walk(root, context,
  4214. // Root node is unfortunately non-hoistable due to potential parent
  4215. // fallthrough attributes.
  4216. isSingleElementRoot(root, root.children[0]));
  4217. }
  4218. function isSingleElementRoot(root, child) {
  4219. const { children } = root;
  4220. return (children.length === 1 &&
  4221. child.type === 1 /* ELEMENT */ &&
  4222. !isSlotOutlet(child));
  4223. }
  4224. function walk(node, context, doNotHoistNode = false) {
  4225. const { children } = node;
  4226. const originalCount = children.length;
  4227. let hoistedCount = 0;
  4228. for (let i = 0; i < children.length; i++) {
  4229. const child = children[i];
  4230. // only plain elements & text calls are eligible for hoisting.
  4231. if (child.type === 1 /* ELEMENT */ &&
  4232. child.tagType === 0 /* ELEMENT */) {
  4233. const constantType = doNotHoistNode
  4234. ? 0 /* NOT_CONSTANT */
  4235. : getConstantType(child, context);
  4236. if (constantType > 0 /* NOT_CONSTANT */) {
  4237. if (constantType >= 2 /* CAN_HOIST */) {
  4238. child.codegenNode.patchFlag =
  4239. -1 /* HOISTED */ + (( true) ? ` /* HOISTED */` : 0);
  4240. child.codegenNode = context.hoist(child.codegenNode);
  4241. hoistedCount++;
  4242. continue;
  4243. }
  4244. }
  4245. else {
  4246. // node may contain dynamic children, but its props may be eligible for
  4247. // hoisting.
  4248. const codegenNode = child.codegenNode;
  4249. if (codegenNode.type === 13 /* VNODE_CALL */) {
  4250. const flag = getPatchFlag(codegenNode);
  4251. if ((!flag ||
  4252. flag === 512 /* NEED_PATCH */ ||
  4253. flag === 1 /* TEXT */) &&
  4254. getGeneratedPropsConstantType(child, context) >=
  4255. 2 /* CAN_HOIST */) {
  4256. const props = getNodeProps(child);
  4257. if (props) {
  4258. codegenNode.props = context.hoist(props);
  4259. }
  4260. }
  4261. if (codegenNode.dynamicProps) {
  4262. codegenNode.dynamicProps = context.hoist(codegenNode.dynamicProps);
  4263. }
  4264. }
  4265. }
  4266. }
  4267. else if (child.type === 12 /* TEXT_CALL */ &&
  4268. getConstantType(child.content, context) >= 2 /* CAN_HOIST */) {
  4269. child.codegenNode = context.hoist(child.codegenNode);
  4270. hoistedCount++;
  4271. }
  4272. // walk further
  4273. if (child.type === 1 /* ELEMENT */) {
  4274. const isComponent = child.tagType === 1 /* COMPONENT */;
  4275. if (isComponent) {
  4276. context.scopes.vSlot++;
  4277. }
  4278. walk(child, context);
  4279. if (isComponent) {
  4280. context.scopes.vSlot--;
  4281. }
  4282. }
  4283. else if (child.type === 11 /* FOR */) {
  4284. // Do not hoist v-for single child because it has to be a block
  4285. walk(child, context, child.children.length === 1);
  4286. }
  4287. else if (child.type === 9 /* IF */) {
  4288. for (let i = 0; i < child.branches.length; i++) {
  4289. // Do not hoist v-if single child because it has to be a block
  4290. walk(child.branches[i], context, child.branches[i].children.length === 1);
  4291. }
  4292. }
  4293. }
  4294. if (hoistedCount && context.transformHoist) {
  4295. context.transformHoist(children, context, node);
  4296. }
  4297. // all children were hoisted - the entire children array is hoistable.
  4298. if (hoistedCount &&
  4299. hoistedCount === originalCount &&
  4300. node.type === 1 /* ELEMENT */ &&
  4301. node.tagType === 0 /* ELEMENT */ &&
  4302. node.codegenNode &&
  4303. node.codegenNode.type === 13 /* VNODE_CALL */ &&
  4304. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isArray)(node.codegenNode.children)) {
  4305. node.codegenNode.children = context.hoist(createArrayExpression(node.codegenNode.children));
  4306. }
  4307. }
  4308. function getConstantType(node, context) {
  4309. const { constantCache } = context;
  4310. switch (node.type) {
  4311. case 1 /* ELEMENT */:
  4312. if (node.tagType !== 0 /* ELEMENT */) {
  4313. return 0 /* NOT_CONSTANT */;
  4314. }
  4315. const cached = constantCache.get(node);
  4316. if (cached !== undefined) {
  4317. return cached;
  4318. }
  4319. const codegenNode = node.codegenNode;
  4320. if (codegenNode.type !== 13 /* VNODE_CALL */) {
  4321. return 0 /* NOT_CONSTANT */;
  4322. }
  4323. if (codegenNode.isBlock &&
  4324. node.tag !== 'svg' &&
  4325. node.tag !== 'foreignObject') {
  4326. return 0 /* NOT_CONSTANT */;
  4327. }
  4328. const flag = getPatchFlag(codegenNode);
  4329. if (!flag) {
  4330. let returnType = 3 /* CAN_STRINGIFY */;
  4331. // Element itself has no patch flag. However we still need to check:
  4332. // 1. Even for a node with no patch flag, it is possible for it to contain
  4333. // non-hoistable expressions that refers to scope variables, e.g. compiler
  4334. // injected keys or cached event handlers. Therefore we need to always
  4335. // check the codegenNode's props to be sure.
  4336. const generatedPropsType = getGeneratedPropsConstantType(node, context);
  4337. if (generatedPropsType === 0 /* NOT_CONSTANT */) {
  4338. constantCache.set(node, 0 /* NOT_CONSTANT */);
  4339. return 0 /* NOT_CONSTANT */;
  4340. }
  4341. if (generatedPropsType < returnType) {
  4342. returnType = generatedPropsType;
  4343. }
  4344. // 2. its children.
  4345. for (let i = 0; i < node.children.length; i++) {
  4346. const childType = getConstantType(node.children[i], context);
  4347. if (childType === 0 /* NOT_CONSTANT */) {
  4348. constantCache.set(node, 0 /* NOT_CONSTANT */);
  4349. return 0 /* NOT_CONSTANT */;
  4350. }
  4351. if (childType < returnType) {
  4352. returnType = childType;
  4353. }
  4354. }
  4355. // 3. if the type is not already CAN_SKIP_PATCH which is the lowest non-0
  4356. // type, check if any of the props can cause the type to be lowered
  4357. // we can skip can_patch because it's guaranteed by the absence of a
  4358. // patchFlag.
  4359. if (returnType > 1 /* CAN_SKIP_PATCH */) {
  4360. for (let i = 0; i < node.props.length; i++) {
  4361. const p = node.props[i];
  4362. if (p.type === 7 /* DIRECTIVE */ && p.name === 'bind' && p.exp) {
  4363. const expType = getConstantType(p.exp, context);
  4364. if (expType === 0 /* NOT_CONSTANT */) {
  4365. constantCache.set(node, 0 /* NOT_CONSTANT */);
  4366. return 0 /* NOT_CONSTANT */;
  4367. }
  4368. if (expType < returnType) {
  4369. returnType = expType;
  4370. }
  4371. }
  4372. }
  4373. }
  4374. // only svg/foreignObject could be block here, however if they are
  4375. // static then they don't need to be blocks since there will be no
  4376. // nested updates.
  4377. if (codegenNode.isBlock) {
  4378. context.removeHelper(OPEN_BLOCK);
  4379. context.removeHelper(getVNodeBlockHelper(context.inSSR, codegenNode.isComponent));
  4380. codegenNode.isBlock = false;
  4381. context.helper(getVNodeHelper(context.inSSR, codegenNode.isComponent));
  4382. }
  4383. constantCache.set(node, returnType);
  4384. return returnType;
  4385. }
  4386. else {
  4387. constantCache.set(node, 0 /* NOT_CONSTANT */);
  4388. return 0 /* NOT_CONSTANT */;
  4389. }
  4390. case 2 /* TEXT */:
  4391. case 3 /* COMMENT */:
  4392. return 3 /* CAN_STRINGIFY */;
  4393. case 9 /* IF */:
  4394. case 11 /* FOR */:
  4395. case 10 /* IF_BRANCH */:
  4396. return 0 /* NOT_CONSTANT */;
  4397. case 5 /* INTERPOLATION */:
  4398. case 12 /* TEXT_CALL */:
  4399. return getConstantType(node.content, context);
  4400. case 4 /* SIMPLE_EXPRESSION */:
  4401. return node.constType;
  4402. case 8 /* COMPOUND_EXPRESSION */:
  4403. let returnType = 3 /* CAN_STRINGIFY */;
  4404. for (let i = 0; i < node.children.length; i++) {
  4405. const child = node.children[i];
  4406. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isString)(child) || (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isSymbol)(child)) {
  4407. continue;
  4408. }
  4409. const childType = getConstantType(child, context);
  4410. if (childType === 0 /* NOT_CONSTANT */) {
  4411. return 0 /* NOT_CONSTANT */;
  4412. }
  4413. else if (childType < returnType) {
  4414. returnType = childType;
  4415. }
  4416. }
  4417. return returnType;
  4418. default:
  4419. if ((true)) ;
  4420. return 0 /* NOT_CONSTANT */;
  4421. }
  4422. }
  4423. const allowHoistedHelperSet = new Set([
  4424. NORMALIZE_CLASS,
  4425. NORMALIZE_STYLE,
  4426. NORMALIZE_PROPS,
  4427. GUARD_REACTIVE_PROPS
  4428. ]);
  4429. function getConstantTypeOfHelperCall(value, context) {
  4430. if (value.type === 14 /* JS_CALL_EXPRESSION */ &&
  4431. !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isString)(value.callee) &&
  4432. allowHoistedHelperSet.has(value.callee)) {
  4433. const arg = value.arguments[0];
  4434. if (arg.type === 4 /* SIMPLE_EXPRESSION */) {
  4435. return getConstantType(arg, context);
  4436. }
  4437. else if (arg.type === 14 /* JS_CALL_EXPRESSION */) {
  4438. // in the case of nested helper call, e.g. `normalizeProps(guardReactiveProps(exp))`
  4439. return getConstantTypeOfHelperCall(arg, context);
  4440. }
  4441. }
  4442. return 0 /* NOT_CONSTANT */;
  4443. }
  4444. function getGeneratedPropsConstantType(node, context) {
  4445. let returnType = 3 /* CAN_STRINGIFY */;
  4446. const props = getNodeProps(node);
  4447. if (props && props.type === 15 /* JS_OBJECT_EXPRESSION */) {
  4448. const { properties } = props;
  4449. for (let i = 0; i < properties.length; i++) {
  4450. const { key, value } = properties[i];
  4451. const keyType = getConstantType(key, context);
  4452. if (keyType === 0 /* NOT_CONSTANT */) {
  4453. return keyType;
  4454. }
  4455. if (keyType < returnType) {
  4456. returnType = keyType;
  4457. }
  4458. let valueType;
  4459. if (value.type === 4 /* SIMPLE_EXPRESSION */) {
  4460. valueType = getConstantType(value, context);
  4461. }
  4462. else if (value.type === 14 /* JS_CALL_EXPRESSION */) {
  4463. // some helper calls can be hoisted,
  4464. // such as the `normalizeProps` generated by the compiler for pre-normalize class,
  4465. // in this case we need to respect the ConstantType of the helper's arguments
  4466. valueType = getConstantTypeOfHelperCall(value, context);
  4467. }
  4468. else {
  4469. valueType = 0 /* NOT_CONSTANT */;
  4470. }
  4471. if (valueType === 0 /* NOT_CONSTANT */) {
  4472. return valueType;
  4473. }
  4474. if (valueType < returnType) {
  4475. returnType = valueType;
  4476. }
  4477. }
  4478. }
  4479. return returnType;
  4480. }
  4481. function getNodeProps(node) {
  4482. const codegenNode = node.codegenNode;
  4483. if (codegenNode.type === 13 /* VNODE_CALL */) {
  4484. return codegenNode.props;
  4485. }
  4486. }
  4487. function getPatchFlag(node) {
  4488. const flag = node.patchFlag;
  4489. return flag ? parseInt(flag, 10) : undefined;
  4490. }
  4491. function createTransformContext(root, { filename = '', prefixIdentifiers = false, hoistStatic = false, cacheHandlers = false, nodeTransforms = [], directiveTransforms = {}, transformHoist = null, isBuiltInComponent = _vue_shared__WEBPACK_IMPORTED_MODULE_0__.NOOP, isCustomElement = _vue_shared__WEBPACK_IMPORTED_MODULE_0__.NOOP, expressionPlugins = [], scopeId = null, slotted = true, ssr = false, inSSR = false, ssrCssVars = ``, bindingMetadata = _vue_shared__WEBPACK_IMPORTED_MODULE_0__.EMPTY_OBJ, inline = false, isTS = false, onError = defaultOnError, onWarn = defaultOnWarn, compatConfig }) {
  4492. const nameMatch = filename.replace(/\?.*$/, '').match(/([^/\\]+)\.\w+$/);
  4493. const context = {
  4494. // options
  4495. selfName: nameMatch && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.capitalize)((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.camelize)(nameMatch[1])),
  4496. prefixIdentifiers,
  4497. hoistStatic,
  4498. cacheHandlers,
  4499. nodeTransforms,
  4500. directiveTransforms,
  4501. transformHoist,
  4502. isBuiltInComponent,
  4503. isCustomElement,
  4504. expressionPlugins,
  4505. scopeId,
  4506. slotted,
  4507. ssr,
  4508. inSSR,
  4509. ssrCssVars,
  4510. bindingMetadata,
  4511. inline,
  4512. isTS,
  4513. onError,
  4514. onWarn,
  4515. compatConfig,
  4516. // state
  4517. root,
  4518. helpers: new Map(),
  4519. components: new Set(),
  4520. directives: new Set(),
  4521. hoists: [],
  4522. imports: [],
  4523. constantCache: new Map(),
  4524. temps: 0,
  4525. cached: 0,
  4526. identifiers: Object.create(null),
  4527. scopes: {
  4528. vFor: 0,
  4529. vSlot: 0,
  4530. vPre: 0,
  4531. vOnce: 0
  4532. },
  4533. parent: null,
  4534. currentNode: root,
  4535. childIndex: 0,
  4536. inVOnce: false,
  4537. // methods
  4538. helper(name) {
  4539. const count = context.helpers.get(name) || 0;
  4540. context.helpers.set(name, count + 1);
  4541. return name;
  4542. },
  4543. removeHelper(name) {
  4544. const count = context.helpers.get(name);
  4545. if (count) {
  4546. const currentCount = count - 1;
  4547. if (!currentCount) {
  4548. context.helpers.delete(name);
  4549. }
  4550. else {
  4551. context.helpers.set(name, currentCount);
  4552. }
  4553. }
  4554. },
  4555. helperString(name) {
  4556. return `_${helperNameMap[context.helper(name)]}`;
  4557. },
  4558. replaceNode(node) {
  4559. /* istanbul ignore if */
  4560. if ((true)) {
  4561. if (!context.currentNode) {
  4562. throw new Error(`Node being replaced is already removed.`);
  4563. }
  4564. if (!context.parent) {
  4565. throw new Error(`Cannot replace root node.`);
  4566. }
  4567. }
  4568. context.parent.children[context.childIndex] = context.currentNode = node;
  4569. },
  4570. removeNode(node) {
  4571. if (( true) && !context.parent) {
  4572. throw new Error(`Cannot remove root node.`);
  4573. }
  4574. const list = context.parent.children;
  4575. const removalIndex = node
  4576. ? list.indexOf(node)
  4577. : context.currentNode
  4578. ? context.childIndex
  4579. : -1;
  4580. /* istanbul ignore if */
  4581. if (( true) && removalIndex < 0) {
  4582. throw new Error(`node being removed is not a child of current parent`);
  4583. }
  4584. if (!node || node === context.currentNode) {
  4585. // current node removed
  4586. context.currentNode = null;
  4587. context.onNodeRemoved();
  4588. }
  4589. else {
  4590. // sibling node removed
  4591. if (context.childIndex > removalIndex) {
  4592. context.childIndex--;
  4593. context.onNodeRemoved();
  4594. }
  4595. }
  4596. context.parent.children.splice(removalIndex, 1);
  4597. },
  4598. onNodeRemoved: () => { },
  4599. addIdentifiers(exp) {
  4600. },
  4601. removeIdentifiers(exp) {
  4602. },
  4603. hoist(exp) {
  4604. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isString)(exp))
  4605. exp = createSimpleExpression(exp);
  4606. context.hoists.push(exp);
  4607. const identifier = createSimpleExpression(`_hoisted_${context.hoists.length}`, false, exp.loc, 2 /* CAN_HOIST */);
  4608. identifier.hoisted = exp;
  4609. return identifier;
  4610. },
  4611. cache(exp, isVNode = false) {
  4612. return createCacheExpression(context.cached++, exp, isVNode);
  4613. }
  4614. };
  4615. {
  4616. context.filters = new Set();
  4617. }
  4618. return context;
  4619. }
  4620. function transform(root, options) {
  4621. const context = createTransformContext(root, options);
  4622. traverseNode(root, context);
  4623. if (options.hoistStatic) {
  4624. hoistStatic(root, context);
  4625. }
  4626. if (!options.ssr) {
  4627. createRootCodegen(root, context);
  4628. }
  4629. // finalize meta information
  4630. root.helpers = [...context.helpers.keys()];
  4631. root.components = [...context.components];
  4632. root.directives = [...context.directives];
  4633. root.imports = context.imports;
  4634. root.hoists = context.hoists;
  4635. root.temps = context.temps;
  4636. root.cached = context.cached;
  4637. {
  4638. root.filters = [...context.filters];
  4639. }
  4640. }
  4641. function createRootCodegen(root, context) {
  4642. const { helper } = context;
  4643. const { children } = root;
  4644. if (children.length === 1) {
  4645. const child = children[0];
  4646. // if the single child is an element, turn it into a block.
  4647. if (isSingleElementRoot(root, child) && child.codegenNode) {
  4648. // single element root is never hoisted so codegenNode will never be
  4649. // SimpleExpressionNode
  4650. const codegenNode = child.codegenNode;
  4651. if (codegenNode.type === 13 /* VNODE_CALL */) {
  4652. makeBlock(codegenNode, context);
  4653. }
  4654. root.codegenNode = codegenNode;
  4655. }
  4656. else {
  4657. // - single <slot/>, IfNode, ForNode: already blocks.
  4658. // - single text node: always patched.
  4659. // root codegen falls through via genNode()
  4660. root.codegenNode = child;
  4661. }
  4662. }
  4663. else if (children.length > 1) {
  4664. // root has multiple nodes - return a fragment block.
  4665. let patchFlag = 64 /* STABLE_FRAGMENT */;
  4666. let patchFlagText = _vue_shared__WEBPACK_IMPORTED_MODULE_0__.PatchFlagNames[64];
  4667. // check if the fragment actually contains a single valid child with
  4668. // the rest being comments
  4669. if (( true) &&
  4670. children.filter(c => c.type !== 3 /* COMMENT */).length === 1) {
  4671. patchFlag |= 2048 /* DEV_ROOT_FRAGMENT */;
  4672. patchFlagText += `, ${_vue_shared__WEBPACK_IMPORTED_MODULE_0__.PatchFlagNames[2048]}`;
  4673. }
  4674. root.codegenNode = createVNodeCall(context, helper(FRAGMENT), undefined, root.children, patchFlag + (( true) ? ` /* ${patchFlagText} */` : 0), undefined, undefined, true, undefined, false /* isComponent */);
  4675. }
  4676. else ;
  4677. }
  4678. function traverseChildren(parent, context) {
  4679. let i = 0;
  4680. const nodeRemoved = () => {
  4681. i--;
  4682. };
  4683. for (; i < parent.children.length; i++) {
  4684. const child = parent.children[i];
  4685. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isString)(child))
  4686. continue;
  4687. context.parent = parent;
  4688. context.childIndex = i;
  4689. context.onNodeRemoved = nodeRemoved;
  4690. traverseNode(child, context);
  4691. }
  4692. }
  4693. function traverseNode(node, context) {
  4694. context.currentNode = node;
  4695. // apply transform plugins
  4696. const { nodeTransforms } = context;
  4697. const exitFns = [];
  4698. for (let i = 0; i < nodeTransforms.length; i++) {
  4699. const onExit = nodeTransforms[i](node, context);
  4700. if (onExit) {
  4701. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isArray)(onExit)) {
  4702. exitFns.push(...onExit);
  4703. }
  4704. else {
  4705. exitFns.push(onExit);
  4706. }
  4707. }
  4708. if (!context.currentNode) {
  4709. // node was removed
  4710. return;
  4711. }
  4712. else {
  4713. // node may have been replaced
  4714. node = context.currentNode;
  4715. }
  4716. }
  4717. switch (node.type) {
  4718. case 3 /* COMMENT */:
  4719. if (!context.ssr) {
  4720. // inject import for the Comment symbol, which is needed for creating
  4721. // comment nodes with `createVNode`
  4722. context.helper(CREATE_COMMENT);
  4723. }
  4724. break;
  4725. case 5 /* INTERPOLATION */:
  4726. // no need to traverse, but we need to inject toString helper
  4727. if (!context.ssr) {
  4728. context.helper(TO_DISPLAY_STRING);
  4729. }
  4730. break;
  4731. // for container types, further traverse downwards
  4732. case 9 /* IF */:
  4733. for (let i = 0; i < node.branches.length; i++) {
  4734. traverseNode(node.branches[i], context);
  4735. }
  4736. break;
  4737. case 10 /* IF_BRANCH */:
  4738. case 11 /* FOR */:
  4739. case 1 /* ELEMENT */:
  4740. case 0 /* ROOT */:
  4741. traverseChildren(node, context);
  4742. break;
  4743. }
  4744. // exit transforms
  4745. context.currentNode = node;
  4746. let i = exitFns.length;
  4747. while (i--) {
  4748. exitFns[i]();
  4749. }
  4750. }
  4751. function createStructuralDirectiveTransform(name, fn) {
  4752. const matches = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isString)(name)
  4753. ? (n) => n === name
  4754. : (n) => name.test(n);
  4755. return (node, context) => {
  4756. if (node.type === 1 /* ELEMENT */) {
  4757. const { props } = node;
  4758. // structural directive transforms are not concerned with slots
  4759. // as they are handled separately in vSlot.ts
  4760. if (node.tagType === 3 /* TEMPLATE */ && props.some(isVSlot)) {
  4761. return;
  4762. }
  4763. const exitFns = [];
  4764. for (let i = 0; i < props.length; i++) {
  4765. const prop = props[i];
  4766. if (prop.type === 7 /* DIRECTIVE */ && matches(prop.name)) {
  4767. // structural directives are removed to avoid infinite recursion
  4768. // also we remove them *before* applying so that it can further
  4769. // traverse itself in case it moves the node around
  4770. props.splice(i, 1);
  4771. i--;
  4772. const onExit = fn(node, prop, context);
  4773. if (onExit)
  4774. exitFns.push(onExit);
  4775. }
  4776. }
  4777. return exitFns;
  4778. }
  4779. };
  4780. }
  4781. const PURE_ANNOTATION = `/*#__PURE__*/`;
  4782. function createCodegenContext(ast, { mode = 'function', prefixIdentifiers = mode === 'module', sourceMap = false, filename = `template.vue.html`, scopeId = null, optimizeImports = false, runtimeGlobalName = `Vue`, runtimeModuleName = `vue`, ssrRuntimeModuleName = 'vue/server-renderer', ssr = false, isTS = false, inSSR = false }) {
  4783. const context = {
  4784. mode,
  4785. prefixIdentifiers,
  4786. sourceMap,
  4787. filename,
  4788. scopeId,
  4789. optimizeImports,
  4790. runtimeGlobalName,
  4791. runtimeModuleName,
  4792. ssrRuntimeModuleName,
  4793. ssr,
  4794. isTS,
  4795. inSSR,
  4796. source: ast.loc.source,
  4797. code: ``,
  4798. column: 1,
  4799. line: 1,
  4800. offset: 0,
  4801. indentLevel: 0,
  4802. pure: false,
  4803. map: undefined,
  4804. helper(key) {
  4805. return `_${helperNameMap[key]}`;
  4806. },
  4807. push(code, node) {
  4808. context.code += code;
  4809. },
  4810. indent() {
  4811. newline(++context.indentLevel);
  4812. },
  4813. deindent(withoutNewLine = false) {
  4814. if (withoutNewLine) {
  4815. --context.indentLevel;
  4816. }
  4817. else {
  4818. newline(--context.indentLevel);
  4819. }
  4820. },
  4821. newline() {
  4822. newline(context.indentLevel);
  4823. }
  4824. };
  4825. function newline(n) {
  4826. context.push('\n' + ` `.repeat(n));
  4827. }
  4828. return context;
  4829. }
  4830. function generate(ast, options = {}) {
  4831. const context = createCodegenContext(ast, options);
  4832. if (options.onContextCreated)
  4833. options.onContextCreated(context);
  4834. const { mode, push, prefixIdentifiers, indent, deindent, newline, scopeId, ssr } = context;
  4835. const hasHelpers = ast.helpers.length > 0;
  4836. const useWithBlock = !prefixIdentifiers && mode !== 'module';
  4837. // preambles
  4838. // in setup() inline mode, the preamble is generated in a sub context
  4839. // and returned separately.
  4840. const preambleContext = context;
  4841. {
  4842. genFunctionPreamble(ast, preambleContext);
  4843. }
  4844. // enter render function
  4845. const functionName = ssr ? `ssrRender` : `render`;
  4846. const args = ssr ? ['_ctx', '_push', '_parent', '_attrs'] : ['_ctx', '_cache'];
  4847. const signature = args.join(', ');
  4848. {
  4849. push(`function ${functionName}(${signature}) {`);
  4850. }
  4851. indent();
  4852. if (useWithBlock) {
  4853. push(`with (_ctx) {`);
  4854. indent();
  4855. // function mode const declarations should be inside with block
  4856. // also they should be renamed to avoid collision with user properties
  4857. if (hasHelpers) {
  4858. push(`const { ${ast.helpers
  4859. .map(s => `${helperNameMap[s]}: _${helperNameMap[s]}`)
  4860. .join(', ')} } = _Vue`);
  4861. push(`\n`);
  4862. newline();
  4863. }
  4864. }
  4865. // generate asset resolution statements
  4866. if (ast.components.length) {
  4867. genAssets(ast.components, 'component', context);
  4868. if (ast.directives.length || ast.temps > 0) {
  4869. newline();
  4870. }
  4871. }
  4872. if (ast.directives.length) {
  4873. genAssets(ast.directives, 'directive', context);
  4874. if (ast.temps > 0) {
  4875. newline();
  4876. }
  4877. }
  4878. if (ast.filters && ast.filters.length) {
  4879. newline();
  4880. genAssets(ast.filters, 'filter', context);
  4881. newline();
  4882. }
  4883. if (ast.temps > 0) {
  4884. push(`let `);
  4885. for (let i = 0; i < ast.temps; i++) {
  4886. push(`${i > 0 ? `, ` : ``}_temp${i}`);
  4887. }
  4888. }
  4889. if (ast.components.length || ast.directives.length || ast.temps) {
  4890. push(`\n`);
  4891. newline();
  4892. }
  4893. // generate the VNode tree expression
  4894. if (!ssr) {
  4895. push(`return `);
  4896. }
  4897. if (ast.codegenNode) {
  4898. genNode(ast.codegenNode, context);
  4899. }
  4900. else {
  4901. push(`null`);
  4902. }
  4903. if (useWithBlock) {
  4904. deindent();
  4905. push(`}`);
  4906. }
  4907. deindent();
  4908. push(`}`);
  4909. return {
  4910. ast,
  4911. code: context.code,
  4912. preamble: ``,
  4913. // SourceMapGenerator does have toJSON() method but it's not in the types
  4914. map: context.map ? context.map.toJSON() : undefined
  4915. };
  4916. }
  4917. function genFunctionPreamble(ast, context) {
  4918. const { ssr, prefixIdentifiers, push, newline, runtimeModuleName, runtimeGlobalName, ssrRuntimeModuleName } = context;
  4919. const VueBinding = runtimeGlobalName;
  4920. const aliasHelper = (s) => `${helperNameMap[s]}: _${helperNameMap[s]}`;
  4921. // Generate const declaration for helpers
  4922. // In prefix mode, we place the const declaration at top so it's done
  4923. // only once; But if we not prefixing, we place the declaration inside the
  4924. // with block so it doesn't incur the `in` check cost for every helper access.
  4925. if (ast.helpers.length > 0) {
  4926. {
  4927. // "with" mode.
  4928. // save Vue in a separate variable to avoid collision
  4929. push(`const _Vue = ${VueBinding}\n`);
  4930. // in "with" mode, helpers are declared inside the with block to avoid
  4931. // has check cost, but hoists are lifted out of the function - we need
  4932. // to provide the helper here.
  4933. if (ast.hoists.length) {
  4934. const staticHelpers = [
  4935. CREATE_VNODE,
  4936. CREATE_ELEMENT_VNODE,
  4937. CREATE_COMMENT,
  4938. CREATE_TEXT,
  4939. CREATE_STATIC
  4940. ]
  4941. .filter(helper => ast.helpers.includes(helper))
  4942. .map(aliasHelper)
  4943. .join(', ');
  4944. push(`const { ${staticHelpers} } = _Vue\n`);
  4945. }
  4946. }
  4947. }
  4948. genHoists(ast.hoists, context);
  4949. newline();
  4950. push(`return `);
  4951. }
  4952. function genAssets(assets, type, { helper, push, newline, isTS }) {
  4953. const resolver = helper(type === 'filter'
  4954. ? RESOLVE_FILTER
  4955. : type === 'component'
  4956. ? RESOLVE_COMPONENT
  4957. : RESOLVE_DIRECTIVE);
  4958. for (let i = 0; i < assets.length; i++) {
  4959. let id = assets[i];
  4960. // potential component implicit self-reference inferred from SFC filename
  4961. const maybeSelfReference = id.endsWith('__self');
  4962. if (maybeSelfReference) {
  4963. id = id.slice(0, -6);
  4964. }
  4965. push(`const ${toValidAssetId(id, type)} = ${resolver}(${JSON.stringify(id)}${maybeSelfReference ? `, true` : ``})${isTS ? `!` : ``}`);
  4966. if (i < assets.length - 1) {
  4967. newline();
  4968. }
  4969. }
  4970. }
  4971. function genHoists(hoists, context) {
  4972. if (!hoists.length) {
  4973. return;
  4974. }
  4975. context.pure = true;
  4976. const { push, newline, helper, scopeId, mode } = context;
  4977. newline();
  4978. for (let i = 0; i < hoists.length; i++) {
  4979. const exp = hoists[i];
  4980. if (exp) {
  4981. push(`const _hoisted_${i + 1} = ${``}`);
  4982. genNode(exp, context);
  4983. newline();
  4984. }
  4985. }
  4986. context.pure = false;
  4987. }
  4988. function isText$1(n) {
  4989. return ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isString)(n) ||
  4990. n.type === 4 /* SIMPLE_EXPRESSION */ ||
  4991. n.type === 2 /* TEXT */ ||
  4992. n.type === 5 /* INTERPOLATION */ ||
  4993. n.type === 8 /* COMPOUND_EXPRESSION */);
  4994. }
  4995. function genNodeListAsArray(nodes, context) {
  4996. const multilines = nodes.length > 3 ||
  4997. ((( true)) && nodes.some(n => (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isArray)(n) || !isText$1(n)));
  4998. context.push(`[`);
  4999. multilines && context.indent();
  5000. genNodeList(nodes, context, multilines);
  5001. multilines && context.deindent();
  5002. context.push(`]`);
  5003. }
  5004. function genNodeList(nodes, context, multilines = false, comma = true) {
  5005. const { push, newline } = context;
  5006. for (let i = 0; i < nodes.length; i++) {
  5007. const node = nodes[i];
  5008. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isString)(node)) {
  5009. push(node);
  5010. }
  5011. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isArray)(node)) {
  5012. genNodeListAsArray(node, context);
  5013. }
  5014. else {
  5015. genNode(node, context);
  5016. }
  5017. if (i < nodes.length - 1) {
  5018. if (multilines) {
  5019. comma && push(',');
  5020. newline();
  5021. }
  5022. else {
  5023. comma && push(', ');
  5024. }
  5025. }
  5026. }
  5027. }
  5028. function genNode(node, context) {
  5029. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isString)(node)) {
  5030. context.push(node);
  5031. return;
  5032. }
  5033. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isSymbol)(node)) {
  5034. context.push(context.helper(node));
  5035. return;
  5036. }
  5037. switch (node.type) {
  5038. case 1 /* ELEMENT */:
  5039. case 9 /* IF */:
  5040. case 11 /* FOR */:
  5041. ( true) &&
  5042. assert(node.codegenNode != null, `Codegen node is missing for element/if/for node. ` +
  5043. `Apply appropriate transforms first.`);
  5044. genNode(node.codegenNode, context);
  5045. break;
  5046. case 2 /* TEXT */:
  5047. genText(node, context);
  5048. break;
  5049. case 4 /* SIMPLE_EXPRESSION */:
  5050. genExpression(node, context);
  5051. break;
  5052. case 5 /* INTERPOLATION */:
  5053. genInterpolation(node, context);
  5054. break;
  5055. case 12 /* TEXT_CALL */:
  5056. genNode(node.codegenNode, context);
  5057. break;
  5058. case 8 /* COMPOUND_EXPRESSION */:
  5059. genCompoundExpression(node, context);
  5060. break;
  5061. case 3 /* COMMENT */:
  5062. genComment(node, context);
  5063. break;
  5064. case 13 /* VNODE_CALL */:
  5065. genVNodeCall(node, context);
  5066. break;
  5067. case 14 /* JS_CALL_EXPRESSION */:
  5068. genCallExpression(node, context);
  5069. break;
  5070. case 15 /* JS_OBJECT_EXPRESSION */:
  5071. genObjectExpression(node, context);
  5072. break;
  5073. case 17 /* JS_ARRAY_EXPRESSION */:
  5074. genArrayExpression(node, context);
  5075. break;
  5076. case 18 /* JS_FUNCTION_EXPRESSION */:
  5077. genFunctionExpression(node, context);
  5078. break;
  5079. case 19 /* JS_CONDITIONAL_EXPRESSION */:
  5080. genConditionalExpression(node, context);
  5081. break;
  5082. case 20 /* JS_CACHE_EXPRESSION */:
  5083. genCacheExpression(node, context);
  5084. break;
  5085. case 21 /* JS_BLOCK_STATEMENT */:
  5086. genNodeList(node.body, context, true, false);
  5087. break;
  5088. // SSR only types
  5089. case 22 /* JS_TEMPLATE_LITERAL */:
  5090. break;
  5091. case 23 /* JS_IF_STATEMENT */:
  5092. break;
  5093. case 24 /* JS_ASSIGNMENT_EXPRESSION */:
  5094. break;
  5095. case 25 /* JS_SEQUENCE_EXPRESSION */:
  5096. break;
  5097. case 26 /* JS_RETURN_STATEMENT */:
  5098. break;
  5099. /* istanbul ignore next */
  5100. case 10 /* IF_BRANCH */:
  5101. // noop
  5102. break;
  5103. default:
  5104. if ((true)) {
  5105. assert(false, `unhandled codegen node type: ${node.type}`);
  5106. // make sure we exhaust all possible types
  5107. const exhaustiveCheck = node;
  5108. return exhaustiveCheck;
  5109. }
  5110. }
  5111. }
  5112. function genText(node, context) {
  5113. context.push(JSON.stringify(node.content), node);
  5114. }
  5115. function genExpression(node, context) {
  5116. const { content, isStatic } = node;
  5117. context.push(isStatic ? JSON.stringify(content) : content, node);
  5118. }
  5119. function genInterpolation(node, context) {
  5120. const { push, helper, pure } = context;
  5121. if (pure)
  5122. push(PURE_ANNOTATION);
  5123. push(`${helper(TO_DISPLAY_STRING)}(`);
  5124. genNode(node.content, context);
  5125. push(`)`);
  5126. }
  5127. function genCompoundExpression(node, context) {
  5128. for (let i = 0; i < node.children.length; i++) {
  5129. const child = node.children[i];
  5130. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isString)(child)) {
  5131. context.push(child);
  5132. }
  5133. else {
  5134. genNode(child, context);
  5135. }
  5136. }
  5137. }
  5138. function genExpressionAsPropertyKey(node, context) {
  5139. const { push } = context;
  5140. if (node.type === 8 /* COMPOUND_EXPRESSION */) {
  5141. push(`[`);
  5142. genCompoundExpression(node, context);
  5143. push(`]`);
  5144. }
  5145. else if (node.isStatic) {
  5146. // only quote keys if necessary
  5147. const text = isSimpleIdentifier(node.content)
  5148. ? node.content
  5149. : JSON.stringify(node.content);
  5150. push(text, node);
  5151. }
  5152. else {
  5153. push(`[${node.content}]`, node);
  5154. }
  5155. }
  5156. function genComment(node, context) {
  5157. const { push, helper, pure } = context;
  5158. if (pure) {
  5159. push(PURE_ANNOTATION);
  5160. }
  5161. push(`${helper(CREATE_COMMENT)}(${JSON.stringify(node.content)})`, node);
  5162. }
  5163. function genVNodeCall(node, context) {
  5164. const { push, helper, pure } = context;
  5165. const { tag, props, children, patchFlag, dynamicProps, directives, isBlock, disableTracking, isComponent } = node;
  5166. if (directives) {
  5167. push(helper(WITH_DIRECTIVES) + `(`);
  5168. }
  5169. if (isBlock) {
  5170. push(`(${helper(OPEN_BLOCK)}(${disableTracking ? `true` : ``}), `);
  5171. }
  5172. if (pure) {
  5173. push(PURE_ANNOTATION);
  5174. }
  5175. const callHelper = isBlock
  5176. ? getVNodeBlockHelper(context.inSSR, isComponent)
  5177. : getVNodeHelper(context.inSSR, isComponent);
  5178. push(helper(callHelper) + `(`, node);
  5179. genNodeList(genNullableArgs([tag, props, children, patchFlag, dynamicProps]), context);
  5180. push(`)`);
  5181. if (isBlock) {
  5182. push(`)`);
  5183. }
  5184. if (directives) {
  5185. push(`, `);
  5186. genNode(directives, context);
  5187. push(`)`);
  5188. }
  5189. }
  5190. function genNullableArgs(args) {
  5191. let i = args.length;
  5192. while (i--) {
  5193. if (args[i] != null)
  5194. break;
  5195. }
  5196. return args.slice(0, i + 1).map(arg => arg || `null`);
  5197. }
  5198. // JavaScript
  5199. function genCallExpression(node, context) {
  5200. const { push, helper, pure } = context;
  5201. const callee = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isString)(node.callee) ? node.callee : helper(node.callee);
  5202. if (pure) {
  5203. push(PURE_ANNOTATION);
  5204. }
  5205. push(callee + `(`, node);
  5206. genNodeList(node.arguments, context);
  5207. push(`)`);
  5208. }
  5209. function genObjectExpression(node, context) {
  5210. const { push, indent, deindent, newline } = context;
  5211. const { properties } = node;
  5212. if (!properties.length) {
  5213. push(`{}`, node);
  5214. return;
  5215. }
  5216. const multilines = properties.length > 1 ||
  5217. ((( true)) &&
  5218. properties.some(p => p.value.type !== 4 /* SIMPLE_EXPRESSION */));
  5219. push(multilines ? `{` : `{ `);
  5220. multilines && indent();
  5221. for (let i = 0; i < properties.length; i++) {
  5222. const { key, value } = properties[i];
  5223. // key
  5224. genExpressionAsPropertyKey(key, context);
  5225. push(`: `);
  5226. // value
  5227. genNode(value, context);
  5228. if (i < properties.length - 1) {
  5229. // will only reach this if it's multilines
  5230. push(`,`);
  5231. newline();
  5232. }
  5233. }
  5234. multilines && deindent();
  5235. push(multilines ? `}` : ` }`);
  5236. }
  5237. function genArrayExpression(node, context) {
  5238. genNodeListAsArray(node.elements, context);
  5239. }
  5240. function genFunctionExpression(node, context) {
  5241. const { push, indent, deindent } = context;
  5242. const { params, returns, body, newline, isSlot } = node;
  5243. if (isSlot) {
  5244. // wrap slot functions with owner context
  5245. push(`_${helperNameMap[WITH_CTX]}(`);
  5246. }
  5247. push(`(`, node);
  5248. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isArray)(params)) {
  5249. genNodeList(params, context);
  5250. }
  5251. else if (params) {
  5252. genNode(params, context);
  5253. }
  5254. push(`) => `);
  5255. if (newline || body) {
  5256. push(`{`);
  5257. indent();
  5258. }
  5259. if (returns) {
  5260. if (newline) {
  5261. push(`return `);
  5262. }
  5263. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isArray)(returns)) {
  5264. genNodeListAsArray(returns, context);
  5265. }
  5266. else {
  5267. genNode(returns, context);
  5268. }
  5269. }
  5270. else if (body) {
  5271. genNode(body, context);
  5272. }
  5273. if (newline || body) {
  5274. deindent();
  5275. push(`}`);
  5276. }
  5277. if (isSlot) {
  5278. if (node.isNonScopedSlot) {
  5279. push(`, undefined, true`);
  5280. }
  5281. push(`)`);
  5282. }
  5283. }
  5284. function genConditionalExpression(node, context) {
  5285. const { test, consequent, alternate, newline: needNewline } = node;
  5286. const { push, indent, deindent, newline } = context;
  5287. if (test.type === 4 /* SIMPLE_EXPRESSION */) {
  5288. const needsParens = !isSimpleIdentifier(test.content);
  5289. needsParens && push(`(`);
  5290. genExpression(test, context);
  5291. needsParens && push(`)`);
  5292. }
  5293. else {
  5294. push(`(`);
  5295. genNode(test, context);
  5296. push(`)`);
  5297. }
  5298. needNewline && indent();
  5299. context.indentLevel++;
  5300. needNewline || push(` `);
  5301. push(`? `);
  5302. genNode(consequent, context);
  5303. context.indentLevel--;
  5304. needNewline && newline();
  5305. needNewline || push(` `);
  5306. push(`: `);
  5307. const isNested = alternate.type === 19 /* JS_CONDITIONAL_EXPRESSION */;
  5308. if (!isNested) {
  5309. context.indentLevel++;
  5310. }
  5311. genNode(alternate, context);
  5312. if (!isNested) {
  5313. context.indentLevel--;
  5314. }
  5315. needNewline && deindent(true /* without newline */);
  5316. }
  5317. function genCacheExpression(node, context) {
  5318. const { push, helper, indent, deindent, newline } = context;
  5319. push(`_cache[${node.index}] || (`);
  5320. if (node.isVNode) {
  5321. indent();
  5322. push(`${helper(SET_BLOCK_TRACKING)}(-1),`);
  5323. newline();
  5324. }
  5325. push(`_cache[${node.index}] = `);
  5326. genNode(node.value, context);
  5327. if (node.isVNode) {
  5328. push(`,`);
  5329. newline();
  5330. push(`${helper(SET_BLOCK_TRACKING)}(1),`);
  5331. newline();
  5332. push(`_cache[${node.index}]`);
  5333. deindent();
  5334. }
  5335. push(`)`);
  5336. }
  5337. function walkIdentifiers(root, onIdentifier, includeAll = false, parentStack = [], knownIds = Object.create(null)) {
  5338. {
  5339. return;
  5340. }
  5341. }
  5342. function isReferencedIdentifier(id, parent, parentStack) {
  5343. {
  5344. return false;
  5345. }
  5346. }
  5347. function isInDestructureAssignment(parent, parentStack) {
  5348. if (parent &&
  5349. (parent.type === 'ObjectProperty' || parent.type === 'ArrayPattern')) {
  5350. let i = parentStack.length;
  5351. while (i--) {
  5352. const p = parentStack[i];
  5353. if (p.type === 'AssignmentExpression') {
  5354. return true;
  5355. }
  5356. else if (p.type !== 'ObjectProperty' && !p.type.endsWith('Pattern')) {
  5357. break;
  5358. }
  5359. }
  5360. }
  5361. return false;
  5362. }
  5363. function walkFunctionParams(node, onIdent) {
  5364. for (const p of node.params) {
  5365. for (const id of extractIdentifiers(p)) {
  5366. onIdent(id);
  5367. }
  5368. }
  5369. }
  5370. function walkBlockDeclarations(block, onIdent) {
  5371. for (const stmt of block.body) {
  5372. if (stmt.type === 'VariableDeclaration') {
  5373. if (stmt.declare)
  5374. continue;
  5375. for (const decl of stmt.declarations) {
  5376. for (const id of extractIdentifiers(decl.id)) {
  5377. onIdent(id);
  5378. }
  5379. }
  5380. }
  5381. else if (stmt.type === 'FunctionDeclaration' ||
  5382. stmt.type === 'ClassDeclaration') {
  5383. if (stmt.declare || !stmt.id)
  5384. continue;
  5385. onIdent(stmt.id);
  5386. }
  5387. }
  5388. }
  5389. function extractIdentifiers(param, nodes = []) {
  5390. switch (param.type) {
  5391. case 'Identifier':
  5392. nodes.push(param);
  5393. break;
  5394. case 'MemberExpression':
  5395. let object = param;
  5396. while (object.type === 'MemberExpression') {
  5397. object = object.object;
  5398. }
  5399. nodes.push(object);
  5400. break;
  5401. case 'ObjectPattern':
  5402. for (const prop of param.properties) {
  5403. if (prop.type === 'RestElement') {
  5404. extractIdentifiers(prop.argument, nodes);
  5405. }
  5406. else {
  5407. extractIdentifiers(prop.value, nodes);
  5408. }
  5409. }
  5410. break;
  5411. case 'ArrayPattern':
  5412. param.elements.forEach(element => {
  5413. if (element)
  5414. extractIdentifiers(element, nodes);
  5415. });
  5416. break;
  5417. case 'RestElement':
  5418. extractIdentifiers(param.argument, nodes);
  5419. break;
  5420. case 'AssignmentPattern':
  5421. extractIdentifiers(param.left, nodes);
  5422. break;
  5423. }
  5424. return nodes;
  5425. }
  5426. const isFunctionType = (node) => {
  5427. return /Function(?:Expression|Declaration)$|Method$/.test(node.type);
  5428. };
  5429. const isStaticProperty = (node) => node &&
  5430. (node.type === 'ObjectProperty' || node.type === 'ObjectMethod') &&
  5431. !node.computed;
  5432. const isStaticPropertyKey = (node, parent) => isStaticProperty(parent) && parent.key === node;
  5433. // these keywords should not appear inside expressions, but operators like
  5434. // typeof, instanceof and in are allowed
  5435. const prohibitedKeywordRE = new RegExp('\\b' +
  5436. ('do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,' +
  5437. 'super,throw,while,yield,delete,export,import,return,switch,default,' +
  5438. 'extends,finally,continue,debugger,function,arguments,typeof,void')
  5439. .split(',')
  5440. .join('\\b|\\b') +
  5441. '\\b');
  5442. // strip strings in expressions
  5443. const stripStringRE = /'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`(?:[^`\\]|\\.)*\$\{|\}(?:[^`\\]|\\.)*`|`(?:[^`\\]|\\.)*`/g;
  5444. /**
  5445. * Validate a non-prefixed expression.
  5446. * This is only called when using the in-browser runtime compiler since it
  5447. * doesn't prefix expressions.
  5448. */
  5449. function validateBrowserExpression(node, context, asParams = false, asRawStatements = false) {
  5450. const exp = node.content;
  5451. // empty expressions are validated per-directive since some directives
  5452. // do allow empty expressions.
  5453. if (!exp.trim()) {
  5454. return;
  5455. }
  5456. try {
  5457. new Function(asRawStatements
  5458. ? ` ${exp} `
  5459. : `return ${asParams ? `(${exp}) => {}` : `(${exp})`}`);
  5460. }
  5461. catch (e) {
  5462. let message = e.message;
  5463. const keywordMatch = exp
  5464. .replace(stripStringRE, '')
  5465. .match(prohibitedKeywordRE);
  5466. if (keywordMatch) {
  5467. message = `avoid using JavaScript keyword as property name: "${keywordMatch[0]}"`;
  5468. }
  5469. context.onError(createCompilerError(44 /* X_INVALID_EXPRESSION */, node.loc, undefined, message));
  5470. }
  5471. }
  5472. const transformExpression = (node, context) => {
  5473. if (node.type === 5 /* INTERPOLATION */) {
  5474. node.content = processExpression(node.content, context);
  5475. }
  5476. else if (node.type === 1 /* ELEMENT */) {
  5477. // handle directives on element
  5478. for (let i = 0; i < node.props.length; i++) {
  5479. const dir = node.props[i];
  5480. // do not process for v-on & v-for since they are special handled
  5481. if (dir.type === 7 /* DIRECTIVE */ && dir.name !== 'for') {
  5482. const exp = dir.exp;
  5483. const arg = dir.arg;
  5484. // do not process exp if this is v-on:arg - we need special handling
  5485. // for wrapping inline statements.
  5486. if (exp &&
  5487. exp.type === 4 /* SIMPLE_EXPRESSION */ &&
  5488. !(dir.name === 'on' && arg)) {
  5489. dir.exp = processExpression(exp, context,
  5490. // slot args must be processed as function params
  5491. dir.name === 'slot');
  5492. }
  5493. if (arg && arg.type === 4 /* SIMPLE_EXPRESSION */ && !arg.isStatic) {
  5494. dir.arg = processExpression(arg, context);
  5495. }
  5496. }
  5497. }
  5498. }
  5499. };
  5500. // Important: since this function uses Node.js only dependencies, it should
  5501. // always be used with a leading !true check so that it can be
  5502. // tree-shaken from the browser build.
  5503. function processExpression(node, context,
  5504. // some expressions like v-slot props & v-for aliases should be parsed as
  5505. // function params
  5506. asParams = false,
  5507. // v-on handler values may contain multiple statements
  5508. asRawStatements = false, localVars = Object.create(context.identifiers)) {
  5509. {
  5510. if ((true)) {
  5511. // simple in-browser validation (same logic in 2.x)
  5512. validateBrowserExpression(node, context, asParams, asRawStatements);
  5513. }
  5514. return node;
  5515. }
  5516. }
  5517. const transformIf = createStructuralDirectiveTransform(/^(if|else|else-if)$/, (node, dir, context) => {
  5518. return processIf(node, dir, context, (ifNode, branch, isRoot) => {
  5519. // #1587: We need to dynamically increment the key based on the current
  5520. // node's sibling nodes, since chained v-if/else branches are
  5521. // rendered at the same depth
  5522. const siblings = context.parent.children;
  5523. let i = siblings.indexOf(ifNode);
  5524. let key = 0;
  5525. while (i-- >= 0) {
  5526. const sibling = siblings[i];
  5527. if (sibling && sibling.type === 9 /* IF */) {
  5528. key += sibling.branches.length;
  5529. }
  5530. }
  5531. // Exit callback. Complete the codegenNode when all children have been
  5532. // transformed.
  5533. return () => {
  5534. if (isRoot) {
  5535. ifNode.codegenNode = createCodegenNodeForBranch(branch, key, context);
  5536. }
  5537. else {
  5538. // attach this branch's codegen node to the v-if root.
  5539. const parentCondition = getParentCondition(ifNode.codegenNode);
  5540. parentCondition.alternate = createCodegenNodeForBranch(branch, key + ifNode.branches.length - 1, context);
  5541. }
  5542. };
  5543. });
  5544. });
  5545. // target-agnostic transform used for both Client and SSR
  5546. function processIf(node, dir, context, processCodegen) {
  5547. if (dir.name !== 'else' &&
  5548. (!dir.exp || !dir.exp.content.trim())) {
  5549. const loc = dir.exp ? dir.exp.loc : node.loc;
  5550. context.onError(createCompilerError(28 /* X_V_IF_NO_EXPRESSION */, dir.loc));
  5551. dir.exp = createSimpleExpression(`true`, false, loc);
  5552. }
  5553. if ( true && dir.exp) {
  5554. validateBrowserExpression(dir.exp, context);
  5555. }
  5556. if (dir.name === 'if') {
  5557. const branch = createIfBranch(node, dir);
  5558. const ifNode = {
  5559. type: 9 /* IF */,
  5560. loc: node.loc,
  5561. branches: [branch]
  5562. };
  5563. context.replaceNode(ifNode);
  5564. if (processCodegen) {
  5565. return processCodegen(ifNode, branch, true);
  5566. }
  5567. }
  5568. else {
  5569. // locate the adjacent v-if
  5570. const siblings = context.parent.children;
  5571. const comments = [];
  5572. let i = siblings.indexOf(node);
  5573. while (i-- >= -1) {
  5574. const sibling = siblings[i];
  5575. if (( true) && sibling && sibling.type === 3 /* COMMENT */) {
  5576. context.removeNode(sibling);
  5577. comments.unshift(sibling);
  5578. continue;
  5579. }
  5580. if (sibling &&
  5581. sibling.type === 2 /* TEXT */ &&
  5582. !sibling.content.trim().length) {
  5583. context.removeNode(sibling);
  5584. continue;
  5585. }
  5586. if (sibling && sibling.type === 9 /* IF */) {
  5587. // Check if v-else was followed by v-else-if
  5588. if (dir.name === 'else-if' &&
  5589. sibling.branches[sibling.branches.length - 1].condition === undefined) {
  5590. context.onError(createCompilerError(30 /* X_V_ELSE_NO_ADJACENT_IF */, node.loc));
  5591. }
  5592. // move the node to the if node's branches
  5593. context.removeNode();
  5594. const branch = createIfBranch(node, dir);
  5595. if (( true) &&
  5596. comments.length &&
  5597. // #3619 ignore comments if the v-if is direct child of <transition>
  5598. !(context.parent &&
  5599. context.parent.type === 1 /* ELEMENT */ &&
  5600. isBuiltInType(context.parent.tag, 'transition'))) {
  5601. branch.children = [...comments, ...branch.children];
  5602. }
  5603. // check if user is forcing same key on different branches
  5604. if (true) {
  5605. const key = branch.userKey;
  5606. if (key) {
  5607. sibling.branches.forEach(({ userKey }) => {
  5608. if (isSameKey(userKey, key)) {
  5609. context.onError(createCompilerError(29 /* X_V_IF_SAME_KEY */, branch.userKey.loc));
  5610. }
  5611. });
  5612. }
  5613. }
  5614. sibling.branches.push(branch);
  5615. const onExit = processCodegen && processCodegen(sibling, branch, false);
  5616. // since the branch was removed, it will not be traversed.
  5617. // make sure to traverse here.
  5618. traverseNode(branch, context);
  5619. // call on exit
  5620. if (onExit)
  5621. onExit();
  5622. // make sure to reset currentNode after traversal to indicate this
  5623. // node has been removed.
  5624. context.currentNode = null;
  5625. }
  5626. else {
  5627. context.onError(createCompilerError(30 /* X_V_ELSE_NO_ADJACENT_IF */, node.loc));
  5628. }
  5629. break;
  5630. }
  5631. }
  5632. }
  5633. function createIfBranch(node, dir) {
  5634. return {
  5635. type: 10 /* IF_BRANCH */,
  5636. loc: node.loc,
  5637. condition: dir.name === 'else' ? undefined : dir.exp,
  5638. children: node.tagType === 3 /* TEMPLATE */ && !findDir(node, 'for')
  5639. ? node.children
  5640. : [node],
  5641. userKey: findProp(node, `key`)
  5642. };
  5643. }
  5644. function createCodegenNodeForBranch(branch, keyIndex, context) {
  5645. if (branch.condition) {
  5646. return createConditionalExpression(branch.condition, createChildrenCodegenNode(branch, keyIndex, context),
  5647. // make sure to pass in asBlock: true so that the comment node call
  5648. // closes the current block.
  5649. createCallExpression(context.helper(CREATE_COMMENT), [
  5650. ( true) ? '"v-if"' : 0,
  5651. 'true'
  5652. ]));
  5653. }
  5654. else {
  5655. return createChildrenCodegenNode(branch, keyIndex, context);
  5656. }
  5657. }
  5658. function createChildrenCodegenNode(branch, keyIndex, context) {
  5659. const { helper } = context;
  5660. const keyProperty = createObjectProperty(`key`, createSimpleExpression(`${keyIndex}`, false, locStub, 2 /* CAN_HOIST */));
  5661. const { children } = branch;
  5662. const firstChild = children[0];
  5663. const needFragmentWrapper = children.length !== 1 || firstChild.type !== 1 /* ELEMENT */;
  5664. if (needFragmentWrapper) {
  5665. if (children.length === 1 && firstChild.type === 11 /* FOR */) {
  5666. // optimize away nested fragments when child is a ForNode
  5667. const vnodeCall = firstChild.codegenNode;
  5668. injectProp(vnodeCall, keyProperty, context);
  5669. return vnodeCall;
  5670. }
  5671. else {
  5672. let patchFlag = 64 /* STABLE_FRAGMENT */;
  5673. let patchFlagText = _vue_shared__WEBPACK_IMPORTED_MODULE_0__.PatchFlagNames[64];
  5674. // check if the fragment actually contains a single valid child with
  5675. // the rest being comments
  5676. if (( true) &&
  5677. children.filter(c => c.type !== 3 /* COMMENT */).length === 1) {
  5678. patchFlag |= 2048 /* DEV_ROOT_FRAGMENT */;
  5679. patchFlagText += `, ${_vue_shared__WEBPACK_IMPORTED_MODULE_0__.PatchFlagNames[2048]}`;
  5680. }
  5681. return createVNodeCall(context, helper(FRAGMENT), createObjectExpression([keyProperty]), children, patchFlag + (( true) ? ` /* ${patchFlagText} */` : 0), undefined, undefined, true, false, false /* isComponent */, branch.loc);
  5682. }
  5683. }
  5684. else {
  5685. const ret = firstChild.codegenNode;
  5686. const vnodeCall = getMemoedVNodeCall(ret);
  5687. // Change createVNode to createBlock.
  5688. if (vnodeCall.type === 13 /* VNODE_CALL */) {
  5689. makeBlock(vnodeCall, context);
  5690. }
  5691. // inject branch key
  5692. injectProp(vnodeCall, keyProperty, context);
  5693. return ret;
  5694. }
  5695. }
  5696. function isSameKey(a, b) {
  5697. if (!a || a.type !== b.type) {
  5698. return false;
  5699. }
  5700. if (a.type === 6 /* ATTRIBUTE */) {
  5701. if (a.value.content !== b.value.content) {
  5702. return false;
  5703. }
  5704. }
  5705. else {
  5706. // directive
  5707. const exp = a.exp;
  5708. const branchExp = b.exp;
  5709. if (exp.type !== branchExp.type) {
  5710. return false;
  5711. }
  5712. if (exp.type !== 4 /* SIMPLE_EXPRESSION */ ||
  5713. exp.isStatic !== branchExp.isStatic ||
  5714. exp.content !== branchExp.content) {
  5715. return false;
  5716. }
  5717. }
  5718. return true;
  5719. }
  5720. function getParentCondition(node) {
  5721. while (true) {
  5722. if (node.type === 19 /* JS_CONDITIONAL_EXPRESSION */) {
  5723. if (node.alternate.type === 19 /* JS_CONDITIONAL_EXPRESSION */) {
  5724. node = node.alternate;
  5725. }
  5726. else {
  5727. return node;
  5728. }
  5729. }
  5730. else if (node.type === 20 /* JS_CACHE_EXPRESSION */) {
  5731. node = node.value;
  5732. }
  5733. }
  5734. }
  5735. const transformFor = createStructuralDirectiveTransform('for', (node, dir, context) => {
  5736. const { helper, removeHelper } = context;
  5737. return processFor(node, dir, context, forNode => {
  5738. // create the loop render function expression now, and add the
  5739. // iterator on exit after all children have been traversed
  5740. const renderExp = createCallExpression(helper(RENDER_LIST), [
  5741. forNode.source
  5742. ]);
  5743. const isTemplate = isTemplateNode(node);
  5744. const memo = findDir(node, 'memo');
  5745. const keyProp = findProp(node, `key`);
  5746. const keyExp = keyProp &&
  5747. (keyProp.type === 6 /* ATTRIBUTE */
  5748. ? createSimpleExpression(keyProp.value.content, true)
  5749. : keyProp.exp);
  5750. const keyProperty = keyProp ? createObjectProperty(`key`, keyExp) : null;
  5751. const isStableFragment = forNode.source.type === 4 /* SIMPLE_EXPRESSION */ &&
  5752. forNode.source.constType > 0 /* NOT_CONSTANT */;
  5753. const fragmentFlag = isStableFragment
  5754. ? 64 /* STABLE_FRAGMENT */
  5755. : keyProp
  5756. ? 128 /* KEYED_FRAGMENT */
  5757. : 256 /* UNKEYED_FRAGMENT */;
  5758. forNode.codegenNode = createVNodeCall(context, helper(FRAGMENT), undefined, renderExp, fragmentFlag +
  5759. (( true) ? ` /* ${_vue_shared__WEBPACK_IMPORTED_MODULE_0__.PatchFlagNames[fragmentFlag]} */` : 0), undefined, undefined, true /* isBlock */, !isStableFragment /* disableTracking */, false /* isComponent */, node.loc);
  5760. return () => {
  5761. // finish the codegen now that all children have been traversed
  5762. let childBlock;
  5763. const { children } = forNode;
  5764. // check <template v-for> key placement
  5765. if (( true) && isTemplate) {
  5766. node.children.some(c => {
  5767. if (c.type === 1 /* ELEMENT */) {
  5768. const key = findProp(c, 'key');
  5769. if (key) {
  5770. context.onError(createCompilerError(33 /* X_V_FOR_TEMPLATE_KEY_PLACEMENT */, key.loc));
  5771. return true;
  5772. }
  5773. }
  5774. });
  5775. }
  5776. const needFragmentWrapper = children.length !== 1 || children[0].type !== 1 /* ELEMENT */;
  5777. const slotOutlet = isSlotOutlet(node)
  5778. ? node
  5779. : isTemplate &&
  5780. node.children.length === 1 &&
  5781. isSlotOutlet(node.children[0])
  5782. ? node.children[0] // api-extractor somehow fails to infer this
  5783. : null;
  5784. if (slotOutlet) {
  5785. // <slot v-for="..."> or <template v-for="..."><slot/></template>
  5786. childBlock = slotOutlet.codegenNode;
  5787. if (isTemplate && keyProperty) {
  5788. // <template v-for="..." :key="..."><slot/></template>
  5789. // we need to inject the key to the renderSlot() call.
  5790. // the props for renderSlot is passed as the 3rd argument.
  5791. injectProp(childBlock, keyProperty, context);
  5792. }
  5793. }
  5794. else if (needFragmentWrapper) {
  5795. // <template v-for="..."> with text or multi-elements
  5796. // should generate a fragment block for each loop
  5797. childBlock = createVNodeCall(context, helper(FRAGMENT), keyProperty ? createObjectExpression([keyProperty]) : undefined, node.children, 64 /* STABLE_FRAGMENT */ +
  5798. (( true)
  5799. ? ` /* ${_vue_shared__WEBPACK_IMPORTED_MODULE_0__.PatchFlagNames[64]} */`
  5800. : 0), undefined, undefined, true, undefined, false /* isComponent */);
  5801. }
  5802. else {
  5803. // Normal element v-for. Directly use the child's codegenNode
  5804. // but mark it as a block.
  5805. childBlock = children[0]
  5806. .codegenNode;
  5807. if (isTemplate && keyProperty) {
  5808. injectProp(childBlock, keyProperty, context);
  5809. }
  5810. if (childBlock.isBlock !== !isStableFragment) {
  5811. if (childBlock.isBlock) {
  5812. // switch from block to vnode
  5813. removeHelper(OPEN_BLOCK);
  5814. removeHelper(getVNodeBlockHelper(context.inSSR, childBlock.isComponent));
  5815. }
  5816. else {
  5817. // switch from vnode to block
  5818. removeHelper(getVNodeHelper(context.inSSR, childBlock.isComponent));
  5819. }
  5820. }
  5821. childBlock.isBlock = !isStableFragment;
  5822. if (childBlock.isBlock) {
  5823. helper(OPEN_BLOCK);
  5824. helper(getVNodeBlockHelper(context.inSSR, childBlock.isComponent));
  5825. }
  5826. else {
  5827. helper(getVNodeHelper(context.inSSR, childBlock.isComponent));
  5828. }
  5829. }
  5830. if (memo) {
  5831. const loop = createFunctionExpression(createForLoopParams(forNode.parseResult, [
  5832. createSimpleExpression(`_cached`)
  5833. ]));
  5834. loop.body = createBlockStatement([
  5835. createCompoundExpression([`const _memo = (`, memo.exp, `)`]),
  5836. createCompoundExpression([
  5837. `if (_cached`,
  5838. ...(keyExp ? [` && _cached.key === `, keyExp] : []),
  5839. ` && ${context.helperString(IS_MEMO_SAME)}(_cached, _memo)) return _cached`
  5840. ]),
  5841. createCompoundExpression([`const _item = `, childBlock]),
  5842. createSimpleExpression(`_item.memo = _memo`),
  5843. createSimpleExpression(`return _item`)
  5844. ]);
  5845. renderExp.arguments.push(loop, createSimpleExpression(`_cache`), createSimpleExpression(String(context.cached++)));
  5846. }
  5847. else {
  5848. renderExp.arguments.push(createFunctionExpression(createForLoopParams(forNode.parseResult), childBlock, true /* force newline */));
  5849. }
  5850. };
  5851. });
  5852. });
  5853. // target-agnostic transform used for both Client and SSR
  5854. function processFor(node, dir, context, processCodegen) {
  5855. if (!dir.exp) {
  5856. context.onError(createCompilerError(31 /* X_V_FOR_NO_EXPRESSION */, dir.loc));
  5857. return;
  5858. }
  5859. const parseResult = parseForExpression(
  5860. // can only be simple expression because vFor transform is applied
  5861. // before expression transform.
  5862. dir.exp, context);
  5863. if (!parseResult) {
  5864. context.onError(createCompilerError(32 /* X_V_FOR_MALFORMED_EXPRESSION */, dir.loc));
  5865. return;
  5866. }
  5867. const { addIdentifiers, removeIdentifiers, scopes } = context;
  5868. const { source, value, key, index } = parseResult;
  5869. const forNode = {
  5870. type: 11 /* FOR */,
  5871. loc: dir.loc,
  5872. source,
  5873. valueAlias: value,
  5874. keyAlias: key,
  5875. objectIndexAlias: index,
  5876. parseResult,
  5877. children: isTemplateNode(node) ? node.children : [node]
  5878. };
  5879. context.replaceNode(forNode);
  5880. // bookkeeping
  5881. scopes.vFor++;
  5882. const onExit = processCodegen && processCodegen(forNode);
  5883. return () => {
  5884. scopes.vFor--;
  5885. if (onExit)
  5886. onExit();
  5887. };
  5888. }
  5889. const forAliasRE = /([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/;
  5890. // This regex doesn't cover the case if key or index aliases have destructuring,
  5891. // but those do not make sense in the first place, so this works in practice.
  5892. const forIteratorRE = /,([^,\}\]]*)(?:,([^,\}\]]*))?$/;
  5893. const stripParensRE = /^\(|\)$/g;
  5894. function parseForExpression(input, context) {
  5895. const loc = input.loc;
  5896. const exp = input.content;
  5897. const inMatch = exp.match(forAliasRE);
  5898. if (!inMatch)
  5899. return;
  5900. const [, LHS, RHS] = inMatch;
  5901. const result = {
  5902. source: createAliasExpression(loc, RHS.trim(), exp.indexOf(RHS, LHS.length)),
  5903. value: undefined,
  5904. key: undefined,
  5905. index: undefined
  5906. };
  5907. if (true) {
  5908. validateBrowserExpression(result.source, context);
  5909. }
  5910. let valueContent = LHS.trim().replace(stripParensRE, '').trim();
  5911. const trimmedOffset = LHS.indexOf(valueContent);
  5912. const iteratorMatch = valueContent.match(forIteratorRE);
  5913. if (iteratorMatch) {
  5914. valueContent = valueContent.replace(forIteratorRE, '').trim();
  5915. const keyContent = iteratorMatch[1].trim();
  5916. let keyOffset;
  5917. if (keyContent) {
  5918. keyOffset = exp.indexOf(keyContent, trimmedOffset + valueContent.length);
  5919. result.key = createAliasExpression(loc, keyContent, keyOffset);
  5920. if (true) {
  5921. validateBrowserExpression(result.key, context, true);
  5922. }
  5923. }
  5924. if (iteratorMatch[2]) {
  5925. const indexContent = iteratorMatch[2].trim();
  5926. if (indexContent) {
  5927. result.index = createAliasExpression(loc, indexContent, exp.indexOf(indexContent, result.key
  5928. ? keyOffset + keyContent.length
  5929. : trimmedOffset + valueContent.length));
  5930. if (true) {
  5931. validateBrowserExpression(result.index, context, true);
  5932. }
  5933. }
  5934. }
  5935. }
  5936. if (valueContent) {
  5937. result.value = createAliasExpression(loc, valueContent, trimmedOffset);
  5938. if (true) {
  5939. validateBrowserExpression(result.value, context, true);
  5940. }
  5941. }
  5942. return result;
  5943. }
  5944. function createAliasExpression(range, content, offset) {
  5945. return createSimpleExpression(content, false, getInnerRange(range, offset, content.length));
  5946. }
  5947. function createForLoopParams({ value, key, index }, memoArgs = []) {
  5948. return createParamsList([value, key, index, ...memoArgs]);
  5949. }
  5950. function createParamsList(args) {
  5951. let i = args.length;
  5952. while (i--) {
  5953. if (args[i])
  5954. break;
  5955. }
  5956. return args
  5957. .slice(0, i + 1)
  5958. .map((arg, i) => arg || createSimpleExpression(`_`.repeat(i + 1), false));
  5959. }
  5960. const defaultFallback = createSimpleExpression(`undefined`, false);
  5961. // A NodeTransform that:
  5962. // 1. Tracks scope identifiers for scoped slots so that they don't get prefixed
  5963. // by transformExpression. This is only applied in non-browser builds with
  5964. // { prefixIdentifiers: true }.
  5965. // 2. Track v-slot depths so that we know a slot is inside another slot.
  5966. // Note the exit callback is executed before buildSlots() on the same node,
  5967. // so only nested slots see positive numbers.
  5968. const trackSlotScopes = (node, context) => {
  5969. if (node.type === 1 /* ELEMENT */ &&
  5970. (node.tagType === 1 /* COMPONENT */ ||
  5971. node.tagType === 3 /* TEMPLATE */)) {
  5972. // We are only checking non-empty v-slot here
  5973. // since we only care about slots that introduce scope variables.
  5974. const vSlot = findDir(node, 'slot');
  5975. if (vSlot) {
  5976. vSlot.exp;
  5977. context.scopes.vSlot++;
  5978. return () => {
  5979. context.scopes.vSlot--;
  5980. };
  5981. }
  5982. }
  5983. };
  5984. // A NodeTransform that tracks scope identifiers for scoped slots with v-for.
  5985. // This transform is only applied in non-browser builds with { prefixIdentifiers: true }
  5986. const trackVForSlotScopes = (node, context) => {
  5987. let vFor;
  5988. if (isTemplateNode(node) &&
  5989. node.props.some(isVSlot) &&
  5990. (vFor = findDir(node, 'for'))) {
  5991. const result = (vFor.parseResult = parseForExpression(vFor.exp, context));
  5992. if (result) {
  5993. const { value, key, index } = result;
  5994. const { addIdentifiers, removeIdentifiers } = context;
  5995. value && addIdentifiers(value);
  5996. key && addIdentifiers(key);
  5997. index && addIdentifiers(index);
  5998. return () => {
  5999. value && removeIdentifiers(value);
  6000. key && removeIdentifiers(key);
  6001. index && removeIdentifiers(index);
  6002. };
  6003. }
  6004. }
  6005. };
  6006. const buildClientSlotFn = (props, children, loc) => createFunctionExpression(props, children, false /* newline */, true /* isSlot */, children.length ? children[0].loc : loc);
  6007. // Instead of being a DirectiveTransform, v-slot processing is called during
  6008. // transformElement to build the slots object for a component.
  6009. function buildSlots(node, context, buildSlotFn = buildClientSlotFn) {
  6010. context.helper(WITH_CTX);
  6011. const { children, loc } = node;
  6012. const slotsProperties = [];
  6013. const dynamicSlots = [];
  6014. // If the slot is inside a v-for or another v-slot, force it to be dynamic
  6015. // since it likely uses a scope variable.
  6016. let hasDynamicSlots = context.scopes.vSlot > 0 || context.scopes.vFor > 0;
  6017. // 1. Check for slot with slotProps on component itself.
  6018. // <Comp v-slot="{ prop }"/>
  6019. const onComponentSlot = findDir(node, 'slot', true);
  6020. if (onComponentSlot) {
  6021. const { arg, exp } = onComponentSlot;
  6022. if (arg && !isStaticExp(arg)) {
  6023. hasDynamicSlots = true;
  6024. }
  6025. slotsProperties.push(createObjectProperty(arg || createSimpleExpression('default', true), buildSlotFn(exp, children, loc)));
  6026. }
  6027. // 2. Iterate through children and check for template slots
  6028. // <template v-slot:foo="{ prop }">
  6029. let hasTemplateSlots = false;
  6030. let hasNamedDefaultSlot = false;
  6031. const implicitDefaultChildren = [];
  6032. const seenSlotNames = new Set();
  6033. for (let i = 0; i < children.length; i++) {
  6034. const slotElement = children[i];
  6035. let slotDir;
  6036. if (!isTemplateNode(slotElement) ||
  6037. !(slotDir = findDir(slotElement, 'slot', true))) {
  6038. // not a <template v-slot>, skip.
  6039. if (slotElement.type !== 3 /* COMMENT */) {
  6040. implicitDefaultChildren.push(slotElement);
  6041. }
  6042. continue;
  6043. }
  6044. if (onComponentSlot) {
  6045. // already has on-component slot - this is incorrect usage.
  6046. context.onError(createCompilerError(37 /* X_V_SLOT_MIXED_SLOT_USAGE */, slotDir.loc));
  6047. break;
  6048. }
  6049. hasTemplateSlots = true;
  6050. const { children: slotChildren, loc: slotLoc } = slotElement;
  6051. const { arg: slotName = createSimpleExpression(`default`, true), exp: slotProps, loc: dirLoc } = slotDir;
  6052. // check if name is dynamic.
  6053. let staticSlotName;
  6054. if (isStaticExp(slotName)) {
  6055. staticSlotName = slotName ? slotName.content : `default`;
  6056. }
  6057. else {
  6058. hasDynamicSlots = true;
  6059. }
  6060. const slotFunction = buildSlotFn(slotProps, slotChildren, slotLoc);
  6061. // check if this slot is conditional (v-if/v-for)
  6062. let vIf;
  6063. let vElse;
  6064. let vFor;
  6065. if ((vIf = findDir(slotElement, 'if'))) {
  6066. hasDynamicSlots = true;
  6067. dynamicSlots.push(createConditionalExpression(vIf.exp, buildDynamicSlot(slotName, slotFunction), defaultFallback));
  6068. }
  6069. else if ((vElse = findDir(slotElement, /^else(-if)?$/, true /* allowEmpty */))) {
  6070. // find adjacent v-if
  6071. let j = i;
  6072. let prev;
  6073. while (j--) {
  6074. prev = children[j];
  6075. if (prev.type !== 3 /* COMMENT */) {
  6076. break;
  6077. }
  6078. }
  6079. if (prev && isTemplateNode(prev) && findDir(prev, 'if')) {
  6080. // remove node
  6081. children.splice(i, 1);
  6082. i--;
  6083. // attach this slot to previous conditional
  6084. let conditional = dynamicSlots[dynamicSlots.length - 1];
  6085. while (conditional.alternate.type === 19 /* JS_CONDITIONAL_EXPRESSION */) {
  6086. conditional = conditional.alternate;
  6087. }
  6088. conditional.alternate = vElse.exp
  6089. ? createConditionalExpression(vElse.exp, buildDynamicSlot(slotName, slotFunction), defaultFallback)
  6090. : buildDynamicSlot(slotName, slotFunction);
  6091. }
  6092. else {
  6093. context.onError(createCompilerError(30 /* X_V_ELSE_NO_ADJACENT_IF */, vElse.loc));
  6094. }
  6095. }
  6096. else if ((vFor = findDir(slotElement, 'for'))) {
  6097. hasDynamicSlots = true;
  6098. const parseResult = vFor.parseResult ||
  6099. parseForExpression(vFor.exp, context);
  6100. if (parseResult) {
  6101. // Render the dynamic slots as an array and add it to the createSlot()
  6102. // args. The runtime knows how to handle it appropriately.
  6103. dynamicSlots.push(createCallExpression(context.helper(RENDER_LIST), [
  6104. parseResult.source,
  6105. createFunctionExpression(createForLoopParams(parseResult), buildDynamicSlot(slotName, slotFunction), true /* force newline */)
  6106. ]));
  6107. }
  6108. else {
  6109. context.onError(createCompilerError(32 /* X_V_FOR_MALFORMED_EXPRESSION */, vFor.loc));
  6110. }
  6111. }
  6112. else {
  6113. // check duplicate static names
  6114. if (staticSlotName) {
  6115. if (seenSlotNames.has(staticSlotName)) {
  6116. context.onError(createCompilerError(38 /* X_V_SLOT_DUPLICATE_SLOT_NAMES */, dirLoc));
  6117. continue;
  6118. }
  6119. seenSlotNames.add(staticSlotName);
  6120. if (staticSlotName === 'default') {
  6121. hasNamedDefaultSlot = true;
  6122. }
  6123. }
  6124. slotsProperties.push(createObjectProperty(slotName, slotFunction));
  6125. }
  6126. }
  6127. if (!onComponentSlot) {
  6128. const buildDefaultSlotProperty = (props, children) => {
  6129. const fn = buildSlotFn(props, children, loc);
  6130. if (context.compatConfig) {
  6131. fn.isNonScopedSlot = true;
  6132. }
  6133. return createObjectProperty(`default`, fn);
  6134. };
  6135. if (!hasTemplateSlots) {
  6136. // implicit default slot (on component)
  6137. slotsProperties.push(buildDefaultSlotProperty(undefined, children));
  6138. }
  6139. else if (implicitDefaultChildren.length &&
  6140. // #3766
  6141. // with whitespace: 'preserve', whitespaces between slots will end up in
  6142. // implicitDefaultChildren. Ignore if all implicit children are whitespaces.
  6143. implicitDefaultChildren.some(node => isNonWhitespaceContent(node))) {
  6144. // implicit default slot (mixed with named slots)
  6145. if (hasNamedDefaultSlot) {
  6146. context.onError(createCompilerError(39 /* X_V_SLOT_EXTRANEOUS_DEFAULT_SLOT_CHILDREN */, implicitDefaultChildren[0].loc));
  6147. }
  6148. else {
  6149. slotsProperties.push(buildDefaultSlotProperty(undefined, implicitDefaultChildren));
  6150. }
  6151. }
  6152. }
  6153. const slotFlag = hasDynamicSlots
  6154. ? 2 /* DYNAMIC */
  6155. : hasForwardedSlots(node.children)
  6156. ? 3 /* FORWARDED */
  6157. : 1 /* STABLE */;
  6158. let slots = createObjectExpression(slotsProperties.concat(createObjectProperty(`_`,
  6159. // 2 = compiled but dynamic = can skip normalization, but must run diff
  6160. // 1 = compiled and static = can skip normalization AND diff as optimized
  6161. createSimpleExpression(slotFlag + (( true) ? ` /* ${_vue_shared__WEBPACK_IMPORTED_MODULE_0__.slotFlagsText[slotFlag]} */` : 0), false))), loc);
  6162. if (dynamicSlots.length) {
  6163. slots = createCallExpression(context.helper(CREATE_SLOTS), [
  6164. slots,
  6165. createArrayExpression(dynamicSlots)
  6166. ]);
  6167. }
  6168. return {
  6169. slots,
  6170. hasDynamicSlots
  6171. };
  6172. }
  6173. function buildDynamicSlot(name, fn) {
  6174. return createObjectExpression([
  6175. createObjectProperty(`name`, name),
  6176. createObjectProperty(`fn`, fn)
  6177. ]);
  6178. }
  6179. function hasForwardedSlots(children) {
  6180. for (let i = 0; i < children.length; i++) {
  6181. const child = children[i];
  6182. switch (child.type) {
  6183. case 1 /* ELEMENT */:
  6184. if (child.tagType === 2 /* SLOT */ ||
  6185. hasForwardedSlots(child.children)) {
  6186. return true;
  6187. }
  6188. break;
  6189. case 9 /* IF */:
  6190. if (hasForwardedSlots(child.branches))
  6191. return true;
  6192. break;
  6193. case 10 /* IF_BRANCH */:
  6194. case 11 /* FOR */:
  6195. if (hasForwardedSlots(child.children))
  6196. return true;
  6197. break;
  6198. }
  6199. }
  6200. return false;
  6201. }
  6202. function isNonWhitespaceContent(node) {
  6203. if (node.type !== 2 /* TEXT */ && node.type !== 12 /* TEXT_CALL */)
  6204. return true;
  6205. return node.type === 2 /* TEXT */
  6206. ? !!node.content.trim()
  6207. : isNonWhitespaceContent(node.content);
  6208. }
  6209. // some directive transforms (e.g. v-model) may return a symbol for runtime
  6210. // import, which should be used instead of a resolveDirective call.
  6211. const directiveImportMap = new WeakMap();
  6212. // generate a JavaScript AST for this element's codegen
  6213. const transformElement = (node, context) => {
  6214. // perform the work on exit, after all child expressions have been
  6215. // processed and merged.
  6216. return function postTransformElement() {
  6217. node = context.currentNode;
  6218. if (!(node.type === 1 /* ELEMENT */ &&
  6219. (node.tagType === 0 /* ELEMENT */ ||
  6220. node.tagType === 1 /* COMPONENT */))) {
  6221. return;
  6222. }
  6223. const { tag, props } = node;
  6224. const isComponent = node.tagType === 1 /* COMPONENT */;
  6225. // The goal of the transform is to create a codegenNode implementing the
  6226. // VNodeCall interface.
  6227. let vnodeTag = isComponent
  6228. ? resolveComponentType(node, context)
  6229. : `"${tag}"`;
  6230. const isDynamicComponent = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isObject)(vnodeTag) && vnodeTag.callee === RESOLVE_DYNAMIC_COMPONENT;
  6231. let vnodeProps;
  6232. let vnodeChildren;
  6233. let vnodePatchFlag;
  6234. let patchFlag = 0;
  6235. let vnodeDynamicProps;
  6236. let dynamicPropNames;
  6237. let vnodeDirectives;
  6238. let shouldUseBlock =
  6239. // dynamic component may resolve to plain elements
  6240. isDynamicComponent ||
  6241. vnodeTag === TELEPORT ||
  6242. vnodeTag === SUSPENSE ||
  6243. (!isComponent &&
  6244. // <svg> and <foreignObject> must be forced into blocks so that block
  6245. // updates inside get proper isSVG flag at runtime. (#639, #643)
  6246. // This is technically web-specific, but splitting the logic out of core
  6247. // leads to too much unnecessary complexity.
  6248. (tag === 'svg' || tag === 'foreignObject'));
  6249. // props
  6250. if (props.length > 0) {
  6251. const propsBuildResult = buildProps(node, context);
  6252. vnodeProps = propsBuildResult.props;
  6253. patchFlag = propsBuildResult.patchFlag;
  6254. dynamicPropNames = propsBuildResult.dynamicPropNames;
  6255. const directives = propsBuildResult.directives;
  6256. vnodeDirectives =
  6257. directives && directives.length
  6258. ? createArrayExpression(directives.map(dir => buildDirectiveArgs(dir, context)))
  6259. : undefined;
  6260. if (propsBuildResult.shouldUseBlock) {
  6261. shouldUseBlock = true;
  6262. }
  6263. }
  6264. // children
  6265. if (node.children.length > 0) {
  6266. if (vnodeTag === KEEP_ALIVE) {
  6267. // Although a built-in component, we compile KeepAlive with raw children
  6268. // instead of slot functions so that it can be used inside Transition
  6269. // or other Transition-wrapping HOCs.
  6270. // To ensure correct updates with block optimizations, we need to:
  6271. // 1. Force keep-alive into a block. This avoids its children being
  6272. // collected by a parent block.
  6273. shouldUseBlock = true;
  6274. // 2. Force keep-alive to always be updated, since it uses raw children.
  6275. patchFlag |= 1024 /* DYNAMIC_SLOTS */;
  6276. if (( true) && node.children.length > 1) {
  6277. context.onError(createCompilerError(45 /* X_KEEP_ALIVE_INVALID_CHILDREN */, {
  6278. start: node.children[0].loc.start,
  6279. end: node.children[node.children.length - 1].loc.end,
  6280. source: ''
  6281. }));
  6282. }
  6283. }
  6284. const shouldBuildAsSlots = isComponent &&
  6285. // Teleport is not a real component and has dedicated runtime handling
  6286. vnodeTag !== TELEPORT &&
  6287. // explained above.
  6288. vnodeTag !== KEEP_ALIVE;
  6289. if (shouldBuildAsSlots) {
  6290. const { slots, hasDynamicSlots } = buildSlots(node, context);
  6291. vnodeChildren = slots;
  6292. if (hasDynamicSlots) {
  6293. patchFlag |= 1024 /* DYNAMIC_SLOTS */;
  6294. }
  6295. }
  6296. else if (node.children.length === 1 && vnodeTag !== TELEPORT) {
  6297. const child = node.children[0];
  6298. const type = child.type;
  6299. // check for dynamic text children
  6300. const hasDynamicTextChild = type === 5 /* INTERPOLATION */ ||
  6301. type === 8 /* COMPOUND_EXPRESSION */;
  6302. if (hasDynamicTextChild &&
  6303. getConstantType(child, context) === 0 /* NOT_CONSTANT */) {
  6304. patchFlag |= 1 /* TEXT */;
  6305. }
  6306. // pass directly if the only child is a text node
  6307. // (plain / interpolation / expression)
  6308. if (hasDynamicTextChild || type === 2 /* TEXT */) {
  6309. vnodeChildren = child;
  6310. }
  6311. else {
  6312. vnodeChildren = node.children;
  6313. }
  6314. }
  6315. else {
  6316. vnodeChildren = node.children;
  6317. }
  6318. }
  6319. // patchFlag & dynamicPropNames
  6320. if (patchFlag !== 0) {
  6321. if ((true)) {
  6322. if (patchFlag < 0) {
  6323. // special flags (negative and mutually exclusive)
  6324. vnodePatchFlag = patchFlag + ` /* ${_vue_shared__WEBPACK_IMPORTED_MODULE_0__.PatchFlagNames[patchFlag]} */`;
  6325. }
  6326. else {
  6327. // bitwise flags
  6328. const flagNames = Object.keys(_vue_shared__WEBPACK_IMPORTED_MODULE_0__.PatchFlagNames)
  6329. .map(Number)
  6330. .filter(n => n > 0 && patchFlag & n)
  6331. .map(n => _vue_shared__WEBPACK_IMPORTED_MODULE_0__.PatchFlagNames[n])
  6332. .join(`, `);
  6333. vnodePatchFlag = patchFlag + ` /* ${flagNames} */`;
  6334. }
  6335. }
  6336. else {}
  6337. if (dynamicPropNames && dynamicPropNames.length) {
  6338. vnodeDynamicProps = stringifyDynamicPropNames(dynamicPropNames);
  6339. }
  6340. }
  6341. node.codegenNode = createVNodeCall(context, vnodeTag, vnodeProps, vnodeChildren, vnodePatchFlag, vnodeDynamicProps, vnodeDirectives, !!shouldUseBlock, false /* disableTracking */, isComponent, node.loc);
  6342. };
  6343. };
  6344. function resolveComponentType(node, context, ssr = false) {
  6345. let { tag } = node;
  6346. // 1. dynamic component
  6347. const isExplicitDynamic = isComponentTag(tag);
  6348. const isProp = findProp(node, 'is');
  6349. if (isProp) {
  6350. if (isExplicitDynamic ||
  6351. (isCompatEnabled("COMPILER_IS_ON_ELEMENT" /* COMPILER_IS_ON_ELEMENT */, context))) {
  6352. const exp = isProp.type === 6 /* ATTRIBUTE */
  6353. ? isProp.value && createSimpleExpression(isProp.value.content, true)
  6354. : isProp.exp;
  6355. if (exp) {
  6356. return createCallExpression(context.helper(RESOLVE_DYNAMIC_COMPONENT), [
  6357. exp
  6358. ]);
  6359. }
  6360. }
  6361. else if (isProp.type === 6 /* ATTRIBUTE */ &&
  6362. isProp.value.content.startsWith('vue:')) {
  6363. // <button is="vue:xxx">
  6364. // if not <component>, only is value that starts with "vue:" will be
  6365. // treated as component by the parse phase and reach here, unless it's
  6366. // compat mode where all is values are considered components
  6367. tag = isProp.value.content.slice(4);
  6368. }
  6369. }
  6370. // 1.5 v-is (TODO: Deprecate)
  6371. const isDir = !isExplicitDynamic && findDir(node, 'is');
  6372. if (isDir && isDir.exp) {
  6373. return createCallExpression(context.helper(RESOLVE_DYNAMIC_COMPONENT), [
  6374. isDir.exp
  6375. ]);
  6376. }
  6377. // 2. built-in components (Teleport, Transition, KeepAlive, Suspense...)
  6378. const builtIn = isCoreComponent(tag) || context.isBuiltInComponent(tag);
  6379. if (builtIn) {
  6380. // built-ins are simply fallthroughs / have special handling during ssr
  6381. // so we don't need to import their runtime equivalents
  6382. if (!ssr)
  6383. context.helper(builtIn);
  6384. return builtIn;
  6385. }
  6386. // 5. user component (resolve)
  6387. context.helper(RESOLVE_COMPONENT);
  6388. context.components.add(tag);
  6389. return toValidAssetId(tag, `component`);
  6390. }
  6391. function buildProps(node, context, props = node.props, ssr = false) {
  6392. const { tag, loc: elementLoc, children } = node;
  6393. const isComponent = node.tagType === 1 /* COMPONENT */;
  6394. let properties = [];
  6395. const mergeArgs = [];
  6396. const runtimeDirectives = [];
  6397. const hasChildren = children.length > 0;
  6398. let shouldUseBlock = false;
  6399. // patchFlag analysis
  6400. let patchFlag = 0;
  6401. let hasRef = false;
  6402. let hasClassBinding = false;
  6403. let hasStyleBinding = false;
  6404. let hasHydrationEventBinding = false;
  6405. let hasDynamicKeys = false;
  6406. let hasVnodeHook = false;
  6407. const dynamicPropNames = [];
  6408. const analyzePatchFlag = ({ key, value }) => {
  6409. if (isStaticExp(key)) {
  6410. const name = key.content;
  6411. const isEventHandler = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isOn)(name);
  6412. if (!isComponent &&
  6413. isEventHandler &&
  6414. // omit the flag for click handlers because hydration gives click
  6415. // dedicated fast path.
  6416. name.toLowerCase() !== 'onclick' &&
  6417. // omit v-model handlers
  6418. name !== 'onUpdate:modelValue' &&
  6419. // omit onVnodeXXX hooks
  6420. !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isReservedProp)(name)) {
  6421. hasHydrationEventBinding = true;
  6422. }
  6423. if (isEventHandler && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isReservedProp)(name)) {
  6424. hasVnodeHook = true;
  6425. }
  6426. if (value.type === 20 /* JS_CACHE_EXPRESSION */ ||
  6427. ((value.type === 4 /* SIMPLE_EXPRESSION */ ||
  6428. value.type === 8 /* COMPOUND_EXPRESSION */) &&
  6429. getConstantType(value, context) > 0)) {
  6430. // skip if the prop is a cached handler or has constant value
  6431. return;
  6432. }
  6433. if (name === 'ref') {
  6434. hasRef = true;
  6435. }
  6436. else if (name === 'class') {
  6437. hasClassBinding = true;
  6438. }
  6439. else if (name === 'style') {
  6440. hasStyleBinding = true;
  6441. }
  6442. else if (name !== 'key' && !dynamicPropNames.includes(name)) {
  6443. dynamicPropNames.push(name);
  6444. }
  6445. // treat the dynamic class and style binding of the component as dynamic props
  6446. if (isComponent &&
  6447. (name === 'class' || name === 'style') &&
  6448. !dynamicPropNames.includes(name)) {
  6449. dynamicPropNames.push(name);
  6450. }
  6451. }
  6452. else {
  6453. hasDynamicKeys = true;
  6454. }
  6455. };
  6456. for (let i = 0; i < props.length; i++) {
  6457. // static attribute
  6458. const prop = props[i];
  6459. if (prop.type === 6 /* ATTRIBUTE */) {
  6460. const { loc, name, value } = prop;
  6461. let isStatic = true;
  6462. if (name === 'ref') {
  6463. hasRef = true;
  6464. if (context.scopes.vFor > 0) {
  6465. properties.push(createObjectProperty(createSimpleExpression('ref_for', true), createSimpleExpression('true')));
  6466. }
  6467. }
  6468. // skip is on <component>, or is="vue:xxx"
  6469. if (name === 'is' &&
  6470. (isComponentTag(tag) ||
  6471. (value && value.content.startsWith('vue:')) ||
  6472. (isCompatEnabled("COMPILER_IS_ON_ELEMENT" /* COMPILER_IS_ON_ELEMENT */, context)))) {
  6473. continue;
  6474. }
  6475. properties.push(createObjectProperty(createSimpleExpression(name, true, getInnerRange(loc, 0, name.length)), createSimpleExpression(value ? value.content : '', isStatic, value ? value.loc : loc)));
  6476. }
  6477. else {
  6478. // directives
  6479. const { name, arg, exp, loc } = prop;
  6480. const isVBind = name === 'bind';
  6481. const isVOn = name === 'on';
  6482. // skip v-slot - it is handled by its dedicated transform.
  6483. if (name === 'slot') {
  6484. if (!isComponent) {
  6485. context.onError(createCompilerError(40 /* X_V_SLOT_MISPLACED */, loc));
  6486. }
  6487. continue;
  6488. }
  6489. // skip v-once/v-memo - they are handled by dedicated transforms.
  6490. if (name === 'once' || name === 'memo') {
  6491. continue;
  6492. }
  6493. // skip v-is and :is on <component>
  6494. if (name === 'is' ||
  6495. (isVBind &&
  6496. isStaticArgOf(arg, 'is') &&
  6497. (isComponentTag(tag) ||
  6498. (isCompatEnabled("COMPILER_IS_ON_ELEMENT" /* COMPILER_IS_ON_ELEMENT */, context))))) {
  6499. continue;
  6500. }
  6501. // skip v-on in SSR compilation
  6502. if (isVOn && ssr) {
  6503. continue;
  6504. }
  6505. if (
  6506. // #938: elements with dynamic keys should be forced into blocks
  6507. (isVBind && isStaticArgOf(arg, 'key')) ||
  6508. // inline before-update hooks need to force block so that it is invoked
  6509. // before children
  6510. (isVOn && hasChildren && isStaticArgOf(arg, 'vue:before-update'))) {
  6511. shouldUseBlock = true;
  6512. }
  6513. if (isVBind && isStaticArgOf(arg, 'ref') && context.scopes.vFor > 0) {
  6514. properties.push(createObjectProperty(createSimpleExpression('ref_for', true), createSimpleExpression('true')));
  6515. }
  6516. // special case for v-bind and v-on with no argument
  6517. if (!arg && (isVBind || isVOn)) {
  6518. hasDynamicKeys = true;
  6519. if (exp) {
  6520. if (properties.length) {
  6521. mergeArgs.push(createObjectExpression(dedupeProperties(properties), elementLoc));
  6522. properties = [];
  6523. }
  6524. if (isVBind) {
  6525. {
  6526. // 2.x v-bind object order compat
  6527. if ((true)) {
  6528. const hasOverridableKeys = mergeArgs.some(arg => {
  6529. if (arg.type === 15 /* JS_OBJECT_EXPRESSION */) {
  6530. return arg.properties.some(({ key }) => {
  6531. if (key.type !== 4 /* SIMPLE_EXPRESSION */ ||
  6532. !key.isStatic) {
  6533. return true;
  6534. }
  6535. return (key.content !== 'class' &&
  6536. key.content !== 'style' &&
  6537. !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isOn)(key.content));
  6538. });
  6539. }
  6540. else {
  6541. // dynamic expression
  6542. return true;
  6543. }
  6544. });
  6545. if (hasOverridableKeys) {
  6546. checkCompatEnabled("COMPILER_V_BIND_OBJECT_ORDER" /* COMPILER_V_BIND_OBJECT_ORDER */, context, loc);
  6547. }
  6548. }
  6549. if (isCompatEnabled("COMPILER_V_BIND_OBJECT_ORDER" /* COMPILER_V_BIND_OBJECT_ORDER */, context)) {
  6550. mergeArgs.unshift(exp);
  6551. continue;
  6552. }
  6553. }
  6554. mergeArgs.push(exp);
  6555. }
  6556. else {
  6557. // v-on="obj" -> toHandlers(obj)
  6558. mergeArgs.push({
  6559. type: 14 /* JS_CALL_EXPRESSION */,
  6560. loc,
  6561. callee: context.helper(TO_HANDLERS),
  6562. arguments: [exp]
  6563. });
  6564. }
  6565. }
  6566. else {
  6567. context.onError(createCompilerError(isVBind
  6568. ? 34 /* X_V_BIND_NO_EXPRESSION */
  6569. : 35 /* X_V_ON_NO_EXPRESSION */, loc));
  6570. }
  6571. continue;
  6572. }
  6573. const directiveTransform = context.directiveTransforms[name];
  6574. if (directiveTransform) {
  6575. // has built-in directive transform.
  6576. const { props, needRuntime } = directiveTransform(prop, node, context);
  6577. !ssr && props.forEach(analyzePatchFlag);
  6578. properties.push(...props);
  6579. if (needRuntime) {
  6580. runtimeDirectives.push(prop);
  6581. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isSymbol)(needRuntime)) {
  6582. directiveImportMap.set(prop, needRuntime);
  6583. }
  6584. }
  6585. }
  6586. else if (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isBuiltInDirective)(name)) {
  6587. // no built-in transform, this is a user custom directive.
  6588. runtimeDirectives.push(prop);
  6589. // custom dirs may use beforeUpdate so they need to force blocks
  6590. // to ensure before-update gets called before children update
  6591. if (hasChildren) {
  6592. shouldUseBlock = true;
  6593. }
  6594. }
  6595. }
  6596. }
  6597. let propsExpression = undefined;
  6598. // has v-bind="object" or v-on="object", wrap with mergeProps
  6599. if (mergeArgs.length) {
  6600. if (properties.length) {
  6601. mergeArgs.push(createObjectExpression(dedupeProperties(properties), elementLoc));
  6602. }
  6603. if (mergeArgs.length > 1) {
  6604. propsExpression = createCallExpression(context.helper(MERGE_PROPS), mergeArgs, elementLoc);
  6605. }
  6606. else {
  6607. // single v-bind with nothing else - no need for a mergeProps call
  6608. propsExpression = mergeArgs[0];
  6609. }
  6610. }
  6611. else if (properties.length) {
  6612. propsExpression = createObjectExpression(dedupeProperties(properties), elementLoc);
  6613. }
  6614. // patchFlag analysis
  6615. if (hasDynamicKeys) {
  6616. patchFlag |= 16 /* FULL_PROPS */;
  6617. }
  6618. else {
  6619. if (hasClassBinding && !isComponent) {
  6620. patchFlag |= 2 /* CLASS */;
  6621. }
  6622. if (hasStyleBinding && !isComponent) {
  6623. patchFlag |= 4 /* STYLE */;
  6624. }
  6625. if (dynamicPropNames.length) {
  6626. patchFlag |= 8 /* PROPS */;
  6627. }
  6628. if (hasHydrationEventBinding) {
  6629. patchFlag |= 32 /* HYDRATE_EVENTS */;
  6630. }
  6631. }
  6632. if (!shouldUseBlock &&
  6633. (patchFlag === 0 || patchFlag === 32 /* HYDRATE_EVENTS */) &&
  6634. (hasRef || hasVnodeHook || runtimeDirectives.length > 0)) {
  6635. patchFlag |= 512 /* NEED_PATCH */;
  6636. }
  6637. // pre-normalize props, SSR is skipped for now
  6638. if (!context.inSSR && propsExpression) {
  6639. switch (propsExpression.type) {
  6640. case 15 /* JS_OBJECT_EXPRESSION */:
  6641. // means that there is no v-bind,
  6642. // but still need to deal with dynamic key binding
  6643. let classKeyIndex = -1;
  6644. let styleKeyIndex = -1;
  6645. let hasDynamicKey = false;
  6646. for (let i = 0; i < propsExpression.properties.length; i++) {
  6647. const key = propsExpression.properties[i].key;
  6648. if (isStaticExp(key)) {
  6649. if (key.content === 'class') {
  6650. classKeyIndex = i;
  6651. }
  6652. else if (key.content === 'style') {
  6653. styleKeyIndex = i;
  6654. }
  6655. }
  6656. else if (!key.isHandlerKey) {
  6657. hasDynamicKey = true;
  6658. }
  6659. }
  6660. const classProp = propsExpression.properties[classKeyIndex];
  6661. const styleProp = propsExpression.properties[styleKeyIndex];
  6662. // no dynamic key
  6663. if (!hasDynamicKey) {
  6664. if (classProp && !isStaticExp(classProp.value)) {
  6665. classProp.value = createCallExpression(context.helper(NORMALIZE_CLASS), [classProp.value]);
  6666. }
  6667. if (styleProp &&
  6668. !isStaticExp(styleProp.value) &&
  6669. // the static style is compiled into an object,
  6670. // so use `hasStyleBinding` to ensure that it is a dynamic style binding
  6671. (hasStyleBinding ||
  6672. // v-bind:style and style both exist,
  6673. // v-bind:style with static literal object
  6674. styleProp.value.type === 17 /* JS_ARRAY_EXPRESSION */)) {
  6675. styleProp.value = createCallExpression(context.helper(NORMALIZE_STYLE), [styleProp.value]);
  6676. }
  6677. }
  6678. else {
  6679. // dynamic key binding, wrap with `normalizeProps`
  6680. propsExpression = createCallExpression(context.helper(NORMALIZE_PROPS), [propsExpression]);
  6681. }
  6682. break;
  6683. case 14 /* JS_CALL_EXPRESSION */:
  6684. // mergeProps call, do nothing
  6685. break;
  6686. default:
  6687. // single v-bind
  6688. propsExpression = createCallExpression(context.helper(NORMALIZE_PROPS), [
  6689. createCallExpression(context.helper(GUARD_REACTIVE_PROPS), [
  6690. propsExpression
  6691. ])
  6692. ]);
  6693. break;
  6694. }
  6695. }
  6696. return {
  6697. props: propsExpression,
  6698. directives: runtimeDirectives,
  6699. patchFlag,
  6700. dynamicPropNames,
  6701. shouldUseBlock
  6702. };
  6703. }
  6704. // Dedupe props in an object literal.
  6705. // Literal duplicated attributes would have been warned during the parse phase,
  6706. // however, it's possible to encounter duplicated `onXXX` handlers with different
  6707. // modifiers. We also need to merge static and dynamic class / style attributes.
  6708. // - onXXX handlers / style: merge into array
  6709. // - class: merge into single expression with concatenation
  6710. function dedupeProperties(properties) {
  6711. const knownProps = new Map();
  6712. const deduped = [];
  6713. for (let i = 0; i < properties.length; i++) {
  6714. const prop = properties[i];
  6715. // dynamic keys are always allowed
  6716. if (prop.key.type === 8 /* COMPOUND_EXPRESSION */ || !prop.key.isStatic) {
  6717. deduped.push(prop);
  6718. continue;
  6719. }
  6720. const name = prop.key.content;
  6721. const existing = knownProps.get(name);
  6722. if (existing) {
  6723. if (name === 'style' || name === 'class' || (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isOn)(name)) {
  6724. mergeAsArray(existing, prop);
  6725. }
  6726. // unexpected duplicate, should have emitted error during parse
  6727. }
  6728. else {
  6729. knownProps.set(name, prop);
  6730. deduped.push(prop);
  6731. }
  6732. }
  6733. return deduped;
  6734. }
  6735. function mergeAsArray(existing, incoming) {
  6736. if (existing.value.type === 17 /* JS_ARRAY_EXPRESSION */) {
  6737. existing.value.elements.push(incoming.value);
  6738. }
  6739. else {
  6740. existing.value = createArrayExpression([existing.value, incoming.value], existing.loc);
  6741. }
  6742. }
  6743. function buildDirectiveArgs(dir, context) {
  6744. const dirArgs = [];
  6745. const runtime = directiveImportMap.get(dir);
  6746. if (runtime) {
  6747. // built-in directive with runtime
  6748. dirArgs.push(context.helperString(runtime));
  6749. }
  6750. else {
  6751. {
  6752. // inject statement for resolving directive
  6753. context.helper(RESOLVE_DIRECTIVE);
  6754. context.directives.add(dir.name);
  6755. dirArgs.push(toValidAssetId(dir.name, `directive`));
  6756. }
  6757. }
  6758. const { loc } = dir;
  6759. if (dir.exp)
  6760. dirArgs.push(dir.exp);
  6761. if (dir.arg) {
  6762. if (!dir.exp) {
  6763. dirArgs.push(`void 0`);
  6764. }
  6765. dirArgs.push(dir.arg);
  6766. }
  6767. if (Object.keys(dir.modifiers).length) {
  6768. if (!dir.arg) {
  6769. if (!dir.exp) {
  6770. dirArgs.push(`void 0`);
  6771. }
  6772. dirArgs.push(`void 0`);
  6773. }
  6774. const trueExpression = createSimpleExpression(`true`, false, loc);
  6775. dirArgs.push(createObjectExpression(dir.modifiers.map(modifier => createObjectProperty(modifier, trueExpression)), loc));
  6776. }
  6777. return createArrayExpression(dirArgs, dir.loc);
  6778. }
  6779. function stringifyDynamicPropNames(props) {
  6780. let propsNamesString = `[`;
  6781. for (let i = 0, l = props.length; i < l; i++) {
  6782. propsNamesString += JSON.stringify(props[i]);
  6783. if (i < l - 1)
  6784. propsNamesString += ', ';
  6785. }
  6786. return propsNamesString + `]`;
  6787. }
  6788. function isComponentTag(tag) {
  6789. return tag === 'component' || tag === 'Component';
  6790. }
  6791. ( true)
  6792. ? Object.freeze({})
  6793. : 0;
  6794. ( true) ? Object.freeze([]) : 0;
  6795. const cacheStringFunction = (fn) => {
  6796. const cache = Object.create(null);
  6797. return ((str) => {
  6798. const hit = cache[str];
  6799. return hit || (cache[str] = fn(str));
  6800. });
  6801. };
  6802. const camelizeRE = /-(\w)/g;
  6803. /**
  6804. * @private
  6805. */
  6806. const camelize = cacheStringFunction((str) => {
  6807. return str.replace(camelizeRE, (_, c) => (c ? c.toUpperCase() : ''));
  6808. });
  6809. const transformSlotOutlet = (node, context) => {
  6810. if (isSlotOutlet(node)) {
  6811. const { children, loc } = node;
  6812. const { slotName, slotProps } = processSlotOutlet(node, context);
  6813. const slotArgs = [
  6814. context.prefixIdentifiers ? `_ctx.$slots` : `$slots`,
  6815. slotName,
  6816. '{}',
  6817. 'undefined',
  6818. 'true'
  6819. ];
  6820. let expectedLen = 2;
  6821. if (slotProps) {
  6822. slotArgs[2] = slotProps;
  6823. expectedLen = 3;
  6824. }
  6825. if (children.length) {
  6826. slotArgs[3] = createFunctionExpression([], children, false, false, loc);
  6827. expectedLen = 4;
  6828. }
  6829. if (context.scopeId && !context.slotted) {
  6830. expectedLen = 5;
  6831. }
  6832. slotArgs.splice(expectedLen); // remove unused arguments
  6833. node.codegenNode = createCallExpression(context.helper(RENDER_SLOT), slotArgs, loc);
  6834. }
  6835. };
  6836. function processSlotOutlet(node, context) {
  6837. let slotName = `"default"`;
  6838. let slotProps = undefined;
  6839. const nonNameProps = [];
  6840. for (let i = 0; i < node.props.length; i++) {
  6841. const p = node.props[i];
  6842. if (p.type === 6 /* ATTRIBUTE */) {
  6843. if (p.value) {
  6844. if (p.name === 'name') {
  6845. slotName = JSON.stringify(p.value.content);
  6846. }
  6847. else {
  6848. p.name = camelize(p.name);
  6849. nonNameProps.push(p);
  6850. }
  6851. }
  6852. }
  6853. else {
  6854. if (p.name === 'bind' && isStaticArgOf(p.arg, 'name')) {
  6855. if (p.exp)
  6856. slotName = p.exp;
  6857. }
  6858. else {
  6859. if (p.name === 'bind' && p.arg && isStaticExp(p.arg)) {
  6860. p.arg.content = camelize(p.arg.content);
  6861. }
  6862. nonNameProps.push(p);
  6863. }
  6864. }
  6865. }
  6866. if (nonNameProps.length > 0) {
  6867. const { props, directives } = buildProps(node, context, nonNameProps);
  6868. slotProps = props;
  6869. if (directives.length) {
  6870. context.onError(createCompilerError(36 /* X_V_SLOT_UNEXPECTED_DIRECTIVE_ON_SLOT_OUTLET */, directives[0].loc));
  6871. }
  6872. }
  6873. return {
  6874. slotName,
  6875. slotProps
  6876. };
  6877. }
  6878. const fnExpRE = /^\s*([\w$_]+|(async\s*)?\([^)]*?\))\s*=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/;
  6879. const transformOn = (dir, node, context, augmentor) => {
  6880. const { loc, modifiers, arg } = dir;
  6881. if (!dir.exp && !modifiers.length) {
  6882. context.onError(createCompilerError(35 /* X_V_ON_NO_EXPRESSION */, loc));
  6883. }
  6884. let eventName;
  6885. if (arg.type === 4 /* SIMPLE_EXPRESSION */) {
  6886. if (arg.isStatic) {
  6887. let rawName = arg.content;
  6888. // TODO deprecate @vnodeXXX usage
  6889. if (rawName.startsWith('vue:')) {
  6890. rawName = `vnode-${rawName.slice(4)}`;
  6891. }
  6892. // for all event listeners, auto convert it to camelCase. See issue #2249
  6893. eventName = createSimpleExpression((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.toHandlerKey)((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.camelize)(rawName)), true, arg.loc);
  6894. }
  6895. else {
  6896. // #2388
  6897. eventName = createCompoundExpression([
  6898. `${context.helperString(TO_HANDLER_KEY)}(`,
  6899. arg,
  6900. `)`
  6901. ]);
  6902. }
  6903. }
  6904. else {
  6905. // already a compound expression.
  6906. eventName = arg;
  6907. eventName.children.unshift(`${context.helperString(TO_HANDLER_KEY)}(`);
  6908. eventName.children.push(`)`);
  6909. }
  6910. // handler processing
  6911. let exp = dir.exp;
  6912. if (exp && !exp.content.trim()) {
  6913. exp = undefined;
  6914. }
  6915. let shouldCache = context.cacheHandlers && !exp && !context.inVOnce;
  6916. if (exp) {
  6917. const isMemberExp = isMemberExpression(exp.content);
  6918. const isInlineStatement = !(isMemberExp || fnExpRE.test(exp.content));
  6919. const hasMultipleStatements = exp.content.includes(`;`);
  6920. if (true) {
  6921. validateBrowserExpression(exp, context, false, hasMultipleStatements);
  6922. }
  6923. if (isInlineStatement || (shouldCache && isMemberExp)) {
  6924. // wrap inline statement in a function expression
  6925. exp = createCompoundExpression([
  6926. `${isInlineStatement
  6927. ? `$event`
  6928. : `${``}(...args)`} => ${hasMultipleStatements ? `{` : `(`}`,
  6929. exp,
  6930. hasMultipleStatements ? `}` : `)`
  6931. ]);
  6932. }
  6933. }
  6934. let ret = {
  6935. props: [
  6936. createObjectProperty(eventName, exp || createSimpleExpression(`() => {}`, false, loc))
  6937. ]
  6938. };
  6939. // apply extended compiler augmentor
  6940. if (augmentor) {
  6941. ret = augmentor(ret);
  6942. }
  6943. if (shouldCache) {
  6944. // cache handlers so that it's always the same handler being passed down.
  6945. // this avoids unnecessary re-renders when users use inline handlers on
  6946. // components.
  6947. ret.props[0].value = context.cache(ret.props[0].value);
  6948. }
  6949. // mark the key as handler for props normalization check
  6950. ret.props.forEach(p => (p.key.isHandlerKey = true));
  6951. return ret;
  6952. };
  6953. // v-bind without arg is handled directly in ./transformElements.ts due to it affecting
  6954. // codegen for the entire props object. This transform here is only for v-bind
  6955. // *with* args.
  6956. const transformBind = (dir, _node, context) => {
  6957. const { exp, modifiers, loc } = dir;
  6958. const arg = dir.arg;
  6959. if (arg.type !== 4 /* SIMPLE_EXPRESSION */) {
  6960. arg.children.unshift(`(`);
  6961. arg.children.push(`) || ""`);
  6962. }
  6963. else if (!arg.isStatic) {
  6964. arg.content = `${arg.content} || ""`;
  6965. }
  6966. // .sync is replaced by v-model:arg
  6967. if (modifiers.includes('camel')) {
  6968. if (arg.type === 4 /* SIMPLE_EXPRESSION */) {
  6969. if (arg.isStatic) {
  6970. arg.content = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.camelize)(arg.content);
  6971. }
  6972. else {
  6973. arg.content = `${context.helperString(CAMELIZE)}(${arg.content})`;
  6974. }
  6975. }
  6976. else {
  6977. arg.children.unshift(`${context.helperString(CAMELIZE)}(`);
  6978. arg.children.push(`)`);
  6979. }
  6980. }
  6981. if (!context.inSSR) {
  6982. if (modifiers.includes('prop')) {
  6983. injectPrefix(arg, '.');
  6984. }
  6985. if (modifiers.includes('attr')) {
  6986. injectPrefix(arg, '^');
  6987. }
  6988. }
  6989. if (!exp ||
  6990. (exp.type === 4 /* SIMPLE_EXPRESSION */ && !exp.content.trim())) {
  6991. context.onError(createCompilerError(34 /* X_V_BIND_NO_EXPRESSION */, loc));
  6992. return {
  6993. props: [createObjectProperty(arg, createSimpleExpression('', true, loc))]
  6994. };
  6995. }
  6996. return {
  6997. props: [createObjectProperty(arg, exp)]
  6998. };
  6999. };
  7000. const injectPrefix = (arg, prefix) => {
  7001. if (arg.type === 4 /* SIMPLE_EXPRESSION */) {
  7002. if (arg.isStatic) {
  7003. arg.content = prefix + arg.content;
  7004. }
  7005. else {
  7006. arg.content = `\`${prefix}\${${arg.content}}\``;
  7007. }
  7008. }
  7009. else {
  7010. arg.children.unshift(`'${prefix}' + (`);
  7011. arg.children.push(`)`);
  7012. }
  7013. };
  7014. // Merge adjacent text nodes and expressions into a single expression
  7015. // e.g. <div>abc {{ d }} {{ e }}</div> should have a single expression node as child.
  7016. const transformText = (node, context) => {
  7017. if (node.type === 0 /* ROOT */ ||
  7018. node.type === 1 /* ELEMENT */ ||
  7019. node.type === 11 /* FOR */ ||
  7020. node.type === 10 /* IF_BRANCH */) {
  7021. // perform the transform on node exit so that all expressions have already
  7022. // been processed.
  7023. return () => {
  7024. const children = node.children;
  7025. let currentContainer = undefined;
  7026. let hasText = false;
  7027. for (let i = 0; i < children.length; i++) {
  7028. const child = children[i];
  7029. if (isText(child)) {
  7030. hasText = true;
  7031. for (let j = i + 1; j < children.length; j++) {
  7032. const next = children[j];
  7033. if (isText(next)) {
  7034. if (!currentContainer) {
  7035. currentContainer = children[i] = {
  7036. type: 8 /* COMPOUND_EXPRESSION */,
  7037. loc: child.loc,
  7038. children: [child]
  7039. };
  7040. }
  7041. // merge adjacent text node into current
  7042. currentContainer.children.push(` + `, next);
  7043. children.splice(j, 1);
  7044. j--;
  7045. }
  7046. else {
  7047. currentContainer = undefined;
  7048. break;
  7049. }
  7050. }
  7051. }
  7052. }
  7053. if (!hasText ||
  7054. // if this is a plain element with a single text child, leave it
  7055. // as-is since the runtime has dedicated fast path for this by directly
  7056. // setting textContent of the element.
  7057. // for component root it's always normalized anyway.
  7058. (children.length === 1 &&
  7059. (node.type === 0 /* ROOT */ ||
  7060. (node.type === 1 /* ELEMENT */ &&
  7061. node.tagType === 0 /* ELEMENT */ &&
  7062. // #3756
  7063. // custom directives can potentially add DOM elements arbitrarily,
  7064. // we need to avoid setting textContent of the element at runtime
  7065. // to avoid accidentally overwriting the DOM elements added
  7066. // by the user through custom directives.
  7067. !node.props.find(p => p.type === 7 /* DIRECTIVE */ &&
  7068. !context.directiveTransforms[p.name]) &&
  7069. // in compat mode, <template> tags with no special directives
  7070. // will be rendered as a fragment so its children must be
  7071. // converted into vnodes.
  7072. !(node.tag === 'template'))))) {
  7073. return;
  7074. }
  7075. // pre-convert text nodes into createTextVNode(text) calls to avoid
  7076. // runtime normalization.
  7077. for (let i = 0; i < children.length; i++) {
  7078. const child = children[i];
  7079. if (isText(child) || child.type === 8 /* COMPOUND_EXPRESSION */) {
  7080. const callArgs = [];
  7081. // createTextVNode defaults to single whitespace, so if it is a
  7082. // single space the code could be an empty call to save bytes.
  7083. if (child.type !== 2 /* TEXT */ || child.content !== ' ') {
  7084. callArgs.push(child);
  7085. }
  7086. // mark dynamic text with flag so it gets patched inside a block
  7087. if (!context.ssr &&
  7088. getConstantType(child, context) === 0 /* NOT_CONSTANT */) {
  7089. callArgs.push(1 /* TEXT */ +
  7090. (( true) ? ` /* ${_vue_shared__WEBPACK_IMPORTED_MODULE_0__.PatchFlagNames[1]} */` : 0));
  7091. }
  7092. children[i] = {
  7093. type: 12 /* TEXT_CALL */,
  7094. content: child,
  7095. loc: child.loc,
  7096. codegenNode: createCallExpression(context.helper(CREATE_TEXT), callArgs)
  7097. };
  7098. }
  7099. }
  7100. };
  7101. }
  7102. };
  7103. const seen = new WeakSet();
  7104. const transformOnce = (node, context) => {
  7105. if (node.type === 1 /* ELEMENT */ && findDir(node, 'once', true)) {
  7106. if (seen.has(node) || context.inVOnce) {
  7107. return;
  7108. }
  7109. seen.add(node);
  7110. context.inVOnce = true;
  7111. context.helper(SET_BLOCK_TRACKING);
  7112. return () => {
  7113. context.inVOnce = false;
  7114. const cur = context.currentNode;
  7115. if (cur.codegenNode) {
  7116. cur.codegenNode = context.cache(cur.codegenNode, true /* isVNode */);
  7117. }
  7118. };
  7119. }
  7120. };
  7121. const transformModel = (dir, node, context) => {
  7122. const { exp, arg } = dir;
  7123. if (!exp) {
  7124. context.onError(createCompilerError(41 /* X_V_MODEL_NO_EXPRESSION */, dir.loc));
  7125. return createTransformProps();
  7126. }
  7127. const rawExp = exp.loc.source;
  7128. const expString = exp.type === 4 /* SIMPLE_EXPRESSION */ ? exp.content : rawExp;
  7129. // im SFC <script setup> inline mode, the exp may have been transformed into
  7130. // _unref(exp)
  7131. context.bindingMetadata[rawExp];
  7132. const maybeRef = !true /* SETUP_CONST */;
  7133. if (!expString.trim() ||
  7134. (!isMemberExpression(expString) && !maybeRef)) {
  7135. context.onError(createCompilerError(42 /* X_V_MODEL_MALFORMED_EXPRESSION */, exp.loc));
  7136. return createTransformProps();
  7137. }
  7138. const propName = arg ? arg : createSimpleExpression('modelValue', true);
  7139. const eventName = arg
  7140. ? isStaticExp(arg)
  7141. ? `onUpdate:${arg.content}`
  7142. : createCompoundExpression(['"onUpdate:" + ', arg])
  7143. : `onUpdate:modelValue`;
  7144. let assignmentExp;
  7145. const eventArg = context.isTS ? `($event: any)` : `$event`;
  7146. {
  7147. assignmentExp = createCompoundExpression([
  7148. `${eventArg} => ((`,
  7149. exp,
  7150. `) = $event)`
  7151. ]);
  7152. }
  7153. const props = [
  7154. // modelValue: foo
  7155. createObjectProperty(propName, dir.exp),
  7156. // "onUpdate:modelValue": $event => (foo = $event)
  7157. createObjectProperty(eventName, assignmentExp)
  7158. ];
  7159. // modelModifiers: { foo: true, "bar-baz": true }
  7160. if (dir.modifiers.length && node.tagType === 1 /* COMPONENT */) {
  7161. const modifiers = dir.modifiers
  7162. .map(m => (isSimpleIdentifier(m) ? m : JSON.stringify(m)) + `: true`)
  7163. .join(`, `);
  7164. const modifiersKey = arg
  7165. ? isStaticExp(arg)
  7166. ? `${arg.content}Modifiers`
  7167. : createCompoundExpression([arg, ' + "Modifiers"'])
  7168. : `modelModifiers`;
  7169. props.push(createObjectProperty(modifiersKey, createSimpleExpression(`{ ${modifiers} }`, false, dir.loc, 2 /* CAN_HOIST */)));
  7170. }
  7171. return createTransformProps(props);
  7172. };
  7173. function createTransformProps(props = []) {
  7174. return { props };
  7175. }
  7176. const validDivisionCharRE = /[\w).+\-_$\]]/;
  7177. const transformFilter = (node, context) => {
  7178. if (!isCompatEnabled("COMPILER_FILTER" /* COMPILER_FILTERS */, context)) {
  7179. return;
  7180. }
  7181. if (node.type === 5 /* INTERPOLATION */) {
  7182. // filter rewrite is applied before expression transform so only
  7183. // simple expressions are possible at this stage
  7184. rewriteFilter(node.content, context);
  7185. }
  7186. if (node.type === 1 /* ELEMENT */) {
  7187. node.props.forEach((prop) => {
  7188. if (prop.type === 7 /* DIRECTIVE */ &&
  7189. prop.name !== 'for' &&
  7190. prop.exp) {
  7191. rewriteFilter(prop.exp, context);
  7192. }
  7193. });
  7194. }
  7195. };
  7196. function rewriteFilter(node, context) {
  7197. if (node.type === 4 /* SIMPLE_EXPRESSION */) {
  7198. parseFilter(node, context);
  7199. }
  7200. else {
  7201. for (let i = 0; i < node.children.length; i++) {
  7202. const child = node.children[i];
  7203. if (typeof child !== 'object')
  7204. continue;
  7205. if (child.type === 4 /* SIMPLE_EXPRESSION */) {
  7206. parseFilter(child, context);
  7207. }
  7208. else if (child.type === 8 /* COMPOUND_EXPRESSION */) {
  7209. rewriteFilter(node, context);
  7210. }
  7211. else if (child.type === 5 /* INTERPOLATION */) {
  7212. rewriteFilter(child.content, context);
  7213. }
  7214. }
  7215. }
  7216. }
  7217. function parseFilter(node, context) {
  7218. const exp = node.content;
  7219. let inSingle = false;
  7220. let inDouble = false;
  7221. let inTemplateString = false;
  7222. let inRegex = false;
  7223. let curly = 0;
  7224. let square = 0;
  7225. let paren = 0;
  7226. let lastFilterIndex = 0;
  7227. let c, prev, i, expression, filters = [];
  7228. for (i = 0; i < exp.length; i++) {
  7229. prev = c;
  7230. c = exp.charCodeAt(i);
  7231. if (inSingle) {
  7232. if (c === 0x27 && prev !== 0x5c)
  7233. inSingle = false;
  7234. }
  7235. else if (inDouble) {
  7236. if (c === 0x22 && prev !== 0x5c)
  7237. inDouble = false;
  7238. }
  7239. else if (inTemplateString) {
  7240. if (c === 0x60 && prev !== 0x5c)
  7241. inTemplateString = false;
  7242. }
  7243. else if (inRegex) {
  7244. if (c === 0x2f && prev !== 0x5c)
  7245. inRegex = false;
  7246. }
  7247. else if (c === 0x7c && // pipe
  7248. exp.charCodeAt(i + 1) !== 0x7c &&
  7249. exp.charCodeAt(i - 1) !== 0x7c &&
  7250. !curly &&
  7251. !square &&
  7252. !paren) {
  7253. if (expression === undefined) {
  7254. // first filter, end of expression
  7255. lastFilterIndex = i + 1;
  7256. expression = exp.slice(0, i).trim();
  7257. }
  7258. else {
  7259. pushFilter();
  7260. }
  7261. }
  7262. else {
  7263. switch (c) {
  7264. case 0x22:
  7265. inDouble = true;
  7266. break; // "
  7267. case 0x27:
  7268. inSingle = true;
  7269. break; // '
  7270. case 0x60:
  7271. inTemplateString = true;
  7272. break; // `
  7273. case 0x28:
  7274. paren++;
  7275. break; // (
  7276. case 0x29:
  7277. paren--;
  7278. break; // )
  7279. case 0x5b:
  7280. square++;
  7281. break; // [
  7282. case 0x5d:
  7283. square--;
  7284. break; // ]
  7285. case 0x7b:
  7286. curly++;
  7287. break; // {
  7288. case 0x7d:
  7289. curly--;
  7290. break; // }
  7291. }
  7292. if (c === 0x2f) {
  7293. // /
  7294. let j = i - 1;
  7295. let p;
  7296. // find first non-whitespace prev char
  7297. for (; j >= 0; j--) {
  7298. p = exp.charAt(j);
  7299. if (p !== ' ')
  7300. break;
  7301. }
  7302. if (!p || !validDivisionCharRE.test(p)) {
  7303. inRegex = true;
  7304. }
  7305. }
  7306. }
  7307. }
  7308. if (expression === undefined) {
  7309. expression = exp.slice(0, i).trim();
  7310. }
  7311. else if (lastFilterIndex !== 0) {
  7312. pushFilter();
  7313. }
  7314. function pushFilter() {
  7315. filters.push(exp.slice(lastFilterIndex, i).trim());
  7316. lastFilterIndex = i + 1;
  7317. }
  7318. if (filters.length) {
  7319. ( true) &&
  7320. warnDeprecation("COMPILER_FILTER" /* COMPILER_FILTERS */, context, node.loc);
  7321. for (i = 0; i < filters.length; i++) {
  7322. expression = wrapFilter(expression, filters[i], context);
  7323. }
  7324. node.content = expression;
  7325. }
  7326. }
  7327. function wrapFilter(exp, filter, context) {
  7328. context.helper(RESOLVE_FILTER);
  7329. const i = filter.indexOf('(');
  7330. if (i < 0) {
  7331. context.filters.add(filter);
  7332. return `${toValidAssetId(filter, 'filter')}(${exp})`;
  7333. }
  7334. else {
  7335. const name = filter.slice(0, i);
  7336. const args = filter.slice(i + 1);
  7337. context.filters.add(name);
  7338. return `${toValidAssetId(name, 'filter')}(${exp}${args !== ')' ? ',' + args : args}`;
  7339. }
  7340. }
  7341. const seen$1 = new WeakSet();
  7342. const transformMemo = (node, context) => {
  7343. if (node.type === 1 /* ELEMENT */) {
  7344. const dir = findDir(node, 'memo');
  7345. if (!dir || seen$1.has(node)) {
  7346. return;
  7347. }
  7348. seen$1.add(node);
  7349. return () => {
  7350. const codegenNode = node.codegenNode ||
  7351. context.currentNode.codegenNode;
  7352. if (codegenNode && codegenNode.type === 13 /* VNODE_CALL */) {
  7353. // non-component sub tree should be turned into a block
  7354. if (node.tagType !== 1 /* COMPONENT */) {
  7355. makeBlock(codegenNode, context);
  7356. }
  7357. node.codegenNode = createCallExpression(context.helper(WITH_MEMO), [
  7358. dir.exp,
  7359. createFunctionExpression(undefined, codegenNode),
  7360. `_cache`,
  7361. String(context.cached++)
  7362. ]);
  7363. }
  7364. };
  7365. }
  7366. };
  7367. function getBaseTransformPreset(prefixIdentifiers) {
  7368. return [
  7369. [
  7370. transformOnce,
  7371. transformIf,
  7372. transformMemo,
  7373. transformFor,
  7374. ...([transformFilter] ),
  7375. ...(( true)
  7376. ? [transformExpression]
  7377. : 0),
  7378. transformSlotOutlet,
  7379. transformElement,
  7380. trackSlotScopes,
  7381. transformText
  7382. ],
  7383. {
  7384. on: transformOn,
  7385. bind: transformBind,
  7386. model: transformModel
  7387. }
  7388. ];
  7389. }
  7390. // we name it `baseCompile` so that higher order compilers like
  7391. // @vue/compiler-dom can export `compile` while re-exporting everything else.
  7392. function baseCompile(template, options = {}) {
  7393. const onError = options.onError || defaultOnError;
  7394. const isModuleMode = options.mode === 'module';
  7395. /* istanbul ignore if */
  7396. {
  7397. if (options.prefixIdentifiers === true) {
  7398. onError(createCompilerError(46 /* X_PREFIX_ID_NOT_SUPPORTED */));
  7399. }
  7400. else if (isModuleMode) {
  7401. onError(createCompilerError(47 /* X_MODULE_MODE_NOT_SUPPORTED */));
  7402. }
  7403. }
  7404. const prefixIdentifiers = !true ;
  7405. if (options.cacheHandlers) {
  7406. onError(createCompilerError(48 /* X_CACHE_HANDLER_NOT_SUPPORTED */));
  7407. }
  7408. if (options.scopeId && !isModuleMode) {
  7409. onError(createCompilerError(49 /* X_SCOPE_ID_NOT_SUPPORTED */));
  7410. }
  7411. const ast = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isString)(template) ? baseParse(template, options) : template;
  7412. const [nodeTransforms, directiveTransforms] = getBaseTransformPreset();
  7413. transform(ast, (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.extend)({}, options, {
  7414. prefixIdentifiers,
  7415. nodeTransforms: [
  7416. ...nodeTransforms,
  7417. ...(options.nodeTransforms || []) // user transforms
  7418. ],
  7419. directiveTransforms: (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.extend)({}, directiveTransforms, options.directiveTransforms || {} // user transforms
  7420. )
  7421. }));
  7422. return generate(ast, (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.extend)({}, options, {
  7423. prefixIdentifiers
  7424. }));
  7425. }
  7426. const noopDirectiveTransform = () => ({ props: [] });
  7427. /***/ }),
  7428. /***/ "./node_modules/@vue/compiler-dom/dist/compiler-dom.esm-bundler.js":
  7429. /*!*************************************************************************!*\
  7430. !*** ./node_modules/@vue/compiler-dom/dist/compiler-dom.esm-bundler.js ***!
  7431. \*************************************************************************/
  7432. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  7433. "use strict";
  7434. __webpack_require__.r(__webpack_exports__);
  7435. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  7436. /* harmony export */ "BASE_TRANSITION": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.BASE_TRANSITION),
  7437. /* harmony export */ "CAMELIZE": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.CAMELIZE),
  7438. /* harmony export */ "CAPITALIZE": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.CAPITALIZE),
  7439. /* harmony export */ "CREATE_BLOCK": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.CREATE_BLOCK),
  7440. /* harmony export */ "CREATE_COMMENT": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.CREATE_COMMENT),
  7441. /* harmony export */ "CREATE_ELEMENT_BLOCK": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.CREATE_ELEMENT_BLOCK),
  7442. /* harmony export */ "CREATE_ELEMENT_VNODE": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.CREATE_ELEMENT_VNODE),
  7443. /* harmony export */ "CREATE_SLOTS": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.CREATE_SLOTS),
  7444. /* harmony export */ "CREATE_STATIC": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.CREATE_STATIC),
  7445. /* harmony export */ "CREATE_TEXT": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.CREATE_TEXT),
  7446. /* harmony export */ "CREATE_VNODE": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.CREATE_VNODE),
  7447. /* harmony export */ "DOMDirectiveTransforms": () => (/* binding */ DOMDirectiveTransforms),
  7448. /* harmony export */ "DOMNodeTransforms": () => (/* binding */ DOMNodeTransforms),
  7449. /* harmony export */ "FRAGMENT": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.FRAGMENT),
  7450. /* harmony export */ "GUARD_REACTIVE_PROPS": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.GUARD_REACTIVE_PROPS),
  7451. /* harmony export */ "IS_MEMO_SAME": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.IS_MEMO_SAME),
  7452. /* harmony export */ "IS_REF": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.IS_REF),
  7453. /* harmony export */ "KEEP_ALIVE": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.KEEP_ALIVE),
  7454. /* harmony export */ "MERGE_PROPS": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.MERGE_PROPS),
  7455. /* harmony export */ "NORMALIZE_CLASS": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.NORMALIZE_CLASS),
  7456. /* harmony export */ "NORMALIZE_PROPS": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.NORMALIZE_PROPS),
  7457. /* harmony export */ "NORMALIZE_STYLE": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.NORMALIZE_STYLE),
  7458. /* harmony export */ "OPEN_BLOCK": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.OPEN_BLOCK),
  7459. /* harmony export */ "POP_SCOPE_ID": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.POP_SCOPE_ID),
  7460. /* harmony export */ "PUSH_SCOPE_ID": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.PUSH_SCOPE_ID),
  7461. /* harmony export */ "RENDER_LIST": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.RENDER_LIST),
  7462. /* harmony export */ "RENDER_SLOT": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.RENDER_SLOT),
  7463. /* harmony export */ "RESOLVE_COMPONENT": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.RESOLVE_COMPONENT),
  7464. /* harmony export */ "RESOLVE_DIRECTIVE": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.RESOLVE_DIRECTIVE),
  7465. /* harmony export */ "RESOLVE_DYNAMIC_COMPONENT": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.RESOLVE_DYNAMIC_COMPONENT),
  7466. /* harmony export */ "RESOLVE_FILTER": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.RESOLVE_FILTER),
  7467. /* harmony export */ "SET_BLOCK_TRACKING": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.SET_BLOCK_TRACKING),
  7468. /* harmony export */ "SUSPENSE": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.SUSPENSE),
  7469. /* harmony export */ "TELEPORT": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.TELEPORT),
  7470. /* harmony export */ "TO_DISPLAY_STRING": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.TO_DISPLAY_STRING),
  7471. /* harmony export */ "TO_HANDLERS": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.TO_HANDLERS),
  7472. /* harmony export */ "TO_HANDLER_KEY": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.TO_HANDLER_KEY),
  7473. /* harmony export */ "TRANSITION": () => (/* binding */ TRANSITION),
  7474. /* harmony export */ "TRANSITION_GROUP": () => (/* binding */ TRANSITION_GROUP),
  7475. /* harmony export */ "UNREF": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.UNREF),
  7476. /* harmony export */ "V_MODEL_CHECKBOX": () => (/* binding */ V_MODEL_CHECKBOX),
  7477. /* harmony export */ "V_MODEL_DYNAMIC": () => (/* binding */ V_MODEL_DYNAMIC),
  7478. /* harmony export */ "V_MODEL_RADIO": () => (/* binding */ V_MODEL_RADIO),
  7479. /* harmony export */ "V_MODEL_SELECT": () => (/* binding */ V_MODEL_SELECT),
  7480. /* harmony export */ "V_MODEL_TEXT": () => (/* binding */ V_MODEL_TEXT),
  7481. /* harmony export */ "V_ON_WITH_KEYS": () => (/* binding */ V_ON_WITH_KEYS),
  7482. /* harmony export */ "V_ON_WITH_MODIFIERS": () => (/* binding */ V_ON_WITH_MODIFIERS),
  7483. /* harmony export */ "V_SHOW": () => (/* binding */ V_SHOW),
  7484. /* harmony export */ "WITH_CTX": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.WITH_CTX),
  7485. /* harmony export */ "WITH_DIRECTIVES": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.WITH_DIRECTIVES),
  7486. /* harmony export */ "WITH_MEMO": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.WITH_MEMO),
  7487. /* harmony export */ "advancePositionWithClone": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.advancePositionWithClone),
  7488. /* harmony export */ "advancePositionWithMutation": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.advancePositionWithMutation),
  7489. /* harmony export */ "assert": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.assert),
  7490. /* harmony export */ "baseCompile": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.baseCompile),
  7491. /* harmony export */ "baseParse": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.baseParse),
  7492. /* harmony export */ "buildDirectiveArgs": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.buildDirectiveArgs),
  7493. /* harmony export */ "buildProps": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.buildProps),
  7494. /* harmony export */ "buildSlots": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.buildSlots),
  7495. /* harmony export */ "checkCompatEnabled": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.checkCompatEnabled),
  7496. /* harmony export */ "compile": () => (/* binding */ compile),
  7497. /* harmony export */ "createArrayExpression": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createArrayExpression),
  7498. /* harmony export */ "createAssignmentExpression": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createAssignmentExpression),
  7499. /* harmony export */ "createBlockStatement": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createBlockStatement),
  7500. /* harmony export */ "createCacheExpression": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createCacheExpression),
  7501. /* harmony export */ "createCallExpression": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createCallExpression),
  7502. /* harmony export */ "createCompilerError": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createCompilerError),
  7503. /* harmony export */ "createCompoundExpression": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createCompoundExpression),
  7504. /* harmony export */ "createConditionalExpression": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createConditionalExpression),
  7505. /* harmony export */ "createDOMCompilerError": () => (/* binding */ createDOMCompilerError),
  7506. /* harmony export */ "createForLoopParams": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createForLoopParams),
  7507. /* harmony export */ "createFunctionExpression": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createFunctionExpression),
  7508. /* harmony export */ "createIfStatement": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createIfStatement),
  7509. /* harmony export */ "createInterpolation": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createInterpolation),
  7510. /* harmony export */ "createObjectExpression": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createObjectExpression),
  7511. /* harmony export */ "createObjectProperty": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createObjectProperty),
  7512. /* harmony export */ "createReturnStatement": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createReturnStatement),
  7513. /* harmony export */ "createRoot": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createRoot),
  7514. /* harmony export */ "createSequenceExpression": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createSequenceExpression),
  7515. /* harmony export */ "createSimpleExpression": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createSimpleExpression),
  7516. /* harmony export */ "createStructuralDirectiveTransform": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createStructuralDirectiveTransform),
  7517. /* harmony export */ "createTemplateLiteral": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createTemplateLiteral),
  7518. /* harmony export */ "createTransformContext": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createTransformContext),
  7519. /* harmony export */ "createVNodeCall": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createVNodeCall),
  7520. /* harmony export */ "extractIdentifiers": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.extractIdentifiers),
  7521. /* harmony export */ "findDir": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.findDir),
  7522. /* harmony export */ "findProp": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.findProp),
  7523. /* harmony export */ "generate": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.generate),
  7524. /* harmony export */ "generateCodeFrame": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.generateCodeFrame),
  7525. /* harmony export */ "getBaseTransformPreset": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.getBaseTransformPreset),
  7526. /* harmony export */ "getInnerRange": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.getInnerRange),
  7527. /* harmony export */ "getMemoedVNodeCall": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.getMemoedVNodeCall),
  7528. /* harmony export */ "getVNodeBlockHelper": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.getVNodeBlockHelper),
  7529. /* harmony export */ "getVNodeHelper": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.getVNodeHelper),
  7530. /* harmony export */ "hasDynamicKeyVBind": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.hasDynamicKeyVBind),
  7531. /* harmony export */ "hasScopeRef": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.hasScopeRef),
  7532. /* harmony export */ "helperNameMap": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.helperNameMap),
  7533. /* harmony export */ "injectProp": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.injectProp),
  7534. /* harmony export */ "isBuiltInType": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isBuiltInType),
  7535. /* harmony export */ "isCoreComponent": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isCoreComponent),
  7536. /* harmony export */ "isFunctionType": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isFunctionType),
  7537. /* harmony export */ "isInDestructureAssignment": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isInDestructureAssignment),
  7538. /* harmony export */ "isMemberExpression": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isMemberExpression),
  7539. /* harmony export */ "isMemberExpressionBrowser": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isMemberExpressionBrowser),
  7540. /* harmony export */ "isMemberExpressionNode": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isMemberExpressionNode),
  7541. /* harmony export */ "isReferencedIdentifier": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isReferencedIdentifier),
  7542. /* harmony export */ "isSimpleIdentifier": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isSimpleIdentifier),
  7543. /* harmony export */ "isSlotOutlet": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isSlotOutlet),
  7544. /* harmony export */ "isStaticArgOf": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isStaticArgOf),
  7545. /* harmony export */ "isStaticExp": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isStaticExp),
  7546. /* harmony export */ "isStaticProperty": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isStaticProperty),
  7547. /* harmony export */ "isStaticPropertyKey": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isStaticPropertyKey),
  7548. /* harmony export */ "isTemplateNode": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isTemplateNode),
  7549. /* harmony export */ "isText": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isText),
  7550. /* harmony export */ "isVSlot": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isVSlot),
  7551. /* harmony export */ "locStub": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.locStub),
  7552. /* harmony export */ "makeBlock": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.makeBlock),
  7553. /* harmony export */ "noopDirectiveTransform": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.noopDirectiveTransform),
  7554. /* harmony export */ "parse": () => (/* binding */ parse),
  7555. /* harmony export */ "parserOptions": () => (/* binding */ parserOptions),
  7556. /* harmony export */ "processExpression": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.processExpression),
  7557. /* harmony export */ "processFor": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.processFor),
  7558. /* harmony export */ "processIf": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.processIf),
  7559. /* harmony export */ "processSlotOutlet": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.processSlotOutlet),
  7560. /* harmony export */ "registerRuntimeHelpers": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.registerRuntimeHelpers),
  7561. /* harmony export */ "resolveComponentType": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.resolveComponentType),
  7562. /* harmony export */ "toValidAssetId": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.toValidAssetId),
  7563. /* harmony export */ "trackSlotScopes": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.trackSlotScopes),
  7564. /* harmony export */ "trackVForSlotScopes": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.trackVForSlotScopes),
  7565. /* harmony export */ "transform": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.transform),
  7566. /* harmony export */ "transformBind": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.transformBind),
  7567. /* harmony export */ "transformElement": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.transformElement),
  7568. /* harmony export */ "transformExpression": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.transformExpression),
  7569. /* harmony export */ "transformModel": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.transformModel),
  7570. /* harmony export */ "transformOn": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.transformOn),
  7571. /* harmony export */ "transformStyle": () => (/* binding */ transformStyle),
  7572. /* harmony export */ "traverseNode": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.traverseNode),
  7573. /* harmony export */ "walkBlockDeclarations": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.walkBlockDeclarations),
  7574. /* harmony export */ "walkFunctionParams": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.walkFunctionParams),
  7575. /* harmony export */ "walkIdentifiers": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.walkIdentifiers),
  7576. /* harmony export */ "warnDeprecation": () => (/* reexport safe */ _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.warnDeprecation)
  7577. /* harmony export */ });
  7578. /* harmony import */ var _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @vue/compiler-core */ "./node_modules/@vue/compiler-core/dist/compiler-core.esm-bundler.js");
  7579. /* harmony import */ var _vue_shared__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @vue/shared */ "./node_modules/@vue/shared/dist/shared.esm-bundler.js");
  7580. const V_MODEL_RADIO = Symbol(( true) ? `vModelRadio` : 0);
  7581. const V_MODEL_CHECKBOX = Symbol(( true) ? `vModelCheckbox` : 0);
  7582. const V_MODEL_TEXT = Symbol(( true) ? `vModelText` : 0);
  7583. const V_MODEL_SELECT = Symbol(( true) ? `vModelSelect` : 0);
  7584. const V_MODEL_DYNAMIC = Symbol(( true) ? `vModelDynamic` : 0);
  7585. const V_ON_WITH_MODIFIERS = Symbol(( true) ? `vOnModifiersGuard` : 0);
  7586. const V_ON_WITH_KEYS = Symbol(( true) ? `vOnKeysGuard` : 0);
  7587. const V_SHOW = Symbol(( true) ? `vShow` : 0);
  7588. const TRANSITION = Symbol(( true) ? `Transition` : 0);
  7589. const TRANSITION_GROUP = Symbol(( true) ? `TransitionGroup` : 0);
  7590. (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.registerRuntimeHelpers)({
  7591. [V_MODEL_RADIO]: `vModelRadio`,
  7592. [V_MODEL_CHECKBOX]: `vModelCheckbox`,
  7593. [V_MODEL_TEXT]: `vModelText`,
  7594. [V_MODEL_SELECT]: `vModelSelect`,
  7595. [V_MODEL_DYNAMIC]: `vModelDynamic`,
  7596. [V_ON_WITH_MODIFIERS]: `withModifiers`,
  7597. [V_ON_WITH_KEYS]: `withKeys`,
  7598. [V_SHOW]: `vShow`,
  7599. [TRANSITION]: `Transition`,
  7600. [TRANSITION_GROUP]: `TransitionGroup`
  7601. });
  7602. /* eslint-disable no-restricted-globals */
  7603. let decoder;
  7604. function decodeHtmlBrowser(raw, asAttr = false) {
  7605. if (!decoder) {
  7606. decoder = document.createElement('div');
  7607. }
  7608. if (asAttr) {
  7609. decoder.innerHTML = `<div foo="${raw.replace(/"/g, '&quot;')}">`;
  7610. return decoder.children[0].getAttribute('foo');
  7611. }
  7612. else {
  7613. decoder.innerHTML = raw;
  7614. return decoder.textContent;
  7615. }
  7616. }
  7617. const isRawTextContainer = /*#__PURE__*/ (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.makeMap)('style,iframe,script,noscript', true);
  7618. const parserOptions = {
  7619. isVoidTag: _vue_shared__WEBPACK_IMPORTED_MODULE_1__.isVoidTag,
  7620. isNativeTag: tag => (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isHTMLTag)(tag) || (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isSVGTag)(tag),
  7621. isPreTag: tag => tag === 'pre',
  7622. decodeEntities: decodeHtmlBrowser ,
  7623. isBuiltInComponent: (tag) => {
  7624. if ((0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isBuiltInType)(tag, `Transition`)) {
  7625. return TRANSITION;
  7626. }
  7627. else if ((0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isBuiltInType)(tag, `TransitionGroup`)) {
  7628. return TRANSITION_GROUP;
  7629. }
  7630. },
  7631. // https://html.spec.whatwg.org/multipage/parsing.html#tree-construction-dispatcher
  7632. getNamespace(tag, parent) {
  7633. let ns = parent ? parent.ns : 0 /* HTML */;
  7634. if (parent && ns === 2 /* MATH_ML */) {
  7635. if (parent.tag === 'annotation-xml') {
  7636. if (tag === 'svg') {
  7637. return 1 /* SVG */;
  7638. }
  7639. if (parent.props.some(a => a.type === 6 /* ATTRIBUTE */ &&
  7640. a.name === 'encoding' &&
  7641. a.value != null &&
  7642. (a.value.content === 'text/html' ||
  7643. a.value.content === 'application/xhtml+xml'))) {
  7644. ns = 0 /* HTML */;
  7645. }
  7646. }
  7647. else if (/^m(?:[ions]|text)$/.test(parent.tag) &&
  7648. tag !== 'mglyph' &&
  7649. tag !== 'malignmark') {
  7650. ns = 0 /* HTML */;
  7651. }
  7652. }
  7653. else if (parent && ns === 1 /* SVG */) {
  7654. if (parent.tag === 'foreignObject' ||
  7655. parent.tag === 'desc' ||
  7656. parent.tag === 'title') {
  7657. ns = 0 /* HTML */;
  7658. }
  7659. }
  7660. if (ns === 0 /* HTML */) {
  7661. if (tag === 'svg') {
  7662. return 1 /* SVG */;
  7663. }
  7664. if (tag === 'math') {
  7665. return 2 /* MATH_ML */;
  7666. }
  7667. }
  7668. return ns;
  7669. },
  7670. // https://html.spec.whatwg.org/multipage/parsing.html#parsing-html-fragments
  7671. getTextMode({ tag, ns }) {
  7672. if (ns === 0 /* HTML */) {
  7673. if (tag === 'textarea' || tag === 'title') {
  7674. return 1 /* RCDATA */;
  7675. }
  7676. if (isRawTextContainer(tag)) {
  7677. return 2 /* RAWTEXT */;
  7678. }
  7679. }
  7680. return 0 /* DATA */;
  7681. }
  7682. };
  7683. // Parse inline CSS strings for static style attributes into an object.
  7684. // This is a NodeTransform since it works on the static `style` attribute and
  7685. // converts it into a dynamic equivalent:
  7686. // style="color: red" -> :style='{ "color": "red" }'
  7687. // It is then processed by `transformElement` and included in the generated
  7688. // props.
  7689. const transformStyle = node => {
  7690. if (node.type === 1 /* ELEMENT */) {
  7691. node.props.forEach((p, i) => {
  7692. if (p.type === 6 /* ATTRIBUTE */ && p.name === 'style' && p.value) {
  7693. // replace p with an expression node
  7694. node.props[i] = {
  7695. type: 7 /* DIRECTIVE */,
  7696. name: `bind`,
  7697. arg: (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createSimpleExpression)(`style`, true, p.loc),
  7698. exp: parseInlineCSS(p.value.content, p.loc),
  7699. modifiers: [],
  7700. loc: p.loc
  7701. };
  7702. }
  7703. });
  7704. }
  7705. };
  7706. const parseInlineCSS = (cssText, loc) => {
  7707. const normalized = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.parseStringStyle)(cssText);
  7708. return (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createSimpleExpression)(JSON.stringify(normalized), false, loc, 3 /* CAN_STRINGIFY */);
  7709. };
  7710. function createDOMCompilerError(code, loc) {
  7711. return (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createCompilerError)(code, loc, true ? DOMErrorMessages : 0);
  7712. }
  7713. const DOMErrorMessages = {
  7714. [50 /* X_V_HTML_NO_EXPRESSION */]: `v-html is missing expression.`,
  7715. [51 /* X_V_HTML_WITH_CHILDREN */]: `v-html will override element children.`,
  7716. [52 /* X_V_TEXT_NO_EXPRESSION */]: `v-text is missing expression.`,
  7717. [53 /* X_V_TEXT_WITH_CHILDREN */]: `v-text will override element children.`,
  7718. [54 /* X_V_MODEL_ON_INVALID_ELEMENT */]: `v-model can only be used on <input>, <textarea> and <select> elements.`,
  7719. [55 /* X_V_MODEL_ARG_ON_ELEMENT */]: `v-model argument is not supported on plain elements.`,
  7720. [56 /* X_V_MODEL_ON_FILE_INPUT_ELEMENT */]: `v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.`,
  7721. [57 /* X_V_MODEL_UNNECESSARY_VALUE */]: `Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.`,
  7722. [58 /* X_V_SHOW_NO_EXPRESSION */]: `v-show is missing expression.`,
  7723. [59 /* X_TRANSITION_INVALID_CHILDREN */]: `<Transition> expects exactly one child element or component.`,
  7724. [60 /* X_IGNORED_SIDE_EFFECT_TAG */]: `Tags with side effect (<script> and <style>) are ignored in client component templates.`
  7725. };
  7726. const transformVHtml = (dir, node, context) => {
  7727. const { exp, loc } = dir;
  7728. if (!exp) {
  7729. context.onError(createDOMCompilerError(50 /* X_V_HTML_NO_EXPRESSION */, loc));
  7730. }
  7731. if (node.children.length) {
  7732. context.onError(createDOMCompilerError(51 /* X_V_HTML_WITH_CHILDREN */, loc));
  7733. node.children.length = 0;
  7734. }
  7735. return {
  7736. props: [
  7737. (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createObjectProperty)((0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createSimpleExpression)(`innerHTML`, true, loc), exp || (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createSimpleExpression)('', true))
  7738. ]
  7739. };
  7740. };
  7741. const transformVText = (dir, node, context) => {
  7742. const { exp, loc } = dir;
  7743. if (!exp) {
  7744. context.onError(createDOMCompilerError(52 /* X_V_TEXT_NO_EXPRESSION */, loc));
  7745. }
  7746. if (node.children.length) {
  7747. context.onError(createDOMCompilerError(53 /* X_V_TEXT_WITH_CHILDREN */, loc));
  7748. node.children.length = 0;
  7749. }
  7750. return {
  7751. props: [
  7752. (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createObjectProperty)((0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createSimpleExpression)(`textContent`, true), exp
  7753. ? (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createCallExpression)(context.helperString(_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.TO_DISPLAY_STRING), [exp], loc)
  7754. : (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createSimpleExpression)('', true))
  7755. ]
  7756. };
  7757. };
  7758. const transformModel = (dir, node, context) => {
  7759. const baseResult = (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.transformModel)(dir, node, context);
  7760. // base transform has errors OR component v-model (only need props)
  7761. if (!baseResult.props.length || node.tagType === 1 /* COMPONENT */) {
  7762. return baseResult;
  7763. }
  7764. if (dir.arg) {
  7765. context.onError(createDOMCompilerError(55 /* X_V_MODEL_ARG_ON_ELEMENT */, dir.arg.loc));
  7766. }
  7767. function checkDuplicatedValue() {
  7768. const value = (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.findProp)(node, 'value');
  7769. if (value) {
  7770. context.onError(createDOMCompilerError(57 /* X_V_MODEL_UNNECESSARY_VALUE */, value.loc));
  7771. }
  7772. }
  7773. const { tag } = node;
  7774. const isCustomElement = context.isCustomElement(tag);
  7775. if (tag === 'input' ||
  7776. tag === 'textarea' ||
  7777. tag === 'select' ||
  7778. isCustomElement) {
  7779. let directiveToUse = V_MODEL_TEXT;
  7780. let isInvalidType = false;
  7781. if (tag === 'input' || isCustomElement) {
  7782. const type = (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.findProp)(node, `type`);
  7783. if (type) {
  7784. if (type.type === 7 /* DIRECTIVE */) {
  7785. // :type="foo"
  7786. directiveToUse = V_MODEL_DYNAMIC;
  7787. }
  7788. else if (type.value) {
  7789. switch (type.value.content) {
  7790. case 'radio':
  7791. directiveToUse = V_MODEL_RADIO;
  7792. break;
  7793. case 'checkbox':
  7794. directiveToUse = V_MODEL_CHECKBOX;
  7795. break;
  7796. case 'file':
  7797. isInvalidType = true;
  7798. context.onError(createDOMCompilerError(56 /* X_V_MODEL_ON_FILE_INPUT_ELEMENT */, dir.loc));
  7799. break;
  7800. default:
  7801. // text type
  7802. ( true) && checkDuplicatedValue();
  7803. break;
  7804. }
  7805. }
  7806. }
  7807. else if ((0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.hasDynamicKeyVBind)(node)) {
  7808. // element has bindings with dynamic keys, which can possibly contain
  7809. // "type".
  7810. directiveToUse = V_MODEL_DYNAMIC;
  7811. }
  7812. else {
  7813. // text type
  7814. ( true) && checkDuplicatedValue();
  7815. }
  7816. }
  7817. else if (tag === 'select') {
  7818. directiveToUse = V_MODEL_SELECT;
  7819. }
  7820. else {
  7821. // textarea
  7822. ( true) && checkDuplicatedValue();
  7823. }
  7824. // inject runtime directive
  7825. // by returning the helper symbol via needRuntime
  7826. // the import will replaced a resolveDirective call.
  7827. if (!isInvalidType) {
  7828. baseResult.needRuntime = context.helper(directiveToUse);
  7829. }
  7830. }
  7831. else {
  7832. context.onError(createDOMCompilerError(54 /* X_V_MODEL_ON_INVALID_ELEMENT */, dir.loc));
  7833. }
  7834. // native vmodel doesn't need the `modelValue` props since they are also
  7835. // passed to the runtime as `binding.value`. removing it reduces code size.
  7836. baseResult.props = baseResult.props.filter(p => !(p.key.type === 4 /* SIMPLE_EXPRESSION */ &&
  7837. p.key.content === 'modelValue'));
  7838. return baseResult;
  7839. };
  7840. const isEventOptionModifier = /*#__PURE__*/ (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.makeMap)(`passive,once,capture`);
  7841. const isNonKeyModifier = /*#__PURE__*/ (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.makeMap)(
  7842. // event propagation management
  7843. `stop,prevent,self,` +
  7844. // system modifiers + exact
  7845. `ctrl,shift,alt,meta,exact,` +
  7846. // mouse
  7847. `middle`);
  7848. // left & right could be mouse or key modifiers based on event type
  7849. const maybeKeyModifier = /*#__PURE__*/ (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.makeMap)('left,right');
  7850. const isKeyboardEvent = /*#__PURE__*/ (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.makeMap)(`onkeyup,onkeydown,onkeypress`, true);
  7851. const resolveModifiers = (key, modifiers, context, loc) => {
  7852. const keyModifiers = [];
  7853. const nonKeyModifiers = [];
  7854. const eventOptionModifiers = [];
  7855. for (let i = 0; i < modifiers.length; i++) {
  7856. const modifier = modifiers[i];
  7857. if (modifier === 'native' &&
  7858. (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.checkCompatEnabled)("COMPILER_V_ON_NATIVE" /* COMPILER_V_ON_NATIVE */, context, loc)) {
  7859. eventOptionModifiers.push(modifier);
  7860. }
  7861. else if (isEventOptionModifier(modifier)) {
  7862. // eventOptionModifiers: modifiers for addEventListener() options,
  7863. // e.g. .passive & .capture
  7864. eventOptionModifiers.push(modifier);
  7865. }
  7866. else {
  7867. // runtimeModifiers: modifiers that needs runtime guards
  7868. if (maybeKeyModifier(modifier)) {
  7869. if ((0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isStaticExp)(key)) {
  7870. if (isKeyboardEvent(key.content)) {
  7871. keyModifiers.push(modifier);
  7872. }
  7873. else {
  7874. nonKeyModifiers.push(modifier);
  7875. }
  7876. }
  7877. else {
  7878. keyModifiers.push(modifier);
  7879. nonKeyModifiers.push(modifier);
  7880. }
  7881. }
  7882. else {
  7883. if (isNonKeyModifier(modifier)) {
  7884. nonKeyModifiers.push(modifier);
  7885. }
  7886. else {
  7887. keyModifiers.push(modifier);
  7888. }
  7889. }
  7890. }
  7891. }
  7892. return {
  7893. keyModifiers,
  7894. nonKeyModifiers,
  7895. eventOptionModifiers
  7896. };
  7897. };
  7898. const transformClick = (key, event) => {
  7899. const isStaticClick = (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isStaticExp)(key) && key.content.toLowerCase() === 'onclick';
  7900. return isStaticClick
  7901. ? (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createSimpleExpression)(event, true)
  7902. : key.type !== 4 /* SIMPLE_EXPRESSION */
  7903. ? (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createCompoundExpression)([
  7904. `(`,
  7905. key,
  7906. `) === "onClick" ? "${event}" : (`,
  7907. key,
  7908. `)`
  7909. ])
  7910. : key;
  7911. };
  7912. const transformOn = (dir, node, context) => {
  7913. return (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.transformOn)(dir, node, context, baseResult => {
  7914. const { modifiers } = dir;
  7915. if (!modifiers.length)
  7916. return baseResult;
  7917. let { key, value: handlerExp } = baseResult.props[0];
  7918. const { keyModifiers, nonKeyModifiers, eventOptionModifiers } = resolveModifiers(key, modifiers, context, dir.loc);
  7919. // normalize click.right and click.middle since they don't actually fire
  7920. if (nonKeyModifiers.includes('right')) {
  7921. key = transformClick(key, `onContextmenu`);
  7922. }
  7923. if (nonKeyModifiers.includes('middle')) {
  7924. key = transformClick(key, `onMouseup`);
  7925. }
  7926. if (nonKeyModifiers.length) {
  7927. handlerExp = (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createCallExpression)(context.helper(V_ON_WITH_MODIFIERS), [
  7928. handlerExp,
  7929. JSON.stringify(nonKeyModifiers)
  7930. ]);
  7931. }
  7932. if (keyModifiers.length &&
  7933. // if event name is dynamic, always wrap with keys guard
  7934. (!(0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isStaticExp)(key) || isKeyboardEvent(key.content))) {
  7935. handlerExp = (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createCallExpression)(context.helper(V_ON_WITH_KEYS), [
  7936. handlerExp,
  7937. JSON.stringify(keyModifiers)
  7938. ]);
  7939. }
  7940. if (eventOptionModifiers.length) {
  7941. const modifierPostfix = eventOptionModifiers.map(_vue_shared__WEBPACK_IMPORTED_MODULE_1__.capitalize).join('');
  7942. key = (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.isStaticExp)(key)
  7943. ? (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createSimpleExpression)(`${key.content}${modifierPostfix}`, true)
  7944. : (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createCompoundExpression)([`(`, key, `) + "${modifierPostfix}"`]);
  7945. }
  7946. return {
  7947. props: [(0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.createObjectProperty)(key, handlerExp)]
  7948. };
  7949. });
  7950. };
  7951. const transformShow = (dir, node, context) => {
  7952. const { exp, loc } = dir;
  7953. if (!exp) {
  7954. context.onError(createDOMCompilerError(58 /* X_V_SHOW_NO_EXPRESSION */, loc));
  7955. }
  7956. return {
  7957. props: [],
  7958. needRuntime: context.helper(V_SHOW)
  7959. };
  7960. };
  7961. const warnTransitionChildren = (node, context) => {
  7962. if (node.type === 1 /* ELEMENT */ &&
  7963. node.tagType === 1 /* COMPONENT */) {
  7964. const component = context.isBuiltInComponent(node.tag);
  7965. if (component === TRANSITION) {
  7966. return () => {
  7967. if (node.children.length && hasMultipleChildren(node)) {
  7968. context.onError(createDOMCompilerError(59 /* X_TRANSITION_INVALID_CHILDREN */, {
  7969. start: node.children[0].loc.start,
  7970. end: node.children[node.children.length - 1].loc.end,
  7971. source: ''
  7972. }));
  7973. }
  7974. };
  7975. }
  7976. }
  7977. };
  7978. function hasMultipleChildren(node) {
  7979. // #1352 filter out potential comment nodes.
  7980. const children = (node.children = node.children.filter(c => c.type !== 3 /* COMMENT */ &&
  7981. !(c.type === 2 /* TEXT */ && !c.content.trim())));
  7982. const child = children[0];
  7983. return (children.length !== 1 ||
  7984. child.type === 11 /* FOR */ ||
  7985. (child.type === 9 /* IF */ && child.branches.some(hasMultipleChildren)));
  7986. }
  7987. const ignoreSideEffectTags = (node, context) => {
  7988. if (node.type === 1 /* ELEMENT */ &&
  7989. node.tagType === 0 /* ELEMENT */ &&
  7990. (node.tag === 'script' || node.tag === 'style')) {
  7991. context.onError(createDOMCompilerError(60 /* X_IGNORED_SIDE_EFFECT_TAG */, node.loc));
  7992. context.removeNode();
  7993. }
  7994. };
  7995. const DOMNodeTransforms = [
  7996. transformStyle,
  7997. ...(( true) ? [warnTransitionChildren] : 0)
  7998. ];
  7999. const DOMDirectiveTransforms = {
  8000. cloak: _vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.noopDirectiveTransform,
  8001. html: transformVHtml,
  8002. text: transformVText,
  8003. model: transformModel,
  8004. on: transformOn,
  8005. show: transformShow
  8006. };
  8007. function compile(template, options = {}) {
  8008. return (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.baseCompile)(template, (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)({}, parserOptions, options, {
  8009. nodeTransforms: [
  8010. // ignore <script> and <tag>
  8011. // this is not put inside DOMNodeTransforms because that list is used
  8012. // by compiler-ssr to generate vnode fallback branches
  8013. ignoreSideEffectTags,
  8014. ...DOMNodeTransforms,
  8015. ...(options.nodeTransforms || [])
  8016. ],
  8017. directiveTransforms: (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)({}, DOMDirectiveTransforms, options.directiveTransforms || {}),
  8018. transformHoist: null
  8019. }));
  8020. }
  8021. function parse(template, options = {}) {
  8022. return (0,_vue_compiler_core__WEBPACK_IMPORTED_MODULE_0__.baseParse)(template, (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)({}, parserOptions, options));
  8023. }
  8024. /***/ }),
  8025. /***/ "./node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js":
  8026. /*!*********************************************************************!*\
  8027. !*** ./node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js ***!
  8028. \*********************************************************************/
  8029. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  8030. "use strict";
  8031. __webpack_require__.r(__webpack_exports__);
  8032. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  8033. /* harmony export */ "EffectScope": () => (/* binding */ EffectScope),
  8034. /* harmony export */ "ITERATE_KEY": () => (/* binding */ ITERATE_KEY),
  8035. /* harmony export */ "ReactiveEffect": () => (/* binding */ ReactiveEffect),
  8036. /* harmony export */ "computed": () => (/* binding */ computed),
  8037. /* harmony export */ "customRef": () => (/* binding */ customRef),
  8038. /* harmony export */ "deferredComputed": () => (/* binding */ deferredComputed),
  8039. /* harmony export */ "effect": () => (/* binding */ effect),
  8040. /* harmony export */ "effectScope": () => (/* binding */ effectScope),
  8041. /* harmony export */ "enableTracking": () => (/* binding */ enableTracking),
  8042. /* harmony export */ "getCurrentScope": () => (/* binding */ getCurrentScope),
  8043. /* harmony export */ "isProxy": () => (/* binding */ isProxy),
  8044. /* harmony export */ "isReactive": () => (/* binding */ isReactive),
  8045. /* harmony export */ "isReadonly": () => (/* binding */ isReadonly),
  8046. /* harmony export */ "isRef": () => (/* binding */ isRef),
  8047. /* harmony export */ "isShallow": () => (/* binding */ isShallow),
  8048. /* harmony export */ "markRaw": () => (/* binding */ markRaw),
  8049. /* harmony export */ "onScopeDispose": () => (/* binding */ onScopeDispose),
  8050. /* harmony export */ "pauseTracking": () => (/* binding */ pauseTracking),
  8051. /* harmony export */ "proxyRefs": () => (/* binding */ proxyRefs),
  8052. /* harmony export */ "reactive": () => (/* binding */ reactive),
  8053. /* harmony export */ "readonly": () => (/* binding */ readonly),
  8054. /* harmony export */ "ref": () => (/* binding */ ref),
  8055. /* harmony export */ "resetTracking": () => (/* binding */ resetTracking),
  8056. /* harmony export */ "shallowReactive": () => (/* binding */ shallowReactive),
  8057. /* harmony export */ "shallowReadonly": () => (/* binding */ shallowReadonly),
  8058. /* harmony export */ "shallowRef": () => (/* binding */ shallowRef),
  8059. /* harmony export */ "stop": () => (/* binding */ stop),
  8060. /* harmony export */ "toRaw": () => (/* binding */ toRaw),
  8061. /* harmony export */ "toRef": () => (/* binding */ toRef),
  8062. /* harmony export */ "toRefs": () => (/* binding */ toRefs),
  8063. /* harmony export */ "track": () => (/* binding */ track),
  8064. /* harmony export */ "trigger": () => (/* binding */ trigger),
  8065. /* harmony export */ "triggerRef": () => (/* binding */ triggerRef),
  8066. /* harmony export */ "unref": () => (/* binding */ unref)
  8067. /* harmony export */ });
  8068. /* harmony import */ var _vue_shared__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @vue/shared */ "./node_modules/@vue/shared/dist/shared.esm-bundler.js");
  8069. function warn(msg, ...args) {
  8070. console.warn(`[Vue warn] ${msg}`, ...args);
  8071. }
  8072. let activeEffectScope;
  8073. class EffectScope {
  8074. constructor(detached = false) {
  8075. /**
  8076. * @internal
  8077. */
  8078. this.active = true;
  8079. /**
  8080. * @internal
  8081. */
  8082. this.effects = [];
  8083. /**
  8084. * @internal
  8085. */
  8086. this.cleanups = [];
  8087. if (!detached && activeEffectScope) {
  8088. this.parent = activeEffectScope;
  8089. this.index =
  8090. (activeEffectScope.scopes || (activeEffectScope.scopes = [])).push(this) - 1;
  8091. }
  8092. }
  8093. run(fn) {
  8094. if (this.active) {
  8095. const currentEffectScope = activeEffectScope;
  8096. try {
  8097. activeEffectScope = this;
  8098. return fn();
  8099. }
  8100. finally {
  8101. activeEffectScope = currentEffectScope;
  8102. }
  8103. }
  8104. else if ((true)) {
  8105. warn(`cannot run an inactive effect scope.`);
  8106. }
  8107. }
  8108. /**
  8109. * This should only be called on non-detached scopes
  8110. * @internal
  8111. */
  8112. on() {
  8113. activeEffectScope = this;
  8114. }
  8115. /**
  8116. * This should only be called on non-detached scopes
  8117. * @internal
  8118. */
  8119. off() {
  8120. activeEffectScope = this.parent;
  8121. }
  8122. stop(fromParent) {
  8123. if (this.active) {
  8124. let i, l;
  8125. for (i = 0, l = this.effects.length; i < l; i++) {
  8126. this.effects[i].stop();
  8127. }
  8128. for (i = 0, l = this.cleanups.length; i < l; i++) {
  8129. this.cleanups[i]();
  8130. }
  8131. if (this.scopes) {
  8132. for (i = 0, l = this.scopes.length; i < l; i++) {
  8133. this.scopes[i].stop(true);
  8134. }
  8135. }
  8136. // nested scope, dereference from parent to avoid memory leaks
  8137. if (this.parent && !fromParent) {
  8138. // optimized O(1) removal
  8139. const last = this.parent.scopes.pop();
  8140. if (last && last !== this) {
  8141. this.parent.scopes[this.index] = last;
  8142. last.index = this.index;
  8143. }
  8144. }
  8145. this.active = false;
  8146. }
  8147. }
  8148. }
  8149. function effectScope(detached) {
  8150. return new EffectScope(detached);
  8151. }
  8152. function recordEffectScope(effect, scope = activeEffectScope) {
  8153. if (scope && scope.active) {
  8154. scope.effects.push(effect);
  8155. }
  8156. }
  8157. function getCurrentScope() {
  8158. return activeEffectScope;
  8159. }
  8160. function onScopeDispose(fn) {
  8161. if (activeEffectScope) {
  8162. activeEffectScope.cleanups.push(fn);
  8163. }
  8164. else if ((true)) {
  8165. warn(`onScopeDispose() is called when there is no active effect scope` +
  8166. ` to be associated with.`);
  8167. }
  8168. }
  8169. const createDep = (effects) => {
  8170. const dep = new Set(effects);
  8171. dep.w = 0;
  8172. dep.n = 0;
  8173. return dep;
  8174. };
  8175. const wasTracked = (dep) => (dep.w & trackOpBit) > 0;
  8176. const newTracked = (dep) => (dep.n & trackOpBit) > 0;
  8177. const initDepMarkers = ({ deps }) => {
  8178. if (deps.length) {
  8179. for (let i = 0; i < deps.length; i++) {
  8180. deps[i].w |= trackOpBit; // set was tracked
  8181. }
  8182. }
  8183. };
  8184. const finalizeDepMarkers = (effect) => {
  8185. const { deps } = effect;
  8186. if (deps.length) {
  8187. let ptr = 0;
  8188. for (let i = 0; i < deps.length; i++) {
  8189. const dep = deps[i];
  8190. if (wasTracked(dep) && !newTracked(dep)) {
  8191. dep.delete(effect);
  8192. }
  8193. else {
  8194. deps[ptr++] = dep;
  8195. }
  8196. // clear bits
  8197. dep.w &= ~trackOpBit;
  8198. dep.n &= ~trackOpBit;
  8199. }
  8200. deps.length = ptr;
  8201. }
  8202. };
  8203. const targetMap = new WeakMap();
  8204. // The number of effects currently being tracked recursively.
  8205. let effectTrackDepth = 0;
  8206. let trackOpBit = 1;
  8207. /**
  8208. * The bitwise track markers support at most 30 levels of recursion.
  8209. * This value is chosen to enable modern JS engines to use a SMI on all platforms.
  8210. * When recursion depth is greater, fall back to using a full cleanup.
  8211. */
  8212. const maxMarkerBits = 30;
  8213. let activeEffect;
  8214. const ITERATE_KEY = Symbol(( true) ? 'iterate' : 0);
  8215. const MAP_KEY_ITERATE_KEY = Symbol(( true) ? 'Map key iterate' : 0);
  8216. class ReactiveEffect {
  8217. constructor(fn, scheduler = null, scope) {
  8218. this.fn = fn;
  8219. this.scheduler = scheduler;
  8220. this.active = true;
  8221. this.deps = [];
  8222. this.parent = undefined;
  8223. recordEffectScope(this, scope);
  8224. }
  8225. run() {
  8226. if (!this.active) {
  8227. return this.fn();
  8228. }
  8229. let parent = activeEffect;
  8230. let lastShouldTrack = shouldTrack;
  8231. while (parent) {
  8232. if (parent === this) {
  8233. return;
  8234. }
  8235. parent = parent.parent;
  8236. }
  8237. try {
  8238. this.parent = activeEffect;
  8239. activeEffect = this;
  8240. shouldTrack = true;
  8241. trackOpBit = 1 << ++effectTrackDepth;
  8242. if (effectTrackDepth <= maxMarkerBits) {
  8243. initDepMarkers(this);
  8244. }
  8245. else {
  8246. cleanupEffect(this);
  8247. }
  8248. return this.fn();
  8249. }
  8250. finally {
  8251. if (effectTrackDepth <= maxMarkerBits) {
  8252. finalizeDepMarkers(this);
  8253. }
  8254. trackOpBit = 1 << --effectTrackDepth;
  8255. activeEffect = this.parent;
  8256. shouldTrack = lastShouldTrack;
  8257. this.parent = undefined;
  8258. }
  8259. }
  8260. stop() {
  8261. if (this.active) {
  8262. cleanupEffect(this);
  8263. if (this.onStop) {
  8264. this.onStop();
  8265. }
  8266. this.active = false;
  8267. }
  8268. }
  8269. }
  8270. function cleanupEffect(effect) {
  8271. const { deps } = effect;
  8272. if (deps.length) {
  8273. for (let i = 0; i < deps.length; i++) {
  8274. deps[i].delete(effect);
  8275. }
  8276. deps.length = 0;
  8277. }
  8278. }
  8279. function effect(fn, options) {
  8280. if (fn.effect) {
  8281. fn = fn.effect.fn;
  8282. }
  8283. const _effect = new ReactiveEffect(fn);
  8284. if (options) {
  8285. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.extend)(_effect, options);
  8286. if (options.scope)
  8287. recordEffectScope(_effect, options.scope);
  8288. }
  8289. if (!options || !options.lazy) {
  8290. _effect.run();
  8291. }
  8292. const runner = _effect.run.bind(_effect);
  8293. runner.effect = _effect;
  8294. return runner;
  8295. }
  8296. function stop(runner) {
  8297. runner.effect.stop();
  8298. }
  8299. let shouldTrack = true;
  8300. const trackStack = [];
  8301. function pauseTracking() {
  8302. trackStack.push(shouldTrack);
  8303. shouldTrack = false;
  8304. }
  8305. function enableTracking() {
  8306. trackStack.push(shouldTrack);
  8307. shouldTrack = true;
  8308. }
  8309. function resetTracking() {
  8310. const last = trackStack.pop();
  8311. shouldTrack = last === undefined ? true : last;
  8312. }
  8313. function track(target, type, key) {
  8314. if (shouldTrack && activeEffect) {
  8315. let depsMap = targetMap.get(target);
  8316. if (!depsMap) {
  8317. targetMap.set(target, (depsMap = new Map()));
  8318. }
  8319. let dep = depsMap.get(key);
  8320. if (!dep) {
  8321. depsMap.set(key, (dep = createDep()));
  8322. }
  8323. const eventInfo = ( true)
  8324. ? { effect: activeEffect, target, type, key }
  8325. : 0;
  8326. trackEffects(dep, eventInfo);
  8327. }
  8328. }
  8329. function trackEffects(dep, debuggerEventExtraInfo) {
  8330. let shouldTrack = false;
  8331. if (effectTrackDepth <= maxMarkerBits) {
  8332. if (!newTracked(dep)) {
  8333. dep.n |= trackOpBit; // set newly tracked
  8334. shouldTrack = !wasTracked(dep);
  8335. }
  8336. }
  8337. else {
  8338. // Full cleanup mode.
  8339. shouldTrack = !dep.has(activeEffect);
  8340. }
  8341. if (shouldTrack) {
  8342. dep.add(activeEffect);
  8343. activeEffect.deps.push(dep);
  8344. if (( true) && activeEffect.onTrack) {
  8345. activeEffect.onTrack(Object.assign({ effect: activeEffect }, debuggerEventExtraInfo));
  8346. }
  8347. }
  8348. }
  8349. function trigger(target, type, key, newValue, oldValue, oldTarget) {
  8350. const depsMap = targetMap.get(target);
  8351. if (!depsMap) {
  8352. // never been tracked
  8353. return;
  8354. }
  8355. let deps = [];
  8356. if (type === "clear" /* CLEAR */) {
  8357. // collection being cleared
  8358. // trigger all effects for target
  8359. deps = [...depsMap.values()];
  8360. }
  8361. else if (key === 'length' && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isArray)(target)) {
  8362. depsMap.forEach((dep, key) => {
  8363. if (key === 'length' || key >= newValue) {
  8364. deps.push(dep);
  8365. }
  8366. });
  8367. }
  8368. else {
  8369. // schedule runs for SET | ADD | DELETE
  8370. if (key !== void 0) {
  8371. deps.push(depsMap.get(key));
  8372. }
  8373. // also run for iteration key on ADD | DELETE | Map.SET
  8374. switch (type) {
  8375. case "add" /* ADD */:
  8376. if (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isArray)(target)) {
  8377. deps.push(depsMap.get(ITERATE_KEY));
  8378. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isMap)(target)) {
  8379. deps.push(depsMap.get(MAP_KEY_ITERATE_KEY));
  8380. }
  8381. }
  8382. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isIntegerKey)(key)) {
  8383. // new index added to array -> length changes
  8384. deps.push(depsMap.get('length'));
  8385. }
  8386. break;
  8387. case "delete" /* DELETE */:
  8388. if (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isArray)(target)) {
  8389. deps.push(depsMap.get(ITERATE_KEY));
  8390. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isMap)(target)) {
  8391. deps.push(depsMap.get(MAP_KEY_ITERATE_KEY));
  8392. }
  8393. }
  8394. break;
  8395. case "set" /* SET */:
  8396. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isMap)(target)) {
  8397. deps.push(depsMap.get(ITERATE_KEY));
  8398. }
  8399. break;
  8400. }
  8401. }
  8402. const eventInfo = ( true)
  8403. ? { target, type, key, newValue, oldValue, oldTarget }
  8404. : 0;
  8405. if (deps.length === 1) {
  8406. if (deps[0]) {
  8407. if ((true)) {
  8408. triggerEffects(deps[0], eventInfo);
  8409. }
  8410. else {}
  8411. }
  8412. }
  8413. else {
  8414. const effects = [];
  8415. for (const dep of deps) {
  8416. if (dep) {
  8417. effects.push(...dep);
  8418. }
  8419. }
  8420. if ((true)) {
  8421. triggerEffects(createDep(effects), eventInfo);
  8422. }
  8423. else {}
  8424. }
  8425. }
  8426. function triggerEffects(dep, debuggerEventExtraInfo) {
  8427. // spread into array for stabilization
  8428. for (const effect of (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isArray)(dep) ? dep : [...dep]) {
  8429. if (effect !== activeEffect || effect.allowRecurse) {
  8430. if (( true) && effect.onTrigger) {
  8431. effect.onTrigger((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.extend)({ effect }, debuggerEventExtraInfo));
  8432. }
  8433. if (effect.scheduler) {
  8434. effect.scheduler();
  8435. }
  8436. else {
  8437. effect.run();
  8438. }
  8439. }
  8440. }
  8441. }
  8442. const isNonTrackableKeys = /*#__PURE__*/ (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.makeMap)(`__proto__,__v_isRef,__isVue`);
  8443. const builtInSymbols = new Set(Object.getOwnPropertyNames(Symbol)
  8444. .map(key => Symbol[key])
  8445. .filter(_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isSymbol));
  8446. const get = /*#__PURE__*/ createGetter();
  8447. const shallowGet = /*#__PURE__*/ createGetter(false, true);
  8448. const readonlyGet = /*#__PURE__*/ createGetter(true);
  8449. const shallowReadonlyGet = /*#__PURE__*/ createGetter(true, true);
  8450. const arrayInstrumentations = /*#__PURE__*/ createArrayInstrumentations();
  8451. function createArrayInstrumentations() {
  8452. const instrumentations = {};
  8453. ['includes', 'indexOf', 'lastIndexOf'].forEach(key => {
  8454. instrumentations[key] = function (...args) {
  8455. const arr = toRaw(this);
  8456. for (let i = 0, l = this.length; i < l; i++) {
  8457. track(arr, "get" /* GET */, i + '');
  8458. }
  8459. // we run the method using the original args first (which may be reactive)
  8460. const res = arr[key](...args);
  8461. if (res === -1 || res === false) {
  8462. // if that didn't work, run it again using raw values.
  8463. return arr[key](...args.map(toRaw));
  8464. }
  8465. else {
  8466. return res;
  8467. }
  8468. };
  8469. });
  8470. ['push', 'pop', 'shift', 'unshift', 'splice'].forEach(key => {
  8471. instrumentations[key] = function (...args) {
  8472. pauseTracking();
  8473. const res = toRaw(this)[key].apply(this, args);
  8474. resetTracking();
  8475. return res;
  8476. };
  8477. });
  8478. return instrumentations;
  8479. }
  8480. function createGetter(isReadonly = false, shallow = false) {
  8481. return function get(target, key, receiver) {
  8482. if (key === "__v_isReactive" /* IS_REACTIVE */) {
  8483. return !isReadonly;
  8484. }
  8485. else if (key === "__v_isReadonly" /* IS_READONLY */) {
  8486. return isReadonly;
  8487. }
  8488. else if (key === "__v_isShallow" /* IS_SHALLOW */) {
  8489. return shallow;
  8490. }
  8491. else if (key === "__v_raw" /* RAW */ &&
  8492. receiver ===
  8493. (isReadonly
  8494. ? shallow
  8495. ? shallowReadonlyMap
  8496. : readonlyMap
  8497. : shallow
  8498. ? shallowReactiveMap
  8499. : reactiveMap).get(target)) {
  8500. return target;
  8501. }
  8502. const targetIsArray = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isArray)(target);
  8503. if (!isReadonly && targetIsArray && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.hasOwn)(arrayInstrumentations, key)) {
  8504. return Reflect.get(arrayInstrumentations, key, receiver);
  8505. }
  8506. const res = Reflect.get(target, key, receiver);
  8507. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isSymbol)(key) ? builtInSymbols.has(key) : isNonTrackableKeys(key)) {
  8508. return res;
  8509. }
  8510. if (!isReadonly) {
  8511. track(target, "get" /* GET */, key);
  8512. }
  8513. if (shallow) {
  8514. return res;
  8515. }
  8516. if (isRef(res)) {
  8517. // ref unwrapping - does not apply for Array + integer key.
  8518. const shouldUnwrap = !targetIsArray || !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isIntegerKey)(key);
  8519. return shouldUnwrap ? res.value : res;
  8520. }
  8521. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isObject)(res)) {
  8522. // Convert returned value into a proxy as well. we do the isObject check
  8523. // here to avoid invalid value warning. Also need to lazy access readonly
  8524. // and reactive here to avoid circular dependency.
  8525. return isReadonly ? readonly(res) : reactive(res);
  8526. }
  8527. return res;
  8528. };
  8529. }
  8530. const set = /*#__PURE__*/ createSetter();
  8531. const shallowSet = /*#__PURE__*/ createSetter(true);
  8532. function createSetter(shallow = false) {
  8533. return function set(target, key, value, receiver) {
  8534. let oldValue = target[key];
  8535. if (isReadonly(oldValue) && isRef(oldValue) && !isRef(value)) {
  8536. return false;
  8537. }
  8538. if (!shallow && !isReadonly(value)) {
  8539. if (!isShallow(value)) {
  8540. value = toRaw(value);
  8541. oldValue = toRaw(oldValue);
  8542. }
  8543. if (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isArray)(target) && isRef(oldValue) && !isRef(value)) {
  8544. oldValue.value = value;
  8545. return true;
  8546. }
  8547. }
  8548. const hadKey = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isArray)(target) && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isIntegerKey)(key)
  8549. ? Number(key) < target.length
  8550. : (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.hasOwn)(target, key);
  8551. const result = Reflect.set(target, key, value, receiver);
  8552. // don't trigger if target is something up in the prototype chain of original
  8553. if (target === toRaw(receiver)) {
  8554. if (!hadKey) {
  8555. trigger(target, "add" /* ADD */, key, value);
  8556. }
  8557. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.hasChanged)(value, oldValue)) {
  8558. trigger(target, "set" /* SET */, key, value, oldValue);
  8559. }
  8560. }
  8561. return result;
  8562. };
  8563. }
  8564. function deleteProperty(target, key) {
  8565. const hadKey = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.hasOwn)(target, key);
  8566. const oldValue = target[key];
  8567. const result = Reflect.deleteProperty(target, key);
  8568. if (result && hadKey) {
  8569. trigger(target, "delete" /* DELETE */, key, undefined, oldValue);
  8570. }
  8571. return result;
  8572. }
  8573. function has(target, key) {
  8574. const result = Reflect.has(target, key);
  8575. if (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isSymbol)(key) || !builtInSymbols.has(key)) {
  8576. track(target, "has" /* HAS */, key);
  8577. }
  8578. return result;
  8579. }
  8580. function ownKeys(target) {
  8581. track(target, "iterate" /* ITERATE */, (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isArray)(target) ? 'length' : ITERATE_KEY);
  8582. return Reflect.ownKeys(target);
  8583. }
  8584. const mutableHandlers = {
  8585. get,
  8586. set,
  8587. deleteProperty,
  8588. has,
  8589. ownKeys
  8590. };
  8591. const readonlyHandlers = {
  8592. get: readonlyGet,
  8593. set(target, key) {
  8594. if ((true)) {
  8595. console.warn(`Set operation on key "${String(key)}" failed: target is readonly.`, target);
  8596. }
  8597. return true;
  8598. },
  8599. deleteProperty(target, key) {
  8600. if ((true)) {
  8601. console.warn(`Delete operation on key "${String(key)}" failed: target is readonly.`, target);
  8602. }
  8603. return true;
  8604. }
  8605. };
  8606. const shallowReactiveHandlers = /*#__PURE__*/ (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.extend)({}, mutableHandlers, {
  8607. get: shallowGet,
  8608. set: shallowSet
  8609. });
  8610. // Props handlers are special in the sense that it should not unwrap top-level
  8611. // refs (in order to allow refs to be explicitly passed down), but should
  8612. // retain the reactivity of the normal readonly object.
  8613. const shallowReadonlyHandlers = /*#__PURE__*/ (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.extend)({}, readonlyHandlers, {
  8614. get: shallowReadonlyGet
  8615. });
  8616. const toShallow = (value) => value;
  8617. const getProto = (v) => Reflect.getPrototypeOf(v);
  8618. function get$1(target, key, isReadonly = false, isShallow = false) {
  8619. // #1772: readonly(reactive(Map)) should return readonly + reactive version
  8620. // of the value
  8621. target = target["__v_raw" /* RAW */];
  8622. const rawTarget = toRaw(target);
  8623. const rawKey = toRaw(key);
  8624. if (key !== rawKey) {
  8625. !isReadonly && track(rawTarget, "get" /* GET */, key);
  8626. }
  8627. !isReadonly && track(rawTarget, "get" /* GET */, rawKey);
  8628. const { has } = getProto(rawTarget);
  8629. const wrap = isShallow ? toShallow : isReadonly ? toReadonly : toReactive;
  8630. if (has.call(rawTarget, key)) {
  8631. return wrap(target.get(key));
  8632. }
  8633. else if (has.call(rawTarget, rawKey)) {
  8634. return wrap(target.get(rawKey));
  8635. }
  8636. else if (target !== rawTarget) {
  8637. // #3602 readonly(reactive(Map))
  8638. // ensure that the nested reactive `Map` can do tracking for itself
  8639. target.get(key);
  8640. }
  8641. }
  8642. function has$1(key, isReadonly = false) {
  8643. const target = this["__v_raw" /* RAW */];
  8644. const rawTarget = toRaw(target);
  8645. const rawKey = toRaw(key);
  8646. if (key !== rawKey) {
  8647. !isReadonly && track(rawTarget, "has" /* HAS */, key);
  8648. }
  8649. !isReadonly && track(rawTarget, "has" /* HAS */, rawKey);
  8650. return key === rawKey
  8651. ? target.has(key)
  8652. : target.has(key) || target.has(rawKey);
  8653. }
  8654. function size(target, isReadonly = false) {
  8655. target = target["__v_raw" /* RAW */];
  8656. !isReadonly && track(toRaw(target), "iterate" /* ITERATE */, ITERATE_KEY);
  8657. return Reflect.get(target, 'size', target);
  8658. }
  8659. function add(value) {
  8660. value = toRaw(value);
  8661. const target = toRaw(this);
  8662. const proto = getProto(target);
  8663. const hadKey = proto.has.call(target, value);
  8664. if (!hadKey) {
  8665. target.add(value);
  8666. trigger(target, "add" /* ADD */, value, value);
  8667. }
  8668. return this;
  8669. }
  8670. function set$1(key, value) {
  8671. value = toRaw(value);
  8672. const target = toRaw(this);
  8673. const { has, get } = getProto(target);
  8674. let hadKey = has.call(target, key);
  8675. if (!hadKey) {
  8676. key = toRaw(key);
  8677. hadKey = has.call(target, key);
  8678. }
  8679. else if ((true)) {
  8680. checkIdentityKeys(target, has, key);
  8681. }
  8682. const oldValue = get.call(target, key);
  8683. target.set(key, value);
  8684. if (!hadKey) {
  8685. trigger(target, "add" /* ADD */, key, value);
  8686. }
  8687. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.hasChanged)(value, oldValue)) {
  8688. trigger(target, "set" /* SET */, key, value, oldValue);
  8689. }
  8690. return this;
  8691. }
  8692. function deleteEntry(key) {
  8693. const target = toRaw(this);
  8694. const { has, get } = getProto(target);
  8695. let hadKey = has.call(target, key);
  8696. if (!hadKey) {
  8697. key = toRaw(key);
  8698. hadKey = has.call(target, key);
  8699. }
  8700. else if ((true)) {
  8701. checkIdentityKeys(target, has, key);
  8702. }
  8703. const oldValue = get ? get.call(target, key) : undefined;
  8704. // forward the operation before queueing reactions
  8705. const result = target.delete(key);
  8706. if (hadKey) {
  8707. trigger(target, "delete" /* DELETE */, key, undefined, oldValue);
  8708. }
  8709. return result;
  8710. }
  8711. function clear() {
  8712. const target = toRaw(this);
  8713. const hadItems = target.size !== 0;
  8714. const oldTarget = ( true)
  8715. ? (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isMap)(target)
  8716. ? new Map(target)
  8717. : new Set(target)
  8718. : 0;
  8719. // forward the operation before queueing reactions
  8720. const result = target.clear();
  8721. if (hadItems) {
  8722. trigger(target, "clear" /* CLEAR */, undefined, undefined, oldTarget);
  8723. }
  8724. return result;
  8725. }
  8726. function createForEach(isReadonly, isShallow) {
  8727. return function forEach(callback, thisArg) {
  8728. const observed = this;
  8729. const target = observed["__v_raw" /* RAW */];
  8730. const rawTarget = toRaw(target);
  8731. const wrap = isShallow ? toShallow : isReadonly ? toReadonly : toReactive;
  8732. !isReadonly && track(rawTarget, "iterate" /* ITERATE */, ITERATE_KEY);
  8733. return target.forEach((value, key) => {
  8734. // important: make sure the callback is
  8735. // 1. invoked with the reactive map as `this` and 3rd arg
  8736. // 2. the value received should be a corresponding reactive/readonly.
  8737. return callback.call(thisArg, wrap(value), wrap(key), observed);
  8738. });
  8739. };
  8740. }
  8741. function createIterableMethod(method, isReadonly, isShallow) {
  8742. return function (...args) {
  8743. const target = this["__v_raw" /* RAW */];
  8744. const rawTarget = toRaw(target);
  8745. const targetIsMap = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isMap)(rawTarget);
  8746. const isPair = method === 'entries' || (method === Symbol.iterator && targetIsMap);
  8747. const isKeyOnly = method === 'keys' && targetIsMap;
  8748. const innerIterator = target[method](...args);
  8749. const wrap = isShallow ? toShallow : isReadonly ? toReadonly : toReactive;
  8750. !isReadonly &&
  8751. track(rawTarget, "iterate" /* ITERATE */, isKeyOnly ? MAP_KEY_ITERATE_KEY : ITERATE_KEY);
  8752. // return a wrapped iterator which returns observed versions of the
  8753. // values emitted from the real iterator
  8754. return {
  8755. // iterator protocol
  8756. next() {
  8757. const { value, done } = innerIterator.next();
  8758. return done
  8759. ? { value, done }
  8760. : {
  8761. value: isPair ? [wrap(value[0]), wrap(value[1])] : wrap(value),
  8762. done
  8763. };
  8764. },
  8765. // iterable protocol
  8766. [Symbol.iterator]() {
  8767. return this;
  8768. }
  8769. };
  8770. };
  8771. }
  8772. function createReadonlyMethod(type) {
  8773. return function (...args) {
  8774. if ((true)) {
  8775. const key = args[0] ? `on key "${args[0]}" ` : ``;
  8776. console.warn(`${(0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.capitalize)(type)} operation ${key}failed: target is readonly.`, toRaw(this));
  8777. }
  8778. return type === "delete" /* DELETE */ ? false : this;
  8779. };
  8780. }
  8781. function createInstrumentations() {
  8782. const mutableInstrumentations = {
  8783. get(key) {
  8784. return get$1(this, key);
  8785. },
  8786. get size() {
  8787. return size(this);
  8788. },
  8789. has: has$1,
  8790. add,
  8791. set: set$1,
  8792. delete: deleteEntry,
  8793. clear,
  8794. forEach: createForEach(false, false)
  8795. };
  8796. const shallowInstrumentations = {
  8797. get(key) {
  8798. return get$1(this, key, false, true);
  8799. },
  8800. get size() {
  8801. return size(this);
  8802. },
  8803. has: has$1,
  8804. add,
  8805. set: set$1,
  8806. delete: deleteEntry,
  8807. clear,
  8808. forEach: createForEach(false, true)
  8809. };
  8810. const readonlyInstrumentations = {
  8811. get(key) {
  8812. return get$1(this, key, true);
  8813. },
  8814. get size() {
  8815. return size(this, true);
  8816. },
  8817. has(key) {
  8818. return has$1.call(this, key, true);
  8819. },
  8820. add: createReadonlyMethod("add" /* ADD */),
  8821. set: createReadonlyMethod("set" /* SET */),
  8822. delete: createReadonlyMethod("delete" /* DELETE */),
  8823. clear: createReadonlyMethod("clear" /* CLEAR */),
  8824. forEach: createForEach(true, false)
  8825. };
  8826. const shallowReadonlyInstrumentations = {
  8827. get(key) {
  8828. return get$1(this, key, true, true);
  8829. },
  8830. get size() {
  8831. return size(this, true);
  8832. },
  8833. has(key) {
  8834. return has$1.call(this, key, true);
  8835. },
  8836. add: createReadonlyMethod("add" /* ADD */),
  8837. set: createReadonlyMethod("set" /* SET */),
  8838. delete: createReadonlyMethod("delete" /* DELETE */),
  8839. clear: createReadonlyMethod("clear" /* CLEAR */),
  8840. forEach: createForEach(true, true)
  8841. };
  8842. const iteratorMethods = ['keys', 'values', 'entries', Symbol.iterator];
  8843. iteratorMethods.forEach(method => {
  8844. mutableInstrumentations[method] = createIterableMethod(method, false, false);
  8845. readonlyInstrumentations[method] = createIterableMethod(method, true, false);
  8846. shallowInstrumentations[method] = createIterableMethod(method, false, true);
  8847. shallowReadonlyInstrumentations[method] = createIterableMethod(method, true, true);
  8848. });
  8849. return [
  8850. mutableInstrumentations,
  8851. readonlyInstrumentations,
  8852. shallowInstrumentations,
  8853. shallowReadonlyInstrumentations
  8854. ];
  8855. }
  8856. const [mutableInstrumentations, readonlyInstrumentations, shallowInstrumentations, shallowReadonlyInstrumentations] = /* #__PURE__*/ createInstrumentations();
  8857. function createInstrumentationGetter(isReadonly, shallow) {
  8858. const instrumentations = shallow
  8859. ? isReadonly
  8860. ? shallowReadonlyInstrumentations
  8861. : shallowInstrumentations
  8862. : isReadonly
  8863. ? readonlyInstrumentations
  8864. : mutableInstrumentations;
  8865. return (target, key, receiver) => {
  8866. if (key === "__v_isReactive" /* IS_REACTIVE */) {
  8867. return !isReadonly;
  8868. }
  8869. else if (key === "__v_isReadonly" /* IS_READONLY */) {
  8870. return isReadonly;
  8871. }
  8872. else if (key === "__v_raw" /* RAW */) {
  8873. return target;
  8874. }
  8875. return Reflect.get((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.hasOwn)(instrumentations, key) && key in target
  8876. ? instrumentations
  8877. : target, key, receiver);
  8878. };
  8879. }
  8880. const mutableCollectionHandlers = {
  8881. get: /*#__PURE__*/ createInstrumentationGetter(false, false)
  8882. };
  8883. const shallowCollectionHandlers = {
  8884. get: /*#__PURE__*/ createInstrumentationGetter(false, true)
  8885. };
  8886. const readonlyCollectionHandlers = {
  8887. get: /*#__PURE__*/ createInstrumentationGetter(true, false)
  8888. };
  8889. const shallowReadonlyCollectionHandlers = {
  8890. get: /*#__PURE__*/ createInstrumentationGetter(true, true)
  8891. };
  8892. function checkIdentityKeys(target, has, key) {
  8893. const rawKey = toRaw(key);
  8894. if (rawKey !== key && has.call(target, rawKey)) {
  8895. const type = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.toRawType)(target);
  8896. console.warn(`Reactive ${type} contains both the raw and reactive ` +
  8897. `versions of the same object${type === `Map` ? ` as keys` : ``}, ` +
  8898. `which can lead to inconsistencies. ` +
  8899. `Avoid differentiating between the raw and reactive versions ` +
  8900. `of an object and only use the reactive version if possible.`);
  8901. }
  8902. }
  8903. const reactiveMap = new WeakMap();
  8904. const shallowReactiveMap = new WeakMap();
  8905. const readonlyMap = new WeakMap();
  8906. const shallowReadonlyMap = new WeakMap();
  8907. function targetTypeMap(rawType) {
  8908. switch (rawType) {
  8909. case 'Object':
  8910. case 'Array':
  8911. return 1 /* COMMON */;
  8912. case 'Map':
  8913. case 'Set':
  8914. case 'WeakMap':
  8915. case 'WeakSet':
  8916. return 2 /* COLLECTION */;
  8917. default:
  8918. return 0 /* INVALID */;
  8919. }
  8920. }
  8921. function getTargetType(value) {
  8922. return value["__v_skip" /* SKIP */] || !Object.isExtensible(value)
  8923. ? 0 /* INVALID */
  8924. : targetTypeMap((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.toRawType)(value));
  8925. }
  8926. function reactive(target) {
  8927. // if trying to observe a readonly proxy, return the readonly version.
  8928. if (isReadonly(target)) {
  8929. return target;
  8930. }
  8931. return createReactiveObject(target, false, mutableHandlers, mutableCollectionHandlers, reactiveMap);
  8932. }
  8933. /**
  8934. * Return a shallowly-reactive copy of the original object, where only the root
  8935. * level properties are reactive. It also does not auto-unwrap refs (even at the
  8936. * root level).
  8937. */
  8938. function shallowReactive(target) {
  8939. return createReactiveObject(target, false, shallowReactiveHandlers, shallowCollectionHandlers, shallowReactiveMap);
  8940. }
  8941. /**
  8942. * Creates a readonly copy of the original object. Note the returned copy is not
  8943. * made reactive, but `readonly` can be called on an already reactive object.
  8944. */
  8945. function readonly(target) {
  8946. return createReactiveObject(target, true, readonlyHandlers, readonlyCollectionHandlers, readonlyMap);
  8947. }
  8948. /**
  8949. * Returns a reactive-copy of the original object, where only the root level
  8950. * properties are readonly, and does NOT unwrap refs nor recursively convert
  8951. * returned properties.
  8952. * This is used for creating the props proxy object for stateful components.
  8953. */
  8954. function shallowReadonly(target) {
  8955. return createReactiveObject(target, true, shallowReadonlyHandlers, shallowReadonlyCollectionHandlers, shallowReadonlyMap);
  8956. }
  8957. function createReactiveObject(target, isReadonly, baseHandlers, collectionHandlers, proxyMap) {
  8958. if (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isObject)(target)) {
  8959. if ((true)) {
  8960. console.warn(`value cannot be made reactive: ${String(target)}`);
  8961. }
  8962. return target;
  8963. }
  8964. // target is already a Proxy, return it.
  8965. // exception: calling readonly() on a reactive object
  8966. if (target["__v_raw" /* RAW */] &&
  8967. !(isReadonly && target["__v_isReactive" /* IS_REACTIVE */])) {
  8968. return target;
  8969. }
  8970. // target already has corresponding Proxy
  8971. const existingProxy = proxyMap.get(target);
  8972. if (existingProxy) {
  8973. return existingProxy;
  8974. }
  8975. // only a whitelist of value types can be observed.
  8976. const targetType = getTargetType(target);
  8977. if (targetType === 0 /* INVALID */) {
  8978. return target;
  8979. }
  8980. const proxy = new Proxy(target, targetType === 2 /* COLLECTION */ ? collectionHandlers : baseHandlers);
  8981. proxyMap.set(target, proxy);
  8982. return proxy;
  8983. }
  8984. function isReactive(value) {
  8985. if (isReadonly(value)) {
  8986. return isReactive(value["__v_raw" /* RAW */]);
  8987. }
  8988. return !!(value && value["__v_isReactive" /* IS_REACTIVE */]);
  8989. }
  8990. function isReadonly(value) {
  8991. return !!(value && value["__v_isReadonly" /* IS_READONLY */]);
  8992. }
  8993. function isShallow(value) {
  8994. return !!(value && value["__v_isShallow" /* IS_SHALLOW */]);
  8995. }
  8996. function isProxy(value) {
  8997. return isReactive(value) || isReadonly(value);
  8998. }
  8999. function toRaw(observed) {
  9000. const raw = observed && observed["__v_raw" /* RAW */];
  9001. return raw ? toRaw(raw) : observed;
  9002. }
  9003. function markRaw(value) {
  9004. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.def)(value, "__v_skip" /* SKIP */, true);
  9005. return value;
  9006. }
  9007. const toReactive = (value) => (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isObject)(value) ? reactive(value) : value;
  9008. const toReadonly = (value) => (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isObject)(value) ? readonly(value) : value;
  9009. function trackRefValue(ref) {
  9010. if (shouldTrack && activeEffect) {
  9011. ref = toRaw(ref);
  9012. if ((true)) {
  9013. trackEffects(ref.dep || (ref.dep = createDep()), {
  9014. target: ref,
  9015. type: "get" /* GET */,
  9016. key: 'value'
  9017. });
  9018. }
  9019. else {}
  9020. }
  9021. }
  9022. function triggerRefValue(ref, newVal) {
  9023. ref = toRaw(ref);
  9024. if (ref.dep) {
  9025. if ((true)) {
  9026. triggerEffects(ref.dep, {
  9027. target: ref,
  9028. type: "set" /* SET */,
  9029. key: 'value',
  9030. newValue: newVal
  9031. });
  9032. }
  9033. else {}
  9034. }
  9035. }
  9036. function isRef(r) {
  9037. return !!(r && r.__v_isRef === true);
  9038. }
  9039. function ref(value) {
  9040. return createRef(value, false);
  9041. }
  9042. function shallowRef(value) {
  9043. return createRef(value, true);
  9044. }
  9045. function createRef(rawValue, shallow) {
  9046. if (isRef(rawValue)) {
  9047. return rawValue;
  9048. }
  9049. return new RefImpl(rawValue, shallow);
  9050. }
  9051. class RefImpl {
  9052. constructor(value, __v_isShallow) {
  9053. this.__v_isShallow = __v_isShallow;
  9054. this.dep = undefined;
  9055. this.__v_isRef = true;
  9056. this._rawValue = __v_isShallow ? value : toRaw(value);
  9057. this._value = __v_isShallow ? value : toReactive(value);
  9058. }
  9059. get value() {
  9060. trackRefValue(this);
  9061. return this._value;
  9062. }
  9063. set value(newVal) {
  9064. newVal = this.__v_isShallow ? newVal : toRaw(newVal);
  9065. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.hasChanged)(newVal, this._rawValue)) {
  9066. this._rawValue = newVal;
  9067. this._value = this.__v_isShallow ? newVal : toReactive(newVal);
  9068. triggerRefValue(this, newVal);
  9069. }
  9070. }
  9071. }
  9072. function triggerRef(ref) {
  9073. triggerRefValue(ref, ( true) ? ref.value : 0);
  9074. }
  9075. function unref(ref) {
  9076. return isRef(ref) ? ref.value : ref;
  9077. }
  9078. const shallowUnwrapHandlers = {
  9079. get: (target, key, receiver) => unref(Reflect.get(target, key, receiver)),
  9080. set: (target, key, value, receiver) => {
  9081. const oldValue = target[key];
  9082. if (isRef(oldValue) && !isRef(value)) {
  9083. oldValue.value = value;
  9084. return true;
  9085. }
  9086. else {
  9087. return Reflect.set(target, key, value, receiver);
  9088. }
  9089. }
  9090. };
  9091. function proxyRefs(objectWithRefs) {
  9092. return isReactive(objectWithRefs)
  9093. ? objectWithRefs
  9094. : new Proxy(objectWithRefs, shallowUnwrapHandlers);
  9095. }
  9096. class CustomRefImpl {
  9097. constructor(factory) {
  9098. this.dep = undefined;
  9099. this.__v_isRef = true;
  9100. const { get, set } = factory(() => trackRefValue(this), () => triggerRefValue(this));
  9101. this._get = get;
  9102. this._set = set;
  9103. }
  9104. get value() {
  9105. return this._get();
  9106. }
  9107. set value(newVal) {
  9108. this._set(newVal);
  9109. }
  9110. }
  9111. function customRef(factory) {
  9112. return new CustomRefImpl(factory);
  9113. }
  9114. function toRefs(object) {
  9115. if (( true) && !isProxy(object)) {
  9116. console.warn(`toRefs() expects a reactive object but received a plain one.`);
  9117. }
  9118. const ret = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isArray)(object) ? new Array(object.length) : {};
  9119. for (const key in object) {
  9120. ret[key] = toRef(object, key);
  9121. }
  9122. return ret;
  9123. }
  9124. class ObjectRefImpl {
  9125. constructor(_object, _key, _defaultValue) {
  9126. this._object = _object;
  9127. this._key = _key;
  9128. this._defaultValue = _defaultValue;
  9129. this.__v_isRef = true;
  9130. }
  9131. get value() {
  9132. const val = this._object[this._key];
  9133. return val === undefined ? this._defaultValue : val;
  9134. }
  9135. set value(newVal) {
  9136. this._object[this._key] = newVal;
  9137. }
  9138. }
  9139. function toRef(object, key, defaultValue) {
  9140. const val = object[key];
  9141. return isRef(val)
  9142. ? val
  9143. : new ObjectRefImpl(object, key, defaultValue);
  9144. }
  9145. class ComputedRefImpl {
  9146. constructor(getter, _setter, isReadonly, isSSR) {
  9147. this._setter = _setter;
  9148. this.dep = undefined;
  9149. this.__v_isRef = true;
  9150. this._dirty = true;
  9151. this.effect = new ReactiveEffect(getter, () => {
  9152. if (!this._dirty) {
  9153. this._dirty = true;
  9154. triggerRefValue(this);
  9155. }
  9156. });
  9157. this.effect.computed = this;
  9158. this.effect.active = this._cacheable = !isSSR;
  9159. this["__v_isReadonly" /* IS_READONLY */] = isReadonly;
  9160. }
  9161. get value() {
  9162. // the computed ref may get wrapped by other proxies e.g. readonly() #3376
  9163. const self = toRaw(this);
  9164. trackRefValue(self);
  9165. if (self._dirty || !self._cacheable) {
  9166. self._dirty = false;
  9167. self._value = self.effect.run();
  9168. }
  9169. return self._value;
  9170. }
  9171. set value(newValue) {
  9172. this._setter(newValue);
  9173. }
  9174. }
  9175. function computed(getterOrOptions, debugOptions, isSSR = false) {
  9176. let getter;
  9177. let setter;
  9178. const onlyGetter = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_0__.isFunction)(getterOrOptions);
  9179. if (onlyGetter) {
  9180. getter = getterOrOptions;
  9181. setter = ( true)
  9182. ? () => {
  9183. console.warn('Write operation failed: computed value is readonly');
  9184. }
  9185. : 0;
  9186. }
  9187. else {
  9188. getter = getterOrOptions.get;
  9189. setter = getterOrOptions.set;
  9190. }
  9191. const cRef = new ComputedRefImpl(getter, setter, onlyGetter || !setter, isSSR);
  9192. if (( true) && debugOptions && !isSSR) {
  9193. cRef.effect.onTrack = debugOptions.onTrack;
  9194. cRef.effect.onTrigger = debugOptions.onTrigger;
  9195. }
  9196. return cRef;
  9197. }
  9198. var _a;
  9199. const tick = Promise.resolve();
  9200. const queue = [];
  9201. let queued = false;
  9202. const scheduler = (fn) => {
  9203. queue.push(fn);
  9204. if (!queued) {
  9205. queued = true;
  9206. tick.then(flush);
  9207. }
  9208. };
  9209. const flush = () => {
  9210. for (let i = 0; i < queue.length; i++) {
  9211. queue[i]();
  9212. }
  9213. queue.length = 0;
  9214. queued = false;
  9215. };
  9216. class DeferredComputedRefImpl {
  9217. constructor(getter) {
  9218. this.dep = undefined;
  9219. this._dirty = true;
  9220. this.__v_isRef = true;
  9221. this[_a] = true;
  9222. let compareTarget;
  9223. let hasCompareTarget = false;
  9224. let scheduled = false;
  9225. this.effect = new ReactiveEffect(getter, (computedTrigger) => {
  9226. if (this.dep) {
  9227. if (computedTrigger) {
  9228. compareTarget = this._value;
  9229. hasCompareTarget = true;
  9230. }
  9231. else if (!scheduled) {
  9232. const valueToCompare = hasCompareTarget ? compareTarget : this._value;
  9233. scheduled = true;
  9234. hasCompareTarget = false;
  9235. scheduler(() => {
  9236. if (this.effect.active && this._get() !== valueToCompare) {
  9237. triggerRefValue(this);
  9238. }
  9239. scheduled = false;
  9240. });
  9241. }
  9242. // chained upstream computeds are notified synchronously to ensure
  9243. // value invalidation in case of sync access; normal effects are
  9244. // deferred to be triggered in scheduler.
  9245. for (const e of this.dep) {
  9246. if (e.computed instanceof DeferredComputedRefImpl) {
  9247. e.scheduler(true /* computedTrigger */);
  9248. }
  9249. }
  9250. }
  9251. this._dirty = true;
  9252. });
  9253. this.effect.computed = this;
  9254. }
  9255. _get() {
  9256. if (this._dirty) {
  9257. this._dirty = false;
  9258. return (this._value = this.effect.run());
  9259. }
  9260. return this._value;
  9261. }
  9262. get value() {
  9263. trackRefValue(this);
  9264. // the computed ref may get wrapped by other proxies e.g. readonly() #3376
  9265. return toRaw(this)._get();
  9266. }
  9267. }
  9268. _a = "__v_isReadonly" /* IS_READONLY */;
  9269. function deferredComputed(getter) {
  9270. return new DeferredComputedRefImpl(getter);
  9271. }
  9272. /***/ }),
  9273. /***/ "./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js":
  9274. /*!*************************************************************************!*\
  9275. !*** ./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js ***!
  9276. \*************************************************************************/
  9277. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  9278. "use strict";
  9279. __webpack_require__.r(__webpack_exports__);
  9280. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  9281. /* harmony export */ "BaseTransition": () => (/* binding */ BaseTransition),
  9282. /* harmony export */ "Comment": () => (/* binding */ Comment),
  9283. /* harmony export */ "EffectScope": () => (/* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.EffectScope),
  9284. /* harmony export */ "Fragment": () => (/* binding */ Fragment),
  9285. /* harmony export */ "KeepAlive": () => (/* binding */ KeepAlive),
  9286. /* harmony export */ "ReactiveEffect": () => (/* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.ReactiveEffect),
  9287. /* harmony export */ "Static": () => (/* binding */ Static),
  9288. /* harmony export */ "Suspense": () => (/* binding */ Suspense),
  9289. /* harmony export */ "Teleport": () => (/* binding */ Teleport),
  9290. /* harmony export */ "Text": () => (/* binding */ Text),
  9291. /* harmony export */ "callWithAsyncErrorHandling": () => (/* binding */ callWithAsyncErrorHandling),
  9292. /* harmony export */ "callWithErrorHandling": () => (/* binding */ callWithErrorHandling),
  9293. /* harmony export */ "camelize": () => (/* reexport safe */ _vue_shared__WEBPACK_IMPORTED_MODULE_1__.camelize),
  9294. /* harmony export */ "capitalize": () => (/* reexport safe */ _vue_shared__WEBPACK_IMPORTED_MODULE_1__.capitalize),
  9295. /* harmony export */ "cloneVNode": () => (/* binding */ cloneVNode),
  9296. /* harmony export */ "compatUtils": () => (/* binding */ compatUtils),
  9297. /* harmony export */ "computed": () => (/* binding */ computed),
  9298. /* harmony export */ "createBlock": () => (/* binding */ createBlock),
  9299. /* harmony export */ "createCommentVNode": () => (/* binding */ createCommentVNode),
  9300. /* harmony export */ "createElementBlock": () => (/* binding */ createElementBlock),
  9301. /* harmony export */ "createElementVNode": () => (/* binding */ createBaseVNode),
  9302. /* harmony export */ "createHydrationRenderer": () => (/* binding */ createHydrationRenderer),
  9303. /* harmony export */ "createPropsRestProxy": () => (/* binding */ createPropsRestProxy),
  9304. /* harmony export */ "createRenderer": () => (/* binding */ createRenderer),
  9305. /* harmony export */ "createSlots": () => (/* binding */ createSlots),
  9306. /* harmony export */ "createStaticVNode": () => (/* binding */ createStaticVNode),
  9307. /* harmony export */ "createTextVNode": () => (/* binding */ createTextVNode),
  9308. /* harmony export */ "createVNode": () => (/* binding */ createVNode),
  9309. /* harmony export */ "customRef": () => (/* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.customRef),
  9310. /* harmony export */ "defineAsyncComponent": () => (/* binding */ defineAsyncComponent),
  9311. /* harmony export */ "defineComponent": () => (/* binding */ defineComponent),
  9312. /* harmony export */ "defineEmits": () => (/* binding */ defineEmits),
  9313. /* harmony export */ "defineExpose": () => (/* binding */ defineExpose),
  9314. /* harmony export */ "defineProps": () => (/* binding */ defineProps),
  9315. /* harmony export */ "devtools": () => (/* binding */ devtools),
  9316. /* harmony export */ "effect": () => (/* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.effect),
  9317. /* harmony export */ "effectScope": () => (/* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.effectScope),
  9318. /* harmony export */ "getCurrentInstance": () => (/* binding */ getCurrentInstance),
  9319. /* harmony export */ "getCurrentScope": () => (/* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.getCurrentScope),
  9320. /* harmony export */ "getTransitionRawChildren": () => (/* binding */ getTransitionRawChildren),
  9321. /* harmony export */ "guardReactiveProps": () => (/* binding */ guardReactiveProps),
  9322. /* harmony export */ "h": () => (/* binding */ h),
  9323. /* harmony export */ "handleError": () => (/* binding */ handleError),
  9324. /* harmony export */ "initCustomFormatter": () => (/* binding */ initCustomFormatter),
  9325. /* harmony export */ "inject": () => (/* binding */ inject),
  9326. /* harmony export */ "isMemoSame": () => (/* binding */ isMemoSame),
  9327. /* harmony export */ "isProxy": () => (/* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isProxy),
  9328. /* harmony export */ "isReactive": () => (/* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isReactive),
  9329. /* harmony export */ "isReadonly": () => (/* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isReadonly),
  9330. /* harmony export */ "isRef": () => (/* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isRef),
  9331. /* harmony export */ "isRuntimeOnly": () => (/* binding */ isRuntimeOnly),
  9332. /* harmony export */ "isShallow": () => (/* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isShallow),
  9333. /* harmony export */ "isVNode": () => (/* binding */ isVNode),
  9334. /* harmony export */ "markRaw": () => (/* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.markRaw),
  9335. /* harmony export */ "mergeDefaults": () => (/* binding */ mergeDefaults),
  9336. /* harmony export */ "mergeProps": () => (/* binding */ mergeProps),
  9337. /* harmony export */ "nextTick": () => (/* binding */ nextTick),
  9338. /* harmony export */ "normalizeClass": () => (/* reexport safe */ _vue_shared__WEBPACK_IMPORTED_MODULE_1__.normalizeClass),
  9339. /* harmony export */ "normalizeProps": () => (/* reexport safe */ _vue_shared__WEBPACK_IMPORTED_MODULE_1__.normalizeProps),
  9340. /* harmony export */ "normalizeStyle": () => (/* reexport safe */ _vue_shared__WEBPACK_IMPORTED_MODULE_1__.normalizeStyle),
  9341. /* harmony export */ "onActivated": () => (/* binding */ onActivated),
  9342. /* harmony export */ "onBeforeMount": () => (/* binding */ onBeforeMount),
  9343. /* harmony export */ "onBeforeUnmount": () => (/* binding */ onBeforeUnmount),
  9344. /* harmony export */ "onBeforeUpdate": () => (/* binding */ onBeforeUpdate),
  9345. /* harmony export */ "onDeactivated": () => (/* binding */ onDeactivated),
  9346. /* harmony export */ "onErrorCaptured": () => (/* binding */ onErrorCaptured),
  9347. /* harmony export */ "onMounted": () => (/* binding */ onMounted),
  9348. /* harmony export */ "onRenderTracked": () => (/* binding */ onRenderTracked),
  9349. /* harmony export */ "onRenderTriggered": () => (/* binding */ onRenderTriggered),
  9350. /* harmony export */ "onScopeDispose": () => (/* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.onScopeDispose),
  9351. /* harmony export */ "onServerPrefetch": () => (/* binding */ onServerPrefetch),
  9352. /* harmony export */ "onUnmounted": () => (/* binding */ onUnmounted),
  9353. /* harmony export */ "onUpdated": () => (/* binding */ onUpdated),
  9354. /* harmony export */ "openBlock": () => (/* binding */ openBlock),
  9355. /* harmony export */ "popScopeId": () => (/* binding */ popScopeId),
  9356. /* harmony export */ "provide": () => (/* binding */ provide),
  9357. /* harmony export */ "proxyRefs": () => (/* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.proxyRefs),
  9358. /* harmony export */ "pushScopeId": () => (/* binding */ pushScopeId),
  9359. /* harmony export */ "queuePostFlushCb": () => (/* binding */ queuePostFlushCb),
  9360. /* harmony export */ "reactive": () => (/* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.reactive),
  9361. /* harmony export */ "readonly": () => (/* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.readonly),
  9362. /* harmony export */ "ref": () => (/* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.ref),
  9363. /* harmony export */ "registerRuntimeCompiler": () => (/* binding */ registerRuntimeCompiler),
  9364. /* harmony export */ "renderList": () => (/* binding */ renderList),
  9365. /* harmony export */ "renderSlot": () => (/* binding */ renderSlot),
  9366. /* harmony export */ "resolveComponent": () => (/* binding */ resolveComponent),
  9367. /* harmony export */ "resolveDirective": () => (/* binding */ resolveDirective),
  9368. /* harmony export */ "resolveDynamicComponent": () => (/* binding */ resolveDynamicComponent),
  9369. /* harmony export */ "resolveFilter": () => (/* binding */ resolveFilter),
  9370. /* harmony export */ "resolveTransitionHooks": () => (/* binding */ resolveTransitionHooks),
  9371. /* harmony export */ "setBlockTracking": () => (/* binding */ setBlockTracking),
  9372. /* harmony export */ "setDevtoolsHook": () => (/* binding */ setDevtoolsHook),
  9373. /* harmony export */ "setTransitionHooks": () => (/* binding */ setTransitionHooks),
  9374. /* harmony export */ "shallowReactive": () => (/* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.shallowReactive),
  9375. /* harmony export */ "shallowReadonly": () => (/* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.shallowReadonly),
  9376. /* harmony export */ "shallowRef": () => (/* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.shallowRef),
  9377. /* harmony export */ "ssrContextKey": () => (/* binding */ ssrContextKey),
  9378. /* harmony export */ "ssrUtils": () => (/* binding */ ssrUtils),
  9379. /* harmony export */ "stop": () => (/* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.stop),
  9380. /* harmony export */ "toDisplayString": () => (/* reexport safe */ _vue_shared__WEBPACK_IMPORTED_MODULE_1__.toDisplayString),
  9381. /* harmony export */ "toHandlerKey": () => (/* reexport safe */ _vue_shared__WEBPACK_IMPORTED_MODULE_1__.toHandlerKey),
  9382. /* harmony export */ "toHandlers": () => (/* binding */ toHandlers),
  9383. /* harmony export */ "toRaw": () => (/* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.toRaw),
  9384. /* harmony export */ "toRef": () => (/* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.toRef),
  9385. /* harmony export */ "toRefs": () => (/* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.toRefs),
  9386. /* harmony export */ "transformVNodeArgs": () => (/* binding */ transformVNodeArgs),
  9387. /* harmony export */ "triggerRef": () => (/* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.triggerRef),
  9388. /* harmony export */ "unref": () => (/* reexport safe */ _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.unref),
  9389. /* harmony export */ "useAttrs": () => (/* binding */ useAttrs),
  9390. /* harmony export */ "useSSRContext": () => (/* binding */ useSSRContext),
  9391. /* harmony export */ "useSlots": () => (/* binding */ useSlots),
  9392. /* harmony export */ "useTransitionState": () => (/* binding */ useTransitionState),
  9393. /* harmony export */ "version": () => (/* binding */ version),
  9394. /* harmony export */ "warn": () => (/* binding */ warn),
  9395. /* harmony export */ "watch": () => (/* binding */ watch),
  9396. /* harmony export */ "watchEffect": () => (/* binding */ watchEffect),
  9397. /* harmony export */ "watchPostEffect": () => (/* binding */ watchPostEffect),
  9398. /* harmony export */ "watchSyncEffect": () => (/* binding */ watchSyncEffect),
  9399. /* harmony export */ "withAsyncContext": () => (/* binding */ withAsyncContext),
  9400. /* harmony export */ "withCtx": () => (/* binding */ withCtx),
  9401. /* harmony export */ "withDefaults": () => (/* binding */ withDefaults),
  9402. /* harmony export */ "withDirectives": () => (/* binding */ withDirectives),
  9403. /* harmony export */ "withMemo": () => (/* binding */ withMemo),
  9404. /* harmony export */ "withScopeId": () => (/* binding */ withScopeId)
  9405. /* harmony export */ });
  9406. /* harmony import */ var _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @vue/reactivity */ "./node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js");
  9407. /* harmony import */ var _vue_shared__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @vue/shared */ "./node_modules/@vue/shared/dist/shared.esm-bundler.js");
  9408. const stack = [];
  9409. function pushWarningContext(vnode) {
  9410. stack.push(vnode);
  9411. }
  9412. function popWarningContext() {
  9413. stack.pop();
  9414. }
  9415. function warn(msg, ...args) {
  9416. // avoid props formatting or warn handler tracking deps that might be mutated
  9417. // during patch, leading to infinite recursion.
  9418. (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.pauseTracking)();
  9419. const instance = stack.length ? stack[stack.length - 1].component : null;
  9420. const appWarnHandler = instance && instance.appContext.config.warnHandler;
  9421. const trace = getComponentTrace();
  9422. if (appWarnHandler) {
  9423. callWithErrorHandling(appWarnHandler, instance, 11 /* APP_WARN_HANDLER */, [
  9424. msg + args.join(''),
  9425. instance && instance.proxy,
  9426. trace
  9427. .map(({ vnode }) => `at <${formatComponentName(instance, vnode.type)}>`)
  9428. .join('\n'),
  9429. trace
  9430. ]);
  9431. }
  9432. else {
  9433. const warnArgs = [`[Vue warn]: ${msg}`, ...args];
  9434. /* istanbul ignore if */
  9435. if (trace.length &&
  9436. // avoid spamming console during tests
  9437. !false) {
  9438. warnArgs.push(`\n`, ...formatTrace(trace));
  9439. }
  9440. console.warn(...warnArgs);
  9441. }
  9442. (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.resetTracking)();
  9443. }
  9444. function getComponentTrace() {
  9445. let currentVNode = stack[stack.length - 1];
  9446. if (!currentVNode) {
  9447. return [];
  9448. }
  9449. // we can't just use the stack because it will be incomplete during updates
  9450. // that did not start from the root. Re-construct the parent chain using
  9451. // instance parent pointers.
  9452. const normalizedStack = [];
  9453. while (currentVNode) {
  9454. const last = normalizedStack[0];
  9455. if (last && last.vnode === currentVNode) {
  9456. last.recurseCount++;
  9457. }
  9458. else {
  9459. normalizedStack.push({
  9460. vnode: currentVNode,
  9461. recurseCount: 0
  9462. });
  9463. }
  9464. const parentInstance = currentVNode.component && currentVNode.component.parent;
  9465. currentVNode = parentInstance && parentInstance.vnode;
  9466. }
  9467. return normalizedStack;
  9468. }
  9469. /* istanbul ignore next */
  9470. function formatTrace(trace) {
  9471. const logs = [];
  9472. trace.forEach((entry, i) => {
  9473. logs.push(...(i === 0 ? [] : [`\n`]), ...formatTraceEntry(entry));
  9474. });
  9475. return logs;
  9476. }
  9477. function formatTraceEntry({ vnode, recurseCount }) {
  9478. const postfix = recurseCount > 0 ? `... (${recurseCount} recursive calls)` : ``;
  9479. const isRoot = vnode.component ? vnode.component.parent == null : false;
  9480. const open = ` at <${formatComponentName(vnode.component, vnode.type, isRoot)}`;
  9481. const close = `>` + postfix;
  9482. return vnode.props
  9483. ? [open, ...formatProps(vnode.props), close]
  9484. : [open + close];
  9485. }
  9486. /* istanbul ignore next */
  9487. function formatProps(props) {
  9488. const res = [];
  9489. const keys = Object.keys(props);
  9490. keys.slice(0, 3).forEach(key => {
  9491. res.push(...formatProp(key, props[key]));
  9492. });
  9493. if (keys.length > 3) {
  9494. res.push(` ...`);
  9495. }
  9496. return res;
  9497. }
  9498. /* istanbul ignore next */
  9499. function formatProp(key, value, raw) {
  9500. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(value)) {
  9501. value = JSON.stringify(value);
  9502. return raw ? value : [`${key}=${value}`];
  9503. }
  9504. else if (typeof value === 'number' ||
  9505. typeof value === 'boolean' ||
  9506. value == null) {
  9507. return raw ? value : [`${key}=${value}`];
  9508. }
  9509. else if ((0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isRef)(value)) {
  9510. value = formatProp(key, (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.toRaw)(value.value), true);
  9511. return raw ? value : [`${key}=Ref<`, value, `>`];
  9512. }
  9513. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(value)) {
  9514. return [`${key}=fn${value.name ? `<${value.name}>` : ``}`];
  9515. }
  9516. else {
  9517. value = (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.toRaw)(value);
  9518. return raw ? value : [`${key}=`, value];
  9519. }
  9520. }
  9521. const ErrorTypeStrings = {
  9522. ["sp" /* SERVER_PREFETCH */]: 'serverPrefetch hook',
  9523. ["bc" /* BEFORE_CREATE */]: 'beforeCreate hook',
  9524. ["c" /* CREATED */]: 'created hook',
  9525. ["bm" /* BEFORE_MOUNT */]: 'beforeMount hook',
  9526. ["m" /* MOUNTED */]: 'mounted hook',
  9527. ["bu" /* BEFORE_UPDATE */]: 'beforeUpdate hook',
  9528. ["u" /* UPDATED */]: 'updated',
  9529. ["bum" /* BEFORE_UNMOUNT */]: 'beforeUnmount hook',
  9530. ["um" /* UNMOUNTED */]: 'unmounted hook',
  9531. ["a" /* ACTIVATED */]: 'activated hook',
  9532. ["da" /* DEACTIVATED */]: 'deactivated hook',
  9533. ["ec" /* ERROR_CAPTURED */]: 'errorCaptured hook',
  9534. ["rtc" /* RENDER_TRACKED */]: 'renderTracked hook',
  9535. ["rtg" /* RENDER_TRIGGERED */]: 'renderTriggered hook',
  9536. [0 /* SETUP_FUNCTION */]: 'setup function',
  9537. [1 /* RENDER_FUNCTION */]: 'render function',
  9538. [2 /* WATCH_GETTER */]: 'watcher getter',
  9539. [3 /* WATCH_CALLBACK */]: 'watcher callback',
  9540. [4 /* WATCH_CLEANUP */]: 'watcher cleanup function',
  9541. [5 /* NATIVE_EVENT_HANDLER */]: 'native event handler',
  9542. [6 /* COMPONENT_EVENT_HANDLER */]: 'component event handler',
  9543. [7 /* VNODE_HOOK */]: 'vnode hook',
  9544. [8 /* DIRECTIVE_HOOK */]: 'directive hook',
  9545. [9 /* TRANSITION_HOOK */]: 'transition hook',
  9546. [10 /* APP_ERROR_HANDLER */]: 'app errorHandler',
  9547. [11 /* APP_WARN_HANDLER */]: 'app warnHandler',
  9548. [12 /* FUNCTION_REF */]: 'ref function',
  9549. [13 /* ASYNC_COMPONENT_LOADER */]: 'async component loader',
  9550. [14 /* SCHEDULER */]: 'scheduler flush. This is likely a Vue internals bug. ' +
  9551. 'Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core'
  9552. };
  9553. function callWithErrorHandling(fn, instance, type, args) {
  9554. let res;
  9555. try {
  9556. res = args ? fn(...args) : fn();
  9557. }
  9558. catch (err) {
  9559. handleError(err, instance, type);
  9560. }
  9561. return res;
  9562. }
  9563. function callWithAsyncErrorHandling(fn, instance, type, args) {
  9564. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(fn)) {
  9565. const res = callWithErrorHandling(fn, instance, type, args);
  9566. if (res && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isPromise)(res)) {
  9567. res.catch(err => {
  9568. handleError(err, instance, type);
  9569. });
  9570. }
  9571. return res;
  9572. }
  9573. const values = [];
  9574. for (let i = 0; i < fn.length; i++) {
  9575. values.push(callWithAsyncErrorHandling(fn[i], instance, type, args));
  9576. }
  9577. return values;
  9578. }
  9579. function handleError(err, instance, type, throwInDev = true) {
  9580. const contextVNode = instance ? instance.vnode : null;
  9581. if (instance) {
  9582. let cur = instance.parent;
  9583. // the exposed instance is the render proxy to keep it consistent with 2.x
  9584. const exposedInstance = instance.proxy;
  9585. // in production the hook receives only the error code
  9586. const errorInfo = ( true) ? ErrorTypeStrings[type] : 0;
  9587. while (cur) {
  9588. const errorCapturedHooks = cur.ec;
  9589. if (errorCapturedHooks) {
  9590. for (let i = 0; i < errorCapturedHooks.length; i++) {
  9591. if (errorCapturedHooks[i](err, exposedInstance, errorInfo) === false) {
  9592. return;
  9593. }
  9594. }
  9595. }
  9596. cur = cur.parent;
  9597. }
  9598. // app-level handling
  9599. const appErrorHandler = instance.appContext.config.errorHandler;
  9600. if (appErrorHandler) {
  9601. callWithErrorHandling(appErrorHandler, null, 10 /* APP_ERROR_HANDLER */, [err, exposedInstance, errorInfo]);
  9602. return;
  9603. }
  9604. }
  9605. logError(err, type, contextVNode, throwInDev);
  9606. }
  9607. function logError(err, type, contextVNode, throwInDev = true) {
  9608. if ((true)) {
  9609. const info = ErrorTypeStrings[type];
  9610. if (contextVNode) {
  9611. pushWarningContext(contextVNode);
  9612. }
  9613. warn(`Unhandled error${info ? ` during execution of ${info}` : ``}`);
  9614. if (contextVNode) {
  9615. popWarningContext();
  9616. }
  9617. // crash in dev by default so it's more noticeable
  9618. if (throwInDev) {
  9619. throw err;
  9620. }
  9621. else {
  9622. console.error(err);
  9623. }
  9624. }
  9625. else {}
  9626. }
  9627. let isFlushing = false;
  9628. let isFlushPending = false;
  9629. const queue = [];
  9630. let flushIndex = 0;
  9631. const pendingPreFlushCbs = [];
  9632. let activePreFlushCbs = null;
  9633. let preFlushIndex = 0;
  9634. const pendingPostFlushCbs = [];
  9635. let activePostFlushCbs = null;
  9636. let postFlushIndex = 0;
  9637. const resolvedPromise = Promise.resolve();
  9638. let currentFlushPromise = null;
  9639. let currentPreFlushParentJob = null;
  9640. const RECURSION_LIMIT = 100;
  9641. function nextTick(fn) {
  9642. const p = currentFlushPromise || resolvedPromise;
  9643. return fn ? p.then(this ? fn.bind(this) : fn) : p;
  9644. }
  9645. // #2768
  9646. // Use binary-search to find a suitable position in the queue,
  9647. // so that the queue maintains the increasing order of job's id,
  9648. // which can prevent the job from being skipped and also can avoid repeated patching.
  9649. function findInsertionIndex(id) {
  9650. // the start index should be `flushIndex + 1`
  9651. let start = flushIndex + 1;
  9652. let end = queue.length;
  9653. while (start < end) {
  9654. const middle = (start + end) >>> 1;
  9655. const middleJobId = getId(queue[middle]);
  9656. middleJobId < id ? (start = middle + 1) : (end = middle);
  9657. }
  9658. return start;
  9659. }
  9660. function queueJob(job) {
  9661. // the dedupe search uses the startIndex argument of Array.includes()
  9662. // by default the search index includes the current job that is being run
  9663. // so it cannot recursively trigger itself again.
  9664. // if the job is a watch() callback, the search will start with a +1 index to
  9665. // allow it recursively trigger itself - it is the user's responsibility to
  9666. // ensure it doesn't end up in an infinite loop.
  9667. if ((!queue.length ||
  9668. !queue.includes(job, isFlushing && job.allowRecurse ? flushIndex + 1 : flushIndex)) &&
  9669. job !== currentPreFlushParentJob) {
  9670. if (job.id == null) {
  9671. queue.push(job);
  9672. }
  9673. else {
  9674. queue.splice(findInsertionIndex(job.id), 0, job);
  9675. }
  9676. queueFlush();
  9677. }
  9678. }
  9679. function queueFlush() {
  9680. if (!isFlushing && !isFlushPending) {
  9681. isFlushPending = true;
  9682. currentFlushPromise = resolvedPromise.then(flushJobs);
  9683. }
  9684. }
  9685. function invalidateJob(job) {
  9686. const i = queue.indexOf(job);
  9687. if (i > flushIndex) {
  9688. queue.splice(i, 1);
  9689. }
  9690. }
  9691. function queueCb(cb, activeQueue, pendingQueue, index) {
  9692. if (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(cb)) {
  9693. if (!activeQueue ||
  9694. !activeQueue.includes(cb, cb.allowRecurse ? index + 1 : index)) {
  9695. pendingQueue.push(cb);
  9696. }
  9697. }
  9698. else {
  9699. // if cb is an array, it is a component lifecycle hook which can only be
  9700. // triggered by a job, which is already deduped in the main queue, so
  9701. // we can skip duplicate check here to improve perf
  9702. pendingQueue.push(...cb);
  9703. }
  9704. queueFlush();
  9705. }
  9706. function queuePreFlushCb(cb) {
  9707. queueCb(cb, activePreFlushCbs, pendingPreFlushCbs, preFlushIndex);
  9708. }
  9709. function queuePostFlushCb(cb) {
  9710. queueCb(cb, activePostFlushCbs, pendingPostFlushCbs, postFlushIndex);
  9711. }
  9712. function flushPreFlushCbs(seen, parentJob = null) {
  9713. if (pendingPreFlushCbs.length) {
  9714. currentPreFlushParentJob = parentJob;
  9715. activePreFlushCbs = [...new Set(pendingPreFlushCbs)];
  9716. pendingPreFlushCbs.length = 0;
  9717. if ((true)) {
  9718. seen = seen || new Map();
  9719. }
  9720. for (preFlushIndex = 0; preFlushIndex < activePreFlushCbs.length; preFlushIndex++) {
  9721. if (( true) &&
  9722. checkRecursiveUpdates(seen, activePreFlushCbs[preFlushIndex])) {
  9723. continue;
  9724. }
  9725. activePreFlushCbs[preFlushIndex]();
  9726. }
  9727. activePreFlushCbs = null;
  9728. preFlushIndex = 0;
  9729. currentPreFlushParentJob = null;
  9730. // recursively flush until it drains
  9731. flushPreFlushCbs(seen, parentJob);
  9732. }
  9733. }
  9734. function flushPostFlushCbs(seen) {
  9735. if (pendingPostFlushCbs.length) {
  9736. const deduped = [...new Set(pendingPostFlushCbs)];
  9737. pendingPostFlushCbs.length = 0;
  9738. // #1947 already has active queue, nested flushPostFlushCbs call
  9739. if (activePostFlushCbs) {
  9740. activePostFlushCbs.push(...deduped);
  9741. return;
  9742. }
  9743. activePostFlushCbs = deduped;
  9744. if ((true)) {
  9745. seen = seen || new Map();
  9746. }
  9747. activePostFlushCbs.sort((a, b) => getId(a) - getId(b));
  9748. for (postFlushIndex = 0; postFlushIndex < activePostFlushCbs.length; postFlushIndex++) {
  9749. if (( true) &&
  9750. checkRecursiveUpdates(seen, activePostFlushCbs[postFlushIndex])) {
  9751. continue;
  9752. }
  9753. activePostFlushCbs[postFlushIndex]();
  9754. }
  9755. activePostFlushCbs = null;
  9756. postFlushIndex = 0;
  9757. }
  9758. }
  9759. const getId = (job) => job.id == null ? Infinity : job.id;
  9760. function flushJobs(seen) {
  9761. isFlushPending = false;
  9762. isFlushing = true;
  9763. if ((true)) {
  9764. seen = seen || new Map();
  9765. }
  9766. flushPreFlushCbs(seen);
  9767. // Sort queue before flush.
  9768. // This ensures that:
  9769. // 1. Components are updated from parent to child. (because parent is always
  9770. // created before the child so its render effect will have smaller
  9771. // priority number)
  9772. // 2. If a component is unmounted during a parent component's update,
  9773. // its update can be skipped.
  9774. queue.sort((a, b) => getId(a) - getId(b));
  9775. // conditional usage of checkRecursiveUpdate must be determined out of
  9776. // try ... catch block since Rollup by default de-optimizes treeshaking
  9777. // inside try-catch. This can leave all warning code unshaked. Although
  9778. // they would get eventually shaken by a minifier like terser, some minifiers
  9779. // would fail to do that (e.g. https://github.com/evanw/esbuild/issues/1610)
  9780. const check = ( true)
  9781. ? (job) => checkRecursiveUpdates(seen, job)
  9782. : 0;
  9783. try {
  9784. for (flushIndex = 0; flushIndex < queue.length; flushIndex++) {
  9785. const job = queue[flushIndex];
  9786. if (job && job.active !== false) {
  9787. if (( true) && check(job)) {
  9788. continue;
  9789. }
  9790. // console.log(`running:`, job.id)
  9791. callWithErrorHandling(job, null, 14 /* SCHEDULER */);
  9792. }
  9793. }
  9794. }
  9795. finally {
  9796. flushIndex = 0;
  9797. queue.length = 0;
  9798. flushPostFlushCbs(seen);
  9799. isFlushing = false;
  9800. currentFlushPromise = null;
  9801. // some postFlushCb queued jobs!
  9802. // keep flushing until it drains.
  9803. if (queue.length ||
  9804. pendingPreFlushCbs.length ||
  9805. pendingPostFlushCbs.length) {
  9806. flushJobs(seen);
  9807. }
  9808. }
  9809. }
  9810. function checkRecursiveUpdates(seen, fn) {
  9811. if (!seen.has(fn)) {
  9812. seen.set(fn, 1);
  9813. }
  9814. else {
  9815. const count = seen.get(fn);
  9816. if (count > RECURSION_LIMIT) {
  9817. const instance = fn.ownerInstance;
  9818. const componentName = instance && getComponentName(instance.type);
  9819. warn(`Maximum recursive updates exceeded${componentName ? ` in component <${componentName}>` : ``}. ` +
  9820. `This means you have a reactive effect that is mutating its own ` +
  9821. `dependencies and thus recursively triggering itself. Possible sources ` +
  9822. `include component template, render function, updated hook or ` +
  9823. `watcher source function.`);
  9824. return true;
  9825. }
  9826. else {
  9827. seen.set(fn, count + 1);
  9828. }
  9829. }
  9830. }
  9831. /* eslint-disable no-restricted-globals */
  9832. let isHmrUpdating = false;
  9833. const hmrDirtyComponents = new Set();
  9834. // Expose the HMR runtime on the global object
  9835. // This makes it entirely tree-shakable without polluting the exports and makes
  9836. // it easier to be used in toolings like vue-loader
  9837. // Note: for a component to be eligible for HMR it also needs the __hmrId option
  9838. // to be set so that its instances can be registered / removed.
  9839. if ((true)) {
  9840. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.getGlobalThis)().__VUE_HMR_RUNTIME__ = {
  9841. createRecord: tryWrap(createRecord),
  9842. rerender: tryWrap(rerender),
  9843. reload: tryWrap(reload)
  9844. };
  9845. }
  9846. const map = new Map();
  9847. function registerHMR(instance) {
  9848. const id = instance.type.__hmrId;
  9849. let record = map.get(id);
  9850. if (!record) {
  9851. createRecord(id, instance.type);
  9852. record = map.get(id);
  9853. }
  9854. record.instances.add(instance);
  9855. }
  9856. function unregisterHMR(instance) {
  9857. map.get(instance.type.__hmrId).instances.delete(instance);
  9858. }
  9859. function createRecord(id, initialDef) {
  9860. if (map.has(id)) {
  9861. return false;
  9862. }
  9863. map.set(id, {
  9864. initialDef: normalizeClassComponent(initialDef),
  9865. instances: new Set()
  9866. });
  9867. return true;
  9868. }
  9869. function normalizeClassComponent(component) {
  9870. return isClassComponent(component) ? component.__vccOpts : component;
  9871. }
  9872. function rerender(id, newRender) {
  9873. const record = map.get(id);
  9874. if (!record) {
  9875. return;
  9876. }
  9877. // update initial record (for not-yet-rendered component)
  9878. record.initialDef.render = newRender;
  9879. [...record.instances].forEach(instance => {
  9880. if (newRender) {
  9881. instance.render = newRender;
  9882. normalizeClassComponent(instance.type).render = newRender;
  9883. }
  9884. instance.renderCache = [];
  9885. // this flag forces child components with slot content to update
  9886. isHmrUpdating = true;
  9887. instance.update();
  9888. isHmrUpdating = false;
  9889. });
  9890. }
  9891. function reload(id, newComp) {
  9892. const record = map.get(id);
  9893. if (!record)
  9894. return;
  9895. newComp = normalizeClassComponent(newComp);
  9896. // update initial def (for not-yet-rendered components)
  9897. updateComponentDef(record.initialDef, newComp);
  9898. // create a snapshot which avoids the set being mutated during updates
  9899. const instances = [...record.instances];
  9900. for (const instance of instances) {
  9901. const oldComp = normalizeClassComponent(instance.type);
  9902. if (!hmrDirtyComponents.has(oldComp)) {
  9903. // 1. Update existing comp definition to match new one
  9904. if (oldComp !== record.initialDef) {
  9905. updateComponentDef(oldComp, newComp);
  9906. }
  9907. // 2. mark definition dirty. This forces the renderer to replace the
  9908. // component on patch.
  9909. hmrDirtyComponents.add(oldComp);
  9910. }
  9911. // 3. invalidate options resolution cache
  9912. instance.appContext.optionsCache.delete(instance.type);
  9913. // 4. actually update
  9914. if (instance.ceReload) {
  9915. // custom element
  9916. hmrDirtyComponents.add(oldComp);
  9917. instance.ceReload(newComp.styles);
  9918. hmrDirtyComponents.delete(oldComp);
  9919. }
  9920. else if (instance.parent) {
  9921. // 4. Force the parent instance to re-render. This will cause all updated
  9922. // components to be unmounted and re-mounted. Queue the update so that we
  9923. // don't end up forcing the same parent to re-render multiple times.
  9924. queueJob(instance.parent.update);
  9925. // instance is the inner component of an async custom element
  9926. // invoke to reset styles
  9927. if (instance.parent.type.__asyncLoader &&
  9928. instance.parent.ceReload) {
  9929. instance.parent.ceReload(newComp.styles);
  9930. }
  9931. }
  9932. else if (instance.appContext.reload) {
  9933. // root instance mounted via createApp() has a reload method
  9934. instance.appContext.reload();
  9935. }
  9936. else if (typeof window !== 'undefined') {
  9937. // root instance inside tree created via raw render(). Force reload.
  9938. window.location.reload();
  9939. }
  9940. else {
  9941. console.warn('[HMR] Root or manually mounted instance modified. Full reload required.');
  9942. }
  9943. }
  9944. // 5. make sure to cleanup dirty hmr components after update
  9945. queuePostFlushCb(() => {
  9946. for (const instance of instances) {
  9947. hmrDirtyComponents.delete(normalizeClassComponent(instance.type));
  9948. }
  9949. });
  9950. }
  9951. function updateComponentDef(oldComp, newComp) {
  9952. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)(oldComp, newComp);
  9953. for (const key in oldComp) {
  9954. if (key !== '__file' && !(key in newComp)) {
  9955. delete oldComp[key];
  9956. }
  9957. }
  9958. }
  9959. function tryWrap(fn) {
  9960. return (id, arg) => {
  9961. try {
  9962. return fn(id, arg);
  9963. }
  9964. catch (e) {
  9965. console.error(e);
  9966. console.warn(`[HMR] Something went wrong during Vue component hot-reload. ` +
  9967. `Full reload required.`);
  9968. }
  9969. };
  9970. }
  9971. let devtools;
  9972. let buffer = [];
  9973. let devtoolsNotInstalled = false;
  9974. function emit(event, ...args) {
  9975. if (devtools) {
  9976. devtools.emit(event, ...args);
  9977. }
  9978. else if (!devtoolsNotInstalled) {
  9979. buffer.push({ event, args });
  9980. }
  9981. }
  9982. function setDevtoolsHook(hook, target) {
  9983. var _a, _b;
  9984. devtools = hook;
  9985. if (devtools) {
  9986. devtools.enabled = true;
  9987. buffer.forEach(({ event, args }) => devtools.emit(event, ...args));
  9988. buffer = [];
  9989. }
  9990. else if (
  9991. // handle late devtools injection - only do this if we are in an actual
  9992. // browser environment to avoid the timer handle stalling test runner exit
  9993. // (#4815)
  9994. // eslint-disable-next-line no-restricted-globals
  9995. typeof window !== 'undefined' &&
  9996. // some envs mock window but not fully
  9997. window.HTMLElement &&
  9998. // also exclude jsdom
  9999. !((_b = (_a = window.navigator) === null || _a === void 0 ? void 0 : _a.userAgent) === null || _b === void 0 ? void 0 : _b.includes('jsdom'))) {
  10000. const replay = (target.__VUE_DEVTOOLS_HOOK_REPLAY__ =
  10001. target.__VUE_DEVTOOLS_HOOK_REPLAY__ || []);
  10002. replay.push((newHook) => {
  10003. setDevtoolsHook(newHook, target);
  10004. });
  10005. // clear buffer after 3s - the user probably doesn't have devtools installed
  10006. // at all, and keeping the buffer will cause memory leaks (#4738)
  10007. setTimeout(() => {
  10008. if (!devtools) {
  10009. target.__VUE_DEVTOOLS_HOOK_REPLAY__ = null;
  10010. devtoolsNotInstalled = true;
  10011. buffer = [];
  10012. }
  10013. }, 3000);
  10014. }
  10015. else {
  10016. // non-browser env, assume not installed
  10017. devtoolsNotInstalled = true;
  10018. buffer = [];
  10019. }
  10020. }
  10021. function devtoolsInitApp(app, version) {
  10022. emit("app:init" /* APP_INIT */, app, version, {
  10023. Fragment,
  10024. Text,
  10025. Comment,
  10026. Static
  10027. });
  10028. }
  10029. function devtoolsUnmountApp(app) {
  10030. emit("app:unmount" /* APP_UNMOUNT */, app);
  10031. }
  10032. const devtoolsComponentAdded = /*#__PURE__*/ createDevtoolsComponentHook("component:added" /* COMPONENT_ADDED */);
  10033. const devtoolsComponentUpdated =
  10034. /*#__PURE__*/ createDevtoolsComponentHook("component:updated" /* COMPONENT_UPDATED */);
  10035. const devtoolsComponentRemoved =
  10036. /*#__PURE__*/ createDevtoolsComponentHook("component:removed" /* COMPONENT_REMOVED */);
  10037. function createDevtoolsComponentHook(hook) {
  10038. return (component) => {
  10039. emit(hook, component.appContext.app, component.uid, component.parent ? component.parent.uid : undefined, component);
  10040. };
  10041. }
  10042. const devtoolsPerfStart = /*#__PURE__*/ createDevtoolsPerformanceHook("perf:start" /* PERFORMANCE_START */);
  10043. const devtoolsPerfEnd = /*#__PURE__*/ createDevtoolsPerformanceHook("perf:end" /* PERFORMANCE_END */);
  10044. function createDevtoolsPerformanceHook(hook) {
  10045. return (component, type, time) => {
  10046. emit(hook, component.appContext.app, component.uid, component, type, time);
  10047. };
  10048. }
  10049. function devtoolsComponentEmit(component, event, params) {
  10050. emit("component:emit" /* COMPONENT_EMIT */, component.appContext.app, component, event, params);
  10051. }
  10052. function emit$1(instance, event, ...rawArgs) {
  10053. const props = instance.vnode.props || _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ;
  10054. if ((true)) {
  10055. const { emitsOptions, propsOptions: [propsOptions] } = instance;
  10056. if (emitsOptions) {
  10057. if (!(event in emitsOptions) &&
  10058. !(false )) {
  10059. if (!propsOptions || !((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.toHandlerKey)(event) in propsOptions)) {
  10060. warn(`Component emitted event "${event}" but it is neither declared in ` +
  10061. `the emits option nor as an "${(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.toHandlerKey)(event)}" prop.`);
  10062. }
  10063. }
  10064. else {
  10065. const validator = emitsOptions[event];
  10066. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(validator)) {
  10067. const isValid = validator(...rawArgs);
  10068. if (!isValid) {
  10069. warn(`Invalid event arguments: event validation failed for event "${event}".`);
  10070. }
  10071. }
  10072. }
  10073. }
  10074. }
  10075. let args = rawArgs;
  10076. const isModelListener = event.startsWith('update:');
  10077. // for v-model update:xxx events, apply modifiers on args
  10078. const modelArg = isModelListener && event.slice(7);
  10079. if (modelArg && modelArg in props) {
  10080. const modifiersKey = `${modelArg === 'modelValue' ? 'model' : modelArg}Modifiers`;
  10081. const { number, trim } = props[modifiersKey] || _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ;
  10082. if (trim) {
  10083. args = rawArgs.map(a => a.trim());
  10084. }
  10085. else if (number) {
  10086. args = rawArgs.map(_vue_shared__WEBPACK_IMPORTED_MODULE_1__.toNumber);
  10087. }
  10088. }
  10089. if (true) {
  10090. devtoolsComponentEmit(instance, event, args);
  10091. }
  10092. if ((true)) {
  10093. const lowerCaseEvent = event.toLowerCase();
  10094. if (lowerCaseEvent !== event && props[(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.toHandlerKey)(lowerCaseEvent)]) {
  10095. warn(`Event "${lowerCaseEvent}" is emitted in component ` +
  10096. `${formatComponentName(instance, instance.type)} but the handler is registered for "${event}". ` +
  10097. `Note that HTML attributes are case-insensitive and you cannot use ` +
  10098. `v-on to listen to camelCase events when using in-DOM templates. ` +
  10099. `You should probably use "${(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hyphenate)(event)}" instead of "${event}".`);
  10100. }
  10101. }
  10102. let handlerName;
  10103. let handler = props[(handlerName = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.toHandlerKey)(event))] ||
  10104. // also try camelCase event handler (#2249)
  10105. props[(handlerName = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.toHandlerKey)((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.camelize)(event)))];
  10106. // for v-model update:xxx events, also trigger kebab-case equivalent
  10107. // for props passed via kebab-case
  10108. if (!handler && isModelListener) {
  10109. handler = props[(handlerName = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.toHandlerKey)((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hyphenate)(event)))];
  10110. }
  10111. if (handler) {
  10112. callWithAsyncErrorHandling(handler, instance, 6 /* COMPONENT_EVENT_HANDLER */, args);
  10113. }
  10114. const onceHandler = props[handlerName + `Once`];
  10115. if (onceHandler) {
  10116. if (!instance.emitted) {
  10117. instance.emitted = {};
  10118. }
  10119. else if (instance.emitted[handlerName]) {
  10120. return;
  10121. }
  10122. instance.emitted[handlerName] = true;
  10123. callWithAsyncErrorHandling(onceHandler, instance, 6 /* COMPONENT_EVENT_HANDLER */, args);
  10124. }
  10125. }
  10126. function normalizeEmitsOptions(comp, appContext, asMixin = false) {
  10127. const cache = appContext.emitsCache;
  10128. const cached = cache.get(comp);
  10129. if (cached !== undefined) {
  10130. return cached;
  10131. }
  10132. const raw = comp.emits;
  10133. let normalized = {};
  10134. // apply mixin/extends props
  10135. let hasExtends = false;
  10136. if ( true && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(comp)) {
  10137. const extendEmits = (raw) => {
  10138. const normalizedFromExtend = normalizeEmitsOptions(raw, appContext, true);
  10139. if (normalizedFromExtend) {
  10140. hasExtends = true;
  10141. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)(normalized, normalizedFromExtend);
  10142. }
  10143. };
  10144. if (!asMixin && appContext.mixins.length) {
  10145. appContext.mixins.forEach(extendEmits);
  10146. }
  10147. if (comp.extends) {
  10148. extendEmits(comp.extends);
  10149. }
  10150. if (comp.mixins) {
  10151. comp.mixins.forEach(extendEmits);
  10152. }
  10153. }
  10154. if (!raw && !hasExtends) {
  10155. cache.set(comp, null);
  10156. return null;
  10157. }
  10158. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(raw)) {
  10159. raw.forEach(key => (normalized[key] = null));
  10160. }
  10161. else {
  10162. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)(normalized, raw);
  10163. }
  10164. cache.set(comp, normalized);
  10165. return normalized;
  10166. }
  10167. // Check if an incoming prop key is a declared emit event listener.
  10168. // e.g. With `emits: { click: null }`, props named `onClick` and `onclick` are
  10169. // both considered matched listeners.
  10170. function isEmitListener(options, key) {
  10171. if (!options || !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isOn)(key)) {
  10172. return false;
  10173. }
  10174. key = key.slice(2).replace(/Once$/, '');
  10175. return ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(options, key[0].toLowerCase() + key.slice(1)) ||
  10176. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(options, (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hyphenate)(key)) ||
  10177. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(options, key));
  10178. }
  10179. /**
  10180. * mark the current rendering instance for asset resolution (e.g.
  10181. * resolveComponent, resolveDirective) during render
  10182. */
  10183. let currentRenderingInstance = null;
  10184. let currentScopeId = null;
  10185. /**
  10186. * Note: rendering calls maybe nested. The function returns the parent rendering
  10187. * instance if present, which should be restored after the render is done:
  10188. *
  10189. * ```js
  10190. * const prev = setCurrentRenderingInstance(i)
  10191. * // ...render
  10192. * setCurrentRenderingInstance(prev)
  10193. * ```
  10194. */
  10195. function setCurrentRenderingInstance(instance) {
  10196. const prev = currentRenderingInstance;
  10197. currentRenderingInstance = instance;
  10198. currentScopeId = (instance && instance.type.__scopeId) || null;
  10199. return prev;
  10200. }
  10201. /**
  10202. * Set scope id when creating hoisted vnodes.
  10203. * @private compiler helper
  10204. */
  10205. function pushScopeId(id) {
  10206. currentScopeId = id;
  10207. }
  10208. /**
  10209. * Technically we no longer need this after 3.0.8 but we need to keep the same
  10210. * API for backwards compat w/ code generated by compilers.
  10211. * @private
  10212. */
  10213. function popScopeId() {
  10214. currentScopeId = null;
  10215. }
  10216. /**
  10217. * Only for backwards compat
  10218. * @private
  10219. */
  10220. const withScopeId = (_id) => withCtx;
  10221. /**
  10222. * Wrap a slot function to memoize current rendering instance
  10223. * @private compiler helper
  10224. */
  10225. function withCtx(fn, ctx = currentRenderingInstance, isNonScopedSlot // false only
  10226. ) {
  10227. if (!ctx)
  10228. return fn;
  10229. // already normalized
  10230. if (fn._n) {
  10231. return fn;
  10232. }
  10233. const renderFnWithContext = (...args) => {
  10234. // If a user calls a compiled slot inside a template expression (#1745), it
  10235. // can mess up block tracking, so by default we disable block tracking and
  10236. // force bail out when invoking a compiled slot (indicated by the ._d flag).
  10237. // This isn't necessary if rendering a compiled `<slot>`, so we flip the
  10238. // ._d flag off when invoking the wrapped fn inside `renderSlot`.
  10239. if (renderFnWithContext._d) {
  10240. setBlockTracking(-1);
  10241. }
  10242. const prevInstance = setCurrentRenderingInstance(ctx);
  10243. const res = fn(...args);
  10244. setCurrentRenderingInstance(prevInstance);
  10245. if (renderFnWithContext._d) {
  10246. setBlockTracking(1);
  10247. }
  10248. if (true) {
  10249. devtoolsComponentUpdated(ctx);
  10250. }
  10251. return res;
  10252. };
  10253. // mark normalized to avoid duplicated wrapping
  10254. renderFnWithContext._n = true;
  10255. // mark this as compiled by default
  10256. // this is used in vnode.ts -> normalizeChildren() to set the slot
  10257. // rendering flag.
  10258. renderFnWithContext._c = true;
  10259. // disable block tracking by default
  10260. renderFnWithContext._d = true;
  10261. return renderFnWithContext;
  10262. }
  10263. /**
  10264. * dev only flag to track whether $attrs was used during render.
  10265. * If $attrs was used during render then the warning for failed attrs
  10266. * fallthrough can be suppressed.
  10267. */
  10268. let accessedAttrs = false;
  10269. function markAttrsAccessed() {
  10270. accessedAttrs = true;
  10271. }
  10272. function renderComponentRoot(instance) {
  10273. const { type: Component, vnode, proxy, withProxy, props, propsOptions: [propsOptions], slots, attrs, emit, render, renderCache, data, setupState, ctx, inheritAttrs } = instance;
  10274. let result;
  10275. let fallthroughAttrs;
  10276. const prev = setCurrentRenderingInstance(instance);
  10277. if ((true)) {
  10278. accessedAttrs = false;
  10279. }
  10280. try {
  10281. if (vnode.shapeFlag & 4 /* STATEFUL_COMPONENT */) {
  10282. // withProxy is a proxy with a different `has` trap only for
  10283. // runtime-compiled render functions using `with` block.
  10284. const proxyToUse = withProxy || proxy;
  10285. result = normalizeVNode(render.call(proxyToUse, proxyToUse, renderCache, props, setupState, data, ctx));
  10286. fallthroughAttrs = attrs;
  10287. }
  10288. else {
  10289. // functional
  10290. const render = Component;
  10291. // in dev, mark attrs accessed if optional props (attrs === props)
  10292. if (( true) && attrs === props) {
  10293. markAttrsAccessed();
  10294. }
  10295. result = normalizeVNode(render.length > 1
  10296. ? render(props, ( true)
  10297. ? {
  10298. get attrs() {
  10299. markAttrsAccessed();
  10300. return attrs;
  10301. },
  10302. slots,
  10303. emit
  10304. }
  10305. : 0)
  10306. : render(props, null /* we know it doesn't need it */));
  10307. fallthroughAttrs = Component.props
  10308. ? attrs
  10309. : getFunctionalFallthrough(attrs);
  10310. }
  10311. }
  10312. catch (err) {
  10313. blockStack.length = 0;
  10314. handleError(err, instance, 1 /* RENDER_FUNCTION */);
  10315. result = createVNode(Comment);
  10316. }
  10317. // attr merging
  10318. // in dev mode, comments are preserved, and it's possible for a template
  10319. // to have comments along side the root element which makes it a fragment
  10320. let root = result;
  10321. let setRoot = undefined;
  10322. if (( true) &&
  10323. result.patchFlag > 0 &&
  10324. result.patchFlag & 2048 /* DEV_ROOT_FRAGMENT */) {
  10325. [root, setRoot] = getChildRoot(result);
  10326. }
  10327. if (fallthroughAttrs && inheritAttrs !== false) {
  10328. const keys = Object.keys(fallthroughAttrs);
  10329. const { shapeFlag } = root;
  10330. if (keys.length) {
  10331. if (shapeFlag & (1 /* ELEMENT */ | 6 /* COMPONENT */)) {
  10332. if (propsOptions && keys.some(_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isModelListener)) {
  10333. // If a v-model listener (onUpdate:xxx) has a corresponding declared
  10334. // prop, it indicates this component expects to handle v-model and
  10335. // it should not fallthrough.
  10336. // related: #1543, #1643, #1989
  10337. fallthroughAttrs = filterModelListeners(fallthroughAttrs, propsOptions);
  10338. }
  10339. root = cloneVNode(root, fallthroughAttrs);
  10340. }
  10341. else if (( true) && !accessedAttrs && root.type !== Comment) {
  10342. const allAttrs = Object.keys(attrs);
  10343. const eventAttrs = [];
  10344. const extraAttrs = [];
  10345. for (let i = 0, l = allAttrs.length; i < l; i++) {
  10346. const key = allAttrs[i];
  10347. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isOn)(key)) {
  10348. // ignore v-model handlers when they fail to fallthrough
  10349. if (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isModelListener)(key)) {
  10350. // remove `on`, lowercase first letter to reflect event casing
  10351. // accurately
  10352. eventAttrs.push(key[2].toLowerCase() + key.slice(3));
  10353. }
  10354. }
  10355. else {
  10356. extraAttrs.push(key);
  10357. }
  10358. }
  10359. if (extraAttrs.length) {
  10360. warn(`Extraneous non-props attributes (` +
  10361. `${extraAttrs.join(', ')}) ` +
  10362. `were passed to component but could not be automatically inherited ` +
  10363. `because component renders fragment or text root nodes.`);
  10364. }
  10365. if (eventAttrs.length) {
  10366. warn(`Extraneous non-emits event listeners (` +
  10367. `${eventAttrs.join(', ')}) ` +
  10368. `were passed to component but could not be automatically inherited ` +
  10369. `because component renders fragment or text root nodes. ` +
  10370. `If the listener is intended to be a component custom event listener only, ` +
  10371. `declare it using the "emits" option.`);
  10372. }
  10373. }
  10374. }
  10375. }
  10376. // inherit directives
  10377. if (vnode.dirs) {
  10378. if (( true) && !isElementRoot(root)) {
  10379. warn(`Runtime directive used on component with non-element root node. ` +
  10380. `The directives will not function as intended.`);
  10381. }
  10382. root.dirs = root.dirs ? root.dirs.concat(vnode.dirs) : vnode.dirs;
  10383. }
  10384. // inherit transition data
  10385. if (vnode.transition) {
  10386. if (( true) && !isElementRoot(root)) {
  10387. warn(`Component inside <Transition> renders non-element root node ` +
  10388. `that cannot be animated.`);
  10389. }
  10390. root.transition = vnode.transition;
  10391. }
  10392. if (( true) && setRoot) {
  10393. setRoot(root);
  10394. }
  10395. else {
  10396. result = root;
  10397. }
  10398. setCurrentRenderingInstance(prev);
  10399. return result;
  10400. }
  10401. /**
  10402. * dev only
  10403. * In dev mode, template root level comments are rendered, which turns the
  10404. * template into a fragment root, but we need to locate the single element
  10405. * root for attrs and scope id processing.
  10406. */
  10407. const getChildRoot = (vnode) => {
  10408. const rawChildren = vnode.children;
  10409. const dynamicChildren = vnode.dynamicChildren;
  10410. const childRoot = filterSingleRoot(rawChildren);
  10411. if (!childRoot) {
  10412. return [vnode, undefined];
  10413. }
  10414. const index = rawChildren.indexOf(childRoot);
  10415. const dynamicIndex = dynamicChildren ? dynamicChildren.indexOf(childRoot) : -1;
  10416. const setRoot = (updatedRoot) => {
  10417. rawChildren[index] = updatedRoot;
  10418. if (dynamicChildren) {
  10419. if (dynamicIndex > -1) {
  10420. dynamicChildren[dynamicIndex] = updatedRoot;
  10421. }
  10422. else if (updatedRoot.patchFlag > 0) {
  10423. vnode.dynamicChildren = [...dynamicChildren, updatedRoot];
  10424. }
  10425. }
  10426. };
  10427. return [normalizeVNode(childRoot), setRoot];
  10428. };
  10429. function filterSingleRoot(children) {
  10430. let singleRoot;
  10431. for (let i = 0; i < children.length; i++) {
  10432. const child = children[i];
  10433. if (isVNode(child)) {
  10434. // ignore user comment
  10435. if (child.type !== Comment || child.children === 'v-if') {
  10436. if (singleRoot) {
  10437. // has more than 1 non-comment child, return now
  10438. return;
  10439. }
  10440. else {
  10441. singleRoot = child;
  10442. }
  10443. }
  10444. }
  10445. else {
  10446. return;
  10447. }
  10448. }
  10449. return singleRoot;
  10450. }
  10451. const getFunctionalFallthrough = (attrs) => {
  10452. let res;
  10453. for (const key in attrs) {
  10454. if (key === 'class' || key === 'style' || (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isOn)(key)) {
  10455. (res || (res = {}))[key] = attrs[key];
  10456. }
  10457. }
  10458. return res;
  10459. };
  10460. const filterModelListeners = (attrs, props) => {
  10461. const res = {};
  10462. for (const key in attrs) {
  10463. if (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isModelListener)(key) || !(key.slice(9) in props)) {
  10464. res[key] = attrs[key];
  10465. }
  10466. }
  10467. return res;
  10468. };
  10469. const isElementRoot = (vnode) => {
  10470. return (vnode.shapeFlag & (6 /* COMPONENT */ | 1 /* ELEMENT */) ||
  10471. vnode.type === Comment // potential v-if branch switch
  10472. );
  10473. };
  10474. function shouldUpdateComponent(prevVNode, nextVNode, optimized) {
  10475. const { props: prevProps, children: prevChildren, component } = prevVNode;
  10476. const { props: nextProps, children: nextChildren, patchFlag } = nextVNode;
  10477. const emits = component.emitsOptions;
  10478. // Parent component's render function was hot-updated. Since this may have
  10479. // caused the child component's slots content to have changed, we need to
  10480. // force the child to update as well.
  10481. if (( true) && (prevChildren || nextChildren) && isHmrUpdating) {
  10482. return true;
  10483. }
  10484. // force child update for runtime directive or transition on component vnode.
  10485. if (nextVNode.dirs || nextVNode.transition) {
  10486. return true;
  10487. }
  10488. if (optimized && patchFlag >= 0) {
  10489. if (patchFlag & 1024 /* DYNAMIC_SLOTS */) {
  10490. // slot content that references values that might have changed,
  10491. // e.g. in a v-for
  10492. return true;
  10493. }
  10494. if (patchFlag & 16 /* FULL_PROPS */) {
  10495. if (!prevProps) {
  10496. return !!nextProps;
  10497. }
  10498. // presence of this flag indicates props are always non-null
  10499. return hasPropsChanged(prevProps, nextProps, emits);
  10500. }
  10501. else if (patchFlag & 8 /* PROPS */) {
  10502. const dynamicProps = nextVNode.dynamicProps;
  10503. for (let i = 0; i < dynamicProps.length; i++) {
  10504. const key = dynamicProps[i];
  10505. if (nextProps[key] !== prevProps[key] &&
  10506. !isEmitListener(emits, key)) {
  10507. return true;
  10508. }
  10509. }
  10510. }
  10511. }
  10512. else {
  10513. // this path is only taken by manually written render functions
  10514. // so presence of any children leads to a forced update
  10515. if (prevChildren || nextChildren) {
  10516. if (!nextChildren || !nextChildren.$stable) {
  10517. return true;
  10518. }
  10519. }
  10520. if (prevProps === nextProps) {
  10521. return false;
  10522. }
  10523. if (!prevProps) {
  10524. return !!nextProps;
  10525. }
  10526. if (!nextProps) {
  10527. return true;
  10528. }
  10529. return hasPropsChanged(prevProps, nextProps, emits);
  10530. }
  10531. return false;
  10532. }
  10533. function hasPropsChanged(prevProps, nextProps, emitsOptions) {
  10534. const nextKeys = Object.keys(nextProps);
  10535. if (nextKeys.length !== Object.keys(prevProps).length) {
  10536. return true;
  10537. }
  10538. for (let i = 0; i < nextKeys.length; i++) {
  10539. const key = nextKeys[i];
  10540. if (nextProps[key] !== prevProps[key] &&
  10541. !isEmitListener(emitsOptions, key)) {
  10542. return true;
  10543. }
  10544. }
  10545. return false;
  10546. }
  10547. function updateHOCHostEl({ vnode, parent }, el // HostNode
  10548. ) {
  10549. while (parent && parent.subTree === vnode) {
  10550. (vnode = parent.vnode).el = el;
  10551. parent = parent.parent;
  10552. }
  10553. }
  10554. const isSuspense = (type) => type.__isSuspense;
  10555. // Suspense exposes a component-like API, and is treated like a component
  10556. // in the compiler, but internally it's a special built-in type that hooks
  10557. // directly into the renderer.
  10558. const SuspenseImpl = {
  10559. name: 'Suspense',
  10560. // In order to make Suspense tree-shakable, we need to avoid importing it
  10561. // directly in the renderer. The renderer checks for the __isSuspense flag
  10562. // on a vnode's type and calls the `process` method, passing in renderer
  10563. // internals.
  10564. __isSuspense: true,
  10565. process(n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized,
  10566. // platform-specific impl passed from renderer
  10567. rendererInternals) {
  10568. if (n1 == null) {
  10569. mountSuspense(n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, rendererInternals);
  10570. }
  10571. else {
  10572. patchSuspense(n1, n2, container, anchor, parentComponent, isSVG, slotScopeIds, optimized, rendererInternals);
  10573. }
  10574. },
  10575. hydrate: hydrateSuspense,
  10576. create: createSuspenseBoundary,
  10577. normalize: normalizeSuspenseChildren
  10578. };
  10579. // Force-casted public typing for h and TSX props inference
  10580. const Suspense = (SuspenseImpl );
  10581. function triggerEvent(vnode, name) {
  10582. const eventListener = vnode.props && vnode.props[name];
  10583. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(eventListener)) {
  10584. eventListener();
  10585. }
  10586. }
  10587. function mountSuspense(vnode, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, rendererInternals) {
  10588. const { p: patch, o: { createElement } } = rendererInternals;
  10589. const hiddenContainer = createElement('div');
  10590. const suspense = (vnode.suspense = createSuspenseBoundary(vnode, parentSuspense, parentComponent, container, hiddenContainer, anchor, isSVG, slotScopeIds, optimized, rendererInternals));
  10591. // start mounting the content subtree in an off-dom container
  10592. patch(null, (suspense.pendingBranch = vnode.ssContent), hiddenContainer, null, parentComponent, suspense, isSVG, slotScopeIds);
  10593. // now check if we have encountered any async deps
  10594. if (suspense.deps > 0) {
  10595. // has async
  10596. // invoke @fallback event
  10597. triggerEvent(vnode, 'onPending');
  10598. triggerEvent(vnode, 'onFallback');
  10599. // mount the fallback tree
  10600. patch(null, vnode.ssFallback, container, anchor, parentComponent, null, // fallback tree will not have suspense context
  10601. isSVG, slotScopeIds);
  10602. setActiveBranch(suspense, vnode.ssFallback);
  10603. }
  10604. else {
  10605. // Suspense has no async deps. Just resolve.
  10606. suspense.resolve();
  10607. }
  10608. }
  10609. function patchSuspense(n1, n2, container, anchor, parentComponent, isSVG, slotScopeIds, optimized, { p: patch, um: unmount, o: { createElement } }) {
  10610. const suspense = (n2.suspense = n1.suspense);
  10611. suspense.vnode = n2;
  10612. n2.el = n1.el;
  10613. const newBranch = n2.ssContent;
  10614. const newFallback = n2.ssFallback;
  10615. const { activeBranch, pendingBranch, isInFallback, isHydrating } = suspense;
  10616. if (pendingBranch) {
  10617. suspense.pendingBranch = newBranch;
  10618. if (isSameVNodeType(newBranch, pendingBranch)) {
  10619. // same root type but content may have changed.
  10620. patch(pendingBranch, newBranch, suspense.hiddenContainer, null, parentComponent, suspense, isSVG, slotScopeIds, optimized);
  10621. if (suspense.deps <= 0) {
  10622. suspense.resolve();
  10623. }
  10624. else if (isInFallback) {
  10625. patch(activeBranch, newFallback, container, anchor, parentComponent, null, // fallback tree will not have suspense context
  10626. isSVG, slotScopeIds, optimized);
  10627. setActiveBranch(suspense, newFallback);
  10628. }
  10629. }
  10630. else {
  10631. // toggled before pending tree is resolved
  10632. suspense.pendingId++;
  10633. if (isHydrating) {
  10634. // if toggled before hydration is finished, the current DOM tree is
  10635. // no longer valid. set it as the active branch so it will be unmounted
  10636. // when resolved
  10637. suspense.isHydrating = false;
  10638. suspense.activeBranch = pendingBranch;
  10639. }
  10640. else {
  10641. unmount(pendingBranch, parentComponent, suspense);
  10642. }
  10643. // increment pending ID. this is used to invalidate async callbacks
  10644. // reset suspense state
  10645. suspense.deps = 0;
  10646. // discard effects from pending branch
  10647. suspense.effects.length = 0;
  10648. // discard previous container
  10649. suspense.hiddenContainer = createElement('div');
  10650. if (isInFallback) {
  10651. // already in fallback state
  10652. patch(null, newBranch, suspense.hiddenContainer, null, parentComponent, suspense, isSVG, slotScopeIds, optimized);
  10653. if (suspense.deps <= 0) {
  10654. suspense.resolve();
  10655. }
  10656. else {
  10657. patch(activeBranch, newFallback, container, anchor, parentComponent, null, // fallback tree will not have suspense context
  10658. isSVG, slotScopeIds, optimized);
  10659. setActiveBranch(suspense, newFallback);
  10660. }
  10661. }
  10662. else if (activeBranch && isSameVNodeType(newBranch, activeBranch)) {
  10663. // toggled "back" to current active branch
  10664. patch(activeBranch, newBranch, container, anchor, parentComponent, suspense, isSVG, slotScopeIds, optimized);
  10665. // force resolve
  10666. suspense.resolve(true);
  10667. }
  10668. else {
  10669. // switched to a 3rd branch
  10670. patch(null, newBranch, suspense.hiddenContainer, null, parentComponent, suspense, isSVG, slotScopeIds, optimized);
  10671. if (suspense.deps <= 0) {
  10672. suspense.resolve();
  10673. }
  10674. }
  10675. }
  10676. }
  10677. else {
  10678. if (activeBranch && isSameVNodeType(newBranch, activeBranch)) {
  10679. // root did not change, just normal patch
  10680. patch(activeBranch, newBranch, container, anchor, parentComponent, suspense, isSVG, slotScopeIds, optimized);
  10681. setActiveBranch(suspense, newBranch);
  10682. }
  10683. else {
  10684. // root node toggled
  10685. // invoke @pending event
  10686. triggerEvent(n2, 'onPending');
  10687. // mount pending branch in off-dom container
  10688. suspense.pendingBranch = newBranch;
  10689. suspense.pendingId++;
  10690. patch(null, newBranch, suspense.hiddenContainer, null, parentComponent, suspense, isSVG, slotScopeIds, optimized);
  10691. if (suspense.deps <= 0) {
  10692. // incoming branch has no async deps, resolve now.
  10693. suspense.resolve();
  10694. }
  10695. else {
  10696. const { timeout, pendingId } = suspense;
  10697. if (timeout > 0) {
  10698. setTimeout(() => {
  10699. if (suspense.pendingId === pendingId) {
  10700. suspense.fallback(newFallback);
  10701. }
  10702. }, timeout);
  10703. }
  10704. else if (timeout === 0) {
  10705. suspense.fallback(newFallback);
  10706. }
  10707. }
  10708. }
  10709. }
  10710. }
  10711. let hasWarned = false;
  10712. function createSuspenseBoundary(vnode, parent, parentComponent, container, hiddenContainer, anchor, isSVG, slotScopeIds, optimized, rendererInternals, isHydrating = false) {
  10713. /* istanbul ignore if */
  10714. if ( true && !hasWarned) {
  10715. hasWarned = true;
  10716. // @ts-ignore `console.info` cannot be null error
  10717. console[console.info ? 'info' : 'log'](`<Suspense> is an experimental feature and its API will likely change.`);
  10718. }
  10719. const { p: patch, m: move, um: unmount, n: next, o: { parentNode, remove } } = rendererInternals;
  10720. const timeout = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.toNumber)(vnode.props && vnode.props.timeout);
  10721. const suspense = {
  10722. vnode,
  10723. parent,
  10724. parentComponent,
  10725. isSVG,
  10726. container,
  10727. hiddenContainer,
  10728. anchor,
  10729. deps: 0,
  10730. pendingId: 0,
  10731. timeout: typeof timeout === 'number' ? timeout : -1,
  10732. activeBranch: null,
  10733. pendingBranch: null,
  10734. isInFallback: true,
  10735. isHydrating,
  10736. isUnmounted: false,
  10737. effects: [],
  10738. resolve(resume = false) {
  10739. if ((true)) {
  10740. if (!resume && !suspense.pendingBranch) {
  10741. throw new Error(`suspense.resolve() is called without a pending branch.`);
  10742. }
  10743. if (suspense.isUnmounted) {
  10744. throw new Error(`suspense.resolve() is called on an already unmounted suspense boundary.`);
  10745. }
  10746. }
  10747. const { vnode, activeBranch, pendingBranch, pendingId, effects, parentComponent, container } = suspense;
  10748. if (suspense.isHydrating) {
  10749. suspense.isHydrating = false;
  10750. }
  10751. else if (!resume) {
  10752. const delayEnter = activeBranch &&
  10753. pendingBranch.transition &&
  10754. pendingBranch.transition.mode === 'out-in';
  10755. if (delayEnter) {
  10756. activeBranch.transition.afterLeave = () => {
  10757. if (pendingId === suspense.pendingId) {
  10758. move(pendingBranch, container, anchor, 0 /* ENTER */);
  10759. }
  10760. };
  10761. }
  10762. // this is initial anchor on mount
  10763. let { anchor } = suspense;
  10764. // unmount current active tree
  10765. if (activeBranch) {
  10766. // if the fallback tree was mounted, it may have been moved
  10767. // as part of a parent suspense. get the latest anchor for insertion
  10768. anchor = next(activeBranch);
  10769. unmount(activeBranch, parentComponent, suspense, true);
  10770. }
  10771. if (!delayEnter) {
  10772. // move content from off-dom container to actual container
  10773. move(pendingBranch, container, anchor, 0 /* ENTER */);
  10774. }
  10775. }
  10776. setActiveBranch(suspense, pendingBranch);
  10777. suspense.pendingBranch = null;
  10778. suspense.isInFallback = false;
  10779. // flush buffered effects
  10780. // check if there is a pending parent suspense
  10781. let parent = suspense.parent;
  10782. let hasUnresolvedAncestor = false;
  10783. while (parent) {
  10784. if (parent.pendingBranch) {
  10785. // found a pending parent suspense, merge buffered post jobs
  10786. // into that parent
  10787. parent.effects.push(...effects);
  10788. hasUnresolvedAncestor = true;
  10789. break;
  10790. }
  10791. parent = parent.parent;
  10792. }
  10793. // no pending parent suspense, flush all jobs
  10794. if (!hasUnresolvedAncestor) {
  10795. queuePostFlushCb(effects);
  10796. }
  10797. suspense.effects = [];
  10798. // invoke @resolve event
  10799. triggerEvent(vnode, 'onResolve');
  10800. },
  10801. fallback(fallbackVNode) {
  10802. if (!suspense.pendingBranch) {
  10803. return;
  10804. }
  10805. const { vnode, activeBranch, parentComponent, container, isSVG } = suspense;
  10806. // invoke @fallback event
  10807. triggerEvent(vnode, 'onFallback');
  10808. const anchor = next(activeBranch);
  10809. const mountFallback = () => {
  10810. if (!suspense.isInFallback) {
  10811. return;
  10812. }
  10813. // mount the fallback tree
  10814. patch(null, fallbackVNode, container, anchor, parentComponent, null, // fallback tree will not have suspense context
  10815. isSVG, slotScopeIds, optimized);
  10816. setActiveBranch(suspense, fallbackVNode);
  10817. };
  10818. const delayEnter = fallbackVNode.transition && fallbackVNode.transition.mode === 'out-in';
  10819. if (delayEnter) {
  10820. activeBranch.transition.afterLeave = mountFallback;
  10821. }
  10822. suspense.isInFallback = true;
  10823. // unmount current active branch
  10824. unmount(activeBranch, parentComponent, null, // no suspense so unmount hooks fire now
  10825. true // shouldRemove
  10826. );
  10827. if (!delayEnter) {
  10828. mountFallback();
  10829. }
  10830. },
  10831. move(container, anchor, type) {
  10832. suspense.activeBranch &&
  10833. move(suspense.activeBranch, container, anchor, type);
  10834. suspense.container = container;
  10835. },
  10836. next() {
  10837. return suspense.activeBranch && next(suspense.activeBranch);
  10838. },
  10839. registerDep(instance, setupRenderEffect) {
  10840. const isInPendingSuspense = !!suspense.pendingBranch;
  10841. if (isInPendingSuspense) {
  10842. suspense.deps++;
  10843. }
  10844. const hydratedEl = instance.vnode.el;
  10845. instance
  10846. .asyncDep.catch(err => {
  10847. handleError(err, instance, 0 /* SETUP_FUNCTION */);
  10848. })
  10849. .then(asyncSetupResult => {
  10850. // retry when the setup() promise resolves.
  10851. // component may have been unmounted before resolve.
  10852. if (instance.isUnmounted ||
  10853. suspense.isUnmounted ||
  10854. suspense.pendingId !== instance.suspenseId) {
  10855. return;
  10856. }
  10857. // retry from this component
  10858. instance.asyncResolved = true;
  10859. const { vnode } = instance;
  10860. if ((true)) {
  10861. pushWarningContext(vnode);
  10862. }
  10863. handleSetupResult(instance, asyncSetupResult, false);
  10864. if (hydratedEl) {
  10865. // vnode may have been replaced if an update happened before the
  10866. // async dep is resolved.
  10867. vnode.el = hydratedEl;
  10868. }
  10869. const placeholder = !hydratedEl && instance.subTree.el;
  10870. setupRenderEffect(instance, vnode,
  10871. // component may have been moved before resolve.
  10872. // if this is not a hydration, instance.subTree will be the comment
  10873. // placeholder.
  10874. parentNode(hydratedEl || instance.subTree.el),
  10875. // anchor will not be used if this is hydration, so only need to
  10876. // consider the comment placeholder case.
  10877. hydratedEl ? null : next(instance.subTree), suspense, isSVG, optimized);
  10878. if (placeholder) {
  10879. remove(placeholder);
  10880. }
  10881. updateHOCHostEl(instance, vnode.el);
  10882. if ((true)) {
  10883. popWarningContext();
  10884. }
  10885. // only decrease deps count if suspense is not already resolved
  10886. if (isInPendingSuspense && --suspense.deps === 0) {
  10887. suspense.resolve();
  10888. }
  10889. });
  10890. },
  10891. unmount(parentSuspense, doRemove) {
  10892. suspense.isUnmounted = true;
  10893. if (suspense.activeBranch) {
  10894. unmount(suspense.activeBranch, parentComponent, parentSuspense, doRemove);
  10895. }
  10896. if (suspense.pendingBranch) {
  10897. unmount(suspense.pendingBranch, parentComponent, parentSuspense, doRemove);
  10898. }
  10899. }
  10900. };
  10901. return suspense;
  10902. }
  10903. function hydrateSuspense(node, vnode, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, rendererInternals, hydrateNode) {
  10904. /* eslint-disable no-restricted-globals */
  10905. const suspense = (vnode.suspense = createSuspenseBoundary(vnode, parentSuspense, parentComponent, node.parentNode, document.createElement('div'), null, isSVG, slotScopeIds, optimized, rendererInternals, true /* hydrating */));
  10906. // there are two possible scenarios for server-rendered suspense:
  10907. // - success: ssr content should be fully resolved
  10908. // - failure: ssr content should be the fallback branch.
  10909. // however, on the client we don't really know if it has failed or not
  10910. // attempt to hydrate the DOM assuming it has succeeded, but we still
  10911. // need to construct a suspense boundary first
  10912. const result = hydrateNode(node, (suspense.pendingBranch = vnode.ssContent), parentComponent, suspense, slotScopeIds, optimized);
  10913. if (suspense.deps === 0) {
  10914. suspense.resolve();
  10915. }
  10916. return result;
  10917. /* eslint-enable no-restricted-globals */
  10918. }
  10919. function normalizeSuspenseChildren(vnode) {
  10920. const { shapeFlag, children } = vnode;
  10921. const isSlotChildren = shapeFlag & 32 /* SLOTS_CHILDREN */;
  10922. vnode.ssContent = normalizeSuspenseSlot(isSlotChildren ? children.default : children);
  10923. vnode.ssFallback = isSlotChildren
  10924. ? normalizeSuspenseSlot(children.fallback)
  10925. : createVNode(Comment);
  10926. }
  10927. function normalizeSuspenseSlot(s) {
  10928. let block;
  10929. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(s)) {
  10930. const trackBlock = isBlockTreeEnabled && s._c;
  10931. if (trackBlock) {
  10932. // disableTracking: false
  10933. // allow block tracking for compiled slots
  10934. // (see ./componentRenderContext.ts)
  10935. s._d = false;
  10936. openBlock();
  10937. }
  10938. s = s();
  10939. if (trackBlock) {
  10940. s._d = true;
  10941. block = currentBlock;
  10942. closeBlock();
  10943. }
  10944. }
  10945. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(s)) {
  10946. const singleChild = filterSingleRoot(s);
  10947. if (( true) && !singleChild) {
  10948. warn(`<Suspense> slots expect a single root node.`);
  10949. }
  10950. s = singleChild;
  10951. }
  10952. s = normalizeVNode(s);
  10953. if (block && !s.dynamicChildren) {
  10954. s.dynamicChildren = block.filter(c => c !== s);
  10955. }
  10956. return s;
  10957. }
  10958. function queueEffectWithSuspense(fn, suspense) {
  10959. if (suspense && suspense.pendingBranch) {
  10960. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(fn)) {
  10961. suspense.effects.push(...fn);
  10962. }
  10963. else {
  10964. suspense.effects.push(fn);
  10965. }
  10966. }
  10967. else {
  10968. queuePostFlushCb(fn);
  10969. }
  10970. }
  10971. function setActiveBranch(suspense, branch) {
  10972. suspense.activeBranch = branch;
  10973. const { vnode, parentComponent } = suspense;
  10974. const el = (vnode.el = branch.el);
  10975. // in case suspense is the root node of a component,
  10976. // recursively update the HOC el
  10977. if (parentComponent && parentComponent.subTree === vnode) {
  10978. parentComponent.vnode.el = el;
  10979. updateHOCHostEl(parentComponent, el);
  10980. }
  10981. }
  10982. function provide(key, value) {
  10983. if (!currentInstance) {
  10984. if ((true)) {
  10985. warn(`provide() can only be used inside setup().`);
  10986. }
  10987. }
  10988. else {
  10989. let provides = currentInstance.provides;
  10990. // by default an instance inherits its parent's provides object
  10991. // but when it needs to provide values of its own, it creates its
  10992. // own provides object using parent provides object as prototype.
  10993. // this way in `inject` we can simply look up injections from direct
  10994. // parent and let the prototype chain do the work.
  10995. const parentProvides = currentInstance.parent && currentInstance.parent.provides;
  10996. if (parentProvides === provides) {
  10997. provides = currentInstance.provides = Object.create(parentProvides);
  10998. }
  10999. // TS doesn't allow symbol as index type
  11000. provides[key] = value;
  11001. }
  11002. }
  11003. function inject(key, defaultValue, treatDefaultAsFactory = false) {
  11004. // fallback to `currentRenderingInstance` so that this can be called in
  11005. // a functional component
  11006. const instance = currentInstance || currentRenderingInstance;
  11007. if (instance) {
  11008. // #2400
  11009. // to support `app.use` plugins,
  11010. // fallback to appContext's `provides` if the instance is at root
  11011. const provides = instance.parent == null
  11012. ? instance.vnode.appContext && instance.vnode.appContext.provides
  11013. : instance.parent.provides;
  11014. if (provides && key in provides) {
  11015. // TS doesn't allow symbol as index type
  11016. return provides[key];
  11017. }
  11018. else if (arguments.length > 1) {
  11019. return treatDefaultAsFactory && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(defaultValue)
  11020. ? defaultValue.call(instance.proxy)
  11021. : defaultValue;
  11022. }
  11023. else if ((true)) {
  11024. warn(`injection "${String(key)}" not found.`);
  11025. }
  11026. }
  11027. else if ((true)) {
  11028. warn(`inject() can only be used inside setup() or functional components.`);
  11029. }
  11030. }
  11031. // Simple effect.
  11032. function watchEffect(effect, options) {
  11033. return doWatch(effect, null, options);
  11034. }
  11035. function watchPostEffect(effect, options) {
  11036. return doWatch(effect, null, (( true)
  11037. ? Object.assign(Object.assign({}, options), { flush: 'post' }) : 0));
  11038. }
  11039. function watchSyncEffect(effect, options) {
  11040. return doWatch(effect, null, (( true)
  11041. ? Object.assign(Object.assign({}, options), { flush: 'sync' }) : 0));
  11042. }
  11043. // initial value for watchers to trigger on undefined initial values
  11044. const INITIAL_WATCHER_VALUE = {};
  11045. // implementation
  11046. function watch(source, cb, options) {
  11047. if (( true) && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(cb)) {
  11048. warn(`\`watch(fn, options?)\` signature has been moved to a separate API. ` +
  11049. `Use \`watchEffect(fn, options?)\` instead. \`watch\` now only ` +
  11050. `supports \`watch(source, cb, options?) signature.`);
  11051. }
  11052. return doWatch(source, cb, options);
  11053. }
  11054. function doWatch(source, cb, { immediate, deep, flush, onTrack, onTrigger } = _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ) {
  11055. if (( true) && !cb) {
  11056. if (immediate !== undefined) {
  11057. warn(`watch() "immediate" option is only respected when using the ` +
  11058. `watch(source, callback, options?) signature.`);
  11059. }
  11060. if (deep !== undefined) {
  11061. warn(`watch() "deep" option is only respected when using the ` +
  11062. `watch(source, callback, options?) signature.`);
  11063. }
  11064. }
  11065. const warnInvalidSource = (s) => {
  11066. warn(`Invalid watch source: `, s, `A watch source can only be a getter/effect function, a ref, ` +
  11067. `a reactive object, or an array of these types.`);
  11068. };
  11069. const instance = currentInstance;
  11070. let getter;
  11071. let forceTrigger = false;
  11072. let isMultiSource = false;
  11073. if ((0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isRef)(source)) {
  11074. getter = () => source.value;
  11075. forceTrigger = (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isShallow)(source);
  11076. }
  11077. else if ((0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isReactive)(source)) {
  11078. getter = () => source;
  11079. deep = true;
  11080. }
  11081. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(source)) {
  11082. isMultiSource = true;
  11083. forceTrigger = source.some(_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isReactive);
  11084. getter = () => source.map(s => {
  11085. if ((0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isRef)(s)) {
  11086. return s.value;
  11087. }
  11088. else if ((0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isReactive)(s)) {
  11089. return traverse(s);
  11090. }
  11091. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(s)) {
  11092. return callWithErrorHandling(s, instance, 2 /* WATCH_GETTER */);
  11093. }
  11094. else {
  11095. ( true) && warnInvalidSource(s);
  11096. }
  11097. });
  11098. }
  11099. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(source)) {
  11100. if (cb) {
  11101. // getter with cb
  11102. getter = () => callWithErrorHandling(source, instance, 2 /* WATCH_GETTER */);
  11103. }
  11104. else {
  11105. // no cb -> simple effect
  11106. getter = () => {
  11107. if (instance && instance.isUnmounted) {
  11108. return;
  11109. }
  11110. if (cleanup) {
  11111. cleanup();
  11112. }
  11113. return callWithAsyncErrorHandling(source, instance, 3 /* WATCH_CALLBACK */, [onCleanup]);
  11114. };
  11115. }
  11116. }
  11117. else {
  11118. getter = _vue_shared__WEBPACK_IMPORTED_MODULE_1__.NOOP;
  11119. ( true) && warnInvalidSource(source);
  11120. }
  11121. if (cb && deep) {
  11122. const baseGetter = getter;
  11123. getter = () => traverse(baseGetter());
  11124. }
  11125. let cleanup;
  11126. let onCleanup = (fn) => {
  11127. cleanup = effect.onStop = () => {
  11128. callWithErrorHandling(fn, instance, 4 /* WATCH_CLEANUP */);
  11129. };
  11130. };
  11131. // in SSR there is no need to setup an actual effect, and it should be noop
  11132. // unless it's eager
  11133. if (isInSSRComponentSetup) {
  11134. // we will also not call the invalidate callback (+ runner is not set up)
  11135. onCleanup = _vue_shared__WEBPACK_IMPORTED_MODULE_1__.NOOP;
  11136. if (!cb) {
  11137. getter();
  11138. }
  11139. else if (immediate) {
  11140. callWithAsyncErrorHandling(cb, instance, 3 /* WATCH_CALLBACK */, [
  11141. getter(),
  11142. isMultiSource ? [] : undefined,
  11143. onCleanup
  11144. ]);
  11145. }
  11146. return _vue_shared__WEBPACK_IMPORTED_MODULE_1__.NOOP;
  11147. }
  11148. let oldValue = isMultiSource ? [] : INITIAL_WATCHER_VALUE;
  11149. const job = () => {
  11150. if (!effect.active) {
  11151. return;
  11152. }
  11153. if (cb) {
  11154. // watch(source, cb)
  11155. const newValue = effect.run();
  11156. if (deep ||
  11157. forceTrigger ||
  11158. (isMultiSource
  11159. ? newValue.some((v, i) => (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasChanged)(v, oldValue[i]))
  11160. : (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasChanged)(newValue, oldValue)) ||
  11161. (false )) {
  11162. // cleanup before running cb again
  11163. if (cleanup) {
  11164. cleanup();
  11165. }
  11166. callWithAsyncErrorHandling(cb, instance, 3 /* WATCH_CALLBACK */, [
  11167. newValue,
  11168. // pass undefined as the old value when it's changed for the first time
  11169. oldValue === INITIAL_WATCHER_VALUE ? undefined : oldValue,
  11170. onCleanup
  11171. ]);
  11172. oldValue = newValue;
  11173. }
  11174. }
  11175. else {
  11176. // watchEffect
  11177. effect.run();
  11178. }
  11179. };
  11180. // important: mark the job as a watcher callback so that scheduler knows
  11181. // it is allowed to self-trigger (#1727)
  11182. job.allowRecurse = !!cb;
  11183. let scheduler;
  11184. if (flush === 'sync') {
  11185. scheduler = job; // the scheduler function gets called directly
  11186. }
  11187. else if (flush === 'post') {
  11188. scheduler = () => queuePostRenderEffect(job, instance && instance.suspense);
  11189. }
  11190. else {
  11191. // default: 'pre'
  11192. scheduler = () => {
  11193. if (!instance || instance.isMounted) {
  11194. queuePreFlushCb(job);
  11195. }
  11196. else {
  11197. // with 'pre' option, the first call must happen before
  11198. // the component is mounted so it is called synchronously.
  11199. job();
  11200. }
  11201. };
  11202. }
  11203. const effect = new _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.ReactiveEffect(getter, scheduler);
  11204. if ((true)) {
  11205. effect.onTrack = onTrack;
  11206. effect.onTrigger = onTrigger;
  11207. }
  11208. // initial run
  11209. if (cb) {
  11210. if (immediate) {
  11211. job();
  11212. }
  11213. else {
  11214. oldValue = effect.run();
  11215. }
  11216. }
  11217. else if (flush === 'post') {
  11218. queuePostRenderEffect(effect.run.bind(effect), instance && instance.suspense);
  11219. }
  11220. else {
  11221. effect.run();
  11222. }
  11223. return () => {
  11224. effect.stop();
  11225. if (instance && instance.scope) {
  11226. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.remove)(instance.scope.effects, effect);
  11227. }
  11228. };
  11229. }
  11230. // this.$watch
  11231. function instanceWatch(source, value, options) {
  11232. const publicThis = this.proxy;
  11233. const getter = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(source)
  11234. ? source.includes('.')
  11235. ? createPathGetter(publicThis, source)
  11236. : () => publicThis[source]
  11237. : source.bind(publicThis, publicThis);
  11238. let cb;
  11239. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(value)) {
  11240. cb = value;
  11241. }
  11242. else {
  11243. cb = value.handler;
  11244. options = value;
  11245. }
  11246. const cur = currentInstance;
  11247. setCurrentInstance(this);
  11248. const res = doWatch(getter, cb.bind(publicThis), options);
  11249. if (cur) {
  11250. setCurrentInstance(cur);
  11251. }
  11252. else {
  11253. unsetCurrentInstance();
  11254. }
  11255. return res;
  11256. }
  11257. function createPathGetter(ctx, path) {
  11258. const segments = path.split('.');
  11259. return () => {
  11260. let cur = ctx;
  11261. for (let i = 0; i < segments.length && cur; i++) {
  11262. cur = cur[segments[i]];
  11263. }
  11264. return cur;
  11265. };
  11266. }
  11267. function traverse(value, seen) {
  11268. if (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isObject)(value) || value["__v_skip" /* SKIP */]) {
  11269. return value;
  11270. }
  11271. seen = seen || new Set();
  11272. if (seen.has(value)) {
  11273. return value;
  11274. }
  11275. seen.add(value);
  11276. if ((0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isRef)(value)) {
  11277. traverse(value.value, seen);
  11278. }
  11279. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(value)) {
  11280. for (let i = 0; i < value.length; i++) {
  11281. traverse(value[i], seen);
  11282. }
  11283. }
  11284. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isSet)(value) || (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isMap)(value)) {
  11285. value.forEach((v) => {
  11286. traverse(v, seen);
  11287. });
  11288. }
  11289. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isPlainObject)(value)) {
  11290. for (const key in value) {
  11291. traverse(value[key], seen);
  11292. }
  11293. }
  11294. return value;
  11295. }
  11296. function useTransitionState() {
  11297. const state = {
  11298. isMounted: false,
  11299. isLeaving: false,
  11300. isUnmounting: false,
  11301. leavingVNodes: new Map()
  11302. };
  11303. onMounted(() => {
  11304. state.isMounted = true;
  11305. });
  11306. onBeforeUnmount(() => {
  11307. state.isUnmounting = true;
  11308. });
  11309. return state;
  11310. }
  11311. const TransitionHookValidator = [Function, Array];
  11312. const BaseTransitionImpl = {
  11313. name: `BaseTransition`,
  11314. props: {
  11315. mode: String,
  11316. appear: Boolean,
  11317. persisted: Boolean,
  11318. // enter
  11319. onBeforeEnter: TransitionHookValidator,
  11320. onEnter: TransitionHookValidator,
  11321. onAfterEnter: TransitionHookValidator,
  11322. onEnterCancelled: TransitionHookValidator,
  11323. // leave
  11324. onBeforeLeave: TransitionHookValidator,
  11325. onLeave: TransitionHookValidator,
  11326. onAfterLeave: TransitionHookValidator,
  11327. onLeaveCancelled: TransitionHookValidator,
  11328. // appear
  11329. onBeforeAppear: TransitionHookValidator,
  11330. onAppear: TransitionHookValidator,
  11331. onAfterAppear: TransitionHookValidator,
  11332. onAppearCancelled: TransitionHookValidator
  11333. },
  11334. setup(props, { slots }) {
  11335. const instance = getCurrentInstance();
  11336. const state = useTransitionState();
  11337. let prevTransitionKey;
  11338. return () => {
  11339. const children = slots.default && getTransitionRawChildren(slots.default(), true);
  11340. if (!children || !children.length) {
  11341. return;
  11342. }
  11343. // warn multiple elements
  11344. if (( true) && children.length > 1) {
  11345. warn('<transition> can only be used on a single element or component. Use ' +
  11346. '<transition-group> for lists.');
  11347. }
  11348. // there's no need to track reactivity for these props so use the raw
  11349. // props for a bit better perf
  11350. const rawProps = (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.toRaw)(props);
  11351. const { mode } = rawProps;
  11352. // check mode
  11353. if (( true) &&
  11354. mode &&
  11355. mode !== 'in-out' &&
  11356. mode !== 'out-in' &&
  11357. mode !== 'default') {
  11358. warn(`invalid <transition> mode: ${mode}`);
  11359. }
  11360. // at this point children has a guaranteed length of 1.
  11361. const child = children[0];
  11362. if (state.isLeaving) {
  11363. return emptyPlaceholder(child);
  11364. }
  11365. // in the case of <transition><keep-alive/></transition>, we need to
  11366. // compare the type of the kept-alive children.
  11367. const innerChild = getKeepAliveChild(child);
  11368. if (!innerChild) {
  11369. return emptyPlaceholder(child);
  11370. }
  11371. const enterHooks = resolveTransitionHooks(innerChild, rawProps, state, instance);
  11372. setTransitionHooks(innerChild, enterHooks);
  11373. const oldChild = instance.subTree;
  11374. const oldInnerChild = oldChild && getKeepAliveChild(oldChild);
  11375. let transitionKeyChanged = false;
  11376. const { getTransitionKey } = innerChild.type;
  11377. if (getTransitionKey) {
  11378. const key = getTransitionKey();
  11379. if (prevTransitionKey === undefined) {
  11380. prevTransitionKey = key;
  11381. }
  11382. else if (key !== prevTransitionKey) {
  11383. prevTransitionKey = key;
  11384. transitionKeyChanged = true;
  11385. }
  11386. }
  11387. // handle mode
  11388. if (oldInnerChild &&
  11389. oldInnerChild.type !== Comment &&
  11390. (!isSameVNodeType(innerChild, oldInnerChild) || transitionKeyChanged)) {
  11391. const leavingHooks = resolveTransitionHooks(oldInnerChild, rawProps, state, instance);
  11392. // update old tree's hooks in case of dynamic transition
  11393. setTransitionHooks(oldInnerChild, leavingHooks);
  11394. // switching between different views
  11395. if (mode === 'out-in') {
  11396. state.isLeaving = true;
  11397. // return placeholder node and queue update when leave finishes
  11398. leavingHooks.afterLeave = () => {
  11399. state.isLeaving = false;
  11400. instance.update();
  11401. };
  11402. return emptyPlaceholder(child);
  11403. }
  11404. else if (mode === 'in-out' && innerChild.type !== Comment) {
  11405. leavingHooks.delayLeave = (el, earlyRemove, delayedLeave) => {
  11406. const leavingVNodesCache = getLeavingNodesForType(state, oldInnerChild);
  11407. leavingVNodesCache[String(oldInnerChild.key)] = oldInnerChild;
  11408. // early removal callback
  11409. el._leaveCb = () => {
  11410. earlyRemove();
  11411. el._leaveCb = undefined;
  11412. delete enterHooks.delayedLeave;
  11413. };
  11414. enterHooks.delayedLeave = delayedLeave;
  11415. };
  11416. }
  11417. }
  11418. return child;
  11419. };
  11420. }
  11421. };
  11422. // export the public type for h/tsx inference
  11423. // also to avoid inline import() in generated d.ts files
  11424. const BaseTransition = BaseTransitionImpl;
  11425. function getLeavingNodesForType(state, vnode) {
  11426. const { leavingVNodes } = state;
  11427. let leavingVNodesCache = leavingVNodes.get(vnode.type);
  11428. if (!leavingVNodesCache) {
  11429. leavingVNodesCache = Object.create(null);
  11430. leavingVNodes.set(vnode.type, leavingVNodesCache);
  11431. }
  11432. return leavingVNodesCache;
  11433. }
  11434. // The transition hooks are attached to the vnode as vnode.transition
  11435. // and will be called at appropriate timing in the renderer.
  11436. function resolveTransitionHooks(vnode, props, state, instance) {
  11437. const { appear, mode, persisted = false, onBeforeEnter, onEnter, onAfterEnter, onEnterCancelled, onBeforeLeave, onLeave, onAfterLeave, onLeaveCancelled, onBeforeAppear, onAppear, onAfterAppear, onAppearCancelled } = props;
  11438. const key = String(vnode.key);
  11439. const leavingVNodesCache = getLeavingNodesForType(state, vnode);
  11440. const callHook = (hook, args) => {
  11441. hook &&
  11442. callWithAsyncErrorHandling(hook, instance, 9 /* TRANSITION_HOOK */, args);
  11443. };
  11444. const hooks = {
  11445. mode,
  11446. persisted,
  11447. beforeEnter(el) {
  11448. let hook = onBeforeEnter;
  11449. if (!state.isMounted) {
  11450. if (appear) {
  11451. hook = onBeforeAppear || onBeforeEnter;
  11452. }
  11453. else {
  11454. return;
  11455. }
  11456. }
  11457. // for same element (v-show)
  11458. if (el._leaveCb) {
  11459. el._leaveCb(true /* cancelled */);
  11460. }
  11461. // for toggled element with same key (v-if)
  11462. const leavingVNode = leavingVNodesCache[key];
  11463. if (leavingVNode &&
  11464. isSameVNodeType(vnode, leavingVNode) &&
  11465. leavingVNode.el._leaveCb) {
  11466. // force early removal (not cancelled)
  11467. leavingVNode.el._leaveCb();
  11468. }
  11469. callHook(hook, [el]);
  11470. },
  11471. enter(el) {
  11472. let hook = onEnter;
  11473. let afterHook = onAfterEnter;
  11474. let cancelHook = onEnterCancelled;
  11475. if (!state.isMounted) {
  11476. if (appear) {
  11477. hook = onAppear || onEnter;
  11478. afterHook = onAfterAppear || onAfterEnter;
  11479. cancelHook = onAppearCancelled || onEnterCancelled;
  11480. }
  11481. else {
  11482. return;
  11483. }
  11484. }
  11485. let called = false;
  11486. const done = (el._enterCb = (cancelled) => {
  11487. if (called)
  11488. return;
  11489. called = true;
  11490. if (cancelled) {
  11491. callHook(cancelHook, [el]);
  11492. }
  11493. else {
  11494. callHook(afterHook, [el]);
  11495. }
  11496. if (hooks.delayedLeave) {
  11497. hooks.delayedLeave();
  11498. }
  11499. el._enterCb = undefined;
  11500. });
  11501. if (hook) {
  11502. hook(el, done);
  11503. if (hook.length <= 1) {
  11504. done();
  11505. }
  11506. }
  11507. else {
  11508. done();
  11509. }
  11510. },
  11511. leave(el, remove) {
  11512. const key = String(vnode.key);
  11513. if (el._enterCb) {
  11514. el._enterCb(true /* cancelled */);
  11515. }
  11516. if (state.isUnmounting) {
  11517. return remove();
  11518. }
  11519. callHook(onBeforeLeave, [el]);
  11520. let called = false;
  11521. const done = (el._leaveCb = (cancelled) => {
  11522. if (called)
  11523. return;
  11524. called = true;
  11525. remove();
  11526. if (cancelled) {
  11527. callHook(onLeaveCancelled, [el]);
  11528. }
  11529. else {
  11530. callHook(onAfterLeave, [el]);
  11531. }
  11532. el._leaveCb = undefined;
  11533. if (leavingVNodesCache[key] === vnode) {
  11534. delete leavingVNodesCache[key];
  11535. }
  11536. });
  11537. leavingVNodesCache[key] = vnode;
  11538. if (onLeave) {
  11539. onLeave(el, done);
  11540. if (onLeave.length <= 1) {
  11541. done();
  11542. }
  11543. }
  11544. else {
  11545. done();
  11546. }
  11547. },
  11548. clone(vnode) {
  11549. return resolveTransitionHooks(vnode, props, state, instance);
  11550. }
  11551. };
  11552. return hooks;
  11553. }
  11554. // the placeholder really only handles one special case: KeepAlive
  11555. // in the case of a KeepAlive in a leave phase we need to return a KeepAlive
  11556. // placeholder with empty content to avoid the KeepAlive instance from being
  11557. // unmounted.
  11558. function emptyPlaceholder(vnode) {
  11559. if (isKeepAlive(vnode)) {
  11560. vnode = cloneVNode(vnode);
  11561. vnode.children = null;
  11562. return vnode;
  11563. }
  11564. }
  11565. function getKeepAliveChild(vnode) {
  11566. return isKeepAlive(vnode)
  11567. ? vnode.children
  11568. ? vnode.children[0]
  11569. : undefined
  11570. : vnode;
  11571. }
  11572. function setTransitionHooks(vnode, hooks) {
  11573. if (vnode.shapeFlag & 6 /* COMPONENT */ && vnode.component) {
  11574. setTransitionHooks(vnode.component.subTree, hooks);
  11575. }
  11576. else if (vnode.shapeFlag & 128 /* SUSPENSE */) {
  11577. vnode.ssContent.transition = hooks.clone(vnode.ssContent);
  11578. vnode.ssFallback.transition = hooks.clone(vnode.ssFallback);
  11579. }
  11580. else {
  11581. vnode.transition = hooks;
  11582. }
  11583. }
  11584. function getTransitionRawChildren(children, keepComment = false, parentKey) {
  11585. let ret = [];
  11586. let keyedFragmentCount = 0;
  11587. for (let i = 0; i < children.length; i++) {
  11588. let child = children[i];
  11589. // #5360 inherit parent key in case of <template v-for>
  11590. const key = parentKey == null
  11591. ? child.key
  11592. : String(parentKey) + String(child.key != null ? child.key : i);
  11593. // handle fragment children case, e.g. v-for
  11594. if (child.type === Fragment) {
  11595. if (child.patchFlag & 128 /* KEYED_FRAGMENT */)
  11596. keyedFragmentCount++;
  11597. ret = ret.concat(getTransitionRawChildren(child.children, keepComment, key));
  11598. }
  11599. // comment placeholders should be skipped, e.g. v-if
  11600. else if (keepComment || child.type !== Comment) {
  11601. ret.push(key != null ? cloneVNode(child, { key }) : child);
  11602. }
  11603. }
  11604. // #1126 if a transition children list contains multiple sub fragments, these
  11605. // fragments will be merged into a flat children array. Since each v-for
  11606. // fragment may contain different static bindings inside, we need to de-op
  11607. // these children to force full diffs to ensure correct behavior.
  11608. if (keyedFragmentCount > 1) {
  11609. for (let i = 0; i < ret.length; i++) {
  11610. ret[i].patchFlag = -2 /* BAIL */;
  11611. }
  11612. }
  11613. return ret;
  11614. }
  11615. // implementation, close to no-op
  11616. function defineComponent(options) {
  11617. return (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(options) ? { setup: options, name: options.name } : options;
  11618. }
  11619. const isAsyncWrapper = (i) => !!i.type.__asyncLoader;
  11620. function defineAsyncComponent(source) {
  11621. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(source)) {
  11622. source = { loader: source };
  11623. }
  11624. const { loader, loadingComponent, errorComponent, delay = 200, timeout, // undefined = never times out
  11625. suspensible = true, onError: userOnError } = source;
  11626. let pendingRequest = null;
  11627. let resolvedComp;
  11628. let retries = 0;
  11629. const retry = () => {
  11630. retries++;
  11631. pendingRequest = null;
  11632. return load();
  11633. };
  11634. const load = () => {
  11635. let thisRequest;
  11636. return (pendingRequest ||
  11637. (thisRequest = pendingRequest =
  11638. loader()
  11639. .catch(err => {
  11640. err = err instanceof Error ? err : new Error(String(err));
  11641. if (userOnError) {
  11642. return new Promise((resolve, reject) => {
  11643. const userRetry = () => resolve(retry());
  11644. const userFail = () => reject(err);
  11645. userOnError(err, userRetry, userFail, retries + 1);
  11646. });
  11647. }
  11648. else {
  11649. throw err;
  11650. }
  11651. })
  11652. .then((comp) => {
  11653. if (thisRequest !== pendingRequest && pendingRequest) {
  11654. return pendingRequest;
  11655. }
  11656. if (( true) && !comp) {
  11657. warn(`Async component loader resolved to undefined. ` +
  11658. `If you are using retry(), make sure to return its return value.`);
  11659. }
  11660. // interop module default
  11661. if (comp &&
  11662. (comp.__esModule || comp[Symbol.toStringTag] === 'Module')) {
  11663. comp = comp.default;
  11664. }
  11665. if (( true) && comp && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isObject)(comp) && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(comp)) {
  11666. throw new Error(`Invalid async component load result: ${comp}`);
  11667. }
  11668. resolvedComp = comp;
  11669. return comp;
  11670. })));
  11671. };
  11672. return defineComponent({
  11673. name: 'AsyncComponentWrapper',
  11674. __asyncLoader: load,
  11675. get __asyncResolved() {
  11676. return resolvedComp;
  11677. },
  11678. setup() {
  11679. const instance = currentInstance;
  11680. // already resolved
  11681. if (resolvedComp) {
  11682. return () => createInnerComp(resolvedComp, instance);
  11683. }
  11684. const onError = (err) => {
  11685. pendingRequest = null;
  11686. handleError(err, instance, 13 /* ASYNC_COMPONENT_LOADER */, !errorComponent /* do not throw in dev if user provided error component */);
  11687. };
  11688. // suspense-controlled or SSR.
  11689. if ((suspensible && instance.suspense) ||
  11690. (isInSSRComponentSetup)) {
  11691. return load()
  11692. .then(comp => {
  11693. return () => createInnerComp(comp, instance);
  11694. })
  11695. .catch(err => {
  11696. onError(err);
  11697. return () => errorComponent
  11698. ? createVNode(errorComponent, {
  11699. error: err
  11700. })
  11701. : null;
  11702. });
  11703. }
  11704. const loaded = (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.ref)(false);
  11705. const error = (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.ref)();
  11706. const delayed = (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.ref)(!!delay);
  11707. if (delay) {
  11708. setTimeout(() => {
  11709. delayed.value = false;
  11710. }, delay);
  11711. }
  11712. if (timeout != null) {
  11713. setTimeout(() => {
  11714. if (!loaded.value && !error.value) {
  11715. const err = new Error(`Async component timed out after ${timeout}ms.`);
  11716. onError(err);
  11717. error.value = err;
  11718. }
  11719. }, timeout);
  11720. }
  11721. load()
  11722. .then(() => {
  11723. loaded.value = true;
  11724. if (instance.parent && isKeepAlive(instance.parent.vnode)) {
  11725. // parent is keep-alive, force update so the loaded component's
  11726. // name is taken into account
  11727. queueJob(instance.parent.update);
  11728. }
  11729. })
  11730. .catch(err => {
  11731. onError(err);
  11732. error.value = err;
  11733. });
  11734. return () => {
  11735. if (loaded.value && resolvedComp) {
  11736. return createInnerComp(resolvedComp, instance);
  11737. }
  11738. else if (error.value && errorComponent) {
  11739. return createVNode(errorComponent, {
  11740. error: error.value
  11741. });
  11742. }
  11743. else if (loadingComponent && !delayed.value) {
  11744. return createVNode(loadingComponent);
  11745. }
  11746. };
  11747. }
  11748. });
  11749. }
  11750. function createInnerComp(comp, { vnode: { ref, props, children } }) {
  11751. const vnode = createVNode(comp, props, children);
  11752. // ensure inner component inherits the async wrapper's ref owner
  11753. vnode.ref = ref;
  11754. return vnode;
  11755. }
  11756. const isKeepAlive = (vnode) => vnode.type.__isKeepAlive;
  11757. const KeepAliveImpl = {
  11758. name: `KeepAlive`,
  11759. // Marker for special handling inside the renderer. We are not using a ===
  11760. // check directly on KeepAlive in the renderer, because importing it directly
  11761. // would prevent it from being tree-shaken.
  11762. __isKeepAlive: true,
  11763. props: {
  11764. include: [String, RegExp, Array],
  11765. exclude: [String, RegExp, Array],
  11766. max: [String, Number]
  11767. },
  11768. setup(props, { slots }) {
  11769. const instance = getCurrentInstance();
  11770. // KeepAlive communicates with the instantiated renderer via the
  11771. // ctx where the renderer passes in its internals,
  11772. // and the KeepAlive instance exposes activate/deactivate implementations.
  11773. // The whole point of this is to avoid importing KeepAlive directly in the
  11774. // renderer to facilitate tree-shaking.
  11775. const sharedContext = instance.ctx;
  11776. // if the internal renderer is not registered, it indicates that this is server-side rendering,
  11777. // for KeepAlive, we just need to render its children
  11778. if (!sharedContext.renderer) {
  11779. return slots.default;
  11780. }
  11781. const cache = new Map();
  11782. const keys = new Set();
  11783. let current = null;
  11784. if (true) {
  11785. instance.__v_cache = cache;
  11786. }
  11787. const parentSuspense = instance.suspense;
  11788. const { renderer: { p: patch, m: move, um: _unmount, o: { createElement } } } = sharedContext;
  11789. const storageContainer = createElement('div');
  11790. sharedContext.activate = (vnode, container, anchor, isSVG, optimized) => {
  11791. const instance = vnode.component;
  11792. move(vnode, container, anchor, 0 /* ENTER */, parentSuspense);
  11793. // in case props have changed
  11794. patch(instance.vnode, vnode, container, anchor, instance, parentSuspense, isSVG, vnode.slotScopeIds, optimized);
  11795. queuePostRenderEffect(() => {
  11796. instance.isDeactivated = false;
  11797. if (instance.a) {
  11798. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.invokeArrayFns)(instance.a);
  11799. }
  11800. const vnodeHook = vnode.props && vnode.props.onVnodeMounted;
  11801. if (vnodeHook) {
  11802. invokeVNodeHook(vnodeHook, instance.parent, vnode);
  11803. }
  11804. }, parentSuspense);
  11805. if (true) {
  11806. // Update components tree
  11807. devtoolsComponentAdded(instance);
  11808. }
  11809. };
  11810. sharedContext.deactivate = (vnode) => {
  11811. const instance = vnode.component;
  11812. move(vnode, storageContainer, null, 1 /* LEAVE */, parentSuspense);
  11813. queuePostRenderEffect(() => {
  11814. if (instance.da) {
  11815. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.invokeArrayFns)(instance.da);
  11816. }
  11817. const vnodeHook = vnode.props && vnode.props.onVnodeUnmounted;
  11818. if (vnodeHook) {
  11819. invokeVNodeHook(vnodeHook, instance.parent, vnode);
  11820. }
  11821. instance.isDeactivated = true;
  11822. }, parentSuspense);
  11823. if (true) {
  11824. // Update components tree
  11825. devtoolsComponentAdded(instance);
  11826. }
  11827. };
  11828. function unmount(vnode) {
  11829. // reset the shapeFlag so it can be properly unmounted
  11830. resetShapeFlag(vnode);
  11831. _unmount(vnode, instance, parentSuspense, true);
  11832. }
  11833. function pruneCache(filter) {
  11834. cache.forEach((vnode, key) => {
  11835. const name = getComponentName(vnode.type);
  11836. if (name && (!filter || !filter(name))) {
  11837. pruneCacheEntry(key);
  11838. }
  11839. });
  11840. }
  11841. function pruneCacheEntry(key) {
  11842. const cached = cache.get(key);
  11843. if (!current || cached.type !== current.type) {
  11844. unmount(cached);
  11845. }
  11846. else if (current) {
  11847. // current active instance should no longer be kept-alive.
  11848. // we can't unmount it now but it might be later, so reset its flag now.
  11849. resetShapeFlag(current);
  11850. }
  11851. cache.delete(key);
  11852. keys.delete(key);
  11853. }
  11854. // prune cache on include/exclude prop change
  11855. watch(() => [props.include, props.exclude], ([include, exclude]) => {
  11856. include && pruneCache(name => matches(include, name));
  11857. exclude && pruneCache(name => !matches(exclude, name));
  11858. },
  11859. // prune post-render after `current` has been updated
  11860. { flush: 'post', deep: true });
  11861. // cache sub tree after render
  11862. let pendingCacheKey = null;
  11863. const cacheSubtree = () => {
  11864. // fix #1621, the pendingCacheKey could be 0
  11865. if (pendingCacheKey != null) {
  11866. cache.set(pendingCacheKey, getInnerChild(instance.subTree));
  11867. }
  11868. };
  11869. onMounted(cacheSubtree);
  11870. onUpdated(cacheSubtree);
  11871. onBeforeUnmount(() => {
  11872. cache.forEach(cached => {
  11873. const { subTree, suspense } = instance;
  11874. const vnode = getInnerChild(subTree);
  11875. if (cached.type === vnode.type) {
  11876. // current instance will be unmounted as part of keep-alive's unmount
  11877. resetShapeFlag(vnode);
  11878. // but invoke its deactivated hook here
  11879. const da = vnode.component.da;
  11880. da && queuePostRenderEffect(da, suspense);
  11881. return;
  11882. }
  11883. unmount(cached);
  11884. });
  11885. });
  11886. return () => {
  11887. pendingCacheKey = null;
  11888. if (!slots.default) {
  11889. return null;
  11890. }
  11891. const children = slots.default();
  11892. const rawVNode = children[0];
  11893. if (children.length > 1) {
  11894. if ((true)) {
  11895. warn(`KeepAlive should contain exactly one component child.`);
  11896. }
  11897. current = null;
  11898. return children;
  11899. }
  11900. else if (!isVNode(rawVNode) ||
  11901. (!(rawVNode.shapeFlag & 4 /* STATEFUL_COMPONENT */) &&
  11902. !(rawVNode.shapeFlag & 128 /* SUSPENSE */))) {
  11903. current = null;
  11904. return rawVNode;
  11905. }
  11906. let vnode = getInnerChild(rawVNode);
  11907. const comp = vnode.type;
  11908. // for async components, name check should be based in its loaded
  11909. // inner component if available
  11910. const name = getComponentName(isAsyncWrapper(vnode)
  11911. ? vnode.type.__asyncResolved || {}
  11912. : comp);
  11913. const { include, exclude, max } = props;
  11914. if ((include && (!name || !matches(include, name))) ||
  11915. (exclude && name && matches(exclude, name))) {
  11916. current = vnode;
  11917. return rawVNode;
  11918. }
  11919. const key = vnode.key == null ? comp : vnode.key;
  11920. const cachedVNode = cache.get(key);
  11921. // clone vnode if it's reused because we are going to mutate it
  11922. if (vnode.el) {
  11923. vnode = cloneVNode(vnode);
  11924. if (rawVNode.shapeFlag & 128 /* SUSPENSE */) {
  11925. rawVNode.ssContent = vnode;
  11926. }
  11927. }
  11928. // #1513 it's possible for the returned vnode to be cloned due to attr
  11929. // fallthrough or scopeId, so the vnode here may not be the final vnode
  11930. // that is mounted. Instead of caching it directly, we store the pending
  11931. // key and cache `instance.subTree` (the normalized vnode) in
  11932. // beforeMount/beforeUpdate hooks.
  11933. pendingCacheKey = key;
  11934. if (cachedVNode) {
  11935. // copy over mounted state
  11936. vnode.el = cachedVNode.el;
  11937. vnode.component = cachedVNode.component;
  11938. if (vnode.transition) {
  11939. // recursively update transition hooks on subTree
  11940. setTransitionHooks(vnode, vnode.transition);
  11941. }
  11942. // avoid vnode being mounted as fresh
  11943. vnode.shapeFlag |= 512 /* COMPONENT_KEPT_ALIVE */;
  11944. // make this key the freshest
  11945. keys.delete(key);
  11946. keys.add(key);
  11947. }
  11948. else {
  11949. keys.add(key);
  11950. // prune oldest entry
  11951. if (max && keys.size > parseInt(max, 10)) {
  11952. pruneCacheEntry(keys.values().next().value);
  11953. }
  11954. }
  11955. // avoid vnode being unmounted
  11956. vnode.shapeFlag |= 256 /* COMPONENT_SHOULD_KEEP_ALIVE */;
  11957. current = vnode;
  11958. return rawVNode;
  11959. };
  11960. }
  11961. };
  11962. // export the public type for h/tsx inference
  11963. // also to avoid inline import() in generated d.ts files
  11964. const KeepAlive = KeepAliveImpl;
  11965. function matches(pattern, name) {
  11966. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(pattern)) {
  11967. return pattern.some((p) => matches(p, name));
  11968. }
  11969. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(pattern)) {
  11970. return pattern.split(',').includes(name);
  11971. }
  11972. else if (pattern.test) {
  11973. return pattern.test(name);
  11974. }
  11975. /* istanbul ignore next */
  11976. return false;
  11977. }
  11978. function onActivated(hook, target) {
  11979. registerKeepAliveHook(hook, "a" /* ACTIVATED */, target);
  11980. }
  11981. function onDeactivated(hook, target) {
  11982. registerKeepAliveHook(hook, "da" /* DEACTIVATED */, target);
  11983. }
  11984. function registerKeepAliveHook(hook, type, target = currentInstance) {
  11985. // cache the deactivate branch check wrapper for injected hooks so the same
  11986. // hook can be properly deduped by the scheduler. "__wdc" stands for "with
  11987. // deactivation check".
  11988. const wrappedHook = hook.__wdc ||
  11989. (hook.__wdc = () => {
  11990. // only fire the hook if the target instance is NOT in a deactivated branch.
  11991. let current = target;
  11992. while (current) {
  11993. if (current.isDeactivated) {
  11994. return;
  11995. }
  11996. current = current.parent;
  11997. }
  11998. return hook();
  11999. });
  12000. injectHook(type, wrappedHook, target);
  12001. // In addition to registering it on the target instance, we walk up the parent
  12002. // chain and register it on all ancestor instances that are keep-alive roots.
  12003. // This avoids the need to walk the entire component tree when invoking these
  12004. // hooks, and more importantly, avoids the need to track child components in
  12005. // arrays.
  12006. if (target) {
  12007. let current = target.parent;
  12008. while (current && current.parent) {
  12009. if (isKeepAlive(current.parent.vnode)) {
  12010. injectToKeepAliveRoot(wrappedHook, type, target, current);
  12011. }
  12012. current = current.parent;
  12013. }
  12014. }
  12015. }
  12016. function injectToKeepAliveRoot(hook, type, target, keepAliveRoot) {
  12017. // injectHook wraps the original for error handling, so make sure to remove
  12018. // the wrapped version.
  12019. const injected = injectHook(type, hook, keepAliveRoot, true /* prepend */);
  12020. onUnmounted(() => {
  12021. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.remove)(keepAliveRoot[type], injected);
  12022. }, target);
  12023. }
  12024. function resetShapeFlag(vnode) {
  12025. let shapeFlag = vnode.shapeFlag;
  12026. if (shapeFlag & 256 /* COMPONENT_SHOULD_KEEP_ALIVE */) {
  12027. shapeFlag -= 256 /* COMPONENT_SHOULD_KEEP_ALIVE */;
  12028. }
  12029. if (shapeFlag & 512 /* COMPONENT_KEPT_ALIVE */) {
  12030. shapeFlag -= 512 /* COMPONENT_KEPT_ALIVE */;
  12031. }
  12032. vnode.shapeFlag = shapeFlag;
  12033. }
  12034. function getInnerChild(vnode) {
  12035. return vnode.shapeFlag & 128 /* SUSPENSE */ ? vnode.ssContent : vnode;
  12036. }
  12037. function injectHook(type, hook, target = currentInstance, prepend = false) {
  12038. if (target) {
  12039. const hooks = target[type] || (target[type] = []);
  12040. // cache the error handling wrapper for injected hooks so the same hook
  12041. // can be properly deduped by the scheduler. "__weh" stands for "with error
  12042. // handling".
  12043. const wrappedHook = hook.__weh ||
  12044. (hook.__weh = (...args) => {
  12045. if (target.isUnmounted) {
  12046. return;
  12047. }
  12048. // disable tracking inside all lifecycle hooks
  12049. // since they can potentially be called inside effects.
  12050. (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.pauseTracking)();
  12051. // Set currentInstance during hook invocation.
  12052. // This assumes the hook does not synchronously trigger other hooks, which
  12053. // can only be false when the user does something really funky.
  12054. setCurrentInstance(target);
  12055. const res = callWithAsyncErrorHandling(hook, target, type, args);
  12056. unsetCurrentInstance();
  12057. (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.resetTracking)();
  12058. return res;
  12059. });
  12060. if (prepend) {
  12061. hooks.unshift(wrappedHook);
  12062. }
  12063. else {
  12064. hooks.push(wrappedHook);
  12065. }
  12066. return wrappedHook;
  12067. }
  12068. else if ((true)) {
  12069. const apiName = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.toHandlerKey)(ErrorTypeStrings[type].replace(/ hook$/, ''));
  12070. warn(`${apiName} is called when there is no active component instance to be ` +
  12071. `associated with. ` +
  12072. `Lifecycle injection APIs can only be used during execution of setup().` +
  12073. (` If you are using async setup(), make sure to register lifecycle ` +
  12074. `hooks before the first await statement.`
  12075. ));
  12076. }
  12077. }
  12078. const createHook = (lifecycle) => (hook, target = currentInstance) =>
  12079. // post-create lifecycle registrations are noops during SSR (except for serverPrefetch)
  12080. (!isInSSRComponentSetup || lifecycle === "sp" /* SERVER_PREFETCH */) &&
  12081. injectHook(lifecycle, hook, target);
  12082. const onBeforeMount = createHook("bm" /* BEFORE_MOUNT */);
  12083. const onMounted = createHook("m" /* MOUNTED */);
  12084. const onBeforeUpdate = createHook("bu" /* BEFORE_UPDATE */);
  12085. const onUpdated = createHook("u" /* UPDATED */);
  12086. const onBeforeUnmount = createHook("bum" /* BEFORE_UNMOUNT */);
  12087. const onUnmounted = createHook("um" /* UNMOUNTED */);
  12088. const onServerPrefetch = createHook("sp" /* SERVER_PREFETCH */);
  12089. const onRenderTriggered = createHook("rtg" /* RENDER_TRIGGERED */);
  12090. const onRenderTracked = createHook("rtc" /* RENDER_TRACKED */);
  12091. function onErrorCaptured(hook, target = currentInstance) {
  12092. injectHook("ec" /* ERROR_CAPTURED */, hook, target);
  12093. }
  12094. function createDuplicateChecker() {
  12095. const cache = Object.create(null);
  12096. return (type, key) => {
  12097. if (cache[key]) {
  12098. warn(`${type} property "${key}" is already defined in ${cache[key]}.`);
  12099. }
  12100. else {
  12101. cache[key] = type;
  12102. }
  12103. };
  12104. }
  12105. let shouldCacheAccess = true;
  12106. function applyOptions(instance) {
  12107. const options = resolveMergedOptions(instance);
  12108. const publicThis = instance.proxy;
  12109. const ctx = instance.ctx;
  12110. // do not cache property access on public proxy during state initialization
  12111. shouldCacheAccess = false;
  12112. // call beforeCreate first before accessing other options since
  12113. // the hook may mutate resolved options (#2791)
  12114. if (options.beforeCreate) {
  12115. callHook(options.beforeCreate, instance, "bc" /* BEFORE_CREATE */);
  12116. }
  12117. const {
  12118. // state
  12119. data: dataOptions, computed: computedOptions, methods, watch: watchOptions, provide: provideOptions, inject: injectOptions,
  12120. // lifecycle
  12121. created, beforeMount, mounted, beforeUpdate, updated, activated, deactivated, beforeDestroy, beforeUnmount, destroyed, unmounted, render, renderTracked, renderTriggered, errorCaptured, serverPrefetch,
  12122. // public API
  12123. expose, inheritAttrs,
  12124. // assets
  12125. components, directives, filters } = options;
  12126. const checkDuplicateProperties = ( true) ? createDuplicateChecker() : 0;
  12127. if ((true)) {
  12128. const [propsOptions] = instance.propsOptions;
  12129. if (propsOptions) {
  12130. for (const key in propsOptions) {
  12131. checkDuplicateProperties("Props" /* PROPS */, key);
  12132. }
  12133. }
  12134. }
  12135. // options initialization order (to be consistent with Vue 2):
  12136. // - props (already done outside of this function)
  12137. // - inject
  12138. // - methods
  12139. // - data (deferred since it relies on `this` access)
  12140. // - computed
  12141. // - watch (deferred since it relies on `this` access)
  12142. if (injectOptions) {
  12143. resolveInjections(injectOptions, ctx, checkDuplicateProperties, instance.appContext.config.unwrapInjectedRef);
  12144. }
  12145. if (methods) {
  12146. for (const key in methods) {
  12147. const methodHandler = methods[key];
  12148. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(methodHandler)) {
  12149. // In dev mode, we use the `createRenderContext` function to define
  12150. // methods to the proxy target, and those are read-only but
  12151. // reconfigurable, so it needs to be redefined here
  12152. if ((true)) {
  12153. Object.defineProperty(ctx, key, {
  12154. value: methodHandler.bind(publicThis),
  12155. configurable: true,
  12156. enumerable: true,
  12157. writable: true
  12158. });
  12159. }
  12160. else {}
  12161. if ((true)) {
  12162. checkDuplicateProperties("Methods" /* METHODS */, key);
  12163. }
  12164. }
  12165. else if ((true)) {
  12166. warn(`Method "${key}" has type "${typeof methodHandler}" in the component definition. ` +
  12167. `Did you reference the function correctly?`);
  12168. }
  12169. }
  12170. }
  12171. if (dataOptions) {
  12172. if (( true) && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(dataOptions)) {
  12173. warn(`The data option must be a function. ` +
  12174. `Plain object usage is no longer supported.`);
  12175. }
  12176. const data = dataOptions.call(publicThis, publicThis);
  12177. if (( true) && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isPromise)(data)) {
  12178. warn(`data() returned a Promise - note data() cannot be async; If you ` +
  12179. `intend to perform data fetching before component renders, use ` +
  12180. `async setup() + <Suspense>.`);
  12181. }
  12182. if (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isObject)(data)) {
  12183. ( true) && warn(`data() should return an object.`);
  12184. }
  12185. else {
  12186. instance.data = (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.reactive)(data);
  12187. if ((true)) {
  12188. for (const key in data) {
  12189. checkDuplicateProperties("Data" /* DATA */, key);
  12190. // expose data on ctx during dev
  12191. if (key[0] !== '$' && key[0] !== '_') {
  12192. Object.defineProperty(ctx, key, {
  12193. configurable: true,
  12194. enumerable: true,
  12195. get: () => data[key],
  12196. set: _vue_shared__WEBPACK_IMPORTED_MODULE_1__.NOOP
  12197. });
  12198. }
  12199. }
  12200. }
  12201. }
  12202. }
  12203. // state initialization complete at this point - start caching access
  12204. shouldCacheAccess = true;
  12205. if (computedOptions) {
  12206. for (const key in computedOptions) {
  12207. const opt = computedOptions[key];
  12208. const get = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(opt)
  12209. ? opt.bind(publicThis, publicThis)
  12210. : (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(opt.get)
  12211. ? opt.get.bind(publicThis, publicThis)
  12212. : _vue_shared__WEBPACK_IMPORTED_MODULE_1__.NOOP;
  12213. if (( true) && get === _vue_shared__WEBPACK_IMPORTED_MODULE_1__.NOOP) {
  12214. warn(`Computed property "${key}" has no getter.`);
  12215. }
  12216. const set = !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(opt) && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(opt.set)
  12217. ? opt.set.bind(publicThis)
  12218. : ( true)
  12219. ? () => {
  12220. warn(`Write operation failed: computed property "${key}" is readonly.`);
  12221. }
  12222. : 0;
  12223. const c = computed({
  12224. get,
  12225. set
  12226. });
  12227. Object.defineProperty(ctx, key, {
  12228. enumerable: true,
  12229. configurable: true,
  12230. get: () => c.value,
  12231. set: v => (c.value = v)
  12232. });
  12233. if ((true)) {
  12234. checkDuplicateProperties("Computed" /* COMPUTED */, key);
  12235. }
  12236. }
  12237. }
  12238. if (watchOptions) {
  12239. for (const key in watchOptions) {
  12240. createWatcher(watchOptions[key], ctx, publicThis, key);
  12241. }
  12242. }
  12243. if (provideOptions) {
  12244. const provides = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(provideOptions)
  12245. ? provideOptions.call(publicThis)
  12246. : provideOptions;
  12247. Reflect.ownKeys(provides).forEach(key => {
  12248. provide(key, provides[key]);
  12249. });
  12250. }
  12251. if (created) {
  12252. callHook(created, instance, "c" /* CREATED */);
  12253. }
  12254. function registerLifecycleHook(register, hook) {
  12255. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(hook)) {
  12256. hook.forEach(_hook => register(_hook.bind(publicThis)));
  12257. }
  12258. else if (hook) {
  12259. register(hook.bind(publicThis));
  12260. }
  12261. }
  12262. registerLifecycleHook(onBeforeMount, beforeMount);
  12263. registerLifecycleHook(onMounted, mounted);
  12264. registerLifecycleHook(onBeforeUpdate, beforeUpdate);
  12265. registerLifecycleHook(onUpdated, updated);
  12266. registerLifecycleHook(onActivated, activated);
  12267. registerLifecycleHook(onDeactivated, deactivated);
  12268. registerLifecycleHook(onErrorCaptured, errorCaptured);
  12269. registerLifecycleHook(onRenderTracked, renderTracked);
  12270. registerLifecycleHook(onRenderTriggered, renderTriggered);
  12271. registerLifecycleHook(onBeforeUnmount, beforeUnmount);
  12272. registerLifecycleHook(onUnmounted, unmounted);
  12273. registerLifecycleHook(onServerPrefetch, serverPrefetch);
  12274. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(expose)) {
  12275. if (expose.length) {
  12276. const exposed = instance.exposed || (instance.exposed = {});
  12277. expose.forEach(key => {
  12278. Object.defineProperty(exposed, key, {
  12279. get: () => publicThis[key],
  12280. set: val => (publicThis[key] = val)
  12281. });
  12282. });
  12283. }
  12284. else if (!instance.exposed) {
  12285. instance.exposed = {};
  12286. }
  12287. }
  12288. // options that are handled when creating the instance but also need to be
  12289. // applied from mixins
  12290. if (render && instance.render === _vue_shared__WEBPACK_IMPORTED_MODULE_1__.NOOP) {
  12291. instance.render = render;
  12292. }
  12293. if (inheritAttrs != null) {
  12294. instance.inheritAttrs = inheritAttrs;
  12295. }
  12296. // asset options.
  12297. if (components)
  12298. instance.components = components;
  12299. if (directives)
  12300. instance.directives = directives;
  12301. }
  12302. function resolveInjections(injectOptions, ctx, checkDuplicateProperties = _vue_shared__WEBPACK_IMPORTED_MODULE_1__.NOOP, unwrapRef = false) {
  12303. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(injectOptions)) {
  12304. injectOptions = normalizeInject(injectOptions);
  12305. }
  12306. for (const key in injectOptions) {
  12307. const opt = injectOptions[key];
  12308. let injected;
  12309. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isObject)(opt)) {
  12310. if ('default' in opt) {
  12311. injected = inject(opt.from || key, opt.default, true /* treat default function as factory */);
  12312. }
  12313. else {
  12314. injected = inject(opt.from || key);
  12315. }
  12316. }
  12317. else {
  12318. injected = inject(opt);
  12319. }
  12320. if ((0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isRef)(injected)) {
  12321. // TODO remove the check in 3.3
  12322. if (unwrapRef) {
  12323. Object.defineProperty(ctx, key, {
  12324. enumerable: true,
  12325. configurable: true,
  12326. get: () => injected.value,
  12327. set: v => (injected.value = v)
  12328. });
  12329. }
  12330. else {
  12331. if ((true)) {
  12332. warn(`injected property "${key}" is a ref and will be auto-unwrapped ` +
  12333. `and no longer needs \`.value\` in the next minor release. ` +
  12334. `To opt-in to the new behavior now, ` +
  12335. `set \`app.config.unwrapInjectedRef = true\` (this config is ` +
  12336. `temporary and will not be needed in the future.)`);
  12337. }
  12338. ctx[key] = injected;
  12339. }
  12340. }
  12341. else {
  12342. ctx[key] = injected;
  12343. }
  12344. if ((true)) {
  12345. checkDuplicateProperties("Inject" /* INJECT */, key);
  12346. }
  12347. }
  12348. }
  12349. function callHook(hook, instance, type) {
  12350. callWithAsyncErrorHandling((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(hook)
  12351. ? hook.map(h => h.bind(instance.proxy))
  12352. : hook.bind(instance.proxy), instance, type);
  12353. }
  12354. function createWatcher(raw, ctx, publicThis, key) {
  12355. const getter = key.includes('.')
  12356. ? createPathGetter(publicThis, key)
  12357. : () => publicThis[key];
  12358. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(raw)) {
  12359. const handler = ctx[raw];
  12360. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(handler)) {
  12361. watch(getter, handler);
  12362. }
  12363. else if ((true)) {
  12364. warn(`Invalid watch handler specified by key "${raw}"`, handler);
  12365. }
  12366. }
  12367. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(raw)) {
  12368. watch(getter, raw.bind(publicThis));
  12369. }
  12370. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isObject)(raw)) {
  12371. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(raw)) {
  12372. raw.forEach(r => createWatcher(r, ctx, publicThis, key));
  12373. }
  12374. else {
  12375. const handler = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(raw.handler)
  12376. ? raw.handler.bind(publicThis)
  12377. : ctx[raw.handler];
  12378. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(handler)) {
  12379. watch(getter, handler, raw);
  12380. }
  12381. else if ((true)) {
  12382. warn(`Invalid watch handler specified by key "${raw.handler}"`, handler);
  12383. }
  12384. }
  12385. }
  12386. else if ((true)) {
  12387. warn(`Invalid watch option: "${key}"`, raw);
  12388. }
  12389. }
  12390. /**
  12391. * Resolve merged options and cache it on the component.
  12392. * This is done only once per-component since the merging does not involve
  12393. * instances.
  12394. */
  12395. function resolveMergedOptions(instance) {
  12396. const base = instance.type;
  12397. const { mixins, extends: extendsOptions } = base;
  12398. const { mixins: globalMixins, optionsCache: cache, config: { optionMergeStrategies } } = instance.appContext;
  12399. const cached = cache.get(base);
  12400. let resolved;
  12401. if (cached) {
  12402. resolved = cached;
  12403. }
  12404. else if (!globalMixins.length && !mixins && !extendsOptions) {
  12405. {
  12406. resolved = base;
  12407. }
  12408. }
  12409. else {
  12410. resolved = {};
  12411. if (globalMixins.length) {
  12412. globalMixins.forEach(m => mergeOptions(resolved, m, optionMergeStrategies, true));
  12413. }
  12414. mergeOptions(resolved, base, optionMergeStrategies);
  12415. }
  12416. cache.set(base, resolved);
  12417. return resolved;
  12418. }
  12419. function mergeOptions(to, from, strats, asMixin = false) {
  12420. const { mixins, extends: extendsOptions } = from;
  12421. if (extendsOptions) {
  12422. mergeOptions(to, extendsOptions, strats, true);
  12423. }
  12424. if (mixins) {
  12425. mixins.forEach((m) => mergeOptions(to, m, strats, true));
  12426. }
  12427. for (const key in from) {
  12428. if (asMixin && key === 'expose') {
  12429. ( true) &&
  12430. warn(`"expose" option is ignored when declared in mixins or extends. ` +
  12431. `It should only be declared in the base component itself.`);
  12432. }
  12433. else {
  12434. const strat = internalOptionMergeStrats[key] || (strats && strats[key]);
  12435. to[key] = strat ? strat(to[key], from[key]) : from[key];
  12436. }
  12437. }
  12438. return to;
  12439. }
  12440. const internalOptionMergeStrats = {
  12441. data: mergeDataFn,
  12442. props: mergeObjectOptions,
  12443. emits: mergeObjectOptions,
  12444. // objects
  12445. methods: mergeObjectOptions,
  12446. computed: mergeObjectOptions,
  12447. // lifecycle
  12448. beforeCreate: mergeAsArray,
  12449. created: mergeAsArray,
  12450. beforeMount: mergeAsArray,
  12451. mounted: mergeAsArray,
  12452. beforeUpdate: mergeAsArray,
  12453. updated: mergeAsArray,
  12454. beforeDestroy: mergeAsArray,
  12455. beforeUnmount: mergeAsArray,
  12456. destroyed: mergeAsArray,
  12457. unmounted: mergeAsArray,
  12458. activated: mergeAsArray,
  12459. deactivated: mergeAsArray,
  12460. errorCaptured: mergeAsArray,
  12461. serverPrefetch: mergeAsArray,
  12462. // assets
  12463. components: mergeObjectOptions,
  12464. directives: mergeObjectOptions,
  12465. // watch
  12466. watch: mergeWatchOptions,
  12467. // provide / inject
  12468. provide: mergeDataFn,
  12469. inject: mergeInject
  12470. };
  12471. function mergeDataFn(to, from) {
  12472. if (!from) {
  12473. return to;
  12474. }
  12475. if (!to) {
  12476. return from;
  12477. }
  12478. return function mergedDataFn() {
  12479. return ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend))((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(to) ? to.call(this, this) : to, (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(from) ? from.call(this, this) : from);
  12480. };
  12481. }
  12482. function mergeInject(to, from) {
  12483. return mergeObjectOptions(normalizeInject(to), normalizeInject(from));
  12484. }
  12485. function normalizeInject(raw) {
  12486. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(raw)) {
  12487. const res = {};
  12488. for (let i = 0; i < raw.length; i++) {
  12489. res[raw[i]] = raw[i];
  12490. }
  12491. return res;
  12492. }
  12493. return raw;
  12494. }
  12495. function mergeAsArray(to, from) {
  12496. return to ? [...new Set([].concat(to, from))] : from;
  12497. }
  12498. function mergeObjectOptions(to, from) {
  12499. return to ? (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)(Object.create(null), to), from) : from;
  12500. }
  12501. function mergeWatchOptions(to, from) {
  12502. if (!to)
  12503. return from;
  12504. if (!from)
  12505. return to;
  12506. const merged = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)(Object.create(null), to);
  12507. for (const key in from) {
  12508. merged[key] = mergeAsArray(to[key], from[key]);
  12509. }
  12510. return merged;
  12511. }
  12512. function initProps(instance, rawProps, isStateful, // result of bitwise flag comparison
  12513. isSSR = false) {
  12514. const props = {};
  12515. const attrs = {};
  12516. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.def)(attrs, InternalObjectKey, 1);
  12517. instance.propsDefaults = Object.create(null);
  12518. setFullProps(instance, rawProps, props, attrs);
  12519. // ensure all declared prop keys are present
  12520. for (const key in instance.propsOptions[0]) {
  12521. if (!(key in props)) {
  12522. props[key] = undefined;
  12523. }
  12524. }
  12525. // validation
  12526. if ((true)) {
  12527. validateProps(rawProps || {}, props, instance);
  12528. }
  12529. if (isStateful) {
  12530. // stateful
  12531. instance.props = isSSR ? props : (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.shallowReactive)(props);
  12532. }
  12533. else {
  12534. if (!instance.type.props) {
  12535. // functional w/ optional props, props === attrs
  12536. instance.props = attrs;
  12537. }
  12538. else {
  12539. // functional w/ declared props
  12540. instance.props = props;
  12541. }
  12542. }
  12543. instance.attrs = attrs;
  12544. }
  12545. function updateProps(instance, rawProps, rawPrevProps, optimized) {
  12546. const { props, attrs, vnode: { patchFlag } } = instance;
  12547. const rawCurrentProps = (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.toRaw)(props);
  12548. const [options] = instance.propsOptions;
  12549. let hasAttrsChanged = false;
  12550. if (
  12551. // always force full diff in dev
  12552. // - #1942 if hmr is enabled with sfc component
  12553. // - vite#872 non-sfc component used by sfc component
  12554. !(( true) &&
  12555. (instance.type.__hmrId ||
  12556. (instance.parent && instance.parent.type.__hmrId))) &&
  12557. (optimized || patchFlag > 0) &&
  12558. !(patchFlag & 16 /* FULL_PROPS */)) {
  12559. if (patchFlag & 8 /* PROPS */) {
  12560. // Compiler-generated props & no keys change, just set the updated
  12561. // the props.
  12562. const propsToUpdate = instance.vnode.dynamicProps;
  12563. for (let i = 0; i < propsToUpdate.length; i++) {
  12564. let key = propsToUpdate[i];
  12565. // skip if the prop key is a declared emit event listener
  12566. if (isEmitListener(instance.emitsOptions, key)) {
  12567. continue;
  12568. }
  12569. // PROPS flag guarantees rawProps to be non-null
  12570. const value = rawProps[key];
  12571. if (options) {
  12572. // attr / props separation was done on init and will be consistent
  12573. // in this code path, so just check if attrs have it.
  12574. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(attrs, key)) {
  12575. if (value !== attrs[key]) {
  12576. attrs[key] = value;
  12577. hasAttrsChanged = true;
  12578. }
  12579. }
  12580. else {
  12581. const camelizedKey = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.camelize)(key);
  12582. props[camelizedKey] = resolvePropValue(options, rawCurrentProps, camelizedKey, value, instance, false /* isAbsent */);
  12583. }
  12584. }
  12585. else {
  12586. if (value !== attrs[key]) {
  12587. attrs[key] = value;
  12588. hasAttrsChanged = true;
  12589. }
  12590. }
  12591. }
  12592. }
  12593. }
  12594. else {
  12595. // full props update.
  12596. if (setFullProps(instance, rawProps, props, attrs)) {
  12597. hasAttrsChanged = true;
  12598. }
  12599. // in case of dynamic props, check if we need to delete keys from
  12600. // the props object
  12601. let kebabKey;
  12602. for (const key in rawCurrentProps) {
  12603. if (!rawProps ||
  12604. // for camelCase
  12605. (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(rawProps, key) &&
  12606. // it's possible the original props was passed in as kebab-case
  12607. // and converted to camelCase (#955)
  12608. ((kebabKey = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hyphenate)(key)) === key || !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(rawProps, kebabKey)))) {
  12609. if (options) {
  12610. if (rawPrevProps &&
  12611. // for camelCase
  12612. (rawPrevProps[key] !== undefined ||
  12613. // for kebab-case
  12614. rawPrevProps[kebabKey] !== undefined)) {
  12615. props[key] = resolvePropValue(options, rawCurrentProps, key, undefined, instance, true /* isAbsent */);
  12616. }
  12617. }
  12618. else {
  12619. delete props[key];
  12620. }
  12621. }
  12622. }
  12623. // in the case of functional component w/o props declaration, props and
  12624. // attrs point to the same object so it should already have been updated.
  12625. if (attrs !== rawCurrentProps) {
  12626. for (const key in attrs) {
  12627. if (!rawProps ||
  12628. (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(rawProps, key) &&
  12629. (!false ))) {
  12630. delete attrs[key];
  12631. hasAttrsChanged = true;
  12632. }
  12633. }
  12634. }
  12635. }
  12636. // trigger updates for $attrs in case it's used in component slots
  12637. if (hasAttrsChanged) {
  12638. (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.trigger)(instance, "set" /* SET */, '$attrs');
  12639. }
  12640. if ((true)) {
  12641. validateProps(rawProps || {}, props, instance);
  12642. }
  12643. }
  12644. function setFullProps(instance, rawProps, props, attrs) {
  12645. const [options, needCastKeys] = instance.propsOptions;
  12646. let hasAttrsChanged = false;
  12647. let rawCastValues;
  12648. if (rawProps) {
  12649. for (let key in rawProps) {
  12650. // key, ref are reserved and never passed down
  12651. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isReservedProp)(key)) {
  12652. continue;
  12653. }
  12654. const value = rawProps[key];
  12655. // prop option names are camelized during normalization, so to support
  12656. // kebab -> camel conversion here we need to camelize the key.
  12657. let camelKey;
  12658. if (options && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(options, (camelKey = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.camelize)(key)))) {
  12659. if (!needCastKeys || !needCastKeys.includes(camelKey)) {
  12660. props[camelKey] = value;
  12661. }
  12662. else {
  12663. (rawCastValues || (rawCastValues = {}))[camelKey] = value;
  12664. }
  12665. }
  12666. else if (!isEmitListener(instance.emitsOptions, key)) {
  12667. if (!(key in attrs) || value !== attrs[key]) {
  12668. attrs[key] = value;
  12669. hasAttrsChanged = true;
  12670. }
  12671. }
  12672. }
  12673. }
  12674. if (needCastKeys) {
  12675. const rawCurrentProps = (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.toRaw)(props);
  12676. const castValues = rawCastValues || _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ;
  12677. for (let i = 0; i < needCastKeys.length; i++) {
  12678. const key = needCastKeys[i];
  12679. props[key] = resolvePropValue(options, rawCurrentProps, key, castValues[key], instance, !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(castValues, key));
  12680. }
  12681. }
  12682. return hasAttrsChanged;
  12683. }
  12684. function resolvePropValue(options, props, key, value, instance, isAbsent) {
  12685. const opt = options[key];
  12686. if (opt != null) {
  12687. const hasDefault = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(opt, 'default');
  12688. // default values
  12689. if (hasDefault && value === undefined) {
  12690. const defaultValue = opt.default;
  12691. if (opt.type !== Function && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(defaultValue)) {
  12692. const { propsDefaults } = instance;
  12693. if (key in propsDefaults) {
  12694. value = propsDefaults[key];
  12695. }
  12696. else {
  12697. setCurrentInstance(instance);
  12698. value = propsDefaults[key] = defaultValue.call(null, props);
  12699. unsetCurrentInstance();
  12700. }
  12701. }
  12702. else {
  12703. value = defaultValue;
  12704. }
  12705. }
  12706. // boolean casting
  12707. if (opt[0 /* shouldCast */]) {
  12708. if (isAbsent && !hasDefault) {
  12709. value = false;
  12710. }
  12711. else if (opt[1 /* shouldCastTrue */] &&
  12712. (value === '' || value === (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hyphenate)(key))) {
  12713. value = true;
  12714. }
  12715. }
  12716. }
  12717. return value;
  12718. }
  12719. function normalizePropsOptions(comp, appContext, asMixin = false) {
  12720. const cache = appContext.propsCache;
  12721. const cached = cache.get(comp);
  12722. if (cached) {
  12723. return cached;
  12724. }
  12725. const raw = comp.props;
  12726. const normalized = {};
  12727. const needCastKeys = [];
  12728. // apply mixin/extends props
  12729. let hasExtends = false;
  12730. if ( true && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(comp)) {
  12731. const extendProps = (raw) => {
  12732. hasExtends = true;
  12733. const [props, keys] = normalizePropsOptions(raw, appContext, true);
  12734. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)(normalized, props);
  12735. if (keys)
  12736. needCastKeys.push(...keys);
  12737. };
  12738. if (!asMixin && appContext.mixins.length) {
  12739. appContext.mixins.forEach(extendProps);
  12740. }
  12741. if (comp.extends) {
  12742. extendProps(comp.extends);
  12743. }
  12744. if (comp.mixins) {
  12745. comp.mixins.forEach(extendProps);
  12746. }
  12747. }
  12748. if (!raw && !hasExtends) {
  12749. cache.set(comp, _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_ARR);
  12750. return _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_ARR;
  12751. }
  12752. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(raw)) {
  12753. for (let i = 0; i < raw.length; i++) {
  12754. if (( true) && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(raw[i])) {
  12755. warn(`props must be strings when using array syntax.`, raw[i]);
  12756. }
  12757. const normalizedKey = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.camelize)(raw[i]);
  12758. if (validatePropName(normalizedKey)) {
  12759. normalized[normalizedKey] = _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ;
  12760. }
  12761. }
  12762. }
  12763. else if (raw) {
  12764. if (( true) && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isObject)(raw)) {
  12765. warn(`invalid props options`, raw);
  12766. }
  12767. for (const key in raw) {
  12768. const normalizedKey = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.camelize)(key);
  12769. if (validatePropName(normalizedKey)) {
  12770. const opt = raw[key];
  12771. const prop = (normalized[normalizedKey] =
  12772. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(opt) || (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(opt) ? { type: opt } : opt);
  12773. if (prop) {
  12774. const booleanIndex = getTypeIndex(Boolean, prop.type);
  12775. const stringIndex = getTypeIndex(String, prop.type);
  12776. prop[0 /* shouldCast */] = booleanIndex > -1;
  12777. prop[1 /* shouldCastTrue */] =
  12778. stringIndex < 0 || booleanIndex < stringIndex;
  12779. // if the prop needs boolean casting or default value
  12780. if (booleanIndex > -1 || (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(prop, 'default')) {
  12781. needCastKeys.push(normalizedKey);
  12782. }
  12783. }
  12784. }
  12785. }
  12786. }
  12787. const res = [normalized, needCastKeys];
  12788. cache.set(comp, res);
  12789. return res;
  12790. }
  12791. function validatePropName(key) {
  12792. if (key[0] !== '$') {
  12793. return true;
  12794. }
  12795. else if ((true)) {
  12796. warn(`Invalid prop name: "${key}" is a reserved property.`);
  12797. }
  12798. return false;
  12799. }
  12800. // use function string name to check type constructors
  12801. // so that it works across vms / iframes.
  12802. function getType(ctor) {
  12803. const match = ctor && ctor.toString().match(/^\s*function (\w+)/);
  12804. return match ? match[1] : ctor === null ? 'null' : '';
  12805. }
  12806. function isSameType(a, b) {
  12807. return getType(a) === getType(b);
  12808. }
  12809. function getTypeIndex(type, expectedTypes) {
  12810. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(expectedTypes)) {
  12811. return expectedTypes.findIndex(t => isSameType(t, type));
  12812. }
  12813. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(expectedTypes)) {
  12814. return isSameType(expectedTypes, type) ? 0 : -1;
  12815. }
  12816. return -1;
  12817. }
  12818. /**
  12819. * dev only
  12820. */
  12821. function validateProps(rawProps, props, instance) {
  12822. const resolvedValues = (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.toRaw)(props);
  12823. const options = instance.propsOptions[0];
  12824. for (const key in options) {
  12825. let opt = options[key];
  12826. if (opt == null)
  12827. continue;
  12828. validateProp(key, resolvedValues[key], opt, !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(rawProps, key) && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(rawProps, (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hyphenate)(key)));
  12829. }
  12830. }
  12831. /**
  12832. * dev only
  12833. */
  12834. function validateProp(name, value, prop, isAbsent) {
  12835. const { type, required, validator } = prop;
  12836. // required!
  12837. if (required && isAbsent) {
  12838. warn('Missing required prop: "' + name + '"');
  12839. return;
  12840. }
  12841. // missing but optional
  12842. if (value == null && !prop.required) {
  12843. return;
  12844. }
  12845. // type check
  12846. if (type != null && type !== true) {
  12847. let isValid = false;
  12848. const types = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(type) ? type : [type];
  12849. const expectedTypes = [];
  12850. // value is valid as long as one of the specified types match
  12851. for (let i = 0; i < types.length && !isValid; i++) {
  12852. const { valid, expectedType } = assertType(value, types[i]);
  12853. expectedTypes.push(expectedType || '');
  12854. isValid = valid;
  12855. }
  12856. if (!isValid) {
  12857. warn(getInvalidTypeMessage(name, value, expectedTypes));
  12858. return;
  12859. }
  12860. }
  12861. // custom validator
  12862. if (validator && !validator(value)) {
  12863. warn('Invalid prop: custom validator check failed for prop "' + name + '".');
  12864. }
  12865. }
  12866. const isSimpleType = /*#__PURE__*/ (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.makeMap)('String,Number,Boolean,Function,Symbol,BigInt');
  12867. /**
  12868. * dev only
  12869. */
  12870. function assertType(value, type) {
  12871. let valid;
  12872. const expectedType = getType(type);
  12873. if (isSimpleType(expectedType)) {
  12874. const t = typeof value;
  12875. valid = t === expectedType.toLowerCase();
  12876. // for primitive wrapper objects
  12877. if (!valid && t === 'object') {
  12878. valid = value instanceof type;
  12879. }
  12880. }
  12881. else if (expectedType === 'Object') {
  12882. valid = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isObject)(value);
  12883. }
  12884. else if (expectedType === 'Array') {
  12885. valid = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(value);
  12886. }
  12887. else if (expectedType === 'null') {
  12888. valid = value === null;
  12889. }
  12890. else {
  12891. valid = value instanceof type;
  12892. }
  12893. return {
  12894. valid,
  12895. expectedType
  12896. };
  12897. }
  12898. /**
  12899. * dev only
  12900. */
  12901. function getInvalidTypeMessage(name, value, expectedTypes) {
  12902. let message = `Invalid prop: type check failed for prop "${name}".` +
  12903. ` Expected ${expectedTypes.map(_vue_shared__WEBPACK_IMPORTED_MODULE_1__.capitalize).join(' | ')}`;
  12904. const expectedType = expectedTypes[0];
  12905. const receivedType = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.toRawType)(value);
  12906. const expectedValue = styleValue(value, expectedType);
  12907. const receivedValue = styleValue(value, receivedType);
  12908. // check if we need to specify expected value
  12909. if (expectedTypes.length === 1 &&
  12910. isExplicable(expectedType) &&
  12911. !isBoolean(expectedType, receivedType)) {
  12912. message += ` with value ${expectedValue}`;
  12913. }
  12914. message += `, got ${receivedType} `;
  12915. // check if we need to specify received value
  12916. if (isExplicable(receivedType)) {
  12917. message += `with value ${receivedValue}.`;
  12918. }
  12919. return message;
  12920. }
  12921. /**
  12922. * dev only
  12923. */
  12924. function styleValue(value, type) {
  12925. if (type === 'String') {
  12926. return `"${value}"`;
  12927. }
  12928. else if (type === 'Number') {
  12929. return `${Number(value)}`;
  12930. }
  12931. else {
  12932. return `${value}`;
  12933. }
  12934. }
  12935. /**
  12936. * dev only
  12937. */
  12938. function isExplicable(type) {
  12939. const explicitTypes = ['string', 'number', 'boolean'];
  12940. return explicitTypes.some(elem => type.toLowerCase() === elem);
  12941. }
  12942. /**
  12943. * dev only
  12944. */
  12945. function isBoolean(...args) {
  12946. return args.some(elem => elem.toLowerCase() === 'boolean');
  12947. }
  12948. const isInternalKey = (key) => key[0] === '_' || key === '$stable';
  12949. const normalizeSlotValue = (value) => (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(value)
  12950. ? value.map(normalizeVNode)
  12951. : [normalizeVNode(value)];
  12952. const normalizeSlot = (key, rawSlot, ctx) => {
  12953. const normalized = withCtx((...args) => {
  12954. if (( true) && currentInstance) {
  12955. warn(`Slot "${key}" invoked outside of the render function: ` +
  12956. `this will not track dependencies used in the slot. ` +
  12957. `Invoke the slot function inside the render function instead.`);
  12958. }
  12959. return normalizeSlotValue(rawSlot(...args));
  12960. }, ctx);
  12961. normalized._c = false;
  12962. return normalized;
  12963. };
  12964. const normalizeObjectSlots = (rawSlots, slots, instance) => {
  12965. const ctx = rawSlots._ctx;
  12966. for (const key in rawSlots) {
  12967. if (isInternalKey(key))
  12968. continue;
  12969. const value = rawSlots[key];
  12970. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(value)) {
  12971. slots[key] = normalizeSlot(key, value, ctx);
  12972. }
  12973. else if (value != null) {
  12974. if (true) {
  12975. warn(`Non-function value encountered for slot "${key}". ` +
  12976. `Prefer function slots for better performance.`);
  12977. }
  12978. const normalized = normalizeSlotValue(value);
  12979. slots[key] = () => normalized;
  12980. }
  12981. }
  12982. };
  12983. const normalizeVNodeSlots = (instance, children) => {
  12984. if (( true) &&
  12985. !isKeepAlive(instance.vnode) &&
  12986. !(false )) {
  12987. warn(`Non-function value encountered for default slot. ` +
  12988. `Prefer function slots for better performance.`);
  12989. }
  12990. const normalized = normalizeSlotValue(children);
  12991. instance.slots.default = () => normalized;
  12992. };
  12993. const initSlots = (instance, children) => {
  12994. if (instance.vnode.shapeFlag & 32 /* SLOTS_CHILDREN */) {
  12995. const type = children._;
  12996. if (type) {
  12997. // users can get the shallow readonly version of the slots object through `this.$slots`,
  12998. // we should avoid the proxy object polluting the slots of the internal instance
  12999. instance.slots = (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.toRaw)(children);
  13000. // make compiler marker non-enumerable
  13001. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.def)(children, '_', type);
  13002. }
  13003. else {
  13004. normalizeObjectSlots(children, (instance.slots = {}));
  13005. }
  13006. }
  13007. else {
  13008. instance.slots = {};
  13009. if (children) {
  13010. normalizeVNodeSlots(instance, children);
  13011. }
  13012. }
  13013. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.def)(instance.slots, InternalObjectKey, 1);
  13014. };
  13015. const updateSlots = (instance, children, optimized) => {
  13016. const { vnode, slots } = instance;
  13017. let needDeletionCheck = true;
  13018. let deletionComparisonTarget = _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ;
  13019. if (vnode.shapeFlag & 32 /* SLOTS_CHILDREN */) {
  13020. const type = children._;
  13021. if (type) {
  13022. // compiled slots.
  13023. if (( true) && isHmrUpdating) {
  13024. // Parent was HMR updated so slot content may have changed.
  13025. // force update slots and mark instance for hmr as well
  13026. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)(slots, children);
  13027. }
  13028. else if (optimized && type === 1 /* STABLE */) {
  13029. // compiled AND stable.
  13030. // no need to update, and skip stale slots removal.
  13031. needDeletionCheck = false;
  13032. }
  13033. else {
  13034. // compiled but dynamic (v-if/v-for on slots) - update slots, but skip
  13035. // normalization.
  13036. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)(slots, children);
  13037. // #2893
  13038. // when rendering the optimized slots by manually written render function,
  13039. // we need to delete the `slots._` flag if necessary to make subsequent updates reliable,
  13040. // i.e. let the `renderSlot` create the bailed Fragment
  13041. if (!optimized && type === 1 /* STABLE */) {
  13042. delete slots._;
  13043. }
  13044. }
  13045. }
  13046. else {
  13047. needDeletionCheck = !children.$stable;
  13048. normalizeObjectSlots(children, slots);
  13049. }
  13050. deletionComparisonTarget = children;
  13051. }
  13052. else if (children) {
  13053. // non slot object children (direct value) passed to a component
  13054. normalizeVNodeSlots(instance, children);
  13055. deletionComparisonTarget = { default: 1 };
  13056. }
  13057. // delete stale slots
  13058. if (needDeletionCheck) {
  13059. for (const key in slots) {
  13060. if (!isInternalKey(key) && !(key in deletionComparisonTarget)) {
  13061. delete slots[key];
  13062. }
  13063. }
  13064. }
  13065. };
  13066. /**
  13067. Runtime helper for applying directives to a vnode. Example usage:
  13068. const comp = resolveComponent('comp')
  13069. const foo = resolveDirective('foo')
  13070. const bar = resolveDirective('bar')
  13071. return withDirectives(h(comp), [
  13072. [foo, this.x],
  13073. [bar, this.y]
  13074. ])
  13075. */
  13076. function validateDirectiveName(name) {
  13077. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isBuiltInDirective)(name)) {
  13078. warn('Do not use built-in directive ids as custom directive id: ' + name);
  13079. }
  13080. }
  13081. /**
  13082. * Adds directives to a VNode.
  13083. */
  13084. function withDirectives(vnode, directives) {
  13085. const internalInstance = currentRenderingInstance;
  13086. if (internalInstance === null) {
  13087. ( true) && warn(`withDirectives can only be used inside render functions.`);
  13088. return vnode;
  13089. }
  13090. const instance = getExposeProxy(internalInstance) ||
  13091. internalInstance.proxy;
  13092. const bindings = vnode.dirs || (vnode.dirs = []);
  13093. for (let i = 0; i < directives.length; i++) {
  13094. let [dir, value, arg, modifiers = _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ] = directives[i];
  13095. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(dir)) {
  13096. dir = {
  13097. mounted: dir,
  13098. updated: dir
  13099. };
  13100. }
  13101. if (dir.deep) {
  13102. traverse(value);
  13103. }
  13104. bindings.push({
  13105. dir,
  13106. instance,
  13107. value,
  13108. oldValue: void 0,
  13109. arg,
  13110. modifiers
  13111. });
  13112. }
  13113. return vnode;
  13114. }
  13115. function invokeDirectiveHook(vnode, prevVNode, instance, name) {
  13116. const bindings = vnode.dirs;
  13117. const oldBindings = prevVNode && prevVNode.dirs;
  13118. for (let i = 0; i < bindings.length; i++) {
  13119. const binding = bindings[i];
  13120. if (oldBindings) {
  13121. binding.oldValue = oldBindings[i].value;
  13122. }
  13123. let hook = binding.dir[name];
  13124. if (hook) {
  13125. // disable tracking inside all lifecycle hooks
  13126. // since they can potentially be called inside effects.
  13127. (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.pauseTracking)();
  13128. callWithAsyncErrorHandling(hook, instance, 8 /* DIRECTIVE_HOOK */, [
  13129. vnode.el,
  13130. binding,
  13131. vnode,
  13132. prevVNode
  13133. ]);
  13134. (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.resetTracking)();
  13135. }
  13136. }
  13137. }
  13138. function createAppContext() {
  13139. return {
  13140. app: null,
  13141. config: {
  13142. isNativeTag: _vue_shared__WEBPACK_IMPORTED_MODULE_1__.NO,
  13143. performance: false,
  13144. globalProperties: {},
  13145. optionMergeStrategies: {},
  13146. errorHandler: undefined,
  13147. warnHandler: undefined,
  13148. compilerOptions: {}
  13149. },
  13150. mixins: [],
  13151. components: {},
  13152. directives: {},
  13153. provides: Object.create(null),
  13154. optionsCache: new WeakMap(),
  13155. propsCache: new WeakMap(),
  13156. emitsCache: new WeakMap()
  13157. };
  13158. }
  13159. let uid = 0;
  13160. function createAppAPI(render, hydrate) {
  13161. return function createApp(rootComponent, rootProps = null) {
  13162. if (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(rootComponent)) {
  13163. rootComponent = Object.assign({}, rootComponent);
  13164. }
  13165. if (rootProps != null && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isObject)(rootProps)) {
  13166. ( true) && warn(`root props passed to app.mount() must be an object.`);
  13167. rootProps = null;
  13168. }
  13169. const context = createAppContext();
  13170. const installedPlugins = new Set();
  13171. let isMounted = false;
  13172. const app = (context.app = {
  13173. _uid: uid++,
  13174. _component: rootComponent,
  13175. _props: rootProps,
  13176. _container: null,
  13177. _context: context,
  13178. _instance: null,
  13179. version,
  13180. get config() {
  13181. return context.config;
  13182. },
  13183. set config(v) {
  13184. if ((true)) {
  13185. warn(`app.config cannot be replaced. Modify individual options instead.`);
  13186. }
  13187. },
  13188. use(plugin, ...options) {
  13189. if (installedPlugins.has(plugin)) {
  13190. ( true) && warn(`Plugin has already been applied to target app.`);
  13191. }
  13192. else if (plugin && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(plugin.install)) {
  13193. installedPlugins.add(plugin);
  13194. plugin.install(app, ...options);
  13195. }
  13196. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(plugin)) {
  13197. installedPlugins.add(plugin);
  13198. plugin(app, ...options);
  13199. }
  13200. else if ((true)) {
  13201. warn(`A plugin must either be a function or an object with an "install" ` +
  13202. `function.`);
  13203. }
  13204. return app;
  13205. },
  13206. mixin(mixin) {
  13207. if (true) {
  13208. if (!context.mixins.includes(mixin)) {
  13209. context.mixins.push(mixin);
  13210. }
  13211. else if ((true)) {
  13212. warn('Mixin has already been applied to target app' +
  13213. (mixin.name ? `: ${mixin.name}` : ''));
  13214. }
  13215. }
  13216. else {}
  13217. return app;
  13218. },
  13219. component(name, component) {
  13220. if ((true)) {
  13221. validateComponentName(name, context.config);
  13222. }
  13223. if (!component) {
  13224. return context.components[name];
  13225. }
  13226. if (( true) && context.components[name]) {
  13227. warn(`Component "${name}" has already been registered in target app.`);
  13228. }
  13229. context.components[name] = component;
  13230. return app;
  13231. },
  13232. directive(name, directive) {
  13233. if ((true)) {
  13234. validateDirectiveName(name);
  13235. }
  13236. if (!directive) {
  13237. return context.directives[name];
  13238. }
  13239. if (( true) && context.directives[name]) {
  13240. warn(`Directive "${name}" has already been registered in target app.`);
  13241. }
  13242. context.directives[name] = directive;
  13243. return app;
  13244. },
  13245. mount(rootContainer, isHydrate, isSVG) {
  13246. if (!isMounted) {
  13247. const vnode = createVNode(rootComponent, rootProps);
  13248. // store app context on the root VNode.
  13249. // this will be set on the root instance on initial mount.
  13250. vnode.appContext = context;
  13251. // HMR root reload
  13252. if ((true)) {
  13253. context.reload = () => {
  13254. render(cloneVNode(vnode), rootContainer, isSVG);
  13255. };
  13256. }
  13257. if (isHydrate && hydrate) {
  13258. hydrate(vnode, rootContainer);
  13259. }
  13260. else {
  13261. render(vnode, rootContainer, isSVG);
  13262. }
  13263. isMounted = true;
  13264. app._container = rootContainer;
  13265. rootContainer.__vue_app__ = app;
  13266. if (true) {
  13267. app._instance = vnode.component;
  13268. devtoolsInitApp(app, version);
  13269. }
  13270. return getExposeProxy(vnode.component) || vnode.component.proxy;
  13271. }
  13272. else if ((true)) {
  13273. warn(`App has already been mounted.\n` +
  13274. `If you want to remount the same app, move your app creation logic ` +
  13275. `into a factory function and create fresh app instances for each ` +
  13276. `mount - e.g. \`const createMyApp = () => createApp(App)\``);
  13277. }
  13278. },
  13279. unmount() {
  13280. if (isMounted) {
  13281. render(null, app._container);
  13282. if (true) {
  13283. app._instance = null;
  13284. devtoolsUnmountApp(app);
  13285. }
  13286. delete app._container.__vue_app__;
  13287. }
  13288. else if ((true)) {
  13289. warn(`Cannot unmount an app that is not mounted.`);
  13290. }
  13291. },
  13292. provide(key, value) {
  13293. if (( true) && key in context.provides) {
  13294. warn(`App already provides property with key "${String(key)}". ` +
  13295. `It will be overwritten with the new value.`);
  13296. }
  13297. // TypeScript doesn't allow symbols as index type
  13298. // https://github.com/Microsoft/TypeScript/issues/24587
  13299. context.provides[key] = value;
  13300. return app;
  13301. }
  13302. });
  13303. return app;
  13304. };
  13305. }
  13306. /**
  13307. * Function for handling a template ref
  13308. */
  13309. function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
  13310. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(rawRef)) {
  13311. rawRef.forEach((r, i) => setRef(r, oldRawRef && ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(oldRawRef) ? oldRawRef[i] : oldRawRef), parentSuspense, vnode, isUnmount));
  13312. return;
  13313. }
  13314. if (isAsyncWrapper(vnode) && !isUnmount) {
  13315. // when mounting async components, nothing needs to be done,
  13316. // because the template ref is forwarded to inner component
  13317. return;
  13318. }
  13319. const refValue = vnode.shapeFlag & 4 /* STATEFUL_COMPONENT */
  13320. ? getExposeProxy(vnode.component) || vnode.component.proxy
  13321. : vnode.el;
  13322. const value = isUnmount ? null : refValue;
  13323. const { i: owner, r: ref } = rawRef;
  13324. if (( true) && !owner) {
  13325. warn(`Missing ref owner context. ref cannot be used on hoisted vnodes. ` +
  13326. `A vnode with ref must be created inside the render function.`);
  13327. return;
  13328. }
  13329. const oldRef = oldRawRef && oldRawRef.r;
  13330. const refs = owner.refs === _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ ? (owner.refs = {}) : owner.refs;
  13331. const setupState = owner.setupState;
  13332. // dynamic ref changed. unset old ref
  13333. if (oldRef != null && oldRef !== ref) {
  13334. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(oldRef)) {
  13335. refs[oldRef] = null;
  13336. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(setupState, oldRef)) {
  13337. setupState[oldRef] = null;
  13338. }
  13339. }
  13340. else if ((0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isRef)(oldRef)) {
  13341. oldRef.value = null;
  13342. }
  13343. }
  13344. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(ref)) {
  13345. callWithErrorHandling(ref, owner, 12 /* FUNCTION_REF */, [value, refs]);
  13346. }
  13347. else {
  13348. const _isString = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(ref);
  13349. const _isRef = (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isRef)(ref);
  13350. if (_isString || _isRef) {
  13351. const doSet = () => {
  13352. if (rawRef.f) {
  13353. const existing = _isString ? refs[ref] : ref.value;
  13354. if (isUnmount) {
  13355. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(existing) && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.remove)(existing, refValue);
  13356. }
  13357. else {
  13358. if (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(existing)) {
  13359. if (_isString) {
  13360. refs[ref] = [refValue];
  13361. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(setupState, ref)) {
  13362. setupState[ref] = refs[ref];
  13363. }
  13364. }
  13365. else {
  13366. ref.value = [refValue];
  13367. if (rawRef.k)
  13368. refs[rawRef.k] = ref.value;
  13369. }
  13370. }
  13371. else if (!existing.includes(refValue)) {
  13372. existing.push(refValue);
  13373. }
  13374. }
  13375. }
  13376. else if (_isString) {
  13377. refs[ref] = value;
  13378. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(setupState, ref)) {
  13379. setupState[ref] = value;
  13380. }
  13381. }
  13382. else if ((0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isRef)(ref)) {
  13383. ref.value = value;
  13384. if (rawRef.k)
  13385. refs[rawRef.k] = value;
  13386. }
  13387. else if ((true)) {
  13388. warn('Invalid template ref type:', ref, `(${typeof ref})`);
  13389. }
  13390. };
  13391. if (value) {
  13392. doSet.id = -1;
  13393. queuePostRenderEffect(doSet, parentSuspense);
  13394. }
  13395. else {
  13396. doSet();
  13397. }
  13398. }
  13399. else if ((true)) {
  13400. warn('Invalid template ref type:', ref, `(${typeof ref})`);
  13401. }
  13402. }
  13403. }
  13404. let hasMismatch = false;
  13405. const isSVGContainer = (container) => /svg/.test(container.namespaceURI) && container.tagName !== 'foreignObject';
  13406. const isComment = (node) => node.nodeType === 8 /* COMMENT */;
  13407. // Note: hydration is DOM-specific
  13408. // But we have to place it in core due to tight coupling with core - splitting
  13409. // it out creates a ton of unnecessary complexity.
  13410. // Hydration also depends on some renderer internal logic which needs to be
  13411. // passed in via arguments.
  13412. function createHydrationFunctions(rendererInternals) {
  13413. const { mt: mountComponent, p: patch, o: { patchProp, nextSibling, parentNode, remove, insert, createComment } } = rendererInternals;
  13414. const hydrate = (vnode, container) => {
  13415. if (!container.hasChildNodes()) {
  13416. ( true) &&
  13417. warn(`Attempting to hydrate existing markup but container is empty. ` +
  13418. `Performing full mount instead.`);
  13419. patch(null, vnode, container);
  13420. flushPostFlushCbs();
  13421. return;
  13422. }
  13423. hasMismatch = false;
  13424. hydrateNode(container.firstChild, vnode, null, null, null);
  13425. flushPostFlushCbs();
  13426. if (hasMismatch && !false) {
  13427. // this error should show up in production
  13428. console.error(`Hydration completed but contains mismatches.`);
  13429. }
  13430. };
  13431. const hydrateNode = (node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized = false) => {
  13432. const isFragmentStart = isComment(node) && node.data === '[';
  13433. const onMismatch = () => handleMismatch(node, vnode, parentComponent, parentSuspense, slotScopeIds, isFragmentStart);
  13434. const { type, ref, shapeFlag } = vnode;
  13435. const domType = node.nodeType;
  13436. vnode.el = node;
  13437. let nextNode = null;
  13438. switch (type) {
  13439. case Text:
  13440. if (domType !== 3 /* TEXT */) {
  13441. nextNode = onMismatch();
  13442. }
  13443. else {
  13444. if (node.data !== vnode.children) {
  13445. hasMismatch = true;
  13446. ( true) &&
  13447. warn(`Hydration text mismatch:` +
  13448. `\n- Client: ${JSON.stringify(node.data)}` +
  13449. `\n- Server: ${JSON.stringify(vnode.children)}`);
  13450. node.data = vnode.children;
  13451. }
  13452. nextNode = nextSibling(node);
  13453. }
  13454. break;
  13455. case Comment:
  13456. if (domType !== 8 /* COMMENT */ || isFragmentStart) {
  13457. nextNode = onMismatch();
  13458. }
  13459. else {
  13460. nextNode = nextSibling(node);
  13461. }
  13462. break;
  13463. case Static:
  13464. if (domType !== 1 /* ELEMENT */) {
  13465. nextNode = onMismatch();
  13466. }
  13467. else {
  13468. // determine anchor, adopt content
  13469. nextNode = node;
  13470. // if the static vnode has its content stripped during build,
  13471. // adopt it from the server-rendered HTML.
  13472. const needToAdoptContent = !vnode.children.length;
  13473. for (let i = 0; i < vnode.staticCount; i++) {
  13474. if (needToAdoptContent)
  13475. vnode.children += nextNode.outerHTML;
  13476. if (i === vnode.staticCount - 1) {
  13477. vnode.anchor = nextNode;
  13478. }
  13479. nextNode = nextSibling(nextNode);
  13480. }
  13481. return nextNode;
  13482. }
  13483. break;
  13484. case Fragment:
  13485. if (!isFragmentStart) {
  13486. nextNode = onMismatch();
  13487. }
  13488. else {
  13489. nextNode = hydrateFragment(node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized);
  13490. }
  13491. break;
  13492. default:
  13493. if (shapeFlag & 1 /* ELEMENT */) {
  13494. if (domType !== 1 /* ELEMENT */ ||
  13495. vnode.type.toLowerCase() !==
  13496. node.tagName.toLowerCase()) {
  13497. nextNode = onMismatch();
  13498. }
  13499. else {
  13500. nextNode = hydrateElement(node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized);
  13501. }
  13502. }
  13503. else if (shapeFlag & 6 /* COMPONENT */) {
  13504. // when setting up the render effect, if the initial vnode already
  13505. // has .el set, the component will perform hydration instead of mount
  13506. // on its sub-tree.
  13507. vnode.slotScopeIds = slotScopeIds;
  13508. const container = parentNode(node);
  13509. mountComponent(vnode, container, null, parentComponent, parentSuspense, isSVGContainer(container), optimized);
  13510. // component may be async, so in the case of fragments we cannot rely
  13511. // on component's rendered output to determine the end of the fragment
  13512. // instead, we do a lookahead to find the end anchor node.
  13513. nextNode = isFragmentStart
  13514. ? locateClosingAsyncAnchor(node)
  13515. : nextSibling(node);
  13516. // #3787
  13517. // if component is async, it may get moved / unmounted before its
  13518. // inner component is loaded, so we need to give it a placeholder
  13519. // vnode that matches its adopted DOM.
  13520. if (isAsyncWrapper(vnode)) {
  13521. let subTree;
  13522. if (isFragmentStart) {
  13523. subTree = createVNode(Fragment);
  13524. subTree.anchor = nextNode
  13525. ? nextNode.previousSibling
  13526. : container.lastChild;
  13527. }
  13528. else {
  13529. subTree =
  13530. node.nodeType === 3 ? createTextVNode('') : createVNode('div');
  13531. }
  13532. subTree.el = node;
  13533. vnode.component.subTree = subTree;
  13534. }
  13535. }
  13536. else if (shapeFlag & 64 /* TELEPORT */) {
  13537. if (domType !== 8 /* COMMENT */) {
  13538. nextNode = onMismatch();
  13539. }
  13540. else {
  13541. nextNode = vnode.type.hydrate(node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized, rendererInternals, hydrateChildren);
  13542. }
  13543. }
  13544. else if (shapeFlag & 128 /* SUSPENSE */) {
  13545. nextNode = vnode.type.hydrate(node, vnode, parentComponent, parentSuspense, isSVGContainer(parentNode(node)), slotScopeIds, optimized, rendererInternals, hydrateNode);
  13546. }
  13547. else if ((true)) {
  13548. warn('Invalid HostVNode type:', type, `(${typeof type})`);
  13549. }
  13550. }
  13551. if (ref != null) {
  13552. setRef(ref, null, parentSuspense, vnode);
  13553. }
  13554. return nextNode;
  13555. };
  13556. const hydrateElement = (el, vnode, parentComponent, parentSuspense, slotScopeIds, optimized) => {
  13557. optimized = optimized || !!vnode.dynamicChildren;
  13558. const { type, props, patchFlag, shapeFlag, dirs } = vnode;
  13559. // #4006 for form elements with non-string v-model value bindings
  13560. // e.g. <option :value="obj">, <input type="checkbox" :true-value="1">
  13561. const forcePatchValue = (type === 'input' && dirs) || type === 'option';
  13562. // skip props & children if this is hoisted static nodes
  13563. // #5405 in dev, always hydrate children for HMR
  13564. if (true /* HOISTED */) {
  13565. if (dirs) {
  13566. invokeDirectiveHook(vnode, null, parentComponent, 'created');
  13567. }
  13568. // props
  13569. if (props) {
  13570. if (forcePatchValue ||
  13571. !optimized ||
  13572. patchFlag & (16 /* FULL_PROPS */ | 32 /* HYDRATE_EVENTS */)) {
  13573. for (const key in props) {
  13574. if ((forcePatchValue && key.endsWith('value')) ||
  13575. ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isOn)(key) && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isReservedProp)(key))) {
  13576. patchProp(el, key, null, props[key], false, undefined, parentComponent);
  13577. }
  13578. }
  13579. }
  13580. else if (props.onClick) {
  13581. // Fast path for click listeners (which is most often) to avoid
  13582. // iterating through props.
  13583. patchProp(el, 'onClick', null, props.onClick, false, undefined, parentComponent);
  13584. }
  13585. }
  13586. // vnode / directive hooks
  13587. let vnodeHooks;
  13588. if ((vnodeHooks = props && props.onVnodeBeforeMount)) {
  13589. invokeVNodeHook(vnodeHooks, parentComponent, vnode);
  13590. }
  13591. if (dirs) {
  13592. invokeDirectiveHook(vnode, null, parentComponent, 'beforeMount');
  13593. }
  13594. if ((vnodeHooks = props && props.onVnodeMounted) || dirs) {
  13595. queueEffectWithSuspense(() => {
  13596. vnodeHooks && invokeVNodeHook(vnodeHooks, parentComponent, vnode);
  13597. dirs && invokeDirectiveHook(vnode, null, parentComponent, 'mounted');
  13598. }, parentSuspense);
  13599. }
  13600. // children
  13601. if (shapeFlag & 16 /* ARRAY_CHILDREN */ &&
  13602. // skip if element has innerHTML / textContent
  13603. !(props && (props.innerHTML || props.textContent))) {
  13604. let next = hydrateChildren(el.firstChild, vnode, el, parentComponent, parentSuspense, slotScopeIds, optimized);
  13605. let hasWarned = false;
  13606. while (next) {
  13607. hasMismatch = true;
  13608. if (( true) && !hasWarned) {
  13609. warn(`Hydration children mismatch in <${vnode.type}>: ` +
  13610. `server rendered element contains more child nodes than client vdom.`);
  13611. hasWarned = true;
  13612. }
  13613. // The SSRed DOM contains more nodes than it should. Remove them.
  13614. const cur = next;
  13615. next = next.nextSibling;
  13616. remove(cur);
  13617. }
  13618. }
  13619. else if (shapeFlag & 8 /* TEXT_CHILDREN */) {
  13620. if (el.textContent !== vnode.children) {
  13621. hasMismatch = true;
  13622. ( true) &&
  13623. warn(`Hydration text content mismatch in <${vnode.type}>:\n` +
  13624. `- Client: ${el.textContent}\n` +
  13625. `- Server: ${vnode.children}`);
  13626. el.textContent = vnode.children;
  13627. }
  13628. }
  13629. }
  13630. return el.nextSibling;
  13631. };
  13632. const hydrateChildren = (node, parentVNode, container, parentComponent, parentSuspense, slotScopeIds, optimized) => {
  13633. optimized = optimized || !!parentVNode.dynamicChildren;
  13634. const children = parentVNode.children;
  13635. const l = children.length;
  13636. let hasWarned = false;
  13637. for (let i = 0; i < l; i++) {
  13638. const vnode = optimized
  13639. ? children[i]
  13640. : (children[i] = normalizeVNode(children[i]));
  13641. if (node) {
  13642. node = hydrateNode(node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized);
  13643. }
  13644. else if (vnode.type === Text && !vnode.children) {
  13645. continue;
  13646. }
  13647. else {
  13648. hasMismatch = true;
  13649. if (( true) && !hasWarned) {
  13650. warn(`Hydration children mismatch in <${container.tagName.toLowerCase()}>: ` +
  13651. `server rendered element contains fewer child nodes than client vdom.`);
  13652. hasWarned = true;
  13653. }
  13654. // the SSRed DOM didn't contain enough nodes. Mount the missing ones.
  13655. patch(null, vnode, container, null, parentComponent, parentSuspense, isSVGContainer(container), slotScopeIds);
  13656. }
  13657. }
  13658. return node;
  13659. };
  13660. const hydrateFragment = (node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized) => {
  13661. const { slotScopeIds: fragmentSlotScopeIds } = vnode;
  13662. if (fragmentSlotScopeIds) {
  13663. slotScopeIds = slotScopeIds
  13664. ? slotScopeIds.concat(fragmentSlotScopeIds)
  13665. : fragmentSlotScopeIds;
  13666. }
  13667. const container = parentNode(node);
  13668. const next = hydrateChildren(nextSibling(node), vnode, container, parentComponent, parentSuspense, slotScopeIds, optimized);
  13669. if (next && isComment(next) && next.data === ']') {
  13670. return nextSibling((vnode.anchor = next));
  13671. }
  13672. else {
  13673. // fragment didn't hydrate successfully, since we didn't get a end anchor
  13674. // back. This should have led to node/children mismatch warnings.
  13675. hasMismatch = true;
  13676. // since the anchor is missing, we need to create one and insert it
  13677. insert((vnode.anchor = createComment(`]`)), container, next);
  13678. return next;
  13679. }
  13680. };
  13681. const handleMismatch = (node, vnode, parentComponent, parentSuspense, slotScopeIds, isFragment) => {
  13682. hasMismatch = true;
  13683. ( true) &&
  13684. warn(`Hydration node mismatch:\n- Client vnode:`, vnode.type, `\n- Server rendered DOM:`, node, node.nodeType === 3 /* TEXT */
  13685. ? `(text)`
  13686. : isComment(node) && node.data === '['
  13687. ? `(start of fragment)`
  13688. : ``);
  13689. vnode.el = null;
  13690. if (isFragment) {
  13691. // remove excessive fragment nodes
  13692. const end = locateClosingAsyncAnchor(node);
  13693. while (true) {
  13694. const next = nextSibling(node);
  13695. if (next && next !== end) {
  13696. remove(next);
  13697. }
  13698. else {
  13699. break;
  13700. }
  13701. }
  13702. }
  13703. const next = nextSibling(node);
  13704. const container = parentNode(node);
  13705. remove(node);
  13706. patch(null, vnode, container, next, parentComponent, parentSuspense, isSVGContainer(container), slotScopeIds);
  13707. return next;
  13708. };
  13709. const locateClosingAsyncAnchor = (node) => {
  13710. let match = 0;
  13711. while (node) {
  13712. node = nextSibling(node);
  13713. if (node && isComment(node)) {
  13714. if (node.data === '[')
  13715. match++;
  13716. if (node.data === ']') {
  13717. if (match === 0) {
  13718. return nextSibling(node);
  13719. }
  13720. else {
  13721. match--;
  13722. }
  13723. }
  13724. }
  13725. }
  13726. return node;
  13727. };
  13728. return [hydrate, hydrateNode];
  13729. }
  13730. /* eslint-disable no-restricted-globals */
  13731. let supported;
  13732. let perf;
  13733. function startMeasure(instance, type) {
  13734. if (instance.appContext.config.performance && isSupported()) {
  13735. perf.mark(`vue-${type}-${instance.uid}`);
  13736. }
  13737. if (true) {
  13738. devtoolsPerfStart(instance, type, isSupported() ? perf.now() : Date.now());
  13739. }
  13740. }
  13741. function endMeasure(instance, type) {
  13742. if (instance.appContext.config.performance && isSupported()) {
  13743. const startTag = `vue-${type}-${instance.uid}`;
  13744. const endTag = startTag + `:end`;
  13745. perf.mark(endTag);
  13746. perf.measure(`<${formatComponentName(instance, instance.type)}> ${type}`, startTag, endTag);
  13747. perf.clearMarks(startTag);
  13748. perf.clearMarks(endTag);
  13749. }
  13750. if (true) {
  13751. devtoolsPerfEnd(instance, type, isSupported() ? perf.now() : Date.now());
  13752. }
  13753. }
  13754. function isSupported() {
  13755. if (supported !== undefined) {
  13756. return supported;
  13757. }
  13758. if (typeof window !== 'undefined' && window.performance) {
  13759. supported = true;
  13760. perf = window.performance;
  13761. }
  13762. else {
  13763. supported = false;
  13764. }
  13765. return supported;
  13766. }
  13767. /**
  13768. * This is only called in esm-bundler builds.
  13769. * It is called when a renderer is created, in `baseCreateRenderer` so that
  13770. * importing runtime-core is side-effects free.
  13771. *
  13772. * istanbul-ignore-next
  13773. */
  13774. function initFeatureFlags() {
  13775. const needWarn = [];
  13776. if (false) {}
  13777. if (false) {}
  13778. if (( true) && needWarn.length) {
  13779. const multi = needWarn.length > 1;
  13780. console.warn(`Feature flag${multi ? `s` : ``} ${needWarn.join(', ')} ${multi ? `are` : `is`} not explicitly defined. You are running the esm-bundler build of Vue, ` +
  13781. `which expects these compile-time feature flags to be globally injected ` +
  13782. `via the bundler config in order to get better tree-shaking in the ` +
  13783. `production bundle.\n\n` +
  13784. `For more details, see https://link.vuejs.org/feature-flags.`);
  13785. }
  13786. }
  13787. const queuePostRenderEffect = queueEffectWithSuspense
  13788. ;
  13789. /**
  13790. * The createRenderer function accepts two generic arguments:
  13791. * HostNode and HostElement, corresponding to Node and Element types in the
  13792. * host environment. For example, for runtime-dom, HostNode would be the DOM
  13793. * `Node` interface and HostElement would be the DOM `Element` interface.
  13794. *
  13795. * Custom renderers can pass in the platform specific types like this:
  13796. *
  13797. * ``` js
  13798. * const { render, createApp } = createRenderer<Node, Element>({
  13799. * patchProp,
  13800. * ...nodeOps
  13801. * })
  13802. * ```
  13803. */
  13804. function createRenderer(options) {
  13805. return baseCreateRenderer(options);
  13806. }
  13807. // Separate API for creating hydration-enabled renderer.
  13808. // Hydration logic is only used when calling this function, making it
  13809. // tree-shakable.
  13810. function createHydrationRenderer(options) {
  13811. return baseCreateRenderer(options, createHydrationFunctions);
  13812. }
  13813. // implementation
  13814. function baseCreateRenderer(options, createHydrationFns) {
  13815. // compile-time feature flags check
  13816. {
  13817. initFeatureFlags();
  13818. }
  13819. const target = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.getGlobalThis)();
  13820. target.__VUE__ = true;
  13821. if (true) {
  13822. setDevtoolsHook(target.__VUE_DEVTOOLS_GLOBAL_HOOK__, target);
  13823. }
  13824. const { insert: hostInsert, remove: hostRemove, patchProp: hostPatchProp, createElement: hostCreateElement, createText: hostCreateText, createComment: hostCreateComment, setText: hostSetText, setElementText: hostSetElementText, parentNode: hostParentNode, nextSibling: hostNextSibling, setScopeId: hostSetScopeId = _vue_shared__WEBPACK_IMPORTED_MODULE_1__.NOOP, cloneNode: hostCloneNode, insertStaticContent: hostInsertStaticContent } = options;
  13825. // Note: functions inside this closure should use `const xxx = () => {}`
  13826. // style in order to prevent being inlined by minifiers.
  13827. const patch = (n1, n2, container, anchor = null, parentComponent = null, parentSuspense = null, isSVG = false, slotScopeIds = null, optimized = ( true) && isHmrUpdating ? false : !!n2.dynamicChildren) => {
  13828. if (n1 === n2) {
  13829. return;
  13830. }
  13831. // patching & not same type, unmount old tree
  13832. if (n1 && !isSameVNodeType(n1, n2)) {
  13833. anchor = getNextHostNode(n1);
  13834. unmount(n1, parentComponent, parentSuspense, true);
  13835. n1 = null;
  13836. }
  13837. if (n2.patchFlag === -2 /* BAIL */) {
  13838. optimized = false;
  13839. n2.dynamicChildren = null;
  13840. }
  13841. const { type, ref, shapeFlag } = n2;
  13842. switch (type) {
  13843. case Text:
  13844. processText(n1, n2, container, anchor);
  13845. break;
  13846. case Comment:
  13847. processCommentNode(n1, n2, container, anchor);
  13848. break;
  13849. case Static:
  13850. if (n1 == null) {
  13851. mountStaticNode(n2, container, anchor, isSVG);
  13852. }
  13853. else if ((true)) {
  13854. patchStaticNode(n1, n2, container, isSVG);
  13855. }
  13856. break;
  13857. case Fragment:
  13858. processFragment(n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);
  13859. break;
  13860. default:
  13861. if (shapeFlag & 1 /* ELEMENT */) {
  13862. processElement(n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);
  13863. }
  13864. else if (shapeFlag & 6 /* COMPONENT */) {
  13865. processComponent(n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);
  13866. }
  13867. else if (shapeFlag & 64 /* TELEPORT */) {
  13868. type.process(n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, internals);
  13869. }
  13870. else if (shapeFlag & 128 /* SUSPENSE */) {
  13871. type.process(n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, internals);
  13872. }
  13873. else if ((true)) {
  13874. warn('Invalid VNode type:', type, `(${typeof type})`);
  13875. }
  13876. }
  13877. // set ref
  13878. if (ref != null && parentComponent) {
  13879. setRef(ref, n1 && n1.ref, parentSuspense, n2 || n1, !n2);
  13880. }
  13881. };
  13882. const processText = (n1, n2, container, anchor) => {
  13883. if (n1 == null) {
  13884. hostInsert((n2.el = hostCreateText(n2.children)), container, anchor);
  13885. }
  13886. else {
  13887. const el = (n2.el = n1.el);
  13888. if (n2.children !== n1.children) {
  13889. hostSetText(el, n2.children);
  13890. }
  13891. }
  13892. };
  13893. const processCommentNode = (n1, n2, container, anchor) => {
  13894. if (n1 == null) {
  13895. hostInsert((n2.el = hostCreateComment(n2.children || '')), container, anchor);
  13896. }
  13897. else {
  13898. // there's no support for dynamic comments
  13899. n2.el = n1.el;
  13900. }
  13901. };
  13902. const mountStaticNode = (n2, container, anchor, isSVG) => {
  13903. [n2.el, n2.anchor] = hostInsertStaticContent(n2.children, container, anchor, isSVG, n2.el, n2.anchor);
  13904. };
  13905. /**
  13906. * Dev / HMR only
  13907. */
  13908. const patchStaticNode = (n1, n2, container, isSVG) => {
  13909. // static nodes are only patched during dev for HMR
  13910. if (n2.children !== n1.children) {
  13911. const anchor = hostNextSibling(n1.anchor);
  13912. // remove existing
  13913. removeStaticNode(n1);
  13914. [n2.el, n2.anchor] = hostInsertStaticContent(n2.children, container, anchor, isSVG);
  13915. }
  13916. else {
  13917. n2.el = n1.el;
  13918. n2.anchor = n1.anchor;
  13919. }
  13920. };
  13921. const moveStaticNode = ({ el, anchor }, container, nextSibling) => {
  13922. let next;
  13923. while (el && el !== anchor) {
  13924. next = hostNextSibling(el);
  13925. hostInsert(el, container, nextSibling);
  13926. el = next;
  13927. }
  13928. hostInsert(anchor, container, nextSibling);
  13929. };
  13930. const removeStaticNode = ({ el, anchor }) => {
  13931. let next;
  13932. while (el && el !== anchor) {
  13933. next = hostNextSibling(el);
  13934. hostRemove(el);
  13935. el = next;
  13936. }
  13937. hostRemove(anchor);
  13938. };
  13939. const processElement = (n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized) => {
  13940. isSVG = isSVG || n2.type === 'svg';
  13941. if (n1 == null) {
  13942. mountElement(n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);
  13943. }
  13944. else {
  13945. patchElement(n1, n2, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);
  13946. }
  13947. };
  13948. const mountElement = (vnode, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized) => {
  13949. let el;
  13950. let vnodeHook;
  13951. const { type, props, shapeFlag, transition, patchFlag, dirs } = vnode;
  13952. if (false /* HOISTED */) {}
  13953. else {
  13954. el = vnode.el = hostCreateElement(vnode.type, isSVG, props && props.is, props);
  13955. // mount children first, since some props may rely on child content
  13956. // being already rendered, e.g. `<select value>`
  13957. if (shapeFlag & 8 /* TEXT_CHILDREN */) {
  13958. hostSetElementText(el, vnode.children);
  13959. }
  13960. else if (shapeFlag & 16 /* ARRAY_CHILDREN */) {
  13961. mountChildren(vnode.children, el, null, parentComponent, parentSuspense, isSVG && type !== 'foreignObject', slotScopeIds, optimized);
  13962. }
  13963. if (dirs) {
  13964. invokeDirectiveHook(vnode, null, parentComponent, 'created');
  13965. }
  13966. // props
  13967. if (props) {
  13968. for (const key in props) {
  13969. if (key !== 'value' && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isReservedProp)(key)) {
  13970. hostPatchProp(el, key, null, props[key], isSVG, vnode.children, parentComponent, parentSuspense, unmountChildren);
  13971. }
  13972. }
  13973. /**
  13974. * Special case for setting value on DOM elements:
  13975. * - it can be order-sensitive (e.g. should be set *after* min/max, #2325, #4024)
  13976. * - it needs to be forced (#1471)
  13977. * #2353 proposes adding another renderer option to configure this, but
  13978. * the properties affects are so finite it is worth special casing it
  13979. * here to reduce the complexity. (Special casing it also should not
  13980. * affect non-DOM renderers)
  13981. */
  13982. if ('value' in props) {
  13983. hostPatchProp(el, 'value', null, props.value);
  13984. }
  13985. if ((vnodeHook = props.onVnodeBeforeMount)) {
  13986. invokeVNodeHook(vnodeHook, parentComponent, vnode);
  13987. }
  13988. }
  13989. // scopeId
  13990. setScopeId(el, vnode, vnode.scopeId, slotScopeIds, parentComponent);
  13991. }
  13992. if (true) {
  13993. Object.defineProperty(el, '__vnode', {
  13994. value: vnode,
  13995. enumerable: false
  13996. });
  13997. Object.defineProperty(el, '__vueParentComponent', {
  13998. value: parentComponent,
  13999. enumerable: false
  14000. });
  14001. }
  14002. if (dirs) {
  14003. invokeDirectiveHook(vnode, null, parentComponent, 'beforeMount');
  14004. }
  14005. // #1583 For inside suspense + suspense not resolved case, enter hook should call when suspense resolved
  14006. // #1689 For inside suspense + suspense resolved case, just call it
  14007. const needCallTransitionHooks = (!parentSuspense || (parentSuspense && !parentSuspense.pendingBranch)) &&
  14008. transition &&
  14009. !transition.persisted;
  14010. if (needCallTransitionHooks) {
  14011. transition.beforeEnter(el);
  14012. }
  14013. hostInsert(el, container, anchor);
  14014. if ((vnodeHook = props && props.onVnodeMounted) ||
  14015. needCallTransitionHooks ||
  14016. dirs) {
  14017. queuePostRenderEffect(() => {
  14018. vnodeHook && invokeVNodeHook(vnodeHook, parentComponent, vnode);
  14019. needCallTransitionHooks && transition.enter(el);
  14020. dirs && invokeDirectiveHook(vnode, null, parentComponent, 'mounted');
  14021. }, parentSuspense);
  14022. }
  14023. };
  14024. const setScopeId = (el, vnode, scopeId, slotScopeIds, parentComponent) => {
  14025. if (scopeId) {
  14026. hostSetScopeId(el, scopeId);
  14027. }
  14028. if (slotScopeIds) {
  14029. for (let i = 0; i < slotScopeIds.length; i++) {
  14030. hostSetScopeId(el, slotScopeIds[i]);
  14031. }
  14032. }
  14033. if (parentComponent) {
  14034. let subTree = parentComponent.subTree;
  14035. if (( true) &&
  14036. subTree.patchFlag > 0 &&
  14037. subTree.patchFlag & 2048 /* DEV_ROOT_FRAGMENT */) {
  14038. subTree =
  14039. filterSingleRoot(subTree.children) || subTree;
  14040. }
  14041. if (vnode === subTree) {
  14042. const parentVNode = parentComponent.vnode;
  14043. setScopeId(el, parentVNode, parentVNode.scopeId, parentVNode.slotScopeIds, parentComponent.parent);
  14044. }
  14045. }
  14046. };
  14047. const mountChildren = (children, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, start = 0) => {
  14048. for (let i = start; i < children.length; i++) {
  14049. const child = (children[i] = optimized
  14050. ? cloneIfMounted(children[i])
  14051. : normalizeVNode(children[i]));
  14052. patch(null, child, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);
  14053. }
  14054. };
  14055. const patchElement = (n1, n2, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized) => {
  14056. const el = (n2.el = n1.el);
  14057. let { patchFlag, dynamicChildren, dirs } = n2;
  14058. // #1426 take the old vnode's patch flag into account since user may clone a
  14059. // compiler-generated vnode, which de-opts to FULL_PROPS
  14060. patchFlag |= n1.patchFlag & 16 /* FULL_PROPS */;
  14061. const oldProps = n1.props || _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ;
  14062. const newProps = n2.props || _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ;
  14063. let vnodeHook;
  14064. // disable recurse in beforeUpdate hooks
  14065. parentComponent && toggleRecurse(parentComponent, false);
  14066. if ((vnodeHook = newProps.onVnodeBeforeUpdate)) {
  14067. invokeVNodeHook(vnodeHook, parentComponent, n2, n1);
  14068. }
  14069. if (dirs) {
  14070. invokeDirectiveHook(n2, n1, parentComponent, 'beforeUpdate');
  14071. }
  14072. parentComponent && toggleRecurse(parentComponent, true);
  14073. if (( true) && isHmrUpdating) {
  14074. // HMR updated, force full diff
  14075. patchFlag = 0;
  14076. optimized = false;
  14077. dynamicChildren = null;
  14078. }
  14079. const areChildrenSVG = isSVG && n2.type !== 'foreignObject';
  14080. if (dynamicChildren) {
  14081. patchBlockChildren(n1.dynamicChildren, dynamicChildren, el, parentComponent, parentSuspense, areChildrenSVG, slotScopeIds);
  14082. if (( true) && parentComponent && parentComponent.type.__hmrId) {
  14083. traverseStaticChildren(n1, n2);
  14084. }
  14085. }
  14086. else if (!optimized) {
  14087. // full diff
  14088. patchChildren(n1, n2, el, null, parentComponent, parentSuspense, areChildrenSVG, slotScopeIds, false);
  14089. }
  14090. if (patchFlag > 0) {
  14091. // the presence of a patchFlag means this element's render code was
  14092. // generated by the compiler and can take the fast path.
  14093. // in this path old node and new node are guaranteed to have the same shape
  14094. // (i.e. at the exact same position in the source template)
  14095. if (patchFlag & 16 /* FULL_PROPS */) {
  14096. // element props contain dynamic keys, full diff needed
  14097. patchProps(el, n2, oldProps, newProps, parentComponent, parentSuspense, isSVG);
  14098. }
  14099. else {
  14100. // class
  14101. // this flag is matched when the element has dynamic class bindings.
  14102. if (patchFlag & 2 /* CLASS */) {
  14103. if (oldProps.class !== newProps.class) {
  14104. hostPatchProp(el, 'class', null, newProps.class, isSVG);
  14105. }
  14106. }
  14107. // style
  14108. // this flag is matched when the element has dynamic style bindings
  14109. if (patchFlag & 4 /* STYLE */) {
  14110. hostPatchProp(el, 'style', oldProps.style, newProps.style, isSVG);
  14111. }
  14112. // props
  14113. // This flag is matched when the element has dynamic prop/attr bindings
  14114. // other than class and style. The keys of dynamic prop/attrs are saved for
  14115. // faster iteration.
  14116. // Note dynamic keys like :[foo]="bar" will cause this optimization to
  14117. // bail out and go through a full diff because we need to unset the old key
  14118. if (patchFlag & 8 /* PROPS */) {
  14119. // if the flag is present then dynamicProps must be non-null
  14120. const propsToUpdate = n2.dynamicProps;
  14121. for (let i = 0; i < propsToUpdate.length; i++) {
  14122. const key = propsToUpdate[i];
  14123. const prev = oldProps[key];
  14124. const next = newProps[key];
  14125. // #1471 force patch value
  14126. if (next !== prev || key === 'value') {
  14127. hostPatchProp(el, key, prev, next, isSVG, n1.children, parentComponent, parentSuspense, unmountChildren);
  14128. }
  14129. }
  14130. }
  14131. }
  14132. // text
  14133. // This flag is matched when the element has only dynamic text children.
  14134. if (patchFlag & 1 /* TEXT */) {
  14135. if (n1.children !== n2.children) {
  14136. hostSetElementText(el, n2.children);
  14137. }
  14138. }
  14139. }
  14140. else if (!optimized && dynamicChildren == null) {
  14141. // unoptimized, full diff
  14142. patchProps(el, n2, oldProps, newProps, parentComponent, parentSuspense, isSVG);
  14143. }
  14144. if ((vnodeHook = newProps.onVnodeUpdated) || dirs) {
  14145. queuePostRenderEffect(() => {
  14146. vnodeHook && invokeVNodeHook(vnodeHook, parentComponent, n2, n1);
  14147. dirs && invokeDirectiveHook(n2, n1, parentComponent, 'updated');
  14148. }, parentSuspense);
  14149. }
  14150. };
  14151. // The fast path for blocks.
  14152. const patchBlockChildren = (oldChildren, newChildren, fallbackContainer, parentComponent, parentSuspense, isSVG, slotScopeIds) => {
  14153. for (let i = 0; i < newChildren.length; i++) {
  14154. const oldVNode = oldChildren[i];
  14155. const newVNode = newChildren[i];
  14156. // Determine the container (parent element) for the patch.
  14157. const container =
  14158. // oldVNode may be an errored async setup() component inside Suspense
  14159. // which will not have a mounted element
  14160. oldVNode.el &&
  14161. // - In the case of a Fragment, we need to provide the actual parent
  14162. // of the Fragment itself so it can move its children.
  14163. (oldVNode.type === Fragment ||
  14164. // - In the case of different nodes, there is going to be a replacement
  14165. // which also requires the correct parent container
  14166. !isSameVNodeType(oldVNode, newVNode) ||
  14167. // - In the case of a component, it could contain anything.
  14168. oldVNode.shapeFlag & (6 /* COMPONENT */ | 64 /* TELEPORT */))
  14169. ? hostParentNode(oldVNode.el)
  14170. : // In other cases, the parent container is not actually used so we
  14171. // just pass the block element here to avoid a DOM parentNode call.
  14172. fallbackContainer;
  14173. patch(oldVNode, newVNode, container, null, parentComponent, parentSuspense, isSVG, slotScopeIds, true);
  14174. }
  14175. };
  14176. const patchProps = (el, vnode, oldProps, newProps, parentComponent, parentSuspense, isSVG) => {
  14177. if (oldProps !== newProps) {
  14178. for (const key in newProps) {
  14179. // empty string is not valid prop
  14180. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isReservedProp)(key))
  14181. continue;
  14182. const next = newProps[key];
  14183. const prev = oldProps[key];
  14184. // defer patching value
  14185. if (next !== prev && key !== 'value') {
  14186. hostPatchProp(el, key, prev, next, isSVG, vnode.children, parentComponent, parentSuspense, unmountChildren);
  14187. }
  14188. }
  14189. if (oldProps !== _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ) {
  14190. for (const key in oldProps) {
  14191. if (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isReservedProp)(key) && !(key in newProps)) {
  14192. hostPatchProp(el, key, oldProps[key], null, isSVG, vnode.children, parentComponent, parentSuspense, unmountChildren);
  14193. }
  14194. }
  14195. }
  14196. if ('value' in newProps) {
  14197. hostPatchProp(el, 'value', oldProps.value, newProps.value);
  14198. }
  14199. }
  14200. };
  14201. const processFragment = (n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized) => {
  14202. const fragmentStartAnchor = (n2.el = n1 ? n1.el : hostCreateText(''));
  14203. const fragmentEndAnchor = (n2.anchor = n1 ? n1.anchor : hostCreateText(''));
  14204. let { patchFlag, dynamicChildren, slotScopeIds: fragmentSlotScopeIds } = n2;
  14205. if (( true) && isHmrUpdating) {
  14206. // HMR updated, force full diff
  14207. patchFlag = 0;
  14208. optimized = false;
  14209. dynamicChildren = null;
  14210. }
  14211. // check if this is a slot fragment with :slotted scope ids
  14212. if (fragmentSlotScopeIds) {
  14213. slotScopeIds = slotScopeIds
  14214. ? slotScopeIds.concat(fragmentSlotScopeIds)
  14215. : fragmentSlotScopeIds;
  14216. }
  14217. if (n1 == null) {
  14218. hostInsert(fragmentStartAnchor, container, anchor);
  14219. hostInsert(fragmentEndAnchor, container, anchor);
  14220. // a fragment can only have array children
  14221. // since they are either generated by the compiler, or implicitly created
  14222. // from arrays.
  14223. mountChildren(n2.children, container, fragmentEndAnchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);
  14224. }
  14225. else {
  14226. if (patchFlag > 0 &&
  14227. patchFlag & 64 /* STABLE_FRAGMENT */ &&
  14228. dynamicChildren &&
  14229. // #2715 the previous fragment could've been a BAILed one as a result
  14230. // of renderSlot() with no valid children
  14231. n1.dynamicChildren) {
  14232. // a stable fragment (template root or <template v-for>) doesn't need to
  14233. // patch children order, but it may contain dynamicChildren.
  14234. patchBlockChildren(n1.dynamicChildren, dynamicChildren, container, parentComponent, parentSuspense, isSVG, slotScopeIds);
  14235. if (( true) && parentComponent && parentComponent.type.__hmrId) {
  14236. traverseStaticChildren(n1, n2);
  14237. }
  14238. else if (
  14239. // #2080 if the stable fragment has a key, it's a <template v-for> that may
  14240. // get moved around. Make sure all root level vnodes inherit el.
  14241. // #2134 or if it's a component root, it may also get moved around
  14242. // as the component is being moved.
  14243. n2.key != null ||
  14244. (parentComponent && n2 === parentComponent.subTree)) {
  14245. traverseStaticChildren(n1, n2, true /* shallow */);
  14246. }
  14247. }
  14248. else {
  14249. // keyed / unkeyed, or manual fragments.
  14250. // for keyed & unkeyed, since they are compiler generated from v-for,
  14251. // each child is guaranteed to be a block so the fragment will never
  14252. // have dynamicChildren.
  14253. patchChildren(n1, n2, container, fragmentEndAnchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);
  14254. }
  14255. }
  14256. };
  14257. const processComponent = (n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized) => {
  14258. n2.slotScopeIds = slotScopeIds;
  14259. if (n1 == null) {
  14260. if (n2.shapeFlag & 512 /* COMPONENT_KEPT_ALIVE */) {
  14261. parentComponent.ctx.activate(n2, container, anchor, isSVG, optimized);
  14262. }
  14263. else {
  14264. mountComponent(n2, container, anchor, parentComponent, parentSuspense, isSVG, optimized);
  14265. }
  14266. }
  14267. else {
  14268. updateComponent(n1, n2, optimized);
  14269. }
  14270. };
  14271. const mountComponent = (initialVNode, container, anchor, parentComponent, parentSuspense, isSVG, optimized) => {
  14272. const instance = (initialVNode.component = createComponentInstance(initialVNode, parentComponent, parentSuspense));
  14273. if (( true) && instance.type.__hmrId) {
  14274. registerHMR(instance);
  14275. }
  14276. if ((true)) {
  14277. pushWarningContext(initialVNode);
  14278. startMeasure(instance, `mount`);
  14279. }
  14280. // inject renderer internals for keepAlive
  14281. if (isKeepAlive(initialVNode)) {
  14282. instance.ctx.renderer = internals;
  14283. }
  14284. // resolve props and slots for setup context
  14285. {
  14286. if ((true)) {
  14287. startMeasure(instance, `init`);
  14288. }
  14289. setupComponent(instance);
  14290. if ((true)) {
  14291. endMeasure(instance, `init`);
  14292. }
  14293. }
  14294. // setup() is async. This component relies on async logic to be resolved
  14295. // before proceeding
  14296. if (instance.asyncDep) {
  14297. parentSuspense && parentSuspense.registerDep(instance, setupRenderEffect);
  14298. // Give it a placeholder if this is not hydration
  14299. // TODO handle self-defined fallback
  14300. if (!initialVNode.el) {
  14301. const placeholder = (instance.subTree = createVNode(Comment));
  14302. processCommentNode(null, placeholder, container, anchor);
  14303. }
  14304. return;
  14305. }
  14306. setupRenderEffect(instance, initialVNode, container, anchor, parentSuspense, isSVG, optimized);
  14307. if ((true)) {
  14308. popWarningContext();
  14309. endMeasure(instance, `mount`);
  14310. }
  14311. };
  14312. const updateComponent = (n1, n2, optimized) => {
  14313. const instance = (n2.component = n1.component);
  14314. if (shouldUpdateComponent(n1, n2, optimized)) {
  14315. if (instance.asyncDep &&
  14316. !instance.asyncResolved) {
  14317. // async & still pending - just update props and slots
  14318. // since the component's reactive effect for render isn't set-up yet
  14319. if ((true)) {
  14320. pushWarningContext(n2);
  14321. }
  14322. updateComponentPreRender(instance, n2, optimized);
  14323. if ((true)) {
  14324. popWarningContext();
  14325. }
  14326. return;
  14327. }
  14328. else {
  14329. // normal update
  14330. instance.next = n2;
  14331. // in case the child component is also queued, remove it to avoid
  14332. // double updating the same child component in the same flush.
  14333. invalidateJob(instance.update);
  14334. // instance.update is the reactive effect.
  14335. instance.update();
  14336. }
  14337. }
  14338. else {
  14339. // no update needed. just copy over properties
  14340. n2.component = n1.component;
  14341. n2.el = n1.el;
  14342. instance.vnode = n2;
  14343. }
  14344. };
  14345. const setupRenderEffect = (instance, initialVNode, container, anchor, parentSuspense, isSVG, optimized) => {
  14346. const componentUpdateFn = () => {
  14347. if (!instance.isMounted) {
  14348. let vnodeHook;
  14349. const { el, props } = initialVNode;
  14350. const { bm, m, parent } = instance;
  14351. const isAsyncWrapperVNode = isAsyncWrapper(initialVNode);
  14352. toggleRecurse(instance, false);
  14353. // beforeMount hook
  14354. if (bm) {
  14355. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.invokeArrayFns)(bm);
  14356. }
  14357. // onVnodeBeforeMount
  14358. if (!isAsyncWrapperVNode &&
  14359. (vnodeHook = props && props.onVnodeBeforeMount)) {
  14360. invokeVNodeHook(vnodeHook, parent, initialVNode);
  14361. }
  14362. toggleRecurse(instance, true);
  14363. if (el && hydrateNode) {
  14364. // vnode has adopted host node - perform hydration instead of mount.
  14365. const hydrateSubTree = () => {
  14366. if ((true)) {
  14367. startMeasure(instance, `render`);
  14368. }
  14369. instance.subTree = renderComponentRoot(instance);
  14370. if ((true)) {
  14371. endMeasure(instance, `render`);
  14372. }
  14373. if ((true)) {
  14374. startMeasure(instance, `hydrate`);
  14375. }
  14376. hydrateNode(el, instance.subTree, instance, parentSuspense, null);
  14377. if ((true)) {
  14378. endMeasure(instance, `hydrate`);
  14379. }
  14380. };
  14381. if (isAsyncWrapperVNode) {
  14382. initialVNode.type.__asyncLoader().then(
  14383. // note: we are moving the render call into an async callback,
  14384. // which means it won't track dependencies - but it's ok because
  14385. // a server-rendered async wrapper is already in resolved state
  14386. // and it will never need to change.
  14387. () => !instance.isUnmounted && hydrateSubTree());
  14388. }
  14389. else {
  14390. hydrateSubTree();
  14391. }
  14392. }
  14393. else {
  14394. if ((true)) {
  14395. startMeasure(instance, `render`);
  14396. }
  14397. const subTree = (instance.subTree = renderComponentRoot(instance));
  14398. if ((true)) {
  14399. endMeasure(instance, `render`);
  14400. }
  14401. if ((true)) {
  14402. startMeasure(instance, `patch`);
  14403. }
  14404. patch(null, subTree, container, anchor, instance, parentSuspense, isSVG);
  14405. if ((true)) {
  14406. endMeasure(instance, `patch`);
  14407. }
  14408. initialVNode.el = subTree.el;
  14409. }
  14410. // mounted hook
  14411. if (m) {
  14412. queuePostRenderEffect(m, parentSuspense);
  14413. }
  14414. // onVnodeMounted
  14415. if (!isAsyncWrapperVNode &&
  14416. (vnodeHook = props && props.onVnodeMounted)) {
  14417. const scopedInitialVNode = initialVNode;
  14418. queuePostRenderEffect(() => invokeVNodeHook(vnodeHook, parent, scopedInitialVNode), parentSuspense);
  14419. }
  14420. // activated hook for keep-alive roots.
  14421. // #1742 activated hook must be accessed after first render
  14422. // since the hook may be injected by a child keep-alive
  14423. if (initialVNode.shapeFlag & 256 /* COMPONENT_SHOULD_KEEP_ALIVE */) {
  14424. instance.a && queuePostRenderEffect(instance.a, parentSuspense);
  14425. }
  14426. instance.isMounted = true;
  14427. if (true) {
  14428. devtoolsComponentAdded(instance);
  14429. }
  14430. // #2458: deference mount-only object parameters to prevent memleaks
  14431. initialVNode = container = anchor = null;
  14432. }
  14433. else {
  14434. // updateComponent
  14435. // This is triggered by mutation of component's own state (next: null)
  14436. // OR parent calling processComponent (next: VNode)
  14437. let { next, bu, u, parent, vnode } = instance;
  14438. let originNext = next;
  14439. let vnodeHook;
  14440. if ((true)) {
  14441. pushWarningContext(next || instance.vnode);
  14442. }
  14443. // Disallow component effect recursion during pre-lifecycle hooks.
  14444. toggleRecurse(instance, false);
  14445. if (next) {
  14446. next.el = vnode.el;
  14447. updateComponentPreRender(instance, next, optimized);
  14448. }
  14449. else {
  14450. next = vnode;
  14451. }
  14452. // beforeUpdate hook
  14453. if (bu) {
  14454. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.invokeArrayFns)(bu);
  14455. }
  14456. // onVnodeBeforeUpdate
  14457. if ((vnodeHook = next.props && next.props.onVnodeBeforeUpdate)) {
  14458. invokeVNodeHook(vnodeHook, parent, next, vnode);
  14459. }
  14460. toggleRecurse(instance, true);
  14461. // render
  14462. if ((true)) {
  14463. startMeasure(instance, `render`);
  14464. }
  14465. const nextTree = renderComponentRoot(instance);
  14466. if ((true)) {
  14467. endMeasure(instance, `render`);
  14468. }
  14469. const prevTree = instance.subTree;
  14470. instance.subTree = nextTree;
  14471. if ((true)) {
  14472. startMeasure(instance, `patch`);
  14473. }
  14474. patch(prevTree, nextTree,
  14475. // parent may have changed if it's in a teleport
  14476. hostParentNode(prevTree.el),
  14477. // anchor may have changed if it's in a fragment
  14478. getNextHostNode(prevTree), instance, parentSuspense, isSVG);
  14479. if ((true)) {
  14480. endMeasure(instance, `patch`);
  14481. }
  14482. next.el = nextTree.el;
  14483. if (originNext === null) {
  14484. // self-triggered update. In case of HOC, update parent component
  14485. // vnode el. HOC is indicated by parent instance's subTree pointing
  14486. // to child component's vnode
  14487. updateHOCHostEl(instance, nextTree.el);
  14488. }
  14489. // updated hook
  14490. if (u) {
  14491. queuePostRenderEffect(u, parentSuspense);
  14492. }
  14493. // onVnodeUpdated
  14494. if ((vnodeHook = next.props && next.props.onVnodeUpdated)) {
  14495. queuePostRenderEffect(() => invokeVNodeHook(vnodeHook, parent, next, vnode), parentSuspense);
  14496. }
  14497. if (true) {
  14498. devtoolsComponentUpdated(instance);
  14499. }
  14500. if ((true)) {
  14501. popWarningContext();
  14502. }
  14503. }
  14504. };
  14505. // create reactive effect for rendering
  14506. const effect = (instance.effect = new _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.ReactiveEffect(componentUpdateFn, () => queueJob(instance.update), instance.scope // track it in component's effect scope
  14507. ));
  14508. const update = (instance.update = effect.run.bind(effect));
  14509. update.id = instance.uid;
  14510. // allowRecurse
  14511. // #1801, #2043 component render effects should allow recursive updates
  14512. toggleRecurse(instance, true);
  14513. if ((true)) {
  14514. effect.onTrack = instance.rtc
  14515. ? e => (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.invokeArrayFns)(instance.rtc, e)
  14516. : void 0;
  14517. effect.onTrigger = instance.rtg
  14518. ? e => (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.invokeArrayFns)(instance.rtg, e)
  14519. : void 0;
  14520. // @ts-ignore (for scheduler)
  14521. update.ownerInstance = instance;
  14522. }
  14523. update();
  14524. };
  14525. const updateComponentPreRender = (instance, nextVNode, optimized) => {
  14526. nextVNode.component = instance;
  14527. const prevProps = instance.vnode.props;
  14528. instance.vnode = nextVNode;
  14529. instance.next = null;
  14530. updateProps(instance, nextVNode.props, prevProps, optimized);
  14531. updateSlots(instance, nextVNode.children, optimized);
  14532. (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.pauseTracking)();
  14533. // props update may have triggered pre-flush watchers.
  14534. // flush them before the render update.
  14535. flushPreFlushCbs(undefined, instance.update);
  14536. (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.resetTracking)();
  14537. };
  14538. const patchChildren = (n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized = false) => {
  14539. const c1 = n1 && n1.children;
  14540. const prevShapeFlag = n1 ? n1.shapeFlag : 0;
  14541. const c2 = n2.children;
  14542. const { patchFlag, shapeFlag } = n2;
  14543. // fast path
  14544. if (patchFlag > 0) {
  14545. if (patchFlag & 128 /* KEYED_FRAGMENT */) {
  14546. // this could be either fully-keyed or mixed (some keyed some not)
  14547. // presence of patchFlag means children are guaranteed to be arrays
  14548. patchKeyedChildren(c1, c2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);
  14549. return;
  14550. }
  14551. else if (patchFlag & 256 /* UNKEYED_FRAGMENT */) {
  14552. // unkeyed
  14553. patchUnkeyedChildren(c1, c2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);
  14554. return;
  14555. }
  14556. }
  14557. // children has 3 possibilities: text, array or no children.
  14558. if (shapeFlag & 8 /* TEXT_CHILDREN */) {
  14559. // text children fast path
  14560. if (prevShapeFlag & 16 /* ARRAY_CHILDREN */) {
  14561. unmountChildren(c1, parentComponent, parentSuspense);
  14562. }
  14563. if (c2 !== c1) {
  14564. hostSetElementText(container, c2);
  14565. }
  14566. }
  14567. else {
  14568. if (prevShapeFlag & 16 /* ARRAY_CHILDREN */) {
  14569. // prev children was array
  14570. if (shapeFlag & 16 /* ARRAY_CHILDREN */) {
  14571. // two arrays, cannot assume anything, do full diff
  14572. patchKeyedChildren(c1, c2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);
  14573. }
  14574. else {
  14575. // no new children, just unmount old
  14576. unmountChildren(c1, parentComponent, parentSuspense, true);
  14577. }
  14578. }
  14579. else {
  14580. // prev children was text OR null
  14581. // new children is array OR null
  14582. if (prevShapeFlag & 8 /* TEXT_CHILDREN */) {
  14583. hostSetElementText(container, '');
  14584. }
  14585. // mount new if array
  14586. if (shapeFlag & 16 /* ARRAY_CHILDREN */) {
  14587. mountChildren(c2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);
  14588. }
  14589. }
  14590. }
  14591. };
  14592. const patchUnkeyedChildren = (c1, c2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized) => {
  14593. c1 = c1 || _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_ARR;
  14594. c2 = c2 || _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_ARR;
  14595. const oldLength = c1.length;
  14596. const newLength = c2.length;
  14597. const commonLength = Math.min(oldLength, newLength);
  14598. let i;
  14599. for (i = 0; i < commonLength; i++) {
  14600. const nextChild = (c2[i] = optimized
  14601. ? cloneIfMounted(c2[i])
  14602. : normalizeVNode(c2[i]));
  14603. patch(c1[i], nextChild, container, null, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);
  14604. }
  14605. if (oldLength > newLength) {
  14606. // remove old
  14607. unmountChildren(c1, parentComponent, parentSuspense, true, false, commonLength);
  14608. }
  14609. else {
  14610. // mount new
  14611. mountChildren(c2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, commonLength);
  14612. }
  14613. };
  14614. // can be all-keyed or mixed
  14615. const patchKeyedChildren = (c1, c2, container, parentAnchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized) => {
  14616. let i = 0;
  14617. const l2 = c2.length;
  14618. let e1 = c1.length - 1; // prev ending index
  14619. let e2 = l2 - 1; // next ending index
  14620. // 1. sync from start
  14621. // (a b) c
  14622. // (a b) d e
  14623. while (i <= e1 && i <= e2) {
  14624. const n1 = c1[i];
  14625. const n2 = (c2[i] = optimized
  14626. ? cloneIfMounted(c2[i])
  14627. : normalizeVNode(c2[i]));
  14628. if (isSameVNodeType(n1, n2)) {
  14629. patch(n1, n2, container, null, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);
  14630. }
  14631. else {
  14632. break;
  14633. }
  14634. i++;
  14635. }
  14636. // 2. sync from end
  14637. // a (b c)
  14638. // d e (b c)
  14639. while (i <= e1 && i <= e2) {
  14640. const n1 = c1[e1];
  14641. const n2 = (c2[e2] = optimized
  14642. ? cloneIfMounted(c2[e2])
  14643. : normalizeVNode(c2[e2]));
  14644. if (isSameVNodeType(n1, n2)) {
  14645. patch(n1, n2, container, null, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);
  14646. }
  14647. else {
  14648. break;
  14649. }
  14650. e1--;
  14651. e2--;
  14652. }
  14653. // 3. common sequence + mount
  14654. // (a b)
  14655. // (a b) c
  14656. // i = 2, e1 = 1, e2 = 2
  14657. // (a b)
  14658. // c (a b)
  14659. // i = 0, e1 = -1, e2 = 0
  14660. if (i > e1) {
  14661. if (i <= e2) {
  14662. const nextPos = e2 + 1;
  14663. const anchor = nextPos < l2 ? c2[nextPos].el : parentAnchor;
  14664. while (i <= e2) {
  14665. patch(null, (c2[i] = optimized
  14666. ? cloneIfMounted(c2[i])
  14667. : normalizeVNode(c2[i])), container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);
  14668. i++;
  14669. }
  14670. }
  14671. }
  14672. // 4. common sequence + unmount
  14673. // (a b) c
  14674. // (a b)
  14675. // i = 2, e1 = 2, e2 = 1
  14676. // a (b c)
  14677. // (b c)
  14678. // i = 0, e1 = 0, e2 = -1
  14679. else if (i > e2) {
  14680. while (i <= e1) {
  14681. unmount(c1[i], parentComponent, parentSuspense, true);
  14682. i++;
  14683. }
  14684. }
  14685. // 5. unknown sequence
  14686. // [i ... e1 + 1]: a b [c d e] f g
  14687. // [i ... e2 + 1]: a b [e d c h] f g
  14688. // i = 2, e1 = 4, e2 = 5
  14689. else {
  14690. const s1 = i; // prev starting index
  14691. const s2 = i; // next starting index
  14692. // 5.1 build key:index map for newChildren
  14693. const keyToNewIndexMap = new Map();
  14694. for (i = s2; i <= e2; i++) {
  14695. const nextChild = (c2[i] = optimized
  14696. ? cloneIfMounted(c2[i])
  14697. : normalizeVNode(c2[i]));
  14698. if (nextChild.key != null) {
  14699. if (( true) && keyToNewIndexMap.has(nextChild.key)) {
  14700. warn(`Duplicate keys found during update:`, JSON.stringify(nextChild.key), `Make sure keys are unique.`);
  14701. }
  14702. keyToNewIndexMap.set(nextChild.key, i);
  14703. }
  14704. }
  14705. // 5.2 loop through old children left to be patched and try to patch
  14706. // matching nodes & remove nodes that are no longer present
  14707. let j;
  14708. let patched = 0;
  14709. const toBePatched = e2 - s2 + 1;
  14710. let moved = false;
  14711. // used to track whether any node has moved
  14712. let maxNewIndexSoFar = 0;
  14713. // works as Map<newIndex, oldIndex>
  14714. // Note that oldIndex is offset by +1
  14715. // and oldIndex = 0 is a special value indicating the new node has
  14716. // no corresponding old node.
  14717. // used for determining longest stable subsequence
  14718. const newIndexToOldIndexMap = new Array(toBePatched);
  14719. for (i = 0; i < toBePatched; i++)
  14720. newIndexToOldIndexMap[i] = 0;
  14721. for (i = s1; i <= e1; i++) {
  14722. const prevChild = c1[i];
  14723. if (patched >= toBePatched) {
  14724. // all new children have been patched so this can only be a removal
  14725. unmount(prevChild, parentComponent, parentSuspense, true);
  14726. continue;
  14727. }
  14728. let newIndex;
  14729. if (prevChild.key != null) {
  14730. newIndex = keyToNewIndexMap.get(prevChild.key);
  14731. }
  14732. else {
  14733. // key-less node, try to locate a key-less node of the same type
  14734. for (j = s2; j <= e2; j++) {
  14735. if (newIndexToOldIndexMap[j - s2] === 0 &&
  14736. isSameVNodeType(prevChild, c2[j])) {
  14737. newIndex = j;
  14738. break;
  14739. }
  14740. }
  14741. }
  14742. if (newIndex === undefined) {
  14743. unmount(prevChild, parentComponent, parentSuspense, true);
  14744. }
  14745. else {
  14746. newIndexToOldIndexMap[newIndex - s2] = i + 1;
  14747. if (newIndex >= maxNewIndexSoFar) {
  14748. maxNewIndexSoFar = newIndex;
  14749. }
  14750. else {
  14751. moved = true;
  14752. }
  14753. patch(prevChild, c2[newIndex], container, null, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);
  14754. patched++;
  14755. }
  14756. }
  14757. // 5.3 move and mount
  14758. // generate longest stable subsequence only when nodes have moved
  14759. const increasingNewIndexSequence = moved
  14760. ? getSequence(newIndexToOldIndexMap)
  14761. : _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_ARR;
  14762. j = increasingNewIndexSequence.length - 1;
  14763. // looping backwards so that we can use last patched node as anchor
  14764. for (i = toBePatched - 1; i >= 0; i--) {
  14765. const nextIndex = s2 + i;
  14766. const nextChild = c2[nextIndex];
  14767. const anchor = nextIndex + 1 < l2 ? c2[nextIndex + 1].el : parentAnchor;
  14768. if (newIndexToOldIndexMap[i] === 0) {
  14769. // mount new
  14770. patch(null, nextChild, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);
  14771. }
  14772. else if (moved) {
  14773. // move if:
  14774. // There is no stable subsequence (e.g. a reverse)
  14775. // OR current node is not among the stable sequence
  14776. if (j < 0 || i !== increasingNewIndexSequence[j]) {
  14777. move(nextChild, container, anchor, 2 /* REORDER */);
  14778. }
  14779. else {
  14780. j--;
  14781. }
  14782. }
  14783. }
  14784. }
  14785. };
  14786. const move = (vnode, container, anchor, moveType, parentSuspense = null) => {
  14787. const { el, type, transition, children, shapeFlag } = vnode;
  14788. if (shapeFlag & 6 /* COMPONENT */) {
  14789. move(vnode.component.subTree, container, anchor, moveType);
  14790. return;
  14791. }
  14792. if (shapeFlag & 128 /* SUSPENSE */) {
  14793. vnode.suspense.move(container, anchor, moveType);
  14794. return;
  14795. }
  14796. if (shapeFlag & 64 /* TELEPORT */) {
  14797. type.move(vnode, container, anchor, internals);
  14798. return;
  14799. }
  14800. if (type === Fragment) {
  14801. hostInsert(el, container, anchor);
  14802. for (let i = 0; i < children.length; i++) {
  14803. move(children[i], container, anchor, moveType);
  14804. }
  14805. hostInsert(vnode.anchor, container, anchor);
  14806. return;
  14807. }
  14808. if (type === Static) {
  14809. moveStaticNode(vnode, container, anchor);
  14810. return;
  14811. }
  14812. // single nodes
  14813. const needTransition = moveType !== 2 /* REORDER */ &&
  14814. shapeFlag & 1 /* ELEMENT */ &&
  14815. transition;
  14816. if (needTransition) {
  14817. if (moveType === 0 /* ENTER */) {
  14818. transition.beforeEnter(el);
  14819. hostInsert(el, container, anchor);
  14820. queuePostRenderEffect(() => transition.enter(el), parentSuspense);
  14821. }
  14822. else {
  14823. const { leave, delayLeave, afterLeave } = transition;
  14824. const remove = () => hostInsert(el, container, anchor);
  14825. const performLeave = () => {
  14826. leave(el, () => {
  14827. remove();
  14828. afterLeave && afterLeave();
  14829. });
  14830. };
  14831. if (delayLeave) {
  14832. delayLeave(el, remove, performLeave);
  14833. }
  14834. else {
  14835. performLeave();
  14836. }
  14837. }
  14838. }
  14839. else {
  14840. hostInsert(el, container, anchor);
  14841. }
  14842. };
  14843. const unmount = (vnode, parentComponent, parentSuspense, doRemove = false, optimized = false) => {
  14844. const { type, props, ref, children, dynamicChildren, shapeFlag, patchFlag, dirs } = vnode;
  14845. // unset ref
  14846. if (ref != null) {
  14847. setRef(ref, null, parentSuspense, vnode, true);
  14848. }
  14849. if (shapeFlag & 256 /* COMPONENT_SHOULD_KEEP_ALIVE */) {
  14850. parentComponent.ctx.deactivate(vnode);
  14851. return;
  14852. }
  14853. const shouldInvokeDirs = shapeFlag & 1 /* ELEMENT */ && dirs;
  14854. const shouldInvokeVnodeHook = !isAsyncWrapper(vnode);
  14855. let vnodeHook;
  14856. if (shouldInvokeVnodeHook &&
  14857. (vnodeHook = props && props.onVnodeBeforeUnmount)) {
  14858. invokeVNodeHook(vnodeHook, parentComponent, vnode);
  14859. }
  14860. if (shapeFlag & 6 /* COMPONENT */) {
  14861. unmountComponent(vnode.component, parentSuspense, doRemove);
  14862. }
  14863. else {
  14864. if (shapeFlag & 128 /* SUSPENSE */) {
  14865. vnode.suspense.unmount(parentSuspense, doRemove);
  14866. return;
  14867. }
  14868. if (shouldInvokeDirs) {
  14869. invokeDirectiveHook(vnode, null, parentComponent, 'beforeUnmount');
  14870. }
  14871. if (shapeFlag & 64 /* TELEPORT */) {
  14872. vnode.type.remove(vnode, parentComponent, parentSuspense, optimized, internals, doRemove);
  14873. }
  14874. else if (dynamicChildren &&
  14875. // #1153: fast path should not be taken for non-stable (v-for) fragments
  14876. (type !== Fragment ||
  14877. (patchFlag > 0 && patchFlag & 64 /* STABLE_FRAGMENT */))) {
  14878. // fast path for block nodes: only need to unmount dynamic children.
  14879. unmountChildren(dynamicChildren, parentComponent, parentSuspense, false, true);
  14880. }
  14881. else if ((type === Fragment &&
  14882. patchFlag &
  14883. (128 /* KEYED_FRAGMENT */ | 256 /* UNKEYED_FRAGMENT */)) ||
  14884. (!optimized && shapeFlag & 16 /* ARRAY_CHILDREN */)) {
  14885. unmountChildren(children, parentComponent, parentSuspense);
  14886. }
  14887. if (doRemove) {
  14888. remove(vnode);
  14889. }
  14890. }
  14891. if ((shouldInvokeVnodeHook &&
  14892. (vnodeHook = props && props.onVnodeUnmounted)) ||
  14893. shouldInvokeDirs) {
  14894. queuePostRenderEffect(() => {
  14895. vnodeHook && invokeVNodeHook(vnodeHook, parentComponent, vnode);
  14896. shouldInvokeDirs &&
  14897. invokeDirectiveHook(vnode, null, parentComponent, 'unmounted');
  14898. }, parentSuspense);
  14899. }
  14900. };
  14901. const remove = vnode => {
  14902. const { type, el, anchor, transition } = vnode;
  14903. if (type === Fragment) {
  14904. removeFragment(el, anchor);
  14905. return;
  14906. }
  14907. if (type === Static) {
  14908. removeStaticNode(vnode);
  14909. return;
  14910. }
  14911. const performRemove = () => {
  14912. hostRemove(el);
  14913. if (transition && !transition.persisted && transition.afterLeave) {
  14914. transition.afterLeave();
  14915. }
  14916. };
  14917. if (vnode.shapeFlag & 1 /* ELEMENT */ &&
  14918. transition &&
  14919. !transition.persisted) {
  14920. const { leave, delayLeave } = transition;
  14921. const performLeave = () => leave(el, performRemove);
  14922. if (delayLeave) {
  14923. delayLeave(vnode.el, performRemove, performLeave);
  14924. }
  14925. else {
  14926. performLeave();
  14927. }
  14928. }
  14929. else {
  14930. performRemove();
  14931. }
  14932. };
  14933. const removeFragment = (cur, end) => {
  14934. // For fragments, directly remove all contained DOM nodes.
  14935. // (fragment child nodes cannot have transition)
  14936. let next;
  14937. while (cur !== end) {
  14938. next = hostNextSibling(cur);
  14939. hostRemove(cur);
  14940. cur = next;
  14941. }
  14942. hostRemove(end);
  14943. };
  14944. const unmountComponent = (instance, parentSuspense, doRemove) => {
  14945. if (( true) && instance.type.__hmrId) {
  14946. unregisterHMR(instance);
  14947. }
  14948. const { bum, scope, update, subTree, um } = instance;
  14949. // beforeUnmount hook
  14950. if (bum) {
  14951. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.invokeArrayFns)(bum);
  14952. }
  14953. // stop effects in component scope
  14954. scope.stop();
  14955. // update may be null if a component is unmounted before its async
  14956. // setup has resolved.
  14957. if (update) {
  14958. // so that scheduler will no longer invoke it
  14959. update.active = false;
  14960. unmount(subTree, instance, parentSuspense, doRemove);
  14961. }
  14962. // unmounted hook
  14963. if (um) {
  14964. queuePostRenderEffect(um, parentSuspense);
  14965. }
  14966. queuePostRenderEffect(() => {
  14967. instance.isUnmounted = true;
  14968. }, parentSuspense);
  14969. // A component with async dep inside a pending suspense is unmounted before
  14970. // its async dep resolves. This should remove the dep from the suspense, and
  14971. // cause the suspense to resolve immediately if that was the last dep.
  14972. if (parentSuspense &&
  14973. parentSuspense.pendingBranch &&
  14974. !parentSuspense.isUnmounted &&
  14975. instance.asyncDep &&
  14976. !instance.asyncResolved &&
  14977. instance.suspenseId === parentSuspense.pendingId) {
  14978. parentSuspense.deps--;
  14979. if (parentSuspense.deps === 0) {
  14980. parentSuspense.resolve();
  14981. }
  14982. }
  14983. if (true) {
  14984. devtoolsComponentRemoved(instance);
  14985. }
  14986. };
  14987. const unmountChildren = (children, parentComponent, parentSuspense, doRemove = false, optimized = false, start = 0) => {
  14988. for (let i = start; i < children.length; i++) {
  14989. unmount(children[i], parentComponent, parentSuspense, doRemove, optimized);
  14990. }
  14991. };
  14992. const getNextHostNode = vnode => {
  14993. if (vnode.shapeFlag & 6 /* COMPONENT */) {
  14994. return getNextHostNode(vnode.component.subTree);
  14995. }
  14996. if (vnode.shapeFlag & 128 /* SUSPENSE */) {
  14997. return vnode.suspense.next();
  14998. }
  14999. return hostNextSibling((vnode.anchor || vnode.el));
  15000. };
  15001. const render = (vnode, container, isSVG) => {
  15002. if (vnode == null) {
  15003. if (container._vnode) {
  15004. unmount(container._vnode, null, null, true);
  15005. }
  15006. }
  15007. else {
  15008. patch(container._vnode || null, vnode, container, null, null, null, isSVG);
  15009. }
  15010. flushPostFlushCbs();
  15011. container._vnode = vnode;
  15012. };
  15013. const internals = {
  15014. p: patch,
  15015. um: unmount,
  15016. m: move,
  15017. r: remove,
  15018. mt: mountComponent,
  15019. mc: mountChildren,
  15020. pc: patchChildren,
  15021. pbc: patchBlockChildren,
  15022. n: getNextHostNode,
  15023. o: options
  15024. };
  15025. let hydrate;
  15026. let hydrateNode;
  15027. if (createHydrationFns) {
  15028. [hydrate, hydrateNode] = createHydrationFns(internals);
  15029. }
  15030. return {
  15031. render,
  15032. hydrate,
  15033. createApp: createAppAPI(render, hydrate)
  15034. };
  15035. }
  15036. function toggleRecurse({ effect, update }, allowed) {
  15037. effect.allowRecurse = update.allowRecurse = allowed;
  15038. }
  15039. /**
  15040. * #1156
  15041. * When a component is HMR-enabled, we need to make sure that all static nodes
  15042. * inside a block also inherit the DOM element from the previous tree so that
  15043. * HMR updates (which are full updates) can retrieve the element for patching.
  15044. *
  15045. * #2080
  15046. * Inside keyed `template` fragment static children, if a fragment is moved,
  15047. * the children will always be moved. Therefore, in order to ensure correct move
  15048. * position, el should be inherited from previous nodes.
  15049. */
  15050. function traverseStaticChildren(n1, n2, shallow = false) {
  15051. const ch1 = n1.children;
  15052. const ch2 = n2.children;
  15053. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(ch1) && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(ch2)) {
  15054. for (let i = 0; i < ch1.length; i++) {
  15055. // this is only called in the optimized path so array children are
  15056. // guaranteed to be vnodes
  15057. const c1 = ch1[i];
  15058. let c2 = ch2[i];
  15059. if (c2.shapeFlag & 1 /* ELEMENT */ && !c2.dynamicChildren) {
  15060. if (c2.patchFlag <= 0 || c2.patchFlag === 32 /* HYDRATE_EVENTS */) {
  15061. c2 = ch2[i] = cloneIfMounted(ch2[i]);
  15062. c2.el = c1.el;
  15063. }
  15064. if (!shallow)
  15065. traverseStaticChildren(c1, c2);
  15066. }
  15067. // also inherit for comment nodes, but not placeholders (e.g. v-if which
  15068. // would have received .el during block patch)
  15069. if (( true) && c2.type === Comment && !c2.el) {
  15070. c2.el = c1.el;
  15071. }
  15072. }
  15073. }
  15074. }
  15075. // https://en.wikipedia.org/wiki/Longest_increasing_subsequence
  15076. function getSequence(arr) {
  15077. const p = arr.slice();
  15078. const result = [0];
  15079. let i, j, u, v, c;
  15080. const len = arr.length;
  15081. for (i = 0; i < len; i++) {
  15082. const arrI = arr[i];
  15083. if (arrI !== 0) {
  15084. j = result[result.length - 1];
  15085. if (arr[j] < arrI) {
  15086. p[i] = j;
  15087. result.push(i);
  15088. continue;
  15089. }
  15090. u = 0;
  15091. v = result.length - 1;
  15092. while (u < v) {
  15093. c = (u + v) >> 1;
  15094. if (arr[result[c]] < arrI) {
  15095. u = c + 1;
  15096. }
  15097. else {
  15098. v = c;
  15099. }
  15100. }
  15101. if (arrI < arr[result[u]]) {
  15102. if (u > 0) {
  15103. p[i] = result[u - 1];
  15104. }
  15105. result[u] = i;
  15106. }
  15107. }
  15108. }
  15109. u = result.length;
  15110. v = result[u - 1];
  15111. while (u-- > 0) {
  15112. result[u] = v;
  15113. v = p[v];
  15114. }
  15115. return result;
  15116. }
  15117. const isTeleport = (type) => type.__isTeleport;
  15118. const isTeleportDisabled = (props) => props && (props.disabled || props.disabled === '');
  15119. const isTargetSVG = (target) => typeof SVGElement !== 'undefined' && target instanceof SVGElement;
  15120. const resolveTarget = (props, select) => {
  15121. const targetSelector = props && props.to;
  15122. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(targetSelector)) {
  15123. if (!select) {
  15124. ( true) &&
  15125. warn(`Current renderer does not support string target for Teleports. ` +
  15126. `(missing querySelector renderer option)`);
  15127. return null;
  15128. }
  15129. else {
  15130. const target = select(targetSelector);
  15131. if (!target) {
  15132. ( true) &&
  15133. warn(`Failed to locate Teleport target with selector "${targetSelector}". ` +
  15134. `Note the target element must exist before the component is mounted - ` +
  15135. `i.e. the target cannot be rendered by the component itself, and ` +
  15136. `ideally should be outside of the entire Vue component tree.`);
  15137. }
  15138. return target;
  15139. }
  15140. }
  15141. else {
  15142. if (( true) && !targetSelector && !isTeleportDisabled(props)) {
  15143. warn(`Invalid Teleport target: ${targetSelector}`);
  15144. }
  15145. return targetSelector;
  15146. }
  15147. };
  15148. const TeleportImpl = {
  15149. __isTeleport: true,
  15150. process(n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, internals) {
  15151. const { mc: mountChildren, pc: patchChildren, pbc: patchBlockChildren, o: { insert, querySelector, createText, createComment } } = internals;
  15152. const disabled = isTeleportDisabled(n2.props);
  15153. let { shapeFlag, children, dynamicChildren } = n2;
  15154. // #3302
  15155. // HMR updated, force full diff
  15156. if (( true) && isHmrUpdating) {
  15157. optimized = false;
  15158. dynamicChildren = null;
  15159. }
  15160. if (n1 == null) {
  15161. // insert anchors in the main view
  15162. const placeholder = (n2.el = ( true)
  15163. ? createComment('teleport start')
  15164. : 0);
  15165. const mainAnchor = (n2.anchor = ( true)
  15166. ? createComment('teleport end')
  15167. : 0);
  15168. insert(placeholder, container, anchor);
  15169. insert(mainAnchor, container, anchor);
  15170. const target = (n2.target = resolveTarget(n2.props, querySelector));
  15171. const targetAnchor = (n2.targetAnchor = createText(''));
  15172. if (target) {
  15173. insert(targetAnchor, target);
  15174. // #2652 we could be teleporting from a non-SVG tree into an SVG tree
  15175. isSVG = isSVG || isTargetSVG(target);
  15176. }
  15177. else if (( true) && !disabled) {
  15178. warn('Invalid Teleport target on mount:', target, `(${typeof target})`);
  15179. }
  15180. const mount = (container, anchor) => {
  15181. // Teleport *always* has Array children. This is enforced in both the
  15182. // compiler and vnode children normalization.
  15183. if (shapeFlag & 16 /* ARRAY_CHILDREN */) {
  15184. mountChildren(children, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized);
  15185. }
  15186. };
  15187. if (disabled) {
  15188. mount(container, mainAnchor);
  15189. }
  15190. else if (target) {
  15191. mount(target, targetAnchor);
  15192. }
  15193. }
  15194. else {
  15195. // update content
  15196. n2.el = n1.el;
  15197. const mainAnchor = (n2.anchor = n1.anchor);
  15198. const target = (n2.target = n1.target);
  15199. const targetAnchor = (n2.targetAnchor = n1.targetAnchor);
  15200. const wasDisabled = isTeleportDisabled(n1.props);
  15201. const currentContainer = wasDisabled ? container : target;
  15202. const currentAnchor = wasDisabled ? mainAnchor : targetAnchor;
  15203. isSVG = isSVG || isTargetSVG(target);
  15204. if (dynamicChildren) {
  15205. // fast path when the teleport happens to be a block root
  15206. patchBlockChildren(n1.dynamicChildren, dynamicChildren, currentContainer, parentComponent, parentSuspense, isSVG, slotScopeIds);
  15207. // even in block tree mode we need to make sure all root-level nodes
  15208. // in the teleport inherit previous DOM references so that they can
  15209. // be moved in future patches.
  15210. traverseStaticChildren(n1, n2, true);
  15211. }
  15212. else if (!optimized) {
  15213. patchChildren(n1, n2, currentContainer, currentAnchor, parentComponent, parentSuspense, isSVG, slotScopeIds, false);
  15214. }
  15215. if (disabled) {
  15216. if (!wasDisabled) {
  15217. // enabled -> disabled
  15218. // move into main container
  15219. moveTeleport(n2, container, mainAnchor, internals, 1 /* TOGGLE */);
  15220. }
  15221. }
  15222. else {
  15223. // target changed
  15224. if ((n2.props && n2.props.to) !== (n1.props && n1.props.to)) {
  15225. const nextTarget = (n2.target = resolveTarget(n2.props, querySelector));
  15226. if (nextTarget) {
  15227. moveTeleport(n2, nextTarget, null, internals, 0 /* TARGET_CHANGE */);
  15228. }
  15229. else if ((true)) {
  15230. warn('Invalid Teleport target on update:', target, `(${typeof target})`);
  15231. }
  15232. }
  15233. else if (wasDisabled) {
  15234. // disabled -> enabled
  15235. // move into teleport target
  15236. moveTeleport(n2, target, targetAnchor, internals, 1 /* TOGGLE */);
  15237. }
  15238. }
  15239. }
  15240. },
  15241. remove(vnode, parentComponent, parentSuspense, optimized, { um: unmount, o: { remove: hostRemove } }, doRemove) {
  15242. const { shapeFlag, children, anchor, targetAnchor, target, props } = vnode;
  15243. if (target) {
  15244. hostRemove(targetAnchor);
  15245. }
  15246. // an unmounted teleport should always remove its children if not disabled
  15247. if (doRemove || !isTeleportDisabled(props)) {
  15248. hostRemove(anchor);
  15249. if (shapeFlag & 16 /* ARRAY_CHILDREN */) {
  15250. for (let i = 0; i < children.length; i++) {
  15251. const child = children[i];
  15252. unmount(child, parentComponent, parentSuspense, true, !!child.dynamicChildren);
  15253. }
  15254. }
  15255. }
  15256. },
  15257. move: moveTeleport,
  15258. hydrate: hydrateTeleport
  15259. };
  15260. function moveTeleport(vnode, container, parentAnchor, { o: { insert }, m: move }, moveType = 2 /* REORDER */) {
  15261. // move target anchor if this is a target change.
  15262. if (moveType === 0 /* TARGET_CHANGE */) {
  15263. insert(vnode.targetAnchor, container, parentAnchor);
  15264. }
  15265. const { el, anchor, shapeFlag, children, props } = vnode;
  15266. const isReorder = moveType === 2 /* REORDER */;
  15267. // move main view anchor if this is a re-order.
  15268. if (isReorder) {
  15269. insert(el, container, parentAnchor);
  15270. }
  15271. // if this is a re-order and teleport is enabled (content is in target)
  15272. // do not move children. So the opposite is: only move children if this
  15273. // is not a reorder, or the teleport is disabled
  15274. if (!isReorder || isTeleportDisabled(props)) {
  15275. // Teleport has either Array children or no children.
  15276. if (shapeFlag & 16 /* ARRAY_CHILDREN */) {
  15277. for (let i = 0; i < children.length; i++) {
  15278. move(children[i], container, parentAnchor, 2 /* REORDER */);
  15279. }
  15280. }
  15281. }
  15282. // move main view anchor if this is a re-order.
  15283. if (isReorder) {
  15284. insert(anchor, container, parentAnchor);
  15285. }
  15286. }
  15287. function hydrateTeleport(node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized, { o: { nextSibling, parentNode, querySelector } }, hydrateChildren) {
  15288. const target = (vnode.target = resolveTarget(vnode.props, querySelector));
  15289. if (target) {
  15290. // if multiple teleports rendered to the same target element, we need to
  15291. // pick up from where the last teleport finished instead of the first node
  15292. const targetNode = target._lpa || target.firstChild;
  15293. if (vnode.shapeFlag & 16 /* ARRAY_CHILDREN */) {
  15294. if (isTeleportDisabled(vnode.props)) {
  15295. vnode.anchor = hydrateChildren(nextSibling(node), vnode, parentNode(node), parentComponent, parentSuspense, slotScopeIds, optimized);
  15296. vnode.targetAnchor = targetNode;
  15297. }
  15298. else {
  15299. vnode.anchor = nextSibling(node);
  15300. vnode.targetAnchor = hydrateChildren(targetNode, vnode, target, parentComponent, parentSuspense, slotScopeIds, optimized);
  15301. }
  15302. target._lpa =
  15303. vnode.targetAnchor && nextSibling(vnode.targetAnchor);
  15304. }
  15305. }
  15306. return vnode.anchor && nextSibling(vnode.anchor);
  15307. }
  15308. // Force-casted public typing for h and TSX props inference
  15309. const Teleport = TeleportImpl;
  15310. const COMPONENTS = 'components';
  15311. const DIRECTIVES = 'directives';
  15312. /**
  15313. * @private
  15314. */
  15315. function resolveComponent(name, maybeSelfReference) {
  15316. return resolveAsset(COMPONENTS, name, true, maybeSelfReference) || name;
  15317. }
  15318. const NULL_DYNAMIC_COMPONENT = Symbol();
  15319. /**
  15320. * @private
  15321. */
  15322. function resolveDynamicComponent(component) {
  15323. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(component)) {
  15324. return resolveAsset(COMPONENTS, component, false) || component;
  15325. }
  15326. else {
  15327. // invalid types will fallthrough to createVNode and raise warning
  15328. return (component || NULL_DYNAMIC_COMPONENT);
  15329. }
  15330. }
  15331. /**
  15332. * @private
  15333. */
  15334. function resolveDirective(name) {
  15335. return resolveAsset(DIRECTIVES, name);
  15336. }
  15337. // implementation
  15338. function resolveAsset(type, name, warnMissing = true, maybeSelfReference = false) {
  15339. const instance = currentRenderingInstance || currentInstance;
  15340. if (instance) {
  15341. const Component = instance.type;
  15342. // explicit self name has highest priority
  15343. if (type === COMPONENTS) {
  15344. const selfName = getComponentName(Component);
  15345. if (selfName &&
  15346. (selfName === name ||
  15347. selfName === (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.camelize)(name) ||
  15348. selfName === (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.capitalize)((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.camelize)(name)))) {
  15349. return Component;
  15350. }
  15351. }
  15352. const res =
  15353. // local registration
  15354. // check instance[type] first which is resolved for options API
  15355. resolve(instance[type] || Component[type], name) ||
  15356. // global registration
  15357. resolve(instance.appContext[type], name);
  15358. if (!res && maybeSelfReference) {
  15359. // fallback to implicit self-reference
  15360. return Component;
  15361. }
  15362. if (( true) && warnMissing && !res) {
  15363. const extra = type === COMPONENTS
  15364. ? `\nIf this is a native custom element, make sure to exclude it from ` +
  15365. `component resolution via compilerOptions.isCustomElement.`
  15366. : ``;
  15367. warn(`Failed to resolve ${type.slice(0, -1)}: ${name}${extra}`);
  15368. }
  15369. return res;
  15370. }
  15371. else if ((true)) {
  15372. warn(`resolve${(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.capitalize)(type.slice(0, -1))} ` +
  15373. `can only be used in render() or setup().`);
  15374. }
  15375. }
  15376. function resolve(registry, name) {
  15377. return (registry &&
  15378. (registry[name] ||
  15379. registry[(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.camelize)(name)] ||
  15380. registry[(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.capitalize)((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.camelize)(name))]));
  15381. }
  15382. const Fragment = Symbol(( true) ? 'Fragment' : 0);
  15383. const Text = Symbol(( true) ? 'Text' : 0);
  15384. const Comment = Symbol(( true) ? 'Comment' : 0);
  15385. const Static = Symbol(( true) ? 'Static' : 0);
  15386. // Since v-if and v-for are the two possible ways node structure can dynamically
  15387. // change, once we consider v-if branches and each v-for fragment a block, we
  15388. // can divide a template into nested blocks, and within each block the node
  15389. // structure would be stable. This allows us to skip most children diffing
  15390. // and only worry about the dynamic nodes (indicated by patch flags).
  15391. const blockStack = [];
  15392. let currentBlock = null;
  15393. /**
  15394. * Open a block.
  15395. * This must be called before `createBlock`. It cannot be part of `createBlock`
  15396. * because the children of the block are evaluated before `createBlock` itself
  15397. * is called. The generated code typically looks like this:
  15398. *
  15399. * ```js
  15400. * function render() {
  15401. * return (openBlock(),createBlock('div', null, [...]))
  15402. * }
  15403. * ```
  15404. * disableTracking is true when creating a v-for fragment block, since a v-for
  15405. * fragment always diffs its children.
  15406. *
  15407. * @private
  15408. */
  15409. function openBlock(disableTracking = false) {
  15410. blockStack.push((currentBlock = disableTracking ? null : []));
  15411. }
  15412. function closeBlock() {
  15413. blockStack.pop();
  15414. currentBlock = blockStack[blockStack.length - 1] || null;
  15415. }
  15416. // Whether we should be tracking dynamic child nodes inside a block.
  15417. // Only tracks when this value is > 0
  15418. // We are not using a simple boolean because this value may need to be
  15419. // incremented/decremented by nested usage of v-once (see below)
  15420. let isBlockTreeEnabled = 1;
  15421. /**
  15422. * Block tracking sometimes needs to be disabled, for example during the
  15423. * creation of a tree that needs to be cached by v-once. The compiler generates
  15424. * code like this:
  15425. *
  15426. * ``` js
  15427. * _cache[1] || (
  15428. * setBlockTracking(-1),
  15429. * _cache[1] = createVNode(...),
  15430. * setBlockTracking(1),
  15431. * _cache[1]
  15432. * )
  15433. * ```
  15434. *
  15435. * @private
  15436. */
  15437. function setBlockTracking(value) {
  15438. isBlockTreeEnabled += value;
  15439. }
  15440. function setupBlock(vnode) {
  15441. // save current block children on the block vnode
  15442. vnode.dynamicChildren =
  15443. isBlockTreeEnabled > 0 ? currentBlock || _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_ARR : null;
  15444. // close block
  15445. closeBlock();
  15446. // a block is always going to be patched, so track it as a child of its
  15447. // parent block
  15448. if (isBlockTreeEnabled > 0 && currentBlock) {
  15449. currentBlock.push(vnode);
  15450. }
  15451. return vnode;
  15452. }
  15453. /**
  15454. * @private
  15455. */
  15456. function createElementBlock(type, props, children, patchFlag, dynamicProps, shapeFlag) {
  15457. return setupBlock(createBaseVNode(type, props, children, patchFlag, dynamicProps, shapeFlag, true /* isBlock */));
  15458. }
  15459. /**
  15460. * Create a block root vnode. Takes the same exact arguments as `createVNode`.
  15461. * A block root keeps track of dynamic nodes within the block in the
  15462. * `dynamicChildren` array.
  15463. *
  15464. * @private
  15465. */
  15466. function createBlock(type, props, children, patchFlag, dynamicProps) {
  15467. return setupBlock(createVNode(type, props, children, patchFlag, dynamicProps, true /* isBlock: prevent a block from tracking itself */));
  15468. }
  15469. function isVNode(value) {
  15470. return value ? value.__v_isVNode === true : false;
  15471. }
  15472. function isSameVNodeType(n1, n2) {
  15473. if (( true) &&
  15474. n2.shapeFlag & 6 /* COMPONENT */ &&
  15475. hmrDirtyComponents.has(n2.type)) {
  15476. // HMR only: if the component has been hot-updated, force a reload.
  15477. return false;
  15478. }
  15479. return n1.type === n2.type && n1.key === n2.key;
  15480. }
  15481. let vnodeArgsTransformer;
  15482. /**
  15483. * Internal API for registering an arguments transform for createVNode
  15484. * used for creating stubs in the test-utils
  15485. * It is *internal* but needs to be exposed for test-utils to pick up proper
  15486. * typings
  15487. */
  15488. function transformVNodeArgs(transformer) {
  15489. vnodeArgsTransformer = transformer;
  15490. }
  15491. const createVNodeWithArgsTransform = (...args) => {
  15492. return _createVNode(...(vnodeArgsTransformer
  15493. ? vnodeArgsTransformer(args, currentRenderingInstance)
  15494. : args));
  15495. };
  15496. const InternalObjectKey = `__vInternal`;
  15497. const normalizeKey = ({ key }) => key != null ? key : null;
  15498. const normalizeRef = ({ ref, ref_key, ref_for }) => {
  15499. return (ref != null
  15500. ? (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(ref) || (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isRef)(ref) || (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(ref)
  15501. ? { i: currentRenderingInstance, r: ref, k: ref_key, f: !!ref_for }
  15502. : ref
  15503. : null);
  15504. };
  15505. function createBaseVNode(type, props = null, children = null, patchFlag = 0, dynamicProps = null, shapeFlag = type === Fragment ? 0 : 1 /* ELEMENT */, isBlockNode = false, needFullChildrenNormalization = false) {
  15506. const vnode = {
  15507. __v_isVNode: true,
  15508. __v_skip: true,
  15509. type,
  15510. props,
  15511. key: props && normalizeKey(props),
  15512. ref: props && normalizeRef(props),
  15513. scopeId: currentScopeId,
  15514. slotScopeIds: null,
  15515. children,
  15516. component: null,
  15517. suspense: null,
  15518. ssContent: null,
  15519. ssFallback: null,
  15520. dirs: null,
  15521. transition: null,
  15522. el: null,
  15523. anchor: null,
  15524. target: null,
  15525. targetAnchor: null,
  15526. staticCount: 0,
  15527. shapeFlag,
  15528. patchFlag,
  15529. dynamicProps,
  15530. dynamicChildren: null,
  15531. appContext: null
  15532. };
  15533. if (needFullChildrenNormalization) {
  15534. normalizeChildren(vnode, children);
  15535. // normalize suspense children
  15536. if (shapeFlag & 128 /* SUSPENSE */) {
  15537. type.normalize(vnode);
  15538. }
  15539. }
  15540. else if (children) {
  15541. // compiled element vnode - if children is passed, only possible types are
  15542. // string or Array.
  15543. vnode.shapeFlag |= (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(children)
  15544. ? 8 /* TEXT_CHILDREN */
  15545. : 16 /* ARRAY_CHILDREN */;
  15546. }
  15547. // validate key
  15548. if (( true) && vnode.key !== vnode.key) {
  15549. warn(`VNode created with invalid key (NaN). VNode type:`, vnode.type);
  15550. }
  15551. // track vnode for block tree
  15552. if (isBlockTreeEnabled > 0 &&
  15553. // avoid a block node from tracking itself
  15554. !isBlockNode &&
  15555. // has current parent block
  15556. currentBlock &&
  15557. // presence of a patch flag indicates this node needs patching on updates.
  15558. // component nodes also should always be patched, because even if the
  15559. // component doesn't need to update, it needs to persist the instance on to
  15560. // the next vnode so that it can be properly unmounted later.
  15561. (vnode.patchFlag > 0 || shapeFlag & 6 /* COMPONENT */) &&
  15562. // the EVENTS flag is only for hydration and if it is the only flag, the
  15563. // vnode should not be considered dynamic due to handler caching.
  15564. vnode.patchFlag !== 32 /* HYDRATE_EVENTS */) {
  15565. currentBlock.push(vnode);
  15566. }
  15567. return vnode;
  15568. }
  15569. const createVNode = (( true) ? createVNodeWithArgsTransform : 0);
  15570. function _createVNode(type, props = null, children = null, patchFlag = 0, dynamicProps = null, isBlockNode = false) {
  15571. if (!type || type === NULL_DYNAMIC_COMPONENT) {
  15572. if (( true) && !type) {
  15573. warn(`Invalid vnode type when creating vnode: ${type}.`);
  15574. }
  15575. type = Comment;
  15576. }
  15577. if (isVNode(type)) {
  15578. // createVNode receiving an existing vnode. This happens in cases like
  15579. // <component :is="vnode"/>
  15580. // #2078 make sure to merge refs during the clone instead of overwriting it
  15581. const cloned = cloneVNode(type, props, true /* mergeRef: true */);
  15582. if (children) {
  15583. normalizeChildren(cloned, children);
  15584. }
  15585. return cloned;
  15586. }
  15587. // class component normalization.
  15588. if (isClassComponent(type)) {
  15589. type = type.__vccOpts;
  15590. }
  15591. // class & style normalization.
  15592. if (props) {
  15593. // for reactive or proxy objects, we need to clone it to enable mutation.
  15594. props = guardReactiveProps(props);
  15595. let { class: klass, style } = props;
  15596. if (klass && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(klass)) {
  15597. props.class = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.normalizeClass)(klass);
  15598. }
  15599. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isObject)(style)) {
  15600. // reactive state objects need to be cloned since they are likely to be
  15601. // mutated
  15602. if ((0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isProxy)(style) && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(style)) {
  15603. style = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)({}, style);
  15604. }
  15605. props.style = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.normalizeStyle)(style);
  15606. }
  15607. }
  15608. // encode the vnode type information into a bitmap
  15609. const shapeFlag = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(type)
  15610. ? 1 /* ELEMENT */
  15611. : isSuspense(type)
  15612. ? 128 /* SUSPENSE */
  15613. : isTeleport(type)
  15614. ? 64 /* TELEPORT */
  15615. : (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isObject)(type)
  15616. ? 4 /* STATEFUL_COMPONENT */
  15617. : (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(type)
  15618. ? 2 /* FUNCTIONAL_COMPONENT */
  15619. : 0;
  15620. if (( true) && shapeFlag & 4 /* STATEFUL_COMPONENT */ && (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isProxy)(type)) {
  15621. type = (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.toRaw)(type);
  15622. warn(`Vue received a Component which was made a reactive object. This can ` +
  15623. `lead to unnecessary performance overhead, and should be avoided by ` +
  15624. `marking the component with \`markRaw\` or using \`shallowRef\` ` +
  15625. `instead of \`ref\`.`, `\nComponent that was made reactive: `, type);
  15626. }
  15627. return createBaseVNode(type, props, children, patchFlag, dynamicProps, shapeFlag, isBlockNode, true);
  15628. }
  15629. function guardReactiveProps(props) {
  15630. if (!props)
  15631. return null;
  15632. return (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isProxy)(props) || InternalObjectKey in props
  15633. ? (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)({}, props)
  15634. : props;
  15635. }
  15636. function cloneVNode(vnode, extraProps, mergeRef = false) {
  15637. // This is intentionally NOT using spread or extend to avoid the runtime
  15638. // key enumeration cost.
  15639. const { props, ref, patchFlag, children } = vnode;
  15640. const mergedProps = extraProps ? mergeProps(props || {}, extraProps) : props;
  15641. const cloned = {
  15642. __v_isVNode: true,
  15643. __v_skip: true,
  15644. type: vnode.type,
  15645. props: mergedProps,
  15646. key: mergedProps && normalizeKey(mergedProps),
  15647. ref: extraProps && extraProps.ref
  15648. ? // #2078 in the case of <component :is="vnode" ref="extra"/>
  15649. // if the vnode itself already has a ref, cloneVNode will need to merge
  15650. // the refs so the single vnode can be set on multiple refs
  15651. mergeRef && ref
  15652. ? (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(ref)
  15653. ? ref.concat(normalizeRef(extraProps))
  15654. : [ref, normalizeRef(extraProps)]
  15655. : normalizeRef(extraProps)
  15656. : ref,
  15657. scopeId: vnode.scopeId,
  15658. slotScopeIds: vnode.slotScopeIds,
  15659. children: ( true) && patchFlag === -1 /* HOISTED */ && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(children)
  15660. ? children.map(deepCloneVNode)
  15661. : children,
  15662. target: vnode.target,
  15663. targetAnchor: vnode.targetAnchor,
  15664. staticCount: vnode.staticCount,
  15665. shapeFlag: vnode.shapeFlag,
  15666. // if the vnode is cloned with extra props, we can no longer assume its
  15667. // existing patch flag to be reliable and need to add the FULL_PROPS flag.
  15668. // note: preserve flag for fragments since they use the flag for children
  15669. // fast paths only.
  15670. patchFlag: extraProps && vnode.type !== Fragment
  15671. ? patchFlag === -1 // hoisted node
  15672. ? 16 /* FULL_PROPS */
  15673. : patchFlag | 16 /* FULL_PROPS */
  15674. : patchFlag,
  15675. dynamicProps: vnode.dynamicProps,
  15676. dynamicChildren: vnode.dynamicChildren,
  15677. appContext: vnode.appContext,
  15678. dirs: vnode.dirs,
  15679. transition: vnode.transition,
  15680. // These should technically only be non-null on mounted VNodes. However,
  15681. // they *should* be copied for kept-alive vnodes. So we just always copy
  15682. // them since them being non-null during a mount doesn't affect the logic as
  15683. // they will simply be overwritten.
  15684. component: vnode.component,
  15685. suspense: vnode.suspense,
  15686. ssContent: vnode.ssContent && cloneVNode(vnode.ssContent),
  15687. ssFallback: vnode.ssFallback && cloneVNode(vnode.ssFallback),
  15688. el: vnode.el,
  15689. anchor: vnode.anchor
  15690. };
  15691. return cloned;
  15692. }
  15693. /**
  15694. * Dev only, for HMR of hoisted vnodes reused in v-for
  15695. * https://github.com/vitejs/vite/issues/2022
  15696. */
  15697. function deepCloneVNode(vnode) {
  15698. const cloned = cloneVNode(vnode);
  15699. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(vnode.children)) {
  15700. cloned.children = vnode.children.map(deepCloneVNode);
  15701. }
  15702. return cloned;
  15703. }
  15704. /**
  15705. * @private
  15706. */
  15707. function createTextVNode(text = ' ', flag = 0) {
  15708. return createVNode(Text, null, text, flag);
  15709. }
  15710. /**
  15711. * @private
  15712. */
  15713. function createStaticVNode(content, numberOfNodes) {
  15714. // A static vnode can contain multiple stringified elements, and the number
  15715. // of elements is necessary for hydration.
  15716. const vnode = createVNode(Static, null, content);
  15717. vnode.staticCount = numberOfNodes;
  15718. return vnode;
  15719. }
  15720. /**
  15721. * @private
  15722. */
  15723. function createCommentVNode(text = '',
  15724. // when used as the v-else branch, the comment node must be created as a
  15725. // block to ensure correct updates.
  15726. asBlock = false) {
  15727. return asBlock
  15728. ? (openBlock(), createBlock(Comment, null, text))
  15729. : createVNode(Comment, null, text);
  15730. }
  15731. function normalizeVNode(child) {
  15732. if (child == null || typeof child === 'boolean') {
  15733. // empty placeholder
  15734. return createVNode(Comment);
  15735. }
  15736. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(child)) {
  15737. // fragment
  15738. return createVNode(Fragment, null,
  15739. // #3666, avoid reference pollution when reusing vnode
  15740. child.slice());
  15741. }
  15742. else if (typeof child === 'object') {
  15743. // already vnode, this should be the most common since compiled templates
  15744. // always produce all-vnode children arrays
  15745. return cloneIfMounted(child);
  15746. }
  15747. else {
  15748. // strings and numbers
  15749. return createVNode(Text, null, String(child));
  15750. }
  15751. }
  15752. // optimized normalization for template-compiled render fns
  15753. function cloneIfMounted(child) {
  15754. return child.el === null || child.memo ? child : cloneVNode(child);
  15755. }
  15756. function normalizeChildren(vnode, children) {
  15757. let type = 0;
  15758. const { shapeFlag } = vnode;
  15759. if (children == null) {
  15760. children = null;
  15761. }
  15762. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(children)) {
  15763. type = 16 /* ARRAY_CHILDREN */;
  15764. }
  15765. else if (typeof children === 'object') {
  15766. if (shapeFlag & (1 /* ELEMENT */ | 64 /* TELEPORT */)) {
  15767. // Normalize slot to plain children for plain element and Teleport
  15768. const slot = children.default;
  15769. if (slot) {
  15770. // _c marker is added by withCtx() indicating this is a compiled slot
  15771. slot._c && (slot._d = false);
  15772. normalizeChildren(vnode, slot());
  15773. slot._c && (slot._d = true);
  15774. }
  15775. return;
  15776. }
  15777. else {
  15778. type = 32 /* SLOTS_CHILDREN */;
  15779. const slotFlag = children._;
  15780. if (!slotFlag && !(InternalObjectKey in children)) {
  15781. children._ctx = currentRenderingInstance;
  15782. }
  15783. else if (slotFlag === 3 /* FORWARDED */ && currentRenderingInstance) {
  15784. // a child component receives forwarded slots from the parent.
  15785. // its slot type is determined by its parent's slot type.
  15786. if (currentRenderingInstance.slots._ === 1 /* STABLE */) {
  15787. children._ = 1 /* STABLE */;
  15788. }
  15789. else {
  15790. children._ = 2 /* DYNAMIC */;
  15791. vnode.patchFlag |= 1024 /* DYNAMIC_SLOTS */;
  15792. }
  15793. }
  15794. }
  15795. }
  15796. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(children)) {
  15797. children = { default: children, _ctx: currentRenderingInstance };
  15798. type = 32 /* SLOTS_CHILDREN */;
  15799. }
  15800. else {
  15801. children = String(children);
  15802. // force teleport children to array so it can be moved around
  15803. if (shapeFlag & 64 /* TELEPORT */) {
  15804. type = 16 /* ARRAY_CHILDREN */;
  15805. children = [createTextVNode(children)];
  15806. }
  15807. else {
  15808. type = 8 /* TEXT_CHILDREN */;
  15809. }
  15810. }
  15811. vnode.children = children;
  15812. vnode.shapeFlag |= type;
  15813. }
  15814. function mergeProps(...args) {
  15815. const ret = {};
  15816. for (let i = 0; i < args.length; i++) {
  15817. const toMerge = args[i];
  15818. for (const key in toMerge) {
  15819. if (key === 'class') {
  15820. if (ret.class !== toMerge.class) {
  15821. ret.class = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.normalizeClass)([ret.class, toMerge.class]);
  15822. }
  15823. }
  15824. else if (key === 'style') {
  15825. ret.style = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.normalizeStyle)([ret.style, toMerge.style]);
  15826. }
  15827. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isOn)(key)) {
  15828. const existing = ret[key];
  15829. const incoming = toMerge[key];
  15830. if (incoming &&
  15831. existing !== incoming &&
  15832. !((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(existing) && existing.includes(incoming))) {
  15833. ret[key] = existing
  15834. ? [].concat(existing, incoming)
  15835. : incoming;
  15836. }
  15837. }
  15838. else if (key !== '') {
  15839. ret[key] = toMerge[key];
  15840. }
  15841. }
  15842. }
  15843. return ret;
  15844. }
  15845. function invokeVNodeHook(hook, instance, vnode, prevVNode = null) {
  15846. callWithAsyncErrorHandling(hook, instance, 7 /* VNODE_HOOK */, [
  15847. vnode,
  15848. prevVNode
  15849. ]);
  15850. }
  15851. /**
  15852. * Actual implementation
  15853. */
  15854. function renderList(source, renderItem, cache, index) {
  15855. let ret;
  15856. const cached = (cache && cache[index]);
  15857. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(source) || (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(source)) {
  15858. ret = new Array(source.length);
  15859. for (let i = 0, l = source.length; i < l; i++) {
  15860. ret[i] = renderItem(source[i], i, undefined, cached && cached[i]);
  15861. }
  15862. }
  15863. else if (typeof source === 'number') {
  15864. if (( true) && !Number.isInteger(source)) {
  15865. warn(`The v-for range expect an integer value but got ${source}.`);
  15866. return [];
  15867. }
  15868. ret = new Array(source);
  15869. for (let i = 0; i < source; i++) {
  15870. ret[i] = renderItem(i + 1, i, undefined, cached && cached[i]);
  15871. }
  15872. }
  15873. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isObject)(source)) {
  15874. if (source[Symbol.iterator]) {
  15875. ret = Array.from(source, (item, i) => renderItem(item, i, undefined, cached && cached[i]));
  15876. }
  15877. else {
  15878. const keys = Object.keys(source);
  15879. ret = new Array(keys.length);
  15880. for (let i = 0, l = keys.length; i < l; i++) {
  15881. const key = keys[i];
  15882. ret[i] = renderItem(source[key], key, i, cached && cached[i]);
  15883. }
  15884. }
  15885. }
  15886. else {
  15887. ret = [];
  15888. }
  15889. if (cache) {
  15890. cache[index] = ret;
  15891. }
  15892. return ret;
  15893. }
  15894. /**
  15895. * Compiler runtime helper for creating dynamic slots object
  15896. * @private
  15897. */
  15898. function createSlots(slots, dynamicSlots) {
  15899. for (let i = 0; i < dynamicSlots.length; i++) {
  15900. const slot = dynamicSlots[i];
  15901. // array of dynamic slot generated by <template v-for="..." #[...]>
  15902. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(slot)) {
  15903. for (let j = 0; j < slot.length; j++) {
  15904. slots[slot[j].name] = slot[j].fn;
  15905. }
  15906. }
  15907. else if (slot) {
  15908. // conditional single slot generated by <template v-if="..." #foo>
  15909. slots[slot.name] = slot.fn;
  15910. }
  15911. }
  15912. return slots;
  15913. }
  15914. /**
  15915. * Compiler runtime helper for rendering `<slot/>`
  15916. * @private
  15917. */
  15918. function renderSlot(slots, name, props = {},
  15919. // this is not a user-facing function, so the fallback is always generated by
  15920. // the compiler and guaranteed to be a function returning an array
  15921. fallback, noSlotted) {
  15922. if (currentRenderingInstance.isCE) {
  15923. return createVNode('slot', name === 'default' ? null : { name }, fallback && fallback());
  15924. }
  15925. let slot = slots[name];
  15926. if (( true) && slot && slot.length > 1) {
  15927. warn(`SSR-optimized slot function detected in a non-SSR-optimized render ` +
  15928. `function. You need to mark this component with $dynamic-slots in the ` +
  15929. `parent template.`);
  15930. slot = () => [];
  15931. }
  15932. // a compiled slot disables block tracking by default to avoid manual
  15933. // invocation interfering with template-based block tracking, but in
  15934. // `renderSlot` we can be sure that it's template-based so we can force
  15935. // enable it.
  15936. if (slot && slot._c) {
  15937. slot._d = false;
  15938. }
  15939. openBlock();
  15940. const validSlotContent = slot && ensureValidVNode(slot(props));
  15941. const rendered = createBlock(Fragment, { key: props.key || `_${name}` }, validSlotContent || (fallback ? fallback() : []), validSlotContent && slots._ === 1 /* STABLE */
  15942. ? 64 /* STABLE_FRAGMENT */
  15943. : -2 /* BAIL */);
  15944. if (!noSlotted && rendered.scopeId) {
  15945. rendered.slotScopeIds = [rendered.scopeId + '-s'];
  15946. }
  15947. if (slot && slot._c) {
  15948. slot._d = true;
  15949. }
  15950. return rendered;
  15951. }
  15952. function ensureValidVNode(vnodes) {
  15953. return vnodes.some(child => {
  15954. if (!isVNode(child))
  15955. return true;
  15956. if (child.type === Comment)
  15957. return false;
  15958. if (child.type === Fragment &&
  15959. !ensureValidVNode(child.children))
  15960. return false;
  15961. return true;
  15962. })
  15963. ? vnodes
  15964. : null;
  15965. }
  15966. /**
  15967. * For prefixing keys in v-on="obj" with "on"
  15968. * @private
  15969. */
  15970. function toHandlers(obj) {
  15971. const ret = {};
  15972. if (( true) && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isObject)(obj)) {
  15973. warn(`v-on with no argument expects an object value.`);
  15974. return ret;
  15975. }
  15976. for (const key in obj) {
  15977. ret[(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.toHandlerKey)(key)] = obj[key];
  15978. }
  15979. return ret;
  15980. }
  15981. /**
  15982. * #2437 In Vue 3, functional components do not have a public instance proxy but
  15983. * they exist in the internal parent chain. For code that relies on traversing
  15984. * public $parent chains, skip functional ones and go to the parent instead.
  15985. */
  15986. const getPublicInstance = (i) => {
  15987. if (!i)
  15988. return null;
  15989. if (isStatefulComponent(i))
  15990. return getExposeProxy(i) || i.proxy;
  15991. return getPublicInstance(i.parent);
  15992. };
  15993. const publicPropertiesMap = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)(Object.create(null), {
  15994. $: i => i,
  15995. $el: i => i.vnode.el,
  15996. $data: i => i.data,
  15997. $props: i => (( true) ? (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.shallowReadonly)(i.props) : 0),
  15998. $attrs: i => (( true) ? (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.shallowReadonly)(i.attrs) : 0),
  15999. $slots: i => (( true) ? (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.shallowReadonly)(i.slots) : 0),
  16000. $refs: i => (( true) ? (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.shallowReadonly)(i.refs) : 0),
  16001. $parent: i => getPublicInstance(i.parent),
  16002. $root: i => getPublicInstance(i.root),
  16003. $emit: i => i.emit,
  16004. $options: i => ( true ? resolveMergedOptions(i) : 0),
  16005. $forceUpdate: i => () => queueJob(i.update),
  16006. $nextTick: i => nextTick.bind(i.proxy),
  16007. $watch: i => ( true ? instanceWatch.bind(i) : 0)
  16008. });
  16009. const PublicInstanceProxyHandlers = {
  16010. get({ _: instance }, key) {
  16011. const { ctx, setupState, data, props, accessCache, type, appContext } = instance;
  16012. // for internal formatters to know that this is a Vue instance
  16013. if (( true) && key === '__isVue') {
  16014. return true;
  16015. }
  16016. // prioritize <script setup> bindings during dev.
  16017. // this allows even properties that start with _ or $ to be used - so that
  16018. // it aligns with the production behavior where the render fn is inlined and
  16019. // indeed has access to all declared variables.
  16020. if (( true) &&
  16021. setupState !== _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ &&
  16022. setupState.__isScriptSetup &&
  16023. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(setupState, key)) {
  16024. return setupState[key];
  16025. }
  16026. // data / props / ctx
  16027. // This getter gets called for every property access on the render context
  16028. // during render and is a major hotspot. The most expensive part of this
  16029. // is the multiple hasOwn() calls. It's much faster to do a simple property
  16030. // access on a plain object, so we use an accessCache object (with null
  16031. // prototype) to memoize what access type a key corresponds to.
  16032. let normalizedProps;
  16033. if (key[0] !== '$') {
  16034. const n = accessCache[key];
  16035. if (n !== undefined) {
  16036. switch (n) {
  16037. case 1 /* SETUP */:
  16038. return setupState[key];
  16039. case 2 /* DATA */:
  16040. return data[key];
  16041. case 4 /* CONTEXT */:
  16042. return ctx[key];
  16043. case 3 /* PROPS */:
  16044. return props[key];
  16045. // default: just fallthrough
  16046. }
  16047. }
  16048. else if (setupState !== _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(setupState, key)) {
  16049. accessCache[key] = 1 /* SETUP */;
  16050. return setupState[key];
  16051. }
  16052. else if (data !== _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(data, key)) {
  16053. accessCache[key] = 2 /* DATA */;
  16054. return data[key];
  16055. }
  16056. else if (
  16057. // only cache other properties when instance has declared (thus stable)
  16058. // props
  16059. (normalizedProps = instance.propsOptions[0]) &&
  16060. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(normalizedProps, key)) {
  16061. accessCache[key] = 3 /* PROPS */;
  16062. return props[key];
  16063. }
  16064. else if (ctx !== _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(ctx, key)) {
  16065. accessCache[key] = 4 /* CONTEXT */;
  16066. return ctx[key];
  16067. }
  16068. else if ( false || shouldCacheAccess) {
  16069. accessCache[key] = 0 /* OTHER */;
  16070. }
  16071. }
  16072. const publicGetter = publicPropertiesMap[key];
  16073. let cssModule, globalProperties;
  16074. // public $xxx properties
  16075. if (publicGetter) {
  16076. if (key === '$attrs') {
  16077. (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.track)(instance, "get" /* GET */, key);
  16078. ( true) && markAttrsAccessed();
  16079. }
  16080. return publicGetter(instance);
  16081. }
  16082. else if (
  16083. // css module (injected by vue-loader)
  16084. (cssModule = type.__cssModules) &&
  16085. (cssModule = cssModule[key])) {
  16086. return cssModule;
  16087. }
  16088. else if (ctx !== _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(ctx, key)) {
  16089. // user may set custom properties to `this` that start with `$`
  16090. accessCache[key] = 4 /* CONTEXT */;
  16091. return ctx[key];
  16092. }
  16093. else if (
  16094. // global properties
  16095. ((globalProperties = appContext.config.globalProperties),
  16096. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(globalProperties, key))) {
  16097. {
  16098. return globalProperties[key];
  16099. }
  16100. }
  16101. else if (( true) &&
  16102. currentRenderingInstance &&
  16103. (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(key) ||
  16104. // #1091 avoid internal isRef/isVNode checks on component instance leading
  16105. // to infinite warning loop
  16106. key.indexOf('__v') !== 0)) {
  16107. if (data !== _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ &&
  16108. (key[0] === '$' || key[0] === '_') &&
  16109. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(data, key)) {
  16110. warn(`Property ${JSON.stringify(key)} must be accessed via $data because it starts with a reserved ` +
  16111. `character ("$" or "_") and is not proxied on the render context.`);
  16112. }
  16113. else if (instance === currentRenderingInstance) {
  16114. warn(`Property ${JSON.stringify(key)} was accessed during render ` +
  16115. `but is not defined on instance.`);
  16116. }
  16117. }
  16118. },
  16119. set({ _: instance }, key, value) {
  16120. const { data, setupState, ctx } = instance;
  16121. if (setupState !== _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(setupState, key)) {
  16122. setupState[key] = value;
  16123. return true;
  16124. }
  16125. else if (data !== _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(data, key)) {
  16126. data[key] = value;
  16127. return true;
  16128. }
  16129. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(instance.props, key)) {
  16130. ( true) &&
  16131. warn(`Attempting to mutate prop "${key}". Props are readonly.`, instance);
  16132. return false;
  16133. }
  16134. if (key[0] === '$' && key.slice(1) in instance) {
  16135. ( true) &&
  16136. warn(`Attempting to mutate public property "${key}". ` +
  16137. `Properties starting with $ are reserved and readonly.`, instance);
  16138. return false;
  16139. }
  16140. else {
  16141. if (( true) && key in instance.appContext.config.globalProperties) {
  16142. Object.defineProperty(ctx, key, {
  16143. enumerable: true,
  16144. configurable: true,
  16145. value
  16146. });
  16147. }
  16148. else {
  16149. ctx[key] = value;
  16150. }
  16151. }
  16152. return true;
  16153. },
  16154. has({ _: { data, setupState, accessCache, ctx, appContext, propsOptions } }, key) {
  16155. let normalizedProps;
  16156. return (!!accessCache[key] ||
  16157. (data !== _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(data, key)) ||
  16158. (setupState !== _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(setupState, key)) ||
  16159. ((normalizedProps = propsOptions[0]) && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(normalizedProps, key)) ||
  16160. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(ctx, key) ||
  16161. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(publicPropertiesMap, key) ||
  16162. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(appContext.config.globalProperties, key));
  16163. },
  16164. defineProperty(target, key, descriptor) {
  16165. if (descriptor.get != null) {
  16166. // invalidate key cache of a getter based property #5417
  16167. target.$.accessCache[key] = 0;
  16168. }
  16169. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hasOwn)(descriptor, 'value')) {
  16170. this.set(target, key, descriptor.value, null);
  16171. }
  16172. return Reflect.defineProperty(target, key, descriptor);
  16173. }
  16174. };
  16175. if (true) {
  16176. PublicInstanceProxyHandlers.ownKeys = (target) => {
  16177. warn(`Avoid app logic that relies on enumerating keys on a component instance. ` +
  16178. `The keys will be empty in production mode to avoid performance overhead.`);
  16179. return Reflect.ownKeys(target);
  16180. };
  16181. }
  16182. const RuntimeCompiledPublicInstanceProxyHandlers = /*#__PURE__*/ (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)({}, PublicInstanceProxyHandlers, {
  16183. get(target, key) {
  16184. // fast path for unscopables when using `with` block
  16185. if (key === Symbol.unscopables) {
  16186. return;
  16187. }
  16188. return PublicInstanceProxyHandlers.get(target, key, target);
  16189. },
  16190. has(_, key) {
  16191. const has = key[0] !== '_' && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isGloballyWhitelisted)(key);
  16192. if (( true) && !has && PublicInstanceProxyHandlers.has(_, key)) {
  16193. warn(`Property ${JSON.stringify(key)} should not start with _ which is a reserved prefix for Vue internals.`);
  16194. }
  16195. return has;
  16196. }
  16197. });
  16198. // dev only
  16199. // In dev mode, the proxy target exposes the same properties as seen on `this`
  16200. // for easier console inspection. In prod mode it will be an empty object so
  16201. // these properties definitions can be skipped.
  16202. function createDevRenderContext(instance) {
  16203. const target = {};
  16204. // expose internal instance for proxy handlers
  16205. Object.defineProperty(target, `_`, {
  16206. configurable: true,
  16207. enumerable: false,
  16208. get: () => instance
  16209. });
  16210. // expose public properties
  16211. Object.keys(publicPropertiesMap).forEach(key => {
  16212. Object.defineProperty(target, key, {
  16213. configurable: true,
  16214. enumerable: false,
  16215. get: () => publicPropertiesMap[key](instance),
  16216. // intercepted by the proxy so no need for implementation,
  16217. // but needed to prevent set errors
  16218. set: _vue_shared__WEBPACK_IMPORTED_MODULE_1__.NOOP
  16219. });
  16220. });
  16221. return target;
  16222. }
  16223. // dev only
  16224. function exposePropsOnRenderContext(instance) {
  16225. const { ctx, propsOptions: [propsOptions] } = instance;
  16226. if (propsOptions) {
  16227. Object.keys(propsOptions).forEach(key => {
  16228. Object.defineProperty(ctx, key, {
  16229. enumerable: true,
  16230. configurable: true,
  16231. get: () => instance.props[key],
  16232. set: _vue_shared__WEBPACK_IMPORTED_MODULE_1__.NOOP
  16233. });
  16234. });
  16235. }
  16236. }
  16237. // dev only
  16238. function exposeSetupStateOnRenderContext(instance) {
  16239. const { ctx, setupState } = instance;
  16240. Object.keys((0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.toRaw)(setupState)).forEach(key => {
  16241. if (!setupState.__isScriptSetup) {
  16242. if (key[0] === '$' || key[0] === '_') {
  16243. warn(`setup() return property ${JSON.stringify(key)} should not start with "$" or "_" ` +
  16244. `which are reserved prefixes for Vue internals.`);
  16245. return;
  16246. }
  16247. Object.defineProperty(ctx, key, {
  16248. enumerable: true,
  16249. configurable: true,
  16250. get: () => setupState[key],
  16251. set: _vue_shared__WEBPACK_IMPORTED_MODULE_1__.NOOP
  16252. });
  16253. }
  16254. });
  16255. }
  16256. const emptyAppContext = createAppContext();
  16257. let uid$1 = 0;
  16258. function createComponentInstance(vnode, parent, suspense) {
  16259. const type = vnode.type;
  16260. // inherit parent app context - or - if root, adopt from root vnode
  16261. const appContext = (parent ? parent.appContext : vnode.appContext) || emptyAppContext;
  16262. const instance = {
  16263. uid: uid$1++,
  16264. vnode,
  16265. type,
  16266. parent,
  16267. appContext,
  16268. root: null,
  16269. next: null,
  16270. subTree: null,
  16271. effect: null,
  16272. update: null,
  16273. scope: new _vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.EffectScope(true /* detached */),
  16274. render: null,
  16275. proxy: null,
  16276. exposed: null,
  16277. exposeProxy: null,
  16278. withProxy: null,
  16279. provides: parent ? parent.provides : Object.create(appContext.provides),
  16280. accessCache: null,
  16281. renderCache: [],
  16282. // local resovled assets
  16283. components: null,
  16284. directives: null,
  16285. // resolved props and emits options
  16286. propsOptions: normalizePropsOptions(type, appContext),
  16287. emitsOptions: normalizeEmitsOptions(type, appContext),
  16288. // emit
  16289. emit: null,
  16290. emitted: null,
  16291. // props default value
  16292. propsDefaults: _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ,
  16293. // inheritAttrs
  16294. inheritAttrs: type.inheritAttrs,
  16295. // state
  16296. ctx: _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ,
  16297. data: _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ,
  16298. props: _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ,
  16299. attrs: _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ,
  16300. slots: _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ,
  16301. refs: _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ,
  16302. setupState: _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ,
  16303. setupContext: null,
  16304. // suspense related
  16305. suspense,
  16306. suspenseId: suspense ? suspense.pendingId : 0,
  16307. asyncDep: null,
  16308. asyncResolved: false,
  16309. // lifecycle hooks
  16310. // not using enums here because it results in computed properties
  16311. isMounted: false,
  16312. isUnmounted: false,
  16313. isDeactivated: false,
  16314. bc: null,
  16315. c: null,
  16316. bm: null,
  16317. m: null,
  16318. bu: null,
  16319. u: null,
  16320. um: null,
  16321. bum: null,
  16322. da: null,
  16323. a: null,
  16324. rtg: null,
  16325. rtc: null,
  16326. ec: null,
  16327. sp: null
  16328. };
  16329. if ((true)) {
  16330. instance.ctx = createDevRenderContext(instance);
  16331. }
  16332. else {}
  16333. instance.root = parent ? parent.root : instance;
  16334. instance.emit = emit$1.bind(null, instance);
  16335. // apply custom element special handling
  16336. if (vnode.ce) {
  16337. vnode.ce(instance);
  16338. }
  16339. return instance;
  16340. }
  16341. let currentInstance = null;
  16342. const getCurrentInstance = () => currentInstance || currentRenderingInstance;
  16343. const setCurrentInstance = (instance) => {
  16344. currentInstance = instance;
  16345. instance.scope.on();
  16346. };
  16347. const unsetCurrentInstance = () => {
  16348. currentInstance && currentInstance.scope.off();
  16349. currentInstance = null;
  16350. };
  16351. const isBuiltInTag = /*#__PURE__*/ (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.makeMap)('slot,component');
  16352. function validateComponentName(name, config) {
  16353. const appIsNativeTag = config.isNativeTag || _vue_shared__WEBPACK_IMPORTED_MODULE_1__.NO;
  16354. if (isBuiltInTag(name) || appIsNativeTag(name)) {
  16355. warn('Do not use built-in or reserved HTML elements as component id: ' + name);
  16356. }
  16357. }
  16358. function isStatefulComponent(instance) {
  16359. return instance.vnode.shapeFlag & 4 /* STATEFUL_COMPONENT */;
  16360. }
  16361. let isInSSRComponentSetup = false;
  16362. function setupComponent(instance, isSSR = false) {
  16363. isInSSRComponentSetup = isSSR;
  16364. const { props, children } = instance.vnode;
  16365. const isStateful = isStatefulComponent(instance);
  16366. initProps(instance, props, isStateful, isSSR);
  16367. initSlots(instance, children);
  16368. const setupResult = isStateful
  16369. ? setupStatefulComponent(instance, isSSR)
  16370. : undefined;
  16371. isInSSRComponentSetup = false;
  16372. return setupResult;
  16373. }
  16374. function setupStatefulComponent(instance, isSSR) {
  16375. const Component = instance.type;
  16376. if ((true)) {
  16377. if (Component.name) {
  16378. validateComponentName(Component.name, instance.appContext.config);
  16379. }
  16380. if (Component.components) {
  16381. const names = Object.keys(Component.components);
  16382. for (let i = 0; i < names.length; i++) {
  16383. validateComponentName(names[i], instance.appContext.config);
  16384. }
  16385. }
  16386. if (Component.directives) {
  16387. const names = Object.keys(Component.directives);
  16388. for (let i = 0; i < names.length; i++) {
  16389. validateDirectiveName(names[i]);
  16390. }
  16391. }
  16392. if (Component.compilerOptions && isRuntimeOnly()) {
  16393. warn(`"compilerOptions" is only supported when using a build of Vue that ` +
  16394. `includes the runtime compiler. Since you are using a runtime-only ` +
  16395. `build, the options should be passed via your build tool config instead.`);
  16396. }
  16397. }
  16398. // 0. create render proxy property access cache
  16399. instance.accessCache = Object.create(null);
  16400. // 1. create public instance / render proxy
  16401. // also mark it raw so it's never observed
  16402. instance.proxy = (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.markRaw)(new Proxy(instance.ctx, PublicInstanceProxyHandlers));
  16403. if ((true)) {
  16404. exposePropsOnRenderContext(instance);
  16405. }
  16406. // 2. call setup()
  16407. const { setup } = Component;
  16408. if (setup) {
  16409. const setupContext = (instance.setupContext =
  16410. setup.length > 1 ? createSetupContext(instance) : null);
  16411. setCurrentInstance(instance);
  16412. (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.pauseTracking)();
  16413. const setupResult = callWithErrorHandling(setup, instance, 0 /* SETUP_FUNCTION */, [( true) ? (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.shallowReadonly)(instance.props) : 0, setupContext]);
  16414. (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.resetTracking)();
  16415. unsetCurrentInstance();
  16416. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isPromise)(setupResult)) {
  16417. setupResult.then(unsetCurrentInstance, unsetCurrentInstance);
  16418. if (isSSR) {
  16419. // return the promise so server-renderer can wait on it
  16420. return setupResult
  16421. .then((resolvedResult) => {
  16422. handleSetupResult(instance, resolvedResult, isSSR);
  16423. })
  16424. .catch(e => {
  16425. handleError(e, instance, 0 /* SETUP_FUNCTION */);
  16426. });
  16427. }
  16428. else {
  16429. // async setup returned Promise.
  16430. // bail here and wait for re-entry.
  16431. instance.asyncDep = setupResult;
  16432. }
  16433. }
  16434. else {
  16435. handleSetupResult(instance, setupResult, isSSR);
  16436. }
  16437. }
  16438. else {
  16439. finishComponentSetup(instance, isSSR);
  16440. }
  16441. }
  16442. function handleSetupResult(instance, setupResult, isSSR) {
  16443. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(setupResult)) {
  16444. // setup returned an inline render function
  16445. if (instance.type.__ssrInlineRender) {
  16446. // when the function's name is `ssrRender` (compiled by SFC inline mode),
  16447. // set it as ssrRender instead.
  16448. instance.ssrRender = setupResult;
  16449. }
  16450. else {
  16451. instance.render = setupResult;
  16452. }
  16453. }
  16454. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isObject)(setupResult)) {
  16455. if (( true) && isVNode(setupResult)) {
  16456. warn(`setup() should not return VNodes directly - ` +
  16457. `return a render function instead.`);
  16458. }
  16459. // setup returned bindings.
  16460. // assuming a render function compiled from template is present.
  16461. if (true) {
  16462. instance.devtoolsRawSetupState = setupResult;
  16463. }
  16464. instance.setupState = (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.proxyRefs)(setupResult);
  16465. if ((true)) {
  16466. exposeSetupStateOnRenderContext(instance);
  16467. }
  16468. }
  16469. else if (( true) && setupResult !== undefined) {
  16470. warn(`setup() should return an object. Received: ${setupResult === null ? 'null' : typeof setupResult}`);
  16471. }
  16472. finishComponentSetup(instance, isSSR);
  16473. }
  16474. let compile;
  16475. let installWithProxy;
  16476. /**
  16477. * For runtime-dom to register the compiler.
  16478. * Note the exported method uses any to avoid d.ts relying on the compiler types.
  16479. */
  16480. function registerRuntimeCompiler(_compile) {
  16481. compile = _compile;
  16482. installWithProxy = i => {
  16483. if (i.render._rc) {
  16484. i.withProxy = new Proxy(i.ctx, RuntimeCompiledPublicInstanceProxyHandlers);
  16485. }
  16486. };
  16487. }
  16488. // dev only
  16489. const isRuntimeOnly = () => !compile;
  16490. function finishComponentSetup(instance, isSSR, skipOptions) {
  16491. const Component = instance.type;
  16492. // template / render function normalization
  16493. // could be already set when returned from setup()
  16494. if (!instance.render) {
  16495. // only do on-the-fly compile if not in SSR - SSR on-the-fly compilation
  16496. // is done by server-renderer
  16497. if (!isSSR && compile && !Component.render) {
  16498. const template = Component.template;
  16499. if (template) {
  16500. if ((true)) {
  16501. startMeasure(instance, `compile`);
  16502. }
  16503. const { isCustomElement, compilerOptions } = instance.appContext.config;
  16504. const { delimiters, compilerOptions: componentCompilerOptions } = Component;
  16505. const finalCompilerOptions = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)({
  16506. isCustomElement,
  16507. delimiters
  16508. }, compilerOptions), componentCompilerOptions);
  16509. Component.render = compile(template, finalCompilerOptions);
  16510. if ((true)) {
  16511. endMeasure(instance, `compile`);
  16512. }
  16513. }
  16514. }
  16515. instance.render = (Component.render || _vue_shared__WEBPACK_IMPORTED_MODULE_1__.NOOP);
  16516. // for runtime-compiled render functions using `with` blocks, the render
  16517. // proxy used needs a different `has` handler which is more performant and
  16518. // also only allows a whitelist of globals to fallthrough.
  16519. if (installWithProxy) {
  16520. installWithProxy(instance);
  16521. }
  16522. }
  16523. // support for 2.x options
  16524. if (true) {
  16525. setCurrentInstance(instance);
  16526. (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.pauseTracking)();
  16527. applyOptions(instance);
  16528. (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.resetTracking)();
  16529. unsetCurrentInstance();
  16530. }
  16531. // warn missing template/render
  16532. // the runtime compilation of template in SSR is done by server-render
  16533. if (( true) && !Component.render && instance.render === _vue_shared__WEBPACK_IMPORTED_MODULE_1__.NOOP && !isSSR) {
  16534. /* istanbul ignore if */
  16535. if (!compile && Component.template) {
  16536. warn(`Component provided template option but ` +
  16537. `runtime compilation is not supported in this build of Vue.` +
  16538. (` Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".`
  16539. ) /* should not happen */);
  16540. }
  16541. else {
  16542. warn(`Component is missing template or render function.`);
  16543. }
  16544. }
  16545. }
  16546. function createAttrsProxy(instance) {
  16547. return new Proxy(instance.attrs, ( true)
  16548. ? {
  16549. get(target, key) {
  16550. markAttrsAccessed();
  16551. (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.track)(instance, "get" /* GET */, '$attrs');
  16552. return target[key];
  16553. },
  16554. set() {
  16555. warn(`setupContext.attrs is readonly.`);
  16556. return false;
  16557. },
  16558. deleteProperty() {
  16559. warn(`setupContext.attrs is readonly.`);
  16560. return false;
  16561. }
  16562. }
  16563. : 0);
  16564. }
  16565. function createSetupContext(instance) {
  16566. const expose = exposed => {
  16567. if (( true) && instance.exposed) {
  16568. warn(`expose() should be called only once per setup().`);
  16569. }
  16570. instance.exposed = exposed || {};
  16571. };
  16572. let attrs;
  16573. if ((true)) {
  16574. // We use getters in dev in case libs like test-utils overwrite instance
  16575. // properties (overwrites should not be done in prod)
  16576. return Object.freeze({
  16577. get attrs() {
  16578. return attrs || (attrs = createAttrsProxy(instance));
  16579. },
  16580. get slots() {
  16581. return (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.shallowReadonly)(instance.slots);
  16582. },
  16583. get emit() {
  16584. return (event, ...args) => instance.emit(event, ...args);
  16585. },
  16586. expose
  16587. });
  16588. }
  16589. else {}
  16590. }
  16591. function getExposeProxy(instance) {
  16592. if (instance.exposed) {
  16593. return (instance.exposeProxy ||
  16594. (instance.exposeProxy = new Proxy((0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.proxyRefs)((0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.markRaw)(instance.exposed)), {
  16595. get(target, key) {
  16596. if (key in target) {
  16597. return target[key];
  16598. }
  16599. else if (key in publicPropertiesMap) {
  16600. return publicPropertiesMap[key](instance);
  16601. }
  16602. }
  16603. })));
  16604. }
  16605. }
  16606. const classifyRE = /(?:^|[-_])(\w)/g;
  16607. const classify = (str) => str.replace(classifyRE, c => c.toUpperCase()).replace(/[-_]/g, '');
  16608. function getComponentName(Component) {
  16609. return (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(Component)
  16610. ? Component.displayName || Component.name
  16611. : Component.name;
  16612. }
  16613. /* istanbul ignore next */
  16614. function formatComponentName(instance, Component, isRoot = false) {
  16615. let name = getComponentName(Component);
  16616. if (!name && Component.__file) {
  16617. const match = Component.__file.match(/([^/\\]+)\.\w+$/);
  16618. if (match) {
  16619. name = match[1];
  16620. }
  16621. }
  16622. if (!name && instance && instance.parent) {
  16623. // try to infer the name based on reverse resolution
  16624. const inferFromRegistry = (registry) => {
  16625. for (const key in registry) {
  16626. if (registry[key] === Component) {
  16627. return key;
  16628. }
  16629. }
  16630. };
  16631. name =
  16632. inferFromRegistry(instance.components ||
  16633. instance.parent.type.components) || inferFromRegistry(instance.appContext.components);
  16634. }
  16635. return name ? classify(name) : isRoot ? `App` : `Anonymous`;
  16636. }
  16637. function isClassComponent(value) {
  16638. return (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(value) && '__vccOpts' in value;
  16639. }
  16640. const computed = ((getterOrOptions, debugOptions) => {
  16641. // @ts-ignore
  16642. return (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.computed)(getterOrOptions, debugOptions, isInSSRComponentSetup);
  16643. });
  16644. // dev only
  16645. const warnRuntimeUsage = (method) => warn(`${method}() is a compiler-hint helper that is only usable inside ` +
  16646. `<script setup> of a single file component. Its arguments should be ` +
  16647. `compiled away and passing it at runtime has no effect.`);
  16648. // implementation
  16649. function defineProps() {
  16650. if ((true)) {
  16651. warnRuntimeUsage(`defineProps`);
  16652. }
  16653. return null;
  16654. }
  16655. // implementation
  16656. function defineEmits() {
  16657. if ((true)) {
  16658. warnRuntimeUsage(`defineEmits`);
  16659. }
  16660. return null;
  16661. }
  16662. /**
  16663. * Vue `<script setup>` compiler macro for declaring a component's exposed
  16664. * instance properties when it is accessed by a parent component via template
  16665. * refs.
  16666. *
  16667. * `<script setup>` components are closed by default - i.e. variables inside
  16668. * the `<script setup>` scope is not exposed to parent unless explicitly exposed
  16669. * via `defineExpose`.
  16670. *
  16671. * This is only usable inside `<script setup>`, is compiled away in the
  16672. * output and should **not** be actually called at runtime.
  16673. */
  16674. function defineExpose(exposed) {
  16675. if ((true)) {
  16676. warnRuntimeUsage(`defineExpose`);
  16677. }
  16678. }
  16679. /**
  16680. * Vue `<script setup>` compiler macro for providing props default values when
  16681. * using type-based `defineProps` declaration.
  16682. *
  16683. * Example usage:
  16684. * ```ts
  16685. * withDefaults(defineProps<{
  16686. * size?: number
  16687. * labels?: string[]
  16688. * }>(), {
  16689. * size: 3,
  16690. * labels: () => ['default label']
  16691. * })
  16692. * ```
  16693. *
  16694. * This is only usable inside `<script setup>`, is compiled away in the output
  16695. * and should **not** be actually called at runtime.
  16696. */
  16697. function withDefaults(props, defaults) {
  16698. if ((true)) {
  16699. warnRuntimeUsage(`withDefaults`);
  16700. }
  16701. return null;
  16702. }
  16703. function useSlots() {
  16704. return getContext().slots;
  16705. }
  16706. function useAttrs() {
  16707. return getContext().attrs;
  16708. }
  16709. function getContext() {
  16710. const i = getCurrentInstance();
  16711. if (( true) && !i) {
  16712. warn(`useContext() called without active instance.`);
  16713. }
  16714. return i.setupContext || (i.setupContext = createSetupContext(i));
  16715. }
  16716. /**
  16717. * Runtime helper for merging default declarations. Imported by compiled code
  16718. * only.
  16719. * @internal
  16720. */
  16721. function mergeDefaults(raw, defaults) {
  16722. const props = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(raw)
  16723. ? raw.reduce((normalized, p) => ((normalized[p] = {}), normalized), {})
  16724. : raw;
  16725. for (const key in defaults) {
  16726. const opt = props[key];
  16727. if (opt) {
  16728. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(opt) || (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(opt)) {
  16729. props[key] = { type: opt, default: defaults[key] };
  16730. }
  16731. else {
  16732. opt.default = defaults[key];
  16733. }
  16734. }
  16735. else if (opt === null) {
  16736. props[key] = { default: defaults[key] };
  16737. }
  16738. else if ((true)) {
  16739. warn(`props default key "${key}" has no corresponding declaration.`);
  16740. }
  16741. }
  16742. return props;
  16743. }
  16744. /**
  16745. * Used to create a proxy for the rest element when destructuring props with
  16746. * defineProps().
  16747. * @internal
  16748. */
  16749. function createPropsRestProxy(props, excludedKeys) {
  16750. const ret = {};
  16751. for (const key in props) {
  16752. if (!excludedKeys.includes(key)) {
  16753. Object.defineProperty(ret, key, {
  16754. enumerable: true,
  16755. get: () => props[key]
  16756. });
  16757. }
  16758. }
  16759. return ret;
  16760. }
  16761. /**
  16762. * `<script setup>` helper for persisting the current instance context over
  16763. * async/await flows.
  16764. *
  16765. * `@vue/compiler-sfc` converts the following:
  16766. *
  16767. * ```ts
  16768. * const x = await foo()
  16769. * ```
  16770. *
  16771. * into:
  16772. *
  16773. * ```ts
  16774. * let __temp, __restore
  16775. * const x = (([__temp, __restore] = withAsyncContext(() => foo())),__temp=await __temp,__restore(),__temp)
  16776. * ```
  16777. * @internal
  16778. */
  16779. function withAsyncContext(getAwaitable) {
  16780. const ctx = getCurrentInstance();
  16781. if (( true) && !ctx) {
  16782. warn(`withAsyncContext called without active current instance. ` +
  16783. `This is likely a bug.`);
  16784. }
  16785. let awaitable = getAwaitable();
  16786. unsetCurrentInstance();
  16787. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isPromise)(awaitable)) {
  16788. awaitable = awaitable.catch(e => {
  16789. setCurrentInstance(ctx);
  16790. throw e;
  16791. });
  16792. }
  16793. return [awaitable, () => setCurrentInstance(ctx)];
  16794. }
  16795. // Actual implementation
  16796. function h(type, propsOrChildren, children) {
  16797. const l = arguments.length;
  16798. if (l === 2) {
  16799. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isObject)(propsOrChildren) && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(propsOrChildren)) {
  16800. // single vnode without props
  16801. if (isVNode(propsOrChildren)) {
  16802. return createVNode(type, null, [propsOrChildren]);
  16803. }
  16804. // props without children
  16805. return createVNode(type, propsOrChildren);
  16806. }
  16807. else {
  16808. // omit props
  16809. return createVNode(type, null, propsOrChildren);
  16810. }
  16811. }
  16812. else {
  16813. if (l > 3) {
  16814. children = Array.prototype.slice.call(arguments, 2);
  16815. }
  16816. else if (l === 3 && isVNode(children)) {
  16817. children = [children];
  16818. }
  16819. return createVNode(type, propsOrChildren, children);
  16820. }
  16821. }
  16822. const ssrContextKey = Symbol(( true) ? `ssrContext` : 0);
  16823. const useSSRContext = () => {
  16824. {
  16825. const ctx = inject(ssrContextKey);
  16826. if (!ctx) {
  16827. warn(`Server rendering context not provided. Make sure to only call ` +
  16828. `useSSRContext() conditionally in the server build.`);
  16829. }
  16830. return ctx;
  16831. }
  16832. };
  16833. function isShallow(value) {
  16834. return !!(value && value["__v_isShallow" /* IS_SHALLOW */]);
  16835. }
  16836. function initCustomFormatter() {
  16837. /* eslint-disable no-restricted-globals */
  16838. if ( false || typeof window === 'undefined') {
  16839. return;
  16840. }
  16841. const vueStyle = { style: 'color:#3ba776' };
  16842. const numberStyle = { style: 'color:#0b1bc9' };
  16843. const stringStyle = { style: 'color:#b62e24' };
  16844. const keywordStyle = { style: 'color:#9d288c' };
  16845. // custom formatter for Chrome
  16846. // https://www.mattzeunert.com/2016/02/19/custom-chrome-devtools-object-formatters.html
  16847. const formatter = {
  16848. header(obj) {
  16849. // TODO also format ComponentPublicInstance & ctx.slots/attrs in setup
  16850. if (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isObject)(obj)) {
  16851. return null;
  16852. }
  16853. if (obj.__isVue) {
  16854. return ['div', vueStyle, `VueInstance`];
  16855. }
  16856. else if ((0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isRef)(obj)) {
  16857. return [
  16858. 'div',
  16859. {},
  16860. ['span', vueStyle, genRefFlag(obj)],
  16861. '<',
  16862. formatValue(obj.value),
  16863. `>`
  16864. ];
  16865. }
  16866. else if ((0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isReactive)(obj)) {
  16867. return [
  16868. 'div',
  16869. {},
  16870. ['span', vueStyle, isShallow(obj) ? 'ShallowReactive' : 'Reactive'],
  16871. '<',
  16872. formatValue(obj),
  16873. `>${(0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isReadonly)(obj) ? ` (readonly)` : ``}`
  16874. ];
  16875. }
  16876. else if ((0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.isReadonly)(obj)) {
  16877. return [
  16878. 'div',
  16879. {},
  16880. ['span', vueStyle, isShallow(obj) ? 'ShallowReadonly' : 'Readonly'],
  16881. '<',
  16882. formatValue(obj),
  16883. '>'
  16884. ];
  16885. }
  16886. return null;
  16887. },
  16888. hasBody(obj) {
  16889. return obj && obj.__isVue;
  16890. },
  16891. body(obj) {
  16892. if (obj && obj.__isVue) {
  16893. return [
  16894. 'div',
  16895. {},
  16896. ...formatInstance(obj.$)
  16897. ];
  16898. }
  16899. }
  16900. };
  16901. function formatInstance(instance) {
  16902. const blocks = [];
  16903. if (instance.type.props && instance.props) {
  16904. blocks.push(createInstanceBlock('props', (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.toRaw)(instance.props)));
  16905. }
  16906. if (instance.setupState !== _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ) {
  16907. blocks.push(createInstanceBlock('setup', instance.setupState));
  16908. }
  16909. if (instance.data !== _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ) {
  16910. blocks.push(createInstanceBlock('data', (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.toRaw)(instance.data)));
  16911. }
  16912. const computed = extractKeys(instance, 'computed');
  16913. if (computed) {
  16914. blocks.push(createInstanceBlock('computed', computed));
  16915. }
  16916. const injected = extractKeys(instance, 'inject');
  16917. if (injected) {
  16918. blocks.push(createInstanceBlock('injected', injected));
  16919. }
  16920. blocks.push([
  16921. 'div',
  16922. {},
  16923. [
  16924. 'span',
  16925. {
  16926. style: keywordStyle.style + ';opacity:0.66'
  16927. },
  16928. '$ (internal): '
  16929. ],
  16930. ['object', { object: instance }]
  16931. ]);
  16932. return blocks;
  16933. }
  16934. function createInstanceBlock(type, target) {
  16935. target = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)({}, target);
  16936. if (!Object.keys(target).length) {
  16937. return ['span', {}];
  16938. }
  16939. return [
  16940. 'div',
  16941. { style: 'line-height:1.25em;margin-bottom:0.6em' },
  16942. [
  16943. 'div',
  16944. {
  16945. style: 'color:#476582'
  16946. },
  16947. type
  16948. ],
  16949. [
  16950. 'div',
  16951. {
  16952. style: 'padding-left:1.25em'
  16953. },
  16954. ...Object.keys(target).map(key => {
  16955. return [
  16956. 'div',
  16957. {},
  16958. ['span', keywordStyle, key + ': '],
  16959. formatValue(target[key], false)
  16960. ];
  16961. })
  16962. ]
  16963. ];
  16964. }
  16965. function formatValue(v, asRaw = true) {
  16966. if (typeof v === 'number') {
  16967. return ['span', numberStyle, v];
  16968. }
  16969. else if (typeof v === 'string') {
  16970. return ['span', stringStyle, JSON.stringify(v)];
  16971. }
  16972. else if (typeof v === 'boolean') {
  16973. return ['span', keywordStyle, v];
  16974. }
  16975. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isObject)(v)) {
  16976. return ['object', { object: asRaw ? (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.toRaw)(v) : v }];
  16977. }
  16978. else {
  16979. return ['span', stringStyle, String(v)];
  16980. }
  16981. }
  16982. function extractKeys(instance, type) {
  16983. const Comp = instance.type;
  16984. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(Comp)) {
  16985. return;
  16986. }
  16987. const extracted = {};
  16988. for (const key in instance.ctx) {
  16989. if (isKeyOfType(Comp, key, type)) {
  16990. extracted[key] = instance.ctx[key];
  16991. }
  16992. }
  16993. return extracted;
  16994. }
  16995. function isKeyOfType(Comp, key, type) {
  16996. const opts = Comp[type];
  16997. if (((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(opts) && opts.includes(key)) ||
  16998. ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isObject)(opts) && key in opts)) {
  16999. return true;
  17000. }
  17001. if (Comp.extends && isKeyOfType(Comp.extends, key, type)) {
  17002. return true;
  17003. }
  17004. if (Comp.mixins && Comp.mixins.some(m => isKeyOfType(m, key, type))) {
  17005. return true;
  17006. }
  17007. }
  17008. function genRefFlag(v) {
  17009. if (isShallow(v)) {
  17010. return `ShallowRef`;
  17011. }
  17012. if (v.effect) {
  17013. return `ComputedRef`;
  17014. }
  17015. return `Ref`;
  17016. }
  17017. if (window.devtoolsFormatters) {
  17018. window.devtoolsFormatters.push(formatter);
  17019. }
  17020. else {
  17021. window.devtoolsFormatters = [formatter];
  17022. }
  17023. }
  17024. function withMemo(memo, render, cache, index) {
  17025. const cached = cache[index];
  17026. if (cached && isMemoSame(cached, memo)) {
  17027. return cached;
  17028. }
  17029. const ret = render();
  17030. // shallow clone
  17031. ret.memo = memo.slice();
  17032. return (cache[index] = ret);
  17033. }
  17034. function isMemoSame(cached, memo) {
  17035. const prev = cached.memo;
  17036. if (prev.length != memo.length) {
  17037. return false;
  17038. }
  17039. for (let i = 0; i < prev.length; i++) {
  17040. if (prev[i] !== memo[i]) {
  17041. return false;
  17042. }
  17043. }
  17044. // make sure to let parent block track it when returning cached
  17045. if (isBlockTreeEnabled > 0 && currentBlock) {
  17046. currentBlock.push(cached);
  17047. }
  17048. return true;
  17049. }
  17050. // Core API ------------------------------------------------------------------
  17051. const version = "3.2.32";
  17052. const _ssrUtils = {
  17053. createComponentInstance,
  17054. setupComponent,
  17055. renderComponentRoot,
  17056. setCurrentRenderingInstance,
  17057. isVNode,
  17058. normalizeVNode
  17059. };
  17060. /**
  17061. * SSR utils for \@vue/server-renderer. Only exposed in cjs builds.
  17062. * @internal
  17063. */
  17064. const ssrUtils = (_ssrUtils );
  17065. /**
  17066. * @internal only exposed in compat builds
  17067. */
  17068. const resolveFilter = null;
  17069. /**
  17070. * @internal only exposed in compat builds.
  17071. */
  17072. const compatUtils = (null);
  17073. /***/ }),
  17074. /***/ "./node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.js":
  17075. /*!***********************************************************************!*\
  17076. !*** ./node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.js ***!
  17077. \***********************************************************************/
  17078. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  17079. "use strict";
  17080. __webpack_require__.r(__webpack_exports__);
  17081. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  17082. /* harmony export */ "BaseTransition": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.BaseTransition),
  17083. /* harmony export */ "Comment": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.Comment),
  17084. /* harmony export */ "EffectScope": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.EffectScope),
  17085. /* harmony export */ "Fragment": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.Fragment),
  17086. /* harmony export */ "KeepAlive": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.KeepAlive),
  17087. /* harmony export */ "ReactiveEffect": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.ReactiveEffect),
  17088. /* harmony export */ "Static": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.Static),
  17089. /* harmony export */ "Suspense": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.Suspense),
  17090. /* harmony export */ "Teleport": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.Teleport),
  17091. /* harmony export */ "Text": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.Text),
  17092. /* harmony export */ "Transition": () => (/* binding */ Transition),
  17093. /* harmony export */ "TransitionGroup": () => (/* binding */ TransitionGroup),
  17094. /* harmony export */ "VueElement": () => (/* binding */ VueElement),
  17095. /* harmony export */ "callWithAsyncErrorHandling": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.callWithAsyncErrorHandling),
  17096. /* harmony export */ "callWithErrorHandling": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.callWithErrorHandling),
  17097. /* harmony export */ "camelize": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.camelize),
  17098. /* harmony export */ "capitalize": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.capitalize),
  17099. /* harmony export */ "cloneVNode": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.cloneVNode),
  17100. /* harmony export */ "compatUtils": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.compatUtils),
  17101. /* harmony export */ "computed": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.computed),
  17102. /* harmony export */ "createApp": () => (/* binding */ createApp),
  17103. /* harmony export */ "createBlock": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.createBlock),
  17104. /* harmony export */ "createCommentVNode": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode),
  17105. /* harmony export */ "createElementBlock": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.createElementBlock),
  17106. /* harmony export */ "createElementVNode": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.createElementVNode),
  17107. /* harmony export */ "createHydrationRenderer": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.createHydrationRenderer),
  17108. /* harmony export */ "createPropsRestProxy": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.createPropsRestProxy),
  17109. /* harmony export */ "createRenderer": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.createRenderer),
  17110. /* harmony export */ "createSSRApp": () => (/* binding */ createSSRApp),
  17111. /* harmony export */ "createSlots": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.createSlots),
  17112. /* harmony export */ "createStaticVNode": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.createStaticVNode),
  17113. /* harmony export */ "createTextVNode": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.createTextVNode),
  17114. /* harmony export */ "createVNode": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.createVNode),
  17115. /* harmony export */ "customRef": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.customRef),
  17116. /* harmony export */ "defineAsyncComponent": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.defineAsyncComponent),
  17117. /* harmony export */ "defineComponent": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.defineComponent),
  17118. /* harmony export */ "defineCustomElement": () => (/* binding */ defineCustomElement),
  17119. /* harmony export */ "defineEmits": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.defineEmits),
  17120. /* harmony export */ "defineExpose": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.defineExpose),
  17121. /* harmony export */ "defineProps": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.defineProps),
  17122. /* harmony export */ "defineSSRCustomElement": () => (/* binding */ defineSSRCustomElement),
  17123. /* harmony export */ "devtools": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.devtools),
  17124. /* harmony export */ "effect": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.effect),
  17125. /* harmony export */ "effectScope": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.effectScope),
  17126. /* harmony export */ "getCurrentInstance": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.getCurrentInstance),
  17127. /* harmony export */ "getCurrentScope": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.getCurrentScope),
  17128. /* harmony export */ "getTransitionRawChildren": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.getTransitionRawChildren),
  17129. /* harmony export */ "guardReactiveProps": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.guardReactiveProps),
  17130. /* harmony export */ "h": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.h),
  17131. /* harmony export */ "handleError": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.handleError),
  17132. /* harmony export */ "hydrate": () => (/* binding */ hydrate),
  17133. /* harmony export */ "initCustomFormatter": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.initCustomFormatter),
  17134. /* harmony export */ "initDirectivesForSSR": () => (/* binding */ initDirectivesForSSR),
  17135. /* harmony export */ "inject": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.inject),
  17136. /* harmony export */ "isMemoSame": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.isMemoSame),
  17137. /* harmony export */ "isProxy": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.isProxy),
  17138. /* harmony export */ "isReactive": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.isReactive),
  17139. /* harmony export */ "isReadonly": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.isReadonly),
  17140. /* harmony export */ "isRef": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.isRef),
  17141. /* harmony export */ "isRuntimeOnly": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.isRuntimeOnly),
  17142. /* harmony export */ "isShallow": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.isShallow),
  17143. /* harmony export */ "isVNode": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.isVNode),
  17144. /* harmony export */ "markRaw": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.markRaw),
  17145. /* harmony export */ "mergeDefaults": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.mergeDefaults),
  17146. /* harmony export */ "mergeProps": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.mergeProps),
  17147. /* harmony export */ "nextTick": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.nextTick),
  17148. /* harmony export */ "normalizeClass": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.normalizeClass),
  17149. /* harmony export */ "normalizeProps": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.normalizeProps),
  17150. /* harmony export */ "normalizeStyle": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.normalizeStyle),
  17151. /* harmony export */ "onActivated": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.onActivated),
  17152. /* harmony export */ "onBeforeMount": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.onBeforeMount),
  17153. /* harmony export */ "onBeforeUnmount": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.onBeforeUnmount),
  17154. /* harmony export */ "onBeforeUpdate": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.onBeforeUpdate),
  17155. /* harmony export */ "onDeactivated": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.onDeactivated),
  17156. /* harmony export */ "onErrorCaptured": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.onErrorCaptured),
  17157. /* harmony export */ "onMounted": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.onMounted),
  17158. /* harmony export */ "onRenderTracked": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.onRenderTracked),
  17159. /* harmony export */ "onRenderTriggered": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.onRenderTriggered),
  17160. /* harmony export */ "onScopeDispose": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.onScopeDispose),
  17161. /* harmony export */ "onServerPrefetch": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.onServerPrefetch),
  17162. /* harmony export */ "onUnmounted": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.onUnmounted),
  17163. /* harmony export */ "onUpdated": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.onUpdated),
  17164. /* harmony export */ "openBlock": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.openBlock),
  17165. /* harmony export */ "popScopeId": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.popScopeId),
  17166. /* harmony export */ "provide": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.provide),
  17167. /* harmony export */ "proxyRefs": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.proxyRefs),
  17168. /* harmony export */ "pushScopeId": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.pushScopeId),
  17169. /* harmony export */ "queuePostFlushCb": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.queuePostFlushCb),
  17170. /* harmony export */ "reactive": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.reactive),
  17171. /* harmony export */ "readonly": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.readonly),
  17172. /* harmony export */ "ref": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.ref),
  17173. /* harmony export */ "registerRuntimeCompiler": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.registerRuntimeCompiler),
  17174. /* harmony export */ "render": () => (/* binding */ render),
  17175. /* harmony export */ "renderList": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.renderList),
  17176. /* harmony export */ "renderSlot": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.renderSlot),
  17177. /* harmony export */ "resolveComponent": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.resolveComponent),
  17178. /* harmony export */ "resolveDirective": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.resolveDirective),
  17179. /* harmony export */ "resolveDynamicComponent": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.resolveDynamicComponent),
  17180. /* harmony export */ "resolveFilter": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.resolveFilter),
  17181. /* harmony export */ "resolveTransitionHooks": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.resolveTransitionHooks),
  17182. /* harmony export */ "setBlockTracking": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.setBlockTracking),
  17183. /* harmony export */ "setDevtoolsHook": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.setDevtoolsHook),
  17184. /* harmony export */ "setTransitionHooks": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.setTransitionHooks),
  17185. /* harmony export */ "shallowReactive": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.shallowReactive),
  17186. /* harmony export */ "shallowReadonly": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.shallowReadonly),
  17187. /* harmony export */ "shallowRef": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.shallowRef),
  17188. /* harmony export */ "ssrContextKey": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.ssrContextKey),
  17189. /* harmony export */ "ssrUtils": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.ssrUtils),
  17190. /* harmony export */ "stop": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.stop),
  17191. /* harmony export */ "toDisplayString": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.toDisplayString),
  17192. /* harmony export */ "toHandlerKey": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.toHandlerKey),
  17193. /* harmony export */ "toHandlers": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.toHandlers),
  17194. /* harmony export */ "toRaw": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.toRaw),
  17195. /* harmony export */ "toRef": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.toRef),
  17196. /* harmony export */ "toRefs": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.toRefs),
  17197. /* harmony export */ "transformVNodeArgs": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.transformVNodeArgs),
  17198. /* harmony export */ "triggerRef": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.triggerRef),
  17199. /* harmony export */ "unref": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.unref),
  17200. /* harmony export */ "useAttrs": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.useAttrs),
  17201. /* harmony export */ "useCssModule": () => (/* binding */ useCssModule),
  17202. /* harmony export */ "useCssVars": () => (/* binding */ useCssVars),
  17203. /* harmony export */ "useSSRContext": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.useSSRContext),
  17204. /* harmony export */ "useSlots": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.useSlots),
  17205. /* harmony export */ "useTransitionState": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.useTransitionState),
  17206. /* harmony export */ "vModelCheckbox": () => (/* binding */ vModelCheckbox),
  17207. /* harmony export */ "vModelDynamic": () => (/* binding */ vModelDynamic),
  17208. /* harmony export */ "vModelRadio": () => (/* binding */ vModelRadio),
  17209. /* harmony export */ "vModelSelect": () => (/* binding */ vModelSelect),
  17210. /* harmony export */ "vModelText": () => (/* binding */ vModelText),
  17211. /* harmony export */ "vShow": () => (/* binding */ vShow),
  17212. /* harmony export */ "version": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.version),
  17213. /* harmony export */ "warn": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.warn),
  17214. /* harmony export */ "watch": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.watch),
  17215. /* harmony export */ "watchEffect": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.watchEffect),
  17216. /* harmony export */ "watchPostEffect": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.watchPostEffect),
  17217. /* harmony export */ "watchSyncEffect": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.watchSyncEffect),
  17218. /* harmony export */ "withAsyncContext": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.withAsyncContext),
  17219. /* harmony export */ "withCtx": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.withCtx),
  17220. /* harmony export */ "withDefaults": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.withDefaults),
  17221. /* harmony export */ "withDirectives": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.withDirectives),
  17222. /* harmony export */ "withKeys": () => (/* binding */ withKeys),
  17223. /* harmony export */ "withMemo": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.withMemo),
  17224. /* harmony export */ "withModifiers": () => (/* binding */ withModifiers),
  17225. /* harmony export */ "withScopeId": () => (/* reexport safe */ _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.withScopeId)
  17226. /* harmony export */ });
  17227. /* harmony import */ var _vue_shared__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @vue/shared */ "./node_modules/@vue/shared/dist/shared.esm-bundler.js");
  17228. /* harmony import */ var _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @vue/runtime-core */ "./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js");
  17229. /* harmony import */ var _vue_runtime_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @vue/runtime-core */ "./node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js");
  17230. const svgNS = 'http://www.w3.org/2000/svg';
  17231. const doc = (typeof document !== 'undefined' ? document : null);
  17232. const templateContainer = doc && doc.createElement('template');
  17233. const nodeOps = {
  17234. insert: (child, parent, anchor) => {
  17235. parent.insertBefore(child, anchor || null);
  17236. },
  17237. remove: child => {
  17238. const parent = child.parentNode;
  17239. if (parent) {
  17240. parent.removeChild(child);
  17241. }
  17242. },
  17243. createElement: (tag, isSVG, is, props) => {
  17244. const el = isSVG
  17245. ? doc.createElementNS(svgNS, tag)
  17246. : doc.createElement(tag, is ? { is } : undefined);
  17247. if (tag === 'select' && props && props.multiple != null) {
  17248. el.setAttribute('multiple', props.multiple);
  17249. }
  17250. return el;
  17251. },
  17252. createText: text => doc.createTextNode(text),
  17253. createComment: text => doc.createComment(text),
  17254. setText: (node, text) => {
  17255. node.nodeValue = text;
  17256. },
  17257. setElementText: (el, text) => {
  17258. el.textContent = text;
  17259. },
  17260. parentNode: node => node.parentNode,
  17261. nextSibling: node => node.nextSibling,
  17262. querySelector: selector => doc.querySelector(selector),
  17263. setScopeId(el, id) {
  17264. el.setAttribute(id, '');
  17265. },
  17266. cloneNode(el) {
  17267. const cloned = el.cloneNode(true);
  17268. // #3072
  17269. // - in `patchDOMProp`, we store the actual value in the `el._value` property.
  17270. // - normally, elements using `:value` bindings will not be hoisted, but if
  17271. // the bound value is a constant, e.g. `:value="true"` - they do get
  17272. // hoisted.
  17273. // - in production, hoisted nodes are cloned when subsequent inserts, but
  17274. // cloneNode() does not copy the custom property we attached.
  17275. // - This may need to account for other custom DOM properties we attach to
  17276. // elements in addition to `_value` in the future.
  17277. if (`_value` in el) {
  17278. cloned._value = el._value;
  17279. }
  17280. return cloned;
  17281. },
  17282. // __UNSAFE__
  17283. // Reason: innerHTML.
  17284. // Static content here can only come from compiled templates.
  17285. // As long as the user only uses trusted templates, this is safe.
  17286. insertStaticContent(content, parent, anchor, isSVG, start, end) {
  17287. // <parent> before | first ... last | anchor </parent>
  17288. const before = anchor ? anchor.previousSibling : parent.lastChild;
  17289. // #5308 can only take cached path if:
  17290. // - has a single root node
  17291. // - nextSibling info is still available
  17292. if (start && (start === end || start.nextSibling)) {
  17293. // cached
  17294. while (true) {
  17295. parent.insertBefore(start.cloneNode(true), anchor);
  17296. if (start === end || !(start = start.nextSibling))
  17297. break;
  17298. }
  17299. }
  17300. else {
  17301. // fresh insert
  17302. templateContainer.innerHTML = isSVG ? `<svg>${content}</svg>` : content;
  17303. const template = templateContainer.content;
  17304. if (isSVG) {
  17305. // remove outer svg wrapper
  17306. const wrapper = template.firstChild;
  17307. while (wrapper.firstChild) {
  17308. template.appendChild(wrapper.firstChild);
  17309. }
  17310. template.removeChild(wrapper);
  17311. }
  17312. parent.insertBefore(template, anchor);
  17313. }
  17314. return [
  17315. // first
  17316. before ? before.nextSibling : parent.firstChild,
  17317. // last
  17318. anchor ? anchor.previousSibling : parent.lastChild
  17319. ];
  17320. }
  17321. };
  17322. // compiler should normalize class + :class bindings on the same element
  17323. // into a single binding ['staticClass', dynamic]
  17324. function patchClass(el, value, isSVG) {
  17325. // directly setting className should be faster than setAttribute in theory
  17326. // if this is an element during a transition, take the temporary transition
  17327. // classes into account.
  17328. const transitionClasses = el._vtc;
  17329. if (transitionClasses) {
  17330. value = (value ? [value, ...transitionClasses] : [...transitionClasses]).join(' ');
  17331. }
  17332. if (value == null) {
  17333. el.removeAttribute('class');
  17334. }
  17335. else if (isSVG) {
  17336. el.setAttribute('class', value);
  17337. }
  17338. else {
  17339. el.className = value;
  17340. }
  17341. }
  17342. function patchStyle(el, prev, next) {
  17343. const style = el.style;
  17344. const isCssString = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(next);
  17345. if (next && !isCssString) {
  17346. for (const key in next) {
  17347. setStyle(style, key, next[key]);
  17348. }
  17349. if (prev && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(prev)) {
  17350. for (const key in prev) {
  17351. if (next[key] == null) {
  17352. setStyle(style, key, '');
  17353. }
  17354. }
  17355. }
  17356. }
  17357. else {
  17358. const currentDisplay = style.display;
  17359. if (isCssString) {
  17360. if (prev !== next) {
  17361. style.cssText = next;
  17362. }
  17363. }
  17364. else if (prev) {
  17365. el.removeAttribute('style');
  17366. }
  17367. // indicates that the `display` of the element is controlled by `v-show`,
  17368. // so we always keep the current `display` value regardless of the `style`
  17369. // value, thus handing over control to `v-show`.
  17370. if ('_vod' in el) {
  17371. style.display = currentDisplay;
  17372. }
  17373. }
  17374. }
  17375. const importantRE = /\s*!important$/;
  17376. function setStyle(style, name, val) {
  17377. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(val)) {
  17378. val.forEach(v => setStyle(style, name, v));
  17379. }
  17380. else {
  17381. if (name.startsWith('--')) {
  17382. // custom property definition
  17383. style.setProperty(name, val);
  17384. }
  17385. else {
  17386. const prefixed = autoPrefix(style, name);
  17387. if (importantRE.test(val)) {
  17388. // !important
  17389. style.setProperty((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hyphenate)(prefixed), val.replace(importantRE, ''), 'important');
  17390. }
  17391. else {
  17392. style[prefixed] = val;
  17393. }
  17394. }
  17395. }
  17396. }
  17397. const prefixes = ['Webkit', 'Moz', 'ms'];
  17398. const prefixCache = {};
  17399. function autoPrefix(style, rawName) {
  17400. const cached = prefixCache[rawName];
  17401. if (cached) {
  17402. return cached;
  17403. }
  17404. let name = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.camelize)(rawName);
  17405. if (name !== 'filter' && name in style) {
  17406. return (prefixCache[rawName] = name);
  17407. }
  17408. name = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.capitalize)(name);
  17409. for (let i = 0; i < prefixes.length; i++) {
  17410. const prefixed = prefixes[i] + name;
  17411. if (prefixed in style) {
  17412. return (prefixCache[rawName] = prefixed);
  17413. }
  17414. }
  17415. return rawName;
  17416. }
  17417. const xlinkNS = 'http://www.w3.org/1999/xlink';
  17418. function patchAttr(el, key, value, isSVG, instance) {
  17419. if (isSVG && key.startsWith('xlink:')) {
  17420. if (value == null) {
  17421. el.removeAttributeNS(xlinkNS, key.slice(6, key.length));
  17422. }
  17423. else {
  17424. el.setAttributeNS(xlinkNS, key, value);
  17425. }
  17426. }
  17427. else {
  17428. // note we are only checking boolean attributes that don't have a
  17429. // corresponding dom prop of the same name here.
  17430. const isBoolean = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isSpecialBooleanAttr)(key);
  17431. if (value == null || (isBoolean && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.includeBooleanAttr)(value))) {
  17432. el.removeAttribute(key);
  17433. }
  17434. else {
  17435. el.setAttribute(key, isBoolean ? '' : value);
  17436. }
  17437. }
  17438. }
  17439. // __UNSAFE__
  17440. // functions. The user is responsible for using them with only trusted content.
  17441. function patchDOMProp(el, key, value,
  17442. // the following args are passed only due to potential innerHTML/textContent
  17443. // overriding existing VNodes, in which case the old tree must be properly
  17444. // unmounted.
  17445. prevChildren, parentComponent, parentSuspense, unmountChildren) {
  17446. if (key === 'innerHTML' || key === 'textContent') {
  17447. if (prevChildren) {
  17448. unmountChildren(prevChildren, parentComponent, parentSuspense);
  17449. }
  17450. el[key] = value == null ? '' : value;
  17451. return;
  17452. }
  17453. if (key === 'value' &&
  17454. el.tagName !== 'PROGRESS' &&
  17455. // custom elements may use _value internally
  17456. !el.tagName.includes('-')) {
  17457. // store value as _value as well since
  17458. // non-string values will be stringified.
  17459. el._value = value;
  17460. const newValue = value == null ? '' : value;
  17461. if (el.value !== newValue ||
  17462. // #4956: always set for OPTION elements because its value falls back to
  17463. // textContent if no value attribute is present. And setting .value for
  17464. // OPTION has no side effect
  17465. el.tagName === 'OPTION') {
  17466. el.value = newValue;
  17467. }
  17468. if (value == null) {
  17469. el.removeAttribute(key);
  17470. }
  17471. return;
  17472. }
  17473. if (value === '' || value == null) {
  17474. const type = typeof el[key];
  17475. if (type === 'boolean') {
  17476. // e.g. <select multiple> compiles to { multiple: '' }
  17477. el[key] = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.includeBooleanAttr)(value);
  17478. return;
  17479. }
  17480. else if (value == null && type === 'string') {
  17481. // e.g. <div :id="null">
  17482. el[key] = '';
  17483. el.removeAttribute(key);
  17484. return;
  17485. }
  17486. else if (type === 'number') {
  17487. // e.g. <img :width="null">
  17488. // the value of some IDL attr must be greater than 0, e.g. input.size = 0 -> error
  17489. try {
  17490. el[key] = 0;
  17491. }
  17492. catch (_a) { }
  17493. el.removeAttribute(key);
  17494. return;
  17495. }
  17496. }
  17497. // some properties perform value validation and throw
  17498. try {
  17499. el[key] = value;
  17500. }
  17501. catch (e) {
  17502. if ((true)) {
  17503. (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.warn)(`Failed setting prop "${key}" on <${el.tagName.toLowerCase()}>: ` +
  17504. `value ${value} is invalid.`, e);
  17505. }
  17506. }
  17507. }
  17508. // Async edge case fix requires storing an event listener's attach timestamp.
  17509. let _getNow = Date.now;
  17510. let skipTimestampCheck = false;
  17511. if (typeof window !== 'undefined') {
  17512. // Determine what event timestamp the browser is using. Annoyingly, the
  17513. // timestamp can either be hi-res (relative to page load) or low-res
  17514. // (relative to UNIX epoch), so in order to compare time we have to use the
  17515. // same timestamp type when saving the flush timestamp.
  17516. if (_getNow() > document.createEvent('Event').timeStamp) {
  17517. // if the low-res timestamp which is bigger than the event timestamp
  17518. // (which is evaluated AFTER) it means the event is using a hi-res timestamp,
  17519. // and we need to use the hi-res version for event listeners as well.
  17520. _getNow = () => performance.now();
  17521. }
  17522. // #3485: Firefox <= 53 has incorrect Event.timeStamp implementation
  17523. // and does not fire microtasks in between event propagation, so safe to exclude.
  17524. const ffMatch = navigator.userAgent.match(/firefox\/(\d+)/i);
  17525. skipTimestampCheck = !!(ffMatch && Number(ffMatch[1]) <= 53);
  17526. }
  17527. // To avoid the overhead of repeatedly calling performance.now(), we cache
  17528. // and use the same timestamp for all event listeners attached in the same tick.
  17529. let cachedNow = 0;
  17530. const p = Promise.resolve();
  17531. const reset = () => {
  17532. cachedNow = 0;
  17533. };
  17534. const getNow = () => cachedNow || (p.then(reset), (cachedNow = _getNow()));
  17535. function addEventListener(el, event, handler, options) {
  17536. el.addEventListener(event, handler, options);
  17537. }
  17538. function removeEventListener(el, event, handler, options) {
  17539. el.removeEventListener(event, handler, options);
  17540. }
  17541. function patchEvent(el, rawName, prevValue, nextValue, instance = null) {
  17542. // vei = vue event invokers
  17543. const invokers = el._vei || (el._vei = {});
  17544. const existingInvoker = invokers[rawName];
  17545. if (nextValue && existingInvoker) {
  17546. // patch
  17547. existingInvoker.value = nextValue;
  17548. }
  17549. else {
  17550. const [name, options] = parseName(rawName);
  17551. if (nextValue) {
  17552. // add
  17553. const invoker = (invokers[rawName] = createInvoker(nextValue, instance));
  17554. addEventListener(el, name, invoker, options);
  17555. }
  17556. else if (existingInvoker) {
  17557. // remove
  17558. removeEventListener(el, name, existingInvoker, options);
  17559. invokers[rawName] = undefined;
  17560. }
  17561. }
  17562. }
  17563. const optionsModifierRE = /(?:Once|Passive|Capture)$/;
  17564. function parseName(name) {
  17565. let options;
  17566. if (optionsModifierRE.test(name)) {
  17567. options = {};
  17568. let m;
  17569. while ((m = name.match(optionsModifierRE))) {
  17570. name = name.slice(0, name.length - m[0].length);
  17571. options[m[0].toLowerCase()] = true;
  17572. }
  17573. }
  17574. return [(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hyphenate)(name.slice(2)), options];
  17575. }
  17576. function createInvoker(initialValue, instance) {
  17577. const invoker = (e) => {
  17578. // async edge case #6566: inner click event triggers patch, event handler
  17579. // attached to outer element during patch, and triggered again. This
  17580. // happens because browsers fire microtask ticks between event propagation.
  17581. // the solution is simple: we save the timestamp when a handler is attached,
  17582. // and the handler would only fire if the event passed to it was fired
  17583. // AFTER it was attached.
  17584. const timeStamp = e.timeStamp || _getNow();
  17585. if (skipTimestampCheck || timeStamp >= invoker.attached - 1) {
  17586. (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.callWithAsyncErrorHandling)(patchStopImmediatePropagation(e, invoker.value), instance, 5 /* NATIVE_EVENT_HANDLER */, [e]);
  17587. }
  17588. };
  17589. invoker.value = initialValue;
  17590. invoker.attached = getNow();
  17591. return invoker;
  17592. }
  17593. function patchStopImmediatePropagation(e, value) {
  17594. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(value)) {
  17595. const originalStop = e.stopImmediatePropagation;
  17596. e.stopImmediatePropagation = () => {
  17597. originalStop.call(e);
  17598. e._stopped = true;
  17599. };
  17600. return value.map(fn => (e) => !e._stopped && fn && fn(e));
  17601. }
  17602. else {
  17603. return value;
  17604. }
  17605. }
  17606. const nativeOnRE = /^on[a-z]/;
  17607. const patchProp = (el, key, prevValue, nextValue, isSVG = false, prevChildren, parentComponent, parentSuspense, unmountChildren) => {
  17608. if (key === 'class') {
  17609. patchClass(el, nextValue, isSVG);
  17610. }
  17611. else if (key === 'style') {
  17612. patchStyle(el, prevValue, nextValue);
  17613. }
  17614. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isOn)(key)) {
  17615. // ignore v-model listeners
  17616. if (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isModelListener)(key)) {
  17617. patchEvent(el, key, prevValue, nextValue, parentComponent);
  17618. }
  17619. }
  17620. else if (key[0] === '.'
  17621. ? ((key = key.slice(1)), true)
  17622. : key[0] === '^'
  17623. ? ((key = key.slice(1)), false)
  17624. : shouldSetAsProp(el, key, nextValue, isSVG)) {
  17625. patchDOMProp(el, key, nextValue, prevChildren, parentComponent, parentSuspense, unmountChildren);
  17626. }
  17627. else {
  17628. // special case for <input v-model type="checkbox"> with
  17629. // :true-value & :false-value
  17630. // store value as dom properties since non-string values will be
  17631. // stringified.
  17632. if (key === 'true-value') {
  17633. el._trueValue = nextValue;
  17634. }
  17635. else if (key === 'false-value') {
  17636. el._falseValue = nextValue;
  17637. }
  17638. patchAttr(el, key, nextValue, isSVG);
  17639. }
  17640. };
  17641. function shouldSetAsProp(el, key, value, isSVG) {
  17642. if (isSVG) {
  17643. // most keys must be set as attribute on svg elements to work
  17644. // ...except innerHTML & textContent
  17645. if (key === 'innerHTML' || key === 'textContent') {
  17646. return true;
  17647. }
  17648. // or native onclick with function values
  17649. if (key in el && nativeOnRE.test(key) && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(value)) {
  17650. return true;
  17651. }
  17652. return false;
  17653. }
  17654. // spellcheck and draggable are numerated attrs, however their
  17655. // corresponding DOM properties are actually booleans - this leads to
  17656. // setting it with a string "false" value leading it to be coerced to
  17657. // `true`, so we need to always treat them as attributes.
  17658. // Note that `contentEditable` doesn't have this problem: its DOM
  17659. // property is also enumerated string values.
  17660. if (key === 'spellcheck' || key === 'draggable') {
  17661. return false;
  17662. }
  17663. // #1787, #2840 form property on form elements is readonly and must be set as
  17664. // attribute.
  17665. if (key === 'form') {
  17666. return false;
  17667. }
  17668. // #1526 <input list> must be set as attribute
  17669. if (key === 'list' && el.tagName === 'INPUT') {
  17670. return false;
  17671. }
  17672. // #2766 <textarea type> must be set as attribute
  17673. if (key === 'type' && el.tagName === 'TEXTAREA') {
  17674. return false;
  17675. }
  17676. // native onclick with string value, must be set as attribute
  17677. if (nativeOnRE.test(key) && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(value)) {
  17678. return false;
  17679. }
  17680. return key in el;
  17681. }
  17682. function defineCustomElement(options, hydate) {
  17683. const Comp = (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.defineComponent)(options);
  17684. class VueCustomElement extends VueElement {
  17685. constructor(initialProps) {
  17686. super(Comp, initialProps, hydate);
  17687. }
  17688. }
  17689. VueCustomElement.def = Comp;
  17690. return VueCustomElement;
  17691. }
  17692. const defineSSRCustomElement = ((options) => {
  17693. // @ts-ignore
  17694. return defineCustomElement(options, hydrate);
  17695. });
  17696. const BaseClass = (typeof HTMLElement !== 'undefined' ? HTMLElement : class {
  17697. });
  17698. class VueElement extends BaseClass {
  17699. constructor(_def, _props = {}, hydrate) {
  17700. super();
  17701. this._def = _def;
  17702. this._props = _props;
  17703. /**
  17704. * @internal
  17705. */
  17706. this._instance = null;
  17707. this._connected = false;
  17708. this._resolved = false;
  17709. this._numberProps = null;
  17710. if (this.shadowRoot && hydrate) {
  17711. hydrate(this._createVNode(), this.shadowRoot);
  17712. }
  17713. else {
  17714. if (( true) && this.shadowRoot) {
  17715. (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.warn)(`Custom element has pre-rendered declarative shadow root but is not ` +
  17716. `defined as hydratable. Use \`defineSSRCustomElement\`.`);
  17717. }
  17718. this.attachShadow({ mode: 'open' });
  17719. }
  17720. }
  17721. connectedCallback() {
  17722. this._connected = true;
  17723. if (!this._instance) {
  17724. this._resolveDef();
  17725. }
  17726. }
  17727. disconnectedCallback() {
  17728. this._connected = false;
  17729. (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.nextTick)(() => {
  17730. if (!this._connected) {
  17731. render(null, this.shadowRoot);
  17732. this._instance = null;
  17733. }
  17734. });
  17735. }
  17736. /**
  17737. * resolve inner component definition (handle possible async component)
  17738. */
  17739. _resolveDef() {
  17740. if (this._resolved) {
  17741. return;
  17742. }
  17743. this._resolved = true;
  17744. // set initial attrs
  17745. for (let i = 0; i < this.attributes.length; i++) {
  17746. this._setAttr(this.attributes[i].name);
  17747. }
  17748. // watch future attr changes
  17749. new MutationObserver(mutations => {
  17750. for (const m of mutations) {
  17751. this._setAttr(m.attributeName);
  17752. }
  17753. }).observe(this, { attributes: true });
  17754. const resolve = (def) => {
  17755. const { props, styles } = def;
  17756. const hasOptions = !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(props);
  17757. const rawKeys = props ? (hasOptions ? Object.keys(props) : props) : [];
  17758. // cast Number-type props set before resolve
  17759. let numberProps;
  17760. if (hasOptions) {
  17761. for (const key in this._props) {
  17762. const opt = props[key];
  17763. if (opt === Number || (opt && opt.type === Number)) {
  17764. this._props[key] = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.toNumber)(this._props[key]);
  17765. (numberProps || (numberProps = Object.create(null)))[key] = true;
  17766. }
  17767. }
  17768. }
  17769. this._numberProps = numberProps;
  17770. // check if there are props set pre-upgrade or connect
  17771. for (const key of Object.keys(this)) {
  17772. if (key[0] !== '_') {
  17773. this._setProp(key, this[key], true, false);
  17774. }
  17775. }
  17776. // defining getter/setters on prototype
  17777. for (const key of rawKeys.map(_vue_shared__WEBPACK_IMPORTED_MODULE_1__.camelize)) {
  17778. Object.defineProperty(this, key, {
  17779. get() {
  17780. return this._getProp(key);
  17781. },
  17782. set(val) {
  17783. this._setProp(key, val);
  17784. }
  17785. });
  17786. }
  17787. // apply CSS
  17788. this._applyStyles(styles);
  17789. // initial render
  17790. this._update();
  17791. };
  17792. const asyncDef = this._def.__asyncLoader;
  17793. if (asyncDef) {
  17794. asyncDef().then(resolve);
  17795. }
  17796. else {
  17797. resolve(this._def);
  17798. }
  17799. }
  17800. _setAttr(key) {
  17801. let value = this.getAttribute(key);
  17802. if (this._numberProps && this._numberProps[key]) {
  17803. value = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.toNumber)(value);
  17804. }
  17805. this._setProp((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.camelize)(key), value, false);
  17806. }
  17807. /**
  17808. * @internal
  17809. */
  17810. _getProp(key) {
  17811. return this._props[key];
  17812. }
  17813. /**
  17814. * @internal
  17815. */
  17816. _setProp(key, val, shouldReflect = true, shouldUpdate = true) {
  17817. if (val !== this._props[key]) {
  17818. this._props[key] = val;
  17819. if (shouldUpdate && this._instance) {
  17820. this._update();
  17821. }
  17822. // reflect
  17823. if (shouldReflect) {
  17824. if (val === true) {
  17825. this.setAttribute((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hyphenate)(key), '');
  17826. }
  17827. else if (typeof val === 'string' || typeof val === 'number') {
  17828. this.setAttribute((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hyphenate)(key), val + '');
  17829. }
  17830. else if (!val) {
  17831. this.removeAttribute((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hyphenate)(key));
  17832. }
  17833. }
  17834. }
  17835. }
  17836. _update() {
  17837. render(this._createVNode(), this.shadowRoot);
  17838. }
  17839. _createVNode() {
  17840. const vnode = (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.createVNode)(this._def, (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)({}, this._props));
  17841. if (!this._instance) {
  17842. vnode.ce = instance => {
  17843. this._instance = instance;
  17844. instance.isCE = true;
  17845. // HMR
  17846. if ((true)) {
  17847. instance.ceReload = newStyles => {
  17848. // always reset styles
  17849. if (this._styles) {
  17850. this._styles.forEach(s => this.shadowRoot.removeChild(s));
  17851. this._styles.length = 0;
  17852. }
  17853. this._applyStyles(newStyles);
  17854. // if this is an async component, ceReload is called from the inner
  17855. // component so no need to reload the async wrapper
  17856. if (!this._def.__asyncLoader) {
  17857. // reload
  17858. this._instance = null;
  17859. this._update();
  17860. }
  17861. };
  17862. }
  17863. // intercept emit
  17864. instance.emit = (event, ...args) => {
  17865. this.dispatchEvent(new CustomEvent(event, {
  17866. detail: args
  17867. }));
  17868. };
  17869. // locate nearest Vue custom element parent for provide/inject
  17870. let parent = this;
  17871. while ((parent =
  17872. parent && (parent.parentNode || parent.host))) {
  17873. if (parent instanceof VueElement) {
  17874. instance.parent = parent._instance;
  17875. break;
  17876. }
  17877. }
  17878. };
  17879. }
  17880. return vnode;
  17881. }
  17882. _applyStyles(styles) {
  17883. if (styles) {
  17884. styles.forEach(css => {
  17885. const s = document.createElement('style');
  17886. s.textContent = css;
  17887. this.shadowRoot.appendChild(s);
  17888. // record for HMR
  17889. if ((true)) {
  17890. (this._styles || (this._styles = [])).push(s);
  17891. }
  17892. });
  17893. }
  17894. }
  17895. }
  17896. function useCssModule(name = '$style') {
  17897. /* istanbul ignore else */
  17898. {
  17899. const instance = (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.getCurrentInstance)();
  17900. if (!instance) {
  17901. ( true) && (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.warn)(`useCssModule must be called inside setup()`);
  17902. return _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ;
  17903. }
  17904. const modules = instance.type.__cssModules;
  17905. if (!modules) {
  17906. ( true) && (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.warn)(`Current instance does not have CSS modules injected.`);
  17907. return _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ;
  17908. }
  17909. const mod = modules[name];
  17910. if (!mod) {
  17911. ( true) &&
  17912. (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.warn)(`Current instance does not have CSS module named "${name}".`);
  17913. return _vue_shared__WEBPACK_IMPORTED_MODULE_1__.EMPTY_OBJ;
  17914. }
  17915. return mod;
  17916. }
  17917. }
  17918. /**
  17919. * Runtime helper for SFC's CSS variable injection feature.
  17920. * @private
  17921. */
  17922. function useCssVars(getter) {
  17923. const instance = (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.getCurrentInstance)();
  17924. /* istanbul ignore next */
  17925. if (!instance) {
  17926. ( true) &&
  17927. (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.warn)(`useCssVars is called without current active component instance.`);
  17928. return;
  17929. }
  17930. const setVars = () => setVarsOnVNode(instance.subTree, getter(instance.proxy));
  17931. (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.watchPostEffect)(setVars);
  17932. (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.onMounted)(() => {
  17933. const ob = new MutationObserver(setVars);
  17934. ob.observe(instance.subTree.el.parentNode, { childList: true });
  17935. (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.onUnmounted)(() => ob.disconnect());
  17936. });
  17937. }
  17938. function setVarsOnVNode(vnode, vars) {
  17939. if (vnode.shapeFlag & 128 /* SUSPENSE */) {
  17940. const suspense = vnode.suspense;
  17941. vnode = suspense.activeBranch;
  17942. if (suspense.pendingBranch && !suspense.isHydrating) {
  17943. suspense.effects.push(() => {
  17944. setVarsOnVNode(suspense.activeBranch, vars);
  17945. });
  17946. }
  17947. }
  17948. // drill down HOCs until it's a non-component vnode
  17949. while (vnode.component) {
  17950. vnode = vnode.component.subTree;
  17951. }
  17952. if (vnode.shapeFlag & 1 /* ELEMENT */ && vnode.el) {
  17953. setVarsOnNode(vnode.el, vars);
  17954. }
  17955. else if (vnode.type === _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.Fragment) {
  17956. vnode.children.forEach(c => setVarsOnVNode(c, vars));
  17957. }
  17958. else if (vnode.type === _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.Static) {
  17959. let { el, anchor } = vnode;
  17960. while (el) {
  17961. setVarsOnNode(el, vars);
  17962. if (el === anchor)
  17963. break;
  17964. el = el.nextSibling;
  17965. }
  17966. }
  17967. }
  17968. function setVarsOnNode(el, vars) {
  17969. if (el.nodeType === 1) {
  17970. const style = el.style;
  17971. for (const key in vars) {
  17972. style.setProperty(`--${key}`, vars[key]);
  17973. }
  17974. }
  17975. }
  17976. const TRANSITION = 'transition';
  17977. const ANIMATION = 'animation';
  17978. // DOM Transition is a higher-order-component based on the platform-agnostic
  17979. // base Transition component, with DOM-specific logic.
  17980. const Transition = (props, { slots }) => (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.h)(_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.BaseTransition, resolveTransitionProps(props), slots);
  17981. Transition.displayName = 'Transition';
  17982. const DOMTransitionPropsValidators = {
  17983. name: String,
  17984. type: String,
  17985. css: {
  17986. type: Boolean,
  17987. default: true
  17988. },
  17989. duration: [String, Number, Object],
  17990. enterFromClass: String,
  17991. enterActiveClass: String,
  17992. enterToClass: String,
  17993. appearFromClass: String,
  17994. appearActiveClass: String,
  17995. appearToClass: String,
  17996. leaveFromClass: String,
  17997. leaveActiveClass: String,
  17998. leaveToClass: String
  17999. };
  18000. const TransitionPropsValidators = (Transition.props =
  18001. /*#__PURE__*/ (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)({}, _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.BaseTransition.props, DOMTransitionPropsValidators));
  18002. /**
  18003. * #3227 Incoming hooks may be merged into arrays when wrapping Transition
  18004. * with custom HOCs.
  18005. */
  18006. const callHook = (hook, args = []) => {
  18007. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(hook)) {
  18008. hook.forEach(h => h(...args));
  18009. }
  18010. else if (hook) {
  18011. hook(...args);
  18012. }
  18013. };
  18014. /**
  18015. * Check if a hook expects a callback (2nd arg), which means the user
  18016. * intends to explicitly control the end of the transition.
  18017. */
  18018. const hasExplicitCallback = (hook) => {
  18019. return hook
  18020. ? (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(hook)
  18021. ? hook.some(h => h.length > 1)
  18022. : hook.length > 1
  18023. : false;
  18024. };
  18025. function resolveTransitionProps(rawProps) {
  18026. const baseProps = {};
  18027. for (const key in rawProps) {
  18028. if (!(key in DOMTransitionPropsValidators)) {
  18029. baseProps[key] = rawProps[key];
  18030. }
  18031. }
  18032. if (rawProps.css === false) {
  18033. return baseProps;
  18034. }
  18035. const { name = 'v', type, duration, enterFromClass = `${name}-enter-from`, enterActiveClass = `${name}-enter-active`, enterToClass = `${name}-enter-to`, appearFromClass = enterFromClass, appearActiveClass = enterActiveClass, appearToClass = enterToClass, leaveFromClass = `${name}-leave-from`, leaveActiveClass = `${name}-leave-active`, leaveToClass = `${name}-leave-to` } = rawProps;
  18036. const durations = normalizeDuration(duration);
  18037. const enterDuration = durations && durations[0];
  18038. const leaveDuration = durations && durations[1];
  18039. const { onBeforeEnter, onEnter, onEnterCancelled, onLeave, onLeaveCancelled, onBeforeAppear = onBeforeEnter, onAppear = onEnter, onAppearCancelled = onEnterCancelled } = baseProps;
  18040. const finishEnter = (el, isAppear, done) => {
  18041. removeTransitionClass(el, isAppear ? appearToClass : enterToClass);
  18042. removeTransitionClass(el, isAppear ? appearActiveClass : enterActiveClass);
  18043. done && done();
  18044. };
  18045. const finishLeave = (el, done) => {
  18046. removeTransitionClass(el, leaveToClass);
  18047. removeTransitionClass(el, leaveActiveClass);
  18048. done && done();
  18049. };
  18050. const makeEnterHook = (isAppear) => {
  18051. return (el, done) => {
  18052. const hook = isAppear ? onAppear : onEnter;
  18053. const resolve = () => finishEnter(el, isAppear, done);
  18054. callHook(hook, [el, resolve]);
  18055. nextFrame(() => {
  18056. removeTransitionClass(el, isAppear ? appearFromClass : enterFromClass);
  18057. addTransitionClass(el, isAppear ? appearToClass : enterToClass);
  18058. if (!hasExplicitCallback(hook)) {
  18059. whenTransitionEnds(el, type, enterDuration, resolve);
  18060. }
  18061. });
  18062. };
  18063. };
  18064. return (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)(baseProps, {
  18065. onBeforeEnter(el) {
  18066. callHook(onBeforeEnter, [el]);
  18067. addTransitionClass(el, enterFromClass);
  18068. addTransitionClass(el, enterActiveClass);
  18069. },
  18070. onBeforeAppear(el) {
  18071. callHook(onBeforeAppear, [el]);
  18072. addTransitionClass(el, appearFromClass);
  18073. addTransitionClass(el, appearActiveClass);
  18074. },
  18075. onEnter: makeEnterHook(false),
  18076. onAppear: makeEnterHook(true),
  18077. onLeave(el, done) {
  18078. const resolve = () => finishLeave(el, done);
  18079. addTransitionClass(el, leaveFromClass);
  18080. // force reflow so *-leave-from classes immediately take effect (#2593)
  18081. forceReflow();
  18082. addTransitionClass(el, leaveActiveClass);
  18083. nextFrame(() => {
  18084. removeTransitionClass(el, leaveFromClass);
  18085. addTransitionClass(el, leaveToClass);
  18086. if (!hasExplicitCallback(onLeave)) {
  18087. whenTransitionEnds(el, type, leaveDuration, resolve);
  18088. }
  18089. });
  18090. callHook(onLeave, [el, resolve]);
  18091. },
  18092. onEnterCancelled(el) {
  18093. finishEnter(el, false);
  18094. callHook(onEnterCancelled, [el]);
  18095. },
  18096. onAppearCancelled(el) {
  18097. finishEnter(el, true);
  18098. callHook(onAppearCancelled, [el]);
  18099. },
  18100. onLeaveCancelled(el) {
  18101. finishLeave(el);
  18102. callHook(onLeaveCancelled, [el]);
  18103. }
  18104. });
  18105. }
  18106. function normalizeDuration(duration) {
  18107. if (duration == null) {
  18108. return null;
  18109. }
  18110. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isObject)(duration)) {
  18111. return [NumberOf(duration.enter), NumberOf(duration.leave)];
  18112. }
  18113. else {
  18114. const n = NumberOf(duration);
  18115. return [n, n];
  18116. }
  18117. }
  18118. function NumberOf(val) {
  18119. const res = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.toNumber)(val);
  18120. if ((true))
  18121. validateDuration(res);
  18122. return res;
  18123. }
  18124. function validateDuration(val) {
  18125. if (typeof val !== 'number') {
  18126. (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.warn)(`<transition> explicit duration is not a valid number - ` +
  18127. `got ${JSON.stringify(val)}.`);
  18128. }
  18129. else if (isNaN(val)) {
  18130. (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.warn)(`<transition> explicit duration is NaN - ` +
  18131. 'the duration expression might be incorrect.');
  18132. }
  18133. }
  18134. function addTransitionClass(el, cls) {
  18135. cls.split(/\s+/).forEach(c => c && el.classList.add(c));
  18136. (el._vtc ||
  18137. (el._vtc = new Set())).add(cls);
  18138. }
  18139. function removeTransitionClass(el, cls) {
  18140. cls.split(/\s+/).forEach(c => c && el.classList.remove(c));
  18141. const { _vtc } = el;
  18142. if (_vtc) {
  18143. _vtc.delete(cls);
  18144. if (!_vtc.size) {
  18145. el._vtc = undefined;
  18146. }
  18147. }
  18148. }
  18149. function nextFrame(cb) {
  18150. requestAnimationFrame(() => {
  18151. requestAnimationFrame(cb);
  18152. });
  18153. }
  18154. let endId = 0;
  18155. function whenTransitionEnds(el, expectedType, explicitTimeout, resolve) {
  18156. const id = (el._endId = ++endId);
  18157. const resolveIfNotStale = () => {
  18158. if (id === el._endId) {
  18159. resolve();
  18160. }
  18161. };
  18162. if (explicitTimeout) {
  18163. return setTimeout(resolveIfNotStale, explicitTimeout);
  18164. }
  18165. const { type, timeout, propCount } = getTransitionInfo(el, expectedType);
  18166. if (!type) {
  18167. return resolve();
  18168. }
  18169. const endEvent = type + 'end';
  18170. let ended = 0;
  18171. const end = () => {
  18172. el.removeEventListener(endEvent, onEnd);
  18173. resolveIfNotStale();
  18174. };
  18175. const onEnd = (e) => {
  18176. if (e.target === el && ++ended >= propCount) {
  18177. end();
  18178. }
  18179. };
  18180. setTimeout(() => {
  18181. if (ended < propCount) {
  18182. end();
  18183. }
  18184. }, timeout + 1);
  18185. el.addEventListener(endEvent, onEnd);
  18186. }
  18187. function getTransitionInfo(el, expectedType) {
  18188. const styles = window.getComputedStyle(el);
  18189. // JSDOM may return undefined for transition properties
  18190. const getStyleProperties = (key) => (styles[key] || '').split(', ');
  18191. const transitionDelays = getStyleProperties(TRANSITION + 'Delay');
  18192. const transitionDurations = getStyleProperties(TRANSITION + 'Duration');
  18193. const transitionTimeout = getTimeout(transitionDelays, transitionDurations);
  18194. const animationDelays = getStyleProperties(ANIMATION + 'Delay');
  18195. const animationDurations = getStyleProperties(ANIMATION + 'Duration');
  18196. const animationTimeout = getTimeout(animationDelays, animationDurations);
  18197. let type = null;
  18198. let timeout = 0;
  18199. let propCount = 0;
  18200. /* istanbul ignore if */
  18201. if (expectedType === TRANSITION) {
  18202. if (transitionTimeout > 0) {
  18203. type = TRANSITION;
  18204. timeout = transitionTimeout;
  18205. propCount = transitionDurations.length;
  18206. }
  18207. }
  18208. else if (expectedType === ANIMATION) {
  18209. if (animationTimeout > 0) {
  18210. type = ANIMATION;
  18211. timeout = animationTimeout;
  18212. propCount = animationDurations.length;
  18213. }
  18214. }
  18215. else {
  18216. timeout = Math.max(transitionTimeout, animationTimeout);
  18217. type =
  18218. timeout > 0
  18219. ? transitionTimeout > animationTimeout
  18220. ? TRANSITION
  18221. : ANIMATION
  18222. : null;
  18223. propCount = type
  18224. ? type === TRANSITION
  18225. ? transitionDurations.length
  18226. : animationDurations.length
  18227. : 0;
  18228. }
  18229. const hasTransform = type === TRANSITION &&
  18230. /\b(transform|all)(,|$)/.test(styles[TRANSITION + 'Property']);
  18231. return {
  18232. type,
  18233. timeout,
  18234. propCount,
  18235. hasTransform
  18236. };
  18237. }
  18238. function getTimeout(delays, durations) {
  18239. while (delays.length < durations.length) {
  18240. delays = delays.concat(delays);
  18241. }
  18242. return Math.max(...durations.map((d, i) => toMs(d) + toMs(delays[i])));
  18243. }
  18244. // Old versions of Chromium (below 61.0.3163.100) formats floating pointer
  18245. // numbers in a locale-dependent way, using a comma instead of a dot.
  18246. // If comma is not replaced with a dot, the input will be rounded down
  18247. // (i.e. acting as a floor function) causing unexpected behaviors
  18248. function toMs(s) {
  18249. return Number(s.slice(0, -1).replace(',', '.')) * 1000;
  18250. }
  18251. // synchronously force layout to put elements into a certain state
  18252. function forceReflow() {
  18253. return document.body.offsetHeight;
  18254. }
  18255. const positionMap = new WeakMap();
  18256. const newPositionMap = new WeakMap();
  18257. const TransitionGroupImpl = {
  18258. name: 'TransitionGroup',
  18259. props: /*#__PURE__*/ (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)({}, TransitionPropsValidators, {
  18260. tag: String,
  18261. moveClass: String
  18262. }),
  18263. setup(props, { slots }) {
  18264. const instance = (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.getCurrentInstance)();
  18265. const state = (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.useTransitionState)();
  18266. let prevChildren;
  18267. let children;
  18268. (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.onUpdated)(() => {
  18269. // children is guaranteed to exist after initial render
  18270. if (!prevChildren.length) {
  18271. return;
  18272. }
  18273. const moveClass = props.moveClass || `${props.name || 'v'}-move`;
  18274. if (!hasCSSTransform(prevChildren[0].el, instance.vnode.el, moveClass)) {
  18275. return;
  18276. }
  18277. // we divide the work into three loops to avoid mixing DOM reads and writes
  18278. // in each iteration - which helps prevent layout thrashing.
  18279. prevChildren.forEach(callPendingCbs);
  18280. prevChildren.forEach(recordPosition);
  18281. const movedChildren = prevChildren.filter(applyTranslation);
  18282. // force reflow to put everything in position
  18283. forceReflow();
  18284. movedChildren.forEach(c => {
  18285. const el = c.el;
  18286. const style = el.style;
  18287. addTransitionClass(el, moveClass);
  18288. style.transform = style.webkitTransform = style.transitionDuration = '';
  18289. const cb = (el._moveCb = (e) => {
  18290. if (e && e.target !== el) {
  18291. return;
  18292. }
  18293. if (!e || /transform$/.test(e.propertyName)) {
  18294. el.removeEventListener('transitionend', cb);
  18295. el._moveCb = null;
  18296. removeTransitionClass(el, moveClass);
  18297. }
  18298. });
  18299. el.addEventListener('transitionend', cb);
  18300. });
  18301. });
  18302. return () => {
  18303. const rawProps = (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_2__.toRaw)(props);
  18304. const cssTransitionProps = resolveTransitionProps(rawProps);
  18305. let tag = rawProps.tag || _vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.Fragment;
  18306. prevChildren = children;
  18307. children = slots.default ? (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.getTransitionRawChildren)(slots.default()) : [];
  18308. for (let i = 0; i < children.length; i++) {
  18309. const child = children[i];
  18310. if (child.key != null) {
  18311. (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.setTransitionHooks)(child, (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.resolveTransitionHooks)(child, cssTransitionProps, state, instance));
  18312. }
  18313. else if ((true)) {
  18314. (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.warn)(`<TransitionGroup> children must be keyed.`);
  18315. }
  18316. }
  18317. if (prevChildren) {
  18318. for (let i = 0; i < prevChildren.length; i++) {
  18319. const child = prevChildren[i];
  18320. (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.setTransitionHooks)(child, (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.resolveTransitionHooks)(child, cssTransitionProps, state, instance));
  18321. positionMap.set(child, child.el.getBoundingClientRect());
  18322. }
  18323. }
  18324. return (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.createVNode)(tag, null, children);
  18325. };
  18326. }
  18327. };
  18328. const TransitionGroup = TransitionGroupImpl;
  18329. function callPendingCbs(c) {
  18330. const el = c.el;
  18331. if (el._moveCb) {
  18332. el._moveCb();
  18333. }
  18334. if (el._enterCb) {
  18335. el._enterCb();
  18336. }
  18337. }
  18338. function recordPosition(c) {
  18339. newPositionMap.set(c, c.el.getBoundingClientRect());
  18340. }
  18341. function applyTranslation(c) {
  18342. const oldPos = positionMap.get(c);
  18343. const newPos = newPositionMap.get(c);
  18344. const dx = oldPos.left - newPos.left;
  18345. const dy = oldPos.top - newPos.top;
  18346. if (dx || dy) {
  18347. const s = c.el.style;
  18348. s.transform = s.webkitTransform = `translate(${dx}px,${dy}px)`;
  18349. s.transitionDuration = '0s';
  18350. return c;
  18351. }
  18352. }
  18353. function hasCSSTransform(el, root, moveClass) {
  18354. // Detect whether an element with the move class applied has
  18355. // CSS transitions. Since the element may be inside an entering
  18356. // transition at this very moment, we make a clone of it and remove
  18357. // all other transition classes applied to ensure only the move class
  18358. // is applied.
  18359. const clone = el.cloneNode();
  18360. if (el._vtc) {
  18361. el._vtc.forEach(cls => {
  18362. cls.split(/\s+/).forEach(c => c && clone.classList.remove(c));
  18363. });
  18364. }
  18365. moveClass.split(/\s+/).forEach(c => c && clone.classList.add(c));
  18366. clone.style.display = 'none';
  18367. const container = (root.nodeType === 1 ? root : root.parentNode);
  18368. container.appendChild(clone);
  18369. const { hasTransform } = getTransitionInfo(clone);
  18370. container.removeChild(clone);
  18371. return hasTransform;
  18372. }
  18373. const getModelAssigner = (vnode) => {
  18374. const fn = vnode.props['onUpdate:modelValue'];
  18375. return (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(fn) ? value => (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.invokeArrayFns)(fn, value) : fn;
  18376. };
  18377. function onCompositionStart(e) {
  18378. e.target.composing = true;
  18379. }
  18380. function onCompositionEnd(e) {
  18381. const target = e.target;
  18382. if (target.composing) {
  18383. target.composing = false;
  18384. trigger(target, 'input');
  18385. }
  18386. }
  18387. function trigger(el, type) {
  18388. const e = document.createEvent('HTMLEvents');
  18389. e.initEvent(type, true, true);
  18390. el.dispatchEvent(e);
  18391. }
  18392. // We are exporting the v-model runtime directly as vnode hooks so that it can
  18393. // be tree-shaken in case v-model is never used.
  18394. const vModelText = {
  18395. created(el, { modifiers: { lazy, trim, number } }, vnode) {
  18396. el._assign = getModelAssigner(vnode);
  18397. const castToNumber = number || (vnode.props && vnode.props.type === 'number');
  18398. addEventListener(el, lazy ? 'change' : 'input', e => {
  18399. if (e.target.composing)
  18400. return;
  18401. let domValue = el.value;
  18402. if (trim) {
  18403. domValue = domValue.trim();
  18404. }
  18405. else if (castToNumber) {
  18406. domValue = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.toNumber)(domValue);
  18407. }
  18408. el._assign(domValue);
  18409. });
  18410. if (trim) {
  18411. addEventListener(el, 'change', () => {
  18412. el.value = el.value.trim();
  18413. });
  18414. }
  18415. if (!lazy) {
  18416. addEventListener(el, 'compositionstart', onCompositionStart);
  18417. addEventListener(el, 'compositionend', onCompositionEnd);
  18418. // Safari < 10.2 & UIWebView doesn't fire compositionend when
  18419. // switching focus before confirming composition choice
  18420. // this also fixes the issue where some browsers e.g. iOS Chrome
  18421. // fires "change" instead of "input" on autocomplete.
  18422. addEventListener(el, 'change', onCompositionEnd);
  18423. }
  18424. },
  18425. // set value on mounted so it's after min/max for type="range"
  18426. mounted(el, { value }) {
  18427. el.value = value == null ? '' : value;
  18428. },
  18429. beforeUpdate(el, { value, modifiers: { lazy, trim, number } }, vnode) {
  18430. el._assign = getModelAssigner(vnode);
  18431. // avoid clearing unresolved text. #2302
  18432. if (el.composing)
  18433. return;
  18434. if (document.activeElement === el) {
  18435. if (lazy) {
  18436. return;
  18437. }
  18438. if (trim && el.value.trim() === value) {
  18439. return;
  18440. }
  18441. if ((number || el.type === 'number') && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.toNumber)(el.value) === value) {
  18442. return;
  18443. }
  18444. }
  18445. const newValue = value == null ? '' : value;
  18446. if (el.value !== newValue) {
  18447. el.value = newValue;
  18448. }
  18449. }
  18450. };
  18451. const vModelCheckbox = {
  18452. // #4096 array checkboxes need to be deep traversed
  18453. deep: true,
  18454. created(el, _, vnode) {
  18455. el._assign = getModelAssigner(vnode);
  18456. addEventListener(el, 'change', () => {
  18457. const modelValue = el._modelValue;
  18458. const elementValue = getValue(el);
  18459. const checked = el.checked;
  18460. const assign = el._assign;
  18461. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(modelValue)) {
  18462. const index = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.looseIndexOf)(modelValue, elementValue);
  18463. const found = index !== -1;
  18464. if (checked && !found) {
  18465. assign(modelValue.concat(elementValue));
  18466. }
  18467. else if (!checked && found) {
  18468. const filtered = [...modelValue];
  18469. filtered.splice(index, 1);
  18470. assign(filtered);
  18471. }
  18472. }
  18473. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isSet)(modelValue)) {
  18474. const cloned = new Set(modelValue);
  18475. if (checked) {
  18476. cloned.add(elementValue);
  18477. }
  18478. else {
  18479. cloned.delete(elementValue);
  18480. }
  18481. assign(cloned);
  18482. }
  18483. else {
  18484. assign(getCheckboxValue(el, checked));
  18485. }
  18486. });
  18487. },
  18488. // set initial checked on mount to wait for true-value/false-value
  18489. mounted: setChecked,
  18490. beforeUpdate(el, binding, vnode) {
  18491. el._assign = getModelAssigner(vnode);
  18492. setChecked(el, binding, vnode);
  18493. }
  18494. };
  18495. function setChecked(el, { value, oldValue }, vnode) {
  18496. el._modelValue = value;
  18497. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(value)) {
  18498. el.checked = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.looseIndexOf)(value, vnode.props.value) > -1;
  18499. }
  18500. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isSet)(value)) {
  18501. el.checked = value.has(vnode.props.value);
  18502. }
  18503. else if (value !== oldValue) {
  18504. el.checked = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.looseEqual)(value, getCheckboxValue(el, true));
  18505. }
  18506. }
  18507. const vModelRadio = {
  18508. created(el, { value }, vnode) {
  18509. el.checked = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.looseEqual)(value, vnode.props.value);
  18510. el._assign = getModelAssigner(vnode);
  18511. addEventListener(el, 'change', () => {
  18512. el._assign(getValue(el));
  18513. });
  18514. },
  18515. beforeUpdate(el, { value, oldValue }, vnode) {
  18516. el._assign = getModelAssigner(vnode);
  18517. if (value !== oldValue) {
  18518. el.checked = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.looseEqual)(value, vnode.props.value);
  18519. }
  18520. }
  18521. };
  18522. const vModelSelect = {
  18523. // <select multiple> value need to be deep traversed
  18524. deep: true,
  18525. created(el, { value, modifiers: { number } }, vnode) {
  18526. const isSetModel = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isSet)(value);
  18527. addEventListener(el, 'change', () => {
  18528. const selectedVal = Array.prototype.filter
  18529. .call(el.options, (o) => o.selected)
  18530. .map((o) => number ? (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.toNumber)(getValue(o)) : getValue(o));
  18531. el._assign(el.multiple
  18532. ? isSetModel
  18533. ? new Set(selectedVal)
  18534. : selectedVal
  18535. : selectedVal[0]);
  18536. });
  18537. el._assign = getModelAssigner(vnode);
  18538. },
  18539. // set value in mounted & updated because <select> relies on its children
  18540. // <option>s.
  18541. mounted(el, { value }) {
  18542. setSelected(el, value);
  18543. },
  18544. beforeUpdate(el, _binding, vnode) {
  18545. el._assign = getModelAssigner(vnode);
  18546. },
  18547. updated(el, { value }) {
  18548. setSelected(el, value);
  18549. }
  18550. };
  18551. function setSelected(el, value) {
  18552. const isMultiple = el.multiple;
  18553. if (isMultiple && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(value) && !(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isSet)(value)) {
  18554. ( true) &&
  18555. (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.warn)(`<select multiple v-model> expects an Array or Set value for its binding, ` +
  18556. `but got ${Object.prototype.toString.call(value).slice(8, -1)}.`);
  18557. return;
  18558. }
  18559. for (let i = 0, l = el.options.length; i < l; i++) {
  18560. const option = el.options[i];
  18561. const optionValue = getValue(option);
  18562. if (isMultiple) {
  18563. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(value)) {
  18564. option.selected = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.looseIndexOf)(value, optionValue) > -1;
  18565. }
  18566. else {
  18567. option.selected = value.has(optionValue);
  18568. }
  18569. }
  18570. else {
  18571. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.looseEqual)(getValue(option), value)) {
  18572. if (el.selectedIndex !== i)
  18573. el.selectedIndex = i;
  18574. return;
  18575. }
  18576. }
  18577. }
  18578. if (!isMultiple && el.selectedIndex !== -1) {
  18579. el.selectedIndex = -1;
  18580. }
  18581. }
  18582. // retrieve raw value set via :value bindings
  18583. function getValue(el) {
  18584. return '_value' in el ? el._value : el.value;
  18585. }
  18586. // retrieve raw value for true-value and false-value set via :true-value or :false-value bindings
  18587. function getCheckboxValue(el, checked) {
  18588. const key = checked ? '_trueValue' : '_falseValue';
  18589. return key in el ? el[key] : checked;
  18590. }
  18591. const vModelDynamic = {
  18592. created(el, binding, vnode) {
  18593. callModelHook(el, binding, vnode, null, 'created');
  18594. },
  18595. mounted(el, binding, vnode) {
  18596. callModelHook(el, binding, vnode, null, 'mounted');
  18597. },
  18598. beforeUpdate(el, binding, vnode, prevVNode) {
  18599. callModelHook(el, binding, vnode, prevVNode, 'beforeUpdate');
  18600. },
  18601. updated(el, binding, vnode, prevVNode) {
  18602. callModelHook(el, binding, vnode, prevVNode, 'updated');
  18603. }
  18604. };
  18605. function callModelHook(el, binding, vnode, prevVNode, hook) {
  18606. let modelToUse;
  18607. switch (el.tagName) {
  18608. case 'SELECT':
  18609. modelToUse = vModelSelect;
  18610. break;
  18611. case 'TEXTAREA':
  18612. modelToUse = vModelText;
  18613. break;
  18614. default:
  18615. switch (vnode.props && vnode.props.type) {
  18616. case 'checkbox':
  18617. modelToUse = vModelCheckbox;
  18618. break;
  18619. case 'radio':
  18620. modelToUse = vModelRadio;
  18621. break;
  18622. default:
  18623. modelToUse = vModelText;
  18624. }
  18625. }
  18626. const fn = modelToUse[hook];
  18627. fn && fn(el, binding, vnode, prevVNode);
  18628. }
  18629. // SSR vnode transforms, only used when user includes client-oriented render
  18630. // function in SSR
  18631. function initVModelForSSR() {
  18632. vModelText.getSSRProps = ({ value }) => ({ value });
  18633. vModelRadio.getSSRProps = ({ value }, vnode) => {
  18634. if (vnode.props && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.looseEqual)(vnode.props.value, value)) {
  18635. return { checked: true };
  18636. }
  18637. };
  18638. vModelCheckbox.getSSRProps = ({ value }, vnode) => {
  18639. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isArray)(value)) {
  18640. if (vnode.props && (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.looseIndexOf)(value, vnode.props.value) > -1) {
  18641. return { checked: true };
  18642. }
  18643. }
  18644. else if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isSet)(value)) {
  18645. if (vnode.props && value.has(vnode.props.value)) {
  18646. return { checked: true };
  18647. }
  18648. }
  18649. else if (value) {
  18650. return { checked: true };
  18651. }
  18652. };
  18653. }
  18654. const systemModifiers = ['ctrl', 'shift', 'alt', 'meta'];
  18655. const modifierGuards = {
  18656. stop: e => e.stopPropagation(),
  18657. prevent: e => e.preventDefault(),
  18658. self: e => e.target !== e.currentTarget,
  18659. ctrl: e => !e.ctrlKey,
  18660. shift: e => !e.shiftKey,
  18661. alt: e => !e.altKey,
  18662. meta: e => !e.metaKey,
  18663. left: e => 'button' in e && e.button !== 0,
  18664. middle: e => 'button' in e && e.button !== 1,
  18665. right: e => 'button' in e && e.button !== 2,
  18666. exact: (e, modifiers) => systemModifiers.some(m => e[`${m}Key`] && !modifiers.includes(m))
  18667. };
  18668. /**
  18669. * @private
  18670. */
  18671. const withModifiers = (fn, modifiers) => {
  18672. return (event, ...args) => {
  18673. for (let i = 0; i < modifiers.length; i++) {
  18674. const guard = modifierGuards[modifiers[i]];
  18675. if (guard && guard(event, modifiers))
  18676. return;
  18677. }
  18678. return fn(event, ...args);
  18679. };
  18680. };
  18681. // Kept for 2.x compat.
  18682. // Note: IE11 compat for `spacebar` and `del` is removed for now.
  18683. const keyNames = {
  18684. esc: 'escape',
  18685. space: ' ',
  18686. up: 'arrow-up',
  18687. left: 'arrow-left',
  18688. right: 'arrow-right',
  18689. down: 'arrow-down',
  18690. delete: 'backspace'
  18691. };
  18692. /**
  18693. * @private
  18694. */
  18695. const withKeys = (fn, modifiers) => {
  18696. return (event) => {
  18697. if (!('key' in event)) {
  18698. return;
  18699. }
  18700. const eventKey = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.hyphenate)(event.key);
  18701. if (modifiers.some(k => k === eventKey || keyNames[k] === eventKey)) {
  18702. return fn(event);
  18703. }
  18704. };
  18705. };
  18706. const vShow = {
  18707. beforeMount(el, { value }, { transition }) {
  18708. el._vod = el.style.display === 'none' ? '' : el.style.display;
  18709. if (transition && value) {
  18710. transition.beforeEnter(el);
  18711. }
  18712. else {
  18713. setDisplay(el, value);
  18714. }
  18715. },
  18716. mounted(el, { value }, { transition }) {
  18717. if (transition && value) {
  18718. transition.enter(el);
  18719. }
  18720. },
  18721. updated(el, { value, oldValue }, { transition }) {
  18722. if (!value === !oldValue)
  18723. return;
  18724. if (transition) {
  18725. if (value) {
  18726. transition.beforeEnter(el);
  18727. setDisplay(el, true);
  18728. transition.enter(el);
  18729. }
  18730. else {
  18731. transition.leave(el, () => {
  18732. setDisplay(el, false);
  18733. });
  18734. }
  18735. }
  18736. else {
  18737. setDisplay(el, value);
  18738. }
  18739. },
  18740. beforeUnmount(el, { value }) {
  18741. setDisplay(el, value);
  18742. }
  18743. };
  18744. function setDisplay(el, value) {
  18745. el.style.display = value ? el._vod : 'none';
  18746. }
  18747. // SSR vnode transforms, only used when user includes client-oriented render
  18748. // function in SSR
  18749. function initVShowForSSR() {
  18750. vShow.getSSRProps = ({ value }) => {
  18751. if (!value) {
  18752. return { style: { display: 'none' } };
  18753. }
  18754. };
  18755. }
  18756. const rendererOptions = (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)({ patchProp }, nodeOps);
  18757. // lazy create the renderer - this makes core renderer logic tree-shakable
  18758. // in case the user only imports reactivity utilities from Vue.
  18759. let renderer;
  18760. let enabledHydration = false;
  18761. function ensureRenderer() {
  18762. return (renderer ||
  18763. (renderer = (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.createRenderer)(rendererOptions)));
  18764. }
  18765. function ensureHydrationRenderer() {
  18766. renderer = enabledHydration
  18767. ? renderer
  18768. : (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.createHydrationRenderer)(rendererOptions);
  18769. enabledHydration = true;
  18770. return renderer;
  18771. }
  18772. // use explicit type casts here to avoid import() calls in rolled-up d.ts
  18773. const render = ((...args) => {
  18774. ensureRenderer().render(...args);
  18775. });
  18776. const hydrate = ((...args) => {
  18777. ensureHydrationRenderer().hydrate(...args);
  18778. });
  18779. const createApp = ((...args) => {
  18780. const app = ensureRenderer().createApp(...args);
  18781. if ((true)) {
  18782. injectNativeTagCheck(app);
  18783. injectCompilerOptionsCheck(app);
  18784. }
  18785. const { mount } = app;
  18786. app.mount = (containerOrSelector) => {
  18787. const container = normalizeContainer(containerOrSelector);
  18788. if (!container)
  18789. return;
  18790. const component = app._component;
  18791. if (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isFunction)(component) && !component.render && !component.template) {
  18792. // __UNSAFE__
  18793. // Reason: potential execution of JS expressions in in-DOM template.
  18794. // The user must make sure the in-DOM template is trusted. If it's
  18795. // rendered by the server, the template should not contain any user data.
  18796. component.template = container.innerHTML;
  18797. }
  18798. // clear content before mounting
  18799. container.innerHTML = '';
  18800. const proxy = mount(container, false, container instanceof SVGElement);
  18801. if (container instanceof Element) {
  18802. container.removeAttribute('v-cloak');
  18803. container.setAttribute('data-v-app', '');
  18804. }
  18805. return proxy;
  18806. };
  18807. return app;
  18808. });
  18809. const createSSRApp = ((...args) => {
  18810. const app = ensureHydrationRenderer().createApp(...args);
  18811. if ((true)) {
  18812. injectNativeTagCheck(app);
  18813. injectCompilerOptionsCheck(app);
  18814. }
  18815. const { mount } = app;
  18816. app.mount = (containerOrSelector) => {
  18817. const container = normalizeContainer(containerOrSelector);
  18818. if (container) {
  18819. return mount(container, true, container instanceof SVGElement);
  18820. }
  18821. };
  18822. return app;
  18823. });
  18824. function injectNativeTagCheck(app) {
  18825. // Inject `isNativeTag`
  18826. // this is used for component name validation (dev only)
  18827. Object.defineProperty(app.config, 'isNativeTag', {
  18828. value: (tag) => (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isHTMLTag)(tag) || (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isSVGTag)(tag),
  18829. writable: false
  18830. });
  18831. }
  18832. // dev only
  18833. function injectCompilerOptionsCheck(app) {
  18834. if ((0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.isRuntimeOnly)()) {
  18835. const isCustomElement = app.config.isCustomElement;
  18836. Object.defineProperty(app.config, 'isCustomElement', {
  18837. get() {
  18838. return isCustomElement;
  18839. },
  18840. set() {
  18841. (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.warn)(`The \`isCustomElement\` config option is deprecated. Use ` +
  18842. `\`compilerOptions.isCustomElement\` instead.`);
  18843. }
  18844. });
  18845. const compilerOptions = app.config.compilerOptions;
  18846. const msg = `The \`compilerOptions\` config option is only respected when using ` +
  18847. `a build of Vue.js that includes the runtime compiler (aka "full build"). ` +
  18848. `Since you are using the runtime-only build, \`compilerOptions\` ` +
  18849. `must be passed to \`@vue/compiler-dom\` in the build setup instead.\n` +
  18850. `- For vue-loader: pass it via vue-loader's \`compilerOptions\` loader option.\n` +
  18851. `- For vue-cli: see https://cli.vuejs.org/guide/webpack.html#modifying-options-of-a-loader\n` +
  18852. `- For vite: pass it via @vitejs/plugin-vue options. See https://github.com/vitejs/vite/tree/main/packages/plugin-vue#example-for-passing-options-to-vuecompiler-dom`;
  18853. Object.defineProperty(app.config, 'compilerOptions', {
  18854. get() {
  18855. (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.warn)(msg);
  18856. return compilerOptions;
  18857. },
  18858. set() {
  18859. (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.warn)(msg);
  18860. }
  18861. });
  18862. }
  18863. }
  18864. function normalizeContainer(container) {
  18865. if ((0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(container)) {
  18866. const res = document.querySelector(container);
  18867. if (( true) && !res) {
  18868. (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.warn)(`Failed to mount app: mount target selector "${container}" returned null.`);
  18869. }
  18870. return res;
  18871. }
  18872. if (( true) &&
  18873. window.ShadowRoot &&
  18874. container instanceof window.ShadowRoot &&
  18875. container.mode === 'closed') {
  18876. (0,_vue_runtime_core__WEBPACK_IMPORTED_MODULE_0__.warn)(`mounting on a ShadowRoot with \`{mode: "closed"}\` may lead to unpredictable bugs`);
  18877. }
  18878. return container;
  18879. }
  18880. let ssrDirectiveInitialized = false;
  18881. /**
  18882. * @internal
  18883. */
  18884. const initDirectivesForSSR = () => {
  18885. if (!ssrDirectiveInitialized) {
  18886. ssrDirectiveInitialized = true;
  18887. initVModelForSSR();
  18888. initVShowForSSR();
  18889. }
  18890. }
  18891. ;
  18892. /***/ }),
  18893. /***/ "./node_modules/@vue/shared/dist/shared.esm-bundler.js":
  18894. /*!*************************************************************!*\
  18895. !*** ./node_modules/@vue/shared/dist/shared.esm-bundler.js ***!
  18896. \*************************************************************/
  18897. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  18898. "use strict";
  18899. __webpack_require__.r(__webpack_exports__);
  18900. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  18901. /* harmony export */ "EMPTY_ARR": () => (/* binding */ EMPTY_ARR),
  18902. /* harmony export */ "EMPTY_OBJ": () => (/* binding */ EMPTY_OBJ),
  18903. /* harmony export */ "NO": () => (/* binding */ NO),
  18904. /* harmony export */ "NOOP": () => (/* binding */ NOOP),
  18905. /* harmony export */ "PatchFlagNames": () => (/* binding */ PatchFlagNames),
  18906. /* harmony export */ "camelize": () => (/* binding */ camelize),
  18907. /* harmony export */ "capitalize": () => (/* binding */ capitalize),
  18908. /* harmony export */ "def": () => (/* binding */ def),
  18909. /* harmony export */ "escapeHtml": () => (/* binding */ escapeHtml),
  18910. /* harmony export */ "escapeHtmlComment": () => (/* binding */ escapeHtmlComment),
  18911. /* harmony export */ "extend": () => (/* binding */ extend),
  18912. /* harmony export */ "generateCodeFrame": () => (/* binding */ generateCodeFrame),
  18913. /* harmony export */ "getGlobalThis": () => (/* binding */ getGlobalThis),
  18914. /* harmony export */ "hasChanged": () => (/* binding */ hasChanged),
  18915. /* harmony export */ "hasOwn": () => (/* binding */ hasOwn),
  18916. /* harmony export */ "hyphenate": () => (/* binding */ hyphenate),
  18917. /* harmony export */ "includeBooleanAttr": () => (/* binding */ includeBooleanAttr),
  18918. /* harmony export */ "invokeArrayFns": () => (/* binding */ invokeArrayFns),
  18919. /* harmony export */ "isArray": () => (/* binding */ isArray),
  18920. /* harmony export */ "isBooleanAttr": () => (/* binding */ isBooleanAttr),
  18921. /* harmony export */ "isBuiltInDirective": () => (/* binding */ isBuiltInDirective),
  18922. /* harmony export */ "isDate": () => (/* binding */ isDate),
  18923. /* harmony export */ "isFunction": () => (/* binding */ isFunction),
  18924. /* harmony export */ "isGloballyWhitelisted": () => (/* binding */ isGloballyWhitelisted),
  18925. /* harmony export */ "isHTMLTag": () => (/* binding */ isHTMLTag),
  18926. /* harmony export */ "isIntegerKey": () => (/* binding */ isIntegerKey),
  18927. /* harmony export */ "isKnownHtmlAttr": () => (/* binding */ isKnownHtmlAttr),
  18928. /* harmony export */ "isKnownSvgAttr": () => (/* binding */ isKnownSvgAttr),
  18929. /* harmony export */ "isMap": () => (/* binding */ isMap),
  18930. /* harmony export */ "isModelListener": () => (/* binding */ isModelListener),
  18931. /* harmony export */ "isNoUnitNumericStyleProp": () => (/* binding */ isNoUnitNumericStyleProp),
  18932. /* harmony export */ "isObject": () => (/* binding */ isObject),
  18933. /* harmony export */ "isOn": () => (/* binding */ isOn),
  18934. /* harmony export */ "isPlainObject": () => (/* binding */ isPlainObject),
  18935. /* harmony export */ "isPromise": () => (/* binding */ isPromise),
  18936. /* harmony export */ "isReservedProp": () => (/* binding */ isReservedProp),
  18937. /* harmony export */ "isSSRSafeAttrName": () => (/* binding */ isSSRSafeAttrName),
  18938. /* harmony export */ "isSVGTag": () => (/* binding */ isSVGTag),
  18939. /* harmony export */ "isSet": () => (/* binding */ isSet),
  18940. /* harmony export */ "isSpecialBooleanAttr": () => (/* binding */ isSpecialBooleanAttr),
  18941. /* harmony export */ "isString": () => (/* binding */ isString),
  18942. /* harmony export */ "isSymbol": () => (/* binding */ isSymbol),
  18943. /* harmony export */ "isVoidTag": () => (/* binding */ isVoidTag),
  18944. /* harmony export */ "looseEqual": () => (/* binding */ looseEqual),
  18945. /* harmony export */ "looseIndexOf": () => (/* binding */ looseIndexOf),
  18946. /* harmony export */ "makeMap": () => (/* binding */ makeMap),
  18947. /* harmony export */ "normalizeClass": () => (/* binding */ normalizeClass),
  18948. /* harmony export */ "normalizeProps": () => (/* binding */ normalizeProps),
  18949. /* harmony export */ "normalizeStyle": () => (/* binding */ normalizeStyle),
  18950. /* harmony export */ "objectToString": () => (/* binding */ objectToString),
  18951. /* harmony export */ "parseStringStyle": () => (/* binding */ parseStringStyle),
  18952. /* harmony export */ "propsToAttrMap": () => (/* binding */ propsToAttrMap),
  18953. /* harmony export */ "remove": () => (/* binding */ remove),
  18954. /* harmony export */ "slotFlagsText": () => (/* binding */ slotFlagsText),
  18955. /* harmony export */ "stringifyStyle": () => (/* binding */ stringifyStyle),
  18956. /* harmony export */ "toDisplayString": () => (/* binding */ toDisplayString),
  18957. /* harmony export */ "toHandlerKey": () => (/* binding */ toHandlerKey),
  18958. /* harmony export */ "toNumber": () => (/* binding */ toNumber),
  18959. /* harmony export */ "toRawType": () => (/* binding */ toRawType),
  18960. /* harmony export */ "toTypeString": () => (/* binding */ toTypeString)
  18961. /* harmony export */ });
  18962. /**
  18963. * Make a map and return a function for checking if a key
  18964. * is in that map.
  18965. * IMPORTANT: all calls of this function must be prefixed with
  18966. * \/\*#\_\_PURE\_\_\*\/
  18967. * So that rollup can tree-shake them if necessary.
  18968. */
  18969. function makeMap(str, expectsLowerCase) {
  18970. const map = Object.create(null);
  18971. const list = str.split(',');
  18972. for (let i = 0; i < list.length; i++) {
  18973. map[list[i]] = true;
  18974. }
  18975. return expectsLowerCase ? val => !!map[val.toLowerCase()] : val => !!map[val];
  18976. }
  18977. /**
  18978. * dev only flag -> name mapping
  18979. */
  18980. const PatchFlagNames = {
  18981. [1 /* TEXT */]: `TEXT`,
  18982. [2 /* CLASS */]: `CLASS`,
  18983. [4 /* STYLE */]: `STYLE`,
  18984. [8 /* PROPS */]: `PROPS`,
  18985. [16 /* FULL_PROPS */]: `FULL_PROPS`,
  18986. [32 /* HYDRATE_EVENTS */]: `HYDRATE_EVENTS`,
  18987. [64 /* STABLE_FRAGMENT */]: `STABLE_FRAGMENT`,
  18988. [128 /* KEYED_FRAGMENT */]: `KEYED_FRAGMENT`,
  18989. [256 /* UNKEYED_FRAGMENT */]: `UNKEYED_FRAGMENT`,
  18990. [512 /* NEED_PATCH */]: `NEED_PATCH`,
  18991. [1024 /* DYNAMIC_SLOTS */]: `DYNAMIC_SLOTS`,
  18992. [2048 /* DEV_ROOT_FRAGMENT */]: `DEV_ROOT_FRAGMENT`,
  18993. [-1 /* HOISTED */]: `HOISTED`,
  18994. [-2 /* BAIL */]: `BAIL`
  18995. };
  18996. /**
  18997. * Dev only
  18998. */
  18999. const slotFlagsText = {
  19000. [1 /* STABLE */]: 'STABLE',
  19001. [2 /* DYNAMIC */]: 'DYNAMIC',
  19002. [3 /* FORWARDED */]: 'FORWARDED'
  19003. };
  19004. const GLOBALS_WHITE_LISTED = 'Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,' +
  19005. 'decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,' +
  19006. 'Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt';
  19007. const isGloballyWhitelisted = /*#__PURE__*/ makeMap(GLOBALS_WHITE_LISTED);
  19008. const range = 2;
  19009. function generateCodeFrame(source, start = 0, end = source.length) {
  19010. // Split the content into individual lines but capture the newline sequence
  19011. // that separated each line. This is important because the actual sequence is
  19012. // needed to properly take into account the full line length for offset
  19013. // comparison
  19014. let lines = source.split(/(\r?\n)/);
  19015. // Separate the lines and newline sequences into separate arrays for easier referencing
  19016. const newlineSequences = lines.filter((_, idx) => idx % 2 === 1);
  19017. lines = lines.filter((_, idx) => idx % 2 === 0);
  19018. let count = 0;
  19019. const res = [];
  19020. for (let i = 0; i < lines.length; i++) {
  19021. count +=
  19022. lines[i].length +
  19023. ((newlineSequences[i] && newlineSequences[i].length) || 0);
  19024. if (count >= start) {
  19025. for (let j = i - range; j <= i + range || end > count; j++) {
  19026. if (j < 0 || j >= lines.length)
  19027. continue;
  19028. const line = j + 1;
  19029. res.push(`${line}${' '.repeat(Math.max(3 - String(line).length, 0))}| ${lines[j]}`);
  19030. const lineLength = lines[j].length;
  19031. const newLineSeqLength = (newlineSequences[j] && newlineSequences[j].length) || 0;
  19032. if (j === i) {
  19033. // push underline
  19034. const pad = start - (count - (lineLength + newLineSeqLength));
  19035. const length = Math.max(1, end > count ? lineLength - pad : end - start);
  19036. res.push(` | ` + ' '.repeat(pad) + '^'.repeat(length));
  19037. }
  19038. else if (j > i) {
  19039. if (end > count) {
  19040. const length = Math.max(Math.min(end - count, lineLength), 1);
  19041. res.push(` | ` + '^'.repeat(length));
  19042. }
  19043. count += lineLength + newLineSeqLength;
  19044. }
  19045. }
  19046. break;
  19047. }
  19048. }
  19049. return res.join('\n');
  19050. }
  19051. /**
  19052. * On the client we only need to offer special cases for boolean attributes that
  19053. * have different names from their corresponding dom properties:
  19054. * - itemscope -> N/A
  19055. * - allowfullscreen -> allowFullscreen
  19056. * - formnovalidate -> formNoValidate
  19057. * - ismap -> isMap
  19058. * - nomodule -> noModule
  19059. * - novalidate -> noValidate
  19060. * - readonly -> readOnly
  19061. */
  19062. const specialBooleanAttrs = `itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`;
  19063. const isSpecialBooleanAttr = /*#__PURE__*/ makeMap(specialBooleanAttrs);
  19064. /**
  19065. * The full list is needed during SSR to produce the correct initial markup.
  19066. */
  19067. const isBooleanAttr = /*#__PURE__*/ makeMap(specialBooleanAttrs +
  19068. `,async,autofocus,autoplay,controls,default,defer,disabled,hidden,` +
  19069. `loop,open,required,reversed,scoped,seamless,` +
  19070. `checked,muted,multiple,selected`);
  19071. /**
  19072. * Boolean attributes should be included if the value is truthy or ''.
  19073. * e.g. `<select multiple>` compiles to `{ multiple: '' }`
  19074. */
  19075. function includeBooleanAttr(value) {
  19076. return !!value || value === '';
  19077. }
  19078. const unsafeAttrCharRE = /[>/="'\u0009\u000a\u000c\u0020]/;
  19079. const attrValidationCache = {};
  19080. function isSSRSafeAttrName(name) {
  19081. if (attrValidationCache.hasOwnProperty(name)) {
  19082. return attrValidationCache[name];
  19083. }
  19084. const isUnsafe = unsafeAttrCharRE.test(name);
  19085. if (isUnsafe) {
  19086. console.error(`unsafe attribute name: ${name}`);
  19087. }
  19088. return (attrValidationCache[name] = !isUnsafe);
  19089. }
  19090. const propsToAttrMap = {
  19091. acceptCharset: 'accept-charset',
  19092. className: 'class',
  19093. htmlFor: 'for',
  19094. httpEquiv: 'http-equiv'
  19095. };
  19096. /**
  19097. * CSS properties that accept plain numbers
  19098. */
  19099. const isNoUnitNumericStyleProp = /*#__PURE__*/ makeMap(`animation-iteration-count,border-image-outset,border-image-slice,` +
  19100. `border-image-width,box-flex,box-flex-group,box-ordinal-group,column-count,` +
  19101. `columns,flex,flex-grow,flex-positive,flex-shrink,flex-negative,flex-order,` +
  19102. `grid-row,grid-row-end,grid-row-span,grid-row-start,grid-column,` +
  19103. `grid-column-end,grid-column-span,grid-column-start,font-weight,line-clamp,` +
  19104. `line-height,opacity,order,orphans,tab-size,widows,z-index,zoom,` +
  19105. // SVG
  19106. `fill-opacity,flood-opacity,stop-opacity,stroke-dasharray,stroke-dashoffset,` +
  19107. `stroke-miterlimit,stroke-opacity,stroke-width`);
  19108. /**
  19109. * Known attributes, this is used for stringification of runtime static nodes
  19110. * so that we don't stringify bindings that cannot be set from HTML.
  19111. * Don't also forget to allow `data-*` and `aria-*`!
  19112. * Generated from https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes
  19113. */
  19114. const isKnownHtmlAttr = /*#__PURE__*/ makeMap(`accept,accept-charset,accesskey,action,align,allow,alt,async,` +
  19115. `autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,` +
  19116. `border,buffered,capture,challenge,charset,checked,cite,class,code,` +
  19117. `codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,` +
  19118. `coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,` +
  19119. `disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,` +
  19120. `formaction,formenctype,formmethod,formnovalidate,formtarget,headers,` +
  19121. `height,hidden,high,href,hreflang,http-equiv,icon,id,importance,integrity,` +
  19122. `ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,` +
  19123. `manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,` +
  19124. `open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,` +
  19125. `referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,` +
  19126. `selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,` +
  19127. `start,step,style,summary,tabindex,target,title,translate,type,usemap,` +
  19128. `value,width,wrap`);
  19129. /**
  19130. * Generated from https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute
  19131. */
  19132. const isKnownSvgAttr = /*#__PURE__*/ makeMap(`xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,` +
  19133. `arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,` +
  19134. `baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,` +
  19135. `clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,` +
  19136. `color-interpolation-filters,color-profile,color-rendering,` +
  19137. `contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,` +
  19138. `descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,` +
  19139. `dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,` +
  19140. `fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,` +
  19141. `font-family,font-size,font-size-adjust,font-stretch,font-style,` +
  19142. `font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,` +
  19143. `glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,` +
  19144. `gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,` +
  19145. `horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,` +
  19146. `k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,` +
  19147. `lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,` +
  19148. `marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,` +
  19149. `mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,` +
  19150. `name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,` +
  19151. `overflow,overline-position,overline-thickness,panose-1,paint-order,path,` +
  19152. `pathLength,patternContentUnits,patternTransform,patternUnits,ping,` +
  19153. `pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,` +
  19154. `preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,` +
  19155. `rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,` +
  19156. `restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,` +
  19157. `specularConstant,specularExponent,speed,spreadMethod,startOffset,` +
  19158. `stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,` +
  19159. `strikethrough-position,strikethrough-thickness,string,stroke,` +
  19160. `stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,` +
  19161. `stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,` +
  19162. `systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,` +
  19163. `text-decoration,text-rendering,textLength,to,transform,transform-origin,` +
  19164. `type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,` +
  19165. `unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,` +
  19166. `v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,` +
  19167. `vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,` +
  19168. `writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,` +
  19169. `xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xml:base,xml:lang,` +
  19170. `xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan`);
  19171. function normalizeStyle(value) {
  19172. if (isArray(value)) {
  19173. const res = {};
  19174. for (let i = 0; i < value.length; i++) {
  19175. const item = value[i];
  19176. const normalized = isString(item)
  19177. ? parseStringStyle(item)
  19178. : normalizeStyle(item);
  19179. if (normalized) {
  19180. for (const key in normalized) {
  19181. res[key] = normalized[key];
  19182. }
  19183. }
  19184. }
  19185. return res;
  19186. }
  19187. else if (isString(value)) {
  19188. return value;
  19189. }
  19190. else if (isObject(value)) {
  19191. return value;
  19192. }
  19193. }
  19194. const listDelimiterRE = /;(?![^(]*\))/g;
  19195. const propertyDelimiterRE = /:(.+)/;
  19196. function parseStringStyle(cssText) {
  19197. const ret = {};
  19198. cssText.split(listDelimiterRE).forEach(item => {
  19199. if (item) {
  19200. const tmp = item.split(propertyDelimiterRE);
  19201. tmp.length > 1 && (ret[tmp[0].trim()] = tmp[1].trim());
  19202. }
  19203. });
  19204. return ret;
  19205. }
  19206. function stringifyStyle(styles) {
  19207. let ret = '';
  19208. if (!styles || isString(styles)) {
  19209. return ret;
  19210. }
  19211. for (const key in styles) {
  19212. const value = styles[key];
  19213. const normalizedKey = key.startsWith(`--`) ? key : hyphenate(key);
  19214. if (isString(value) ||
  19215. (typeof value === 'number' && isNoUnitNumericStyleProp(normalizedKey))) {
  19216. // only render valid values
  19217. ret += `${normalizedKey}:${value};`;
  19218. }
  19219. }
  19220. return ret;
  19221. }
  19222. function normalizeClass(value) {
  19223. let res = '';
  19224. if (isString(value)) {
  19225. res = value;
  19226. }
  19227. else if (isArray(value)) {
  19228. for (let i = 0; i < value.length; i++) {
  19229. const normalized = normalizeClass(value[i]);
  19230. if (normalized) {
  19231. res += normalized + ' ';
  19232. }
  19233. }
  19234. }
  19235. else if (isObject(value)) {
  19236. for (const name in value) {
  19237. if (value[name]) {
  19238. res += name + ' ';
  19239. }
  19240. }
  19241. }
  19242. return res.trim();
  19243. }
  19244. function normalizeProps(props) {
  19245. if (!props)
  19246. return null;
  19247. let { class: klass, style } = props;
  19248. if (klass && !isString(klass)) {
  19249. props.class = normalizeClass(klass);
  19250. }
  19251. if (style) {
  19252. props.style = normalizeStyle(style);
  19253. }
  19254. return props;
  19255. }
  19256. // These tag configs are shared between compiler-dom and runtime-dom, so they
  19257. // https://developer.mozilla.org/en-US/docs/Web/HTML/Element
  19258. const HTML_TAGS = 'html,body,base,head,link,meta,style,title,address,article,aside,footer,' +
  19259. 'header,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,' +
  19260. 'figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,' +
  19261. 'data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,' +
  19262. 'time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,' +
  19263. 'canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,' +
  19264. 'th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,' +
  19265. 'option,output,progress,select,textarea,details,dialog,menu,' +
  19266. 'summary,template,blockquote,iframe,tfoot';
  19267. // https://developer.mozilla.org/en-US/docs/Web/SVG/Element
  19268. const SVG_TAGS = 'svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,' +
  19269. 'defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,' +
  19270. 'feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,' +
  19271. 'feDistanceLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,' +
  19272. 'feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,' +
  19273. 'fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,' +
  19274. 'foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,' +
  19275. 'mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,' +
  19276. 'polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,' +
  19277. 'text,textPath,title,tspan,unknown,use,view';
  19278. const VOID_TAGS = 'area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr';
  19279. /**
  19280. * Compiler only.
  19281. * Do NOT use in runtime code paths unless behind `(process.env.NODE_ENV !== 'production')` flag.
  19282. */
  19283. const isHTMLTag = /*#__PURE__*/ makeMap(HTML_TAGS);
  19284. /**
  19285. * Compiler only.
  19286. * Do NOT use in runtime code paths unless behind `(process.env.NODE_ENV !== 'production')` flag.
  19287. */
  19288. const isSVGTag = /*#__PURE__*/ makeMap(SVG_TAGS);
  19289. /**
  19290. * Compiler only.
  19291. * Do NOT use in runtime code paths unless behind `(process.env.NODE_ENV !== 'production')` flag.
  19292. */
  19293. const isVoidTag = /*#__PURE__*/ makeMap(VOID_TAGS);
  19294. const escapeRE = /["'&<>]/;
  19295. function escapeHtml(string) {
  19296. const str = '' + string;
  19297. const match = escapeRE.exec(str);
  19298. if (!match) {
  19299. return str;
  19300. }
  19301. let html = '';
  19302. let escaped;
  19303. let index;
  19304. let lastIndex = 0;
  19305. for (index = match.index; index < str.length; index++) {
  19306. switch (str.charCodeAt(index)) {
  19307. case 34: // "
  19308. escaped = '&quot;';
  19309. break;
  19310. case 38: // &
  19311. escaped = '&amp;';
  19312. break;
  19313. case 39: // '
  19314. escaped = '&#39;';
  19315. break;
  19316. case 60: // <
  19317. escaped = '&lt;';
  19318. break;
  19319. case 62: // >
  19320. escaped = '&gt;';
  19321. break;
  19322. default:
  19323. continue;
  19324. }
  19325. if (lastIndex !== index) {
  19326. html += str.slice(lastIndex, index);
  19327. }
  19328. lastIndex = index + 1;
  19329. html += escaped;
  19330. }
  19331. return lastIndex !== index ? html + str.slice(lastIndex, index) : html;
  19332. }
  19333. // https://www.w3.org/TR/html52/syntax.html#comments
  19334. const commentStripRE = /^-?>|<!--|-->|--!>|<!-$/g;
  19335. function escapeHtmlComment(src) {
  19336. return src.replace(commentStripRE, '');
  19337. }
  19338. function looseCompareArrays(a, b) {
  19339. if (a.length !== b.length)
  19340. return false;
  19341. let equal = true;
  19342. for (let i = 0; equal && i < a.length; i++) {
  19343. equal = looseEqual(a[i], b[i]);
  19344. }
  19345. return equal;
  19346. }
  19347. function looseEqual(a, b) {
  19348. if (a === b)
  19349. return true;
  19350. let aValidType = isDate(a);
  19351. let bValidType = isDate(b);
  19352. if (aValidType || bValidType) {
  19353. return aValidType && bValidType ? a.getTime() === b.getTime() : false;
  19354. }
  19355. aValidType = isArray(a);
  19356. bValidType = isArray(b);
  19357. if (aValidType || bValidType) {
  19358. return aValidType && bValidType ? looseCompareArrays(a, b) : false;
  19359. }
  19360. aValidType = isObject(a);
  19361. bValidType = isObject(b);
  19362. if (aValidType || bValidType) {
  19363. /* istanbul ignore if: this if will probably never be called */
  19364. if (!aValidType || !bValidType) {
  19365. return false;
  19366. }
  19367. const aKeysCount = Object.keys(a).length;
  19368. const bKeysCount = Object.keys(b).length;
  19369. if (aKeysCount !== bKeysCount) {
  19370. return false;
  19371. }
  19372. for (const key in a) {
  19373. const aHasKey = a.hasOwnProperty(key);
  19374. const bHasKey = b.hasOwnProperty(key);
  19375. if ((aHasKey && !bHasKey) ||
  19376. (!aHasKey && bHasKey) ||
  19377. !looseEqual(a[key], b[key])) {
  19378. return false;
  19379. }
  19380. }
  19381. }
  19382. return String(a) === String(b);
  19383. }
  19384. function looseIndexOf(arr, val) {
  19385. return arr.findIndex(item => looseEqual(item, val));
  19386. }
  19387. /**
  19388. * For converting {{ interpolation }} values to displayed strings.
  19389. * @private
  19390. */
  19391. const toDisplayString = (val) => {
  19392. return isString(val)
  19393. ? val
  19394. : val == null
  19395. ? ''
  19396. : isArray(val) ||
  19397. (isObject(val) &&
  19398. (val.toString === objectToString || !isFunction(val.toString)))
  19399. ? JSON.stringify(val, replacer, 2)
  19400. : String(val);
  19401. };
  19402. const replacer = (_key, val) => {
  19403. // can't use isRef here since @vue/shared has no deps
  19404. if (val && val.__v_isRef) {
  19405. return replacer(_key, val.value);
  19406. }
  19407. else if (isMap(val)) {
  19408. return {
  19409. [`Map(${val.size})`]: [...val.entries()].reduce((entries, [key, val]) => {
  19410. entries[`${key} =>`] = val;
  19411. return entries;
  19412. }, {})
  19413. };
  19414. }
  19415. else if (isSet(val)) {
  19416. return {
  19417. [`Set(${val.size})`]: [...val.values()]
  19418. };
  19419. }
  19420. else if (isObject(val) && !isArray(val) && !isPlainObject(val)) {
  19421. return String(val);
  19422. }
  19423. return val;
  19424. };
  19425. const EMPTY_OBJ = ( true)
  19426. ? Object.freeze({})
  19427. : 0;
  19428. const EMPTY_ARR = ( true) ? Object.freeze([]) : 0;
  19429. const NOOP = () => { };
  19430. /**
  19431. * Always return false.
  19432. */
  19433. const NO = () => false;
  19434. const onRE = /^on[^a-z]/;
  19435. const isOn = (key) => onRE.test(key);
  19436. const isModelListener = (key) => key.startsWith('onUpdate:');
  19437. const extend = Object.assign;
  19438. const remove = (arr, el) => {
  19439. const i = arr.indexOf(el);
  19440. if (i > -1) {
  19441. arr.splice(i, 1);
  19442. }
  19443. };
  19444. const hasOwnProperty = Object.prototype.hasOwnProperty;
  19445. const hasOwn = (val, key) => hasOwnProperty.call(val, key);
  19446. const isArray = Array.isArray;
  19447. const isMap = (val) => toTypeString(val) === '[object Map]';
  19448. const isSet = (val) => toTypeString(val) === '[object Set]';
  19449. const isDate = (val) => val instanceof Date;
  19450. const isFunction = (val) => typeof val === 'function';
  19451. const isString = (val) => typeof val === 'string';
  19452. const isSymbol = (val) => typeof val === 'symbol';
  19453. const isObject = (val) => val !== null && typeof val === 'object';
  19454. const isPromise = (val) => {
  19455. return isObject(val) && isFunction(val.then) && isFunction(val.catch);
  19456. };
  19457. const objectToString = Object.prototype.toString;
  19458. const toTypeString = (value) => objectToString.call(value);
  19459. const toRawType = (value) => {
  19460. // extract "RawType" from strings like "[object RawType]"
  19461. return toTypeString(value).slice(8, -1);
  19462. };
  19463. const isPlainObject = (val) => toTypeString(val) === '[object Object]';
  19464. const isIntegerKey = (key) => isString(key) &&
  19465. key !== 'NaN' &&
  19466. key[0] !== '-' &&
  19467. '' + parseInt(key, 10) === key;
  19468. const isReservedProp = /*#__PURE__*/ makeMap(
  19469. // the leading comma is intentional so empty string "" is also included
  19470. ',key,ref,ref_for,ref_key,' +
  19471. 'onVnodeBeforeMount,onVnodeMounted,' +
  19472. 'onVnodeBeforeUpdate,onVnodeUpdated,' +
  19473. 'onVnodeBeforeUnmount,onVnodeUnmounted');
  19474. const isBuiltInDirective = /*#__PURE__*/ makeMap('bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo');
  19475. const cacheStringFunction = (fn) => {
  19476. const cache = Object.create(null);
  19477. return ((str) => {
  19478. const hit = cache[str];
  19479. return hit || (cache[str] = fn(str));
  19480. });
  19481. };
  19482. const camelizeRE = /-(\w)/g;
  19483. /**
  19484. * @private
  19485. */
  19486. const camelize = cacheStringFunction((str) => {
  19487. return str.replace(camelizeRE, (_, c) => (c ? c.toUpperCase() : ''));
  19488. });
  19489. const hyphenateRE = /\B([A-Z])/g;
  19490. /**
  19491. * @private
  19492. */
  19493. const hyphenate = cacheStringFunction((str) => str.replace(hyphenateRE, '-$1').toLowerCase());
  19494. /**
  19495. * @private
  19496. */
  19497. const capitalize = cacheStringFunction((str) => str.charAt(0).toUpperCase() + str.slice(1));
  19498. /**
  19499. * @private
  19500. */
  19501. const toHandlerKey = cacheStringFunction((str) => str ? `on${capitalize(str)}` : ``);
  19502. // compare whether a value has changed, accounting for NaN.
  19503. const hasChanged = (value, oldValue) => !Object.is(value, oldValue);
  19504. const invokeArrayFns = (fns, arg) => {
  19505. for (let i = 0; i < fns.length; i++) {
  19506. fns[i](arg);
  19507. }
  19508. };
  19509. const def = (obj, key, value) => {
  19510. Object.defineProperty(obj, key, {
  19511. configurable: true,
  19512. enumerable: false,
  19513. value
  19514. });
  19515. };
  19516. const toNumber = (val) => {
  19517. const n = parseFloat(val);
  19518. return isNaN(n) ? val : n;
  19519. };
  19520. let _globalThis;
  19521. const getGlobalThis = () => {
  19522. return (_globalThis ||
  19523. (_globalThis =
  19524. typeof globalThis !== 'undefined'
  19525. ? globalThis
  19526. : typeof self !== 'undefined'
  19527. ? self
  19528. : typeof window !== 'undefined'
  19529. ? window
  19530. : typeof __webpack_require__.g !== 'undefined'
  19531. ? __webpack_require__.g
  19532. : {}));
  19533. };
  19534. /***/ }),
  19535. /***/ "./node_modules/base64-js/index.js":
  19536. /*!*****************************************!*\
  19537. !*** ./node_modules/base64-js/index.js ***!
  19538. \*****************************************/
  19539. /***/ ((__unused_webpack_module, exports) => {
  19540. "use strict";
  19541. exports.byteLength = byteLength
  19542. exports.toByteArray = toByteArray
  19543. exports.fromByteArray = fromByteArray
  19544. var lookup = []
  19545. var revLookup = []
  19546. var Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array
  19547. var code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
  19548. for (var i = 0, len = code.length; i < len; ++i) {
  19549. lookup[i] = code[i]
  19550. revLookup[code.charCodeAt(i)] = i
  19551. }
  19552. // Support decoding URL-safe base64 strings, as Node.js does.
  19553. // See: https://en.wikipedia.org/wiki/Base64#URL_applications
  19554. revLookup['-'.charCodeAt(0)] = 62
  19555. revLookup['_'.charCodeAt(0)] = 63
  19556. function getLens (b64) {
  19557. var len = b64.length
  19558. if (len % 4 > 0) {
  19559. throw new Error('Invalid string. Length must be a multiple of 4')
  19560. }
  19561. // Trim off extra bytes after placeholder bytes are found
  19562. // See: https://github.com/beatgammit/base64-js/issues/42
  19563. var validLen = b64.indexOf('=')
  19564. if (validLen === -1) validLen = len
  19565. var placeHoldersLen = validLen === len
  19566. ? 0
  19567. : 4 - (validLen % 4)
  19568. return [validLen, placeHoldersLen]
  19569. }
  19570. // base64 is 4/3 + up to two characters of the original data
  19571. function byteLength (b64) {
  19572. var lens = getLens(b64)
  19573. var validLen = lens[0]
  19574. var placeHoldersLen = lens[1]
  19575. return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
  19576. }
  19577. function _byteLength (b64, validLen, placeHoldersLen) {
  19578. return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen
  19579. }
  19580. function toByteArray (b64) {
  19581. var tmp
  19582. var lens = getLens(b64)
  19583. var validLen = lens[0]
  19584. var placeHoldersLen = lens[1]
  19585. var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen))
  19586. var curByte = 0
  19587. // if there are placeholders, only get up to the last complete 4 chars
  19588. var len = placeHoldersLen > 0
  19589. ? validLen - 4
  19590. : validLen
  19591. var i
  19592. for (i = 0; i < len; i += 4) {
  19593. tmp =
  19594. (revLookup[b64.charCodeAt(i)] << 18) |
  19595. (revLookup[b64.charCodeAt(i + 1)] << 12) |
  19596. (revLookup[b64.charCodeAt(i + 2)] << 6) |
  19597. revLookup[b64.charCodeAt(i + 3)]
  19598. arr[curByte++] = (tmp >> 16) & 0xFF
  19599. arr[curByte++] = (tmp >> 8) & 0xFF
  19600. arr[curByte++] = tmp & 0xFF
  19601. }
  19602. if (placeHoldersLen === 2) {
  19603. tmp =
  19604. (revLookup[b64.charCodeAt(i)] << 2) |
  19605. (revLookup[b64.charCodeAt(i + 1)] >> 4)
  19606. arr[curByte++] = tmp & 0xFF
  19607. }
  19608. if (placeHoldersLen === 1) {
  19609. tmp =
  19610. (revLookup[b64.charCodeAt(i)] << 10) |
  19611. (revLookup[b64.charCodeAt(i + 1)] << 4) |
  19612. (revLookup[b64.charCodeAt(i + 2)] >> 2)
  19613. arr[curByte++] = (tmp >> 8) & 0xFF
  19614. arr[curByte++] = tmp & 0xFF
  19615. }
  19616. return arr
  19617. }
  19618. function tripletToBase64 (num) {
  19619. return lookup[num >> 18 & 0x3F] +
  19620. lookup[num >> 12 & 0x3F] +
  19621. lookup[num >> 6 & 0x3F] +
  19622. lookup[num & 0x3F]
  19623. }
  19624. function encodeChunk (uint8, start, end) {
  19625. var tmp
  19626. var output = []
  19627. for (var i = start; i < end; i += 3) {
  19628. tmp =
  19629. ((uint8[i] << 16) & 0xFF0000) +
  19630. ((uint8[i + 1] << 8) & 0xFF00) +
  19631. (uint8[i + 2] & 0xFF)
  19632. output.push(tripletToBase64(tmp))
  19633. }
  19634. return output.join('')
  19635. }
  19636. function fromByteArray (uint8) {
  19637. var tmp
  19638. var len = uint8.length
  19639. var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes
  19640. var parts = []
  19641. var maxChunkLength = 16383 // must be multiple of 3
  19642. // go through the array every three bytes, we'll deal with trailing stuff later
  19643. for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {
  19644. parts.push(encodeChunk(uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)))
  19645. }
  19646. // pad the end with zeros, but make sure to not forget the extra bytes
  19647. if (extraBytes === 1) {
  19648. tmp = uint8[len - 1]
  19649. parts.push(
  19650. lookup[tmp >> 2] +
  19651. lookup[(tmp << 4) & 0x3F] +
  19652. '=='
  19653. )
  19654. } else if (extraBytes === 2) {
  19655. tmp = (uint8[len - 2] << 8) + uint8[len - 1]
  19656. parts.push(
  19657. lookup[tmp >> 10] +
  19658. lookup[(tmp >> 4) & 0x3F] +
  19659. lookup[(tmp << 2) & 0x3F] +
  19660. '='
  19661. )
  19662. }
  19663. return parts.join('')
  19664. }
  19665. /***/ }),
  19666. /***/ "./node_modules/buffer/index.js":
  19667. /*!**************************************!*\
  19668. !*** ./node_modules/buffer/index.js ***!
  19669. \**************************************/
  19670. /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
  19671. "use strict";
  19672. /*!
  19673. * The buffer module from node.js, for the browser.
  19674. *
  19675. * @author Feross Aboukhadijeh <http://feross.org>
  19676. * @license MIT
  19677. */
  19678. /* eslint-disable no-proto */
  19679. var base64 = __webpack_require__(/*! base64-js */ "./node_modules/base64-js/index.js")
  19680. var ieee754 = __webpack_require__(/*! ieee754 */ "./node_modules/ieee754/index.js")
  19681. var isArray = __webpack_require__(/*! isarray */ "./node_modules/isarray/index.js")
  19682. exports.Buffer = Buffer
  19683. exports.SlowBuffer = SlowBuffer
  19684. exports.INSPECT_MAX_BYTES = 50
  19685. /**
  19686. * If `Buffer.TYPED_ARRAY_SUPPORT`:
  19687. * === true Use Uint8Array implementation (fastest)
  19688. * === false Use Object implementation (most compatible, even IE6)
  19689. *
  19690. * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,
  19691. * Opera 11.6+, iOS 4.2+.
  19692. *
  19693. * Due to various browser bugs, sometimes the Object implementation will be used even
  19694. * when the browser supports typed arrays.
  19695. *
  19696. * Note:
  19697. *
  19698. * - Firefox 4-29 lacks support for adding new properties to `Uint8Array` instances,
  19699. * See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438.
  19700. *
  19701. * - Chrome 9-10 is missing the `TypedArray.prototype.subarray` function.
  19702. *
  19703. * - IE10 has a broken `TypedArray.prototype.subarray` function which returns arrays of
  19704. * incorrect length in some situations.
  19705. * We detect these buggy browsers and set `Buffer.TYPED_ARRAY_SUPPORT` to `false` so they
  19706. * get the Object implementation, which is slower but behaves correctly.
  19707. */
  19708. Buffer.TYPED_ARRAY_SUPPORT = __webpack_require__.g.TYPED_ARRAY_SUPPORT !== undefined
  19709. ? __webpack_require__.g.TYPED_ARRAY_SUPPORT
  19710. : typedArraySupport()
  19711. /*
  19712. * Export kMaxLength after typed array support is determined.
  19713. */
  19714. exports.kMaxLength = kMaxLength()
  19715. function typedArraySupport () {
  19716. try {
  19717. var arr = new Uint8Array(1)
  19718. arr.__proto__ = {__proto__: Uint8Array.prototype, foo: function () { return 42 }}
  19719. return arr.foo() === 42 && // typed array instances can be augmented
  19720. typeof arr.subarray === 'function' && // chrome 9-10 lack `subarray`
  19721. arr.subarray(1, 1).byteLength === 0 // ie10 has broken `subarray`
  19722. } catch (e) {
  19723. return false
  19724. }
  19725. }
  19726. function kMaxLength () {
  19727. return Buffer.TYPED_ARRAY_SUPPORT
  19728. ? 0x7fffffff
  19729. : 0x3fffffff
  19730. }
  19731. function createBuffer (that, length) {
  19732. if (kMaxLength() < length) {
  19733. throw new RangeError('Invalid typed array length')
  19734. }
  19735. if (Buffer.TYPED_ARRAY_SUPPORT) {
  19736. // Return an augmented `Uint8Array` instance, for best performance
  19737. that = new Uint8Array(length)
  19738. that.__proto__ = Buffer.prototype
  19739. } else {
  19740. // Fallback: Return an object instance of the Buffer class
  19741. if (that === null) {
  19742. that = new Buffer(length)
  19743. }
  19744. that.length = length
  19745. }
  19746. return that
  19747. }
  19748. /**
  19749. * The Buffer constructor returns instances of `Uint8Array` that have their
  19750. * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of
  19751. * `Uint8Array`, so the returned instances will have all the node `Buffer` methods
  19752. * and the `Uint8Array` methods. Square bracket notation works as expected -- it
  19753. * returns a single octet.
  19754. *
  19755. * The `Uint8Array` prototype remains unmodified.
  19756. */
  19757. function Buffer (arg, encodingOrOffset, length) {
  19758. if (!Buffer.TYPED_ARRAY_SUPPORT && !(this instanceof Buffer)) {
  19759. return new Buffer(arg, encodingOrOffset, length)
  19760. }
  19761. // Common case.
  19762. if (typeof arg === 'number') {
  19763. if (typeof encodingOrOffset === 'string') {
  19764. throw new Error(
  19765. 'If encoding is specified then the first argument must be a string'
  19766. )
  19767. }
  19768. return allocUnsafe(this, arg)
  19769. }
  19770. return from(this, arg, encodingOrOffset, length)
  19771. }
  19772. Buffer.poolSize = 8192 // not used by this implementation
  19773. // TODO: Legacy, not needed anymore. Remove in next major version.
  19774. Buffer._augment = function (arr) {
  19775. arr.__proto__ = Buffer.prototype
  19776. return arr
  19777. }
  19778. function from (that, value, encodingOrOffset, length) {
  19779. if (typeof value === 'number') {
  19780. throw new TypeError('"value" argument must not be a number')
  19781. }
  19782. if (typeof ArrayBuffer !== 'undefined' && value instanceof ArrayBuffer) {
  19783. return fromArrayBuffer(that, value, encodingOrOffset, length)
  19784. }
  19785. if (typeof value === 'string') {
  19786. return fromString(that, value, encodingOrOffset)
  19787. }
  19788. return fromObject(that, value)
  19789. }
  19790. /**
  19791. * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError
  19792. * if value is a number.
  19793. * Buffer.from(str[, encoding])
  19794. * Buffer.from(array)
  19795. * Buffer.from(buffer)
  19796. * Buffer.from(arrayBuffer[, byteOffset[, length]])
  19797. **/
  19798. Buffer.from = function (value, encodingOrOffset, length) {
  19799. return from(null, value, encodingOrOffset, length)
  19800. }
  19801. if (Buffer.TYPED_ARRAY_SUPPORT) {
  19802. Buffer.prototype.__proto__ = Uint8Array.prototype
  19803. Buffer.__proto__ = Uint8Array
  19804. if (typeof Symbol !== 'undefined' && Symbol.species &&
  19805. Buffer[Symbol.species] === Buffer) {
  19806. // Fix subarray() in ES2016. See: https://github.com/feross/buffer/pull/97
  19807. Object.defineProperty(Buffer, Symbol.species, {
  19808. value: null,
  19809. configurable: true
  19810. })
  19811. }
  19812. }
  19813. function assertSize (size) {
  19814. if (typeof size !== 'number') {
  19815. throw new TypeError('"size" argument must be a number')
  19816. } else if (size < 0) {
  19817. throw new RangeError('"size" argument must not be negative')
  19818. }
  19819. }
  19820. function alloc (that, size, fill, encoding) {
  19821. assertSize(size)
  19822. if (size <= 0) {
  19823. return createBuffer(that, size)
  19824. }
  19825. if (fill !== undefined) {
  19826. // Only pay attention to encoding if it's a string. This
  19827. // prevents accidentally sending in a number that would
  19828. // be interpretted as a start offset.
  19829. return typeof encoding === 'string'
  19830. ? createBuffer(that, size).fill(fill, encoding)
  19831. : createBuffer(that, size).fill(fill)
  19832. }
  19833. return createBuffer(that, size)
  19834. }
  19835. /**
  19836. * Creates a new filled Buffer instance.
  19837. * alloc(size[, fill[, encoding]])
  19838. **/
  19839. Buffer.alloc = function (size, fill, encoding) {
  19840. return alloc(null, size, fill, encoding)
  19841. }
  19842. function allocUnsafe (that, size) {
  19843. assertSize(size)
  19844. that = createBuffer(that, size < 0 ? 0 : checked(size) | 0)
  19845. if (!Buffer.TYPED_ARRAY_SUPPORT) {
  19846. for (var i = 0; i < size; ++i) {
  19847. that[i] = 0
  19848. }
  19849. }
  19850. return that
  19851. }
  19852. /**
  19853. * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.
  19854. * */
  19855. Buffer.allocUnsafe = function (size) {
  19856. return allocUnsafe(null, size)
  19857. }
  19858. /**
  19859. * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.
  19860. */
  19861. Buffer.allocUnsafeSlow = function (size) {
  19862. return allocUnsafe(null, size)
  19863. }
  19864. function fromString (that, string, encoding) {
  19865. if (typeof encoding !== 'string' || encoding === '') {
  19866. encoding = 'utf8'
  19867. }
  19868. if (!Buffer.isEncoding(encoding)) {
  19869. throw new TypeError('"encoding" must be a valid string encoding')
  19870. }
  19871. var length = byteLength(string, encoding) | 0
  19872. that = createBuffer(that, length)
  19873. var actual = that.write(string, encoding)
  19874. if (actual !== length) {
  19875. // Writing a hex string, for example, that contains invalid characters will
  19876. // cause everything after the first invalid character to be ignored. (e.g.
  19877. // 'abxxcd' will be treated as 'ab')
  19878. that = that.slice(0, actual)
  19879. }
  19880. return that
  19881. }
  19882. function fromArrayLike (that, array) {
  19883. var length = array.length < 0 ? 0 : checked(array.length) | 0
  19884. that = createBuffer(that, length)
  19885. for (var i = 0; i < length; i += 1) {
  19886. that[i] = array[i] & 255
  19887. }
  19888. return that
  19889. }
  19890. function fromArrayBuffer (that, array, byteOffset, length) {
  19891. array.byteLength // this throws if `array` is not a valid ArrayBuffer
  19892. if (byteOffset < 0 || array.byteLength < byteOffset) {
  19893. throw new RangeError('\'offset\' is out of bounds')
  19894. }
  19895. if (array.byteLength < byteOffset + (length || 0)) {
  19896. throw new RangeError('\'length\' is out of bounds')
  19897. }
  19898. if (byteOffset === undefined && length === undefined) {
  19899. array = new Uint8Array(array)
  19900. } else if (length === undefined) {
  19901. array = new Uint8Array(array, byteOffset)
  19902. } else {
  19903. array = new Uint8Array(array, byteOffset, length)
  19904. }
  19905. if (Buffer.TYPED_ARRAY_SUPPORT) {
  19906. // Return an augmented `Uint8Array` instance, for best performance
  19907. that = array
  19908. that.__proto__ = Buffer.prototype
  19909. } else {
  19910. // Fallback: Return an object instance of the Buffer class
  19911. that = fromArrayLike(that, array)
  19912. }
  19913. return that
  19914. }
  19915. function fromObject (that, obj) {
  19916. if (Buffer.isBuffer(obj)) {
  19917. var len = checked(obj.length) | 0
  19918. that = createBuffer(that, len)
  19919. if (that.length === 0) {
  19920. return that
  19921. }
  19922. obj.copy(that, 0, 0, len)
  19923. return that
  19924. }
  19925. if (obj) {
  19926. if ((typeof ArrayBuffer !== 'undefined' &&
  19927. obj.buffer instanceof ArrayBuffer) || 'length' in obj) {
  19928. if (typeof obj.length !== 'number' || isnan(obj.length)) {
  19929. return createBuffer(that, 0)
  19930. }
  19931. return fromArrayLike(that, obj)
  19932. }
  19933. if (obj.type === 'Buffer' && isArray(obj.data)) {
  19934. return fromArrayLike(that, obj.data)
  19935. }
  19936. }
  19937. throw new TypeError('First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.')
  19938. }
  19939. function checked (length) {
  19940. // Note: cannot use `length < kMaxLength()` here because that fails when
  19941. // length is NaN (which is otherwise coerced to zero.)
  19942. if (length >= kMaxLength()) {
  19943. throw new RangeError('Attempt to allocate Buffer larger than maximum ' +
  19944. 'size: 0x' + kMaxLength().toString(16) + ' bytes')
  19945. }
  19946. return length | 0
  19947. }
  19948. function SlowBuffer (length) {
  19949. if (+length != length) { // eslint-disable-line eqeqeq
  19950. length = 0
  19951. }
  19952. return Buffer.alloc(+length)
  19953. }
  19954. Buffer.isBuffer = function isBuffer (b) {
  19955. return !!(b != null && b._isBuffer)
  19956. }
  19957. Buffer.compare = function compare (a, b) {
  19958. if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {
  19959. throw new TypeError('Arguments must be Buffers')
  19960. }
  19961. if (a === b) return 0
  19962. var x = a.length
  19963. var y = b.length
  19964. for (var i = 0, len = Math.min(x, y); i < len; ++i) {
  19965. if (a[i] !== b[i]) {
  19966. x = a[i]
  19967. y = b[i]
  19968. break
  19969. }
  19970. }
  19971. if (x < y) return -1
  19972. if (y < x) return 1
  19973. return 0
  19974. }
  19975. Buffer.isEncoding = function isEncoding (encoding) {
  19976. switch (String(encoding).toLowerCase()) {
  19977. case 'hex':
  19978. case 'utf8':
  19979. case 'utf-8':
  19980. case 'ascii':
  19981. case 'latin1':
  19982. case 'binary':
  19983. case 'base64':
  19984. case 'ucs2':
  19985. case 'ucs-2':
  19986. case 'utf16le':
  19987. case 'utf-16le':
  19988. return true
  19989. default:
  19990. return false
  19991. }
  19992. }
  19993. Buffer.concat = function concat (list, length) {
  19994. if (!isArray(list)) {
  19995. throw new TypeError('"list" argument must be an Array of Buffers')
  19996. }
  19997. if (list.length === 0) {
  19998. return Buffer.alloc(0)
  19999. }
  20000. var i
  20001. if (length === undefined) {
  20002. length = 0
  20003. for (i = 0; i < list.length; ++i) {
  20004. length += list[i].length
  20005. }
  20006. }
  20007. var buffer = Buffer.allocUnsafe(length)
  20008. var pos = 0
  20009. for (i = 0; i < list.length; ++i) {
  20010. var buf = list[i]
  20011. if (!Buffer.isBuffer(buf)) {
  20012. throw new TypeError('"list" argument must be an Array of Buffers')
  20013. }
  20014. buf.copy(buffer, pos)
  20015. pos += buf.length
  20016. }
  20017. return buffer
  20018. }
  20019. function byteLength (string, encoding) {
  20020. if (Buffer.isBuffer(string)) {
  20021. return string.length
  20022. }
  20023. if (typeof ArrayBuffer !== 'undefined' && typeof ArrayBuffer.isView === 'function' &&
  20024. (ArrayBuffer.isView(string) || string instanceof ArrayBuffer)) {
  20025. return string.byteLength
  20026. }
  20027. if (typeof string !== 'string') {
  20028. string = '' + string
  20029. }
  20030. var len = string.length
  20031. if (len === 0) return 0
  20032. // Use a for loop to avoid recursion
  20033. var loweredCase = false
  20034. for (;;) {
  20035. switch (encoding) {
  20036. case 'ascii':
  20037. case 'latin1':
  20038. case 'binary':
  20039. return len
  20040. case 'utf8':
  20041. case 'utf-8':
  20042. case undefined:
  20043. return utf8ToBytes(string).length
  20044. case 'ucs2':
  20045. case 'ucs-2':
  20046. case 'utf16le':
  20047. case 'utf-16le':
  20048. return len * 2
  20049. case 'hex':
  20050. return len >>> 1
  20051. case 'base64':
  20052. return base64ToBytes(string).length
  20053. default:
  20054. if (loweredCase) return utf8ToBytes(string).length // assume utf8
  20055. encoding = ('' + encoding).toLowerCase()
  20056. loweredCase = true
  20057. }
  20058. }
  20059. }
  20060. Buffer.byteLength = byteLength
  20061. function slowToString (encoding, start, end) {
  20062. var loweredCase = false
  20063. // No need to verify that "this.length <= MAX_UINT32" since it's a read-only
  20064. // property of a typed array.
  20065. // This behaves neither like String nor Uint8Array in that we set start/end
  20066. // to their upper/lower bounds if the value passed is out of range.
  20067. // undefined is handled specially as per ECMA-262 6th Edition,
  20068. // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.
  20069. if (start === undefined || start < 0) {
  20070. start = 0
  20071. }
  20072. // Return early if start > this.length. Done here to prevent potential uint32
  20073. // coercion fail below.
  20074. if (start > this.length) {
  20075. return ''
  20076. }
  20077. if (end === undefined || end > this.length) {
  20078. end = this.length
  20079. }
  20080. if (end <= 0) {
  20081. return ''
  20082. }
  20083. // Force coersion to uint32. This will also coerce falsey/NaN values to 0.
  20084. end >>>= 0
  20085. start >>>= 0
  20086. if (end <= start) {
  20087. return ''
  20088. }
  20089. if (!encoding) encoding = 'utf8'
  20090. while (true) {
  20091. switch (encoding) {
  20092. case 'hex':
  20093. return hexSlice(this, start, end)
  20094. case 'utf8':
  20095. case 'utf-8':
  20096. return utf8Slice(this, start, end)
  20097. case 'ascii':
  20098. return asciiSlice(this, start, end)
  20099. case 'latin1':
  20100. case 'binary':
  20101. return latin1Slice(this, start, end)
  20102. case 'base64':
  20103. return base64Slice(this, start, end)
  20104. case 'ucs2':
  20105. case 'ucs-2':
  20106. case 'utf16le':
  20107. case 'utf-16le':
  20108. return utf16leSlice(this, start, end)
  20109. default:
  20110. if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
  20111. encoding = (encoding + '').toLowerCase()
  20112. loweredCase = true
  20113. }
  20114. }
  20115. }
  20116. // The property is used by `Buffer.isBuffer` and `is-buffer` (in Safari 5-7) to detect
  20117. // Buffer instances.
  20118. Buffer.prototype._isBuffer = true
  20119. function swap (b, n, m) {
  20120. var i = b[n]
  20121. b[n] = b[m]
  20122. b[m] = i
  20123. }
  20124. Buffer.prototype.swap16 = function swap16 () {
  20125. var len = this.length
  20126. if (len % 2 !== 0) {
  20127. throw new RangeError('Buffer size must be a multiple of 16-bits')
  20128. }
  20129. for (var i = 0; i < len; i += 2) {
  20130. swap(this, i, i + 1)
  20131. }
  20132. return this
  20133. }
  20134. Buffer.prototype.swap32 = function swap32 () {
  20135. var len = this.length
  20136. if (len % 4 !== 0) {
  20137. throw new RangeError('Buffer size must be a multiple of 32-bits')
  20138. }
  20139. for (var i = 0; i < len; i += 4) {
  20140. swap(this, i, i + 3)
  20141. swap(this, i + 1, i + 2)
  20142. }
  20143. return this
  20144. }
  20145. Buffer.prototype.swap64 = function swap64 () {
  20146. var len = this.length
  20147. if (len % 8 !== 0) {
  20148. throw new RangeError('Buffer size must be a multiple of 64-bits')
  20149. }
  20150. for (var i = 0; i < len; i += 8) {
  20151. swap(this, i, i + 7)
  20152. swap(this, i + 1, i + 6)
  20153. swap(this, i + 2, i + 5)
  20154. swap(this, i + 3, i + 4)
  20155. }
  20156. return this
  20157. }
  20158. Buffer.prototype.toString = function toString () {
  20159. var length = this.length | 0
  20160. if (length === 0) return ''
  20161. if (arguments.length === 0) return utf8Slice(this, 0, length)
  20162. return slowToString.apply(this, arguments)
  20163. }
  20164. Buffer.prototype.equals = function equals (b) {
  20165. if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')
  20166. if (this === b) return true
  20167. return Buffer.compare(this, b) === 0
  20168. }
  20169. Buffer.prototype.inspect = function inspect () {
  20170. var str = ''
  20171. var max = exports.INSPECT_MAX_BYTES
  20172. if (this.length > 0) {
  20173. str = this.toString('hex', 0, max).match(/.{2}/g).join(' ')
  20174. if (this.length > max) str += ' ... '
  20175. }
  20176. return '<Buffer ' + str + '>'
  20177. }
  20178. Buffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {
  20179. if (!Buffer.isBuffer(target)) {
  20180. throw new TypeError('Argument must be a Buffer')
  20181. }
  20182. if (start === undefined) {
  20183. start = 0
  20184. }
  20185. if (end === undefined) {
  20186. end = target ? target.length : 0
  20187. }
  20188. if (thisStart === undefined) {
  20189. thisStart = 0
  20190. }
  20191. if (thisEnd === undefined) {
  20192. thisEnd = this.length
  20193. }
  20194. if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {
  20195. throw new RangeError('out of range index')
  20196. }
  20197. if (thisStart >= thisEnd && start >= end) {
  20198. return 0
  20199. }
  20200. if (thisStart >= thisEnd) {
  20201. return -1
  20202. }
  20203. if (start >= end) {
  20204. return 1
  20205. }
  20206. start >>>= 0
  20207. end >>>= 0
  20208. thisStart >>>= 0
  20209. thisEnd >>>= 0
  20210. if (this === target) return 0
  20211. var x = thisEnd - thisStart
  20212. var y = end - start
  20213. var len = Math.min(x, y)
  20214. var thisCopy = this.slice(thisStart, thisEnd)
  20215. var targetCopy = target.slice(start, end)
  20216. for (var i = 0; i < len; ++i) {
  20217. if (thisCopy[i] !== targetCopy[i]) {
  20218. x = thisCopy[i]
  20219. y = targetCopy[i]
  20220. break
  20221. }
  20222. }
  20223. if (x < y) return -1
  20224. if (y < x) return 1
  20225. return 0
  20226. }
  20227. // Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,
  20228. // OR the last index of `val` in `buffer` at offset <= `byteOffset`.
  20229. //
  20230. // Arguments:
  20231. // - buffer - a Buffer to search
  20232. // - val - a string, Buffer, or number
  20233. // - byteOffset - an index into `buffer`; will be clamped to an int32
  20234. // - encoding - an optional encoding, relevant is val is a string
  20235. // - dir - true for indexOf, false for lastIndexOf
  20236. function bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {
  20237. // Empty buffer means no match
  20238. if (buffer.length === 0) return -1
  20239. // Normalize byteOffset
  20240. if (typeof byteOffset === 'string') {
  20241. encoding = byteOffset
  20242. byteOffset = 0
  20243. } else if (byteOffset > 0x7fffffff) {
  20244. byteOffset = 0x7fffffff
  20245. } else if (byteOffset < -0x80000000) {
  20246. byteOffset = -0x80000000
  20247. }
  20248. byteOffset = +byteOffset // Coerce to Number.
  20249. if (isNaN(byteOffset)) {
  20250. // byteOffset: it it's undefined, null, NaN, "foo", etc, search whole buffer
  20251. byteOffset = dir ? 0 : (buffer.length - 1)
  20252. }
  20253. // Normalize byteOffset: negative offsets start from the end of the buffer
  20254. if (byteOffset < 0) byteOffset = buffer.length + byteOffset
  20255. if (byteOffset >= buffer.length) {
  20256. if (dir) return -1
  20257. else byteOffset = buffer.length - 1
  20258. } else if (byteOffset < 0) {
  20259. if (dir) byteOffset = 0
  20260. else return -1
  20261. }
  20262. // Normalize val
  20263. if (typeof val === 'string') {
  20264. val = Buffer.from(val, encoding)
  20265. }
  20266. // Finally, search either indexOf (if dir is true) or lastIndexOf
  20267. if (Buffer.isBuffer(val)) {
  20268. // Special case: looking for empty string/buffer always fails
  20269. if (val.length === 0) {
  20270. return -1
  20271. }
  20272. return arrayIndexOf(buffer, val, byteOffset, encoding, dir)
  20273. } else if (typeof val === 'number') {
  20274. val = val & 0xFF // Search for a byte value [0-255]
  20275. if (Buffer.TYPED_ARRAY_SUPPORT &&
  20276. typeof Uint8Array.prototype.indexOf === 'function') {
  20277. if (dir) {
  20278. return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)
  20279. } else {
  20280. return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)
  20281. }
  20282. }
  20283. return arrayIndexOf(buffer, [ val ], byteOffset, encoding, dir)
  20284. }
  20285. throw new TypeError('val must be string, number or Buffer')
  20286. }
  20287. function arrayIndexOf (arr, val, byteOffset, encoding, dir) {
  20288. var indexSize = 1
  20289. var arrLength = arr.length
  20290. var valLength = val.length
  20291. if (encoding !== undefined) {
  20292. encoding = String(encoding).toLowerCase()
  20293. if (encoding === 'ucs2' || encoding === 'ucs-2' ||
  20294. encoding === 'utf16le' || encoding === 'utf-16le') {
  20295. if (arr.length < 2 || val.length < 2) {
  20296. return -1
  20297. }
  20298. indexSize = 2
  20299. arrLength /= 2
  20300. valLength /= 2
  20301. byteOffset /= 2
  20302. }
  20303. }
  20304. function read (buf, i) {
  20305. if (indexSize === 1) {
  20306. return buf[i]
  20307. } else {
  20308. return buf.readUInt16BE(i * indexSize)
  20309. }
  20310. }
  20311. var i
  20312. if (dir) {
  20313. var foundIndex = -1
  20314. for (i = byteOffset; i < arrLength; i++) {
  20315. if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {
  20316. if (foundIndex === -1) foundIndex = i
  20317. if (i - foundIndex + 1 === valLength) return foundIndex * indexSize
  20318. } else {
  20319. if (foundIndex !== -1) i -= i - foundIndex
  20320. foundIndex = -1
  20321. }
  20322. }
  20323. } else {
  20324. if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength
  20325. for (i = byteOffset; i >= 0; i--) {
  20326. var found = true
  20327. for (var j = 0; j < valLength; j++) {
  20328. if (read(arr, i + j) !== read(val, j)) {
  20329. found = false
  20330. break
  20331. }
  20332. }
  20333. if (found) return i
  20334. }
  20335. }
  20336. return -1
  20337. }
  20338. Buffer.prototype.includes = function includes (val, byteOffset, encoding) {
  20339. return this.indexOf(val, byteOffset, encoding) !== -1
  20340. }
  20341. Buffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) {
  20342. return bidirectionalIndexOf(this, val, byteOffset, encoding, true)
  20343. }
  20344. Buffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) {
  20345. return bidirectionalIndexOf(this, val, byteOffset, encoding, false)
  20346. }
  20347. function hexWrite (buf, string, offset, length) {
  20348. offset = Number(offset) || 0
  20349. var remaining = buf.length - offset
  20350. if (!length) {
  20351. length = remaining
  20352. } else {
  20353. length = Number(length)
  20354. if (length > remaining) {
  20355. length = remaining
  20356. }
  20357. }
  20358. // must be an even number of digits
  20359. var strLen = string.length
  20360. if (strLen % 2 !== 0) throw new TypeError('Invalid hex string')
  20361. if (length > strLen / 2) {
  20362. length = strLen / 2
  20363. }
  20364. for (var i = 0; i < length; ++i) {
  20365. var parsed = parseInt(string.substr(i * 2, 2), 16)
  20366. if (isNaN(parsed)) return i
  20367. buf[offset + i] = parsed
  20368. }
  20369. return i
  20370. }
  20371. function utf8Write (buf, string, offset, length) {
  20372. return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)
  20373. }
  20374. function asciiWrite (buf, string, offset, length) {
  20375. return blitBuffer(asciiToBytes(string), buf, offset, length)
  20376. }
  20377. function latin1Write (buf, string, offset, length) {
  20378. return asciiWrite(buf, string, offset, length)
  20379. }
  20380. function base64Write (buf, string, offset, length) {
  20381. return blitBuffer(base64ToBytes(string), buf, offset, length)
  20382. }
  20383. function ucs2Write (buf, string, offset, length) {
  20384. return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)
  20385. }
  20386. Buffer.prototype.write = function write (string, offset, length, encoding) {
  20387. // Buffer#write(string)
  20388. if (offset === undefined) {
  20389. encoding = 'utf8'
  20390. length = this.length
  20391. offset = 0
  20392. // Buffer#write(string, encoding)
  20393. } else if (length === undefined && typeof offset === 'string') {
  20394. encoding = offset
  20395. length = this.length
  20396. offset = 0
  20397. // Buffer#write(string, offset[, length][, encoding])
  20398. } else if (isFinite(offset)) {
  20399. offset = offset | 0
  20400. if (isFinite(length)) {
  20401. length = length | 0
  20402. if (encoding === undefined) encoding = 'utf8'
  20403. } else {
  20404. encoding = length
  20405. length = undefined
  20406. }
  20407. // legacy write(string, encoding, offset, length) - remove in v0.13
  20408. } else {
  20409. throw new Error(
  20410. 'Buffer.write(string, encoding, offset[, length]) is no longer supported'
  20411. )
  20412. }
  20413. var remaining = this.length - offset
  20414. if (length === undefined || length > remaining) length = remaining
  20415. if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {
  20416. throw new RangeError('Attempt to write outside buffer bounds')
  20417. }
  20418. if (!encoding) encoding = 'utf8'
  20419. var loweredCase = false
  20420. for (;;) {
  20421. switch (encoding) {
  20422. case 'hex':
  20423. return hexWrite(this, string, offset, length)
  20424. case 'utf8':
  20425. case 'utf-8':
  20426. return utf8Write(this, string, offset, length)
  20427. case 'ascii':
  20428. return asciiWrite(this, string, offset, length)
  20429. case 'latin1':
  20430. case 'binary':
  20431. return latin1Write(this, string, offset, length)
  20432. case 'base64':
  20433. // Warning: maxLength not taken into account in base64Write
  20434. return base64Write(this, string, offset, length)
  20435. case 'ucs2':
  20436. case 'ucs-2':
  20437. case 'utf16le':
  20438. case 'utf-16le':
  20439. return ucs2Write(this, string, offset, length)
  20440. default:
  20441. if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
  20442. encoding = ('' + encoding).toLowerCase()
  20443. loweredCase = true
  20444. }
  20445. }
  20446. }
  20447. Buffer.prototype.toJSON = function toJSON () {
  20448. return {
  20449. type: 'Buffer',
  20450. data: Array.prototype.slice.call(this._arr || this, 0)
  20451. }
  20452. }
  20453. function base64Slice (buf, start, end) {
  20454. if (start === 0 && end === buf.length) {
  20455. return base64.fromByteArray(buf)
  20456. } else {
  20457. return base64.fromByteArray(buf.slice(start, end))
  20458. }
  20459. }
  20460. function utf8Slice (buf, start, end) {
  20461. end = Math.min(buf.length, end)
  20462. var res = []
  20463. var i = start
  20464. while (i < end) {
  20465. var firstByte = buf[i]
  20466. var codePoint = null
  20467. var bytesPerSequence = (firstByte > 0xEF) ? 4
  20468. : (firstByte > 0xDF) ? 3
  20469. : (firstByte > 0xBF) ? 2
  20470. : 1
  20471. if (i + bytesPerSequence <= end) {
  20472. var secondByte, thirdByte, fourthByte, tempCodePoint
  20473. switch (bytesPerSequence) {
  20474. case 1:
  20475. if (firstByte < 0x80) {
  20476. codePoint = firstByte
  20477. }
  20478. break
  20479. case 2:
  20480. secondByte = buf[i + 1]
  20481. if ((secondByte & 0xC0) === 0x80) {
  20482. tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F)
  20483. if (tempCodePoint > 0x7F) {
  20484. codePoint = tempCodePoint
  20485. }
  20486. }
  20487. break
  20488. case 3:
  20489. secondByte = buf[i + 1]
  20490. thirdByte = buf[i + 2]
  20491. if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {
  20492. tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F)
  20493. if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {
  20494. codePoint = tempCodePoint
  20495. }
  20496. }
  20497. break
  20498. case 4:
  20499. secondByte = buf[i + 1]
  20500. thirdByte = buf[i + 2]
  20501. fourthByte = buf[i + 3]
  20502. if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {
  20503. tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F)
  20504. if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {
  20505. codePoint = tempCodePoint
  20506. }
  20507. }
  20508. }
  20509. }
  20510. if (codePoint === null) {
  20511. // we did not generate a valid codePoint so insert a
  20512. // replacement char (U+FFFD) and advance only 1 byte
  20513. codePoint = 0xFFFD
  20514. bytesPerSequence = 1
  20515. } else if (codePoint > 0xFFFF) {
  20516. // encode to utf16 (surrogate pair dance)
  20517. codePoint -= 0x10000
  20518. res.push(codePoint >>> 10 & 0x3FF | 0xD800)
  20519. codePoint = 0xDC00 | codePoint & 0x3FF
  20520. }
  20521. res.push(codePoint)
  20522. i += bytesPerSequence
  20523. }
  20524. return decodeCodePointsArray(res)
  20525. }
  20526. // Based on http://stackoverflow.com/a/22747272/680742, the browser with
  20527. // the lowest limit is Chrome, with 0x10000 args.
  20528. // We go 1 magnitude less, for safety
  20529. var MAX_ARGUMENTS_LENGTH = 0x1000
  20530. function decodeCodePointsArray (codePoints) {
  20531. var len = codePoints.length
  20532. if (len <= MAX_ARGUMENTS_LENGTH) {
  20533. return String.fromCharCode.apply(String, codePoints) // avoid extra slice()
  20534. }
  20535. // Decode in chunks to avoid "call stack size exceeded".
  20536. var res = ''
  20537. var i = 0
  20538. while (i < len) {
  20539. res += String.fromCharCode.apply(
  20540. String,
  20541. codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)
  20542. )
  20543. }
  20544. return res
  20545. }
  20546. function asciiSlice (buf, start, end) {
  20547. var ret = ''
  20548. end = Math.min(buf.length, end)
  20549. for (var i = start; i < end; ++i) {
  20550. ret += String.fromCharCode(buf[i] & 0x7F)
  20551. }
  20552. return ret
  20553. }
  20554. function latin1Slice (buf, start, end) {
  20555. var ret = ''
  20556. end = Math.min(buf.length, end)
  20557. for (var i = start; i < end; ++i) {
  20558. ret += String.fromCharCode(buf[i])
  20559. }
  20560. return ret
  20561. }
  20562. function hexSlice (buf, start, end) {
  20563. var len = buf.length
  20564. if (!start || start < 0) start = 0
  20565. if (!end || end < 0 || end > len) end = len
  20566. var out = ''
  20567. for (var i = start; i < end; ++i) {
  20568. out += toHex(buf[i])
  20569. }
  20570. return out
  20571. }
  20572. function utf16leSlice (buf, start, end) {
  20573. var bytes = buf.slice(start, end)
  20574. var res = ''
  20575. for (var i = 0; i < bytes.length; i += 2) {
  20576. res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256)
  20577. }
  20578. return res
  20579. }
  20580. Buffer.prototype.slice = function slice (start, end) {
  20581. var len = this.length
  20582. start = ~~start
  20583. end = end === undefined ? len : ~~end
  20584. if (start < 0) {
  20585. start += len
  20586. if (start < 0) start = 0
  20587. } else if (start > len) {
  20588. start = len
  20589. }
  20590. if (end < 0) {
  20591. end += len
  20592. if (end < 0) end = 0
  20593. } else if (end > len) {
  20594. end = len
  20595. }
  20596. if (end < start) end = start
  20597. var newBuf
  20598. if (Buffer.TYPED_ARRAY_SUPPORT) {
  20599. newBuf = this.subarray(start, end)
  20600. newBuf.__proto__ = Buffer.prototype
  20601. } else {
  20602. var sliceLen = end - start
  20603. newBuf = new Buffer(sliceLen, undefined)
  20604. for (var i = 0; i < sliceLen; ++i) {
  20605. newBuf[i] = this[i + start]
  20606. }
  20607. }
  20608. return newBuf
  20609. }
  20610. /*
  20611. * Need to make sure that buffer isn't trying to write out of bounds.
  20612. */
  20613. function checkOffset (offset, ext, length) {
  20614. if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')
  20615. if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')
  20616. }
  20617. Buffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {
  20618. offset = offset | 0
  20619. byteLength = byteLength | 0
  20620. if (!noAssert) checkOffset(offset, byteLength, this.length)
  20621. var val = this[offset]
  20622. var mul = 1
  20623. var i = 0
  20624. while (++i < byteLength && (mul *= 0x100)) {
  20625. val += this[offset + i] * mul
  20626. }
  20627. return val
  20628. }
  20629. Buffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {
  20630. offset = offset | 0
  20631. byteLength = byteLength | 0
  20632. if (!noAssert) {
  20633. checkOffset(offset, byteLength, this.length)
  20634. }
  20635. var val = this[offset + --byteLength]
  20636. var mul = 1
  20637. while (byteLength > 0 && (mul *= 0x100)) {
  20638. val += this[offset + --byteLength] * mul
  20639. }
  20640. return val
  20641. }
  20642. Buffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {
  20643. if (!noAssert) checkOffset(offset, 1, this.length)
  20644. return this[offset]
  20645. }
  20646. Buffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {
  20647. if (!noAssert) checkOffset(offset, 2, this.length)
  20648. return this[offset] | (this[offset + 1] << 8)
  20649. }
  20650. Buffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {
  20651. if (!noAssert) checkOffset(offset, 2, this.length)
  20652. return (this[offset] << 8) | this[offset + 1]
  20653. }
  20654. Buffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {
  20655. if (!noAssert) checkOffset(offset, 4, this.length)
  20656. return ((this[offset]) |
  20657. (this[offset + 1] << 8) |
  20658. (this[offset + 2] << 16)) +
  20659. (this[offset + 3] * 0x1000000)
  20660. }
  20661. Buffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {
  20662. if (!noAssert) checkOffset(offset, 4, this.length)
  20663. return (this[offset] * 0x1000000) +
  20664. ((this[offset + 1] << 16) |
  20665. (this[offset + 2] << 8) |
  20666. this[offset + 3])
  20667. }
  20668. Buffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {
  20669. offset = offset | 0
  20670. byteLength = byteLength | 0
  20671. if (!noAssert) checkOffset(offset, byteLength, this.length)
  20672. var val = this[offset]
  20673. var mul = 1
  20674. var i = 0
  20675. while (++i < byteLength && (mul *= 0x100)) {
  20676. val += this[offset + i] * mul
  20677. }
  20678. mul *= 0x80
  20679. if (val >= mul) val -= Math.pow(2, 8 * byteLength)
  20680. return val
  20681. }
  20682. Buffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {
  20683. offset = offset | 0
  20684. byteLength = byteLength | 0
  20685. if (!noAssert) checkOffset(offset, byteLength, this.length)
  20686. var i = byteLength
  20687. var mul = 1
  20688. var val = this[offset + --i]
  20689. while (i > 0 && (mul *= 0x100)) {
  20690. val += this[offset + --i] * mul
  20691. }
  20692. mul *= 0x80
  20693. if (val >= mul) val -= Math.pow(2, 8 * byteLength)
  20694. return val
  20695. }
  20696. Buffer.prototype.readInt8 = function readInt8 (offset, noAssert) {
  20697. if (!noAssert) checkOffset(offset, 1, this.length)
  20698. if (!(this[offset] & 0x80)) return (this[offset])
  20699. return ((0xff - this[offset] + 1) * -1)
  20700. }
  20701. Buffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {
  20702. if (!noAssert) checkOffset(offset, 2, this.length)
  20703. var val = this[offset] | (this[offset + 1] << 8)
  20704. return (val & 0x8000) ? val | 0xFFFF0000 : val
  20705. }
  20706. Buffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {
  20707. if (!noAssert) checkOffset(offset, 2, this.length)
  20708. var val = this[offset + 1] | (this[offset] << 8)
  20709. return (val & 0x8000) ? val | 0xFFFF0000 : val
  20710. }
  20711. Buffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {
  20712. if (!noAssert) checkOffset(offset, 4, this.length)
  20713. return (this[offset]) |
  20714. (this[offset + 1] << 8) |
  20715. (this[offset + 2] << 16) |
  20716. (this[offset + 3] << 24)
  20717. }
  20718. Buffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {
  20719. if (!noAssert) checkOffset(offset, 4, this.length)
  20720. return (this[offset] << 24) |
  20721. (this[offset + 1] << 16) |
  20722. (this[offset + 2] << 8) |
  20723. (this[offset + 3])
  20724. }
  20725. Buffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {
  20726. if (!noAssert) checkOffset(offset, 4, this.length)
  20727. return ieee754.read(this, offset, true, 23, 4)
  20728. }
  20729. Buffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {
  20730. if (!noAssert) checkOffset(offset, 4, this.length)
  20731. return ieee754.read(this, offset, false, 23, 4)
  20732. }
  20733. Buffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {
  20734. if (!noAssert) checkOffset(offset, 8, this.length)
  20735. return ieee754.read(this, offset, true, 52, 8)
  20736. }
  20737. Buffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {
  20738. if (!noAssert) checkOffset(offset, 8, this.length)
  20739. return ieee754.read(this, offset, false, 52, 8)
  20740. }
  20741. function checkInt (buf, value, offset, ext, max, min) {
  20742. if (!Buffer.isBuffer(buf)) throw new TypeError('"buffer" argument must be a Buffer instance')
  20743. if (value > max || value < min) throw new RangeError('"value" argument is out of bounds')
  20744. if (offset + ext > buf.length) throw new RangeError('Index out of range')
  20745. }
  20746. Buffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {
  20747. value = +value
  20748. offset = offset | 0
  20749. byteLength = byteLength | 0
  20750. if (!noAssert) {
  20751. var maxBytes = Math.pow(2, 8 * byteLength) - 1
  20752. checkInt(this, value, offset, byteLength, maxBytes, 0)
  20753. }
  20754. var mul = 1
  20755. var i = 0
  20756. this[offset] = value & 0xFF
  20757. while (++i < byteLength && (mul *= 0x100)) {
  20758. this[offset + i] = (value / mul) & 0xFF
  20759. }
  20760. return offset + byteLength
  20761. }
  20762. Buffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {
  20763. value = +value
  20764. offset = offset | 0
  20765. byteLength = byteLength | 0
  20766. if (!noAssert) {
  20767. var maxBytes = Math.pow(2, 8 * byteLength) - 1
  20768. checkInt(this, value, offset, byteLength, maxBytes, 0)
  20769. }
  20770. var i = byteLength - 1
  20771. var mul = 1
  20772. this[offset + i] = value & 0xFF
  20773. while (--i >= 0 && (mul *= 0x100)) {
  20774. this[offset + i] = (value / mul) & 0xFF
  20775. }
  20776. return offset + byteLength
  20777. }
  20778. Buffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {
  20779. value = +value
  20780. offset = offset | 0
  20781. if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)
  20782. if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)
  20783. this[offset] = (value & 0xff)
  20784. return offset + 1
  20785. }
  20786. function objectWriteUInt16 (buf, value, offset, littleEndian) {
  20787. if (value < 0) value = 0xffff + value + 1
  20788. for (var i = 0, j = Math.min(buf.length - offset, 2); i < j; ++i) {
  20789. buf[offset + i] = (value & (0xff << (8 * (littleEndian ? i : 1 - i)))) >>>
  20790. (littleEndian ? i : 1 - i) * 8
  20791. }
  20792. }
  20793. Buffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {
  20794. value = +value
  20795. offset = offset | 0
  20796. if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
  20797. if (Buffer.TYPED_ARRAY_SUPPORT) {
  20798. this[offset] = (value & 0xff)
  20799. this[offset + 1] = (value >>> 8)
  20800. } else {
  20801. objectWriteUInt16(this, value, offset, true)
  20802. }
  20803. return offset + 2
  20804. }
  20805. Buffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {
  20806. value = +value
  20807. offset = offset | 0
  20808. if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
  20809. if (Buffer.TYPED_ARRAY_SUPPORT) {
  20810. this[offset] = (value >>> 8)
  20811. this[offset + 1] = (value & 0xff)
  20812. } else {
  20813. objectWriteUInt16(this, value, offset, false)
  20814. }
  20815. return offset + 2
  20816. }
  20817. function objectWriteUInt32 (buf, value, offset, littleEndian) {
  20818. if (value < 0) value = 0xffffffff + value + 1
  20819. for (var i = 0, j = Math.min(buf.length - offset, 4); i < j; ++i) {
  20820. buf[offset + i] = (value >>> (littleEndian ? i : 3 - i) * 8) & 0xff
  20821. }
  20822. }
  20823. Buffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {
  20824. value = +value
  20825. offset = offset | 0
  20826. if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)
  20827. if (Buffer.TYPED_ARRAY_SUPPORT) {
  20828. this[offset + 3] = (value >>> 24)
  20829. this[offset + 2] = (value >>> 16)
  20830. this[offset + 1] = (value >>> 8)
  20831. this[offset] = (value & 0xff)
  20832. } else {
  20833. objectWriteUInt32(this, value, offset, true)
  20834. }
  20835. return offset + 4
  20836. }
  20837. Buffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {
  20838. value = +value
  20839. offset = offset | 0
  20840. if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)
  20841. if (Buffer.TYPED_ARRAY_SUPPORT) {
  20842. this[offset] = (value >>> 24)
  20843. this[offset + 1] = (value >>> 16)
  20844. this[offset + 2] = (value >>> 8)
  20845. this[offset + 3] = (value & 0xff)
  20846. } else {
  20847. objectWriteUInt32(this, value, offset, false)
  20848. }
  20849. return offset + 4
  20850. }
  20851. Buffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {
  20852. value = +value
  20853. offset = offset | 0
  20854. if (!noAssert) {
  20855. var limit = Math.pow(2, 8 * byteLength - 1)
  20856. checkInt(this, value, offset, byteLength, limit - 1, -limit)
  20857. }
  20858. var i = 0
  20859. var mul = 1
  20860. var sub = 0
  20861. this[offset] = value & 0xFF
  20862. while (++i < byteLength && (mul *= 0x100)) {
  20863. if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {
  20864. sub = 1
  20865. }
  20866. this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
  20867. }
  20868. return offset + byteLength
  20869. }
  20870. Buffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {
  20871. value = +value
  20872. offset = offset | 0
  20873. if (!noAssert) {
  20874. var limit = Math.pow(2, 8 * byteLength - 1)
  20875. checkInt(this, value, offset, byteLength, limit - 1, -limit)
  20876. }
  20877. var i = byteLength - 1
  20878. var mul = 1
  20879. var sub = 0
  20880. this[offset + i] = value & 0xFF
  20881. while (--i >= 0 && (mul *= 0x100)) {
  20882. if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {
  20883. sub = 1
  20884. }
  20885. this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
  20886. }
  20887. return offset + byteLength
  20888. }
  20889. Buffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {
  20890. value = +value
  20891. offset = offset | 0
  20892. if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)
  20893. if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)
  20894. if (value < 0) value = 0xff + value + 1
  20895. this[offset] = (value & 0xff)
  20896. return offset + 1
  20897. }
  20898. Buffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {
  20899. value = +value
  20900. offset = offset | 0
  20901. if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
  20902. if (Buffer.TYPED_ARRAY_SUPPORT) {
  20903. this[offset] = (value & 0xff)
  20904. this[offset + 1] = (value >>> 8)
  20905. } else {
  20906. objectWriteUInt16(this, value, offset, true)
  20907. }
  20908. return offset + 2
  20909. }
  20910. Buffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {
  20911. value = +value
  20912. offset = offset | 0
  20913. if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
  20914. if (Buffer.TYPED_ARRAY_SUPPORT) {
  20915. this[offset] = (value >>> 8)
  20916. this[offset + 1] = (value & 0xff)
  20917. } else {
  20918. objectWriteUInt16(this, value, offset, false)
  20919. }
  20920. return offset + 2
  20921. }
  20922. Buffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {
  20923. value = +value
  20924. offset = offset | 0
  20925. if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)
  20926. if (Buffer.TYPED_ARRAY_SUPPORT) {
  20927. this[offset] = (value & 0xff)
  20928. this[offset + 1] = (value >>> 8)
  20929. this[offset + 2] = (value >>> 16)
  20930. this[offset + 3] = (value >>> 24)
  20931. } else {
  20932. objectWriteUInt32(this, value, offset, true)
  20933. }
  20934. return offset + 4
  20935. }
  20936. Buffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {
  20937. value = +value
  20938. offset = offset | 0
  20939. if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)
  20940. if (value < 0) value = 0xffffffff + value + 1
  20941. if (Buffer.TYPED_ARRAY_SUPPORT) {
  20942. this[offset] = (value >>> 24)
  20943. this[offset + 1] = (value >>> 16)
  20944. this[offset + 2] = (value >>> 8)
  20945. this[offset + 3] = (value & 0xff)
  20946. } else {
  20947. objectWriteUInt32(this, value, offset, false)
  20948. }
  20949. return offset + 4
  20950. }
  20951. function checkIEEE754 (buf, value, offset, ext, max, min) {
  20952. if (offset + ext > buf.length) throw new RangeError('Index out of range')
  20953. if (offset < 0) throw new RangeError('Index out of range')
  20954. }
  20955. function writeFloat (buf, value, offset, littleEndian, noAssert) {
  20956. if (!noAssert) {
  20957. checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)
  20958. }
  20959. ieee754.write(buf, value, offset, littleEndian, 23, 4)
  20960. return offset + 4
  20961. }
  20962. Buffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {
  20963. return writeFloat(this, value, offset, true, noAssert)
  20964. }
  20965. Buffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {
  20966. return writeFloat(this, value, offset, false, noAssert)
  20967. }
  20968. function writeDouble (buf, value, offset, littleEndian, noAssert) {
  20969. if (!noAssert) {
  20970. checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)
  20971. }
  20972. ieee754.write(buf, value, offset, littleEndian, 52, 8)
  20973. return offset + 8
  20974. }
  20975. Buffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {
  20976. return writeDouble(this, value, offset, true, noAssert)
  20977. }
  20978. Buffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {
  20979. return writeDouble(this, value, offset, false, noAssert)
  20980. }
  20981. // copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)
  20982. Buffer.prototype.copy = function copy (target, targetStart, start, end) {
  20983. if (!start) start = 0
  20984. if (!end && end !== 0) end = this.length
  20985. if (targetStart >= target.length) targetStart = target.length
  20986. if (!targetStart) targetStart = 0
  20987. if (end > 0 && end < start) end = start
  20988. // Copy 0 bytes; we're done
  20989. if (end === start) return 0
  20990. if (target.length === 0 || this.length === 0) return 0
  20991. // Fatal error conditions
  20992. if (targetStart < 0) {
  20993. throw new RangeError('targetStart out of bounds')
  20994. }
  20995. if (start < 0 || start >= this.length) throw new RangeError('sourceStart out of bounds')
  20996. if (end < 0) throw new RangeError('sourceEnd out of bounds')
  20997. // Are we oob?
  20998. if (end > this.length) end = this.length
  20999. if (target.length - targetStart < end - start) {
  21000. end = target.length - targetStart + start
  21001. }
  21002. var len = end - start
  21003. var i
  21004. if (this === target && start < targetStart && targetStart < end) {
  21005. // descending copy from end
  21006. for (i = len - 1; i >= 0; --i) {
  21007. target[i + targetStart] = this[i + start]
  21008. }
  21009. } else if (len < 1000 || !Buffer.TYPED_ARRAY_SUPPORT) {
  21010. // ascending copy from start
  21011. for (i = 0; i < len; ++i) {
  21012. target[i + targetStart] = this[i + start]
  21013. }
  21014. } else {
  21015. Uint8Array.prototype.set.call(
  21016. target,
  21017. this.subarray(start, start + len),
  21018. targetStart
  21019. )
  21020. }
  21021. return len
  21022. }
  21023. // Usage:
  21024. // buffer.fill(number[, offset[, end]])
  21025. // buffer.fill(buffer[, offset[, end]])
  21026. // buffer.fill(string[, offset[, end]][, encoding])
  21027. Buffer.prototype.fill = function fill (val, start, end, encoding) {
  21028. // Handle string cases:
  21029. if (typeof val === 'string') {
  21030. if (typeof start === 'string') {
  21031. encoding = start
  21032. start = 0
  21033. end = this.length
  21034. } else if (typeof end === 'string') {
  21035. encoding = end
  21036. end = this.length
  21037. }
  21038. if (val.length === 1) {
  21039. var code = val.charCodeAt(0)
  21040. if (code < 256) {
  21041. val = code
  21042. }
  21043. }
  21044. if (encoding !== undefined && typeof encoding !== 'string') {
  21045. throw new TypeError('encoding must be a string')
  21046. }
  21047. if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) {
  21048. throw new TypeError('Unknown encoding: ' + encoding)
  21049. }
  21050. } else if (typeof val === 'number') {
  21051. val = val & 255
  21052. }
  21053. // Invalid ranges are not set to a default, so can range check early.
  21054. if (start < 0 || this.length < start || this.length < end) {
  21055. throw new RangeError('Out of range index')
  21056. }
  21057. if (end <= start) {
  21058. return this
  21059. }
  21060. start = start >>> 0
  21061. end = end === undefined ? this.length : end >>> 0
  21062. if (!val) val = 0
  21063. var i
  21064. if (typeof val === 'number') {
  21065. for (i = start; i < end; ++i) {
  21066. this[i] = val
  21067. }
  21068. } else {
  21069. var bytes = Buffer.isBuffer(val)
  21070. ? val
  21071. : utf8ToBytes(new Buffer(val, encoding).toString())
  21072. var len = bytes.length
  21073. for (i = 0; i < end - start; ++i) {
  21074. this[i + start] = bytes[i % len]
  21075. }
  21076. }
  21077. return this
  21078. }
  21079. // HELPER FUNCTIONS
  21080. // ================
  21081. var INVALID_BASE64_RE = /[^+\/0-9A-Za-z-_]/g
  21082. function base64clean (str) {
  21083. // Node strips out invalid characters like \n and \t from the string, base64-js does not
  21084. str = stringtrim(str).replace(INVALID_BASE64_RE, '')
  21085. // Node converts strings with length < 2 to ''
  21086. if (str.length < 2) return ''
  21087. // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not
  21088. while (str.length % 4 !== 0) {
  21089. str = str + '='
  21090. }
  21091. return str
  21092. }
  21093. function stringtrim (str) {
  21094. if (str.trim) return str.trim()
  21095. return str.replace(/^\s+|\s+$/g, '')
  21096. }
  21097. function toHex (n) {
  21098. if (n < 16) return '0' + n.toString(16)
  21099. return n.toString(16)
  21100. }
  21101. function utf8ToBytes (string, units) {
  21102. units = units || Infinity
  21103. var codePoint
  21104. var length = string.length
  21105. var leadSurrogate = null
  21106. var bytes = []
  21107. for (var i = 0; i < length; ++i) {
  21108. codePoint = string.charCodeAt(i)
  21109. // is surrogate component
  21110. if (codePoint > 0xD7FF && codePoint < 0xE000) {
  21111. // last char was a lead
  21112. if (!leadSurrogate) {
  21113. // no lead yet
  21114. if (codePoint > 0xDBFF) {
  21115. // unexpected trail
  21116. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  21117. continue
  21118. } else if (i + 1 === length) {
  21119. // unpaired lead
  21120. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  21121. continue
  21122. }
  21123. // valid lead
  21124. leadSurrogate = codePoint
  21125. continue
  21126. }
  21127. // 2 leads in a row
  21128. if (codePoint < 0xDC00) {
  21129. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  21130. leadSurrogate = codePoint
  21131. continue
  21132. }
  21133. // valid surrogate pair
  21134. codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000
  21135. } else if (leadSurrogate) {
  21136. // valid bmp char, but last char was a lead
  21137. if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
  21138. }
  21139. leadSurrogate = null
  21140. // encode utf8
  21141. if (codePoint < 0x80) {
  21142. if ((units -= 1) < 0) break
  21143. bytes.push(codePoint)
  21144. } else if (codePoint < 0x800) {
  21145. if ((units -= 2) < 0) break
  21146. bytes.push(
  21147. codePoint >> 0x6 | 0xC0,
  21148. codePoint & 0x3F | 0x80
  21149. )
  21150. } else if (codePoint < 0x10000) {
  21151. if ((units -= 3) < 0) break
  21152. bytes.push(
  21153. codePoint >> 0xC | 0xE0,
  21154. codePoint >> 0x6 & 0x3F | 0x80,
  21155. codePoint & 0x3F | 0x80
  21156. )
  21157. } else if (codePoint < 0x110000) {
  21158. if ((units -= 4) < 0) break
  21159. bytes.push(
  21160. codePoint >> 0x12 | 0xF0,
  21161. codePoint >> 0xC & 0x3F | 0x80,
  21162. codePoint >> 0x6 & 0x3F | 0x80,
  21163. codePoint & 0x3F | 0x80
  21164. )
  21165. } else {
  21166. throw new Error('Invalid code point')
  21167. }
  21168. }
  21169. return bytes
  21170. }
  21171. function asciiToBytes (str) {
  21172. var byteArray = []
  21173. for (var i = 0; i < str.length; ++i) {
  21174. // Node's code seems to be doing this and not & 0x7F..
  21175. byteArray.push(str.charCodeAt(i) & 0xFF)
  21176. }
  21177. return byteArray
  21178. }
  21179. function utf16leToBytes (str, units) {
  21180. var c, hi, lo
  21181. var byteArray = []
  21182. for (var i = 0; i < str.length; ++i) {
  21183. if ((units -= 2) < 0) break
  21184. c = str.charCodeAt(i)
  21185. hi = c >> 8
  21186. lo = c % 256
  21187. byteArray.push(lo)
  21188. byteArray.push(hi)
  21189. }
  21190. return byteArray
  21191. }
  21192. function base64ToBytes (str) {
  21193. return base64.toByteArray(base64clean(str))
  21194. }
  21195. function blitBuffer (src, dst, offset, length) {
  21196. for (var i = 0; i < length; ++i) {
  21197. if ((i + offset >= dst.length) || (i >= src.length)) break
  21198. dst[i + offset] = src[i]
  21199. }
  21200. return i
  21201. }
  21202. function isnan (val) {
  21203. return val !== val // eslint-disable-line no-self-compare
  21204. }
  21205. /***/ }),
  21206. /***/ "./node_modules/call-bind/callBound.js":
  21207. /*!*********************************************!*\
  21208. !*** ./node_modules/call-bind/callBound.js ***!
  21209. \*********************************************/
  21210. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  21211. "use strict";
  21212. var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "./node_modules/get-intrinsic/index.js");
  21213. var callBind = __webpack_require__(/*! ./ */ "./node_modules/call-bind/index.js");
  21214. var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));
  21215. module.exports = function callBoundIntrinsic(name, allowMissing) {
  21216. var intrinsic = GetIntrinsic(name, !!allowMissing);
  21217. if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
  21218. return callBind(intrinsic);
  21219. }
  21220. return intrinsic;
  21221. };
  21222. /***/ }),
  21223. /***/ "./node_modules/call-bind/index.js":
  21224. /*!*****************************************!*\
  21225. !*** ./node_modules/call-bind/index.js ***!
  21226. \*****************************************/
  21227. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  21228. "use strict";
  21229. var bind = __webpack_require__(/*! function-bind */ "./node_modules/function-bind/index.js");
  21230. var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "./node_modules/get-intrinsic/index.js");
  21231. var $apply = GetIntrinsic('%Function.prototype.apply%');
  21232. var $call = GetIntrinsic('%Function.prototype.call%');
  21233. var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);
  21234. var $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);
  21235. var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
  21236. var $max = GetIntrinsic('%Math.max%');
  21237. if ($defineProperty) {
  21238. try {
  21239. $defineProperty({}, 'a', { value: 1 });
  21240. } catch (e) {
  21241. // IE 8 has a broken defineProperty
  21242. $defineProperty = null;
  21243. }
  21244. }
  21245. module.exports = function callBind(originalFunction) {
  21246. var func = $reflectApply(bind, $call, arguments);
  21247. if ($gOPD && $defineProperty) {
  21248. var desc = $gOPD(func, 'length');
  21249. if (desc.configurable) {
  21250. // original length, plus the receiver, minus any additional arguments (after the receiver)
  21251. $defineProperty(
  21252. func,
  21253. 'length',
  21254. { value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }
  21255. );
  21256. }
  21257. }
  21258. return func;
  21259. };
  21260. var applyBind = function applyBind() {
  21261. return $reflectApply(bind, $apply, arguments);
  21262. };
  21263. if ($defineProperty) {
  21264. $defineProperty(module.exports, 'apply', { value: applyBind });
  21265. } else {
  21266. module.exports.apply = applyBind;
  21267. }
  21268. /***/ }),
  21269. /***/ "./node_modules/css-loader/dist/cjs.js??clonedRuleSet-11.use[1]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-11.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-11.use[3]!./resources/js/assets/styles/layout.scss":
  21270. /*!**************************************************************************************************************************************************************************************************************************************************!*\
  21271. !*** ./node_modules/css-loader/dist/cjs.js??clonedRuleSet-11.use[1]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-11.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-11.use[3]!./resources/js/assets/styles/layout.scss ***!
  21272. \**************************************************************************************************************************************************************************************************************************************************/
  21273. /***/ ((module, __webpack_exports__, __webpack_require__) => {
  21274. "use strict";
  21275. __webpack_require__.r(__webpack_exports__);
  21276. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  21277. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  21278. /* harmony export */ });
  21279. /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js");
  21280. /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);
  21281. // Imports
  21282. var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
  21283. // Module
  21284. ___CSS_LOADER_EXPORT___.push([module.id, "/* General */\n.preloader {\n position: fixed;\n z-index: 999999;\n background: #edf1f5;\n width: 100%;\n height: 100%;\n}\n\n.preloader-content {\n border: 0 solid transparent;\n border-radius: 50%;\n width: 150px;\n height: 150px;\n position: absolute;\n top: calc(50vh - 75px);\n left: calc(50vw - 75px);\n}\n\n.preloader-content:before, .preloader-content:after {\n content: \"\";\n border: 1em solid var(--primary-color);\n border-radius: 50%;\n width: inherit;\n height: inherit;\n position: absolute;\n top: 0;\n left: 0;\n -webkit-animation: loader 2s linear infinite;\n animation: loader 2s linear infinite;\n opacity: 0;\n}\n\n.preloader-content:before {\n -webkit-animation-delay: 0.5s;\n animation-delay: 0.5s;\n}\n\n@-webkit-keyframes loader {\n 0% {\n transform: scale(0);\n opacity: 0;\n }\n 50% {\n opacity: 1;\n }\n 100% {\n transform: scale(1);\n opacity: 0;\n }\n}\n\n@keyframes loader {\n 0% {\n transform: scale(0);\n opacity: 0;\n }\n 50% {\n opacity: 1;\n }\n 100% {\n transform: scale(1);\n opacity: 0;\n }\n}\n* {\n box-sizing: border-box;\n}\n\nhtml {\n height: 100%;\n font-size: 14px;\n}\n\nbody {\n font-family: var(--font-family);\n color: var(--text-color);\n background-color: var(--surface-ground);\n margin: 0;\n padding: 0;\n min-height: 100%;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\na {\n text-decoration: none;\n color: var(--primary-color);\n}\n\n.layout-theme-light {\n background-color: #edf1f5;\n}\n\n.layout-topbar {\n position: fixed;\n height: 5rem;\n z-index: 997;\n left: 0;\n top: 0;\n width: 100%;\n padding: 0 2rem;\n background-color: var(--surface-card);\n transition: left 0.2s;\n display: flex;\n align-items: center;\n box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.02), 0px 0px 2px rgba(0, 0, 0, 0.05), 0px 1px 4px rgba(0, 0, 0, 0.08);\n}\n.layout-topbar .layout-topbar-logo {\n display: flex;\n align-items: center;\n color: var(--surface-900);\n font-size: 1.5rem;\n font-weight: 500;\n width: 300px;\n border-radius: 12px;\n}\n.layout-topbar .layout-topbar-logo img {\n height: 2.5rem;\n margin-right: 0.5rem;\n}\n.layout-topbar .layout-topbar-logo:focus {\n outline: 0 none;\n outline-offset: 0;\n transition: box-shadow 0.2s;\n box-shadow: var(--focus-ring);\n}\n.layout-topbar .layout-topbar-button {\n display: inline-flex;\n justify-content: center;\n align-items: center;\n position: relative;\n color: var(--text-color-secondary);\n border-radius: 50%;\n width: 3rem;\n height: 3rem;\n cursor: pointer;\n transition: background-color 0.2s;\n}\n.layout-topbar .layout-topbar-button:hover {\n color: var(--text-color);\n background-color: var(--surface-hover);\n}\n.layout-topbar .layout-topbar-button:focus {\n outline: 0 none;\n outline-offset: 0;\n transition: box-shadow 0.2s;\n box-shadow: var(--focus-ring);\n}\n.layout-topbar .layout-topbar-button i {\n font-size: 1.5rem;\n}\n.layout-topbar .layout-topbar-button span {\n font-size: 1rem;\n display: none;\n}\n.layout-topbar .layout-menu-button {\n margin-left: 2rem;\n}\n.layout-topbar .layout-topbar-menu-button {\n display: none;\n}\n.layout-topbar .layout-topbar-menu-button i {\n font-size: 1.25rem;\n}\n.layout-topbar .layout-topbar-menu {\n margin: 0 0 0 auto;\n padding: 0;\n list-style: none;\n display: flex;\n}\n.layout-topbar .layout-topbar-menu .layout-topbar-button {\n margin-left: 1rem;\n}\n\n@media (max-width: 991px) {\n .layout-topbar {\n justify-content: space-between;\n }\n .layout-topbar .layout-topbar-logo {\n width: auto;\n order: 2;\n }\n .layout-topbar .layout-menu-button {\n margin-left: 0;\n order: 1;\n }\n .layout-topbar .layout-topbar-menu-button {\n display: inline-flex;\n margin-left: 0;\n order: 3;\n }\n .layout-topbar .layout-topbar-menu {\n margin-left: 0;\n position: absolute;\n flex-direction: column;\n background-color: var(--surface-overlay);\n box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.02), 0px 0px 2px rgba(0, 0, 0, 0.05), 0px 1px 4px rgba(0, 0, 0, 0.08);\n border-radius: 12px;\n padding: 1rem;\n right: 2rem;\n top: 5rem;\n min-width: 15rem;\n }\n .layout-topbar .layout-topbar-menu .layout-topbar-button {\n margin-left: 0;\n display: flex;\n width: 100%;\n height: auto;\n justify-content: flex-start;\n border-radius: 12px;\n padding: 1rem;\n }\n .layout-topbar .layout-topbar-menu .layout-topbar-button i {\n font-size: 1rem;\n margin-right: 0.5rem;\n }\n .layout-topbar .layout-topbar-menu .layout-topbar-button span {\n font-weight: medium;\n display: block;\n }\n}\n.layout-sidebar {\n position: fixed;\n width: 300px;\n height: calc(100vh - 9rem);\n z-index: 999;\n overflow-y: auto;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n top: 7rem;\n left: 2rem;\n transition: transform 0.2s, left 0.2s;\n background-color: var(--surface-overlay);\n border-radius: 12px;\n padding: 1.5rem;\n box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.02), 0px 0px 2px rgba(0, 0, 0, 0.05), 0px 1px 4px rgba(0, 0, 0, 0.08);\n}\n\n.layout-menu {\n list-style-type: none;\n margin: 0;\n padding: 0;\n}\n.layout-menu li.layout-menuitem-category {\n margin-top: 0.75rem;\n}\n.layout-menu li.layout-menuitem-category:first-child {\n margin-top: 0;\n}\n.layout-menu li .layout-menuitem-root-text {\n text-transform: uppercase;\n color: var(--surface-900);\n font-weight: 600;\n margin-bottom: 0.5rem;\n font-size: 0.875rem;\n}\n.layout-menu li a {\n cursor: pointer;\n text-decoration: none;\n display: flex;\n align-items: center;\n color: var(--text-color);\n transition: color 0.2s;\n border-radius: 12px;\n padding: 0.75rem 1rem;\n transition: background-color 0.15s;\n}\n.layout-menu li a span {\n margin-left: 0.5rem;\n}\n.layout-menu li a .menuitem-toggle-icon {\n margin-left: auto;\n}\n.layout-menu li a:focus {\n outline: 0 none;\n outline-offset: 0;\n transition: box-shadow 0.2s;\n box-shadow: inset var(--focus-ring);\n}\n.layout-menu li a:hover {\n background-color: var(--surface-hover);\n}\n.layout-menu li a.router-link-exact-active {\n font-weight: 700;\n color: var(--primary-color);\n}\n.layout-menu li a .p-badge {\n margin-left: auto;\n}\n.layout-menu li.active-menuitem > a .menuitem-toggle-icon:before {\n content: \"\\e933\";\n}\n.layout-menu li ul {\n list-style-type: none;\n margin: 0;\n padding: 0;\n}\n.layout-menu li ul.layout-submenu-wrapper-enter-from, .layout-menu li ul.layout-submenu-wrapper-leave-to {\n max-height: 0;\n}\n.layout-menu li ul.layout-submenu-wrapper-enter-to, .layout-menu li ul.layout-submenu-wrapper-leave-from {\n max-height: 1000px;\n}\n.layout-menu li ul.layout-submenu-wrapper-leave-active {\n overflow: hidden;\n transition: max-height 0.45s cubic-bezier(0, 1, 0, 1);\n}\n.layout-menu li ul.layout-submenu-wrapper-enter-active {\n overflow: hidden;\n transition: max-height 1s ease-in-out;\n}\n.layout-menu li ul ul {\n padding-left: 1rem;\n}\n\n.layout-main-container {\n display: flex;\n flex-direction: column;\n min-height: 100vh;\n justify-content: space-between;\n padding: 7rem 2rem 2rem 4rem;\n transition: margin-left 0.2s;\n}\n\n.layout-main {\n flex: 1 1 auto;\n}\n\n.layout-footer {\n transition: margin-left 0.2s;\n display: flex;\n align-items: center;\n justify-content: center;\n padding-top: 1rem;\n border-top: 1px solid var(--surface-border);\n}\n\n@media (min-width: 992px) {\n .layout-wrapper.layout-overlay .layout-main-container {\n margin-left: 0;\n padding-left: 2rem;\n }\n .layout-wrapper.layout-overlay .layout-sidebar {\n transform: translateX(-100%);\n left: 0;\n top: 0;\n height: 100vh;\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n }\n .layout-wrapper.layout-overlay.layout-overlay-sidebar-active .layout-sidebar {\n transform: translateX(0);\n }\n .layout-wrapper.layout-static .layout-main-container {\n margin-left: 300px;\n }\n .layout-wrapper.layout-static.layout-static-sidebar-inactive .layout-sidebar {\n transform: translateX(-100%);\n left: 0;\n }\n .layout-wrapper.layout-static.layout-static-sidebar-inactive .layout-main-container {\n margin-left: 0;\n padding-left: 2rem;\n }\n .layout-wrapper .layout-mask {\n display: none;\n }\n}\n@media (max-width: 991px) {\n .layout-wrapper .layout-main-container {\n margin-left: 0;\n padding-left: 2rem;\n }\n .layout-wrapper .layout-sidebar {\n transform: translateX(-100%);\n left: 0;\n top: 0;\n height: 100vh;\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n }\n .layout-wrapper .layout-mask {\n z-index: 998;\n background-color: var(--maskbg);\n }\n .layout-wrapper .layout-mask.layout-mask-enter-from, .layout-wrapper .layout-mask.layout-mask-leave-to {\n background-color: transparent;\n }\n .layout-wrapper.layout-mobile-sidebar-active .layout-sidebar {\n transform: translateX(0);\n }\n .layout-wrapper.layout-mobile-sidebar-active .layout-mask {\n display: block;\n }\n\n .body-overflow-hidden {\n overflow: hidden;\n }\n}\n.card {\n background-color: var(--surface-card);\n padding: 1.5rem;\n color: var(--surface-900);\n margin-bottom: 1rem;\n border-radius: 12px;\n box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.02), 0px 0px 2px rgba(0, 0, 0, 0.05), 0px 1px 4px rgba(0, 0, 0, 0.08) !important;\n}\n.card.card-w-title {\n padding-bottom: 2rem;\n}\n\nh1, h2, h3, h4, h5, h6 {\n margin: 1.5rem 0 1rem 0;\n font-family: inherit;\n font-weight: 500;\n line-height: 1.2;\n color: inherit;\n}\nh1:first-child, h2:first-child, h3:first-child, h4:first-child, h5:first-child, h6:first-child {\n margin-top: 0;\n}\n\nh1 {\n font-size: 2.5rem;\n}\n\nh2 {\n font-size: 2rem;\n}\n\nh3 {\n font-size: 1.75rem;\n}\n\nh4 {\n font-size: 1.5rem;\n}\n\nh5 {\n font-size: 1.25rem;\n}\n\nh6 {\n font-size: 1rem;\n}\n\nmark {\n background: #FFF8E1;\n padding: 0.25rem 0.4rem;\n border-radius: 12px;\n font-family: monospace;\n}\n\nblockquote {\n margin: 1rem 0;\n padding: 0 2rem;\n border-left: 4px solid #90A4AE;\n}\n\nhr {\n border-top: solid var(--surface-border);\n border-width: 1px 0 0 0;\n margin: 1rem 0;\n}\n\np {\n margin: 0 0 1rem 0;\n line-height: 1.5;\n}\np:last-child {\n margin-bottom: 0;\n}", ""]);
  21285. // Exports
  21286. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
  21287. /***/ }),
  21288. /***/ "./node_modules/css-loader/dist/cjs.js??clonedRuleSet-8.use[1]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-8.use[2]!./node_modules/primeflex/primeflex.css":
  21289. /*!******************************************************************************************************************************************************************************!*\
  21290. !*** ./node_modules/css-loader/dist/cjs.js??clonedRuleSet-8.use[1]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-8.use[2]!./node_modules/primeflex/primeflex.css ***!
  21291. \******************************************************************************************************************************************************************************/
  21292. /***/ ((module, __webpack_exports__, __webpack_require__) => {
  21293. "use strict";
  21294. __webpack_require__.r(__webpack_exports__);
  21295. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  21296. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  21297. /* harmony export */ });
  21298. /* harmony import */ var _css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js");
  21299. /* harmony import */ var _css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);
  21300. // Imports
  21301. var ___CSS_LOADER_EXPORT___ = _css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
  21302. // Module
  21303. ___CSS_LOADER_EXPORT___.push([module.id, ".grid {\n display: flex;\n flex-wrap: wrap;\n margin-right: -0.5rem;\n margin-left: -0.5rem;\n margin-top: -0.5rem;\n}\n\n.grid > .col,\n.grid > [class*=col] {\n box-sizing: border-box;\n}\n\n.grid-nogutter {\n margin-right: 0;\n margin-left: 0;\n margin-top: 0;\n}\n\n.grid-nogutter > .col,\n.grid-nogutter > [class*=col-] {\n padding: 0;\n}\n\n.col {\n flex-grow: 1;\n flex-basis: 0;\n padding: 0.5rem;\n}\n\n.col-fixed {\n flex: 0 0 auto;\n padding: 0.5rem;\n}\n\n.col-1 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 8.3333%;\n}\n\n.col-2 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 16.6667%;\n}\n\n.col-3 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 25%;\n}\n\n.col-4 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 33.3333%;\n}\n\n.col-5 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 41.6667%;\n}\n\n.col-6 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 50%;\n}\n\n.col-7 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 58.3333%;\n}\n\n.col-8 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 66.6667%;\n}\n\n.col-9 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 75%;\n}\n\n.col-10 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 83.3333%;\n}\n\n.col-11 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 91.6667%;\n}\n\n.col-12 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 100%;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:col-1 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 8.3333%;\n }\n .sm\\:col-2 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 16.6667%;\n }\n .sm\\:col-3 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 25%;\n }\n .sm\\:col-4 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 33.3333%;\n }\n .sm\\:col-5 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 41.6667%;\n }\n .sm\\:col-6 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 50%;\n }\n .sm\\:col-7 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 58.3333%;\n }\n .sm\\:col-8 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 66.6667%;\n }\n .sm\\:col-9 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 75%;\n }\n .sm\\:col-10 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 83.3333%;\n }\n .sm\\:col-11 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 91.6667%;\n }\n .sm\\:col-12 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 100%;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:col-1 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 8.3333%;\n }\n .md\\:col-2 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 16.6667%;\n }\n .md\\:col-3 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 25%;\n }\n .md\\:col-4 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 33.3333%;\n }\n .md\\:col-5 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 41.6667%;\n }\n .md\\:col-6 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 50%;\n }\n .md\\:col-7 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 58.3333%;\n }\n .md\\:col-8 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 66.6667%;\n }\n .md\\:col-9 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 75%;\n }\n .md\\:col-10 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 83.3333%;\n }\n .md\\:col-11 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 91.6667%;\n }\n .md\\:col-12 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 100%;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:col-1 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 8.3333%;\n }\n .lg\\:col-2 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 16.6667%;\n }\n .lg\\:col-3 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 25%;\n }\n .lg\\:col-4 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 33.3333%;\n }\n .lg\\:col-5 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 41.6667%;\n }\n .lg\\:col-6 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 50%;\n }\n .lg\\:col-7 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 58.3333%;\n }\n .lg\\:col-8 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 66.6667%;\n }\n .lg\\:col-9 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 75%;\n }\n .lg\\:col-10 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 83.3333%;\n }\n .lg\\:col-11 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 91.6667%;\n }\n .lg\\:col-12 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 100%;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:col-1 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 8.3333%;\n }\n .xl\\:col-2 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 16.6667%;\n }\n .xl\\:col-3 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 25%;\n }\n .xl\\:col-4 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 33.3333%;\n }\n .xl\\:col-5 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 41.6667%;\n }\n .xl\\:col-6 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 50%;\n }\n .xl\\:col-7 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 58.3333%;\n }\n .xl\\:col-8 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 66.6667%;\n }\n .xl\\:col-9 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 75%;\n }\n .xl\\:col-10 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 83.3333%;\n }\n .xl\\:col-11 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 91.6667%;\n }\n .xl\\:col-12 {\n flex: 0 0 auto;\n padding: 0.5rem;\n width: 100%;\n }\n}\n.col-offset-0 {\n margin-left: 0 !important;\n}\n\n.col-offset-1 {\n margin-left: 8.3333% !important;\n}\n\n.col-offset-2 {\n margin-left: 16.6667% !important;\n}\n\n.col-offset-3 {\n margin-left: 25% !important;\n}\n\n.col-offset-4 {\n margin-left: 33.3333% !important;\n}\n\n.col-offset-5 {\n margin-left: 41.6667% !important;\n}\n\n.col-offset-6 {\n margin-left: 50% !important;\n}\n\n.col-offset-7 {\n margin-left: 58.3333% !important;\n}\n\n.col-offset-8 {\n margin-left: 66.6667% !important;\n}\n\n.col-offset-9 {\n margin-left: 75% !important;\n}\n\n.col-offset-10 {\n margin-left: 83.3333% !important;\n}\n\n.col-offset-11 {\n margin-left: 91.6667% !important;\n}\n\n.col-offset-12 {\n margin-left: 100% !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:col-offset-0 {\n margin-left: 0 !important;\n }\n .sm\\:col-offset-1 {\n margin-left: 8.3333% !important;\n }\n .sm\\:col-offset-2 {\n margin-left: 16.6667% !important;\n }\n .sm\\:col-offset-3 {\n margin-left: 25% !important;\n }\n .sm\\:col-offset-4 {\n margin-left: 33.3333% !important;\n }\n .sm\\:col-offset-5 {\n margin-left: 41.6667% !important;\n }\n .sm\\:col-offset-6 {\n margin-left: 50% !important;\n }\n .sm\\:col-offset-7 {\n margin-left: 58.3333% !important;\n }\n .sm\\:col-offset-8 {\n margin-left: 66.6667% !important;\n }\n .sm\\:col-offset-9 {\n margin-left: 75% !important;\n }\n .sm\\:col-offset-10 {\n margin-left: 83.3333% !important;\n }\n .sm\\:col-offset-11 {\n margin-left: 91.6667% !important;\n }\n .sm\\:col-offset-12 {\n margin-left: 100% !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:col-offset-0 {\n margin-left: 0 !important;\n }\n .md\\:col-offset-1 {\n margin-left: 8.3333% !important;\n }\n .md\\:col-offset-2 {\n margin-left: 16.6667% !important;\n }\n .md\\:col-offset-3 {\n margin-left: 25% !important;\n }\n .md\\:col-offset-4 {\n margin-left: 33.3333% !important;\n }\n .md\\:col-offset-5 {\n margin-left: 41.6667% !important;\n }\n .md\\:col-offset-6 {\n margin-left: 50% !important;\n }\n .md\\:col-offset-7 {\n margin-left: 58.3333% !important;\n }\n .md\\:col-offset-8 {\n margin-left: 66.6667% !important;\n }\n .md\\:col-offset-9 {\n margin-left: 75% !important;\n }\n .md\\:col-offset-10 {\n margin-left: 83.3333% !important;\n }\n .md\\:col-offset-11 {\n margin-left: 91.6667% !important;\n }\n .md\\:col-offset-12 {\n margin-left: 100% !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:col-offset-0 {\n margin-left: 0 !important;\n }\n .lg\\:col-offset-1 {\n margin-left: 8.3333% !important;\n }\n .lg\\:col-offset-2 {\n margin-left: 16.6667% !important;\n }\n .lg\\:col-offset-3 {\n margin-left: 25% !important;\n }\n .lg\\:col-offset-4 {\n margin-left: 33.3333% !important;\n }\n .lg\\:col-offset-5 {\n margin-left: 41.6667% !important;\n }\n .lg\\:col-offset-6 {\n margin-left: 50% !important;\n }\n .lg\\:col-offset-7 {\n margin-left: 58.3333% !important;\n }\n .lg\\:col-offset-8 {\n margin-left: 66.6667% !important;\n }\n .lg\\:col-offset-9 {\n margin-left: 75% !important;\n }\n .lg\\:col-offset-10 {\n margin-left: 83.3333% !important;\n }\n .lg\\:col-offset-11 {\n margin-left: 91.6667% !important;\n }\n .lg\\:col-offset-12 {\n margin-left: 100% !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:col-offset-0 {\n margin-left: 0 !important;\n }\n .xl\\:col-offset-1 {\n margin-left: 8.3333% !important;\n }\n .xl\\:col-offset-2 {\n margin-left: 16.6667% !important;\n }\n .xl\\:col-offset-3 {\n margin-left: 25% !important;\n }\n .xl\\:col-offset-4 {\n margin-left: 33.3333% !important;\n }\n .xl\\:col-offset-5 {\n margin-left: 41.6667% !important;\n }\n .xl\\:col-offset-6 {\n margin-left: 50% !important;\n }\n .xl\\:col-offset-7 {\n margin-left: 58.3333% !important;\n }\n .xl\\:col-offset-8 {\n margin-left: 66.6667% !important;\n }\n .xl\\:col-offset-9 {\n margin-left: 75% !important;\n }\n .xl\\:col-offset-10 {\n margin-left: 83.3333% !important;\n }\n .xl\\:col-offset-11 {\n margin-left: 91.6667% !important;\n }\n .xl\\:col-offset-12 {\n margin-left: 100% !important;\n }\n}\n.text-0 {\n color: var(--surface-0) !important;\n}\n\n.text-50 {\n color: var(--surface-50) !important;\n}\n\n.text-100 {\n color: var(--surface-100) !important;\n}\n\n.text-200 {\n color: var(--surface-200) !important;\n}\n\n.text-300 {\n color: var(--surface-300) !important;\n}\n\n.text-400 {\n color: var(--surface-400) !important;\n}\n\n.text-500 {\n color: var(--surface-500) !important;\n}\n\n.text-600 {\n color: var(--surface-600) !important;\n}\n\n.text-700 {\n color: var(--surface-700) !important;\n}\n\n.text-800 {\n color: var(--surface-800) !important;\n}\n\n.text-900 {\n color: var(--surface-900) !important;\n}\n\n.focus\\:text-0:focus {\n color: var(--surface-0) !important;\n}\n\n.hover\\:text-0:hover {\n color: var(--surface-0) !important;\n}\n\n.active\\:text-0:active {\n color: var(--surface-0) !important;\n}\n\n.focus\\:text-50:focus {\n color: var(--surface-50) !important;\n}\n\n.hover\\:text-50:hover {\n color: var(--surface-50) !important;\n}\n\n.active\\:text-50:active {\n color: var(--surface-50) !important;\n}\n\n.focus\\:text-100:focus {\n color: var(--surface-100) !important;\n}\n\n.hover\\:text-100:hover {\n color: var(--surface-100) !important;\n}\n\n.active\\:text-100:active {\n color: var(--surface-100) !important;\n}\n\n.focus\\:text-200:focus {\n color: var(--surface-200) !important;\n}\n\n.hover\\:text-200:hover {\n color: var(--surface-200) !important;\n}\n\n.active\\:text-200:active {\n color: var(--surface-200) !important;\n}\n\n.focus\\:text-300:focus {\n color: var(--surface-300) !important;\n}\n\n.hover\\:text-300:hover {\n color: var(--surface-300) !important;\n}\n\n.active\\:text-300:active {\n color: var(--surface-300) !important;\n}\n\n.focus\\:text-400:focus {\n color: var(--surface-400) !important;\n}\n\n.hover\\:text-400:hover {\n color: var(--surface-400) !important;\n}\n\n.active\\:text-400:active {\n color: var(--surface-400) !important;\n}\n\n.focus\\:text-500:focus {\n color: var(--surface-500) !important;\n}\n\n.hover\\:text-500:hover {\n color: var(--surface-500) !important;\n}\n\n.active\\:text-500:active {\n color: var(--surface-500) !important;\n}\n\n.focus\\:text-600:focus {\n color: var(--surface-600) !important;\n}\n\n.hover\\:text-600:hover {\n color: var(--surface-600) !important;\n}\n\n.active\\:text-600:active {\n color: var(--surface-600) !important;\n}\n\n.focus\\:text-700:focus {\n color: var(--surface-700) !important;\n}\n\n.hover\\:text-700:hover {\n color: var(--surface-700) !important;\n}\n\n.active\\:text-700:active {\n color: var(--surface-700) !important;\n}\n\n.focus\\:text-800:focus {\n color: var(--surface-800) !important;\n}\n\n.hover\\:text-800:hover {\n color: var(--surface-800) !important;\n}\n\n.active\\:text-800:active {\n color: var(--surface-800) !important;\n}\n\n.focus\\:text-900:focus {\n color: var(--surface-900) !important;\n}\n\n.hover\\:text-900:hover {\n color: var(--surface-900) !important;\n}\n\n.active\\:text-900:active {\n color: var(--surface-900) !important;\n}\n\n.surface-0 {\n background-color: var(--surface-0) !important;\n}\n\n.surface-50 {\n background-color: var(--surface-50) !important;\n}\n\n.surface-100 {\n background-color: var(--surface-100) !important;\n}\n\n.surface-200 {\n background-color: var(--surface-200) !important;\n}\n\n.surface-300 {\n background-color: var(--surface-300) !important;\n}\n\n.surface-400 {\n background-color: var(--surface-400) !important;\n}\n\n.surface-500 {\n background-color: var(--surface-500) !important;\n}\n\n.surface-600 {\n background-color: var(--surface-600) !important;\n}\n\n.surface-700 {\n background-color: var(--surface-700) !important;\n}\n\n.surface-800 {\n background-color: var(--surface-800) !important;\n}\n\n.surface-900 {\n background-color: var(--surface-900) !important;\n}\n\n.focus\\:surface-0:focus {\n background-color: var(--surface-0) !important;\n}\n\n.hover\\:surface-0:hover {\n background-color: var(--surface-0) !important;\n}\n\n.active\\:surface-0:active {\n background-color: var(--surface-0) !important;\n}\n\n.focus\\:surface-50:focus {\n background-color: var(--surface-50) !important;\n}\n\n.hover\\:surface-50:hover {\n background-color: var(--surface-50) !important;\n}\n\n.active\\:surface-50:active {\n background-color: var(--surface-50) !important;\n}\n\n.focus\\:surface-100:focus {\n background-color: var(--surface-100) !important;\n}\n\n.hover\\:surface-100:hover {\n background-color: var(--surface-100) !important;\n}\n\n.active\\:surface-100:active {\n background-color: var(--surface-100) !important;\n}\n\n.focus\\:surface-200:focus {\n background-color: var(--surface-200) !important;\n}\n\n.hover\\:surface-200:hover {\n background-color: var(--surface-200) !important;\n}\n\n.active\\:surface-200:active {\n background-color: var(--surface-200) !important;\n}\n\n.focus\\:surface-300:focus {\n background-color: var(--surface-300) !important;\n}\n\n.hover\\:surface-300:hover {\n background-color: var(--surface-300) !important;\n}\n\n.active\\:surface-300:active {\n background-color: var(--surface-300) !important;\n}\n\n.focus\\:surface-400:focus {\n background-color: var(--surface-400) !important;\n}\n\n.hover\\:surface-400:hover {\n background-color: var(--surface-400) !important;\n}\n\n.active\\:surface-400:active {\n background-color: var(--surface-400) !important;\n}\n\n.focus\\:surface-500:focus {\n background-color: var(--surface-500) !important;\n}\n\n.hover\\:surface-500:hover {\n background-color: var(--surface-500) !important;\n}\n\n.active\\:surface-500:active {\n background-color: var(--surface-500) !important;\n}\n\n.focus\\:surface-600:focus {\n background-color: var(--surface-600) !important;\n}\n\n.hover\\:surface-600:hover {\n background-color: var(--surface-600) !important;\n}\n\n.active\\:surface-600:active {\n background-color: var(--surface-600) !important;\n}\n\n.focus\\:surface-700:focus {\n background-color: var(--surface-700) !important;\n}\n\n.hover\\:surface-700:hover {\n background-color: var(--surface-700) !important;\n}\n\n.active\\:surface-700:active {\n background-color: var(--surface-700) !important;\n}\n\n.focus\\:surface-800:focus {\n background-color: var(--surface-800) !important;\n}\n\n.hover\\:surface-800:hover {\n background-color: var(--surface-800) !important;\n}\n\n.active\\:surface-800:active {\n background-color: var(--surface-800) !important;\n}\n\n.focus\\:surface-900:focus {\n background-color: var(--surface-900) !important;\n}\n\n.hover\\:surface-900:hover {\n background-color: var(--surface-900) !important;\n}\n\n.active\\:surface-900:active {\n background-color: var(--surface-900) !important;\n}\n\n.border-0 {\n border-color: var(--surface-0) !important;\n}\n\n.border-50 {\n border-color: var(--surface-50) !important;\n}\n\n.border-100 {\n border-color: var(--surface-100) !important;\n}\n\n.border-200 {\n border-color: var(--surface-200) !important;\n}\n\n.border-300 {\n border-color: var(--surface-300) !important;\n}\n\n.border-400 {\n border-color: var(--surface-400) !important;\n}\n\n.border-500 {\n border-color: var(--surface-500) !important;\n}\n\n.border-600 {\n border-color: var(--surface-600) !important;\n}\n\n.border-700 {\n border-color: var(--surface-700) !important;\n}\n\n.border-800 {\n border-color: var(--surface-800) !important;\n}\n\n.border-900 {\n border-color: var(--surface-900) !important;\n}\n\n.focus\\:border-0:focus {\n border-color: var(--surface-0) !important;\n}\n\n.hover\\:border-0:hover {\n border-color: var(--surface-0) !important;\n}\n\n.active\\:border-0:active {\n border-color: var(--surface-0) !important;\n}\n\n.focus\\:border-50:focus {\n border-color: var(--surface-50) !important;\n}\n\n.hover\\:border-50:hover {\n border-color: var(--surface-50) !important;\n}\n\n.active\\:border-50:active {\n border-color: var(--surface-50) !important;\n}\n\n.focus\\:border-100:focus {\n border-color: var(--surface-100) !important;\n}\n\n.hover\\:border-100:hover {\n border-color: var(--surface-100) !important;\n}\n\n.active\\:border-100:active {\n border-color: var(--surface-100) !important;\n}\n\n.focus\\:border-200:focus {\n border-color: var(--surface-200) !important;\n}\n\n.hover\\:border-200:hover {\n border-color: var(--surface-200) !important;\n}\n\n.active\\:border-200:active {\n border-color: var(--surface-200) !important;\n}\n\n.focus\\:border-300:focus {\n border-color: var(--surface-300) !important;\n}\n\n.hover\\:border-300:hover {\n border-color: var(--surface-300) !important;\n}\n\n.active\\:border-300:active {\n border-color: var(--surface-300) !important;\n}\n\n.focus\\:border-400:focus {\n border-color: var(--surface-400) !important;\n}\n\n.hover\\:border-400:hover {\n border-color: var(--surface-400) !important;\n}\n\n.active\\:border-400:active {\n border-color: var(--surface-400) !important;\n}\n\n.focus\\:border-500:focus {\n border-color: var(--surface-500) !important;\n}\n\n.hover\\:border-500:hover {\n border-color: var(--surface-500) !important;\n}\n\n.active\\:border-500:active {\n border-color: var(--surface-500) !important;\n}\n\n.focus\\:border-600:focus {\n border-color: var(--surface-600) !important;\n}\n\n.hover\\:border-600:hover {\n border-color: var(--surface-600) !important;\n}\n\n.active\\:border-600:active {\n border-color: var(--surface-600) !important;\n}\n\n.focus\\:border-700:focus {\n border-color: var(--surface-700) !important;\n}\n\n.hover\\:border-700:hover {\n border-color: var(--surface-700) !important;\n}\n\n.active\\:border-700:active {\n border-color: var(--surface-700) !important;\n}\n\n.focus\\:border-800:focus {\n border-color: var(--surface-800) !important;\n}\n\n.hover\\:border-800:hover {\n border-color: var(--surface-800) !important;\n}\n\n.active\\:border-800:active {\n border-color: var(--surface-800) !important;\n}\n\n.focus\\:border-900:focus {\n border-color: var(--surface-900) !important;\n}\n\n.hover\\:border-900:hover {\n border-color: var(--surface-900) !important;\n}\n\n.active\\:border-900:active {\n border-color: var(--surface-900) !important;\n}\n\n.bg-transparent {\n background-color: transparent !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:bg-transparent {\n background-color: transparent !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:bg-transparent {\n background-color: transparent !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:bg-transparent {\n background-color: transparent !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:bg-transparent {\n background-color: transparent !important;\n }\n}\n.border-transparent {\n border-color: transparent !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:border-transparent {\n border-color: transparent !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:border-transparent {\n border-color: transparent !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:border-transparent {\n border-color: transparent !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:border-transparent {\n border-color: transparent !important;\n }\n}\n.text-blue-50 {\n color: var(--blue-50) !important;\n}\n.text-blue-100 {\n color: var(--blue-100) !important;\n}\n.text-blue-200 {\n color: var(--blue-200) !important;\n}\n.text-blue-300 {\n color: var(--blue-300) !important;\n}\n.text-blue-400 {\n color: var(--blue-400) !important;\n}\n.text-blue-500 {\n color: var(--blue-500) !important;\n}\n.text-blue-600 {\n color: var(--blue-600) !important;\n}\n.text-blue-700 {\n color: var(--blue-700) !important;\n}\n.text-blue-800 {\n color: var(--blue-800) !important;\n}\n.text-blue-900 {\n color: var(--blue-900) !important;\n}\n\n.focus\\:text-blue-50:focus {\n color: var(--blue-50) !important;\n}\n.focus\\:text-blue-100:focus {\n color: var(--blue-100) !important;\n}\n.focus\\:text-blue-200:focus {\n color: var(--blue-200) !important;\n}\n.focus\\:text-blue-300:focus {\n color: var(--blue-300) !important;\n}\n.focus\\:text-blue-400:focus {\n color: var(--blue-400) !important;\n}\n.focus\\:text-blue-500:focus {\n color: var(--blue-500) !important;\n}\n.focus\\:text-blue-600:focus {\n color: var(--blue-600) !important;\n}\n.focus\\:text-blue-700:focus {\n color: var(--blue-700) !important;\n}\n.focus\\:text-blue-800:focus {\n color: var(--blue-800) !important;\n}\n.focus\\:text-blue-900:focus {\n color: var(--blue-900) !important;\n}\n\n.hover\\:text-blue-50:hover {\n color: var(--blue-50) !important;\n}\n.hover\\:text-blue-100:hover {\n color: var(--blue-100) !important;\n}\n.hover\\:text-blue-200:hover {\n color: var(--blue-200) !important;\n}\n.hover\\:text-blue-300:hover {\n color: var(--blue-300) !important;\n}\n.hover\\:text-blue-400:hover {\n color: var(--blue-400) !important;\n}\n.hover\\:text-blue-500:hover {\n color: var(--blue-500) !important;\n}\n.hover\\:text-blue-600:hover {\n color: var(--blue-600) !important;\n}\n.hover\\:text-blue-700:hover {\n color: var(--blue-700) !important;\n}\n.hover\\:text-blue-800:hover {\n color: var(--blue-800) !important;\n}\n.hover\\:text-blue-900:hover {\n color: var(--blue-900) !important;\n}\n\n.active\\:text-blue-50:active {\n color: var(--blue-50) !important;\n}\n.active\\:text-blue-100:active {\n color: var(--blue-100) !important;\n}\n.active\\:text-blue-200:active {\n color: var(--blue-200) !important;\n}\n.active\\:text-blue-300:active {\n color: var(--blue-300) !important;\n}\n.active\\:text-blue-400:active {\n color: var(--blue-400) !important;\n}\n.active\\:text-blue-500:active {\n color: var(--blue-500) !important;\n}\n.active\\:text-blue-600:active {\n color: var(--blue-600) !important;\n}\n.active\\:text-blue-700:active {\n color: var(--blue-700) !important;\n}\n.active\\:text-blue-800:active {\n color: var(--blue-800) !important;\n}\n.active\\:text-blue-900:active {\n color: var(--blue-900) !important;\n}\n\n.text-green-50 {\n color: var(--green-50) !important;\n}\n.text-green-100 {\n color: var(--green-100) !important;\n}\n.text-green-200 {\n color: var(--green-200) !important;\n}\n.text-green-300 {\n color: var(--green-300) !important;\n}\n.text-green-400 {\n color: var(--green-400) !important;\n}\n.text-green-500 {\n color: var(--green-500) !important;\n}\n.text-green-600 {\n color: var(--green-600) !important;\n}\n.text-green-700 {\n color: var(--green-700) !important;\n}\n.text-green-800 {\n color: var(--green-800) !important;\n}\n.text-green-900 {\n color: var(--green-900) !important;\n}\n\n.focus\\:text-green-50:focus {\n color: var(--green-50) !important;\n}\n.focus\\:text-green-100:focus {\n color: var(--green-100) !important;\n}\n.focus\\:text-green-200:focus {\n color: var(--green-200) !important;\n}\n.focus\\:text-green-300:focus {\n color: var(--green-300) !important;\n}\n.focus\\:text-green-400:focus {\n color: var(--green-400) !important;\n}\n.focus\\:text-green-500:focus {\n color: var(--green-500) !important;\n}\n.focus\\:text-green-600:focus {\n color: var(--green-600) !important;\n}\n.focus\\:text-green-700:focus {\n color: var(--green-700) !important;\n}\n.focus\\:text-green-800:focus {\n color: var(--green-800) !important;\n}\n.focus\\:text-green-900:focus {\n color: var(--green-900) !important;\n}\n\n.hover\\:text-green-50:hover {\n color: var(--green-50) !important;\n}\n.hover\\:text-green-100:hover {\n color: var(--green-100) !important;\n}\n.hover\\:text-green-200:hover {\n color: var(--green-200) !important;\n}\n.hover\\:text-green-300:hover {\n color: var(--green-300) !important;\n}\n.hover\\:text-green-400:hover {\n color: var(--green-400) !important;\n}\n.hover\\:text-green-500:hover {\n color: var(--green-500) !important;\n}\n.hover\\:text-green-600:hover {\n color: var(--green-600) !important;\n}\n.hover\\:text-green-700:hover {\n color: var(--green-700) !important;\n}\n.hover\\:text-green-800:hover {\n color: var(--green-800) !important;\n}\n.hover\\:text-green-900:hover {\n color: var(--green-900) !important;\n}\n\n.active\\:text-green-50:active {\n color: var(--green-50) !important;\n}\n.active\\:text-green-100:active {\n color: var(--green-100) !important;\n}\n.active\\:text-green-200:active {\n color: var(--green-200) !important;\n}\n.active\\:text-green-300:active {\n color: var(--green-300) !important;\n}\n.active\\:text-green-400:active {\n color: var(--green-400) !important;\n}\n.active\\:text-green-500:active {\n color: var(--green-500) !important;\n}\n.active\\:text-green-600:active {\n color: var(--green-600) !important;\n}\n.active\\:text-green-700:active {\n color: var(--green-700) !important;\n}\n.active\\:text-green-800:active {\n color: var(--green-800) !important;\n}\n.active\\:text-green-900:active {\n color: var(--green-900) !important;\n}\n\n.text-yellow-50 {\n color: var(--yellow-50) !important;\n}\n.text-yellow-100 {\n color: var(--yellow-100) !important;\n}\n.text-yellow-200 {\n color: var(--yellow-200) !important;\n}\n.text-yellow-300 {\n color: var(--yellow-300) !important;\n}\n.text-yellow-400 {\n color: var(--yellow-400) !important;\n}\n.text-yellow-500 {\n color: var(--yellow-500) !important;\n}\n.text-yellow-600 {\n color: var(--yellow-600) !important;\n}\n.text-yellow-700 {\n color: var(--yellow-700) !important;\n}\n.text-yellow-800 {\n color: var(--yellow-800) !important;\n}\n.text-yellow-900 {\n color: var(--yellow-900) !important;\n}\n\n.focus\\:text-yellow-50:focus {\n color: var(--yellow-50) !important;\n}\n.focus\\:text-yellow-100:focus {\n color: var(--yellow-100) !important;\n}\n.focus\\:text-yellow-200:focus {\n color: var(--yellow-200) !important;\n}\n.focus\\:text-yellow-300:focus {\n color: var(--yellow-300) !important;\n}\n.focus\\:text-yellow-400:focus {\n color: var(--yellow-400) !important;\n}\n.focus\\:text-yellow-500:focus {\n color: var(--yellow-500) !important;\n}\n.focus\\:text-yellow-600:focus {\n color: var(--yellow-600) !important;\n}\n.focus\\:text-yellow-700:focus {\n color: var(--yellow-700) !important;\n}\n.focus\\:text-yellow-800:focus {\n color: var(--yellow-800) !important;\n}\n.focus\\:text-yellow-900:focus {\n color: var(--yellow-900) !important;\n}\n\n.hover\\:text-yellow-50:hover {\n color: var(--yellow-50) !important;\n}\n.hover\\:text-yellow-100:hover {\n color: var(--yellow-100) !important;\n}\n.hover\\:text-yellow-200:hover {\n color: var(--yellow-200) !important;\n}\n.hover\\:text-yellow-300:hover {\n color: var(--yellow-300) !important;\n}\n.hover\\:text-yellow-400:hover {\n color: var(--yellow-400) !important;\n}\n.hover\\:text-yellow-500:hover {\n color: var(--yellow-500) !important;\n}\n.hover\\:text-yellow-600:hover {\n color: var(--yellow-600) !important;\n}\n.hover\\:text-yellow-700:hover {\n color: var(--yellow-700) !important;\n}\n.hover\\:text-yellow-800:hover {\n color: var(--yellow-800) !important;\n}\n.hover\\:text-yellow-900:hover {\n color: var(--yellow-900) !important;\n}\n\n.active\\:text-yellow-50:active {\n color: var(--yellow-50) !important;\n}\n.active\\:text-yellow-100:active {\n color: var(--yellow-100) !important;\n}\n.active\\:text-yellow-200:active {\n color: var(--yellow-200) !important;\n}\n.active\\:text-yellow-300:active {\n color: var(--yellow-300) !important;\n}\n.active\\:text-yellow-400:active {\n color: var(--yellow-400) !important;\n}\n.active\\:text-yellow-500:active {\n color: var(--yellow-500) !important;\n}\n.active\\:text-yellow-600:active {\n color: var(--yellow-600) !important;\n}\n.active\\:text-yellow-700:active {\n color: var(--yellow-700) !important;\n}\n.active\\:text-yellow-800:active {\n color: var(--yellow-800) !important;\n}\n.active\\:text-yellow-900:active {\n color: var(--yellow-900) !important;\n}\n\n.text-cyan-50 {\n color: var(--cyan-50) !important;\n}\n.text-cyan-100 {\n color: var(--cyan-100) !important;\n}\n.text-cyan-200 {\n color: var(--cyan-200) !important;\n}\n.text-cyan-300 {\n color: var(--cyan-300) !important;\n}\n.text-cyan-400 {\n color: var(--cyan-400) !important;\n}\n.text-cyan-500 {\n color: var(--cyan-500) !important;\n}\n.text-cyan-600 {\n color: var(--cyan-600) !important;\n}\n.text-cyan-700 {\n color: var(--cyan-700) !important;\n}\n.text-cyan-800 {\n color: var(--cyan-800) !important;\n}\n.text-cyan-900 {\n color: var(--cyan-900) !important;\n}\n\n.focus\\:text-cyan-50:focus {\n color: var(--cyan-50) !important;\n}\n.focus\\:text-cyan-100:focus {\n color: var(--cyan-100) !important;\n}\n.focus\\:text-cyan-200:focus {\n color: var(--cyan-200) !important;\n}\n.focus\\:text-cyan-300:focus {\n color: var(--cyan-300) !important;\n}\n.focus\\:text-cyan-400:focus {\n color: var(--cyan-400) !important;\n}\n.focus\\:text-cyan-500:focus {\n color: var(--cyan-500) !important;\n}\n.focus\\:text-cyan-600:focus {\n color: var(--cyan-600) !important;\n}\n.focus\\:text-cyan-700:focus {\n color: var(--cyan-700) !important;\n}\n.focus\\:text-cyan-800:focus {\n color: var(--cyan-800) !important;\n}\n.focus\\:text-cyan-900:focus {\n color: var(--cyan-900) !important;\n}\n\n.hover\\:text-cyan-50:hover {\n color: var(--cyan-50) !important;\n}\n.hover\\:text-cyan-100:hover {\n color: var(--cyan-100) !important;\n}\n.hover\\:text-cyan-200:hover {\n color: var(--cyan-200) !important;\n}\n.hover\\:text-cyan-300:hover {\n color: var(--cyan-300) !important;\n}\n.hover\\:text-cyan-400:hover {\n color: var(--cyan-400) !important;\n}\n.hover\\:text-cyan-500:hover {\n color: var(--cyan-500) !important;\n}\n.hover\\:text-cyan-600:hover {\n color: var(--cyan-600) !important;\n}\n.hover\\:text-cyan-700:hover {\n color: var(--cyan-700) !important;\n}\n.hover\\:text-cyan-800:hover {\n color: var(--cyan-800) !important;\n}\n.hover\\:text-cyan-900:hover {\n color: var(--cyan-900) !important;\n}\n\n.active\\:text-cyan-50:active {\n color: var(--cyan-50) !important;\n}\n.active\\:text-cyan-100:active {\n color: var(--cyan-100) !important;\n}\n.active\\:text-cyan-200:active {\n color: var(--cyan-200) !important;\n}\n.active\\:text-cyan-300:active {\n color: var(--cyan-300) !important;\n}\n.active\\:text-cyan-400:active {\n color: var(--cyan-400) !important;\n}\n.active\\:text-cyan-500:active {\n color: var(--cyan-500) !important;\n}\n.active\\:text-cyan-600:active {\n color: var(--cyan-600) !important;\n}\n.active\\:text-cyan-700:active {\n color: var(--cyan-700) !important;\n}\n.active\\:text-cyan-800:active {\n color: var(--cyan-800) !important;\n}\n.active\\:text-cyan-900:active {\n color: var(--cyan-900) !important;\n}\n\n.text-pink-50 {\n color: var(--pink-50) !important;\n}\n.text-pink-100 {\n color: var(--pink-100) !important;\n}\n.text-pink-200 {\n color: var(--pink-200) !important;\n}\n.text-pink-300 {\n color: var(--pink-300) !important;\n}\n.text-pink-400 {\n color: var(--pink-400) !important;\n}\n.text-pink-500 {\n color: var(--pink-500) !important;\n}\n.text-pink-600 {\n color: var(--pink-600) !important;\n}\n.text-pink-700 {\n color: var(--pink-700) !important;\n}\n.text-pink-800 {\n color: var(--pink-800) !important;\n}\n.text-pink-900 {\n color: var(--pink-900) !important;\n}\n\n.focus\\:text-pink-50:focus {\n color: var(--pink-50) !important;\n}\n.focus\\:text-pink-100:focus {\n color: var(--pink-100) !important;\n}\n.focus\\:text-pink-200:focus {\n color: var(--pink-200) !important;\n}\n.focus\\:text-pink-300:focus {\n color: var(--pink-300) !important;\n}\n.focus\\:text-pink-400:focus {\n color: var(--pink-400) !important;\n}\n.focus\\:text-pink-500:focus {\n color: var(--pink-500) !important;\n}\n.focus\\:text-pink-600:focus {\n color: var(--pink-600) !important;\n}\n.focus\\:text-pink-700:focus {\n color: var(--pink-700) !important;\n}\n.focus\\:text-pink-800:focus {\n color: var(--pink-800) !important;\n}\n.focus\\:text-pink-900:focus {\n color: var(--pink-900) !important;\n}\n\n.hover\\:text-pink-50:hover {\n color: var(--pink-50) !important;\n}\n.hover\\:text-pink-100:hover {\n color: var(--pink-100) !important;\n}\n.hover\\:text-pink-200:hover {\n color: var(--pink-200) !important;\n}\n.hover\\:text-pink-300:hover {\n color: var(--pink-300) !important;\n}\n.hover\\:text-pink-400:hover {\n color: var(--pink-400) !important;\n}\n.hover\\:text-pink-500:hover {\n color: var(--pink-500) !important;\n}\n.hover\\:text-pink-600:hover {\n color: var(--pink-600) !important;\n}\n.hover\\:text-pink-700:hover {\n color: var(--pink-700) !important;\n}\n.hover\\:text-pink-800:hover {\n color: var(--pink-800) !important;\n}\n.hover\\:text-pink-900:hover {\n color: var(--pink-900) !important;\n}\n\n.active\\:text-pink-50:active {\n color: var(--pink-50) !important;\n}\n.active\\:text-pink-100:active {\n color: var(--pink-100) !important;\n}\n.active\\:text-pink-200:active {\n color: var(--pink-200) !important;\n}\n.active\\:text-pink-300:active {\n color: var(--pink-300) !important;\n}\n.active\\:text-pink-400:active {\n color: var(--pink-400) !important;\n}\n.active\\:text-pink-500:active {\n color: var(--pink-500) !important;\n}\n.active\\:text-pink-600:active {\n color: var(--pink-600) !important;\n}\n.active\\:text-pink-700:active {\n color: var(--pink-700) !important;\n}\n.active\\:text-pink-800:active {\n color: var(--pink-800) !important;\n}\n.active\\:text-pink-900:active {\n color: var(--pink-900) !important;\n}\n\n.text-indigo-50 {\n color: var(--indigo-50) !important;\n}\n.text-indigo-100 {\n color: var(--indigo-100) !important;\n}\n.text-indigo-200 {\n color: var(--indigo-200) !important;\n}\n.text-indigo-300 {\n color: var(--indigo-300) !important;\n}\n.text-indigo-400 {\n color: var(--indigo-400) !important;\n}\n.text-indigo-500 {\n color: var(--indigo-500) !important;\n}\n.text-indigo-600 {\n color: var(--indigo-600) !important;\n}\n.text-indigo-700 {\n color: var(--indigo-700) !important;\n}\n.text-indigo-800 {\n color: var(--indigo-800) !important;\n}\n.text-indigo-900 {\n color: var(--indigo-900) !important;\n}\n\n.focus\\:text-indigo-50:focus {\n color: var(--indigo-50) !important;\n}\n.focus\\:text-indigo-100:focus {\n color: var(--indigo-100) !important;\n}\n.focus\\:text-indigo-200:focus {\n color: var(--indigo-200) !important;\n}\n.focus\\:text-indigo-300:focus {\n color: var(--indigo-300) !important;\n}\n.focus\\:text-indigo-400:focus {\n color: var(--indigo-400) !important;\n}\n.focus\\:text-indigo-500:focus {\n color: var(--indigo-500) !important;\n}\n.focus\\:text-indigo-600:focus {\n color: var(--indigo-600) !important;\n}\n.focus\\:text-indigo-700:focus {\n color: var(--indigo-700) !important;\n}\n.focus\\:text-indigo-800:focus {\n color: var(--indigo-800) !important;\n}\n.focus\\:text-indigo-900:focus {\n color: var(--indigo-900) !important;\n}\n\n.hover\\:text-indigo-50:hover {\n color: var(--indigo-50) !important;\n}\n.hover\\:text-indigo-100:hover {\n color: var(--indigo-100) !important;\n}\n.hover\\:text-indigo-200:hover {\n color: var(--indigo-200) !important;\n}\n.hover\\:text-indigo-300:hover {\n color: var(--indigo-300) !important;\n}\n.hover\\:text-indigo-400:hover {\n color: var(--indigo-400) !important;\n}\n.hover\\:text-indigo-500:hover {\n color: var(--indigo-500) !important;\n}\n.hover\\:text-indigo-600:hover {\n color: var(--indigo-600) !important;\n}\n.hover\\:text-indigo-700:hover {\n color: var(--indigo-700) !important;\n}\n.hover\\:text-indigo-800:hover {\n color: var(--indigo-800) !important;\n}\n.hover\\:text-indigo-900:hover {\n color: var(--indigo-900) !important;\n}\n\n.active\\:text-indigo-50:active {\n color: var(--indigo-50) !important;\n}\n.active\\:text-indigo-100:active {\n color: var(--indigo-100) !important;\n}\n.active\\:text-indigo-200:active {\n color: var(--indigo-200) !important;\n}\n.active\\:text-indigo-300:active {\n color: var(--indigo-300) !important;\n}\n.active\\:text-indigo-400:active {\n color: var(--indigo-400) !important;\n}\n.active\\:text-indigo-500:active {\n color: var(--indigo-500) !important;\n}\n.active\\:text-indigo-600:active {\n color: var(--indigo-600) !important;\n}\n.active\\:text-indigo-700:active {\n color: var(--indigo-700) !important;\n}\n.active\\:text-indigo-800:active {\n color: var(--indigo-800) !important;\n}\n.active\\:text-indigo-900:active {\n color: var(--indigo-900) !important;\n}\n\n.text-teal-50 {\n color: var(--teal-50) !important;\n}\n.text-teal-100 {\n color: var(--teal-100) !important;\n}\n.text-teal-200 {\n color: var(--teal-200) !important;\n}\n.text-teal-300 {\n color: var(--teal-300) !important;\n}\n.text-teal-400 {\n color: var(--teal-400) !important;\n}\n.text-teal-500 {\n color: var(--teal-500) !important;\n}\n.text-teal-600 {\n color: var(--teal-600) !important;\n}\n.text-teal-700 {\n color: var(--teal-700) !important;\n}\n.text-teal-800 {\n color: var(--teal-800) !important;\n}\n.text-teal-900 {\n color: var(--teal-900) !important;\n}\n\n.focus\\:text-teal-50:focus {\n color: var(--teal-50) !important;\n}\n.focus\\:text-teal-100:focus {\n color: var(--teal-100) !important;\n}\n.focus\\:text-teal-200:focus {\n color: var(--teal-200) !important;\n}\n.focus\\:text-teal-300:focus {\n color: var(--teal-300) !important;\n}\n.focus\\:text-teal-400:focus {\n color: var(--teal-400) !important;\n}\n.focus\\:text-teal-500:focus {\n color: var(--teal-500) !important;\n}\n.focus\\:text-teal-600:focus {\n color: var(--teal-600) !important;\n}\n.focus\\:text-teal-700:focus {\n color: var(--teal-700) !important;\n}\n.focus\\:text-teal-800:focus {\n color: var(--teal-800) !important;\n}\n.focus\\:text-teal-900:focus {\n color: var(--teal-900) !important;\n}\n\n.hover\\:text-teal-50:hover {\n color: var(--teal-50) !important;\n}\n.hover\\:text-teal-100:hover {\n color: var(--teal-100) !important;\n}\n.hover\\:text-teal-200:hover {\n color: var(--teal-200) !important;\n}\n.hover\\:text-teal-300:hover {\n color: var(--teal-300) !important;\n}\n.hover\\:text-teal-400:hover {\n color: var(--teal-400) !important;\n}\n.hover\\:text-teal-500:hover {\n color: var(--teal-500) !important;\n}\n.hover\\:text-teal-600:hover {\n color: var(--teal-600) !important;\n}\n.hover\\:text-teal-700:hover {\n color: var(--teal-700) !important;\n}\n.hover\\:text-teal-800:hover {\n color: var(--teal-800) !important;\n}\n.hover\\:text-teal-900:hover {\n color: var(--teal-900) !important;\n}\n\n.active\\:text-teal-50:active {\n color: var(--teal-50) !important;\n}\n.active\\:text-teal-100:active {\n color: var(--teal-100) !important;\n}\n.active\\:text-teal-200:active {\n color: var(--teal-200) !important;\n}\n.active\\:text-teal-300:active {\n color: var(--teal-300) !important;\n}\n.active\\:text-teal-400:active {\n color: var(--teal-400) !important;\n}\n.active\\:text-teal-500:active {\n color: var(--teal-500) !important;\n}\n.active\\:text-teal-600:active {\n color: var(--teal-600) !important;\n}\n.active\\:text-teal-700:active {\n color: var(--teal-700) !important;\n}\n.active\\:text-teal-800:active {\n color: var(--teal-800) !important;\n}\n.active\\:text-teal-900:active {\n color: var(--teal-900) !important;\n}\n\n.text-orange-50 {\n color: var(--orange-50) !important;\n}\n.text-orange-100 {\n color: var(--orange-100) !important;\n}\n.text-orange-200 {\n color: var(--orange-200) !important;\n}\n.text-orange-300 {\n color: var(--orange-300) !important;\n}\n.text-orange-400 {\n color: var(--orange-400) !important;\n}\n.text-orange-500 {\n color: var(--orange-500) !important;\n}\n.text-orange-600 {\n color: var(--orange-600) !important;\n}\n.text-orange-700 {\n color: var(--orange-700) !important;\n}\n.text-orange-800 {\n color: var(--orange-800) !important;\n}\n.text-orange-900 {\n color: var(--orange-900) !important;\n}\n\n.focus\\:text-orange-50:focus {\n color: var(--orange-50) !important;\n}\n.focus\\:text-orange-100:focus {\n color: var(--orange-100) !important;\n}\n.focus\\:text-orange-200:focus {\n color: var(--orange-200) !important;\n}\n.focus\\:text-orange-300:focus {\n color: var(--orange-300) !important;\n}\n.focus\\:text-orange-400:focus {\n color: var(--orange-400) !important;\n}\n.focus\\:text-orange-500:focus {\n color: var(--orange-500) !important;\n}\n.focus\\:text-orange-600:focus {\n color: var(--orange-600) !important;\n}\n.focus\\:text-orange-700:focus {\n color: var(--orange-700) !important;\n}\n.focus\\:text-orange-800:focus {\n color: var(--orange-800) !important;\n}\n.focus\\:text-orange-900:focus {\n color: var(--orange-900) !important;\n}\n\n.hover\\:text-orange-50:hover {\n color: var(--orange-50) !important;\n}\n.hover\\:text-orange-100:hover {\n color: var(--orange-100) !important;\n}\n.hover\\:text-orange-200:hover {\n color: var(--orange-200) !important;\n}\n.hover\\:text-orange-300:hover {\n color: var(--orange-300) !important;\n}\n.hover\\:text-orange-400:hover {\n color: var(--orange-400) !important;\n}\n.hover\\:text-orange-500:hover {\n color: var(--orange-500) !important;\n}\n.hover\\:text-orange-600:hover {\n color: var(--orange-600) !important;\n}\n.hover\\:text-orange-700:hover {\n color: var(--orange-700) !important;\n}\n.hover\\:text-orange-800:hover {\n color: var(--orange-800) !important;\n}\n.hover\\:text-orange-900:hover {\n color: var(--orange-900) !important;\n}\n\n.active\\:text-orange-50:active {\n color: var(--orange-50) !important;\n}\n.active\\:text-orange-100:active {\n color: var(--orange-100) !important;\n}\n.active\\:text-orange-200:active {\n color: var(--orange-200) !important;\n}\n.active\\:text-orange-300:active {\n color: var(--orange-300) !important;\n}\n.active\\:text-orange-400:active {\n color: var(--orange-400) !important;\n}\n.active\\:text-orange-500:active {\n color: var(--orange-500) !important;\n}\n.active\\:text-orange-600:active {\n color: var(--orange-600) !important;\n}\n.active\\:text-orange-700:active {\n color: var(--orange-700) !important;\n}\n.active\\:text-orange-800:active {\n color: var(--orange-800) !important;\n}\n.active\\:text-orange-900:active {\n color: var(--orange-900) !important;\n}\n\n.text-bluegray-50 {\n color: var(--bluegray-50) !important;\n}\n.text-bluegray-100 {\n color: var(--bluegray-100) !important;\n}\n.text-bluegray-200 {\n color: var(--bluegray-200) !important;\n}\n.text-bluegray-300 {\n color: var(--bluegray-300) !important;\n}\n.text-bluegray-400 {\n color: var(--bluegray-400) !important;\n}\n.text-bluegray-500 {\n color: var(--bluegray-500) !important;\n}\n.text-bluegray-600 {\n color: var(--bluegray-600) !important;\n}\n.text-bluegray-700 {\n color: var(--bluegray-700) !important;\n}\n.text-bluegray-800 {\n color: var(--bluegray-800) !important;\n}\n.text-bluegray-900 {\n color: var(--bluegray-900) !important;\n}\n\n.focus\\:text-bluegray-50:focus {\n color: var(--bluegray-50) !important;\n}\n.focus\\:text-bluegray-100:focus {\n color: var(--bluegray-100) !important;\n}\n.focus\\:text-bluegray-200:focus {\n color: var(--bluegray-200) !important;\n}\n.focus\\:text-bluegray-300:focus {\n color: var(--bluegray-300) !important;\n}\n.focus\\:text-bluegray-400:focus {\n color: var(--bluegray-400) !important;\n}\n.focus\\:text-bluegray-500:focus {\n color: var(--bluegray-500) !important;\n}\n.focus\\:text-bluegray-600:focus {\n color: var(--bluegray-600) !important;\n}\n.focus\\:text-bluegray-700:focus {\n color: var(--bluegray-700) !important;\n}\n.focus\\:text-bluegray-800:focus {\n color: var(--bluegray-800) !important;\n}\n.focus\\:text-bluegray-900:focus {\n color: var(--bluegray-900) !important;\n}\n\n.hover\\:text-bluegray-50:hover {\n color: var(--bluegray-50) !important;\n}\n.hover\\:text-bluegray-100:hover {\n color: var(--bluegray-100) !important;\n}\n.hover\\:text-bluegray-200:hover {\n color: var(--bluegray-200) !important;\n}\n.hover\\:text-bluegray-300:hover {\n color: var(--bluegray-300) !important;\n}\n.hover\\:text-bluegray-400:hover {\n color: var(--bluegray-400) !important;\n}\n.hover\\:text-bluegray-500:hover {\n color: var(--bluegray-500) !important;\n}\n.hover\\:text-bluegray-600:hover {\n color: var(--bluegray-600) !important;\n}\n.hover\\:text-bluegray-700:hover {\n color: var(--bluegray-700) !important;\n}\n.hover\\:text-bluegray-800:hover {\n color: var(--bluegray-800) !important;\n}\n.hover\\:text-bluegray-900:hover {\n color: var(--bluegray-900) !important;\n}\n\n.active\\:text-bluegray-50:active {\n color: var(--bluegray-50) !important;\n}\n.active\\:text-bluegray-100:active {\n color: var(--bluegray-100) !important;\n}\n.active\\:text-bluegray-200:active {\n color: var(--bluegray-200) !important;\n}\n.active\\:text-bluegray-300:active {\n color: var(--bluegray-300) !important;\n}\n.active\\:text-bluegray-400:active {\n color: var(--bluegray-400) !important;\n}\n.active\\:text-bluegray-500:active {\n color: var(--bluegray-500) !important;\n}\n.active\\:text-bluegray-600:active {\n color: var(--bluegray-600) !important;\n}\n.active\\:text-bluegray-700:active {\n color: var(--bluegray-700) !important;\n}\n.active\\:text-bluegray-800:active {\n color: var(--bluegray-800) !important;\n}\n.active\\:text-bluegray-900:active {\n color: var(--bluegray-900) !important;\n}\n\n.text-purple-50 {\n color: var(--purple-50) !important;\n}\n.text-purple-100 {\n color: var(--purple-100) !important;\n}\n.text-purple-200 {\n color: var(--purple-200) !important;\n}\n.text-purple-300 {\n color: var(--purple-300) !important;\n}\n.text-purple-400 {\n color: var(--purple-400) !important;\n}\n.text-purple-500 {\n color: var(--purple-500) !important;\n}\n.text-purple-600 {\n color: var(--purple-600) !important;\n}\n.text-purple-700 {\n color: var(--purple-700) !important;\n}\n.text-purple-800 {\n color: var(--purple-800) !important;\n}\n.text-purple-900 {\n color: var(--purple-900) !important;\n}\n\n.focus\\:text-purple-50:focus {\n color: var(--purple-50) !important;\n}\n.focus\\:text-purple-100:focus {\n color: var(--purple-100) !important;\n}\n.focus\\:text-purple-200:focus {\n color: var(--purple-200) !important;\n}\n.focus\\:text-purple-300:focus {\n color: var(--purple-300) !important;\n}\n.focus\\:text-purple-400:focus {\n color: var(--purple-400) !important;\n}\n.focus\\:text-purple-500:focus {\n color: var(--purple-500) !important;\n}\n.focus\\:text-purple-600:focus {\n color: var(--purple-600) !important;\n}\n.focus\\:text-purple-700:focus {\n color: var(--purple-700) !important;\n}\n.focus\\:text-purple-800:focus {\n color: var(--purple-800) !important;\n}\n.focus\\:text-purple-900:focus {\n color: var(--purple-900) !important;\n}\n\n.hover\\:text-purple-50:hover {\n color: var(--purple-50) !important;\n}\n.hover\\:text-purple-100:hover {\n color: var(--purple-100) !important;\n}\n.hover\\:text-purple-200:hover {\n color: var(--purple-200) !important;\n}\n.hover\\:text-purple-300:hover {\n color: var(--purple-300) !important;\n}\n.hover\\:text-purple-400:hover {\n color: var(--purple-400) !important;\n}\n.hover\\:text-purple-500:hover {\n color: var(--purple-500) !important;\n}\n.hover\\:text-purple-600:hover {\n color: var(--purple-600) !important;\n}\n.hover\\:text-purple-700:hover {\n color: var(--purple-700) !important;\n}\n.hover\\:text-purple-800:hover {\n color: var(--purple-800) !important;\n}\n.hover\\:text-purple-900:hover {\n color: var(--purple-900) !important;\n}\n\n.active\\:text-purple-50:active {\n color: var(--purple-50) !important;\n}\n.active\\:text-purple-100:active {\n color: var(--purple-100) !important;\n}\n.active\\:text-purple-200:active {\n color: var(--purple-200) !important;\n}\n.active\\:text-purple-300:active {\n color: var(--purple-300) !important;\n}\n.active\\:text-purple-400:active {\n color: var(--purple-400) !important;\n}\n.active\\:text-purple-500:active {\n color: var(--purple-500) !important;\n}\n.active\\:text-purple-600:active {\n color: var(--purple-600) !important;\n}\n.active\\:text-purple-700:active {\n color: var(--purple-700) !important;\n}\n.active\\:text-purple-800:active {\n color: var(--purple-800) !important;\n}\n.active\\:text-purple-900:active {\n color: var(--purple-900) !important;\n}\n\n.text-gray-50 {\n color: var(--gray-50) !important;\n}\n.text-gray-100 {\n color: var(--gray-100) !important;\n}\n.text-gray-200 {\n color: var(--gray-200) !important;\n}\n.text-gray-300 {\n color: var(--gray-300) !important;\n}\n.text-gray-400 {\n color: var(--gray-400) !important;\n}\n.text-gray-500 {\n color: var(--gray-500) !important;\n}\n.text-gray-600 {\n color: var(--gray-600) !important;\n}\n.text-gray-700 {\n color: var(--gray-700) !important;\n}\n.text-gray-800 {\n color: var(--gray-800) !important;\n}\n.text-gray-900 {\n color: var(--gray-900) !important;\n}\n\n.focus\\:text-gray-50:focus {\n color: var(--gray-50) !important;\n}\n.focus\\:text-gray-100:focus {\n color: var(--gray-100) !important;\n}\n.focus\\:text-gray-200:focus {\n color: var(--gray-200) !important;\n}\n.focus\\:text-gray-300:focus {\n color: var(--gray-300) !important;\n}\n.focus\\:text-gray-400:focus {\n color: var(--gray-400) !important;\n}\n.focus\\:text-gray-500:focus {\n color: var(--gray-500) !important;\n}\n.focus\\:text-gray-600:focus {\n color: var(--gray-600) !important;\n}\n.focus\\:text-gray-700:focus {\n color: var(--gray-700) !important;\n}\n.focus\\:text-gray-800:focus {\n color: var(--gray-800) !important;\n}\n.focus\\:text-gray-900:focus {\n color: var(--gray-900) !important;\n}\n\n.hover\\:text-gray-50:hover {\n color: var(--gray-50) !important;\n}\n.hover\\:text-gray-100:hover {\n color: var(--gray-100) !important;\n}\n.hover\\:text-gray-200:hover {\n color: var(--gray-200) !important;\n}\n.hover\\:text-gray-300:hover {\n color: var(--gray-300) !important;\n}\n.hover\\:text-gray-400:hover {\n color: var(--gray-400) !important;\n}\n.hover\\:text-gray-500:hover {\n color: var(--gray-500) !important;\n}\n.hover\\:text-gray-600:hover {\n color: var(--gray-600) !important;\n}\n.hover\\:text-gray-700:hover {\n color: var(--gray-700) !important;\n}\n.hover\\:text-gray-800:hover {\n color: var(--gray-800) !important;\n}\n.hover\\:text-gray-900:hover {\n color: var(--gray-900) !important;\n}\n\n.active\\:text-gray-50:active {\n color: var(--gray-50) !important;\n}\n.active\\:text-gray-100:active {\n color: var(--gray-100) !important;\n}\n.active\\:text-gray-200:active {\n color: var(--gray-200) !important;\n}\n.active\\:text-gray-300:active {\n color: var(--gray-300) !important;\n}\n.active\\:text-gray-400:active {\n color: var(--gray-400) !important;\n}\n.active\\:text-gray-500:active {\n color: var(--gray-500) !important;\n}\n.active\\:text-gray-600:active {\n color: var(--gray-600) !important;\n}\n.active\\:text-gray-700:active {\n color: var(--gray-700) !important;\n}\n.active\\:text-gray-800:active {\n color: var(--gray-800) !important;\n}\n.active\\:text-gray-900:active {\n color: var(--gray-900) !important;\n}\n\n.bg-blue-50 {\n background-color: var(--blue-50) !important;\n}\n.bg-blue-100 {\n background-color: var(--blue-100) !important;\n}\n.bg-blue-200 {\n background-color: var(--blue-200) !important;\n}\n.bg-blue-300 {\n background-color: var(--blue-300) !important;\n}\n.bg-blue-400 {\n background-color: var(--blue-400) !important;\n}\n.bg-blue-500 {\n background-color: var(--blue-500) !important;\n}\n.bg-blue-600 {\n background-color: var(--blue-600) !important;\n}\n.bg-blue-700 {\n background-color: var(--blue-700) !important;\n}\n.bg-blue-800 {\n background-color: var(--blue-800) !important;\n}\n.bg-blue-900 {\n background-color: var(--blue-900) !important;\n}\n\n.focus\\:bg-blue-50:focus {\n background-color: var(--blue-50) !important;\n}\n.focus\\:bg-blue-100:focus {\n background-color: var(--blue-100) !important;\n}\n.focus\\:bg-blue-200:focus {\n background-color: var(--blue-200) !important;\n}\n.focus\\:bg-blue-300:focus {\n background-color: var(--blue-300) !important;\n}\n.focus\\:bg-blue-400:focus {\n background-color: var(--blue-400) !important;\n}\n.focus\\:bg-blue-500:focus {\n background-color: var(--blue-500) !important;\n}\n.focus\\:bg-blue-600:focus {\n background-color: var(--blue-600) !important;\n}\n.focus\\:bg-blue-700:focus {\n background-color: var(--blue-700) !important;\n}\n.focus\\:bg-blue-800:focus {\n background-color: var(--blue-800) !important;\n}\n.focus\\:bg-blue-900:focus {\n background-color: var(--blue-900) !important;\n}\n\n.hover\\:bg-blue-50:hover {\n background-color: var(--blue-50) !important;\n}\n.hover\\:bg-blue-100:hover {\n background-color: var(--blue-100) !important;\n}\n.hover\\:bg-blue-200:hover {\n background-color: var(--blue-200) !important;\n}\n.hover\\:bg-blue-300:hover {\n background-color: var(--blue-300) !important;\n}\n.hover\\:bg-blue-400:hover {\n background-color: var(--blue-400) !important;\n}\n.hover\\:bg-blue-500:hover {\n background-color: var(--blue-500) !important;\n}\n.hover\\:bg-blue-600:hover {\n background-color: var(--blue-600) !important;\n}\n.hover\\:bg-blue-700:hover {\n background-color: var(--blue-700) !important;\n}\n.hover\\:bg-blue-800:hover {\n background-color: var(--blue-800) !important;\n}\n.hover\\:bg-blue-900:hover {\n background-color: var(--blue-900) !important;\n}\n\n.active\\:bg-blue-50:active {\n background-color: var(--blue-50) !important;\n}\n.active\\:bg-blue-100:active {\n background-color: var(--blue-100) !important;\n}\n.active\\:bg-blue-200:active {\n background-color: var(--blue-200) !important;\n}\n.active\\:bg-blue-300:active {\n background-color: var(--blue-300) !important;\n}\n.active\\:bg-blue-400:active {\n background-color: var(--blue-400) !important;\n}\n.active\\:bg-blue-500:active {\n background-color: var(--blue-500) !important;\n}\n.active\\:bg-blue-600:active {\n background-color: var(--blue-600) !important;\n}\n.active\\:bg-blue-700:active {\n background-color: var(--blue-700) !important;\n}\n.active\\:bg-blue-800:active {\n background-color: var(--blue-800) !important;\n}\n.active\\:bg-blue-900:active {\n background-color: var(--blue-900) !important;\n}\n\n.bg-green-50 {\n background-color: var(--green-50) !important;\n}\n.bg-green-100 {\n background-color: var(--green-100) !important;\n}\n.bg-green-200 {\n background-color: var(--green-200) !important;\n}\n.bg-green-300 {\n background-color: var(--green-300) !important;\n}\n.bg-green-400 {\n background-color: var(--green-400) !important;\n}\n.bg-green-500 {\n background-color: var(--green-500) !important;\n}\n.bg-green-600 {\n background-color: var(--green-600) !important;\n}\n.bg-green-700 {\n background-color: var(--green-700) !important;\n}\n.bg-green-800 {\n background-color: var(--green-800) !important;\n}\n.bg-green-900 {\n background-color: var(--green-900) !important;\n}\n\n.focus\\:bg-green-50:focus {\n background-color: var(--green-50) !important;\n}\n.focus\\:bg-green-100:focus {\n background-color: var(--green-100) !important;\n}\n.focus\\:bg-green-200:focus {\n background-color: var(--green-200) !important;\n}\n.focus\\:bg-green-300:focus {\n background-color: var(--green-300) !important;\n}\n.focus\\:bg-green-400:focus {\n background-color: var(--green-400) !important;\n}\n.focus\\:bg-green-500:focus {\n background-color: var(--green-500) !important;\n}\n.focus\\:bg-green-600:focus {\n background-color: var(--green-600) !important;\n}\n.focus\\:bg-green-700:focus {\n background-color: var(--green-700) !important;\n}\n.focus\\:bg-green-800:focus {\n background-color: var(--green-800) !important;\n}\n.focus\\:bg-green-900:focus {\n background-color: var(--green-900) !important;\n}\n\n.hover\\:bg-green-50:hover {\n background-color: var(--green-50) !important;\n}\n.hover\\:bg-green-100:hover {\n background-color: var(--green-100) !important;\n}\n.hover\\:bg-green-200:hover {\n background-color: var(--green-200) !important;\n}\n.hover\\:bg-green-300:hover {\n background-color: var(--green-300) !important;\n}\n.hover\\:bg-green-400:hover {\n background-color: var(--green-400) !important;\n}\n.hover\\:bg-green-500:hover {\n background-color: var(--green-500) !important;\n}\n.hover\\:bg-green-600:hover {\n background-color: var(--green-600) !important;\n}\n.hover\\:bg-green-700:hover {\n background-color: var(--green-700) !important;\n}\n.hover\\:bg-green-800:hover {\n background-color: var(--green-800) !important;\n}\n.hover\\:bg-green-900:hover {\n background-color: var(--green-900) !important;\n}\n\n.active\\:bg-green-50:active {\n background-color: var(--green-50) !important;\n}\n.active\\:bg-green-100:active {\n background-color: var(--green-100) !important;\n}\n.active\\:bg-green-200:active {\n background-color: var(--green-200) !important;\n}\n.active\\:bg-green-300:active {\n background-color: var(--green-300) !important;\n}\n.active\\:bg-green-400:active {\n background-color: var(--green-400) !important;\n}\n.active\\:bg-green-500:active {\n background-color: var(--green-500) !important;\n}\n.active\\:bg-green-600:active {\n background-color: var(--green-600) !important;\n}\n.active\\:bg-green-700:active {\n background-color: var(--green-700) !important;\n}\n.active\\:bg-green-800:active {\n background-color: var(--green-800) !important;\n}\n.active\\:bg-green-900:active {\n background-color: var(--green-900) !important;\n}\n\n.bg-yellow-50 {\n background-color: var(--yellow-50) !important;\n}\n.bg-yellow-100 {\n background-color: var(--yellow-100) !important;\n}\n.bg-yellow-200 {\n background-color: var(--yellow-200) !important;\n}\n.bg-yellow-300 {\n background-color: var(--yellow-300) !important;\n}\n.bg-yellow-400 {\n background-color: var(--yellow-400) !important;\n}\n.bg-yellow-500 {\n background-color: var(--yellow-500) !important;\n}\n.bg-yellow-600 {\n background-color: var(--yellow-600) !important;\n}\n.bg-yellow-700 {\n background-color: var(--yellow-700) !important;\n}\n.bg-yellow-800 {\n background-color: var(--yellow-800) !important;\n}\n.bg-yellow-900 {\n background-color: var(--yellow-900) !important;\n}\n\n.focus\\:bg-yellow-50:focus {\n background-color: var(--yellow-50) !important;\n}\n.focus\\:bg-yellow-100:focus {\n background-color: var(--yellow-100) !important;\n}\n.focus\\:bg-yellow-200:focus {\n background-color: var(--yellow-200) !important;\n}\n.focus\\:bg-yellow-300:focus {\n background-color: var(--yellow-300) !important;\n}\n.focus\\:bg-yellow-400:focus {\n background-color: var(--yellow-400) !important;\n}\n.focus\\:bg-yellow-500:focus {\n background-color: var(--yellow-500) !important;\n}\n.focus\\:bg-yellow-600:focus {\n background-color: var(--yellow-600) !important;\n}\n.focus\\:bg-yellow-700:focus {\n background-color: var(--yellow-700) !important;\n}\n.focus\\:bg-yellow-800:focus {\n background-color: var(--yellow-800) !important;\n}\n.focus\\:bg-yellow-900:focus {\n background-color: var(--yellow-900) !important;\n}\n\n.hover\\:bg-yellow-50:hover {\n background-color: var(--yellow-50) !important;\n}\n.hover\\:bg-yellow-100:hover {\n background-color: var(--yellow-100) !important;\n}\n.hover\\:bg-yellow-200:hover {\n background-color: var(--yellow-200) !important;\n}\n.hover\\:bg-yellow-300:hover {\n background-color: var(--yellow-300) !important;\n}\n.hover\\:bg-yellow-400:hover {\n background-color: var(--yellow-400) !important;\n}\n.hover\\:bg-yellow-500:hover {\n background-color: var(--yellow-500) !important;\n}\n.hover\\:bg-yellow-600:hover {\n background-color: var(--yellow-600) !important;\n}\n.hover\\:bg-yellow-700:hover {\n background-color: var(--yellow-700) !important;\n}\n.hover\\:bg-yellow-800:hover {\n background-color: var(--yellow-800) !important;\n}\n.hover\\:bg-yellow-900:hover {\n background-color: var(--yellow-900) !important;\n}\n\n.active\\:bg-yellow-50:active {\n background-color: var(--yellow-50) !important;\n}\n.active\\:bg-yellow-100:active {\n background-color: var(--yellow-100) !important;\n}\n.active\\:bg-yellow-200:active {\n background-color: var(--yellow-200) !important;\n}\n.active\\:bg-yellow-300:active {\n background-color: var(--yellow-300) !important;\n}\n.active\\:bg-yellow-400:active {\n background-color: var(--yellow-400) !important;\n}\n.active\\:bg-yellow-500:active {\n background-color: var(--yellow-500) !important;\n}\n.active\\:bg-yellow-600:active {\n background-color: var(--yellow-600) !important;\n}\n.active\\:bg-yellow-700:active {\n background-color: var(--yellow-700) !important;\n}\n.active\\:bg-yellow-800:active {\n background-color: var(--yellow-800) !important;\n}\n.active\\:bg-yellow-900:active {\n background-color: var(--yellow-900) !important;\n}\n\n.bg-cyan-50 {\n background-color: var(--cyan-50) !important;\n}\n.bg-cyan-100 {\n background-color: var(--cyan-100) !important;\n}\n.bg-cyan-200 {\n background-color: var(--cyan-200) !important;\n}\n.bg-cyan-300 {\n background-color: var(--cyan-300) !important;\n}\n.bg-cyan-400 {\n background-color: var(--cyan-400) !important;\n}\n.bg-cyan-500 {\n background-color: var(--cyan-500) !important;\n}\n.bg-cyan-600 {\n background-color: var(--cyan-600) !important;\n}\n.bg-cyan-700 {\n background-color: var(--cyan-700) !important;\n}\n.bg-cyan-800 {\n background-color: var(--cyan-800) !important;\n}\n.bg-cyan-900 {\n background-color: var(--cyan-900) !important;\n}\n\n.focus\\:bg-cyan-50:focus {\n background-color: var(--cyan-50) !important;\n}\n.focus\\:bg-cyan-100:focus {\n background-color: var(--cyan-100) !important;\n}\n.focus\\:bg-cyan-200:focus {\n background-color: var(--cyan-200) !important;\n}\n.focus\\:bg-cyan-300:focus {\n background-color: var(--cyan-300) !important;\n}\n.focus\\:bg-cyan-400:focus {\n background-color: var(--cyan-400) !important;\n}\n.focus\\:bg-cyan-500:focus {\n background-color: var(--cyan-500) !important;\n}\n.focus\\:bg-cyan-600:focus {\n background-color: var(--cyan-600) !important;\n}\n.focus\\:bg-cyan-700:focus {\n background-color: var(--cyan-700) !important;\n}\n.focus\\:bg-cyan-800:focus {\n background-color: var(--cyan-800) !important;\n}\n.focus\\:bg-cyan-900:focus {\n background-color: var(--cyan-900) !important;\n}\n\n.hover\\:bg-cyan-50:hover {\n background-color: var(--cyan-50) !important;\n}\n.hover\\:bg-cyan-100:hover {\n background-color: var(--cyan-100) !important;\n}\n.hover\\:bg-cyan-200:hover {\n background-color: var(--cyan-200) !important;\n}\n.hover\\:bg-cyan-300:hover {\n background-color: var(--cyan-300) !important;\n}\n.hover\\:bg-cyan-400:hover {\n background-color: var(--cyan-400) !important;\n}\n.hover\\:bg-cyan-500:hover {\n background-color: var(--cyan-500) !important;\n}\n.hover\\:bg-cyan-600:hover {\n background-color: var(--cyan-600) !important;\n}\n.hover\\:bg-cyan-700:hover {\n background-color: var(--cyan-700) !important;\n}\n.hover\\:bg-cyan-800:hover {\n background-color: var(--cyan-800) !important;\n}\n.hover\\:bg-cyan-900:hover {\n background-color: var(--cyan-900) !important;\n}\n\n.active\\:bg-cyan-50:active {\n background-color: var(--cyan-50) !important;\n}\n.active\\:bg-cyan-100:active {\n background-color: var(--cyan-100) !important;\n}\n.active\\:bg-cyan-200:active {\n background-color: var(--cyan-200) !important;\n}\n.active\\:bg-cyan-300:active {\n background-color: var(--cyan-300) !important;\n}\n.active\\:bg-cyan-400:active {\n background-color: var(--cyan-400) !important;\n}\n.active\\:bg-cyan-500:active {\n background-color: var(--cyan-500) !important;\n}\n.active\\:bg-cyan-600:active {\n background-color: var(--cyan-600) !important;\n}\n.active\\:bg-cyan-700:active {\n background-color: var(--cyan-700) !important;\n}\n.active\\:bg-cyan-800:active {\n background-color: var(--cyan-800) !important;\n}\n.active\\:bg-cyan-900:active {\n background-color: var(--cyan-900) !important;\n}\n\n.bg-pink-50 {\n background-color: var(--pink-50) !important;\n}\n.bg-pink-100 {\n background-color: var(--pink-100) !important;\n}\n.bg-pink-200 {\n background-color: var(--pink-200) !important;\n}\n.bg-pink-300 {\n background-color: var(--pink-300) !important;\n}\n.bg-pink-400 {\n background-color: var(--pink-400) !important;\n}\n.bg-pink-500 {\n background-color: var(--pink-500) !important;\n}\n.bg-pink-600 {\n background-color: var(--pink-600) !important;\n}\n.bg-pink-700 {\n background-color: var(--pink-700) !important;\n}\n.bg-pink-800 {\n background-color: var(--pink-800) !important;\n}\n.bg-pink-900 {\n background-color: var(--pink-900) !important;\n}\n\n.focus\\:bg-pink-50:focus {\n background-color: var(--pink-50) !important;\n}\n.focus\\:bg-pink-100:focus {\n background-color: var(--pink-100) !important;\n}\n.focus\\:bg-pink-200:focus {\n background-color: var(--pink-200) !important;\n}\n.focus\\:bg-pink-300:focus {\n background-color: var(--pink-300) !important;\n}\n.focus\\:bg-pink-400:focus {\n background-color: var(--pink-400) !important;\n}\n.focus\\:bg-pink-500:focus {\n background-color: var(--pink-500) !important;\n}\n.focus\\:bg-pink-600:focus {\n background-color: var(--pink-600) !important;\n}\n.focus\\:bg-pink-700:focus {\n background-color: var(--pink-700) !important;\n}\n.focus\\:bg-pink-800:focus {\n background-color: var(--pink-800) !important;\n}\n.focus\\:bg-pink-900:focus {\n background-color: var(--pink-900) !important;\n}\n\n.hover\\:bg-pink-50:hover {\n background-color: var(--pink-50) !important;\n}\n.hover\\:bg-pink-100:hover {\n background-color: var(--pink-100) !important;\n}\n.hover\\:bg-pink-200:hover {\n background-color: var(--pink-200) !important;\n}\n.hover\\:bg-pink-300:hover {\n background-color: var(--pink-300) !important;\n}\n.hover\\:bg-pink-400:hover {\n background-color: var(--pink-400) !important;\n}\n.hover\\:bg-pink-500:hover {\n background-color: var(--pink-500) !important;\n}\n.hover\\:bg-pink-600:hover {\n background-color: var(--pink-600) !important;\n}\n.hover\\:bg-pink-700:hover {\n background-color: var(--pink-700) !important;\n}\n.hover\\:bg-pink-800:hover {\n background-color: var(--pink-800) !important;\n}\n.hover\\:bg-pink-900:hover {\n background-color: var(--pink-900) !important;\n}\n\n.active\\:bg-pink-50:active {\n background-color: var(--pink-50) !important;\n}\n.active\\:bg-pink-100:active {\n background-color: var(--pink-100) !important;\n}\n.active\\:bg-pink-200:active {\n background-color: var(--pink-200) !important;\n}\n.active\\:bg-pink-300:active {\n background-color: var(--pink-300) !important;\n}\n.active\\:bg-pink-400:active {\n background-color: var(--pink-400) !important;\n}\n.active\\:bg-pink-500:active {\n background-color: var(--pink-500) !important;\n}\n.active\\:bg-pink-600:active {\n background-color: var(--pink-600) !important;\n}\n.active\\:bg-pink-700:active {\n background-color: var(--pink-700) !important;\n}\n.active\\:bg-pink-800:active {\n background-color: var(--pink-800) !important;\n}\n.active\\:bg-pink-900:active {\n background-color: var(--pink-900) !important;\n}\n\n.bg-indigo-50 {\n background-color: var(--indigo-50) !important;\n}\n.bg-indigo-100 {\n background-color: var(--indigo-100) !important;\n}\n.bg-indigo-200 {\n background-color: var(--indigo-200) !important;\n}\n.bg-indigo-300 {\n background-color: var(--indigo-300) !important;\n}\n.bg-indigo-400 {\n background-color: var(--indigo-400) !important;\n}\n.bg-indigo-500 {\n background-color: var(--indigo-500) !important;\n}\n.bg-indigo-600 {\n background-color: var(--indigo-600) !important;\n}\n.bg-indigo-700 {\n background-color: var(--indigo-700) !important;\n}\n.bg-indigo-800 {\n background-color: var(--indigo-800) !important;\n}\n.bg-indigo-900 {\n background-color: var(--indigo-900) !important;\n}\n\n.focus\\:bg-indigo-50:focus {\n background-color: var(--indigo-50) !important;\n}\n.focus\\:bg-indigo-100:focus {\n background-color: var(--indigo-100) !important;\n}\n.focus\\:bg-indigo-200:focus {\n background-color: var(--indigo-200) !important;\n}\n.focus\\:bg-indigo-300:focus {\n background-color: var(--indigo-300) !important;\n}\n.focus\\:bg-indigo-400:focus {\n background-color: var(--indigo-400) !important;\n}\n.focus\\:bg-indigo-500:focus {\n background-color: var(--indigo-500) !important;\n}\n.focus\\:bg-indigo-600:focus {\n background-color: var(--indigo-600) !important;\n}\n.focus\\:bg-indigo-700:focus {\n background-color: var(--indigo-700) !important;\n}\n.focus\\:bg-indigo-800:focus {\n background-color: var(--indigo-800) !important;\n}\n.focus\\:bg-indigo-900:focus {\n background-color: var(--indigo-900) !important;\n}\n\n.hover\\:bg-indigo-50:hover {\n background-color: var(--indigo-50) !important;\n}\n.hover\\:bg-indigo-100:hover {\n background-color: var(--indigo-100) !important;\n}\n.hover\\:bg-indigo-200:hover {\n background-color: var(--indigo-200) !important;\n}\n.hover\\:bg-indigo-300:hover {\n background-color: var(--indigo-300) !important;\n}\n.hover\\:bg-indigo-400:hover {\n background-color: var(--indigo-400) !important;\n}\n.hover\\:bg-indigo-500:hover {\n background-color: var(--indigo-500) !important;\n}\n.hover\\:bg-indigo-600:hover {\n background-color: var(--indigo-600) !important;\n}\n.hover\\:bg-indigo-700:hover {\n background-color: var(--indigo-700) !important;\n}\n.hover\\:bg-indigo-800:hover {\n background-color: var(--indigo-800) !important;\n}\n.hover\\:bg-indigo-900:hover {\n background-color: var(--indigo-900) !important;\n}\n\n.active\\:bg-indigo-50:active {\n background-color: var(--indigo-50) !important;\n}\n.active\\:bg-indigo-100:active {\n background-color: var(--indigo-100) !important;\n}\n.active\\:bg-indigo-200:active {\n background-color: var(--indigo-200) !important;\n}\n.active\\:bg-indigo-300:active {\n background-color: var(--indigo-300) !important;\n}\n.active\\:bg-indigo-400:active {\n background-color: var(--indigo-400) !important;\n}\n.active\\:bg-indigo-500:active {\n background-color: var(--indigo-500) !important;\n}\n.active\\:bg-indigo-600:active {\n background-color: var(--indigo-600) !important;\n}\n.active\\:bg-indigo-700:active {\n background-color: var(--indigo-700) !important;\n}\n.active\\:bg-indigo-800:active {\n background-color: var(--indigo-800) !important;\n}\n.active\\:bg-indigo-900:active {\n background-color: var(--indigo-900) !important;\n}\n\n.bg-teal-50 {\n background-color: var(--teal-50) !important;\n}\n.bg-teal-100 {\n background-color: var(--teal-100) !important;\n}\n.bg-teal-200 {\n background-color: var(--teal-200) !important;\n}\n.bg-teal-300 {\n background-color: var(--teal-300) !important;\n}\n.bg-teal-400 {\n background-color: var(--teal-400) !important;\n}\n.bg-teal-500 {\n background-color: var(--teal-500) !important;\n}\n.bg-teal-600 {\n background-color: var(--teal-600) !important;\n}\n.bg-teal-700 {\n background-color: var(--teal-700) !important;\n}\n.bg-teal-800 {\n background-color: var(--teal-800) !important;\n}\n.bg-teal-900 {\n background-color: var(--teal-900) !important;\n}\n\n.focus\\:bg-teal-50:focus {\n background-color: var(--teal-50) !important;\n}\n.focus\\:bg-teal-100:focus {\n background-color: var(--teal-100) !important;\n}\n.focus\\:bg-teal-200:focus {\n background-color: var(--teal-200) !important;\n}\n.focus\\:bg-teal-300:focus {\n background-color: var(--teal-300) !important;\n}\n.focus\\:bg-teal-400:focus {\n background-color: var(--teal-400) !important;\n}\n.focus\\:bg-teal-500:focus {\n background-color: var(--teal-500) !important;\n}\n.focus\\:bg-teal-600:focus {\n background-color: var(--teal-600) !important;\n}\n.focus\\:bg-teal-700:focus {\n background-color: var(--teal-700) !important;\n}\n.focus\\:bg-teal-800:focus {\n background-color: var(--teal-800) !important;\n}\n.focus\\:bg-teal-900:focus {\n background-color: var(--teal-900) !important;\n}\n\n.hover\\:bg-teal-50:hover {\n background-color: var(--teal-50) !important;\n}\n.hover\\:bg-teal-100:hover {\n background-color: var(--teal-100) !important;\n}\n.hover\\:bg-teal-200:hover {\n background-color: var(--teal-200) !important;\n}\n.hover\\:bg-teal-300:hover {\n background-color: var(--teal-300) !important;\n}\n.hover\\:bg-teal-400:hover {\n background-color: var(--teal-400) !important;\n}\n.hover\\:bg-teal-500:hover {\n background-color: var(--teal-500) !important;\n}\n.hover\\:bg-teal-600:hover {\n background-color: var(--teal-600) !important;\n}\n.hover\\:bg-teal-700:hover {\n background-color: var(--teal-700) !important;\n}\n.hover\\:bg-teal-800:hover {\n background-color: var(--teal-800) !important;\n}\n.hover\\:bg-teal-900:hover {\n background-color: var(--teal-900) !important;\n}\n\n.active\\:bg-teal-50:active {\n background-color: var(--teal-50) !important;\n}\n.active\\:bg-teal-100:active {\n background-color: var(--teal-100) !important;\n}\n.active\\:bg-teal-200:active {\n background-color: var(--teal-200) !important;\n}\n.active\\:bg-teal-300:active {\n background-color: var(--teal-300) !important;\n}\n.active\\:bg-teal-400:active {\n background-color: var(--teal-400) !important;\n}\n.active\\:bg-teal-500:active {\n background-color: var(--teal-500) !important;\n}\n.active\\:bg-teal-600:active {\n background-color: var(--teal-600) !important;\n}\n.active\\:bg-teal-700:active {\n background-color: var(--teal-700) !important;\n}\n.active\\:bg-teal-800:active {\n background-color: var(--teal-800) !important;\n}\n.active\\:bg-teal-900:active {\n background-color: var(--teal-900) !important;\n}\n\n.bg-orange-50 {\n background-color: var(--orange-50) !important;\n}\n.bg-orange-100 {\n background-color: var(--orange-100) !important;\n}\n.bg-orange-200 {\n background-color: var(--orange-200) !important;\n}\n.bg-orange-300 {\n background-color: var(--orange-300) !important;\n}\n.bg-orange-400 {\n background-color: var(--orange-400) !important;\n}\n.bg-orange-500 {\n background-color: var(--orange-500) !important;\n}\n.bg-orange-600 {\n background-color: var(--orange-600) !important;\n}\n.bg-orange-700 {\n background-color: var(--orange-700) !important;\n}\n.bg-orange-800 {\n background-color: var(--orange-800) !important;\n}\n.bg-orange-900 {\n background-color: var(--orange-900) !important;\n}\n\n.focus\\:bg-orange-50:focus {\n background-color: var(--orange-50) !important;\n}\n.focus\\:bg-orange-100:focus {\n background-color: var(--orange-100) !important;\n}\n.focus\\:bg-orange-200:focus {\n background-color: var(--orange-200) !important;\n}\n.focus\\:bg-orange-300:focus {\n background-color: var(--orange-300) !important;\n}\n.focus\\:bg-orange-400:focus {\n background-color: var(--orange-400) !important;\n}\n.focus\\:bg-orange-500:focus {\n background-color: var(--orange-500) !important;\n}\n.focus\\:bg-orange-600:focus {\n background-color: var(--orange-600) !important;\n}\n.focus\\:bg-orange-700:focus {\n background-color: var(--orange-700) !important;\n}\n.focus\\:bg-orange-800:focus {\n background-color: var(--orange-800) !important;\n}\n.focus\\:bg-orange-900:focus {\n background-color: var(--orange-900) !important;\n}\n\n.hover\\:bg-orange-50:hover {\n background-color: var(--orange-50) !important;\n}\n.hover\\:bg-orange-100:hover {\n background-color: var(--orange-100) !important;\n}\n.hover\\:bg-orange-200:hover {\n background-color: var(--orange-200) !important;\n}\n.hover\\:bg-orange-300:hover {\n background-color: var(--orange-300) !important;\n}\n.hover\\:bg-orange-400:hover {\n background-color: var(--orange-400) !important;\n}\n.hover\\:bg-orange-500:hover {\n background-color: var(--orange-500) !important;\n}\n.hover\\:bg-orange-600:hover {\n background-color: var(--orange-600) !important;\n}\n.hover\\:bg-orange-700:hover {\n background-color: var(--orange-700) !important;\n}\n.hover\\:bg-orange-800:hover {\n background-color: var(--orange-800) !important;\n}\n.hover\\:bg-orange-900:hover {\n background-color: var(--orange-900) !important;\n}\n\n.active\\:bg-orange-50:active {\n background-color: var(--orange-50) !important;\n}\n.active\\:bg-orange-100:active {\n background-color: var(--orange-100) !important;\n}\n.active\\:bg-orange-200:active {\n background-color: var(--orange-200) !important;\n}\n.active\\:bg-orange-300:active {\n background-color: var(--orange-300) !important;\n}\n.active\\:bg-orange-400:active {\n background-color: var(--orange-400) !important;\n}\n.active\\:bg-orange-500:active {\n background-color: var(--orange-500) !important;\n}\n.active\\:bg-orange-600:active {\n background-color: var(--orange-600) !important;\n}\n.active\\:bg-orange-700:active {\n background-color: var(--orange-700) !important;\n}\n.active\\:bg-orange-800:active {\n background-color: var(--orange-800) !important;\n}\n.active\\:bg-orange-900:active {\n background-color: var(--orange-900) !important;\n}\n\n.bg-bluegray-50 {\n background-color: var(--bluegray-50) !important;\n}\n.bg-bluegray-100 {\n background-color: var(--bluegray-100) !important;\n}\n.bg-bluegray-200 {\n background-color: var(--bluegray-200) !important;\n}\n.bg-bluegray-300 {\n background-color: var(--bluegray-300) !important;\n}\n.bg-bluegray-400 {\n background-color: var(--bluegray-400) !important;\n}\n.bg-bluegray-500 {\n background-color: var(--bluegray-500) !important;\n}\n.bg-bluegray-600 {\n background-color: var(--bluegray-600) !important;\n}\n.bg-bluegray-700 {\n background-color: var(--bluegray-700) !important;\n}\n.bg-bluegray-800 {\n background-color: var(--bluegray-800) !important;\n}\n.bg-bluegray-900 {\n background-color: var(--bluegray-900) !important;\n}\n\n.focus\\:bg-bluegray-50:focus {\n background-color: var(--bluegray-50) !important;\n}\n.focus\\:bg-bluegray-100:focus {\n background-color: var(--bluegray-100) !important;\n}\n.focus\\:bg-bluegray-200:focus {\n background-color: var(--bluegray-200) !important;\n}\n.focus\\:bg-bluegray-300:focus {\n background-color: var(--bluegray-300) !important;\n}\n.focus\\:bg-bluegray-400:focus {\n background-color: var(--bluegray-400) !important;\n}\n.focus\\:bg-bluegray-500:focus {\n background-color: var(--bluegray-500) !important;\n}\n.focus\\:bg-bluegray-600:focus {\n background-color: var(--bluegray-600) !important;\n}\n.focus\\:bg-bluegray-700:focus {\n background-color: var(--bluegray-700) !important;\n}\n.focus\\:bg-bluegray-800:focus {\n background-color: var(--bluegray-800) !important;\n}\n.focus\\:bg-bluegray-900:focus {\n background-color: var(--bluegray-900) !important;\n}\n\n.hover\\:bg-bluegray-50:hover {\n background-color: var(--bluegray-50) !important;\n}\n.hover\\:bg-bluegray-100:hover {\n background-color: var(--bluegray-100) !important;\n}\n.hover\\:bg-bluegray-200:hover {\n background-color: var(--bluegray-200) !important;\n}\n.hover\\:bg-bluegray-300:hover {\n background-color: var(--bluegray-300) !important;\n}\n.hover\\:bg-bluegray-400:hover {\n background-color: var(--bluegray-400) !important;\n}\n.hover\\:bg-bluegray-500:hover {\n background-color: var(--bluegray-500) !important;\n}\n.hover\\:bg-bluegray-600:hover {\n background-color: var(--bluegray-600) !important;\n}\n.hover\\:bg-bluegray-700:hover {\n background-color: var(--bluegray-700) !important;\n}\n.hover\\:bg-bluegray-800:hover {\n background-color: var(--bluegray-800) !important;\n}\n.hover\\:bg-bluegray-900:hover {\n background-color: var(--bluegray-900) !important;\n}\n\n.active\\:bg-bluegray-50:active {\n background-color: var(--bluegray-50) !important;\n}\n.active\\:bg-bluegray-100:active {\n background-color: var(--bluegray-100) !important;\n}\n.active\\:bg-bluegray-200:active {\n background-color: var(--bluegray-200) !important;\n}\n.active\\:bg-bluegray-300:active {\n background-color: var(--bluegray-300) !important;\n}\n.active\\:bg-bluegray-400:active {\n background-color: var(--bluegray-400) !important;\n}\n.active\\:bg-bluegray-500:active {\n background-color: var(--bluegray-500) !important;\n}\n.active\\:bg-bluegray-600:active {\n background-color: var(--bluegray-600) !important;\n}\n.active\\:bg-bluegray-700:active {\n background-color: var(--bluegray-700) !important;\n}\n.active\\:bg-bluegray-800:active {\n background-color: var(--bluegray-800) !important;\n}\n.active\\:bg-bluegray-900:active {\n background-color: var(--bluegray-900) !important;\n}\n\n.bg-purple-50 {\n background-color: var(--purple-50) !important;\n}\n.bg-purple-100 {\n background-color: var(--purple-100) !important;\n}\n.bg-purple-200 {\n background-color: var(--purple-200) !important;\n}\n.bg-purple-300 {\n background-color: var(--purple-300) !important;\n}\n.bg-purple-400 {\n background-color: var(--purple-400) !important;\n}\n.bg-purple-500 {\n background-color: var(--purple-500) !important;\n}\n.bg-purple-600 {\n background-color: var(--purple-600) !important;\n}\n.bg-purple-700 {\n background-color: var(--purple-700) !important;\n}\n.bg-purple-800 {\n background-color: var(--purple-800) !important;\n}\n.bg-purple-900 {\n background-color: var(--purple-900) !important;\n}\n\n.focus\\:bg-purple-50:focus {\n background-color: var(--purple-50) !important;\n}\n.focus\\:bg-purple-100:focus {\n background-color: var(--purple-100) !important;\n}\n.focus\\:bg-purple-200:focus {\n background-color: var(--purple-200) !important;\n}\n.focus\\:bg-purple-300:focus {\n background-color: var(--purple-300) !important;\n}\n.focus\\:bg-purple-400:focus {\n background-color: var(--purple-400) !important;\n}\n.focus\\:bg-purple-500:focus {\n background-color: var(--purple-500) !important;\n}\n.focus\\:bg-purple-600:focus {\n background-color: var(--purple-600) !important;\n}\n.focus\\:bg-purple-700:focus {\n background-color: var(--purple-700) !important;\n}\n.focus\\:bg-purple-800:focus {\n background-color: var(--purple-800) !important;\n}\n.focus\\:bg-purple-900:focus {\n background-color: var(--purple-900) !important;\n}\n\n.hover\\:bg-purple-50:hover {\n background-color: var(--purple-50) !important;\n}\n.hover\\:bg-purple-100:hover {\n background-color: var(--purple-100) !important;\n}\n.hover\\:bg-purple-200:hover {\n background-color: var(--purple-200) !important;\n}\n.hover\\:bg-purple-300:hover {\n background-color: var(--purple-300) !important;\n}\n.hover\\:bg-purple-400:hover {\n background-color: var(--purple-400) !important;\n}\n.hover\\:bg-purple-500:hover {\n background-color: var(--purple-500) !important;\n}\n.hover\\:bg-purple-600:hover {\n background-color: var(--purple-600) !important;\n}\n.hover\\:bg-purple-700:hover {\n background-color: var(--purple-700) !important;\n}\n.hover\\:bg-purple-800:hover {\n background-color: var(--purple-800) !important;\n}\n.hover\\:bg-purple-900:hover {\n background-color: var(--purple-900) !important;\n}\n\n.active\\:bg-purple-50:active {\n background-color: var(--purple-50) !important;\n}\n.active\\:bg-purple-100:active {\n background-color: var(--purple-100) !important;\n}\n.active\\:bg-purple-200:active {\n background-color: var(--purple-200) !important;\n}\n.active\\:bg-purple-300:active {\n background-color: var(--purple-300) !important;\n}\n.active\\:bg-purple-400:active {\n background-color: var(--purple-400) !important;\n}\n.active\\:bg-purple-500:active {\n background-color: var(--purple-500) !important;\n}\n.active\\:bg-purple-600:active {\n background-color: var(--purple-600) !important;\n}\n.active\\:bg-purple-700:active {\n background-color: var(--purple-700) !important;\n}\n.active\\:bg-purple-800:active {\n background-color: var(--purple-800) !important;\n}\n.active\\:bg-purple-900:active {\n background-color: var(--purple-900) !important;\n}\n\n.bg-gray-50 {\n background-color: var(--gray-50) !important;\n}\n.bg-gray-100 {\n background-color: var(--gray-100) !important;\n}\n.bg-gray-200 {\n background-color: var(--gray-200) !important;\n}\n.bg-gray-300 {\n background-color: var(--gray-300) !important;\n}\n.bg-gray-400 {\n background-color: var(--gray-400) !important;\n}\n.bg-gray-500 {\n background-color: var(--gray-500) !important;\n}\n.bg-gray-600 {\n background-color: var(--gray-600) !important;\n}\n.bg-gray-700 {\n background-color: var(--gray-700) !important;\n}\n.bg-gray-800 {\n background-color: var(--gray-800) !important;\n}\n.bg-gray-900 {\n background-color: var(--gray-900) !important;\n}\n\n.focus\\:bg-gray-50:focus {\n background-color: var(--gray-50) !important;\n}\n.focus\\:bg-gray-100:focus {\n background-color: var(--gray-100) !important;\n}\n.focus\\:bg-gray-200:focus {\n background-color: var(--gray-200) !important;\n}\n.focus\\:bg-gray-300:focus {\n background-color: var(--gray-300) !important;\n}\n.focus\\:bg-gray-400:focus {\n background-color: var(--gray-400) !important;\n}\n.focus\\:bg-gray-500:focus {\n background-color: var(--gray-500) !important;\n}\n.focus\\:bg-gray-600:focus {\n background-color: var(--gray-600) !important;\n}\n.focus\\:bg-gray-700:focus {\n background-color: var(--gray-700) !important;\n}\n.focus\\:bg-gray-800:focus {\n background-color: var(--gray-800) !important;\n}\n.focus\\:bg-gray-900:focus {\n background-color: var(--gray-900) !important;\n}\n\n.hover\\:bg-gray-50:hover {\n background-color: var(--gray-50) !important;\n}\n.hover\\:bg-gray-100:hover {\n background-color: var(--gray-100) !important;\n}\n.hover\\:bg-gray-200:hover {\n background-color: var(--gray-200) !important;\n}\n.hover\\:bg-gray-300:hover {\n background-color: var(--gray-300) !important;\n}\n.hover\\:bg-gray-400:hover {\n background-color: var(--gray-400) !important;\n}\n.hover\\:bg-gray-500:hover {\n background-color: var(--gray-500) !important;\n}\n.hover\\:bg-gray-600:hover {\n background-color: var(--gray-600) !important;\n}\n.hover\\:bg-gray-700:hover {\n background-color: var(--gray-700) !important;\n}\n.hover\\:bg-gray-800:hover {\n background-color: var(--gray-800) !important;\n}\n.hover\\:bg-gray-900:hover {\n background-color: var(--gray-900) !important;\n}\n\n.active\\:bg-gray-50:active {\n background-color: var(--gray-50) !important;\n}\n.active\\:bg-gray-100:active {\n background-color: var(--gray-100) !important;\n}\n.active\\:bg-gray-200:active {\n background-color: var(--gray-200) !important;\n}\n.active\\:bg-gray-300:active {\n background-color: var(--gray-300) !important;\n}\n.active\\:bg-gray-400:active {\n background-color: var(--gray-400) !important;\n}\n.active\\:bg-gray-500:active {\n background-color: var(--gray-500) !important;\n}\n.active\\:bg-gray-600:active {\n background-color: var(--gray-600) !important;\n}\n.active\\:bg-gray-700:active {\n background-color: var(--gray-700) !important;\n}\n.active\\:bg-gray-800:active {\n background-color: var(--gray-800) !important;\n}\n.active\\:bg-gray-900:active {\n background-color: var(--gray-900) !important;\n}\n\n.border-blue-50 {\n border-color: var(--blue-50) !important;\n}\n.border-blue-100 {\n border-color: var(--blue-100) !important;\n}\n.border-blue-200 {\n border-color: var(--blue-200) !important;\n}\n.border-blue-300 {\n border-color: var(--blue-300) !important;\n}\n.border-blue-400 {\n border-color: var(--blue-400) !important;\n}\n.border-blue-500 {\n border-color: var(--blue-500) !important;\n}\n.border-blue-600 {\n border-color: var(--blue-600) !important;\n}\n.border-blue-700 {\n border-color: var(--blue-700) !important;\n}\n.border-blue-800 {\n border-color: var(--blue-800) !important;\n}\n.border-blue-900 {\n border-color: var(--blue-900) !important;\n}\n\n.focus\\:border-blue-50:focus {\n border-color: var(--blue-50) !important;\n}\n.focus\\:border-blue-100:focus {\n border-color: var(--blue-100) !important;\n}\n.focus\\:border-blue-200:focus {\n border-color: var(--blue-200) !important;\n}\n.focus\\:border-blue-300:focus {\n border-color: var(--blue-300) !important;\n}\n.focus\\:border-blue-400:focus {\n border-color: var(--blue-400) !important;\n}\n.focus\\:border-blue-500:focus {\n border-color: var(--blue-500) !important;\n}\n.focus\\:border-blue-600:focus {\n border-color: var(--blue-600) !important;\n}\n.focus\\:border-blue-700:focus {\n border-color: var(--blue-700) !important;\n}\n.focus\\:border-blue-800:focus {\n border-color: var(--blue-800) !important;\n}\n.focus\\:border-blue-900:focus {\n border-color: var(--blue-900) !important;\n}\n\n.hover\\:border-blue-50:hover {\n border-color: var(--blue-50) !important;\n}\n.hover\\:border-blue-100:hover {\n border-color: var(--blue-100) !important;\n}\n.hover\\:border-blue-200:hover {\n border-color: var(--blue-200) !important;\n}\n.hover\\:border-blue-300:hover {\n border-color: var(--blue-300) !important;\n}\n.hover\\:border-blue-400:hover {\n border-color: var(--blue-400) !important;\n}\n.hover\\:border-blue-500:hover {\n border-color: var(--blue-500) !important;\n}\n.hover\\:border-blue-600:hover {\n border-color: var(--blue-600) !important;\n}\n.hover\\:border-blue-700:hover {\n border-color: var(--blue-700) !important;\n}\n.hover\\:border-blue-800:hover {\n border-color: var(--blue-800) !important;\n}\n.hover\\:border-blue-900:hover {\n border-color: var(--blue-900) !important;\n}\n\n.active\\:border-blue-50:active {\n border-color: var(--blue-50) !important;\n}\n.active\\:border-blue-100:active {\n border-color: var(--blue-100) !important;\n}\n.active\\:border-blue-200:active {\n border-color: var(--blue-200) !important;\n}\n.active\\:border-blue-300:active {\n border-color: var(--blue-300) !important;\n}\n.active\\:border-blue-400:active {\n border-color: var(--blue-400) !important;\n}\n.active\\:border-blue-500:active {\n border-color: var(--blue-500) !important;\n}\n.active\\:border-blue-600:active {\n border-color: var(--blue-600) !important;\n}\n.active\\:border-blue-700:active {\n border-color: var(--blue-700) !important;\n}\n.active\\:border-blue-800:active {\n border-color: var(--blue-800) !important;\n}\n.active\\:border-blue-900:active {\n border-color: var(--blue-900) !important;\n}\n\n.border-green-50 {\n border-color: var(--green-50) !important;\n}\n.border-green-100 {\n border-color: var(--green-100) !important;\n}\n.border-green-200 {\n border-color: var(--green-200) !important;\n}\n.border-green-300 {\n border-color: var(--green-300) !important;\n}\n.border-green-400 {\n border-color: var(--green-400) !important;\n}\n.border-green-500 {\n border-color: var(--green-500) !important;\n}\n.border-green-600 {\n border-color: var(--green-600) !important;\n}\n.border-green-700 {\n border-color: var(--green-700) !important;\n}\n.border-green-800 {\n border-color: var(--green-800) !important;\n}\n.border-green-900 {\n border-color: var(--green-900) !important;\n}\n\n.focus\\:border-green-50:focus {\n border-color: var(--green-50) !important;\n}\n.focus\\:border-green-100:focus {\n border-color: var(--green-100) !important;\n}\n.focus\\:border-green-200:focus {\n border-color: var(--green-200) !important;\n}\n.focus\\:border-green-300:focus {\n border-color: var(--green-300) !important;\n}\n.focus\\:border-green-400:focus {\n border-color: var(--green-400) !important;\n}\n.focus\\:border-green-500:focus {\n border-color: var(--green-500) !important;\n}\n.focus\\:border-green-600:focus {\n border-color: var(--green-600) !important;\n}\n.focus\\:border-green-700:focus {\n border-color: var(--green-700) !important;\n}\n.focus\\:border-green-800:focus {\n border-color: var(--green-800) !important;\n}\n.focus\\:border-green-900:focus {\n border-color: var(--green-900) !important;\n}\n\n.hover\\:border-green-50:hover {\n border-color: var(--green-50) !important;\n}\n.hover\\:border-green-100:hover {\n border-color: var(--green-100) !important;\n}\n.hover\\:border-green-200:hover {\n border-color: var(--green-200) !important;\n}\n.hover\\:border-green-300:hover {\n border-color: var(--green-300) !important;\n}\n.hover\\:border-green-400:hover {\n border-color: var(--green-400) !important;\n}\n.hover\\:border-green-500:hover {\n border-color: var(--green-500) !important;\n}\n.hover\\:border-green-600:hover {\n border-color: var(--green-600) !important;\n}\n.hover\\:border-green-700:hover {\n border-color: var(--green-700) !important;\n}\n.hover\\:border-green-800:hover {\n border-color: var(--green-800) !important;\n}\n.hover\\:border-green-900:hover {\n border-color: var(--green-900) !important;\n}\n\n.active\\:border-green-50:active {\n border-color: var(--green-50) !important;\n}\n.active\\:border-green-100:active {\n border-color: var(--green-100) !important;\n}\n.active\\:border-green-200:active {\n border-color: var(--green-200) !important;\n}\n.active\\:border-green-300:active {\n border-color: var(--green-300) !important;\n}\n.active\\:border-green-400:active {\n border-color: var(--green-400) !important;\n}\n.active\\:border-green-500:active {\n border-color: var(--green-500) !important;\n}\n.active\\:border-green-600:active {\n border-color: var(--green-600) !important;\n}\n.active\\:border-green-700:active {\n border-color: var(--green-700) !important;\n}\n.active\\:border-green-800:active {\n border-color: var(--green-800) !important;\n}\n.active\\:border-green-900:active {\n border-color: var(--green-900) !important;\n}\n\n.border-yellow-50 {\n border-color: var(--yellow-50) !important;\n}\n.border-yellow-100 {\n border-color: var(--yellow-100) !important;\n}\n.border-yellow-200 {\n border-color: var(--yellow-200) !important;\n}\n.border-yellow-300 {\n border-color: var(--yellow-300) !important;\n}\n.border-yellow-400 {\n border-color: var(--yellow-400) !important;\n}\n.border-yellow-500 {\n border-color: var(--yellow-500) !important;\n}\n.border-yellow-600 {\n border-color: var(--yellow-600) !important;\n}\n.border-yellow-700 {\n border-color: var(--yellow-700) !important;\n}\n.border-yellow-800 {\n border-color: var(--yellow-800) !important;\n}\n.border-yellow-900 {\n border-color: var(--yellow-900) !important;\n}\n\n.focus\\:border-yellow-50:focus {\n border-color: var(--yellow-50) !important;\n}\n.focus\\:border-yellow-100:focus {\n border-color: var(--yellow-100) !important;\n}\n.focus\\:border-yellow-200:focus {\n border-color: var(--yellow-200) !important;\n}\n.focus\\:border-yellow-300:focus {\n border-color: var(--yellow-300) !important;\n}\n.focus\\:border-yellow-400:focus {\n border-color: var(--yellow-400) !important;\n}\n.focus\\:border-yellow-500:focus {\n border-color: var(--yellow-500) !important;\n}\n.focus\\:border-yellow-600:focus {\n border-color: var(--yellow-600) !important;\n}\n.focus\\:border-yellow-700:focus {\n border-color: var(--yellow-700) !important;\n}\n.focus\\:border-yellow-800:focus {\n border-color: var(--yellow-800) !important;\n}\n.focus\\:border-yellow-900:focus {\n border-color: var(--yellow-900) !important;\n}\n\n.hover\\:border-yellow-50:hover {\n border-color: var(--yellow-50) !important;\n}\n.hover\\:border-yellow-100:hover {\n border-color: var(--yellow-100) !important;\n}\n.hover\\:border-yellow-200:hover {\n border-color: var(--yellow-200) !important;\n}\n.hover\\:border-yellow-300:hover {\n border-color: var(--yellow-300) !important;\n}\n.hover\\:border-yellow-400:hover {\n border-color: var(--yellow-400) !important;\n}\n.hover\\:border-yellow-500:hover {\n border-color: var(--yellow-500) !important;\n}\n.hover\\:border-yellow-600:hover {\n border-color: var(--yellow-600) !important;\n}\n.hover\\:border-yellow-700:hover {\n border-color: var(--yellow-700) !important;\n}\n.hover\\:border-yellow-800:hover {\n border-color: var(--yellow-800) !important;\n}\n.hover\\:border-yellow-900:hover {\n border-color: var(--yellow-900) !important;\n}\n\n.active\\:border-yellow-50:active {\n border-color: var(--yellow-50) !important;\n}\n.active\\:border-yellow-100:active {\n border-color: var(--yellow-100) !important;\n}\n.active\\:border-yellow-200:active {\n border-color: var(--yellow-200) !important;\n}\n.active\\:border-yellow-300:active {\n border-color: var(--yellow-300) !important;\n}\n.active\\:border-yellow-400:active {\n border-color: var(--yellow-400) !important;\n}\n.active\\:border-yellow-500:active {\n border-color: var(--yellow-500) !important;\n}\n.active\\:border-yellow-600:active {\n border-color: var(--yellow-600) !important;\n}\n.active\\:border-yellow-700:active {\n border-color: var(--yellow-700) !important;\n}\n.active\\:border-yellow-800:active {\n border-color: var(--yellow-800) !important;\n}\n.active\\:border-yellow-900:active {\n border-color: var(--yellow-900) !important;\n}\n\n.border-cyan-50 {\n border-color: var(--cyan-50) !important;\n}\n.border-cyan-100 {\n border-color: var(--cyan-100) !important;\n}\n.border-cyan-200 {\n border-color: var(--cyan-200) !important;\n}\n.border-cyan-300 {\n border-color: var(--cyan-300) !important;\n}\n.border-cyan-400 {\n border-color: var(--cyan-400) !important;\n}\n.border-cyan-500 {\n border-color: var(--cyan-500) !important;\n}\n.border-cyan-600 {\n border-color: var(--cyan-600) !important;\n}\n.border-cyan-700 {\n border-color: var(--cyan-700) !important;\n}\n.border-cyan-800 {\n border-color: var(--cyan-800) !important;\n}\n.border-cyan-900 {\n border-color: var(--cyan-900) !important;\n}\n\n.focus\\:border-cyan-50:focus {\n border-color: var(--cyan-50) !important;\n}\n.focus\\:border-cyan-100:focus {\n border-color: var(--cyan-100) !important;\n}\n.focus\\:border-cyan-200:focus {\n border-color: var(--cyan-200) !important;\n}\n.focus\\:border-cyan-300:focus {\n border-color: var(--cyan-300) !important;\n}\n.focus\\:border-cyan-400:focus {\n border-color: var(--cyan-400) !important;\n}\n.focus\\:border-cyan-500:focus {\n border-color: var(--cyan-500) !important;\n}\n.focus\\:border-cyan-600:focus {\n border-color: var(--cyan-600) !important;\n}\n.focus\\:border-cyan-700:focus {\n border-color: var(--cyan-700) !important;\n}\n.focus\\:border-cyan-800:focus {\n border-color: var(--cyan-800) !important;\n}\n.focus\\:border-cyan-900:focus {\n border-color: var(--cyan-900) !important;\n}\n\n.hover\\:border-cyan-50:hover {\n border-color: var(--cyan-50) !important;\n}\n.hover\\:border-cyan-100:hover {\n border-color: var(--cyan-100) !important;\n}\n.hover\\:border-cyan-200:hover {\n border-color: var(--cyan-200) !important;\n}\n.hover\\:border-cyan-300:hover {\n border-color: var(--cyan-300) !important;\n}\n.hover\\:border-cyan-400:hover {\n border-color: var(--cyan-400) !important;\n}\n.hover\\:border-cyan-500:hover {\n border-color: var(--cyan-500) !important;\n}\n.hover\\:border-cyan-600:hover {\n border-color: var(--cyan-600) !important;\n}\n.hover\\:border-cyan-700:hover {\n border-color: var(--cyan-700) !important;\n}\n.hover\\:border-cyan-800:hover {\n border-color: var(--cyan-800) !important;\n}\n.hover\\:border-cyan-900:hover {\n border-color: var(--cyan-900) !important;\n}\n\n.active\\:border-cyan-50:active {\n border-color: var(--cyan-50) !important;\n}\n.active\\:border-cyan-100:active {\n border-color: var(--cyan-100) !important;\n}\n.active\\:border-cyan-200:active {\n border-color: var(--cyan-200) !important;\n}\n.active\\:border-cyan-300:active {\n border-color: var(--cyan-300) !important;\n}\n.active\\:border-cyan-400:active {\n border-color: var(--cyan-400) !important;\n}\n.active\\:border-cyan-500:active {\n border-color: var(--cyan-500) !important;\n}\n.active\\:border-cyan-600:active {\n border-color: var(--cyan-600) !important;\n}\n.active\\:border-cyan-700:active {\n border-color: var(--cyan-700) !important;\n}\n.active\\:border-cyan-800:active {\n border-color: var(--cyan-800) !important;\n}\n.active\\:border-cyan-900:active {\n border-color: var(--cyan-900) !important;\n}\n\n.border-pink-50 {\n border-color: var(--pink-50) !important;\n}\n.border-pink-100 {\n border-color: var(--pink-100) !important;\n}\n.border-pink-200 {\n border-color: var(--pink-200) !important;\n}\n.border-pink-300 {\n border-color: var(--pink-300) !important;\n}\n.border-pink-400 {\n border-color: var(--pink-400) !important;\n}\n.border-pink-500 {\n border-color: var(--pink-500) !important;\n}\n.border-pink-600 {\n border-color: var(--pink-600) !important;\n}\n.border-pink-700 {\n border-color: var(--pink-700) !important;\n}\n.border-pink-800 {\n border-color: var(--pink-800) !important;\n}\n.border-pink-900 {\n border-color: var(--pink-900) !important;\n}\n\n.focus\\:border-pink-50:focus {\n border-color: var(--pink-50) !important;\n}\n.focus\\:border-pink-100:focus {\n border-color: var(--pink-100) !important;\n}\n.focus\\:border-pink-200:focus {\n border-color: var(--pink-200) !important;\n}\n.focus\\:border-pink-300:focus {\n border-color: var(--pink-300) !important;\n}\n.focus\\:border-pink-400:focus {\n border-color: var(--pink-400) !important;\n}\n.focus\\:border-pink-500:focus {\n border-color: var(--pink-500) !important;\n}\n.focus\\:border-pink-600:focus {\n border-color: var(--pink-600) !important;\n}\n.focus\\:border-pink-700:focus {\n border-color: var(--pink-700) !important;\n}\n.focus\\:border-pink-800:focus {\n border-color: var(--pink-800) !important;\n}\n.focus\\:border-pink-900:focus {\n border-color: var(--pink-900) !important;\n}\n\n.hover\\:border-pink-50:hover {\n border-color: var(--pink-50) !important;\n}\n.hover\\:border-pink-100:hover {\n border-color: var(--pink-100) !important;\n}\n.hover\\:border-pink-200:hover {\n border-color: var(--pink-200) !important;\n}\n.hover\\:border-pink-300:hover {\n border-color: var(--pink-300) !important;\n}\n.hover\\:border-pink-400:hover {\n border-color: var(--pink-400) !important;\n}\n.hover\\:border-pink-500:hover {\n border-color: var(--pink-500) !important;\n}\n.hover\\:border-pink-600:hover {\n border-color: var(--pink-600) !important;\n}\n.hover\\:border-pink-700:hover {\n border-color: var(--pink-700) !important;\n}\n.hover\\:border-pink-800:hover {\n border-color: var(--pink-800) !important;\n}\n.hover\\:border-pink-900:hover {\n border-color: var(--pink-900) !important;\n}\n\n.active\\:border-pink-50:active {\n border-color: var(--pink-50) !important;\n}\n.active\\:border-pink-100:active {\n border-color: var(--pink-100) !important;\n}\n.active\\:border-pink-200:active {\n border-color: var(--pink-200) !important;\n}\n.active\\:border-pink-300:active {\n border-color: var(--pink-300) !important;\n}\n.active\\:border-pink-400:active {\n border-color: var(--pink-400) !important;\n}\n.active\\:border-pink-500:active {\n border-color: var(--pink-500) !important;\n}\n.active\\:border-pink-600:active {\n border-color: var(--pink-600) !important;\n}\n.active\\:border-pink-700:active {\n border-color: var(--pink-700) !important;\n}\n.active\\:border-pink-800:active {\n border-color: var(--pink-800) !important;\n}\n.active\\:border-pink-900:active {\n border-color: var(--pink-900) !important;\n}\n\n.border-indigo-50 {\n border-color: var(--indigo-50) !important;\n}\n.border-indigo-100 {\n border-color: var(--indigo-100) !important;\n}\n.border-indigo-200 {\n border-color: var(--indigo-200) !important;\n}\n.border-indigo-300 {\n border-color: var(--indigo-300) !important;\n}\n.border-indigo-400 {\n border-color: var(--indigo-400) !important;\n}\n.border-indigo-500 {\n border-color: var(--indigo-500) !important;\n}\n.border-indigo-600 {\n border-color: var(--indigo-600) !important;\n}\n.border-indigo-700 {\n border-color: var(--indigo-700) !important;\n}\n.border-indigo-800 {\n border-color: var(--indigo-800) !important;\n}\n.border-indigo-900 {\n border-color: var(--indigo-900) !important;\n}\n\n.focus\\:border-indigo-50:focus {\n border-color: var(--indigo-50) !important;\n}\n.focus\\:border-indigo-100:focus {\n border-color: var(--indigo-100) !important;\n}\n.focus\\:border-indigo-200:focus {\n border-color: var(--indigo-200) !important;\n}\n.focus\\:border-indigo-300:focus {\n border-color: var(--indigo-300) !important;\n}\n.focus\\:border-indigo-400:focus {\n border-color: var(--indigo-400) !important;\n}\n.focus\\:border-indigo-500:focus {\n border-color: var(--indigo-500) !important;\n}\n.focus\\:border-indigo-600:focus {\n border-color: var(--indigo-600) !important;\n}\n.focus\\:border-indigo-700:focus {\n border-color: var(--indigo-700) !important;\n}\n.focus\\:border-indigo-800:focus {\n border-color: var(--indigo-800) !important;\n}\n.focus\\:border-indigo-900:focus {\n border-color: var(--indigo-900) !important;\n}\n\n.hover\\:border-indigo-50:hover {\n border-color: var(--indigo-50) !important;\n}\n.hover\\:border-indigo-100:hover {\n border-color: var(--indigo-100) !important;\n}\n.hover\\:border-indigo-200:hover {\n border-color: var(--indigo-200) !important;\n}\n.hover\\:border-indigo-300:hover {\n border-color: var(--indigo-300) !important;\n}\n.hover\\:border-indigo-400:hover {\n border-color: var(--indigo-400) !important;\n}\n.hover\\:border-indigo-500:hover {\n border-color: var(--indigo-500) !important;\n}\n.hover\\:border-indigo-600:hover {\n border-color: var(--indigo-600) !important;\n}\n.hover\\:border-indigo-700:hover {\n border-color: var(--indigo-700) !important;\n}\n.hover\\:border-indigo-800:hover {\n border-color: var(--indigo-800) !important;\n}\n.hover\\:border-indigo-900:hover {\n border-color: var(--indigo-900) !important;\n}\n\n.active\\:border-indigo-50:active {\n border-color: var(--indigo-50) !important;\n}\n.active\\:border-indigo-100:active {\n border-color: var(--indigo-100) !important;\n}\n.active\\:border-indigo-200:active {\n border-color: var(--indigo-200) !important;\n}\n.active\\:border-indigo-300:active {\n border-color: var(--indigo-300) !important;\n}\n.active\\:border-indigo-400:active {\n border-color: var(--indigo-400) !important;\n}\n.active\\:border-indigo-500:active {\n border-color: var(--indigo-500) !important;\n}\n.active\\:border-indigo-600:active {\n border-color: var(--indigo-600) !important;\n}\n.active\\:border-indigo-700:active {\n border-color: var(--indigo-700) !important;\n}\n.active\\:border-indigo-800:active {\n border-color: var(--indigo-800) !important;\n}\n.active\\:border-indigo-900:active {\n border-color: var(--indigo-900) !important;\n}\n\n.border-teal-50 {\n border-color: var(--teal-50) !important;\n}\n.border-teal-100 {\n border-color: var(--teal-100) !important;\n}\n.border-teal-200 {\n border-color: var(--teal-200) !important;\n}\n.border-teal-300 {\n border-color: var(--teal-300) !important;\n}\n.border-teal-400 {\n border-color: var(--teal-400) !important;\n}\n.border-teal-500 {\n border-color: var(--teal-500) !important;\n}\n.border-teal-600 {\n border-color: var(--teal-600) !important;\n}\n.border-teal-700 {\n border-color: var(--teal-700) !important;\n}\n.border-teal-800 {\n border-color: var(--teal-800) !important;\n}\n.border-teal-900 {\n border-color: var(--teal-900) !important;\n}\n\n.focus\\:border-teal-50:focus {\n border-color: var(--teal-50) !important;\n}\n.focus\\:border-teal-100:focus {\n border-color: var(--teal-100) !important;\n}\n.focus\\:border-teal-200:focus {\n border-color: var(--teal-200) !important;\n}\n.focus\\:border-teal-300:focus {\n border-color: var(--teal-300) !important;\n}\n.focus\\:border-teal-400:focus {\n border-color: var(--teal-400) !important;\n}\n.focus\\:border-teal-500:focus {\n border-color: var(--teal-500) !important;\n}\n.focus\\:border-teal-600:focus {\n border-color: var(--teal-600) !important;\n}\n.focus\\:border-teal-700:focus {\n border-color: var(--teal-700) !important;\n}\n.focus\\:border-teal-800:focus {\n border-color: var(--teal-800) !important;\n}\n.focus\\:border-teal-900:focus {\n border-color: var(--teal-900) !important;\n}\n\n.hover\\:border-teal-50:hover {\n border-color: var(--teal-50) !important;\n}\n.hover\\:border-teal-100:hover {\n border-color: var(--teal-100) !important;\n}\n.hover\\:border-teal-200:hover {\n border-color: var(--teal-200) !important;\n}\n.hover\\:border-teal-300:hover {\n border-color: var(--teal-300) !important;\n}\n.hover\\:border-teal-400:hover {\n border-color: var(--teal-400) !important;\n}\n.hover\\:border-teal-500:hover {\n border-color: var(--teal-500) !important;\n}\n.hover\\:border-teal-600:hover {\n border-color: var(--teal-600) !important;\n}\n.hover\\:border-teal-700:hover {\n border-color: var(--teal-700) !important;\n}\n.hover\\:border-teal-800:hover {\n border-color: var(--teal-800) !important;\n}\n.hover\\:border-teal-900:hover {\n border-color: var(--teal-900) !important;\n}\n\n.active\\:border-teal-50:active {\n border-color: var(--teal-50) !important;\n}\n.active\\:border-teal-100:active {\n border-color: var(--teal-100) !important;\n}\n.active\\:border-teal-200:active {\n border-color: var(--teal-200) !important;\n}\n.active\\:border-teal-300:active {\n border-color: var(--teal-300) !important;\n}\n.active\\:border-teal-400:active {\n border-color: var(--teal-400) !important;\n}\n.active\\:border-teal-500:active {\n border-color: var(--teal-500) !important;\n}\n.active\\:border-teal-600:active {\n border-color: var(--teal-600) !important;\n}\n.active\\:border-teal-700:active {\n border-color: var(--teal-700) !important;\n}\n.active\\:border-teal-800:active {\n border-color: var(--teal-800) !important;\n}\n.active\\:border-teal-900:active {\n border-color: var(--teal-900) !important;\n}\n\n.border-orange-50 {\n border-color: var(--orange-50) !important;\n}\n.border-orange-100 {\n border-color: var(--orange-100) !important;\n}\n.border-orange-200 {\n border-color: var(--orange-200) !important;\n}\n.border-orange-300 {\n border-color: var(--orange-300) !important;\n}\n.border-orange-400 {\n border-color: var(--orange-400) !important;\n}\n.border-orange-500 {\n border-color: var(--orange-500) !important;\n}\n.border-orange-600 {\n border-color: var(--orange-600) !important;\n}\n.border-orange-700 {\n border-color: var(--orange-700) !important;\n}\n.border-orange-800 {\n border-color: var(--orange-800) !important;\n}\n.border-orange-900 {\n border-color: var(--orange-900) !important;\n}\n\n.focus\\:border-orange-50:focus {\n border-color: var(--orange-50) !important;\n}\n.focus\\:border-orange-100:focus {\n border-color: var(--orange-100) !important;\n}\n.focus\\:border-orange-200:focus {\n border-color: var(--orange-200) !important;\n}\n.focus\\:border-orange-300:focus {\n border-color: var(--orange-300) !important;\n}\n.focus\\:border-orange-400:focus {\n border-color: var(--orange-400) !important;\n}\n.focus\\:border-orange-500:focus {\n border-color: var(--orange-500) !important;\n}\n.focus\\:border-orange-600:focus {\n border-color: var(--orange-600) !important;\n}\n.focus\\:border-orange-700:focus {\n border-color: var(--orange-700) !important;\n}\n.focus\\:border-orange-800:focus {\n border-color: var(--orange-800) !important;\n}\n.focus\\:border-orange-900:focus {\n border-color: var(--orange-900) !important;\n}\n\n.hover\\:border-orange-50:hover {\n border-color: var(--orange-50) !important;\n}\n.hover\\:border-orange-100:hover {\n border-color: var(--orange-100) !important;\n}\n.hover\\:border-orange-200:hover {\n border-color: var(--orange-200) !important;\n}\n.hover\\:border-orange-300:hover {\n border-color: var(--orange-300) !important;\n}\n.hover\\:border-orange-400:hover {\n border-color: var(--orange-400) !important;\n}\n.hover\\:border-orange-500:hover {\n border-color: var(--orange-500) !important;\n}\n.hover\\:border-orange-600:hover {\n border-color: var(--orange-600) !important;\n}\n.hover\\:border-orange-700:hover {\n border-color: var(--orange-700) !important;\n}\n.hover\\:border-orange-800:hover {\n border-color: var(--orange-800) !important;\n}\n.hover\\:border-orange-900:hover {\n border-color: var(--orange-900) !important;\n}\n\n.active\\:border-orange-50:active {\n border-color: var(--orange-50) !important;\n}\n.active\\:border-orange-100:active {\n border-color: var(--orange-100) !important;\n}\n.active\\:border-orange-200:active {\n border-color: var(--orange-200) !important;\n}\n.active\\:border-orange-300:active {\n border-color: var(--orange-300) !important;\n}\n.active\\:border-orange-400:active {\n border-color: var(--orange-400) !important;\n}\n.active\\:border-orange-500:active {\n border-color: var(--orange-500) !important;\n}\n.active\\:border-orange-600:active {\n border-color: var(--orange-600) !important;\n}\n.active\\:border-orange-700:active {\n border-color: var(--orange-700) !important;\n}\n.active\\:border-orange-800:active {\n border-color: var(--orange-800) !important;\n}\n.active\\:border-orange-900:active {\n border-color: var(--orange-900) !important;\n}\n\n.border-bluegray-50 {\n border-color: var(--bluegray-50) !important;\n}\n.border-bluegray-100 {\n border-color: var(--bluegray-100) !important;\n}\n.border-bluegray-200 {\n border-color: var(--bluegray-200) !important;\n}\n.border-bluegray-300 {\n border-color: var(--bluegray-300) !important;\n}\n.border-bluegray-400 {\n border-color: var(--bluegray-400) !important;\n}\n.border-bluegray-500 {\n border-color: var(--bluegray-500) !important;\n}\n.border-bluegray-600 {\n border-color: var(--bluegray-600) !important;\n}\n.border-bluegray-700 {\n border-color: var(--bluegray-700) !important;\n}\n.border-bluegray-800 {\n border-color: var(--bluegray-800) !important;\n}\n.border-bluegray-900 {\n border-color: var(--bluegray-900) !important;\n}\n\n.focus\\:border-bluegray-50:focus {\n border-color: var(--bluegray-50) !important;\n}\n.focus\\:border-bluegray-100:focus {\n border-color: var(--bluegray-100) !important;\n}\n.focus\\:border-bluegray-200:focus {\n border-color: var(--bluegray-200) !important;\n}\n.focus\\:border-bluegray-300:focus {\n border-color: var(--bluegray-300) !important;\n}\n.focus\\:border-bluegray-400:focus {\n border-color: var(--bluegray-400) !important;\n}\n.focus\\:border-bluegray-500:focus {\n border-color: var(--bluegray-500) !important;\n}\n.focus\\:border-bluegray-600:focus {\n border-color: var(--bluegray-600) !important;\n}\n.focus\\:border-bluegray-700:focus {\n border-color: var(--bluegray-700) !important;\n}\n.focus\\:border-bluegray-800:focus {\n border-color: var(--bluegray-800) !important;\n}\n.focus\\:border-bluegray-900:focus {\n border-color: var(--bluegray-900) !important;\n}\n\n.hover\\:border-bluegray-50:hover {\n border-color: var(--bluegray-50) !important;\n}\n.hover\\:border-bluegray-100:hover {\n border-color: var(--bluegray-100) !important;\n}\n.hover\\:border-bluegray-200:hover {\n border-color: var(--bluegray-200) !important;\n}\n.hover\\:border-bluegray-300:hover {\n border-color: var(--bluegray-300) !important;\n}\n.hover\\:border-bluegray-400:hover {\n border-color: var(--bluegray-400) !important;\n}\n.hover\\:border-bluegray-500:hover {\n border-color: var(--bluegray-500) !important;\n}\n.hover\\:border-bluegray-600:hover {\n border-color: var(--bluegray-600) !important;\n}\n.hover\\:border-bluegray-700:hover {\n border-color: var(--bluegray-700) !important;\n}\n.hover\\:border-bluegray-800:hover {\n border-color: var(--bluegray-800) !important;\n}\n.hover\\:border-bluegray-900:hover {\n border-color: var(--bluegray-900) !important;\n}\n\n.active\\:border-bluegray-50:active {\n border-color: var(--bluegray-50) !important;\n}\n.active\\:border-bluegray-100:active {\n border-color: var(--bluegray-100) !important;\n}\n.active\\:border-bluegray-200:active {\n border-color: var(--bluegray-200) !important;\n}\n.active\\:border-bluegray-300:active {\n border-color: var(--bluegray-300) !important;\n}\n.active\\:border-bluegray-400:active {\n border-color: var(--bluegray-400) !important;\n}\n.active\\:border-bluegray-500:active {\n border-color: var(--bluegray-500) !important;\n}\n.active\\:border-bluegray-600:active {\n border-color: var(--bluegray-600) !important;\n}\n.active\\:border-bluegray-700:active {\n border-color: var(--bluegray-700) !important;\n}\n.active\\:border-bluegray-800:active {\n border-color: var(--bluegray-800) !important;\n}\n.active\\:border-bluegray-900:active {\n border-color: var(--bluegray-900) !important;\n}\n\n.border-purple-50 {\n border-color: var(--purple-50) !important;\n}\n.border-purple-100 {\n border-color: var(--purple-100) !important;\n}\n.border-purple-200 {\n border-color: var(--purple-200) !important;\n}\n.border-purple-300 {\n border-color: var(--purple-300) !important;\n}\n.border-purple-400 {\n border-color: var(--purple-400) !important;\n}\n.border-purple-500 {\n border-color: var(--purple-500) !important;\n}\n.border-purple-600 {\n border-color: var(--purple-600) !important;\n}\n.border-purple-700 {\n border-color: var(--purple-700) !important;\n}\n.border-purple-800 {\n border-color: var(--purple-800) !important;\n}\n.border-purple-900 {\n border-color: var(--purple-900) !important;\n}\n\n.focus\\:border-purple-50:focus {\n border-color: var(--purple-50) !important;\n}\n.focus\\:border-purple-100:focus {\n border-color: var(--purple-100) !important;\n}\n.focus\\:border-purple-200:focus {\n border-color: var(--purple-200) !important;\n}\n.focus\\:border-purple-300:focus {\n border-color: var(--purple-300) !important;\n}\n.focus\\:border-purple-400:focus {\n border-color: var(--purple-400) !important;\n}\n.focus\\:border-purple-500:focus {\n border-color: var(--purple-500) !important;\n}\n.focus\\:border-purple-600:focus {\n border-color: var(--purple-600) !important;\n}\n.focus\\:border-purple-700:focus {\n border-color: var(--purple-700) !important;\n}\n.focus\\:border-purple-800:focus {\n border-color: var(--purple-800) !important;\n}\n.focus\\:border-purple-900:focus {\n border-color: var(--purple-900) !important;\n}\n\n.hover\\:border-purple-50:hover {\n border-color: var(--purple-50) !important;\n}\n.hover\\:border-purple-100:hover {\n border-color: var(--purple-100) !important;\n}\n.hover\\:border-purple-200:hover {\n border-color: var(--purple-200) !important;\n}\n.hover\\:border-purple-300:hover {\n border-color: var(--purple-300) !important;\n}\n.hover\\:border-purple-400:hover {\n border-color: var(--purple-400) !important;\n}\n.hover\\:border-purple-500:hover {\n border-color: var(--purple-500) !important;\n}\n.hover\\:border-purple-600:hover {\n border-color: var(--purple-600) !important;\n}\n.hover\\:border-purple-700:hover {\n border-color: var(--purple-700) !important;\n}\n.hover\\:border-purple-800:hover {\n border-color: var(--purple-800) !important;\n}\n.hover\\:border-purple-900:hover {\n border-color: var(--purple-900) !important;\n}\n\n.active\\:border-purple-50:active {\n border-color: var(--purple-50) !important;\n}\n.active\\:border-purple-100:active {\n border-color: var(--purple-100) !important;\n}\n.active\\:border-purple-200:active {\n border-color: var(--purple-200) !important;\n}\n.active\\:border-purple-300:active {\n border-color: var(--purple-300) !important;\n}\n.active\\:border-purple-400:active {\n border-color: var(--purple-400) !important;\n}\n.active\\:border-purple-500:active {\n border-color: var(--purple-500) !important;\n}\n.active\\:border-purple-600:active {\n border-color: var(--purple-600) !important;\n}\n.active\\:border-purple-700:active {\n border-color: var(--purple-700) !important;\n}\n.active\\:border-purple-800:active {\n border-color: var(--purple-800) !important;\n}\n.active\\:border-purple-900:active {\n border-color: var(--purple-900) !important;\n}\n\n.border-gray-50 {\n border-color: var(--gray-50) !important;\n}\n.border-gray-100 {\n border-color: var(--gray-100) !important;\n}\n.border-gray-200 {\n border-color: var(--gray-200) !important;\n}\n.border-gray-300 {\n border-color: var(--gray-300) !important;\n}\n.border-gray-400 {\n border-color: var(--gray-400) !important;\n}\n.border-gray-500 {\n border-color: var(--gray-500) !important;\n}\n.border-gray-600 {\n border-color: var(--gray-600) !important;\n}\n.border-gray-700 {\n border-color: var(--gray-700) !important;\n}\n.border-gray-800 {\n border-color: var(--gray-800) !important;\n}\n.border-gray-900 {\n border-color: var(--gray-900) !important;\n}\n\n.focus\\:border-gray-50:focus {\n border-color: var(--gray-50) !important;\n}\n.focus\\:border-gray-100:focus {\n border-color: var(--gray-100) !important;\n}\n.focus\\:border-gray-200:focus {\n border-color: var(--gray-200) !important;\n}\n.focus\\:border-gray-300:focus {\n border-color: var(--gray-300) !important;\n}\n.focus\\:border-gray-400:focus {\n border-color: var(--gray-400) !important;\n}\n.focus\\:border-gray-500:focus {\n border-color: var(--gray-500) !important;\n}\n.focus\\:border-gray-600:focus {\n border-color: var(--gray-600) !important;\n}\n.focus\\:border-gray-700:focus {\n border-color: var(--gray-700) !important;\n}\n.focus\\:border-gray-800:focus {\n border-color: var(--gray-800) !important;\n}\n.focus\\:border-gray-900:focus {\n border-color: var(--gray-900) !important;\n}\n\n.hover\\:border-gray-50:hover {\n border-color: var(--gray-50) !important;\n}\n.hover\\:border-gray-100:hover {\n border-color: var(--gray-100) !important;\n}\n.hover\\:border-gray-200:hover {\n border-color: var(--gray-200) !important;\n}\n.hover\\:border-gray-300:hover {\n border-color: var(--gray-300) !important;\n}\n.hover\\:border-gray-400:hover {\n border-color: var(--gray-400) !important;\n}\n.hover\\:border-gray-500:hover {\n border-color: var(--gray-500) !important;\n}\n.hover\\:border-gray-600:hover {\n border-color: var(--gray-600) !important;\n}\n.hover\\:border-gray-700:hover {\n border-color: var(--gray-700) !important;\n}\n.hover\\:border-gray-800:hover {\n border-color: var(--gray-800) !important;\n}\n.hover\\:border-gray-900:hover {\n border-color: var(--gray-900) !important;\n}\n\n.active\\:border-gray-50:active {\n border-color: var(--gray-50) !important;\n}\n.active\\:border-gray-100:active {\n border-color: var(--gray-100) !important;\n}\n.active\\:border-gray-200:active {\n border-color: var(--gray-200) !important;\n}\n.active\\:border-gray-300:active {\n border-color: var(--gray-300) !important;\n}\n.active\\:border-gray-400:active {\n border-color: var(--gray-400) !important;\n}\n.active\\:border-gray-500:active {\n border-color: var(--gray-500) !important;\n}\n.active\\:border-gray-600:active {\n border-color: var(--gray-600) !important;\n}\n.active\\:border-gray-700:active {\n border-color: var(--gray-700) !important;\n}\n.active\\:border-gray-800:active {\n border-color: var(--gray-800) !important;\n}\n.active\\:border-gray-900:active {\n border-color: var(--gray-900) !important;\n}\n\n.bg-white-alpha-10 {\n background-color: rgba(255,255,255,0.1) !important;\n}\n.bg-white-alpha-20 {\n background-color: rgba(255,255,255,0.2) !important;\n}\n.bg-white-alpha-30 {\n background-color: rgba(255,255,255,0.3) !important;\n}\n.bg-white-alpha-40 {\n background-color: rgba(255,255,255,0.4) !important;\n}\n.bg-white-alpha-50 {\n background-color: rgba(255,255,255,0.5) !important;\n}\n.bg-white-alpha-60 {\n background-color: rgba(255,255,255,0.6) !important;\n}\n.bg-white-alpha-70 {\n background-color: rgba(255,255,255,0.7) !important;\n}\n.bg-white-alpha-80 {\n background-color: rgba(255,255,255,0.8) !important;\n}\n.bg-white-alpha-90 {\n background-color: rgba(255,255,255,0.9) !important;\n}\n\n.hover\\:bg-white-alpha-10:hover {\n background-color: rgba(255,255,255,0.1) !important;\n}\n.hover\\:bg-white-alpha-20:hover {\n background-color: rgba(255,255,255,0.2) !important;\n}\n.hover\\:bg-white-alpha-30:hover {\n background-color: rgba(255,255,255,0.3) !important;\n}\n.hover\\:bg-white-alpha-40:hover {\n background-color: rgba(255,255,255,0.4) !important;\n}\n.hover\\:bg-white-alpha-50:hover {\n background-color: rgba(255,255,255,0.5) !important;\n}\n.hover\\:bg-white-alpha-60:hover {\n background-color: rgba(255,255,255,0.6) !important;\n}\n.hover\\:bg-white-alpha-70:hover {\n background-color: rgba(255,255,255,0.7) !important;\n}\n.hover\\:bg-white-alpha-80:hover {\n background-color: rgba(255,255,255,0.8) !important;\n}\n.hover\\:bg-white-alpha-90:hover {\n background-color: rgba(255,255,255,0.9) !important;\n}\n\n.focus\\:bg-white-alpha-10:focus {\n background-color: rgba(255,255,255,0.1) !important;\n}\n.focus\\:bg-white-alpha-20:focus {\n background-color: rgba(255,255,255,0.2) !important;\n}\n.focus\\:bg-white-alpha-30:focus {\n background-color: rgba(255,255,255,0.3) !important;\n}\n.focus\\:bg-white-alpha-40:focus {\n background-color: rgba(255,255,255,0.4) !important;\n}\n.focus\\:bg-white-alpha-50:focus {\n background-color: rgba(255,255,255,0.5) !important;\n}\n.focus\\:bg-white-alpha-60:focus {\n background-color: rgba(255,255,255,0.6) !important;\n}\n.focus\\:bg-white-alpha-70:focus {\n background-color: rgba(255,255,255,0.7) !important;\n}\n.focus\\:bg-white-alpha-80:focus {\n background-color: rgba(255,255,255,0.8) !important;\n}\n.focus\\:bg-white-alpha-90:focus {\n background-color: rgba(255,255,255,0.9) !important;\n}\n\n.active\\:bg-white-alpha-10:active {\n background-color: rgba(255,255,255,0.1) !important;\n}\n.active\\:bg-white-alpha-20:active {\n background-color: rgba(255,255,255,0.2) !important;\n}\n.active\\:bg-white-alpha-30:active {\n background-color: rgba(255,255,255,0.3) !important;\n}\n.active\\:bg-white-alpha-40:active {\n background-color: rgba(255,255,255,0.4) !important;\n}\n.active\\:bg-white-alpha-50:active {\n background-color: rgba(255,255,255,0.5) !important;\n}\n.active\\:bg-white-alpha-60:active {\n background-color: rgba(255,255,255,0.6) !important;\n}\n.active\\:bg-white-alpha-70:active {\n background-color: rgba(255,255,255,0.7) !important;\n}\n.active\\:bg-white-alpha-80:active {\n background-color: rgba(255,255,255,0.8) !important;\n}\n.active\\:bg-white-alpha-90:active {\n background-color: rgba(255,255,255,0.9) !important;\n}\n\n.bg-black-alpha-10 {\n background-color: rgba(0,0,0,0.1) !important;\n}\n.bg-black-alpha-20 {\n background-color: rgba(0,0,0,0.2) !important;\n}\n.bg-black-alpha-30 {\n background-color: rgba(0,0,0,0.3) !important;\n}\n.bg-black-alpha-40 {\n background-color: rgba(0,0,0,0.4) !important;\n}\n.bg-black-alpha-50 {\n background-color: rgba(0,0,0,0.5) !important;\n}\n.bg-black-alpha-60 {\n background-color: rgba(0,0,0,0.6) !important;\n}\n.bg-black-alpha-70 {\n background-color: rgba(0,0,0,0.7) !important;\n}\n.bg-black-alpha-80 {\n background-color: rgba(0,0,0,0.8) !important;\n}\n.bg-black-alpha-90 {\n background-color: rgba(0,0,0,0.9) !important;\n}\n\n.hover\\:bg-black-alpha-10:hover {\n background-color: rgba(0,0,0,0.1) !important;\n}\n.hover\\:bg-black-alpha-20:hover {\n background-color: rgba(0,0,0,0.2) !important;\n}\n.hover\\:bg-black-alpha-30:hover {\n background-color: rgba(0,0,0,0.3) !important;\n}\n.hover\\:bg-black-alpha-40:hover {\n background-color: rgba(0,0,0,0.4) !important;\n}\n.hover\\:bg-black-alpha-50:hover {\n background-color: rgba(0,0,0,0.5) !important;\n}\n.hover\\:bg-black-alpha-60:hover {\n background-color: rgba(0,0,0,0.6) !important;\n}\n.hover\\:bg-black-alpha-70:hover {\n background-color: rgba(0,0,0,0.7) !important;\n}\n.hover\\:bg-black-alpha-80:hover {\n background-color: rgba(0,0,0,0.8) !important;\n}\n.hover\\:bg-black-alpha-90:hover {\n background-color: rgba(0,0,0,0.9) !important;\n}\n\n.focus\\:bg-black-alpha-10:focus {\n background-color: rgba(0,0,0,0.1) !important;\n}\n.focus\\:bg-black-alpha-20:focus {\n background-color: rgba(0,0,0,0.2) !important;\n}\n.focus\\:bg-black-alpha-30:focus {\n background-color: rgba(0,0,0,0.3) !important;\n}\n.focus\\:bg-black-alpha-40:focus {\n background-color: rgba(0,0,0,0.4) !important;\n}\n.focus\\:bg-black-alpha-50:focus {\n background-color: rgba(0,0,0,0.5) !important;\n}\n.focus\\:bg-black-alpha-60:focus {\n background-color: rgba(0,0,0,0.6) !important;\n}\n.focus\\:bg-black-alpha-70:focus {\n background-color: rgba(0,0,0,0.7) !important;\n}\n.focus\\:bg-black-alpha-80:focus {\n background-color: rgba(0,0,0,0.8) !important;\n}\n.focus\\:bg-black-alpha-90:focus {\n background-color: rgba(0,0,0,0.9) !important;\n}\n\n.active\\:bg-black-alpha-10:active {\n background-color: rgba(0,0,0,0.1) !important;\n}\n.active\\:bg-black-alpha-20:active {\n background-color: rgba(0,0,0,0.2) !important;\n}\n.active\\:bg-black-alpha-30:active {\n background-color: rgba(0,0,0,0.3) !important;\n}\n.active\\:bg-black-alpha-40:active {\n background-color: rgba(0,0,0,0.4) !important;\n}\n.active\\:bg-black-alpha-50:active {\n background-color: rgba(0,0,0,0.5) !important;\n}\n.active\\:bg-black-alpha-60:active {\n background-color: rgba(0,0,0,0.6) !important;\n}\n.active\\:bg-black-alpha-70:active {\n background-color: rgba(0,0,0,0.7) !important;\n}\n.active\\:bg-black-alpha-80:active {\n background-color: rgba(0,0,0,0.8) !important;\n}\n.active\\:bg-black-alpha-90:active {\n background-color: rgba(0,0,0,0.9) !important;\n}\n\n.border-white-alpha-10 {\n border-color: rgba(255,255,255,0.1) !important;\n}\n.border-white-alpha-20 {\n border-color: rgba(255,255,255,0.2) !important;\n}\n.border-white-alpha-30 {\n border-color: rgba(255,255,255,0.3) !important;\n}\n.border-white-alpha-40 {\n border-color: rgba(255,255,255,0.4) !important;\n}\n.border-white-alpha-50 {\n border-color: rgba(255,255,255,0.5) !important;\n}\n.border-white-alpha-60 {\n border-color: rgba(255,255,255,0.6) !important;\n}\n.border-white-alpha-70 {\n border-color: rgba(255,255,255,0.7) !important;\n}\n.border-white-alpha-80 {\n border-color: rgba(255,255,255,0.8) !important;\n}\n.border-white-alpha-90 {\n border-color: rgba(255,255,255,0.9) !important;\n}\n\n.hover\\:border-white-alpha-10:hover {\n border-color: rgba(255,255,255,0.1) !important;\n}\n.hover\\:border-white-alpha-20:hover {\n border-color: rgba(255,255,255,0.2) !important;\n}\n.hover\\:border-white-alpha-30:hover {\n border-color: rgba(255,255,255,0.3) !important;\n}\n.hover\\:border-white-alpha-40:hover {\n border-color: rgba(255,255,255,0.4) !important;\n}\n.hover\\:border-white-alpha-50:hover {\n border-color: rgba(255,255,255,0.5) !important;\n}\n.hover\\:border-white-alpha-60:hover {\n border-color: rgba(255,255,255,0.6) !important;\n}\n.hover\\:border-white-alpha-70:hover {\n border-color: rgba(255,255,255,0.7) !important;\n}\n.hover\\:border-white-alpha-80:hover {\n border-color: rgba(255,255,255,0.8) !important;\n}\n.hover\\:border-white-alpha-90:hover {\n border-color: rgba(255,255,255,0.9) !important;\n}\n\n.focus\\:border-white-alpha-10:focus {\n border-color: rgba(255,255,255,0.1) !important;\n}\n.focus\\:border-white-alpha-20:focus {\n border-color: rgba(255,255,255,0.2) !important;\n}\n.focus\\:border-white-alpha-30:focus {\n border-color: rgba(255,255,255,0.3) !important;\n}\n.focus\\:border-white-alpha-40:focus {\n border-color: rgba(255,255,255,0.4) !important;\n}\n.focus\\:border-white-alpha-50:focus {\n border-color: rgba(255,255,255,0.5) !important;\n}\n.focus\\:border-white-alpha-60:focus {\n border-color: rgba(255,255,255,0.6) !important;\n}\n.focus\\:border-white-alpha-70:focus {\n border-color: rgba(255,255,255,0.7) !important;\n}\n.focus\\:border-white-alpha-80:focus {\n border-color: rgba(255,255,255,0.8) !important;\n}\n.focus\\:border-white-alpha-90:focus {\n border-color: rgba(255,255,255,0.9) !important;\n}\n\n.active\\:border-white-alpha-10:active {\n border-color: rgba(255,255,255,0.1) !important;\n}\n.active\\:border-white-alpha-20:active {\n border-color: rgba(255,255,255,0.2) !important;\n}\n.active\\:border-white-alpha-30:active {\n border-color: rgba(255,255,255,0.3) !important;\n}\n.active\\:border-white-alpha-40:active {\n border-color: rgba(255,255,255,0.4) !important;\n}\n.active\\:border-white-alpha-50:active {\n border-color: rgba(255,255,255,0.5) !important;\n}\n.active\\:border-white-alpha-60:active {\n border-color: rgba(255,255,255,0.6) !important;\n}\n.active\\:border-white-alpha-70:active {\n border-color: rgba(255,255,255,0.7) !important;\n}\n.active\\:border-white-alpha-80:active {\n border-color: rgba(255,255,255,0.8) !important;\n}\n.active\\:border-white-alpha-90:active {\n border-color: rgba(255,255,255,0.9) !important;\n}\n\n.border-black-alpha-10 {\n border-color: rgba(0,0,0,0.1) !important;\n}\n.border-black-alpha-20 {\n border-color: rgba(0,0,0,0.2) !important;\n}\n.border-black-alpha-30 {\n border-color: rgba(0,0,0,0.3) !important;\n}\n.border-black-alpha-40 {\n border-color: rgba(0,0,0,0.4) !important;\n}\n.border-black-alpha-50 {\n border-color: rgba(0,0,0,0.5) !important;\n}\n.border-black-alpha-60 {\n border-color: rgba(0,0,0,0.6) !important;\n}\n.border-black-alpha-70 {\n border-color: rgba(0,0,0,0.7) !important;\n}\n.border-black-alpha-80 {\n border-color: rgba(0,0,0,0.8) !important;\n}\n.border-black-alpha-90 {\n border-color: rgba(0,0,0,0.9) !important;\n}\n\n.hover\\:border-black-alpha-10:hover {\n border-color: rgba(0,0,0,0.1) !important;\n}\n.hover\\:border-black-alpha-20:hover {\n border-color: rgba(0,0,0,0.2) !important;\n}\n.hover\\:border-black-alpha-30:hover {\n border-color: rgba(0,0,0,0.3) !important;\n}\n.hover\\:border-black-alpha-40:hover {\n border-color: rgba(0,0,0,0.4) !important;\n}\n.hover\\:border-black-alpha-50:hover {\n border-color: rgba(0,0,0,0.5) !important;\n}\n.hover\\:border-black-alpha-60:hover {\n border-color: rgba(0,0,0,0.6) !important;\n}\n.hover\\:border-black-alpha-70:hover {\n border-color: rgba(0,0,0,0.7) !important;\n}\n.hover\\:border-black-alpha-80:hover {\n border-color: rgba(0,0,0,0.8) !important;\n}\n.hover\\:border-black-alpha-90:hover {\n border-color: rgba(0,0,0,0.9) !important;\n}\n\n.focus\\:border-black-alpha-10:focus {\n border-color: rgba(0,0,0,0.1) !important;\n}\n.focus\\:border-black-alpha-20:focus {\n border-color: rgba(0,0,0,0.2) !important;\n}\n.focus\\:border-black-alpha-30:focus {\n border-color: rgba(0,0,0,0.3) !important;\n}\n.focus\\:border-black-alpha-40:focus {\n border-color: rgba(0,0,0,0.4) !important;\n}\n.focus\\:border-black-alpha-50:focus {\n border-color: rgba(0,0,0,0.5) !important;\n}\n.focus\\:border-black-alpha-60:focus {\n border-color: rgba(0,0,0,0.6) !important;\n}\n.focus\\:border-black-alpha-70:focus {\n border-color: rgba(0,0,0,0.7) !important;\n}\n.focus\\:border-black-alpha-80:focus {\n border-color: rgba(0,0,0,0.8) !important;\n}\n.focus\\:border-black-alpha-90:focus {\n border-color: rgba(0,0,0,0.9) !important;\n}\n\n.active\\:border-black-alpha-10:active {\n border-color: rgba(0,0,0,0.1) !important;\n}\n.active\\:border-black-alpha-20:active {\n border-color: rgba(0,0,0,0.2) !important;\n}\n.active\\:border-black-alpha-30:active {\n border-color: rgba(0,0,0,0.3) !important;\n}\n.active\\:border-black-alpha-40:active {\n border-color: rgba(0,0,0,0.4) !important;\n}\n.active\\:border-black-alpha-50:active {\n border-color: rgba(0,0,0,0.5) !important;\n}\n.active\\:border-black-alpha-60:active {\n border-color: rgba(0,0,0,0.6) !important;\n}\n.active\\:border-black-alpha-70:active {\n border-color: rgba(0,0,0,0.7) !important;\n}\n.active\\:border-black-alpha-80:active {\n border-color: rgba(0,0,0,0.8) !important;\n}\n.active\\:border-black-alpha-90:active {\n border-color: rgba(0,0,0,0.9) !important;\n}\n\n.text-white-alpha-10 {\n color: rgba(255,255,255,0.1) !important;\n}\n.text-white-alpha-20 {\n color: rgba(255,255,255,0.2) !important;\n}\n.text-white-alpha-30 {\n color: rgba(255,255,255,0.3) !important;\n}\n.text-white-alpha-40 {\n color: rgba(255,255,255,0.4) !important;\n}\n.text-white-alpha-50 {\n color: rgba(255,255,255,0.5) !important;\n}\n.text-white-alpha-60 {\n color: rgba(255,255,255,0.6) !important;\n}\n.text-white-alpha-70 {\n color: rgba(255,255,255,0.7) !important;\n}\n.text-white-alpha-80 {\n color: rgba(255,255,255,0.8) !important;\n}\n.text-white-alpha-90 {\n color: rgba(255,255,255,0.9) !important;\n}\n\n.hover\\:text-white-alpha-10:hover {\n color: rgba(255,255,255,0.1) !important;\n}\n.hover\\:text-white-alpha-20:hover {\n color: rgba(255,255,255,0.2) !important;\n}\n.hover\\:text-white-alpha-30:hover {\n color: rgba(255,255,255,0.3) !important;\n}\n.hover\\:text-white-alpha-40:hover {\n color: rgba(255,255,255,0.4) !important;\n}\n.hover\\:text-white-alpha-50:hover {\n color: rgba(255,255,255,0.5) !important;\n}\n.hover\\:text-white-alpha-60:hover {\n color: rgba(255,255,255,0.6) !important;\n}\n.hover\\:text-white-alpha-70:hover {\n color: rgba(255,255,255,0.7) !important;\n}\n.hover\\:text-white-alpha-80:hover {\n color: rgba(255,255,255,0.8) !important;\n}\n.hover\\:text-white-alpha-90:hover {\n color: rgba(255,255,255,0.9) !important;\n}\n\n.focus\\:text-white-alpha-10:focus {\n color: rgba(255,255,255,0.1) !important;\n}\n.focus\\:text-white-alpha-20:focus {\n color: rgba(255,255,255,0.2) !important;\n}\n.focus\\:text-white-alpha-30:focus {\n color: rgba(255,255,255,0.3) !important;\n}\n.focus\\:text-white-alpha-40:focus {\n color: rgba(255,255,255,0.4) !important;\n}\n.focus\\:text-white-alpha-50:focus {\n color: rgba(255,255,255,0.5) !important;\n}\n.focus\\:text-white-alpha-60:focus {\n color: rgba(255,255,255,0.6) !important;\n}\n.focus\\:text-white-alpha-70:focus {\n color: rgba(255,255,255,0.7) !important;\n}\n.focus\\:text-white-alpha-80:focus {\n color: rgba(255,255,255,0.8) !important;\n}\n.focus\\:text-white-alpha-90:focus {\n color: rgba(255,255,255,0.9) !important;\n}\n\n.active\\:text-white-alpha-10:active {\n color: rgba(255,255,255,0.1) !important;\n}\n.active\\:text-white-alpha-20:active {\n color: rgba(255,255,255,0.2) !important;\n}\n.active\\:text-white-alpha-30:active {\n color: rgba(255,255,255,0.3) !important;\n}\n.active\\:text-white-alpha-40:active {\n color: rgba(255,255,255,0.4) !important;\n}\n.active\\:text-white-alpha-50:active {\n color: rgba(255,255,255,0.5) !important;\n}\n.active\\:text-white-alpha-60:active {\n color: rgba(255,255,255,0.6) !important;\n}\n.active\\:text-white-alpha-70:active {\n color: rgba(255,255,255,0.7) !important;\n}\n.active\\:text-white-alpha-80:active {\n color: rgba(255,255,255,0.8) !important;\n}\n.active\\:text-white-alpha-90:active {\n color: rgba(255,255,255,0.9) !important;\n}\n\n.text-black-alpha-10 {\n color: rgba(0,0,0,0.1) !important;\n}\n.text-black-alpha-20 {\n color: rgba(0,0,0,0.2) !important;\n}\n.text-black-alpha-30 {\n color: rgba(0,0,0,0.3) !important;\n}\n.text-black-alpha-40 {\n color: rgba(0,0,0,0.4) !important;\n}\n.text-black-alpha-50 {\n color: rgba(0,0,0,0.5) !important;\n}\n.text-black-alpha-60 {\n color: rgba(0,0,0,0.6) !important;\n}\n.text-black-alpha-70 {\n color: rgba(0,0,0,0.7) !important;\n}\n.text-black-alpha-80 {\n color: rgba(0,0,0,0.8) !important;\n}\n.text-black-alpha-90 {\n color: rgba(0,0,0,0.9) !important;\n}\n\n.hover\\:text-black-alpha-10:hover {\n color: rgba(0,0,0,0.1) !important;\n}\n.hover\\:text-black-alpha-20:hover {\n color: rgba(0,0,0,0.2) !important;\n}\n.hover\\:text-black-alpha-30:hover {\n color: rgba(0,0,0,0.3) !important;\n}\n.hover\\:text-black-alpha-40:hover {\n color: rgba(0,0,0,0.4) !important;\n}\n.hover\\:text-black-alpha-50:hover {\n color: rgba(0,0,0,0.5) !important;\n}\n.hover\\:text-black-alpha-60:hover {\n color: rgba(0,0,0,0.6) !important;\n}\n.hover\\:text-black-alpha-70:hover {\n color: rgba(0,0,0,0.7) !important;\n}\n.hover\\:text-black-alpha-80:hover {\n color: rgba(0,0,0,0.8) !important;\n}\n.hover\\:text-black-alpha-90:hover {\n color: rgba(0,0,0,0.9) !important;\n}\n\n.focus\\:text-black-alpha-10:focus {\n color: rgba(0,0,0,0.1) !important;\n}\n.focus\\:text-black-alpha-20:focus {\n color: rgba(0,0,0,0.2) !important;\n}\n.focus\\:text-black-alpha-30:focus {\n color: rgba(0,0,0,0.3) !important;\n}\n.focus\\:text-black-alpha-40:focus {\n color: rgba(0,0,0,0.4) !important;\n}\n.focus\\:text-black-alpha-50:focus {\n color: rgba(0,0,0,0.5) !important;\n}\n.focus\\:text-black-alpha-60:focus {\n color: rgba(0,0,0,0.6) !important;\n}\n.focus\\:text-black-alpha-70:focus {\n color: rgba(0,0,0,0.7) !important;\n}\n.focus\\:text-black-alpha-80:focus {\n color: rgba(0,0,0,0.8) !important;\n}\n.focus\\:text-black-alpha-90:focus {\n color: rgba(0,0,0,0.9) !important;\n}\n\n.active\\:text-black-alpha-10:active {\n color: rgba(0,0,0,0.1) !important;\n}\n.active\\:text-black-alpha-20:active {\n color: rgba(0,0,0,0.2) !important;\n}\n.active\\:text-black-alpha-30:active {\n color: rgba(0,0,0,0.3) !important;\n}\n.active\\:text-black-alpha-40:active {\n color: rgba(0,0,0,0.4) !important;\n}\n.active\\:text-black-alpha-50:active {\n color: rgba(0,0,0,0.5) !important;\n}\n.active\\:text-black-alpha-60:active {\n color: rgba(0,0,0,0.6) !important;\n}\n.active\\:text-black-alpha-70:active {\n color: rgba(0,0,0,0.7) !important;\n}\n.active\\:text-black-alpha-80:active {\n color: rgba(0,0,0,0.8) !important;\n}\n.active\\:text-black-alpha-90:active {\n color: rgba(0,0,0,0.9) !important;\n}\n\n.text-primary {\n color: var(--primary-color) !important;\n}\n\n.hover\\:text-primary:hover {\n color: var(--primary-color) !important;\n}\n\n.bg-primary {\n background-color: var(--primary-color) !important;\n color: var(--primary-color-text) !important;\n}\n\n.hover\\:bg-primary:hover {\n background-color: var(--primary-color) !important;\n color: var(--primary-color-text) !important;\n}\n\n.border-primary {\n border-color: var(--primary-color) !important;\n}\n\n.hover\\:border-primary:hover {\n border-color: var(--primary-color) !important;\n}\n\n.bg-primary-reverse {\n background-color: var(--primary-color-text) !important;\n color: var(--primary-color) !important;\n}\n\n.hover\\:bg-primary-reverse:hover {\n background-color: var(--primary-color-text) !important;\n color: var(--primary-color) !important;\n}\n\n.text-white {\n color: #ffffff !important;\n}\n\n.hover\\:text-white:hover {\n color: #ffffff !important;\n}\n\n.bg-white {\n background-color: #ffffff !important;\n}\n\n.hover\\:bg-white:hover {\n background-color: #ffffff !important;\n}\n\n.border-white {\n border-color: #ffffff !important;\n}\n\n.hover\\:border-white:hover {\n border-color: #ffffff !important;\n}\n\n.surface-ground {\n background-color: var(--surface-ground) !important;\n}\n\n.surface-section {\n background-color: var(--surface-section) !important;\n}\n\n.surface-card {\n background-color: var(--surface-card) !important;\n}\n\n.surface-overlay {\n background-color: var(--surface-overlay) !important;\n}\n\n.surface-border {\n border-color: var(--surface-border) !important;\n}\n\n.surface-hover {\n background-color: var(--surface-hover) !important;\n}\n\n.field {\n margin-bottom: 1rem;\n}\n\n.field > label {\n display: inline-block;\n margin-bottom: 0.5rem;\n}\n\n.field.grid > label {\n display: flex;\n align-items: center;\n}\n\n.field > small {\n margin-top: 0.25rem;\n}\n\n.field.grid,\n.formgrid.grid {\n margin-top: 0;\n}\n\n.field.grid .col-fixed,\n.formgrid.grid .col-fixed,\n.field.grid .col,\n.formgrid.grid .col,\n.field.grid .col-1,\n.formgrid.grid .col-1,\n.field.grid .col-2,\n.formgrid.grid .col-2,\n.field.grid .col-3,\n.formgrid.grid .col-3,\n.field.grid .col-4,\n.formgrid.grid .col-4,\n.field.grid .col-5,\n.formgrid.grid .col-5,\n.field.grid .col-6,\n.formgrid.grid .col-6,\n.field.grid .col-7,\n.formgrid.grid .col-7,\n.field.grid .col-8,\n.formgrid.grid .col-8,\n.field.grid .col-9,\n.formgrid.grid .col-9,\n.field.grid .col-10,\n.formgrid.grid .col-10,\n.field.grid .col-11,\n.formgrid.grid .col-11,\n.field.grid .col-12,\n.formgrid.grid .col-12 {\n padding-top: 0;\n padding-bottom: 0;\n}\n\n.formgroup-inline {\n display: flex;\n flex-wrap: wrap;\n align-items: flex-start;\n}\n\n.formgroup-inline .field,\n.formgroup-inline .field-checkbox,\n.formgroup-inline .field-radiobutton {\n margin-right: 1rem;\n}\n\n.formgroup-inline .field > label,\n.formgroup-inline .field-checkbox > label,\n.formgroup-inline .field-radiobutton > label {\n margin-right: 0.5rem;\n margin-bottom: 0;\n}\n\n.field-checkbox,\n.field-radiobutton {\n margin-bottom: 1rem;\n display: flex;\n align-items: center;\n}\n\n.field-checkbox > label,\n.field-radiobutton > label {\n margin-left: 0.5rem;\n line-height: 1;\n}\n\n.hidden {\n display: none !important;\n}\n\n.block {\n display: block !important;\n}\n\n.inline {\n display: inline !important;\n}\n\n.inline-block {\n display: inline-block !important;\n}\n\n.flex {\n display: flex !important;\n}\n\n.inline-flex {\n display: inline-flex !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:hidden {\n display: none !important;\n }\n .sm\\:block {\n display: block !important;\n }\n .sm\\:inline {\n display: inline !important;\n }\n .sm\\:inline-block {\n display: inline-block !important;\n }\n .sm\\:flex {\n display: flex !important;\n }\n .sm\\:inline-flex {\n display: inline-flex !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:hidden {\n display: none !important;\n }\n .md\\:block {\n display: block !important;\n }\n .md\\:inline {\n display: inline !important;\n }\n .md\\:inline-block {\n display: inline-block !important;\n }\n .md\\:flex {\n display: flex !important;\n }\n .md\\:inline-flex {\n display: inline-flex !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:hidden {\n display: none !important;\n }\n .lg\\:block {\n display: block !important;\n }\n .lg\\:inline {\n display: inline !important;\n }\n .lg\\:inline-block {\n display: inline-block !important;\n }\n .lg\\:flex {\n display: flex !important;\n }\n .lg\\:inline-flex {\n display: inline-flex !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:hidden {\n display: none !important;\n }\n .xl\\:block {\n display: block !important;\n }\n .xl\\:inline {\n display: inline !important;\n }\n .xl\\:inline-block {\n display: inline-block !important;\n }\n .xl\\:flex {\n display: flex !important;\n }\n .xl\\:inline-flex {\n display: inline-flex !important;\n }\n}\n.text-center {\n text-align: center !important;\n}\n\n.text-justify {\n text-align: justify !important;\n}\n\n.text-left {\n text-align: left !important;\n}\n\n.text-right {\n text-align: right !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:text-center {\n text-align: center !important;\n }\n .sm\\:text-justify {\n text-align: justify !important;\n }\n .sm\\:text-left {\n text-align: left !important;\n }\n .sm\\:text-right {\n text-align: right !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:text-center {\n text-align: center !important;\n }\n .md\\:text-justify {\n text-align: justify !important;\n }\n .md\\:text-left {\n text-align: left !important;\n }\n .md\\:text-right {\n text-align: right !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:text-center {\n text-align: center !important;\n }\n .lg\\:text-justify {\n text-align: justify !important;\n }\n .lg\\:text-left {\n text-align: left !important;\n }\n .lg\\:text-right {\n text-align: right !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:text-center {\n text-align: center !important;\n }\n .xl\\:text-justify {\n text-align: justify !important;\n }\n .xl\\:text-left {\n text-align: left !important;\n }\n .xl\\:text-right {\n text-align: right !important;\n }\n}\n.underline {\n text-decoration: underline !important;\n}\n\n.line-through {\n text-decoration: line-through !important;\n}\n\n.no-underline {\n text-decoration: none !important;\n}\n\n.lowercase {\n text-transform: lowercase !important;\n}\n\n.uppercase {\n text-transform: uppercase !important;\n}\n\n.capitalize {\n text-transform: capitalize !important;\n}\n\n.text-overflow-clip {\n text-overflow: clip !important;\n}\n\n.text-overflow-ellipsis {\n text-overflow: ellipsis !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:text-overflow-clip {\n text-overflow: clip !important;\n }\n .sm\\:text-overflow-ellipsis {\n text-overflow: ellipsis !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:text-overflow-clip {\n text-overflow: clip !important;\n }\n .md\\:text-overflow-ellipsis {\n text-overflow: ellipsis !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:text-overflow-clip {\n text-overflow: clip !important;\n }\n .lg\\:text-overflow-ellipsis {\n text-overflow: ellipsis !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:text-overflow-clip {\n text-overflow: clip !important;\n }\n .xl\\:text-overflow-ellipsis {\n text-overflow: ellipsis !important;\n }\n}\n.font-light {\n font-weight: 300 !important;\n}\n\n.font-normal {\n font-weight: 400 !important;\n}\n\n.font-medium {\n font-weight: 500 !important;\n}\n\n.font-semibold {\n font-weight: 600 !important;\n}\n\n.font-bold {\n font-weight: 700 !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:font-light {\n font-weight: 300 !important;\n }\n .sm\\:font-normal {\n font-weight: 400 !important;\n }\n .sm\\:font-medium {\n font-weight: 500 !important;\n }\n .sm\\:font-semibold {\n font-weight: 600 !important;\n }\n .sm\\:font-bold {\n font-weight: 700 !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:font-light {\n font-weight: 300 !important;\n }\n .md\\:font-normal {\n font-weight: 400 !important;\n }\n .md\\:font-medium {\n font-weight: 500 !important;\n }\n .md\\:font-semibold {\n font-weight: 600 !important;\n }\n .md\\:font-bold {\n font-weight: 700 !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:font-light {\n font-weight: 300 !important;\n }\n .lg\\:font-normal {\n font-weight: 400 !important;\n }\n .lg\\:font-medium {\n font-weight: 500 !important;\n }\n .lg\\:font-semibold {\n font-weight: 600 !important;\n }\n .lg\\:font-bold {\n font-weight: 700 !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:font-light {\n font-weight: 300 !important;\n }\n .xl\\:font-normal {\n font-weight: 400 !important;\n }\n .xl\\:font-medium {\n font-weight: 500 !important;\n }\n .xl\\:font-semibold {\n font-weight: 600 !important;\n }\n .xl\\:font-bold {\n font-weight: 700 !important;\n }\n}\n.font-italic {\n font-style: italic !important;\n}\n\n.text-xs {\n font-size: 0.75rem !important;\n}\n\n.text-sm {\n font-size: 0.875rem !important;\n}\n\n.text-base {\n font-size: 1rem !important;\n}\n\n.text-lg {\n font-size: 1.125rem !important;\n}\n\n.text-xl {\n font-size: 1.25rem !important;\n}\n\n.text-2xl {\n font-size: 1.5rem !important;\n}\n\n.text-3xl {\n font-size: 1.75rem !important;\n}\n\n.text-4xl {\n font-size: 2rem !important;\n}\n\n.text-5xl {\n font-size: 2.5rem !important;\n}\n\n.text-6xl {\n font-size: 3rem !important;\n}\n\n.text-7xl {\n font-size: 4rem !important;\n}\n\n.text-8xl {\n font-size: 6rem !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:text-xs {\n font-size: 0.75rem !important;\n }\n .sm\\:text-sm {\n font-size: 0.875rem !important;\n }\n .sm\\:text-base {\n font-size: 1rem !important;\n }\n .sm\\:text-lg {\n font-size: 1.125rem !important;\n }\n .sm\\:text-xl {\n font-size: 1.25rem !important;\n }\n .sm\\:text-2xl {\n font-size: 1.5rem !important;\n }\n .sm\\:text-3xl {\n font-size: 1.75rem !important;\n }\n .sm\\:text-4xl {\n font-size: 2rem !important;\n }\n .sm\\:text-5xl {\n font-size: 2.5rem !important;\n }\n .sm\\:text-6xl {\n font-size: 3rem !important;\n }\n .sm\\:text-7xl {\n font-size: 4rem !important;\n }\n .sm\\:text-8xl {\n font-size: 6rem !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:text-xs {\n font-size: 0.75rem !important;\n }\n .md\\:text-sm {\n font-size: 0.875rem !important;\n }\n .md\\:text-base {\n font-size: 1rem !important;\n }\n .md\\:text-lg {\n font-size: 1.125rem !important;\n }\n .md\\:text-xl {\n font-size: 1.25rem !important;\n }\n .md\\:text-2xl {\n font-size: 1.5rem !important;\n }\n .md\\:text-3xl {\n font-size: 1.75rem !important;\n }\n .md\\:text-4xl {\n font-size: 2rem !important;\n }\n .md\\:text-5xl {\n font-size: 2.5rem !important;\n }\n .md\\:text-6xl {\n font-size: 3rem !important;\n }\n .md\\:text-7xl {\n font-size: 4rem !important;\n }\n .md\\:text-8xl {\n font-size: 6rem !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:text-xs {\n font-size: 0.75rem !important;\n }\n .lg\\:text-sm {\n font-size: 0.875rem !important;\n }\n .lg\\:text-base {\n font-size: 1rem !important;\n }\n .lg\\:text-lg {\n font-size: 1.125rem !important;\n }\n .lg\\:text-xl {\n font-size: 1.25rem !important;\n }\n .lg\\:text-2xl {\n font-size: 1.5rem !important;\n }\n .lg\\:text-3xl {\n font-size: 1.75rem !important;\n }\n .lg\\:text-4xl {\n font-size: 2rem !important;\n }\n .lg\\:text-5xl {\n font-size: 2.5rem !important;\n }\n .lg\\:text-6xl {\n font-size: 3rem !important;\n }\n .lg\\:text-7xl {\n font-size: 4rem !important;\n }\n .lg\\:text-8xl {\n font-size: 6rem !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:text-xs {\n font-size: 0.75rem !important;\n }\n .xl\\:text-sm {\n font-size: 0.875rem !important;\n }\n .xl\\:text-base {\n font-size: 1rem !important;\n }\n .xl\\:text-lg {\n font-size: 1.125rem !important;\n }\n .xl\\:text-xl {\n font-size: 1.25rem !important;\n }\n .xl\\:text-2xl {\n font-size: 1.5rem !important;\n }\n .xl\\:text-3xl {\n font-size: 1.75rem !important;\n }\n .xl\\:text-4xl {\n font-size: 2rem !important;\n }\n .xl\\:text-5xl {\n font-size: 2.5rem !important;\n }\n .xl\\:text-6xl {\n font-size: 3rem !important;\n }\n .xl\\:text-7xl {\n font-size: 4rem !important;\n }\n .xl\\:text-8xl {\n font-size: 6rem !important;\n }\n}\n.line-height-1 {\n line-height: 1 !important;\n}\n\n.line-height-2 {\n line-height: 1.25 !important;\n}\n\n.line-height-3 {\n line-height: 1.5 !important;\n}\n\n.line-height-4 {\n line-height: 2 !important;\n}\n\n.white-space-normal {\n white-space: normal !important;\n}\n\n.white-space-nowrap {\n white-space: nowrap !important;\n}\n\n.flex-row {\n flex-direction: row !important;\n}\n\n.flex-row-reverse {\n flex-direction: row-reverse !important;\n}\n\n.flex-column {\n flex-direction: column !important;\n}\n\n.flex-column-reverse {\n flex-direction: column-reverse !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:flex-row {\n flex-direction: row !important;\n }\n .sm\\:flex-row-reverse {\n flex-direction: row-reverse !important;\n }\n .sm\\:flex-column {\n flex-direction: column !important;\n }\n .sm\\:flex-column-reverse {\n flex-direction: column-reverse !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:flex-row {\n flex-direction: row !important;\n }\n .md\\:flex-row-reverse {\n flex-direction: row-reverse !important;\n }\n .md\\:flex-column {\n flex-direction: column !important;\n }\n .md\\:flex-column-reverse {\n flex-direction: column-reverse !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:flex-row {\n flex-direction: row !important;\n }\n .lg\\:flex-row-reverse {\n flex-direction: row-reverse !important;\n }\n .lg\\:flex-column {\n flex-direction: column !important;\n }\n .lg\\:flex-column-reverse {\n flex-direction: column-reverse !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:flex-row {\n flex-direction: row !important;\n }\n .xl\\:flex-row-reverse {\n flex-direction: row-reverse !important;\n }\n .xl\\:flex-column {\n flex-direction: column !important;\n }\n .xl\\:flex-column-reverse {\n flex-direction: column-reverse !important;\n }\n}\n.flex-wrap {\n flex-wrap: wrap !important;\n}\n\n.flex-wrap-reverse {\n flex-wrap: wrap-reverse !important;\n}\n\n.flex-nowrap {\n flex-wrap: nowrap !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:flex-wrap {\n flex-wrap: wrap !important;\n }\n .sm\\:flex-wrap-reverse {\n flex-wrap: wrap-reverse !important;\n }\n .sm\\:flex-nowrap {\n flex-wrap: nowrap !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:flex-wrap {\n flex-wrap: wrap !important;\n }\n .md\\:flex-wrap-reverse {\n flex-wrap: wrap-reverse !important;\n }\n .md\\:flex-nowrap {\n flex-wrap: nowrap !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:flex-wrap {\n flex-wrap: wrap !important;\n }\n .lg\\:flex-wrap-reverse {\n flex-wrap: wrap-reverse !important;\n }\n .lg\\:flex-nowrap {\n flex-wrap: nowrap !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:flex-wrap {\n flex-wrap: wrap !important;\n }\n .xl\\:flex-wrap-reverse {\n flex-wrap: wrap-reverse !important;\n }\n .xl\\:flex-nowrap {\n flex-wrap: nowrap !important;\n }\n}\n.justify-content-start {\n justify-content: flex-start !important;\n}\n\n.justify-content-end {\n justify-content: flex-end !important;\n}\n\n.justify-content-center {\n justify-content: center !important;\n}\n\n.justify-content-between {\n justify-content: space-between !important;\n}\n\n.justify-content-around {\n justify-content: space-around !important;\n}\n\n.justify-content-evenly {\n justify-content: space-evenly !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:justify-content-start {\n justify-content: flex-start !important;\n }\n .sm\\:justify-content-end {\n justify-content: flex-end !important;\n }\n .sm\\:justify-content-center {\n justify-content: center !important;\n }\n .sm\\:justify-content-between {\n justify-content: space-between !important;\n }\n .sm\\:justify-content-around {\n justify-content: space-around !important;\n }\n .sm\\:justify-content-evenly {\n justify-content: space-evenly !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:justify-content-start {\n justify-content: flex-start !important;\n }\n .md\\:justify-content-end {\n justify-content: flex-end !important;\n }\n .md\\:justify-content-center {\n justify-content: center !important;\n }\n .md\\:justify-content-between {\n justify-content: space-between !important;\n }\n .md\\:justify-content-around {\n justify-content: space-around !important;\n }\n .md\\:justify-content-evenly {\n justify-content: space-evenly !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:justify-content-start {\n justify-content: flex-start !important;\n }\n .lg\\:justify-content-end {\n justify-content: flex-end !important;\n }\n .lg\\:justify-content-center {\n justify-content: center !important;\n }\n .lg\\:justify-content-between {\n justify-content: space-between !important;\n }\n .lg\\:justify-content-around {\n justify-content: space-around !important;\n }\n .lg\\:justify-content-evenly {\n justify-content: space-evenly !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:justify-content-start {\n justify-content: flex-start !important;\n }\n .xl\\:justify-content-end {\n justify-content: flex-end !important;\n }\n .xl\\:justify-content-center {\n justify-content: center !important;\n }\n .xl\\:justify-content-between {\n justify-content: space-between !important;\n }\n .xl\\:justify-content-around {\n justify-content: space-around !important;\n }\n .xl\\:justify-content-evenly {\n justify-content: space-evenly !important;\n }\n}\n.align-content-start {\n align-content: flex-start !important;\n}\n\n.align-content-end {\n align-content: flex-end !important;\n}\n\n.align-content-center {\n align-content: center !important;\n}\n\n.align-content-between {\n align-content: space-between !important;\n}\n\n.align-content-around {\n align-content: space-around !important;\n}\n\n.align-content-evenly {\n align-content: space-evenly !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:align-content-start {\n align-content: flex-start !important;\n }\n .sm\\:align-content-end {\n align-content: flex-end !important;\n }\n .sm\\:align-content-center {\n align-content: center !important;\n }\n .sm\\:align-content-between {\n align-content: space-between !important;\n }\n .sm\\:align-content-around {\n align-content: space-around !important;\n }\n .sm\\:align-content-evenly {\n align-content: space-evenly !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:align-content-start {\n align-content: flex-start !important;\n }\n .md\\:align-content-end {\n align-content: flex-end !important;\n }\n .md\\:align-content-center {\n align-content: center !important;\n }\n .md\\:align-content-between {\n align-content: space-between !important;\n }\n .md\\:align-content-around {\n align-content: space-around !important;\n }\n .md\\:align-content-evenly {\n align-content: space-evenly !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:align-content-start {\n align-content: flex-start !important;\n }\n .lg\\:align-content-end {\n align-content: flex-end !important;\n }\n .lg\\:align-content-center {\n align-content: center !important;\n }\n .lg\\:align-content-between {\n align-content: space-between !important;\n }\n .lg\\:align-content-around {\n align-content: space-around !important;\n }\n .lg\\:align-content-evenly {\n align-content: space-evenly !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:align-content-start {\n align-content: flex-start !important;\n }\n .xl\\:align-content-end {\n align-content: flex-end !important;\n }\n .xl\\:align-content-center {\n align-content: center !important;\n }\n .xl\\:align-content-between {\n align-content: space-between !important;\n }\n .xl\\:align-content-around {\n align-content: space-around !important;\n }\n .xl\\:align-content-evenly {\n align-content: space-evenly !important;\n }\n}\n.align-items-stretch {\n align-items: stretch !important;\n}\n\n.align-items-start {\n align-items: flex-start !important;\n}\n\n.align-items-center {\n align-items: center !important;\n}\n\n.align-items-end {\n align-items: flex-end !important;\n}\n\n.align-items-baseline {\n align-items: baseline !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:align-items-stretch {\n align-items: stretch !important;\n }\n .sm\\:align-items-start {\n align-items: flex-start !important;\n }\n .sm\\:align-items-center {\n align-items: center !important;\n }\n .sm\\:align-items-end {\n align-items: flex-end !important;\n }\n .sm\\:align-items-baseline {\n align-items: baseline !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:align-items-stretch {\n align-items: stretch !important;\n }\n .md\\:align-items-start {\n align-items: flex-start !important;\n }\n .md\\:align-items-center {\n align-items: center !important;\n }\n .md\\:align-items-end {\n align-items: flex-end !important;\n }\n .md\\:align-items-baseline {\n align-items: baseline !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:align-items-stretch {\n align-items: stretch !important;\n }\n .lg\\:align-items-start {\n align-items: flex-start !important;\n }\n .lg\\:align-items-center {\n align-items: center !important;\n }\n .lg\\:align-items-end {\n align-items: flex-end !important;\n }\n .lg\\:align-items-baseline {\n align-items: baseline !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:align-items-stretch {\n align-items: stretch !important;\n }\n .xl\\:align-items-start {\n align-items: flex-start !important;\n }\n .xl\\:align-items-center {\n align-items: center !important;\n }\n .xl\\:align-items-end {\n align-items: flex-end !important;\n }\n .xl\\:align-items-baseline {\n align-items: baseline !important;\n }\n}\n.align-self-auto {\n align-self: auto !important;\n}\n\n.align-self-start {\n align-self: flex-start !important;\n}\n\n.align-self-end {\n align-self: flex-end !important;\n}\n\n.align-self-center {\n align-self: center !important;\n}\n\n.align-self-stretch {\n align-self: stretch !important;\n}\n\n.align-self-baseline {\n align-self: baseline !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:align-self-auto {\n align-self: auto !important;\n }\n .sm\\:align-self-start {\n align-self: flex-start !important;\n }\n .sm\\:align-self-end {\n align-self: flex-end !important;\n }\n .sm\\:align-self-center {\n align-self: center !important;\n }\n .sm\\:align-self-stretch {\n align-self: stretch !important;\n }\n .sm\\:align-self-baseline {\n align-self: baseline !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:align-self-auto {\n align-self: auto !important;\n }\n .md\\:align-self-start {\n align-self: flex-start !important;\n }\n .md\\:align-self-end {\n align-self: flex-end !important;\n }\n .md\\:align-self-center {\n align-self: center !important;\n }\n .md\\:align-self-stretch {\n align-self: stretch !important;\n }\n .md\\:align-self-baseline {\n align-self: baseline !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:align-self-auto {\n align-self: auto !important;\n }\n .lg\\:align-self-start {\n align-self: flex-start !important;\n }\n .lg\\:align-self-end {\n align-self: flex-end !important;\n }\n .lg\\:align-self-center {\n align-self: center !important;\n }\n .lg\\:align-self-stretch {\n align-self: stretch !important;\n }\n .lg\\:align-self-baseline {\n align-self: baseline !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:align-self-auto {\n align-self: auto !important;\n }\n .xl\\:align-self-start {\n align-self: flex-start !important;\n }\n .xl\\:align-self-end {\n align-self: flex-end !important;\n }\n .xl\\:align-self-center {\n align-self: center !important;\n }\n .xl\\:align-self-stretch {\n align-self: stretch !important;\n }\n .xl\\:align-self-baseline {\n align-self: baseline !important;\n }\n}\n.flex-order-0 {\n order: 0 !important;\n}\n\n.flex-order-1 {\n order: 1 !important;\n}\n\n.flex-order-2 {\n order: 2 !important;\n}\n\n.flex-order-3 {\n order: 3 !important;\n}\n\n.flex-order-4 {\n order: 4 !important;\n}\n\n.flex-order-5 {\n order: 5 !important;\n}\n\n.flex-order-6 {\n order: 6 !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:flex-order-0 {\n order: 0 !important;\n }\n .sm\\:flex-order-1 {\n order: 1 !important;\n }\n .sm\\:flex-order-2 {\n order: 2 !important;\n }\n .sm\\:flex-order-3 {\n order: 3 !important;\n }\n .sm\\:flex-order-4 {\n order: 4 !important;\n }\n .sm\\:flex-order-5 {\n order: 5 !important;\n }\n .sm\\:flex-order-6 {\n order: 6 !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:flex-order-0 {\n order: 0 !important;\n }\n .md\\:flex-order-1 {\n order: 1 !important;\n }\n .md\\:flex-order-2 {\n order: 2 !important;\n }\n .md\\:flex-order-3 {\n order: 3 !important;\n }\n .md\\:flex-order-4 {\n order: 4 !important;\n }\n .md\\:flex-order-5 {\n order: 5 !important;\n }\n .md\\:flex-order-6 {\n order: 6 !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:flex-order-0 {\n order: 0 !important;\n }\n .lg\\:flex-order-1 {\n order: 1 !important;\n }\n .lg\\:flex-order-2 {\n order: 2 !important;\n }\n .lg\\:flex-order-3 {\n order: 3 !important;\n }\n .lg\\:flex-order-4 {\n order: 4 !important;\n }\n .lg\\:flex-order-5 {\n order: 5 !important;\n }\n .lg\\:flex-order-6 {\n order: 6 !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:flex-order-0 {\n order: 0 !important;\n }\n .xl\\:flex-order-1 {\n order: 1 !important;\n }\n .xl\\:flex-order-2 {\n order: 2 !important;\n }\n .xl\\:flex-order-3 {\n order: 3 !important;\n }\n .xl\\:flex-order-4 {\n order: 4 !important;\n }\n .xl\\:flex-order-5 {\n order: 5 !important;\n }\n .xl\\:flex-order-6 {\n order: 6 !important;\n }\n}\n.flex-1 {\n flex: 1 1 0% !important;\n}\n\n.flex-auto {\n flex: 1 1 auto !important;\n}\n\n.flex-initial {\n flex: 0 1 auto !important;\n}\n\n.flex-none {\n flex: none !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:flex-1 {\n flex: 1 1 0% !important;\n }\n .sm\\:flex-auto {\n flex: 1 1 auto !important;\n }\n .sm\\:flex-initial {\n flex: 0 1 auto !important;\n }\n .sm\\:flex-none {\n flex: none !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:flex-1 {\n flex: 1 1 0% !important;\n }\n .md\\:flex-auto {\n flex: 1 1 auto !important;\n }\n .md\\:flex-initial {\n flex: 0 1 auto !important;\n }\n .md\\:flex-none {\n flex: none !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:flex-1 {\n flex: 1 1 0% !important;\n }\n .lg\\:flex-auto {\n flex: 1 1 auto !important;\n }\n .lg\\:flex-initial {\n flex: 0 1 auto !important;\n }\n .lg\\:flex-none {\n flex: none !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:flex-1 {\n flex: 1 1 0% !important;\n }\n .xl\\:flex-auto {\n flex: 1 1 auto !important;\n }\n .xl\\:flex-initial {\n flex: 0 1 auto !important;\n }\n .xl\\:flex-none {\n flex: none !important;\n }\n}\n.flex-grow-0 {\n flex-grow: 0 !important;\n}\n\n.flex-grow-1 {\n flex-grow: 1 !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:flex-grow-0 {\n flex-grow: 0 !important;\n }\n .sm\\:flex-grow-1 {\n flex-grow: 1 !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:flex-grow-0 {\n flex-grow: 0 !important;\n }\n .md\\:flex-grow-1 {\n flex-grow: 1 !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:flex-grow-0 {\n flex-grow: 0 !important;\n }\n .lg\\:flex-grow-1 {\n flex-grow: 1 !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:flex-grow-0 {\n flex-grow: 0 !important;\n }\n .xl\\:flex-grow-1 {\n flex-grow: 1 !important;\n }\n}\n.flex-shrink-0 {\n flex-shrink: 0 !important;\n}\n\n.flex-shrink-1 {\n flex-shrink: 1 !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:flex-shrink-0 {\n flex-shrink: 0 !important;\n }\n .sm\\:flex-shrink-1 {\n flex-shrink: 1 !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:flex-shrink-0 {\n flex-shrink: 0 !important;\n }\n .md\\:flex-shrink-1 {\n flex-shrink: 1 !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:flex-shrink-0 {\n flex-shrink: 0 !important;\n }\n .lg\\:flex-shrink-1 {\n flex-shrink: 1 !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:flex-shrink-0 {\n flex-shrink: 0 !important;\n }\n .xl\\:flex-shrink-1 {\n flex-shrink: 1 !important;\n }\n}\n.p-0 {\n padding: 0rem !important;\n}\n\n.p-1 {\n padding: 0.25rem !important;\n}\n\n.p-2 {\n padding: 0.5rem !important;\n}\n\n.p-3 {\n padding: 1rem !important;\n}\n\n.p-4 {\n padding: 1.5rem !important;\n}\n\n.p-5 {\n padding: 2rem !important;\n}\n\n.p-6 {\n padding: 3rem !important;\n}\n\n.p-7 {\n padding: 4rem !important;\n}\n\n.p-8 {\n padding: 5rem !important;\n}\n\n.pt-0 {\n padding-top: 0rem !important;\n}\n\n.pt-1 {\n padding-top: 0.25rem !important;\n}\n\n.pt-2 {\n padding-top: 0.5rem !important;\n}\n\n.pt-3 {\n padding-top: 1rem !important;\n}\n\n.pt-4 {\n padding-top: 1.5rem !important;\n}\n\n.pt-5 {\n padding-top: 2rem !important;\n}\n\n.pt-6 {\n padding-top: 3rem !important;\n}\n\n.pt-7 {\n padding-top: 4rem !important;\n}\n\n.pt-8 {\n padding-top: 5rem !important;\n}\n\n.pr-0 {\n padding-right: 0rem !important;\n}\n\n.pr-1 {\n padding-right: 0.25rem !important;\n}\n\n.pr-2 {\n padding-right: 0.5rem !important;\n}\n\n.pr-3 {\n padding-right: 1rem !important;\n}\n\n.pr-4 {\n padding-right: 1.5rem !important;\n}\n\n.pr-5 {\n padding-right: 2rem !important;\n}\n\n.pr-6 {\n padding-right: 3rem !important;\n}\n\n.pr-7 {\n padding-right: 4rem !important;\n}\n\n.pr-8 {\n padding-right: 5rem !important;\n}\n\n.pl-0 {\n padding-left: 0rem !important;\n}\n\n.pl-1 {\n padding-left: 0.25rem !important;\n}\n\n.pl-2 {\n padding-left: 0.5rem !important;\n}\n\n.pl-3 {\n padding-left: 1rem !important;\n}\n\n.pl-4 {\n padding-left: 1.5rem !important;\n}\n\n.pl-5 {\n padding-left: 2rem !important;\n}\n\n.pl-6 {\n padding-left: 3rem !important;\n}\n\n.pl-7 {\n padding-left: 4rem !important;\n}\n\n.pl-8 {\n padding-left: 5rem !important;\n}\n\n.pb-0 {\n padding-bottom: 0rem !important;\n}\n\n.pb-1 {\n padding-bottom: 0.25rem !important;\n}\n\n.pb-2 {\n padding-bottom: 0.5rem !important;\n}\n\n.pb-3 {\n padding-bottom: 1rem !important;\n}\n\n.pb-4 {\n padding-bottom: 1.5rem !important;\n}\n\n.pb-5 {\n padding-bottom: 2rem !important;\n}\n\n.pb-6 {\n padding-bottom: 3rem !important;\n}\n\n.pb-7 {\n padding-bottom: 4rem !important;\n}\n\n.pb-8 {\n padding-bottom: 5rem !important;\n}\n\n.px-0 {\n padding-left: 0rem !important;\n padding-right: 0rem !important;\n}\n\n.px-1 {\n padding-left: 0.25rem !important;\n padding-right: 0.25rem !important;\n}\n\n.px-2 {\n padding-left: 0.5rem !important;\n padding-right: 0.5rem !important;\n}\n\n.px-3 {\n padding-left: 1rem !important;\n padding-right: 1rem !important;\n}\n\n.px-4 {\n padding-left: 1.5rem !important;\n padding-right: 1.5rem !important;\n}\n\n.px-5 {\n padding-left: 2rem !important;\n padding-right: 2rem !important;\n}\n\n.px-6 {\n padding-left: 3rem !important;\n padding-right: 3rem !important;\n}\n\n.px-7 {\n padding-left: 4rem !important;\n padding-right: 4rem !important;\n}\n\n.px-8 {\n padding-left: 5rem !important;\n padding-right: 5rem !important;\n}\n\n.py-0 {\n padding-top: 0rem !important;\n padding-bottom: 0rem !important;\n}\n\n.py-1 {\n padding-top: 0.25rem !important;\n padding-bottom: 0.25rem !important;\n}\n\n.py-2 {\n padding-top: 0.5rem !important;\n padding-bottom: 0.5rem !important;\n}\n\n.py-3 {\n padding-top: 1rem !important;\n padding-bottom: 1rem !important;\n}\n\n.py-4 {\n padding-top: 1.5rem !important;\n padding-bottom: 1.5rem !important;\n}\n\n.py-5 {\n padding-top: 2rem !important;\n padding-bottom: 2rem !important;\n}\n\n.py-6 {\n padding-top: 3rem !important;\n padding-bottom: 3rem !important;\n}\n\n.py-7 {\n padding-top: 4rem !important;\n padding-bottom: 4rem !important;\n}\n\n.py-8 {\n padding-top: 5rem !important;\n padding-bottom: 5rem !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:p-0 {\n padding: 0rem !important;\n }\n\n .sm\\:p-1 {\n padding: 0.25rem !important;\n }\n\n .sm\\:p-2 {\n padding: 0.5rem !important;\n }\n\n .sm\\:p-3 {\n padding: 1rem !important;\n }\n\n .sm\\:p-4 {\n padding: 1.5rem !important;\n }\n\n .sm\\:p-5 {\n padding: 2rem !important;\n }\n\n .sm\\:p-6 {\n padding: 3rem !important;\n }\n\n .sm\\:p-7 {\n padding: 4rem !important;\n }\n\n .sm\\:p-8 {\n padding: 5rem !important;\n }\n\n .sm\\:pt-0 {\n padding-top: 0rem !important;\n }\n\n .sm\\:pt-1 {\n padding-top: 0.25rem !important;\n }\n\n .sm\\:pt-2 {\n padding-top: 0.5rem !important;\n }\n\n .sm\\:pt-3 {\n padding-top: 1rem !important;\n }\n\n .sm\\:pt-4 {\n padding-top: 1.5rem !important;\n }\n\n .sm\\:pt-5 {\n padding-top: 2rem !important;\n }\n\n .sm\\:pt-6 {\n padding-top: 3rem !important;\n }\n\n .sm\\:pt-7 {\n padding-top: 4rem !important;\n }\n\n .sm\\:pt-8 {\n padding-top: 5rem !important;\n }\n\n .sm\\:pr-0 {\n padding-right: 0rem !important;\n }\n\n .sm\\:pr-1 {\n padding-right: 0.25rem !important;\n }\n\n .sm\\:pr-2 {\n padding-right: 0.5rem !important;\n }\n\n .sm\\:pr-3 {\n padding-right: 1rem !important;\n }\n\n .sm\\:pr-4 {\n padding-right: 1.5rem !important;\n }\n\n .sm\\:pr-5 {\n padding-right: 2rem !important;\n }\n\n .sm\\:pr-6 {\n padding-right: 3rem !important;\n }\n\n .sm\\:pr-7 {\n padding-right: 4rem !important;\n }\n\n .sm\\:pr-8 {\n padding-right: 5rem !important;\n }\n\n .sm\\:pl-0 {\n padding-left: 0rem !important;\n }\n\n .sm\\:pl-1 {\n padding-left: 0.25rem !important;\n }\n\n .sm\\:pl-2 {\n padding-left: 0.5rem !important;\n }\n\n .sm\\:pl-3 {\n padding-left: 1rem !important;\n }\n\n .sm\\:pl-4 {\n padding-left: 1.5rem !important;\n }\n\n .sm\\:pl-5 {\n padding-left: 2rem !important;\n }\n\n .sm\\:pl-6 {\n padding-left: 3rem !important;\n }\n\n .sm\\:pl-7 {\n padding-left: 4rem !important;\n }\n\n .sm\\:pl-8 {\n padding-left: 5rem !important;\n }\n\n .sm\\:pb-0 {\n padding-bottom: 0rem !important;\n }\n\n .sm\\:pb-1 {\n padding-bottom: 0.25rem !important;\n }\n\n .sm\\:pb-2 {\n padding-bottom: 0.5rem !important;\n }\n\n .sm\\:pb-3 {\n padding-bottom: 1rem !important;\n }\n\n .sm\\:pb-4 {\n padding-bottom: 1.5rem !important;\n }\n\n .sm\\:pb-5 {\n padding-bottom: 2rem !important;\n }\n\n .sm\\:pb-6 {\n padding-bottom: 3rem !important;\n }\n\n .sm\\:pb-7 {\n padding-bottom: 4rem !important;\n }\n\n .sm\\:pb-8 {\n padding-bottom: 5rem !important;\n }\n\n .sm\\:px-0 {\n padding-left: 0rem !important;\n padding-right: 0rem !important;\n }\n\n .sm\\:px-1 {\n padding-left: 0.25rem !important;\n padding-right: 0.25rem !important;\n }\n\n .sm\\:px-2 {\n padding-left: 0.5rem !important;\n padding-right: 0.5rem !important;\n }\n\n .sm\\:px-3 {\n padding-left: 1rem !important;\n padding-right: 1rem !important;\n }\n\n .sm\\:px-4 {\n padding-left: 1.5rem !important;\n padding-right: 1.5rem !important;\n }\n\n .sm\\:px-5 {\n padding-left: 2rem !important;\n padding-right: 2rem !important;\n }\n\n .sm\\:px-6 {\n padding-left: 3rem !important;\n padding-right: 3rem !important;\n }\n\n .sm\\:px-7 {\n padding-left: 4rem !important;\n padding-right: 4rem !important;\n }\n\n .sm\\:px-8 {\n padding-left: 5rem !important;\n padding-right: 5rem !important;\n }\n\n .sm\\:py-0 {\n padding-top: 0rem !important;\n padding-bottom: 0rem !important;\n }\n\n .sm\\:py-1 {\n padding-top: 0.25rem !important;\n padding-bottom: 0.25rem !important;\n }\n\n .sm\\:py-2 {\n padding-top: 0.5rem !important;\n padding-bottom: 0.5rem !important;\n }\n\n .sm\\:py-3 {\n padding-top: 1rem !important;\n padding-bottom: 1rem !important;\n }\n\n .sm\\:py-4 {\n padding-top: 1.5rem !important;\n padding-bottom: 1.5rem !important;\n }\n\n .sm\\:py-5 {\n padding-top: 2rem !important;\n padding-bottom: 2rem !important;\n }\n\n .sm\\:py-6 {\n padding-top: 3rem !important;\n padding-bottom: 3rem !important;\n }\n\n .sm\\:py-7 {\n padding-top: 4rem !important;\n padding-bottom: 4rem !important;\n }\n\n .sm\\:py-8 {\n padding-top: 5rem !important;\n padding-bottom: 5rem !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:p-0 {\n padding: 0rem !important;\n }\n\n .md\\:p-1 {\n padding: 0.25rem !important;\n }\n\n .md\\:p-2 {\n padding: 0.5rem !important;\n }\n\n .md\\:p-3 {\n padding: 1rem !important;\n }\n\n .md\\:p-4 {\n padding: 1.5rem !important;\n }\n\n .md\\:p-5 {\n padding: 2rem !important;\n }\n\n .md\\:p-6 {\n padding: 3rem !important;\n }\n\n .md\\:p-7 {\n padding: 4rem !important;\n }\n\n .md\\:p-8 {\n padding: 5rem !important;\n }\n\n .md\\:pt-0 {\n padding-top: 0rem !important;\n }\n\n .md\\:pt-1 {\n padding-top: 0.25rem !important;\n }\n\n .md\\:pt-2 {\n padding-top: 0.5rem !important;\n }\n\n .md\\:pt-3 {\n padding-top: 1rem !important;\n }\n\n .md\\:pt-4 {\n padding-top: 1.5rem !important;\n }\n\n .md\\:pt-5 {\n padding-top: 2rem !important;\n }\n\n .md\\:pt-6 {\n padding-top: 3rem !important;\n }\n\n .md\\:pt-7 {\n padding-top: 4rem !important;\n }\n\n .md\\:pt-8 {\n padding-top: 5rem !important;\n }\n\n .md\\:pr-0 {\n padding-right: 0rem !important;\n }\n\n .md\\:pr-1 {\n padding-right: 0.25rem !important;\n }\n\n .md\\:pr-2 {\n padding-right: 0.5rem !important;\n }\n\n .md\\:pr-3 {\n padding-right: 1rem !important;\n }\n\n .md\\:pr-4 {\n padding-right: 1.5rem !important;\n }\n\n .md\\:pr-5 {\n padding-right: 2rem !important;\n }\n\n .md\\:pr-6 {\n padding-right: 3rem !important;\n }\n\n .md\\:pr-7 {\n padding-right: 4rem !important;\n }\n\n .md\\:pr-8 {\n padding-right: 5rem !important;\n }\n\n .md\\:pl-0 {\n padding-left: 0rem !important;\n }\n\n .md\\:pl-1 {\n padding-left: 0.25rem !important;\n }\n\n .md\\:pl-2 {\n padding-left: 0.5rem !important;\n }\n\n .md\\:pl-3 {\n padding-left: 1rem !important;\n }\n\n .md\\:pl-4 {\n padding-left: 1.5rem !important;\n }\n\n .md\\:pl-5 {\n padding-left: 2rem !important;\n }\n\n .md\\:pl-6 {\n padding-left: 3rem !important;\n }\n\n .md\\:pl-7 {\n padding-left: 4rem !important;\n }\n\n .md\\:pl-8 {\n padding-left: 5rem !important;\n }\n\n .md\\:pb-0 {\n padding-bottom: 0rem !important;\n }\n\n .md\\:pb-1 {\n padding-bottom: 0.25rem !important;\n }\n\n .md\\:pb-2 {\n padding-bottom: 0.5rem !important;\n }\n\n .md\\:pb-3 {\n padding-bottom: 1rem !important;\n }\n\n .md\\:pb-4 {\n padding-bottom: 1.5rem !important;\n }\n\n .md\\:pb-5 {\n padding-bottom: 2rem !important;\n }\n\n .md\\:pb-6 {\n padding-bottom: 3rem !important;\n }\n\n .md\\:pb-7 {\n padding-bottom: 4rem !important;\n }\n\n .md\\:pb-8 {\n padding-bottom: 5rem !important;\n }\n\n .md\\:px-0 {\n padding-left: 0rem !important;\n padding-right: 0rem !important;\n }\n\n .md\\:px-1 {\n padding-left: 0.25rem !important;\n padding-right: 0.25rem !important;\n }\n\n .md\\:px-2 {\n padding-left: 0.5rem !important;\n padding-right: 0.5rem !important;\n }\n\n .md\\:px-3 {\n padding-left: 1rem !important;\n padding-right: 1rem !important;\n }\n\n .md\\:px-4 {\n padding-left: 1.5rem !important;\n padding-right: 1.5rem !important;\n }\n\n .md\\:px-5 {\n padding-left: 2rem !important;\n padding-right: 2rem !important;\n }\n\n .md\\:px-6 {\n padding-left: 3rem !important;\n padding-right: 3rem !important;\n }\n\n .md\\:px-7 {\n padding-left: 4rem !important;\n padding-right: 4rem !important;\n }\n\n .md\\:px-8 {\n padding-left: 5rem !important;\n padding-right: 5rem !important;\n }\n\n .md\\:py-0 {\n padding-top: 0rem !important;\n padding-bottom: 0rem !important;\n }\n\n .md\\:py-1 {\n padding-top: 0.25rem !important;\n padding-bottom: 0.25rem !important;\n }\n\n .md\\:py-2 {\n padding-top: 0.5rem !important;\n padding-bottom: 0.5rem !important;\n }\n\n .md\\:py-3 {\n padding-top: 1rem !important;\n padding-bottom: 1rem !important;\n }\n\n .md\\:py-4 {\n padding-top: 1.5rem !important;\n padding-bottom: 1.5rem !important;\n }\n\n .md\\:py-5 {\n padding-top: 2rem !important;\n padding-bottom: 2rem !important;\n }\n\n .md\\:py-6 {\n padding-top: 3rem !important;\n padding-bottom: 3rem !important;\n }\n\n .md\\:py-7 {\n padding-top: 4rem !important;\n padding-bottom: 4rem !important;\n }\n\n .md\\:py-8 {\n padding-top: 5rem !important;\n padding-bottom: 5rem !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:p-0 {\n padding: 0rem !important;\n }\n\n .lg\\:p-1 {\n padding: 0.25rem !important;\n }\n\n .lg\\:p-2 {\n padding: 0.5rem !important;\n }\n\n .lg\\:p-3 {\n padding: 1rem !important;\n }\n\n .lg\\:p-4 {\n padding: 1.5rem !important;\n }\n\n .lg\\:p-5 {\n padding: 2rem !important;\n }\n\n .lg\\:p-6 {\n padding: 3rem !important;\n }\n\n .lg\\:p-7 {\n padding: 4rem !important;\n }\n\n .lg\\:p-8 {\n padding: 5rem !important;\n }\n\n .lg\\:pt-0 {\n padding-top: 0rem !important;\n }\n\n .lg\\:pt-1 {\n padding-top: 0.25rem !important;\n }\n\n .lg\\:pt-2 {\n padding-top: 0.5rem !important;\n }\n\n .lg\\:pt-3 {\n padding-top: 1rem !important;\n }\n\n .lg\\:pt-4 {\n padding-top: 1.5rem !important;\n }\n\n .lg\\:pt-5 {\n padding-top: 2rem !important;\n }\n\n .lg\\:pt-6 {\n padding-top: 3rem !important;\n }\n\n .lg\\:pt-7 {\n padding-top: 4rem !important;\n }\n\n .lg\\:pt-8 {\n padding-top: 5rem !important;\n }\n\n .lg\\:pr-0 {\n padding-right: 0rem !important;\n }\n\n .lg\\:pr-1 {\n padding-right: 0.25rem !important;\n }\n\n .lg\\:pr-2 {\n padding-right: 0.5rem !important;\n }\n\n .lg\\:pr-3 {\n padding-right: 1rem !important;\n }\n\n .lg\\:pr-4 {\n padding-right: 1.5rem !important;\n }\n\n .lg\\:pr-5 {\n padding-right: 2rem !important;\n }\n\n .lg\\:pr-6 {\n padding-right: 3rem !important;\n }\n\n .lg\\:pr-7 {\n padding-right: 4rem !important;\n }\n\n .lg\\:pr-8 {\n padding-right: 5rem !important;\n }\n\n .lg\\:pl-0 {\n padding-left: 0rem !important;\n }\n\n .lg\\:pl-1 {\n padding-left: 0.25rem !important;\n }\n\n .lg\\:pl-2 {\n padding-left: 0.5rem !important;\n }\n\n .lg\\:pl-3 {\n padding-left: 1rem !important;\n }\n\n .lg\\:pl-4 {\n padding-left: 1.5rem !important;\n }\n\n .lg\\:pl-5 {\n padding-left: 2rem !important;\n }\n\n .lg\\:pl-6 {\n padding-left: 3rem !important;\n }\n\n .lg\\:pl-7 {\n padding-left: 4rem !important;\n }\n\n .lg\\:pl-8 {\n padding-left: 5rem !important;\n }\n\n .lg\\:pb-0 {\n padding-bottom: 0rem !important;\n }\n\n .lg\\:pb-1 {\n padding-bottom: 0.25rem !important;\n }\n\n .lg\\:pb-2 {\n padding-bottom: 0.5rem !important;\n }\n\n .lg\\:pb-3 {\n padding-bottom: 1rem !important;\n }\n\n .lg\\:pb-4 {\n padding-bottom: 1.5rem !important;\n }\n\n .lg\\:pb-5 {\n padding-bottom: 2rem !important;\n }\n\n .lg\\:pb-6 {\n padding-bottom: 3rem !important;\n }\n\n .lg\\:pb-7 {\n padding-bottom: 4rem !important;\n }\n\n .lg\\:pb-8 {\n padding-bottom: 5rem !important;\n }\n\n .lg\\:px-0 {\n padding-left: 0rem !important;\n padding-right: 0rem !important;\n }\n\n .lg\\:px-1 {\n padding-left: 0.25rem !important;\n padding-right: 0.25rem !important;\n }\n\n .lg\\:px-2 {\n padding-left: 0.5rem !important;\n padding-right: 0.5rem !important;\n }\n\n .lg\\:px-3 {\n padding-left: 1rem !important;\n padding-right: 1rem !important;\n }\n\n .lg\\:px-4 {\n padding-left: 1.5rem !important;\n padding-right: 1.5rem !important;\n }\n\n .lg\\:px-5 {\n padding-left: 2rem !important;\n padding-right: 2rem !important;\n }\n\n .lg\\:px-6 {\n padding-left: 3rem !important;\n padding-right: 3rem !important;\n }\n\n .lg\\:px-7 {\n padding-left: 4rem !important;\n padding-right: 4rem !important;\n }\n\n .lg\\:px-8 {\n padding-left: 5rem !important;\n padding-right: 5rem !important;\n }\n\n .lg\\:py-0 {\n padding-top: 0rem !important;\n padding-bottom: 0rem !important;\n }\n\n .lg\\:py-1 {\n padding-top: 0.25rem !important;\n padding-bottom: 0.25rem !important;\n }\n\n .lg\\:py-2 {\n padding-top: 0.5rem !important;\n padding-bottom: 0.5rem !important;\n }\n\n .lg\\:py-3 {\n padding-top: 1rem !important;\n padding-bottom: 1rem !important;\n }\n\n .lg\\:py-4 {\n padding-top: 1.5rem !important;\n padding-bottom: 1.5rem !important;\n }\n\n .lg\\:py-5 {\n padding-top: 2rem !important;\n padding-bottom: 2rem !important;\n }\n\n .lg\\:py-6 {\n padding-top: 3rem !important;\n padding-bottom: 3rem !important;\n }\n\n .lg\\:py-7 {\n padding-top: 4rem !important;\n padding-bottom: 4rem !important;\n }\n\n .lg\\:py-8 {\n padding-top: 5rem !important;\n padding-bottom: 5rem !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:p-0 {\n padding: 0rem !important;\n }\n\n .xl\\:p-1 {\n padding: 0.25rem !important;\n }\n\n .xl\\:p-2 {\n padding: 0.5rem !important;\n }\n\n .xl\\:p-3 {\n padding: 1rem !important;\n }\n\n .xl\\:p-4 {\n padding: 1.5rem !important;\n }\n\n .xl\\:p-5 {\n padding: 2rem !important;\n }\n\n .xl\\:p-6 {\n padding: 3rem !important;\n }\n\n .xl\\:p-7 {\n padding: 4rem !important;\n }\n\n .xl\\:p-8 {\n padding: 5rem !important;\n }\n\n .xl\\:pt-0 {\n padding-top: 0rem !important;\n }\n\n .xl\\:pt-1 {\n padding-top: 0.25rem !important;\n }\n\n .xl\\:pt-2 {\n padding-top: 0.5rem !important;\n }\n\n .xl\\:pt-3 {\n padding-top: 1rem !important;\n }\n\n .xl\\:pt-4 {\n padding-top: 1.5rem !important;\n }\n\n .xl\\:pt-5 {\n padding-top: 2rem !important;\n }\n\n .xl\\:pt-6 {\n padding-top: 3rem !important;\n }\n\n .xl\\:pt-7 {\n padding-top: 4rem !important;\n }\n\n .xl\\:pt-8 {\n padding-top: 5rem !important;\n }\n\n .xl\\:pr-0 {\n padding-right: 0rem !important;\n }\n\n .xl\\:pr-1 {\n padding-right: 0.25rem !important;\n }\n\n .xl\\:pr-2 {\n padding-right: 0.5rem !important;\n }\n\n .xl\\:pr-3 {\n padding-right: 1rem !important;\n }\n\n .xl\\:pr-4 {\n padding-right: 1.5rem !important;\n }\n\n .xl\\:pr-5 {\n padding-right: 2rem !important;\n }\n\n .xl\\:pr-6 {\n padding-right: 3rem !important;\n }\n\n .xl\\:pr-7 {\n padding-right: 4rem !important;\n }\n\n .xl\\:pr-8 {\n padding-right: 5rem !important;\n }\n\n .xl\\:pl-0 {\n padding-left: 0rem !important;\n }\n\n .xl\\:pl-1 {\n padding-left: 0.25rem !important;\n }\n\n .xl\\:pl-2 {\n padding-left: 0.5rem !important;\n }\n\n .xl\\:pl-3 {\n padding-left: 1rem !important;\n }\n\n .xl\\:pl-4 {\n padding-left: 1.5rem !important;\n }\n\n .xl\\:pl-5 {\n padding-left: 2rem !important;\n }\n\n .xl\\:pl-6 {\n padding-left: 3rem !important;\n }\n\n .xl\\:pl-7 {\n padding-left: 4rem !important;\n }\n\n .xl\\:pl-8 {\n padding-left: 5rem !important;\n }\n\n .xl\\:pb-0 {\n padding-bottom: 0rem !important;\n }\n\n .xl\\:pb-1 {\n padding-bottom: 0.25rem !important;\n }\n\n .xl\\:pb-2 {\n padding-bottom: 0.5rem !important;\n }\n\n .xl\\:pb-3 {\n padding-bottom: 1rem !important;\n }\n\n .xl\\:pb-4 {\n padding-bottom: 1.5rem !important;\n }\n\n .xl\\:pb-5 {\n padding-bottom: 2rem !important;\n }\n\n .xl\\:pb-6 {\n padding-bottom: 3rem !important;\n }\n\n .xl\\:pb-7 {\n padding-bottom: 4rem !important;\n }\n\n .xl\\:pb-8 {\n padding-bottom: 5rem !important;\n }\n\n .xl\\:px-0 {\n padding-left: 0rem !important;\n padding-right: 0rem !important;\n }\n\n .xl\\:px-1 {\n padding-left: 0.25rem !important;\n padding-right: 0.25rem !important;\n }\n\n .xl\\:px-2 {\n padding-left: 0.5rem !important;\n padding-right: 0.5rem !important;\n }\n\n .xl\\:px-3 {\n padding-left: 1rem !important;\n padding-right: 1rem !important;\n }\n\n .xl\\:px-4 {\n padding-left: 1.5rem !important;\n padding-right: 1.5rem !important;\n }\n\n .xl\\:px-5 {\n padding-left: 2rem !important;\n padding-right: 2rem !important;\n }\n\n .xl\\:px-6 {\n padding-left: 3rem !important;\n padding-right: 3rem !important;\n }\n\n .xl\\:px-7 {\n padding-left: 4rem !important;\n padding-right: 4rem !important;\n }\n\n .xl\\:px-8 {\n padding-left: 5rem !important;\n padding-right: 5rem !important;\n }\n\n .xl\\:py-0 {\n padding-top: 0rem !important;\n padding-bottom: 0rem !important;\n }\n\n .xl\\:py-1 {\n padding-top: 0.25rem !important;\n padding-bottom: 0.25rem !important;\n }\n\n .xl\\:py-2 {\n padding-top: 0.5rem !important;\n padding-bottom: 0.5rem !important;\n }\n\n .xl\\:py-3 {\n padding-top: 1rem !important;\n padding-bottom: 1rem !important;\n }\n\n .xl\\:py-4 {\n padding-top: 1.5rem !important;\n padding-bottom: 1.5rem !important;\n }\n\n .xl\\:py-5 {\n padding-top: 2rem !important;\n padding-bottom: 2rem !important;\n }\n\n .xl\\:py-6 {\n padding-top: 3rem !important;\n padding-bottom: 3rem !important;\n }\n\n .xl\\:py-7 {\n padding-top: 4rem !important;\n padding-bottom: 4rem !important;\n }\n\n .xl\\:py-8 {\n padding-top: 5rem !important;\n padding-bottom: 5rem !important;\n }\n}\n.m-0 {\n margin: 0rem !important;\n}\n\n.m-1 {\n margin: 0.25rem !important;\n}\n\n.m-2 {\n margin: 0.5rem !important;\n}\n\n.m-3 {\n margin: 1rem !important;\n}\n\n.m-4 {\n margin: 1.5rem !important;\n}\n\n.m-5 {\n margin: 2rem !important;\n}\n\n.m-6 {\n margin: 3rem !important;\n}\n\n.m-7 {\n margin: 4rem !important;\n}\n\n.m-8 {\n margin: 5rem !important;\n}\n\n.-m-1 {\n margin: -0.25rem !important;\n}\n\n.-m-2 {\n margin: -0.5rem !important;\n}\n\n.-m-3 {\n margin: -1rem !important;\n}\n\n.-m-4 {\n margin: -1.5rem !important;\n}\n\n.-m-5 {\n margin: -2rem !important;\n}\n\n.-m-6 {\n margin: -3rem !important;\n}\n\n.-m-7 {\n margin: -4rem !important;\n}\n\n.-m-8 {\n margin: -5rem !important;\n}\n\n.m-auto {\n margin: auto !important;\n}\n\n.mt-0 {\n margin-top: 0rem !important;\n}\n\n.mt-1 {\n margin-top: 0.25rem !important;\n}\n\n.mt-2 {\n margin-top: 0.5rem !important;\n}\n\n.mt-3 {\n margin-top: 1rem !important;\n}\n\n.mt-4 {\n margin-top: 1.5rem !important;\n}\n\n.mt-5 {\n margin-top: 2rem !important;\n}\n\n.mt-6 {\n margin-top: 3rem !important;\n}\n\n.mt-7 {\n margin-top: 4rem !important;\n}\n\n.mt-8 {\n margin-top: 5rem !important;\n}\n\n.-mt-1 {\n margin-top: -0.25rem !important;\n}\n\n.-mt-2 {\n margin-top: -0.5rem !important;\n}\n\n.-mt-3 {\n margin-top: -1rem !important;\n}\n\n.-mt-4 {\n margin-top: -1.5rem !important;\n}\n\n.-mt-5 {\n margin-top: -2rem !important;\n}\n\n.-mt-6 {\n margin-top: -3rem !important;\n}\n\n.-mt-7 {\n margin-top: -4rem !important;\n}\n\n.-mt-8 {\n margin-top: -5rem !important;\n}\n\n.mt-auto {\n margin-top: auto !important;\n}\n\n.mr-0 {\n margin-right: 0rem !important;\n}\n\n.mr-1 {\n margin-right: 0.25rem !important;\n}\n\n.mr-2 {\n margin-right: 0.5rem !important;\n}\n\n.mr-3 {\n margin-right: 1rem !important;\n}\n\n.mr-4 {\n margin-right: 1.5rem !important;\n}\n\n.mr-5 {\n margin-right: 2rem !important;\n}\n\n.mr-6 {\n margin-right: 3rem !important;\n}\n\n.mr-7 {\n margin-right: 4rem !important;\n}\n\n.mr-8 {\n margin-right: 5rem !important;\n}\n\n.-mr-1 {\n margin-right: -0.25rem !important;\n}\n\n.-mr-2 {\n margin-right: -0.5rem !important;\n}\n\n.-mr-3 {\n margin-right: -1rem !important;\n}\n\n.-mr-4 {\n margin-right: -1.5rem !important;\n}\n\n.-mr-5 {\n margin-right: -2rem !important;\n}\n\n.-mr-6 {\n margin-right: -3rem !important;\n}\n\n.-mr-7 {\n margin-right: -4rem !important;\n}\n\n.-mr-8 {\n margin-right: -5rem !important;\n}\n\n.mr-auto {\n margin-right: auto !important;\n}\n\n.ml-0 {\n margin-left: 0rem !important;\n}\n\n.ml-1 {\n margin-left: 0.25rem !important;\n}\n\n.ml-2 {\n margin-left: 0.5rem !important;\n}\n\n.ml-3 {\n margin-left: 1rem !important;\n}\n\n.ml-4 {\n margin-left: 1.5rem !important;\n}\n\n.ml-5 {\n margin-left: 2rem !important;\n}\n\n.ml-6 {\n margin-left: 3rem !important;\n}\n\n.ml-7 {\n margin-left: 4rem !important;\n}\n\n.ml-8 {\n margin-left: 5rem !important;\n}\n\n.-ml-1 {\n margin-left: -0.25rem !important;\n}\n\n.-ml-2 {\n margin-left: -0.5rem !important;\n}\n\n.-ml-3 {\n margin-left: -1rem !important;\n}\n\n.-ml-4 {\n margin-left: -1.5rem !important;\n}\n\n.-ml-5 {\n margin-left: -2rem !important;\n}\n\n.-ml-6 {\n margin-left: -3rem !important;\n}\n\n.-ml-7 {\n margin-left: -4rem !important;\n}\n\n.-ml-8 {\n margin-left: -5rem !important;\n}\n\n.ml-auto {\n margin-left: auto !important;\n}\n\n.mb-0 {\n margin-bottom: 0rem !important;\n}\n\n.mb-1 {\n margin-bottom: 0.25rem !important;\n}\n\n.mb-2 {\n margin-bottom: 0.5rem !important;\n}\n\n.mb-3 {\n margin-bottom: 1rem !important;\n}\n\n.mb-4 {\n margin-bottom: 1.5rem !important;\n}\n\n.mb-5 {\n margin-bottom: 2rem !important;\n}\n\n.mb-6 {\n margin-bottom: 3rem !important;\n}\n\n.mb-7 {\n margin-bottom: 4rem !important;\n}\n\n.mb-8 {\n margin-bottom: 5rem !important;\n}\n\n.-mb-1 {\n margin-bottom: -0.25rem !important;\n}\n\n.-mb-2 {\n margin-bottom: -0.5rem !important;\n}\n\n.-mb-3 {\n margin-bottom: -1rem !important;\n}\n\n.-mb-4 {\n margin-bottom: -1.5rem !important;\n}\n\n.-mb-5 {\n margin-bottom: -2rem !important;\n}\n\n.-mb-6 {\n margin-bottom: -3rem !important;\n}\n\n.-mb-7 {\n margin-bottom: -4rem !important;\n}\n\n.-mb-8 {\n margin-bottom: -5rem !important;\n}\n\n.mb-auto {\n margin-bottom: auto !important;\n}\n\n.mx-0 {\n margin-left: 0rem !important;\n margin-right: 0rem !important;\n}\n\n.mx-1 {\n margin-left: 0.25rem !important;\n margin-right: 0.25rem !important;\n}\n\n.mx-2 {\n margin-left: 0.5rem !important;\n margin-right: 0.5rem !important;\n}\n\n.mx-3 {\n margin-left: 1rem !important;\n margin-right: 1rem !important;\n}\n\n.mx-4 {\n margin-left: 1.5rem !important;\n margin-right: 1.5rem !important;\n}\n\n.mx-5 {\n margin-left: 2rem !important;\n margin-right: 2rem !important;\n}\n\n.mx-6 {\n margin-left: 3rem !important;\n margin-right: 3rem !important;\n}\n\n.mx-7 {\n margin-left: 4rem !important;\n margin-right: 4rem !important;\n}\n\n.mx-8 {\n margin-left: 5rem !important;\n margin-right: 5rem !important;\n}\n\n.-mx-1 {\n margin-left: -0.25rem !important;\n margin-right: -0.25rem !important;\n}\n\n.-mx-2 {\n margin-left: -0.5rem !important;\n margin-right: -0.5rem !important;\n}\n\n.-mx-3 {\n margin-left: -1rem !important;\n margin-right: -1rem !important;\n}\n\n.-mx-4 {\n margin-left: -1.5rem !important;\n margin-right: -1.5rem !important;\n}\n\n.-mx-5 {\n margin-left: -2rem !important;\n margin-right: -2rem !important;\n}\n\n.-mx-6 {\n margin-left: -3rem !important;\n margin-right: -3rem !important;\n}\n\n.-mx-7 {\n margin-left: -4rem !important;\n margin-right: -4rem !important;\n}\n\n.-mx-8 {\n margin-left: -5rem !important;\n margin-right: -5rem !important;\n}\n\n.mx-auto {\n margin-left: auto !important;\n margin-right: auto !important;\n}\n\n.my-0 {\n margin-top: 0rem !important;\n margin-bottom: 0rem !important;\n}\n\n.my-1 {\n margin-top: 0.25rem !important;\n margin-bottom: 0.25rem !important;\n}\n\n.my-2 {\n margin-top: 0.5rem !important;\n margin-bottom: 0.5rem !important;\n}\n\n.my-3 {\n margin-top: 1rem !important;\n margin-bottom: 1rem !important;\n}\n\n.my-4 {\n margin-top: 1.5rem !important;\n margin-bottom: 1.5rem !important;\n}\n\n.my-5 {\n margin-top: 2rem !important;\n margin-bottom: 2rem !important;\n}\n\n.my-6 {\n margin-top: 3rem !important;\n margin-bottom: 3rem !important;\n}\n\n.my-7 {\n margin-top: 4rem !important;\n margin-bottom: 4rem !important;\n}\n\n.my-8 {\n margin-top: 5rem !important;\n margin-bottom: 5rem !important;\n}\n\n.-my-1 {\n margin-top: -0.25rem !important;\n margin-bottom: -0.25rem !important;\n}\n\n.-my-2 {\n margin-top: -0.5rem !important;\n margin-bottom: -0.5rem !important;\n}\n\n.-my-3 {\n margin-top: -1rem !important;\n margin-bottom: -1rem !important;\n}\n\n.-my-4 {\n margin-top: -1.5rem !important;\n margin-bottom: -1.5rem !important;\n}\n\n.-my-5 {\n margin-top: -2rem !important;\n margin-bottom: -2rem !important;\n}\n\n.-my-6 {\n margin-top: -3rem !important;\n margin-bottom: -3rem !important;\n}\n\n.-my-7 {\n margin-top: -4rem !important;\n margin-bottom: -4rem !important;\n}\n\n.-my-8 {\n margin-top: -5rem !important;\n margin-bottom: -5rem !important;\n}\n\n.my-auto {\n margin-top: auto !important;\n margin-bottom: auto !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:m-0 {\n margin: 0rem !important;\n }\n\n .sm\\:m-1 {\n margin: 0.25rem !important;\n }\n\n .sm\\:m-2 {\n margin: 0.5rem !important;\n }\n\n .sm\\:m-3 {\n margin: 1rem !important;\n }\n\n .sm\\:m-4 {\n margin: 1.5rem !important;\n }\n\n .sm\\:m-5 {\n margin: 2rem !important;\n }\n\n .sm\\:m-6 {\n margin: 3rem !important;\n }\n\n .sm\\:m-7 {\n margin: 4rem !important;\n }\n\n .sm\\:m-8 {\n margin: 5rem !important;\n }\n\n .sm\\:-m-1 {\n margin: -0.25rem !important;\n }\n\n .sm\\:-m-2 {\n margin: -0.5rem !important;\n }\n\n .sm\\:-m-3 {\n margin: -1rem !important;\n }\n\n .sm\\:-m-4 {\n margin: -1.5rem !important;\n }\n\n .sm\\:-m-5 {\n margin: -2rem !important;\n }\n\n .sm\\:-m-6 {\n margin: -3rem !important;\n }\n\n .sm\\:-m-7 {\n margin: -4rem !important;\n }\n\n .sm\\:-m-8 {\n margin: -5rem !important;\n }\n\n .sm\\:m-auto {\n margin: auto !important;\n }\n\n .sm\\:mt-0 {\n margin-top: 0rem !important;\n }\n\n .sm\\:mt-1 {\n margin-top: 0.25rem !important;\n }\n\n .sm\\:mt-2 {\n margin-top: 0.5rem !important;\n }\n\n .sm\\:mt-3 {\n margin-top: 1rem !important;\n }\n\n .sm\\:mt-4 {\n margin-top: 1.5rem !important;\n }\n\n .sm\\:mt-5 {\n margin-top: 2rem !important;\n }\n\n .sm\\:mt-6 {\n margin-top: 3rem !important;\n }\n\n .sm\\:mt-7 {\n margin-top: 4rem !important;\n }\n\n .sm\\:mt-8 {\n margin-top: 5rem !important;\n }\n\n .sm\\:-mt-1 {\n margin-top: -0.25rem !important;\n }\n\n .sm\\:-mt-2 {\n margin-top: -0.5rem !important;\n }\n\n .sm\\:-mt-3 {\n margin-top: -1rem !important;\n }\n\n .sm\\:-mt-4 {\n margin-top: -1.5rem !important;\n }\n\n .sm\\:-mt-5 {\n margin-top: -2rem !important;\n }\n\n .sm\\:-mt-6 {\n margin-top: -3rem !important;\n }\n\n .sm\\:-mt-7 {\n margin-top: -4rem !important;\n }\n\n .sm\\:-mt-8 {\n margin-top: -5rem !important;\n }\n\n .sm\\:mt-auto {\n margin-top: auto !important;\n }\n\n .sm\\:mr-0 {\n margin-right: 0rem !important;\n }\n\n .sm\\:mr-1 {\n margin-right: 0.25rem !important;\n }\n\n .sm\\:mr-2 {\n margin-right: 0.5rem !important;\n }\n\n .sm\\:mr-3 {\n margin-right: 1rem !important;\n }\n\n .sm\\:mr-4 {\n margin-right: 1.5rem !important;\n }\n\n .sm\\:mr-5 {\n margin-right: 2rem !important;\n }\n\n .sm\\:mr-6 {\n margin-right: 3rem !important;\n }\n\n .sm\\:mr-7 {\n margin-right: 4rem !important;\n }\n\n .sm\\:mr-8 {\n margin-right: 5rem !important;\n }\n\n .sm\\:-mr-1 {\n margin-right: -0.25rem !important;\n }\n\n .sm\\:-mr-2 {\n margin-right: -0.5rem !important;\n }\n\n .sm\\:-mr-3 {\n margin-right: -1rem !important;\n }\n\n .sm\\:-mr-4 {\n margin-right: -1.5rem !important;\n }\n\n .sm\\:-mr-5 {\n margin-right: -2rem !important;\n }\n\n .sm\\:-mr-6 {\n margin-right: -3rem !important;\n }\n\n .sm\\:-mr-7 {\n margin-right: -4rem !important;\n }\n\n .sm\\:-mr-8 {\n margin-right: -5rem !important;\n }\n\n .sm\\:mr-auto {\n margin-right: auto !important;\n }\n\n .sm\\:ml-0 {\n margin-left: 0rem !important;\n }\n\n .sm\\:ml-1 {\n margin-left: 0.25rem !important;\n }\n\n .sm\\:ml-2 {\n margin-left: 0.5rem !important;\n }\n\n .sm\\:ml-3 {\n margin-left: 1rem !important;\n }\n\n .sm\\:ml-4 {\n margin-left: 1.5rem !important;\n }\n\n .sm\\:ml-5 {\n margin-left: 2rem !important;\n }\n\n .sm\\:ml-6 {\n margin-left: 3rem !important;\n }\n\n .sm\\:ml-7 {\n margin-left: 4rem !important;\n }\n\n .sm\\:ml-8 {\n margin-left: 5rem !important;\n }\n\n .sm\\:-ml-1 {\n margin-left: -0.25rem !important;\n }\n\n .sm\\:-ml-2 {\n margin-left: -0.5rem !important;\n }\n\n .sm\\:-ml-3 {\n margin-left: -1rem !important;\n }\n\n .sm\\:-ml-4 {\n margin-left: -1.5rem !important;\n }\n\n .sm\\:-ml-5 {\n margin-left: -2rem !important;\n }\n\n .sm\\:-ml-6 {\n margin-left: -3rem !important;\n }\n\n .sm\\:-ml-7 {\n margin-left: -4rem !important;\n }\n\n .sm\\:-ml-8 {\n margin-left: -5rem !important;\n }\n\n .sm\\:ml-auto {\n margin-left: auto !important;\n }\n\n .sm\\:mb-0 {\n margin-bottom: 0rem !important;\n }\n\n .sm\\:mb-1 {\n margin-bottom: 0.25rem !important;\n }\n\n .sm\\:mb-2 {\n margin-bottom: 0.5rem !important;\n }\n\n .sm\\:mb-3 {\n margin-bottom: 1rem !important;\n }\n\n .sm\\:mb-4 {\n margin-bottom: 1.5rem !important;\n }\n\n .sm\\:mb-5 {\n margin-bottom: 2rem !important;\n }\n\n .sm\\:mb-6 {\n margin-bottom: 3rem !important;\n }\n\n .sm\\:mb-7 {\n margin-bottom: 4rem !important;\n }\n\n .sm\\:mb-8 {\n margin-bottom: 5rem !important;\n }\n\n .sm\\:-mb-1 {\n margin-bottom: -0.25rem !important;\n }\n\n .sm\\:-mb-2 {\n margin-bottom: -0.5rem !important;\n }\n\n .sm\\:-mb-3 {\n margin-bottom: -1rem !important;\n }\n\n .sm\\:-mb-4 {\n margin-bottom: -1.5rem !important;\n }\n\n .sm\\:-mb-5 {\n margin-bottom: -2rem !important;\n }\n\n .sm\\:-mb-6 {\n margin-bottom: -3rem !important;\n }\n\n .sm\\:-mb-7 {\n margin-bottom: -4rem !important;\n }\n\n .sm\\:-mb-8 {\n margin-bottom: -5rem !important;\n }\n\n .sm\\:mb-auto {\n margin-bottom: auto !important;\n }\n\n .sm\\:mx-0 {\n margin-left: 0rem !important;\n margin-right: 0rem !important;\n }\n\n .sm\\:mx-1 {\n margin-left: 0.25rem !important;\n margin-right: 0.25rem !important;\n }\n\n .sm\\:mx-2 {\n margin-left: 0.5rem !important;\n margin-right: 0.5rem !important;\n }\n\n .sm\\:mx-3 {\n margin-left: 1rem !important;\n margin-right: 1rem !important;\n }\n\n .sm\\:mx-4 {\n margin-left: 1.5rem !important;\n margin-right: 1.5rem !important;\n }\n\n .sm\\:mx-5 {\n margin-left: 2rem !important;\n margin-right: 2rem !important;\n }\n\n .sm\\:mx-6 {\n margin-left: 3rem !important;\n margin-right: 3rem !important;\n }\n\n .sm\\:mx-7 {\n margin-left: 4rem !important;\n margin-right: 4rem !important;\n }\n\n .sm\\:mx-8 {\n margin-left: 5rem !important;\n margin-right: 5rem !important;\n }\n\n .sm\\:-mx-1 {\n margin-left: -0.25rem !important;\n margin-right: -0.25rem !important;\n }\n\n .sm\\:-mx-2 {\n margin-left: -0.5rem !important;\n margin-right: -0.5rem !important;\n }\n\n .sm\\:-mx-3 {\n margin-left: -1rem !important;\n margin-right: -1rem !important;\n }\n\n .sm\\:-mx-4 {\n margin-left: -1.5rem !important;\n margin-right: -1.5rem !important;\n }\n\n .sm\\:-mx-5 {\n margin-left: -2rem !important;\n margin-right: -2rem !important;\n }\n\n .sm\\:-mx-6 {\n margin-left: -3rem !important;\n margin-right: -3rem !important;\n }\n\n .sm\\:-mx-7 {\n margin-left: -4rem !important;\n margin-right: -4rem !important;\n }\n\n .sm\\:-mx-8 {\n margin-left: -5rem !important;\n margin-right: -5rem !important;\n }\n\n .sm\\:mx-auto {\n margin-left: auto !important;\n margin-right: auto !important;\n }\n\n .sm\\:my-0 {\n margin-top: 0rem !important;\n margin-bottom: 0rem !important;\n }\n\n .sm\\:my-1 {\n margin-top: 0.25rem !important;\n margin-bottom: 0.25rem !important;\n }\n\n .sm\\:my-2 {\n margin-top: 0.5rem !important;\n margin-bottom: 0.5rem !important;\n }\n\n .sm\\:my-3 {\n margin-top: 1rem !important;\n margin-bottom: 1rem !important;\n }\n\n .sm\\:my-4 {\n margin-top: 1.5rem !important;\n margin-bottom: 1.5rem !important;\n }\n\n .sm\\:my-5 {\n margin-top: 2rem !important;\n margin-bottom: 2rem !important;\n }\n\n .sm\\:my-6 {\n margin-top: 3rem !important;\n margin-bottom: 3rem !important;\n }\n\n .sm\\:my-7 {\n margin-top: 4rem !important;\n margin-bottom: 4rem !important;\n }\n\n .sm\\:my-8 {\n margin-top: 5rem !important;\n margin-bottom: 5rem !important;\n }\n\n .sm\\:-my-1 {\n margin-top: -0.25rem !important;\n margin-bottom: -0.25rem !important;\n }\n\n .sm\\:-my-2 {\n margin-top: -0.5rem !important;\n margin-bottom: -0.5rem !important;\n }\n\n .sm\\:-my-3 {\n margin-top: -1rem !important;\n margin-bottom: -1rem !important;\n }\n\n .sm\\:-my-4 {\n margin-top: -1.5rem !important;\n margin-bottom: -1.5rem !important;\n }\n\n .sm\\:-my-5 {\n margin-top: -2rem !important;\n margin-bottom: -2rem !important;\n }\n\n .sm\\:-my-6 {\n margin-top: -3rem !important;\n margin-bottom: -3rem !important;\n }\n\n .sm\\:-my-7 {\n margin-top: -4rem !important;\n margin-bottom: -4rem !important;\n }\n\n .sm\\:-my-8 {\n margin-top: -5rem !important;\n margin-bottom: -5rem !important;\n }\n\n .sm\\:my-auto {\n margin-top: auto !important;\n margin-bottom: auto !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:m-0 {\n margin: 0rem !important;\n }\n\n .md\\:m-1 {\n margin: 0.25rem !important;\n }\n\n .md\\:m-2 {\n margin: 0.5rem !important;\n }\n\n .md\\:m-3 {\n margin: 1rem !important;\n }\n\n .md\\:m-4 {\n margin: 1.5rem !important;\n }\n\n .md\\:m-5 {\n margin: 2rem !important;\n }\n\n .md\\:m-6 {\n margin: 3rem !important;\n }\n\n .md\\:m-7 {\n margin: 4rem !important;\n }\n\n .md\\:m-8 {\n margin: 5rem !important;\n }\n\n .md\\:-m-1 {\n margin: -0.25rem !important;\n }\n\n .md\\:-m-2 {\n margin: -0.5rem !important;\n }\n\n .md\\:-m-3 {\n margin: -1rem !important;\n }\n\n .md\\:-m-4 {\n margin: -1.5rem !important;\n }\n\n .md\\:-m-5 {\n margin: -2rem !important;\n }\n\n .md\\:-m-6 {\n margin: -3rem !important;\n }\n\n .md\\:-m-7 {\n margin: -4rem !important;\n }\n\n .md\\:-m-8 {\n margin: -5rem !important;\n }\n\n .md\\:m-auto {\n margin: auto !important;\n }\n\n .md\\:mt-0 {\n margin-top: 0rem !important;\n }\n\n .md\\:mt-1 {\n margin-top: 0.25rem !important;\n }\n\n .md\\:mt-2 {\n margin-top: 0.5rem !important;\n }\n\n .md\\:mt-3 {\n margin-top: 1rem !important;\n }\n\n .md\\:mt-4 {\n margin-top: 1.5rem !important;\n }\n\n .md\\:mt-5 {\n margin-top: 2rem !important;\n }\n\n .md\\:mt-6 {\n margin-top: 3rem !important;\n }\n\n .md\\:mt-7 {\n margin-top: 4rem !important;\n }\n\n .md\\:mt-8 {\n margin-top: 5rem !important;\n }\n\n .md\\:-mt-1 {\n margin-top: -0.25rem !important;\n }\n\n .md\\:-mt-2 {\n margin-top: -0.5rem !important;\n }\n\n .md\\:-mt-3 {\n margin-top: -1rem !important;\n }\n\n .md\\:-mt-4 {\n margin-top: -1.5rem !important;\n }\n\n .md\\:-mt-5 {\n margin-top: -2rem !important;\n }\n\n .md\\:-mt-6 {\n margin-top: -3rem !important;\n }\n\n .md\\:-mt-7 {\n margin-top: -4rem !important;\n }\n\n .md\\:-mt-8 {\n margin-top: -5rem !important;\n }\n\n .md\\:mt-auto {\n margin-top: auto !important;\n }\n\n .md\\:mr-0 {\n margin-right: 0rem !important;\n }\n\n .md\\:mr-1 {\n margin-right: 0.25rem !important;\n }\n\n .md\\:mr-2 {\n margin-right: 0.5rem !important;\n }\n\n .md\\:mr-3 {\n margin-right: 1rem !important;\n }\n\n .md\\:mr-4 {\n margin-right: 1.5rem !important;\n }\n\n .md\\:mr-5 {\n margin-right: 2rem !important;\n }\n\n .md\\:mr-6 {\n margin-right: 3rem !important;\n }\n\n .md\\:mr-7 {\n margin-right: 4rem !important;\n }\n\n .md\\:mr-8 {\n margin-right: 5rem !important;\n }\n\n .md\\:-mr-1 {\n margin-right: -0.25rem !important;\n }\n\n .md\\:-mr-2 {\n margin-right: -0.5rem !important;\n }\n\n .md\\:-mr-3 {\n margin-right: -1rem !important;\n }\n\n .md\\:-mr-4 {\n margin-right: -1.5rem !important;\n }\n\n .md\\:-mr-5 {\n margin-right: -2rem !important;\n }\n\n .md\\:-mr-6 {\n margin-right: -3rem !important;\n }\n\n .md\\:-mr-7 {\n margin-right: -4rem !important;\n }\n\n .md\\:-mr-8 {\n margin-right: -5rem !important;\n }\n\n .md\\:mr-auto {\n margin-right: auto !important;\n }\n\n .md\\:ml-0 {\n margin-left: 0rem !important;\n }\n\n .md\\:ml-1 {\n margin-left: 0.25rem !important;\n }\n\n .md\\:ml-2 {\n margin-left: 0.5rem !important;\n }\n\n .md\\:ml-3 {\n margin-left: 1rem !important;\n }\n\n .md\\:ml-4 {\n margin-left: 1.5rem !important;\n }\n\n .md\\:ml-5 {\n margin-left: 2rem !important;\n }\n\n .md\\:ml-6 {\n margin-left: 3rem !important;\n }\n\n .md\\:ml-7 {\n margin-left: 4rem !important;\n }\n\n .md\\:ml-8 {\n margin-left: 5rem !important;\n }\n\n .md\\:-ml-1 {\n margin-left: -0.25rem !important;\n }\n\n .md\\:-ml-2 {\n margin-left: -0.5rem !important;\n }\n\n .md\\:-ml-3 {\n margin-left: -1rem !important;\n }\n\n .md\\:-ml-4 {\n margin-left: -1.5rem !important;\n }\n\n .md\\:-ml-5 {\n margin-left: -2rem !important;\n }\n\n .md\\:-ml-6 {\n margin-left: -3rem !important;\n }\n\n .md\\:-ml-7 {\n margin-left: -4rem !important;\n }\n\n .md\\:-ml-8 {\n margin-left: -5rem !important;\n }\n\n .md\\:ml-auto {\n margin-left: auto !important;\n }\n\n .md\\:mb-0 {\n margin-bottom: 0rem !important;\n }\n\n .md\\:mb-1 {\n margin-bottom: 0.25rem !important;\n }\n\n .md\\:mb-2 {\n margin-bottom: 0.5rem !important;\n }\n\n .md\\:mb-3 {\n margin-bottom: 1rem !important;\n }\n\n .md\\:mb-4 {\n margin-bottom: 1.5rem !important;\n }\n\n .md\\:mb-5 {\n margin-bottom: 2rem !important;\n }\n\n .md\\:mb-6 {\n margin-bottom: 3rem !important;\n }\n\n .md\\:mb-7 {\n margin-bottom: 4rem !important;\n }\n\n .md\\:mb-8 {\n margin-bottom: 5rem !important;\n }\n\n .md\\:-mb-1 {\n margin-bottom: -0.25rem !important;\n }\n\n .md\\:-mb-2 {\n margin-bottom: -0.5rem !important;\n }\n\n .md\\:-mb-3 {\n margin-bottom: -1rem !important;\n }\n\n .md\\:-mb-4 {\n margin-bottom: -1.5rem !important;\n }\n\n .md\\:-mb-5 {\n margin-bottom: -2rem !important;\n }\n\n .md\\:-mb-6 {\n margin-bottom: -3rem !important;\n }\n\n .md\\:-mb-7 {\n margin-bottom: -4rem !important;\n }\n\n .md\\:-mb-8 {\n margin-bottom: -5rem !important;\n }\n\n .md\\:mb-auto {\n margin-bottom: auto !important;\n }\n\n .md\\:mx-0 {\n margin-left: 0rem !important;\n margin-right: 0rem !important;\n }\n\n .md\\:mx-1 {\n margin-left: 0.25rem !important;\n margin-right: 0.25rem !important;\n }\n\n .md\\:mx-2 {\n margin-left: 0.5rem !important;\n margin-right: 0.5rem !important;\n }\n\n .md\\:mx-3 {\n margin-left: 1rem !important;\n margin-right: 1rem !important;\n }\n\n .md\\:mx-4 {\n margin-left: 1.5rem !important;\n margin-right: 1.5rem !important;\n }\n\n .md\\:mx-5 {\n margin-left: 2rem !important;\n margin-right: 2rem !important;\n }\n\n .md\\:mx-6 {\n margin-left: 3rem !important;\n margin-right: 3rem !important;\n }\n\n .md\\:mx-7 {\n margin-left: 4rem !important;\n margin-right: 4rem !important;\n }\n\n .md\\:mx-8 {\n margin-left: 5rem !important;\n margin-right: 5rem !important;\n }\n\n .md\\:-mx-1 {\n margin-left: -0.25rem !important;\n margin-right: -0.25rem !important;\n }\n\n .md\\:-mx-2 {\n margin-left: -0.5rem !important;\n margin-right: -0.5rem !important;\n }\n\n .md\\:-mx-3 {\n margin-left: -1rem !important;\n margin-right: -1rem !important;\n }\n\n .md\\:-mx-4 {\n margin-left: -1.5rem !important;\n margin-right: -1.5rem !important;\n }\n\n .md\\:-mx-5 {\n margin-left: -2rem !important;\n margin-right: -2rem !important;\n }\n\n .md\\:-mx-6 {\n margin-left: -3rem !important;\n margin-right: -3rem !important;\n }\n\n .md\\:-mx-7 {\n margin-left: -4rem !important;\n margin-right: -4rem !important;\n }\n\n .md\\:-mx-8 {\n margin-left: -5rem !important;\n margin-right: -5rem !important;\n }\n\n .md\\:mx-auto {\n margin-left: auto !important;\n margin-right: auto !important;\n }\n\n .md\\:my-0 {\n margin-top: 0rem !important;\n margin-bottom: 0rem !important;\n }\n\n .md\\:my-1 {\n margin-top: 0.25rem !important;\n margin-bottom: 0.25rem !important;\n }\n\n .md\\:my-2 {\n margin-top: 0.5rem !important;\n margin-bottom: 0.5rem !important;\n }\n\n .md\\:my-3 {\n margin-top: 1rem !important;\n margin-bottom: 1rem !important;\n }\n\n .md\\:my-4 {\n margin-top: 1.5rem !important;\n margin-bottom: 1.5rem !important;\n }\n\n .md\\:my-5 {\n margin-top: 2rem !important;\n margin-bottom: 2rem !important;\n }\n\n .md\\:my-6 {\n margin-top: 3rem !important;\n margin-bottom: 3rem !important;\n }\n\n .md\\:my-7 {\n margin-top: 4rem !important;\n margin-bottom: 4rem !important;\n }\n\n .md\\:my-8 {\n margin-top: 5rem !important;\n margin-bottom: 5rem !important;\n }\n\n .md\\:-my-1 {\n margin-top: -0.25rem !important;\n margin-bottom: -0.25rem !important;\n }\n\n .md\\:-my-2 {\n margin-top: -0.5rem !important;\n margin-bottom: -0.5rem !important;\n }\n\n .md\\:-my-3 {\n margin-top: -1rem !important;\n margin-bottom: -1rem !important;\n }\n\n .md\\:-my-4 {\n margin-top: -1.5rem !important;\n margin-bottom: -1.5rem !important;\n }\n\n .md\\:-my-5 {\n margin-top: -2rem !important;\n margin-bottom: -2rem !important;\n }\n\n .md\\:-my-6 {\n margin-top: -3rem !important;\n margin-bottom: -3rem !important;\n }\n\n .md\\:-my-7 {\n margin-top: -4rem !important;\n margin-bottom: -4rem !important;\n }\n\n .md\\:-my-8 {\n margin-top: -5rem !important;\n margin-bottom: -5rem !important;\n }\n\n .md\\:my-auto {\n margin-top: auto !important;\n margin-bottom: auto !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:m-0 {\n margin: 0rem !important;\n }\n\n .lg\\:m-1 {\n margin: 0.25rem !important;\n }\n\n .lg\\:m-2 {\n margin: 0.5rem !important;\n }\n\n .lg\\:m-3 {\n margin: 1rem !important;\n }\n\n .lg\\:m-4 {\n margin: 1.5rem !important;\n }\n\n .lg\\:m-5 {\n margin: 2rem !important;\n }\n\n .lg\\:m-6 {\n margin: 3rem !important;\n }\n\n .lg\\:m-7 {\n margin: 4rem !important;\n }\n\n .lg\\:m-8 {\n margin: 5rem !important;\n }\n\n .lg\\:-m-1 {\n margin: -0.25rem !important;\n }\n\n .lg\\:-m-2 {\n margin: -0.5rem !important;\n }\n\n .lg\\:-m-3 {\n margin: -1rem !important;\n }\n\n .lg\\:-m-4 {\n margin: -1.5rem !important;\n }\n\n .lg\\:-m-5 {\n margin: -2rem !important;\n }\n\n .lg\\:-m-6 {\n margin: -3rem !important;\n }\n\n .lg\\:-m-7 {\n margin: -4rem !important;\n }\n\n .lg\\:-m-8 {\n margin: -5rem !important;\n }\n\n .lg\\:m-auto {\n margin: auto !important;\n }\n\n .lg\\:mt-0 {\n margin-top: 0rem !important;\n }\n\n .lg\\:mt-1 {\n margin-top: 0.25rem !important;\n }\n\n .lg\\:mt-2 {\n margin-top: 0.5rem !important;\n }\n\n .lg\\:mt-3 {\n margin-top: 1rem !important;\n }\n\n .lg\\:mt-4 {\n margin-top: 1.5rem !important;\n }\n\n .lg\\:mt-5 {\n margin-top: 2rem !important;\n }\n\n .lg\\:mt-6 {\n margin-top: 3rem !important;\n }\n\n .lg\\:mt-7 {\n margin-top: 4rem !important;\n }\n\n .lg\\:mt-8 {\n margin-top: 5rem !important;\n }\n\n .lg\\:-mt-1 {\n margin-top: -0.25rem !important;\n }\n\n .lg\\:-mt-2 {\n margin-top: -0.5rem !important;\n }\n\n .lg\\:-mt-3 {\n margin-top: -1rem !important;\n }\n\n .lg\\:-mt-4 {\n margin-top: -1.5rem !important;\n }\n\n .lg\\:-mt-5 {\n margin-top: -2rem !important;\n }\n\n .lg\\:-mt-6 {\n margin-top: -3rem !important;\n }\n\n .lg\\:-mt-7 {\n margin-top: -4rem !important;\n }\n\n .lg\\:-mt-8 {\n margin-top: -5rem !important;\n }\n\n .lg\\:mt-auto {\n margin-top: auto !important;\n }\n\n .lg\\:mr-0 {\n margin-right: 0rem !important;\n }\n\n .lg\\:mr-1 {\n margin-right: 0.25rem !important;\n }\n\n .lg\\:mr-2 {\n margin-right: 0.5rem !important;\n }\n\n .lg\\:mr-3 {\n margin-right: 1rem !important;\n }\n\n .lg\\:mr-4 {\n margin-right: 1.5rem !important;\n }\n\n .lg\\:mr-5 {\n margin-right: 2rem !important;\n }\n\n .lg\\:mr-6 {\n margin-right: 3rem !important;\n }\n\n .lg\\:mr-7 {\n margin-right: 4rem !important;\n }\n\n .lg\\:mr-8 {\n margin-right: 5rem !important;\n }\n\n .lg\\:-mr-1 {\n margin-right: -0.25rem !important;\n }\n\n .lg\\:-mr-2 {\n margin-right: -0.5rem !important;\n }\n\n .lg\\:-mr-3 {\n margin-right: -1rem !important;\n }\n\n .lg\\:-mr-4 {\n margin-right: -1.5rem !important;\n }\n\n .lg\\:-mr-5 {\n margin-right: -2rem !important;\n }\n\n .lg\\:-mr-6 {\n margin-right: -3rem !important;\n }\n\n .lg\\:-mr-7 {\n margin-right: -4rem !important;\n }\n\n .lg\\:-mr-8 {\n margin-right: -5rem !important;\n }\n\n .lg\\:mr-auto {\n margin-right: auto !important;\n }\n\n .lg\\:ml-0 {\n margin-left: 0rem !important;\n }\n\n .lg\\:ml-1 {\n margin-left: 0.25rem !important;\n }\n\n .lg\\:ml-2 {\n margin-left: 0.5rem !important;\n }\n\n .lg\\:ml-3 {\n margin-left: 1rem !important;\n }\n\n .lg\\:ml-4 {\n margin-left: 1.5rem !important;\n }\n\n .lg\\:ml-5 {\n margin-left: 2rem !important;\n }\n\n .lg\\:ml-6 {\n margin-left: 3rem !important;\n }\n\n .lg\\:ml-7 {\n margin-left: 4rem !important;\n }\n\n .lg\\:ml-8 {\n margin-left: 5rem !important;\n }\n\n .lg\\:-ml-1 {\n margin-left: -0.25rem !important;\n }\n\n .lg\\:-ml-2 {\n margin-left: -0.5rem !important;\n }\n\n .lg\\:-ml-3 {\n margin-left: -1rem !important;\n }\n\n .lg\\:-ml-4 {\n margin-left: -1.5rem !important;\n }\n\n .lg\\:-ml-5 {\n margin-left: -2rem !important;\n }\n\n .lg\\:-ml-6 {\n margin-left: -3rem !important;\n }\n\n .lg\\:-ml-7 {\n margin-left: -4rem !important;\n }\n\n .lg\\:-ml-8 {\n margin-left: -5rem !important;\n }\n\n .lg\\:ml-auto {\n margin-left: auto !important;\n }\n\n .lg\\:mb-0 {\n margin-bottom: 0rem !important;\n }\n\n .lg\\:mb-1 {\n margin-bottom: 0.25rem !important;\n }\n\n .lg\\:mb-2 {\n margin-bottom: 0.5rem !important;\n }\n\n .lg\\:mb-3 {\n margin-bottom: 1rem !important;\n }\n\n .lg\\:mb-4 {\n margin-bottom: 1.5rem !important;\n }\n\n .lg\\:mb-5 {\n margin-bottom: 2rem !important;\n }\n\n .lg\\:mb-6 {\n margin-bottom: 3rem !important;\n }\n\n .lg\\:mb-7 {\n margin-bottom: 4rem !important;\n }\n\n .lg\\:mb-8 {\n margin-bottom: 5rem !important;\n }\n\n .lg\\:-mb-1 {\n margin-bottom: -0.25rem !important;\n }\n\n .lg\\:-mb-2 {\n margin-bottom: -0.5rem !important;\n }\n\n .lg\\:-mb-3 {\n margin-bottom: -1rem !important;\n }\n\n .lg\\:-mb-4 {\n margin-bottom: -1.5rem !important;\n }\n\n .lg\\:-mb-5 {\n margin-bottom: -2rem !important;\n }\n\n .lg\\:-mb-6 {\n margin-bottom: -3rem !important;\n }\n\n .lg\\:-mb-7 {\n margin-bottom: -4rem !important;\n }\n\n .lg\\:-mb-8 {\n margin-bottom: -5rem !important;\n }\n\n .lg\\:mb-auto {\n margin-bottom: auto !important;\n }\n\n .lg\\:mx-0 {\n margin-left: 0rem !important;\n margin-right: 0rem !important;\n }\n\n .lg\\:mx-1 {\n margin-left: 0.25rem !important;\n margin-right: 0.25rem !important;\n }\n\n .lg\\:mx-2 {\n margin-left: 0.5rem !important;\n margin-right: 0.5rem !important;\n }\n\n .lg\\:mx-3 {\n margin-left: 1rem !important;\n margin-right: 1rem !important;\n }\n\n .lg\\:mx-4 {\n margin-left: 1.5rem !important;\n margin-right: 1.5rem !important;\n }\n\n .lg\\:mx-5 {\n margin-left: 2rem !important;\n margin-right: 2rem !important;\n }\n\n .lg\\:mx-6 {\n margin-left: 3rem !important;\n margin-right: 3rem !important;\n }\n\n .lg\\:mx-7 {\n margin-left: 4rem !important;\n margin-right: 4rem !important;\n }\n\n .lg\\:mx-8 {\n margin-left: 5rem !important;\n margin-right: 5rem !important;\n }\n\n .lg\\:-mx-1 {\n margin-left: -0.25rem !important;\n margin-right: -0.25rem !important;\n }\n\n .lg\\:-mx-2 {\n margin-left: -0.5rem !important;\n margin-right: -0.5rem !important;\n }\n\n .lg\\:-mx-3 {\n margin-left: -1rem !important;\n margin-right: -1rem !important;\n }\n\n .lg\\:-mx-4 {\n margin-left: -1.5rem !important;\n margin-right: -1.5rem !important;\n }\n\n .lg\\:-mx-5 {\n margin-left: -2rem !important;\n margin-right: -2rem !important;\n }\n\n .lg\\:-mx-6 {\n margin-left: -3rem !important;\n margin-right: -3rem !important;\n }\n\n .lg\\:-mx-7 {\n margin-left: -4rem !important;\n margin-right: -4rem !important;\n }\n\n .lg\\:-mx-8 {\n margin-left: -5rem !important;\n margin-right: -5rem !important;\n }\n\n .lg\\:mx-auto {\n margin-left: auto !important;\n margin-right: auto !important;\n }\n\n .lg\\:my-0 {\n margin-top: 0rem !important;\n margin-bottom: 0rem !important;\n }\n\n .lg\\:my-1 {\n margin-top: 0.25rem !important;\n margin-bottom: 0.25rem !important;\n }\n\n .lg\\:my-2 {\n margin-top: 0.5rem !important;\n margin-bottom: 0.5rem !important;\n }\n\n .lg\\:my-3 {\n margin-top: 1rem !important;\n margin-bottom: 1rem !important;\n }\n\n .lg\\:my-4 {\n margin-top: 1.5rem !important;\n margin-bottom: 1.5rem !important;\n }\n\n .lg\\:my-5 {\n margin-top: 2rem !important;\n margin-bottom: 2rem !important;\n }\n\n .lg\\:my-6 {\n margin-top: 3rem !important;\n margin-bottom: 3rem !important;\n }\n\n .lg\\:my-7 {\n margin-top: 4rem !important;\n margin-bottom: 4rem !important;\n }\n\n .lg\\:my-8 {\n margin-top: 5rem !important;\n margin-bottom: 5rem !important;\n }\n\n .lg\\:-my-1 {\n margin-top: -0.25rem !important;\n margin-bottom: -0.25rem !important;\n }\n\n .lg\\:-my-2 {\n margin-top: -0.5rem !important;\n margin-bottom: -0.5rem !important;\n }\n\n .lg\\:-my-3 {\n margin-top: -1rem !important;\n margin-bottom: -1rem !important;\n }\n\n .lg\\:-my-4 {\n margin-top: -1.5rem !important;\n margin-bottom: -1.5rem !important;\n }\n\n .lg\\:-my-5 {\n margin-top: -2rem !important;\n margin-bottom: -2rem !important;\n }\n\n .lg\\:-my-6 {\n margin-top: -3rem !important;\n margin-bottom: -3rem !important;\n }\n\n .lg\\:-my-7 {\n margin-top: -4rem !important;\n margin-bottom: -4rem !important;\n }\n\n .lg\\:-my-8 {\n margin-top: -5rem !important;\n margin-bottom: -5rem !important;\n }\n\n .lg\\:my-auto {\n margin-top: auto !important;\n margin-bottom: auto !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:m-0 {\n margin: 0rem !important;\n }\n\n .xl\\:m-1 {\n margin: 0.25rem !important;\n }\n\n .xl\\:m-2 {\n margin: 0.5rem !important;\n }\n\n .xl\\:m-3 {\n margin: 1rem !important;\n }\n\n .xl\\:m-4 {\n margin: 1.5rem !important;\n }\n\n .xl\\:m-5 {\n margin: 2rem !important;\n }\n\n .xl\\:m-6 {\n margin: 3rem !important;\n }\n\n .xl\\:m-7 {\n margin: 4rem !important;\n }\n\n .xl\\:m-8 {\n margin: 5rem !important;\n }\n\n .xl\\:-m-1 {\n margin: -0.25rem !important;\n }\n\n .xl\\:-m-2 {\n margin: -0.5rem !important;\n }\n\n .xl\\:-m-3 {\n margin: -1rem !important;\n }\n\n .xl\\:-m-4 {\n margin: -1.5rem !important;\n }\n\n .xl\\:-m-5 {\n margin: -2rem !important;\n }\n\n .xl\\:-m-6 {\n margin: -3rem !important;\n }\n\n .xl\\:-m-7 {\n margin: -4rem !important;\n }\n\n .xl\\:-m-8 {\n margin: -5rem !important;\n }\n\n .xl\\:m-auto {\n margin: auto !important;\n }\n\n .xl\\:mt-0 {\n margin-top: 0rem !important;\n }\n\n .xl\\:mt-1 {\n margin-top: 0.25rem !important;\n }\n\n .xl\\:mt-2 {\n margin-top: 0.5rem !important;\n }\n\n .xl\\:mt-3 {\n margin-top: 1rem !important;\n }\n\n .xl\\:mt-4 {\n margin-top: 1.5rem !important;\n }\n\n .xl\\:mt-5 {\n margin-top: 2rem !important;\n }\n\n .xl\\:mt-6 {\n margin-top: 3rem !important;\n }\n\n .xl\\:mt-7 {\n margin-top: 4rem !important;\n }\n\n .xl\\:mt-8 {\n margin-top: 5rem !important;\n }\n\n .xl\\:-mt-1 {\n margin-top: -0.25rem !important;\n }\n\n .xl\\:-mt-2 {\n margin-top: -0.5rem !important;\n }\n\n .xl\\:-mt-3 {\n margin-top: -1rem !important;\n }\n\n .xl\\:-mt-4 {\n margin-top: -1.5rem !important;\n }\n\n .xl\\:-mt-5 {\n margin-top: -2rem !important;\n }\n\n .xl\\:-mt-6 {\n margin-top: -3rem !important;\n }\n\n .xl\\:-mt-7 {\n margin-top: -4rem !important;\n }\n\n .xl\\:-mt-8 {\n margin-top: -5rem !important;\n }\n\n .xl\\:mt-auto {\n margin-top: auto !important;\n }\n\n .xl\\:mr-0 {\n margin-right: 0rem !important;\n }\n\n .xl\\:mr-1 {\n margin-right: 0.25rem !important;\n }\n\n .xl\\:mr-2 {\n margin-right: 0.5rem !important;\n }\n\n .xl\\:mr-3 {\n margin-right: 1rem !important;\n }\n\n .xl\\:mr-4 {\n margin-right: 1.5rem !important;\n }\n\n .xl\\:mr-5 {\n margin-right: 2rem !important;\n }\n\n .xl\\:mr-6 {\n margin-right: 3rem !important;\n }\n\n .xl\\:mr-7 {\n margin-right: 4rem !important;\n }\n\n .xl\\:mr-8 {\n margin-right: 5rem !important;\n }\n\n .xl\\:-mr-1 {\n margin-right: -0.25rem !important;\n }\n\n .xl\\:-mr-2 {\n margin-right: -0.5rem !important;\n }\n\n .xl\\:-mr-3 {\n margin-right: -1rem !important;\n }\n\n .xl\\:-mr-4 {\n margin-right: -1.5rem !important;\n }\n\n .xl\\:-mr-5 {\n margin-right: -2rem !important;\n }\n\n .xl\\:-mr-6 {\n margin-right: -3rem !important;\n }\n\n .xl\\:-mr-7 {\n margin-right: -4rem !important;\n }\n\n .xl\\:-mr-8 {\n margin-right: -5rem !important;\n }\n\n .xl\\:mr-auto {\n margin-right: auto !important;\n }\n\n .xl\\:ml-0 {\n margin-left: 0rem !important;\n }\n\n .xl\\:ml-1 {\n margin-left: 0.25rem !important;\n }\n\n .xl\\:ml-2 {\n margin-left: 0.5rem !important;\n }\n\n .xl\\:ml-3 {\n margin-left: 1rem !important;\n }\n\n .xl\\:ml-4 {\n margin-left: 1.5rem !important;\n }\n\n .xl\\:ml-5 {\n margin-left: 2rem !important;\n }\n\n .xl\\:ml-6 {\n margin-left: 3rem !important;\n }\n\n .xl\\:ml-7 {\n margin-left: 4rem !important;\n }\n\n .xl\\:ml-8 {\n margin-left: 5rem !important;\n }\n\n .xl\\:-ml-1 {\n margin-left: -0.25rem !important;\n }\n\n .xl\\:-ml-2 {\n margin-left: -0.5rem !important;\n }\n\n .xl\\:-ml-3 {\n margin-left: -1rem !important;\n }\n\n .xl\\:-ml-4 {\n margin-left: -1.5rem !important;\n }\n\n .xl\\:-ml-5 {\n margin-left: -2rem !important;\n }\n\n .xl\\:-ml-6 {\n margin-left: -3rem !important;\n }\n\n .xl\\:-ml-7 {\n margin-left: -4rem !important;\n }\n\n .xl\\:-ml-8 {\n margin-left: -5rem !important;\n }\n\n .xl\\:ml-auto {\n margin-left: auto !important;\n }\n\n .xl\\:mb-0 {\n margin-bottom: 0rem !important;\n }\n\n .xl\\:mb-1 {\n margin-bottom: 0.25rem !important;\n }\n\n .xl\\:mb-2 {\n margin-bottom: 0.5rem !important;\n }\n\n .xl\\:mb-3 {\n margin-bottom: 1rem !important;\n }\n\n .xl\\:mb-4 {\n margin-bottom: 1.5rem !important;\n }\n\n .xl\\:mb-5 {\n margin-bottom: 2rem !important;\n }\n\n .xl\\:mb-6 {\n margin-bottom: 3rem !important;\n }\n\n .xl\\:mb-7 {\n margin-bottom: 4rem !important;\n }\n\n .xl\\:mb-8 {\n margin-bottom: 5rem !important;\n }\n\n .xl\\:-mb-1 {\n margin-bottom: -0.25rem !important;\n }\n\n .xl\\:-mb-2 {\n margin-bottom: -0.5rem !important;\n }\n\n .xl\\:-mb-3 {\n margin-bottom: -1rem !important;\n }\n\n .xl\\:-mb-4 {\n margin-bottom: -1.5rem !important;\n }\n\n .xl\\:-mb-5 {\n margin-bottom: -2rem !important;\n }\n\n .xl\\:-mb-6 {\n margin-bottom: -3rem !important;\n }\n\n .xl\\:-mb-7 {\n margin-bottom: -4rem !important;\n }\n\n .xl\\:-mb-8 {\n margin-bottom: -5rem !important;\n }\n\n .xl\\:mb-auto {\n margin-bottom: auto !important;\n }\n\n .xl\\:mx-0 {\n margin-left: 0rem !important;\n margin-right: 0rem !important;\n }\n\n .xl\\:mx-1 {\n margin-left: 0.25rem !important;\n margin-right: 0.25rem !important;\n }\n\n .xl\\:mx-2 {\n margin-left: 0.5rem !important;\n margin-right: 0.5rem !important;\n }\n\n .xl\\:mx-3 {\n margin-left: 1rem !important;\n margin-right: 1rem !important;\n }\n\n .xl\\:mx-4 {\n margin-left: 1.5rem !important;\n margin-right: 1.5rem !important;\n }\n\n .xl\\:mx-5 {\n margin-left: 2rem !important;\n margin-right: 2rem !important;\n }\n\n .xl\\:mx-6 {\n margin-left: 3rem !important;\n margin-right: 3rem !important;\n }\n\n .xl\\:mx-7 {\n margin-left: 4rem !important;\n margin-right: 4rem !important;\n }\n\n .xl\\:mx-8 {\n margin-left: 5rem !important;\n margin-right: 5rem !important;\n }\n\n .xl\\:-mx-1 {\n margin-left: -0.25rem !important;\n margin-right: -0.25rem !important;\n }\n\n .xl\\:-mx-2 {\n margin-left: -0.5rem !important;\n margin-right: -0.5rem !important;\n }\n\n .xl\\:-mx-3 {\n margin-left: -1rem !important;\n margin-right: -1rem !important;\n }\n\n .xl\\:-mx-4 {\n margin-left: -1.5rem !important;\n margin-right: -1.5rem !important;\n }\n\n .xl\\:-mx-5 {\n margin-left: -2rem !important;\n margin-right: -2rem !important;\n }\n\n .xl\\:-mx-6 {\n margin-left: -3rem !important;\n margin-right: -3rem !important;\n }\n\n .xl\\:-mx-7 {\n margin-left: -4rem !important;\n margin-right: -4rem !important;\n }\n\n .xl\\:-mx-8 {\n margin-left: -5rem !important;\n margin-right: -5rem !important;\n }\n\n .xl\\:mx-auto {\n margin-left: auto !important;\n margin-right: auto !important;\n }\n\n .xl\\:my-0 {\n margin-top: 0rem !important;\n margin-bottom: 0rem !important;\n }\n\n .xl\\:my-1 {\n margin-top: 0.25rem !important;\n margin-bottom: 0.25rem !important;\n }\n\n .xl\\:my-2 {\n margin-top: 0.5rem !important;\n margin-bottom: 0.5rem !important;\n }\n\n .xl\\:my-3 {\n margin-top: 1rem !important;\n margin-bottom: 1rem !important;\n }\n\n .xl\\:my-4 {\n margin-top: 1.5rem !important;\n margin-bottom: 1.5rem !important;\n }\n\n .xl\\:my-5 {\n margin-top: 2rem !important;\n margin-bottom: 2rem !important;\n }\n\n .xl\\:my-6 {\n margin-top: 3rem !important;\n margin-bottom: 3rem !important;\n }\n\n .xl\\:my-7 {\n margin-top: 4rem !important;\n margin-bottom: 4rem !important;\n }\n\n .xl\\:my-8 {\n margin-top: 5rem !important;\n margin-bottom: 5rem !important;\n }\n\n .xl\\:-my-1 {\n margin-top: -0.25rem !important;\n margin-bottom: -0.25rem !important;\n }\n\n .xl\\:-my-2 {\n margin-top: -0.5rem !important;\n margin-bottom: -0.5rem !important;\n }\n\n .xl\\:-my-3 {\n margin-top: -1rem !important;\n margin-bottom: -1rem !important;\n }\n\n .xl\\:-my-4 {\n margin-top: -1.5rem !important;\n margin-bottom: -1.5rem !important;\n }\n\n .xl\\:-my-5 {\n margin-top: -2rem !important;\n margin-bottom: -2rem !important;\n }\n\n .xl\\:-my-6 {\n margin-top: -3rem !important;\n margin-bottom: -3rem !important;\n }\n\n .xl\\:-my-7 {\n margin-top: -4rem !important;\n margin-bottom: -4rem !important;\n }\n\n .xl\\:-my-8 {\n margin-top: -5rem !important;\n margin-bottom: -5rem !important;\n }\n\n .xl\\:my-auto {\n margin-top: auto !important;\n margin-bottom: auto !important;\n }\n}\n.shadow-none {\n box-shadow: none !important;\n}\n\n.shadow-1 {\n box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.02), 0px 0px 2px rgba(0, 0, 0, 0.05), 0px 1px 4px rgba(0, 0, 0, 0.08) !important;\n}\n\n.shadow-2 {\n box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.03), 0px 0px 2px rgba(0, 0, 0, 0.06), 0px 2px 6px rgba(0, 0, 0, 0.12) !important;\n}\n\n.shadow-3 {\n box-shadow: 0px 1px 8px rgba(0, 0, 0, 0.08), 0px 3px 4px rgba(0, 0, 0, 0.1), 0px 1px 4px -1px rgba(0, 0, 0, 0.1) !important;\n}\n\n.shadow-4 {\n box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.12), 0px 4px 5px rgba(0, 0, 0, 0.14), 0px 2px 4px -1px rgba(0, 0, 0, 0.2) !important;\n}\n\n.shadow-5 {\n box-shadow: 0px 1px 7px rgba(0, 0, 0, 0.1), 0px 4px 5px -2px rgba(0, 0, 0, 0.12), 0px 10px 15px -5px rgba(0, 0, 0, 0.2) !important;\n}\n\n.shadow-6 {\n box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.06), 0px 7px 9px rgba(0, 0, 0, 0.12), 0px 20px 25px -8px rgba(0, 0, 0, 0.18) !important;\n}\n\n.shadow-7 {\n box-shadow: 0px 7px 30px rgba(0, 0, 0, 0.08), 0px 22px 30px 2px rgba(0, 0, 0, 0.15), 0px 8px 10px rgba(0, 0, 0, 0.15) !important;\n}\n\n.shadow-8 {\n box-shadow: 0px 9px 46px 8px rgba(0, 0, 0, 0.12), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 11px 15px rgba(0, 0, 0, 0.2) !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:shadow-none {\n box-shadow: none !important;\n }\n .sm\\:shadow-1 {\n box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.02), 0px 0px 2px rgba(0, 0, 0, 0.05), 0px 1px 4px rgba(0, 0, 0, 0.08) !important;\n }\n .sm\\:shadow-2 {\n box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.03), 0px 0px 2px rgba(0, 0, 0, 0.06), 0px 2px 6px rgba(0, 0, 0, 0.12) !important;\n }\n .sm\\:shadow-3 {\n box-shadow: 0px 1px 8px rgba(0, 0, 0, 0.08), 0px 3px 4px rgba(0, 0, 0, 0.1), 0px 1px 4px -1px rgba(0, 0, 0, 0.1) !important;\n }\n .sm\\:shadow-4 {\n box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.12), 0px 4px 5px rgba(0, 0, 0, 0.14), 0px 2px 4px -1px rgba(0, 0, 0, 0.2) !important;\n }\n .sm\\:shadow-5 {\n box-shadow: 0px 1px 7px rgba(0, 0, 0, 0.1), 0px 4px 5px -2px rgba(0, 0, 0, 0.12), 0px 10px 15px -5px rgba(0, 0, 0, 0.2) !important;\n }\n .sm\\:shadow-6 {\n box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.06), 0px 7px 9px rgba(0, 0, 0, 0.12), 0px 20px 25px -8px rgba(0, 0, 0, 0.18) !important;\n }\n .sm\\:shadow-7 {\n box-shadow: 0px 7px 30px rgba(0, 0, 0, 0.08), 0px 22px 30px 2px rgba(0, 0, 0, 0.15), 0px 8px 10px rgba(0, 0, 0, 0.15) !important;\n }\n .sm\\:shadow-8 {\n box-shadow: 0px 9px 46px 8px rgba(0, 0, 0, 0.12), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 11px 15px rgba(0, 0, 0, 0.2) !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:shadow-none {\n box-shadow: none !important;\n }\n .md\\:shadow-1 {\n box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.02), 0px 0px 2px rgba(0, 0, 0, 0.05), 0px 1px 4px rgba(0, 0, 0, 0.08) !important;\n }\n .md\\:shadow-2 {\n box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.03), 0px 0px 2px rgba(0, 0, 0, 0.06), 0px 2px 6px rgba(0, 0, 0, 0.12) !important;\n }\n .md\\:shadow-3 {\n box-shadow: 0px 1px 8px rgba(0, 0, 0, 0.08), 0px 3px 4px rgba(0, 0, 0, 0.1), 0px 1px 4px -1px rgba(0, 0, 0, 0.1) !important;\n }\n .md\\:shadow-4 {\n box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.12), 0px 4px 5px rgba(0, 0, 0, 0.14), 0px 2px 4px -1px rgba(0, 0, 0, 0.2) !important;\n }\n .md\\:shadow-5 {\n box-shadow: 0px 1px 7px rgba(0, 0, 0, 0.1), 0px 4px 5px -2px rgba(0, 0, 0, 0.12), 0px 10px 15px -5px rgba(0, 0, 0, 0.2) !important;\n }\n .md\\:shadow-6 {\n box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.06), 0px 7px 9px rgba(0, 0, 0, 0.12), 0px 20px 25px -8px rgba(0, 0, 0, 0.18) !important;\n }\n .md\\:shadow-7 {\n box-shadow: 0px 7px 30px rgba(0, 0, 0, 0.08), 0px 22px 30px 2px rgba(0, 0, 0, 0.15), 0px 8px 10px rgba(0, 0, 0, 0.15) !important;\n }\n .md\\:shadow-8 {\n box-shadow: 0px 9px 46px 8px rgba(0, 0, 0, 0.12), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 11px 15px rgba(0, 0, 0, 0.2) !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:shadow-none {\n box-shadow: none !important;\n }\n .lg\\:shadow-1 {\n box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.02), 0px 0px 2px rgba(0, 0, 0, 0.05), 0px 1px 4px rgba(0, 0, 0, 0.08) !important;\n }\n .lg\\:shadow-2 {\n box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.03), 0px 0px 2px rgba(0, 0, 0, 0.06), 0px 2px 6px rgba(0, 0, 0, 0.12) !important;\n }\n .lg\\:shadow-3 {\n box-shadow: 0px 1px 8px rgba(0, 0, 0, 0.08), 0px 3px 4px rgba(0, 0, 0, 0.1), 0px 1px 4px -1px rgba(0, 0, 0, 0.1) !important;\n }\n .lg\\:shadow-4 {\n box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.12), 0px 4px 5px rgba(0, 0, 0, 0.14), 0px 2px 4px -1px rgba(0, 0, 0, 0.2) !important;\n }\n .lg\\:shadow-5 {\n box-shadow: 0px 1px 7px rgba(0, 0, 0, 0.1), 0px 4px 5px -2px rgba(0, 0, 0, 0.12), 0px 10px 15px -5px rgba(0, 0, 0, 0.2) !important;\n }\n .lg\\:shadow-6 {\n box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.06), 0px 7px 9px rgba(0, 0, 0, 0.12), 0px 20px 25px -8px rgba(0, 0, 0, 0.18) !important;\n }\n .lg\\:shadow-7 {\n box-shadow: 0px 7px 30px rgba(0, 0, 0, 0.08), 0px 22px 30px 2px rgba(0, 0, 0, 0.15), 0px 8px 10px rgba(0, 0, 0, 0.15) !important;\n }\n .lg\\:shadow-8 {\n box-shadow: 0px 9px 46px 8px rgba(0, 0, 0, 0.12), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 11px 15px rgba(0, 0, 0, 0.2) !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:shadow-none {\n box-shadow: none !important;\n }\n .xl\\:shadow-1 {\n box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.02), 0px 0px 2px rgba(0, 0, 0, 0.05), 0px 1px 4px rgba(0, 0, 0, 0.08) !important;\n }\n .xl\\:shadow-2 {\n box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.03), 0px 0px 2px rgba(0, 0, 0, 0.06), 0px 2px 6px rgba(0, 0, 0, 0.12) !important;\n }\n .xl\\:shadow-3 {\n box-shadow: 0px 1px 8px rgba(0, 0, 0, 0.08), 0px 3px 4px rgba(0, 0, 0, 0.1), 0px 1px 4px -1px rgba(0, 0, 0, 0.1) !important;\n }\n .xl\\:shadow-4 {\n box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.12), 0px 4px 5px rgba(0, 0, 0, 0.14), 0px 2px 4px -1px rgba(0, 0, 0, 0.2) !important;\n }\n .xl\\:shadow-5 {\n box-shadow: 0px 1px 7px rgba(0, 0, 0, 0.1), 0px 4px 5px -2px rgba(0, 0, 0, 0.12), 0px 10px 15px -5px rgba(0, 0, 0, 0.2) !important;\n }\n .xl\\:shadow-6 {\n box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.06), 0px 7px 9px rgba(0, 0, 0, 0.12), 0px 20px 25px -8px rgba(0, 0, 0, 0.18) !important;\n }\n .xl\\:shadow-7 {\n box-shadow: 0px 7px 30px rgba(0, 0, 0, 0.08), 0px 22px 30px 2px rgba(0, 0, 0, 0.15), 0px 8px 10px rgba(0, 0, 0, 0.15) !important;\n }\n .xl\\:shadow-8 {\n box-shadow: 0px 9px 46px 8px rgba(0, 0, 0, 0.12), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 11px 15px rgba(0, 0, 0, 0.2) !important;\n }\n}\n.border-none {\n border-width: 0px !important;\n border-style: none;\n}\n\n.border-1 {\n border-width: 1px !important;\n border-style: solid;\n}\n\n.border-2 {\n border-width: 2px !important;\n border-style: solid;\n}\n\n.border-3 {\n border-width: 3px !important;\n border-style: solid;\n}\n\n.border-top-none {\n border-top-width: 0px !important;\n border-top-style: none;\n}\n\n.border-top-1 {\n border-top-width: 1px !important;\n border-top-style: solid;\n}\n\n.border-top-2 {\n border-top-width: 2px !important;\n border-top-style: solid;\n}\n\n.border-top-3 {\n border-top-width: 3px !important;\n border-top-style: solid;\n}\n\n.border-right-none {\n border-right-width: 0px !important;\n border-right-style: none;\n}\n\n.border-right-1 {\n border-right-width: 1px !important;\n border-right-style: solid;\n}\n\n.border-right-2 {\n border-right-width: 2px !important;\n border-right-style: solid;\n}\n\n.border-right-3 {\n border-right-width: 3px !important;\n border-right-style: solid;\n}\n\n.border-left-none {\n border-left-width: 0px !important;\n border-left-style: none;\n}\n\n.border-left-1 {\n border-left-width: 1px !important;\n border-left-style: solid;\n}\n\n.border-left-2 {\n border-left-width: 2px !important;\n border-left-style: solid;\n}\n\n.border-left-3 {\n border-left-width: 3px !important;\n border-left-style: solid;\n}\n\n.border-bottom-none {\n border-bottom-width: 0px !important;\n border-bottom-style: none;\n}\n\n.border-bottom-1 {\n border-bottom-width: 1px !important;\n border-bottom-style: solid;\n}\n\n.border-bottom-2 {\n border-bottom-width: 2px !important;\n border-bottom-style: solid;\n}\n\n.border-bottom-3 {\n border-bottom-width: 3px !important;\n border-bottom-style: solid;\n}\n\n.border-x-none {\n border-left-width: 0px !important;\n border-left-style: none;\n border-right-width: 0px !important;\n border-right-style: none;\n}\n\n.border-x-1 {\n border-left-width: 1px !important;\n border-left-style: solid;\n border-right-width: 1px !important;\n border-right-style: solid;\n}\n\n.border-x-2 {\n border-left-width: 2px !important;\n border-left-style: solid;\n border-right-width: 2px !important;\n border-right-style: solid;\n}\n\n.border-x-3 {\n border-left-width: 3px !important;\n border-left-style: solid;\n border-right-width: 3px !important;\n border-right-style: solid;\n}\n\n.border-y-none {\n border-top-width: 0px !important;\n border-top-style: none;\n border-bottom-width: 0px !important;\n border-bottom-style: none;\n}\n\n.border-y-1 {\n border-top-width: 1px !important;\n border-top-style: solid;\n border-bottom-width: 1px !important;\n border-bottom-style: solid;\n}\n\n.border-y-2 {\n border-top-width: 2px !important;\n border-top-style: solid;\n border-bottom-width: 2px !important;\n border-bottom-style: solid;\n}\n\n.border-y-3 {\n border-top-width: 3px !important;\n border-top-style: solid;\n border-bottom-width: 3px !important;\n border-bottom-style: solid;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:border-none {\n border-width: 0px !important;\n border-style: none;\n }\n .sm\\:border-1 {\n border-width: 1px !important;\n border-style: solid;\n }\n .sm\\:border-2 {\n border-width: 2px !important;\n border-style: solid;\n }\n .sm\\:border-3 {\n border-width: 3px !important;\n border-style: solid;\n }\n .sm\\:border-top-none {\n border-top-width: 0px !important;\n border-top-style: none;\n }\n .sm\\:border-top-1 {\n border-top-width: 1px !important;\n border-top-style: solid;\n }\n .sm\\:border-top-2 {\n border-top-width: 2px !important;\n border-top-style: solid;\n }\n .sm\\:border-top-3 {\n border-top-width: 3px !important;\n border-top-style: solid;\n }\n .sm\\:border-right-none {\n border-right-width: 0px !important;\n border-right-style: none;\n }\n .sm\\:border-right-1 {\n border-right-width: 1px !important;\n border-right-style: solid;\n }\n .sm\\:border-right-2 {\n border-right-width: 2px !important;\n border-right-style: solid;\n }\n .sm\\:border-right-3 {\n border-right-width: 3px !important;\n border-right-style: solid;\n }\n .sm\\:border-left-none {\n border-left-width: 0px !important;\n border-left-style: none;\n }\n .sm\\:border-left-1 {\n border-left-width: 1px !important;\n border-left-style: solid;\n }\n .sm\\:border-left-2 {\n border-left-width: 2px !important;\n border-left-style: solid;\n }\n .sm\\:border-left-3 {\n border-left-width: 3px !important;\n border-left-style: solid;\n }\n .sm\\:border-bottom-none {\n border-bottom-width: 0px !important;\n border-bottom-style: none;\n }\n .sm\\:border-bottom-1 {\n border-bottom-width: 1px !important;\n border-bottom-style: solid;\n }\n .sm\\:border-bottom-2 {\n border-bottom-width: 2px !important;\n border-bottom-style: solid;\n }\n .sm\\:border-bottom-3 {\n border-bottom-width: 3px !important;\n border-bottom-style: solid;\n }\n .sm\\:border-x-none {\n border-left-width: 0px !important;\n border-left-style: none;\n border-right-width: 0px !important;\n border-right-style: none;\n }\n .sm\\:border-x-1 {\n border-left-width: 1px !important;\n border-left-style: solid;\n border-right-width: 1px !important;\n border-right-style: solid;\n }\n .sm\\:border-x-2 {\n border-left-width: 2px !important;\n border-left-style: solid;\n border-right-width: 2px !important;\n border-right-style: solid;\n }\n .sm\\:border-x-3 {\n border-left-width: 3px !important;\n border-left-style: solid;\n border-right-width: 3px !important;\n border-right-style: solid;\n }\n .sm\\:border-y-none {\n border-top-width: 0px !important;\n border-top-style: none;\n border-bottom-width: 0px !important;\n border-bottom-style: none;\n }\n .sm\\:border-y-1 {\n border-top-width: 1px !important;\n border-top-style: solid;\n border-bottom-width: 1px !important;\n border-bottom-style: solid;\n }\n .sm\\:border-y-2 {\n border-top-width: 2px !important;\n border-top-style: solid;\n border-bottom-width: 2px !important;\n border-bottom-style: solid;\n }\n .sm\\:border-y-3 {\n border-top-width: 3px !important;\n border-top-style: solid;\n border-bottom-width: 3px !important;\n border-bottom-style: solid;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:border-none {\n border-width: 0px !important;\n border-style: none;\n }\n .md\\:border-1 {\n border-width: 1px !important;\n border-style: solid;\n }\n .md\\:border-2 {\n border-width: 2px !important;\n border-style: solid;\n }\n .md\\:border-3 {\n border-width: 3px !important;\n border-style: solid;\n }\n .md\\:border-top-none {\n border-top-width: 0px !important;\n border-top-style: none;\n }\n .md\\:border-top-1 {\n border-top-width: 1px !important;\n border-top-style: solid;\n }\n .md\\:border-top-2 {\n border-top-width: 2px !important;\n border-top-style: solid;\n }\n .md\\:border-top-3 {\n border-top-width: 3px !important;\n border-top-style: solid;\n }\n .md\\:border-right-none {\n border-right-width: 0px !important;\n border-right-style: none;\n }\n .md\\:border-right-1 {\n border-right-width: 1px !important;\n border-right-style: solid;\n }\n .md\\:border-right-2 {\n border-right-width: 2px !important;\n border-right-style: solid;\n }\n .md\\:border-right-3 {\n border-right-width: 3px !important;\n border-right-style: solid;\n }\n .md\\:border-left-none {\n border-left-width: 0px !important;\n border-left-style: none;\n }\n .md\\:border-left-1 {\n border-left-width: 1px !important;\n border-left-style: solid;\n }\n .md\\:border-left-2 {\n border-left-width: 2px !important;\n border-left-style: solid;\n }\n .md\\:border-left-3 {\n border-left-width: 3px !important;\n border-left-style: solid;\n }\n .md\\:border-bottom-none {\n border-bottom-width: 0px !important;\n border-bottom-style: none;\n }\n .md\\:border-bottom-1 {\n border-bottom-width: 1px !important;\n border-bottom-style: solid;\n }\n .md\\:border-bottom-2 {\n border-bottom-width: 2px !important;\n border-bottom-style: solid;\n }\n .md\\:border-bottom-3 {\n border-bottom-width: 3px !important;\n border-bottom-style: solid;\n }\n .md\\:border-x-none {\n border-left-width: 0px !important;\n border-left-style: none;\n border-right-width: 0px !important;\n border-right-style: none;\n }\n .md\\:border-x-1 {\n border-left-width: 1px !important;\n border-left-style: solid;\n border-right-width: 1px !important;\n border-right-style: solid;\n }\n .md\\:border-x-2 {\n border-left-width: 2px !important;\n border-left-style: solid;\n border-right-width: 2px !important;\n border-right-style: solid;\n }\n .md\\:border-x-3 {\n border-left-width: 3px !important;\n border-left-style: solid;\n border-right-width: 3px !important;\n border-right-style: solid;\n }\n .md\\:border-y-none {\n border-top-width: 0px !important;\n border-top-style: none;\n border-bottom-width: 0px !important;\n border-bottom-style: none;\n }\n .md\\:border-y-1 {\n border-top-width: 1px !important;\n border-top-style: solid;\n border-bottom-width: 1px !important;\n border-bottom-style: solid;\n }\n .md\\:border-y-2 {\n border-top-width: 2px !important;\n border-top-style: solid;\n border-bottom-width: 2px !important;\n border-bottom-style: solid;\n }\n .md\\:border-y-3 {\n border-top-width: 3px !important;\n border-top-style: solid;\n border-bottom-width: 3px !important;\n border-bottom-style: solid;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:border-none {\n border-width: 0px !important;\n border-style: none;\n }\n .lg\\:border-1 {\n border-width: 1px !important;\n border-style: solid;\n }\n .lg\\:border-2 {\n border-width: 2px !important;\n border-style: solid;\n }\n .lg\\:border-3 {\n border-width: 3px !important;\n border-style: solid;\n }\n .lg\\:border-top-none {\n border-top-width: 0px !important;\n border-top-style: none;\n }\n .lg\\:border-top-1 {\n border-top-width: 1px !important;\n border-top-style: solid;\n }\n .lg\\:border-top-2 {\n border-top-width: 2px !important;\n border-top-style: solid;\n }\n .lg\\:border-top-3 {\n border-top-width: 3px !important;\n border-top-style: solid;\n }\n .lg\\:border-right-none {\n border-right-width: 0px !important;\n border-right-style: none;\n }\n .lg\\:border-right-1 {\n border-right-width: 1px !important;\n border-right-style: solid;\n }\n .lg\\:border-right-2 {\n border-right-width: 2px !important;\n border-right-style: solid;\n }\n .lg\\:border-right-3 {\n border-right-width: 3px !important;\n border-right-style: solid;\n }\n .lg\\:border-left-none {\n border-left-width: 0px !important;\n border-left-style: none;\n }\n .lg\\:border-left-1 {\n border-left-width: 1px !important;\n border-left-style: solid;\n }\n .lg\\:border-left-2 {\n border-left-width: 2px !important;\n border-left-style: solid;\n }\n .lg\\:border-left-3 {\n border-left-width: 3px !important;\n border-left-style: solid;\n }\n .lg\\:border-bottom-none {\n border-bottom-width: 0px !important;\n border-bottom-style: none;\n }\n .lg\\:border-bottom-1 {\n border-bottom-width: 1px !important;\n border-bottom-style: solid;\n }\n .lg\\:border-bottom-2 {\n border-bottom-width: 2px !important;\n border-bottom-style: solid;\n }\n .lg\\:border-bottom-3 {\n border-bottom-width: 3px !important;\n border-bottom-style: solid;\n }\n .lg\\:border-x-none {\n border-left-width: 0px !important;\n border-left-style: none;\n border-right-width: 0px !important;\n border-right-style: none;\n }\n .lg\\:border-x-1 {\n border-left-width: 1px !important;\n border-left-style: solid;\n border-right-width: 1px !important;\n border-right-style: solid;\n }\n .lg\\:border-x-2 {\n border-left-width: 2px !important;\n border-left-style: solid;\n border-right-width: 2px !important;\n border-right-style: solid;\n }\n .lg\\:border-x-3 {\n border-left-width: 3px !important;\n border-left-style: solid;\n border-right-width: 3px !important;\n border-right-style: solid;\n }\n .lg\\:border-y-none {\n border-top-width: 0px !important;\n border-top-style: none;\n border-bottom-width: 0px !important;\n border-bottom-style: none;\n }\n .lg\\:border-y-1 {\n border-top-width: 1px !important;\n border-top-style: solid;\n border-bottom-width: 1px !important;\n border-bottom-style: solid;\n }\n .lg\\:border-y-2 {\n border-top-width: 2px !important;\n border-top-style: solid;\n border-bottom-width: 2px !important;\n border-bottom-style: solid;\n }\n .lg\\:border-y-3 {\n border-top-width: 3px !important;\n border-top-style: solid;\n border-bottom-width: 3px !important;\n border-bottom-style: solid;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:border-none {\n border-width: 0px !important;\n border-style: none;\n }\n .xl\\:border-1 {\n border-width: 1px !important;\n border-style: solid;\n }\n .xl\\:border-2 {\n border-width: 2px !important;\n border-style: solid;\n }\n .xl\\:border-3 {\n border-width: 3px !important;\n border-style: solid;\n }\n .xl\\:border-top-none {\n border-top-width: 0px !important;\n border-top-style: none;\n }\n .xl\\:border-top-1 {\n border-top-width: 1px !important;\n border-top-style: solid;\n }\n .xl\\:border-top-2 {\n border-top-width: 2px !important;\n border-top-style: solid;\n }\n .xl\\:border-top-3 {\n border-top-width: 3px !important;\n border-top-style: solid;\n }\n .xl\\:border-right-none {\n border-right-width: 0px !important;\n border-right-style: none;\n }\n .xl\\:border-right-1 {\n border-right-width: 1px !important;\n border-right-style: solid;\n }\n .xl\\:border-right-2 {\n border-right-width: 2px !important;\n border-right-style: solid;\n }\n .xl\\:border-right-3 {\n border-right-width: 3px !important;\n border-right-style: solid;\n }\n .xl\\:border-left-none {\n border-left-width: 0px !important;\n border-left-style: none;\n }\n .xl\\:border-left-1 {\n border-left-width: 1px !important;\n border-left-style: solid;\n }\n .xl\\:border-left-2 {\n border-left-width: 2px !important;\n border-left-style: solid;\n }\n .xl\\:border-left-3 {\n border-left-width: 3px !important;\n border-left-style: solid;\n }\n .xl\\:border-bottom-none {\n border-bottom-width: 0px !important;\n border-bottom-style: none;\n }\n .xl\\:border-bottom-1 {\n border-bottom-width: 1px !important;\n border-bottom-style: solid;\n }\n .xl\\:border-bottom-2 {\n border-bottom-width: 2px !important;\n border-bottom-style: solid;\n }\n .xl\\:border-bottom-3 {\n border-bottom-width: 3px !important;\n border-bottom-style: solid;\n }\n .xl\\:border-x-none {\n border-left-width: 0px !important;\n border-left-style: none;\n border-right-width: 0px !important;\n border-right-style: none;\n }\n .xl\\:border-x-1 {\n border-left-width: 1px !important;\n border-left-style: solid;\n border-right-width: 1px !important;\n border-right-style: solid;\n }\n .xl\\:border-x-2 {\n border-left-width: 2px !important;\n border-left-style: solid;\n border-right-width: 2px !important;\n border-right-style: solid;\n }\n .xl\\:border-x-3 {\n border-left-width: 3px !important;\n border-left-style: solid;\n border-right-width: 3px !important;\n border-right-style: solid;\n }\n .xl\\:border-y-none {\n border-top-width: 0px !important;\n border-top-style: none;\n border-bottom-width: 0px !important;\n border-bottom-style: none;\n }\n .xl\\:border-y-1 {\n border-top-width: 1px !important;\n border-top-style: solid;\n border-bottom-width: 1px !important;\n border-bottom-style: solid;\n }\n .xl\\:border-y-2 {\n border-top-width: 2px !important;\n border-top-style: solid;\n border-bottom-width: 2px !important;\n border-bottom-style: solid;\n }\n .xl\\:border-y-3 {\n border-top-width: 3px !important;\n border-top-style: solid;\n border-bottom-width: 3px !important;\n border-bottom-style: solid;\n }\n}\n.border-solid {\n border-style: solid !important;\n}\n\n.border-dashed {\n border-style: dashed !important;\n}\n\n.border-dotted {\n border-style: dotted !important;\n}\n\n.border-double {\n border-style: double !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:border-solid {\n border-style: solid !important;\n }\n .sm\\:border-dashed {\n border-style: dashed !important;\n }\n .sm\\:border-dotted {\n border-style: dotted !important;\n }\n .sm\\:border-double {\n border-style: double !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:border-solid {\n border-style: solid !important;\n }\n .md\\:border-dashed {\n border-style: dashed !important;\n }\n .md\\:border-dotted {\n border-style: dotted !important;\n }\n .md\\:border-double {\n border-style: double !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:border-solid {\n border-style: solid !important;\n }\n .lg\\:border-dashed {\n border-style: dashed !important;\n }\n .lg\\:border-dotted {\n border-style: dotted !important;\n }\n .lg\\:border-double {\n border-style: double !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:border-solid {\n border-style: solid !important;\n }\n .xl\\:border-dashed {\n border-style: dashed !important;\n }\n .xl\\:border-dotted {\n border-style: dotted !important;\n }\n .xl\\:border-double {\n border-style: double !important;\n }\n}\n.border-round-left {\n border-top-left-radius: var(--border-radius);\n border-bottom-left-radius: var(--border-radius);\n}\n\n.border-round-top {\n border-top-left-radius: var(--border-radius);\n border-top-right-radius: var(--border-radius);\n}\n\n.border-round-right {\n border-top-right-radius: var(--border-radius);\n border-bottom-right-radius: var(--border-radius);\n}\n\n.border-round-bottom {\n border-bottom-left-radius: var(--border-radius);\n border-bottom-right-radius: var(--border-radius);\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:border-round-left {\n border-top-left-radius: var(--border-radius);\n border-bottom-left-radius: var(--border-radius);\n }\n .sm\\:border-round-top {\n border-top-left-radius: var(--border-radius);\n border-top-right-radius: var(--border-radius);\n }\n .sm\\:border-round-right {\n border-top-right-radius: var(--border-radius);\n border-bottom-right-radius: var(--border-radius);\n }\n .sm\\:border-round-bottom {\n border-bottom-left-radius: var(--border-radius);\n border-bottom-right-radius: var(--border-radius);\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:border-round-left {\n border-top-left-radius: var(--border-radius);\n border-bottom-left-radius: var(--border-radius);\n }\n .md\\:border-round-top {\n border-top-left-radius: var(--border-radius);\n border-top-right-radius: var(--border-radius);\n }\n .md\\:border-round-right {\n border-top-right-radius: var(--border-radius);\n border-bottom-right-radius: var(--border-radius);\n }\n .md\\:border-round-bottom {\n border-bottom-left-radius: var(--border-radius);\n border-bottom-right-radius: var(--border-radius);\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:border-round-left {\n border-top-left-radius: var(--border-radius);\n border-bottom-left-radius: var(--border-radius);\n }\n .lg\\:border-round-top {\n border-top-left-radius: var(--border-radius);\n border-top-right-radius: var(--border-radius);\n }\n .lg\\:border-round-right {\n border-top-right-radius: var(--border-radius);\n border-bottom-right-radius: var(--border-radius);\n }\n .lg\\:border-round-bottom {\n border-bottom-left-radius: var(--border-radius);\n border-bottom-right-radius: var(--border-radius);\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:border-round-left {\n border-top-left-radius: var(--border-radius);\n border-bottom-left-radius: var(--border-radius);\n }\n .xl\\:border-round-top {\n border-top-left-radius: var(--border-radius);\n border-top-right-radius: var(--border-radius);\n }\n .xl\\:border-round-right {\n border-top-right-radius: var(--border-radius);\n border-bottom-right-radius: var(--border-radius);\n }\n .xl\\:border-round-bottom {\n border-bottom-left-radius: var(--border-radius);\n border-bottom-right-radius: var(--border-radius);\n }\n}\n.border-noround {\n border-radius: 0 !important;\n}\n\n.border-round {\n border-radius: var(--border-radius) !important;\n}\n\n.border-circle {\n border-radius: 50% !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:border-noround {\n border-radius: 0 !important;\n }\n .sm\\:border-round {\n border-radius: var(--border-radius) !important;\n }\n .sm\\:border-circle {\n border-radius: 50% !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:border-noround {\n border-radius: 0 !important;\n }\n .md\\:border-round {\n border-radius: var(--border-radius) !important;\n }\n .md\\:border-circle {\n border-radius: 50% !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:border-noround {\n border-radius: 0 !important;\n }\n .lg\\:border-round {\n border-radius: var(--border-radius) !important;\n }\n .lg\\:border-circle {\n border-radius: 50% !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:border-noround {\n border-radius: 0 !important;\n }\n .xl\\:border-round {\n border-radius: var(--border-radius) !important;\n }\n .xl\\:border-circle {\n border-radius: 50% !important;\n }\n}\n.w-full {\n width: 100% !important;\n}\n\n.w-screen {\n width: 100vw !important;\n}\n\n.w-auto {\n width: auto !important;\n}\n\n.w-min {\n width: -webkit-min-content !important;\n width: -moz-min-content !important;\n width: min-content !important;\n}\n\n.w-max {\n width: -webkit-max-content !important;\n width: -moz-max-content !important;\n width: max-content !important;\n}\n\n.w-1 {\n width: 8.3333% !important;\n}\n\n.w-2 {\n width: 16.6667% !important;\n}\n\n.w-3 {\n width: 25% !important;\n}\n\n.w-4 {\n width: 33.3333% !important;\n}\n\n.w-5 {\n width: 41.6667% !important;\n}\n\n.w-6 {\n width: 50% !important;\n}\n\n.w-7 {\n width: 58.3333% !important;\n}\n\n.w-8 {\n width: 66.6667% !important;\n}\n\n.w-9 {\n width: 75% !important;\n}\n\n.w-10 {\n width: 83.3333% !important;\n}\n\n.w-11 {\n width: 91.6667% !important;\n}\n\n.w-12 {\n width: 100% !important;\n}\n\n.w-1rem {\n width: 1rem !important;\n}\n\n.w-2rem {\n width: 2rem !important;\n}\n\n.w-3rem {\n width: 3rem !important;\n}\n\n.w-4rem {\n width: 4rem !important;\n}\n\n.w-5rem {\n width: 5rem !important;\n}\n\n.w-6rem {\n width: 6rem !important;\n}\n\n.w-7rem {\n width: 7rem !important;\n}\n\n.w-8rem {\n width: 8rem !important;\n}\n\n.w-9rem {\n width: 9rem !important;\n}\n\n.w-10rem {\n width: 10rem !important;\n}\n\n.w-11rem {\n width: 11rem !important;\n}\n\n.w-12rem {\n width: 12rem !important;\n}\n\n.w-13rem {\n width: 13rem !important;\n}\n\n.w-14rem {\n width: 14rem !important;\n}\n\n.w-15rem {\n width: 15rem !important;\n}\n\n.w-16rem {\n width: 16rem !important;\n}\n\n.w-17rem {\n width: 17rem !important;\n}\n\n.w-18rem {\n width: 18rem !important;\n}\n\n.w-19rem {\n width: 19rem !important;\n}\n\n.w-20rem {\n width: 20rem !important;\n}\n\n.w-21rem {\n width: 21rem !important;\n}\n\n.w-22rem {\n width: 22rem !important;\n}\n\n.w-23rem {\n width: 23rem !important;\n}\n\n.w-24rem {\n width: 24rem !important;\n}\n\n.w-25rem {\n width: 25rem !important;\n}\n\n.w-26rem {\n width: 26rem !important;\n}\n\n.w-27rem {\n width: 27rem !important;\n}\n\n.w-28rem {\n width: 28rem !important;\n}\n\n.w-29rem {\n width: 29rem !important;\n}\n\n.w-30rem {\n width: 30rem !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:w-full {\n width: 100% !important;\n }\n .sm\\:w-screen {\n width: 100vw !important;\n }\n .sm\\:w-auto {\n width: auto !important;\n }\n .sm\\:w-min {\n width: -webkit-min-content !important;\n width: -moz-min-content !important;\n width: min-content !important;\n }\n .sm\\:w-max {\n width: -webkit-max-content !important;\n width: -moz-max-content !important;\n width: max-content !important;\n }\n .sm\\:w-1 {\n width: 8.3333% !important;\n }\n .sm\\:w-2 {\n width: 16.6667% !important;\n }\n .sm\\:w-3 {\n width: 25% !important;\n }\n .sm\\:w-4 {\n width: 33.3333% !important;\n }\n .sm\\:w-5 {\n width: 41.6667% !important;\n }\n .sm\\:w-6 {\n width: 50% !important;\n }\n .sm\\:w-7 {\n width: 58.3333% !important;\n }\n .sm\\:w-8 {\n width: 66.6667% !important;\n }\n .sm\\:w-9 {\n width: 75% !important;\n }\n .sm\\:w-10 {\n width: 83.3333% !important;\n }\n .sm\\:w-11 {\n width: 91.6667% !important;\n }\n .sm\\:w-12 {\n width: 100% !important;\n }\n .sm\\:w-1rem {\n width: 1rem !important;\n }\n .sm\\:w-2rem {\n width: 2rem !important;\n }\n .sm\\:w-3rem {\n width: 3rem !important;\n }\n .sm\\:w-4rem {\n width: 4rem !important;\n }\n .sm\\:w-5rem {\n width: 5rem !important;\n }\n .sm\\:w-6rem {\n width: 6rem !important;\n }\n .sm\\:w-7rem {\n width: 7rem !important;\n }\n .sm\\:w-8rem {\n width: 8rem !important;\n }\n .sm\\:w-9rem {\n width: 9rem !important;\n }\n .sm\\:w-10rem {\n width: 10rem !important;\n }\n .sm\\:w-11rem {\n width: 11rem !important;\n }\n .sm\\:w-12rem {\n width: 12rem !important;\n }\n .sm\\:w-13rem {\n width: 13rem !important;\n }\n .sm\\:w-14rem {\n width: 14rem !important;\n }\n .sm\\:w-15rem {\n width: 15rem !important;\n }\n .sm\\:w-16rem {\n width: 16rem !important;\n }\n .sm\\:w-17rem {\n width: 17rem !important;\n }\n .sm\\:w-18rem {\n width: 18rem !important;\n }\n .sm\\:w-19rem {\n width: 19rem !important;\n }\n .sm\\:w-20rem {\n width: 20rem !important;\n }\n .sm\\:w-21rem {\n width: 21rem !important;\n }\n .sm\\:w-22rem {\n width: 22rem !important;\n }\n .sm\\:w-23rem {\n width: 23rem !important;\n }\n .sm\\:w-24rem {\n width: 24rem !important;\n }\n .sm\\:w-25rem {\n width: 25rem !important;\n }\n .sm\\:w-26rem {\n width: 26rem !important;\n }\n .sm\\:w-27rem {\n width: 27rem !important;\n }\n .sm\\:w-28rem {\n width: 28rem !important;\n }\n .sm\\:w-29rem {\n width: 29rem !important;\n }\n .sm\\:w-30rem {\n width: 30rem !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:w-full {\n width: 100% !important;\n }\n .md\\:w-screen {\n width: 100vw !important;\n }\n .md\\:w-auto {\n width: auto !important;\n }\n .md\\:w-min {\n width: -webkit-min-content !important;\n width: -moz-min-content !important;\n width: min-content !important;\n }\n .md\\:w-max {\n width: -webkit-max-content !important;\n width: -moz-max-content !important;\n width: max-content !important;\n }\n .md\\:w-1 {\n width: 8.3333% !important;\n }\n .md\\:w-2 {\n width: 16.6667% !important;\n }\n .md\\:w-3 {\n width: 25% !important;\n }\n .md\\:w-4 {\n width: 33.3333% !important;\n }\n .md\\:w-5 {\n width: 41.6667% !important;\n }\n .md\\:w-6 {\n width: 50% !important;\n }\n .md\\:w-7 {\n width: 58.3333% !important;\n }\n .md\\:w-8 {\n width: 66.6667% !important;\n }\n .md\\:w-9 {\n width: 75% !important;\n }\n .md\\:w-10 {\n width: 83.3333% !important;\n }\n .md\\:w-11 {\n width: 91.6667% !important;\n }\n .md\\:w-12 {\n width: 100% !important;\n }\n .md\\:w-1rem {\n width: 1rem !important;\n }\n .md\\:w-2rem {\n width: 2rem !important;\n }\n .md\\:w-3rem {\n width: 3rem !important;\n }\n .md\\:w-4rem {\n width: 4rem !important;\n }\n .md\\:w-5rem {\n width: 5rem !important;\n }\n .md\\:w-6rem {\n width: 6rem !important;\n }\n .md\\:w-7rem {\n width: 7rem !important;\n }\n .md\\:w-8rem {\n width: 8rem !important;\n }\n .md\\:w-9rem {\n width: 9rem !important;\n }\n .md\\:w-10rem {\n width: 10rem !important;\n }\n .md\\:w-11rem {\n width: 11rem !important;\n }\n .md\\:w-12rem {\n width: 12rem !important;\n }\n .md\\:w-13rem {\n width: 13rem !important;\n }\n .md\\:w-14rem {\n width: 14rem !important;\n }\n .md\\:w-15rem {\n width: 15rem !important;\n }\n .md\\:w-16rem {\n width: 16rem !important;\n }\n .md\\:w-17rem {\n width: 17rem !important;\n }\n .md\\:w-18rem {\n width: 18rem !important;\n }\n .md\\:w-19rem {\n width: 19rem !important;\n }\n .md\\:w-20rem {\n width: 20rem !important;\n }\n .md\\:w-21rem {\n width: 21rem !important;\n }\n .md\\:w-22rem {\n width: 22rem !important;\n }\n .md\\:w-23rem {\n width: 23rem !important;\n }\n .md\\:w-24rem {\n width: 24rem !important;\n }\n .md\\:w-25rem {\n width: 25rem !important;\n }\n .md\\:w-26rem {\n width: 26rem !important;\n }\n .md\\:w-27rem {\n width: 27rem !important;\n }\n .md\\:w-28rem {\n width: 28rem !important;\n }\n .md\\:w-29rem {\n width: 29rem !important;\n }\n .md\\:w-30rem {\n width: 30rem !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:w-full {\n width: 100% !important;\n }\n .lg\\:w-screen {\n width: 100vw !important;\n }\n .lg\\:w-auto {\n width: auto !important;\n }\n .lg\\:w-min {\n width: -webkit-min-content !important;\n width: -moz-min-content !important;\n width: min-content !important;\n }\n .lg\\:w-max {\n width: -webkit-max-content !important;\n width: -moz-max-content !important;\n width: max-content !important;\n }\n .lg\\:w-1 {\n width: 8.3333% !important;\n }\n .lg\\:w-2 {\n width: 16.6667% !important;\n }\n .lg\\:w-3 {\n width: 25% !important;\n }\n .lg\\:w-4 {\n width: 33.3333% !important;\n }\n .lg\\:w-5 {\n width: 41.6667% !important;\n }\n .lg\\:w-6 {\n width: 50% !important;\n }\n .lg\\:w-7 {\n width: 58.3333% !important;\n }\n .lg\\:w-8 {\n width: 66.6667% !important;\n }\n .lg\\:w-9 {\n width: 75% !important;\n }\n .lg\\:w-10 {\n width: 83.3333% !important;\n }\n .lg\\:w-11 {\n width: 91.6667% !important;\n }\n .lg\\:w-12 {\n width: 100% !important;\n }\n .lg\\:w-1rem {\n width: 1rem !important;\n }\n .lg\\:w-2rem {\n width: 2rem !important;\n }\n .lg\\:w-3rem {\n width: 3rem !important;\n }\n .lg\\:w-4rem {\n width: 4rem !important;\n }\n .lg\\:w-5rem {\n width: 5rem !important;\n }\n .lg\\:w-6rem {\n width: 6rem !important;\n }\n .lg\\:w-7rem {\n width: 7rem !important;\n }\n .lg\\:w-8rem {\n width: 8rem !important;\n }\n .lg\\:w-9rem {\n width: 9rem !important;\n }\n .lg\\:w-10rem {\n width: 10rem !important;\n }\n .lg\\:w-11rem {\n width: 11rem !important;\n }\n .lg\\:w-12rem {\n width: 12rem !important;\n }\n .lg\\:w-13rem {\n width: 13rem !important;\n }\n .lg\\:w-14rem {\n width: 14rem !important;\n }\n .lg\\:w-15rem {\n width: 15rem !important;\n }\n .lg\\:w-16rem {\n width: 16rem !important;\n }\n .lg\\:w-17rem {\n width: 17rem !important;\n }\n .lg\\:w-18rem {\n width: 18rem !important;\n }\n .lg\\:w-19rem {\n width: 19rem !important;\n }\n .lg\\:w-20rem {\n width: 20rem !important;\n }\n .lg\\:w-21rem {\n width: 21rem !important;\n }\n .lg\\:w-22rem {\n width: 22rem !important;\n }\n .lg\\:w-23rem {\n width: 23rem !important;\n }\n .lg\\:w-24rem {\n width: 24rem !important;\n }\n .lg\\:w-25rem {\n width: 25rem !important;\n }\n .lg\\:w-26rem {\n width: 26rem !important;\n }\n .lg\\:w-27rem {\n width: 27rem !important;\n }\n .lg\\:w-28rem {\n width: 28rem !important;\n }\n .lg\\:w-29rem {\n width: 29rem !important;\n }\n .lg\\:w-30rem {\n width: 30rem !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:w-full {\n width: 100% !important;\n }\n .xl\\:w-screen {\n width: 100vw !important;\n }\n .xl\\:w-auto {\n width: auto !important;\n }\n .xl\\:w-min {\n width: -webkit-min-content !important;\n width: -moz-min-content !important;\n width: min-content !important;\n }\n .xl\\:w-max {\n width: -webkit-max-content !important;\n width: -moz-max-content !important;\n width: max-content !important;\n }\n .xl\\:w-1 {\n width: 8.3333% !important;\n }\n .xl\\:w-2 {\n width: 16.6667% !important;\n }\n .xl\\:w-3 {\n width: 25% !important;\n }\n .xl\\:w-4 {\n width: 33.3333% !important;\n }\n .xl\\:w-5 {\n width: 41.6667% !important;\n }\n .xl\\:w-6 {\n width: 50% !important;\n }\n .xl\\:w-7 {\n width: 58.3333% !important;\n }\n .xl\\:w-8 {\n width: 66.6667% !important;\n }\n .xl\\:w-9 {\n width: 75% !important;\n }\n .xl\\:w-10 {\n width: 83.3333% !important;\n }\n .xl\\:w-11 {\n width: 91.6667% !important;\n }\n .xl\\:w-12 {\n width: 100% !important;\n }\n .xl\\:w-1rem {\n width: 1rem !important;\n }\n .xl\\:w-2rem {\n width: 2rem !important;\n }\n .xl\\:w-3rem {\n width: 3rem !important;\n }\n .xl\\:w-4rem {\n width: 4rem !important;\n }\n .xl\\:w-5rem {\n width: 5rem !important;\n }\n .xl\\:w-6rem {\n width: 6rem !important;\n }\n .xl\\:w-7rem {\n width: 7rem !important;\n }\n .xl\\:w-8rem {\n width: 8rem !important;\n }\n .xl\\:w-9rem {\n width: 9rem !important;\n }\n .xl\\:w-10rem {\n width: 10rem !important;\n }\n .xl\\:w-11rem {\n width: 11rem !important;\n }\n .xl\\:w-12rem {\n width: 12rem !important;\n }\n .xl\\:w-13rem {\n width: 13rem !important;\n }\n .xl\\:w-14rem {\n width: 14rem !important;\n }\n .xl\\:w-15rem {\n width: 15rem !important;\n }\n .xl\\:w-16rem {\n width: 16rem !important;\n }\n .xl\\:w-17rem {\n width: 17rem !important;\n }\n .xl\\:w-18rem {\n width: 18rem !important;\n }\n .xl\\:w-19rem {\n width: 19rem !important;\n }\n .xl\\:w-20rem {\n width: 20rem !important;\n }\n .xl\\:w-21rem {\n width: 21rem !important;\n }\n .xl\\:w-22rem {\n width: 22rem !important;\n }\n .xl\\:w-23rem {\n width: 23rem !important;\n }\n .xl\\:w-24rem {\n width: 24rem !important;\n }\n .xl\\:w-25rem {\n width: 25rem !important;\n }\n .xl\\:w-26rem {\n width: 26rem !important;\n }\n .xl\\:w-27rem {\n width: 27rem !important;\n }\n .xl\\:w-28rem {\n width: 28rem !important;\n }\n .xl\\:w-29rem {\n width: 29rem !important;\n }\n .xl\\:w-30rem {\n width: 30rem !important;\n }\n}\n.h-full {\n height: 100% !important;\n}\n\n.h-screen {\n height: 100vh !important;\n}\n\n.h-auto {\n height: auto !important;\n}\n\n.h-1rem {\n height: 1rem !important;\n}\n\n.h-2rem {\n height: 2rem !important;\n}\n\n.h-3rem {\n height: 3rem !important;\n}\n\n.h-4rem {\n height: 4rem !important;\n}\n\n.h-5rem {\n height: 5rem !important;\n}\n\n.h-6rem {\n height: 6rem !important;\n}\n\n.h-7rem {\n height: 7rem !important;\n}\n\n.h-8rem {\n height: 8rem !important;\n}\n\n.h-9rem {\n height: 9rem !important;\n}\n\n.h-10rem {\n height: 10rem !important;\n}\n\n.h-11rem {\n height: 11rem !important;\n}\n\n.h-12rem {\n height: 12rem !important;\n}\n\n.h-13rem {\n height: 13rem !important;\n}\n\n.h-14rem {\n height: 14rem !important;\n}\n\n.h-15rem {\n height: 15rem !important;\n}\n\n.h-16rem {\n height: 16rem !important;\n}\n\n.h-17rem {\n height: 17rem !important;\n}\n\n.h-18rem {\n height: 18rem !important;\n}\n\n.h-19rem {\n height: 19rem !important;\n}\n\n.h-20rem {\n height: 20rem !important;\n}\n\n.h-21rem {\n height: 21rem !important;\n}\n\n.h-22rem {\n height: 22rem !important;\n}\n\n.h-23rem {\n height: 23rem !important;\n}\n\n.h-24rem {\n height: 24rem !important;\n}\n\n.h-25rem {\n height: 25rem !important;\n}\n\n.h-26rem {\n height: 26rem !important;\n}\n\n.h-27rem {\n height: 27rem !important;\n}\n\n.h-28rem {\n height: 28rem !important;\n}\n\n.h-29rem {\n height: 29rem !important;\n}\n\n.h-30rem {\n height: 30rem !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:h-full {\n height: 100% !important;\n }\n .sm\\:h-screen {\n height: 100vh !important;\n }\n .sm\\:h-auto {\n height: auto !important;\n }\n .sm\\:h-1rem {\n height: 1rem !important;\n }\n .sm\\:h-2rem {\n height: 2rem !important;\n }\n .sm\\:h-3rem {\n height: 3rem !important;\n }\n .sm\\:h-4rem {\n height: 4rem !important;\n }\n .sm\\:h-5rem {\n height: 5rem !important;\n }\n .sm\\:h-6rem {\n height: 6rem !important;\n }\n .sm\\:h-7rem {\n height: 7rem !important;\n }\n .sm\\:h-8rem {\n height: 8rem !important;\n }\n .sm\\:h-9rem {\n height: 9rem !important;\n }\n .sm\\:h-10rem {\n height: 10rem !important;\n }\n .sm\\:h-11rem {\n height: 11rem !important;\n }\n .sm\\:h-12rem {\n height: 12rem !important;\n }\n .sm\\:h-13rem {\n height: 13rem !important;\n }\n .sm\\:h-14rem {\n height: 14rem !important;\n }\n .sm\\:h-15rem {\n height: 15rem !important;\n }\n .sm\\:h-16rem {\n height: 16rem !important;\n }\n .sm\\:h-17rem {\n height: 17rem !important;\n }\n .sm\\:h-18rem {\n height: 18rem !important;\n }\n .sm\\:h-19rem {\n height: 19rem !important;\n }\n .sm\\:h-20rem {\n height: 20rem !important;\n }\n .sm\\:h-21rem {\n height: 21rem !important;\n }\n .sm\\:h-22rem {\n height: 22rem !important;\n }\n .sm\\:h-23rem {\n height: 23rem !important;\n }\n .sm\\:h-24rem {\n height: 24rem !important;\n }\n .sm\\:h-25rem {\n height: 25rem !important;\n }\n .sm\\:h-26rem {\n height: 26rem !important;\n }\n .sm\\:h-27rem {\n height: 27rem !important;\n }\n .sm\\:h-28rem {\n height: 28rem !important;\n }\n .sm\\:h-29rem {\n height: 29rem !important;\n }\n .sm\\:h-30rem {\n height: 30rem !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:h-full {\n height: 100% !important;\n }\n .md\\:h-screen {\n height: 100vh !important;\n }\n .md\\:h-auto {\n height: auto !important;\n }\n .md\\:h-1rem {\n height: 1rem !important;\n }\n .md\\:h-2rem {\n height: 2rem !important;\n }\n .md\\:h-3rem {\n height: 3rem !important;\n }\n .md\\:h-4rem {\n height: 4rem !important;\n }\n .md\\:h-5rem {\n height: 5rem !important;\n }\n .md\\:h-6rem {\n height: 6rem !important;\n }\n .md\\:h-7rem {\n height: 7rem !important;\n }\n .md\\:h-8rem {\n height: 8rem !important;\n }\n .md\\:h-9rem {\n height: 9rem !important;\n }\n .md\\:h-10rem {\n height: 10rem !important;\n }\n .md\\:h-11rem {\n height: 11rem !important;\n }\n .md\\:h-12rem {\n height: 12rem !important;\n }\n .md\\:h-13rem {\n height: 13rem !important;\n }\n .md\\:h-14rem {\n height: 14rem !important;\n }\n .md\\:h-15rem {\n height: 15rem !important;\n }\n .md\\:h-16rem {\n height: 16rem !important;\n }\n .md\\:h-17rem {\n height: 17rem !important;\n }\n .md\\:h-18rem {\n height: 18rem !important;\n }\n .md\\:h-19rem {\n height: 19rem !important;\n }\n .md\\:h-20rem {\n height: 20rem !important;\n }\n .md\\:h-21rem {\n height: 21rem !important;\n }\n .md\\:h-22rem {\n height: 22rem !important;\n }\n .md\\:h-23rem {\n height: 23rem !important;\n }\n .md\\:h-24rem {\n height: 24rem !important;\n }\n .md\\:h-25rem {\n height: 25rem !important;\n }\n .md\\:h-26rem {\n height: 26rem !important;\n }\n .md\\:h-27rem {\n height: 27rem !important;\n }\n .md\\:h-28rem {\n height: 28rem !important;\n }\n .md\\:h-29rem {\n height: 29rem !important;\n }\n .md\\:h-30rem {\n height: 30rem !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:h-full {\n height: 100% !important;\n }\n .lg\\:h-screen {\n height: 100vh !important;\n }\n .lg\\:h-auto {\n height: auto !important;\n }\n .lg\\:h-1rem {\n height: 1rem !important;\n }\n .lg\\:h-2rem {\n height: 2rem !important;\n }\n .lg\\:h-3rem {\n height: 3rem !important;\n }\n .lg\\:h-4rem {\n height: 4rem !important;\n }\n .lg\\:h-5rem {\n height: 5rem !important;\n }\n .lg\\:h-6rem {\n height: 6rem !important;\n }\n .lg\\:h-7rem {\n height: 7rem !important;\n }\n .lg\\:h-8rem {\n height: 8rem !important;\n }\n .lg\\:h-9rem {\n height: 9rem !important;\n }\n .lg\\:h-10rem {\n height: 10rem !important;\n }\n .lg\\:h-11rem {\n height: 11rem !important;\n }\n .lg\\:h-12rem {\n height: 12rem !important;\n }\n .lg\\:h-13rem {\n height: 13rem !important;\n }\n .lg\\:h-14rem {\n height: 14rem !important;\n }\n .lg\\:h-15rem {\n height: 15rem !important;\n }\n .lg\\:h-16rem {\n height: 16rem !important;\n }\n .lg\\:h-17rem {\n height: 17rem !important;\n }\n .lg\\:h-18rem {\n height: 18rem !important;\n }\n .lg\\:h-19rem {\n height: 19rem !important;\n }\n .lg\\:h-20rem {\n height: 20rem !important;\n }\n .lg\\:h-21rem {\n height: 21rem !important;\n }\n .lg\\:h-22rem {\n height: 22rem !important;\n }\n .lg\\:h-23rem {\n height: 23rem !important;\n }\n .lg\\:h-24rem {\n height: 24rem !important;\n }\n .lg\\:h-25rem {\n height: 25rem !important;\n }\n .lg\\:h-26rem {\n height: 26rem !important;\n }\n .lg\\:h-27rem {\n height: 27rem !important;\n }\n .lg\\:h-28rem {\n height: 28rem !important;\n }\n .lg\\:h-29rem {\n height: 29rem !important;\n }\n .lg\\:h-30rem {\n height: 30rem !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:h-full {\n height: 100% !important;\n }\n .xl\\:h-screen {\n height: 100vh !important;\n }\n .xl\\:h-auto {\n height: auto !important;\n }\n .xl\\:h-1rem {\n height: 1rem !important;\n }\n .xl\\:h-2rem {\n height: 2rem !important;\n }\n .xl\\:h-3rem {\n height: 3rem !important;\n }\n .xl\\:h-4rem {\n height: 4rem !important;\n }\n .xl\\:h-5rem {\n height: 5rem !important;\n }\n .xl\\:h-6rem {\n height: 6rem !important;\n }\n .xl\\:h-7rem {\n height: 7rem !important;\n }\n .xl\\:h-8rem {\n height: 8rem !important;\n }\n .xl\\:h-9rem {\n height: 9rem !important;\n }\n .xl\\:h-10rem {\n height: 10rem !important;\n }\n .xl\\:h-11rem {\n height: 11rem !important;\n }\n .xl\\:h-12rem {\n height: 12rem !important;\n }\n .xl\\:h-13rem {\n height: 13rem !important;\n }\n .xl\\:h-14rem {\n height: 14rem !important;\n }\n .xl\\:h-15rem {\n height: 15rem !important;\n }\n .xl\\:h-16rem {\n height: 16rem !important;\n }\n .xl\\:h-17rem {\n height: 17rem !important;\n }\n .xl\\:h-18rem {\n height: 18rem !important;\n }\n .xl\\:h-19rem {\n height: 19rem !important;\n }\n .xl\\:h-20rem {\n height: 20rem !important;\n }\n .xl\\:h-21rem {\n height: 21rem !important;\n }\n .xl\\:h-22rem {\n height: 22rem !important;\n }\n .xl\\:h-23rem {\n height: 23rem !important;\n }\n .xl\\:h-24rem {\n height: 24rem !important;\n }\n .xl\\:h-25rem {\n height: 25rem !important;\n }\n .xl\\:h-26rem {\n height: 26rem !important;\n }\n .xl\\:h-27rem {\n height: 27rem !important;\n }\n .xl\\:h-28rem {\n height: 28rem !important;\n }\n .xl\\:h-29rem {\n height: 29rem !important;\n }\n .xl\\:h-30rem {\n height: 30rem !important;\n }\n}\n.min-w-0 {\n min-width: 0px !important;\n}\n\n.min-w-full {\n min-width: 100% !important;\n}\n\n.min-w-screen {\n min-width: 100vw !important;\n}\n\n.min-w-min {\n min-width: -webkit-min-content !important;\n min-width: -moz-min-content !important;\n min-width: min-content !important;\n}\n\n.min-w-max {\n min-width: -webkit-max-content !important;\n min-width: -moz-max-content !important;\n min-width: max-content !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:min-w-0 {\n min-width: 0px !important;\n }\n .sm\\:min-w-full {\n min-width: 100% !important;\n }\n .sm\\:min-w-screen {\n min-width: 100vw !important;\n }\n .sm\\:min-w-min {\n min-width: -webkit-min-content !important;\n min-width: -moz-min-content !important;\n min-width: min-content !important;\n }\n .sm\\:min-w-max {\n min-width: -webkit-max-content !important;\n min-width: -moz-max-content !important;\n min-width: max-content !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:min-w-0 {\n min-width: 0px !important;\n }\n .md\\:min-w-full {\n min-width: 100% !important;\n }\n .md\\:min-w-screen {\n min-width: 100vw !important;\n }\n .md\\:min-w-min {\n min-width: -webkit-min-content !important;\n min-width: -moz-min-content !important;\n min-width: min-content !important;\n }\n .md\\:min-w-max {\n min-width: -webkit-max-content !important;\n min-width: -moz-max-content !important;\n min-width: max-content !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:min-w-0 {\n min-width: 0px !important;\n }\n .lg\\:min-w-full {\n min-width: 100% !important;\n }\n .lg\\:min-w-screen {\n min-width: 100vw !important;\n }\n .lg\\:min-w-min {\n min-width: -webkit-min-content !important;\n min-width: -moz-min-content !important;\n min-width: min-content !important;\n }\n .lg\\:min-w-max {\n min-width: -webkit-max-content !important;\n min-width: -moz-max-content !important;\n min-width: max-content !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:min-w-0 {\n min-width: 0px !important;\n }\n .xl\\:min-w-full {\n min-width: 100% !important;\n }\n .xl\\:min-w-screen {\n min-width: 100vw !important;\n }\n .xl\\:min-w-min {\n min-width: -webkit-min-content !important;\n min-width: -moz-min-content !important;\n min-width: min-content !important;\n }\n .xl\\:min-w-max {\n min-width: -webkit-max-content !important;\n min-width: -moz-max-content !important;\n min-width: max-content !important;\n }\n}\n.max-w-0 {\n max-width: 0px !important;\n}\n\n.max-w-full {\n max-width: 100% !important;\n}\n\n.max-w-screen {\n max-width: 100vw !important;\n}\n\n.max-w-min {\n max-width: -webkit-min-content !important;\n max-width: -moz-min-content !important;\n max-width: min-content !important;\n}\n\n.max-w-max {\n max-width: -webkit-max-content !important;\n max-width: -moz-max-content !important;\n max-width: max-content !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:max-w-0 {\n max-width: 0px !important;\n }\n .sm\\:max-w-full {\n max-width: 100% !important;\n }\n .sm\\:max-w-screen {\n max-width: 100vw !important;\n }\n .sm\\:max-w-min {\n max-width: -webkit-min-content !important;\n max-width: -moz-min-content !important;\n max-width: min-content !important;\n }\n .sm\\:max-w-max {\n max-width: -webkit-max-content !important;\n max-width: -moz-max-content !important;\n max-width: max-content !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:max-w-0 {\n max-width: 0px !important;\n }\n .md\\:max-w-full {\n max-width: 100% !important;\n }\n .md\\:max-w-screen {\n max-width: 100vw !important;\n }\n .md\\:max-w-min {\n max-width: -webkit-min-content !important;\n max-width: -moz-min-content !important;\n max-width: min-content !important;\n }\n .md\\:max-w-max {\n max-width: -webkit-max-content !important;\n max-width: -moz-max-content !important;\n max-width: max-content !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:max-w-0 {\n max-width: 0px !important;\n }\n .lg\\:max-w-full {\n max-width: 100% !important;\n }\n .lg\\:max-w-screen {\n max-width: 100vw !important;\n }\n .lg\\:max-w-min {\n max-width: -webkit-min-content !important;\n max-width: -moz-min-content !important;\n max-width: min-content !important;\n }\n .lg\\:max-w-max {\n max-width: -webkit-max-content !important;\n max-width: -moz-max-content !important;\n max-width: max-content !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:max-w-0 {\n max-width: 0px !important;\n }\n .xl\\:max-w-full {\n max-width: 100% !important;\n }\n .xl\\:max-w-screen {\n max-width: 100vw !important;\n }\n .xl\\:max-w-min {\n max-width: -webkit-min-content !important;\n max-width: -moz-min-content !important;\n max-width: min-content !important;\n }\n .xl\\:max-w-max {\n max-width: -webkit-max-content !important;\n max-width: -moz-max-content !important;\n max-width: max-content !important;\n }\n}\n.min-h-0 {\n min-height: 0px !important;\n}\n\n.min-h-full {\n min-height: 100% !important;\n}\n\n.min-h-screen {\n min-height: 100vh !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:min-h-0 {\n min-height: 0px !important;\n }\n .sm\\:min-h-full {\n min-height: 100% !important;\n }\n .sm\\:min-h-screen {\n min-height: 100vh !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:min-h-0 {\n min-height: 0px !important;\n }\n .md\\:min-h-full {\n min-height: 100% !important;\n }\n .md\\:min-h-screen {\n min-height: 100vh !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:min-h-0 {\n min-height: 0px !important;\n }\n .lg\\:min-h-full {\n min-height: 100% !important;\n }\n .lg\\:min-h-screen {\n min-height: 100vh !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:min-h-0 {\n min-height: 0px !important;\n }\n .xl\\:min-h-full {\n min-height: 100% !important;\n }\n .xl\\:min-h-screen {\n min-height: 100vh !important;\n }\n}\n.max-h-0 {\n max-height: 0px !important;\n}\n\n.max-h-full {\n max-height: 100% !important;\n}\n\n.max-h-screen {\n max-height: 100vh !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:max-h-0 {\n max-height: 0px !important;\n }\n .sm\\:max-h-full {\n max-height: 100% !important;\n }\n .sm\\:max-h-screen {\n max-height: 100vh !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:max-h-0 {\n max-height: 0px !important;\n }\n .md\\:max-h-full {\n max-height: 100% !important;\n }\n .md\\:max-h-screen {\n max-height: 100vh !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:max-h-0 {\n max-height: 0px !important;\n }\n .lg\\:max-h-full {\n max-height: 100% !important;\n }\n .lg\\:max-h-screen {\n max-height: 100vh !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:max-h-0 {\n max-height: 0px !important;\n }\n .xl\\:max-h-full {\n max-height: 100% !important;\n }\n .xl\\:max-h-screen {\n max-height: 100vh !important;\n }\n}\n.static {\n position: static !important;\n}\n\n.fixed {\n position: fixed !important;\n}\n\n.absolute {\n position: absolute !important;\n}\n\n.relative {\n position: relative !important;\n}\n\n.sticky {\n position: -webkit-sticky !important;\n position: sticky !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:static {\n position: static !important;\n }\n .sm\\:fixed {\n position: fixed !important;\n }\n .sm\\:absolute {\n position: absolute !important;\n }\n .sm\\:relative {\n position: relative !important;\n }\n .sm\\:sticky {\n position: -webkit-sticky !important;\n position: sticky !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:static {\n position: static !important;\n }\n .md\\:fixed {\n position: fixed !important;\n }\n .md\\:absolute {\n position: absolute !important;\n }\n .md\\:relative {\n position: relative !important;\n }\n .md\\:sticky {\n position: -webkit-sticky !important;\n position: sticky !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:static {\n position: static !important;\n }\n .lg\\:fixed {\n position: fixed !important;\n }\n .lg\\:absolute {\n position: absolute !important;\n }\n .lg\\:relative {\n position: relative !important;\n }\n .lg\\:sticky {\n position: -webkit-sticky !important;\n position: sticky !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:static {\n position: static !important;\n }\n .xl\\:fixed {\n position: fixed !important;\n }\n .xl\\:absolute {\n position: absolute !important;\n }\n .xl\\:relative {\n position: relative !important;\n }\n .xl\\:sticky {\n position: -webkit-sticky !important;\n position: sticky !important;\n }\n}\n.top-auto {\n top: auto !important;\n}\n\n.top-0 {\n top: 0px !important;\n}\n\n.top-50 {\n top: 50% !important;\n}\n\n.top-100 {\n top: 100% !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:top-auto {\n top: auto !important;\n }\n .sm\\:top-0 {\n top: 0px !important;\n }\n .sm\\:top-50 {\n top: 50% !important;\n }\n .sm\\:top-100 {\n top: 100% !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:top-auto {\n top: auto !important;\n }\n .md\\:top-0 {\n top: 0px !important;\n }\n .md\\:top-50 {\n top: 50% !important;\n }\n .md\\:top-100 {\n top: 100% !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:top-auto {\n top: auto !important;\n }\n .lg\\:top-0 {\n top: 0px !important;\n }\n .lg\\:top-50 {\n top: 50% !important;\n }\n .lg\\:top-100 {\n top: 100% !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:top-auto {\n top: auto !important;\n }\n .xl\\:top-0 {\n top: 0px !important;\n }\n .xl\\:top-50 {\n top: 50% !important;\n }\n .xl\\:top-100 {\n top: 100% !important;\n }\n}\n.left-auto {\n left: auto !important;\n}\n\n.left-0 {\n left: 0px !important;\n}\n\n.left-50 {\n left: 50% !important;\n}\n\n.left-100 {\n left: 100% !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:left-auto {\n left: auto !important;\n }\n .sm\\:left-0 {\n left: 0px !important;\n }\n .sm\\:left-50 {\n left: 50% !important;\n }\n .sm\\:left-100 {\n left: 100% !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:left-auto {\n left: auto !important;\n }\n .md\\:left-0 {\n left: 0px !important;\n }\n .md\\:left-50 {\n left: 50% !important;\n }\n .md\\:left-100 {\n left: 100% !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:left-auto {\n left: auto !important;\n }\n .lg\\:left-0 {\n left: 0px !important;\n }\n .lg\\:left-50 {\n left: 50% !important;\n }\n .lg\\:left-100 {\n left: 100% !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:left-auto {\n left: auto !important;\n }\n .xl\\:left-0 {\n left: 0px !important;\n }\n .xl\\:left-50 {\n left: 50% !important;\n }\n .xl\\:left-100 {\n left: 100% !important;\n }\n}\n.right-auto {\n right: auto !important;\n}\n\n.right-0 {\n right: 0px !important;\n}\n\n.right-50 {\n right: 50% !important;\n}\n\n.right-100 {\n right: 100% !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:right-auto {\n right: auto !important;\n }\n .sm\\:right-0 {\n right: 0px !important;\n }\n .sm\\:right-50 {\n right: 50% !important;\n }\n .sm\\:right-100 {\n right: 100% !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:right-auto {\n right: auto !important;\n }\n .md\\:right-0 {\n right: 0px !important;\n }\n .md\\:right-50 {\n right: 50% !important;\n }\n .md\\:right-100 {\n right: 100% !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:right-auto {\n right: auto !important;\n }\n .lg\\:right-0 {\n right: 0px !important;\n }\n .lg\\:right-50 {\n right: 50% !important;\n }\n .lg\\:right-100 {\n right: 100% !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:right-auto {\n right: auto !important;\n }\n .xl\\:right-0 {\n right: 0px !important;\n }\n .xl\\:right-50 {\n right: 50% !important;\n }\n .xl\\:right-100 {\n right: 100% !important;\n }\n}\n.bottom-auto {\n bottom: auto !important;\n}\n\n.bottom-0 {\n bottom: 0px !important;\n}\n\n.bottom-50 {\n bottom: 50% !important;\n}\n\n.bottom-100 {\n bottom: 100% !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:bottom-auto {\n bottom: auto !important;\n }\n .sm\\:bottom-0 {\n bottom: 0px !important;\n }\n .sm\\:bottom-50 {\n bottom: 50% !important;\n }\n .sm\\:bottom-100 {\n bottom: 100% !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:bottom-auto {\n bottom: auto !important;\n }\n .md\\:bottom-0 {\n bottom: 0px !important;\n }\n .md\\:bottom-50 {\n bottom: 50% !important;\n }\n .md\\:bottom-100 {\n bottom: 100% !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:bottom-auto {\n bottom: auto !important;\n }\n .lg\\:bottom-0 {\n bottom: 0px !important;\n }\n .lg\\:bottom-50 {\n bottom: 50% !important;\n }\n .lg\\:bottom-100 {\n bottom: 100% !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:bottom-auto {\n bottom: auto !important;\n }\n .xl\\:bottom-0 {\n bottom: 0px !important;\n }\n .xl\\:bottom-50 {\n bottom: 50% !important;\n }\n .xl\\:bottom-100 {\n bottom: 100% !important;\n }\n}\n.overflow-auto {\n overflow: auto !important;\n}\n\n.overflow-hidden {\n overflow: hidden !important;\n}\n\n.overflow-visible {\n overflow: visible !important;\n}\n\n.overflow-scroll {\n overflow: scroll !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:overflow-auto {\n overflow: auto !important;\n }\n .sm\\:overflow-hidden {\n overflow: hidden !important;\n }\n .sm\\:overflow-visible {\n overflow: visible !important;\n }\n .sm\\:overflow-scroll {\n overflow: scroll !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:overflow-auto {\n overflow: auto !important;\n }\n .md\\:overflow-hidden {\n overflow: hidden !important;\n }\n .md\\:overflow-visible {\n overflow: visible !important;\n }\n .md\\:overflow-scroll {\n overflow: scroll !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:overflow-auto {\n overflow: auto !important;\n }\n .lg\\:overflow-hidden {\n overflow: hidden !important;\n }\n .lg\\:overflow-visible {\n overflow: visible !important;\n }\n .lg\\:overflow-scroll {\n overflow: scroll !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:overflow-auto {\n overflow: auto !important;\n }\n .xl\\:overflow-hidden {\n overflow: hidden !important;\n }\n .xl\\:overflow-visible {\n overflow: visible !important;\n }\n .xl\\:overflow-scroll {\n overflow: scroll !important;\n }\n}\n.overflow-x-auto {\n overflow-x: auto !important;\n}\n\n.overflow-x-hidden {\n overflow-x: hidden !important;\n}\n\n.overflow-x-visible {\n overflow-x: visible !important;\n}\n\n.overflow-x-scroll {\n overflow-x: scroll !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:overflow-x-auto {\n overflow-x: auto !important;\n }\n .sm\\:overflow-x-hidden {\n overflow-x: hidden !important;\n }\n .sm\\:overflow-x-visible {\n overflow-x: visible !important;\n }\n .sm\\:overflow-x-scroll {\n overflow-x: scroll !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:overflow-x-auto {\n overflow-x: auto !important;\n }\n .md\\:overflow-x-hidden {\n overflow-x: hidden !important;\n }\n .md\\:overflow-x-visible {\n overflow-x: visible !important;\n }\n .md\\:overflow-x-scroll {\n overflow-x: scroll !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:overflow-x-auto {\n overflow-x: auto !important;\n }\n .lg\\:overflow-x-hidden {\n overflow-x: hidden !important;\n }\n .lg\\:overflow-x-visible {\n overflow-x: visible !important;\n }\n .lg\\:overflow-x-scroll {\n overflow-x: scroll !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:overflow-x-auto {\n overflow-x: auto !important;\n }\n .xl\\:overflow-x-hidden {\n overflow-x: hidden !important;\n }\n .xl\\:overflow-x-visible {\n overflow-x: visible !important;\n }\n .xl\\:overflow-x-scroll {\n overflow-x: scroll !important;\n }\n}\n.overflow-y-auto {\n overflow-y: auto !important;\n}\n\n.overflow-y-hidden {\n overflow-y: hidden !important;\n}\n\n.overflow-y-visible {\n overflow-y: visible !important;\n}\n\n.overflow-y-scroll {\n overflow-y: scroll !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:overflow-y-auto {\n overflow-y: auto !important;\n }\n .sm\\:overflow-y-hidden {\n overflow-y: hidden !important;\n }\n .sm\\:overflow-y-visible {\n overflow-y: visible !important;\n }\n .sm\\:overflow-y-scroll {\n overflow-y: scroll !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:overflow-y-auto {\n overflow-y: auto !important;\n }\n .md\\:overflow-y-hidden {\n overflow-y: hidden !important;\n }\n .md\\:overflow-y-visible {\n overflow-y: visible !important;\n }\n .md\\:overflow-y-scroll {\n overflow-y: scroll !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:overflow-y-auto {\n overflow-y: auto !important;\n }\n .lg\\:overflow-y-hidden {\n overflow-y: hidden !important;\n }\n .lg\\:overflow-y-visible {\n overflow-y: visible !important;\n }\n .lg\\:overflow-y-scroll {\n overflow-y: scroll !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:overflow-y-auto {\n overflow-y: auto !important;\n }\n .xl\\:overflow-y-hidden {\n overflow-y: hidden !important;\n }\n .xl\\:overflow-y-visible {\n overflow-y: visible !important;\n }\n .xl\\:overflow-y-scroll {\n overflow-y: scroll !important;\n }\n}\n.z-auto {\n z-index: auto !important;\n}\n\n.z-0 {\n z-index: 0 !important;\n}\n\n.z-1 {\n z-index: 1 !important;\n}\n\n.z-2 {\n z-index: 2 !important;\n}\n\n.z-3 {\n z-index: 3 !important;\n}\n\n.z-4 {\n z-index: 4 !important;\n}\n\n.z-5 {\n z-index: 5 !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:z-auto {\n z-index: auto !important;\n }\n .sm\\:z-0 {\n z-index: 0 !important;\n }\n .sm\\:z-1 {\n z-index: 1 !important;\n }\n .sm\\:z-2 {\n z-index: 2 !important;\n }\n .sm\\:z-3 {\n z-index: 3 !important;\n }\n .sm\\:z-4 {\n z-index: 4 !important;\n }\n .sm\\:z-5 {\n z-index: 5 !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:z-auto {\n z-index: auto !important;\n }\n .md\\:z-0 {\n z-index: 0 !important;\n }\n .md\\:z-1 {\n z-index: 1 !important;\n }\n .md\\:z-2 {\n z-index: 2 !important;\n }\n .md\\:z-3 {\n z-index: 3 !important;\n }\n .md\\:z-4 {\n z-index: 4 !important;\n }\n .md\\:z-5 {\n z-index: 5 !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:z-auto {\n z-index: auto !important;\n }\n .lg\\:z-0 {\n z-index: 0 !important;\n }\n .lg\\:z-1 {\n z-index: 1 !important;\n }\n .lg\\:z-2 {\n z-index: 2 !important;\n }\n .lg\\:z-3 {\n z-index: 3 !important;\n }\n .lg\\:z-4 {\n z-index: 4 !important;\n }\n .lg\\:z-5 {\n z-index: 5 !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:z-auto {\n z-index: auto !important;\n }\n .xl\\:z-0 {\n z-index: 0 !important;\n }\n .xl\\:z-1 {\n z-index: 1 !important;\n }\n .xl\\:z-2 {\n z-index: 2 !important;\n }\n .xl\\:z-3 {\n z-index: 3 !important;\n }\n .xl\\:z-4 {\n z-index: 4 !important;\n }\n .xl\\:z-5 {\n z-index: 5 !important;\n }\n}\n.bg-repeat {\n background-repeat: repeat !important;\n}\n\n.bg-no-repeat {\n background-repeat: no-repeat !important;\n}\n\n.bg-repeat-x {\n background-repeat: repeat-x !important;\n}\n\n.bg-repeat-y {\n background-repeat: repeat-y !important;\n}\n\n.bg-repeat-round {\n background-repeat: round !important;\n}\n\n.bg-repeat-space {\n background-repeat: space !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:bg-repeat {\n background-repeat: repeat !important;\n }\n .sm\\:bg-no-repeat {\n background-repeat: no-repeat !important;\n }\n .sm\\:bg-repeat-x {\n background-repeat: repeat-x !important;\n }\n .sm\\:bg-repeat-y {\n background-repeat: repeat-y !important;\n }\n .sm\\:bg-repeat-round {\n background-repeat: round !important;\n }\n .sm\\:bg-repeat-space {\n background-repeat: space !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:bg-repeat {\n background-repeat: repeat !important;\n }\n .md\\:bg-no-repeat {\n background-repeat: no-repeat !important;\n }\n .md\\:bg-repeat-x {\n background-repeat: repeat-x !important;\n }\n .md\\:bg-repeat-y {\n background-repeat: repeat-y !important;\n }\n .md\\:bg-repeat-round {\n background-repeat: round !important;\n }\n .md\\:bg-repeat-space {\n background-repeat: space !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:bg-repeat {\n background-repeat: repeat !important;\n }\n .lg\\:bg-no-repeat {\n background-repeat: no-repeat !important;\n }\n .lg\\:bg-repeat-x {\n background-repeat: repeat-x !important;\n }\n .lg\\:bg-repeat-y {\n background-repeat: repeat-y !important;\n }\n .lg\\:bg-repeat-round {\n background-repeat: round !important;\n }\n .lg\\:bg-repeat-space {\n background-repeat: space !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:bg-repeat {\n background-repeat: repeat !important;\n }\n .xl\\:bg-no-repeat {\n background-repeat: no-repeat !important;\n }\n .xl\\:bg-repeat-x {\n background-repeat: repeat-x !important;\n }\n .xl\\:bg-repeat-y {\n background-repeat: repeat-y !important;\n }\n .xl\\:bg-repeat-round {\n background-repeat: round !important;\n }\n .xl\\:bg-repeat-space {\n background-repeat: space !important;\n }\n}\n.bg-auto {\n background-size: auto !important;\n}\n\n.bg-cover {\n background-size: cover !important;\n}\n\n.bg-contain {\n background-size: contain !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:bg-auto {\n background-size: auto !important;\n }\n .sm\\:bg-cover {\n background-size: cover !important;\n }\n .sm\\:bg-contain {\n background-size: contain !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:bg-auto {\n background-size: auto !important;\n }\n .md\\:bg-cover {\n background-size: cover !important;\n }\n .md\\:bg-contain {\n background-size: contain !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:bg-auto {\n background-size: auto !important;\n }\n .lg\\:bg-cover {\n background-size: cover !important;\n }\n .lg\\:bg-contain {\n background-size: contain !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:bg-auto {\n background-size: auto !important;\n }\n .xl\\:bg-cover {\n background-size: cover !important;\n }\n .xl\\:bg-contain {\n background-size: contain !important;\n }\n}\n.bg-bottom {\n background-position: bottom !important;\n}\n\n.bg-center {\n background-position: center !important;\n}\n\n.bg-left {\n background-position: left !important;\n}\n\n.bg-left-bottom {\n background-position: left bottom !important;\n}\n\n.bg-left-top {\n background-position: left top !important;\n}\n\n.bg-right {\n background-position: right !important;\n}\n\n.bg-right-bottom {\n background-position: right bottom !important;\n}\n\n.bg-right-top {\n background-position: right top !important;\n}\n\n.bg-top {\n background-position: top !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:bg-bottom {\n background-position: bottom !important;\n }\n .sm\\:bg-center {\n background-position: center !important;\n }\n .sm\\:bg-left {\n background-position: left !important;\n }\n .sm\\:bg-left-bottom {\n background-position: left bottom !important;\n }\n .sm\\:bg-left-top {\n background-position: left top !important;\n }\n .sm\\:bg-right {\n background-position: right !important;\n }\n .sm\\:bg-right-bottom {\n background-position: right bottom !important;\n }\n .sm\\:bg-right-top {\n background-position: right top !important;\n }\n .sm\\:bg-top {\n background-position: top !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:bg-bottom {\n background-position: bottom !important;\n }\n .md\\:bg-center {\n background-position: center !important;\n }\n .md\\:bg-left {\n background-position: left !important;\n }\n .md\\:bg-left-bottom {\n background-position: left bottom !important;\n }\n .md\\:bg-left-top {\n background-position: left top !important;\n }\n .md\\:bg-right {\n background-position: right !important;\n }\n .md\\:bg-right-bottom {\n background-position: right bottom !important;\n }\n .md\\:bg-right-top {\n background-position: right top !important;\n }\n .md\\:bg-top {\n background-position: top !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:bg-bottom {\n background-position: bottom !important;\n }\n .lg\\:bg-center {\n background-position: center !important;\n }\n .lg\\:bg-left {\n background-position: left !important;\n }\n .lg\\:bg-left-bottom {\n background-position: left bottom !important;\n }\n .lg\\:bg-left-top {\n background-position: left top !important;\n }\n .lg\\:bg-right {\n background-position: right !important;\n }\n .lg\\:bg-right-bottom {\n background-position: right bottom !important;\n }\n .lg\\:bg-right-top {\n background-position: right top !important;\n }\n .lg\\:bg-top {\n background-position: top !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:bg-bottom {\n background-position: bottom !important;\n }\n .xl\\:bg-center {\n background-position: center !important;\n }\n .xl\\:bg-left {\n background-position: left !important;\n }\n .xl\\:bg-left-bottom {\n background-position: left bottom !important;\n }\n .xl\\:bg-left-top {\n background-position: left top !important;\n }\n .xl\\:bg-right {\n background-position: right !important;\n }\n .xl\\:bg-right-bottom {\n background-position: right bottom !important;\n }\n .xl\\:bg-right-top {\n background-position: right top !important;\n }\n .xl\\:bg-top {\n background-position: top !important;\n }\n}\n.select-none {\n -webkit-user-select: none !important;\n -moz-user-select: none !important;\n -ms-user-select: none !important;\n user-select: none !important;\n}\n\n.select-text {\n -webkit-user-select: text !important;\n -moz-user-select: text !important;\n -ms-user-select: text !important;\n user-select: text !important;\n}\n\n.select-all {\n -webkit-user-select: all !important;\n -moz-user-select: all !important;\n user-select: all !important;\n}\n\n.select-auto {\n -webkit-user-select: auto !important;\n -moz-user-select: auto !important;\n -ms-user-select: auto !important;\n user-select: auto !important;\n}\n\n.list-none {\n list-style: none !important;\n}\n\n.list-disc {\n list-style: disc !important;\n}\n\n.list-decimal {\n list-style: decimal !important;\n}\n\n.appearance-none {\n -webkit-appearance: none !important;\n -moz-appearance: none !important;\n appearance: none !important;\n}\n\n.outline-none {\n outline: none !important;\n}\n\n.pointer-events-none {\n pointer-events: none !important;\n}\n\n.pointer-events-auto {\n pointer-events: auto !important;\n}\n\n.cursor-auto {\n cursor: auto !important;\n}\n\n.cursor-pointer {\n cursor: pointer !important;\n}\n\n.cursor-wait {\n cursor: wait !important;\n}\n\n.cursor-move {\n cursor: move !important;\n}\n\n.select-none {\n -webkit-user-select: none !important;\n -moz-user-select: none !important;\n -ms-user-select: none !important;\n user-select: none !important;\n}\n\n.select-text {\n -webkit-user-select: text !important;\n -moz-user-select: text !important;\n -ms-user-select: text !important;\n user-select: text !important;\n}\n\n.select-all {\n -webkit-user-select: all !important;\n -moz-user-select: all !important;\n user-select: all !important;\n}\n\n.select-auto {\n -webkit-user-select: auto !important;\n -moz-user-select: auto !important;\n -ms-user-select: auto !important;\n user-select: auto !important;\n}\n\n.opacity-0 {\n opacity: 0 !important;\n}\n\n.opacity-10 {\n opacity: .1 !important;\n}\n\n.opacity-20 {\n opacity: .2 !important;\n}\n\n.opacity-30 {\n opacity: .3 !important;\n}\n\n.opacity-40 {\n opacity: .4 !important;\n}\n\n.opacity-50 {\n opacity: .5 !important;\n}\n\n.opacity-60 {\n opacity: .6 !important;\n}\n\n.opacity-70 {\n opacity: .7 !important;\n}\n\n.opacity-80 {\n opacity: .8 !important;\n}\n\n.opacity-90 {\n opacity: .9 !important;\n}\n\n.opacity-100 {\n opacity: 1 !important;\n}\n\n.transition-none {\n transition-property: none !important;\n}\n\n.transition-all {\n transition-property: all !important;\n}\n\n.transition-colors {\n transition-property: background-color,border-color,color !important;\n}\n\n.transition-transform {\n transition-property: transform !important;\n}\n\n.transition-duration-100 {\n transition-duration: 100ms !important;\n}\n\n.transition-duration-150 {\n transition-duration: 150ms !important;\n}\n\n.transition-duration-200 {\n transition-duration: 200ms !important;\n}\n\n.transition-duration-300 {\n transition-duration: 300ms !important;\n}\n\n.transition-duration-400 {\n transition-duration: 400ms !important;\n}\n\n.transition-duration-500 {\n transition-duration: 500ms !important;\n}\n\n.transition-duration-1000 {\n transition-duration: 1000ms !important;\n}\n\n.transition-duration-2000 {\n transition-duration: 2000ms !important;\n}\n\n.transition-duration-3000 {\n transition-duration: 3000ms !important;\n}\n\n.transition-linear {\n transition-timing-function: linear !important;\n}\n\n.transition-ease-in {\n transition-timing-function: cubic-bezier(0.4, 0, 1, 1) !important;\n}\n\n.transition-ease-out {\n transition-timing-function: cubic-bezier(0, 0, 0.2, 1) !important;\n}\n\n.transition-ease-in-out {\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;\n}\n\n.transition-delay-100 {\n transition-delay: 100ms !important;\n}\n\n.transition-delay-150 {\n transition-delay: 150ms !important;\n}\n\n.transition-delay-200 {\n transition-delay: 200ms !important;\n}\n\n.transition-delay-300 {\n transition-delay: 300ms !important;\n}\n\n.transition-delay-400 {\n transition-delay: 400ms !important;\n}\n\n.transition-delay-500 {\n transition-delay: 500ms !important;\n}\n\n.transition-delay-1000 {\n transition-delay: 1000ms !important;\n}\n\n.translate-x-0 {\n transform: translateX(0%) !important;\n}\n\n.translate-x-100 {\n transform: translateX(100%) !important;\n}\n\n.-translate-x-100 {\n transform: translateX(-100%) !important;\n}\n\n.translate-y-0 {\n transform: translateY(0%) !important;\n}\n\n.translate-y-100 {\n transform: translateY(100%) !important;\n}\n\n.-translate-y-100 {\n transform: translateY(-100%) !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:translate-x-0 {\n transform: translateX(0%) !important;\n }\n .sm\\:translate-x-100 {\n transform: translateX(100%) !important;\n }\n .sm\\:-translate-x-100 {\n transform: translateX(-100%) !important;\n }\n .sm\\:translate-y-0 {\n transform: translateY(0%) !important;\n }\n .sm\\:translate-y-100 {\n transform: translateY(100%) !important;\n }\n .sm\\:-translate-y-100 {\n transform: translateY(-100%) !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:translate-x-0 {\n transform: translateX(0%) !important;\n }\n .md\\:translate-x-100 {\n transform: translateX(100%) !important;\n }\n .md\\:-translate-x-100 {\n transform: translateX(-100%) !important;\n }\n .md\\:translate-y-0 {\n transform: translateY(0%) !important;\n }\n .md\\:translate-y-100 {\n transform: translateY(100%) !important;\n }\n .md\\:-translate-y-100 {\n transform: translateY(-100%) !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:translate-x-0 {\n transform: translateX(0%) !important;\n }\n .lg\\:translate-x-100 {\n transform: translateX(100%) !important;\n }\n .lg\\:-translate-x-100 {\n transform: translateX(-100%) !important;\n }\n .lg\\:translate-y-0 {\n transform: translateY(0%) !important;\n }\n .lg\\:translate-y-100 {\n transform: translateY(100%) !important;\n }\n .lg\\:-translate-y-100 {\n transform: translateY(-100%) !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:translate-x-0 {\n transform: translateX(0%) !important;\n }\n .xl\\:translate-x-100 {\n transform: translateX(100%) !important;\n }\n .xl\\:-translate-x-100 {\n transform: translateX(-100%) !important;\n }\n .xl\\:translate-y-0 {\n transform: translateY(0%) !important;\n }\n .xl\\:translate-y-100 {\n transform: translateY(100%) !important;\n }\n .xl\\:-translate-y-100 {\n transform: translateY(-100%) !important;\n }\n}\n.rotate-45 {\n transform: rotate(45deg) !important;\n}\n\n.-rotate-45 {\n transform: rotate(-45deg) !important;\n}\n\n.rotate-90 {\n transform: rotate(90deg) !important;\n}\n\n.-rotate-90 {\n transform: rotate(-90deg) !important;\n}\n\n.rotate-180 {\n transform: rotate(180deg) !important;\n}\n\n.-rotate-180 {\n transform: rotate(-180deg) !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:rotate-45 {\n transform: rotate(45deg) !important;\n }\n .sm\\:-rotate-45 {\n transform: rotate(-45deg) !important;\n }\n .sm\\:rotate-90 {\n transform: rotate(90deg) !important;\n }\n .sm\\:-rotate-90 {\n transform: rotate(-90deg) !important;\n }\n .sm\\:rotate-180 {\n transform: rotate(180deg) !important;\n }\n .sm\\:-rotate-180 {\n transform: rotate(-180deg) !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:rotate-45 {\n transform: rotate(45deg) !important;\n }\n .md\\:-rotate-45 {\n transform: rotate(-45deg) !important;\n }\n .md\\:rotate-90 {\n transform: rotate(90deg) !important;\n }\n .md\\:-rotate-90 {\n transform: rotate(-90deg) !important;\n }\n .md\\:rotate-180 {\n transform: rotate(180deg) !important;\n }\n .md\\:-rotate-180 {\n transform: rotate(-180deg) !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:rotate-45 {\n transform: rotate(45deg) !important;\n }\n .lg\\:-rotate-45 {\n transform: rotate(-45deg) !important;\n }\n .lg\\:rotate-90 {\n transform: rotate(90deg) !important;\n }\n .lg\\:-rotate-90 {\n transform: rotate(-90deg) !important;\n }\n .lg\\:rotate-180 {\n transform: rotate(180deg) !important;\n }\n .lg\\:-rotate-180 {\n transform: rotate(-180deg) !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:rotate-45 {\n transform: rotate(45deg) !important;\n }\n .xl\\:-rotate-45 {\n transform: rotate(-45deg) !important;\n }\n .xl\\:rotate-90 {\n transform: rotate(90deg) !important;\n }\n .xl\\:-rotate-90 {\n transform: rotate(-90deg) !important;\n }\n .xl\\:rotate-180 {\n transform: rotate(180deg) !important;\n }\n .xl\\:-rotate-180 {\n transform: rotate(-180deg) !important;\n }\n}\n.origin-center {\n transform-origin: center !important;\n}\n\n.origin-top {\n transform-origin: top !important;\n}\n\n.origin-top-right {\n transform-origin: top right !important;\n}\n\n.origin-right {\n transform-origin: right !important;\n}\n\n.origin-bottom-right {\n transform-origin: bottom right !important;\n}\n\n.origin-bottom {\n transform-origin: bottom !important;\n}\n\n.origin-bottom-left {\n transform-origin: bottom left !important;\n}\n\n.origin-left {\n transform-origin: left !important;\n}\n\n.origin-top-left {\n transform-origin: top-left !important;\n}\n\n@media screen and (min-width: 576px) {\n .sm\\:origin-center {\n transform-origin: center !important;\n }\n .sm\\:origin-top {\n transform-origin: top !important;\n }\n .sm\\:origin-top-right {\n transform-origin: top right !important;\n }\n .sm\\:origin-right {\n transform-origin: right !important;\n }\n .sm\\:origin-bottom-right {\n transform-origin: bottom right !important;\n }\n .sm\\:origin-bottom {\n transform-origin: bottom !important;\n }\n .sm\\:origin-bottom-left {\n transform-origin: bottom left !important;\n }\n .sm\\:origin-left {\n transform-origin: left !important;\n }\n .sm\\:origin-top-left {\n transform-origin: top-left !important;\n }\n}\n@media screen and (min-width: 768px) {\n .md\\:origin-center {\n transform-origin: center !important;\n }\n .md\\:origin-top {\n transform-origin: top !important;\n }\n .md\\:origin-top-right {\n transform-origin: top right !important;\n }\n .md\\:origin-right {\n transform-origin: right !important;\n }\n .md\\:origin-bottom-right {\n transform-origin: bottom right !important;\n }\n .md\\:origin-bottom {\n transform-origin: bottom !important;\n }\n .md\\:origin-bottom-left {\n transform-origin: bottom left !important;\n }\n .md\\:origin-left {\n transform-origin: left !important;\n }\n .md\\:origin-top-left {\n transform-origin: top-left !important;\n }\n}\n@media screen and (min-width: 992px) {\n .lg\\:origin-center {\n transform-origin: center !important;\n }\n .lg\\:origin-top {\n transform-origin: top !important;\n }\n .lg\\:origin-top-right {\n transform-origin: top right !important;\n }\n .lg\\:origin-right {\n transform-origin: right !important;\n }\n .lg\\:origin-bottom-right {\n transform-origin: bottom right !important;\n }\n .lg\\:origin-bottom {\n transform-origin: bottom !important;\n }\n .lg\\:origin-bottom-left {\n transform-origin: bottom left !important;\n }\n .lg\\:origin-left {\n transform-origin: left !important;\n }\n .lg\\:origin-top-left {\n transform-origin: top-left !important;\n }\n}\n@media screen and (min-width: 1200px) {\n .xl\\:origin-center {\n transform-origin: center !important;\n }\n .xl\\:origin-top {\n transform-origin: top !important;\n }\n .xl\\:origin-top-right {\n transform-origin: top right !important;\n }\n .xl\\:origin-right {\n transform-origin: right !important;\n }\n .xl\\:origin-bottom-right {\n transform-origin: bottom right !important;\n }\n .xl\\:origin-bottom {\n transform-origin: bottom !important;\n }\n .xl\\:origin-bottom-left {\n transform-origin: bottom left !important;\n }\n .xl\\:origin-left {\n transform-origin: left !important;\n }\n .xl\\:origin-top-left {\n transform-origin: top-left !important;\n }\n}\n@-webkit-keyframes fadein {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n@keyframes fadein {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n@-webkit-keyframes fadeout {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n}\n@keyframes fadeout {\n 0% {\n opacity: 1;\n }\n 100% {\n opacity: 0;\n }\n}\n@-webkit-keyframes scalein {\n 0% {\n opacity: 0;\n transform: scaleY(0.8);\n transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n }\n 100% {\n opacity: 1;\n transform: scaleY(1);\n }\n}\n@keyframes scalein {\n 0% {\n opacity: 0;\n transform: scaleY(0.8);\n transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n }\n 100% {\n opacity: 1;\n transform: scaleY(1);\n }\n}\n@-webkit-keyframes slidedown {\n 0% {\n max-height: 0;\n }\n 100% {\n max-height: auto;\n }\n}\n@keyframes slidedown {\n 0% {\n max-height: 0;\n }\n 100% {\n max-height: auto;\n }\n}\n@-webkit-keyframes slideup {\n 0% {\n max-height: 1000px;\n }\n 100% {\n max-height: 0;\n }\n}\n@keyframes slideup {\n 0% {\n max-height: 1000px;\n }\n 100% {\n max-height: 0;\n }\n}\n@-webkit-keyframes fadeinleft {\n 0% {\n opacity: 0;\n transform: translateX(-100%);\n transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n }\n 100% {\n opacity: 1;\n transform: translateX(0%);\n }\n}\n@keyframes fadeinleft {\n 0% {\n opacity: 0;\n transform: translateX(-100%);\n transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n }\n 100% {\n opacity: 1;\n transform: translateX(0%);\n }\n}\n@-webkit-keyframes fadeoutleft {\n 0% {\n opacity: 1;\n transform: translateX(0%);\n transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n }\n 100% {\n opacity: 0;\n transform: translateX(-100%);\n }\n}\n@keyframes fadeoutleft {\n 0% {\n opacity: 1;\n transform: translateX(0%);\n transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n }\n 100% {\n opacity: 0;\n transform: translateX(-100%);\n }\n}\n@-webkit-keyframes fadeinright {\n 0% {\n opacity: 0;\n transform: translateX(100%);\n transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n }\n 100% {\n opacity: 1;\n transform: translateX(0%);\n }\n}\n@keyframes fadeinright {\n 0% {\n opacity: 0;\n transform: translateX(100%);\n transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n }\n 100% {\n opacity: 1;\n transform: translateX(0%);\n }\n}\n@-webkit-keyframes fadeoutright {\n 0% {\n opacity: 1;\n transform: translateX(0%);\n transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n }\n 100% {\n opacity: 0;\n transform: translateX(100%);\n }\n}\n@keyframes fadeoutright {\n 0% {\n opacity: 1;\n transform: translateX(0%);\n transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n }\n 100% {\n opacity: 0;\n transform: translateX(100%);\n }\n}\n@-webkit-keyframes fadeinup {\n 0% {\n opacity: 0;\n transform: translateY(-100%);\n transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n }\n 100% {\n opacity: 1;\n transform: translateY(0%);\n }\n}\n@keyframes fadeinup {\n 0% {\n opacity: 0;\n transform: translateY(-100%);\n transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n }\n 100% {\n opacity: 1;\n transform: translateY(0%);\n }\n}\n@-webkit-keyframes fadeoutup {\n 0% {\n opacity: 1;\n transform: translateY(0%);\n transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n }\n 100% {\n opacity: 0;\n transform: translateY(-100%);\n }\n}\n@keyframes fadeoutup {\n 0% {\n opacity: 1;\n transform: translateY(0%);\n transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n }\n 100% {\n opacity: 0;\n transform: translateY(-100%);\n }\n}\n@-webkit-keyframes fadeindown {\n 0% {\n opacity: 0;\n transform: translateY(100%);\n transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n }\n 100% {\n opacity: 1;\n transform: translateY(0%);\n }\n}\n@keyframes fadeindown {\n 0% {\n opacity: 0;\n transform: translateY(100%);\n transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n }\n 100% {\n opacity: 1;\n transform: translateY(0%);\n }\n}\n@-webkit-keyframes fadeoutdown {\n 0% {\n opacity: 1;\n transform: translateY(0%);\n transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n }\n 100% {\n opacity: 0;\n transform: translateY(100%);\n }\n}\n@keyframes fadeoutdown {\n 0% {\n opacity: 1;\n transform: translateY(0%);\n transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n }\n 100% {\n opacity: 0;\n transform: translateY(100%);\n }\n}\n@-webkit-keyframes animate-width {\n 0% {\n width: 0;\n }\n 100% {\n width: 100%;\n }\n}\n@keyframes animate-width {\n 0% {\n width: 0;\n }\n 100% {\n width: 100%;\n }\n}\n.fadein {\n -webkit-animation: fadein 0.15s linear;\n animation: fadein 0.15s linear;\n}\n\n.fadeout {\n -webkit-animation: fadeout 0.15s linear;\n animation: fadeout 0.15s linear;\n}\n\n.slidedown {\n -webkit-animation: slidedown 0.45s ease-in-out;\n animation: slidedown 0.45s ease-in-out;\n}\n\n.slideup {\n -webkit-animation: slideup 0.45s cubic-bezier(0, 1, 0, 1);\n animation: slideup 0.45s cubic-bezier(0, 1, 0, 1);\n}\n\n.scalein {\n -webkit-animation: scalein 0.15s linear;\n animation: scalein 0.15s linear;\n}\n\n.fadeinleft {\n -webkit-animation: fadeinleft 0.15s linear;\n animation: fadeinleft 0.15s linear;\n}\n\n.fadeoutleft {\n -webkit-animation: fadeoutleft 0.15s linear;\n animation: fadeoutleft 0.15s linear;\n}\n\n.fadeinright {\n -webkit-animation: fadeinright 0.15s linear;\n animation: fadeinright 0.15s linear;\n}\n\n.fadeoutright {\n -webkit-animation: fadeoutright 0.15s linear;\n animation: fadeoutright 0.15s linear;\n}\n\n.fadeinup {\n -webkit-animation: fadeinup 0.15s linear;\n animation: fadeinup 0.15s linear;\n}\n\n.fadeoutup {\n -webkit-animation: fadeoutup 0.15s linear;\n animation: fadeoutup 0.15s linear;\n}\n\n.fadeindown {\n -webkit-animation: fadeindown 0.15s linear;\n animation: fadeindown 0.15s linear;\n}\n\n.fadeoutdown {\n -webkit-animation: fadeoutdown 0.15s linear;\n animation: fadeoutdown 0.15s linear;\n}\n\n.animate-width {\n -webkit-animation: animate-width 1000ms linear;\n animation: animate-width 1000ms linear;\n}\n\n.animation-duration-100 {\n -webkit-animation-duration: 100ms !important;\n animation-duration: 100ms !important;\n}\n\n.animation-duration-150 {\n -webkit-animation-duration: 150ms !important;\n animation-duration: 150ms !important;\n}\n\n.animation-duration-200 {\n -webkit-animation-duration: 200ms !important;\n animation-duration: 200ms !important;\n}\n\n.animation-duration-300 {\n -webkit-animation-duration: 300ms !important;\n animation-duration: 300ms !important;\n}\n\n.animation-duration-400 {\n -webkit-animation-duration: 400ms !important;\n animation-duration: 400ms !important;\n}\n\n.animation-duration-500 {\n -webkit-animation-duration: 500ms !important;\n animation-duration: 500ms !important;\n}\n\n.animation-duration-1000 {\n -webkit-animation-duration: 1000ms !important;\n animation-duration: 1000ms !important;\n}\n\n.animation-duration-2000 {\n -webkit-animation-duration: 2000ms !important;\n animation-duration: 2000ms !important;\n}\n\n.animation-duration-3000 {\n -webkit-animation-duration: 3000ms !important;\n animation-duration: 3000ms !important;\n}\n\n.animation-delay-100 {\n -webkit-animation-delay: 100ms !important;\n animation-delay: 100ms !important;\n}\n\n.animation-delay-150 {\n -webkit-animation-delay: 150ms !important;\n animation-delay: 150ms !important;\n}\n\n.animation-delay-200 {\n -webkit-animation-delay: 200ms !important;\n animation-delay: 200ms !important;\n}\n\n.animation-delay-300 {\n -webkit-animation-delay: 300ms !important;\n animation-delay: 300ms !important;\n}\n\n.animation-delay-400 {\n -webkit-animation-delay: 400ms !important;\n animation-delay: 400ms !important;\n}\n\n.animation-delay-500 {\n -webkit-animation-delay: 500ms !important;\n animation-delay: 500ms !important;\n}\n\n.animation-delay-1000 {\n -webkit-animation-delay: 1000ms !important;\n animation-delay: 1000ms !important;\n}\n\n.animation-iteration-1 {\n -webkit-animation-iteration-count: 1 !important;\n animation-iteration-count: 1 !important;\n}\n\n.animation-iteration-2 {\n -webkit-animation-iteration-count: 2 !important;\n animation-iteration-count: 2 !important;\n}\n\n.animation-iteration-infinite {\n -webkit-animation-iteration-count: infinite !important;\n animation-iteration-count: infinite !important;\n}\n\n.animation-linear {\n -webkit-animation-timing-function: linear !important;\n animation-timing-function: linear !important;\n}\n\n.animation-ease-in {\n -webkit-animation-timing-function: cubic-bezier(0.4, 0, 1, 1) !important;\n animation-timing-function: cubic-bezier(0.4, 0, 1, 1) !important;\n}\n\n.animation-ease-out {\n -webkit-animation-timing-function: cubic-bezier(0, 0, 0.2, 1) !important;\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1) !important;\n}\n\n.animation-ease-in-out {\n -webkit-animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;\n animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;\n}\n\n.animation-fill-none {\n -webkit-animation-fill-mode: none !important;\n animation-fill-mode: none !important;\n}\n\n.animation-fill-forwards {\n -webkit-animation-fill-mode: forwards !important;\n animation-fill-mode: forwards !important;\n}\n\n.animation-fill-backwards {\n -webkit-animation-fill-mode: backwards !important;\n animation-fill-mode: backwards !important;\n}\n\n.animation-fill-both {\n -webkit-animation-fill-mode: both !important;\n animation-fill-mode: both !important;\n}\n", ""]);
  21304. // Exports
  21305. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
  21306. /***/ }),
  21307. /***/ "./node_modules/css-loader/dist/cjs.js??clonedRuleSet-8.use[1]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-8.use[2]!./node_modules/primeicons/primeicons.css":
  21308. /*!********************************************************************************************************************************************************************************!*\
  21309. !*** ./node_modules/css-loader/dist/cjs.js??clonedRuleSet-8.use[1]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-8.use[2]!./node_modules/primeicons/primeicons.css ***!
  21310. \********************************************************************************************************************************************************************************/
  21311. /***/ ((module, __webpack_exports__, __webpack_require__) => {
  21312. "use strict";
  21313. __webpack_require__.r(__webpack_exports__);
  21314. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  21315. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  21316. /* harmony export */ });
  21317. /* harmony import */ var _css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js");
  21318. /* harmony import */ var _css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);
  21319. /* harmony import */ var _css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../css-loader/dist/runtime/getUrl.js */ "./node_modules/css-loader/dist/runtime/getUrl.js");
  21320. /* harmony import */ var _css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_1__);
  21321. /* harmony import */ var _fonts_primeicons_eot__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./fonts/primeicons.eot */ "./node_modules/primeicons/fonts/primeicons.eot");
  21322. /* harmony import */ var _fonts_primeicons_ttf__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./fonts/primeicons.ttf */ "./node_modules/primeicons/fonts/primeicons.ttf");
  21323. /* harmony import */ var _fonts_primeicons_woff__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./fonts/primeicons.woff */ "./node_modules/primeicons/fonts/primeicons.woff");
  21324. /* harmony import */ var _fonts_primeicons_svg__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./fonts/primeicons.svg */ "./node_modules/primeicons/fonts/primeicons.svg");
  21325. // Imports
  21326. var ___CSS_LOADER_EXPORT___ = _css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
  21327. var ___CSS_LOADER_URL_REPLACEMENT_0___ = _css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_1___default()(_fonts_primeicons_eot__WEBPACK_IMPORTED_MODULE_2__["default"]);
  21328. var ___CSS_LOADER_URL_REPLACEMENT_1___ = _css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_1___default()(_fonts_primeicons_eot__WEBPACK_IMPORTED_MODULE_2__["default"], { hash: "?#iefix" });
  21329. var ___CSS_LOADER_URL_REPLACEMENT_2___ = _css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_1___default()(_fonts_primeicons_ttf__WEBPACK_IMPORTED_MODULE_3__["default"]);
  21330. var ___CSS_LOADER_URL_REPLACEMENT_3___ = _css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_1___default()(_fonts_primeicons_woff__WEBPACK_IMPORTED_MODULE_4__["default"]);
  21331. var ___CSS_LOADER_URL_REPLACEMENT_4___ = _css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_1___default()(_fonts_primeicons_svg__WEBPACK_IMPORTED_MODULE_5__["default"], { hash: "?#primeicons" });
  21332. // Module
  21333. ___CSS_LOADER_EXPORT___.push([module.id, "@font-face {\n font-family: 'primeicons';\n font-display: block;\n src: url(" + ___CSS_LOADER_URL_REPLACEMENT_0___ + ");\n src: url(" + ___CSS_LOADER_URL_REPLACEMENT_1___ + ") format('embedded-opentype'), url(" + ___CSS_LOADER_URL_REPLACEMENT_2___ + ") format('truetype'), url(" + ___CSS_LOADER_URL_REPLACEMENT_3___ + ") format('woff'), url(" + ___CSS_LOADER_URL_REPLACEMENT_4___ + ") format('svg');\n font-weight: normal;\n font-style: normal;\n}\n\n.pi {\n font-family: 'primeicons';\n speak: none;\n font-style: normal;\n font-weight: normal;\n font-variant: normal;\n text-transform: none;\n line-height: 1;\n display: inline-block;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.pi:before {\n --webkit-backface-visibility:hidden;\n -webkit-backface-visibility: hidden;\n backface-visibility: hidden;\n}\n\n.pi-fw {\n width: 1.28571429em;\n text-align: center;\n}\n\n.pi-spin {\n -webkit-animation: fa-spin 2s infinite linear;\n animation: fa-spin 2s infinite linear;\n}\n\n@-webkit-keyframes fa-spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(359deg);\n }\n}\n\n@keyframes fa-spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(359deg);\n }\n}\n\n.pi-sort-alt-slash:before {\n content: \"\\e9ee\";\n}\n\n.pi-arrows-h:before {\n content: \"\\e9ec\";\n}\n\n.pi-arrows-v:before {\n content: \"\\e9ed\";\n}\n\n.pi-pound:before {\n content: \"\\e9eb\";\n}\n\n.pi-prime:before {\n content: \"\\e9ea\";\n}\n\n.pi-chart-pie:before {\n content: \"\\e9e9\";\n}\n\n.pi-reddit:before {\n content: \"\\e9e8\";\n}\n\n.pi-code:before {\n content: \"\\e9e7\";\n}\n\n.pi-sync:before {\n content: \"\\e9e6\";\n}\n\n.pi-shopping-bag:before {\n content: \"\\e9e5\";\n}\n\n.pi-server:before {\n content: \"\\e9e4\";\n}\n\n.pi-database:before {\n content: \"\\e9e3\";\n}\n\n.pi-hashtag:before {\n content: \"\\e9e2\";\n}\n\n.pi-bookmark-fill:before {\n content: \"\\e9df\";\n}\n\n.pi-filter-fill:before {\n content: \"\\e9e0\";\n}\n\n.pi-heart-fill:before {\n content: \"\\e9e1\";\n}\n\n.pi-flag-fill:before {\n content: \"\\e9de\";\n}\n\n.pi-circle:before {\n content: \"\\e9dc\";\n}\n\n.pi-circle-fill:before {\n content: \"\\e9dd\";\n}\n\n.pi-bolt:before {\n content: \"\\e9db\";\n}\n\n.pi-history:before {\n content: \"\\e9da\";\n}\n\n.pi-box:before {\n content: \"\\e9d9\";\n}\n\n.pi-at:before {\n content: \"\\e9d8\";\n}\n\n.pi-arrow-up-right:before {\n content: \"\\e9d4\";\n}\n\n.pi-arrow-up-left:before {\n content: \"\\e9d5\";\n}\n\n.pi-arrow-down-left:before {\n content: \"\\e9d6\";\n}\n\n.pi-arrow-down-right:before {\n content: \"\\e9d7\";\n}\n\n.pi-telegram:before {\n content: \"\\e9d3\";\n}\n\n.pi-stop-circle:before {\n content: \"\\e9d2\";\n}\n\n.pi-stop:before {\n content: \"\\e9d1\";\n}\n\n.pi-whatsapp:before {\n content: \"\\e9d0\";\n}\n\n.pi-building:before {\n content: \"\\e9cf\";\n}\n\n.pi-qrcode:before {\n content: \"\\e9ce\";\n}\n\n.pi-car:before {\n content: \"\\e9cd\";\n}\n\n.pi-instagram:before {\n content: \"\\e9cc\";\n}\n\n.pi-linkedin:before {\n content: \"\\e9cb\";\n}\n\n.pi-send:before {\n content: \"\\e9ca\";\n}\n\n.pi-slack:before {\n content: \"\\e9c9\";\n}\n\n.pi-sun:before {\n content: \"\\e9c8\";\n}\n\n.pi-moon:before {\n content: \"\\e9c7\";\n}\n\n.pi-vimeo:before {\n content: \"\\e9c6\";\n}\n\n.pi-youtube:before {\n content: \"\\e9c5\";\n}\n\n.pi-flag:before {\n content: \"\\e9c4\";\n}\n\n.pi-wallet:before {\n content: \"\\e9c3\";\n}\n\n.pi-map:before {\n content: \"\\e9c2\";\n}\n\n.pi-link:before {\n content: \"\\e9c1\";\n}\n\n.pi-credit-card:before {\n content: \"\\e9bf\";\n}\n\n.pi-discord:before {\n content: \"\\e9c0\";\n}\n\n.pi-percentage:before {\n content: \"\\e9be\";\n}\n\n.pi-euro:before {\n content: \"\\e9bd\";\n}\n\n.pi-book:before {\n content: \"\\e9ba\";\n}\n\n.pi-shield:before {\n content: \"\\e9b9\";\n}\n\n.pi-paypal:before {\n content: \"\\e9bb\";\n}\n\n.pi-amazon:before {\n content: \"\\e9bc\";\n}\n\n.pi-phone:before {\n content: \"\\e9b8\";\n}\n\n.pi-filter-slash:before {\n content: \"\\e9b7\";\n}\n\n.pi-facebook:before {\n content: \"\\e9b4\";\n}\n\n.pi-github:before {\n content: \"\\e9b5\";\n}\n\n.pi-twitter:before {\n content: \"\\e9b6\";\n}\n\n.pi-step-backward-alt:before {\n content: \"\\e9ac\";\n}\n\n.pi-step-forward-alt:before {\n content: \"\\e9ad\";\n}\n\n.pi-forward:before {\n content: \"\\e9ae\";\n}\n\n.pi-backward:before {\n content: \"\\e9af\";\n}\n\n.pi-fast-backward:before {\n content: \"\\e9b0\";\n}\n\n.pi-fast-forward:before {\n content: \"\\e9b1\";\n}\n\n.pi-pause:before {\n content: \"\\e9b2\";\n}\n\n.pi-play:before {\n content: \"\\e9b3\";\n}\n\n.pi-compass:before {\n content: \"\\e9ab\";\n}\n\n.pi-id-card:before {\n content: \"\\e9aa\";\n}\n\n.pi-ticket:before {\n content: \"\\e9a9\";\n}\n\n.pi-file-o:before {\n content: \"\\e9a8\";\n}\n\n.pi-reply:before {\n content: \"\\e9a7\";\n}\n\n.pi-directions-alt:before {\n content: \"\\e9a5\";\n}\n\n.pi-directions:before {\n content: \"\\e9a6\";\n}\n\n.pi-thumbs-up:before {\n content: \"\\e9a3\";\n}\n\n.pi-thumbs-down:before {\n content: \"\\e9a4\";\n}\n\n.pi-sort-numeric-down-alt:before {\n content: \"\\e996\";\n}\n\n.pi-sort-numeric-up-alt:before {\n content: \"\\e997\";\n}\n\n.pi-sort-alpha-down-alt:before {\n content: \"\\e998\";\n}\n\n.pi-sort-alpha-up-alt:before {\n content: \"\\e999\";\n}\n\n.pi-sort-numeric-down:before {\n content: \"\\e99a\";\n}\n\n.pi-sort-numeric-up:before {\n content: \"\\e99b\";\n}\n\n.pi-sort-alpha-down:before {\n content: \"\\e99c\";\n}\n\n.pi-sort-alpha-up:before {\n content: \"\\e99d\";\n}\n\n.pi-sort-alt:before {\n content: \"\\e99e\";\n}\n\n.pi-sort-amount-up:before {\n content: \"\\e99f\";\n}\n\n.pi-sort-amount-down:before {\n content: \"\\e9a0\";\n}\n\n.pi-sort-amount-down-alt:before {\n content: \"\\e9a1\";\n}\n\n.pi-sort-amount-up-alt:before {\n content: \"\\e9a2\";\n}\n\n.pi-palette:before {\n content: \"\\e995\";\n}\n\n.pi-undo:before {\n content: \"\\e994\";\n}\n\n.pi-desktop:before {\n content: \"\\e993\";\n}\n\n.pi-sliders-v:before {\n content: \"\\e991\";\n}\n\n.pi-sliders-h:before {\n content: \"\\e992\";\n}\n\n.pi-search-plus:before {\n content: \"\\e98f\";\n}\n\n.pi-search-minus:before {\n content: \"\\e990\";\n}\n\n.pi-file-excel:before {\n content: \"\\e98e\";\n}\n\n.pi-file-pdf:before {\n content: \"\\e98d\";\n}\n\n.pi-check-square:before {\n content: \"\\e98c\";\n}\n\n.pi-chart-line:before {\n content: \"\\e98b\";\n}\n\n.pi-user-edit:before {\n content: \"\\e98a\";\n}\n\n.pi-exclamation-circle:before {\n content: \"\\e989\";\n}\n\n.pi-android:before {\n content: \"\\e985\";\n}\n\n.pi-google:before {\n content: \"\\e986\";\n}\n\n.pi-apple:before {\n content: \"\\e987\";\n}\n\n.pi-microsoft:before {\n content: \"\\e988\";\n}\n\n.pi-heart:before {\n content: \"\\e984\";\n}\n\n.pi-mobile:before {\n content: \"\\e982\";\n}\n\n.pi-tablet:before {\n content: \"\\e983\";\n}\n\n.pi-key:before {\n content: \"\\e981\";\n}\n\n.pi-shopping-cart:before {\n content: \"\\e980\";\n}\n\n.pi-comments:before {\n content: \"\\e97e\";\n}\n\n.pi-comment:before {\n content: \"\\e97f\";\n}\n\n.pi-briefcase:before {\n content: \"\\e97d\";\n}\n\n.pi-bell:before {\n content: \"\\e97c\";\n}\n\n.pi-paperclip:before {\n content: \"\\e97b\";\n}\n\n.pi-share-alt:before {\n content: \"\\e97a\";\n}\n\n.pi-envelope:before {\n content: \"\\e979\";\n}\n\n.pi-volume-down:before {\n content: \"\\e976\";\n}\n\n.pi-volume-up:before {\n content: \"\\e977\";\n}\n\n.pi-volume-off:before {\n content: \"\\e978\";\n}\n\n.pi-eject:before {\n content: \"\\e975\";\n}\n\n.pi-money-bill:before {\n content: \"\\e974\";\n}\n\n.pi-images:before {\n content: \"\\e973\";\n}\n\n.pi-image:before {\n content: \"\\e972\";\n}\n\n.pi-sign-in:before {\n content: \"\\e970\";\n}\n\n.pi-sign-out:before {\n content: \"\\e971\";\n}\n\n.pi-wifi:before {\n content: \"\\e96f\";\n}\n\n.pi-sitemap:before {\n content: \"\\e96e\";\n}\n\n.pi-chart-bar:before {\n content: \"\\e96d\";\n}\n\n.pi-camera:before {\n content: \"\\e96c\";\n}\n\n.pi-dollar:before {\n content: \"\\e96b\";\n}\n\n.pi-lock-open:before {\n content: \"\\e96a\";\n}\n\n.pi-table:before {\n content: \"\\e969\";\n}\n\n.pi-map-marker:before {\n content: \"\\e968\";\n}\n\n.pi-list:before {\n content: \"\\e967\";\n}\n\n.pi-eye-slash:before {\n content: \"\\e965\";\n}\n\n.pi-eye:before {\n content: \"\\e966\";\n}\n\n.pi-folder-open:before {\n content: \"\\e964\";\n}\n\n.pi-folder:before {\n content: \"\\e963\";\n}\n\n.pi-video:before {\n content: \"\\e962\";\n}\n\n.pi-inbox:before {\n content: \"\\e961\";\n}\n\n.pi-lock:before {\n content: \"\\e95f\";\n}\n\n.pi-unlock:before {\n content: \"\\e960\";\n}\n\n.pi-tags:before {\n content: \"\\e95d\";\n}\n\n.pi-tag:before {\n content: \"\\e95e\";\n}\n\n.pi-power-off:before {\n content: \"\\e95c\";\n}\n\n.pi-save:before {\n content: \"\\e95b\";\n}\n\n.pi-question-circle:before {\n content: \"\\e959\";\n}\n\n.pi-question:before {\n content: \"\\e95a\";\n}\n\n.pi-copy:before {\n content: \"\\e957\";\n}\n\n.pi-file:before {\n content: \"\\e958\";\n}\n\n.pi-clone:before {\n content: \"\\e955\";\n}\n\n.pi-calendar-times:before {\n content: \"\\e952\";\n}\n\n.pi-calendar-minus:before {\n content: \"\\e953\";\n}\n\n.pi-calendar-plus:before {\n content: \"\\e954\";\n}\n\n.pi-ellipsis-v:before {\n content: \"\\e950\";\n}\n\n.pi-ellipsis-h:before {\n content: \"\\e951\";\n}\n\n.pi-bookmark:before {\n content: \"\\e94e\";\n}\n\n.pi-globe:before {\n content: \"\\e94f\";\n}\n\n.pi-replay:before {\n content: \"\\e94d\";\n}\n\n.pi-filter:before {\n content: \"\\e94c\";\n}\n\n.pi-print:before {\n content: \"\\e94b\";\n}\n\n.pi-align-right:before {\n content: \"\\e946\";\n}\n\n.pi-align-left:before {\n content: \"\\e947\";\n}\n\n.pi-align-center:before {\n content: \"\\e948\";\n}\n\n.pi-align-justify:before {\n content: \"\\e949\";\n}\n\n.pi-cog:before {\n content: \"\\e94a\";\n}\n\n.pi-cloud-download:before {\n content: \"\\e943\";\n}\n\n.pi-cloud-upload:before {\n content: \"\\e944\";\n}\n\n.pi-cloud:before {\n content: \"\\e945\";\n}\n\n.pi-pencil:before {\n content: \"\\e942\";\n}\n\n.pi-users:before {\n content: \"\\e941\";\n}\n\n.pi-clock:before {\n content: \"\\e940\";\n}\n\n.pi-user-minus:before {\n content: \"\\e93e\";\n}\n\n.pi-user-plus:before {\n content: \"\\e93f\";\n}\n\n.pi-trash:before {\n content: \"\\e93d\";\n}\n\n.pi-external-link:before {\n content: \"\\e93c\";\n}\n\n.pi-window-maximize:before {\n content: \"\\e93b\";\n}\n\n.pi-window-minimize:before {\n content: \"\\e93a\";\n}\n\n.pi-refresh:before {\n content: \"\\e938\";\n}\n \n.pi-user:before {\n content: \"\\e939\";\n}\n\n.pi-exclamation-triangle:before {\n content: \"\\e922\";\n}\n\n.pi-calendar:before {\n content: \"\\e927\";\n}\n\n.pi-chevron-circle-left:before {\n content: \"\\e928\";\n}\n\n.pi-chevron-circle-down:before {\n content: \"\\e929\";\n}\n\n.pi-chevron-circle-right:before {\n content: \"\\e92a\";\n}\n\n.pi-chevron-circle-up:before {\n content: \"\\e92b\";\n}\n\n.pi-angle-double-down:before {\n content: \"\\e92c\";\n}\n\n.pi-angle-double-left:before {\n content: \"\\e92d\";\n}\n\n.pi-angle-double-right:before {\n content: \"\\e92e\";\n}\n\n.pi-angle-double-up:before {\n content: \"\\e92f\";\n}\n\n.pi-angle-down:before {\n content: \"\\e930\";\n}\n\n.pi-angle-left:before {\n content: \"\\e931\";\n}\n\n.pi-angle-right:before {\n content: \"\\e932\";\n}\n\n.pi-angle-up:before {\n content: \"\\e933\";\n}\n\n.pi-upload:before {\n content: \"\\e934\";\n}\n\n.pi-download:before {\n content: \"\\e956\";\n}\n\n.pi-ban:before {\n content: \"\\e935\";\n}\n\n.pi-star-fill:before {\n content: \"\\e936\";\n}\n\n.pi-star:before {\n content: \"\\e937\";\n}\n\n.pi-chevron-left:before {\n content: \"\\e900\";\n}\n\n.pi-chevron-right:before {\n content: \"\\e901\";\n}\n\n.pi-chevron-down:before {\n content: \"\\e902\";\n}\n\n.pi-chevron-up:before {\n content: \"\\e903\";\n}\n\n.pi-caret-left:before {\n content: \"\\e904\";\n}\n\n.pi-caret-right:before {\n content: \"\\e905\";\n}\n\n.pi-caret-down:before {\n content: \"\\e906\";\n}\n\n.pi-caret-up:before {\n content: \"\\e907\";\n}\n\n.pi-search:before {\n content: \"\\e908\";\n}\n\n.pi-check:before {\n content: \"\\e909\";\n}\n\n.pi-check-circle:before {\n content: \"\\e90a\";\n}\n\n.pi-times:before {\n content: \"\\e90b\";\n}\n\n.pi-times-circle:before {\n content: \"\\e90c\";\n}\n\n.pi-plus:before {\n content: \"\\e90d\";\n}\n\n.pi-plus-circle:before {\n content: \"\\e90e\";\n}\n\n.pi-minus:before {\n content: \"\\e90f\";\n}\n\n.pi-minus-circle:before {\n content: \"\\e910\";\n}\n\n.pi-circle-on:before {\n content: \"\\e911\";\n}\n\n.pi-circle-off:before {\n content: \"\\e912\";\n}\n\n.pi-sort-down:before {\n content: \"\\e913\";\n}\n\n.pi-sort-up:before {\n content: \"\\e914\";\n}\n\n.pi-sort:before {\n content: \"\\e915\";\n}\n\n.pi-step-backward:before {\n content: \"\\e916\";\n}\n\n.pi-step-forward:before {\n content: \"\\e917\";\n}\n\n.pi-th-large:before {\n content: \"\\e918\";\n}\n\n.pi-arrow-down:before {\n content: \"\\e919\";\n}\n\n.pi-arrow-left:before {\n content: \"\\e91a\";\n}\n\n.pi-arrow-right:before {\n content: \"\\e91b\";\n}\n\n.pi-arrow-up:before {\n content: \"\\e91c\";\n}\n\n.pi-bars:before {\n content: \"\\e91d\";\n}\n\n.pi-arrow-circle-down:before {\n content: \"\\e91e\";\n}\n\n.pi-arrow-circle-left:before {\n content: \"\\e91f\";\n}\n\n.pi-arrow-circle-right:before {\n content: \"\\e920\";\n}\n\n.pi-arrow-circle-up:before {\n content: \"\\e921\";\n}\n\n.pi-info:before {\n content: \"\\e923\";\n}\n\n.pi-info-circle:before {\n content: \"\\e924\";\n}\n\n.pi-home:before {\n content: \"\\e925\";\n}\n\n.pi-spinner:before {\n content: \"\\e926\";\n}\n", ""]);
  21334. // Exports
  21335. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
  21336. /***/ }),
  21337. /***/ "./node_modules/css-loader/dist/cjs.js??clonedRuleSet-8.use[1]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-8.use[2]!./node_modules/primevue/resources/primevue.min.css":
  21338. /*!******************************************************************************************************************************************************************************************!*\
  21339. !*** ./node_modules/css-loader/dist/cjs.js??clonedRuleSet-8.use[1]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-8.use[2]!./node_modules/primevue/resources/primevue.min.css ***!
  21340. \******************************************************************************************************************************************************************************************/
  21341. /***/ ((module, __webpack_exports__, __webpack_require__) => {
  21342. "use strict";
  21343. __webpack_require__.r(__webpack_exports__);
  21344. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  21345. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  21346. /* harmony export */ });
  21347. /* harmony import */ var _css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js");
  21348. /* harmony import */ var _css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);
  21349. /* harmony import */ var _css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../css-loader/dist/runtime/getUrl.js */ "./node_modules/css-loader/dist/runtime/getUrl.js");
  21350. /* harmony import */ var _css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_1__);
  21351. /* harmony import */ var _images_color_png__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./images/color.png */ "./node_modules/primevue/resources/images/color.png");
  21352. /* harmony import */ var _images_hue_png__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./images/hue.png */ "./node_modules/primevue/resources/images/hue.png");
  21353. // Imports
  21354. var ___CSS_LOADER_EXPORT___ = _css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
  21355. var ___CSS_LOADER_URL_REPLACEMENT_0___ = _css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_1___default()(_images_color_png__WEBPACK_IMPORTED_MODULE_2__["default"]);
  21356. var ___CSS_LOADER_URL_REPLACEMENT_1___ = _css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_1___default()(_images_hue_png__WEBPACK_IMPORTED_MODULE_3__["default"]);
  21357. // Module
  21358. ___CSS_LOADER_EXPORT___.push([module.id, ".p-component,.p-component *{box-sizing:border-box}.p-hidden{display:none}.p-hidden-space{visibility:hidden}.p-hidden-accessible{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.p-hidden-accessible input,.p-hidden-accessible select{transform:scale(0)}.p-reset{margin:0;padding:0;border:0;outline:0;text-decoration:none;font-size:100%;list-style:none}.p-disabled,.p-disabled *{cursor:default !important;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.p-component-overlay{position:fixed;top:0;left:0;width:100%;height:100%}.p-overflow-hidden{overflow:hidden}.p-unselectable-text{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.p-scrollbar-measure{width:100px;height:100px;overflow:scroll;position:absolute;top:-9999px}@-webkit-keyframes p-fadein{0%{opacity:0}100%{opacity:1}}@keyframes p-fadein{0%{opacity:0}100%{opacity:1}}input[type=\"button\"],input[type=\"submit\"],input[type=\"reset\"],input[type=\"file\"]::-webkit-file-upload-button,button{border-radius:0}.p-link{text-align:left;background-color:transparent;margin:0;padding:0;border:0;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.p-link:disabled{cursor:default}.p-connected-overlay{opacity:0;transform:scaleY(0.8);transition:transform .12s cubic-bezier(0,0,0.2,1),opacity .12s cubic-bezier(0,0,0.2,1)}.p-connected-overlay-visible{opacity:1;transform:scaleY(1)}.p-connected-overlay-hidden{opacity:0;transform:scaleY(1);transition:opacity .1s linear}.p-connected-overlay-enter-from{opacity:0;transform:scaleY(0.8)}.p-connected-overlay-leave-to{opacity:0}.p-connected-overlay-enter-active{transition:transform .12s cubic-bezier(0,0,0.2,1),opacity .12s cubic-bezier(0,0,0.2,1)}.p-connected-overlay-leave-active{transition:opacity .1s linear}.p-toggleable-content-enter-from,.p-toggleable-content-leave-to{max-height:0}.p-toggleable-content-enter-to,.p-toggleable-content-leave-from{max-height:1000px}.p-toggleable-content-leave-active{overflow:hidden;transition:max-height .45s cubic-bezier(0,1,0,1)}.p-toggleable-content-enter-active{overflow:hidden;transition:max-height 1s ease-in-out}.p-sr-only{border:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal !important}.p-badge{display:inline-block;border-radius:10px;text-align:center;padding:0 .5rem}.p-overlay-badge{position:relative}.p-overlay-badge .p-badge{position:absolute;top:0;right:0;transform:translate(50%,-50%);transform-origin:100% 0;margin:0}.p-badge-dot{width:.5rem;min-width:.5rem;height:.5rem;border-radius:50%;padding:0}.p-badge-no-gutter{padding:0;border-radius:50%}.p-button{margin:0;display:inline-flex;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;align-items:center;vertical-align:bottom;text-align:center;overflow:hidden;position:relative}.p-button-label{flex:1 1 auto}.p-button-icon-right{order:1}.p-button:disabled{cursor:default}.p-button-icon-only{justify-content:center}.p-button-icon-only .p-button-label{visibility:hidden;width:0;flex:0 0 auto}.p-button-vertical{flex-direction:column}.p-button-icon-bottom{order:2}.p-buttonset .p-button{margin:0}.p-buttonset .p-button:not(:last-child){border-right:0 none}.p-buttonset .p-button:not(:first-of-type):not(:last-of-type){border-radius:0}.p-buttonset .p-button:first-of-type{border-top-right-radius:0;border-bottom-right-radius:0}.p-buttonset .p-button:last-of-type{border-top-left-radius:0;border-bottom-left-radius:0}.p-buttonset .p-button:focus{position:relative;z-index:1}.p-button-label{transition:all .2s}.p-checkbox{display:inline-flex;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:bottom;position:relative}.p-checkbox-box{display:flex;justify-content:center;align-items:center}.p-colorpicker-panel .p-colorpicker-color{background:transparent url(" + ___CSS_LOADER_URL_REPLACEMENT_0___ + ") no-repeat left top}.p-colorpicker-panel .p-colorpicker-hue{background:transparent url(" + ___CSS_LOADER_URL_REPLACEMENT_1___ + ") no-repeat left top}.p-inputtext{margin:0}.p-fluid .p-inputtext{width:100%}.p-inputgroup{display:flex;align-items:stretch;width:100%}.p-inputgroup-addon{display:flex;align-items:center;justify-content:center}.p-inputgroup .p-float-label{display:flex;align-items:stretch;width:100%}.p-inputgroup .p-inputtext,.p-fluid .p-inputgroup .p-inputtext,.p-inputgroup .p-inputwrapper,.p-fluid .p-inputgroup .p-input{flex:1 1 auto;width:1%}.p-float-label{display:block;position:relative}.p-float-label label{position:absolute;pointer-events:none;top:50%;margin-top:-.5rem;transition-property:all;transition-timing-function:ease;line-height:1}.p-float-label textarea ~ label{top:1rem}.p-float-label input:focus ~ label,.p-float-label input.p-filled ~ label,.p-float-label textarea:focus ~ label,.p-float-label textarea.p-filled ~ label,.p-float-label .p-inputwrapper-focus ~ label,.p-float-label .p-inputwrapper-filled ~ label{top:-.75rem;font-size:12px}.p-float-label .input:-webkit-autofill ~ label{top:-20px;font-size:12px}.p-input-icon-left,.p-input-icon-right{position:relative;display:inline-block}.p-input-icon-left>i,.p-input-icon-right>i{position:absolute;top:50%;margin-top:-.5rem}.p-fluid .p-input-icon-left,.p-fluid .p-input-icon-right{display:block;width:100%}.p-radiobutton{display:inline-flex;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:bottom}.p-radiobutton-box{display:flex;justify-content:center;align-items:center}.p-radiobutton-icon{-webkit-backface-visibility:hidden;backface-visibility:hidden;transform:translateZ(0) scale(.1);border-radius:50%;visibility:hidden}.p-radiobutton-box.p-highlight .p-radiobutton-icon{transform:translateZ(0) scale(1.0,1.0);visibility:visible}.p-ripple{overflow:hidden;position:relative}.p-ink{display:block;position:absolute;background:rgba(255,255,255,0.5);border-radius:100%;transform:scale(0);pointer-events:none}.p-ink-active{-webkit-animation:ripple .4s linear;animation:ripple .4s linear}.p-ripple-disabled .p-ink{display:none !important}@-webkit-keyframes ripple{100%{opacity:0;transform:scale(2.5)}}@keyframes ripple{100%{opacity:0;transform:scale(2.5)}}.p-tooltip{position:absolute;display:none;padding:.25em .5rem;max-width:12.5rem}.p-tooltip.p-tooltip-right,.p-tooltip.p-tooltip-left{padding:0 .25rem}.p-tooltip.p-tooltip-top,.p-tooltip.p-tooltip-bottom{padding:.25em 0}.p-tooltip .p-tooltip-text{white-space:pre-line;word-break:break-word}.p-tooltip-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid}.p-tooltip-right .p-tooltip-arrow{top:50%;left:0;margin-top:-.25rem;border-width:.25em .25em .25em 0}.p-tooltip-left .p-tooltip-arrow{top:50%;right:0;margin-top:-.25rem;border-width:.25em 0 .25em .25rem}.p-tooltip.p-tooltip-top{padding:.25em 0}.p-tooltip-top .p-tooltip-arrow{bottom:0;left:50%;margin-left:-.25rem;border-width:.25em .25em 0}.p-tooltip-bottom .p-tooltip-arrow{top:0;left:50%;margin-left:-.25rem;border-width:0 .25em .25rem}", ""]);
  21359. // Exports
  21360. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
  21361. /***/ }),
  21362. /***/ "./node_modules/css-loader/dist/cjs.js??clonedRuleSet-8.use[1]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-8.use[2]!./node_modules/primevue/resources/themes/tailwind-light/theme.css":
  21363. /*!*********************************************************************************************************************************************************************************************************!*\
  21364. !*** ./node_modules/css-loader/dist/cjs.js??clonedRuleSet-8.use[1]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-8.use[2]!./node_modules/primevue/resources/themes/tailwind-light/theme.css ***!
  21365. \*********************************************************************************************************************************************************************************************************/
  21366. /***/ ((module, __webpack_exports__, __webpack_require__) => {
  21367. "use strict";
  21368. __webpack_require__.r(__webpack_exports__);
  21369. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  21370. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  21371. /* harmony export */ });
  21372. /* harmony import */ var _css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js");
  21373. /* harmony import */ var _css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);
  21374. /* harmony import */ var _css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../css-loader/dist/runtime/getUrl.js */ "./node_modules/css-loader/dist/runtime/getUrl.js");
  21375. /* harmony import */ var _css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_1__);
  21376. /* harmony import */ var _fonts_Inter_Light_woff2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./fonts/Inter-Light.woff2 */ "./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-Light.woff2");
  21377. /* harmony import */ var _fonts_Inter_Light_woff__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./fonts/Inter-Light.woff */ "./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-Light.woff");
  21378. /* harmony import */ var _fonts_Inter_Regular_woff2__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./fonts/Inter-Regular.woff2 */ "./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-Regular.woff2");
  21379. /* harmony import */ var _fonts_Inter_Regular_woff__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./fonts/Inter-Regular.woff */ "./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-Regular.woff");
  21380. /* harmony import */ var _fonts_Inter_Medium_woff2__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./fonts/Inter-Medium.woff2 */ "./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-Medium.woff2");
  21381. /* harmony import */ var _fonts_Inter_Medium_woff__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./fonts/Inter-Medium.woff */ "./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-Medium.woff");
  21382. /* harmony import */ var _fonts_Inter_SemiBold_woff2__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./fonts/Inter-SemiBold.woff2 */ "./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-SemiBold.woff2");
  21383. /* harmony import */ var _fonts_Inter_SemiBold_woff__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./fonts/Inter-SemiBold.woff */ "./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-SemiBold.woff");
  21384. /* harmony import */ var _fonts_Inter_Bold_woff2__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./fonts/Inter-Bold.woff2 */ "./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-Bold.woff2");
  21385. /* harmony import */ var _fonts_Inter_Bold_woff__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./fonts/Inter-Bold.woff */ "./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-Bold.woff");
  21386. // Imports
  21387. var ___CSS_LOADER_EXPORT___ = _css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
  21388. var ___CSS_LOADER_URL_REPLACEMENT_0___ = _css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_1___default()(_fonts_Inter_Light_woff2__WEBPACK_IMPORTED_MODULE_2__["default"]);
  21389. var ___CSS_LOADER_URL_REPLACEMENT_1___ = _css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_1___default()(_fonts_Inter_Light_woff__WEBPACK_IMPORTED_MODULE_3__["default"]);
  21390. var ___CSS_LOADER_URL_REPLACEMENT_2___ = _css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_1___default()(_fonts_Inter_Regular_woff2__WEBPACK_IMPORTED_MODULE_4__["default"]);
  21391. var ___CSS_LOADER_URL_REPLACEMENT_3___ = _css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_1___default()(_fonts_Inter_Regular_woff__WEBPACK_IMPORTED_MODULE_5__["default"]);
  21392. var ___CSS_LOADER_URL_REPLACEMENT_4___ = _css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_1___default()(_fonts_Inter_Medium_woff2__WEBPACK_IMPORTED_MODULE_6__["default"]);
  21393. var ___CSS_LOADER_URL_REPLACEMENT_5___ = _css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_1___default()(_fonts_Inter_Medium_woff__WEBPACK_IMPORTED_MODULE_7__["default"]);
  21394. var ___CSS_LOADER_URL_REPLACEMENT_6___ = _css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_1___default()(_fonts_Inter_SemiBold_woff2__WEBPACK_IMPORTED_MODULE_8__["default"]);
  21395. var ___CSS_LOADER_URL_REPLACEMENT_7___ = _css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_1___default()(_fonts_Inter_SemiBold_woff__WEBPACK_IMPORTED_MODULE_9__["default"]);
  21396. var ___CSS_LOADER_URL_REPLACEMENT_8___ = _css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_1___default()(_fonts_Inter_Bold_woff2__WEBPACK_IMPORTED_MODULE_10__["default"]);
  21397. var ___CSS_LOADER_URL_REPLACEMENT_9___ = _css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_1___default()(_fonts_Inter_Bold_woff__WEBPACK_IMPORTED_MODULE_11__["default"]);
  21398. // Module
  21399. ___CSS_LOADER_EXPORT___.push([module.id, ":root {\n --surface-a:#ffffff;\n --surface-b:#fafafa;\n --surface-c:#f4f4f5;\n --surface-d:#e5e7eb;\n --surface-e:#ffffff;\n --surface-f:#ffffff;\n --text-color:#3f3f46;\n --text-color-secondary:#71717A;\n --primary-color:#4F46E5;\n --primary-color-text:#ffffff;\n --font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;\n --surface-0: #ffffff;\n --surface-50: #FAFAFA;\n --surface-100: #F4F4F5;\n --surface-200: #E4E4E7;\n --surface-300: #D4D4D8;\n --surface-400: #A1A1AA;\n --surface-500: #71717A;\n --surface-600: #52525B;\n --surface-700: #3F3F46;\n --surface-800: #27272A;\n --surface-900: #18181B;\n --gray-50: #FAFAFA;\n --gray-100: #F4F4F5;\n --gray-200: #E4E4E7;\n --gray-300: #D4D4D8;\n --gray-400: #A1A1AA;\n --gray-500: #71717A;\n --gray-600: #52525B;\n --gray-700: #3F3F46;\n --gray-800: #27272A;\n --gray-900: #18181B;\n --content-padding:1.25rem;\n --inline-spacing:0.5rem;\n --border-radius:0.375rem;\n --surface-ground:#FAFAFA;\n --surface-section:#ffffff;\n --surface-card:#ffffff;\n --surface-overlay:#ffffff;\n --surface-border:#e5e7eb;\n --surface-hover: #f4f4f5;\n --focus-ring: 0 0 0 1px #6366F1;\n --maskbg: rgba(0, 0, 0, 0.4);\n}\n\n@font-face {\n font-family: \"Inter\";\n font-style: normal;\n font-weight: 300;\n src: local(\"\"), url(" + ___CSS_LOADER_URL_REPLACEMENT_0___ + ") format(\"woff2\"), url(" + ___CSS_LOADER_URL_REPLACEMENT_1___ + ") format(\"woff\");\n /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */\n}\n@font-face {\n font-family: \"Inter\";\n font-style: normal;\n font-weight: 400;\n src: local(\"\"), url(" + ___CSS_LOADER_URL_REPLACEMENT_2___ + ") format(\"woff2\"), url(" + ___CSS_LOADER_URL_REPLACEMENT_3___ + ") format(\"woff\");\n /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */\n}\n@font-face {\n font-family: \"Inter\";\n font-style: normal;\n font-weight: 500;\n src: local(\"\"), url(" + ___CSS_LOADER_URL_REPLACEMENT_4___ + ") format(\"woff2\"), url(" + ___CSS_LOADER_URL_REPLACEMENT_5___ + ") format(\"woff\");\n /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */\n}\n@font-face {\n font-family: \"Inter\";\n font-style: normal;\n font-weight: 600;\n src: local(\"\"), url(" + ___CSS_LOADER_URL_REPLACEMENT_6___ + ") format(\"woff2\"), url(" + ___CSS_LOADER_URL_REPLACEMENT_7___ + ") format(\"woff\");\n /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */\n}\n@font-face {\n font-family: \"Inter\";\n font-style: normal;\n font-weight: 700;\n src: local(\"\"), url(" + ___CSS_LOADER_URL_REPLACEMENT_8___ + ") format(\"woff2\"), url(" + ___CSS_LOADER_URL_REPLACEMENT_9___ + ") format(\"woff\");\n /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */\n}\n* {\n box-sizing: border-box;\n}\n\n.p-component {\n font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";\n font-size: 1rem;\n font-weight: normal;\n}\n\n.p-component-overlay {\n background-color: rgba(0, 0, 0, 0.4);\n transition-duration: 0.2s;\n}\n\n.p-disabled, .p-component:disabled {\n opacity: 0.6;\n}\n\n.p-error {\n color: #e24c4c;\n}\n\n.p-text-secondary {\n color: #71717A;\n}\n\n.pi {\n font-size: 1rem;\n}\n\n.p-link {\n font-size: 1rem;\n font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";\n border-radius: 0.375rem;\n}\n.p-link:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n\n.p-component-overlay-enter {\n -webkit-animation: p-component-overlay-enter-animation 150ms forwards;\n animation: p-component-overlay-enter-animation 150ms forwards;\n}\n\n.p-component-overlay-leave {\n -webkit-animation: p-component-overlay-leave-animation 150ms forwards;\n animation: p-component-overlay-leave-animation 150ms forwards;\n}\n\n@-webkit-keyframes p-component-overlay-enter-animation {\n from {\n background-color: transparent;\n }\n to {\n background-color: var(--maskbg);\n }\n}\n\n@keyframes p-component-overlay-enter-animation {\n from {\n background-color: transparent;\n }\n to {\n background-color: var(--maskbg);\n }\n}\n@-webkit-keyframes p-component-overlay-leave-animation {\n from {\n background-color: var(--maskbg);\n }\n to {\n background-color: transparent;\n }\n}\n@keyframes p-component-overlay-leave-animation {\n from {\n background-color: var(--maskbg);\n }\n to {\n background-color: transparent;\n }\n}\n\n:root {\n --blue-50:#f5f9ff;\n --blue-100:#d0e1fd;\n --blue-200:#abc9fb;\n --blue-300:#85b2f9;\n --blue-400:#609af8;\n --blue-500:#3b82f6;\n --blue-600:#326fd1;\n --blue-700:#295bac;\n --blue-800:#204887;\n --blue-900:#183462;\n --green-50:#f4fcf7;\n --green-100:#caf1d8;\n --green-200:#a0e6ba;\n --green-300:#76db9b;\n --green-400:#4cd07d;\n --green-500:#22c55e;\n --green-600:#1da750;\n --green-700:#188a42;\n --green-800:#136c34;\n --green-900:#0e4f26;\n --yellow-50:#fefbf3;\n --yellow-100:#faedc4;\n --yellow-200:#f6de95;\n --yellow-300:#f2d066;\n --yellow-400:#eec137;\n --yellow-500:#eab308;\n --yellow-600:#c79807;\n --yellow-700:#a47d06;\n --yellow-800:#816204;\n --yellow-900:#5e4803;\n --cyan-50:#f3fbfd;\n --cyan-100:#c3edf5;\n --cyan-200:#94e0ed;\n --cyan-300:#65d2e4;\n --cyan-400:#35c4dc;\n --cyan-500:#06b6d4;\n --cyan-600:#059bb4;\n --cyan-700:#047f94;\n --cyan-800:#036475;\n --cyan-900:#024955;\n --pink-50:#fef6fa;\n --pink-100:#fad3e7;\n --pink-200:#f7b0d3;\n --pink-300:#f38ec0;\n --pink-400:#f06bac;\n --pink-500:#ec4899;\n --pink-600:#c93d82;\n --pink-700:#a5326b;\n --pink-800:#822854;\n --pink-900:#5e1d3d;\n --indigo-50:#f7f7fe;\n --indigo-100:#dadafc;\n --indigo-200:#bcbdf9;\n --indigo-300:#9ea0f6;\n --indigo-400:#8183f4;\n --indigo-500:#6366f1;\n --indigo-600:#5457cd;\n --indigo-700:#4547a9;\n --indigo-800:#363885;\n --indigo-900:#282960;\n --teal-50:#f3fbfb;\n --teal-100:#c7eeea;\n --teal-200:#9ae0d9;\n --teal-300:#6dd3c8;\n --teal-400:#41c5b7;\n --teal-500:#14b8a6;\n --teal-600:#119c8d;\n --teal-700:#0e8174;\n --teal-800:#0b655b;\n --teal-900:#084a42;\n --orange-50:#fff8f3;\n --orange-100:#feddc7;\n --orange-200:#fcc39b;\n --orange-300:#fba86f;\n --orange-400:#fa8e42;\n --orange-500:#f97316;\n --orange-600:#d46213;\n --orange-700:#ae510f;\n --orange-800:#893f0c;\n --orange-900:#642e09;\n --bluegray-50:#f7f8f9;\n --bluegray-100:#dadee3;\n --bluegray-200:#bcc3cd;\n --bluegray-300:#9fa9b7;\n --bluegray-400:#818ea1;\n --bluegray-500:#64748b;\n --bluegray-600:#556376;\n --bluegray-700:#465161;\n --bluegray-800:#37404c;\n --bluegray-900:#282e38;\n --purple-50:#fbf7ff;\n --purple-100:#ead6fd;\n --purple-200:#dab6fc;\n --purple-300:#c996fa;\n --purple-400:#b975f9;\n --purple-500:#a855f7;\n --purple-600:#8f48d2;\n --purple-700:#763cad;\n --purple-800:#5c2f88;\n --purple-900:#432263;\n --red-50:#fef6f6;\n --red-100:#fbd2d2;\n --red-200:#f8afaf;\n --red-300:#f58b8b;\n --red-400:#f26868;\n --red-500:#ef4444;\n --red-600:#cb3a3a;\n --red-700:#a73030;\n --red-800:#832525;\n --red-900:#601b1b;\n}\n\n.p-autocomplete .p-autocomplete-loader {\n right: 0.75rem;\n}\n.p-autocomplete.p-autocomplete-dd .p-autocomplete-loader {\n right: 3.75rem;\n}\n.p-autocomplete .p-autocomplete-multiple-container {\n padding: 0.375rem 0.75rem;\n}\n.p-autocomplete .p-autocomplete-multiple-container:not(.p-disabled):hover {\n border-color: #d4d4d8;\n}\n.p-autocomplete .p-autocomplete-multiple-container:not(.p-disabled).p-focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n border-color: #4F46E5;\n}\n.p-autocomplete .p-autocomplete-multiple-container .p-autocomplete-input-token {\n padding: 0.375rem 0;\n}\n.p-autocomplete .p-autocomplete-multiple-container .p-autocomplete-input-token input {\n font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";\n font-size: 1rem;\n color: #3f3f46;\n padding: 0;\n margin: 0;\n}\n.p-autocomplete .p-autocomplete-multiple-container .p-autocomplete-token {\n padding: 0.375rem 0.75rem;\n margin-right: 0.5rem;\n background: #e5e7eb;\n color: #3f3f46;\n border-radius: 16px;\n}\n.p-autocomplete .p-autocomplete-multiple-container .p-autocomplete-token .p-autocomplete-token-icon {\n margin-left: 0.5rem;\n}\n.p-autocomplete.p-invalid.p-component > .p-inputtext {\n border-color: #f0a9a7;\n}\n\n.p-autocomplete-panel {\n background: #ffffff;\n color: #3f3f46;\n border: 0 none;\n border-radius: 0.375rem;\n box-shadow: 0 0 #0000, 0 0 #0000, 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);\n}\n.p-autocomplete-panel .p-autocomplete-items {\n padding: 0.25rem 0;\n}\n.p-autocomplete-panel .p-autocomplete-items .p-autocomplete-item {\n margin: 0;\n padding: 0.75rem 1rem;\n border: 0 none;\n color: #3f3f46;\n background: transparent;\n transition: none;\n border-radius: 0;\n}\n.p-autocomplete-panel .p-autocomplete-items .p-autocomplete-item:hover {\n color: #18181B;\n background: #f4f4f5;\n}\n.p-autocomplete-panel .p-autocomplete-items .p-autocomplete-item.p-highlight {\n color: #312E81;\n background: #EEF2FF;\n}\n.p-autocomplete-panel .p-autocomplete-items .p-autocomplete-item-group {\n margin: 0;\n padding: 0.75rem 1rem;\n color: #3f3f46;\n background: #ffffff;\n font-weight: 600;\n}\n\n.p-calendar.p-invalid.p-component > .p-inputtext {\n border-color: #f0a9a7;\n}\n\n.p-datepicker {\n padding: 0.5rem;\n background: #ffffff;\n color: #3f3f46;\n border: 1px solid #d4d4d8;\n border-radius: 0.375rem;\n}\n.p-datepicker:not(.p-datepicker-inline) {\n background: #ffffff;\n border: 0 none;\n box-shadow: 0 0 #0000, 0 0 #0000, 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);\n}\n.p-datepicker:not(.p-datepicker-inline) .p-datepicker-header {\n background: #ffffff;\n}\n.p-datepicker .p-datepicker-header {\n padding: 0.5rem;\n color: #3f3f46;\n background: #ffffff;\n font-weight: 600;\n margin: 0;\n border-bottom: 1px solid #e5e7eb;\n border-top-right-radius: 0.375rem;\n border-top-left-radius: 0.375rem;\n}\n.p-datepicker .p-datepicker-header .p-datepicker-prev,\n.p-datepicker .p-datepicker-header .p-datepicker-next {\n width: 2rem;\n height: 2rem;\n color: #71717A;\n border: 0 none;\n background: transparent;\n border-radius: 50%;\n transition: none;\n}\n.p-datepicker .p-datepicker-header .p-datepicker-prev:enabled:hover,\n.p-datepicker .p-datepicker-header .p-datepicker-next:enabled:hover {\n color: #18181B;\n border-color: transparent;\n background: #f4f4f5;\n}\n.p-datepicker .p-datepicker-header .p-datepicker-prev:focus,\n.p-datepicker .p-datepicker-header .p-datepicker-next:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.p-datepicker .p-datepicker-header .p-datepicker-title {\n line-height: 2rem;\n}\n.p-datepicker .p-datepicker-header .p-datepicker-title .p-datepicker-year,\n.p-datepicker .p-datepicker-header .p-datepicker-title .p-datepicker-month {\n color: #3f3f46;\n transition: none;\n font-weight: 600;\n padding: 0.5rem;\n}\n.p-datepicker .p-datepicker-header .p-datepicker-title .p-datepicker-year:enabled:hover,\n.p-datepicker .p-datepicker-header .p-datepicker-title .p-datepicker-month:enabled:hover {\n color: #4F46E5;\n}\n.p-datepicker .p-datepicker-header .p-datepicker-title .p-datepicker-month {\n margin-right: 0.5rem;\n}\n.p-datepicker table {\n font-size: 1rem;\n margin: 0.5rem 0;\n}\n.p-datepicker table th {\n padding: 0.5rem;\n}\n.p-datepicker table th > span {\n width: 2.5rem;\n height: 2.5rem;\n}\n.p-datepicker table td {\n padding: 0.5rem;\n}\n.p-datepicker table td > span {\n width: 2.5rem;\n height: 2.5rem;\n border-radius: 50%;\n transition: none;\n border: 1px solid transparent;\n}\n.p-datepicker table td > span.p-highlight {\n color: #312E81;\n background: #EEF2FF;\n}\n.p-datepicker table td > span:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.p-datepicker table td.p-datepicker-today > span {\n background: #d4d4d8;\n color: #3f3f46;\n border-color: transparent;\n}\n.p-datepicker table td.p-datepicker-today > span.p-highlight {\n color: #312E81;\n background: #EEF2FF;\n}\n.p-datepicker .p-datepicker-buttonbar {\n padding: 1rem 0;\n border-top: 1px solid #f3f4f6;\n}\n.p-datepicker .p-datepicker-buttonbar .p-button {\n width: auto;\n}\n.p-datepicker .p-timepicker {\n border-top: 1px solid #f3f4f6;\n padding: 0.5rem;\n}\n.p-datepicker .p-timepicker button {\n width: 2rem;\n height: 2rem;\n color: #71717A;\n border: 0 none;\n background: transparent;\n border-radius: 50%;\n transition: none;\n}\n.p-datepicker .p-timepicker button:enabled:hover {\n color: #18181B;\n border-color: transparent;\n background: #f4f4f5;\n}\n.p-datepicker .p-timepicker button:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.p-datepicker .p-timepicker button:last-child {\n margin-top: 0.2em;\n}\n.p-datepicker .p-timepicker span {\n font-size: 1.25rem;\n}\n.p-datepicker .p-timepicker > div {\n padding: 0 0.5rem;\n}\n.p-datepicker.p-datepicker-timeonly .p-timepicker {\n border-top: 0 none;\n}\n.p-datepicker .p-monthpicker {\n margin: 0.5rem 0;\n}\n.p-datepicker .p-monthpicker .p-monthpicker-month {\n padding: 0.5rem;\n transition: none;\n border-radius: 0.375rem;\n}\n.p-datepicker .p-monthpicker .p-monthpicker-month.p-highlight {\n color: #312E81;\n background: #EEF2FF;\n}\n.p-datepicker .p-yearpicker {\n margin: 0.5rem 0;\n}\n.p-datepicker .p-yearpicker .p-yearpicker-year {\n padding: 0.5rem;\n transition: none;\n border-radius: 0.375rem;\n}\n.p-datepicker .p-yearpicker .p-yearpicker-year.p-highlight {\n color: #312E81;\n background: #EEF2FF;\n}\n.p-datepicker.p-datepicker-multiple-month .p-datepicker-group {\n border-left: 1px solid #f3f4f6;\n padding-right: 0.5rem;\n padding-left: 0.5rem;\n padding-top: 0;\n padding-bottom: 0;\n}\n.p-datepicker.p-datepicker-multiple-month .p-datepicker-group:first-child {\n padding-left: 0;\n border-left: 0 none;\n}\n.p-datepicker.p-datepicker-multiple-month .p-datepicker-group:last-child {\n padding-right: 0;\n}\n.p-datepicker:not(.p-disabled) table td span:not(.p-highlight):not(.p-disabled):hover {\n background: #f4f4f5;\n}\n.p-datepicker:not(.p-disabled) table td span:not(.p-highlight):not(.p-disabled):focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.p-datepicker:not(.p-disabled) .p-monthpicker .p-monthpicker-month:not(.p-disabled):not(.p-highlight):hover {\n background: #f4f4f5;\n}\n.p-datepicker:not(.p-disabled) .p-monthpicker .p-monthpicker-month:not(.p-disabled):focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.p-datepicker:not(.p-disabled) .p-yearpicker .p-yearpicker-year:not(.p-disabled):not(.p-highlight):hover {\n background: #f4f4f5;\n}\n.p-datepicker:not(.p-disabled) .p-yearpicker .p-yearpicker-year:not(.p-disabled):focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n\n@media screen and (max-width: 769px) {\n .p-datepicker table th, .p-datepicker table td {\n padding: 0;\n }\n}\n.p-cascadeselect {\n background: #ffffff;\n border: 1px solid #d4d4d8;\n transition: none;\n border-radius: 0.375rem;\n}\n.p-cascadeselect:not(.p-disabled):hover {\n border-color: #d4d4d8;\n}\n.p-cascadeselect:not(.p-disabled).p-focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n border-color: #4F46E5;\n}\n.p-cascadeselect .p-cascadeselect-label {\n background: transparent;\n border: 0 none;\n padding: 0.75rem 0.75rem;\n}\n.p-cascadeselect .p-cascadeselect-label.p-placeholder {\n color: #71717A;\n}\n.p-cascadeselect .p-cascadeselect-label:enabled:focus {\n outline: 0 none;\n box-shadow: none;\n}\n.p-cascadeselect .p-cascadeselect-trigger {\n background: transparent;\n color: #71717A;\n width: 3rem;\n border-top-right-radius: 0.375rem;\n border-bottom-right-radius: 0.375rem;\n}\n.p-cascadeselect.p-invalid.p-component {\n border-color: #f0a9a7;\n}\n\n.p-cascadeselect-panel {\n background: #ffffff;\n color: #3f3f46;\n border: 0 none;\n border-radius: 0.375rem;\n box-shadow: 0 0 #0000, 0 0 #0000, 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);\n}\n.p-cascadeselect-panel .p-cascadeselect-items {\n padding: 0.25rem 0;\n}\n.p-cascadeselect-panel .p-cascadeselect-items .p-cascadeselect-item {\n margin: 0;\n border: 0 none;\n color: #3f3f46;\n background: transparent;\n transition: none;\n border-radius: 0;\n}\n.p-cascadeselect-panel .p-cascadeselect-items .p-cascadeselect-item .p-cascadeselect-item-content {\n padding: 0.75rem 1rem;\n}\n.p-cascadeselect-panel .p-cascadeselect-items .p-cascadeselect-item .p-cascadeselect-item-content:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: inset 0 0 0 0.15rem #6366F1;\n}\n.p-cascadeselect-panel .p-cascadeselect-items .p-cascadeselect-item.p-highlight {\n color: #312E81;\n background: #EEF2FF;\n}\n.p-cascadeselect-panel .p-cascadeselect-items .p-cascadeselect-item:not(.p-highlight):not(.p-disabled):hover {\n color: #18181B;\n background: #f4f4f5;\n}\n.p-cascadeselect-panel .p-cascadeselect-items .p-cascadeselect-item .p-cascadeselect-group-icon {\n font-size: 0.875rem;\n}\n\n.p-input-filled .p-cascadeselect {\n background: #fafafa;\n}\n.p-input-filled .p-cascadeselect:not(.p-disabled):hover {\n background-color: #fafafa;\n}\n.p-input-filled .p-cascadeselect:not(.p-disabled).p-focus {\n background-color: #ffffff;\n}\n\n.p-checkbox {\n width: 16px;\n height: 16px;\n}\n.p-checkbox .p-checkbox-box {\n border: 2px solid #d4d4d8;\n background: #ffffff;\n width: 16px;\n height: 16px;\n color: #3f3f46;\n border-radius: 0.375rem;\n transition: none;\n}\n.p-checkbox .p-checkbox-box .p-checkbox-icon {\n transition-duration: 0.2s;\n color: #ffffff;\n font-size: 10px;\n}\n.p-checkbox .p-checkbox-box.p-highlight {\n border-color: #4F46E5;\n background: #4F46E5;\n}\n.p-checkbox:not(.p-checkbox-disabled) .p-checkbox-box:hover {\n border-color: #d4d4d8;\n}\n.p-checkbox:not(.p-checkbox-disabled) .p-checkbox-box.p-focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n border-color: #4F46E5;\n}\n.p-checkbox:not(.p-checkbox-disabled) .p-checkbox-box.p-highlight:hover {\n border-color: #4F46E5;\n background: #4F46E5;\n color: #ffffff;\n}\n.p-checkbox.p-invalid > .p-checkbox-box {\n border-color: #f0a9a7;\n}\n\n.p-input-filled .p-checkbox .p-checkbox-box {\n background-color: #fafafa;\n}\n.p-input-filled .p-checkbox .p-checkbox-box.p-highlight {\n background: #4F46E5;\n}\n.p-input-filled .p-checkbox:not(.p-checkbox-disabled) .p-checkbox-box:hover {\n background-color: #fafafa;\n}\n.p-input-filled .p-checkbox:not(.p-checkbox-disabled) .p-checkbox-box.p-highlight:hover {\n background: #4F46E5;\n}\n\n.p-chips .p-chips-multiple-container {\n padding: 0.375rem 0.75rem;\n}\n.p-chips .p-chips-multiple-container:not(.p-disabled):hover {\n border-color: #d4d4d8;\n}\n.p-chips .p-chips-multiple-container:not(.p-disabled).p-focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n border-color: #4F46E5;\n}\n.p-chips .p-chips-multiple-container .p-chips-token {\n padding: 0.375rem 0.75rem;\n margin-right: 0.5rem;\n background: #e5e7eb;\n color: #3f3f46;\n border-radius: 16px;\n}\n.p-chips .p-chips-multiple-container .p-chips-token .p-chips-token-icon {\n margin-left: 0.5rem;\n}\n.p-chips .p-chips-multiple-container .p-chips-input-token {\n padding: 0.375rem 0;\n}\n.p-chips .p-chips-multiple-container .p-chips-input-token input {\n font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";\n font-size: 1rem;\n color: #3f3f46;\n padding: 0;\n margin: 0;\n}\n.p-chips.p-invalid.p-component > .p-inputtext {\n border-color: #f0a9a7;\n}\n\n.p-colorpicker-preview {\n width: 2rem;\n height: 2rem;\n}\n\n.p-colorpicker-panel {\n background: #27272A;\n border: 1px solid #18181B;\n}\n.p-colorpicker-panel .p-colorpicker-color-handle,\n.p-colorpicker-panel .p-colorpicker-hue-handle {\n border-color: #ffffff;\n}\n\n.p-colorpicker-overlay-panel {\n box-shadow: 0 0 #0000, 0 0 #0000, 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);\n}\n\n.p-dropdown {\n background: #ffffff;\n border: 1px solid #d4d4d8;\n transition: none;\n border-radius: 0.375rem;\n}\n.p-dropdown:not(.p-disabled):hover {\n border-color: #d4d4d8;\n}\n.p-dropdown:not(.p-disabled).p-focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n border-color: #4F46E5;\n}\n.p-dropdown.p-dropdown-clearable .p-dropdown-label {\n padding-right: 1.75rem;\n}\n.p-dropdown .p-dropdown-label {\n background: transparent;\n border: 0 none;\n}\n.p-dropdown .p-dropdown-label.p-placeholder {\n color: #71717A;\n}\n.p-dropdown .p-dropdown-label:enabled:focus {\n outline: 0 none;\n box-shadow: none;\n}\n.p-dropdown .p-dropdown-trigger {\n background: transparent;\n color: #71717A;\n width: 3rem;\n border-top-right-radius: 0.375rem;\n border-bottom-right-radius: 0.375rem;\n}\n.p-dropdown .p-dropdown-clear-icon {\n color: #71717A;\n right: 3rem;\n}\n.p-dropdown.p-invalid.p-component {\n border-color: #f0a9a7;\n}\n\n.p-dropdown-panel {\n background: #ffffff;\n color: #3f3f46;\n border: 0 none;\n border-radius: 0.375rem;\n box-shadow: 0 0 #0000, 0 0 #0000, 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);\n}\n.p-dropdown-panel .p-dropdown-header {\n padding: 0.5rem 0.75rem;\n border-bottom: 0 none;\n color: #3f3f46;\n background: #fafafa;\n margin: 0;\n border-top-right-radius: 0.375rem;\n border-top-left-radius: 0.375rem;\n}\n.p-dropdown-panel .p-dropdown-header .p-dropdown-filter {\n padding-right: 1.75rem;\n margin-right: -1.75rem;\n}\n.p-dropdown-panel .p-dropdown-header .p-dropdown-filter-icon {\n right: 0.75rem;\n color: #71717A;\n}\n.p-dropdown-panel .p-dropdown-items {\n padding: 0.25rem 0;\n}\n.p-dropdown-panel .p-dropdown-items .p-dropdown-item {\n margin: 0;\n padding: 0.75rem 1rem;\n border: 0 none;\n color: #3f3f46;\n background: transparent;\n transition: none;\n border-radius: 0;\n}\n.p-dropdown-panel .p-dropdown-items .p-dropdown-item.p-highlight {\n color: #312E81;\n background: #EEF2FF;\n}\n.p-dropdown-panel .p-dropdown-items .p-dropdown-item:not(.p-highlight):not(.p-disabled):hover {\n color: #18181B;\n background: #f4f4f5;\n}\n.p-dropdown-panel .p-dropdown-items .p-dropdown-item-group {\n margin: 0;\n padding: 0.75rem 1rem;\n color: #3f3f46;\n background: #ffffff;\n font-weight: 600;\n}\n.p-dropdown-panel .p-dropdown-items .p-dropdown-empty-message {\n padding: 0.75rem 1rem;\n color: #3f3f46;\n background: transparent;\n}\n\n.p-input-filled .p-dropdown {\n background: #fafafa;\n}\n.p-input-filled .p-dropdown:not(.p-disabled):hover {\n background-color: #fafafa;\n}\n.p-input-filled .p-dropdown:not(.p-disabled).p-focus {\n background-color: #ffffff;\n}\n.p-input-filled .p-dropdown:not(.p-disabled).p-focus .p-inputtext {\n background-color: transparent;\n}\n\n.p-editor-container .p-editor-toolbar {\n background: #fafafa;\n border-top-right-radius: 0.375rem;\n border-top-left-radius: 0.375rem;\n}\n.p-editor-container .p-editor-toolbar.ql-snow {\n border: 1px solid #e5e7eb;\n}\n.p-editor-container .p-editor-toolbar.ql-snow .ql-stroke {\n stroke: #71717A;\n}\n.p-editor-container .p-editor-toolbar.ql-snow .ql-fill {\n fill: #71717A;\n}\n.p-editor-container .p-editor-toolbar.ql-snow .ql-picker .ql-picker-label {\n border: 0 none;\n color: #71717A;\n}\n.p-editor-container .p-editor-toolbar.ql-snow .ql-picker .ql-picker-label:hover {\n color: #3f3f46;\n}\n.p-editor-container .p-editor-toolbar.ql-snow .ql-picker .ql-picker-label:hover .ql-stroke {\n stroke: #3f3f46;\n}\n.p-editor-container .p-editor-toolbar.ql-snow .ql-picker .ql-picker-label:hover .ql-fill {\n fill: #3f3f46;\n}\n.p-editor-container .p-editor-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label {\n color: #3f3f46;\n}\n.p-editor-container .p-editor-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke {\n stroke: #3f3f46;\n}\n.p-editor-container .p-editor-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill {\n fill: #3f3f46;\n}\n.p-editor-container .p-editor-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options {\n background: #ffffff;\n border: 0 none;\n box-shadow: 0 0 #0000, 0 0 #0000, 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);\n border-radius: 0.375rem;\n padding: 0.25rem 0;\n}\n.p-editor-container .p-editor-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options .ql-picker-item {\n color: #3f3f46;\n}\n.p-editor-container .p-editor-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options .ql-picker-item:hover {\n color: #18181B;\n background: #f4f4f5;\n}\n.p-editor-container .p-editor-toolbar.ql-snow .ql-picker.ql-expanded:not(.ql-icon-picker) .ql-picker-item {\n padding: 0.75rem 1rem;\n}\n.p-editor-container .p-editor-content {\n border-bottom-right-radius: 0.375rem;\n border-bottom-left-radius: 0.375rem;\n}\n.p-editor-container .p-editor-content.ql-snow {\n border: 1px solid #e5e7eb;\n}\n.p-editor-container .p-editor-content .ql-editor {\n background: #ffffff;\n color: #3f3f46;\n border-bottom-right-radius: 0.375rem;\n border-bottom-left-radius: 0.375rem;\n}\n.p-editor-container .ql-snow.ql-toolbar button:hover,\n.p-editor-container .ql-snow.ql-toolbar button:focus {\n color: #3f3f46;\n}\n.p-editor-container .ql-snow.ql-toolbar button:hover .ql-stroke,\n.p-editor-container .ql-snow.ql-toolbar button:focus .ql-stroke {\n stroke: #3f3f46;\n}\n.p-editor-container .ql-snow.ql-toolbar button:hover .ql-fill,\n.p-editor-container .ql-snow.ql-toolbar button:focus .ql-fill {\n fill: #3f3f46;\n}\n.p-editor-container .ql-snow.ql-toolbar button.ql-active,\n.p-editor-container .ql-snow.ql-toolbar .ql-picker-label.ql-active,\n.p-editor-container .ql-snow.ql-toolbar .ql-picker-item.ql-selected {\n color: #4F46E5;\n}\n.p-editor-container .ql-snow.ql-toolbar button.ql-active .ql-stroke,\n.p-editor-container .ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,\n.p-editor-container .ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke {\n stroke: #4F46E5;\n}\n.p-editor-container .ql-snow.ql-toolbar button.ql-active .ql-fill,\n.p-editor-container .ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,\n.p-editor-container .ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill {\n fill: #4F46E5;\n}\n.p-editor-container .ql-snow.ql-toolbar button.ql-active .ql-picker-label,\n.p-editor-container .ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-picker-label,\n.p-editor-container .ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-picker-label {\n color: #4F46E5;\n}\n\n.p-inputgroup-addon {\n background: #fafafa;\n color: #71717A;\n border-top: 1px solid #d4d4d8;\n border-left: 1px solid #d4d4d8;\n border-bottom: 1px solid #d4d4d8;\n padding: 0.75rem 0.75rem;\n min-width: 3rem;\n}\n.p-inputgroup-addon:last-child {\n border-right: 1px solid #d4d4d8;\n}\n\n.p-inputgroup > .p-component,\n.p-inputgroup > .p-inputwrapper > .p-inputtext,\n.p-inputgroup > .p-float-label > .p-component {\n border-radius: 0;\n margin: 0;\n}\n.p-inputgroup > .p-component + .p-inputgroup-addon,\n.p-inputgroup > .p-inputwrapper > .p-inputtext + .p-inputgroup-addon,\n.p-inputgroup > .p-float-label > .p-component + .p-inputgroup-addon {\n border-left: 0 none;\n}\n.p-inputgroup > .p-component:focus,\n.p-inputgroup > .p-inputwrapper > .p-inputtext:focus,\n.p-inputgroup > .p-float-label > .p-component:focus {\n z-index: 1;\n}\n.p-inputgroup > .p-component:focus ~ label,\n.p-inputgroup > .p-inputwrapper > .p-inputtext:focus ~ label,\n.p-inputgroup > .p-float-label > .p-component:focus ~ label {\n z-index: 1;\n}\n\n.p-inputgroup-addon:first-child,\n.p-inputgroup button:first-child,\n.p-inputgroup input:first-child,\n.p-inputgroup > .p-inputwrapper:first-child,\n.p-inputgroup > .p-inputwrapper:first-child > .p-inputtext {\n border-top-left-radius: 0.375rem;\n border-bottom-left-radius: 0.375rem;\n}\n\n.p-inputgroup .p-float-label:first-child input {\n border-top-left-radius: 0.375rem;\n border-bottom-left-radius: 0.375rem;\n}\n\n.p-inputgroup-addon:last-child,\n.p-inputgroup button:last-child,\n.p-inputgroup input:last-child,\n.p-inputgroup > .p-inputwrapper:last-child,\n.p-inputgroup > .p-inputwrapper:last-child > .p-inputtext {\n border-top-right-radius: 0.375rem;\n border-bottom-right-radius: 0.375rem;\n}\n\n.p-inputgroup .p-float-label:last-child input {\n border-top-right-radius: 0.375rem;\n border-bottom-right-radius: 0.375rem;\n}\n\n.p-fluid .p-inputgroup .p-button {\n width: auto;\n}\n.p-fluid .p-inputgroup .p-button.p-button-icon-only {\n width: 3rem;\n}\n\n.p-inputnumber.p-invalid.p-component > .p-inputtext {\n border-color: #f0a9a7;\n}\n\n.p-inputswitch {\n width: 3rem;\n height: 1.75rem;\n}\n.p-inputswitch .p-inputswitch-slider {\n background: #d4d4d8;\n transition: none;\n border-radius: 30px;\n}\n.p-inputswitch .p-inputswitch-slider:before {\n background: #ffffff;\n width: 1.25rem;\n height: 1.25rem;\n left: 0.25rem;\n margin-top: -0.625rem;\n border-radius: 50%;\n transition-duration: 0.2s;\n}\n.p-inputswitch.p-inputswitch-checked .p-inputswitch-slider:before {\n transform: translateX(1.25rem);\n}\n.p-inputswitch.p-focus .p-inputswitch-slider {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.p-inputswitch:not(.p-disabled):hover .p-inputswitch-slider {\n background: #bebec4;\n}\n.p-inputswitch.p-inputswitch-checked .p-inputswitch-slider {\n background: #4F46E5;\n}\n.p-inputswitch.p-inputswitch-checked .p-inputswitch-slider:before {\n background: #ffffff;\n}\n.p-inputswitch.p-inputswitch-checked:not(.p-disabled):hover .p-inputswitch-slider {\n background: #4338CA;\n}\n.p-inputswitch.p-invalid {\n border-color: #f0a9a7;\n}\n\n.p-inputtext {\n font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";\n font-size: 1rem;\n color: #3f3f46;\n background: #ffffff;\n padding: 0.75rem 0.75rem;\n border: 1px solid #d4d4d8;\n transition: none;\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n border-radius: 0.375rem;\n}\n.p-inputtext:enabled:hover {\n border-color: #d4d4d8;\n}\n.p-inputtext:enabled:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n border-color: #4F46E5;\n}\n.p-inputtext.p-invalid.p-component {\n border-color: #f0a9a7;\n}\n.p-inputtext.p-inputtext-sm {\n font-size: 0.875rem;\n padding: 0.65625rem 0.65625rem;\n}\n.p-inputtext.p-inputtext-lg {\n font-size: 1.25rem;\n padding: 0.9375rem 0.9375rem;\n}\n\n.p-float-label > label {\n left: 0.75rem;\n color: #71717A;\n transition-duration: 0.2s;\n}\n\n.p-input-icon-left > i:first-of-type {\n left: 0.75rem;\n color: #71717A;\n}\n\n.p-input-icon-left > .p-inputtext {\n padding-left: 2.5rem;\n}\n\n.p-input-icon-left.p-float-label > label {\n left: 2.5rem;\n}\n\n.p-input-icon-right > i:last-of-type {\n right: 0.75rem;\n color: #71717A;\n}\n\n.p-input-icon-right > .p-inputtext {\n padding-right: 2.5rem;\n}\n\n::-webkit-input-placeholder {\n color: #71717A;\n}\n\n:-moz-placeholder {\n color: #71717A;\n}\n\n::-moz-placeholder {\n color: #71717A;\n}\n\n:-ms-input-placeholder {\n color: #71717A;\n}\n\n.p-input-filled .p-inputtext {\n background-color: #fafafa;\n}\n.p-input-filled .p-inputtext:enabled:hover {\n background-color: #fafafa;\n}\n.p-input-filled .p-inputtext:enabled:focus {\n background-color: #ffffff;\n}\n\n.p-inputtext-sm .p-inputtext {\n font-size: 0.875rem;\n padding: 0.65625rem 0.65625rem;\n}\n\n.p-inputtext-lg .p-inputtext {\n font-size: 1.25rem;\n padding: 0.9375rem 0.9375rem;\n}\n\n.p-listbox {\n background: #ffffff;\n color: #3f3f46;\n border: 1px solid #d4d4d8;\n border-radius: 0.375rem;\n}\n.p-listbox .p-listbox-header {\n padding: 0.5rem 0.75rem;\n border-bottom: 0 none;\n color: #3f3f46;\n background: #fafafa;\n margin: 0;\n border-top-right-radius: 0.375rem;\n border-top-left-radius: 0.375rem;\n}\n.p-listbox .p-listbox-header .p-listbox-filter {\n padding-right: 1.75rem;\n}\n.p-listbox .p-listbox-header .p-listbox-filter-icon {\n right: 0.75rem;\n color: #71717A;\n}\n.p-listbox .p-listbox-list {\n padding: 0.25rem 0;\n}\n.p-listbox .p-listbox-list .p-listbox-item {\n margin: 0;\n padding: 0.75rem 1rem;\n border: 0 none;\n color: #3f3f46;\n transition: none;\n border-radius: 0;\n}\n.p-listbox .p-listbox-list .p-listbox-item.p-highlight {\n color: #312E81;\n background: #EEF2FF;\n}\n.p-listbox .p-listbox-list .p-listbox-item:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: inset 0 0 0 0.15rem #6366F1;\n}\n.p-listbox .p-listbox-list .p-listbox-item-group {\n margin: 0;\n padding: 0.75rem 1rem;\n color: #3f3f46;\n background: #ffffff;\n font-weight: 600;\n}\n.p-listbox .p-listbox-list .p-listbox-empty-message {\n padding: 0.75rem 1rem;\n color: #3f3f46;\n background: transparent;\n}\n.p-listbox:not(.p-disabled) .p-listbox-item:not(.p-highlight):not(.p-disabled):hover {\n color: #18181B;\n background: #f4f4f5;\n}\n.p-listbox.p-invalid {\n border-color: #f0a9a7;\n}\n\n.p-multiselect {\n background: #ffffff;\n border: 1px solid #d4d4d8;\n transition: none;\n border-radius: 0.375rem;\n}\n.p-multiselect:not(.p-disabled):hover {\n border-color: #d4d4d8;\n}\n.p-multiselect:not(.p-disabled).p-focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n border-color: #4F46E5;\n}\n.p-multiselect .p-multiselect-label {\n padding: 0.75rem 0.75rem;\n transition: none;\n}\n.p-multiselect .p-multiselect-label.p-placeholder {\n color: #71717A;\n}\n.p-multiselect.p-multiselect-chip .p-multiselect-token {\n padding: 0.375rem 0.75rem;\n margin-right: 0.5rem;\n background: #e5e7eb;\n color: #3f3f46;\n border-radius: 16px;\n}\n.p-multiselect.p-multiselect-chip .p-multiselect-token .p-multiselect-token-icon {\n margin-left: 0.5rem;\n}\n.p-multiselect .p-multiselect-trigger {\n background: transparent;\n color: #71717A;\n width: 3rem;\n border-top-right-radius: 0.375rem;\n border-bottom-right-radius: 0.375rem;\n}\n.p-multiselect.p-invalid.p-component {\n border-color: #f0a9a7;\n}\n\n.p-inputwrapper-filled.p-multiselect.p-multiselect-chip .p-multiselect-label {\n padding: 0.375rem 0.75rem;\n}\n\n.p-multiselect-panel {\n background: #ffffff;\n color: #3f3f46;\n border: 0 none;\n border-radius: 0.375rem;\n box-shadow: 0 0 #0000, 0 0 #0000, 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);\n}\n.p-multiselect-panel .p-multiselect-header {\n padding: 0.5rem 0.75rem;\n border-bottom: 0 none;\n color: #3f3f46;\n background: #fafafa;\n margin: 0;\n border-top-right-radius: 0.375rem;\n border-top-left-radius: 0.375rem;\n}\n.p-multiselect-panel .p-multiselect-header .p-multiselect-filter-container .p-inputtext {\n padding-right: 1.75rem;\n}\n.p-multiselect-panel .p-multiselect-header .p-multiselect-filter-container .p-multiselect-filter-icon {\n right: 0.75rem;\n color: #71717A;\n}\n.p-multiselect-panel .p-multiselect-header .p-checkbox {\n margin-right: 0.5rem;\n}\n.p-multiselect-panel .p-multiselect-header .p-multiselect-close {\n margin-left: 0.5rem;\n width: 2rem;\n height: 2rem;\n color: #71717A;\n border: 0 none;\n background: transparent;\n border-radius: 50%;\n transition: none;\n}\n.p-multiselect-panel .p-multiselect-header .p-multiselect-close:enabled:hover {\n color: #18181B;\n border-color: transparent;\n background: #f4f4f5;\n}\n.p-multiselect-panel .p-multiselect-header .p-multiselect-close:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.p-multiselect-panel .p-multiselect-items {\n padding: 0.25rem 0;\n}\n.p-multiselect-panel .p-multiselect-items .p-multiselect-item {\n margin: 0;\n padding: 0.75rem 1rem;\n border: 0 none;\n color: #3f3f46;\n background: transparent;\n transition: none;\n border-radius: 0;\n}\n.p-multiselect-panel .p-multiselect-items .p-multiselect-item.p-highlight {\n color: #312E81;\n background: #EEF2FF;\n}\n.p-multiselect-panel .p-multiselect-items .p-multiselect-item:not(.p-highlight):not(.p-disabled):hover {\n color: #18181B;\n background: #f4f4f5;\n}\n.p-multiselect-panel .p-multiselect-items .p-multiselect-item:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: inset 0 0 0 0.15rem #6366F1;\n}\n.p-multiselect-panel .p-multiselect-items .p-multiselect-item .p-checkbox {\n margin-right: 0.5rem;\n}\n.p-multiselect-panel .p-multiselect-items .p-multiselect-item-group {\n margin: 0;\n padding: 0.75rem 1rem;\n color: #3f3f46;\n background: #ffffff;\n font-weight: 600;\n}\n.p-multiselect-panel .p-multiselect-items .p-multiselect-empty-message {\n padding: 0.75rem 1rem;\n color: #3f3f46;\n background: transparent;\n}\n\n.p-input-filled .p-multiselect {\n background: #fafafa;\n}\n.p-input-filled .p-multiselect:not(.p-disabled):hover {\n background-color: #fafafa;\n}\n.p-input-filled .p-multiselect:not(.p-disabled).p-focus {\n background-color: #ffffff;\n}\n\n.p-password.p-invalid.p-component > .p-inputtext {\n border-color: #f0a9a7;\n}\n\n.p-password-panel {\n padding: 1.25rem;\n background: #ffffff;\n color: #3f3f46;\n border: 0 none;\n box-shadow: 0 0 #0000, 0 0 #0000, 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);\n border-radius: 0.375rem;\n}\n.p-password-panel .p-password-meter {\n margin-bottom: 0.5rem;\n background: #e5e7eb;\n}\n.p-password-panel .p-password-meter .p-password-strength.weak {\n background: #EF4444;\n}\n.p-password-panel .p-password-meter .p-password-strength.medium {\n background: #F59E0B;\n}\n.p-password-panel .p-password-meter .p-password-strength.strong {\n background: #22C55E;\n}\n\n.p-radiobutton {\n width: 16px;\n height: 16px;\n}\n.p-radiobutton .p-radiobutton-box {\n border: 2px solid #d4d4d8;\n background: #ffffff;\n width: 16px;\n height: 16px;\n color: #3f3f46;\n border-radius: 50%;\n transition: none;\n}\n.p-radiobutton .p-radiobutton-box:not(.p-disabled):not(.p-highlight):hover {\n border-color: #d4d4d8;\n}\n.p-radiobutton .p-radiobutton-box:not(.p-disabled).p-focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n border-color: #4F46E5;\n}\n.p-radiobutton .p-radiobutton-box .p-radiobutton-icon {\n width: 6px;\n height: 6px;\n transition-duration: 0.2s;\n background-color: #ffffff;\n}\n.p-radiobutton .p-radiobutton-box.p-highlight {\n border-color: #4F46E5;\n background: #4F46E5;\n}\n.p-radiobutton .p-radiobutton-box.p-highlight:not(.p-disabled):hover {\n border-color: #4F46E5;\n background: #4F46E5;\n color: #ffffff;\n}\n.p-radiobutton.p-invalid > .p-radiobutton-box {\n border-color: #f0a9a7;\n}\n.p-radiobutton:focus {\n outline: 0 none;\n}\n\n.p-input-filled .p-radiobutton .p-radiobutton-box {\n background-color: #fafafa;\n}\n.p-input-filled .p-radiobutton .p-radiobutton-box:not(.p-disabled):hover {\n background-color: #fafafa;\n}\n.p-input-filled .p-radiobutton .p-radiobutton-box.p-highlight {\n background: #4F46E5;\n}\n.p-input-filled .p-radiobutton .p-radiobutton-box.p-highlight:not(.p-disabled):hover {\n background: #4F46E5;\n}\n\n.p-rating .p-rating-icon {\n color: #3f3f46;\n margin-left: 0.5rem;\n transition: none;\n font-size: 1.143rem;\n}\n.p-rating .p-rating-icon.p-rating-cancel {\n color: #EF4444;\n}\n.p-rating .p-rating-icon:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.p-rating .p-rating-icon:first-child {\n margin-left: 0;\n}\n.p-rating .p-rating-icon.pi-star-fill {\n color: #4F46E5;\n}\n.p-rating:not(.p-disabled):not(.p-readonly) .p-rating-icon:hover {\n color: #4F46E5;\n}\n.p-rating:not(.p-disabled):not(.p-readonly) .p-rating-icon.p-rating-cancel:hover {\n color: #DC2626;\n}\n\n.p-selectbutton .p-button {\n background: #ffffff;\n border: 1px solid #d4d4d8;\n color: #3f3f46;\n transition: none;\n}\n.p-selectbutton .p-button .p-button-icon-left,\n.p-selectbutton .p-button .p-button-icon-right {\n color: #71717A;\n}\n.p-selectbutton .p-button:not(.p-disabled):not(.p-highlight):hover {\n background: #f4f4f5;\n border-color: #d4d4d8;\n color: #3f3f46;\n}\n.p-selectbutton .p-button:not(.p-disabled):not(.p-highlight):hover .p-button-icon-left,\n.p-selectbutton .p-button:not(.p-disabled):not(.p-highlight):hover .p-button-icon-right {\n color: #71717A;\n}\n.p-selectbutton .p-button.p-highlight {\n background: #4F46E5;\n border-color: #4F46E5;\n color: #ffffff;\n}\n.p-selectbutton .p-button.p-highlight .p-button-icon-left,\n.p-selectbutton .p-button.p-highlight .p-button-icon-right {\n color: #ffffff;\n}\n.p-selectbutton .p-button.p-highlight:hover {\n background: #4338CA;\n border-color: #4338CA;\n color: #ffffff;\n}\n.p-selectbutton .p-button.p-highlight:hover .p-button-icon-left,\n.p-selectbutton .p-button.p-highlight:hover .p-button-icon-right {\n color: #ffffff;\n}\n.p-selectbutton.p-invalid > .p-button {\n border-color: #f0a9a7;\n}\n\n.p-slider {\n background: #e5e7eb;\n border: 0 none;\n border-radius: 0.375rem;\n}\n.p-slider.p-slider-horizontal {\n height: 0.286rem;\n}\n.p-slider.p-slider-horizontal .p-slider-handle {\n margin-top: -0.5715rem;\n margin-left: -0.5715rem;\n}\n.p-slider.p-slider-vertical {\n width: 0.286rem;\n}\n.p-slider.p-slider-vertical .p-slider-handle {\n margin-left: -0.5715rem;\n margin-bottom: -0.5715rem;\n}\n.p-slider .p-slider-handle {\n height: 1.143rem;\n width: 1.143rem;\n background: #ffffff;\n border: 2px solid #4F46E5;\n border-radius: 50%;\n transition: none;\n}\n.p-slider .p-slider-handle:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.p-slider .p-slider-range {\n background: #4F46E5;\n}\n.p-slider:not(.p-disabled) .p-slider-handle:hover {\n background: #4F46E5;\n border-color: #4F46E5;\n}\n\n.p-treeselect {\n background: #ffffff;\n border: 1px solid #d4d4d8;\n transition: none;\n border-radius: 0.375rem;\n}\n.p-treeselect:not(.p-disabled):hover {\n border-color: #d4d4d8;\n}\n.p-treeselect:not(.p-disabled).p-focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n border-color: #4F46E5;\n}\n.p-treeselect .p-treeselect-label {\n padding: 0.75rem 0.75rem;\n transition: none;\n}\n.p-treeselect .p-treeselect-label.p-placeholder {\n color: #71717A;\n}\n.p-treeselect.p-treeselect-chip .p-treeselect-token {\n padding: 0.375rem 0.75rem;\n margin-right: 0.5rem;\n background: #e5e7eb;\n color: #3f3f46;\n border-radius: 16px;\n}\n.p-treeselect .p-treeselect-trigger {\n background: transparent;\n color: #71717A;\n width: 3rem;\n border-top-right-radius: 0.375rem;\n border-bottom-right-radius: 0.375rem;\n}\n.p-treeselect.p-invalid.p-component {\n border-color: #f0a9a7;\n}\n\n.p-inputwrapper-filled.p-treeselect.p-treeselect-chip .p-treeselect-label {\n padding: 0.375rem 0.75rem;\n}\n\n.p-treeselect-panel {\n background: #ffffff;\n color: #3f3f46;\n border: 0 none;\n border-radius: 0.375rem;\n box-shadow: 0 0 #0000, 0 0 #0000, 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);\n}\n.p-treeselect-panel .p-treeselect-items-wrapper .p-tree {\n border: 0 none;\n}\n.p-treeselect-panel .p-treeselect-items-wrapper .p-treeselect-empty-message {\n padding: 0.75rem 1rem;\n color: #3f3f46;\n background: transparent;\n}\n\n.p-input-filled .p-treeselect {\n background: #fafafa;\n}\n.p-input-filled .p-treeselect:not(.p-disabled):hover {\n background-color: #fafafa;\n}\n.p-input-filled .p-treeselect:not(.p-disabled).p-focus {\n background-color: #ffffff;\n}\n\n.p-togglebutton.p-button {\n background: #ffffff;\n border: 1px solid #d4d4d8;\n color: #3f3f46;\n transition: none;\n}\n.p-togglebutton.p-button .p-button-icon-left,\n.p-togglebutton.p-button .p-button-icon-right {\n color: #71717A;\n}\n.p-togglebutton.p-button:not(.p-disabled):not(.p-highlight):hover {\n background: #f4f4f5;\n border-color: #d4d4d8;\n color: #3f3f46;\n}\n.p-togglebutton.p-button:not(.p-disabled):not(.p-highlight):hover .p-button-icon-left,\n.p-togglebutton.p-button:not(.p-disabled):not(.p-highlight):hover .p-button-icon-right {\n color: #71717A;\n}\n.p-togglebutton.p-button.p-highlight {\n background: #4F46E5;\n border-color: #4F46E5;\n color: #ffffff;\n}\n.p-togglebutton.p-button.p-highlight .p-button-icon-left,\n.p-togglebutton.p-button.p-highlight .p-button-icon-right {\n color: #ffffff;\n}\n.p-togglebutton.p-button.p-highlight:hover {\n background: #4338CA;\n border-color: #4338CA;\n color: #ffffff;\n}\n.p-togglebutton.p-button.p-highlight:hover .p-button-icon-left,\n.p-togglebutton.p-button.p-highlight:hover .p-button-icon-right {\n color: #ffffff;\n}\n.p-togglebutton.p-button.p-invalid > .p-button {\n border-color: #f0a9a7;\n}\n\n.p-button {\n color: #ffffff;\n background: #4F46E5;\n border: 1px solid #4F46E5;\n padding: 0.75rem 1rem;\n font-size: 1rem;\n transition: none;\n border-radius: 0.375rem;\n}\n.p-button:enabled:hover {\n background: #4338CA;\n color: #ffffff;\n border-color: #4338CA;\n}\n.p-button:enabled:active {\n background: #4338CA;\n color: #ffffff;\n border-color: #4338CA;\n}\n.p-button.p-button-outlined {\n background-color: transparent;\n color: #4F46E5;\n border: 1px solid;\n}\n.p-button.p-button-outlined:enabled:hover {\n background: rgba(79, 70, 229, 0.04);\n color: #4F46E5;\n border: 1px solid;\n}\n.p-button.p-button-outlined:enabled:active {\n background: rgba(79, 70, 229, 0.16);\n color: #4F46E5;\n border: 1px solid;\n}\n.p-button.p-button-outlined.p-button-plain {\n color: #71717A;\n border-color: #71717A;\n}\n.p-button.p-button-outlined.p-button-plain:enabled:hover {\n background: #f4f4f5;\n color: #71717A;\n}\n.p-button.p-button-outlined.p-button-plain:enabled:active {\n background: #e5e7eb;\n color: #71717A;\n}\n.p-button.p-button-text {\n background-color: transparent;\n color: #4F46E5;\n border-color: transparent;\n}\n.p-button.p-button-text:enabled:hover {\n background: rgba(79, 70, 229, 0.04);\n color: #4F46E5;\n border-color: transparent;\n}\n.p-button.p-button-text:enabled:active {\n background: rgba(79, 70, 229, 0.16);\n color: #4F46E5;\n border-color: transparent;\n}\n.p-button.p-button-text.p-button-plain {\n color: #71717A;\n}\n.p-button.p-button-text.p-button-plain:enabled:hover {\n background: #f4f4f5;\n color: #71717A;\n}\n.p-button.p-button-text.p-button-plain:enabled:active {\n background: #e5e7eb;\n color: #71717A;\n}\n.p-button:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.p-button .p-button-icon-left {\n margin-right: 0.5rem;\n}\n.p-button .p-button-icon-right {\n margin-left: 0.5rem;\n}\n.p-button .p-button-icon-bottom {\n margin-top: 0.5rem;\n}\n.p-button .p-button-icon-top {\n margin-bottom: 0.5rem;\n}\n.p-button .p-badge {\n margin-left: 0.5rem;\n min-width: 1rem;\n height: 1rem;\n line-height: 1rem;\n color: #4F46E5;\n background-color: #ffffff;\n}\n.p-button.p-button-raised {\n box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);\n}\n.p-button.p-button-rounded {\n border-radius: 2rem;\n}\n.p-button.p-button-icon-only {\n width: 3rem;\n padding: 0.75rem 0;\n}\n.p-button.p-button-icon-only .p-button-icon-left,\n.p-button.p-button-icon-only .p-button-icon-right {\n margin: 0;\n}\n.p-button.p-button-icon-only.p-button-rounded {\n border-radius: 50%;\n height: 3rem;\n}\n.p-button.p-button-sm {\n font-size: 0.875rem;\n padding: 0.65625rem 0.875rem;\n}\n.p-button.p-button-sm .p-button-icon {\n font-size: 0.875rem;\n}\n.p-button.p-button-lg {\n font-size: 1.25rem;\n padding: 0.9375rem 1.25rem;\n}\n.p-button.p-button-lg .p-button-icon {\n font-size: 1.25rem;\n}\n.p-button.p-button-loading-label-only .p-button-label {\n margin-left: 0.5rem;\n}\n.p-button.p-button-loading-label-only .p-button-loading-icon {\n margin-right: 0;\n}\n\n.p-fluid .p-button {\n width: 100%;\n}\n.p-fluid .p-button-icon-only {\n width: 3rem;\n}\n.p-fluid .p-buttonset {\n display: flex;\n}\n.p-fluid .p-buttonset .p-button {\n flex: 1;\n}\n\n.p-button.p-button-secondary, .p-buttonset.p-button-secondary > .p-button, .p-splitbutton.p-button-secondary > .p-button {\n color: #ffffff;\n background: #64748B;\n border: 1px solid #64748B;\n}\n.p-button.p-button-secondary:enabled:hover, .p-buttonset.p-button-secondary > .p-button:enabled:hover, .p-splitbutton.p-button-secondary > .p-button:enabled:hover {\n background: #475569;\n color: #ffffff;\n border-color: #475569;\n}\n.p-button.p-button-secondary:enabled:focus, .p-buttonset.p-button-secondary > .p-button:enabled:focus, .p-splitbutton.p-button-secondary > .p-button:enabled:focus {\n box-shadow: 0 0 0 0.2rem #c0c7d2;\n}\n.p-button.p-button-secondary:enabled:active, .p-buttonset.p-button-secondary > .p-button:enabled:active, .p-splitbutton.p-button-secondary > .p-button:enabled:active {\n background: #475569;\n color: #ffffff;\n border-color: #475569;\n}\n.p-button.p-button-secondary.p-button-outlined, .p-buttonset.p-button-secondary > .p-button.p-button-outlined, .p-splitbutton.p-button-secondary > .p-button.p-button-outlined {\n background-color: transparent;\n color: #64748B;\n border: 1px solid;\n}\n.p-button.p-button-secondary.p-button-outlined:enabled:hover, .p-buttonset.p-button-secondary > .p-button.p-button-outlined:enabled:hover, .p-splitbutton.p-button-secondary > .p-button.p-button-outlined:enabled:hover {\n background: rgba(100, 116, 139, 0.04);\n color: #64748B;\n border: 1px solid;\n}\n.p-button.p-button-secondary.p-button-outlined:enabled:active, .p-buttonset.p-button-secondary > .p-button.p-button-outlined:enabled:active, .p-splitbutton.p-button-secondary > .p-button.p-button-outlined:enabled:active {\n background: rgba(100, 116, 139, 0.16);\n color: #64748B;\n border: 1px solid;\n}\n.p-button.p-button-secondary.p-button-text, .p-buttonset.p-button-secondary > .p-button.p-button-text, .p-splitbutton.p-button-secondary > .p-button.p-button-text {\n background-color: transparent;\n color: #64748B;\n border-color: transparent;\n}\n.p-button.p-button-secondary.p-button-text:enabled:hover, .p-buttonset.p-button-secondary > .p-button.p-button-text:enabled:hover, .p-splitbutton.p-button-secondary > .p-button.p-button-text:enabled:hover {\n background: rgba(100, 116, 139, 0.04);\n border-color: transparent;\n color: #64748B;\n}\n.p-button.p-button-secondary.p-button-text:enabled:active, .p-buttonset.p-button-secondary > .p-button.p-button-text:enabled:active, .p-splitbutton.p-button-secondary > .p-button.p-button-text:enabled:active {\n background: rgba(100, 116, 139, 0.16);\n border-color: transparent;\n color: #64748B;\n}\n\n.p-button.p-button-info, .p-buttonset.p-button-info > .p-button, .p-splitbutton.p-button-info > .p-button {\n color: #ffffff;\n background: #3B82F6;\n border: 1px solid #3B82F6;\n}\n.p-button.p-button-info:enabled:hover, .p-buttonset.p-button-info > .p-button:enabled:hover, .p-splitbutton.p-button-info > .p-button:enabled:hover {\n background: #2563EB;\n color: #ffffff;\n border-color: #2563EB;\n}\n.p-button.p-button-info:enabled:focus, .p-buttonset.p-button-info > .p-button:enabled:focus, .p-splitbutton.p-button-info > .p-button:enabled:focus {\n box-shadow: 0 0 0 0.2rem #b1cdfb;\n}\n.p-button.p-button-info:enabled:active, .p-buttonset.p-button-info > .p-button:enabled:active, .p-splitbutton.p-button-info > .p-button:enabled:active {\n background: #2563EB;\n color: #ffffff;\n border-color: #2563EB;\n}\n.p-button.p-button-info.p-button-outlined, .p-buttonset.p-button-info > .p-button.p-button-outlined, .p-splitbutton.p-button-info > .p-button.p-button-outlined {\n background-color: transparent;\n color: #3B82F6;\n border: 1px solid;\n}\n.p-button.p-button-info.p-button-outlined:enabled:hover, .p-buttonset.p-button-info > .p-button.p-button-outlined:enabled:hover, .p-splitbutton.p-button-info > .p-button.p-button-outlined:enabled:hover {\n background: rgba(59, 130, 246, 0.04);\n color: #3B82F6;\n border: 1px solid;\n}\n.p-button.p-button-info.p-button-outlined:enabled:active, .p-buttonset.p-button-info > .p-button.p-button-outlined:enabled:active, .p-splitbutton.p-button-info > .p-button.p-button-outlined:enabled:active {\n background: rgba(59, 130, 246, 0.16);\n color: #3B82F6;\n border: 1px solid;\n}\n.p-button.p-button-info.p-button-text, .p-buttonset.p-button-info > .p-button.p-button-text, .p-splitbutton.p-button-info > .p-button.p-button-text {\n background-color: transparent;\n color: #3B82F6;\n border-color: transparent;\n}\n.p-button.p-button-info.p-button-text:enabled:hover, .p-buttonset.p-button-info > .p-button.p-button-text:enabled:hover, .p-splitbutton.p-button-info > .p-button.p-button-text:enabled:hover {\n background: rgba(59, 130, 246, 0.04);\n border-color: transparent;\n color: #3B82F6;\n}\n.p-button.p-button-info.p-button-text:enabled:active, .p-buttonset.p-button-info > .p-button.p-button-text:enabled:active, .p-splitbutton.p-button-info > .p-button.p-button-text:enabled:active {\n background: rgba(59, 130, 246, 0.16);\n border-color: transparent;\n color: #3B82F6;\n}\n\n.p-button.p-button-success, .p-buttonset.p-button-success > .p-button, .p-splitbutton.p-button-success > .p-button {\n color: #ffffff;\n background: #22C55E;\n border: 1px solid #22C55E;\n}\n.p-button.p-button-success:enabled:hover, .p-buttonset.p-button-success > .p-button:enabled:hover, .p-splitbutton.p-button-success > .p-button:enabled:hover {\n background: #16A34A;\n color: #ffffff;\n border-color: #16A34A;\n}\n.p-button.p-button-success:enabled:focus, .p-buttonset.p-button-success > .p-button:enabled:focus, .p-splitbutton.p-button-success > .p-button:enabled:focus {\n box-shadow: 0 0 0 0.2rem #a0efbd;\n}\n.p-button.p-button-success:enabled:active, .p-buttonset.p-button-success > .p-button:enabled:active, .p-splitbutton.p-button-success > .p-button:enabled:active {\n background: #16A34A;\n color: #ffffff;\n border-color: #16A34A;\n}\n.p-button.p-button-success.p-button-outlined, .p-buttonset.p-button-success > .p-button.p-button-outlined, .p-splitbutton.p-button-success > .p-button.p-button-outlined {\n background-color: transparent;\n color: #22C55E;\n border: 1px solid;\n}\n.p-button.p-button-success.p-button-outlined:enabled:hover, .p-buttonset.p-button-success > .p-button.p-button-outlined:enabled:hover, .p-splitbutton.p-button-success > .p-button.p-button-outlined:enabled:hover {\n background: rgba(34, 197, 94, 0.04);\n color: #22C55E;\n border: 1px solid;\n}\n.p-button.p-button-success.p-button-outlined:enabled:active, .p-buttonset.p-button-success > .p-button.p-button-outlined:enabled:active, .p-splitbutton.p-button-success > .p-button.p-button-outlined:enabled:active {\n background: rgba(34, 197, 94, 0.16);\n color: #22C55E;\n border: 1px solid;\n}\n.p-button.p-button-success.p-button-text, .p-buttonset.p-button-success > .p-button.p-button-text, .p-splitbutton.p-button-success > .p-button.p-button-text {\n background-color: transparent;\n color: #22C55E;\n border-color: transparent;\n}\n.p-button.p-button-success.p-button-text:enabled:hover, .p-buttonset.p-button-success > .p-button.p-button-text:enabled:hover, .p-splitbutton.p-button-success > .p-button.p-button-text:enabled:hover {\n background: rgba(34, 197, 94, 0.04);\n border-color: transparent;\n color: #22C55E;\n}\n.p-button.p-button-success.p-button-text:enabled:active, .p-buttonset.p-button-success > .p-button.p-button-text:enabled:active, .p-splitbutton.p-button-success > .p-button.p-button-text:enabled:active {\n background: rgba(34, 197, 94, 0.16);\n border-color: transparent;\n color: #22C55E;\n}\n\n.p-button.p-button-warning, .p-buttonset.p-button-warning > .p-button, .p-splitbutton.p-button-warning > .p-button {\n color: #ffffff;\n background: #F59E0B;\n border: 1px solid #F59E0B;\n}\n.p-button.p-button-warning:enabled:hover, .p-buttonset.p-button-warning > .p-button:enabled:hover, .p-splitbutton.p-button-warning > .p-button:enabled:hover {\n background: #D97706;\n color: #ffffff;\n border-color: #D97706;\n}\n.p-button.p-button-warning:enabled:focus, .p-buttonset.p-button-warning > .p-button:enabled:focus, .p-splitbutton.p-button-warning > .p-button:enabled:focus {\n box-shadow: 0 0 0 0.2rem #fbd89d;\n}\n.p-button.p-button-warning:enabled:active, .p-buttonset.p-button-warning > .p-button:enabled:active, .p-splitbutton.p-button-warning > .p-button:enabled:active {\n background: #D97706;\n color: #ffffff;\n border-color: #D97706;\n}\n.p-button.p-button-warning.p-button-outlined, .p-buttonset.p-button-warning > .p-button.p-button-outlined, .p-splitbutton.p-button-warning > .p-button.p-button-outlined {\n background-color: transparent;\n color: #F59E0B;\n border: 1px solid;\n}\n.p-button.p-button-warning.p-button-outlined:enabled:hover, .p-buttonset.p-button-warning > .p-button.p-button-outlined:enabled:hover, .p-splitbutton.p-button-warning > .p-button.p-button-outlined:enabled:hover {\n background: rgba(245, 158, 11, 0.04);\n color: #F59E0B;\n border: 1px solid;\n}\n.p-button.p-button-warning.p-button-outlined:enabled:active, .p-buttonset.p-button-warning > .p-button.p-button-outlined:enabled:active, .p-splitbutton.p-button-warning > .p-button.p-button-outlined:enabled:active {\n background: rgba(245, 158, 11, 0.16);\n color: #F59E0B;\n border: 1px solid;\n}\n.p-button.p-button-warning.p-button-text, .p-buttonset.p-button-warning > .p-button.p-button-text, .p-splitbutton.p-button-warning > .p-button.p-button-text {\n background-color: transparent;\n color: #F59E0B;\n border-color: transparent;\n}\n.p-button.p-button-warning.p-button-text:enabled:hover, .p-buttonset.p-button-warning > .p-button.p-button-text:enabled:hover, .p-splitbutton.p-button-warning > .p-button.p-button-text:enabled:hover {\n background: rgba(245, 158, 11, 0.04);\n border-color: transparent;\n color: #F59E0B;\n}\n.p-button.p-button-warning.p-button-text:enabled:active, .p-buttonset.p-button-warning > .p-button.p-button-text:enabled:active, .p-splitbutton.p-button-warning > .p-button.p-button-text:enabled:active {\n background: rgba(245, 158, 11, 0.16);\n border-color: transparent;\n color: #F59E0B;\n}\n\n.p-button.p-button-help, .p-buttonset.p-button-help > .p-button, .p-splitbutton.p-button-help > .p-button {\n color: #ffffff;\n background: #A855F7;\n border: 1px solid #A855F7;\n}\n.p-button.p-button-help:enabled:hover, .p-buttonset.p-button-help > .p-button:enabled:hover, .p-splitbutton.p-button-help > .p-button:enabled:hover {\n background: #9333EA;\n color: #ffffff;\n border-color: #9333EA;\n}\n.p-button.p-button-help:enabled:focus, .p-buttonset.p-button-help > .p-button:enabled:focus, .p-splitbutton.p-button-help > .p-button:enabled:focus {\n box-shadow: 0 0 0 0.2rem #dcbbfc;\n}\n.p-button.p-button-help:enabled:active, .p-buttonset.p-button-help > .p-button:enabled:active, .p-splitbutton.p-button-help > .p-button:enabled:active {\n background: #9333EA;\n color: #ffffff;\n border-color: #9333EA;\n}\n.p-button.p-button-help.p-button-outlined, .p-buttonset.p-button-help > .p-button.p-button-outlined, .p-splitbutton.p-button-help > .p-button.p-button-outlined {\n background-color: transparent;\n color: #A855F7;\n border: 1px solid;\n}\n.p-button.p-button-help.p-button-outlined:enabled:hover, .p-buttonset.p-button-help > .p-button.p-button-outlined:enabled:hover, .p-splitbutton.p-button-help > .p-button.p-button-outlined:enabled:hover {\n background: rgba(168, 85, 247, 0.04);\n color: #A855F7;\n border: 1px solid;\n}\n.p-button.p-button-help.p-button-outlined:enabled:active, .p-buttonset.p-button-help > .p-button.p-button-outlined:enabled:active, .p-splitbutton.p-button-help > .p-button.p-button-outlined:enabled:active {\n background: rgba(168, 85, 247, 0.16);\n color: #A855F7;\n border: 1px solid;\n}\n.p-button.p-button-help.p-button-text, .p-buttonset.p-button-help > .p-button.p-button-text, .p-splitbutton.p-button-help > .p-button.p-button-text {\n background-color: transparent;\n color: #A855F7;\n border-color: transparent;\n}\n.p-button.p-button-help.p-button-text:enabled:hover, .p-buttonset.p-button-help > .p-button.p-button-text:enabled:hover, .p-splitbutton.p-button-help > .p-button.p-button-text:enabled:hover {\n background: rgba(168, 85, 247, 0.04);\n border-color: transparent;\n color: #A855F7;\n}\n.p-button.p-button-help.p-button-text:enabled:active, .p-buttonset.p-button-help > .p-button.p-button-text:enabled:active, .p-splitbutton.p-button-help > .p-button.p-button-text:enabled:active {\n background: rgba(168, 85, 247, 0.16);\n border-color: transparent;\n color: #A855F7;\n}\n\n.p-button.p-button-danger, .p-buttonset.p-button-danger > .p-button, .p-splitbutton.p-button-danger > .p-button {\n color: #ffffff;\n background: #EF4444;\n border: 1px solid #EF4444;\n}\n.p-button.p-button-danger:enabled:hover, .p-buttonset.p-button-danger > .p-button:enabled:hover, .p-splitbutton.p-button-danger > .p-button:enabled:hover {\n background: #DC2626;\n color: #ffffff;\n border-color: #DC2626;\n}\n.p-button.p-button-danger:enabled:focus, .p-buttonset.p-button-danger > .p-button:enabled:focus, .p-splitbutton.p-button-danger > .p-button:enabled:focus {\n box-shadow: 0 0 0 0.2rem #f9b4b4;\n}\n.p-button.p-button-danger:enabled:active, .p-buttonset.p-button-danger > .p-button:enabled:active, .p-splitbutton.p-button-danger > .p-button:enabled:active {\n background: #DC2626;\n color: #ffffff;\n border-color: #DC2626;\n}\n.p-button.p-button-danger.p-button-outlined, .p-buttonset.p-button-danger > .p-button.p-button-outlined, .p-splitbutton.p-button-danger > .p-button.p-button-outlined {\n background-color: transparent;\n color: #EF4444;\n border: 1px solid;\n}\n.p-button.p-button-danger.p-button-outlined:enabled:hover, .p-buttonset.p-button-danger > .p-button.p-button-outlined:enabled:hover, .p-splitbutton.p-button-danger > .p-button.p-button-outlined:enabled:hover {\n background: rgba(239, 68, 68, 0.04);\n color: #EF4444;\n border: 1px solid;\n}\n.p-button.p-button-danger.p-button-outlined:enabled:active, .p-buttonset.p-button-danger > .p-button.p-button-outlined:enabled:active, .p-splitbutton.p-button-danger > .p-button.p-button-outlined:enabled:active {\n background: rgba(239, 68, 68, 0.16);\n color: #EF4444;\n border: 1px solid;\n}\n.p-button.p-button-danger.p-button-text, .p-buttonset.p-button-danger > .p-button.p-button-text, .p-splitbutton.p-button-danger > .p-button.p-button-text {\n background-color: transparent;\n color: #EF4444;\n border-color: transparent;\n}\n.p-button.p-button-danger.p-button-text:enabled:hover, .p-buttonset.p-button-danger > .p-button.p-button-text:enabled:hover, .p-splitbutton.p-button-danger > .p-button.p-button-text:enabled:hover {\n background: rgba(239, 68, 68, 0.04);\n border-color: transparent;\n color: #EF4444;\n}\n.p-button.p-button-danger.p-button-text:enabled:active, .p-buttonset.p-button-danger > .p-button.p-button-text:enabled:active, .p-splitbutton.p-button-danger > .p-button.p-button-text:enabled:active {\n background: rgba(239, 68, 68, 0.16);\n border-color: transparent;\n color: #EF4444;\n}\n\n.p-button.p-button-link {\n color: #4F46E5;\n background: transparent;\n border: transparent;\n}\n.p-button.p-button-link:enabled:hover {\n background: transparent;\n color: #4F46E5;\n border-color: transparent;\n}\n.p-button.p-button-link:enabled:hover .p-button-label {\n text-decoration: underline;\n}\n.p-button.p-button-link:enabled:focus {\n background: transparent;\n box-shadow: 0 0 0 0.2rem #6366F1;\n border-color: transparent;\n}\n.p-button.p-button-link:enabled:active {\n background: transparent;\n color: #4F46E5;\n border-color: transparent;\n}\n\n.p-speeddial-button.p-button.p-button-icon-only {\n width: 4rem;\n height: 4rem;\n}\n.p-speeddial-button.p-button.p-button-icon-only .p-button-icon {\n font-size: 1.3rem;\n}\n\n.p-speeddial-action {\n width: 3rem;\n height: 3rem;\n background: #3f3f46;\n color: #fff;\n}\n.p-speeddial-action:hover {\n background: #27272A;\n color: #fff;\n}\n\n.p-speeddial-direction-up .p-speeddial-item {\n margin: 0.25rem 0;\n}\n.p-speeddial-direction-up .p-speeddial-item:first-child {\n margin-bottom: 0.5rem;\n}\n\n.p-speeddial-direction-down .p-speeddial-item {\n margin: 0.25rem 0;\n}\n.p-speeddial-direction-down .p-speeddial-item:first-child {\n margin-top: 0.5rem;\n}\n\n.p-speeddial-direction-left .p-speeddial-item {\n margin: 0 0.25rem;\n}\n.p-speeddial-direction-left .p-speeddial-item:first-child {\n margin-right: 0.5rem;\n}\n\n.p-speeddial-direction-right .p-speeddial-item {\n margin: 0 0.25rem;\n}\n.p-speeddial-direction-right .p-speeddial-item:first-child {\n margin-left: 0.5rem;\n}\n\n.p-speeddial-circle .p-speeddial-item,\n.p-speeddial-semi-circle .p-speeddial-item,\n.p-speeddial-quarter-circle .p-speeddial-item {\n margin: 0;\n}\n.p-speeddial-circle .p-speeddial-item:first-child, .p-speeddial-circle .p-speeddial-item:last-child,\n.p-speeddial-semi-circle .p-speeddial-item:first-child,\n.p-speeddial-semi-circle .p-speeddial-item:last-child,\n.p-speeddial-quarter-circle .p-speeddial-item:first-child,\n.p-speeddial-quarter-circle .p-speeddial-item:last-child {\n margin: 0;\n}\n\n.p-speeddial-mask {\n background-color: rgba(0, 0, 0, 0.4);\n}\n\n.p-splitbutton {\n border-radius: 0.375rem;\n}\n.p-splitbutton.p-button-outlined > .p-button {\n background-color: transparent;\n color: #4F46E5;\n border: 1px solid;\n}\n.p-splitbutton.p-button-outlined > .p-button:enabled:hover, .p-splitbutton.p-button-outlined > .p-button:not(button):not(a):not(.p-disabled):hover {\n background: rgba(79, 70, 229, 0.04);\n color: #4F46E5;\n}\n.p-splitbutton.p-button-outlined > .p-button:enabled:active, .p-splitbutton.p-button-outlined > .p-button:not(button):not(a):not(.p-disabled):active {\n background: rgba(79, 70, 229, 0.16);\n color: #4F46E5;\n}\n.p-splitbutton.p-button-outlined.p-button-plain > .p-button {\n color: #71717A;\n border-color: #71717A;\n}\n.p-splitbutton.p-button-outlined.p-button-plain > .p-button:enabled:hover, .p-splitbutton.p-button-outlined.p-button-plain > .p-button:not(button):not(a):not(.p-disabled):hover {\n background: #f4f4f5;\n color: #71717A;\n}\n.p-splitbutton.p-button-outlined.p-button-plain > .p-button:enabled:active, .p-splitbutton.p-button-outlined.p-button-plain > .p-button:not(button):not(a):not(.p-disabled):active {\n background: #e5e7eb;\n color: #71717A;\n}\n.p-splitbutton.p-button-text > .p-button {\n background-color: transparent;\n color: #4F46E5;\n border-color: transparent;\n}\n.p-splitbutton.p-button-text > .p-button:enabled:hover, .p-splitbutton.p-button-text > .p-button:not(button):not(a):not(.p-disabled):hover {\n background: rgba(79, 70, 229, 0.04);\n color: #4F46E5;\n border-color: transparent;\n}\n.p-splitbutton.p-button-text > .p-button:enabled:active, .p-splitbutton.p-button-text > .p-button:not(button):not(a):not(.p-disabled):active {\n background: rgba(79, 70, 229, 0.16);\n color: #4F46E5;\n border-color: transparent;\n}\n.p-splitbutton.p-button-text.p-button-plain > .p-button {\n color: #71717A;\n}\n.p-splitbutton.p-button-text.p-button-plain > .p-button:enabled:hover, .p-splitbutton.p-button-text.p-button-plain > .p-button:not(button):not(a):not(.p-disabled):hover {\n background: #f4f4f5;\n color: #71717A;\n}\n.p-splitbutton.p-button-text.p-button-plain > .p-button:enabled:active, .p-splitbutton.p-button-text.p-button-plain > .p-button:not(button):not(a):not(.p-disabled):active {\n background: #e5e7eb;\n color: #71717A;\n}\n.p-splitbutton.p-button-raised {\n box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);\n}\n.p-splitbutton.p-button-rounded {\n border-radius: 2rem;\n}\n.p-splitbutton.p-button-rounded > .p-button {\n border-radius: 2rem;\n}\n.p-splitbutton.p-button-sm > .p-button {\n font-size: 0.875rem;\n padding: 0.65625rem 0.875rem;\n}\n.p-splitbutton.p-button-sm > .p-button .p-button-icon {\n font-size: 0.875rem;\n}\n.p-splitbutton.p-button-lg > .p-button {\n font-size: 1.25rem;\n padding: 0.9375rem 1.25rem;\n}\n.p-splitbutton.p-button-lg > .p-button .p-button-icon {\n font-size: 1.25rem;\n}\n\n.p-splitbutton.p-button-secondary.p-button-outlined > .p-button {\n background-color: transparent;\n color: #64748B;\n border: 1px solid;\n}\n.p-splitbutton.p-button-secondary.p-button-outlined > .p-button:enabled:hover, .p-splitbutton.p-button-secondary.p-button-outlined > .p-button:not(button):not(a):not(.p-disabled):hover {\n background: rgba(100, 116, 139, 0.04);\n color: #64748B;\n}\n.p-splitbutton.p-button-secondary.p-button-outlined > .p-button:enabled:active, .p-splitbutton.p-button-secondary.p-button-outlined > .p-button:not(button):not(a):not(.p-disabled):active {\n background: rgba(100, 116, 139, 0.16);\n color: #64748B;\n}\n.p-splitbutton.p-button-secondary.p-button-text > .p-button {\n background-color: transparent;\n color: #64748B;\n border-color: transparent;\n}\n.p-splitbutton.p-button-secondary.p-button-text > .p-button:enabled:hover, .p-splitbutton.p-button-secondary.p-button-text > .p-button:not(button):not(a):not(.p-disabled):hover {\n background: rgba(100, 116, 139, 0.04);\n border-color: transparent;\n color: #64748B;\n}\n.p-splitbutton.p-button-secondary.p-button-text > .p-button:enabled:active, .p-splitbutton.p-button-secondary.p-button-text > .p-button:not(button):not(a):not(.p-disabled):active {\n background: rgba(100, 116, 139, 0.16);\n border-color: transparent;\n color: #64748B;\n}\n\n.p-splitbutton.p-button-info.p-button-outlined > .p-button {\n background-color: transparent;\n color: #3B82F6;\n border: 1px solid;\n}\n.p-splitbutton.p-button-info.p-button-outlined > .p-button:enabled:hover, .p-splitbutton.p-button-info.p-button-outlined > .p-button:not(button):not(a):not(.p-disabled):hover {\n background: rgba(59, 130, 246, 0.04);\n color: #3B82F6;\n}\n.p-splitbutton.p-button-info.p-button-outlined > .p-button:enabled:active, .p-splitbutton.p-button-info.p-button-outlined > .p-button:not(button):not(a):not(.p-disabled):active {\n background: rgba(59, 130, 246, 0.16);\n color: #3B82F6;\n}\n.p-splitbutton.p-button-info.p-button-text > .p-button {\n background-color: transparent;\n color: #3B82F6;\n border-color: transparent;\n}\n.p-splitbutton.p-button-info.p-button-text > .p-button:enabled:hover, .p-splitbutton.p-button-info.p-button-text > .p-button:not(button):not(a):not(.p-disabled):hover {\n background: rgba(59, 130, 246, 0.04);\n border-color: transparent;\n color: #3B82F6;\n}\n.p-splitbutton.p-button-info.p-button-text > .p-button:enabled:active, .p-splitbutton.p-button-info.p-button-text > .p-button:not(button):not(a):not(.p-disabled):active {\n background: rgba(59, 130, 246, 0.16);\n border-color: transparent;\n color: #3B82F6;\n}\n\n.p-splitbutton.p-button-success.p-button-outlined > .p-button {\n background-color: transparent;\n color: #22C55E;\n border: 1px solid;\n}\n.p-splitbutton.p-button-success.p-button-outlined > .p-button:enabled:hover, .p-splitbutton.p-button-success.p-button-outlined > .p-button:not(button):not(a):not(.p-disabled):hover {\n background: rgba(34, 197, 94, 0.04);\n color: #22C55E;\n}\n.p-splitbutton.p-button-success.p-button-outlined > .p-button:enabled:active, .p-splitbutton.p-button-success.p-button-outlined > .p-button:not(button):not(a):not(.p-disabled):active {\n background: rgba(34, 197, 94, 0.16);\n color: #22C55E;\n}\n.p-splitbutton.p-button-success.p-button-text > .p-button {\n background-color: transparent;\n color: #22C55E;\n border-color: transparent;\n}\n.p-splitbutton.p-button-success.p-button-text > .p-button:enabled:hover, .p-splitbutton.p-button-success.p-button-text > .p-button:not(button):not(a):not(.p-disabled):hover {\n background: rgba(34, 197, 94, 0.04);\n border-color: transparent;\n color: #22C55E;\n}\n.p-splitbutton.p-button-success.p-button-text > .p-button:enabled:active, .p-splitbutton.p-button-success.p-button-text > .p-button:not(button):not(a):not(.p-disabled):active {\n background: rgba(34, 197, 94, 0.16);\n border-color: transparent;\n color: #22C55E;\n}\n\n.p-splitbutton.p-button-warning.p-button-outlined > .p-button {\n background-color: transparent;\n color: #F59E0B;\n border: 1px solid;\n}\n.p-splitbutton.p-button-warning.p-button-outlined > .p-button:enabled:hover, .p-splitbutton.p-button-warning.p-button-outlined > .p-button:not(button):not(a):not(.p-disabled):hover {\n background: rgba(245, 158, 11, 0.04);\n color: #F59E0B;\n}\n.p-splitbutton.p-button-warning.p-button-outlined > .p-button:enabled:active, .p-splitbutton.p-button-warning.p-button-outlined > .p-button:not(button):not(a):not(.p-disabled):active {\n background: rgba(245, 158, 11, 0.16);\n color: #F59E0B;\n}\n.p-splitbutton.p-button-warning.p-button-text > .p-button {\n background-color: transparent;\n color: #F59E0B;\n border-color: transparent;\n}\n.p-splitbutton.p-button-warning.p-button-text > .p-button:enabled:hover, .p-splitbutton.p-button-warning.p-button-text > .p-button:not(button):not(a):not(.p-disabled):hover {\n background: rgba(245, 158, 11, 0.04);\n border-color: transparent;\n color: #F59E0B;\n}\n.p-splitbutton.p-button-warning.p-button-text > .p-button:enabled:active, .p-splitbutton.p-button-warning.p-button-text > .p-button:not(button):not(a):not(.p-disabled):active {\n background: rgba(245, 158, 11, 0.16);\n border-color: transparent;\n color: #F59E0B;\n}\n\n.p-splitbutton.p-button-help.p-button-outlined > .p-button {\n background-color: transparent;\n color: #A855F7;\n border: 1px solid;\n}\n.p-splitbutton.p-button-help.p-button-outlined > .p-button:enabled:hover, .p-splitbutton.p-button-help.p-button-outlined > .p-button:not(button):not(a):not(.p-disabled):hover {\n background: rgba(168, 85, 247, 0.04);\n color: #A855F7;\n}\n.p-splitbutton.p-button-help.p-button-outlined > .p-button:enabled:active, .p-splitbutton.p-button-help.p-button-outlined > .p-button:not(button):not(a):not(.p-disabled):active {\n background: rgba(168, 85, 247, 0.16);\n color: #A855F7;\n}\n.p-splitbutton.p-button-help.p-button-text > .p-button {\n background-color: transparent;\n color: #A855F7;\n border-color: transparent;\n}\n.p-splitbutton.p-button-help.p-button-text > .p-button:enabled:hover, .p-splitbutton.p-button-help.p-button-text > .p-button:not(button):not(a):not(.p-disabled):hover {\n background: rgba(168, 85, 247, 0.04);\n border-color: transparent;\n color: #A855F7;\n}\n.p-splitbutton.p-button-help.p-button-text > .p-button:enabled:active, .p-splitbutton.p-button-help.p-button-text > .p-button:not(button):not(a):not(.p-disabled):active {\n background: rgba(168, 85, 247, 0.16);\n border-color: transparent;\n color: #A855F7;\n}\n\n.p-splitbutton.p-button-danger.p-button-outlined > .p-button {\n background-color: transparent;\n color: #EF4444;\n border: 1px solid;\n}\n.p-splitbutton.p-button-danger.p-button-outlined > .p-button:enabled:hover, .p-splitbutton.p-button-danger.p-button-outlined > .p-button:not(button):not(a):not(.p-disabled):hover {\n background: rgba(239, 68, 68, 0.04);\n color: #EF4444;\n}\n.p-splitbutton.p-button-danger.p-button-outlined > .p-button:enabled:active, .p-splitbutton.p-button-danger.p-button-outlined > .p-button:not(button):not(a):not(.p-disabled):active {\n background: rgba(239, 68, 68, 0.16);\n color: #EF4444;\n}\n.p-splitbutton.p-button-danger.p-button-text > .p-button {\n background-color: transparent;\n color: #EF4444;\n border-color: transparent;\n}\n.p-splitbutton.p-button-danger.p-button-text > .p-button:enabled:hover, .p-splitbutton.p-button-danger.p-button-text > .p-button:not(button):not(a):not(.p-disabled):hover {\n background: rgba(239, 68, 68, 0.04);\n border-color: transparent;\n color: #EF4444;\n}\n.p-splitbutton.p-button-danger.p-button-text > .p-button:enabled:active, .p-splitbutton.p-button-danger.p-button-text > .p-button:not(button):not(a):not(.p-disabled):active {\n background: rgba(239, 68, 68, 0.16);\n border-color: transparent;\n color: #EF4444;\n}\n\n.p-carousel .p-carousel-content .p-carousel-prev,\n.p-carousel .p-carousel-content .p-carousel-next {\n width: 2rem;\n height: 2rem;\n color: #71717A;\n border: 0 none;\n background: transparent;\n border-radius: 50%;\n transition: none;\n margin: 0.5rem;\n}\n.p-carousel .p-carousel-content .p-carousel-prev:enabled:hover,\n.p-carousel .p-carousel-content .p-carousel-next:enabled:hover {\n color: #18181B;\n border-color: transparent;\n background: #f4f4f5;\n}\n.p-carousel .p-carousel-content .p-carousel-prev:focus,\n.p-carousel .p-carousel-content .p-carousel-next:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.p-carousel .p-carousel-indicators {\n padding: 1rem;\n}\n.p-carousel .p-carousel-indicators .p-carousel-indicator {\n margin-right: 0.5rem;\n margin-bottom: 0.5rem;\n}\n.p-carousel .p-carousel-indicators .p-carousel-indicator button {\n background-color: #f4f4f5;\n width: 2rem;\n height: 0.5rem;\n transition: none;\n border-radius: 0;\n}\n.p-carousel .p-carousel-indicators .p-carousel-indicator button:hover {\n background: #e5e7eb;\n}\n.p-carousel .p-carousel-indicators .p-carousel-indicator.p-highlight button {\n background: #EEF2FF;\n color: #312E81;\n}\n\n.p-datatable .p-paginator-top {\n border-width: 0 0 1px 0;\n border-radius: 0;\n}\n.p-datatable .p-paginator-bottom {\n border-width: 0 0 1px 0;\n border-radius: 0;\n}\n.p-datatable .p-datatable-header {\n background: #fafafa;\n color: #3f3f46;\n border: 1px solid #f4f4f5;\n border-width: 1px 0 1px 0;\n padding: 1.25rem 1.25rem;\n font-weight: 600;\n}\n.p-datatable .p-datatable-footer {\n background: #fafafa;\n color: #3f3f46;\n border: 1px solid #f4f4f5;\n border-width: 0 0 1px 0;\n padding: 0.75rem 1.5rem;\n font-weight: 600;\n}\n.p-datatable .p-datatable-thead > tr > th {\n text-align: left;\n padding: 0.75rem 1.5rem;\n border: 1px solid #f4f4f5;\n border-width: 0 0 1px 0;\n font-weight: 500;\n color: #6b7280;\n background: #fafafa;\n transition: none;\n}\n.p-datatable .p-datatable-tfoot > tr > td {\n text-align: left;\n padding: 1rem 1rem;\n border: 1px solid #f4f4f5;\n border-width: 0 0 1px 0;\n font-weight: 600;\n color: #3f3f46;\n background: #fafafa;\n}\n.p-datatable .p-sortable-column .p-sortable-column-icon {\n color: #71717A;\n margin-left: 0.5rem;\n}\n.p-datatable .p-sortable-column .p-sortable-column-badge {\n border-radius: 50%;\n height: 1.143rem;\n min-width: 1.143rem;\n line-height: 1.143rem;\n color: #312E81;\n background: #EEF2FF;\n margin-left: 0.5rem;\n}\n.p-datatable .p-sortable-column:not(.p-highlight):hover {\n background: #f4f4f5;\n color: #3f3f46;\n}\n.p-datatable .p-sortable-column:not(.p-highlight):hover .p-sortable-column-icon {\n color: #71717A;\n}\n.p-datatable .p-sortable-column.p-highlight {\n background: #fafafa;\n color: #4F46E5;\n}\n.p-datatable .p-sortable-column.p-highlight .p-sortable-column-icon {\n color: #4F46E5;\n}\n.p-datatable .p-sortable-column.p-highlight:hover {\n background: #f4f4f5;\n color: #4F46E5;\n}\n.p-datatable .p-sortable-column.p-highlight:hover .p-sortable-column-icon {\n color: #4F46E5;\n}\n.p-datatable .p-sortable-column:focus {\n box-shadow: inset 0 0 0 0.15rem #6366F1;\n outline: 0 none;\n}\n.p-datatable .p-datatable-tbody > tr {\n background: #ffffff;\n color: #3f3f46;\n transition: none;\n}\n.p-datatable .p-datatable-tbody > tr > td {\n text-align: left;\n border: 1px solid #f4f4f5;\n border-width: 0 0 1px 0;\n padding: 1rem 1.5rem;\n}\n.p-datatable .p-datatable-tbody > tr > td .p-row-toggler,\n.p-datatable .p-datatable-tbody > tr > td .p-row-editor-init,\n.p-datatable .p-datatable-tbody > tr > td .p-row-editor-save,\n.p-datatable .p-datatable-tbody > tr > td .p-row-editor-cancel {\n width: 2rem;\n height: 2rem;\n color: #71717A;\n border: 0 none;\n background: transparent;\n border-radius: 50%;\n transition: none;\n}\n.p-datatable .p-datatable-tbody > tr > td .p-row-toggler:enabled:hover,\n.p-datatable .p-datatable-tbody > tr > td .p-row-editor-init:enabled:hover,\n.p-datatable .p-datatable-tbody > tr > td .p-row-editor-save:enabled:hover,\n.p-datatable .p-datatable-tbody > tr > td .p-row-editor-cancel:enabled:hover {\n color: #18181B;\n border-color: transparent;\n background: #f4f4f5;\n}\n.p-datatable .p-datatable-tbody > tr > td .p-row-toggler:focus,\n.p-datatable .p-datatable-tbody > tr > td .p-row-editor-init:focus,\n.p-datatable .p-datatable-tbody > tr > td .p-row-editor-save:focus,\n.p-datatable .p-datatable-tbody > tr > td .p-row-editor-cancel:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.p-datatable .p-datatable-tbody > tr > td .p-row-editor-save {\n margin-right: 0.5rem;\n}\n.p-datatable .p-datatable-tbody > tr > td > .p-column-title {\n font-weight: 500;\n}\n.p-datatable .p-datatable-tbody > tr:focus {\n outline: 0.15rem solid #6366F1;\n outline-offset: -0.15rem;\n}\n.p-datatable .p-datatable-tbody > tr.p-highlight {\n background: #EEF2FF;\n color: #312E81;\n}\n.p-datatable .p-datatable-tbody > tr.p-datatable-dragpoint-top > td {\n box-shadow: inset 0 2px 0 0 #EEF2FF;\n}\n.p-datatable .p-datatable-tbody > tr.p-datatable-dragpoint-bottom > td {\n box-shadow: inset 0 -2px 0 0 #EEF2FF;\n}\n.p-datatable.p-datatable-hoverable-rows .p-datatable-tbody > tr:not(.p-highlight):hover {\n background: #f4f4f5;\n color: #3f3f46;\n}\n.p-datatable .p-column-resizer-helper {\n background: #4F46E5;\n}\n.p-datatable .p-datatable-scrollable-header,\n.p-datatable .p-datatable-scrollable-footer {\n background: #fafafa;\n}\n.p-datatable.p-datatable-scrollable > .p-datatable-wrapper > .p-datatable-table > .p-datatable-thead,\n.p-datatable.p-datatable-scrollable > .p-datatable-wrapper > .p-datatable-table > .p-datatable-tfoot {\n background-color: #fafafa;\n}\n.p-datatable .p-datatable-loading-icon {\n font-size: 2rem;\n}\n.p-datatable.p-datatable-gridlines .p-datatable-header {\n border-width: 1px 1px 0 1px;\n}\n.p-datatable.p-datatable-gridlines .p-datatable-footer {\n border-width: 0 1px 1px 1px;\n}\n.p-datatable.p-datatable-gridlines .p-paginator-top {\n border-width: 0 1px 0 1px;\n}\n.p-datatable.p-datatable-gridlines .p-paginator-bottom {\n border-width: 0 1px 1px 1px;\n}\n.p-datatable.p-datatable-gridlines .p-datatable-thead > tr > th {\n border-width: 1px 1px 1px 1px;\n}\n.p-datatable.p-datatable-gridlines .p-datatable-tbody > tr > td {\n border-width: 1px;\n}\n.p-datatable.p-datatable-gridlines .p-datatable-tfoot > tr > td {\n border-width: 1px;\n}\n.p-datatable.p-datatable-gridlines.p-datatable-scrollable .p-datatable-thead > tr > th + th {\n border-left-width: 0;\n}\n.p-datatable.p-datatable-gridlines.p-datatable-scrollable .p-datatable-tbody > tr > td + td {\n border-left-width: 0;\n}\n.p-datatable.p-datatable-gridlines.p-datatable-scrollable .p-datatable-tbody > tr + tr > td, .p-datatable.p-datatable-gridlines.p-datatable-scrollable .p-datatable-tbody > tr:first-child > td {\n border-top-width: 0;\n}\n.p-datatable.p-datatable-gridlines.p-datatable-scrollable .p-datatable-tfoot > tr > td + td {\n border-left-width: 0;\n}\n.p-datatable.p-datatable-striped .p-datatable-tbody > tr:nth-child(even) {\n background: #fcfcfc;\n}\n.p-datatable.p-datatable-striped .p-datatable-tbody > tr:nth-child(even).p-highlight {\n background: #EEF2FF;\n color: #312E81;\n}\n.p-datatable.p-datatable-striped .p-datatable-tbody > tr:nth-child(even).p-highlight .p-row-toggler {\n color: #312E81;\n}\n.p-datatable.p-datatable-striped .p-datatable-tbody > tr:nth-child(even).p-highlight .p-row-toggler:hover {\n color: #312E81;\n}\n.p-datatable.p-datatable-sm .p-datatable-header {\n padding: 0.625rem 0.625rem;\n}\n.p-datatable.p-datatable-sm .p-datatable-thead > tr > th {\n padding: 0.375rem 0.75rem;\n}\n.p-datatable.p-datatable-sm .p-datatable-tbody > tr > td {\n padding: 0.5rem 0.75rem;\n}\n.p-datatable.p-datatable-sm .p-datatable-tfoot > tr > td {\n padding: 0.375rem 0.75rem;\n}\n.p-datatable.p-datatable-sm .p-datatable-footer {\n padding: 0.375rem 0.75rem;\n}\n.p-datatable.p-datatable-lg .p-datatable-header {\n padding: 1.5625rem 1.5625rem;\n}\n.p-datatable.p-datatable-lg .p-datatable-thead > tr > th {\n padding: 0.9375rem 1.875rem;\n}\n.p-datatable.p-datatable-lg .p-datatable-tbody > tr > td {\n padding: 1.25rem 1.875rem;\n}\n.p-datatable.p-datatable-lg .p-datatable-tfoot > tr > td {\n padding: 0.9375rem 1.875rem;\n}\n.p-datatable.p-datatable-lg .p-datatable-footer {\n padding: 0.9375rem 1.875rem;\n}\n\n.p-dataview .p-paginator-top {\n border-width: 0 0 1px 0;\n border-radius: 0;\n}\n.p-dataview .p-paginator-bottom {\n border-width: 0 0 1px 0;\n border-radius: 0;\n}\n.p-dataview .p-dataview-header {\n background: #fafafa;\n color: #3f3f46;\n border: 1px solid #f4f4f5;\n border-width: 1px 0 1px 0;\n padding: 1.25rem 1.25rem;\n font-weight: 600;\n}\n.p-dataview .p-dataview-content {\n background: #ffffff;\n color: #3f3f46;\n border: 0 none;\n padding: 0;\n}\n.p-dataview.p-dataview-list .p-dataview-content > .p-grid > div {\n border: solid #f4f4f5;\n border-width: 0 0 1px 0;\n}\n.p-dataview .p-dataview-footer {\n background: #fafafa;\n color: #3f3f46;\n border: 1px solid #f4f4f5;\n border-width: 0 0 1px 0;\n padding: 0.75rem 1.5rem;\n font-weight: 600;\n border-bottom-left-radius: 0.375rem;\n border-bottom-right-radius: 0.375rem;\n}\n\n.p-column-filter-row .p-column-filter-menu-button,\n.p-column-filter-row .p-column-filter-clear-button {\n margin-left: 0.5rem;\n}\n\n.p-column-filter-menu-button {\n width: 2rem;\n height: 2rem;\n color: #71717A;\n border: 0 none;\n background: transparent;\n border-radius: 50%;\n transition: none;\n}\n.p-column-filter-menu-button:hover {\n color: #18181B;\n border-color: transparent;\n background: #f4f4f5;\n}\n.p-column-filter-menu-button.p-column-filter-menu-button-open, .p-column-filter-menu-button.p-column-filter-menu-button-open:hover {\n background: #f4f4f5;\n color: #18181B;\n}\n.p-column-filter-menu-button.p-column-filter-menu-button-active, .p-column-filter-menu-button.p-column-filter-menu-button-active:hover {\n background: #EEF2FF;\n color: #312E81;\n}\n.p-column-filter-menu-button:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n\n.p-column-filter-clear-button {\n width: 2rem;\n height: 2rem;\n color: #71717A;\n border: 0 none;\n background: transparent;\n border-radius: 50%;\n transition: none;\n}\n.p-column-filter-clear-button:hover {\n color: #18181B;\n border-color: transparent;\n background: #f4f4f5;\n}\n.p-column-filter-clear-button:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n\n.p-column-filter-overlay {\n background: #ffffff;\n color: #3f3f46;\n border: 0 none;\n border-radius: 0.375rem;\n box-shadow: 0 0 #0000, 0 0 #0000, 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);\n min-width: 12.5rem;\n}\n.p-column-filter-overlay .p-column-filter-row-items {\n padding: 0.25rem 0;\n}\n.p-column-filter-overlay .p-column-filter-row-items .p-column-filter-row-item {\n margin: 0;\n padding: 0.75rem 1rem;\n border: 0 none;\n color: #3f3f46;\n background: transparent;\n transition: none;\n border-radius: 0;\n}\n.p-column-filter-overlay .p-column-filter-row-items .p-column-filter-row-item.p-highlight {\n color: #312E81;\n background: #EEF2FF;\n}\n.p-column-filter-overlay .p-column-filter-row-items .p-column-filter-row-item:not(.p-highlight):not(.p-disabled):hover {\n color: #18181B;\n background: #f4f4f5;\n}\n.p-column-filter-overlay .p-column-filter-row-items .p-column-filter-row-item:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: inset 0 0 0 0.15rem #6366F1;\n}\n.p-column-filter-overlay .p-column-filter-row-items .p-column-filter-separator {\n border-top: 1px solid #f3f4f6;\n margin: 0.25rem 0;\n}\n\n.p-column-filter-overlay-menu .p-column-filter-operator {\n padding: 0.5rem 0.75rem;\n border-bottom: 0 none;\n color: #3f3f46;\n background: #fafafa;\n margin: 0;\n border-top-right-radius: 0.375rem;\n border-top-left-radius: 0.375rem;\n}\n.p-column-filter-overlay-menu .p-column-filter-constraint {\n padding: 1.25rem;\n border-bottom: 1px solid #f3f4f6;\n}\n.p-column-filter-overlay-menu .p-column-filter-constraint .p-column-filter-matchmode-dropdown {\n margin-bottom: 0.5rem;\n}\n.p-column-filter-overlay-menu .p-column-filter-constraint .p-column-filter-remove-button {\n margin-top: 0.5rem;\n}\n.p-column-filter-overlay-menu .p-column-filter-constraint:last-child {\n border-bottom: 0 none;\n}\n.p-column-filter-overlay-menu .p-column-filter-add-rule {\n padding: 0.75rem 1.25rem;\n}\n.p-column-filter-overlay-menu .p-column-filter-buttonbar {\n padding: 1.25rem;\n}\n\n.fc {\n /* FullCalendar 4 */\n /* FullCalendar 5 */\n}\n.fc.fc-unthemed .fc-view-container th {\n background: #fafafa;\n border: 1px solid #e5e7eb;\n color: #3f3f46;\n}\n.fc.fc-unthemed .fc-view-container td.fc-widget-content {\n border: 1px solid #e5e7eb;\n color: #3f3f46;\n}\n.fc.fc-unthemed .fc-view-container td.fc-head-container {\n border: 1px solid #e5e7eb;\n}\n.fc.fc-unthemed .fc-view-container .fc-view {\n background: #ffffff;\n}\n.fc.fc-unthemed .fc-view-container .fc-row {\n border-right: 1px solid #e5e7eb;\n}\n.fc.fc-unthemed .fc-view-container .fc-event {\n background: #4F46E5;\n border: 1px solid #4F46E5;\n color: #ffffff;\n}\n.fc.fc-unthemed .fc-view-container .fc-divider {\n background: #fafafa;\n border: 1px solid #e5e7eb;\n}\n.fc.fc-unthemed .fc-toolbar .fc-button {\n color: #ffffff;\n background: #4F46E5;\n border: 1px solid #4F46E5;\n font-size: 1rem;\n transition: none;\n border-radius: 0.375rem;\n display: flex;\n align-items: center;\n}\n.fc.fc-unthemed .fc-toolbar .fc-button:enabled:hover {\n background: #4338CA;\n color: #ffffff;\n border-color: #4338CA;\n}\n.fc.fc-unthemed .fc-toolbar .fc-button:enabled:active {\n background: #4338CA;\n color: #ffffff;\n border-color: #4338CA;\n}\n.fc.fc-unthemed .fc-toolbar .fc-button:enabled:active:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.fc.fc-unthemed .fc-toolbar .fc-button .fc-icon-chevron-left {\n font-family: \"PrimeIcons\" !important;\n text-indent: 0;\n font-size: 1rem;\n}\n.fc.fc-unthemed .fc-toolbar .fc-button .fc-icon-chevron-left:before {\n content: \"\\e900\";\n}\n.fc.fc-unthemed .fc-toolbar .fc-button .fc-icon-chevron-right {\n font-family: \"PrimeIcons\" !important;\n text-indent: 0;\n font-size: 1rem;\n}\n.fc.fc-unthemed .fc-toolbar .fc-button .fc-icon-chevron-right:before {\n content: \"\\e901\";\n}\n.fc.fc-unthemed .fc-toolbar .fc-button:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.fc.fc-unthemed .fc-toolbar .fc-button.fc-dayGridMonth-button, .fc.fc-unthemed .fc-toolbar .fc-button.fc-timeGridWeek-button, .fc.fc-unthemed .fc-toolbar .fc-button.fc-timeGridDay-button {\n background: #ffffff;\n border: 1px solid #d4d4d8;\n color: #3f3f46;\n transition: none;\n}\n.fc.fc-unthemed .fc-toolbar .fc-button.fc-dayGridMonth-button:hover, .fc.fc-unthemed .fc-toolbar .fc-button.fc-timeGridWeek-button:hover, .fc.fc-unthemed .fc-toolbar .fc-button.fc-timeGridDay-button:hover {\n background: #f4f4f5;\n border-color: #d4d4d8;\n color: #3f3f46;\n}\n.fc.fc-unthemed .fc-toolbar .fc-button.fc-dayGridMonth-button.fc-button-active, .fc.fc-unthemed .fc-toolbar .fc-button.fc-timeGridWeek-button.fc-button-active, .fc.fc-unthemed .fc-toolbar .fc-button.fc-timeGridDay-button.fc-button-active {\n background: #4F46E5;\n border-color: #4F46E5;\n color: #ffffff;\n}\n.fc.fc-unthemed .fc-toolbar .fc-button.fc-dayGridMonth-button.fc-button-active:hover, .fc.fc-unthemed .fc-toolbar .fc-button.fc-timeGridWeek-button.fc-button-active:hover, .fc.fc-unthemed .fc-toolbar .fc-button.fc-timeGridDay-button.fc-button-active:hover {\n background: #4338CA;\n border-color: #4338CA;\n color: #ffffff;\n}\n.fc.fc-unthemed .fc-toolbar .fc-button.fc-dayGridMonth-button:focus, .fc.fc-unthemed .fc-toolbar .fc-button.fc-timeGridWeek-button:focus, .fc.fc-unthemed .fc-toolbar .fc-button.fc-timeGridDay-button:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n z-index: 1;\n}\n.fc.fc-unthemed .fc-toolbar .fc-button-group .fc-button {\n border-radius: 0;\n}\n.fc.fc-unthemed .fc-toolbar .fc-button-group .fc-button:first-child {\n border-top-left-radius: 0.375rem;\n border-bottom-left-radius: 0.375rem;\n}\n.fc.fc-unthemed .fc-toolbar .fc-button-group .fc-button:last-child {\n border-top-right-radius: 0.375rem;\n border-bottom-right-radius: 0.375rem;\n}\n.fc.fc-theme-standard .fc-view-harness .fc-scrollgrid {\n border-color: #e5e7eb;\n}\n.fc.fc-theme-standard .fc-view-harness th {\n background: #fafafa;\n border-color: #e5e7eb;\n color: #3f3f46;\n}\n.fc.fc-theme-standard .fc-view-harness td {\n color: #3f3f46;\n border-color: #e5e7eb;\n}\n.fc.fc-theme-standard .fc-view-harness .fc-view {\n background: #ffffff;\n}\n.fc.fc-theme-standard .fc-view-harness .fc-popover {\n background: none;\n border: 0 none;\n}\n.fc.fc-theme-standard .fc-view-harness .fc-popover .fc-popover-header {\n border: 1px solid #e5e7eb;\n padding: 1.25rem;\n background: #fafafa;\n color: #3f3f46;\n}\n.fc.fc-theme-standard .fc-view-harness .fc-popover .fc-popover-header .fc-popover-close {\n opacity: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n overflow: hidden;\n font-family: \"PrimeIcons\" !important;\n font-size: 1rem;\n width: 2rem;\n height: 2rem;\n color: #71717A;\n border: 0 none;\n background: transparent;\n border-radius: 50%;\n transition: none;\n}\n.fc.fc-theme-standard .fc-view-harness .fc-popover .fc-popover-header .fc-popover-close:before {\n content: \"\\e90b\";\n}\n.fc.fc-theme-standard .fc-view-harness .fc-popover .fc-popover-header .fc-popover-close:hover {\n color: #18181B;\n border-color: transparent;\n background: #f4f4f5;\n}\n.fc.fc-theme-standard .fc-view-harness .fc-popover .fc-popover-header .fc-popover-close:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.fc.fc-theme-standard .fc-view-harness .fc-popover .fc-popover-body {\n padding: 1.25rem;\n border: 1px solid #e5e7eb;\n background: #ffffff;\n color: #3f3f46;\n border-top: 0 none;\n}\n.fc.fc-theme-standard .fc-view-harness .fc-event.fc-daygrid-block-event {\n color: #ffffff;\n background: #4F46E5;\n border-color: #4F46E5;\n}\n.fc.fc-theme-standard .fc-view-harness .fc-event.fc-daygrid-block-event .fc-event-main {\n color: #ffffff;\n}\n.fc.fc-theme-standard .fc-view-harness .fc-event.fc-daygrid-dot-event .fc-daygrid-event-dot {\n background: #4F46E5;\n border-color: #4F46E5;\n}\n.fc.fc-theme-standard .fc-view-harness .fc-event.fc-daygrid-dot-event:hover {\n background: #f4f4f5;\n color: #18181B;\n}\n.fc.fc-theme-standard .fc-view-harness .fc-cell-shaded {\n background: #fafafa;\n}\n.fc.fc-theme-standard .fc-toolbar .fc-button {\n color: #ffffff;\n background: #4F46E5;\n border: 1px solid #4F46E5;\n font-size: 1rem;\n transition: none;\n border-radius: 0.375rem;\n}\n.fc.fc-theme-standard .fc-toolbar .fc-button:enabled:hover {\n background: #4338CA;\n color: #ffffff;\n border-color: #4338CA;\n}\n.fc.fc-theme-standard .fc-toolbar .fc-button:enabled:active {\n background: #4338CA;\n color: #ffffff;\n border-color: #4338CA;\n}\n.fc.fc-theme-standard .fc-toolbar .fc-button:enabled:active:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.fc.fc-theme-standard .fc-toolbar .fc-button:disabled {\n opacity: 0.6;\n color: #ffffff;\n background: #4F46E5;\n border: 1px solid #4F46E5;\n}\n.fc.fc-theme-standard .fc-toolbar .fc-button .fc-icon-chevron-left {\n font-family: \"PrimeIcons\" !important;\n text-indent: 0;\n font-size: 1rem;\n}\n.fc.fc-theme-standard .fc-toolbar .fc-button .fc-icon-chevron-left:before {\n content: \"\\e900\";\n}\n.fc.fc-theme-standard .fc-toolbar .fc-button .fc-icon-chevron-right {\n font-family: \"PrimeIcons\" !important;\n text-indent: 0;\n font-size: 1rem;\n}\n.fc.fc-theme-standard .fc-toolbar .fc-button .fc-icon-chevron-right:before {\n content: \"\\e901\";\n}\n.fc.fc-theme-standard .fc-toolbar .fc-button:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.fc.fc-theme-standard .fc-toolbar .fc-button.fc-dayGridMonth-button, .fc.fc-theme-standard .fc-toolbar .fc-button.fc-timeGridWeek-button, .fc.fc-theme-standard .fc-toolbar .fc-button.fc-timeGridDay-button {\n background: #ffffff;\n border: 1px solid #d4d4d8;\n color: #3f3f46;\n transition: none;\n}\n.fc.fc-theme-standard .fc-toolbar .fc-button.fc-dayGridMonth-button:hover, .fc.fc-theme-standard .fc-toolbar .fc-button.fc-timeGridWeek-button:hover, .fc.fc-theme-standard .fc-toolbar .fc-button.fc-timeGridDay-button:hover {\n background: #f4f4f5;\n border-color: #d4d4d8;\n color: #3f3f46;\n}\n.fc.fc-theme-standard .fc-toolbar .fc-button.fc-dayGridMonth-button.fc-button-active, .fc.fc-theme-standard .fc-toolbar .fc-button.fc-timeGridWeek-button.fc-button-active, .fc.fc-theme-standard .fc-toolbar .fc-button.fc-timeGridDay-button.fc-button-active {\n background: #4F46E5;\n border-color: #4F46E5;\n color: #ffffff;\n}\n.fc.fc-theme-standard .fc-toolbar .fc-button.fc-dayGridMonth-button.fc-button-active:hover, .fc.fc-theme-standard .fc-toolbar .fc-button.fc-timeGridWeek-button.fc-button-active:hover, .fc.fc-theme-standard .fc-toolbar .fc-button.fc-timeGridDay-button.fc-button-active:hover {\n background: #4338CA;\n border-color: #4338CA;\n color: #ffffff;\n}\n.fc.fc-theme-standard .fc-toolbar .fc-button.fc-dayGridMonth-button:not(:disabled):focus, .fc.fc-theme-standard .fc-toolbar .fc-button.fc-timeGridWeek-button:not(:disabled):focus, .fc.fc-theme-standard .fc-toolbar .fc-button.fc-timeGridDay-button:not(:disabled):focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n z-index: 1;\n}\n.fc.fc-theme-standard .fc-toolbar .fc-button-group .fc-button {\n border-radius: 0;\n}\n.fc.fc-theme-standard .fc-toolbar .fc-button-group .fc-button:first-child {\n border-top-left-radius: 0.375rem;\n border-bottom-left-radius: 0.375rem;\n}\n.fc.fc-theme-standard .fc-toolbar .fc-button-group .fc-button:last-child {\n border-top-right-radius: 0.375rem;\n border-bottom-right-radius: 0.375rem;\n}\n.fc.fc-theme-standard .fc-highlight {\n color: #312E81;\n background: #EEF2FF;\n}\n\n.p-orderlist .p-orderlist-controls {\n padding: 1.25rem;\n}\n.p-orderlist .p-orderlist-controls .p-button {\n margin-bottom: 0.5rem;\n}\n.p-orderlist .p-orderlist-header {\n background: #fafafa;\n color: #3f3f46;\n border: 1px solid #e5e7eb;\n padding: 1.25rem;\n font-weight: 700;\n border-bottom: 0 none;\n border-top-right-radius: 0.375rem;\n border-top-left-radius: 0.375rem;\n}\n.p-orderlist .p-orderlist-list {\n border: 1px solid #e5e7eb;\n background: #ffffff;\n color: #3f3f46;\n padding: 0.25rem 0;\n border-bottom-right-radius: 0.375rem;\n border-bottom-left-radius: 0.375rem;\n}\n.p-orderlist .p-orderlist-list .p-orderlist-item {\n padding: 0.75rem 1rem;\n margin: 0;\n border: 0 none;\n color: #3f3f46;\n background: transparent;\n transition: transform 0.2s, none;\n}\n.p-orderlist .p-orderlist-list .p-orderlist-item:not(.p-highlight):hover {\n background: #f4f4f5;\n color: #18181B;\n}\n.p-orderlist .p-orderlist-list .p-orderlist-item:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: inset 0 0 0 0.15rem #6366F1;\n}\n.p-orderlist .p-orderlist-list .p-orderlist-item.p-highlight {\n color: #312E81;\n background: #EEF2FF;\n}\n.p-orderlist.p-orderlist-striped .p-orderlist-list .p-orderlist-item:nth-child(even) {\n background: #fcfcfc;\n}\n.p-orderlist.p-orderlist-striped .p-orderlist-list .p-orderlist-item:nth-child(even):hover {\n background: #f4f4f5;\n}\n\n.p-organizationchart .p-organizationchart-node-content.p-organizationchart-selectable-node:not(.p-highlight):hover {\n background: #f4f4f5;\n color: #18181B;\n}\n.p-organizationchart .p-organizationchart-node-content.p-highlight {\n background: #EEF2FF;\n color: #312E81;\n}\n.p-organizationchart .p-organizationchart-node-content.p-highlight .p-node-toggler i {\n color: #6f91ff;\n}\n.p-organizationchart .p-organizationchart-line-down {\n background: #e5e7eb;\n}\n.p-organizationchart .p-organizationchart-line-left {\n border-right: 1px solid #e5e7eb;\n border-color: #e5e7eb;\n}\n.p-organizationchart .p-organizationchart-line-top {\n border-top: 1px solid #e5e7eb;\n border-color: #e5e7eb;\n}\n.p-organizationchart .p-organizationchart-node-content {\n border: 1px solid #e5e7eb;\n background: #ffffff;\n color: #3f3f46;\n padding: 1.25rem;\n}\n.p-organizationchart .p-organizationchart-node-content .p-node-toggler {\n background: inherit;\n color: inherit;\n border-radius: 50%;\n}\n.p-organizationchart .p-organizationchart-node-content .p-node-toggler:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n\n.p-paginator {\n background: #ffffff;\n color: #71717A;\n border: solid #f4f4f5;\n border-width: 0;\n padding: 0.75rem 1.5rem;\n border-radius: 0.375rem;\n}\n.p-paginator .p-paginator-first,\n.p-paginator .p-paginator-prev,\n.p-paginator .p-paginator-next,\n.p-paginator .p-paginator-last {\n background-color: transparent;\n border: 1px solid #d4d4d8;\n color: #71717A;\n min-width: 3rem;\n height: 3rem;\n margin: 0 0 0 -1px;\n transition: none;\n border-radius: 0;\n}\n.p-paginator .p-paginator-first:not(.p-disabled):not(.p-highlight):hover,\n.p-paginator .p-paginator-prev:not(.p-disabled):not(.p-highlight):hover,\n.p-paginator .p-paginator-next:not(.p-disabled):not(.p-highlight):hover,\n.p-paginator .p-paginator-last:not(.p-disabled):not(.p-highlight):hover {\n background: #f4f4f5;\n border-color: #d4d4d8;\n color: #3f3f46;\n}\n.p-paginator .p-paginator-first {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n.p-paginator .p-paginator-last {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n.p-paginator .p-dropdown {\n margin-left: 0.5rem;\n margin-right: 0.5rem;\n height: 3rem;\n}\n.p-paginator .p-dropdown .p-dropdown-label {\n padding-right: 0;\n}\n.p-paginator .p-paginator-page-input {\n margin-left: 0.5rem;\n margin-right: 0.5rem;\n}\n.p-paginator .p-paginator-page-input .p-inputtext {\n max-width: 3rem;\n}\n.p-paginator .p-paginator-current {\n background-color: transparent;\n border: 1px solid #d4d4d8;\n color: #71717A;\n min-width: 3rem;\n height: 3rem;\n margin: 0 0 0 -1px;\n padding: 0 0.5rem;\n}\n.p-paginator .p-paginator-pages .p-paginator-page {\n background-color: transparent;\n border: 1px solid #d4d4d8;\n color: #71717A;\n min-width: 3rem;\n height: 3rem;\n margin: 0 0 0 -1px;\n transition: none;\n border-radius: 0;\n}\n.p-paginator .p-paginator-pages .p-paginator-page.p-highlight {\n background: #EEF2FF;\n border-color: #EEF2FF;\n color: #312E81;\n}\n.p-paginator .p-paginator-pages .p-paginator-page:not(.p-highlight):hover {\n background: #f4f4f5;\n border-color: #d4d4d8;\n color: #3f3f46;\n}\n\n.p-picklist .p-picklist-buttons {\n padding: 1.25rem;\n}\n.p-picklist .p-picklist-buttons .p-button {\n margin-bottom: 0.5rem;\n}\n.p-picklist .p-picklist-header {\n background: #fafafa;\n color: #3f3f46;\n border: 1px solid #e5e7eb;\n padding: 1.25rem;\n font-weight: 700;\n border-bottom: 0 none;\n border-top-right-radius: 0.375rem;\n border-top-left-radius: 0.375rem;\n}\n.p-picklist .p-picklist-list {\n border: 1px solid #e5e7eb;\n background: #ffffff;\n color: #3f3f46;\n padding: 0.25rem 0;\n border-bottom-right-radius: 0.375rem;\n border-bottom-left-radius: 0.375rem;\n}\n.p-picklist .p-picklist-list .p-picklist-item {\n padding: 0.75rem 1rem;\n margin: 0;\n border: 0 none;\n color: #3f3f46;\n background: transparent;\n transition: transform 0.2s, none;\n}\n.p-picklist .p-picklist-list .p-picklist-item:not(.p-highlight):hover {\n background: #f4f4f5;\n color: #18181B;\n}\n.p-picklist .p-picklist-list .p-picklist-item:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: inset 0 0 0 0.15rem #6366F1;\n}\n.p-picklist .p-picklist-list .p-picklist-item.p-highlight {\n color: #312E81;\n background: #EEF2FF;\n}\n.p-picklist.p-picklist-striped .p-picklist-list .p-picklist-item:nth-child(even) {\n background: #fcfcfc;\n}\n.p-picklist.p-picklist-striped .p-picklist-list .p-picklist-item:nth-child(even):hover {\n background: #f4f4f5;\n}\n\n.p-timeline .p-timeline-event-marker {\n border: 2px solid #4F46E5;\n border-radius: 50%;\n width: 1rem;\n height: 1rem;\n background-color: #ffffff;\n}\n.p-timeline .p-timeline-event-connector {\n background-color: #e5e7eb;\n}\n.p-timeline.p-timeline-vertical .p-timeline-event-opposite,\n.p-timeline.p-timeline-vertical .p-timeline-event-content {\n padding: 0 1rem;\n}\n.p-timeline.p-timeline-vertical .p-timeline-event-connector {\n width: 2px;\n}\n.p-timeline.p-timeline-horizontal .p-timeline-event-opposite,\n.p-timeline.p-timeline-horizontal .p-timeline-event-content {\n padding: 1rem 0;\n}\n.p-timeline.p-timeline-horizontal .p-timeline-event-connector {\n height: 2px;\n}\n\n.p-tree {\n border: 1px solid #e5e7eb;\n background: #ffffff;\n color: #3f3f46;\n padding: 1.25rem;\n border-radius: 0.375rem;\n}\n.p-tree .p-tree-container .p-treenode {\n padding: 0.143rem;\n}\n.p-tree .p-tree-container .p-treenode .p-treenode-content {\n border-radius: 0.375rem;\n transition: none;\n padding: 0;\n}\n.p-tree .p-tree-container .p-treenode .p-treenode-content .p-tree-toggler {\n margin-right: 0.5rem;\n width: 2rem;\n height: 2rem;\n color: #71717A;\n border: 0 none;\n background: transparent;\n border-radius: 50%;\n transition: none;\n}\n.p-tree .p-tree-container .p-treenode .p-treenode-content .p-tree-toggler:enabled:hover {\n color: #18181B;\n border-color: transparent;\n background: #f4f4f5;\n}\n.p-tree .p-tree-container .p-treenode .p-treenode-content .p-tree-toggler:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.p-tree .p-tree-container .p-treenode .p-treenode-content .p-treenode-icon {\n margin-right: 0.5rem;\n color: #71717A;\n}\n.p-tree .p-tree-container .p-treenode .p-treenode-content .p-checkbox {\n margin-right: 0.5rem;\n}\n.p-tree .p-tree-container .p-treenode .p-treenode-content .p-checkbox .p-indeterminate .p-checkbox-icon {\n color: #3f3f46;\n}\n.p-tree .p-tree-container .p-treenode .p-treenode-content:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: inset 0 0 0 0.15rem #6366F1;\n}\n.p-tree .p-tree-container .p-treenode .p-treenode-content.p-highlight {\n background: #EEF2FF;\n color: #312E81;\n}\n.p-tree .p-tree-container .p-treenode .p-treenode-content.p-highlight .p-tree-toggler,\n.p-tree .p-tree-container .p-treenode .p-treenode-content.p-highlight .p-treenode-icon {\n color: #312E81;\n}\n.p-tree .p-tree-container .p-treenode .p-treenode-content.p-highlight .p-tree-toggler:hover,\n.p-tree .p-tree-container .p-treenode .p-treenode-content.p-highlight .p-treenode-icon:hover {\n color: #312E81;\n}\n.p-tree .p-tree-container .p-treenode .p-treenode-content.p-treenode-selectable:not(.p-highlight):hover {\n background: #f4f4f5;\n color: #18181B;\n}\n.p-tree .p-tree-filter-container {\n margin-bottom: 0.5rem;\n}\n.p-tree .p-tree-filter-container .p-tree-filter {\n width: 100%;\n padding-right: 1.75rem;\n}\n.p-tree .p-tree-filter-container .p-tree-filter-icon {\n right: 0.75rem;\n color: #71717A;\n}\n.p-tree .p-treenode-children {\n padding: 0 0 0 1rem;\n}\n.p-tree .p-tree-loading-icon {\n font-size: 2rem;\n}\n\n.p-treetable .p-paginator-top {\n border-width: 0 0 1px 0;\n border-radius: 0;\n}\n.p-treetable .p-paginator-bottom {\n border-width: 0 0 1px 0;\n border-radius: 0;\n}\n.p-treetable .p-treetable-header {\n background: #fafafa;\n color: #3f3f46;\n border: 1px solid #f4f4f5;\n border-width: 1px 0 1px 0;\n padding: 1.25rem 1.25rem;\n font-weight: 600;\n}\n.p-treetable .p-treetable-footer {\n background: #fafafa;\n color: #3f3f46;\n border: 1px solid #f4f4f5;\n border-width: 0 0 1px 0;\n padding: 0.75rem 1.5rem;\n font-weight: 600;\n}\n.p-treetable .p-treetable-thead > tr > th {\n text-align: left;\n padding: 0.75rem 1.5rem;\n border: 1px solid #f4f4f5;\n border-width: 0 0 1px 0;\n font-weight: 500;\n color: #6b7280;\n background: #fafafa;\n transition: none;\n}\n.p-treetable .p-treetable-tfoot > tr > td {\n text-align: left;\n padding: 1rem 1rem;\n border: 1px solid #f4f4f5;\n border-width: 0 0 1px 0;\n font-weight: 600;\n color: #3f3f46;\n background: #fafafa;\n}\n.p-treetable .p-sortable-column {\n outline-color: #6366F1;\n}\n.p-treetable .p-sortable-column .p-sortable-column-icon {\n color: #71717A;\n margin-left: 0.5rem;\n}\n.p-treetable .p-sortable-column .p-sortable-column-badge {\n border-radius: 50%;\n height: 1.143rem;\n min-width: 1.143rem;\n line-height: 1.143rem;\n color: #312E81;\n background: #EEF2FF;\n margin-left: 0.5rem;\n}\n.p-treetable .p-sortable-column:not(.p-highlight):hover {\n background: #f4f4f5;\n color: #3f3f46;\n}\n.p-treetable .p-sortable-column:not(.p-highlight):hover .p-sortable-column-icon {\n color: #71717A;\n}\n.p-treetable .p-sortable-column.p-highlight {\n background: #fafafa;\n color: #4F46E5;\n}\n.p-treetable .p-sortable-column.p-highlight .p-sortable-column-icon {\n color: #4F46E5;\n}\n.p-treetable .p-treetable-tbody > tr {\n background: #ffffff;\n color: #3f3f46;\n transition: none;\n}\n.p-treetable .p-treetable-tbody > tr > td {\n text-align: left;\n border: 1px solid #f4f4f5;\n border-width: 0 0 1px 0;\n padding: 1rem 1.5rem;\n}\n.p-treetable .p-treetable-tbody > tr > td .p-treetable-toggler {\n width: 2rem;\n height: 2rem;\n color: #71717A;\n border: 0 none;\n background: transparent;\n border-radius: 50%;\n transition: none;\n margin-right: 0.5rem;\n}\n.p-treetable .p-treetable-tbody > tr > td .p-treetable-toggler:enabled:hover {\n color: #18181B;\n border-color: transparent;\n background: #f4f4f5;\n}\n.p-treetable .p-treetable-tbody > tr > td .p-treetable-toggler:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.p-treetable .p-treetable-tbody > tr > td .p-treetable-toggler + .p-checkbox {\n margin-right: 0.5rem;\n}\n.p-treetable .p-treetable-tbody > tr > td .p-treetable-toggler + .p-checkbox .p-indeterminate .p-checkbox-icon {\n color: #3f3f46;\n}\n.p-treetable .p-treetable-tbody > tr:focus {\n outline: 0.15rem solid #6366F1;\n outline-offset: -0.15rem;\n}\n.p-treetable .p-treetable-tbody > tr.p-highlight {\n background: #EEF2FF;\n color: #312E81;\n}\n.p-treetable .p-treetable-tbody > tr.p-highlight .p-treetable-toggler {\n color: #312E81;\n}\n.p-treetable .p-treetable-tbody > tr.p-highlight .p-treetable-toggler:hover {\n color: #312E81;\n}\n.p-treetable.p-treetable-hoverable-rows .p-treetable-tbody > tr:not(.p-highlight):hover {\n background: #f4f4f5;\n color: #3f3f46;\n}\n.p-treetable.p-treetable-hoverable-rows .p-treetable-tbody > tr:not(.p-highlight):hover .p-treetable-toggler {\n color: #3f3f46;\n}\n.p-treetable .p-column-resizer-helper {\n background: #4F46E5;\n}\n.p-treetable .p-treetable-scrollable-header,\n.p-treetable .p-treetable-scrollable-footer {\n background: #fafafa;\n}\n.p-treetable .p-treetable-loading-icon {\n font-size: 2rem;\n}\n.p-treetable.p-treetable-gridlines .p-datatable-header {\n border-width: 1px 1px 0 1px;\n}\n.p-treetable.p-treetable-gridlines .p-treetable-footer {\n border-width: 0 1px 1px 1px;\n}\n.p-treetable.p-treetable-gridlines .p-treetable-top {\n border-width: 0 1px 0 1px;\n}\n.p-treetable.p-treetable-gridlines .p-treetable-bottom {\n border-width: 0 1px 1px 1px;\n}\n.p-treetable.p-treetable-gridlines .p-treetable-thead > tr > th {\n border-width: 1px;\n}\n.p-treetable.p-treetable-gridlines .p-treetable-tbody > tr > td {\n border-width: 1px;\n}\n.p-treetable.p-treetable-gridlines .p-treetable-tfoot > tr > td {\n border-width: 1px;\n}\n.p-treetable.p-treetable-sm .p-treetable-header {\n padding: 1.09375rem 1.09375rem;\n}\n.p-treetable.p-treetable-sm .p-treetable-thead > tr > th {\n padding: 0.375rem 0.75rem;\n}\n.p-treetable.p-treetable-sm .p-treetable-tbody > tr > td {\n padding: 0.5rem 0.75rem;\n}\n.p-treetable.p-treetable-sm .p-treetable-tfoot > tr > td {\n padding: 0.375rem 0.75rem;\n}\n.p-treetable.p-treetable-sm .p-treetable-footer {\n padding: 0.375rem 0.75rem;\n}\n.p-treetable.p-treetable-lg .p-treetable-header {\n padding: 1.5625rem 1.5625rem;\n}\n.p-treetable.p-treetable-lg .p-treetable-thead > tr > th {\n padding: 0.9375rem 1.875rem;\n}\n.p-treetable.p-treetable-lg .p-treetable-tbody > tr > td {\n padding: 1.25rem 1.875rem;\n}\n.p-treetable.p-treetable-lg .p-treetable-tfoot > tr > td {\n padding: 0.9375rem 1.875rem;\n}\n.p-treetable.p-treetable-lg .p-treetable-footer {\n padding: 0.9375rem 1.875rem;\n}\n\n.p-accordion .p-accordion-header .p-accordion-header-link {\n padding: 1.25rem;\n border: 1px solid #e5e7eb;\n color: #3f3f46;\n background: #fafafa;\n font-weight: 700;\n border-radius: 0.375rem;\n transition: none;\n}\n.p-accordion .p-accordion-header .p-accordion-header-link .p-accordion-toggle-icon {\n margin-right: 0.5rem;\n}\n.p-accordion .p-accordion-header:not(.p-disabled) .p-accordion-header-link:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.p-accordion .p-accordion-header:not(.p-highlight):not(.p-disabled):hover .p-accordion-header-link {\n background: #f4f4f5;\n border-color: #e5e7eb;\n color: #3f3f46;\n}\n.p-accordion .p-accordion-header:not(.p-disabled).p-highlight .p-accordion-header-link {\n background: #fafafa;\n border-color: #e5e7eb;\n color: #3f3f46;\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n}\n.p-accordion .p-accordion-header:not(.p-disabled).p-highlight:hover .p-accordion-header-link {\n border-color: #e5e7eb;\n background: #f4f4f5;\n color: #3f3f46;\n}\n.p-accordion .p-accordion-content {\n padding: 1.25rem;\n border: 1px solid #e5e7eb;\n background: #ffffff;\n color: #3f3f46;\n border-top: 0;\n border-top-right-radius: 0;\n border-top-left-radius: 0;\n border-bottom-right-radius: 0.375rem;\n border-bottom-left-radius: 0.375rem;\n}\n.p-accordion .p-accordion-tab {\n margin-bottom: 0;\n}\n.p-accordion .p-accordion-tab .p-accordion-header .p-accordion-header-link {\n border-radius: 0;\n}\n.p-accordion .p-accordion-tab .p-accordion-content {\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n}\n.p-accordion .p-accordion-tab:not(:first-child) .p-accordion-header .p-accordion-header-link {\n border-top: 0 none;\n}\n.p-accordion .p-accordion-tab:not(:first-child) .p-accordion-header:not(.p-highlight):not(.p-disabled):hover .p-accordion-header-link, .p-accordion .p-accordion-tab:not(:first-child) .p-accordion-header:not(.p-disabled).p-highlight:hover .p-accordion-header-link {\n border-top: 0 none;\n}\n.p-accordion .p-accordion-tab:first-child .p-accordion-header .p-accordion-header-link {\n border-top-right-radius: 0.375rem;\n border-top-left-radius: 0.375rem;\n}\n.p-accordion .p-accordion-tab:last-child .p-accordion-header:not(.p-highlight) .p-accordion-header-link {\n border-bottom-right-radius: 0.375rem;\n border-bottom-left-radius: 0.375rem;\n}\n.p-accordion .p-accordion-tab:last-child .p-accordion-content {\n border-bottom-right-radius: 0.375rem;\n border-bottom-left-radius: 0.375rem;\n}\n\n.p-card {\n background: #ffffff;\n color: #3f3f46;\n box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);\n border-radius: 0.375rem;\n}\n.p-card .p-card-body {\n padding: 1.25rem;\n}\n.p-card .p-card-title {\n font-size: 1.5rem;\n font-weight: 700;\n margin-bottom: 0.5rem;\n}\n.p-card .p-card-subtitle {\n font-weight: 400;\n margin-bottom: 0.5rem;\n color: #71717A;\n}\n.p-card .p-card-content {\n padding: 1.25rem 0;\n}\n.p-card .p-card-footer {\n padding: 1.25rem 0 0 0;\n}\n\n.p-fieldset {\n border: 1px solid #e5e7eb;\n background: #ffffff;\n color: #3f3f46;\n border-radius: 0.375rem;\n}\n.p-fieldset .p-fieldset-legend {\n padding: 1.25rem;\n border: 1px solid #e5e7eb;\n color: #3f3f46;\n background: #fafafa;\n font-weight: 700;\n border-radius: 0.375rem;\n}\n.p-fieldset.p-fieldset-toggleable .p-fieldset-legend {\n padding: 0;\n transition: none;\n}\n.p-fieldset.p-fieldset-toggleable .p-fieldset-legend a {\n padding: 1.25rem;\n color: #3f3f46;\n border-radius: 0.375rem;\n transition: none;\n}\n.p-fieldset.p-fieldset-toggleable .p-fieldset-legend a .p-fieldset-toggler {\n margin-right: 0.5rem;\n}\n.p-fieldset.p-fieldset-toggleable .p-fieldset-legend a:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.p-fieldset.p-fieldset-toggleable .p-fieldset-legend a:hover {\n color: #18181B;\n}\n.p-fieldset.p-fieldset-toggleable .p-fieldset-legend:hover {\n background: #f4f4f5;\n border-color: #e5e7eb;\n color: #18181B;\n}\n.p-fieldset .p-fieldset-content {\n padding: 1.25rem;\n}\n\n.p-divider .p-divider-content {\n background-color: #ffffff;\n}\n.p-divider.p-divider-horizontal {\n margin: 1rem 0;\n padding: 0 1rem;\n}\n.p-divider.p-divider-horizontal:before {\n border-top: 1px #e5e7eb;\n}\n.p-divider.p-divider-horizontal .p-divider-content {\n padding: 0 0.5rem;\n}\n.p-divider.p-divider-vertical {\n margin: 0 1rem;\n padding: 1rem 0;\n}\n.p-divider.p-divider-vertical:before {\n border-left: 1px #e5e7eb;\n}\n.p-divider.p-divider-vertical .p-divider-content {\n padding: 0.5rem 0;\n}\n\n.p-panel .p-panel-header {\n border: 1px solid #e5e7eb;\n padding: 1.25rem;\n background: #fafafa;\n color: #3f3f46;\n border-top-right-radius: 0.375rem;\n border-top-left-radius: 0.375rem;\n}\n.p-panel .p-panel-header .p-panel-title {\n font-weight: 700;\n}\n.p-panel .p-panel-header .p-panel-header-icon {\n width: 2rem;\n height: 2rem;\n color: #71717A;\n border: 0 none;\n background: transparent;\n border-radius: 50%;\n transition: none;\n}\n.p-panel .p-panel-header .p-panel-header-icon:enabled:hover {\n color: #18181B;\n border-color: transparent;\n background: #f4f4f5;\n}\n.p-panel .p-panel-header .p-panel-header-icon:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.p-panel.p-panel-toggleable .p-panel-header {\n padding: 0.75rem 1.25rem;\n}\n.p-panel .p-panel-content {\n padding: 1.25rem;\n border: 1px solid #e5e7eb;\n background: #ffffff;\n color: #3f3f46;\n border-bottom-right-radius: 0.375rem;\n border-bottom-left-radius: 0.375rem;\n border-top: 0 none;\n}\n.p-panel .p-panel-footer {\n padding: 0.75rem 1.25rem;\n border: 1px solid #e5e7eb;\n background: #ffffff;\n color: #3f3f46;\n border-top: 0 none;\n}\n\n.p-scrollpanel .p-scrollpanel-bar {\n background: #fafafa;\n border: 0 none;\n}\n\n.p-splitter {\n border: 1px solid #e5e7eb;\n background: #ffffff;\n border-radius: 0.375rem;\n color: #3f3f46;\n}\n.p-splitter .p-splitter-gutter {\n transition: none;\n background: #fafafa;\n}\n.p-splitter .p-splitter-gutter .p-splitter-gutter-handle {\n background: #e5e7eb;\n}\n.p-splitter .p-splitter-gutter-resizing {\n background: #e5e7eb;\n}\n\n.p-tabview .p-tabview-nav {\n background: #ffffff;\n border: 1px solid #e5e7eb;\n border-width: 0 0 2px 0;\n}\n.p-tabview .p-tabview-nav li {\n margin-right: 0;\n}\n.p-tabview .p-tabview-nav li .p-tabview-nav-link {\n border: solid #e5e7eb;\n border-width: 0 0 2px 0;\n border-color: transparent transparent #e5e7eb transparent;\n background: #ffffff;\n color: #71717A;\n padding: 1.25rem;\n font-weight: 700;\n border-top-right-radius: 0.375rem;\n border-top-left-radius: 0.375rem;\n transition: none;\n margin: 0 0 -2px 0;\n}\n.p-tabview .p-tabview-nav li .p-tabview-nav-link:not(.p-disabled):focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: inset 0 0 0 1px #6366F1;\n}\n.p-tabview .p-tabview-nav li:not(.p-highlight):not(.p-disabled):hover .p-tabview-nav-link {\n background: #ffffff;\n border-color: #71717A;\n color: #71717A;\n}\n.p-tabview .p-tabview-nav li.p-highlight .p-tabview-nav-link {\n background: #ffffff;\n border-color: #4F46E5;\n color: #4F46E5;\n}\n.p-tabview .p-tabview-nav-btn.p-link {\n background: #ffffff;\n color: #4F46E5;\n width: 3rem;\n box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);\n border-radius: 0;\n}\n.p-tabview .p-tabview-nav-btn.p-link:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: inset 0 0 0 1px #6366F1;\n}\n.p-tabview .p-tabview-panels {\n background: #ffffff;\n padding: 1.25rem;\n border: 0 none;\n color: #3f3f46;\n border-bottom-right-radius: 0.375rem;\n border-bottom-left-radius: 0.375rem;\n}\n\n.p-toolbar {\n background: #fafafa;\n border: 1px solid #e5e7eb;\n padding: 1.25rem;\n border-radius: 0.375rem;\n}\n.p-toolbar .p-toolbar-separator {\n margin: 0 0.5rem;\n}\n\n.p-confirm-popup {\n background: #ffffff;\n color: #3f3f46;\n border: 0 none;\n border-radius: 0.375rem;\n box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);\n}\n.p-confirm-popup .p-confirm-popup-content {\n padding: 1.25rem;\n}\n.p-confirm-popup .p-confirm-popup-footer {\n text-align: right;\n padding: 0 1rem 1rem 1rem;\n}\n.p-confirm-popup .p-confirm-popup-footer button {\n margin: 0 0.5rem 0 0;\n width: auto;\n}\n.p-confirm-popup .p-confirm-popup-footer button:last-child {\n margin: 0;\n}\n.p-confirm-popup:after {\n border: solid transparent;\n border-color: rgba(255, 255, 255, 0);\n border-bottom-color: #ffffff;\n}\n.p-confirm-popup:before {\n border: solid transparent;\n border-color: rgba(255, 255, 255, 0);\n border-bottom-color: #ffffff;\n}\n.p-confirm-popup.p-confirm-popup-flipped:after {\n border-top-color: #ffffff;\n}\n.p-confirm-popup.p-confirm-popup-flipped:before {\n border-top-color: #ffffff;\n}\n.p-confirm-popup .p-confirm-popup-icon {\n font-size: 1.5rem;\n}\n.p-confirm-popup .p-confirm-popup-message {\n margin-left: 1rem;\n}\n\n.p-dialog {\n border-radius: 0.375rem;\n box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);\n border: 0 none;\n}\n.p-dialog .p-dialog-header {\n border-bottom: 0 none;\n background: #ffffff;\n color: #3f3f46;\n padding: 1.5rem;\n border-top-right-radius: 0.375rem;\n border-top-left-radius: 0.375rem;\n}\n.p-dialog .p-dialog-header .p-dialog-title {\n font-weight: 600;\n font-size: 1.5rem;\n}\n.p-dialog .p-dialog-header .p-dialog-header-icon {\n width: 2rem;\n height: 2rem;\n color: #71717A;\n border: 0 none;\n background: transparent;\n border-radius: 50%;\n transition: none;\n margin-right: 0.5rem;\n}\n.p-dialog .p-dialog-header .p-dialog-header-icon:enabled:hover {\n color: #18181B;\n border-color: transparent;\n background: #f4f4f5;\n}\n.p-dialog .p-dialog-header .p-dialog-header-icon:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.p-dialog .p-dialog-header .p-dialog-header-icon:last-child {\n margin-right: 0;\n}\n.p-dialog .p-dialog-content {\n background: #ffffff;\n color: #3f3f46;\n padding: 0 1.5rem 1.5rem 1.5rem;\n}\n.p-dialog .p-dialog-footer {\n border-top: 0 none;\n background: #ffffff;\n color: #3f3f46;\n padding: 0 1.5rem 1.5rem 1.5rem;\n text-align: right;\n border-bottom-right-radius: 0.375rem;\n border-bottom-left-radius: 0.375rem;\n}\n.p-dialog .p-dialog-footer button {\n margin: 0 0.5rem 0 0;\n width: auto;\n}\n.p-dialog.p-confirm-dialog .p-confirm-dialog-icon {\n font-size: 2rem;\n}\n.p-dialog.p-confirm-dialog .p-confirm-dialog-message {\n margin-left: 1rem;\n}\n\n.p-overlaypanel {\n background: #ffffff;\n color: #3f3f46;\n border: 0 none;\n border-radius: 0.375rem;\n box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);\n}\n.p-overlaypanel .p-overlaypanel-content {\n padding: 1.25rem;\n}\n.p-overlaypanel .p-overlaypanel-close {\n background: #4F46E5;\n color: #ffffff;\n width: 2rem;\n height: 2rem;\n transition: none;\n border-radius: 50%;\n position: absolute;\n top: -1rem;\n right: -1rem;\n}\n.p-overlaypanel .p-overlaypanel-close:enabled:hover {\n background: #4338CA;\n color: #ffffff;\n}\n.p-overlaypanel:after {\n border: solid transparent;\n border-color: rgba(255, 255, 255, 0);\n border-bottom-color: #ffffff;\n}\n.p-overlaypanel:before {\n border: solid transparent;\n border-color: rgba(255, 255, 255, 0);\n border-bottom-color: #ffffff;\n}\n.p-overlaypanel.p-overlaypanel-flipped:after {\n border-top-color: #ffffff;\n}\n.p-overlaypanel.p-overlaypanel-flipped:before {\n border-top-color: #ffffff;\n}\n\n.p-sidebar {\n background: #ffffff;\n color: #3f3f46;\n border: 0 none;\n box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);\n}\n.p-sidebar .p-sidebar-header {\n padding: 1.25rem;\n}\n.p-sidebar .p-sidebar-header .p-sidebar-close,\n.p-sidebar .p-sidebar-header .p-sidebar-icon {\n width: 2rem;\n height: 2rem;\n color: #71717A;\n border: 0 none;\n background: transparent;\n border-radius: 50%;\n transition: none;\n}\n.p-sidebar .p-sidebar-header .p-sidebar-close:enabled:hover,\n.p-sidebar .p-sidebar-header .p-sidebar-icon:enabled:hover {\n color: #18181B;\n border-color: transparent;\n background: #f4f4f5;\n}\n.p-sidebar .p-sidebar-header .p-sidebar-close:focus,\n.p-sidebar .p-sidebar-header .p-sidebar-icon:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.p-sidebar .p-sidebar-header + .p-sidebar-content {\n padding-top: 0;\n}\n.p-sidebar .p-sidebar-content {\n padding: 1.25rem;\n}\n\n.p-tooltip .p-tooltip-text {\n background: #3f3f46;\n color: #ffffff;\n padding: 0.75rem 0.75rem;\n box-shadow: 0 0 #0000, 0 0 #0000, 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);\n border-radius: 0.375rem;\n}\n.p-tooltip.p-tooltip-right .p-tooltip-arrow {\n border-right-color: #3f3f46;\n}\n.p-tooltip.p-tooltip-left .p-tooltip-arrow {\n border-left-color: #3f3f46;\n}\n.p-tooltip.p-tooltip-top .p-tooltip-arrow {\n border-top-color: #3f3f46;\n}\n.p-tooltip.p-tooltip-bottom .p-tooltip-arrow {\n border-bottom-color: #3f3f46;\n}\n\n.p-fileupload .p-fileupload-buttonbar {\n background: #fafafa;\n padding: 1.25rem;\n border: 1px solid #e5e7eb;\n color: #3f3f46;\n border-bottom: 0 none;\n border-top-right-radius: 0.375rem;\n border-top-left-radius: 0.375rem;\n}\n.p-fileupload .p-fileupload-buttonbar .p-button {\n margin-right: 0.5rem;\n}\n.p-fileupload .p-fileupload-buttonbar .p-button.p-fileupload-choose.p-focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.p-fileupload .p-fileupload-content {\n background: #ffffff;\n padding: 2rem 1rem;\n border: 1px solid #e5e7eb;\n color: #3f3f46;\n border-bottom-right-radius: 0.375rem;\n border-bottom-left-radius: 0.375rem;\n}\n.p-fileupload .p-progressbar {\n height: 0.25rem;\n}\n.p-fileupload .p-fileupload-row > div {\n padding: 1rem 1.5rem;\n}\n.p-fileupload.p-fileupload-advanced .p-message {\n margin-top: 0;\n}\n\n.p-fileupload-choose:not(.p-disabled):hover {\n background: #4338CA;\n color: #ffffff;\n border-color: #4338CA;\n}\n.p-fileupload-choose:not(.p-disabled):active {\n background: #4338CA;\n color: #ffffff;\n border-color: #4338CA;\n}\n\n.p-breadcrumb {\n background: #ffffff;\n border: 1px solid #e5e7eb;\n border-radius: 0.375rem;\n padding: 1rem;\n}\n.p-breadcrumb ul li .p-menuitem-link {\n transition: none;\n border-radius: 0.375rem;\n}\n.p-breadcrumb ul li .p-menuitem-link:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.p-breadcrumb ul li .p-menuitem-link .p-menuitem-text {\n color: #3f3f46;\n}\n.p-breadcrumb ul li .p-menuitem-link .p-menuitem-icon {\n color: #71717A;\n}\n.p-breadcrumb ul li.p-breadcrumb-chevron {\n margin: 0 0.5rem 0 0.5rem;\n color: #3f3f46;\n}\n.p-breadcrumb ul li:last-child .p-menuitem-text {\n color: #3f3f46;\n}\n.p-breadcrumb ul li:last-child .p-menuitem-icon {\n color: #71717A;\n}\n\n.p-contextmenu {\n padding: 0.25rem 0;\n background: #ffffff;\n color: #3f3f46;\n border: 0 none;\n box-shadow: 0 0 #0000, 0 0 #0000, 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);\n border-radius: 0.375rem;\n width: 12.5rem;\n}\n.p-contextmenu .p-menuitem-link {\n padding: 0.75rem 1rem;\n color: #3f3f46;\n border-radius: 0;\n transition: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.p-contextmenu .p-menuitem-link .p-menuitem-text {\n color: #3f3f46;\n}\n.p-contextmenu .p-menuitem-link .p-menuitem-icon {\n color: #71717A;\n margin-right: 0.5rem;\n}\n.p-contextmenu .p-menuitem-link .p-submenu-icon {\n color: #71717A;\n}\n.p-contextmenu .p-menuitem-link:not(.p-disabled):hover {\n background: #f4f4f5;\n}\n.p-contextmenu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text {\n color: #18181B;\n}\n.p-contextmenu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon {\n color: #71717A;\n}\n.p-contextmenu .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon {\n color: #71717A;\n}\n.p-contextmenu .p-menuitem-link:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: inset 0 0 0 0.15rem #6366F1;\n}\n.p-contextmenu .p-submenu-list {\n padding: 0.25rem 0;\n background: #ffffff;\n border: 0 none;\n box-shadow: 0 0 #0000, 0 0 #0000, 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);\n border-radius: 0.375rem;\n}\n.p-contextmenu .p-menuitem.p-menuitem-active > .p-menuitem-link {\n background: #f4f4f5;\n}\n.p-contextmenu .p-menuitem.p-menuitem-active > .p-menuitem-link .p-menuitem-text {\n color: #3f3f46;\n}\n.p-contextmenu .p-menuitem.p-menuitem-active > .p-menuitem-link .p-menuitem-icon, .p-contextmenu .p-menuitem.p-menuitem-active > .p-menuitem-link .p-submenu-icon {\n color: #71717A;\n}\n.p-contextmenu .p-menu-separator {\n border-top: 1px solid #f3f4f6;\n margin: 0.25rem 0;\n}\n.p-contextmenu .p-submenu-icon {\n font-size: 0.875rem;\n}\n\n.p-dock .p-dock-list-container {\n background: rgba(255, 255, 255, 0.1);\n border: 1px solid rgba(255, 255, 255, 0.2);\n padding: 0.5rem 0.5rem;\n border-radius: 0.5rem;\n}\n.p-dock .p-dock-item {\n padding: 0.5rem;\n}\n.p-dock .p-dock-action {\n width: 4rem;\n height: 4rem;\n}\n.p-dock.p-dock-top .p-dock-item-second-prev,\n.p-dock.p-dock-top .p-dock-item-second-next, .p-dock.p-dock-bottom .p-dock-item-second-prev,\n.p-dock.p-dock-bottom .p-dock-item-second-next {\n margin: 0 0.9rem;\n}\n.p-dock.p-dock-top .p-dock-item-prev,\n.p-dock.p-dock-top .p-dock-item-next, .p-dock.p-dock-bottom .p-dock-item-prev,\n.p-dock.p-dock-bottom .p-dock-item-next {\n margin: 0 1.3rem;\n}\n.p-dock.p-dock-top .p-dock-item-current, .p-dock.p-dock-bottom .p-dock-item-current {\n margin: 0 1.5rem;\n}\n.p-dock.p-dock-left .p-dock-item-second-prev,\n.p-dock.p-dock-left .p-dock-item-second-next, .p-dock.p-dock-right .p-dock-item-second-prev,\n.p-dock.p-dock-right .p-dock-item-second-next {\n margin: 0.9rem 0;\n}\n.p-dock.p-dock-left .p-dock-item-prev,\n.p-dock.p-dock-left .p-dock-item-next, .p-dock.p-dock-right .p-dock-item-prev,\n.p-dock.p-dock-right .p-dock-item-next {\n margin: 1.3rem 0;\n}\n.p-dock.p-dock-left .p-dock-item-current, .p-dock.p-dock-right .p-dock-item-current {\n margin: 1.5rem 0;\n}\n\n@media screen and (max-width: 960px) {\n .p-dock.p-dock-top .p-dock-list-container, .p-dock.p-dock-bottom .p-dock-list-container {\n overflow-x: auto;\n width: 100%;\n }\n .p-dock.p-dock-top .p-dock-list-container .p-dock-list, .p-dock.p-dock-bottom .p-dock-list-container .p-dock-list {\n margin: 0 auto;\n }\n .p-dock.p-dock-left .p-dock-list-container, .p-dock.p-dock-right .p-dock-list-container {\n overflow-y: auto;\n height: 100%;\n }\n .p-dock.p-dock-left .p-dock-list-container .p-dock-list, .p-dock.p-dock-right .p-dock-list-container .p-dock-list {\n margin: auto 0;\n }\n .p-dock .p-dock-list .p-dock-item {\n transform: none;\n margin: 0;\n }\n}\n.p-megamenu {\n padding: 1rem;\n background: #fafafa;\n color: #3f3f46;\n border: 1px solid #e5e7eb;\n border-radius: 0.375rem;\n}\n.p-megamenu .p-megamenu-root-list > .p-menuitem > .p-menuitem-link {\n padding: 0.75rem 1rem;\n color: #3f3f46;\n border-radius: 0.375rem;\n transition: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.p-megamenu .p-megamenu-root-list > .p-menuitem > .p-menuitem-link .p-menuitem-text {\n color: #3f3f46;\n}\n.p-megamenu .p-megamenu-root-list > .p-menuitem > .p-menuitem-link .p-menuitem-icon {\n color: #71717A;\n margin-right: 0.5rem;\n}\n.p-megamenu .p-megamenu-root-list > .p-menuitem > .p-menuitem-link .p-submenu-icon {\n color: #71717A;\n margin-left: 0.5rem;\n}\n.p-megamenu .p-megamenu-root-list > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover {\n background: #f4f4f5;\n}\n.p-megamenu .p-megamenu-root-list > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text {\n color: #18181B;\n}\n.p-megamenu .p-megamenu-root-list > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon {\n color: #71717A;\n}\n.p-megamenu .p-megamenu-root-list > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon {\n color: #71717A;\n}\n.p-megamenu .p-megamenu-root-list > .p-menuitem > .p-menuitem-link:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: inset 0 0 0 0.15rem #6366F1;\n}\n.p-megamenu .p-megamenu-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link,\n.p-megamenu .p-megamenu-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link:not(.p-disabled):hover {\n background: #f4f4f5;\n}\n.p-megamenu .p-megamenu-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link .p-menuitem-text,\n.p-megamenu .p-megamenu-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text {\n color: #3f3f46;\n}\n.p-megamenu .p-megamenu-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link .p-menuitem-icon,\n.p-megamenu .p-megamenu-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon {\n color: #71717A;\n}\n.p-megamenu .p-megamenu-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link .p-submenu-icon,\n.p-megamenu .p-megamenu-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon {\n color: #71717A;\n}\n.p-megamenu .p-menuitem-link {\n padding: 0.75rem 1rem;\n color: #3f3f46;\n border-radius: 0;\n transition: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.p-megamenu .p-menuitem-link .p-menuitem-text {\n color: #3f3f46;\n}\n.p-megamenu .p-menuitem-link .p-menuitem-icon {\n color: #71717A;\n margin-right: 0.5rem;\n}\n.p-megamenu .p-menuitem-link .p-submenu-icon {\n color: #71717A;\n}\n.p-megamenu .p-menuitem-link:not(.p-disabled):hover {\n background: #f4f4f5;\n}\n.p-megamenu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text {\n color: #18181B;\n}\n.p-megamenu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon {\n color: #71717A;\n}\n.p-megamenu .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon {\n color: #71717A;\n}\n.p-megamenu .p-menuitem-link:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: inset 0 0 0 0.15rem #6366F1;\n}\n.p-megamenu .p-megamenu-panel {\n background: #ffffff;\n color: #3f3f46;\n border: 0 none;\n box-shadow: 0 0 #0000, 0 0 #0000, 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);\n}\n.p-megamenu .p-megamenu-submenu-header {\n margin: 0;\n padding: 0.75rem 1rem;\n color: #3f3f46;\n background: #ffffff;\n font-weight: 600;\n border-top-right-radius: 0.375rem;\n border-top-left-radius: 0.375rem;\n}\n.p-megamenu .p-megamenu-submenu {\n padding: 0.25rem 0;\n width: 12.5rem;\n}\n.p-megamenu .p-megamenu-submenu .p-menu-separator {\n border-top: 1px solid #f3f4f6;\n margin: 0.25rem 0;\n}\n.p-megamenu .p-menuitem.p-menuitem-active > .p-menuitem-link {\n background: #f4f4f5;\n}\n.p-megamenu .p-menuitem.p-menuitem-active > .p-menuitem-link .p-menuitem-text {\n color: #3f3f46;\n}\n.p-megamenu .p-menuitem.p-menuitem-active > .p-menuitem-link .p-menuitem-icon, .p-megamenu .p-menuitem.p-menuitem-active > .p-menuitem-link .p-submenu-icon {\n color: #71717A;\n}\n.p-megamenu.p-megamenu-vertical {\n width: 12.5rem;\n padding: 0.25rem 0;\n}\n\n.p-menu {\n padding: 0.25rem 0;\n background: #ffffff;\n color: #3f3f46;\n border: 1px solid #e5e7eb;\n border-radius: 0.375rem;\n width: 12.5rem;\n}\n.p-menu .p-menuitem-link {\n padding: 0.75rem 1rem;\n color: #3f3f46;\n border-radius: 0;\n transition: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.p-menu .p-menuitem-link .p-menuitem-text {\n color: #3f3f46;\n}\n.p-menu .p-menuitem-link .p-menuitem-icon {\n color: #71717A;\n margin-right: 0.5rem;\n}\n.p-menu .p-menuitem-link .p-submenu-icon {\n color: #71717A;\n}\n.p-menu .p-menuitem-link:not(.p-disabled):hover {\n background: #f4f4f5;\n}\n.p-menu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text {\n color: #18181B;\n}\n.p-menu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon {\n color: #71717A;\n}\n.p-menu .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon {\n color: #71717A;\n}\n.p-menu .p-menuitem-link:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: inset 0 0 0 0.15rem #6366F1;\n}\n.p-menu.p-menu-overlay {\n background: #ffffff;\n border: 0 none;\n box-shadow: 0 0 #0000, 0 0 #0000, 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);\n}\n.p-menu .p-submenu-header {\n margin: 0;\n padding: 0.75rem 1rem;\n color: #3f3f46;\n background: #ffffff;\n font-weight: 600;\n border-top-right-radius: 0;\n border-top-left-radius: 0;\n}\n.p-menu .p-menu-separator {\n border-top: 1px solid #f3f4f6;\n margin: 0.25rem 0;\n}\n\n.p-menubar {\n padding: 1rem;\n background: #fafafa;\n color: #3f3f46;\n border: 1px solid #e5e7eb;\n border-radius: 0.375rem;\n}\n.p-menubar .p-menuitem-link {\n padding: 0.75rem 1rem;\n color: #3f3f46;\n border-radius: 0;\n transition: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.p-menubar .p-menuitem-link .p-menuitem-text {\n color: #3f3f46;\n}\n.p-menubar .p-menuitem-link .p-menuitem-icon {\n color: #71717A;\n margin-right: 0.5rem;\n}\n.p-menubar .p-menuitem-link .p-submenu-icon {\n color: #71717A;\n}\n.p-menubar .p-menuitem-link:not(.p-disabled):hover {\n background: #f4f4f5;\n}\n.p-menubar .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text {\n color: #18181B;\n}\n.p-menubar .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon {\n color: #71717A;\n}\n.p-menubar .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon {\n color: #71717A;\n}\n.p-menubar .p-menuitem-link:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: inset 0 0 0 0.15rem #6366F1;\n}\n.p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link {\n padding: 0.75rem 1rem;\n color: #3f3f46;\n border-radius: 0.375rem;\n transition: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link .p-menuitem-text {\n color: #3f3f46;\n}\n.p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link .p-menuitem-icon {\n color: #71717A;\n margin-right: 0.5rem;\n}\n.p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link .p-submenu-icon {\n color: #71717A;\n margin-left: 0.5rem;\n}\n.p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover {\n background: #f4f4f5;\n}\n.p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text {\n color: #18181B;\n}\n.p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon {\n color: #71717A;\n}\n.p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon {\n color: #71717A;\n}\n.p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: inset 0 0 0 0.15rem #6366F1;\n}\n.p-menubar .p-menubar-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link,\n.p-menubar .p-menubar-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link:not(.p-disabled):hover {\n background: #f4f4f5;\n}\n.p-menubar .p-menubar-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link .p-menuitem-text,\n.p-menubar .p-menubar-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text {\n color: #3f3f46;\n}\n.p-menubar .p-menubar-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link .p-menuitem-icon,\n.p-menubar .p-menubar-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon {\n color: #71717A;\n}\n.p-menubar .p-menubar-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link .p-submenu-icon,\n.p-menubar .p-menubar-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon {\n color: #71717A;\n}\n.p-menubar .p-submenu-list {\n padding: 0.25rem 0;\n background: #ffffff;\n border: 0 none;\n box-shadow: 0 0 #0000, 0 0 #0000, 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);\n width: 12.5rem;\n}\n.p-menubar .p-submenu-list .p-menu-separator {\n border-top: 1px solid #f3f4f6;\n margin: 0.25rem 0;\n}\n.p-menubar .p-submenu-list .p-submenu-icon {\n font-size: 0.875rem;\n}\n.p-menubar .p-menuitem.p-menuitem-active > .p-menuitem-link {\n background: #f4f4f5;\n}\n.p-menubar .p-menuitem.p-menuitem-active > .p-menuitem-link .p-menuitem-text {\n color: #3f3f46;\n}\n.p-menubar .p-menuitem.p-menuitem-active > .p-menuitem-link .p-menuitem-icon, .p-menubar .p-menuitem.p-menuitem-active > .p-menuitem-link .p-submenu-icon {\n color: #71717A;\n}\n\n@media screen and (max-width: 960px) {\n .p-menubar {\n position: relative;\n }\n .p-menubar .p-menubar-button {\n display: flex;\n width: 2rem;\n height: 2rem;\n color: #71717A;\n border-radius: 50%;\n transition: none;\n }\n .p-menubar .p-menubar-button:hover {\n color: #71717A;\n background: #f4f4f5;\n }\n .p-menubar .p-menubar-button:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n }\n .p-menubar .p-menubar-root-list {\n position: absolute;\n display: none;\n padding: 0.25rem 0;\n background: #ffffff;\n border: 0 none;\n box-shadow: 0 0 #0000, 0 0 #0000, 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);\n width: 100%;\n }\n .p-menubar .p-menubar-root-list .p-menu-separator {\n border-top: 1px solid #f3f4f6;\n margin: 0.25rem 0;\n }\n .p-menubar .p-menubar-root-list .p-submenu-icon {\n font-size: 0.875rem;\n }\n .p-menubar .p-menubar-root-list > .p-menuitem {\n width: 100%;\n position: static;\n }\n .p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link {\n padding: 0.75rem 1rem;\n color: #3f3f46;\n border-radius: 0;\n transition: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n }\n .p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link .p-menuitem-text {\n color: #3f3f46;\n }\n .p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link .p-menuitem-icon {\n color: #71717A;\n margin-right: 0.5rem;\n }\n .p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link .p-submenu-icon {\n color: #71717A;\n }\n .p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover {\n background: #f4f4f5;\n }\n .p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text {\n color: #18181B;\n }\n .p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon {\n color: #71717A;\n }\n .p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon {\n color: #71717A;\n }\n .p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: inset 0 0 0 0.15rem #6366F1;\n }\n .p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link > .p-submenu-icon {\n margin-left: auto;\n transition: transform 0.2s;\n }\n .p-menubar .p-menubar-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link > .p-submenu-icon {\n transform: rotate(-180deg);\n }\n .p-menubar .p-menubar-root-list .p-submenu-list {\n width: 100%;\n position: static;\n box-shadow: none;\n border: 0 none;\n }\n .p-menubar .p-menubar-root-list .p-submenu-list .p-submenu-icon {\n transition: transform 0.2s;\n transform: rotate(90deg);\n }\n .p-menubar .p-menubar-root-list .p-submenu-list .p-menuitem-active > .p-menuitem-link > .p-submenu-icon {\n transform: rotate(-90deg);\n }\n .p-menubar .p-menubar-root-list .p-menuitem {\n width: 100%;\n position: static;\n }\n .p-menubar .p-menubar-root-list ul li a {\n padding-left: 2.25rem;\n }\n .p-menubar .p-menubar-root-list ul li ul li a {\n padding-left: 3.75rem;\n }\n .p-menubar .p-menubar-root-list ul li ul li ul li a {\n padding-left: 5.25rem;\n }\n .p-menubar .p-menubar-root-list ul li ul li ul li ul li a {\n padding-left: 6.75rem;\n }\n .p-menubar .p-menubar-root-list ul li ul li ul li ul li ul li a {\n padding-left: 8.25rem;\n }\n .p-menubar.p-menubar-mobile-active .p-menubar-root-list {\n display: flex;\n flex-direction: column;\n top: 100%;\n left: 0;\n z-index: 1;\n }\n}\n.p-panelmenu .p-panelmenu-header > a {\n padding: 1.25rem;\n border: 1px solid #e5e7eb;\n color: #3f3f46;\n background: #fafafa;\n font-weight: 700;\n border-radius: 0.375rem;\n transition: none;\n}\n.p-panelmenu .p-panelmenu-header > a .p-panelmenu-icon {\n margin-right: 0.5rem;\n}\n.p-panelmenu .p-panelmenu-header > a .p-menuitem-icon {\n margin-right: 0.5rem;\n}\n.p-panelmenu .p-panelmenu-header > a:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.p-panelmenu .p-panelmenu-header:not(.p-highlight):not(.p-disabled) > a:hover {\n background: #f4f4f5;\n border-color: #e5e7eb;\n color: #3f3f46;\n}\n.p-panelmenu .p-panelmenu-header.p-highlight {\n margin-bottom: 0;\n}\n.p-panelmenu .p-panelmenu-header.p-highlight > a {\n background: #fafafa;\n border-color: #e5e7eb;\n color: #3f3f46;\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n}\n.p-panelmenu .p-panelmenu-header.p-highlight:not(.p-disabled) > a:hover {\n border-color: #e5e7eb;\n background: #f4f4f5;\n color: #3f3f46;\n}\n.p-panelmenu .p-panelmenu-content {\n padding: 0.25rem 0;\n border: 1px solid #e5e7eb;\n background: #ffffff;\n color: #3f3f46;\n margin-bottom: 0;\n border-top: 0;\n border-top-right-radius: 0;\n border-top-left-radius: 0;\n border-bottom-right-radius: 0.375rem;\n border-bottom-left-radius: 0.375rem;\n}\n.p-panelmenu .p-panelmenu-content .p-menuitem .p-menuitem-link {\n padding: 0.75rem 1rem;\n color: #3f3f46;\n border-radius: 0;\n transition: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.p-panelmenu .p-panelmenu-content .p-menuitem .p-menuitem-link .p-menuitem-text {\n color: #3f3f46;\n}\n.p-panelmenu .p-panelmenu-content .p-menuitem .p-menuitem-link .p-menuitem-icon {\n color: #71717A;\n margin-right: 0.5rem;\n}\n.p-panelmenu .p-panelmenu-content .p-menuitem .p-menuitem-link .p-submenu-icon {\n color: #71717A;\n}\n.p-panelmenu .p-panelmenu-content .p-menuitem .p-menuitem-link:not(.p-disabled):hover {\n background: #f4f4f5;\n}\n.p-panelmenu .p-panelmenu-content .p-menuitem .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text {\n color: #18181B;\n}\n.p-panelmenu .p-panelmenu-content .p-menuitem .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon {\n color: #71717A;\n}\n.p-panelmenu .p-panelmenu-content .p-menuitem .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon {\n color: #71717A;\n}\n.p-panelmenu .p-panelmenu-content .p-menuitem .p-menuitem-link:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: inset 0 0 0 0.15rem #6366F1;\n}\n.p-panelmenu .p-panelmenu-content .p-menuitem .p-menuitem-link .p-panelmenu-icon {\n margin-right: 0.5rem;\n}\n.p-panelmenu .p-panelmenu-content .p-submenu-list:not(.p-panelmenu-root-submenu) {\n padding: 0 0 0 1rem;\n}\n.p-panelmenu .p-panelmenu-panel {\n margin-bottom: 0;\n}\n.p-panelmenu .p-panelmenu-panel .p-panelmenu-header > a {\n border-radius: 0;\n}\n.p-panelmenu .p-panelmenu-panel .p-panelmenu-content {\n border-radius: 0;\n}\n.p-panelmenu .p-panelmenu-panel:not(:first-child) .p-panelmenu-header > a {\n border-top: 0 none;\n}\n.p-panelmenu .p-panelmenu-panel:not(:first-child) .p-panelmenu-header:not(.p-highlight):not(.p-disabled):hover > a, .p-panelmenu .p-panelmenu-panel:not(:first-child) .p-panelmenu-header:not(.p-disabled).p-highlight:hover > a {\n border-top: 0 none;\n}\n.p-panelmenu .p-panelmenu-panel:first-child .p-panelmenu-header > a {\n border-top-right-radius: 0.375rem;\n border-top-left-radius: 0.375rem;\n}\n.p-panelmenu .p-panelmenu-panel:last-child .p-panelmenu-header:not(.p-highlight) > a {\n border-bottom-right-radius: 0.375rem;\n border-bottom-left-radius: 0.375rem;\n}\n.p-panelmenu .p-panelmenu-panel:last-child .p-panelmenu-content {\n border-bottom-right-radius: 0.375rem;\n border-bottom-left-radius: 0.375rem;\n}\n\n.p-steps .p-steps-item .p-menuitem-link {\n background: transparent;\n transition: none;\n border-radius: 0.375rem;\n background: #ffffff;\n}\n.p-steps .p-steps-item .p-menuitem-link .p-steps-number {\n color: #3f3f46;\n border: 1px solid #f4f4f5;\n background: #ffffff;\n min-width: 2rem;\n height: 2rem;\n line-height: 2rem;\n font-size: 1.143rem;\n z-index: 1;\n border-radius: 50%;\n}\n.p-steps .p-steps-item .p-menuitem-link .p-steps-title {\n margin-top: 0.5rem;\n color: #71717A;\n}\n.p-steps .p-steps-item .p-menuitem-link:not(.p-disabled):focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.p-steps .p-steps-item.p-highlight .p-steps-number {\n background: #EEF2FF;\n color: #312E81;\n}\n.p-steps .p-steps-item.p-highlight .p-steps-title {\n font-weight: 600;\n color: #3f3f46;\n}\n.p-steps .p-steps-item:before {\n content: \" \";\n border-top: 1px solid #f3f4f6;\n width: 100%;\n top: 50%;\n left: 0;\n display: block;\n position: absolute;\n margin-top: -1rem;\n}\n\n.p-tabmenu .p-tabmenu-nav {\n background: #ffffff;\n border: 1px solid #e5e7eb;\n border-width: 0 0 2px 0;\n}\n.p-tabmenu .p-tabmenu-nav .p-tabmenuitem {\n margin-right: 0;\n}\n.p-tabmenu .p-tabmenu-nav .p-tabmenuitem .p-menuitem-link {\n border: solid #e5e7eb;\n border-width: 0 0 2px 0;\n border-color: transparent transparent #e5e7eb transparent;\n background: #ffffff;\n color: #71717A;\n padding: 1.25rem;\n font-weight: 700;\n border-top-right-radius: 0.375rem;\n border-top-left-radius: 0.375rem;\n transition: none;\n margin: 0 0 -2px 0;\n}\n.p-tabmenu .p-tabmenu-nav .p-tabmenuitem .p-menuitem-link .p-menuitem-icon {\n margin-right: 0.5rem;\n}\n.p-tabmenu .p-tabmenu-nav .p-tabmenuitem .p-menuitem-link:not(.p-disabled):focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: inset 0 0 0 1px #6366F1;\n}\n.p-tabmenu .p-tabmenu-nav .p-tabmenuitem:not(.p-highlight):not(.p-disabled):hover .p-menuitem-link {\n background: #ffffff;\n border-color: #71717A;\n color: #71717A;\n}\n.p-tabmenu .p-tabmenu-nav .p-tabmenuitem.p-highlight .p-menuitem-link {\n background: #ffffff;\n border-color: #4F46E5;\n color: #4F46E5;\n}\n\n.p-tieredmenu {\n padding: 0.25rem 0;\n background: #ffffff;\n color: #3f3f46;\n border: 1px solid #e5e7eb;\n border-radius: 0.375rem;\n width: 12.5rem;\n}\n.p-tieredmenu .p-menuitem-link {\n padding: 0.75rem 1rem;\n color: #3f3f46;\n border-radius: 0;\n transition: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.p-tieredmenu .p-menuitem-link .p-menuitem-text {\n color: #3f3f46;\n}\n.p-tieredmenu .p-menuitem-link .p-menuitem-icon {\n color: #71717A;\n margin-right: 0.5rem;\n}\n.p-tieredmenu .p-menuitem-link .p-submenu-icon {\n color: #71717A;\n}\n.p-tieredmenu .p-menuitem-link:not(.p-disabled):hover {\n background: #f4f4f5;\n}\n.p-tieredmenu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text {\n color: #18181B;\n}\n.p-tieredmenu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon {\n color: #71717A;\n}\n.p-tieredmenu .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon {\n color: #71717A;\n}\n.p-tieredmenu .p-menuitem-link:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: inset 0 0 0 0.15rem #6366F1;\n}\n.p-tieredmenu.p-tieredmenu-overlay {\n background: #ffffff;\n border: 0 none;\n box-shadow: 0 0 #0000, 0 0 #0000, 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);\n}\n.p-tieredmenu .p-submenu-list {\n padding: 0.25rem 0;\n background: #ffffff;\n border: 0 none;\n box-shadow: 0 0 #0000, 0 0 #0000, 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);\n}\n.p-tieredmenu .p-menuitem.p-menuitem-active > .p-menuitem-link {\n background: #f4f4f5;\n}\n.p-tieredmenu .p-menuitem.p-menuitem-active > .p-menuitem-link .p-menuitem-text {\n color: #3f3f46;\n}\n.p-tieredmenu .p-menuitem.p-menuitem-active > .p-menuitem-link .p-menuitem-icon, .p-tieredmenu .p-menuitem.p-menuitem-active > .p-menuitem-link .p-submenu-icon {\n color: #71717A;\n}\n.p-tieredmenu .p-menu-separator {\n border-top: 1px solid #f3f4f6;\n margin: 0.25rem 0;\n}\n.p-tieredmenu .p-submenu-icon {\n font-size: 0.875rem;\n}\n\n.p-inline-message {\n padding: 0.75rem 0.75rem;\n margin: 0;\n border-radius: 0.375rem;\n}\n.p-inline-message.p-inline-message-info {\n background: #EFF6FF;\n border: none;\n border-width: 0px;\n color: #2563EB;\n}\n.p-inline-message.p-inline-message-info .p-inline-message-icon {\n color: #2563EB;\n}\n.p-inline-message.p-inline-message-success {\n background: #ECFDF5;\n border: none;\n border-width: 0px;\n color: #059669;\n}\n.p-inline-message.p-inline-message-success .p-inline-message-icon {\n color: #059669;\n}\n.p-inline-message.p-inline-message-warn {\n background: #FEF3C7;\n border: none;\n border-width: 0px;\n color: #D97706;\n}\n.p-inline-message.p-inline-message-warn .p-inline-message-icon {\n color: #D97706;\n}\n.p-inline-message.p-inline-message-error {\n background: #FEF3C7;\n border: none;\n border-width: 0px;\n color: #DC2626;\n}\n.p-inline-message.p-inline-message-error .p-inline-message-icon {\n color: #DC2626;\n}\n.p-inline-message .p-inline-message-icon {\n font-size: 1rem;\n margin-right: 0.5rem;\n}\n.p-inline-message .p-inline-message-text {\n font-size: 1rem;\n}\n.p-inline-message.p-inline-message-icon-only .p-inline-message-icon {\n margin-right: 0;\n}\n\n.p-message {\n margin: 1rem 0;\n border-radius: 0.375rem;\n}\n.p-message .p-message-wrapper {\n padding: 1.25rem 1.75rem;\n}\n.p-message .p-message-close {\n width: 2rem;\n height: 2rem;\n border-radius: 50%;\n background: transparent;\n transition: none;\n}\n.p-message .p-message-close:hover {\n background: rgba(255, 255, 255, 0.3);\n}\n.p-message .p-message-close:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.p-message.p-message-info {\n background: #EFF6FF;\n border: none;\n border-width: 0 0 0 6px;\n color: #2563EB;\n}\n.p-message.p-message-info .p-message-icon {\n color: #2563EB;\n}\n.p-message.p-message-info .p-message-close {\n color: #2563EB;\n}\n.p-message.p-message-success {\n background: #ECFDF5;\n border: none;\n border-width: 0 0 0 6px;\n color: #059669;\n}\n.p-message.p-message-success .p-message-icon {\n color: #059669;\n}\n.p-message.p-message-success .p-message-close {\n color: #059669;\n}\n.p-message.p-message-warn {\n background: #FEF3C7;\n border: none;\n border-width: 0 0 0 6px;\n color: #D97706;\n}\n.p-message.p-message-warn .p-message-icon {\n color: #D97706;\n}\n.p-message.p-message-warn .p-message-close {\n color: #D97706;\n}\n.p-message.p-message-error {\n background: #FEF3C7;\n border: none;\n border-width: 0 0 0 6px;\n color: #DC2626;\n}\n.p-message.p-message-error .p-message-icon {\n color: #DC2626;\n}\n.p-message.p-message-error .p-message-close {\n color: #DC2626;\n}\n.p-message .p-message-text {\n font-size: 1rem;\n font-weight: 500;\n}\n.p-message .p-message-icon {\n font-size: 1.5rem;\n margin-right: 0.5rem;\n}\n\n.p-toast {\n opacity: 0.9;\n}\n.p-toast .p-toast-message {\n margin: 0 0 1rem 0;\n box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);\n border-radius: 0.375rem;\n}\n.p-toast .p-toast-message .p-toast-message-content {\n padding: 1rem;\n border-width: 0 0 0 6px;\n}\n.p-toast .p-toast-message .p-toast-message-content .p-toast-message-text {\n margin: 0 0 0 1rem;\n}\n.p-toast .p-toast-message .p-toast-message-content .p-toast-message-icon {\n font-size: 2rem;\n}\n.p-toast .p-toast-message .p-toast-message-content .p-toast-summary {\n font-weight: 700;\n}\n.p-toast .p-toast-message .p-toast-message-content .p-toast-detail {\n margin: 0.5rem 0 0 0;\n}\n.p-toast .p-toast-message .p-toast-icon-close {\n width: 2rem;\n height: 2rem;\n border-radius: 50%;\n background: transparent;\n transition: none;\n}\n.p-toast .p-toast-message .p-toast-icon-close:hover {\n background: rgba(255, 255, 255, 0.3);\n}\n.p-toast .p-toast-message .p-toast-icon-close:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n.p-toast .p-toast-message.p-toast-message-info {\n background: #EFF6FF;\n border: none;\n border-width: 0 0 0 6px;\n color: #2563EB;\n}\n.p-toast .p-toast-message.p-toast-message-info .p-toast-message-icon,\n.p-toast .p-toast-message.p-toast-message-info .p-toast-icon-close {\n color: #2563EB;\n}\n.p-toast .p-toast-message.p-toast-message-success {\n background: #ECFDF5;\n border: none;\n border-width: 0 0 0 6px;\n color: #059669;\n}\n.p-toast .p-toast-message.p-toast-message-success .p-toast-message-icon,\n.p-toast .p-toast-message.p-toast-message-success .p-toast-icon-close {\n color: #059669;\n}\n.p-toast .p-toast-message.p-toast-message-warn {\n background: #FEF3C7;\n border: none;\n border-width: 0 0 0 6px;\n color: #D97706;\n}\n.p-toast .p-toast-message.p-toast-message-warn .p-toast-message-icon,\n.p-toast .p-toast-message.p-toast-message-warn .p-toast-icon-close {\n color: #D97706;\n}\n.p-toast .p-toast-message.p-toast-message-error {\n background: #FEF3C7;\n border: none;\n border-width: 0 0 0 6px;\n color: #DC2626;\n}\n.p-toast .p-toast-message.p-toast-message-error .p-toast-message-icon,\n.p-toast .p-toast-message.p-toast-message-error .p-toast-icon-close {\n color: #DC2626;\n}\n\n.p-galleria .p-galleria-close {\n margin: 0.5rem;\n background: transparent;\n color: #fafafa;\n width: 4rem;\n height: 4rem;\n transition: none;\n border-radius: 50%;\n}\n.p-galleria .p-galleria-close .p-galleria-close-icon {\n font-size: 2rem;\n}\n.p-galleria .p-galleria-close:hover {\n background: rgba(255, 255, 255, 0.1);\n color: #fafafa;\n}\n.p-galleria .p-galleria-item-nav {\n background: transparent;\n color: #fafafa;\n width: 4rem;\n height: 4rem;\n transition: none;\n border-radius: 0.375rem;\n margin: 0 0.5rem;\n}\n.p-galleria .p-galleria-item-nav .p-galleria-item-prev-icon,\n.p-galleria .p-galleria-item-nav .p-galleria-item-next-icon {\n font-size: 2rem;\n}\n.p-galleria .p-galleria-item-nav:not(.p-disabled):hover {\n background: rgba(255, 255, 255, 0.1);\n color: #fafafa;\n}\n.p-galleria .p-galleria-caption {\n background: rgba(0, 0, 0, 0.5);\n color: #fafafa;\n padding: 1rem;\n}\n.p-galleria .p-galleria-indicators {\n padding: 1rem;\n}\n.p-galleria .p-galleria-indicators .p-galleria-indicator button {\n background-color: #f4f4f5;\n width: 1rem;\n height: 1rem;\n transition: none;\n border-radius: 50%;\n}\n.p-galleria .p-galleria-indicators .p-galleria-indicator button:hover {\n background: #e5e7eb;\n}\n.p-galleria .p-galleria-indicators .p-galleria-indicator.p-highlight button {\n background: #EEF2FF;\n color: #312E81;\n}\n.p-galleria.p-galleria-indicators-bottom .p-galleria-indicator, .p-galleria.p-galleria-indicators-top .p-galleria-indicator {\n margin-right: 0.5rem;\n}\n.p-galleria.p-galleria-indicators-left .p-galleria-indicator, .p-galleria.p-galleria-indicators-right .p-galleria-indicator {\n margin-bottom: 0.5rem;\n}\n.p-galleria.p-galleria-indicator-onitem .p-galleria-indicators {\n background: rgba(0, 0, 0, 0.5);\n}\n.p-galleria.p-galleria-indicator-onitem .p-galleria-indicators .p-galleria-indicator button {\n background: rgba(255, 255, 255, 0.4);\n}\n.p-galleria.p-galleria-indicator-onitem .p-galleria-indicators .p-galleria-indicator button:hover {\n background: rgba(255, 255, 255, 0.6);\n}\n.p-galleria.p-galleria-indicator-onitem .p-galleria-indicators .p-galleria-indicator.p-highlight button {\n background: #EEF2FF;\n color: #312E81;\n}\n.p-galleria .p-galleria-thumbnail-container {\n background: rgba(0, 0, 0, 0.9);\n padding: 1rem 0.25rem;\n}\n.p-galleria .p-galleria-thumbnail-container .p-galleria-thumbnail-prev,\n.p-galleria .p-galleria-thumbnail-container .p-galleria-thumbnail-next {\n margin: 0.5rem;\n background-color: transparent;\n color: #fafafa;\n width: 2rem;\n height: 2rem;\n transition: none;\n border-radius: 50%;\n}\n.p-galleria .p-galleria-thumbnail-container .p-galleria-thumbnail-prev:hover,\n.p-galleria .p-galleria-thumbnail-container .p-galleria-thumbnail-next:hover {\n background: rgba(255, 255, 255, 0.1);\n color: #fafafa;\n}\n.p-galleria .p-galleria-thumbnail-container .p-galleria-thumbnail-item-content:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n\n.p-galleria-mask {\n --maskbg: rgba(0, 0, 0, 0.9);\n}\n\n.p-image-mask {\n --maskbg: rgba(0, 0, 0, 0.9);\n}\n\n.p-image-preview-indicator {\n background-color: transparent;\n color: #f8f9fa;\n transition: none;\n}\n\n.p-image-preview-container:hover > .p-image-preview-indicator {\n background-color: rgba(0, 0, 0, 0.5);\n}\n\n.p-image-toolbar {\n padding: 1rem;\n}\n\n.p-image-action.p-link {\n color: #f8f9fa;\n background-color: transparent;\n width: 3rem;\n height: 3rem;\n border-radius: 50%;\n transition: none;\n margin-right: 0.5rem;\n}\n.p-image-action.p-link:last-child {\n margin-right: 0;\n}\n.p-image-action.p-link:hover {\n color: #f8f9fa;\n background-color: rgba(255, 255, 255, 0.1);\n}\n.p-image-action.p-link i {\n font-size: 1.5rem;\n}\n\n.p-avatar {\n background-color: #e5e7eb;\n border-radius: 0.375rem;\n}\n.p-avatar.p-avatar-lg {\n width: 3rem;\n height: 3rem;\n font-size: 1.5rem;\n}\n.p-avatar.p-avatar-lg .p-avatar-icon {\n font-size: 1.5rem;\n}\n.p-avatar.p-avatar-xl {\n width: 4rem;\n height: 4rem;\n font-size: 2rem;\n}\n.p-avatar.p-avatar-xl .p-avatar-icon {\n font-size: 2rem;\n}\n\n.p-avatar-group .p-avatar {\n border: 2px solid #ffffff;\n}\n\n.p-badge {\n background: #4F46E5;\n color: #ffffff;\n font-size: 0.75rem;\n font-weight: 700;\n min-width: 1.5rem;\n height: 1.5rem;\n line-height: 1.5rem;\n}\n.p-badge.p-badge-secondary {\n background-color: #64748B;\n color: #ffffff;\n}\n.p-badge.p-badge-success {\n background-color: #22C55E;\n color: #ffffff;\n}\n.p-badge.p-badge-info {\n background-color: #3B82F6;\n color: #ffffff;\n}\n.p-badge.p-badge-warning {\n background-color: #F59E0B;\n color: #ffffff;\n}\n.p-badge.p-badge-danger {\n background-color: #EF4444;\n color: #ffffff;\n}\n.p-badge.p-badge-lg {\n font-size: 1.125rem;\n min-width: 2.25rem;\n height: 2.25rem;\n line-height: 2.25rem;\n}\n.p-badge.p-badge-xl {\n font-size: 1.5rem;\n min-width: 3rem;\n height: 3rem;\n line-height: 3rem;\n}\n\n.p-chip {\n background-color: #e5e7eb;\n color: #3f3f46;\n border-radius: 16px;\n padding: 0 0.75rem;\n}\n.p-chip .p-chip-text {\n line-height: 1.5;\n margin-top: 0.375rem;\n margin-bottom: 0.375rem;\n}\n.p-chip .p-chip-icon {\n margin-right: 0.5rem;\n}\n.p-chip img {\n width: 2.25rem;\n height: 2.25rem;\n margin-left: -0.75rem;\n margin-right: 0.5rem;\n}\n.p-chip .p-chip-remove-icon {\n margin-left: 0.5rem;\n border-radius: 0.375rem;\n transition: none;\n}\n.p-chip .p-chip-remove-icon:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n\n.p-inplace .p-inplace-display {\n padding: 0.75rem 0.75rem;\n border-radius: 0.375rem;\n transition: none;\n}\n.p-inplace .p-inplace-display:not(.p-disabled):hover {\n background: #f4f4f5;\n color: #18181B;\n}\n.p-inplace .p-inplace-display:focus {\n outline: 0 none;\n outline-offset: 0;\n box-shadow: 0 0 0 1px #6366F1;\n}\n\n.p-progressbar {\n border: 0 none;\n height: 1.5rem;\n background: #e5e7eb;\n border-radius: 0.375rem;\n}\n.p-progressbar .p-progressbar-value {\n border: 0 none;\n margin: 0;\n background: #4F46E5;\n}\n.p-progressbar .p-progressbar-label {\n color: #ffffff;\n line-height: 1.5rem;\n}\n\n.p-scrolltop {\n width: 3rem;\n height: 3rem;\n border-radius: 50%;\n box-shadow: 0 0 #0000, 0 0 #0000, 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);\n transition: none;\n}\n.p-scrolltop.p-link {\n background: rgba(0, 0, 0, 0.7);\n}\n.p-scrolltop.p-link:hover {\n background: rgba(0, 0, 0, 0.8);\n}\n.p-scrolltop .p-scrolltop-icon {\n font-size: 1.5rem;\n color: #fafafa;\n}\n\n.p-skeleton {\n background-color: #f4f4f5;\n border-radius: 0.375rem;\n}\n.p-skeleton:after {\n background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0));\n}\n\n.p-tag {\n background: #4F46E5;\n color: #ffffff;\n font-size: 0.75rem;\n font-weight: 700;\n padding: 0.25rem 0.4rem;\n border-radius: 0.375rem;\n}\n.p-tag.p-tag-success {\n background-color: #22C55E;\n color: #ffffff;\n}\n.p-tag.p-tag-info {\n background-color: #3B82F6;\n color: #ffffff;\n}\n.p-tag.p-tag-warning {\n background-color: #F59E0B;\n color: #ffffff;\n}\n.p-tag.p-tag-danger {\n background-color: #EF4444;\n color: #ffffff;\n}\n.p-tag .p-tag-icon {\n margin-right: 0.25rem;\n font-size: 0.75rem;\n}\n\n.p-terminal {\n background: #ffffff;\n color: #3f3f46;\n border: 1px solid #e5e7eb;\n padding: 1.25rem;\n}\n.p-terminal .p-terminal-input {\n font-size: 1rem;\n font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";\n}\n\n/* Customizations to the designer theme should be defined here */\n.p-inputtext, .p-togglebutton, .p-selectbutton, .p-inputgroup {\n box-shadow: 0 0 #0000, 0 0 #0000, 0 1px 2px 0 rgba(0, 0, 0, 0.05);\n}\n\n.p-inputgroup .p-inputtext, .p-inputgroup .p-togglebutton, .p-inputgroup .p-selectbutton {\n box-shadow: none;\n}\n\n.p-inputtext.p-invalid.p-component:enabled:focus {\n box-shadow: 0 0 0 1px #f0a9a7;\n}\n\n.p-highlight {\n font-weight: 600;\n}\n\n.p-button-label {\n font-weight: 500;\n}\n\n.p-inputswitch.p-focus .p-inputswitch-slider {\n box-shadow: 0 0 0 2px #6366F1;\n}\n\n.p-paginator .p-paginator-pages .p-paginator-page {\n margin-left: -1px;\n}\n.p-paginator .p-paginator-pages .p-paginator-page.p-highlight {\n border-color: #4F46E5;\n margin-right: 1px;\n}\n.p-paginator .p-paginator-current {\n border: 0 none;\n}\n\n.p-button:focus {\n box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #6366F1, 0 1px 2px 0 rgba(0, 0, 0, 0);\n}\n.p-button.p-button-secondary:enabled:focus {\n box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #64748B, 0 1px 2px 0 rgba(0, 0, 0, 0);\n}\n.p-button.p-button-success:enabled:focus {\n box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #22C55E, 0 1px 2px 0 rgba(0, 0, 0, 0);\n}\n.p-button.p-button-info:enabled:focus {\n box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #3B82F6, 0 1px 2px 0 rgba(0, 0, 0, 0);\n}\n.p-button.p-button-warning:enabled:focus {\n box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #F59E0B, 0 1px 2px 0 rgba(0, 0, 0, 0);\n}\n.p-button.p-button-help:enabled:focus {\n box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #A855F7, 0 1px 2px 0 rgba(0, 0, 0, 0);\n}\n.p-button.p-button-danger:enabled:focus {\n box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #EF4444, 0 1px 2px 0 rgba(0, 0, 0, 0);\n}\n\n.p-checkbox .p-checkbox-box {\n border-radius: 0.25rem;\n}\n.p-checkbox:not(.p-checkbox-disabled) .p-checkbox-box.p-focus {\n box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #6366F1, 0 1px 2px 0 rgba(0, 0, 0, 0);\n}\n\n.p-radiobutton:not(.p-radiobutton-disabled) .p-radiobutton-box.p-focus {\n box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #6366F1, 0 1px 2px 0 rgba(0, 0, 0, 0);\n}\n\n.p-carousel .p-carousel-indicators .p-carousel-indicator.p-highlight button {\n background-color: #4F46E5;\n}\n\n.p-galleria .p-galleria-indicators .p-galleria-indicator.p-highlight button {\n background-color: #4F46E5;\n}\n\n.p-datatable .p-datatable-tbody > tr.p-datatable-dragpoint-top > td {\n box-shadow: inset 0 2px 0 0 #4F46E5;\n}\n.p-datatable .p-datatable-tbody > tr.p-datatable-dragpoint-bottom > td {\n box-shadow: inset 0 -2px 0 0 #4F46E5;\n}\n", ""]);
  21400. // Exports
  21401. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
  21402. /***/ }),
  21403. /***/ "./node_modules/css-loader/dist/runtime/api.js":
  21404. /*!*****************************************************!*\
  21405. !*** ./node_modules/css-loader/dist/runtime/api.js ***!
  21406. \*****************************************************/
  21407. /***/ ((module) => {
  21408. "use strict";
  21409. /*
  21410. MIT License http://www.opensource.org/licenses/mit-license.php
  21411. Author Tobias Koppers @sokra
  21412. */
  21413. // css base code, injected by the css-loader
  21414. // eslint-disable-next-line func-names
  21415. module.exports = function (cssWithMappingToString) {
  21416. var list = []; // return the list of modules as css string
  21417. list.toString = function toString() {
  21418. return this.map(function (item) {
  21419. var content = cssWithMappingToString(item);
  21420. if (item[2]) {
  21421. return "@media ".concat(item[2], " {").concat(content, "}");
  21422. }
  21423. return content;
  21424. }).join("");
  21425. }; // import a list of modules into the list
  21426. // eslint-disable-next-line func-names
  21427. list.i = function (modules, mediaQuery, dedupe) {
  21428. if (typeof modules === "string") {
  21429. // eslint-disable-next-line no-param-reassign
  21430. modules = [[null, modules, ""]];
  21431. }
  21432. var alreadyImportedModules = {};
  21433. if (dedupe) {
  21434. for (var i = 0; i < this.length; i++) {
  21435. // eslint-disable-next-line prefer-destructuring
  21436. var id = this[i][0];
  21437. if (id != null) {
  21438. alreadyImportedModules[id] = true;
  21439. }
  21440. }
  21441. }
  21442. for (var _i = 0; _i < modules.length; _i++) {
  21443. var item = [].concat(modules[_i]);
  21444. if (dedupe && alreadyImportedModules[item[0]]) {
  21445. // eslint-disable-next-line no-continue
  21446. continue;
  21447. }
  21448. if (mediaQuery) {
  21449. if (!item[2]) {
  21450. item[2] = mediaQuery;
  21451. } else {
  21452. item[2] = "".concat(mediaQuery, " and ").concat(item[2]);
  21453. }
  21454. }
  21455. list.push(item);
  21456. }
  21457. };
  21458. return list;
  21459. };
  21460. /***/ }),
  21461. /***/ "./node_modules/css-loader/dist/runtime/getUrl.js":
  21462. /*!********************************************************!*\
  21463. !*** ./node_modules/css-loader/dist/runtime/getUrl.js ***!
  21464. \********************************************************/
  21465. /***/ ((module) => {
  21466. "use strict";
  21467. module.exports = function (url, options) {
  21468. if (!options) {
  21469. // eslint-disable-next-line no-param-reassign
  21470. options = {};
  21471. } // eslint-disable-next-line no-underscore-dangle, no-param-reassign
  21472. url = url && url.__esModule ? url.default : url;
  21473. if (typeof url !== "string") {
  21474. return url;
  21475. } // If url is already wrapped in quotes, remove them
  21476. if (/^['"].*['"]$/.test(url)) {
  21477. // eslint-disable-next-line no-param-reassign
  21478. url = url.slice(1, -1);
  21479. }
  21480. if (options.hash) {
  21481. // eslint-disable-next-line no-param-reassign
  21482. url += options.hash;
  21483. } // Should url be wrapped?
  21484. // See https://drafts.csswg.org/css-values-3/#urls
  21485. if (/["'() \t\n]/.test(url) || options.needQuotes) {
  21486. return "\"".concat(url.replace(/"/g, '\\"').replace(/\n/g, "\\n"), "\"");
  21487. }
  21488. return url;
  21489. };
  21490. /***/ }),
  21491. /***/ "./node_modules/deepmerge/dist/cjs.js":
  21492. /*!********************************************!*\
  21493. !*** ./node_modules/deepmerge/dist/cjs.js ***!
  21494. \********************************************/
  21495. /***/ ((module) => {
  21496. "use strict";
  21497. var isMergeableObject = function isMergeableObject(value) {
  21498. return isNonNullObject(value)
  21499. && !isSpecial(value)
  21500. };
  21501. function isNonNullObject(value) {
  21502. return !!value && typeof value === 'object'
  21503. }
  21504. function isSpecial(value) {
  21505. var stringValue = Object.prototype.toString.call(value);
  21506. return stringValue === '[object RegExp]'
  21507. || stringValue === '[object Date]'
  21508. || isReactElement(value)
  21509. }
  21510. // see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25
  21511. var canUseSymbol = typeof Symbol === 'function' && Symbol.for;
  21512. var REACT_ELEMENT_TYPE = canUseSymbol ? Symbol.for('react.element') : 0xeac7;
  21513. function isReactElement(value) {
  21514. return value.$$typeof === REACT_ELEMENT_TYPE
  21515. }
  21516. function emptyTarget(val) {
  21517. return Array.isArray(val) ? [] : {}
  21518. }
  21519. function cloneUnlessOtherwiseSpecified(value, options) {
  21520. return (options.clone !== false && options.isMergeableObject(value))
  21521. ? deepmerge(emptyTarget(value), value, options)
  21522. : value
  21523. }
  21524. function defaultArrayMerge(target, source, options) {
  21525. return target.concat(source).map(function(element) {
  21526. return cloneUnlessOtherwiseSpecified(element, options)
  21527. })
  21528. }
  21529. function getMergeFunction(key, options) {
  21530. if (!options.customMerge) {
  21531. return deepmerge
  21532. }
  21533. var customMerge = options.customMerge(key);
  21534. return typeof customMerge === 'function' ? customMerge : deepmerge
  21535. }
  21536. function getEnumerableOwnPropertySymbols(target) {
  21537. return Object.getOwnPropertySymbols
  21538. ? Object.getOwnPropertySymbols(target).filter(function(symbol) {
  21539. return target.propertyIsEnumerable(symbol)
  21540. })
  21541. : []
  21542. }
  21543. function getKeys(target) {
  21544. return Object.keys(target).concat(getEnumerableOwnPropertySymbols(target))
  21545. }
  21546. function propertyIsOnObject(object, property) {
  21547. try {
  21548. return property in object
  21549. } catch(_) {
  21550. return false
  21551. }
  21552. }
  21553. // Protects from prototype poisoning and unexpected merging up the prototype chain.
  21554. function propertyIsUnsafe(target, key) {
  21555. return propertyIsOnObject(target, key) // Properties are safe to merge if they don't exist in the target yet,
  21556. && !(Object.hasOwnProperty.call(target, key) // unsafe if they exist up the prototype chain,
  21557. && Object.propertyIsEnumerable.call(target, key)) // and also unsafe if they're nonenumerable.
  21558. }
  21559. function mergeObject(target, source, options) {
  21560. var destination = {};
  21561. if (options.isMergeableObject(target)) {
  21562. getKeys(target).forEach(function(key) {
  21563. destination[key] = cloneUnlessOtherwiseSpecified(target[key], options);
  21564. });
  21565. }
  21566. getKeys(source).forEach(function(key) {
  21567. if (propertyIsUnsafe(target, key)) {
  21568. return
  21569. }
  21570. if (propertyIsOnObject(target, key) && options.isMergeableObject(source[key])) {
  21571. destination[key] = getMergeFunction(key, options)(target[key], source[key], options);
  21572. } else {
  21573. destination[key] = cloneUnlessOtherwiseSpecified(source[key], options);
  21574. }
  21575. });
  21576. return destination
  21577. }
  21578. function deepmerge(target, source, options) {
  21579. options = options || {};
  21580. options.arrayMerge = options.arrayMerge || defaultArrayMerge;
  21581. options.isMergeableObject = options.isMergeableObject || isMergeableObject;
  21582. // cloneUnlessOtherwiseSpecified is added to `options` so that custom arrayMerge()
  21583. // implementations can use it. The caller may not replace it.
  21584. options.cloneUnlessOtherwiseSpecified = cloneUnlessOtherwiseSpecified;
  21585. var sourceIsArray = Array.isArray(source);
  21586. var targetIsArray = Array.isArray(target);
  21587. var sourceAndTargetTypesMatch = sourceIsArray === targetIsArray;
  21588. if (!sourceAndTargetTypesMatch) {
  21589. return cloneUnlessOtherwiseSpecified(source, options)
  21590. } else if (sourceIsArray) {
  21591. return options.arrayMerge(target, source, options)
  21592. } else {
  21593. return mergeObject(target, source, options)
  21594. }
  21595. }
  21596. deepmerge.all = function deepmergeAll(array, options) {
  21597. if (!Array.isArray(array)) {
  21598. throw new Error('first argument should be an array')
  21599. }
  21600. return array.reduce(function(prev, next) {
  21601. return deepmerge(prev, next, options)
  21602. }, {})
  21603. };
  21604. var deepmerge_1 = deepmerge;
  21605. module.exports = deepmerge_1;
  21606. /***/ }),
  21607. /***/ "./node_modules/primevue/resources/images/color.png":
  21608. /*!**********************************************************!*\
  21609. !*** ./node_modules/primevue/resources/images/color.png ***!
  21610. \**********************************************************/
  21611. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  21612. "use strict";
  21613. __webpack_require__.r(__webpack_exports__);
  21614. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  21615. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  21616. /* harmony export */ });
  21617. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ("/images/vendor/primevue/resources/color.png?6441e63a57ccc5105bad045142bc31eb");
  21618. /***/ }),
  21619. /***/ "./node_modules/primevue/resources/images/hue.png":
  21620. /*!********************************************************!*\
  21621. !*** ./node_modules/primevue/resources/images/hue.png ***!
  21622. \********************************************************/
  21623. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  21624. "use strict";
  21625. __webpack_require__.r(__webpack_exports__);
  21626. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  21627. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  21628. /* harmony export */ });
  21629. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ("/images/vendor/primevue/resources/hue.png?f8505bd4d6f3e3aa435b72d1c045d4a7");
  21630. /***/ }),
  21631. /***/ "./node_modules/primeicons/fonts/primeicons.eot":
  21632. /*!******************************************************!*\
  21633. !*** ./node_modules/primeicons/fonts/primeicons.eot ***!
  21634. \******************************************************/
  21635. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  21636. "use strict";
  21637. __webpack_require__.r(__webpack_exports__);
  21638. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  21639. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  21640. /* harmony export */ });
  21641. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ("/fonts/vendor/primeicons/primeicons.eot?7fc4d8e224d1ff1b9c6256b15cbe43a7");
  21642. /***/ }),
  21643. /***/ "./node_modules/primeicons/fonts/primeicons.svg":
  21644. /*!******************************************************!*\
  21645. !*** ./node_modules/primeicons/fonts/primeicons.svg ***!
  21646. \******************************************************/
  21647. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  21648. "use strict";
  21649. __webpack_require__.r(__webpack_exports__);
  21650. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  21651. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  21652. /* harmony export */ });
  21653. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ("/fonts/vendor/primeicons/primeicons.svg?c6e2053303524e39530c36f094129407");
  21654. /***/ }),
  21655. /***/ "./node_modules/primeicons/fonts/primeicons.ttf":
  21656. /*!******************************************************!*\
  21657. !*** ./node_modules/primeicons/fonts/primeicons.ttf ***!
  21658. \******************************************************/
  21659. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  21660. "use strict";
  21661. __webpack_require__.r(__webpack_exports__);
  21662. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  21663. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  21664. /* harmony export */ });
  21665. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ("/fonts/vendor/primeicons/primeicons.ttf?91bacab1f083f2795272499faf7e83dc");
  21666. /***/ }),
  21667. /***/ "./node_modules/primeicons/fonts/primeicons.woff":
  21668. /*!*******************************************************!*\
  21669. !*** ./node_modules/primeicons/fonts/primeicons.woff ***!
  21670. \*******************************************************/
  21671. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  21672. "use strict";
  21673. __webpack_require__.r(__webpack_exports__);
  21674. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  21675. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  21676. /* harmony export */ });
  21677. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ("/fonts/vendor/primeicons/primeicons.woff?449aa8c65cdc5c2a868645403b9ea4d3");
  21678. /***/ }),
  21679. /***/ "./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-Bold.woff":
  21680. /*!*************************************************************************************!*\
  21681. !*** ./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-Bold.woff ***!
  21682. \*************************************************************************************/
  21683. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  21684. "use strict";
  21685. __webpack_require__.r(__webpack_exports__);
  21686. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  21687. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  21688. /* harmony export */ });
  21689. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ("/fonts/vendor/primevue/resources/themes/tailwind-light/Inter-Bold.woff?93c1301bd9f486c573b3d9001c6ec0e4");
  21690. /***/ }),
  21691. /***/ "./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-Bold.woff2":
  21692. /*!**************************************************************************************!*\
  21693. !*** ./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-Bold.woff2 ***!
  21694. \**************************************************************************************/
  21695. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  21696. "use strict";
  21697. __webpack_require__.r(__webpack_exports__);
  21698. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  21699. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  21700. /* harmony export */ });
  21701. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ("/fonts/vendor/primevue/resources/themes/tailwind-light/Inter-Bold.woff2?ec64ea577b0349e055ad6646c1d8797a");
  21702. /***/ }),
  21703. /***/ "./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-Light.woff":
  21704. /*!**************************************************************************************!*\
  21705. !*** ./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-Light.woff ***!
  21706. \**************************************************************************************/
  21707. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  21708. "use strict";
  21709. __webpack_require__.r(__webpack_exports__);
  21710. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  21711. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  21712. /* harmony export */ });
  21713. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ("/fonts/vendor/primevue/resources/themes/tailwind-light/Inter-Light.woff?994e34451cc19ede31d30802a480542b");
  21714. /***/ }),
  21715. /***/ "./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-Light.woff2":
  21716. /*!***************************************************************************************!*\
  21717. !*** ./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-Light.woff2 ***!
  21718. \***************************************************************************************/
  21719. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  21720. "use strict";
  21721. __webpack_require__.r(__webpack_exports__);
  21722. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  21723. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  21724. /* harmony export */ });
  21725. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ("/fonts/vendor/primevue/resources/themes/tailwind-light/Inter-Light.woff2?2d5198822ab091ce430554a436cdf53c");
  21726. /***/ }),
  21727. /***/ "./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-Medium.woff":
  21728. /*!***************************************************************************************!*\
  21729. !*** ./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-Medium.woff ***!
  21730. \***************************************************************************************/
  21731. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  21732. "use strict";
  21733. __webpack_require__.r(__webpack_exports__);
  21734. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  21735. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  21736. /* harmony export */ });
  21737. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ("/fonts/vendor/primevue/resources/themes/tailwind-light/Inter-Medium.woff?9053572c46aeb4b16caafd643a543b8d");
  21738. /***/ }),
  21739. /***/ "./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-Medium.woff2":
  21740. /*!****************************************************************************************!*\
  21741. !*** ./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-Medium.woff2 ***!
  21742. \****************************************************************************************/
  21743. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  21744. "use strict";
  21745. __webpack_require__.r(__webpack_exports__);
  21746. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  21747. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  21748. /* harmony export */ });
  21749. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ("/fonts/vendor/primevue/resources/themes/tailwind-light/Inter-Medium.woff2?293fd13dbca5a3e450ef1ebfb232a299");
  21750. /***/ }),
  21751. /***/ "./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-Regular.woff":
  21752. /*!****************************************************************************************!*\
  21753. !*** ./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-Regular.woff ***!
  21754. \****************************************************************************************/
  21755. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  21756. "use strict";
  21757. __webpack_require__.r(__webpack_exports__);
  21758. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  21759. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  21760. /* harmony export */ });
  21761. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ("/fonts/vendor/primevue/resources/themes/tailwind-light/Inter-Regular.woff?8c206db99195777c67691cbba9d64393");
  21762. /***/ }),
  21763. /***/ "./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-Regular.woff2":
  21764. /*!*****************************************************************************************!*\
  21765. !*** ./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-Regular.woff2 ***!
  21766. \*****************************************************************************************/
  21767. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  21768. "use strict";
  21769. __webpack_require__.r(__webpack_exports__);
  21770. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  21771. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  21772. /* harmony export */ });
  21773. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ("/fonts/vendor/primevue/resources/themes/tailwind-light/Inter-Regular.woff2?c8ba52b05a9ef10f47584d08ece2ec5c");
  21774. /***/ }),
  21775. /***/ "./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-SemiBold.woff":
  21776. /*!*****************************************************************************************!*\
  21777. !*** ./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-SemiBold.woff ***!
  21778. \*****************************************************************************************/
  21779. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  21780. "use strict";
  21781. __webpack_require__.r(__webpack_exports__);
  21782. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  21783. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  21784. /* harmony export */ });
  21785. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ("/fonts/vendor/primevue/resources/themes/tailwind-light/Inter-SemiBold.woff?cca62d21c8c555c392e580a52e0d4426");
  21786. /***/ }),
  21787. /***/ "./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-SemiBold.woff2":
  21788. /*!******************************************************************************************!*\
  21789. !*** ./node_modules/primevue/resources/themes/tailwind-light/fonts/Inter-SemiBold.woff2 ***!
  21790. \******************************************************************************************/
  21791. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  21792. "use strict";
  21793. __webpack_require__.r(__webpack_exports__);
  21794. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  21795. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  21796. /* harmony export */ });
  21797. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ("/fonts/vendor/primevue/resources/themes/tailwind-light/Inter-SemiBold.woff2?b5f0f109bc88052d4000c58ca615671d");
  21798. /***/ }),
  21799. /***/ "./node_modules/function-bind/implementation.js":
  21800. /*!******************************************************!*\
  21801. !*** ./node_modules/function-bind/implementation.js ***!
  21802. \******************************************************/
  21803. /***/ ((module) => {
  21804. "use strict";
  21805. /* eslint no-invalid-this: 1 */
  21806. var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
  21807. var slice = Array.prototype.slice;
  21808. var toStr = Object.prototype.toString;
  21809. var funcType = '[object Function]';
  21810. module.exports = function bind(that) {
  21811. var target = this;
  21812. if (typeof target !== 'function' || toStr.call(target) !== funcType) {
  21813. throw new TypeError(ERROR_MESSAGE + target);
  21814. }
  21815. var args = slice.call(arguments, 1);
  21816. var bound;
  21817. var binder = function () {
  21818. if (this instanceof bound) {
  21819. var result = target.apply(
  21820. this,
  21821. args.concat(slice.call(arguments))
  21822. );
  21823. if (Object(result) === result) {
  21824. return result;
  21825. }
  21826. return this;
  21827. } else {
  21828. return target.apply(
  21829. that,
  21830. args.concat(slice.call(arguments))
  21831. );
  21832. }
  21833. };
  21834. var boundLength = Math.max(0, target.length - args.length);
  21835. var boundArgs = [];
  21836. for (var i = 0; i < boundLength; i++) {
  21837. boundArgs.push('$' + i);
  21838. }
  21839. bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder);
  21840. if (target.prototype) {
  21841. var Empty = function Empty() {};
  21842. Empty.prototype = target.prototype;
  21843. bound.prototype = new Empty();
  21844. Empty.prototype = null;
  21845. }
  21846. return bound;
  21847. };
  21848. /***/ }),
  21849. /***/ "./node_modules/function-bind/index.js":
  21850. /*!*********************************************!*\
  21851. !*** ./node_modules/function-bind/index.js ***!
  21852. \*********************************************/
  21853. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  21854. "use strict";
  21855. var implementation = __webpack_require__(/*! ./implementation */ "./node_modules/function-bind/implementation.js");
  21856. module.exports = Function.prototype.bind || implementation;
  21857. /***/ }),
  21858. /***/ "./node_modules/get-intrinsic/index.js":
  21859. /*!*********************************************!*\
  21860. !*** ./node_modules/get-intrinsic/index.js ***!
  21861. \*********************************************/
  21862. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  21863. "use strict";
  21864. var undefined;
  21865. var $SyntaxError = SyntaxError;
  21866. var $Function = Function;
  21867. var $TypeError = TypeError;
  21868. // eslint-disable-next-line consistent-return
  21869. var getEvalledConstructor = function (expressionSyntax) {
  21870. try {
  21871. return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
  21872. } catch (e) {}
  21873. };
  21874. var $gOPD = Object.getOwnPropertyDescriptor;
  21875. if ($gOPD) {
  21876. try {
  21877. $gOPD({}, '');
  21878. } catch (e) {
  21879. $gOPD = null; // this is IE 8, which has a broken gOPD
  21880. }
  21881. }
  21882. var throwTypeError = function () {
  21883. throw new $TypeError();
  21884. };
  21885. var ThrowTypeError = $gOPD
  21886. ? (function () {
  21887. try {
  21888. // eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
  21889. arguments.callee; // IE 8 does not throw here
  21890. return throwTypeError;
  21891. } catch (calleeThrows) {
  21892. try {
  21893. // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
  21894. return $gOPD(arguments, 'callee').get;
  21895. } catch (gOPDthrows) {
  21896. return throwTypeError;
  21897. }
  21898. }
  21899. }())
  21900. : throwTypeError;
  21901. var hasSymbols = __webpack_require__(/*! has-symbols */ "./node_modules/has-symbols/index.js")();
  21902. var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
  21903. var needsEval = {};
  21904. var TypedArray = typeof Uint8Array === 'undefined' ? undefined : getProto(Uint8Array);
  21905. var INTRINSICS = {
  21906. '%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,
  21907. '%Array%': Array,
  21908. '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,
  21909. '%ArrayIteratorPrototype%': hasSymbols ? getProto([][Symbol.iterator]()) : undefined,
  21910. '%AsyncFromSyncIteratorPrototype%': undefined,
  21911. '%AsyncFunction%': needsEval,
  21912. '%AsyncGenerator%': needsEval,
  21913. '%AsyncGeneratorFunction%': needsEval,
  21914. '%AsyncIteratorPrototype%': needsEval,
  21915. '%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,
  21916. '%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,
  21917. '%Boolean%': Boolean,
  21918. '%DataView%': typeof DataView === 'undefined' ? undefined : DataView,
  21919. '%Date%': Date,
  21920. '%decodeURI%': decodeURI,
  21921. '%decodeURIComponent%': decodeURIComponent,
  21922. '%encodeURI%': encodeURI,
  21923. '%encodeURIComponent%': encodeURIComponent,
  21924. '%Error%': Error,
  21925. '%eval%': eval, // eslint-disable-line no-eval
  21926. '%EvalError%': EvalError,
  21927. '%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,
  21928. '%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,
  21929. '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,
  21930. '%Function%': $Function,
  21931. '%GeneratorFunction%': needsEval,
  21932. '%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,
  21933. '%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,
  21934. '%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,
  21935. '%isFinite%': isFinite,
  21936. '%isNaN%': isNaN,
  21937. '%IteratorPrototype%': hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined,
  21938. '%JSON%': typeof JSON === 'object' ? JSON : undefined,
  21939. '%Map%': typeof Map === 'undefined' ? undefined : Map,
  21940. '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols ? undefined : getProto(new Map()[Symbol.iterator]()),
  21941. '%Math%': Math,
  21942. '%Number%': Number,
  21943. '%Object%': Object,
  21944. '%parseFloat%': parseFloat,
  21945. '%parseInt%': parseInt,
  21946. '%Promise%': typeof Promise === 'undefined' ? undefined : Promise,
  21947. '%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,
  21948. '%RangeError%': RangeError,
  21949. '%ReferenceError%': ReferenceError,
  21950. '%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,
  21951. '%RegExp%': RegExp,
  21952. '%Set%': typeof Set === 'undefined' ? undefined : Set,
  21953. '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols ? undefined : getProto(new Set()[Symbol.iterator]()),
  21954. '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,
  21955. '%String%': String,
  21956. '%StringIteratorPrototype%': hasSymbols ? getProto(''[Symbol.iterator]()) : undefined,
  21957. '%Symbol%': hasSymbols ? Symbol : undefined,
  21958. '%SyntaxError%': $SyntaxError,
  21959. '%ThrowTypeError%': ThrowTypeError,
  21960. '%TypedArray%': TypedArray,
  21961. '%TypeError%': $TypeError,
  21962. '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array,
  21963. '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,
  21964. '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,
  21965. '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,
  21966. '%URIError%': URIError,
  21967. '%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,
  21968. '%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,
  21969. '%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet
  21970. };
  21971. var doEval = function doEval(name) {
  21972. var value;
  21973. if (name === '%AsyncFunction%') {
  21974. value = getEvalledConstructor('async function () {}');
  21975. } else if (name === '%GeneratorFunction%') {
  21976. value = getEvalledConstructor('function* () {}');
  21977. } else if (name === '%AsyncGeneratorFunction%') {
  21978. value = getEvalledConstructor('async function* () {}');
  21979. } else if (name === '%AsyncGenerator%') {
  21980. var fn = doEval('%AsyncGeneratorFunction%');
  21981. if (fn) {
  21982. value = fn.prototype;
  21983. }
  21984. } else if (name === '%AsyncIteratorPrototype%') {
  21985. var gen = doEval('%AsyncGenerator%');
  21986. if (gen) {
  21987. value = getProto(gen.prototype);
  21988. }
  21989. }
  21990. INTRINSICS[name] = value;
  21991. return value;
  21992. };
  21993. var LEGACY_ALIASES = {
  21994. '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
  21995. '%ArrayPrototype%': ['Array', 'prototype'],
  21996. '%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
  21997. '%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
  21998. '%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
  21999. '%ArrayProto_values%': ['Array', 'prototype', 'values'],
  22000. '%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
  22001. '%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
  22002. '%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
  22003. '%BooleanPrototype%': ['Boolean', 'prototype'],
  22004. '%DataViewPrototype%': ['DataView', 'prototype'],
  22005. '%DatePrototype%': ['Date', 'prototype'],
  22006. '%ErrorPrototype%': ['Error', 'prototype'],
  22007. '%EvalErrorPrototype%': ['EvalError', 'prototype'],
  22008. '%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
  22009. '%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
  22010. '%FunctionPrototype%': ['Function', 'prototype'],
  22011. '%Generator%': ['GeneratorFunction', 'prototype'],
  22012. '%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
  22013. '%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
  22014. '%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
  22015. '%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
  22016. '%JSONParse%': ['JSON', 'parse'],
  22017. '%JSONStringify%': ['JSON', 'stringify'],
  22018. '%MapPrototype%': ['Map', 'prototype'],
  22019. '%NumberPrototype%': ['Number', 'prototype'],
  22020. '%ObjectPrototype%': ['Object', 'prototype'],
  22021. '%ObjProto_toString%': ['Object', 'prototype', 'toString'],
  22022. '%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
  22023. '%PromisePrototype%': ['Promise', 'prototype'],
  22024. '%PromiseProto_then%': ['Promise', 'prototype', 'then'],
  22025. '%Promise_all%': ['Promise', 'all'],
  22026. '%Promise_reject%': ['Promise', 'reject'],
  22027. '%Promise_resolve%': ['Promise', 'resolve'],
  22028. '%RangeErrorPrototype%': ['RangeError', 'prototype'],
  22029. '%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
  22030. '%RegExpPrototype%': ['RegExp', 'prototype'],
  22031. '%SetPrototype%': ['Set', 'prototype'],
  22032. '%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
  22033. '%StringPrototype%': ['String', 'prototype'],
  22034. '%SymbolPrototype%': ['Symbol', 'prototype'],
  22035. '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
  22036. '%TypedArrayPrototype%': ['TypedArray', 'prototype'],
  22037. '%TypeErrorPrototype%': ['TypeError', 'prototype'],
  22038. '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
  22039. '%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
  22040. '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
  22041. '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
  22042. '%URIErrorPrototype%': ['URIError', 'prototype'],
  22043. '%WeakMapPrototype%': ['WeakMap', 'prototype'],
  22044. '%WeakSetPrototype%': ['WeakSet', 'prototype']
  22045. };
  22046. var bind = __webpack_require__(/*! function-bind */ "./node_modules/function-bind/index.js");
  22047. var hasOwn = __webpack_require__(/*! has */ "./node_modules/has/src/index.js");
  22048. var $concat = bind.call(Function.call, Array.prototype.concat);
  22049. var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
  22050. var $replace = bind.call(Function.call, String.prototype.replace);
  22051. var $strSlice = bind.call(Function.call, String.prototype.slice);
  22052. /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
  22053. var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
  22054. var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
  22055. var stringToPath = function stringToPath(string) {
  22056. var first = $strSlice(string, 0, 1);
  22057. var last = $strSlice(string, -1);
  22058. if (first === '%' && last !== '%') {
  22059. throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
  22060. } else if (last === '%' && first !== '%') {
  22061. throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
  22062. }
  22063. var result = [];
  22064. $replace(string, rePropName, function (match, number, quote, subString) {
  22065. result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
  22066. });
  22067. return result;
  22068. };
  22069. /* end adaptation */
  22070. var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
  22071. var intrinsicName = name;
  22072. var alias;
  22073. if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
  22074. alias = LEGACY_ALIASES[intrinsicName];
  22075. intrinsicName = '%' + alias[0] + '%';
  22076. }
  22077. if (hasOwn(INTRINSICS, intrinsicName)) {
  22078. var value = INTRINSICS[intrinsicName];
  22079. if (value === needsEval) {
  22080. value = doEval(intrinsicName);
  22081. }
  22082. if (typeof value === 'undefined' && !allowMissing) {
  22083. throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
  22084. }
  22085. return {
  22086. alias: alias,
  22087. name: intrinsicName,
  22088. value: value
  22089. };
  22090. }
  22091. throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
  22092. };
  22093. module.exports = function GetIntrinsic(name, allowMissing) {
  22094. if (typeof name !== 'string' || name.length === 0) {
  22095. throw new $TypeError('intrinsic name must be a non-empty string');
  22096. }
  22097. if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
  22098. throw new $TypeError('"allowMissing" argument must be a boolean');
  22099. }
  22100. var parts = stringToPath(name);
  22101. var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
  22102. var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
  22103. var intrinsicRealName = intrinsic.name;
  22104. var value = intrinsic.value;
  22105. var skipFurtherCaching = false;
  22106. var alias = intrinsic.alias;
  22107. if (alias) {
  22108. intrinsicBaseName = alias[0];
  22109. $spliceApply(parts, $concat([0, 1], alias));
  22110. }
  22111. for (var i = 1, isOwn = true; i < parts.length; i += 1) {
  22112. var part = parts[i];
  22113. var first = $strSlice(part, 0, 1);
  22114. var last = $strSlice(part, -1);
  22115. if (
  22116. (
  22117. (first === '"' || first === "'" || first === '`')
  22118. || (last === '"' || last === "'" || last === '`')
  22119. )
  22120. && first !== last
  22121. ) {
  22122. throw new $SyntaxError('property names with quotes must have matching quotes');
  22123. }
  22124. if (part === 'constructor' || !isOwn) {
  22125. skipFurtherCaching = true;
  22126. }
  22127. intrinsicBaseName += '.' + part;
  22128. intrinsicRealName = '%' + intrinsicBaseName + '%';
  22129. if (hasOwn(INTRINSICS, intrinsicRealName)) {
  22130. value = INTRINSICS[intrinsicRealName];
  22131. } else if (value != null) {
  22132. if (!(part in value)) {
  22133. if (!allowMissing) {
  22134. throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
  22135. }
  22136. return void undefined;
  22137. }
  22138. if ($gOPD && (i + 1) >= parts.length) {
  22139. var desc = $gOPD(value, part);
  22140. isOwn = !!desc;
  22141. // By convention, when a data property is converted to an accessor
  22142. // property to emulate a data property that does not suffer from
  22143. // the override mistake, that accessor's getter is marked with
  22144. // an `originalValue` property. Here, when we detect this, we
  22145. // uphold the illusion by pretending to see that original data
  22146. // property, i.e., returning the value rather than the getter
  22147. // itself.
  22148. if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
  22149. value = desc.get;
  22150. } else {
  22151. value = value[part];
  22152. }
  22153. } else {
  22154. isOwn = hasOwn(value, part);
  22155. value = value[part];
  22156. }
  22157. if (isOwn && !skipFurtherCaching) {
  22158. INTRINSICS[intrinsicRealName] = value;
  22159. }
  22160. }
  22161. }
  22162. return value;
  22163. };
  22164. /***/ }),
  22165. /***/ "./node_modules/has-symbols/index.js":
  22166. /*!*******************************************!*\
  22167. !*** ./node_modules/has-symbols/index.js ***!
  22168. \*******************************************/
  22169. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  22170. "use strict";
  22171. var origSymbol = typeof Symbol !== 'undefined' && Symbol;
  22172. var hasSymbolSham = __webpack_require__(/*! ./shams */ "./node_modules/has-symbols/shams.js");
  22173. module.exports = function hasNativeSymbols() {
  22174. if (typeof origSymbol !== 'function') { return false; }
  22175. if (typeof Symbol !== 'function') { return false; }
  22176. if (typeof origSymbol('foo') !== 'symbol') { return false; }
  22177. if (typeof Symbol('bar') !== 'symbol') { return false; }
  22178. return hasSymbolSham();
  22179. };
  22180. /***/ }),
  22181. /***/ "./node_modules/has-symbols/shams.js":
  22182. /*!*******************************************!*\
  22183. !*** ./node_modules/has-symbols/shams.js ***!
  22184. \*******************************************/
  22185. /***/ ((module) => {
  22186. "use strict";
  22187. /* eslint complexity: [2, 18], max-statements: [2, 33] */
  22188. module.exports = function hasSymbols() {
  22189. if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
  22190. if (typeof Symbol.iterator === 'symbol') { return true; }
  22191. var obj = {};
  22192. var sym = Symbol('test');
  22193. var symObj = Object(sym);
  22194. if (typeof sym === 'string') { return false; }
  22195. if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
  22196. if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
  22197. // temp disabled per https://github.com/ljharb/object.assign/issues/17
  22198. // if (sym instanceof Symbol) { return false; }
  22199. // temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
  22200. // if (!(symObj instanceof Symbol)) { return false; }
  22201. // if (typeof Symbol.prototype.toString !== 'function') { return false; }
  22202. // if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
  22203. var symVal = 42;
  22204. obj[sym] = symVal;
  22205. for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
  22206. if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
  22207. if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
  22208. var syms = Object.getOwnPropertySymbols(obj);
  22209. if (syms.length !== 1 || syms[0] !== sym) { return false; }
  22210. if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
  22211. if (typeof Object.getOwnPropertyDescriptor === 'function') {
  22212. var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
  22213. if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
  22214. }
  22215. return true;
  22216. };
  22217. /***/ }),
  22218. /***/ "./node_modules/has/src/index.js":
  22219. /*!***************************************!*\
  22220. !*** ./node_modules/has/src/index.js ***!
  22221. \***************************************/
  22222. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  22223. "use strict";
  22224. var bind = __webpack_require__(/*! function-bind */ "./node_modules/function-bind/index.js");
  22225. module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty);
  22226. /***/ }),
  22227. /***/ "./node_modules/ieee754/index.js":
  22228. /*!***************************************!*\
  22229. !*** ./node_modules/ieee754/index.js ***!
  22230. \***************************************/
  22231. /***/ ((__unused_webpack_module, exports) => {
  22232. /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
  22233. exports.read = function (buffer, offset, isLE, mLen, nBytes) {
  22234. var e, m
  22235. var eLen = (nBytes * 8) - mLen - 1
  22236. var eMax = (1 << eLen) - 1
  22237. var eBias = eMax >> 1
  22238. var nBits = -7
  22239. var i = isLE ? (nBytes - 1) : 0
  22240. var d = isLE ? -1 : 1
  22241. var s = buffer[offset + i]
  22242. i += d
  22243. e = s & ((1 << (-nBits)) - 1)
  22244. s >>= (-nBits)
  22245. nBits += eLen
  22246. for (; nBits > 0; e = (e * 256) + buffer[offset + i], i += d, nBits -= 8) {}
  22247. m = e & ((1 << (-nBits)) - 1)
  22248. e >>= (-nBits)
  22249. nBits += mLen
  22250. for (; nBits > 0; m = (m * 256) + buffer[offset + i], i += d, nBits -= 8) {}
  22251. if (e === 0) {
  22252. e = 1 - eBias
  22253. } else if (e === eMax) {
  22254. return m ? NaN : ((s ? -1 : 1) * Infinity)
  22255. } else {
  22256. m = m + Math.pow(2, mLen)
  22257. e = e - eBias
  22258. }
  22259. return (s ? -1 : 1) * m * Math.pow(2, e - mLen)
  22260. }
  22261. exports.write = function (buffer, value, offset, isLE, mLen, nBytes) {
  22262. var e, m, c
  22263. var eLen = (nBytes * 8) - mLen - 1
  22264. var eMax = (1 << eLen) - 1
  22265. var eBias = eMax >> 1
  22266. var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)
  22267. var i = isLE ? 0 : (nBytes - 1)
  22268. var d = isLE ? 1 : -1
  22269. var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0
  22270. value = Math.abs(value)
  22271. if (isNaN(value) || value === Infinity) {
  22272. m = isNaN(value) ? 1 : 0
  22273. e = eMax
  22274. } else {
  22275. e = Math.floor(Math.log(value) / Math.LN2)
  22276. if (value * (c = Math.pow(2, -e)) < 1) {
  22277. e--
  22278. c *= 2
  22279. }
  22280. if (e + eBias >= 1) {
  22281. value += rt / c
  22282. } else {
  22283. value += rt * Math.pow(2, 1 - eBias)
  22284. }
  22285. if (value * c >= 2) {
  22286. e++
  22287. c /= 2
  22288. }
  22289. if (e + eBias >= eMax) {
  22290. m = 0
  22291. e = eMax
  22292. } else if (e + eBias >= 1) {
  22293. m = ((value * c) - 1) * Math.pow(2, mLen)
  22294. e = e + eBias
  22295. } else {
  22296. m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)
  22297. e = 0
  22298. }
  22299. }
  22300. for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}
  22301. e = (e << mLen) | m
  22302. eLen += mLen
  22303. for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}
  22304. buffer[offset + i - d] |= s * 128
  22305. }
  22306. /***/ }),
  22307. /***/ "./node_modules/isarray/index.js":
  22308. /*!***************************************!*\
  22309. !*** ./node_modules/isarray/index.js ***!
  22310. \***************************************/
  22311. /***/ ((module) => {
  22312. var toString = {}.toString;
  22313. module.exports = Array.isArray || function (arr) {
  22314. return toString.call(arr) == '[object Array]';
  22315. };
  22316. /***/ }),
  22317. /***/ "./node_modules/lodash.clonedeep/index.js":
  22318. /*!************************************************!*\
  22319. !*** ./node_modules/lodash.clonedeep/index.js ***!
  22320. \************************************************/
  22321. /***/ ((module, exports, __webpack_require__) => {
  22322. /* module decorator */ module = __webpack_require__.nmd(module);
  22323. /**
  22324. * lodash (Custom Build) <https://lodash.com/>
  22325. * Build: `lodash modularize exports="npm" -o ./`
  22326. * Copyright jQuery Foundation and other contributors <https://jquery.org/>
  22327. * Released under MIT license <https://lodash.com/license>
  22328. * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
  22329. * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
  22330. */
  22331. /** Used as the size to enable large array optimizations. */
  22332. var LARGE_ARRAY_SIZE = 200;
  22333. /** Used to stand-in for `undefined` hash values. */
  22334. var HASH_UNDEFINED = '__lodash_hash_undefined__';
  22335. /** Used as references for various `Number` constants. */
  22336. var MAX_SAFE_INTEGER = 9007199254740991;
  22337. /** `Object#toString` result references. */
  22338. var argsTag = '[object Arguments]',
  22339. arrayTag = '[object Array]',
  22340. boolTag = '[object Boolean]',
  22341. dateTag = '[object Date]',
  22342. errorTag = '[object Error]',
  22343. funcTag = '[object Function]',
  22344. genTag = '[object GeneratorFunction]',
  22345. mapTag = '[object Map]',
  22346. numberTag = '[object Number]',
  22347. objectTag = '[object Object]',
  22348. promiseTag = '[object Promise]',
  22349. regexpTag = '[object RegExp]',
  22350. setTag = '[object Set]',
  22351. stringTag = '[object String]',
  22352. symbolTag = '[object Symbol]',
  22353. weakMapTag = '[object WeakMap]';
  22354. var arrayBufferTag = '[object ArrayBuffer]',
  22355. dataViewTag = '[object DataView]',
  22356. float32Tag = '[object Float32Array]',
  22357. float64Tag = '[object Float64Array]',
  22358. int8Tag = '[object Int8Array]',
  22359. int16Tag = '[object Int16Array]',
  22360. int32Tag = '[object Int32Array]',
  22361. uint8Tag = '[object Uint8Array]',
  22362. uint8ClampedTag = '[object Uint8ClampedArray]',
  22363. uint16Tag = '[object Uint16Array]',
  22364. uint32Tag = '[object Uint32Array]';
  22365. /**
  22366. * Used to match `RegExp`
  22367. * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
  22368. */
  22369. var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
  22370. /** Used to match `RegExp` flags from their coerced string values. */
  22371. var reFlags = /\w*$/;
  22372. /** Used to detect host constructors (Safari). */
  22373. var reIsHostCtor = /^\[object .+?Constructor\]$/;
  22374. /** Used to detect unsigned integer values. */
  22375. var reIsUint = /^(?:0|[1-9]\d*)$/;
  22376. /** Used to identify `toStringTag` values supported by `_.clone`. */
  22377. var cloneableTags = {};
  22378. cloneableTags[argsTag] = cloneableTags[arrayTag] =
  22379. cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =
  22380. cloneableTags[boolTag] = cloneableTags[dateTag] =
  22381. cloneableTags[float32Tag] = cloneableTags[float64Tag] =
  22382. cloneableTags[int8Tag] = cloneableTags[int16Tag] =
  22383. cloneableTags[int32Tag] = cloneableTags[mapTag] =
  22384. cloneableTags[numberTag] = cloneableTags[objectTag] =
  22385. cloneableTags[regexpTag] = cloneableTags[setTag] =
  22386. cloneableTags[stringTag] = cloneableTags[symbolTag] =
  22387. cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =
  22388. cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
  22389. cloneableTags[errorTag] = cloneableTags[funcTag] =
  22390. cloneableTags[weakMapTag] = false;
  22391. /** Detect free variable `global` from Node.js. */
  22392. var freeGlobal = typeof __webpack_require__.g == 'object' && __webpack_require__.g && __webpack_require__.g.Object === Object && __webpack_require__.g;
  22393. /** Detect free variable `self`. */
  22394. var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
  22395. /** Used as a reference to the global object. */
  22396. var root = freeGlobal || freeSelf || Function('return this')();
  22397. /** Detect free variable `exports`. */
  22398. var freeExports = true && exports && !exports.nodeType && exports;
  22399. /** Detect free variable `module`. */
  22400. var freeModule = freeExports && "object" == 'object' && module && !module.nodeType && module;
  22401. /** Detect the popular CommonJS extension `module.exports`. */
  22402. var moduleExports = freeModule && freeModule.exports === freeExports;
  22403. /**
  22404. * Adds the key-value `pair` to `map`.
  22405. *
  22406. * @private
  22407. * @param {Object} map The map to modify.
  22408. * @param {Array} pair The key-value pair to add.
  22409. * @returns {Object} Returns `map`.
  22410. */
  22411. function addMapEntry(map, pair) {
  22412. // Don't return `map.set` because it's not chainable in IE 11.
  22413. map.set(pair[0], pair[1]);
  22414. return map;
  22415. }
  22416. /**
  22417. * Adds `value` to `set`.
  22418. *
  22419. * @private
  22420. * @param {Object} set The set to modify.
  22421. * @param {*} value The value to add.
  22422. * @returns {Object} Returns `set`.
  22423. */
  22424. function addSetEntry(set, value) {
  22425. // Don't return `set.add` because it's not chainable in IE 11.
  22426. set.add(value);
  22427. return set;
  22428. }
  22429. /**
  22430. * A specialized version of `_.forEach` for arrays without support for
  22431. * iteratee shorthands.
  22432. *
  22433. * @private
  22434. * @param {Array} [array] The array to iterate over.
  22435. * @param {Function} iteratee The function invoked per iteration.
  22436. * @returns {Array} Returns `array`.
  22437. */
  22438. function arrayEach(array, iteratee) {
  22439. var index = -1,
  22440. length = array ? array.length : 0;
  22441. while (++index < length) {
  22442. if (iteratee(array[index], index, array) === false) {
  22443. break;
  22444. }
  22445. }
  22446. return array;
  22447. }
  22448. /**
  22449. * Appends the elements of `values` to `array`.
  22450. *
  22451. * @private
  22452. * @param {Array} array The array to modify.
  22453. * @param {Array} values The values to append.
  22454. * @returns {Array} Returns `array`.
  22455. */
  22456. function arrayPush(array, values) {
  22457. var index = -1,
  22458. length = values.length,
  22459. offset = array.length;
  22460. while (++index < length) {
  22461. array[offset + index] = values[index];
  22462. }
  22463. return array;
  22464. }
  22465. /**
  22466. * A specialized version of `_.reduce` for arrays without support for
  22467. * iteratee shorthands.
  22468. *
  22469. * @private
  22470. * @param {Array} [array] The array to iterate over.
  22471. * @param {Function} iteratee The function invoked per iteration.
  22472. * @param {*} [accumulator] The initial value.
  22473. * @param {boolean} [initAccum] Specify using the first element of `array` as
  22474. * the initial value.
  22475. * @returns {*} Returns the accumulated value.
  22476. */
  22477. function arrayReduce(array, iteratee, accumulator, initAccum) {
  22478. var index = -1,
  22479. length = array ? array.length : 0;
  22480. if (initAccum && length) {
  22481. accumulator = array[++index];
  22482. }
  22483. while (++index < length) {
  22484. accumulator = iteratee(accumulator, array[index], index, array);
  22485. }
  22486. return accumulator;
  22487. }
  22488. /**
  22489. * The base implementation of `_.times` without support for iteratee shorthands
  22490. * or max array length checks.
  22491. *
  22492. * @private
  22493. * @param {number} n The number of times to invoke `iteratee`.
  22494. * @param {Function} iteratee The function invoked per iteration.
  22495. * @returns {Array} Returns the array of results.
  22496. */
  22497. function baseTimes(n, iteratee) {
  22498. var index = -1,
  22499. result = Array(n);
  22500. while (++index < n) {
  22501. result[index] = iteratee(index);
  22502. }
  22503. return result;
  22504. }
  22505. /**
  22506. * Gets the value at `key` of `object`.
  22507. *
  22508. * @private
  22509. * @param {Object} [object] The object to query.
  22510. * @param {string} key The key of the property to get.
  22511. * @returns {*} Returns the property value.
  22512. */
  22513. function getValue(object, key) {
  22514. return object == null ? undefined : object[key];
  22515. }
  22516. /**
  22517. * Checks if `value` is a host object in IE < 9.
  22518. *
  22519. * @private
  22520. * @param {*} value The value to check.
  22521. * @returns {boolean} Returns `true` if `value` is a host object, else `false`.
  22522. */
  22523. function isHostObject(value) {
  22524. // Many host objects are `Object` objects that can coerce to strings
  22525. // despite having improperly defined `toString` methods.
  22526. var result = false;
  22527. if (value != null && typeof value.toString != 'function') {
  22528. try {
  22529. result = !!(value + '');
  22530. } catch (e) {}
  22531. }
  22532. return result;
  22533. }
  22534. /**
  22535. * Converts `map` to its key-value pairs.
  22536. *
  22537. * @private
  22538. * @param {Object} map The map to convert.
  22539. * @returns {Array} Returns the key-value pairs.
  22540. */
  22541. function mapToArray(map) {
  22542. var index = -1,
  22543. result = Array(map.size);
  22544. map.forEach(function(value, key) {
  22545. result[++index] = [key, value];
  22546. });
  22547. return result;
  22548. }
  22549. /**
  22550. * Creates a unary function that invokes `func` with its argument transformed.
  22551. *
  22552. * @private
  22553. * @param {Function} func The function to wrap.
  22554. * @param {Function} transform The argument transform.
  22555. * @returns {Function} Returns the new function.
  22556. */
  22557. function overArg(func, transform) {
  22558. return function(arg) {
  22559. return func(transform(arg));
  22560. };
  22561. }
  22562. /**
  22563. * Converts `set` to an array of its values.
  22564. *
  22565. * @private
  22566. * @param {Object} set The set to convert.
  22567. * @returns {Array} Returns the values.
  22568. */
  22569. function setToArray(set) {
  22570. var index = -1,
  22571. result = Array(set.size);
  22572. set.forEach(function(value) {
  22573. result[++index] = value;
  22574. });
  22575. return result;
  22576. }
  22577. /** Used for built-in method references. */
  22578. var arrayProto = Array.prototype,
  22579. funcProto = Function.prototype,
  22580. objectProto = Object.prototype;
  22581. /** Used to detect overreaching core-js shims. */
  22582. var coreJsData = root['__core-js_shared__'];
  22583. /** Used to detect methods masquerading as native. */
  22584. var maskSrcKey = (function() {
  22585. var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
  22586. return uid ? ('Symbol(src)_1.' + uid) : '';
  22587. }());
  22588. /** Used to resolve the decompiled source of functions. */
  22589. var funcToString = funcProto.toString;
  22590. /** Used to check objects for own properties. */
  22591. var hasOwnProperty = objectProto.hasOwnProperty;
  22592. /**
  22593. * Used to resolve the
  22594. * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
  22595. * of values.
  22596. */
  22597. var objectToString = objectProto.toString;
  22598. /** Used to detect if a method is native. */
  22599. var reIsNative = RegExp('^' +
  22600. funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
  22601. .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
  22602. );
  22603. /** Built-in value references. */
  22604. var Buffer = moduleExports ? root.Buffer : undefined,
  22605. Symbol = root.Symbol,
  22606. Uint8Array = root.Uint8Array,
  22607. getPrototype = overArg(Object.getPrototypeOf, Object),
  22608. objectCreate = Object.create,
  22609. propertyIsEnumerable = objectProto.propertyIsEnumerable,
  22610. splice = arrayProto.splice;
  22611. /* Built-in method references for those with the same name as other `lodash` methods. */
  22612. var nativeGetSymbols = Object.getOwnPropertySymbols,
  22613. nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined,
  22614. nativeKeys = overArg(Object.keys, Object);
  22615. /* Built-in method references that are verified to be native. */
  22616. var DataView = getNative(root, 'DataView'),
  22617. Map = getNative(root, 'Map'),
  22618. Promise = getNative(root, 'Promise'),
  22619. Set = getNative(root, 'Set'),
  22620. WeakMap = getNative(root, 'WeakMap'),
  22621. nativeCreate = getNative(Object, 'create');
  22622. /** Used to detect maps, sets, and weakmaps. */
  22623. var dataViewCtorString = toSource(DataView),
  22624. mapCtorString = toSource(Map),
  22625. promiseCtorString = toSource(Promise),
  22626. setCtorString = toSource(Set),
  22627. weakMapCtorString = toSource(WeakMap);
  22628. /** Used to convert symbols to primitives and strings. */
  22629. var symbolProto = Symbol ? Symbol.prototype : undefined,
  22630. symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
  22631. /**
  22632. * Creates a hash object.
  22633. *
  22634. * @private
  22635. * @constructor
  22636. * @param {Array} [entries] The key-value pairs to cache.
  22637. */
  22638. function Hash(entries) {
  22639. var index = -1,
  22640. length = entries ? entries.length : 0;
  22641. this.clear();
  22642. while (++index < length) {
  22643. var entry = entries[index];
  22644. this.set(entry[0], entry[1]);
  22645. }
  22646. }
  22647. /**
  22648. * Removes all key-value entries from the hash.
  22649. *
  22650. * @private
  22651. * @name clear
  22652. * @memberOf Hash
  22653. */
  22654. function hashClear() {
  22655. this.__data__ = nativeCreate ? nativeCreate(null) : {};
  22656. }
  22657. /**
  22658. * Removes `key` and its value from the hash.
  22659. *
  22660. * @private
  22661. * @name delete
  22662. * @memberOf Hash
  22663. * @param {Object} hash The hash to modify.
  22664. * @param {string} key The key of the value to remove.
  22665. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  22666. */
  22667. function hashDelete(key) {
  22668. return this.has(key) && delete this.__data__[key];
  22669. }
  22670. /**
  22671. * Gets the hash value for `key`.
  22672. *
  22673. * @private
  22674. * @name get
  22675. * @memberOf Hash
  22676. * @param {string} key The key of the value to get.
  22677. * @returns {*} Returns the entry value.
  22678. */
  22679. function hashGet(key) {
  22680. var data = this.__data__;
  22681. if (nativeCreate) {
  22682. var result = data[key];
  22683. return result === HASH_UNDEFINED ? undefined : result;
  22684. }
  22685. return hasOwnProperty.call(data, key) ? data[key] : undefined;
  22686. }
  22687. /**
  22688. * Checks if a hash value for `key` exists.
  22689. *
  22690. * @private
  22691. * @name has
  22692. * @memberOf Hash
  22693. * @param {string} key The key of the entry to check.
  22694. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  22695. */
  22696. function hashHas(key) {
  22697. var data = this.__data__;
  22698. return nativeCreate ? data[key] !== undefined : hasOwnProperty.call(data, key);
  22699. }
  22700. /**
  22701. * Sets the hash `key` to `value`.
  22702. *
  22703. * @private
  22704. * @name set
  22705. * @memberOf Hash
  22706. * @param {string} key The key of the value to set.
  22707. * @param {*} value The value to set.
  22708. * @returns {Object} Returns the hash instance.
  22709. */
  22710. function hashSet(key, value) {
  22711. var data = this.__data__;
  22712. data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
  22713. return this;
  22714. }
  22715. // Add methods to `Hash`.
  22716. Hash.prototype.clear = hashClear;
  22717. Hash.prototype['delete'] = hashDelete;
  22718. Hash.prototype.get = hashGet;
  22719. Hash.prototype.has = hashHas;
  22720. Hash.prototype.set = hashSet;
  22721. /**
  22722. * Creates an list cache object.
  22723. *
  22724. * @private
  22725. * @constructor
  22726. * @param {Array} [entries] The key-value pairs to cache.
  22727. */
  22728. function ListCache(entries) {
  22729. var index = -1,
  22730. length = entries ? entries.length : 0;
  22731. this.clear();
  22732. while (++index < length) {
  22733. var entry = entries[index];
  22734. this.set(entry[0], entry[1]);
  22735. }
  22736. }
  22737. /**
  22738. * Removes all key-value entries from the list cache.
  22739. *
  22740. * @private
  22741. * @name clear
  22742. * @memberOf ListCache
  22743. */
  22744. function listCacheClear() {
  22745. this.__data__ = [];
  22746. }
  22747. /**
  22748. * Removes `key` and its value from the list cache.
  22749. *
  22750. * @private
  22751. * @name delete
  22752. * @memberOf ListCache
  22753. * @param {string} key The key of the value to remove.
  22754. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  22755. */
  22756. function listCacheDelete(key) {
  22757. var data = this.__data__,
  22758. index = assocIndexOf(data, key);
  22759. if (index < 0) {
  22760. return false;
  22761. }
  22762. var lastIndex = data.length - 1;
  22763. if (index == lastIndex) {
  22764. data.pop();
  22765. } else {
  22766. splice.call(data, index, 1);
  22767. }
  22768. return true;
  22769. }
  22770. /**
  22771. * Gets the list cache value for `key`.
  22772. *
  22773. * @private
  22774. * @name get
  22775. * @memberOf ListCache
  22776. * @param {string} key The key of the value to get.
  22777. * @returns {*} Returns the entry value.
  22778. */
  22779. function listCacheGet(key) {
  22780. var data = this.__data__,
  22781. index = assocIndexOf(data, key);
  22782. return index < 0 ? undefined : data[index][1];
  22783. }
  22784. /**
  22785. * Checks if a list cache value for `key` exists.
  22786. *
  22787. * @private
  22788. * @name has
  22789. * @memberOf ListCache
  22790. * @param {string} key The key of the entry to check.
  22791. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  22792. */
  22793. function listCacheHas(key) {
  22794. return assocIndexOf(this.__data__, key) > -1;
  22795. }
  22796. /**
  22797. * Sets the list cache `key` to `value`.
  22798. *
  22799. * @private
  22800. * @name set
  22801. * @memberOf ListCache
  22802. * @param {string} key The key of the value to set.
  22803. * @param {*} value The value to set.
  22804. * @returns {Object} Returns the list cache instance.
  22805. */
  22806. function listCacheSet(key, value) {
  22807. var data = this.__data__,
  22808. index = assocIndexOf(data, key);
  22809. if (index < 0) {
  22810. data.push([key, value]);
  22811. } else {
  22812. data[index][1] = value;
  22813. }
  22814. return this;
  22815. }
  22816. // Add methods to `ListCache`.
  22817. ListCache.prototype.clear = listCacheClear;
  22818. ListCache.prototype['delete'] = listCacheDelete;
  22819. ListCache.prototype.get = listCacheGet;
  22820. ListCache.prototype.has = listCacheHas;
  22821. ListCache.prototype.set = listCacheSet;
  22822. /**
  22823. * Creates a map cache object to store key-value pairs.
  22824. *
  22825. * @private
  22826. * @constructor
  22827. * @param {Array} [entries] The key-value pairs to cache.
  22828. */
  22829. function MapCache(entries) {
  22830. var index = -1,
  22831. length = entries ? entries.length : 0;
  22832. this.clear();
  22833. while (++index < length) {
  22834. var entry = entries[index];
  22835. this.set(entry[0], entry[1]);
  22836. }
  22837. }
  22838. /**
  22839. * Removes all key-value entries from the map.
  22840. *
  22841. * @private
  22842. * @name clear
  22843. * @memberOf MapCache
  22844. */
  22845. function mapCacheClear() {
  22846. this.__data__ = {
  22847. 'hash': new Hash,
  22848. 'map': new (Map || ListCache),
  22849. 'string': new Hash
  22850. };
  22851. }
  22852. /**
  22853. * Removes `key` and its value from the map.
  22854. *
  22855. * @private
  22856. * @name delete
  22857. * @memberOf MapCache
  22858. * @param {string} key The key of the value to remove.
  22859. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  22860. */
  22861. function mapCacheDelete(key) {
  22862. return getMapData(this, key)['delete'](key);
  22863. }
  22864. /**
  22865. * Gets the map value for `key`.
  22866. *
  22867. * @private
  22868. * @name get
  22869. * @memberOf MapCache
  22870. * @param {string} key The key of the value to get.
  22871. * @returns {*} Returns the entry value.
  22872. */
  22873. function mapCacheGet(key) {
  22874. return getMapData(this, key).get(key);
  22875. }
  22876. /**
  22877. * Checks if a map value for `key` exists.
  22878. *
  22879. * @private
  22880. * @name has
  22881. * @memberOf MapCache
  22882. * @param {string} key The key of the entry to check.
  22883. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  22884. */
  22885. function mapCacheHas(key) {
  22886. return getMapData(this, key).has(key);
  22887. }
  22888. /**
  22889. * Sets the map `key` to `value`.
  22890. *
  22891. * @private
  22892. * @name set
  22893. * @memberOf MapCache
  22894. * @param {string} key The key of the value to set.
  22895. * @param {*} value The value to set.
  22896. * @returns {Object} Returns the map cache instance.
  22897. */
  22898. function mapCacheSet(key, value) {
  22899. getMapData(this, key).set(key, value);
  22900. return this;
  22901. }
  22902. // Add methods to `MapCache`.
  22903. MapCache.prototype.clear = mapCacheClear;
  22904. MapCache.prototype['delete'] = mapCacheDelete;
  22905. MapCache.prototype.get = mapCacheGet;
  22906. MapCache.prototype.has = mapCacheHas;
  22907. MapCache.prototype.set = mapCacheSet;
  22908. /**
  22909. * Creates a stack cache object to store key-value pairs.
  22910. *
  22911. * @private
  22912. * @constructor
  22913. * @param {Array} [entries] The key-value pairs to cache.
  22914. */
  22915. function Stack(entries) {
  22916. this.__data__ = new ListCache(entries);
  22917. }
  22918. /**
  22919. * Removes all key-value entries from the stack.
  22920. *
  22921. * @private
  22922. * @name clear
  22923. * @memberOf Stack
  22924. */
  22925. function stackClear() {
  22926. this.__data__ = new ListCache;
  22927. }
  22928. /**
  22929. * Removes `key` and its value from the stack.
  22930. *
  22931. * @private
  22932. * @name delete
  22933. * @memberOf Stack
  22934. * @param {string} key The key of the value to remove.
  22935. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  22936. */
  22937. function stackDelete(key) {
  22938. return this.__data__['delete'](key);
  22939. }
  22940. /**
  22941. * Gets the stack value for `key`.
  22942. *
  22943. * @private
  22944. * @name get
  22945. * @memberOf Stack
  22946. * @param {string} key The key of the value to get.
  22947. * @returns {*} Returns the entry value.
  22948. */
  22949. function stackGet(key) {
  22950. return this.__data__.get(key);
  22951. }
  22952. /**
  22953. * Checks if a stack value for `key` exists.
  22954. *
  22955. * @private
  22956. * @name has
  22957. * @memberOf Stack
  22958. * @param {string} key The key of the entry to check.
  22959. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  22960. */
  22961. function stackHas(key) {
  22962. return this.__data__.has(key);
  22963. }
  22964. /**
  22965. * Sets the stack `key` to `value`.
  22966. *
  22967. * @private
  22968. * @name set
  22969. * @memberOf Stack
  22970. * @param {string} key The key of the value to set.
  22971. * @param {*} value The value to set.
  22972. * @returns {Object} Returns the stack cache instance.
  22973. */
  22974. function stackSet(key, value) {
  22975. var cache = this.__data__;
  22976. if (cache instanceof ListCache) {
  22977. var pairs = cache.__data__;
  22978. if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
  22979. pairs.push([key, value]);
  22980. return this;
  22981. }
  22982. cache = this.__data__ = new MapCache(pairs);
  22983. }
  22984. cache.set(key, value);
  22985. return this;
  22986. }
  22987. // Add methods to `Stack`.
  22988. Stack.prototype.clear = stackClear;
  22989. Stack.prototype['delete'] = stackDelete;
  22990. Stack.prototype.get = stackGet;
  22991. Stack.prototype.has = stackHas;
  22992. Stack.prototype.set = stackSet;
  22993. /**
  22994. * Creates an array of the enumerable property names of the array-like `value`.
  22995. *
  22996. * @private
  22997. * @param {*} value The value to query.
  22998. * @param {boolean} inherited Specify returning inherited property names.
  22999. * @returns {Array} Returns the array of property names.
  23000. */
  23001. function arrayLikeKeys(value, inherited) {
  23002. // Safari 8.1 makes `arguments.callee` enumerable in strict mode.
  23003. // Safari 9 makes `arguments.length` enumerable in strict mode.
  23004. var result = (isArray(value) || isArguments(value))
  23005. ? baseTimes(value.length, String)
  23006. : [];
  23007. var length = result.length,
  23008. skipIndexes = !!length;
  23009. for (var key in value) {
  23010. if ((inherited || hasOwnProperty.call(value, key)) &&
  23011. !(skipIndexes && (key == 'length' || isIndex(key, length)))) {
  23012. result.push(key);
  23013. }
  23014. }
  23015. return result;
  23016. }
  23017. /**
  23018. * Assigns `value` to `key` of `object` if the existing value is not equivalent
  23019. * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  23020. * for equality comparisons.
  23021. *
  23022. * @private
  23023. * @param {Object} object The object to modify.
  23024. * @param {string} key The key of the property to assign.
  23025. * @param {*} value The value to assign.
  23026. */
  23027. function assignValue(object, key, value) {
  23028. var objValue = object[key];
  23029. if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||
  23030. (value === undefined && !(key in object))) {
  23031. object[key] = value;
  23032. }
  23033. }
  23034. /**
  23035. * Gets the index at which the `key` is found in `array` of key-value pairs.
  23036. *
  23037. * @private
  23038. * @param {Array} array The array to inspect.
  23039. * @param {*} key The key to search for.
  23040. * @returns {number} Returns the index of the matched value, else `-1`.
  23041. */
  23042. function assocIndexOf(array, key) {
  23043. var length = array.length;
  23044. while (length--) {
  23045. if (eq(array[length][0], key)) {
  23046. return length;
  23047. }
  23048. }
  23049. return -1;
  23050. }
  23051. /**
  23052. * The base implementation of `_.assign` without support for multiple sources
  23053. * or `customizer` functions.
  23054. *
  23055. * @private
  23056. * @param {Object} object The destination object.
  23057. * @param {Object} source The source object.
  23058. * @returns {Object} Returns `object`.
  23059. */
  23060. function baseAssign(object, source) {
  23061. return object && copyObject(source, keys(source), object);
  23062. }
  23063. /**
  23064. * The base implementation of `_.clone` and `_.cloneDeep` which tracks
  23065. * traversed objects.
  23066. *
  23067. * @private
  23068. * @param {*} value The value to clone.
  23069. * @param {boolean} [isDeep] Specify a deep clone.
  23070. * @param {boolean} [isFull] Specify a clone including symbols.
  23071. * @param {Function} [customizer] The function to customize cloning.
  23072. * @param {string} [key] The key of `value`.
  23073. * @param {Object} [object] The parent object of `value`.
  23074. * @param {Object} [stack] Tracks traversed objects and their clone counterparts.
  23075. * @returns {*} Returns the cloned value.
  23076. */
  23077. function baseClone(value, isDeep, isFull, customizer, key, object, stack) {
  23078. var result;
  23079. if (customizer) {
  23080. result = object ? customizer(value, key, object, stack) : customizer(value);
  23081. }
  23082. if (result !== undefined) {
  23083. return result;
  23084. }
  23085. if (!isObject(value)) {
  23086. return value;
  23087. }
  23088. var isArr = isArray(value);
  23089. if (isArr) {
  23090. result = initCloneArray(value);
  23091. if (!isDeep) {
  23092. return copyArray(value, result);
  23093. }
  23094. } else {
  23095. var tag = getTag(value),
  23096. isFunc = tag == funcTag || tag == genTag;
  23097. if (isBuffer(value)) {
  23098. return cloneBuffer(value, isDeep);
  23099. }
  23100. if (tag == objectTag || tag == argsTag || (isFunc && !object)) {
  23101. if (isHostObject(value)) {
  23102. return object ? value : {};
  23103. }
  23104. result = initCloneObject(isFunc ? {} : value);
  23105. if (!isDeep) {
  23106. return copySymbols(value, baseAssign(result, value));
  23107. }
  23108. } else {
  23109. if (!cloneableTags[tag]) {
  23110. return object ? value : {};
  23111. }
  23112. result = initCloneByTag(value, tag, baseClone, isDeep);
  23113. }
  23114. }
  23115. // Check for circular references and return its corresponding clone.
  23116. stack || (stack = new Stack);
  23117. var stacked = stack.get(value);
  23118. if (stacked) {
  23119. return stacked;
  23120. }
  23121. stack.set(value, result);
  23122. if (!isArr) {
  23123. var props = isFull ? getAllKeys(value) : keys(value);
  23124. }
  23125. arrayEach(props || value, function(subValue, key) {
  23126. if (props) {
  23127. key = subValue;
  23128. subValue = value[key];
  23129. }
  23130. // Recursively populate clone (susceptible to call stack limits).
  23131. assignValue(result, key, baseClone(subValue, isDeep, isFull, customizer, key, value, stack));
  23132. });
  23133. return result;
  23134. }
  23135. /**
  23136. * The base implementation of `_.create` without support for assigning
  23137. * properties to the created object.
  23138. *
  23139. * @private
  23140. * @param {Object} prototype The object to inherit from.
  23141. * @returns {Object} Returns the new object.
  23142. */
  23143. function baseCreate(proto) {
  23144. return isObject(proto) ? objectCreate(proto) : {};
  23145. }
  23146. /**
  23147. * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
  23148. * `keysFunc` and `symbolsFunc` to get the enumerable property names and
  23149. * symbols of `object`.
  23150. *
  23151. * @private
  23152. * @param {Object} object The object to query.
  23153. * @param {Function} keysFunc The function to get the keys of `object`.
  23154. * @param {Function} symbolsFunc The function to get the symbols of `object`.
  23155. * @returns {Array} Returns the array of property names and symbols.
  23156. */
  23157. function baseGetAllKeys(object, keysFunc, symbolsFunc) {
  23158. var result = keysFunc(object);
  23159. return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
  23160. }
  23161. /**
  23162. * The base implementation of `getTag`.
  23163. *
  23164. * @private
  23165. * @param {*} value The value to query.
  23166. * @returns {string} Returns the `toStringTag`.
  23167. */
  23168. function baseGetTag(value) {
  23169. return objectToString.call(value);
  23170. }
  23171. /**
  23172. * The base implementation of `_.isNative` without bad shim checks.
  23173. *
  23174. * @private
  23175. * @param {*} value The value to check.
  23176. * @returns {boolean} Returns `true` if `value` is a native function,
  23177. * else `false`.
  23178. */
  23179. function baseIsNative(value) {
  23180. if (!isObject(value) || isMasked(value)) {
  23181. return false;
  23182. }
  23183. var pattern = (isFunction(value) || isHostObject(value)) ? reIsNative : reIsHostCtor;
  23184. return pattern.test(toSource(value));
  23185. }
  23186. /**
  23187. * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
  23188. *
  23189. * @private
  23190. * @param {Object} object The object to query.
  23191. * @returns {Array} Returns the array of property names.
  23192. */
  23193. function baseKeys(object) {
  23194. if (!isPrototype(object)) {
  23195. return nativeKeys(object);
  23196. }
  23197. var result = [];
  23198. for (var key in Object(object)) {
  23199. if (hasOwnProperty.call(object, key) && key != 'constructor') {
  23200. result.push(key);
  23201. }
  23202. }
  23203. return result;
  23204. }
  23205. /**
  23206. * Creates a clone of `buffer`.
  23207. *
  23208. * @private
  23209. * @param {Buffer} buffer The buffer to clone.
  23210. * @param {boolean} [isDeep] Specify a deep clone.
  23211. * @returns {Buffer} Returns the cloned buffer.
  23212. */
  23213. function cloneBuffer(buffer, isDeep) {
  23214. if (isDeep) {
  23215. return buffer.slice();
  23216. }
  23217. var result = new buffer.constructor(buffer.length);
  23218. buffer.copy(result);
  23219. return result;
  23220. }
  23221. /**
  23222. * Creates a clone of `arrayBuffer`.
  23223. *
  23224. * @private
  23225. * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
  23226. * @returns {ArrayBuffer} Returns the cloned array buffer.
  23227. */
  23228. function cloneArrayBuffer(arrayBuffer) {
  23229. var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
  23230. new Uint8Array(result).set(new Uint8Array(arrayBuffer));
  23231. return result;
  23232. }
  23233. /**
  23234. * Creates a clone of `dataView`.
  23235. *
  23236. * @private
  23237. * @param {Object} dataView The data view to clone.
  23238. * @param {boolean} [isDeep] Specify a deep clone.
  23239. * @returns {Object} Returns the cloned data view.
  23240. */
  23241. function cloneDataView(dataView, isDeep) {
  23242. var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;
  23243. return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
  23244. }
  23245. /**
  23246. * Creates a clone of `map`.
  23247. *
  23248. * @private
  23249. * @param {Object} map The map to clone.
  23250. * @param {Function} cloneFunc The function to clone values.
  23251. * @param {boolean} [isDeep] Specify a deep clone.
  23252. * @returns {Object} Returns the cloned map.
  23253. */
  23254. function cloneMap(map, isDeep, cloneFunc) {
  23255. var array = isDeep ? cloneFunc(mapToArray(map), true) : mapToArray(map);
  23256. return arrayReduce(array, addMapEntry, new map.constructor);
  23257. }
  23258. /**
  23259. * Creates a clone of `regexp`.
  23260. *
  23261. * @private
  23262. * @param {Object} regexp The regexp to clone.
  23263. * @returns {Object} Returns the cloned regexp.
  23264. */
  23265. function cloneRegExp(regexp) {
  23266. var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
  23267. result.lastIndex = regexp.lastIndex;
  23268. return result;
  23269. }
  23270. /**
  23271. * Creates a clone of `set`.
  23272. *
  23273. * @private
  23274. * @param {Object} set The set to clone.
  23275. * @param {Function} cloneFunc The function to clone values.
  23276. * @param {boolean} [isDeep] Specify a deep clone.
  23277. * @returns {Object} Returns the cloned set.
  23278. */
  23279. function cloneSet(set, isDeep, cloneFunc) {
  23280. var array = isDeep ? cloneFunc(setToArray(set), true) : setToArray(set);
  23281. return arrayReduce(array, addSetEntry, new set.constructor);
  23282. }
  23283. /**
  23284. * Creates a clone of the `symbol` object.
  23285. *
  23286. * @private
  23287. * @param {Object} symbol The symbol object to clone.
  23288. * @returns {Object} Returns the cloned symbol object.
  23289. */
  23290. function cloneSymbol(symbol) {
  23291. return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
  23292. }
  23293. /**
  23294. * Creates a clone of `typedArray`.
  23295. *
  23296. * @private
  23297. * @param {Object} typedArray The typed array to clone.
  23298. * @param {boolean} [isDeep] Specify a deep clone.
  23299. * @returns {Object} Returns the cloned typed array.
  23300. */
  23301. function cloneTypedArray(typedArray, isDeep) {
  23302. var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
  23303. return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
  23304. }
  23305. /**
  23306. * Copies the values of `source` to `array`.
  23307. *
  23308. * @private
  23309. * @param {Array} source The array to copy values from.
  23310. * @param {Array} [array=[]] The array to copy values to.
  23311. * @returns {Array} Returns `array`.
  23312. */
  23313. function copyArray(source, array) {
  23314. var index = -1,
  23315. length = source.length;
  23316. array || (array = Array(length));
  23317. while (++index < length) {
  23318. array[index] = source[index];
  23319. }
  23320. return array;
  23321. }
  23322. /**
  23323. * Copies properties of `source` to `object`.
  23324. *
  23325. * @private
  23326. * @param {Object} source The object to copy properties from.
  23327. * @param {Array} props The property identifiers to copy.
  23328. * @param {Object} [object={}] The object to copy properties to.
  23329. * @param {Function} [customizer] The function to customize copied values.
  23330. * @returns {Object} Returns `object`.
  23331. */
  23332. function copyObject(source, props, object, customizer) {
  23333. object || (object = {});
  23334. var index = -1,
  23335. length = props.length;
  23336. while (++index < length) {
  23337. var key = props[index];
  23338. var newValue = customizer
  23339. ? customizer(object[key], source[key], key, object, source)
  23340. : undefined;
  23341. assignValue(object, key, newValue === undefined ? source[key] : newValue);
  23342. }
  23343. return object;
  23344. }
  23345. /**
  23346. * Copies own symbol properties of `source` to `object`.
  23347. *
  23348. * @private
  23349. * @param {Object} source The object to copy symbols from.
  23350. * @param {Object} [object={}] The object to copy symbols to.
  23351. * @returns {Object} Returns `object`.
  23352. */
  23353. function copySymbols(source, object) {
  23354. return copyObject(source, getSymbols(source), object);
  23355. }
  23356. /**
  23357. * Creates an array of own enumerable property names and symbols of `object`.
  23358. *
  23359. * @private
  23360. * @param {Object} object The object to query.
  23361. * @returns {Array} Returns the array of property names and symbols.
  23362. */
  23363. function getAllKeys(object) {
  23364. return baseGetAllKeys(object, keys, getSymbols);
  23365. }
  23366. /**
  23367. * Gets the data for `map`.
  23368. *
  23369. * @private
  23370. * @param {Object} map The map to query.
  23371. * @param {string} key The reference key.
  23372. * @returns {*} Returns the map data.
  23373. */
  23374. function getMapData(map, key) {
  23375. var data = map.__data__;
  23376. return isKeyable(key)
  23377. ? data[typeof key == 'string' ? 'string' : 'hash']
  23378. : data.map;
  23379. }
  23380. /**
  23381. * Gets the native function at `key` of `object`.
  23382. *
  23383. * @private
  23384. * @param {Object} object The object to query.
  23385. * @param {string} key The key of the method to get.
  23386. * @returns {*} Returns the function if it's native, else `undefined`.
  23387. */
  23388. function getNative(object, key) {
  23389. var value = getValue(object, key);
  23390. return baseIsNative(value) ? value : undefined;
  23391. }
  23392. /**
  23393. * Creates an array of the own enumerable symbol properties of `object`.
  23394. *
  23395. * @private
  23396. * @param {Object} object The object to query.
  23397. * @returns {Array} Returns the array of symbols.
  23398. */
  23399. var getSymbols = nativeGetSymbols ? overArg(nativeGetSymbols, Object) : stubArray;
  23400. /**
  23401. * Gets the `toStringTag` of `value`.
  23402. *
  23403. * @private
  23404. * @param {*} value The value to query.
  23405. * @returns {string} Returns the `toStringTag`.
  23406. */
  23407. var getTag = baseGetTag;
  23408. // Fallback for data views, maps, sets, and weak maps in IE 11,
  23409. // for data views in Edge < 14, and promises in Node.js.
  23410. if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
  23411. (Map && getTag(new Map) != mapTag) ||
  23412. (Promise && getTag(Promise.resolve()) != promiseTag) ||
  23413. (Set && getTag(new Set) != setTag) ||
  23414. (WeakMap && getTag(new WeakMap) != weakMapTag)) {
  23415. getTag = function(value) {
  23416. var result = objectToString.call(value),
  23417. Ctor = result == objectTag ? value.constructor : undefined,
  23418. ctorString = Ctor ? toSource(Ctor) : undefined;
  23419. if (ctorString) {
  23420. switch (ctorString) {
  23421. case dataViewCtorString: return dataViewTag;
  23422. case mapCtorString: return mapTag;
  23423. case promiseCtorString: return promiseTag;
  23424. case setCtorString: return setTag;
  23425. case weakMapCtorString: return weakMapTag;
  23426. }
  23427. }
  23428. return result;
  23429. };
  23430. }
  23431. /**
  23432. * Initializes an array clone.
  23433. *
  23434. * @private
  23435. * @param {Array} array The array to clone.
  23436. * @returns {Array} Returns the initialized clone.
  23437. */
  23438. function initCloneArray(array) {
  23439. var length = array.length,
  23440. result = array.constructor(length);
  23441. // Add properties assigned by `RegExp#exec`.
  23442. if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {
  23443. result.index = array.index;
  23444. result.input = array.input;
  23445. }
  23446. return result;
  23447. }
  23448. /**
  23449. * Initializes an object clone.
  23450. *
  23451. * @private
  23452. * @param {Object} object The object to clone.
  23453. * @returns {Object} Returns the initialized clone.
  23454. */
  23455. function initCloneObject(object) {
  23456. return (typeof object.constructor == 'function' && !isPrototype(object))
  23457. ? baseCreate(getPrototype(object))
  23458. : {};
  23459. }
  23460. /**
  23461. * Initializes an object clone based on its `toStringTag`.
  23462. *
  23463. * **Note:** This function only supports cloning values with tags of
  23464. * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
  23465. *
  23466. * @private
  23467. * @param {Object} object The object to clone.
  23468. * @param {string} tag The `toStringTag` of the object to clone.
  23469. * @param {Function} cloneFunc The function to clone values.
  23470. * @param {boolean} [isDeep] Specify a deep clone.
  23471. * @returns {Object} Returns the initialized clone.
  23472. */
  23473. function initCloneByTag(object, tag, cloneFunc, isDeep) {
  23474. var Ctor = object.constructor;
  23475. switch (tag) {
  23476. case arrayBufferTag:
  23477. return cloneArrayBuffer(object);
  23478. case boolTag:
  23479. case dateTag:
  23480. return new Ctor(+object);
  23481. case dataViewTag:
  23482. return cloneDataView(object, isDeep);
  23483. case float32Tag: case float64Tag:
  23484. case int8Tag: case int16Tag: case int32Tag:
  23485. case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:
  23486. return cloneTypedArray(object, isDeep);
  23487. case mapTag:
  23488. return cloneMap(object, isDeep, cloneFunc);
  23489. case numberTag:
  23490. case stringTag:
  23491. return new Ctor(object);
  23492. case regexpTag:
  23493. return cloneRegExp(object);
  23494. case setTag:
  23495. return cloneSet(object, isDeep, cloneFunc);
  23496. case symbolTag:
  23497. return cloneSymbol(object);
  23498. }
  23499. }
  23500. /**
  23501. * Checks if `value` is a valid array-like index.
  23502. *
  23503. * @private
  23504. * @param {*} value The value to check.
  23505. * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
  23506. * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
  23507. */
  23508. function isIndex(value, length) {
  23509. length = length == null ? MAX_SAFE_INTEGER : length;
  23510. return !!length &&
  23511. (typeof value == 'number' || reIsUint.test(value)) &&
  23512. (value > -1 && value % 1 == 0 && value < length);
  23513. }
  23514. /**
  23515. * Checks if `value` is suitable for use as unique object key.
  23516. *
  23517. * @private
  23518. * @param {*} value The value to check.
  23519. * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
  23520. */
  23521. function isKeyable(value) {
  23522. var type = typeof value;
  23523. return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
  23524. ? (value !== '__proto__')
  23525. : (value === null);
  23526. }
  23527. /**
  23528. * Checks if `func` has its source masked.
  23529. *
  23530. * @private
  23531. * @param {Function} func The function to check.
  23532. * @returns {boolean} Returns `true` if `func` is masked, else `false`.
  23533. */
  23534. function isMasked(func) {
  23535. return !!maskSrcKey && (maskSrcKey in func);
  23536. }
  23537. /**
  23538. * Checks if `value` is likely a prototype object.
  23539. *
  23540. * @private
  23541. * @param {*} value The value to check.
  23542. * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
  23543. */
  23544. function isPrototype(value) {
  23545. var Ctor = value && value.constructor,
  23546. proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
  23547. return value === proto;
  23548. }
  23549. /**
  23550. * Converts `func` to its source code.
  23551. *
  23552. * @private
  23553. * @param {Function} func The function to process.
  23554. * @returns {string} Returns the source code.
  23555. */
  23556. function toSource(func) {
  23557. if (func != null) {
  23558. try {
  23559. return funcToString.call(func);
  23560. } catch (e) {}
  23561. try {
  23562. return (func + '');
  23563. } catch (e) {}
  23564. }
  23565. return '';
  23566. }
  23567. /**
  23568. * This method is like `_.clone` except that it recursively clones `value`.
  23569. *
  23570. * @static
  23571. * @memberOf _
  23572. * @since 1.0.0
  23573. * @category Lang
  23574. * @param {*} value The value to recursively clone.
  23575. * @returns {*} Returns the deep cloned value.
  23576. * @see _.clone
  23577. * @example
  23578. *
  23579. * var objects = [{ 'a': 1 }, { 'b': 2 }];
  23580. *
  23581. * var deep = _.cloneDeep(objects);
  23582. * console.log(deep[0] === objects[0]);
  23583. * // => false
  23584. */
  23585. function cloneDeep(value) {
  23586. return baseClone(value, true, true);
  23587. }
  23588. /**
  23589. * Performs a
  23590. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  23591. * comparison between two values to determine if they are equivalent.
  23592. *
  23593. * @static
  23594. * @memberOf _
  23595. * @since 4.0.0
  23596. * @category Lang
  23597. * @param {*} value The value to compare.
  23598. * @param {*} other The other value to compare.
  23599. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  23600. * @example
  23601. *
  23602. * var object = { 'a': 1 };
  23603. * var other = { 'a': 1 };
  23604. *
  23605. * _.eq(object, object);
  23606. * // => true
  23607. *
  23608. * _.eq(object, other);
  23609. * // => false
  23610. *
  23611. * _.eq('a', 'a');
  23612. * // => true
  23613. *
  23614. * _.eq('a', Object('a'));
  23615. * // => false
  23616. *
  23617. * _.eq(NaN, NaN);
  23618. * // => true
  23619. */
  23620. function eq(value, other) {
  23621. return value === other || (value !== value && other !== other);
  23622. }
  23623. /**
  23624. * Checks if `value` is likely an `arguments` object.
  23625. *
  23626. * @static
  23627. * @memberOf _
  23628. * @since 0.1.0
  23629. * @category Lang
  23630. * @param {*} value The value to check.
  23631. * @returns {boolean} Returns `true` if `value` is an `arguments` object,
  23632. * else `false`.
  23633. * @example
  23634. *
  23635. * _.isArguments(function() { return arguments; }());
  23636. * // => true
  23637. *
  23638. * _.isArguments([1, 2, 3]);
  23639. * // => false
  23640. */
  23641. function isArguments(value) {
  23642. // Safari 8.1 makes `arguments.callee` enumerable in strict mode.
  23643. return isArrayLikeObject(value) && hasOwnProperty.call(value, 'callee') &&
  23644. (!propertyIsEnumerable.call(value, 'callee') || objectToString.call(value) == argsTag);
  23645. }
  23646. /**
  23647. * Checks if `value` is classified as an `Array` object.
  23648. *
  23649. * @static
  23650. * @memberOf _
  23651. * @since 0.1.0
  23652. * @category Lang
  23653. * @param {*} value The value to check.
  23654. * @returns {boolean} Returns `true` if `value` is an array, else `false`.
  23655. * @example
  23656. *
  23657. * _.isArray([1, 2, 3]);
  23658. * // => true
  23659. *
  23660. * _.isArray(document.body.children);
  23661. * // => false
  23662. *
  23663. * _.isArray('abc');
  23664. * // => false
  23665. *
  23666. * _.isArray(_.noop);
  23667. * // => false
  23668. */
  23669. var isArray = Array.isArray;
  23670. /**
  23671. * Checks if `value` is array-like. A value is considered array-like if it's
  23672. * not a function and has a `value.length` that's an integer greater than or
  23673. * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
  23674. *
  23675. * @static
  23676. * @memberOf _
  23677. * @since 4.0.0
  23678. * @category Lang
  23679. * @param {*} value The value to check.
  23680. * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
  23681. * @example
  23682. *
  23683. * _.isArrayLike([1, 2, 3]);
  23684. * // => true
  23685. *
  23686. * _.isArrayLike(document.body.children);
  23687. * // => true
  23688. *
  23689. * _.isArrayLike('abc');
  23690. * // => true
  23691. *
  23692. * _.isArrayLike(_.noop);
  23693. * // => false
  23694. */
  23695. function isArrayLike(value) {
  23696. return value != null && isLength(value.length) && !isFunction(value);
  23697. }
  23698. /**
  23699. * This method is like `_.isArrayLike` except that it also checks if `value`
  23700. * is an object.
  23701. *
  23702. * @static
  23703. * @memberOf _
  23704. * @since 4.0.0
  23705. * @category Lang
  23706. * @param {*} value The value to check.
  23707. * @returns {boolean} Returns `true` if `value` is an array-like object,
  23708. * else `false`.
  23709. * @example
  23710. *
  23711. * _.isArrayLikeObject([1, 2, 3]);
  23712. * // => true
  23713. *
  23714. * _.isArrayLikeObject(document.body.children);
  23715. * // => true
  23716. *
  23717. * _.isArrayLikeObject('abc');
  23718. * // => false
  23719. *
  23720. * _.isArrayLikeObject(_.noop);
  23721. * // => false
  23722. */
  23723. function isArrayLikeObject(value) {
  23724. return isObjectLike(value) && isArrayLike(value);
  23725. }
  23726. /**
  23727. * Checks if `value` is a buffer.
  23728. *
  23729. * @static
  23730. * @memberOf _
  23731. * @since 4.3.0
  23732. * @category Lang
  23733. * @param {*} value The value to check.
  23734. * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
  23735. * @example
  23736. *
  23737. * _.isBuffer(new Buffer(2));
  23738. * // => true
  23739. *
  23740. * _.isBuffer(new Uint8Array(2));
  23741. * // => false
  23742. */
  23743. var isBuffer = nativeIsBuffer || stubFalse;
  23744. /**
  23745. * Checks if `value` is classified as a `Function` object.
  23746. *
  23747. * @static
  23748. * @memberOf _
  23749. * @since 0.1.0
  23750. * @category Lang
  23751. * @param {*} value The value to check.
  23752. * @returns {boolean} Returns `true` if `value` is a function, else `false`.
  23753. * @example
  23754. *
  23755. * _.isFunction(_);
  23756. * // => true
  23757. *
  23758. * _.isFunction(/abc/);
  23759. * // => false
  23760. */
  23761. function isFunction(value) {
  23762. // The use of `Object#toString` avoids issues with the `typeof` operator
  23763. // in Safari 8-9 which returns 'object' for typed array and other constructors.
  23764. var tag = isObject(value) ? objectToString.call(value) : '';
  23765. return tag == funcTag || tag == genTag;
  23766. }
  23767. /**
  23768. * Checks if `value` is a valid array-like length.
  23769. *
  23770. * **Note:** This method is loosely based on
  23771. * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
  23772. *
  23773. * @static
  23774. * @memberOf _
  23775. * @since 4.0.0
  23776. * @category Lang
  23777. * @param {*} value The value to check.
  23778. * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
  23779. * @example
  23780. *
  23781. * _.isLength(3);
  23782. * // => true
  23783. *
  23784. * _.isLength(Number.MIN_VALUE);
  23785. * // => false
  23786. *
  23787. * _.isLength(Infinity);
  23788. * // => false
  23789. *
  23790. * _.isLength('3');
  23791. * // => false
  23792. */
  23793. function isLength(value) {
  23794. return typeof value == 'number' &&
  23795. value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
  23796. }
  23797. /**
  23798. * Checks if `value` is the
  23799. * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
  23800. * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
  23801. *
  23802. * @static
  23803. * @memberOf _
  23804. * @since 0.1.0
  23805. * @category Lang
  23806. * @param {*} value The value to check.
  23807. * @returns {boolean} Returns `true` if `value` is an object, else `false`.
  23808. * @example
  23809. *
  23810. * _.isObject({});
  23811. * // => true
  23812. *
  23813. * _.isObject([1, 2, 3]);
  23814. * // => true
  23815. *
  23816. * _.isObject(_.noop);
  23817. * // => true
  23818. *
  23819. * _.isObject(null);
  23820. * // => false
  23821. */
  23822. function isObject(value) {
  23823. var type = typeof value;
  23824. return !!value && (type == 'object' || type == 'function');
  23825. }
  23826. /**
  23827. * Checks if `value` is object-like. A value is object-like if it's not `null`
  23828. * and has a `typeof` result of "object".
  23829. *
  23830. * @static
  23831. * @memberOf _
  23832. * @since 4.0.0
  23833. * @category Lang
  23834. * @param {*} value The value to check.
  23835. * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
  23836. * @example
  23837. *
  23838. * _.isObjectLike({});
  23839. * // => true
  23840. *
  23841. * _.isObjectLike([1, 2, 3]);
  23842. * // => true
  23843. *
  23844. * _.isObjectLike(_.noop);
  23845. * // => false
  23846. *
  23847. * _.isObjectLike(null);
  23848. * // => false
  23849. */
  23850. function isObjectLike(value) {
  23851. return !!value && typeof value == 'object';
  23852. }
  23853. /**
  23854. * Creates an array of the own enumerable property names of `object`.
  23855. *
  23856. * **Note:** Non-object values are coerced to objects. See the
  23857. * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
  23858. * for more details.
  23859. *
  23860. * @static
  23861. * @since 0.1.0
  23862. * @memberOf _
  23863. * @category Object
  23864. * @param {Object} object The object to query.
  23865. * @returns {Array} Returns the array of property names.
  23866. * @example
  23867. *
  23868. * function Foo() {
  23869. * this.a = 1;
  23870. * this.b = 2;
  23871. * }
  23872. *
  23873. * Foo.prototype.c = 3;
  23874. *
  23875. * _.keys(new Foo);
  23876. * // => ['a', 'b'] (iteration order is not guaranteed)
  23877. *
  23878. * _.keys('hi');
  23879. * // => ['0', '1']
  23880. */
  23881. function keys(object) {
  23882. return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
  23883. }
  23884. /**
  23885. * This method returns a new empty array.
  23886. *
  23887. * @static
  23888. * @memberOf _
  23889. * @since 4.13.0
  23890. * @category Util
  23891. * @returns {Array} Returns the new empty array.
  23892. * @example
  23893. *
  23894. * var arrays = _.times(2, _.stubArray);
  23895. *
  23896. * console.log(arrays);
  23897. * // => [[], []]
  23898. *
  23899. * console.log(arrays[0] === arrays[1]);
  23900. * // => false
  23901. */
  23902. function stubArray() {
  23903. return [];
  23904. }
  23905. /**
  23906. * This method returns `false`.
  23907. *
  23908. * @static
  23909. * @memberOf _
  23910. * @since 4.13.0
  23911. * @category Util
  23912. * @returns {boolean} Returns `false`.
  23913. * @example
  23914. *
  23915. * _.times(2, _.stubFalse);
  23916. * // => [false, false]
  23917. */
  23918. function stubFalse() {
  23919. return false;
  23920. }
  23921. module.exports = cloneDeep;
  23922. /***/ }),
  23923. /***/ "./node_modules/lodash.isequal/index.js":
  23924. /*!**********************************************!*\
  23925. !*** ./node_modules/lodash.isequal/index.js ***!
  23926. \**********************************************/
  23927. /***/ ((module, exports, __webpack_require__) => {
  23928. /* module decorator */ module = __webpack_require__.nmd(module);
  23929. /**
  23930. * Lodash (Custom Build) <https://lodash.com/>
  23931. * Build: `lodash modularize exports="npm" -o ./`
  23932. * Copyright JS Foundation and other contributors <https://js.foundation/>
  23933. * Released under MIT license <https://lodash.com/license>
  23934. * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
  23935. * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
  23936. */
  23937. /** Used as the size to enable large array optimizations. */
  23938. var LARGE_ARRAY_SIZE = 200;
  23939. /** Used to stand-in for `undefined` hash values. */
  23940. var HASH_UNDEFINED = '__lodash_hash_undefined__';
  23941. /** Used to compose bitmasks for value comparisons. */
  23942. var COMPARE_PARTIAL_FLAG = 1,
  23943. COMPARE_UNORDERED_FLAG = 2;
  23944. /** Used as references for various `Number` constants. */
  23945. var MAX_SAFE_INTEGER = 9007199254740991;
  23946. /** `Object#toString` result references. */
  23947. var argsTag = '[object Arguments]',
  23948. arrayTag = '[object Array]',
  23949. asyncTag = '[object AsyncFunction]',
  23950. boolTag = '[object Boolean]',
  23951. dateTag = '[object Date]',
  23952. errorTag = '[object Error]',
  23953. funcTag = '[object Function]',
  23954. genTag = '[object GeneratorFunction]',
  23955. mapTag = '[object Map]',
  23956. numberTag = '[object Number]',
  23957. nullTag = '[object Null]',
  23958. objectTag = '[object Object]',
  23959. promiseTag = '[object Promise]',
  23960. proxyTag = '[object Proxy]',
  23961. regexpTag = '[object RegExp]',
  23962. setTag = '[object Set]',
  23963. stringTag = '[object String]',
  23964. symbolTag = '[object Symbol]',
  23965. undefinedTag = '[object Undefined]',
  23966. weakMapTag = '[object WeakMap]';
  23967. var arrayBufferTag = '[object ArrayBuffer]',
  23968. dataViewTag = '[object DataView]',
  23969. float32Tag = '[object Float32Array]',
  23970. float64Tag = '[object Float64Array]',
  23971. int8Tag = '[object Int8Array]',
  23972. int16Tag = '[object Int16Array]',
  23973. int32Tag = '[object Int32Array]',
  23974. uint8Tag = '[object Uint8Array]',
  23975. uint8ClampedTag = '[object Uint8ClampedArray]',
  23976. uint16Tag = '[object Uint16Array]',
  23977. uint32Tag = '[object Uint32Array]';
  23978. /**
  23979. * Used to match `RegExp`
  23980. * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
  23981. */
  23982. var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
  23983. /** Used to detect host constructors (Safari). */
  23984. var reIsHostCtor = /^\[object .+?Constructor\]$/;
  23985. /** Used to detect unsigned integer values. */
  23986. var reIsUint = /^(?:0|[1-9]\d*)$/;
  23987. /** Used to identify `toStringTag` values of typed arrays. */
  23988. var typedArrayTags = {};
  23989. typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
  23990. typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
  23991. typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
  23992. typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
  23993. typedArrayTags[uint32Tag] = true;
  23994. typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
  23995. typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
  23996. typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =
  23997. typedArrayTags[errorTag] = typedArrayTags[funcTag] =
  23998. typedArrayTags[mapTag] = typedArrayTags[numberTag] =
  23999. typedArrayTags[objectTag] = typedArrayTags[regexpTag] =
  24000. typedArrayTags[setTag] = typedArrayTags[stringTag] =
  24001. typedArrayTags[weakMapTag] = false;
  24002. /** Detect free variable `global` from Node.js. */
  24003. var freeGlobal = typeof __webpack_require__.g == 'object' && __webpack_require__.g && __webpack_require__.g.Object === Object && __webpack_require__.g;
  24004. /** Detect free variable `self`. */
  24005. var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
  24006. /** Used as a reference to the global object. */
  24007. var root = freeGlobal || freeSelf || Function('return this')();
  24008. /** Detect free variable `exports`. */
  24009. var freeExports = true && exports && !exports.nodeType && exports;
  24010. /** Detect free variable `module`. */
  24011. var freeModule = freeExports && "object" == 'object' && module && !module.nodeType && module;
  24012. /** Detect the popular CommonJS extension `module.exports`. */
  24013. var moduleExports = freeModule && freeModule.exports === freeExports;
  24014. /** Detect free variable `process` from Node.js. */
  24015. var freeProcess = moduleExports && freeGlobal.process;
  24016. /** Used to access faster Node.js helpers. */
  24017. var nodeUtil = (function() {
  24018. try {
  24019. return freeProcess && freeProcess.binding && freeProcess.binding('util');
  24020. } catch (e) {}
  24021. }());
  24022. /* Node.js helper references. */
  24023. var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
  24024. /**
  24025. * A specialized version of `_.filter` for arrays without support for
  24026. * iteratee shorthands.
  24027. *
  24028. * @private
  24029. * @param {Array} [array] The array to iterate over.
  24030. * @param {Function} predicate The function invoked per iteration.
  24031. * @returns {Array} Returns the new filtered array.
  24032. */
  24033. function arrayFilter(array, predicate) {
  24034. var index = -1,
  24035. length = array == null ? 0 : array.length,
  24036. resIndex = 0,
  24037. result = [];
  24038. while (++index < length) {
  24039. var value = array[index];
  24040. if (predicate(value, index, array)) {
  24041. result[resIndex++] = value;
  24042. }
  24043. }
  24044. return result;
  24045. }
  24046. /**
  24047. * Appends the elements of `values` to `array`.
  24048. *
  24049. * @private
  24050. * @param {Array} array The array to modify.
  24051. * @param {Array} values The values to append.
  24052. * @returns {Array} Returns `array`.
  24053. */
  24054. function arrayPush(array, values) {
  24055. var index = -1,
  24056. length = values.length,
  24057. offset = array.length;
  24058. while (++index < length) {
  24059. array[offset + index] = values[index];
  24060. }
  24061. return array;
  24062. }
  24063. /**
  24064. * A specialized version of `_.some` for arrays without support for iteratee
  24065. * shorthands.
  24066. *
  24067. * @private
  24068. * @param {Array} [array] The array to iterate over.
  24069. * @param {Function} predicate The function invoked per iteration.
  24070. * @returns {boolean} Returns `true` if any element passes the predicate check,
  24071. * else `false`.
  24072. */
  24073. function arraySome(array, predicate) {
  24074. var index = -1,
  24075. length = array == null ? 0 : array.length;
  24076. while (++index < length) {
  24077. if (predicate(array[index], index, array)) {
  24078. return true;
  24079. }
  24080. }
  24081. return false;
  24082. }
  24083. /**
  24084. * The base implementation of `_.times` without support for iteratee shorthands
  24085. * or max array length checks.
  24086. *
  24087. * @private
  24088. * @param {number} n The number of times to invoke `iteratee`.
  24089. * @param {Function} iteratee The function invoked per iteration.
  24090. * @returns {Array} Returns the array of results.
  24091. */
  24092. function baseTimes(n, iteratee) {
  24093. var index = -1,
  24094. result = Array(n);
  24095. while (++index < n) {
  24096. result[index] = iteratee(index);
  24097. }
  24098. return result;
  24099. }
  24100. /**
  24101. * The base implementation of `_.unary` without support for storing metadata.
  24102. *
  24103. * @private
  24104. * @param {Function} func The function to cap arguments for.
  24105. * @returns {Function} Returns the new capped function.
  24106. */
  24107. function baseUnary(func) {
  24108. return function(value) {
  24109. return func(value);
  24110. };
  24111. }
  24112. /**
  24113. * Checks if a `cache` value for `key` exists.
  24114. *
  24115. * @private
  24116. * @param {Object} cache The cache to query.
  24117. * @param {string} key The key of the entry to check.
  24118. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  24119. */
  24120. function cacheHas(cache, key) {
  24121. return cache.has(key);
  24122. }
  24123. /**
  24124. * Gets the value at `key` of `object`.
  24125. *
  24126. * @private
  24127. * @param {Object} [object] The object to query.
  24128. * @param {string} key The key of the property to get.
  24129. * @returns {*} Returns the property value.
  24130. */
  24131. function getValue(object, key) {
  24132. return object == null ? undefined : object[key];
  24133. }
  24134. /**
  24135. * Converts `map` to its key-value pairs.
  24136. *
  24137. * @private
  24138. * @param {Object} map The map to convert.
  24139. * @returns {Array} Returns the key-value pairs.
  24140. */
  24141. function mapToArray(map) {
  24142. var index = -1,
  24143. result = Array(map.size);
  24144. map.forEach(function(value, key) {
  24145. result[++index] = [key, value];
  24146. });
  24147. return result;
  24148. }
  24149. /**
  24150. * Creates a unary function that invokes `func` with its argument transformed.
  24151. *
  24152. * @private
  24153. * @param {Function} func The function to wrap.
  24154. * @param {Function} transform The argument transform.
  24155. * @returns {Function} Returns the new function.
  24156. */
  24157. function overArg(func, transform) {
  24158. return function(arg) {
  24159. return func(transform(arg));
  24160. };
  24161. }
  24162. /**
  24163. * Converts `set` to an array of its values.
  24164. *
  24165. * @private
  24166. * @param {Object} set The set to convert.
  24167. * @returns {Array} Returns the values.
  24168. */
  24169. function setToArray(set) {
  24170. var index = -1,
  24171. result = Array(set.size);
  24172. set.forEach(function(value) {
  24173. result[++index] = value;
  24174. });
  24175. return result;
  24176. }
  24177. /** Used for built-in method references. */
  24178. var arrayProto = Array.prototype,
  24179. funcProto = Function.prototype,
  24180. objectProto = Object.prototype;
  24181. /** Used to detect overreaching core-js shims. */
  24182. var coreJsData = root['__core-js_shared__'];
  24183. /** Used to resolve the decompiled source of functions. */
  24184. var funcToString = funcProto.toString;
  24185. /** Used to check objects for own properties. */
  24186. var hasOwnProperty = objectProto.hasOwnProperty;
  24187. /** Used to detect methods masquerading as native. */
  24188. var maskSrcKey = (function() {
  24189. var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
  24190. return uid ? ('Symbol(src)_1.' + uid) : '';
  24191. }());
  24192. /**
  24193. * Used to resolve the
  24194. * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
  24195. * of values.
  24196. */
  24197. var nativeObjectToString = objectProto.toString;
  24198. /** Used to detect if a method is native. */
  24199. var reIsNative = RegExp('^' +
  24200. funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
  24201. .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
  24202. );
  24203. /** Built-in value references. */
  24204. var Buffer = moduleExports ? root.Buffer : undefined,
  24205. Symbol = root.Symbol,
  24206. Uint8Array = root.Uint8Array,
  24207. propertyIsEnumerable = objectProto.propertyIsEnumerable,
  24208. splice = arrayProto.splice,
  24209. symToStringTag = Symbol ? Symbol.toStringTag : undefined;
  24210. /* Built-in method references for those with the same name as other `lodash` methods. */
  24211. var nativeGetSymbols = Object.getOwnPropertySymbols,
  24212. nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined,
  24213. nativeKeys = overArg(Object.keys, Object);
  24214. /* Built-in method references that are verified to be native. */
  24215. var DataView = getNative(root, 'DataView'),
  24216. Map = getNative(root, 'Map'),
  24217. Promise = getNative(root, 'Promise'),
  24218. Set = getNative(root, 'Set'),
  24219. WeakMap = getNative(root, 'WeakMap'),
  24220. nativeCreate = getNative(Object, 'create');
  24221. /** Used to detect maps, sets, and weakmaps. */
  24222. var dataViewCtorString = toSource(DataView),
  24223. mapCtorString = toSource(Map),
  24224. promiseCtorString = toSource(Promise),
  24225. setCtorString = toSource(Set),
  24226. weakMapCtorString = toSource(WeakMap);
  24227. /** Used to convert symbols to primitives and strings. */
  24228. var symbolProto = Symbol ? Symbol.prototype : undefined,
  24229. symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
  24230. /**
  24231. * Creates a hash object.
  24232. *
  24233. * @private
  24234. * @constructor
  24235. * @param {Array} [entries] The key-value pairs to cache.
  24236. */
  24237. function Hash(entries) {
  24238. var index = -1,
  24239. length = entries == null ? 0 : entries.length;
  24240. this.clear();
  24241. while (++index < length) {
  24242. var entry = entries[index];
  24243. this.set(entry[0], entry[1]);
  24244. }
  24245. }
  24246. /**
  24247. * Removes all key-value entries from the hash.
  24248. *
  24249. * @private
  24250. * @name clear
  24251. * @memberOf Hash
  24252. */
  24253. function hashClear() {
  24254. this.__data__ = nativeCreate ? nativeCreate(null) : {};
  24255. this.size = 0;
  24256. }
  24257. /**
  24258. * Removes `key` and its value from the hash.
  24259. *
  24260. * @private
  24261. * @name delete
  24262. * @memberOf Hash
  24263. * @param {Object} hash The hash to modify.
  24264. * @param {string} key The key of the value to remove.
  24265. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  24266. */
  24267. function hashDelete(key) {
  24268. var result = this.has(key) && delete this.__data__[key];
  24269. this.size -= result ? 1 : 0;
  24270. return result;
  24271. }
  24272. /**
  24273. * Gets the hash value for `key`.
  24274. *
  24275. * @private
  24276. * @name get
  24277. * @memberOf Hash
  24278. * @param {string} key The key of the value to get.
  24279. * @returns {*} Returns the entry value.
  24280. */
  24281. function hashGet(key) {
  24282. var data = this.__data__;
  24283. if (nativeCreate) {
  24284. var result = data[key];
  24285. return result === HASH_UNDEFINED ? undefined : result;
  24286. }
  24287. return hasOwnProperty.call(data, key) ? data[key] : undefined;
  24288. }
  24289. /**
  24290. * Checks if a hash value for `key` exists.
  24291. *
  24292. * @private
  24293. * @name has
  24294. * @memberOf Hash
  24295. * @param {string} key The key of the entry to check.
  24296. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  24297. */
  24298. function hashHas(key) {
  24299. var data = this.__data__;
  24300. return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
  24301. }
  24302. /**
  24303. * Sets the hash `key` to `value`.
  24304. *
  24305. * @private
  24306. * @name set
  24307. * @memberOf Hash
  24308. * @param {string} key The key of the value to set.
  24309. * @param {*} value The value to set.
  24310. * @returns {Object} Returns the hash instance.
  24311. */
  24312. function hashSet(key, value) {
  24313. var data = this.__data__;
  24314. this.size += this.has(key) ? 0 : 1;
  24315. data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
  24316. return this;
  24317. }
  24318. // Add methods to `Hash`.
  24319. Hash.prototype.clear = hashClear;
  24320. Hash.prototype['delete'] = hashDelete;
  24321. Hash.prototype.get = hashGet;
  24322. Hash.prototype.has = hashHas;
  24323. Hash.prototype.set = hashSet;
  24324. /**
  24325. * Creates an list cache object.
  24326. *
  24327. * @private
  24328. * @constructor
  24329. * @param {Array} [entries] The key-value pairs to cache.
  24330. */
  24331. function ListCache(entries) {
  24332. var index = -1,
  24333. length = entries == null ? 0 : entries.length;
  24334. this.clear();
  24335. while (++index < length) {
  24336. var entry = entries[index];
  24337. this.set(entry[0], entry[1]);
  24338. }
  24339. }
  24340. /**
  24341. * Removes all key-value entries from the list cache.
  24342. *
  24343. * @private
  24344. * @name clear
  24345. * @memberOf ListCache
  24346. */
  24347. function listCacheClear() {
  24348. this.__data__ = [];
  24349. this.size = 0;
  24350. }
  24351. /**
  24352. * Removes `key` and its value from the list cache.
  24353. *
  24354. * @private
  24355. * @name delete
  24356. * @memberOf ListCache
  24357. * @param {string} key The key of the value to remove.
  24358. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  24359. */
  24360. function listCacheDelete(key) {
  24361. var data = this.__data__,
  24362. index = assocIndexOf(data, key);
  24363. if (index < 0) {
  24364. return false;
  24365. }
  24366. var lastIndex = data.length - 1;
  24367. if (index == lastIndex) {
  24368. data.pop();
  24369. } else {
  24370. splice.call(data, index, 1);
  24371. }
  24372. --this.size;
  24373. return true;
  24374. }
  24375. /**
  24376. * Gets the list cache value for `key`.
  24377. *
  24378. * @private
  24379. * @name get
  24380. * @memberOf ListCache
  24381. * @param {string} key The key of the value to get.
  24382. * @returns {*} Returns the entry value.
  24383. */
  24384. function listCacheGet(key) {
  24385. var data = this.__data__,
  24386. index = assocIndexOf(data, key);
  24387. return index < 0 ? undefined : data[index][1];
  24388. }
  24389. /**
  24390. * Checks if a list cache value for `key` exists.
  24391. *
  24392. * @private
  24393. * @name has
  24394. * @memberOf ListCache
  24395. * @param {string} key The key of the entry to check.
  24396. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  24397. */
  24398. function listCacheHas(key) {
  24399. return assocIndexOf(this.__data__, key) > -1;
  24400. }
  24401. /**
  24402. * Sets the list cache `key` to `value`.
  24403. *
  24404. * @private
  24405. * @name set
  24406. * @memberOf ListCache
  24407. * @param {string} key The key of the value to set.
  24408. * @param {*} value The value to set.
  24409. * @returns {Object} Returns the list cache instance.
  24410. */
  24411. function listCacheSet(key, value) {
  24412. var data = this.__data__,
  24413. index = assocIndexOf(data, key);
  24414. if (index < 0) {
  24415. ++this.size;
  24416. data.push([key, value]);
  24417. } else {
  24418. data[index][1] = value;
  24419. }
  24420. return this;
  24421. }
  24422. // Add methods to `ListCache`.
  24423. ListCache.prototype.clear = listCacheClear;
  24424. ListCache.prototype['delete'] = listCacheDelete;
  24425. ListCache.prototype.get = listCacheGet;
  24426. ListCache.prototype.has = listCacheHas;
  24427. ListCache.prototype.set = listCacheSet;
  24428. /**
  24429. * Creates a map cache object to store key-value pairs.
  24430. *
  24431. * @private
  24432. * @constructor
  24433. * @param {Array} [entries] The key-value pairs to cache.
  24434. */
  24435. function MapCache(entries) {
  24436. var index = -1,
  24437. length = entries == null ? 0 : entries.length;
  24438. this.clear();
  24439. while (++index < length) {
  24440. var entry = entries[index];
  24441. this.set(entry[0], entry[1]);
  24442. }
  24443. }
  24444. /**
  24445. * Removes all key-value entries from the map.
  24446. *
  24447. * @private
  24448. * @name clear
  24449. * @memberOf MapCache
  24450. */
  24451. function mapCacheClear() {
  24452. this.size = 0;
  24453. this.__data__ = {
  24454. 'hash': new Hash,
  24455. 'map': new (Map || ListCache),
  24456. 'string': new Hash
  24457. };
  24458. }
  24459. /**
  24460. * Removes `key` and its value from the map.
  24461. *
  24462. * @private
  24463. * @name delete
  24464. * @memberOf MapCache
  24465. * @param {string} key The key of the value to remove.
  24466. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  24467. */
  24468. function mapCacheDelete(key) {
  24469. var result = getMapData(this, key)['delete'](key);
  24470. this.size -= result ? 1 : 0;
  24471. return result;
  24472. }
  24473. /**
  24474. * Gets the map value for `key`.
  24475. *
  24476. * @private
  24477. * @name get
  24478. * @memberOf MapCache
  24479. * @param {string} key The key of the value to get.
  24480. * @returns {*} Returns the entry value.
  24481. */
  24482. function mapCacheGet(key) {
  24483. return getMapData(this, key).get(key);
  24484. }
  24485. /**
  24486. * Checks if a map value for `key` exists.
  24487. *
  24488. * @private
  24489. * @name has
  24490. * @memberOf MapCache
  24491. * @param {string} key The key of the entry to check.
  24492. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  24493. */
  24494. function mapCacheHas(key) {
  24495. return getMapData(this, key).has(key);
  24496. }
  24497. /**
  24498. * Sets the map `key` to `value`.
  24499. *
  24500. * @private
  24501. * @name set
  24502. * @memberOf MapCache
  24503. * @param {string} key The key of the value to set.
  24504. * @param {*} value The value to set.
  24505. * @returns {Object} Returns the map cache instance.
  24506. */
  24507. function mapCacheSet(key, value) {
  24508. var data = getMapData(this, key),
  24509. size = data.size;
  24510. data.set(key, value);
  24511. this.size += data.size == size ? 0 : 1;
  24512. return this;
  24513. }
  24514. // Add methods to `MapCache`.
  24515. MapCache.prototype.clear = mapCacheClear;
  24516. MapCache.prototype['delete'] = mapCacheDelete;
  24517. MapCache.prototype.get = mapCacheGet;
  24518. MapCache.prototype.has = mapCacheHas;
  24519. MapCache.prototype.set = mapCacheSet;
  24520. /**
  24521. *
  24522. * Creates an array cache object to store unique values.
  24523. *
  24524. * @private
  24525. * @constructor
  24526. * @param {Array} [values] The values to cache.
  24527. */
  24528. function SetCache(values) {
  24529. var index = -1,
  24530. length = values == null ? 0 : values.length;
  24531. this.__data__ = new MapCache;
  24532. while (++index < length) {
  24533. this.add(values[index]);
  24534. }
  24535. }
  24536. /**
  24537. * Adds `value` to the array cache.
  24538. *
  24539. * @private
  24540. * @name add
  24541. * @memberOf SetCache
  24542. * @alias push
  24543. * @param {*} value The value to cache.
  24544. * @returns {Object} Returns the cache instance.
  24545. */
  24546. function setCacheAdd(value) {
  24547. this.__data__.set(value, HASH_UNDEFINED);
  24548. return this;
  24549. }
  24550. /**
  24551. * Checks if `value` is in the array cache.
  24552. *
  24553. * @private
  24554. * @name has
  24555. * @memberOf SetCache
  24556. * @param {*} value The value to search for.
  24557. * @returns {number} Returns `true` if `value` is found, else `false`.
  24558. */
  24559. function setCacheHas(value) {
  24560. return this.__data__.has(value);
  24561. }
  24562. // Add methods to `SetCache`.
  24563. SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
  24564. SetCache.prototype.has = setCacheHas;
  24565. /**
  24566. * Creates a stack cache object to store key-value pairs.
  24567. *
  24568. * @private
  24569. * @constructor
  24570. * @param {Array} [entries] The key-value pairs to cache.
  24571. */
  24572. function Stack(entries) {
  24573. var data = this.__data__ = new ListCache(entries);
  24574. this.size = data.size;
  24575. }
  24576. /**
  24577. * Removes all key-value entries from the stack.
  24578. *
  24579. * @private
  24580. * @name clear
  24581. * @memberOf Stack
  24582. */
  24583. function stackClear() {
  24584. this.__data__ = new ListCache;
  24585. this.size = 0;
  24586. }
  24587. /**
  24588. * Removes `key` and its value from the stack.
  24589. *
  24590. * @private
  24591. * @name delete
  24592. * @memberOf Stack
  24593. * @param {string} key The key of the value to remove.
  24594. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  24595. */
  24596. function stackDelete(key) {
  24597. var data = this.__data__,
  24598. result = data['delete'](key);
  24599. this.size = data.size;
  24600. return result;
  24601. }
  24602. /**
  24603. * Gets the stack value for `key`.
  24604. *
  24605. * @private
  24606. * @name get
  24607. * @memberOf Stack
  24608. * @param {string} key The key of the value to get.
  24609. * @returns {*} Returns the entry value.
  24610. */
  24611. function stackGet(key) {
  24612. return this.__data__.get(key);
  24613. }
  24614. /**
  24615. * Checks if a stack value for `key` exists.
  24616. *
  24617. * @private
  24618. * @name has
  24619. * @memberOf Stack
  24620. * @param {string} key The key of the entry to check.
  24621. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  24622. */
  24623. function stackHas(key) {
  24624. return this.__data__.has(key);
  24625. }
  24626. /**
  24627. * Sets the stack `key` to `value`.
  24628. *
  24629. * @private
  24630. * @name set
  24631. * @memberOf Stack
  24632. * @param {string} key The key of the value to set.
  24633. * @param {*} value The value to set.
  24634. * @returns {Object} Returns the stack cache instance.
  24635. */
  24636. function stackSet(key, value) {
  24637. var data = this.__data__;
  24638. if (data instanceof ListCache) {
  24639. var pairs = data.__data__;
  24640. if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
  24641. pairs.push([key, value]);
  24642. this.size = ++data.size;
  24643. return this;
  24644. }
  24645. data = this.__data__ = new MapCache(pairs);
  24646. }
  24647. data.set(key, value);
  24648. this.size = data.size;
  24649. return this;
  24650. }
  24651. // Add methods to `Stack`.
  24652. Stack.prototype.clear = stackClear;
  24653. Stack.prototype['delete'] = stackDelete;
  24654. Stack.prototype.get = stackGet;
  24655. Stack.prototype.has = stackHas;
  24656. Stack.prototype.set = stackSet;
  24657. /**
  24658. * Creates an array of the enumerable property names of the array-like `value`.
  24659. *
  24660. * @private
  24661. * @param {*} value The value to query.
  24662. * @param {boolean} inherited Specify returning inherited property names.
  24663. * @returns {Array} Returns the array of property names.
  24664. */
  24665. function arrayLikeKeys(value, inherited) {
  24666. var isArr = isArray(value),
  24667. isArg = !isArr && isArguments(value),
  24668. isBuff = !isArr && !isArg && isBuffer(value),
  24669. isType = !isArr && !isArg && !isBuff && isTypedArray(value),
  24670. skipIndexes = isArr || isArg || isBuff || isType,
  24671. result = skipIndexes ? baseTimes(value.length, String) : [],
  24672. length = result.length;
  24673. for (var key in value) {
  24674. if ((inherited || hasOwnProperty.call(value, key)) &&
  24675. !(skipIndexes && (
  24676. // Safari 9 has enumerable `arguments.length` in strict mode.
  24677. key == 'length' ||
  24678. // Node.js 0.10 has enumerable non-index properties on buffers.
  24679. (isBuff && (key == 'offset' || key == 'parent')) ||
  24680. // PhantomJS 2 has enumerable non-index properties on typed arrays.
  24681. (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
  24682. // Skip index properties.
  24683. isIndex(key, length)
  24684. ))) {
  24685. result.push(key);
  24686. }
  24687. }
  24688. return result;
  24689. }
  24690. /**
  24691. * Gets the index at which the `key` is found in `array` of key-value pairs.
  24692. *
  24693. * @private
  24694. * @param {Array} array The array to inspect.
  24695. * @param {*} key The key to search for.
  24696. * @returns {number} Returns the index of the matched value, else `-1`.
  24697. */
  24698. function assocIndexOf(array, key) {
  24699. var length = array.length;
  24700. while (length--) {
  24701. if (eq(array[length][0], key)) {
  24702. return length;
  24703. }
  24704. }
  24705. return -1;
  24706. }
  24707. /**
  24708. * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
  24709. * `keysFunc` and `symbolsFunc` to get the enumerable property names and
  24710. * symbols of `object`.
  24711. *
  24712. * @private
  24713. * @param {Object} object The object to query.
  24714. * @param {Function} keysFunc The function to get the keys of `object`.
  24715. * @param {Function} symbolsFunc The function to get the symbols of `object`.
  24716. * @returns {Array} Returns the array of property names and symbols.
  24717. */
  24718. function baseGetAllKeys(object, keysFunc, symbolsFunc) {
  24719. var result = keysFunc(object);
  24720. return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
  24721. }
  24722. /**
  24723. * The base implementation of `getTag` without fallbacks for buggy environments.
  24724. *
  24725. * @private
  24726. * @param {*} value The value to query.
  24727. * @returns {string} Returns the `toStringTag`.
  24728. */
  24729. function baseGetTag(value) {
  24730. if (value == null) {
  24731. return value === undefined ? undefinedTag : nullTag;
  24732. }
  24733. return (symToStringTag && symToStringTag in Object(value))
  24734. ? getRawTag(value)
  24735. : objectToString(value);
  24736. }
  24737. /**
  24738. * The base implementation of `_.isArguments`.
  24739. *
  24740. * @private
  24741. * @param {*} value The value to check.
  24742. * @returns {boolean} Returns `true` if `value` is an `arguments` object,
  24743. */
  24744. function baseIsArguments(value) {
  24745. return isObjectLike(value) && baseGetTag(value) == argsTag;
  24746. }
  24747. /**
  24748. * The base implementation of `_.isEqual` which supports partial comparisons
  24749. * and tracks traversed objects.
  24750. *
  24751. * @private
  24752. * @param {*} value The value to compare.
  24753. * @param {*} other The other value to compare.
  24754. * @param {boolean} bitmask The bitmask flags.
  24755. * 1 - Unordered comparison
  24756. * 2 - Partial comparison
  24757. * @param {Function} [customizer] The function to customize comparisons.
  24758. * @param {Object} [stack] Tracks traversed `value` and `other` objects.
  24759. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  24760. */
  24761. function baseIsEqual(value, other, bitmask, customizer, stack) {
  24762. if (value === other) {
  24763. return true;
  24764. }
  24765. if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {
  24766. return value !== value && other !== other;
  24767. }
  24768. return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
  24769. }
  24770. /**
  24771. * A specialized version of `baseIsEqual` for arrays and objects which performs
  24772. * deep comparisons and tracks traversed objects enabling objects with circular
  24773. * references to be compared.
  24774. *
  24775. * @private
  24776. * @param {Object} object The object to compare.
  24777. * @param {Object} other The other object to compare.
  24778. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  24779. * @param {Function} customizer The function to customize comparisons.
  24780. * @param {Function} equalFunc The function to determine equivalents of values.
  24781. * @param {Object} [stack] Tracks traversed `object` and `other` objects.
  24782. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  24783. */
  24784. function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
  24785. var objIsArr = isArray(object),
  24786. othIsArr = isArray(other),
  24787. objTag = objIsArr ? arrayTag : getTag(object),
  24788. othTag = othIsArr ? arrayTag : getTag(other);
  24789. objTag = objTag == argsTag ? objectTag : objTag;
  24790. othTag = othTag == argsTag ? objectTag : othTag;
  24791. var objIsObj = objTag == objectTag,
  24792. othIsObj = othTag == objectTag,
  24793. isSameTag = objTag == othTag;
  24794. if (isSameTag && isBuffer(object)) {
  24795. if (!isBuffer(other)) {
  24796. return false;
  24797. }
  24798. objIsArr = true;
  24799. objIsObj = false;
  24800. }
  24801. if (isSameTag && !objIsObj) {
  24802. stack || (stack = new Stack);
  24803. return (objIsArr || isTypedArray(object))
  24804. ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)
  24805. : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
  24806. }
  24807. if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
  24808. var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
  24809. othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');
  24810. if (objIsWrapped || othIsWrapped) {
  24811. var objUnwrapped = objIsWrapped ? object.value() : object,
  24812. othUnwrapped = othIsWrapped ? other.value() : other;
  24813. stack || (stack = new Stack);
  24814. return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
  24815. }
  24816. }
  24817. if (!isSameTag) {
  24818. return false;
  24819. }
  24820. stack || (stack = new Stack);
  24821. return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
  24822. }
  24823. /**
  24824. * The base implementation of `_.isNative` without bad shim checks.
  24825. *
  24826. * @private
  24827. * @param {*} value The value to check.
  24828. * @returns {boolean} Returns `true` if `value` is a native function,
  24829. * else `false`.
  24830. */
  24831. function baseIsNative(value) {
  24832. if (!isObject(value) || isMasked(value)) {
  24833. return false;
  24834. }
  24835. var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
  24836. return pattern.test(toSource(value));
  24837. }
  24838. /**
  24839. * The base implementation of `_.isTypedArray` without Node.js optimizations.
  24840. *
  24841. * @private
  24842. * @param {*} value The value to check.
  24843. * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
  24844. */
  24845. function baseIsTypedArray(value) {
  24846. return isObjectLike(value) &&
  24847. isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
  24848. }
  24849. /**
  24850. * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
  24851. *
  24852. * @private
  24853. * @param {Object} object The object to query.
  24854. * @returns {Array} Returns the array of property names.
  24855. */
  24856. function baseKeys(object) {
  24857. if (!isPrototype(object)) {
  24858. return nativeKeys(object);
  24859. }
  24860. var result = [];
  24861. for (var key in Object(object)) {
  24862. if (hasOwnProperty.call(object, key) && key != 'constructor') {
  24863. result.push(key);
  24864. }
  24865. }
  24866. return result;
  24867. }
  24868. /**
  24869. * A specialized version of `baseIsEqualDeep` for arrays with support for
  24870. * partial deep comparisons.
  24871. *
  24872. * @private
  24873. * @param {Array} array The array to compare.
  24874. * @param {Array} other The other array to compare.
  24875. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  24876. * @param {Function} customizer The function to customize comparisons.
  24877. * @param {Function} equalFunc The function to determine equivalents of values.
  24878. * @param {Object} stack Tracks traversed `array` and `other` objects.
  24879. * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
  24880. */
  24881. function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
  24882. var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
  24883. arrLength = array.length,
  24884. othLength = other.length;
  24885. if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
  24886. return false;
  24887. }
  24888. // Assume cyclic values are equal.
  24889. var stacked = stack.get(array);
  24890. if (stacked && stack.get(other)) {
  24891. return stacked == other;
  24892. }
  24893. var index = -1,
  24894. result = true,
  24895. seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;
  24896. stack.set(array, other);
  24897. stack.set(other, array);
  24898. // Ignore non-index properties.
  24899. while (++index < arrLength) {
  24900. var arrValue = array[index],
  24901. othValue = other[index];
  24902. if (customizer) {
  24903. var compared = isPartial
  24904. ? customizer(othValue, arrValue, index, other, array, stack)
  24905. : customizer(arrValue, othValue, index, array, other, stack);
  24906. }
  24907. if (compared !== undefined) {
  24908. if (compared) {
  24909. continue;
  24910. }
  24911. result = false;
  24912. break;
  24913. }
  24914. // Recursively compare arrays (susceptible to call stack limits).
  24915. if (seen) {
  24916. if (!arraySome(other, function(othValue, othIndex) {
  24917. if (!cacheHas(seen, othIndex) &&
  24918. (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
  24919. return seen.push(othIndex);
  24920. }
  24921. })) {
  24922. result = false;
  24923. break;
  24924. }
  24925. } else if (!(
  24926. arrValue === othValue ||
  24927. equalFunc(arrValue, othValue, bitmask, customizer, stack)
  24928. )) {
  24929. result = false;
  24930. break;
  24931. }
  24932. }
  24933. stack['delete'](array);
  24934. stack['delete'](other);
  24935. return result;
  24936. }
  24937. /**
  24938. * A specialized version of `baseIsEqualDeep` for comparing objects of
  24939. * the same `toStringTag`.
  24940. *
  24941. * **Note:** This function only supports comparing values with tags of
  24942. * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
  24943. *
  24944. * @private
  24945. * @param {Object} object The object to compare.
  24946. * @param {Object} other The other object to compare.
  24947. * @param {string} tag The `toStringTag` of the objects to compare.
  24948. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  24949. * @param {Function} customizer The function to customize comparisons.
  24950. * @param {Function} equalFunc The function to determine equivalents of values.
  24951. * @param {Object} stack Tracks traversed `object` and `other` objects.
  24952. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  24953. */
  24954. function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
  24955. switch (tag) {
  24956. case dataViewTag:
  24957. if ((object.byteLength != other.byteLength) ||
  24958. (object.byteOffset != other.byteOffset)) {
  24959. return false;
  24960. }
  24961. object = object.buffer;
  24962. other = other.buffer;
  24963. case arrayBufferTag:
  24964. if ((object.byteLength != other.byteLength) ||
  24965. !equalFunc(new Uint8Array(object), new Uint8Array(other))) {
  24966. return false;
  24967. }
  24968. return true;
  24969. case boolTag:
  24970. case dateTag:
  24971. case numberTag:
  24972. // Coerce booleans to `1` or `0` and dates to milliseconds.
  24973. // Invalid dates are coerced to `NaN`.
  24974. return eq(+object, +other);
  24975. case errorTag:
  24976. return object.name == other.name && object.message == other.message;
  24977. case regexpTag:
  24978. case stringTag:
  24979. // Coerce regexes to strings and treat strings, primitives and objects,
  24980. // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
  24981. // for more details.
  24982. return object == (other + '');
  24983. case mapTag:
  24984. var convert = mapToArray;
  24985. case setTag:
  24986. var isPartial = bitmask & COMPARE_PARTIAL_FLAG;
  24987. convert || (convert = setToArray);
  24988. if (object.size != other.size && !isPartial) {
  24989. return false;
  24990. }
  24991. // Assume cyclic values are equal.
  24992. var stacked = stack.get(object);
  24993. if (stacked) {
  24994. return stacked == other;
  24995. }
  24996. bitmask |= COMPARE_UNORDERED_FLAG;
  24997. // Recursively compare objects (susceptible to call stack limits).
  24998. stack.set(object, other);
  24999. var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
  25000. stack['delete'](object);
  25001. return result;
  25002. case symbolTag:
  25003. if (symbolValueOf) {
  25004. return symbolValueOf.call(object) == symbolValueOf.call(other);
  25005. }
  25006. }
  25007. return false;
  25008. }
  25009. /**
  25010. * A specialized version of `baseIsEqualDeep` for objects with support for
  25011. * partial deep comparisons.
  25012. *
  25013. * @private
  25014. * @param {Object} object The object to compare.
  25015. * @param {Object} other The other object to compare.
  25016. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  25017. * @param {Function} customizer The function to customize comparisons.
  25018. * @param {Function} equalFunc The function to determine equivalents of values.
  25019. * @param {Object} stack Tracks traversed `object` and `other` objects.
  25020. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  25021. */
  25022. function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
  25023. var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
  25024. objProps = getAllKeys(object),
  25025. objLength = objProps.length,
  25026. othProps = getAllKeys(other),
  25027. othLength = othProps.length;
  25028. if (objLength != othLength && !isPartial) {
  25029. return false;
  25030. }
  25031. var index = objLength;
  25032. while (index--) {
  25033. var key = objProps[index];
  25034. if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {
  25035. return false;
  25036. }
  25037. }
  25038. // Assume cyclic values are equal.
  25039. var stacked = stack.get(object);
  25040. if (stacked && stack.get(other)) {
  25041. return stacked == other;
  25042. }
  25043. var result = true;
  25044. stack.set(object, other);
  25045. stack.set(other, object);
  25046. var skipCtor = isPartial;
  25047. while (++index < objLength) {
  25048. key = objProps[index];
  25049. var objValue = object[key],
  25050. othValue = other[key];
  25051. if (customizer) {
  25052. var compared = isPartial
  25053. ? customizer(othValue, objValue, key, other, object, stack)
  25054. : customizer(objValue, othValue, key, object, other, stack);
  25055. }
  25056. // Recursively compare objects (susceptible to call stack limits).
  25057. if (!(compared === undefined
  25058. ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))
  25059. : compared
  25060. )) {
  25061. result = false;
  25062. break;
  25063. }
  25064. skipCtor || (skipCtor = key == 'constructor');
  25065. }
  25066. if (result && !skipCtor) {
  25067. var objCtor = object.constructor,
  25068. othCtor = other.constructor;
  25069. // Non `Object` object instances with different constructors are not equal.
  25070. if (objCtor != othCtor &&
  25071. ('constructor' in object && 'constructor' in other) &&
  25072. !(typeof objCtor == 'function' && objCtor instanceof objCtor &&
  25073. typeof othCtor == 'function' && othCtor instanceof othCtor)) {
  25074. result = false;
  25075. }
  25076. }
  25077. stack['delete'](object);
  25078. stack['delete'](other);
  25079. return result;
  25080. }
  25081. /**
  25082. * Creates an array of own enumerable property names and symbols of `object`.
  25083. *
  25084. * @private
  25085. * @param {Object} object The object to query.
  25086. * @returns {Array} Returns the array of property names and symbols.
  25087. */
  25088. function getAllKeys(object) {
  25089. return baseGetAllKeys(object, keys, getSymbols);
  25090. }
  25091. /**
  25092. * Gets the data for `map`.
  25093. *
  25094. * @private
  25095. * @param {Object} map The map to query.
  25096. * @param {string} key The reference key.
  25097. * @returns {*} Returns the map data.
  25098. */
  25099. function getMapData(map, key) {
  25100. var data = map.__data__;
  25101. return isKeyable(key)
  25102. ? data[typeof key == 'string' ? 'string' : 'hash']
  25103. : data.map;
  25104. }
  25105. /**
  25106. * Gets the native function at `key` of `object`.
  25107. *
  25108. * @private
  25109. * @param {Object} object The object to query.
  25110. * @param {string} key The key of the method to get.
  25111. * @returns {*} Returns the function if it's native, else `undefined`.
  25112. */
  25113. function getNative(object, key) {
  25114. var value = getValue(object, key);
  25115. return baseIsNative(value) ? value : undefined;
  25116. }
  25117. /**
  25118. * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
  25119. *
  25120. * @private
  25121. * @param {*} value The value to query.
  25122. * @returns {string} Returns the raw `toStringTag`.
  25123. */
  25124. function getRawTag(value) {
  25125. var isOwn = hasOwnProperty.call(value, symToStringTag),
  25126. tag = value[symToStringTag];
  25127. try {
  25128. value[symToStringTag] = undefined;
  25129. var unmasked = true;
  25130. } catch (e) {}
  25131. var result = nativeObjectToString.call(value);
  25132. if (unmasked) {
  25133. if (isOwn) {
  25134. value[symToStringTag] = tag;
  25135. } else {
  25136. delete value[symToStringTag];
  25137. }
  25138. }
  25139. return result;
  25140. }
  25141. /**
  25142. * Creates an array of the own enumerable symbols of `object`.
  25143. *
  25144. * @private
  25145. * @param {Object} object The object to query.
  25146. * @returns {Array} Returns the array of symbols.
  25147. */
  25148. var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
  25149. if (object == null) {
  25150. return [];
  25151. }
  25152. object = Object(object);
  25153. return arrayFilter(nativeGetSymbols(object), function(symbol) {
  25154. return propertyIsEnumerable.call(object, symbol);
  25155. });
  25156. };
  25157. /**
  25158. * Gets the `toStringTag` of `value`.
  25159. *
  25160. * @private
  25161. * @param {*} value The value to query.
  25162. * @returns {string} Returns the `toStringTag`.
  25163. */
  25164. var getTag = baseGetTag;
  25165. // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
  25166. if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
  25167. (Map && getTag(new Map) != mapTag) ||
  25168. (Promise && getTag(Promise.resolve()) != promiseTag) ||
  25169. (Set && getTag(new Set) != setTag) ||
  25170. (WeakMap && getTag(new WeakMap) != weakMapTag)) {
  25171. getTag = function(value) {
  25172. var result = baseGetTag(value),
  25173. Ctor = result == objectTag ? value.constructor : undefined,
  25174. ctorString = Ctor ? toSource(Ctor) : '';
  25175. if (ctorString) {
  25176. switch (ctorString) {
  25177. case dataViewCtorString: return dataViewTag;
  25178. case mapCtorString: return mapTag;
  25179. case promiseCtorString: return promiseTag;
  25180. case setCtorString: return setTag;
  25181. case weakMapCtorString: return weakMapTag;
  25182. }
  25183. }
  25184. return result;
  25185. };
  25186. }
  25187. /**
  25188. * Checks if `value` is a valid array-like index.
  25189. *
  25190. * @private
  25191. * @param {*} value The value to check.
  25192. * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
  25193. * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
  25194. */
  25195. function isIndex(value, length) {
  25196. length = length == null ? MAX_SAFE_INTEGER : length;
  25197. return !!length &&
  25198. (typeof value == 'number' || reIsUint.test(value)) &&
  25199. (value > -1 && value % 1 == 0 && value < length);
  25200. }
  25201. /**
  25202. * Checks if `value` is suitable for use as unique object key.
  25203. *
  25204. * @private
  25205. * @param {*} value The value to check.
  25206. * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
  25207. */
  25208. function isKeyable(value) {
  25209. var type = typeof value;
  25210. return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
  25211. ? (value !== '__proto__')
  25212. : (value === null);
  25213. }
  25214. /**
  25215. * Checks if `func` has its source masked.
  25216. *
  25217. * @private
  25218. * @param {Function} func The function to check.
  25219. * @returns {boolean} Returns `true` if `func` is masked, else `false`.
  25220. */
  25221. function isMasked(func) {
  25222. return !!maskSrcKey && (maskSrcKey in func);
  25223. }
  25224. /**
  25225. * Checks if `value` is likely a prototype object.
  25226. *
  25227. * @private
  25228. * @param {*} value The value to check.
  25229. * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
  25230. */
  25231. function isPrototype(value) {
  25232. var Ctor = value && value.constructor,
  25233. proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
  25234. return value === proto;
  25235. }
  25236. /**
  25237. * Converts `value` to a string using `Object.prototype.toString`.
  25238. *
  25239. * @private
  25240. * @param {*} value The value to convert.
  25241. * @returns {string} Returns the converted string.
  25242. */
  25243. function objectToString(value) {
  25244. return nativeObjectToString.call(value);
  25245. }
  25246. /**
  25247. * Converts `func` to its source code.
  25248. *
  25249. * @private
  25250. * @param {Function} func The function to convert.
  25251. * @returns {string} Returns the source code.
  25252. */
  25253. function toSource(func) {
  25254. if (func != null) {
  25255. try {
  25256. return funcToString.call(func);
  25257. } catch (e) {}
  25258. try {
  25259. return (func + '');
  25260. } catch (e) {}
  25261. }
  25262. return '';
  25263. }
  25264. /**
  25265. * Performs a
  25266. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  25267. * comparison between two values to determine if they are equivalent.
  25268. *
  25269. * @static
  25270. * @memberOf _
  25271. * @since 4.0.0
  25272. * @category Lang
  25273. * @param {*} value The value to compare.
  25274. * @param {*} other The other value to compare.
  25275. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  25276. * @example
  25277. *
  25278. * var object = { 'a': 1 };
  25279. * var other = { 'a': 1 };
  25280. *
  25281. * _.eq(object, object);
  25282. * // => true
  25283. *
  25284. * _.eq(object, other);
  25285. * // => false
  25286. *
  25287. * _.eq('a', 'a');
  25288. * // => true
  25289. *
  25290. * _.eq('a', Object('a'));
  25291. * // => false
  25292. *
  25293. * _.eq(NaN, NaN);
  25294. * // => true
  25295. */
  25296. function eq(value, other) {
  25297. return value === other || (value !== value && other !== other);
  25298. }
  25299. /**
  25300. * Checks if `value` is likely an `arguments` object.
  25301. *
  25302. * @static
  25303. * @memberOf _
  25304. * @since 0.1.0
  25305. * @category Lang
  25306. * @param {*} value The value to check.
  25307. * @returns {boolean} Returns `true` if `value` is an `arguments` object,
  25308. * else `false`.
  25309. * @example
  25310. *
  25311. * _.isArguments(function() { return arguments; }());
  25312. * // => true
  25313. *
  25314. * _.isArguments([1, 2, 3]);
  25315. * // => false
  25316. */
  25317. var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
  25318. return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&
  25319. !propertyIsEnumerable.call(value, 'callee');
  25320. };
  25321. /**
  25322. * Checks if `value` is classified as an `Array` object.
  25323. *
  25324. * @static
  25325. * @memberOf _
  25326. * @since 0.1.0
  25327. * @category Lang
  25328. * @param {*} value The value to check.
  25329. * @returns {boolean} Returns `true` if `value` is an array, else `false`.
  25330. * @example
  25331. *
  25332. * _.isArray([1, 2, 3]);
  25333. * // => true
  25334. *
  25335. * _.isArray(document.body.children);
  25336. * // => false
  25337. *
  25338. * _.isArray('abc');
  25339. * // => false
  25340. *
  25341. * _.isArray(_.noop);
  25342. * // => false
  25343. */
  25344. var isArray = Array.isArray;
  25345. /**
  25346. * Checks if `value` is array-like. A value is considered array-like if it's
  25347. * not a function and has a `value.length` that's an integer greater than or
  25348. * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
  25349. *
  25350. * @static
  25351. * @memberOf _
  25352. * @since 4.0.0
  25353. * @category Lang
  25354. * @param {*} value The value to check.
  25355. * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
  25356. * @example
  25357. *
  25358. * _.isArrayLike([1, 2, 3]);
  25359. * // => true
  25360. *
  25361. * _.isArrayLike(document.body.children);
  25362. * // => true
  25363. *
  25364. * _.isArrayLike('abc');
  25365. * // => true
  25366. *
  25367. * _.isArrayLike(_.noop);
  25368. * // => false
  25369. */
  25370. function isArrayLike(value) {
  25371. return value != null && isLength(value.length) && !isFunction(value);
  25372. }
  25373. /**
  25374. * Checks if `value` is a buffer.
  25375. *
  25376. * @static
  25377. * @memberOf _
  25378. * @since 4.3.0
  25379. * @category Lang
  25380. * @param {*} value The value to check.
  25381. * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
  25382. * @example
  25383. *
  25384. * _.isBuffer(new Buffer(2));
  25385. * // => true
  25386. *
  25387. * _.isBuffer(new Uint8Array(2));
  25388. * // => false
  25389. */
  25390. var isBuffer = nativeIsBuffer || stubFalse;
  25391. /**
  25392. * Performs a deep comparison between two values to determine if they are
  25393. * equivalent.
  25394. *
  25395. * **Note:** This method supports comparing arrays, array buffers, booleans,
  25396. * date objects, error objects, maps, numbers, `Object` objects, regexes,
  25397. * sets, strings, symbols, and typed arrays. `Object` objects are compared
  25398. * by their own, not inherited, enumerable properties. Functions and DOM
  25399. * nodes are compared by strict equality, i.e. `===`.
  25400. *
  25401. * @static
  25402. * @memberOf _
  25403. * @since 0.1.0
  25404. * @category Lang
  25405. * @param {*} value The value to compare.
  25406. * @param {*} other The other value to compare.
  25407. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  25408. * @example
  25409. *
  25410. * var object = { 'a': 1 };
  25411. * var other = { 'a': 1 };
  25412. *
  25413. * _.isEqual(object, other);
  25414. * // => true
  25415. *
  25416. * object === other;
  25417. * // => false
  25418. */
  25419. function isEqual(value, other) {
  25420. return baseIsEqual(value, other);
  25421. }
  25422. /**
  25423. * Checks if `value` is classified as a `Function` object.
  25424. *
  25425. * @static
  25426. * @memberOf _
  25427. * @since 0.1.0
  25428. * @category Lang
  25429. * @param {*} value The value to check.
  25430. * @returns {boolean} Returns `true` if `value` is a function, else `false`.
  25431. * @example
  25432. *
  25433. * _.isFunction(_);
  25434. * // => true
  25435. *
  25436. * _.isFunction(/abc/);
  25437. * // => false
  25438. */
  25439. function isFunction(value) {
  25440. if (!isObject(value)) {
  25441. return false;
  25442. }
  25443. // The use of `Object#toString` avoids issues with the `typeof` operator
  25444. // in Safari 9 which returns 'object' for typed arrays and other constructors.
  25445. var tag = baseGetTag(value);
  25446. return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
  25447. }
  25448. /**
  25449. * Checks if `value` is a valid array-like length.
  25450. *
  25451. * **Note:** This method is loosely based on
  25452. * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
  25453. *
  25454. * @static
  25455. * @memberOf _
  25456. * @since 4.0.0
  25457. * @category Lang
  25458. * @param {*} value The value to check.
  25459. * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
  25460. * @example
  25461. *
  25462. * _.isLength(3);
  25463. * // => true
  25464. *
  25465. * _.isLength(Number.MIN_VALUE);
  25466. * // => false
  25467. *
  25468. * _.isLength(Infinity);
  25469. * // => false
  25470. *
  25471. * _.isLength('3');
  25472. * // => false
  25473. */
  25474. function isLength(value) {
  25475. return typeof value == 'number' &&
  25476. value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
  25477. }
  25478. /**
  25479. * Checks if `value` is the
  25480. * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
  25481. * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
  25482. *
  25483. * @static
  25484. * @memberOf _
  25485. * @since 0.1.0
  25486. * @category Lang
  25487. * @param {*} value The value to check.
  25488. * @returns {boolean} Returns `true` if `value` is an object, else `false`.
  25489. * @example
  25490. *
  25491. * _.isObject({});
  25492. * // => true
  25493. *
  25494. * _.isObject([1, 2, 3]);
  25495. * // => true
  25496. *
  25497. * _.isObject(_.noop);
  25498. * // => true
  25499. *
  25500. * _.isObject(null);
  25501. * // => false
  25502. */
  25503. function isObject(value) {
  25504. var type = typeof value;
  25505. return value != null && (type == 'object' || type == 'function');
  25506. }
  25507. /**
  25508. * Checks if `value` is object-like. A value is object-like if it's not `null`
  25509. * and has a `typeof` result of "object".
  25510. *
  25511. * @static
  25512. * @memberOf _
  25513. * @since 4.0.0
  25514. * @category Lang
  25515. * @param {*} value The value to check.
  25516. * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
  25517. * @example
  25518. *
  25519. * _.isObjectLike({});
  25520. * // => true
  25521. *
  25522. * _.isObjectLike([1, 2, 3]);
  25523. * // => true
  25524. *
  25525. * _.isObjectLike(_.noop);
  25526. * // => false
  25527. *
  25528. * _.isObjectLike(null);
  25529. * // => false
  25530. */
  25531. function isObjectLike(value) {
  25532. return value != null && typeof value == 'object';
  25533. }
  25534. /**
  25535. * Checks if `value` is classified as a typed array.
  25536. *
  25537. * @static
  25538. * @memberOf _
  25539. * @since 3.0.0
  25540. * @category Lang
  25541. * @param {*} value The value to check.
  25542. * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
  25543. * @example
  25544. *
  25545. * _.isTypedArray(new Uint8Array);
  25546. * // => true
  25547. *
  25548. * _.isTypedArray([]);
  25549. * // => false
  25550. */
  25551. var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
  25552. /**
  25553. * Creates an array of the own enumerable property names of `object`.
  25554. *
  25555. * **Note:** Non-object values are coerced to objects. See the
  25556. * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
  25557. * for more details.
  25558. *
  25559. * @static
  25560. * @since 0.1.0
  25561. * @memberOf _
  25562. * @category Object
  25563. * @param {Object} object The object to query.
  25564. * @returns {Array} Returns the array of property names.
  25565. * @example
  25566. *
  25567. * function Foo() {
  25568. * this.a = 1;
  25569. * this.b = 2;
  25570. * }
  25571. *
  25572. * Foo.prototype.c = 3;
  25573. *
  25574. * _.keys(new Foo);
  25575. * // => ['a', 'b'] (iteration order is not guaranteed)
  25576. *
  25577. * _.keys('hi');
  25578. * // => ['0', '1']
  25579. */
  25580. function keys(object) {
  25581. return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
  25582. }
  25583. /**
  25584. * This method returns a new empty array.
  25585. *
  25586. * @static
  25587. * @memberOf _
  25588. * @since 4.13.0
  25589. * @category Util
  25590. * @returns {Array} Returns the new empty array.
  25591. * @example
  25592. *
  25593. * var arrays = _.times(2, _.stubArray);
  25594. *
  25595. * console.log(arrays);
  25596. * // => [[], []]
  25597. *
  25598. * console.log(arrays[0] === arrays[1]);
  25599. * // => false
  25600. */
  25601. function stubArray() {
  25602. return [];
  25603. }
  25604. /**
  25605. * This method returns `false`.
  25606. *
  25607. * @static
  25608. * @memberOf _
  25609. * @since 4.13.0
  25610. * @category Util
  25611. * @returns {boolean} Returns `false`.
  25612. * @example
  25613. *
  25614. * _.times(2, _.stubFalse);
  25615. * // => [false, false]
  25616. */
  25617. function stubFalse() {
  25618. return false;
  25619. }
  25620. module.exports = isEqual;
  25621. /***/ }),
  25622. /***/ "./node_modules/nprogress/nprogress.js":
  25623. /*!*********************************************!*\
  25624. !*** ./node_modules/nprogress/nprogress.js ***!
  25625. \*********************************************/
  25626. /***/ (function(module, exports, __webpack_require__) {
  25627. var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
  25628. * @license MIT */
  25629. ;(function(root, factory) {
  25630. if (true) {
  25631. !(__WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
  25632. __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
  25633. (__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) :
  25634. __WEBPACK_AMD_DEFINE_FACTORY__),
  25635. __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
  25636. } else {}
  25637. })(this, function() {
  25638. var NProgress = {};
  25639. NProgress.version = '0.2.0';
  25640. var Settings = NProgress.settings = {
  25641. minimum: 0.08,
  25642. easing: 'ease',
  25643. positionUsing: '',
  25644. speed: 200,
  25645. trickle: true,
  25646. trickleRate: 0.02,
  25647. trickleSpeed: 800,
  25648. showSpinner: true,
  25649. barSelector: '[role="bar"]',
  25650. spinnerSelector: '[role="spinner"]',
  25651. parent: 'body',
  25652. template: '<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'
  25653. };
  25654. /**
  25655. * Updates configuration.
  25656. *
  25657. * NProgress.configure({
  25658. * minimum: 0.1
  25659. * });
  25660. */
  25661. NProgress.configure = function(options) {
  25662. var key, value;
  25663. for (key in options) {
  25664. value = options[key];
  25665. if (value !== undefined && options.hasOwnProperty(key)) Settings[key] = value;
  25666. }
  25667. return this;
  25668. };
  25669. /**
  25670. * Last number.
  25671. */
  25672. NProgress.status = null;
  25673. /**
  25674. * Sets the progress bar status, where `n` is a number from `0.0` to `1.0`.
  25675. *
  25676. * NProgress.set(0.4);
  25677. * NProgress.set(1.0);
  25678. */
  25679. NProgress.set = function(n) {
  25680. var started = NProgress.isStarted();
  25681. n = clamp(n, Settings.minimum, 1);
  25682. NProgress.status = (n === 1 ? null : n);
  25683. var progress = NProgress.render(!started),
  25684. bar = progress.querySelector(Settings.barSelector),
  25685. speed = Settings.speed,
  25686. ease = Settings.easing;
  25687. progress.offsetWidth; /* Repaint */
  25688. queue(function(next) {
  25689. // Set positionUsing if it hasn't already been set
  25690. if (Settings.positionUsing === '') Settings.positionUsing = NProgress.getPositioningCSS();
  25691. // Add transition
  25692. css(bar, barPositionCSS(n, speed, ease));
  25693. if (n === 1) {
  25694. // Fade out
  25695. css(progress, {
  25696. transition: 'none',
  25697. opacity: 1
  25698. });
  25699. progress.offsetWidth; /* Repaint */
  25700. setTimeout(function() {
  25701. css(progress, {
  25702. transition: 'all ' + speed + 'ms linear',
  25703. opacity: 0
  25704. });
  25705. setTimeout(function() {
  25706. NProgress.remove();
  25707. next();
  25708. }, speed);
  25709. }, speed);
  25710. } else {
  25711. setTimeout(next, speed);
  25712. }
  25713. });
  25714. return this;
  25715. };
  25716. NProgress.isStarted = function() {
  25717. return typeof NProgress.status === 'number';
  25718. };
  25719. /**
  25720. * Shows the progress bar.
  25721. * This is the same as setting the status to 0%, except that it doesn't go backwards.
  25722. *
  25723. * NProgress.start();
  25724. *
  25725. */
  25726. NProgress.start = function() {
  25727. if (!NProgress.status) NProgress.set(0);
  25728. var work = function() {
  25729. setTimeout(function() {
  25730. if (!NProgress.status) return;
  25731. NProgress.trickle();
  25732. work();
  25733. }, Settings.trickleSpeed);
  25734. };
  25735. if (Settings.trickle) work();
  25736. return this;
  25737. };
  25738. /**
  25739. * Hides the progress bar.
  25740. * This is the *sort of* the same as setting the status to 100%, with the
  25741. * difference being `done()` makes some placebo effect of some realistic motion.
  25742. *
  25743. * NProgress.done();
  25744. *
  25745. * If `true` is passed, it will show the progress bar even if its hidden.
  25746. *
  25747. * NProgress.done(true);
  25748. */
  25749. NProgress.done = function(force) {
  25750. if (!force && !NProgress.status) return this;
  25751. return NProgress.inc(0.3 + 0.5 * Math.random()).set(1);
  25752. };
  25753. /**
  25754. * Increments by a random amount.
  25755. */
  25756. NProgress.inc = function(amount) {
  25757. var n = NProgress.status;
  25758. if (!n) {
  25759. return NProgress.start();
  25760. } else {
  25761. if (typeof amount !== 'number') {
  25762. amount = (1 - n) * clamp(Math.random() * n, 0.1, 0.95);
  25763. }
  25764. n = clamp(n + amount, 0, 0.994);
  25765. return NProgress.set(n);
  25766. }
  25767. };
  25768. NProgress.trickle = function() {
  25769. return NProgress.inc(Math.random() * Settings.trickleRate);
  25770. };
  25771. /**
  25772. * Waits for all supplied jQuery promises and
  25773. * increases the progress as the promises resolve.
  25774. *
  25775. * @param $promise jQUery Promise
  25776. */
  25777. (function() {
  25778. var initial = 0, current = 0;
  25779. NProgress.promise = function($promise) {
  25780. if (!$promise || $promise.state() === "resolved") {
  25781. return this;
  25782. }
  25783. if (current === 0) {
  25784. NProgress.start();
  25785. }
  25786. initial++;
  25787. current++;
  25788. $promise.always(function() {
  25789. current--;
  25790. if (current === 0) {
  25791. initial = 0;
  25792. NProgress.done();
  25793. } else {
  25794. NProgress.set((initial - current) / initial);
  25795. }
  25796. });
  25797. return this;
  25798. };
  25799. })();
  25800. /**
  25801. * (Internal) renders the progress bar markup based on the `template`
  25802. * setting.
  25803. */
  25804. NProgress.render = function(fromStart) {
  25805. if (NProgress.isRendered()) return document.getElementById('nprogress');
  25806. addClass(document.documentElement, 'nprogress-busy');
  25807. var progress = document.createElement('div');
  25808. progress.id = 'nprogress';
  25809. progress.innerHTML = Settings.template;
  25810. var bar = progress.querySelector(Settings.barSelector),
  25811. perc = fromStart ? '-100' : toBarPerc(NProgress.status || 0),
  25812. parent = document.querySelector(Settings.parent),
  25813. spinner;
  25814. css(bar, {
  25815. transition: 'all 0 linear',
  25816. transform: 'translate3d(' + perc + '%,0,0)'
  25817. });
  25818. if (!Settings.showSpinner) {
  25819. spinner = progress.querySelector(Settings.spinnerSelector);
  25820. spinner && removeElement(spinner);
  25821. }
  25822. if (parent != document.body) {
  25823. addClass(parent, 'nprogress-custom-parent');
  25824. }
  25825. parent.appendChild(progress);
  25826. return progress;
  25827. };
  25828. /**
  25829. * Removes the element. Opposite of render().
  25830. */
  25831. NProgress.remove = function() {
  25832. removeClass(document.documentElement, 'nprogress-busy');
  25833. removeClass(document.querySelector(Settings.parent), 'nprogress-custom-parent');
  25834. var progress = document.getElementById('nprogress');
  25835. progress && removeElement(progress);
  25836. };
  25837. /**
  25838. * Checks if the progress bar is rendered.
  25839. */
  25840. NProgress.isRendered = function() {
  25841. return !!document.getElementById('nprogress');
  25842. };
  25843. /**
  25844. * Determine which positioning CSS rule to use.
  25845. */
  25846. NProgress.getPositioningCSS = function() {
  25847. // Sniff on document.body.style
  25848. var bodyStyle = document.body.style;
  25849. // Sniff prefixes
  25850. var vendorPrefix = ('WebkitTransform' in bodyStyle) ? 'Webkit' :
  25851. ('MozTransform' in bodyStyle) ? 'Moz' :
  25852. ('msTransform' in bodyStyle) ? 'ms' :
  25853. ('OTransform' in bodyStyle) ? 'O' : '';
  25854. if (vendorPrefix + 'Perspective' in bodyStyle) {
  25855. // Modern browsers with 3D support, e.g. Webkit, IE10
  25856. return 'translate3d';
  25857. } else if (vendorPrefix + 'Transform' in bodyStyle) {
  25858. // Browsers without 3D support, e.g. IE9
  25859. return 'translate';
  25860. } else {
  25861. // Browsers without translate() support, e.g. IE7-8
  25862. return 'margin';
  25863. }
  25864. };
  25865. /**
  25866. * Helpers
  25867. */
  25868. function clamp(n, min, max) {
  25869. if (n < min) return min;
  25870. if (n > max) return max;
  25871. return n;
  25872. }
  25873. /**
  25874. * (Internal) converts a percentage (`0..1`) to a bar translateX
  25875. * percentage (`-100%..0%`).
  25876. */
  25877. function toBarPerc(n) {
  25878. return (-1 + n) * 100;
  25879. }
  25880. /**
  25881. * (Internal) returns the correct CSS for changing the bar's
  25882. * position given an n percentage, and speed and ease from Settings
  25883. */
  25884. function barPositionCSS(n, speed, ease) {
  25885. var barCSS;
  25886. if (Settings.positionUsing === 'translate3d') {
  25887. barCSS = { transform: 'translate3d('+toBarPerc(n)+'%,0,0)' };
  25888. } else if (Settings.positionUsing === 'translate') {
  25889. barCSS = { transform: 'translate('+toBarPerc(n)+'%,0)' };
  25890. } else {
  25891. barCSS = { 'margin-left': toBarPerc(n)+'%' };
  25892. }
  25893. barCSS.transition = 'all '+speed+'ms '+ease;
  25894. return barCSS;
  25895. }
  25896. /**
  25897. * (Internal) Queues a function to be executed.
  25898. */
  25899. var queue = (function() {
  25900. var pending = [];
  25901. function next() {
  25902. var fn = pending.shift();
  25903. if (fn) {
  25904. fn(next);
  25905. }
  25906. }
  25907. return function(fn) {
  25908. pending.push(fn);
  25909. if (pending.length == 1) next();
  25910. };
  25911. })();
  25912. /**
  25913. * (Internal) Applies css properties to an element, similar to the jQuery
  25914. * css method.
  25915. *
  25916. * While this helper does assist with vendor prefixed property names, it
  25917. * does not perform any manipulation of values prior to setting styles.
  25918. */
  25919. var css = (function() {
  25920. var cssPrefixes = [ 'Webkit', 'O', 'Moz', 'ms' ],
  25921. cssProps = {};
  25922. function camelCase(string) {
  25923. return string.replace(/^-ms-/, 'ms-').replace(/-([\da-z])/gi, function(match, letter) {
  25924. return letter.toUpperCase();
  25925. });
  25926. }
  25927. function getVendorProp(name) {
  25928. var style = document.body.style;
  25929. if (name in style) return name;
  25930. var i = cssPrefixes.length,
  25931. capName = name.charAt(0).toUpperCase() + name.slice(1),
  25932. vendorName;
  25933. while (i--) {
  25934. vendorName = cssPrefixes[i] + capName;
  25935. if (vendorName in style) return vendorName;
  25936. }
  25937. return name;
  25938. }
  25939. function getStyleProp(name) {
  25940. name = camelCase(name);
  25941. return cssProps[name] || (cssProps[name] = getVendorProp(name));
  25942. }
  25943. function applyCss(element, prop, value) {
  25944. prop = getStyleProp(prop);
  25945. element.style[prop] = value;
  25946. }
  25947. return function(element, properties) {
  25948. var args = arguments,
  25949. prop,
  25950. value;
  25951. if (args.length == 2) {
  25952. for (prop in properties) {
  25953. value = properties[prop];
  25954. if (value !== undefined && properties.hasOwnProperty(prop)) applyCss(element, prop, value);
  25955. }
  25956. } else {
  25957. applyCss(element, args[1], args[2]);
  25958. }
  25959. }
  25960. })();
  25961. /**
  25962. * (Internal) Determines if an element or space separated list of class names contains a class name.
  25963. */
  25964. function hasClass(element, name) {
  25965. var list = typeof element == 'string' ? element : classList(element);
  25966. return list.indexOf(' ' + name + ' ') >= 0;
  25967. }
  25968. /**
  25969. * (Internal) Adds a class to an element.
  25970. */
  25971. function addClass(element, name) {
  25972. var oldList = classList(element),
  25973. newList = oldList + name;
  25974. if (hasClass(oldList, name)) return;
  25975. // Trim the opening space.
  25976. element.className = newList.substring(1);
  25977. }
  25978. /**
  25979. * (Internal) Removes a class from an element.
  25980. */
  25981. function removeClass(element, name) {
  25982. var oldList = classList(element),
  25983. newList;
  25984. if (!hasClass(element, name)) return;
  25985. // Replace the class name.
  25986. newList = oldList.replace(' ' + name + ' ', ' ');
  25987. // Trim the opening and closing spaces.
  25988. element.className = newList.substring(1, newList.length - 1);
  25989. }
  25990. /**
  25991. * (Internal) Gets a space separated list of the class names on the element.
  25992. * The list is wrapped with a single space on each end to facilitate finding
  25993. * matches within the list.
  25994. */
  25995. function classList(element) {
  25996. return (' ' + (element.className || '') + ' ').replace(/\s+/gi, ' ');
  25997. }
  25998. /**
  25999. * (Internal) Removes an element from the DOM.
  26000. */
  26001. function removeElement(element) {
  26002. element && element.parentNode && element.parentNode.removeChild(element);
  26003. }
  26004. return NProgress;
  26005. });
  26006. /***/ }),
  26007. /***/ "./node_modules/object-inspect/index.js":
  26008. /*!**********************************************!*\
  26009. !*** ./node_modules/object-inspect/index.js ***!
  26010. \**********************************************/
  26011. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  26012. var hasMap = typeof Map === 'function' && Map.prototype;
  26013. var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;
  26014. var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null;
  26015. var mapForEach = hasMap && Map.prototype.forEach;
  26016. var hasSet = typeof Set === 'function' && Set.prototype;
  26017. var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null;
  26018. var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null;
  26019. var setForEach = hasSet && Set.prototype.forEach;
  26020. var hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype;
  26021. var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;
  26022. var hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype;
  26023. var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;
  26024. var hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype;
  26025. var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;
  26026. var booleanValueOf = Boolean.prototype.valueOf;
  26027. var objectToString = Object.prototype.toString;
  26028. var functionToString = Function.prototype.toString;
  26029. var $match = String.prototype.match;
  26030. var $slice = String.prototype.slice;
  26031. var $replace = String.prototype.replace;
  26032. var $toUpperCase = String.prototype.toUpperCase;
  26033. var $toLowerCase = String.prototype.toLowerCase;
  26034. var $test = RegExp.prototype.test;
  26035. var $concat = Array.prototype.concat;
  26036. var $join = Array.prototype.join;
  26037. var $arrSlice = Array.prototype.slice;
  26038. var $floor = Math.floor;
  26039. var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;
  26040. var gOPS = Object.getOwnPropertySymbols;
  26041. var symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null;
  26042. var hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object';
  26043. // ie, `has-tostringtag/shams
  26044. var toStringTag = typeof Symbol === 'function' && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? 'object' : 'symbol')
  26045. ? Symbol.toStringTag
  26046. : null;
  26047. var isEnumerable = Object.prototype.propertyIsEnumerable;
  26048. var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || (
  26049. [].__proto__ === Array.prototype // eslint-disable-line no-proto
  26050. ? function (O) {
  26051. return O.__proto__; // eslint-disable-line no-proto
  26052. }
  26053. : null
  26054. );
  26055. function addNumericSeparator(num, str) {
  26056. if (
  26057. num === Infinity
  26058. || num === -Infinity
  26059. || num !== num
  26060. || (num && num > -1000 && num < 1000)
  26061. || $test.call(/e/, str)
  26062. ) {
  26063. return str;
  26064. }
  26065. var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
  26066. if (typeof num === 'number') {
  26067. var int = num < 0 ? -$floor(-num) : $floor(num); // trunc(num)
  26068. if (int !== num) {
  26069. var intStr = String(int);
  26070. var dec = $slice.call(str, intStr.length + 1);
  26071. return $replace.call(intStr, sepRegex, '$&_') + '.' + $replace.call($replace.call(dec, /([0-9]{3})/g, '$&_'), /_$/, '');
  26072. }
  26073. }
  26074. return $replace.call(str, sepRegex, '$&_');
  26075. }
  26076. var inspectCustom = (__webpack_require__(/*! ./util.inspect */ "?2128").custom);
  26077. var inspectSymbol = inspectCustom && isSymbol(inspectCustom) ? inspectCustom : null;
  26078. module.exports = function inspect_(obj, options, depth, seen) {
  26079. var opts = options || {};
  26080. if (has(opts, 'quoteStyle') && (opts.quoteStyle !== 'single' && opts.quoteStyle !== 'double')) {
  26081. throw new TypeError('option "quoteStyle" must be "single" or "double"');
  26082. }
  26083. if (
  26084. has(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number'
  26085. ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity
  26086. : opts.maxStringLength !== null
  26087. )
  26088. ) {
  26089. throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
  26090. }
  26091. var customInspect = has(opts, 'customInspect') ? opts.customInspect : true;
  26092. if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') {
  26093. throw new TypeError('option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`');
  26094. }
  26095. if (
  26096. has(opts, 'indent')
  26097. && opts.indent !== null
  26098. && opts.indent !== '\t'
  26099. && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)
  26100. ) {
  26101. throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
  26102. }
  26103. if (has(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') {
  26104. throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
  26105. }
  26106. var numericSeparator = opts.numericSeparator;
  26107. if (typeof obj === 'undefined') {
  26108. return 'undefined';
  26109. }
  26110. if (obj === null) {
  26111. return 'null';
  26112. }
  26113. if (typeof obj === 'boolean') {
  26114. return obj ? 'true' : 'false';
  26115. }
  26116. if (typeof obj === 'string') {
  26117. return inspectString(obj, opts);
  26118. }
  26119. if (typeof obj === 'number') {
  26120. if (obj === 0) {
  26121. return Infinity / obj > 0 ? '0' : '-0';
  26122. }
  26123. var str = String(obj);
  26124. return numericSeparator ? addNumericSeparator(obj, str) : str;
  26125. }
  26126. if (typeof obj === 'bigint') {
  26127. var bigIntStr = String(obj) + 'n';
  26128. return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr;
  26129. }
  26130. var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;
  26131. if (typeof depth === 'undefined') { depth = 0; }
  26132. if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') {
  26133. return isArray(obj) ? '[Array]' : '[Object]';
  26134. }
  26135. var indent = getIndent(opts, depth);
  26136. if (typeof seen === 'undefined') {
  26137. seen = [];
  26138. } else if (indexOf(seen, obj) >= 0) {
  26139. return '[Circular]';
  26140. }
  26141. function inspect(value, from, noIndent) {
  26142. if (from) {
  26143. seen = $arrSlice.call(seen);
  26144. seen.push(from);
  26145. }
  26146. if (noIndent) {
  26147. var newOpts = {
  26148. depth: opts.depth
  26149. };
  26150. if (has(opts, 'quoteStyle')) {
  26151. newOpts.quoteStyle = opts.quoteStyle;
  26152. }
  26153. return inspect_(value, newOpts, depth + 1, seen);
  26154. }
  26155. return inspect_(value, opts, depth + 1, seen);
  26156. }
  26157. if (typeof obj === 'function') {
  26158. var name = nameOf(obj);
  26159. var keys = arrObjKeys(obj, inspect);
  26160. return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : '');
  26161. }
  26162. if (isSymbol(obj)) {
  26163. var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj);
  26164. return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString;
  26165. }
  26166. if (isElement(obj)) {
  26167. var s = '<' + $toLowerCase.call(String(obj.nodeName));
  26168. var attrs = obj.attributes || [];
  26169. for (var i = 0; i < attrs.length; i++) {
  26170. s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts);
  26171. }
  26172. s += '>';
  26173. if (obj.childNodes && obj.childNodes.length) { s += '...'; }
  26174. s += '</' + $toLowerCase.call(String(obj.nodeName)) + '>';
  26175. return s;
  26176. }
  26177. if (isArray(obj)) {
  26178. if (obj.length === 0) { return '[]'; }
  26179. var xs = arrObjKeys(obj, inspect);
  26180. if (indent && !singleLineValues(xs)) {
  26181. return '[' + indentedJoin(xs, indent) + ']';
  26182. }
  26183. return '[ ' + $join.call(xs, ', ') + ' ]';
  26184. }
  26185. if (isError(obj)) {
  26186. var parts = arrObjKeys(obj, inspect);
  26187. if ('cause' in obj && !isEnumerable.call(obj, 'cause')) {
  26188. return '{ [' + String(obj) + '] ' + $join.call($concat.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }';
  26189. }
  26190. if (parts.length === 0) { return '[' + String(obj) + ']'; }
  26191. return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }';
  26192. }
  26193. if (typeof obj === 'object' && customInspect) {
  26194. if (inspectSymbol && typeof obj[inspectSymbol] === 'function') {
  26195. return obj[inspectSymbol]();
  26196. } else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') {
  26197. return obj.inspect();
  26198. }
  26199. }
  26200. if (isMap(obj)) {
  26201. var mapParts = [];
  26202. mapForEach.call(obj, function (value, key) {
  26203. mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj));
  26204. });
  26205. return collectionOf('Map', mapSize.call(obj), mapParts, indent);
  26206. }
  26207. if (isSet(obj)) {
  26208. var setParts = [];
  26209. setForEach.call(obj, function (value) {
  26210. setParts.push(inspect(value, obj));
  26211. });
  26212. return collectionOf('Set', setSize.call(obj), setParts, indent);
  26213. }
  26214. if (isWeakMap(obj)) {
  26215. return weakCollectionOf('WeakMap');
  26216. }
  26217. if (isWeakSet(obj)) {
  26218. return weakCollectionOf('WeakSet');
  26219. }
  26220. if (isWeakRef(obj)) {
  26221. return weakCollectionOf('WeakRef');
  26222. }
  26223. if (isNumber(obj)) {
  26224. return markBoxed(inspect(Number(obj)));
  26225. }
  26226. if (isBigInt(obj)) {
  26227. return markBoxed(inspect(bigIntValueOf.call(obj)));
  26228. }
  26229. if (isBoolean(obj)) {
  26230. return markBoxed(booleanValueOf.call(obj));
  26231. }
  26232. if (isString(obj)) {
  26233. return markBoxed(inspect(String(obj)));
  26234. }
  26235. if (!isDate(obj) && !isRegExp(obj)) {
  26236. var ys = arrObjKeys(obj, inspect);
  26237. var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
  26238. var protoTag = obj instanceof Object ? '' : 'null prototype';
  26239. var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? 'Object' : '';
  26240. var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';
  26241. var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat.call([], stringTag || [], protoTag || []), ': ') + '] ' : '');
  26242. if (ys.length === 0) { return tag + '{}'; }
  26243. if (indent) {
  26244. return tag + '{' + indentedJoin(ys, indent) + '}';
  26245. }
  26246. return tag + '{ ' + $join.call(ys, ', ') + ' }';
  26247. }
  26248. return String(obj);
  26249. };
  26250. function wrapQuotes(s, defaultStyle, opts) {
  26251. var quoteChar = (opts.quoteStyle || defaultStyle) === 'double' ? '"' : "'";
  26252. return quoteChar + s + quoteChar;
  26253. }
  26254. function quote(s) {
  26255. return $replace.call(String(s), /"/g, '&quot;');
  26256. }
  26257. function isArray(obj) { return toStr(obj) === '[object Array]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  26258. function isDate(obj) { return toStr(obj) === '[object Date]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  26259. function isRegExp(obj) { return toStr(obj) === '[object RegExp]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  26260. function isError(obj) { return toStr(obj) === '[object Error]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  26261. function isString(obj) { return toStr(obj) === '[object String]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  26262. function isNumber(obj) { return toStr(obj) === '[object Number]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  26263. function isBoolean(obj) { return toStr(obj) === '[object Boolean]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
  26264. // Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives
  26265. function isSymbol(obj) {
  26266. if (hasShammedSymbols) {
  26267. return obj && typeof obj === 'object' && obj instanceof Symbol;
  26268. }
  26269. if (typeof obj === 'symbol') {
  26270. return true;
  26271. }
  26272. if (!obj || typeof obj !== 'object' || !symToString) {
  26273. return false;
  26274. }
  26275. try {
  26276. symToString.call(obj);
  26277. return true;
  26278. } catch (e) {}
  26279. return false;
  26280. }
  26281. function isBigInt(obj) {
  26282. if (!obj || typeof obj !== 'object' || !bigIntValueOf) {
  26283. return false;
  26284. }
  26285. try {
  26286. bigIntValueOf.call(obj);
  26287. return true;
  26288. } catch (e) {}
  26289. return false;
  26290. }
  26291. var hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; };
  26292. function has(obj, key) {
  26293. return hasOwn.call(obj, key);
  26294. }
  26295. function toStr(obj) {
  26296. return objectToString.call(obj);
  26297. }
  26298. function nameOf(f) {
  26299. if (f.name) { return f.name; }
  26300. var m = $match.call(functionToString.call(f), /^function\s*([\w$]+)/);
  26301. if (m) { return m[1]; }
  26302. return null;
  26303. }
  26304. function indexOf(xs, x) {
  26305. if (xs.indexOf) { return xs.indexOf(x); }
  26306. for (var i = 0, l = xs.length; i < l; i++) {
  26307. if (xs[i] === x) { return i; }
  26308. }
  26309. return -1;
  26310. }
  26311. function isMap(x) {
  26312. if (!mapSize || !x || typeof x !== 'object') {
  26313. return false;
  26314. }
  26315. try {
  26316. mapSize.call(x);
  26317. try {
  26318. setSize.call(x);
  26319. } catch (s) {
  26320. return true;
  26321. }
  26322. return x instanceof Map; // core-js workaround, pre-v2.5.0
  26323. } catch (e) {}
  26324. return false;
  26325. }
  26326. function isWeakMap(x) {
  26327. if (!weakMapHas || !x || typeof x !== 'object') {
  26328. return false;
  26329. }
  26330. try {
  26331. weakMapHas.call(x, weakMapHas);
  26332. try {
  26333. weakSetHas.call(x, weakSetHas);
  26334. } catch (s) {
  26335. return true;
  26336. }
  26337. return x instanceof WeakMap; // core-js workaround, pre-v2.5.0
  26338. } catch (e) {}
  26339. return false;
  26340. }
  26341. function isWeakRef(x) {
  26342. if (!weakRefDeref || !x || typeof x !== 'object') {
  26343. return false;
  26344. }
  26345. try {
  26346. weakRefDeref.call(x);
  26347. return true;
  26348. } catch (e) {}
  26349. return false;
  26350. }
  26351. function isSet(x) {
  26352. if (!setSize || !x || typeof x !== 'object') {
  26353. return false;
  26354. }
  26355. try {
  26356. setSize.call(x);
  26357. try {
  26358. mapSize.call(x);
  26359. } catch (m) {
  26360. return true;
  26361. }
  26362. return x instanceof Set; // core-js workaround, pre-v2.5.0
  26363. } catch (e) {}
  26364. return false;
  26365. }
  26366. function isWeakSet(x) {
  26367. if (!weakSetHas || !x || typeof x !== 'object') {
  26368. return false;
  26369. }
  26370. try {
  26371. weakSetHas.call(x, weakSetHas);
  26372. try {
  26373. weakMapHas.call(x, weakMapHas);
  26374. } catch (s) {
  26375. return true;
  26376. }
  26377. return x instanceof WeakSet; // core-js workaround, pre-v2.5.0
  26378. } catch (e) {}
  26379. return false;
  26380. }
  26381. function isElement(x) {
  26382. if (!x || typeof x !== 'object') { return false; }
  26383. if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) {
  26384. return true;
  26385. }
  26386. return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function';
  26387. }
  26388. function inspectString(str, opts) {
  26389. if (str.length > opts.maxStringLength) {
  26390. var remaining = str.length - opts.maxStringLength;
  26391. var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');
  26392. return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer;
  26393. }
  26394. // eslint-disable-next-line no-control-regex
  26395. var s = $replace.call($replace.call(str, /(['\\])/g, '\\$1'), /[\x00-\x1f]/g, lowbyte);
  26396. return wrapQuotes(s, 'single', opts);
  26397. }
  26398. function lowbyte(c) {
  26399. var n = c.charCodeAt(0);
  26400. var x = {
  26401. 8: 'b',
  26402. 9: 't',
  26403. 10: 'n',
  26404. 12: 'f',
  26405. 13: 'r'
  26406. }[n];
  26407. if (x) { return '\\' + x; }
  26408. return '\\x' + (n < 0x10 ? '0' : '') + $toUpperCase.call(n.toString(16));
  26409. }
  26410. function markBoxed(str) {
  26411. return 'Object(' + str + ')';
  26412. }
  26413. function weakCollectionOf(type) {
  26414. return type + ' { ? }';
  26415. }
  26416. function collectionOf(type, size, entries, indent) {
  26417. var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ', ');
  26418. return type + ' (' + size + ') {' + joinedEntries + '}';
  26419. }
  26420. function singleLineValues(xs) {
  26421. for (var i = 0; i < xs.length; i++) {
  26422. if (indexOf(xs[i], '\n') >= 0) {
  26423. return false;
  26424. }
  26425. }
  26426. return true;
  26427. }
  26428. function getIndent(opts, depth) {
  26429. var baseIndent;
  26430. if (opts.indent === '\t') {
  26431. baseIndent = '\t';
  26432. } else if (typeof opts.indent === 'number' && opts.indent > 0) {
  26433. baseIndent = $join.call(Array(opts.indent + 1), ' ');
  26434. } else {
  26435. return null;
  26436. }
  26437. return {
  26438. base: baseIndent,
  26439. prev: $join.call(Array(depth + 1), baseIndent)
  26440. };
  26441. }
  26442. function indentedJoin(xs, indent) {
  26443. if (xs.length === 0) { return ''; }
  26444. var lineJoiner = '\n' + indent.prev + indent.base;
  26445. return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\n' + indent.prev;
  26446. }
  26447. function arrObjKeys(obj, inspect) {
  26448. var isArr = isArray(obj);
  26449. var xs = [];
  26450. if (isArr) {
  26451. xs.length = obj.length;
  26452. for (var i = 0; i < obj.length; i++) {
  26453. xs[i] = has(obj, i) ? inspect(obj[i], obj) : '';
  26454. }
  26455. }
  26456. var syms = typeof gOPS === 'function' ? gOPS(obj) : [];
  26457. var symMap;
  26458. if (hasShammedSymbols) {
  26459. symMap = {};
  26460. for (var k = 0; k < syms.length; k++) {
  26461. symMap['$' + syms[k]] = syms[k];
  26462. }
  26463. }
  26464. for (var key in obj) { // eslint-disable-line no-restricted-syntax
  26465. if (!has(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
  26466. if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
  26467. if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) {
  26468. // this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section
  26469. continue; // eslint-disable-line no-restricted-syntax, no-continue
  26470. } else if ($test.call(/[^\w$]/, key)) {
  26471. xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj));
  26472. } else {
  26473. xs.push(key + ': ' + inspect(obj[key], obj));
  26474. }
  26475. }
  26476. if (typeof gOPS === 'function') {
  26477. for (var j = 0; j < syms.length; j++) {
  26478. if (isEnumerable.call(obj, syms[j])) {
  26479. xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj));
  26480. }
  26481. }
  26482. }
  26483. return xs;
  26484. }
  26485. /***/ }),
  26486. /***/ "./node_modules/primevue/api/api.esm.js":
  26487. /*!**********************************************!*\
  26488. !*** ./node_modules/primevue/api/api.esm.js ***!
  26489. \**********************************************/
  26490. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  26491. "use strict";
  26492. __webpack_require__.r(__webpack_exports__);
  26493. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  26494. /* harmony export */ "FilterMatchMode": () => (/* binding */ FilterMatchMode),
  26495. /* harmony export */ "FilterOperator": () => (/* binding */ FilterOperator),
  26496. /* harmony export */ "FilterService": () => (/* binding */ FilterService),
  26497. /* harmony export */ "PrimeIcons": () => (/* binding */ PrimeIcons),
  26498. /* harmony export */ "ToastSeverity": () => (/* binding */ ToastSeverities)
  26499. /* harmony export */ });
  26500. /* harmony import */ var primevue_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! primevue/utils */ "./node_modules/primevue/utils/utils.esm.js");
  26501. const FilterMatchMode = {
  26502. STARTS_WITH : 'startsWith',
  26503. CONTAINS : 'contains',
  26504. NOT_CONTAINS : 'notContains',
  26505. ENDS_WITH : 'endsWith',
  26506. EQUALS : 'equals',
  26507. NOT_EQUALS : 'notEquals',
  26508. IN : 'in',
  26509. LESS_THAN : 'lt',
  26510. LESS_THAN_OR_EQUAL_TO : 'lte',
  26511. GREATER_THAN : 'gt',
  26512. GREATER_THAN_OR_EQUAL_TO : 'gte',
  26513. BETWEEN : 'between',
  26514. DATE_IS : 'dateIs',
  26515. DATE_IS_NOT : 'dateIsNot',
  26516. DATE_BEFORE : 'dateBefore',
  26517. DATE_AFTER : 'dateAfter'
  26518. };
  26519. const FilterOperator = {
  26520. AND: 'and',
  26521. OR: 'or'
  26522. };
  26523. const FilterService = {
  26524. filter(value, fields, filterValue, filterMatchMode, filterLocale) {
  26525. let filteredItems = [];
  26526. if (value) {
  26527. for (let item of value) {
  26528. for (let field of fields) {
  26529. let fieldValue = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(item, field);
  26530. if (this.filters[filterMatchMode](fieldValue, filterValue, filterLocale)) {
  26531. filteredItems.push(item);
  26532. break;
  26533. }
  26534. }
  26535. }
  26536. }
  26537. return filteredItems;
  26538. },
  26539. filters: {
  26540. startsWith(value, filter, filterLocale) {
  26541. if (filter === undefined || filter === null || filter.trim() === '') {
  26542. return true;
  26543. }
  26544. if (value === undefined || value === null) {
  26545. return false;
  26546. }
  26547. let filterValue = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.removeAccents(filter.toString()).toLocaleLowerCase(filterLocale);
  26548. let stringValue = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.removeAccents(value.toString()).toLocaleLowerCase(filterLocale);
  26549. return stringValue.slice(0, filterValue.length) === filterValue;
  26550. },
  26551. contains(value, filter, filterLocale) {
  26552. if (filter === undefined || filter === null || (typeof filter === 'string' && filter.trim() === '')) {
  26553. return true;
  26554. }
  26555. if (value === undefined || value === null) {
  26556. return false;
  26557. }
  26558. let filterValue = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.removeAccents(filter.toString()).toLocaleLowerCase(filterLocale);
  26559. let stringValue = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.removeAccents(value.toString()).toLocaleLowerCase(filterLocale);
  26560. return stringValue.indexOf(filterValue) !== -1;
  26561. },
  26562. notContains(value, filter, filterLocale) {
  26563. if (filter === undefined || filter === null || (typeof filter === 'string' && filter.trim() === '')) {
  26564. return true;
  26565. }
  26566. if (value === undefined || value === null) {
  26567. return false;
  26568. }
  26569. let filterValue = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.removeAccents(filter.toString()).toLocaleLowerCase(filterLocale);
  26570. let stringValue = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.removeAccents(value.toString()).toLocaleLowerCase(filterLocale);
  26571. return stringValue.indexOf(filterValue) === -1;
  26572. },
  26573. endsWith(value, filter, filterLocale) {
  26574. if (filter === undefined || filter === null || filter.trim() === '') {
  26575. return true;
  26576. }
  26577. if (value === undefined || value === null) {
  26578. return false;
  26579. }
  26580. let filterValue = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.removeAccents(filter.toString()).toLocaleLowerCase(filterLocale);
  26581. let stringValue = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.removeAccents(value.toString()).toLocaleLowerCase(filterLocale);
  26582. return stringValue.indexOf(filterValue, stringValue.length - filterValue.length) !== -1;
  26583. },
  26584. equals(value, filter, filterLocale) {
  26585. if (filter === undefined || filter === null || (typeof filter === 'string' && filter.trim() === '')) {
  26586. return true;
  26587. }
  26588. if (value === undefined || value === null) {
  26589. return false;
  26590. }
  26591. if (value.getTime && filter.getTime)
  26592. return value.getTime() === filter.getTime();
  26593. else
  26594. return primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.removeAccents(value.toString()).toLocaleLowerCase(filterLocale) == primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.removeAccents(filter.toString()).toLocaleLowerCase(filterLocale);
  26595. },
  26596. notEquals(value, filter, filterLocale) {
  26597. if (filter === undefined || filter === null || (typeof filter === 'string' && filter.trim() === '')) {
  26598. return false;
  26599. }
  26600. if (value === undefined || value === null) {
  26601. return true;
  26602. }
  26603. if (value.getTime && filter.getTime)
  26604. return value.getTime() !== filter.getTime();
  26605. else
  26606. return primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.removeAccents(value.toString()).toLocaleLowerCase(filterLocale) != primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.removeAccents(filter.toString()).toLocaleLowerCase(filterLocale);
  26607. },
  26608. in(value, filter) {
  26609. if (filter === undefined || filter === null || filter.length === 0) {
  26610. return true;
  26611. }
  26612. for (let i = 0; i < filter.length; i++) {
  26613. if (primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.equals(value, filter[i])) {
  26614. return true;
  26615. }
  26616. }
  26617. return false;
  26618. },
  26619. between(value, filter) {
  26620. if (filter == null || filter[0] == null || filter[1] == null) {
  26621. return true;
  26622. }
  26623. if (value === undefined || value === null) {
  26624. return false;
  26625. }
  26626. if (value.getTime)
  26627. return filter[0].getTime() <= value.getTime() && value.getTime() <= filter[1].getTime();
  26628. else
  26629. return filter[0] <= value && value <= filter[1];
  26630. },
  26631. lt(value, filter) {
  26632. if (filter === undefined || filter === null) {
  26633. return true;
  26634. }
  26635. if (value === undefined || value === null) {
  26636. return false;
  26637. }
  26638. if (value.getTime && filter.getTime)
  26639. return value.getTime() < filter.getTime();
  26640. else
  26641. return value < filter;
  26642. },
  26643. lte(value, filter) {
  26644. if (filter === undefined || filter === null) {
  26645. return true;
  26646. }
  26647. if (value === undefined || value === null) {
  26648. return false;
  26649. }
  26650. if (value.getTime && filter.getTime)
  26651. return value.getTime() <= filter.getTime();
  26652. else
  26653. return value <= filter;
  26654. },
  26655. gt(value, filter) {
  26656. if (filter === undefined || filter === null) {
  26657. return true;
  26658. }
  26659. if (value === undefined || value === null) {
  26660. return false;
  26661. }
  26662. if (value.getTime && filter.getTime)
  26663. return value.getTime() > filter.getTime();
  26664. else
  26665. return value > filter;
  26666. },
  26667. gte(value, filter) {
  26668. if (filter === undefined || filter === null) {
  26669. return true;
  26670. }
  26671. if (value === undefined || value === null) {
  26672. return false;
  26673. }
  26674. if (value.getTime && filter.getTime)
  26675. return value.getTime() >= filter.getTime();
  26676. else
  26677. return value >= filter;
  26678. },
  26679. dateIs(value, filter) {
  26680. if (filter === undefined || filter === null) {
  26681. return true;
  26682. }
  26683. if (value === undefined || value === null) {
  26684. return false;
  26685. }
  26686. return value.toDateString() === filter.toDateString();
  26687. },
  26688. dateIsNot(value, filter) {
  26689. if (filter === undefined || filter === null) {
  26690. return true;
  26691. }
  26692. if (value === undefined || value === null) {
  26693. return false;
  26694. }
  26695. return value.toDateString() !== filter.toDateString();
  26696. },
  26697. dateBefore(value, filter) {
  26698. if (filter === undefined || filter === null) {
  26699. return true;
  26700. }
  26701. if (value === undefined || value === null) {
  26702. return false;
  26703. }
  26704. return value.getTime() < filter.getTime();
  26705. },
  26706. dateAfter(value, filter) {
  26707. if (filter === undefined || filter === null) {
  26708. return true;
  26709. }
  26710. if (value === undefined || value === null) {
  26711. return false;
  26712. }
  26713. return value.getTime() > filter.getTime();
  26714. }
  26715. },
  26716. register(rule, fn) {
  26717. this.filters[rule] = fn;
  26718. }
  26719. };
  26720. const PrimeIcons = {
  26721. ALIGN_CENTER:'pi pi-align-center',
  26722. ALIGN_JUSTIFY:'pi pi-align-justify',
  26723. ALIGN_LEFT:'pi pi-align-left',
  26724. ALIGN_RIGHT:'pi pi-align-right',
  26725. AMAZON:'pi pi-amazon',
  26726. ANDROID:'pi pi-android',
  26727. ANGLE_DOUBLE_DOWN:'pi pi-angle-double-down',
  26728. ANGLE_DOUBLE_LEFT:'pi pi-angle-double-left',
  26729. ANGLE_DOUBLE_RIGHT:'pi pi-angle-double-right',
  26730. ANGLE_DOUBLE_UP:'pi pi-angle-double-up',
  26731. ANGLE_DOWN:'pi pi-angle-down',
  26732. ANGLE_LEFT:'pi pi-angle-left',
  26733. ANGLE_RIGHT:'pi pi-angle-right',
  26734. ANGLE_UP:'pi pi-angle-up',
  26735. APPLE:'pi pi-apple',
  26736. ARROW_CIRCLE_DOWN:'pi pi-arrow-circle-down',
  26737. ARROW_CIRCLE_LEFT:'pi pi-arrow-circle-left',
  26738. ARROW_CIRCLE_RIGHT:'pi pi-arrow-circle-right',
  26739. ARROW_CIRCLE_UP:'pi pi-arrow-circle-up',
  26740. ARROW_DOWN:'pi pi-arrow-down',
  26741. ARROW_DOWN_LEFT:'pi pi-arrow-down-left',
  26742. ARROW_DOWN_RIGHT:'pi pi-arrow-down-right',
  26743. ARROW_LEFT:'pi pi-arrow-left',
  26744. ARROW_RIGHT:'pi pi-arrow-right',
  26745. ARROW_UP:'pi pi-arrow-up',
  26746. ARROW_UP_LEFT:'pi pi-arrow-up-left',
  26747. ARROW_UP_RIGHT:'pi pi-arrow-up-right',
  26748. ARROW_H:'pi pi-arrow-h',
  26749. ARROW_V:'pi pi-arrow-v',
  26750. AT:'pi pi-at',
  26751. BACKWARD:'pi pi-backward',
  26752. BAN:'pi pi-ban',
  26753. BARS:'pi pi-bars',
  26754. BELL:'pi pi-bell',
  26755. BOLT:'pi pi-bolt',
  26756. BOOK:'pi pi-book',
  26757. BOOKMARK:'pi pi-bookmark',
  26758. BOOKMARK_FILL:'pi pi-bookmark-fill',
  26759. BOX:'pi pi-box',
  26760. BRIEFCASE:'pi pi-briefcase',
  26761. BUILDING:'pi pi-building',
  26762. CALENDAR:'pi pi-calendar',
  26763. CALENDAR_MINUS:'pi pi-calendar-minus',
  26764. CALENDAR_PLUS:'pi pi-calendar-plus',
  26765. CALENDAR_TIMES:'pi pi-calendar-times',
  26766. CAMERA:'pi pi-camera',
  26767. CAR:'pi pi-car',
  26768. CARET_DOWN:'pi pi-caret-down',
  26769. CARET_LEFT:'pi pi-caret-left',
  26770. CARET_RIGHT:'pi pi-caret-right',
  26771. CARET_UP:'pi pi-caret-up',
  26772. CHART_BAR:'pi pi-chart-bar',
  26773. CHART_LINE:'pi pi-chart-line',
  26774. CHART_PIE:'pi pi-chart-pie',
  26775. CHECK:'pi pi-check',
  26776. CHECK_CIRCLE:'pi pi-check-circle',
  26777. CHECK_SQUARE:'pi pi-check-square',
  26778. CHEVRON_CIRCLE_DOWN:'pi pi-chevron-circle-down',
  26779. CHEVRON_CIRCLE_LEFT:'pi pi-chevron-circle-left',
  26780. CHEVRON_CIRCLE_RIGHT:'pi pi-chevron-circle-right',
  26781. CHEVRON_CIRCLE_UP:'pi pi-chevron-circle-up',
  26782. CHEVRON_DOWN:'pi pi-chevron-down',
  26783. CHEVRON_LEFT:'pi pi-chevron-left',
  26784. CHEVRON_RIGHT:'pi pi-chevron-right',
  26785. CHEVRON_UP:'pi pi-chevron-up',
  26786. CIRCLE:'pi pi-circle',
  26787. CIRCLE_FILL:'pi pi-circle-fill',
  26788. CLOCK:'pi pi-clock',
  26789. CLONE:'pi pi-clone',
  26790. CLOUD:'pi pi-cloud',
  26791. CLOUD_DOWNLOAD:'pi pi-cloud-download',
  26792. CLOUD_UPLOAD:'pi pi-cloud-upload',
  26793. CODE:'pi pi-code',
  26794. COG:'pi pi-cog',
  26795. COMMENT:'pi pi-comment',
  26796. COMMENTS:'pi pi-comments',
  26797. COMPASS:'pi pi-compass',
  26798. COPY:'pi pi-copy',
  26799. CREDIT_CARD:'pi pi-credit-card',
  26800. DATABASE:'pi pi-database',
  26801. DESKTOP:'pi pi-desktop',
  26802. DIRECTIONS:'pi pi-directions',
  26803. DIRECTIONS_ALT:'pi pi-directions-alt',
  26804. DISCORD:'pi pi-discord',
  26805. DOLLAR:'pi pi-dollar',
  26806. DOWNLOAD:'pi pi-download',
  26807. EJECT:'pi pi-eject',
  26808. ELLIPSIS_H:'pi pi-ellipsis-h',
  26809. ELLIPSIS_V:'pi pi-ellipsis-v',
  26810. ENVELOPE:'pi pi-envelope',
  26811. EURO:'pi pi-euro',
  26812. EXCLAMATION_CIRCLE:'pi pi-exclamation-circle',
  26813. EXCLAMATION_TRIANGLE :'pi pi-exclamation-triangle',
  26814. EXTERNAL_LINK:'pi pi-external-link',
  26815. EYE:'pi pi-eye',
  26816. EYE_SLASH:'pi pi-eye-slash',
  26817. FACEBOOK:'pi pi-facebook',
  26818. FAST_BACKWARD:'pi pi-fast-backward',
  26819. FAST_FORWARD:'pi pi-fast-forward',
  26820. FILE:'pi pi-file',
  26821. FILE_EXCEL:'pi pi-file-excel',
  26822. FILE_PDF:'pi pi-file-pdf',
  26823. FILTER:'pi pi-filter',
  26824. FILTER_FILL:'pi pi-filter-fill',
  26825. FILTER_SLASH:'pi pi-filter-slash',
  26826. FLAG:'pi pi-flag',
  26827. FLAG_FILL:'pi pi-flag-fill',
  26828. FOLDER:'pi pi-folder',
  26829. FOLDER_OPEN:'pi pi-folder-open',
  26830. FORWARD:'pi pi-forward',
  26831. GITHUB:'pi pi-github',
  26832. GLOBE:'pi pi-globe',
  26833. GOOGLE:'pi pi-google',
  26834. HASHTAG:'pi pi-hashtag',
  26835. HEART:'pi pi-heart',
  26836. HEART_FILL:'pi pi-heart-fill',
  26837. HISTORY:'pi pi-history',
  26838. HOME:'pi pi-home',
  26839. ID_CARD:'pi pi-id-card',
  26840. IMAGE:'pi pi-image',
  26841. IMAGES:'pi pi-images',
  26842. INBOX:'pi pi-inbox',
  26843. INFO:'pi pi-info',
  26844. INFO_CIRCLE:'pi pi-info-circle',
  26845. INSTAGRAM:'pi pi-instagram',
  26846. KEY:'pi pi-key',
  26847. LINK:'pi pi-link',
  26848. LINKEDIN:'pi pi-linkedin',
  26849. LIST:'pi pi-list',
  26850. LOCK:'pi pi-lock',
  26851. LOCK_OPEN:'pi pi-lock-open',
  26852. MAP:'pi pi-map',
  26853. MAP_MARKER:'pi pi-map-marker',
  26854. MICROSOFT:'pi pi-microsoft',
  26855. MINUS:'pi pi-minus',
  26856. MINUS_CIRCLE:'pi pi-minus-circle',
  26857. MOBILE:'pi pi-mobile',
  26858. MONEY_BILL:'pi pi-money-bill',
  26859. MOON:'pi pi-moon',
  26860. PALETTE:'pi pi-palette',
  26861. PAPERCLIP:'pi pi-paperclip',
  26862. PAUSE:'pi pi-pause',
  26863. PAYPAL:'pi pi-paypal',
  26864. PENCIL:'pi pi-pencil',
  26865. PERCENTAGE:'pi pi-percentage',
  26866. PHONE:'pi pi-phone',
  26867. PLAY:'pi pi-play',
  26868. PLUS:'pi pi-plus',
  26869. PLUS_CIRCLE:'pi pi-plus-circle',
  26870. POUND:'pi pi-pound',
  26871. POWER_OFF:'pi pi-power-off',
  26872. PRIME:'pi pi-prime',
  26873. PRINT:'pi pi-print',
  26874. QRCODE:'pi pi-qrcode',
  26875. QUESTION:'pi pi-question',
  26876. QUESTION_CIRCLE:'pi pi-question-circle',
  26877. REDDIT:'pi pi-reddit',
  26878. REFRESH:'pi pi-refresh',
  26879. REPLAY:'pi pi-replay',
  26880. REPLY:'pi pi-reply',
  26881. SAVE:'pi pi-save',
  26882. SEARCH:'pi pi-search',
  26883. SEARCH_MINUS:'pi pi-search-minus',
  26884. SEARCH_PLUS:'pi pi-search-plus',
  26885. SEND:'pi pi-send',
  26886. SERVER:'pi pi-server',
  26887. SHARE_ALT:'pi pi-share-alt',
  26888. SHIELD:'pi pi-shield',
  26889. SHOPPING_BAG:'pi pi-shopping-bag',
  26890. SHOPPING_CART:'pi pi-shopping-cart',
  26891. SIGN_IN:'pi pi-sign-in',
  26892. SIGN_OUT:'pi pi-sign-out',
  26893. SITEMAP:'pi pi-sitemap',
  26894. SLACK:'pi pi-slack',
  26895. SLIDERS_H:'pi pi-sliders-h',
  26896. SLIDERS_V:'pi pi-sliders-v',
  26897. SORT:'pi pi-sort',
  26898. SORT_ALPHA_DOWN:'pi pi-sort-alpha-down',
  26899. SORT_ALPHA_ALT_DOWN:'pi pi-sort-alpha-alt-down',
  26900. SORT_ALPHA_UP:'pi pi-sort-alpha-up',
  26901. SORT_ALPHA_ALT_UP:'pi pi-sort-alpha-alt-up',
  26902. SORT_ALT:'pi pi-sort-alt',
  26903. SORT_ALT_SLASH:'pi pi-sort-slash',
  26904. SORT_AMOUNT_DOWN:'pi pi-sort-amount-down',
  26905. SORT_AMOUNT_DOWN_ALT:'pi pi-sort-amount-down-alt',
  26906. SORT_AMOUNT_UP:'pi pi-sort-amount-up',
  26907. SORT_AMOUNT_UP_ALT:'pi pi-sort-amount-up-alt',
  26908. SORT_DOWN:'pi pi-sort-down',
  26909. SORT_NUMERIC_DOWN:'pi pi-sort-numeric-down',
  26910. SORT_NUMERIC_ALT_DOWN:'pi pi-sort-numeric-alt-down',
  26911. SORT_NUMERIC_UP:'pi pi-sort-numeric-up',
  26912. SORT_NUMERIC_ALT_UP:'pi pi-sort-numeric-alt-up',
  26913. SORT_UP:'pi pi-sort-up',
  26914. SPINNER:'pi pi-spinner',
  26915. STAR:'pi pi-star',
  26916. STAR_FILL:'pi pi-star-fill',
  26917. STEP_BACKWARD:'pi pi-step-backward',
  26918. STEP_BACKWARD_ALT:'pi pi-step-backward-alt',
  26919. STEP_FORWARD:'pi pi-step-forward',
  26920. STEP_FORWARD_ALT:'pi pi-step-forward-alt',
  26921. STOP:'pi pi-stop',
  26922. STOP_CIRCLE:'pi pi-stop-circle',
  26923. SUN:'pi pi-sun',
  26924. SYNC:'pi pi-sync',
  26925. TABLE:'pi pi-table',
  26926. TABLET:'pi pi-tablet',
  26927. TAG:'pi pi-tag',
  26928. TAGS:'pi pi-tags',
  26929. TELEGRAM:'pi pi-telegram',
  26930. TH_LARGE:'pi pi-th-large',
  26931. THUMBS_DOWN:'pi pi-thumbs-down',
  26932. THUMBS_UP:'pi pi-thumbs-up',
  26933. TICKET:'pi pi-ticket',
  26934. TIMES:'pi pi-times',
  26935. TIMES_CIRCLE:'pi pi-times-circle',
  26936. TRASH:'pi pi-trash',
  26937. TWITTER:'pi pi-twitter',
  26938. UNDO:'pi pi-undo',
  26939. UNLOCK:'pi pi-unlock',
  26940. UPLOAD:'pi pi-upload',
  26941. USER:'pi pi-user',
  26942. USER_EDIT:'pi pi-user-edit',
  26943. USER_MINUS:'pi pi-user-minus',
  26944. USER_PLUS:'pi pi-user-plus',
  26945. USERS:'pi pi-users',
  26946. VIDEO:'pi pi-video',
  26947. VIMEO:'pi pi-vimeo',
  26948. VOLUME_DOWN:'pi pi-volume-down',
  26949. VOLUME_OFF:'pi pi-volume-off',
  26950. VOLUME_UP:'pi pi-volume-up',
  26951. WALLET:'pi pi-wallet',
  26952. WHATSAPP:'pi pi-whatsapp',
  26953. WIFI:'pi pi-wifi',
  26954. WINDOW_MAXIMIZE:'pi pi-window-maximize',
  26955. WINDOW_MINIMIZE:'pi pi-window-minimize',
  26956. YOUTUBE:'pi pi-youtube'
  26957. };
  26958. const ToastSeverities = {
  26959. INFO: 'info',
  26960. WARN: 'warn',
  26961. ERROR: 'error',
  26962. SUCCESS: 'success'
  26963. };
  26964. /***/ }),
  26965. /***/ "./node_modules/primevue/autocomplete/autocomplete.esm.js":
  26966. /*!****************************************************************!*\
  26967. !*** ./node_modules/primevue/autocomplete/autocomplete.esm.js ***!
  26968. \****************************************************************/
  26969. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  26970. "use strict";
  26971. __webpack_require__.r(__webpack_exports__);
  26972. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  26973. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  26974. /* harmony export */ });
  26975. /* harmony import */ var primevue_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! primevue/utils */ "./node_modules/primevue/utils/utils.esm.js");
  26976. /* harmony import */ var primevue_overlayeventbus__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! primevue/overlayeventbus */ "./node_modules/primevue/overlayeventbus/overlayeventbus.esm.js");
  26977. /* harmony import */ var primevue_button__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! primevue/button */ "./node_modules/primevue/button/button.esm.js");
  26978. /* harmony import */ var primevue_ripple__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! primevue/ripple */ "./node_modules/primevue/ripple/ripple.esm.js");
  26979. /* harmony import */ var primevue_virtualscroller__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! primevue/virtualscroller */ "./node_modules/primevue/virtualscroller/virtualscroller.esm.js");
  26980. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js");
  26981. var script = {
  26982. name: 'AutoComplete',
  26983. inheritAttrs: false,
  26984. emits: ['update:modelValue', 'item-select', 'item-unselect', 'dropdown-click', 'clear', 'complete'],
  26985. props: {
  26986. modelValue: null,
  26987. suggestions: {
  26988. type: Array,
  26989. default: null
  26990. },
  26991. field: {
  26992. type: [String,Function],
  26993. default: null
  26994. },
  26995. optionGroupLabel: null,
  26996. optionGroupChildren: null,
  26997. scrollHeight: {
  26998. type: String,
  26999. default: '200px'
  27000. },
  27001. dropdown: {
  27002. type: Boolean,
  27003. default: false
  27004. },
  27005. dropdownMode: {
  27006. type: String,
  27007. default: 'blank'
  27008. },
  27009. autoHighlight: {
  27010. type: Boolean,
  27011. default: false
  27012. },
  27013. multiple: {
  27014. type: Boolean,
  27015. default: false
  27016. },
  27017. minLength: {
  27018. type: Number,
  27019. default: 1
  27020. },
  27021. delay: {
  27022. type: Number,
  27023. default: 300
  27024. },
  27025. appendTo: {
  27026. type: String,
  27027. default: 'body'
  27028. },
  27029. forceSelection: {
  27030. type: Boolean,
  27031. default: false
  27032. },
  27033. completeOnFocus: {
  27034. type: Boolean,
  27035. default: false
  27036. },
  27037. inputClass: null,
  27038. inputStyle: null,
  27039. class: null,
  27040. style: null,
  27041. panelClass: null,
  27042. virtualScrollerOptions: {
  27043. type: Object,
  27044. default: null
  27045. }
  27046. },
  27047. timeout: null,
  27048. outsideClickListener: null,
  27049. resizeListener: null,
  27050. scrollHandler: null,
  27051. overlay: null,
  27052. virtualScroller: null,
  27053. data() {
  27054. return {
  27055. searching: false,
  27056. focused: false,
  27057. overlayVisible: false,
  27058. inputTextValue: null,
  27059. highlightItem: null
  27060. };
  27061. },
  27062. watch: {
  27063. suggestions() {
  27064. if (this.searching) {
  27065. if (this.suggestions && this.suggestions.length)
  27066. this.showOverlay();
  27067. else
  27068. this.hideOverlay();
  27069. this.searching = false;
  27070. }
  27071. }
  27072. },
  27073. beforeUnmount() {
  27074. this.unbindOutsideClickListener();
  27075. this.unbindResizeListener();
  27076. if (this.scrollHandler) {
  27077. this.scrollHandler.destroy();
  27078. this.scrollHandler = null;
  27079. }
  27080. if (this.overlay) {
  27081. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ZIndexUtils.clear(this.overlay);
  27082. this.overlay = null;
  27083. }
  27084. },
  27085. updated() {
  27086. if (this.overlayVisible) {
  27087. this.alignOverlay();
  27088. }
  27089. },
  27090. methods: {
  27091. getOptionIndex(index, fn) {
  27092. return this.virtualScrollerDisabled ? index : (fn && fn(index)['index']);
  27093. },
  27094. getOptionRenderKey(option) {
  27095. return this.getItemContent(option);
  27096. },
  27097. getOptionGroupRenderKey(optionGroup) {
  27098. return primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(optionGroup, this.optionGroupLabel);
  27099. },
  27100. getOptionGroupLabel(optionGroup) {
  27101. return primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(optionGroup, this.optionGroupLabel);
  27102. },
  27103. getOptionGroupChildren(optionGroup) {
  27104. return primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(optionGroup, this.optionGroupChildren);
  27105. },
  27106. onOverlayEnter(el) {
  27107. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ZIndexUtils.set('overlay', el, this.$primevue.config.zIndex.overlay);
  27108. this.alignOverlay();
  27109. this.bindOutsideClickListener();
  27110. this.bindScrollListener();
  27111. this.bindResizeListener();
  27112. if (this.autoHighlight && this.suggestions && this.suggestions.length) {
  27113. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.addClass(this.list.firstElementChild, 'p-highlight');
  27114. }
  27115. },
  27116. onOverlayLeave() {
  27117. this.unbindOutsideClickListener();
  27118. this.unbindScrollListener();
  27119. this.unbindResizeListener();
  27120. this.overlay = null;
  27121. },
  27122. onOverlayAfterLeave(el) {
  27123. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ZIndexUtils.clear(el);
  27124. },
  27125. alignOverlay() {
  27126. let target = this.multiple ? this.$refs.multiContainer : this.$refs.input;
  27127. if (this.appendDisabled) {
  27128. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.relativePosition(this.overlay, target);
  27129. }
  27130. else {
  27131. this.overlay.style.minWidth = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterWidth(target) + 'px';
  27132. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.absolutePosition(this.overlay, target);
  27133. }
  27134. },
  27135. bindOutsideClickListener() {
  27136. if (!this.outsideClickListener) {
  27137. this.outsideClickListener = (event) => {
  27138. if (this.overlayVisible && this.overlay && this.isOutsideClicked(event)) {
  27139. this.hideOverlay();
  27140. }
  27141. };
  27142. document.addEventListener('click', this.outsideClickListener);
  27143. }
  27144. },
  27145. bindScrollListener() {
  27146. if (!this.scrollHandler) {
  27147. this.scrollHandler = new primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ConnectedOverlayScrollHandler(this.$refs.container, () => {
  27148. if (this.overlayVisible) {
  27149. this.hideOverlay();
  27150. }
  27151. });
  27152. }
  27153. this.scrollHandler.bindScrollListener();
  27154. },
  27155. unbindScrollListener() {
  27156. if (this.scrollHandler) {
  27157. this.scrollHandler.unbindScrollListener();
  27158. }
  27159. },
  27160. bindResizeListener() {
  27161. if (!this.resizeListener) {
  27162. this.resizeListener = () => {
  27163. if (this.overlayVisible) {
  27164. this.hideOverlay();
  27165. }
  27166. };
  27167. window.addEventListener('resize', this.resizeListener);
  27168. }
  27169. },
  27170. unbindResizeListener() {
  27171. if (this.resizeListener) {
  27172. window.removeEventListener('resize', this.resizeListener);
  27173. this.resizeListener = null;
  27174. }
  27175. },
  27176. isOutsideClicked(event) {
  27177. return !this.overlay.contains(event.target) && !this.isInputClicked(event) && !this.isDropdownClicked(event);
  27178. },
  27179. isInputClicked(event) {
  27180. if (this.multiple)
  27181. return event.target === this.$refs.multiContainer || this.$refs.multiContainer.contains(event.target);
  27182. else
  27183. return event.target === this.$refs.input;
  27184. },
  27185. isDropdownClicked(event) {
  27186. return this.$refs.dropdownButton ? (event.target === this.$refs.dropdownButton || this.$refs.dropdownButton.$el.contains(event.target)) : false;
  27187. },
  27188. unbindOutsideClickListener() {
  27189. if (this.outsideClickListener) {
  27190. document.removeEventListener('click', this.outsideClickListener);
  27191. this.outsideClickListener = null;
  27192. }
  27193. },
  27194. selectItem(event, item) {
  27195. if (this.multiple) {
  27196. this.$refs.input.value = '';
  27197. this.inputTextValue = '';
  27198. if (!this.isSelected(item)) {
  27199. let newValue = this.modelValue ? [...this.modelValue, item] : [item];
  27200. this.$emit('update:modelValue', newValue);
  27201. }
  27202. }
  27203. else {
  27204. this.$emit('update:modelValue', item);
  27205. }
  27206. this.$emit('item-select', {
  27207. originalEvent: event,
  27208. value: item
  27209. });
  27210. this.focus();
  27211. this.hideOverlay();
  27212. },
  27213. onMultiContainerClick(event) {
  27214. this.focus();
  27215. if(this.completeOnFocus) {
  27216. this.search(event, '', 'click');
  27217. }
  27218. },
  27219. removeItem(event, index) {
  27220. let removedValue = this.modelValue[index];
  27221. let newValue = this.modelValue.filter((val, i) => (index !== i));
  27222. this.$emit('update:modelValue', newValue);
  27223. this.$emit('item-unselect', {
  27224. originalEvent: event,
  27225. value: removedValue
  27226. });
  27227. },
  27228. onDropdownClick(event) {
  27229. this.focus();
  27230. const query = this.$refs.input.value;
  27231. if (this.dropdownMode === 'blank')
  27232. this.search(event, '', 'dropdown');
  27233. else if (this.dropdownMode === 'current')
  27234. this.search(event, query, 'dropdown');
  27235. this.$emit('dropdown-click', {
  27236. originalEvent: event,
  27237. query: query
  27238. });
  27239. },
  27240. getItemContent(item) {
  27241. return this.field ? primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(item, this.field) : item;
  27242. },
  27243. showOverlay() {
  27244. this.overlayVisible = true;
  27245. },
  27246. hideOverlay() {
  27247. this.overlayVisible = false;
  27248. },
  27249. focus() {
  27250. this.$refs.input.focus();
  27251. },
  27252. search(event, query, source) {
  27253. //allow empty string but not undefined or null
  27254. if (query === undefined || query === null) {
  27255. return;
  27256. }
  27257. //do not search blank values on input change
  27258. if (source === 'input' && query.trim().length === 0) {
  27259. return;
  27260. }
  27261. this.searching = true;
  27262. this.$emit('complete', {
  27263. originalEvent: event,
  27264. query: query
  27265. });
  27266. },
  27267. onInputClicked(event) {
  27268. if(this.completeOnFocus) {
  27269. this.search(event, '', 'click');
  27270. }
  27271. },
  27272. onInput(event) {
  27273. this.inputTextValue = event.target.value;
  27274. if (this.timeout) {
  27275. clearTimeout(this.timeout);
  27276. }
  27277. let query = event.target.value;
  27278. if (!this.multiple) {
  27279. this.$emit('update:modelValue', query);
  27280. }
  27281. if (query.length === 0) {
  27282. this.hideOverlay();
  27283. this.$emit('clear');
  27284. }
  27285. else {
  27286. if (query.length >= this.minLength) {
  27287. this.timeout = setTimeout(() => {
  27288. this.search(event, query, 'input');
  27289. }, this.delay);
  27290. }
  27291. else {
  27292. this.hideOverlay();
  27293. }
  27294. }
  27295. },
  27296. onFocus() {
  27297. this.focused = true;
  27298. },
  27299. onBlur() {
  27300. this.focused = false;
  27301. },
  27302. onKeyDown(event) {
  27303. if (this.overlayVisible) {
  27304. let highlightItem = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.findSingle(this.list, 'li.p-highlight');
  27305. switch(event.which) {
  27306. //down
  27307. case 40:
  27308. if (highlightItem) {
  27309. let nextElement = this.findNextItem(highlightItem);
  27310. if (nextElement) {
  27311. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.addClass(nextElement, 'p-highlight');
  27312. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.removeClass(highlightItem, 'p-highlight');
  27313. nextElement.scrollIntoView({ block: 'nearest', inline: 'start' });
  27314. }
  27315. }
  27316. else {
  27317. highlightItem = this.list.firstElementChild;
  27318. if (primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(highlightItem, 'p-autocomplete-item-group')) {
  27319. highlightItem = this.findNextItem(highlightItem);
  27320. }
  27321. if (highlightItem) {
  27322. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.addClass(highlightItem, 'p-highlight');
  27323. }
  27324. }
  27325. event.preventDefault();
  27326. break;
  27327. //up
  27328. case 38:
  27329. if (highlightItem) {
  27330. let previousElement = this.findPrevItem(highlightItem);
  27331. if (previousElement) {
  27332. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.addClass(previousElement, 'p-highlight');
  27333. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.removeClass(highlightItem, 'p-highlight');
  27334. previousElement.scrollIntoView({ block: 'nearest', inline: 'start' });
  27335. }
  27336. }
  27337. event.preventDefault();
  27338. break;
  27339. //enter
  27340. case 13:
  27341. if (highlightItem) {
  27342. this.selectHighlightItem(event, highlightItem);
  27343. this.hideOverlay();
  27344. }
  27345. event.preventDefault();
  27346. break;
  27347. //escape
  27348. case 27:
  27349. this.hideOverlay();
  27350. event.preventDefault();
  27351. break;
  27352. //tab
  27353. case 9:
  27354. if (highlightItem) {
  27355. this.selectHighlightItem(event, highlightItem);
  27356. }
  27357. this.hideOverlay();
  27358. break;
  27359. }
  27360. }
  27361. if (this.multiple) {
  27362. switch(event.which) {
  27363. //backspace
  27364. case 8:
  27365. if (this.modelValue && this.modelValue.length && !this.$refs.input.value) {
  27366. let removedValue = this.modelValue[this.modelValue.length - 1];
  27367. let newValue = this.modelValue.slice(0, -1);
  27368. this.$emit('update:modelValue', newValue);
  27369. this.$emit('item-unselect', {
  27370. originalEvent: event,
  27371. value: removedValue
  27372. });
  27373. }
  27374. break;
  27375. }
  27376. }
  27377. },
  27378. selectHighlightItem(event, item) {
  27379. if (this.optionGroupLabel) {
  27380. let optionGroup = this.suggestions[item.dataset.group];
  27381. this.selectItem(event, this.getOptionGroupChildren(optionGroup)[item.dataset.index]);
  27382. }
  27383. else {
  27384. this.selectItem(event, this.suggestions[item.dataset.index]);
  27385. }
  27386. },
  27387. findNextItem(item) {
  27388. let nextItem = item.nextElementSibling;
  27389. if (nextItem)
  27390. return primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(nextItem, 'p-autocomplete-item-group') ? this.findNextItem(nextItem) : nextItem;
  27391. else
  27392. return null;
  27393. },
  27394. findPrevItem(item) {
  27395. let prevItem = item.previousElementSibling;
  27396. if (prevItem)
  27397. return primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(prevItem, 'p-autocomplete-item-group') ? this.findPrevItem(prevItem) : prevItem;
  27398. else
  27399. return null;
  27400. },
  27401. onChange(event) {
  27402. if (this.forceSelection) {
  27403. let valid = false;
  27404. let inputValue = event.target.value.trim();
  27405. if (this.suggestions) {
  27406. for (let item of this.suggestions) {
  27407. let itemValue = this.field ? primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(item, this.field) : item;
  27408. if (itemValue && inputValue === itemValue.trim()) {
  27409. valid = true;
  27410. this.selectItem(event, item);
  27411. break;
  27412. }
  27413. }
  27414. }
  27415. if (!valid) {
  27416. this.$refs.input.value = '';
  27417. this.inputTextValue = '';
  27418. this.$emit('clear');
  27419. if (!this.multiple) {
  27420. this.$emit('update:modelValue', null);
  27421. }
  27422. }
  27423. }
  27424. },
  27425. isSelected(val) {
  27426. let selected = false;
  27427. if (this.modelValue && this.modelValue.length) {
  27428. for (let i = 0; i < this.modelValue.length; i++) {
  27429. if (primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.equals(this.modelValue[i], val)) {
  27430. selected = true;
  27431. break;
  27432. }
  27433. }
  27434. }
  27435. return selected;
  27436. },
  27437. overlayRef(el) {
  27438. this.overlay = el;
  27439. },
  27440. listRef(el, contentRef) {
  27441. this.list = el;
  27442. contentRef && contentRef(el); // for virtualScroller
  27443. },
  27444. virtualScrollerRef(el) {
  27445. this.virtualScroller = el;
  27446. },
  27447. onOverlayClick(event) {
  27448. primevue_overlayeventbus__WEBPACK_IMPORTED_MODULE_1__["default"].emit('overlay-click', {
  27449. originalEvent: event,
  27450. target: this.$el
  27451. });
  27452. }
  27453. },
  27454. computed: {
  27455. containerClass() {
  27456. return ['p-autocomplete p-component p-inputwrapper', this.class, {
  27457. 'p-autocomplete-dd': this.dropdown,
  27458. 'p-autocomplete-multiple': this.multiple,
  27459. 'p-inputwrapper-filled': ((this.modelValue) || (this.inputTextValue && this.inputTextValue.length)),
  27460. 'p-inputwrapper-focus': this.focused
  27461. }];
  27462. },
  27463. inputFieldClass() {
  27464. return ['p-autocomplete-input p-inputtext p-component', this.inputClass, {
  27465. 'p-autocomplete-dd-input': this.dropdown,
  27466. 'p-disabled': this.$attrs.disabled
  27467. }];
  27468. },
  27469. multiContainerClass() {
  27470. return ['p-autocomplete-multiple-container p-component p-inputtext', {
  27471. 'p-disabled': this.$attrs.disabled,
  27472. 'p-focus': this.focused
  27473. }];
  27474. },
  27475. panelStyleClass() {
  27476. return [
  27477. 'p-autocomplete-panel p-component', this.panelClass, {
  27478. 'p-input-filled': this.$primevue.config.inputStyle === 'filled',
  27479. 'p-ripple-disabled': this.$primevue.config.ripple === false
  27480. }];
  27481. },
  27482. inputValue() {
  27483. if (this.modelValue) {
  27484. if (this.field && typeof this.modelValue === 'object') {
  27485. const resolvedFieldData = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(this.modelValue, this.field);
  27486. return resolvedFieldData != null ? resolvedFieldData : this.modelValue;
  27487. }
  27488. else
  27489. return this.modelValue;
  27490. }
  27491. else {
  27492. return '';
  27493. }
  27494. },
  27495. listId() {
  27496. return (0,primevue_utils__WEBPACK_IMPORTED_MODULE_0__.UniqueComponentId)() + '_list';
  27497. },
  27498. appendDisabled() {
  27499. return this.appendTo === 'self';
  27500. },
  27501. appendTarget() {
  27502. return this.appendDisabled ? null : this.appendTo;
  27503. },
  27504. virtualScrollerDisabled() {
  27505. return !this.virtualScrollerOptions;
  27506. }
  27507. },
  27508. components: {
  27509. 'Button': primevue_button__WEBPACK_IMPORTED_MODULE_2__["default"],
  27510. 'VirtualScroller': primevue_virtualscroller__WEBPACK_IMPORTED_MODULE_4__["default"]
  27511. },
  27512. directives: {
  27513. 'ripple': primevue_ripple__WEBPACK_IMPORTED_MODULE_3__["default"]
  27514. }
  27515. };
  27516. const _hoisted_1 = { class: "p-autocomplete-token-label" };
  27517. const _hoisted_2 = { class: "p-autocomplete-input-token" };
  27518. const _hoisted_3 = {
  27519. key: 2,
  27520. class: "p-autocomplete-loader pi pi-spinner pi-spin"
  27521. };
  27522. const _hoisted_4 = { class: "p-autocomplete-item-group" };
  27523. function render(_ctx, _cache, $props, $setup, $data, $options) {
  27524. const _component_Button = (0,vue__WEBPACK_IMPORTED_MODULE_5__.resolveComponent)("Button");
  27525. const _component_VirtualScroller = (0,vue__WEBPACK_IMPORTED_MODULE_5__.resolveComponent)("VirtualScroller");
  27526. const _directive_ripple = (0,vue__WEBPACK_IMPORTED_MODULE_5__.resolveDirective)("ripple");
  27527. return ((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createBlock)("span", {
  27528. ref: "container",
  27529. class: $options.containerClass,
  27530. "aria-haspopup": "listbox",
  27531. "aria-owns": $options.listId,
  27532. "aria-expanded": $data.overlayVisible,
  27533. style: $props.style
  27534. }, [
  27535. (!$props.multiple)
  27536. ? ((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createBlock)("input", (0,vue__WEBPACK_IMPORTED_MODULE_5__.mergeProps)({
  27537. key: 0,
  27538. ref: "input",
  27539. class: $options.inputFieldClass,
  27540. style: $props.inputStyle
  27541. }, _ctx.$attrs, {
  27542. value: $options.inputValue,
  27543. onClick: _cache[1] || (_cache[1] = (...args) => ($options.onInputClicked && $options.onInputClicked(...args))),
  27544. onInput: _cache[2] || (_cache[2] = (...args) => ($options.onInput && $options.onInput(...args))),
  27545. onFocus: _cache[3] || (_cache[3] = (...args) => ($options.onFocus && $options.onFocus(...args))),
  27546. onBlur: _cache[4] || (_cache[4] = (...args) => ($options.onBlur && $options.onBlur(...args))),
  27547. onKeydown: _cache[5] || (_cache[5] = (...args) => ($options.onKeyDown && $options.onKeyDown(...args))),
  27548. onChange: _cache[6] || (_cache[6] = (...args) => ($options.onChange && $options.onChange(...args))),
  27549. type: "text",
  27550. autoComplete: "off",
  27551. role: "searchbox",
  27552. "aria-autocomplete": "list",
  27553. "aria-controls": $options.listId
  27554. }), null, 16, ["value", "aria-controls"]))
  27555. : (0,vue__WEBPACK_IMPORTED_MODULE_5__.createCommentVNode)("", true),
  27556. ($props.multiple)
  27557. ? ((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createBlock)("ul", {
  27558. key: 1,
  27559. ref: "multiContainer",
  27560. class: $options.multiContainerClass,
  27561. onClick: _cache[12] || (_cache[12] = (...args) => ($options.onMultiContainerClick && $options.onMultiContainerClick(...args)))
  27562. }, [
  27563. ((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_5__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_5__.renderList)($props.modelValue, (item, i) => {
  27564. return ((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createBlock)("li", {
  27565. key: i,
  27566. class: "p-autocomplete-token"
  27567. }, [
  27568. (0,vue__WEBPACK_IMPORTED_MODULE_5__.renderSlot)(_ctx.$slots, "chip", { value: item }, () => [
  27569. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createVNode)("span", _hoisted_1, (0,vue__WEBPACK_IMPORTED_MODULE_5__.toDisplayString)($options.getItemContent(item)), 1)
  27570. ]),
  27571. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createVNode)("span", {
  27572. class: "p-autocomplete-token-icon pi pi-times-circle",
  27573. onClick: $event => ($options.removeItem($event, i))
  27574. }, null, 8, ["onClick"])
  27575. ]))
  27576. }), 128)),
  27577. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createVNode)("li", _hoisted_2, [
  27578. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createVNode)("input", (0,vue__WEBPACK_IMPORTED_MODULE_5__.mergeProps)({
  27579. ref: "input",
  27580. type: "text",
  27581. autoComplete: "off"
  27582. }, _ctx.$attrs, {
  27583. onInput: _cache[7] || (_cache[7] = (...args) => ($options.onInput && $options.onInput(...args))),
  27584. onFocus: _cache[8] || (_cache[8] = (...args) => ($options.onFocus && $options.onFocus(...args))),
  27585. onBlur: _cache[9] || (_cache[9] = (...args) => ($options.onBlur && $options.onBlur(...args))),
  27586. onKeydown: _cache[10] || (_cache[10] = (...args) => ($options.onKeyDown && $options.onKeyDown(...args))),
  27587. onChange: _cache[11] || (_cache[11] = (...args) => ($options.onChange && $options.onChange(...args))),
  27588. role: "searchbox",
  27589. "aria-autocomplete": "list",
  27590. "aria-controls": $options.listId
  27591. }), null, 16, ["aria-controls"])
  27592. ])
  27593. ], 2))
  27594. : (0,vue__WEBPACK_IMPORTED_MODULE_5__.createCommentVNode)("", true),
  27595. ($data.searching)
  27596. ? ((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createBlock)("i", _hoisted_3))
  27597. : (0,vue__WEBPACK_IMPORTED_MODULE_5__.createCommentVNode)("", true),
  27598. ($props.dropdown)
  27599. ? ((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createBlock)(_component_Button, {
  27600. key: 3,
  27601. ref: "dropdownButton",
  27602. type: "button",
  27603. icon: "pi pi-chevron-down",
  27604. class: "p-autocomplete-dropdown",
  27605. disabled: _ctx.$attrs.disabled,
  27606. onClick: $options.onDropdownClick
  27607. }, null, 8, ["disabled", "onClick"]))
  27608. : (0,vue__WEBPACK_IMPORTED_MODULE_5__.createCommentVNode)("", true),
  27609. ((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_5__.Teleport, {
  27610. to: $options.appendTarget,
  27611. disabled: $options.appendDisabled
  27612. }, [
  27613. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createVNode)(vue__WEBPACK_IMPORTED_MODULE_5__.Transition, {
  27614. name: "p-connected-overlay",
  27615. onEnter: $options.onOverlayEnter,
  27616. onLeave: $options.onOverlayLeave,
  27617. onAfterLeave: $options.onOverlayAfterLeave
  27618. }, {
  27619. default: (0,vue__WEBPACK_IMPORTED_MODULE_5__.withCtx)(() => [
  27620. ($data.overlayVisible)
  27621. ? ((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createBlock)("div", {
  27622. key: 0,
  27623. ref: $options.overlayRef,
  27624. class: $options.panelStyleClass,
  27625. style: {'max-height': $options.virtualScrollerDisabled ? $props.scrollHeight : ''},
  27626. onClick: _cache[13] || (_cache[13] = (...args) => ($options.onOverlayClick && $options.onOverlayClick(...args)))
  27627. }, [
  27628. (0,vue__WEBPACK_IMPORTED_MODULE_5__.renderSlot)(_ctx.$slots, "header", {
  27629. value: $props.modelValue,
  27630. suggestions: $props.suggestions
  27631. }),
  27632. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createVNode)(_component_VirtualScroller, (0,vue__WEBPACK_IMPORTED_MODULE_5__.mergeProps)({ ref: $options.virtualScrollerRef }, $props.virtualScrollerOptions, {
  27633. style: {'height': $props.scrollHeight},
  27634. items: $props.suggestions,
  27635. disabled: $options.virtualScrollerDisabled
  27636. }), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createSlots)({
  27637. content: (0,vue__WEBPACK_IMPORTED_MODULE_5__.withCtx)(({ styleClass, contentRef, items, getItemOptions, contentStyle }) => [
  27638. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createVNode)("ul", {
  27639. id: $options.listId,
  27640. ref: (el) => $options.listRef(el, contentRef),
  27641. class: ['p-autocomplete-items', styleClass],
  27642. style: contentStyle,
  27643. role: "listbox"
  27644. }, [
  27645. (!$props.optionGroupLabel)
  27646. ? ((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_5__.Fragment, { key: 0 }, (0,vue__WEBPACK_IMPORTED_MODULE_5__.renderList)(items, (item, i) => {
  27647. return (0,vue__WEBPACK_IMPORTED_MODULE_5__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createBlock)("li", {
  27648. class: "p-autocomplete-item",
  27649. key: $options.getOptionRenderKey(item),
  27650. onClick: $event => ($options.selectItem($event, item)),
  27651. role: "option",
  27652. "data-index": $options.getOptionIndex(i, getItemOptions)
  27653. }, [
  27654. (0,vue__WEBPACK_IMPORTED_MODULE_5__.renderSlot)(_ctx.$slots, "item", {
  27655. item: item,
  27656. index: $options.getOptionIndex(i, getItemOptions)
  27657. }, () => [
  27658. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_5__.toDisplayString)($options.getItemContent(item)), 1)
  27659. ])
  27660. ], 8, ["onClick", "data-index"])), [
  27661. [_directive_ripple]
  27662. ])
  27663. }), 128))
  27664. : ((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_5__.Fragment, { key: 1 }, (0,vue__WEBPACK_IMPORTED_MODULE_5__.renderList)(items, (optionGroup, i) => {
  27665. return ((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_5__.Fragment, {
  27666. key: $options.getOptionGroupRenderKey(optionGroup)
  27667. }, [
  27668. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createVNode)("li", _hoisted_4, [
  27669. (0,vue__WEBPACK_IMPORTED_MODULE_5__.renderSlot)(_ctx.$slots, "optiongroup", {
  27670. item: optionGroup,
  27671. index: $options.getOptionIndex(i, getItemOptions)
  27672. }, () => [
  27673. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_5__.toDisplayString)($options.getOptionGroupLabel(optionGroup)), 1)
  27674. ])
  27675. ]),
  27676. ((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_5__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_5__.renderList)($options.getOptionGroupChildren(optionGroup), (item, j) => {
  27677. return (0,vue__WEBPACK_IMPORTED_MODULE_5__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createBlock)("li", {
  27678. class: "p-autocomplete-item",
  27679. key: j,
  27680. onClick: $event => ($options.selectItem($event, item)),
  27681. role: "option",
  27682. "data-group": i,
  27683. "data-index": $options.getOptionIndex(j, getItemOptions)
  27684. }, [
  27685. (0,vue__WEBPACK_IMPORTED_MODULE_5__.renderSlot)(_ctx.$slots, "item", {
  27686. item: item,
  27687. index: $options.getOptionIndex(j, getItemOptions)
  27688. }, () => [
  27689. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_5__.toDisplayString)($options.getItemContent(item)), 1)
  27690. ])
  27691. ], 8, ["onClick", "data-group", "data-index"])), [
  27692. [_directive_ripple]
  27693. ])
  27694. }), 128))
  27695. ], 64))
  27696. }), 128))
  27697. ], 14, ["id"])
  27698. ]),
  27699. _: 2
  27700. }, [
  27701. (_ctx.$slots.loader)
  27702. ? {
  27703. name: "loader",
  27704. fn: (0,vue__WEBPACK_IMPORTED_MODULE_5__.withCtx)(({ options }) => [
  27705. (0,vue__WEBPACK_IMPORTED_MODULE_5__.renderSlot)(_ctx.$slots, "loader", { options: options })
  27706. ])
  27707. }
  27708. : undefined
  27709. ]), 1040, ["style", "items", "disabled"]),
  27710. (0,vue__WEBPACK_IMPORTED_MODULE_5__.renderSlot)(_ctx.$slots, "footer", {
  27711. value: $props.modelValue,
  27712. suggestions: $props.suggestions
  27713. })
  27714. ], 6))
  27715. : (0,vue__WEBPACK_IMPORTED_MODULE_5__.createCommentVNode)("", true)
  27716. ]),
  27717. _: 3
  27718. }, 8, ["onEnter", "onLeave", "onAfterLeave"])
  27719. ], 8, ["to", "disabled"]))
  27720. ], 14, ["aria-owns", "aria-expanded"]))
  27721. }
  27722. function styleInject(css, ref) {
  27723. if ( ref === void 0 ) ref = {};
  27724. var insertAt = ref.insertAt;
  27725. if (!css || typeof document === 'undefined') { return; }
  27726. var head = document.head || document.getElementsByTagName('head')[0];
  27727. var style = document.createElement('style');
  27728. style.type = 'text/css';
  27729. if (insertAt === 'top') {
  27730. if (head.firstChild) {
  27731. head.insertBefore(style, head.firstChild);
  27732. } else {
  27733. head.appendChild(style);
  27734. }
  27735. } else {
  27736. head.appendChild(style);
  27737. }
  27738. if (style.styleSheet) {
  27739. style.styleSheet.cssText = css;
  27740. } else {
  27741. style.appendChild(document.createTextNode(css));
  27742. }
  27743. }
  27744. var css_248z = "\n.p-autocomplete {\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n position: relative;\n}\n.p-autocomplete-loader {\n position: absolute;\n top: 50%;\n margin-top: -.5rem;\n}\n.p-autocomplete-dd .p-autocomplete-input {\n -webkit-box-flex: 1;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n width: 1%;\n}\n.p-autocomplete-dd .p-autocomplete-input,\n.p-autocomplete-dd .p-autocomplete-multiple-container {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n.p-autocomplete-dd .p-autocomplete-dropdown {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0px;\n}\n.p-autocomplete .p-autocomplete-panel {\n min-width: 100%;\n}\n.p-autocomplete-panel {\n position: absolute;\n overflow: auto;\n top: 0;\n left: 0;\n}\n.p-autocomplete-items {\n margin: 0;\n padding: 0;\n list-style-type: none;\n}\n.p-autocomplete-item {\n cursor: pointer;\n white-space: nowrap;\n position: relative;\n overflow: hidden;\n}\n.p-autocomplete-multiple-container {\n margin: 0;\n padding: 0;\n list-style-type: none;\n cursor: text;\n overflow: hidden;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n}\n.p-autocomplete-token {\n cursor: default;\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-flex: 0;\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n}\n.p-autocomplete-token-icon {\n cursor: pointer;\n}\n.p-autocomplete-input-token {\n -webkit-box-flex: 1;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n}\n.p-autocomplete-input-token input {\n border: 0 none;\n outline: 0 none;\n background-color: transparent;\n margin: 0;\n padding: 0;\n -webkit-box-shadow: none;\n box-shadow: none;\n border-radius: 0;\n width: 100%;\n}\n.p-fluid .p-autocomplete {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n}\n.p-fluid .p-autocomplete-dd .p-autocomplete-input {\n width: 1%;\n}\n";
  27745. styleInject(css_248z);
  27746. script.render = render;
  27747. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (script);
  27748. /***/ }),
  27749. /***/ "./node_modules/primevue/badge/badge.esm.js":
  27750. /*!**************************************************!*\
  27751. !*** ./node_modules/primevue/badge/badge.esm.js ***!
  27752. \**************************************************/
  27753. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  27754. "use strict";
  27755. __webpack_require__.r(__webpack_exports__);
  27756. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  27757. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  27758. /* harmony export */ });
  27759. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js");
  27760. var script = {
  27761. name: 'Badge',
  27762. props: {
  27763. value: null,
  27764. severity: null,
  27765. size: null
  27766. },
  27767. computed: {
  27768. containerClass() {
  27769. return this.$slots.default ? 'p-overlay-badge': this.badgeClass;
  27770. },
  27771. badgeClass() {
  27772. return ['p-badge p-component', {
  27773. 'p-badge-no-gutter': this.value && String(this.value).length === 1,
  27774. 'p-badge-dot': !this.value && !this.$slots.default,
  27775. 'p-badge-lg': this.size === 'large',
  27776. 'p-badge-xl': this.size === 'xlarge',
  27777. 'p-badge-info': this.severity === 'info',
  27778. 'p-badge-success': this.severity === 'success',
  27779. 'p-badge-warning': this.severity === 'warning',
  27780. 'p-badge-danger': this.severity === 'danger'
  27781. }];
  27782. }
  27783. }
  27784. };
  27785. function render(_ctx, _cache, $props, $setup, $data, $options) {
  27786. return ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)("span", { class: $options.badgeClass }, [
  27787. (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "default", {}, () => [
  27788. (0,vue__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($props.value), 1)
  27789. ])
  27790. ], 2))
  27791. }
  27792. script.render = render;
  27793. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (script);
  27794. /***/ }),
  27795. /***/ "./node_modules/primevue/button/button.esm.js":
  27796. /*!****************************************************!*\
  27797. !*** ./node_modules/primevue/button/button.esm.js ***!
  27798. \****************************************************/
  27799. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  27800. "use strict";
  27801. __webpack_require__.r(__webpack_exports__);
  27802. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  27803. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  27804. /* harmony export */ });
  27805. /* harmony import */ var primevue_ripple__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! primevue/ripple */ "./node_modules/primevue/ripple/ripple.esm.js");
  27806. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js");
  27807. var script = {
  27808. name: 'Button',
  27809. props: {
  27810. label: {
  27811. type: String
  27812. },
  27813. icon: {
  27814. type: String
  27815. },
  27816. iconPos: {
  27817. type: String,
  27818. default: 'left'
  27819. },
  27820. badge: {
  27821. type: String
  27822. },
  27823. badgeClass: {
  27824. type: String,
  27825. default: null
  27826. },
  27827. loading: {
  27828. type: Boolean,
  27829. default: false
  27830. },
  27831. loadingIcon: {
  27832. type: String,
  27833. default: 'pi pi-spinner pi-spin'
  27834. }
  27835. },
  27836. computed: {
  27837. buttonClass() {
  27838. return {
  27839. 'p-button p-component': true,
  27840. 'p-button-icon-only': this.icon && !this.label,
  27841. 'p-button-vertical': (this.iconPos === 'top' || this.iconPos === 'bottom') && this.label,
  27842. 'p-disabled': this.$attrs.disabled || this.loading,
  27843. 'p-button-loading': this.loading,
  27844. 'p-button-loading-label-only': this.loading && !this.icon && this.label
  27845. }
  27846. },
  27847. iconClass() {
  27848. return [
  27849. this.loading ? 'p-button-loading-icon ' + this.loadingIcon : this.icon,
  27850. 'p-button-icon',
  27851. {
  27852. 'p-button-icon-left': this.iconPos === 'left' && this.label,
  27853. 'p-button-icon-right': this.iconPos === 'right' && this.label,
  27854. 'p-button-icon-top': this.iconPos === 'top' && this.label,
  27855. 'p-button-icon-bottom': this.iconPos === 'bottom' && this.label
  27856. }
  27857. ]
  27858. },
  27859. badgeStyleClass() {
  27860. return [
  27861. 'p-badge p-component', this.badgeClass, {
  27862. 'p-badge-no-gutter': this.badge && String(this.badge).length === 1
  27863. }]
  27864. },
  27865. disabled() {
  27866. return this.$attrs.disabled || this.loading;
  27867. }
  27868. },
  27869. directives: {
  27870. 'ripple': primevue_ripple__WEBPACK_IMPORTED_MODULE_0__["default"]
  27871. }
  27872. };
  27873. const _hoisted_1 = { class: "p-button-label" };
  27874. function render(_ctx, _cache, $props, $setup, $data, $options) {
  27875. const _directive_ripple = (0,vue__WEBPACK_IMPORTED_MODULE_1__.resolveDirective)("ripple");
  27876. return (0,vue__WEBPACK_IMPORTED_MODULE_1__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_1__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_1__.createBlock)("button", {
  27877. class: $options.buttonClass,
  27878. type: "button",
  27879. disabled: $options.disabled
  27880. }, [
  27881. (0,vue__WEBPACK_IMPORTED_MODULE_1__.renderSlot)(_ctx.$slots, "default", {}, () => [
  27882. ($props.loading && !$props.icon)
  27883. ? ((0,vue__WEBPACK_IMPORTED_MODULE_1__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_1__.createBlock)("span", {
  27884. key: 0,
  27885. class: $options.iconClass
  27886. }, null, 2))
  27887. : (0,vue__WEBPACK_IMPORTED_MODULE_1__.createCommentVNode)("", true),
  27888. ($props.icon)
  27889. ? ((0,vue__WEBPACK_IMPORTED_MODULE_1__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_1__.createBlock)("span", {
  27890. key: 1,
  27891. class: $options.iconClass
  27892. }, null, 2))
  27893. : (0,vue__WEBPACK_IMPORTED_MODULE_1__.createCommentVNode)("", true),
  27894. (0,vue__WEBPACK_IMPORTED_MODULE_1__.createVNode)("span", _hoisted_1, (0,vue__WEBPACK_IMPORTED_MODULE_1__.toDisplayString)($props.label||' '), 1),
  27895. ($props.badge)
  27896. ? ((0,vue__WEBPACK_IMPORTED_MODULE_1__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_1__.createBlock)("span", {
  27897. key: 2,
  27898. class: $options.badgeStyleClass
  27899. }, (0,vue__WEBPACK_IMPORTED_MODULE_1__.toDisplayString)($props.badge), 3))
  27900. : (0,vue__WEBPACK_IMPORTED_MODULE_1__.createCommentVNode)("", true)
  27901. ])
  27902. ], 10, ["disabled"])), [
  27903. [_directive_ripple]
  27904. ])
  27905. }
  27906. script.render = render;
  27907. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (script);
  27908. /***/ }),
  27909. /***/ "./node_modules/primevue/calendar/calendar.esm.js":
  27910. /*!********************************************************!*\
  27911. !*** ./node_modules/primevue/calendar/calendar.esm.js ***!
  27912. \********************************************************/
  27913. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  27914. "use strict";
  27915. __webpack_require__.r(__webpack_exports__);
  27916. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  27917. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  27918. /* harmony export */ });
  27919. /* harmony import */ var primevue_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! primevue/utils */ "./node_modules/primevue/utils/utils.esm.js");
  27920. /* harmony import */ var primevue_overlayeventbus__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! primevue/overlayeventbus */ "./node_modules/primevue/overlayeventbus/overlayeventbus.esm.js");
  27921. /* harmony import */ var primevue_button__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! primevue/button */ "./node_modules/primevue/button/button.esm.js");
  27922. /* harmony import */ var primevue_ripple__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! primevue/ripple */ "./node_modules/primevue/ripple/ripple.esm.js");
  27923. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js");
  27924. var script = {
  27925. name: 'Calendar',
  27926. inheritAttrs: false,
  27927. emits: ['show', 'hide', 'input', 'month-change', 'year-change', 'date-select', 'update:modelValue', 'today-click', 'clear-click', 'focus', 'blur', 'keydown'],
  27928. props: {
  27929. modelValue: null,
  27930. selectionMode: {
  27931. type: String,
  27932. default: 'single'
  27933. },
  27934. dateFormat: {
  27935. type: String,
  27936. default: null
  27937. },
  27938. inline: {
  27939. type: Boolean,
  27940. default: false
  27941. },
  27942. showOtherMonths: {
  27943. type: Boolean,
  27944. default: true
  27945. },
  27946. selectOtherMonths: {
  27947. type: Boolean,
  27948. default: false
  27949. },
  27950. showIcon: {
  27951. type: Boolean,
  27952. default: false
  27953. },
  27954. icon: {
  27955. type: String,
  27956. default: 'pi pi-calendar'
  27957. },
  27958. numberOfMonths: {
  27959. type: Number,
  27960. default: 1
  27961. },
  27962. responsiveOptions: Array,
  27963. view: {
  27964. type: String,
  27965. default: 'date'
  27966. },
  27967. touchUI: {
  27968. type: Boolean,
  27969. default: false
  27970. },
  27971. monthNavigator: {
  27972. type: Boolean,
  27973. default: false
  27974. },
  27975. yearNavigator: {
  27976. type: Boolean,
  27977. default: false
  27978. },
  27979. yearRange: {
  27980. type: String,
  27981. default: null
  27982. },
  27983. panelClass: {
  27984. type: String,
  27985. default: null
  27986. },
  27987. minDate: {
  27988. type: Date,
  27989. value: null
  27990. },
  27991. maxDate: {
  27992. type: Date,
  27993. value: null
  27994. },
  27995. disabledDates: {
  27996. type: Array,
  27997. value: null
  27998. },
  27999. disabledDays: {
  28000. type: Array,
  28001. value: null
  28002. },
  28003. maxDateCount: {
  28004. type: Number,
  28005. value: null
  28006. },
  28007. showOnFocus: {
  28008. type: Boolean,
  28009. default: true
  28010. },
  28011. autoZIndex: {
  28012. type: Boolean,
  28013. default: true
  28014. },
  28015. baseZIndex: {
  28016. type: Number,
  28017. default: 0
  28018. },
  28019. showButtonBar: {
  28020. type: Boolean,
  28021. default: false
  28022. },
  28023. shortYearCutoff: {
  28024. type: String,
  28025. default: '+10'
  28026. },
  28027. showTime: {
  28028. type: Boolean,
  28029. default: false
  28030. },
  28031. timeOnly: {
  28032. type: Boolean,
  28033. default: false
  28034. },
  28035. hourFormat: {
  28036. type: String,
  28037. default: '24'
  28038. },
  28039. stepHour: {
  28040. type: Number,
  28041. default: 1
  28042. },
  28043. stepMinute: {
  28044. type: Number,
  28045. default: 1
  28046. },
  28047. stepSecond: {
  28048. type: Number,
  28049. default: 1
  28050. },
  28051. showSeconds: {
  28052. type: Boolean,
  28053. default: false
  28054. },
  28055. hideOnDateTimeSelect: {
  28056. type: Boolean,
  28057. default: false
  28058. },
  28059. timeSeparator: {
  28060. type: String,
  28061. default: ':'
  28062. },
  28063. showWeek: {
  28064. type: Boolean,
  28065. default: false
  28066. },
  28067. manualInput: {
  28068. type: Boolean,
  28069. default: true
  28070. },
  28071. appendTo: {
  28072. type: String,
  28073. default: 'body'
  28074. },
  28075. inputClass: null,
  28076. inputStyle: null,
  28077. class: null,
  28078. style: null
  28079. },
  28080. navigationState: null,
  28081. timePickerChange: false,
  28082. scrollHandler: null,
  28083. outsideClickListener: null,
  28084. maskClickListener: null,
  28085. resizeListener: null,
  28086. overlay: null,
  28087. input: null,
  28088. mask: null,
  28089. timePickerTimer: null,
  28090. preventFocus: false,
  28091. typeUpdate: false,
  28092. created() {
  28093. this.updateCurrentMetaData();
  28094. },
  28095. mounted() {
  28096. this.createResponsiveStyle();
  28097. if (this.inline) {
  28098. this.overlay && this.overlay.setAttribute(this.attributeSelector, '');
  28099. if (!this.$attrs.disabled) {
  28100. this.preventFocus = true;
  28101. this.initFocusableCell();
  28102. if (this.numberOfMonths === 1) {
  28103. this.overlay.style.width = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterWidth(this.$el) + 'px';
  28104. }
  28105. }
  28106. }
  28107. else {
  28108. this.input.value = this.formatValue(this.modelValue);
  28109. }
  28110. },
  28111. updated() {
  28112. if (this.overlay) {
  28113. this.preventFocus = true;
  28114. this.updateFocus();
  28115. }
  28116. if (this.input && this.selectionStart != null && this.selectionEnd != null) {
  28117. this.input.selectionStart = this.selectionStart;
  28118. this.input.selectionEnd = this.selectionEnd;
  28119. this.selectionStart = null;
  28120. this.selectionEnd = null;
  28121. }
  28122. },
  28123. beforeUnmount() {
  28124. if (this.timePickerTimer) {
  28125. clearTimeout(this.timePickerTimer);
  28126. }
  28127. if (this.mask) {
  28128. this.destroyMask();
  28129. }
  28130. this.destroyResponsiveStyleElement();
  28131. this.unbindOutsideClickListener();
  28132. this.unbindResizeListener();
  28133. if (this.scrollHandler) {
  28134. this.scrollHandler.destroy();
  28135. this.scrollHandler = null;
  28136. }
  28137. if (this.overlay && this.autoZIndex) {
  28138. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ZIndexUtils.clear(this.overlay);
  28139. }
  28140. this.overlay = null;
  28141. },
  28142. data() {
  28143. return {
  28144. currentMonth: null,
  28145. currentYear: null,
  28146. currentHour: null,
  28147. currentMinute: null,
  28148. currentSecond: null,
  28149. pm: null,
  28150. focused: false,
  28151. overlayVisible: false,
  28152. currentView: this.view
  28153. }
  28154. },
  28155. watch: {
  28156. modelValue(newValue) {
  28157. this.updateCurrentMetaData();
  28158. if (!this.typeUpdate && !this.inline && this.input) {
  28159. this.input.value = this.formatValue(newValue);
  28160. }
  28161. this.typeUpdate = false;
  28162. },
  28163. showTime() {
  28164. this.updateCurrentMetaData();
  28165. },
  28166. months() {
  28167. if (this.overlay) {
  28168. if (!this.focused) {
  28169. setTimeout(this.updateFocus, 0);
  28170. }
  28171. }
  28172. },
  28173. numberOfMonths() {
  28174. this.destroyResponsiveStyleElement();
  28175. this.createResponsiveStyle();
  28176. },
  28177. responsiveOptions() {
  28178. this.destroyResponsiveStyleElement();
  28179. this.createResponsiveStyle();
  28180. },
  28181. currentView() {
  28182. Promise.resolve(null).then(() => this.alignOverlay());
  28183. }
  28184. },
  28185. methods: {
  28186. isComparable() {
  28187. return this.modelValue != null && typeof this.modelValue !== 'string';
  28188. },
  28189. isSelected(dateMeta) {
  28190. if (!this.isComparable()) {
  28191. return false;
  28192. }
  28193. if (this.modelValue) {
  28194. if (this.isSingleSelection()) {
  28195. return this.isDateEquals(this.modelValue, dateMeta);
  28196. }
  28197. else if (this.isMultipleSelection()) {
  28198. let selected = false;
  28199. for (let date of this.modelValue) {
  28200. selected = this.isDateEquals(date, dateMeta);
  28201. if (selected) {
  28202. break;
  28203. }
  28204. }
  28205. return selected;
  28206. }
  28207. else if( this.isRangeSelection()) {
  28208. if (this.modelValue[1])
  28209. return this.isDateEquals(this.modelValue[0], dateMeta) || this.isDateEquals(this.modelValue[1], dateMeta) || this.isDateBetween(this.modelValue[0], this.modelValue[1], dateMeta);
  28210. else {
  28211. return this.isDateEquals(this.modelValue[0], dateMeta);
  28212. }
  28213. }
  28214. }
  28215. return false;
  28216. },
  28217. isMonthSelected(month) {
  28218. if (this.isComparable()) {
  28219. let value = this.isRangeSelection() ? this.modelValue[0] : this.modelValue;
  28220. return !this.isMultipleSelection() ? (value.getMonth() === month && value.getFullYear() === this.currentYear) : false;
  28221. }
  28222. return false;
  28223. },
  28224. isYearSelected(year) {
  28225. if (this.isComparable()) {
  28226. let value = this.isRangeSelection() ? this.modelValue[0] : this.modelValue;
  28227. return !this.isMultipleSelection() && this.isComparable() ? (value.getFullYear() === year) : false;
  28228. }
  28229. return false;
  28230. },
  28231. isDateEquals(value, dateMeta) {
  28232. if (value)
  28233. return value.getDate() === dateMeta.day && value.getMonth() === dateMeta.month && value.getFullYear() === dateMeta.year;
  28234. else
  28235. return false;
  28236. },
  28237. isDateBetween(start, end, dateMeta) {
  28238. let between = false;
  28239. if (start && end) {
  28240. let date = new Date(dateMeta.year, dateMeta.month, dateMeta.day);
  28241. return start.getTime() <= date.getTime() && end.getTime() >= date.getTime();
  28242. }
  28243. return between;
  28244. },
  28245. getFirstDayOfMonthIndex(month, year) {
  28246. let day = new Date();
  28247. day.setDate(1);
  28248. day.setMonth(month);
  28249. day.setFullYear(year);
  28250. let dayIndex = day.getDay() + this.sundayIndex;
  28251. return dayIndex >= 7 ? dayIndex - 7 : dayIndex;
  28252. },
  28253. getDaysCountInMonth(month, year) {
  28254. return 32 - this.daylightSavingAdjust(new Date(year, month, 32)).getDate();
  28255. },
  28256. getDaysCountInPrevMonth(month, year) {
  28257. let prev = this.getPreviousMonthAndYear(month, year);
  28258. return this.getDaysCountInMonth(prev.month, prev.year);
  28259. },
  28260. getPreviousMonthAndYear(month, year) {
  28261. let m, y;
  28262. if (month === 0) {
  28263. m = 11;
  28264. y = year - 1;
  28265. }
  28266. else {
  28267. m = month - 1;
  28268. y = year;
  28269. }
  28270. return {'month':m, 'year': y};
  28271. },
  28272. getNextMonthAndYear(month, year) {
  28273. let m, y;
  28274. if (month === 11) {
  28275. m = 0;
  28276. y = year + 1;
  28277. }
  28278. else {
  28279. m = month + 1;
  28280. y = year;
  28281. }
  28282. return {'month':m,'year':y};
  28283. },
  28284. daylightSavingAdjust(date) {
  28285. if (!date) {
  28286. return null;
  28287. }
  28288. date.setHours(date.getHours() > 12 ? date.getHours() + 2 : 0);
  28289. return date;
  28290. },
  28291. isToday(today, day, month, year) {
  28292. return today.getDate() === day && today.getMonth() === month && today.getFullYear() === year;
  28293. },
  28294. isSelectable(day, month, year, otherMonth) {
  28295. let validMin = true;
  28296. let validMax = true;
  28297. let validDate = true;
  28298. let validDay = true;
  28299. if (otherMonth && !this.selectOtherMonths) {
  28300. return false;
  28301. }
  28302. if (this.minDate) {
  28303. if (this.minDate.getFullYear() > year) {
  28304. validMin = false;
  28305. }
  28306. else if (this.minDate.getFullYear() === year) {
  28307. if (this.minDate.getMonth() > month) {
  28308. validMin = false;
  28309. }
  28310. else if (this.minDate.getMonth() === month) {
  28311. if (this.minDate.getDate() > day) {
  28312. validMin = false;
  28313. }
  28314. }
  28315. }
  28316. }
  28317. if (this.maxDate) {
  28318. if (this.maxDate.getFullYear() < year) {
  28319. validMax = false;
  28320. }
  28321. else if (this.maxDate.getFullYear() === year) {
  28322. if (this.maxDate.getMonth() < month) {
  28323. validMax = false;
  28324. }
  28325. else if (this.maxDate.getMonth() === month) {
  28326. if (this.maxDate.getDate() < day) {
  28327. validMax = false;
  28328. }
  28329. }
  28330. }
  28331. }
  28332. if (this.disabledDates) {
  28333. validDate = !this.isDateDisabled(day,month,year);
  28334. }
  28335. if (this.disabledDays) {
  28336. validDay = !this.isDayDisabled(day,month,year);
  28337. }
  28338. return validMin && validMax && validDate && validDay;
  28339. },
  28340. onOverlayEnter(el) {
  28341. el.setAttribute(this.attributeSelector, '');
  28342. if (this.autoZIndex) {
  28343. if (this.touchUI)
  28344. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ZIndexUtils.set('modal', el, this.baseZIndex || this.$primevue.config.zIndex.modal);
  28345. else
  28346. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ZIndexUtils.set('overlay', el, this.baseZIndex || this.$primevue.config.zIndex.overlay);
  28347. }
  28348. this.alignOverlay();
  28349. this.$emit('show');
  28350. },
  28351. onOverlayEnterComplete() {
  28352. this.bindOutsideClickListener();
  28353. this.bindScrollListener();
  28354. this.bindResizeListener();
  28355. },
  28356. onOverlayAfterLeave(el) {
  28357. if (this.autoZIndex) {
  28358. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ZIndexUtils.clear(el);
  28359. }
  28360. },
  28361. onOverlayLeave() {
  28362. this.currentView = this.view;
  28363. this.unbindOutsideClickListener();
  28364. this.unbindScrollListener();
  28365. this.unbindResizeListener();
  28366. this.$emit('hide');
  28367. if (this.mask) {
  28368. this.disableModality();
  28369. }
  28370. this.overlay = null;
  28371. },
  28372. onPrevButtonClick(event) {
  28373. if(this.showOtherMonths) {
  28374. this.navigationState = {backward: true, button: true};
  28375. this.navBackward(event);
  28376. }
  28377. },
  28378. onNextButtonClick(event) {
  28379. if(this.showOtherMonths) {
  28380. this.navigationState = {backward: false, button: true};
  28381. this.navForward(event);
  28382. }
  28383. },
  28384. navBackward(event) {
  28385. event.preventDefault();
  28386. if (!this.isEnabled()) {
  28387. return;
  28388. }
  28389. if (this.currentView === 'month') {
  28390. this.decrementYear();
  28391. }
  28392. else if (this.currentView === 'year') {
  28393. this.decrementDecade();
  28394. }
  28395. else {
  28396. if (this.currentMonth === 0) {
  28397. this.currentMonth = 11;
  28398. this.decrementYear();
  28399. }
  28400. else {
  28401. this.currentMonth--;
  28402. }
  28403. this.$emit('month-change', {month: this.currentMonth, year: this.currentYear});
  28404. }
  28405. },
  28406. navForward(event) {
  28407. event.preventDefault();
  28408. if (!this.isEnabled()) {
  28409. return;
  28410. }
  28411. if (this.currentView === 'month') {
  28412. this.incrementYear();
  28413. }
  28414. else if (this.currentView === 'year') {
  28415. this.incrementDecade();
  28416. }
  28417. else {
  28418. if (this.currentMonth === 11) {
  28419. this.currentMonth = 0;
  28420. this.incrementYear();
  28421. }
  28422. else {
  28423. this.currentMonth++;
  28424. }
  28425. this.$emit('month-change', {month: this.currentMonth , year: this.currentYear});
  28426. }
  28427. },
  28428. decrementYear() {
  28429. this.currentYear--;
  28430. },
  28431. decrementDecade() {
  28432. this.currentYear = this.currentYear - 10;
  28433. },
  28434. incrementYear() {
  28435. this.currentYear++;
  28436. },
  28437. incrementDecade() {
  28438. this.currentYear = this.currentYear + 10;
  28439. },
  28440. switchToMonthView(event) {
  28441. this.currentView = 'month';
  28442. setTimeout(this.updateFocus, 0);
  28443. event.preventDefault();
  28444. },
  28445. switchToYearView(event) {
  28446. this.currentView = 'year';
  28447. setTimeout(this.updateFocus, 0);
  28448. event.preventDefault();
  28449. },
  28450. isEnabled() {
  28451. return !this.$attrs.disabled && !this.$attrs.readonly;
  28452. },
  28453. updateCurrentTimeMeta(date) {
  28454. let currentHour = date.getHours();
  28455. if (this.hourFormat === '12') {
  28456. this.pm = currentHour > 11;
  28457. if (currentHour >= 12)
  28458. currentHour = (currentHour == 12) ? 12 : currentHour - 12;
  28459. else
  28460. currentHour = (currentHour == 0) ? 12 : currentHour;
  28461. }
  28462. this.currentHour = Math.floor(currentHour / this.stepHour) * this.stepHour;
  28463. this.currentMinute = Math.floor(date.getMinutes() / this.stepMinute) * this.stepMinute;
  28464. this.currentSecond = Math.floor(date.getSeconds() / this.stepSecond) * this.stepSecond;
  28465. },
  28466. bindOutsideClickListener() {
  28467. if (!this.outsideClickListener) {
  28468. this.outsideClickListener = (event) => {
  28469. if (this.overlayVisible && this.isOutsideClicked(event)) {
  28470. this.overlayVisible = false;
  28471. }
  28472. };
  28473. document.addEventListener('mousedown', this.outsideClickListener);
  28474. }
  28475. },
  28476. unbindOutsideClickListener() {
  28477. if (this.outsideClickListener) {
  28478. document.removeEventListener('mousedown', this.outsideClickListener);
  28479. this.outsideClickListener = null;
  28480. }
  28481. },
  28482. bindScrollListener() {
  28483. if (!this.scrollHandler) {
  28484. this.scrollHandler = new primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ConnectedOverlayScrollHandler(this.$refs.container, () => {
  28485. if (this.overlayVisible) {
  28486. this.overlayVisible = false;
  28487. }
  28488. });
  28489. }
  28490. this.scrollHandler.bindScrollListener();
  28491. },
  28492. unbindScrollListener() {
  28493. if (this.scrollHandler) {
  28494. this.scrollHandler.unbindScrollListener();
  28495. }
  28496. },
  28497. bindResizeListener() {
  28498. if (!this.resizeListener) {
  28499. this.resizeListener = () => {
  28500. if (this.overlayVisible) {
  28501. this.overlayVisible = false;
  28502. }
  28503. };
  28504. window.addEventListener('resize', this.resizeListener);
  28505. }
  28506. },
  28507. unbindResizeListener() {
  28508. if (this.resizeListener) {
  28509. window.removeEventListener('resize', this.resizeListener);
  28510. this.resizeListener = null;
  28511. }
  28512. },
  28513. isOutsideClicked(event) {
  28514. return !(this.$el.isSameNode(event.target) || this.isNavIconClicked(event) ||
  28515. this.$el.contains(event.target) || (this.overlay && this.overlay.contains(event.target)));
  28516. },
  28517. isNavIconClicked(event) {
  28518. return (primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(event.target, 'p-datepicker-prev') || primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(event.target, 'p-datepicker-prev-icon')
  28519. || primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(event.target, 'p-datepicker-next') || primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(event.target, 'p-datepicker-next-icon'));
  28520. },
  28521. alignOverlay() {
  28522. if (this.touchUI) {
  28523. this.enableModality();
  28524. }
  28525. else if (this.overlay) {
  28526. if (this.appendDisabled) {
  28527. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.relativePosition(this.overlay, this.$el);
  28528. }
  28529. else {
  28530. if (this.view === 'date') {
  28531. this.overlay.style.width = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterWidth(this.overlay) + 'px';
  28532. this.overlay.style.minWidth = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterWidth(this.$el) + 'px';
  28533. }
  28534. else {
  28535. this.overlay.style.width = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterWidth(this.$el) + 'px';
  28536. }
  28537. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.absolutePosition(this.overlay, this.$el);
  28538. }
  28539. }
  28540. },
  28541. onButtonClick() {
  28542. if (this.isEnabled()) {
  28543. if (!this.overlayVisible) {
  28544. this.input.focus();
  28545. this.overlayVisible = true;
  28546. }
  28547. else {
  28548. this.overlayVisible = false;
  28549. }
  28550. }
  28551. },
  28552. isDateDisabled(day, month, year) {
  28553. if (this.disabledDates) {
  28554. for (let disabledDate of this.disabledDates) {
  28555. if (disabledDate.getFullYear() === year && disabledDate.getMonth() === month && disabledDate.getDate() === day) {
  28556. return true;
  28557. }
  28558. }
  28559. }
  28560. return false;
  28561. },
  28562. isDayDisabled(day, month, year) {
  28563. if (this.disabledDays) {
  28564. let weekday = new Date(year, month, day);
  28565. let weekdayNumber = weekday.getDay();
  28566. return this.disabledDays.indexOf(weekdayNumber) !== -1;
  28567. }
  28568. return false;
  28569. },
  28570. onMonthDropdownChange(value) {
  28571. this.currentMonth = parseInt(value);
  28572. this.$emit('month-change', {month: this.currentMonth + 1, year: this.currentYear});
  28573. },
  28574. onYearDropdownChange(value) {
  28575. this.currentYear = parseInt(value);
  28576. this.$emit('year-change', {month: this.currentMonth + 1, year: this.currentYear});
  28577. },
  28578. onDateSelect(event, dateMeta) {
  28579. if (this.$attrs.disabled || !dateMeta.selectable) {
  28580. return;
  28581. }
  28582. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.find(this.overlay, '.p-datepicker-calendar td span:not(.p-disabled)').forEach(cell => cell.tabIndex = -1);
  28583. if (event) {
  28584. event.currentTarget.focus();
  28585. }
  28586. if (this.isMultipleSelection() && this.isSelected(dateMeta)) {
  28587. let newValue = this.modelValue.filter(date => !this.isDateEquals(date, dateMeta));
  28588. this.updateModel(newValue);
  28589. }
  28590. else {
  28591. if (this.shouldSelectDate(dateMeta)) {
  28592. if (dateMeta.otherMonth) {
  28593. this.currentMonth = dateMeta.month;
  28594. this.currentYear = dateMeta.year;
  28595. this.selectDate(dateMeta);
  28596. }
  28597. else {
  28598. this.selectDate(dateMeta);
  28599. }
  28600. }
  28601. }
  28602. if (this.isSingleSelection() && (!this.showTime || this.hideOnDateTimeSelect)) {
  28603. setTimeout(() => {
  28604. this.overlayVisible = false;
  28605. }, 150);
  28606. }
  28607. },
  28608. selectDate(dateMeta) {
  28609. let date = new Date(dateMeta.year, dateMeta.month, dateMeta.day);
  28610. if (this.showTime) {
  28611. if (this.hourFormat === '12' && this.pm && this.currentHour != 12)
  28612. date.setHours(this.currentHour + 12);
  28613. else
  28614. date.setHours(this.currentHour);
  28615. date.setMinutes(this.currentMinute);
  28616. date.setSeconds(this.currentSecond);
  28617. }
  28618. if (this.minDate && this.minDate > date) {
  28619. date = this.minDate;
  28620. this.currentHour = date.getHours();
  28621. this.currentMinute = date.getMinutes();
  28622. this.currentSecond = date.getSeconds();
  28623. }
  28624. if (this.maxDate && this.maxDate < date) {
  28625. date = this.maxDate;
  28626. this.currentHour = date.getHours();
  28627. this.currentMinute = date.getMinutes();
  28628. this.currentSecond = date.getSeconds();
  28629. }
  28630. let modelVal = null;
  28631. if (this.isSingleSelection()) {
  28632. modelVal = date;
  28633. }
  28634. else if (this.isMultipleSelection()) {
  28635. modelVal = this.modelValue ? [...this.modelValue, date] : [date];
  28636. }
  28637. else if (this.isRangeSelection()) {
  28638. if (this.modelValue && this.modelValue.length) {
  28639. let startDate = this.modelValue[0];
  28640. let endDate = this.modelValue[1];
  28641. if (!endDate && date.getTime() >= startDate.getTime()) {
  28642. endDate = date;
  28643. }
  28644. else {
  28645. startDate = date;
  28646. endDate = null;
  28647. }
  28648. modelVal = [startDate, endDate];
  28649. }
  28650. else {
  28651. modelVal = [date, null];
  28652. }
  28653. }
  28654. if (modelVal !== null) {
  28655. this.updateModel(modelVal);
  28656. }
  28657. this.$emit('date-select', date);
  28658. },
  28659. updateModel(value) {
  28660. this.$emit('update:modelValue', value);
  28661. },
  28662. shouldSelectDate() {
  28663. if (this.isMultipleSelection())
  28664. return this.maxDateCount != null ? this.maxDateCount > (this.modelValue ? this.modelValue.length : 0) : true;
  28665. else
  28666. return true;
  28667. },
  28668. isSingleSelection() {
  28669. return this.selectionMode === 'single';
  28670. },
  28671. isRangeSelection() {
  28672. return this.selectionMode === 'range';
  28673. },
  28674. isMultipleSelection() {
  28675. return this.selectionMode === 'multiple';
  28676. },
  28677. formatValue(value) {
  28678. if (typeof value === 'string') {
  28679. return value;
  28680. }
  28681. let formattedValue = '';
  28682. if (value) {
  28683. try {
  28684. if (this.isSingleSelection()) {
  28685. formattedValue = this.formatDateTime(value);
  28686. }
  28687. else if (this.isMultipleSelection()) {
  28688. for(let i = 0; i < value.length; i++) {
  28689. let dateAsString = this.formatDateTime(value[i]);
  28690. formattedValue += dateAsString;
  28691. if(i !== (value.length - 1)) {
  28692. formattedValue += ', ';
  28693. }
  28694. }
  28695. }
  28696. else if (this.isRangeSelection()) {
  28697. if (value && value.length) {
  28698. let startDate = value[0];
  28699. let endDate = value[1];
  28700. formattedValue = this.formatDateTime(startDate);
  28701. if (endDate) {
  28702. formattedValue += ' - ' + this.formatDateTime(endDate);
  28703. }
  28704. }
  28705. }
  28706. }
  28707. catch(err) {
  28708. formattedValue = value;
  28709. }
  28710. }
  28711. return formattedValue;
  28712. },
  28713. formatDateTime(date) {
  28714. let formattedValue = null;
  28715. if (date) {
  28716. if(this.timeOnly) {
  28717. formattedValue = this.formatTime(date);
  28718. }
  28719. else {
  28720. formattedValue = this.formatDate(date, this.datePattern);
  28721. if(this.showTime) {
  28722. formattedValue += ' ' + this.formatTime(date);
  28723. }
  28724. }
  28725. }
  28726. return formattedValue;
  28727. },
  28728. formatDate(date, format) {
  28729. if (!date) {
  28730. return '';
  28731. }
  28732. let iFormat;
  28733. const lookAhead = (match) => {
  28734. const matches = (iFormat + 1 < format.length && format.charAt(iFormat + 1) === match);
  28735. if (matches) {
  28736. iFormat++;
  28737. }
  28738. return matches;
  28739. },
  28740. formatNumber = (match, value, len) => {
  28741. let num = '' + value;
  28742. if (lookAhead(match)) {
  28743. while (num.length < len) {
  28744. num = '0' + num;
  28745. }
  28746. }
  28747. return num;
  28748. },
  28749. formatName = (match, value, shortNames, longNames) => {
  28750. return (lookAhead(match) ? longNames[value] : shortNames[value]);
  28751. };
  28752. let output = '';
  28753. let literal = false;
  28754. if (date) {
  28755. for (iFormat = 0; iFormat < format.length; iFormat++) {
  28756. if (literal) {
  28757. if (format.charAt(iFormat) === '\'' && !lookAhead('\'')) {
  28758. literal = false;
  28759. } else {
  28760. output += format.charAt(iFormat);
  28761. }
  28762. } else {
  28763. switch (format.charAt(iFormat)) {
  28764. case 'd':
  28765. output += formatNumber('d', date.getDate(), 2);
  28766. break;
  28767. case 'D':
  28768. output += formatName('D', date.getDay(), this.$primevue.config.locale.dayNamesShort, this.$primevue.config.locale.dayNames);
  28769. break;
  28770. case 'o':
  28771. output += formatNumber('o',
  28772. Math.round((
  28773. new Date(date.getFullYear(), date.getMonth(), date.getDate()).getTime() -
  28774. new Date(date.getFullYear(), 0, 0).getTime()) / 86400000), 3);
  28775. break;
  28776. case 'm':
  28777. output += formatNumber('m', date.getMonth() + 1, 2);
  28778. break;
  28779. case 'M':
  28780. output += formatName('M',date.getMonth(), this.$primevue.config.locale.monthNamesShort, this.$primevue.config.locale.monthNames);
  28781. break;
  28782. case 'y':
  28783. output += lookAhead('y') ? date.getFullYear() : (date.getFullYear() % 100 < 10 ? '0' : '') + (date.getFullYear() % 100);
  28784. break;
  28785. case '@':
  28786. output += date.getTime();
  28787. break;
  28788. case '!':
  28789. output += date.getTime() * 10000 + this.ticksTo1970;
  28790. break;
  28791. case '\'':
  28792. if (lookAhead('\'')) {
  28793. output += '\'';
  28794. } else {
  28795. literal = true;
  28796. }
  28797. break;
  28798. default:
  28799. output += format.charAt(iFormat);
  28800. }
  28801. }
  28802. }
  28803. }
  28804. return output;
  28805. },
  28806. formatTime(date) {
  28807. if (!date) {
  28808. return '';
  28809. }
  28810. let output = '';
  28811. let hours = date.getHours();
  28812. let minutes = date.getMinutes();
  28813. let seconds = date.getSeconds();
  28814. if (this.hourFormat === '12' && hours > 11 && hours !== 12) {
  28815. hours -= 12;
  28816. }
  28817. if (this.hourFormat === '12') {
  28818. output += hours === 0 ? 12 : (hours < 10) ? '0' + hours : hours;
  28819. }
  28820. else {
  28821. output += (hours < 10) ? '0' + hours : hours;
  28822. }
  28823. output += ':';
  28824. output += (minutes < 10) ? '0' + minutes : minutes;
  28825. if (this.showSeconds) {
  28826. output += ':';
  28827. output += (seconds < 10) ? '0' + seconds : seconds;
  28828. }
  28829. if (this.hourFormat === '12') {
  28830. output += date.getHours() > 11 ? ' PM' : ' AM';
  28831. }
  28832. return output;
  28833. },
  28834. onTodayButtonClick(event) {
  28835. let date = new Date();
  28836. let dateMeta = {
  28837. day: date.getDate(),
  28838. month: date.getMonth(),
  28839. year: date.getFullYear(),
  28840. otherMonth: date.getMonth() !== this.currentMonth || date.getFullYear() !== this.currentYear,
  28841. today: true,
  28842. selectable: true
  28843. };
  28844. this.onDateSelect(null, dateMeta);
  28845. this.$emit('today-click', date);
  28846. event.preventDefault();
  28847. },
  28848. onClearButtonClick(event) {
  28849. this.updateModel(null);
  28850. this.overlayVisible = false;
  28851. this.$emit('clear-click', event);
  28852. event.preventDefault();
  28853. },
  28854. onTimePickerElementMouseDown(event, type, direction) {
  28855. if (this.isEnabled()) {
  28856. this.repeat(event, null, type, direction);
  28857. event.preventDefault();
  28858. }
  28859. },
  28860. onTimePickerElementMouseUp(event) {
  28861. if (this.isEnabled()) {
  28862. this.clearTimePickerTimer();
  28863. this.updateModelTime();
  28864. event.preventDefault();
  28865. }
  28866. },
  28867. onTimePickerElementMouseLeave() {
  28868. this.clearTimePickerTimer();
  28869. },
  28870. repeat(event, interval, type, direction) {
  28871. let i = interval||500;
  28872. this.clearTimePickerTimer();
  28873. this.timePickerTimer = setTimeout(() => {
  28874. this.repeat(event, 100, type, direction);
  28875. }, i);
  28876. switch(type) {
  28877. case 0:
  28878. if (direction === 1)
  28879. this.incrementHour(event);
  28880. else
  28881. this.decrementHour(event);
  28882. break;
  28883. case 1:
  28884. if (direction === 1)
  28885. this.incrementMinute(event);
  28886. else
  28887. this.decrementMinute(event);
  28888. break;
  28889. case 2:
  28890. if (direction === 1)
  28891. this.incrementSecond(event);
  28892. else
  28893. this.decrementSecond(event);
  28894. break;
  28895. }
  28896. },
  28897. convertTo24Hour(hours, pm) {
  28898. if (this.hourFormat == '12') {
  28899. if (hours === 12) {
  28900. return (pm ? 12 : 0);
  28901. } else {
  28902. return (pm ? hours + 12 : hours);
  28903. }
  28904. }
  28905. return hours;
  28906. },
  28907. validateTime(hour, minute, second, pm) {
  28908. let value = this.isComparable() ? this.modelValue : this.viewDate;
  28909. const convertedHour = this.convertTo24Hour(hour, pm);
  28910. if (this.isRangeSelection()) {
  28911. value = this.modelValue[1] || this.modelValue[0];
  28912. }
  28913. if (this.isMultipleSelection()) {
  28914. value = this.modelValue[this.modelValue.length - 1];
  28915. }
  28916. const valueDateString = value ? value.toDateString() : null;
  28917. if (this.minDate && valueDateString && this.minDate.toDateString() === valueDateString) {
  28918. if (this.minDate.getHours() > convertedHour) {
  28919. return false;
  28920. }
  28921. if (this.minDate.getHours() === convertedHour) {
  28922. if (this.minDate.getMinutes() > minute) {
  28923. return false;
  28924. }
  28925. if (this.minDate.getMinutes() === minute) {
  28926. if (this.minDate.getSeconds() > second) {
  28927. return false;
  28928. }
  28929. }
  28930. }
  28931. }
  28932. if (this.maxDate && valueDateString && this.maxDate.toDateString() === valueDateString) {
  28933. if (this.maxDate.getHours() < convertedHour) {
  28934. return false;
  28935. }
  28936. if (this.maxDate.getHours() === convertedHour) {
  28937. if (this.maxDate.getMinutes() < minute) {
  28938. return false;
  28939. }
  28940. if (this.maxDate.getMinutes() === minute) {
  28941. if (this.maxDate.getSeconds() < second) {
  28942. return false;
  28943. }
  28944. }
  28945. }
  28946. }
  28947. return true;
  28948. },
  28949. incrementHour(event) {
  28950. let prevHour = this.currentHour;
  28951. let newHour = this.currentHour + this.stepHour;
  28952. let newPM = this.pm;
  28953. if (this.hourFormat == '24')
  28954. newHour = (newHour >= 24) ? (newHour - 24) : newHour;
  28955. else if (this.hourFormat == '12') {
  28956. // Before the AM/PM break, now after
  28957. if (prevHour < 12 && newHour > 11) {
  28958. newPM= !this.pm;
  28959. }
  28960. newHour = (newHour >= 13) ? (newHour - 12) : newHour;
  28961. }
  28962. if (this.validateTime(newHour, this.currentMinute, this.currentSecond, newPM)) {
  28963. this.currentHour = newHour;
  28964. this.pm = newPM;
  28965. }
  28966. event.preventDefault();
  28967. },
  28968. decrementHour(event) {
  28969. let newHour = this.currentHour - this.stepHour;
  28970. let newPM = this.pm;
  28971. if (this.hourFormat == '24')
  28972. newHour = (newHour < 0) ? (24 + newHour) : newHour;
  28973. else if (this.hourFormat == '12') {
  28974. // If we were at noon/midnight, then switch
  28975. if (this.currentHour === 12) {
  28976. newPM = !this.pm;
  28977. }
  28978. newHour = (newHour <= 0) ? (12 + newHour) : newHour;
  28979. }
  28980. if (this.validateTime(newHour, this.currentMinute, this.currentSecond, newPM)) {
  28981. this.currentHour = newHour;
  28982. this.pm = newPM;
  28983. }
  28984. event.preventDefault();
  28985. },
  28986. incrementMinute(event) {
  28987. let newMinute = this.currentMinute + this.stepMinute;
  28988. if (this.validateTime(this.currentHour, newMinute, this.currentSecond, true)) {
  28989. this.currentMinute = (newMinute > 59) ? newMinute - 60 : newMinute;
  28990. }
  28991. event.preventDefault();
  28992. },
  28993. decrementMinute(event) {
  28994. let newMinute = this.currentMinute - this.stepMinute;
  28995. newMinute = (newMinute < 0) ? 60 + newMinute : newMinute;
  28996. if (this.validateTime(this.currentHour, newMinute, this.currentSecond, true)) {
  28997. this.currentMinute = newMinute;
  28998. }
  28999. event.preventDefault();
  29000. },
  29001. incrementSecond(event) {
  29002. let newSecond = this.currentSecond + this.stepSecond;
  29003. if (this.validateTime(this.currentHour, this.currentMinute, newSecond, true)) {
  29004. this.currentSecond = (newSecond > 59) ? newSecond - 60 : newSecond;
  29005. }
  29006. event.preventDefault();
  29007. },
  29008. decrementSecond(event) {
  29009. let newSecond = this.currentSecond - this.stepSecond;
  29010. newSecond = (newSecond < 0) ? 60 + newSecond : newSecond;
  29011. if (this.validateTime(this.currentHour, this.currentMinute, newSecond, true)) {
  29012. this.currentSecond = newSecond;
  29013. }
  29014. event.preventDefault();
  29015. },
  29016. updateModelTime() {
  29017. this.timePickerChange = true;
  29018. let value = this.isComparable() ? this.modelValue : this.viewDate;
  29019. if (this.isRangeSelection()) {
  29020. value = this.modelValue[1] || this.modelValue[0];
  29021. }
  29022. if (this.isMultipleSelection()) {
  29023. value = this.modelValue[this.modelValue.length - 1];
  29024. }
  29025. value = value ? new Date(value.getTime()) : new Date();
  29026. if (this.hourFormat == '12') {
  29027. if (this.currentHour === 12)
  29028. value.setHours(this.pm ? 12 : 0);
  29029. else
  29030. value.setHours(this.pm ? this.currentHour + 12 : this.currentHour);
  29031. }
  29032. else {
  29033. value.setHours(this.currentHour);
  29034. }
  29035. value.setMinutes(this.currentMinute);
  29036. value.setSeconds(this.currentSecond);
  29037. if (this.isRangeSelection()) {
  29038. if (this.modelValue[1])
  29039. value = [this.modelValue[0], value];
  29040. else
  29041. value = [value, null];
  29042. }
  29043. if (this.isMultipleSelection()){
  29044. value = [...this.modelValue.slice(0, -1), value];
  29045. }
  29046. this.updateModel(value);
  29047. this.$emit('date-select', value);
  29048. setTimeout(() => this.timePickerChange = false, 0);
  29049. },
  29050. toggleAMPM(event) {
  29051. this.pm = !this.pm;
  29052. this.updateModelTime();
  29053. event.preventDefault();
  29054. },
  29055. clearTimePickerTimer() {
  29056. if (this.timePickerTimer) {
  29057. clearInterval(this.timePickerTimer);
  29058. }
  29059. },
  29060. onMonthSelect(event, index) {
  29061. if (this.view === 'month') {
  29062. this.onDateSelect(event, {year: this.currentYear, month: index, day: 1, selectable: true});
  29063. }
  29064. else {
  29065. this.currentMonth = index;
  29066. this.currentView = 'date';
  29067. this.$emit('month-change', {month: this.currentMonth + 1, year: this.currentYear});
  29068. }
  29069. setTimeout(this.updateFocus, 0);
  29070. },
  29071. onYearSelect(event, year) {
  29072. if (this.view === 'year') {
  29073. this.onDateSelect(event, {year: year, month: 0, day: 1, selectable: true});
  29074. }
  29075. else {
  29076. this.currentYear = year;
  29077. this.currentView = 'month';
  29078. this.$emit('year-change', {month: this.currentMonth + 1, year: this.currentYear});
  29079. }
  29080. setTimeout(this.updateFocus, 0);
  29081. },
  29082. enableModality() {
  29083. if (!this.mask) {
  29084. this.mask = document.createElement('div');
  29085. this.mask.style.zIndex = String(parseInt(this.overlay.style.zIndex, 10) - 1);
  29086. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.addMultipleClasses(this.mask, 'p-datepicker-mask p-datepicker-mask-scrollblocker p-component-overlay p-component-overlay-enter');
  29087. this.maskClickListener = () => {
  29088. this.overlayVisible = false;
  29089. };
  29090. this.mask.addEventListener('click', this.maskClickListener);
  29091. document.body.appendChild(this.mask);
  29092. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.addClass(document.body, 'p-overflow-hidden');
  29093. }
  29094. },
  29095. disableModality() {
  29096. if (this.mask) {
  29097. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.addClass(this.mask, 'p-component-overlay-leave');
  29098. this.mask.addEventListener('animationend', () => {
  29099. this.destroyMask();
  29100. });
  29101. }
  29102. },
  29103. destroyMask() {
  29104. this.mask.removeEventListener('click', this.maskClickListener);
  29105. this.maskClickListener = null;
  29106. document.body.removeChild(this.mask);
  29107. this.mask = null;
  29108. let bodyChildren = document.body.children;
  29109. let hasBlockerMasks;
  29110. for (let i = 0; i < bodyChildren.length; i++) {
  29111. let bodyChild = bodyChildren[i];
  29112. if(primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(bodyChild, 'p-datepicker-mask-scrollblocker')) {
  29113. hasBlockerMasks = true;
  29114. break;
  29115. }
  29116. }
  29117. if (!hasBlockerMasks) {
  29118. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.removeClass(document.body, 'p-overflow-hidden');
  29119. }
  29120. },
  29121. updateCurrentMetaData() {
  29122. const viewDate = this.viewDate;
  29123. this.currentMonth = viewDate.getMonth();
  29124. this.currentYear = viewDate.getFullYear();
  29125. if (this.showTime || this.timeOnly) {
  29126. this.updateCurrentTimeMeta(viewDate);
  29127. }
  29128. },
  29129. isValidSelection(value) {
  29130. if (value == null) {
  29131. return true;
  29132. }
  29133. let isValid = true;
  29134. if (this.isSingleSelection()) {
  29135. if (!this.isSelectable(value.getDate(), value.getMonth(), value.getFullYear(), false)) {
  29136. isValid = false;
  29137. }
  29138. } else if (value.every(v => this.isSelectable(v.getDate(), v.getMonth(), v.getFullYear(), false))) {
  29139. if (this.isRangeSelection()) {
  29140. isValid = value.length > 1 && value[1] > value[0] ? true : false;
  29141. }
  29142. }
  29143. return isValid;
  29144. },
  29145. parseValue(text) {
  29146. if (!text || text.trim().length === 0) {
  29147. return null;
  29148. }
  29149. let value;
  29150. if (this.isSingleSelection()) {
  29151. value = this.parseDateTime(text);
  29152. }
  29153. else if (this.isMultipleSelection()) {
  29154. let tokens = text.split(',');
  29155. value = [];
  29156. for (let token of tokens) {
  29157. value.push(this.parseDateTime(token.trim()));
  29158. }
  29159. }
  29160. else if (this.isRangeSelection()) {
  29161. let tokens = text.split(' - ');
  29162. value = [];
  29163. for (let i = 0; i < tokens.length; i++) {
  29164. value[i] = this.parseDateTime(tokens[i].trim());
  29165. }
  29166. }
  29167. return value;
  29168. },
  29169. parseDateTime(text) {
  29170. let date;
  29171. let parts = text.split(' ');
  29172. if (this.timeOnly) {
  29173. date = new Date();
  29174. this.populateTime(date, parts[0], parts[1]);
  29175. }
  29176. else {
  29177. const dateFormat = this.datePattern;
  29178. if (this.showTime) {
  29179. date = this.parseDate(parts[0], dateFormat);
  29180. this.populateTime(date, parts[1], parts[2]);
  29181. }
  29182. else {
  29183. date = this.parseDate(text, dateFormat);
  29184. }
  29185. }
  29186. return date;
  29187. },
  29188. populateTime(value, timeString, ampm) {
  29189. if (this.hourFormat == '12' && !ampm) {
  29190. throw 'Invalid Time';
  29191. }
  29192. this.pm = (ampm === 'PM' || ampm === 'pm');
  29193. let time = this.parseTime(timeString);
  29194. value.setHours(time.hour);
  29195. value.setMinutes(time.minute);
  29196. value.setSeconds(time.second);
  29197. },
  29198. parseTime(value) {
  29199. let tokens = value.split(':');
  29200. let validTokenLength = this.showSeconds ? 3 : 2;
  29201. let regex = (/^[0-9][0-9]$/);
  29202. if (tokens.length !== validTokenLength || !tokens[0].match(regex) || !tokens[1].match(regex) || (this.showSeconds && !tokens[2].match(regex))) {
  29203. throw "Invalid time";
  29204. }
  29205. let h = parseInt(tokens[0]);
  29206. let m = parseInt(tokens[1]);
  29207. let s = this.showSeconds ? parseInt(tokens[2]) : null;
  29208. if (isNaN(h) || isNaN(m) || h > 23 || m > 59 || (this.hourFormat == '12' && h > 12) || (this.showSeconds && (isNaN(s) || s > 59))) {
  29209. throw "Invalid time";
  29210. }
  29211. else {
  29212. if (this.hourFormat == '12' && h !== 12 && this.pm) {
  29213. h+= 12;
  29214. }
  29215. return {hour: h, minute: m, second: s};
  29216. }
  29217. },
  29218. parseDate(value, format) {
  29219. if (format == null || value == null) {
  29220. throw "Invalid arguments";
  29221. }
  29222. value = (typeof value === "object" ? value.toString() : value + "");
  29223. if (value === "") {
  29224. return null;
  29225. }
  29226. let iFormat, dim, extra,
  29227. iValue = 0,
  29228. shortYearCutoff = (typeof this.shortYearCutoff !== "string" ? this.shortYearCutoff : new Date().getFullYear() % 100 + parseInt(this.shortYearCutoff, 10)),
  29229. year = -1,
  29230. month = -1,
  29231. day = -1,
  29232. doy = -1,
  29233. literal = false,
  29234. date,
  29235. lookAhead = (match) => {
  29236. let matches = (iFormat + 1 < format.length && format.charAt(iFormat + 1) === match);
  29237. if (matches) {
  29238. iFormat++;
  29239. }
  29240. return matches;
  29241. },
  29242. getNumber = (match) => {
  29243. let isDoubled = lookAhead(match),
  29244. size = (match === "@" ? 14 : (match === "!" ? 20 :
  29245. (match === "y" && isDoubled ? 4 : (match === "o" ? 3 : 2)))),
  29246. minSize = (match === "y" ? size : 1),
  29247. digits = new RegExp("^\\d{" + minSize + "," + size + "}"),
  29248. num = value.substring(iValue).match(digits);
  29249. if (!num) {
  29250. throw "Missing number at position " + iValue;
  29251. }
  29252. iValue += num[ 0 ].length;
  29253. return parseInt(num[ 0 ], 10);
  29254. },
  29255. getName = (match, shortNames, longNames) => {
  29256. let index = -1;
  29257. let arr = lookAhead(match) ? longNames : shortNames;
  29258. let names = [];
  29259. for (let i = 0; i < arr.length; i++) {
  29260. names.push([i,arr[i]]);
  29261. }
  29262. names.sort((a,b) => {
  29263. return -(a[ 1 ].length - b[ 1 ].length);
  29264. });
  29265. for (let i = 0; i < names.length; i++) {
  29266. let name = names[i][1];
  29267. if (value.substr(iValue, name.length).toLowerCase() === name.toLowerCase()) {
  29268. index = names[i][0];
  29269. iValue += name.length;
  29270. break;
  29271. }
  29272. }
  29273. if (index !== -1) {
  29274. return index + 1;
  29275. } else {
  29276. throw "Unknown name at position " + iValue;
  29277. }
  29278. },
  29279. checkLiteral = () => {
  29280. if (value.charAt(iValue) !== format.charAt(iFormat)) {
  29281. throw "Unexpected literal at position " + iValue;
  29282. }
  29283. iValue++;
  29284. };
  29285. if (this.currentView === 'month') {
  29286. day = 1;
  29287. }
  29288. for (iFormat = 0; iFormat < format.length; iFormat++) {
  29289. if (literal) {
  29290. if (format.charAt(iFormat) === "'" && !lookAhead("'")) {
  29291. literal = false;
  29292. } else {
  29293. checkLiteral();
  29294. }
  29295. } else {
  29296. switch (format.charAt(iFormat)) {
  29297. case "d":
  29298. day = getNumber("d");
  29299. break;
  29300. case "D":
  29301. getName("D", this.$primevue.config.locale.dayNamesShort, this.$primevue.config.locale.dayNames);
  29302. break;
  29303. case "o":
  29304. doy = getNumber("o");
  29305. break;
  29306. case "m":
  29307. month = getNumber("m");
  29308. break;
  29309. case "M":
  29310. month = getName("M", this.$primevue.config.locale.monthNamesShort, this.$primevue.config.locale.monthNames);
  29311. break;
  29312. case "y":
  29313. year = getNumber("y");
  29314. break;
  29315. case "@":
  29316. date = new Date(getNumber("@"));
  29317. year = date.getFullYear();
  29318. month = date.getMonth() + 1;
  29319. day = date.getDate();
  29320. break;
  29321. case "!":
  29322. date = new Date((getNumber("!") - this.ticksTo1970) / 10000);
  29323. year = date.getFullYear();
  29324. month = date.getMonth() + 1;
  29325. day = date.getDate();
  29326. break;
  29327. case "'":
  29328. if (lookAhead("'")) {
  29329. checkLiteral();
  29330. } else {
  29331. literal = true;
  29332. }
  29333. break;
  29334. default:
  29335. checkLiteral();
  29336. }
  29337. }
  29338. }
  29339. if (iValue < value.length) {
  29340. extra = value.substr(iValue);
  29341. if (!/^\s+/.test(extra)) {
  29342. throw "Extra/unparsed characters found in date: " + extra;
  29343. }
  29344. }
  29345. if (year === -1) {
  29346. year = new Date().getFullYear();
  29347. } else if (year < 100) {
  29348. year += new Date().getFullYear() - new Date().getFullYear() % 100 +
  29349. (year <= shortYearCutoff ? 0 : -100);
  29350. }
  29351. if (doy > -1) {
  29352. month = 1;
  29353. day = doy;
  29354. do {
  29355. dim = this.getDaysCountInMonth(year, month - 1);
  29356. if (day <= dim) {
  29357. break;
  29358. }
  29359. month++;
  29360. day -= dim;
  29361. // eslint-disable-next-line
  29362. } while (true);
  29363. }
  29364. date = this.daylightSavingAdjust(new Date(year, month - 1, day));
  29365. if (date.getFullYear() !== year || date.getMonth() + 1 !== month || date.getDate() !== day) {
  29366. throw "Invalid date"; // E.g. 31/02/00
  29367. }
  29368. return date;
  29369. },
  29370. getWeekNumber(date) {
  29371. let checkDate = new Date(date.getTime());
  29372. checkDate.setDate(checkDate.getDate() + 4 - ( checkDate.getDay() || 7 ));
  29373. let time = checkDate.getTime();
  29374. checkDate.setMonth( 0 );
  29375. checkDate.setDate( 1 );
  29376. return Math.floor( Math.round((time - checkDate.getTime()) / 86400000 ) / 7 ) + 1;
  29377. },
  29378. onDateCellKeydown(event, date, groupIndex) {
  29379. const cellContent = event.currentTarget;
  29380. const cell = cellContent.parentElement;
  29381. switch (event.which) {
  29382. //down arrow
  29383. case 40: {
  29384. cellContent.tabIndex = '-1';
  29385. let cellIndex = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.index(cell);
  29386. let nextRow = cell.parentElement.nextElementSibling;
  29387. if (nextRow) {
  29388. let focusCell = nextRow.children[cellIndex].children[0];
  29389. if (primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(focusCell, 'p-disabled')) {
  29390. this.navigationState = {backward: false};
  29391. this.navForward(event);
  29392. }
  29393. else {
  29394. nextRow.children[cellIndex].children[0].tabIndex = '0';
  29395. nextRow.children[cellIndex].children[0].focus();
  29396. }
  29397. }
  29398. else {
  29399. this.navigationState = {backward: false};
  29400. this.navForward(event);
  29401. }
  29402. event.preventDefault();
  29403. break;
  29404. }
  29405. //up arrow
  29406. case 38: {
  29407. cellContent.tabIndex = '-1';
  29408. let cellIndex = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.index(cell);
  29409. let prevRow = cell.parentElement.previousElementSibling;
  29410. if (prevRow) {
  29411. let focusCell = prevRow.children[cellIndex].children[0];
  29412. if (primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(focusCell, 'p-disabled')) {
  29413. this.navigationState = {backward: true};
  29414. this.navBackward(event);
  29415. }
  29416. else {
  29417. focusCell.tabIndex = '0';
  29418. focusCell.focus();
  29419. }
  29420. }
  29421. else {
  29422. this.navigationState = {backward: true};
  29423. this.navBackward(event);
  29424. }
  29425. event.preventDefault();
  29426. break;
  29427. }
  29428. //left arrow
  29429. case 37: {
  29430. cellContent.tabIndex = '-1';
  29431. let prevCell = cell.previousElementSibling;
  29432. if (prevCell) {
  29433. let focusCell = prevCell.children[0];
  29434. if (primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(focusCell, 'p-disabled')) {
  29435. this.navigateToMonth(true, groupIndex);
  29436. }
  29437. else {
  29438. focusCell.tabIndex = '0';
  29439. focusCell.focus();
  29440. }
  29441. }
  29442. else {
  29443. this.navigateToMonth(true, groupIndex);
  29444. }
  29445. event.preventDefault();
  29446. break;
  29447. }
  29448. //right arrow
  29449. case 39: {
  29450. cellContent.tabIndex = '-1';
  29451. let nextCell = cell.nextElementSibling;
  29452. if (nextCell) {
  29453. let focusCell = nextCell.children[0];
  29454. if (primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(focusCell, 'p-disabled')) {
  29455. this.navigateToMonth(false, groupIndex);
  29456. }
  29457. else {
  29458. focusCell.tabIndex = '0';
  29459. focusCell.focus();
  29460. }
  29461. }
  29462. else {
  29463. this.navigateToMonth(false, groupIndex);
  29464. }
  29465. event.preventDefault();
  29466. break;
  29467. }
  29468. //enter
  29469. //space
  29470. case 13:
  29471. case 32: {
  29472. this.onDateSelect(event, date);
  29473. event.preventDefault();
  29474. break;
  29475. }
  29476. //escape
  29477. case 27: {
  29478. this.overlayVisible = false;
  29479. event.preventDefault();
  29480. break;
  29481. }
  29482. //tab
  29483. case 9: {
  29484. if (!this.inline) {
  29485. this.trapFocus(event);
  29486. }
  29487. break;
  29488. }
  29489. }
  29490. },
  29491. navigateToMonth(prev, groupIndex) {
  29492. if (prev) {
  29493. if (this.numberOfMonths === 1 || (groupIndex === 0)) {
  29494. this.navigationState = {backward: true};
  29495. this.navBackward(event);
  29496. }
  29497. else {
  29498. let prevMonthContainer = this.overlay.children[groupIndex - 1];
  29499. let cells = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.find(prevMonthContainer, '.p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)');
  29500. let focusCell = cells[cells.length - 1];
  29501. focusCell.tabIndex = '0';
  29502. focusCell.focus();
  29503. }
  29504. }
  29505. else {
  29506. if (this.numberOfMonths === 1 || (groupIndex === this.numberOfMonths - 1)) {
  29507. this.navigationState = {backward: false};
  29508. this.navForward(event);
  29509. }
  29510. else {
  29511. let nextMonthContainer = this.overlay.children[groupIndex + 1];
  29512. let focusCell = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.findSingle(nextMonthContainer, '.p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)');
  29513. focusCell.tabIndex = '0';
  29514. focusCell.focus();
  29515. }
  29516. }
  29517. },
  29518. onMonthCellKeydown(event, index) {
  29519. const cell = event.currentTarget;
  29520. switch (event.which) {
  29521. //arrows
  29522. case 38:
  29523. case 40: {
  29524. cell.tabIndex = '-1';
  29525. var cells = cell.parentElement.children;
  29526. var cellIndex = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.index(cell);
  29527. let nextCell = cells[event.which === 40 ? cellIndex + 3 : cellIndex -3];
  29528. if (nextCell) {
  29529. nextCell.tabIndex = '0';
  29530. nextCell.focus();
  29531. }
  29532. event.preventDefault();
  29533. break;
  29534. }
  29535. //left arrow
  29536. case 37: {
  29537. cell.tabIndex = '-1';
  29538. let prevCell = cell.previousElementSibling;
  29539. if (prevCell) {
  29540. prevCell.tabIndex = '0';
  29541. prevCell.focus();
  29542. }
  29543. else {
  29544. this.navigationState = {backward: true};
  29545. this.navBackward(event);
  29546. }
  29547. event.preventDefault();
  29548. break;
  29549. }
  29550. //right arrow
  29551. case 39: {
  29552. cell.tabIndex = '-1';
  29553. let nextCell = cell.nextElementSibling;
  29554. if (nextCell) {
  29555. nextCell.tabIndex = '0';
  29556. nextCell.focus();
  29557. }
  29558. else {
  29559. this.navigationState = {backward: false};
  29560. this.navForward(event);
  29561. }
  29562. event.preventDefault();
  29563. break;
  29564. }
  29565. //enter
  29566. //space
  29567. case 13:
  29568. case 32: {
  29569. this.onMonthSelect(event, index);
  29570. event.preventDefault();
  29571. break;
  29572. }
  29573. //escape
  29574. case 27: {
  29575. this.overlayVisible = false;
  29576. event.preventDefault();
  29577. break;
  29578. }
  29579. //tab
  29580. case 9: {
  29581. this.trapFocus(event);
  29582. break;
  29583. }
  29584. }
  29585. },
  29586. onYearCellKeydown(event, index) {
  29587. const cell = event.currentTarget;
  29588. switch (event.which) {
  29589. //arrows
  29590. case 38:
  29591. case 40: {
  29592. cell.tabIndex = '-1';
  29593. var cells = cell.parentElement.children;
  29594. var cellIndex = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.index(cell);
  29595. let nextCell = cells[event.which === 40 ? cellIndex + 2 : cellIndex - 2];
  29596. if (nextCell) {
  29597. nextCell.tabIndex = '0';
  29598. nextCell.focus();
  29599. }
  29600. event.preventDefault();
  29601. break;
  29602. }
  29603. //left arrow
  29604. case 37: {
  29605. cell.tabIndex = '-1';
  29606. let prevCell = cell.previousElementSibling;
  29607. if (prevCell) {
  29608. prevCell.tabIndex = '0';
  29609. prevCell.focus();
  29610. }
  29611. else {
  29612. this.navigationState = {backward: true};
  29613. this.navBackward(event);
  29614. }
  29615. event.preventDefault();
  29616. break;
  29617. }
  29618. //right arrow
  29619. case 39: {
  29620. cell.tabIndex = '-1';
  29621. let nextCell = cell.nextElementSibling;
  29622. if (nextCell) {
  29623. nextCell.tabIndex = '0';
  29624. nextCell.focus();
  29625. }
  29626. else {
  29627. this.navigationState = {backward: false};
  29628. this.navForward(event);
  29629. }
  29630. event.preventDefault();
  29631. break;
  29632. }
  29633. //enter
  29634. //space
  29635. case 13:
  29636. case 32: {
  29637. this.onYearSelect(event, index);
  29638. event.preventDefault();
  29639. break;
  29640. }
  29641. //escape
  29642. case 27: {
  29643. this.overlayVisible = false;
  29644. event.preventDefault();
  29645. break;
  29646. }
  29647. //tab
  29648. case 9: {
  29649. this.trapFocus(event);
  29650. break;
  29651. }
  29652. }
  29653. },
  29654. updateFocus() {
  29655. let cell;
  29656. if (this.navigationState) {
  29657. if (this.navigationState.button) {
  29658. this.initFocusableCell();
  29659. if (this.navigationState.backward)
  29660. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.findSingle(this.overlay, '.p-datepicker-prev').focus();
  29661. else
  29662. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.findSingle(this.overlay, '.p-datepicker-next').focus();
  29663. }
  29664. else {
  29665. if (this.navigationState.backward) {
  29666. let cells;
  29667. if (this.currentView === 'month') {
  29668. cells = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.find(this.overlay, '.p-monthpicker .p-monthpicker-month:not(.p-disabled)');
  29669. }
  29670. else if (this.currentView === 'year') {
  29671. cells = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.find(this.overlay, '.p-yearpicker .p-yearpicker-year:not(.p-disabled)');
  29672. }
  29673. else {
  29674. cells = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.find(this.overlay, '.p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)');
  29675. }
  29676. if (cells && cells.length > 0) {
  29677. cell = cells[cells.length - 1];
  29678. }
  29679. }
  29680. else {
  29681. if (this.currentView === 'month') {
  29682. cell = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.findSingle(this.overlay, '.p-monthpicker .p-monthpicker-month:not(.p-disabled)');
  29683. }
  29684. else if (this.currentView === 'year') {
  29685. cell = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.findSingle(this.overlay, '.p-yearpicker .p-yearpicker-year:not(.p-disabled)');
  29686. }
  29687. else {
  29688. cell = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.findSingle(this.overlay, '.p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)');
  29689. }
  29690. }
  29691. if (cell) {
  29692. cell.tabIndex = '0';
  29693. cell.focus();
  29694. }
  29695. }
  29696. this.navigationState = null;
  29697. }
  29698. else {
  29699. this.initFocusableCell();
  29700. }
  29701. },
  29702. initFocusableCell() {
  29703. let cell;
  29704. if (this.currentView === 'month') {
  29705. let cells = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.find(this.overlay, '.p-monthpicker .p-monthpicker-month');
  29706. let selectedCell= primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.findSingle(this.overlay, '.p-monthpicker .p-monthpicker-month.p-highlight');
  29707. cells.forEach(cell => cell.tabIndex = -1);
  29708. cell = selectedCell || cells[0];
  29709. }
  29710. else if (this.currentView === 'year') {
  29711. let cells = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.find(this.overlay, '.p-yearpicker .p-yearpicker-year');
  29712. let selectedCell= primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.findSingle(this.overlay, '.p-yearpicker .p-yearpicker-year.p-highlight');
  29713. cells.forEach(cell => cell.tabIndex = -1);
  29714. cell = selectedCell || cells[0];
  29715. }
  29716. else {
  29717. cell = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.findSingle(this.overlay, 'span.p-highlight');
  29718. if (!cell) {
  29719. let todayCell = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.findSingle(this.overlay, 'td.p-datepicker-today span:not(.p-disabled):not(.p-ink');
  29720. if (todayCell)
  29721. cell = todayCell;
  29722. else
  29723. cell = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.findSingle(this.overlay, '.p-datepicker-calendar td span:not(.p-disabled):not(.p-ink');
  29724. }
  29725. }
  29726. if (cell) {
  29727. cell.tabIndex = '0';
  29728. if (!this.preventFocus && (!this.navigationState || !this.navigationState.button) && !this.timePickerChange) {
  29729. cell.focus();
  29730. }
  29731. this.preventFocus = false;
  29732. }
  29733. },
  29734. trapFocus(event) {
  29735. event.preventDefault();
  29736. let focusableElements = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getFocusableElements(this.overlay);
  29737. if (focusableElements && focusableElements.length > 0) {
  29738. if (!document.activeElement) {
  29739. focusableElements[0].focus();
  29740. }
  29741. else {
  29742. let focusedIndex = focusableElements.indexOf(document.activeElement);
  29743. if (event.shiftKey) {
  29744. if (focusedIndex == -1 || focusedIndex === 0)
  29745. focusableElements[focusableElements.length - 1].focus();
  29746. else
  29747. focusableElements[focusedIndex - 1].focus();
  29748. }
  29749. else {
  29750. if (focusedIndex == -1 || focusedIndex === (focusableElements.length - 1))
  29751. focusableElements[0].focus();
  29752. else
  29753. focusableElements[focusedIndex + 1].focus();
  29754. }
  29755. }
  29756. }
  29757. },
  29758. onContainerButtonKeydown(event) {
  29759. switch (event.which) {
  29760. //tab
  29761. case 9:
  29762. this.trapFocus(event);
  29763. break;
  29764. //escape
  29765. case 27:
  29766. this.overlayVisible = false;
  29767. event.preventDefault();
  29768. break;
  29769. }
  29770. this.$emit('keydown', event);
  29771. },
  29772. onInput(event) {
  29773. try {
  29774. this.selectionStart = this.input.selectionStart;
  29775. this.selectionEnd = this.input.selectionEnd;
  29776. let value = this.parseValue(event.target.value);
  29777. if (this.isValidSelection(value)) {
  29778. this.typeUpdate = true;
  29779. this.updateModel(value);
  29780. }
  29781. }
  29782. catch(err) {
  29783. /* NoOp */
  29784. }
  29785. this.$emit('input', event);
  29786. },
  29787. onFocus(event) {
  29788. if (this.showOnFocus && this.isEnabled()) {
  29789. this.overlayVisible = true;
  29790. }
  29791. this.focused = true;
  29792. this.$emit('focus', event);
  29793. },
  29794. onBlur(event) {
  29795. this.$emit('blur', {originalEvent: event, value: this.input.value});
  29796. this.focused = false;
  29797. this.input.value = this.formatValue(this.modelValue);
  29798. },
  29799. onKeyDown() {
  29800. if (event.keyCode === 40 && this.overlay) {
  29801. this.trapFocus(event);
  29802. }
  29803. else if (event.keyCode === 27) {
  29804. if (this.overlayVisible) {
  29805. this.overlayVisible = false;
  29806. event.preventDefault();
  29807. }
  29808. }
  29809. else if (event.keyCode === 9) {
  29810. if (this.overlay) {
  29811. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getFocusableElements(this.overlay).forEach(el => el.tabIndex = '-1');
  29812. }
  29813. if (this.overlayVisible) {
  29814. this.overlayVisible = false;
  29815. }
  29816. }
  29817. },
  29818. overlayRef(el) {
  29819. this.overlay = el;
  29820. },
  29821. inputRef(el) {
  29822. this.input = el;
  29823. },
  29824. getMonthName(index) {
  29825. return this.$primevue.config.locale.monthNames[index];
  29826. },
  29827. getYear(month) {
  29828. return this.currentView === 'month' ? this.currentYear : month.year;
  29829. },
  29830. onOverlayClick(event) {
  29831. if (!this.inline) {
  29832. primevue_overlayeventbus__WEBPACK_IMPORTED_MODULE_1__["default"].emit('overlay-click', {
  29833. originalEvent: event,
  29834. target: this.$el
  29835. });
  29836. }
  29837. },
  29838. onOverlayMouseUp(event) {
  29839. this.onOverlayClick(event);
  29840. },
  29841. createResponsiveStyle() {
  29842. if (this.numberOfMonths > 1 && this.responsiveOptions) {
  29843. if (!this.responsiveStyleElement) {
  29844. this.responsiveStyleElement = document.createElement('style');
  29845. this.responsiveStyleElement.type = 'text/css';
  29846. document.body.appendChild(this.responsiveStyleElement);
  29847. }
  29848. let innerHTML = '';
  29849. if (this.responsiveOptions) {
  29850. let responsiveOptions = [...this.responsiveOptions]
  29851. .filter(o => !!(o.breakpoint && o.numMonths))
  29852. .sort((o1, o2) => -1 * o1.breakpoint.localeCompare(o2.breakpoint, undefined, { numeric: true }));
  29853. for (let i = 0; i < responsiveOptions.length; i++) {
  29854. let { breakpoint, numMonths } = responsiveOptions[i];
  29855. let styles = `
  29856. .p-datepicker[${this.attributeSelector}] .p-datepicker-group:nth-child(${numMonths}) .p-datepicker-next {
  29857. display: inline-flex !important;
  29858. }
  29859. `;
  29860. for (let j = numMonths; j < this.numberOfMonths; j++) {
  29861. styles += `
  29862. .p-datepicker[${this.attributeSelector}] .p-datepicker-group:nth-child(${j + 1}) {
  29863. display: none !important;
  29864. }
  29865. `;
  29866. }
  29867. innerHTML += `
  29868. @media screen and (max-width: ${breakpoint}) {
  29869. ${styles}
  29870. }
  29871. `;
  29872. }
  29873. }
  29874. this.responsiveStyleElement.innerHTML = innerHTML;
  29875. }
  29876. },
  29877. destroyResponsiveStyleElement() {
  29878. if (this.responsiveStyleElement) {
  29879. this.responsiveStyleElement.remove();
  29880. this.responsiveStyleElement = null;
  29881. }
  29882. }
  29883. },
  29884. computed: {
  29885. viewDate() {
  29886. let propValue = this.modelValue;
  29887. if (propValue && Array.isArray(propValue)) {
  29888. propValue = propValue[0];
  29889. }
  29890. if (propValue && typeof propValue !== 'string') {
  29891. return propValue;
  29892. }
  29893. else {
  29894. let today = new Date();
  29895. if (this.maxDate && this.maxDate < today) {
  29896. return this.maxDate;
  29897. }
  29898. if (this.minDate && this.minDate > today) {
  29899. return this.minDate;
  29900. }
  29901. return today;
  29902. }
  29903. },
  29904. inputFieldValue() {
  29905. return this.formatValue(this.modelValue);
  29906. },
  29907. containerClass() {
  29908. return [
  29909. 'p-calendar p-component p-inputwrapper', this.class,
  29910. {
  29911. 'p-calendar-w-btn': this.showIcon,
  29912. 'p-calendar-timeonly': this.timeOnly,
  29913. 'p-calendar-disabled': this.$attrs.disabled,
  29914. 'p-inputwrapper-filled': this.modelValue,
  29915. 'p-inputwrapper-focus': this.focused
  29916. }
  29917. ];
  29918. },
  29919. panelStyleClass() {
  29920. return ['p-datepicker p-component', this.panelClass, {
  29921. 'p-datepicker-inline': this.inline,
  29922. 'p-disabled': this.$attrs.disabled,
  29923. 'p-datepicker-timeonly': this.timeOnly,
  29924. 'p-datepicker-multiple-month': this.numberOfMonths > 1,
  29925. 'p-datepicker-monthpicker': (this.currentView === 'month'),
  29926. 'p-datepicker-yearpicker': (this.currentView === 'year'),
  29927. 'p-datepicker-touch-ui': this.touchUI,
  29928. 'p-input-filled': this.$primevue.config.inputStyle === 'filled',
  29929. 'p-ripple-disabled': this.$primevue.config.ripple === false
  29930. }];
  29931. },
  29932. months() {
  29933. let months = [];
  29934. for (let i = 0 ; i < this.numberOfMonths; i++) {
  29935. let month = this.currentMonth + i;
  29936. let year = this.currentYear;
  29937. if (month > 11) {
  29938. month = month % 11 - 1;
  29939. year = year + 1;
  29940. }
  29941. let dates = [];
  29942. let firstDay = this.getFirstDayOfMonthIndex(month, year);
  29943. let daysLength = this.getDaysCountInMonth(month, year);
  29944. let prevMonthDaysLength = this.getDaysCountInPrevMonth(month, year);
  29945. let dayNo = 1;
  29946. let today = new Date();
  29947. let weekNumbers = [];
  29948. let monthRows = Math.ceil((daysLength + firstDay) / 7);
  29949. for (let i = 0; i < monthRows; i++) {
  29950. let week = [];
  29951. if (i == 0) {
  29952. for (let j = (prevMonthDaysLength - firstDay + 1); j <= prevMonthDaysLength; j++) {
  29953. let prev = this.getPreviousMonthAndYear(month, year);
  29954. week.push({day: j, month: prev.month, year: prev.year, otherMonth: true,
  29955. today: this.isToday(today, j, prev.month, prev.year), selectable: this.isSelectable(j, prev.month, prev.year, true)});
  29956. }
  29957. let remainingDaysLength = 7 - week.length;
  29958. for (let j = 0; j < remainingDaysLength; j++) {
  29959. week.push({day: dayNo, month: month, year: year, today: this.isToday(today, dayNo, month, year),
  29960. selectable: this.isSelectable(dayNo, month, year, false)});
  29961. dayNo++;
  29962. }
  29963. }
  29964. else {
  29965. for (let j = 0; j < 7; j++) {
  29966. if (dayNo > daysLength) {
  29967. let next = this.getNextMonthAndYear(month, year);
  29968. week.push({day: dayNo - daysLength, month: next.month, year: next.year, otherMonth: true,
  29969. today: this.isToday(today, dayNo - daysLength, next.month, next.year),
  29970. selectable: this.isSelectable((dayNo - daysLength), next.month, next.year, true)});
  29971. }
  29972. else {
  29973. week.push({day: dayNo, month: month, year: year, today: this.isToday(today, dayNo, month, year),
  29974. selectable: this.isSelectable(dayNo, month, year, false)});
  29975. }
  29976. dayNo++;
  29977. }
  29978. }
  29979. if (this.showWeek) {
  29980. weekNumbers.push(this.getWeekNumber(new Date(week[0].year, week[0].month, week[0].day)));
  29981. }
  29982. dates.push(week);
  29983. }
  29984. months.push({
  29985. month: month,
  29986. year: year,
  29987. dates: dates,
  29988. weekNumbers: weekNumbers
  29989. });
  29990. }
  29991. return months;
  29992. },
  29993. weekDays() {
  29994. let weekDays = [];
  29995. let dayIndex = this.$primevue.config.locale.firstDayOfWeek;
  29996. for (let i = 0; i < 7; i++) {
  29997. weekDays.push(this.$primevue.config.locale.dayNamesMin[dayIndex]);
  29998. dayIndex = (dayIndex == 6) ? 0 : ++dayIndex;
  29999. }
  30000. return weekDays;
  30001. },
  30002. ticksTo1970() {
  30003. return (((1970 - 1) * 365 + Math.floor(1970 / 4) - Math.floor(1970 / 100) + Math.floor(1970 / 400)) * 24 * 60 * 60 * 10000000);
  30004. },
  30005. sundayIndex() {
  30006. return this.$primevue.config.locale.firstDayOfWeek > 0 ? 7 - this.$primevue.config.locale.firstDayOfWeek : 0;
  30007. },
  30008. datePattern() {
  30009. return this.dateFormat || this.$primevue.config.locale.dateFormat;
  30010. },
  30011. yearOptions() {
  30012. if (this.yearRange) {
  30013. let $vm = this;
  30014. const years = this.yearRange.split(':');
  30015. let yearStart = parseInt(years[0]);
  30016. let yearEnd = parseInt(years[1]);
  30017. let yearOptions = [];
  30018. if (this.currentYear < yearStart) {
  30019. $vm.currentYear = yearEnd;
  30020. }
  30021. else if (this.currentYear > yearEnd) {
  30022. $vm.currentYear = yearStart;
  30023. }
  30024. for (let i = yearStart; i <= yearEnd; i++) {
  30025. yearOptions.push(i);
  30026. }
  30027. return yearOptions;
  30028. }
  30029. else {
  30030. return null;
  30031. }
  30032. },
  30033. monthPickerValues() {
  30034. let monthPickerValues = [];
  30035. for (let i = 0; i <= 11; i++) {
  30036. monthPickerValues.push(this.$primevue.config.locale.monthNamesShort[i]);
  30037. }
  30038. return monthPickerValues;
  30039. },
  30040. yearPickerValues() {
  30041. let yearPickerValues = [];
  30042. let base = this.currentYear - (this.currentYear % 10);
  30043. for (let i = 0; i < 10; i++) {
  30044. yearPickerValues.push(base + i);
  30045. }
  30046. return yearPickerValues;
  30047. },
  30048. formattedCurrentHour() {
  30049. return this.currentHour < 10 ? '0' + this.currentHour : this.currentHour;
  30050. },
  30051. formattedCurrentMinute() {
  30052. return this.currentMinute < 10 ? '0' + this.currentMinute : this.currentMinute;
  30053. },
  30054. formattedCurrentSecond() {
  30055. return this.currentSecond < 10 ? '0' + this.currentSecond : this.currentSecond;
  30056. },
  30057. todayLabel() {
  30058. return this.$primevue.config.locale.today;
  30059. },
  30060. clearLabel() {
  30061. return this.$primevue.config.locale.clear;
  30062. },
  30063. weekHeaderLabel() {
  30064. return this.$primevue.config.locale.weekHeader;
  30065. },
  30066. monthNames() {
  30067. return this.$primevue.config.locale.monthNames;
  30068. },
  30069. appendDisabled() {
  30070. return this.appendTo === 'self' || this.inline;
  30071. },
  30072. appendTarget() {
  30073. return this.appendDisabled ? null : this.appendTo;
  30074. },
  30075. attributeSelector() {
  30076. return (0,primevue_utils__WEBPACK_IMPORTED_MODULE_0__.UniqueComponentId)();
  30077. },
  30078. switchViewButtonDisabled() {
  30079. return this.numberOfMonths > 1 || this.$attrs.disabled;
  30080. }
  30081. },
  30082. components: {
  30083. 'CalendarButton': primevue_button__WEBPACK_IMPORTED_MODULE_2__["default"]
  30084. },
  30085. directives: {
  30086. 'ripple': primevue_ripple__WEBPACK_IMPORTED_MODULE_3__["default"]
  30087. }
  30088. };
  30089. const _hoisted_1 = { class: "p-datepicker-group-container" };
  30090. const _hoisted_2 = { class: "p-datepicker-header" };
  30091. const _hoisted_3 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("span", { class: "p-datepicker-prev-icon pi pi-chevron-left" }, null, -1);
  30092. const _hoisted_4 = { class: "p-datepicker-title" };
  30093. const _hoisted_5 = {
  30094. key: 2,
  30095. class: "p-datepicker-decade"
  30096. };
  30097. const _hoisted_6 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("span", { class: "p-datepicker-next-icon pi pi-chevron-right" }, null, -1);
  30098. const _hoisted_7 = {
  30099. key: 0,
  30100. class: "p-datepicker-calendar-container"
  30101. };
  30102. const _hoisted_8 = { class: "p-datepicker-calendar" };
  30103. const _hoisted_9 = {
  30104. key: 0,
  30105. scope: "col",
  30106. class: "p-datepicker-weekheader p-disabled"
  30107. };
  30108. const _hoisted_10 = {
  30109. key: 0,
  30110. class: "p-datepicker-weeknumber"
  30111. };
  30112. const _hoisted_11 = { class: "p-disabled" };
  30113. const _hoisted_12 = {
  30114. key: 0,
  30115. style: {"visibility":"hidden"}
  30116. };
  30117. const _hoisted_13 = {
  30118. key: 0,
  30119. class: "p-monthpicker"
  30120. };
  30121. const _hoisted_14 = {
  30122. key: 1,
  30123. class: "p-yearpicker"
  30124. };
  30125. const _hoisted_15 = {
  30126. key: 1,
  30127. class: "p-timepicker"
  30128. };
  30129. const _hoisted_16 = { class: "p-hour-picker" };
  30130. const _hoisted_17 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("span", { class: "pi pi-chevron-up" }, null, -1);
  30131. const _hoisted_18 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("span", { class: "pi pi-chevron-down" }, null, -1);
  30132. const _hoisted_19 = { class: "p-separator" };
  30133. const _hoisted_20 = { class: "p-minute-picker" };
  30134. const _hoisted_21 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("span", { class: "pi pi-chevron-up" }, null, -1);
  30135. const _hoisted_22 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("span", { class: "pi pi-chevron-down" }, null, -1);
  30136. const _hoisted_23 = {
  30137. key: 0,
  30138. class: "p-separator"
  30139. };
  30140. const _hoisted_24 = {
  30141. key: 1,
  30142. class: "p-second-picker"
  30143. };
  30144. const _hoisted_25 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("span", { class: "pi pi-chevron-up" }, null, -1);
  30145. const _hoisted_26 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("span", { class: "pi pi-chevron-down" }, null, -1);
  30146. const _hoisted_27 = {
  30147. key: 2,
  30148. class: "p-separator"
  30149. };
  30150. const _hoisted_28 = {
  30151. key: 3,
  30152. class: "p-ampm-picker"
  30153. };
  30154. const _hoisted_29 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("span", { class: "pi pi-chevron-up" }, null, -1);
  30155. const _hoisted_30 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("span", { class: "pi pi-chevron-down" }, null, -1);
  30156. const _hoisted_31 = {
  30157. key: 2,
  30158. class: "p-datepicker-buttonbar"
  30159. };
  30160. function render(_ctx, _cache, $props, $setup, $data, $options) {
  30161. const _component_CalendarButton = (0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveComponent)("CalendarButton");
  30162. const _directive_ripple = (0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveDirective)("ripple");
  30163. return ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("span", {
  30164. ref: "container",
  30165. class: $options.containerClass,
  30166. style: $props.style
  30167. }, [
  30168. (!$props.inline)
  30169. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("input", (0,vue__WEBPACK_IMPORTED_MODULE_4__.mergeProps)({
  30170. key: 0,
  30171. ref: $options.inputRef,
  30172. type: "text",
  30173. class: ['p-inputtext p-component', $props.inputClass],
  30174. style: $props.inputStyle,
  30175. onInput: _cache[1] || (_cache[1] = (...args) => ($options.onInput && $options.onInput(...args)))
  30176. }, _ctx.$attrs, {
  30177. onFocus: _cache[2] || (_cache[2] = (...args) => ($options.onFocus && $options.onFocus(...args))),
  30178. onBlur: _cache[3] || (_cache[3] = (...args) => ($options.onBlur && $options.onBlur(...args))),
  30179. onKeydown: _cache[4] || (_cache[4] = (...args) => ($options.onKeyDown && $options.onKeyDown(...args))),
  30180. readonly: !$props.manualInput,
  30181. inputmode: "none"
  30182. }), null, 16, ["readonly"]))
  30183. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  30184. ($props.showIcon)
  30185. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(_component_CalendarButton, {
  30186. key: 1,
  30187. icon: $props.icon,
  30188. tabindex: "-1",
  30189. class: "p-datepicker-trigger",
  30190. disabled: _ctx.$attrs.disabled,
  30191. onClick: $options.onButtonClick,
  30192. type: "button",
  30193. "aria-label": $options.inputFieldValue
  30194. }, null, 8, ["icon", "disabled", "onClick", "aria-label"]))
  30195. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  30196. ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Teleport, {
  30197. to: $options.appendTarget,
  30198. disabled: $options.appendDisabled
  30199. }, [
  30200. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)(vue__WEBPACK_IMPORTED_MODULE_4__.Transition, {
  30201. name: "p-connected-overlay",
  30202. onEnter: _cache[67] || (_cache[67] = $event => ($options.onOverlayEnter($event))),
  30203. onAfterEnter: $options.onOverlayEnterComplete,
  30204. onAfterLeave: $options.onOverlayAfterLeave,
  30205. onLeave: $options.onOverlayLeave
  30206. }, {
  30207. default: (0,vue__WEBPACK_IMPORTED_MODULE_4__.withCtx)(() => [
  30208. ($props.inline ? true : $data.overlayVisible)
  30209. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("div", {
  30210. key: 0,
  30211. ref: $options.overlayRef,
  30212. class: $options.panelStyleClass,
  30213. role: $props.inline ? null : 'dialog',
  30214. onClick: _cache[65] || (_cache[65] = (...args) => ($options.onOverlayClick && $options.onOverlayClick(...args))),
  30215. onMouseup: _cache[66] || (_cache[66] = (...args) => ($options.onOverlayMouseUp && $options.onOverlayMouseUp(...args)))
  30216. }, [
  30217. (!$props.timeOnly)
  30218. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, { key: 0 }, [
  30219. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("div", _hoisted_1, [
  30220. ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderList)($options.months, (month, groupIndex) => {
  30221. return ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("div", {
  30222. class: "p-datepicker-group",
  30223. key: month.month + month.year
  30224. }, [
  30225. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("div", _hoisted_2, [
  30226. (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderSlot)(_ctx.$slots, "header"),
  30227. (0,vue__WEBPACK_IMPORTED_MODULE_4__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("button", {
  30228. class: "p-datepicker-prev p-link",
  30229. onClick: _cache[5] || (_cache[5] = (...args) => ($options.onPrevButtonClick && $options.onPrevButtonClick(...args))),
  30230. type: "button",
  30231. onKeydown: _cache[6] || (_cache[6] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
  30232. disabled: _ctx.$attrs.disabled
  30233. }, [
  30234. _hoisted_3
  30235. ], 40, ["disabled"]), [
  30236. [vue__WEBPACK_IMPORTED_MODULE_4__.vShow, groupIndex === 0],
  30237. [_directive_ripple]
  30238. ]),
  30239. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("div", _hoisted_4, [
  30240. ($data.currentView === 'date')
  30241. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("button", {
  30242. key: 0,
  30243. type: "button",
  30244. onClick: _cache[7] || (_cache[7] = (...args) => ($options.switchToMonthView && $options.switchToMonthView(...args))),
  30245. onKeydown: _cache[8] || (_cache[8] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
  30246. class: "p-datepicker-month p-link",
  30247. disabled: $options.switchViewButtonDisabled
  30248. }, (0,vue__WEBPACK_IMPORTED_MODULE_4__.toDisplayString)($options.getMonthName(month.month)), 41, ["disabled"]))
  30249. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  30250. ($data.currentView !== 'year')
  30251. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("button", {
  30252. key: 1,
  30253. type: "button",
  30254. onClick: _cache[9] || (_cache[9] = (...args) => ($options.switchToYearView && $options.switchToYearView(...args))),
  30255. onKeydown: _cache[10] || (_cache[10] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
  30256. class: "p-datepicker-year p-link",
  30257. disabled: $options.switchViewButtonDisabled
  30258. }, (0,vue__WEBPACK_IMPORTED_MODULE_4__.toDisplayString)($options.getYear(month)), 41, ["disabled"]))
  30259. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  30260. ($data.currentView === 'year')
  30261. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("span", _hoisted_5, [
  30262. (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderSlot)(_ctx.$slots, "decade", { years: $options.yearPickerValues }, () => [
  30263. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_4__.toDisplayString)($options.yearPickerValues[0]) + " - " + (0,vue__WEBPACK_IMPORTED_MODULE_4__.toDisplayString)($options.yearPickerValues[$options.yearPickerValues.length - 1]), 1)
  30264. ])
  30265. ]))
  30266. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true)
  30267. ]),
  30268. (0,vue__WEBPACK_IMPORTED_MODULE_4__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("button", {
  30269. class: "p-datepicker-next p-link",
  30270. onClick: _cache[11] || (_cache[11] = (...args) => ($options.onNextButtonClick && $options.onNextButtonClick(...args))),
  30271. type: "button",
  30272. onKeydown: _cache[12] || (_cache[12] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
  30273. disabled: _ctx.$attrs.disabled
  30274. }, [
  30275. _hoisted_6
  30276. ], 40, ["disabled"]), [
  30277. [vue__WEBPACK_IMPORTED_MODULE_4__.vShow, $props.numberOfMonths === 1 ? true : (groupIndex === $props.numberOfMonths - 1)],
  30278. [_directive_ripple]
  30279. ])
  30280. ]),
  30281. ($data.currentView ==='date')
  30282. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("div", _hoisted_7, [
  30283. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("table", _hoisted_8, [
  30284. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("thead", null, [
  30285. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("tr", null, [
  30286. ($props.showWeek)
  30287. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("th", _hoisted_9, [
  30288. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("span", null, (0,vue__WEBPACK_IMPORTED_MODULE_4__.toDisplayString)($options.weekHeaderLabel), 1)
  30289. ]))
  30290. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  30291. ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderList)($options.weekDays, (weekDay) => {
  30292. return ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("th", {
  30293. scope: "col",
  30294. key: weekDay
  30295. }, [
  30296. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("span", null, (0,vue__WEBPACK_IMPORTED_MODULE_4__.toDisplayString)(weekDay), 1)
  30297. ]))
  30298. }), 128))
  30299. ])
  30300. ]),
  30301. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("tbody", null, [
  30302. ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderList)(month.dates, (week, i) => {
  30303. return ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("tr", {
  30304. key: week[0].day + '' + week[0].month
  30305. }, [
  30306. ($props.showWeek)
  30307. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("td", _hoisted_10, [
  30308. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("span", _hoisted_11, [
  30309. (month.weekNumbers[i] < 10)
  30310. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("span", _hoisted_12, "0"))
  30311. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  30312. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createTextVNode)(" " + (0,vue__WEBPACK_IMPORTED_MODULE_4__.toDisplayString)(month.weekNumbers[i]), 1)
  30313. ])
  30314. ]))
  30315. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  30316. ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderList)(week, (date) => {
  30317. return ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("td", {
  30318. key: date.day + '' + date.month,
  30319. class: {'p-datepicker-other-month': date.otherMonth, 'p-datepicker-today': date.today}
  30320. }, [
  30321. (0,vue__WEBPACK_IMPORTED_MODULE_4__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("span", {
  30322. class: {'p-highlight': $options.isSelected(date), 'p-disabled': !date.selectable},
  30323. onClick: $event => ($options.onDateSelect($event, date)),
  30324. draggable: "false",
  30325. onKeydown: $event => ($options.onDateCellKeydown($event,date,groupIndex))
  30326. }, [
  30327. (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderSlot)(_ctx.$slots, "date", { date: date }, () => [
  30328. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_4__.toDisplayString)(date.day), 1)
  30329. ])
  30330. ], 42, ["onClick", "onKeydown"]), [
  30331. [_directive_ripple]
  30332. ])
  30333. ], 2))
  30334. }), 128))
  30335. ]))
  30336. }), 128))
  30337. ])
  30338. ])
  30339. ]))
  30340. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true)
  30341. ]))
  30342. }), 128))
  30343. ]),
  30344. ($data.currentView === 'month')
  30345. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("div", _hoisted_13, [
  30346. ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderList)($options.monthPickerValues, (m, i) => {
  30347. return (0,vue__WEBPACK_IMPORTED_MODULE_4__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("span", {
  30348. key: m,
  30349. onClick: $event => ($options.onMonthSelect($event, i)),
  30350. onKeydown: $event => ($options.onMonthCellKeydown($event,i)),
  30351. class: ["p-monthpicker-month", {'p-highlight': $options.isMonthSelected(i)}]
  30352. }, [
  30353. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_4__.toDisplayString)(m), 1)
  30354. ], 42, ["onClick", "onKeydown"])), [
  30355. [_directive_ripple]
  30356. ])
  30357. }), 128))
  30358. ]))
  30359. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  30360. ($data.currentView === 'year')
  30361. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("div", _hoisted_14, [
  30362. ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderList)($options.yearPickerValues, (y) => {
  30363. return (0,vue__WEBPACK_IMPORTED_MODULE_4__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("span", {
  30364. key: y,
  30365. onClick: $event => ($options.onYearSelect($event, y)),
  30366. onKeydown: $event => ($options.onYearCellKeydown($event,y)),
  30367. class: ["p-yearpicker-year", {'p-highlight': $options.isYearSelected(y)}]
  30368. }, [
  30369. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_4__.toDisplayString)(y), 1)
  30370. ], 42, ["onClick", "onKeydown"])), [
  30371. [_directive_ripple]
  30372. ])
  30373. }), 128))
  30374. ]))
  30375. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true)
  30376. ], 64))
  30377. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  30378. (($props.showTime||$props.timeOnly) && $data.currentView === 'date')
  30379. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("div", _hoisted_15, [
  30380. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("div", _hoisted_16, [
  30381. (0,vue__WEBPACK_IMPORTED_MODULE_4__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("button", {
  30382. class: "p-link",
  30383. onMousedown: _cache[13] || (_cache[13] = $event => ($options.onTimePickerElementMouseDown($event, 0, 1))),
  30384. onMouseup: _cache[14] || (_cache[14] = $event => ($options.onTimePickerElementMouseUp($event))),
  30385. onKeydown: [
  30386. _cache[15] || (_cache[15] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
  30387. _cache[17] || (_cache[17] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)($event => ($options.onTimePickerElementMouseDown($event, 0, 1)), ["enter"])),
  30388. _cache[18] || (_cache[18] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)($event => ($options.onTimePickerElementMouseDown($event, 0, 1)), ["space"]))
  30389. ],
  30390. onMouseleave: _cache[16] || (_cache[16] = $event => ($options.onTimePickerElementMouseLeave())),
  30391. onKeyup: [
  30392. _cache[19] || (_cache[19] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)($event => ($options.onTimePickerElementMouseUp($event)), ["enter"])),
  30393. _cache[20] || (_cache[20] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)($event => ($options.onTimePickerElementMouseUp($event)), ["space"]))
  30394. ],
  30395. type: "button"
  30396. }, [
  30397. _hoisted_17
  30398. ], 544), [
  30399. [_directive_ripple]
  30400. ]),
  30401. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("span", null, (0,vue__WEBPACK_IMPORTED_MODULE_4__.toDisplayString)($options.formattedCurrentHour), 1),
  30402. (0,vue__WEBPACK_IMPORTED_MODULE_4__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("button", {
  30403. class: "p-link",
  30404. onMousedown: _cache[21] || (_cache[21] = $event => ($options.onTimePickerElementMouseDown($event, 0, -1))),
  30405. onMouseup: _cache[22] || (_cache[22] = $event => ($options.onTimePickerElementMouseUp($event))),
  30406. onKeydown: [
  30407. _cache[23] || (_cache[23] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
  30408. _cache[25] || (_cache[25] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)($event => ($options.onTimePickerElementMouseDown($event, 0, -1)), ["enter"])),
  30409. _cache[26] || (_cache[26] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)($event => ($options.onTimePickerElementMouseDown($event, 0, -1)), ["space"]))
  30410. ],
  30411. onMouseleave: _cache[24] || (_cache[24] = $event => ($options.onTimePickerElementMouseLeave())),
  30412. onKeyup: [
  30413. _cache[27] || (_cache[27] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)($event => ($options.onTimePickerElementMouseUp($event)), ["enter"])),
  30414. _cache[28] || (_cache[28] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)($event => ($options.onTimePickerElementMouseUp($event)), ["space"]))
  30415. ],
  30416. type: "button"
  30417. }, [
  30418. _hoisted_18
  30419. ], 544), [
  30420. [_directive_ripple]
  30421. ])
  30422. ]),
  30423. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("div", _hoisted_19, [
  30424. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("span", null, (0,vue__WEBPACK_IMPORTED_MODULE_4__.toDisplayString)($props.timeSeparator), 1)
  30425. ]),
  30426. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("div", _hoisted_20, [
  30427. (0,vue__WEBPACK_IMPORTED_MODULE_4__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("button", {
  30428. class: "p-link",
  30429. onMousedown: _cache[29] || (_cache[29] = $event => ($options.onTimePickerElementMouseDown($event, 1, 1))),
  30430. onMouseup: _cache[30] || (_cache[30] = $event => ($options.onTimePickerElementMouseUp($event))),
  30431. onKeydown: [
  30432. _cache[31] || (_cache[31] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
  30433. _cache[33] || (_cache[33] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)($event => ($options.onTimePickerElementMouseDown($event, 1, 1)), ["enter"])),
  30434. _cache[34] || (_cache[34] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)($event => ($options.onTimePickerElementMouseDown($event, 1, 1)), ["space"]))
  30435. ],
  30436. disabled: _ctx.$attrs.disabled,
  30437. onMouseleave: _cache[32] || (_cache[32] = $event => ($options.onTimePickerElementMouseLeave())),
  30438. onKeyup: [
  30439. _cache[35] || (_cache[35] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)($event => ($options.onTimePickerElementMouseUp($event)), ["enter"])),
  30440. _cache[36] || (_cache[36] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)($event => ($options.onTimePickerElementMouseUp($event)), ["space"]))
  30441. ],
  30442. type: "button"
  30443. }, [
  30444. _hoisted_21
  30445. ], 40, ["disabled"]), [
  30446. [_directive_ripple]
  30447. ]),
  30448. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("span", null, (0,vue__WEBPACK_IMPORTED_MODULE_4__.toDisplayString)($options.formattedCurrentMinute), 1),
  30449. (0,vue__WEBPACK_IMPORTED_MODULE_4__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("button", {
  30450. class: "p-link",
  30451. onMousedown: _cache[37] || (_cache[37] = $event => ($options.onTimePickerElementMouseDown($event, 1, -1))),
  30452. onMouseup: _cache[38] || (_cache[38] = $event => ($options.onTimePickerElementMouseUp($event))),
  30453. onKeydown: [
  30454. _cache[39] || (_cache[39] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
  30455. _cache[41] || (_cache[41] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)($event => ($options.onTimePickerElementMouseDown($event, 1, -1)), ["enter"])),
  30456. _cache[42] || (_cache[42] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)($event => ($options.onTimePickerElementMouseDown($event, 1, -1)), ["space"]))
  30457. ],
  30458. disabled: _ctx.$attrs.disabled,
  30459. onMouseleave: _cache[40] || (_cache[40] = $event => ($options.onTimePickerElementMouseLeave())),
  30460. onKeyup: [
  30461. _cache[43] || (_cache[43] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)($event => ($options.onTimePickerElementMouseUp($event)), ["enter"])),
  30462. _cache[44] || (_cache[44] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)($event => ($options.onTimePickerElementMouseUp($event)), ["space"]))
  30463. ],
  30464. type: "button"
  30465. }, [
  30466. _hoisted_22
  30467. ], 40, ["disabled"]), [
  30468. [_directive_ripple]
  30469. ])
  30470. ]),
  30471. ($props.showSeconds)
  30472. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("div", _hoisted_23, [
  30473. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("span", null, (0,vue__WEBPACK_IMPORTED_MODULE_4__.toDisplayString)($props.timeSeparator), 1)
  30474. ]))
  30475. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  30476. ($props.showSeconds)
  30477. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("div", _hoisted_24, [
  30478. (0,vue__WEBPACK_IMPORTED_MODULE_4__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("button", {
  30479. class: "p-link",
  30480. onMousedown: _cache[45] || (_cache[45] = $event => ($options.onTimePickerElementMouseDown($event, 2, 1))),
  30481. onMouseup: _cache[46] || (_cache[46] = $event => ($options.onTimePickerElementMouseUp($event))),
  30482. onKeydown: [
  30483. _cache[47] || (_cache[47] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
  30484. _cache[49] || (_cache[49] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)($event => ($options.onTimePickerElementMouseDown($event, 2, 1)), ["enter"])),
  30485. _cache[50] || (_cache[50] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)($event => ($options.onTimePickerElementMouseDown($event, 2, 1)), ["space"]))
  30486. ],
  30487. disabled: _ctx.$attrs.disabled,
  30488. onMouseleave: _cache[48] || (_cache[48] = $event => ($options.onTimePickerElementMouseLeave())),
  30489. onKeyup: [
  30490. _cache[51] || (_cache[51] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)($event => ($options.onTimePickerElementMouseUp($event)), ["enter"])),
  30491. _cache[52] || (_cache[52] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)($event => ($options.onTimePickerElementMouseUp($event)), ["space"]))
  30492. ],
  30493. type: "button"
  30494. }, [
  30495. _hoisted_25
  30496. ], 40, ["disabled"]), [
  30497. [_directive_ripple]
  30498. ]),
  30499. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("span", null, (0,vue__WEBPACK_IMPORTED_MODULE_4__.toDisplayString)($options.formattedCurrentSecond), 1),
  30500. (0,vue__WEBPACK_IMPORTED_MODULE_4__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("button", {
  30501. class: "p-link",
  30502. onMousedown: _cache[53] || (_cache[53] = $event => ($options.onTimePickerElementMouseDown($event, 2, -1))),
  30503. onMouseup: _cache[54] || (_cache[54] = $event => ($options.onTimePickerElementMouseUp($event))),
  30504. onKeydown: [
  30505. _cache[55] || (_cache[55] = (...args) => ($options.onContainerButtonKeydown && $options.onContainerButtonKeydown(...args))),
  30506. _cache[57] || (_cache[57] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)($event => ($options.onTimePickerElementMouseDown($event, 2, -1)), ["enter"])),
  30507. _cache[58] || (_cache[58] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)($event => ($options.onTimePickerElementMouseDown($event, 2, -1)), ["space"]))
  30508. ],
  30509. disabled: _ctx.$attrs.disabled,
  30510. onMouseleave: _cache[56] || (_cache[56] = $event => ($options.onTimePickerElementMouseLeave())),
  30511. onKeyup: [
  30512. _cache[59] || (_cache[59] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)($event => ($options.onTimePickerElementMouseUp($event)), ["enter"])),
  30513. _cache[60] || (_cache[60] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)($event => ($options.onTimePickerElementMouseUp($event)), ["space"]))
  30514. ],
  30515. type: "button"
  30516. }, [
  30517. _hoisted_26
  30518. ], 40, ["disabled"]), [
  30519. [_directive_ripple]
  30520. ])
  30521. ]))
  30522. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  30523. ($props.hourFormat=='12')
  30524. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("div", _hoisted_27, [
  30525. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("span", null, (0,vue__WEBPACK_IMPORTED_MODULE_4__.toDisplayString)($props.timeSeparator), 1)
  30526. ]))
  30527. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  30528. ($props.hourFormat=='12')
  30529. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("div", _hoisted_28, [
  30530. (0,vue__WEBPACK_IMPORTED_MODULE_4__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("button", {
  30531. class: "p-link",
  30532. onClick: _cache[61] || (_cache[61] = $event => ($options.toggleAMPM($event))),
  30533. type: "button",
  30534. disabled: _ctx.$attrs.disabled
  30535. }, [
  30536. _hoisted_29
  30537. ], 8, ["disabled"]), [
  30538. [_directive_ripple]
  30539. ]),
  30540. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("span", null, (0,vue__WEBPACK_IMPORTED_MODULE_4__.toDisplayString)($data.pm ? 'PM' : 'AM'), 1),
  30541. (0,vue__WEBPACK_IMPORTED_MODULE_4__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("button", {
  30542. class: "p-link",
  30543. onClick: _cache[62] || (_cache[62] = $event => ($options.toggleAMPM($event))),
  30544. type: "button",
  30545. disabled: _ctx.$attrs.disabled
  30546. }, [
  30547. _hoisted_30
  30548. ], 8, ["disabled"]), [
  30549. [_directive_ripple]
  30550. ])
  30551. ]))
  30552. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true)
  30553. ]))
  30554. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  30555. ($props.showButtonBar)
  30556. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("div", _hoisted_31, [
  30557. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)(_component_CalendarButton, {
  30558. type: "button",
  30559. label: $options.todayLabel,
  30560. onClick: _cache[63] || (_cache[63] = $event => ($options.onTodayButtonClick($event))),
  30561. class: "p-button-text",
  30562. onKeydown: $options.onContainerButtonKeydown
  30563. }, null, 8, ["label", "onKeydown"]),
  30564. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)(_component_CalendarButton, {
  30565. type: "button",
  30566. label: $options.clearLabel,
  30567. onClick: _cache[64] || (_cache[64] = $event => ($options.onClearButtonClick($event))),
  30568. class: "p-button-text",
  30569. onKeydown: $options.onContainerButtonKeydown
  30570. }, null, 8, ["label", "onKeydown"])
  30571. ]))
  30572. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  30573. (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderSlot)(_ctx.$slots, "footer")
  30574. ], 42, ["role"]))
  30575. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true)
  30576. ]),
  30577. _: 3
  30578. }, 8, ["onAfterEnter", "onAfterLeave", "onLeave"])
  30579. ], 8, ["to", "disabled"]))
  30580. ], 6))
  30581. }
  30582. function styleInject(css, ref) {
  30583. if ( ref === void 0 ) ref = {};
  30584. var insertAt = ref.insertAt;
  30585. if (!css || typeof document === 'undefined') { return; }
  30586. var head = document.head || document.getElementsByTagName('head')[0];
  30587. var style = document.createElement('style');
  30588. style.type = 'text/css';
  30589. if (insertAt === 'top') {
  30590. if (head.firstChild) {
  30591. head.insertBefore(style, head.firstChild);
  30592. } else {
  30593. head.appendChild(style);
  30594. }
  30595. } else {
  30596. head.appendChild(style);
  30597. }
  30598. if (style.styleSheet) {
  30599. style.styleSheet.cssText = css;
  30600. } else {
  30601. style.appendChild(document.createTextNode(css));
  30602. }
  30603. }
  30604. var css_248z = "\n.p-calendar {\n position: relative;\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n max-width: 100%;\n}\n.p-calendar .p-inputtext {\n -webkit-box-flex: 1;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n width: 1%;\n}\n.p-calendar-w-btn .p-inputtext {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n.p-calendar-w-btn .p-datepicker-trigger {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n\n/* Fluid */\n.p-fluid .p-calendar {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n}\n.p-fluid .p-calendar .p-inputtext {\n width: 1%;\n}\n\n/* Datepicker */\n.p-calendar .p-datepicker {\n min-width: 100%;\n}\n.p-datepicker {\n\twidth: auto;\n position: absolute;\n top: 0;\n left: 0;\n}\n.p-datepicker-inline {\n display: inline-block;\n position: static;\n overflow-x: auto;\n}\n\n/* Header */\n.p-datepicker-header {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between;\n}\n.p-datepicker-header .p-datepicker-title {\n margin: 0 auto;\n}\n.p-datepicker-prev,\n.p-datepicker-next {\n cursor: pointer;\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n overflow: hidden;\n position: relative;\n}\n\n/* Multiple Month DatePicker */\n.p-datepicker-multiple-month .p-datepicker-group-container {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n}\n.p-datepicker-multiple-month .p-datepicker-group-container .p-datepicker-group {\n -webkit-box-flex: 1;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n}\n\n/* DatePicker Table */\n.p-datepicker table {\n\twidth: 100%;\n\tborder-collapse: collapse;\n}\n.p-datepicker td > span {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n cursor: pointer;\n margin: 0 auto;\n overflow: hidden;\n position: relative;\n}\n\n/* Month Picker */\n.p-monthpicker-month {\n width: 33.3%;\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n cursor: pointer;\n overflow: hidden;\n position: relative;\n}\n\n/* Year Picker */\n.p-yearpicker-year {\n width: 50%;\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n cursor: pointer;\n overflow: hidden;\n position: relative;\n}\n\n/* Button Bar */\n.p-datepicker-buttonbar {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n\n/* Time Picker */\n.p-timepicker {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n.p-timepicker button {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n cursor: pointer;\n overflow: hidden;\n position: relative;\n}\n.p-timepicker > div {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n}\n\n/* Touch UI */\n.p-datepicker-touch-ui,\n.p-calendar .p-datepicker-touch-ui {\n position: fixed;\n top: 50%;\n left: 50%;\n min-width: 80vw;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n}\n";
  30605. styleInject(css_248z);
  30606. script.render = render;
  30607. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (script);
  30608. /***/ }),
  30609. /***/ "./node_modules/primevue/card/card.esm.js":
  30610. /*!************************************************!*\
  30611. !*** ./node_modules/primevue/card/card.esm.js ***!
  30612. \************************************************/
  30613. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  30614. "use strict";
  30615. __webpack_require__.r(__webpack_exports__);
  30616. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  30617. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  30618. /* harmony export */ });
  30619. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js");
  30620. var script = {
  30621. name: 'Card'
  30622. };
  30623. const _hoisted_1 = { class: "p-card p-component" };
  30624. const _hoisted_2 = {
  30625. key: 0,
  30626. class: "p-card-header"
  30627. };
  30628. const _hoisted_3 = { class: "p-card-body" };
  30629. const _hoisted_4 = {
  30630. key: 0,
  30631. class: "p-card-title"
  30632. };
  30633. const _hoisted_5 = {
  30634. key: 1,
  30635. class: "p-card-subtitle"
  30636. };
  30637. const _hoisted_6 = { class: "p-card-content" };
  30638. const _hoisted_7 = {
  30639. key: 2,
  30640. class: "p-card-footer"
  30641. };
  30642. function render(_ctx, _cache, $props, $setup, $data, $options) {
  30643. return ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)("div", _hoisted_1, [
  30644. (_ctx.$slots.header)
  30645. ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)("div", _hoisted_2, [
  30646. (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "header")
  30647. ]))
  30648. : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true),
  30649. (0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)("div", _hoisted_3, [
  30650. (_ctx.$slots.title)
  30651. ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)("div", _hoisted_4, [
  30652. (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "title")
  30653. ]))
  30654. : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true),
  30655. (_ctx.$slots.subtitle)
  30656. ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)("div", _hoisted_5, [
  30657. (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "subtitle")
  30658. ]))
  30659. : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true),
  30660. (0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)("div", _hoisted_6, [
  30661. (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "content")
  30662. ]),
  30663. (_ctx.$slots.footer)
  30664. ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)("div", _hoisted_7, [
  30665. (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "footer")
  30666. ]))
  30667. : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true)
  30668. ])
  30669. ]))
  30670. }
  30671. function styleInject(css, ref) {
  30672. if ( ref === void 0 ) ref = {};
  30673. var insertAt = ref.insertAt;
  30674. if (!css || typeof document === 'undefined') { return; }
  30675. var head = document.head || document.getElementsByTagName('head')[0];
  30676. var style = document.createElement('style');
  30677. style.type = 'text/css';
  30678. if (insertAt === 'top') {
  30679. if (head.firstChild) {
  30680. head.insertBefore(style, head.firstChild);
  30681. } else {
  30682. head.appendChild(style);
  30683. }
  30684. } else {
  30685. head.appendChild(style);
  30686. }
  30687. if (style.styleSheet) {
  30688. style.styleSheet.cssText = css;
  30689. } else {
  30690. style.appendChild(document.createTextNode(css));
  30691. }
  30692. }
  30693. var css_248z = "\n.p-card-header img {\n width: 100%;\n}\n";
  30694. styleInject(css_248z);
  30695. script.render = render;
  30696. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (script);
  30697. /***/ }),
  30698. /***/ "./node_modules/primevue/chart/chart.esm.js":
  30699. /*!**************************************************!*\
  30700. !*** ./node_modules/primevue/chart/chart.esm.js ***!
  30701. \**************************************************/
  30702. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  30703. "use strict";
  30704. __webpack_require__.r(__webpack_exports__);
  30705. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  30706. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  30707. /* harmony export */ });
  30708. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js");
  30709. var script = {
  30710. name: 'Chart',
  30711. emits: ['select', 'loaded'],
  30712. props: {
  30713. type: String,
  30714. data: null,
  30715. options: null,
  30716. plugins: null,
  30717. width: {
  30718. type: Number,
  30719. default: 300
  30720. },
  30721. height: {
  30722. type: Number,
  30723. default: 150
  30724. },
  30725. },
  30726. chart: null,
  30727. mounted() {
  30728. this.initChart();
  30729. },
  30730. beforeUnmount() {
  30731. if (this.chart) {
  30732. this.chart.destroy();
  30733. this.chart = null;
  30734. }
  30735. },
  30736. watch: {
  30737. /*
  30738. * Use deep watch to enable triggering watch for changes within structure
  30739. * otherwise the entire data object needs to be replaced to trigger watch
  30740. */
  30741. data: {
  30742. handler() {
  30743. this.reinit();
  30744. },
  30745. deep: true
  30746. },
  30747. type() {
  30748. this.reinit();
  30749. },
  30750. options() {
  30751. this.reinit();
  30752. }
  30753. },
  30754. methods: {
  30755. initChart() {
  30756. __webpack_require__.e(/*! import() */ "node_modules_chart_js_auto_auto_esm_js").then(__webpack_require__.bind(__webpack_require__, /*! chart.js/auto */ "./node_modules/chart.js/auto/auto.esm.js")).then((module) => {
  30757. if (this.chart) {
  30758. this.chart.destroy();
  30759. this.chart = null;
  30760. }
  30761. if (module && module.default) {
  30762. this.chart = new module.default(this.$refs.canvas, {
  30763. type: this.type,
  30764. data: this.data,
  30765. options: this.options,
  30766. plugins: this.plugins
  30767. });
  30768. }
  30769. this.$emit('loaded', this.chart);
  30770. });
  30771. },
  30772. getCanvas() {
  30773. return this.$canvas;
  30774. },
  30775. getChart() {
  30776. return this.chart;
  30777. },
  30778. getBase64Image() {
  30779. return this.chart.toBase64Image();
  30780. },
  30781. refresh() {
  30782. if (this.chart) {
  30783. this.chart.update();
  30784. }
  30785. },
  30786. reinit() {
  30787. this.initChart();
  30788. },
  30789. onCanvasClick(event) {
  30790. if (this.chart) {
  30791. const element = this.chart.getElementsAtEventForMode(event, 'nearest', { intersect: true }, false);
  30792. const dataset = this.chart.getElementsAtEventForMode(event, 'dataset', { intersect: true }, false);
  30793. if (element && element[0] && dataset) {
  30794. this.$emit('select', {originalEvent: event, element: element[0], dataset: dataset});
  30795. }
  30796. }
  30797. },
  30798. generateLegend() {
  30799. if (this.chart) {
  30800. return this.chart.generateLegend();
  30801. }
  30802. }
  30803. }
  30804. };
  30805. const _hoisted_1 = { class: "p-chart" };
  30806. function render(_ctx, _cache, $props, $setup, $data, $options) {
  30807. return ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)("div", _hoisted_1, [
  30808. (0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)("canvas", {
  30809. ref: "canvas",
  30810. width: $props.width,
  30811. height: $props.height,
  30812. onClick: _cache[1] || (_cache[1] = $event => ($options.onCanvasClick($event)))
  30813. }, null, 8, ["width", "height"])
  30814. ]))
  30815. }
  30816. function styleInject(css, ref) {
  30817. if ( ref === void 0 ) ref = {};
  30818. var insertAt = ref.insertAt;
  30819. if (!css || typeof document === 'undefined') { return; }
  30820. var head = document.head || document.getElementsByTagName('head')[0];
  30821. var style = document.createElement('style');
  30822. style.type = 'text/css';
  30823. if (insertAt === 'top') {
  30824. if (head.firstChild) {
  30825. head.insertBefore(style, head.firstChild);
  30826. } else {
  30827. head.appendChild(style);
  30828. }
  30829. } else {
  30830. head.appendChild(style);
  30831. }
  30832. if (style.styleSheet) {
  30833. style.styleSheet.cssText = css;
  30834. } else {
  30835. style.appendChild(document.createTextNode(css));
  30836. }
  30837. }
  30838. var css_248z = "\n.p-chart {\n position: relative;\n}\n";
  30839. styleInject(css_248z);
  30840. script.render = render;
  30841. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (script);
  30842. /***/ }),
  30843. /***/ "./node_modules/primevue/column/column.esm.js":
  30844. /*!****************************************************!*\
  30845. !*** ./node_modules/primevue/column/column.esm.js ***!
  30846. \****************************************************/
  30847. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  30848. "use strict";
  30849. __webpack_require__.r(__webpack_exports__);
  30850. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  30851. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  30852. /* harmony export */ });
  30853. var script = {
  30854. name: 'Column',
  30855. props: {
  30856. columnKey: {
  30857. type: null,
  30858. default: null
  30859. },
  30860. field: {
  30861. type: [String, Function],
  30862. default: null
  30863. },
  30864. sortField: {
  30865. type: [String, Function],
  30866. default: null
  30867. },
  30868. filterField: {
  30869. type: [String, Function],
  30870. default: null
  30871. },
  30872. dataType: {
  30873. type: String,
  30874. default: 'text'
  30875. },
  30876. sortable: {
  30877. type: Boolean,
  30878. default: false
  30879. },
  30880. header: {
  30881. type: null,
  30882. default: null
  30883. },
  30884. footer: {
  30885. type: null,
  30886. default: null
  30887. },
  30888. style: {
  30889. type: null,
  30890. default: null
  30891. },
  30892. class: {
  30893. type: String,
  30894. default: null
  30895. },
  30896. headerStyle: {
  30897. type: null,
  30898. default: null
  30899. },
  30900. headerClass: {
  30901. type: String,
  30902. default: null
  30903. },
  30904. bodyStyle: {
  30905. type: null,
  30906. default: null
  30907. },
  30908. bodyClass: {
  30909. type: String,
  30910. default: null
  30911. },
  30912. footerStyle: {
  30913. type: null,
  30914. default: null
  30915. },
  30916. footerClass: {
  30917. type: String,
  30918. default: null
  30919. },
  30920. showFilterMenu: {
  30921. type: Boolean,
  30922. default: true
  30923. },
  30924. showFilterOperator: {
  30925. type: Boolean,
  30926. default: true
  30927. },
  30928. showClearButton: {
  30929. type: Boolean,
  30930. default: true
  30931. },
  30932. showApplyButton: {
  30933. type: Boolean,
  30934. default: true
  30935. },
  30936. showFilterMatchModes: {
  30937. type: Boolean,
  30938. default: true
  30939. },
  30940. showAddButton: {
  30941. type: Boolean,
  30942. default: true
  30943. },
  30944. filterMatchModeOptions: {
  30945. type: Array,
  30946. default: null
  30947. },
  30948. maxConstraints: {
  30949. type: Number,
  30950. default: 2
  30951. },
  30952. excludeGlobalFilter: {
  30953. type: Boolean,
  30954. default: false
  30955. },
  30956. filterHeaderClass: {
  30957. type: String,
  30958. default: null
  30959. },
  30960. filterHeaderStyle: {
  30961. type: null,
  30962. default: null
  30963. },
  30964. filterMenuClass: {
  30965. type: String,
  30966. default: null
  30967. },
  30968. filterMenuStyle: {
  30969. type: null,
  30970. default: null
  30971. },
  30972. selectionMode: {
  30973. type: String,
  30974. default: null
  30975. },
  30976. expander: {
  30977. type: Boolean,
  30978. default: false
  30979. },
  30980. colspan: {
  30981. type: Number,
  30982. default: null
  30983. },
  30984. rowspan: {
  30985. type: Number,
  30986. default: null
  30987. },
  30988. rowReorder: {
  30989. type: Boolean,
  30990. default: false
  30991. },
  30992. rowReorderIcon: {
  30993. type: String,
  30994. default: 'pi pi-bars'
  30995. },
  30996. reorderableColumn: {
  30997. type: Boolean,
  30998. default: true
  30999. },
  31000. rowEditor: {
  31001. type: Boolean,
  31002. default: false
  31003. },
  31004. frozen: {
  31005. type: Boolean,
  31006. default: false
  31007. },
  31008. alignFrozen: {
  31009. type: String,
  31010. default: 'left'
  31011. },
  31012. exportable: {
  31013. type: Boolean,
  31014. default: true
  31015. },
  31016. exportHeader: {
  31017. type: String,
  31018. default: null
  31019. },
  31020. filterMatchMode: {
  31021. type: String,
  31022. default: null
  31023. },
  31024. hidden: {
  31025. type: Boolean,
  31026. default: false
  31027. }
  31028. },
  31029. render() {
  31030. return null;
  31031. }
  31032. };
  31033. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (script);
  31034. /***/ }),
  31035. /***/ "./node_modules/primevue/config/config.esm.js":
  31036. /*!****************************************************!*\
  31037. !*** ./node_modules/primevue/config/config.esm.js ***!
  31038. \****************************************************/
  31039. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  31040. "use strict";
  31041. __webpack_require__.r(__webpack_exports__);
  31042. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  31043. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
  31044. /* harmony export */ "usePrimeVue": () => (/* binding */ usePrimeVue)
  31045. /* harmony export */ });
  31046. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js");
  31047. /* harmony import */ var primevue_api__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! primevue/api */ "./node_modules/primevue/api/api.esm.js");
  31048. const defaultOptions = {
  31049. ripple: false,
  31050. inputStyle: 'outlined',
  31051. locale: {
  31052. startsWith: 'Starts with',
  31053. contains: 'Contains',
  31054. notContains: 'Not contains',
  31055. endsWith: 'Ends with',
  31056. equals: 'Equals',
  31057. notEquals: 'Not equals',
  31058. noFilter: 'No Filter',
  31059. lt: 'Less than',
  31060. lte: 'Less than or equal to',
  31061. gt: 'Greater than',
  31062. gte: 'Greater than or equal to',
  31063. dateIs: 'Date is',
  31064. dateIsNot: 'Date is not',
  31065. dateBefore: 'Date is before',
  31066. dateAfter: 'Date is after',
  31067. clear: 'Clear',
  31068. apply: 'Apply',
  31069. matchAll: 'Match All',
  31070. matchAny: 'Match Any',
  31071. addRule: 'Add Rule',
  31072. removeRule: 'Remove Rule',
  31073. accept: 'Yes',
  31074. reject: 'No',
  31075. choose: 'Choose',
  31076. upload: 'Upload',
  31077. cancel: 'Cancel',
  31078. dayNames: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
  31079. dayNamesShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
  31080. dayNamesMin: ["Su","Mo","Tu","We","Th","Fr","Sa"],
  31081. monthNames: ["January","February","March","April","May","June","July","August","September","October","November","December"],
  31082. monthNamesShort: ["Jan", "Feb", "Mar", "Apr", "May", "Jun","Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
  31083. today: 'Today',
  31084. weekHeader: 'Wk',
  31085. firstDayOfWeek: 0,
  31086. dateFormat: 'mm/dd/yy',
  31087. weak: 'Weak',
  31088. medium: 'Medium',
  31089. strong: 'Strong',
  31090. passwordPrompt: 'Enter a password',
  31091. emptyFilterMessage: 'No results found',
  31092. emptyMessage: 'No available options'
  31093. },
  31094. filterMatchModeOptions: {
  31095. text: [
  31096. primevue_api__WEBPACK_IMPORTED_MODULE_1__.FilterMatchMode.STARTS_WITH,
  31097. primevue_api__WEBPACK_IMPORTED_MODULE_1__.FilterMatchMode.CONTAINS,
  31098. primevue_api__WEBPACK_IMPORTED_MODULE_1__.FilterMatchMode.NOT_CONTAINS,
  31099. primevue_api__WEBPACK_IMPORTED_MODULE_1__.FilterMatchMode.ENDS_WITH,
  31100. primevue_api__WEBPACK_IMPORTED_MODULE_1__.FilterMatchMode.EQUALS,
  31101. primevue_api__WEBPACK_IMPORTED_MODULE_1__.FilterMatchMode.NOT_EQUALS
  31102. ],
  31103. numeric: [
  31104. primevue_api__WEBPACK_IMPORTED_MODULE_1__.FilterMatchMode.EQUALS,
  31105. primevue_api__WEBPACK_IMPORTED_MODULE_1__.FilterMatchMode.NOT_EQUALS,
  31106. primevue_api__WEBPACK_IMPORTED_MODULE_1__.FilterMatchMode.LESS_THAN,
  31107. primevue_api__WEBPACK_IMPORTED_MODULE_1__.FilterMatchMode.LESS_THAN_OR_EQUAL_TO,
  31108. primevue_api__WEBPACK_IMPORTED_MODULE_1__.FilterMatchMode.GREATER_THAN,
  31109. primevue_api__WEBPACK_IMPORTED_MODULE_1__.FilterMatchMode.GREATER_THAN_OR_EQUAL_TO
  31110. ],
  31111. date: [
  31112. primevue_api__WEBPACK_IMPORTED_MODULE_1__.FilterMatchMode.DATE_IS,
  31113. primevue_api__WEBPACK_IMPORTED_MODULE_1__.FilterMatchMode.DATE_IS_NOT,
  31114. primevue_api__WEBPACK_IMPORTED_MODULE_1__.FilterMatchMode.DATE_BEFORE,
  31115. primevue_api__WEBPACK_IMPORTED_MODULE_1__.FilterMatchMode.DATE_AFTER
  31116. ]
  31117. },
  31118. zIndex: {
  31119. modal: 1100,
  31120. overlay: 1000,
  31121. menu: 1000,
  31122. tooltip: 1100
  31123. }
  31124. };
  31125. const PrimeVueSymbol = Symbol();
  31126. function usePrimeVue() {
  31127. const PrimeVue = (0,vue__WEBPACK_IMPORTED_MODULE_0__.inject)(PrimeVueSymbol);
  31128. if (!PrimeVue) {
  31129. throw new Error('PrimeVue is not installed!');
  31130. }
  31131. return PrimeVue;
  31132. }
  31133. var PrimeVue = {
  31134. install: (app, options) => {
  31135. let configOptions = options ? {...defaultOptions, ...options} : {...defaultOptions};
  31136. const PrimeVue = {
  31137. config: (0,vue__WEBPACK_IMPORTED_MODULE_0__.reactive)(configOptions)
  31138. };
  31139. app.config.globalProperties.$primevue = PrimeVue;
  31140. app.provide(PrimeVueSymbol, PrimeVue);
  31141. }
  31142. };
  31143. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (PrimeVue);
  31144. /***/ }),
  31145. /***/ "./node_modules/primevue/datatable/datatable.esm.js":
  31146. /*!**********************************************************!*\
  31147. !*** ./node_modules/primevue/datatable/datatable.esm.js ***!
  31148. \**********************************************************/
  31149. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  31150. "use strict";
  31151. __webpack_require__.r(__webpack_exports__);
  31152. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  31153. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  31154. /* harmony export */ });
  31155. /* harmony import */ var primevue_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! primevue/utils */ "./node_modules/primevue/utils/utils.esm.js");
  31156. /* harmony import */ var primevue_api__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! primevue/api */ "./node_modules/primevue/api/api.esm.js");
  31157. /* harmony import */ var primevue_paginator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! primevue/paginator */ "./node_modules/primevue/paginator/paginator.esm.js");
  31158. /* harmony import */ var primevue_virtualscroller__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! primevue/virtualscroller */ "./node_modules/primevue/virtualscroller/virtualscroller.esm.js");
  31159. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js");
  31160. /* harmony import */ var primevue_overlayeventbus__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! primevue/overlayeventbus */ "./node_modules/primevue/overlayeventbus/overlayeventbus.esm.js");
  31161. /* harmony import */ var primevue_dropdown__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! primevue/dropdown */ "./node_modules/primevue/dropdown/dropdown.esm.js");
  31162. /* harmony import */ var primevue_button__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! primevue/button */ "./node_modules/primevue/button/button.esm.js");
  31163. /* harmony import */ var primevue_ripple__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! primevue/ripple */ "./node_modules/primevue/ripple/ripple.esm.js");
  31164. var script$a = {
  31165. name: 'HeaderCheckbox',
  31166. inheritAttrs: false,
  31167. emits: ['change'],
  31168. props: {
  31169. checked: null
  31170. },
  31171. data() {
  31172. return {
  31173. focused: false
  31174. };
  31175. },
  31176. methods: {
  31177. onClick(event) {
  31178. if (!this.$attrs.disabled) {
  31179. this.focused = true;
  31180. this.$emit('change', {
  31181. originalEvent: event,
  31182. checked: !this.checked
  31183. });
  31184. }
  31185. },
  31186. onFocus() {
  31187. this.focused = true;
  31188. },
  31189. onBlur() {
  31190. this.focused = false;
  31191. }
  31192. }
  31193. };
  31194. function render$a(_ctx, _cache, $props, $setup, $data, $options) {
  31195. return ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("div", {
  31196. class: ['p-checkbox p-component', {'p-checkbox-focused': $data.focused}],
  31197. onClick: _cache[3] || (_cache[3] = (...args) => ($options.onClick && $options.onClick(...args))),
  31198. onKeydown: _cache[4] || (_cache[4] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)((0,vue__WEBPACK_IMPORTED_MODULE_4__.withModifiers)((...args) => ($options.onClick && $options.onClick(...args)), ["prevent"]), ["space"]))
  31199. }, [
  31200. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("div", {
  31201. ref: "box",
  31202. class: ['p-checkbox-box p-component', {'p-highlight': $props.checked, 'p-disabled': _ctx.$attrs.disabled, 'p-focus': $data.focused}],
  31203. role: "checkbox",
  31204. "aria-checked": $props.checked,
  31205. tabindex: _ctx.$attrs.disabled ? null : '0',
  31206. onFocus: _cache[1] || (_cache[1] = $event => ($options.onFocus($event))),
  31207. onBlur: _cache[2] || (_cache[2] = $event => ($options.onBlur($event)))
  31208. }, [
  31209. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("span", {
  31210. class: ['p-checkbox-icon', {'pi pi-check': $props.checked}]
  31211. }, null, 2)
  31212. ], 42, ["aria-checked", "tabindex"])
  31213. ], 34))
  31214. }
  31215. script$a.render = render$a;
  31216. var script$9 = {
  31217. name: 'ColumnFilter',
  31218. emits: ['filter-change','filter-apply','operator-change','matchmode-change','constraint-add','constraint-remove','filter-clear','apply-click'],
  31219. props: {
  31220. field: {
  31221. type: String,
  31222. default: null
  31223. },
  31224. type: {
  31225. type: String,
  31226. default: 'text'
  31227. },
  31228. display: {
  31229. type: String,
  31230. default: null
  31231. },
  31232. showMenu: {
  31233. type: Boolean,
  31234. default: true
  31235. },
  31236. matchMode: {
  31237. type: String,
  31238. default: null
  31239. },
  31240. showOperator: {
  31241. type: Boolean,
  31242. default: true
  31243. },
  31244. showClearButton: {
  31245. type: Boolean,
  31246. default: true
  31247. },
  31248. showApplyButton: {
  31249. type: Boolean,
  31250. default: true
  31251. },
  31252. showMatchModes: {
  31253. type: Boolean,
  31254. default: true
  31255. },
  31256. showAddButton: {
  31257. type: Boolean,
  31258. default: true
  31259. },
  31260. matchModeOptions: {
  31261. type: Array,
  31262. default: null
  31263. },
  31264. maxConstraints: {
  31265. type: Number,
  31266. default: 2
  31267. },
  31268. filterElement: null,
  31269. filterHeaderTemplate: null,
  31270. filterFooterTemplate: null,
  31271. filterClearTemplate: null,
  31272. filterApplyTemplate: null,
  31273. filters: {
  31274. type: Object,
  31275. default: null
  31276. },
  31277. filtersStore: {
  31278. type: Object,
  31279. default: null
  31280. },
  31281. filterMenuClass: {
  31282. type: String,
  31283. default: null
  31284. },
  31285. filterMenuStyle: {
  31286. type: null,
  31287. default: null
  31288. }
  31289. },
  31290. data() {
  31291. return {
  31292. overlayVisible: false,
  31293. defaultMatchMode: null,
  31294. defaultOperator: null
  31295. }
  31296. },
  31297. overlay: null,
  31298. selfClick: false,
  31299. overlayEventListener: null,
  31300. beforeUnmount() {
  31301. if (this.overlayEventListener) {
  31302. primevue_overlayeventbus__WEBPACK_IMPORTED_MODULE_5__["default"].off('overlay-click', this.overlayEventListener);
  31303. this.overlayEventListener = null;
  31304. }
  31305. if (this.overlay) {
  31306. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ZIndexUtils.clear(this.overlay);
  31307. this.onOverlayHide();
  31308. }
  31309. },
  31310. mounted() {
  31311. if (this.filters && this.filters[this.field]) {
  31312. let fieldFilters = this.filters[this.field];
  31313. if (fieldFilters.operator) {
  31314. this.defaultMatchMode = fieldFilters.constraints[0].matchMode;
  31315. this.defaultOperator = fieldFilters.operator;
  31316. }
  31317. else {
  31318. this.defaultMatchMode = this.filters[this.field].matchMode;
  31319. }
  31320. }
  31321. },
  31322. methods: {
  31323. clearFilter() {
  31324. let _filters = {...this.filters};
  31325. if (_filters[this.field].operator) {
  31326. _filters[this.field].constraints.splice(1);
  31327. _filters[this.field].operator = this.defaultOperator;
  31328. _filters[this.field].constraints[0] = {value: null, matchMode: this.defaultMatchMode};
  31329. }
  31330. else {
  31331. _filters[this.field].value = null;
  31332. _filters[this.field].matchMode = this.defaultMatchMode;
  31333. }
  31334. this.$emit('filter-clear');
  31335. this.$emit('filter-change', _filters);
  31336. this.$emit('filter-apply');
  31337. this.hide();
  31338. },
  31339. applyFilter() {
  31340. this.$emit('apply-click', {field: this.field, constraints: this.filters[this.field]});
  31341. this.$emit('filter-apply');
  31342. this.hide();
  31343. },
  31344. hasFilter() {
  31345. if (this.filtersStore) {
  31346. let fieldFilter = this.filtersStore[this.field];
  31347. if (fieldFilter) {
  31348. if (fieldFilter.operator)
  31349. return !this.isFilterBlank(fieldFilter.constraints[0].value);
  31350. else
  31351. return !this.isFilterBlank(fieldFilter.value);
  31352. }
  31353. }
  31354. return false;
  31355. },
  31356. hasRowFilter() {
  31357. return this.filters[this.field] && !this.isFilterBlank(this.filters[this.field].value);
  31358. },
  31359. isFilterBlank(filter) {
  31360. if (filter !== null && filter !== undefined) {
  31361. if ((typeof filter === 'string' && filter.trim().length == 0) || (filter instanceof Array && filter.length == 0))
  31362. return true;
  31363. else
  31364. return false;
  31365. }
  31366. return true;
  31367. },
  31368. toggleMenu() {
  31369. this.overlayVisible = !this.overlayVisible;
  31370. },
  31371. onToggleButtonKeyDown(event) {
  31372. switch(event.key) {
  31373. case 'Escape':
  31374. case 'Tab':
  31375. this.overlayVisible = false;
  31376. break;
  31377. case 'ArrowDown':
  31378. if (this.overlayVisible) {
  31379. let focusable = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getFocusableElements(this.overlay);
  31380. if (focusable) {
  31381. focusable[0].focus();
  31382. }
  31383. event.preventDefault();
  31384. }
  31385. else if (event.altKey) {
  31386. this.overlayVisible = true;
  31387. event.preventDefault();
  31388. }
  31389. break;
  31390. }
  31391. },
  31392. onEscape() {
  31393. this.overlayVisible = false;
  31394. if (this.$refs.icon) {
  31395. this.$refs.icon.focus();
  31396. }
  31397. },
  31398. onRowMatchModeChange(matchMode) {
  31399. let _filters = {...this.filters};
  31400. _filters[this.field].matchMode = matchMode;
  31401. this.$emit('matchmode-change', {field: this.field, matchMode: matchMode});
  31402. this.$emit('filter-change', _filters);
  31403. this.$emit('filter-apply');
  31404. this.hide();
  31405. },
  31406. onRowMatchModeKeyDown(event) {
  31407. let item = event.target;
  31408. switch(event.key) {
  31409. case 'ArrowDown':
  31410. var nextItem = this.findNextItem(item);
  31411. if (nextItem) {
  31412. item.removeAttribute('tabindex');
  31413. nextItem.tabIndex = '0';
  31414. nextItem.focus();
  31415. }
  31416. event.preventDefault();
  31417. break;
  31418. case 'ArrowUp':
  31419. var prevItem = this.findPrevItem(item);
  31420. if (prevItem) {
  31421. item.removeAttribute('tabindex');
  31422. prevItem.tabIndex = '0';
  31423. prevItem.focus();
  31424. }
  31425. event.preventDefault();
  31426. break;
  31427. }
  31428. },
  31429. isRowMatchModeSelected(matchMode) {
  31430. return (this.filters[this.field]).matchMode === matchMode;
  31431. },
  31432. onOperatorChange(value) {
  31433. let _filters = {...this.filters};
  31434. _filters[this.field].operator = value;
  31435. this.$emit('filter-change', _filters);
  31436. this.$emit('operator-change', {field: this.field, operator: value});
  31437. if (!this.showApplyButton) {
  31438. this.$emit('filter-apply');
  31439. }
  31440. },
  31441. onMenuMatchModeChange(value, index) {
  31442. let _filters = {...this.filters};
  31443. _filters[this.field].constraints[index].matchMode = value;
  31444. this.$emit('matchmode-change', {field: this.field, matchMode: value, index: index});
  31445. if (!this.showApplyButton) {
  31446. this.$emit('filter-apply');
  31447. }
  31448. },
  31449. addConstraint() {
  31450. let _filters = {...this.filters};
  31451. let newConstraint = {value: null, matchMode: this.defaultMatchMode};
  31452. _filters[this.field].constraints.push(newConstraint);
  31453. this.$emit('constraint-add', {field: this.field, constraing: newConstraint});
  31454. this.$emit('filter-change', _filters);
  31455. if (!this.showApplyButton) {
  31456. this.$emit('filter-apply');
  31457. }
  31458. },
  31459. removeConstraint(index) {
  31460. let _filters = {...this.filters};
  31461. let removedConstraint = _filters[this.field].constraints.splice(index, 1);
  31462. this.$emit('constraint-remove', {field: this.field, constraing: removedConstraint});
  31463. this.$emit('filter-change', _filters);
  31464. if (!this.showApplyButton) {
  31465. this.$emit('filter-apply');
  31466. }
  31467. },
  31468. filterCallback() {
  31469. this.$emit('filter-apply');
  31470. },
  31471. findNextItem(item) {
  31472. let nextItem = item.nextElementSibling;
  31473. if (nextItem)
  31474. return primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(nextItem, 'p-column-filter-separator') ? this.findNextItem(nextItem) : nextItem;
  31475. else
  31476. return item.parentElement.firstElementChild;
  31477. },
  31478. findPrevItem(item) {
  31479. let prevItem = item.previousElementSibling;
  31480. if (prevItem)
  31481. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(prevItem, 'p-column-filter-separator') ? this.findPrevItem(prevItem) : prevItem;
  31482. else
  31483. return item.parentElement.lastElementChild;
  31484. },
  31485. hide() {
  31486. this.overlayVisible = false;
  31487. },
  31488. onContentClick(event) {
  31489. this.selfClick = true;
  31490. primevue_overlayeventbus__WEBPACK_IMPORTED_MODULE_5__["default"].emit('overlay-click', {
  31491. originalEvent: event,
  31492. target: this.overlay
  31493. });
  31494. },
  31495. onContentMouseDown() {
  31496. this.selfClick = true;
  31497. },
  31498. onOverlayEnter(el) {
  31499. if (this.filterMenuStyle) {
  31500. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.applyStyle(this.overlay, this.filterMenuStyle);
  31501. }
  31502. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ZIndexUtils.set('overlay', el, this.$primevue.config.zIndex.overlay);
  31503. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.absolutePosition(this.overlay, this.$refs.icon);
  31504. this.bindOutsideClickListener();
  31505. this.bindScrollListener();
  31506. this.bindResizeListener();
  31507. this.overlayEventListener = (e) => {
  31508. if (!this.isOutsideClicked(e.target)) {
  31509. this.selfClick = true;
  31510. }
  31511. };
  31512. primevue_overlayeventbus__WEBPACK_IMPORTED_MODULE_5__["default"].on('overlay-click', this.overlayEventListener);
  31513. },
  31514. onOverlayLeave() {
  31515. this.onOverlayHide();
  31516. },
  31517. onOverlayAfterLeave(el) {
  31518. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ZIndexUtils.clear(el);
  31519. },
  31520. onOverlayHide() {
  31521. this.unbindOutsideClickListener();
  31522. this.unbindResizeListener();
  31523. this.unbindScrollListener();
  31524. this.overlay = null;
  31525. primevue_overlayeventbus__WEBPACK_IMPORTED_MODULE_5__["default"].off('overlay-click', this.overlayEventListener);
  31526. this.overlayEventListener = null;
  31527. },
  31528. overlayRef(el) {
  31529. this.overlay = el;
  31530. },
  31531. isOutsideClicked(target) {
  31532. return !this.isTargetClicked(target) && this.overlay && !(this.overlay.isSameNode(target) || this.overlay.contains(target));
  31533. },
  31534. isTargetClicked(target) {
  31535. return this.$refs.icon && (this.$refs.icon.isSameNode(target) || this.$refs.icon.contains(target));
  31536. },
  31537. bindOutsideClickListener() {
  31538. if (!this.outsideClickListener) {
  31539. this.outsideClickListener = (event) => {
  31540. if (this.overlayVisible && !this.selfClick && this.isOutsideClicked(event.target)) {
  31541. this.overlayVisible = false;
  31542. }
  31543. this.selfClick = false;
  31544. };
  31545. document.addEventListener('click', this.outsideClickListener);
  31546. }
  31547. },
  31548. unbindOutsideClickListener() {
  31549. if (this.outsideClickListener) {
  31550. document.removeEventListener('click', this.outsideClickListener);
  31551. this.outsideClickListener = null;
  31552. this.selfClick = false;
  31553. }
  31554. },
  31555. bindScrollListener() {
  31556. if (!this.scrollHandler) {
  31557. this.scrollHandler = new primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ConnectedOverlayScrollHandler(this.$refs.icon, () => {
  31558. if (this.overlayVisible) {
  31559. this.hide();
  31560. }
  31561. });
  31562. }
  31563. this.scrollHandler.bindScrollListener();
  31564. },
  31565. unbindScrollListener() {
  31566. if (this.scrollHandler) {
  31567. this.scrollHandler.unbindScrollListener();
  31568. }
  31569. },
  31570. bindResizeListener() {
  31571. if (!this.resizeListener) {
  31572. this.resizeListener = () => {
  31573. if (this.overlayVisible) {
  31574. this.hide();
  31575. }
  31576. };
  31577. window.addEventListener('resize', this.resizeListener);
  31578. }
  31579. },
  31580. unbindResizeListener() {
  31581. if (this.resizeListener) {
  31582. window.removeEventListener('resize', this.resizeListener);
  31583. this.resizeListener = null;
  31584. }
  31585. }
  31586. },
  31587. computed: {
  31588. containerClass() {
  31589. return ['p-column-filter p-fluid', {
  31590. 'p-column-filter-row': this.display === 'row',
  31591. 'p-column-filter-menu': this.display === 'menu'
  31592. }];
  31593. },
  31594. overlayClass() {
  31595. return [this.filterMenuClass, {
  31596. 'p-column-filter-overlay p-component p-fluid': true,
  31597. 'p-column-filter-overlay-menu': this.display === 'menu',
  31598. 'p-input-filled': this.$primevue.config.inputStyle === 'filled',
  31599. 'p-ripple-disabled': this.$primevue.config.ripple === false
  31600. }];
  31601. },
  31602. showMenuButton() {
  31603. return this.showMenu && (this.display === 'row' ? this.type !== 'boolean': true);
  31604. },
  31605. matchModes() {
  31606. return this.matchModeOptions ||
  31607. this.$primevue.config.filterMatchModeOptions[this.type].map(key => {
  31608. return {label: this.$primevue.config.locale[key], value: key}
  31609. });
  31610. },
  31611. isShowMatchModes() {
  31612. return this.type !== 'boolean' && this.showMatchModes && this.matchModes;
  31613. },
  31614. operatorOptions() {
  31615. return [
  31616. {label: this.$primevue.config.locale.matchAll, value: primevue_api__WEBPACK_IMPORTED_MODULE_1__.FilterOperator.AND},
  31617. {label: this.$primevue.config.locale.matchAny, value: primevue_api__WEBPACK_IMPORTED_MODULE_1__.FilterOperator.OR}
  31618. ];
  31619. },
  31620. noFilterLabel() {
  31621. return this.$primevue.config.locale.noFilter;
  31622. },
  31623. isShowOperator() {
  31624. return this.showOperator && this.filters[this.field].operator;
  31625. },
  31626. operator() {
  31627. return this.filters[this.field].operator;
  31628. },
  31629. fieldConstraints() {
  31630. return this.filters[this.field].constraints || [this.filters[this.field]];
  31631. },
  31632. showRemoveIcon() {
  31633. return this.fieldConstraints.length > 1;
  31634. },
  31635. removeRuleButtonLabel() {
  31636. return this.$primevue.config.locale.removeRule;
  31637. },
  31638. addRuleButtonLabel() {
  31639. return this.$primevue.config.locale.addRule;
  31640. },
  31641. isShowAddConstraint() {
  31642. return this.showAddButton && this.filters[this.field].operator && (this.fieldConstraints && this.fieldConstraints.length < this.maxConstraints);
  31643. },
  31644. clearButtonLabel() {
  31645. return this.$primevue.config.locale.clear;
  31646. },
  31647. applyButtonLabel() {
  31648. return this.$primevue.config.locale.apply;
  31649. }
  31650. },
  31651. components: {
  31652. 'CFDropdown': primevue_dropdown__WEBPACK_IMPORTED_MODULE_6__["default"],
  31653. 'CFButton': primevue_button__WEBPACK_IMPORTED_MODULE_7__["default"]
  31654. }
  31655. };
  31656. const _hoisted_1$7 = {
  31657. key: 0,
  31658. class: "p-fluid p-column-filter-element"
  31659. };
  31660. const _hoisted_2$5 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("span", { class: "pi pi-filter-icon pi-filter" }, null, -1);
  31661. const _hoisted_3$4 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("span", { class: "pi pi-filter-slash" }, null, -1);
  31662. const _hoisted_4$2 = {
  31663. key: 0,
  31664. class: "p-column-filter-row-items"
  31665. };
  31666. const _hoisted_5$1 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("li", { class: "p-column-filter-separator" }, null, -1);
  31667. const _hoisted_6$1 = {
  31668. key: 0,
  31669. class: "p-column-filter-operator"
  31670. };
  31671. const _hoisted_7 = { class: "p-column-filter-constraints" };
  31672. const _hoisted_8 = {
  31673. key: 1,
  31674. class: "p-column-filter-add-rule"
  31675. };
  31676. const _hoisted_9 = { class: "p-column-filter-buttonbar" };
  31677. function render$9(_ctx, _cache, $props, $setup, $data, $options) {
  31678. const _component_CFDropdown = (0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveComponent)("CFDropdown");
  31679. const _component_CFButton = (0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveComponent)("CFButton");
  31680. return ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("div", { class: $options.containerClass }, [
  31681. ($props.display === 'row')
  31682. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("div", _hoisted_1$7, [
  31683. ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)((0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveDynamicComponent)($props.filterElement), {
  31684. field: $props.field,
  31685. filterModel: $props.filters[$props.field],
  31686. filterCallback: $options.filterCallback
  31687. }, null, 8, ["field", "filterModel", "filterCallback"]))
  31688. ]))
  31689. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  31690. ($options.showMenuButton)
  31691. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("button", {
  31692. key: 1,
  31693. ref: "icon",
  31694. type: "button",
  31695. class: ["p-column-filter-menu-button p-link", {'p-column-filter-menu-button-open': $data.overlayVisible, 'p-column-filter-menu-button-active': $options.hasFilter()}],
  31696. "aria-haspopup": "true",
  31697. "aria-expanded": $data.overlayVisible,
  31698. onClick: _cache[1] || (_cache[1] = $event => ($options.toggleMenu())),
  31699. onKeydown: _cache[2] || (_cache[2] = $event => ($options.onToggleButtonKeyDown($event)))
  31700. }, [
  31701. _hoisted_2$5
  31702. ], 42, ["aria-expanded"]))
  31703. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  31704. ($props.showClearButton && $props.display === 'row')
  31705. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("button", {
  31706. key: 2,
  31707. class: [{'p-hidden-space': !$options.hasRowFilter()}, "p-column-filter-clear-button p-link"],
  31708. type: "button",
  31709. onClick: _cache[3] || (_cache[3] = $event => ($options.clearFilter()))
  31710. }, [
  31711. _hoisted_3$4
  31712. ], 2))
  31713. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  31714. ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Teleport, { to: "body" }, [
  31715. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)(vue__WEBPACK_IMPORTED_MODULE_4__.Transition, {
  31716. name: "p-connected-overlay",
  31717. onEnter: $options.onOverlayEnter,
  31718. onLeave: $options.onOverlayLeave,
  31719. onAfterLeave: $options.onOverlayAfterLeave
  31720. }, {
  31721. default: (0,vue__WEBPACK_IMPORTED_MODULE_4__.withCtx)(() => [
  31722. ($data.overlayVisible)
  31723. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("div", {
  31724. key: 0,
  31725. ref: $options.overlayRef,
  31726. class: $options.overlayClass,
  31727. onKeydown: _cache[12] || (_cache[12] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)((...args) => ($options.onEscape && $options.onEscape(...args)), ["escape"])),
  31728. onClick: _cache[13] || (_cache[13] = (...args) => ($options.onContentClick && $options.onContentClick(...args))),
  31729. onMousedown: _cache[14] || (_cache[14] = (...args) => ($options.onContentMouseDown && $options.onContentMouseDown(...args)))
  31730. }, [
  31731. ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)((0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveDynamicComponent)($props.filterHeaderTemplate), {
  31732. field: $props.field,
  31733. filterModel: $props.filters[$props.field],
  31734. filterCallback: $options.filterCallback
  31735. }, null, 8, ["field", "filterModel", "filterCallback"])),
  31736. ($props.display === 'row')
  31737. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("ul", _hoisted_4$2, [
  31738. ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderList)($options.matchModes, (matchMode, i) => {
  31739. return ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("li", {
  31740. class: ["p-column-filter-row-item", {'p-highlight': $options.isRowMatchModeSelected(matchMode.value)}],
  31741. key: matchMode.label,
  31742. onClick: $event => ($options.onRowMatchModeChange(matchMode.value)),
  31743. onKeydown: [
  31744. _cache[4] || (_cache[4] = $event => ($options.onRowMatchModeKeyDown($event))),
  31745. (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)((0,vue__WEBPACK_IMPORTED_MODULE_4__.withModifiers)($event => ($options.onRowMatchModeChange(matchMode.value)), ["prevent"]), ["enter"])
  31746. ],
  31747. tabindex: i === 0 ? '0' : null
  31748. }, (0,vue__WEBPACK_IMPORTED_MODULE_4__.toDisplayString)(matchMode.label), 43, ["onClick", "onKeydown", "tabindex"]))
  31749. }), 128)),
  31750. _hoisted_5$1,
  31751. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("li", {
  31752. class: "p-column-filter-row-item",
  31753. onClick: _cache[5] || (_cache[5] = $event => ($options.clearFilter())),
  31754. onKeydown: [
  31755. _cache[6] || (_cache[6] = $event => ($options.onRowMatchModeKeyDown($event))),
  31756. _cache[7] || (_cache[7] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)($event => (_ctx.onRowClearItemClick()), ["enter"]))
  31757. ]
  31758. }, (0,vue__WEBPACK_IMPORTED_MODULE_4__.toDisplayString)($options.noFilterLabel), 33)
  31759. ]))
  31760. : ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, { key: 1 }, [
  31761. ($options.isShowOperator)
  31762. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("div", _hoisted_6$1, [
  31763. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)(_component_CFDropdown, {
  31764. options: $options.operatorOptions,
  31765. modelValue: $options.operator,
  31766. "onUpdate:modelValue": _cache[8] || (_cache[8] = $event => ($options.onOperatorChange($event))),
  31767. class: "p-column-filter-operator-dropdown",
  31768. optionLabel: "label",
  31769. optionValue: "value"
  31770. }, null, 8, ["options", "modelValue"])
  31771. ]))
  31772. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  31773. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("div", _hoisted_7, [
  31774. ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderList)($options.fieldConstraints, (fieldConstraint, i) => {
  31775. return ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("div", {
  31776. key: i,
  31777. class: "p-column-filter-constraint"
  31778. }, [
  31779. ($options.isShowMatchModes)
  31780. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(_component_CFDropdown, {
  31781. key: 0,
  31782. options: $options.matchModes,
  31783. modelValue: fieldConstraint.matchMode,
  31784. optionLabel: "label",
  31785. optionValue: "value",
  31786. "onUpdate:modelValue": $event => ($options.onMenuMatchModeChange($event, i)),
  31787. class: "p-column-filter-matchmode-dropdown"
  31788. }, null, 8, ["options", "modelValue", "onUpdate:modelValue"]))
  31789. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  31790. ($props.display === 'menu')
  31791. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)((0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveDynamicComponent)($props.filterElement), {
  31792. key: 1,
  31793. field: $props.field,
  31794. filterModel: fieldConstraint,
  31795. filterCallback: $options.filterCallback
  31796. }, null, 8, ["field", "filterModel", "filterCallback"]))
  31797. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  31798. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("div", null, [
  31799. ($options.showRemoveIcon)
  31800. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(_component_CFButton, {
  31801. key: 0,
  31802. type: "button",
  31803. icon: "pi pi-trash",
  31804. class: "p-column-filter-remove-button p-button-text p-button-danger p-button-sm",
  31805. onClick: $event => ($options.removeConstraint(i)),
  31806. label: $options.removeRuleButtonLabel
  31807. }, null, 8, ["onClick", "label"]))
  31808. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true)
  31809. ])
  31810. ]))
  31811. }), 128))
  31812. ]),
  31813. ($options.isShowAddConstraint)
  31814. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("div", _hoisted_8, [
  31815. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)(_component_CFButton, {
  31816. type: "button",
  31817. label: $options.addRuleButtonLabel,
  31818. icon: "pi pi-plus",
  31819. class: "p-column-filter-add-button p-button-text p-button-sm",
  31820. onClick: _cache[9] || (_cache[9] = $event => ($options.addConstraint()))
  31821. }, null, 8, ["label"])
  31822. ]))
  31823. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  31824. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("div", _hoisted_9, [
  31825. (!$props.filterClearTemplate && $props.showClearButton)
  31826. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(_component_CFButton, {
  31827. key: 0,
  31828. type: "button",
  31829. class: "p-button-outlined p-button-sm",
  31830. onClick: _cache[10] || (_cache[10] = $event => ($options.clearFilter())),
  31831. label: $options.clearButtonLabel
  31832. }, null, 8, ["label"]))
  31833. : ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)((0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveDynamicComponent)($props.filterClearTemplate), {
  31834. key: 1,
  31835. field: $props.field,
  31836. filterModel: $props.filters[$props.field],
  31837. filterCallback: $options.clearFilter
  31838. }, null, 8, ["field", "filterModel", "filterCallback"])),
  31839. ($props.showApplyButton)
  31840. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, { key: 2 }, [
  31841. (!$props.filterApplyTemplate)
  31842. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(_component_CFButton, {
  31843. key: 0,
  31844. type: "button",
  31845. class: "p-button-sm",
  31846. onClick: _cache[11] || (_cache[11] = $event => ($options.applyFilter())),
  31847. label: $options.applyButtonLabel
  31848. }, null, 8, ["label"]))
  31849. : ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)((0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveDynamicComponent)($props.filterApplyTemplate), {
  31850. key: 1,
  31851. field: $props.field,
  31852. filterModel: $props.filters[$props.field],
  31853. filterCallback: $options.applyFilter
  31854. }, null, 8, ["field", "filterModel", "filterCallback"]))
  31855. ], 64))
  31856. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true)
  31857. ])
  31858. ], 64)),
  31859. ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)((0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveDynamicComponent)($props.filterFooterTemplate), {
  31860. field: $props.field,
  31861. filterModel: $props.filters[$props.field],
  31862. filterCallback: $options.filterCallback
  31863. }, null, 8, ["field", "filterModel", "filterCallback"]))
  31864. ], 34))
  31865. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true)
  31866. ]),
  31867. _: 1
  31868. }, 8, ["onEnter", "onLeave", "onAfterLeave"])
  31869. ]))
  31870. ], 2))
  31871. }
  31872. script$9.render = render$9;
  31873. var script$8 = {
  31874. name: 'HeaderCell',
  31875. emits: ['column-click', 'column-mousedown', 'column-dragstart', 'column-dragover', 'column-dragleave', 'column-drop',
  31876. 'column-resizestart', 'checkbox-change', 'filter-change', 'filter-apply',
  31877. 'operator-change', 'matchmode-change', 'constraint-add', 'constraint-remove', 'filter-clear', 'apply-click'],
  31878. props: {
  31879. column: {
  31880. type: Object,
  31881. default: null
  31882. },
  31883. resizableColumns: {
  31884. type: Boolean,
  31885. default: false
  31886. },
  31887. groupRowsBy: {
  31888. type: [Array,String],
  31889. default: null
  31890. },
  31891. sortMode: {
  31892. type: String,
  31893. default: 'single'
  31894. },
  31895. groupRowSortField: {
  31896. type: [String, Function],
  31897. default: null
  31898. },
  31899. sortField: {
  31900. type: [String, Function],
  31901. default: null
  31902. },
  31903. sortOrder: {
  31904. type: Number,
  31905. default: null
  31906. },
  31907. multiSortMeta: {
  31908. type: Array,
  31909. default: null
  31910. },
  31911. allRowsSelected: {
  31912. type: Boolean,
  31913. default: false
  31914. },
  31915. empty: {
  31916. type: Boolean,
  31917. default: false
  31918. },
  31919. filterDisplay: {
  31920. type: String,
  31921. default: null
  31922. },
  31923. filters: {
  31924. type: Object,
  31925. default: null
  31926. },
  31927. filtersStore: {
  31928. type: Object,
  31929. default: null
  31930. },
  31931. filterColumn: {
  31932. type: Boolean,
  31933. default: false
  31934. }
  31935. },
  31936. data() {
  31937. return {
  31938. styleObject: {}
  31939. }
  31940. },
  31941. mounted() {
  31942. if (this.columnProp('frozen')) {
  31943. this.updateStickyPosition();
  31944. }
  31945. },
  31946. updated() {
  31947. if (this.columnProp('frozen')) {
  31948. this.updateStickyPosition();
  31949. }
  31950. },
  31951. methods: {
  31952. columnProp(prop) {
  31953. return primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.getVNodeProp(this.column, prop);
  31954. },
  31955. onClick(event) {
  31956. this.$emit('column-click', {originalEvent: event, column: this.column});
  31957. },
  31958. onKeyDown(event) {
  31959. if (event.which === 13 && event.currentTarget.nodeName === 'TH' && primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(event.currentTarget, 'p-sortable-column')) {
  31960. this.$emit('column-click', {originalEvent: event, column: this.column});
  31961. }
  31962. },
  31963. onMouseDown(event) {
  31964. this.$emit('column-mousedown', {originalEvent: event, column: this.column});
  31965. },
  31966. onDragStart(event) {
  31967. this.$emit('column-dragstart', event);
  31968. },
  31969. onDragOver(event) {
  31970. this.$emit('column-dragover', event);
  31971. },
  31972. onDragLeave(event) {
  31973. this.$emit('column-dragleave', event);
  31974. },
  31975. onDrop(event) {
  31976. this.$emit('column-drop', event);
  31977. },
  31978. onResizeStart(event) {
  31979. this.$emit('column-resizestart', event);
  31980. },
  31981. getMultiSortMetaIndex() {
  31982. return this.multiSortMeta.findIndex(meta => (meta.field === this.columnProp('field') || meta.field === this.columnProp('sortField')));
  31983. },
  31984. getBadgeValue() {
  31985. let index = this.getMultiSortMetaIndex();
  31986. return (this.groupRowsBy && this.groupRowsBy === this.groupRowSortField) && index > -1 ? index : index + 1;
  31987. },
  31988. isMultiSorted() {
  31989. return this.sortMode === 'multiple' && this.columnProp('sortable') && this.getMultiSortMetaIndex() > -1
  31990. },
  31991. isColumnSorted() {
  31992. return this.sortMode === 'single' ? (this.sortField && (this.sortField === this.columnProp('field') || this.sortField === this.columnProp('sortField'))) : this.isMultiSorted();
  31993. },
  31994. updateStickyPosition() {
  31995. if (this.columnProp('frozen')) {
  31996. let align = this.columnProp('alignFrozen');
  31997. if (align === 'right') {
  31998. let right = 0;
  31999. let next = this.$el.nextElementSibling;
  32000. if (next) {
  32001. right = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterWidth(next) + parseFloat(next.style.right || 0);
  32002. }
  32003. this.styleObject.right = right + 'px';
  32004. }
  32005. else {
  32006. let left = 0;
  32007. let prev = this.$el.previousElementSibling;
  32008. if (prev) {
  32009. left = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterWidth(prev) + parseFloat(prev.style.left || 0);
  32010. }
  32011. this.styleObject.left = left + 'px';
  32012. }
  32013. let filterRow = this.$el.parentElement.nextElementSibling;
  32014. if (filterRow) {
  32015. let index = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.index(this.$el);
  32016. filterRow.children[index].style.left = this.styleObject.left;
  32017. filterRow.children[index].style.right = this.styleObject.right;
  32018. }
  32019. }
  32020. },
  32021. onHeaderCheckboxChange(event) {
  32022. this.$emit('checkbox-change', event);
  32023. }
  32024. },
  32025. computed: {
  32026. containerClass() {
  32027. return [this.filterColumn ? this.columnProp('filterHeaderClass') : this.columnProp('headerClass'), this.columnProp('class'), {
  32028. 'p-sortable-column': this.columnProp('sortable'),
  32029. 'p-resizable-column': this.resizableColumns,
  32030. 'p-highlight': this.isColumnSorted(),
  32031. 'p-filter-column': this.filterColumn,
  32032. 'p-frozen-column': this.columnProp('frozen')
  32033. }];
  32034. },
  32035. containerStyle() {
  32036. let headerStyle = this.filterColumn ? this.columnProp('filterHeaderStyle'): this.columnProp('headerStyle');
  32037. let columnStyle = this.columnProp('style');
  32038. return this.columnProp('frozen') ? [columnStyle, headerStyle, this.styleObject]: [columnStyle, headerStyle];
  32039. },
  32040. sortableColumnIcon() {
  32041. let sorted = false;
  32042. let sortOrder = null;
  32043. if (this.sortMode === 'single') {
  32044. sorted = this.sortField && (this.sortField === this.columnProp('field') || this.sortField === this.columnProp('sortField'));
  32045. sortOrder = sorted ? this.sortOrder: 0;
  32046. }
  32047. else if (this.sortMode === 'multiple') {
  32048. let metaIndex = this.getMultiSortMetaIndex();
  32049. if (metaIndex > -1) {
  32050. sorted = true;
  32051. sortOrder = this.multiSortMeta[metaIndex].order;
  32052. }
  32053. }
  32054. return [
  32055. 'p-sortable-column-icon pi pi-fw', {
  32056. 'pi-sort-alt': !sorted,
  32057. 'pi-sort-amount-up-alt': sorted && sortOrder > 0,
  32058. 'pi-sort-amount-down': sorted && sortOrder < 0
  32059. }
  32060. ];
  32061. },
  32062. ariaSort() {
  32063. if (this.columnProp('sortable')) {
  32064. const sortIcon = this.sortableColumnIcon;
  32065. if (sortIcon[1]['pi-sort-amount-down'])
  32066. return 'descending';
  32067. else if (sortIcon[1]['pi-sort-amount-up-alt'])
  32068. return 'ascending';
  32069. else
  32070. return 'none';
  32071. }
  32072. else {
  32073. return null;
  32074. }
  32075. }
  32076. },
  32077. components: {
  32078. 'DTHeaderCheckbox': script$a,
  32079. 'DTColumnFilter': script$9
  32080. }
  32081. };
  32082. const _hoisted_1$6 = { class: "p-column-header-content" };
  32083. const _hoisted_2$4 = {
  32084. key: 1,
  32085. class: "p-column-title"
  32086. };
  32087. const _hoisted_3$3 = {
  32088. key: 3,
  32089. class: "p-sortable-column-badge"
  32090. };
  32091. function render$8(_ctx, _cache, $props, $setup, $data, $options) {
  32092. const _component_DTHeaderCheckbox = (0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveComponent)("DTHeaderCheckbox");
  32093. const _component_DTColumnFilter = (0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveComponent)("DTColumnFilter");
  32094. return ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("th", {
  32095. style: $options.containerStyle,
  32096. class: $options.containerClass,
  32097. tabindex: $options.columnProp('sortable') ? '0' : null,
  32098. role: "cell",
  32099. onClick: _cache[9] || (_cache[9] = (...args) => ($options.onClick && $options.onClick(...args))),
  32100. onKeydown: _cache[10] || (_cache[10] = (...args) => ($options.onKeyDown && $options.onKeyDown(...args))),
  32101. onMousedown: _cache[11] || (_cache[11] = (...args) => ($options.onMouseDown && $options.onMouseDown(...args))),
  32102. onDragstart: _cache[12] || (_cache[12] = (...args) => ($options.onDragStart && $options.onDragStart(...args))),
  32103. onDragover: _cache[13] || (_cache[13] = (...args) => ($options.onDragOver && $options.onDragOver(...args))),
  32104. onDragleave: _cache[14] || (_cache[14] = (...args) => ($options.onDragLeave && $options.onDragLeave(...args))),
  32105. onDrop: _cache[15] || (_cache[15] = (...args) => ($options.onDrop && $options.onDrop(...args))),
  32106. colspan: $options.columnProp('colspan'),
  32107. rowspan: $options.columnProp('rowspan'),
  32108. "aria-sort": $options.ariaSort
  32109. }, [
  32110. ($props.resizableColumns && !$options.columnProp('frozen'))
  32111. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("span", {
  32112. key: 0,
  32113. class: "p-column-resizer",
  32114. onMousedown: _cache[1] || (_cache[1] = (...args) => ($options.onResizeStart && $options.onResizeStart(...args)))
  32115. }, null, 32))
  32116. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  32117. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("div", _hoisted_1$6, [
  32118. ($props.column.children && $props.column.children.header)
  32119. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)((0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveDynamicComponent)($props.column.children.header), {
  32120. key: 0,
  32121. column: $props.column
  32122. }, null, 8, ["column"]))
  32123. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  32124. ($options.columnProp('header'))
  32125. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("span", _hoisted_2$4, (0,vue__WEBPACK_IMPORTED_MODULE_4__.toDisplayString)($options.columnProp('header')), 1))
  32126. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  32127. ($options.columnProp('sortable'))
  32128. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("span", {
  32129. key: 2,
  32130. class: $options.sortableColumnIcon
  32131. }, null, 2))
  32132. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  32133. ($options.isMultiSorted())
  32134. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("span", _hoisted_3$3, (0,vue__WEBPACK_IMPORTED_MODULE_4__.toDisplayString)($options.getBadgeValue()), 1))
  32135. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  32136. ($options.columnProp('selectionMode') ==='multiple' && $props.filterDisplay !== 'row')
  32137. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(_component_DTHeaderCheckbox, {
  32138. key: 4,
  32139. checked: $props.allRowsSelected,
  32140. onChange: $options.onHeaderCheckboxChange,
  32141. disabled: $props.empty
  32142. }, null, 8, ["checked", "onChange", "disabled"]))
  32143. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  32144. ($props.filterDisplay === 'menu' && $props.column.children && $props.column.children.filter)
  32145. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(_component_DTColumnFilter, {
  32146. key: 5,
  32147. field: $options.columnProp('filterField')||$options.columnProp('field'),
  32148. type: $options.columnProp('dataType'),
  32149. display: "menu",
  32150. showMenu: $options.columnProp('showFilterMenu'),
  32151. filterElement: $props.column.children && $props.column.children.filter,
  32152. filterHeaderTemplate: $props.column.children && $props.column.children.filterheader,
  32153. filterFooterTemplate: $props.column.children && $props.column.children.filterfooter,
  32154. filterClearTemplate: $props.column.children && $props.column.children.filterclear,
  32155. filterApplyTemplate: $props.column.children && $props.column.children.filterapply,
  32156. filters: $props.filters,
  32157. filtersStore: $props.filtersStore,
  32158. onFilterChange: _cache[2] || (_cache[2] = $event => (_ctx.$emit('filter-change', $event))),
  32159. onFilterApply: _cache[3] || (_cache[3] = $event => (_ctx.$emit('filter-apply'))),
  32160. filterMenuStyle: $options.columnProp('filterMenuStyle'),
  32161. filterMenuClass: $options.columnProp('filterMenuClass'),
  32162. showOperator: $options.columnProp('showFilterOperator'),
  32163. showClearButton: $options.columnProp('showClearButton'),
  32164. showApplyButton: $options.columnProp('showApplyButton'),
  32165. showMatchModes: $options.columnProp('showFilterMatchModes'),
  32166. showAddButton: $options.columnProp('showAddButton'),
  32167. matchModeOptions: $options.columnProp('filterMatchModeOptions'),
  32168. maxConstraints: $options.columnProp('maxConstraints'),
  32169. onOperatorChange: _cache[4] || (_cache[4] = $event => (_ctx.$emit('operator-change',$event))),
  32170. onMatchmodeChange: _cache[5] || (_cache[5] = $event => (_ctx.$emit('matchmode-change', $event))),
  32171. onConstraintAdd: _cache[6] || (_cache[6] = $event => (_ctx.$emit('constraint-add', $event))),
  32172. onConstraintRemove: _cache[7] || (_cache[7] = $event => (_ctx.$emit('constraint-remove', $event))),
  32173. onApplyClick: _cache[8] || (_cache[8] = $event => (_ctx.$emit('apply-click',$event)))
  32174. }, null, 8, ["field", "type", "showMenu", "filterElement", "filterHeaderTemplate", "filterFooterTemplate", "filterClearTemplate", "filterApplyTemplate", "filters", "filtersStore", "filterMenuStyle", "filterMenuClass", "showOperator", "showClearButton", "showApplyButton", "showMatchModes", "showAddButton", "matchModeOptions", "maxConstraints"]))
  32175. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true)
  32176. ])
  32177. ], 46, ["tabindex", "colspan", "rowspan", "aria-sort"]))
  32178. }
  32179. script$8.render = render$8;
  32180. var script$7 = {
  32181. name: 'TableHeader',
  32182. emits: ['column-click', 'column-mousedown', 'column-dragstart', 'column-dragover', 'column-dragleave', 'column-drop',
  32183. 'column-resizestart', 'checkbox-change', 'filter-change', 'filter-apply',
  32184. 'operator-change', 'matchmode-change', 'constraint-add', 'constraint-remove', 'filter-clear', 'apply-click'],
  32185. props: {
  32186. columnGroup: {
  32187. type: null,
  32188. default: null
  32189. },
  32190. columns: {
  32191. type: null,
  32192. default: null
  32193. },
  32194. rowGroupMode: {
  32195. type: String,
  32196. default: null
  32197. },
  32198. groupRowsBy: {
  32199. type: [Array,String],
  32200. default: null
  32201. },
  32202. resizableColumns: {
  32203. type: Boolean,
  32204. default: false
  32205. },
  32206. allRowsSelected: {
  32207. type: Boolean,
  32208. default: false
  32209. },
  32210. empty: {
  32211. type: Boolean,
  32212. default: false
  32213. },
  32214. sortMode: {
  32215. type: String,
  32216. default: 'single'
  32217. },
  32218. groupRowSortField: {
  32219. type: [String, Function],
  32220. default: null
  32221. },
  32222. sortField: {
  32223. type: [String, Function],
  32224. default: null
  32225. },
  32226. sortOrder: {
  32227. type: Number,
  32228. default: null
  32229. },
  32230. multiSortMeta: {
  32231. type: Array,
  32232. default: null
  32233. },
  32234. filterDisplay: {
  32235. type: String,
  32236. default: null
  32237. },
  32238. filters: {
  32239. type: Object,
  32240. default: null
  32241. },
  32242. filtersStore: {
  32243. type: Object,
  32244. default: null
  32245. }
  32246. },
  32247. methods: {
  32248. columnProp(col, prop) {
  32249. return primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.getVNodeProp(col, prop);
  32250. },
  32251. getFilterColumnHeaderClass(column) {
  32252. return ['p-filter-column', this.columnProp(column, 'filterHeaderClass'), this.columnProp(column, 'class'), {
  32253. 'p-frozen-column': this.columnProp(column, 'frozen')
  32254. }];
  32255. },
  32256. getFilterColumnHeaderStyle(column) {
  32257. return [this.columnProp(column, 'filterHeaderStyle'), this.columnProp(column, 'style')];
  32258. },
  32259. getHeaderRows() {
  32260. let rows = [];
  32261. let columnGroup = this.columnGroup;
  32262. if (columnGroup.children && columnGroup.children.default) {
  32263. for (let child of columnGroup.children.default()) {
  32264. if (child.type.name === 'Row') {
  32265. rows.push(child);
  32266. }
  32267. else if (child.children && child.children instanceof Array) {
  32268. rows = child.children;
  32269. }
  32270. }
  32271. return rows;
  32272. }
  32273. },
  32274. getHeaderColumns(row){
  32275. let cols = [];
  32276. if (row.children && row.children.default) {
  32277. row.children.default().forEach(child => {
  32278. if (child.children && child.children instanceof Array)
  32279. cols = [...cols, ...child.children];
  32280. else if (child.type.name === 'Column')
  32281. cols.push(child);
  32282. });
  32283. return cols;
  32284. }
  32285. }
  32286. },
  32287. components: {
  32288. 'DTHeaderCell': script$8,
  32289. 'DTHeaderCheckbox': script$a,
  32290. 'DTColumnFilter': script$9
  32291. }
  32292. };
  32293. const _hoisted_1$5 = {
  32294. class: "p-datatable-thead",
  32295. role: "rowgroup"
  32296. };
  32297. const _hoisted_2$3 = { role: "row" };
  32298. const _hoisted_3$2 = {
  32299. key: 0,
  32300. role: "row"
  32301. };
  32302. function render$7(_ctx, _cache, $props, $setup, $data, $options) {
  32303. const _component_DTHeaderCell = (0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveComponent)("DTHeaderCell");
  32304. const _component_DTHeaderCheckbox = (0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveComponent)("DTHeaderCheckbox");
  32305. const _component_DTColumnFilter = (0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveComponent)("DTColumnFilter");
  32306. return ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("thead", _hoisted_1$5, [
  32307. (!$props.columnGroup)
  32308. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, { key: 0 }, [
  32309. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("tr", _hoisted_2$3, [
  32310. ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderList)($props.columns, (col, i) => {
  32311. return ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, {
  32312. key: $options.columnProp(col, 'columnKey')||$options.columnProp(col, 'field')||i
  32313. }, [
  32314. (!$options.columnProp(col, 'hidden') && ($props.rowGroupMode !== 'subheader' || ($props.groupRowsBy !== $options.columnProp(col, 'field'))))
  32315. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(_component_DTHeaderCell, {
  32316. key: 0,
  32317. column: col,
  32318. onColumnClick: _cache[1] || (_cache[1] = $event => (_ctx.$emit('column-click', $event))),
  32319. onColumnMousedown: _cache[2] || (_cache[2] = $event => (_ctx.$emit('column-mousedown', $event))),
  32320. onColumnDragstart: _cache[3] || (_cache[3] = $event => (_ctx.$emit('column-dragstart', $event))),
  32321. onColumnDragover: _cache[4] || (_cache[4] = $event => (_ctx.$emit('column-dragover', $event))),
  32322. onColumnDragleave: _cache[5] || (_cache[5] = $event => (_ctx.$emit('column-dragleave', $event))),
  32323. onColumnDrop: _cache[6] || (_cache[6] = $event => (_ctx.$emit('column-drop', $event))),
  32324. groupRowsBy: $props.groupRowsBy,
  32325. groupRowSortField: $props.groupRowSortField,
  32326. resizableColumns: $props.resizableColumns,
  32327. onColumnResizestart: _cache[7] || (_cache[7] = $event => (_ctx.$emit('column-resizestart', $event))),
  32328. sortMode: $props.sortMode,
  32329. sortField: $props.sortField,
  32330. sortOrder: $props.sortOrder,
  32331. multiSortMeta: $props.multiSortMeta,
  32332. allRowsSelected: $props.allRowsSelected,
  32333. empty: $props.empty,
  32334. onCheckboxChange: _cache[8] || (_cache[8] = $event => (_ctx.$emit('checkbox-change', $event))),
  32335. filters: $props.filters,
  32336. filterDisplay: $props.filterDisplay,
  32337. filtersStore: $props.filtersStore,
  32338. onFilterChange: _cache[9] || (_cache[9] = $event => (_ctx.$emit('filter-change', $event))),
  32339. onFilterApply: _cache[10] || (_cache[10] = $event => (_ctx.$emit('filter-apply'))),
  32340. onOperatorChange: _cache[11] || (_cache[11] = $event => (_ctx.$emit('operator-change',$event))),
  32341. onMatchmodeChange: _cache[12] || (_cache[12] = $event => (_ctx.$emit('matchmode-change', $event))),
  32342. onConstraintAdd: _cache[13] || (_cache[13] = $event => (_ctx.$emit('constraint-add', $event))),
  32343. onConstraintRemove: _cache[14] || (_cache[14] = $event => (_ctx.$emit('constraint-remove', $event))),
  32344. onApplyClick: _cache[15] || (_cache[15] = $event => (_ctx.$emit('apply-click',$event)))
  32345. }, null, 8, ["column", "groupRowsBy", "groupRowSortField", "resizableColumns", "sortMode", "sortField", "sortOrder", "multiSortMeta", "allRowsSelected", "empty", "filters", "filterDisplay", "filtersStore"]))
  32346. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true)
  32347. ], 64))
  32348. }), 128))
  32349. ]),
  32350. ($props.filterDisplay === 'row')
  32351. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("tr", _hoisted_3$2, [
  32352. ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderList)($props.columns, (col, i) => {
  32353. return ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, {
  32354. key: $options.columnProp(col, 'columnKey')||$options.columnProp(col, 'field')||i
  32355. }, [
  32356. (!$options.columnProp(col, 'hidden') && ($props.rowGroupMode !== 'subheader' || ($props.groupRowsBy !== $options.columnProp(col, 'field'))))
  32357. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("th", {
  32358. key: 0,
  32359. style: $options.getFilterColumnHeaderStyle(col),
  32360. class: $options.getFilterColumnHeaderClass(col)
  32361. }, [
  32362. ($options.columnProp(col, 'selectionMode') ==='multiple')
  32363. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(_component_DTHeaderCheckbox, {
  32364. key: 0,
  32365. checked: $props.allRowsSelected,
  32366. onChange: _cache[16] || (_cache[16] = $event => (_ctx.$emit('checkbox-change', $event))),
  32367. disabled: $props.empty
  32368. }, null, 8, ["checked", "disabled"]))
  32369. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  32370. (col.children && col.children.filter)
  32371. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(_component_DTColumnFilter, {
  32372. key: 1,
  32373. field: $options.columnProp(col,'filterField')||$options.columnProp(col,'field'),
  32374. type: $options.columnProp(col,'dataType'),
  32375. display: "row",
  32376. showMenu: $options.columnProp(col,'showFilterMenu'),
  32377. filterElement: col.children && col.children.filter,
  32378. filterHeaderTemplate: col.children && col.children.filterheader,
  32379. filterFooterTemplate: col.children && col.children.filterfooter,
  32380. filterClearTemplate: col.children && col.children.filterclear,
  32381. filterApplyTemplate: col.children && col.children.filterapply,
  32382. filters: $props.filters,
  32383. filtersStore: $props.filtersStore,
  32384. onFilterChange: _cache[17] || (_cache[17] = $event => (_ctx.$emit('filter-change', $event))),
  32385. onFilterApply: _cache[18] || (_cache[18] = $event => (_ctx.$emit('filter-apply'))),
  32386. filterMenuStyle: $options.columnProp(col,'filterMenuStyle'),
  32387. filterMenuClass: $options.columnProp(col,'filterMenuClass'),
  32388. showOperator: $options.columnProp(col,'showFilterOperator'),
  32389. showClearButton: $options.columnProp(col,'showClearButton'),
  32390. showApplyButton: $options.columnProp(col,'showApplyButton'),
  32391. showMatchModes: $options.columnProp(col,'showFilterMatchModes'),
  32392. showAddButton: $options.columnProp(col,'showAddButton'),
  32393. matchModeOptions: $options.columnProp(col,'filterMatchModeOptions'),
  32394. maxConstraints: $options.columnProp(col,'maxConstraints'),
  32395. onOperatorChange: _cache[19] || (_cache[19] = $event => (_ctx.$emit('operator-change',$event))),
  32396. onMatchmodeChange: _cache[20] || (_cache[20] = $event => (_ctx.$emit('matchmode-change', $event))),
  32397. onConstraintAdd: _cache[21] || (_cache[21] = $event => (_ctx.$emit('constraint-add', $event))),
  32398. onConstraintRemove: _cache[22] || (_cache[22] = $event => (_ctx.$emit('constraint-remove', $event))),
  32399. onApplyClick: _cache[23] || (_cache[23] = $event => (_ctx.$emit('apply-click',$event)))
  32400. }, null, 8, ["field", "type", "showMenu", "filterElement", "filterHeaderTemplate", "filterFooterTemplate", "filterClearTemplate", "filterApplyTemplate", "filters", "filtersStore", "filterMenuStyle", "filterMenuClass", "showOperator", "showClearButton", "showApplyButton", "showMatchModes", "showAddButton", "matchModeOptions", "maxConstraints"]))
  32401. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true)
  32402. ], 6))
  32403. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true)
  32404. ], 64))
  32405. }), 128))
  32406. ]))
  32407. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true)
  32408. ], 64))
  32409. : ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, { key: 1 }, (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderList)($options.getHeaderRows(), (row, i) => {
  32410. return ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("tr", {
  32411. key: i,
  32412. role: "row"
  32413. }, [
  32414. ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderList)($options.getHeaderColumns(row), (col, j) => {
  32415. return ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, {
  32416. key: $options.columnProp(col, 'columnKey')||$options.columnProp(col, 'field')||j
  32417. }, [
  32418. (!$options.columnProp(col, 'hidden') && ($props.rowGroupMode !== 'subheader' || ($props.groupRowsBy !== $options.columnProp(col, 'field'))) && (typeof col.children !== 'string'))
  32419. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(_component_DTHeaderCell, {
  32420. key: 0,
  32421. column: col,
  32422. onColumnClick: _cache[24] || (_cache[24] = $event => (_ctx.$emit('column-click', $event))),
  32423. onColumnMousedown: _cache[25] || (_cache[25] = $event => (_ctx.$emit('column-mousedown', $event))),
  32424. groupRowsBy: $props.groupRowsBy,
  32425. groupRowSortField: $props.groupRowSortField,
  32426. sortMode: $props.sortMode,
  32427. sortField: $props.sortField,
  32428. sortOrder: $props.sortOrder,
  32429. multiSortMeta: $props.multiSortMeta,
  32430. allRowsSelected: $props.allRowsSelected,
  32431. empty: $props.empty,
  32432. onCheckboxChange: _cache[26] || (_cache[26] = $event => (_ctx.$emit('checkbox-change', $event))),
  32433. filters: $props.filters,
  32434. filterDisplay: $props.filterDisplay,
  32435. filtersStore: $props.filtersStore,
  32436. onFilterChange: _cache[27] || (_cache[27] = $event => (_ctx.$emit('filter-change', $event))),
  32437. onFilterApply: _cache[28] || (_cache[28] = $event => (_ctx.$emit('filter-apply'))),
  32438. onOperatorChange: _cache[29] || (_cache[29] = $event => (_ctx.$emit('operator-change',$event))),
  32439. onMatchmodeChange: _cache[30] || (_cache[30] = $event => (_ctx.$emit('matchmode-change', $event))),
  32440. onConstraintAdd: _cache[31] || (_cache[31] = $event => (_ctx.$emit('constraint-add', $event))),
  32441. onConstraintRemove: _cache[32] || (_cache[32] = $event => (_ctx.$emit('constraint-remove', $event))),
  32442. onApplyClick: _cache[33] || (_cache[33] = $event => (_ctx.$emit('apply-click',$event)))
  32443. }, null, 8, ["column", "groupRowsBy", "groupRowSortField", "sortMode", "sortField", "sortOrder", "multiSortMeta", "allRowsSelected", "empty", "filters", "filterDisplay", "filtersStore"]))
  32444. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true)
  32445. ], 64))
  32446. }), 128))
  32447. ]))
  32448. }), 128))
  32449. ]))
  32450. }
  32451. script$7.render = render$7;
  32452. var script$6 = {
  32453. name: 'RowRadioButton',
  32454. inheritAttrs: false,
  32455. emits: ['change'],
  32456. props: {
  32457. value: null,
  32458. checked: null
  32459. },
  32460. data() {
  32461. return {
  32462. focused: false
  32463. };
  32464. },
  32465. methods: {
  32466. onClick(event) {
  32467. if (!this.disabled) {
  32468. if (!this.checked) {
  32469. this.$emit('change', {
  32470. originalEvent: event,
  32471. data: this.value
  32472. });
  32473. }
  32474. }
  32475. },
  32476. onFocus() {
  32477. this.focused = true;
  32478. },
  32479. onBlur() {
  32480. this.focused = false;
  32481. }
  32482. }
  32483. };
  32484. const _hoisted_1$4 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("div", { class: "p-radiobutton-icon" }, null, -1);
  32485. function render$6(_ctx, _cache, $props, $setup, $data, $options) {
  32486. return ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("div", {
  32487. class: ['p-radiobutton p-component', {'p-radiobutton-focused': $data.focused}],
  32488. onClick: _cache[1] || (_cache[1] = (...args) => ($options.onClick && $options.onClick(...args))),
  32489. tabindex: "0",
  32490. onFocus: _cache[2] || (_cache[2] = $event => ($options.onFocus($event))),
  32491. onBlur: _cache[3] || (_cache[3] = $event => ($options.onBlur($event))),
  32492. onKeydown: _cache[4] || (_cache[4] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)((0,vue__WEBPACK_IMPORTED_MODULE_4__.withModifiers)((...args) => ($options.onClick && $options.onClick(...args)), ["prevent"]), ["space"]))
  32493. }, [
  32494. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("div", {
  32495. ref: "box",
  32496. class: ['p-radiobutton-box p-component', {'p-highlight': $props.checked, 'p-disabled': _ctx.$attrs.disabled, 'p-focus': $data.focused}],
  32497. role: "radio",
  32498. "aria-checked": $props.checked
  32499. }, [
  32500. _hoisted_1$4
  32501. ], 10, ["aria-checked"])
  32502. ], 34))
  32503. }
  32504. script$6.render = render$6;
  32505. var script$5 = {
  32506. name: 'RowCheckbox',
  32507. inheritAttrs: false,
  32508. emits: ['change'],
  32509. props: {
  32510. value: null,
  32511. checked: null
  32512. },
  32513. data() {
  32514. return {
  32515. focused: false
  32516. };
  32517. },
  32518. methods: {
  32519. onClick(event) {
  32520. if (!this.$attrs.disabled) {
  32521. this.focused = true;
  32522. this.$emit('change', {
  32523. originalEvent: event,
  32524. data: this.value
  32525. });
  32526. }
  32527. },
  32528. onFocus() {
  32529. this.focused = true;
  32530. },
  32531. onBlur() {
  32532. this.focused = false;
  32533. }
  32534. }
  32535. };
  32536. function render$5(_ctx, _cache, $props, $setup, $data, $options) {
  32537. return ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("div", {
  32538. class: ['p-checkbox p-component', {'p-checkbox-focused': $data.focused}],
  32539. onClick: _cache[4] || (_cache[4] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withModifiers)((...args) => ($options.onClick && $options.onClick(...args)), ["stop","prevent"]))
  32540. }, [
  32541. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("div", {
  32542. ref: "box",
  32543. class: ['p-checkbox-box p-component', {'p-highlight': $props.checked, 'p-disabled': _ctx.$attrs.disabled, 'p-focus': $data.focused}],
  32544. role: "checkbox",
  32545. "aria-checked": $props.checked,
  32546. tabindex: _ctx.$attrs.disabled ? null : '0',
  32547. onKeydown: _cache[1] || (_cache[1] = (0,vue__WEBPACK_IMPORTED_MODULE_4__.withKeys)((0,vue__WEBPACK_IMPORTED_MODULE_4__.withModifiers)((...args) => ($options.onClick && $options.onClick(...args)), ["prevent"]), ["space"])),
  32548. onFocus: _cache[2] || (_cache[2] = $event => ($options.onFocus($event))),
  32549. onBlur: _cache[3] || (_cache[3] = $event => ($options.onBlur($event)))
  32550. }, [
  32551. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("span", {
  32552. class: ['p-checkbox-icon', {'pi pi-check': $props.checked}]
  32553. }, null, 2)
  32554. ], 42, ["aria-checked", "tabindex"])
  32555. ], 2))
  32556. }
  32557. script$5.render = render$5;
  32558. var script$4 = {
  32559. name: 'BodyCell',
  32560. emits: ['cell-edit-init', 'cell-edit-complete', 'cell-edit-cancel', 'row-edit-init', 'row-edit-save', 'row-edit-cancel',
  32561. 'row-toggle', 'radio-change', 'checkbox-change', 'editing-meta-change'],
  32562. props: {
  32563. rowData: {
  32564. type: Object,
  32565. default: null
  32566. },
  32567. column: {
  32568. type: Object,
  32569. default: null
  32570. },
  32571. frozenRow: {
  32572. type: Boolean,
  32573. default: false
  32574. },
  32575. rowIndex: {
  32576. type: Number,
  32577. default: null
  32578. },
  32579. index: {
  32580. type: Number,
  32581. default: null
  32582. },
  32583. rowTogglerIcon: {
  32584. type: Array,
  32585. default: null
  32586. },
  32587. selected: {
  32588. type: Boolean,
  32589. default: false
  32590. },
  32591. editing: {
  32592. type: Boolean,
  32593. default: false
  32594. },
  32595. editingMeta: {
  32596. type: Object,
  32597. default: null
  32598. },
  32599. editMode: {
  32600. type: String,
  32601. default: null
  32602. },
  32603. responsiveLayout: {
  32604. type: String,
  32605. default: 'stack'
  32606. },
  32607. virtualScrollerContentProps: {
  32608. type: Object,
  32609. default: null
  32610. }
  32611. },
  32612. documentEditListener: null,
  32613. selfClick: false,
  32614. overlayEventListener: null,
  32615. data() {
  32616. return {
  32617. d_editing: this.editing,
  32618. styleObject: {}
  32619. }
  32620. },
  32621. watch: {
  32622. editing(newValue) {
  32623. this.d_editing = newValue;
  32624. },
  32625. '$data.d_editing': function(newValue) {
  32626. this.$emit('editing-meta-change', {data: this.rowData, field: (this.field || `field_${this.index}`), index: this.rowIndex, editing: newValue});
  32627. }
  32628. },
  32629. mounted() {
  32630. if (this.columnProp('frozen')) {
  32631. this.updateStickyPosition();
  32632. }
  32633. },
  32634. updated() {
  32635. if (this.columnProp('frozen')) {
  32636. this.updateStickyPosition();
  32637. }
  32638. if (this.d_editing && (this.editMode === 'cell' || (this.editMode === 'row' && this.columnProp('rowEditor')))) {
  32639. const focusableEl = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getFirstFocusableElement(this.$el);
  32640. focusableEl && focusableEl.focus();
  32641. }
  32642. },
  32643. beforeUnmount() {
  32644. if (this.overlayEventListener) {
  32645. primevue_overlayeventbus__WEBPACK_IMPORTED_MODULE_5__["default"].off('overlay-click', this.overlayEventListener);
  32646. this.overlayEventListener = null;
  32647. }
  32648. },
  32649. methods: {
  32650. columnProp(prop) {
  32651. return primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.getVNodeProp(this.column, prop);
  32652. },
  32653. resolveFieldData() {
  32654. return primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(this.rowData, this.field);
  32655. },
  32656. toggleRow(event) {
  32657. this.$emit('row-toggle', {
  32658. originalEvent: event,
  32659. data: this.rowData
  32660. });
  32661. },
  32662. toggleRowWithRadio(event, index) {
  32663. this.$emit('radio-change', { originalEvent: event.originalEvent, index: index, data: event.data});
  32664. },
  32665. toggleRowWithCheckbox(event, index) {
  32666. this.$emit('checkbox-change', { originalEvent: event.originalEvent, index: index, data: event.data });
  32667. },
  32668. isEditable() {
  32669. return this.column.children && this.column.children.editor != null;
  32670. },
  32671. bindDocumentEditListener() {
  32672. if (!this.documentEditListener) {
  32673. this.documentEditListener = (event) => {
  32674. if (!this.selfClick) {
  32675. this.completeEdit(event, 'outside');
  32676. }
  32677. this.selfClick = false;
  32678. };
  32679. document.addEventListener('click', this.documentEditListener);
  32680. }
  32681. },
  32682. unbindDocumentEditListener() {
  32683. if (this.documentEditListener) {
  32684. document.removeEventListener('click', this.documentEditListener);
  32685. this.documentEditListener = null;
  32686. this.selfClick = false;
  32687. }
  32688. },
  32689. switchCellToViewMode() {
  32690. this.d_editing = false;
  32691. this.unbindDocumentEditListener();
  32692. primevue_overlayeventbus__WEBPACK_IMPORTED_MODULE_5__["default"].off('overlay-click', this.overlayEventListener);
  32693. this.overlayEventListener = null;
  32694. },
  32695. onClick(event) {
  32696. if (this.editMode === 'cell' && this.isEditable()) {
  32697. this.selfClick = true;
  32698. if (!this.d_editing) {
  32699. this.d_editing = true;
  32700. this.bindDocumentEditListener();
  32701. this.$emit('cell-edit-init', {originalEvent: event, data: this.rowData, field: this.field, index: this.rowIndex});
  32702. this.overlayEventListener = (e) => {
  32703. if (this.$el && this.$el.contains(e.target)) {
  32704. this.selfClick = true;
  32705. }
  32706. };
  32707. primevue_overlayeventbus__WEBPACK_IMPORTED_MODULE_5__["default"].on('overlay-click', this.overlayEventListener);
  32708. }
  32709. }
  32710. },
  32711. completeEdit(event, type) {
  32712. const completeEvent = {
  32713. originalEvent: event,
  32714. data: this.rowData,
  32715. newData: this.editingRowData,
  32716. value: this.rowData[this.field],
  32717. newValue: this.editingRowData[this.field],
  32718. field: this.field,
  32719. index: this.rowIndex,
  32720. type: type,
  32721. defaultPrevented: false,
  32722. preventDefault: function() {
  32723. this.defaultPrevented = true;
  32724. }
  32725. };
  32726. this.$emit('cell-edit-complete', completeEvent);
  32727. if (!completeEvent.defaultPrevented) {
  32728. this.switchCellToViewMode();
  32729. }
  32730. },
  32731. onKeyDown(event) {
  32732. if (this.editMode === 'cell') {
  32733. switch (event.which) {
  32734. case 13:
  32735. this.completeEdit(event, 'enter');
  32736. break;
  32737. case 27:
  32738. this.switchCellToViewMode();
  32739. this.$emit('cell-edit-cancel', {originalEvent: event, data: this.rowData, field: this.field, index: this.rowIndex});
  32740. break;
  32741. case 9:
  32742. this.completeEdit(event, 'tab');
  32743. if (event.shiftKey)
  32744. this.moveToPreviousCell(event);
  32745. else
  32746. this.moveToNextCell(event);
  32747. break;
  32748. }
  32749. }
  32750. },
  32751. moveToPreviousCell(event) {
  32752. let currentCell = this.findCell(event.target);
  32753. let targetCell = this.findPreviousEditableColumn(currentCell);
  32754. if (targetCell) {
  32755. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.invokeElementMethod(targetCell, 'click');
  32756. event.preventDefault();
  32757. }
  32758. },
  32759. moveToNextCell(event) {
  32760. let currentCell = this.findCell(event.target);
  32761. let targetCell = this.findNextEditableColumn(currentCell);
  32762. if (targetCell) {
  32763. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.invokeElementMethod(targetCell, 'click');
  32764. event.preventDefault();
  32765. }
  32766. },
  32767. findCell(element) {
  32768. if (element) {
  32769. let cell = element;
  32770. while (cell && !primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(cell, 'p-cell-editing')) {
  32771. cell = cell.parentElement;
  32772. }
  32773. return cell;
  32774. }
  32775. else {
  32776. return null;
  32777. }
  32778. },
  32779. findPreviousEditableColumn(cell) {
  32780. let prevCell = cell.previousElementSibling;
  32781. if (!prevCell) {
  32782. let previousRow = cell.parentElement.previousElementSibling;
  32783. if (previousRow) {
  32784. prevCell = previousRow.lastElementChild;
  32785. }
  32786. }
  32787. if (prevCell) {
  32788. if (primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(prevCell, 'p-editable-column'))
  32789. return prevCell;
  32790. else
  32791. return this.findPreviousEditableColumn(prevCell);
  32792. }
  32793. else {
  32794. return null;
  32795. }
  32796. },
  32797. findNextEditableColumn(cell) {
  32798. let nextCell = cell.nextElementSibling;
  32799. if (!nextCell) {
  32800. let nextRow = cell.parentElement.nextElementSibling;
  32801. if (nextRow) {
  32802. nextCell = nextRow.firstElementChild;
  32803. }
  32804. }
  32805. if (nextCell) {
  32806. if (primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(nextCell, 'p-editable-column'))
  32807. return nextCell;
  32808. else
  32809. return this.findNextEditableColumn(nextCell);
  32810. }
  32811. else {
  32812. return null;
  32813. }
  32814. },
  32815. isEditingCellValid() {
  32816. return (primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.find(this.$el, '.p-invalid').length === 0);
  32817. },
  32818. onRowEditInit(event) {
  32819. this.$emit('row-edit-init', {originalEvent: event, data: this.rowData, newData: this.editingRowData, field: this.field, index: this.rowIndex});
  32820. },
  32821. onRowEditSave(event) {
  32822. this.$emit('row-edit-save', {originalEvent: event, data: this.rowData, newData: this.editingRowData, field: this.field, index: this.rowIndex});
  32823. },
  32824. onRowEditCancel(event) {
  32825. this.$emit('row-edit-cancel', {originalEvent: event, data: this.rowData, newData: this.editingRowData, field: this.field, index: this.rowIndex});
  32826. },
  32827. editorInitCallback(event) {
  32828. this.$emit('row-edit-init', {originalEvent: event, data: this.rowData, newData: this.editingRowData, field: this.field, index: this.rowIndex});
  32829. },
  32830. editorSaveCallback(event) {
  32831. this.$emit('row-edit-save', {originalEvent: event, data: this.rowData, newData: this.editingRowData, field: this.field, index: this.rowIndex});
  32832. },
  32833. editorCancelCallback(event) {
  32834. this.$emit('row-edit-cancel', {originalEvent: event, data: this.rowData, newData: this.editingRowData, field: this.field, index: this.rowIndex});
  32835. },
  32836. updateStickyPosition() {
  32837. if (this.columnProp('frozen')) {
  32838. let align = this.columnProp('alignFrozen');
  32839. if (align === 'right') {
  32840. let right = 0;
  32841. let next = this.$el.nextElementSibling;
  32842. if (next) {
  32843. right = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterWidth(next) + parseFloat(next.style.right || 0);
  32844. }
  32845. this.styleObject.right = right + 'px';
  32846. }
  32847. else {
  32848. let left = 0;
  32849. let prev = this.$el.previousElementSibling;
  32850. if (prev) {
  32851. left = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterWidth(prev) + parseFloat(prev.style.left || 0);
  32852. }
  32853. this.styleObject.left = left + 'px';
  32854. }
  32855. }
  32856. },
  32857. getVirtualScrollerProp(option) {
  32858. return this.virtualScrollerContentProps ? this.virtualScrollerContentProps[option] : null;
  32859. }
  32860. },
  32861. computed: {
  32862. editingRowData() {
  32863. return this.editingMeta[this.rowIndex] ? this.editingMeta[this.rowIndex].data : this.rowData;
  32864. },
  32865. field() {
  32866. return this.columnProp('field');
  32867. },
  32868. containerClass() {
  32869. return [this.columnProp('bodyClass'), this.columnProp('class'), {
  32870. 'p-selection-column': this.columnProp('selectionMode') != null,
  32871. 'p-editable-column': this.isEditable(),
  32872. 'p-cell-editing': this.d_editing,
  32873. 'p-frozen-column': this.columnProp('frozen')
  32874. }];
  32875. },
  32876. containerStyle() {
  32877. let bodyStyle = this.columnProp('bodyStyle');
  32878. let columnStyle = this.columnProp('style');
  32879. return this.columnProp('frozen') ? [columnStyle, bodyStyle, this.styleObject]: [columnStyle, bodyStyle];
  32880. },
  32881. loading() {
  32882. return this.getVirtualScrollerProp('loading');
  32883. },
  32884. loadingOptions() {
  32885. const getLoaderOptions = this.getVirtualScrollerProp('getLoaderOptions');
  32886. return getLoaderOptions && getLoaderOptions(this.rowIndex, {
  32887. cellIndex: this.index,
  32888. cellFirst: this.index === 0,
  32889. cellLast: this.index === (this.getVirtualScrollerProp('columns').length - 1),
  32890. cellEven: this.index % 2 === 0,
  32891. cellOdd: this.index % 2 !== 0,
  32892. column: this.column,
  32893. field: this.field
  32894. });
  32895. }
  32896. },
  32897. components: {
  32898. 'DTRadioButton': script$6,
  32899. 'DTCheckbox': script$5
  32900. },
  32901. directives: {
  32902. 'ripple': primevue_ripple__WEBPACK_IMPORTED_MODULE_8__["default"]
  32903. }
  32904. };
  32905. const _hoisted_1$3 = {
  32906. key: 0,
  32907. class: "p-column-title"
  32908. };
  32909. const _hoisted_2$2 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("span", { class: "p-row-editor-init-icon pi pi-fw pi-pencil" }, null, -1);
  32910. const _hoisted_3$1 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("span", { class: "p-row-editor-save-icon pi pi-fw pi-check" }, null, -1);
  32911. const _hoisted_4$1 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("span", { class: "p-row-editor-cancel-icon pi pi-fw pi-times" }, null, -1);
  32912. function render$4(_ctx, _cache, $props, $setup, $data, $options) {
  32913. const _component_DTRadioButton = (0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveComponent)("DTRadioButton");
  32914. const _component_DTCheckbox = (0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveComponent)("DTCheckbox");
  32915. const _directive_ripple = (0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveDirective)("ripple");
  32916. return ($options.loading)
  32917. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("td", {
  32918. key: 0,
  32919. style: $options.containerStyle,
  32920. class: $options.containerClass
  32921. }, [
  32922. ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)((0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveDynamicComponent)($props.column.children.loading), {
  32923. data: $props.rowData,
  32924. column: $props.column,
  32925. field: $options.field,
  32926. index: $props.rowIndex,
  32927. frozenRow: $props.frozenRow,
  32928. loadingOptions: $options.loadingOptions
  32929. }, null, 8, ["data", "column", "field", "index", "frozenRow", "loadingOptions"]))
  32930. ], 6))
  32931. : ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("td", {
  32932. key: 1,
  32933. style: $options.containerStyle,
  32934. class: $options.containerClass,
  32935. onClick: _cache[7] || (_cache[7] = (...args) => ($options.onClick && $options.onClick(...args))),
  32936. onKeydown: _cache[8] || (_cache[8] = (...args) => ($options.onKeyDown && $options.onKeyDown(...args))),
  32937. role: "cell"
  32938. }, [
  32939. ($props.responsiveLayout === 'stack')
  32940. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("span", _hoisted_1$3, (0,vue__WEBPACK_IMPORTED_MODULE_4__.toDisplayString)($options.columnProp('header')), 1))
  32941. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  32942. ($props.column.children && $props.column.children.body && !$data.d_editing)
  32943. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)((0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveDynamicComponent)($props.column.children.body), {
  32944. key: 1,
  32945. data: $props.rowData,
  32946. column: $props.column,
  32947. field: $options.field,
  32948. index: $props.rowIndex,
  32949. frozenRow: $props.frozenRow,
  32950. editorInitCallback: $options.editorInitCallback
  32951. }, null, 8, ["data", "column", "field", "index", "frozenRow", "editorInitCallback"]))
  32952. : ($props.column.children && $props.column.children.editor && $data.d_editing)
  32953. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)((0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveDynamicComponent)($props.column.children.editor), {
  32954. key: 2,
  32955. data: $options.editingRowData,
  32956. column: $props.column,
  32957. field: $options.field,
  32958. index: $props.rowIndex,
  32959. frozenRow: $props.frozenRow,
  32960. editorSaveCallback: $options.editorSaveCallback,
  32961. editorCancelCallback: $options.editorCancelCallback
  32962. }, null, 8, ["data", "column", "field", "index", "frozenRow", "editorSaveCallback", "editorCancelCallback"]))
  32963. : ($props.column.children && $props.column.children.body && !$props.column.children.editor && $data.d_editing)
  32964. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)((0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveDynamicComponent)($props.column.children.body), {
  32965. key: 3,
  32966. data: $options.editingRowData,
  32967. column: $props.column,
  32968. field: $options.field,
  32969. index: $props.rowIndex,
  32970. frozenRow: $props.frozenRow
  32971. }, null, 8, ["data", "column", "field", "index", "frozenRow"]))
  32972. : ($options.columnProp('selectionMode'))
  32973. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, { key: 4 }, [
  32974. ($options.columnProp('selectionMode') === 'single')
  32975. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(_component_DTRadioButton, {
  32976. key: 0,
  32977. value: $props.rowData,
  32978. checked: $props.selected,
  32979. onChange: _cache[1] || (_cache[1] = $event => ($options.toggleRowWithRadio($event, $props.rowIndex)))
  32980. }, null, 8, ["value", "checked"]))
  32981. : ($options.columnProp('selectionMode') ==='multiple')
  32982. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(_component_DTCheckbox, {
  32983. key: 1,
  32984. value: $props.rowData,
  32985. checked: $props.selected,
  32986. onChange: _cache[2] || (_cache[2] = $event => ($options.toggleRowWithCheckbox($event, $props.rowIndex)))
  32987. }, null, 8, ["value", "checked"]))
  32988. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true)
  32989. ], 64))
  32990. : ($options.columnProp('rowReorder'))
  32991. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("i", {
  32992. key: 5,
  32993. class: ['p-datatable-reorderablerow-handle', ($options.columnProp('rowReorderIcon') || 'pi pi-bars')]
  32994. }, null, 2))
  32995. : ($options.columnProp('expander'))
  32996. ? (0,vue__WEBPACK_IMPORTED_MODULE_4__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("button", {
  32997. key: 6,
  32998. class: "p-row-toggler p-link",
  32999. onClick: _cache[3] || (_cache[3] = (...args) => ($options.toggleRow && $options.toggleRow(...args))),
  33000. type: "button"
  33001. }, [
  33002. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("span", { class: $props.rowTogglerIcon }, null, 2)
  33003. ], 512)), [
  33004. [_directive_ripple]
  33005. ])
  33006. : ($props.editMode === 'row' && $options.columnProp('rowEditor'))
  33007. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, { key: 7 }, [
  33008. (!$data.d_editing)
  33009. ? (0,vue__WEBPACK_IMPORTED_MODULE_4__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("button", {
  33010. key: 0,
  33011. class: "p-row-editor-init p-link",
  33012. onClick: _cache[4] || (_cache[4] = (...args) => ($options.onRowEditInit && $options.onRowEditInit(...args))),
  33013. type: "button"
  33014. }, [
  33015. _hoisted_2$2
  33016. ], 512)), [
  33017. [_directive_ripple]
  33018. ])
  33019. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  33020. ($data.d_editing)
  33021. ? (0,vue__WEBPACK_IMPORTED_MODULE_4__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("button", {
  33022. key: 1,
  33023. class: "p-row-editor-save p-link",
  33024. onClick: _cache[5] || (_cache[5] = (...args) => ($options.onRowEditSave && $options.onRowEditSave(...args))),
  33025. type: "button"
  33026. }, [
  33027. _hoisted_3$1
  33028. ], 512)), [
  33029. [_directive_ripple]
  33030. ])
  33031. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  33032. ($data.d_editing)
  33033. ? (0,vue__WEBPACK_IMPORTED_MODULE_4__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("button", {
  33034. key: 2,
  33035. class: "p-row-editor-cancel p-link",
  33036. onClick: _cache[6] || (_cache[6] = (...args) => ($options.onRowEditCancel && $options.onRowEditCancel(...args))),
  33037. type: "button"
  33038. }, [
  33039. _hoisted_4$1
  33040. ], 512)), [
  33041. [_directive_ripple]
  33042. ])
  33043. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true)
  33044. ], 64))
  33045. : ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, { key: 8 }, [
  33046. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_4__.toDisplayString)($options.resolveFieldData()), 1)
  33047. ], 64))
  33048. ], 38))
  33049. }
  33050. script$4.render = render$4;
  33051. var script$3 = {
  33052. name: 'TableBody',
  33053. emits: ['rowgroup-toggle', 'row-click', 'row-dblclick', 'row-rightclick', 'row-touchend', 'row-keydown', 'row-mousedown',
  33054. 'row-dragstart', 'row-dragover', 'row-dragleave', 'row-dragend', 'row-drop', 'row-toggle',
  33055. 'radio-change', 'checkbox-change', 'cell-edit-init', 'cell-edit-complete', 'cell-edit-cancel',
  33056. 'row-edit-init', 'row-edit-save', 'row-edit-cancel', 'editing-meta-change'],
  33057. props: {
  33058. value: {
  33059. type: Array,
  33060. default: null
  33061. },
  33062. columns: {
  33063. type: null,
  33064. default: null
  33065. },
  33066. frozenRow: {
  33067. type: Boolean,
  33068. default: false
  33069. },
  33070. empty: {
  33071. type: Boolean,
  33072. default: false
  33073. },
  33074. rowGroupMode: {
  33075. type: String,
  33076. default: null
  33077. },
  33078. groupRowsBy: {
  33079. type: [Array,String],
  33080. default: null
  33081. },
  33082. expandableRowGroups: {
  33083. type: Boolean,
  33084. default: false
  33085. },
  33086. expandedRowGroups: {
  33087. type: Array,
  33088. default: null
  33089. },
  33090. dataKey: {
  33091. type: String,
  33092. default: null
  33093. },
  33094. expandedRowIcon: {
  33095. type: String,
  33096. default: null
  33097. },
  33098. collapsedRowIcon: {
  33099. type: String,
  33100. default: null
  33101. },
  33102. expandedRows: {
  33103. type: Array,
  33104. default: null
  33105. },
  33106. expandedRowKeys: {
  33107. type: null,
  33108. default: null
  33109. },
  33110. selection: {
  33111. type: [Array,Object],
  33112. default: null
  33113. },
  33114. selectionKeys: {
  33115. type: null,
  33116. default: null
  33117. },
  33118. selectionMode: {
  33119. type: String,
  33120. default: null
  33121. },
  33122. contextMenu: {
  33123. type: Boolean,
  33124. default: false
  33125. },
  33126. contextMenuSelection: {
  33127. type: Object,
  33128. default: null
  33129. },
  33130. rowClass: {
  33131. type: null,
  33132. default: null
  33133. },
  33134. rowStyle: {
  33135. type: null,
  33136. default: null
  33137. },
  33138. editMode: {
  33139. type: String,
  33140. default: null
  33141. },
  33142. compareSelectionBy: {
  33143. type: String,
  33144. default: 'deepEquals'
  33145. },
  33146. editingRows: {
  33147. type: Array,
  33148. default: null
  33149. },
  33150. editingRowKeys: {
  33151. type: null,
  33152. default: null
  33153. },
  33154. editingMeta: {
  33155. type: Object,
  33156. default: null
  33157. },
  33158. loading: {
  33159. type: Boolean,
  33160. default: false
  33161. },
  33162. templates: {
  33163. type: null,
  33164. default: null
  33165. },
  33166. scrollable: {
  33167. type: Boolean,
  33168. default: false
  33169. },
  33170. responsiveLayout: {
  33171. type: String,
  33172. default: 'stack'
  33173. },
  33174. virtualScrollerContentProps: {
  33175. type: Object,
  33176. default: null
  33177. },
  33178. isVirtualScrollerDisabled: {
  33179. type: Boolean,
  33180. default: false
  33181. }
  33182. },
  33183. watch: {
  33184. virtualScrollerContentProps(newValue, oldValue) {
  33185. if (!this.isVirtualScrollerDisabled && this.getVirtualScrollerProp('vertical') && this.getVirtualScrollerProp('itemSize', oldValue) !== this.getVirtualScrollerProp('itemSize', newValue)) {
  33186. this.updateVirtualScrollerPosition();
  33187. }
  33188. }
  33189. },
  33190. mounted() {
  33191. if (this.frozenRow) {
  33192. this.updateFrozenRowStickyPosition();
  33193. }
  33194. if (this.scrollable && this.rowGroupMode === 'subheader') {
  33195. this.updateFrozenRowGroupHeaderStickyPosition();
  33196. }
  33197. if (!this.isVirtualScrollerDisabled && this.getVirtualScrollerProp('vertical')) {
  33198. this.updateVirtualScrollerPosition();
  33199. }
  33200. },
  33201. updated() {
  33202. if (this.frozenRow) {
  33203. this.updateFrozenRowStickyPosition();
  33204. }
  33205. if (this.scrollable && this.rowGroupMode === 'subheader') {
  33206. this.updateFrozenRowGroupHeaderStickyPosition();
  33207. }
  33208. },
  33209. data() {
  33210. return {
  33211. rowGroupHeaderStyleObject: {}
  33212. }
  33213. },
  33214. methods: {
  33215. columnProp(col, prop) {
  33216. return primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.getVNodeProp(col, prop);
  33217. },
  33218. shouldRenderRowGroupHeader(value, rowData, i) {
  33219. let currentRowFieldData = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(rowData, this.groupRowsBy);
  33220. let prevRowData = value[i - 1];
  33221. if (prevRowData) {
  33222. let previousRowFieldData = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(prevRowData, this.groupRowsBy);
  33223. return currentRowFieldData !== previousRowFieldData;
  33224. }
  33225. else {
  33226. return true;
  33227. }
  33228. },
  33229. getRowKey(rowData, index) {
  33230. return this.dataKey ? primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(rowData, this.dataKey): index;
  33231. },
  33232. getRowIndex(index) {
  33233. const getItemOptions = this.getVirtualScrollerProp('getItemOptions');
  33234. return getItemOptions ? getItemOptions(index).index : index;
  33235. },
  33236. getRowClass(rowData) {
  33237. let rowStyleClass = [];
  33238. if (this.selectionMode) {
  33239. rowStyleClass.push('p-selectable-row');
  33240. }
  33241. if (this.selection) {
  33242. rowStyleClass.push({
  33243. 'p-highlight': this.isSelected(rowData)
  33244. });
  33245. }
  33246. if (this.contextMenuSelection) {
  33247. rowStyleClass.push({
  33248. 'p-highlight-contextmenu': this.isSelectedWithContextMenu(rowData)
  33249. });
  33250. }
  33251. if (this.rowClass) {
  33252. let rowClassValue = this.rowClass(rowData);
  33253. if (rowClassValue) {
  33254. rowStyleClass.push(rowClassValue);
  33255. }
  33256. }
  33257. return rowStyleClass;
  33258. },
  33259. shouldRenderRowGroupFooter(value, rowData, i) {
  33260. if (this.expandableRowGroups && !this.isRowGroupExpanded(rowData)) {
  33261. return false;
  33262. }
  33263. else {
  33264. let currentRowFieldData = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(rowData, this.groupRowsBy);
  33265. let nextRowData = value[i + 1];
  33266. if (nextRowData) {
  33267. let nextRowFieldData = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(nextRowData, this.groupRowsBy);
  33268. return currentRowFieldData !== nextRowFieldData;
  33269. }
  33270. else {
  33271. return true;
  33272. }
  33273. }
  33274. },
  33275. shouldRenderBodyCell(value, column, i) {
  33276. if (this.rowGroupMode) {
  33277. if (this.rowGroupMode === 'subheader') {
  33278. return this.groupRowsBy !== this.columnProp(column, 'field');
  33279. }
  33280. else if (this.rowGroupMode === 'rowspan') {
  33281. if (this.isGrouped(column)) {
  33282. let prevRowData = value[i - 1];
  33283. if (prevRowData) {
  33284. let currentRowFieldData = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(value[i], this.columnProp(column, 'field'));
  33285. let previousRowFieldData = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(prevRowData, this.columnProp(column, 'field'));
  33286. return currentRowFieldData !== previousRowFieldData;
  33287. }
  33288. else {
  33289. return true;
  33290. }
  33291. }
  33292. else {
  33293. return true;
  33294. }
  33295. }
  33296. }
  33297. else {
  33298. return !this.columnProp(column, 'hidden');
  33299. }
  33300. },
  33301. calculateRowGroupSize(value, column, index) {
  33302. if (this.isGrouped(column)) {
  33303. let currentRowFieldData = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(value[index], this.columnProp(column, 'field'));
  33304. let nextRowFieldData = currentRowFieldData;
  33305. let groupRowSpan = 0;
  33306. while (currentRowFieldData === nextRowFieldData) {
  33307. groupRowSpan++;
  33308. let nextRowData = value[++index];
  33309. if (nextRowData) {
  33310. nextRowFieldData = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(nextRowData, this.columnProp(column, 'field'));
  33311. }
  33312. else {
  33313. break;
  33314. }
  33315. }
  33316. return groupRowSpan === 1 ? null : groupRowSpan;
  33317. }
  33318. else {
  33319. return null;
  33320. }
  33321. },
  33322. rowTogglerIcon(rowData) {
  33323. const icon = this.isRowExpanded(rowData) ? this.expandedRowIcon : this.collapsedRowIcon;
  33324. return ['p-row-toggler-icon pi', icon];
  33325. },
  33326. rowGroupTogglerIcon(rowData) {
  33327. const icon = this.isRowGroupExpanded(rowData) ? this.expandedRowIcon : this.collapsedRowIcon;
  33328. return ['p-row-toggler-icon pi', icon];
  33329. },
  33330. isGrouped(column) {
  33331. if (this.groupRowsBy && this.columnProp(column, 'field')) {
  33332. if (Array.isArray(this.groupRowsBy))
  33333. return this.groupRowsBy.indexOf(column.props.field) > -1;
  33334. else
  33335. return this.groupRowsBy === column.props.field;
  33336. }
  33337. else {
  33338. return false;
  33339. }
  33340. },
  33341. isRowEditing(rowData) {
  33342. if (rowData && this.editingRows) {
  33343. if (this.dataKey)
  33344. return this.editingRowKeys ? this.editingRowKeys[primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(rowData, this.dataKey)] !== undefined : false;
  33345. else
  33346. return this.findIndex(rowData, this.editingRows) > -1;
  33347. }
  33348. return false;
  33349. },
  33350. isRowExpanded(rowData) {
  33351. if (rowData && this.expandedRows) {
  33352. if (this.dataKey)
  33353. return this.expandedRowKeys ? this.expandedRowKeys[primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(rowData, this.dataKey)] !== undefined : false;
  33354. else
  33355. return this.findIndex(rowData, this.expandedRows) > -1;
  33356. }
  33357. return false;
  33358. },
  33359. isRowGroupExpanded(rowData) {
  33360. if (this.expandableRowGroups && this.expandedRowGroups) {
  33361. let groupFieldValue = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(rowData, this.groupRowsBy);
  33362. return this.expandedRowGroups.indexOf(groupFieldValue) > -1;
  33363. }
  33364. return false;
  33365. },
  33366. isSelected(rowData) {
  33367. if (rowData && this.selection) {
  33368. if (this.dataKey) {
  33369. return this.selectionKeys ? this.selectionKeys[primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(rowData, this.dataKey)] !== undefined : false;
  33370. }
  33371. else {
  33372. if (this.selection instanceof Array)
  33373. return this.findIndexInSelection(rowData) > -1;
  33374. else
  33375. return this.equals(rowData, this.selection);
  33376. }
  33377. }
  33378. return false;
  33379. },
  33380. isSelectedWithContextMenu(rowData) {
  33381. if (rowData && this.contextMenuSelection) {
  33382. return this.equals(rowData, this.contextMenuSelection, this.dataKey);
  33383. }
  33384. return false;
  33385. },
  33386. findIndexInSelection(rowData) {
  33387. return this.findIndex(rowData, this.selection);
  33388. },
  33389. findIndex(rowData, collection) {
  33390. let index = -1;
  33391. if (collection && collection.length) {
  33392. for (let i = 0; i < collection.length; i++) {
  33393. if (this.equals(rowData, collection[i])) {
  33394. index = i;
  33395. break;
  33396. }
  33397. }
  33398. }
  33399. return index;
  33400. },
  33401. equals(data1, data2) {
  33402. return this.compareSelectionBy === 'equals' ? (data1 === data2) : primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.equals(data1, data2, this.dataKey);
  33403. },
  33404. onRowGroupToggle(event, data) {
  33405. this.$emit('rowgroup-toggle', {originalEvent: event, data: data});
  33406. },
  33407. onRowClick(event, rowData, rowIndex) {
  33408. this.$emit('row-click', {originalEvent: event, data: rowData, index: rowIndex});
  33409. },
  33410. onRowDblClick(event, rowData, rowIndex) {
  33411. this.$emit('row-dblclick', {originalEvent: event, data: rowData, index: rowIndex});
  33412. },
  33413. onRowRightClick(event, rowData, rowIndex) {
  33414. this.$emit('row-rightclick', {originalEvent: event, data: rowData, index: rowIndex});
  33415. },
  33416. onRowTouchEnd(event) {
  33417. this.$emit('row-touchend', event);
  33418. },
  33419. onRowKeyDown(event, rowData, rowIndex) {
  33420. this.$emit('row-keydown', {originalEvent: event, data: rowData, index: rowIndex});
  33421. },
  33422. onRowMouseDown(event) {
  33423. this.$emit('row-mousedown', event);
  33424. },
  33425. onRowDragStart(event, rowIndex) {
  33426. this.$emit('row-dragstart', {originalEvent: event, index: rowIndex});
  33427. },
  33428. onRowDragOver(event, rowIndex) {
  33429. this.$emit('row-dragover', {originalEvent: event, index: rowIndex});
  33430. },
  33431. onRowDragLeave(event) {
  33432. this.$emit('row-dragleave', event);
  33433. },
  33434. onRowDragEnd(event) {
  33435. this.$emit('row-dragend', event);
  33436. },
  33437. onRowDrop(event) {
  33438. this.$emit('row-drop', event);
  33439. },
  33440. onRowToggle(event) {
  33441. this.$emit('row-toggle', event);
  33442. },
  33443. onRadioChange(event) {
  33444. this.$emit('radio-change', event);
  33445. },
  33446. onCheckboxChange(event) {
  33447. this.$emit('checkbox-change', event);
  33448. },
  33449. onCellEditInit(event) {
  33450. this.$emit('cell-edit-init', event);
  33451. },
  33452. onCellEditComplete(event) {
  33453. this.$emit('cell-edit-complete', event);
  33454. },
  33455. onCellEditCancel(event) {
  33456. this.$emit('cell-edit-cancel', event);
  33457. },
  33458. onRowEditInit(event) {
  33459. this.$emit('row-edit-init', event);
  33460. },
  33461. onRowEditSave(event) {
  33462. this.$emit('row-edit-save', event);
  33463. },
  33464. onRowEditCancel(event) {
  33465. this.$emit('row-edit-cancel', event);
  33466. },
  33467. onEditingMetaChange(event) {
  33468. this.$emit('editing-meta-change', event);
  33469. },
  33470. updateFrozenRowStickyPosition() {
  33471. this.$el.style.top = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterHeight(this.$el.previousElementSibling) + 'px';
  33472. },
  33473. updateFrozenRowGroupHeaderStickyPosition() {
  33474. let tableHeaderHeight = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterHeight(this.$el.previousElementSibling);
  33475. this.rowGroupHeaderStyleObject.top = tableHeaderHeight + 'px';
  33476. },
  33477. updateVirtualScrollerPosition() {
  33478. const tableHeaderHeight = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterHeight(this.$el.previousElementSibling);
  33479. this.$el.style.top = (this.$el.style.top || 0) + tableHeaderHeight + 'px';
  33480. },
  33481. getVirtualScrollerProp(option, options) {
  33482. options = options || this.virtualScrollerContentProps;
  33483. return options ? options[option] : null;
  33484. },
  33485. bodyRef(el) {
  33486. // For VirtualScroller
  33487. const contentRef = this.getVirtualScrollerProp('contentRef');
  33488. contentRef && contentRef(el);
  33489. }
  33490. },
  33491. computed: {
  33492. columnsLength() {
  33493. let hiddenColLength = 0;
  33494. this.columns.forEach(column => {
  33495. if(this.columnProp(column, 'hidden')) hiddenColLength++;
  33496. });
  33497. return this.columns ? this.columns.length - hiddenColLength : 0;
  33498. },
  33499. rowGroupHeaderStyle() {
  33500. if (this.scrollable) {
  33501. return {top: this.rowGroupHeaderStyleObject.top};
  33502. }
  33503. return null;
  33504. },
  33505. bodyStyle() {
  33506. return this.getVirtualScrollerProp('contentStyle');
  33507. }
  33508. },
  33509. components: {
  33510. 'DTBodyCell': script$4
  33511. }
  33512. };
  33513. const _hoisted_1$2 = {
  33514. key: 1,
  33515. class: "p-datatable-emptymessage",
  33516. role: "row"
  33517. };
  33518. function render$3(_ctx, _cache, $props, $setup, $data, $options) {
  33519. const _component_DTBodyCell = (0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveComponent)("DTBodyCell");
  33520. return ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("tbody", {
  33521. ref: $options.bodyRef,
  33522. class: "p-datatable-tbody",
  33523. role: "rowgroup",
  33524. style: $options.bodyStyle
  33525. }, [
  33526. (!$props.empty)
  33527. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, { key: 0 }, (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderList)($props.value, (rowData, index) => {
  33528. return ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, {
  33529. key: $options.getRowKey(rowData, $options.getRowIndex(index)) + '_subheader'
  33530. }, [
  33531. ($props.templates['groupheader'] && $props.rowGroupMode === 'subheader' && $options.shouldRenderRowGroupHeader($props.value, rowData, $options.getRowIndex(index)))
  33532. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("tr", {
  33533. key: 0,
  33534. class: "p-rowgroup-header",
  33535. style: $options.rowGroupHeaderStyle,
  33536. role: "row"
  33537. }, [
  33538. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("td", {
  33539. colspan: $options.columnsLength - 1
  33540. }, [
  33541. ($props.expandableRowGroups)
  33542. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("button", {
  33543. key: 0,
  33544. class: "p-row-toggler p-link",
  33545. onClick: $event => ($options.onRowGroupToggle($event, rowData)),
  33546. type: "button"
  33547. }, [
  33548. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("span", {
  33549. class: $options.rowGroupTogglerIcon(rowData)
  33550. }, null, 2)
  33551. ], 8, ["onClick"]))
  33552. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  33553. ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)((0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveDynamicComponent)($props.templates['groupheader']), {
  33554. data: rowData,
  33555. index: $options.getRowIndex(index)
  33556. }, null, 8, ["data", "index"]))
  33557. ], 8, ["colspan"])
  33558. ], 4))
  33559. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  33560. ($props.expandableRowGroups ? $options.isRowGroupExpanded(rowData): true)
  33561. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("tr", {
  33562. class: $options.getRowClass(rowData),
  33563. style: $props.rowStyle,
  33564. key: $options.getRowKey(rowData, $options.getRowIndex(index)),
  33565. onClick: $event => ($options.onRowClick($event, rowData, $options.getRowIndex(index))),
  33566. onDblclick: $event => ($options.onRowDblClick($event, rowData, $options.getRowIndex(index))),
  33567. onContextmenu: $event => ($options.onRowRightClick($event, rowData, $options.getRowIndex(index))),
  33568. onTouchend: _cache[10] || (_cache[10] = $event => ($options.onRowTouchEnd($event))),
  33569. onKeydown: $event => ($options.onRowKeyDown($event, rowData, $options.getRowIndex(index))),
  33570. tabindex: $props.selectionMode || $props.contextMenu ? '0' : null,
  33571. onMousedown: _cache[11] || (_cache[11] = $event => ($options.onRowMouseDown($event))),
  33572. onDragstart: $event => ($options.onRowDragStart($event, $options.getRowIndex(index))),
  33573. onDragover: $event => ($options.onRowDragOver($event, $options.getRowIndex(index))),
  33574. onDragleave: _cache[12] || (_cache[12] = $event => ($options.onRowDragLeave($event))),
  33575. onDragend: _cache[13] || (_cache[13] = $event => ($options.onRowDragEnd($event))),
  33576. onDrop: _cache[14] || (_cache[14] = $event => ($options.onRowDrop($event))),
  33577. role: "row"
  33578. }, [
  33579. ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderList)($props.columns, (col, i) => {
  33580. return ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, {
  33581. key: $options.columnProp(col,'columnKey')||$options.columnProp(col,'field')||i
  33582. }, [
  33583. ($options.shouldRenderBodyCell($props.value, col, $options.getRowIndex(index)))
  33584. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(_component_DTBodyCell, {
  33585. key: 0,
  33586. rowData: rowData,
  33587. column: col,
  33588. rowIndex: $options.getRowIndex(index),
  33589. index: i,
  33590. selected: $options.isSelected(rowData),
  33591. rowTogglerIcon: $options.columnProp(col,'expander') ? $options.rowTogglerIcon(rowData): null,
  33592. frozenRow: $props.frozenRow,
  33593. rowspan: $props.rowGroupMode === 'rowspan' ? $options.calculateRowGroupSize($props.value, col, $options.getRowIndex(index)) : null,
  33594. editMode: $props.editMode,
  33595. editing: $props.editMode === 'row' && $options.isRowEditing(rowData),
  33596. responsiveLayout: $props.responsiveLayout,
  33597. onRadioChange: _cache[1] || (_cache[1] = $event => ($options.onRadioChange($event))),
  33598. onCheckboxChange: _cache[2] || (_cache[2] = $event => ($options.onCheckboxChange($event))),
  33599. onRowToggle: _cache[3] || (_cache[3] = $event => ($options.onRowToggle($event))),
  33600. onCellEditInit: _cache[4] || (_cache[4] = $event => ($options.onCellEditInit($event))),
  33601. onCellEditComplete: _cache[5] || (_cache[5] = $event => ($options.onCellEditComplete($event))),
  33602. onCellEditCancel: _cache[6] || (_cache[6] = $event => ($options.onCellEditCancel($event))),
  33603. onRowEditInit: _cache[7] || (_cache[7] = $event => ($options.onRowEditInit($event))),
  33604. onRowEditSave: _cache[8] || (_cache[8] = $event => ($options.onRowEditSave($event))),
  33605. onRowEditCancel: _cache[9] || (_cache[9] = $event => ($options.onRowEditCancel($event))),
  33606. editingMeta: $props.editingMeta,
  33607. onEditingMetaChange: $options.onEditingMetaChange,
  33608. virtualScrollerContentProps: $props.virtualScrollerContentProps
  33609. }, null, 8, ["rowData", "column", "rowIndex", "index", "selected", "rowTogglerIcon", "frozenRow", "rowspan", "editMode", "editing", "responsiveLayout", "editingMeta", "onEditingMetaChange", "virtualScrollerContentProps"]))
  33610. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true)
  33611. ], 64))
  33612. }), 128))
  33613. ], 46, ["onClick", "onDblclick", "onContextmenu", "onKeydown", "tabindex", "onDragstart", "onDragover"]))
  33614. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  33615. ($props.templates['expansion'] && $props.expandedRows && $options.isRowExpanded(rowData))
  33616. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("tr", {
  33617. class: "p-datatable-row-expansion",
  33618. key: $options.getRowKey(rowData, $options.getRowIndex(index)) + '_expansion',
  33619. role: "row"
  33620. }, [
  33621. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("td", { colspan: $options.columnsLength }, [
  33622. ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)((0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveDynamicComponent)($props.templates['expansion']), {
  33623. data: rowData,
  33624. index: $options.getRowIndex(index)
  33625. }, null, 8, ["data", "index"]))
  33626. ], 8, ["colspan"])
  33627. ]))
  33628. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  33629. ($props.templates['groupfooter'] && $props.rowGroupMode === 'subheader' && $options.shouldRenderRowGroupFooter($props.value, rowData, $options.getRowIndex(index)))
  33630. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("tr", {
  33631. class: "p-rowgroup-footer",
  33632. key: $options.getRowKey(rowData, $options.getRowIndex(index)) + '_subfooter',
  33633. role: "row"
  33634. }, [
  33635. ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)((0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveDynamicComponent)($props.templates['groupfooter']), {
  33636. data: rowData,
  33637. index: $options.getRowIndex(index)
  33638. }, null, 8, ["data", "index"]))
  33639. ]))
  33640. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true)
  33641. ], 64))
  33642. }), 128))
  33643. : ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("tr", _hoisted_1$2, [
  33644. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("td", { colspan: $options.columnsLength }, [
  33645. ($props.templates.empty && !$props.loading)
  33646. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)((0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveDynamicComponent)($props.templates.empty), { key: 0 }))
  33647. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  33648. ($props.templates.loading && $props.loading)
  33649. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)((0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveDynamicComponent)($props.templates.loading), { key: 1 }))
  33650. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true)
  33651. ], 8, ["colspan"])
  33652. ]))
  33653. ], 4))
  33654. }
  33655. script$3.render = render$3;
  33656. var script$2 = {
  33657. name: 'FooterCell',
  33658. props: {
  33659. column: {
  33660. type: null,
  33661. default: null
  33662. }
  33663. },
  33664. data() {
  33665. return {
  33666. styleObject: {}
  33667. }
  33668. },
  33669. mounted() {
  33670. if (this.columnProp('frozen')) {
  33671. this.updateStickyPosition();
  33672. }
  33673. },
  33674. updated() {
  33675. if (this.columnProp('frozen')) {
  33676. this.updateStickyPosition();
  33677. }
  33678. },
  33679. methods: {
  33680. columnProp(prop) {
  33681. return primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.getVNodeProp(this.column, prop);
  33682. },
  33683. updateStickyPosition() {
  33684. if (this.columnProp('frozen')) {
  33685. let align = this.columnProp('alignFrozen');
  33686. if (align === 'right') {
  33687. let right = 0;
  33688. let next = this.$el.nextElementSibling;
  33689. if (next) {
  33690. right = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterWidth(next) + parseFloat(next.style.left);
  33691. }
  33692. this.styleObject.right = right + 'px';
  33693. }
  33694. else {
  33695. let left = 0;
  33696. let prev = this.$el.previousElementSibling;
  33697. if (prev) {
  33698. left = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterWidth(prev) + parseFloat(prev.style.left);
  33699. }
  33700. this.styleObject.left = left + 'px';
  33701. }
  33702. }
  33703. }
  33704. },
  33705. computed: {
  33706. containerClass() {
  33707. return [this.columnProp('footerClass'), this.columnProp('class'), {
  33708. 'p-frozen-column': this.columnProp('frozen')
  33709. }];
  33710. },
  33711. containerStyle() {
  33712. let bodyStyle = this.columnProp('footerStyle');
  33713. let columnStyle = this.columnProp('style');
  33714. return this.columnProp('frozen') ? [columnStyle, bodyStyle, this.styleObject]: [columnStyle, bodyStyle];
  33715. }
  33716. }
  33717. };
  33718. function render$2(_ctx, _cache, $props, $setup, $data, $options) {
  33719. return ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("td", {
  33720. style: $options.containerStyle,
  33721. class: $options.containerClass,
  33722. role: "cell",
  33723. colspan: $options.columnProp('colspan'),
  33724. rowspan: $options.columnProp('rowspan')
  33725. }, [
  33726. ($props.column.children && $props.column.children.footer)
  33727. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)((0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveDynamicComponent)($props.column.children.footer), {
  33728. key: 0,
  33729. column: $props.column
  33730. }, null, 8, ["column"]))
  33731. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  33732. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createTextVNode)(" " + (0,vue__WEBPACK_IMPORTED_MODULE_4__.toDisplayString)($options.columnProp('footer')), 1)
  33733. ], 14, ["colspan", "rowspan"]))
  33734. }
  33735. script$2.render = render$2;
  33736. var script$1 = {
  33737. name: 'TableFooter',
  33738. props: {
  33739. columnGroup: {
  33740. type: null,
  33741. default: null
  33742. },
  33743. columns: {
  33744. type: null,
  33745. default: null
  33746. },
  33747. },
  33748. methods: {
  33749. columnProp(col, prop) {
  33750. return primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.getVNodeProp(col, prop);
  33751. },
  33752. getFooterRows() {
  33753. let rows = [];
  33754. let columnGroup = this.columnGroup;
  33755. if (columnGroup.children && columnGroup.children.default) {
  33756. for (let child of columnGroup.children.default()) {
  33757. if (child.type.name === 'Row') {
  33758. rows.push(child);
  33759. }
  33760. else if (child.children && child.children instanceof Array) {
  33761. rows = child.children;
  33762. }
  33763. }
  33764. return rows;
  33765. }
  33766. },
  33767. getFooterColumns(row){
  33768. let cols = [];
  33769. if (row.children && row.children.default) {
  33770. row.children.default().forEach(child => {
  33771. if (child.children && child.children instanceof Array)
  33772. cols = [...cols, ...child.children];
  33773. else if (child.type.name === 'Column')
  33774. cols.push(child);
  33775. });
  33776. return cols;
  33777. }
  33778. }
  33779. },
  33780. computed: {
  33781. hasFooter() {
  33782. let hasFooter = false;
  33783. if (this.columnGroup) {
  33784. hasFooter = true;
  33785. }
  33786. else if (this.columns) {
  33787. for (let col of this.columns) {
  33788. if (this.columnProp(col, 'footer') || (col.children && col.children.footer)) {
  33789. hasFooter = true;
  33790. break;
  33791. }
  33792. }
  33793. }
  33794. return hasFooter;
  33795. }
  33796. },
  33797. components: {
  33798. 'DTFooterCell': script$2
  33799. }
  33800. };
  33801. const _hoisted_1$1 = {
  33802. key: 0,
  33803. class: "p-datatable-tfoot",
  33804. role: "rowgroup"
  33805. };
  33806. const _hoisted_2$1 = {
  33807. key: 0,
  33808. role: "row"
  33809. };
  33810. function render$1(_ctx, _cache, $props, $setup, $data, $options) {
  33811. const _component_DTFooterCell = (0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveComponent)("DTFooterCell");
  33812. return ($options.hasFooter)
  33813. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("tfoot", _hoisted_1$1, [
  33814. (!$props.columnGroup)
  33815. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("tr", _hoisted_2$1, [
  33816. ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderList)($props.columns, (col, i) => {
  33817. return ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, {
  33818. key: $options.columnProp(col,'columnKey')||$options.columnProp(col,'field')||i
  33819. }, [
  33820. (!$options.columnProp(col,'hidden'))
  33821. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(_component_DTFooterCell, {
  33822. key: 0,
  33823. column: col
  33824. }, null, 8, ["column"]))
  33825. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true)
  33826. ], 64))
  33827. }), 128))
  33828. ]))
  33829. : ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, { key: 1 }, (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderList)($options.getFooterRows(), (row, i) => {
  33830. return ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("tr", {
  33831. key: i,
  33832. role: "row"
  33833. }, [
  33834. ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderList)($options.getFooterColumns(row), (col, j) => {
  33835. return ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_4__.Fragment, {
  33836. key: $options.columnProp(col,'columnKey')||$options.columnProp(col,'field')||j
  33837. }, [
  33838. (!$options.columnProp(col,'hidden'))
  33839. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(_component_DTFooterCell, {
  33840. key: 0,
  33841. column: col
  33842. }, null, 8, ["column"]))
  33843. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true)
  33844. ], 64))
  33845. }), 128))
  33846. ]))
  33847. }), 128))
  33848. ]))
  33849. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true)
  33850. }
  33851. script$1.render = render$1;
  33852. var script = {
  33853. name: 'DataTable',
  33854. emits: ['value-change', 'update:first', 'update:rows', 'page', 'update:sortField', 'update:sortOrder', 'update:multiSortMeta', 'sort', 'filter', 'row-click', 'row-dblclick',
  33855. 'update:selection', 'row-select', 'row-unselect', 'update:contextMenuSelection', 'row-contextmenu', 'row-unselect-all', 'row-select-all', 'select-all-change',
  33856. 'column-resize-end', 'column-reorder', 'row-reorder', 'update:expandedRows', 'row-collapse', 'row-expand',
  33857. 'update:expandedRowGroups', 'rowgroup-collapse', 'rowgroup-expand', 'update:filters', 'state-restore', 'state-save',
  33858. 'cell-edit-init', 'cell-edit-complete', 'cell-edit-cancel', 'update:editingRows', 'row-edit-init', 'row-edit-save', 'row-edit-cancel'],
  33859. props: {
  33860. value: {
  33861. type: Array,
  33862. default: null
  33863. },
  33864. dataKey: {
  33865. type: String,
  33866. default: null
  33867. },
  33868. rows: {
  33869. type: Number,
  33870. default: 0
  33871. },
  33872. first: {
  33873. type: Number,
  33874. default: 0
  33875. },
  33876. totalRecords: {
  33877. type: Number,
  33878. default: 0
  33879. },
  33880. paginator: {
  33881. type: Boolean,
  33882. default: false
  33883. },
  33884. paginatorPosition: {
  33885. type: String,
  33886. default: 'bottom'
  33887. },
  33888. alwaysShowPaginator: {
  33889. type: Boolean,
  33890. default: true
  33891. },
  33892. paginatorTemplate: {
  33893. type: String,
  33894. default: 'FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink RowsPerPageDropdown'
  33895. },
  33896. pageLinkSize: {
  33897. type: Number,
  33898. default: 5
  33899. },
  33900. rowsPerPageOptions: {
  33901. type: Array,
  33902. default: null
  33903. },
  33904. currentPageReportTemplate: {
  33905. type: String,
  33906. default: '({currentPage} of {totalPages})'
  33907. },
  33908. lazy: {
  33909. type: Boolean,
  33910. default: false
  33911. },
  33912. loading: {
  33913. type: Boolean,
  33914. default: false
  33915. },
  33916. loadingIcon: {
  33917. type: String,
  33918. default: 'pi pi-spinner'
  33919. },
  33920. sortField: {
  33921. type: [String, Function],
  33922. default: null
  33923. },
  33924. sortOrder: {
  33925. type: Number,
  33926. default: null
  33927. },
  33928. defaultSortOrder: {
  33929. type: Number,
  33930. default: 1
  33931. },
  33932. multiSortMeta: {
  33933. type: Array,
  33934. default: null
  33935. },
  33936. sortMode: {
  33937. type: String,
  33938. default: 'single'
  33939. },
  33940. removableSort: {
  33941. type: Boolean,
  33942. default: false
  33943. },
  33944. filters: {
  33945. type: Object,
  33946. default: null
  33947. },
  33948. filterDisplay: {
  33949. type: String,
  33950. default: null
  33951. },
  33952. globalFilterFields: {
  33953. type: Array,
  33954. default: null
  33955. },
  33956. filterLocale: {
  33957. type: String,
  33958. default: undefined
  33959. },
  33960. selection: {
  33961. type: [Array,Object],
  33962. default: null
  33963. },
  33964. selectionMode: {
  33965. type: String,
  33966. default: null
  33967. },
  33968. compareSelectionBy: {
  33969. type: String,
  33970. default: 'deepEquals'
  33971. },
  33972. metaKeySelection: {
  33973. type: Boolean,
  33974. default: true
  33975. },
  33976. contextMenu: {
  33977. type: Boolean,
  33978. default: false
  33979. },
  33980. contextMenuSelection: {
  33981. type: Object,
  33982. default: null
  33983. },
  33984. selectAll: {
  33985. type: Boolean,
  33986. default: null
  33987. },
  33988. rowHover: {
  33989. type: Boolean,
  33990. default: false
  33991. },
  33992. csvSeparator: {
  33993. type: String,
  33994. default: ','
  33995. },
  33996. exportFilename: {
  33997. type: String,
  33998. default: 'download'
  33999. },
  34000. exportFunction: {
  34001. type: Function,
  34002. default: null
  34003. },
  34004. autoLayout: {
  34005. type: Boolean,
  34006. default: false
  34007. },
  34008. resizableColumns: {
  34009. type: Boolean,
  34010. default: false
  34011. },
  34012. columnResizeMode: {
  34013. type: String,
  34014. default: 'fit'
  34015. },
  34016. reorderableColumns: {
  34017. type: Boolean,
  34018. default: false
  34019. },
  34020. expandedRows: {
  34021. type: Array,
  34022. default: null
  34023. },
  34024. expandedRowIcon: {
  34025. type: String,
  34026. default: 'pi-chevron-down'
  34027. },
  34028. collapsedRowIcon: {
  34029. type: String,
  34030. default: 'pi-chevron-right'
  34031. },
  34032. rowGroupMode: {
  34033. type: String,
  34034. default: null
  34035. },
  34036. groupRowsBy: {
  34037. type: [Array,String],
  34038. default: null
  34039. },
  34040. expandableRowGroups: {
  34041. type: Boolean,
  34042. default: false
  34043. },
  34044. expandedRowGroups: {
  34045. type: Array,
  34046. default: null
  34047. },
  34048. stateStorage: {
  34049. type: String,
  34050. default: 'session'
  34051. },
  34052. stateKey: {
  34053. type: String,
  34054. default: null
  34055. },
  34056. editMode: {
  34057. type: String,
  34058. default: null
  34059. },
  34060. editingRows: {
  34061. type: Array,
  34062. default: null
  34063. },
  34064. rowClass: {
  34065. type: null,
  34066. default: null
  34067. },
  34068. rowStyle: {
  34069. type: null,
  34070. default: null
  34071. },
  34072. scrollable: {
  34073. type: Boolean,
  34074. default: false
  34075. },
  34076. scrollDirection: {
  34077. type: String,
  34078. default: "vertical"
  34079. },
  34080. virtualScrollerOptions: {
  34081. type: Object,
  34082. default: null
  34083. },
  34084. scrollHeight: {
  34085. type: String,
  34086. default: null
  34087. },
  34088. frozenValue: {
  34089. type: Array,
  34090. default: null
  34091. },
  34092. responsiveLayout: {
  34093. type: String,
  34094. default: 'stack'
  34095. },
  34096. breakpoint: {
  34097. type: String,
  34098. default: '960px'
  34099. },
  34100. showGridlines: {
  34101. type: Boolean,
  34102. default: false
  34103. },
  34104. stripedRows: {
  34105. type: Boolean,
  34106. default: false
  34107. },
  34108. tableStyle: {
  34109. type: null,
  34110. default: null
  34111. },
  34112. tableClass: {
  34113. type: String,
  34114. default: null
  34115. }
  34116. },
  34117. data() {
  34118. return {
  34119. d_first: this.first,
  34120. d_rows: this.rows,
  34121. d_sortField: this.sortField,
  34122. d_sortOrder: this.sortOrder,
  34123. d_multiSortMeta: this.multiSortMeta ? [...this.multiSortMeta] : [],
  34124. d_groupRowsSortMeta: null,
  34125. d_selectionKeys: null,
  34126. d_expandedRowKeys: null,
  34127. d_columnOrder: null,
  34128. d_editingRowKeys: null,
  34129. d_editingMeta: {},
  34130. d_filters: this.cloneFilters(this.filters)
  34131. };
  34132. },
  34133. rowTouched: false,
  34134. anchorRowIndex: null,
  34135. rangeRowIndex: null,
  34136. documentColumnResizeListener: null,
  34137. documentColumnResizeEndListener: null,
  34138. lastResizeHelperX: null,
  34139. resizeColumnElement: null,
  34140. columnResizing: false,
  34141. colReorderIconWidth: null,
  34142. colReorderIconHeight: null,
  34143. draggedColumn: null,
  34144. draggedRowIndex: null,
  34145. droppedRowIndex: null,
  34146. rowDragging: null,
  34147. columnWidthsState: null,
  34148. tableWidthState: null,
  34149. columnWidthsRestored: false,
  34150. watch: {
  34151. first(newValue) {
  34152. this.d_first = newValue;
  34153. },
  34154. rows(newValue) {
  34155. this.d_rows = newValue;
  34156. },
  34157. sortField(newValue) {
  34158. this.d_sortField = newValue;
  34159. },
  34160. sortOrder(newValue) {
  34161. this.d_sortOrder = newValue;
  34162. },
  34163. multiSortMeta(newValue) {
  34164. this.d_multiSortMeta = newValue;
  34165. },
  34166. selection: {
  34167. immediate: true,
  34168. handler(newValue) {
  34169. if (this.dataKey) {
  34170. this.updateSelectionKeys(newValue);
  34171. }
  34172. }
  34173. },
  34174. expandedRows(newValue) {
  34175. if (this.dataKey) {
  34176. this.updateExpandedRowKeys(newValue);
  34177. }
  34178. },
  34179. editingRows(newValue) {
  34180. if (this.dataKey) {
  34181. this.updateEditingRowKeys(newValue);
  34182. }
  34183. },
  34184. filters: {
  34185. deep: true,
  34186. handler: function(newValue) {
  34187. this.d_filters = this.cloneFilters(newValue);
  34188. }
  34189. }
  34190. },
  34191. beforeMount() {
  34192. if (this.isStateful()) {
  34193. this.restoreState();
  34194. }
  34195. },
  34196. mounted() {
  34197. this.$el.setAttribute(this.attributeSelector, '');
  34198. if (this.responsiveLayout === 'stack' && !this.scrollable) {
  34199. this.createResponsiveStyle();
  34200. }
  34201. if (this.isStateful() && this.resizableColumns) {
  34202. this.restoreColumnWidths();
  34203. }
  34204. if (this.editMode === 'row' && this.dataKey && !this.d_editingRowKeys) {
  34205. this.updateEditingRowKeys(this.editingRows);
  34206. }
  34207. },
  34208. beforeUnmount() {
  34209. this.unbindColumnResizeEvents();
  34210. this.destroyStyleElement();
  34211. this.destroyResponsiveStyle();
  34212. },
  34213. updated() {
  34214. if (this.isStateful()) {
  34215. this.saveState();
  34216. }
  34217. if (this.editMode === 'row' && this.dataKey && !this.d_editingRowKeys) {
  34218. this.updateEditingRowKeys(this.editingRows);
  34219. }
  34220. },
  34221. methods: {
  34222. columnProp(col, prop) {
  34223. return primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.getVNodeProp(col, prop);
  34224. },
  34225. onPage(event) {
  34226. this.clearEditingMetaData();
  34227. this.d_first = event.first;
  34228. this.d_rows = event.rows;
  34229. let pageEvent = this.createLazyLoadEvent(event);
  34230. pageEvent.pageCount = event.pageCount;
  34231. pageEvent.page = event.page;
  34232. this.$emit('update:first', this.d_first);
  34233. this.$emit('update:rows', this.d_rows);
  34234. this.$emit('page', pageEvent);
  34235. this.$emit('value-change', this.processedData);
  34236. },
  34237. onColumnHeaderClick(e) {
  34238. const event = e.originalEvent;
  34239. const column = e.column;
  34240. if (this.columnProp(column, 'sortable')) {
  34241. const targetNode = event.target;
  34242. const columnField = this.columnProp(column, 'sortField') || this.columnProp(column, 'field');
  34243. if (primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(targetNode, 'p-sortable-column') || primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(targetNode, 'p-column-title') || primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(targetNode, 'p-column-header-content')
  34244. || primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(targetNode, 'p-sortable-column-icon') || primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(targetNode.parentElement, 'p-sortable-column-icon')) {
  34245. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.clearSelection();
  34246. if (this.sortMode === 'single') {
  34247. if (this.d_sortField === columnField) {
  34248. if (this.removableSort && (this.d_sortOrder * -1 === this.defaultSortOrder)) {
  34249. this.d_sortOrder = null;
  34250. this.d_sortField = null;
  34251. }
  34252. else {
  34253. this.d_sortOrder = this.d_sortOrder * -1;
  34254. }
  34255. }
  34256. else {
  34257. this.d_sortOrder = this.defaultSortOrder;
  34258. this.d_sortField = columnField;
  34259. }
  34260. this.$emit('update:sortField', this.d_sortField);
  34261. this.$emit('update:sortOrder', this.d_sortOrder);
  34262. this.resetPage();
  34263. }
  34264. else if (this.sortMode === 'multiple') {
  34265. let metaKey = event.metaKey || event.ctrlKey;
  34266. if (!metaKey) {
  34267. this.d_multiSortMeta = this.d_multiSortMeta.filter(meta => meta.field === columnField);
  34268. }
  34269. this.addMultiSortField(columnField);
  34270. this.$emit('update:multiSortMeta', this.d_multiSortMeta);
  34271. }
  34272. this.$emit('sort', this.createLazyLoadEvent(event));
  34273. this.$emit('value-change', this.processedData);
  34274. }
  34275. }
  34276. },
  34277. sortSingle(value) {
  34278. this.clearEditingMetaData();
  34279. if (this.groupRowsBy && this.groupRowsBy === this.sortField) {
  34280. this.d_multiSortMeta = [
  34281. {field: this.sortField, order: this.sortOrder || this.defaultSortOrder},
  34282. {field: this.d_sortField, order: this.d_sortOrder}
  34283. ];
  34284. return this.sortMultiple(value);
  34285. }
  34286. let data = [...value];
  34287. data.sort((data1, data2) => {
  34288. let value1 = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(data1, this.d_sortField);
  34289. let value2 = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(data2, this.d_sortField);
  34290. let result = null;
  34291. if (value1 == null && value2 != null)
  34292. result = -1;
  34293. else if (value1 != null && value2 == null)
  34294. result = 1;
  34295. else if (value1 == null && value2 == null)
  34296. result = 0;
  34297. else if (typeof value1 === 'string' && typeof value2 === 'string')
  34298. result = value1.localeCompare(value2, undefined, { numeric: true });
  34299. else
  34300. result = (value1 < value2) ? -1 : (value1 > value2) ? 1 : 0;
  34301. return (this.d_sortOrder * result);
  34302. });
  34303. return data;
  34304. },
  34305. sortMultiple(value) {
  34306. this.clearEditingMetaData();
  34307. if (this.groupRowsBy && (this.d_groupRowsSortMeta || (this.d_multiSortMeta.length && this.groupRowsBy === this.d_multiSortMeta[0].field))) {
  34308. const firstSortMeta = this.d_multiSortMeta[0];
  34309. !this.d_groupRowsSortMeta && (this.d_groupRowsSortMeta = firstSortMeta);
  34310. if (firstSortMeta.field !== this.d_groupRowsSortMeta.field) {
  34311. this.d_multiSortMeta = [this.d_groupRowsSortMeta, ...this.d_multiSortMeta];
  34312. }
  34313. }
  34314. let data = [...value];
  34315. data.sort((data1, data2) => {
  34316. return this.multisortField(data1, data2, 0);
  34317. });
  34318. return data;
  34319. },
  34320. multisortField(data1, data2, index) {
  34321. const value1 = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(data1, this.d_multiSortMeta[index].field);
  34322. const value2 = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(data2, this.d_multiSortMeta[index].field);
  34323. let result = null;
  34324. if (typeof value1 === 'string' || value1 instanceof String) {
  34325. if (value1.localeCompare && (value1 !== value2)) {
  34326. return (this.d_multiSortMeta[index].order * value1.localeCompare(value2, undefined, { numeric: true }));
  34327. }
  34328. }
  34329. else {
  34330. result = (value1 < value2) ? -1 : 1;
  34331. }
  34332. if (value1 === value2) {
  34333. return (this.d_multiSortMeta.length - 1) > (index) ? (this.multisortField(data1, data2, index + 1)) : 0;
  34334. }
  34335. return (this.d_multiSortMeta[index].order * result);
  34336. },
  34337. addMultiSortField(field) {
  34338. let index = this.d_multiSortMeta.findIndex(meta => meta.field === field);
  34339. if (index >= 0) {
  34340. if (this.removableSort && (this.d_multiSortMeta[index].order * -1 === this.defaultSortOrder))
  34341. this.d_multiSortMeta.splice(index, 1);
  34342. else
  34343. this.d_multiSortMeta[index] = {field: field, order: this.d_multiSortMeta[index].order * -1};
  34344. }
  34345. else {
  34346. this.d_multiSortMeta.push({field: field, order: this.defaultSortOrder});
  34347. }
  34348. this.d_multiSortMeta = [...this.d_multiSortMeta];
  34349. },
  34350. filter(data) {
  34351. if (!data) {
  34352. return;
  34353. }
  34354. this.clearEditingMetaData();
  34355. let globalFilterFieldsArray;
  34356. if (this.filters['global']) {
  34357. globalFilterFieldsArray = this.globalFilterFields|| this.columns.map(col => this.columnProp(col, 'filterField') || this.columnProp(col, 'field'));
  34358. }
  34359. let filteredValue = [];
  34360. for (let i = 0; i < data.length; i++) {
  34361. let localMatch = true;
  34362. let globalMatch = false;
  34363. let localFiltered = false;
  34364. for (let prop in this.filters) {
  34365. if (Object.prototype.hasOwnProperty.call(this.filters, prop) && prop !== 'global') {
  34366. localFiltered = true;
  34367. let filterField = prop;
  34368. let filterMeta = this.filters[filterField];
  34369. if (filterMeta.operator) {
  34370. for (let filterConstraint of filterMeta.constraints) {
  34371. localMatch = this.executeLocalFilter(filterField, data[i], filterConstraint);
  34372. if ((filterMeta.operator === primevue_api__WEBPACK_IMPORTED_MODULE_1__.FilterOperator.OR && localMatch) || (filterMeta.operator === primevue_api__WEBPACK_IMPORTED_MODULE_1__.FilterOperator.AND && !localMatch)) {
  34373. break;
  34374. }
  34375. }
  34376. }
  34377. else {
  34378. localMatch = this.executeLocalFilter(filterField, data[i], filterMeta);
  34379. }
  34380. if (!localMatch) {
  34381. break;
  34382. }
  34383. }
  34384. }
  34385. if (this.filters['global'] && !globalMatch && globalFilterFieldsArray) {
  34386. for(let j = 0; j < globalFilterFieldsArray.length; j++) {
  34387. let globalFilterField = globalFilterFieldsArray[j];
  34388. globalMatch = primevue_api__WEBPACK_IMPORTED_MODULE_1__.FilterService.filters[this.filters['global'].matchMode || primevue_api__WEBPACK_IMPORTED_MODULE_1__.FilterMatchMode.CONTAINS](primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(data[i], globalFilterField), this.filters['global'].value, this.filterLocale);
  34389. if (globalMatch) {
  34390. break;
  34391. }
  34392. }
  34393. }
  34394. let matches;
  34395. if (this.filters['global']) {
  34396. matches = localFiltered ? (localFiltered && localMatch && globalMatch) : globalMatch;
  34397. }
  34398. else {
  34399. matches = localFiltered && localMatch;
  34400. }
  34401. if (matches) {
  34402. filteredValue.push(data[i]);
  34403. }
  34404. }
  34405. if (filteredValue.length === this.value.length) {
  34406. filteredValue = data;
  34407. }
  34408. let filterEvent = this.createLazyLoadEvent();
  34409. filterEvent.filteredValue = filteredValue;
  34410. this.$emit('filter', filterEvent);
  34411. this.$emit('value-change', filteredValue);
  34412. return filteredValue;
  34413. },
  34414. executeLocalFilter(field, rowData, filterMeta) {
  34415. let filterValue = filterMeta.value;
  34416. let filterMatchMode = filterMeta.matchMode || primevue_api__WEBPACK_IMPORTED_MODULE_1__.FilterMatchMode.STARTS_WITH;
  34417. let dataFieldValue = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(rowData, field);
  34418. let filterConstraint = primevue_api__WEBPACK_IMPORTED_MODULE_1__.FilterService.filters[filterMatchMode];
  34419. return filterConstraint(dataFieldValue, filterValue, this.filterLocale);
  34420. },
  34421. onRowClick(e) {
  34422. const event = e.originalEvent;
  34423. if (primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.isClickable(event.target)) {
  34424. return;
  34425. }
  34426. this.$emit('row-click', e);
  34427. if (this.selectionMode) {
  34428. const rowData = e.data;
  34429. const rowIndex = this.d_first + e.index;
  34430. if (this.isMultipleSelectionMode() && event.shiftKey && this.anchorRowIndex != null) {
  34431. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.clearSelection();
  34432. this.rangeRowIndex = rowIndex;
  34433. this.selectRange(event);
  34434. }
  34435. else {
  34436. const selected = this.isSelected(rowData);
  34437. const metaSelection = this.rowTouched ? false : this.metaKeySelection;
  34438. this.anchorRowIndex = rowIndex;
  34439. this.rangeRowIndex = rowIndex;
  34440. if (metaSelection) {
  34441. let metaKey = event.metaKey || event.ctrlKey;
  34442. if (selected && metaKey) {
  34443. if(this.isSingleSelectionMode()) {
  34444. this.$emit('update:selection', null);
  34445. }
  34446. else {
  34447. const selectionIndex = this.findIndexInSelection(rowData);
  34448. const _selection = this.selection.filter((val,i) => i != selectionIndex);
  34449. this.$emit('update:selection', _selection);
  34450. }
  34451. this.$emit('row-unselect', {originalEvent: event, data: rowData, index: rowIndex, type: 'row'});
  34452. }
  34453. else {
  34454. if(this.isSingleSelectionMode()) {
  34455. this.$emit('update:selection', rowData);
  34456. }
  34457. else if (this.isMultipleSelectionMode()) {
  34458. let _selection = metaKey ? (this.selection || []) : [];
  34459. _selection = [..._selection, rowData];
  34460. this.$emit('update:selection', _selection);
  34461. }
  34462. this.$emit('row-select', {originalEvent: event, data: rowData, index: rowIndex, type: 'row'});
  34463. }
  34464. }
  34465. else {
  34466. if (this.selectionMode === 'single') {
  34467. if (selected) {
  34468. this.$emit('update:selection', null);
  34469. this.$emit('row-unselect', {originalEvent: event, data: rowData, index: rowIndex, type: 'row'});
  34470. }
  34471. else {
  34472. this.$emit('update:selection', rowData);
  34473. this.$emit('row-select', {originalEvent: event, data: rowData, index: rowIndex, type: 'row'});
  34474. }
  34475. }
  34476. else if (this.selectionMode === 'multiple') {
  34477. if (selected) {
  34478. const selectionIndex = this.findIndexInSelection(rowData);
  34479. const _selection = this.selection.filter((val, i) => i != selectionIndex);
  34480. this.$emit('update:selection', _selection);
  34481. this.$emit('row-unselect', {originalEvent: event, data: rowData, index: rowIndex, type: 'row'});
  34482. }
  34483. else {
  34484. const _selection = this.selection ? [...this.selection, rowData] : [rowData];
  34485. this.$emit('update:selection', _selection);
  34486. this.$emit('row-select', {originalEvent: event, data: rowData, index: rowIndex, type: 'row'});
  34487. }
  34488. }
  34489. }
  34490. }
  34491. }
  34492. this.rowTouched = false;
  34493. },
  34494. onRowDblClick(e) {
  34495. const event = e.originalEvent;
  34496. if (primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.isClickable(event.target)) {
  34497. return;
  34498. }
  34499. this.$emit('row-dblclick', e);
  34500. },
  34501. onRowRightClick(event) {
  34502. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.clearSelection();
  34503. event.originalEvent.target.focus();
  34504. this.$emit('update:contextMenuSelection', event.data);
  34505. this.$emit('row-contextmenu', event);
  34506. },
  34507. onRowTouchEnd() {
  34508. this.rowTouched = true;
  34509. },
  34510. onRowKeyDown(e) {
  34511. const event = e.originalEvent;
  34512. const rowData = e.data;
  34513. const rowIndex = e.index;
  34514. if (this.selectionMode) {
  34515. const row = event.target;
  34516. switch (event.which) {
  34517. //down arrow
  34518. case 40:
  34519. var nextRow = this.findNextSelectableRow(row);
  34520. if (nextRow) {
  34521. nextRow.focus();
  34522. }
  34523. event.preventDefault();
  34524. break;
  34525. //up arrow
  34526. case 38:
  34527. var prevRow = this.findPrevSelectableRow(row);
  34528. if (prevRow) {
  34529. prevRow.focus();
  34530. }
  34531. event.preventDefault();
  34532. break;
  34533. //enter
  34534. case 13:
  34535. this.onRowClick({originalEvent: event, data: rowData, index: rowIndex});
  34536. break;
  34537. }
  34538. }
  34539. },
  34540. findNextSelectableRow(row) {
  34541. let nextRow = row.nextElementSibling;
  34542. if (nextRow) {
  34543. if (primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(nextRow, 'p-selectable-row'))
  34544. return nextRow;
  34545. else
  34546. return this.findNextSelectableRow(nextRow);
  34547. }
  34548. else {
  34549. return null;
  34550. }
  34551. },
  34552. findPrevSelectableRow(row) {
  34553. let prevRow = row.previousElementSibling;
  34554. if (prevRow) {
  34555. if (primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(prevRow, 'p-selectable-row'))
  34556. return prevRow;
  34557. else
  34558. return this.findPrevSelectableRow(prevRow);
  34559. }
  34560. else {
  34561. return null;
  34562. }
  34563. },
  34564. toggleRowWithRadio(event) {
  34565. const rowData = event.data;
  34566. if (this.isSelected(rowData)) {
  34567. this.$emit('update:selection', null);
  34568. this.$emit('row-unselect', { originalEvent: event.originalEvent, data: rowData, index: event.index, type: 'radiobutton' });
  34569. }
  34570. else {
  34571. this.$emit('update:selection', rowData);
  34572. this.$emit('row-select', { originalEvent: event.originalEvent, data: rowData, index: event.index, type: 'radiobutton' });
  34573. }
  34574. },
  34575. toggleRowWithCheckbox(event) {
  34576. const rowData = event.data;
  34577. if (this.isSelected(rowData)) {
  34578. const selectionIndex = this.findIndexInSelection(rowData);
  34579. const _selection = this.selection.filter((val, i) => i != selectionIndex);
  34580. this.$emit('update:selection', _selection);
  34581. this.$emit('row-unselect', { originalEvent: event.originalEvent, data: rowData, index: event.index, type: 'checkbox' });
  34582. }
  34583. else {
  34584. let _selection = this.selection ? [...this.selection] : [];
  34585. _selection = [..._selection, rowData];
  34586. this.$emit('update:selection', _selection);
  34587. this.$emit('row-select', { originalEvent: event.originalEvent, data: rowData, index: event.index, type: 'checkbox' });
  34588. }
  34589. },
  34590. toggleRowsWithCheckbox(event) {
  34591. if (this.selectAll !== null) {
  34592. this.$emit('select-all-change', event);
  34593. }
  34594. else {
  34595. const { originalEvent, checked } = event;
  34596. let _selection = [];
  34597. if (checked) {
  34598. _selection = this.frozenValue ? [...this.frozenValue, ...this.processedData] : this.processedData;
  34599. this.$emit('row-select-all', {originalEvent, data: _selection});
  34600. }
  34601. else {
  34602. this.$emit('row-unselect-all', {originalEvent});
  34603. }
  34604. this.$emit('update:selection', _selection);
  34605. }
  34606. },
  34607. isSingleSelectionMode() {
  34608. return this.selectionMode === 'single';
  34609. },
  34610. isMultipleSelectionMode() {
  34611. return this.selectionMode === 'multiple';
  34612. },
  34613. isSelected(rowData) {
  34614. if (rowData && this.selection) {
  34615. if (this.dataKey) {
  34616. return this.d_selectionKeys ? this.d_selectionKeys[primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(rowData, this.dataKey)] !== undefined : false;
  34617. }
  34618. else {
  34619. if (this.selection instanceof Array)
  34620. return this.findIndexInSelection(rowData) > -1;
  34621. else
  34622. return this.equals(rowData, this.selection);
  34623. }
  34624. }
  34625. return false;
  34626. },
  34627. findIndexInSelection(rowData) {
  34628. return this.findIndex(rowData, this.selection);
  34629. },
  34630. findIndex(rowData, collection) {
  34631. let index = -1;
  34632. if (collection && collection.length) {
  34633. for (let i = 0; i < collection.length; i++) {
  34634. if (this.equals(rowData, collection[i])) {
  34635. index = i;
  34636. break;
  34637. }
  34638. }
  34639. }
  34640. return index;
  34641. },
  34642. updateSelectionKeys(selection) {
  34643. this.d_selectionKeys = {};
  34644. if (Array.isArray(selection)) {
  34645. for (let data of selection) {
  34646. this.d_selectionKeys[String(primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(data, this.dataKey))] = 1;
  34647. }
  34648. }
  34649. else {
  34650. this.d_selectionKeys[String(primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(selection, this.dataKey))] = 1;
  34651. }
  34652. },
  34653. updateExpandedRowKeys(expandedRows) {
  34654. if (expandedRows && expandedRows.length) {
  34655. this.d_expandedRowKeys = {};
  34656. for (let data of expandedRows) {
  34657. this.d_expandedRowKeys[String(primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(data, this.dataKey))] = 1;
  34658. }
  34659. }
  34660. else {
  34661. this.d_expandedRowKeys = null;
  34662. }
  34663. },
  34664. updateEditingRowKeys(editingRows) {
  34665. if (editingRows && editingRows.length) {
  34666. this.d_editingRowKeys = {};
  34667. for (let data of editingRows) {
  34668. this.d_editingRowKeys[String(primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(data, this.dataKey))] = 1;
  34669. }
  34670. }
  34671. else {
  34672. this.d_editingRowKeys = null;
  34673. }
  34674. },
  34675. equals(data1, data2) {
  34676. return this.compareSelectionBy === 'equals' ? (data1 === data2) : primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.equals(data1, data2, this.dataKey);
  34677. },
  34678. selectRange(event) {
  34679. let rangeStart, rangeEnd;
  34680. if (this.rangeRowIndex > this.anchorRowIndex) {
  34681. rangeStart = this.anchorRowIndex;
  34682. rangeEnd = this.rangeRowIndex;
  34683. }
  34684. else if(this.rangeRowIndex < this.anchorRowIndex) {
  34685. rangeStart = this.rangeRowIndex;
  34686. rangeEnd = this.anchorRowIndex;
  34687. }
  34688. else {
  34689. rangeStart = this.rangeRowIndex;
  34690. rangeEnd = this.rangeRowIndex;
  34691. }
  34692. if (this.lazy && this.paginator) {
  34693. rangeStart -= this.first;
  34694. rangeEnd -= this.first;
  34695. }
  34696. const value = this.processedData;
  34697. let _selection = [];
  34698. for(let i = rangeStart; i <= rangeEnd; i++) {
  34699. let rangeRowData = value[i];
  34700. _selection.push(rangeRowData);
  34701. this.$emit('row-select', {originalEvent: event, data: rangeRowData, type: 'row'});
  34702. }
  34703. this.$emit('update:selection', _selection);
  34704. },
  34705. exportCSV(options, data) {
  34706. let csv = '\ufeff';
  34707. if (!data) {
  34708. data = this.processedData;
  34709. if (options && options.selectionOnly)
  34710. data = this.selection || [];
  34711. else if (this.frozenValue)
  34712. data = data ? [...this.frozenValue, ...data] : this.frozenValue;
  34713. }
  34714. //headers
  34715. let headerInitiated = false;
  34716. for (let i = 0; i < this.columns.length; i++) {
  34717. let column = this.columns[i];
  34718. if (this.columnProp(column, 'exportable') !== false && this.columnProp(column, 'field')) {
  34719. if (headerInitiated)
  34720. csv += this.csvSeparator;
  34721. else
  34722. headerInitiated = true;
  34723. csv += '"' + (this.columnProp(column, 'exportHeader') || this.columnProp(column, 'header') || this.columnProp(column, 'field')) + '"';
  34724. }
  34725. }
  34726. //body
  34727. if (data) {
  34728. data.forEach(record => {
  34729. csv += '\n';
  34730. let rowInitiated = false;
  34731. for (let i = 0; i < this.columns.length; i++) {
  34732. let column = this.columns[i];
  34733. if (this.columnProp(column, 'exportable') !== false && this.columnProp(column, 'field')) {
  34734. if (rowInitiated)
  34735. csv += this.csvSeparator;
  34736. else
  34737. rowInitiated = true;
  34738. let cellData = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(record, this.columnProp(column, 'field'));
  34739. if (cellData != null) {
  34740. if (this.exportFunction) {
  34741. cellData = this.exportFunction({
  34742. data: cellData,
  34743. field: this.columnProp(column, 'field')
  34744. });
  34745. }
  34746. else
  34747. cellData = String(cellData).replace(/"/g, '""');
  34748. }
  34749. else
  34750. cellData = '';
  34751. csv += '"' + cellData + '"';
  34752. }
  34753. }
  34754. });
  34755. }
  34756. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.exportCSV(csv, this.exportFilename);
  34757. },
  34758. resetPage() {
  34759. this.d_first = 0;
  34760. this.$emit('update:first', this.d_first);
  34761. },
  34762. onColumnResizeStart(event) {
  34763. let containerLeft = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOffset(this.$el).left;
  34764. this.resizeColumnElement = event.target.parentElement;
  34765. this.columnResizing = true;
  34766. this.lastResizeHelperX = (event.pageX - containerLeft + this.$el.scrollLeft);
  34767. this.bindColumnResizeEvents();
  34768. },
  34769. onColumnResize(event) {
  34770. let containerLeft = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOffset(this.$el).left;
  34771. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.addClass(this.$el, 'p-unselectable-text');
  34772. this.$refs.resizeHelper.style.height = this.$el.offsetHeight + 'px';
  34773. this.$refs.resizeHelper.style.top = 0 + 'px';
  34774. this.$refs.resizeHelper.style.left = (event.pageX - containerLeft + this.$el.scrollLeft) + 'px';
  34775. this.$refs.resizeHelper.style.display = 'block';
  34776. },
  34777. onColumnResizeEnd() {
  34778. let delta = this.$refs.resizeHelper.offsetLeft - this.lastResizeHelperX;
  34779. let columnWidth = this.resizeColumnElement.offsetWidth;
  34780. let newColumnWidth = columnWidth + delta;
  34781. let minWidth = this.resizeColumnElement.style.minWidth||15;
  34782. if (columnWidth + delta > parseInt(minWidth, 10)) {
  34783. if (this.columnResizeMode === 'fit') {
  34784. let nextColumn = this.resizeColumnElement.nextElementSibling;
  34785. let nextColumnWidth = nextColumn.offsetWidth - delta;
  34786. if (newColumnWidth > 15 && nextColumnWidth > 15) {
  34787. this.resizeTableCells(newColumnWidth, nextColumnWidth);
  34788. }
  34789. }
  34790. else if (this.columnResizeMode === 'expand') {
  34791. const tableWidth = this.$refs.table.offsetWidth + delta + 'px';
  34792. this.$refs.table.style.width = tableWidth;
  34793. this.$refs.table.style.minWidth = tableWidth;
  34794. this.resizeTableCells(newColumnWidth);
  34795. }
  34796. this.$emit('column-resize-end', {
  34797. element: this.resizeColumnElement,
  34798. delta: delta
  34799. });
  34800. }
  34801. this.$refs.resizeHelper.style.display = 'none';
  34802. this.resizeColumn = null;
  34803. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.removeClass(this.$el, 'p-unselectable-text');
  34804. this.unbindColumnResizeEvents();
  34805. if (this.isStateful()) {
  34806. this.saveState();
  34807. }
  34808. },
  34809. resizeTableCells(newColumnWidth, nextColumnWidth) {
  34810. let colIndex = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.index(this.resizeColumnElement);
  34811. let widths = [];
  34812. let headers = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.find(this.$refs.table, '.p-datatable-thead > tr > th');
  34813. headers.forEach(header => widths.push(primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterWidth(header)));
  34814. this.destroyStyleElement();
  34815. this.createStyleElement();
  34816. let innerHTML = '';
  34817. widths.forEach((width, index) => {
  34818. let colWidth = index === colIndex ? newColumnWidth : (nextColumnWidth && index === colIndex + 1) ? nextColumnWidth : width;
  34819. let style = this.scrollable ? `flex: 1 1 ${colWidth}px !important` : `width: ${colWidth}px !important`;
  34820. innerHTML += `
  34821. .p-datatable[${this.attributeSelector}] .p-datatable-thead > tr > th:nth-child(${index + 1}),
  34822. .p-datatable[${this.attributeSelector}] .p-datatable-tbody > tr > td:nth-child(${index + 1}),
  34823. .p-datatable[${this.attributeSelector}] .p-datatable-tfoot > tr > td:nth-child(${index + 1}) {
  34824. ${style}
  34825. }
  34826. `;
  34827. });
  34828. this.styleElement.innerHTML = innerHTML;
  34829. },
  34830. bindColumnResizeEvents() {
  34831. if (!this.documentColumnResizeListener) {
  34832. this.documentColumnResizeListener = document.addEventListener('mousemove', () => {
  34833. if(this.columnResizing) {
  34834. this.onColumnResize(event);
  34835. }
  34836. });
  34837. }
  34838. if (!this.documentColumnResizeEndListener) {
  34839. this.documentColumnResizeEndListener = document.addEventListener('mouseup', () => {
  34840. if(this.columnResizing) {
  34841. this.columnResizing = false;
  34842. this.onColumnResizeEnd();
  34843. }
  34844. });
  34845. }
  34846. },
  34847. unbindColumnResizeEvents() {
  34848. if (this.documentColumnResizeListener) {
  34849. document.removeEventListener('document', this.documentColumnResizeListener);
  34850. this.documentColumnResizeListener = null;
  34851. }
  34852. if (this.documentColumnResizeEndListener) {
  34853. document.removeEventListener('document', this.documentColumnResizeEndListener);
  34854. this.documentColumnResizeEndListener = null;
  34855. }
  34856. },
  34857. onColumnHeaderMouseDown(e) {
  34858. const event = e.originalEvent;
  34859. const column = e.column;
  34860. if (this.reorderableColumns && this.columnProp(column, 'reorderableColumn') !== false) {
  34861. if (event.target.nodeName === 'INPUT' || event.target.nodeName === 'TEXTAREA' || primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(event.target, 'p-column-resizer'))
  34862. event.currentTarget.draggable = false;
  34863. else
  34864. event.currentTarget.draggable = true;
  34865. }
  34866. },
  34867. onColumnHeaderDragStart(event) {
  34868. if (this.columnResizing) {
  34869. event.preventDefault();
  34870. return;
  34871. }
  34872. this.colReorderIconWidth = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getHiddenElementOuterWidth(this.$refs.reorderIndicatorUp);
  34873. this.colReorderIconHeight = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getHiddenElementOuterHeight(this.$refs.reorderIndicatorUp);
  34874. this.draggedColumn = this.findParentHeader(event.target);
  34875. event.dataTransfer.setData('text', 'b'); // Firefox requires this to make dragging possible
  34876. },
  34877. onColumnHeaderDragOver(event) {
  34878. let dropHeader = this.findParentHeader(event.target);
  34879. if(this.reorderableColumns && this.draggedColumn && dropHeader) {
  34880. event.preventDefault();
  34881. let containerOffset = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOffset(this.$el);
  34882. let dropHeaderOffset = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOffset(dropHeader);
  34883. if (this.draggedColumn !== dropHeader) {
  34884. let targetLeft = dropHeaderOffset.left - containerOffset.left;
  34885. let columnCenter = dropHeaderOffset.left + dropHeader.offsetWidth / 2;
  34886. this.$refs.reorderIndicatorUp.style.top = dropHeaderOffset.top - containerOffset.top - (this.colReorderIconHeight - 1) + 'px';
  34887. this.$refs.reorderIndicatorDown.style.top = dropHeaderOffset.top - containerOffset.top + dropHeader.offsetHeight + 'px';
  34888. if(event.pageX > columnCenter) {
  34889. this.$refs.reorderIndicatorUp.style.left = (targetLeft + dropHeader.offsetWidth - Math.ceil(this.colReorderIconWidth / 2)) + 'px';
  34890. this.$refs.reorderIndicatorDown.style.left = (targetLeft + dropHeader.offsetWidth - Math.ceil(this.colReorderIconWidth / 2))+ 'px';
  34891. this.dropPosition = 1;
  34892. }
  34893. else {
  34894. this.$refs.reorderIndicatorUp.style.left = (targetLeft - Math.ceil(this.colReorderIconWidth / 2)) + 'px';
  34895. this.$refs.reorderIndicatorDown.style.left = (targetLeft - Math.ceil(this.colReorderIconWidth / 2))+ 'px';
  34896. this.dropPosition = -1;
  34897. }
  34898. this.$refs.reorderIndicatorUp.style.display = 'block';
  34899. this.$refs.reorderIndicatorDown.style.display = 'block';
  34900. }
  34901. }
  34902. },
  34903. onColumnHeaderDragLeave(event) {
  34904. if(this.reorderableColumns && this.draggedColumn) {
  34905. event.preventDefault();
  34906. this.$refs.reorderIndicatorUp.style.display = 'none';
  34907. this.$refs.reorderIndicatorDown.style.display = 'none';
  34908. }
  34909. },
  34910. onColumnHeaderDrop(event) {
  34911. event.preventDefault();
  34912. if (this.draggedColumn) {
  34913. let dragIndex = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.index(this.draggedColumn);
  34914. let dropIndex = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.index(this.findParentHeader(event.target));
  34915. let allowDrop = (dragIndex !== dropIndex);
  34916. if (allowDrop && ((dropIndex - dragIndex === 1 && this.dropPosition === -1) || (dragIndex - dropIndex === 1 && this.dropPosition === 1))) {
  34917. allowDrop = false;
  34918. }
  34919. if (allowDrop) {
  34920. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.reorderArray(this.columns, dragIndex, dropIndex);
  34921. this.updateReorderableColumns();
  34922. this.$emit('column-reorder', {
  34923. originalEvent: event,
  34924. dragIndex: dragIndex,
  34925. dropIndex: dropIndex
  34926. });
  34927. }
  34928. this.$refs.reorderIndicatorUp.style.display = 'none';
  34929. this.$refs.reorderIndicatorDown.style.display = 'none';
  34930. this.draggedColumn.draggable = false;
  34931. this.draggedColumn = null;
  34932. this.dropPosition = null;
  34933. }
  34934. },
  34935. findParentHeader(element) {
  34936. if(element.nodeName === 'TH') {
  34937. return element;
  34938. }
  34939. else {
  34940. let parent = element.parentElement;
  34941. while(parent.nodeName !== 'TH') {
  34942. parent = parent.parentElement;
  34943. if (!parent) break;
  34944. }
  34945. return parent;
  34946. }
  34947. },
  34948. findColumnByKey(columns, key) {
  34949. if (columns && columns.length) {
  34950. for (let i = 0; i < columns.length; i++) {
  34951. let column = columns[i];
  34952. if (this.columnProp(column, 'columnKey') === key || this.columnProp(column, 'field') === key) {
  34953. return column;
  34954. }
  34955. }
  34956. }
  34957. return null;
  34958. },
  34959. onRowMouseDown(event) {
  34960. if (primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(event.target, 'p-datatable-reorderablerow-handle'))
  34961. event.currentTarget.draggable = true;
  34962. else
  34963. event.currentTarget.draggable = false;
  34964. },
  34965. onRowDragStart(e) {
  34966. const event = e.originalEvent;
  34967. const index = e.index;
  34968. this.rowDragging = true;
  34969. this.draggedRowIndex = index;
  34970. event.dataTransfer.setData('text', 'b'); // For firefox
  34971. },
  34972. onRowDragOver(e) {
  34973. const event = e.originalEvent;
  34974. const index = e.index;
  34975. if (this.rowDragging && this.draggedRowIndex !== index) {
  34976. let rowElement = event.currentTarget;
  34977. let rowY = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOffset(rowElement).top + primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getWindowScrollTop();
  34978. let pageY = event.pageY;
  34979. let rowMidY = rowY + primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterHeight(rowElement) / 2;
  34980. let prevRowElement = rowElement.previousElementSibling;
  34981. if (pageY < rowMidY) {
  34982. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.removeClass(rowElement, 'p-datatable-dragpoint-bottom');
  34983. this.droppedRowIndex = index;
  34984. if (prevRowElement)
  34985. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.addClass(prevRowElement, 'p-datatable-dragpoint-bottom');
  34986. else
  34987. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.addClass(rowElement, 'p-datatable-dragpoint-top');
  34988. }
  34989. else {
  34990. if (prevRowElement)
  34991. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.removeClass(prevRowElement, 'p-datatable-dragpoint-bottom');
  34992. else
  34993. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.addClass(rowElement, 'p-datatable-dragpoint-top');
  34994. this.droppedRowIndex = index + 1;
  34995. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.addClass(rowElement, 'p-datatable-dragpoint-bottom');
  34996. }
  34997. event.preventDefault();
  34998. }
  34999. },
  35000. onRowDragLeave(event) {
  35001. let rowElement = event.currentTarget;
  35002. let prevRowElement = rowElement.previousElementSibling;
  35003. if (prevRowElement) {
  35004. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.removeClass(prevRowElement, 'p-datatable-dragpoint-bottom');
  35005. }
  35006. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.removeClass(rowElement, 'p-datatable-dragpoint-bottom');
  35007. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.removeClass(rowElement, 'p-datatable-dragpoint-top');
  35008. },
  35009. onRowDragEnd(event) {
  35010. this.rowDragging = false;
  35011. this.draggedRowIndex = null;
  35012. this.droppedRowIndex = null;
  35013. event.currentTarget.draggable = false;
  35014. },
  35015. onRowDrop(event) {
  35016. if (this.droppedRowIndex != null) {
  35017. let dropIndex = (this.draggedRowIndex > this.droppedRowIndex) ? this.droppedRowIndex : (this.droppedRowIndex === 0) ? 0 : this.droppedRowIndex - 1;
  35018. let processedData = [...this.processedData];
  35019. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.reorderArray(processedData, this.draggedRowIndex, dropIndex);
  35020. this.$emit('row-reorder', {
  35021. originalEvent: event,
  35022. dragIndex: this.draggedRowIndex,
  35023. dropIndex: dropIndex,
  35024. value: processedData
  35025. });
  35026. }
  35027. //cleanup
  35028. this.onRowDragLeave(event);
  35029. this.onRowDragEnd(event);
  35030. event.preventDefault();
  35031. },
  35032. toggleRow(event) {
  35033. let rowData = event.data;
  35034. let expanded;
  35035. let expandedRowIndex;
  35036. let _expandedRows = this.expandedRows ? [...this.expandedRows] : [];
  35037. if (this.dataKey) {
  35038. expanded = this.d_expandedRowKeys ? this.d_expandedRowKeys[primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(rowData, this.dataKey)] !== undefined : false;
  35039. }
  35040. else {
  35041. expandedRowIndex = this.findIndex(rowData, this.expandedRows);
  35042. expanded = expandedRowIndex > -1;
  35043. }
  35044. if (expanded) {
  35045. if (expandedRowIndex == null) {
  35046. expandedRowIndex = this.findIndex(rowData, this.expandedRows);
  35047. }
  35048. _expandedRows.splice(expandedRowIndex, 1);
  35049. this.$emit('update:expandedRows', _expandedRows);
  35050. this.$emit('row-collapse', event);
  35051. }
  35052. else {
  35053. _expandedRows.push(rowData);
  35054. this.$emit('update:expandedRows', _expandedRows);
  35055. this.$emit('row-expand', event);
  35056. }
  35057. },
  35058. toggleRowGroup(e) {
  35059. const event = e.originalEvent;
  35060. const data = e.data;
  35061. const groupFieldValue = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(data, this.groupRowsBy);
  35062. let _expandedRowGroups = this.expandedRowGroups ? [...this.expandedRowGroups] : [];
  35063. if (this.isRowGroupExpanded(data)) {
  35064. _expandedRowGroups = _expandedRowGroups.filter(group => group !== groupFieldValue);
  35065. this.$emit('update:expandedRowGroups', _expandedRowGroups);
  35066. this.$emit('rowgroup-collapse', {originalEvent: event, data: groupFieldValue});
  35067. }
  35068. else {
  35069. _expandedRowGroups.push(groupFieldValue);
  35070. this.$emit('update:expandedRowGroups', _expandedRowGroups);
  35071. this.$emit('rowgroup-expand', {originalEvent: event, data: groupFieldValue});
  35072. }
  35073. },
  35074. isRowGroupExpanded(rowData) {
  35075. if (this.expandableRowGroups && this.expandedRowGroups) {
  35076. let groupFieldValue = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(rowData, this.groupRowsBy);
  35077. return this.expandedRowGroups.indexOf(groupFieldValue) > -1;
  35078. }
  35079. return false;
  35080. },
  35081. isStateful() {
  35082. return this.stateKey != null;
  35083. },
  35084. getStorage() {
  35085. switch(this.stateStorage) {
  35086. case 'local':
  35087. return window.localStorage;
  35088. case 'session':
  35089. return window.sessionStorage;
  35090. default:
  35091. throw new Error(this.stateStorage + ' is not a valid value for the state storage, supported values are "local" and "session".');
  35092. }
  35093. },
  35094. saveState() {
  35095. const storage = this.getStorage();
  35096. let state = {};
  35097. if (this.paginator) {
  35098. state.first = this.d_first;
  35099. state.rows = this.d_rows;
  35100. }
  35101. if (this.d_sortField) {
  35102. state.sortField = this.d_sortField;
  35103. state.sortOrder = this.d_sortOrder;
  35104. }
  35105. if (this.d_multiSortMeta) {
  35106. state.multiSortMeta = this.d_multiSortMeta;
  35107. }
  35108. if (this.hasFilters) {
  35109. state.filters = this.filters;
  35110. }
  35111. if (this.resizableColumns) {
  35112. this.saveColumnWidths(state);
  35113. }
  35114. if (this.reorderableColumns) {
  35115. state.columnOrder = this.d_columnOrder;
  35116. }
  35117. if (this.expandedRows) {
  35118. state.expandedRows = this.expandedRows;
  35119. state.expandedRowKeys = this.d_expandedRowKeys;
  35120. }
  35121. if (this.expandedRowGroups) {
  35122. state.expandedRowGroups = this.expandedRowGroups;
  35123. }
  35124. if (this.selection) {
  35125. state.selection = this.selection;
  35126. state.selectionKeys = this.d_selectionKeys;
  35127. }
  35128. if (Object.keys(state).length) {
  35129. storage.setItem(this.stateKey, JSON.stringify(state));
  35130. }
  35131. this.$emit('state-save', state);
  35132. },
  35133. restoreState() {
  35134. const storage = this.getStorage();
  35135. const stateString = storage.getItem(this.stateKey);
  35136. const dateFormat = /\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/;
  35137. const reviver = function(key, value) {
  35138. if (typeof value === "string" && dateFormat.test(value)) {
  35139. return new Date(value);
  35140. }
  35141. return value;
  35142. };
  35143. if (stateString) {
  35144. let restoredState = JSON.parse(stateString, reviver);
  35145. if (this.paginator) {
  35146. this.d_first = restoredState.first;
  35147. this.d_rows = restoredState.rows;
  35148. }
  35149. if (restoredState.sortField) {
  35150. this.d_sortField = restoredState.sortField;
  35151. this.d_sortOrder = restoredState.sortOrder;
  35152. }
  35153. if (restoredState.multiSortMeta) {
  35154. this.d_multiSortMeta = restoredState.multiSortMeta;
  35155. }
  35156. if (restoredState.filters) {
  35157. this.$emit('update:filters', restoredState.filters);
  35158. }
  35159. if (this.resizableColumns) {
  35160. this.columnWidthsState = restoredState.columnWidths;
  35161. this.tableWidthState = restoredState.tableWidth;
  35162. }
  35163. if (this.reorderableColumns) {
  35164. this.d_columnOrder = restoredState.columnOrder;
  35165. }
  35166. if (restoredState.expandedRows) {
  35167. this.d_expandedRowKeys = restoredState.expandedRowKeys;
  35168. this.$emit('update:expandedRows', restoredState.expandedRows);
  35169. }
  35170. if (restoredState.expandedRowGroups) {
  35171. this.$emit('update:expandedRowGroups', restoredState.expandedRowGroups);
  35172. }
  35173. if (restoredState.selection) {
  35174. this.d_selectionKeys = restoredState.d_selectionKeys;
  35175. this.$emit('update:selection', restoredState.selection);
  35176. }
  35177. this.$emit('state-restore', restoredState);
  35178. }
  35179. },
  35180. saveColumnWidths(state) {
  35181. let widths = [];
  35182. let headers = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.find(this.$el, '.p-datatable-thead > tr > th');
  35183. headers.forEach(header => widths.push(primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterWidth(header)));
  35184. state.columnWidths = widths.join(',');
  35185. if (this.columnResizeMode === 'expand') {
  35186. state.tableWidth = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterWidth(this.$refs.table) + 'px';
  35187. }
  35188. },
  35189. restoreColumnWidths() {
  35190. if (this.columnWidthsState) {
  35191. let widths = this.columnWidthsState.split(',');
  35192. if (this.columnResizeMode === 'expand' && this.tableWidthState) {
  35193. this.$refs.table.style.width = this.tableWidthState;
  35194. this.$refs.table.style.minWidth = this.tableWidthState;
  35195. this.$el.style.width = this.tableWidthState;
  35196. }
  35197. if (primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.isNotEmpty(widths)) {
  35198. this.createStyleElement();
  35199. let innerHTML = '';
  35200. widths.forEach((width, index) => {
  35201. let style = this.scrollable ? `flex: 1 1 ${width}px !important` : `width: ${width}px !important`;
  35202. innerHTML += `
  35203. .p-datatable[${this.attributeSelector}] .p-datatable-thead > tr > th:nth-child(${index + 1}),
  35204. .p-datatable[${this.attributeSelector}] .p-datatable-tbody > tr > td:nth-child(${index + 1}),
  35205. .p-datatable[${this.attributeSelector}] .p-datatable-tfoot > tr > td:nth-child(${index + 1}) {
  35206. ${style}
  35207. }
  35208. `;
  35209. });
  35210. this.styleElement.innerHTML = innerHTML;
  35211. }
  35212. }
  35213. },
  35214. onCellEditInit(event) {
  35215. this.$emit('cell-edit-init', event);
  35216. },
  35217. onCellEditComplete(event) {
  35218. this.$emit('cell-edit-complete', event);
  35219. },
  35220. onCellEditCancel(event) {
  35221. this.$emit('cell-edit-cancel', event);
  35222. },
  35223. onRowEditInit(event) {
  35224. let _editingRows = this.editingRows ? [...this.editingRows] : [];
  35225. _editingRows.push(event.data);
  35226. this.$emit('update:editingRows', _editingRows);
  35227. this.$emit('row-edit-init', event);
  35228. },
  35229. onRowEditSave(event) {
  35230. let _editingRows = [...this.editingRows];
  35231. _editingRows.splice(this.findIndex(event.data, _editingRows), 1);
  35232. this.$emit('update:editingRows', _editingRows);
  35233. this.$emit('row-edit-save', event);
  35234. },
  35235. onRowEditCancel(event) {
  35236. let _editingRows = [...this.editingRows];
  35237. _editingRows.splice(this.findIndex(event.data, _editingRows), 1);
  35238. this.$emit('update:editingRows', _editingRows);
  35239. this.$emit('row-edit-cancel', event);
  35240. },
  35241. onEditingMetaChange(event) {
  35242. let { data, field, index, editing } = event;
  35243. let editingMeta = { ...this.d_editingMeta };
  35244. let meta = editingMeta[index];
  35245. if (editing) {
  35246. !meta && (meta = editingMeta[index] = { data: { ...data }, fields: [] });
  35247. meta['fields'].push(field);
  35248. }
  35249. else if (meta) {
  35250. const fields = meta['fields'].filter(f => f !== field);
  35251. !fields.length ? (delete editingMeta[index]) : (meta['fields'] = fields);
  35252. }
  35253. this.d_editingMeta = editingMeta;
  35254. },
  35255. clearEditingMetaData() {
  35256. if (this.editMode) {
  35257. this.d_editingMeta = {};
  35258. }
  35259. },
  35260. createLazyLoadEvent(event) {
  35261. return {
  35262. originalEvent: event,
  35263. first: this.d_first,
  35264. rows: this.d_rows,
  35265. sortField: this.d_sortField,
  35266. sortOrder: this.d_sortOrder,
  35267. multiSortMeta: this.d_multiSortMeta,
  35268. filters: this.d_filters
  35269. };
  35270. },
  35271. hasGlobalFilter() {
  35272. return this.filters && Object.prototype.hasOwnProperty.call(this.filters, 'global');
  35273. },
  35274. getChildren() {
  35275. return this.$slots.default ? this.$slots.default() : null;
  35276. },
  35277. onFilterChange(filters) {
  35278. this.d_filters = filters;
  35279. },
  35280. onFilterApply() {
  35281. this.d_first = 0;
  35282. this.$emit('update:first', this.d_first);
  35283. this.$emit('update:filters', this.d_filters);
  35284. if (this.lazy) {
  35285. this.$emit('filter', this.createLazyLoadEvent());
  35286. }
  35287. },
  35288. cloneFilters() {
  35289. let cloned = {};
  35290. if (this.filters) {
  35291. Object.entries(this.filters).forEach(([prop,value]) => {
  35292. cloned[prop] = value.operator ? {operator: value.operator, constraints: value.constraints.map(constraint => {return {...constraint}})} : {...value};
  35293. });
  35294. }
  35295. return cloned;
  35296. },
  35297. updateReorderableColumns() {
  35298. let columnOrder = [];
  35299. this.columns.forEach(col => columnOrder.push(this.columnProp(col, 'columnKey')||this.columnProp(col, 'field')));
  35300. this.d_columnOrder = columnOrder;
  35301. },
  35302. createStyleElement() {
  35303. this.styleElement = document.createElement('style');
  35304. this.styleElement.type = 'text/css';
  35305. document.head.appendChild(this.styleElement);
  35306. },
  35307. createResponsiveStyle() {
  35308. if (!this.responsiveStyleElement) {
  35309. this.responsiveStyleElement = document.createElement('style');
  35310. this.responsiveStyleElement.type = 'text/css';
  35311. document.head.appendChild(this.responsiveStyleElement);
  35312. let innerHTML = `
  35313. @media screen and (max-width: ${this.breakpoint}) {
  35314. .p-datatable[${this.attributeSelector}] .p-datatable-thead > tr > th,
  35315. .p-datatable[${this.attributeSelector}] .p-datatable-tfoot > tr > td {
  35316. display: none !important;
  35317. }
  35318. .p-datatable[${this.attributeSelector}] .p-datatable-tbody > tr > td {
  35319. display: flex;
  35320. width: 100% !important;
  35321. align-items: center;
  35322. justify-content: space-between;
  35323. }
  35324. .p-datatable[${this.attributeSelector}] .p-datatable-tbody > tr > td:not(:last-child) {
  35325. border: 0 none;
  35326. }
  35327. .p-datatable[${this.attributeSelector}].p-datatable-gridlines .p-datatable-tbody > tr > td:last-child {
  35328. border-top: 0;
  35329. border-right: 0;
  35330. border-left: 0;
  35331. }
  35332. .p-datatable[${this.attributeSelector}] .p-datatable-tbody > tr > td > .p-column-title {
  35333. display: block;
  35334. }
  35335. }
  35336. `;
  35337. this.responsiveStyleElement.innerHTML = innerHTML;
  35338. }
  35339. },
  35340. destroyResponsiveStyle() {
  35341. if (this.responsiveStyleElement) {
  35342. document.head.removeChild(this.responsiveStyleElement);
  35343. this.responsiveStyleElement = null;
  35344. }
  35345. },
  35346. destroyStyleElement() {
  35347. if (this.styleElement) {
  35348. document.head.removeChild(this.styleElement);
  35349. this.styleElement = null;
  35350. }
  35351. },
  35352. recursiveGetChildren(children, results) {
  35353. if (!results) {
  35354. results = [];
  35355. }
  35356. if (children && children.length) {
  35357. children.forEach((child) => {
  35358. if (child.children instanceof Array) {
  35359. results.concat(this.recursiveGetChildren(child.children, results));
  35360. } else if (child.type.name == 'Column') {
  35361. results.push(child);
  35362. }
  35363. });
  35364. }
  35365. return results;
  35366. },
  35367. dataToRender(data) {
  35368. const _data = data || this.processedData;
  35369. if (_data && this.paginator) {
  35370. const first = this.lazy ? 0 : this.d_first;
  35371. return _data.slice(first, first + this.d_rows);
  35372. }
  35373. return _data;
  35374. }
  35375. },
  35376. computed: {
  35377. containerClass() {
  35378. return [
  35379. 'p-datatable p-component', {
  35380. 'p-datatable-hoverable-rows': (this.rowHover || this.selectionMode),
  35381. 'p-datatable-auto-layout': this.autoLayout,
  35382. 'p-datatable-resizable': this.resizableColumns,
  35383. 'p-datatable-resizable-fit': this.resizableColumns && this.columnResizeMode === 'fit',
  35384. 'p-datatable-scrollable': this.scrollable,
  35385. 'p-datatable-scrollable-vertical': this.scrollable && this.scrollDirection === 'vertical',
  35386. 'p-datatable-scrollable-horizontal': this.scrollable && this.scrollDirection === 'horizontal',
  35387. 'p-datatable-scrollable-both': this.scrollable && this.scrollDirection === 'both',
  35388. 'p-datatable-flex-scrollable': (this.scrollable && this.scrollHeight === 'flex'),
  35389. 'p-datatable-responsive-stack': this.responsiveLayout === 'stack',
  35390. 'p-datatable-responsive-scroll': this.responsiveLayout === 'scroll',
  35391. 'p-datatable-striped': this.stripedRows,
  35392. 'p-datatable-gridlines': this.showGridlines,
  35393. 'p-datatable-grouped-header': this.headerColumnGroup != null,
  35394. 'p-datatable-grouped-footer': this.footerColumnGroup != null
  35395. }
  35396. ];
  35397. },
  35398. columns() {
  35399. let children = this.getChildren();
  35400. if (!children) {
  35401. return;
  35402. }
  35403. const cols = this.recursiveGetChildren(children, []);
  35404. if (this.reorderableColumns && this.d_columnOrder) {
  35405. let orderedColumns = [];
  35406. for (let columnKey of this.d_columnOrder) {
  35407. let column = this.findColumnByKey(cols, columnKey);
  35408. if (column) {
  35409. orderedColumns.push(column);
  35410. }
  35411. }
  35412. return [...orderedColumns, ...cols.filter((item) => orderedColumns.indexOf(item) < 0)];
  35413. }
  35414. return cols;
  35415. },
  35416. headerColumnGroup() {
  35417. const children = this.getChildren();
  35418. if (children) {
  35419. for (let child of children) {
  35420. if (child.type.name === 'ColumnGroup' && this.columnProp(child, 'type') === 'header') {
  35421. return child;
  35422. }
  35423. }
  35424. }
  35425. return null;
  35426. },
  35427. footerColumnGroup() {
  35428. const children = this.getChildren();
  35429. if (children) {
  35430. for (let child of children) {
  35431. if (child.type.name === 'ColumnGroup' && this.columnProp(child, 'type') === 'footer') {
  35432. return child;
  35433. }
  35434. }
  35435. }
  35436. return null;
  35437. },
  35438. hasFilters() {
  35439. return this.filters && Object.keys(this.filters).length > 0 && this.filters.constructor === Object;
  35440. },
  35441. processedData() {
  35442. let data = this.value || [];
  35443. if (!this.lazy) {
  35444. if (data && data.length) {
  35445. if (this.hasFilters) {
  35446. data = this.filter(data);
  35447. }
  35448. if (this.sorted) {
  35449. if(this.sortMode === 'single')
  35450. data = this.sortSingle(data);
  35451. else if(this.sortMode === 'multiple')
  35452. data = this.sortMultiple(data);
  35453. }
  35454. }
  35455. }
  35456. return data;
  35457. },
  35458. totalRecordsLength() {
  35459. if (this.lazy) {
  35460. return this.totalRecords;
  35461. }
  35462. else {
  35463. const data = this.processedData;
  35464. return data ? data.length : 0;
  35465. }
  35466. },
  35467. empty() {
  35468. const data = this.processedData;
  35469. return (!data || data.length === 0);
  35470. },
  35471. paginatorTop() {
  35472. return this.paginator && (this.paginatorPosition !== 'bottom' || this.paginatorPosition === 'both');
  35473. },
  35474. paginatorBottom() {
  35475. return this.paginator && (this.paginatorPosition !== 'top' || this.paginatorPosition === 'both');
  35476. },
  35477. sorted() {
  35478. return this.d_sortField || (this.d_multiSortMeta && this.d_multiSortMeta.length > 0);
  35479. },
  35480. loadingIconClass() {
  35481. return ['p-datatable-loading-icon pi-spin', this.loadingIcon];
  35482. },
  35483. allRowsSelected() {
  35484. if (this.selectAll !== null) {
  35485. return this.selectAll;
  35486. }
  35487. else {
  35488. const val = this.frozenValue ? [...this.frozenValue, ...this.processedData] : this.processedData;
  35489. return val && this.selection && Array.isArray(this.selection) && val.every(v => this.selection.some(s => this.equals(s, v)));
  35490. }
  35491. },
  35492. attributeSelector() {
  35493. return (0,primevue_utils__WEBPACK_IMPORTED_MODULE_0__.UniqueComponentId)();
  35494. },
  35495. groupRowSortField() {
  35496. return this.sortMode === 'single' ? this.sortField : (this.d_groupRowsSortMeta ? this.d_groupRowsSortMeta.field : null);
  35497. },
  35498. virtualScrollerDisabled() {
  35499. return primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.isEmpty(this.virtualScrollerOptions) || !this.scrollable;
  35500. }
  35501. },
  35502. components: {
  35503. 'DTPaginator': primevue_paginator__WEBPACK_IMPORTED_MODULE_2__["default"],
  35504. 'DTTableHeader': script$7,
  35505. 'DTTableBody': script$3,
  35506. 'DTTableFooter': script$1,
  35507. 'DTVirtualScroller': primevue_virtualscroller__WEBPACK_IMPORTED_MODULE_3__["default"]
  35508. }
  35509. };
  35510. const _hoisted_1 = {
  35511. key: 0,
  35512. class: "p-datatable-loading-overlay p-component-overlay"
  35513. };
  35514. const _hoisted_2 = {
  35515. key: 1,
  35516. class: "p-datatable-header"
  35517. };
  35518. const _hoisted_3 = {
  35519. key: 4,
  35520. class: "p-datatable-footer"
  35521. };
  35522. const _hoisted_4 = {
  35523. ref: "resizeHelper",
  35524. class: "p-column-resizer-helper",
  35525. style: {"display":"none"}
  35526. };
  35527. const _hoisted_5 = {
  35528. key: 5,
  35529. ref: "reorderIndicatorUp",
  35530. class: "pi pi-arrow-down p-datatable-reorder-indicator-up",
  35531. style: {"position":"absolute","display":"none"}
  35532. };
  35533. const _hoisted_6 = {
  35534. key: 6,
  35535. ref: "reorderIndicatorDown",
  35536. class: "pi pi-arrow-up p-datatable-reorder-indicator-down",
  35537. style: {"position":"absolute","display":"none"}
  35538. };
  35539. function render(_ctx, _cache, $props, $setup, $data, $options) {
  35540. const _component_DTPaginator = (0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveComponent)("DTPaginator");
  35541. const _component_DTTableHeader = (0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveComponent)("DTTableHeader");
  35542. const _component_DTTableBody = (0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveComponent)("DTTableBody");
  35543. const _component_DTTableFooter = (0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveComponent)("DTTableFooter");
  35544. const _component_DTVirtualScroller = (0,vue__WEBPACK_IMPORTED_MODULE_4__.resolveComponent)("DTVirtualScroller");
  35545. return ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("div", {
  35546. class: $options.containerClass,
  35547. "data-scrollselectors": ".p-datatable-wrapper"
  35548. }, [
  35549. (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderSlot)(_ctx.$slots, "default"),
  35550. ($props.loading)
  35551. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("div", _hoisted_1, [
  35552. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("i", { class: $options.loadingIconClass }, null, 2)
  35553. ]))
  35554. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  35555. (_ctx.$slots.header)
  35556. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("div", _hoisted_2, [
  35557. (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderSlot)(_ctx.$slots, "header")
  35558. ]))
  35559. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  35560. ($options.paginatorTop)
  35561. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(_component_DTPaginator, {
  35562. key: 2,
  35563. rows: $data.d_rows,
  35564. first: $data.d_first,
  35565. totalRecords: $options.totalRecordsLength,
  35566. pageLinkSize: $props.pageLinkSize,
  35567. template: $props.paginatorTemplate,
  35568. rowsPerPageOptions: $props.rowsPerPageOptions,
  35569. currentPageReportTemplate: $props.currentPageReportTemplate,
  35570. class: "p-paginator-top",
  35571. onPage: _cache[1] || (_cache[1] = $event => ($options.onPage($event))),
  35572. alwaysShow: $props.alwaysShowPaginator
  35573. }, (0,vue__WEBPACK_IMPORTED_MODULE_4__.createSlots)({ _: 2 }, [
  35574. (_ctx.$slots.paginatorstart)
  35575. ? {
  35576. name: "start",
  35577. fn: (0,vue__WEBPACK_IMPORTED_MODULE_4__.withCtx)(() => [
  35578. (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderSlot)(_ctx.$slots, "paginatorstart")
  35579. ])
  35580. }
  35581. : undefined,
  35582. (_ctx.$slots.paginatorend)
  35583. ? {
  35584. name: "end",
  35585. fn: (0,vue__WEBPACK_IMPORTED_MODULE_4__.withCtx)(() => [
  35586. (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderSlot)(_ctx.$slots, "paginatorend")
  35587. ])
  35588. }
  35589. : undefined
  35590. ]), 1032, ["rows", "first", "totalRecords", "pageLinkSize", "template", "rowsPerPageOptions", "currentPageReportTemplate", "alwaysShow"]))
  35591. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  35592. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("div", {
  35593. class: "p-datatable-wrapper",
  35594. style: { maxHeight: $options.virtualScrollerDisabled ? $props.scrollHeight : '' }
  35595. }, [
  35596. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)(_component_DTVirtualScroller, (0,vue__WEBPACK_IMPORTED_MODULE_4__.mergeProps)($props.virtualScrollerOptions, {
  35597. items: $options.processedData,
  35598. columns: $options.columns,
  35599. style: { height: $props.scrollHeight },
  35600. disabled: $options.virtualScrollerDisabled,
  35601. loaderDisabled: "",
  35602. showSpacer: false
  35603. }), {
  35604. content: (0,vue__WEBPACK_IMPORTED_MODULE_4__.withCtx)((slotProps) => [
  35605. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("table", {
  35606. ref: "table",
  35607. role: "table",
  35608. class: [$props.tableClass, 'p-datatable-table'],
  35609. style: [$props.tableStyle, slotProps.spacerStyle]
  35610. }, [
  35611. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)(_component_DTTableHeader, {
  35612. columnGroup: $options.headerColumnGroup,
  35613. columns: slotProps.columns,
  35614. rowGroupMode: $props.rowGroupMode,
  35615. groupRowsBy: $props.groupRowsBy,
  35616. groupRowSortField: $options.groupRowSortField,
  35617. resizableColumns: $props.resizableColumns,
  35618. allRowsSelected: $options.allRowsSelected,
  35619. empty: $options.empty,
  35620. sortMode: $props.sortMode,
  35621. sortField: $data.d_sortField,
  35622. sortOrder: $data.d_sortOrder,
  35623. multiSortMeta: $data.d_multiSortMeta,
  35624. filters: $data.d_filters,
  35625. filtersStore: $props.filters,
  35626. filterDisplay: $props.filterDisplay,
  35627. onColumnClick: _cache[2] || (_cache[2] = $event => ($options.onColumnHeaderClick($event))),
  35628. onColumnMousedown: _cache[3] || (_cache[3] = $event => ($options.onColumnHeaderMouseDown($event))),
  35629. onFilterChange: $options.onFilterChange,
  35630. onFilterApply: $options.onFilterApply,
  35631. onColumnDragstart: _cache[4] || (_cache[4] = $event => ($options.onColumnHeaderDragStart($event))),
  35632. onColumnDragover: _cache[5] || (_cache[5] = $event => ($options.onColumnHeaderDragOver($event))),
  35633. onColumnDragleave: _cache[6] || (_cache[6] = $event => ($options.onColumnHeaderDragLeave($event))),
  35634. onColumnDrop: _cache[7] || (_cache[7] = $event => ($options.onColumnHeaderDrop($event))),
  35635. onColumnResizestart: _cache[8] || (_cache[8] = $event => ($options.onColumnResizeStart($event))),
  35636. onCheckboxChange: _cache[9] || (_cache[9] = $event => ($options.toggleRowsWithCheckbox($event)))
  35637. }, null, 8, ["columnGroup", "columns", "rowGroupMode", "groupRowsBy", "groupRowSortField", "resizableColumns", "allRowsSelected", "empty", "sortMode", "sortField", "sortOrder", "multiSortMeta", "filters", "filtersStore", "filterDisplay", "onFilterChange", "onFilterApply"]),
  35638. ($props.frozenValue)
  35639. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(_component_DTTableBody, {
  35640. key: 0,
  35641. value: $props.frozenValue,
  35642. frozenRow: true,
  35643. class: "p-datatable-frozen-tbody",
  35644. columns: slotProps.columns,
  35645. dataKey: $props.dataKey,
  35646. selection: $props.selection,
  35647. selectionKeys: $data.d_selectionKeys,
  35648. selectionMode: $props.selectionMode,
  35649. contextMenu: $props.contextMenu,
  35650. contextMenuSelection: $props.contextMenuSelection,
  35651. rowGroupMode: $props.rowGroupMode,
  35652. groupRowsBy: $props.groupRowsBy,
  35653. expandableRowGroups: $props.expandableRowGroups,
  35654. rowClass: $props.rowClass,
  35655. rowStyle: $props.rowStyle,
  35656. editMode: $props.editMode,
  35657. compareSelectionBy: $props.compareSelectionBy,
  35658. scrollable: $props.scrollable,
  35659. expandedRowIcon: $props.expandedRowIcon,
  35660. collapsedRowIcon: $props.collapsedRowIcon,
  35661. expandedRows: $props.expandedRows,
  35662. expandedRowKeys: $data.d_expandedRowKeys,
  35663. expandedRowGroups: $props.expandedRowGroups,
  35664. editingRows: $props.editingRows,
  35665. editingRowKeys: $data.d_editingRowKeys,
  35666. templates: _ctx.$slots,
  35667. loading: $props.loading,
  35668. responsiveLayout: $props.responsiveLayout,
  35669. onRowgroupToggle: $options.toggleRowGroup,
  35670. onRowClick: _cache[10] || (_cache[10] = $event => ($options.onRowClick($event))),
  35671. onRowDblclick: _cache[11] || (_cache[11] = $event => ($options.onRowDblClick($event))),
  35672. onRowRightclick: _cache[12] || (_cache[12] = $event => ($options.onRowRightClick($event))),
  35673. onRowTouchend: $options.onRowTouchEnd,
  35674. onRowKeydown: $options.onRowKeyDown,
  35675. onRowMousedown: $options.onRowMouseDown,
  35676. onRowDragstart: _cache[13] || (_cache[13] = $event => ($options.onRowDragStart($event))),
  35677. onRowDragover: _cache[14] || (_cache[14] = $event => ($options.onRowDragOver($event))),
  35678. onRowDragleave: _cache[15] || (_cache[15] = $event => ($options.onRowDragLeave($event))),
  35679. onRowDragend: _cache[16] || (_cache[16] = $event => ($options.onRowDragEnd($event))),
  35680. onRowDrop: _cache[17] || (_cache[17] = $event => ($options.onRowDrop($event))),
  35681. onRowToggle: _cache[18] || (_cache[18] = $event => ($options.toggleRow($event))),
  35682. onRadioChange: _cache[19] || (_cache[19] = $event => ($options.toggleRowWithRadio($event))),
  35683. onCheckboxChange: _cache[20] || (_cache[20] = $event => ($options.toggleRowWithCheckbox($event))),
  35684. onCellEditInit: _cache[21] || (_cache[21] = $event => ($options.onCellEditInit($event))),
  35685. onCellEditComplete: _cache[22] || (_cache[22] = $event => ($options.onCellEditComplete($event))),
  35686. onCellEditCancel: _cache[23] || (_cache[23] = $event => ($options.onCellEditCancel($event))),
  35687. onRowEditInit: _cache[24] || (_cache[24] = $event => ($options.onRowEditInit($event))),
  35688. onRowEditSave: _cache[25] || (_cache[25] = $event => ($options.onRowEditSave($event))),
  35689. onRowEditCancel: _cache[26] || (_cache[26] = $event => ($options.onRowEditCancel($event))),
  35690. editingMeta: $data.d_editingMeta,
  35691. onEditingMetaChange: $options.onEditingMetaChange,
  35692. isVirtualScrollerDisabled: true
  35693. }, null, 8, ["value", "columns", "dataKey", "selection", "selectionKeys", "selectionMode", "contextMenu", "contextMenuSelection", "rowGroupMode", "groupRowsBy", "expandableRowGroups", "rowClass", "rowStyle", "editMode", "compareSelectionBy", "scrollable", "expandedRowIcon", "collapsedRowIcon", "expandedRows", "expandedRowKeys", "expandedRowGroups", "editingRows", "editingRowKeys", "templates", "loading", "responsiveLayout", "onRowgroupToggle", "onRowTouchend", "onRowKeydown", "onRowMousedown", "editingMeta", "onEditingMetaChange"]))
  35694. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  35695. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)(_component_DTTableBody, {
  35696. value: $options.dataToRender(slotProps.rows),
  35697. class: slotProps.styleClass,
  35698. columns: slotProps.columns,
  35699. empty: $options.empty,
  35700. dataKey: $props.dataKey,
  35701. selection: $props.selection,
  35702. selectionKeys: $data.d_selectionKeys,
  35703. selectionMode: $props.selectionMode,
  35704. contextMenu: $props.contextMenu,
  35705. contextMenuSelection: $props.contextMenuSelection,
  35706. rowGroupMode: $props.rowGroupMode,
  35707. groupRowsBy: $props.groupRowsBy,
  35708. expandableRowGroups: $props.expandableRowGroups,
  35709. rowClass: $props.rowClass,
  35710. rowStyle: $props.rowStyle,
  35711. editMode: $props.editMode,
  35712. compareSelectionBy: $props.compareSelectionBy,
  35713. scrollable: $props.scrollable,
  35714. expandedRowIcon: $props.expandedRowIcon,
  35715. collapsedRowIcon: $props.collapsedRowIcon,
  35716. expandedRows: $props.expandedRows,
  35717. expandedRowKeys: $data.d_expandedRowKeys,
  35718. expandedRowGroups: $props.expandedRowGroups,
  35719. editingRows: $props.editingRows,
  35720. editingRowKeys: $data.d_editingRowKeys,
  35721. templates: _ctx.$slots,
  35722. loading: $props.loading,
  35723. responsiveLayout: $props.responsiveLayout,
  35724. onRowgroupToggle: $options.toggleRowGroup,
  35725. onRowClick: _cache[27] || (_cache[27] = $event => ($options.onRowClick($event))),
  35726. onRowDblclick: _cache[28] || (_cache[28] = $event => ($options.onRowDblClick($event))),
  35727. onRowRightclick: _cache[29] || (_cache[29] = $event => ($options.onRowRightClick($event))),
  35728. onRowTouchend: $options.onRowTouchEnd,
  35729. onRowKeydown: $options.onRowKeyDown,
  35730. onRowMousedown: $options.onRowMouseDown,
  35731. onRowDragstart: _cache[30] || (_cache[30] = $event => ($options.onRowDragStart($event))),
  35732. onRowDragover: _cache[31] || (_cache[31] = $event => ($options.onRowDragOver($event))),
  35733. onRowDragleave: _cache[32] || (_cache[32] = $event => ($options.onRowDragLeave($event))),
  35734. onRowDragend: _cache[33] || (_cache[33] = $event => ($options.onRowDragEnd($event))),
  35735. onRowDrop: _cache[34] || (_cache[34] = $event => ($options.onRowDrop($event))),
  35736. onRowToggle: _cache[35] || (_cache[35] = $event => ($options.toggleRow($event))),
  35737. onRadioChange: _cache[36] || (_cache[36] = $event => ($options.toggleRowWithRadio($event))),
  35738. onCheckboxChange: _cache[37] || (_cache[37] = $event => ($options.toggleRowWithCheckbox($event))),
  35739. onCellEditInit: _cache[38] || (_cache[38] = $event => ($options.onCellEditInit($event))),
  35740. onCellEditComplete: _cache[39] || (_cache[39] = $event => ($options.onCellEditComplete($event))),
  35741. onCellEditCancel: _cache[40] || (_cache[40] = $event => ($options.onCellEditCancel($event))),
  35742. onRowEditInit: _cache[41] || (_cache[41] = $event => ($options.onRowEditInit($event))),
  35743. onRowEditSave: _cache[42] || (_cache[42] = $event => ($options.onRowEditSave($event))),
  35744. onRowEditCancel: _cache[43] || (_cache[43] = $event => ($options.onRowEditCancel($event))),
  35745. editingMeta: $data.d_editingMeta,
  35746. onEditingMetaChange: $options.onEditingMetaChange,
  35747. virtualScrollerContentProps: slotProps,
  35748. isVirtualScrollerDisabled: $options.virtualScrollerDisabled
  35749. }, null, 8, ["value", "class", "columns", "empty", "dataKey", "selection", "selectionKeys", "selectionMode", "contextMenu", "contextMenuSelection", "rowGroupMode", "groupRowsBy", "expandableRowGroups", "rowClass", "rowStyle", "editMode", "compareSelectionBy", "scrollable", "expandedRowIcon", "collapsedRowIcon", "expandedRows", "expandedRowKeys", "expandedRowGroups", "editingRows", "editingRowKeys", "templates", "loading", "responsiveLayout", "onRowgroupToggle", "onRowTouchend", "onRowKeydown", "onRowMousedown", "editingMeta", "onEditingMetaChange", "virtualScrollerContentProps", "isVirtualScrollerDisabled"]),
  35750. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)(_component_DTTableFooter, {
  35751. columnGroup: $options.footerColumnGroup,
  35752. columns: slotProps.columns
  35753. }, null, 8, ["columnGroup", "columns"])
  35754. ], 6)
  35755. ]),
  35756. _: 1
  35757. }, 16, ["items", "columns", "style", "disabled"])
  35758. ], 4),
  35759. ($options.paginatorBottom)
  35760. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)(_component_DTPaginator, {
  35761. key: 3,
  35762. rows: $data.d_rows,
  35763. first: $data.d_first,
  35764. totalRecords: $options.totalRecordsLength,
  35765. pageLinkSize: $props.pageLinkSize,
  35766. template: $props.paginatorTemplate,
  35767. rowsPerPageOptions: $props.rowsPerPageOptions,
  35768. currentPageReportTemplate: $props.currentPageReportTemplate,
  35769. class: "p-paginator-bottom",
  35770. onPage: _cache[44] || (_cache[44] = $event => ($options.onPage($event))),
  35771. alwaysShow: $props.alwaysShowPaginator
  35772. }, (0,vue__WEBPACK_IMPORTED_MODULE_4__.createSlots)({ _: 2 }, [
  35773. (_ctx.$slots.paginatorstart)
  35774. ? {
  35775. name: "start",
  35776. fn: (0,vue__WEBPACK_IMPORTED_MODULE_4__.withCtx)(() => [
  35777. (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderSlot)(_ctx.$slots, "paginatorstart")
  35778. ])
  35779. }
  35780. : undefined,
  35781. (_ctx.$slots.paginatorend)
  35782. ? {
  35783. name: "end",
  35784. fn: (0,vue__WEBPACK_IMPORTED_MODULE_4__.withCtx)(() => [
  35785. (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderSlot)(_ctx.$slots, "paginatorend")
  35786. ])
  35787. }
  35788. : undefined
  35789. ]), 1032, ["rows", "first", "totalRecords", "pageLinkSize", "template", "rowsPerPageOptions", "currentPageReportTemplate", "alwaysShow"]))
  35790. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  35791. (_ctx.$slots.footer)
  35792. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("div", _hoisted_3, [
  35793. (0,vue__WEBPACK_IMPORTED_MODULE_4__.renderSlot)(_ctx.$slots, "footer")
  35794. ]))
  35795. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  35796. (0,vue__WEBPACK_IMPORTED_MODULE_4__.createVNode)("div", _hoisted_4, null, 512),
  35797. ($props.reorderableColumns)
  35798. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("span", _hoisted_5, null, 512))
  35799. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true),
  35800. ($props.reorderableColumns)
  35801. ? ((0,vue__WEBPACK_IMPORTED_MODULE_4__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_4__.createBlock)("span", _hoisted_6, null, 512))
  35802. : (0,vue__WEBPACK_IMPORTED_MODULE_4__.createCommentVNode)("", true)
  35803. ], 2))
  35804. }
  35805. function styleInject(css, ref) {
  35806. if ( ref === void 0 ) ref = {};
  35807. var insertAt = ref.insertAt;
  35808. if (!css || typeof document === 'undefined') { return; }
  35809. var head = document.head || document.getElementsByTagName('head')[0];
  35810. var style = document.createElement('style');
  35811. style.type = 'text/css';
  35812. if (insertAt === 'top') {
  35813. if (head.firstChild) {
  35814. head.insertBefore(style, head.firstChild);
  35815. } else {
  35816. head.appendChild(style);
  35817. }
  35818. } else {
  35819. head.appendChild(style);
  35820. }
  35821. if (style.styleSheet) {
  35822. style.styleSheet.cssText = css;
  35823. } else {
  35824. style.appendChild(document.createTextNode(css));
  35825. }
  35826. }
  35827. var css_248z = "\n.p-datatable {\n position: relative;\n}\n.p-datatable table {\n border-collapse: collapse;\n min-width: 100%;\n table-layout: fixed;\n}\n.p-datatable .p-sortable-column {\n cursor: pointer;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.p-datatable .p-sortable-column .p-column-title,\n.p-datatable .p-sortable-column .p-sortable-column-icon,\n.p-datatable .p-sortable-column .p-sortable-column-badge {\n vertical-align: middle;\n}\n.p-datatable .p-sortable-column .p-sortable-column-badge {\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n}\n.p-datatable-responsive-scroll > .p-datatable-wrapper {\n overflow-x: auto;\n}\n.p-datatable-responsive-scroll > .p-datatable-wrapper > table,\n.p-datatable-auto-layout > .p-datatable-wrapper > table {\n table-layout: auto;\n}\n.p-datatable-hoverable-rows .p-selectable-row {\n cursor: pointer;\n}\n\n/* Scrollable */\n.p-datatable-scrollable .p-datatable-wrapper {\n position: relative;\n overflow: auto;\n}\n.p-datatable-scrollable .p-datatable-thead,\n.p-datatable-scrollable .p-datatable-tbody,\n.p-datatable-scrollable .p-datatable-tfoot {\n display: block;\n}\n.p-datatable-scrollable .p-datatable-thead > tr,\n.p-datatable-scrollable .p-datatable-tbody > tr,\n.p-datatable-scrollable .p-datatable-tfoot > tr {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-wrap: nowrap;\n flex-wrap: nowrap;\n width: 100%;\n}\n.p-datatable-scrollable .p-datatable-thead > tr > th,\n.p-datatable-scrollable .p-datatable-tbody > tr > td,\n.p-datatable-scrollable .p-datatable-tfoot > tr > td {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-flex: 1;\n -ms-flex: 1 1 0px;\n flex: 1 1 0;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n.p-datatable-scrollable .p-datatable-thead {\n position: sticky;\n top: 0;\n z-index: 1;\n}\n.p-datatable-scrollable .p-datatable-frozen-tbody {\n position: sticky;\n z-index: 1;\n}\n.p-datatable-scrollable .p-datatable-tfoot {\n position: sticky;\n bottom: 0;\n z-index: 1;\n}\n.p-datatable-scrollable .p-frozen-column {\n position: sticky;\n background: inherit;\n}\n.p-datatable-scrollable th.p-frozen-column {\n z-index: 1;\n}\n.p-datatable-scrollable-both .p-datatable-thead > tr > th,\n.p-datatable-scrollable-both .p-datatable-tbody > tr > td,\n.p-datatable-scrollable-both .p-datatable-tfoot > tr > td,\n.p-datatable-scrollable-horizontal .p-datatable-thead > tr > th\n.p-datatable-scrollable-horizontal .p-datatable-tbody > tr > td,\n.p-datatable-scrollable-horizontal .p-datatable-tfoot > tr > td {\n -webkit-box-flex: 0;\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n}\n.p-datatable-flex-scrollable {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n height: 100%;\n}\n.p-datatable-flex-scrollable .p-datatable-wrapper {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n height: 100%;\n}\n.p-datatable-scrollable .p-rowgroup-header {\n position: sticky;\n z-index: 1;\n}\n.p-datatable-scrollable.p-datatable-grouped-header .p-datatable-thead,\n.p-datatable-scrollable.p-datatable-grouped-footer .p-datatable-tfoot {\n display: table;\n border-collapse: collapse;\n width: 100%;\n table-layout: fixed;\n}\n.p-datatable-scrollable.p-datatable-grouped-header .p-datatable-thead > tr,\n.p-datatable-scrollable.p-datatable-grouped-footer .p-datatable-tfoot > tr {\n display: table-row;\n}\n.p-datatable-scrollable.p-datatable-grouped-header .p-datatable-thead > tr > th,\n.p-datatable-scrollable.p-datatable-grouped-footer .p-datatable-tfoot > tr > td {\n display: table-cell;\n}\n\n/* Resizable */\n.p-datatable-resizable > .p-datatable-wrapper {\n overflow-x: auto;\n}\n.p-datatable-resizable .p-datatable-thead > tr > th,\n.p-datatable-resizable .p-datatable-tfoot > tr > td,\n.p-datatable-resizable .p-datatable-tbody > tr > td {\n overflow: hidden;\n white-space: nowrap;\n}\n.p-datatable-resizable .p-resizable-column:not(.p-frozen-column) {\n background-clip: padding-box;\n position: relative;\n}\n.p-datatable-resizable-fit .p-resizable-column:last-child .p-column-resizer {\n display: none;\n}\n.p-datatable .p-column-resizer {\n display: block;\n position: absolute !important;\n top: 0;\n right: 0;\n margin: 0;\n width: .5rem;\n height: 100%;\n padding: 0px;\n cursor:col-resize;\n border: 1px solid transparent;\n}\n.p-datatable .p-column-header-content {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n.p-datatable .p-column-resizer-helper {\n width: 1px;\n position: absolute;\n z-index: 10;\n display: none;\n}\n.p-datatable .p-row-editor-init,\n.p-datatable .p-row-editor-save,\n.p-datatable .p-row-editor-cancel {\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n overflow: hidden;\n position: relative;\n}\n\n/* Expand */\n.p-datatable .p-row-toggler {\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n overflow: hidden;\n position: relative;\n}\n\n/* Reorder */\n.p-datatable-reorder-indicator-up,\n.p-datatable-reorder-indicator-down {\n position: absolute;\n display: none;\n}\n\n/* Loader */\n.p-datatable .p-datatable-loading-overlay {\n position: absolute;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n z-index: 2;\n}\n\n/* Filter */\n.p-column-filter-row {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n width: 100%;\n}\n.p-column-filter-menu {\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n margin-left: auto;\n}\n.p-column-filter-row .p-column-filter-element {\n -webkit-box-flex: 1;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n width: 1%;\n}\n.p-column-filter-menu-button,\n.p-column-filter-clear-button {\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n cursor: pointer;\n text-decoration: none;\n overflow: hidden;\n position: relative;\n}\n.p-column-filter-overlay {\n position: absolute;\n top: 0;\n left: 0;\n}\n.p-column-filter-row-items {\n margin: 0;\n padding: 0;\n list-style: none;\n}\n.p-column-filter-row-item {\n cursor: pointer;\n}\n.p-column-filter-add-button,\n.p-column-filter-remove-button {\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n}\n.p-column-filter-add-button .p-button-label,\n.p-column-filter-remove-button .p-button-label {\n -webkit-box-flex: 0;\n -ms-flex-positive: 0;\n flex-grow: 0;\n}\n.p-column-filter-buttonbar {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between;\n}\n.p-column-filter-buttonbar .p-button:not(.p-button-icon-only) {\n width: auto;\n}\n\n/* Responsive */\n.p-datatable .p-datatable-tbody > tr > td > .p-column-title {\n display: none;\n}\n\n/* VirtualScroller */\n.p-datatable .p-virtualscroller-loading {\n -webkit-transform: none !important;\n transform: none !important;\n min-height: 0;\n position: sticky;\n top: 0;\n left: 0;\n}\n";
  35828. styleInject(css_248z);
  35829. script.render = render;
  35830. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (script);
  35831. /***/ }),
  35832. /***/ "./node_modules/primevue/dialog/dialog.esm.js":
  35833. /*!****************************************************!*\
  35834. !*** ./node_modules/primevue/dialog/dialog.esm.js ***!
  35835. \****************************************************/
  35836. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  35837. "use strict";
  35838. __webpack_require__.r(__webpack_exports__);
  35839. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  35840. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  35841. /* harmony export */ });
  35842. /* harmony import */ var primevue_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! primevue/utils */ "./node_modules/primevue/utils/utils.esm.js");
  35843. /* harmony import */ var primevue_ripple__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! primevue/ripple */ "./node_modules/primevue/ripple/ripple.esm.js");
  35844. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js");
  35845. var script = {
  35846. name: 'Dialog',
  35847. inheritAttrs: false,
  35848. emits: ['update:visible','show','hide','maximize','unmaximize','dragend'],
  35849. props: {
  35850. header: null,
  35851. footer: null,
  35852. visible: Boolean,
  35853. modal: Boolean,
  35854. contentStyle: null,
  35855. contentClass: String,
  35856. rtl: Boolean,
  35857. maximizable: Boolean,
  35858. dismissableMask: Boolean,
  35859. closable: {
  35860. type: Boolean,
  35861. default: true
  35862. },
  35863. closeOnEscape: {
  35864. type: Boolean,
  35865. default: true
  35866. },
  35867. showHeader: {
  35868. type: Boolean,
  35869. default: true
  35870. },
  35871. baseZIndex: {
  35872. type: Number,
  35873. default: 0
  35874. },
  35875. autoZIndex: {
  35876. type: Boolean,
  35877. default: true
  35878. },
  35879. ariaCloseLabel: {
  35880. type: String,
  35881. default: 'close'
  35882. },
  35883. position: {
  35884. type: String,
  35885. default: 'center'
  35886. },
  35887. breakpoints: {
  35888. type: Object,
  35889. default: null
  35890. },
  35891. draggable: {
  35892. type: Boolean,
  35893. default: true
  35894. },
  35895. keepInViewport: {
  35896. type: Boolean,
  35897. default: true
  35898. },
  35899. minX: {
  35900. type: Number,
  35901. default: 0
  35902. },
  35903. minY: {
  35904. type: Number,
  35905. default: 0
  35906. },
  35907. appendTo: {
  35908. type: String,
  35909. default: 'body'
  35910. }
  35911. },
  35912. data() {
  35913. return {
  35914. containerVisible: this.visible,
  35915. maximized: false
  35916. }
  35917. },
  35918. documentKeydownListener: null,
  35919. container: null,
  35920. mask: null,
  35921. styleElement: null,
  35922. dragging: null,
  35923. documentDragListener: null,
  35924. documentDragEndListener: null,
  35925. lastPageX: null,
  35926. lastPageY: null,
  35927. updated() {
  35928. if (this.visible) {
  35929. this.containerVisible = this.visible;
  35930. }
  35931. },
  35932. beforeUnmount() {
  35933. this.unbindDocumentState();
  35934. this.unbindGlobalListeners();
  35935. this.destroyStyle();
  35936. this.mask = null;
  35937. if (this.container && this.autoZIndex) {
  35938. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ZIndexUtils.clear(this.container);
  35939. }
  35940. this.container = null;
  35941. },
  35942. mounted() {
  35943. if (this.breakpoints) {
  35944. this.createStyle();
  35945. }
  35946. },
  35947. methods: {
  35948. close() {
  35949. this.$emit('update:visible', false);
  35950. },
  35951. onBeforeEnter(el) {
  35952. if (this.autoZIndex) {
  35953. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ZIndexUtils.set('modal', el, this.baseZIndex + this.$primevue.config.zIndex.modal);
  35954. }
  35955. el.setAttribute(this.attributeSelector, '');
  35956. },
  35957. onEnter() {
  35958. this.mask.style.zIndex = String(parseInt(this.container.style.zIndex, 10) - 1);
  35959. this.$emit('show');
  35960. this.focus();
  35961. this.enableDocumentSettings();
  35962. this.bindGlobalListeners();
  35963. },
  35964. onBeforeLeave() {
  35965. if (this.modal) {
  35966. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.addClass(this.mask, 'p-component-overlay-leave');
  35967. }
  35968. },
  35969. onLeave() {
  35970. this.$emit('hide');
  35971. },
  35972. onAfterLeave(el) {
  35973. if (this.autoZIndex) {
  35974. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ZIndexUtils.clear(el);
  35975. }
  35976. this.containerVisible = false;
  35977. this.unbindDocumentState();
  35978. this.unbindGlobalListeners();
  35979. },
  35980. onMaskClick(event) {
  35981. if (this.dismissableMask && this.closable && this.modal && this.mask === event.target) {
  35982. this.close();
  35983. }
  35984. },
  35985. focus() {
  35986. let focusTarget = this.container.querySelector('[autofocus]');
  35987. if (focusTarget) {
  35988. focusTarget.focus();
  35989. }
  35990. },
  35991. maximize(event) {
  35992. if (this.maximized) {
  35993. this.maximized = false;
  35994. this.$emit('unmaximize', event);
  35995. }
  35996. else {
  35997. this.maximized = true;
  35998. this.$emit('maximize', event);
  35999. }
  36000. if (!this.modal) {
  36001. if (this.maximized)
  36002. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.addClass(document.body, 'p-overflow-hidden');
  36003. else
  36004. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.removeClass(document.body, 'p-overflow-hidden');
  36005. }
  36006. },
  36007. enableDocumentSettings() {
  36008. if (this.modal || (this.maximizable && this.maximized)) {
  36009. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.addClass(document.body, 'p-overflow-hidden');
  36010. }
  36011. },
  36012. unbindDocumentState() {
  36013. if (this.modal || (this.maximizable && this.maximized)) {
  36014. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.removeClass(document.body, 'p-overflow-hidden');
  36015. }
  36016. },
  36017. onKeyDown(event) {
  36018. if (event.which === 9) {
  36019. event.preventDefault();
  36020. let focusableElements = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getFocusableElements(this.container);
  36021. if (focusableElements && focusableElements.length > 0) {
  36022. if (!document.activeElement) {
  36023. focusableElements[0].focus();
  36024. }
  36025. else {
  36026. let focusedIndex = focusableElements.indexOf(document.activeElement);
  36027. if (event.shiftKey) {
  36028. if (focusedIndex == -1 || focusedIndex === 0)
  36029. focusableElements[focusableElements.length - 1].focus();
  36030. else
  36031. focusableElements[focusedIndex - 1].focus();
  36032. }
  36033. else {
  36034. if (focusedIndex == -1 || focusedIndex === (focusableElements.length - 1))
  36035. focusableElements[0].focus();
  36036. else
  36037. focusableElements[focusedIndex + 1].focus();
  36038. }
  36039. }
  36040. }
  36041. } else if (event.which === 27 && this.closeOnEscape) {
  36042. this.close();
  36043. }
  36044. },
  36045. bindDocumentKeyDownListener() {
  36046. if (!this.documentKeydownListener) {
  36047. this.documentKeydownListener = this.onKeyDown.bind(this);
  36048. window.document.addEventListener('keydown', this.documentKeydownListener);
  36049. }
  36050. },
  36051. unbindDocumentKeyDownListener() {
  36052. if (this.documentKeydownListener) {
  36053. window.document.removeEventListener('keydown', this.documentKeydownListener);
  36054. this.documentKeydownListener = null;
  36055. }
  36056. },
  36057. getPositionClass() {
  36058. const positions = ['left', 'right', 'top', 'topleft', 'topright', 'bottom', 'bottomleft', 'bottomright'];
  36059. const pos = positions.find(item => item === this.position);
  36060. return pos ? `p-dialog-${pos}` : '';
  36061. },
  36062. containerRef(el) {
  36063. this.container = el;
  36064. },
  36065. maskRef(el) {
  36066. this.mask = el;
  36067. },
  36068. createStyle() {
  36069. if (!this.styleElement) {
  36070. this.styleElement = document.createElement('style');
  36071. this.styleElement.type = 'text/css';
  36072. document.head.appendChild(this.styleElement);
  36073. let innerHTML = '';
  36074. for (let breakpoint in this.breakpoints) {
  36075. innerHTML += `
  36076. @media screen and (max-width: ${breakpoint}) {
  36077. .p-dialog[${this.attributeSelector}] {
  36078. width: ${this.breakpoints[breakpoint]} !important;
  36079. }
  36080. }
  36081. `;
  36082. }
  36083. this.styleElement.innerHTML = innerHTML;
  36084. }
  36085. },
  36086. destroyStyle() {
  36087. if (this.styleElement) {
  36088. document.head.removeChild(this.styleElement);
  36089. this.styleElement = null;
  36090. }
  36091. },
  36092. initDrag(event) {
  36093. if (primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(event.target, 'p-dialog-header-icon') || primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(event.target.parentElement, 'p-dialog-header-icon')) {
  36094. return;
  36095. }
  36096. if (this.draggable) {
  36097. this.dragging = true;
  36098. this.lastPageX = event.pageX;
  36099. this.lastPageY = event.pageY;
  36100. this.container.style.margin = '0';
  36101. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.addClass(document.body, 'p-unselectable-text');
  36102. }
  36103. },
  36104. bindGlobalListeners() {
  36105. if (this.draggable) {
  36106. this.bindDocumentDragListener();
  36107. this.bindDocumentDragEndListener();
  36108. }
  36109. if (this.closeOnEscape && this.closable) {
  36110. this.bindDocumentKeyDownListener();
  36111. }
  36112. },
  36113. unbindGlobalListeners() {
  36114. this.unbindDocumentDragListener();
  36115. this.unbindDocumentDragEndListener();
  36116. this.unbindDocumentKeyDownListener();
  36117. },
  36118. bindDocumentDragListener() {
  36119. this.documentDragListener = (event) => {
  36120. if (this.dragging) {
  36121. let width = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterWidth(this.container);
  36122. let height = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterHeight(this.container);
  36123. let deltaX = event.pageX - this.lastPageX;
  36124. let deltaY = event.pageY - this.lastPageY;
  36125. let offset = this.container.getBoundingClientRect();
  36126. let leftPos = offset.left + deltaX;
  36127. let topPos = offset.top + deltaY;
  36128. let viewport = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getViewport();
  36129. this.container.style.position = 'fixed';
  36130. if (this.keepInViewport) {
  36131. if (leftPos >= this.minX && (leftPos + width) < viewport.width) {
  36132. this.lastPageX = event.pageX;
  36133. this.container.style.left = leftPos + 'px';
  36134. }
  36135. if (topPos >= this.minY && (topPos + height) < viewport.height) {
  36136. this.lastPageY = event.pageY;
  36137. this.container.style.top = topPos + 'px';
  36138. }
  36139. }
  36140. else {
  36141. this.lastPageX = event.pageX;
  36142. this.container.style.left = leftPos + 'px';
  36143. this.lastPageY = event.pageY;
  36144. this.container.style.top = topPos + 'px';
  36145. }
  36146. }
  36147. };
  36148. window.document.addEventListener('mousemove', this.documentDragListener);
  36149. },
  36150. unbindDocumentDragListener() {
  36151. if (this.documentDragListener) {
  36152. window.document.removeEventListener('mousemove', this.documentDragListener);
  36153. this.documentDragListener = null;
  36154. }
  36155. },
  36156. bindDocumentDragEndListener() {
  36157. this.documentDragEndListener = (event) => {
  36158. if (this.dragging) {
  36159. this.dragging = false;
  36160. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.removeClass(document.body, 'p-unselectable-text');
  36161. this.$emit('dragend', event);
  36162. }
  36163. };
  36164. window.document.addEventListener('mouseup', this.documentDragEndListener);
  36165. },
  36166. unbindDocumentDragEndListener() {
  36167. if (this.documentDragEndListener) {
  36168. window.document.removeEventListener('mouseup', this.documentDragEndListener);
  36169. this.documentDragEndListener = null;
  36170. }
  36171. }
  36172. },
  36173. computed: {
  36174. maskClass() {
  36175. return ['p-dialog-mask', {'p-component-overlay p-component-overlay-enter': this.modal}, this.getPositionClass()];
  36176. },
  36177. dialogClass() {
  36178. return ['p-dialog p-component', {
  36179. 'p-dialog-rtl': this.rtl,
  36180. 'p-dialog-maximized': this.maximizable && this.maximized,
  36181. 'p-input-filled': this.$primevue.config.inputStyle === 'filled',
  36182. 'p-ripple-disabled': this.$primevue.config.ripple === false
  36183. }];
  36184. },
  36185. maximizeIconClass() {
  36186. return ['p-dialog-header-maximize-icon pi', {
  36187. 'pi-window-maximize': !this.maximized,
  36188. 'pi-window-minimize': this.maximized
  36189. }];
  36190. },
  36191. ariaId() {
  36192. return (0,primevue_utils__WEBPACK_IMPORTED_MODULE_0__.UniqueComponentId)();
  36193. },
  36194. ariaLabelledById() {
  36195. return this.header != null ? this.ariaId + '_header' : null;
  36196. },
  36197. attributeSelector() {
  36198. return (0,primevue_utils__WEBPACK_IMPORTED_MODULE_0__.UniqueComponentId)();
  36199. },
  36200. contentStyleClass() {
  36201. return ['p-dialog-content', this.contentClass];
  36202. },
  36203. appendDisabled() {
  36204. return this.appendTo === 'self';
  36205. },
  36206. appendTarget() {
  36207. return this.appendDisabled ? null : this.appendTo;
  36208. }
  36209. },
  36210. directives: {
  36211. 'ripple': primevue_ripple__WEBPACK_IMPORTED_MODULE_1__["default"]
  36212. }
  36213. };
  36214. const _hoisted_1 = { class: "p-dialog-header-icons" };
  36215. const _hoisted_2 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_2__.createVNode)("span", { class: "p-dialog-header-close-icon pi pi-times" }, null, -1);
  36216. const _hoisted_3 = {
  36217. key: 1,
  36218. class: "p-dialog-footer"
  36219. };
  36220. function render(_ctx, _cache, $props, $setup, $data, $options) {
  36221. const _directive_ripple = (0,vue__WEBPACK_IMPORTED_MODULE_2__.resolveDirective)("ripple");
  36222. return ((0,vue__WEBPACK_IMPORTED_MODULE_2__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_2__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_2__.Teleport, {
  36223. to: $options.appendTarget,
  36224. disabled: $options.appendDisabled
  36225. }, [
  36226. ($data.containerVisible)
  36227. ? ((0,vue__WEBPACK_IMPORTED_MODULE_2__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_2__.createBlock)("div", {
  36228. key: 0,
  36229. ref: $options.maskRef,
  36230. class: $options.maskClass,
  36231. onClick: _cache[4] || (_cache[4] = (...args) => ($options.onMaskClick && $options.onMaskClick(...args)))
  36232. }, [
  36233. (0,vue__WEBPACK_IMPORTED_MODULE_2__.createVNode)(vue__WEBPACK_IMPORTED_MODULE_2__.Transition, {
  36234. name: "p-dialog",
  36235. onBeforeEnter: $options.onBeforeEnter,
  36236. onEnter: $options.onEnter,
  36237. onBeforeLeave: $options.onBeforeLeave,
  36238. onLeave: $options.onLeave,
  36239. onAfterLeave: $options.onAfterLeave,
  36240. appear: ""
  36241. }, {
  36242. default: (0,vue__WEBPACK_IMPORTED_MODULE_2__.withCtx)(() => [
  36243. ($props.visible)
  36244. ? ((0,vue__WEBPACK_IMPORTED_MODULE_2__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_2__.createBlock)("div", (0,vue__WEBPACK_IMPORTED_MODULE_2__.mergeProps)({
  36245. key: 0,
  36246. ref: $options.containerRef,
  36247. class: $options.dialogClass
  36248. }, _ctx.$attrs, {
  36249. role: "dialog",
  36250. "aria-labelledby": $options.ariaLabelledById,
  36251. "aria-modal": $props.modal
  36252. }), [
  36253. ($props.showHeader)
  36254. ? ((0,vue__WEBPACK_IMPORTED_MODULE_2__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_2__.createBlock)("div", {
  36255. key: 0,
  36256. class: "p-dialog-header",
  36257. onMousedown: _cache[3] || (_cache[3] = (...args) => ($options.initDrag && $options.initDrag(...args)))
  36258. }, [
  36259. (0,vue__WEBPACK_IMPORTED_MODULE_2__.renderSlot)(_ctx.$slots, "header", {}, () => [
  36260. ($props.header)
  36261. ? ((0,vue__WEBPACK_IMPORTED_MODULE_2__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_2__.createBlock)("span", {
  36262. key: 0,
  36263. id: $options.ariaLabelledById,
  36264. class: "p-dialog-title"
  36265. }, (0,vue__WEBPACK_IMPORTED_MODULE_2__.toDisplayString)($props.header), 9, ["id"]))
  36266. : (0,vue__WEBPACK_IMPORTED_MODULE_2__.createCommentVNode)("", true)
  36267. ]),
  36268. (0,vue__WEBPACK_IMPORTED_MODULE_2__.createVNode)("div", _hoisted_1, [
  36269. ($props.maximizable)
  36270. ? (0,vue__WEBPACK_IMPORTED_MODULE_2__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_2__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_2__.createBlock)("button", {
  36271. key: 0,
  36272. class: "p-dialog-header-icon p-dialog-header-maximize p-link",
  36273. onClick: _cache[1] || (_cache[1] = (...args) => ($options.maximize && $options.maximize(...args))),
  36274. type: "button",
  36275. tabindex: "-1"
  36276. }, [
  36277. (0,vue__WEBPACK_IMPORTED_MODULE_2__.createVNode)("span", { class: $options.maximizeIconClass }, null, 2)
  36278. ], 512)), [
  36279. [_directive_ripple]
  36280. ])
  36281. : (0,vue__WEBPACK_IMPORTED_MODULE_2__.createCommentVNode)("", true),
  36282. ($props.closable)
  36283. ? (0,vue__WEBPACK_IMPORTED_MODULE_2__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_2__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_2__.createBlock)("button", {
  36284. key: 1,
  36285. class: "p-dialog-header-icon p-dialog-header-close p-link",
  36286. onClick: _cache[2] || (_cache[2] = (...args) => ($options.close && $options.close(...args))),
  36287. "aria-label": $props.ariaCloseLabel,
  36288. type: "button"
  36289. }, [
  36290. _hoisted_2
  36291. ], 8, ["aria-label"])), [
  36292. [_directive_ripple]
  36293. ])
  36294. : (0,vue__WEBPACK_IMPORTED_MODULE_2__.createCommentVNode)("", true)
  36295. ])
  36296. ], 32))
  36297. : (0,vue__WEBPACK_IMPORTED_MODULE_2__.createCommentVNode)("", true),
  36298. (0,vue__WEBPACK_IMPORTED_MODULE_2__.createVNode)("div", {
  36299. class: $options.contentStyleClass,
  36300. style: $props.contentStyle
  36301. }, [
  36302. (0,vue__WEBPACK_IMPORTED_MODULE_2__.renderSlot)(_ctx.$slots, "default")
  36303. ], 6),
  36304. ($props.footer || _ctx.$slots.footer)
  36305. ? ((0,vue__WEBPACK_IMPORTED_MODULE_2__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_2__.createBlock)("div", _hoisted_3, [
  36306. (0,vue__WEBPACK_IMPORTED_MODULE_2__.renderSlot)(_ctx.$slots, "footer", {}, () => [
  36307. (0,vue__WEBPACK_IMPORTED_MODULE_2__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_2__.toDisplayString)($props.footer), 1)
  36308. ])
  36309. ]))
  36310. : (0,vue__WEBPACK_IMPORTED_MODULE_2__.createCommentVNode)("", true)
  36311. ], 16, ["aria-labelledby", "aria-modal"]))
  36312. : (0,vue__WEBPACK_IMPORTED_MODULE_2__.createCommentVNode)("", true)
  36313. ]),
  36314. _: 3
  36315. }, 8, ["onBeforeEnter", "onEnter", "onBeforeLeave", "onLeave", "onAfterLeave"])
  36316. ], 2))
  36317. : (0,vue__WEBPACK_IMPORTED_MODULE_2__.createCommentVNode)("", true)
  36318. ], 8, ["to", "disabled"]))
  36319. }
  36320. function styleInject(css, ref) {
  36321. if ( ref === void 0 ) ref = {};
  36322. var insertAt = ref.insertAt;
  36323. if (!css || typeof document === 'undefined') { return; }
  36324. var head = document.head || document.getElementsByTagName('head')[0];
  36325. var style = document.createElement('style');
  36326. style.type = 'text/css';
  36327. if (insertAt === 'top') {
  36328. if (head.firstChild) {
  36329. head.insertBefore(style, head.firstChild);
  36330. } else {
  36331. head.appendChild(style);
  36332. }
  36333. } else {
  36334. head.appendChild(style);
  36335. }
  36336. if (style.styleSheet) {
  36337. style.styleSheet.cssText = css;
  36338. } else {
  36339. style.appendChild(document.createTextNode(css));
  36340. }
  36341. }
  36342. var css_248z = "\n.p-dialog-mask {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n pointer-events: none;\n}\n.p-dialog-mask.p-component-overlay {\n pointer-events: auto;\n}\n.p-dialog {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n pointer-events: auto;\n max-height: 90%;\n -webkit-transform: scale(1);\n transform: scale(1);\n}\n.p-dialog-content {\n overflow-y: auto;\n}\n.p-dialog-header {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between;\n -ms-flex-negative: 0;\n flex-shrink: 0;\n}\n.p-dialog-footer {\n -ms-flex-negative: 0;\n flex-shrink: 0;\n}\n.p-dialog .p-dialog-header-icons {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n.p-dialog .p-dialog-header-icon {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n overflow: hidden;\n position: relative;\n}\n\n/* Fluid */\n.p-fluid .p-dialog-footer .p-button {\n width: auto;\n}\n\n/* Animation */\n/* Center */\n.p-dialog-enter-active {\n -webkit-transition: all 150ms cubic-bezier(0, 0, 0.2, 1);\n transition: all 150ms cubic-bezier(0, 0, 0.2, 1);\n}\n.p-dialog-leave-active {\n -webkit-transition: all 150ms cubic-bezier(0.4, 0.0, 0.2, 1);\n transition: all 150ms cubic-bezier(0.4, 0.0, 0.2, 1);\n}\n.p-dialog-enter-from,\n.p-dialog-leave-to {\n opacity: 0;\n -webkit-transform: scale(0.7);\n transform: scale(0.7);\n}\n\n/* Top, Bottom, Left, Right, Top* and Bottom* */\n.p-dialog-top .p-dialog,\n.p-dialog-bottom .p-dialog,\n.p-dialog-left .p-dialog,\n.p-dialog-right .p-dialog,\n.p-dialog-topleft .p-dialog,\n.p-dialog-topright .p-dialog,\n.p-dialog-bottomleft .p-dialog,\n.p-dialog-bottomright .p-dialog {\n margin: .75rem;\n -webkit-transform: translate3d(0px, 0px, 0px);\n transform: translate3d(0px, 0px, 0px);\n}\n.p-dialog-top .p-dialog-enter-active,\n.p-dialog-top .p-dialog-leave-active,\n.p-dialog-bottom .p-dialog-enter-active,\n.p-dialog-bottom .p-dialog-leave-active,\n.p-dialog-left .p-dialog-enter-active,\n.p-dialog-left .p-dialog-leave-active,\n.p-dialog-right .p-dialog-enter-active,\n.p-dialog-right .p-dialog-leave-active,\n.p-dialog-topleft .p-dialog-enter-active,\n.p-dialog-topleft .p-dialog-leave-active,\n.p-dialog-topright .p-dialog-enter-active,\n.p-dialog-topright .p-dialog-leave-active,\n.p-dialog-bottomleft .p-dialog-enter-active,\n.p-dialog-bottomleft .p-dialog-leave-active,\n.p-dialog-bottomright .p-dialog-enter-active,\n.p-dialog-bottomright .p-dialog-leave-active {\n -webkit-transition: all .3s ease-out;\n transition: all .3s ease-out;\n}\n.p-dialog-top .p-dialog-enter-from,\n.p-dialog-top .p-dialog-leave-to {\n -webkit-transform: translate3d(0px, -100%, 0px);\n transform: translate3d(0px, -100%, 0px);\n}\n.p-dialog-bottom .p-dialog-enter-from,\n.p-dialog-bottom .p-dialog-leave-to {\n -webkit-transform: translate3d(0px, 100%, 0px);\n transform: translate3d(0px, 100%, 0px);\n}\n.p-dialog-left .p-dialog-enter-from,\n.p-dialog-left .p-dialog-leave-to,\n.p-dialog-topleft .p-dialog-enter-from,\n.p-dialog-topleft .p-dialog-leave-to,\n.p-dialog-bottomleft .p-dialog-enter-from,\n.p-dialog-bottomleft .p-dialog-leave-to {\n -webkit-transform: translate3d(-100%, 0px, 0px);\n transform: translate3d(-100%, 0px, 0px);\n}\n.p-dialog-right .p-dialog-enter-from,\n.p-dialog-right .p-dialog-leave-to,\n.p-dialog-topright .p-dialog-enter-from,\n.p-dialog-topright .p-dialog-leave-to,\n.p-dialog-bottomright .p-dialog-enter-from,\n.p-dialog-bottomright .p-dialog-leave-to {\n -webkit-transform: translate3d(100%, 0px, 0px);\n transform: translate3d(100%, 0px, 0px);\n}\n\n/* Maximize */\n.p-dialog-maximized {\n -webkit-transition: none;\n transition: none;\n -webkit-transform: none;\n transform: none;\n width: 100vw !important;\n height: 100vh !important;\n top: 0px !important;\n left: 0px !important;\n max-height: 100%;\n height: 100%;\n}\n.p-dialog-maximized .p-dialog-content {\n -webkit-box-flex: 1;\n -ms-flex-positive: 1;\n flex-grow: 1;\n}\n\n/* Position */\n.p-dialog-left {\n -webkit-box-pack: start;\n -ms-flex-pack: start;\n justify-content: flex-start;\n}\n.p-dialog-right {\n -webkit-box-pack: end;\n -ms-flex-pack: end;\n justify-content: flex-end;\n}\n.p-dialog-top {\n -webkit-box-align: start;\n -ms-flex-align: start;\n align-items: flex-start;\n}\n.p-dialog-topleft {\n -webkit-box-pack: start;\n -ms-flex-pack: start;\n justify-content: flex-start;\n -webkit-box-align: start;\n -ms-flex-align: start;\n align-items: flex-start;\n}\n.p-dialog-topright {\n -webkit-box-pack: end;\n -ms-flex-pack: end;\n justify-content: flex-end;\n -webkit-box-align: start;\n -ms-flex-align: start;\n align-items: flex-start;\n}\n.p-dialog-bottom {\n -webkit-box-align: end;\n -ms-flex-align: end;\n align-items: flex-end;\n}\n.p-dialog-bottomleft {\n -webkit-box-pack: start;\n -ms-flex-pack: start;\n justify-content: flex-start;\n -webkit-box-align: end;\n -ms-flex-align: end;\n align-items: flex-end;\n}\n.p-dialog-bottomright {\n -webkit-box-pack: end;\n -ms-flex-pack: end;\n justify-content: flex-end;\n -webkit-box-align: end;\n -ms-flex-align: end;\n align-items: flex-end;\n}\n.p-confirm-dialog .p-dialog-content {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n";
  36343. styleInject(css_248z);
  36344. script.render = render;
  36345. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (script);
  36346. /***/ }),
  36347. /***/ "./node_modules/primevue/divider/divider.esm.js":
  36348. /*!******************************************************!*\
  36349. !*** ./node_modules/primevue/divider/divider.esm.js ***!
  36350. \******************************************************/
  36351. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  36352. "use strict";
  36353. __webpack_require__.r(__webpack_exports__);
  36354. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  36355. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  36356. /* harmony export */ });
  36357. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js");
  36358. var script = {
  36359. name: 'Divider',
  36360. props: {
  36361. align: {
  36362. type: String,
  36363. default: null
  36364. },
  36365. layout: {
  36366. type: String,
  36367. default: 'horizontal'
  36368. },
  36369. type: {
  36370. type: String,
  36371. default: 'solid'
  36372. }
  36373. },
  36374. computed: {
  36375. containerClass() {
  36376. return ['p-divider p-component', 'p-divider-' + this.layout, 'p-divider-' + this.type,
  36377. {'p-divider-left': this.layout === 'horizontal' && (!this.align || this.align === 'left')},
  36378. {'p-divider-center': this.layout === 'horizontal' && this.align === 'center'},
  36379. {'p-divider-right': this.layout === 'horizontal' && this.align === 'right'},
  36380. {'p-divider-top': this.layout === 'vertical' && (this.align === 'top')},
  36381. {'p-divider-center': this.layout === 'vertical' && (!this.align || this.align === 'center')},
  36382. {'p-divider-bottom': this.layout === 'vertical' && this.align === 'bottom'}
  36383. ];
  36384. }
  36385. }
  36386. };
  36387. const _hoisted_1 = {
  36388. key: 0,
  36389. class: "p-divider-content"
  36390. };
  36391. function render(_ctx, _cache, $props, $setup, $data, $options) {
  36392. return ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)("div", {
  36393. class: $options.containerClass,
  36394. role: "separator"
  36395. }, [
  36396. (_ctx.$slots.default)
  36397. ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)("div", _hoisted_1, [
  36398. (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "default")
  36399. ]))
  36400. : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true)
  36401. ], 2))
  36402. }
  36403. function styleInject(css, ref) {
  36404. if ( ref === void 0 ) ref = {};
  36405. var insertAt = ref.insertAt;
  36406. if (!css || typeof document === 'undefined') { return; }
  36407. var head = document.head || document.getElementsByTagName('head')[0];
  36408. var style = document.createElement('style');
  36409. style.type = 'text/css';
  36410. if (insertAt === 'top') {
  36411. if (head.firstChild) {
  36412. head.insertBefore(style, head.firstChild);
  36413. } else {
  36414. head.appendChild(style);
  36415. }
  36416. } else {
  36417. head.appendChild(style);
  36418. }
  36419. if (style.styleSheet) {
  36420. style.styleSheet.cssText = css;
  36421. } else {
  36422. style.appendChild(document.createTextNode(css));
  36423. }
  36424. }
  36425. var css_248z = "\n.p-divider-horizontal {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n width: 100%;\n position: relative;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n.p-divider-horizontal:before {\n position: absolute;\n display: block;\n top: 50%;\n left: 0;\n width: 100%;\n content: \"\";\n}\n.p-divider-horizontal.p-divider-left {\n -webkit-box-pack: start;\n -ms-flex-pack: start;\n justify-content: flex-start;\n}\n.p-divider-horizontal.p-divider-right {\n -webkit-box-pack: end;\n -ms-flex-pack: end;\n justify-content: flex-end;\n}\n.p-divider-horizontal.p-divider-center {\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n}\n.p-divider-content {\n z-index: 1;\n}\n.p-divider-vertical {\n min-height: 100%;\n margin: 0 1rem;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n position: relative;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n}\n.p-divider-vertical:before {\n position: absolute;\n display: block;\n top: 0;\n left: 50%;\n height: 100%;\n content: \"\";\n}\n.p-divider-vertical.p-divider-top {\n -webkit-box-align: start;\n -ms-flex-align: start;\n align-items: flex-start;\n}\n.p-divider-vertical.p-divider-center {\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n.p-divider-vertical.p-divider-bottom {\n -webkit-box-align: end;\n -ms-flex-align: end;\n align-items: flex-end;\n}\n.p-divider-solid.p-divider-horizontal:before {\n border-top-style: solid;\n}\n.p-divider-solid.p-divider-vertical:before {\n border-left-style: solid;\n}\n.p-divider-dashed.p-divider-horizontal:before {\n border-top-style: dashed;\n}\n.p-divider-dashed.p-divider-vertical:before {\n border-left-style: dashed;\n}\n.p-divider-dotted.p-divider-horizontal:before {\n border-top-style: dotted;\n}\n.p-divider-dotted.p-divider-horizontal:before {\n border-left-style: dotted;\n}\n";
  36426. styleInject(css_248z);
  36427. script.render = render;
  36428. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (script);
  36429. /***/ }),
  36430. /***/ "./node_modules/primevue/dropdown/dropdown.esm.js":
  36431. /*!********************************************************!*\
  36432. !*** ./node_modules/primevue/dropdown/dropdown.esm.js ***!
  36433. \********************************************************/
  36434. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  36435. "use strict";
  36436. __webpack_require__.r(__webpack_exports__);
  36437. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  36438. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  36439. /* harmony export */ });
  36440. /* harmony import */ var primevue_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! primevue/utils */ "./node_modules/primevue/utils/utils.esm.js");
  36441. /* harmony import */ var primevue_overlayeventbus__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! primevue/overlayeventbus */ "./node_modules/primevue/overlayeventbus/overlayeventbus.esm.js");
  36442. /* harmony import */ var primevue_api__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! primevue/api */ "./node_modules/primevue/api/api.esm.js");
  36443. /* harmony import */ var primevue_ripple__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! primevue/ripple */ "./node_modules/primevue/ripple/ripple.esm.js");
  36444. /* harmony import */ var primevue_virtualscroller__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! primevue/virtualscroller */ "./node_modules/primevue/virtualscroller/virtualscroller.esm.js");
  36445. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js");
  36446. var script = {
  36447. name: 'Dropdown',
  36448. emits: ['update:modelValue', 'before-show', 'before-hide', 'show', 'hide', 'change', 'filter', 'focus', 'blur'],
  36449. props: {
  36450. modelValue: null,
  36451. options: Array,
  36452. optionLabel: null,
  36453. optionValue: null,
  36454. optionDisabled: null,
  36455. optionGroupLabel: null,
  36456. optionGroupChildren: null,
  36457. scrollHeight: {
  36458. type: String,
  36459. default: '200px'
  36460. },
  36461. filter: Boolean,
  36462. filterPlaceholder: String,
  36463. filterLocale: String,
  36464. filterMatchMode: {
  36465. type: String,
  36466. default: 'contains'
  36467. },
  36468. filterFields: {
  36469. type: Array,
  36470. default: null
  36471. },
  36472. editable: Boolean,
  36473. placeholder: String,
  36474. disabled: Boolean,
  36475. dataKey: null,
  36476. showClear: Boolean,
  36477. inputId: String,
  36478. tabindex: String,
  36479. ariaLabelledBy: null,
  36480. appendTo: {
  36481. type: String,
  36482. default: 'body'
  36483. },
  36484. emptyFilterMessage: {
  36485. type: String,
  36486. default: null
  36487. },
  36488. emptyMessage: {
  36489. type: String,
  36490. default: null
  36491. },
  36492. panelClass: null,
  36493. loading: {
  36494. type: Boolean,
  36495. default: false
  36496. },
  36497. loadingIcon: {
  36498. type: String,
  36499. default: 'pi pi-spinner pi-spin'
  36500. },
  36501. virtualScrollerOptions: {
  36502. type: Object,
  36503. default: null
  36504. }
  36505. },
  36506. data() {
  36507. return {
  36508. focused: false,
  36509. filterValue: null,
  36510. overlayVisible: false
  36511. };
  36512. },
  36513. watch: {
  36514. modelValue() {
  36515. this.isModelValueChanged = true;
  36516. }
  36517. },
  36518. outsideClickListener: null,
  36519. scrollHandler: null,
  36520. resizeListener: null,
  36521. searchTimeout: null,
  36522. currentSearchChar: null,
  36523. previousSearchChar: null,
  36524. searchValue: null,
  36525. overlay: null,
  36526. itemsWrapper: null,
  36527. virtualScroller: null,
  36528. isModelValueChanged: false,
  36529. updated() {
  36530. if (this.overlayVisible && this.isModelValueChanged) {
  36531. this.scrollValueInView();
  36532. }
  36533. this.isModelValueChanged = false;
  36534. },
  36535. beforeUnmount() {
  36536. this.unbindOutsideClickListener();
  36537. this.unbindResizeListener();
  36538. if (this.scrollHandler) {
  36539. this.scrollHandler.destroy();
  36540. this.scrollHandler = null;
  36541. }
  36542. this.itemsWrapper = null;
  36543. if (this.overlay) {
  36544. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ZIndexUtils.clear(this.overlay);
  36545. this.overlay = null;
  36546. }
  36547. },
  36548. methods: {
  36549. getOptionIndex(index, fn) {
  36550. return this.virtualScrollerDisabled ? index : (fn && fn(index)['index']);
  36551. },
  36552. getOptionLabel(option) {
  36553. return this.optionLabel ? primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(option, this.optionLabel) : option;
  36554. },
  36555. getOptionValue(option) {
  36556. return this.optionValue ? primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(option, this.optionValue) : option;
  36557. },
  36558. getOptionRenderKey(option) {
  36559. return this.dataKey ? primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(option, this.dataKey) : this.getOptionLabel(option);
  36560. },
  36561. isOptionDisabled(option) {
  36562. return this.optionDisabled ? primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(option, this.optionDisabled) : false;
  36563. },
  36564. getOptionGroupRenderKey(optionGroup) {
  36565. return primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(optionGroup, this.optionGroupLabel);
  36566. },
  36567. getOptionGroupLabel(optionGroup) {
  36568. return primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(optionGroup, this.optionGroupLabel);
  36569. },
  36570. getOptionGroupChildren(optionGroup) {
  36571. return primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.resolveFieldData(optionGroup, this.optionGroupChildren);
  36572. },
  36573. getSelectedOption() {
  36574. let index = this.getSelectedOptionIndex();
  36575. return index !== -1 ? (this.optionGroupLabel ? this.getOptionGroupChildren(this.visibleOptions[index.group])[index.option]: this.visibleOptions[index]) : null;
  36576. },
  36577. getSelectedOptionIndex() {
  36578. if (this.modelValue != null && this.visibleOptions) {
  36579. if (this.optionGroupLabel) {
  36580. for (let i = 0; i < this.visibleOptions.length; i++) {
  36581. let selectedOptionIndex = this.findOptionIndexInList(this.modelValue, this.getOptionGroupChildren(this.visibleOptions[i]));
  36582. if (selectedOptionIndex !== -1) {
  36583. return {group: i, option: selectedOptionIndex};
  36584. }
  36585. }
  36586. }
  36587. else {
  36588. return this.findOptionIndexInList(this.modelValue, this.visibleOptions);
  36589. }
  36590. }
  36591. return -1;
  36592. },
  36593. findOptionIndexInList(value, list) {
  36594. for (let i = 0; i < list.length; i++) {
  36595. if ((primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.equals(value, this.getOptionValue(list[i]), this.equalityKey))) {
  36596. return i;
  36597. }
  36598. }
  36599. return -1;
  36600. },
  36601. isSelected(option) {
  36602. return primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ObjectUtils.equals(this.modelValue, this.getOptionValue(option), this.equalityKey);
  36603. },
  36604. show() {
  36605. this.$emit('before-show');
  36606. this.overlayVisible = true;
  36607. },
  36608. hide() {
  36609. this.$emit('before-hide');
  36610. this.overlayVisible = false;
  36611. },
  36612. onFocus(event) {
  36613. this.focused = true;
  36614. this.$emit('focus', event);
  36615. },
  36616. onBlur(event) {
  36617. this.focused = false;
  36618. this.$emit('blur', event);
  36619. },
  36620. onKeyDown(event) {
  36621. switch(event.which) {
  36622. //down
  36623. case 40:
  36624. this.onDownKey(event);
  36625. break;
  36626. //up
  36627. case 38:
  36628. this.onUpKey(event);
  36629. break;
  36630. //space
  36631. case 32:
  36632. if (!this.overlayVisible) {
  36633. this.show();
  36634. event.preventDefault();
  36635. }
  36636. break;
  36637. //enter and escape
  36638. case 13:
  36639. case 27:
  36640. if (this.overlayVisible) {
  36641. this.hide();
  36642. event.preventDefault();
  36643. }
  36644. break;
  36645. //tab
  36646. case 9:
  36647. this.hide();
  36648. break;
  36649. default:
  36650. this.search(event);
  36651. break;
  36652. }
  36653. },
  36654. onFilterKeyDown(event) {
  36655. switch (event.which) {
  36656. //down
  36657. case 40:
  36658. this.onDownKey(event);
  36659. break;
  36660. //up
  36661. case 38:
  36662. this.onUpKey(event);
  36663. break;
  36664. //enter and escape
  36665. case 13:
  36666. case 27:
  36667. this.overlayVisible = false;
  36668. event.preventDefault();
  36669. break;
  36670. }
  36671. },
  36672. onDownKey(event) {
  36673. if (this.visibleOptions) {
  36674. if (!this.overlayVisible && event.altKey) {
  36675. this.show();
  36676. }
  36677. else {
  36678. let nextOption = this.visibleOptions && this.visibleOptions.length > 0 ? this.findNextOption(this.getSelectedOptionIndex()) : null;
  36679. if (nextOption) {
  36680. this.updateModel(event, this.getOptionValue(nextOption));
  36681. }
  36682. }
  36683. }
  36684. event.preventDefault();
  36685. },
  36686. onUpKey(event) {
  36687. if (this.visibleOptions) {
  36688. let prevOption = this.findPrevOption(this.getSelectedOptionIndex());
  36689. if (prevOption) {
  36690. this.updateModel(event, this.getOptionValue(prevOption));
  36691. }
  36692. }
  36693. event.preventDefault();
  36694. },
  36695. findNextOption(index) {
  36696. if (this.optionGroupLabel) {
  36697. let groupIndex = index === -1 ? 0 : index.group;
  36698. let optionIndex = index === -1 ? -1 : index.option;
  36699. let option = this.findNextOptionInList(this.getOptionGroupChildren(this.visibleOptions[groupIndex]), optionIndex);
  36700. if (option)
  36701. return option;
  36702. else if ((groupIndex + 1) !== this.visibleOptions.length)
  36703. return this.findNextOption({group: (groupIndex + 1), option: -1});
  36704. else
  36705. return null;
  36706. }
  36707. else {
  36708. return this.findNextOptionInList(this.visibleOptions, index);
  36709. }
  36710. },
  36711. findNextOptionInList(list, index) {
  36712. let i = index + 1;
  36713. if (i === list.length) {
  36714. return null;
  36715. }
  36716. let option = list[i];
  36717. if (this.isOptionDisabled(option))
  36718. return this.findNextOptionInList(i);
  36719. else
  36720. return option;
  36721. },
  36722. findPrevOption(index) {
  36723. if (index === -1) {
  36724. return null;
  36725. }
  36726. if (this.optionGroupLabel) {
  36727. let groupIndex = index.group;
  36728. let optionIndex = index.option;
  36729. let option = this.findPrevOptionInList(this.getOptionGroupChildren(this.visibleOptions[groupIndex]), optionIndex);
  36730. if (option)
  36731. return option;
  36732. else if (groupIndex > 0)
  36733. return this.findPrevOption({group: (groupIndex - 1), option: this.getOptionGroupChildren(this.visibleOptions[groupIndex - 1]).length});
  36734. else
  36735. return null;
  36736. }
  36737. else {
  36738. return this.findPrevOptionInList(this.visibleOptions, index);
  36739. }
  36740. },
  36741. findPrevOptionInList(list, index) {
  36742. let i = index - 1;
  36743. if (i < 0) {
  36744. return null;
  36745. }
  36746. let option = list[i];
  36747. if (this.isOptionDisabled(option))
  36748. return this.findPrevOption(i);
  36749. else
  36750. return option;
  36751. },
  36752. onClearClick(event) {
  36753. this.updateModel(event, null);
  36754. },
  36755. onClick(event) {
  36756. if (this.disabled || this.loading) {
  36757. return;
  36758. }
  36759. if (primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(event.target, 'p-dropdown-clear-icon') || event.target.tagName === 'INPUT') {
  36760. return;
  36761. }
  36762. else if (!this.overlay || !this.overlay.contains(event.target)) {
  36763. if (this.overlayVisible)
  36764. this.hide();
  36765. else
  36766. this.show();
  36767. this.$refs.focusInput.focus();
  36768. }
  36769. },
  36770. onOptionSelect(event, option) {
  36771. let value = this.getOptionValue(option);
  36772. this.updateModel(event, value);
  36773. this.$refs.focusInput.focus();
  36774. setTimeout(() => {
  36775. this.hide();
  36776. }, 200);
  36777. },
  36778. onEditableInput(event) {
  36779. this.$emit('update:modelValue', event.target.value);
  36780. },
  36781. onOverlayEnter(el) {
  36782. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ZIndexUtils.set('overlay', el, this.$primevue.config.zIndex.overlay);
  36783. this.alignOverlay();
  36784. this.scrollValueInView();
  36785. if (!this.virtualScrollerDisabled) {
  36786. const selectedIndex = this.getSelectedOptionIndex();
  36787. if (selectedIndex !== -1) {
  36788. setTimeout(() => {
  36789. this.virtualScroller && this.virtualScroller.scrollToIndex(selectedIndex);
  36790. }, 0);
  36791. }
  36792. }
  36793. },
  36794. onOverlayAfterEnter() {
  36795. if (this.filter) {
  36796. this.$refs.filterInput.focus();
  36797. }
  36798. this.bindOutsideClickListener();
  36799. this.bindScrollListener();
  36800. this.bindResizeListener();
  36801. this.$emit('show');
  36802. },
  36803. onOverlayLeave() {
  36804. this.unbindOutsideClickListener();
  36805. this.unbindScrollListener();
  36806. this.unbindResizeListener();
  36807. this.$emit('hide');
  36808. this.itemsWrapper = null;
  36809. this.overlay = null;
  36810. },
  36811. onOverlayAfterLeave(el) {
  36812. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ZIndexUtils.clear(el);
  36813. },
  36814. alignOverlay() {
  36815. if (this.appendDisabled) {
  36816. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.relativePosition(this.overlay, this.$el);
  36817. }
  36818. else {
  36819. this.overlay.style.minWidth = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterWidth(this.$el) + 'px';
  36820. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.absolutePosition(this.overlay, this.$el);
  36821. }
  36822. },
  36823. updateModel(event, value) {
  36824. this.$emit('update:modelValue', value);
  36825. this.$emit('change', {originalEvent: event, value: value});
  36826. },
  36827. bindOutsideClickListener() {
  36828. if (!this.outsideClickListener) {
  36829. this.outsideClickListener = (event) => {
  36830. if (this.overlayVisible && this.overlay && !this.$el.contains(event.target) && !this.overlay.contains(event.target)) {
  36831. this.hide();
  36832. }
  36833. };
  36834. document.addEventListener('click', this.outsideClickListener);
  36835. }
  36836. },
  36837. unbindOutsideClickListener() {
  36838. if (this.outsideClickListener) {
  36839. document.removeEventListener('click', this.outsideClickListener);
  36840. this.outsideClickListener = null;
  36841. }
  36842. },
  36843. bindScrollListener() {
  36844. if (!this.scrollHandler) {
  36845. this.scrollHandler = new primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ConnectedOverlayScrollHandler(this.$refs.container, () => {
  36846. if (this.overlayVisible) {
  36847. this.hide();
  36848. }
  36849. });
  36850. }
  36851. this.scrollHandler.bindScrollListener();
  36852. },
  36853. unbindScrollListener() {
  36854. if (this.scrollHandler) {
  36855. this.scrollHandler.unbindScrollListener();
  36856. }
  36857. },
  36858. bindResizeListener() {
  36859. if (!this.resizeListener) {
  36860. this.resizeListener = () => {
  36861. if (this.overlayVisible && !primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.isTouchDevice()) {
  36862. this.hide();
  36863. }
  36864. };
  36865. window.addEventListener('resize', this.resizeListener);
  36866. }
  36867. },
  36868. unbindResizeListener() {
  36869. if (this.resizeListener) {
  36870. window.removeEventListener('resize', this.resizeListener);
  36871. this.resizeListener = null;
  36872. }
  36873. },
  36874. search(event) {
  36875. if (!this.visibleOptions) {
  36876. return;
  36877. }
  36878. if (this.searchTimeout) {
  36879. clearTimeout(this.searchTimeout);
  36880. }
  36881. const char = event.key;
  36882. this.previousSearchChar = this.currentSearchChar;
  36883. this.currentSearchChar = char;
  36884. if (this.previousSearchChar === this.currentSearchChar)
  36885. this.searchValue = this.currentSearchChar;
  36886. else
  36887. this.searchValue = this.searchValue ? this.searchValue + char : char;
  36888. if (this.searchValue) {
  36889. let searchIndex = this.getSelectedOptionIndex();
  36890. let newOption = this.optionGroupLabel ? this.searchOptionInGroup(searchIndex) : this.searchOption(++searchIndex);
  36891. if (newOption) {
  36892. this.updateModel(event, this.getOptionValue(newOption));
  36893. }
  36894. }
  36895. this.searchTimeout = setTimeout(() => {
  36896. this.searchValue = null;
  36897. }, 250);
  36898. },
  36899. searchOption(index) {
  36900. let option;
  36901. if (this.searchValue) {
  36902. option = this.searchOptionInRange(index, this.visibleOptions.length);
  36903. if (!option) {
  36904. option = this.searchOptionInRange(0, index);
  36905. }
  36906. }
  36907. return option;
  36908. },
  36909. searchOptionInRange(start, end) {
  36910. for (let i = start; i < end; i++) {
  36911. let opt = this.visibleOptions[i];
  36912. if (this.matchesSearchValue(opt)) {
  36913. return opt;
  36914. }
  36915. }
  36916. return null;
  36917. },
  36918. searchOptionInGroup(index) {
  36919. let searchIndex = index === -1 ? {group: 0, option: -1} : index;
  36920. for (let i = searchIndex.group; i < this.visibleOptions.length; i++) {
  36921. let groupOptions = this.getOptionGroupChildren(this.visibleOptions[i]);
  36922. for (let j = (searchIndex.group === i ? searchIndex.option + 1 : 0); j < groupOptions.length; j++) {
  36923. if (this.matchesSearchValue(groupOptions[j])) {
  36924. return groupOptions[j];
  36925. }
  36926. }
  36927. }
  36928. for (let i = 0; i <= searchIndex.group; i++) {
  36929. let groupOptions = this.getOptionGroupChildren(this.visibleOptions[i]);
  36930. for (let j = 0; j < (searchIndex.group === i ? searchIndex.option: groupOptions.length); j++) {
  36931. if (this.matchesSearchValue(groupOptions[j])) {
  36932. return groupOptions[j];
  36933. }
  36934. }
  36935. }
  36936. return null;
  36937. },
  36938. matchesSearchValue(option) {
  36939. let label = this.getOptionLabel(option).toLocaleLowerCase(this.filterLocale);
  36940. return label.startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale));
  36941. },
  36942. onFilterChange(event) {
  36943. this.filterValue = event.target.value;
  36944. this.$emit('filter', {originalEvent: event, value: event.target.value});
  36945. },
  36946. onFilterUpdated() {
  36947. if (this.overlayVisible) {
  36948. this.alignOverlay();
  36949. }
  36950. },
  36951. overlayRef(el) {
  36952. this.overlay = el;
  36953. },
  36954. itemsWrapperRef(el) {
  36955. this.itemsWrapper = el;
  36956. },
  36957. virtualScrollerRef(el) {
  36958. this.virtualScroller = el;
  36959. },
  36960. scrollValueInView() {
  36961. if (this.overlay) {
  36962. let selectedItem = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.findSingle(this.overlay, 'li.p-highlight');
  36963. if (selectedItem) {
  36964. selectedItem.scrollIntoView({ block: 'nearest', inline: 'start' });
  36965. }
  36966. }
  36967. },
  36968. onOverlayClick(event) {
  36969. primevue_overlayeventbus__WEBPACK_IMPORTED_MODULE_1__["default"].emit('overlay-click', {
  36970. originalEvent: event,
  36971. target: this.$el
  36972. });
  36973. }
  36974. },
  36975. computed: {
  36976. visibleOptions() {
  36977. if (this.filterValue) {
  36978. if (this.optionGroupLabel) {
  36979. let filteredGroups = [];
  36980. for (let optgroup of this.options) {
  36981. let filteredSubOptions = primevue_api__WEBPACK_IMPORTED_MODULE_2__.FilterService.filter(this.getOptionGroupChildren(optgroup), this.searchFields, this.filterValue, this.filterMatchMode, this.filterLocale);
  36982. if (filteredSubOptions && filteredSubOptions.length) {
  36983. let filteredGroup = {...optgroup};
  36984. filteredGroup[this.optionGroupChildren] = filteredSubOptions;
  36985. filteredGroups.push(filteredGroup);
  36986. }
  36987. }
  36988. return filteredGroups
  36989. }
  36990. else {
  36991. return primevue_api__WEBPACK_IMPORTED_MODULE_2__.FilterService.filter(this.options, this.searchFields, this.filterValue, this.filterMatchMode, this.filterLocale);
  36992. }
  36993. }
  36994. else {
  36995. return this.options;
  36996. }
  36997. },
  36998. containerClass() {
  36999. return [
  37000. 'p-dropdown p-component p-inputwrapper',
  37001. {
  37002. 'p-disabled': this.disabled,
  37003. 'p-dropdown-clearable': this.showClear && !this.disabled,
  37004. 'p-focus': this.focused,
  37005. 'p-inputwrapper-filled': this.modelValue,
  37006. 'p-inputwrapper-focus': this.focused || this.overlayVisible
  37007. }
  37008. ];
  37009. },
  37010. labelClass() {
  37011. return [
  37012. 'p-dropdown-label p-inputtext',
  37013. {
  37014. 'p-placeholder': this.label === this.placeholder,
  37015. 'p-dropdown-label-empty': !this.$slots['value'] && (this.label === 'p-emptylabel' || this.label.length === 0)
  37016. }
  37017. ];
  37018. },
  37019. panelStyleClass() {
  37020. return ['p-dropdown-panel p-component', this.panelClass, {
  37021. 'p-input-filled': this.$primevue.config.inputStyle === 'filled',
  37022. 'p-ripple-disabled': this.$primevue.config.ripple === false
  37023. }];
  37024. },
  37025. label() {
  37026. let selectedOption = this.getSelectedOption();
  37027. if (selectedOption !== null)
  37028. return this.getOptionLabel(selectedOption);
  37029. else
  37030. return this.placeholder||'p-emptylabel';
  37031. },
  37032. editableInputValue() {
  37033. let selectedOption = this.getSelectedOption();
  37034. if (selectedOption)
  37035. return this.getOptionLabel(selectedOption);
  37036. else
  37037. return this.modelValue;
  37038. },
  37039. equalityKey() {
  37040. return this.optionValue ? null : this.dataKey;
  37041. },
  37042. searchFields() {
  37043. return this.filterFields || [this.optionLabel];
  37044. },
  37045. emptyFilterMessageText() {
  37046. return this.emptyFilterMessage || this.$primevue.config.locale.emptyFilterMessage;
  37047. },
  37048. emptyMessageText() {
  37049. return this.emptyMessage || this.$primevue.config.locale.emptyMessage;
  37050. },
  37051. appendDisabled() {
  37052. return this.appendTo === 'self';
  37053. },
  37054. virtualScrollerDisabled() {
  37055. return !this.virtualScrollerOptions;
  37056. },
  37057. appendTarget() {
  37058. return this.appendDisabled ? null : this.appendTo;
  37059. },
  37060. dropdownIconClass() {
  37061. return ['p-dropdown-trigger-icon', this.loading ? this.loadingIcon : 'pi pi-chevron-down'];
  37062. }
  37063. },
  37064. directives: {
  37065. 'ripple': primevue_ripple__WEBPACK_IMPORTED_MODULE_3__["default"]
  37066. },
  37067. components: {
  37068. 'VirtualScroller': primevue_virtualscroller__WEBPACK_IMPORTED_MODULE_4__["default"]
  37069. }
  37070. };
  37071. const _hoisted_1 = { class: "p-hidden-accessible" };
  37072. const _hoisted_2 = {
  37073. key: 0,
  37074. class: "p-dropdown-header"
  37075. };
  37076. const _hoisted_3 = { class: "p-dropdown-filter-container" };
  37077. const _hoisted_4 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_5__.createVNode)("span", { class: "p-dropdown-filter-icon pi pi-search" }, null, -1);
  37078. const _hoisted_5 = { class: "p-dropdown-item-group" };
  37079. const _hoisted_6 = {
  37080. key: 2,
  37081. class: "p-dropdown-empty-message"
  37082. };
  37083. const _hoisted_7 = {
  37084. key: 3,
  37085. class: "p-dropdown-empty-message"
  37086. };
  37087. function render(_ctx, _cache, $props, $setup, $data, $options) {
  37088. const _component_VirtualScroller = (0,vue__WEBPACK_IMPORTED_MODULE_5__.resolveComponent)("VirtualScroller");
  37089. const _directive_ripple = (0,vue__WEBPACK_IMPORTED_MODULE_5__.resolveDirective)("ripple");
  37090. return ((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createBlock)("div", {
  37091. ref: "container",
  37092. class: $options.containerClass,
  37093. onClick: _cache[12] || (_cache[12] = $event => ($options.onClick($event)))
  37094. }, [
  37095. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createVNode)("div", _hoisted_1, [
  37096. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createVNode)("input", {
  37097. ref: "focusInput",
  37098. type: "text",
  37099. id: $props.inputId,
  37100. readonly: "",
  37101. disabled: $props.disabled,
  37102. onFocus: _cache[1] || (_cache[1] = (...args) => ($options.onFocus && $options.onFocus(...args))),
  37103. onBlur: _cache[2] || (_cache[2] = (...args) => ($options.onBlur && $options.onBlur(...args))),
  37104. onKeydown: _cache[3] || (_cache[3] = (...args) => ($options.onKeyDown && $options.onKeyDown(...args))),
  37105. tabindex: $props.tabindex,
  37106. "aria-haspopup": "true",
  37107. "aria-expanded": $data.overlayVisible,
  37108. "aria-labelledby": $props.ariaLabelledBy
  37109. }, null, 40, ["id", "disabled", "tabindex", "aria-expanded", "aria-labelledby"])
  37110. ]),
  37111. ($props.editable)
  37112. ? ((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createBlock)("input", {
  37113. key: 0,
  37114. type: "text",
  37115. class: "p-dropdown-label p-inputtext",
  37116. disabled: $props.disabled,
  37117. onFocus: _cache[4] || (_cache[4] = (...args) => ($options.onFocus && $options.onFocus(...args))),
  37118. onBlur: _cache[5] || (_cache[5] = (...args) => ($options.onBlur && $options.onBlur(...args))),
  37119. placeholder: $props.placeholder,
  37120. value: $options.editableInputValue,
  37121. onInput: _cache[6] || (_cache[6] = (...args) => ($options.onEditableInput && $options.onEditableInput(...args))),
  37122. "aria-haspopup": "listbox",
  37123. "aria-expanded": $data.overlayVisible
  37124. }, null, 40, ["disabled", "placeholder", "value", "aria-expanded"]))
  37125. : (0,vue__WEBPACK_IMPORTED_MODULE_5__.createCommentVNode)("", true),
  37126. (!$props.editable)
  37127. ? ((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createBlock)("span", {
  37128. key: 1,
  37129. class: $options.labelClass
  37130. }, [
  37131. (0,vue__WEBPACK_IMPORTED_MODULE_5__.renderSlot)(_ctx.$slots, "value", {
  37132. value: $props.modelValue,
  37133. placeholder: $props.placeholder
  37134. }, () => [
  37135. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_5__.toDisplayString)($options.label||'empty'), 1)
  37136. ])
  37137. ], 2))
  37138. : (0,vue__WEBPACK_IMPORTED_MODULE_5__.createCommentVNode)("", true),
  37139. ($props.showClear && $props.modelValue != null)
  37140. ? ((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createBlock)("i", {
  37141. key: 2,
  37142. class: "p-dropdown-clear-icon pi pi-times",
  37143. onClick: _cache[7] || (_cache[7] = $event => ($options.onClearClick($event)))
  37144. }))
  37145. : (0,vue__WEBPACK_IMPORTED_MODULE_5__.createCommentVNode)("", true),
  37146. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createVNode)("div", {
  37147. class: "p-dropdown-trigger",
  37148. role: "button",
  37149. "aria-haspopup": "listbox",
  37150. "aria-expanded": $data.overlayVisible
  37151. }, [
  37152. (0,vue__WEBPACK_IMPORTED_MODULE_5__.renderSlot)(_ctx.$slots, "indicator", {}, () => [
  37153. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createVNode)("span", { class: $options.dropdownIconClass }, null, 2)
  37154. ])
  37155. ], 8, ["aria-expanded"]),
  37156. ((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_5__.Teleport, {
  37157. to: $options.appendTarget,
  37158. disabled: $options.appendDisabled
  37159. }, [
  37160. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createVNode)(vue__WEBPACK_IMPORTED_MODULE_5__.Transition, {
  37161. name: "p-connected-overlay",
  37162. onEnter: $options.onOverlayEnter,
  37163. onAfterEnter: $options.onOverlayAfterEnter,
  37164. onLeave: $options.onOverlayLeave,
  37165. onAfterLeave: $options.onOverlayAfterLeave
  37166. }, {
  37167. default: (0,vue__WEBPACK_IMPORTED_MODULE_5__.withCtx)(() => [
  37168. ($data.overlayVisible)
  37169. ? ((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createBlock)("div", {
  37170. key: 0,
  37171. ref: $options.overlayRef,
  37172. class: $options.panelStyleClass,
  37173. onClick: _cache[11] || (_cache[11] = (...args) => ($options.onOverlayClick && $options.onOverlayClick(...args)))
  37174. }, [
  37175. (0,vue__WEBPACK_IMPORTED_MODULE_5__.renderSlot)(_ctx.$slots, "header", {
  37176. value: $props.modelValue,
  37177. options: $options.visibleOptions
  37178. }),
  37179. ($props.filter)
  37180. ? ((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createBlock)("div", _hoisted_2, [
  37181. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createVNode)("div", _hoisted_3, [
  37182. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createVNode)("input", {
  37183. type: "text",
  37184. ref: "filterInput",
  37185. value: $data.filterValue,
  37186. onVnodeUpdated: _cache[8] || (_cache[8] = (...args) => ($options.onFilterUpdated && $options.onFilterUpdated(...args))),
  37187. autoComplete: "off",
  37188. class: "p-dropdown-filter p-inputtext p-component",
  37189. placeholder: $props.filterPlaceholder,
  37190. onKeydown: _cache[9] || (_cache[9] = (...args) => ($options.onFilterKeyDown && $options.onFilterKeyDown(...args))),
  37191. onInput: _cache[10] || (_cache[10] = (...args) => ($options.onFilterChange && $options.onFilterChange(...args)))
  37192. }, null, 40, ["value", "placeholder"]),
  37193. _hoisted_4
  37194. ])
  37195. ]))
  37196. : (0,vue__WEBPACK_IMPORTED_MODULE_5__.createCommentVNode)("", true),
  37197. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createVNode)("div", {
  37198. ref: $options.itemsWrapperRef,
  37199. class: "p-dropdown-items-wrapper",
  37200. style: {'max-height': $options.virtualScrollerDisabled ? $props.scrollHeight : ''}
  37201. }, [
  37202. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createVNode)(_component_VirtualScroller, (0,vue__WEBPACK_IMPORTED_MODULE_5__.mergeProps)({ ref: $options.virtualScrollerRef }, $props.virtualScrollerOptions, {
  37203. items: $options.visibleOptions,
  37204. style: {'height': $props.scrollHeight},
  37205. disabled: $options.virtualScrollerDisabled
  37206. }), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createSlots)({
  37207. content: (0,vue__WEBPACK_IMPORTED_MODULE_5__.withCtx)(({ styleClass, contentRef, items, getItemOptions, contentStyle }) => [
  37208. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createVNode)("ul", {
  37209. ref: contentRef,
  37210. class: ['p-dropdown-items', styleClass],
  37211. style: contentStyle,
  37212. role: "listbox"
  37213. }, [
  37214. (!$props.optionGroupLabel)
  37215. ? ((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_5__.Fragment, { key: 0 }, (0,vue__WEBPACK_IMPORTED_MODULE_5__.renderList)(items, (option, i) => {
  37216. return (0,vue__WEBPACK_IMPORTED_MODULE_5__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createBlock)("li", {
  37217. class: ['p-dropdown-item', {'p-highlight': $options.isSelected(option), 'p-disabled': $options.isOptionDisabled(option)}],
  37218. key: $options.getOptionRenderKey(option),
  37219. onClick: $event => ($options.onOptionSelect($event, option)),
  37220. role: "option",
  37221. "aria-label": $options.getOptionLabel(option),
  37222. "aria-selected": $options.isSelected(option)
  37223. }, [
  37224. (0,vue__WEBPACK_IMPORTED_MODULE_5__.renderSlot)(_ctx.$slots, "option", {
  37225. option: option,
  37226. index: $options.getOptionIndex(i, getItemOptions)
  37227. }, () => [
  37228. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_5__.toDisplayString)($options.getOptionLabel(option)), 1)
  37229. ])
  37230. ], 10, ["onClick", "aria-label", "aria-selected"])), [
  37231. [_directive_ripple]
  37232. ])
  37233. }), 128))
  37234. : ((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_5__.Fragment, { key: 1 }, (0,vue__WEBPACK_IMPORTED_MODULE_5__.renderList)(items, (optionGroup, i) => {
  37235. return ((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_5__.Fragment, {
  37236. key: $options.getOptionGroupRenderKey(optionGroup)
  37237. }, [
  37238. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createVNode)("li", _hoisted_5, [
  37239. (0,vue__WEBPACK_IMPORTED_MODULE_5__.renderSlot)(_ctx.$slots, "optiongroup", {
  37240. option: optionGroup,
  37241. index: $options.getOptionIndex(i, getItemOptions)
  37242. }, () => [
  37243. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_5__.toDisplayString)($options.getOptionGroupLabel(optionGroup)), 1)
  37244. ])
  37245. ]),
  37246. ((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_5__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_5__.renderList)($options.getOptionGroupChildren(optionGroup), (option, i) => {
  37247. return (0,vue__WEBPACK_IMPORTED_MODULE_5__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createBlock)("li", {
  37248. class: ['p-dropdown-item', {'p-highlight': $options.isSelected(option), 'p-disabled': $options.isOptionDisabled(option)}],
  37249. key: $options.getOptionRenderKey(option),
  37250. onClick: $event => ($options.onOptionSelect($event, option)),
  37251. role: "option",
  37252. "aria-label": $options.getOptionLabel(option),
  37253. "aria-selected": $options.isSelected(option)
  37254. }, [
  37255. (0,vue__WEBPACK_IMPORTED_MODULE_5__.renderSlot)(_ctx.$slots, "option", {
  37256. option: option,
  37257. index: $options.getOptionIndex(i, getItemOptions)
  37258. }, () => [
  37259. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_5__.toDisplayString)($options.getOptionLabel(option)), 1)
  37260. ])
  37261. ], 10, ["onClick", "aria-label", "aria-selected"])), [
  37262. [_directive_ripple]
  37263. ])
  37264. }), 128))
  37265. ], 64))
  37266. }), 128)),
  37267. ($data.filterValue && (!items || (items && items.length === 0)))
  37268. ? ((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createBlock)("li", _hoisted_6, [
  37269. (0,vue__WEBPACK_IMPORTED_MODULE_5__.renderSlot)(_ctx.$slots, "emptyfilter", {}, () => [
  37270. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_5__.toDisplayString)($options.emptyFilterMessageText), 1)
  37271. ])
  37272. ]))
  37273. : ((!$props.options || ($props.options && $props.options.length === 0)))
  37274. ? ((0,vue__WEBPACK_IMPORTED_MODULE_5__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_5__.createBlock)("li", _hoisted_7, [
  37275. (0,vue__WEBPACK_IMPORTED_MODULE_5__.renderSlot)(_ctx.$slots, "empty", {}, () => [
  37276. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_5__.toDisplayString)($options.emptyMessageText), 1)
  37277. ])
  37278. ]))
  37279. : (0,vue__WEBPACK_IMPORTED_MODULE_5__.createCommentVNode)("", true)
  37280. ], 6)
  37281. ]),
  37282. _: 2
  37283. }, [
  37284. (_ctx.$slots.loader)
  37285. ? {
  37286. name: "loader",
  37287. fn: (0,vue__WEBPACK_IMPORTED_MODULE_5__.withCtx)(({ options }) => [
  37288. (0,vue__WEBPACK_IMPORTED_MODULE_5__.renderSlot)(_ctx.$slots, "loader", { options: options })
  37289. ])
  37290. }
  37291. : undefined
  37292. ]), 1040, ["items", "style", "disabled"])
  37293. ], 4),
  37294. (0,vue__WEBPACK_IMPORTED_MODULE_5__.renderSlot)(_ctx.$slots, "footer", {
  37295. value: $props.modelValue,
  37296. options: $options.visibleOptions
  37297. })
  37298. ], 2))
  37299. : (0,vue__WEBPACK_IMPORTED_MODULE_5__.createCommentVNode)("", true)
  37300. ]),
  37301. _: 3
  37302. }, 8, ["onEnter", "onAfterEnter", "onLeave", "onAfterLeave"])
  37303. ], 8, ["to", "disabled"]))
  37304. ], 2))
  37305. }
  37306. function styleInject(css, ref) {
  37307. if ( ref === void 0 ) ref = {};
  37308. var insertAt = ref.insertAt;
  37309. if (!css || typeof document === 'undefined') { return; }
  37310. var head = document.head || document.getElementsByTagName('head')[0];
  37311. var style = document.createElement('style');
  37312. style.type = 'text/css';
  37313. if (insertAt === 'top') {
  37314. if (head.firstChild) {
  37315. head.insertBefore(style, head.firstChild);
  37316. } else {
  37317. head.appendChild(style);
  37318. }
  37319. } else {
  37320. head.appendChild(style);
  37321. }
  37322. if (style.styleSheet) {
  37323. style.styleSheet.cssText = css;
  37324. } else {
  37325. style.appendChild(document.createTextNode(css));
  37326. }
  37327. }
  37328. var css_248z = "\n.p-dropdown {\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n cursor: pointer;\n position: relative;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.p-dropdown-clear-icon {\n position: absolute;\n top: 50%;\n margin-top: -.5rem;\n}\n.p-dropdown-trigger {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -ms-flex-negative: 0;\n flex-shrink: 0;\n}\n.p-dropdown-label {\n display: block;\n white-space: nowrap;\n overflow: hidden;\n -webkit-box-flex: 1;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n width: 1%;\n text-overflow: ellipsis;\n cursor: pointer;\n}\n.p-dropdown-label-empty {\n overflow: hidden;\n visibility: hidden;\n}\ninput.p-dropdown-label {\n cursor: default;\n}\n.p-dropdown .p-dropdown-panel {\n min-width: 100%;\n}\n.p-dropdown-panel {\n position: absolute;\n top: 0;\n left: 0;\n}\n.p-dropdown-items-wrapper {\n overflow: auto;\n}\n.p-dropdown-item {\n cursor: pointer;\n font-weight: normal;\n white-space: nowrap;\n position: relative;\n overflow: hidden;\n}\n.p-dropdown-item-group {\n cursor: auto;\n}\n.p-dropdown-items {\n margin: 0;\n padding: 0;\n list-style-type: none;\n}\n.p-dropdown-filter {\n width: 100%;\n}\n.p-dropdown-filter-container {\n position: relative;\n}\n.p-dropdown-filter-icon {\n position: absolute;\n top: 50%;\n margin-top: -.5rem;\n}\n.p-fluid .p-dropdown {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n}\n.p-fluid .p-dropdown .p-dropdown-label {\n width: 1%;\n}\n";
  37329. styleInject(css_248z);
  37330. script.render = render;
  37331. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (script);
  37332. /***/ }),
  37333. /***/ "./node_modules/primevue/editor/editor.esm.js":
  37334. /*!****************************************************!*\
  37335. !*** ./node_modules/primevue/editor/editor.esm.js ***!
  37336. \****************************************************/
  37337. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  37338. "use strict";
  37339. __webpack_require__.r(__webpack_exports__);
  37340. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  37341. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  37342. /* harmony export */ });
  37343. /* harmony import */ var quill__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! quill */ "./node_modules/quill/dist/quill.js");
  37344. /* harmony import */ var quill__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(quill__WEBPACK_IMPORTED_MODULE_0__);
  37345. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js");
  37346. var script = {
  37347. name: 'Editor',
  37348. emits: ['update:modelValue', 'text-change'],
  37349. props: {
  37350. modelValue: String,
  37351. placeholder: String,
  37352. readonly: Boolean,
  37353. formats: Array,
  37354. editorStyle: null
  37355. },
  37356. quill: null,
  37357. watch: {
  37358. modelValue(newValue, oldValue) {
  37359. if (newValue !== oldValue && this.quill && !this.quill.hasFocus()) {
  37360. this.renderValue(newValue);
  37361. }
  37362. }
  37363. },
  37364. mounted() {
  37365. this.quill = new (quill__WEBPACK_IMPORTED_MODULE_0___default())(this.$refs.editorElement, {
  37366. modules: {
  37367. toolbar: this.$refs.toolbarElement
  37368. },
  37369. readOnly: this.readonly,
  37370. theme: 'snow',
  37371. formats: this.formats,
  37372. placeholder: this.placeholder
  37373. });
  37374. this.renderValue(this.modelValue);
  37375. this.quill.on('text-change', (delta, oldContents, source) => {
  37376. if (source === 'user') {
  37377. let html = this.$refs.editorElement.children[0].innerHTML;
  37378. let text = this.quill.getText().trim();
  37379. if (html === '<p><br></p>') {
  37380. html = '';
  37381. }
  37382. this.$emit('update:modelValue', html);
  37383. this.$emit('text-change', {
  37384. htmlValue: html,
  37385. textValue: text,
  37386. delta: delta,
  37387. source: source,
  37388. instance: this.quill
  37389. });
  37390. }
  37391. });
  37392. },
  37393. methods: {
  37394. renderValue(value) {
  37395. if (this.quill) {
  37396. if (value)
  37397. this.quill.pasteHTML(value);
  37398. else
  37399. this.quill.setText('');
  37400. }
  37401. }
  37402. },
  37403. beforeUnmount() {
  37404. this.quill = null;
  37405. }
  37406. };
  37407. const _hoisted_1 = { class: "p-editor-container" };
  37408. const _hoisted_2 = {
  37409. ref: "toolbarElement",
  37410. class: "p-editor-toolbar"
  37411. };
  37412. const _hoisted_3 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_1__.createVNode)("span", { class: "ql-formats" }, [
  37413. /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_1__.createVNode)("select", {
  37414. class: "ql-header",
  37415. defaultValue: "0"
  37416. }, [
  37417. /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_1__.createVNode)("option", { value: "1" }, "Heading"),
  37418. /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_1__.createVNode)("option", { value: "2" }, "Subheading"),
  37419. /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_1__.createVNode)("option", { value: "0" }, "Normal")
  37420. ]),
  37421. /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_1__.createVNode)("select", { class: "ql-font" }, [
  37422. /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_1__.createVNode)("option"),
  37423. /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_1__.createVNode)("option", { value: "serif" }),
  37424. /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_1__.createVNode)("option", { value: "monospace" })
  37425. ])
  37426. ], -1);
  37427. const _hoisted_4 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_1__.createStaticVNode)("<span class=\"ql-formats\"><button class=\"ql-bold\" type=\"button\"></button><button class=\"ql-italic\" type=\"button\"></button><button class=\"ql-underline\" type=\"button\"></button></span><span class=\"ql-formats\"><select class=\"ql-color\"></select><select class=\"ql-background\"></select></span>", 2);
  37428. const _hoisted_6 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_1__.createVNode)("span", { class: "ql-formats" }, [
  37429. /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_1__.createVNode)("button", {
  37430. class: "ql-list",
  37431. value: "ordered",
  37432. type: "button"
  37433. }),
  37434. /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_1__.createVNode)("button", {
  37435. class: "ql-list",
  37436. value: "bullet",
  37437. type: "button"
  37438. }),
  37439. /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_1__.createVNode)("select", { class: "ql-align" }, [
  37440. /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_1__.createVNode)("option", { defaultValue: "" }),
  37441. /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_1__.createVNode)("option", { value: "center" }),
  37442. /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_1__.createVNode)("option", { value: "right" }),
  37443. /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_1__.createVNode)("option", { value: "justify" })
  37444. ])
  37445. ], -1);
  37446. const _hoisted_7 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_1__.createStaticVNode)("<span class=\"ql-formats\"><button class=\"ql-link\" type=\"button\"></button><button class=\"ql-image\" type=\"button\"></button><button class=\"ql-code-block\" type=\"button\"></button></span><span class=\"ql-formats\"><button class=\"ql-clean\" type=\"button\"></button></span>", 2);
  37447. function render(_ctx, _cache, $props, $setup, $data, $options) {
  37448. return ((0,vue__WEBPACK_IMPORTED_MODULE_1__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_1__.createBlock)("div", _hoisted_1, [
  37449. (0,vue__WEBPACK_IMPORTED_MODULE_1__.createVNode)("div", _hoisted_2, [
  37450. (0,vue__WEBPACK_IMPORTED_MODULE_1__.renderSlot)(_ctx.$slots, "toolbar", {}, () => [
  37451. _hoisted_3,
  37452. _hoisted_4,
  37453. _hoisted_6,
  37454. _hoisted_7
  37455. ])
  37456. ], 512),
  37457. (0,vue__WEBPACK_IMPORTED_MODULE_1__.createVNode)("div", {
  37458. ref: "editorElement",
  37459. class: "p-editor-content",
  37460. style: $props.editorStyle
  37461. }, null, 4)
  37462. ]))
  37463. }
  37464. function styleInject(css, ref) {
  37465. if ( ref === void 0 ) ref = {};
  37466. var insertAt = ref.insertAt;
  37467. if (!css || typeof document === 'undefined') { return; }
  37468. var head = document.head || document.getElementsByTagName('head')[0];
  37469. var style = document.createElement('style');
  37470. style.type = 'text/css';
  37471. if (insertAt === 'top') {
  37472. if (head.firstChild) {
  37473. head.insertBefore(style, head.firstChild);
  37474. } else {
  37475. head.appendChild(style);
  37476. }
  37477. } else {
  37478. head.appendChild(style);
  37479. }
  37480. if (style.styleSheet) {
  37481. style.styleSheet.cssText = css;
  37482. } else {
  37483. style.appendChild(document.createTextNode(css));
  37484. }
  37485. }
  37486. var css_248z = "\n/*!\n * Quill Editor v1.3.3\n * https://quilljs.com/\n * Copyright (c) 2014, Jason Chen\n * Copyright (c) 2013, salesforce.com\n */\n.ql-container {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n font-family: Helvetica, Arial, sans-serif;\n font-size: 13px;\n height: 100%;\n margin: 0px;\n position: relative;\n}\n.ql-container.ql-disabled .ql-tooltip {\n visibility: hidden;\n}\n.ql-container.ql-disabled .ql-editor ul[data-checked] > li::before {\n pointer-events: none;\n}\n.ql-clipboard {\n left: -100000px;\n height: 1px;\n overflow-y: hidden;\n position: absolute;\n top: 50%;\n}\n.ql-clipboard p {\n margin: 0;\n padding: 0;\n}\n.ql-editor {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n line-height: 1.42;\n height: 100%;\n outline: none;\n overflow-y: auto;\n padding: 12px 15px;\n -o-tab-size: 4;\n tab-size: 4;\n -moz-tab-size: 4;\n text-align: left;\n white-space: pre-wrap;\n word-wrap: break-word;\n}\n.ql-editor > * {\n cursor: text;\n}\n.ql-editor p,\n.ql-editor ol,\n.ql-editor ul,\n.ql-editor pre,\n.ql-editor blockquote,\n.ql-editor h1,\n.ql-editor h2,\n.ql-editor h3,\n.ql-editor h4,\n.ql-editor h5,\n.ql-editor h6 {\n margin: 0;\n padding: 0;\n counter-reset: list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;\n}\n.ql-editor ol,\n.ql-editor ul {\n padding-left: 1.5rem;\n}\n.ql-editor ol > li,\n.ql-editor ul > li {\n list-style-type: none;\n}\n.ql-editor ul > li::before {\n content: '\\2022';\n}\n.ql-editor ul[data-checked=true],\n.ql-editor ul[data-checked=false] {\n pointer-events: none;\n}\n.ql-editor ul[data-checked=true] > li *,\n.ql-editor ul[data-checked=false] > li * {\n pointer-events: all;\n}\n.ql-editor ul[data-checked=true] > li::before,\n.ql-editor ul[data-checked=false] > li::before {\n color: #777;\n cursor: pointer;\n pointer-events: all;\n}\n.ql-editor ul[data-checked=true] > li::before {\n content: '\\2611';\n}\n.ql-editor ul[data-checked=false] > li::before {\n content: '\\2610';\n}\n.ql-editor li::before {\n display: inline-block;\n white-space: nowrap;\n width: 1.2rem;\n}\n.ql-editor li:not(.ql-direction-rtl)::before {\n margin-left: -1.5rem;\n margin-right: 0.3rem;\n text-align: right;\n}\n.ql-editor li.ql-direction-rtl::before {\n margin-left: 0.3rem;\n margin-right: -1.5rem;\n}\n.ql-editor ol li:not(.ql-direction-rtl),\n.ql-editor ul li:not(.ql-direction-rtl) {\n padding-left: 1.5rem;\n}\n.ql-editor ol li.ql-direction-rtl,\n.ql-editor ul li.ql-direction-rtl {\n padding-right: 1.5rem;\n}\n.ql-editor ol li {\n counter-reset: list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;\n counter-increment: list-0;\n}\n.ql-editor ol li:before {\n content: counter(list-0, decimal) '. ';\n}\n.ql-editor ol li.ql-indent-1 {\n counter-increment: list-1;\n}\n.ql-editor ol li.ql-indent-1:before {\n content: counter(list-1, lower-alpha) '. ';\n}\n.ql-editor ol li.ql-indent-1 {\n counter-reset: list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;\n}\n.ql-editor ol li.ql-indent-2 {\n counter-increment: list-2;\n}\n.ql-editor ol li.ql-indent-2:before {\n content: counter(list-2, lower-roman) '. ';\n}\n.ql-editor ol li.ql-indent-2 {\n counter-reset: list-3 list-4 list-5 list-6 list-7 list-8 list-9;\n}\n.ql-editor ol li.ql-indent-3 {\n counter-increment: list-3;\n}\n.ql-editor ol li.ql-indent-3:before {\n content: counter(list-3, decimal) '. ';\n}\n.ql-editor ol li.ql-indent-3 {\n counter-reset: list-4 list-5 list-6 list-7 list-8 list-9;\n}\n.ql-editor ol li.ql-indent-4 {\n counter-increment: list-4;\n}\n.ql-editor ol li.ql-indent-4:before {\n content: counter(list-4, lower-alpha) '. ';\n}\n.ql-editor ol li.ql-indent-4 {\n counter-reset: list-5 list-6 list-7 list-8 list-9;\n}\n.ql-editor ol li.ql-indent-5 {\n counter-increment: list-5;\n}\n.ql-editor ol li.ql-indent-5:before {\n content: counter(list-5, lower-roman) '. ';\n}\n.ql-editor ol li.ql-indent-5 {\n counter-reset: list-6 list-7 list-8 list-9;\n}\n.ql-editor ol li.ql-indent-6 {\n counter-increment: list-6;\n}\n.ql-editor ol li.ql-indent-6:before {\n content: counter(list-6, decimal) '. ';\n}\n.ql-editor ol li.ql-indent-6 {\n counter-reset: list-7 list-8 list-9;\n}\n.ql-editor ol li.ql-indent-7 {\n counter-increment: list-7;\n}\n.ql-editor ol li.ql-indent-7:before {\n content: counter(list-7, lower-alpha) '. ';\n}\n.ql-editor ol li.ql-indent-7 {\n counter-reset: list-8 list-9;\n}\n.ql-editor ol li.ql-indent-8 {\n counter-increment: list-8;\n}\n.ql-editor ol li.ql-indent-8:before {\n content: counter(list-8, lower-roman) '. ';\n}\n.ql-editor ol li.ql-indent-8 {\n counter-reset: list-9;\n}\n.ql-editor ol li.ql-indent-9 {\n counter-increment: list-9;\n}\n.ql-editor ol li.ql-indent-9:before {\n content: counter(list-9, decimal) '. ';\n}\n.ql-editor .ql-indent-1:not(.ql-direction-rtl) {\n padding-left: 3rem;\n}\n.ql-editor li.ql-indent-1:not(.ql-direction-rtl) {\n padding-left: 4.5rem;\n}\n.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right {\n padding-right: 3rem;\n}\n.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right {\n padding-right: 4.5rem;\n}\n.ql-editor .ql-indent-2:not(.ql-direction-rtl) {\n padding-left: 6rem;\n}\n.ql-editor li.ql-indent-2:not(.ql-direction-rtl) {\n padding-left: 7.5rem;\n}\n.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right {\n padding-right: 6rem;\n}\n.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right {\n padding-right: 7.5rem;\n}\n.ql-editor .ql-indent-3:not(.ql-direction-rtl) {\n padding-left: 9rem;\n}\n.ql-editor li.ql-indent-3:not(.ql-direction-rtl) {\n padding-left: 10.5rem;\n}\n.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right {\n padding-right: 9rem;\n}\n.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right {\n padding-right: 10.5rem;\n}\n.ql-editor .ql-indent-4:not(.ql-direction-rtl) {\n padding-left: 12rem;\n}\n.ql-editor li.ql-indent-4:not(.ql-direction-rtl) {\n padding-left: 13.5rem;\n}\n.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right {\n padding-right: 12rem;\n}\n.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right {\n padding-right: 13.5rem;\n}\n.ql-editor .ql-indent-5:not(.ql-direction-rtl) {\n padding-left: 15rem;\n}\n.ql-editor li.ql-indent-5:not(.ql-direction-rtl) {\n padding-left: 16.5rem;\n}\n.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right {\n padding-right: 15rem;\n}\n.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right {\n padding-right: 16.5rem;\n}\n.ql-editor .ql-indent-6:not(.ql-direction-rtl) {\n padding-left: 18rem;\n}\n.ql-editor li.ql-indent-6:not(.ql-direction-rtl) {\n padding-left: 19.5rem;\n}\n.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right {\n padding-right: 18rem;\n}\n.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right {\n padding-right: 19.5rem;\n}\n.ql-editor .ql-indent-7:not(.ql-direction-rtl) {\n padding-left: 21rem;\n}\n.ql-editor li.ql-indent-7:not(.ql-direction-rtl) {\n padding-left: 22.5rem;\n}\n.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right {\n padding-right: 21rem;\n}\n.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right {\n padding-right: 22.5rem;\n}\n.ql-editor .ql-indent-8:not(.ql-direction-rtl) {\n padding-left: 24rem;\n}\n.ql-editor li.ql-indent-8:not(.ql-direction-rtl) {\n padding-left: 25.5rem;\n}\n.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right {\n padding-right: 24rem;\n}\n.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right {\n padding-right: 25.5rem;\n}\n.ql-editor .ql-indent-9:not(.ql-direction-rtl) {\n padding-left: 27rem;\n}\n.ql-editor li.ql-indent-9:not(.ql-direction-rtl) {\n padding-left: 28.5rem;\n}\n.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right {\n padding-right: 27rem;\n}\n.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right {\n padding-right: 28.5rem;\n}\n.ql-editor .ql-video {\n display: block;\n max-width: 100%;\n}\n.ql-editor .ql-video.ql-align-center {\n margin: 0 auto;\n}\n.ql-editor .ql-video.ql-align-right {\n margin: 0 0 0 auto;\n}\n.ql-editor .ql-bg-black {\n background-color: #000;\n}\n.ql-editor .ql-bg-red {\n background-color: #e60000;\n}\n.ql-editor .ql-bg-orange {\n background-color: #f90;\n}\n.ql-editor .ql-bg-yellow {\n background-color: #ff0;\n}\n.ql-editor .ql-bg-green {\n background-color: #008a00;\n}\n.ql-editor .ql-bg-blue {\n background-color: #06c;\n}\n.ql-editor .ql-bg-purple {\n background-color: #93f;\n}\n.ql-editor .ql-color-white {\n color: #fff;\n}\n.ql-editor .ql-color-red {\n color: #e60000;\n}\n.ql-editor .ql-color-orange {\n color: #f90;\n}\n.ql-editor .ql-color-yellow {\n color: #ff0;\n}\n.ql-editor .ql-color-green {\n color: #008a00;\n}\n.ql-editor .ql-color-blue {\n color: #06c;\n}\n.ql-editor .ql-color-purple {\n color: #93f;\n}\n.ql-editor .ql-font-serif {\n font-family: Georgia, Times New Roman, serif;\n}\n.ql-editor .ql-font-monospace {\n font-family: Monaco, Courier New, monospace;\n}\n.ql-editor .ql-size-small {\n font-size: 0.75rem;\n}\n.ql-editor .ql-size-large {\n font-size: 1.5rem;\n}\n.ql-editor .ql-size-huge {\n font-size: 2.5rem;\n}\n.ql-editor .ql-direction-rtl {\n direction: rtl;\n text-align: inherit;\n}\n.ql-editor .ql-align-center {\n text-align: center;\n}\n.ql-editor .ql-align-justify {\n text-align: justify;\n}\n.ql-editor .ql-align-right {\n text-align: right;\n}\n.ql-editor.ql-blank::before {\n color: rgba(0,0,0,0.6);\n content: attr(data-placeholder);\n font-style: italic;\n left: 15px;\n pointer-events: none;\n position: absolute;\n right: 15px;\n}\n.ql-snow.ql-toolbar:after,\n.ql-snow .ql-toolbar:after {\n clear: both;\n content: '';\n display: table;\n}\n.ql-snow.ql-toolbar button,\n.ql-snow .ql-toolbar button {\n background: none;\n border: none;\n cursor: pointer;\n display: inline-block;\n float: left;\n height: 24px;\n padding: 3px 5px;\n width: 28px;\n}\n.ql-snow.ql-toolbar button svg,\n.ql-snow .ql-toolbar button svg {\n float: left;\n height: 100%;\n}\n.ql-snow.ql-toolbar button:active:hover,\n.ql-snow .ql-toolbar button:active:hover {\n outline: none;\n}\n.ql-snow.ql-toolbar input.ql-image[type=file],\n.ql-snow .ql-toolbar input.ql-image[type=file] {\n display: none;\n}\n.ql-snow.ql-toolbar button:hover,\n.ql-snow .ql-toolbar button:hover,\n.ql-snow.ql-toolbar button:focus,\n.ql-snow .ql-toolbar button:focus,\n.ql-snow.ql-toolbar button.ql-active,\n.ql-snow .ql-toolbar button.ql-active,\n.ql-snow.ql-toolbar .ql-picker-label:hover,\n.ql-snow .ql-toolbar .ql-picker-label:hover,\n.ql-snow.ql-toolbar .ql-picker-label.ql-active,\n.ql-snow .ql-toolbar .ql-picker-label.ql-active,\n.ql-snow.ql-toolbar .ql-picker-item:hover,\n.ql-snow .ql-toolbar .ql-picker-item:hover,\n.ql-snow.ql-toolbar .ql-picker-item.ql-selected,\n.ql-snow .ql-toolbar .ql-picker-item.ql-selected {\n color: #06c;\n}\n.ql-snow.ql-toolbar button:hover .ql-fill,\n.ql-snow .ql-toolbar button:hover .ql-fill,\n.ql-snow.ql-toolbar button:focus .ql-fill,\n.ql-snow .ql-toolbar button:focus .ql-fill,\n.ql-snow.ql-toolbar button.ql-active .ql-fill,\n.ql-snow .ql-toolbar button.ql-active .ql-fill,\n.ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill,\n.ql-snow .ql-toolbar .ql-picker-label:hover .ql-fill,\n.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,\n.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-fill,\n.ql-snow.ql-toolbar .ql-picker-item:hover .ql-fill,\n.ql-snow .ql-toolbar .ql-picker-item:hover .ql-fill,\n.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill,\n.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-fill,\n.ql-snow.ql-toolbar button:hover .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar button:hover .ql-stroke.ql-fill,\n.ql-snow.ql-toolbar button:focus .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar button:focus .ql-stroke.ql-fill,\n.ql-snow.ql-toolbar button.ql-active .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar button.ql-active .ql-stroke.ql-fill,\n.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,\n.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,\n.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,\n.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,\n.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill {\n fill: #06c;\n}\n.ql-snow.ql-toolbar button:hover .ql-stroke,\n.ql-snow .ql-toolbar button:hover .ql-stroke,\n.ql-snow.ql-toolbar button:focus .ql-stroke,\n.ql-snow .ql-toolbar button:focus .ql-stroke,\n.ql-snow.ql-toolbar button.ql-active .ql-stroke,\n.ql-snow .ql-toolbar button.ql-active .ql-stroke,\n.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke,\n.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke,\n.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,\n.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke,\n.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke,\n.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke,\n.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,\n.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke,\n.ql-snow.ql-toolbar button:hover .ql-stroke-miter,\n.ql-snow .ql-toolbar button:hover .ql-stroke-miter,\n.ql-snow.ql-toolbar button:focus .ql-stroke-miter,\n.ql-snow .ql-toolbar button:focus .ql-stroke-miter,\n.ql-snow.ql-toolbar button.ql-active .ql-stroke-miter,\n.ql-snow .ql-toolbar button.ql-active .ql-stroke-miter,\n.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke-miter,\n.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke-miter,\n.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,\n.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,\n.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke-miter,\n.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke-miter,\n.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,\n.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter {\n stroke: #06c;\n}\n@media (pointer: coarse) {\n.ql-snow.ql-toolbar button:hover:not(.ql-active),\n .ql-snow .ql-toolbar button:hover:not(.ql-active) {\n color: #444;\n}\n.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-fill,\n .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-fill,\n .ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill,\n .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill {\n fill: #444;\n}\n.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke,\n .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke,\n .ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter,\n .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter {\n stroke: #444;\n}\n}\n.ql-snow {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n}\n.ql-snow * {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n}\n.ql-snow .ql-hidden {\n display: none;\n}\n.ql-snow .ql-out-bottom,\n.ql-snow .ql-out-top {\n visibility: hidden;\n}\n.ql-snow .ql-tooltip {\n position: absolute;\n -webkit-transform: translateY(10px);\n transform: translateY(10px);\n}\n.ql-snow .ql-tooltip a {\n cursor: pointer;\n text-decoration: none;\n}\n.ql-snow .ql-tooltip.ql-flip {\n -webkit-transform: translateY(-10px);\n transform: translateY(-10px);\n}\n.ql-snow .ql-formats {\n display: inline-block;\n vertical-align: middle;\n}\n.ql-snow .ql-formats:after {\n clear: both;\n content: '';\n display: table;\n}\n.ql-snow .ql-stroke {\n fill: none;\n stroke: #444;\n stroke-linecap: round;\n stroke-linejoin: round;\n stroke-width: 2;\n}\n.ql-snow .ql-stroke-miter {\n fill: none;\n stroke: #444;\n stroke-miterlimit: 10;\n stroke-width: 2;\n}\n.ql-snow .ql-fill,\n.ql-snow .ql-stroke.ql-fill {\n fill: #444;\n}\n.ql-snow .ql-empty {\n fill: none;\n}\n.ql-snow .ql-even {\n fill-rule: evenodd;\n}\n.ql-snow .ql-thin,\n.ql-snow .ql-stroke.ql-thin {\n stroke-width: 1;\n}\n.ql-snow .ql-transparent {\n opacity: 0.4;\n}\n.ql-snow .ql-direction svg:last-child {\n display: none;\n}\n.ql-snow .ql-direction.ql-active svg:last-child {\n display: inline;\n}\n.ql-snow .ql-direction.ql-active svg:first-child {\n display: none;\n}\n.ql-snow .ql-editor h1 {\n font-size: 2rem;\n}\n.ql-snow .ql-editor h2 {\n font-size: 1.5rem;\n}\n.ql-snow .ql-editor h3 {\n font-size: 1.17rem;\n}\n.ql-snow .ql-editor h4 {\n font-size: 1rem;\n}\n.ql-snow .ql-editor h5 {\n font-size: 0.83rem;\n}\n.ql-snow .ql-editor h6 {\n font-size: 0.67rem;\n}\n.ql-snow .ql-editor a {\n text-decoration: underline;\n}\n.ql-snow .ql-editor blockquote {\n border-left: 4px solid #ccc;\n margin-bottom: 5px;\n margin-top: 5px;\n padding-left: 16px;\n}\n.ql-snow .ql-editor code,\n.ql-snow .ql-editor pre {\n background-color: #f0f0f0;\n border-radius: 3px;\n}\n.ql-snow .ql-editor pre {\n white-space: pre-wrap;\n margin-bottom: 5px;\n margin-top: 5px;\n padding: 5px 10px;\n}\n.ql-snow .ql-editor code {\n font-size: 85%;\n padding: 2px 4px;\n}\n.ql-snow .ql-editor pre.ql-syntax {\n background-color: #23241f;\n color: #f8f8f2;\n overflow: visible;\n}\n.ql-snow .ql-editor img {\n max-width: 100%;\n}\n.ql-snow .ql-picker {\n color: #444;\n display: inline-block;\n float: left;\n font-size: 14px;\n font-weight: 500;\n height: 24px;\n position: relative;\n vertical-align: middle;\n}\n.ql-snow .ql-picker-label {\n cursor: pointer;\n display: inline-block;\n height: 100%;\n padding-left: 8px;\n padding-right: 2px;\n position: relative;\n width: 100%;\n}\n.ql-snow .ql-picker-label::before {\n display: inline-block;\n line-height: 22px;\n}\n.ql-snow .ql-picker-options {\n background-color: #fff;\n display: none;\n min-width: 100%;\n padding: 4px 8px;\n position: absolute;\n white-space: nowrap;\n}\n.ql-snow .ql-picker-options .ql-picker-item {\n cursor: pointer;\n display: block;\n padding-bottom: 5px;\n padding-top: 5px;\n}\n.ql-snow .ql-picker.ql-expanded .ql-picker-label {\n color: #ccc;\n z-index: 2;\n}\n.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill {\n fill: #ccc;\n}\n.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke {\n stroke: #ccc;\n}\n.ql-snow .ql-picker.ql-expanded .ql-picker-options {\n display: block;\n margin-top: -1px;\n top: 100%;\n z-index: 1;\n}\n.ql-snow .ql-color-picker,\n.ql-snow .ql-icon-picker {\n width: 28px;\n}\n.ql-snow .ql-color-picker .ql-picker-label,\n.ql-snow .ql-icon-picker .ql-picker-label {\n padding: 2px 4px;\n}\n.ql-snow .ql-color-picker .ql-picker-label svg,\n.ql-snow .ql-icon-picker .ql-picker-label svg {\n right: 4px;\n}\n.ql-snow .ql-icon-picker .ql-picker-options {\n padding: 4px 0px;\n}\n.ql-snow .ql-icon-picker .ql-picker-item {\n height: 24px;\n width: 24px;\n padding: 2px 4px;\n}\n.ql-snow .ql-color-picker .ql-picker-options {\n padding: 3px 5px;\n width: 152px;\n}\n.ql-snow .ql-color-picker .ql-picker-item {\n border: 1px solid transparent;\n float: left;\n height: 16px;\n margin: 2px;\n padding: 0px;\n width: 16px;\n}\n.ql-snow .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg {\n position: absolute;\n margin-top: -9px;\n right: 0;\n top: 50%;\n width: 18px;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=''])::before,\n.ql-snow .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=''])::before,\n.ql-snow .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=''])::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=''])::before,\n.ql-snow .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=''])::before,\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=''])::before {\n content: attr(data-label);\n}\n.ql-snow .ql-picker.ql-header {\n width: 98px;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item::before {\n content: 'Normal';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"1\"]::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"1\"]::before {\n content: 'Heading 1';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"2\"]::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"2\"]::before {\n content: 'Heading 2';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"3\"]::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"3\"]::before {\n content: 'Heading 3';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"4\"]::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"4\"]::before {\n content: 'Heading 4';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"5\"]::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"5\"]::before {\n content: 'Heading 5';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"6\"]::before,\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"6\"]::before {\n content: 'Heading 6';\n}\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"1\"]::before {\n font-size: 2rem;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"2\"]::before {\n font-size: 1.5rem;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"3\"]::before {\n font-size: 1.17rem;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"4\"]::before {\n font-size: 1rem;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"5\"]::before {\n font-size: 0.83rem;\n}\n.ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"6\"]::before {\n font-size: 0.67rem;\n}\n.ql-snow .ql-picker.ql-font {\n width: 108px;\n}\n.ql-snow .ql-picker.ql-font .ql-picker-label::before,\n.ql-snow .ql-picker.ql-font .ql-picker-item::before {\n content: 'Sans Serif';\n}\n.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=serif]::before,\n.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]::before {\n content: 'Serif';\n}\n.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=monospace]::before,\n.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]::before {\n content: 'Monospace';\n}\n.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]::before {\n font-family: Georgia, Times New Roman, serif;\n}\n.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]::before {\n font-family: Monaco, Courier New, monospace;\n}\n.ql-snow .ql-picker.ql-size {\n width: 98px;\n}\n.ql-snow .ql-picker.ql-size .ql-picker-label::before,\n.ql-snow .ql-picker.ql-size .ql-picker-item::before {\n content: 'Normal';\n}\n.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=small]::before,\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]::before {\n content: 'Small';\n}\n.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=large]::before,\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]::before {\n content: 'Large';\n}\n.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=huge]::before,\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]::before {\n content: 'Huge';\n}\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]::before {\n font-size: 10px;\n}\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]::before {\n font-size: 18px;\n}\n.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]::before {\n font-size: 32px;\n}\n.ql-snow .ql-color-picker.ql-background .ql-picker-item {\n background-color: #fff;\n}\n.ql-snow .ql-color-picker.ql-color .ql-picker-item {\n background-color: #000;\n}\n.ql-toolbar.ql-snow {\n border: 1px solid #ccc;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n font-family: 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;\n padding: 8px;\n}\n.ql-toolbar.ql-snow .ql-formats {\n margin-right: 15px;\n}\n.ql-toolbar.ql-snow .ql-picker-label {\n border: 1px solid transparent;\n}\n.ql-toolbar.ql-snow .ql-picker-options {\n border: 1px solid transparent;\n -webkit-box-shadow: rgba(0,0,0,0.2) 0 2px 8px;\n box-shadow: rgba(0,0,0,0.2) 0 2px 8px;\n}\n.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label {\n border-color: #ccc;\n}\n.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options {\n border-color: #ccc;\n}\n.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item.ql-selected,\n.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item:hover {\n border-color: #000;\n}\n.ql-toolbar.ql-snow + .ql-container.ql-snow {\n border-top: 0px;\n}\n.ql-snow .ql-tooltip {\n background-color: #fff;\n border: 1px solid #ccc;\n -webkit-box-shadow: 0px 0px 5px #ddd;\n box-shadow: 0px 0px 5px #ddd;\n color: #444;\n padding: 5px 12px;\n white-space: nowrap;\n}\n.ql-snow .ql-tooltip::before {\n content: \"Visit URL:\";\n line-height: 26px;\n margin-right: 8px;\n}\n.ql-snow .ql-tooltip input[type=text] {\n display: none;\n border: 1px solid #ccc;\n font-size: 13px;\n height: 26px;\n margin: 0px;\n padding: 3px 5px;\n width: 170px;\n}\n.ql-snow .ql-tooltip a.ql-preview {\n display: inline-block;\n max-width: 200px;\n overflow-x: hidden;\n text-overflow: ellipsis;\n vertical-align: top;\n}\n.ql-snow .ql-tooltip a.ql-action::after {\n border-right: 1px solid #ccc;\n content: 'Edit';\n margin-left: 16px;\n padding-right: 8px;\n}\n.ql-snow .ql-tooltip a.ql-remove::before {\n content: 'Remove';\n margin-left: 8px;\n}\n.ql-snow .ql-tooltip a {\n line-height: 26px;\n}\n.ql-snow .ql-tooltip.ql-editing a.ql-preview,\n.ql-snow .ql-tooltip.ql-editing a.ql-remove {\n display: none;\n}\n.ql-snow .ql-tooltip.ql-editing input[type=text] {\n display: inline-block;\n}\n.ql-snow .ql-tooltip.ql-editing a.ql-action::after {\n border-right: 0px;\n content: 'Save';\n padding-right: 0px;\n}\n.ql-snow .ql-tooltip[data-mode=link]::before {\n content: \"Enter link:\";\n}\n.ql-snow .ql-tooltip[data-mode=formula]::before {\n content: \"Enter formula:\";\n}\n.ql-snow .ql-tooltip[data-mode=video]::before {\n content: \"Enter video:\";\n}\n.ql-snow a {\n color: #06c;\n}\n.ql-container.ql-snow {\n border: 1px solid #ccc;\n}\n";
  37487. styleInject(css_248z);
  37488. script.render = render;
  37489. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (script);
  37490. /***/ }),
  37491. /***/ "./node_modules/primevue/inputnumber/inputnumber.esm.js":
  37492. /*!**************************************************************!*\
  37493. !*** ./node_modules/primevue/inputnumber/inputnumber.esm.js ***!
  37494. \**************************************************************/
  37495. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  37496. "use strict";
  37497. __webpack_require__.r(__webpack_exports__);
  37498. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  37499. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  37500. /* harmony export */ });
  37501. /* harmony import */ var primevue_inputtext__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! primevue/inputtext */ "./node_modules/primevue/inputtext/inputtext.esm.js");
  37502. /* harmony import */ var primevue_button__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! primevue/button */ "./node_modules/primevue/button/button.esm.js");
  37503. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js");
  37504. var script = {
  37505. name: 'InputNumber',
  37506. inheritAttrs: false,
  37507. emits: ['update:modelValue', 'input', 'focus', 'blur'],
  37508. props: {
  37509. modelValue: {
  37510. type: Number,
  37511. default: null
  37512. },
  37513. format: {
  37514. type: Boolean,
  37515. default: true
  37516. },
  37517. showButtons: {
  37518. type: Boolean,
  37519. default: false
  37520. },
  37521. buttonLayout: {
  37522. type: String,
  37523. default: 'stacked'
  37524. },
  37525. incrementButtonClass: {
  37526. type: String,
  37527. default: null,
  37528. },
  37529. decrementButtonClass: {
  37530. type: String,
  37531. default: null,
  37532. },
  37533. incrementButtonIcon: {
  37534. type: String,
  37535. default: 'pi pi-angle-up',
  37536. },
  37537. decrementButtonIcon: {
  37538. type: String,
  37539. default: 'pi pi-angle-down',
  37540. },
  37541. locale: {
  37542. type: String,
  37543. default: undefined
  37544. },
  37545. localeMatcher: {
  37546. type: String,
  37547. default: undefined
  37548. },
  37549. mode: {
  37550. type: String,
  37551. default: 'decimal'
  37552. },
  37553. prefix: {
  37554. type: String,
  37555. default: null
  37556. },
  37557. suffix: {
  37558. type: String,
  37559. default: null
  37560. },
  37561. currency: {
  37562. type: String,
  37563. default: undefined
  37564. },
  37565. currencyDisplay: {
  37566. type: String,
  37567. default: undefined
  37568. },
  37569. useGrouping: {
  37570. type: Boolean,
  37571. default: true
  37572. },
  37573. minFractionDigits: {
  37574. type: Number,
  37575. default: undefined
  37576. },
  37577. maxFractionDigits: {
  37578. type: Number,
  37579. default: undefined
  37580. },
  37581. min: {
  37582. type: Number,
  37583. default: null
  37584. },
  37585. max: {
  37586. type: Number,
  37587. default: null
  37588. },
  37589. step: {
  37590. type: Number,
  37591. default: 1
  37592. },
  37593. allowEmpty: {
  37594. type: Boolean,
  37595. default: true
  37596. },
  37597. style: null,
  37598. class: null,
  37599. inputStyle: null,
  37600. inputClass: null
  37601. },
  37602. numberFormat: null,
  37603. _numeral: null,
  37604. _decimal: null,
  37605. _group: null,
  37606. _minusSign: null,
  37607. _currency: null,
  37608. _suffix: null,
  37609. _prefix: null,
  37610. _index: null,
  37611. groupChar: '',
  37612. isSpecialChar: null,
  37613. prefixChar: null,
  37614. suffixChar: null,
  37615. timer: null,
  37616. data() {
  37617. return {
  37618. d_modelValue: this.modelValue,
  37619. focused: false
  37620. }
  37621. },
  37622. watch: {
  37623. modelValue(newValue) {
  37624. this.d_modelValue = newValue;
  37625. },
  37626. locale(newValue, oldValue) {
  37627. this.updateConstructParser(newValue, oldValue);
  37628. },
  37629. localeMatcher(newValue, oldValue) {
  37630. this.updateConstructParser(newValue, oldValue);
  37631. },
  37632. mode(newValue, oldValue) {
  37633. this.updateConstructParser(newValue, oldValue);
  37634. },
  37635. currency(newValue, oldValue) {
  37636. this.updateConstructParser(newValue, oldValue);
  37637. },
  37638. currencyDisplay(newValue, oldValue) {
  37639. this.updateConstructParser(newValue, oldValue);
  37640. },
  37641. useGrouping(newValue, oldValue) {
  37642. this.updateConstructParser(newValue, oldValue);
  37643. },
  37644. minFractionDigits(newValue, oldValue) {
  37645. this.updateConstructParser(newValue, oldValue);
  37646. },
  37647. maxFractionDigits(newValue, oldValue) {
  37648. this.updateConstructParser(newValue, oldValue);
  37649. },
  37650. suffix(newValue, oldValue) {
  37651. this.updateConstructParser(newValue, oldValue);
  37652. },
  37653. prefix(newValue, oldValue) {
  37654. this.updateConstructParser(newValue, oldValue);
  37655. }
  37656. },
  37657. created() {
  37658. this.constructParser();
  37659. },
  37660. methods: {
  37661. getOptions() {
  37662. return {
  37663. localeMatcher: this.localeMatcher,
  37664. style: this.mode,
  37665. currency: this.currency,
  37666. currencyDisplay: this.currencyDisplay,
  37667. useGrouping: this.useGrouping,
  37668. minimumFractionDigits: this.minFractionDigits,
  37669. maximumFractionDigits: this.maxFractionDigits
  37670. };
  37671. },
  37672. constructParser() {
  37673. this.numberFormat = new Intl.NumberFormat(this.locale, this.getOptions());
  37674. const numerals = [...new Intl.NumberFormat(this.locale, {useGrouping: false}).format(9876543210)].reverse();
  37675. const index = new Map(numerals.map((d, i) => [d, i]));
  37676. this._numeral = new RegExp(`[${numerals.join('')}]`, 'g');
  37677. this._group = this.getGroupingExpression();
  37678. this._minusSign = this.getMinusSignExpression();
  37679. this._currency = this.getCurrencyExpression();
  37680. this._decimal = this.getDecimalExpression();
  37681. this._suffix = this.getSuffixExpression();
  37682. this._prefix = this.getPrefixExpression();
  37683. this._index = d => index.get(d);
  37684. },
  37685. updateConstructParser(newValue, oldValue) {
  37686. if (newValue !== oldValue) {
  37687. this.constructParser();
  37688. }
  37689. },
  37690. escapeRegExp(text) {
  37691. return text.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&');
  37692. },
  37693. getDecimalExpression() {
  37694. const formatter = new Intl.NumberFormat(this.locale, {...this.getOptions(), useGrouping: false});
  37695. return new RegExp(`[${formatter.format(1.1).replace(this._currency, '').trim().replace(this._numeral, '')}]`, 'g');
  37696. },
  37697. getGroupingExpression() {
  37698. const formatter = new Intl.NumberFormat(this.locale, {useGrouping: true});
  37699. this.groupChar = formatter.format(1000000).trim().replace(this._numeral, '').charAt(0);
  37700. return new RegExp(`[${this.groupChar}]`, 'g');
  37701. },
  37702. getMinusSignExpression() {
  37703. const formatter = new Intl.NumberFormat(this.locale, {useGrouping: false});
  37704. return new RegExp(`[${formatter.format(-1).trim().replace(this._numeral, '')}]`, 'g');
  37705. },
  37706. getCurrencyExpression() {
  37707. if (this.currency) {
  37708. const formatter = new Intl.NumberFormat(this.locale, {style: 'currency', currency: this.currency, currencyDisplay: this.currencyDisplay,
  37709. minimumFractionDigits: 0, maximumFractionDigits: 0});
  37710. return new RegExp(`[${formatter.format(1).replace(/\s/g, '').replace(this._numeral, '').replace(this._group, '')}]`, 'g');
  37711. }
  37712. return new RegExp(`[]`,'g');
  37713. },
  37714. getPrefixExpression() {
  37715. if (this.prefix) {
  37716. this.prefixChar = this.prefix;
  37717. }
  37718. else {
  37719. const formatter = new Intl.NumberFormat(this.locale, {style: this.mode, currency: this.currency, currencyDisplay: this.currencyDisplay});
  37720. this.prefixChar = formatter.format(1).split('1')[0];
  37721. }
  37722. return new RegExp(`${this.escapeRegExp(this.prefixChar||'')}`, 'g');
  37723. },
  37724. getSuffixExpression() {
  37725. if (this.suffix) {
  37726. this.suffixChar = this.suffix;
  37727. }
  37728. else {
  37729. const formatter = new Intl.NumberFormat(this.locale, {style: this.mode, currency: this.currency, currencyDisplay: this.currencyDisplay,
  37730. minimumFractionDigits: 0, maximumFractionDigits: 0});
  37731. this.suffixChar = formatter.format(1).split('1')[1];
  37732. }
  37733. return new RegExp(`${this.escapeRegExp(this.suffixChar||'')}`, 'g');
  37734. },
  37735. formatValue(value) {
  37736. if (value != null) {
  37737. if (value === '-') { // Minus sign
  37738. return value;
  37739. }
  37740. if (this.format) {
  37741. let formatter = new Intl.NumberFormat(this.locale, this.getOptions());
  37742. let formattedValue = formatter.format(value);
  37743. if (this.prefix) {
  37744. formattedValue = this.prefix + formattedValue;
  37745. }
  37746. if (this.suffix) {
  37747. formattedValue = formattedValue + this.suffix;
  37748. }
  37749. return formattedValue;
  37750. }
  37751. return value.toString();
  37752. }
  37753. return '';
  37754. },
  37755. parseValue(text) {
  37756. let filteredText = text
  37757. .replace(this._suffix, '')
  37758. .replace(this._prefix, '')
  37759. .trim()
  37760. .replace(/\s/g, '')
  37761. .replace(this._currency, '')
  37762. .replace(this._group, '')
  37763. .replace(this._minusSign, '-')
  37764. .replace(this._decimal, '.')
  37765. .replace(this._numeral, this._index);
  37766. if (filteredText) {
  37767. if (filteredText === '-') // Minus sign
  37768. return filteredText;
  37769. let parsedValue = +filteredText;
  37770. return isNaN(parsedValue) ? null : parsedValue;
  37771. }
  37772. return null;
  37773. },
  37774. repeat(event, interval, dir) {
  37775. let i = interval || 500;
  37776. this.clearTimer();
  37777. this.timer = setTimeout(() => {
  37778. this.repeat(event, 40, dir);
  37779. }, i);
  37780. this.spin(event, dir);
  37781. },
  37782. spin(event, dir) {
  37783. if (this.$refs.input) {
  37784. let step = this.step * dir;
  37785. let currentValue = this.parseValue(this.$refs.input.$el.value) || 0;
  37786. let newValue = this.validateValue(currentValue + step);
  37787. this.updateInput(newValue, null, 'spin');
  37788. this.updateModel(event, newValue);
  37789. this.handleOnInput(event, currentValue, newValue);
  37790. }
  37791. },
  37792. onUpButtonMouseDown(event) {
  37793. if (!this.$attrs.disabled) {
  37794. this.$refs.input.$el.focus();
  37795. this.repeat(event, null, 1);
  37796. event.preventDefault();
  37797. }
  37798. },
  37799. onUpButtonMouseUp() {
  37800. if (!this.$attrs.disabled) {
  37801. this.clearTimer();
  37802. }
  37803. },
  37804. onUpButtonMouseLeave() {
  37805. if (!this.$attrs.disabled) {
  37806. this.clearTimer();
  37807. }
  37808. },
  37809. onUpButtonKeyUp() {
  37810. if (!this.$attrs.disabled) {
  37811. this.clearTimer();
  37812. }
  37813. },
  37814. onUpButtonKeyDown(event) {
  37815. if (event.keyCode === 32 || event.keyCode === 13) {
  37816. this.repeat(event, null, 1);
  37817. }
  37818. },
  37819. onDownButtonMouseDown(event) {
  37820. if (!this.$attrs.disabled) {
  37821. this.$refs.input.$el.focus();
  37822. this.repeat(event, null, -1);
  37823. event.preventDefault();
  37824. }
  37825. },
  37826. onDownButtonMouseUp() {
  37827. if (!this.$attrs.disabled) {
  37828. this.clearTimer();
  37829. }
  37830. },
  37831. onDownButtonMouseLeave() {
  37832. if (!this.$attrs.disabled) {
  37833. this.clearTimer();
  37834. }
  37835. },
  37836. onDownButtonKeyUp() {
  37837. if (!this.$attrs.disabled) {
  37838. this.clearTimer();
  37839. }
  37840. },
  37841. onDownButtonKeyDown(event) {
  37842. if (event.keyCode === 32 || event.keyCode === 13) {
  37843. this.repeat(event, null, -1);
  37844. }
  37845. },
  37846. onUserInput() {
  37847. if (this.isSpecialChar) {
  37848. this.$refs.input.$el.value = this.lastValue;
  37849. }
  37850. this.isSpecialChar = false;
  37851. },
  37852. onInputKeyDown(event) {
  37853. this.lastValue = event.target.value;
  37854. if (event.shiftKey || event.altKey) {
  37855. this.isSpecialChar = true;
  37856. return;
  37857. }
  37858. let selectionStart = event.target.selectionStart;
  37859. let selectionEnd = event.target.selectionEnd;
  37860. let inputValue = event.target.value;
  37861. let newValueStr = null;
  37862. if (event.altKey) {
  37863. event.preventDefault();
  37864. }
  37865. switch (event.which) {
  37866. //up
  37867. case 38:
  37868. this.spin(event, 1);
  37869. event.preventDefault();
  37870. break;
  37871. //down
  37872. case 40:
  37873. this.spin(event, -1);
  37874. event.preventDefault();
  37875. break;
  37876. //left
  37877. case 37:
  37878. if (!this.isNumeralChar(inputValue.charAt(selectionStart - 1))) {
  37879. event.preventDefault();
  37880. }
  37881. break;
  37882. //right
  37883. case 39:
  37884. if (!this.isNumeralChar(inputValue.charAt(selectionStart))) {
  37885. event.preventDefault();
  37886. }
  37887. break;
  37888. //enter
  37889. case 13:
  37890. newValueStr = this.validateValue(this.parseValue(inputValue));
  37891. this.$refs.input.$el.value = this.formatValue(newValueStr);
  37892. this.$refs.input.$el.setAttribute('aria-valuenow', newValueStr);
  37893. this.updateModel(event, newValueStr);
  37894. break;
  37895. //backspace
  37896. case 8: {
  37897. event.preventDefault();
  37898. if (selectionStart === selectionEnd) {
  37899. const deleteChar = inputValue.charAt(selectionStart - 1);
  37900. const { decimalCharIndex, decimalCharIndexWithoutPrefix } = this.getDecimalCharIndexes(inputValue);
  37901. if (this.isNumeralChar(deleteChar)) {
  37902. const decimalLength = this.getDecimalLength(inputValue);
  37903. if (this._group.test(deleteChar)) {
  37904. this._group.lastIndex = 0;
  37905. newValueStr = inputValue.slice(0, selectionStart - 2) + inputValue.slice(selectionStart - 1);
  37906. }
  37907. else if (this._decimal.test(deleteChar)) {
  37908. this._decimal.lastIndex = 0;
  37909. if (decimalLength) {
  37910. this.$refs.input.$el.setSelectionRange(selectionStart - 1, selectionStart - 1);
  37911. }
  37912. else {
  37913. newValueStr = inputValue.slice(0, selectionStart - 1) + inputValue.slice(selectionStart);
  37914. }
  37915. }
  37916. else if (decimalCharIndex > 0 && selectionStart > decimalCharIndex) {
  37917. const insertedText = this.isDecimalMode() && (this.minFractionDigits || 0) < decimalLength ? '' : '0';
  37918. newValueStr = inputValue.slice(0, selectionStart - 1) + insertedText + inputValue.slice(selectionStart);
  37919. }
  37920. else if (decimalCharIndexWithoutPrefix === 1) {
  37921. newValueStr = inputValue.slice(0, selectionStart - 1) + '0' + inputValue.slice(selectionStart);
  37922. newValueStr = this.parseValue(newValueStr) > 0 ? newValueStr : '';
  37923. }
  37924. else {
  37925. newValueStr = inputValue.slice(0, selectionStart - 1) + inputValue.slice(selectionStart);
  37926. }
  37927. }
  37928. this.updateValue(event, newValueStr, null, 'delete-single');
  37929. }
  37930. else {
  37931. newValueStr = this.deleteRange(inputValue, selectionStart, selectionEnd);
  37932. this.updateValue(event, newValueStr, null, 'delete-range');
  37933. }
  37934. break;
  37935. }
  37936. // del
  37937. case 46:
  37938. event.preventDefault();
  37939. if (selectionStart === selectionEnd) {
  37940. const deleteChar = inputValue.charAt(selectionStart);
  37941. const { decimalCharIndex, decimalCharIndexWithoutPrefix } = this.getDecimalCharIndexes(inputValue);
  37942. if (this.isNumeralChar(deleteChar)) {
  37943. const decimalLength = this.getDecimalLength(inputValue);
  37944. if (this._group.test(deleteChar)) {
  37945. this._group.lastIndex = 0;
  37946. newValueStr = inputValue.slice(0, selectionStart) + inputValue.slice(selectionStart + 2);
  37947. }
  37948. else if (this._decimal.test(deleteChar)) {
  37949. this._decimal.lastIndex = 0;
  37950. if (decimalLength) {
  37951. this.$refs.input.$el.setSelectionRange(selectionStart + 1, selectionStart + 1);
  37952. }
  37953. else {
  37954. newValueStr = inputValue.slice(0, selectionStart) + inputValue.slice(selectionStart + 1);
  37955. }
  37956. }
  37957. else if (decimalCharIndex > 0 && selectionStart > decimalCharIndex) {
  37958. const insertedText = this.isDecimalMode() && (this.minFractionDigits || 0) < decimalLength ? '' : '0';
  37959. newValueStr = inputValue.slice(0, selectionStart) + insertedText + inputValue.slice(selectionStart + 1);
  37960. }
  37961. else if (decimalCharIndexWithoutPrefix === 1) {
  37962. newValueStr = inputValue.slice(0, selectionStart) + '0' + inputValue.slice(selectionStart + 1);
  37963. newValueStr = this.parseValue(newValueStr) > 0 ? newValueStr : '';
  37964. }
  37965. else {
  37966. newValueStr = inputValue.slice(0, selectionStart) + inputValue.slice(selectionStart + 1);
  37967. }
  37968. }
  37969. this.updateValue(event, newValueStr, null, 'delete-back-single');
  37970. }
  37971. else {
  37972. newValueStr = this.deleteRange(inputValue, selectionStart, selectionEnd);
  37973. this.updateValue(event, newValueStr, null, 'delete-range');
  37974. }
  37975. break;
  37976. }
  37977. },
  37978. onInputKeyPress(event) {
  37979. event.preventDefault();
  37980. let code = event.which || event.keyCode;
  37981. let char = String.fromCharCode(code);
  37982. const isDecimalSign = this.isDecimalSign(char);
  37983. const isMinusSign = this.isMinusSign(char);
  37984. if ((48 <= code && code <= 57) || isMinusSign || isDecimalSign) {
  37985. this.insert(event, char, { isDecimalSign, isMinusSign });
  37986. }
  37987. },
  37988. onPaste(event) {
  37989. event.preventDefault();
  37990. let data = (event.clipboardData || window['clipboardData']).getData('Text');
  37991. if (data) {
  37992. let filteredData = this.parseValue(data);
  37993. if (filteredData != null) {
  37994. this.insert(event, filteredData.toString());
  37995. }
  37996. }
  37997. },
  37998. allowMinusSign() {
  37999. return this.min === null || this.min < 0;
  38000. },
  38001. isMinusSign(char) {
  38002. if (this._minusSign.test(char) || char === '-') {
  38003. this._minusSign.lastIndex = 0;
  38004. return true;
  38005. }
  38006. return false;
  38007. },
  38008. isDecimalSign(char) {
  38009. if (this._decimal.test(char)) {
  38010. this._decimal.lastIndex = 0;
  38011. return true;
  38012. }
  38013. return false;
  38014. },
  38015. isDecimalMode() {
  38016. return this.mode === 'decimal';
  38017. },
  38018. getDecimalCharIndexes(val) {
  38019. let decimalCharIndex = val.search(this._decimal);
  38020. this._decimal.lastIndex = 0;
  38021. const filteredVal = val.replace(this._prefix, '').trim().replace(/\s/g, '').replace(this._currency, '');
  38022. const decimalCharIndexWithoutPrefix = filteredVal.search(this._decimal);
  38023. this._decimal.lastIndex = 0;
  38024. return { decimalCharIndex, decimalCharIndexWithoutPrefix };
  38025. },
  38026. getCharIndexes(val) {
  38027. const decimalCharIndex = val.search(this._decimal);
  38028. this._decimal.lastIndex = 0;
  38029. const minusCharIndex = val.search(this._minusSign);
  38030. this._minusSign.lastIndex = 0;
  38031. const suffixCharIndex = val.search(this._suffix);
  38032. this._suffix.lastIndex = 0;
  38033. const currencyCharIndex = val.search(this._currency);
  38034. this._currency.lastIndex = 0;
  38035. return { decimalCharIndex, minusCharIndex, suffixCharIndex, currencyCharIndex };
  38036. },
  38037. insert(event, text, sign = { isDecimalSign: false, isMinusSign: false }) {
  38038. const minusCharIndexOnText = text.search(this._minusSign);
  38039. this._minusSign.lastIndex = 0;
  38040. if (!this.allowMinusSign() && minusCharIndexOnText !== -1) {
  38041. return;
  38042. }
  38043. const selectionStart = this.$refs.input.$el.selectionStart;
  38044. const selectionEnd = this.$refs.input.$el.selectionEnd;
  38045. let inputValue = this.$refs.input.$el.value.trim();
  38046. const { decimalCharIndex, minusCharIndex, suffixCharIndex, currencyCharIndex } = this.getCharIndexes(inputValue);
  38047. let newValueStr;
  38048. if (sign.isMinusSign) {
  38049. if (selectionStart === 0) {
  38050. newValueStr = inputValue;
  38051. if (minusCharIndex === -1 || selectionEnd !== 0) {
  38052. newValueStr = this.insertText(inputValue, text, 0, selectionEnd);
  38053. }
  38054. this.updateValue(event, newValueStr, text, 'insert');
  38055. }
  38056. }
  38057. else if (sign.isDecimalSign) {
  38058. if (decimalCharIndex > 0 && selectionStart === decimalCharIndex) {
  38059. this.updateValue(event, inputValue, text, 'insert');
  38060. }
  38061. else if (decimalCharIndex > selectionStart && decimalCharIndex < selectionEnd) {
  38062. newValueStr = this.insertText(inputValue, text, selectionStart, selectionEnd);
  38063. this.updateValue(event, newValueStr, text, 'insert');
  38064. }
  38065. else if (decimalCharIndex === -1 && this.maxFractionDigits) {
  38066. newValueStr = this.insertText(inputValue, text, selectionStart, selectionEnd);
  38067. this.updateValue(event, newValueStr, text, 'insert');
  38068. }
  38069. }
  38070. else {
  38071. const maxFractionDigits = this.numberFormat.resolvedOptions().maximumFractionDigits;
  38072. const operation = selectionStart !== selectionEnd ? 'range-insert' : 'insert';
  38073. if (decimalCharIndex > 0 && selectionStart > decimalCharIndex) {
  38074. if ((selectionStart + text.length - (decimalCharIndex + 1)) <= maxFractionDigits) {
  38075. const charIndex = currencyCharIndex >= selectionStart ? currencyCharIndex - 1 : (suffixCharIndex >= selectionStart ? suffixCharIndex : inputValue.length);
  38076. newValueStr = inputValue.slice(0, selectionStart) + text + inputValue.slice(selectionStart + text.length, charIndex) + inputValue.slice(charIndex);
  38077. this.updateValue(event, newValueStr, text, operation);
  38078. }
  38079. }
  38080. else {
  38081. newValueStr = this.insertText(inputValue, text, selectionStart, selectionEnd);
  38082. this.updateValue(event, newValueStr, text, operation);
  38083. }
  38084. }
  38085. },
  38086. insertText(value, text, start, end) {
  38087. let textSplit = text === '.' ? text : text.split('.');
  38088. if (textSplit.length === 2) {
  38089. const decimalCharIndex = value.slice(start, end).search(this._decimal);
  38090. this._decimal.lastIndex = 0;
  38091. return (decimalCharIndex > 0) ? value.slice(0, start) + this.formatValue(text) + value.slice(end) : (value || this.formatValue(text));
  38092. }
  38093. else if ((end - start) === value.length) {
  38094. return this.formatValue(text);
  38095. }
  38096. else if (start === 0) {
  38097. return text + value.slice(end);
  38098. }
  38099. else if (end === value.length) {
  38100. return value.slice(0, start) + text;
  38101. }
  38102. else {
  38103. return value.slice(0, start) + text + value.slice(end);
  38104. }
  38105. },
  38106. deleteRange(value, start, end) {
  38107. let newValueStr;
  38108. if ((end - start) === value.length)
  38109. newValueStr = '';
  38110. else if (start === 0)
  38111. newValueStr = value.slice(end);
  38112. else if (end === value.length)
  38113. newValueStr = value.slice(0, start);
  38114. else
  38115. newValueStr = value.slice(0, start) + value.slice(end);
  38116. return newValueStr;
  38117. },
  38118. initCursor() {
  38119. let selectionStart = this.$refs.input.$el.selectionStart;
  38120. let inputValue = this.$refs.input.$el.value;
  38121. let valueLength = inputValue.length;
  38122. let index = null;
  38123. // remove prefix
  38124. let prefixLength = (this.prefixChar || '').length;
  38125. inputValue = inputValue.replace(this._prefix, '');
  38126. selectionStart = selectionStart - prefixLength;
  38127. let char = inputValue.charAt(selectionStart);
  38128. if (this.isNumeralChar(char)) {
  38129. return selectionStart + prefixLength;
  38130. }
  38131. //left
  38132. let i = selectionStart - 1;
  38133. while (i >= 0) {
  38134. char = inputValue.charAt(i);
  38135. if (this.isNumeralChar(char)) {
  38136. index = i + prefixLength;
  38137. break;
  38138. }
  38139. else {
  38140. i--;
  38141. }
  38142. }
  38143. if (index !== null) {
  38144. this.$refs.input.$el.setSelectionRange(index + 1, index + 1);
  38145. }
  38146. else {
  38147. i = selectionStart;
  38148. while (i < valueLength) {
  38149. char = inputValue.charAt(i);
  38150. if (this.isNumeralChar(char)) {
  38151. index = i + prefixLength;
  38152. break;
  38153. }
  38154. else {
  38155. i++;
  38156. }
  38157. }
  38158. if (index !== null) {
  38159. this.$refs.input.$el.setSelectionRange(index, index);
  38160. }
  38161. }
  38162. return index || 0;
  38163. },
  38164. onInputClick() {
  38165. this.initCursor();
  38166. },
  38167. isNumeralChar(char) {
  38168. if (char.length === 1 && (this._numeral.test(char) || this._decimal.test(char) || this._group.test(char) || this._minusSign.test(char))) {
  38169. this.resetRegex();
  38170. return true;
  38171. }
  38172. return false;
  38173. },
  38174. resetRegex() {
  38175. this._numeral.lastIndex = 0;
  38176. this._decimal.lastIndex = 0;
  38177. this._group.lastIndex = 0;
  38178. this._minusSign.lastIndex = 0;
  38179. },
  38180. updateValue(event, valueStr, insertedValueStr, operation) {
  38181. let currentValue = this.$refs.input.$el.value;
  38182. let newValue = null;
  38183. if (valueStr != null) {
  38184. newValue = this.parseValue(valueStr);
  38185. newValue = !newValue && !this.allowEmpty ? 0 : newValue;
  38186. this.updateInput(newValue, insertedValueStr, operation, valueStr);
  38187. this.handleOnInput(event, currentValue, newValue);
  38188. }
  38189. },
  38190. handleOnInput(event, currentValue, newValue) {
  38191. if (this.isValueChanged(currentValue, newValue)) {
  38192. this.$emit('input', { originalEvent: event, value: newValue });
  38193. }
  38194. },
  38195. isValueChanged(currentValue, newValue) {
  38196. if (newValue === null && currentValue !== null) {
  38197. return true;
  38198. }
  38199. if (newValue != null) {
  38200. let parsedCurrentValue = (typeof currentValue === 'string') ? this.parseValue(currentValue) : currentValue;
  38201. return newValue !== parsedCurrentValue;
  38202. }
  38203. return false;
  38204. },
  38205. validateValue(value) {
  38206. if (value === '-' || value == null) {
  38207. return null;
  38208. }
  38209. if (this.min != null && value < this.min) {
  38210. return this.min;
  38211. }
  38212. if (this.max != null && value > this.max) {
  38213. return this.max;
  38214. }
  38215. return value;
  38216. },
  38217. updateInput(value, insertedValueStr, operation, valueStr) {
  38218. insertedValueStr = insertedValueStr || '';
  38219. let inputValue = this.$refs.input.$el.value;
  38220. let newValue = this.formatValue(value);
  38221. let currentLength = inputValue.length;
  38222. if (newValue !== valueStr) {
  38223. newValue = this.concatValues(newValue, valueStr);
  38224. }
  38225. if (currentLength === 0) {
  38226. this.$refs.input.$el.value = newValue;
  38227. this.$refs.input.$el.setSelectionRange(0, 0);
  38228. const index = this.initCursor();
  38229. const selectionEnd = index + insertedValueStr.length;
  38230. this.$refs.input.$el.setSelectionRange(selectionEnd, selectionEnd);
  38231. }
  38232. else {
  38233. let selectionStart = this.$refs.input.$el.selectionStart;
  38234. let selectionEnd = this.$refs.input.$el.selectionEnd;
  38235. this.$refs.input.$el.value = newValue;
  38236. let newLength = newValue.length;
  38237. if (operation === 'range-insert') {
  38238. const startValue = this.parseValue((inputValue || '').slice(0, selectionStart));
  38239. const startValueStr = startValue !== null ? startValue.toString() : '';
  38240. const startExpr = startValueStr.split('').join(`(${this.groupChar})?`);
  38241. const sRegex = new RegExp(startExpr, 'g');
  38242. sRegex.test(newValue);
  38243. const tExpr = insertedValueStr.split('').join(`(${this.groupChar})?`);
  38244. const tRegex = new RegExp(tExpr, 'g');
  38245. tRegex.test(newValue.slice(sRegex.lastIndex));
  38246. selectionEnd = sRegex.lastIndex + tRegex.lastIndex;
  38247. this.$refs.input.$el.setSelectionRange(selectionEnd, selectionEnd);
  38248. }
  38249. else if (newLength === currentLength) {
  38250. if (operation === 'insert' || operation === 'delete-back-single')
  38251. this.$refs.input.$el.setSelectionRange(selectionEnd + 1, selectionEnd + 1);
  38252. else if (operation === 'delete-single')
  38253. this.$refs.input.$el.setSelectionRange(selectionEnd - 1, selectionEnd - 1);
  38254. else if (operation === 'delete-range' || operation === 'spin')
  38255. this.$refs.input.$el.setSelectionRange(selectionEnd, selectionEnd);
  38256. }
  38257. else if (operation === 'delete-back-single') {
  38258. let prevChar = inputValue.charAt(selectionEnd - 1);
  38259. let nextChar = inputValue.charAt(selectionEnd);
  38260. let diff = currentLength - newLength;
  38261. let isGroupChar = this._group.test(nextChar);
  38262. if (isGroupChar && diff === 1) {
  38263. selectionEnd += 1;
  38264. }
  38265. else if (!isGroupChar && this.isNumeralChar(prevChar)) {
  38266. selectionEnd += (-1 * diff) + 1;
  38267. }
  38268. this._group.lastIndex = 0;
  38269. this.$refs.input.$el.setSelectionRange(selectionEnd, selectionEnd);
  38270. }
  38271. else if (inputValue === '-' && operation === 'insert') {
  38272. this.$refs.input.$el.setSelectionRange(0, 0);
  38273. const index = this.initCursor();
  38274. const selectionEnd = index + insertedValueStr.length + 1;
  38275. this.$refs.input.$el.setSelectionRange(selectionEnd, selectionEnd);
  38276. }
  38277. else {
  38278. selectionEnd = selectionEnd + (newLength - currentLength);
  38279. this.$refs.input.$el.setSelectionRange(selectionEnd, selectionEnd);
  38280. }
  38281. }
  38282. this.$refs.input.$el.setAttribute('aria-valuenow', value);
  38283. },
  38284. concatValues(val1, val2) {
  38285. if (val1 && val2) {
  38286. let decimalCharIndex = val2.search(this._decimal);
  38287. this._decimal.lastIndex = 0;
  38288. return decimalCharIndex !== -1 ? (val1.split(this._decimal)[0] + val2.slice(decimalCharIndex)) : val1;
  38289. }
  38290. return val1;
  38291. },
  38292. getDecimalLength(value) {
  38293. if (value) {
  38294. const valueSplit = value.split(this._decimal);
  38295. if (valueSplit.length === 2) {
  38296. return valueSplit[1].replace(this._suffix, '')
  38297. .trim()
  38298. .replace(/\s/g, '')
  38299. .replace(this._currency, '').length;
  38300. }
  38301. }
  38302. return 0;
  38303. },
  38304. updateModel(event, value) {
  38305. this.d_modelValue = value;
  38306. this.$emit('update:modelValue', value);
  38307. },
  38308. onInputFocus(event) {
  38309. this.focused = true;
  38310. this.$emit('focus', event);
  38311. },
  38312. onInputBlur(event) {
  38313. this.focused = false;
  38314. let input = event.target;
  38315. let newValue = this.validateValue(this.parseValue(input.value));
  38316. this.$emit('blur', { originalEvent: event, value: input.value});
  38317. input.value = this.formatValue(newValue);
  38318. input.setAttribute('aria-valuenow', newValue);
  38319. this.updateModel(event, newValue);
  38320. },
  38321. clearTimer() {
  38322. if (this.timer) {
  38323. clearInterval(this.timer);
  38324. }
  38325. },
  38326. maxBoundry() {
  38327. return this.d_modelValue >= this.max;
  38328. },
  38329. minBoundry() {
  38330. return this.d_modelValue <= this.min;
  38331. },
  38332. },
  38333. computed: {
  38334. containerClass() {
  38335. return ['p-inputnumber p-component p-inputwrapper', this.class, {
  38336. 'p-inputwrapper-filled': this.filled,
  38337. 'p-inputwrapper-focus': this.focused,
  38338. 'p-inputnumber-buttons-stacked': this.showButtons && this.buttonLayout === 'stacked',
  38339. 'p-inputnumber-buttons-horizontal': this.showButtons && this.buttonLayout === 'horizontal',
  38340. 'p-inputnumber-buttons-vertical': this.showButtons && this.buttonLayout === 'vertical'
  38341. }];
  38342. },
  38343. upButtonClass() {
  38344. return ['p-inputnumber-button p-inputnumber-button-up', this.incrementButtonClass, {
  38345. 'p-disabled': this.showButtons && this.max !== null && this.maxBoundry()
  38346. }];
  38347. },
  38348. downButtonClass() {
  38349. return ['p-inputnumber-button p-inputnumber-button-down', this.decrementButtonClass, {
  38350. 'p-disabled': this.showButtons && this.min !== null && this.minBoundry()
  38351. }];
  38352. },
  38353. filled() {
  38354. return (this.modelValue != null && this.modelValue.toString().length > 0)
  38355. },
  38356. upButtonListeners() {
  38357. return {
  38358. mousedown: event => this.onUpButtonMouseDown(event),
  38359. mouseup: event => this.onUpButtonMouseUp(event),
  38360. mouseleave: event => this.onUpButtonMouseLeave(event),
  38361. keydown: event => this.onUpButtonKeyDown(event),
  38362. keyup: event => this.onUpButtonKeyUp(event)
  38363. }
  38364. },
  38365. downButtonListeners() {
  38366. return {
  38367. mousedown: event => this.onDownButtonMouseDown(event),
  38368. mouseup: event => this.onDownButtonMouseUp(event),
  38369. mouseleave: event => this.onDownButtonMouseLeave(event),
  38370. keydown: event => this.onDownButtonKeyDown(event),
  38371. keyup: event => this.onDownButtonKeyUp(event)
  38372. }
  38373. },
  38374. formattedValue() {
  38375. const val = !this.modelValue && !this.allowEmpty ? 0 : this.modelValue;
  38376. return this.formatValue(val);
  38377. },
  38378. getFormatter() {
  38379. return this.numberFormat;
  38380. }
  38381. },
  38382. components: {
  38383. 'INInputText': primevue_inputtext__WEBPACK_IMPORTED_MODULE_0__["default"],
  38384. 'INButton': primevue_button__WEBPACK_IMPORTED_MODULE_1__["default"]
  38385. }
  38386. };
  38387. const _hoisted_1 = {
  38388. key: 0,
  38389. class: "p-inputnumber-button-group"
  38390. };
  38391. function render(_ctx, _cache, $props, $setup, $data, $options) {
  38392. const _component_INInputText = (0,vue__WEBPACK_IMPORTED_MODULE_2__.resolveComponent)("INInputText");
  38393. const _component_INButton = (0,vue__WEBPACK_IMPORTED_MODULE_2__.resolveComponent)("INButton");
  38394. return ((0,vue__WEBPACK_IMPORTED_MODULE_2__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_2__.createBlock)("span", {
  38395. class: $options.containerClass,
  38396. style: $props.style
  38397. }, [
  38398. (0,vue__WEBPACK_IMPORTED_MODULE_2__.createVNode)(_component_INInputText, (0,vue__WEBPACK_IMPORTED_MODULE_2__.mergeProps)({
  38399. ref: "input",
  38400. class: ['p-inputnumber-input', $props.inputClass],
  38401. style: $props.inputStyle,
  38402. value: $options.formattedValue
  38403. }, _ctx.$attrs, {
  38404. "aria-valumin": $props.min,
  38405. "aria-valuemax": $props.max,
  38406. onInput: $options.onUserInput,
  38407. onKeydown: $options.onInputKeyDown,
  38408. onKeypress: $options.onInputKeyPress,
  38409. onPaste: $options.onPaste,
  38410. onClick: $options.onInputClick,
  38411. onFocus: $options.onInputFocus,
  38412. onBlur: $options.onInputBlur
  38413. }), null, 16, ["class", "style", "value", "aria-valumin", "aria-valuemax", "onInput", "onKeydown", "onKeypress", "onPaste", "onClick", "onFocus", "onBlur"]),
  38414. ($props.showButtons && $props.buttonLayout === 'stacked')
  38415. ? ((0,vue__WEBPACK_IMPORTED_MODULE_2__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_2__.createBlock)("span", _hoisted_1, [
  38416. (0,vue__WEBPACK_IMPORTED_MODULE_2__.createVNode)(_component_INButton, (0,vue__WEBPACK_IMPORTED_MODULE_2__.mergeProps)({
  38417. class: $options.upButtonClass,
  38418. icon: $props.incrementButtonIcon
  38419. }, (0,vue__WEBPACK_IMPORTED_MODULE_2__.toHandlers)($options.upButtonListeners), {
  38420. disabled: _ctx.$attrs.disabled
  38421. }), null, 16, ["class", "icon", "disabled"]),
  38422. (0,vue__WEBPACK_IMPORTED_MODULE_2__.createVNode)(_component_INButton, (0,vue__WEBPACK_IMPORTED_MODULE_2__.mergeProps)({
  38423. class: $options.downButtonClass,
  38424. icon: $props.decrementButtonIcon
  38425. }, (0,vue__WEBPACK_IMPORTED_MODULE_2__.toHandlers)($options.downButtonListeners), {
  38426. disabled: _ctx.$attrs.disabled
  38427. }), null, 16, ["class", "icon", "disabled"])
  38428. ]))
  38429. : (0,vue__WEBPACK_IMPORTED_MODULE_2__.createCommentVNode)("", true),
  38430. ($props.showButtons && $props.buttonLayout !== 'stacked')
  38431. ? ((0,vue__WEBPACK_IMPORTED_MODULE_2__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_2__.createBlock)(_component_INButton, (0,vue__WEBPACK_IMPORTED_MODULE_2__.mergeProps)({
  38432. key: 1,
  38433. class: $options.upButtonClass,
  38434. icon: $props.incrementButtonIcon
  38435. }, (0,vue__WEBPACK_IMPORTED_MODULE_2__.toHandlers)($options.upButtonListeners), {
  38436. disabled: _ctx.$attrs.disabled
  38437. }), null, 16, ["class", "icon", "disabled"]))
  38438. : (0,vue__WEBPACK_IMPORTED_MODULE_2__.createCommentVNode)("", true),
  38439. ($props.showButtons && $props.buttonLayout !== 'stacked')
  38440. ? ((0,vue__WEBPACK_IMPORTED_MODULE_2__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_2__.createBlock)(_component_INButton, (0,vue__WEBPACK_IMPORTED_MODULE_2__.mergeProps)({
  38441. key: 2,
  38442. class: $options.downButtonClass,
  38443. icon: $props.decrementButtonIcon
  38444. }, (0,vue__WEBPACK_IMPORTED_MODULE_2__.toHandlers)($options.downButtonListeners), {
  38445. disabled: _ctx.$attrs.disabled
  38446. }), null, 16, ["class", "icon", "disabled"]))
  38447. : (0,vue__WEBPACK_IMPORTED_MODULE_2__.createCommentVNode)("", true)
  38448. ], 6))
  38449. }
  38450. function styleInject(css, ref) {
  38451. if ( ref === void 0 ) ref = {};
  38452. var insertAt = ref.insertAt;
  38453. if (!css || typeof document === 'undefined') { return; }
  38454. var head = document.head || document.getElementsByTagName('head')[0];
  38455. var style = document.createElement('style');
  38456. style.type = 'text/css';
  38457. if (insertAt === 'top') {
  38458. if (head.firstChild) {
  38459. head.insertBefore(style, head.firstChild);
  38460. } else {
  38461. head.appendChild(style);
  38462. }
  38463. } else {
  38464. head.appendChild(style);
  38465. }
  38466. if (style.styleSheet) {
  38467. style.styleSheet.cssText = css;
  38468. } else {
  38469. style.appendChild(document.createTextNode(css));
  38470. }
  38471. }
  38472. var css_248z = "\n.p-inputnumber {\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n}\n.p-inputnumber-button {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-box-flex: 0;\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n}\n.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button .p-button-label,\n.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button .p-button-label {\n display: none;\n}\n.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button-up {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n padding: 0;\n}\n.p-inputnumber-buttons-stacked .p-inputnumber-input {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button-down {\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n border-bottom-left-radius: 0;\n padding: 0;\n}\n.p-inputnumber-buttons-stacked .p-inputnumber-button-group {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n}\n.p-inputnumber-buttons-stacked .p-inputnumber-button-group .p-button.p-inputnumber-button {\n -webkit-box-flex: 1;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n}\n.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button-up {\n -webkit-box-ordinal-group: 4;\n -ms-flex-order: 3;\n order: 3;\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n.p-inputnumber-buttons-horizontal .p-inputnumber-input {\n -webkit-box-ordinal-group: 3;\n -ms-flex-order: 2;\n order: 2;\n border-radius: 0;\n}\n.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button-down {\n -webkit-box-ordinal-group: 2;\n -ms-flex-order: 1;\n order: 1;\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n.p-inputnumber-buttons-vertical {\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n}\n.p-inputnumber-buttons-vertical .p-button.p-inputnumber-button-up {\n -webkit-box-ordinal-group: 2;\n -ms-flex-order: 1;\n order: 1;\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n width: 100%;\n}\n.p-inputnumber-buttons-vertical .p-inputnumber-input {\n -webkit-box-ordinal-group: 3;\n -ms-flex-order: 2;\n order: 2;\n border-radius: 0;\n text-align: center;\n}\n.p-inputnumber-buttons-vertical .p-button.p-inputnumber-button-down {\n -webkit-box-ordinal-group: 4;\n -ms-flex-order: 3;\n order: 3;\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n width: 100%;\n}\n.p-inputnumber-input {\n -webkit-box-flex: 1;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n}\n.p-fluid .p-inputnumber {\n width: 100%;\n}\n.p-fluid .p-inputnumber .p-inputnumber-input {\n width: 1%;\n}\n.p-fluid .p-inputnumber-buttons-vertical .p-inputnumber-input {\n width: 100%;\n}\n";
  38473. styleInject(css_248z);
  38474. script.render = render;
  38475. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (script);
  38476. /***/ }),
  38477. /***/ "./node_modules/primevue/inputtext/inputtext.esm.js":
  38478. /*!**********************************************************!*\
  38479. !*** ./node_modules/primevue/inputtext/inputtext.esm.js ***!
  38480. \**********************************************************/
  38481. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  38482. "use strict";
  38483. __webpack_require__.r(__webpack_exports__);
  38484. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  38485. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  38486. /* harmony export */ });
  38487. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js");
  38488. var script = {
  38489. name: 'InputText',
  38490. emits: ['update:modelValue'],
  38491. props: {
  38492. modelValue: null
  38493. },
  38494. methods: {
  38495. onInput(event) {
  38496. this.$emit('update:modelValue', event.target.value);
  38497. }
  38498. },
  38499. computed: {
  38500. filled() {
  38501. return (this.modelValue != null && this.modelValue.toString().length > 0)
  38502. }
  38503. }
  38504. };
  38505. function render(_ctx, _cache, $props, $setup, $data, $options) {
  38506. return ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)("input", (0,vue__WEBPACK_IMPORTED_MODULE_0__.mergeProps)({
  38507. class: ['p-inputtext p-component', {'p-filled': $options.filled}],
  38508. value: $props.modelValue,
  38509. onInput: _cache[1] || (_cache[1] = (...args) => ($options.onInput && $options.onInput(...args)))
  38510. }, _ctx.$attrs), null, 16, ["value"]))
  38511. }
  38512. script.render = render;
  38513. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (script);
  38514. /***/ }),
  38515. /***/ "./node_modules/primevue/message/message.esm.js":
  38516. /*!******************************************************!*\
  38517. !*** ./node_modules/primevue/message/message.esm.js ***!
  38518. \******************************************************/
  38519. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  38520. "use strict";
  38521. __webpack_require__.r(__webpack_exports__);
  38522. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  38523. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  38524. /* harmony export */ });
  38525. /* harmony import */ var primevue_ripple__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! primevue/ripple */ "./node_modules/primevue/ripple/ripple.esm.js");
  38526. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js");
  38527. var script = {
  38528. name: 'Message',
  38529. emits: ['close'],
  38530. props: {
  38531. severity: {
  38532. type: String,
  38533. default: 'info'
  38534. },
  38535. closable: {
  38536. type: Boolean,
  38537. default: true
  38538. },
  38539. sticky: {
  38540. type: Boolean,
  38541. default: true
  38542. },
  38543. life: {
  38544. type: Number,
  38545. default: 3000
  38546. },
  38547. icon: {
  38548. type: String,
  38549. default: null
  38550. },
  38551. },
  38552. timeout: null,
  38553. data() {
  38554. return {
  38555. visible: true
  38556. }
  38557. },
  38558. mounted() {
  38559. if (!this.sticky) {
  38560. setTimeout(() => {
  38561. this.visible = false;
  38562. }, this.life);
  38563. }
  38564. },
  38565. methods: {
  38566. close(event) {
  38567. this.visible = false;
  38568. this.$emit('close', event);
  38569. }
  38570. },
  38571. computed: {
  38572. containerClass() {
  38573. return 'p-message p-component p-message-' + this.severity;
  38574. },
  38575. iconClass() {
  38576. return ['p-message-icon pi', this.icon ? this.icon : {
  38577. 'pi-info-circle': this.severity === 'info',
  38578. 'pi-check': this.severity === 'success',
  38579. 'pi-exclamation-triangle': this.severity === 'warn',
  38580. 'pi-times-circle': this.severity === 'error'
  38581. }];
  38582. }
  38583. },
  38584. directives: {
  38585. 'ripple': primevue_ripple__WEBPACK_IMPORTED_MODULE_0__["default"]
  38586. }
  38587. };
  38588. const _hoisted_1 = { class: "p-message-wrapper" };
  38589. const _hoisted_2 = { class: "p-message-text" };
  38590. const _hoisted_3 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_1__.createVNode)("i", { class: "p-message-close-icon pi pi-times" }, null, -1);
  38591. function render(_ctx, _cache, $props, $setup, $data, $options) {
  38592. const _directive_ripple = (0,vue__WEBPACK_IMPORTED_MODULE_1__.resolveDirective)("ripple");
  38593. return ((0,vue__WEBPACK_IMPORTED_MODULE_1__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_1__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_1__.Transition, {
  38594. name: "p-message",
  38595. appear: ""
  38596. }, {
  38597. default: (0,vue__WEBPACK_IMPORTED_MODULE_1__.withCtx)(() => [
  38598. (0,vue__WEBPACK_IMPORTED_MODULE_1__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_1__.createVNode)("div", {
  38599. class: $options.containerClass,
  38600. role: "alert"
  38601. }, [
  38602. (0,vue__WEBPACK_IMPORTED_MODULE_1__.createVNode)("div", _hoisted_1, [
  38603. (0,vue__WEBPACK_IMPORTED_MODULE_1__.createVNode)("span", { class: $options.iconClass }, null, 2),
  38604. (0,vue__WEBPACK_IMPORTED_MODULE_1__.createVNode)("div", _hoisted_2, [
  38605. (0,vue__WEBPACK_IMPORTED_MODULE_1__.renderSlot)(_ctx.$slots, "default")
  38606. ]),
  38607. ($props.closable)
  38608. ? (0,vue__WEBPACK_IMPORTED_MODULE_1__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_1__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_1__.createBlock)("button", {
  38609. key: 0,
  38610. class: "p-message-close p-link",
  38611. onClick: _cache[1] || (_cache[1] = $event => ($options.close($event))),
  38612. type: "button"
  38613. }, [
  38614. _hoisted_3
  38615. ], 512)), [
  38616. [_directive_ripple]
  38617. ])
  38618. : (0,vue__WEBPACK_IMPORTED_MODULE_1__.createCommentVNode)("", true)
  38619. ])
  38620. ], 2), [
  38621. [vue__WEBPACK_IMPORTED_MODULE_1__.vShow, $data.visible]
  38622. ])
  38623. ]),
  38624. _: 3
  38625. }))
  38626. }
  38627. function styleInject(css, ref) {
  38628. if ( ref === void 0 ) ref = {};
  38629. var insertAt = ref.insertAt;
  38630. if (!css || typeof document === 'undefined') { return; }
  38631. var head = document.head || document.getElementsByTagName('head')[0];
  38632. var style = document.createElement('style');
  38633. style.type = 'text/css';
  38634. if (insertAt === 'top') {
  38635. if (head.firstChild) {
  38636. head.insertBefore(style, head.firstChild);
  38637. } else {
  38638. head.appendChild(style);
  38639. }
  38640. } else {
  38641. head.appendChild(style);
  38642. }
  38643. if (style.styleSheet) {
  38644. style.styleSheet.cssText = css;
  38645. } else {
  38646. style.appendChild(document.createTextNode(css));
  38647. }
  38648. }
  38649. var css_248z = "\n.p-message-wrapper {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n.p-message-close {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n}\n.p-message-close.p-link {\n margin-left: auto;\n overflow: hidden;\n position: relative;\n}\n.p-message-enter-from {\n opacity: 0;\n}\n.p-message-enter-active {\n -webkit-transition: opacity .3s;\n transition: opacity .3s;\n}\n.p-message.p-message-leave-from {\n max-height: 1000px;\n}\n.p-message.p-message-leave-to {\n max-height: 0;\n opacity: 0;\n margin: 0 !important;\n}\n.p-message-leave-active {\n overflow: hidden;\n -webkit-transition: max-height .3s cubic-bezier(0, 1, 0, 1), opacity .3s, margin .15s;\n transition: max-height .3s cubic-bezier(0, 1, 0, 1), opacity .3s, margin .15s;\n}\n.p-message-leave-active .p-message-close {\n display: none;\n}\n";
  38650. styleInject(css_248z);
  38651. script.render = render;
  38652. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (script);
  38653. /***/ }),
  38654. /***/ "./node_modules/primevue/overlayeventbus/overlayeventbus.esm.js":
  38655. /*!**********************************************************************!*\
  38656. !*** ./node_modules/primevue/overlayeventbus/overlayeventbus.esm.js ***!
  38657. \**********************************************************************/
  38658. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  38659. "use strict";
  38660. __webpack_require__.r(__webpack_exports__);
  38661. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  38662. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  38663. /* harmony export */ });
  38664. /* harmony import */ var primevue_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! primevue/utils */ "./node_modules/primevue/utils/utils.esm.js");
  38665. var OverlayEventBus = (0,primevue_utils__WEBPACK_IMPORTED_MODULE_0__.EventBus)();
  38666. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (OverlayEventBus);
  38667. /***/ }),
  38668. /***/ "./node_modules/primevue/paginator/paginator.esm.js":
  38669. /*!**********************************************************!*\
  38670. !*** ./node_modules/primevue/paginator/paginator.esm.js ***!
  38671. \**********************************************************/
  38672. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  38673. "use strict";
  38674. __webpack_require__.r(__webpack_exports__);
  38675. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  38676. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  38677. /* harmony export */ });
  38678. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js");
  38679. /* harmony import */ var primevue_ripple__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! primevue/ripple */ "./node_modules/primevue/ripple/ripple.esm.js");
  38680. /* harmony import */ var primevue_dropdown__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! primevue/dropdown */ "./node_modules/primevue/dropdown/dropdown.esm.js");
  38681. /* harmony import */ var primevue_inputnumber__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! primevue/inputnumber */ "./node_modules/primevue/inputnumber/inputnumber.esm.js");
  38682. var script$9 = {
  38683. name: 'CurrentPageReport',
  38684. inheritAttrs: false,
  38685. props: {
  38686. pageCount: {
  38687. type: Number,
  38688. default: 0
  38689. },
  38690. currentPage: {
  38691. type: Number,
  38692. default: 0
  38693. },
  38694. page: {
  38695. type: Number,
  38696. default: 0
  38697. },
  38698. first: {
  38699. type: Number,
  38700. default: 0
  38701. },
  38702. rows: {
  38703. type: Number,
  38704. default: 0
  38705. },
  38706. totalRecords: {
  38707. type: Number,
  38708. default: 0
  38709. },
  38710. template: {
  38711. type: String,
  38712. default: '({currentPage} of {totalPages})'
  38713. }
  38714. },
  38715. computed: {
  38716. text() {
  38717. let text = this.template
  38718. .replace("{currentPage}", this.currentPage)
  38719. .replace("{totalPages}", this.pageCount)
  38720. .replace("{first}", this.pageCount > 0 ? this.first + 1 : 0)
  38721. .replace("{last}", Math.min(this.first + this.rows, this.totalRecords))
  38722. .replace("{rows}", this.rows)
  38723. .replace("{totalRecords}", this.totalRecords);
  38724. return text;
  38725. }
  38726. }
  38727. };
  38728. const _hoisted_1$6 = { class: "p-paginator-current" };
  38729. function render$9(_ctx, _cache, $props, $setup, $data, $options) {
  38730. return ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)("span", _hoisted_1$6, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($options.text), 1))
  38731. }
  38732. script$9.render = render$9;
  38733. var script$8 = {
  38734. name: 'FirstPageLink',
  38735. computed: {
  38736. containerClass() {
  38737. return ['p-paginator-first p-paginator-element p-link', {
  38738. 'p-disabled': this.$attrs.disabled
  38739. }];
  38740. }
  38741. },
  38742. directives: {
  38743. 'ripple': primevue_ripple__WEBPACK_IMPORTED_MODULE_1__["default"]
  38744. }
  38745. };
  38746. const _hoisted_1$5 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)("span", { class: "p-paginator-icon pi pi-angle-double-left" }, null, -1);
  38747. function render$8(_ctx, _cache, $props, $setup, $data, $options) {
  38748. const _directive_ripple = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveDirective)("ripple");
  38749. return (0,vue__WEBPACK_IMPORTED_MODULE_0__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)("button", {
  38750. class: $options.containerClass,
  38751. type: "button"
  38752. }, [
  38753. _hoisted_1$5
  38754. ], 2)), [
  38755. [_directive_ripple]
  38756. ])
  38757. }
  38758. script$8.render = render$8;
  38759. var script$7 = {
  38760. name: 'LastPageLink',
  38761. computed: {
  38762. containerClass() {
  38763. return ['p-paginator-last p-paginator-element p-link', {
  38764. 'p-disabled': this.$attrs.disabled
  38765. }];
  38766. }
  38767. },
  38768. directives: {
  38769. 'ripple': primevue_ripple__WEBPACK_IMPORTED_MODULE_1__["default"]
  38770. }
  38771. };
  38772. const _hoisted_1$4 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)("span", { class: "p-paginator-icon pi pi-angle-double-right" }, null, -1);
  38773. function render$7(_ctx, _cache, $props, $setup, $data, $options) {
  38774. const _directive_ripple = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveDirective)("ripple");
  38775. return (0,vue__WEBPACK_IMPORTED_MODULE_0__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)("button", {
  38776. class: $options.containerClass,
  38777. type: "button"
  38778. }, [
  38779. _hoisted_1$4
  38780. ], 2)), [
  38781. [_directive_ripple]
  38782. ])
  38783. }
  38784. script$7.render = render$7;
  38785. var script$6 = {
  38786. name: 'NextPageLink',
  38787. computed: {
  38788. containerClass() {
  38789. return ['p-paginator-next p-paginator-element p-link', {
  38790. 'p-disabled': this.$attrs.disabled
  38791. }];
  38792. }
  38793. },
  38794. directives: {
  38795. 'ripple': primevue_ripple__WEBPACK_IMPORTED_MODULE_1__["default"]
  38796. }
  38797. };
  38798. const _hoisted_1$3 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)("span", { class: "p-paginator-icon pi pi-angle-right" }, null, -1);
  38799. function render$6(_ctx, _cache, $props, $setup, $data, $options) {
  38800. const _directive_ripple = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveDirective)("ripple");
  38801. return (0,vue__WEBPACK_IMPORTED_MODULE_0__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)("button", {
  38802. class: $options.containerClass,
  38803. type: "button"
  38804. }, [
  38805. _hoisted_1$3
  38806. ], 2)), [
  38807. [_directive_ripple]
  38808. ])
  38809. }
  38810. script$6.render = render$6;
  38811. var script$5 = {
  38812. name: 'PageLinks',
  38813. inheritAttrs: false,
  38814. emits: ['click'],
  38815. props: {
  38816. value: Array,
  38817. page: Number
  38818. },
  38819. methods: {
  38820. onPageLinkClick(event, pageLink) {
  38821. this.$emit('click', {
  38822. originalEvent: event,
  38823. value: pageLink
  38824. });
  38825. }
  38826. },
  38827. directives: {
  38828. 'ripple': primevue_ripple__WEBPACK_IMPORTED_MODULE_1__["default"]
  38829. }
  38830. };
  38831. const _hoisted_1$2 = { class: "p-paginator-pages" };
  38832. function render$5(_ctx, _cache, $props, $setup, $data, $options) {
  38833. const _directive_ripple = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveDirective)("ripple");
  38834. return ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)("span", _hoisted_1$2, [
  38835. ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderList)($props.value, (pageLink) => {
  38836. return (0,vue__WEBPACK_IMPORTED_MODULE_0__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)("button", {
  38837. key: pageLink,
  38838. class: ['p-paginator-page p-paginator-element p-link', {'p-highlight': ((pageLink - 1) === $props.page)}],
  38839. type: "button",
  38840. onClick: $event => ($options.onPageLinkClick($event, pageLink))
  38841. }, [
  38842. (0,vue__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(pageLink), 1)
  38843. ], 10, ["onClick"])), [
  38844. [_directive_ripple]
  38845. ])
  38846. }), 128))
  38847. ]))
  38848. }
  38849. script$5.render = render$5;
  38850. var script$4 = {
  38851. name: 'PrevPageLink',
  38852. computed: {
  38853. containerClass() {
  38854. return ['p-paginator-prev p-paginator-element p-link', {
  38855. 'p-disabled': this.$attrs.disabled
  38856. }];
  38857. }
  38858. },
  38859. directives: {
  38860. 'ripple': primevue_ripple__WEBPACK_IMPORTED_MODULE_1__["default"]
  38861. }
  38862. };
  38863. const _hoisted_1$1 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)("span", { class: "p-paginator-icon pi pi-angle-left" }, null, -1);
  38864. function render$4(_ctx, _cache, $props, $setup, $data, $options) {
  38865. const _directive_ripple = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveDirective)("ripple");
  38866. return (0,vue__WEBPACK_IMPORTED_MODULE_0__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)("button", {
  38867. class: $options.containerClass,
  38868. type: "button"
  38869. }, [
  38870. _hoisted_1$1
  38871. ], 2)), [
  38872. [_directive_ripple]
  38873. ])
  38874. }
  38875. script$4.render = render$4;
  38876. var script$3 = {
  38877. name: 'RowsPerPageDropdown',
  38878. inheritAttrs: false,
  38879. emits: ['rows-change'],
  38880. props: {
  38881. options: Array,
  38882. rows: Number,
  38883. disabled: Boolean
  38884. },
  38885. methods: {
  38886. onChange(value) {
  38887. this.$emit('rows-change', value);
  38888. }
  38889. },
  38890. computed: {
  38891. rowsOptions() {
  38892. let opts = [];
  38893. if (this.options) {
  38894. for(let i= 0; i < this.options.length; i++) {
  38895. opts.push({label: String(this.options[i]), value: this.options[i]});
  38896. }
  38897. }
  38898. return opts;
  38899. }
  38900. },
  38901. components: {
  38902. 'RPPDropdown': primevue_dropdown__WEBPACK_IMPORTED_MODULE_2__["default"]
  38903. }
  38904. };
  38905. function render$3(_ctx, _cache, $props, $setup, $data, $options) {
  38906. const _component_RPPDropdown = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("RPPDropdown");
  38907. return ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)(_component_RPPDropdown, {
  38908. modelValue: $props.rows,
  38909. options: $options.rowsOptions,
  38910. optionLabel: "label",
  38911. optionValue: "value",
  38912. "onUpdate:modelValue": _cache[1] || (_cache[1] = $event => ($options.onChange($event))),
  38913. class: "p-paginator-rpp-options",
  38914. disabled: $props.disabled
  38915. }, null, 8, ["modelValue", "options", "disabled"]))
  38916. }
  38917. script$3.render = render$3;
  38918. var script$2 = {
  38919. name: 'JumpToPageDropdown',
  38920. inheritAttrs: false,
  38921. emits: ['page-change'],
  38922. props: {
  38923. page: Number,
  38924. pageCount: Number,
  38925. disabled: Boolean
  38926. },
  38927. methods: {
  38928. onChange(value) {
  38929. this.$emit('page-change', value);
  38930. }
  38931. },
  38932. computed: {
  38933. pageOptions() {
  38934. let opts = [];
  38935. for(let i= 0; i < this.pageCount; i++) {
  38936. opts.push({label: String(i+1), value: i});
  38937. }
  38938. return opts;
  38939. }
  38940. },
  38941. components: {
  38942. 'JTPDropdown': primevue_dropdown__WEBPACK_IMPORTED_MODULE_2__["default"]
  38943. }
  38944. };
  38945. function render$2(_ctx, _cache, $props, $setup, $data, $options) {
  38946. const _component_JTPDropdown = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("JTPDropdown");
  38947. return ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)(_component_JTPDropdown, {
  38948. modelValue: $props.page,
  38949. options: $options.pageOptions,
  38950. optionLabel: "label",
  38951. optionValue: "value",
  38952. "onUpdate:modelValue": _cache[1] || (_cache[1] = $event => ($options.onChange($event))),
  38953. class: "p-paginator-page-options",
  38954. disabled: $props.disabled
  38955. }, null, 8, ["modelValue", "options", "disabled"]))
  38956. }
  38957. script$2.render = render$2;
  38958. var script$1 = {
  38959. name: 'JumpToPageInput',
  38960. inheritAttrs: false,
  38961. emits: ['page-change'],
  38962. props: {
  38963. page: Number,
  38964. pageCount: Number,
  38965. disabled: Boolean
  38966. },
  38967. methods: {
  38968. onChange(value) {
  38969. this.$emit('page-change', value - 1);
  38970. }
  38971. },
  38972. components: {
  38973. 'JTPInput': primevue_inputnumber__WEBPACK_IMPORTED_MODULE_3__["default"]
  38974. }
  38975. };
  38976. function render$1(_ctx, _cache, $props, $setup, $data, $options) {
  38977. const _component_JTPInput = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("JTPInput");
  38978. return ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)(_component_JTPInput, {
  38979. modelValue: $props.page,
  38980. "onUpdate:modelValue": _cache[1] || (_cache[1] = $event => ($options.onChange($event))),
  38981. class: "p-paginator-page-input",
  38982. disabled: $props.disabled
  38983. }, null, 8, ["modelValue", "disabled"]))
  38984. }
  38985. script$1.render = render$1;
  38986. var script = {
  38987. name: 'Paginator',
  38988. emits: ['update:first', 'update:rows', 'page'],
  38989. props: {
  38990. totalRecords: {
  38991. type: Number,
  38992. default: 0
  38993. },
  38994. rows: {
  38995. type: Number,
  38996. default: 0
  38997. },
  38998. first: {
  38999. type: Number,
  39000. default: 0
  39001. },
  39002. pageLinkSize: {
  39003. type: Number,
  39004. default: 5
  39005. },
  39006. rowsPerPageOptions: {
  39007. type: Array,
  39008. default: null
  39009. },
  39010. template: {
  39011. type: String,
  39012. default: 'FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink RowsPerPageDropdown'
  39013. },
  39014. currentPageReportTemplate: {
  39015. type: null,
  39016. default: '({currentPage} of {totalPages})'
  39017. },
  39018. alwaysShow: {
  39019. type: Boolean,
  39020. default: true
  39021. }
  39022. },
  39023. data() {
  39024. return {
  39025. d_first: this.first,
  39026. d_rows: this.rows
  39027. }
  39028. },
  39029. watch: {
  39030. first(newValue) {
  39031. this.d_first = newValue;
  39032. },
  39033. rows(newValue) {
  39034. this.d_rows = newValue;
  39035. },
  39036. totalRecords(newValue) {
  39037. if (this.page > 0 && newValue && (this.d_first >= newValue)) {
  39038. this.changePage(this.pageCount - 1);
  39039. }
  39040. }
  39041. },
  39042. methods: {
  39043. changePage(p) {
  39044. const pc = this.pageCount;
  39045. if (p >= 0 && p < pc) {
  39046. this.d_first = this.d_rows * p;
  39047. const state = {
  39048. page: p,
  39049. first: this.d_first,
  39050. rows: this.d_rows,
  39051. pageCount: pc
  39052. };
  39053. this.$emit('update:first', this.d_first);
  39054. this.$emit('update:rows', this.d_rows);
  39055. this.$emit('page', state);
  39056. }
  39057. },
  39058. changePageToFirst(event) {
  39059. if(!this.isFirstPage) {
  39060. this.changePage(0);
  39061. }
  39062. event.preventDefault();
  39063. },
  39064. changePageToPrev(event) {
  39065. this.changePage(this.page - 1);
  39066. event.preventDefault();
  39067. },
  39068. changePageLink(event) {
  39069. this.changePage(event.value - 1);
  39070. event.originalEvent.preventDefault();
  39071. },
  39072. changePageToNext(event) {
  39073. this.changePage(this.page + 1);
  39074. event.preventDefault();
  39075. },
  39076. changePageToLast(event) {
  39077. if(!this.isLastPage) {
  39078. this.changePage(this.pageCount - 1);
  39079. }
  39080. event.preventDefault();
  39081. },
  39082. onRowChange(value) {
  39083. this.d_rows = value;
  39084. this.changePage(this.page);
  39085. }
  39086. },
  39087. computed: {
  39088. templateItems() {
  39089. let keys = [];
  39090. this.template.split(' ').map((value) => {
  39091. keys.push(value.trim());
  39092. });
  39093. return keys;
  39094. },
  39095. page() {
  39096. return Math.floor(this.d_first / this.d_rows);
  39097. },
  39098. pageCount() {
  39099. return Math.ceil(this.totalRecords / this.d_rows);
  39100. },
  39101. isFirstPage() {
  39102. return this.page === 0;
  39103. },
  39104. isLastPage() {
  39105. return this.page === this.pageCount - 1;
  39106. },
  39107. calculatePageLinkBoundaries() {
  39108. const numberOfPages = this.pageCount;
  39109. const visiblePages = Math.min(this.pageLinkSize, numberOfPages);
  39110. //calculate range, keep current in middle if necessary
  39111. let start = Math.max(0, Math.ceil(this.page - ((visiblePages) / 2)));
  39112. let end = Math.min(numberOfPages - 1, start + visiblePages - 1);
  39113. //check when approaching to last page
  39114. const delta = this.pageLinkSize - (end - start + 1);
  39115. start = Math.max(0, start - delta);
  39116. return [start, end];
  39117. },
  39118. pageLinks() {
  39119. let pageLinks = [];
  39120. let boundaries = this.calculatePageLinkBoundaries;
  39121. let start = boundaries[0];
  39122. let end = boundaries[1];
  39123. for(var i = start; i <= end; i++) {
  39124. pageLinks.push(i + 1);
  39125. }
  39126. return pageLinks;
  39127. },
  39128. currentState() {
  39129. return {
  39130. page: this.page,
  39131. first: this.d_first,
  39132. rows: this.d_rows
  39133. }
  39134. },
  39135. empty() {
  39136. return this.pageCount === 0;
  39137. },
  39138. currentPage() {
  39139. return this.pageCount > 0 ? this.page + 1 : 0;
  39140. }
  39141. },
  39142. components: {
  39143. 'CurrentPageReport': script$9,
  39144. 'FirstPageLink': script$8,
  39145. 'LastPageLink': script$7,
  39146. 'NextPageLink': script$6,
  39147. 'PageLinks': script$5,
  39148. 'PrevPageLink': script$4,
  39149. 'RowsPerPageDropdown': script$3,
  39150. 'JumpToPageDropdown': script$2,
  39151. 'JumpToPageInput': script$1
  39152. }
  39153. };
  39154. const _hoisted_1 = {
  39155. key: 0,
  39156. class: "p-paginator p-component"
  39157. };
  39158. const _hoisted_2 = {
  39159. key: 0,
  39160. class: "p-paginator-left-content"
  39161. };
  39162. const _hoisted_3 = {
  39163. key: 1,
  39164. class: "p-paginator-right-content"
  39165. };
  39166. function render(_ctx, _cache, $props, $setup, $data, $options) {
  39167. const _component_FirstPageLink = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("FirstPageLink");
  39168. const _component_PrevPageLink = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("PrevPageLink");
  39169. const _component_NextPageLink = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("NextPageLink");
  39170. const _component_LastPageLink = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("LastPageLink");
  39171. const _component_PageLinks = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("PageLinks");
  39172. const _component_CurrentPageReport = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("CurrentPageReport");
  39173. const _component_RowsPerPageDropdown = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("RowsPerPageDropdown");
  39174. const _component_JumpToPageDropdown = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("JumpToPageDropdown");
  39175. const _component_JumpToPageInput = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("JumpToPageInput");
  39176. return ($props.alwaysShow ? true : ($options.pageLinks && $options.pageLinks.length > 1))
  39177. ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)("div", _hoisted_1, [
  39178. (_ctx.$slots.start)
  39179. ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)("div", _hoisted_2, [
  39180. (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "start", { state: $options.currentState })
  39181. ]))
  39182. : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true),
  39183. ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderList)($options.templateItems, (item) => {
  39184. return ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment, { key: item }, [
  39185. (item === 'FirstPageLink')
  39186. ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)(_component_FirstPageLink, {
  39187. key: 0,
  39188. onClick: _cache[1] || (_cache[1] = $event => ($options.changePageToFirst($event))),
  39189. disabled: $options.isFirstPage || $options.empty
  39190. }, null, 8, ["disabled"]))
  39191. : (item === 'PrevPageLink')
  39192. ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)(_component_PrevPageLink, {
  39193. key: 1,
  39194. onClick: _cache[2] || (_cache[2] = $event => ($options.changePageToPrev($event))),
  39195. disabled: $options.isFirstPage || $options.empty
  39196. }, null, 8, ["disabled"]))
  39197. : (item === 'NextPageLink')
  39198. ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)(_component_NextPageLink, {
  39199. key: 2,
  39200. onClick: _cache[3] || (_cache[3] = $event => ($options.changePageToNext($event))),
  39201. disabled: $options.isLastPage || $options.empty
  39202. }, null, 8, ["disabled"]))
  39203. : (item === 'LastPageLink')
  39204. ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)(_component_LastPageLink, {
  39205. key: 3,
  39206. onClick: _cache[4] || (_cache[4] = $event => ($options.changePageToLast($event))),
  39207. disabled: $options.isLastPage || $options.empty
  39208. }, null, 8, ["disabled"]))
  39209. : (item === 'PageLinks')
  39210. ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)(_component_PageLinks, {
  39211. key: 4,
  39212. value: $options.pageLinks,
  39213. page: $options.page,
  39214. onClick: _cache[5] || (_cache[5] = $event => ($options.changePageLink($event)))
  39215. }, null, 8, ["value", "page"]))
  39216. : (item === 'CurrentPageReport')
  39217. ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)(_component_CurrentPageReport, {
  39218. key: 5,
  39219. template: $props.currentPageReportTemplate,
  39220. currentPage: $options.currentPage,
  39221. page: $options.page,
  39222. pageCount: $options.pageCount,
  39223. first: $data.d_first,
  39224. rows: $data.d_rows,
  39225. totalRecords: $props.totalRecords
  39226. }, null, 8, ["template", "currentPage", "page", "pageCount", "first", "rows", "totalRecords"]))
  39227. : (item === 'RowsPerPageDropdown' && $props.rowsPerPageOptions)
  39228. ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)(_component_RowsPerPageDropdown, {
  39229. key: 6,
  39230. rows: $data.d_rows,
  39231. options: $props.rowsPerPageOptions,
  39232. onRowsChange: _cache[6] || (_cache[6] = $event => ($options.onRowChange($event))),
  39233. disabled: $options.empty
  39234. }, null, 8, ["rows", "options", "disabled"]))
  39235. : (item === 'JumpToPageDropdown')
  39236. ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)(_component_JumpToPageDropdown, {
  39237. key: 7,
  39238. page: $options.page,
  39239. pageCount: $options.pageCount,
  39240. onPageChange: _cache[7] || (_cache[7] = $event => ($options.changePage($event))),
  39241. disabled: $options.empty
  39242. }, null, 8, ["page", "pageCount", "disabled"]))
  39243. : (item === 'JumpToPageInput')
  39244. ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)(_component_JumpToPageInput, {
  39245. key: 8,
  39246. page: $options.currentPage,
  39247. onPageChange: _cache[8] || (_cache[8] = $event => ($options.changePage($event))),
  39248. disabled: $options.empty
  39249. }, null, 8, ["page", "disabled"]))
  39250. : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true)
  39251. ], 64))
  39252. }), 128)),
  39253. (_ctx.$slots.end)
  39254. ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)("div", _hoisted_3, [
  39255. (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "end", { state: $options.currentState })
  39256. ]))
  39257. : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true)
  39258. ]))
  39259. : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true)
  39260. }
  39261. function styleInject(css, ref) {
  39262. if ( ref === void 0 ) ref = {};
  39263. var insertAt = ref.insertAt;
  39264. if (!css || typeof document === 'undefined') { return; }
  39265. var head = document.head || document.getElementsByTagName('head')[0];
  39266. var style = document.createElement('style');
  39267. style.type = 'text/css';
  39268. if (insertAt === 'top') {
  39269. if (head.firstChild) {
  39270. head.insertBefore(style, head.firstChild);
  39271. } else {
  39272. head.appendChild(style);
  39273. }
  39274. } else {
  39275. head.appendChild(style);
  39276. }
  39277. if (style.styleSheet) {
  39278. style.styleSheet.cssText = css;
  39279. } else {
  39280. style.appendChild(document.createTextNode(css));
  39281. }
  39282. }
  39283. var css_248z = "\n.p-paginator {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n}\n.p-paginator-left-content {\n\tmargin-right: auto;\n}\n.p-paginator-right-content {\n\tmargin-left: auto;\n}\n.p-paginator-page,\n.p-paginator-next,\n.p-paginator-last,\n.p-paginator-first,\n.p-paginator-prev,\n.p-paginator-current {\n cursor: pointer;\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n line-height: 1;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n overflow: hidden;\n position: relative;\n}\n.p-paginator-element:focus {\n z-index: 1;\n position: relative;\n}\n";
  39284. styleInject(css_248z);
  39285. script.render = render;
  39286. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (script);
  39287. /***/ }),
  39288. /***/ "./node_modules/primevue/password/password.esm.js":
  39289. /*!********************************************************!*\
  39290. !*** ./node_modules/primevue/password/password.esm.js ***!
  39291. \********************************************************/
  39292. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  39293. "use strict";
  39294. __webpack_require__.r(__webpack_exports__);
  39295. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  39296. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  39297. /* harmony export */ });
  39298. /* harmony import */ var primevue_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! primevue/utils */ "./node_modules/primevue/utils/utils.esm.js");
  39299. /* harmony import */ var primevue_overlayeventbus__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! primevue/overlayeventbus */ "./node_modules/primevue/overlayeventbus/overlayeventbus.esm.js");
  39300. /* harmony import */ var primevue_inputtext__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! primevue/inputtext */ "./node_modules/primevue/inputtext/inputtext.esm.js");
  39301. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js");
  39302. var script = {
  39303. name: 'Password',
  39304. emits: ['update:modelValue'],
  39305. inheritAttrs: false,
  39306. props: {
  39307. modelValue: String,
  39308. promptLabel: {
  39309. type: String,
  39310. default: null
  39311. },
  39312. mediumRegex: {
  39313. type: String,
  39314. default: '^(((?=.*[a-z])(?=.*[A-Z]))|((?=.*[a-z])(?=.*[0-9]))|((?=.*[A-Z])(?=.*[0-9])))(?=.{6,})' // eslint-disable-line
  39315. },
  39316. strongRegex: {
  39317. type: String,
  39318. default: '^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.{8,})' // eslint-disable-line
  39319. },
  39320. weakLabel: {
  39321. type: String,
  39322. default: null
  39323. },
  39324. mediumLabel: {
  39325. type: String,
  39326. default: null
  39327. },
  39328. strongLabel: {
  39329. type: String,
  39330. default: null
  39331. },
  39332. feedback: {
  39333. type: Boolean,
  39334. default: true
  39335. },
  39336. appendTo: {
  39337. type: String,
  39338. default: 'body'
  39339. },
  39340. toggleMask: {
  39341. type: Boolean,
  39342. default: false
  39343. },
  39344. hideIcon: {
  39345. type: String,
  39346. default: 'pi pi-eye-slash'
  39347. },
  39348. showIcon: {
  39349. type: String,
  39350. default: 'pi pi-eye'
  39351. },
  39352. inputClass: String,
  39353. inputStyle: null,
  39354. style: null,
  39355. class: String,
  39356. panelClass: String
  39357. },
  39358. data() {
  39359. return {
  39360. overlayVisible: false,
  39361. meter: null,
  39362. infoText: null,
  39363. focused: false,
  39364. unmasked: false
  39365. };
  39366. },
  39367. mediumCheckRegExp: null,
  39368. strongCheckRegExp: null,
  39369. resizeListener: null,
  39370. scrollHandler: null,
  39371. overlay: null,
  39372. mounted() {
  39373. this.infoText = this.promptText;
  39374. this.mediumCheckRegExp = new RegExp(this.mediumRegex);
  39375. this.strongCheckRegExp = new RegExp(this.strongRegex);
  39376. },
  39377. beforeUnmount() {
  39378. this.unbindResizeListener();
  39379. if (this.scrollHandler) {
  39380. this.scrollHandler.destroy();
  39381. this.scrollHandler = null;
  39382. }
  39383. if (this.overlay) {
  39384. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ZIndexUtils.clear(this.overlay);
  39385. this.overlay = null;
  39386. }
  39387. },
  39388. methods: {
  39389. onOverlayEnter(el) {
  39390. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ZIndexUtils.set('overlay', el, this.$primevue.config.zIndex.overlay);
  39391. this.alignOverlay();
  39392. this.bindScrollListener();
  39393. this.bindResizeListener();
  39394. },
  39395. onOverlayLeave() {
  39396. this.unbindScrollListener();
  39397. this.unbindResizeListener();
  39398. this.overlay = null;
  39399. },
  39400. onOverlayAfterLeave(el) {
  39401. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ZIndexUtils.clear(el);
  39402. },
  39403. alignOverlay() {
  39404. if (this.appendDisabled) {
  39405. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.relativePosition(this.overlay, this.$refs.input.$el);
  39406. }
  39407. else {
  39408. this.overlay.style.minWidth = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterWidth(this.$refs.input.$el) + 'px';
  39409. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.absolutePosition(this.overlay, this.$refs.input.$el);
  39410. }
  39411. },
  39412. testStrength(str) {
  39413. let level = 0;
  39414. if (this.strongCheckRegExp.test(str))
  39415. level = 3;
  39416. else if (this.mediumCheckRegExp.test(str))
  39417. level = 2;
  39418. else if (str.length)
  39419. level = 1;
  39420. return level;
  39421. },
  39422. onInput(event) {
  39423. this.$emit('update:modelValue', event.target.value);
  39424. },
  39425. onFocus() {
  39426. this.focused = true;
  39427. if (this.feedback) {
  39428. this.overlayVisible = true;
  39429. }
  39430. },
  39431. onBlur() {
  39432. this.focused = false;
  39433. if (this.feedback) {
  39434. this.overlayVisible = false;
  39435. }
  39436. },
  39437. onKeyUp(event) {
  39438. if (this.feedback) {
  39439. const value = event.target.value;
  39440. let label = null;
  39441. let meter = null;
  39442. switch (this.testStrength(value)) {
  39443. case 1:
  39444. label = this.weakText;
  39445. meter = {
  39446. strength: 'weak',
  39447. width: '33.33%'
  39448. };
  39449. break;
  39450. case 2:
  39451. label = this.mediumText;
  39452. meter = {
  39453. strength: 'medium',
  39454. width: '66.66%'
  39455. };
  39456. break;
  39457. case 3:
  39458. label = this.strongText;
  39459. meter = {
  39460. strength: 'strong',
  39461. width: '100%'
  39462. };
  39463. break;
  39464. default:
  39465. label = this.promptText;
  39466. meter = null;
  39467. break;
  39468. }
  39469. this.meter = meter;
  39470. this.infoText = label;
  39471. if (!this.overlayVisible) {
  39472. this.overlayVisible = true;
  39473. }
  39474. }
  39475. },
  39476. bindScrollListener() {
  39477. if (!this.scrollHandler) {
  39478. this.scrollHandler = new primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ConnectedOverlayScrollHandler(this.$refs.input.$el, () => {
  39479. if (this.overlayVisible) {
  39480. this.overlayVisible = false;
  39481. }
  39482. });
  39483. }
  39484. this.scrollHandler.bindScrollListener();
  39485. },
  39486. unbindScrollListener() {
  39487. if (this.scrollHandler) {
  39488. this.scrollHandler.unbindScrollListener();
  39489. }
  39490. },
  39491. bindResizeListener() {
  39492. if (!this.resizeListener) {
  39493. this.resizeListener = () => {
  39494. if (this.overlayVisible) {
  39495. this.overlayVisible = false;
  39496. }
  39497. };
  39498. window.addEventListener('resize', this.resizeListener);
  39499. }
  39500. },
  39501. unbindResizeListener() {
  39502. if (this.resizeListener) {
  39503. window.removeEventListener('resize', this.resizeListener);
  39504. this.resizeListener = null;
  39505. }
  39506. },
  39507. overlayRef(el) {
  39508. this.overlay = el;
  39509. },
  39510. onMaskToggle() {
  39511. this.unmasked = !this.unmasked;
  39512. },
  39513. onOverlayClick(event) {
  39514. primevue_overlayeventbus__WEBPACK_IMPORTED_MODULE_1__["default"].emit('overlay-click', {
  39515. originalEvent: event,
  39516. target: this.$el
  39517. });
  39518. }
  39519. },
  39520. computed: {
  39521. containerClass() {
  39522. return ['p-password p-component p-inputwrapper', this.class, {
  39523. 'p-inputwrapper-filled': this.filled,
  39524. 'p-inputwrapper-focus': this.focused,
  39525. 'p-input-icon-right': this.toggleMask
  39526. }];
  39527. },
  39528. inputFieldClass() {
  39529. return ['p-password-input', this.inputClass, {
  39530. 'p-disabled': this.$attrs.disabled
  39531. }];
  39532. },
  39533. panelStyleClass() {
  39534. return ['p-password-panel p-component', this.panelClass, {
  39535. 'p-input-filled': this.$primevue.config.inputStyle === 'filled',
  39536. 'p-ripple-disabled': this.$primevue.config.ripple === false
  39537. }];
  39538. },
  39539. toggleIconClass() {
  39540. return this.unmasked ? this.hideIcon : this.showIcon;
  39541. },
  39542. strengthClass() {
  39543. return `p-password-strength ${this.meter ? this.meter.strength : ''}`;
  39544. },
  39545. inputType() {
  39546. return this.unmasked ? 'text' : 'password';
  39547. },
  39548. filled() {
  39549. return (this.modelValue != null && this.modelValue.toString().length > 0)
  39550. },
  39551. weakText() {
  39552. return this.weakLabel || this.$primevue.config.locale.weak;
  39553. },
  39554. mediumText() {
  39555. return this.mediumLabel || this.$primevue.config.locale.medium;
  39556. },
  39557. strongText() {
  39558. return this.strongLabel || this.$primevue.config.locale.strong;
  39559. },
  39560. promptText() {
  39561. return this.promptLabel || this.$primevue.config.locale.passwordPrompt;
  39562. },
  39563. appendDisabled() {
  39564. return this.appendTo === 'self';
  39565. },
  39566. appendTarget() {
  39567. return this.appendDisabled ? null : this.appendTo;
  39568. }
  39569. },
  39570. components: {
  39571. 'PInputText': primevue_inputtext__WEBPACK_IMPORTED_MODULE_2__["default"]
  39572. }
  39573. };
  39574. const _hoisted_1 = { class: "p-password-meter" };
  39575. const _hoisted_2 = { class: "p-password-info" };
  39576. function render(_ctx, _cache, $props, $setup, $data, $options) {
  39577. const _component_PInputText = (0,vue__WEBPACK_IMPORTED_MODULE_3__.resolveComponent)("PInputText");
  39578. return ((0,vue__WEBPACK_IMPORTED_MODULE_3__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_3__.createBlock)("div", {
  39579. class: $options.containerClass,
  39580. style: $props.style
  39581. }, [
  39582. (0,vue__WEBPACK_IMPORTED_MODULE_3__.createVNode)(_component_PInputText, (0,vue__WEBPACK_IMPORTED_MODULE_3__.mergeProps)({
  39583. ref: "input",
  39584. class: $options.inputFieldClass,
  39585. style: $props.inputStyle,
  39586. type: $options.inputType,
  39587. value: $props.modelValue,
  39588. onInput: $options.onInput,
  39589. onFocus: $options.onFocus,
  39590. onBlur: $options.onBlur,
  39591. onKeyup: $options.onKeyUp
  39592. }, _ctx.$attrs), null, 16, ["class", "style", "type", "value", "onInput", "onFocus", "onBlur", "onKeyup"]),
  39593. ($props.toggleMask)
  39594. ? ((0,vue__WEBPACK_IMPORTED_MODULE_3__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_3__.createBlock)("i", {
  39595. key: 0,
  39596. class: $options.toggleIconClass,
  39597. onClick: _cache[1] || (_cache[1] = (...args) => ($options.onMaskToggle && $options.onMaskToggle(...args)))
  39598. }, null, 2))
  39599. : (0,vue__WEBPACK_IMPORTED_MODULE_3__.createCommentVNode)("", true),
  39600. ((0,vue__WEBPACK_IMPORTED_MODULE_3__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_3__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_3__.Teleport, {
  39601. to: $options.appendTarget,
  39602. disabled: $options.appendDisabled
  39603. }, [
  39604. (0,vue__WEBPACK_IMPORTED_MODULE_3__.createVNode)(vue__WEBPACK_IMPORTED_MODULE_3__.Transition, {
  39605. name: "p-connected-overlay",
  39606. onEnter: $options.onOverlayEnter,
  39607. onLeave: $options.onOverlayLeave,
  39608. onAfterLeave: $options.onOverlayAfterLeave
  39609. }, {
  39610. default: (0,vue__WEBPACK_IMPORTED_MODULE_3__.withCtx)(() => [
  39611. ($data.overlayVisible)
  39612. ? ((0,vue__WEBPACK_IMPORTED_MODULE_3__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_3__.createBlock)("div", {
  39613. key: 0,
  39614. ref: $options.overlayRef,
  39615. class: $options.panelStyleClass,
  39616. onClick: _cache[2] || (_cache[2] = (...args) => ($options.onOverlayClick && $options.onOverlayClick(...args)))
  39617. }, [
  39618. (0,vue__WEBPACK_IMPORTED_MODULE_3__.renderSlot)(_ctx.$slots, "header"),
  39619. (0,vue__WEBPACK_IMPORTED_MODULE_3__.renderSlot)(_ctx.$slots, "content", {}, () => [
  39620. (0,vue__WEBPACK_IMPORTED_MODULE_3__.createVNode)("div", _hoisted_1, [
  39621. (0,vue__WEBPACK_IMPORTED_MODULE_3__.createVNode)("div", {
  39622. class: $options.strengthClass,
  39623. style: {'width': $data.meter ? $data.meter.width : ''}
  39624. }, null, 6)
  39625. ]),
  39626. (0,vue__WEBPACK_IMPORTED_MODULE_3__.createVNode)("div", _hoisted_2, (0,vue__WEBPACK_IMPORTED_MODULE_3__.toDisplayString)($data.infoText), 1)
  39627. ]),
  39628. (0,vue__WEBPACK_IMPORTED_MODULE_3__.renderSlot)(_ctx.$slots, "footer")
  39629. ], 2))
  39630. : (0,vue__WEBPACK_IMPORTED_MODULE_3__.createCommentVNode)("", true)
  39631. ]),
  39632. _: 3
  39633. }, 8, ["onEnter", "onLeave", "onAfterLeave"])
  39634. ], 8, ["to", "disabled"]))
  39635. ], 6))
  39636. }
  39637. function styleInject(css, ref) {
  39638. if ( ref === void 0 ) ref = {};
  39639. var insertAt = ref.insertAt;
  39640. if (!css || typeof document === 'undefined') { return; }
  39641. var head = document.head || document.getElementsByTagName('head')[0];
  39642. var style = document.createElement('style');
  39643. style.type = 'text/css';
  39644. if (insertAt === 'top') {
  39645. if (head.firstChild) {
  39646. head.insertBefore(style, head.firstChild);
  39647. } else {
  39648. head.appendChild(style);
  39649. }
  39650. } else {
  39651. head.appendChild(style);
  39652. }
  39653. if (style.styleSheet) {
  39654. style.styleSheet.cssText = css;
  39655. } else {
  39656. style.appendChild(document.createTextNode(css));
  39657. }
  39658. }
  39659. var css_248z = "\n.p-password {\n position: relative;\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n}\n.p-password-panel {\n position: absolute;\n top: 0;\n left: 0;\n}\n.p-password .p-password-panel {\n min-width: 100%;\n}\n.p-password-meter {\n height: 10px;\n}\n.p-password-strength {\n height: 100%;\n width: 0;\n -webkit-transition: width 1s ease-in-out;\n transition: width 1s ease-in-out;\n}\n.p-fluid .p-password {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n}\n";
  39660. styleInject(css_248z);
  39661. script.render = render;
  39662. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (script);
  39663. /***/ }),
  39664. /***/ "./node_modules/primevue/ripple/ripple.esm.js":
  39665. /*!****************************************************!*\
  39666. !*** ./node_modules/primevue/ripple/ripple.esm.js ***!
  39667. \****************************************************/
  39668. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  39669. "use strict";
  39670. __webpack_require__.r(__webpack_exports__);
  39671. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  39672. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  39673. /* harmony export */ });
  39674. /* harmony import */ var primevue_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! primevue/utils */ "./node_modules/primevue/utils/utils.esm.js");
  39675. function bindEvents(el) {
  39676. el.addEventListener('mousedown', onMouseDown);
  39677. }
  39678. function unbindEvents(el) {
  39679. el.removeEventListener('mousedown', onMouseDown);
  39680. }
  39681. function create(el) {
  39682. let ink = document.createElement('span');
  39683. ink.className = 'p-ink';
  39684. el.appendChild(ink);
  39685. ink.addEventListener('animationend', onAnimationEnd);
  39686. }
  39687. function remove(el) {
  39688. let ink = getInk(el);
  39689. if (ink) {
  39690. unbindEvents(el);
  39691. ink.removeEventListener('animationend', onAnimationEnd);
  39692. ink.remove();
  39693. }
  39694. }
  39695. function onMouseDown(event) {
  39696. let target = event.currentTarget;
  39697. let ink = getInk(target);
  39698. if (!ink || getComputedStyle(ink, null).display === 'none') {
  39699. return;
  39700. }
  39701. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.removeClass(ink, 'p-ink-active');
  39702. if (!primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getHeight(ink) && !primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getWidth(ink)) {
  39703. let d = Math.max(primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterWidth(target), primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterHeight(target));
  39704. ink.style.height = d + 'px';
  39705. ink.style.width = d + 'px';
  39706. }
  39707. let offset = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOffset(target);
  39708. let x = event.pageX - offset.left + document.body.scrollTop - primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getWidth(ink) / 2;
  39709. let y = event.pageY - offset.top + document.body.scrollLeft - primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getHeight(ink) / 2;
  39710. ink.style.top = y + 'px';
  39711. ink.style.left = x + 'px';
  39712. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.addClass(ink, 'p-ink-active');
  39713. }
  39714. function onAnimationEnd(event) {
  39715. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.removeClass(event.currentTarget, 'p-ink-active');
  39716. }
  39717. function getInk(el) {
  39718. for (let i = 0; i < el.children.length; i++) {
  39719. if (typeof el.children[i].className === 'string' && el.children[i].className.indexOf('p-ink') !== -1) {
  39720. return el.children[i];
  39721. }
  39722. }
  39723. return null;
  39724. }
  39725. const Ripple = {
  39726. mounted(el, binding) {
  39727. if (binding.instance.$primevue && binding.instance.$primevue.config && binding.instance.$primevue.config.ripple) {
  39728. create(el);
  39729. bindEvents(el);
  39730. }
  39731. },
  39732. unmounted(el) {
  39733. remove(el);
  39734. }
  39735. };
  39736. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Ripple);
  39737. /***/ }),
  39738. /***/ "./node_modules/primevue/styleclass/styleclass.esm.js":
  39739. /*!************************************************************!*\
  39740. !*** ./node_modules/primevue/styleclass/styleclass.esm.js ***!
  39741. \************************************************************/
  39742. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  39743. "use strict";
  39744. __webpack_require__.r(__webpack_exports__);
  39745. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  39746. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  39747. /* harmony export */ });
  39748. /* harmony import */ var primevue_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! primevue/utils */ "./node_modules/primevue/utils/utils.esm.js");
  39749. function bind(el, binding) {
  39750. el.$_pstyleclass_clicklistener = () => {
  39751. const target = resolveTarget(el, binding);
  39752. if (binding.value.toggleClass) {
  39753. if (primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(target, binding.value.toggleClass))
  39754. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.removeClass(target, binding.value.toggleClass);
  39755. else
  39756. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.addClass(target, binding.value.toggleClass);
  39757. }
  39758. else {
  39759. if (target.offsetParent === null)
  39760. enter(target, el, binding);
  39761. else
  39762. leave(target, binding);
  39763. }
  39764. };
  39765. el.addEventListener('click', el.$_pstyleclass_clicklistener);
  39766. }
  39767. function unbind(el) {
  39768. if (el.$_pstyleclass_clicklistener) {
  39769. el.addEventListener('click', el.$_pstyleclass_clicklistener);
  39770. el.$_pstyleclass_clicklistener = null;
  39771. }
  39772. unbindDocumentListener(el);
  39773. }
  39774. function enter(target, el, binding) {
  39775. if (binding.value.enterActiveClass) {
  39776. if (!target.$_pstyleclass_animating) {
  39777. target.$_pstyleclass_animating = true;
  39778. if (binding.value.enterActiveClass === 'slidedown') {
  39779. target.style.height = '0px';
  39780. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.removeClass(target, 'hidden');
  39781. target.style.maxHeight = target.scrollHeight + 'px';
  39782. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.addClass(target, 'hidden');
  39783. target.style.height = '';
  39784. }
  39785. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.addClass(target, binding.value.enterActiveClass);
  39786. if (binding.value.enterClass) {
  39787. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.removeClass(target, binding.value.enterClass);
  39788. }
  39789. target.$p_styleclass_enterlistener = () => {
  39790. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.removeClass(target, binding.value.enterActiveClass);
  39791. if (binding.value.enterToClass) {
  39792. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.addClass(target, binding.value.enterToClass);
  39793. }
  39794. target.removeEventListener('animationend', target.$p_styleclass_enterlistener);
  39795. if (binding.value.enterActiveClass === 'slidedown') {
  39796. target.style.maxHeight = '';
  39797. }
  39798. target.$_pstyleclass_animating = false;
  39799. };
  39800. target.addEventListener('animationend', target.$p_styleclass_enterlistener);
  39801. }
  39802. }
  39803. else {
  39804. if (binding.value.enterClass) {
  39805. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.removeClass(target, binding.value.enterClass);
  39806. }
  39807. if (binding.value.enterToClass) {
  39808. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.addClass(target, binding.value.enterToClass);
  39809. }
  39810. }
  39811. if (binding.value.hideOnOutsideClick) {
  39812. bindDocumentListener(target, el, binding);
  39813. }
  39814. }
  39815. function leave(target, binding) {
  39816. if (binding.value.leaveActiveClass) {
  39817. if (!target.$_pstyleclass_animating) {
  39818. target.$_pstyleclass_animating = true;
  39819. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.addClass(target, binding.value.leaveActiveClass);
  39820. if (binding.value.leaveClass) {
  39821. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.removeClass(target, binding.value.leaveClass);
  39822. }
  39823. target.$p_styleclass_leavelistener = () => {
  39824. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.removeClass(target, binding.value.leaveActiveClass);
  39825. if (binding.value.leaveToClass) {
  39826. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.addClass(target, binding.value.leaveToClass);
  39827. }
  39828. target.removeEventListener('animationend', target.$p_styleclass_leavelistener);
  39829. target.$_pstyleclass_animating = false;
  39830. };
  39831. target.addEventListener('animationend', target.$p_styleclass_leavelistener);
  39832. }
  39833. }
  39834. else {
  39835. if (binding.value.leaveClass) {
  39836. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.removeClass(target, binding.value.leaveClass);
  39837. }
  39838. if (binding.value.leaveToClass) {
  39839. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.addClass(target, binding.value.leaveToClass);
  39840. }
  39841. }
  39842. if (binding.value.hideOnOutsideClick) {
  39843. unbindDocumentListener(target);
  39844. }
  39845. }
  39846. function resolveTarget(el, binding) {
  39847. switch (binding.value.selector) {
  39848. case '@next':
  39849. return el.nextElementSibling;
  39850. case '@prev':
  39851. return el.previousElementSibling;
  39852. case '@parent':
  39853. return el.parentElement;
  39854. case '@grandparent':
  39855. return el.parentElement.parentElement;
  39856. default:
  39857. return document.querySelector(binding.value.selector);
  39858. }
  39859. }
  39860. function bindDocumentListener(target, el, binding) {
  39861. if (!target.$p_styleclass_documentlistener) {
  39862. target.$p_styleclass_documentlistener = (event) => {
  39863. if (!isVisible(target) || getComputedStyle(target).getPropertyValue('position') === 'static') {
  39864. unbindDocumentListener(target);
  39865. }
  39866. else if (isOutsideClick(event, target, el)) {
  39867. leave(target, binding);
  39868. }
  39869. };
  39870. target.ownerDocument.addEventListener('click', target.$p_styleclass_documentlistener);
  39871. }
  39872. }
  39873. function unbindDocumentListener(target) {
  39874. if (target.$p_styleclass_documentlistener) {
  39875. target.ownerDocument.removeEventListener('click', target.$p_styleclass_documentlistener);
  39876. target.$p_styleclass_documentlistener = null;
  39877. }
  39878. }
  39879. function isVisible(target) {
  39880. return target.offsetParent !== null;
  39881. }
  39882. function isOutsideClick(event, target, el) {
  39883. return !el.isSameNode(event.target) && !el.contains(event.target) && !target.contains(event.target);
  39884. }
  39885. const StyleClass = {
  39886. mounted(el, binding) {
  39887. bind(el, binding);
  39888. },
  39889. unmounted(el) {
  39890. unbind(el);
  39891. }
  39892. };
  39893. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (StyleClass);
  39894. /***/ }),
  39895. /***/ "./node_modules/primevue/tabpanel/tabpanel.esm.js":
  39896. /*!********************************************************!*\
  39897. !*** ./node_modules/primevue/tabpanel/tabpanel.esm.js ***!
  39898. \********************************************************/
  39899. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  39900. "use strict";
  39901. __webpack_require__.r(__webpack_exports__);
  39902. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  39903. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  39904. /* harmony export */ });
  39905. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js");
  39906. var script = {
  39907. name: 'TabPanel',
  39908. props: {
  39909. header: null,
  39910. disabled: Boolean
  39911. }
  39912. };
  39913. function render(_ctx, _cache, $props, $setup, $data, $options) {
  39914. return (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "default")
  39915. }
  39916. script.render = render;
  39917. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (script);
  39918. /***/ }),
  39919. /***/ "./node_modules/primevue/tabview/tabview.esm.js":
  39920. /*!******************************************************!*\
  39921. !*** ./node_modules/primevue/tabview/tabview.esm.js ***!
  39922. \******************************************************/
  39923. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  39924. "use strict";
  39925. __webpack_require__.r(__webpack_exports__);
  39926. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  39927. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  39928. /* harmony export */ });
  39929. /* harmony import */ var primevue_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! primevue/utils */ "./node_modules/primevue/utils/utils.esm.js");
  39930. /* harmony import */ var primevue_ripple__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! primevue/ripple */ "./node_modules/primevue/ripple/ripple.esm.js");
  39931. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js");
  39932. var script = {
  39933. name: 'TabView',
  39934. emits: ['update:activeIndex', 'tab-change', 'tab-click'],
  39935. props: {
  39936. activeIndex: {
  39937. type: Number,
  39938. default: 0
  39939. },
  39940. lazy: {
  39941. type: Boolean,
  39942. default: false
  39943. },
  39944. scrollable: {
  39945. type: Boolean,
  39946. default: false
  39947. }
  39948. },
  39949. data() {
  39950. return {
  39951. d_activeIndex: this.activeIndex,
  39952. backwardIsDisabled: true,
  39953. forwardIsDisabled: false
  39954. }
  39955. },
  39956. watch: {
  39957. activeIndex(newValue) {
  39958. this.d_activeIndex = newValue;
  39959. this.updateScrollBar(newValue);
  39960. }
  39961. },
  39962. updated() {
  39963. this.updateInkBar();
  39964. },
  39965. mounted() {
  39966. this.updateInkBar();
  39967. },
  39968. methods: {
  39969. onTabClick(event, i) {
  39970. if (!this.isTabDisabled(this.tabs[i]) && i !== this.d_activeIndex) {
  39971. this.d_activeIndex = i;
  39972. this.$emit('update:activeIndex', this.d_activeIndex);
  39973. this.$emit('tab-change', {
  39974. originalEvent: event,
  39975. index: i
  39976. });
  39977. this.updateScrollBar(i);
  39978. }
  39979. this.$emit('tab-click', {
  39980. originalEvent: event,
  39981. index: i
  39982. });
  39983. },
  39984. onTabKeydown(event, i) {
  39985. if (event.which === 13) {
  39986. this.onTabClick(event, i);
  39987. }
  39988. },
  39989. updateInkBar() {
  39990. let tabHeader = this.$refs.nav.children[this.d_activeIndex];
  39991. this.$refs.inkbar.style.width = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getWidth(tabHeader) + 'px';
  39992. this.$refs.inkbar.style.left = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOffset(tabHeader).left - primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOffset(this.$refs.nav).left + 'px';
  39993. },
  39994. updateScrollBar(index) {
  39995. let tabHeader = this.$refs.nav.children[index];
  39996. tabHeader.scrollIntoView({ block: 'nearest' });
  39997. },
  39998. updateButtonState() {
  39999. const content = this.$refs.content;
  40000. const { scrollLeft, scrollWidth } = content;
  40001. const width = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getWidth(content);
  40002. this.backwardIsDisabled = scrollLeft === 0;
  40003. this.forwardIsDisabled = parseInt(scrollLeft) === scrollWidth - width;
  40004. },
  40005. getKey(tab, i) {
  40006. return (tab.props && tab.props.header) ? tab.props.header : i;
  40007. },
  40008. isTabDisabled(tab) {
  40009. return (tab.props && tab.props.disabled);
  40010. },
  40011. isTabPanel(child) {
  40012. return child.type.name === 'TabPanel'
  40013. },
  40014. onScroll(event) {
  40015. this.scrollable && this.updateButtonState();
  40016. event.preventDefault();
  40017. },
  40018. getVisibleButtonWidths() {
  40019. const { prevBtn, nextBtn } = this.$refs;
  40020. return [prevBtn, nextBtn].reduce((acc, el) => el ? acc + primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getWidth(el) : acc, 0);
  40021. },
  40022. navBackward() {
  40023. const content = this.$refs.content;
  40024. const width = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getWidth(content) - this.getVisibleButtonWidths();
  40025. const pos = content.scrollLeft - width;
  40026. content.scrollLeft = pos <= 0 ? 0 : pos;
  40027. },
  40028. navForward() {
  40029. const content = this.$refs.content;
  40030. const width = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getWidth(content) - this.getVisibleButtonWidths();
  40031. const pos = content.scrollLeft + width;
  40032. const lastPos = content.scrollWidth - width;
  40033. content.scrollLeft = pos >= lastPos ? lastPos : pos;
  40034. }
  40035. },
  40036. computed: {
  40037. contentClasses() {
  40038. return ['p-tabview p-component', {'p-tabview-scrollable': this.scrollable}];
  40039. },
  40040. prevButtonClasses() {
  40041. return ['p-tabview-nav-prev p-tabview-nav-btn p-link']
  40042. },
  40043. nextButtonClasses() {
  40044. return ['p-tabview-nav-next p-tabview-nav-btn p-link']
  40045. },
  40046. tabs() {
  40047. const tabs = [];
  40048. this.$slots.default().forEach(child => {
  40049. if (this.isTabPanel(child)) {
  40050. tabs.push(child);
  40051. }
  40052. else if (child.children && child.children instanceof Array) {
  40053. child.children.forEach(nestedChild => {
  40054. if (this.isTabPanel(nestedChild)) {
  40055. tabs.push(nestedChild);
  40056. }
  40057. });
  40058. }
  40059. }
  40060. );
  40061. return tabs;
  40062. }
  40063. },
  40064. directives: {
  40065. 'ripple': primevue_ripple__WEBPACK_IMPORTED_MODULE_1__["default"]
  40066. }
  40067. };
  40068. const _hoisted_1 = { class: "p-tabview-nav-container" };
  40069. const _hoisted_2 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_2__.createVNode)("span", { class: "pi pi-chevron-left" }, null, -1);
  40070. const _hoisted_3 = {
  40071. ref: "nav",
  40072. class: "p-tabview-nav",
  40073. role: "tablist"
  40074. };
  40075. const _hoisted_4 = {
  40076. key: 0,
  40077. class: "p-tabview-title"
  40078. };
  40079. const _hoisted_5 = {
  40080. ref: "inkbar",
  40081. class: "p-tabview-ink-bar"
  40082. };
  40083. const _hoisted_6 = /*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_2__.createVNode)("span", { class: "pi pi-chevron-right" }, null, -1);
  40084. const _hoisted_7 = { class: "p-tabview-panels" };
  40085. const _hoisted_8 = {
  40086. key: 0,
  40087. class: "p-tabview-panel",
  40088. role: "tabpanel"
  40089. };
  40090. function render(_ctx, _cache, $props, $setup, $data, $options) {
  40091. const _directive_ripple = (0,vue__WEBPACK_IMPORTED_MODULE_2__.resolveDirective)("ripple");
  40092. return ((0,vue__WEBPACK_IMPORTED_MODULE_2__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_2__.createBlock)("div", { class: $options.contentClasses }, [
  40093. (0,vue__WEBPACK_IMPORTED_MODULE_2__.createVNode)("div", _hoisted_1, [
  40094. ($props.scrollable && !$data.backwardIsDisabled)
  40095. ? (0,vue__WEBPACK_IMPORTED_MODULE_2__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_2__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_2__.createBlock)("button", {
  40096. key: 0,
  40097. ref: "prevBtn",
  40098. class: $options.prevButtonClasses,
  40099. onClick: _cache[1] || (_cache[1] = (...args) => ($options.navBackward && $options.navBackward(...args))),
  40100. type: "button"
  40101. }, [
  40102. _hoisted_2
  40103. ], 2)), [
  40104. [_directive_ripple]
  40105. ])
  40106. : (0,vue__WEBPACK_IMPORTED_MODULE_2__.createCommentVNode)("", true),
  40107. (0,vue__WEBPACK_IMPORTED_MODULE_2__.createVNode)("div", {
  40108. ref: "content",
  40109. class: "p-tabview-nav-content",
  40110. onScroll: _cache[2] || (_cache[2] = (...args) => ($options.onScroll && $options.onScroll(...args)))
  40111. }, [
  40112. (0,vue__WEBPACK_IMPORTED_MODULE_2__.createVNode)("ul", _hoisted_3, [
  40113. ((0,vue__WEBPACK_IMPORTED_MODULE_2__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_2__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_2__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_2__.renderList)($options.tabs, (tab, i) => {
  40114. return ((0,vue__WEBPACK_IMPORTED_MODULE_2__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_2__.createBlock)("li", {
  40115. role: "presentation",
  40116. key: $options.getKey(tab,i),
  40117. class: [{'p-highlight': ($data.d_activeIndex === i), 'p-disabled': $options.isTabDisabled(tab)}]
  40118. }, [
  40119. (0,vue__WEBPACK_IMPORTED_MODULE_2__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_2__.createVNode)("a", {
  40120. role: "tab",
  40121. class: "p-tabview-nav-link",
  40122. onClick: $event => ($options.onTabClick($event, i)),
  40123. onKeydown: $event => ($options.onTabKeydown($event, i)),
  40124. tabindex: $options.isTabDisabled(tab) ? null : '0',
  40125. "aria-selected": $data.d_activeIndex === i
  40126. }, [
  40127. (tab.props && tab.props.header)
  40128. ? ((0,vue__WEBPACK_IMPORTED_MODULE_2__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_2__.createBlock)("span", _hoisted_4, (0,vue__WEBPACK_IMPORTED_MODULE_2__.toDisplayString)(tab.props.header), 1))
  40129. : (0,vue__WEBPACK_IMPORTED_MODULE_2__.createCommentVNode)("", true),
  40130. (tab.children && tab.children.header)
  40131. ? ((0,vue__WEBPACK_IMPORTED_MODULE_2__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_2__.createBlock)((0,vue__WEBPACK_IMPORTED_MODULE_2__.resolveDynamicComponent)(tab.children.header), { key: 1 }))
  40132. : (0,vue__WEBPACK_IMPORTED_MODULE_2__.createCommentVNode)("", true)
  40133. ], 40, ["onClick", "onKeydown", "tabindex", "aria-selected"]), [
  40134. [_directive_ripple]
  40135. ])
  40136. ], 2))
  40137. }), 128)),
  40138. (0,vue__WEBPACK_IMPORTED_MODULE_2__.createVNode)("li", _hoisted_5, null, 512)
  40139. ], 512)
  40140. ], 544),
  40141. ($props.scrollable && !$data.forwardIsDisabled)
  40142. ? (0,vue__WEBPACK_IMPORTED_MODULE_2__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_2__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_2__.createBlock)("button", {
  40143. key: 1,
  40144. ref: "nextBtn",
  40145. class: $options.nextButtonClasses,
  40146. onClick: _cache[3] || (_cache[3] = (...args) => ($options.navForward && $options.navForward(...args))),
  40147. type: "button"
  40148. }, [
  40149. _hoisted_6
  40150. ], 2)), [
  40151. [_directive_ripple]
  40152. ])
  40153. : (0,vue__WEBPACK_IMPORTED_MODULE_2__.createCommentVNode)("", true)
  40154. ]),
  40155. (0,vue__WEBPACK_IMPORTED_MODULE_2__.createVNode)("div", _hoisted_7, [
  40156. ((0,vue__WEBPACK_IMPORTED_MODULE_2__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_2__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_2__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_2__.renderList)($options.tabs, (tab, i) => {
  40157. return ((0,vue__WEBPACK_IMPORTED_MODULE_2__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_2__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_2__.Fragment, {
  40158. key: $options.getKey(tab,i)
  40159. }, [
  40160. ($props.lazy ? ($data.d_activeIndex === i) : true)
  40161. ? (0,vue__WEBPACK_IMPORTED_MODULE_2__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_2__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_2__.createBlock)("div", _hoisted_8, [
  40162. ((0,vue__WEBPACK_IMPORTED_MODULE_2__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_2__.createBlock)((0,vue__WEBPACK_IMPORTED_MODULE_2__.resolveDynamicComponent)(tab)))
  40163. ], 512)), [
  40164. [vue__WEBPACK_IMPORTED_MODULE_2__.vShow, $props.lazy ? true: ($data.d_activeIndex === i)]
  40165. ])
  40166. : (0,vue__WEBPACK_IMPORTED_MODULE_2__.createCommentVNode)("", true)
  40167. ], 64))
  40168. }), 128))
  40169. ])
  40170. ], 2))
  40171. }
  40172. function styleInject(css, ref) {
  40173. if ( ref === void 0 ) ref = {};
  40174. var insertAt = ref.insertAt;
  40175. if (!css || typeof document === 'undefined') { return; }
  40176. var head = document.head || document.getElementsByTagName('head')[0];
  40177. var style = document.createElement('style');
  40178. style.type = 'text/css';
  40179. if (insertAt === 'top') {
  40180. if (head.firstChild) {
  40181. head.insertBefore(style, head.firstChild);
  40182. } else {
  40183. head.appendChild(style);
  40184. }
  40185. } else {
  40186. head.appendChild(style);
  40187. }
  40188. if (style.styleSheet) {
  40189. style.styleSheet.cssText = css;
  40190. } else {
  40191. style.appendChild(document.createTextNode(css));
  40192. }
  40193. }
  40194. var css_248z = "\n.p-tabview-nav-container {\n position: relative;\n}\n.p-tabview-scrollable .p-tabview-nav-container {\n overflow: hidden;\n}\n.p-tabview-nav-content {\n overflow-x: auto;\n overflow-y: hidden;\n scroll-behavior: smooth;\n scrollbar-width: none;\n -ms-scroll-chaining: contain auto;\n overscroll-behavior: contain auto;\n}\n.p-tabview-nav {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n margin: 0;\n padding: 0;\n list-style-type: none;\n -webkit-box-flex: 1;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n}\n.p-tabview-nav-link {\n cursor: pointer;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n position: relative;\n text-decoration: none;\n overflow: hidden;\n}\n.p-tabview-ink-bar {\n display: none;\n z-index: 1;\n}\n.p-tabview-nav-link:focus {\n z-index: 1;\n}\n.p-tabview-title {\n line-height: 1;\n white-space: nowrap;\n}\n.p-tabview-nav-btn {\n position: absolute;\n top: 0;\n z-index: 2;\n height: 100%;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n}\n.p-tabview-nav-prev {\n left: 0;\n}\n.p-tabview-nav-next {\n right: 0;\n}\n.p-tabview-nav-content::-webkit-scrollbar {\n display: none;\n}\n";
  40195. styleInject(css_248z);
  40196. script.render = render;
  40197. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (script);
  40198. /***/ }),
  40199. /***/ "./node_modules/primevue/textarea/textarea.esm.js":
  40200. /*!********************************************************!*\
  40201. !*** ./node_modules/primevue/textarea/textarea.esm.js ***!
  40202. \********************************************************/
  40203. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  40204. "use strict";
  40205. __webpack_require__.r(__webpack_exports__);
  40206. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  40207. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  40208. /* harmony export */ });
  40209. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js");
  40210. var script = {
  40211. name: 'Textarea',
  40212. emits: ['update:modelValue'],
  40213. props: {
  40214. modelValue: null,
  40215. autoResize: Boolean
  40216. },
  40217. mounted() {
  40218. if (this.$el.offsetParent && this.autoResize) {
  40219. this.resize();
  40220. }
  40221. },
  40222. updated() {
  40223. if (this.$el.offsetParent && this.autoResize) {
  40224. this.resize();
  40225. }
  40226. },
  40227. methods: {
  40228. resize() {
  40229. const style = window.getComputedStyle(this.$el);
  40230. this.$el.style.height = 'auto';
  40231. this.$el.style.height = `calc(${style.borderTopWidth} + ${style.borderBottomWidth} + ${this.$el.scrollHeight}px)`;
  40232. if (parseFloat(this.$el.style.height) >= parseFloat(this.$el.style.maxHeight)) {
  40233. this.$el.style.overflowY = "scroll";
  40234. this.$el.style.height = this.$el.style.maxHeight;
  40235. }
  40236. else {
  40237. this.$el.style.overflow = "hidden";
  40238. }
  40239. },
  40240. onInput(event) {
  40241. if (this.autoResize) {
  40242. this.resize();
  40243. }
  40244. this.$emit('update:modelValue', event.target.value);
  40245. }
  40246. },
  40247. computed: {
  40248. filled() {
  40249. return (this.modelValue != null && this.modelValue.toString().length > 0)
  40250. }
  40251. }
  40252. };
  40253. function render(_ctx, _cache, $props, $setup, $data, $options) {
  40254. return ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)("textarea", (0,vue__WEBPACK_IMPORTED_MODULE_0__.mergeProps)({
  40255. class: ['p-inputtextarea p-inputtext p-component', {'p-filled': $options.filled, 'p-inputtextarea-resizable ': $props.autoResize}]
  40256. }, _ctx.$attrs, {
  40257. value: $props.modelValue,
  40258. onInput: _cache[1] || (_cache[1] = (...args) => ($options.onInput && $options.onInput(...args)))
  40259. }), null, 16, ["value"]))
  40260. }
  40261. function styleInject(css, ref) {
  40262. if ( ref === void 0 ) ref = {};
  40263. var insertAt = ref.insertAt;
  40264. if (!css || typeof document === 'undefined') { return; }
  40265. var head = document.head || document.getElementsByTagName('head')[0];
  40266. var style = document.createElement('style');
  40267. style.type = 'text/css';
  40268. if (insertAt === 'top') {
  40269. if (head.firstChild) {
  40270. head.insertBefore(style, head.firstChild);
  40271. } else {
  40272. head.appendChild(style);
  40273. }
  40274. } else {
  40275. head.appendChild(style);
  40276. }
  40277. if (style.styleSheet) {
  40278. style.styleSheet.cssText = css;
  40279. } else {
  40280. style.appendChild(document.createTextNode(css));
  40281. }
  40282. }
  40283. var css_248z = "\n.p-inputtextarea-resizable {\n overflow: hidden;\n resize: none;\n}\n.p-fluid .p-inputtextarea {\n width: 100%;\n}\n";
  40284. styleInject(css_248z);
  40285. script.render = render;
  40286. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (script);
  40287. /***/ }),
  40288. /***/ "./node_modules/primevue/tooltip/tooltip.esm.js":
  40289. /*!******************************************************!*\
  40290. !*** ./node_modules/primevue/tooltip/tooltip.esm.js ***!
  40291. \******************************************************/
  40292. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  40293. "use strict";
  40294. __webpack_require__.r(__webpack_exports__);
  40295. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  40296. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  40297. /* harmony export */ });
  40298. /* harmony import */ var primevue_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! primevue/utils */ "./node_modules/primevue/utils/utils.esm.js");
  40299. function bindEvents(el) {
  40300. const modifiers = el.$_ptooltipModifiers;
  40301. if (modifiers.focus) {
  40302. el.addEventListener('focus', onFocus);
  40303. el.addEventListener('blur', onBlur);
  40304. }
  40305. else {
  40306. el.addEventListener('mouseenter', onMouseEnter);
  40307. el.addEventListener('mouseleave', onMouseLeave);
  40308. el.addEventListener('click', onClick);
  40309. }
  40310. }
  40311. function unbindEvents(el) {
  40312. const modifiers = el.$_ptooltipModifiers;
  40313. if (modifiers.focus) {
  40314. el.removeEventListener('focus', onFocus);
  40315. el.removeEventListener('blur', onBlur);
  40316. }
  40317. else {
  40318. el.removeEventListener('mouseenter', onMouseEnter);
  40319. el.removeEventListener('mouseleave', onMouseLeave);
  40320. el.removeEventListener('click', onClick);
  40321. }
  40322. }
  40323. function bindScrollListener(el) {
  40324. if (!el.$_ptooltipScrollHandler) {
  40325. el.$_ptooltipScrollHandler = new primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ConnectedOverlayScrollHandler(el, function() {
  40326. hide(el);
  40327. });
  40328. }
  40329. el.$_ptooltipScrollHandler.bindScrollListener();
  40330. }
  40331. function unbindScrollListener(el) {
  40332. if (el.$_ptooltipScrollHandler) {
  40333. el.$_ptooltipScrollHandler.unbindScrollListener();
  40334. }
  40335. }
  40336. function onMouseEnter(event) {
  40337. show(event.currentTarget);
  40338. }
  40339. function onMouseLeave(event) {
  40340. hide(event.currentTarget);
  40341. }
  40342. function onFocus(event) {
  40343. show(event.currentTarget);
  40344. }
  40345. function onBlur(event) {
  40346. hide(event.currentTarget);
  40347. }
  40348. function onClick(event) {
  40349. hide(event.currentTarget);
  40350. }
  40351. function show(el) {
  40352. if (el.$_ptooltipDisabled) {
  40353. return;
  40354. }
  40355. let tooltipElement = create(el);
  40356. align(el);
  40357. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.fadeIn(tooltipElement, 250);
  40358. window.addEventListener('resize', function onWindowResize() {
  40359. if (!primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.isAndroid()) {
  40360. hide(el);
  40361. }
  40362. this.removeEventListener('resize', onWindowResize);
  40363. });
  40364. bindScrollListener(el);
  40365. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ZIndexUtils.set('tooltip', tooltipElement, el.$_ptooltipZIndex);
  40366. }
  40367. function hide(el) {
  40368. remove(el);
  40369. unbindScrollListener(el);
  40370. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ZIndexUtils.clear(el);
  40371. }
  40372. function getTooltipElement(el) {
  40373. return document.getElementById(el.$_ptooltipId);
  40374. }
  40375. function create(el) {
  40376. const id = (0,primevue_utils__WEBPACK_IMPORTED_MODULE_0__.UniqueComponentId)() + '_tooltip';
  40377. el.$_ptooltipId = id;
  40378. let container = document.createElement('div');
  40379. container.id = id;
  40380. let tooltipArrow = document.createElement('div');
  40381. tooltipArrow.className = 'p-tooltip-arrow';
  40382. container.appendChild(tooltipArrow);
  40383. let tooltipText = document.createElement('div');
  40384. tooltipText.className = 'p-tooltip-text';
  40385. if (el.$_ptooltipEscape) {
  40386. tooltipText.innerHTML = el.$_ptooltipValue;
  40387. }
  40388. else {
  40389. tooltipText.innerHTML = '';
  40390. tooltipText.appendChild(document.createTextNode(el.$_ptooltipValue));
  40391. }
  40392. container.appendChild(tooltipText);
  40393. document.body.appendChild(container);
  40394. container.style.display = 'inline-block';
  40395. return container;
  40396. }
  40397. function remove(el) {
  40398. if (el) {
  40399. let tooltipElement = getTooltipElement(el);
  40400. if (tooltipElement && tooltipElement.parentElement) {
  40401. document.body.removeChild(tooltipElement);
  40402. }
  40403. el.$_ptooltipId = null;
  40404. }
  40405. }
  40406. function align(el) {
  40407. const modifiers = el.$_ptooltipModifiers;
  40408. if (modifiers.top) {
  40409. alignTop(el);
  40410. if (isOutOfBounds(el)) {
  40411. alignBottom(el);
  40412. if (isOutOfBounds(el)) {
  40413. alignTop(el);
  40414. }
  40415. }
  40416. }
  40417. else if (modifiers.left) {
  40418. alignLeft(el);
  40419. if (isOutOfBounds(el)) {
  40420. alignRight(el);
  40421. if (isOutOfBounds(el)) {
  40422. alignTop(el);
  40423. if (isOutOfBounds(el)) {
  40424. alignBottom(el);
  40425. if (isOutOfBounds(el)) {
  40426. alignLeft(el);
  40427. }
  40428. }
  40429. }
  40430. }
  40431. }
  40432. else if (modifiers.bottom) {
  40433. alignBottom(el);
  40434. if (isOutOfBounds(el)) {
  40435. alignTop(el);
  40436. if (isOutOfBounds(el)) {
  40437. alignBottom(el);
  40438. }
  40439. }
  40440. }
  40441. else {
  40442. alignRight(el);
  40443. if (isOutOfBounds(el)) {
  40444. alignLeft(el);
  40445. if (isOutOfBounds(el)) {
  40446. alignTop(el);
  40447. if (isOutOfBounds(el)) {
  40448. alignBottom(el);
  40449. if (isOutOfBounds(el)) {
  40450. alignRight(el);
  40451. }
  40452. }
  40453. }
  40454. }
  40455. }
  40456. }
  40457. function getHostOffset(el) {
  40458. let offset = el.getBoundingClientRect();
  40459. let targetLeft = offset.left + primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getWindowScrollLeft();
  40460. let targetTop = offset.top + primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getWindowScrollTop();
  40461. return {left: targetLeft, top: targetTop};
  40462. }
  40463. function alignRight(el) {
  40464. preAlign(el, 'right');
  40465. let tooltipElement = getTooltipElement(el);
  40466. let hostOffset = getHostOffset(el);
  40467. let left = hostOffset.left + primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterWidth(el);
  40468. let top = hostOffset.top + (primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterHeight(el) - primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterHeight(tooltipElement)) / 2;
  40469. tooltipElement.style.left = left + 'px';
  40470. tooltipElement.style.top = top + 'px';
  40471. }
  40472. function alignLeft(el) {
  40473. preAlign(el, 'left');
  40474. let tooltipElement = getTooltipElement(el);
  40475. let hostOffset = getHostOffset(el);
  40476. let left = hostOffset.left - primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterWidth(tooltipElement);
  40477. let top = hostOffset.top + (primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterHeight(el) - primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterHeight(tooltipElement)) / 2;
  40478. tooltipElement.style.left = left + 'px';
  40479. tooltipElement.style.top = top + 'px';
  40480. }
  40481. function alignTop(el) {
  40482. preAlign(el, 'top');
  40483. let tooltipElement = getTooltipElement(el);
  40484. let hostOffset = getHostOffset(el);
  40485. let left = hostOffset.left + (primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterWidth(el) - primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterWidth(tooltipElement)) / 2;
  40486. let top = hostOffset.top - primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterHeight(tooltipElement);
  40487. tooltipElement.style.left = left + 'px';
  40488. tooltipElement.style.top = top + 'px';
  40489. }
  40490. function alignBottom(el) {
  40491. preAlign(el, 'bottom');
  40492. let tooltipElement = getTooltipElement(el);
  40493. let hostOffset = getHostOffset(el);
  40494. let left = hostOffset.left + (primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterWidth(el) - primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterWidth(tooltipElement)) / 2;
  40495. let top = hostOffset.top + primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterHeight(el);
  40496. tooltipElement.style.left = left + 'px';
  40497. tooltipElement.style.top = top + 'px';
  40498. }
  40499. function preAlign(el, position) {
  40500. let tooltipElement = getTooltipElement(el);
  40501. tooltipElement.style.left = -999 + 'px';
  40502. tooltipElement.style.top = -999 + 'px';
  40503. tooltipElement.className = `p-tooltip p-component p-tooltip-${position} ${el.$_ptooltipClass||''}`;
  40504. }
  40505. function isOutOfBounds(el) {
  40506. let tooltipElement = getTooltipElement(el);
  40507. let offset = tooltipElement.getBoundingClientRect();
  40508. let targetTop = offset.top;
  40509. let targetLeft = offset.left;
  40510. let width = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterWidth(tooltipElement);
  40511. let height = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getOuterHeight(tooltipElement);
  40512. let viewport = primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.getViewport();
  40513. return (targetLeft + width > viewport.width) || (targetLeft < 0) || (targetTop < 0) || (targetTop + height > viewport.height);
  40514. }
  40515. function getTarget(el) {
  40516. return primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.hasClass(el, 'p-inputwrapper') ? primevue_utils__WEBPACK_IMPORTED_MODULE_0__.DomHandler.findSingle(el, 'input'): el;
  40517. }
  40518. function getModifiers(options) {
  40519. // modifiers
  40520. if (options.modifiers && Object.keys(options.modifiers).length) {
  40521. return options.modifiers;
  40522. }
  40523. // arg
  40524. if (options.arg && typeof options.arg === 'object') {
  40525. return Object.entries(options.arg).reduce((acc, [key, val]) => {
  40526. if (key === 'event' || key === 'position') acc[val] = true;
  40527. return acc;
  40528. }, {});
  40529. }
  40530. return {};
  40531. }
  40532. const Tooltip = {
  40533. beforeMount(el, options) {
  40534. let target = getTarget(el);
  40535. target.$_ptooltipModifiers = getModifiers(options);
  40536. if (!options.value) return;
  40537. else if (typeof options.value === 'string') {
  40538. target.$_ptooltipValue = options.value;
  40539. target.$_ptooltipDisabled = false;
  40540. target.$_ptooltipEscape = false;
  40541. target.$_ptooltipClass = null;
  40542. }
  40543. else {
  40544. target.$_ptooltipValue = options.value.value;
  40545. target.$_ptooltipDisabled = options.value.disabled || false;
  40546. target.$_ptooltipEscape = options.value.escape || false;
  40547. target.$_ptooltipClass = options.value.class;
  40548. }
  40549. target.$_ptooltipZIndex = options.instance.$primevue && options.instance.$primevue.config && options.instance.$primevue.config.zIndex.tooltip;
  40550. bindEvents(target);
  40551. },
  40552. unmounted(el) {
  40553. let target = getTarget(el);
  40554. remove(target);
  40555. unbindEvents(target);
  40556. if (target.$_ptooltipScrollHandler) {
  40557. target.$_ptooltipScrollHandler.destroy();
  40558. target.$_ptooltipScrollHandler = null;
  40559. }
  40560. primevue_utils__WEBPACK_IMPORTED_MODULE_0__.ZIndexUtils.clear(el);
  40561. },
  40562. updated(el, options) {
  40563. let target = getTarget(el);
  40564. target.$_ptooltipModifiers = getModifiers(options);
  40565. if (!options.value) return;
  40566. if (typeof options.value === 'string') {
  40567. target.$_ptooltipValue = options.value;
  40568. target.$_ptooltipDisabled = false;
  40569. target.$_ptooltipEscape = false;
  40570. target.$_ptooltipClass = null;
  40571. }
  40572. else {
  40573. target.$_ptooltipValue = options.value.value;
  40574. target.$_ptooltipDisabled = options.value.disabled || false;
  40575. target.$_ptooltipEscape = options.value.escape || false;
  40576. target.$_ptooltipClass = options.value.class;
  40577. }
  40578. }
  40579. };
  40580. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Tooltip);
  40581. /***/ }),
  40582. /***/ "./node_modules/primevue/utils/utils.esm.js":
  40583. /*!**************************************************!*\
  40584. !*** ./node_modules/primevue/utils/utils.esm.js ***!
  40585. \**************************************************/
  40586. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  40587. "use strict";
  40588. __webpack_require__.r(__webpack_exports__);
  40589. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  40590. /* harmony export */ "ConnectedOverlayScrollHandler": () => (/* binding */ ConnectedOverlayScrollHandler),
  40591. /* harmony export */ "DomHandler": () => (/* binding */ DomHandler),
  40592. /* harmony export */ "EventBus": () => (/* binding */ primebus),
  40593. /* harmony export */ "ObjectUtils": () => (/* binding */ ObjectUtils),
  40594. /* harmony export */ "UniqueComponentId": () => (/* binding */ UniqueComponentId),
  40595. /* harmony export */ "ZIndexUtils": () => (/* binding */ ZIndexUtils)
  40596. /* harmony export */ });
  40597. var DomHandler = {
  40598. innerWidth(el) {
  40599. let width = el.offsetWidth;
  40600. let style = getComputedStyle(el);
  40601. width += parseFloat(style.paddingLeft) + parseFloat(style.paddingRight);
  40602. return width;
  40603. },
  40604. width(el) {
  40605. let width = el.offsetWidth;
  40606. let style = getComputedStyle(el);
  40607. width -= parseFloat(style.paddingLeft) + parseFloat(style.paddingRight);
  40608. return width;
  40609. },
  40610. getWindowScrollTop() {
  40611. let doc = document.documentElement;
  40612. return (window.pageYOffset || doc.scrollTop) - (doc.clientTop || 0);
  40613. },
  40614. getWindowScrollLeft() {
  40615. let doc = document.documentElement;
  40616. return (window.pageXOffset || doc.scrollLeft) - (doc.clientLeft || 0);
  40617. },
  40618. getOuterWidth(el, margin) {
  40619. if (el) {
  40620. let width = el.offsetWidth;
  40621. if (margin) {
  40622. let style = getComputedStyle(el);
  40623. width += parseFloat(style.marginLeft) + parseFloat(style.marginRight);
  40624. }
  40625. return width;
  40626. }
  40627. else {
  40628. return 0;
  40629. }
  40630. },
  40631. getOuterHeight(el, margin) {
  40632. if (el) {
  40633. let height = el.offsetHeight;
  40634. if (margin) {
  40635. let style = getComputedStyle(el);
  40636. height += parseFloat(style.marginTop) + parseFloat(style.marginBottom);
  40637. }
  40638. return height;
  40639. }
  40640. else {
  40641. return 0;
  40642. }
  40643. },
  40644. getClientHeight(el, margin) {
  40645. if (el) {
  40646. let height = el.clientHeight;
  40647. if (margin) {
  40648. let style = getComputedStyle(el);
  40649. height += parseFloat(style.marginTop) + parseFloat(style.marginBottom);
  40650. }
  40651. return height;
  40652. } else {
  40653. return 0;
  40654. }
  40655. },
  40656. getViewport() {
  40657. let win = window,
  40658. d = document,
  40659. e = d.documentElement,
  40660. g = d.getElementsByTagName('body')[0],
  40661. w = win.innerWidth || e.clientWidth || g.clientWidth,
  40662. h = win.innerHeight || e.clientHeight || g.clientHeight;
  40663. return {width: w, height: h};
  40664. },
  40665. getOffset(el) {
  40666. var rect = el.getBoundingClientRect();
  40667. return {
  40668. top: rect.top + (window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0),
  40669. left: rect.left + (window.pageXOffset || document.documentElement.scrollLeft || document.body.scrollLeft || 0),
  40670. };
  40671. },
  40672. index(element) {
  40673. let children = element.parentNode.childNodes;
  40674. let num = 0;
  40675. for (var i = 0; i < children.length; i++) {
  40676. if (children[i] === element) return num;
  40677. if (children[i].nodeType === 1) num++;
  40678. }
  40679. return -1;
  40680. },
  40681. addMultipleClasses(element, className) {
  40682. if (element.classList) {
  40683. let styles = className.split(' ');
  40684. for (let i = 0; i < styles.length; i++) {
  40685. element.classList.add(styles[i]);
  40686. }
  40687. }
  40688. else {
  40689. let styles = className.split(' ');
  40690. for (let i = 0; i < styles.length; i++) {
  40691. element.className += ' ' + styles[i];
  40692. }
  40693. }
  40694. },
  40695. addClass(element, className) {
  40696. if (element.classList)
  40697. element.classList.add(className);
  40698. else
  40699. element.className += ' ' + className;
  40700. },
  40701. removeClass(element, className) {
  40702. if (element.classList)
  40703. element.classList.remove(className);
  40704. else
  40705. element.className = element.className.replace(new RegExp('(^|\\b)' + className.split(' ').join('|') + '(\\b|$)', 'gi'), ' ');
  40706. },
  40707. hasClass(element, className) {
  40708. if (element) {
  40709. if (element.classList)
  40710. return element.classList.contains(className);
  40711. else
  40712. return new RegExp('(^| )' + className + '( |$)', 'gi').test(element.className);
  40713. }
  40714. return false;
  40715. },
  40716. find(element, selector) {
  40717. return element.querySelectorAll(selector);
  40718. },
  40719. findSingle(element, selector) {
  40720. return element.querySelector(selector);
  40721. },
  40722. getHeight(el) {
  40723. let height = el.offsetHeight;
  40724. let style = getComputedStyle(el);
  40725. height -= parseFloat(style.paddingTop) + parseFloat(style.paddingBottom) + parseFloat(style.borderTopWidth) + parseFloat(style.borderBottomWidth);
  40726. return height;
  40727. },
  40728. getWidth(el) {
  40729. let width = el.offsetWidth;
  40730. let style = getComputedStyle(el);
  40731. width -= parseFloat(style.paddingLeft) + parseFloat(style.paddingRight) + parseFloat(style.borderLeftWidth) + parseFloat(style.borderRightWidth);
  40732. return width;
  40733. },
  40734. absolutePosition(element, target) {
  40735. let elementDimensions = element.offsetParent ? { width: element.offsetWidth, height: element.offsetHeight } : this.getHiddenElementDimensions(element);
  40736. let elementOuterHeight = elementDimensions.height;
  40737. let elementOuterWidth = elementDimensions.width;
  40738. let targetOuterHeight = target.offsetHeight;
  40739. let targetOuterWidth = target.offsetWidth;
  40740. let targetOffset = target.getBoundingClientRect();
  40741. let windowScrollTop = this.getWindowScrollTop();
  40742. let windowScrollLeft = this.getWindowScrollLeft();
  40743. let viewport = this.getViewport();
  40744. let top, left;
  40745. if (targetOffset.top + targetOuterHeight + elementOuterHeight > viewport.height) {
  40746. top = targetOffset.top + windowScrollTop - elementOuterHeight;
  40747. element.style.transformOrigin = 'bottom';
  40748. if (top < 0) {
  40749. top = windowScrollTop;
  40750. }
  40751. }
  40752. else {
  40753. top = targetOuterHeight + targetOffset.top + windowScrollTop;
  40754. element.style.transformOrigin = 'top';
  40755. }
  40756. if (targetOffset.left + elementOuterWidth > viewport.width)
  40757. left = Math.max(0, targetOffset.left + windowScrollLeft + targetOuterWidth - elementOuterWidth);
  40758. else
  40759. left = targetOffset.left + windowScrollLeft;
  40760. element.style.top = top + 'px';
  40761. element.style.left = left + 'px';
  40762. },
  40763. relativePosition(element, target) {
  40764. let elementDimensions = element.offsetParent ? { width: element.offsetWidth, height: element.offsetHeight } : this.getHiddenElementDimensions(element);
  40765. const targetHeight = target.offsetHeight;
  40766. const targetOffset = target.getBoundingClientRect();
  40767. const viewport = this.getViewport();
  40768. let top, left;
  40769. if ((targetOffset.top + targetHeight + elementDimensions.height) > viewport.height) {
  40770. top = -1 * (elementDimensions.height);
  40771. element.style.transformOrigin = 'bottom';
  40772. if (targetOffset.top + top < 0) {
  40773. top = -1 * targetOffset.top;
  40774. }
  40775. }
  40776. else {
  40777. top = targetHeight;
  40778. element.style.transformOrigin = 'top';
  40779. }
  40780. if (elementDimensions.width > viewport.width) {
  40781. // element wider then viewport and cannot fit on screen (align at left side of viewport)
  40782. left = targetOffset.left * -1;
  40783. }
  40784. else if ((targetOffset.left + elementDimensions.width) > viewport.width) {
  40785. // element wider then viewport but can be fit on screen (align at right side of viewport)
  40786. left = (targetOffset.left + elementDimensions.width - viewport.width) * -1;
  40787. }
  40788. else {
  40789. // element fits on screen (align with target)
  40790. left = 0;
  40791. }
  40792. element.style.top = top + 'px';
  40793. element.style.left = left + 'px';
  40794. },
  40795. getParents(element, parents = []) {
  40796. return element['parentNode'] === null ? parents : this.getParents(element.parentNode, parents.concat([element.parentNode]));
  40797. },
  40798. getScrollableParents(element) {
  40799. let scrollableParents = [];
  40800. if (element) {
  40801. let parents = this.getParents(element);
  40802. const overflowRegex = /(auto|scroll)/;
  40803. const overflowCheck = (node) => {
  40804. let styleDeclaration = window['getComputedStyle'](node, null);
  40805. return overflowRegex.test(styleDeclaration.getPropertyValue('overflow')) || overflowRegex.test(styleDeclaration.getPropertyValue('overflowX')) || overflowRegex.test(styleDeclaration.getPropertyValue('overflowY'));
  40806. };
  40807. for (let parent of parents) {
  40808. let scrollSelectors = parent.nodeType === 1 && parent.dataset['scrollselectors'];
  40809. if (scrollSelectors) {
  40810. let selectors = scrollSelectors.split(',');
  40811. for (let selector of selectors) {
  40812. let el = this.findSingle(parent, selector);
  40813. if (el && overflowCheck(el)) {
  40814. scrollableParents.push(el);
  40815. }
  40816. }
  40817. }
  40818. if (parent.nodeType !== 9 && overflowCheck(parent)) {
  40819. scrollableParents.push(parent);
  40820. }
  40821. }
  40822. }
  40823. return scrollableParents;
  40824. },
  40825. getHiddenElementOuterHeight(element) {
  40826. element.style.visibility = 'hidden';
  40827. element.style.display = 'block';
  40828. let elementHeight = element.offsetHeight;
  40829. element.style.display = 'none';
  40830. element.style.visibility = 'visible';
  40831. return elementHeight;
  40832. },
  40833. getHiddenElementOuterWidth(element) {
  40834. element.style.visibility = 'hidden';
  40835. element.style.display = 'block';
  40836. let elementWidth = element.offsetWidth;
  40837. element.style.display = 'none';
  40838. element.style.visibility = 'visible';
  40839. return elementWidth;
  40840. },
  40841. getHiddenElementDimensions(element) {
  40842. var dimensions = {};
  40843. element.style.visibility = 'hidden';
  40844. element.style.display = 'block';
  40845. dimensions.width = element.offsetWidth;
  40846. dimensions.height = element.offsetHeight;
  40847. element.style.display = 'none';
  40848. element.style.visibility = 'visible';
  40849. return dimensions;
  40850. },
  40851. fadeIn(element, duration) {
  40852. element.style.opacity = 0;
  40853. var last = +new Date();
  40854. var opacity = 0;
  40855. var tick = function () {
  40856. opacity = +element.style.opacity + (new Date().getTime() - last) / duration;
  40857. element.style.opacity = opacity;
  40858. last = +new Date();
  40859. if (+opacity < 1) {
  40860. (window.requestAnimationFrame && requestAnimationFrame(tick)) || setTimeout(tick, 16);
  40861. }
  40862. };
  40863. tick();
  40864. },
  40865. fadeOut(element, ms) {
  40866. var opacity = 1,
  40867. interval = 50,
  40868. duration = ms,
  40869. gap = interval / duration;
  40870. let fading = setInterval(() => {
  40871. opacity -= gap;
  40872. if (opacity <= 0) {
  40873. opacity = 0;
  40874. clearInterval(fading);
  40875. }
  40876. element.style.opacity = opacity;
  40877. }, interval);
  40878. },
  40879. getUserAgent() {
  40880. return navigator.userAgent;
  40881. },
  40882. appendChild(element, target) {
  40883. if(this.isElement(target))
  40884. target.appendChild(element);
  40885. else if(target.el && target.elElement)
  40886. target.elElement.appendChild(element);
  40887. else
  40888. throw new Error('Cannot append ' + target + ' to ' + element);
  40889. },
  40890. scrollInView(container, item) {
  40891. let borderTopValue = getComputedStyle(container).getPropertyValue('borderTopWidth');
  40892. let borderTop = borderTopValue ? parseFloat(borderTopValue) : 0;
  40893. let paddingTopValue = getComputedStyle(container).getPropertyValue('paddingTop');
  40894. let paddingTop = paddingTopValue ? parseFloat(paddingTopValue) : 0;
  40895. let containerRect = container.getBoundingClientRect();
  40896. let itemRect = item.getBoundingClientRect();
  40897. let offset = (itemRect.top + document.body.scrollTop) - (containerRect.top + document.body.scrollTop) - borderTop - paddingTop;
  40898. let scroll = container.scrollTop;
  40899. let elementHeight = container.clientHeight;
  40900. let itemHeight = this.getOuterHeight(item);
  40901. if (offset < 0) {
  40902. container.scrollTop = scroll + offset;
  40903. }
  40904. else if ((offset + itemHeight) > elementHeight) {
  40905. container.scrollTop = scroll + offset - elementHeight + itemHeight;
  40906. }
  40907. },
  40908. clearSelection() {
  40909. if(window.getSelection) {
  40910. if(window.getSelection().empty) {
  40911. window.getSelection().empty();
  40912. } else if(window.getSelection().removeAllRanges && window.getSelection().rangeCount > 0 && window.getSelection().getRangeAt(0).getClientRects().length > 0) {
  40913. window.getSelection().removeAllRanges();
  40914. }
  40915. }
  40916. else if(document['selection'] && document['selection'].empty) {
  40917. try {
  40918. document['selection'].empty();
  40919. } catch(error) {
  40920. //ignore IE bug
  40921. }
  40922. }
  40923. },
  40924. calculateScrollbarWidth() {
  40925. if(this.calculatedScrollbarWidth != null)
  40926. return this.calculatedScrollbarWidth;
  40927. let scrollDiv = document.createElement("div");
  40928. scrollDiv.className = "p-scrollbar-measure";
  40929. document.body.appendChild(scrollDiv);
  40930. let scrollbarWidth = scrollDiv.offsetWidth - scrollDiv.clientWidth;
  40931. document.body.removeChild(scrollDiv);
  40932. this.calculatedScrollbarWidth = scrollbarWidth;
  40933. return scrollbarWidth;
  40934. },
  40935. getBrowser() {
  40936. if(!this.browser) {
  40937. let matched = this.resolveUserAgent();
  40938. this.browser = {};
  40939. if (matched.browser) {
  40940. this.browser[matched.browser] = true;
  40941. this.browser['version'] = matched.version;
  40942. }
  40943. if (this.browser['chrome']) {
  40944. this.browser['webkit'] = true;
  40945. } else if (this.browser['webkit']) {
  40946. this.browser['safari'] = true;
  40947. }
  40948. }
  40949. return this.browser;
  40950. },
  40951. resolveUserAgent() {
  40952. let ua = navigator.userAgent.toLowerCase();
  40953. let match = /(chrome)[ ]([\w.]+)/.exec(ua) ||
  40954. /(webkit)[ ]([\w.]+)/.exec(ua) ||
  40955. /(opera)(?:.*version|)[ ]([\w.]+)/.exec(ua) ||
  40956. /(msie) ([\w.]+)/.exec(ua) ||
  40957. (ua.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec(ua)) ||
  40958. [];
  40959. return {
  40960. browser: match[1] || "",
  40961. version: match[2] || "0"
  40962. };
  40963. },
  40964. isVisible(element) {
  40965. return element.offsetParent != null;
  40966. },
  40967. invokeElementMethod(element, methodName, args) {
  40968. (element)[methodName].apply(element, args);
  40969. },
  40970. getFocusableElements(element) {
  40971. let focusableElements = this.find(element, `button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),
  40972. [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),
  40973. input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]), select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),
  40974. textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]), [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),
  40975. [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])`
  40976. );
  40977. let visibleFocusableElements = [];
  40978. for (let focusableElement of focusableElements) {
  40979. if (getComputedStyle(focusableElement).display != "none" && getComputedStyle(focusableElement).visibility != "hidden")
  40980. visibleFocusableElements.push(focusableElement);
  40981. }
  40982. return visibleFocusableElements;
  40983. },
  40984. getFirstFocusableElement(element) {
  40985. const focusableElements = this.getFocusableElements(element);
  40986. return focusableElements.length > 0 ? focusableElements[0] : null;
  40987. },
  40988. isClickable(element) {
  40989. const targetNode = element.nodeName;
  40990. const parentNode = element.parentElement && element.parentElement.nodeName;
  40991. return (targetNode == 'INPUT' || targetNode == 'BUTTON' || targetNode == 'A' ||
  40992. parentNode == 'INPUT' || parentNode == 'BUTTON' || parentNode == 'A' ||
  40993. this.hasClass(element, 'p-button') || this.hasClass(element.parentElement, 'p-button') ||
  40994. this.hasClass(element.parentElement, 'p-checkbox') || this.hasClass(element.parentElement, 'p-radiobutton')
  40995. );
  40996. },
  40997. applyStyle(element, style) {
  40998. if (typeof style === 'string') {
  40999. element.style.cssText = style;
  41000. }
  41001. else {
  41002. for (let prop in style) {
  41003. element.style[prop] = style[prop];
  41004. }
  41005. }
  41006. },
  41007. isIOS() {
  41008. return /iPad|iPhone|iPod/.test(navigator.userAgent) && !window['MSStream'];
  41009. },
  41010. isAndroid() {
  41011. return /(android)/i.test(navigator.userAgent);
  41012. },
  41013. isTouchDevice() {
  41014. return (('ontouchstart' in window) || (navigator.maxTouchPoints > 0) || (navigator.msMaxTouchPoints > 0));
  41015. },
  41016. exportCSV(csv, filename) {
  41017. let blob = new Blob([csv], {
  41018. type: 'application/csv;charset=utf-8;'
  41019. });
  41020. if (window.navigator.msSaveOrOpenBlob) {
  41021. navigator.msSaveOrOpenBlob(blob, filename + '.csv');
  41022. }
  41023. else {
  41024. let link = document.createElement("a");
  41025. if (link.download !== undefined) {
  41026. link.setAttribute('href', URL.createObjectURL(blob));
  41027. link.setAttribute('download', filename + '.csv');
  41028. link.style.display = 'none';
  41029. document.body.appendChild(link);
  41030. link.click();
  41031. document.body.removeChild(link);
  41032. }
  41033. else {
  41034. csv = 'data:text/csv;charset=utf-8,' + csv;
  41035. window.open(encodeURI(csv));
  41036. }
  41037. }
  41038. }
  41039. };
  41040. class ConnectedOverlayScrollHandler {
  41041. constructor(element, listener = () => {}) {
  41042. this.element = element;
  41043. this.listener = listener;
  41044. }
  41045. bindScrollListener() {
  41046. this.scrollableParents = DomHandler.getScrollableParents(this.element);
  41047. for (let i = 0; i < this.scrollableParents.length; i++) {
  41048. this.scrollableParents[i].addEventListener('scroll', this.listener);
  41049. }
  41050. }
  41051. unbindScrollListener() {
  41052. if (this.scrollableParents) {
  41053. for (let i = 0; i < this.scrollableParents.length; i++) {
  41054. this.scrollableParents[i].removeEventListener('scroll', this.listener);
  41055. }
  41056. }
  41057. }
  41058. destroy() {
  41059. this.unbindScrollListener();
  41060. this.element = null;
  41061. this.listener = null;
  41062. this.scrollableParents = null;
  41063. }
  41064. }
  41065. var ObjectUtils = {
  41066. equals(obj1, obj2, field) {
  41067. if (field)
  41068. return (this.resolveFieldData(obj1, field) === this.resolveFieldData(obj2, field));
  41069. else
  41070. return this.deepEquals(obj1, obj2);
  41071. },
  41072. deepEquals(a, b) {
  41073. if (a === b) return true;
  41074. if (a && b && typeof a == 'object' && typeof b == 'object') {
  41075. var arrA = Array.isArray(a)
  41076. , arrB = Array.isArray(b)
  41077. , i
  41078. , length
  41079. , key;
  41080. if (arrA && arrB) {
  41081. length = a.length;
  41082. if (length != b.length) return false;
  41083. for (i = length; i-- !== 0;)
  41084. if (!this.deepEquals(a[i], b[i])) return false;
  41085. return true;
  41086. }
  41087. if (arrA != arrB) return false;
  41088. var dateA = a instanceof Date
  41089. , dateB = b instanceof Date;
  41090. if (dateA != dateB) return false;
  41091. if (dateA && dateB) return a.getTime() == b.getTime();
  41092. var regexpA = a instanceof RegExp
  41093. , regexpB = b instanceof RegExp;
  41094. if (regexpA != regexpB) return false;
  41095. if (regexpA && regexpB) return a.toString() == b.toString();
  41096. var keys = Object.keys(a);
  41097. length = keys.length;
  41098. if (length !== Object.keys(b).length)
  41099. return false;
  41100. for (i = length; i-- !== 0;)
  41101. if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
  41102. for (i = length; i-- !== 0;) {
  41103. key = keys[i];
  41104. if (!this.deepEquals(a[key], b[key])) return false;
  41105. }
  41106. return true;
  41107. }
  41108. return a !== a && b !== b;
  41109. },
  41110. resolveFieldData(data, field) {
  41111. if (data && Object.keys(data).length && field) {
  41112. if (this.isFunction(field)) {
  41113. return field(data);
  41114. }
  41115. else if(field.indexOf('.') === -1) {
  41116. return data[field];
  41117. }
  41118. else {
  41119. let fields = field.split('.');
  41120. let value = data;
  41121. for(var i = 0, len = fields.length; i < len; ++i) {
  41122. if (value == null) {
  41123. return null;
  41124. }
  41125. value = value[fields[i]];
  41126. }
  41127. return value;
  41128. }
  41129. }
  41130. else {
  41131. return null;
  41132. }
  41133. },
  41134. isFunction(obj) {
  41135. return !!(obj && obj.constructor && obj.call && obj.apply);
  41136. },
  41137. filter(value, fields, filterValue) {
  41138. var filteredItems = [];
  41139. if (value) {
  41140. for (let item of value) {
  41141. for (let field of fields) {
  41142. if (String(this.resolveFieldData(item, field)).toLowerCase().indexOf(filterValue.toLowerCase()) > -1) {
  41143. filteredItems.push(item);
  41144. break;
  41145. }
  41146. }
  41147. }
  41148. }
  41149. return filteredItems;
  41150. },
  41151. reorderArray(value, from, to) {
  41152. let target;
  41153. if (value && (from !== to)) {
  41154. if (to >= value.length) {
  41155. target = to - value.length;
  41156. while ((target--) + 1) {
  41157. value.push(undefined);
  41158. }
  41159. }
  41160. value.splice(to, 0, value.splice(from, 1)[0]);
  41161. }
  41162. },
  41163. findIndexInList(value, list) {
  41164. let index = -1;
  41165. if (list) {
  41166. for (let i = 0; i < list.length; i++) {
  41167. if (list[i] === value) {
  41168. index = i;
  41169. break;
  41170. }
  41171. }
  41172. }
  41173. return index;
  41174. },
  41175. contains(value, list) {
  41176. if (value != null && list && list.length) {
  41177. for (let val of list) {
  41178. if (this.equals(value, val))
  41179. return true;
  41180. }
  41181. }
  41182. return false;
  41183. },
  41184. insertIntoOrderedArray(item, index, arr, sourceArr) {
  41185. if (arr.length > 0) {
  41186. let injected = false;
  41187. for (let i = 0; i < arr.length; i++) {
  41188. let currentItemIndex = this.findIndexInList(arr[i], sourceArr);
  41189. if (currentItemIndex > index) {
  41190. arr.splice(i, 0, item);
  41191. injected = true;
  41192. break;
  41193. }
  41194. }
  41195. if (!injected) {
  41196. arr.push(item);
  41197. }
  41198. }
  41199. else {
  41200. arr.push(item);
  41201. }
  41202. },
  41203. removeAccents(str) {
  41204. if (str && str.search(/[\xC0-\xFF]/g) > -1) {
  41205. str = str
  41206. .replace(/[\xC0-\xC5]/g, "A")
  41207. .replace(/[\xC6]/g, "AE")
  41208. .replace(/[\xC7]/g, "C")
  41209. .replace(/[\xC8-\xCB]/g, "E")
  41210. .replace(/[\xCC-\xCF]/g, "I")
  41211. .replace(/[\xD0]/g, "D")
  41212. .replace(/[\xD1]/g, "N")
  41213. .replace(/[\xD2-\xD6\xD8]/g, "O")
  41214. .replace(/[\xD9-\xDC]/g, "U")
  41215. .replace(/[\xDD]/g, "Y")
  41216. .replace(/[\xDE]/g, "P")
  41217. .replace(/[\xE0-\xE5]/g, "a")
  41218. .replace(/[\xE6]/g, "ae")
  41219. .replace(/[\xE7]/g, "c")
  41220. .replace(/[\xE8-\xEB]/g, "e")
  41221. .replace(/[\xEC-\xEF]/g, "i")
  41222. .replace(/[\xF1]/g, "n")
  41223. .replace(/[\xF2-\xF6\xF8]/g, "o")
  41224. .replace(/[\xF9-\xFC]/g, "u")
  41225. .replace(/[\xFE]/g, "p")
  41226. .replace(/[\xFD\xFF]/g, "y");
  41227. }
  41228. return str;
  41229. },
  41230. getVNodeProp(vnode, prop) {
  41231. let props = vnode.props;
  41232. if (props) {
  41233. let kebapProp = prop.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();
  41234. let propName = Object.prototype.hasOwnProperty.call(props, kebapProp) ? kebapProp : prop;
  41235. return ((vnode.type.props[prop].type === Boolean && props[propName] === '') ? true : props[propName]);
  41236. }
  41237. return null;
  41238. },
  41239. isEmpty(value) {
  41240. return (
  41241. value === null || value === undefined || value === '' ||
  41242. (Array.isArray(value) && value.length === 0) ||
  41243. (!(value instanceof Date) && typeof value === 'object' && Object.keys(value).length === 0)
  41244. );
  41245. },
  41246. isNotEmpty(value) {
  41247. return !this.isEmpty(value);
  41248. }
  41249. };
  41250. function handler() {
  41251. let zIndexes = [];
  41252. const generateZIndex = (key, baseZIndex) => {
  41253. let lastZIndex = zIndexes.length > 0 ? zIndexes[zIndexes.length - 1] : { key, value: baseZIndex };
  41254. let newZIndex = lastZIndex.value + (lastZIndex.key === key ? 0 : baseZIndex) + 1;
  41255. zIndexes.push({ key, value: newZIndex });
  41256. return newZIndex;
  41257. };
  41258. const revertZIndex = (zIndex) => {
  41259. zIndexes = zIndexes.filter(obj => obj.value !== zIndex);
  41260. };
  41261. const getCurrentZIndex = () => {
  41262. return zIndexes.length > 0 ? zIndexes[zIndexes.length - 1].value : 0;
  41263. };
  41264. const getZIndex = (el) => {
  41265. return el ? parseInt(el.style.zIndex, 10) || 0 : 0
  41266. };
  41267. return {
  41268. get: getZIndex,
  41269. set: (key, el, baseZIndex) => {
  41270. if (el) {
  41271. el.style.zIndex = String(generateZIndex(key, baseZIndex));
  41272. }
  41273. },
  41274. clear: (el) => {
  41275. if (el) {
  41276. revertZIndex(getZIndex(el));
  41277. el.style.zIndex = '';
  41278. }
  41279. },
  41280. getCurrent: () => getCurrentZIndex()
  41281. };
  41282. }
  41283. var ZIndexUtils = handler();
  41284. var lastId = 0;
  41285. function UniqueComponentId (prefix = 'pv_id_') {
  41286. lastId++;
  41287. return `${prefix}${lastId}`;
  41288. }
  41289. function primebus() {
  41290. const allHandlers = new Map();
  41291. return {
  41292. on(type, handler) {
  41293. let handlers = allHandlers.get(type);
  41294. if (!handlers)
  41295. handlers = [handler];
  41296. else
  41297. handlers.push(handler);
  41298. allHandlers.set(type, handlers);
  41299. },
  41300. off(type, handler) {
  41301. let handlers = allHandlers.get(type);
  41302. if (handlers) {
  41303. handlers.splice(handlers.indexOf(handler) >>> 0, 1);
  41304. }
  41305. },
  41306. emit(type, evt) {
  41307. let handlers = allHandlers.get(type);
  41308. if (handlers) {
  41309. handlers.slice().map((handler) => { handler(evt);});
  41310. }
  41311. }
  41312. };
  41313. }
  41314. /***/ }),
  41315. /***/ "./node_modules/primevue/virtualscroller/virtualscroller.esm.js":
  41316. /*!**********************************************************************!*\
  41317. !*** ./node_modules/primevue/virtualscroller/virtualscroller.esm.js ***!
  41318. \**********************************************************************/
  41319. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  41320. "use strict";
  41321. __webpack_require__.r(__webpack_exports__);
  41322. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  41323. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  41324. /* harmony export */ });
  41325. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js");
  41326. var script = {
  41327. name: 'VirtualScroller',
  41328. emits: ['update:numToleratedItems', 'scroll', 'scroll-index-change', 'lazy-load'],
  41329. props: {
  41330. id: {
  41331. type: String,
  41332. default: null
  41333. },
  41334. style: null,
  41335. class: null,
  41336. items: {
  41337. type: Array,
  41338. default: null
  41339. },
  41340. itemSize: {
  41341. type: [Number,Array],
  41342. default: 0
  41343. },
  41344. scrollHeight: null,
  41345. scrollWidth: null,
  41346. orientation: {
  41347. type: String,
  41348. default: 'vertical'
  41349. },
  41350. numToleratedItems: {
  41351. type: Number,
  41352. default: null
  41353. },
  41354. delay: {
  41355. type: Number,
  41356. default: 0
  41357. },
  41358. lazy: {
  41359. type: Boolean,
  41360. default: false
  41361. },
  41362. disabled: {
  41363. type: Boolean,
  41364. default: false
  41365. },
  41366. loaderDisabled: {
  41367. type: Boolean,
  41368. default: false
  41369. },
  41370. columns: {
  41371. type: Array,
  41372. default: null
  41373. },
  41374. loading: {
  41375. type: Boolean,
  41376. default: false
  41377. },
  41378. showSpacer: {
  41379. type: Boolean,
  41380. default: true
  41381. },
  41382. showLoader: {
  41383. type: Boolean,
  41384. default: false
  41385. }
  41386. },
  41387. data() {
  41388. return {
  41389. first: this.isBoth() ? { rows: 0, cols: 0 } : 0,
  41390. last: this.isBoth() ? { rows: 0, cols: 0 } : 0,
  41391. numItemsInViewport: this.isBoth() ? { rows: 0, cols: 0 } : 0,
  41392. lastScrollPos: this.isBoth() ? { top: 0, left: 0 } : 0,
  41393. d_numToleratedItems: this.numToleratedItems,
  41394. d_loading: this.loading,
  41395. loaderArr: [],
  41396. spacerStyle: {},
  41397. contentStyle: {}
  41398. }
  41399. },
  41400. element: null,
  41401. content: null,
  41402. lastScrollPos: null,
  41403. scrollTimeout: null,
  41404. mounted() {
  41405. this.init();
  41406. this.lastScrollPos = this.isBoth() ? { top: 0, left: 0 } : 0;
  41407. },
  41408. watch: {
  41409. numToleratedItems(newValue) {
  41410. this.d_numToleratedItems = newValue;
  41411. },
  41412. loading(newValue) {
  41413. this.d_loading = newValue;
  41414. },
  41415. items(newValue, oldValue) {
  41416. if (!oldValue || oldValue.length !== (newValue || []).length) {
  41417. this.init();
  41418. }
  41419. },
  41420. orientation() {
  41421. this.lastScrollPos = this.isBoth() ? { top: 0, left: 0 } : 0;
  41422. }
  41423. },
  41424. methods: {
  41425. init() {
  41426. this.setSize();
  41427. this.calculateOptions();
  41428. this.setSpacerSize();
  41429. },
  41430. isVertical() {
  41431. return this.orientation === 'vertical';
  41432. },
  41433. isHorizontal() {
  41434. return this.orientation === 'horizontal';
  41435. },
  41436. isBoth() {
  41437. return this.orientation === 'both';
  41438. },
  41439. scrollTo(options) {
  41440. this.element && this.element.scrollTo(options);
  41441. },
  41442. scrollToIndex(index, behavior = 'auto') {
  41443. const both = this.isBoth();
  41444. const horizontal = this.isHorizontal();
  41445. const first = this.first;
  41446. const { numToleratedItems } = this.calculateNumItems();
  41447. const itemSize = this.itemSize;
  41448. const contentPos = this.getContentPosition();
  41449. const calculateFirst = (_index = 0, _numT) => (_index <= _numT ? 0 : _index);
  41450. const calculateCoord = (_first, _size, _cpos) => (_first * _size) + _cpos;
  41451. const scrollTo = (left = 0, top = 0) => this.scrollTo({ left, top, behavior });
  41452. if (both) {
  41453. const newFirst = { rows: calculateFirst(index[0], numToleratedItems[0]), cols: calculateFirst(index[1], numToleratedItems[1]) };
  41454. if (newFirst.rows !== first.rows || newFirst.cols !== first.cols) {
  41455. scrollTo(calculateCoord(newFirst.cols, itemSize[1], contentPos.left), calculateCoord(newFirst.rows, itemSize[0], contentPos.top));
  41456. this.first = newFirst;
  41457. }
  41458. }
  41459. else {
  41460. const newFirst = calculateFirst(index, numToleratedItems);
  41461. if (newFirst !== first) {
  41462. horizontal ? scrollTo(calculateCoord(newFirst, itemSize, contentPos.left), 0) : scrollTo(0, calculateCoord(newFirst, itemSize, contentPos.top));
  41463. this.first = newFirst;
  41464. }
  41465. }
  41466. },
  41467. scrollInView(index, to, behavior = 'auto') {
  41468. if (to) {
  41469. const both = this.isBoth();
  41470. const horizontal = this.isHorizontal();
  41471. const { first, viewport } = this.getRenderedRange();
  41472. const scrollTo = (left = 0, top = 0) => this.scrollTo({ left, top, behavior });
  41473. const isToStart = to === 'to-start';
  41474. const isToEnd = to === 'to-end';
  41475. if (isToStart) {
  41476. if (both) {
  41477. if (viewport.first.rows - first.rows > index[0]) {
  41478. scrollTo(viewport.first.cols * this.itemSize[1], (viewport.first.rows - 1) * this.itemSize[0]);
  41479. }
  41480. else if (viewport.first.cols - first.cols > index[1]) {
  41481. scrollTo((viewport.first.cols - 1) * this.itemSize[1], viewport.first.rows * this.itemSize[0]);
  41482. }
  41483. }
  41484. else {
  41485. if (viewport.first - first > index) {
  41486. const pos = (viewport.first - 1) * this.itemSize;
  41487. horizontal ? scrollTo(pos, 0) : scrollTo(0, pos);
  41488. }
  41489. }
  41490. }
  41491. else if (isToEnd) {
  41492. if (both) {
  41493. if (viewport.last.rows - first.rows <= index[0] + 1) {
  41494. scrollTo(viewport.first.cols * this.itemSize[1], (viewport.first.rows + 1) * this.itemSize[0]);
  41495. }
  41496. else if (viewport.last.cols - first.cols <= index[1] + 1) {
  41497. scrollTo((viewport.first.cols + 1) * this.itemSize[1], viewport.first.rows * this.itemSize[0]);
  41498. }
  41499. }
  41500. else {
  41501. if (viewport.last - first <= index + 1) {
  41502. const pos = (viewport.first + 1) * this.itemSize;
  41503. horizontal ? scrollTo(pos, 0) : scrollTo(0, pos);
  41504. }
  41505. }
  41506. }
  41507. }
  41508. else {
  41509. this.scrollToIndex(index, behavior);
  41510. }
  41511. },
  41512. getRenderedRange() {
  41513. const calculateFirstInViewport = (_pos, _size) => Math.floor(_pos / (_size || _pos));
  41514. let firstInViewport = this.first;
  41515. let lastInViewport = 0;
  41516. if (this.element) {
  41517. const both = this.isBoth();
  41518. const horizontal = this.isHorizontal();
  41519. const scrollTop = this.element.scrollTop;
  41520. const scrollLeft = this.element.scrollLeft;
  41521. if (both) {
  41522. firstInViewport = { rows: calculateFirstInViewport(scrollTop, this.itemSize[0]), cols: calculateFirstInViewport(scrollLeft, this.itemSize[1]) };
  41523. lastInViewport = { rows: firstInViewport.rows + this.numItemsInViewport.rows, cols: firstInViewport.cols + this.numItemsInViewport.cols };
  41524. }
  41525. else {
  41526. const scrollPos = horizontal ? scrollLeft : scrollTop;
  41527. firstInViewport = calculateFirstInViewport(scrollPos, this.itemSize);
  41528. lastInViewport = firstInViewport + this.numItemsInViewport;
  41529. }
  41530. }
  41531. return {
  41532. first: this.first,
  41533. last: this.last,
  41534. viewport: {
  41535. first: firstInViewport,
  41536. last: lastInViewport
  41537. }
  41538. };
  41539. },
  41540. calculateNumItems() {
  41541. const both = this.isBoth();
  41542. const horizontal = this.isHorizontal();
  41543. const itemSize = this.itemSize;
  41544. const contentPos = this.getContentPosition();
  41545. const contentWidth = this.element ? this.element.offsetWidth - contentPos.left : 0;
  41546. const contentHeight = this.element ? this.element.offsetHeight - contentPos.top : 0;
  41547. const calculateNumItemsInViewport = (_contentSize, _itemSize) => Math.ceil(_contentSize / (_itemSize || _contentSize));
  41548. const calculateNumToleratedItems = (_numItems) => Math.ceil(_numItems / 2);
  41549. const numItemsInViewport = both ?
  41550. { rows: calculateNumItemsInViewport(contentHeight, itemSize[0]), cols: calculateNumItemsInViewport(contentWidth, itemSize[1]) } :
  41551. calculateNumItemsInViewport((horizontal ? contentWidth : contentHeight), itemSize);
  41552. const numToleratedItems = this.d_numToleratedItems || (both ?
  41553. [calculateNumToleratedItems(numItemsInViewport.rows), calculateNumToleratedItems(numItemsInViewport.cols)] :
  41554. calculateNumToleratedItems(numItemsInViewport));
  41555. return { numItemsInViewport, numToleratedItems };
  41556. },
  41557. calculateOptions() {
  41558. const both = this.isBoth();
  41559. const first = this.first;
  41560. const { numItemsInViewport, numToleratedItems } = this.calculateNumItems();
  41561. const calculateLast = (_first, _num, _numT, _isCols) => this.getLast(_first + _num + ((_first < _numT ? 2 : 3) * _numT), _isCols);
  41562. const last = both ?
  41563. { rows: calculateLast(first.rows, numItemsInViewport.rows, numToleratedItems[0]), cols: calculateLast(first.cols, numItemsInViewport.cols, numToleratedItems[1], true) } :
  41564. calculateLast(first, numItemsInViewport, numToleratedItems);
  41565. this.last = last;
  41566. this.numItemsInViewport = numItemsInViewport;
  41567. this.d_numToleratedItems = numToleratedItems;
  41568. this.$emit('update:numToleratedItems', this.d_numToleratedItems);
  41569. if (this.showLoader) {
  41570. this.loaderArr = both ?
  41571. Array.from({ length: numItemsInViewport.rows }).map(() => Array.from({ length: numItemsInViewport.cols })) :
  41572. Array.from({ length: numItemsInViewport });
  41573. }
  41574. if (this.lazy) {
  41575. this.$emit('lazy-load', { first, last });
  41576. }
  41577. },
  41578. getLast(last = 0, isCols) {
  41579. if (this.items) {
  41580. return Math.min((isCols ? (this.columns || this.items[0]).length : this.items.length), last);
  41581. }
  41582. return 0;
  41583. },
  41584. getContentPosition() {
  41585. if (this.content) {
  41586. const style = getComputedStyle(this.content);
  41587. const left = parseInt(style.paddingLeft, 10) + Math.max(parseInt(style.left, 10), 0);
  41588. const right = parseInt(style.paddingRight, 10) + Math.max(parseInt(style.right, 10), 0);
  41589. const top = parseInt(style.paddingTop, 10) + Math.max(parseInt(style.top, 10), 0);
  41590. const bottom = parseInt(style.paddingBottom, 10) + Math.max(parseInt(style.bottom, 10), 0);
  41591. return { left, right, top, bottom, x: left + right, y: top + bottom };
  41592. }
  41593. return { left: 0, right: 0, top: 0, bottom: 0, x: 0, y: 0 };
  41594. },
  41595. setSize() {
  41596. if (this.element) {
  41597. const both = this.isBoth();
  41598. const horizontal = this.isHorizontal();
  41599. const parentElement = this.element.parentElement;
  41600. const width = this.scrollWidth || `${(this.element.offsetWidth || parentElement.offsetWidth)}px`;
  41601. const height = this.scrollHeight || `${(this.element.offsetHeight || parentElement.offsetHeight)}px`;
  41602. const setProp = (_name, _value) => this.element.style[_name] = _value;
  41603. if (both || horizontal) {
  41604. setProp('height', height);
  41605. setProp('width', width);
  41606. }
  41607. else {
  41608. setProp('height', height);
  41609. }
  41610. }
  41611. },
  41612. setSpacerSize() {
  41613. const items = this.items;
  41614. if (items) {
  41615. const both = this.isBoth();
  41616. const horizontal = this.isHorizontal();
  41617. const contentPos = this.getContentPosition();
  41618. const setProp = (_name, _value, _size, _cpos = 0) => this.spacerStyle = { ...this.spacerStyle, ...{ [`${_name}`]: (((_value || []).length * _size) + _cpos) + 'px' } };
  41619. if (both) {
  41620. setProp('height', items, this.itemSize[0], contentPos.y);
  41621. setProp('width', (this.columns || items[1]), this.itemSize[1], contentPos.x);
  41622. }
  41623. else {
  41624. horizontal ? setProp('width', (this.columns || items), this.itemSize, contentPos.x) : setProp('height', items, this.itemSize, contentPos.y);
  41625. }
  41626. }
  41627. },
  41628. setContentPosition(pos) {
  41629. if (this.content) {
  41630. const both = this.isBoth();
  41631. const horizontal = this.isHorizontal();
  41632. const first = pos ? pos.first : this.first;
  41633. const calculateTranslateVal = (_first, _size) => (_first * _size);
  41634. const setTransform = (_x = 0, _y = 0) => {
  41635. this.contentStyle = { ...this.contentStyle, ...{ transform: `translate3d(${_x}px, ${_y}px, 0)` } };
  41636. };
  41637. if (both) {
  41638. setTransform(calculateTranslateVal(first.cols, this.itemSize[1]), calculateTranslateVal(first.rows, this.itemSize[0]));
  41639. }
  41640. else {
  41641. const translateVal = calculateTranslateVal(first, this.itemSize);
  41642. horizontal ? setTransform(translateVal, 0) : setTransform(0, translateVal);
  41643. }
  41644. }
  41645. },
  41646. onScrollPositionChange(event) {
  41647. const target = event.target;
  41648. const both = this.isBoth();
  41649. const horizontal = this.isHorizontal();
  41650. const contentPos = this.getContentPosition();
  41651. const calculateScrollPos = (_pos, _cpos) => _pos ? (_pos > _cpos ? _pos - _cpos : _pos) : 0;
  41652. const calculateCurrentIndex = (_pos, _size) => Math.floor(_pos / (_size || _pos));
  41653. const calculateTriggerIndex = (_currentIndex, _first, _last, _num, _numT, _isScrollDownOrRight) => {
  41654. return (_currentIndex <= _numT ? _numT : (_isScrollDownOrRight ? (_last - _num - _numT) : (_first + _numT - 1)))
  41655. };
  41656. const calculateFirst = (_currentIndex, _triggerIndex, _first, _last, _num, _numT, _isScrollDownOrRight) => {
  41657. if (_currentIndex <= _numT)
  41658. return 0;
  41659. else
  41660. return Math.max(0, _isScrollDownOrRight ?
  41661. (_currentIndex < _triggerIndex ? _first : _currentIndex - _numT) :
  41662. (_currentIndex > _triggerIndex ? _first : _currentIndex - (2 * _numT)));
  41663. };
  41664. const calculateLast = (_currentIndex, _first, _last, _num, _numT, _isCols) => {
  41665. let lastValue = _first + _num + (2 * _numT);
  41666. if (_currentIndex >= _numT) {
  41667. lastValue += (_numT + 1);
  41668. }
  41669. return this.getLast(lastValue, _isCols);
  41670. };
  41671. const scrollTop = calculateScrollPos(target.scrollTop, contentPos.top);
  41672. const scrollLeft = calculateScrollPos(target.scrollLeft, contentPos.left);
  41673. let newFirst = 0;
  41674. let newLast = this.last;
  41675. let isRangeChanged = false;
  41676. if (both) {
  41677. const isScrollDown = this.lastScrollPos.top <= scrollTop;
  41678. const isScrollRight = this.lastScrollPos.left <= scrollLeft;
  41679. const currentIndex = { rows: calculateCurrentIndex(scrollTop, this.itemSize[0]), cols: calculateCurrentIndex(scrollLeft, this.itemSize[1]) };
  41680. const triggerIndex = {
  41681. rows: calculateTriggerIndex(currentIndex.rows, this.first.rows, this.last.rows, this.numItemsInViewport.rows, this.d_numToleratedItems[0], isScrollDown),
  41682. cols: calculateTriggerIndex(currentIndex.cols, this.first.cols, this.last.cols, this.numItemsInViewport.cols, this.d_numToleratedItems[1], isScrollRight)
  41683. };
  41684. newFirst = {
  41685. rows: calculateFirst(currentIndex.rows, triggerIndex.rows, this.first.rows, this.last.rows, this.numItemsInViewport.rows, this.d_numToleratedItems[0], isScrollDown),
  41686. cols: calculateFirst(currentIndex.cols, triggerIndex.cols, this.first.cols, this.last.cols, this.numItemsInViewport.cols, this.d_numToleratedItems[1], isScrollRight)
  41687. };
  41688. newLast = {
  41689. rows: calculateLast(currentIndex.rows, newFirst.rows, this.last.rows, this.numItemsInViewport.rows, this.d_numToleratedItems[0]),
  41690. cols: calculateLast(currentIndex.cols, newFirst.cols, this.last.cols, this.numItemsInViewport.cols, this.d_numToleratedItems[1], true)
  41691. };
  41692. isRangeChanged = (newFirst.rows !== this.first.rows && newLast.rows !== this.last.rows) || (newFirst.cols !== this.first.cols && newLast.cols !== this.last.cols);
  41693. this.lastScrollPos = { top: scrollTop, left: scrollLeft };
  41694. }
  41695. else {
  41696. const scrollPos = horizontal ? scrollLeft : scrollTop;
  41697. const isScrollDownOrRight = this.lastScrollPos <= scrollPos;
  41698. const currentIndex = calculateCurrentIndex(scrollPos, this.itemSize);
  41699. const triggerIndex = calculateTriggerIndex(currentIndex, this.first, this.last, this.numItemsInViewport, this.d_numToleratedItems, isScrollDownOrRight);
  41700. newFirst = calculateFirst(currentIndex, triggerIndex, this.first, this.last, this.numItemsInViewport, this.d_numToleratedItems, isScrollDownOrRight);
  41701. newLast = calculateLast(currentIndex, newFirst, this.last, this.numItemsInViewport, this.d_numToleratedItems);
  41702. isRangeChanged = newFirst !== this.first && newLast !== this.last;
  41703. this.lastScrollPos = scrollPos;
  41704. }
  41705. return {
  41706. first: newFirst,
  41707. last: newLast,
  41708. isRangeChanged
  41709. }
  41710. },
  41711. onScrollChange(event) {
  41712. const { first, last, isRangeChanged } = this.onScrollPositionChange(event);
  41713. if (isRangeChanged) {
  41714. const newState = { first, last };
  41715. this.setContentPosition(newState);
  41716. this.first = first;
  41717. this.last = last;
  41718. this.$emit('scroll-index-change', newState);
  41719. if (this.lazy) {
  41720. this.$emit('lazy-load', newState);
  41721. }
  41722. }
  41723. },
  41724. onScroll(event) {
  41725. this.$emit('scroll', event);
  41726. if (this.delay) {
  41727. if (this.scrollTimeout) {
  41728. clearTimeout(this.scrollTimeout);
  41729. }
  41730. if (!this.d_loading && this.showLoader) {
  41731. const { isRangeChanged: changed } = this.onScrollPositionChange(event);
  41732. changed && (this.d_loading = true);
  41733. }
  41734. this.scrollTimeout = setTimeout(() => {
  41735. this.onScrollChange(event);
  41736. if (this.d_loading && this.showLoader && !this.lazy) {
  41737. this.d_loading = false;
  41738. }
  41739. }, this.delay);
  41740. }
  41741. else {
  41742. this.onScrollChange(event);
  41743. }
  41744. },
  41745. getOptions(renderedIndex) {
  41746. const count = (this.items || []).length;
  41747. const index = this.isBoth() ? this.first.rows + renderedIndex : this.first + renderedIndex;
  41748. return {
  41749. index,
  41750. count,
  41751. first: index === 0,
  41752. last: index === (count - 1),
  41753. even: index % 2 === 0,
  41754. odd: index % 2 !== 0
  41755. };
  41756. },
  41757. getLoaderOptions(index, extOptions) {
  41758. let count = this.loaderArr.length;
  41759. return {
  41760. index,
  41761. count,
  41762. first: index === 0,
  41763. last: index === (count - 1),
  41764. even: index % 2 === 0,
  41765. odd: index % 2 !== 0,
  41766. ...extOptions
  41767. }
  41768. },
  41769. elementRef(el) {
  41770. this.element = el;
  41771. },
  41772. contentRef(el) {
  41773. this.content = el;
  41774. }
  41775. },
  41776. computed: {
  41777. containerClass() {
  41778. return ['p-virtualscroller', {
  41779. 'p-both-scroll': this.isBoth(),
  41780. 'p-horizontal-scroll': this.isHorizontal()
  41781. }, this.class];
  41782. },
  41783. contentClass() {
  41784. return ['p-virtualscroller-content', {
  41785. 'p-virtualscroller-loading': this.d_loading
  41786. }];
  41787. },
  41788. loaderClass() {
  41789. return ['p-virtualscroller-loader', {
  41790. 'p-component-overlay': !this.$slots.loader
  41791. }];
  41792. },
  41793. loadedItems() {
  41794. const items = this.items;
  41795. if (items && !this.d_loading) {
  41796. if (this.isBoth()) {
  41797. return items.slice(this.first.rows, this.last.rows).map(item => this.columns ? item : item.slice(this.first.cols, this.last.cols));
  41798. }
  41799. else if (this.isHorizontal() && this.columns)
  41800. return items;
  41801. else
  41802. return items.slice(this.first, this.last);
  41803. }
  41804. return [];
  41805. },
  41806. loadedRows() {
  41807. return this.d_loading ? (this.loaderDisabled ? this.loaderArr : []) : this.loadedItems;
  41808. },
  41809. loadedColumns() {
  41810. if (this.columns) {
  41811. const both = this.isBoth();
  41812. const horizontal = this.isHorizontal();
  41813. if (both || horizontal) {
  41814. return this.d_loading && this.loaderDisabled ?
  41815. (both ? this.loaderArr[0] : this.loaderArr):
  41816. this.columns.slice((both ? this.first.cols : this.first), (both ? this.last.cols : this.last));
  41817. }
  41818. }
  41819. return this.columns;
  41820. }
  41821. }
  41822. };
  41823. const _hoisted_1 = {
  41824. key: 1,
  41825. class: "p-virtualscroller-loading-icon pi pi-spinner pi-spin"
  41826. };
  41827. function render(_ctx, _cache, $props, $setup, $data, $options) {
  41828. return (!$props.disabled)
  41829. ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)("div", {
  41830. key: 0,
  41831. ref: $options.elementRef,
  41832. class: $options.containerClass,
  41833. tabindex: 0,
  41834. style: $props.style,
  41835. onScroll: _cache[1] || (_cache[1] = (...args) => ($options.onScroll && $options.onScroll(...args)))
  41836. }, [
  41837. (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "content", {
  41838. styleClass: $options.contentClass,
  41839. items: $options.loadedItems,
  41840. getItemOptions: $options.getOptions,
  41841. loading: $data.d_loading,
  41842. getLoaderOptions: $options.getLoaderOptions,
  41843. itemSize: $props.itemSize,
  41844. rows: $options.loadedRows,
  41845. columns: $options.loadedColumns,
  41846. contentRef: $options.contentRef,
  41847. spacerStyle: $data.spacerStyle,
  41848. contentStyle: $data.contentStyle,
  41849. vertical: $options.isVertical(),
  41850. horizontal: $options.isHorizontal(),
  41851. both: $options.isBoth()
  41852. }, () => [
  41853. (0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)("div", {
  41854. ref: $options.contentRef,
  41855. class: $options.contentClass,
  41856. style: $data.contentStyle
  41857. }, [
  41858. ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderList)($options.loadedItems, (item, index) => {
  41859. return (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "item", {
  41860. key: index,
  41861. item: item,
  41862. options: $options.getOptions(index)
  41863. })
  41864. }), 128))
  41865. ], 6)
  41866. ]),
  41867. ($props.showSpacer)
  41868. ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)("div", {
  41869. key: 0,
  41870. class: "p-virtualscroller-spacer",
  41871. style: $data.spacerStyle
  41872. }, null, 4))
  41873. : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true),
  41874. (!$props.loaderDisabled && $props.showLoader && $data.d_loading)
  41875. ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)("div", {
  41876. key: 1,
  41877. class: $options.loaderClass
  41878. }, [
  41879. (_ctx.$slots && _ctx.$slots.loader)
  41880. ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment, { key: 0 }, (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderList)($data.loaderArr, (_, index) => {
  41881. return (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "loader", {
  41882. key: index,
  41883. options: $options.getLoaderOptions(index, $options.isBoth() && { numCols: _ctx.d_numItemsInViewport.cols })
  41884. })
  41885. }), 128))
  41886. : ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)("i", _hoisted_1))
  41887. ], 2))
  41888. : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("", true)
  41889. ], 38))
  41890. : ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment, { key: 1 }, [
  41891. (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "default"),
  41892. (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderSlot)(_ctx.$slots, "content", {
  41893. items: $props.items,
  41894. rows: $props.items,
  41895. columns: $options.loadedColumns
  41896. })
  41897. ], 64))
  41898. }
  41899. function styleInject(css, ref) {
  41900. if ( ref === void 0 ) ref = {};
  41901. var insertAt = ref.insertAt;
  41902. if (!css || typeof document === 'undefined') { return; }
  41903. var head = document.head || document.getElementsByTagName('head')[0];
  41904. var style = document.createElement('style');
  41905. style.type = 'text/css';
  41906. if (insertAt === 'top') {
  41907. if (head.firstChild) {
  41908. head.insertBefore(style, head.firstChild);
  41909. } else {
  41910. head.appendChild(style);
  41911. }
  41912. } else {
  41913. head.appendChild(style);
  41914. }
  41915. if (style.styleSheet) {
  41916. style.styleSheet.cssText = css;
  41917. } else {
  41918. style.appendChild(document.createTextNode(css));
  41919. }
  41920. }
  41921. var css_248z = "\n.p-virtualscroller {\n position: relative;\n overflow: auto;\n contain: strict;\n -webkit-transform: translateZ(0);\n transform: translateZ(0);\n will-change: scroll-position;\n outline: 0 none;\n}\n.p-virtualscroller-content {\n position: absolute;\n top: 0;\n left: 0;\n contain: content;\n min-height: 100%;\n min-width: 100%;\n will-change: transform;\n}\n.p-virtualscroller-spacer {\n position: absolute;\n top: 0;\n left: 0;\n height: 1px;\n width: 1px;\n -webkit-transform-origin: 0 0;\n transform-origin: 0 0;\n pointer-events: none;\n}\n.p-virtualscroller .p-virtualscroller-loader {\n position: sticky;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n}\n.p-virtualscroller-loader.p-component-overlay {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n}\n";
  41922. styleInject(css_248z);
  41923. script.render = render;
  41924. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (script);
  41925. /***/ }),
  41926. /***/ "./node_modules/process/browser.js":
  41927. /*!*****************************************!*\
  41928. !*** ./node_modules/process/browser.js ***!
  41929. \*****************************************/
  41930. /***/ ((module) => {
  41931. // shim for using process in browser
  41932. var process = module.exports = {};
  41933. // cached from whatever global is present so that test runners that stub it
  41934. // don't break things. But we need to wrap it in a try catch in case it is
  41935. // wrapped in strict mode code which doesn't define any globals. It's inside a
  41936. // function because try/catches deoptimize in certain engines.
  41937. var cachedSetTimeout;
  41938. var cachedClearTimeout;
  41939. function defaultSetTimout() {
  41940. throw new Error('setTimeout has not been defined');
  41941. }
  41942. function defaultClearTimeout () {
  41943. throw new Error('clearTimeout has not been defined');
  41944. }
  41945. (function () {
  41946. try {
  41947. if (typeof setTimeout === 'function') {
  41948. cachedSetTimeout = setTimeout;
  41949. } else {
  41950. cachedSetTimeout = defaultSetTimout;
  41951. }
  41952. } catch (e) {
  41953. cachedSetTimeout = defaultSetTimout;
  41954. }
  41955. try {
  41956. if (typeof clearTimeout === 'function') {
  41957. cachedClearTimeout = clearTimeout;
  41958. } else {
  41959. cachedClearTimeout = defaultClearTimeout;
  41960. }
  41961. } catch (e) {
  41962. cachedClearTimeout = defaultClearTimeout;
  41963. }
  41964. } ())
  41965. function runTimeout(fun) {
  41966. if (cachedSetTimeout === setTimeout) {
  41967. //normal enviroments in sane situations
  41968. return setTimeout(fun, 0);
  41969. }
  41970. // if setTimeout wasn't available but was latter defined
  41971. if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
  41972. cachedSetTimeout = setTimeout;
  41973. return setTimeout(fun, 0);
  41974. }
  41975. try {
  41976. // when when somebody has screwed with setTimeout but no I.E. maddness
  41977. return cachedSetTimeout(fun, 0);
  41978. } catch(e){
  41979. try {
  41980. // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
  41981. return cachedSetTimeout.call(null, fun, 0);
  41982. } catch(e){
  41983. // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
  41984. return cachedSetTimeout.call(this, fun, 0);
  41985. }
  41986. }
  41987. }
  41988. function runClearTimeout(marker) {
  41989. if (cachedClearTimeout === clearTimeout) {
  41990. //normal enviroments in sane situations
  41991. return clearTimeout(marker);
  41992. }
  41993. // if clearTimeout wasn't available but was latter defined
  41994. if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
  41995. cachedClearTimeout = clearTimeout;
  41996. return clearTimeout(marker);
  41997. }
  41998. try {
  41999. // when when somebody has screwed with setTimeout but no I.E. maddness
  42000. return cachedClearTimeout(marker);
  42001. } catch (e){
  42002. try {
  42003. // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
  42004. return cachedClearTimeout.call(null, marker);
  42005. } catch (e){
  42006. // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
  42007. // Some versions of I.E. have different rules for clearTimeout vs setTimeout
  42008. return cachedClearTimeout.call(this, marker);
  42009. }
  42010. }
  42011. }
  42012. var queue = [];
  42013. var draining = false;
  42014. var currentQueue;
  42015. var queueIndex = -1;
  42016. function cleanUpNextTick() {
  42017. if (!draining || !currentQueue) {
  42018. return;
  42019. }
  42020. draining = false;
  42021. if (currentQueue.length) {
  42022. queue = currentQueue.concat(queue);
  42023. } else {
  42024. queueIndex = -1;
  42025. }
  42026. if (queue.length) {
  42027. drainQueue();
  42028. }
  42029. }
  42030. function drainQueue() {
  42031. if (draining) {
  42032. return;
  42033. }
  42034. var timeout = runTimeout(cleanUpNextTick);
  42035. draining = true;
  42036. var len = queue.length;
  42037. while(len) {
  42038. currentQueue = queue;
  42039. queue = [];
  42040. while (++queueIndex < len) {
  42041. if (currentQueue) {
  42042. currentQueue[queueIndex].run();
  42043. }
  42044. }
  42045. queueIndex = -1;
  42046. len = queue.length;
  42047. }
  42048. currentQueue = null;
  42049. draining = false;
  42050. runClearTimeout(timeout);
  42051. }
  42052. process.nextTick = function (fun) {
  42053. var args = new Array(arguments.length - 1);
  42054. if (arguments.length > 1) {
  42055. for (var i = 1; i < arguments.length; i++) {
  42056. args[i - 1] = arguments[i];
  42057. }
  42058. }
  42059. queue.push(new Item(fun, args));
  42060. if (queue.length === 1 && !draining) {
  42061. runTimeout(drainQueue);
  42062. }
  42063. };
  42064. // v8 likes predictible objects
  42065. function Item(fun, array) {
  42066. this.fun = fun;
  42067. this.array = array;
  42068. }
  42069. Item.prototype.run = function () {
  42070. this.fun.apply(null, this.array);
  42071. };
  42072. process.title = 'browser';
  42073. process.browser = true;
  42074. process.env = {};
  42075. process.argv = [];
  42076. process.version = ''; // empty string to avoid regexp issues
  42077. process.versions = {};
  42078. function noop() {}
  42079. process.on = noop;
  42080. process.addListener = noop;
  42081. process.once = noop;
  42082. process.off = noop;
  42083. process.removeListener = noop;
  42084. process.removeAllListeners = noop;
  42085. process.emit = noop;
  42086. process.prependListener = noop;
  42087. process.prependOnceListener = noop;
  42088. process.listeners = function (name) { return [] }
  42089. process.binding = function (name) {
  42090. throw new Error('process.binding is not supported');
  42091. };
  42092. process.cwd = function () { return '/' };
  42093. process.chdir = function (dir) {
  42094. throw new Error('process.chdir is not supported');
  42095. };
  42096. process.umask = function() { return 0; };
  42097. /***/ }),
  42098. /***/ "./node_modules/quill/dist/quill.js":
  42099. /*!******************************************!*\
  42100. !*** ./node_modules/quill/dist/quill.js ***!
  42101. \******************************************/
  42102. /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
  42103. /* provided dependency */ var Buffer = __webpack_require__(/*! buffer */ "./node_modules/buffer/index.js")["Buffer"];
  42104. /*!
  42105. * Quill Editor v1.3.7
  42106. * https://quilljs.com/
  42107. * Copyright (c) 2014, Jason Chen
  42108. * Copyright (c) 2013, salesforce.com
  42109. */
  42110. (function webpackUniversalModuleDefinition(root, factory) {
  42111. if(true)
  42112. module.exports = factory();
  42113. else {}
  42114. })(typeof self !== 'undefined' ? self : this, function() {
  42115. return /******/ (function(modules) { // webpackBootstrap
  42116. /******/ // The module cache
  42117. /******/ var installedModules = {};
  42118. /******/
  42119. /******/ // The require function
  42120. /******/ function __nested_webpack_require_697__(moduleId) {
  42121. /******/
  42122. /******/ // Check if module is in cache
  42123. /******/ if(installedModules[moduleId]) {
  42124. /******/ return installedModules[moduleId].exports;
  42125. /******/ }
  42126. /******/ // Create a new module (and put it into the cache)
  42127. /******/ var module = installedModules[moduleId] = {
  42128. /******/ i: moduleId,
  42129. /******/ l: false,
  42130. /******/ exports: {}
  42131. /******/ };
  42132. /******/
  42133. /******/ // Execute the module function
  42134. /******/ modules[moduleId].call(module.exports, module, module.exports, __nested_webpack_require_697__);
  42135. /******/
  42136. /******/ // Flag the module as loaded
  42137. /******/ module.l = true;
  42138. /******/
  42139. /******/ // Return the exports of the module
  42140. /******/ return module.exports;
  42141. /******/ }
  42142. /******/
  42143. /******/
  42144. /******/ // expose the modules object (__webpack_modules__)
  42145. /******/ __nested_webpack_require_697__.m = modules;
  42146. /******/
  42147. /******/ // expose the module cache
  42148. /******/ __nested_webpack_require_697__.c = installedModules;
  42149. /******/
  42150. /******/ // define getter function for harmony exports
  42151. /******/ __nested_webpack_require_697__.d = function(exports, name, getter) {
  42152. /******/ if(!__nested_webpack_require_697__.o(exports, name)) {
  42153. /******/ Object.defineProperty(exports, name, {
  42154. /******/ configurable: false,
  42155. /******/ enumerable: true,
  42156. /******/ get: getter
  42157. /******/ });
  42158. /******/ }
  42159. /******/ };
  42160. /******/
  42161. /******/ // getDefaultExport function for compatibility with non-harmony modules
  42162. /******/ __nested_webpack_require_697__.n = function(module) {
  42163. /******/ var getter = module && module.__esModule ?
  42164. /******/ function getDefault() { return module['default']; } :
  42165. /******/ function getModuleExports() { return module; };
  42166. /******/ __nested_webpack_require_697__.d(getter, 'a', getter);
  42167. /******/ return getter;
  42168. /******/ };
  42169. /******/
  42170. /******/ // Object.prototype.hasOwnProperty.call
  42171. /******/ __nested_webpack_require_697__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
  42172. /******/
  42173. /******/ // __webpack_public_path__
  42174. /******/ __nested_webpack_require_697__.p = "";
  42175. /******/
  42176. /******/ // Load entry module and return exports
  42177. /******/ return __nested_webpack_require_697__(__nested_webpack_require_697__.s = 109);
  42178. /******/ })
  42179. /************************************************************************/
  42180. /******/ ([
  42181. /* 0 */
  42182. /***/ (function(module, exports, __nested_webpack_require_2976__) {
  42183. "use strict";
  42184. Object.defineProperty(exports, "__esModule", { value: true });
  42185. var container_1 = __nested_webpack_require_2976__(17);
  42186. var format_1 = __nested_webpack_require_2976__(18);
  42187. var leaf_1 = __nested_webpack_require_2976__(19);
  42188. var scroll_1 = __nested_webpack_require_2976__(45);
  42189. var inline_1 = __nested_webpack_require_2976__(46);
  42190. var block_1 = __nested_webpack_require_2976__(47);
  42191. var embed_1 = __nested_webpack_require_2976__(48);
  42192. var text_1 = __nested_webpack_require_2976__(49);
  42193. var attributor_1 = __nested_webpack_require_2976__(12);
  42194. var class_1 = __nested_webpack_require_2976__(32);
  42195. var style_1 = __nested_webpack_require_2976__(33);
  42196. var store_1 = __nested_webpack_require_2976__(31);
  42197. var Registry = __nested_webpack_require_2976__(1);
  42198. var Parchment = {
  42199. Scope: Registry.Scope,
  42200. create: Registry.create,
  42201. find: Registry.find,
  42202. query: Registry.query,
  42203. register: Registry.register,
  42204. Container: container_1.default,
  42205. Format: format_1.default,
  42206. Leaf: leaf_1.default,
  42207. Embed: embed_1.default,
  42208. Scroll: scroll_1.default,
  42209. Block: block_1.default,
  42210. Inline: inline_1.default,
  42211. Text: text_1.default,
  42212. Attributor: {
  42213. Attribute: attributor_1.default,
  42214. Class: class_1.default,
  42215. Style: style_1.default,
  42216. Store: store_1.default,
  42217. },
  42218. };
  42219. exports.default = Parchment;
  42220. /***/ }),
  42221. /* 1 */
  42222. /***/ (function(module, exports, __webpack_require__) {
  42223. "use strict";
  42224. var __extends = (this && this.__extends) || (function () {
  42225. var extendStatics = Object.setPrototypeOf ||
  42226. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  42227. function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
  42228. return function (d, b) {
  42229. extendStatics(d, b);
  42230. function __() { this.constructor = d; }
  42231. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  42232. };
  42233. })();
  42234. Object.defineProperty(exports, "__esModule", { value: true });
  42235. var ParchmentError = /** @class */ (function (_super) {
  42236. __extends(ParchmentError, _super);
  42237. function ParchmentError(message) {
  42238. var _this = this;
  42239. message = '[Parchment] ' + message;
  42240. _this = _super.call(this, message) || this;
  42241. _this.message = message;
  42242. _this.name = _this.constructor.name;
  42243. return _this;
  42244. }
  42245. return ParchmentError;
  42246. }(Error));
  42247. exports.ParchmentError = ParchmentError;
  42248. var attributes = {};
  42249. var classes = {};
  42250. var tags = {};
  42251. var types = {};
  42252. exports.DATA_KEY = '__blot';
  42253. var Scope;
  42254. (function (Scope) {
  42255. Scope[Scope["TYPE"] = 3] = "TYPE";
  42256. Scope[Scope["LEVEL"] = 12] = "LEVEL";
  42257. Scope[Scope["ATTRIBUTE"] = 13] = "ATTRIBUTE";
  42258. Scope[Scope["BLOT"] = 14] = "BLOT";
  42259. Scope[Scope["INLINE"] = 7] = "INLINE";
  42260. Scope[Scope["BLOCK"] = 11] = "BLOCK";
  42261. Scope[Scope["BLOCK_BLOT"] = 10] = "BLOCK_BLOT";
  42262. Scope[Scope["INLINE_BLOT"] = 6] = "INLINE_BLOT";
  42263. Scope[Scope["BLOCK_ATTRIBUTE"] = 9] = "BLOCK_ATTRIBUTE";
  42264. Scope[Scope["INLINE_ATTRIBUTE"] = 5] = "INLINE_ATTRIBUTE";
  42265. Scope[Scope["ANY"] = 15] = "ANY";
  42266. })(Scope = exports.Scope || (exports.Scope = {}));
  42267. function create(input, value) {
  42268. var match = query(input);
  42269. if (match == null) {
  42270. throw new ParchmentError("Unable to create " + input + " blot");
  42271. }
  42272. var BlotClass = match;
  42273. var node =
  42274. // @ts-ignore
  42275. input instanceof Node || input['nodeType'] === Node.TEXT_NODE ? input : BlotClass.create(value);
  42276. return new BlotClass(node, value);
  42277. }
  42278. exports.create = create;
  42279. function find(node, bubble) {
  42280. if (bubble === void 0) { bubble = false; }
  42281. if (node == null)
  42282. return null;
  42283. // @ts-ignore
  42284. if (node[exports.DATA_KEY] != null)
  42285. return node[exports.DATA_KEY].blot;
  42286. if (bubble)
  42287. return find(node.parentNode, bubble);
  42288. return null;
  42289. }
  42290. exports.find = find;
  42291. function query(query, scope) {
  42292. if (scope === void 0) { scope = Scope.ANY; }
  42293. var match;
  42294. if (typeof query === 'string') {
  42295. match = types[query] || attributes[query];
  42296. // @ts-ignore
  42297. }
  42298. else if (query instanceof Text || query['nodeType'] === Node.TEXT_NODE) {
  42299. match = types['text'];
  42300. }
  42301. else if (typeof query === 'number') {
  42302. if (query & Scope.LEVEL & Scope.BLOCK) {
  42303. match = types['block'];
  42304. }
  42305. else if (query & Scope.LEVEL & Scope.INLINE) {
  42306. match = types['inline'];
  42307. }
  42308. }
  42309. else if (query instanceof HTMLElement) {
  42310. var names = (query.getAttribute('class') || '').split(/\s+/);
  42311. for (var i in names) {
  42312. match = classes[names[i]];
  42313. if (match)
  42314. break;
  42315. }
  42316. match = match || tags[query.tagName];
  42317. }
  42318. if (match == null)
  42319. return null;
  42320. // @ts-ignore
  42321. if (scope & Scope.LEVEL & match.scope && scope & Scope.TYPE & match.scope)
  42322. return match;
  42323. return null;
  42324. }
  42325. exports.query = query;
  42326. function register() {
  42327. var Definitions = [];
  42328. for (var _i = 0; _i < arguments.length; _i++) {
  42329. Definitions[_i] = arguments[_i];
  42330. }
  42331. if (Definitions.length > 1) {
  42332. return Definitions.map(function (d) {
  42333. return register(d);
  42334. });
  42335. }
  42336. var Definition = Definitions[0];
  42337. if (typeof Definition.blotName !== 'string' && typeof Definition.attrName !== 'string') {
  42338. throw new ParchmentError('Invalid definition');
  42339. }
  42340. else if (Definition.blotName === 'abstract') {
  42341. throw new ParchmentError('Cannot register abstract class');
  42342. }
  42343. types[Definition.blotName || Definition.attrName] = Definition;
  42344. if (typeof Definition.keyName === 'string') {
  42345. attributes[Definition.keyName] = Definition;
  42346. }
  42347. else {
  42348. if (Definition.className != null) {
  42349. classes[Definition.className] = Definition;
  42350. }
  42351. if (Definition.tagName != null) {
  42352. if (Array.isArray(Definition.tagName)) {
  42353. Definition.tagName = Definition.tagName.map(function (tagName) {
  42354. return tagName.toUpperCase();
  42355. });
  42356. }
  42357. else {
  42358. Definition.tagName = Definition.tagName.toUpperCase();
  42359. }
  42360. var tagNames = Array.isArray(Definition.tagName) ? Definition.tagName : [Definition.tagName];
  42361. tagNames.forEach(function (tag) {
  42362. if (tags[tag] == null || Definition.className == null) {
  42363. tags[tag] = Definition;
  42364. }
  42365. });
  42366. }
  42367. }
  42368. return Definition;
  42369. }
  42370. exports.register = register;
  42371. /***/ }),
  42372. /* 2 */
  42373. /***/ (function(module, exports, __nested_webpack_require_9445__) {
  42374. var diff = __nested_webpack_require_9445__(51);
  42375. var equal = __nested_webpack_require_9445__(11);
  42376. var extend = __nested_webpack_require_9445__(3);
  42377. var op = __nested_webpack_require_9445__(20);
  42378. var NULL_CHARACTER = String.fromCharCode(0); // Placeholder char for embed in diff()
  42379. var Delta = function (ops) {
  42380. // Assume we are given a well formed ops
  42381. if (Array.isArray(ops)) {
  42382. this.ops = ops;
  42383. } else if (ops != null && Array.isArray(ops.ops)) {
  42384. this.ops = ops.ops;
  42385. } else {
  42386. this.ops = [];
  42387. }
  42388. };
  42389. Delta.prototype.insert = function (text, attributes) {
  42390. var newOp = {};
  42391. if (text.length === 0) return this;
  42392. newOp.insert = text;
  42393. if (attributes != null && typeof attributes === 'object' && Object.keys(attributes).length > 0) {
  42394. newOp.attributes = attributes;
  42395. }
  42396. return this.push(newOp);
  42397. };
  42398. Delta.prototype['delete'] = function (length) {
  42399. if (length <= 0) return this;
  42400. return this.push({ 'delete': length });
  42401. };
  42402. Delta.prototype.retain = function (length, attributes) {
  42403. if (length <= 0) return this;
  42404. var newOp = { retain: length };
  42405. if (attributes != null && typeof attributes === 'object' && Object.keys(attributes).length > 0) {
  42406. newOp.attributes = attributes;
  42407. }
  42408. return this.push(newOp);
  42409. };
  42410. Delta.prototype.push = function (newOp) {
  42411. var index = this.ops.length;
  42412. var lastOp = this.ops[index - 1];
  42413. newOp = extend(true, {}, newOp);
  42414. if (typeof lastOp === 'object') {
  42415. if (typeof newOp['delete'] === 'number' && typeof lastOp['delete'] === 'number') {
  42416. this.ops[index - 1] = { 'delete': lastOp['delete'] + newOp['delete'] };
  42417. return this;
  42418. }
  42419. // Since it does not matter if we insert before or after deleting at the same index,
  42420. // always prefer to insert first
  42421. if (typeof lastOp['delete'] === 'number' && newOp.insert != null) {
  42422. index -= 1;
  42423. lastOp = this.ops[index - 1];
  42424. if (typeof lastOp !== 'object') {
  42425. this.ops.unshift(newOp);
  42426. return this;
  42427. }
  42428. }
  42429. if (equal(newOp.attributes, lastOp.attributes)) {
  42430. if (typeof newOp.insert === 'string' && typeof lastOp.insert === 'string') {
  42431. this.ops[index - 1] = { insert: lastOp.insert + newOp.insert };
  42432. if (typeof newOp.attributes === 'object') this.ops[index - 1].attributes = newOp.attributes
  42433. return this;
  42434. } else if (typeof newOp.retain === 'number' && typeof lastOp.retain === 'number') {
  42435. this.ops[index - 1] = { retain: lastOp.retain + newOp.retain };
  42436. if (typeof newOp.attributes === 'object') this.ops[index - 1].attributes = newOp.attributes
  42437. return this;
  42438. }
  42439. }
  42440. }
  42441. if (index === this.ops.length) {
  42442. this.ops.push(newOp);
  42443. } else {
  42444. this.ops.splice(index, 0, newOp);
  42445. }
  42446. return this;
  42447. };
  42448. Delta.prototype.chop = function () {
  42449. var lastOp = this.ops[this.ops.length - 1];
  42450. if (lastOp && lastOp.retain && !lastOp.attributes) {
  42451. this.ops.pop();
  42452. }
  42453. return this;
  42454. };
  42455. Delta.prototype.filter = function (predicate) {
  42456. return this.ops.filter(predicate);
  42457. };
  42458. Delta.prototype.forEach = function (predicate) {
  42459. this.ops.forEach(predicate);
  42460. };
  42461. Delta.prototype.map = function (predicate) {
  42462. return this.ops.map(predicate);
  42463. };
  42464. Delta.prototype.partition = function (predicate) {
  42465. var passed = [], failed = [];
  42466. this.forEach(function(op) {
  42467. var target = predicate(op) ? passed : failed;
  42468. target.push(op);
  42469. });
  42470. return [passed, failed];
  42471. };
  42472. Delta.prototype.reduce = function (predicate, initial) {
  42473. return this.ops.reduce(predicate, initial);
  42474. };
  42475. Delta.prototype.changeLength = function () {
  42476. return this.reduce(function (length, elem) {
  42477. if (elem.insert) {
  42478. return length + op.length(elem);
  42479. } else if (elem.delete) {
  42480. return length - elem.delete;
  42481. }
  42482. return length;
  42483. }, 0);
  42484. };
  42485. Delta.prototype.length = function () {
  42486. return this.reduce(function (length, elem) {
  42487. return length + op.length(elem);
  42488. }, 0);
  42489. };
  42490. Delta.prototype.slice = function (start, end) {
  42491. start = start || 0;
  42492. if (typeof end !== 'number') end = Infinity;
  42493. var ops = [];
  42494. var iter = op.iterator(this.ops);
  42495. var index = 0;
  42496. while (index < end && iter.hasNext()) {
  42497. var nextOp;
  42498. if (index < start) {
  42499. nextOp = iter.next(start - index);
  42500. } else {
  42501. nextOp = iter.next(end - index);
  42502. ops.push(nextOp);
  42503. }
  42504. index += op.length(nextOp);
  42505. }
  42506. return new Delta(ops);
  42507. };
  42508. Delta.prototype.compose = function (other) {
  42509. var thisIter = op.iterator(this.ops);
  42510. var otherIter = op.iterator(other.ops);
  42511. var ops = [];
  42512. var firstOther = otherIter.peek();
  42513. if (firstOther != null && typeof firstOther.retain === 'number' && firstOther.attributes == null) {
  42514. var firstLeft = firstOther.retain;
  42515. while (thisIter.peekType() === 'insert' && thisIter.peekLength() <= firstLeft) {
  42516. firstLeft -= thisIter.peekLength();
  42517. ops.push(thisIter.next());
  42518. }
  42519. if (firstOther.retain - firstLeft > 0) {
  42520. otherIter.next(firstOther.retain - firstLeft);
  42521. }
  42522. }
  42523. var delta = new Delta(ops);
  42524. while (thisIter.hasNext() || otherIter.hasNext()) {
  42525. if (otherIter.peekType() === 'insert') {
  42526. delta.push(otherIter.next());
  42527. } else if (thisIter.peekType() === 'delete') {
  42528. delta.push(thisIter.next());
  42529. } else {
  42530. var length = Math.min(thisIter.peekLength(), otherIter.peekLength());
  42531. var thisOp = thisIter.next(length);
  42532. var otherOp = otherIter.next(length);
  42533. if (typeof otherOp.retain === 'number') {
  42534. var newOp = {};
  42535. if (typeof thisOp.retain === 'number') {
  42536. newOp.retain = length;
  42537. } else {
  42538. newOp.insert = thisOp.insert;
  42539. }
  42540. // Preserve null when composing with a retain, otherwise remove it for inserts
  42541. var attributes = op.attributes.compose(thisOp.attributes, otherOp.attributes, typeof thisOp.retain === 'number');
  42542. if (attributes) newOp.attributes = attributes;
  42543. delta.push(newOp);
  42544. // Optimization if rest of other is just retain
  42545. if (!otherIter.hasNext() && equal(delta.ops[delta.ops.length - 1], newOp)) {
  42546. var rest = new Delta(thisIter.rest());
  42547. return delta.concat(rest).chop();
  42548. }
  42549. // Other op should be delete, we could be an insert or retain
  42550. // Insert + delete cancels out
  42551. } else if (typeof otherOp['delete'] === 'number' && typeof thisOp.retain === 'number') {
  42552. delta.push(otherOp);
  42553. }
  42554. }
  42555. }
  42556. return delta.chop();
  42557. };
  42558. Delta.prototype.concat = function (other) {
  42559. var delta = new Delta(this.ops.slice());
  42560. if (other.ops.length > 0) {
  42561. delta.push(other.ops[0]);
  42562. delta.ops = delta.ops.concat(other.ops.slice(1));
  42563. }
  42564. return delta;
  42565. };
  42566. Delta.prototype.diff = function (other, index) {
  42567. if (this.ops === other.ops) {
  42568. return new Delta();
  42569. }
  42570. var strings = [this, other].map(function (delta) {
  42571. return delta.map(function (op) {
  42572. if (op.insert != null) {
  42573. return typeof op.insert === 'string' ? op.insert : NULL_CHARACTER;
  42574. }
  42575. var prep = (delta === other) ? 'on' : 'with';
  42576. throw new Error('diff() called ' + prep + ' non-document');
  42577. }).join('');
  42578. });
  42579. var delta = new Delta();
  42580. var diffResult = diff(strings[0], strings[1], index);
  42581. var thisIter = op.iterator(this.ops);
  42582. var otherIter = op.iterator(other.ops);
  42583. diffResult.forEach(function (component) {
  42584. var length = component[1].length;
  42585. while (length > 0) {
  42586. var opLength = 0;
  42587. switch (component[0]) {
  42588. case diff.INSERT:
  42589. opLength = Math.min(otherIter.peekLength(), length);
  42590. delta.push(otherIter.next(opLength));
  42591. break;
  42592. case diff.DELETE:
  42593. opLength = Math.min(length, thisIter.peekLength());
  42594. thisIter.next(opLength);
  42595. delta['delete'](opLength);
  42596. break;
  42597. case diff.EQUAL:
  42598. opLength = Math.min(thisIter.peekLength(), otherIter.peekLength(), length);
  42599. var thisOp = thisIter.next(opLength);
  42600. var otherOp = otherIter.next(opLength);
  42601. if (equal(thisOp.insert, otherOp.insert)) {
  42602. delta.retain(opLength, op.attributes.diff(thisOp.attributes, otherOp.attributes));
  42603. } else {
  42604. delta.push(otherOp)['delete'](opLength);
  42605. }
  42606. break;
  42607. }
  42608. length -= opLength;
  42609. }
  42610. });
  42611. return delta.chop();
  42612. };
  42613. Delta.prototype.eachLine = function (predicate, newline) {
  42614. newline = newline || '\n';
  42615. var iter = op.iterator(this.ops);
  42616. var line = new Delta();
  42617. var i = 0;
  42618. while (iter.hasNext()) {
  42619. if (iter.peekType() !== 'insert') return;
  42620. var thisOp = iter.peek();
  42621. var start = op.length(thisOp) - iter.peekLength();
  42622. var index = typeof thisOp.insert === 'string' ?
  42623. thisOp.insert.indexOf(newline, start) - start : -1;
  42624. if (index < 0) {
  42625. line.push(iter.next());
  42626. } else if (index > 0) {
  42627. line.push(iter.next(index));
  42628. } else {
  42629. if (predicate(line, iter.next(1).attributes || {}, i) === false) {
  42630. return;
  42631. }
  42632. i += 1;
  42633. line = new Delta();
  42634. }
  42635. }
  42636. if (line.length() > 0) {
  42637. predicate(line, {}, i);
  42638. }
  42639. };
  42640. Delta.prototype.transform = function (other, priority) {
  42641. priority = !!priority;
  42642. if (typeof other === 'number') {
  42643. return this.transformPosition(other, priority);
  42644. }
  42645. var thisIter = op.iterator(this.ops);
  42646. var otherIter = op.iterator(other.ops);
  42647. var delta = new Delta();
  42648. while (thisIter.hasNext() || otherIter.hasNext()) {
  42649. if (thisIter.peekType() === 'insert' && (priority || otherIter.peekType() !== 'insert')) {
  42650. delta.retain(op.length(thisIter.next()));
  42651. } else if (otherIter.peekType() === 'insert') {
  42652. delta.push(otherIter.next());
  42653. } else {
  42654. var length = Math.min(thisIter.peekLength(), otherIter.peekLength());
  42655. var thisOp = thisIter.next(length);
  42656. var otherOp = otherIter.next(length);
  42657. if (thisOp['delete']) {
  42658. // Our delete either makes their delete redundant or removes their retain
  42659. continue;
  42660. } else if (otherOp['delete']) {
  42661. delta.push(otherOp);
  42662. } else {
  42663. // We retain either their retain or insert
  42664. delta.retain(length, op.attributes.transform(thisOp.attributes, otherOp.attributes, priority));
  42665. }
  42666. }
  42667. }
  42668. return delta.chop();
  42669. };
  42670. Delta.prototype.transformPosition = function (index, priority) {
  42671. priority = !!priority;
  42672. var thisIter = op.iterator(this.ops);
  42673. var offset = 0;
  42674. while (thisIter.hasNext() && offset <= index) {
  42675. var length = thisIter.peekLength();
  42676. var nextType = thisIter.peekType();
  42677. thisIter.next();
  42678. if (nextType === 'delete') {
  42679. index -= Math.min(length, index - offset);
  42680. continue;
  42681. } else if (nextType === 'insert' && (offset < index || !priority)) {
  42682. index += length;
  42683. }
  42684. offset += length;
  42685. }
  42686. return index;
  42687. };
  42688. module.exports = Delta;
  42689. /***/ }),
  42690. /* 3 */
  42691. /***/ (function(module, exports) {
  42692. 'use strict';
  42693. var hasOwn = Object.prototype.hasOwnProperty;
  42694. var toStr = Object.prototype.toString;
  42695. var defineProperty = Object.defineProperty;
  42696. var gOPD = Object.getOwnPropertyDescriptor;
  42697. var isArray = function isArray(arr) {
  42698. if (typeof Array.isArray === 'function') {
  42699. return Array.isArray(arr);
  42700. }
  42701. return toStr.call(arr) === '[object Array]';
  42702. };
  42703. var isPlainObject = function isPlainObject(obj) {
  42704. if (!obj || toStr.call(obj) !== '[object Object]') {
  42705. return false;
  42706. }
  42707. var hasOwnConstructor = hasOwn.call(obj, 'constructor');
  42708. var hasIsPrototypeOf = obj.constructor && obj.constructor.prototype && hasOwn.call(obj.constructor.prototype, 'isPrototypeOf');
  42709. // Not own constructor property must be Object
  42710. if (obj.constructor && !hasOwnConstructor && !hasIsPrototypeOf) {
  42711. return false;
  42712. }
  42713. // Own properties are enumerated firstly, so to speed up,
  42714. // if last one is own, then all properties are own.
  42715. var key;
  42716. for (key in obj) { /**/ }
  42717. return typeof key === 'undefined' || hasOwn.call(obj, key);
  42718. };
  42719. // If name is '__proto__', and Object.defineProperty is available, define __proto__ as an own property on target
  42720. var setProperty = function setProperty(target, options) {
  42721. if (defineProperty && options.name === '__proto__') {
  42722. defineProperty(target, options.name, {
  42723. enumerable: true,
  42724. configurable: true,
  42725. value: options.newValue,
  42726. writable: true
  42727. });
  42728. } else {
  42729. target[options.name] = options.newValue;
  42730. }
  42731. };
  42732. // Return undefined instead of __proto__ if '__proto__' is not an own property
  42733. var getProperty = function getProperty(obj, name) {
  42734. if (name === '__proto__') {
  42735. if (!hasOwn.call(obj, name)) {
  42736. return void 0;
  42737. } else if (gOPD) {
  42738. // In early versions of node, obj['__proto__'] is buggy when obj has
  42739. // __proto__ as an own property. Object.getOwnPropertyDescriptor() works.
  42740. return gOPD(obj, name).value;
  42741. }
  42742. }
  42743. return obj[name];
  42744. };
  42745. module.exports = function extend() {
  42746. var options, name, src, copy, copyIsArray, clone;
  42747. var target = arguments[0];
  42748. var i = 1;
  42749. var length = arguments.length;
  42750. var deep = false;
  42751. // Handle a deep copy situation
  42752. if (typeof target === 'boolean') {
  42753. deep = target;
  42754. target = arguments[1] || {};
  42755. // skip the boolean and the target
  42756. i = 2;
  42757. }
  42758. if (target == null || (typeof target !== 'object' && typeof target !== 'function')) {
  42759. target = {};
  42760. }
  42761. for (; i < length; ++i) {
  42762. options = arguments[i];
  42763. // Only deal with non-null/undefined values
  42764. if (options != null) {
  42765. // Extend the base object
  42766. for (name in options) {
  42767. src = getProperty(target, name);
  42768. copy = getProperty(options, name);
  42769. // Prevent never-ending loop
  42770. if (target !== copy) {
  42771. // Recurse if we're merging plain objects or arrays
  42772. if (deep && copy && (isPlainObject(copy) || (copyIsArray = isArray(copy)))) {
  42773. if (copyIsArray) {
  42774. copyIsArray = false;
  42775. clone = src && isArray(src) ? src : [];
  42776. } else {
  42777. clone = src && isPlainObject(src) ? src : {};
  42778. }
  42779. // Never move original objects, clone them
  42780. setProperty(target, { name: name, newValue: extend(deep, clone, copy) });
  42781. // Don't bring in undefined values
  42782. } else if (typeof copy !== 'undefined') {
  42783. setProperty(target, { name: name, newValue: copy });
  42784. }
  42785. }
  42786. }
  42787. }
  42788. }
  42789. // Return the modified object
  42790. return target;
  42791. };
  42792. /***/ }),
  42793. /* 4 */
  42794. /***/ (function(module, exports, __nested_webpack_require_23616__) {
  42795. "use strict";
  42796. Object.defineProperty(exports, "__esModule", {
  42797. value: true
  42798. });
  42799. exports.default = exports.BlockEmbed = exports.bubbleFormats = undefined;
  42800. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  42801. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  42802. var _extend = __nested_webpack_require_23616__(3);
  42803. var _extend2 = _interopRequireDefault(_extend);
  42804. var _quillDelta = __nested_webpack_require_23616__(2);
  42805. var _quillDelta2 = _interopRequireDefault(_quillDelta);
  42806. var _parchment = __nested_webpack_require_23616__(0);
  42807. var _parchment2 = _interopRequireDefault(_parchment);
  42808. var _break = __nested_webpack_require_23616__(16);
  42809. var _break2 = _interopRequireDefault(_break);
  42810. var _inline = __nested_webpack_require_23616__(6);
  42811. var _inline2 = _interopRequireDefault(_inline);
  42812. var _text = __nested_webpack_require_23616__(7);
  42813. var _text2 = _interopRequireDefault(_text);
  42814. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  42815. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  42816. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  42817. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  42818. var NEWLINE_LENGTH = 1;
  42819. var BlockEmbed = function (_Parchment$Embed) {
  42820. _inherits(BlockEmbed, _Parchment$Embed);
  42821. function BlockEmbed() {
  42822. _classCallCheck(this, BlockEmbed);
  42823. return _possibleConstructorReturn(this, (BlockEmbed.__proto__ || Object.getPrototypeOf(BlockEmbed)).apply(this, arguments));
  42824. }
  42825. _createClass(BlockEmbed, [{
  42826. key: 'attach',
  42827. value: function attach() {
  42828. _get(BlockEmbed.prototype.__proto__ || Object.getPrototypeOf(BlockEmbed.prototype), 'attach', this).call(this);
  42829. this.attributes = new _parchment2.default.Attributor.Store(this.domNode);
  42830. }
  42831. }, {
  42832. key: 'delta',
  42833. value: function delta() {
  42834. return new _quillDelta2.default().insert(this.value(), (0, _extend2.default)(this.formats(), this.attributes.values()));
  42835. }
  42836. }, {
  42837. key: 'format',
  42838. value: function format(name, value) {
  42839. var attribute = _parchment2.default.query(name, _parchment2.default.Scope.BLOCK_ATTRIBUTE);
  42840. if (attribute != null) {
  42841. this.attributes.attribute(attribute, value);
  42842. }
  42843. }
  42844. }, {
  42845. key: 'formatAt',
  42846. value: function formatAt(index, length, name, value) {
  42847. this.format(name, value);
  42848. }
  42849. }, {
  42850. key: 'insertAt',
  42851. value: function insertAt(index, value, def) {
  42852. if (typeof value === 'string' && value.endsWith('\n')) {
  42853. var block = _parchment2.default.create(Block.blotName);
  42854. this.parent.insertBefore(block, index === 0 ? this : this.next);
  42855. block.insertAt(0, value.slice(0, -1));
  42856. } else {
  42857. _get(BlockEmbed.prototype.__proto__ || Object.getPrototypeOf(BlockEmbed.prototype), 'insertAt', this).call(this, index, value, def);
  42858. }
  42859. }
  42860. }]);
  42861. return BlockEmbed;
  42862. }(_parchment2.default.Embed);
  42863. BlockEmbed.scope = _parchment2.default.Scope.BLOCK_BLOT;
  42864. // It is important for cursor behavior BlockEmbeds use tags that are block level elements
  42865. var Block = function (_Parchment$Block) {
  42866. _inherits(Block, _Parchment$Block);
  42867. function Block(domNode) {
  42868. _classCallCheck(this, Block);
  42869. var _this2 = _possibleConstructorReturn(this, (Block.__proto__ || Object.getPrototypeOf(Block)).call(this, domNode));
  42870. _this2.cache = {};
  42871. return _this2;
  42872. }
  42873. _createClass(Block, [{
  42874. key: 'delta',
  42875. value: function delta() {
  42876. if (this.cache.delta == null) {
  42877. this.cache.delta = this.descendants(_parchment2.default.Leaf).reduce(function (delta, leaf) {
  42878. if (leaf.length() === 0) {
  42879. return delta;
  42880. } else {
  42881. return delta.insert(leaf.value(), bubbleFormats(leaf));
  42882. }
  42883. }, new _quillDelta2.default()).insert('\n', bubbleFormats(this));
  42884. }
  42885. return this.cache.delta;
  42886. }
  42887. }, {
  42888. key: 'deleteAt',
  42889. value: function deleteAt(index, length) {
  42890. _get(Block.prototype.__proto__ || Object.getPrototypeOf(Block.prototype), 'deleteAt', this).call(this, index, length);
  42891. this.cache = {};
  42892. }
  42893. }, {
  42894. key: 'formatAt',
  42895. value: function formatAt(index, length, name, value) {
  42896. if (length <= 0) return;
  42897. if (_parchment2.default.query(name, _parchment2.default.Scope.BLOCK)) {
  42898. if (index + length === this.length()) {
  42899. this.format(name, value);
  42900. }
  42901. } else {
  42902. _get(Block.prototype.__proto__ || Object.getPrototypeOf(Block.prototype), 'formatAt', this).call(this, index, Math.min(length, this.length() - index - 1), name, value);
  42903. }
  42904. this.cache = {};
  42905. }
  42906. }, {
  42907. key: 'insertAt',
  42908. value: function insertAt(index, value, def) {
  42909. if (def != null) return _get(Block.prototype.__proto__ || Object.getPrototypeOf(Block.prototype), 'insertAt', this).call(this, index, value, def);
  42910. if (value.length === 0) return;
  42911. var lines = value.split('\n');
  42912. var text = lines.shift();
  42913. if (text.length > 0) {
  42914. if (index < this.length() - 1 || this.children.tail == null) {
  42915. _get(Block.prototype.__proto__ || Object.getPrototypeOf(Block.prototype), 'insertAt', this).call(this, Math.min(index, this.length() - 1), text);
  42916. } else {
  42917. this.children.tail.insertAt(this.children.tail.length(), text);
  42918. }
  42919. this.cache = {};
  42920. }
  42921. var block = this;
  42922. lines.reduce(function (index, line) {
  42923. block = block.split(index, true);
  42924. block.insertAt(0, line);
  42925. return line.length;
  42926. }, index + text.length);
  42927. }
  42928. }, {
  42929. key: 'insertBefore',
  42930. value: function insertBefore(blot, ref) {
  42931. var head = this.children.head;
  42932. _get(Block.prototype.__proto__ || Object.getPrototypeOf(Block.prototype), 'insertBefore', this).call(this, blot, ref);
  42933. if (head instanceof _break2.default) {
  42934. head.remove();
  42935. }
  42936. this.cache = {};
  42937. }
  42938. }, {
  42939. key: 'length',
  42940. value: function length() {
  42941. if (this.cache.length == null) {
  42942. this.cache.length = _get(Block.prototype.__proto__ || Object.getPrototypeOf(Block.prototype), 'length', this).call(this) + NEWLINE_LENGTH;
  42943. }
  42944. return this.cache.length;
  42945. }
  42946. }, {
  42947. key: 'moveChildren',
  42948. value: function moveChildren(target, ref) {
  42949. _get(Block.prototype.__proto__ || Object.getPrototypeOf(Block.prototype), 'moveChildren', this).call(this, target, ref);
  42950. this.cache = {};
  42951. }
  42952. }, {
  42953. key: 'optimize',
  42954. value: function optimize(context) {
  42955. _get(Block.prototype.__proto__ || Object.getPrototypeOf(Block.prototype), 'optimize', this).call(this, context);
  42956. this.cache = {};
  42957. }
  42958. }, {
  42959. key: 'path',
  42960. value: function path(index) {
  42961. return _get(Block.prototype.__proto__ || Object.getPrototypeOf(Block.prototype), 'path', this).call(this, index, true);
  42962. }
  42963. }, {
  42964. key: 'removeChild',
  42965. value: function removeChild(child) {
  42966. _get(Block.prototype.__proto__ || Object.getPrototypeOf(Block.prototype), 'removeChild', this).call(this, child);
  42967. this.cache = {};
  42968. }
  42969. }, {
  42970. key: 'split',
  42971. value: function split(index) {
  42972. var force = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  42973. if (force && (index === 0 || index >= this.length() - NEWLINE_LENGTH)) {
  42974. var clone = this.clone();
  42975. if (index === 0) {
  42976. this.parent.insertBefore(clone, this);
  42977. return this;
  42978. } else {
  42979. this.parent.insertBefore(clone, this.next);
  42980. return clone;
  42981. }
  42982. } else {
  42983. var next = _get(Block.prototype.__proto__ || Object.getPrototypeOf(Block.prototype), 'split', this).call(this, index, force);
  42984. this.cache = {};
  42985. return next;
  42986. }
  42987. }
  42988. }]);
  42989. return Block;
  42990. }(_parchment2.default.Block);
  42991. Block.blotName = 'block';
  42992. Block.tagName = 'P';
  42993. Block.defaultChild = 'break';
  42994. Block.allowedChildren = [_inline2.default, _parchment2.default.Embed, _text2.default];
  42995. function bubbleFormats(blot) {
  42996. var formats = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  42997. if (blot == null) return formats;
  42998. if (typeof blot.formats === 'function') {
  42999. formats = (0, _extend2.default)(formats, blot.formats());
  43000. }
  43001. if (blot.parent == null || blot.parent.blotName == 'scroll' || blot.parent.statics.scope !== blot.statics.scope) {
  43002. return formats;
  43003. }
  43004. return bubbleFormats(blot.parent, formats);
  43005. }
  43006. exports.bubbleFormats = bubbleFormats;
  43007. exports.BlockEmbed = BlockEmbed;
  43008. exports.default = Block;
  43009. /***/ }),
  43010. /* 5 */
  43011. /***/ (function(module, exports, __nested_webpack_require_33760__) {
  43012. "use strict";
  43013. Object.defineProperty(exports, "__esModule", {
  43014. value: true
  43015. });
  43016. exports.default = exports.overload = exports.expandConfig = undefined;
  43017. var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
  43018. var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();
  43019. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  43020. __nested_webpack_require_33760__(50);
  43021. var _quillDelta = __nested_webpack_require_33760__(2);
  43022. var _quillDelta2 = _interopRequireDefault(_quillDelta);
  43023. var _editor = __nested_webpack_require_33760__(14);
  43024. var _editor2 = _interopRequireDefault(_editor);
  43025. var _emitter3 = __nested_webpack_require_33760__(8);
  43026. var _emitter4 = _interopRequireDefault(_emitter3);
  43027. var _module = __nested_webpack_require_33760__(9);
  43028. var _module2 = _interopRequireDefault(_module);
  43029. var _parchment = __nested_webpack_require_33760__(0);
  43030. var _parchment2 = _interopRequireDefault(_parchment);
  43031. var _selection = __nested_webpack_require_33760__(15);
  43032. var _selection2 = _interopRequireDefault(_selection);
  43033. var _extend = __nested_webpack_require_33760__(3);
  43034. var _extend2 = _interopRequireDefault(_extend);
  43035. var _logger = __nested_webpack_require_33760__(10);
  43036. var _logger2 = _interopRequireDefault(_logger);
  43037. var _theme = __nested_webpack_require_33760__(34);
  43038. var _theme2 = _interopRequireDefault(_theme);
  43039. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  43040. function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
  43041. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  43042. var debug = (0, _logger2.default)('quill');
  43043. var Quill = function () {
  43044. _createClass(Quill, null, [{
  43045. key: 'debug',
  43046. value: function debug(limit) {
  43047. if (limit === true) {
  43048. limit = 'log';
  43049. }
  43050. _logger2.default.level(limit);
  43051. }
  43052. }, {
  43053. key: 'find',
  43054. value: function find(node) {
  43055. return node.__quill || _parchment2.default.find(node);
  43056. }
  43057. }, {
  43058. key: 'import',
  43059. value: function _import(name) {
  43060. if (this.imports[name] == null) {
  43061. debug.error('Cannot import ' + name + '. Are you sure it was registered?');
  43062. }
  43063. return this.imports[name];
  43064. }
  43065. }, {
  43066. key: 'register',
  43067. value: function register(path, target) {
  43068. var _this = this;
  43069. var overwrite = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
  43070. if (typeof path !== 'string') {
  43071. var name = path.attrName || path.blotName;
  43072. if (typeof name === 'string') {
  43073. // register(Blot | Attributor, overwrite)
  43074. this.register('formats/' + name, path, target);
  43075. } else {
  43076. Object.keys(path).forEach(function (key) {
  43077. _this.register(key, path[key], target);
  43078. });
  43079. }
  43080. } else {
  43081. if (this.imports[path] != null && !overwrite) {
  43082. debug.warn('Overwriting ' + path + ' with', target);
  43083. }
  43084. this.imports[path] = target;
  43085. if ((path.startsWith('blots/') || path.startsWith('formats/')) && target.blotName !== 'abstract') {
  43086. _parchment2.default.register(target);
  43087. } else if (path.startsWith('modules') && typeof target.register === 'function') {
  43088. target.register();
  43089. }
  43090. }
  43091. }
  43092. }]);
  43093. function Quill(container) {
  43094. var _this2 = this;
  43095. var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  43096. _classCallCheck(this, Quill);
  43097. this.options = expandConfig(container, options);
  43098. this.container = this.options.container;
  43099. if (this.container == null) {
  43100. return debug.error('Invalid Quill container', container);
  43101. }
  43102. if (this.options.debug) {
  43103. Quill.debug(this.options.debug);
  43104. }
  43105. var html = this.container.innerHTML.trim();
  43106. this.container.classList.add('ql-container');
  43107. this.container.innerHTML = '';
  43108. this.container.__quill = this;
  43109. this.root = this.addContainer('ql-editor');
  43110. this.root.classList.add('ql-blank');
  43111. this.root.setAttribute('data-gramm', false);
  43112. this.scrollingContainer = this.options.scrollingContainer || this.root;
  43113. this.emitter = new _emitter4.default();
  43114. this.scroll = _parchment2.default.create(this.root, {
  43115. emitter: this.emitter,
  43116. whitelist: this.options.formats
  43117. });
  43118. this.editor = new _editor2.default(this.scroll);
  43119. this.selection = new _selection2.default(this.scroll, this.emitter);
  43120. this.theme = new this.options.theme(this, this.options);
  43121. this.keyboard = this.theme.addModule('keyboard');
  43122. this.clipboard = this.theme.addModule('clipboard');
  43123. this.history = this.theme.addModule('history');
  43124. this.theme.init();
  43125. this.emitter.on(_emitter4.default.events.EDITOR_CHANGE, function (type) {
  43126. if (type === _emitter4.default.events.TEXT_CHANGE) {
  43127. _this2.root.classList.toggle('ql-blank', _this2.editor.isBlank());
  43128. }
  43129. });
  43130. this.emitter.on(_emitter4.default.events.SCROLL_UPDATE, function (source, mutations) {
  43131. var range = _this2.selection.lastRange;
  43132. var index = range && range.length === 0 ? range.index : undefined;
  43133. modify.call(_this2, function () {
  43134. return _this2.editor.update(null, mutations, index);
  43135. }, source);
  43136. });
  43137. var contents = this.clipboard.convert('<div class=\'ql-editor\' style="white-space: normal;">' + html + '<p><br></p></div>');
  43138. this.setContents(contents);
  43139. this.history.clear();
  43140. if (this.options.placeholder) {
  43141. this.root.setAttribute('data-placeholder', this.options.placeholder);
  43142. }
  43143. if (this.options.readOnly) {
  43144. this.disable();
  43145. }
  43146. }
  43147. _createClass(Quill, [{
  43148. key: 'addContainer',
  43149. value: function addContainer(container) {
  43150. var refNode = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
  43151. if (typeof container === 'string') {
  43152. var className = container;
  43153. container = document.createElement('div');
  43154. container.classList.add(className);
  43155. }
  43156. this.container.insertBefore(container, refNode);
  43157. return container;
  43158. }
  43159. }, {
  43160. key: 'blur',
  43161. value: function blur() {
  43162. this.selection.setRange(null);
  43163. }
  43164. }, {
  43165. key: 'deleteText',
  43166. value: function deleteText(index, length, source) {
  43167. var _this3 = this;
  43168. var _overload = overload(index, length, source);
  43169. var _overload2 = _slicedToArray(_overload, 4);
  43170. index = _overload2[0];
  43171. length = _overload2[1];
  43172. source = _overload2[3];
  43173. return modify.call(this, function () {
  43174. return _this3.editor.deleteText(index, length);
  43175. }, source, index, -1 * length);
  43176. }
  43177. }, {
  43178. key: 'disable',
  43179. value: function disable() {
  43180. this.enable(false);
  43181. }
  43182. }, {
  43183. key: 'enable',
  43184. value: function enable() {
  43185. var enabled = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
  43186. this.scroll.enable(enabled);
  43187. this.container.classList.toggle('ql-disabled', !enabled);
  43188. }
  43189. }, {
  43190. key: 'focus',
  43191. value: function focus() {
  43192. var scrollTop = this.scrollingContainer.scrollTop;
  43193. this.selection.focus();
  43194. this.scrollingContainer.scrollTop = scrollTop;
  43195. this.scrollIntoView();
  43196. }
  43197. }, {
  43198. key: 'format',
  43199. value: function format(name, value) {
  43200. var _this4 = this;
  43201. var source = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : _emitter4.default.sources.API;
  43202. return modify.call(this, function () {
  43203. var range = _this4.getSelection(true);
  43204. var change = new _quillDelta2.default();
  43205. if (range == null) {
  43206. return change;
  43207. } else if (_parchment2.default.query(name, _parchment2.default.Scope.BLOCK)) {
  43208. change = _this4.editor.formatLine(range.index, range.length, _defineProperty({}, name, value));
  43209. } else if (range.length === 0) {
  43210. _this4.selection.format(name, value);
  43211. return change;
  43212. } else {
  43213. change = _this4.editor.formatText(range.index, range.length, _defineProperty({}, name, value));
  43214. }
  43215. _this4.setSelection(range, _emitter4.default.sources.SILENT);
  43216. return change;
  43217. }, source);
  43218. }
  43219. }, {
  43220. key: 'formatLine',
  43221. value: function formatLine(index, length, name, value, source) {
  43222. var _this5 = this;
  43223. var formats = void 0;
  43224. var _overload3 = overload(index, length, name, value, source);
  43225. var _overload4 = _slicedToArray(_overload3, 4);
  43226. index = _overload4[0];
  43227. length = _overload4[1];
  43228. formats = _overload4[2];
  43229. source = _overload4[3];
  43230. return modify.call(this, function () {
  43231. return _this5.editor.formatLine(index, length, formats);
  43232. }, source, index, 0);
  43233. }
  43234. }, {
  43235. key: 'formatText',
  43236. value: function formatText(index, length, name, value, source) {
  43237. var _this6 = this;
  43238. var formats = void 0;
  43239. var _overload5 = overload(index, length, name, value, source);
  43240. var _overload6 = _slicedToArray(_overload5, 4);
  43241. index = _overload6[0];
  43242. length = _overload6[1];
  43243. formats = _overload6[2];
  43244. source = _overload6[3];
  43245. return modify.call(this, function () {
  43246. return _this6.editor.formatText(index, length, formats);
  43247. }, source, index, 0);
  43248. }
  43249. }, {
  43250. key: 'getBounds',
  43251. value: function getBounds(index) {
  43252. var length = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
  43253. var bounds = void 0;
  43254. if (typeof index === 'number') {
  43255. bounds = this.selection.getBounds(index, length);
  43256. } else {
  43257. bounds = this.selection.getBounds(index.index, index.length);
  43258. }
  43259. var containerBounds = this.container.getBoundingClientRect();
  43260. return {
  43261. bottom: bounds.bottom - containerBounds.top,
  43262. height: bounds.height,
  43263. left: bounds.left - containerBounds.left,
  43264. right: bounds.right - containerBounds.left,
  43265. top: bounds.top - containerBounds.top,
  43266. width: bounds.width
  43267. };
  43268. }
  43269. }, {
  43270. key: 'getContents',
  43271. value: function getContents() {
  43272. var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
  43273. var length = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.getLength() - index;
  43274. var _overload7 = overload(index, length);
  43275. var _overload8 = _slicedToArray(_overload7, 2);
  43276. index = _overload8[0];
  43277. length = _overload8[1];
  43278. return this.editor.getContents(index, length);
  43279. }
  43280. }, {
  43281. key: 'getFormat',
  43282. value: function getFormat() {
  43283. var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.getSelection(true);
  43284. var length = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
  43285. if (typeof index === 'number') {
  43286. return this.editor.getFormat(index, length);
  43287. } else {
  43288. return this.editor.getFormat(index.index, index.length);
  43289. }
  43290. }
  43291. }, {
  43292. key: 'getIndex',
  43293. value: function getIndex(blot) {
  43294. return blot.offset(this.scroll);
  43295. }
  43296. }, {
  43297. key: 'getLength',
  43298. value: function getLength() {
  43299. return this.scroll.length();
  43300. }
  43301. }, {
  43302. key: 'getLeaf',
  43303. value: function getLeaf(index) {
  43304. return this.scroll.leaf(index);
  43305. }
  43306. }, {
  43307. key: 'getLine',
  43308. value: function getLine(index) {
  43309. return this.scroll.line(index);
  43310. }
  43311. }, {
  43312. key: 'getLines',
  43313. value: function getLines() {
  43314. var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
  43315. var length = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Number.MAX_VALUE;
  43316. if (typeof index !== 'number') {
  43317. return this.scroll.lines(index.index, index.length);
  43318. } else {
  43319. return this.scroll.lines(index, length);
  43320. }
  43321. }
  43322. }, {
  43323. key: 'getModule',
  43324. value: function getModule(name) {
  43325. return this.theme.modules[name];
  43326. }
  43327. }, {
  43328. key: 'getSelection',
  43329. value: function getSelection() {
  43330. var focus = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
  43331. if (focus) this.focus();
  43332. this.update(); // Make sure we access getRange with editor in consistent state
  43333. return this.selection.getRange()[0];
  43334. }
  43335. }, {
  43336. key: 'getText',
  43337. value: function getText() {
  43338. var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
  43339. var length = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.getLength() - index;
  43340. var _overload9 = overload(index, length);
  43341. var _overload10 = _slicedToArray(_overload9, 2);
  43342. index = _overload10[0];
  43343. length = _overload10[1];
  43344. return this.editor.getText(index, length);
  43345. }
  43346. }, {
  43347. key: 'hasFocus',
  43348. value: function hasFocus() {
  43349. return this.selection.hasFocus();
  43350. }
  43351. }, {
  43352. key: 'insertEmbed',
  43353. value: function insertEmbed(index, embed, value) {
  43354. var _this7 = this;
  43355. var source = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : Quill.sources.API;
  43356. return modify.call(this, function () {
  43357. return _this7.editor.insertEmbed(index, embed, value);
  43358. }, source, index);
  43359. }
  43360. }, {
  43361. key: 'insertText',
  43362. value: function insertText(index, text, name, value, source) {
  43363. var _this8 = this;
  43364. var formats = void 0;
  43365. var _overload11 = overload(index, 0, name, value, source);
  43366. var _overload12 = _slicedToArray(_overload11, 4);
  43367. index = _overload12[0];
  43368. formats = _overload12[2];
  43369. source = _overload12[3];
  43370. return modify.call(this, function () {
  43371. return _this8.editor.insertText(index, text, formats);
  43372. }, source, index, text.length);
  43373. }
  43374. }, {
  43375. key: 'isEnabled',
  43376. value: function isEnabled() {
  43377. return !this.container.classList.contains('ql-disabled');
  43378. }
  43379. }, {
  43380. key: 'off',
  43381. value: function off() {
  43382. return this.emitter.off.apply(this.emitter, arguments);
  43383. }
  43384. }, {
  43385. key: 'on',
  43386. value: function on() {
  43387. return this.emitter.on.apply(this.emitter, arguments);
  43388. }
  43389. }, {
  43390. key: 'once',
  43391. value: function once() {
  43392. return this.emitter.once.apply(this.emitter, arguments);
  43393. }
  43394. }, {
  43395. key: 'pasteHTML',
  43396. value: function pasteHTML(index, html, source) {
  43397. this.clipboard.dangerouslyPasteHTML(index, html, source);
  43398. }
  43399. }, {
  43400. key: 'removeFormat',
  43401. value: function removeFormat(index, length, source) {
  43402. var _this9 = this;
  43403. var _overload13 = overload(index, length, source);
  43404. var _overload14 = _slicedToArray(_overload13, 4);
  43405. index = _overload14[0];
  43406. length = _overload14[1];
  43407. source = _overload14[3];
  43408. return modify.call(this, function () {
  43409. return _this9.editor.removeFormat(index, length);
  43410. }, source, index);
  43411. }
  43412. }, {
  43413. key: 'scrollIntoView',
  43414. value: function scrollIntoView() {
  43415. this.selection.scrollIntoView(this.scrollingContainer);
  43416. }
  43417. }, {
  43418. key: 'setContents',
  43419. value: function setContents(delta) {
  43420. var _this10 = this;
  43421. var source = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _emitter4.default.sources.API;
  43422. return modify.call(this, function () {
  43423. delta = new _quillDelta2.default(delta);
  43424. var length = _this10.getLength();
  43425. var deleted = _this10.editor.deleteText(0, length);
  43426. var applied = _this10.editor.applyDelta(delta);
  43427. var lastOp = applied.ops[applied.ops.length - 1];
  43428. if (lastOp != null && typeof lastOp.insert === 'string' && lastOp.insert[lastOp.insert.length - 1] === '\n') {
  43429. _this10.editor.deleteText(_this10.getLength() - 1, 1);
  43430. applied.delete(1);
  43431. }
  43432. var ret = deleted.compose(applied);
  43433. return ret;
  43434. }, source);
  43435. }
  43436. }, {
  43437. key: 'setSelection',
  43438. value: function setSelection(index, length, source) {
  43439. if (index == null) {
  43440. this.selection.setRange(null, length || Quill.sources.API);
  43441. } else {
  43442. var _overload15 = overload(index, length, source);
  43443. var _overload16 = _slicedToArray(_overload15, 4);
  43444. index = _overload16[0];
  43445. length = _overload16[1];
  43446. source = _overload16[3];
  43447. this.selection.setRange(new _selection.Range(index, length), source);
  43448. if (source !== _emitter4.default.sources.SILENT) {
  43449. this.selection.scrollIntoView(this.scrollingContainer);
  43450. }
  43451. }
  43452. }
  43453. }, {
  43454. key: 'setText',
  43455. value: function setText(text) {
  43456. var source = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _emitter4.default.sources.API;
  43457. var delta = new _quillDelta2.default().insert(text);
  43458. return this.setContents(delta, source);
  43459. }
  43460. }, {
  43461. key: 'update',
  43462. value: function update() {
  43463. var source = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _emitter4.default.sources.USER;
  43464. var change = this.scroll.update(source); // Will update selection before selection.update() does if text changes
  43465. this.selection.update(source);
  43466. return change;
  43467. }
  43468. }, {
  43469. key: 'updateContents',
  43470. value: function updateContents(delta) {
  43471. var _this11 = this;
  43472. var source = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _emitter4.default.sources.API;
  43473. return modify.call(this, function () {
  43474. delta = new _quillDelta2.default(delta);
  43475. return _this11.editor.applyDelta(delta, source);
  43476. }, source, true);
  43477. }
  43478. }]);
  43479. return Quill;
  43480. }();
  43481. Quill.DEFAULTS = {
  43482. bounds: null,
  43483. formats: null,
  43484. modules: {},
  43485. placeholder: '',
  43486. readOnly: false,
  43487. scrollingContainer: null,
  43488. strict: true,
  43489. theme: 'default'
  43490. };
  43491. Quill.events = _emitter4.default.events;
  43492. Quill.sources = _emitter4.default.sources;
  43493. // eslint-disable-next-line no-undef
  43494. Quill.version = false ? 0 : "1.3.7";
  43495. Quill.imports = {
  43496. 'delta': _quillDelta2.default,
  43497. 'parchment': _parchment2.default,
  43498. 'core/module': _module2.default,
  43499. 'core/theme': _theme2.default
  43500. };
  43501. function expandConfig(container, userConfig) {
  43502. userConfig = (0, _extend2.default)(true, {
  43503. container: container,
  43504. modules: {
  43505. clipboard: true,
  43506. keyboard: true,
  43507. history: true
  43508. }
  43509. }, userConfig);
  43510. if (!userConfig.theme || userConfig.theme === Quill.DEFAULTS.theme) {
  43511. userConfig.theme = _theme2.default;
  43512. } else {
  43513. userConfig.theme = Quill.import('themes/' + userConfig.theme);
  43514. if (userConfig.theme == null) {
  43515. throw new Error('Invalid theme ' + userConfig.theme + '. Did you register it?');
  43516. }
  43517. }
  43518. var themeConfig = (0, _extend2.default)(true, {}, userConfig.theme.DEFAULTS);
  43519. [themeConfig, userConfig].forEach(function (config) {
  43520. config.modules = config.modules || {};
  43521. Object.keys(config.modules).forEach(function (module) {
  43522. if (config.modules[module] === true) {
  43523. config.modules[module] = {};
  43524. }
  43525. });
  43526. });
  43527. var moduleNames = Object.keys(themeConfig.modules).concat(Object.keys(userConfig.modules));
  43528. var moduleConfig = moduleNames.reduce(function (config, name) {
  43529. var moduleClass = Quill.import('modules/' + name);
  43530. if (moduleClass == null) {
  43531. debug.error('Cannot load ' + name + ' module. Are you sure you registered it?');
  43532. } else {
  43533. config[name] = moduleClass.DEFAULTS || {};
  43534. }
  43535. return config;
  43536. }, {});
  43537. // Special case toolbar shorthand
  43538. if (userConfig.modules != null && userConfig.modules.toolbar && userConfig.modules.toolbar.constructor !== Object) {
  43539. userConfig.modules.toolbar = {
  43540. container: userConfig.modules.toolbar
  43541. };
  43542. }
  43543. userConfig = (0, _extend2.default)(true, {}, Quill.DEFAULTS, { modules: moduleConfig }, themeConfig, userConfig);
  43544. ['bounds', 'container', 'scrollingContainer'].forEach(function (key) {
  43545. if (typeof userConfig[key] === 'string') {
  43546. userConfig[key] = document.querySelector(userConfig[key]);
  43547. }
  43548. });
  43549. userConfig.modules = Object.keys(userConfig.modules).reduce(function (config, name) {
  43550. if (userConfig.modules[name]) {
  43551. config[name] = userConfig.modules[name];
  43552. }
  43553. return config;
  43554. }, {});
  43555. return userConfig;
  43556. }
  43557. // Handle selection preservation and TEXT_CHANGE emission
  43558. // common to modification APIs
  43559. function modify(modifier, source, index, shift) {
  43560. if (this.options.strict && !this.isEnabled() && source === _emitter4.default.sources.USER) {
  43561. return new _quillDelta2.default();
  43562. }
  43563. var range = index == null ? null : this.getSelection();
  43564. var oldDelta = this.editor.delta;
  43565. var change = modifier();
  43566. if (range != null) {
  43567. if (index === true) index = range.index;
  43568. if (shift == null) {
  43569. range = shiftRange(range, change, source);
  43570. } else if (shift !== 0) {
  43571. range = shiftRange(range, index, shift, source);
  43572. }
  43573. this.setSelection(range, _emitter4.default.sources.SILENT);
  43574. }
  43575. if (change.length() > 0) {
  43576. var _emitter;
  43577. var args = [_emitter4.default.events.TEXT_CHANGE, change, oldDelta, source];
  43578. (_emitter = this.emitter).emit.apply(_emitter, [_emitter4.default.events.EDITOR_CHANGE].concat(args));
  43579. if (source !== _emitter4.default.sources.SILENT) {
  43580. var _emitter2;
  43581. (_emitter2 = this.emitter).emit.apply(_emitter2, args);
  43582. }
  43583. }
  43584. return change;
  43585. }
  43586. function overload(index, length, name, value, source) {
  43587. var formats = {};
  43588. if (typeof index.index === 'number' && typeof index.length === 'number') {
  43589. // Allow for throwaway end (used by insertText/insertEmbed)
  43590. if (typeof length !== 'number') {
  43591. source = value, value = name, name = length, length = index.length, index = index.index;
  43592. } else {
  43593. length = index.length, index = index.index;
  43594. }
  43595. } else if (typeof length !== 'number') {
  43596. source = value, value = name, name = length, length = 0;
  43597. }
  43598. // Handle format being object, two format name/value strings or excluded
  43599. if ((typeof name === 'undefined' ? 'undefined' : _typeof(name)) === 'object') {
  43600. formats = name;
  43601. source = value;
  43602. } else if (typeof name === 'string') {
  43603. if (value != null) {
  43604. formats[name] = value;
  43605. } else {
  43606. source = name;
  43607. }
  43608. }
  43609. // Handle optional source
  43610. source = source || _emitter4.default.sources.API;
  43611. return [index, length, formats, source];
  43612. }
  43613. function shiftRange(range, index, length, source) {
  43614. if (range == null) return null;
  43615. var start = void 0,
  43616. end = void 0;
  43617. if (index instanceof _quillDelta2.default) {
  43618. var _map = [range.index, range.index + range.length].map(function (pos) {
  43619. return index.transformPosition(pos, source !== _emitter4.default.sources.USER);
  43620. });
  43621. var _map2 = _slicedToArray(_map, 2);
  43622. start = _map2[0];
  43623. end = _map2[1];
  43624. } else {
  43625. var _map3 = [range.index, range.index + range.length].map(function (pos) {
  43626. if (pos < index || pos === index && source === _emitter4.default.sources.USER) return pos;
  43627. if (length >= 0) {
  43628. return pos + length;
  43629. } else {
  43630. return Math.max(index, pos + length);
  43631. }
  43632. });
  43633. var _map4 = _slicedToArray(_map3, 2);
  43634. start = _map4[0];
  43635. end = _map4[1];
  43636. }
  43637. return new _selection.Range(start, end - start);
  43638. }
  43639. exports.expandConfig = expandConfig;
  43640. exports.overload = overload;
  43641. exports.default = Quill;
  43642. /***/ }),
  43643. /* 6 */
  43644. /***/ (function(module, exports, __nested_webpack_require_58401__) {
  43645. "use strict";
  43646. Object.defineProperty(exports, "__esModule", {
  43647. value: true
  43648. });
  43649. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  43650. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  43651. var _text = __nested_webpack_require_58401__(7);
  43652. var _text2 = _interopRequireDefault(_text);
  43653. var _parchment = __nested_webpack_require_58401__(0);
  43654. var _parchment2 = _interopRequireDefault(_parchment);
  43655. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  43656. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  43657. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  43658. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  43659. var Inline = function (_Parchment$Inline) {
  43660. _inherits(Inline, _Parchment$Inline);
  43661. function Inline() {
  43662. _classCallCheck(this, Inline);
  43663. return _possibleConstructorReturn(this, (Inline.__proto__ || Object.getPrototypeOf(Inline)).apply(this, arguments));
  43664. }
  43665. _createClass(Inline, [{
  43666. key: 'formatAt',
  43667. value: function formatAt(index, length, name, value) {
  43668. if (Inline.compare(this.statics.blotName, name) < 0 && _parchment2.default.query(name, _parchment2.default.Scope.BLOT)) {
  43669. var blot = this.isolate(index, length);
  43670. if (value) {
  43671. blot.wrap(name, value);
  43672. }
  43673. } else {
  43674. _get(Inline.prototype.__proto__ || Object.getPrototypeOf(Inline.prototype), 'formatAt', this).call(this, index, length, name, value);
  43675. }
  43676. }
  43677. }, {
  43678. key: 'optimize',
  43679. value: function optimize(context) {
  43680. _get(Inline.prototype.__proto__ || Object.getPrototypeOf(Inline.prototype), 'optimize', this).call(this, context);
  43681. if (this.parent instanceof Inline && Inline.compare(this.statics.blotName, this.parent.statics.blotName) > 0) {
  43682. var parent = this.parent.isolate(this.offset(), this.length());
  43683. this.moveChildren(parent);
  43684. parent.wrap(this);
  43685. }
  43686. }
  43687. }], [{
  43688. key: 'compare',
  43689. value: function compare(self, other) {
  43690. var selfIndex = Inline.order.indexOf(self);
  43691. var otherIndex = Inline.order.indexOf(other);
  43692. if (selfIndex >= 0 || otherIndex >= 0) {
  43693. return selfIndex - otherIndex;
  43694. } else if (self === other) {
  43695. return 0;
  43696. } else if (self < other) {
  43697. return -1;
  43698. } else {
  43699. return 1;
  43700. }
  43701. }
  43702. }]);
  43703. return Inline;
  43704. }(_parchment2.default.Inline);
  43705. Inline.allowedChildren = [Inline, _parchment2.default.Embed, _text2.default];
  43706. // Lower index means deeper in the DOM tree, since not found (-1) is for embeds
  43707. Inline.order = ['cursor', 'inline', // Must be lower
  43708. 'underline', 'strike', 'italic', 'bold', 'script', 'link', 'code' // Must be higher
  43709. ];
  43710. exports.default = Inline;
  43711. /***/ }),
  43712. /* 7 */
  43713. /***/ (function(module, exports, __nested_webpack_require_62823__) {
  43714. "use strict";
  43715. Object.defineProperty(exports, "__esModule", {
  43716. value: true
  43717. });
  43718. var _parchment = __nested_webpack_require_62823__(0);
  43719. var _parchment2 = _interopRequireDefault(_parchment);
  43720. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  43721. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  43722. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  43723. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  43724. var TextBlot = function (_Parchment$Text) {
  43725. _inherits(TextBlot, _Parchment$Text);
  43726. function TextBlot() {
  43727. _classCallCheck(this, TextBlot);
  43728. return _possibleConstructorReturn(this, (TextBlot.__proto__ || Object.getPrototypeOf(TextBlot)).apply(this, arguments));
  43729. }
  43730. return TextBlot;
  43731. }(_parchment2.default.Text);
  43732. exports.default = TextBlot;
  43733. /***/ }),
  43734. /* 8 */
  43735. /***/ (function(module, exports, __nested_webpack_require_64422__) {
  43736. "use strict";
  43737. Object.defineProperty(exports, "__esModule", {
  43738. value: true
  43739. });
  43740. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  43741. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  43742. var _eventemitter = __nested_webpack_require_64422__(54);
  43743. var _eventemitter2 = _interopRequireDefault(_eventemitter);
  43744. var _logger = __nested_webpack_require_64422__(10);
  43745. var _logger2 = _interopRequireDefault(_logger);
  43746. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  43747. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  43748. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  43749. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  43750. var debug = (0, _logger2.default)('quill:events');
  43751. var EVENTS = ['selectionchange', 'mousedown', 'mouseup', 'click'];
  43752. EVENTS.forEach(function (eventName) {
  43753. document.addEventListener(eventName, function () {
  43754. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  43755. args[_key] = arguments[_key];
  43756. }
  43757. [].slice.call(document.querySelectorAll('.ql-container')).forEach(function (node) {
  43758. // TODO use WeakMap
  43759. if (node.__quill && node.__quill.emitter) {
  43760. var _node$__quill$emitter;
  43761. (_node$__quill$emitter = node.__quill.emitter).handleDOM.apply(_node$__quill$emitter, args);
  43762. }
  43763. });
  43764. });
  43765. });
  43766. var Emitter = function (_EventEmitter) {
  43767. _inherits(Emitter, _EventEmitter);
  43768. function Emitter() {
  43769. _classCallCheck(this, Emitter);
  43770. var _this = _possibleConstructorReturn(this, (Emitter.__proto__ || Object.getPrototypeOf(Emitter)).call(this));
  43771. _this.listeners = {};
  43772. _this.on('error', debug.error);
  43773. return _this;
  43774. }
  43775. _createClass(Emitter, [{
  43776. key: 'emit',
  43777. value: function emit() {
  43778. debug.log.apply(debug, arguments);
  43779. _get(Emitter.prototype.__proto__ || Object.getPrototypeOf(Emitter.prototype), 'emit', this).apply(this, arguments);
  43780. }
  43781. }, {
  43782. key: 'handleDOM',
  43783. value: function handleDOM(event) {
  43784. for (var _len2 = arguments.length, args = Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
  43785. args[_key2 - 1] = arguments[_key2];
  43786. }
  43787. (this.listeners[event.type] || []).forEach(function (_ref) {
  43788. var node = _ref.node,
  43789. handler = _ref.handler;
  43790. if (event.target === node || node.contains(event.target)) {
  43791. handler.apply(undefined, [event].concat(args));
  43792. }
  43793. });
  43794. }
  43795. }, {
  43796. key: 'listenDOM',
  43797. value: function listenDOM(eventName, node, handler) {
  43798. if (!this.listeners[eventName]) {
  43799. this.listeners[eventName] = [];
  43800. }
  43801. this.listeners[eventName].push({ node: node, handler: handler });
  43802. }
  43803. }]);
  43804. return Emitter;
  43805. }(_eventemitter2.default);
  43806. Emitter.events = {
  43807. EDITOR_CHANGE: 'editor-change',
  43808. SCROLL_BEFORE_UPDATE: 'scroll-before-update',
  43809. SCROLL_OPTIMIZE: 'scroll-optimize',
  43810. SCROLL_UPDATE: 'scroll-update',
  43811. SELECTION_CHANGE: 'selection-change',
  43812. TEXT_CHANGE: 'text-change'
  43813. };
  43814. Emitter.sources = {
  43815. API: 'api',
  43816. SILENT: 'silent',
  43817. USER: 'user'
  43818. };
  43819. exports.default = Emitter;
  43820. /***/ }),
  43821. /* 9 */
  43822. /***/ (function(module, exports, __webpack_require__) {
  43823. "use strict";
  43824. Object.defineProperty(exports, "__esModule", {
  43825. value: true
  43826. });
  43827. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  43828. var Module = function Module(quill) {
  43829. var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  43830. _classCallCheck(this, Module);
  43831. this.quill = quill;
  43832. this.options = options;
  43833. };
  43834. Module.DEFAULTS = {};
  43835. exports.default = Module;
  43836. /***/ }),
  43837. /* 10 */
  43838. /***/ (function(module, exports, __webpack_require__) {
  43839. "use strict";
  43840. Object.defineProperty(exports, "__esModule", {
  43841. value: true
  43842. });
  43843. var levels = ['error', 'warn', 'log', 'info'];
  43844. var level = 'warn';
  43845. function debug(method) {
  43846. if (levels.indexOf(method) <= levels.indexOf(level)) {
  43847. var _console;
  43848. for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
  43849. args[_key - 1] = arguments[_key];
  43850. }
  43851. (_console = console)[method].apply(_console, args); // eslint-disable-line no-console
  43852. }
  43853. }
  43854. function namespace(ns) {
  43855. return levels.reduce(function (logger, method) {
  43856. logger[method] = debug.bind(console, method, ns);
  43857. return logger;
  43858. }, {});
  43859. }
  43860. debug.level = namespace.level = function (newLevel) {
  43861. level = newLevel;
  43862. };
  43863. exports.default = namespace;
  43864. /***/ }),
  43865. /* 11 */
  43866. /***/ (function(module, exports, __nested_webpack_require_70685__) {
  43867. var pSlice = Array.prototype.slice;
  43868. var objectKeys = __nested_webpack_require_70685__(52);
  43869. var isArguments = __nested_webpack_require_70685__(53);
  43870. var deepEqual = module.exports = function (actual, expected, opts) {
  43871. if (!opts) opts = {};
  43872. // 7.1. All identical values are equivalent, as determined by ===.
  43873. if (actual === expected) {
  43874. return true;
  43875. } else if (actual instanceof Date && expected instanceof Date) {
  43876. return actual.getTime() === expected.getTime();
  43877. // 7.3. Other pairs that do not both pass typeof value == 'object',
  43878. // equivalence is determined by ==.
  43879. } else if (!actual || !expected || typeof actual != 'object' && typeof expected != 'object') {
  43880. return opts.strict ? actual === expected : actual == expected;
  43881. // 7.4. For all other Object pairs, including Array objects, equivalence is
  43882. // determined by having the same number of owned properties (as verified
  43883. // with Object.prototype.hasOwnProperty.call), the same set of keys
  43884. // (although not necessarily the same order), equivalent values for every
  43885. // corresponding key, and an identical 'prototype' property. Note: this
  43886. // accounts for both named and indexed properties on Arrays.
  43887. } else {
  43888. return objEquiv(actual, expected, opts);
  43889. }
  43890. }
  43891. function isUndefinedOrNull(value) {
  43892. return value === null || value === undefined;
  43893. }
  43894. function isBuffer (x) {
  43895. if (!x || typeof x !== 'object' || typeof x.length !== 'number') return false;
  43896. if (typeof x.copy !== 'function' || typeof x.slice !== 'function') {
  43897. return false;
  43898. }
  43899. if (x.length > 0 && typeof x[0] !== 'number') return false;
  43900. return true;
  43901. }
  43902. function objEquiv(a, b, opts) {
  43903. var i, key;
  43904. if (isUndefinedOrNull(a) || isUndefinedOrNull(b))
  43905. return false;
  43906. // an identical 'prototype' property.
  43907. if (a.prototype !== b.prototype) return false;
  43908. //~~~I've managed to break Object.keys through screwy arguments passing.
  43909. // Converting to array solves the problem.
  43910. if (isArguments(a)) {
  43911. if (!isArguments(b)) {
  43912. return false;
  43913. }
  43914. a = pSlice.call(a);
  43915. b = pSlice.call(b);
  43916. return deepEqual(a, b, opts);
  43917. }
  43918. if (isBuffer(a)) {
  43919. if (!isBuffer(b)) {
  43920. return false;
  43921. }
  43922. if (a.length !== b.length) return false;
  43923. for (i = 0; i < a.length; i++) {
  43924. if (a[i] !== b[i]) return false;
  43925. }
  43926. return true;
  43927. }
  43928. try {
  43929. var ka = objectKeys(a),
  43930. kb = objectKeys(b);
  43931. } catch (e) {//happens when one is a string literal and the other isn't
  43932. return false;
  43933. }
  43934. // having the same number of owned properties (keys incorporates
  43935. // hasOwnProperty)
  43936. if (ka.length != kb.length)
  43937. return false;
  43938. //the same set of keys (although not necessarily the same order),
  43939. ka.sort();
  43940. kb.sort();
  43941. //~~~cheap key test
  43942. for (i = ka.length - 1; i >= 0; i--) {
  43943. if (ka[i] != kb[i])
  43944. return false;
  43945. }
  43946. //equivalent values for every corresponding key, and
  43947. //~~~possibly expensive deep test
  43948. for (i = ka.length - 1; i >= 0; i--) {
  43949. key = ka[i];
  43950. if (!deepEqual(a[key], b[key], opts)) return false;
  43951. }
  43952. return typeof a === typeof b;
  43953. }
  43954. /***/ }),
  43955. /* 12 */
  43956. /***/ (function(module, exports, __nested_webpack_require_73804__) {
  43957. "use strict";
  43958. Object.defineProperty(exports, "__esModule", { value: true });
  43959. var Registry = __nested_webpack_require_73804__(1);
  43960. var Attributor = /** @class */ (function () {
  43961. function Attributor(attrName, keyName, options) {
  43962. if (options === void 0) { options = {}; }
  43963. this.attrName = attrName;
  43964. this.keyName = keyName;
  43965. var attributeBit = Registry.Scope.TYPE & Registry.Scope.ATTRIBUTE;
  43966. if (options.scope != null) {
  43967. // Ignore type bits, force attribute bit
  43968. this.scope = (options.scope & Registry.Scope.LEVEL) | attributeBit;
  43969. }
  43970. else {
  43971. this.scope = Registry.Scope.ATTRIBUTE;
  43972. }
  43973. if (options.whitelist != null)
  43974. this.whitelist = options.whitelist;
  43975. }
  43976. Attributor.keys = function (node) {
  43977. return [].map.call(node.attributes, function (item) {
  43978. return item.name;
  43979. });
  43980. };
  43981. Attributor.prototype.add = function (node, value) {
  43982. if (!this.canAdd(node, value))
  43983. return false;
  43984. node.setAttribute(this.keyName, value);
  43985. return true;
  43986. };
  43987. Attributor.prototype.canAdd = function (node, value) {
  43988. var match = Registry.query(node, Registry.Scope.BLOT & (this.scope | Registry.Scope.TYPE));
  43989. if (match == null)
  43990. return false;
  43991. if (this.whitelist == null)
  43992. return true;
  43993. if (typeof value === 'string') {
  43994. return this.whitelist.indexOf(value.replace(/["']/g, '')) > -1;
  43995. }
  43996. else {
  43997. return this.whitelist.indexOf(value) > -1;
  43998. }
  43999. };
  44000. Attributor.prototype.remove = function (node) {
  44001. node.removeAttribute(this.keyName);
  44002. };
  44003. Attributor.prototype.value = function (node) {
  44004. var value = node.getAttribute(this.keyName);
  44005. if (this.canAdd(node, value) && value) {
  44006. return value;
  44007. }
  44008. return '';
  44009. };
  44010. return Attributor;
  44011. }());
  44012. exports.default = Attributor;
  44013. /***/ }),
  44014. /* 13 */
  44015. /***/ (function(module, exports, __nested_webpack_require_75851__) {
  44016. "use strict";
  44017. Object.defineProperty(exports, "__esModule", {
  44018. value: true
  44019. });
  44020. exports.default = exports.Code = undefined;
  44021. var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();
  44022. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  44023. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  44024. var _quillDelta = __nested_webpack_require_75851__(2);
  44025. var _quillDelta2 = _interopRequireDefault(_quillDelta);
  44026. var _parchment = __nested_webpack_require_75851__(0);
  44027. var _parchment2 = _interopRequireDefault(_parchment);
  44028. var _block = __nested_webpack_require_75851__(4);
  44029. var _block2 = _interopRequireDefault(_block);
  44030. var _inline = __nested_webpack_require_75851__(6);
  44031. var _inline2 = _interopRequireDefault(_inline);
  44032. var _text = __nested_webpack_require_75851__(7);
  44033. var _text2 = _interopRequireDefault(_text);
  44034. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  44035. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  44036. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  44037. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  44038. var Code = function (_Inline) {
  44039. _inherits(Code, _Inline);
  44040. function Code() {
  44041. _classCallCheck(this, Code);
  44042. return _possibleConstructorReturn(this, (Code.__proto__ || Object.getPrototypeOf(Code)).apply(this, arguments));
  44043. }
  44044. return Code;
  44045. }(_inline2.default);
  44046. Code.blotName = 'code';
  44047. Code.tagName = 'CODE';
  44048. var CodeBlock = function (_Block) {
  44049. _inherits(CodeBlock, _Block);
  44050. function CodeBlock() {
  44051. _classCallCheck(this, CodeBlock);
  44052. return _possibleConstructorReturn(this, (CodeBlock.__proto__ || Object.getPrototypeOf(CodeBlock)).apply(this, arguments));
  44053. }
  44054. _createClass(CodeBlock, [{
  44055. key: 'delta',
  44056. value: function delta() {
  44057. var _this3 = this;
  44058. var text = this.domNode.textContent;
  44059. if (text.endsWith('\n')) {
  44060. // Should always be true
  44061. text = text.slice(0, -1);
  44062. }
  44063. return text.split('\n').reduce(function (delta, frag) {
  44064. return delta.insert(frag).insert('\n', _this3.formats());
  44065. }, new _quillDelta2.default());
  44066. }
  44067. }, {
  44068. key: 'format',
  44069. value: function format(name, value) {
  44070. if (name === this.statics.blotName && value) return;
  44071. var _descendant = this.descendant(_text2.default, this.length() - 1),
  44072. _descendant2 = _slicedToArray(_descendant, 1),
  44073. text = _descendant2[0];
  44074. if (text != null) {
  44075. text.deleteAt(text.length() - 1, 1);
  44076. }
  44077. _get(CodeBlock.prototype.__proto__ || Object.getPrototypeOf(CodeBlock.prototype), 'format', this).call(this, name, value);
  44078. }
  44079. }, {
  44080. key: 'formatAt',
  44081. value: function formatAt(index, length, name, value) {
  44082. if (length === 0) return;
  44083. if (_parchment2.default.query(name, _parchment2.default.Scope.BLOCK) == null || name === this.statics.blotName && value === this.statics.formats(this.domNode)) {
  44084. return;
  44085. }
  44086. var nextNewline = this.newlineIndex(index);
  44087. if (nextNewline < 0 || nextNewline >= index + length) return;
  44088. var prevNewline = this.newlineIndex(index, true) + 1;
  44089. var isolateLength = nextNewline - prevNewline + 1;
  44090. var blot = this.isolate(prevNewline, isolateLength);
  44091. var next = blot.next;
  44092. blot.format(name, value);
  44093. if (next instanceof CodeBlock) {
  44094. next.formatAt(0, index - prevNewline + length - isolateLength, name, value);
  44095. }
  44096. }
  44097. }, {
  44098. key: 'insertAt',
  44099. value: function insertAt(index, value, def) {
  44100. if (def != null) return;
  44101. var _descendant3 = this.descendant(_text2.default, index),
  44102. _descendant4 = _slicedToArray(_descendant3, 2),
  44103. text = _descendant4[0],
  44104. offset = _descendant4[1];
  44105. text.insertAt(offset, value);
  44106. }
  44107. }, {
  44108. key: 'length',
  44109. value: function length() {
  44110. var length = this.domNode.textContent.length;
  44111. if (!this.domNode.textContent.endsWith('\n')) {
  44112. return length + 1;
  44113. }
  44114. return length;
  44115. }
  44116. }, {
  44117. key: 'newlineIndex',
  44118. value: function newlineIndex(searchIndex) {
  44119. var reverse = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  44120. if (!reverse) {
  44121. var offset = this.domNode.textContent.slice(searchIndex).indexOf('\n');
  44122. return offset > -1 ? searchIndex + offset : -1;
  44123. } else {
  44124. return this.domNode.textContent.slice(0, searchIndex).lastIndexOf('\n');
  44125. }
  44126. }
  44127. }, {
  44128. key: 'optimize',
  44129. value: function optimize(context) {
  44130. if (!this.domNode.textContent.endsWith('\n')) {
  44131. this.appendChild(_parchment2.default.create('text', '\n'));
  44132. }
  44133. _get(CodeBlock.prototype.__proto__ || Object.getPrototypeOf(CodeBlock.prototype), 'optimize', this).call(this, context);
  44134. var next = this.next;
  44135. if (next != null && next.prev === this && next.statics.blotName === this.statics.blotName && this.statics.formats(this.domNode) === next.statics.formats(next.domNode)) {
  44136. next.optimize(context);
  44137. next.moveChildren(this);
  44138. next.remove();
  44139. }
  44140. }
  44141. }, {
  44142. key: 'replace',
  44143. value: function replace(target) {
  44144. _get(CodeBlock.prototype.__proto__ || Object.getPrototypeOf(CodeBlock.prototype), 'replace', this).call(this, target);
  44145. [].slice.call(this.domNode.querySelectorAll('*')).forEach(function (node) {
  44146. var blot = _parchment2.default.find(node);
  44147. if (blot == null) {
  44148. node.parentNode.removeChild(node);
  44149. } else if (blot instanceof _parchment2.default.Embed) {
  44150. blot.remove();
  44151. } else {
  44152. blot.unwrap();
  44153. }
  44154. });
  44155. }
  44156. }], [{
  44157. key: 'create',
  44158. value: function create(value) {
  44159. var domNode = _get(CodeBlock.__proto__ || Object.getPrototypeOf(CodeBlock), 'create', this).call(this, value);
  44160. domNode.setAttribute('spellcheck', false);
  44161. return domNode;
  44162. }
  44163. }, {
  44164. key: 'formats',
  44165. value: function formats() {
  44166. return true;
  44167. }
  44168. }]);
  44169. return CodeBlock;
  44170. }(_block2.default);
  44171. CodeBlock.blotName = 'code-block';
  44172. CodeBlock.tagName = 'PRE';
  44173. CodeBlock.TAB = ' ';
  44174. exports.Code = Code;
  44175. exports.default = CodeBlock;
  44176. /***/ }),
  44177. /* 14 */
  44178. /***/ (function(module, exports, __nested_webpack_require_84272__) {
  44179. "use strict";
  44180. Object.defineProperty(exports, "__esModule", {
  44181. value: true
  44182. });
  44183. var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
  44184. var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();
  44185. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  44186. var _quillDelta = __nested_webpack_require_84272__(2);
  44187. var _quillDelta2 = _interopRequireDefault(_quillDelta);
  44188. var _op = __nested_webpack_require_84272__(20);
  44189. var _op2 = _interopRequireDefault(_op);
  44190. var _parchment = __nested_webpack_require_84272__(0);
  44191. var _parchment2 = _interopRequireDefault(_parchment);
  44192. var _code = __nested_webpack_require_84272__(13);
  44193. var _code2 = _interopRequireDefault(_code);
  44194. var _cursor = __nested_webpack_require_84272__(24);
  44195. var _cursor2 = _interopRequireDefault(_cursor);
  44196. var _block = __nested_webpack_require_84272__(4);
  44197. var _block2 = _interopRequireDefault(_block);
  44198. var _break = __nested_webpack_require_84272__(16);
  44199. var _break2 = _interopRequireDefault(_break);
  44200. var _clone = __nested_webpack_require_84272__(21);
  44201. var _clone2 = _interopRequireDefault(_clone);
  44202. var _deepEqual = __nested_webpack_require_84272__(11);
  44203. var _deepEqual2 = _interopRequireDefault(_deepEqual);
  44204. var _extend = __nested_webpack_require_84272__(3);
  44205. var _extend2 = _interopRequireDefault(_extend);
  44206. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  44207. function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
  44208. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  44209. var ASCII = /^[ -~]*$/;
  44210. var Editor = function () {
  44211. function Editor(scroll) {
  44212. _classCallCheck(this, Editor);
  44213. this.scroll = scroll;
  44214. this.delta = this.getDelta();
  44215. }
  44216. _createClass(Editor, [{
  44217. key: 'applyDelta',
  44218. value: function applyDelta(delta) {
  44219. var _this = this;
  44220. var consumeNextNewline = false;
  44221. this.scroll.update();
  44222. var scrollLength = this.scroll.length();
  44223. this.scroll.batchStart();
  44224. delta = normalizeDelta(delta);
  44225. delta.reduce(function (index, op) {
  44226. var length = op.retain || op.delete || op.insert.length || 1;
  44227. var attributes = op.attributes || {};
  44228. if (op.insert != null) {
  44229. if (typeof op.insert === 'string') {
  44230. var text = op.insert;
  44231. if (text.endsWith('\n') && consumeNextNewline) {
  44232. consumeNextNewline = false;
  44233. text = text.slice(0, -1);
  44234. }
  44235. if (index >= scrollLength && !text.endsWith('\n')) {
  44236. consumeNextNewline = true;
  44237. }
  44238. _this.scroll.insertAt(index, text);
  44239. var _scroll$line = _this.scroll.line(index),
  44240. _scroll$line2 = _slicedToArray(_scroll$line, 2),
  44241. line = _scroll$line2[0],
  44242. offset = _scroll$line2[1];
  44243. var formats = (0, _extend2.default)({}, (0, _block.bubbleFormats)(line));
  44244. if (line instanceof _block2.default) {
  44245. var _line$descendant = line.descendant(_parchment2.default.Leaf, offset),
  44246. _line$descendant2 = _slicedToArray(_line$descendant, 1),
  44247. leaf = _line$descendant2[0];
  44248. formats = (0, _extend2.default)(formats, (0, _block.bubbleFormats)(leaf));
  44249. }
  44250. attributes = _op2.default.attributes.diff(formats, attributes) || {};
  44251. } else if (_typeof(op.insert) === 'object') {
  44252. var key = Object.keys(op.insert)[0]; // There should only be one key
  44253. if (key == null) return index;
  44254. _this.scroll.insertAt(index, key, op.insert[key]);
  44255. }
  44256. scrollLength += length;
  44257. }
  44258. Object.keys(attributes).forEach(function (name) {
  44259. _this.scroll.formatAt(index, length, name, attributes[name]);
  44260. });
  44261. return index + length;
  44262. }, 0);
  44263. delta.reduce(function (index, op) {
  44264. if (typeof op.delete === 'number') {
  44265. _this.scroll.deleteAt(index, op.delete);
  44266. return index;
  44267. }
  44268. return index + (op.retain || op.insert.length || 1);
  44269. }, 0);
  44270. this.scroll.batchEnd();
  44271. return this.update(delta);
  44272. }
  44273. }, {
  44274. key: 'deleteText',
  44275. value: function deleteText(index, length) {
  44276. this.scroll.deleteAt(index, length);
  44277. return this.update(new _quillDelta2.default().retain(index).delete(length));
  44278. }
  44279. }, {
  44280. key: 'formatLine',
  44281. value: function formatLine(index, length) {
  44282. var _this2 = this;
  44283. var formats = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  44284. this.scroll.update();
  44285. Object.keys(formats).forEach(function (format) {
  44286. if (_this2.scroll.whitelist != null && !_this2.scroll.whitelist[format]) return;
  44287. var lines = _this2.scroll.lines(index, Math.max(length, 1));
  44288. var lengthRemaining = length;
  44289. lines.forEach(function (line) {
  44290. var lineLength = line.length();
  44291. if (!(line instanceof _code2.default)) {
  44292. line.format(format, formats[format]);
  44293. } else {
  44294. var codeIndex = index - line.offset(_this2.scroll);
  44295. var codeLength = line.newlineIndex(codeIndex + lengthRemaining) - codeIndex + 1;
  44296. line.formatAt(codeIndex, codeLength, format, formats[format]);
  44297. }
  44298. lengthRemaining -= lineLength;
  44299. });
  44300. });
  44301. this.scroll.optimize();
  44302. return this.update(new _quillDelta2.default().retain(index).retain(length, (0, _clone2.default)(formats)));
  44303. }
  44304. }, {
  44305. key: 'formatText',
  44306. value: function formatText(index, length) {
  44307. var _this3 = this;
  44308. var formats = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  44309. Object.keys(formats).forEach(function (format) {
  44310. _this3.scroll.formatAt(index, length, format, formats[format]);
  44311. });
  44312. return this.update(new _quillDelta2.default().retain(index).retain(length, (0, _clone2.default)(formats)));
  44313. }
  44314. }, {
  44315. key: 'getContents',
  44316. value: function getContents(index, length) {
  44317. return this.delta.slice(index, index + length);
  44318. }
  44319. }, {
  44320. key: 'getDelta',
  44321. value: function getDelta() {
  44322. return this.scroll.lines().reduce(function (delta, line) {
  44323. return delta.concat(line.delta());
  44324. }, new _quillDelta2.default());
  44325. }
  44326. }, {
  44327. key: 'getFormat',
  44328. value: function getFormat(index) {
  44329. var length = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
  44330. var lines = [],
  44331. leaves = [];
  44332. if (length === 0) {
  44333. this.scroll.path(index).forEach(function (path) {
  44334. var _path = _slicedToArray(path, 1),
  44335. blot = _path[0];
  44336. if (blot instanceof _block2.default) {
  44337. lines.push(blot);
  44338. } else if (blot instanceof _parchment2.default.Leaf) {
  44339. leaves.push(blot);
  44340. }
  44341. });
  44342. } else {
  44343. lines = this.scroll.lines(index, length);
  44344. leaves = this.scroll.descendants(_parchment2.default.Leaf, index, length);
  44345. }
  44346. var formatsArr = [lines, leaves].map(function (blots) {
  44347. if (blots.length === 0) return {};
  44348. var formats = (0, _block.bubbleFormats)(blots.shift());
  44349. while (Object.keys(formats).length > 0) {
  44350. var blot = blots.shift();
  44351. if (blot == null) return formats;
  44352. formats = combineFormats((0, _block.bubbleFormats)(blot), formats);
  44353. }
  44354. return formats;
  44355. });
  44356. return _extend2.default.apply(_extend2.default, formatsArr);
  44357. }
  44358. }, {
  44359. key: 'getText',
  44360. value: function getText(index, length) {
  44361. return this.getContents(index, length).filter(function (op) {
  44362. return typeof op.insert === 'string';
  44363. }).map(function (op) {
  44364. return op.insert;
  44365. }).join('');
  44366. }
  44367. }, {
  44368. key: 'insertEmbed',
  44369. value: function insertEmbed(index, embed, value) {
  44370. this.scroll.insertAt(index, embed, value);
  44371. return this.update(new _quillDelta2.default().retain(index).insert(_defineProperty({}, embed, value)));
  44372. }
  44373. }, {
  44374. key: 'insertText',
  44375. value: function insertText(index, text) {
  44376. var _this4 = this;
  44377. var formats = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  44378. text = text.replace(/\r\n/g, '\n').replace(/\r/g, '\n');
  44379. this.scroll.insertAt(index, text);
  44380. Object.keys(formats).forEach(function (format) {
  44381. _this4.scroll.formatAt(index, text.length, format, formats[format]);
  44382. });
  44383. return this.update(new _quillDelta2.default().retain(index).insert(text, (0, _clone2.default)(formats)));
  44384. }
  44385. }, {
  44386. key: 'isBlank',
  44387. value: function isBlank() {
  44388. if (this.scroll.children.length == 0) return true;
  44389. if (this.scroll.children.length > 1) return false;
  44390. var block = this.scroll.children.head;
  44391. if (block.statics.blotName !== _block2.default.blotName) return false;
  44392. if (block.children.length > 1) return false;
  44393. return block.children.head instanceof _break2.default;
  44394. }
  44395. }, {
  44396. key: 'removeFormat',
  44397. value: function removeFormat(index, length) {
  44398. var text = this.getText(index, length);
  44399. var _scroll$line3 = this.scroll.line(index + length),
  44400. _scroll$line4 = _slicedToArray(_scroll$line3, 2),
  44401. line = _scroll$line4[0],
  44402. offset = _scroll$line4[1];
  44403. var suffixLength = 0,
  44404. suffix = new _quillDelta2.default();
  44405. if (line != null) {
  44406. if (!(line instanceof _code2.default)) {
  44407. suffixLength = line.length() - offset;
  44408. } else {
  44409. suffixLength = line.newlineIndex(offset) - offset + 1;
  44410. }
  44411. suffix = line.delta().slice(offset, offset + suffixLength - 1).insert('\n');
  44412. }
  44413. var contents = this.getContents(index, length + suffixLength);
  44414. var diff = contents.diff(new _quillDelta2.default().insert(text).concat(suffix));
  44415. var delta = new _quillDelta2.default().retain(index).concat(diff);
  44416. return this.applyDelta(delta);
  44417. }
  44418. }, {
  44419. key: 'update',
  44420. value: function update(change) {
  44421. var mutations = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
  44422. var cursorIndex = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined;
  44423. var oldDelta = this.delta;
  44424. if (mutations.length === 1 && mutations[0].type === 'characterData' && mutations[0].target.data.match(ASCII) && _parchment2.default.find(mutations[0].target)) {
  44425. // Optimization for character changes
  44426. var textBlot = _parchment2.default.find(mutations[0].target);
  44427. var formats = (0, _block.bubbleFormats)(textBlot);
  44428. var index = textBlot.offset(this.scroll);
  44429. var oldValue = mutations[0].oldValue.replace(_cursor2.default.CONTENTS, '');
  44430. var oldText = new _quillDelta2.default().insert(oldValue);
  44431. var newText = new _quillDelta2.default().insert(textBlot.value());
  44432. var diffDelta = new _quillDelta2.default().retain(index).concat(oldText.diff(newText, cursorIndex));
  44433. change = diffDelta.reduce(function (delta, op) {
  44434. if (op.insert) {
  44435. return delta.insert(op.insert, formats);
  44436. } else {
  44437. return delta.push(op);
  44438. }
  44439. }, new _quillDelta2.default());
  44440. this.delta = oldDelta.compose(change);
  44441. } else {
  44442. this.delta = this.getDelta();
  44443. if (!change || !(0, _deepEqual2.default)(oldDelta.compose(change), this.delta)) {
  44444. change = oldDelta.diff(this.delta, cursorIndex);
  44445. }
  44446. }
  44447. return change;
  44448. }
  44449. }]);
  44450. return Editor;
  44451. }();
  44452. function combineFormats(formats, combined) {
  44453. return Object.keys(combined).reduce(function (merged, name) {
  44454. if (formats[name] == null) return merged;
  44455. if (combined[name] === formats[name]) {
  44456. merged[name] = combined[name];
  44457. } else if (Array.isArray(combined[name])) {
  44458. if (combined[name].indexOf(formats[name]) < 0) {
  44459. merged[name] = combined[name].concat([formats[name]]);
  44460. }
  44461. } else {
  44462. merged[name] = [combined[name], formats[name]];
  44463. }
  44464. return merged;
  44465. }, {});
  44466. }
  44467. function normalizeDelta(delta) {
  44468. return delta.reduce(function (delta, op) {
  44469. if (op.insert === 1) {
  44470. var attributes = (0, _clone2.default)(op.attributes);
  44471. delete attributes['image'];
  44472. return delta.insert({ image: op.attributes.image }, attributes);
  44473. }
  44474. if (op.attributes != null && (op.attributes.list === true || op.attributes.bullet === true)) {
  44475. op = (0, _clone2.default)(op);
  44476. if (op.attributes.list) {
  44477. op.attributes.list = 'ordered';
  44478. } else {
  44479. op.attributes.list = 'bullet';
  44480. delete op.attributes.bullet;
  44481. }
  44482. }
  44483. if (typeof op.insert === 'string') {
  44484. var text = op.insert.replace(/\r\n/g, '\n').replace(/\r/g, '\n');
  44485. return delta.insert(text, op.attributes);
  44486. }
  44487. return delta.push(op);
  44488. }, new _quillDelta2.default());
  44489. }
  44490. exports.default = Editor;
  44491. /***/ }),
  44492. /* 15 */
  44493. /***/ (function(module, exports, __nested_webpack_require_98688__) {
  44494. "use strict";
  44495. Object.defineProperty(exports, "__esModule", {
  44496. value: true
  44497. });
  44498. exports.default = exports.Range = undefined;
  44499. var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();
  44500. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  44501. var _parchment = __nested_webpack_require_98688__(0);
  44502. var _parchment2 = _interopRequireDefault(_parchment);
  44503. var _clone = __nested_webpack_require_98688__(21);
  44504. var _clone2 = _interopRequireDefault(_clone);
  44505. var _deepEqual = __nested_webpack_require_98688__(11);
  44506. var _deepEqual2 = _interopRequireDefault(_deepEqual);
  44507. var _emitter3 = __nested_webpack_require_98688__(8);
  44508. var _emitter4 = _interopRequireDefault(_emitter3);
  44509. var _logger = __nested_webpack_require_98688__(10);
  44510. var _logger2 = _interopRequireDefault(_logger);
  44511. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  44512. function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }
  44513. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  44514. var debug = (0, _logger2.default)('quill:selection');
  44515. var Range = function Range(index) {
  44516. var length = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
  44517. _classCallCheck(this, Range);
  44518. this.index = index;
  44519. this.length = length;
  44520. };
  44521. var Selection = function () {
  44522. function Selection(scroll, emitter) {
  44523. var _this = this;
  44524. _classCallCheck(this, Selection);
  44525. this.emitter = emitter;
  44526. this.scroll = scroll;
  44527. this.composing = false;
  44528. this.mouseDown = false;
  44529. this.root = this.scroll.domNode;
  44530. this.cursor = _parchment2.default.create('cursor', this);
  44531. // savedRange is last non-null range
  44532. this.lastRange = this.savedRange = new Range(0, 0);
  44533. this.handleComposition();
  44534. this.handleDragging();
  44535. this.emitter.listenDOM('selectionchange', document, function () {
  44536. if (!_this.mouseDown) {
  44537. setTimeout(_this.update.bind(_this, _emitter4.default.sources.USER), 1);
  44538. }
  44539. });
  44540. this.emitter.on(_emitter4.default.events.EDITOR_CHANGE, function (type, delta) {
  44541. if (type === _emitter4.default.events.TEXT_CHANGE && delta.length() > 0) {
  44542. _this.update(_emitter4.default.sources.SILENT);
  44543. }
  44544. });
  44545. this.emitter.on(_emitter4.default.events.SCROLL_BEFORE_UPDATE, function () {
  44546. if (!_this.hasFocus()) return;
  44547. var native = _this.getNativeRange();
  44548. if (native == null) return;
  44549. if (native.start.node === _this.cursor.textNode) return; // cursor.restore() will handle
  44550. // TODO unclear if this has negative side effects
  44551. _this.emitter.once(_emitter4.default.events.SCROLL_UPDATE, function () {
  44552. try {
  44553. _this.setNativeRange(native.start.node, native.start.offset, native.end.node, native.end.offset);
  44554. } catch (ignored) {}
  44555. });
  44556. });
  44557. this.emitter.on(_emitter4.default.events.SCROLL_OPTIMIZE, function (mutations, context) {
  44558. if (context.range) {
  44559. var _context$range = context.range,
  44560. startNode = _context$range.startNode,
  44561. startOffset = _context$range.startOffset,
  44562. endNode = _context$range.endNode,
  44563. endOffset = _context$range.endOffset;
  44564. _this.setNativeRange(startNode, startOffset, endNode, endOffset);
  44565. }
  44566. });
  44567. this.update(_emitter4.default.sources.SILENT);
  44568. }
  44569. _createClass(Selection, [{
  44570. key: 'handleComposition',
  44571. value: function handleComposition() {
  44572. var _this2 = this;
  44573. this.root.addEventListener('compositionstart', function () {
  44574. _this2.composing = true;
  44575. });
  44576. this.root.addEventListener('compositionend', function () {
  44577. _this2.composing = false;
  44578. if (_this2.cursor.parent) {
  44579. var range = _this2.cursor.restore();
  44580. if (!range) return;
  44581. setTimeout(function () {
  44582. _this2.setNativeRange(range.startNode, range.startOffset, range.endNode, range.endOffset);
  44583. }, 1);
  44584. }
  44585. });
  44586. }
  44587. }, {
  44588. key: 'handleDragging',
  44589. value: function handleDragging() {
  44590. var _this3 = this;
  44591. this.emitter.listenDOM('mousedown', document.body, function () {
  44592. _this3.mouseDown = true;
  44593. });
  44594. this.emitter.listenDOM('mouseup', document.body, function () {
  44595. _this3.mouseDown = false;
  44596. _this3.update(_emitter4.default.sources.USER);
  44597. });
  44598. }
  44599. }, {
  44600. key: 'focus',
  44601. value: function focus() {
  44602. if (this.hasFocus()) return;
  44603. this.root.focus();
  44604. this.setRange(this.savedRange);
  44605. }
  44606. }, {
  44607. key: 'format',
  44608. value: function format(_format, value) {
  44609. if (this.scroll.whitelist != null && !this.scroll.whitelist[_format]) return;
  44610. this.scroll.update();
  44611. var nativeRange = this.getNativeRange();
  44612. if (nativeRange == null || !nativeRange.native.collapsed || _parchment2.default.query(_format, _parchment2.default.Scope.BLOCK)) return;
  44613. if (nativeRange.start.node !== this.cursor.textNode) {
  44614. var blot = _parchment2.default.find(nativeRange.start.node, false);
  44615. if (blot == null) return;
  44616. // TODO Give blot ability to not split
  44617. if (blot instanceof _parchment2.default.Leaf) {
  44618. var after = blot.split(nativeRange.start.offset);
  44619. blot.parent.insertBefore(this.cursor, after);
  44620. } else {
  44621. blot.insertBefore(this.cursor, nativeRange.start.node); // Should never happen
  44622. }
  44623. this.cursor.attach();
  44624. }
  44625. this.cursor.format(_format, value);
  44626. this.scroll.optimize();
  44627. this.setNativeRange(this.cursor.textNode, this.cursor.textNode.data.length);
  44628. this.update();
  44629. }
  44630. }, {
  44631. key: 'getBounds',
  44632. value: function getBounds(index) {
  44633. var length = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
  44634. var scrollLength = this.scroll.length();
  44635. index = Math.min(index, scrollLength - 1);
  44636. length = Math.min(index + length, scrollLength - 1) - index;
  44637. var node = void 0,
  44638. _scroll$leaf = this.scroll.leaf(index),
  44639. _scroll$leaf2 = _slicedToArray(_scroll$leaf, 2),
  44640. leaf = _scroll$leaf2[0],
  44641. offset = _scroll$leaf2[1];
  44642. if (leaf == null) return null;
  44643. var _leaf$position = leaf.position(offset, true);
  44644. var _leaf$position2 = _slicedToArray(_leaf$position, 2);
  44645. node = _leaf$position2[0];
  44646. offset = _leaf$position2[1];
  44647. var range = document.createRange();
  44648. if (length > 0) {
  44649. range.setStart(node, offset);
  44650. var _scroll$leaf3 = this.scroll.leaf(index + length);
  44651. var _scroll$leaf4 = _slicedToArray(_scroll$leaf3, 2);
  44652. leaf = _scroll$leaf4[0];
  44653. offset = _scroll$leaf4[1];
  44654. if (leaf == null) return null;
  44655. var _leaf$position3 = leaf.position(offset, true);
  44656. var _leaf$position4 = _slicedToArray(_leaf$position3, 2);
  44657. node = _leaf$position4[0];
  44658. offset = _leaf$position4[1];
  44659. range.setEnd(node, offset);
  44660. return range.getBoundingClientRect();
  44661. } else {
  44662. var side = 'left';
  44663. var rect = void 0;
  44664. if (node instanceof Text) {
  44665. if (offset < node.data.length) {
  44666. range.setStart(node, offset);
  44667. range.setEnd(node, offset + 1);
  44668. } else {
  44669. range.setStart(node, offset - 1);
  44670. range.setEnd(node, offset);
  44671. side = 'right';
  44672. }
  44673. rect = range.getBoundingClientRect();
  44674. } else {
  44675. rect = leaf.domNode.getBoundingClientRect();
  44676. if (offset > 0) side = 'right';
  44677. }
  44678. return {
  44679. bottom: rect.top + rect.height,
  44680. height: rect.height,
  44681. left: rect[side],
  44682. right: rect[side],
  44683. top: rect.top,
  44684. width: 0
  44685. };
  44686. }
  44687. }
  44688. }, {
  44689. key: 'getNativeRange',
  44690. value: function getNativeRange() {
  44691. var selection = document.getSelection();
  44692. if (selection == null || selection.rangeCount <= 0) return null;
  44693. var nativeRange = selection.getRangeAt(0);
  44694. if (nativeRange == null) return null;
  44695. var range = this.normalizeNative(nativeRange);
  44696. debug.info('getNativeRange', range);
  44697. return range;
  44698. }
  44699. }, {
  44700. key: 'getRange',
  44701. value: function getRange() {
  44702. var normalized = this.getNativeRange();
  44703. if (normalized == null) return [null, null];
  44704. var range = this.normalizedToRange(normalized);
  44705. return [range, normalized];
  44706. }
  44707. }, {
  44708. key: 'hasFocus',
  44709. value: function hasFocus() {
  44710. return document.activeElement === this.root;
  44711. }
  44712. }, {
  44713. key: 'normalizedToRange',
  44714. value: function normalizedToRange(range) {
  44715. var _this4 = this;
  44716. var positions = [[range.start.node, range.start.offset]];
  44717. if (!range.native.collapsed) {
  44718. positions.push([range.end.node, range.end.offset]);
  44719. }
  44720. var indexes = positions.map(function (position) {
  44721. var _position = _slicedToArray(position, 2),
  44722. node = _position[0],
  44723. offset = _position[1];
  44724. var blot = _parchment2.default.find(node, true);
  44725. var index = blot.offset(_this4.scroll);
  44726. if (offset === 0) {
  44727. return index;
  44728. } else if (blot instanceof _parchment2.default.Container) {
  44729. return index + blot.length();
  44730. } else {
  44731. return index + blot.index(node, offset);
  44732. }
  44733. });
  44734. var end = Math.min(Math.max.apply(Math, _toConsumableArray(indexes)), this.scroll.length() - 1);
  44735. var start = Math.min.apply(Math, [end].concat(_toConsumableArray(indexes)));
  44736. return new Range(start, end - start);
  44737. }
  44738. }, {
  44739. key: 'normalizeNative',
  44740. value: function normalizeNative(nativeRange) {
  44741. if (!contains(this.root, nativeRange.startContainer) || !nativeRange.collapsed && !contains(this.root, nativeRange.endContainer)) {
  44742. return null;
  44743. }
  44744. var range = {
  44745. start: { node: nativeRange.startContainer, offset: nativeRange.startOffset },
  44746. end: { node: nativeRange.endContainer, offset: nativeRange.endOffset },
  44747. native: nativeRange
  44748. };
  44749. [range.start, range.end].forEach(function (position) {
  44750. var node = position.node,
  44751. offset = position.offset;
  44752. while (!(node instanceof Text) && node.childNodes.length > 0) {
  44753. if (node.childNodes.length > offset) {
  44754. node = node.childNodes[offset];
  44755. offset = 0;
  44756. } else if (node.childNodes.length === offset) {
  44757. node = node.lastChild;
  44758. offset = node instanceof Text ? node.data.length : node.childNodes.length + 1;
  44759. } else {
  44760. break;
  44761. }
  44762. }
  44763. position.node = node, position.offset = offset;
  44764. });
  44765. return range;
  44766. }
  44767. }, {
  44768. key: 'rangeToNative',
  44769. value: function rangeToNative(range) {
  44770. var _this5 = this;
  44771. var indexes = range.collapsed ? [range.index] : [range.index, range.index + range.length];
  44772. var args = [];
  44773. var scrollLength = this.scroll.length();
  44774. indexes.forEach(function (index, i) {
  44775. index = Math.min(scrollLength - 1, index);
  44776. var node = void 0,
  44777. _scroll$leaf5 = _this5.scroll.leaf(index),
  44778. _scroll$leaf6 = _slicedToArray(_scroll$leaf5, 2),
  44779. leaf = _scroll$leaf6[0],
  44780. offset = _scroll$leaf6[1];
  44781. var _leaf$position5 = leaf.position(offset, i !== 0);
  44782. var _leaf$position6 = _slicedToArray(_leaf$position5, 2);
  44783. node = _leaf$position6[0];
  44784. offset = _leaf$position6[1];
  44785. args.push(node, offset);
  44786. });
  44787. if (args.length < 2) {
  44788. args = args.concat(args);
  44789. }
  44790. return args;
  44791. }
  44792. }, {
  44793. key: 'scrollIntoView',
  44794. value: function scrollIntoView(scrollingContainer) {
  44795. var range = this.lastRange;
  44796. if (range == null) return;
  44797. var bounds = this.getBounds(range.index, range.length);
  44798. if (bounds == null) return;
  44799. var limit = this.scroll.length() - 1;
  44800. var _scroll$line = this.scroll.line(Math.min(range.index, limit)),
  44801. _scroll$line2 = _slicedToArray(_scroll$line, 1),
  44802. first = _scroll$line2[0];
  44803. var last = first;
  44804. if (range.length > 0) {
  44805. var _scroll$line3 = this.scroll.line(Math.min(range.index + range.length, limit));
  44806. var _scroll$line4 = _slicedToArray(_scroll$line3, 1);
  44807. last = _scroll$line4[0];
  44808. }
  44809. if (first == null || last == null) return;
  44810. var scrollBounds = scrollingContainer.getBoundingClientRect();
  44811. if (bounds.top < scrollBounds.top) {
  44812. scrollingContainer.scrollTop -= scrollBounds.top - bounds.top;
  44813. } else if (bounds.bottom > scrollBounds.bottom) {
  44814. scrollingContainer.scrollTop += bounds.bottom - scrollBounds.bottom;
  44815. }
  44816. }
  44817. }, {
  44818. key: 'setNativeRange',
  44819. value: function setNativeRange(startNode, startOffset) {
  44820. var endNode = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : startNode;
  44821. var endOffset = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : startOffset;
  44822. var force = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
  44823. debug.info('setNativeRange', startNode, startOffset, endNode, endOffset);
  44824. if (startNode != null && (this.root.parentNode == null || startNode.parentNode == null || endNode.parentNode == null)) {
  44825. return;
  44826. }
  44827. var selection = document.getSelection();
  44828. if (selection == null) return;
  44829. if (startNode != null) {
  44830. if (!this.hasFocus()) this.root.focus();
  44831. var native = (this.getNativeRange() || {}).native;
  44832. if (native == null || force || startNode !== native.startContainer || startOffset !== native.startOffset || endNode !== native.endContainer || endOffset !== native.endOffset) {
  44833. if (startNode.tagName == "BR") {
  44834. startOffset = [].indexOf.call(startNode.parentNode.childNodes, startNode);
  44835. startNode = startNode.parentNode;
  44836. }
  44837. if (endNode.tagName == "BR") {
  44838. endOffset = [].indexOf.call(endNode.parentNode.childNodes, endNode);
  44839. endNode = endNode.parentNode;
  44840. }
  44841. var range = document.createRange();
  44842. range.setStart(startNode, startOffset);
  44843. range.setEnd(endNode, endOffset);
  44844. selection.removeAllRanges();
  44845. selection.addRange(range);
  44846. }
  44847. } else {
  44848. selection.removeAllRanges();
  44849. this.root.blur();
  44850. document.body.focus(); // root.blur() not enough on IE11+Travis+SauceLabs (but not local VMs)
  44851. }
  44852. }
  44853. }, {
  44854. key: 'setRange',
  44855. value: function setRange(range) {
  44856. var force = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  44857. var source = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : _emitter4.default.sources.API;
  44858. if (typeof force === 'string') {
  44859. source = force;
  44860. force = false;
  44861. }
  44862. debug.info('setRange', range);
  44863. if (range != null) {
  44864. var args = this.rangeToNative(range);
  44865. this.setNativeRange.apply(this, _toConsumableArray(args).concat([force]));
  44866. } else {
  44867. this.setNativeRange(null);
  44868. }
  44869. this.update(source);
  44870. }
  44871. }, {
  44872. key: 'update',
  44873. value: function update() {
  44874. var source = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _emitter4.default.sources.USER;
  44875. var oldRange = this.lastRange;
  44876. var _getRange = this.getRange(),
  44877. _getRange2 = _slicedToArray(_getRange, 2),
  44878. lastRange = _getRange2[0],
  44879. nativeRange = _getRange2[1];
  44880. this.lastRange = lastRange;
  44881. if (this.lastRange != null) {
  44882. this.savedRange = this.lastRange;
  44883. }
  44884. if (!(0, _deepEqual2.default)(oldRange, this.lastRange)) {
  44885. var _emitter;
  44886. if (!this.composing && nativeRange != null && nativeRange.native.collapsed && nativeRange.start.node !== this.cursor.textNode) {
  44887. this.cursor.restore();
  44888. }
  44889. var args = [_emitter4.default.events.SELECTION_CHANGE, (0, _clone2.default)(this.lastRange), (0, _clone2.default)(oldRange), source];
  44890. (_emitter = this.emitter).emit.apply(_emitter, [_emitter4.default.events.EDITOR_CHANGE].concat(args));
  44891. if (source !== _emitter4.default.sources.SILENT) {
  44892. var _emitter2;
  44893. (_emitter2 = this.emitter).emit.apply(_emitter2, args);
  44894. }
  44895. }
  44896. }
  44897. }]);
  44898. return Selection;
  44899. }();
  44900. function contains(parent, descendant) {
  44901. try {
  44902. // Firefox inserts inaccessible nodes around video elements
  44903. descendant.parentNode;
  44904. } catch (e) {
  44905. return false;
  44906. }
  44907. // IE11 has bug with Text nodes
  44908. // https://connect.microsoft.com/IE/feedback/details/780874/node-contains-is-incorrect
  44909. if (descendant instanceof Text) {
  44910. descendant = descendant.parentNode;
  44911. }
  44912. return parent.contains(descendant);
  44913. }
  44914. exports.Range = Range;
  44915. exports.default = Selection;
  44916. /***/ }),
  44917. /* 16 */
  44918. /***/ (function(module, exports, __nested_webpack_require_116908__) {
  44919. "use strict";
  44920. Object.defineProperty(exports, "__esModule", {
  44921. value: true
  44922. });
  44923. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  44924. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  44925. var _parchment = __nested_webpack_require_116908__(0);
  44926. var _parchment2 = _interopRequireDefault(_parchment);
  44927. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  44928. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  44929. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  44930. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  44931. var Break = function (_Parchment$Embed) {
  44932. _inherits(Break, _Parchment$Embed);
  44933. function Break() {
  44934. _classCallCheck(this, Break);
  44935. return _possibleConstructorReturn(this, (Break.__proto__ || Object.getPrototypeOf(Break)).apply(this, arguments));
  44936. }
  44937. _createClass(Break, [{
  44938. key: 'insertInto',
  44939. value: function insertInto(parent, ref) {
  44940. if (parent.children.length === 0) {
  44941. _get(Break.prototype.__proto__ || Object.getPrototypeOf(Break.prototype), 'insertInto', this).call(this, parent, ref);
  44942. } else {
  44943. this.remove();
  44944. }
  44945. }
  44946. }, {
  44947. key: 'length',
  44948. value: function length() {
  44949. return 0;
  44950. }
  44951. }, {
  44952. key: 'value',
  44953. value: function value() {
  44954. return '';
  44955. }
  44956. }], [{
  44957. key: 'value',
  44958. value: function value() {
  44959. return undefined;
  44960. }
  44961. }]);
  44962. return Break;
  44963. }(_parchment2.default.Embed);
  44964. Break.blotName = 'break';
  44965. Break.tagName = 'BR';
  44966. exports.default = Break;
  44967. /***/ }),
  44968. /* 17 */
  44969. /***/ (function(module, exports, __nested_webpack_require_120162__) {
  44970. "use strict";
  44971. var __extends = (this && this.__extends) || (function () {
  44972. var extendStatics = Object.setPrototypeOf ||
  44973. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  44974. function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
  44975. return function (d, b) {
  44976. extendStatics(d, b);
  44977. function __() { this.constructor = d; }
  44978. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  44979. };
  44980. })();
  44981. Object.defineProperty(exports, "__esModule", { value: true });
  44982. var linked_list_1 = __nested_webpack_require_120162__(44);
  44983. var shadow_1 = __nested_webpack_require_120162__(30);
  44984. var Registry = __nested_webpack_require_120162__(1);
  44985. var ContainerBlot = /** @class */ (function (_super) {
  44986. __extends(ContainerBlot, _super);
  44987. function ContainerBlot(domNode) {
  44988. var _this = _super.call(this, domNode) || this;
  44989. _this.build();
  44990. return _this;
  44991. }
  44992. ContainerBlot.prototype.appendChild = function (other) {
  44993. this.insertBefore(other);
  44994. };
  44995. ContainerBlot.prototype.attach = function () {
  44996. _super.prototype.attach.call(this);
  44997. this.children.forEach(function (child) {
  44998. child.attach();
  44999. });
  45000. };
  45001. ContainerBlot.prototype.build = function () {
  45002. var _this = this;
  45003. this.children = new linked_list_1.default();
  45004. // Need to be reversed for if DOM nodes already in order
  45005. [].slice
  45006. .call(this.domNode.childNodes)
  45007. .reverse()
  45008. .forEach(function (node) {
  45009. try {
  45010. var child = makeBlot(node);
  45011. _this.insertBefore(child, _this.children.head || undefined);
  45012. }
  45013. catch (err) {
  45014. if (err instanceof Registry.ParchmentError)
  45015. return;
  45016. else
  45017. throw err;
  45018. }
  45019. });
  45020. };
  45021. ContainerBlot.prototype.deleteAt = function (index, length) {
  45022. if (index === 0 && length === this.length()) {
  45023. return this.remove();
  45024. }
  45025. this.children.forEachAt(index, length, function (child, offset, length) {
  45026. child.deleteAt(offset, length);
  45027. });
  45028. };
  45029. ContainerBlot.prototype.descendant = function (criteria, index) {
  45030. var _a = this.children.find(index), child = _a[0], offset = _a[1];
  45031. if ((criteria.blotName == null && criteria(child)) ||
  45032. (criteria.blotName != null && child instanceof criteria)) {
  45033. return [child, offset];
  45034. }
  45035. else if (child instanceof ContainerBlot) {
  45036. return child.descendant(criteria, offset);
  45037. }
  45038. else {
  45039. return [null, -1];
  45040. }
  45041. };
  45042. ContainerBlot.prototype.descendants = function (criteria, index, length) {
  45043. if (index === void 0) { index = 0; }
  45044. if (length === void 0) { length = Number.MAX_VALUE; }
  45045. var descendants = [];
  45046. var lengthLeft = length;
  45047. this.children.forEachAt(index, length, function (child, index, length) {
  45048. if ((criteria.blotName == null && criteria(child)) ||
  45049. (criteria.blotName != null && child instanceof criteria)) {
  45050. descendants.push(child);
  45051. }
  45052. if (child instanceof ContainerBlot) {
  45053. descendants = descendants.concat(child.descendants(criteria, index, lengthLeft));
  45054. }
  45055. lengthLeft -= length;
  45056. });
  45057. return descendants;
  45058. };
  45059. ContainerBlot.prototype.detach = function () {
  45060. this.children.forEach(function (child) {
  45061. child.detach();
  45062. });
  45063. _super.prototype.detach.call(this);
  45064. };
  45065. ContainerBlot.prototype.formatAt = function (index, length, name, value) {
  45066. this.children.forEachAt(index, length, function (child, offset, length) {
  45067. child.formatAt(offset, length, name, value);
  45068. });
  45069. };
  45070. ContainerBlot.prototype.insertAt = function (index, value, def) {
  45071. var _a = this.children.find(index), child = _a[0], offset = _a[1];
  45072. if (child) {
  45073. child.insertAt(offset, value, def);
  45074. }
  45075. else {
  45076. var blot = def == null ? Registry.create('text', value) : Registry.create(value, def);
  45077. this.appendChild(blot);
  45078. }
  45079. };
  45080. ContainerBlot.prototype.insertBefore = function (childBlot, refBlot) {
  45081. if (this.statics.allowedChildren != null &&
  45082. !this.statics.allowedChildren.some(function (child) {
  45083. return childBlot instanceof child;
  45084. })) {
  45085. throw new Registry.ParchmentError("Cannot insert " + childBlot.statics.blotName + " into " + this.statics.blotName);
  45086. }
  45087. childBlot.insertInto(this, refBlot);
  45088. };
  45089. ContainerBlot.prototype.length = function () {
  45090. return this.children.reduce(function (memo, child) {
  45091. return memo + child.length();
  45092. }, 0);
  45093. };
  45094. ContainerBlot.prototype.moveChildren = function (targetParent, refNode) {
  45095. this.children.forEach(function (child) {
  45096. targetParent.insertBefore(child, refNode);
  45097. });
  45098. };
  45099. ContainerBlot.prototype.optimize = function (context) {
  45100. _super.prototype.optimize.call(this, context);
  45101. if (this.children.length === 0) {
  45102. if (this.statics.defaultChild != null) {
  45103. var child = Registry.create(this.statics.defaultChild);
  45104. this.appendChild(child);
  45105. child.optimize(context);
  45106. }
  45107. else {
  45108. this.remove();
  45109. }
  45110. }
  45111. };
  45112. ContainerBlot.prototype.path = function (index, inclusive) {
  45113. if (inclusive === void 0) { inclusive = false; }
  45114. var _a = this.children.find(index, inclusive), child = _a[0], offset = _a[1];
  45115. var position = [[this, index]];
  45116. if (child instanceof ContainerBlot) {
  45117. return position.concat(child.path(offset, inclusive));
  45118. }
  45119. else if (child != null) {
  45120. position.push([child, offset]);
  45121. }
  45122. return position;
  45123. };
  45124. ContainerBlot.prototype.removeChild = function (child) {
  45125. this.children.remove(child);
  45126. };
  45127. ContainerBlot.prototype.replace = function (target) {
  45128. if (target instanceof ContainerBlot) {
  45129. target.moveChildren(this);
  45130. }
  45131. _super.prototype.replace.call(this, target);
  45132. };
  45133. ContainerBlot.prototype.split = function (index, force) {
  45134. if (force === void 0) { force = false; }
  45135. if (!force) {
  45136. if (index === 0)
  45137. return this;
  45138. if (index === this.length())
  45139. return this.next;
  45140. }
  45141. var after = this.clone();
  45142. this.parent.insertBefore(after, this.next);
  45143. this.children.forEachAt(index, this.length(), function (child, offset, length) {
  45144. child = child.split(offset, force);
  45145. after.appendChild(child);
  45146. });
  45147. return after;
  45148. };
  45149. ContainerBlot.prototype.unwrap = function () {
  45150. this.moveChildren(this.parent, this.next);
  45151. this.remove();
  45152. };
  45153. ContainerBlot.prototype.update = function (mutations, context) {
  45154. var _this = this;
  45155. var addedNodes = [];
  45156. var removedNodes = [];
  45157. mutations.forEach(function (mutation) {
  45158. if (mutation.target === _this.domNode && mutation.type === 'childList') {
  45159. addedNodes.push.apply(addedNodes, mutation.addedNodes);
  45160. removedNodes.push.apply(removedNodes, mutation.removedNodes);
  45161. }
  45162. });
  45163. removedNodes.forEach(function (node) {
  45164. // Check node has actually been removed
  45165. // One exception is Chrome does not immediately remove IFRAMEs
  45166. // from DOM but MutationRecord is correct in its reported removal
  45167. if (node.parentNode != null &&
  45168. // @ts-ignore
  45169. node.tagName !== 'IFRAME' &&
  45170. document.body.compareDocumentPosition(node) & Node.DOCUMENT_POSITION_CONTAINED_BY) {
  45171. return;
  45172. }
  45173. var blot = Registry.find(node);
  45174. if (blot == null)
  45175. return;
  45176. if (blot.domNode.parentNode == null || blot.domNode.parentNode === _this.domNode) {
  45177. blot.detach();
  45178. }
  45179. });
  45180. addedNodes
  45181. .filter(function (node) {
  45182. return node.parentNode == _this.domNode;
  45183. })
  45184. .sort(function (a, b) {
  45185. if (a === b)
  45186. return 0;
  45187. if (a.compareDocumentPosition(b) & Node.DOCUMENT_POSITION_FOLLOWING) {
  45188. return 1;
  45189. }
  45190. return -1;
  45191. })
  45192. .forEach(function (node) {
  45193. var refBlot = null;
  45194. if (node.nextSibling != null) {
  45195. refBlot = Registry.find(node.nextSibling);
  45196. }
  45197. var blot = makeBlot(node);
  45198. if (blot.next != refBlot || blot.next == null) {
  45199. if (blot.parent != null) {
  45200. blot.parent.removeChild(_this);
  45201. }
  45202. _this.insertBefore(blot, refBlot || undefined);
  45203. }
  45204. });
  45205. };
  45206. return ContainerBlot;
  45207. }(shadow_1.default));
  45208. function makeBlot(node) {
  45209. var blot = Registry.find(node);
  45210. if (blot == null) {
  45211. try {
  45212. blot = Registry.create(node);
  45213. }
  45214. catch (e) {
  45215. blot = Registry.create(Registry.Scope.INLINE);
  45216. [].slice.call(node.childNodes).forEach(function (child) {
  45217. // @ts-ignore
  45218. blot.domNode.appendChild(child);
  45219. });
  45220. if (node.parentNode) {
  45221. node.parentNode.replaceChild(blot.domNode, node);
  45222. }
  45223. blot.attach();
  45224. }
  45225. }
  45226. return blot;
  45227. }
  45228. exports.default = ContainerBlot;
  45229. /***/ }),
  45230. /* 18 */
  45231. /***/ (function(module, exports, __nested_webpack_require_130088__) {
  45232. "use strict";
  45233. var __extends = (this && this.__extends) || (function () {
  45234. var extendStatics = Object.setPrototypeOf ||
  45235. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  45236. function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
  45237. return function (d, b) {
  45238. extendStatics(d, b);
  45239. function __() { this.constructor = d; }
  45240. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  45241. };
  45242. })();
  45243. Object.defineProperty(exports, "__esModule", { value: true });
  45244. var attributor_1 = __nested_webpack_require_130088__(12);
  45245. var store_1 = __nested_webpack_require_130088__(31);
  45246. var container_1 = __nested_webpack_require_130088__(17);
  45247. var Registry = __nested_webpack_require_130088__(1);
  45248. var FormatBlot = /** @class */ (function (_super) {
  45249. __extends(FormatBlot, _super);
  45250. function FormatBlot(domNode) {
  45251. var _this = _super.call(this, domNode) || this;
  45252. _this.attributes = new store_1.default(_this.domNode);
  45253. return _this;
  45254. }
  45255. FormatBlot.formats = function (domNode) {
  45256. if (typeof this.tagName === 'string') {
  45257. return true;
  45258. }
  45259. else if (Array.isArray(this.tagName)) {
  45260. return domNode.tagName.toLowerCase();
  45261. }
  45262. return undefined;
  45263. };
  45264. FormatBlot.prototype.format = function (name, value) {
  45265. var format = Registry.query(name);
  45266. if (format instanceof attributor_1.default) {
  45267. this.attributes.attribute(format, value);
  45268. }
  45269. else if (value) {
  45270. if (format != null && (name !== this.statics.blotName || this.formats()[name] !== value)) {
  45271. this.replaceWith(name, value);
  45272. }
  45273. }
  45274. };
  45275. FormatBlot.prototype.formats = function () {
  45276. var formats = this.attributes.values();
  45277. var format = this.statics.formats(this.domNode);
  45278. if (format != null) {
  45279. formats[this.statics.blotName] = format;
  45280. }
  45281. return formats;
  45282. };
  45283. FormatBlot.prototype.replaceWith = function (name, value) {
  45284. var replacement = _super.prototype.replaceWith.call(this, name, value);
  45285. this.attributes.copy(replacement);
  45286. return replacement;
  45287. };
  45288. FormatBlot.prototype.update = function (mutations, context) {
  45289. var _this = this;
  45290. _super.prototype.update.call(this, mutations, context);
  45291. if (mutations.some(function (mutation) {
  45292. return mutation.target === _this.domNode && mutation.type === 'attributes';
  45293. })) {
  45294. this.attributes.build();
  45295. }
  45296. };
  45297. FormatBlot.prototype.wrap = function (name, value) {
  45298. var wrapper = _super.prototype.wrap.call(this, name, value);
  45299. if (wrapper instanceof FormatBlot && wrapper.statics.scope === this.statics.scope) {
  45300. this.attributes.move(wrapper);
  45301. }
  45302. return wrapper;
  45303. };
  45304. return FormatBlot;
  45305. }(container_1.default));
  45306. exports.default = FormatBlot;
  45307. /***/ }),
  45308. /* 19 */
  45309. /***/ (function(module, exports, __nested_webpack_require_133111__) {
  45310. "use strict";
  45311. var __extends = (this && this.__extends) || (function () {
  45312. var extendStatics = Object.setPrototypeOf ||
  45313. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  45314. function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
  45315. return function (d, b) {
  45316. extendStatics(d, b);
  45317. function __() { this.constructor = d; }
  45318. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  45319. };
  45320. })();
  45321. Object.defineProperty(exports, "__esModule", { value: true });
  45322. var shadow_1 = __nested_webpack_require_133111__(30);
  45323. var Registry = __nested_webpack_require_133111__(1);
  45324. var LeafBlot = /** @class */ (function (_super) {
  45325. __extends(LeafBlot, _super);
  45326. function LeafBlot() {
  45327. return _super !== null && _super.apply(this, arguments) || this;
  45328. }
  45329. LeafBlot.value = function (domNode) {
  45330. return true;
  45331. };
  45332. LeafBlot.prototype.index = function (node, offset) {
  45333. if (this.domNode === node ||
  45334. this.domNode.compareDocumentPosition(node) & Node.DOCUMENT_POSITION_CONTAINED_BY) {
  45335. return Math.min(offset, 1);
  45336. }
  45337. return -1;
  45338. };
  45339. LeafBlot.prototype.position = function (index, inclusive) {
  45340. var offset = [].indexOf.call(this.parent.domNode.childNodes, this.domNode);
  45341. if (index > 0)
  45342. offset += 1;
  45343. return [this.parent.domNode, offset];
  45344. };
  45345. LeafBlot.prototype.value = function () {
  45346. var _a;
  45347. return _a = {}, _a[this.statics.blotName] = this.statics.value(this.domNode) || true, _a;
  45348. };
  45349. LeafBlot.scope = Registry.Scope.INLINE_BLOT;
  45350. return LeafBlot;
  45351. }(shadow_1.default));
  45352. exports.default = LeafBlot;
  45353. /***/ }),
  45354. /* 20 */
  45355. /***/ (function(module, exports, __nested_webpack_require_134898__) {
  45356. var equal = __nested_webpack_require_134898__(11);
  45357. var extend = __nested_webpack_require_134898__(3);
  45358. var lib = {
  45359. attributes: {
  45360. compose: function (a, b, keepNull) {
  45361. if (typeof a !== 'object') a = {};
  45362. if (typeof b !== 'object') b = {};
  45363. var attributes = extend(true, {}, b);
  45364. if (!keepNull) {
  45365. attributes = Object.keys(attributes).reduce(function (copy, key) {
  45366. if (attributes[key] != null) {
  45367. copy[key] = attributes[key];
  45368. }
  45369. return copy;
  45370. }, {});
  45371. }
  45372. for (var key in a) {
  45373. if (a[key] !== undefined && b[key] === undefined) {
  45374. attributes[key] = a[key];
  45375. }
  45376. }
  45377. return Object.keys(attributes).length > 0 ? attributes : undefined;
  45378. },
  45379. diff: function(a, b) {
  45380. if (typeof a !== 'object') a = {};
  45381. if (typeof b !== 'object') b = {};
  45382. var attributes = Object.keys(a).concat(Object.keys(b)).reduce(function (attributes, key) {
  45383. if (!equal(a[key], b[key])) {
  45384. attributes[key] = b[key] === undefined ? null : b[key];
  45385. }
  45386. return attributes;
  45387. }, {});
  45388. return Object.keys(attributes).length > 0 ? attributes : undefined;
  45389. },
  45390. transform: function (a, b, priority) {
  45391. if (typeof a !== 'object') return b;
  45392. if (typeof b !== 'object') return undefined;
  45393. if (!priority) return b; // b simply overwrites us without priority
  45394. var attributes = Object.keys(b).reduce(function (attributes, key) {
  45395. if (a[key] === undefined) attributes[key] = b[key]; // null is a valid value
  45396. return attributes;
  45397. }, {});
  45398. return Object.keys(attributes).length > 0 ? attributes : undefined;
  45399. }
  45400. },
  45401. iterator: function (ops) {
  45402. return new Iterator(ops);
  45403. },
  45404. length: function (op) {
  45405. if (typeof op['delete'] === 'number') {
  45406. return op['delete'];
  45407. } else if (typeof op.retain === 'number') {
  45408. return op.retain;
  45409. } else {
  45410. return typeof op.insert === 'string' ? op.insert.length : 1;
  45411. }
  45412. }
  45413. };
  45414. function Iterator(ops) {
  45415. this.ops = ops;
  45416. this.index = 0;
  45417. this.offset = 0;
  45418. };
  45419. Iterator.prototype.hasNext = function () {
  45420. return this.peekLength() < Infinity;
  45421. };
  45422. Iterator.prototype.next = function (length) {
  45423. if (!length) length = Infinity;
  45424. var nextOp = this.ops[this.index];
  45425. if (nextOp) {
  45426. var offset = this.offset;
  45427. var opLength = lib.length(nextOp)
  45428. if (length >= opLength - offset) {
  45429. length = opLength - offset;
  45430. this.index += 1;
  45431. this.offset = 0;
  45432. } else {
  45433. this.offset += length;
  45434. }
  45435. if (typeof nextOp['delete'] === 'number') {
  45436. return { 'delete': length };
  45437. } else {
  45438. var retOp = {};
  45439. if (nextOp.attributes) {
  45440. retOp.attributes = nextOp.attributes;
  45441. }
  45442. if (typeof nextOp.retain === 'number') {
  45443. retOp.retain = length;
  45444. } else if (typeof nextOp.insert === 'string') {
  45445. retOp.insert = nextOp.insert.substr(offset, length);
  45446. } else {
  45447. // offset should === 0, length should === 1
  45448. retOp.insert = nextOp.insert;
  45449. }
  45450. return retOp;
  45451. }
  45452. } else {
  45453. return { retain: Infinity };
  45454. }
  45455. };
  45456. Iterator.prototype.peek = function () {
  45457. return this.ops[this.index];
  45458. };
  45459. Iterator.prototype.peekLength = function () {
  45460. if (this.ops[this.index]) {
  45461. // Should never return 0 if our index is being managed correctly
  45462. return lib.length(this.ops[this.index]) - this.offset;
  45463. } else {
  45464. return Infinity;
  45465. }
  45466. };
  45467. Iterator.prototype.peekType = function () {
  45468. if (this.ops[this.index]) {
  45469. if (typeof this.ops[this.index]['delete'] === 'number') {
  45470. return 'delete';
  45471. } else if (typeof this.ops[this.index].retain === 'number') {
  45472. return 'retain';
  45473. } else {
  45474. return 'insert';
  45475. }
  45476. }
  45477. return 'retain';
  45478. };
  45479. Iterator.prototype.rest = function () {
  45480. if (!this.hasNext()) {
  45481. return [];
  45482. } else if (this.offset === 0) {
  45483. return this.ops.slice(this.index);
  45484. } else {
  45485. var offset = this.offset;
  45486. var index = this.index;
  45487. var next = this.next();
  45488. var rest = this.ops.slice(this.index);
  45489. this.offset = offset;
  45490. this.index = index;
  45491. return [next].concat(rest);
  45492. }
  45493. };
  45494. module.exports = lib;
  45495. /***/ }),
  45496. /* 21 */
  45497. /***/ (function(module, exports) {
  45498. var clone = (function() {
  45499. 'use strict';
  45500. function _instanceof(obj, type) {
  45501. return type != null && obj instanceof type;
  45502. }
  45503. var nativeMap;
  45504. try {
  45505. nativeMap = Map;
  45506. } catch(_) {
  45507. // maybe a reference error because no `Map`. Give it a dummy value that no
  45508. // value will ever be an instanceof.
  45509. nativeMap = function() {};
  45510. }
  45511. var nativeSet;
  45512. try {
  45513. nativeSet = Set;
  45514. } catch(_) {
  45515. nativeSet = function() {};
  45516. }
  45517. var nativePromise;
  45518. try {
  45519. nativePromise = Promise;
  45520. } catch(_) {
  45521. nativePromise = function() {};
  45522. }
  45523. /**
  45524. * Clones (copies) an Object using deep copying.
  45525. *
  45526. * This function supports circular references by default, but if you are certain
  45527. * there are no circular references in your object, you can save some CPU time
  45528. * by calling clone(obj, false).
  45529. *
  45530. * Caution: if `circular` is false and `parent` contains circular references,
  45531. * your program may enter an infinite loop and crash.
  45532. *
  45533. * @param `parent` - the object to be cloned
  45534. * @param `circular` - set to true if the object to be cloned may contain
  45535. * circular references. (optional - true by default)
  45536. * @param `depth` - set to a number if the object is only to be cloned to
  45537. * a particular depth. (optional - defaults to Infinity)
  45538. * @param `prototype` - sets the prototype to be used when cloning an object.
  45539. * (optional - defaults to parent prototype).
  45540. * @param `includeNonEnumerable` - set to true if the non-enumerable properties
  45541. * should be cloned as well. Non-enumerable properties on the prototype
  45542. * chain will be ignored. (optional - false by default)
  45543. */
  45544. function clone(parent, circular, depth, prototype, includeNonEnumerable) {
  45545. if (typeof circular === 'object') {
  45546. depth = circular.depth;
  45547. prototype = circular.prototype;
  45548. includeNonEnumerable = circular.includeNonEnumerable;
  45549. circular = circular.circular;
  45550. }
  45551. // maintain two arrays for circular references, where corresponding parents
  45552. // and children have the same index
  45553. var allParents = [];
  45554. var allChildren = [];
  45555. var useBuffer = typeof Buffer != 'undefined';
  45556. if (typeof circular == 'undefined')
  45557. circular = true;
  45558. if (typeof depth == 'undefined')
  45559. depth = Infinity;
  45560. // recurse this function so we don't reset allParents and allChildren
  45561. function _clone(parent, depth) {
  45562. // cloning null always returns null
  45563. if (parent === null)
  45564. return null;
  45565. if (depth === 0)
  45566. return parent;
  45567. var child;
  45568. var proto;
  45569. if (typeof parent != 'object') {
  45570. return parent;
  45571. }
  45572. if (_instanceof(parent, nativeMap)) {
  45573. child = new nativeMap();
  45574. } else if (_instanceof(parent, nativeSet)) {
  45575. child = new nativeSet();
  45576. } else if (_instanceof(parent, nativePromise)) {
  45577. child = new nativePromise(function (resolve, reject) {
  45578. parent.then(function(value) {
  45579. resolve(_clone(value, depth - 1));
  45580. }, function(err) {
  45581. reject(_clone(err, depth - 1));
  45582. });
  45583. });
  45584. } else if (clone.__isArray(parent)) {
  45585. child = [];
  45586. } else if (clone.__isRegExp(parent)) {
  45587. child = new RegExp(parent.source, __getRegExpFlags(parent));
  45588. if (parent.lastIndex) child.lastIndex = parent.lastIndex;
  45589. } else if (clone.__isDate(parent)) {
  45590. child = new Date(parent.getTime());
  45591. } else if (useBuffer && Buffer.isBuffer(parent)) {
  45592. if (Buffer.allocUnsafe) {
  45593. // Node.js >= 4.5.0
  45594. child = Buffer.allocUnsafe(parent.length);
  45595. } else {
  45596. // Older Node.js versions
  45597. child = new Buffer(parent.length);
  45598. }
  45599. parent.copy(child);
  45600. return child;
  45601. } else if (_instanceof(parent, Error)) {
  45602. child = Object.create(parent);
  45603. } else {
  45604. if (typeof prototype == 'undefined') {
  45605. proto = Object.getPrototypeOf(parent);
  45606. child = Object.create(proto);
  45607. }
  45608. else {
  45609. child = Object.create(prototype);
  45610. proto = prototype;
  45611. }
  45612. }
  45613. if (circular) {
  45614. var index = allParents.indexOf(parent);
  45615. if (index != -1) {
  45616. return allChildren[index];
  45617. }
  45618. allParents.push(parent);
  45619. allChildren.push(child);
  45620. }
  45621. if (_instanceof(parent, nativeMap)) {
  45622. parent.forEach(function(value, key) {
  45623. var keyChild = _clone(key, depth - 1);
  45624. var valueChild = _clone(value, depth - 1);
  45625. child.set(keyChild, valueChild);
  45626. });
  45627. }
  45628. if (_instanceof(parent, nativeSet)) {
  45629. parent.forEach(function(value) {
  45630. var entryChild = _clone(value, depth - 1);
  45631. child.add(entryChild);
  45632. });
  45633. }
  45634. for (var i in parent) {
  45635. var attrs;
  45636. if (proto) {
  45637. attrs = Object.getOwnPropertyDescriptor(proto, i);
  45638. }
  45639. if (attrs && attrs.set == null) {
  45640. continue;
  45641. }
  45642. child[i] = _clone(parent[i], depth - 1);
  45643. }
  45644. if (Object.getOwnPropertySymbols) {
  45645. var symbols = Object.getOwnPropertySymbols(parent);
  45646. for (var i = 0; i < symbols.length; i++) {
  45647. // Don't need to worry about cloning a symbol because it is a primitive,
  45648. // like a number or string.
  45649. var symbol = symbols[i];
  45650. var descriptor = Object.getOwnPropertyDescriptor(parent, symbol);
  45651. if (descriptor && !descriptor.enumerable && !includeNonEnumerable) {
  45652. continue;
  45653. }
  45654. child[symbol] = _clone(parent[symbol], depth - 1);
  45655. if (!descriptor.enumerable) {
  45656. Object.defineProperty(child, symbol, {
  45657. enumerable: false
  45658. });
  45659. }
  45660. }
  45661. }
  45662. if (includeNonEnumerable) {
  45663. var allPropertyNames = Object.getOwnPropertyNames(parent);
  45664. for (var i = 0; i < allPropertyNames.length; i++) {
  45665. var propertyName = allPropertyNames[i];
  45666. var descriptor = Object.getOwnPropertyDescriptor(parent, propertyName);
  45667. if (descriptor && descriptor.enumerable) {
  45668. continue;
  45669. }
  45670. child[propertyName] = _clone(parent[propertyName], depth - 1);
  45671. Object.defineProperty(child, propertyName, {
  45672. enumerable: false
  45673. });
  45674. }
  45675. }
  45676. return child;
  45677. }
  45678. return _clone(parent, depth);
  45679. }
  45680. /**
  45681. * Simple flat clone using prototype, accepts only objects, usefull for property
  45682. * override on FLAT configuration object (no nested props).
  45683. *
  45684. * USE WITH CAUTION! This may not behave as you wish if you do not know how this
  45685. * works.
  45686. */
  45687. clone.clonePrototype = function clonePrototype(parent) {
  45688. if (parent === null)
  45689. return null;
  45690. var c = function () {};
  45691. c.prototype = parent;
  45692. return new c();
  45693. };
  45694. // private utility functions
  45695. function __objToStr(o) {
  45696. return Object.prototype.toString.call(o);
  45697. }
  45698. clone.__objToStr = __objToStr;
  45699. function __isDate(o) {
  45700. return typeof o === 'object' && __objToStr(o) === '[object Date]';
  45701. }
  45702. clone.__isDate = __isDate;
  45703. function __isArray(o) {
  45704. return typeof o === 'object' && __objToStr(o) === '[object Array]';
  45705. }
  45706. clone.__isArray = __isArray;
  45707. function __isRegExp(o) {
  45708. return typeof o === 'object' && __objToStr(o) === '[object RegExp]';
  45709. }
  45710. clone.__isRegExp = __isRegExp;
  45711. function __getRegExpFlags(re) {
  45712. var flags = '';
  45713. if (re.global) flags += 'g';
  45714. if (re.ignoreCase) flags += 'i';
  45715. if (re.multiline) flags += 'm';
  45716. return flags;
  45717. }
  45718. clone.__getRegExpFlags = __getRegExpFlags;
  45719. return clone;
  45720. })();
  45721. if (typeof module === 'object' && module.exports) {
  45722. module.exports = clone;
  45723. }
  45724. /***/ }),
  45725. /* 22 */
  45726. /***/ (function(module, exports, __nested_webpack_require_146497__) {
  45727. "use strict";
  45728. Object.defineProperty(exports, "__esModule", {
  45729. value: true
  45730. });
  45731. var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();
  45732. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  45733. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  45734. var _parchment = __nested_webpack_require_146497__(0);
  45735. var _parchment2 = _interopRequireDefault(_parchment);
  45736. var _emitter = __nested_webpack_require_146497__(8);
  45737. var _emitter2 = _interopRequireDefault(_emitter);
  45738. var _block = __nested_webpack_require_146497__(4);
  45739. var _block2 = _interopRequireDefault(_block);
  45740. var _break = __nested_webpack_require_146497__(16);
  45741. var _break2 = _interopRequireDefault(_break);
  45742. var _code = __nested_webpack_require_146497__(13);
  45743. var _code2 = _interopRequireDefault(_code);
  45744. var _container = __nested_webpack_require_146497__(25);
  45745. var _container2 = _interopRequireDefault(_container);
  45746. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  45747. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  45748. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  45749. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  45750. function isLine(blot) {
  45751. return blot instanceof _block2.default || blot instanceof _block.BlockEmbed;
  45752. }
  45753. var Scroll = function (_Parchment$Scroll) {
  45754. _inherits(Scroll, _Parchment$Scroll);
  45755. function Scroll(domNode, config) {
  45756. _classCallCheck(this, Scroll);
  45757. var _this = _possibleConstructorReturn(this, (Scroll.__proto__ || Object.getPrototypeOf(Scroll)).call(this, domNode));
  45758. _this.emitter = config.emitter;
  45759. if (Array.isArray(config.whitelist)) {
  45760. _this.whitelist = config.whitelist.reduce(function (whitelist, format) {
  45761. whitelist[format] = true;
  45762. return whitelist;
  45763. }, {});
  45764. }
  45765. // Some reason fixes composition issues with character languages in Windows/Chrome, Safari
  45766. _this.domNode.addEventListener('DOMNodeInserted', function () {});
  45767. _this.optimize();
  45768. _this.enable();
  45769. return _this;
  45770. }
  45771. _createClass(Scroll, [{
  45772. key: 'batchStart',
  45773. value: function batchStart() {
  45774. this.batch = true;
  45775. }
  45776. }, {
  45777. key: 'batchEnd',
  45778. value: function batchEnd() {
  45779. this.batch = false;
  45780. this.optimize();
  45781. }
  45782. }, {
  45783. key: 'deleteAt',
  45784. value: function deleteAt(index, length) {
  45785. var _line = this.line(index),
  45786. _line2 = _slicedToArray(_line, 2),
  45787. first = _line2[0],
  45788. offset = _line2[1];
  45789. var _line3 = this.line(index + length),
  45790. _line4 = _slicedToArray(_line3, 1),
  45791. last = _line4[0];
  45792. _get(Scroll.prototype.__proto__ || Object.getPrototypeOf(Scroll.prototype), 'deleteAt', this).call(this, index, length);
  45793. if (last != null && first !== last && offset > 0) {
  45794. if (first instanceof _block.BlockEmbed || last instanceof _block.BlockEmbed) {
  45795. this.optimize();
  45796. return;
  45797. }
  45798. if (first instanceof _code2.default) {
  45799. var newlineIndex = first.newlineIndex(first.length(), true);
  45800. if (newlineIndex > -1) {
  45801. first = first.split(newlineIndex + 1);
  45802. if (first === last) {
  45803. this.optimize();
  45804. return;
  45805. }
  45806. }
  45807. } else if (last instanceof _code2.default) {
  45808. var _newlineIndex = last.newlineIndex(0);
  45809. if (_newlineIndex > -1) {
  45810. last.split(_newlineIndex + 1);
  45811. }
  45812. }
  45813. var ref = last.children.head instanceof _break2.default ? null : last.children.head;
  45814. first.moveChildren(last, ref);
  45815. first.remove();
  45816. }
  45817. this.optimize();
  45818. }
  45819. }, {
  45820. key: 'enable',
  45821. value: function enable() {
  45822. var enabled = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
  45823. this.domNode.setAttribute('contenteditable', enabled);
  45824. }
  45825. }, {
  45826. key: 'formatAt',
  45827. value: function formatAt(index, length, format, value) {
  45828. if (this.whitelist != null && !this.whitelist[format]) return;
  45829. _get(Scroll.prototype.__proto__ || Object.getPrototypeOf(Scroll.prototype), 'formatAt', this).call(this, index, length, format, value);
  45830. this.optimize();
  45831. }
  45832. }, {
  45833. key: 'insertAt',
  45834. value: function insertAt(index, value, def) {
  45835. if (def != null && this.whitelist != null && !this.whitelist[value]) return;
  45836. if (index >= this.length()) {
  45837. if (def == null || _parchment2.default.query(value, _parchment2.default.Scope.BLOCK) == null) {
  45838. var blot = _parchment2.default.create(this.statics.defaultChild);
  45839. this.appendChild(blot);
  45840. if (def == null && value.endsWith('\n')) {
  45841. value = value.slice(0, -1);
  45842. }
  45843. blot.insertAt(0, value, def);
  45844. } else {
  45845. var embed = _parchment2.default.create(value, def);
  45846. this.appendChild(embed);
  45847. }
  45848. } else {
  45849. _get(Scroll.prototype.__proto__ || Object.getPrototypeOf(Scroll.prototype), 'insertAt', this).call(this, index, value, def);
  45850. }
  45851. this.optimize();
  45852. }
  45853. }, {
  45854. key: 'insertBefore',
  45855. value: function insertBefore(blot, ref) {
  45856. if (blot.statics.scope === _parchment2.default.Scope.INLINE_BLOT) {
  45857. var wrapper = _parchment2.default.create(this.statics.defaultChild);
  45858. wrapper.appendChild(blot);
  45859. blot = wrapper;
  45860. }
  45861. _get(Scroll.prototype.__proto__ || Object.getPrototypeOf(Scroll.prototype), 'insertBefore', this).call(this, blot, ref);
  45862. }
  45863. }, {
  45864. key: 'leaf',
  45865. value: function leaf(index) {
  45866. return this.path(index).pop() || [null, -1];
  45867. }
  45868. }, {
  45869. key: 'line',
  45870. value: function line(index) {
  45871. if (index === this.length()) {
  45872. return this.line(index - 1);
  45873. }
  45874. return this.descendant(isLine, index);
  45875. }
  45876. }, {
  45877. key: 'lines',
  45878. value: function lines() {
  45879. var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
  45880. var length = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Number.MAX_VALUE;
  45881. var getLines = function getLines(blot, index, length) {
  45882. var lines = [],
  45883. lengthLeft = length;
  45884. blot.children.forEachAt(index, length, function (child, index, length) {
  45885. if (isLine(child)) {
  45886. lines.push(child);
  45887. } else if (child instanceof _parchment2.default.Container) {
  45888. lines = lines.concat(getLines(child, index, lengthLeft));
  45889. }
  45890. lengthLeft -= length;
  45891. });
  45892. return lines;
  45893. };
  45894. return getLines(this, index, length);
  45895. }
  45896. }, {
  45897. key: 'optimize',
  45898. value: function optimize() {
  45899. var mutations = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  45900. var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  45901. if (this.batch === true) return;
  45902. _get(Scroll.prototype.__proto__ || Object.getPrototypeOf(Scroll.prototype), 'optimize', this).call(this, mutations, context);
  45903. if (mutations.length > 0) {
  45904. this.emitter.emit(_emitter2.default.events.SCROLL_OPTIMIZE, mutations, context);
  45905. }
  45906. }
  45907. }, {
  45908. key: 'path',
  45909. value: function path(index) {
  45910. return _get(Scroll.prototype.__proto__ || Object.getPrototypeOf(Scroll.prototype), 'path', this).call(this, index).slice(1); // Exclude self
  45911. }
  45912. }, {
  45913. key: 'update',
  45914. value: function update(mutations) {
  45915. if (this.batch === true) return;
  45916. var source = _emitter2.default.sources.USER;
  45917. if (typeof mutations === 'string') {
  45918. source = mutations;
  45919. }
  45920. if (!Array.isArray(mutations)) {
  45921. mutations = this.observer.takeRecords();
  45922. }
  45923. if (mutations.length > 0) {
  45924. this.emitter.emit(_emitter2.default.events.SCROLL_BEFORE_UPDATE, source, mutations);
  45925. }
  45926. _get(Scroll.prototype.__proto__ || Object.getPrototypeOf(Scroll.prototype), 'update', this).call(this, mutations.concat([])); // pass copy
  45927. if (mutations.length > 0) {
  45928. this.emitter.emit(_emitter2.default.events.SCROLL_UPDATE, source, mutations);
  45929. }
  45930. }
  45931. }]);
  45932. return Scroll;
  45933. }(_parchment2.default.Scroll);
  45934. Scroll.blotName = 'scroll';
  45935. Scroll.className = 'ql-editor';
  45936. Scroll.tagName = 'DIV';
  45937. Scroll.defaultChild = 'block';
  45938. Scroll.allowedChildren = [_block2.default, _block.BlockEmbed, _container2.default];
  45939. exports.default = Scroll;
  45940. /***/ }),
  45941. /* 23 */
  45942. /***/ (function(module, exports, __nested_webpack_require_157111__) {
  45943. "use strict";
  45944. Object.defineProperty(exports, "__esModule", {
  45945. value: true
  45946. });
  45947. exports.SHORTKEY = exports.default = undefined;
  45948. var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
  45949. var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();
  45950. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  45951. var _clone = __nested_webpack_require_157111__(21);
  45952. var _clone2 = _interopRequireDefault(_clone);
  45953. var _deepEqual = __nested_webpack_require_157111__(11);
  45954. var _deepEqual2 = _interopRequireDefault(_deepEqual);
  45955. var _extend = __nested_webpack_require_157111__(3);
  45956. var _extend2 = _interopRequireDefault(_extend);
  45957. var _quillDelta = __nested_webpack_require_157111__(2);
  45958. var _quillDelta2 = _interopRequireDefault(_quillDelta);
  45959. var _op = __nested_webpack_require_157111__(20);
  45960. var _op2 = _interopRequireDefault(_op);
  45961. var _parchment = __nested_webpack_require_157111__(0);
  45962. var _parchment2 = _interopRequireDefault(_parchment);
  45963. var _quill = __nested_webpack_require_157111__(5);
  45964. var _quill2 = _interopRequireDefault(_quill);
  45965. var _logger = __nested_webpack_require_157111__(10);
  45966. var _logger2 = _interopRequireDefault(_logger);
  45967. var _module = __nested_webpack_require_157111__(9);
  45968. var _module2 = _interopRequireDefault(_module);
  45969. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  45970. function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
  45971. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  45972. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  45973. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  45974. var debug = (0, _logger2.default)('quill:keyboard');
  45975. var SHORTKEY = /Mac/i.test(navigator.platform) ? 'metaKey' : 'ctrlKey';
  45976. var Keyboard = function (_Module) {
  45977. _inherits(Keyboard, _Module);
  45978. _createClass(Keyboard, null, [{
  45979. key: 'match',
  45980. value: function match(evt, binding) {
  45981. binding = normalize(binding);
  45982. if (['altKey', 'ctrlKey', 'metaKey', 'shiftKey'].some(function (key) {
  45983. return !!binding[key] !== evt[key] && binding[key] !== null;
  45984. })) {
  45985. return false;
  45986. }
  45987. return binding.key === (evt.which || evt.keyCode);
  45988. }
  45989. }]);
  45990. function Keyboard(quill, options) {
  45991. _classCallCheck(this, Keyboard);
  45992. var _this = _possibleConstructorReturn(this, (Keyboard.__proto__ || Object.getPrototypeOf(Keyboard)).call(this, quill, options));
  45993. _this.bindings = {};
  45994. Object.keys(_this.options.bindings).forEach(function (name) {
  45995. if (name === 'list autofill' && quill.scroll.whitelist != null && !quill.scroll.whitelist['list']) {
  45996. return;
  45997. }
  45998. if (_this.options.bindings[name]) {
  45999. _this.addBinding(_this.options.bindings[name]);
  46000. }
  46001. });
  46002. _this.addBinding({ key: Keyboard.keys.ENTER, shiftKey: null }, handleEnter);
  46003. _this.addBinding({ key: Keyboard.keys.ENTER, metaKey: null, ctrlKey: null, altKey: null }, function () {});
  46004. if (/Firefox/i.test(navigator.userAgent)) {
  46005. // Need to handle delete and backspace for Firefox in the general case #1171
  46006. _this.addBinding({ key: Keyboard.keys.BACKSPACE }, { collapsed: true }, handleBackspace);
  46007. _this.addBinding({ key: Keyboard.keys.DELETE }, { collapsed: true }, handleDelete);
  46008. } else {
  46009. _this.addBinding({ key: Keyboard.keys.BACKSPACE }, { collapsed: true, prefix: /^.?$/ }, handleBackspace);
  46010. _this.addBinding({ key: Keyboard.keys.DELETE }, { collapsed: true, suffix: /^.?$/ }, handleDelete);
  46011. }
  46012. _this.addBinding({ key: Keyboard.keys.BACKSPACE }, { collapsed: false }, handleDeleteRange);
  46013. _this.addBinding({ key: Keyboard.keys.DELETE }, { collapsed: false }, handleDeleteRange);
  46014. _this.addBinding({ key: Keyboard.keys.BACKSPACE, altKey: null, ctrlKey: null, metaKey: null, shiftKey: null }, { collapsed: true, offset: 0 }, handleBackspace);
  46015. _this.listen();
  46016. return _this;
  46017. }
  46018. _createClass(Keyboard, [{
  46019. key: 'addBinding',
  46020. value: function addBinding(key) {
  46021. var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  46022. var handler = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  46023. var binding = normalize(key);
  46024. if (binding == null || binding.key == null) {
  46025. return debug.warn('Attempted to add invalid keyboard binding', binding);
  46026. }
  46027. if (typeof context === 'function') {
  46028. context = { handler: context };
  46029. }
  46030. if (typeof handler === 'function') {
  46031. handler = { handler: handler };
  46032. }
  46033. binding = (0, _extend2.default)(binding, context, handler);
  46034. this.bindings[binding.key] = this.bindings[binding.key] || [];
  46035. this.bindings[binding.key].push(binding);
  46036. }
  46037. }, {
  46038. key: 'listen',
  46039. value: function listen() {
  46040. var _this2 = this;
  46041. this.quill.root.addEventListener('keydown', function (evt) {
  46042. if (evt.defaultPrevented) return;
  46043. var which = evt.which || evt.keyCode;
  46044. var bindings = (_this2.bindings[which] || []).filter(function (binding) {
  46045. return Keyboard.match(evt, binding);
  46046. });
  46047. if (bindings.length === 0) return;
  46048. var range = _this2.quill.getSelection();
  46049. if (range == null || !_this2.quill.hasFocus()) return;
  46050. var _quill$getLine = _this2.quill.getLine(range.index),
  46051. _quill$getLine2 = _slicedToArray(_quill$getLine, 2),
  46052. line = _quill$getLine2[0],
  46053. offset = _quill$getLine2[1];
  46054. var _quill$getLeaf = _this2.quill.getLeaf(range.index),
  46055. _quill$getLeaf2 = _slicedToArray(_quill$getLeaf, 2),
  46056. leafStart = _quill$getLeaf2[0],
  46057. offsetStart = _quill$getLeaf2[1];
  46058. var _ref = range.length === 0 ? [leafStart, offsetStart] : _this2.quill.getLeaf(range.index + range.length),
  46059. _ref2 = _slicedToArray(_ref, 2),
  46060. leafEnd = _ref2[0],
  46061. offsetEnd = _ref2[1];
  46062. var prefixText = leafStart instanceof _parchment2.default.Text ? leafStart.value().slice(0, offsetStart) : '';
  46063. var suffixText = leafEnd instanceof _parchment2.default.Text ? leafEnd.value().slice(offsetEnd) : '';
  46064. var curContext = {
  46065. collapsed: range.length === 0,
  46066. empty: range.length === 0 && line.length() <= 1,
  46067. format: _this2.quill.getFormat(range),
  46068. offset: offset,
  46069. prefix: prefixText,
  46070. suffix: suffixText
  46071. };
  46072. var prevented = bindings.some(function (binding) {
  46073. if (binding.collapsed != null && binding.collapsed !== curContext.collapsed) return false;
  46074. if (binding.empty != null && binding.empty !== curContext.empty) return false;
  46075. if (binding.offset != null && binding.offset !== curContext.offset) return false;
  46076. if (Array.isArray(binding.format)) {
  46077. // any format is present
  46078. if (binding.format.every(function (name) {
  46079. return curContext.format[name] == null;
  46080. })) {
  46081. return false;
  46082. }
  46083. } else if (_typeof(binding.format) === 'object') {
  46084. // all formats must match
  46085. if (!Object.keys(binding.format).every(function (name) {
  46086. if (binding.format[name] === true) return curContext.format[name] != null;
  46087. if (binding.format[name] === false) return curContext.format[name] == null;
  46088. return (0, _deepEqual2.default)(binding.format[name], curContext.format[name]);
  46089. })) {
  46090. return false;
  46091. }
  46092. }
  46093. if (binding.prefix != null && !binding.prefix.test(curContext.prefix)) return false;
  46094. if (binding.suffix != null && !binding.suffix.test(curContext.suffix)) return false;
  46095. return binding.handler.call(_this2, range, curContext) !== true;
  46096. });
  46097. if (prevented) {
  46098. evt.preventDefault();
  46099. }
  46100. });
  46101. }
  46102. }]);
  46103. return Keyboard;
  46104. }(_module2.default);
  46105. Keyboard.keys = {
  46106. BACKSPACE: 8,
  46107. TAB: 9,
  46108. ENTER: 13,
  46109. ESCAPE: 27,
  46110. LEFT: 37,
  46111. UP: 38,
  46112. RIGHT: 39,
  46113. DOWN: 40,
  46114. DELETE: 46
  46115. };
  46116. Keyboard.DEFAULTS = {
  46117. bindings: {
  46118. 'bold': makeFormatHandler('bold'),
  46119. 'italic': makeFormatHandler('italic'),
  46120. 'underline': makeFormatHandler('underline'),
  46121. 'indent': {
  46122. // highlight tab or tab at beginning of list, indent or blockquote
  46123. key: Keyboard.keys.TAB,
  46124. format: ['blockquote', 'indent', 'list'],
  46125. handler: function handler(range, context) {
  46126. if (context.collapsed && context.offset !== 0) return true;
  46127. this.quill.format('indent', '+1', _quill2.default.sources.USER);
  46128. }
  46129. },
  46130. 'outdent': {
  46131. key: Keyboard.keys.TAB,
  46132. shiftKey: true,
  46133. format: ['blockquote', 'indent', 'list'],
  46134. // highlight tab or tab at beginning of list, indent or blockquote
  46135. handler: function handler(range, context) {
  46136. if (context.collapsed && context.offset !== 0) return true;
  46137. this.quill.format('indent', '-1', _quill2.default.sources.USER);
  46138. }
  46139. },
  46140. 'outdent backspace': {
  46141. key: Keyboard.keys.BACKSPACE,
  46142. collapsed: true,
  46143. shiftKey: null,
  46144. metaKey: null,
  46145. ctrlKey: null,
  46146. altKey: null,
  46147. format: ['indent', 'list'],
  46148. offset: 0,
  46149. handler: function handler(range, context) {
  46150. if (context.format.indent != null) {
  46151. this.quill.format('indent', '-1', _quill2.default.sources.USER);
  46152. } else if (context.format.list != null) {
  46153. this.quill.format('list', false, _quill2.default.sources.USER);
  46154. }
  46155. }
  46156. },
  46157. 'indent code-block': makeCodeBlockHandler(true),
  46158. 'outdent code-block': makeCodeBlockHandler(false),
  46159. 'remove tab': {
  46160. key: Keyboard.keys.TAB,
  46161. shiftKey: true,
  46162. collapsed: true,
  46163. prefix: /\t$/,
  46164. handler: function handler(range) {
  46165. this.quill.deleteText(range.index - 1, 1, _quill2.default.sources.USER);
  46166. }
  46167. },
  46168. 'tab': {
  46169. key: Keyboard.keys.TAB,
  46170. handler: function handler(range) {
  46171. this.quill.history.cutoff();
  46172. var delta = new _quillDelta2.default().retain(range.index).delete(range.length).insert('\t');
  46173. this.quill.updateContents(delta, _quill2.default.sources.USER);
  46174. this.quill.history.cutoff();
  46175. this.quill.setSelection(range.index + 1, _quill2.default.sources.SILENT);
  46176. }
  46177. },
  46178. 'list empty enter': {
  46179. key: Keyboard.keys.ENTER,
  46180. collapsed: true,
  46181. format: ['list'],
  46182. empty: true,
  46183. handler: function handler(range, context) {
  46184. this.quill.format('list', false, _quill2.default.sources.USER);
  46185. if (context.format.indent) {
  46186. this.quill.format('indent', false, _quill2.default.sources.USER);
  46187. }
  46188. }
  46189. },
  46190. 'checklist enter': {
  46191. key: Keyboard.keys.ENTER,
  46192. collapsed: true,
  46193. format: { list: 'checked' },
  46194. handler: function handler(range) {
  46195. var _quill$getLine3 = this.quill.getLine(range.index),
  46196. _quill$getLine4 = _slicedToArray(_quill$getLine3, 2),
  46197. line = _quill$getLine4[0],
  46198. offset = _quill$getLine4[1];
  46199. var formats = (0, _extend2.default)({}, line.formats(), { list: 'checked' });
  46200. var delta = new _quillDelta2.default().retain(range.index).insert('\n', formats).retain(line.length() - offset - 1).retain(1, { list: 'unchecked' });
  46201. this.quill.updateContents(delta, _quill2.default.sources.USER);
  46202. this.quill.setSelection(range.index + 1, _quill2.default.sources.SILENT);
  46203. this.quill.scrollIntoView();
  46204. }
  46205. },
  46206. 'header enter': {
  46207. key: Keyboard.keys.ENTER,
  46208. collapsed: true,
  46209. format: ['header'],
  46210. suffix: /^$/,
  46211. handler: function handler(range, context) {
  46212. var _quill$getLine5 = this.quill.getLine(range.index),
  46213. _quill$getLine6 = _slicedToArray(_quill$getLine5, 2),
  46214. line = _quill$getLine6[0],
  46215. offset = _quill$getLine6[1];
  46216. var delta = new _quillDelta2.default().retain(range.index).insert('\n', context.format).retain(line.length() - offset - 1).retain(1, { header: null });
  46217. this.quill.updateContents(delta, _quill2.default.sources.USER);
  46218. this.quill.setSelection(range.index + 1, _quill2.default.sources.SILENT);
  46219. this.quill.scrollIntoView();
  46220. }
  46221. },
  46222. 'list autofill': {
  46223. key: ' ',
  46224. collapsed: true,
  46225. format: { list: false },
  46226. prefix: /^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,
  46227. handler: function handler(range, context) {
  46228. var length = context.prefix.length;
  46229. var _quill$getLine7 = this.quill.getLine(range.index),
  46230. _quill$getLine8 = _slicedToArray(_quill$getLine7, 2),
  46231. line = _quill$getLine8[0],
  46232. offset = _quill$getLine8[1];
  46233. if (offset > length) return true;
  46234. var value = void 0;
  46235. switch (context.prefix.trim()) {
  46236. case '[]':case '[ ]':
  46237. value = 'unchecked';
  46238. break;
  46239. case '[x]':
  46240. value = 'checked';
  46241. break;
  46242. case '-':case '*':
  46243. value = 'bullet';
  46244. break;
  46245. default:
  46246. value = 'ordered';
  46247. }
  46248. this.quill.insertText(range.index, ' ', _quill2.default.sources.USER);
  46249. this.quill.history.cutoff();
  46250. var delta = new _quillDelta2.default().retain(range.index - offset).delete(length + 1).retain(line.length() - 2 - offset).retain(1, { list: value });
  46251. this.quill.updateContents(delta, _quill2.default.sources.USER);
  46252. this.quill.history.cutoff();
  46253. this.quill.setSelection(range.index - length, _quill2.default.sources.SILENT);
  46254. }
  46255. },
  46256. 'code exit': {
  46257. key: Keyboard.keys.ENTER,
  46258. collapsed: true,
  46259. format: ['code-block'],
  46260. prefix: /\n\n$/,
  46261. suffix: /^\s+$/,
  46262. handler: function handler(range) {
  46263. var _quill$getLine9 = this.quill.getLine(range.index),
  46264. _quill$getLine10 = _slicedToArray(_quill$getLine9, 2),
  46265. line = _quill$getLine10[0],
  46266. offset = _quill$getLine10[1];
  46267. var delta = new _quillDelta2.default().retain(range.index + line.length() - offset - 2).retain(1, { 'code-block': null }).delete(1);
  46268. this.quill.updateContents(delta, _quill2.default.sources.USER);
  46269. }
  46270. },
  46271. 'embed left': makeEmbedArrowHandler(Keyboard.keys.LEFT, false),
  46272. 'embed left shift': makeEmbedArrowHandler(Keyboard.keys.LEFT, true),
  46273. 'embed right': makeEmbedArrowHandler(Keyboard.keys.RIGHT, false),
  46274. 'embed right shift': makeEmbedArrowHandler(Keyboard.keys.RIGHT, true)
  46275. }
  46276. };
  46277. function makeEmbedArrowHandler(key, shiftKey) {
  46278. var _ref3;
  46279. var where = key === Keyboard.keys.LEFT ? 'prefix' : 'suffix';
  46280. return _ref3 = {
  46281. key: key,
  46282. shiftKey: shiftKey,
  46283. altKey: null
  46284. }, _defineProperty(_ref3, where, /^$/), _defineProperty(_ref3, 'handler', function handler(range) {
  46285. var index = range.index;
  46286. if (key === Keyboard.keys.RIGHT) {
  46287. index += range.length + 1;
  46288. }
  46289. var _quill$getLeaf3 = this.quill.getLeaf(index),
  46290. _quill$getLeaf4 = _slicedToArray(_quill$getLeaf3, 1),
  46291. leaf = _quill$getLeaf4[0];
  46292. if (!(leaf instanceof _parchment2.default.Embed)) return true;
  46293. if (key === Keyboard.keys.LEFT) {
  46294. if (shiftKey) {
  46295. this.quill.setSelection(range.index - 1, range.length + 1, _quill2.default.sources.USER);
  46296. } else {
  46297. this.quill.setSelection(range.index - 1, _quill2.default.sources.USER);
  46298. }
  46299. } else {
  46300. if (shiftKey) {
  46301. this.quill.setSelection(range.index, range.length + 1, _quill2.default.sources.USER);
  46302. } else {
  46303. this.quill.setSelection(range.index + range.length + 1, _quill2.default.sources.USER);
  46304. }
  46305. }
  46306. return false;
  46307. }), _ref3;
  46308. }
  46309. function handleBackspace(range, context) {
  46310. if (range.index === 0 || this.quill.getLength() <= 1) return;
  46311. var _quill$getLine11 = this.quill.getLine(range.index),
  46312. _quill$getLine12 = _slicedToArray(_quill$getLine11, 1),
  46313. line = _quill$getLine12[0];
  46314. var formats = {};
  46315. if (context.offset === 0) {
  46316. var _quill$getLine13 = this.quill.getLine(range.index - 1),
  46317. _quill$getLine14 = _slicedToArray(_quill$getLine13, 1),
  46318. prev = _quill$getLine14[0];
  46319. if (prev != null && prev.length() > 1) {
  46320. var curFormats = line.formats();
  46321. var prevFormats = this.quill.getFormat(range.index - 1, 1);
  46322. formats = _op2.default.attributes.diff(curFormats, prevFormats) || {};
  46323. }
  46324. }
  46325. // Check for astral symbols
  46326. var length = /[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(context.prefix) ? 2 : 1;
  46327. this.quill.deleteText(range.index - length, length, _quill2.default.sources.USER);
  46328. if (Object.keys(formats).length > 0) {
  46329. this.quill.formatLine(range.index - length, length, formats, _quill2.default.sources.USER);
  46330. }
  46331. this.quill.focus();
  46332. }
  46333. function handleDelete(range, context) {
  46334. // Check for astral symbols
  46335. var length = /^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(context.suffix) ? 2 : 1;
  46336. if (range.index >= this.quill.getLength() - length) return;
  46337. var formats = {},
  46338. nextLength = 0;
  46339. var _quill$getLine15 = this.quill.getLine(range.index),
  46340. _quill$getLine16 = _slicedToArray(_quill$getLine15, 1),
  46341. line = _quill$getLine16[0];
  46342. if (context.offset >= line.length() - 1) {
  46343. var _quill$getLine17 = this.quill.getLine(range.index + 1),
  46344. _quill$getLine18 = _slicedToArray(_quill$getLine17, 1),
  46345. next = _quill$getLine18[0];
  46346. if (next) {
  46347. var curFormats = line.formats();
  46348. var nextFormats = this.quill.getFormat(range.index, 1);
  46349. formats = _op2.default.attributes.diff(curFormats, nextFormats) || {};
  46350. nextLength = next.length();
  46351. }
  46352. }
  46353. this.quill.deleteText(range.index, length, _quill2.default.sources.USER);
  46354. if (Object.keys(formats).length > 0) {
  46355. this.quill.formatLine(range.index + nextLength - 1, length, formats, _quill2.default.sources.USER);
  46356. }
  46357. }
  46358. function handleDeleteRange(range) {
  46359. var lines = this.quill.getLines(range);
  46360. var formats = {};
  46361. if (lines.length > 1) {
  46362. var firstFormats = lines[0].formats();
  46363. var lastFormats = lines[lines.length - 1].formats();
  46364. formats = _op2.default.attributes.diff(lastFormats, firstFormats) || {};
  46365. }
  46366. this.quill.deleteText(range, _quill2.default.sources.USER);
  46367. if (Object.keys(formats).length > 0) {
  46368. this.quill.formatLine(range.index, 1, formats, _quill2.default.sources.USER);
  46369. }
  46370. this.quill.setSelection(range.index, _quill2.default.sources.SILENT);
  46371. this.quill.focus();
  46372. }
  46373. function handleEnter(range, context) {
  46374. var _this3 = this;
  46375. if (range.length > 0) {
  46376. this.quill.scroll.deleteAt(range.index, range.length); // So we do not trigger text-change
  46377. }
  46378. var lineFormats = Object.keys(context.format).reduce(function (lineFormats, format) {
  46379. if (_parchment2.default.query(format, _parchment2.default.Scope.BLOCK) && !Array.isArray(context.format[format])) {
  46380. lineFormats[format] = context.format[format];
  46381. }
  46382. return lineFormats;
  46383. }, {});
  46384. this.quill.insertText(range.index, '\n', lineFormats, _quill2.default.sources.USER);
  46385. // Earlier scroll.deleteAt might have messed up our selection,
  46386. // so insertText's built in selection preservation is not reliable
  46387. this.quill.setSelection(range.index + 1, _quill2.default.sources.SILENT);
  46388. this.quill.focus();
  46389. Object.keys(context.format).forEach(function (name) {
  46390. if (lineFormats[name] != null) return;
  46391. if (Array.isArray(context.format[name])) return;
  46392. if (name === 'link') return;
  46393. _this3.quill.format(name, context.format[name], _quill2.default.sources.USER);
  46394. });
  46395. }
  46396. function makeCodeBlockHandler(indent) {
  46397. return {
  46398. key: Keyboard.keys.TAB,
  46399. shiftKey: !indent,
  46400. format: { 'code-block': true },
  46401. handler: function handler(range) {
  46402. var CodeBlock = _parchment2.default.query('code-block');
  46403. var index = range.index,
  46404. length = range.length;
  46405. var _quill$scroll$descend = this.quill.scroll.descendant(CodeBlock, index),
  46406. _quill$scroll$descend2 = _slicedToArray(_quill$scroll$descend, 2),
  46407. block = _quill$scroll$descend2[0],
  46408. offset = _quill$scroll$descend2[1];
  46409. if (block == null) return;
  46410. var scrollIndex = this.quill.getIndex(block);
  46411. var start = block.newlineIndex(offset, true) + 1;
  46412. var end = block.newlineIndex(scrollIndex + offset + length);
  46413. var lines = block.domNode.textContent.slice(start, end).split('\n');
  46414. offset = 0;
  46415. lines.forEach(function (line, i) {
  46416. if (indent) {
  46417. block.insertAt(start + offset, CodeBlock.TAB);
  46418. offset += CodeBlock.TAB.length;
  46419. if (i === 0) {
  46420. index += CodeBlock.TAB.length;
  46421. } else {
  46422. length += CodeBlock.TAB.length;
  46423. }
  46424. } else if (line.startsWith(CodeBlock.TAB)) {
  46425. block.deleteAt(start + offset, CodeBlock.TAB.length);
  46426. offset -= CodeBlock.TAB.length;
  46427. if (i === 0) {
  46428. index -= CodeBlock.TAB.length;
  46429. } else {
  46430. length -= CodeBlock.TAB.length;
  46431. }
  46432. }
  46433. offset += line.length + 1;
  46434. });
  46435. this.quill.update(_quill2.default.sources.USER);
  46436. this.quill.setSelection(index, length, _quill2.default.sources.SILENT);
  46437. }
  46438. };
  46439. }
  46440. function makeFormatHandler(format) {
  46441. return {
  46442. key: format[0].toUpperCase(),
  46443. shortKey: true,
  46444. handler: function handler(range, context) {
  46445. this.quill.format(format, !context.format[format], _quill2.default.sources.USER);
  46446. }
  46447. };
  46448. }
  46449. function normalize(binding) {
  46450. if (typeof binding === 'string' || typeof binding === 'number') {
  46451. return normalize({ key: binding });
  46452. }
  46453. if ((typeof binding === 'undefined' ? 'undefined' : _typeof(binding)) === 'object') {
  46454. binding = (0, _clone2.default)(binding, false);
  46455. }
  46456. if (typeof binding.key === 'string') {
  46457. if (Keyboard.keys[binding.key.toUpperCase()] != null) {
  46458. binding.key = Keyboard.keys[binding.key.toUpperCase()];
  46459. } else if (binding.key.length === 1) {
  46460. binding.key = binding.key.toUpperCase().charCodeAt(0);
  46461. } else {
  46462. return null;
  46463. }
  46464. }
  46465. if (binding.shortKey) {
  46466. binding[SHORTKEY] = binding.shortKey;
  46467. delete binding.shortKey;
  46468. }
  46469. return binding;
  46470. }
  46471. exports.default = Keyboard;
  46472. exports.SHORTKEY = SHORTKEY;
  46473. /***/ }),
  46474. /* 24 */
  46475. /***/ (function(module, exports, __nested_webpack_require_181454__) {
  46476. "use strict";
  46477. Object.defineProperty(exports, "__esModule", {
  46478. value: true
  46479. });
  46480. var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();
  46481. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  46482. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  46483. var _parchment = __nested_webpack_require_181454__(0);
  46484. var _parchment2 = _interopRequireDefault(_parchment);
  46485. var _text = __nested_webpack_require_181454__(7);
  46486. var _text2 = _interopRequireDefault(_text);
  46487. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  46488. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  46489. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  46490. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  46491. var Cursor = function (_Parchment$Embed) {
  46492. _inherits(Cursor, _Parchment$Embed);
  46493. _createClass(Cursor, null, [{
  46494. key: 'value',
  46495. value: function value() {
  46496. return undefined;
  46497. }
  46498. }]);
  46499. function Cursor(domNode, selection) {
  46500. _classCallCheck(this, Cursor);
  46501. var _this = _possibleConstructorReturn(this, (Cursor.__proto__ || Object.getPrototypeOf(Cursor)).call(this, domNode));
  46502. _this.selection = selection;
  46503. _this.textNode = document.createTextNode(Cursor.CONTENTS);
  46504. _this.domNode.appendChild(_this.textNode);
  46505. _this._length = 0;
  46506. return _this;
  46507. }
  46508. _createClass(Cursor, [{
  46509. key: 'detach',
  46510. value: function detach() {
  46511. // super.detach() will also clear domNode.__blot
  46512. if (this.parent != null) this.parent.removeChild(this);
  46513. }
  46514. }, {
  46515. key: 'format',
  46516. value: function format(name, value) {
  46517. if (this._length !== 0) {
  46518. return _get(Cursor.prototype.__proto__ || Object.getPrototypeOf(Cursor.prototype), 'format', this).call(this, name, value);
  46519. }
  46520. var target = this,
  46521. index = 0;
  46522. while (target != null && target.statics.scope !== _parchment2.default.Scope.BLOCK_BLOT) {
  46523. index += target.offset(target.parent);
  46524. target = target.parent;
  46525. }
  46526. if (target != null) {
  46527. this._length = Cursor.CONTENTS.length;
  46528. target.optimize();
  46529. target.formatAt(index, Cursor.CONTENTS.length, name, value);
  46530. this._length = 0;
  46531. }
  46532. }
  46533. }, {
  46534. key: 'index',
  46535. value: function index(node, offset) {
  46536. if (node === this.textNode) return 0;
  46537. return _get(Cursor.prototype.__proto__ || Object.getPrototypeOf(Cursor.prototype), 'index', this).call(this, node, offset);
  46538. }
  46539. }, {
  46540. key: 'length',
  46541. value: function length() {
  46542. return this._length;
  46543. }
  46544. }, {
  46545. key: 'position',
  46546. value: function position() {
  46547. return [this.textNode, this.textNode.data.length];
  46548. }
  46549. }, {
  46550. key: 'remove',
  46551. value: function remove() {
  46552. _get(Cursor.prototype.__proto__ || Object.getPrototypeOf(Cursor.prototype), 'remove', this).call(this);
  46553. this.parent = null;
  46554. }
  46555. }, {
  46556. key: 'restore',
  46557. value: function restore() {
  46558. if (this.selection.composing || this.parent == null) return;
  46559. var textNode = this.textNode;
  46560. var range = this.selection.getNativeRange();
  46561. var restoreText = void 0,
  46562. start = void 0,
  46563. end = void 0;
  46564. if (range != null && range.start.node === textNode && range.end.node === textNode) {
  46565. var _ref = [textNode, range.start.offset, range.end.offset];
  46566. restoreText = _ref[0];
  46567. start = _ref[1];
  46568. end = _ref[2];
  46569. }
  46570. // Link format will insert text outside of anchor tag
  46571. while (this.domNode.lastChild != null && this.domNode.lastChild !== this.textNode) {
  46572. this.domNode.parentNode.insertBefore(this.domNode.lastChild, this.domNode);
  46573. }
  46574. if (this.textNode.data !== Cursor.CONTENTS) {
  46575. var text = this.textNode.data.split(Cursor.CONTENTS).join('');
  46576. if (this.next instanceof _text2.default) {
  46577. restoreText = this.next.domNode;
  46578. this.next.insertAt(0, text);
  46579. this.textNode.data = Cursor.CONTENTS;
  46580. } else {
  46581. this.textNode.data = text;
  46582. this.parent.insertBefore(_parchment2.default.create(this.textNode), this);
  46583. this.textNode = document.createTextNode(Cursor.CONTENTS);
  46584. this.domNode.appendChild(this.textNode);
  46585. }
  46586. }
  46587. this.remove();
  46588. if (start != null) {
  46589. var _map = [start, end].map(function (offset) {
  46590. return Math.max(0, Math.min(restoreText.data.length, offset - 1));
  46591. });
  46592. var _map2 = _slicedToArray(_map, 2);
  46593. start = _map2[0];
  46594. end = _map2[1];
  46595. return {
  46596. startNode: restoreText,
  46597. startOffset: start,
  46598. endNode: restoreText,
  46599. endOffset: end
  46600. };
  46601. }
  46602. }
  46603. }, {
  46604. key: 'update',
  46605. value: function update(mutations, context) {
  46606. var _this2 = this;
  46607. if (mutations.some(function (mutation) {
  46608. return mutation.type === 'characterData' && mutation.target === _this2.textNode;
  46609. })) {
  46610. var range = this.restore();
  46611. if (range) context.range = range;
  46612. }
  46613. }
  46614. }, {
  46615. key: 'value',
  46616. value: function value() {
  46617. return '';
  46618. }
  46619. }]);
  46620. return Cursor;
  46621. }(_parchment2.default.Embed);
  46622. Cursor.blotName = 'cursor';
  46623. Cursor.className = 'ql-cursor';
  46624. Cursor.tagName = 'span';
  46625. Cursor.CONTENTS = '\uFEFF'; // Zero width no break space
  46626. exports.default = Cursor;
  46627. /***/ }),
  46628. /* 25 */
  46629. /***/ (function(module, exports, __nested_webpack_require_189100__) {
  46630. "use strict";
  46631. Object.defineProperty(exports, "__esModule", {
  46632. value: true
  46633. });
  46634. var _parchment = __nested_webpack_require_189100__(0);
  46635. var _parchment2 = _interopRequireDefault(_parchment);
  46636. var _block = __nested_webpack_require_189100__(4);
  46637. var _block2 = _interopRequireDefault(_block);
  46638. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  46639. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  46640. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  46641. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  46642. var Container = function (_Parchment$Container) {
  46643. _inherits(Container, _Parchment$Container);
  46644. function Container() {
  46645. _classCallCheck(this, Container);
  46646. return _possibleConstructorReturn(this, (Container.__proto__ || Object.getPrototypeOf(Container)).apply(this, arguments));
  46647. }
  46648. return Container;
  46649. }(_parchment2.default.Container);
  46650. Container.allowedChildren = [_block2.default, _block.BlockEmbed, Container];
  46651. exports.default = Container;
  46652. /***/ }),
  46653. /* 26 */
  46654. /***/ (function(module, exports, __nested_webpack_require_190886__) {
  46655. "use strict";
  46656. Object.defineProperty(exports, "__esModule", {
  46657. value: true
  46658. });
  46659. exports.ColorStyle = exports.ColorClass = exports.ColorAttributor = undefined;
  46660. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  46661. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  46662. var _parchment = __nested_webpack_require_190886__(0);
  46663. var _parchment2 = _interopRequireDefault(_parchment);
  46664. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  46665. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  46666. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  46667. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  46668. var ColorAttributor = function (_Parchment$Attributor) {
  46669. _inherits(ColorAttributor, _Parchment$Attributor);
  46670. function ColorAttributor() {
  46671. _classCallCheck(this, ColorAttributor);
  46672. return _possibleConstructorReturn(this, (ColorAttributor.__proto__ || Object.getPrototypeOf(ColorAttributor)).apply(this, arguments));
  46673. }
  46674. _createClass(ColorAttributor, [{
  46675. key: 'value',
  46676. value: function value(domNode) {
  46677. var value = _get(ColorAttributor.prototype.__proto__ || Object.getPrototypeOf(ColorAttributor.prototype), 'value', this).call(this, domNode);
  46678. if (!value.startsWith('rgb(')) return value;
  46679. value = value.replace(/^[^\d]+/, '').replace(/[^\d]+$/, '');
  46680. return '#' + value.split(',').map(function (component) {
  46681. return ('00' + parseInt(component).toString(16)).slice(-2);
  46682. }).join('');
  46683. }
  46684. }]);
  46685. return ColorAttributor;
  46686. }(_parchment2.default.Attributor.Style);
  46687. var ColorClass = new _parchment2.default.Attributor.Class('color', 'ql-color', {
  46688. scope: _parchment2.default.Scope.INLINE
  46689. });
  46690. var ColorStyle = new ColorAttributor('color', 'color', {
  46691. scope: _parchment2.default.Scope.INLINE
  46692. });
  46693. exports.ColorAttributor = ColorAttributor;
  46694. exports.ColorClass = ColorClass;
  46695. exports.ColorStyle = ColorStyle;
  46696. /***/ }),
  46697. /* 27 */
  46698. /***/ (function(module, exports, __nested_webpack_require_194529__) {
  46699. "use strict";
  46700. Object.defineProperty(exports, "__esModule", {
  46701. value: true
  46702. });
  46703. exports.sanitize = exports.default = undefined;
  46704. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  46705. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  46706. var _inline = __nested_webpack_require_194529__(6);
  46707. var _inline2 = _interopRequireDefault(_inline);
  46708. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  46709. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  46710. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  46711. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  46712. var Link = function (_Inline) {
  46713. _inherits(Link, _Inline);
  46714. function Link() {
  46715. _classCallCheck(this, Link);
  46716. return _possibleConstructorReturn(this, (Link.__proto__ || Object.getPrototypeOf(Link)).apply(this, arguments));
  46717. }
  46718. _createClass(Link, [{
  46719. key: 'format',
  46720. value: function format(name, value) {
  46721. if (name !== this.statics.blotName || !value) return _get(Link.prototype.__proto__ || Object.getPrototypeOf(Link.prototype), 'format', this).call(this, name, value);
  46722. value = this.constructor.sanitize(value);
  46723. this.domNode.setAttribute('href', value);
  46724. }
  46725. }], [{
  46726. key: 'create',
  46727. value: function create(value) {
  46728. var node = _get(Link.__proto__ || Object.getPrototypeOf(Link), 'create', this).call(this, value);
  46729. value = this.sanitize(value);
  46730. node.setAttribute('href', value);
  46731. node.setAttribute('rel', 'noopener noreferrer');
  46732. node.setAttribute('target', '_blank');
  46733. return node;
  46734. }
  46735. }, {
  46736. key: 'formats',
  46737. value: function formats(domNode) {
  46738. return domNode.getAttribute('href');
  46739. }
  46740. }, {
  46741. key: 'sanitize',
  46742. value: function sanitize(url) {
  46743. return _sanitize(url, this.PROTOCOL_WHITELIST) ? url : this.SANITIZED_URL;
  46744. }
  46745. }]);
  46746. return Link;
  46747. }(_inline2.default);
  46748. Link.blotName = 'link';
  46749. Link.tagName = 'A';
  46750. Link.SANITIZED_URL = 'about:blank';
  46751. Link.PROTOCOL_WHITELIST = ['http', 'https', 'mailto', 'tel'];
  46752. function _sanitize(url, protocols) {
  46753. var anchor = document.createElement('a');
  46754. anchor.href = url;
  46755. var protocol = anchor.href.slice(0, anchor.href.indexOf(':'));
  46756. return protocols.indexOf(protocol) > -1;
  46757. }
  46758. exports.default = Link;
  46759. exports.sanitize = _sanitize;
  46760. /***/ }),
  46761. /* 28 */
  46762. /***/ (function(module, exports, __nested_webpack_require_198559__) {
  46763. "use strict";
  46764. Object.defineProperty(exports, "__esModule", {
  46765. value: true
  46766. });
  46767. var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
  46768. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  46769. var _keyboard = __nested_webpack_require_198559__(23);
  46770. var _keyboard2 = _interopRequireDefault(_keyboard);
  46771. var _dropdown = __nested_webpack_require_198559__(107);
  46772. var _dropdown2 = _interopRequireDefault(_dropdown);
  46773. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  46774. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  46775. var optionsCounter = 0;
  46776. function toggleAriaAttribute(element, attribute) {
  46777. element.setAttribute(attribute, !(element.getAttribute(attribute) === 'true'));
  46778. }
  46779. var Picker = function () {
  46780. function Picker(select) {
  46781. var _this = this;
  46782. _classCallCheck(this, Picker);
  46783. this.select = select;
  46784. this.container = document.createElement('span');
  46785. this.buildPicker();
  46786. this.select.style.display = 'none';
  46787. this.select.parentNode.insertBefore(this.container, this.select);
  46788. this.label.addEventListener('mousedown', function () {
  46789. _this.togglePicker();
  46790. });
  46791. this.label.addEventListener('keydown', function (event) {
  46792. switch (event.keyCode) {
  46793. // Allows the "Enter" key to open the picker
  46794. case _keyboard2.default.keys.ENTER:
  46795. _this.togglePicker();
  46796. break;
  46797. // Allows the "Escape" key to close the picker
  46798. case _keyboard2.default.keys.ESCAPE:
  46799. _this.escape();
  46800. event.preventDefault();
  46801. break;
  46802. default:
  46803. }
  46804. });
  46805. this.select.addEventListener('change', this.update.bind(this));
  46806. }
  46807. _createClass(Picker, [{
  46808. key: 'togglePicker',
  46809. value: function togglePicker() {
  46810. this.container.classList.toggle('ql-expanded');
  46811. // Toggle aria-expanded and aria-hidden to make the picker accessible
  46812. toggleAriaAttribute(this.label, 'aria-expanded');
  46813. toggleAriaAttribute(this.options, 'aria-hidden');
  46814. }
  46815. }, {
  46816. key: 'buildItem',
  46817. value: function buildItem(option) {
  46818. var _this2 = this;
  46819. var item = document.createElement('span');
  46820. item.tabIndex = '0';
  46821. item.setAttribute('role', 'button');
  46822. item.classList.add('ql-picker-item');
  46823. if (option.hasAttribute('value')) {
  46824. item.setAttribute('data-value', option.getAttribute('value'));
  46825. }
  46826. if (option.textContent) {
  46827. item.setAttribute('data-label', option.textContent);
  46828. }
  46829. item.addEventListener('click', function () {
  46830. _this2.selectItem(item, true);
  46831. });
  46832. item.addEventListener('keydown', function (event) {
  46833. switch (event.keyCode) {
  46834. // Allows the "Enter" key to select an item
  46835. case _keyboard2.default.keys.ENTER:
  46836. _this2.selectItem(item, true);
  46837. event.preventDefault();
  46838. break;
  46839. // Allows the "Escape" key to close the picker
  46840. case _keyboard2.default.keys.ESCAPE:
  46841. _this2.escape();
  46842. event.preventDefault();
  46843. break;
  46844. default:
  46845. }
  46846. });
  46847. return item;
  46848. }
  46849. }, {
  46850. key: 'buildLabel',
  46851. value: function buildLabel() {
  46852. var label = document.createElement('span');
  46853. label.classList.add('ql-picker-label');
  46854. label.innerHTML = _dropdown2.default;
  46855. label.tabIndex = '0';
  46856. label.setAttribute('role', 'button');
  46857. label.setAttribute('aria-expanded', 'false');
  46858. this.container.appendChild(label);
  46859. return label;
  46860. }
  46861. }, {
  46862. key: 'buildOptions',
  46863. value: function buildOptions() {
  46864. var _this3 = this;
  46865. var options = document.createElement('span');
  46866. options.classList.add('ql-picker-options');
  46867. // Don't want screen readers to read this until options are visible
  46868. options.setAttribute('aria-hidden', 'true');
  46869. options.tabIndex = '-1';
  46870. // Need a unique id for aria-controls
  46871. options.id = 'ql-picker-options-' + optionsCounter;
  46872. optionsCounter += 1;
  46873. this.label.setAttribute('aria-controls', options.id);
  46874. this.options = options;
  46875. [].slice.call(this.select.options).forEach(function (option) {
  46876. var item = _this3.buildItem(option);
  46877. options.appendChild(item);
  46878. if (option.selected === true) {
  46879. _this3.selectItem(item);
  46880. }
  46881. });
  46882. this.container.appendChild(options);
  46883. }
  46884. }, {
  46885. key: 'buildPicker',
  46886. value: function buildPicker() {
  46887. var _this4 = this;
  46888. [].slice.call(this.select.attributes).forEach(function (item) {
  46889. _this4.container.setAttribute(item.name, item.value);
  46890. });
  46891. this.container.classList.add('ql-picker');
  46892. this.label = this.buildLabel();
  46893. this.buildOptions();
  46894. }
  46895. }, {
  46896. key: 'escape',
  46897. value: function escape() {
  46898. var _this5 = this;
  46899. // Close menu and return focus to trigger label
  46900. this.close();
  46901. // Need setTimeout for accessibility to ensure that the browser executes
  46902. // focus on the next process thread and after any DOM content changes
  46903. setTimeout(function () {
  46904. return _this5.label.focus();
  46905. }, 1);
  46906. }
  46907. }, {
  46908. key: 'close',
  46909. value: function close() {
  46910. this.container.classList.remove('ql-expanded');
  46911. this.label.setAttribute('aria-expanded', 'false');
  46912. this.options.setAttribute('aria-hidden', 'true');
  46913. }
  46914. }, {
  46915. key: 'selectItem',
  46916. value: function selectItem(item) {
  46917. var trigger = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  46918. var selected = this.container.querySelector('.ql-selected');
  46919. if (item === selected) return;
  46920. if (selected != null) {
  46921. selected.classList.remove('ql-selected');
  46922. }
  46923. if (item == null) return;
  46924. item.classList.add('ql-selected');
  46925. this.select.selectedIndex = [].indexOf.call(item.parentNode.children, item);
  46926. if (item.hasAttribute('data-value')) {
  46927. this.label.setAttribute('data-value', item.getAttribute('data-value'));
  46928. } else {
  46929. this.label.removeAttribute('data-value');
  46930. }
  46931. if (item.hasAttribute('data-label')) {
  46932. this.label.setAttribute('data-label', item.getAttribute('data-label'));
  46933. } else {
  46934. this.label.removeAttribute('data-label');
  46935. }
  46936. if (trigger) {
  46937. if (typeof Event === 'function') {
  46938. this.select.dispatchEvent(new Event('change'));
  46939. } else if ((typeof Event === 'undefined' ? 'undefined' : _typeof(Event)) === 'object') {
  46940. // IE11
  46941. var event = document.createEvent('Event');
  46942. event.initEvent('change', true, true);
  46943. this.select.dispatchEvent(event);
  46944. }
  46945. this.close();
  46946. }
  46947. }
  46948. }, {
  46949. key: 'update',
  46950. value: function update() {
  46951. var option = void 0;
  46952. if (this.select.selectedIndex > -1) {
  46953. var item = this.container.querySelector('.ql-picker-options').children[this.select.selectedIndex];
  46954. option = this.select.options[this.select.selectedIndex];
  46955. this.selectItem(item);
  46956. } else {
  46957. this.selectItem(null);
  46958. }
  46959. var isActive = option != null && option !== this.select.querySelector('option[selected]');
  46960. this.label.classList.toggle('ql-active', isActive);
  46961. }
  46962. }]);
  46963. return Picker;
  46964. }();
  46965. exports.default = Picker;
  46966. /***/ }),
  46967. /* 29 */
  46968. /***/ (function(module, exports, __nested_webpack_require_206753__) {
  46969. "use strict";
  46970. Object.defineProperty(exports, "__esModule", {
  46971. value: true
  46972. });
  46973. var _parchment = __nested_webpack_require_206753__(0);
  46974. var _parchment2 = _interopRequireDefault(_parchment);
  46975. var _quill = __nested_webpack_require_206753__(5);
  46976. var _quill2 = _interopRequireDefault(_quill);
  46977. var _block = __nested_webpack_require_206753__(4);
  46978. var _block2 = _interopRequireDefault(_block);
  46979. var _break = __nested_webpack_require_206753__(16);
  46980. var _break2 = _interopRequireDefault(_break);
  46981. var _container = __nested_webpack_require_206753__(25);
  46982. var _container2 = _interopRequireDefault(_container);
  46983. var _cursor = __nested_webpack_require_206753__(24);
  46984. var _cursor2 = _interopRequireDefault(_cursor);
  46985. var _embed = __nested_webpack_require_206753__(35);
  46986. var _embed2 = _interopRequireDefault(_embed);
  46987. var _inline = __nested_webpack_require_206753__(6);
  46988. var _inline2 = _interopRequireDefault(_inline);
  46989. var _scroll = __nested_webpack_require_206753__(22);
  46990. var _scroll2 = _interopRequireDefault(_scroll);
  46991. var _text = __nested_webpack_require_206753__(7);
  46992. var _text2 = _interopRequireDefault(_text);
  46993. var _clipboard = __nested_webpack_require_206753__(55);
  46994. var _clipboard2 = _interopRequireDefault(_clipboard);
  46995. var _history = __nested_webpack_require_206753__(42);
  46996. var _history2 = _interopRequireDefault(_history);
  46997. var _keyboard = __nested_webpack_require_206753__(23);
  46998. var _keyboard2 = _interopRequireDefault(_keyboard);
  46999. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  47000. _quill2.default.register({
  47001. 'blots/block': _block2.default,
  47002. 'blots/block/embed': _block.BlockEmbed,
  47003. 'blots/break': _break2.default,
  47004. 'blots/container': _container2.default,
  47005. 'blots/cursor': _cursor2.default,
  47006. 'blots/embed': _embed2.default,
  47007. 'blots/inline': _inline2.default,
  47008. 'blots/scroll': _scroll2.default,
  47009. 'blots/text': _text2.default,
  47010. 'modules/clipboard': _clipboard2.default,
  47011. 'modules/history': _history2.default,
  47012. 'modules/keyboard': _keyboard2.default
  47013. });
  47014. _parchment2.default.register(_block2.default, _break2.default, _cursor2.default, _inline2.default, _scroll2.default, _text2.default);
  47015. exports.default = _quill2.default;
  47016. /***/ }),
  47017. /* 30 */
  47018. /***/ (function(module, exports, __nested_webpack_require_208833__) {
  47019. "use strict";
  47020. Object.defineProperty(exports, "__esModule", { value: true });
  47021. var Registry = __nested_webpack_require_208833__(1);
  47022. var ShadowBlot = /** @class */ (function () {
  47023. function ShadowBlot(domNode) {
  47024. this.domNode = domNode;
  47025. // @ts-ignore
  47026. this.domNode[Registry.DATA_KEY] = { blot: this };
  47027. }
  47028. Object.defineProperty(ShadowBlot.prototype, "statics", {
  47029. // Hack for accessing inherited static methods
  47030. get: function () {
  47031. return this.constructor;
  47032. },
  47033. enumerable: true,
  47034. configurable: true
  47035. });
  47036. ShadowBlot.create = function (value) {
  47037. if (this.tagName == null) {
  47038. throw new Registry.ParchmentError('Blot definition missing tagName');
  47039. }
  47040. var node;
  47041. if (Array.isArray(this.tagName)) {
  47042. if (typeof value === 'string') {
  47043. value = value.toUpperCase();
  47044. if (parseInt(value).toString() === value) {
  47045. value = parseInt(value);
  47046. }
  47047. }
  47048. if (typeof value === 'number') {
  47049. node = document.createElement(this.tagName[value - 1]);
  47050. }
  47051. else if (this.tagName.indexOf(value) > -1) {
  47052. node = document.createElement(value);
  47053. }
  47054. else {
  47055. node = document.createElement(this.tagName[0]);
  47056. }
  47057. }
  47058. else {
  47059. node = document.createElement(this.tagName);
  47060. }
  47061. if (this.className) {
  47062. node.classList.add(this.className);
  47063. }
  47064. return node;
  47065. };
  47066. ShadowBlot.prototype.attach = function () {
  47067. if (this.parent != null) {
  47068. this.scroll = this.parent.scroll;
  47069. }
  47070. };
  47071. ShadowBlot.prototype.clone = function () {
  47072. var domNode = this.domNode.cloneNode(false);
  47073. return Registry.create(domNode);
  47074. };
  47075. ShadowBlot.prototype.detach = function () {
  47076. if (this.parent != null)
  47077. this.parent.removeChild(this);
  47078. // @ts-ignore
  47079. delete this.domNode[Registry.DATA_KEY];
  47080. };
  47081. ShadowBlot.prototype.deleteAt = function (index, length) {
  47082. var blot = this.isolate(index, length);
  47083. blot.remove();
  47084. };
  47085. ShadowBlot.prototype.formatAt = function (index, length, name, value) {
  47086. var blot = this.isolate(index, length);
  47087. if (Registry.query(name, Registry.Scope.BLOT) != null && value) {
  47088. blot.wrap(name, value);
  47089. }
  47090. else if (Registry.query(name, Registry.Scope.ATTRIBUTE) != null) {
  47091. var parent = Registry.create(this.statics.scope);
  47092. blot.wrap(parent);
  47093. parent.format(name, value);
  47094. }
  47095. };
  47096. ShadowBlot.prototype.insertAt = function (index, value, def) {
  47097. var blot = def == null ? Registry.create('text', value) : Registry.create(value, def);
  47098. var ref = this.split(index);
  47099. this.parent.insertBefore(blot, ref);
  47100. };
  47101. ShadowBlot.prototype.insertInto = function (parentBlot, refBlot) {
  47102. if (refBlot === void 0) { refBlot = null; }
  47103. if (this.parent != null) {
  47104. this.parent.children.remove(this);
  47105. }
  47106. var refDomNode = null;
  47107. parentBlot.children.insertBefore(this, refBlot);
  47108. if (refBlot != null) {
  47109. refDomNode = refBlot.domNode;
  47110. }
  47111. if (this.domNode.parentNode != parentBlot.domNode ||
  47112. this.domNode.nextSibling != refDomNode) {
  47113. parentBlot.domNode.insertBefore(this.domNode, refDomNode);
  47114. }
  47115. this.parent = parentBlot;
  47116. this.attach();
  47117. };
  47118. ShadowBlot.prototype.isolate = function (index, length) {
  47119. var target = this.split(index);
  47120. target.split(length);
  47121. return target;
  47122. };
  47123. ShadowBlot.prototype.length = function () {
  47124. return 1;
  47125. };
  47126. ShadowBlot.prototype.offset = function (root) {
  47127. if (root === void 0) { root = this.parent; }
  47128. if (this.parent == null || this == root)
  47129. return 0;
  47130. return this.parent.children.offset(this) + this.parent.offset(root);
  47131. };
  47132. ShadowBlot.prototype.optimize = function (context) {
  47133. // TODO clean up once we use WeakMap
  47134. // @ts-ignore
  47135. if (this.domNode[Registry.DATA_KEY] != null) {
  47136. // @ts-ignore
  47137. delete this.domNode[Registry.DATA_KEY].mutations;
  47138. }
  47139. };
  47140. ShadowBlot.prototype.remove = function () {
  47141. if (this.domNode.parentNode != null) {
  47142. this.domNode.parentNode.removeChild(this.domNode);
  47143. }
  47144. this.detach();
  47145. };
  47146. ShadowBlot.prototype.replace = function (target) {
  47147. if (target.parent == null)
  47148. return;
  47149. target.parent.insertBefore(this, target.next);
  47150. target.remove();
  47151. };
  47152. ShadowBlot.prototype.replaceWith = function (name, value) {
  47153. var replacement = typeof name === 'string' ? Registry.create(name, value) : name;
  47154. replacement.replace(this);
  47155. return replacement;
  47156. };
  47157. ShadowBlot.prototype.split = function (index, force) {
  47158. return index === 0 ? this : this.next;
  47159. };
  47160. ShadowBlot.prototype.update = function (mutations, context) {
  47161. // Nothing to do by default
  47162. };
  47163. ShadowBlot.prototype.wrap = function (name, value) {
  47164. var wrapper = typeof name === 'string' ? Registry.create(name, value) : name;
  47165. if (this.parent != null) {
  47166. this.parent.insertBefore(wrapper, this.next);
  47167. }
  47168. wrapper.appendChild(this);
  47169. return wrapper;
  47170. };
  47171. ShadowBlot.blotName = 'abstract';
  47172. return ShadowBlot;
  47173. }());
  47174. exports.default = ShadowBlot;
  47175. /***/ }),
  47176. /* 31 */
  47177. /***/ (function(module, exports, __nested_webpack_require_214530__) {
  47178. "use strict";
  47179. Object.defineProperty(exports, "__esModule", { value: true });
  47180. var attributor_1 = __nested_webpack_require_214530__(12);
  47181. var class_1 = __nested_webpack_require_214530__(32);
  47182. var style_1 = __nested_webpack_require_214530__(33);
  47183. var Registry = __nested_webpack_require_214530__(1);
  47184. var AttributorStore = /** @class */ (function () {
  47185. function AttributorStore(domNode) {
  47186. this.attributes = {};
  47187. this.domNode = domNode;
  47188. this.build();
  47189. }
  47190. AttributorStore.prototype.attribute = function (attribute, value) {
  47191. // verb
  47192. if (value) {
  47193. if (attribute.add(this.domNode, value)) {
  47194. if (attribute.value(this.domNode) != null) {
  47195. this.attributes[attribute.attrName] = attribute;
  47196. }
  47197. else {
  47198. delete this.attributes[attribute.attrName];
  47199. }
  47200. }
  47201. }
  47202. else {
  47203. attribute.remove(this.domNode);
  47204. delete this.attributes[attribute.attrName];
  47205. }
  47206. };
  47207. AttributorStore.prototype.build = function () {
  47208. var _this = this;
  47209. this.attributes = {};
  47210. var attributes = attributor_1.default.keys(this.domNode);
  47211. var classes = class_1.default.keys(this.domNode);
  47212. var styles = style_1.default.keys(this.domNode);
  47213. attributes
  47214. .concat(classes)
  47215. .concat(styles)
  47216. .forEach(function (name) {
  47217. var attr = Registry.query(name, Registry.Scope.ATTRIBUTE);
  47218. if (attr instanceof attributor_1.default) {
  47219. _this.attributes[attr.attrName] = attr;
  47220. }
  47221. });
  47222. };
  47223. AttributorStore.prototype.copy = function (target) {
  47224. var _this = this;
  47225. Object.keys(this.attributes).forEach(function (key) {
  47226. var value = _this.attributes[key].value(_this.domNode);
  47227. target.format(key, value);
  47228. });
  47229. };
  47230. AttributorStore.prototype.move = function (target) {
  47231. var _this = this;
  47232. this.copy(target);
  47233. Object.keys(this.attributes).forEach(function (key) {
  47234. _this.attributes[key].remove(_this.domNode);
  47235. });
  47236. this.attributes = {};
  47237. };
  47238. AttributorStore.prototype.values = function () {
  47239. var _this = this;
  47240. return Object.keys(this.attributes).reduce(function (attributes, name) {
  47241. attributes[name] = _this.attributes[name].value(_this.domNode);
  47242. return attributes;
  47243. }, {});
  47244. };
  47245. return AttributorStore;
  47246. }());
  47247. exports.default = AttributorStore;
  47248. /***/ }),
  47249. /* 32 */
  47250. /***/ (function(module, exports, __nested_webpack_require_217128__) {
  47251. "use strict";
  47252. var __extends = (this && this.__extends) || (function () {
  47253. var extendStatics = Object.setPrototypeOf ||
  47254. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  47255. function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
  47256. return function (d, b) {
  47257. extendStatics(d, b);
  47258. function __() { this.constructor = d; }
  47259. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  47260. };
  47261. })();
  47262. Object.defineProperty(exports, "__esModule", { value: true });
  47263. var attributor_1 = __nested_webpack_require_217128__(12);
  47264. function match(node, prefix) {
  47265. var className = node.getAttribute('class') || '';
  47266. return className.split(/\s+/).filter(function (name) {
  47267. return name.indexOf(prefix + "-") === 0;
  47268. });
  47269. }
  47270. var ClassAttributor = /** @class */ (function (_super) {
  47271. __extends(ClassAttributor, _super);
  47272. function ClassAttributor() {
  47273. return _super !== null && _super.apply(this, arguments) || this;
  47274. }
  47275. ClassAttributor.keys = function (node) {
  47276. return (node.getAttribute('class') || '').split(/\s+/).map(function (name) {
  47277. return name
  47278. .split('-')
  47279. .slice(0, -1)
  47280. .join('-');
  47281. });
  47282. };
  47283. ClassAttributor.prototype.add = function (node, value) {
  47284. if (!this.canAdd(node, value))
  47285. return false;
  47286. this.remove(node);
  47287. node.classList.add(this.keyName + "-" + value);
  47288. return true;
  47289. };
  47290. ClassAttributor.prototype.remove = function (node) {
  47291. var matches = match(node, this.keyName);
  47292. matches.forEach(function (name) {
  47293. node.classList.remove(name);
  47294. });
  47295. if (node.classList.length === 0) {
  47296. node.removeAttribute('class');
  47297. }
  47298. };
  47299. ClassAttributor.prototype.value = function (node) {
  47300. var result = match(node, this.keyName)[0] || '';
  47301. var value = result.slice(this.keyName.length + 1); // +1 for hyphen
  47302. return this.canAdd(node, value) ? value : '';
  47303. };
  47304. return ClassAttributor;
  47305. }(attributor_1.default));
  47306. exports.default = ClassAttributor;
  47307. /***/ }),
  47308. /* 33 */
  47309. /***/ (function(module, exports, __nested_webpack_require_219372__) {
  47310. "use strict";
  47311. var __extends = (this && this.__extends) || (function () {
  47312. var extendStatics = Object.setPrototypeOf ||
  47313. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  47314. function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
  47315. return function (d, b) {
  47316. extendStatics(d, b);
  47317. function __() { this.constructor = d; }
  47318. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  47319. };
  47320. })();
  47321. Object.defineProperty(exports, "__esModule", { value: true });
  47322. var attributor_1 = __nested_webpack_require_219372__(12);
  47323. function camelize(name) {
  47324. var parts = name.split('-');
  47325. var rest = parts
  47326. .slice(1)
  47327. .map(function (part) {
  47328. return part[0].toUpperCase() + part.slice(1);
  47329. })
  47330. .join('');
  47331. return parts[0] + rest;
  47332. }
  47333. var StyleAttributor = /** @class */ (function (_super) {
  47334. __extends(StyleAttributor, _super);
  47335. function StyleAttributor() {
  47336. return _super !== null && _super.apply(this, arguments) || this;
  47337. }
  47338. StyleAttributor.keys = function (node) {
  47339. return (node.getAttribute('style') || '').split(';').map(function (value) {
  47340. var arr = value.split(':');
  47341. return arr[0].trim();
  47342. });
  47343. };
  47344. StyleAttributor.prototype.add = function (node, value) {
  47345. if (!this.canAdd(node, value))
  47346. return false;
  47347. // @ts-ignore
  47348. node.style[camelize(this.keyName)] = value;
  47349. return true;
  47350. };
  47351. StyleAttributor.prototype.remove = function (node) {
  47352. // @ts-ignore
  47353. node.style[camelize(this.keyName)] = '';
  47354. if (!node.getAttribute('style')) {
  47355. node.removeAttribute('style');
  47356. }
  47357. };
  47358. StyleAttributor.prototype.value = function (node) {
  47359. // @ts-ignore
  47360. var value = node.style[camelize(this.keyName)];
  47361. return this.canAdd(node, value) ? value : '';
  47362. };
  47363. return StyleAttributor;
  47364. }(attributor_1.default));
  47365. exports.default = StyleAttributor;
  47366. /***/ }),
  47367. /* 34 */
  47368. /***/ (function(module, exports, __webpack_require__) {
  47369. "use strict";
  47370. Object.defineProperty(exports, "__esModule", {
  47371. value: true
  47372. });
  47373. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  47374. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  47375. var Theme = function () {
  47376. function Theme(quill, options) {
  47377. _classCallCheck(this, Theme);
  47378. this.quill = quill;
  47379. this.options = options;
  47380. this.modules = {};
  47381. }
  47382. _createClass(Theme, [{
  47383. key: 'init',
  47384. value: function init() {
  47385. var _this = this;
  47386. Object.keys(this.options.modules).forEach(function (name) {
  47387. if (_this.modules[name] == null) {
  47388. _this.addModule(name);
  47389. }
  47390. });
  47391. }
  47392. }, {
  47393. key: 'addModule',
  47394. value: function addModule(name) {
  47395. var moduleClass = this.quill.constructor.import('modules/' + name);
  47396. this.modules[name] = new moduleClass(this.quill, this.options.modules[name] || {});
  47397. return this.modules[name];
  47398. }
  47399. }]);
  47400. return Theme;
  47401. }();
  47402. Theme.DEFAULTS = {
  47403. modules: {}
  47404. };
  47405. Theme.themes = {
  47406. 'default': Theme
  47407. };
  47408. exports.default = Theme;
  47409. /***/ }),
  47410. /* 35 */
  47411. /***/ (function(module, exports, __nested_webpack_require_223199__) {
  47412. "use strict";
  47413. Object.defineProperty(exports, "__esModule", {
  47414. value: true
  47415. });
  47416. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  47417. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  47418. var _parchment = __nested_webpack_require_223199__(0);
  47419. var _parchment2 = _interopRequireDefault(_parchment);
  47420. var _text = __nested_webpack_require_223199__(7);
  47421. var _text2 = _interopRequireDefault(_text);
  47422. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  47423. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  47424. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  47425. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  47426. var GUARD_TEXT = '\uFEFF';
  47427. var Embed = function (_Parchment$Embed) {
  47428. _inherits(Embed, _Parchment$Embed);
  47429. function Embed(node) {
  47430. _classCallCheck(this, Embed);
  47431. var _this = _possibleConstructorReturn(this, (Embed.__proto__ || Object.getPrototypeOf(Embed)).call(this, node));
  47432. _this.contentNode = document.createElement('span');
  47433. _this.contentNode.setAttribute('contenteditable', false);
  47434. [].slice.call(_this.domNode.childNodes).forEach(function (childNode) {
  47435. _this.contentNode.appendChild(childNode);
  47436. });
  47437. _this.leftGuard = document.createTextNode(GUARD_TEXT);
  47438. _this.rightGuard = document.createTextNode(GUARD_TEXT);
  47439. _this.domNode.appendChild(_this.leftGuard);
  47440. _this.domNode.appendChild(_this.contentNode);
  47441. _this.domNode.appendChild(_this.rightGuard);
  47442. return _this;
  47443. }
  47444. _createClass(Embed, [{
  47445. key: 'index',
  47446. value: function index(node, offset) {
  47447. if (node === this.leftGuard) return 0;
  47448. if (node === this.rightGuard) return 1;
  47449. return _get(Embed.prototype.__proto__ || Object.getPrototypeOf(Embed.prototype), 'index', this).call(this, node, offset);
  47450. }
  47451. }, {
  47452. key: 'restore',
  47453. value: function restore(node) {
  47454. var range = void 0,
  47455. textNode = void 0;
  47456. var text = node.data.split(GUARD_TEXT).join('');
  47457. if (node === this.leftGuard) {
  47458. if (this.prev instanceof _text2.default) {
  47459. var prevLength = this.prev.length();
  47460. this.prev.insertAt(prevLength, text);
  47461. range = {
  47462. startNode: this.prev.domNode,
  47463. startOffset: prevLength + text.length
  47464. };
  47465. } else {
  47466. textNode = document.createTextNode(text);
  47467. this.parent.insertBefore(_parchment2.default.create(textNode), this);
  47468. range = {
  47469. startNode: textNode,
  47470. startOffset: text.length
  47471. };
  47472. }
  47473. } else if (node === this.rightGuard) {
  47474. if (this.next instanceof _text2.default) {
  47475. this.next.insertAt(0, text);
  47476. range = {
  47477. startNode: this.next.domNode,
  47478. startOffset: text.length
  47479. };
  47480. } else {
  47481. textNode = document.createTextNode(text);
  47482. this.parent.insertBefore(_parchment2.default.create(textNode), this.next);
  47483. range = {
  47484. startNode: textNode,
  47485. startOffset: text.length
  47486. };
  47487. }
  47488. }
  47489. node.data = GUARD_TEXT;
  47490. return range;
  47491. }
  47492. }, {
  47493. key: 'update',
  47494. value: function update(mutations, context) {
  47495. var _this2 = this;
  47496. mutations.forEach(function (mutation) {
  47497. if (mutation.type === 'characterData' && (mutation.target === _this2.leftGuard || mutation.target === _this2.rightGuard)) {
  47498. var range = _this2.restore(mutation.target);
  47499. if (range) context.range = range;
  47500. }
  47501. });
  47502. }
  47503. }]);
  47504. return Embed;
  47505. }(_parchment2.default.Embed);
  47506. exports.default = Embed;
  47507. /***/ }),
  47508. /* 36 */
  47509. /***/ (function(module, exports, __nested_webpack_require_228527__) {
  47510. "use strict";
  47511. Object.defineProperty(exports, "__esModule", {
  47512. value: true
  47513. });
  47514. exports.AlignStyle = exports.AlignClass = exports.AlignAttribute = undefined;
  47515. var _parchment = __nested_webpack_require_228527__(0);
  47516. var _parchment2 = _interopRequireDefault(_parchment);
  47517. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  47518. var config = {
  47519. scope: _parchment2.default.Scope.BLOCK,
  47520. whitelist: ['right', 'center', 'justify']
  47521. };
  47522. var AlignAttribute = new _parchment2.default.Attributor.Attribute('align', 'align', config);
  47523. var AlignClass = new _parchment2.default.Attributor.Class('align', 'ql-align', config);
  47524. var AlignStyle = new _parchment2.default.Attributor.Style('align', 'text-align', config);
  47525. exports.AlignAttribute = AlignAttribute;
  47526. exports.AlignClass = AlignClass;
  47527. exports.AlignStyle = AlignStyle;
  47528. /***/ }),
  47529. /* 37 */
  47530. /***/ (function(module, exports, __nested_webpack_require_229442__) {
  47531. "use strict";
  47532. Object.defineProperty(exports, "__esModule", {
  47533. value: true
  47534. });
  47535. exports.BackgroundStyle = exports.BackgroundClass = undefined;
  47536. var _parchment = __nested_webpack_require_229442__(0);
  47537. var _parchment2 = _interopRequireDefault(_parchment);
  47538. var _color = __nested_webpack_require_229442__(26);
  47539. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  47540. var BackgroundClass = new _parchment2.default.Attributor.Class('background', 'ql-bg', {
  47541. scope: _parchment2.default.Scope.INLINE
  47542. });
  47543. var BackgroundStyle = new _color.ColorAttributor('background', 'background-color', {
  47544. scope: _parchment2.default.Scope.INLINE
  47545. });
  47546. exports.BackgroundClass = BackgroundClass;
  47547. exports.BackgroundStyle = BackgroundStyle;
  47548. /***/ }),
  47549. /* 38 */
  47550. /***/ (function(module, exports, __nested_webpack_require_230249__) {
  47551. "use strict";
  47552. Object.defineProperty(exports, "__esModule", {
  47553. value: true
  47554. });
  47555. exports.DirectionStyle = exports.DirectionClass = exports.DirectionAttribute = undefined;
  47556. var _parchment = __nested_webpack_require_230249__(0);
  47557. var _parchment2 = _interopRequireDefault(_parchment);
  47558. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  47559. var config = {
  47560. scope: _parchment2.default.Scope.BLOCK,
  47561. whitelist: ['rtl']
  47562. };
  47563. var DirectionAttribute = new _parchment2.default.Attributor.Attribute('direction', 'dir', config);
  47564. var DirectionClass = new _parchment2.default.Attributor.Class('direction', 'ql-direction', config);
  47565. var DirectionStyle = new _parchment2.default.Attributor.Style('direction', 'direction', config);
  47566. exports.DirectionAttribute = DirectionAttribute;
  47567. exports.DirectionClass = DirectionClass;
  47568. exports.DirectionStyle = DirectionStyle;
  47569. /***/ }),
  47570. /* 39 */
  47571. /***/ (function(module, exports, __nested_webpack_require_231202__) {
  47572. "use strict";
  47573. Object.defineProperty(exports, "__esModule", {
  47574. value: true
  47575. });
  47576. exports.FontClass = exports.FontStyle = undefined;
  47577. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  47578. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  47579. var _parchment = __nested_webpack_require_231202__(0);
  47580. var _parchment2 = _interopRequireDefault(_parchment);
  47581. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  47582. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  47583. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  47584. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  47585. var config = {
  47586. scope: _parchment2.default.Scope.INLINE,
  47587. whitelist: ['serif', 'monospace']
  47588. };
  47589. var FontClass = new _parchment2.default.Attributor.Class('font', 'ql-font', config);
  47590. var FontStyleAttributor = function (_Parchment$Attributor) {
  47591. _inherits(FontStyleAttributor, _Parchment$Attributor);
  47592. function FontStyleAttributor() {
  47593. _classCallCheck(this, FontStyleAttributor);
  47594. return _possibleConstructorReturn(this, (FontStyleAttributor.__proto__ || Object.getPrototypeOf(FontStyleAttributor)).apply(this, arguments));
  47595. }
  47596. _createClass(FontStyleAttributor, [{
  47597. key: 'value',
  47598. value: function value(node) {
  47599. return _get(FontStyleAttributor.prototype.__proto__ || Object.getPrototypeOf(FontStyleAttributor.prototype), 'value', this).call(this, node).replace(/["']/g, '');
  47600. }
  47601. }]);
  47602. return FontStyleAttributor;
  47603. }(_parchment2.default.Attributor.Style);
  47604. var FontStyle = new FontStyleAttributor('font', 'font-family', config);
  47605. exports.FontStyle = FontStyle;
  47606. exports.FontClass = FontClass;
  47607. /***/ }),
  47608. /* 40 */
  47609. /***/ (function(module, exports, __nested_webpack_require_234578__) {
  47610. "use strict";
  47611. Object.defineProperty(exports, "__esModule", {
  47612. value: true
  47613. });
  47614. exports.SizeStyle = exports.SizeClass = undefined;
  47615. var _parchment = __nested_webpack_require_234578__(0);
  47616. var _parchment2 = _interopRequireDefault(_parchment);
  47617. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  47618. var SizeClass = new _parchment2.default.Attributor.Class('size', 'ql-size', {
  47619. scope: _parchment2.default.Scope.INLINE,
  47620. whitelist: ['small', 'large', 'huge']
  47621. });
  47622. var SizeStyle = new _parchment2.default.Attributor.Style('size', 'font-size', {
  47623. scope: _parchment2.default.Scope.INLINE,
  47624. whitelist: ['10px', '18px', '32px']
  47625. });
  47626. exports.SizeClass = SizeClass;
  47627. exports.SizeStyle = SizeStyle;
  47628. /***/ }),
  47629. /* 41 */
  47630. /***/ (function(module, exports, __nested_webpack_require_235375__) {
  47631. "use strict";
  47632. module.exports = {
  47633. 'align': {
  47634. '': __nested_webpack_require_235375__(76),
  47635. 'center': __nested_webpack_require_235375__(77),
  47636. 'right': __nested_webpack_require_235375__(78),
  47637. 'justify': __nested_webpack_require_235375__(79)
  47638. },
  47639. 'background': __nested_webpack_require_235375__(80),
  47640. 'blockquote': __nested_webpack_require_235375__(81),
  47641. 'bold': __nested_webpack_require_235375__(82),
  47642. 'clean': __nested_webpack_require_235375__(83),
  47643. 'code': __nested_webpack_require_235375__(58),
  47644. 'code-block': __nested_webpack_require_235375__(58),
  47645. 'color': __nested_webpack_require_235375__(84),
  47646. 'direction': {
  47647. '': __nested_webpack_require_235375__(85),
  47648. 'rtl': __nested_webpack_require_235375__(86)
  47649. },
  47650. 'float': {
  47651. 'center': __nested_webpack_require_235375__(87),
  47652. 'full': __nested_webpack_require_235375__(88),
  47653. 'left': __nested_webpack_require_235375__(89),
  47654. 'right': __nested_webpack_require_235375__(90)
  47655. },
  47656. 'formula': __nested_webpack_require_235375__(91),
  47657. 'header': {
  47658. '1': __nested_webpack_require_235375__(92),
  47659. '2': __nested_webpack_require_235375__(93)
  47660. },
  47661. 'italic': __nested_webpack_require_235375__(94),
  47662. 'image': __nested_webpack_require_235375__(95),
  47663. 'indent': {
  47664. '+1': __nested_webpack_require_235375__(96),
  47665. '-1': __nested_webpack_require_235375__(97)
  47666. },
  47667. 'link': __nested_webpack_require_235375__(98),
  47668. 'list': {
  47669. 'ordered': __nested_webpack_require_235375__(99),
  47670. 'bullet': __nested_webpack_require_235375__(100),
  47671. 'check': __nested_webpack_require_235375__(101)
  47672. },
  47673. 'script': {
  47674. 'sub': __nested_webpack_require_235375__(102),
  47675. 'super': __nested_webpack_require_235375__(103)
  47676. },
  47677. 'strike': __nested_webpack_require_235375__(104),
  47678. 'underline': __nested_webpack_require_235375__(105),
  47679. 'video': __nested_webpack_require_235375__(106)
  47680. };
  47681. /***/ }),
  47682. /* 42 */
  47683. /***/ (function(module, exports, __nested_webpack_require_236844__) {
  47684. "use strict";
  47685. Object.defineProperty(exports, "__esModule", {
  47686. value: true
  47687. });
  47688. exports.getLastChangeIndex = exports.default = undefined;
  47689. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  47690. var _parchment = __nested_webpack_require_236844__(0);
  47691. var _parchment2 = _interopRequireDefault(_parchment);
  47692. var _quill = __nested_webpack_require_236844__(5);
  47693. var _quill2 = _interopRequireDefault(_quill);
  47694. var _module = __nested_webpack_require_236844__(9);
  47695. var _module2 = _interopRequireDefault(_module);
  47696. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  47697. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  47698. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  47699. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  47700. var History = function (_Module) {
  47701. _inherits(History, _Module);
  47702. function History(quill, options) {
  47703. _classCallCheck(this, History);
  47704. var _this = _possibleConstructorReturn(this, (History.__proto__ || Object.getPrototypeOf(History)).call(this, quill, options));
  47705. _this.lastRecorded = 0;
  47706. _this.ignoreChange = false;
  47707. _this.clear();
  47708. _this.quill.on(_quill2.default.events.EDITOR_CHANGE, function (eventName, delta, oldDelta, source) {
  47709. if (eventName !== _quill2.default.events.TEXT_CHANGE || _this.ignoreChange) return;
  47710. if (!_this.options.userOnly || source === _quill2.default.sources.USER) {
  47711. _this.record(delta, oldDelta);
  47712. } else {
  47713. _this.transform(delta);
  47714. }
  47715. });
  47716. _this.quill.keyboard.addBinding({ key: 'Z', shortKey: true }, _this.undo.bind(_this));
  47717. _this.quill.keyboard.addBinding({ key: 'Z', shortKey: true, shiftKey: true }, _this.redo.bind(_this));
  47718. if (/Win/i.test(navigator.platform)) {
  47719. _this.quill.keyboard.addBinding({ key: 'Y', shortKey: true }, _this.redo.bind(_this));
  47720. }
  47721. return _this;
  47722. }
  47723. _createClass(History, [{
  47724. key: 'change',
  47725. value: function change(source, dest) {
  47726. if (this.stack[source].length === 0) return;
  47727. var delta = this.stack[source].pop();
  47728. this.stack[dest].push(delta);
  47729. this.lastRecorded = 0;
  47730. this.ignoreChange = true;
  47731. this.quill.updateContents(delta[source], _quill2.default.sources.USER);
  47732. this.ignoreChange = false;
  47733. var index = getLastChangeIndex(delta[source]);
  47734. this.quill.setSelection(index);
  47735. }
  47736. }, {
  47737. key: 'clear',
  47738. value: function clear() {
  47739. this.stack = { undo: [], redo: [] };
  47740. }
  47741. }, {
  47742. key: 'cutoff',
  47743. value: function cutoff() {
  47744. this.lastRecorded = 0;
  47745. }
  47746. }, {
  47747. key: 'record',
  47748. value: function record(changeDelta, oldDelta) {
  47749. if (changeDelta.ops.length === 0) return;
  47750. this.stack.redo = [];
  47751. var undoDelta = this.quill.getContents().diff(oldDelta);
  47752. var timestamp = Date.now();
  47753. if (this.lastRecorded + this.options.delay > timestamp && this.stack.undo.length > 0) {
  47754. var delta = this.stack.undo.pop();
  47755. undoDelta = undoDelta.compose(delta.undo);
  47756. changeDelta = delta.redo.compose(changeDelta);
  47757. } else {
  47758. this.lastRecorded = timestamp;
  47759. }
  47760. this.stack.undo.push({
  47761. redo: changeDelta,
  47762. undo: undoDelta
  47763. });
  47764. if (this.stack.undo.length > this.options.maxStack) {
  47765. this.stack.undo.shift();
  47766. }
  47767. }
  47768. }, {
  47769. key: 'redo',
  47770. value: function redo() {
  47771. this.change('redo', 'undo');
  47772. }
  47773. }, {
  47774. key: 'transform',
  47775. value: function transform(delta) {
  47776. this.stack.undo.forEach(function (change) {
  47777. change.undo = delta.transform(change.undo, true);
  47778. change.redo = delta.transform(change.redo, true);
  47779. });
  47780. this.stack.redo.forEach(function (change) {
  47781. change.undo = delta.transform(change.undo, true);
  47782. change.redo = delta.transform(change.redo, true);
  47783. });
  47784. }
  47785. }, {
  47786. key: 'undo',
  47787. value: function undo() {
  47788. this.change('undo', 'redo');
  47789. }
  47790. }]);
  47791. return History;
  47792. }(_module2.default);
  47793. History.DEFAULTS = {
  47794. delay: 1000,
  47795. maxStack: 100,
  47796. userOnly: false
  47797. };
  47798. function endsWithNewlineChange(delta) {
  47799. var lastOp = delta.ops[delta.ops.length - 1];
  47800. if (lastOp == null) return false;
  47801. if (lastOp.insert != null) {
  47802. return typeof lastOp.insert === 'string' && lastOp.insert.endsWith('\n');
  47803. }
  47804. if (lastOp.attributes != null) {
  47805. return Object.keys(lastOp.attributes).some(function (attr) {
  47806. return _parchment2.default.query(attr, _parchment2.default.Scope.BLOCK) != null;
  47807. });
  47808. }
  47809. return false;
  47810. }
  47811. function getLastChangeIndex(delta) {
  47812. var deleteLength = delta.reduce(function (length, op) {
  47813. length += op.delete || 0;
  47814. return length;
  47815. }, 0);
  47816. var changeIndex = delta.length() - deleteLength;
  47817. if (endsWithNewlineChange(delta)) {
  47818. changeIndex -= 1;
  47819. }
  47820. return changeIndex;
  47821. }
  47822. exports.default = History;
  47823. exports.getLastChangeIndex = getLastChangeIndex;
  47824. /***/ }),
  47825. /* 43 */
  47826. /***/ (function(module, exports, __nested_webpack_require_242979__) {
  47827. "use strict";
  47828. Object.defineProperty(exports, "__esModule", {
  47829. value: true
  47830. });
  47831. exports.default = exports.BaseTooltip = undefined;
  47832. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  47833. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  47834. var _extend = __nested_webpack_require_242979__(3);
  47835. var _extend2 = _interopRequireDefault(_extend);
  47836. var _quillDelta = __nested_webpack_require_242979__(2);
  47837. var _quillDelta2 = _interopRequireDefault(_quillDelta);
  47838. var _emitter = __nested_webpack_require_242979__(8);
  47839. var _emitter2 = _interopRequireDefault(_emitter);
  47840. var _keyboard = __nested_webpack_require_242979__(23);
  47841. var _keyboard2 = _interopRequireDefault(_keyboard);
  47842. var _theme = __nested_webpack_require_242979__(34);
  47843. var _theme2 = _interopRequireDefault(_theme);
  47844. var _colorPicker = __nested_webpack_require_242979__(59);
  47845. var _colorPicker2 = _interopRequireDefault(_colorPicker);
  47846. var _iconPicker = __nested_webpack_require_242979__(60);
  47847. var _iconPicker2 = _interopRequireDefault(_iconPicker);
  47848. var _picker = __nested_webpack_require_242979__(28);
  47849. var _picker2 = _interopRequireDefault(_picker);
  47850. var _tooltip = __nested_webpack_require_242979__(61);
  47851. var _tooltip2 = _interopRequireDefault(_tooltip);
  47852. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  47853. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  47854. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  47855. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  47856. var ALIGNS = [false, 'center', 'right', 'justify'];
  47857. var COLORS = ["#000000", "#e60000", "#ff9900", "#ffff00", "#008a00", "#0066cc", "#9933ff", "#ffffff", "#facccc", "#ffebcc", "#ffffcc", "#cce8cc", "#cce0f5", "#ebd6ff", "#bbbbbb", "#f06666", "#ffc266", "#ffff66", "#66b966", "#66a3e0", "#c285ff", "#888888", "#a10000", "#b26b00", "#b2b200", "#006100", "#0047b2", "#6b24b2", "#444444", "#5c0000", "#663d00", "#666600", "#003700", "#002966", "#3d1466"];
  47858. var FONTS = [false, 'serif', 'monospace'];
  47859. var HEADERS = ['1', '2', '3', false];
  47860. var SIZES = ['small', false, 'large', 'huge'];
  47861. var BaseTheme = function (_Theme) {
  47862. _inherits(BaseTheme, _Theme);
  47863. function BaseTheme(quill, options) {
  47864. _classCallCheck(this, BaseTheme);
  47865. var _this = _possibleConstructorReturn(this, (BaseTheme.__proto__ || Object.getPrototypeOf(BaseTheme)).call(this, quill, options));
  47866. var listener = function listener(e) {
  47867. if (!document.body.contains(quill.root)) {
  47868. return document.body.removeEventListener('click', listener);
  47869. }
  47870. if (_this.tooltip != null && !_this.tooltip.root.contains(e.target) && document.activeElement !== _this.tooltip.textbox && !_this.quill.hasFocus()) {
  47871. _this.tooltip.hide();
  47872. }
  47873. if (_this.pickers != null) {
  47874. _this.pickers.forEach(function (picker) {
  47875. if (!picker.container.contains(e.target)) {
  47876. picker.close();
  47877. }
  47878. });
  47879. }
  47880. };
  47881. quill.emitter.listenDOM('click', document.body, listener);
  47882. return _this;
  47883. }
  47884. _createClass(BaseTheme, [{
  47885. key: 'addModule',
  47886. value: function addModule(name) {
  47887. var module = _get(BaseTheme.prototype.__proto__ || Object.getPrototypeOf(BaseTheme.prototype), 'addModule', this).call(this, name);
  47888. if (name === 'toolbar') {
  47889. this.extendToolbar(module);
  47890. }
  47891. return module;
  47892. }
  47893. }, {
  47894. key: 'buildButtons',
  47895. value: function buildButtons(buttons, icons) {
  47896. buttons.forEach(function (button) {
  47897. var className = button.getAttribute('class') || '';
  47898. className.split(/\s+/).forEach(function (name) {
  47899. if (!name.startsWith('ql-')) return;
  47900. name = name.slice('ql-'.length);
  47901. if (icons[name] == null) return;
  47902. if (name === 'direction') {
  47903. button.innerHTML = icons[name][''] + icons[name]['rtl'];
  47904. } else if (typeof icons[name] === 'string') {
  47905. button.innerHTML = icons[name];
  47906. } else {
  47907. var value = button.value || '';
  47908. if (value != null && icons[name][value]) {
  47909. button.innerHTML = icons[name][value];
  47910. }
  47911. }
  47912. });
  47913. });
  47914. }
  47915. }, {
  47916. key: 'buildPickers',
  47917. value: function buildPickers(selects, icons) {
  47918. var _this2 = this;
  47919. this.pickers = selects.map(function (select) {
  47920. if (select.classList.contains('ql-align')) {
  47921. if (select.querySelector('option') == null) {
  47922. fillSelect(select, ALIGNS);
  47923. }
  47924. return new _iconPicker2.default(select, icons.align);
  47925. } else if (select.classList.contains('ql-background') || select.classList.contains('ql-color')) {
  47926. var format = select.classList.contains('ql-background') ? 'background' : 'color';
  47927. if (select.querySelector('option') == null) {
  47928. fillSelect(select, COLORS, format === 'background' ? '#ffffff' : '#000000');
  47929. }
  47930. return new _colorPicker2.default(select, icons[format]);
  47931. } else {
  47932. if (select.querySelector('option') == null) {
  47933. if (select.classList.contains('ql-font')) {
  47934. fillSelect(select, FONTS);
  47935. } else if (select.classList.contains('ql-header')) {
  47936. fillSelect(select, HEADERS);
  47937. } else if (select.classList.contains('ql-size')) {
  47938. fillSelect(select, SIZES);
  47939. }
  47940. }
  47941. return new _picker2.default(select);
  47942. }
  47943. });
  47944. var update = function update() {
  47945. _this2.pickers.forEach(function (picker) {
  47946. picker.update();
  47947. });
  47948. };
  47949. this.quill.on(_emitter2.default.events.EDITOR_CHANGE, update);
  47950. }
  47951. }]);
  47952. return BaseTheme;
  47953. }(_theme2.default);
  47954. BaseTheme.DEFAULTS = (0, _extend2.default)(true, {}, _theme2.default.DEFAULTS, {
  47955. modules: {
  47956. toolbar: {
  47957. handlers: {
  47958. formula: function formula() {
  47959. this.quill.theme.tooltip.edit('formula');
  47960. },
  47961. image: function image() {
  47962. var _this3 = this;
  47963. var fileInput = this.container.querySelector('input.ql-image[type=file]');
  47964. if (fileInput == null) {
  47965. fileInput = document.createElement('input');
  47966. fileInput.setAttribute('type', 'file');
  47967. fileInput.setAttribute('accept', 'image/png, image/gif, image/jpeg, image/bmp, image/x-icon');
  47968. fileInput.classList.add('ql-image');
  47969. fileInput.addEventListener('change', function () {
  47970. if (fileInput.files != null && fileInput.files[0] != null) {
  47971. var reader = new FileReader();
  47972. reader.onload = function (e) {
  47973. var range = _this3.quill.getSelection(true);
  47974. _this3.quill.updateContents(new _quillDelta2.default().retain(range.index).delete(range.length).insert({ image: e.target.result }), _emitter2.default.sources.USER);
  47975. _this3.quill.setSelection(range.index + 1, _emitter2.default.sources.SILENT);
  47976. fileInput.value = "";
  47977. };
  47978. reader.readAsDataURL(fileInput.files[0]);
  47979. }
  47980. });
  47981. this.container.appendChild(fileInput);
  47982. }
  47983. fileInput.click();
  47984. },
  47985. video: function video() {
  47986. this.quill.theme.tooltip.edit('video');
  47987. }
  47988. }
  47989. }
  47990. }
  47991. });
  47992. var BaseTooltip = function (_Tooltip) {
  47993. _inherits(BaseTooltip, _Tooltip);
  47994. function BaseTooltip(quill, boundsContainer) {
  47995. _classCallCheck(this, BaseTooltip);
  47996. var _this4 = _possibleConstructorReturn(this, (BaseTooltip.__proto__ || Object.getPrototypeOf(BaseTooltip)).call(this, quill, boundsContainer));
  47997. _this4.textbox = _this4.root.querySelector('input[type="text"]');
  47998. _this4.listen();
  47999. return _this4;
  48000. }
  48001. _createClass(BaseTooltip, [{
  48002. key: 'listen',
  48003. value: function listen() {
  48004. var _this5 = this;
  48005. this.textbox.addEventListener('keydown', function (event) {
  48006. if (_keyboard2.default.match(event, 'enter')) {
  48007. _this5.save();
  48008. event.preventDefault();
  48009. } else if (_keyboard2.default.match(event, 'escape')) {
  48010. _this5.cancel();
  48011. event.preventDefault();
  48012. }
  48013. });
  48014. }
  48015. }, {
  48016. key: 'cancel',
  48017. value: function cancel() {
  48018. this.hide();
  48019. }
  48020. }, {
  48021. key: 'edit',
  48022. value: function edit() {
  48023. var mode = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'link';
  48024. var preview = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
  48025. this.root.classList.remove('ql-hidden');
  48026. this.root.classList.add('ql-editing');
  48027. if (preview != null) {
  48028. this.textbox.value = preview;
  48029. } else if (mode !== this.root.getAttribute('data-mode')) {
  48030. this.textbox.value = '';
  48031. }
  48032. this.position(this.quill.getBounds(this.quill.selection.savedRange));
  48033. this.textbox.select();
  48034. this.textbox.setAttribute('placeholder', this.textbox.getAttribute('data-' + mode) || '');
  48035. this.root.setAttribute('data-mode', mode);
  48036. }
  48037. }, {
  48038. key: 'restoreFocus',
  48039. value: function restoreFocus() {
  48040. var scrollTop = this.quill.scrollingContainer.scrollTop;
  48041. this.quill.focus();
  48042. this.quill.scrollingContainer.scrollTop = scrollTop;
  48043. }
  48044. }, {
  48045. key: 'save',
  48046. value: function save() {
  48047. var value = this.textbox.value;
  48048. switch (this.root.getAttribute('data-mode')) {
  48049. case 'link':
  48050. {
  48051. var scrollTop = this.quill.root.scrollTop;
  48052. if (this.linkRange) {
  48053. this.quill.formatText(this.linkRange, 'link', value, _emitter2.default.sources.USER);
  48054. delete this.linkRange;
  48055. } else {
  48056. this.restoreFocus();
  48057. this.quill.format('link', value, _emitter2.default.sources.USER);
  48058. }
  48059. this.quill.root.scrollTop = scrollTop;
  48060. break;
  48061. }
  48062. case 'video':
  48063. {
  48064. value = extractVideoUrl(value);
  48065. } // eslint-disable-next-line no-fallthrough
  48066. case 'formula':
  48067. {
  48068. if (!value) break;
  48069. var range = this.quill.getSelection(true);
  48070. if (range != null) {
  48071. var index = range.index + range.length;
  48072. this.quill.insertEmbed(index, this.root.getAttribute('data-mode'), value, _emitter2.default.sources.USER);
  48073. if (this.root.getAttribute('data-mode') === 'formula') {
  48074. this.quill.insertText(index + 1, ' ', _emitter2.default.sources.USER);
  48075. }
  48076. this.quill.setSelection(index + 2, _emitter2.default.sources.USER);
  48077. }
  48078. break;
  48079. }
  48080. default:
  48081. }
  48082. this.textbox.value = '';
  48083. this.hide();
  48084. }
  48085. }]);
  48086. return BaseTooltip;
  48087. }(_tooltip2.default);
  48088. function extractVideoUrl(url) {
  48089. var match = url.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/) || url.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);
  48090. if (match) {
  48091. return (match[1] || 'https') + '://www.youtube.com/embed/' + match[2] + '?showinfo=0';
  48092. }
  48093. if (match = url.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/)) {
  48094. // eslint-disable-line no-cond-assign
  48095. return (match[1] || 'https') + '://player.vimeo.com/video/' + match[2] + '/';
  48096. }
  48097. return url;
  48098. }
  48099. function fillSelect(select, values) {
  48100. var defaultValue = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
  48101. values.forEach(function (value) {
  48102. var option = document.createElement('option');
  48103. if (value === defaultValue) {
  48104. option.setAttribute('selected', 'selected');
  48105. } else {
  48106. option.setAttribute('value', value);
  48107. }
  48108. select.appendChild(option);
  48109. });
  48110. }
  48111. exports.BaseTooltip = BaseTooltip;
  48112. exports.default = BaseTheme;
  48113. /***/ }),
  48114. /* 44 */
  48115. /***/ (function(module, exports, __webpack_require__) {
  48116. "use strict";
  48117. Object.defineProperty(exports, "__esModule", { value: true });
  48118. var LinkedList = /** @class */ (function () {
  48119. function LinkedList() {
  48120. this.head = this.tail = null;
  48121. this.length = 0;
  48122. }
  48123. LinkedList.prototype.append = function () {
  48124. var nodes = [];
  48125. for (var _i = 0; _i < arguments.length; _i++) {
  48126. nodes[_i] = arguments[_i];
  48127. }
  48128. this.insertBefore(nodes[0], null);
  48129. if (nodes.length > 1) {
  48130. this.append.apply(this, nodes.slice(1));
  48131. }
  48132. };
  48133. LinkedList.prototype.contains = function (node) {
  48134. var cur, next = this.iterator();
  48135. while ((cur = next())) {
  48136. if (cur === node)
  48137. return true;
  48138. }
  48139. return false;
  48140. };
  48141. LinkedList.prototype.insertBefore = function (node, refNode) {
  48142. if (!node)
  48143. return;
  48144. node.next = refNode;
  48145. if (refNode != null) {
  48146. node.prev = refNode.prev;
  48147. if (refNode.prev != null) {
  48148. refNode.prev.next = node;
  48149. }
  48150. refNode.prev = node;
  48151. if (refNode === this.head) {
  48152. this.head = node;
  48153. }
  48154. }
  48155. else if (this.tail != null) {
  48156. this.tail.next = node;
  48157. node.prev = this.tail;
  48158. this.tail = node;
  48159. }
  48160. else {
  48161. node.prev = null;
  48162. this.head = this.tail = node;
  48163. }
  48164. this.length += 1;
  48165. };
  48166. LinkedList.prototype.offset = function (target) {
  48167. var index = 0, cur = this.head;
  48168. while (cur != null) {
  48169. if (cur === target)
  48170. return index;
  48171. index += cur.length();
  48172. cur = cur.next;
  48173. }
  48174. return -1;
  48175. };
  48176. LinkedList.prototype.remove = function (node) {
  48177. if (!this.contains(node))
  48178. return;
  48179. if (node.prev != null)
  48180. node.prev.next = node.next;
  48181. if (node.next != null)
  48182. node.next.prev = node.prev;
  48183. if (node === this.head)
  48184. this.head = node.next;
  48185. if (node === this.tail)
  48186. this.tail = node.prev;
  48187. this.length -= 1;
  48188. };
  48189. LinkedList.prototype.iterator = function (curNode) {
  48190. if (curNode === void 0) { curNode = this.head; }
  48191. // TODO use yield when we can
  48192. return function () {
  48193. var ret = curNode;
  48194. if (curNode != null)
  48195. curNode = curNode.next;
  48196. return ret;
  48197. };
  48198. };
  48199. LinkedList.prototype.find = function (index, inclusive) {
  48200. if (inclusive === void 0) { inclusive = false; }
  48201. var cur, next = this.iterator();
  48202. while ((cur = next())) {
  48203. var length = cur.length();
  48204. if (index < length ||
  48205. (inclusive && index === length && (cur.next == null || cur.next.length() !== 0))) {
  48206. return [cur, index];
  48207. }
  48208. index -= length;
  48209. }
  48210. return [null, 0];
  48211. };
  48212. LinkedList.prototype.forEach = function (callback) {
  48213. var cur, next = this.iterator();
  48214. while ((cur = next())) {
  48215. callback(cur);
  48216. }
  48217. };
  48218. LinkedList.prototype.forEachAt = function (index, length, callback) {
  48219. if (length <= 0)
  48220. return;
  48221. var _a = this.find(index), startNode = _a[0], offset = _a[1];
  48222. var cur, curIndex = index - offset, next = this.iterator(startNode);
  48223. while ((cur = next()) && curIndex < index + length) {
  48224. var curLength = cur.length();
  48225. if (index > curIndex) {
  48226. callback(cur, index - curIndex, Math.min(length, curIndex + curLength - index));
  48227. }
  48228. else {
  48229. callback(cur, 0, Math.min(curLength, index + length - curIndex));
  48230. }
  48231. curIndex += curLength;
  48232. }
  48233. };
  48234. LinkedList.prototype.map = function (callback) {
  48235. return this.reduce(function (memo, cur) {
  48236. memo.push(callback(cur));
  48237. return memo;
  48238. }, []);
  48239. };
  48240. LinkedList.prototype.reduce = function (callback, memo) {
  48241. var cur, next = this.iterator();
  48242. while ((cur = next())) {
  48243. memo = callback(memo, cur);
  48244. }
  48245. return memo;
  48246. };
  48247. return LinkedList;
  48248. }());
  48249. exports.default = LinkedList;
  48250. /***/ }),
  48251. /* 45 */
  48252. /***/ (function(module, exports, __nested_webpack_require_260796__) {
  48253. "use strict";
  48254. var __extends = (this && this.__extends) || (function () {
  48255. var extendStatics = Object.setPrototypeOf ||
  48256. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  48257. function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
  48258. return function (d, b) {
  48259. extendStatics(d, b);
  48260. function __() { this.constructor = d; }
  48261. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  48262. };
  48263. })();
  48264. Object.defineProperty(exports, "__esModule", { value: true });
  48265. var container_1 = __nested_webpack_require_260796__(17);
  48266. var Registry = __nested_webpack_require_260796__(1);
  48267. var OBSERVER_CONFIG = {
  48268. attributes: true,
  48269. characterData: true,
  48270. characterDataOldValue: true,
  48271. childList: true,
  48272. subtree: true,
  48273. };
  48274. var MAX_OPTIMIZE_ITERATIONS = 100;
  48275. var ScrollBlot = /** @class */ (function (_super) {
  48276. __extends(ScrollBlot, _super);
  48277. function ScrollBlot(node) {
  48278. var _this = _super.call(this, node) || this;
  48279. _this.scroll = _this;
  48280. _this.observer = new MutationObserver(function (mutations) {
  48281. _this.update(mutations);
  48282. });
  48283. _this.observer.observe(_this.domNode, OBSERVER_CONFIG);
  48284. _this.attach();
  48285. return _this;
  48286. }
  48287. ScrollBlot.prototype.detach = function () {
  48288. _super.prototype.detach.call(this);
  48289. this.observer.disconnect();
  48290. };
  48291. ScrollBlot.prototype.deleteAt = function (index, length) {
  48292. this.update();
  48293. if (index === 0 && length === this.length()) {
  48294. this.children.forEach(function (child) {
  48295. child.remove();
  48296. });
  48297. }
  48298. else {
  48299. _super.prototype.deleteAt.call(this, index, length);
  48300. }
  48301. };
  48302. ScrollBlot.prototype.formatAt = function (index, length, name, value) {
  48303. this.update();
  48304. _super.prototype.formatAt.call(this, index, length, name, value);
  48305. };
  48306. ScrollBlot.prototype.insertAt = function (index, value, def) {
  48307. this.update();
  48308. _super.prototype.insertAt.call(this, index, value, def);
  48309. };
  48310. ScrollBlot.prototype.optimize = function (mutations, context) {
  48311. var _this = this;
  48312. if (mutations === void 0) { mutations = []; }
  48313. if (context === void 0) { context = {}; }
  48314. _super.prototype.optimize.call(this, context);
  48315. // We must modify mutations directly, cannot make copy and then modify
  48316. var records = [].slice.call(this.observer.takeRecords());
  48317. // Array.push currently seems to be implemented by a non-tail recursive function
  48318. // so we cannot just mutations.push.apply(mutations, this.observer.takeRecords());
  48319. while (records.length > 0)
  48320. mutations.push(records.pop());
  48321. // TODO use WeakMap
  48322. var mark = function (blot, markParent) {
  48323. if (markParent === void 0) { markParent = true; }
  48324. if (blot == null || blot === _this)
  48325. return;
  48326. if (blot.domNode.parentNode == null)
  48327. return;
  48328. // @ts-ignore
  48329. if (blot.domNode[Registry.DATA_KEY].mutations == null) {
  48330. // @ts-ignore
  48331. blot.domNode[Registry.DATA_KEY].mutations = [];
  48332. }
  48333. if (markParent)
  48334. mark(blot.parent);
  48335. };
  48336. var optimize = function (blot) {
  48337. // Post-order traversal
  48338. if (
  48339. // @ts-ignore
  48340. blot.domNode[Registry.DATA_KEY] == null ||
  48341. // @ts-ignore
  48342. blot.domNode[Registry.DATA_KEY].mutations == null) {
  48343. return;
  48344. }
  48345. if (blot instanceof container_1.default) {
  48346. blot.children.forEach(optimize);
  48347. }
  48348. blot.optimize(context);
  48349. };
  48350. var remaining = mutations;
  48351. for (var i = 0; remaining.length > 0; i += 1) {
  48352. if (i >= MAX_OPTIMIZE_ITERATIONS) {
  48353. throw new Error('[Parchment] Maximum optimize iterations reached');
  48354. }
  48355. remaining.forEach(function (mutation) {
  48356. var blot = Registry.find(mutation.target, true);
  48357. if (blot == null)
  48358. return;
  48359. if (blot.domNode === mutation.target) {
  48360. if (mutation.type === 'childList') {
  48361. mark(Registry.find(mutation.previousSibling, false));
  48362. [].forEach.call(mutation.addedNodes, function (node) {
  48363. var child = Registry.find(node, false);
  48364. mark(child, false);
  48365. if (child instanceof container_1.default) {
  48366. child.children.forEach(function (grandChild) {
  48367. mark(grandChild, false);
  48368. });
  48369. }
  48370. });
  48371. }
  48372. else if (mutation.type === 'attributes') {
  48373. mark(blot.prev);
  48374. }
  48375. }
  48376. mark(blot);
  48377. });
  48378. this.children.forEach(optimize);
  48379. remaining = [].slice.call(this.observer.takeRecords());
  48380. records = remaining.slice();
  48381. while (records.length > 0)
  48382. mutations.push(records.pop());
  48383. }
  48384. };
  48385. ScrollBlot.prototype.update = function (mutations, context) {
  48386. var _this = this;
  48387. if (context === void 0) { context = {}; }
  48388. mutations = mutations || this.observer.takeRecords();
  48389. // TODO use WeakMap
  48390. mutations
  48391. .map(function (mutation) {
  48392. var blot = Registry.find(mutation.target, true);
  48393. if (blot == null)
  48394. return null;
  48395. // @ts-ignore
  48396. if (blot.domNode[Registry.DATA_KEY].mutations == null) {
  48397. // @ts-ignore
  48398. blot.domNode[Registry.DATA_KEY].mutations = [mutation];
  48399. return blot;
  48400. }
  48401. else {
  48402. // @ts-ignore
  48403. blot.domNode[Registry.DATA_KEY].mutations.push(mutation);
  48404. return null;
  48405. }
  48406. })
  48407. .forEach(function (blot) {
  48408. if (blot == null ||
  48409. blot === _this ||
  48410. //@ts-ignore
  48411. blot.domNode[Registry.DATA_KEY] == null)
  48412. return;
  48413. // @ts-ignore
  48414. blot.update(blot.domNode[Registry.DATA_KEY].mutations || [], context);
  48415. });
  48416. // @ts-ignore
  48417. if (this.domNode[Registry.DATA_KEY].mutations != null) {
  48418. // @ts-ignore
  48419. _super.prototype.update.call(this, this.domNode[Registry.DATA_KEY].mutations, context);
  48420. }
  48421. this.optimize(mutations, context);
  48422. };
  48423. ScrollBlot.blotName = 'scroll';
  48424. ScrollBlot.defaultChild = 'block';
  48425. ScrollBlot.scope = Registry.Scope.BLOCK_BLOT;
  48426. ScrollBlot.tagName = 'DIV';
  48427. return ScrollBlot;
  48428. }(container_1.default));
  48429. exports.default = ScrollBlot;
  48430. /***/ }),
  48431. /* 46 */
  48432. /***/ (function(module, exports, __nested_webpack_require_267910__) {
  48433. "use strict";
  48434. var __extends = (this && this.__extends) || (function () {
  48435. var extendStatics = Object.setPrototypeOf ||
  48436. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  48437. function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
  48438. return function (d, b) {
  48439. extendStatics(d, b);
  48440. function __() { this.constructor = d; }
  48441. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  48442. };
  48443. })();
  48444. Object.defineProperty(exports, "__esModule", { value: true });
  48445. var format_1 = __nested_webpack_require_267910__(18);
  48446. var Registry = __nested_webpack_require_267910__(1);
  48447. // Shallow object comparison
  48448. function isEqual(obj1, obj2) {
  48449. if (Object.keys(obj1).length !== Object.keys(obj2).length)
  48450. return false;
  48451. // @ts-ignore
  48452. for (var prop in obj1) {
  48453. // @ts-ignore
  48454. if (obj1[prop] !== obj2[prop])
  48455. return false;
  48456. }
  48457. return true;
  48458. }
  48459. var InlineBlot = /** @class */ (function (_super) {
  48460. __extends(InlineBlot, _super);
  48461. function InlineBlot() {
  48462. return _super !== null && _super.apply(this, arguments) || this;
  48463. }
  48464. InlineBlot.formats = function (domNode) {
  48465. if (domNode.tagName === InlineBlot.tagName)
  48466. return undefined;
  48467. return _super.formats.call(this, domNode);
  48468. };
  48469. InlineBlot.prototype.format = function (name, value) {
  48470. var _this = this;
  48471. if (name === this.statics.blotName && !value) {
  48472. this.children.forEach(function (child) {
  48473. if (!(child instanceof format_1.default)) {
  48474. child = child.wrap(InlineBlot.blotName, true);
  48475. }
  48476. _this.attributes.copy(child);
  48477. });
  48478. this.unwrap();
  48479. }
  48480. else {
  48481. _super.prototype.format.call(this, name, value);
  48482. }
  48483. };
  48484. InlineBlot.prototype.formatAt = function (index, length, name, value) {
  48485. if (this.formats()[name] != null || Registry.query(name, Registry.Scope.ATTRIBUTE)) {
  48486. var blot = this.isolate(index, length);
  48487. blot.format(name, value);
  48488. }
  48489. else {
  48490. _super.prototype.formatAt.call(this, index, length, name, value);
  48491. }
  48492. };
  48493. InlineBlot.prototype.optimize = function (context) {
  48494. _super.prototype.optimize.call(this, context);
  48495. var formats = this.formats();
  48496. if (Object.keys(formats).length === 0) {
  48497. return this.unwrap(); // unformatted span
  48498. }
  48499. var next = this.next;
  48500. if (next instanceof InlineBlot && next.prev === this && isEqual(formats, next.formats())) {
  48501. next.moveChildren(this);
  48502. next.remove();
  48503. }
  48504. };
  48505. InlineBlot.blotName = 'inline';
  48506. InlineBlot.scope = Registry.Scope.INLINE_BLOT;
  48507. InlineBlot.tagName = 'SPAN';
  48508. return InlineBlot;
  48509. }(format_1.default));
  48510. exports.default = InlineBlot;
  48511. /***/ }),
  48512. /* 47 */
  48513. /***/ (function(module, exports, __nested_webpack_require_270902__) {
  48514. "use strict";
  48515. var __extends = (this && this.__extends) || (function () {
  48516. var extendStatics = Object.setPrototypeOf ||
  48517. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  48518. function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
  48519. return function (d, b) {
  48520. extendStatics(d, b);
  48521. function __() { this.constructor = d; }
  48522. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  48523. };
  48524. })();
  48525. Object.defineProperty(exports, "__esModule", { value: true });
  48526. var format_1 = __nested_webpack_require_270902__(18);
  48527. var Registry = __nested_webpack_require_270902__(1);
  48528. var BlockBlot = /** @class */ (function (_super) {
  48529. __extends(BlockBlot, _super);
  48530. function BlockBlot() {
  48531. return _super !== null && _super.apply(this, arguments) || this;
  48532. }
  48533. BlockBlot.formats = function (domNode) {
  48534. var tagName = Registry.query(BlockBlot.blotName).tagName;
  48535. if (domNode.tagName === tagName)
  48536. return undefined;
  48537. return _super.formats.call(this, domNode);
  48538. };
  48539. BlockBlot.prototype.format = function (name, value) {
  48540. if (Registry.query(name, Registry.Scope.BLOCK) == null) {
  48541. return;
  48542. }
  48543. else if (name === this.statics.blotName && !value) {
  48544. this.replaceWith(BlockBlot.blotName);
  48545. }
  48546. else {
  48547. _super.prototype.format.call(this, name, value);
  48548. }
  48549. };
  48550. BlockBlot.prototype.formatAt = function (index, length, name, value) {
  48551. if (Registry.query(name, Registry.Scope.BLOCK) != null) {
  48552. this.format(name, value);
  48553. }
  48554. else {
  48555. _super.prototype.formatAt.call(this, index, length, name, value);
  48556. }
  48557. };
  48558. BlockBlot.prototype.insertAt = function (index, value, def) {
  48559. if (def == null || Registry.query(value, Registry.Scope.INLINE) != null) {
  48560. // Insert text or inline
  48561. _super.prototype.insertAt.call(this, index, value, def);
  48562. }
  48563. else {
  48564. var after = this.split(index);
  48565. var blot = Registry.create(value, def);
  48566. after.parent.insertBefore(blot, after);
  48567. }
  48568. };
  48569. BlockBlot.prototype.update = function (mutations, context) {
  48570. if (navigator.userAgent.match(/Trident/)) {
  48571. this.build();
  48572. }
  48573. else {
  48574. _super.prototype.update.call(this, mutations, context);
  48575. }
  48576. };
  48577. BlockBlot.blotName = 'block';
  48578. BlockBlot.scope = Registry.Scope.BLOCK_BLOT;
  48579. BlockBlot.tagName = 'P';
  48580. return BlockBlot;
  48581. }(format_1.default));
  48582. exports.default = BlockBlot;
  48583. /***/ }),
  48584. /* 48 */
  48585. /***/ (function(module, exports, __nested_webpack_require_273610__) {
  48586. "use strict";
  48587. var __extends = (this && this.__extends) || (function () {
  48588. var extendStatics = Object.setPrototypeOf ||
  48589. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  48590. function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
  48591. return function (d, b) {
  48592. extendStatics(d, b);
  48593. function __() { this.constructor = d; }
  48594. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  48595. };
  48596. })();
  48597. Object.defineProperty(exports, "__esModule", { value: true });
  48598. var leaf_1 = __nested_webpack_require_273610__(19);
  48599. var EmbedBlot = /** @class */ (function (_super) {
  48600. __extends(EmbedBlot, _super);
  48601. function EmbedBlot() {
  48602. return _super !== null && _super.apply(this, arguments) || this;
  48603. }
  48604. EmbedBlot.formats = function (domNode) {
  48605. return undefined;
  48606. };
  48607. EmbedBlot.prototype.format = function (name, value) {
  48608. // super.formatAt wraps, which is what we want in general,
  48609. // but this allows subclasses to overwrite for formats
  48610. // that just apply to particular embeds
  48611. _super.prototype.formatAt.call(this, 0, this.length(), name, value);
  48612. };
  48613. EmbedBlot.prototype.formatAt = function (index, length, name, value) {
  48614. if (index === 0 && length === this.length()) {
  48615. this.format(name, value);
  48616. }
  48617. else {
  48618. _super.prototype.formatAt.call(this, index, length, name, value);
  48619. }
  48620. };
  48621. EmbedBlot.prototype.formats = function () {
  48622. return this.statics.formats(this.domNode);
  48623. };
  48624. return EmbedBlot;
  48625. }(leaf_1.default));
  48626. exports.default = EmbedBlot;
  48627. /***/ }),
  48628. /* 49 */
  48629. /***/ (function(module, exports, __nested_webpack_require_275351__) {
  48630. "use strict";
  48631. var __extends = (this && this.__extends) || (function () {
  48632. var extendStatics = Object.setPrototypeOf ||
  48633. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  48634. function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
  48635. return function (d, b) {
  48636. extendStatics(d, b);
  48637. function __() { this.constructor = d; }
  48638. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  48639. };
  48640. })();
  48641. Object.defineProperty(exports, "__esModule", { value: true });
  48642. var leaf_1 = __nested_webpack_require_275351__(19);
  48643. var Registry = __nested_webpack_require_275351__(1);
  48644. var TextBlot = /** @class */ (function (_super) {
  48645. __extends(TextBlot, _super);
  48646. function TextBlot(node) {
  48647. var _this = _super.call(this, node) || this;
  48648. _this.text = _this.statics.value(_this.domNode);
  48649. return _this;
  48650. }
  48651. TextBlot.create = function (value) {
  48652. return document.createTextNode(value);
  48653. };
  48654. TextBlot.value = function (domNode) {
  48655. var text = domNode.data;
  48656. // @ts-ignore
  48657. if (text['normalize'])
  48658. text = text['normalize']();
  48659. return text;
  48660. };
  48661. TextBlot.prototype.deleteAt = function (index, length) {
  48662. this.domNode.data = this.text = this.text.slice(0, index) + this.text.slice(index + length);
  48663. };
  48664. TextBlot.prototype.index = function (node, offset) {
  48665. if (this.domNode === node) {
  48666. return offset;
  48667. }
  48668. return -1;
  48669. };
  48670. TextBlot.prototype.insertAt = function (index, value, def) {
  48671. if (def == null) {
  48672. this.text = this.text.slice(0, index) + value + this.text.slice(index);
  48673. this.domNode.data = this.text;
  48674. }
  48675. else {
  48676. _super.prototype.insertAt.call(this, index, value, def);
  48677. }
  48678. };
  48679. TextBlot.prototype.length = function () {
  48680. return this.text.length;
  48681. };
  48682. TextBlot.prototype.optimize = function (context) {
  48683. _super.prototype.optimize.call(this, context);
  48684. this.text = this.statics.value(this.domNode);
  48685. if (this.text.length === 0) {
  48686. this.remove();
  48687. }
  48688. else if (this.next instanceof TextBlot && this.next.prev === this) {
  48689. this.insertAt(this.length(), this.next.value());
  48690. this.next.remove();
  48691. }
  48692. };
  48693. TextBlot.prototype.position = function (index, inclusive) {
  48694. if (inclusive === void 0) { inclusive = false; }
  48695. return [this.domNode, index];
  48696. };
  48697. TextBlot.prototype.split = function (index, force) {
  48698. if (force === void 0) { force = false; }
  48699. if (!force) {
  48700. if (index === 0)
  48701. return this;
  48702. if (index === this.length())
  48703. return this.next;
  48704. }
  48705. var after = Registry.create(this.domNode.splitText(index));
  48706. this.parent.insertBefore(after, this.next);
  48707. this.text = this.statics.value(this.domNode);
  48708. return after;
  48709. };
  48710. TextBlot.prototype.update = function (mutations, context) {
  48711. var _this = this;
  48712. if (mutations.some(function (mutation) {
  48713. return mutation.type === 'characterData' && mutation.target === _this.domNode;
  48714. })) {
  48715. this.text = this.statics.value(this.domNode);
  48716. }
  48717. };
  48718. TextBlot.prototype.value = function () {
  48719. return this.text;
  48720. };
  48721. TextBlot.blotName = 'text';
  48722. TextBlot.scope = Registry.Scope.INLINE_BLOT;
  48723. return TextBlot;
  48724. }(leaf_1.default));
  48725. exports.default = TextBlot;
  48726. /***/ }),
  48727. /* 50 */
  48728. /***/ (function(module, exports, __webpack_require__) {
  48729. "use strict";
  48730. var elem = document.createElement('div');
  48731. elem.classList.toggle('test-class', false);
  48732. if (elem.classList.contains('test-class')) {
  48733. var _toggle = DOMTokenList.prototype.toggle;
  48734. DOMTokenList.prototype.toggle = function (token, force) {
  48735. if (arguments.length > 1 && !this.contains(token) === !force) {
  48736. return force;
  48737. } else {
  48738. return _toggle.call(this, token);
  48739. }
  48740. };
  48741. }
  48742. if (!String.prototype.startsWith) {
  48743. String.prototype.startsWith = function (searchString, position) {
  48744. position = position || 0;
  48745. return this.substr(position, searchString.length) === searchString;
  48746. };
  48747. }
  48748. if (!String.prototype.endsWith) {
  48749. String.prototype.endsWith = function (searchString, position) {
  48750. var subjectString = this.toString();
  48751. if (typeof position !== 'number' || !isFinite(position) || Math.floor(position) !== position || position > subjectString.length) {
  48752. position = subjectString.length;
  48753. }
  48754. position -= searchString.length;
  48755. var lastIndex = subjectString.indexOf(searchString, position);
  48756. return lastIndex !== -1 && lastIndex === position;
  48757. };
  48758. }
  48759. if (!Array.prototype.find) {
  48760. Object.defineProperty(Array.prototype, "find", {
  48761. value: function value(predicate) {
  48762. if (this === null) {
  48763. throw new TypeError('Array.prototype.find called on null or undefined');
  48764. }
  48765. if (typeof predicate !== 'function') {
  48766. throw new TypeError('predicate must be a function');
  48767. }
  48768. var list = Object(this);
  48769. var length = list.length >>> 0;
  48770. var thisArg = arguments[1];
  48771. var value;
  48772. for (var i = 0; i < length; i++) {
  48773. value = list[i];
  48774. if (predicate.call(thisArg, value, i, list)) {
  48775. return value;
  48776. }
  48777. }
  48778. return undefined;
  48779. }
  48780. });
  48781. }
  48782. document.addEventListener("DOMContentLoaded", function () {
  48783. // Disable resizing in Firefox
  48784. document.execCommand("enableObjectResizing", false, false);
  48785. // Disable automatic linkifying in IE11
  48786. document.execCommand("autoUrlDetect", false, false);
  48787. });
  48788. /***/ }),
  48789. /* 51 */
  48790. /***/ (function(module, exports) {
  48791. /**
  48792. * This library modifies the diff-patch-match library by Neil Fraser
  48793. * by removing the patch and match functionality and certain advanced
  48794. * options in the diff function. The original license is as follows:
  48795. *
  48796. * ===
  48797. *
  48798. * Diff Match and Patch
  48799. *
  48800. * Copyright 2006 Google Inc.
  48801. * http://code.google.com/p/google-diff-match-patch/
  48802. *
  48803. * Licensed under the Apache License, Version 2.0 (the "License");
  48804. * you may not use this file except in compliance with the License.
  48805. * You may obtain a copy of the License at
  48806. *
  48807. * http://www.apache.org/licenses/LICENSE-2.0
  48808. *
  48809. * Unless required by applicable law or agreed to in writing, software
  48810. * distributed under the License is distributed on an "AS IS" BASIS,
  48811. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  48812. * See the License for the specific language governing permissions and
  48813. * limitations under the License.
  48814. */
  48815. /**
  48816. * The data structure representing a diff is an array of tuples:
  48817. * [[DIFF_DELETE, 'Hello'], [DIFF_INSERT, 'Goodbye'], [DIFF_EQUAL, ' world.']]
  48818. * which means: delete 'Hello', add 'Goodbye' and keep ' world.'
  48819. */
  48820. var DIFF_DELETE = -1;
  48821. var DIFF_INSERT = 1;
  48822. var DIFF_EQUAL = 0;
  48823. /**
  48824. * Find the differences between two texts. Simplifies the problem by stripping
  48825. * any common prefix or suffix off the texts before diffing.
  48826. * @param {string} text1 Old string to be diffed.
  48827. * @param {string} text2 New string to be diffed.
  48828. * @param {Int} cursor_pos Expected edit position in text1 (optional)
  48829. * @return {Array} Array of diff tuples.
  48830. */
  48831. function diff_main(text1, text2, cursor_pos) {
  48832. // Check for equality (speedup).
  48833. if (text1 == text2) {
  48834. if (text1) {
  48835. return [[DIFF_EQUAL, text1]];
  48836. }
  48837. return [];
  48838. }
  48839. // Check cursor_pos within bounds
  48840. if (cursor_pos < 0 || text1.length < cursor_pos) {
  48841. cursor_pos = null;
  48842. }
  48843. // Trim off common prefix (speedup).
  48844. var commonlength = diff_commonPrefix(text1, text2);
  48845. var commonprefix = text1.substring(0, commonlength);
  48846. text1 = text1.substring(commonlength);
  48847. text2 = text2.substring(commonlength);
  48848. // Trim off common suffix (speedup).
  48849. commonlength = diff_commonSuffix(text1, text2);
  48850. var commonsuffix = text1.substring(text1.length - commonlength);
  48851. text1 = text1.substring(0, text1.length - commonlength);
  48852. text2 = text2.substring(0, text2.length - commonlength);
  48853. // Compute the diff on the middle block.
  48854. var diffs = diff_compute_(text1, text2);
  48855. // Restore the prefix and suffix.
  48856. if (commonprefix) {
  48857. diffs.unshift([DIFF_EQUAL, commonprefix]);
  48858. }
  48859. if (commonsuffix) {
  48860. diffs.push([DIFF_EQUAL, commonsuffix]);
  48861. }
  48862. diff_cleanupMerge(diffs);
  48863. if (cursor_pos != null) {
  48864. diffs = fix_cursor(diffs, cursor_pos);
  48865. }
  48866. diffs = fix_emoji(diffs);
  48867. return diffs;
  48868. };
  48869. /**
  48870. * Find the differences between two texts. Assumes that the texts do not
  48871. * have any common prefix or suffix.
  48872. * @param {string} text1 Old string to be diffed.
  48873. * @param {string} text2 New string to be diffed.
  48874. * @return {Array} Array of diff tuples.
  48875. */
  48876. function diff_compute_(text1, text2) {
  48877. var diffs;
  48878. if (!text1) {
  48879. // Just add some text (speedup).
  48880. return [[DIFF_INSERT, text2]];
  48881. }
  48882. if (!text2) {
  48883. // Just delete some text (speedup).
  48884. return [[DIFF_DELETE, text1]];
  48885. }
  48886. var longtext = text1.length > text2.length ? text1 : text2;
  48887. var shorttext = text1.length > text2.length ? text2 : text1;
  48888. var i = longtext.indexOf(shorttext);
  48889. if (i != -1) {
  48890. // Shorter text is inside the longer text (speedup).
  48891. diffs = [[DIFF_INSERT, longtext.substring(0, i)],
  48892. [DIFF_EQUAL, shorttext],
  48893. [DIFF_INSERT, longtext.substring(i + shorttext.length)]];
  48894. // Swap insertions for deletions if diff is reversed.
  48895. if (text1.length > text2.length) {
  48896. diffs[0][0] = diffs[2][0] = DIFF_DELETE;
  48897. }
  48898. return diffs;
  48899. }
  48900. if (shorttext.length == 1) {
  48901. // Single character string.
  48902. // After the previous speedup, the character can't be an equality.
  48903. return [[DIFF_DELETE, text1], [DIFF_INSERT, text2]];
  48904. }
  48905. // Check to see if the problem can be split in two.
  48906. var hm = diff_halfMatch_(text1, text2);
  48907. if (hm) {
  48908. // A half-match was found, sort out the return data.
  48909. var text1_a = hm[0];
  48910. var text1_b = hm[1];
  48911. var text2_a = hm[2];
  48912. var text2_b = hm[3];
  48913. var mid_common = hm[4];
  48914. // Send both pairs off for separate processing.
  48915. var diffs_a = diff_main(text1_a, text2_a);
  48916. var diffs_b = diff_main(text1_b, text2_b);
  48917. // Merge the results.
  48918. return diffs_a.concat([[DIFF_EQUAL, mid_common]], diffs_b);
  48919. }
  48920. return diff_bisect_(text1, text2);
  48921. };
  48922. /**
  48923. * Find the 'middle snake' of a diff, split the problem in two
  48924. * and return the recursively constructed diff.
  48925. * See Myers 1986 paper: An O(ND) Difference Algorithm and Its Variations.
  48926. * @param {string} text1 Old string to be diffed.
  48927. * @param {string} text2 New string to be diffed.
  48928. * @return {Array} Array of diff tuples.
  48929. * @private
  48930. */
  48931. function diff_bisect_(text1, text2) {
  48932. // Cache the text lengths to prevent multiple calls.
  48933. var text1_length = text1.length;
  48934. var text2_length = text2.length;
  48935. var max_d = Math.ceil((text1_length + text2_length) / 2);
  48936. var v_offset = max_d;
  48937. var v_length = 2 * max_d;
  48938. var v1 = new Array(v_length);
  48939. var v2 = new Array(v_length);
  48940. // Setting all elements to -1 is faster in Chrome & Firefox than mixing
  48941. // integers and undefined.
  48942. for (var x = 0; x < v_length; x++) {
  48943. v1[x] = -1;
  48944. v2[x] = -1;
  48945. }
  48946. v1[v_offset + 1] = 0;
  48947. v2[v_offset + 1] = 0;
  48948. var delta = text1_length - text2_length;
  48949. // If the total number of characters is odd, then the front path will collide
  48950. // with the reverse path.
  48951. var front = (delta % 2 != 0);
  48952. // Offsets for start and end of k loop.
  48953. // Prevents mapping of space beyond the grid.
  48954. var k1start = 0;
  48955. var k1end = 0;
  48956. var k2start = 0;
  48957. var k2end = 0;
  48958. for (var d = 0; d < max_d; d++) {
  48959. // Walk the front path one step.
  48960. for (var k1 = -d + k1start; k1 <= d - k1end; k1 += 2) {
  48961. var k1_offset = v_offset + k1;
  48962. var x1;
  48963. if (k1 == -d || (k1 != d && v1[k1_offset - 1] < v1[k1_offset + 1])) {
  48964. x1 = v1[k1_offset + 1];
  48965. } else {
  48966. x1 = v1[k1_offset - 1] + 1;
  48967. }
  48968. var y1 = x1 - k1;
  48969. while (x1 < text1_length && y1 < text2_length &&
  48970. text1.charAt(x1) == text2.charAt(y1)) {
  48971. x1++;
  48972. y1++;
  48973. }
  48974. v1[k1_offset] = x1;
  48975. if (x1 > text1_length) {
  48976. // Ran off the right of the graph.
  48977. k1end += 2;
  48978. } else if (y1 > text2_length) {
  48979. // Ran off the bottom of the graph.
  48980. k1start += 2;
  48981. } else if (front) {
  48982. var k2_offset = v_offset + delta - k1;
  48983. if (k2_offset >= 0 && k2_offset < v_length && v2[k2_offset] != -1) {
  48984. // Mirror x2 onto top-left coordinate system.
  48985. var x2 = text1_length - v2[k2_offset];
  48986. if (x1 >= x2) {
  48987. // Overlap detected.
  48988. return diff_bisectSplit_(text1, text2, x1, y1);
  48989. }
  48990. }
  48991. }
  48992. }
  48993. // Walk the reverse path one step.
  48994. for (var k2 = -d + k2start; k2 <= d - k2end; k2 += 2) {
  48995. var k2_offset = v_offset + k2;
  48996. var x2;
  48997. if (k2 == -d || (k2 != d && v2[k2_offset - 1] < v2[k2_offset + 1])) {
  48998. x2 = v2[k2_offset + 1];
  48999. } else {
  49000. x2 = v2[k2_offset - 1] + 1;
  49001. }
  49002. var y2 = x2 - k2;
  49003. while (x2 < text1_length && y2 < text2_length &&
  49004. text1.charAt(text1_length - x2 - 1) ==
  49005. text2.charAt(text2_length - y2 - 1)) {
  49006. x2++;
  49007. y2++;
  49008. }
  49009. v2[k2_offset] = x2;
  49010. if (x2 > text1_length) {
  49011. // Ran off the left of the graph.
  49012. k2end += 2;
  49013. } else if (y2 > text2_length) {
  49014. // Ran off the top of the graph.
  49015. k2start += 2;
  49016. } else if (!front) {
  49017. var k1_offset = v_offset + delta - k2;
  49018. if (k1_offset >= 0 && k1_offset < v_length && v1[k1_offset] != -1) {
  49019. var x1 = v1[k1_offset];
  49020. var y1 = v_offset + x1 - k1_offset;
  49021. // Mirror x2 onto top-left coordinate system.
  49022. x2 = text1_length - x2;
  49023. if (x1 >= x2) {
  49024. // Overlap detected.
  49025. return diff_bisectSplit_(text1, text2, x1, y1);
  49026. }
  49027. }
  49028. }
  49029. }
  49030. }
  49031. // Diff took too long and hit the deadline or
  49032. // number of diffs equals number of characters, no commonality at all.
  49033. return [[DIFF_DELETE, text1], [DIFF_INSERT, text2]];
  49034. };
  49035. /**
  49036. * Given the location of the 'middle snake', split the diff in two parts
  49037. * and recurse.
  49038. * @param {string} text1 Old string to be diffed.
  49039. * @param {string} text2 New string to be diffed.
  49040. * @param {number} x Index of split point in text1.
  49041. * @param {number} y Index of split point in text2.
  49042. * @return {Array} Array of diff tuples.
  49043. */
  49044. function diff_bisectSplit_(text1, text2, x, y) {
  49045. var text1a = text1.substring(0, x);
  49046. var text2a = text2.substring(0, y);
  49047. var text1b = text1.substring(x);
  49048. var text2b = text2.substring(y);
  49049. // Compute both diffs serially.
  49050. var diffs = diff_main(text1a, text2a);
  49051. var diffsb = diff_main(text1b, text2b);
  49052. return diffs.concat(diffsb);
  49053. };
  49054. /**
  49055. * Determine the common prefix of two strings.
  49056. * @param {string} text1 First string.
  49057. * @param {string} text2 Second string.
  49058. * @return {number} The number of characters common to the start of each
  49059. * string.
  49060. */
  49061. function diff_commonPrefix(text1, text2) {
  49062. // Quick check for common null cases.
  49063. if (!text1 || !text2 || text1.charAt(0) != text2.charAt(0)) {
  49064. return 0;
  49065. }
  49066. // Binary search.
  49067. // Performance analysis: http://neil.fraser.name/news/2007/10/09/
  49068. var pointermin = 0;
  49069. var pointermax = Math.min(text1.length, text2.length);
  49070. var pointermid = pointermax;
  49071. var pointerstart = 0;
  49072. while (pointermin < pointermid) {
  49073. if (text1.substring(pointerstart, pointermid) ==
  49074. text2.substring(pointerstart, pointermid)) {
  49075. pointermin = pointermid;
  49076. pointerstart = pointermin;
  49077. } else {
  49078. pointermax = pointermid;
  49079. }
  49080. pointermid = Math.floor((pointermax - pointermin) / 2 + pointermin);
  49081. }
  49082. return pointermid;
  49083. };
  49084. /**
  49085. * Determine the common suffix of two strings.
  49086. * @param {string} text1 First string.
  49087. * @param {string} text2 Second string.
  49088. * @return {number} The number of characters common to the end of each string.
  49089. */
  49090. function diff_commonSuffix(text1, text2) {
  49091. // Quick check for common null cases.
  49092. if (!text1 || !text2 ||
  49093. text1.charAt(text1.length - 1) != text2.charAt(text2.length - 1)) {
  49094. return 0;
  49095. }
  49096. // Binary search.
  49097. // Performance analysis: http://neil.fraser.name/news/2007/10/09/
  49098. var pointermin = 0;
  49099. var pointermax = Math.min(text1.length, text2.length);
  49100. var pointermid = pointermax;
  49101. var pointerend = 0;
  49102. while (pointermin < pointermid) {
  49103. if (text1.substring(text1.length - pointermid, text1.length - pointerend) ==
  49104. text2.substring(text2.length - pointermid, text2.length - pointerend)) {
  49105. pointermin = pointermid;
  49106. pointerend = pointermin;
  49107. } else {
  49108. pointermax = pointermid;
  49109. }
  49110. pointermid = Math.floor((pointermax - pointermin) / 2 + pointermin);
  49111. }
  49112. return pointermid;
  49113. };
  49114. /**
  49115. * Do the two texts share a substring which is at least half the length of the
  49116. * longer text?
  49117. * This speedup can produce non-minimal diffs.
  49118. * @param {string} text1 First string.
  49119. * @param {string} text2 Second string.
  49120. * @return {Array.<string>} Five element Array, containing the prefix of
  49121. * text1, the suffix of text1, the prefix of text2, the suffix of
  49122. * text2 and the common middle. Or null if there was no match.
  49123. */
  49124. function diff_halfMatch_(text1, text2) {
  49125. var longtext = text1.length > text2.length ? text1 : text2;
  49126. var shorttext = text1.length > text2.length ? text2 : text1;
  49127. if (longtext.length < 4 || shorttext.length * 2 < longtext.length) {
  49128. return null; // Pointless.
  49129. }
  49130. /**
  49131. * Does a substring of shorttext exist within longtext such that the substring
  49132. * is at least half the length of longtext?
  49133. * Closure, but does not reference any external variables.
  49134. * @param {string} longtext Longer string.
  49135. * @param {string} shorttext Shorter string.
  49136. * @param {number} i Start index of quarter length substring within longtext.
  49137. * @return {Array.<string>} Five element Array, containing the prefix of
  49138. * longtext, the suffix of longtext, the prefix of shorttext, the suffix
  49139. * of shorttext and the common middle. Or null if there was no match.
  49140. * @private
  49141. */
  49142. function diff_halfMatchI_(longtext, shorttext, i) {
  49143. // Start with a 1/4 length substring at position i as a seed.
  49144. var seed = longtext.substring(i, i + Math.floor(longtext.length / 4));
  49145. var j = -1;
  49146. var best_common = '';
  49147. var best_longtext_a, best_longtext_b, best_shorttext_a, best_shorttext_b;
  49148. while ((j = shorttext.indexOf(seed, j + 1)) != -1) {
  49149. var prefixLength = diff_commonPrefix(longtext.substring(i),
  49150. shorttext.substring(j));
  49151. var suffixLength = diff_commonSuffix(longtext.substring(0, i),
  49152. shorttext.substring(0, j));
  49153. if (best_common.length < suffixLength + prefixLength) {
  49154. best_common = shorttext.substring(j - suffixLength, j) +
  49155. shorttext.substring(j, j + prefixLength);
  49156. best_longtext_a = longtext.substring(0, i - suffixLength);
  49157. best_longtext_b = longtext.substring(i + prefixLength);
  49158. best_shorttext_a = shorttext.substring(0, j - suffixLength);
  49159. best_shorttext_b = shorttext.substring(j + prefixLength);
  49160. }
  49161. }
  49162. if (best_common.length * 2 >= longtext.length) {
  49163. return [best_longtext_a, best_longtext_b,
  49164. best_shorttext_a, best_shorttext_b, best_common];
  49165. } else {
  49166. return null;
  49167. }
  49168. }
  49169. // First check if the second quarter is the seed for a half-match.
  49170. var hm1 = diff_halfMatchI_(longtext, shorttext,
  49171. Math.ceil(longtext.length / 4));
  49172. // Check again based on the third quarter.
  49173. var hm2 = diff_halfMatchI_(longtext, shorttext,
  49174. Math.ceil(longtext.length / 2));
  49175. var hm;
  49176. if (!hm1 && !hm2) {
  49177. return null;
  49178. } else if (!hm2) {
  49179. hm = hm1;
  49180. } else if (!hm1) {
  49181. hm = hm2;
  49182. } else {
  49183. // Both matched. Select the longest.
  49184. hm = hm1[4].length > hm2[4].length ? hm1 : hm2;
  49185. }
  49186. // A half-match was found, sort out the return data.
  49187. var text1_a, text1_b, text2_a, text2_b;
  49188. if (text1.length > text2.length) {
  49189. text1_a = hm[0];
  49190. text1_b = hm[1];
  49191. text2_a = hm[2];
  49192. text2_b = hm[3];
  49193. } else {
  49194. text2_a = hm[0];
  49195. text2_b = hm[1];
  49196. text1_a = hm[2];
  49197. text1_b = hm[3];
  49198. }
  49199. var mid_common = hm[4];
  49200. return [text1_a, text1_b, text2_a, text2_b, mid_common];
  49201. };
  49202. /**
  49203. * Reorder and merge like edit sections. Merge equalities.
  49204. * Any edit section can move as long as it doesn't cross an equality.
  49205. * @param {Array} diffs Array of diff tuples.
  49206. */
  49207. function diff_cleanupMerge(diffs) {
  49208. diffs.push([DIFF_EQUAL, '']); // Add a dummy entry at the end.
  49209. var pointer = 0;
  49210. var count_delete = 0;
  49211. var count_insert = 0;
  49212. var text_delete = '';
  49213. var text_insert = '';
  49214. var commonlength;
  49215. while (pointer < diffs.length) {
  49216. switch (diffs[pointer][0]) {
  49217. case DIFF_INSERT:
  49218. count_insert++;
  49219. text_insert += diffs[pointer][1];
  49220. pointer++;
  49221. break;
  49222. case DIFF_DELETE:
  49223. count_delete++;
  49224. text_delete += diffs[pointer][1];
  49225. pointer++;
  49226. break;
  49227. case DIFF_EQUAL:
  49228. // Upon reaching an equality, check for prior redundancies.
  49229. if (count_delete + count_insert > 1) {
  49230. if (count_delete !== 0 && count_insert !== 0) {
  49231. // Factor out any common prefixies.
  49232. commonlength = diff_commonPrefix(text_insert, text_delete);
  49233. if (commonlength !== 0) {
  49234. if ((pointer - count_delete - count_insert) > 0 &&
  49235. diffs[pointer - count_delete - count_insert - 1][0] ==
  49236. DIFF_EQUAL) {
  49237. diffs[pointer - count_delete - count_insert - 1][1] +=
  49238. text_insert.substring(0, commonlength);
  49239. } else {
  49240. diffs.splice(0, 0, [DIFF_EQUAL,
  49241. text_insert.substring(0, commonlength)]);
  49242. pointer++;
  49243. }
  49244. text_insert = text_insert.substring(commonlength);
  49245. text_delete = text_delete.substring(commonlength);
  49246. }
  49247. // Factor out any common suffixies.
  49248. commonlength = diff_commonSuffix(text_insert, text_delete);
  49249. if (commonlength !== 0) {
  49250. diffs[pointer][1] = text_insert.substring(text_insert.length -
  49251. commonlength) + diffs[pointer][1];
  49252. text_insert = text_insert.substring(0, text_insert.length -
  49253. commonlength);
  49254. text_delete = text_delete.substring(0, text_delete.length -
  49255. commonlength);
  49256. }
  49257. }
  49258. // Delete the offending records and add the merged ones.
  49259. if (count_delete === 0) {
  49260. diffs.splice(pointer - count_insert,
  49261. count_delete + count_insert, [DIFF_INSERT, text_insert]);
  49262. } else if (count_insert === 0) {
  49263. diffs.splice(pointer - count_delete,
  49264. count_delete + count_insert, [DIFF_DELETE, text_delete]);
  49265. } else {
  49266. diffs.splice(pointer - count_delete - count_insert,
  49267. count_delete + count_insert, [DIFF_DELETE, text_delete],
  49268. [DIFF_INSERT, text_insert]);
  49269. }
  49270. pointer = pointer - count_delete - count_insert +
  49271. (count_delete ? 1 : 0) + (count_insert ? 1 : 0) + 1;
  49272. } else if (pointer !== 0 && diffs[pointer - 1][0] == DIFF_EQUAL) {
  49273. // Merge this equality with the previous one.
  49274. diffs[pointer - 1][1] += diffs[pointer][1];
  49275. diffs.splice(pointer, 1);
  49276. } else {
  49277. pointer++;
  49278. }
  49279. count_insert = 0;
  49280. count_delete = 0;
  49281. text_delete = '';
  49282. text_insert = '';
  49283. break;
  49284. }
  49285. }
  49286. if (diffs[diffs.length - 1][1] === '') {
  49287. diffs.pop(); // Remove the dummy entry at the end.
  49288. }
  49289. // Second pass: look for single edits surrounded on both sides by equalities
  49290. // which can be shifted sideways to eliminate an equality.
  49291. // e.g: A<ins>BA</ins>C -> <ins>AB</ins>AC
  49292. var changes = false;
  49293. pointer = 1;
  49294. // Intentionally ignore the first and last element (don't need checking).
  49295. while (pointer < diffs.length - 1) {
  49296. if (diffs[pointer - 1][0] == DIFF_EQUAL &&
  49297. diffs[pointer + 1][0] == DIFF_EQUAL) {
  49298. // This is a single edit surrounded by equalities.
  49299. if (diffs[pointer][1].substring(diffs[pointer][1].length -
  49300. diffs[pointer - 1][1].length) == diffs[pointer - 1][1]) {
  49301. // Shift the edit over the previous equality.
  49302. diffs[pointer][1] = diffs[pointer - 1][1] +
  49303. diffs[pointer][1].substring(0, diffs[pointer][1].length -
  49304. diffs[pointer - 1][1].length);
  49305. diffs[pointer + 1][1] = diffs[pointer - 1][1] + diffs[pointer + 1][1];
  49306. diffs.splice(pointer - 1, 1);
  49307. changes = true;
  49308. } else if (diffs[pointer][1].substring(0, diffs[pointer + 1][1].length) ==
  49309. diffs[pointer + 1][1]) {
  49310. // Shift the edit over the next equality.
  49311. diffs[pointer - 1][1] += diffs[pointer + 1][1];
  49312. diffs[pointer][1] =
  49313. diffs[pointer][1].substring(diffs[pointer + 1][1].length) +
  49314. diffs[pointer + 1][1];
  49315. diffs.splice(pointer + 1, 1);
  49316. changes = true;
  49317. }
  49318. }
  49319. pointer++;
  49320. }
  49321. // If shifts were made, the diff needs reordering and another shift sweep.
  49322. if (changes) {
  49323. diff_cleanupMerge(diffs);
  49324. }
  49325. };
  49326. var diff = diff_main;
  49327. diff.INSERT = DIFF_INSERT;
  49328. diff.DELETE = DIFF_DELETE;
  49329. diff.EQUAL = DIFF_EQUAL;
  49330. module.exports = diff;
  49331. /*
  49332. * Modify a diff such that the cursor position points to the start of a change:
  49333. * E.g.
  49334. * cursor_normalize_diff([[DIFF_EQUAL, 'abc']], 1)
  49335. * => [1, [[DIFF_EQUAL, 'a'], [DIFF_EQUAL, 'bc']]]
  49336. * cursor_normalize_diff([[DIFF_INSERT, 'new'], [DIFF_DELETE, 'xyz']], 2)
  49337. * => [2, [[DIFF_INSERT, 'new'], [DIFF_DELETE, 'xy'], [DIFF_DELETE, 'z']]]
  49338. *
  49339. * @param {Array} diffs Array of diff tuples
  49340. * @param {Int} cursor_pos Suggested edit position. Must not be out of bounds!
  49341. * @return {Array} A tuple [cursor location in the modified diff, modified diff]
  49342. */
  49343. function cursor_normalize_diff (diffs, cursor_pos) {
  49344. if (cursor_pos === 0) {
  49345. return [DIFF_EQUAL, diffs];
  49346. }
  49347. for (var current_pos = 0, i = 0; i < diffs.length; i++) {
  49348. var d = diffs[i];
  49349. if (d[0] === DIFF_DELETE || d[0] === DIFF_EQUAL) {
  49350. var next_pos = current_pos + d[1].length;
  49351. if (cursor_pos === next_pos) {
  49352. return [i + 1, diffs];
  49353. } else if (cursor_pos < next_pos) {
  49354. // copy to prevent side effects
  49355. diffs = diffs.slice();
  49356. // split d into two diff changes
  49357. var split_pos = cursor_pos - current_pos;
  49358. var d_left = [d[0], d[1].slice(0, split_pos)];
  49359. var d_right = [d[0], d[1].slice(split_pos)];
  49360. diffs.splice(i, 1, d_left, d_right);
  49361. return [i + 1, diffs];
  49362. } else {
  49363. current_pos = next_pos;
  49364. }
  49365. }
  49366. }
  49367. throw new Error('cursor_pos is out of bounds!')
  49368. }
  49369. /*
  49370. * Modify a diff such that the edit position is "shifted" to the proposed edit location (cursor_position).
  49371. *
  49372. * Case 1)
  49373. * Check if a naive shift is possible:
  49374. * [0, X], [ 1, Y] -> [ 1, Y], [0, X] (if X + Y === Y + X)
  49375. * [0, X], [-1, Y] -> [-1, Y], [0, X] (if X + Y === Y + X) - holds same result
  49376. * Case 2)
  49377. * Check if the following shifts are possible:
  49378. * [0, 'pre'], [ 1, 'prefix'] -> [ 1, 'pre'], [0, 'pre'], [ 1, 'fix']
  49379. * [0, 'pre'], [-1, 'prefix'] -> [-1, 'pre'], [0, 'pre'], [-1, 'fix']
  49380. * ^ ^
  49381. * d d_next
  49382. *
  49383. * @param {Array} diffs Array of diff tuples
  49384. * @param {Int} cursor_pos Suggested edit position. Must not be out of bounds!
  49385. * @return {Array} Array of diff tuples
  49386. */
  49387. function fix_cursor (diffs, cursor_pos) {
  49388. var norm = cursor_normalize_diff(diffs, cursor_pos);
  49389. var ndiffs = norm[1];
  49390. var cursor_pointer = norm[0];
  49391. var d = ndiffs[cursor_pointer];
  49392. var d_next = ndiffs[cursor_pointer + 1];
  49393. if (d == null) {
  49394. // Text was deleted from end of original string,
  49395. // cursor is now out of bounds in new string
  49396. return diffs;
  49397. } else if (d[0] !== DIFF_EQUAL) {
  49398. // A modification happened at the cursor location.
  49399. // This is the expected outcome, so we can return the original diff.
  49400. return diffs;
  49401. } else {
  49402. if (d_next != null && d[1] + d_next[1] === d_next[1] + d[1]) {
  49403. // Case 1)
  49404. // It is possible to perform a naive shift
  49405. ndiffs.splice(cursor_pointer, 2, d_next, d)
  49406. return merge_tuples(ndiffs, cursor_pointer, 2)
  49407. } else if (d_next != null && d_next[1].indexOf(d[1]) === 0) {
  49408. // Case 2)
  49409. // d[1] is a prefix of d_next[1]
  49410. // We can assume that d_next[0] !== 0, since d[0] === 0
  49411. // Shift edit locations..
  49412. ndiffs.splice(cursor_pointer, 2, [d_next[0], d[1]], [0, d[1]]);
  49413. var suffix = d_next[1].slice(d[1].length);
  49414. if (suffix.length > 0) {
  49415. ndiffs.splice(cursor_pointer + 2, 0, [d_next[0], suffix]);
  49416. }
  49417. return merge_tuples(ndiffs, cursor_pointer, 3)
  49418. } else {
  49419. // Not possible to perform any modification
  49420. return diffs;
  49421. }
  49422. }
  49423. }
  49424. /*
  49425. * Check diff did not split surrogate pairs.
  49426. * Ex. [0, '\uD83D'], [-1, '\uDC36'], [1, '\uDC2F'] -> [-1, '\uD83D\uDC36'], [1, '\uD83D\uDC2F']
  49427. * '\uD83D\uDC36' === '🐶', '\uD83D\uDC2F' === '🐯'
  49428. *
  49429. * @param {Array} diffs Array of diff tuples
  49430. * @return {Array} Array of diff tuples
  49431. */
  49432. function fix_emoji (diffs) {
  49433. var compact = false;
  49434. var starts_with_pair_end = function(str) {
  49435. return str.charCodeAt(0) >= 0xDC00 && str.charCodeAt(0) <= 0xDFFF;
  49436. }
  49437. var ends_with_pair_start = function(str) {
  49438. return str.charCodeAt(str.length-1) >= 0xD800 && str.charCodeAt(str.length-1) <= 0xDBFF;
  49439. }
  49440. for (var i = 2; i < diffs.length; i += 1) {
  49441. if (diffs[i-2][0] === DIFF_EQUAL && ends_with_pair_start(diffs[i-2][1]) &&
  49442. diffs[i-1][0] === DIFF_DELETE && starts_with_pair_end(diffs[i-1][1]) &&
  49443. diffs[i][0] === DIFF_INSERT && starts_with_pair_end(diffs[i][1])) {
  49444. compact = true;
  49445. diffs[i-1][1] = diffs[i-2][1].slice(-1) + diffs[i-1][1];
  49446. diffs[i][1] = diffs[i-2][1].slice(-1) + diffs[i][1];
  49447. diffs[i-2][1] = diffs[i-2][1].slice(0, -1);
  49448. }
  49449. }
  49450. if (!compact) {
  49451. return diffs;
  49452. }
  49453. var fixed_diffs = [];
  49454. for (var i = 0; i < diffs.length; i += 1) {
  49455. if (diffs[i][1].length > 0) {
  49456. fixed_diffs.push(diffs[i]);
  49457. }
  49458. }
  49459. return fixed_diffs;
  49460. }
  49461. /*
  49462. * Try to merge tuples with their neigbors in a given range.
  49463. * E.g. [0, 'a'], [0, 'b'] -> [0, 'ab']
  49464. *
  49465. * @param {Array} diffs Array of diff tuples.
  49466. * @param {Int} start Position of the first element to merge (diffs[start] is also merged with diffs[start - 1]).
  49467. * @param {Int} length Number of consecutive elements to check.
  49468. * @return {Array} Array of merged diff tuples.
  49469. */
  49470. function merge_tuples (diffs, start, length) {
  49471. // Check from (start-1) to (start+length).
  49472. for (var i = start + length - 1; i >= 0 && i >= start - 1; i--) {
  49473. if (i + 1 < diffs.length) {
  49474. var left_d = diffs[i];
  49475. var right_d = diffs[i+1];
  49476. if (left_d[0] === right_d[1]) {
  49477. diffs.splice(i, 2, [left_d[0], left_d[1] + right_d[1]]);
  49478. }
  49479. }
  49480. }
  49481. return diffs;
  49482. }
  49483. /***/ }),
  49484. /* 52 */
  49485. /***/ (function(module, exports) {
  49486. exports = module.exports = typeof Object.keys === 'function'
  49487. ? Object.keys : shim;
  49488. exports.shim = shim;
  49489. function shim (obj) {
  49490. var keys = [];
  49491. for (var key in obj) keys.push(key);
  49492. return keys;
  49493. }
  49494. /***/ }),
  49495. /* 53 */
  49496. /***/ (function(module, exports) {
  49497. var supportsArgumentsClass = (function(){
  49498. return Object.prototype.toString.call(arguments)
  49499. })() == '[object Arguments]';
  49500. exports = module.exports = supportsArgumentsClass ? supported : unsupported;
  49501. exports.supported = supported;
  49502. function supported(object) {
  49503. return Object.prototype.toString.call(object) == '[object Arguments]';
  49504. };
  49505. exports.unsupported = unsupported;
  49506. function unsupported(object){
  49507. return object &&
  49508. typeof object == 'object' &&
  49509. typeof object.length == 'number' &&
  49510. Object.prototype.hasOwnProperty.call(object, 'callee') &&
  49511. !Object.prototype.propertyIsEnumerable.call(object, 'callee') ||
  49512. false;
  49513. };
  49514. /***/ }),
  49515. /* 54 */
  49516. /***/ (function(module, exports) {
  49517. 'use strict';
  49518. var has = Object.prototype.hasOwnProperty
  49519. , prefix = '~';
  49520. /**
  49521. * Constructor to create a storage for our `EE` objects.
  49522. * An `Events` instance is a plain object whose properties are event names.
  49523. *
  49524. * @constructor
  49525. * @api private
  49526. */
  49527. function Events() {}
  49528. //
  49529. // We try to not inherit from `Object.prototype`. In some engines creating an
  49530. // instance in this way is faster than calling `Object.create(null)` directly.
  49531. // If `Object.create(null)` is not supported we prefix the event names with a
  49532. // character to make sure that the built-in object properties are not
  49533. // overridden or used as an attack vector.
  49534. //
  49535. if (Object.create) {
  49536. Events.prototype = Object.create(null);
  49537. //
  49538. // This hack is needed because the `__proto__` property is still inherited in
  49539. // some old browsers like Android 4, iPhone 5.1, Opera 11 and Safari 5.
  49540. //
  49541. if (!new Events().__proto__) prefix = false;
  49542. }
  49543. /**
  49544. * Representation of a single event listener.
  49545. *
  49546. * @param {Function} fn The listener function.
  49547. * @param {Mixed} context The context to invoke the listener with.
  49548. * @param {Boolean} [once=false] Specify if the listener is a one-time listener.
  49549. * @constructor
  49550. * @api private
  49551. */
  49552. function EE(fn, context, once) {
  49553. this.fn = fn;
  49554. this.context = context;
  49555. this.once = once || false;
  49556. }
  49557. /**
  49558. * Minimal `EventEmitter` interface that is molded against the Node.js
  49559. * `EventEmitter` interface.
  49560. *
  49561. * @constructor
  49562. * @api public
  49563. */
  49564. function EventEmitter() {
  49565. this._events = new Events();
  49566. this._eventsCount = 0;
  49567. }
  49568. /**
  49569. * Return an array listing the events for which the emitter has registered
  49570. * listeners.
  49571. *
  49572. * @returns {Array}
  49573. * @api public
  49574. */
  49575. EventEmitter.prototype.eventNames = function eventNames() {
  49576. var names = []
  49577. , events
  49578. , name;
  49579. if (this._eventsCount === 0) return names;
  49580. for (name in (events = this._events)) {
  49581. if (has.call(events, name)) names.push(prefix ? name.slice(1) : name);
  49582. }
  49583. if (Object.getOwnPropertySymbols) {
  49584. return names.concat(Object.getOwnPropertySymbols(events));
  49585. }
  49586. return names;
  49587. };
  49588. /**
  49589. * Return the listeners registered for a given event.
  49590. *
  49591. * @param {String|Symbol} event The event name.
  49592. * @param {Boolean} exists Only check if there are listeners.
  49593. * @returns {Array|Boolean}
  49594. * @api public
  49595. */
  49596. EventEmitter.prototype.listeners = function listeners(event, exists) {
  49597. var evt = prefix ? prefix + event : event
  49598. , available = this._events[evt];
  49599. if (exists) return !!available;
  49600. if (!available) return [];
  49601. if (available.fn) return [available.fn];
  49602. for (var i = 0, l = available.length, ee = new Array(l); i < l; i++) {
  49603. ee[i] = available[i].fn;
  49604. }
  49605. return ee;
  49606. };
  49607. /**
  49608. * Calls each of the listeners registered for a given event.
  49609. *
  49610. * @param {String|Symbol} event The event name.
  49611. * @returns {Boolean} `true` if the event had listeners, else `false`.
  49612. * @api public
  49613. */
  49614. EventEmitter.prototype.emit = function emit(event, a1, a2, a3, a4, a5) {
  49615. var evt = prefix ? prefix + event : event;
  49616. if (!this._events[evt]) return false;
  49617. var listeners = this._events[evt]
  49618. , len = arguments.length
  49619. , args
  49620. , i;
  49621. if (listeners.fn) {
  49622. if (listeners.once) this.removeListener(event, listeners.fn, undefined, true);
  49623. switch (len) {
  49624. case 1: return listeners.fn.call(listeners.context), true;
  49625. case 2: return listeners.fn.call(listeners.context, a1), true;
  49626. case 3: return listeners.fn.call(listeners.context, a1, a2), true;
  49627. case 4: return listeners.fn.call(listeners.context, a1, a2, a3), true;
  49628. case 5: return listeners.fn.call(listeners.context, a1, a2, a3, a4), true;
  49629. case 6: return listeners.fn.call(listeners.context, a1, a2, a3, a4, a5), true;
  49630. }
  49631. for (i = 1, args = new Array(len -1); i < len; i++) {
  49632. args[i - 1] = arguments[i];
  49633. }
  49634. listeners.fn.apply(listeners.context, args);
  49635. } else {
  49636. var length = listeners.length
  49637. , j;
  49638. for (i = 0; i < length; i++) {
  49639. if (listeners[i].once) this.removeListener(event, listeners[i].fn, undefined, true);
  49640. switch (len) {
  49641. case 1: listeners[i].fn.call(listeners[i].context); break;
  49642. case 2: listeners[i].fn.call(listeners[i].context, a1); break;
  49643. case 3: listeners[i].fn.call(listeners[i].context, a1, a2); break;
  49644. case 4: listeners[i].fn.call(listeners[i].context, a1, a2, a3); break;
  49645. default:
  49646. if (!args) for (j = 1, args = new Array(len -1); j < len; j++) {
  49647. args[j - 1] = arguments[j];
  49648. }
  49649. listeners[i].fn.apply(listeners[i].context, args);
  49650. }
  49651. }
  49652. }
  49653. return true;
  49654. };
  49655. /**
  49656. * Add a listener for a given event.
  49657. *
  49658. * @param {String|Symbol} event The event name.
  49659. * @param {Function} fn The listener function.
  49660. * @param {Mixed} [context=this] The context to invoke the listener with.
  49661. * @returns {EventEmitter} `this`.
  49662. * @api public
  49663. */
  49664. EventEmitter.prototype.on = function on(event, fn, context) {
  49665. var listener = new EE(fn, context || this)
  49666. , evt = prefix ? prefix + event : event;
  49667. if (!this._events[evt]) this._events[evt] = listener, this._eventsCount++;
  49668. else if (!this._events[evt].fn) this._events[evt].push(listener);
  49669. else this._events[evt] = [this._events[evt], listener];
  49670. return this;
  49671. };
  49672. /**
  49673. * Add a one-time listener for a given event.
  49674. *
  49675. * @param {String|Symbol} event The event name.
  49676. * @param {Function} fn The listener function.
  49677. * @param {Mixed} [context=this] The context to invoke the listener with.
  49678. * @returns {EventEmitter} `this`.
  49679. * @api public
  49680. */
  49681. EventEmitter.prototype.once = function once(event, fn, context) {
  49682. var listener = new EE(fn, context || this, true)
  49683. , evt = prefix ? prefix + event : event;
  49684. if (!this._events[evt]) this._events[evt] = listener, this._eventsCount++;
  49685. else if (!this._events[evt].fn) this._events[evt].push(listener);
  49686. else this._events[evt] = [this._events[evt], listener];
  49687. return this;
  49688. };
  49689. /**
  49690. * Remove the listeners of a given event.
  49691. *
  49692. * @param {String|Symbol} event The event name.
  49693. * @param {Function} fn Only remove the listeners that match this function.
  49694. * @param {Mixed} context Only remove the listeners that have this context.
  49695. * @param {Boolean} once Only remove one-time listeners.
  49696. * @returns {EventEmitter} `this`.
  49697. * @api public
  49698. */
  49699. EventEmitter.prototype.removeListener = function removeListener(event, fn, context, once) {
  49700. var evt = prefix ? prefix + event : event;
  49701. if (!this._events[evt]) return this;
  49702. if (!fn) {
  49703. if (--this._eventsCount === 0) this._events = new Events();
  49704. else delete this._events[evt];
  49705. return this;
  49706. }
  49707. var listeners = this._events[evt];
  49708. if (listeners.fn) {
  49709. if (
  49710. listeners.fn === fn
  49711. && (!once || listeners.once)
  49712. && (!context || listeners.context === context)
  49713. ) {
  49714. if (--this._eventsCount === 0) this._events = new Events();
  49715. else delete this._events[evt];
  49716. }
  49717. } else {
  49718. for (var i = 0, events = [], length = listeners.length; i < length; i++) {
  49719. if (
  49720. listeners[i].fn !== fn
  49721. || (once && !listeners[i].once)
  49722. || (context && listeners[i].context !== context)
  49723. ) {
  49724. events.push(listeners[i]);
  49725. }
  49726. }
  49727. //
  49728. // Reset the array, or remove it completely if we have no more listeners.
  49729. //
  49730. if (events.length) this._events[evt] = events.length === 1 ? events[0] : events;
  49731. else if (--this._eventsCount === 0) this._events = new Events();
  49732. else delete this._events[evt];
  49733. }
  49734. return this;
  49735. };
  49736. /**
  49737. * Remove all listeners, or those of the specified event.
  49738. *
  49739. * @param {String|Symbol} [event] The event name.
  49740. * @returns {EventEmitter} `this`.
  49741. * @api public
  49742. */
  49743. EventEmitter.prototype.removeAllListeners = function removeAllListeners(event) {
  49744. var evt;
  49745. if (event) {
  49746. evt = prefix ? prefix + event : event;
  49747. if (this._events[evt]) {
  49748. if (--this._eventsCount === 0) this._events = new Events();
  49749. else delete this._events[evt];
  49750. }
  49751. } else {
  49752. this._events = new Events();
  49753. this._eventsCount = 0;
  49754. }
  49755. return this;
  49756. };
  49757. //
  49758. // Alias methods names because people roll like that.
  49759. //
  49760. EventEmitter.prototype.off = EventEmitter.prototype.removeListener;
  49761. EventEmitter.prototype.addListener = EventEmitter.prototype.on;
  49762. //
  49763. // This function doesn't apply anymore.
  49764. //
  49765. EventEmitter.prototype.setMaxListeners = function setMaxListeners() {
  49766. return this;
  49767. };
  49768. //
  49769. // Expose the prefix.
  49770. //
  49771. EventEmitter.prefixed = prefix;
  49772. //
  49773. // Allow `EventEmitter` to be imported as module namespace.
  49774. //
  49775. EventEmitter.EventEmitter = EventEmitter;
  49776. //
  49777. // Expose the module.
  49778. //
  49779. if ('undefined' !== typeof module) {
  49780. module.exports = EventEmitter;
  49781. }
  49782. /***/ }),
  49783. /* 55 */
  49784. /***/ (function(module, exports, __nested_webpack_require_316416__) {
  49785. "use strict";
  49786. Object.defineProperty(exports, "__esModule", {
  49787. value: true
  49788. });
  49789. exports.matchText = exports.matchSpacing = exports.matchNewline = exports.matchBlot = exports.matchAttributor = exports.default = undefined;
  49790. var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
  49791. var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();
  49792. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  49793. var _extend2 = __nested_webpack_require_316416__(3);
  49794. var _extend3 = _interopRequireDefault(_extend2);
  49795. var _quillDelta = __nested_webpack_require_316416__(2);
  49796. var _quillDelta2 = _interopRequireDefault(_quillDelta);
  49797. var _parchment = __nested_webpack_require_316416__(0);
  49798. var _parchment2 = _interopRequireDefault(_parchment);
  49799. var _quill = __nested_webpack_require_316416__(5);
  49800. var _quill2 = _interopRequireDefault(_quill);
  49801. var _logger = __nested_webpack_require_316416__(10);
  49802. var _logger2 = _interopRequireDefault(_logger);
  49803. var _module = __nested_webpack_require_316416__(9);
  49804. var _module2 = _interopRequireDefault(_module);
  49805. var _align = __nested_webpack_require_316416__(36);
  49806. var _background = __nested_webpack_require_316416__(37);
  49807. var _code = __nested_webpack_require_316416__(13);
  49808. var _code2 = _interopRequireDefault(_code);
  49809. var _color = __nested_webpack_require_316416__(26);
  49810. var _direction = __nested_webpack_require_316416__(38);
  49811. var _font = __nested_webpack_require_316416__(39);
  49812. var _size = __nested_webpack_require_316416__(40);
  49813. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  49814. function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
  49815. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  49816. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  49817. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  49818. var debug = (0, _logger2.default)('quill:clipboard');
  49819. var DOM_KEY = '__ql-matcher';
  49820. var CLIPBOARD_CONFIG = [[Node.TEXT_NODE, matchText], [Node.TEXT_NODE, matchNewline], ['br', matchBreak], [Node.ELEMENT_NODE, matchNewline], [Node.ELEMENT_NODE, matchBlot], [Node.ELEMENT_NODE, matchSpacing], [Node.ELEMENT_NODE, matchAttributor], [Node.ELEMENT_NODE, matchStyles], ['li', matchIndent], ['b', matchAlias.bind(matchAlias, 'bold')], ['i', matchAlias.bind(matchAlias, 'italic')], ['style', matchIgnore]];
  49821. var ATTRIBUTE_ATTRIBUTORS = [_align.AlignAttribute, _direction.DirectionAttribute].reduce(function (memo, attr) {
  49822. memo[attr.keyName] = attr;
  49823. return memo;
  49824. }, {});
  49825. var STYLE_ATTRIBUTORS = [_align.AlignStyle, _background.BackgroundStyle, _color.ColorStyle, _direction.DirectionStyle, _font.FontStyle, _size.SizeStyle].reduce(function (memo, attr) {
  49826. memo[attr.keyName] = attr;
  49827. return memo;
  49828. }, {});
  49829. var Clipboard = function (_Module) {
  49830. _inherits(Clipboard, _Module);
  49831. function Clipboard(quill, options) {
  49832. _classCallCheck(this, Clipboard);
  49833. var _this = _possibleConstructorReturn(this, (Clipboard.__proto__ || Object.getPrototypeOf(Clipboard)).call(this, quill, options));
  49834. _this.quill.root.addEventListener('paste', _this.onPaste.bind(_this));
  49835. _this.container = _this.quill.addContainer('ql-clipboard');
  49836. _this.container.setAttribute('contenteditable', true);
  49837. _this.container.setAttribute('tabindex', -1);
  49838. _this.matchers = [];
  49839. CLIPBOARD_CONFIG.concat(_this.options.matchers).forEach(function (_ref) {
  49840. var _ref2 = _slicedToArray(_ref, 2),
  49841. selector = _ref2[0],
  49842. matcher = _ref2[1];
  49843. if (!options.matchVisual && matcher === matchSpacing) return;
  49844. _this.addMatcher(selector, matcher);
  49845. });
  49846. return _this;
  49847. }
  49848. _createClass(Clipboard, [{
  49849. key: 'addMatcher',
  49850. value: function addMatcher(selector, matcher) {
  49851. this.matchers.push([selector, matcher]);
  49852. }
  49853. }, {
  49854. key: 'convert',
  49855. value: function convert(html) {
  49856. if (typeof html === 'string') {
  49857. this.container.innerHTML = html.replace(/\>\r?\n +\</g, '><'); // Remove spaces between tags
  49858. return this.convert();
  49859. }
  49860. var formats = this.quill.getFormat(this.quill.selection.savedRange.index);
  49861. if (formats[_code2.default.blotName]) {
  49862. var text = this.container.innerText;
  49863. this.container.innerHTML = '';
  49864. return new _quillDelta2.default().insert(text, _defineProperty({}, _code2.default.blotName, formats[_code2.default.blotName]));
  49865. }
  49866. var _prepareMatching = this.prepareMatching(),
  49867. _prepareMatching2 = _slicedToArray(_prepareMatching, 2),
  49868. elementMatchers = _prepareMatching2[0],
  49869. textMatchers = _prepareMatching2[1];
  49870. var delta = traverse(this.container, elementMatchers, textMatchers);
  49871. // Remove trailing newline
  49872. if (deltaEndsWith(delta, '\n') && delta.ops[delta.ops.length - 1].attributes == null) {
  49873. delta = delta.compose(new _quillDelta2.default().retain(delta.length() - 1).delete(1));
  49874. }
  49875. debug.log('convert', this.container.innerHTML, delta);
  49876. this.container.innerHTML = '';
  49877. return delta;
  49878. }
  49879. }, {
  49880. key: 'dangerouslyPasteHTML',
  49881. value: function dangerouslyPasteHTML(index, html) {
  49882. var source = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : _quill2.default.sources.API;
  49883. if (typeof index === 'string') {
  49884. this.quill.setContents(this.convert(index), html);
  49885. this.quill.setSelection(0, _quill2.default.sources.SILENT);
  49886. } else {
  49887. var paste = this.convert(html);
  49888. this.quill.updateContents(new _quillDelta2.default().retain(index).concat(paste), source);
  49889. this.quill.setSelection(index + paste.length(), _quill2.default.sources.SILENT);
  49890. }
  49891. }
  49892. }, {
  49893. key: 'onPaste',
  49894. value: function onPaste(e) {
  49895. var _this2 = this;
  49896. if (e.defaultPrevented || !this.quill.isEnabled()) return;
  49897. var range = this.quill.getSelection();
  49898. var delta = new _quillDelta2.default().retain(range.index);
  49899. var scrollTop = this.quill.scrollingContainer.scrollTop;
  49900. this.container.focus();
  49901. this.quill.selection.update(_quill2.default.sources.SILENT);
  49902. setTimeout(function () {
  49903. delta = delta.concat(_this2.convert()).delete(range.length);
  49904. _this2.quill.updateContents(delta, _quill2.default.sources.USER);
  49905. // range.length contributes to delta.length()
  49906. _this2.quill.setSelection(delta.length() - range.length, _quill2.default.sources.SILENT);
  49907. _this2.quill.scrollingContainer.scrollTop = scrollTop;
  49908. _this2.quill.focus();
  49909. }, 1);
  49910. }
  49911. }, {
  49912. key: 'prepareMatching',
  49913. value: function prepareMatching() {
  49914. var _this3 = this;
  49915. var elementMatchers = [],
  49916. textMatchers = [];
  49917. this.matchers.forEach(function (pair) {
  49918. var _pair = _slicedToArray(pair, 2),
  49919. selector = _pair[0],
  49920. matcher = _pair[1];
  49921. switch (selector) {
  49922. case Node.TEXT_NODE:
  49923. textMatchers.push(matcher);
  49924. break;
  49925. case Node.ELEMENT_NODE:
  49926. elementMatchers.push(matcher);
  49927. break;
  49928. default:
  49929. [].forEach.call(_this3.container.querySelectorAll(selector), function (node) {
  49930. // TODO use weakmap
  49931. node[DOM_KEY] = node[DOM_KEY] || [];
  49932. node[DOM_KEY].push(matcher);
  49933. });
  49934. break;
  49935. }
  49936. });
  49937. return [elementMatchers, textMatchers];
  49938. }
  49939. }]);
  49940. return Clipboard;
  49941. }(_module2.default);
  49942. Clipboard.DEFAULTS = {
  49943. matchers: [],
  49944. matchVisual: true
  49945. };
  49946. function applyFormat(delta, format, value) {
  49947. if ((typeof format === 'undefined' ? 'undefined' : _typeof(format)) === 'object') {
  49948. return Object.keys(format).reduce(function (delta, key) {
  49949. return applyFormat(delta, key, format[key]);
  49950. }, delta);
  49951. } else {
  49952. return delta.reduce(function (delta, op) {
  49953. if (op.attributes && op.attributes[format]) {
  49954. return delta.push(op);
  49955. } else {
  49956. return delta.insert(op.insert, (0, _extend3.default)({}, _defineProperty({}, format, value), op.attributes));
  49957. }
  49958. }, new _quillDelta2.default());
  49959. }
  49960. }
  49961. function computeStyle(node) {
  49962. if (node.nodeType !== Node.ELEMENT_NODE) return {};
  49963. var DOM_KEY = '__ql-computed-style';
  49964. return node[DOM_KEY] || (node[DOM_KEY] = window.getComputedStyle(node));
  49965. }
  49966. function deltaEndsWith(delta, text) {
  49967. var endText = "";
  49968. for (var i = delta.ops.length - 1; i >= 0 && endText.length < text.length; --i) {
  49969. var op = delta.ops[i];
  49970. if (typeof op.insert !== 'string') break;
  49971. endText = op.insert + endText;
  49972. }
  49973. return endText.slice(-1 * text.length) === text;
  49974. }
  49975. function isLine(node) {
  49976. if (node.childNodes.length === 0) return false; // Exclude embed blocks
  49977. var style = computeStyle(node);
  49978. return ['block', 'list-item'].indexOf(style.display) > -1;
  49979. }
  49980. function traverse(node, elementMatchers, textMatchers) {
  49981. // Post-order
  49982. if (node.nodeType === node.TEXT_NODE) {
  49983. return textMatchers.reduce(function (delta, matcher) {
  49984. return matcher(node, delta);
  49985. }, new _quillDelta2.default());
  49986. } else if (node.nodeType === node.ELEMENT_NODE) {
  49987. return [].reduce.call(node.childNodes || [], function (delta, childNode) {
  49988. var childrenDelta = traverse(childNode, elementMatchers, textMatchers);
  49989. if (childNode.nodeType === node.ELEMENT_NODE) {
  49990. childrenDelta = elementMatchers.reduce(function (childrenDelta, matcher) {
  49991. return matcher(childNode, childrenDelta);
  49992. }, childrenDelta);
  49993. childrenDelta = (childNode[DOM_KEY] || []).reduce(function (childrenDelta, matcher) {
  49994. return matcher(childNode, childrenDelta);
  49995. }, childrenDelta);
  49996. }
  49997. return delta.concat(childrenDelta);
  49998. }, new _quillDelta2.default());
  49999. } else {
  50000. return new _quillDelta2.default();
  50001. }
  50002. }
  50003. function matchAlias(format, node, delta) {
  50004. return applyFormat(delta, format, true);
  50005. }
  50006. function matchAttributor(node, delta) {
  50007. var attributes = _parchment2.default.Attributor.Attribute.keys(node);
  50008. var classes = _parchment2.default.Attributor.Class.keys(node);
  50009. var styles = _parchment2.default.Attributor.Style.keys(node);
  50010. var formats = {};
  50011. attributes.concat(classes).concat(styles).forEach(function (name) {
  50012. var attr = _parchment2.default.query(name, _parchment2.default.Scope.ATTRIBUTE);
  50013. if (attr != null) {
  50014. formats[attr.attrName] = attr.value(node);
  50015. if (formats[attr.attrName]) return;
  50016. }
  50017. attr = ATTRIBUTE_ATTRIBUTORS[name];
  50018. if (attr != null && (attr.attrName === name || attr.keyName === name)) {
  50019. formats[attr.attrName] = attr.value(node) || undefined;
  50020. }
  50021. attr = STYLE_ATTRIBUTORS[name];
  50022. if (attr != null && (attr.attrName === name || attr.keyName === name)) {
  50023. attr = STYLE_ATTRIBUTORS[name];
  50024. formats[attr.attrName] = attr.value(node) || undefined;
  50025. }
  50026. });
  50027. if (Object.keys(formats).length > 0) {
  50028. delta = applyFormat(delta, formats);
  50029. }
  50030. return delta;
  50031. }
  50032. function matchBlot(node, delta) {
  50033. var match = _parchment2.default.query(node);
  50034. if (match == null) return delta;
  50035. if (match.prototype instanceof _parchment2.default.Embed) {
  50036. var embed = {};
  50037. var value = match.value(node);
  50038. if (value != null) {
  50039. embed[match.blotName] = value;
  50040. delta = new _quillDelta2.default().insert(embed, match.formats(node));
  50041. }
  50042. } else if (typeof match.formats === 'function') {
  50043. delta = applyFormat(delta, match.blotName, match.formats(node));
  50044. }
  50045. return delta;
  50046. }
  50047. function matchBreak(node, delta) {
  50048. if (!deltaEndsWith(delta, '\n')) {
  50049. delta.insert('\n');
  50050. }
  50051. return delta;
  50052. }
  50053. function matchIgnore() {
  50054. return new _quillDelta2.default();
  50055. }
  50056. function matchIndent(node, delta) {
  50057. var match = _parchment2.default.query(node);
  50058. if (match == null || match.blotName !== 'list-item' || !deltaEndsWith(delta, '\n')) {
  50059. return delta;
  50060. }
  50061. var indent = -1,
  50062. parent = node.parentNode;
  50063. while (!parent.classList.contains('ql-clipboard')) {
  50064. if ((_parchment2.default.query(parent) || {}).blotName === 'list') {
  50065. indent += 1;
  50066. }
  50067. parent = parent.parentNode;
  50068. }
  50069. if (indent <= 0) return delta;
  50070. return delta.compose(new _quillDelta2.default().retain(delta.length() - 1).retain(1, { indent: indent }));
  50071. }
  50072. function matchNewline(node, delta) {
  50073. if (!deltaEndsWith(delta, '\n')) {
  50074. if (isLine(node) || delta.length() > 0 && node.nextSibling && isLine(node.nextSibling)) {
  50075. delta.insert('\n');
  50076. }
  50077. }
  50078. return delta;
  50079. }
  50080. function matchSpacing(node, delta) {
  50081. if (isLine(node) && node.nextElementSibling != null && !deltaEndsWith(delta, '\n\n')) {
  50082. var nodeHeight = node.offsetHeight + parseFloat(computeStyle(node).marginTop) + parseFloat(computeStyle(node).marginBottom);
  50083. if (node.nextElementSibling.offsetTop > node.offsetTop + nodeHeight * 1.5) {
  50084. delta.insert('\n');
  50085. }
  50086. }
  50087. return delta;
  50088. }
  50089. function matchStyles(node, delta) {
  50090. var formats = {};
  50091. var style = node.style || {};
  50092. if (style.fontStyle && computeStyle(node).fontStyle === 'italic') {
  50093. formats.italic = true;
  50094. }
  50095. if (style.fontWeight && (computeStyle(node).fontWeight.startsWith('bold') || parseInt(computeStyle(node).fontWeight) >= 700)) {
  50096. formats.bold = true;
  50097. }
  50098. if (Object.keys(formats).length > 0) {
  50099. delta = applyFormat(delta, formats);
  50100. }
  50101. if (parseFloat(style.textIndent || 0) > 0) {
  50102. // Could be 0.5in
  50103. delta = new _quillDelta2.default().insert('\t').concat(delta);
  50104. }
  50105. return delta;
  50106. }
  50107. function matchText(node, delta) {
  50108. var text = node.data;
  50109. // Word represents empty line with <o:p>&nbsp;</o:p>
  50110. if (node.parentNode.tagName === 'O:P') {
  50111. return delta.insert(text.trim());
  50112. }
  50113. if (text.trim().length === 0 && node.parentNode.classList.contains('ql-clipboard')) {
  50114. return delta;
  50115. }
  50116. if (!computeStyle(node.parentNode).whiteSpace.startsWith('pre')) {
  50117. // eslint-disable-next-line func-style
  50118. var replacer = function replacer(collapse, match) {
  50119. match = match.replace(/[^\u00a0]/g, ''); // \u00a0 is nbsp;
  50120. return match.length < 1 && collapse ? ' ' : match;
  50121. };
  50122. text = text.replace(/\r\n/g, ' ').replace(/\n/g, ' ');
  50123. text = text.replace(/\s\s+/g, replacer.bind(replacer, true)); // collapse whitespace
  50124. if (node.previousSibling == null && isLine(node.parentNode) || node.previousSibling != null && isLine(node.previousSibling)) {
  50125. text = text.replace(/^\s+/, replacer.bind(replacer, false));
  50126. }
  50127. if (node.nextSibling == null && isLine(node.parentNode) || node.nextSibling != null && isLine(node.nextSibling)) {
  50128. text = text.replace(/\s+$/, replacer.bind(replacer, false));
  50129. }
  50130. }
  50131. return delta.insert(text);
  50132. }
  50133. exports.default = Clipboard;
  50134. exports.matchAttributor = matchAttributor;
  50135. exports.matchBlot = matchBlot;
  50136. exports.matchNewline = matchNewline;
  50137. exports.matchSpacing = matchSpacing;
  50138. exports.matchText = matchText;
  50139. /***/ }),
  50140. /* 56 */
  50141. /***/ (function(module, exports, __nested_webpack_require_333274__) {
  50142. "use strict";
  50143. Object.defineProperty(exports, "__esModule", {
  50144. value: true
  50145. });
  50146. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  50147. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  50148. var _inline = __nested_webpack_require_333274__(6);
  50149. var _inline2 = _interopRequireDefault(_inline);
  50150. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  50151. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  50152. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  50153. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  50154. var Bold = function (_Inline) {
  50155. _inherits(Bold, _Inline);
  50156. function Bold() {
  50157. _classCallCheck(this, Bold);
  50158. return _possibleConstructorReturn(this, (Bold.__proto__ || Object.getPrototypeOf(Bold)).apply(this, arguments));
  50159. }
  50160. _createClass(Bold, [{
  50161. key: 'optimize',
  50162. value: function optimize(context) {
  50163. _get(Bold.prototype.__proto__ || Object.getPrototypeOf(Bold.prototype), 'optimize', this).call(this, context);
  50164. if (this.domNode.tagName !== this.statics.tagName[0]) {
  50165. this.replaceWith(this.statics.blotName);
  50166. }
  50167. }
  50168. }], [{
  50169. key: 'create',
  50170. value: function create() {
  50171. return _get(Bold.__proto__ || Object.getPrototypeOf(Bold), 'create', this).call(this);
  50172. }
  50173. }, {
  50174. key: 'formats',
  50175. value: function formats() {
  50176. return true;
  50177. }
  50178. }]);
  50179. return Bold;
  50180. }(_inline2.default);
  50181. Bold.blotName = 'bold';
  50182. Bold.tagName = ['STRONG', 'B'];
  50183. exports.default = Bold;
  50184. /***/ }),
  50185. /* 57 */
  50186. /***/ (function(module, exports, __nested_webpack_require_336502__) {
  50187. "use strict";
  50188. Object.defineProperty(exports, "__esModule", {
  50189. value: true
  50190. });
  50191. exports.addControls = exports.default = undefined;
  50192. var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();
  50193. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  50194. var _quillDelta = __nested_webpack_require_336502__(2);
  50195. var _quillDelta2 = _interopRequireDefault(_quillDelta);
  50196. var _parchment = __nested_webpack_require_336502__(0);
  50197. var _parchment2 = _interopRequireDefault(_parchment);
  50198. var _quill = __nested_webpack_require_336502__(5);
  50199. var _quill2 = _interopRequireDefault(_quill);
  50200. var _logger = __nested_webpack_require_336502__(10);
  50201. var _logger2 = _interopRequireDefault(_logger);
  50202. var _module = __nested_webpack_require_336502__(9);
  50203. var _module2 = _interopRequireDefault(_module);
  50204. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  50205. function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
  50206. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  50207. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  50208. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  50209. var debug = (0, _logger2.default)('quill:toolbar');
  50210. var Toolbar = function (_Module) {
  50211. _inherits(Toolbar, _Module);
  50212. function Toolbar(quill, options) {
  50213. _classCallCheck(this, Toolbar);
  50214. var _this = _possibleConstructorReturn(this, (Toolbar.__proto__ || Object.getPrototypeOf(Toolbar)).call(this, quill, options));
  50215. if (Array.isArray(_this.options.container)) {
  50216. var container = document.createElement('div');
  50217. addControls(container, _this.options.container);
  50218. quill.container.parentNode.insertBefore(container, quill.container);
  50219. _this.container = container;
  50220. } else if (typeof _this.options.container === 'string') {
  50221. _this.container = document.querySelector(_this.options.container);
  50222. } else {
  50223. _this.container = _this.options.container;
  50224. }
  50225. if (!(_this.container instanceof HTMLElement)) {
  50226. var _ret;
  50227. return _ret = debug.error('Container required for toolbar', _this.options), _possibleConstructorReturn(_this, _ret);
  50228. }
  50229. _this.container.classList.add('ql-toolbar');
  50230. _this.controls = [];
  50231. _this.handlers = {};
  50232. Object.keys(_this.options.handlers).forEach(function (format) {
  50233. _this.addHandler(format, _this.options.handlers[format]);
  50234. });
  50235. [].forEach.call(_this.container.querySelectorAll('button, select'), function (input) {
  50236. _this.attach(input);
  50237. });
  50238. _this.quill.on(_quill2.default.events.EDITOR_CHANGE, function (type, range) {
  50239. if (type === _quill2.default.events.SELECTION_CHANGE) {
  50240. _this.update(range);
  50241. }
  50242. });
  50243. _this.quill.on(_quill2.default.events.SCROLL_OPTIMIZE, function () {
  50244. var _this$quill$selection = _this.quill.selection.getRange(),
  50245. _this$quill$selection2 = _slicedToArray(_this$quill$selection, 1),
  50246. range = _this$quill$selection2[0]; // quill.getSelection triggers update
  50247. _this.update(range);
  50248. });
  50249. return _this;
  50250. }
  50251. _createClass(Toolbar, [{
  50252. key: 'addHandler',
  50253. value: function addHandler(format, handler) {
  50254. this.handlers[format] = handler;
  50255. }
  50256. }, {
  50257. key: 'attach',
  50258. value: function attach(input) {
  50259. var _this2 = this;
  50260. var format = [].find.call(input.classList, function (className) {
  50261. return className.indexOf('ql-') === 0;
  50262. });
  50263. if (!format) return;
  50264. format = format.slice('ql-'.length);
  50265. if (input.tagName === 'BUTTON') {
  50266. input.setAttribute('type', 'button');
  50267. }
  50268. if (this.handlers[format] == null) {
  50269. if (this.quill.scroll.whitelist != null && this.quill.scroll.whitelist[format] == null) {
  50270. debug.warn('ignoring attaching to disabled format', format, input);
  50271. return;
  50272. }
  50273. if (_parchment2.default.query(format) == null) {
  50274. debug.warn('ignoring attaching to nonexistent format', format, input);
  50275. return;
  50276. }
  50277. }
  50278. var eventName = input.tagName === 'SELECT' ? 'change' : 'click';
  50279. input.addEventListener(eventName, function (e) {
  50280. var value = void 0;
  50281. if (input.tagName === 'SELECT') {
  50282. if (input.selectedIndex < 0) return;
  50283. var selected = input.options[input.selectedIndex];
  50284. if (selected.hasAttribute('selected')) {
  50285. value = false;
  50286. } else {
  50287. value = selected.value || false;
  50288. }
  50289. } else {
  50290. if (input.classList.contains('ql-active')) {
  50291. value = false;
  50292. } else {
  50293. value = input.value || !input.hasAttribute('value');
  50294. }
  50295. e.preventDefault();
  50296. }
  50297. _this2.quill.focus();
  50298. var _quill$selection$getR = _this2.quill.selection.getRange(),
  50299. _quill$selection$getR2 = _slicedToArray(_quill$selection$getR, 1),
  50300. range = _quill$selection$getR2[0];
  50301. if (_this2.handlers[format] != null) {
  50302. _this2.handlers[format].call(_this2, value);
  50303. } else if (_parchment2.default.query(format).prototype instanceof _parchment2.default.Embed) {
  50304. value = prompt('Enter ' + format);
  50305. if (!value) return;
  50306. _this2.quill.updateContents(new _quillDelta2.default().retain(range.index).delete(range.length).insert(_defineProperty({}, format, value)), _quill2.default.sources.USER);
  50307. } else {
  50308. _this2.quill.format(format, value, _quill2.default.sources.USER);
  50309. }
  50310. _this2.update(range);
  50311. });
  50312. // TODO use weakmap
  50313. this.controls.push([format, input]);
  50314. }
  50315. }, {
  50316. key: 'update',
  50317. value: function update(range) {
  50318. var formats = range == null ? {} : this.quill.getFormat(range);
  50319. this.controls.forEach(function (pair) {
  50320. var _pair = _slicedToArray(pair, 2),
  50321. format = _pair[0],
  50322. input = _pair[1];
  50323. if (input.tagName === 'SELECT') {
  50324. var option = void 0;
  50325. if (range == null) {
  50326. option = null;
  50327. } else if (formats[format] == null) {
  50328. option = input.querySelector('option[selected]');
  50329. } else if (!Array.isArray(formats[format])) {
  50330. var value = formats[format];
  50331. if (typeof value === 'string') {
  50332. value = value.replace(/\"/g, '\\"');
  50333. }
  50334. option = input.querySelector('option[value="' + value + '"]');
  50335. }
  50336. if (option == null) {
  50337. input.value = ''; // TODO make configurable?
  50338. input.selectedIndex = -1;
  50339. } else {
  50340. option.selected = true;
  50341. }
  50342. } else {
  50343. if (range == null) {
  50344. input.classList.remove('ql-active');
  50345. } else if (input.hasAttribute('value')) {
  50346. // both being null should match (default values)
  50347. // '1' should match with 1 (headers)
  50348. var isActive = formats[format] === input.getAttribute('value') || formats[format] != null && formats[format].toString() === input.getAttribute('value') || formats[format] == null && !input.getAttribute('value');
  50349. input.classList.toggle('ql-active', isActive);
  50350. } else {
  50351. input.classList.toggle('ql-active', formats[format] != null);
  50352. }
  50353. }
  50354. });
  50355. }
  50356. }]);
  50357. return Toolbar;
  50358. }(_module2.default);
  50359. Toolbar.DEFAULTS = {};
  50360. function addButton(container, format, value) {
  50361. var input = document.createElement('button');
  50362. input.setAttribute('type', 'button');
  50363. input.classList.add('ql-' + format);
  50364. if (value != null) {
  50365. input.value = value;
  50366. }
  50367. container.appendChild(input);
  50368. }
  50369. function addControls(container, groups) {
  50370. if (!Array.isArray(groups[0])) {
  50371. groups = [groups];
  50372. }
  50373. groups.forEach(function (controls) {
  50374. var group = document.createElement('span');
  50375. group.classList.add('ql-formats');
  50376. controls.forEach(function (control) {
  50377. if (typeof control === 'string') {
  50378. addButton(group, control);
  50379. } else {
  50380. var format = Object.keys(control)[0];
  50381. var value = control[format];
  50382. if (Array.isArray(value)) {
  50383. addSelect(group, format, value);
  50384. } else {
  50385. addButton(group, format, value);
  50386. }
  50387. }
  50388. });
  50389. container.appendChild(group);
  50390. });
  50391. }
  50392. function addSelect(container, format, values) {
  50393. var input = document.createElement('select');
  50394. input.classList.add('ql-' + format);
  50395. values.forEach(function (value) {
  50396. var option = document.createElement('option');
  50397. if (value !== false) {
  50398. option.setAttribute('value', value);
  50399. } else {
  50400. option.setAttribute('selected', 'selected');
  50401. }
  50402. input.appendChild(option);
  50403. });
  50404. container.appendChild(input);
  50405. }
  50406. Toolbar.DEFAULTS = {
  50407. container: null,
  50408. handlers: {
  50409. clean: function clean() {
  50410. var _this3 = this;
  50411. var range = this.quill.getSelection();
  50412. if (range == null) return;
  50413. if (range.length == 0) {
  50414. var formats = this.quill.getFormat();
  50415. Object.keys(formats).forEach(function (name) {
  50416. // Clean functionality in existing apps only clean inline formats
  50417. if (_parchment2.default.query(name, _parchment2.default.Scope.INLINE) != null) {
  50418. _this3.quill.format(name, false);
  50419. }
  50420. });
  50421. } else {
  50422. this.quill.removeFormat(range, _quill2.default.sources.USER);
  50423. }
  50424. },
  50425. direction: function direction(value) {
  50426. var align = this.quill.getFormat()['align'];
  50427. if (value === 'rtl' && align == null) {
  50428. this.quill.format('align', 'right', _quill2.default.sources.USER);
  50429. } else if (!value && align === 'right') {
  50430. this.quill.format('align', false, _quill2.default.sources.USER);
  50431. }
  50432. this.quill.format('direction', value, _quill2.default.sources.USER);
  50433. },
  50434. indent: function indent(value) {
  50435. var range = this.quill.getSelection();
  50436. var formats = this.quill.getFormat(range);
  50437. var indent = parseInt(formats.indent || 0);
  50438. if (value === '+1' || value === '-1') {
  50439. var modifier = value === '+1' ? 1 : -1;
  50440. if (formats.direction === 'rtl') modifier *= -1;
  50441. this.quill.format('indent', indent + modifier, _quill2.default.sources.USER);
  50442. }
  50443. },
  50444. link: function link(value) {
  50445. if (value === true) {
  50446. value = prompt('Enter link URL:');
  50447. }
  50448. this.quill.format('link', value, _quill2.default.sources.USER);
  50449. },
  50450. list: function list(value) {
  50451. var range = this.quill.getSelection();
  50452. var formats = this.quill.getFormat(range);
  50453. if (value === 'check') {
  50454. if (formats['list'] === 'checked' || formats['list'] === 'unchecked') {
  50455. this.quill.format('list', false, _quill2.default.sources.USER);
  50456. } else {
  50457. this.quill.format('list', 'unchecked', _quill2.default.sources.USER);
  50458. }
  50459. } else {
  50460. this.quill.format('list', value, _quill2.default.sources.USER);
  50461. }
  50462. }
  50463. }
  50464. };
  50465. exports.default = Toolbar;
  50466. exports.addControls = addControls;
  50467. /***/ }),
  50468. /* 58 */
  50469. /***/ (function(module, exports) {
  50470. module.exports = "<svg viewbox=\"0 0 18 18\"> <polyline class=\"ql-even ql-stroke\" points=\"5 7 3 9 5 11\"></polyline> <polyline class=\"ql-even ql-stroke\" points=\"13 7 15 9 13 11\"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>";
  50471. /***/ }),
  50472. /* 59 */
  50473. /***/ (function(module, exports, __nested_webpack_require_349781__) {
  50474. "use strict";
  50475. Object.defineProperty(exports, "__esModule", {
  50476. value: true
  50477. });
  50478. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  50479. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  50480. var _picker = __nested_webpack_require_349781__(28);
  50481. var _picker2 = _interopRequireDefault(_picker);
  50482. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  50483. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  50484. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  50485. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  50486. var ColorPicker = function (_Picker) {
  50487. _inherits(ColorPicker, _Picker);
  50488. function ColorPicker(select, label) {
  50489. _classCallCheck(this, ColorPicker);
  50490. var _this = _possibleConstructorReturn(this, (ColorPicker.__proto__ || Object.getPrototypeOf(ColorPicker)).call(this, select));
  50491. _this.label.innerHTML = label;
  50492. _this.container.classList.add('ql-color-picker');
  50493. [].slice.call(_this.container.querySelectorAll('.ql-picker-item'), 0, 7).forEach(function (item) {
  50494. item.classList.add('ql-primary');
  50495. });
  50496. return _this;
  50497. }
  50498. _createClass(ColorPicker, [{
  50499. key: 'buildItem',
  50500. value: function buildItem(option) {
  50501. var item = _get(ColorPicker.prototype.__proto__ || Object.getPrototypeOf(ColorPicker.prototype), 'buildItem', this).call(this, option);
  50502. item.style.backgroundColor = option.getAttribute('value') || '';
  50503. return item;
  50504. }
  50505. }, {
  50506. key: 'selectItem',
  50507. value: function selectItem(item, trigger) {
  50508. _get(ColorPicker.prototype.__proto__ || Object.getPrototypeOf(ColorPicker.prototype), 'selectItem', this).call(this, item, trigger);
  50509. var colorLabel = this.label.querySelector('.ql-color-label');
  50510. var value = item ? item.getAttribute('data-value') || '' : '';
  50511. if (colorLabel) {
  50512. if (colorLabel.tagName === 'line') {
  50513. colorLabel.style.stroke = value;
  50514. } else {
  50515. colorLabel.style.fill = value;
  50516. }
  50517. }
  50518. }
  50519. }]);
  50520. return ColorPicker;
  50521. }(_picker2.default);
  50522. exports.default = ColorPicker;
  50523. /***/ }),
  50524. /* 60 */
  50525. /***/ (function(module, exports, __nested_webpack_require_353592__) {
  50526. "use strict";
  50527. Object.defineProperty(exports, "__esModule", {
  50528. value: true
  50529. });
  50530. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  50531. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  50532. var _picker = __nested_webpack_require_353592__(28);
  50533. var _picker2 = _interopRequireDefault(_picker);
  50534. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  50535. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  50536. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  50537. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  50538. var IconPicker = function (_Picker) {
  50539. _inherits(IconPicker, _Picker);
  50540. function IconPicker(select, icons) {
  50541. _classCallCheck(this, IconPicker);
  50542. var _this = _possibleConstructorReturn(this, (IconPicker.__proto__ || Object.getPrototypeOf(IconPicker)).call(this, select));
  50543. _this.container.classList.add('ql-icon-picker');
  50544. [].forEach.call(_this.container.querySelectorAll('.ql-picker-item'), function (item) {
  50545. item.innerHTML = icons[item.getAttribute('data-value') || ''];
  50546. });
  50547. _this.defaultItem = _this.container.querySelector('.ql-selected');
  50548. _this.selectItem(_this.defaultItem);
  50549. return _this;
  50550. }
  50551. _createClass(IconPicker, [{
  50552. key: 'selectItem',
  50553. value: function selectItem(item, trigger) {
  50554. _get(IconPicker.prototype.__proto__ || Object.getPrototypeOf(IconPicker.prototype), 'selectItem', this).call(this, item, trigger);
  50555. item = item || this.defaultItem;
  50556. this.label.innerHTML = item.innerHTML;
  50557. }
  50558. }]);
  50559. return IconPicker;
  50560. }(_picker2.default);
  50561. exports.default = IconPicker;
  50562. /***/ }),
  50563. /* 61 */
  50564. /***/ (function(module, exports, __webpack_require__) {
  50565. "use strict";
  50566. Object.defineProperty(exports, "__esModule", {
  50567. value: true
  50568. });
  50569. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  50570. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  50571. var Tooltip = function () {
  50572. function Tooltip(quill, boundsContainer) {
  50573. var _this = this;
  50574. _classCallCheck(this, Tooltip);
  50575. this.quill = quill;
  50576. this.boundsContainer = boundsContainer || document.body;
  50577. this.root = quill.addContainer('ql-tooltip');
  50578. this.root.innerHTML = this.constructor.TEMPLATE;
  50579. if (this.quill.root === this.quill.scrollingContainer) {
  50580. this.quill.root.addEventListener('scroll', function () {
  50581. _this.root.style.marginTop = -1 * _this.quill.root.scrollTop + 'px';
  50582. });
  50583. }
  50584. this.hide();
  50585. }
  50586. _createClass(Tooltip, [{
  50587. key: 'hide',
  50588. value: function hide() {
  50589. this.root.classList.add('ql-hidden');
  50590. }
  50591. }, {
  50592. key: 'position',
  50593. value: function position(reference) {
  50594. var left = reference.left + reference.width / 2 - this.root.offsetWidth / 2;
  50595. // root.scrollTop should be 0 if scrollContainer !== root
  50596. var top = reference.bottom + this.quill.root.scrollTop;
  50597. this.root.style.left = left + 'px';
  50598. this.root.style.top = top + 'px';
  50599. this.root.classList.remove('ql-flip');
  50600. var containerBounds = this.boundsContainer.getBoundingClientRect();
  50601. var rootBounds = this.root.getBoundingClientRect();
  50602. var shift = 0;
  50603. if (rootBounds.right > containerBounds.right) {
  50604. shift = containerBounds.right - rootBounds.right;
  50605. this.root.style.left = left + shift + 'px';
  50606. }
  50607. if (rootBounds.left < containerBounds.left) {
  50608. shift = containerBounds.left - rootBounds.left;
  50609. this.root.style.left = left + shift + 'px';
  50610. }
  50611. if (rootBounds.bottom > containerBounds.bottom) {
  50612. var height = rootBounds.bottom - rootBounds.top;
  50613. var verticalShift = reference.bottom - reference.top + height;
  50614. this.root.style.top = top - verticalShift + 'px';
  50615. this.root.classList.add('ql-flip');
  50616. }
  50617. return shift;
  50618. }
  50619. }, {
  50620. key: 'show',
  50621. value: function show() {
  50622. this.root.classList.remove('ql-editing');
  50623. this.root.classList.remove('ql-hidden');
  50624. }
  50625. }]);
  50626. return Tooltip;
  50627. }();
  50628. exports.default = Tooltip;
  50629. /***/ }),
  50630. /* 62 */
  50631. /***/ (function(module, exports, __nested_webpack_require_359932__) {
  50632. "use strict";
  50633. Object.defineProperty(exports, "__esModule", {
  50634. value: true
  50635. });
  50636. var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();
  50637. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  50638. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  50639. var _extend = __nested_webpack_require_359932__(3);
  50640. var _extend2 = _interopRequireDefault(_extend);
  50641. var _emitter = __nested_webpack_require_359932__(8);
  50642. var _emitter2 = _interopRequireDefault(_emitter);
  50643. var _base = __nested_webpack_require_359932__(43);
  50644. var _base2 = _interopRequireDefault(_base);
  50645. var _link = __nested_webpack_require_359932__(27);
  50646. var _link2 = _interopRequireDefault(_link);
  50647. var _selection = __nested_webpack_require_359932__(15);
  50648. var _icons = __nested_webpack_require_359932__(41);
  50649. var _icons2 = _interopRequireDefault(_icons);
  50650. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  50651. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  50652. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  50653. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  50654. var TOOLBAR_CONFIG = [[{ header: ['1', '2', '3', false] }], ['bold', 'italic', 'underline', 'link'], [{ list: 'ordered' }, { list: 'bullet' }], ['clean']];
  50655. var SnowTheme = function (_BaseTheme) {
  50656. _inherits(SnowTheme, _BaseTheme);
  50657. function SnowTheme(quill, options) {
  50658. _classCallCheck(this, SnowTheme);
  50659. if (options.modules.toolbar != null && options.modules.toolbar.container == null) {
  50660. options.modules.toolbar.container = TOOLBAR_CONFIG;
  50661. }
  50662. var _this = _possibleConstructorReturn(this, (SnowTheme.__proto__ || Object.getPrototypeOf(SnowTheme)).call(this, quill, options));
  50663. _this.quill.container.classList.add('ql-snow');
  50664. return _this;
  50665. }
  50666. _createClass(SnowTheme, [{
  50667. key: 'extendToolbar',
  50668. value: function extendToolbar(toolbar) {
  50669. toolbar.container.classList.add('ql-snow');
  50670. this.buildButtons([].slice.call(toolbar.container.querySelectorAll('button')), _icons2.default);
  50671. this.buildPickers([].slice.call(toolbar.container.querySelectorAll('select')), _icons2.default);
  50672. this.tooltip = new SnowTooltip(this.quill, this.options.bounds);
  50673. if (toolbar.container.querySelector('.ql-link')) {
  50674. this.quill.keyboard.addBinding({ key: 'K', shortKey: true }, function (range, context) {
  50675. toolbar.handlers['link'].call(toolbar, !context.format.link);
  50676. });
  50677. }
  50678. }
  50679. }]);
  50680. return SnowTheme;
  50681. }(_base2.default);
  50682. SnowTheme.DEFAULTS = (0, _extend2.default)(true, {}, _base2.default.DEFAULTS, {
  50683. modules: {
  50684. toolbar: {
  50685. handlers: {
  50686. link: function link(value) {
  50687. if (value) {
  50688. var range = this.quill.getSelection();
  50689. if (range == null || range.length == 0) return;
  50690. var preview = this.quill.getText(range);
  50691. if (/^\S+@\S+\.\S+$/.test(preview) && preview.indexOf('mailto:') !== 0) {
  50692. preview = 'mailto:' + preview;
  50693. }
  50694. var tooltip = this.quill.theme.tooltip;
  50695. tooltip.edit('link', preview);
  50696. } else {
  50697. this.quill.format('link', false);
  50698. }
  50699. }
  50700. }
  50701. }
  50702. }
  50703. });
  50704. var SnowTooltip = function (_BaseTooltip) {
  50705. _inherits(SnowTooltip, _BaseTooltip);
  50706. function SnowTooltip(quill, bounds) {
  50707. _classCallCheck(this, SnowTooltip);
  50708. var _this2 = _possibleConstructorReturn(this, (SnowTooltip.__proto__ || Object.getPrototypeOf(SnowTooltip)).call(this, quill, bounds));
  50709. _this2.preview = _this2.root.querySelector('a.ql-preview');
  50710. return _this2;
  50711. }
  50712. _createClass(SnowTooltip, [{
  50713. key: 'listen',
  50714. value: function listen() {
  50715. var _this3 = this;
  50716. _get(SnowTooltip.prototype.__proto__ || Object.getPrototypeOf(SnowTooltip.prototype), 'listen', this).call(this);
  50717. this.root.querySelector('a.ql-action').addEventListener('click', function (event) {
  50718. if (_this3.root.classList.contains('ql-editing')) {
  50719. _this3.save();
  50720. } else {
  50721. _this3.edit('link', _this3.preview.textContent);
  50722. }
  50723. event.preventDefault();
  50724. });
  50725. this.root.querySelector('a.ql-remove').addEventListener('click', function (event) {
  50726. if (_this3.linkRange != null) {
  50727. var range = _this3.linkRange;
  50728. _this3.restoreFocus();
  50729. _this3.quill.formatText(range, 'link', false, _emitter2.default.sources.USER);
  50730. delete _this3.linkRange;
  50731. }
  50732. event.preventDefault();
  50733. _this3.hide();
  50734. });
  50735. this.quill.on(_emitter2.default.events.SELECTION_CHANGE, function (range, oldRange, source) {
  50736. if (range == null) return;
  50737. if (range.length === 0 && source === _emitter2.default.sources.USER) {
  50738. var _quill$scroll$descend = _this3.quill.scroll.descendant(_link2.default, range.index),
  50739. _quill$scroll$descend2 = _slicedToArray(_quill$scroll$descend, 2),
  50740. link = _quill$scroll$descend2[0],
  50741. offset = _quill$scroll$descend2[1];
  50742. if (link != null) {
  50743. _this3.linkRange = new _selection.Range(range.index - offset, link.length());
  50744. var preview = _link2.default.formats(link.domNode);
  50745. _this3.preview.textContent = preview;
  50746. _this3.preview.setAttribute('href', preview);
  50747. _this3.show();
  50748. _this3.position(_this3.quill.getBounds(_this3.linkRange));
  50749. return;
  50750. }
  50751. } else {
  50752. delete _this3.linkRange;
  50753. }
  50754. _this3.hide();
  50755. });
  50756. }
  50757. }, {
  50758. key: 'show',
  50759. value: function show() {
  50760. _get(SnowTooltip.prototype.__proto__ || Object.getPrototypeOf(SnowTooltip.prototype), 'show', this).call(this);
  50761. this.root.removeAttribute('data-mode');
  50762. }
  50763. }]);
  50764. return SnowTooltip;
  50765. }(_base.BaseTooltip);
  50766. SnowTooltip.TEMPLATE = ['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>', '<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">', '<a class="ql-action"></a>', '<a class="ql-remove"></a>'].join('');
  50767. exports.default = SnowTheme;
  50768. /***/ }),
  50769. /* 63 */
  50770. /***/ (function(module, exports, __nested_webpack_require_368316__) {
  50771. "use strict";
  50772. Object.defineProperty(exports, "__esModule", {
  50773. value: true
  50774. });
  50775. var _core = __nested_webpack_require_368316__(29);
  50776. var _core2 = _interopRequireDefault(_core);
  50777. var _align = __nested_webpack_require_368316__(36);
  50778. var _direction = __nested_webpack_require_368316__(38);
  50779. var _indent = __nested_webpack_require_368316__(64);
  50780. var _blockquote = __nested_webpack_require_368316__(65);
  50781. var _blockquote2 = _interopRequireDefault(_blockquote);
  50782. var _header = __nested_webpack_require_368316__(66);
  50783. var _header2 = _interopRequireDefault(_header);
  50784. var _list = __nested_webpack_require_368316__(67);
  50785. var _list2 = _interopRequireDefault(_list);
  50786. var _background = __nested_webpack_require_368316__(37);
  50787. var _color = __nested_webpack_require_368316__(26);
  50788. var _font = __nested_webpack_require_368316__(39);
  50789. var _size = __nested_webpack_require_368316__(40);
  50790. var _bold = __nested_webpack_require_368316__(56);
  50791. var _bold2 = _interopRequireDefault(_bold);
  50792. var _italic = __nested_webpack_require_368316__(68);
  50793. var _italic2 = _interopRequireDefault(_italic);
  50794. var _link = __nested_webpack_require_368316__(27);
  50795. var _link2 = _interopRequireDefault(_link);
  50796. var _script = __nested_webpack_require_368316__(69);
  50797. var _script2 = _interopRequireDefault(_script);
  50798. var _strike = __nested_webpack_require_368316__(70);
  50799. var _strike2 = _interopRequireDefault(_strike);
  50800. var _underline = __nested_webpack_require_368316__(71);
  50801. var _underline2 = _interopRequireDefault(_underline);
  50802. var _image = __nested_webpack_require_368316__(72);
  50803. var _image2 = _interopRequireDefault(_image);
  50804. var _video = __nested_webpack_require_368316__(73);
  50805. var _video2 = _interopRequireDefault(_video);
  50806. var _code = __nested_webpack_require_368316__(13);
  50807. var _code2 = _interopRequireDefault(_code);
  50808. var _formula = __nested_webpack_require_368316__(74);
  50809. var _formula2 = _interopRequireDefault(_formula);
  50810. var _syntax = __nested_webpack_require_368316__(75);
  50811. var _syntax2 = _interopRequireDefault(_syntax);
  50812. var _toolbar = __nested_webpack_require_368316__(57);
  50813. var _toolbar2 = _interopRequireDefault(_toolbar);
  50814. var _icons = __nested_webpack_require_368316__(41);
  50815. var _icons2 = _interopRequireDefault(_icons);
  50816. var _picker = __nested_webpack_require_368316__(28);
  50817. var _picker2 = _interopRequireDefault(_picker);
  50818. var _colorPicker = __nested_webpack_require_368316__(59);
  50819. var _colorPicker2 = _interopRequireDefault(_colorPicker);
  50820. var _iconPicker = __nested_webpack_require_368316__(60);
  50821. var _iconPicker2 = _interopRequireDefault(_iconPicker);
  50822. var _tooltip = __nested_webpack_require_368316__(61);
  50823. var _tooltip2 = _interopRequireDefault(_tooltip);
  50824. var _bubble = __nested_webpack_require_368316__(108);
  50825. var _bubble2 = _interopRequireDefault(_bubble);
  50826. var _snow = __nested_webpack_require_368316__(62);
  50827. var _snow2 = _interopRequireDefault(_snow);
  50828. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  50829. _core2.default.register({
  50830. 'attributors/attribute/direction': _direction.DirectionAttribute,
  50831. 'attributors/class/align': _align.AlignClass,
  50832. 'attributors/class/background': _background.BackgroundClass,
  50833. 'attributors/class/color': _color.ColorClass,
  50834. 'attributors/class/direction': _direction.DirectionClass,
  50835. 'attributors/class/font': _font.FontClass,
  50836. 'attributors/class/size': _size.SizeClass,
  50837. 'attributors/style/align': _align.AlignStyle,
  50838. 'attributors/style/background': _background.BackgroundStyle,
  50839. 'attributors/style/color': _color.ColorStyle,
  50840. 'attributors/style/direction': _direction.DirectionStyle,
  50841. 'attributors/style/font': _font.FontStyle,
  50842. 'attributors/style/size': _size.SizeStyle
  50843. }, true);
  50844. _core2.default.register({
  50845. 'formats/align': _align.AlignClass,
  50846. 'formats/direction': _direction.DirectionClass,
  50847. 'formats/indent': _indent.IndentClass,
  50848. 'formats/background': _background.BackgroundStyle,
  50849. 'formats/color': _color.ColorStyle,
  50850. 'formats/font': _font.FontClass,
  50851. 'formats/size': _size.SizeClass,
  50852. 'formats/blockquote': _blockquote2.default,
  50853. 'formats/code-block': _code2.default,
  50854. 'formats/header': _header2.default,
  50855. 'formats/list': _list2.default,
  50856. 'formats/bold': _bold2.default,
  50857. 'formats/code': _code.Code,
  50858. 'formats/italic': _italic2.default,
  50859. 'formats/link': _link2.default,
  50860. 'formats/script': _script2.default,
  50861. 'formats/strike': _strike2.default,
  50862. 'formats/underline': _underline2.default,
  50863. 'formats/image': _image2.default,
  50864. 'formats/video': _video2.default,
  50865. 'formats/list/item': _list.ListItem,
  50866. 'modules/formula': _formula2.default,
  50867. 'modules/syntax': _syntax2.default,
  50868. 'modules/toolbar': _toolbar2.default,
  50869. 'themes/bubble': _bubble2.default,
  50870. 'themes/snow': _snow2.default,
  50871. 'ui/icons': _icons2.default,
  50872. 'ui/picker': _picker2.default,
  50873. 'ui/icon-picker': _iconPicker2.default,
  50874. 'ui/color-picker': _colorPicker2.default,
  50875. 'ui/tooltip': _tooltip2.default
  50876. }, true);
  50877. exports.default = _core2.default;
  50878. /***/ }),
  50879. /* 64 */
  50880. /***/ (function(module, exports, __nested_webpack_require_372903__) {
  50881. "use strict";
  50882. Object.defineProperty(exports, "__esModule", {
  50883. value: true
  50884. });
  50885. exports.IndentClass = undefined;
  50886. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  50887. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  50888. var _parchment = __nested_webpack_require_372903__(0);
  50889. var _parchment2 = _interopRequireDefault(_parchment);
  50890. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  50891. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  50892. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  50893. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  50894. var IdentAttributor = function (_Parchment$Attributor) {
  50895. _inherits(IdentAttributor, _Parchment$Attributor);
  50896. function IdentAttributor() {
  50897. _classCallCheck(this, IdentAttributor);
  50898. return _possibleConstructorReturn(this, (IdentAttributor.__proto__ || Object.getPrototypeOf(IdentAttributor)).apply(this, arguments));
  50899. }
  50900. _createClass(IdentAttributor, [{
  50901. key: 'add',
  50902. value: function add(node, value) {
  50903. if (value === '+1' || value === '-1') {
  50904. var indent = this.value(node) || 0;
  50905. value = value === '+1' ? indent + 1 : indent - 1;
  50906. }
  50907. if (value === 0) {
  50908. this.remove(node);
  50909. return true;
  50910. } else {
  50911. return _get(IdentAttributor.prototype.__proto__ || Object.getPrototypeOf(IdentAttributor.prototype), 'add', this).call(this, node, value);
  50912. }
  50913. }
  50914. }, {
  50915. key: 'canAdd',
  50916. value: function canAdd(node, value) {
  50917. return _get(IdentAttributor.prototype.__proto__ || Object.getPrototypeOf(IdentAttributor.prototype), 'canAdd', this).call(this, node, value) || _get(IdentAttributor.prototype.__proto__ || Object.getPrototypeOf(IdentAttributor.prototype), 'canAdd', this).call(this, node, parseInt(value));
  50918. }
  50919. }, {
  50920. key: 'value',
  50921. value: function value(node) {
  50922. return parseInt(_get(IdentAttributor.prototype.__proto__ || Object.getPrototypeOf(IdentAttributor.prototype), 'value', this).call(this, node)) || undefined; // Don't return NaN
  50923. }
  50924. }]);
  50925. return IdentAttributor;
  50926. }(_parchment2.default.Attributor.Class);
  50927. var IndentClass = new IdentAttributor('indent', 'ql-indent', {
  50928. scope: _parchment2.default.Scope.BLOCK,
  50929. whitelist: [1, 2, 3, 4, 5, 6, 7, 8]
  50930. });
  50931. exports.IndentClass = IndentClass;
  50932. /***/ }),
  50933. /* 65 */
  50934. /***/ (function(module, exports, __nested_webpack_require_376943__) {
  50935. "use strict";
  50936. Object.defineProperty(exports, "__esModule", {
  50937. value: true
  50938. });
  50939. var _block = __nested_webpack_require_376943__(4);
  50940. var _block2 = _interopRequireDefault(_block);
  50941. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  50942. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  50943. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  50944. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  50945. var Blockquote = function (_Block) {
  50946. _inherits(Blockquote, _Block);
  50947. function Blockquote() {
  50948. _classCallCheck(this, Blockquote);
  50949. return _possibleConstructorReturn(this, (Blockquote.__proto__ || Object.getPrototypeOf(Blockquote)).apply(this, arguments));
  50950. }
  50951. return Blockquote;
  50952. }(_block2.default);
  50953. Blockquote.blotName = 'blockquote';
  50954. Blockquote.tagName = 'blockquote';
  50955. exports.default = Blockquote;
  50956. /***/ }),
  50957. /* 66 */
  50958. /***/ (function(module, exports, __nested_webpack_require_378592__) {
  50959. "use strict";
  50960. Object.defineProperty(exports, "__esModule", {
  50961. value: true
  50962. });
  50963. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  50964. var _block = __nested_webpack_require_378592__(4);
  50965. var _block2 = _interopRequireDefault(_block);
  50966. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  50967. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  50968. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  50969. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  50970. var Header = function (_Block) {
  50971. _inherits(Header, _Block);
  50972. function Header() {
  50973. _classCallCheck(this, Header);
  50974. return _possibleConstructorReturn(this, (Header.__proto__ || Object.getPrototypeOf(Header)).apply(this, arguments));
  50975. }
  50976. _createClass(Header, null, [{
  50977. key: 'formats',
  50978. value: function formats(domNode) {
  50979. return this.tagName.indexOf(domNode.tagName) + 1;
  50980. }
  50981. }]);
  50982. return Header;
  50983. }(_block2.default);
  50984. Header.blotName = 'header';
  50985. Header.tagName = ['H1', 'H2', 'H3', 'H4', 'H5', 'H6'];
  50986. exports.default = Header;
  50987. /***/ }),
  50988. /* 67 */
  50989. /***/ (function(module, exports, __nested_webpack_require_380948__) {
  50990. "use strict";
  50991. Object.defineProperty(exports, "__esModule", {
  50992. value: true
  50993. });
  50994. exports.default = exports.ListItem = undefined;
  50995. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  50996. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  50997. var _parchment = __nested_webpack_require_380948__(0);
  50998. var _parchment2 = _interopRequireDefault(_parchment);
  50999. var _block = __nested_webpack_require_380948__(4);
  51000. var _block2 = _interopRequireDefault(_block);
  51001. var _container = __nested_webpack_require_380948__(25);
  51002. var _container2 = _interopRequireDefault(_container);
  51003. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  51004. function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
  51005. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  51006. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  51007. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  51008. var ListItem = function (_Block) {
  51009. _inherits(ListItem, _Block);
  51010. function ListItem() {
  51011. _classCallCheck(this, ListItem);
  51012. return _possibleConstructorReturn(this, (ListItem.__proto__ || Object.getPrototypeOf(ListItem)).apply(this, arguments));
  51013. }
  51014. _createClass(ListItem, [{
  51015. key: 'format',
  51016. value: function format(name, value) {
  51017. if (name === List.blotName && !value) {
  51018. this.replaceWith(_parchment2.default.create(this.statics.scope));
  51019. } else {
  51020. _get(ListItem.prototype.__proto__ || Object.getPrototypeOf(ListItem.prototype), 'format', this).call(this, name, value);
  51021. }
  51022. }
  51023. }, {
  51024. key: 'remove',
  51025. value: function remove() {
  51026. if (this.prev == null && this.next == null) {
  51027. this.parent.remove();
  51028. } else {
  51029. _get(ListItem.prototype.__proto__ || Object.getPrototypeOf(ListItem.prototype), 'remove', this).call(this);
  51030. }
  51031. }
  51032. }, {
  51033. key: 'replaceWith',
  51034. value: function replaceWith(name, value) {
  51035. this.parent.isolate(this.offset(this.parent), this.length());
  51036. if (name === this.parent.statics.blotName) {
  51037. this.parent.replaceWith(name, value);
  51038. return this;
  51039. } else {
  51040. this.parent.unwrap();
  51041. return _get(ListItem.prototype.__proto__ || Object.getPrototypeOf(ListItem.prototype), 'replaceWith', this).call(this, name, value);
  51042. }
  51043. }
  51044. }], [{
  51045. key: 'formats',
  51046. value: function formats(domNode) {
  51047. return domNode.tagName === this.tagName ? undefined : _get(ListItem.__proto__ || Object.getPrototypeOf(ListItem), 'formats', this).call(this, domNode);
  51048. }
  51049. }]);
  51050. return ListItem;
  51051. }(_block2.default);
  51052. ListItem.blotName = 'list-item';
  51053. ListItem.tagName = 'LI';
  51054. var List = function (_Container) {
  51055. _inherits(List, _Container);
  51056. _createClass(List, null, [{
  51057. key: 'create',
  51058. value: function create(value) {
  51059. var tagName = value === 'ordered' ? 'OL' : 'UL';
  51060. var node = _get(List.__proto__ || Object.getPrototypeOf(List), 'create', this).call(this, tagName);
  51061. if (value === 'checked' || value === 'unchecked') {
  51062. node.setAttribute('data-checked', value === 'checked');
  51063. }
  51064. return node;
  51065. }
  51066. }, {
  51067. key: 'formats',
  51068. value: function formats(domNode) {
  51069. if (domNode.tagName === 'OL') return 'ordered';
  51070. if (domNode.tagName === 'UL') {
  51071. if (domNode.hasAttribute('data-checked')) {
  51072. return domNode.getAttribute('data-checked') === 'true' ? 'checked' : 'unchecked';
  51073. } else {
  51074. return 'bullet';
  51075. }
  51076. }
  51077. return undefined;
  51078. }
  51079. }]);
  51080. function List(domNode) {
  51081. _classCallCheck(this, List);
  51082. var _this2 = _possibleConstructorReturn(this, (List.__proto__ || Object.getPrototypeOf(List)).call(this, domNode));
  51083. var listEventHandler = function listEventHandler(e) {
  51084. if (e.target.parentNode !== domNode) return;
  51085. var format = _this2.statics.formats(domNode);
  51086. var blot = _parchment2.default.find(e.target);
  51087. if (format === 'checked') {
  51088. blot.format('list', 'unchecked');
  51089. } else if (format === 'unchecked') {
  51090. blot.format('list', 'checked');
  51091. }
  51092. };
  51093. domNode.addEventListener('touchstart', listEventHandler);
  51094. domNode.addEventListener('mousedown', listEventHandler);
  51095. return _this2;
  51096. }
  51097. _createClass(List, [{
  51098. key: 'format',
  51099. value: function format(name, value) {
  51100. if (this.children.length > 0) {
  51101. this.children.tail.format(name, value);
  51102. }
  51103. }
  51104. }, {
  51105. key: 'formats',
  51106. value: function formats() {
  51107. // We don't inherit from FormatBlot
  51108. return _defineProperty({}, this.statics.blotName, this.statics.formats(this.domNode));
  51109. }
  51110. }, {
  51111. key: 'insertBefore',
  51112. value: function insertBefore(blot, ref) {
  51113. if (blot instanceof ListItem) {
  51114. _get(List.prototype.__proto__ || Object.getPrototypeOf(List.prototype), 'insertBefore', this).call(this, blot, ref);
  51115. } else {
  51116. var index = ref == null ? this.length() : ref.offset(this);
  51117. var after = this.split(index);
  51118. after.parent.insertBefore(blot, after);
  51119. }
  51120. }
  51121. }, {
  51122. key: 'optimize',
  51123. value: function optimize(context) {
  51124. _get(List.prototype.__proto__ || Object.getPrototypeOf(List.prototype), 'optimize', this).call(this, context);
  51125. var next = this.next;
  51126. if (next != null && next.prev === this && next.statics.blotName === this.statics.blotName && next.domNode.tagName === this.domNode.tagName && next.domNode.getAttribute('data-checked') === this.domNode.getAttribute('data-checked')) {
  51127. next.moveChildren(this);
  51128. next.remove();
  51129. }
  51130. }
  51131. }, {
  51132. key: 'replace',
  51133. value: function replace(target) {
  51134. if (target.statics.blotName !== this.statics.blotName) {
  51135. var item = _parchment2.default.create(this.statics.defaultChild);
  51136. target.moveChildren(item);
  51137. this.appendChild(item);
  51138. }
  51139. _get(List.prototype.__proto__ || Object.getPrototypeOf(List.prototype), 'replace', this).call(this, target);
  51140. }
  51141. }]);
  51142. return List;
  51143. }(_container2.default);
  51144. List.blotName = 'list';
  51145. List.scope = _parchment2.default.Scope.BLOCK_BLOT;
  51146. List.tagName = ['OL', 'UL'];
  51147. List.defaultChild = 'list-item';
  51148. List.allowedChildren = [ListItem];
  51149. exports.ListItem = ListItem;
  51150. exports.default = List;
  51151. /***/ }),
  51152. /* 68 */
  51153. /***/ (function(module, exports, __nested_webpack_require_389000__) {
  51154. "use strict";
  51155. Object.defineProperty(exports, "__esModule", {
  51156. value: true
  51157. });
  51158. var _bold = __nested_webpack_require_389000__(56);
  51159. var _bold2 = _interopRequireDefault(_bold);
  51160. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  51161. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  51162. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  51163. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  51164. var Italic = function (_Bold) {
  51165. _inherits(Italic, _Bold);
  51166. function Italic() {
  51167. _classCallCheck(this, Italic);
  51168. return _possibleConstructorReturn(this, (Italic.__proto__ || Object.getPrototypeOf(Italic)).apply(this, arguments));
  51169. }
  51170. return Italic;
  51171. }(_bold2.default);
  51172. Italic.blotName = 'italic';
  51173. Italic.tagName = ['EM', 'I'];
  51174. exports.default = Italic;
  51175. /***/ }),
  51176. /* 69 */
  51177. /***/ (function(module, exports, __nested_webpack_require_390599__) {
  51178. "use strict";
  51179. Object.defineProperty(exports, "__esModule", {
  51180. value: true
  51181. });
  51182. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  51183. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  51184. var _inline = __nested_webpack_require_390599__(6);
  51185. var _inline2 = _interopRequireDefault(_inline);
  51186. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  51187. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  51188. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  51189. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  51190. var Script = function (_Inline) {
  51191. _inherits(Script, _Inline);
  51192. function Script() {
  51193. _classCallCheck(this, Script);
  51194. return _possibleConstructorReturn(this, (Script.__proto__ || Object.getPrototypeOf(Script)).apply(this, arguments));
  51195. }
  51196. _createClass(Script, null, [{
  51197. key: 'create',
  51198. value: function create(value) {
  51199. if (value === 'super') {
  51200. return document.createElement('sup');
  51201. } else if (value === 'sub') {
  51202. return document.createElement('sub');
  51203. } else {
  51204. return _get(Script.__proto__ || Object.getPrototypeOf(Script), 'create', this).call(this, value);
  51205. }
  51206. }
  51207. }, {
  51208. key: 'formats',
  51209. value: function formats(domNode) {
  51210. if (domNode.tagName === 'SUB') return 'sub';
  51211. if (domNode.tagName === 'SUP') return 'super';
  51212. return undefined;
  51213. }
  51214. }]);
  51215. return Script;
  51216. }(_inline2.default);
  51217. Script.blotName = 'script';
  51218. Script.tagName = ['SUB', 'SUP'];
  51219. exports.default = Script;
  51220. /***/ }),
  51221. /* 70 */
  51222. /***/ (function(module, exports, __nested_webpack_require_393860__) {
  51223. "use strict";
  51224. Object.defineProperty(exports, "__esModule", {
  51225. value: true
  51226. });
  51227. var _inline = __nested_webpack_require_393860__(6);
  51228. var _inline2 = _interopRequireDefault(_inline);
  51229. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  51230. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  51231. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  51232. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  51233. var Strike = function (_Inline) {
  51234. _inherits(Strike, _Inline);
  51235. function Strike() {
  51236. _classCallCheck(this, Strike);
  51237. return _possibleConstructorReturn(this, (Strike.__proto__ || Object.getPrototypeOf(Strike)).apply(this, arguments));
  51238. }
  51239. return Strike;
  51240. }(_inline2.default);
  51241. Strike.blotName = 'strike';
  51242. Strike.tagName = 'S';
  51243. exports.default = Strike;
  51244. /***/ }),
  51245. /* 71 */
  51246. /***/ (function(module, exports, __nested_webpack_require_395462__) {
  51247. "use strict";
  51248. Object.defineProperty(exports, "__esModule", {
  51249. value: true
  51250. });
  51251. var _inline = __nested_webpack_require_395462__(6);
  51252. var _inline2 = _interopRequireDefault(_inline);
  51253. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  51254. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  51255. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  51256. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  51257. var Underline = function (_Inline) {
  51258. _inherits(Underline, _Inline);
  51259. function Underline() {
  51260. _classCallCheck(this, Underline);
  51261. return _possibleConstructorReturn(this, (Underline.__proto__ || Object.getPrototypeOf(Underline)).apply(this, arguments));
  51262. }
  51263. return Underline;
  51264. }(_inline2.default);
  51265. Underline.blotName = 'underline';
  51266. Underline.tagName = 'U';
  51267. exports.default = Underline;
  51268. /***/ }),
  51269. /* 72 */
  51270. /***/ (function(module, exports, __nested_webpack_require_397097__) {
  51271. "use strict";
  51272. Object.defineProperty(exports, "__esModule", {
  51273. value: true
  51274. });
  51275. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  51276. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  51277. var _parchment = __nested_webpack_require_397097__(0);
  51278. var _parchment2 = _interopRequireDefault(_parchment);
  51279. var _link = __nested_webpack_require_397097__(27);
  51280. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  51281. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  51282. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  51283. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  51284. var ATTRIBUTES = ['alt', 'height', 'width'];
  51285. var Image = function (_Parchment$Embed) {
  51286. _inherits(Image, _Parchment$Embed);
  51287. function Image() {
  51288. _classCallCheck(this, Image);
  51289. return _possibleConstructorReturn(this, (Image.__proto__ || Object.getPrototypeOf(Image)).apply(this, arguments));
  51290. }
  51291. _createClass(Image, [{
  51292. key: 'format',
  51293. value: function format(name, value) {
  51294. if (ATTRIBUTES.indexOf(name) > -1) {
  51295. if (value) {
  51296. this.domNode.setAttribute(name, value);
  51297. } else {
  51298. this.domNode.removeAttribute(name);
  51299. }
  51300. } else {
  51301. _get(Image.prototype.__proto__ || Object.getPrototypeOf(Image.prototype), 'format', this).call(this, name, value);
  51302. }
  51303. }
  51304. }], [{
  51305. key: 'create',
  51306. value: function create(value) {
  51307. var node = _get(Image.__proto__ || Object.getPrototypeOf(Image), 'create', this).call(this, value);
  51308. if (typeof value === 'string') {
  51309. node.setAttribute('src', this.sanitize(value));
  51310. }
  51311. return node;
  51312. }
  51313. }, {
  51314. key: 'formats',
  51315. value: function formats(domNode) {
  51316. return ATTRIBUTES.reduce(function (formats, attribute) {
  51317. if (domNode.hasAttribute(attribute)) {
  51318. formats[attribute] = domNode.getAttribute(attribute);
  51319. }
  51320. return formats;
  51321. }, {});
  51322. }
  51323. }, {
  51324. key: 'match',
  51325. value: function match(url) {
  51326. return (/\.(jpe?g|gif|png)$/.test(url) || /^data:image\/.+;base64/.test(url)
  51327. );
  51328. }
  51329. }, {
  51330. key: 'sanitize',
  51331. value: function sanitize(url) {
  51332. return (0, _link.sanitize)(url, ['http', 'https', 'data']) ? url : '//:0';
  51333. }
  51334. }, {
  51335. key: 'value',
  51336. value: function value(domNode) {
  51337. return domNode.getAttribute('src');
  51338. }
  51339. }]);
  51340. return Image;
  51341. }(_parchment2.default.Embed);
  51342. Image.blotName = 'image';
  51343. Image.tagName = 'IMG';
  51344. exports.default = Image;
  51345. /***/ }),
  51346. /* 73 */
  51347. /***/ (function(module, exports, __nested_webpack_require_401311__) {
  51348. "use strict";
  51349. Object.defineProperty(exports, "__esModule", {
  51350. value: true
  51351. });
  51352. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  51353. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  51354. var _block = __nested_webpack_require_401311__(4);
  51355. var _link = __nested_webpack_require_401311__(27);
  51356. var _link2 = _interopRequireDefault(_link);
  51357. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  51358. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  51359. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  51360. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  51361. var ATTRIBUTES = ['height', 'width'];
  51362. var Video = function (_BlockEmbed) {
  51363. _inherits(Video, _BlockEmbed);
  51364. function Video() {
  51365. _classCallCheck(this, Video);
  51366. return _possibleConstructorReturn(this, (Video.__proto__ || Object.getPrototypeOf(Video)).apply(this, arguments));
  51367. }
  51368. _createClass(Video, [{
  51369. key: 'format',
  51370. value: function format(name, value) {
  51371. if (ATTRIBUTES.indexOf(name) > -1) {
  51372. if (value) {
  51373. this.domNode.setAttribute(name, value);
  51374. } else {
  51375. this.domNode.removeAttribute(name);
  51376. }
  51377. } else {
  51378. _get(Video.prototype.__proto__ || Object.getPrototypeOf(Video.prototype), 'format', this).call(this, name, value);
  51379. }
  51380. }
  51381. }], [{
  51382. key: 'create',
  51383. value: function create(value) {
  51384. var node = _get(Video.__proto__ || Object.getPrototypeOf(Video), 'create', this).call(this, value);
  51385. node.setAttribute('frameborder', '0');
  51386. node.setAttribute('allowfullscreen', true);
  51387. node.setAttribute('src', this.sanitize(value));
  51388. return node;
  51389. }
  51390. }, {
  51391. key: 'formats',
  51392. value: function formats(domNode) {
  51393. return ATTRIBUTES.reduce(function (formats, attribute) {
  51394. if (domNode.hasAttribute(attribute)) {
  51395. formats[attribute] = domNode.getAttribute(attribute);
  51396. }
  51397. return formats;
  51398. }, {});
  51399. }
  51400. }, {
  51401. key: 'sanitize',
  51402. value: function sanitize(url) {
  51403. return _link2.default.sanitize(url);
  51404. }
  51405. }, {
  51406. key: 'value',
  51407. value: function value(domNode) {
  51408. return domNode.getAttribute('src');
  51409. }
  51410. }]);
  51411. return Video;
  51412. }(_block.BlockEmbed);
  51413. Video.blotName = 'video';
  51414. Video.className = 'ql-video';
  51415. Video.tagName = 'IFRAME';
  51416. exports.default = Video;
  51417. /***/ }),
  51418. /* 74 */
  51419. /***/ (function(module, exports, __nested_webpack_require_405371__) {
  51420. "use strict";
  51421. Object.defineProperty(exports, "__esModule", {
  51422. value: true
  51423. });
  51424. exports.default = exports.FormulaBlot = undefined;
  51425. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  51426. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  51427. var _embed = __nested_webpack_require_405371__(35);
  51428. var _embed2 = _interopRequireDefault(_embed);
  51429. var _quill = __nested_webpack_require_405371__(5);
  51430. var _quill2 = _interopRequireDefault(_quill);
  51431. var _module = __nested_webpack_require_405371__(9);
  51432. var _module2 = _interopRequireDefault(_module);
  51433. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  51434. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  51435. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  51436. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  51437. var FormulaBlot = function (_Embed) {
  51438. _inherits(FormulaBlot, _Embed);
  51439. function FormulaBlot() {
  51440. _classCallCheck(this, FormulaBlot);
  51441. return _possibleConstructorReturn(this, (FormulaBlot.__proto__ || Object.getPrototypeOf(FormulaBlot)).apply(this, arguments));
  51442. }
  51443. _createClass(FormulaBlot, null, [{
  51444. key: 'create',
  51445. value: function create(value) {
  51446. var node = _get(FormulaBlot.__proto__ || Object.getPrototypeOf(FormulaBlot), 'create', this).call(this, value);
  51447. if (typeof value === 'string') {
  51448. window.katex.render(value, node, {
  51449. throwOnError: false,
  51450. errorColor: '#f00'
  51451. });
  51452. node.setAttribute('data-value', value);
  51453. }
  51454. return node;
  51455. }
  51456. }, {
  51457. key: 'value',
  51458. value: function value(domNode) {
  51459. return domNode.getAttribute('data-value');
  51460. }
  51461. }]);
  51462. return FormulaBlot;
  51463. }(_embed2.default);
  51464. FormulaBlot.blotName = 'formula';
  51465. FormulaBlot.className = 'ql-formula';
  51466. FormulaBlot.tagName = 'SPAN';
  51467. var Formula = function (_Module) {
  51468. _inherits(Formula, _Module);
  51469. _createClass(Formula, null, [{
  51470. key: 'register',
  51471. value: function register() {
  51472. _quill2.default.register(FormulaBlot, true);
  51473. }
  51474. }]);
  51475. function Formula() {
  51476. _classCallCheck(this, Formula);
  51477. var _this2 = _possibleConstructorReturn(this, (Formula.__proto__ || Object.getPrototypeOf(Formula)).call(this));
  51478. if (window.katex == null) {
  51479. throw new Error('Formula module requires KaTeX.');
  51480. }
  51481. return _this2;
  51482. }
  51483. return Formula;
  51484. }(_module2.default);
  51485. exports.FormulaBlot = FormulaBlot;
  51486. exports.default = Formula;
  51487. /***/ }),
  51488. /* 75 */
  51489. /***/ (function(module, exports, __nested_webpack_require_409500__) {
  51490. "use strict";
  51491. Object.defineProperty(exports, "__esModule", {
  51492. value: true
  51493. });
  51494. exports.default = exports.CodeToken = exports.CodeBlock = undefined;
  51495. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  51496. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  51497. var _parchment = __nested_webpack_require_409500__(0);
  51498. var _parchment2 = _interopRequireDefault(_parchment);
  51499. var _quill = __nested_webpack_require_409500__(5);
  51500. var _quill2 = _interopRequireDefault(_quill);
  51501. var _module = __nested_webpack_require_409500__(9);
  51502. var _module2 = _interopRequireDefault(_module);
  51503. var _code = __nested_webpack_require_409500__(13);
  51504. var _code2 = _interopRequireDefault(_code);
  51505. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  51506. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  51507. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  51508. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  51509. var SyntaxCodeBlock = function (_CodeBlock) {
  51510. _inherits(SyntaxCodeBlock, _CodeBlock);
  51511. function SyntaxCodeBlock() {
  51512. _classCallCheck(this, SyntaxCodeBlock);
  51513. return _possibleConstructorReturn(this, (SyntaxCodeBlock.__proto__ || Object.getPrototypeOf(SyntaxCodeBlock)).apply(this, arguments));
  51514. }
  51515. _createClass(SyntaxCodeBlock, [{
  51516. key: 'replaceWith',
  51517. value: function replaceWith(block) {
  51518. this.domNode.textContent = this.domNode.textContent;
  51519. this.attach();
  51520. _get(SyntaxCodeBlock.prototype.__proto__ || Object.getPrototypeOf(SyntaxCodeBlock.prototype), 'replaceWith', this).call(this, block);
  51521. }
  51522. }, {
  51523. key: 'highlight',
  51524. value: function highlight(_highlight) {
  51525. var text = this.domNode.textContent;
  51526. if (this.cachedText !== text) {
  51527. if (text.trim().length > 0 || this.cachedText == null) {
  51528. this.domNode.innerHTML = _highlight(text);
  51529. this.domNode.normalize();
  51530. this.attach();
  51531. }
  51532. this.cachedText = text;
  51533. }
  51534. }
  51535. }]);
  51536. return SyntaxCodeBlock;
  51537. }(_code2.default);
  51538. SyntaxCodeBlock.className = 'ql-syntax';
  51539. var CodeToken = new _parchment2.default.Attributor.Class('token', 'hljs', {
  51540. scope: _parchment2.default.Scope.INLINE
  51541. });
  51542. var Syntax = function (_Module) {
  51543. _inherits(Syntax, _Module);
  51544. _createClass(Syntax, null, [{
  51545. key: 'register',
  51546. value: function register() {
  51547. _quill2.default.register(CodeToken, true);
  51548. _quill2.default.register(SyntaxCodeBlock, true);
  51549. }
  51550. }]);
  51551. function Syntax(quill, options) {
  51552. _classCallCheck(this, Syntax);
  51553. var _this2 = _possibleConstructorReturn(this, (Syntax.__proto__ || Object.getPrototypeOf(Syntax)).call(this, quill, options));
  51554. if (typeof _this2.options.highlight !== 'function') {
  51555. throw new Error('Syntax module requires highlight.js. Please include the library on the page before Quill.');
  51556. }
  51557. var timer = null;
  51558. _this2.quill.on(_quill2.default.events.SCROLL_OPTIMIZE, function () {
  51559. clearTimeout(timer);
  51560. timer = setTimeout(function () {
  51561. _this2.highlight();
  51562. timer = null;
  51563. }, _this2.options.interval);
  51564. });
  51565. _this2.highlight();
  51566. return _this2;
  51567. }
  51568. _createClass(Syntax, [{
  51569. key: 'highlight',
  51570. value: function highlight() {
  51571. var _this3 = this;
  51572. if (this.quill.selection.composing) return;
  51573. this.quill.update(_quill2.default.sources.USER);
  51574. var range = this.quill.getSelection();
  51575. this.quill.scroll.descendants(SyntaxCodeBlock).forEach(function (code) {
  51576. code.highlight(_this3.options.highlight);
  51577. });
  51578. this.quill.update(_quill2.default.sources.SILENT);
  51579. if (range != null) {
  51580. this.quill.setSelection(range, _quill2.default.sources.SILENT);
  51581. }
  51582. }
  51583. }]);
  51584. return Syntax;
  51585. }(_module2.default);
  51586. Syntax.DEFAULTS = {
  51587. highlight: function () {
  51588. if (window.hljs == null) return null;
  51589. return function (text) {
  51590. var result = window.hljs.highlightAuto(text);
  51591. return result.value;
  51592. };
  51593. }(),
  51594. interval: 1000
  51595. };
  51596. exports.CodeBlock = SyntaxCodeBlock;
  51597. exports.CodeToken = CodeToken;
  51598. exports.default = Syntax;
  51599. /***/ }),
  51600. /* 76 */
  51601. /***/ (function(module, exports) {
  51602. module.exports = "<svg viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>";
  51603. /***/ }),
  51604. /* 77 */
  51605. /***/ (function(module, exports) {
  51606. module.exports = "<svg viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>";
  51607. /***/ }),
  51608. /* 78 */
  51609. /***/ (function(module, exports) {
  51610. module.exports = "<svg viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>";
  51611. /***/ }),
  51612. /* 79 */
  51613. /***/ (function(module, exports) {
  51614. module.exports = "<svg viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>";
  51615. /***/ }),
  51616. /* 80 */
  51617. /***/ (function(module, exports) {
  51618. module.exports = "<svg viewbox=\"0 0 18 18\"> <g class=\"ql-fill ql-color-label\"> <polygon points=\"6 6.868 6 6 5 6 5 7 5.942 7 6 6.868\"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points=\"6.817 5 6 5 6 6 6.38 6 6.817 5\"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points=\"4 11.439 4 11 3 11 3 12 3.755 12 4 11.439\"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points=\"4.63 10 4 10 4 11 4.192 11 4.63 10\"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points=\"13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174\"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points=\"12 6.868 12 6 11.62 6 12 6.868\"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points=\"12.933 9 13 9 13 8 12.495 8 12.933 9\"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points=\"5.5 13 9 5 12.5 13\"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>";
  51619. /***/ }),
  51620. /* 81 */
  51621. /***/ (function(module, exports) {
  51622. module.exports = "<svg viewbox=\"0 0 18 18\"> <rect class=\"ql-fill ql-stroke\" height=3 width=3 x=4 y=5></rect> <rect class=\"ql-fill ql-stroke\" height=3 width=3 x=11 y=5></rect> <path class=\"ql-even ql-fill ql-stroke\" d=M7,8c0,4.031-3,5-3,5></path> <path class=\"ql-even ql-fill ql-stroke\" d=M14,8c0,4.031-3,5-3,5></path> </svg>";
  51623. /***/ }),
  51624. /* 82 */
  51625. /***/ (function(module, exports) {
  51626. module.exports = "<svg viewbox=\"0 0 18 18\"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>";
  51627. /***/ }),
  51628. /* 83 */
  51629. /***/ (function(module, exports) {
  51630. module.exports = "<svg class=\"\" viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>";
  51631. /***/ }),
  51632. /* 84 */
  51633. /***/ (function(module, exports) {
  51634. module.exports = "<svg viewbox=\"0 0 18 18\"> <line class=\"ql-color-label ql-stroke ql-transparent\" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points=\"5.5 11 9 3 12.5 11\"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>";
  51635. /***/ }),
  51636. /* 85 */
  51637. /***/ (function(module, exports) {
  51638. module.exports = "<svg viewbox=\"0 0 18 18\"> <polygon class=\"ql-stroke ql-fill\" points=\"3 11 5 9 3 7 3 11\"></polygon> <line class=\"ql-stroke ql-fill\" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>";
  51639. /***/ }),
  51640. /* 86 */
  51641. /***/ (function(module, exports) {
  51642. module.exports = "<svg viewbox=\"0 0 18 18\"> <polygon class=\"ql-stroke ql-fill\" points=\"15 12 13 10 15 8 15 12\"></polygon> <line class=\"ql-stroke ql-fill\" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>";
  51643. /***/ }),
  51644. /* 87 */
  51645. /***/ (function(module, exports) {
  51646. module.exports = "<svg viewbox=\"0 0 18 18\"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>";
  51647. /***/ }),
  51648. /* 88 */
  51649. /***/ (function(module, exports) {
  51650. module.exports = "<svg viewbox=\"0 0 18 18\"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>";
  51651. /***/ }),
  51652. /* 89 */
  51653. /***/ (function(module, exports) {
  51654. module.exports = "<svg viewbox=\"0 0 18 18\"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>";
  51655. /***/ }),
  51656. /* 90 */
  51657. /***/ (function(module, exports) {
  51658. module.exports = "<svg viewbox=\"0 0 18 18\"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform=\"translate(24 18) rotate(-180)\"/> </svg>";
  51659. /***/ }),
  51660. /* 91 */
  51661. /***/ (function(module, exports) {
  51662. module.exports = "<svg viewbox=\"0 0 18 18\"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>";
  51663. /***/ }),
  51664. /* 92 */
  51665. /***/ (function(module, exports) {
  51666. module.exports = "<svg viewBox=\"0 0 18 18\"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>";
  51667. /***/ }),
  51668. /* 93 */
  51669. /***/ (function(module, exports) {
  51670. module.exports = "<svg viewBox=\"0 0 18 18\"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>";
  51671. /***/ }),
  51672. /* 94 */
  51673. /***/ (function(module, exports) {
  51674. module.exports = "<svg viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>";
  51675. /***/ }),
  51676. /* 95 */
  51677. /***/ (function(module, exports) {
  51678. module.exports = "<svg viewbox=\"0 0 18 18\"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class=\"ql-even ql-fill\" points=\"5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12\"></polyline> </svg>";
  51679. /***/ }),
  51680. /* 96 */
  51681. /***/ (function(module, exports) {
  51682. module.exports = "<svg viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=\"ql-fill ql-stroke\" points=\"3 7 3 11 5 9 3 7\"></polyline> </svg>";
  51683. /***/ }),
  51684. /* 97 */
  51685. /***/ (function(module, exports) {
  51686. module.exports = "<svg viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points=\"5 7 5 11 3 9 5 7\"></polyline> </svg>";
  51687. /***/ }),
  51688. /* 98 */
  51689. /***/ (function(module, exports) {
  51690. module.exports = "<svg viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class=\"ql-even ql-stroke\" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class=\"ql-even ql-stroke\" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>";
  51691. /***/ }),
  51692. /* 99 */
  51693. /***/ (function(module, exports) {
  51694. module.exports = "<svg viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class=\"ql-stroke ql-thin\" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class=\"ql-stroke ql-thin\" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class=\"ql-stroke ql-thin\" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>";
  51695. /***/ }),
  51696. /* 100 */
  51697. /***/ (function(module, exports) {
  51698. module.exports = "<svg viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>";
  51699. /***/ }),
  51700. /* 101 */
  51701. /***/ (function(module, exports) {
  51702. module.exports = "<svg class=\"\" viewbox=\"0 0 18 18\"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points=\"3 4 4 5 6 3\"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points=\"3 14 4 15 6 13\"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points=\"3 9 4 10 6 8\"></polyline> </svg>";
  51703. /***/ }),
  51704. /* 102 */
  51705. /***/ (function(module, exports) {
  51706. module.exports = "<svg viewbox=\"0 0 18 18\"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>";
  51707. /***/ }),
  51708. /* 103 */
  51709. /***/ (function(module, exports) {
  51710. module.exports = "<svg viewbox=\"0 0 18 18\"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>";
  51711. /***/ }),
  51712. /* 104 */
  51713. /***/ (function(module, exports) {
  51714. module.exports = "<svg viewbox=\"0 0 18 18\"> <line class=\"ql-stroke ql-thin\" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>";
  51715. /***/ }),
  51716. /* 105 */
  51717. /***/ (function(module, exports) {
  51718. module.exports = "<svg viewbox=\"0 0 18 18\"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>";
  51719. /***/ }),
  51720. /* 106 */
  51721. /***/ (function(module, exports) {
  51722. module.exports = "<svg viewbox=\"0 0 18 18\"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>";
  51723. /***/ }),
  51724. /* 107 */
  51725. /***/ (function(module, exports) {
  51726. module.exports = "<svg viewbox=\"0 0 18 18\"> <polygon class=ql-stroke points=\"7 11 9 13 11 11 7 11\"></polygon> <polygon class=ql-stroke points=\"7 7 9 5 11 7 7 7\"></polygon> </svg>";
  51727. /***/ }),
  51728. /* 108 */
  51729. /***/ (function(module, exports, __nested_webpack_require_432266__) {
  51730. "use strict";
  51731. Object.defineProperty(exports, "__esModule", {
  51732. value: true
  51733. });
  51734. exports.default = exports.BubbleTooltip = undefined;
  51735. var _get = function get(object, property, receiver) { if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { return get(parent, property, receiver); } } else if ("value" in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } };
  51736. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  51737. var _extend = __nested_webpack_require_432266__(3);
  51738. var _extend2 = _interopRequireDefault(_extend);
  51739. var _emitter = __nested_webpack_require_432266__(8);
  51740. var _emitter2 = _interopRequireDefault(_emitter);
  51741. var _base = __nested_webpack_require_432266__(43);
  51742. var _base2 = _interopRequireDefault(_base);
  51743. var _selection = __nested_webpack_require_432266__(15);
  51744. var _icons = __nested_webpack_require_432266__(41);
  51745. var _icons2 = _interopRequireDefault(_icons);
  51746. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  51747. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  51748. function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  51749. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  51750. var TOOLBAR_CONFIG = [['bold', 'italic', 'link'], [{ header: 1 }, { header: 2 }, 'blockquote']];
  51751. var BubbleTheme = function (_BaseTheme) {
  51752. _inherits(BubbleTheme, _BaseTheme);
  51753. function BubbleTheme(quill, options) {
  51754. _classCallCheck(this, BubbleTheme);
  51755. if (options.modules.toolbar != null && options.modules.toolbar.container == null) {
  51756. options.modules.toolbar.container = TOOLBAR_CONFIG;
  51757. }
  51758. var _this = _possibleConstructorReturn(this, (BubbleTheme.__proto__ || Object.getPrototypeOf(BubbleTheme)).call(this, quill, options));
  51759. _this.quill.container.classList.add('ql-bubble');
  51760. return _this;
  51761. }
  51762. _createClass(BubbleTheme, [{
  51763. key: 'extendToolbar',
  51764. value: function extendToolbar(toolbar) {
  51765. this.tooltip = new BubbleTooltip(this.quill, this.options.bounds);
  51766. this.tooltip.root.appendChild(toolbar.container);
  51767. this.buildButtons([].slice.call(toolbar.container.querySelectorAll('button')), _icons2.default);
  51768. this.buildPickers([].slice.call(toolbar.container.querySelectorAll('select')), _icons2.default);
  51769. }
  51770. }]);
  51771. return BubbleTheme;
  51772. }(_base2.default);
  51773. BubbleTheme.DEFAULTS = (0, _extend2.default)(true, {}, _base2.default.DEFAULTS, {
  51774. modules: {
  51775. toolbar: {
  51776. handlers: {
  51777. link: function link(value) {
  51778. if (!value) {
  51779. this.quill.format('link', false);
  51780. } else {
  51781. this.quill.theme.tooltip.edit();
  51782. }
  51783. }
  51784. }
  51785. }
  51786. }
  51787. });
  51788. var BubbleTooltip = function (_BaseTooltip) {
  51789. _inherits(BubbleTooltip, _BaseTooltip);
  51790. function BubbleTooltip(quill, bounds) {
  51791. _classCallCheck(this, BubbleTooltip);
  51792. var _this2 = _possibleConstructorReturn(this, (BubbleTooltip.__proto__ || Object.getPrototypeOf(BubbleTooltip)).call(this, quill, bounds));
  51793. _this2.quill.on(_emitter2.default.events.EDITOR_CHANGE, function (type, range, oldRange, source) {
  51794. if (type !== _emitter2.default.events.SELECTION_CHANGE) return;
  51795. if (range != null && range.length > 0 && source === _emitter2.default.sources.USER) {
  51796. _this2.show();
  51797. // Lock our width so we will expand beyond our offsetParent boundaries
  51798. _this2.root.style.left = '0px';
  51799. _this2.root.style.width = '';
  51800. _this2.root.style.width = _this2.root.offsetWidth + 'px';
  51801. var lines = _this2.quill.getLines(range.index, range.length);
  51802. if (lines.length === 1) {
  51803. _this2.position(_this2.quill.getBounds(range));
  51804. } else {
  51805. var lastLine = lines[lines.length - 1];
  51806. var index = _this2.quill.getIndex(lastLine);
  51807. var length = Math.min(lastLine.length() - 1, range.index + range.length - index);
  51808. var _bounds = _this2.quill.getBounds(new _selection.Range(index, length));
  51809. _this2.position(_bounds);
  51810. }
  51811. } else if (document.activeElement !== _this2.textbox && _this2.quill.hasFocus()) {
  51812. _this2.hide();
  51813. }
  51814. });
  51815. return _this2;
  51816. }
  51817. _createClass(BubbleTooltip, [{
  51818. key: 'listen',
  51819. value: function listen() {
  51820. var _this3 = this;
  51821. _get(BubbleTooltip.prototype.__proto__ || Object.getPrototypeOf(BubbleTooltip.prototype), 'listen', this).call(this);
  51822. this.root.querySelector('.ql-close').addEventListener('click', function () {
  51823. _this3.root.classList.remove('ql-editing');
  51824. });
  51825. this.quill.on(_emitter2.default.events.SCROLL_OPTIMIZE, function () {
  51826. // Let selection be restored by toolbar handlers before repositioning
  51827. setTimeout(function () {
  51828. if (_this3.root.classList.contains('ql-hidden')) return;
  51829. var range = _this3.quill.getSelection();
  51830. if (range != null) {
  51831. _this3.position(_this3.quill.getBounds(range));
  51832. }
  51833. }, 1);
  51834. });
  51835. }
  51836. }, {
  51837. key: 'cancel',
  51838. value: function cancel() {
  51839. this.show();
  51840. }
  51841. }, {
  51842. key: 'position',
  51843. value: function position(reference) {
  51844. var shift = _get(BubbleTooltip.prototype.__proto__ || Object.getPrototypeOf(BubbleTooltip.prototype), 'position', this).call(this, reference);
  51845. var arrow = this.root.querySelector('.ql-tooltip-arrow');
  51846. arrow.style.marginLeft = '';
  51847. if (shift === 0) return shift;
  51848. arrow.style.marginLeft = -1 * shift - arrow.offsetWidth / 2 + 'px';
  51849. }
  51850. }]);
  51851. return BubbleTooltip;
  51852. }(_base.BaseTooltip);
  51853. BubbleTooltip.TEMPLATE = ['<span class="ql-tooltip-arrow"></span>', '<div class="ql-tooltip-editor">', '<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">', '<a class="ql-close"></a>', '</div>'].join('');
  51854. exports.BubbleTooltip = BubbleTooltip;
  51855. exports.default = BubbleTheme;
  51856. /***/ }),
  51857. /* 109 */
  51858. /***/ (function(module, exports, __nested_webpack_require_439588__) {
  51859. module.exports = __nested_webpack_require_439588__(63);
  51860. /***/ })
  51861. /******/ ])["default"];
  51862. });
  51863. /***/ }),
  51864. /***/ "./node_modules/side-channel/index.js":
  51865. /*!********************************************!*\
  51866. !*** ./node_modules/side-channel/index.js ***!
  51867. \********************************************/
  51868. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  51869. "use strict";
  51870. var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "./node_modules/get-intrinsic/index.js");
  51871. var callBound = __webpack_require__(/*! call-bind/callBound */ "./node_modules/call-bind/callBound.js");
  51872. var inspect = __webpack_require__(/*! object-inspect */ "./node_modules/object-inspect/index.js");
  51873. var $TypeError = GetIntrinsic('%TypeError%');
  51874. var $WeakMap = GetIntrinsic('%WeakMap%', true);
  51875. var $Map = GetIntrinsic('%Map%', true);
  51876. var $weakMapGet = callBound('WeakMap.prototype.get', true);
  51877. var $weakMapSet = callBound('WeakMap.prototype.set', true);
  51878. var $weakMapHas = callBound('WeakMap.prototype.has', true);
  51879. var $mapGet = callBound('Map.prototype.get', true);
  51880. var $mapSet = callBound('Map.prototype.set', true);
  51881. var $mapHas = callBound('Map.prototype.has', true);
  51882. /*
  51883. * This function traverses the list returning the node corresponding to the
  51884. * given key.
  51885. *
  51886. * That node is also moved to the head of the list, so that if it's accessed
  51887. * again we don't need to traverse the whole list. By doing so, all the recently
  51888. * used nodes can be accessed relatively quickly.
  51889. */
  51890. var listGetNode = function (list, key) { // eslint-disable-line consistent-return
  51891. for (var prev = list, curr; (curr = prev.next) !== null; prev = curr) {
  51892. if (curr.key === key) {
  51893. prev.next = curr.next;
  51894. curr.next = list.next;
  51895. list.next = curr; // eslint-disable-line no-param-reassign
  51896. return curr;
  51897. }
  51898. }
  51899. };
  51900. var listGet = function (objects, key) {
  51901. var node = listGetNode(objects, key);
  51902. return node && node.value;
  51903. };
  51904. var listSet = function (objects, key, value) {
  51905. var node = listGetNode(objects, key);
  51906. if (node) {
  51907. node.value = value;
  51908. } else {
  51909. // Prepend the new node to the beginning of the list
  51910. objects.next = { // eslint-disable-line no-param-reassign
  51911. key: key,
  51912. next: objects.next,
  51913. value: value
  51914. };
  51915. }
  51916. };
  51917. var listHas = function (objects, key) {
  51918. return !!listGetNode(objects, key);
  51919. };
  51920. module.exports = function getSideChannel() {
  51921. var $wm;
  51922. var $m;
  51923. var $o;
  51924. var channel = {
  51925. assert: function (key) {
  51926. if (!channel.has(key)) {
  51927. throw new $TypeError('Side channel does not contain ' + inspect(key));
  51928. }
  51929. },
  51930. get: function (key) { // eslint-disable-line consistent-return
  51931. if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
  51932. if ($wm) {
  51933. return $weakMapGet($wm, key);
  51934. }
  51935. } else if ($Map) {
  51936. if ($m) {
  51937. return $mapGet($m, key);
  51938. }
  51939. } else {
  51940. if ($o) { // eslint-disable-line no-lonely-if
  51941. return listGet($o, key);
  51942. }
  51943. }
  51944. },
  51945. has: function (key) {
  51946. if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
  51947. if ($wm) {
  51948. return $weakMapHas($wm, key);
  51949. }
  51950. } else if ($Map) {
  51951. if ($m) {
  51952. return $mapHas($m, key);
  51953. }
  51954. } else {
  51955. if ($o) { // eslint-disable-line no-lonely-if
  51956. return listHas($o, key);
  51957. }
  51958. }
  51959. return false;
  51960. },
  51961. set: function (key, value) {
  51962. if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
  51963. if (!$wm) {
  51964. $wm = new $WeakMap();
  51965. }
  51966. $weakMapSet($wm, key, value);
  51967. } else if ($Map) {
  51968. if (!$m) {
  51969. $m = new $Map();
  51970. }
  51971. $mapSet($m, key, value);
  51972. } else {
  51973. if (!$o) {
  51974. /*
  51975. * Initialize the linked list as an empty node, so that we don't have
  51976. * to special-case handling of the first node: we can always refer to
  51977. * it as (previous node).next, instead of something like (list).head
  51978. */
  51979. $o = { key: {}, next: null };
  51980. }
  51981. listSet($o, key, value);
  51982. }
  51983. }
  51984. };
  51985. return channel;
  51986. };
  51987. /***/ }),
  51988. /***/ "./resources/js/assets/styles/layout.scss":
  51989. /*!************************************************!*\
  51990. !*** ./resources/js/assets/styles/layout.scss ***!
  51991. \************************************************/
  51992. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  51993. "use strict";
  51994. __webpack_require__.r(__webpack_exports__);
  51995. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  51996. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  51997. /* harmony export */ });
  51998. /* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! !../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ "./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js");
  51999. /* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__);
  52000. /* harmony import */ var _node_modules_css_loader_dist_cjs_js_clonedRuleSet_11_use_1_node_modules_postcss_loader_dist_cjs_js_clonedRuleSet_11_use_2_node_modules_sass_loader_dist_cjs_js_clonedRuleSet_11_use_3_layout_scss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! !!../../../../node_modules/css-loader/dist/cjs.js??clonedRuleSet-11.use[1]!../../../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-11.use[2]!../../../../node_modules/sass-loader/dist/cjs.js??clonedRuleSet-11.use[3]!./layout.scss */ "./node_modules/css-loader/dist/cjs.js??clonedRuleSet-11.use[1]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-11.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-11.use[3]!./resources/js/assets/styles/layout.scss");
  52001. var options = {};
  52002. options.insert = "head";
  52003. options.singleton = false;
  52004. var update = _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()(_node_modules_css_loader_dist_cjs_js_clonedRuleSet_11_use_1_node_modules_postcss_loader_dist_cjs_js_clonedRuleSet_11_use_2_node_modules_sass_loader_dist_cjs_js_clonedRuleSet_11_use_3_layout_scss__WEBPACK_IMPORTED_MODULE_1__["default"], options);
  52005. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_node_modules_css_loader_dist_cjs_js_clonedRuleSet_11_use_1_node_modules_postcss_loader_dist_cjs_js_clonedRuleSet_11_use_2_node_modules_sass_loader_dist_cjs_js_clonedRuleSet_11_use_3_layout_scss__WEBPACK_IMPORTED_MODULE_1__["default"].locals || {});
  52006. /***/ }),
  52007. /***/ "./node_modules/primeflex/primeflex.css":
  52008. /*!**********************************************!*\
  52009. !*** ./node_modules/primeflex/primeflex.css ***!
  52010. \**********************************************/
  52011. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  52012. "use strict";
  52013. __webpack_require__.r(__webpack_exports__);
  52014. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  52015. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  52016. /* harmony export */ });
  52017. /* harmony import */ var _style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! !../style-loader/dist/runtime/injectStylesIntoStyleTag.js */ "./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js");
  52018. /* harmony import */ var _style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__);
  52019. /* harmony import */ var _css_loader_dist_cjs_js_clonedRuleSet_8_use_1_postcss_loader_dist_cjs_js_clonedRuleSet_8_use_2_primeflex_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! !!../css-loader/dist/cjs.js??clonedRuleSet-8.use[1]!../postcss-loader/dist/cjs.js??clonedRuleSet-8.use[2]!./primeflex.css */ "./node_modules/css-loader/dist/cjs.js??clonedRuleSet-8.use[1]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-8.use[2]!./node_modules/primeflex/primeflex.css");
  52020. var options = {};
  52021. options.insert = "head";
  52022. options.singleton = false;
  52023. var update = _style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()(_css_loader_dist_cjs_js_clonedRuleSet_8_use_1_postcss_loader_dist_cjs_js_clonedRuleSet_8_use_2_primeflex_css__WEBPACK_IMPORTED_MODULE_1__["default"], options);
  52024. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_css_loader_dist_cjs_js_clonedRuleSet_8_use_1_postcss_loader_dist_cjs_js_clonedRuleSet_8_use_2_primeflex_css__WEBPACK_IMPORTED_MODULE_1__["default"].locals || {});
  52025. /***/ }),
  52026. /***/ "./node_modules/primeicons/primeicons.css":
  52027. /*!************************************************!*\
  52028. !*** ./node_modules/primeicons/primeicons.css ***!
  52029. \************************************************/
  52030. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  52031. "use strict";
  52032. __webpack_require__.r(__webpack_exports__);
  52033. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  52034. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  52035. /* harmony export */ });
  52036. /* harmony import */ var _style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! !../style-loader/dist/runtime/injectStylesIntoStyleTag.js */ "./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js");
  52037. /* harmony import */ var _style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__);
  52038. /* harmony import */ var _css_loader_dist_cjs_js_clonedRuleSet_8_use_1_postcss_loader_dist_cjs_js_clonedRuleSet_8_use_2_primeicons_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! !!../css-loader/dist/cjs.js??clonedRuleSet-8.use[1]!../postcss-loader/dist/cjs.js??clonedRuleSet-8.use[2]!./primeicons.css */ "./node_modules/css-loader/dist/cjs.js??clonedRuleSet-8.use[1]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-8.use[2]!./node_modules/primeicons/primeicons.css");
  52039. var options = {};
  52040. options.insert = "head";
  52041. options.singleton = false;
  52042. var update = _style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()(_css_loader_dist_cjs_js_clonedRuleSet_8_use_1_postcss_loader_dist_cjs_js_clonedRuleSet_8_use_2_primeicons_css__WEBPACK_IMPORTED_MODULE_1__["default"], options);
  52043. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_css_loader_dist_cjs_js_clonedRuleSet_8_use_1_postcss_loader_dist_cjs_js_clonedRuleSet_8_use_2_primeicons_css__WEBPACK_IMPORTED_MODULE_1__["default"].locals || {});
  52044. /***/ }),
  52045. /***/ "./node_modules/primevue/resources/primevue.min.css":
  52046. /*!**********************************************************!*\
  52047. !*** ./node_modules/primevue/resources/primevue.min.css ***!
  52048. \**********************************************************/
  52049. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  52050. "use strict";
  52051. __webpack_require__.r(__webpack_exports__);
  52052. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  52053. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  52054. /* harmony export */ });
  52055. /* harmony import */ var _style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! !../../style-loader/dist/runtime/injectStylesIntoStyleTag.js */ "./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js");
  52056. /* harmony import */ var _style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__);
  52057. /* harmony import */ var _css_loader_dist_cjs_js_clonedRuleSet_8_use_1_postcss_loader_dist_cjs_js_clonedRuleSet_8_use_2_primevue_min_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! !!../../css-loader/dist/cjs.js??clonedRuleSet-8.use[1]!../../postcss-loader/dist/cjs.js??clonedRuleSet-8.use[2]!./primevue.min.css */ "./node_modules/css-loader/dist/cjs.js??clonedRuleSet-8.use[1]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-8.use[2]!./node_modules/primevue/resources/primevue.min.css");
  52058. var options = {};
  52059. options.insert = "head";
  52060. options.singleton = false;
  52061. var update = _style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()(_css_loader_dist_cjs_js_clonedRuleSet_8_use_1_postcss_loader_dist_cjs_js_clonedRuleSet_8_use_2_primevue_min_css__WEBPACK_IMPORTED_MODULE_1__["default"], options);
  52062. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_css_loader_dist_cjs_js_clonedRuleSet_8_use_1_postcss_loader_dist_cjs_js_clonedRuleSet_8_use_2_primevue_min_css__WEBPACK_IMPORTED_MODULE_1__["default"].locals || {});
  52063. /***/ }),
  52064. /***/ "./node_modules/primevue/resources/themes/tailwind-light/theme.css":
  52065. /*!*************************************************************************!*\
  52066. !*** ./node_modules/primevue/resources/themes/tailwind-light/theme.css ***!
  52067. \*************************************************************************/
  52068. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  52069. "use strict";
  52070. __webpack_require__.r(__webpack_exports__);
  52071. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  52072. /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
  52073. /* harmony export */ });
  52074. /* harmony import */ var _style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! !../../../../style-loader/dist/runtime/injectStylesIntoStyleTag.js */ "./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js");
  52075. /* harmony import */ var _style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__);
  52076. /* harmony import */ var _css_loader_dist_cjs_js_clonedRuleSet_8_use_1_postcss_loader_dist_cjs_js_clonedRuleSet_8_use_2_theme_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! !!../../../../css-loader/dist/cjs.js??clonedRuleSet-8.use[1]!../../../../postcss-loader/dist/cjs.js??clonedRuleSet-8.use[2]!./theme.css */ "./node_modules/css-loader/dist/cjs.js??clonedRuleSet-8.use[1]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-8.use[2]!./node_modules/primevue/resources/themes/tailwind-light/theme.css");
  52077. var options = {};
  52078. options.insert = "head";
  52079. options.singleton = false;
  52080. var update = _style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()(_css_loader_dist_cjs_js_clonedRuleSet_8_use_1_postcss_loader_dist_cjs_js_clonedRuleSet_8_use_2_theme_css__WEBPACK_IMPORTED_MODULE_1__["default"], options);
  52081. /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_css_loader_dist_cjs_js_clonedRuleSet_8_use_1_postcss_loader_dist_cjs_js_clonedRuleSet_8_use_2_theme_css__WEBPACK_IMPORTED_MODULE_1__["default"].locals || {});
  52082. /***/ }),
  52083. /***/ "./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js":
  52084. /*!****************************************************************************!*\
  52085. !*** ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js ***!
  52086. \****************************************************************************/
  52087. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  52088. "use strict";
  52089. var isOldIE = function isOldIE() {
  52090. var memo;
  52091. return function memorize() {
  52092. if (typeof memo === 'undefined') {
  52093. // Test for IE <= 9 as proposed by Browserhacks
  52094. // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805
  52095. // Tests for existence of standard globals is to allow style-loader
  52096. // to operate correctly into non-standard environments
  52097. // @see https://github.com/webpack-contrib/style-loader/issues/177
  52098. memo = Boolean(window && document && document.all && !window.atob);
  52099. }
  52100. return memo;
  52101. };
  52102. }();
  52103. var getTarget = function getTarget() {
  52104. var memo = {};
  52105. return function memorize(target) {
  52106. if (typeof memo[target] === 'undefined') {
  52107. var styleTarget = document.querySelector(target); // Special case to return head of iframe instead of iframe itself
  52108. if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {
  52109. try {
  52110. // This will throw an exception if access to iframe is blocked
  52111. // due to cross-origin restrictions
  52112. styleTarget = styleTarget.contentDocument.head;
  52113. } catch (e) {
  52114. // istanbul ignore next
  52115. styleTarget = null;
  52116. }
  52117. }
  52118. memo[target] = styleTarget;
  52119. }
  52120. return memo[target];
  52121. };
  52122. }();
  52123. var stylesInDom = [];
  52124. function getIndexByIdentifier(identifier) {
  52125. var result = -1;
  52126. for (var i = 0; i < stylesInDom.length; i++) {
  52127. if (stylesInDom[i].identifier === identifier) {
  52128. result = i;
  52129. break;
  52130. }
  52131. }
  52132. return result;
  52133. }
  52134. function modulesToDom(list, options) {
  52135. var idCountMap = {};
  52136. var identifiers = [];
  52137. for (var i = 0; i < list.length; i++) {
  52138. var item = list[i];
  52139. var id = options.base ? item[0] + options.base : item[0];
  52140. var count = idCountMap[id] || 0;
  52141. var identifier = "".concat(id, " ").concat(count);
  52142. idCountMap[id] = count + 1;
  52143. var index = getIndexByIdentifier(identifier);
  52144. var obj = {
  52145. css: item[1],
  52146. media: item[2],
  52147. sourceMap: item[3]
  52148. };
  52149. if (index !== -1) {
  52150. stylesInDom[index].references++;
  52151. stylesInDom[index].updater(obj);
  52152. } else {
  52153. stylesInDom.push({
  52154. identifier: identifier,
  52155. updater: addStyle(obj, options),
  52156. references: 1
  52157. });
  52158. }
  52159. identifiers.push(identifier);
  52160. }
  52161. return identifiers;
  52162. }
  52163. function insertStyleElement(options) {
  52164. var style = document.createElement('style');
  52165. var attributes = options.attributes || {};
  52166. if (typeof attributes.nonce === 'undefined') {
  52167. var nonce = true ? __webpack_require__.nc : 0;
  52168. if (nonce) {
  52169. attributes.nonce = nonce;
  52170. }
  52171. }
  52172. Object.keys(attributes).forEach(function (key) {
  52173. style.setAttribute(key, attributes[key]);
  52174. });
  52175. if (typeof options.insert === 'function') {
  52176. options.insert(style);
  52177. } else {
  52178. var target = getTarget(options.insert || 'head');
  52179. if (!target) {
  52180. throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");
  52181. }
  52182. target.appendChild(style);
  52183. }
  52184. return style;
  52185. }
  52186. function removeStyleElement(style) {
  52187. // istanbul ignore if
  52188. if (style.parentNode === null) {
  52189. return false;
  52190. }
  52191. style.parentNode.removeChild(style);
  52192. }
  52193. /* istanbul ignore next */
  52194. var replaceText = function replaceText() {
  52195. var textStore = [];
  52196. return function replace(index, replacement) {
  52197. textStore[index] = replacement;
  52198. return textStore.filter(Boolean).join('\n');
  52199. };
  52200. }();
  52201. function applyToSingletonTag(style, index, remove, obj) {
  52202. var css = remove ? '' : obj.media ? "@media ".concat(obj.media, " {").concat(obj.css, "}") : obj.css; // For old IE
  52203. /* istanbul ignore if */
  52204. if (style.styleSheet) {
  52205. style.styleSheet.cssText = replaceText(index, css);
  52206. } else {
  52207. var cssNode = document.createTextNode(css);
  52208. var childNodes = style.childNodes;
  52209. if (childNodes[index]) {
  52210. style.removeChild(childNodes[index]);
  52211. }
  52212. if (childNodes.length) {
  52213. style.insertBefore(cssNode, childNodes[index]);
  52214. } else {
  52215. style.appendChild(cssNode);
  52216. }
  52217. }
  52218. }
  52219. function applyToTag(style, options, obj) {
  52220. var css = obj.css;
  52221. var media = obj.media;
  52222. var sourceMap = obj.sourceMap;
  52223. if (media) {
  52224. style.setAttribute('media', media);
  52225. } else {
  52226. style.removeAttribute('media');
  52227. }
  52228. if (sourceMap && typeof btoa !== 'undefined') {
  52229. css += "\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), " */");
  52230. } // For old IE
  52231. /* istanbul ignore if */
  52232. if (style.styleSheet) {
  52233. style.styleSheet.cssText = css;
  52234. } else {
  52235. while (style.firstChild) {
  52236. style.removeChild(style.firstChild);
  52237. }
  52238. style.appendChild(document.createTextNode(css));
  52239. }
  52240. }
  52241. var singleton = null;
  52242. var singletonCounter = 0;
  52243. function addStyle(obj, options) {
  52244. var style;
  52245. var update;
  52246. var remove;
  52247. if (options.singleton) {
  52248. var styleIndex = singletonCounter++;
  52249. style = singleton || (singleton = insertStyleElement(options));
  52250. update = applyToSingletonTag.bind(null, style, styleIndex, false);
  52251. remove = applyToSingletonTag.bind(null, style, styleIndex, true);
  52252. } else {
  52253. style = insertStyleElement(options);
  52254. update = applyToTag.bind(null, style, options);
  52255. remove = function remove() {
  52256. removeStyleElement(style);
  52257. };
  52258. }
  52259. update(obj);
  52260. return function updateStyle(newObj) {
  52261. if (newObj) {
  52262. if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap) {
  52263. return;
  52264. }
  52265. update(obj = newObj);
  52266. } else {
  52267. remove();
  52268. }
  52269. };
  52270. }
  52271. module.exports = function (list, options) {
  52272. options = options || {}; // Force single-tag solution on IE6-9, which has a hard limit on the # of <style>
  52273. // tags it will allow on a page
  52274. if (!options.singleton && typeof options.singleton !== 'boolean') {
  52275. options.singleton = isOldIE();
  52276. }
  52277. list = list || [];
  52278. var lastIdentifiers = modulesToDom(list, options);
  52279. return function update(newList) {
  52280. newList = newList || [];
  52281. if (Object.prototype.toString.call(newList) !== '[object Array]') {
  52282. return;
  52283. }
  52284. for (var i = 0; i < lastIdentifiers.length; i++) {
  52285. var identifier = lastIdentifiers[i];
  52286. var index = getIndexByIdentifier(identifier);
  52287. stylesInDom[index].references--;
  52288. }
  52289. var newLastIdentifiers = modulesToDom(newList, options);
  52290. for (var _i = 0; _i < lastIdentifiers.length; _i++) {
  52291. var _identifier = lastIdentifiers[_i];
  52292. var _index = getIndexByIdentifier(_identifier);
  52293. if (stylesInDom[_index].references === 0) {
  52294. stylesInDom[_index].updater();
  52295. stylesInDom.splice(_index, 1);
  52296. }
  52297. }
  52298. lastIdentifiers = newLastIdentifiers;
  52299. };
  52300. };
  52301. /***/ }),
  52302. /***/ "./node_modules/vue/dist/vue.esm-bundler.js":
  52303. /*!**************************************************!*\
  52304. !*** ./node_modules/vue/dist/vue.esm-bundler.js ***!
  52305. \**************************************************/
  52306. /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
  52307. "use strict";
  52308. __webpack_require__.r(__webpack_exports__);
  52309. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  52310. /* harmony export */ "BaseTransition": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.BaseTransition),
  52311. /* harmony export */ "Comment": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.Comment),
  52312. /* harmony export */ "EffectScope": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.EffectScope),
  52313. /* harmony export */ "Fragment": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.Fragment),
  52314. /* harmony export */ "KeepAlive": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.KeepAlive),
  52315. /* harmony export */ "ReactiveEffect": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.ReactiveEffect),
  52316. /* harmony export */ "Static": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.Static),
  52317. /* harmony export */ "Suspense": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.Suspense),
  52318. /* harmony export */ "Teleport": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.Teleport),
  52319. /* harmony export */ "Text": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.Text),
  52320. /* harmony export */ "Transition": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.Transition),
  52321. /* harmony export */ "TransitionGroup": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.TransitionGroup),
  52322. /* harmony export */ "VueElement": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.VueElement),
  52323. /* harmony export */ "callWithAsyncErrorHandling": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.callWithAsyncErrorHandling),
  52324. /* harmony export */ "callWithErrorHandling": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.callWithErrorHandling),
  52325. /* harmony export */ "camelize": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.camelize),
  52326. /* harmony export */ "capitalize": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.capitalize),
  52327. /* harmony export */ "cloneVNode": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.cloneVNode),
  52328. /* harmony export */ "compatUtils": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.compatUtils),
  52329. /* harmony export */ "compile": () => (/* binding */ compileToFunction),
  52330. /* harmony export */ "computed": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.computed),
  52331. /* harmony export */ "createApp": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.createApp),
  52332. /* harmony export */ "createBlock": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.createBlock),
  52333. /* harmony export */ "createCommentVNode": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode),
  52334. /* harmony export */ "createElementBlock": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.createElementBlock),
  52335. /* harmony export */ "createElementVNode": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.createElementVNode),
  52336. /* harmony export */ "createHydrationRenderer": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.createHydrationRenderer),
  52337. /* harmony export */ "createPropsRestProxy": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.createPropsRestProxy),
  52338. /* harmony export */ "createRenderer": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.createRenderer),
  52339. /* harmony export */ "createSSRApp": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.createSSRApp),
  52340. /* harmony export */ "createSlots": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.createSlots),
  52341. /* harmony export */ "createStaticVNode": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.createStaticVNode),
  52342. /* harmony export */ "createTextVNode": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.createTextVNode),
  52343. /* harmony export */ "createVNode": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.createVNode),
  52344. /* harmony export */ "customRef": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.customRef),
  52345. /* harmony export */ "defineAsyncComponent": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.defineAsyncComponent),
  52346. /* harmony export */ "defineComponent": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.defineComponent),
  52347. /* harmony export */ "defineCustomElement": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.defineCustomElement),
  52348. /* harmony export */ "defineEmits": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.defineEmits),
  52349. /* harmony export */ "defineExpose": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.defineExpose),
  52350. /* harmony export */ "defineProps": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.defineProps),
  52351. /* harmony export */ "defineSSRCustomElement": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.defineSSRCustomElement),
  52352. /* harmony export */ "devtools": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.devtools),
  52353. /* harmony export */ "effect": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.effect),
  52354. /* harmony export */ "effectScope": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.effectScope),
  52355. /* harmony export */ "getCurrentInstance": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.getCurrentInstance),
  52356. /* harmony export */ "getCurrentScope": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.getCurrentScope),
  52357. /* harmony export */ "getTransitionRawChildren": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.getTransitionRawChildren),
  52358. /* harmony export */ "guardReactiveProps": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.guardReactiveProps),
  52359. /* harmony export */ "h": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.h),
  52360. /* harmony export */ "handleError": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.handleError),
  52361. /* harmony export */ "hydrate": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.hydrate),
  52362. /* harmony export */ "initCustomFormatter": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.initCustomFormatter),
  52363. /* harmony export */ "initDirectivesForSSR": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.initDirectivesForSSR),
  52364. /* harmony export */ "inject": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.inject),
  52365. /* harmony export */ "isMemoSame": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.isMemoSame),
  52366. /* harmony export */ "isProxy": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.isProxy),
  52367. /* harmony export */ "isReactive": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.isReactive),
  52368. /* harmony export */ "isReadonly": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.isReadonly),
  52369. /* harmony export */ "isRef": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.isRef),
  52370. /* harmony export */ "isRuntimeOnly": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.isRuntimeOnly),
  52371. /* harmony export */ "isShallow": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.isShallow),
  52372. /* harmony export */ "isVNode": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.isVNode),
  52373. /* harmony export */ "markRaw": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.markRaw),
  52374. /* harmony export */ "mergeDefaults": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.mergeDefaults),
  52375. /* harmony export */ "mergeProps": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.mergeProps),
  52376. /* harmony export */ "nextTick": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.nextTick),
  52377. /* harmony export */ "normalizeClass": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.normalizeClass),
  52378. /* harmony export */ "normalizeProps": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.normalizeProps),
  52379. /* harmony export */ "normalizeStyle": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.normalizeStyle),
  52380. /* harmony export */ "onActivated": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.onActivated),
  52381. /* harmony export */ "onBeforeMount": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.onBeforeMount),
  52382. /* harmony export */ "onBeforeUnmount": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.onBeforeUnmount),
  52383. /* harmony export */ "onBeforeUpdate": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.onBeforeUpdate),
  52384. /* harmony export */ "onDeactivated": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.onDeactivated),
  52385. /* harmony export */ "onErrorCaptured": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.onErrorCaptured),
  52386. /* harmony export */ "onMounted": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.onMounted),
  52387. /* harmony export */ "onRenderTracked": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.onRenderTracked),
  52388. /* harmony export */ "onRenderTriggered": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.onRenderTriggered),
  52389. /* harmony export */ "onScopeDispose": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.onScopeDispose),
  52390. /* harmony export */ "onServerPrefetch": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.onServerPrefetch),
  52391. /* harmony export */ "onUnmounted": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.onUnmounted),
  52392. /* harmony export */ "onUpdated": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.onUpdated),
  52393. /* harmony export */ "openBlock": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.openBlock),
  52394. /* harmony export */ "popScopeId": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.popScopeId),
  52395. /* harmony export */ "provide": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.provide),
  52396. /* harmony export */ "proxyRefs": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.proxyRefs),
  52397. /* harmony export */ "pushScopeId": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.pushScopeId),
  52398. /* harmony export */ "queuePostFlushCb": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.queuePostFlushCb),
  52399. /* harmony export */ "reactive": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.reactive),
  52400. /* harmony export */ "readonly": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.readonly),
  52401. /* harmony export */ "ref": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.ref),
  52402. /* harmony export */ "registerRuntimeCompiler": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.registerRuntimeCompiler),
  52403. /* harmony export */ "render": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.render),
  52404. /* harmony export */ "renderList": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.renderList),
  52405. /* harmony export */ "renderSlot": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.renderSlot),
  52406. /* harmony export */ "resolveComponent": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.resolveComponent),
  52407. /* harmony export */ "resolveDirective": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.resolveDirective),
  52408. /* harmony export */ "resolveDynamicComponent": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.resolveDynamicComponent),
  52409. /* harmony export */ "resolveFilter": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.resolveFilter),
  52410. /* harmony export */ "resolveTransitionHooks": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.resolveTransitionHooks),
  52411. /* harmony export */ "setBlockTracking": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.setBlockTracking),
  52412. /* harmony export */ "setDevtoolsHook": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.setDevtoolsHook),
  52413. /* harmony export */ "setTransitionHooks": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.setTransitionHooks),
  52414. /* harmony export */ "shallowReactive": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.shallowReactive),
  52415. /* harmony export */ "shallowReadonly": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.shallowReadonly),
  52416. /* harmony export */ "shallowRef": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.shallowRef),
  52417. /* harmony export */ "ssrContextKey": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.ssrContextKey),
  52418. /* harmony export */ "ssrUtils": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.ssrUtils),
  52419. /* harmony export */ "stop": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.stop),
  52420. /* harmony export */ "toDisplayString": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.toDisplayString),
  52421. /* harmony export */ "toHandlerKey": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.toHandlerKey),
  52422. /* harmony export */ "toHandlers": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.toHandlers),
  52423. /* harmony export */ "toRaw": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.toRaw),
  52424. /* harmony export */ "toRef": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.toRef),
  52425. /* harmony export */ "toRefs": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.toRefs),
  52426. /* harmony export */ "transformVNodeArgs": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.transformVNodeArgs),
  52427. /* harmony export */ "triggerRef": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.triggerRef),
  52428. /* harmony export */ "unref": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.unref),
  52429. /* harmony export */ "useAttrs": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.useAttrs),
  52430. /* harmony export */ "useCssModule": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.useCssModule),
  52431. /* harmony export */ "useCssVars": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.useCssVars),
  52432. /* harmony export */ "useSSRContext": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.useSSRContext),
  52433. /* harmony export */ "useSlots": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.useSlots),
  52434. /* harmony export */ "useTransitionState": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.useTransitionState),
  52435. /* harmony export */ "vModelCheckbox": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.vModelCheckbox),
  52436. /* harmony export */ "vModelDynamic": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.vModelDynamic),
  52437. /* harmony export */ "vModelRadio": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.vModelRadio),
  52438. /* harmony export */ "vModelSelect": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.vModelSelect),
  52439. /* harmony export */ "vModelText": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.vModelText),
  52440. /* harmony export */ "vShow": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.vShow),
  52441. /* harmony export */ "version": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.version),
  52442. /* harmony export */ "warn": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.warn),
  52443. /* harmony export */ "watch": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.watch),
  52444. /* harmony export */ "watchEffect": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.watchEffect),
  52445. /* harmony export */ "watchPostEffect": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.watchPostEffect),
  52446. /* harmony export */ "watchSyncEffect": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.watchSyncEffect),
  52447. /* harmony export */ "withAsyncContext": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.withAsyncContext),
  52448. /* harmony export */ "withCtx": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.withCtx),
  52449. /* harmony export */ "withDefaults": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.withDefaults),
  52450. /* harmony export */ "withDirectives": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.withDirectives),
  52451. /* harmony export */ "withKeys": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.withKeys),
  52452. /* harmony export */ "withMemo": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.withMemo),
  52453. /* harmony export */ "withModifiers": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.withModifiers),
  52454. /* harmony export */ "withScopeId": () => (/* reexport safe */ _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__.withScopeId)
  52455. /* harmony export */ });
  52456. /* harmony import */ var _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @vue/runtime-dom */ "./node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.js");
  52457. /* harmony import */ var _vue_runtime_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @vue/runtime-dom */ "./node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js");
  52458. /* harmony import */ var _vue_compiler_dom__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @vue/compiler-dom */ "./node_modules/@vue/compiler-dom/dist/compiler-dom.esm-bundler.js");
  52459. /* harmony import */ var _vue_shared__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @vue/shared */ "./node_modules/@vue/shared/dist/shared.esm-bundler.js");
  52460. function initDev() {
  52461. {
  52462. (0,_vue_runtime_dom__WEBPACK_IMPORTED_MODULE_2__.initCustomFormatter)();
  52463. }
  52464. }
  52465. // This entry is the "full-build" that includes both the runtime
  52466. if ((true)) {
  52467. initDev();
  52468. }
  52469. const compileCache = Object.create(null);
  52470. function compileToFunction(template, options) {
  52471. if (!(0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.isString)(template)) {
  52472. if (template.nodeType) {
  52473. template = template.innerHTML;
  52474. }
  52475. else {
  52476. ( true) && (0,_vue_runtime_dom__WEBPACK_IMPORTED_MODULE_2__.warn)(`invalid template option: `, template);
  52477. return _vue_shared__WEBPACK_IMPORTED_MODULE_1__.NOOP;
  52478. }
  52479. }
  52480. const key = template;
  52481. const cached = compileCache[key];
  52482. if (cached) {
  52483. return cached;
  52484. }
  52485. if (template[0] === '#') {
  52486. const el = document.querySelector(template);
  52487. if (( true) && !el) {
  52488. (0,_vue_runtime_dom__WEBPACK_IMPORTED_MODULE_2__.warn)(`Template element not found or is empty: ${template}`);
  52489. }
  52490. // __UNSAFE__
  52491. // Reason: potential execution of JS expressions in in-DOM template.
  52492. // The user must make sure the in-DOM template is trusted. If it's rendered
  52493. // by the server, the template should not contain any user data.
  52494. template = el ? el.innerHTML : ``;
  52495. }
  52496. const { code } = (0,_vue_compiler_dom__WEBPACK_IMPORTED_MODULE_3__.compile)(template, (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.extend)({
  52497. hoistStatic: true,
  52498. onError: ( true) ? onError : 0,
  52499. onWarn: ( true) ? e => onError(e, true) : 0
  52500. }, options));
  52501. function onError(err, asWarning = false) {
  52502. const message = asWarning
  52503. ? err.message
  52504. : `Template compilation error: ${err.message}`;
  52505. const codeFrame = err.loc &&
  52506. (0,_vue_shared__WEBPACK_IMPORTED_MODULE_1__.generateCodeFrame)(template, err.loc.start.offset, err.loc.end.offset);
  52507. (0,_vue_runtime_dom__WEBPACK_IMPORTED_MODULE_2__.warn)(codeFrame ? `${message}\n${codeFrame}` : message);
  52508. }
  52509. // The wildcard import results in a huge object with every export
  52510. // with keys that cannot be mangled, and can be quite heavy size-wise.
  52511. // In the global build we know `Vue` is available globally so we can avoid
  52512. // the wildcard object.
  52513. const render = (new Function('Vue', code)(_vue_runtime_dom__WEBPACK_IMPORTED_MODULE_0__));
  52514. render._rc = true;
  52515. return (compileCache[key] = render);
  52516. }
  52517. (0,_vue_runtime_dom__WEBPACK_IMPORTED_MODULE_2__.registerRuntimeCompiler)(compileToFunction);
  52518. /***/ }),
  52519. /***/ "./resources/js/pages lazy recursive ^\\.\\/.*$":
  52520. /*!************************************************************!*\
  52521. !*** ./resources/js/pages/ lazy ^\.\/.*$ namespace object ***!
  52522. \************************************************************/
  52523. /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
  52524. var map = {
  52525. "./auth/ForgotPassword": [
  52526. "./resources/js/pages/auth/ForgotPassword.vue",
  52527. "resources_js_pages_auth_ForgotPassword_vue"
  52528. ],
  52529. "./auth/ForgotPassword.vue": [
  52530. "./resources/js/pages/auth/ForgotPassword.vue",
  52531. "resources_js_pages_auth_ForgotPassword_vue"
  52532. ],
  52533. "./auth/Login": [
  52534. "./resources/js/pages/auth/Login.vue",
  52535. "resources_js_pages_auth_Login_vue"
  52536. ],
  52537. "./auth/Login.vue": [
  52538. "./resources/js/pages/auth/Login.vue",
  52539. "resources_js_pages_auth_Login_vue"
  52540. ],
  52541. "./auth/ResetPassword": [
  52542. "./resources/js/pages/auth/ResetPassword.vue",
  52543. "resources_js_pages_auth_ResetPassword_vue"
  52544. ],
  52545. "./auth/ResetPassword.vue": [
  52546. "./resources/js/pages/auth/ResetPassword.vue",
  52547. "resources_js_pages_auth_ResetPassword_vue"
  52548. ],
  52549. "./auth/VerifyEmail": [
  52550. "./resources/js/pages/auth/VerifyEmail.vue",
  52551. "resources_js_pages_auth_VerifyEmail_vue"
  52552. ],
  52553. "./auth/VerifyEmail.vue": [
  52554. "./resources/js/pages/auth/VerifyEmail.vue",
  52555. "resources_js_pages_auth_VerifyEmail_vue"
  52556. ],
  52557. "./customer/Create": [
  52558. "./resources/js/pages/customer/Create.vue",
  52559. "resources_js_pages_customer_Create_vue"
  52560. ],
  52561. "./customer/Create.vue": [
  52562. "./resources/js/pages/customer/Create.vue",
  52563. "resources_js_pages_customer_Create_vue"
  52564. ],
  52565. "./customer/Edit": [
  52566. "./resources/js/pages/customer/Edit.vue",
  52567. "resources_js_pages_customer_Edit_vue"
  52568. ],
  52569. "./customer/Edit.vue": [
  52570. "./resources/js/pages/customer/Edit.vue",
  52571. "resources_js_pages_customer_Edit_vue"
  52572. ],
  52573. "./customer/Index": [
  52574. "./resources/js/pages/customer/Index.vue",
  52575. "resources_js_pages_customer_Index_vue"
  52576. ],
  52577. "./customer/Index.vue": [
  52578. "./resources/js/pages/customer/Index.vue",
  52579. "resources_js_pages_customer_Index_vue"
  52580. ],
  52581. "./customer/TableHeader": [
  52582. "./resources/js/pages/customer/TableHeader.js",
  52583. "resources_js_pages_customer_TableHeader_js"
  52584. ],
  52585. "./customer/TableHeader.js": [
  52586. "./resources/js/pages/customer/TableHeader.js",
  52587. "resources_js_pages_customer_TableHeader_js"
  52588. ],
  52589. "./discount/Index": [
  52590. "./resources/js/pages/discount/Index.vue",
  52591. "resources_js_pages_discount_Index_vue"
  52592. ],
  52593. "./discount/Index.vue": [
  52594. "./resources/js/pages/discount/Index.vue",
  52595. "resources_js_pages_discount_Index_vue"
  52596. ],
  52597. "./error/Error": [
  52598. "./resources/js/pages/error/Error.vue",
  52599. "resources_js_pages_error_Error_vue"
  52600. ],
  52601. "./error/Error.vue": [
  52602. "./resources/js/pages/error/Error.vue",
  52603. "resources_js_pages_error_Error_vue"
  52604. ],
  52605. "./expense/Create": [
  52606. "./resources/js/pages/expense/Create.vue",
  52607. "resources_js_pages_expense_Create_vue"
  52608. ],
  52609. "./expense/Create.vue": [
  52610. "./resources/js/pages/expense/Create.vue",
  52611. "resources_js_pages_expense_Create_vue"
  52612. ],
  52613. "./expense/Index": [
  52614. "./resources/js/pages/expense/Index.vue",
  52615. "resources_js_pages_expense_Index_vue"
  52616. ],
  52617. "./expense/Index.vue": [
  52618. "./resources/js/pages/expense/Index.vue",
  52619. "resources_js_pages_expense_Index_vue"
  52620. ],
  52621. "./expense/Show": [
  52622. "./resources/js/pages/expense/Show.vue",
  52623. "resources_js_pages_expense_Show_vue"
  52624. ],
  52625. "./expense/Show.vue": [
  52626. "./resources/js/pages/expense/Show.vue",
  52627. "resources_js_pages_expense_Show_vue"
  52628. ],
  52629. "./expense/TableHeader": [
  52630. "./resources/js/pages/expense/TableHeader.js",
  52631. "resources_js_pages_expense_TableHeader_js"
  52632. ],
  52633. "./expense/TableHeader.js": [
  52634. "./resources/js/pages/expense/TableHeader.js",
  52635. "resources_js_pages_expense_TableHeader_js"
  52636. ],
  52637. "./home/Index": [
  52638. "./resources/js/pages/home/Index.vue",
  52639. "resources_js_pages_home_Index_vue"
  52640. ],
  52641. "./home/Index.vue": [
  52642. "./resources/js/pages/home/Index.vue",
  52643. "resources_js_pages_home_Index_vue"
  52644. ],
  52645. "./laundry/Create": [
  52646. "./resources/js/pages/laundry/Create.vue",
  52647. "resources_js_pages_laundry_Create_vue"
  52648. ],
  52649. "./laundry/Create.vue": [
  52650. "./resources/js/pages/laundry/Create.vue",
  52651. "resources_js_pages_laundry_Create_vue"
  52652. ],
  52653. "./laundry/Edit": [
  52654. "./resources/js/pages/laundry/Edit.vue",
  52655. "resources_js_pages_laundry_Edit_vue"
  52656. ],
  52657. "./laundry/Edit.vue": [
  52658. "./resources/js/pages/laundry/Edit.vue",
  52659. "resources_js_pages_laundry_Edit_vue"
  52660. ],
  52661. "./laundry/Index": [
  52662. "./resources/js/pages/laundry/Index.vue",
  52663. "resources_js_pages_laundry_Index_vue"
  52664. ],
  52665. "./laundry/Index.vue": [
  52666. "./resources/js/pages/laundry/Index.vue",
  52667. "resources_js_pages_laundry_Index_vue"
  52668. ],
  52669. "./laundry/TableHeader": [
  52670. "./resources/js/pages/laundry/TableHeader.js",
  52671. "resources_js_pages_laundry_TableHeader_js"
  52672. ],
  52673. "./laundry/TableHeader.js": [
  52674. "./resources/js/pages/laundry/TableHeader.js",
  52675. "resources_js_pages_laundry_TableHeader_js"
  52676. ],
  52677. "./mutation/Report": [
  52678. "./resources/js/pages/mutation/Report.vue",
  52679. "resources_js_pages_mutation_Report_vue"
  52680. ],
  52681. "./mutation/Report.vue": [
  52682. "./resources/js/pages/mutation/Report.vue",
  52683. "resources_js_pages_mutation_Report_vue"
  52684. ],
  52685. "./mutation/TableHeader": [
  52686. "./resources/js/pages/mutation/TableHeader.js",
  52687. "resources_js_pages_mutation_TableHeader_js"
  52688. ],
  52689. "./mutation/TableHeader.js": [
  52690. "./resources/js/pages/mutation/TableHeader.js",
  52691. "resources_js_pages_mutation_TableHeader_js"
  52692. ],
  52693. "./outlet/Create": [
  52694. "./resources/js/pages/outlet/Create.vue",
  52695. "resources_js_pages_outlet_Create_vue"
  52696. ],
  52697. "./outlet/Create.vue": [
  52698. "./resources/js/pages/outlet/Create.vue",
  52699. "resources_js_pages_outlet_Create_vue"
  52700. ],
  52701. "./outlet/Edit": [
  52702. "./resources/js/pages/outlet/Edit.vue",
  52703. "resources_js_pages_outlet_Edit_vue"
  52704. ],
  52705. "./outlet/Edit.vue": [
  52706. "./resources/js/pages/outlet/Edit.vue",
  52707. "resources_js_pages_outlet_Edit_vue"
  52708. ],
  52709. "./outlet/Index": [
  52710. "./resources/js/pages/outlet/Index.vue",
  52711. "resources_js_pages_outlet_Index_vue"
  52712. ],
  52713. "./outlet/Index.vue": [
  52714. "./resources/js/pages/outlet/Index.vue",
  52715. "resources_js_pages_outlet_Index_vue"
  52716. ],
  52717. "./outlet/TableHeader": [
  52718. "./resources/js/pages/outlet/TableHeader.js",
  52719. "resources_js_pages_outlet_TableHeader_js"
  52720. ],
  52721. "./outlet/TableHeader.js": [
  52722. "./resources/js/pages/outlet/TableHeader.js",
  52723. "resources_js_pages_outlet_TableHeader_js"
  52724. ],
  52725. "./product/Create": [
  52726. "./resources/js/pages/product/Create.vue",
  52727. "resources_js_pages_product_Create_vue"
  52728. ],
  52729. "./product/Create.vue": [
  52730. "./resources/js/pages/product/Create.vue",
  52731. "resources_js_pages_product_Create_vue"
  52732. ],
  52733. "./product/Edit": [
  52734. "./resources/js/pages/product/Edit.vue",
  52735. "resources_js_pages_product_Edit_vue"
  52736. ],
  52737. "./product/Edit.vue": [
  52738. "./resources/js/pages/product/Edit.vue",
  52739. "resources_js_pages_product_Edit_vue"
  52740. ],
  52741. "./product/Index": [
  52742. "./resources/js/pages/product/Index.vue",
  52743. "resources_js_pages_product_Index_vue"
  52744. ],
  52745. "./product/Index.vue": [
  52746. "./resources/js/pages/product/Index.vue",
  52747. "resources_js_pages_product_Index_vue"
  52748. ],
  52749. "./product/TableHeader": [
  52750. "./resources/js/pages/product/TableHeader.js",
  52751. "resources_js_pages_product_TableHeader_js"
  52752. ],
  52753. "./product/TableHeader.js": [
  52754. "./resources/js/pages/product/TableHeader.js",
  52755. "resources_js_pages_product_TableHeader_js"
  52756. ],
  52757. "./transaction/Create": [
  52758. "./resources/js/pages/transaction/Create.vue",
  52759. "resources_js_pages_transaction_Create_vue"
  52760. ],
  52761. "./transaction/Create.vue": [
  52762. "./resources/js/pages/transaction/Create.vue",
  52763. "resources_js_pages_transaction_Create_vue"
  52764. ],
  52765. "./transaction/Index": [
  52766. "./resources/js/pages/transaction/Index.vue",
  52767. "resources_js_pages_transaction_Index_vue"
  52768. ],
  52769. "./transaction/Index.vue": [
  52770. "./resources/js/pages/transaction/Index.vue",
  52771. "resources_js_pages_transaction_Index_vue"
  52772. ],
  52773. "./transaction/Report": [
  52774. "./resources/js/pages/transaction/Report.vue",
  52775. "resources_js_pages_transaction_Report_vue"
  52776. ],
  52777. "./transaction/Report.vue": [
  52778. "./resources/js/pages/transaction/Report.vue",
  52779. "resources_js_pages_transaction_Report_vue"
  52780. ],
  52781. "./transaction/Show": [
  52782. "./resources/js/pages/transaction/Show.vue",
  52783. "resources_js_pages_transaction_Show_vue"
  52784. ],
  52785. "./transaction/Show.vue": [
  52786. "./resources/js/pages/transaction/Show.vue",
  52787. "resources_js_pages_transaction_Show_vue"
  52788. ],
  52789. "./transaction/TableHeader": [
  52790. "./resources/js/pages/transaction/TableHeader.js",
  52791. "resources_js_pages_transaction_TableHeader_js"
  52792. ],
  52793. "./transaction/TableHeader.js": [
  52794. "./resources/js/pages/transaction/TableHeader.js",
  52795. "resources_js_pages_transaction_TableHeader_js"
  52796. ],
  52797. "./user/Create": [
  52798. "./resources/js/pages/user/Create.vue",
  52799. "resources_js_pages_user_Create_vue"
  52800. ],
  52801. "./user/Create.vue": [
  52802. "./resources/js/pages/user/Create.vue",
  52803. "resources_js_pages_user_Create_vue"
  52804. ],
  52805. "./user/Edit": [
  52806. "./resources/js/pages/user/Edit.vue",
  52807. "resources_js_pages_user_Edit_vue"
  52808. ],
  52809. "./user/Edit.vue": [
  52810. "./resources/js/pages/user/Edit.vue",
  52811. "resources_js_pages_user_Edit_vue"
  52812. ],
  52813. "./user/Index": [
  52814. "./resources/js/pages/user/Index.vue",
  52815. "resources_js_pages_user_Index_vue"
  52816. ],
  52817. "./user/Index.vue": [
  52818. "./resources/js/pages/user/Index.vue",
  52819. "resources_js_pages_user_Index_vue"
  52820. ],
  52821. "./user/Show": [
  52822. "./resources/js/pages/user/Show.vue",
  52823. "resources_js_pages_user_Show_vue"
  52824. ],
  52825. "./user/Show.vue": [
  52826. "./resources/js/pages/user/Show.vue",
  52827. "resources_js_pages_user_Show_vue"
  52828. ],
  52829. "./user/TableHeader": [
  52830. "./resources/js/pages/user/TableHeader.js",
  52831. "resources_js_pages_user_TableHeader_js"
  52832. ],
  52833. "./user/TableHeader.js": [
  52834. "./resources/js/pages/user/TableHeader.js",
  52835. "resources_js_pages_user_TableHeader_js"
  52836. ]
  52837. };
  52838. function webpackAsyncContext(req) {
  52839. if(!__webpack_require__.o(map, req)) {
  52840. return Promise.resolve().then(() => {
  52841. var e = new Error("Cannot find module '" + req + "'");
  52842. e.code = 'MODULE_NOT_FOUND';
  52843. throw e;
  52844. });
  52845. }
  52846. var ids = map[req], id = ids[0];
  52847. return __webpack_require__.e(ids[1]).then(() => {
  52848. return __webpack_require__(id);
  52849. });
  52850. }
  52851. webpackAsyncContext.keys = () => (Object.keys(map));
  52852. webpackAsyncContext.id = "./resources/js/pages lazy recursive ^\\.\\/.*$";
  52853. module.exports = webpackAsyncContext;
  52854. /***/ }),
  52855. /***/ "?2128":
  52856. /*!********************************!*\
  52857. !*** ./util.inspect (ignored) ***!
  52858. \********************************/
  52859. /***/ (() => {
  52860. /* (ignored) */
  52861. /***/ }),
  52862. /***/ "./node_modules/@inertiajs/inertia/node_modules/axios/package.json":
  52863. /*!*************************************************************************!*\
  52864. !*** ./node_modules/@inertiajs/inertia/node_modules/axios/package.json ***!
  52865. \*************************************************************************/
  52866. /***/ ((module) => {
  52867. "use strict";
  52868. module.exports = JSON.parse('{"name":"axios","version":"0.21.4","description":"Promise based HTTP client for the browser and node.js","main":"index.js","scripts":{"test":"grunt test","start":"node ./sandbox/server.js","build":"NODE_ENV=production grunt build","preversion":"npm test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json","postversion":"git push && git push --tags","examples":"node ./examples/server.js","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","fix":"eslint --fix lib/**/*.js"},"repository":{"type":"git","url":"https://github.com/axios/axios.git"},"keywords":["xhr","http","ajax","promise","node"],"author":"Matt Zabriskie","license":"MIT","bugs":{"url":"https://github.com/axios/axios/issues"},"homepage":"https://axios-http.com","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"jsdelivr":"dist/axios.min.js","unpkg":"dist/axios.min.js","typings":"./index.d.ts","dependencies":{"follow-redirects":"^1.14.0"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}]}');
  52869. /***/ })
  52870. /******/ });
  52871. /************************************************************************/
  52872. /******/ // The module cache
  52873. /******/ var __webpack_module_cache__ = {};
  52874. /******/
  52875. /******/ // The require function
  52876. /******/ function __webpack_require__(moduleId) {
  52877. /******/ // Check if module is in cache
  52878. /******/ var cachedModule = __webpack_module_cache__[moduleId];
  52879. /******/ if (cachedModule !== undefined) {
  52880. /******/ return cachedModule.exports;
  52881. /******/ }
  52882. /******/ // Create a new module (and put it into the cache)
  52883. /******/ var module = __webpack_module_cache__[moduleId] = {
  52884. /******/ id: moduleId,
  52885. /******/ loaded: false,
  52886. /******/ exports: {}
  52887. /******/ };
  52888. /******/
  52889. /******/ // Execute the module function
  52890. /******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
  52891. /******/
  52892. /******/ // Flag the module as loaded
  52893. /******/ module.loaded = true;
  52894. /******/
  52895. /******/ // Return the exports of the module
  52896. /******/ return module.exports;
  52897. /******/ }
  52898. /******/
  52899. /******/ // expose the modules object (__webpack_modules__)
  52900. /******/ __webpack_require__.m = __webpack_modules__;
  52901. /******/
  52902. /************************************************************************/
  52903. /******/ /* webpack/runtime/compat get default export */
  52904. /******/ (() => {
  52905. /******/ // getDefaultExport function for compatibility with non-harmony modules
  52906. /******/ __webpack_require__.n = (module) => {
  52907. /******/ var getter = module && module.__esModule ?
  52908. /******/ () => (module['default']) :
  52909. /******/ () => (module);
  52910. /******/ __webpack_require__.d(getter, { a: getter });
  52911. /******/ return getter;
  52912. /******/ };
  52913. /******/ })();
  52914. /******/
  52915. /******/ /* webpack/runtime/define property getters */
  52916. /******/ (() => {
  52917. /******/ // define getter functions for harmony exports
  52918. /******/ __webpack_require__.d = (exports, definition) => {
  52919. /******/ for(var key in definition) {
  52920. /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
  52921. /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
  52922. /******/ }
  52923. /******/ }
  52924. /******/ };
  52925. /******/ })();
  52926. /******/
  52927. /******/ /* webpack/runtime/ensure chunk */
  52928. /******/ (() => {
  52929. /******/ __webpack_require__.f = {};
  52930. /******/ // This file contains only the entry chunk.
  52931. /******/ // The chunk loading function for additional chunks
  52932. /******/ __webpack_require__.e = (chunkId) => {
  52933. /******/ return Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {
  52934. /******/ __webpack_require__.f[key](chunkId, promises);
  52935. /******/ return promises;
  52936. /******/ }, []));
  52937. /******/ };
  52938. /******/ })();
  52939. /******/
  52940. /******/ /* webpack/runtime/get javascript chunk filename */
  52941. /******/ (() => {
  52942. /******/ // This function allow to reference async chunks
  52943. /******/ __webpack_require__.u = (chunkId) => {
  52944. /******/ // return url for filenames based on template
  52945. /******/ return "js/" + chunkId + ".js?id=" + {"node_modules_chart_js_auto_auto_esm_js":"10c6b388645ceb22","resources_js_pages_auth_ForgotPassword_vue":"06e3fde2f6b5dfa3","resources_js_pages_auth_Login_vue":"0d70b4f828bb2ae3","resources_js_pages_auth_ResetPassword_vue":"2ba70d514b47ecff","resources_js_pages_auth_VerifyEmail_vue":"ebac28cf5fb51cfc","resources_js_pages_customer_Create_vue":"1220be5949d46569","resources_js_pages_customer_Edit_vue":"bb71c64039e173a1","resources_js_pages_customer_Index_vue":"52a1110802b6b996","resources_js_pages_customer_TableHeader_js":"71be5afdca048a9c","resources_js_pages_discount_Index_vue":"7a73e2119e6e6c6f","resources_js_pages_error_Error_vue":"39121f9961877130","resources_js_pages_expense_Create_vue":"8fa047c8fcff0fa3","resources_js_pages_expense_Index_vue":"b56d8a0027fef24c","resources_js_pages_expense_Show_vue":"e46cf4a28b9e732b","resources_js_pages_expense_TableHeader_js":"72e3dee74175b1c0","resources_js_pages_home_Index_vue":"2e900ea05a1e7b5c","resources_js_pages_laundry_Create_vue":"f5731b3f078c4bff","resources_js_pages_laundry_Edit_vue":"430f285b197d2fc1","resources_js_pages_laundry_Index_vue":"ee761f9e7d6e4502","resources_js_pages_laundry_TableHeader_js":"494e577855bbcaf6","resources_js_pages_mutation_Report_vue":"0c16f00427eb4815","resources_js_pages_mutation_TableHeader_js":"82c2999bd7d098a1","resources_js_pages_outlet_Create_vue":"4958b1a88d1e03d1","resources_js_pages_outlet_Edit_vue":"3ce4dea5bd8e134a","resources_js_pages_outlet_Index_vue":"f58972cb6db52f4a","resources_js_pages_outlet_TableHeader_js":"498bf7e64bc0d0c4","resources_js_pages_product_Create_vue":"6f7ae2bf0addfd2c","resources_js_pages_product_Edit_vue":"aec56d000e33fbe6","resources_js_pages_product_Index_vue":"e73d3cd965bdbfb3","resources_js_pages_product_TableHeader_js":"b8eaaa9de25a2322","resources_js_pages_transaction_Create_vue":"04881653c83db0e8","resources_js_pages_transaction_Index_vue":"54a40dce85162abd","resources_js_pages_transaction_Report_vue":"a3646e1ede56ed0d","resources_js_pages_transaction_Show_vue":"bc1cb7b5161b5386","resources_js_pages_transaction_TableHeader_js":"be63e672e103818b","resources_js_pages_user_Create_vue":"9328027e33f14038","resources_js_pages_user_Edit_vue":"5e97bc1dbb553877","resources_js_pages_user_Index_vue":"bc60d10f530734f1","resources_js_pages_user_Show_vue":"0acbc3d158904cf1","resources_js_pages_user_TableHeader_js":"5653ecbcd70fd235"}[chunkId] + "";
  52946. /******/ };
  52947. /******/ })();
  52948. /******/
  52949. /******/ /* webpack/runtime/get mini-css chunk filename */
  52950. /******/ (() => {
  52951. /******/ // This function allow to reference all chunks
  52952. /******/ __webpack_require__.miniCssF = (chunkId) => {
  52953. /******/ // return url for filenames based on template
  52954. /******/ return undefined;
  52955. /******/ };
  52956. /******/ })();
  52957. /******/
  52958. /******/ /* webpack/runtime/global */
  52959. /******/ (() => {
  52960. /******/ __webpack_require__.g = (function() {
  52961. /******/ if (typeof globalThis === 'object') return globalThis;
  52962. /******/ try {
  52963. /******/ return this || new Function('return this')();
  52964. /******/ } catch (e) {
  52965. /******/ if (typeof window === 'object') return window;
  52966. /******/ }
  52967. /******/ })();
  52968. /******/ })();
  52969. /******/
  52970. /******/ /* webpack/runtime/hasOwnProperty shorthand */
  52971. /******/ (() => {
  52972. /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
  52973. /******/ })();
  52974. /******/
  52975. /******/ /* webpack/runtime/load script */
  52976. /******/ (() => {
  52977. /******/ var inProgress = {};
  52978. /******/ // data-webpack is not used as build has no uniqueName
  52979. /******/ // loadScript function to load a script via script tag
  52980. /******/ __webpack_require__.l = (url, done, key, chunkId) => {
  52981. /******/ if(inProgress[url]) { inProgress[url].push(done); return; }
  52982. /******/ var script, needAttach;
  52983. /******/ if(key !== undefined) {
  52984. /******/ var scripts = document.getElementsByTagName("script");
  52985. /******/ for(var i = 0; i < scripts.length; i++) {
  52986. /******/ var s = scripts[i];
  52987. /******/ if(s.getAttribute("src") == url) { script = s; break; }
  52988. /******/ }
  52989. /******/ }
  52990. /******/ if(!script) {
  52991. /******/ needAttach = true;
  52992. /******/ script = document.createElement('script');
  52993. /******/
  52994. /******/ script.charset = 'utf-8';
  52995. /******/ script.timeout = 120;
  52996. /******/ if (__webpack_require__.nc) {
  52997. /******/ script.setAttribute("nonce", __webpack_require__.nc);
  52998. /******/ }
  52999. /******/
  53000. /******/ script.src = url;
  53001. /******/ }
  53002. /******/ inProgress[url] = [done];
  53003. /******/ var onScriptComplete = (prev, event) => {
  53004. /******/ // avoid mem leaks in IE.
  53005. /******/ script.onerror = script.onload = null;
  53006. /******/ clearTimeout(timeout);
  53007. /******/ var doneFns = inProgress[url];
  53008. /******/ delete inProgress[url];
  53009. /******/ script.parentNode && script.parentNode.removeChild(script);
  53010. /******/ doneFns && doneFns.forEach((fn) => (fn(event)));
  53011. /******/ if(prev) return prev(event);
  53012. /******/ }
  53013. /******/ ;
  53014. /******/ var timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
  53015. /******/ script.onerror = onScriptComplete.bind(null, script.onerror);
  53016. /******/ script.onload = onScriptComplete.bind(null, script.onload);
  53017. /******/ needAttach && document.head.appendChild(script);
  53018. /******/ };
  53019. /******/ })();
  53020. /******/
  53021. /******/ /* webpack/runtime/make namespace object */
  53022. /******/ (() => {
  53023. /******/ // define __esModule on exports
  53024. /******/ __webpack_require__.r = (exports) => {
  53025. /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
  53026. /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
  53027. /******/ }
  53028. /******/ Object.defineProperty(exports, '__esModule', { value: true });
  53029. /******/ };
  53030. /******/ })();
  53031. /******/
  53032. /******/ /* webpack/runtime/node module decorator */
  53033. /******/ (() => {
  53034. /******/ __webpack_require__.nmd = (module) => {
  53035. /******/ module.paths = [];
  53036. /******/ if (!module.children) module.children = [];
  53037. /******/ return module;
  53038. /******/ };
  53039. /******/ })();
  53040. /******/
  53041. /******/ /* webpack/runtime/publicPath */
  53042. /******/ (() => {
  53043. /******/ __webpack_require__.p = "/";
  53044. /******/ })();
  53045. /******/
  53046. /******/ /* webpack/runtime/jsonp chunk loading */
  53047. /******/ (() => {
  53048. /******/ // no baseURI
  53049. /******/
  53050. /******/ // object to store loaded and loading chunks
  53051. /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
  53052. /******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
  53053. /******/ var installedChunks = {
  53054. /******/ "/js/vue": 0
  53055. /******/ };
  53056. /******/
  53057. /******/ __webpack_require__.f.j = (chunkId, promises) => {
  53058. /******/ // JSONP chunk loading for javascript
  53059. /******/ var installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;
  53060. /******/ if(installedChunkData !== 0) { // 0 means "already installed".
  53061. /******/
  53062. /******/ // a Promise means "currently loading".
  53063. /******/ if(installedChunkData) {
  53064. /******/ promises.push(installedChunkData[2]);
  53065. /******/ } else {
  53066. /******/ if(true) { // all chunks have JS
  53067. /******/ // setup Promise in chunk cache
  53068. /******/ var promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));
  53069. /******/ promises.push(installedChunkData[2] = promise);
  53070. /******/
  53071. /******/ // start chunk loading
  53072. /******/ var url = __webpack_require__.p + __webpack_require__.u(chunkId);
  53073. /******/ // create error before stack unwound to get useful stacktrace later
  53074. /******/ var error = new Error();
  53075. /******/ var loadingEnded = (event) => {
  53076. /******/ if(__webpack_require__.o(installedChunks, chunkId)) {
  53077. /******/ installedChunkData = installedChunks[chunkId];
  53078. /******/ if(installedChunkData !== 0) installedChunks[chunkId] = undefined;
  53079. /******/ if(installedChunkData) {
  53080. /******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
  53081. /******/ var realSrc = event && event.target && event.target.src;
  53082. /******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
  53083. /******/ error.name = 'ChunkLoadError';
  53084. /******/ error.type = errorType;
  53085. /******/ error.request = realSrc;
  53086. /******/ installedChunkData[1](error);
  53087. /******/ }
  53088. /******/ }
  53089. /******/ };
  53090. /******/ __webpack_require__.l(url, loadingEnded, "chunk-" + chunkId, chunkId);
  53091. /******/ } else installedChunks[chunkId] = 0;
  53092. /******/ }
  53093. /******/ }
  53094. /******/ };
  53095. /******/
  53096. /******/ // no prefetching
  53097. /******/
  53098. /******/ // no preloaded
  53099. /******/
  53100. /******/ // no HMR
  53101. /******/
  53102. /******/ // no HMR manifest
  53103. /******/
  53104. /******/ // no on chunks loaded
  53105. /******/
  53106. /******/ // install a JSONP callback for chunk loading
  53107. /******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => {
  53108. /******/ var [chunkIds, moreModules, runtime] = data;
  53109. /******/ // add "moreModules" to the modules object,
  53110. /******/ // then flag all "chunkIds" as loaded and fire callback
  53111. /******/ var moduleId, chunkId, i = 0;
  53112. /******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) {
  53113. /******/ for(moduleId in moreModules) {
  53114. /******/ if(__webpack_require__.o(moreModules, moduleId)) {
  53115. /******/ __webpack_require__.m[moduleId] = moreModules[moduleId];
  53116. /******/ }
  53117. /******/ }
  53118. /******/ if(runtime) var result = runtime(__webpack_require__);
  53119. /******/ }
  53120. /******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data);
  53121. /******/ for(;i < chunkIds.length; i++) {
  53122. /******/ chunkId = chunkIds[i];
  53123. /******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
  53124. /******/ installedChunks[chunkId][0]();
  53125. /******/ }
  53126. /******/ installedChunks[chunkId] = 0;
  53127. /******/ }
  53128. /******/
  53129. /******/ }
  53130. /******/
  53131. /******/ var chunkLoadingGlobal = self["webpackChunk"] = self["webpackChunk"] || [];
  53132. /******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
  53133. /******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
  53134. /******/ })();
  53135. /******/
  53136. /************************************************************************/
  53137. var __webpack_exports__ = {};
  53138. // This entry need to be wrapped in an IIFE because it need to be in strict mode.
  53139. (() => {
  53140. "use strict";
  53141. /*!*****************************!*\
  53142. !*** ./resources/js/vue.js ***!
  53143. \*****************************/
  53144. __webpack_require__.r(__webpack_exports__);
  53145. /* harmony import */ var primevue_resources_themes_tailwind_light_theme_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! primevue/resources/themes/tailwind-light/theme.css */ "./node_modules/primevue/resources/themes/tailwind-light/theme.css");
  53146. /* harmony import */ var primevue_resources_primevue_min_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! primevue/resources/primevue.min.css */ "./node_modules/primevue/resources/primevue.min.css");
  53147. /* harmony import */ var primeflex_primeflex_css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! primeflex/primeflex.css */ "./node_modules/primeflex/primeflex.css");
  53148. /* harmony import */ var primeicons_primeicons_css__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! primeicons/primeicons.css */ "./node_modules/primeicons/primeicons.css");
  53149. /* harmony import */ var _assets_styles_layout_scss__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @/assets/styles/layout.scss */ "./resources/js/assets/styles/layout.scss");
  53150. /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js");
  53151. /* harmony import */ var _inertiajs_inertia_vue3__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @inertiajs/inertia-vue3 */ "./node_modules/@inertiajs/inertia-vue3/dist/index.js");
  53152. /* harmony import */ var _inertiajs_progress__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @inertiajs/progress */ "./node_modules/@inertiajs/progress/dist/index.js");
  53153. /* harmony import */ var primevue_config__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! primevue/config */ "./node_modules/primevue/config/config.esm.js");
  53154. /* harmony import */ var primevue_styleclass__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! primevue/styleclass */ "./node_modules/primevue/styleclass/styleclass.esm.js");
  53155. /* harmony import */ var primevue_autocomplete__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! primevue/autocomplete */ "./node_modules/primevue/autocomplete/autocomplete.esm.js");
  53156. /* harmony import */ var primevue_badge__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! primevue/badge */ "./node_modules/primevue/badge/badge.esm.js");
  53157. /* harmony import */ var primevue_button__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! primevue/button */ "./node_modules/primevue/button/button.esm.js");
  53158. /* harmony import */ var primevue_calendar__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! primevue/calendar */ "./node_modules/primevue/calendar/calendar.esm.js");
  53159. /* harmony import */ var primevue_card__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! primevue/card */ "./node_modules/primevue/card/card.esm.js");
  53160. /* harmony import */ var primevue_chart__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! primevue/chart */ "./node_modules/primevue/chart/chart.esm.js");
  53161. /* harmony import */ var primevue_column__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! primevue/column */ "./node_modules/primevue/column/column.esm.js");
  53162. /* harmony import */ var primevue_datatable__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! primevue/datatable */ "./node_modules/primevue/datatable/datatable.esm.js");
  53163. /* harmony import */ var primevue_dialog__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! primevue/dialog */ "./node_modules/primevue/dialog/dialog.esm.js");
  53164. /* harmony import */ var primevue_divider__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! primevue/divider */ "./node_modules/primevue/divider/divider.esm.js");
  53165. /* harmony import */ var primevue_dropdown__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! primevue/dropdown */ "./node_modules/primevue/dropdown/dropdown.esm.js");
  53166. /* harmony import */ var primevue_editor__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! primevue/editor */ "./node_modules/primevue/editor/editor.esm.js");
  53167. /* harmony import */ var primevue_inputnumber__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! primevue/inputnumber */ "./node_modules/primevue/inputnumber/inputnumber.esm.js");
  53168. /* harmony import */ var primevue_inputtext__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! primevue/inputtext */ "./node_modules/primevue/inputtext/inputtext.esm.js");
  53169. /* harmony import */ var primevue_message__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! primevue/message */ "./node_modules/primevue/message/message.esm.js");
  53170. /* harmony import */ var primevue_paginator__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! primevue/paginator */ "./node_modules/primevue/paginator/paginator.esm.js");
  53171. /* harmony import */ var primevue_password__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! primevue/password */ "./node_modules/primevue/password/password.esm.js");
  53172. /* harmony import */ var primevue_ripple__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! primevue/ripple */ "./node_modules/primevue/ripple/ripple.esm.js");
  53173. /* harmony import */ var primevue_tabview__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! primevue/tabview */ "./node_modules/primevue/tabview/tabview.esm.js");
  53174. /* harmony import */ var primevue_tabpanel__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! primevue/tabpanel */ "./node_modules/primevue/tabpanel/tabpanel.esm.js");
  53175. /* harmony import */ var primevue_textarea__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! primevue/textarea */ "./node_modules/primevue/textarea/textarea.esm.js");
  53176. /* harmony import */ var primevue_tooltip__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! primevue/tooltip */ "./node_modules/primevue/tooltip/tooltip.esm.js");
  53177. (0,_inertiajs_inertia_vue3__WEBPACK_IMPORTED_MODULE_6__.createInertiaApp)({
  53178. title: function title(_title) {
  53179. return "".concat(_title, " - Bamb's Laundry");
  53180. },
  53181. resolve: function resolve(name) {
  53182. return __webpack_require__("./resources/js/pages lazy recursive ^\\.\\/.*$")("./".concat(name));
  53183. },
  53184. setup: function setup(_ref) {
  53185. var el = _ref.el,
  53186. App = _ref.App,
  53187. props = _ref.props,
  53188. plugin = _ref.plugin;
  53189. (0,vue__WEBPACK_IMPORTED_MODULE_5__.createApp)({
  53190. render: function render() {
  53191. return (0,vue__WEBPACK_IMPORTED_MODULE_5__.h)(App, props);
  53192. }
  53193. }).use(plugin).use(primevue_config__WEBPACK_IMPORTED_MODULE_8__["default"], {
  53194. ripple: true
  53195. }).mixin({
  53196. methods: {
  53197. route: route
  53198. }
  53199. }).directive('styleclass', primevue_styleclass__WEBPACK_IMPORTED_MODULE_9__["default"]).directive('ripple', primevue_ripple__WEBPACK_IMPORTED_MODULE_27__["default"]).directive('tooltip', primevue_tooltip__WEBPACK_IMPORTED_MODULE_31__["default"]).component('AutoComplete', primevue_autocomplete__WEBPACK_IMPORTED_MODULE_10__["default"]).component('Button', primevue_button__WEBPACK_IMPORTED_MODULE_12__["default"]).component('Badge', primevue_badge__WEBPACK_IMPORTED_MODULE_11__["default"]).component('Card', primevue_card__WEBPACK_IMPORTED_MODULE_14__["default"]).component('Calendar', primevue_calendar__WEBPACK_IMPORTED_MODULE_13__["default"]).component('Chart', primevue_chart__WEBPACK_IMPORTED_MODULE_15__["default"]).component('Column', primevue_column__WEBPACK_IMPORTED_MODULE_16__["default"]).component('DataTable', primevue_datatable__WEBPACK_IMPORTED_MODULE_17__["default"]).component('Dialog', primevue_dialog__WEBPACK_IMPORTED_MODULE_18__["default"]).component('Divider', primevue_divider__WEBPACK_IMPORTED_MODULE_19__["default"]).component('Dropdown', primevue_dropdown__WEBPACK_IMPORTED_MODULE_20__["default"]).component('Editor', primevue_editor__WEBPACK_IMPORTED_MODULE_21__["default"]).component('InputNumber', primevue_inputnumber__WEBPACK_IMPORTED_MODULE_22__["default"]).component('InputText', primevue_inputtext__WEBPACK_IMPORTED_MODULE_23__["default"]).component('Message', primevue_message__WEBPACK_IMPORTED_MODULE_24__["default"]).component('Paginator', primevue_paginator__WEBPACK_IMPORTED_MODULE_25__["default"]).component('Password', primevue_password__WEBPACK_IMPORTED_MODULE_26__["default"]).component('TabView', primevue_tabview__WEBPACK_IMPORTED_MODULE_28__["default"]).component('TabPanel', primevue_tabpanel__WEBPACK_IMPORTED_MODULE_29__["default"]).component('Textarea', primevue_textarea__WEBPACK_IMPORTED_MODULE_30__["default"]).mount(el);
  53200. }
  53201. });
  53202. _inertiajs_progress__WEBPACK_IMPORTED_MODULE_7__.InertiaProgress.init({
  53203. color: '#4F46E5'
  53204. });
  53205. })();
  53206. /******/ })()
  53207. ;