babylon.nodeEditor.max.js 2.7 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130381313813238133381343813538136381373813838139381403814138142381433814438145381463814738148381493815038151381523815338154381553815638157381583815938160381613816238163381643816538166381673816838169381703817138172381733817438175381763817738178381793818038181381823818338184381853818638187381883818938190381913819238193381943819538196381973819838199382003820138202382033820438205382063820738208382093821038211382123821338214382153821638217382183821938220382213822238223382243822538226382273822838229382303823138232382333823438235382363823738238382393824038241382423824338244382453824638247382483824938250382513825238253382543825538256382573825838259382603826138262382633826438265382663826738268382693827038271382723827338274382753827638277382783827938280382813828238283382843828538286382873828838289382903829138292382933829438295382963829738298382993830038301383023830338304383053830638307383083830938310383113831238313383143831538316383173831838319383203832138322383233832438325383263832738328383293833038331383323833338334383353833638337383383833938340383413834238343383443834538346383473834838349383503835138352383533835438355383563835738358383593836038361383623836338364383653836638367383683836938370383713837238373383743837538376383773837838379383803838138382383833838438385383863838738388383893839038391383923839338394383953839638397383983839938400384013840238403384043840538406384073840838409384103841138412384133841438415384163841738418384193842038421384223842338424384253842638427384283842938430384313843238433384343843538436384373843838439384403844138442384433844438445384463844738448384493845038451384523845338454384553845638457384583845938460384613846238463384643846538466384673846838469384703847138472384733847438475384763847738478384793848038481384823848338484384853848638487384883848938490384913849238493384943849538496384973849838499385003850138502385033850438505385063850738508385093851038511385123851338514385153851638517385183851938520385213852238523385243852538526385273852838529385303853138532385333853438535385363853738538385393854038541385423854338544385453854638547385483854938550385513855238553385543855538556385573855838559385603856138562385633856438565385663856738568385693857038571385723857338574385753857638577385783857938580385813858238583385843858538586385873858838589385903859138592385933859438595385963859738598385993860038601386023860338604386053860638607386083860938610386113861238613386143861538616386173861838619386203862138622386233862438625386263862738628386293863038631386323863338634386353863638637386383863938640386413864238643386443864538646386473864838649386503865138652386533865438655386563865738658386593866038661386623866338664386653866638667386683866938670386713867238673386743867538676386773867838679386803868138682386833868438685386863868738688386893869038691386923869338694386953869638697386983869938700387013870238703387043870538706387073870838709387103871138712387133871438715387163871738718387193872038721387223872338724387253872638727387283872938730387313873238733387343873538736387373873838739387403874138742387433874438745387463874738748387493875038751387523875338754387553875638757387583875938760387613876238763387643876538766387673876838769387703877138772387733877438775387763877738778387793878038781387823878338784387853878638787387883878938790387913879238793387943879538796387973879838799388003880138802388033880438805388063880738808388093881038811388123881338814388153881638817388183881938820388213882238823388243882538826388273882838829388303883138832388333883438835388363883738838388393884038841388423884338844388453884638847388483884938850388513885238853388543885538856388573885838859388603886138862388633886438865388663886738868388693887038871388723887338874388753887638877388783887938880388813888238883388843888538886388873888838889388903889138892388933889438895388963889738898388993890038901389023890338904389053890638907389083890938910389113891238913389143891538916389173891838919389203892138922389233892438925389263892738928389293893038931389323893338934389353893638937389383893938940389413894238943389443894538946389473894838949389503895138952389533895438955389563895738958389593896038961389623896338964389653896638967389683896938970389713897238973389743897538976389773897838979389803898138982389833898438985389863898738988389893899038991389923899338994389953899638997389983899939000390013900239003390043900539006390073900839009390103901139012390133901439015390163901739018390193902039021390223902339024390253902639027390283902939030390313903239033390343903539036390373903839039390403904139042390433904439045390463904739048390493905039051390523905339054390553905639057390583905939060390613906239063390643906539066390673906839069390703907139072390733907439075390763907739078390793908039081390823908339084390853908639087390883908939090390913909239093390943909539096390973909839099391003910139102391033910439105391063910739108391093911039111391123911339114391153911639117391183911939120391213912239123391243912539126391273912839129391303913139132391333913439135391363913739138391393914039141391423914339144391453914639147391483914939150391513915239153391543915539156391573915839159391603916139162391633916439165391663916739168391693917039171391723917339174391753917639177391783917939180391813918239183391843918539186391873918839189391903919139192391933919439195391963919739198391993920039201392023920339204392053920639207392083920939210392113921239213392143921539216392173921839219392203922139222392233922439225392263922739228392293923039231392323923339234392353923639237392383923939240392413924239243392443924539246392473924839249392503925139252392533925439255392563925739258392593926039261392623926339264392653926639267392683926939270392713927239273392743927539276392773927839279392803928139282392833928439285392863928739288392893929039291392923929339294392953929639297392983929939300393013930239303393043930539306393073930839309393103931139312393133931439315393163931739318393193932039321393223932339324393253932639327393283932939330393313933239333393343933539336393373933839339393403934139342393433934439345393463934739348393493935039351393523935339354393553935639357393583935939360393613936239363393643936539366393673936839369393703937139372393733937439375393763937739378393793938039381393823938339384393853938639387393883938939390393913939239393393943939539396393973939839399394003940139402394033940439405394063940739408394093941039411394123941339414394153941639417394183941939420394213942239423394243942539426394273942839429394303943139432394333943439435394363943739438394393944039441394423944339444394453944639447394483944939450394513945239453394543945539456394573945839459394603946139462394633946439465394663946739468394693947039471394723947339474394753947639477394783947939480394813948239483394843948539486394873948839489394903949139492394933949439495394963949739498394993950039501395023950339504395053950639507395083950939510395113951239513395143951539516395173951839519395203952139522395233952439525395263952739528395293953039531395323953339534395353953639537395383953939540395413954239543395443954539546395473954839549395503955139552395533955439555395563955739558395593956039561395623956339564395653956639567395683956939570395713957239573395743957539576395773957839579395803958139582395833958439585395863958739588395893959039591395923959339594395953959639597395983959939600396013960239603396043960539606396073960839609396103961139612396133961439615396163961739618396193962039621396223962339624396253962639627396283962939630396313963239633396343963539636396373963839639396403964139642396433964439645396463964739648396493965039651396523965339654396553965639657396583965939660396613966239663396643966539666396673966839669396703967139672396733967439675396763967739678396793968039681396823968339684396853968639687396883968939690396913969239693396943969539696396973969839699397003970139702397033970439705397063970739708397093971039711397123971339714397153971639717397183971939720397213972239723397243972539726397273972839729397303973139732397333973439735397363973739738397393974039741397423974339744397453974639747397483974939750397513975239753397543975539756397573975839759397603976139762397633976439765397663976739768397693977039771397723977339774397753977639777397783977939780397813978239783397843978539786397873978839789397903979139792397933979439795397963979739798397993980039801398023980339804398053980639807398083980939810398113981239813398143981539816398173981839819398203982139822398233982439825398263982739828398293983039831398323983339834398353983639837398383983939840398413984239843398443984539846398473984839849398503985139852398533985439855398563985739858398593986039861398623986339864398653986639867398683986939870398713987239873398743987539876398773987839879398803988139882398833988439885398863988739888398893989039891398923989339894398953989639897398983989939900399013990239903399043990539906399073990839909399103991139912399133991439915399163991739918399193992039921399223992339924399253992639927399283992939930399313993239933399343993539936399373993839939399403994139942399433994439945399463994739948399493995039951399523995339954399553995639957399583995939960399613996239963399643996539966399673996839969399703997139972399733997439975399763997739978399793998039981399823998339984399853998639987399883998939990399913999239993399943999539996399973999839999400004000140002400034000440005400064000740008400094001040011400124001340014400154001640017400184001940020400214002240023400244002540026400274002840029400304003140032400334003440035400364003740038400394004040041400424004340044400454004640047400484004940050400514005240053400544005540056400574005840059400604006140062400634006440065400664006740068400694007040071400724007340074400754007640077400784007940080400814008240083400844008540086400874008840089400904009140092400934009440095400964009740098400994010040101401024010340104401054010640107401084010940110401114011240113401144011540116401174011840119401204012140122401234012440125401264012740128401294013040131401324013340134401354013640137401384013940140401414014240143401444014540146401474014840149401504015140152401534015440155401564015740158401594016040161401624016340164401654016640167401684016940170401714017240173401744017540176401774017840179401804018140182401834018440185401864018740188401894019040191401924019340194401954019640197401984019940200402014020240203402044020540206402074020840209402104021140212402134021440215402164021740218402194022040221402224022340224402254022640227402284022940230402314023240233402344023540236402374023840239402404024140242402434024440245402464024740248402494025040251402524025340254402554025640257402584025940260402614026240263402644026540266402674026840269402704027140272402734027440275402764027740278402794028040281402824028340284402854028640287402884028940290402914029240293402944029540296402974029840299403004030140302403034030440305403064030740308403094031040311403124031340314403154031640317403184031940320403214032240323403244032540326403274032840329403304033140332403334033440335403364033740338403394034040341403424034340344403454034640347403484034940350403514035240353403544035540356403574035840359403604036140362403634036440365403664036740368403694037040371403724037340374403754037640377403784037940380403814038240383403844038540386403874038840389403904039140392403934039440395403964039740398403994040040401404024040340404404054040640407404084040940410404114041240413404144041540416404174041840419404204042140422404234042440425404264042740428404294043040431404324043340434404354043640437404384043940440404414044240443404444044540446404474044840449404504045140452404534045440455404564045740458404594046040461404624046340464404654046640467404684046940470404714047240473404744047540476404774047840479404804048140482404834048440485404864048740488404894049040491404924049340494404954049640497404984049940500405014050240503405044050540506405074050840509405104051140512405134051440515405164051740518405194052040521405224052340524405254052640527405284052940530405314053240533405344053540536405374053840539405404054140542405434054440545405464054740548405494055040551405524055340554405554055640557405584055940560405614056240563405644056540566405674056840569405704057140572405734057440575405764057740578405794058040581405824058340584405854058640587405884058940590405914059240593405944059540596405974059840599406004060140602406034060440605406064060740608406094061040611406124061340614406154061640617406184061940620406214062240623406244062540626406274062840629406304063140632406334063440635406364063740638406394064040641406424064340644406454064640647406484064940650406514065240653406544065540656406574065840659406604066140662406634066440665406664066740668406694067040671406724067340674406754067640677406784067940680406814068240683406844068540686406874068840689406904069140692406934069440695406964069740698406994070040701407024070340704407054070640707407084070940710407114071240713407144071540716407174071840719407204072140722407234072440725407264072740728407294073040731407324073340734407354073640737407384073940740407414074240743407444074540746407474074840749407504075140752407534075440755407564075740758407594076040761407624076340764407654076640767407684076940770407714077240773407744077540776407774077840779407804078140782407834078440785407864078740788407894079040791407924079340794407954079640797407984079940800408014080240803408044080540806408074080840809408104081140812408134081440815408164081740818408194082040821408224082340824408254082640827408284082940830408314083240833408344083540836408374083840839408404084140842408434084440845408464084740848408494085040851408524085340854408554085640857408584085940860408614086240863408644086540866408674086840869408704087140872408734087440875408764087740878408794088040881408824088340884408854088640887408884088940890408914089240893408944089540896408974089840899409004090140902409034090440905409064090740908409094091040911409124091340914409154091640917409184091940920409214092240923409244092540926409274092840929409304093140932409334093440935409364093740938409394094040941409424094340944409454094640947409484094940950409514095240953409544095540956409574095840959409604096140962409634096440965409664096740968409694097040971409724097340974409754097640977409784097940980409814098240983409844098540986409874098840989409904099140992409934099440995409964099740998409994100041001410024100341004410054100641007410084100941010410114101241013410144101541016410174101841019410204102141022410234102441025410264102741028410294103041031410324103341034410354103641037410384103941040410414104241043410444104541046410474104841049410504105141052410534105441055410564105741058410594106041061410624106341064410654106641067410684106941070410714107241073410744107541076410774107841079410804108141082410834108441085410864108741088410894109041091410924109341094410954109641097410984109941100411014110241103411044110541106411074110841109411104111141112411134111441115411164111741118411194112041121411224112341124411254112641127411284112941130411314113241133411344113541136411374113841139411404114141142411434114441145411464114741148411494115041151411524115341154411554115641157411584115941160411614116241163411644116541166411674116841169411704117141172411734117441175411764117741178411794118041181411824118341184411854118641187411884118941190411914119241193411944119541196411974119841199412004120141202412034120441205412064120741208412094121041211412124121341214412154121641217412184121941220412214122241223412244122541226412274122841229412304123141232412334123441235412364123741238412394124041241412424124341244412454124641247412484124941250412514125241253412544125541256412574125841259412604126141262412634126441265412664126741268412694127041271412724127341274412754127641277412784127941280412814128241283412844128541286412874128841289412904129141292412934129441295412964129741298412994130041301413024130341304413054130641307413084130941310413114131241313413144131541316413174131841319413204132141322413234132441325413264132741328413294133041331413324133341334413354133641337413384133941340413414134241343413444134541346413474134841349413504135141352413534135441355413564135741358413594136041361413624136341364413654136641367413684136941370413714137241373413744137541376413774137841379413804138141382413834138441385413864138741388413894139041391413924139341394413954139641397413984139941400414014140241403414044140541406414074140841409414104141141412414134141441415414164141741418414194142041421414224142341424414254142641427414284142941430414314143241433414344143541436414374143841439414404144141442414434144441445414464144741448414494145041451414524145341454414554145641457414584145941460414614146241463414644146541466414674146841469414704147141472414734147441475414764147741478414794148041481414824148341484414854148641487414884148941490414914149241493414944149541496414974149841499415004150141502415034150441505415064150741508415094151041511415124151341514415154151641517415184151941520415214152241523415244152541526415274152841529415304153141532415334153441535415364153741538415394154041541415424154341544415454154641547415484154941550415514155241553415544155541556415574155841559415604156141562415634156441565415664156741568415694157041571415724157341574415754157641577415784157941580415814158241583415844158541586415874158841589415904159141592415934159441595415964159741598415994160041601416024160341604416054160641607416084160941610416114161241613416144161541616416174161841619416204162141622416234162441625416264162741628416294163041631416324163341634416354163641637416384163941640416414164241643416444164541646416474164841649416504165141652416534165441655416564165741658416594166041661416624166341664416654166641667416684166941670416714167241673416744167541676416774167841679416804168141682416834168441685416864168741688416894169041691416924169341694416954169641697416984169941700417014170241703417044170541706417074170841709417104171141712417134171441715417164171741718417194172041721417224172341724417254172641727417284172941730417314173241733417344173541736417374173841739417404174141742417434174441745417464174741748417494175041751417524175341754417554175641757417584175941760417614176241763417644176541766417674176841769417704177141772417734177441775417764177741778417794178041781417824178341784417854178641787417884178941790417914179241793417944179541796417974179841799418004180141802418034180441805418064180741808418094181041811418124181341814418154181641817418184181941820418214182241823418244182541826418274182841829418304183141832418334183441835418364183741838418394184041841418424184341844418454184641847418484184941850418514185241853418544185541856418574185841859418604186141862418634186441865418664186741868418694187041871418724187341874418754187641877418784187941880418814188241883418844188541886418874188841889418904189141892418934189441895418964189741898418994190041901419024190341904419054190641907419084190941910419114191241913419144191541916419174191841919419204192141922419234192441925419264192741928419294193041931419324193341934419354193641937419384193941940419414194241943419444194541946419474194841949419504195141952419534195441955419564195741958419594196041961419624196341964419654196641967419684196941970419714197241973419744197541976419774197841979419804198141982419834198441985419864198741988419894199041991419924199341994419954199641997419984199942000420014200242003420044200542006420074200842009420104201142012420134201442015420164201742018420194202042021420224202342024420254202642027420284202942030420314203242033420344203542036420374203842039420404204142042420434204442045420464204742048420494205042051420524205342054420554205642057420584205942060420614206242063420644206542066420674206842069420704207142072420734207442075420764207742078420794208042081420824208342084420854208642087420884208942090420914209242093420944209542096420974209842099421004210142102421034210442105421064210742108421094211042111421124211342114421154211642117421184211942120421214212242123421244212542126421274212842129421304213142132421334213442135421364213742138421394214042141421424214342144421454214642147421484214942150421514215242153421544215542156421574215842159421604216142162421634216442165421664216742168421694217042171421724217342174421754217642177421784217942180421814218242183421844218542186421874218842189421904219142192421934219442195421964219742198421994220042201422024220342204422054220642207422084220942210422114221242213422144221542216422174221842219422204222142222422234222442225422264222742228422294223042231422324223342234422354223642237422384223942240422414224242243422444224542246422474224842249422504225142252422534225442255422564225742258422594226042261422624226342264422654226642267422684226942270422714227242273422744227542276422774227842279422804228142282422834228442285422864228742288422894229042291422924229342294422954229642297422984229942300423014230242303423044230542306423074230842309423104231142312423134231442315423164231742318423194232042321423224232342324423254232642327423284232942330423314233242333423344233542336423374233842339423404234142342423434234442345423464234742348423494235042351423524235342354423554235642357423584235942360423614236242363423644236542366423674236842369423704237142372423734237442375423764237742378423794238042381423824238342384423854238642387423884238942390423914239242393423944239542396423974239842399424004240142402424034240442405424064240742408424094241042411424124241342414424154241642417424184241942420424214242242423424244242542426424274242842429424304243142432424334243442435424364243742438424394244042441424424244342444424454244642447424484244942450424514245242453424544245542456424574245842459424604246142462424634246442465424664246742468424694247042471424724247342474424754247642477424784247942480424814248242483424844248542486424874248842489424904249142492424934249442495424964249742498424994250042501425024250342504425054250642507425084250942510425114251242513425144251542516425174251842519425204252142522425234252442525425264252742528425294253042531425324253342534425354253642537425384253942540425414254242543425444254542546425474254842549425504255142552425534255442555425564255742558425594256042561425624256342564425654256642567425684256942570425714257242573425744257542576425774257842579425804258142582425834258442585425864258742588425894259042591425924259342594425954259642597425984259942600426014260242603426044260542606426074260842609426104261142612426134261442615426164261742618426194262042621426224262342624426254262642627426284262942630426314263242633426344263542636426374263842639426404264142642426434264442645426464264742648426494265042651426524265342654426554265642657426584265942660426614266242663426644266542666426674266842669426704267142672426734267442675426764267742678426794268042681426824268342684426854268642687426884268942690426914269242693426944269542696426974269842699427004270142702427034270442705427064270742708427094271042711427124271342714427154271642717427184271942720427214272242723427244272542726427274272842729427304273142732427334273442735427364273742738427394274042741427424274342744427454274642747427484274942750427514275242753427544275542756427574275842759427604276142762427634276442765427664276742768427694277042771427724277342774427754277642777427784277942780427814278242783427844278542786427874278842789427904279142792427934279442795427964279742798427994280042801428024280342804428054280642807428084280942810428114281242813428144281542816428174281842819428204282142822428234282442825428264282742828428294283042831428324283342834428354283642837428384283942840428414284242843428444284542846428474284842849428504285142852428534285442855428564285742858428594286042861428624286342864428654286642867428684286942870428714287242873428744287542876428774287842879428804288142882428834288442885428864288742888428894289042891428924289342894428954289642897428984289942900429014290242903429044290542906429074290842909429104291142912429134291442915429164291742918429194292042921429224292342924429254292642927429284292942930429314293242933429344293542936429374293842939429404294142942429434294442945429464294742948429494295042951429524295342954429554295642957429584295942960429614296242963429644296542966429674296842969429704297142972429734297442975429764297742978429794298042981429824298342984429854298642987429884298942990429914299242993429944299542996429974299842999430004300143002430034300443005430064300743008430094301043011430124301343014430154301643017430184301943020430214302243023430244302543026430274302843029430304303143032430334303443035430364303743038430394304043041430424304343044430454304643047430484304943050430514305243053430544305543056430574305843059430604306143062430634306443065430664306743068430694307043071430724307343074430754307643077430784307943080430814308243083430844308543086430874308843089430904309143092430934309443095430964309743098430994310043101431024310343104431054310643107431084310943110431114311243113431144311543116431174311843119431204312143122431234312443125431264312743128431294313043131431324313343134431354313643137431384313943140431414314243143431444314543146431474314843149431504315143152431534315443155431564315743158431594316043161431624316343164431654316643167431684316943170431714317243173431744317543176431774317843179431804318143182431834318443185431864318743188431894319043191431924319343194431954319643197431984319943200432014320243203432044320543206432074320843209432104321143212432134321443215432164321743218432194322043221432224322343224432254322643227432284322943230432314323243233432344323543236432374323843239432404324143242432434324443245432464324743248432494325043251432524325343254432554325643257432584325943260432614326243263432644326543266432674326843269432704327143272432734327443275432764327743278432794328043281432824328343284432854328643287432884328943290432914329243293432944329543296432974329843299433004330143302433034330443305433064330743308433094331043311433124331343314433154331643317433184331943320433214332243323433244332543326433274332843329433304333143332433334333443335433364333743338433394334043341433424334343344433454334643347433484334943350433514335243353433544335543356433574335843359433604336143362433634336443365433664336743368433694337043371433724337343374433754337643377433784337943380433814338243383433844338543386433874338843389433904339143392433934339443395433964339743398433994340043401434024340343404434054340643407434084340943410434114341243413434144341543416434174341843419434204342143422434234342443425434264342743428434294343043431434324343343434434354343643437434384343943440434414344243443434444344543446434474344843449434504345143452434534345443455434564345743458434594346043461434624346343464434654346643467434684346943470434714347243473434744347543476434774347843479434804348143482434834348443485434864348743488434894349043491434924349343494434954349643497434984349943500435014350243503435044350543506435074350843509435104351143512435134351443515435164351743518435194352043521435224352343524435254352643527435284352943530435314353243533435344353543536435374353843539435404354143542435434354443545435464354743548435494355043551435524355343554435554355643557435584355943560435614356243563435644356543566435674356843569435704357143572435734357443575435764357743578435794358043581435824358343584435854358643587435884358943590435914359243593435944359543596435974359843599436004360143602436034360443605436064360743608436094361043611436124361343614436154361643617436184361943620436214362243623436244362543626436274362843629436304363143632436334363443635436364363743638436394364043641436424364343644436454364643647436484364943650436514365243653436544365543656436574365843659436604366143662436634366443665436664366743668436694367043671436724367343674436754367643677436784367943680436814368243683436844368543686436874368843689436904369143692436934369443695436964369743698436994370043701437024370343704437054370643707437084370943710437114371243713437144371543716437174371843719437204372143722437234372443725437264372743728437294373043731437324373343734437354373643737437384373943740437414374243743437444374543746437474374843749437504375143752437534375443755437564375743758437594376043761437624376343764437654376643767437684376943770437714377243773437744377543776437774377843779437804378143782437834378443785437864378743788437894379043791437924379343794437954379643797437984379943800438014380243803438044380543806438074380843809438104381143812438134381443815438164381743818438194382043821438224382343824438254382643827438284382943830438314383243833438344383543836438374383843839438404384143842438434384443845438464384743848438494385043851438524385343854438554385643857438584385943860438614386243863438644386543866438674386843869438704387143872438734387443875438764387743878438794388043881438824388343884438854388643887438884388943890438914389243893438944389543896438974389843899439004390143902439034390443905439064390743908439094391043911439124391343914439154391643917439184391943920439214392243923439244392543926439274392843929439304393143932439334393443935439364393743938439394394043941439424394343944439454394643947439484394943950439514395243953439544395543956439574395843959439604396143962439634396443965439664396743968439694397043971439724397343974439754397643977439784397943980439814398243983439844398543986439874398843989439904399143992439934399443995439964399743998439994400044001440024400344004440054400644007440084400944010440114401244013440144401544016440174401844019440204402144022440234402444025440264402744028440294403044031440324403344034440354403644037440384403944040440414404244043440444404544046440474404844049440504405144052440534405444055440564405744058440594406044061440624406344064440654406644067440684406944070440714407244073440744407544076440774407844079440804408144082440834408444085440864408744088440894409044091440924409344094440954409644097440984409944100441014410244103441044410544106441074410844109441104411144112441134411444115441164411744118441194412044121441224412344124441254412644127441284412944130441314413244133441344413544136441374413844139441404414144142441434414444145441464414744148441494415044151441524415344154441554415644157441584415944160441614416244163441644416544166441674416844169441704417144172441734417444175441764417744178441794418044181441824418344184441854418644187441884418944190441914419244193441944419544196441974419844199442004420144202442034420444205442064420744208442094421044211442124421344214442154421644217442184421944220442214422244223442244422544226442274422844229442304423144232442334423444235442364423744238442394424044241442424424344244442454424644247442484424944250442514425244253442544425544256442574425844259442604426144262442634426444265442664426744268442694427044271442724427344274442754427644277442784427944280442814428244283442844428544286442874428844289442904429144292442934429444295442964429744298442994430044301443024430344304443054430644307443084430944310443114431244313443144431544316443174431844319443204432144322443234432444325443264432744328443294433044331443324433344334443354433644337443384433944340443414434244343443444434544346443474434844349443504435144352443534435444355443564435744358443594436044361443624436344364443654436644367443684436944370443714437244373443744437544376443774437844379443804438144382443834438444385443864438744388443894439044391443924439344394443954439644397443984439944400444014440244403444044440544406444074440844409444104441144412444134441444415444164441744418444194442044421444224442344424444254442644427444284442944430444314443244433444344443544436444374443844439444404444144442444434444444445444464444744448444494445044451444524445344454444554445644457444584445944460444614446244463444644446544466444674446844469444704447144472444734447444475444764447744478444794448044481444824448344484444854448644487444884448944490444914449244493444944449544496444974449844499445004450144502445034450444505445064450744508445094451044511445124451344514445154451644517445184451944520445214452244523445244452544526445274452844529445304453144532445334453444535445364453744538445394454044541445424454344544445454454644547445484454944550445514455244553445544455544556445574455844559445604456144562445634456444565445664456744568445694457044571445724457344574445754457644577445784457944580445814458244583445844458544586445874458844589445904459144592445934459444595445964459744598445994460044601446024460344604446054460644607446084460944610446114461244613446144461544616446174461844619446204462144622446234462444625446264462744628446294463044631446324463344634446354463644637446384463944640446414464244643446444464544646446474464844649446504465144652446534465444655446564465744658446594466044661446624466344664446654466644667446684466944670446714467244673446744467544676446774467844679446804468144682446834468444685446864468744688446894469044691446924469344694446954469644697446984469944700447014470244703447044470544706447074470844709447104471144712447134471444715447164471744718447194472044721447224472344724447254472644727447284472944730447314473244733447344473544736447374473844739447404474144742447434474444745447464474744748447494475044751447524475344754447554475644757447584475944760447614476244763447644476544766447674476844769447704477144772447734477444775447764477744778447794478044781447824478344784447854478644787447884478944790447914479244793447944479544796447974479844799448004480144802448034480444805448064480744808448094481044811448124481344814448154481644817448184481944820448214482244823448244482544826448274482844829448304483144832448334483444835448364483744838448394484044841448424484344844448454484644847448484484944850448514485244853448544485544856448574485844859448604486144862448634486444865448664486744868448694487044871448724487344874448754487644877448784487944880448814488244883448844488544886448874488844889448904489144892448934489444895448964489744898448994490044901449024490344904449054490644907449084490944910449114491244913449144491544916449174491844919449204492144922449234492444925449264492744928449294493044931449324493344934449354493644937449384493944940449414494244943449444494544946449474494844949449504495144952449534495444955449564495744958449594496044961449624496344964449654496644967449684496944970449714497244973449744497544976449774497844979449804498144982449834498444985449864498744988449894499044991449924499344994449954499644997449984499945000450014500245003450044500545006450074500845009450104501145012450134501445015450164501745018450194502045021450224502345024450254502645027450284502945030450314503245033450344503545036450374503845039450404504145042450434504445045450464504745048450494505045051450524505345054450554505645057450584505945060450614506245063450644506545066450674506845069450704507145072450734507445075450764507745078450794508045081450824508345084450854508645087450884508945090450914509245093450944509545096450974509845099451004510145102451034510445105451064510745108451094511045111451124511345114451154511645117451184511945120451214512245123451244512545126451274512845129451304513145132451334513445135451364513745138451394514045141451424514345144451454514645147451484514945150451514515245153451544515545156451574515845159451604516145162451634516445165451664516745168451694517045171451724517345174451754517645177451784517945180451814518245183451844518545186451874518845189451904519145192451934519445195451964519745198451994520045201452024520345204452054520645207452084520945210452114521245213452144521545216452174521845219452204522145222452234522445225452264522745228452294523045231452324523345234452354523645237452384523945240452414524245243452444524545246452474524845249452504525145252452534525445255452564525745258452594526045261452624526345264452654526645267452684526945270452714527245273452744527545276452774527845279452804528145282452834528445285452864528745288452894529045291452924529345294452954529645297452984529945300453014530245303453044530545306453074530845309453104531145312453134531445315453164531745318453194532045321453224532345324453254532645327453284532945330453314533245333453344533545336453374533845339453404534145342453434534445345453464534745348453494535045351453524535345354453554535645357453584535945360453614536245363453644536545366453674536845369453704537145372453734537445375453764537745378453794538045381453824538345384453854538645387453884538945390453914539245393453944539545396453974539845399454004540145402454034540445405454064540745408454094541045411454124541345414454154541645417454184541945420454214542245423454244542545426454274542845429454304543145432454334543445435454364543745438454394544045441454424544345444454454544645447454484544945450454514545245453454544545545456454574545845459454604546145462454634546445465454664546745468454694547045471454724547345474454754547645477454784547945480454814548245483454844548545486454874548845489454904549145492454934549445495454964549745498454994550045501455024550345504455054550645507455084550945510455114551245513455144551545516455174551845519455204552145522455234552445525455264552745528455294553045531455324553345534455354553645537455384553945540455414554245543455444554545546455474554845549455504555145552455534555445555455564555745558455594556045561455624556345564455654556645567455684556945570455714557245573455744557545576455774557845579455804558145582455834558445585455864558745588455894559045591455924559345594455954559645597455984559945600456014560245603456044560545606456074560845609456104561145612456134561445615456164561745618456194562045621456224562345624456254562645627456284562945630456314563245633456344563545636456374563845639456404564145642456434564445645456464564745648456494565045651456524565345654456554565645657456584565945660456614566245663456644566545666456674566845669456704567145672456734567445675456764567745678456794568045681456824568345684456854568645687456884568945690456914569245693456944569545696456974569845699457004570145702457034570445705457064570745708457094571045711457124571345714457154571645717457184571945720457214572245723457244572545726457274572845729457304573145732457334573445735457364573745738457394574045741457424574345744457454574645747457484574945750457514575245753457544575545756457574575845759457604576145762457634576445765457664576745768457694577045771457724577345774457754577645777457784577945780457814578245783457844578545786457874578845789457904579145792457934579445795457964579745798457994580045801458024580345804458054580645807458084580945810458114581245813458144581545816458174581845819458204582145822458234582445825458264582745828458294583045831458324583345834458354583645837458384583945840458414584245843458444584545846458474584845849458504585145852458534585445855458564585745858458594586045861458624586345864458654586645867458684586945870458714587245873458744587545876458774587845879458804588145882458834588445885458864588745888458894589045891458924589345894458954589645897458984589945900459014590245903459044590545906459074590845909459104591145912459134591445915459164591745918459194592045921459224592345924459254592645927459284592945930459314593245933459344593545936459374593845939459404594145942459434594445945459464594745948459494595045951459524595345954459554595645957459584595945960459614596245963459644596545966459674596845969459704597145972459734597445975459764597745978459794598045981459824598345984459854598645987459884598945990459914599245993459944599545996459974599845999460004600146002460034600446005460064600746008460094601046011460124601346014460154601646017460184601946020460214602246023460244602546026460274602846029460304603146032460334603446035460364603746038460394604046041460424604346044460454604646047460484604946050460514605246053460544605546056460574605846059460604606146062460634606446065460664606746068460694607046071460724607346074460754607646077460784607946080460814608246083460844608546086460874608846089460904609146092460934609446095460964609746098460994610046101461024610346104461054610646107461084610946110461114611246113461144611546116461174611846119461204612146122461234612446125461264612746128461294613046131461324613346134461354613646137461384613946140461414614246143461444614546146461474614846149461504615146152461534615446155461564615746158461594616046161461624616346164461654616646167461684616946170461714617246173461744617546176461774617846179461804618146182461834618446185461864618746188461894619046191461924619346194461954619646197461984619946200462014620246203462044620546206462074620846209462104621146212462134621446215462164621746218462194622046221462224622346224462254622646227462284622946230462314623246233462344623546236462374623846239462404624146242462434624446245462464624746248462494625046251462524625346254462554625646257462584625946260462614626246263462644626546266462674626846269462704627146272462734627446275462764627746278462794628046281462824628346284462854628646287462884628946290462914629246293462944629546296462974629846299463004630146302463034630446305463064630746308463094631046311463124631346314463154631646317463184631946320463214632246323463244632546326463274632846329463304633146332463334633446335463364633746338463394634046341463424634346344463454634646347463484634946350463514635246353463544635546356463574635846359463604636146362463634636446365463664636746368463694637046371463724637346374463754637646377463784637946380463814638246383463844638546386463874638846389463904639146392463934639446395463964639746398463994640046401464024640346404464054640646407464084640946410464114641246413464144641546416464174641846419464204642146422464234642446425464264642746428464294643046431464324643346434464354643646437464384643946440464414644246443464444644546446464474644846449464504645146452464534645446455464564645746458464594646046461464624646346464464654646646467464684646946470464714647246473464744647546476464774647846479464804648146482464834648446485464864648746488464894649046491464924649346494464954649646497464984649946500465014650246503465044650546506465074650846509465104651146512465134651446515465164651746518465194652046521465224652346524465254652646527465284652946530465314653246533465344653546536465374653846539465404654146542465434654446545465464654746548465494655046551465524655346554465554655646557465584655946560465614656246563465644656546566465674656846569465704657146572465734657446575465764657746578465794658046581465824658346584465854658646587465884658946590465914659246593465944659546596465974659846599466004660146602466034660446605466064660746608466094661046611466124661346614466154661646617466184661946620466214662246623466244662546626466274662846629466304663146632466334663446635466364663746638466394664046641466424664346644466454664646647466484664946650466514665246653466544665546656466574665846659466604666146662466634666446665466664666746668466694667046671466724667346674466754667646677466784667946680466814668246683466844668546686466874668846689466904669146692466934669446695466964669746698466994670046701467024670346704467054670646707467084670946710467114671246713467144671546716467174671846719467204672146722467234672446725467264672746728467294673046731467324673346734467354673646737467384673946740467414674246743467444674546746467474674846749467504675146752467534675446755467564675746758467594676046761467624676346764467654676646767467684676946770467714677246773467744677546776467774677846779467804678146782467834678446785467864678746788467894679046791467924679346794467954679646797467984679946800468014680246803468044680546806468074680846809468104681146812468134681446815468164681746818468194682046821468224682346824468254682646827468284682946830468314683246833468344683546836468374683846839468404684146842468434684446845468464684746848468494685046851468524685346854468554685646857468584685946860468614686246863468644686546866468674686846869468704687146872468734687446875468764687746878468794688046881468824688346884468854688646887468884688946890468914689246893468944689546896468974689846899469004690146902469034690446905469064690746908469094691046911469124691346914469154691646917469184691946920469214692246923469244692546926469274692846929469304693146932469334693446935469364693746938469394694046941469424694346944469454694646947469484694946950469514695246953469544695546956469574695846959469604696146962469634696446965469664696746968469694697046971469724697346974469754697646977469784697946980469814698246983469844698546986469874698846989469904699146992469934699446995469964699746998469994700047001470024700347004470054700647007470084700947010470114701247013470144701547016470174701847019470204702147022470234702447025470264702747028470294703047031470324703347034470354703647037470384703947040470414704247043470444704547046470474704847049470504705147052470534705447055470564705747058470594706047061470624706347064470654706647067470684706947070470714707247073470744707547076470774707847079470804708147082470834708447085470864708747088470894709047091470924709347094470954709647097470984709947100471014710247103471044710547106471074710847109471104711147112471134711447115471164711747118471194712047121471224712347124471254712647127471284712947130471314713247133471344713547136471374713847139471404714147142471434714447145471464714747148471494715047151471524715347154471554715647157471584715947160471614716247163471644716547166471674716847169471704717147172471734717447175471764717747178471794718047181471824718347184471854718647187471884718947190471914719247193471944719547196471974719847199472004720147202472034720447205472064720747208472094721047211472124721347214472154721647217472184721947220472214722247223472244722547226472274722847229472304723147232472334723447235472364723747238472394724047241472424724347244472454724647247472484724947250472514725247253472544725547256472574725847259472604726147262472634726447265472664726747268472694727047271472724727347274472754727647277472784727947280472814728247283472844728547286472874728847289472904729147292472934729447295472964729747298472994730047301473024730347304473054730647307473084730947310473114731247313473144731547316473174731847319473204732147322473234732447325473264732747328473294733047331473324733347334473354733647337473384733947340473414734247343473444734547346473474734847349473504735147352473534735447355473564735747358473594736047361473624736347364473654736647367473684736947370473714737247373473744737547376473774737847379473804738147382473834738447385473864738747388473894739047391473924739347394473954739647397473984739947400474014740247403474044740547406474074740847409474104741147412474134741447415474164741747418474194742047421474224742347424474254742647427474284742947430474314743247433474344743547436474374743847439474404744147442474434744447445474464744747448474494745047451474524745347454474554745647457474584745947460474614746247463474644746547466474674746847469474704747147472474734747447475474764747747478474794748047481474824748347484474854748647487474884748947490474914749247493474944749547496474974749847499475004750147502475034750447505475064750747508475094751047511475124751347514475154751647517475184751947520475214752247523475244752547526475274752847529475304753147532475334753447535475364753747538475394754047541475424754347544475454754647547475484754947550475514755247553475544755547556475574755847559475604756147562475634756447565475664756747568475694757047571475724757347574475754757647577475784757947580475814758247583475844758547586475874758847589475904759147592475934759447595475964759747598475994760047601476024760347604476054760647607476084760947610476114761247613476144761547616476174761847619476204762147622476234762447625476264762747628476294763047631476324763347634476354763647637476384763947640476414764247643476444764547646476474764847649476504765147652476534765447655476564765747658476594766047661476624766347664476654766647667476684766947670476714767247673476744767547676476774767847679476804768147682476834768447685476864768747688476894769047691476924769347694476954769647697476984769947700477014770247703477044770547706477074770847709477104771147712477134771447715477164771747718477194772047721477224772347724477254772647727477284772947730477314773247733477344773547736477374773847739477404774147742477434774447745477464774747748477494775047751477524775347754477554775647757477584775947760477614776247763477644776547766477674776847769477704777147772477734777447775477764777747778477794778047781477824778347784477854778647787477884778947790477914779247793477944779547796477974779847799478004780147802478034780447805478064780747808478094781047811478124781347814478154781647817478184781947820478214782247823478244782547826478274782847829478304783147832478334783447835478364783747838478394784047841478424784347844478454784647847478484784947850478514785247853478544785547856478574785847859478604786147862478634786447865478664786747868478694787047871478724787347874478754787647877478784787947880478814788247883478844788547886478874788847889478904789147892478934789447895478964789747898478994790047901479024790347904479054790647907479084790947910479114791247913479144791547916479174791847919479204792147922479234792447925479264792747928479294793047931479324793347934479354793647937479384793947940479414794247943479444794547946479474794847949479504795147952479534795447955479564795747958479594796047961479624796347964479654796647967479684796947970479714797247973479744797547976479774797847979479804798147982479834798447985479864798747988479894799047991479924799347994479954799647997479984799948000480014800248003480044800548006480074800848009480104801148012480134801448015480164801748018480194802048021480224802348024480254802648027480284802948030480314803248033480344803548036480374803848039480404804148042480434804448045480464804748048480494805048051480524805348054480554805648057480584805948060480614806248063480644806548066480674806848069480704807148072480734807448075480764807748078480794808048081480824808348084480854808648087480884808948090480914809248093480944809548096480974809848099481004810148102481034810448105481064810748108481094811048111481124811348114481154811648117481184811948120481214812248123481244812548126481274812848129481304813148132481334813448135481364813748138481394814048141481424814348144481454814648147481484814948150481514815248153481544815548156481574815848159481604816148162481634816448165481664816748168481694817048171481724817348174481754817648177481784817948180481814818248183481844818548186481874818848189481904819148192481934819448195481964819748198481994820048201482024820348204482054820648207482084820948210482114821248213482144821548216482174821848219482204822148222482234822448225482264822748228482294823048231482324823348234482354823648237482384823948240482414824248243482444824548246482474824848249482504825148252482534825448255482564825748258482594826048261482624826348264482654826648267482684826948270482714827248273482744827548276482774827848279482804828148282482834828448285482864828748288482894829048291482924829348294482954829648297482984829948300483014830248303483044830548306483074830848309483104831148312483134831448315483164831748318483194832048321483224832348324483254832648327483284832948330483314833248333483344833548336483374833848339483404834148342483434834448345483464834748348483494835048351483524835348354483554835648357483584835948360483614836248363483644836548366483674836848369483704837148372483734837448375483764837748378483794838048381483824838348384483854838648387483884838948390483914839248393483944839548396483974839848399484004840148402484034840448405484064840748408484094841048411484124841348414484154841648417484184841948420484214842248423484244842548426484274842848429484304843148432484334843448435484364843748438484394844048441484424844348444484454844648447484484844948450484514845248453484544845548456484574845848459484604846148462484634846448465484664846748468484694847048471484724847348474484754847648477484784847948480484814848248483484844848548486484874848848489484904849148492484934849448495484964849748498484994850048501485024850348504485054850648507485084850948510485114851248513485144851548516485174851848519485204852148522485234852448525485264852748528485294853048531485324853348534485354853648537485384853948540485414854248543485444854548546485474854848549485504855148552485534855448555485564855748558485594856048561485624856348564485654856648567485684856948570485714857248573485744857548576485774857848579485804858148582485834858448585485864858748588485894859048591485924859348594485954859648597485984859948600486014860248603486044860548606486074860848609486104861148612486134861448615486164861748618486194862048621486224862348624486254862648627486284862948630486314863248633486344863548636486374863848639486404864148642486434864448645486464864748648486494865048651486524865348654486554865648657486584865948660486614866248663486644866548666486674866848669486704867148672486734867448675486764867748678486794868048681486824868348684486854868648687486884868948690486914869248693486944869548696486974869848699487004870148702487034870448705487064870748708487094871048711487124871348714487154871648717487184871948720487214872248723487244872548726487274872848729487304873148732487334873448735487364873748738487394874048741487424874348744487454874648747487484874948750487514875248753487544875548756487574875848759487604876148762487634876448765487664876748768487694877048771487724877348774487754877648777487784877948780487814878248783487844878548786487874878848789487904879148792487934879448795487964879748798487994880048801488024880348804488054880648807488084880948810488114881248813488144881548816488174881848819488204882148822488234882448825488264882748828488294883048831488324883348834488354883648837488384883948840488414884248843488444884548846488474884848849488504885148852488534885448855488564885748858488594886048861488624886348864488654886648867488684886948870488714887248873488744887548876488774887848879488804888148882488834888448885488864888748888488894889048891488924889348894488954889648897488984889948900489014890248903489044890548906489074890848909489104891148912489134891448915489164891748918489194892048921489224892348924489254892648927489284892948930489314893248933489344893548936489374893848939489404894148942489434894448945489464894748948489494895048951489524895348954489554895648957489584895948960489614896248963489644896548966489674896848969489704897148972489734897448975489764897748978489794898048981489824898348984489854898648987489884898948990489914899248993489944899548996489974899848999490004900149002490034900449005490064900749008490094901049011490124901349014490154901649017490184901949020490214902249023490244902549026490274902849029490304903149032490334903449035490364903749038490394904049041490424904349044490454904649047490484904949050490514905249053490544905549056490574905849059490604906149062490634906449065490664906749068490694907049071490724907349074490754907649077490784907949080490814908249083490844908549086490874908849089490904909149092490934909449095490964909749098490994910049101491024910349104491054910649107491084910949110491114911249113491144911549116491174911849119491204912149122491234912449125491264912749128491294913049131491324913349134491354913649137491384913949140491414914249143491444914549146491474914849149491504915149152491534915449155491564915749158491594916049161491624916349164491654916649167491684916949170491714917249173491744917549176491774917849179491804918149182491834918449185491864918749188491894919049191491924919349194491954919649197491984919949200492014920249203492044920549206492074920849209492104921149212492134921449215492164921749218492194922049221492224922349224492254922649227492284922949230492314923249233492344923549236492374923849239492404924149242492434924449245492464924749248492494925049251492524925349254492554925649257492584925949260492614926249263492644926549266492674926849269492704927149272492734927449275492764927749278492794928049281492824928349284492854928649287492884928949290492914929249293492944929549296492974929849299493004930149302493034930449305493064930749308493094931049311493124931349314493154931649317493184931949320493214932249323493244932549326493274932849329493304933149332493334933449335493364933749338493394934049341493424934349344493454934649347493484934949350493514935249353493544935549356493574935849359493604936149362493634936449365493664936749368493694937049371493724937349374493754937649377493784937949380493814938249383493844938549386493874938849389493904939149392493934939449395493964939749398493994940049401494024940349404494054940649407494084940949410494114941249413494144941549416494174941849419494204942149422494234942449425494264942749428494294943049431494324943349434494354943649437494384943949440494414944249443494444944549446494474944849449494504945149452494534945449455494564945749458494594946049461494624946349464494654946649467494684946949470494714947249473494744947549476494774947849479494804948149482494834948449485494864948749488494894949049491494924949349494494954949649497494984949949500495014950249503495044950549506495074950849509495104951149512495134951449515495164951749518495194952049521495224952349524495254952649527495284952949530495314953249533495344953549536495374953849539495404954149542495434954449545495464954749548495494955049551495524955349554495554955649557495584955949560495614956249563495644956549566495674956849569495704957149572495734957449575495764957749578495794958049581495824958349584495854958649587495884958949590495914959249593495944959549596495974959849599496004960149602496034960449605496064960749608496094961049611496124961349614496154961649617496184961949620496214962249623496244962549626496274962849629496304963149632496334963449635496364963749638496394964049641496424964349644496454964649647496484964949650496514965249653496544965549656496574965849659496604966149662496634966449665496664966749668496694967049671496724967349674496754967649677496784967949680496814968249683496844968549686496874968849689496904969149692496934969449695496964969749698496994970049701497024970349704497054970649707497084970949710497114971249713497144971549716497174971849719497204972149722497234972449725497264972749728497294973049731497324973349734497354973649737497384973949740497414974249743497444974549746497474974849749497504975149752497534975449755497564975749758497594976049761497624976349764497654976649767497684976949770497714977249773497744977549776497774977849779497804978149782497834978449785497864978749788497894979049791497924979349794497954979649797497984979949800498014980249803498044980549806498074980849809498104981149812498134981449815498164981749818498194982049821498224982349824498254982649827498284982949830498314983249833498344983549836498374983849839498404984149842498434984449845498464984749848498494985049851498524985349854498554985649857498584985949860498614986249863498644986549866498674986849869498704987149872498734987449875498764987749878498794988049881498824988349884498854988649887498884988949890498914989249893498944989549896498974989849899499004990149902499034990449905499064990749908499094991049911499124991349914499154991649917499184991949920499214992249923499244992549926499274992849929499304993149932499334993449935499364993749938499394994049941499424994349944499454994649947499484994949950499514995249953499544995549956499574995849959499604996149962499634996449965499664996749968499694997049971499724997349974499754997649977499784997949980499814998249983499844998549986499874998849989499904999149992499934999449995499964999749998499995000050001500025000350004500055000650007500085000950010500115001250013500145001550016500175001850019500205002150022500235002450025500265002750028500295003050031500325003350034500355003650037500385003950040500415004250043500445004550046500475004850049500505005150052500535005450055500565005750058500595006050061500625006350064500655006650067500685006950070500715007250073500745007550076500775007850079500805008150082500835008450085500865008750088500895009050091500925009350094500955009650097500985009950100501015010250103501045010550106501075010850109501105011150112501135011450115501165011750118501195012050121501225012350124501255012650127501285012950130501315013250133501345013550136501375013850139501405014150142501435014450145501465014750148501495015050151501525015350154501555015650157501585015950160501615016250163501645016550166501675016850169501705017150172501735017450175501765017750178501795018050181501825018350184501855018650187501885018950190501915019250193501945019550196501975019850199502005020150202502035020450205502065020750208502095021050211502125021350214502155021650217502185021950220502215022250223502245022550226502275022850229502305023150232502335023450235502365023750238502395024050241502425024350244502455024650247502485024950250502515025250253502545025550256502575025850259502605026150262502635026450265502665026750268502695027050271502725027350274502755027650277502785027950280502815028250283502845028550286502875028850289502905029150292502935029450295502965029750298502995030050301503025030350304503055030650307503085030950310503115031250313503145031550316503175031850319503205032150322503235032450325503265032750328503295033050331503325033350334503355033650337503385033950340503415034250343503445034550346503475034850349503505035150352503535035450355503565035750358503595036050361503625036350364503655036650367503685036950370503715037250373503745037550376503775037850379503805038150382503835038450385503865038750388503895039050391503925039350394503955039650397503985039950400504015040250403504045040550406504075040850409504105041150412504135041450415504165041750418504195042050421504225042350424504255042650427504285042950430504315043250433504345043550436504375043850439504405044150442504435044450445504465044750448504495045050451504525045350454504555045650457504585045950460504615046250463504645046550466504675046850469504705047150472504735047450475504765047750478504795048050481504825048350484504855048650487504885048950490504915049250493504945049550496504975049850499505005050150502505035050450505505065050750508505095051050511505125051350514505155051650517505185051950520505215052250523505245052550526505275052850529505305053150532505335053450535505365053750538505395054050541505425054350544505455054650547505485054950550505515055250553505545055550556505575055850559505605056150562505635056450565505665056750568505695057050571505725057350574505755057650577505785057950580505815058250583505845058550586505875058850589505905059150592505935059450595505965059750598505995060050601506025060350604506055060650607506085060950610506115061250613506145061550616506175061850619506205062150622506235062450625506265062750628506295063050631506325063350634506355063650637506385063950640506415064250643506445064550646506475064850649506505065150652506535065450655506565065750658506595066050661506625066350664506655066650667506685066950670506715067250673506745067550676506775067850679506805068150682506835068450685506865068750688506895069050691506925069350694506955069650697506985069950700507015070250703507045070550706507075070850709507105071150712507135071450715507165071750718507195072050721507225072350724507255072650727507285072950730507315073250733507345073550736507375073850739507405074150742507435074450745507465074750748507495075050751507525075350754507555075650757507585075950760507615076250763507645076550766507675076850769507705077150772507735077450775507765077750778507795078050781507825078350784507855078650787507885078950790507915079250793507945079550796507975079850799508005080150802508035080450805508065080750808508095081050811508125081350814508155081650817508185081950820508215082250823508245082550826508275082850829508305083150832508335083450835508365083750838508395084050841508425084350844508455084650847508485084950850508515085250853508545085550856508575085850859508605086150862508635086450865508665086750868508695087050871508725087350874508755087650877508785087950880508815088250883508845088550886508875088850889508905089150892508935089450895508965089750898508995090050901509025090350904509055090650907509085090950910509115091250913509145091550916509175091850919509205092150922509235092450925509265092750928509295093050931509325093350934509355093650937509385093950940509415094250943509445094550946509475094850949509505095150952509535095450955509565095750958509595096050961509625096350964509655096650967509685096950970509715097250973509745097550976509775097850979509805098150982509835098450985509865098750988509895099050991509925099350994509955099650997509985099951000510015100251003510045100551006510075100851009510105101151012510135101451015510165101751018510195102051021510225102351024510255102651027510285102951030510315103251033510345103551036510375103851039510405104151042510435104451045510465104751048510495105051051510525105351054510555105651057510585105951060510615106251063510645106551066510675106851069510705107151072510735107451075510765107751078510795108051081510825108351084510855108651087510885108951090510915109251093510945109551096510975109851099511005110151102511035110451105511065110751108511095111051111511125111351114511155111651117511185111951120511215112251123511245112551126511275112851129511305113151132511335113451135511365113751138511395114051141511425114351144511455114651147511485114951150511515115251153511545115551156511575115851159511605116151162511635116451165511665116751168511695117051171511725117351174511755117651177511785117951180511815118251183511845118551186511875118851189511905119151192511935119451195511965119751198511995120051201512025120351204512055120651207512085120951210512115121251213512145121551216512175121851219512205122151222512235122451225512265122751228512295123051231512325123351234512355123651237512385123951240512415124251243512445124551246512475124851249512505125151252512535125451255512565125751258512595126051261512625126351264512655126651267512685126951270512715127251273512745127551276512775127851279512805128151282512835128451285512865128751288512895129051291512925129351294512955129651297512985129951300513015130251303513045130551306513075130851309513105131151312513135131451315513165131751318513195132051321513225132351324513255132651327513285132951330513315133251333513345133551336513375133851339513405134151342513435134451345513465134751348513495135051351513525135351354513555135651357513585135951360513615136251363513645136551366513675136851369513705137151372513735137451375513765137751378513795138051381513825138351384513855138651387513885138951390513915139251393513945139551396513975139851399514005140151402514035140451405514065140751408514095141051411514125141351414514155141651417514185141951420514215142251423514245142551426514275142851429514305143151432514335143451435514365143751438514395144051441514425144351444514455144651447514485144951450514515145251453514545145551456514575145851459514605146151462514635146451465514665146751468514695147051471514725147351474514755147651477514785147951480514815148251483514845148551486514875148851489514905149151492514935149451495514965149751498514995150051501515025150351504515055150651507515085150951510515115151251513515145151551516515175151851519515205152151522515235152451525515265152751528515295153051531515325153351534515355153651537515385153951540515415154251543515445154551546515475154851549515505155151552515535155451555515565155751558515595156051561515625156351564515655156651567515685156951570515715157251573515745157551576515775157851579515805158151582515835158451585515865158751588515895159051591515925159351594515955159651597515985159951600516015160251603516045160551606516075160851609516105161151612516135161451615516165161751618516195162051621516225162351624516255162651627516285162951630516315163251633516345163551636516375163851639516405164151642516435164451645516465164751648516495165051651516525165351654516555165651657516585165951660516615166251663516645166551666516675166851669516705167151672516735167451675516765167751678516795168051681516825168351684516855168651687516885168951690516915169251693516945169551696516975169851699517005170151702517035170451705517065170751708517095171051711517125171351714517155171651717517185171951720517215172251723517245172551726517275172851729517305173151732517335173451735517365173751738517395174051741517425174351744517455174651747517485174951750517515175251753517545175551756517575175851759517605176151762517635176451765517665176751768517695177051771517725177351774517755177651777517785177951780517815178251783517845178551786517875178851789517905179151792517935179451795517965179751798517995180051801518025180351804518055180651807518085180951810518115181251813518145181551816518175181851819518205182151822518235182451825518265182751828518295183051831518325183351834518355183651837518385183951840518415184251843518445184551846518475184851849518505185151852518535185451855518565185751858518595186051861518625186351864518655186651867518685186951870518715187251873518745187551876518775187851879518805188151882518835188451885518865188751888518895189051891518925189351894518955189651897518985189951900519015190251903519045190551906519075190851909519105191151912519135191451915519165191751918519195192051921519225192351924519255192651927519285192951930519315193251933519345193551936519375193851939519405194151942519435194451945519465194751948519495195051951519525195351954519555195651957519585195951960519615196251963519645196551966519675196851969519705197151972519735197451975519765197751978519795198051981519825198351984519855198651987519885198951990519915199251993519945199551996519975199851999520005200152002520035200452005520065200752008520095201052011520125201352014520155201652017520185201952020520215202252023520245202552026520275202852029520305203152032520335203452035520365203752038520395204052041520425204352044520455204652047520485204952050520515205252053520545205552056520575205852059520605206152062520635206452065520665206752068520695207052071520725207352074520755207652077520785207952080520815208252083520845208552086520875208852089520905209152092520935209452095520965209752098520995210052101521025210352104521055210652107521085210952110521115211252113521145211552116521175211852119521205212152122521235212452125521265212752128521295213052131521325213352134521355213652137521385213952140521415214252143521445214552146521475214852149521505215152152521535215452155521565215752158521595216052161521625216352164521655216652167521685216952170521715217252173521745217552176521775217852179521805218152182521835218452185521865218752188521895219052191521925219352194521955219652197521985219952200522015220252203522045220552206522075220852209522105221152212522135221452215522165221752218522195222052221522225222352224522255222652227522285222952230522315223252233522345223552236522375223852239522405224152242522435224452245522465224752248522495225052251522525225352254522555225652257522585225952260522615226252263522645226552266522675226852269522705227152272522735227452275522765227752278522795228052281522825228352284522855228652287522885228952290522915229252293522945229552296522975229852299523005230152302523035230452305523065230752308523095231052311523125231352314523155231652317523185231952320523215232252323523245232552326523275232852329523305233152332523335233452335523365233752338523395234052341523425234352344523455234652347523485234952350523515235252353523545235552356523575235852359523605236152362523635236452365523665236752368523695237052371523725237352374523755237652377523785237952380523815238252383523845238552386523875238852389523905239152392523935239452395523965239752398523995240052401524025240352404524055240652407524085240952410524115241252413524145241552416524175241852419524205242152422524235242452425524265242752428524295243052431524325243352434524355243652437524385243952440524415244252443524445244552446524475244852449524505245152452524535245452455524565245752458524595246052461524625246352464524655246652467524685246952470524715247252473524745247552476524775247852479524805248152482524835248452485524865248752488524895249052491524925249352494524955249652497524985249952500525015250252503525045250552506525075250852509525105251152512525135251452515525165251752518525195252052521525225252352524525255252652527525285252952530525315253252533525345253552536525375253852539525405254152542525435254452545525465254752548525495255052551525525255352554525555255652557525585255952560525615256252563525645256552566525675256852569525705257152572525735257452575525765257752578525795258052581525825258352584525855258652587525885258952590525915259252593525945259552596525975259852599526005260152602526035260452605526065260752608526095261052611526125261352614526155261652617526185261952620526215262252623526245262552626526275262852629526305263152632526335263452635526365263752638526395264052641526425264352644526455264652647526485264952650526515265252653526545265552656526575265852659526605266152662526635266452665526665266752668526695267052671526725267352674526755267652677526785267952680526815268252683526845268552686526875268852689526905269152692526935269452695526965269752698526995270052701527025270352704527055270652707527085270952710527115271252713527145271552716527175271852719527205272152722527235272452725527265272752728527295273052731527325273352734527355273652737527385273952740527415274252743527445274552746527475274852749527505275152752527535275452755527565275752758527595276052761527625276352764527655276652767527685276952770527715277252773527745277552776527775277852779527805278152782527835278452785527865278752788527895279052791527925279352794527955279652797527985279952800528015280252803528045280552806528075280852809528105281152812528135281452815528165281752818528195282052821528225282352824528255282652827528285282952830528315283252833528345283552836528375283852839528405284152842528435284452845528465284752848528495285052851528525285352854528555285652857528585285952860528615286252863528645286552866528675286852869528705287152872528735287452875528765287752878528795288052881528825288352884528855288652887528885288952890528915289252893528945289552896528975289852899529005290152902529035290452905529065290752908529095291052911529125291352914529155291652917529185291952920529215292252923529245292552926529275292852929529305293152932529335293452935529365293752938529395294052941529425294352944529455294652947529485294952950529515295252953529545295552956529575295852959529605296152962529635296452965529665296752968529695297052971529725297352974529755297652977529785297952980529815298252983529845298552986529875298852989529905299152992529935299452995529965299752998529995300053001530025300353004530055300653007530085300953010530115301253013530145301553016530175301853019530205302153022530235302453025530265302753028530295303053031530325303353034530355303653037530385303953040530415304253043530445304553046530475304853049530505305153052530535305453055530565305753058530595306053061530625306353064530655306653067530685306953070530715307253073530745307553076530775307853079530805308153082530835308453085530865308753088530895309053091530925309353094530955309653097530985309953100531015310253103531045310553106531075310853109531105311153112531135311453115531165311753118531195312053121531225312353124531255312653127531285312953130531315313253133531345313553136531375313853139531405314153142531435314453145531465314753148531495315053151531525315353154531555315653157531585315953160531615316253163531645316553166531675316853169531705317153172531735317453175531765317753178531795318053181531825318353184531855318653187531885318953190531915319253193531945319553196531975319853199532005320153202532035320453205532065320753208532095321053211532125321353214532155321653217532185321953220532215322253223532245322553226532275322853229532305323153232532335323453235532365323753238532395324053241532425324353244532455324653247532485324953250532515325253253532545325553256532575325853259532605326153262532635326453265532665326753268532695327053271532725327353274532755327653277532785327953280532815328253283532845328553286532875328853289532905329153292532935329453295532965329753298532995330053301533025330353304533055330653307533085330953310533115331253313533145331553316533175331853319533205332153322533235332453325533265332753328533295333053331533325333353334533355333653337533385333953340533415334253343533445334553346533475334853349533505335153352533535335453355533565335753358533595336053361533625336353364533655336653367533685336953370533715337253373533745337553376533775337853379533805338153382533835338453385533865338753388533895339053391533925339353394533955339653397533985339953400534015340253403534045340553406534075340853409534105341153412534135341453415534165341753418534195342053421534225342353424534255342653427534285342953430534315343253433534345343553436534375343853439534405344153442534435344453445534465344753448534495345053451534525345353454534555345653457534585345953460534615346253463534645346553466534675346853469534705347153472534735347453475534765347753478534795348053481534825348353484534855348653487534885348953490534915349253493534945349553496534975349853499535005350153502535035350453505535065350753508535095351053511535125351353514535155351653517535185351953520535215352253523535245352553526535275352853529535305353153532535335353453535535365353753538535395354053541535425354353544535455354653547535485354953550535515355253553535545355553556535575355853559535605356153562535635356453565535665356753568535695357053571535725357353574535755357653577535785357953580535815358253583535845358553586535875358853589535905359153592535935359453595535965359753598535995360053601536025360353604536055360653607536085360953610536115361253613536145361553616536175361853619536205362153622536235362453625536265362753628536295363053631536325363353634536355363653637536385363953640536415364253643536445364553646536475364853649536505365153652536535365453655536565365753658536595366053661536625366353664536655366653667536685366953670536715367253673536745367553676536775367853679536805368153682536835368453685536865368753688536895369053691536925369353694536955369653697536985369953700537015370253703537045370553706537075370853709537105371153712537135371453715537165371753718537195372053721537225372353724537255372653727537285372953730537315373253733537345373553736537375373853739537405374153742537435374453745537465374753748537495375053751537525375353754537555375653757537585375953760537615376253763537645376553766537675376853769537705377153772537735377453775537765377753778537795378053781537825378353784537855378653787537885378953790537915379253793537945379553796537975379853799538005380153802538035380453805538065380753808538095381053811538125381353814538155381653817538185381953820538215382253823538245382553826538275382853829538305383153832538335383453835538365383753838538395384053841538425384353844538455384653847538485384953850538515385253853538545385553856538575385853859538605386153862538635386453865538665386753868538695387053871538725387353874538755387653877538785387953880538815388253883538845388553886538875388853889538905389153892538935389453895538965389753898538995390053901539025390353904539055390653907539085390953910539115391253913539145391553916539175391853919539205392153922539235392453925539265392753928539295393053931539325393353934539355393653937539385393953940539415394253943539445394553946539475394853949539505395153952539535395453955539565395753958539595396053961539625396353964539655396653967539685396953970539715397253973539745397553976539775397853979539805398153982539835398453985539865398753988539895399053991539925399353994539955399653997539985399954000540015400254003540045400554006540075400854009540105401154012540135401454015540165401754018540195402054021540225402354024540255402654027540285402954030540315403254033540345403554036540375403854039540405404154042540435404454045540465404754048540495405054051540525405354054540555405654057540585405954060540615406254063540645406554066540675406854069540705407154072540735407454075540765407754078540795408054081540825408354084540855408654087540885408954090540915409254093540945409554096540975409854099541005410154102541035410454105541065410754108541095411054111541125411354114541155411654117541185411954120541215412254123541245412554126541275412854129541305413154132541335413454135541365413754138541395414054141541425414354144541455414654147541485414954150541515415254153541545415554156541575415854159541605416154162541635416454165541665416754168541695417054171541725417354174541755417654177541785417954180541815418254183541845418554186541875418854189541905419154192541935419454195541965419754198541995420054201542025420354204542055420654207542085420954210542115421254213542145421554216542175421854219542205422154222542235422454225542265422754228542295423054231542325423354234542355423654237542385423954240542415424254243542445424554246542475424854249542505425154252542535425454255542565425754258542595426054261542625426354264542655426654267542685426954270542715427254273542745427554276542775427854279542805428154282542835428454285542865428754288542895429054291542925429354294542955429654297542985429954300543015430254303543045430554306543075430854309543105431154312543135431454315543165431754318543195432054321543225432354324543255432654327543285432954330543315433254333543345433554336543375433854339543405434154342543435434454345543465434754348543495435054351543525435354354543555435654357543585435954360543615436254363543645436554366543675436854369543705437154372543735437454375543765437754378543795438054381543825438354384543855438654387543885438954390543915439254393543945439554396543975439854399544005440154402544035440454405544065440754408544095441054411544125441354414544155441654417544185441954420544215442254423544245442554426544275442854429544305443154432544335443454435544365443754438544395444054441544425444354444544455444654447544485444954450544515445254453544545445554456544575445854459544605446154462544635446454465544665446754468544695447054471544725447354474544755447654477544785447954480544815448254483544845448554486544875448854489544905449154492544935449454495544965449754498544995450054501545025450354504545055450654507545085450954510545115451254513545145451554516545175451854519545205452154522545235452454525545265452754528545295453054531545325453354534545355453654537545385453954540545415454254543545445454554546545475454854549545505455154552545535455454555545565455754558545595456054561545625456354564545655456654567545685456954570545715457254573545745457554576545775457854579545805458154582545835458454585545865458754588545895459054591545925459354594545955459654597545985459954600546015460254603546045460554606546075460854609546105461154612546135461454615546165461754618546195462054621546225462354624546255462654627546285462954630546315463254633546345463554636546375463854639546405464154642546435464454645546465464754648546495465054651546525465354654546555465654657546585465954660546615466254663546645466554666546675466854669546705467154672546735467454675546765467754678546795468054681546825468354684546855468654687546885468954690546915469254693546945469554696546975469854699547005470154702547035470454705547065470754708547095471054711547125471354714547155471654717547185471954720547215472254723547245472554726547275472854729547305473154732547335473454735547365473754738547395474054741547425474354744547455474654747547485474954750547515475254753547545475554756547575475854759547605476154762547635476454765547665476754768547695477054771547725477354774547755477654777547785477954780547815478254783547845478554786547875478854789547905479154792547935479454795547965479754798547995480054801548025480354804548055480654807548085480954810548115481254813548145481554816548175481854819548205482154822548235482454825548265482754828548295483054831548325483354834548355483654837548385483954840548415484254843548445484554846548475484854849548505485154852548535485454855548565485754858548595486054861548625486354864548655486654867548685486954870548715487254873548745487554876548775487854879548805488154882548835488454885548865488754888548895489054891548925489354894548955489654897548985489954900549015490254903549045490554906549075490854909549105491154912549135491454915549165491754918549195492054921549225492354924549255492654927549285492954930549315493254933549345493554936549375493854939549405494154942549435494454945549465494754948549495495054951549525495354954549555495654957549585495954960549615496254963549645496554966549675496854969549705497154972549735497454975549765497754978549795498054981549825498354984549855498654987549885498954990549915499254993549945499554996549975499854999550005500155002550035500455005550065500755008550095501055011550125501355014550155501655017550185501955020550215502255023550245502555026550275502855029550305503155032550335503455035550365503755038550395504055041550425504355044550455504655047550485504955050550515505255053550545505555056550575505855059550605506155062550635506455065550665506755068550695507055071550725507355074550755507655077550785507955080550815508255083550845508555086550875508855089550905509155092550935509455095550965509755098550995510055101551025510355104551055510655107551085510955110551115511255113551145511555116551175511855119551205512155122551235512455125551265512755128551295513055131551325513355134551355513655137551385513955140551415514255143551445514555146551475514855149551505515155152551535515455155551565515755158551595516055161551625516355164551655516655167551685516955170551715517255173551745517555176551775517855179551805518155182551835518455185551865518755188551895519055191551925519355194551955519655197551985519955200552015520255203552045520555206552075520855209552105521155212552135521455215552165521755218552195522055221552225522355224552255522655227552285522955230552315523255233552345523555236552375523855239552405524155242552435524455245552465524755248552495525055251552525525355254552555525655257552585525955260552615526255263552645526555266552675526855269552705527155272552735527455275552765527755278552795528055281552825528355284552855528655287552885528955290552915529255293552945529555296552975529855299553005530155302553035530455305553065530755308553095531055311553125531355314553155531655317553185531955320553215532255323553245532555326553275532855329553305533155332553335533455335553365533755338553395534055341553425534355344553455534655347553485534955350553515535255353553545535555356553575535855359553605536155362553635536455365553665536755368553695537055371553725537355374553755537655377553785537955380553815538255383553845538555386553875538855389553905539155392553935539455395553965539755398553995540055401554025540355404554055540655407554085540955410554115541255413554145541555416554175541855419554205542155422554235542455425554265542755428554295543055431554325543355434554355543655437554385543955440554415544255443554445544555446554475544855449554505545155452554535545455455554565545755458554595546055461554625546355464554655546655467554685546955470554715547255473554745547555476554775547855479554805548155482554835548455485554865548755488554895549055491554925549355494554955549655497554985549955500555015550255503555045550555506555075550855509555105551155512555135551455515555165551755518555195552055521555225552355524555255552655527555285552955530555315553255533555345553555536555375553855539555405554155542555435554455545555465554755548555495555055551555525555355554555555555655557555585555955560555615556255563555645556555566555675556855569555705557155572555735557455575555765557755578555795558055581555825558355584555855558655587555885558955590555915559255593555945559555596555975559855599556005560155602556035560455605556065560755608556095561055611556125561355614556155561655617556185561955620556215562255623556245562555626556275562855629556305563155632556335563455635556365563755638556395564055641556425564355644556455564655647556485564955650556515565255653556545565555656556575565855659556605566155662556635566455665556665566755668556695567055671556725567355674556755567655677556785567955680556815568255683556845568555686556875568855689556905569155692556935569455695556965569755698556995570055701557025570355704557055570655707557085570955710557115571255713557145571555716557175571855719557205572155722557235572455725557265572755728557295573055731557325573355734557355573655737557385573955740557415574255743557445574555746557475574855749557505575155752557535575455755557565575755758557595576055761557625576355764557655576655767557685576955770557715577255773557745577555776557775577855779557805578155782557835578455785557865578755788557895579055791557925579355794557955579655797557985579955800558015580255803558045580555806558075580855809558105581155812558135581455815558165581755818558195582055821558225582355824558255582655827558285582955830558315583255833558345583555836558375583855839558405584155842558435584455845558465584755848558495585055851558525585355854558555585655857558585585955860558615586255863558645586555866558675586855869558705587155872558735587455875558765587755878558795588055881558825588355884558855588655887558885588955890558915589255893558945589555896558975589855899559005590155902559035590455905559065590755908559095591055911559125591355914559155591655917559185591955920559215592255923559245592555926559275592855929559305593155932559335593455935559365593755938559395594055941559425594355944559455594655947559485594955950559515595255953559545595555956559575595855959559605596155962559635596455965559665596755968559695597055971559725597355974559755597655977559785597955980559815598255983559845598555986559875598855989559905599155992559935599455995559965599755998559995600056001560025600356004560055600656007560085600956010560115601256013560145601556016560175601856019560205602156022560235602456025560265602756028560295603056031560325603356034560355603656037560385603956040560415604256043560445604556046560475604856049560505605156052560535605456055560565605756058560595606056061560625606356064560655606656067560685606956070560715607256073560745607556076560775607856079560805608156082560835608456085560865608756088560895609056091560925609356094560955609656097560985609956100561015610256103561045610556106561075610856109561105611156112561135611456115561165611756118561195612056121561225612356124561255612656127561285612956130561315613256133561345613556136561375613856139561405614156142561435614456145561465614756148561495615056151561525615356154561555615656157561585615956160561615616256163561645616556166561675616856169561705617156172561735617456175561765617756178561795618056181561825618356184561855618656187561885618956190561915619256193561945619556196561975619856199562005620156202562035620456205562065620756208562095621056211562125621356214562155621656217562185621956220562215622256223562245622556226562275622856229562305623156232562335623456235562365623756238562395624056241562425624356244562455624656247562485624956250562515625256253562545625556256562575625856259562605626156262562635626456265562665626756268562695627056271562725627356274562755627656277562785627956280562815628256283562845628556286562875628856289562905629156292562935629456295562965629756298562995630056301563025630356304563055630656307563085630956310563115631256313563145631556316563175631856319563205632156322563235632456325563265632756328563295633056331563325633356334563355633656337563385633956340563415634256343563445634556346563475634856349563505635156352563535635456355563565635756358563595636056361563625636356364563655636656367563685636956370563715637256373563745637556376563775637856379563805638156382563835638456385563865638756388563895639056391563925639356394563955639656397563985639956400564015640256403564045640556406564075640856409564105641156412564135641456415564165641756418564195642056421564225642356424564255642656427564285642956430564315643256433564345643556436564375643856439564405644156442564435644456445564465644756448564495645056451564525645356454564555645656457564585645956460564615646256463564645646556466564675646856469564705647156472564735647456475564765647756478564795648056481564825648356484564855648656487564885648956490564915649256493564945649556496564975649856499565005650156502565035650456505565065650756508565095651056511565125651356514565155651656517565185651956520565215652256523565245652556526565275652856529565305653156532565335653456535565365653756538565395654056541565425654356544565455654656547565485654956550565515655256553565545655556556565575655856559565605656156562565635656456565565665656756568565695657056571565725657356574565755657656577565785657956580565815658256583565845658556586565875658856589565905659156592565935659456595565965659756598565995660056601566025660356604566055660656607566085660956610566115661256613566145661556616566175661856619566205662156622566235662456625566265662756628566295663056631566325663356634566355663656637566385663956640566415664256643566445664556646566475664856649566505665156652566535665456655566565665756658566595666056661566625666356664566655666656667566685666956670566715667256673566745667556676566775667856679566805668156682566835668456685566865668756688566895669056691566925669356694566955669656697566985669956700567015670256703567045670556706567075670856709567105671156712567135671456715567165671756718567195672056721567225672356724567255672656727567285672956730567315673256733567345673556736567375673856739567405674156742567435674456745567465674756748567495675056751567525675356754567555675656757567585675956760567615676256763567645676556766567675676856769567705677156772567735677456775567765677756778567795678056781567825678356784567855678656787567885678956790567915679256793567945679556796567975679856799568005680156802568035680456805568065680756808568095681056811568125681356814568155681656817568185681956820568215682256823568245682556826568275682856829568305683156832568335683456835568365683756838568395684056841568425684356844568455684656847568485684956850568515685256853568545685556856568575685856859568605686156862568635686456865568665686756868568695687056871568725687356874568755687656877568785687956880568815688256883568845688556886568875688856889568905689156892568935689456895568965689756898568995690056901569025690356904569055690656907569085690956910569115691256913569145691556916569175691856919569205692156922569235692456925569265692756928569295693056931569325693356934569355693656937569385693956940569415694256943569445694556946569475694856949569505695156952569535695456955569565695756958569595696056961569625696356964569655696656967569685696956970569715697256973569745697556976569775697856979569805698156982569835698456985569865698756988569895699056991569925699356994569955699656997569985699957000570015700257003570045700557006570075700857009570105701157012570135701457015570165701757018570195702057021570225702357024570255702657027570285702957030570315703257033570345703557036570375703857039570405704157042570435704457045570465704757048570495705057051570525705357054570555705657057570585705957060570615706257063570645706557066570675706857069570705707157072570735707457075570765707757078570795708057081570825708357084570855708657087570885708957090570915709257093570945709557096570975709857099571005710157102571035710457105571065710757108571095711057111571125711357114571155711657117571185711957120571215712257123571245712557126571275712857129571305713157132571335713457135571365713757138571395714057141571425714357144571455714657147571485714957150571515715257153571545715557156571575715857159571605716157162571635716457165571665716757168571695717057171571725717357174571755717657177571785717957180571815718257183571845718557186571875718857189571905719157192571935719457195571965719757198571995720057201572025720357204572055720657207572085720957210572115721257213572145721557216572175721857219572205722157222572235722457225572265722757228572295723057231572325723357234572355723657237572385723957240572415724257243572445724557246572475724857249572505725157252572535725457255572565725757258572595726057261572625726357264572655726657267572685726957270572715727257273572745727557276572775727857279572805728157282572835728457285572865728757288572895729057291572925729357294572955729657297572985729957300573015730257303573045730557306573075730857309573105731157312573135731457315573165731757318573195732057321573225732357324573255732657327573285732957330573315733257333573345733557336573375733857339573405734157342573435734457345573465734757348573495735057351573525735357354573555735657357573585735957360573615736257363573645736557366573675736857369573705737157372573735737457375573765737757378573795738057381573825738357384573855738657387573885738957390573915739257393573945739557396573975739857399574005740157402574035740457405574065740757408574095741057411574125741357414574155741657417574185741957420574215742257423574245742557426574275742857429574305743157432574335743457435574365743757438574395744057441574425744357444574455744657447574485744957450574515745257453574545745557456574575745857459574605746157462574635746457465574665746757468574695747057471574725747357474574755747657477574785747957480574815748257483574845748557486574875748857489574905749157492574935749457495574965749757498574995750057501575025750357504575055750657507575085750957510575115751257513575145751557516575175751857519575205752157522575235752457525575265752757528575295753057531575325753357534575355753657537575385753957540575415754257543575445754557546575475754857549575505755157552575535755457555575565755757558575595756057561575625756357564575655756657567575685756957570575715757257573575745757557576575775757857579575805758157582575835758457585575865758757588575895759057591575925759357594575955759657597575985759957600576015760257603576045760557606576075760857609576105761157612576135761457615576165761757618576195762057621576225762357624576255762657627576285762957630576315763257633576345763557636576375763857639576405764157642576435764457645576465764757648576495765057651576525765357654576555765657657576585765957660576615766257663
  1. (function webpackUniversalModuleDefinition(root, factory) {
  2. if(typeof exports === 'object' && typeof module === 'object')
  3. module.exports = factory(require("babylonjs"));
  4. else if(typeof define === 'function' && define.amd)
  5. define("babylonjs-node-editor", ["babylonjs"], factory);
  6. else if(typeof exports === 'object')
  7. exports["babylonjs-node-editor"] = factory(require("babylonjs"));
  8. else
  9. root["NODEEDITOR"] = factory(root["BABYLON"]);
  10. })((typeof self !== "undefined" ? self : typeof global !== "undefined" ? global : this), function(__WEBPACK_EXTERNAL_MODULE_babylonjs_Materials_Textures_texture__) {
  11. return /******/ (function(modules) { // webpackBootstrap
  12. /******/ // The module cache
  13. /******/ var installedModules = {};
  14. /******/
  15. /******/ // The require function
  16. /******/ function __webpack_require__(moduleId) {
  17. /******/
  18. /******/ // Check if module is in cache
  19. /******/ if(installedModules[moduleId]) {
  20. /******/ return installedModules[moduleId].exports;
  21. /******/ }
  22. /******/ // Create a new module (and put it into the cache)
  23. /******/ var module = installedModules[moduleId] = {
  24. /******/ i: moduleId,
  25. /******/ l: false,
  26. /******/ exports: {}
  27. /******/ };
  28. /******/
  29. /******/ // Execute the module function
  30. /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
  31. /******/
  32. /******/ // Flag the module as loaded
  33. /******/ module.l = true;
  34. /******/
  35. /******/ // Return the exports of the module
  36. /******/ return module.exports;
  37. /******/ }
  38. /******/
  39. /******/
  40. /******/ // expose the modules object (__webpack_modules__)
  41. /******/ __webpack_require__.m = modules;
  42. /******/
  43. /******/ // expose the module cache
  44. /******/ __webpack_require__.c = installedModules;
  45. /******/
  46. /******/ // define getter function for harmony exports
  47. /******/ __webpack_require__.d = function(exports, name, getter) {
  48. /******/ if(!__webpack_require__.o(exports, name)) {
  49. /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
  50. /******/ }
  51. /******/ };
  52. /******/
  53. /******/ // define __esModule on exports
  54. /******/ __webpack_require__.r = function(exports) {
  55. /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
  56. /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
  57. /******/ }
  58. /******/ Object.defineProperty(exports, '__esModule', { value: true });
  59. /******/ };
  60. /******/
  61. /******/ // create a fake namespace object
  62. /******/ // mode & 1: value is a module id, require it
  63. /******/ // mode & 2: merge all properties of value into the ns
  64. /******/ // mode & 4: return value when already ns object
  65. /******/ // mode & 8|1: behave like require
  66. /******/ __webpack_require__.t = function(value, mode) {
  67. /******/ if(mode & 1) value = __webpack_require__(value);
  68. /******/ if(mode & 8) return value;
  69. /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
  70. /******/ var ns = Object.create(null);
  71. /******/ __webpack_require__.r(ns);
  72. /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
  73. /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
  74. /******/ return ns;
  75. /******/ };
  76. /******/
  77. /******/ // getDefaultExport function for compatibility with non-harmony modules
  78. /******/ __webpack_require__.n = function(module) {
  79. /******/ var getter = module && module.__esModule ?
  80. /******/ function getDefault() { return module['default']; } :
  81. /******/ function getModuleExports() { return module; };
  82. /******/ __webpack_require__.d(getter, 'a', getter);
  83. /******/ return getter;
  84. /******/ };
  85. /******/
  86. /******/ // Object.prototype.hasOwnProperty.call
  87. /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
  88. /******/
  89. /******/ // __webpack_public_path__
  90. /******/ __webpack_require__.p = "";
  91. /******/
  92. /******/
  93. /******/ // Load entry module and return exports
  94. /******/ return __webpack_require__(__webpack_require__.s = "./legacy/legacy.ts");
  95. /******/ })
  96. /************************************************************************/
  97. /******/ ({
  98. /***/ "../../node_modules/@fortawesome/fontawesome-svg-core/index.es.js":
  99. /*!********************************************************************************************!*\
  100. !*** C:/Dev/Babylon/Babylon.js/node_modules/@fortawesome/fontawesome-svg-core/index.es.js ***!
  101. \********************************************************************************************/
  102. /*! exports provided: icon, noAuto, config, toHtml, layer, text, counter, library, dom, parse, findIconDefinition */
  103. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  104. "use strict";
  105. __webpack_require__.r(__webpack_exports__);
  106. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "icon", function() { return icon; });
  107. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "noAuto", function() { return noAuto; });
  108. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "config", function() { return config; });
  109. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toHtml", function() { return toHtml; });
  110. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "layer", function() { return layer; });
  111. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "text", function() { return text; });
  112. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "counter", function() { return counter; });
  113. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "library", function() { return library; });
  114. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dom", function() { return dom; });
  115. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parse", function() { return parse; });
  116. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "findIconDefinition", function() { return findIconDefinition; });
  117. function _classCallCheck(instance, Constructor) {
  118. if (!(instance instanceof Constructor)) {
  119. throw new TypeError("Cannot call a class as a function");
  120. }
  121. }
  122. function _defineProperties(target, props) {
  123. for (var i = 0; i < props.length; i++) {
  124. var descriptor = props[i];
  125. descriptor.enumerable = descriptor.enumerable || false;
  126. descriptor.configurable = true;
  127. if ("value" in descriptor) descriptor.writable = true;
  128. Object.defineProperty(target, descriptor.key, descriptor);
  129. }
  130. }
  131. function _createClass(Constructor, protoProps, staticProps) {
  132. if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  133. if (staticProps) _defineProperties(Constructor, staticProps);
  134. return Constructor;
  135. }
  136. function _defineProperty(obj, key, value) {
  137. if (key in obj) {
  138. Object.defineProperty(obj, key, {
  139. value: value,
  140. enumerable: true,
  141. configurable: true,
  142. writable: true
  143. });
  144. } else {
  145. obj[key] = value;
  146. }
  147. return obj;
  148. }
  149. function _objectSpread(target) {
  150. for (var i = 1; i < arguments.length; i++) {
  151. var source = arguments[i] != null ? arguments[i] : {};
  152. var ownKeys = Object.keys(source);
  153. if (typeof Object.getOwnPropertySymbols === 'function') {
  154. ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {
  155. return Object.getOwnPropertyDescriptor(source, sym).enumerable;
  156. }));
  157. }
  158. ownKeys.forEach(function (key) {
  159. _defineProperty(target, key, source[key]);
  160. });
  161. }
  162. return target;
  163. }
  164. function _slicedToArray(arr, i) {
  165. return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest();
  166. }
  167. function _toConsumableArray(arr) {
  168. return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();
  169. }
  170. function _arrayWithoutHoles(arr) {
  171. if (Array.isArray(arr)) {
  172. for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];
  173. return arr2;
  174. }
  175. }
  176. function _arrayWithHoles(arr) {
  177. if (Array.isArray(arr)) return arr;
  178. }
  179. function _iterableToArray(iter) {
  180. if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
  181. }
  182. function _iterableToArrayLimit(arr, i) {
  183. var _arr = [];
  184. var _n = true;
  185. var _d = false;
  186. var _e = undefined;
  187. try {
  188. for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
  189. _arr.push(_s.value);
  190. if (i && _arr.length === i) break;
  191. }
  192. } catch (err) {
  193. _d = true;
  194. _e = err;
  195. } finally {
  196. try {
  197. if (!_n && _i["return"] != null) _i["return"]();
  198. } finally {
  199. if (_d) throw _e;
  200. }
  201. }
  202. return _arr;
  203. }
  204. function _nonIterableSpread() {
  205. throw new TypeError("Invalid attempt to spread non-iterable instance");
  206. }
  207. function _nonIterableRest() {
  208. throw new TypeError("Invalid attempt to destructure non-iterable instance");
  209. }
  210. var noop = function noop() {};
  211. var _WINDOW = {};
  212. var _DOCUMENT = {};
  213. var _MUTATION_OBSERVER = null;
  214. var _PERFORMANCE = {
  215. mark: noop,
  216. measure: noop
  217. };
  218. try {
  219. if (typeof window !== 'undefined') _WINDOW = window;
  220. if (typeof document !== 'undefined') _DOCUMENT = document;
  221. if (typeof MutationObserver !== 'undefined') _MUTATION_OBSERVER = MutationObserver;
  222. if (typeof performance !== 'undefined') _PERFORMANCE = performance;
  223. } catch (e) {}
  224. var _ref = _WINDOW.navigator || {},
  225. _ref$userAgent = _ref.userAgent,
  226. userAgent = _ref$userAgent === void 0 ? '' : _ref$userAgent;
  227. var WINDOW = _WINDOW;
  228. var DOCUMENT = _DOCUMENT;
  229. var MUTATION_OBSERVER = _MUTATION_OBSERVER;
  230. var PERFORMANCE = _PERFORMANCE;
  231. var IS_BROWSER = !!WINDOW.document;
  232. var IS_DOM = !!DOCUMENT.documentElement && !!DOCUMENT.head && typeof DOCUMENT.addEventListener === 'function' && typeof DOCUMENT.createElement === 'function';
  233. var IS_IE = ~userAgent.indexOf('MSIE') || ~userAgent.indexOf('Trident/');
  234. var NAMESPACE_IDENTIFIER = '___FONT_AWESOME___';
  235. var UNITS_IN_GRID = 16;
  236. var DEFAULT_FAMILY_PREFIX = 'fa';
  237. var DEFAULT_REPLACEMENT_CLASS = 'svg-inline--fa';
  238. var DATA_FA_I2SVG = 'data-fa-i2svg';
  239. var DATA_FA_PSEUDO_ELEMENT = 'data-fa-pseudo-element';
  240. var DATA_PREFIX = 'data-prefix';
  241. var DATA_ICON = 'data-icon';
  242. var HTML_CLASS_I2SVG_BASE_CLASS = 'fontawesome-i2svg';
  243. var TAGNAMES_TO_SKIP_FOR_PSEUDOELEMENTS = ['HTML', 'HEAD', 'STYLE', 'SCRIPT'];
  244. var PRODUCTION = function () {
  245. try {
  246. return "development" === 'production';
  247. } catch (e) {
  248. return false;
  249. }
  250. }();
  251. var oneToTen = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
  252. var oneToTwenty = oneToTen.concat([11, 12, 13, 14, 15, 16, 17, 18, 19, 20]);
  253. var ATTRIBUTES_WATCHED_FOR_MUTATION = ['class', 'data-prefix', 'data-icon', 'data-fa-transform', 'data-fa-mask'];
  254. var RESERVED_CLASSES = ['xs', 'sm', 'lg', 'fw', 'ul', 'li', 'border', 'pull-left', 'pull-right', 'spin', 'pulse', 'rotate-90', 'rotate-180', 'rotate-270', 'flip-horizontal', 'flip-vertical', 'stack', 'stack-1x', 'stack-2x', 'inverse', 'layers', 'layers-text', 'layers-counter'].concat(oneToTen.map(function (n) {
  255. return "".concat(n, "x");
  256. })).concat(oneToTwenty.map(function (n) {
  257. return "w-".concat(n);
  258. }));
  259. var initial = WINDOW.FontAwesomeConfig || {};
  260. function getAttrConfig(attr) {
  261. var element = DOCUMENT.querySelector('script[' + attr + ']');
  262. if (element) {
  263. return element.getAttribute(attr);
  264. }
  265. }
  266. function coerce(val) {
  267. // Getting an empty string will occur if the attribute is set on the HTML tag but without a value
  268. // We'll assume that this is an indication that it should be toggled to true
  269. // For example <script data-search-pseudo-elements src="..."></script>
  270. if (val === '') return true;
  271. if (val === 'false') return false;
  272. if (val === 'true') return true;
  273. return val;
  274. }
  275. if (DOCUMENT && typeof DOCUMENT.querySelector === 'function') {
  276. var attrs = [['data-family-prefix', 'familyPrefix'], ['data-replacement-class', 'replacementClass'], ['data-auto-replace-svg', 'autoReplaceSvg'], ['data-auto-add-css', 'autoAddCss'], ['data-auto-a11y', 'autoA11y'], ['data-search-pseudo-elements', 'searchPseudoElements'], ['data-observe-mutations', 'observeMutations'], ['data-keep-original-source', 'keepOriginalSource'], ['data-measure-performance', 'measurePerformance'], ['data-show-missing-icons', 'showMissingIcons']];
  277. attrs.forEach(function (_ref) {
  278. var _ref2 = _slicedToArray(_ref, 2),
  279. attr = _ref2[0],
  280. key = _ref2[1];
  281. var val = coerce(getAttrConfig(attr));
  282. if (val !== undefined && val !== null) {
  283. initial[key] = val;
  284. }
  285. });
  286. }
  287. var _default = _objectSpread({
  288. familyPrefix: DEFAULT_FAMILY_PREFIX,
  289. replacementClass: DEFAULT_REPLACEMENT_CLASS,
  290. autoReplaceSvg: true,
  291. autoAddCss: true,
  292. autoA11y: true,
  293. searchPseudoElements: false,
  294. observeMutations: true,
  295. keepOriginalSource: true,
  296. measurePerformance: false,
  297. showMissingIcons: true
  298. }, initial);
  299. if (!_default.autoReplaceSvg) _default.observeMutations = false;
  300. var config = _objectSpread({}, _default);
  301. WINDOW.FontAwesomeConfig = config;
  302. var w = WINDOW || {};
  303. if (!w[NAMESPACE_IDENTIFIER]) w[NAMESPACE_IDENTIFIER] = {};
  304. if (!w[NAMESPACE_IDENTIFIER].styles) w[NAMESPACE_IDENTIFIER].styles = {};
  305. if (!w[NAMESPACE_IDENTIFIER].hooks) w[NAMESPACE_IDENTIFIER].hooks = {};
  306. if (!w[NAMESPACE_IDENTIFIER].shims) w[NAMESPACE_IDENTIFIER].shims = [];
  307. var namespace = w[NAMESPACE_IDENTIFIER];
  308. var functions = [];
  309. var listener = function listener() {
  310. DOCUMENT.removeEventListener('DOMContentLoaded', listener);
  311. loaded = 1;
  312. functions.map(function (fn) {
  313. return fn();
  314. });
  315. };
  316. var loaded = false;
  317. if (IS_DOM) {
  318. loaded = (DOCUMENT.documentElement.doScroll ? /^loaded|^c/ : /^loaded|^i|^c/).test(DOCUMENT.readyState);
  319. if (!loaded) DOCUMENT.addEventListener('DOMContentLoaded', listener);
  320. }
  321. function domready (fn) {
  322. if (!IS_DOM) return;
  323. loaded ? setTimeout(fn, 0) : functions.push(fn);
  324. }
  325. var d = UNITS_IN_GRID;
  326. var meaninglessTransform = {
  327. size: 16,
  328. x: 0,
  329. y: 0,
  330. rotate: 0,
  331. flipX: false,
  332. flipY: false
  333. };
  334. function isReserved(name) {
  335. return ~RESERVED_CLASSES.indexOf(name);
  336. }
  337. function insertCss(css) {
  338. if (!css || !IS_DOM) {
  339. return;
  340. }
  341. var style = DOCUMENT.createElement('style');
  342. style.setAttribute('type', 'text/css');
  343. style.innerHTML = css;
  344. var headChildren = DOCUMENT.head.childNodes;
  345. var beforeChild = null;
  346. for (var i = headChildren.length - 1; i > -1; i--) {
  347. var child = headChildren[i];
  348. var tagName = (child.tagName || '').toUpperCase();
  349. if (['STYLE', 'LINK'].indexOf(tagName) > -1) {
  350. beforeChild = child;
  351. }
  352. }
  353. DOCUMENT.head.insertBefore(style, beforeChild);
  354. return css;
  355. }
  356. var idPool = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
  357. function nextUniqueId() {
  358. var size = 12;
  359. var id = '';
  360. while (size-- > 0) {
  361. id += idPool[Math.random() * 62 | 0];
  362. }
  363. return id;
  364. }
  365. function toArray(obj) {
  366. var array = [];
  367. for (var i = (obj || []).length >>> 0; i--;) {
  368. array[i] = obj[i];
  369. }
  370. return array;
  371. }
  372. function classArray(node) {
  373. if (node.classList) {
  374. return toArray(node.classList);
  375. } else {
  376. return (node.getAttribute('class') || '').split(' ').filter(function (i) {
  377. return i;
  378. });
  379. }
  380. }
  381. function getIconName(familyPrefix, cls) {
  382. var parts = cls.split('-');
  383. var prefix = parts[0];
  384. var iconName = parts.slice(1).join('-');
  385. if (prefix === familyPrefix && iconName !== '' && !isReserved(iconName)) {
  386. return iconName;
  387. } else {
  388. return null;
  389. }
  390. }
  391. function htmlEscape(str) {
  392. return "".concat(str).replace(/&/g, '&amp;').replace(/"/g, '&quot;').replace(/'/g, '&#39;').replace(/</g, '&lt;').replace(/>/g, '&gt;');
  393. }
  394. function joinAttributes(attributes) {
  395. return Object.keys(attributes || {}).reduce(function (acc, attributeName) {
  396. return acc + "".concat(attributeName, "=\"").concat(htmlEscape(attributes[attributeName]), "\" ");
  397. }, '').trim();
  398. }
  399. function joinStyles(styles) {
  400. return Object.keys(styles || {}).reduce(function (acc, styleName) {
  401. return acc + "".concat(styleName, ": ").concat(styles[styleName], ";");
  402. }, '');
  403. }
  404. function transformIsMeaningful(transform) {
  405. return transform.size !== meaninglessTransform.size || transform.x !== meaninglessTransform.x || transform.y !== meaninglessTransform.y || transform.rotate !== meaninglessTransform.rotate || transform.flipX || transform.flipY;
  406. }
  407. function transformForSvg(_ref) {
  408. var transform = _ref.transform,
  409. containerWidth = _ref.containerWidth,
  410. iconWidth = _ref.iconWidth;
  411. var outer = {
  412. transform: "translate(".concat(containerWidth / 2, " 256)")
  413. };
  414. var innerTranslate = "translate(".concat(transform.x * 32, ", ").concat(transform.y * 32, ") ");
  415. var innerScale = "scale(".concat(transform.size / 16 * (transform.flipX ? -1 : 1), ", ").concat(transform.size / 16 * (transform.flipY ? -1 : 1), ") ");
  416. var innerRotate = "rotate(".concat(transform.rotate, " 0 0)");
  417. var inner = {
  418. transform: "".concat(innerTranslate, " ").concat(innerScale, " ").concat(innerRotate)
  419. };
  420. var path = {
  421. transform: "translate(".concat(iconWidth / 2 * -1, " -256)")
  422. };
  423. return {
  424. outer: outer,
  425. inner: inner,
  426. path: path
  427. };
  428. }
  429. function transformForCss(_ref2) {
  430. var transform = _ref2.transform,
  431. _ref2$width = _ref2.width,
  432. width = _ref2$width === void 0 ? UNITS_IN_GRID : _ref2$width,
  433. _ref2$height = _ref2.height,
  434. height = _ref2$height === void 0 ? UNITS_IN_GRID : _ref2$height,
  435. _ref2$startCentered = _ref2.startCentered,
  436. startCentered = _ref2$startCentered === void 0 ? false : _ref2$startCentered;
  437. var val = '';
  438. if (startCentered && IS_IE) {
  439. val += "translate(".concat(transform.x / d - width / 2, "em, ").concat(transform.y / d - height / 2, "em) ");
  440. } else if (startCentered) {
  441. val += "translate(calc(-50% + ".concat(transform.x / d, "em), calc(-50% + ").concat(transform.y / d, "em)) ");
  442. } else {
  443. val += "translate(".concat(transform.x / d, "em, ").concat(transform.y / d, "em) ");
  444. }
  445. val += "scale(".concat(transform.size / d * (transform.flipX ? -1 : 1), ", ").concat(transform.size / d * (transform.flipY ? -1 : 1), ") ");
  446. val += "rotate(".concat(transform.rotate, "deg) ");
  447. return val;
  448. }
  449. var ALL_SPACE = {
  450. x: 0,
  451. y: 0,
  452. width: '100%',
  453. height: '100%'
  454. };
  455. function makeIconMasking (_ref) {
  456. var children = _ref.children,
  457. attributes = _ref.attributes,
  458. main = _ref.main,
  459. mask = _ref.mask,
  460. transform = _ref.transform;
  461. var mainWidth = main.width,
  462. mainPath = main.icon;
  463. var maskWidth = mask.width,
  464. maskPath = mask.icon;
  465. var trans = transformForSvg({
  466. transform: transform,
  467. containerWidth: maskWidth,
  468. iconWidth: mainWidth
  469. });
  470. var maskRect = {
  471. tag: 'rect',
  472. attributes: _objectSpread({}, ALL_SPACE, {
  473. fill: 'white'
  474. })
  475. };
  476. var maskInnerGroup = {
  477. tag: 'g',
  478. attributes: _objectSpread({}, trans.inner),
  479. children: [{
  480. tag: 'path',
  481. attributes: _objectSpread({}, mainPath.attributes, trans.path, {
  482. fill: 'black'
  483. })
  484. }]
  485. };
  486. var maskOuterGroup = {
  487. tag: 'g',
  488. attributes: _objectSpread({}, trans.outer),
  489. children: [maskInnerGroup]
  490. };
  491. var maskId = "mask-".concat(nextUniqueId());
  492. var clipId = "clip-".concat(nextUniqueId());
  493. var maskTag = {
  494. tag: 'mask',
  495. attributes: _objectSpread({}, ALL_SPACE, {
  496. id: maskId,
  497. maskUnits: 'userSpaceOnUse',
  498. maskContentUnits: 'userSpaceOnUse'
  499. }),
  500. children: [maskRect, maskOuterGroup]
  501. };
  502. var defs = {
  503. tag: 'defs',
  504. children: [{
  505. tag: 'clipPath',
  506. attributes: {
  507. id: clipId
  508. },
  509. children: [maskPath]
  510. }, maskTag]
  511. };
  512. children.push(defs, {
  513. tag: 'rect',
  514. attributes: _objectSpread({
  515. fill: 'currentColor',
  516. 'clip-path': "url(#".concat(clipId, ")"),
  517. mask: "url(#".concat(maskId, ")")
  518. }, ALL_SPACE)
  519. });
  520. return {
  521. children: children,
  522. attributes: attributes
  523. };
  524. }
  525. function makeIconStandard (_ref) {
  526. var children = _ref.children,
  527. attributes = _ref.attributes,
  528. main = _ref.main,
  529. transform = _ref.transform,
  530. styles = _ref.styles;
  531. var styleString = joinStyles(styles);
  532. if (styleString.length > 0) {
  533. attributes['style'] = styleString;
  534. }
  535. if (transformIsMeaningful(transform)) {
  536. var trans = transformForSvg({
  537. transform: transform,
  538. containerWidth: main.width,
  539. iconWidth: main.width
  540. });
  541. children.push({
  542. tag: 'g',
  543. attributes: _objectSpread({}, trans.outer),
  544. children: [{
  545. tag: 'g',
  546. attributes: _objectSpread({}, trans.inner),
  547. children: [{
  548. tag: main.icon.tag,
  549. children: main.icon.children,
  550. attributes: _objectSpread({}, main.icon.attributes, trans.path)
  551. }]
  552. }]
  553. });
  554. } else {
  555. children.push(main.icon);
  556. }
  557. return {
  558. children: children,
  559. attributes: attributes
  560. };
  561. }
  562. function asIcon (_ref) {
  563. var children = _ref.children,
  564. main = _ref.main,
  565. mask = _ref.mask,
  566. attributes = _ref.attributes,
  567. styles = _ref.styles,
  568. transform = _ref.transform;
  569. if (transformIsMeaningful(transform) && main.found && !mask.found) {
  570. var width = main.width,
  571. height = main.height;
  572. var offset = {
  573. x: width / height / 2,
  574. y: 0.5
  575. };
  576. attributes['style'] = joinStyles(_objectSpread({}, styles, {
  577. 'transform-origin': "".concat(offset.x + transform.x / 16, "em ").concat(offset.y + transform.y / 16, "em")
  578. }));
  579. }
  580. return [{
  581. tag: 'svg',
  582. attributes: attributes,
  583. children: children
  584. }];
  585. }
  586. function asSymbol (_ref) {
  587. var prefix = _ref.prefix,
  588. iconName = _ref.iconName,
  589. children = _ref.children,
  590. attributes = _ref.attributes,
  591. symbol = _ref.symbol;
  592. var id = symbol === true ? "".concat(prefix, "-").concat(config.familyPrefix, "-").concat(iconName) : symbol;
  593. return [{
  594. tag: 'svg',
  595. attributes: {
  596. style: 'display: none;'
  597. },
  598. children: [{
  599. tag: 'symbol',
  600. attributes: _objectSpread({}, attributes, {
  601. id: id
  602. }),
  603. children: children
  604. }]
  605. }];
  606. }
  607. function makeInlineSvgAbstract(params) {
  608. var _params$icons = params.icons,
  609. main = _params$icons.main,
  610. mask = _params$icons.mask,
  611. prefix = params.prefix,
  612. iconName = params.iconName,
  613. transform = params.transform,
  614. symbol = params.symbol,
  615. title = params.title,
  616. extra = params.extra,
  617. _params$watchable = params.watchable,
  618. watchable = _params$watchable === void 0 ? false : _params$watchable;
  619. var _ref = mask.found ? mask : main,
  620. width = _ref.width,
  621. height = _ref.height;
  622. var widthClass = "fa-w-".concat(Math.ceil(width / height * 16));
  623. var attrClass = [config.replacementClass, iconName ? "".concat(config.familyPrefix, "-").concat(iconName) : '', widthClass].filter(function (c) {
  624. return extra.classes.indexOf(c) === -1;
  625. }).concat(extra.classes).join(' ');
  626. var content = {
  627. children: [],
  628. attributes: _objectSpread({}, extra.attributes, {
  629. 'data-prefix': prefix,
  630. 'data-icon': iconName,
  631. 'class': attrClass,
  632. 'role': 'img',
  633. 'xmlns': 'http://www.w3.org/2000/svg',
  634. 'viewBox': "0 0 ".concat(width, " ").concat(height)
  635. })
  636. };
  637. if (watchable) {
  638. content.attributes[DATA_FA_I2SVG] = '';
  639. }
  640. if (title) content.children.push({
  641. tag: 'title',
  642. attributes: {
  643. id: content.attributes['aria-labelledby'] || "title-".concat(nextUniqueId())
  644. },
  645. children: [title]
  646. });
  647. var args = _objectSpread({}, content, {
  648. prefix: prefix,
  649. iconName: iconName,
  650. main: main,
  651. mask: mask,
  652. transform: transform,
  653. symbol: symbol,
  654. styles: extra.styles
  655. });
  656. var _ref2 = mask.found && main.found ? makeIconMasking(args) : makeIconStandard(args),
  657. children = _ref2.children,
  658. attributes = _ref2.attributes;
  659. args.children = children;
  660. args.attributes = attributes;
  661. if (symbol) {
  662. return asSymbol(args);
  663. } else {
  664. return asIcon(args);
  665. }
  666. }
  667. function makeLayersTextAbstract(params) {
  668. var content = params.content,
  669. width = params.width,
  670. height = params.height,
  671. transform = params.transform,
  672. title = params.title,
  673. extra = params.extra,
  674. _params$watchable2 = params.watchable,
  675. watchable = _params$watchable2 === void 0 ? false : _params$watchable2;
  676. var attributes = _objectSpread({}, extra.attributes, title ? {
  677. 'title': title
  678. } : {}, {
  679. 'class': extra.classes.join(' ')
  680. });
  681. if (watchable) {
  682. attributes[DATA_FA_I2SVG] = '';
  683. }
  684. var styles = _objectSpread({}, extra.styles);
  685. if (transformIsMeaningful(transform)) {
  686. styles['transform'] = transformForCss({
  687. transform: transform,
  688. startCentered: true,
  689. width: width,
  690. height: height
  691. });
  692. styles['-webkit-transform'] = styles['transform'];
  693. }
  694. var styleString = joinStyles(styles);
  695. if (styleString.length > 0) {
  696. attributes['style'] = styleString;
  697. }
  698. var val = [];
  699. val.push({
  700. tag: 'span',
  701. attributes: attributes,
  702. children: [content]
  703. });
  704. if (title) {
  705. val.push({
  706. tag: 'span',
  707. attributes: {
  708. class: 'sr-only'
  709. },
  710. children: [title]
  711. });
  712. }
  713. return val;
  714. }
  715. function makeLayersCounterAbstract(params) {
  716. var content = params.content,
  717. title = params.title,
  718. extra = params.extra;
  719. var attributes = _objectSpread({}, extra.attributes, title ? {
  720. 'title': title
  721. } : {}, {
  722. 'class': extra.classes.join(' ')
  723. });
  724. var styleString = joinStyles(extra.styles);
  725. if (styleString.length > 0) {
  726. attributes['style'] = styleString;
  727. }
  728. var val = [];
  729. val.push({
  730. tag: 'span',
  731. attributes: attributes,
  732. children: [content]
  733. });
  734. if (title) {
  735. val.push({
  736. tag: 'span',
  737. attributes: {
  738. class: 'sr-only'
  739. },
  740. children: [title]
  741. });
  742. }
  743. return val;
  744. }
  745. var noop$1 = function noop() {};
  746. var p = config.measurePerformance && PERFORMANCE && PERFORMANCE.mark && PERFORMANCE.measure ? PERFORMANCE : {
  747. mark: noop$1,
  748. measure: noop$1
  749. };
  750. var preamble = "FA \"5.6.3\"";
  751. var begin = function begin(name) {
  752. p.mark("".concat(preamble, " ").concat(name, " begins"));
  753. return function () {
  754. return end(name);
  755. };
  756. };
  757. var end = function end(name) {
  758. p.mark("".concat(preamble, " ").concat(name, " ends"));
  759. p.measure("".concat(preamble, " ").concat(name), "".concat(preamble, " ").concat(name, " begins"), "".concat(preamble, " ").concat(name, " ends"));
  760. };
  761. var perf = {
  762. begin: begin,
  763. end: end
  764. };
  765. /**
  766. * Internal helper to bind a function known to have 4 arguments
  767. * to a given context.
  768. */
  769. var bindInternal4 = function bindInternal4(func, thisContext) {
  770. return function (a, b, c, d) {
  771. return func.call(thisContext, a, b, c, d);
  772. };
  773. };
  774. /**
  775. * # Reduce
  776. *
  777. * A fast object `.reduce()` implementation.
  778. *
  779. * @param {Object} subject The object to reduce over.
  780. * @param {Function} fn The reducer function.
  781. * @param {mixed} initialValue The initial value for the reducer, defaults to subject[0].
  782. * @param {Object} thisContext The context for the reducer.
  783. * @return {mixed} The final result.
  784. */
  785. var reduce = function fastReduceObject(subject, fn, initialValue, thisContext) {
  786. var keys = Object.keys(subject),
  787. length = keys.length,
  788. iterator = thisContext !== undefined ? bindInternal4(fn, thisContext) : fn,
  789. i,
  790. key,
  791. result;
  792. if (initialValue === undefined) {
  793. i = 1;
  794. result = subject[keys[0]];
  795. } else {
  796. i = 0;
  797. result = initialValue;
  798. }
  799. for (; i < length; i++) {
  800. key = keys[i];
  801. result = iterator(result, subject[key], key, subject);
  802. }
  803. return result;
  804. };
  805. var styles = namespace.styles,
  806. shims = namespace.shims;
  807. var _byUnicode = {};
  808. var _byLigature = {};
  809. var _byOldName = {};
  810. var build = function build() {
  811. var lookup = function lookup(reducer) {
  812. return reduce(styles, function (o, style, prefix) {
  813. o[prefix] = reduce(style, reducer, {});
  814. return o;
  815. }, {});
  816. };
  817. _byUnicode = lookup(function (acc, icon, iconName) {
  818. acc[icon[3]] = iconName;
  819. return acc;
  820. });
  821. _byLigature = lookup(function (acc, icon, iconName) {
  822. var ligatures = icon[2];
  823. acc[iconName] = iconName;
  824. ligatures.forEach(function (ligature) {
  825. acc[ligature] = iconName;
  826. });
  827. return acc;
  828. });
  829. var hasRegular = 'far' in styles;
  830. _byOldName = reduce(shims, function (acc, shim) {
  831. var oldName = shim[0];
  832. var prefix = shim[1];
  833. var iconName = shim[2];
  834. if (prefix === 'far' && !hasRegular) {
  835. prefix = 'fas';
  836. }
  837. acc[oldName] = {
  838. prefix: prefix,
  839. iconName: iconName
  840. };
  841. return acc;
  842. }, {});
  843. };
  844. build();
  845. function byUnicode(prefix, unicode) {
  846. return _byUnicode[prefix][unicode];
  847. }
  848. function byLigature(prefix, ligature) {
  849. return _byLigature[prefix][ligature];
  850. }
  851. function byOldName(name) {
  852. return _byOldName[name] || {
  853. prefix: null,
  854. iconName: null
  855. };
  856. }
  857. var styles$1 = namespace.styles;
  858. var emptyCanonicalIcon = function emptyCanonicalIcon() {
  859. return {
  860. prefix: null,
  861. iconName: null,
  862. rest: []
  863. };
  864. };
  865. function getCanonicalIcon(values) {
  866. return values.reduce(function (acc, cls) {
  867. var iconName = getIconName(config.familyPrefix, cls);
  868. if (styles$1[cls]) {
  869. acc.prefix = cls;
  870. } else if (iconName) {
  871. var shim = acc.prefix === 'fa' ? byOldName(iconName) : {};
  872. acc.iconName = shim.iconName || iconName;
  873. acc.prefix = shim.prefix || acc.prefix;
  874. } else if (cls !== config.replacementClass && cls.indexOf('fa-w-') !== 0) {
  875. acc.rest.push(cls);
  876. }
  877. return acc;
  878. }, emptyCanonicalIcon());
  879. }
  880. function iconFromMapping(mapping, prefix, iconName) {
  881. if (mapping && mapping[prefix] && mapping[prefix][iconName]) {
  882. return {
  883. prefix: prefix,
  884. iconName: iconName,
  885. icon: mapping[prefix][iconName]
  886. };
  887. }
  888. }
  889. function toHtml(abstractNodes) {
  890. var tag = abstractNodes.tag,
  891. _abstractNodes$attrib = abstractNodes.attributes,
  892. attributes = _abstractNodes$attrib === void 0 ? {} : _abstractNodes$attrib,
  893. _abstractNodes$childr = abstractNodes.children,
  894. children = _abstractNodes$childr === void 0 ? [] : _abstractNodes$childr;
  895. if (typeof abstractNodes === 'string') {
  896. return htmlEscape(abstractNodes);
  897. } else {
  898. return "<".concat(tag, " ").concat(joinAttributes(attributes), ">").concat(children.map(toHtml).join(''), "</").concat(tag, ">");
  899. }
  900. }
  901. var noop$2 = function noop() {};
  902. function isWatched(node) {
  903. var i2svg = node.getAttribute ? node.getAttribute(DATA_FA_I2SVG) : null;
  904. return typeof i2svg === 'string';
  905. }
  906. function getMutator() {
  907. if (config.autoReplaceSvg === true) {
  908. return mutators.replace;
  909. }
  910. var mutator = mutators[config.autoReplaceSvg];
  911. return mutator || mutators.replace;
  912. }
  913. var mutators = {
  914. replace: function replace(mutation) {
  915. var node = mutation[0];
  916. var abstract = mutation[1];
  917. var newOuterHTML = abstract.map(function (a) {
  918. return toHtml(a);
  919. }).join('\n');
  920. if (node.parentNode && node.outerHTML) {
  921. node.outerHTML = newOuterHTML + (config.keepOriginalSource && node.tagName.toLowerCase() !== 'svg' ? "<!-- ".concat(node.outerHTML, " -->") : '');
  922. } else if (node.parentNode) {
  923. var newNode = document.createElement('span');
  924. node.parentNode.replaceChild(newNode, node);
  925. newNode.outerHTML = newOuterHTML;
  926. }
  927. },
  928. nest: function nest(mutation) {
  929. var node = mutation[0];
  930. var abstract = mutation[1]; // If we already have a replaced node we do not want to continue nesting within it.
  931. // Short-circuit to the standard replacement
  932. if (~classArray(node).indexOf(config.replacementClass)) {
  933. return mutators.replace(mutation);
  934. }
  935. var forSvg = new RegExp("".concat(config.familyPrefix, "-.*"));
  936. delete abstract[0].attributes.style;
  937. var splitClasses = abstract[0].attributes.class.split(' ').reduce(function (acc, cls) {
  938. if (cls === config.replacementClass || cls.match(forSvg)) {
  939. acc.toSvg.push(cls);
  940. } else {
  941. acc.toNode.push(cls);
  942. }
  943. return acc;
  944. }, {
  945. toNode: [],
  946. toSvg: []
  947. });
  948. abstract[0].attributes.class = splitClasses.toSvg.join(' ');
  949. var newInnerHTML = abstract.map(function (a) {
  950. return toHtml(a);
  951. }).join('\n');
  952. node.setAttribute('class', splitClasses.toNode.join(' '));
  953. node.setAttribute(DATA_FA_I2SVG, '');
  954. node.innerHTML = newInnerHTML;
  955. }
  956. };
  957. function perform(mutations, callback) {
  958. var callbackFunction = typeof callback === 'function' ? callback : noop$2;
  959. if (mutations.length === 0) {
  960. callbackFunction();
  961. } else {
  962. var frame = WINDOW.requestAnimationFrame || function (op) {
  963. return op();
  964. };
  965. frame(function () {
  966. var mutator = getMutator();
  967. var mark = perf.begin('mutate');
  968. mutations.map(mutator);
  969. mark();
  970. callbackFunction();
  971. });
  972. }
  973. }
  974. var disabled = false;
  975. function disableObservation(operation) {
  976. disabled = true;
  977. operation();
  978. disabled = false;
  979. }
  980. var mo = null;
  981. function observe(options) {
  982. if (!MUTATION_OBSERVER) {
  983. return;
  984. }
  985. if (!config.observeMutations) {
  986. return;
  987. }
  988. var treeCallback = options.treeCallback,
  989. nodeCallback = options.nodeCallback,
  990. pseudoElementsCallback = options.pseudoElementsCallback,
  991. _options$observeMutat = options.observeMutationsRoot,
  992. observeMutationsRoot = _options$observeMutat === void 0 ? DOCUMENT.body : _options$observeMutat;
  993. mo = new MUTATION_OBSERVER(function (objects) {
  994. if (disabled) return;
  995. toArray(objects).forEach(function (mutationRecord) {
  996. if (mutationRecord.type === 'childList' && mutationRecord.addedNodes.length > 0 && !isWatched(mutationRecord.addedNodes[0])) {
  997. if (config.searchPseudoElements) {
  998. pseudoElementsCallback(mutationRecord.target);
  999. }
  1000. treeCallback(mutationRecord.target);
  1001. }
  1002. if (mutationRecord.type === 'attributes' && mutationRecord.target.parentNode && config.searchPseudoElements) {
  1003. pseudoElementsCallback(mutationRecord.target.parentNode);
  1004. }
  1005. if (mutationRecord.type === 'attributes' && isWatched(mutationRecord.target) && ~ATTRIBUTES_WATCHED_FOR_MUTATION.indexOf(mutationRecord.attributeName)) {
  1006. if (mutationRecord.attributeName === 'class') {
  1007. var _getCanonicalIcon = getCanonicalIcon(classArray(mutationRecord.target)),
  1008. prefix = _getCanonicalIcon.prefix,
  1009. iconName = _getCanonicalIcon.iconName;
  1010. if (prefix) mutationRecord.target.setAttribute('data-prefix', prefix);
  1011. if (iconName) mutationRecord.target.setAttribute('data-icon', iconName);
  1012. } else {
  1013. nodeCallback(mutationRecord.target);
  1014. }
  1015. }
  1016. });
  1017. });
  1018. if (!IS_DOM) return;
  1019. mo.observe(observeMutationsRoot, {
  1020. childList: true,
  1021. attributes: true,
  1022. characterData: true,
  1023. subtree: true
  1024. });
  1025. }
  1026. function disconnect() {
  1027. if (!mo) return;
  1028. mo.disconnect();
  1029. }
  1030. function styleParser (node) {
  1031. var style = node.getAttribute('style');
  1032. var val = [];
  1033. if (style) {
  1034. val = style.split(';').reduce(function (acc, style) {
  1035. var styles = style.split(':');
  1036. var prop = styles[0];
  1037. var value = styles.slice(1);
  1038. if (prop && value.length > 0) {
  1039. acc[prop] = value.join(':').trim();
  1040. }
  1041. return acc;
  1042. }, {});
  1043. }
  1044. return val;
  1045. }
  1046. function toHex(unicode) {
  1047. var result = '';
  1048. for (var i = 0; i < unicode.length; i++) {
  1049. var hex = unicode.charCodeAt(i).toString(16);
  1050. result += ('000' + hex).slice(-4);
  1051. }
  1052. return result;
  1053. }
  1054. function classParser (node) {
  1055. var existingPrefix = node.getAttribute('data-prefix');
  1056. var existingIconName = node.getAttribute('data-icon');
  1057. var innerText = node.innerText !== undefined ? node.innerText.trim() : '';
  1058. var val = getCanonicalIcon(classArray(node));
  1059. if (existingPrefix && existingIconName) {
  1060. val.prefix = existingPrefix;
  1061. val.iconName = existingIconName;
  1062. }
  1063. if (val.prefix && innerText.length > 1) {
  1064. val.iconName = byLigature(val.prefix, node.innerText);
  1065. } else if (val.prefix && innerText.length === 1) {
  1066. val.iconName = byUnicode(val.prefix, toHex(node.innerText));
  1067. }
  1068. return val;
  1069. }
  1070. var parseTransformString = function parseTransformString(transformString) {
  1071. var transform = {
  1072. size: 16,
  1073. x: 0,
  1074. y: 0,
  1075. flipX: false,
  1076. flipY: false,
  1077. rotate: 0
  1078. };
  1079. if (!transformString) {
  1080. return transform;
  1081. } else {
  1082. return transformString.toLowerCase().split(' ').reduce(function (acc, n) {
  1083. var parts = n.toLowerCase().split('-');
  1084. var first = parts[0];
  1085. var rest = parts.slice(1).join('-');
  1086. if (first && rest === 'h') {
  1087. acc.flipX = true;
  1088. return acc;
  1089. }
  1090. if (first && rest === 'v') {
  1091. acc.flipY = true;
  1092. return acc;
  1093. }
  1094. rest = parseFloat(rest);
  1095. if (isNaN(rest)) {
  1096. return acc;
  1097. }
  1098. switch (first) {
  1099. case 'grow':
  1100. acc.size = acc.size + rest;
  1101. break;
  1102. case 'shrink':
  1103. acc.size = acc.size - rest;
  1104. break;
  1105. case 'left':
  1106. acc.x = acc.x - rest;
  1107. break;
  1108. case 'right':
  1109. acc.x = acc.x + rest;
  1110. break;
  1111. case 'up':
  1112. acc.y = acc.y - rest;
  1113. break;
  1114. case 'down':
  1115. acc.y = acc.y + rest;
  1116. break;
  1117. case 'rotate':
  1118. acc.rotate = acc.rotate + rest;
  1119. break;
  1120. }
  1121. return acc;
  1122. }, transform);
  1123. }
  1124. };
  1125. function transformParser (node) {
  1126. return parseTransformString(node.getAttribute('data-fa-transform'));
  1127. }
  1128. function symbolParser (node) {
  1129. var symbol = node.getAttribute('data-fa-symbol');
  1130. return symbol === null ? false : symbol === '' ? true : symbol;
  1131. }
  1132. function attributesParser (node) {
  1133. var extraAttributes = toArray(node.attributes).reduce(function (acc, attr) {
  1134. if (acc.name !== 'class' && acc.name !== 'style') {
  1135. acc[attr.name] = attr.value;
  1136. }
  1137. return acc;
  1138. }, {});
  1139. var title = node.getAttribute('title');
  1140. if (config.autoA11y) {
  1141. if (title) {
  1142. extraAttributes['aria-labelledby'] = "".concat(config.replacementClass, "-title-").concat(nextUniqueId());
  1143. } else {
  1144. extraAttributes['aria-hidden'] = 'true';
  1145. }
  1146. }
  1147. return extraAttributes;
  1148. }
  1149. function maskParser (node) {
  1150. var mask = node.getAttribute('data-fa-mask');
  1151. if (!mask) {
  1152. return emptyCanonicalIcon();
  1153. } else {
  1154. return getCanonicalIcon(mask.split(' ').map(function (i) {
  1155. return i.trim();
  1156. }));
  1157. }
  1158. }
  1159. var blankMeta = {
  1160. iconName: null,
  1161. title: null,
  1162. prefix: null,
  1163. transform: meaninglessTransform,
  1164. symbol: false,
  1165. mask: null,
  1166. extra: {
  1167. classes: [],
  1168. styles: {},
  1169. attributes: {}
  1170. }
  1171. };
  1172. function parseMeta(node) {
  1173. var _classParser = classParser(node),
  1174. iconName = _classParser.iconName,
  1175. prefix = _classParser.prefix,
  1176. extraClasses = _classParser.rest;
  1177. var extraStyles = styleParser(node);
  1178. var transform = transformParser(node);
  1179. var symbol = symbolParser(node);
  1180. var extraAttributes = attributesParser(node);
  1181. var mask = maskParser(node);
  1182. return {
  1183. iconName: iconName,
  1184. title: node.getAttribute('title'),
  1185. prefix: prefix,
  1186. transform: transform,
  1187. symbol: symbol,
  1188. mask: mask,
  1189. extra: {
  1190. classes: extraClasses,
  1191. styles: extraStyles,
  1192. attributes: extraAttributes
  1193. }
  1194. };
  1195. }
  1196. function MissingIcon(error) {
  1197. this.name = 'MissingIcon';
  1198. this.message = error || 'Icon unavailable';
  1199. this.stack = new Error().stack;
  1200. }
  1201. MissingIcon.prototype = Object.create(Error.prototype);
  1202. MissingIcon.prototype.constructor = MissingIcon;
  1203. var FILL = {
  1204. fill: 'currentColor'
  1205. };
  1206. var ANIMATION_BASE = {
  1207. attributeType: 'XML',
  1208. repeatCount: 'indefinite',
  1209. dur: '2s'
  1210. };
  1211. var RING = {
  1212. tag: 'path',
  1213. attributes: _objectSpread({}, FILL, {
  1214. d: 'M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z'
  1215. })
  1216. };
  1217. var OPACITY_ANIMATE = _objectSpread({}, ANIMATION_BASE, {
  1218. attributeName: 'opacity'
  1219. });
  1220. var DOT = {
  1221. tag: 'circle',
  1222. attributes: _objectSpread({}, FILL, {
  1223. cx: '256',
  1224. cy: '364',
  1225. r: '28'
  1226. }),
  1227. children: [{
  1228. tag: 'animate',
  1229. attributes: _objectSpread({}, ANIMATION_BASE, {
  1230. attributeName: 'r',
  1231. values: '28;14;28;28;14;28;'
  1232. })
  1233. }, {
  1234. tag: 'animate',
  1235. attributes: _objectSpread({}, OPACITY_ANIMATE, {
  1236. values: '1;0;1;1;0;1;'
  1237. })
  1238. }]
  1239. };
  1240. var QUESTION = {
  1241. tag: 'path',
  1242. attributes: _objectSpread({}, FILL, {
  1243. opacity: '1',
  1244. d: 'M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z'
  1245. }),
  1246. children: [{
  1247. tag: 'animate',
  1248. attributes: _objectSpread({}, OPACITY_ANIMATE, {
  1249. values: '1;0;0;0;0;1;'
  1250. })
  1251. }]
  1252. };
  1253. var EXCLAMATION = {
  1254. tag: 'path',
  1255. attributes: _objectSpread({}, FILL, {
  1256. opacity: '0',
  1257. d: 'M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z'
  1258. }),
  1259. children: [{
  1260. tag: 'animate',
  1261. attributes: _objectSpread({}, OPACITY_ANIMATE, {
  1262. values: '0;0;1;1;0;0;'
  1263. })
  1264. }]
  1265. };
  1266. var missing = {
  1267. tag: 'g',
  1268. children: [RING, DOT, QUESTION, EXCLAMATION]
  1269. };
  1270. var styles$2 = namespace.styles;
  1271. var LAYERS_TEXT_CLASSNAME = 'fa-layers-text';
  1272. var FONT_FAMILY_PATTERN = /Font Awesome 5 (Solid|Regular|Light|Brands|Free|Pro)/;
  1273. var STYLE_TO_PREFIX = {
  1274. 'Solid': 'fas',
  1275. 'Regular': 'far',
  1276. 'Light': 'fal',
  1277. 'Brands': 'fab'
  1278. };
  1279. var FONT_WEIGHT_TO_PREFIX = {
  1280. '900': 'fas',
  1281. '400': 'far',
  1282. '300': 'fal'
  1283. };
  1284. function findIcon(iconName, prefix) {
  1285. var val = {
  1286. found: false,
  1287. width: 512,
  1288. height: 512,
  1289. icon: missing
  1290. };
  1291. if (iconName && prefix && styles$2[prefix] && styles$2[prefix][iconName]) {
  1292. var icon = styles$2[prefix][iconName];
  1293. var width = icon[0];
  1294. var height = icon[1];
  1295. var vectorData = icon.slice(4);
  1296. val = {
  1297. found: true,
  1298. width: width,
  1299. height: height,
  1300. icon: {
  1301. tag: 'path',
  1302. attributes: {
  1303. fill: 'currentColor',
  1304. d: vectorData[0]
  1305. }
  1306. }
  1307. };
  1308. } else if (iconName && prefix && !config.showMissingIcons) {
  1309. throw new MissingIcon("Icon is missing for prefix ".concat(prefix, " with icon name ").concat(iconName));
  1310. }
  1311. return val;
  1312. }
  1313. function generateSvgReplacementMutation(node, nodeMeta) {
  1314. var iconName = nodeMeta.iconName,
  1315. title = nodeMeta.title,
  1316. prefix = nodeMeta.prefix,
  1317. transform = nodeMeta.transform,
  1318. symbol = nodeMeta.symbol,
  1319. mask = nodeMeta.mask,
  1320. extra = nodeMeta.extra;
  1321. return [node, makeInlineSvgAbstract({
  1322. icons: {
  1323. main: findIcon(iconName, prefix),
  1324. mask: findIcon(mask.iconName, mask.prefix)
  1325. },
  1326. prefix: prefix,
  1327. iconName: iconName,
  1328. transform: transform,
  1329. symbol: symbol,
  1330. mask: mask,
  1331. title: title,
  1332. extra: extra,
  1333. watchable: true
  1334. })];
  1335. }
  1336. function generateLayersText(node, nodeMeta) {
  1337. var title = nodeMeta.title,
  1338. transform = nodeMeta.transform,
  1339. extra = nodeMeta.extra;
  1340. var width = null;
  1341. var height = null;
  1342. if (IS_IE) {
  1343. var computedFontSize = parseInt(getComputedStyle(node).fontSize, 10);
  1344. var boundingClientRect = node.getBoundingClientRect();
  1345. width = boundingClientRect.width / computedFontSize;
  1346. height = boundingClientRect.height / computedFontSize;
  1347. }
  1348. if (config.autoA11y && !title) {
  1349. extra.attributes['aria-hidden'] = 'true';
  1350. }
  1351. return [node, makeLayersTextAbstract({
  1352. content: node.innerHTML,
  1353. width: width,
  1354. height: height,
  1355. transform: transform,
  1356. title: title,
  1357. extra: extra,
  1358. watchable: true
  1359. })];
  1360. }
  1361. function generateMutation(node) {
  1362. var nodeMeta = parseMeta(node);
  1363. if (~nodeMeta.extra.classes.indexOf(LAYERS_TEXT_CLASSNAME)) {
  1364. return generateLayersText(node, nodeMeta);
  1365. } else {
  1366. return generateSvgReplacementMutation(node, nodeMeta);
  1367. }
  1368. }
  1369. function searchPseudoElements(root) {
  1370. if (!IS_DOM) return;
  1371. var end = perf.begin('searchPseudoElements');
  1372. disableObservation(function () {
  1373. toArray(root.querySelectorAll('*')).filter(function (n) {
  1374. return n.parentNode !== document.head && !~TAGNAMES_TO_SKIP_FOR_PSEUDOELEMENTS.indexOf(n.tagName.toUpperCase()) && !n.getAttribute(DATA_FA_PSEUDO_ELEMENT) && (!n.parentNode || n.parentNode.tagName !== 'svg');
  1375. }).forEach(function (node) {
  1376. [':before', ':after'].forEach(function (pos) {
  1377. var children = toArray(node.children);
  1378. var alreadyProcessedPseudoElement = children.filter(function (c) {
  1379. return c.getAttribute(DATA_FA_PSEUDO_ELEMENT) === pos;
  1380. })[0];
  1381. var styles = WINDOW.getComputedStyle(node, pos);
  1382. var fontFamily = styles.getPropertyValue('font-family').match(FONT_FAMILY_PATTERN);
  1383. var fontWeight = styles.getPropertyValue('font-weight');
  1384. if (alreadyProcessedPseudoElement && !fontFamily) {
  1385. // If we've already processed it but the current computed style does not result in a font-family,
  1386. // that probably means that a class name that was previously present to make the icon has been
  1387. // removed. So we now should delete the icon.
  1388. node.removeChild(alreadyProcessedPseudoElement);
  1389. } else if (fontFamily) {
  1390. var content = styles.getPropertyValue('content');
  1391. var prefix = ~['Light', 'Regular', 'Solid', 'Brands'].indexOf(fontFamily[1]) ? STYLE_TO_PREFIX[fontFamily[1]] : FONT_WEIGHT_TO_PREFIX[fontWeight];
  1392. var iconName = byUnicode(prefix, toHex(content.length === 3 ? content.substr(1, 1) : content)); // Only convert the pseudo element in this :before/:after position into an icon if we haven't
  1393. // already done so with the same prefix and iconName
  1394. if (!alreadyProcessedPseudoElement || alreadyProcessedPseudoElement.getAttribute(DATA_PREFIX) !== prefix || alreadyProcessedPseudoElement.getAttribute(DATA_ICON) !== iconName) {
  1395. if (alreadyProcessedPseudoElement) {
  1396. // Delete the old one, since we're replacing it with a new one
  1397. node.removeChild(alreadyProcessedPseudoElement);
  1398. }
  1399. var extra = blankMeta.extra;
  1400. extra.attributes[DATA_FA_PSEUDO_ELEMENT] = pos;
  1401. var abstract = makeInlineSvgAbstract(_objectSpread({}, blankMeta, {
  1402. icons: {
  1403. main: findIcon(iconName, prefix),
  1404. mask: emptyCanonicalIcon()
  1405. },
  1406. prefix: prefix,
  1407. iconName: iconName,
  1408. extra: extra,
  1409. watchable: true
  1410. }));
  1411. var element = DOCUMENT.createElement('svg');
  1412. if (pos === ':before') {
  1413. node.insertBefore(element, node.firstChild);
  1414. } else {
  1415. node.appendChild(element);
  1416. }
  1417. element.outerHTML = abstract.map(function (a) {
  1418. return toHtml(a);
  1419. }).join('\n');
  1420. }
  1421. }
  1422. });
  1423. });
  1424. });
  1425. end();
  1426. }
  1427. function onTree(root) {
  1428. var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
  1429. if (!IS_DOM) return;
  1430. var htmlClassList = DOCUMENT.documentElement.classList;
  1431. var hclAdd = function hclAdd(suffix) {
  1432. return htmlClassList.add("".concat(HTML_CLASS_I2SVG_BASE_CLASS, "-").concat(suffix));
  1433. };
  1434. var hclRemove = function hclRemove(suffix) {
  1435. return htmlClassList.remove("".concat(HTML_CLASS_I2SVG_BASE_CLASS, "-").concat(suffix));
  1436. };
  1437. var prefixes = Object.keys(styles$2);
  1438. var prefixesDomQuery = [".".concat(LAYERS_TEXT_CLASSNAME, ":not([").concat(DATA_FA_I2SVG, "])")].concat(prefixes.map(function (p) {
  1439. return ".".concat(p, ":not([").concat(DATA_FA_I2SVG, "])");
  1440. })).join(', ');
  1441. if (prefixesDomQuery.length === 0) {
  1442. return;
  1443. }
  1444. var candidates = toArray(root.querySelectorAll(prefixesDomQuery));
  1445. if (candidates.length > 0) {
  1446. hclAdd('pending');
  1447. hclRemove('complete');
  1448. } else {
  1449. return;
  1450. }
  1451. var mark = perf.begin('onTree');
  1452. var mutations = candidates.reduce(function (acc, node) {
  1453. try {
  1454. var mutation = generateMutation(node);
  1455. if (mutation) {
  1456. acc.push(mutation);
  1457. }
  1458. } catch (e) {
  1459. if (!PRODUCTION) {
  1460. if (e instanceof MissingIcon) {
  1461. console.error(e);
  1462. }
  1463. }
  1464. }
  1465. return acc;
  1466. }, []);
  1467. mark();
  1468. perform(mutations, function () {
  1469. hclAdd('active');
  1470. hclAdd('complete');
  1471. hclRemove('pending');
  1472. if (typeof callback === 'function') callback();
  1473. });
  1474. }
  1475. function onNode(node) {
  1476. var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
  1477. var mutation = generateMutation(node);
  1478. if (mutation) {
  1479. perform([mutation], callback);
  1480. }
  1481. }
  1482. var baseStyles = "svg:not(:root).svg-inline--fa {\n overflow: visible;\n}\n\n.svg-inline--fa {\n display: inline-block;\n font-size: inherit;\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.225em;\n}\n.svg-inline--fa.fa-w-1 {\n width: 0.0625em;\n}\n.svg-inline--fa.fa-w-2 {\n width: 0.125em;\n}\n.svg-inline--fa.fa-w-3 {\n width: 0.1875em;\n}\n.svg-inline--fa.fa-w-4 {\n width: 0.25em;\n}\n.svg-inline--fa.fa-w-5 {\n width: 0.3125em;\n}\n.svg-inline--fa.fa-w-6 {\n width: 0.375em;\n}\n.svg-inline--fa.fa-w-7 {\n width: 0.4375em;\n}\n.svg-inline--fa.fa-w-8 {\n width: 0.5em;\n}\n.svg-inline--fa.fa-w-9 {\n width: 0.5625em;\n}\n.svg-inline--fa.fa-w-10 {\n width: 0.625em;\n}\n.svg-inline--fa.fa-w-11 {\n width: 0.6875em;\n}\n.svg-inline--fa.fa-w-12 {\n width: 0.75em;\n}\n.svg-inline--fa.fa-w-13 {\n width: 0.8125em;\n}\n.svg-inline--fa.fa-w-14 {\n width: 0.875em;\n}\n.svg-inline--fa.fa-w-15 {\n width: 0.9375em;\n}\n.svg-inline--fa.fa-w-16 {\n width: 1em;\n}\n.svg-inline--fa.fa-w-17 {\n width: 1.0625em;\n}\n.svg-inline--fa.fa-w-18 {\n width: 1.125em;\n}\n.svg-inline--fa.fa-w-19 {\n width: 1.1875em;\n}\n.svg-inline--fa.fa-w-20 {\n width: 1.25em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-border {\n height: 1.5em;\n}\n.svg-inline--fa.fa-li {\n width: 2em;\n}\n.svg-inline--fa.fa-fw {\n width: 1.25em;\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: #ff253a;\n border-radius: 1em;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: #fff;\n height: 1.5em;\n line-height: 1;\n max-width: 5em;\n min-width: 1.5em;\n overflow: hidden;\n padding: 0.25em;\n right: 0;\n text-overflow: ellipsis;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: 0;\n right: 0;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: 0;\n left: 0;\n right: auto;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n right: 0;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: 0;\n right: auto;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-lg {\n font-size: 1.3333333333em;\n line-height: 0.75em;\n vertical-align: -0.0667em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: 2.5em;\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: -2em;\n position: absolute;\n text-align: center;\n width: 2em;\n line-height: inherit;\n}\n\n.fa-border {\n border: solid 0.08em #eee;\n border-radius: 0.1em;\n padding: 0.2em 0.25em 0.15em;\n}\n\n.fa-pull-left {\n float: left;\n}\n\n.fa-pull-right {\n float: right;\n}\n\n.fa.fa-pull-left,\n.fas.fa-pull-left,\n.far.fa-pull-left,\n.fal.fa-pull-left,\n.fab.fa-pull-left {\n margin-right: 0.3em;\n}\n.fa.fa-pull-right,\n.fas.fa-pull-right,\n.far.fa-pull-right,\n.fal.fa-pull-right,\n.fab.fa-pull-right {\n margin-left: 0.3em;\n}\n\n.fa-spin {\n -webkit-animation: fa-spin 2s infinite linear;\n animation: fa-spin 2s infinite linear;\n}\n\n.fa-pulse {\n -webkit-animation: fa-spin 1s infinite steps(8);\n animation: fa-spin 1s infinite steps(8);\n}\n\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -ms-filter: \"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)\";\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -ms-filter: \"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)\";\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -ms-filter: \"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)\";\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -ms-filter: \"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)\";\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -ms-filter: \"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)\";\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-horizontal.fa-flip-vertical {\n -ms-filter: \"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)\";\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n:root .fa-rotate-90,\n:root .fa-rotate-180,\n:root .fa-rotate-270,\n:root .fa-flip-horizontal,\n:root .fa-flip-vertical {\n -webkit-filter: none;\n filter: none;\n}\n\n.fa-stack {\n display: inline-block;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: #fff;\n}\n\n.sr-only {\n border: 0;\n clip: rect(0, 0, 0, 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n}\n\n.sr-only-focusable:active, .sr-only-focusable:focus {\n clip: auto;\n height: auto;\n margin: 0;\n overflow: visible;\n position: static;\n width: auto;\n}";
  1483. function css () {
  1484. var dfp = DEFAULT_FAMILY_PREFIX;
  1485. var drc = DEFAULT_REPLACEMENT_CLASS;
  1486. var fp = config.familyPrefix;
  1487. var rc = config.replacementClass;
  1488. var s = baseStyles;
  1489. if (fp !== dfp || rc !== drc) {
  1490. var dPatt = new RegExp("\\.".concat(dfp, "\\-"), 'g');
  1491. var rPatt = new RegExp("\\.".concat(drc), 'g');
  1492. s = s.replace(dPatt, ".".concat(fp, "-")).replace(rPatt, ".".concat(rc));
  1493. }
  1494. return s;
  1495. }
  1496. function define(prefix, icons) {
  1497. var normalized = Object.keys(icons).reduce(function (acc, iconName) {
  1498. var icon = icons[iconName];
  1499. var expanded = !!icon.icon;
  1500. if (expanded) {
  1501. acc[icon.iconName] = icon.icon;
  1502. } else {
  1503. acc[iconName] = icon;
  1504. }
  1505. return acc;
  1506. }, {});
  1507. if (typeof namespace.hooks.addPack === 'function') {
  1508. namespace.hooks.addPack(prefix, normalized);
  1509. } else {
  1510. namespace.styles[prefix] = _objectSpread({}, namespace.styles[prefix] || {}, normalized);
  1511. }
  1512. /**
  1513. * Font Awesome 4 used the prefix of `fa` for all icons. With the introduction
  1514. * of new styles we needed to differentiate between them. Prefix `fa` is now an alias
  1515. * for `fas` so we'll easy the upgrade process for our users by automatically defining
  1516. * this as well.
  1517. */
  1518. if (prefix === 'fas') {
  1519. define('fa', icons);
  1520. }
  1521. }
  1522. var Library =
  1523. /*#__PURE__*/
  1524. function () {
  1525. function Library() {
  1526. _classCallCheck(this, Library);
  1527. this.definitions = {};
  1528. }
  1529. _createClass(Library, [{
  1530. key: "add",
  1531. value: function add() {
  1532. var _this = this;
  1533. for (var _len = arguments.length, definitions = new Array(_len), _key = 0; _key < _len; _key++) {
  1534. definitions[_key] = arguments[_key];
  1535. }
  1536. var additions = definitions.reduce(this._pullDefinitions, {});
  1537. Object.keys(additions).forEach(function (key) {
  1538. _this.definitions[key] = _objectSpread({}, _this.definitions[key] || {}, additions[key]);
  1539. define(key, additions[key]);
  1540. build();
  1541. });
  1542. }
  1543. }, {
  1544. key: "reset",
  1545. value: function reset() {
  1546. this.definitions = {};
  1547. }
  1548. }, {
  1549. key: "_pullDefinitions",
  1550. value: function _pullDefinitions(additions, definition) {
  1551. var normalized = definition.prefix && definition.iconName && definition.icon ? {
  1552. 0: definition
  1553. } : definition;
  1554. Object.keys(normalized).map(function (key) {
  1555. var _normalized$key = normalized[key],
  1556. prefix = _normalized$key.prefix,
  1557. iconName = _normalized$key.iconName,
  1558. icon = _normalized$key.icon;
  1559. if (!additions[prefix]) additions[prefix] = {};
  1560. additions[prefix][iconName] = icon;
  1561. });
  1562. return additions;
  1563. }
  1564. }]);
  1565. return Library;
  1566. }();
  1567. function prepIcon(icon) {
  1568. var width = icon[0];
  1569. var height = icon[1];
  1570. var vectorData = icon.slice(4);
  1571. return {
  1572. found: true,
  1573. width: width,
  1574. height: height,
  1575. icon: {
  1576. tag: 'path',
  1577. attributes: {
  1578. fill: 'currentColor',
  1579. d: vectorData[0]
  1580. }
  1581. }
  1582. };
  1583. }
  1584. function ensureCss() {
  1585. if (config.autoAddCss && !_cssInserted) {
  1586. insertCss(css());
  1587. _cssInserted = true;
  1588. }
  1589. }
  1590. function apiObject(val, abstractCreator) {
  1591. Object.defineProperty(val, 'abstract', {
  1592. get: abstractCreator
  1593. });
  1594. Object.defineProperty(val, 'html', {
  1595. get: function get() {
  1596. return val.abstract.map(function (a) {
  1597. return toHtml(a);
  1598. });
  1599. }
  1600. });
  1601. Object.defineProperty(val, 'node', {
  1602. get: function get() {
  1603. if (!IS_DOM) return;
  1604. var container = DOCUMENT.createElement('div');
  1605. container.innerHTML = val.html;
  1606. return container.children;
  1607. }
  1608. });
  1609. return val;
  1610. }
  1611. function findIconDefinition(params) {
  1612. var _params$prefix = params.prefix,
  1613. prefix = _params$prefix === void 0 ? 'fa' : _params$prefix,
  1614. iconName = params.iconName;
  1615. if (!iconName) return;
  1616. return iconFromMapping(library.definitions, prefix, iconName) || iconFromMapping(namespace.styles, prefix, iconName);
  1617. }
  1618. function resolveIcons(next) {
  1619. return function (maybeIconDefinition) {
  1620. var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  1621. var iconDefinition = (maybeIconDefinition || {}).icon ? maybeIconDefinition : findIconDefinition(maybeIconDefinition || {});
  1622. var mask = params.mask;
  1623. if (mask) {
  1624. mask = (mask || {}).icon ? mask : findIconDefinition(mask || {});
  1625. }
  1626. return next(iconDefinition, _objectSpread({}, params, {
  1627. mask: mask
  1628. }));
  1629. };
  1630. }
  1631. var library = new Library();
  1632. var noAuto = function noAuto() {
  1633. config.autoReplaceSvg = false;
  1634. config.observeMutations = false;
  1635. disconnect();
  1636. };
  1637. var _cssInserted = false;
  1638. var dom = {
  1639. i2svg: function i2svg() {
  1640. var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  1641. if (IS_DOM) {
  1642. ensureCss();
  1643. var _params$node = params.node,
  1644. node = _params$node === void 0 ? DOCUMENT : _params$node,
  1645. _params$callback = params.callback,
  1646. callback = _params$callback === void 0 ? function () {} : _params$callback;
  1647. if (config.searchPseudoElements) {
  1648. searchPseudoElements(node);
  1649. }
  1650. onTree(node, callback);
  1651. }
  1652. },
  1653. css: css,
  1654. insertCss: function insertCss$$1() {
  1655. if (!_cssInserted) {
  1656. insertCss(css());
  1657. _cssInserted = true;
  1658. }
  1659. },
  1660. watch: function watch() {
  1661. var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  1662. var autoReplaceSvgRoot = params.autoReplaceSvgRoot,
  1663. observeMutationsRoot = params.observeMutationsRoot;
  1664. if (config.autoReplaceSvg === false) {
  1665. config.autoReplaceSvg = true;
  1666. }
  1667. config.observeMutations = true;
  1668. domready(function () {
  1669. autoReplace({
  1670. autoReplaceSvgRoot: autoReplaceSvgRoot
  1671. });
  1672. observe({
  1673. treeCallback: onTree,
  1674. nodeCallback: onNode,
  1675. pseudoElementsCallback: searchPseudoElements,
  1676. observeMutationsRoot: observeMutationsRoot
  1677. });
  1678. });
  1679. }
  1680. };
  1681. var parse = {
  1682. transform: function transform(transformString) {
  1683. return parseTransformString(transformString);
  1684. }
  1685. };
  1686. var icon = resolveIcons(function (iconDefinition) {
  1687. var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  1688. var _params$transform = params.transform,
  1689. transform = _params$transform === void 0 ? meaninglessTransform : _params$transform,
  1690. _params$symbol = params.symbol,
  1691. symbol = _params$symbol === void 0 ? false : _params$symbol,
  1692. _params$mask = params.mask,
  1693. mask = _params$mask === void 0 ? null : _params$mask,
  1694. _params$title = params.title,
  1695. title = _params$title === void 0 ? null : _params$title,
  1696. _params$classes = params.classes,
  1697. classes = _params$classes === void 0 ? [] : _params$classes,
  1698. _params$attributes = params.attributes,
  1699. attributes = _params$attributes === void 0 ? {} : _params$attributes,
  1700. _params$styles = params.styles,
  1701. styles = _params$styles === void 0 ? {} : _params$styles;
  1702. if (!iconDefinition) return;
  1703. var prefix = iconDefinition.prefix,
  1704. iconName = iconDefinition.iconName,
  1705. icon = iconDefinition.icon;
  1706. return apiObject(_objectSpread({
  1707. type: 'icon'
  1708. }, iconDefinition), function () {
  1709. ensureCss();
  1710. if (config.autoA11y) {
  1711. if (title) {
  1712. attributes['aria-labelledby'] = "".concat(config.replacementClass, "-title-").concat(nextUniqueId());
  1713. } else {
  1714. attributes['aria-hidden'] = 'true';
  1715. }
  1716. }
  1717. return makeInlineSvgAbstract({
  1718. icons: {
  1719. main: prepIcon(icon),
  1720. mask: mask ? prepIcon(mask.icon) : {
  1721. found: false,
  1722. width: null,
  1723. height: null,
  1724. icon: {}
  1725. }
  1726. },
  1727. prefix: prefix,
  1728. iconName: iconName,
  1729. transform: _objectSpread({}, meaninglessTransform, transform),
  1730. symbol: symbol,
  1731. title: title,
  1732. extra: {
  1733. attributes: attributes,
  1734. styles: styles,
  1735. classes: classes
  1736. }
  1737. });
  1738. });
  1739. });
  1740. var text = function text(content) {
  1741. var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  1742. var _params$transform2 = params.transform,
  1743. transform = _params$transform2 === void 0 ? meaninglessTransform : _params$transform2,
  1744. _params$title2 = params.title,
  1745. title = _params$title2 === void 0 ? null : _params$title2,
  1746. _params$classes2 = params.classes,
  1747. classes = _params$classes2 === void 0 ? [] : _params$classes2,
  1748. _params$attributes2 = params.attributes,
  1749. attributes = _params$attributes2 === void 0 ? {} : _params$attributes2,
  1750. _params$styles2 = params.styles,
  1751. styles = _params$styles2 === void 0 ? {} : _params$styles2;
  1752. return apiObject({
  1753. type: 'text',
  1754. content: content
  1755. }, function () {
  1756. ensureCss();
  1757. return makeLayersTextAbstract({
  1758. content: content,
  1759. transform: _objectSpread({}, meaninglessTransform, transform),
  1760. title: title,
  1761. extra: {
  1762. attributes: attributes,
  1763. styles: styles,
  1764. classes: ["".concat(config.familyPrefix, "-layers-text")].concat(_toConsumableArray(classes))
  1765. }
  1766. });
  1767. });
  1768. };
  1769. var counter = function counter(content) {
  1770. var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  1771. var _params$title3 = params.title,
  1772. title = _params$title3 === void 0 ? null : _params$title3,
  1773. _params$classes3 = params.classes,
  1774. classes = _params$classes3 === void 0 ? [] : _params$classes3,
  1775. _params$attributes3 = params.attributes,
  1776. attributes = _params$attributes3 === void 0 ? {} : _params$attributes3,
  1777. _params$styles3 = params.styles,
  1778. styles = _params$styles3 === void 0 ? {} : _params$styles3;
  1779. return apiObject({
  1780. type: 'counter',
  1781. content: content
  1782. }, function () {
  1783. ensureCss();
  1784. return makeLayersCounterAbstract({
  1785. content: content.toString(),
  1786. title: title,
  1787. extra: {
  1788. attributes: attributes,
  1789. styles: styles,
  1790. classes: ["".concat(config.familyPrefix, "-layers-counter")].concat(_toConsumableArray(classes))
  1791. }
  1792. });
  1793. });
  1794. };
  1795. var layer = function layer(assembler) {
  1796. return apiObject({
  1797. type: 'layer'
  1798. }, function () {
  1799. ensureCss();
  1800. var children = [];
  1801. assembler(function (args) {
  1802. Array.isArray(args) ? args.map(function (a) {
  1803. children = children.concat(a.abstract);
  1804. }) : children = children.concat(args.abstract);
  1805. });
  1806. return [{
  1807. tag: 'span',
  1808. attributes: {
  1809. class: "".concat(config.familyPrefix, "-layers")
  1810. },
  1811. children: children
  1812. }];
  1813. });
  1814. };
  1815. var api = {
  1816. noAuto: noAuto,
  1817. config: config,
  1818. dom: dom,
  1819. library: library,
  1820. parse: parse,
  1821. findIconDefinition: findIconDefinition,
  1822. icon: icon,
  1823. text: text,
  1824. counter: counter,
  1825. layer: layer,
  1826. toHtml: toHtml
  1827. };
  1828. var autoReplace = function autoReplace() {
  1829. var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  1830. var _params$autoReplaceSv = params.autoReplaceSvgRoot,
  1831. autoReplaceSvgRoot = _params$autoReplaceSv === void 0 ? DOCUMENT : _params$autoReplaceSv;
  1832. if (Object.keys(namespace.styles).length > 0 && IS_DOM && config.autoReplaceSvg) api.dom.i2svg({
  1833. node: autoReplaceSvgRoot
  1834. });
  1835. };
  1836. /***/ }),
  1837. /***/ "../../node_modules/@fortawesome/free-solid-svg-icons/index.es.js":
  1838. /*!********************************************************************************************!*\
  1839. !*** C:/Dev/Babylon/Babylon.js/node_modules/@fortawesome/free-solid-svg-icons/index.es.js ***!
  1840. \********************************************************************************************/
  1841. /*! exports provided: fas, prefix, faAd, faAddressBook, faAddressCard, faAdjust, faAirFreshener, faAlignCenter, faAlignJustify, faAlignLeft, faAlignRight, faAllergies, faAmbulance, faAmericanSignLanguageInterpreting, faAnchor, faAngleDoubleDown, faAngleDoubleLeft, faAngleDoubleRight, faAngleDoubleUp, faAngleDown, faAngleLeft, faAngleRight, faAngleUp, faAngry, faAnkh, faAppleAlt, faArchive, faArchway, faArrowAltCircleDown, faArrowAltCircleLeft, faArrowAltCircleRight, faArrowAltCircleUp, faArrowCircleDown, faArrowCircleLeft, faArrowCircleRight, faArrowCircleUp, faArrowDown, faArrowLeft, faArrowRight, faArrowUp, faArrowsAlt, faArrowsAltH, faArrowsAltV, faAssistiveListeningSystems, faAsterisk, faAt, faAtlas, faAtom, faAudioDescription, faAward, faBackspace, faBackward, faBalanceScale, faBan, faBandAid, faBarcode, faBars, faBaseballBall, faBasketballBall, faBath, faBatteryEmpty, faBatteryFull, faBatteryHalf, faBatteryQuarter, faBatteryThreeQuarters, faBed, faBeer, faBell, faBellSlash, faBezierCurve, faBible, faBicycle, faBinoculars, faBirthdayCake, faBlender, faBlenderPhone, faBlind, faBold, faBolt, faBomb, faBone, faBong, faBook, faBookDead, faBookOpen, faBookReader, faBookmark, faBowlingBall, faBox, faBoxOpen, faBoxes, faBraille, faBrain, faBriefcase, faBriefcaseMedical, faBroadcastTower, faBroom, faBrush, faBug, faBuilding, faBullhorn, faBullseye, faBurn, faBus, faBusAlt, faBusinessTime, faCalculator, faCalendar, faCalendarAlt, faCalendarCheck, faCalendarMinus, faCalendarPlus, faCalendarTimes, faCamera, faCameraRetro, faCampground, faCannabis, faCapsules, faCar, faCarAlt, faCarBattery, faCarCrash, faCarSide, faCaretDown, faCaretLeft, faCaretRight, faCaretSquareDown, faCaretSquareLeft, faCaretSquareRight, faCaretSquareUp, faCaretUp, faCartArrowDown, faCartPlus, faCat, faCertificate, faChair, faChalkboard, faChalkboardTeacher, faChargingStation, faChartArea, faChartBar, faChartLine, faChartPie, faCheck, faCheckCircle, faCheckDouble, faCheckSquare, faChess, faChessBishop, faChessBoard, faChessKing, faChessKnight, faChessPawn, faChessQueen, faChessRook, faChevronCircleDown, faChevronCircleLeft, faChevronCircleRight, faChevronCircleUp, faChevronDown, faChevronLeft, faChevronRight, faChevronUp, faChild, faChurch, faCircle, faCircleNotch, faCity, faClipboard, faClipboardCheck, faClipboardList, faClock, faClone, faClosedCaptioning, faCloud, faCloudDownloadAlt, faCloudMoon, faCloudSun, faCloudUploadAlt, faCocktail, faCode, faCodeBranch, faCoffee, faCog, faCogs, faCoins, faColumns, faComment, faCommentAlt, faCommentDollar, faCommentDots, faCommentSlash, faComments, faCommentsDollar, faCompactDisc, faCompass, faCompress, faConciergeBell, faCookie, faCookieBite, faCopy, faCopyright, faCouch, faCreditCard, faCrop, faCropAlt, faCross, faCrosshairs, faCrow, faCrown, faCube, faCubes, faCut, faDatabase, faDeaf, faDesktop, faDharmachakra, faDiagnoses, faDice, faDiceD20, faDiceD6, faDiceFive, faDiceFour, faDiceOne, faDiceSix, faDiceThree, faDiceTwo, faDigitalTachograph, faDirections, faDivide, faDizzy, faDna, faDog, faDollarSign, faDolly, faDollyFlatbed, faDonate, faDoorClosed, faDoorOpen, faDotCircle, faDove, faDownload, faDraftingCompass, faDragon, faDrawPolygon, faDrum, faDrumSteelpan, faDrumstickBite, faDumbbell, faDungeon, faEdit, faEject, faEllipsisH, faEllipsisV, faEnvelope, faEnvelopeOpen, faEnvelopeOpenText, faEnvelopeSquare, faEquals, faEraser, faEuroSign, faExchangeAlt, faExclamation, faExclamationCircle, faExclamationTriangle, faExpand, faExpandArrowsAlt, faExternalLinkAlt, faExternalLinkSquareAlt, faEye, faEyeDropper, faEyeSlash, faFastBackward, faFastForward, faFax, faFeather, faFeatherAlt, faFemale, faFighterJet, faFile, faFileAlt, faFileArchive, faFileAudio, faFileCode, faFileContract, faFileCsv, faFileDownload, faFileExcel, faFileExport, faFileImage, faFileImport, faFileInvoice, faFileInvoiceDollar, faFileMedical, faFileMedicalAlt, faFilePdf, faFilePowerpoint, faFilePrescription, faFileSignature, faFileUpload, faFileVideo, faFileWord, faFill, faFillDrip, faFilm, faFilter, faFingerprint, faFire, faFireExtinguisher, faFirstAid, faFish, faFistRaised, faFlag, faFlagCheckered, faFlask, faFlushed, faFolder, faFolderMinus, faFolderOpen, faFolderPlus, faFont, faFontAwesomeLogoFull, faFootballBall, faForward, faFrog, faFrown, faFrownOpen, faFunnelDollar, faFutbol, faGamepad, faGasPump, faGavel, faGem, faGenderless, faGhost, faGift, faGlassMartini, faGlassMartiniAlt, faGlasses, faGlobe, faGlobeAfrica, faGlobeAmericas, faGlobeAsia, faGolfBall, faGopuram, faGraduationCap, faGreaterThan, faGreaterThanEqual, faGrimace, faGrin, faGrinAlt, faGrinBeam, faGrinBeamSweat, faGrinHearts, faGrinSquint, faGrinSquintTears, faGrinStars, faGrinTears, faGrinTongue, faGrinTongueSquint, faGrinTongueWink, faGrinWink, faGripHorizontal, faGripVertical, faHSquare, faHammer, faHamsa, faHandHolding, faHandHoldingHeart, faHandHoldingUsd, faHandLizard, faHandPaper, faHandPeace, faHandPointDown, faHandPointLeft, faHandPointRight, faHandPointUp, faHandPointer, faHandRock, faHandScissors, faHandSpock, faHands, faHandsHelping, faHandshake, faHanukiah, faHashtag, faHatWizard, faHaykal, faHdd, faHeading, faHeadphones, faHeadphonesAlt, faHeadset, faHeart, faHeartbeat, faHelicopter, faHighlighter, faHiking, faHippo, faHistory, faHockeyPuck, faHome, faHorse, faHospital, faHospitalAlt, faHospitalSymbol, faHotTub, faHotel, faHourglass, faHourglassEnd, faHourglassHalf, faHourglassStart, faHouseDamage, faHryvnia, faICursor, faIdBadge, faIdCard, faIdCardAlt, faImage, faImages, faInbox, faIndent, faIndustry, faInfinity, faInfo, faInfoCircle, faItalic, faJedi, faJoint, faJournalWhills, faKaaba, faKey, faKeyboard, faKhanda, faKiss, faKissBeam, faKissWinkHeart, faKiwiBird, faLandmark, faLanguage, faLaptop, faLaptopCode, faLaugh, faLaughBeam, faLaughSquint, faLaughWink, faLayerGroup, faLeaf, faLemon, faLessThan, faLessThanEqual, faLevelDownAlt, faLevelUpAlt, faLifeRing, faLightbulb, faLink, faLiraSign, faList, faListAlt, faListOl, faListUl, faLocationArrow, faLock, faLockOpen, faLongArrowAltDown, faLongArrowAltLeft, faLongArrowAltRight, faLongArrowAltUp, faLowVision, faLuggageCart, faMagic, faMagnet, faMailBulk, faMale, faMap, faMapMarked, faMapMarkedAlt, faMapMarker, faMapMarkerAlt, faMapPin, faMapSigns, faMarker, faMars, faMarsDouble, faMarsStroke, faMarsStrokeH, faMarsStrokeV, faMask, faMedal, faMedkit, faMeh, faMehBlank, faMehRollingEyes, faMemory, faMenorah, faMercury, faMicrochip, faMicrophone, faMicrophoneAlt, faMicrophoneAltSlash, faMicrophoneSlash, faMicroscope, faMinus, faMinusCircle, faMinusSquare, faMobile, faMobileAlt, faMoneyBill, faMoneyBillAlt, faMoneyBillWave, faMoneyBillWaveAlt, faMoneyCheck, faMoneyCheckAlt, faMonument, faMoon, faMortarPestle, faMosque, faMotorcycle, faMountain, faMousePointer, faMusic, faNetworkWired, faNeuter, faNewspaper, faNotEqual, faNotesMedical, faObjectGroup, faObjectUngroup, faOilCan, faOm, faOtter, faOutdent, faPaintBrush, faPaintRoller, faPalette, faPallet, faPaperPlane, faPaperclip, faParachuteBox, faParagraph, faParking, faPassport, faPastafarianism, faPaste, faPause, faPauseCircle, faPaw, faPeace, faPen, faPenAlt, faPenFancy, faPenNib, faPenSquare, faPencilAlt, faPencilRuler, faPeopleCarry, faPercent, faPercentage, faPhone, faPhoneSlash, faPhoneSquare, faPhoneVolume, faPiggyBank, faPills, faPlaceOfWorship, faPlane, faPlaneArrival, faPlaneDeparture, faPlay, faPlayCircle, faPlug, faPlus, faPlusCircle, faPlusSquare, faPodcast, faPoll, faPollH, faPoo, faPoop, faPortrait, faPoundSign, faPowerOff, faPray, faPrayingHands, faPrescription, faPrescriptionBottle, faPrescriptionBottleAlt, faPrint, faProcedures, faProjectDiagram, faPuzzlePiece, faQrcode, faQuestion, faQuestionCircle, faQuidditch, faQuoteLeft, faQuoteRight, faQuran, faRandom, faReceipt, faRecycle, faRedo, faRedoAlt, faRegistered, faReply, faReplyAll, faRetweet, faRibbon, faRing, faRoad, faRobot, faRocket, faRoute, faRss, faRssSquare, faRubleSign, faRuler, faRulerCombined, faRulerHorizontal, faRulerVertical, faRunning, faRupeeSign, faSadCry, faSadTear, faSave, faSchool, faScrewdriver, faScroll, faSearch, faSearchDollar, faSearchLocation, faSearchMinus, faSearchPlus, faSeedling, faServer, faShapes, faShare, faShareAlt, faShareAltSquare, faShareSquare, faShekelSign, faShieldAlt, faShip, faShippingFast, faShoePrints, faShoppingBag, faShoppingBasket, faShoppingCart, faShower, faShuttleVan, faSign, faSignInAlt, faSignLanguage, faSignOutAlt, faSignal, faSignature, faSitemap, faSkull, faSkullCrossbones, faSlash, faSlidersH, faSmile, faSmileBeam, faSmileWink, faSmoking, faSmokingBan, faSnowflake, faSocks, faSolarPanel, faSort, faSortAlphaDown, faSortAlphaUp, faSortAmountDown, faSortAmountUp, faSortDown, faSortNumericDown, faSortNumericUp, faSortUp, faSpa, faSpaceShuttle, faSpider, faSpinner, faSplotch, faSprayCan, faSquare, faSquareFull, faSquareRootAlt, faStamp, faStar, faStarAndCrescent, faStarHalf, faStarHalfAlt, faStarOfDavid, faStarOfLife, faStepBackward, faStepForward, faStethoscope, faStickyNote, faStop, faStopCircle, faStopwatch, faStore, faStoreAlt, faStream, faStreetView, faStrikethrough, faStroopwafel, faSubscript, faSubway, faSuitcase, faSuitcaseRolling, faSun, faSuperscript, faSurprise, faSwatchbook, faSwimmer, faSwimmingPool, faSynagogue, faSync, faSyncAlt, faSyringe, faTable, faTableTennis, faTablet, faTabletAlt, faTablets, faTachometerAlt, faTag, faTags, faTape, faTasks, faTaxi, faTeeth, faTeethOpen, faTerminal, faTextHeight, faTextWidth, faTh, faThLarge, faThList, faTheaterMasks, faThermometer, faThermometerEmpty, faThermometerFull, faThermometerHalf, faThermometerQuarter, faThermometerThreeQuarters, faThumbsDown, faThumbsUp, faThumbtack, faTicketAlt, faTimes, faTimesCircle, faTint, faTintSlash, faTired, faToggleOff, faToggleOn, faToiletPaper, faToolbox, faTooth, faTorah, faToriiGate, faTractor, faTrademark, faTrafficLight, faTrain, faTransgender, faTransgenderAlt, faTrash, faTrashAlt, faTree, faTrophy, faTruck, faTruckLoading, faTruckMonster, faTruckMoving, faTruckPickup, faTshirt, faTty, faTv, faUmbrella, faUmbrellaBeach, faUnderline, faUndo, faUndoAlt, faUniversalAccess, faUniversity, faUnlink, faUnlock, faUnlockAlt, faUpload, faUser, faUserAlt, faUserAltSlash, faUserAstronaut, faUserCheck, faUserCircle, faUserClock, faUserCog, faUserEdit, faUserFriends, faUserGraduate, faUserInjured, faUserLock, faUserMd, faUserMinus, faUserNinja, faUserPlus, faUserSecret, faUserShield, faUserSlash, faUserTag, faUserTie, faUserTimes, faUsers, faUsersCog, faUtensilSpoon, faUtensils, faVectorSquare, faVenus, faVenusDouble, faVenusMars, faVial, faVials, faVideo, faVideoSlash, faVihara, faVolleyballBall, faVolumeDown, faVolumeMute, faVolumeOff, faVolumeUp, faVrCardboard, faWalking, faWallet, faWarehouse, faWeight, faWeightHanging, faWheelchair, faWifi, faWind, faWindowClose, faWindowMaximize, faWindowMinimize, faWindowRestore, faWineBottle, faWineGlass, faWineGlassAlt, faWonSign, faWrench, faXRay, faYenSign, faYinYang */
  1842. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1843. "use strict";
  1844. __webpack_require__.r(__webpack_exports__);
  1845. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fas", function() { return _iconsCache; });
  1846. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "prefix", function() { return prefix; });
  1847. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAd", function() { return faAd; });
  1848. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAddressBook", function() { return faAddressBook; });
  1849. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAddressCard", function() { return faAddressCard; });
  1850. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAdjust", function() { return faAdjust; });
  1851. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAirFreshener", function() { return faAirFreshener; });
  1852. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAlignCenter", function() { return faAlignCenter; });
  1853. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAlignJustify", function() { return faAlignJustify; });
  1854. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAlignLeft", function() { return faAlignLeft; });
  1855. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAlignRight", function() { return faAlignRight; });
  1856. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAllergies", function() { return faAllergies; });
  1857. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAmbulance", function() { return faAmbulance; });
  1858. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAmericanSignLanguageInterpreting", function() { return faAmericanSignLanguageInterpreting; });
  1859. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAnchor", function() { return faAnchor; });
  1860. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleDoubleDown", function() { return faAngleDoubleDown; });
  1861. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleDoubleLeft", function() { return faAngleDoubleLeft; });
  1862. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleDoubleRight", function() { return faAngleDoubleRight; });
  1863. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleDoubleUp", function() { return faAngleDoubleUp; });
  1864. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleDown", function() { return faAngleDown; });
  1865. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleLeft", function() { return faAngleLeft; });
  1866. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleRight", function() { return faAngleRight; });
  1867. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleUp", function() { return faAngleUp; });
  1868. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngry", function() { return faAngry; });
  1869. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAnkh", function() { return faAnkh; });
  1870. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAppleAlt", function() { return faAppleAlt; });
  1871. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArchive", function() { return faArchive; });
  1872. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArchway", function() { return faArchway; });
  1873. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowAltCircleDown", function() { return faArrowAltCircleDown; });
  1874. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowAltCircleLeft", function() { return faArrowAltCircleLeft; });
  1875. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowAltCircleRight", function() { return faArrowAltCircleRight; });
  1876. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowAltCircleUp", function() { return faArrowAltCircleUp; });
  1877. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowCircleDown", function() { return faArrowCircleDown; });
  1878. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowCircleLeft", function() { return faArrowCircleLeft; });
  1879. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowCircleRight", function() { return faArrowCircleRight; });
  1880. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowCircleUp", function() { return faArrowCircleUp; });
  1881. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowDown", function() { return faArrowDown; });
  1882. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowLeft", function() { return faArrowLeft; });
  1883. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowRight", function() { return faArrowRight; });
  1884. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowUp", function() { return faArrowUp; });
  1885. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowsAlt", function() { return faArrowsAlt; });
  1886. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowsAltH", function() { return faArrowsAltH; });
  1887. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowsAltV", function() { return faArrowsAltV; });
  1888. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAssistiveListeningSystems", function() { return faAssistiveListeningSystems; });
  1889. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAsterisk", function() { return faAsterisk; });
  1890. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAt", function() { return faAt; });
  1891. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAtlas", function() { return faAtlas; });
  1892. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAtom", function() { return faAtom; });
  1893. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAudioDescription", function() { return faAudioDescription; });
  1894. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAward", function() { return faAward; });
  1895. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBackspace", function() { return faBackspace; });
  1896. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBackward", function() { return faBackward; });
  1897. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBalanceScale", function() { return faBalanceScale; });
  1898. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBan", function() { return faBan; });
  1899. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBandAid", function() { return faBandAid; });
  1900. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBarcode", function() { return faBarcode; });
  1901. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBars", function() { return faBars; });
  1902. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBaseballBall", function() { return faBaseballBall; });
  1903. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBasketballBall", function() { return faBasketballBall; });
  1904. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBath", function() { return faBath; });
  1905. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBatteryEmpty", function() { return faBatteryEmpty; });
  1906. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBatteryFull", function() { return faBatteryFull; });
  1907. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBatteryHalf", function() { return faBatteryHalf; });
  1908. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBatteryQuarter", function() { return faBatteryQuarter; });
  1909. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBatteryThreeQuarters", function() { return faBatteryThreeQuarters; });
  1910. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBed", function() { return faBed; });
  1911. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBeer", function() { return faBeer; });
  1912. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBell", function() { return faBell; });
  1913. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBellSlash", function() { return faBellSlash; });
  1914. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBezierCurve", function() { return faBezierCurve; });
  1915. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBible", function() { return faBible; });
  1916. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBicycle", function() { return faBicycle; });
  1917. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBinoculars", function() { return faBinoculars; });
  1918. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBirthdayCake", function() { return faBirthdayCake; });
  1919. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBlender", function() { return faBlender; });
  1920. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBlenderPhone", function() { return faBlenderPhone; });
  1921. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBlind", function() { return faBlind; });
  1922. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBold", function() { return faBold; });
  1923. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBolt", function() { return faBolt; });
  1924. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBomb", function() { return faBomb; });
  1925. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBone", function() { return faBone; });
  1926. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBong", function() { return faBong; });
  1927. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBook", function() { return faBook; });
  1928. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBookDead", function() { return faBookDead; });
  1929. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBookOpen", function() { return faBookOpen; });
  1930. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBookReader", function() { return faBookReader; });
  1931. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBookmark", function() { return faBookmark; });
  1932. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBowlingBall", function() { return faBowlingBall; });
  1933. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBox", function() { return faBox; });
  1934. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBoxOpen", function() { return faBoxOpen; });
  1935. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBoxes", function() { return faBoxes; });
  1936. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBraille", function() { return faBraille; });
  1937. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBrain", function() { return faBrain; });
  1938. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBriefcase", function() { return faBriefcase; });
  1939. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBriefcaseMedical", function() { return faBriefcaseMedical; });
  1940. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBroadcastTower", function() { return faBroadcastTower; });
  1941. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBroom", function() { return faBroom; });
  1942. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBrush", function() { return faBrush; });
  1943. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBug", function() { return faBug; });
  1944. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBuilding", function() { return faBuilding; });
  1945. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBullhorn", function() { return faBullhorn; });
  1946. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBullseye", function() { return faBullseye; });
  1947. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBurn", function() { return faBurn; });
  1948. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBus", function() { return faBus; });
  1949. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBusAlt", function() { return faBusAlt; });
  1950. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBusinessTime", function() { return faBusinessTime; });
  1951. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalculator", function() { return faCalculator; });
  1952. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendar", function() { return faCalendar; });
  1953. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendarAlt", function() { return faCalendarAlt; });
  1954. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendarCheck", function() { return faCalendarCheck; });
  1955. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendarMinus", function() { return faCalendarMinus; });
  1956. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendarPlus", function() { return faCalendarPlus; });
  1957. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendarTimes", function() { return faCalendarTimes; });
  1958. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCamera", function() { return faCamera; });
  1959. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCameraRetro", function() { return faCameraRetro; });
  1960. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCampground", function() { return faCampground; });
  1961. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCannabis", function() { return faCannabis; });
  1962. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCapsules", function() { return faCapsules; });
  1963. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCar", function() { return faCar; });
  1964. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCarAlt", function() { return faCarAlt; });
  1965. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCarBattery", function() { return faCarBattery; });
  1966. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCarCrash", function() { return faCarCrash; });
  1967. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCarSide", function() { return faCarSide; });
  1968. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretDown", function() { return faCaretDown; });
  1969. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretLeft", function() { return faCaretLeft; });
  1970. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretRight", function() { return faCaretRight; });
  1971. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretSquareDown", function() { return faCaretSquareDown; });
  1972. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretSquareLeft", function() { return faCaretSquareLeft; });
  1973. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretSquareRight", function() { return faCaretSquareRight; });
  1974. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretSquareUp", function() { return faCaretSquareUp; });
  1975. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretUp", function() { return faCaretUp; });
  1976. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCartArrowDown", function() { return faCartArrowDown; });
  1977. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCartPlus", function() { return faCartPlus; });
  1978. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCat", function() { return faCat; });
  1979. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCertificate", function() { return faCertificate; });
  1980. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChair", function() { return faChair; });
  1981. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChalkboard", function() { return faChalkboard; });
  1982. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChalkboardTeacher", function() { return faChalkboardTeacher; });
  1983. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChargingStation", function() { return faChargingStation; });
  1984. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChartArea", function() { return faChartArea; });
  1985. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChartBar", function() { return faChartBar; });
  1986. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChartLine", function() { return faChartLine; });
  1987. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChartPie", function() { return faChartPie; });
  1988. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCheck", function() { return faCheck; });
  1989. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCheckCircle", function() { return faCheckCircle; });
  1990. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCheckDouble", function() { return faCheckDouble; });
  1991. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCheckSquare", function() { return faCheckSquare; });
  1992. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChess", function() { return faChess; });
  1993. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChessBishop", function() { return faChessBishop; });
  1994. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChessBoard", function() { return faChessBoard; });
  1995. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChessKing", function() { return faChessKing; });
  1996. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChessKnight", function() { return faChessKnight; });
  1997. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChessPawn", function() { return faChessPawn; });
  1998. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChessQueen", function() { return faChessQueen; });
  1999. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChessRook", function() { return faChessRook; });
  2000. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronCircleDown", function() { return faChevronCircleDown; });
  2001. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronCircleLeft", function() { return faChevronCircleLeft; });
  2002. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronCircleRight", function() { return faChevronCircleRight; });
  2003. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronCircleUp", function() { return faChevronCircleUp; });
  2004. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronDown", function() { return faChevronDown; });
  2005. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronLeft", function() { return faChevronLeft; });
  2006. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronRight", function() { return faChevronRight; });
  2007. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronUp", function() { return faChevronUp; });
  2008. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChild", function() { return faChild; });
  2009. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChurch", function() { return faChurch; });
  2010. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCircle", function() { return faCircle; });
  2011. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCircleNotch", function() { return faCircleNotch; });
  2012. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCity", function() { return faCity; });
  2013. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faClipboard", function() { return faClipboard; });
  2014. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faClipboardCheck", function() { return faClipboardCheck; });
  2015. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faClipboardList", function() { return faClipboardList; });
  2016. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faClock", function() { return faClock; });
  2017. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faClone", function() { return faClone; });
  2018. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faClosedCaptioning", function() { return faClosedCaptioning; });
  2019. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCloud", function() { return faCloud; });
  2020. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCloudDownloadAlt", function() { return faCloudDownloadAlt; });
  2021. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCloudMoon", function() { return faCloudMoon; });
  2022. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCloudSun", function() { return faCloudSun; });
  2023. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCloudUploadAlt", function() { return faCloudUploadAlt; });
  2024. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCocktail", function() { return faCocktail; });
  2025. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCode", function() { return faCode; });
  2026. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCodeBranch", function() { return faCodeBranch; });
  2027. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCoffee", function() { return faCoffee; });
  2028. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCog", function() { return faCog; });
  2029. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCogs", function() { return faCogs; });
  2030. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCoins", function() { return faCoins; });
  2031. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faColumns", function() { return faColumns; });
  2032. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faComment", function() { return faComment; });
  2033. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCommentAlt", function() { return faCommentAlt; });
  2034. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCommentDollar", function() { return faCommentDollar; });
  2035. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCommentDots", function() { return faCommentDots; });
  2036. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCommentSlash", function() { return faCommentSlash; });
  2037. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faComments", function() { return faComments; });
  2038. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCommentsDollar", function() { return faCommentsDollar; });
  2039. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCompactDisc", function() { return faCompactDisc; });
  2040. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCompass", function() { return faCompass; });
  2041. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCompress", function() { return faCompress; });
  2042. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faConciergeBell", function() { return faConciergeBell; });
  2043. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCookie", function() { return faCookie; });
  2044. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCookieBite", function() { return faCookieBite; });
  2045. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCopy", function() { return faCopy; });
  2046. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCopyright", function() { return faCopyright; });
  2047. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCouch", function() { return faCouch; });
  2048. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCreditCard", function() { return faCreditCard; });
  2049. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCrop", function() { return faCrop; });
  2050. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCropAlt", function() { return faCropAlt; });
  2051. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCross", function() { return faCross; });
  2052. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCrosshairs", function() { return faCrosshairs; });
  2053. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCrow", function() { return faCrow; });
  2054. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCrown", function() { return faCrown; });
  2055. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCube", function() { return faCube; });
  2056. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCubes", function() { return faCubes; });
  2057. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCut", function() { return faCut; });
  2058. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDatabase", function() { return faDatabase; });
  2059. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDeaf", function() { return faDeaf; });
  2060. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDesktop", function() { return faDesktop; });
  2061. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDharmachakra", function() { return faDharmachakra; });
  2062. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiagnoses", function() { return faDiagnoses; });
  2063. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDice", function() { return faDice; });
  2064. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceD20", function() { return faDiceD20; });
  2065. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceD6", function() { return faDiceD6; });
  2066. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceFive", function() { return faDiceFive; });
  2067. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceFour", function() { return faDiceFour; });
  2068. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceOne", function() { return faDiceOne; });
  2069. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceSix", function() { return faDiceSix; });
  2070. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceThree", function() { return faDiceThree; });
  2071. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceTwo", function() { return faDiceTwo; });
  2072. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDigitalTachograph", function() { return faDigitalTachograph; });
  2073. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDirections", function() { return faDirections; });
  2074. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDivide", function() { return faDivide; });
  2075. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDizzy", function() { return faDizzy; });
  2076. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDna", function() { return faDna; });
  2077. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDog", function() { return faDog; });
  2078. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDollarSign", function() { return faDollarSign; });
  2079. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDolly", function() { return faDolly; });
  2080. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDollyFlatbed", function() { return faDollyFlatbed; });
  2081. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDonate", function() { return faDonate; });
  2082. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDoorClosed", function() { return faDoorClosed; });
  2083. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDoorOpen", function() { return faDoorOpen; });
  2084. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDotCircle", function() { return faDotCircle; });
  2085. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDove", function() { return faDove; });
  2086. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDownload", function() { return faDownload; });
  2087. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDraftingCompass", function() { return faDraftingCompass; });
  2088. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDragon", function() { return faDragon; });
  2089. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDrawPolygon", function() { return faDrawPolygon; });
  2090. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDrum", function() { return faDrum; });
  2091. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDrumSteelpan", function() { return faDrumSteelpan; });
  2092. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDrumstickBite", function() { return faDrumstickBite; });
  2093. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDumbbell", function() { return faDumbbell; });
  2094. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDungeon", function() { return faDungeon; });
  2095. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEdit", function() { return faEdit; });
  2096. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEject", function() { return faEject; });
  2097. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEllipsisH", function() { return faEllipsisH; });
  2098. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEllipsisV", function() { return faEllipsisV; });
  2099. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEnvelope", function() { return faEnvelope; });
  2100. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEnvelopeOpen", function() { return faEnvelopeOpen; });
  2101. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEnvelopeOpenText", function() { return faEnvelopeOpenText; });
  2102. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEnvelopeSquare", function() { return faEnvelopeSquare; });
  2103. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEquals", function() { return faEquals; });
  2104. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEraser", function() { return faEraser; });
  2105. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEuroSign", function() { return faEuroSign; });
  2106. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExchangeAlt", function() { return faExchangeAlt; });
  2107. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExclamation", function() { return faExclamation; });
  2108. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExclamationCircle", function() { return faExclamationCircle; });
  2109. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExclamationTriangle", function() { return faExclamationTriangle; });
  2110. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExpand", function() { return faExpand; });
  2111. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExpandArrowsAlt", function() { return faExpandArrowsAlt; });
  2112. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExternalLinkAlt", function() { return faExternalLinkAlt; });
  2113. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExternalLinkSquareAlt", function() { return faExternalLinkSquareAlt; });
  2114. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEye", function() { return faEye; });
  2115. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEyeDropper", function() { return faEyeDropper; });
  2116. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEyeSlash", function() { return faEyeSlash; });
  2117. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFastBackward", function() { return faFastBackward; });
  2118. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFastForward", function() { return faFastForward; });
  2119. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFax", function() { return faFax; });
  2120. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFeather", function() { return faFeather; });
  2121. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFeatherAlt", function() { return faFeatherAlt; });
  2122. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFemale", function() { return faFemale; });
  2123. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFighterJet", function() { return faFighterJet; });
  2124. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFile", function() { return faFile; });
  2125. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileAlt", function() { return faFileAlt; });
  2126. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileArchive", function() { return faFileArchive; });
  2127. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileAudio", function() { return faFileAudio; });
  2128. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileCode", function() { return faFileCode; });
  2129. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileContract", function() { return faFileContract; });
  2130. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileCsv", function() { return faFileCsv; });
  2131. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileDownload", function() { return faFileDownload; });
  2132. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileExcel", function() { return faFileExcel; });
  2133. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileExport", function() { return faFileExport; });
  2134. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileImage", function() { return faFileImage; });
  2135. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileImport", function() { return faFileImport; });
  2136. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileInvoice", function() { return faFileInvoice; });
  2137. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileInvoiceDollar", function() { return faFileInvoiceDollar; });
  2138. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileMedical", function() { return faFileMedical; });
  2139. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileMedicalAlt", function() { return faFileMedicalAlt; });
  2140. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFilePdf", function() { return faFilePdf; });
  2141. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFilePowerpoint", function() { return faFilePowerpoint; });
  2142. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFilePrescription", function() { return faFilePrescription; });
  2143. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileSignature", function() { return faFileSignature; });
  2144. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileUpload", function() { return faFileUpload; });
  2145. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileVideo", function() { return faFileVideo; });
  2146. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileWord", function() { return faFileWord; });
  2147. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFill", function() { return faFill; });
  2148. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFillDrip", function() { return faFillDrip; });
  2149. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFilm", function() { return faFilm; });
  2150. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFilter", function() { return faFilter; });
  2151. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFingerprint", function() { return faFingerprint; });
  2152. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFire", function() { return faFire; });
  2153. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFireExtinguisher", function() { return faFireExtinguisher; });
  2154. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFirstAid", function() { return faFirstAid; });
  2155. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFish", function() { return faFish; });
  2156. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFistRaised", function() { return faFistRaised; });
  2157. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFlag", function() { return faFlag; });
  2158. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFlagCheckered", function() { return faFlagCheckered; });
  2159. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFlask", function() { return faFlask; });
  2160. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFlushed", function() { return faFlushed; });
  2161. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFolder", function() { return faFolder; });
  2162. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFolderMinus", function() { return faFolderMinus; });
  2163. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFolderOpen", function() { return faFolderOpen; });
  2164. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFolderPlus", function() { return faFolderPlus; });
  2165. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFont", function() { return faFont; });
  2166. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFontAwesomeLogoFull", function() { return faFontAwesomeLogoFull; });
  2167. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFootballBall", function() { return faFootballBall; });
  2168. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faForward", function() { return faForward; });
  2169. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFrog", function() { return faFrog; });
  2170. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFrown", function() { return faFrown; });
  2171. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFrownOpen", function() { return faFrownOpen; });
  2172. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFunnelDollar", function() { return faFunnelDollar; });
  2173. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFutbol", function() { return faFutbol; });
  2174. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGamepad", function() { return faGamepad; });
  2175. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGasPump", function() { return faGasPump; });
  2176. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGavel", function() { return faGavel; });
  2177. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGem", function() { return faGem; });
  2178. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGenderless", function() { return faGenderless; });
  2179. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGhost", function() { return faGhost; });
  2180. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGift", function() { return faGift; });
  2181. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlassMartini", function() { return faGlassMartini; });
  2182. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlassMartiniAlt", function() { return faGlassMartiniAlt; });
  2183. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlasses", function() { return faGlasses; });
  2184. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlobe", function() { return faGlobe; });
  2185. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlobeAfrica", function() { return faGlobeAfrica; });
  2186. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlobeAmericas", function() { return faGlobeAmericas; });
  2187. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlobeAsia", function() { return faGlobeAsia; });
  2188. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGolfBall", function() { return faGolfBall; });
  2189. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGopuram", function() { return faGopuram; });
  2190. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGraduationCap", function() { return faGraduationCap; });
  2191. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGreaterThan", function() { return faGreaterThan; });
  2192. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGreaterThanEqual", function() { return faGreaterThanEqual; });
  2193. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrimace", function() { return faGrimace; });
  2194. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrin", function() { return faGrin; });
  2195. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinAlt", function() { return faGrinAlt; });
  2196. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinBeam", function() { return faGrinBeam; });
  2197. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinBeamSweat", function() { return faGrinBeamSweat; });
  2198. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinHearts", function() { return faGrinHearts; });
  2199. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinSquint", function() { return faGrinSquint; });
  2200. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinSquintTears", function() { return faGrinSquintTears; });
  2201. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinStars", function() { return faGrinStars; });
  2202. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinTears", function() { return faGrinTears; });
  2203. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinTongue", function() { return faGrinTongue; });
  2204. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinTongueSquint", function() { return faGrinTongueSquint; });
  2205. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinTongueWink", function() { return faGrinTongueWink; });
  2206. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinWink", function() { return faGrinWink; });
  2207. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGripHorizontal", function() { return faGripHorizontal; });
  2208. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGripVertical", function() { return faGripVertical; });
  2209. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHSquare", function() { return faHSquare; });
  2210. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHammer", function() { return faHammer; });
  2211. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHamsa", function() { return faHamsa; });
  2212. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandHolding", function() { return faHandHolding; });
  2213. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandHoldingHeart", function() { return faHandHoldingHeart; });
  2214. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandHoldingUsd", function() { return faHandHoldingUsd; });
  2215. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandLizard", function() { return faHandLizard; });
  2216. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPaper", function() { return faHandPaper; });
  2217. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPeace", function() { return faHandPeace; });
  2218. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPointDown", function() { return faHandPointDown; });
  2219. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPointLeft", function() { return faHandPointLeft; });
  2220. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPointRight", function() { return faHandPointRight; });
  2221. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPointUp", function() { return faHandPointUp; });
  2222. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPointer", function() { return faHandPointer; });
  2223. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandRock", function() { return faHandRock; });
  2224. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandScissors", function() { return faHandScissors; });
  2225. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandSpock", function() { return faHandSpock; });
  2226. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHands", function() { return faHands; });
  2227. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandsHelping", function() { return faHandsHelping; });
  2228. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandshake", function() { return faHandshake; });
  2229. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHanukiah", function() { return faHanukiah; });
  2230. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHashtag", function() { return faHashtag; });
  2231. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHatWizard", function() { return faHatWizard; });
  2232. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHaykal", function() { return faHaykal; });
  2233. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHdd", function() { return faHdd; });
  2234. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeading", function() { return faHeading; });
  2235. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeadphones", function() { return faHeadphones; });
  2236. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeadphonesAlt", function() { return faHeadphonesAlt; });
  2237. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeadset", function() { return faHeadset; });
  2238. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeart", function() { return faHeart; });
  2239. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeartbeat", function() { return faHeartbeat; });
  2240. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHelicopter", function() { return faHelicopter; });
  2241. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHighlighter", function() { return faHighlighter; });
  2242. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHiking", function() { return faHiking; });
  2243. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHippo", function() { return faHippo; });
  2244. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHistory", function() { return faHistory; });
  2245. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHockeyPuck", function() { return faHockeyPuck; });
  2246. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHome", function() { return faHome; });
  2247. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHorse", function() { return faHorse; });
  2248. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHospital", function() { return faHospital; });
  2249. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHospitalAlt", function() { return faHospitalAlt; });
  2250. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHospitalSymbol", function() { return faHospitalSymbol; });
  2251. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHotTub", function() { return faHotTub; });
  2252. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHotel", function() { return faHotel; });
  2253. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHourglass", function() { return faHourglass; });
  2254. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHourglassEnd", function() { return faHourglassEnd; });
  2255. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHourglassHalf", function() { return faHourglassHalf; });
  2256. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHourglassStart", function() { return faHourglassStart; });
  2257. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHouseDamage", function() { return faHouseDamage; });
  2258. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHryvnia", function() { return faHryvnia; });
  2259. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faICursor", function() { return faICursor; });
  2260. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faIdBadge", function() { return faIdBadge; });
  2261. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faIdCard", function() { return faIdCard; });
  2262. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faIdCardAlt", function() { return faIdCardAlt; });
  2263. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faImage", function() { return faImage; });
  2264. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faImages", function() { return faImages; });
  2265. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faInbox", function() { return faInbox; });
  2266. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faIndent", function() { return faIndent; });
  2267. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faIndustry", function() { return faIndustry; });
  2268. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faInfinity", function() { return faInfinity; });
  2269. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faInfo", function() { return faInfo; });
  2270. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faInfoCircle", function() { return faInfoCircle; });
  2271. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faItalic", function() { return faItalic; });
  2272. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faJedi", function() { return faJedi; });
  2273. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faJoint", function() { return faJoint; });
  2274. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faJournalWhills", function() { return faJournalWhills; });
  2275. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKaaba", function() { return faKaaba; });
  2276. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKey", function() { return faKey; });
  2277. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKeyboard", function() { return faKeyboard; });
  2278. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKhanda", function() { return faKhanda; });
  2279. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKiss", function() { return faKiss; });
  2280. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKissBeam", function() { return faKissBeam; });
  2281. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKissWinkHeart", function() { return faKissWinkHeart; });
  2282. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKiwiBird", function() { return faKiwiBird; });
  2283. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLandmark", function() { return faLandmark; });
  2284. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLanguage", function() { return faLanguage; });
  2285. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLaptop", function() { return faLaptop; });
  2286. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLaptopCode", function() { return faLaptopCode; });
  2287. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLaugh", function() { return faLaugh; });
  2288. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLaughBeam", function() { return faLaughBeam; });
  2289. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLaughSquint", function() { return faLaughSquint; });
  2290. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLaughWink", function() { return faLaughWink; });
  2291. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLayerGroup", function() { return faLayerGroup; });
  2292. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLeaf", function() { return faLeaf; });
  2293. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLemon", function() { return faLemon; });
  2294. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLessThan", function() { return faLessThan; });
  2295. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLessThanEqual", function() { return faLessThanEqual; });
  2296. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLevelDownAlt", function() { return faLevelDownAlt; });
  2297. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLevelUpAlt", function() { return faLevelUpAlt; });
  2298. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLifeRing", function() { return faLifeRing; });
  2299. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLightbulb", function() { return faLightbulb; });
  2300. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLink", function() { return faLink; });
  2301. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLiraSign", function() { return faLiraSign; });
  2302. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faList", function() { return faList; });
  2303. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faListAlt", function() { return faListAlt; });
  2304. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faListOl", function() { return faListOl; });
  2305. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faListUl", function() { return faListUl; });
  2306. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLocationArrow", function() { return faLocationArrow; });
  2307. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLock", function() { return faLock; });
  2308. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLockOpen", function() { return faLockOpen; });
  2309. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLongArrowAltDown", function() { return faLongArrowAltDown; });
  2310. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLongArrowAltLeft", function() { return faLongArrowAltLeft; });
  2311. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLongArrowAltRight", function() { return faLongArrowAltRight; });
  2312. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLongArrowAltUp", function() { return faLongArrowAltUp; });
  2313. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLowVision", function() { return faLowVision; });
  2314. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLuggageCart", function() { return faLuggageCart; });
  2315. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMagic", function() { return faMagic; });
  2316. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMagnet", function() { return faMagnet; });
  2317. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMailBulk", function() { return faMailBulk; });
  2318. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMale", function() { return faMale; });
  2319. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMap", function() { return faMap; });
  2320. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMapMarked", function() { return faMapMarked; });
  2321. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMapMarkedAlt", function() { return faMapMarkedAlt; });
  2322. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMapMarker", function() { return faMapMarker; });
  2323. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMapMarkerAlt", function() { return faMapMarkerAlt; });
  2324. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMapPin", function() { return faMapPin; });
  2325. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMapSigns", function() { return faMapSigns; });
  2326. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMarker", function() { return faMarker; });
  2327. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMars", function() { return faMars; });
  2328. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMarsDouble", function() { return faMarsDouble; });
  2329. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMarsStroke", function() { return faMarsStroke; });
  2330. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMarsStrokeH", function() { return faMarsStrokeH; });
  2331. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMarsStrokeV", function() { return faMarsStrokeV; });
  2332. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMask", function() { return faMask; });
  2333. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMedal", function() { return faMedal; });
  2334. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMedkit", function() { return faMedkit; });
  2335. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMeh", function() { return faMeh; });
  2336. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMehBlank", function() { return faMehBlank; });
  2337. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMehRollingEyes", function() { return faMehRollingEyes; });
  2338. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMemory", function() { return faMemory; });
  2339. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMenorah", function() { return faMenorah; });
  2340. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMercury", function() { return faMercury; });
  2341. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMicrochip", function() { return faMicrochip; });
  2342. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMicrophone", function() { return faMicrophone; });
  2343. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMicrophoneAlt", function() { return faMicrophoneAlt; });
  2344. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMicrophoneAltSlash", function() { return faMicrophoneAltSlash; });
  2345. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMicrophoneSlash", function() { return faMicrophoneSlash; });
  2346. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMicroscope", function() { return faMicroscope; });
  2347. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMinus", function() { return faMinus; });
  2348. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMinusCircle", function() { return faMinusCircle; });
  2349. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMinusSquare", function() { return faMinusSquare; });
  2350. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMobile", function() { return faMobile; });
  2351. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMobileAlt", function() { return faMobileAlt; });
  2352. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMoneyBill", function() { return faMoneyBill; });
  2353. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMoneyBillAlt", function() { return faMoneyBillAlt; });
  2354. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMoneyBillWave", function() { return faMoneyBillWave; });
  2355. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMoneyBillWaveAlt", function() { return faMoneyBillWaveAlt; });
  2356. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMoneyCheck", function() { return faMoneyCheck; });
  2357. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMoneyCheckAlt", function() { return faMoneyCheckAlt; });
  2358. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMonument", function() { return faMonument; });
  2359. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMoon", function() { return faMoon; });
  2360. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMortarPestle", function() { return faMortarPestle; });
  2361. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMosque", function() { return faMosque; });
  2362. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMotorcycle", function() { return faMotorcycle; });
  2363. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMountain", function() { return faMountain; });
  2364. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMousePointer", function() { return faMousePointer; });
  2365. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMusic", function() { return faMusic; });
  2366. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faNetworkWired", function() { return faNetworkWired; });
  2367. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faNeuter", function() { return faNeuter; });
  2368. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faNewspaper", function() { return faNewspaper; });
  2369. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faNotEqual", function() { return faNotEqual; });
  2370. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faNotesMedical", function() { return faNotesMedical; });
  2371. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faObjectGroup", function() { return faObjectGroup; });
  2372. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faObjectUngroup", function() { return faObjectUngroup; });
  2373. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faOilCan", function() { return faOilCan; });
  2374. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faOm", function() { return faOm; });
  2375. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faOtter", function() { return faOtter; });
  2376. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faOutdent", function() { return faOutdent; });
  2377. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPaintBrush", function() { return faPaintBrush; });
  2378. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPaintRoller", function() { return faPaintRoller; });
  2379. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPalette", function() { return faPalette; });
  2380. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPallet", function() { return faPallet; });
  2381. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPaperPlane", function() { return faPaperPlane; });
  2382. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPaperclip", function() { return faPaperclip; });
  2383. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faParachuteBox", function() { return faParachuteBox; });
  2384. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faParagraph", function() { return faParagraph; });
  2385. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faParking", function() { return faParking; });
  2386. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPassport", function() { return faPassport; });
  2387. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPastafarianism", function() { return faPastafarianism; });
  2388. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPaste", function() { return faPaste; });
  2389. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPause", function() { return faPause; });
  2390. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPauseCircle", function() { return faPauseCircle; });
  2391. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPaw", function() { return faPaw; });
  2392. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPeace", function() { return faPeace; });
  2393. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPen", function() { return faPen; });
  2394. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPenAlt", function() { return faPenAlt; });
  2395. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPenFancy", function() { return faPenFancy; });
  2396. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPenNib", function() { return faPenNib; });
  2397. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPenSquare", function() { return faPenSquare; });
  2398. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPencilAlt", function() { return faPencilAlt; });
  2399. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPencilRuler", function() { return faPencilRuler; });
  2400. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPeopleCarry", function() { return faPeopleCarry; });
  2401. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPercent", function() { return faPercent; });
  2402. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPercentage", function() { return faPercentage; });
  2403. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPhone", function() { return faPhone; });
  2404. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPhoneSlash", function() { return faPhoneSlash; });
  2405. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPhoneSquare", function() { return faPhoneSquare; });
  2406. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPhoneVolume", function() { return faPhoneVolume; });
  2407. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPiggyBank", function() { return faPiggyBank; });
  2408. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPills", function() { return faPills; });
  2409. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlaceOfWorship", function() { return faPlaceOfWorship; });
  2410. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlane", function() { return faPlane; });
  2411. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlaneArrival", function() { return faPlaneArrival; });
  2412. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlaneDeparture", function() { return faPlaneDeparture; });
  2413. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlay", function() { return faPlay; });
  2414. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlayCircle", function() { return faPlayCircle; });
  2415. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlug", function() { return faPlug; });
  2416. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlus", function() { return faPlus; });
  2417. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlusCircle", function() { return faPlusCircle; });
  2418. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlusSquare", function() { return faPlusSquare; });
  2419. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPodcast", function() { return faPodcast; });
  2420. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPoll", function() { return faPoll; });
  2421. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPollH", function() { return faPollH; });
  2422. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPoo", function() { return faPoo; });
  2423. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPoop", function() { return faPoop; });
  2424. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPortrait", function() { return faPortrait; });
  2425. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPoundSign", function() { return faPoundSign; });
  2426. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPowerOff", function() { return faPowerOff; });
  2427. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPray", function() { return faPray; });
  2428. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPrayingHands", function() { return faPrayingHands; });
  2429. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPrescription", function() { return faPrescription; });
  2430. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPrescriptionBottle", function() { return faPrescriptionBottle; });
  2431. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPrescriptionBottleAlt", function() { return faPrescriptionBottleAlt; });
  2432. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPrint", function() { return faPrint; });
  2433. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faProcedures", function() { return faProcedures; });
  2434. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faProjectDiagram", function() { return faProjectDiagram; });
  2435. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPuzzlePiece", function() { return faPuzzlePiece; });
  2436. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faQrcode", function() { return faQrcode; });
  2437. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faQuestion", function() { return faQuestion; });
  2438. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faQuestionCircle", function() { return faQuestionCircle; });
  2439. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faQuidditch", function() { return faQuidditch; });
  2440. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faQuoteLeft", function() { return faQuoteLeft; });
  2441. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faQuoteRight", function() { return faQuoteRight; });
  2442. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faQuran", function() { return faQuran; });
  2443. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRandom", function() { return faRandom; });
  2444. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faReceipt", function() { return faReceipt; });
  2445. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRecycle", function() { return faRecycle; });
  2446. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRedo", function() { return faRedo; });
  2447. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRedoAlt", function() { return faRedoAlt; });
  2448. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRegistered", function() { return faRegistered; });
  2449. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faReply", function() { return faReply; });
  2450. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faReplyAll", function() { return faReplyAll; });
  2451. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRetweet", function() { return faRetweet; });
  2452. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRibbon", function() { return faRibbon; });
  2453. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRing", function() { return faRing; });
  2454. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRoad", function() { return faRoad; });
  2455. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRobot", function() { return faRobot; });
  2456. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRocket", function() { return faRocket; });
  2457. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRoute", function() { return faRoute; });
  2458. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRss", function() { return faRss; });
  2459. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRssSquare", function() { return faRssSquare; });
  2460. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRubleSign", function() { return faRubleSign; });
  2461. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRuler", function() { return faRuler; });
  2462. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRulerCombined", function() { return faRulerCombined; });
  2463. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRulerHorizontal", function() { return faRulerHorizontal; });
  2464. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRulerVertical", function() { return faRulerVertical; });
  2465. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRunning", function() { return faRunning; });
  2466. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRupeeSign", function() { return faRupeeSign; });
  2467. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSadCry", function() { return faSadCry; });
  2468. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSadTear", function() { return faSadTear; });
  2469. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSave", function() { return faSave; });
  2470. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSchool", function() { return faSchool; });
  2471. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faScrewdriver", function() { return faScrewdriver; });
  2472. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faScroll", function() { return faScroll; });
  2473. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSearch", function() { return faSearch; });
  2474. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSearchDollar", function() { return faSearchDollar; });
  2475. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSearchLocation", function() { return faSearchLocation; });
  2476. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSearchMinus", function() { return faSearchMinus; });
  2477. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSearchPlus", function() { return faSearchPlus; });
  2478. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSeedling", function() { return faSeedling; });
  2479. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faServer", function() { return faServer; });
  2480. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShapes", function() { return faShapes; });
  2481. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShare", function() { return faShare; });
  2482. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShareAlt", function() { return faShareAlt; });
  2483. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShareAltSquare", function() { return faShareAltSquare; });
  2484. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShareSquare", function() { return faShareSquare; });
  2485. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShekelSign", function() { return faShekelSign; });
  2486. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShieldAlt", function() { return faShieldAlt; });
  2487. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShip", function() { return faShip; });
  2488. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShippingFast", function() { return faShippingFast; });
  2489. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShoePrints", function() { return faShoePrints; });
  2490. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShoppingBag", function() { return faShoppingBag; });
  2491. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShoppingBasket", function() { return faShoppingBasket; });
  2492. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShoppingCart", function() { return faShoppingCart; });
  2493. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShower", function() { return faShower; });
  2494. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShuttleVan", function() { return faShuttleVan; });
  2495. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSign", function() { return faSign; });
  2496. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSignInAlt", function() { return faSignInAlt; });
  2497. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSignLanguage", function() { return faSignLanguage; });
  2498. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSignOutAlt", function() { return faSignOutAlt; });
  2499. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSignal", function() { return faSignal; });
  2500. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSignature", function() { return faSignature; });
  2501. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSitemap", function() { return faSitemap; });
  2502. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSkull", function() { return faSkull; });
  2503. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSkullCrossbones", function() { return faSkullCrossbones; });
  2504. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSlash", function() { return faSlash; });
  2505. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSlidersH", function() { return faSlidersH; });
  2506. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSmile", function() { return faSmile; });
  2507. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSmileBeam", function() { return faSmileBeam; });
  2508. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSmileWink", function() { return faSmileWink; });
  2509. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSmoking", function() { return faSmoking; });
  2510. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSmokingBan", function() { return faSmokingBan; });
  2511. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSnowflake", function() { return faSnowflake; });
  2512. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSocks", function() { return faSocks; });
  2513. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSolarPanel", function() { return faSolarPanel; });
  2514. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSort", function() { return faSort; });
  2515. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortAlphaDown", function() { return faSortAlphaDown; });
  2516. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortAlphaUp", function() { return faSortAlphaUp; });
  2517. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortAmountDown", function() { return faSortAmountDown; });
  2518. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortAmountUp", function() { return faSortAmountUp; });
  2519. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortDown", function() { return faSortDown; });
  2520. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortNumericDown", function() { return faSortNumericDown; });
  2521. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortNumericUp", function() { return faSortNumericUp; });
  2522. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortUp", function() { return faSortUp; });
  2523. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSpa", function() { return faSpa; });
  2524. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSpaceShuttle", function() { return faSpaceShuttle; });
  2525. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSpider", function() { return faSpider; });
  2526. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSpinner", function() { return faSpinner; });
  2527. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSplotch", function() { return faSplotch; });
  2528. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSprayCan", function() { return faSprayCan; });
  2529. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSquare", function() { return faSquare; });
  2530. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSquareFull", function() { return faSquareFull; });
  2531. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSquareRootAlt", function() { return faSquareRootAlt; });
  2532. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStamp", function() { return faStamp; });
  2533. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStar", function() { return faStar; });
  2534. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStarAndCrescent", function() { return faStarAndCrescent; });
  2535. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStarHalf", function() { return faStarHalf; });
  2536. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStarHalfAlt", function() { return faStarHalfAlt; });
  2537. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStarOfDavid", function() { return faStarOfDavid; });
  2538. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStarOfLife", function() { return faStarOfLife; });
  2539. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStepBackward", function() { return faStepBackward; });
  2540. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStepForward", function() { return faStepForward; });
  2541. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStethoscope", function() { return faStethoscope; });
  2542. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStickyNote", function() { return faStickyNote; });
  2543. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStop", function() { return faStop; });
  2544. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStopCircle", function() { return faStopCircle; });
  2545. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStopwatch", function() { return faStopwatch; });
  2546. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStore", function() { return faStore; });
  2547. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStoreAlt", function() { return faStoreAlt; });
  2548. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStream", function() { return faStream; });
  2549. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStreetView", function() { return faStreetView; });
  2550. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStrikethrough", function() { return faStrikethrough; });
  2551. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStroopwafel", function() { return faStroopwafel; });
  2552. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSubscript", function() { return faSubscript; });
  2553. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSubway", function() { return faSubway; });
  2554. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSuitcase", function() { return faSuitcase; });
  2555. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSuitcaseRolling", function() { return faSuitcaseRolling; });
  2556. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSun", function() { return faSun; });
  2557. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSuperscript", function() { return faSuperscript; });
  2558. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSurprise", function() { return faSurprise; });
  2559. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSwatchbook", function() { return faSwatchbook; });
  2560. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSwimmer", function() { return faSwimmer; });
  2561. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSwimmingPool", function() { return faSwimmingPool; });
  2562. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSynagogue", function() { return faSynagogue; });
  2563. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSync", function() { return faSync; });
  2564. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSyncAlt", function() { return faSyncAlt; });
  2565. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSyringe", function() { return faSyringe; });
  2566. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTable", function() { return faTable; });
  2567. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTableTennis", function() { return faTableTennis; });
  2568. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTablet", function() { return faTablet; });
  2569. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTabletAlt", function() { return faTabletAlt; });
  2570. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTablets", function() { return faTablets; });
  2571. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTachometerAlt", function() { return faTachometerAlt; });
  2572. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTag", function() { return faTag; });
  2573. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTags", function() { return faTags; });
  2574. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTape", function() { return faTape; });
  2575. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTasks", function() { return faTasks; });
  2576. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTaxi", function() { return faTaxi; });
  2577. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTeeth", function() { return faTeeth; });
  2578. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTeethOpen", function() { return faTeethOpen; });
  2579. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTerminal", function() { return faTerminal; });
  2580. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTextHeight", function() { return faTextHeight; });
  2581. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTextWidth", function() { return faTextWidth; });
  2582. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTh", function() { return faTh; });
  2583. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThLarge", function() { return faThLarge; });
  2584. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThList", function() { return faThList; });
  2585. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTheaterMasks", function() { return faTheaterMasks; });
  2586. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThermometer", function() { return faThermometer; });
  2587. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThermometerEmpty", function() { return faThermometerEmpty; });
  2588. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThermometerFull", function() { return faThermometerFull; });
  2589. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThermometerHalf", function() { return faThermometerHalf; });
  2590. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThermometerQuarter", function() { return faThermometerQuarter; });
  2591. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThermometerThreeQuarters", function() { return faThermometerThreeQuarters; });
  2592. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThumbsDown", function() { return faThumbsDown; });
  2593. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThumbsUp", function() { return faThumbsUp; });
  2594. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThumbtack", function() { return faThumbtack; });
  2595. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTicketAlt", function() { return faTicketAlt; });
  2596. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTimes", function() { return faTimes; });
  2597. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTimesCircle", function() { return faTimesCircle; });
  2598. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTint", function() { return faTint; });
  2599. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTintSlash", function() { return faTintSlash; });
  2600. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTired", function() { return faTired; });
  2601. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faToggleOff", function() { return faToggleOff; });
  2602. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faToggleOn", function() { return faToggleOn; });
  2603. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faToiletPaper", function() { return faToiletPaper; });
  2604. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faToolbox", function() { return faToolbox; });
  2605. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTooth", function() { return faTooth; });
  2606. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTorah", function() { return faTorah; });
  2607. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faToriiGate", function() { return faToriiGate; });
  2608. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTractor", function() { return faTractor; });
  2609. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTrademark", function() { return faTrademark; });
  2610. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTrafficLight", function() { return faTrafficLight; });
  2611. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTrain", function() { return faTrain; });
  2612. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTransgender", function() { return faTransgender; });
  2613. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTransgenderAlt", function() { return faTransgenderAlt; });
  2614. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTrash", function() { return faTrash; });
  2615. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTrashAlt", function() { return faTrashAlt; });
  2616. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTree", function() { return faTree; });
  2617. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTrophy", function() { return faTrophy; });
  2618. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTruck", function() { return faTruck; });
  2619. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTruckLoading", function() { return faTruckLoading; });
  2620. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTruckMonster", function() { return faTruckMonster; });
  2621. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTruckMoving", function() { return faTruckMoving; });
  2622. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTruckPickup", function() { return faTruckPickup; });
  2623. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTshirt", function() { return faTshirt; });
  2624. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTty", function() { return faTty; });
  2625. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTv", function() { return faTv; });
  2626. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUmbrella", function() { return faUmbrella; });
  2627. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUmbrellaBeach", function() { return faUmbrellaBeach; });
  2628. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUnderline", function() { return faUnderline; });
  2629. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUndo", function() { return faUndo; });
  2630. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUndoAlt", function() { return faUndoAlt; });
  2631. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUniversalAccess", function() { return faUniversalAccess; });
  2632. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUniversity", function() { return faUniversity; });
  2633. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUnlink", function() { return faUnlink; });
  2634. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUnlock", function() { return faUnlock; });
  2635. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUnlockAlt", function() { return faUnlockAlt; });
  2636. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUpload", function() { return faUpload; });
  2637. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUser", function() { return faUser; });
  2638. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserAlt", function() { return faUserAlt; });
  2639. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserAltSlash", function() { return faUserAltSlash; });
  2640. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserAstronaut", function() { return faUserAstronaut; });
  2641. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserCheck", function() { return faUserCheck; });
  2642. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserCircle", function() { return faUserCircle; });
  2643. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserClock", function() { return faUserClock; });
  2644. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserCog", function() { return faUserCog; });
  2645. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserEdit", function() { return faUserEdit; });
  2646. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserFriends", function() { return faUserFriends; });
  2647. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserGraduate", function() { return faUserGraduate; });
  2648. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserInjured", function() { return faUserInjured; });
  2649. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserLock", function() { return faUserLock; });
  2650. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserMd", function() { return faUserMd; });
  2651. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserMinus", function() { return faUserMinus; });
  2652. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserNinja", function() { return faUserNinja; });
  2653. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserPlus", function() { return faUserPlus; });
  2654. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserSecret", function() { return faUserSecret; });
  2655. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserShield", function() { return faUserShield; });
  2656. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserSlash", function() { return faUserSlash; });
  2657. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserTag", function() { return faUserTag; });
  2658. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserTie", function() { return faUserTie; });
  2659. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserTimes", function() { return faUserTimes; });
  2660. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUsers", function() { return faUsers; });
  2661. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUsersCog", function() { return faUsersCog; });
  2662. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUtensilSpoon", function() { return faUtensilSpoon; });
  2663. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUtensils", function() { return faUtensils; });
  2664. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVectorSquare", function() { return faVectorSquare; });
  2665. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVenus", function() { return faVenus; });
  2666. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVenusDouble", function() { return faVenusDouble; });
  2667. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVenusMars", function() { return faVenusMars; });
  2668. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVial", function() { return faVial; });
  2669. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVials", function() { return faVials; });
  2670. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVideo", function() { return faVideo; });
  2671. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVideoSlash", function() { return faVideoSlash; });
  2672. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVihara", function() { return faVihara; });
  2673. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVolleyballBall", function() { return faVolleyballBall; });
  2674. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVolumeDown", function() { return faVolumeDown; });
  2675. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVolumeMute", function() { return faVolumeMute; });
  2676. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVolumeOff", function() { return faVolumeOff; });
  2677. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVolumeUp", function() { return faVolumeUp; });
  2678. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVrCardboard", function() { return faVrCardboard; });
  2679. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWalking", function() { return faWalking; });
  2680. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWallet", function() { return faWallet; });
  2681. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWarehouse", function() { return faWarehouse; });
  2682. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWeight", function() { return faWeight; });
  2683. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWeightHanging", function() { return faWeightHanging; });
  2684. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWheelchair", function() { return faWheelchair; });
  2685. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWifi", function() { return faWifi; });
  2686. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWind", function() { return faWind; });
  2687. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWindowClose", function() { return faWindowClose; });
  2688. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWindowMaximize", function() { return faWindowMaximize; });
  2689. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWindowMinimize", function() { return faWindowMinimize; });
  2690. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWindowRestore", function() { return faWindowRestore; });
  2691. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWineBottle", function() { return faWineBottle; });
  2692. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWineGlass", function() { return faWineGlass; });
  2693. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWineGlassAlt", function() { return faWineGlassAlt; });
  2694. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWonSign", function() { return faWonSign; });
  2695. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWrench", function() { return faWrench; });
  2696. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faXRay", function() { return faXRay; });
  2697. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faYenSign", function() { return faYenSign; });
  2698. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faYinYang", function() { return faYinYang; });
  2699. /*!
  2700. * Font Awesome Free 5.4.2 by @fontawesome - https://fontawesome.com
  2701. * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
  2702. */
  2703. var prefix = "fas";
  2704. var faAd = { prefix: 'fas', iconName: 'ad', icon: [512, 512, [], "f641", "M157.52 272h36.96L176 218.78 157.52 272zM352 256c-13.23 0-24 10.77-24 24s10.77 24 24 24 24-10.77 24-24-10.77-24-24-24zM464 64H48C21.5 64 0 85.5 0 112v288c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zM250.58 352h-16.94c-6.81 0-12.88-4.32-15.12-10.75L211.15 320h-70.29l-7.38 21.25A16 16 0 0 1 118.36 352h-16.94c-11.01 0-18.73-10.85-15.12-21.25L140 176.12A23.995 23.995 0 0 1 162.67 160h26.66A23.99 23.99 0 0 1 212 176.13l53.69 154.62c3.61 10.4-4.11 21.25-15.11 21.25zM424 336c0 8.84-7.16 16-16 16h-16c-4.85 0-9.04-2.27-11.98-5.68-8.62 3.66-18.09 5.68-28.02 5.68-39.7 0-72-32.3-72-72s32.3-72 72-72c8.46 0 16.46 1.73 24 4.42V176c0-8.84 7.16-16 16-16h16c8.84 0 16 7.16 16 16v160z"] };
  2705. var faAddressBook = { prefix: 'fas', iconName: 'address-book', icon: [448, 512, [], "f2b9", "M436 160c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20V48c0-26.5-21.5-48-48-48H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h320c26.5 0 48-21.5 48-48v-48h20c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20v-64h20c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20v-64h20zm-228-32c35.3 0 64 28.7 64 64s-28.7 64-64 64-64-28.7-64-64 28.7-64 64-64zm112 236.8c0 10.6-10 19.2-22.4 19.2H118.4C106 384 96 375.4 96 364.8v-19.2c0-31.8 30.1-57.6 67.2-57.6h5c12.3 5.1 25.7 8 39.8 8s27.6-2.9 39.8-8h5c37.1 0 67.2 25.8 67.2 57.6v19.2z"] };
  2706. var faAddressCard = { prefix: 'fas', iconName: 'address-card', icon: [576, 512, [], "f2bb", "M528 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h480c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-352 96c35.3 0 64 28.7 64 64s-28.7 64-64 64-64-28.7-64-64 28.7-64 64-64zm112 236.8c0 10.6-10 19.2-22.4 19.2H86.4C74 384 64 375.4 64 364.8v-19.2c0-31.8 30.1-57.6 67.2-57.6h5c12.3 5.1 25.7 8 39.8 8s27.6-2.9 39.8-8h5c37.1 0 67.2 25.8 67.2 57.6v19.2zM512 312c0 4.4-3.6 8-8 8H360c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16zm0-64c0 4.4-3.6 8-8 8H360c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16zm0-64c0 4.4-3.6 8-8 8H360c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16z"] };
  2707. var faAdjust = { prefix: 'fas', iconName: 'adjust', icon: [512, 512, [], "f042", "M8 256c0 136.966 111.033 248 248 248s248-111.034 248-248S392.966 8 256 8 8 119.033 8 256zm248 184V72c101.705 0 184 82.311 184 184 0 101.705-82.311 184-184 184z"] };
  2708. var faAirFreshener = { prefix: 'fas', iconName: 'air-freshener', icon: [384, 512, [], "f5d0", "M378.94 321.41L284.7 224h49.22c15.3 0 23.66-16.6 13.86-27.53L234.45 69.96c3.43-6.61 5.55-14 5.55-21.96 0-26.51-21.49-48-48-48s-48 21.49-48 48c0 7.96 2.12 15.35 5.55 21.96L36.22 196.47C26.42 207.4 34.78 224 50.08 224H99.3L5.06 321.41C-6.69 333.56 3.34 352 21.7 352H160v32H48c-8.84 0-16 7.16-16 16v96c0 8.84 7.16 16 16 16h288c8.84 0 16-7.16 16-16v-96c0-8.84-7.16-16-16-16H224v-32h138.3c18.36 0 28.39-18.44 16.64-30.59zM192 31.98c8.85 0 16.02 7.17 16.02 16.02 0 8.84-7.17 16.02-16.02 16.02S175.98 56.84 175.98 48c0-8.85 7.17-16.02 16.02-16.02zM304 432v32H80v-32h224z"] };
  2709. var faAlignCenter = { prefix: 'fas', iconName: 'align-center', icon: [448, 512, [], "f037", "M352 44v40c0 8.837-7.163 16-16 16H112c-8.837 0-16-7.163-16-16V44c0-8.837 7.163-16 16-16h224c8.837 0 16 7.163 16 16zM16 228h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 256h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm320-200H112c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16h224c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16z"] };
  2710. var faAlignJustify = { prefix: 'fas', iconName: 'align-justify', icon: [448, 512, [], "f039", "M0 84V44c0-8.837 7.163-16 16-16h416c8.837 0 16 7.163 16 16v40c0 8.837-7.163 16-16 16H16c-8.837 0-16-7.163-16-16zm16 144h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 256h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0-128h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"] };
  2711. var faAlignLeft = { prefix: 'fas', iconName: 'align-left', icon: [448, 512, [], "f036", "M288 44v40c0 8.837-7.163 16-16 16H16c-8.837 0-16-7.163-16-16V44c0-8.837 7.163-16 16-16h256c8.837 0 16 7.163 16 16zM0 172v40c0 8.837 7.163 16 16 16h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16zm16 312h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm256-200H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16h256c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16z"] };
  2712. var faAlignRight = { prefix: 'fas', iconName: 'align-right', icon: [448, 512, [], "f038", "M160 84V44c0-8.837 7.163-16 16-16h256c8.837 0 16 7.163 16 16v40c0 8.837-7.163 16-16 16H176c-8.837 0-16-7.163-16-16zM16 228h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 256h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm160-128h256c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H176c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"] };
  2713. var faAllergies = { prefix: 'fas', iconName: 'allergies', icon: [448, 512, [], "f461", "M416 112c-17.6 0-32 14.4-32 32v72c0 4.4-3.6 8-8 8h-16c-4.4 0-8-3.6-8-8V64c0-17.6-14.4-32-32-32s-32 14.4-32 32v152c0 4.4-3.6 8-8 8h-16c-4.4 0-8-3.6-8-8V32c0-17.6-14.4-32-32-32s-32 14.4-32 32v184c0 4.4-3.6 8-8 8h-16c-4.4 0-8-3.6-8-8V64c0-17.6-14.4-32-32-32S96 46.4 96 64v241l-23.6-32.5c-13-17.9-38-21.8-55.9-8.8s-21.8 38-8.8 55.9l125.6 172.7c9 12.4 23.5 19.8 38.8 19.8h197.6c22.3 0 41.6-15.3 46.7-37l26.5-112.7c3.2-13.7 4.9-28.3 5.1-42.3V144c0-17.6-14.4-32-32-32zM176 416c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm0-96c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm64 128c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm0-96c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm64 32c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm32 64c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm32-128c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16z"] };
  2714. var faAmbulance = { prefix: 'fas', iconName: 'ambulance', icon: [640, 512, [], "f0f9", "M624 352h-16V243.9c0-12.7-5.1-24.9-14.1-33.9L494 110.1c-9-9-21.2-14.1-33.9-14.1H416V48c0-26.5-21.5-48-48-48H48C21.5 0 0 21.5 0 48v320c0 26.5 21.5 48 48 48h16c0 53 43 96 96 96s96-43 96-96h128c0 53 43 96 96 96s96-43 96-96h48c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zM160 464c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm144-248c0 4.4-3.6 8-8 8h-56v56c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-56h-56c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h56v-56c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v56h56c4.4 0 8 3.6 8 8v48zm176 248c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm80-208H416V144h44.1l99.9 99.9V256z"] };
  2715. var faAmericanSignLanguageInterpreting = { prefix: 'fas', iconName: 'american-sign-language-interpreting', icon: [640, 512, [], "f2a3", "M290.547 189.039c-20.295-10.149-44.147-11.199-64.739-3.89 42.606 0 71.208 20.475 85.578 50.576 8.576 17.899-5.148 38.071-23.617 38.071 18.429 0 32.211 20.136 23.617 38.071-14.725 30.846-46.123 50.854-80.298 50.854-.557 0-94.471-8.615-94.471-8.615l-66.406 33.347c-9.384 4.693-19.815.379-23.895-7.781L1.86 290.747c-4.167-8.615-1.111-18.897 6.946-23.621l58.072-33.069L108 159.861c6.39-57.245 34.731-109.767 79.743-146.726 11.391-9.448 28.341-7.781 37.51 3.613 9.446 11.394 7.78 28.067-3.612 37.516-12.503 10.559-23.618 22.509-32.509 35.57 21.672-14.729 46.679-24.732 74.186-28.067 14.725-1.945 28.063 8.336 29.73 23.065 1.945 14.728-8.336 28.067-23.062 29.734-16.116 1.945-31.12 7.503-44.178 15.284 26.114-5.713 58.712-3.138 88.079 11.115 13.336 6.669 18.893 22.509 12.224 35.848-6.389 13.06-22.504 18.617-35.564 12.226zm-27.229 69.472c-6.112-12.505-18.338-20.286-32.231-20.286a35.46 35.46 0 0 0-35.565 35.57c0 21.428 17.808 35.57 35.565 35.57 13.893 0 26.119-7.781 32.231-20.286 4.446-9.449 13.614-15.006 23.339-15.284-9.725-.277-18.893-5.835-23.339-15.284zm374.821-37.237c4.168 8.615 1.111 18.897-6.946 23.621l-58.071 33.069L532 352.16c-6.39 57.245-34.731 109.767-79.743 146.726-10.932 9.112-27.799 8.144-37.51-3.613-9.446-11.394-7.78-28.067 3.613-37.516 12.503-10.559 23.617-22.509 32.508-35.57-21.672 14.729-46.679 24.732-74.186 28.067-10.021 2.506-27.552-5.643-29.73-23.065-1.945-14.728 8.336-28.067 23.062-29.734 16.116-1.946 31.12-7.503 44.178-15.284-26.114 5.713-58.712 3.138-88.079-11.115-13.336-6.669-18.893-22.509-12.224-35.848 6.389-13.061 22.505-18.619 35.565-12.227 20.295 10.149 44.147 11.199 64.739 3.89-42.606 0-71.208-20.475-85.578-50.576-8.576-17.899 5.148-38.071 23.617-38.071-18.429 0-32.211-20.136-23.617-38.071 14.033-29.396 44.039-50.887 81.966-50.854l92.803 8.615 66.406-33.347c9.408-4.704 19.828-.354 23.894 7.781l44.455 88.926zm-229.227-18.618c-13.893 0-26.119 7.781-32.231 20.286-4.446 9.449-13.614 15.006-23.339 15.284 9.725.278 18.893 5.836 23.339 15.284 6.112 12.505 18.338 20.286 32.231 20.286a35.46 35.46 0 0 0 35.565-35.57c0-21.429-17.808-35.57-35.565-35.57z"] };
  2716. var faAnchor = { prefix: 'fas', iconName: 'anchor', icon: [576, 512, [], "f13d", "M12.971 352h32.394C67.172 454.735 181.944 512 288 512c106.229 0 220.853-57.38 242.635-160h32.394c10.691 0 16.045-12.926 8.485-20.485l-67.029-67.029c-4.686-4.686-12.284-4.686-16.971 0l-67.029 67.029c-7.56 7.56-2.206 20.485 8.485 20.485h35.146c-20.29 54.317-84.963 86.588-144.117 94.015V256h52c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-52v-5.47c37.281-13.178 63.995-48.725 64-90.518C384.005 43.772 341.605.738 289.37.01 235.723-.739 192 42.525 192 96c0 41.798 26.716 77.35 64 90.53V192h-52c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h52v190.015c-58.936-7.399-123.82-39.679-144.117-94.015h35.146c10.691 0 16.045-12.926 8.485-20.485l-67.029-67.029c-4.686-4.686-12.284-4.686-16.971 0L4.485 331.515C-3.074 339.074 2.28 352 12.971 352zM288 64c17.645 0 32 14.355 32 32s-14.355 32-32 32-32-14.355-32-32 14.355-32 32-32z"] };
  2717. var faAngleDoubleDown = { prefix: 'fas', iconName: 'angle-double-down', icon: [320, 512, [], "f103", "M143 256.3L7 120.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0L313 86.3c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.4 9.5-24.6 9.5-34 .1zm34 192l136-136c9.4-9.4 9.4-24.6 0-33.9l-22.6-22.6c-9.4-9.4-24.6-9.4-33.9 0L160 352.1l-96.4-96.4c-9.4-9.4-24.6-9.4-33.9 0L7 278.3c-9.4 9.4-9.4 24.6 0 33.9l136 136c9.4 9.5 24.6 9.5 34 .1z"] };
  2718. var faAngleDoubleLeft = { prefix: 'fas', iconName: 'angle-double-left', icon: [448, 512, [], "f100", "M223.7 239l136-136c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L319.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L393.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34zm-192 34l136 136c9.4 9.4 24.6 9.4 33.9 0l22.6-22.6c9.4-9.4 9.4-24.6 0-33.9L127.9 256l96.4-96.4c9.4-9.4 9.4-24.6 0-33.9L201.7 103c-9.4-9.4-24.6-9.4-33.9 0l-136 136c-9.5 9.4-9.5 24.6-.1 34z"] };
  2719. var faAngleDoubleRight = { prefix: 'fas', iconName: 'angle-double-right', icon: [448, 512, [], "f101", "M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34zm192-34l-136-136c-9.4-9.4-24.6-9.4-33.9 0l-22.6 22.6c-9.4 9.4-9.4 24.6 0 33.9l96.4 96.4-96.4 96.4c-9.4 9.4-9.4 24.6 0 33.9l22.6 22.6c9.4 9.4 24.6 9.4 33.9 0l136-136c9.4-9.2 9.4-24.4 0-33.8z"] };
  2720. var faAngleDoubleUp = { prefix: 'fas', iconName: 'angle-double-up', icon: [320, 512, [], "f102", "M177 255.7l136 136c9.4 9.4 9.4 24.6 0 33.9l-22.6 22.6c-9.4 9.4-24.6 9.4-33.9 0L160 351.9l-96.4 96.4c-9.4 9.4-24.6 9.4-33.9 0L7 425.7c-9.4-9.4-9.4-24.6 0-33.9l136-136c9.4-9.5 24.6-9.5 34-.1zm-34-192L7 199.7c-9.4 9.4-9.4 24.6 0 33.9l22.6 22.6c9.4 9.4 24.6 9.4 33.9 0l96.4-96.4 96.4 96.4c9.4 9.4 24.6 9.4 33.9 0l22.6-22.6c9.4-9.4 9.4-24.6 0-33.9l-136-136c-9.2-9.4-24.4-9.4-33.8 0z"] };
  2721. var faAngleDown = { prefix: 'fas', iconName: 'angle-down', icon: [320, 512, [], "f107", "M143 352.3L7 216.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.2 9.4-24.4 9.4-33.8 0z"] };
  2722. var faAngleLeft = { prefix: 'fas', iconName: 'angle-left', icon: [256, 512, [], "f104", "M31.7 239l136-136c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L127.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L201.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34z"] };
  2723. var faAngleRight = { prefix: 'fas', iconName: 'angle-right', icon: [256, 512, [], "f105", "M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z"] };
  2724. var faAngleUp = { prefix: 'fas', iconName: 'angle-up', icon: [320, 512, [], "f106", "M177 159.7l136 136c9.4 9.4 9.4 24.6 0 33.9l-22.6 22.6c-9.4 9.4-24.6 9.4-33.9 0L160 255.9l-96.4 96.4c-9.4 9.4-24.6 9.4-33.9 0L7 329.7c-9.4-9.4-9.4-24.6 0-33.9l136-136c9.4-9.5 24.6-9.5 34-.1z"] };
  2725. var faAngry = { prefix: 'fas', iconName: 'angry', icon: [496, 512, [], "f556", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM136 240c0-9.3 4.1-17.5 10.5-23.4l-31-9.3c-8.5-2.5-13.3-11.5-10.7-19.9 2.5-8.5 11.4-13.2 19.9-10.7l80 24c8.5 2.5 13.3 11.5 10.7 19.9-2.1 6.9-8.4 11.4-15.3 11.4-.5 0-1.1-.2-1.7-.2.7 2.7 1.7 5.3 1.7 8.2 0 17.7-14.3 32-32 32S136 257.7 136 240zm168 154.2c-27.8-33.4-84.2-33.4-112.1 0-13.5 16.3-38.2-4.2-24.6-20.5 20-24 49.4-37.8 80.6-37.8s60.6 13.8 80.6 37.8c13.8 16.5-11.1 36.6-24.5 20.5zm76.6-186.9l-31 9.3c6.3 5.8 10.5 14.1 10.5 23.4 0 17.7-14.3 32-32 32s-32-14.3-32-32c0-2.9.9-5.6 1.7-8.2-.6.1-1.1.2-1.7.2-6.9 0-13.2-4.5-15.3-11.4-2.5-8.5 2.3-17.4 10.7-19.9l80-24c8.4-2.5 17.4 2.3 19.9 10.7 2.5 8.5-2.3 17.4-10.8 19.9z"] };
  2726. var faAnkh = { prefix: 'fas', iconName: 'ankh', icon: [320, 512, [], "f644", "M296 256h-44.62C272.46 222.01 288 181.65 288 144 288 55.63 230.69 0 160 0S32 55.63 32 144c0 37.65 15.54 78.01 36.62 112H24c-13.25 0-24 10.74-24 24v32c0 13.25 10.75 24 24 24h96v152c0 13.25 10.75 24 24 24h32c13.25 0 24-10.75 24-24V336h96c13.25 0 24-10.75 24-24v-32c0-13.26-10.75-24-24-24zM160 80c29.61 0 48 24.52 48 64 0 34.66-27.14 78.14-48 100.87-20.86-22.72-48-66.21-48-100.87 0-39.48 18.39-64 48-64z"] };
  2727. var faAppleAlt = { prefix: 'fas', iconName: 'apple-alt', icon: [448, 512, [], "f5d1", "M350.85 129c25.97 4.67 47.27 18.67 63.92 42 14.65 20.67 24.64 46.67 29.96 78 4.67 28.67 4.32 57.33-1 86-7.99 47.33-23.97 87-47.94 119-28.64 38.67-64.59 58-107.87 58-10.66 0-22.3-3.33-34.96-10-8.66-5.33-18.31-8-28.97-8s-20.3 2.67-28.97 8c-12.66 6.67-24.3 10-34.96 10-43.28 0-79.23-19.33-107.87-58-23.97-32-39.95-71.67-47.94-119-5.32-28.67-5.67-57.33-1-86 5.32-31.33 15.31-57.33 29.96-78 16.65-23.33 37.95-37.33 63.92-42 15.98-2.67 37.95-.33 65.92 7 23.97 6.67 44.28 14.67 60.93 24 16.65-9.33 36.96-17.33 60.93-24 27.98-7.33 49.96-9.67 65.94-7zm-54.94-41c-9.32 8.67-21.65 15-36.96 19-10.66 3.33-22.3 5-34.96 5l-14.98-1c-1.33-9.33-1.33-20 0-32 2.67-24 10.32-42.33 22.97-55 9.32-8.67 21.65-15 36.96-19 10.66-3.33 22.3-5 34.96-5l14.98 1 1 15c0 12.67-1.67 24.33-4.99 35-3.99 15.33-10.31 27.67-18.98 37z"] };
  2728. var faArchive = { prefix: 'fas', iconName: 'archive', icon: [512, 512, [], "f187", "M32 448c0 17.7 14.3 32 32 32h384c17.7 0 32-14.3 32-32V160H32v288zm160-212c0-6.6 5.4-12 12-12h104c6.6 0 12 5.4 12 12v8c0 6.6-5.4 12-12 12H204c-6.6 0-12-5.4-12-12v-8zM480 32H32C14.3 32 0 46.3 0 64v48c0 8.8 7.2 16 16 16h480c8.8 0 16-7.2 16-16V64c0-17.7-14.3-32-32-32z"] };
  2729. var faArchway = { prefix: 'fas', iconName: 'archway', icon: [576, 512, [], "f557", "M560 448h-16V96H32v352H16.02c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16H176c8.84 0 16-7.16 16-16V320c0-53.02 42.98-96 96-96s96 42.98 96 96l.02 160v16c0 8.84 7.16 16 16 16H560c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zm0-448H16C7.16 0 0 7.16 0 16v32c0 8.84 7.16 16 16 16h544c8.84 0 16-7.16 16-16V16c0-8.84-7.16-16-16-16z"] };
  2730. var faArrowAltCircleDown = { prefix: 'fas', iconName: 'arrow-alt-circle-down', icon: [512, 512, [], "f358", "M504 256c0 137-111 248-248 248S8 393 8 256 119 8 256 8s248 111 248 248zM212 140v116h-70.9c-10.7 0-16.1 13-8.5 20.5l114.9 114.3c4.7 4.7 12.2 4.7 16.9 0l114.9-114.3c7.6-7.6 2.2-20.5-8.5-20.5H300V140c0-6.6-5.4-12-12-12h-64c-6.6 0-12 5.4-12 12z"] };
  2731. var faArrowAltCircleLeft = { prefix: 'fas', iconName: 'arrow-alt-circle-left', icon: [512, 512, [], "f359", "M256 504C119 504 8 393 8 256S119 8 256 8s248 111 248 248-111 248-248 248zm116-292H256v-70.9c0-10.7-13-16.1-20.5-8.5L121.2 247.5c-4.7 4.7-4.7 12.2 0 16.9l114.3 114.9c7.6 7.6 20.5 2.2 20.5-8.5V300h116c6.6 0 12-5.4 12-12v-64c0-6.6-5.4-12-12-12z"] };
  2732. var faArrowAltCircleRight = { prefix: 'fas', iconName: 'arrow-alt-circle-right', icon: [512, 512, [], "f35a", "M256 8c137 0 248 111 248 248S393 504 256 504 8 393 8 256 119 8 256 8zM140 300h116v70.9c0 10.7 13 16.1 20.5 8.5l114.3-114.9c4.7-4.7 4.7-12.2 0-16.9l-114.3-115c-7.6-7.6-20.5-2.2-20.5 8.5V212H140c-6.6 0-12 5.4-12 12v64c0 6.6 5.4 12 12 12z"] };
  2733. var faArrowAltCircleUp = { prefix: 'fas', iconName: 'arrow-alt-circle-up', icon: [512, 512, [], "f35b", "M8 256C8 119 119 8 256 8s248 111 248 248-111 248-248 248S8 393 8 256zm292 116V256h70.9c10.7 0 16.1-13 8.5-20.5L264.5 121.2c-4.7-4.7-12.2-4.7-16.9 0l-115 114.3c-7.6 7.6-2.2 20.5 8.5 20.5H212v116c0 6.6 5.4 12 12 12h64c6.6 0 12-5.4 12-12z"] };
  2734. var faArrowCircleDown = { prefix: 'fas', iconName: 'arrow-circle-down', icon: [512, 512, [], "f0ab", "M504 256c0 137-111 248-248 248S8 393 8 256 119 8 256 8s248 111 248 248zm-143.6-28.9L288 302.6V120c0-13.3-10.7-24-24-24h-16c-13.3 0-24 10.7-24 24v182.6l-72.4-75.5c-9.3-9.7-24.8-9.9-34.3-.4l-10.9 11c-9.4 9.4-9.4 24.6 0 33.9L239 404.3c9.4 9.4 24.6 9.4 33.9 0l132.7-132.7c9.4-9.4 9.4-24.6 0-33.9l-10.9-11c-9.5-9.5-25-9.3-34.3.4z"] };
  2735. var faArrowCircleLeft = { prefix: 'fas', iconName: 'arrow-circle-left', icon: [512, 512, [], "f0a8", "M256 504C119 504 8 393 8 256S119 8 256 8s248 111 248 248-111 248-248 248zm28.9-143.6L209.4 288H392c13.3 0 24-10.7 24-24v-16c0-13.3-10.7-24-24-24H209.4l75.5-72.4c9.7-9.3 9.9-24.8.4-34.3l-11-10.9c-9.4-9.4-24.6-9.4-33.9 0L107.7 239c-9.4 9.4-9.4 24.6 0 33.9l132.7 132.7c9.4 9.4 24.6 9.4 33.9 0l11-10.9c9.5-9.5 9.3-25-.4-34.3z"] };
  2736. var faArrowCircleRight = { prefix: 'fas', iconName: 'arrow-circle-right', icon: [512, 512, [], "f0a9", "M256 8c137 0 248 111 248 248S393 504 256 504 8 393 8 256 119 8 256 8zm-28.9 143.6l75.5 72.4H120c-13.3 0-24 10.7-24 24v16c0 13.3 10.7 24 24 24h182.6l-75.5 72.4c-9.7 9.3-9.9 24.8-.4 34.3l11 10.9c9.4 9.4 24.6 9.4 33.9 0L404.3 273c9.4-9.4 9.4-24.6 0-33.9L271.6 106.3c-9.4-9.4-24.6-9.4-33.9 0l-11 10.9c-9.5 9.6-9.3 25.1.4 34.4z"] };
  2737. var faArrowCircleUp = { prefix: 'fas', iconName: 'arrow-circle-up', icon: [512, 512, [], "f0aa", "M8 256C8 119 119 8 256 8s248 111 248 248-111 248-248 248S8 393 8 256zm143.6 28.9l72.4-75.5V392c0 13.3 10.7 24 24 24h16c13.3 0 24-10.7 24-24V209.4l72.4 75.5c9.3 9.7 24.8 9.9 34.3.4l10.9-11c9.4-9.4 9.4-24.6 0-33.9L273 107.7c-9.4-9.4-24.6-9.4-33.9 0L106.3 240.4c-9.4 9.4-9.4 24.6 0 33.9l10.9 11c9.6 9.5 25.1 9.3 34.4-.4z"] };
  2738. var faArrowDown = { prefix: 'fas', iconName: 'arrow-down', icon: [448, 512, [], "f063", "M413.1 222.5l22.2 22.2c9.4 9.4 9.4 24.6 0 33.9L241 473c-9.4 9.4-24.6 9.4-33.9 0L12.7 278.6c-9.4-9.4-9.4-24.6 0-33.9l22.2-22.2c9.5-9.5 25-9.3 34.3.4L184 343.4V56c0-13.3 10.7-24 24-24h32c13.3 0 24 10.7 24 24v287.4l114.8-120.5c9.3-9.8 24.8-10 34.3-.4z"] };
  2739. var faArrowLeft = { prefix: 'fas', iconName: 'arrow-left', icon: [448, 512, [], "f060", "M257.5 445.1l-22.2 22.2c-9.4 9.4-24.6 9.4-33.9 0L7 273c-9.4-9.4-9.4-24.6 0-33.9L201.4 44.7c9.4-9.4 24.6-9.4 33.9 0l22.2 22.2c9.5 9.5 9.3 25-.4 34.3L136.6 216H424c13.3 0 24 10.7 24 24v32c0 13.3-10.7 24-24 24H136.6l120.5 114.8c9.8 9.3 10 24.8.4 34.3z"] };
  2740. var faArrowRight = { prefix: 'fas', iconName: 'arrow-right', icon: [448, 512, [], "f061", "M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z"] };
  2741. var faArrowUp = { prefix: 'fas', iconName: 'arrow-up', icon: [448, 512, [], "f062", "M34.9 289.5l-22.2-22.2c-9.4-9.4-9.4-24.6 0-33.9L207 39c9.4-9.4 24.6-9.4 33.9 0l194.3 194.3c9.4 9.4 9.4 24.6 0 33.9L413 289.4c-9.5 9.5-25 9.3-34.3-.4L264 168.6V456c0 13.3-10.7 24-24 24h-32c-13.3 0-24-10.7-24-24V168.6L69.2 289.1c-9.3 9.8-24.8 10-34.3.4z"] };
  2742. var faArrowsAlt = { prefix: 'fas', iconName: 'arrows-alt', icon: [512, 512, [], "f0b2", "M352.201 425.775l-79.196 79.196c-9.373 9.373-24.568 9.373-33.941 0l-79.196-79.196c-15.119-15.119-4.411-40.971 16.971-40.97h51.162L228 284H127.196v51.162c0 21.382-25.851 32.09-40.971 16.971L7.029 272.937c-9.373-9.373-9.373-24.569 0-33.941L86.225 159.8c15.119-15.119 40.971-4.411 40.971 16.971V228H228V127.196h-51.23c-21.382 0-32.09-25.851-16.971-40.971l79.196-79.196c9.373-9.373 24.568-9.373 33.941 0l79.196 79.196c15.119 15.119 4.411 40.971-16.971 40.971h-51.162V228h100.804v-51.162c0-21.382 25.851-32.09 40.97-16.971l79.196 79.196c9.373 9.373 9.373 24.569 0 33.941L425.773 352.2c-15.119 15.119-40.971 4.411-40.97-16.971V284H284v100.804h51.23c21.382 0 32.09 25.851 16.971 40.971z"] };
  2743. var faArrowsAltH = { prefix: 'fas', iconName: 'arrows-alt-h', icon: [512, 512, [], "f337", "M377.941 169.941V216H134.059v-46.059c0-21.382-25.851-32.09-40.971-16.971L7.029 239.029c-9.373 9.373-9.373 24.568 0 33.941l86.059 86.059c15.119 15.119 40.971 4.411 40.971-16.971V296h243.882v46.059c0 21.382 25.851 32.09 40.971 16.971l86.059-86.059c9.373-9.373 9.373-24.568 0-33.941l-86.059-86.059c-15.119-15.12-40.971-4.412-40.971 16.97z"] };
  2744. var faArrowsAltV = { prefix: 'fas', iconName: 'arrows-alt-v', icon: [256, 512, [], "f338", "M214.059 377.941H168V134.059h46.059c21.382 0 32.09-25.851 16.971-40.971L144.971 7.029c-9.373-9.373-24.568-9.373-33.941 0L24.971 93.088c-15.119 15.119-4.411 40.971 16.971 40.971H88v243.882H41.941c-21.382 0-32.09 25.851-16.971 40.971l86.059 86.059c9.373 9.373 24.568 9.373 33.941 0l86.059-86.059c15.12-15.119 4.412-40.971-16.97-40.971z"] };
  2745. var faAssistiveListeningSystems = { prefix: 'fas', iconName: 'assistive-listening-systems', icon: [512, 512, [], "f2a2", "M216 260c0 15.464-12.536 28-28 28s-28-12.536-28-28c0-44.112 35.888-80 80-80s80 35.888 80 80c0 15.464-12.536 28-28 28s-28-12.536-28-28c0-13.234-10.767-24-24-24s-24 10.766-24 24zm24-176c-97.047 0-176 78.953-176 176 0 15.464 12.536 28 28 28s28-12.536 28-28c0-66.168 53.832-120 120-120s120 53.832 120 120c0 75.164-71.009 70.311-71.997 143.622L288 404c0 28.673-23.327 52-52 52-15.464 0-28 12.536-28 28s12.536 28 28 28c59.475 0 107.876-48.328 108-107.774.595-34.428 72-48.24 72-144.226 0-97.047-78.953-176-176-176zm-80 236c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zM32 448c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm480-187.993c0-1.518-.012-3.025-.045-4.531C510.076 140.525 436.157 38.47 327.994 1.511c-14.633-4.998-30.549 2.809-35.55 17.442-5 14.633 2.81 30.549 17.442 35.55 85.906 29.354 144.61 110.513 146.077 201.953l.003.188c.026 1.118.033 2.236.033 3.363 0 15.464 12.536 28 28 28s28.001-12.536 28.001-28zM152.971 439.029l-80-80L39.03 392.97l80 80 33.941-33.941z"] };
  2746. var faAsterisk = { prefix: 'fas', iconName: 'asterisk', icon: [512, 512, [], "f069", "M478.21 334.093L336 256l142.21-78.093c11.795-6.477 15.961-21.384 9.232-33.037l-19.48-33.741c-6.728-11.653-21.72-15.499-33.227-8.523L296 186.718l3.475-162.204C299.763 11.061 288.937 0 275.48 0h-38.96c-13.456 0-24.283 11.061-23.994 24.514L216 186.718 77.265 102.607c-11.506-6.976-26.499-3.13-33.227 8.523l-19.48 33.741c-6.728 11.653-2.562 26.56 9.233 33.037L176 256 33.79 334.093c-11.795 6.477-15.961 21.384-9.232 33.037l19.48 33.741c6.728 11.653 21.721 15.499 33.227 8.523L216 325.282l-3.475 162.204C212.237 500.939 223.064 512 236.52 512h38.961c13.456 0 24.283-11.061 23.995-24.514L296 325.282l138.735 84.111c11.506 6.976 26.499 3.13 33.227-8.523l19.48-33.741c6.728-11.653 2.563-26.559-9.232-33.036z"] };
  2747. var faAt = { prefix: 'fas', iconName: 'at', icon: [512, 512, [], "f1fa", "M256 8C118.941 8 8 118.919 8 256c0 137.059 110.919 248 248 248 48.154 0 95.342-14.14 135.408-40.223 12.005-7.815 14.625-24.288 5.552-35.372l-10.177-12.433c-7.671-9.371-21.179-11.667-31.373-5.129C325.92 429.757 291.314 440 256 440c-101.458 0-184-82.542-184-184S154.542 72 256 72c100.139 0 184 57.619 184 160 0 38.786-21.093 79.742-58.17 83.693-17.349-.454-16.91-12.857-13.476-30.024l23.433-121.11C394.653 149.75 383.308 136 368.225 136h-44.981a13.518 13.518 0 0 0-13.432 11.993l-.01.092c-14.697-17.901-40.448-21.775-59.971-21.775-74.58 0-137.831 62.234-137.831 151.46 0 65.303 36.785 105.87 96 105.87 26.984 0 57.369-15.637 74.991-38.333 9.522 34.104 40.613 34.103 70.71 34.103C462.609 379.41 504 307.798 504 232 504 95.653 394.023 8 256 8zm-21.68 304.43c-22.249 0-36.07-15.623-36.07-40.771 0-44.993 30.779-72.729 58.63-72.729 22.292 0 35.601 15.241 35.601 40.77 0 45.061-33.875 72.73-58.161 72.73z"] };
  2748. var faAtlas = { prefix: 'fas', iconName: 'atlas', icon: [448, 512, [], "f558", "M318.38 208h-39.09c-1.49 27.03-6.54 51.35-14.21 70.41 27.71-13.24 48.02-39.19 53.3-70.41zm0-32c-5.29-31.22-25.59-57.17-53.3-70.41 7.68 19.06 12.72 43.38 14.21 70.41h39.09zM224 97.31c-7.69 7.45-20.77 34.42-23.43 78.69h46.87c-2.67-44.26-15.75-71.24-23.44-78.69zm-41.08 8.28c-27.71 13.24-48.02 39.19-53.3 70.41h39.09c1.49-27.03 6.53-51.35 14.21-70.41zm0 172.82c-7.68-19.06-12.72-43.38-14.21-70.41h-39.09c5.28 31.22 25.59 57.17 53.3 70.41zM247.43 208h-46.87c2.66 44.26 15.74 71.24 23.43 78.69 7.7-7.45 20.78-34.43 23.44-78.69zM448 358.4V25.6c0-16-9.6-25.6-25.6-25.6H96C41.6 0 0 41.6 0 96v320c0 54.4 41.6 96 96 96h326.4c12.8 0 25.6-9.6 25.6-25.6v-16c0-6.4-3.2-12.8-9.6-19.2-3.2-16-3.2-60.8 0-73.6 6.4-3.2 9.6-9.6 9.6-19.2zM224 64c70.69 0 128 57.31 128 128s-57.31 128-128 128S96 262.69 96 192 153.31 64 224 64zm160 384H96c-19.2 0-32-12.8-32-32s16-32 32-32h288v64z"] };
  2749. var faAtom = { prefix: 'fas', iconName: 'atom', icon: [448, 512, [], "f5d2", "M413.03 256c40.13-54.89 41.51-98.62 25.14-128-10.91-19.52-40.54-50.73-116.33-41.88C300.36 34.89 267.64 0 224 0s-76.36 34.89-97.84 86.12C50.43 77.34 20.73 108.48 9.83 128c-16.38 29.4-15 73.09 25.14 128-40.13 54.89-41.51 98.62-25.14 128 29.21 52.34 101.68 43.58 116.33 41.88C147.63 477.1 180.36 512 224 512s76.37-34.9 97.84-86.12c14.64 1.7 87.11 10.46 116.33-41.88 16.38-29.4 15-73.09-25.14-128zM63.38 352c-4.03-7.21-.19-24.8 14.95-48.29 6.96 6.53 14.2 12.89 21.87 19.18 1.71 13.71 4 27.08 6.76 40.08-24.56.89-39.89-4.37-43.58-10.97zm36.82-162.88c-7.66 6.29-14.9 12.65-21.87 19.18-15.13-23.5-18.97-41.09-14.95-48.3 3.41-6.14 16.39-11.47 37.92-11.47 1.71 0 3.87.3 5.69.37a472.191 472.191 0 0 0-6.79 40.22zM224 64c9.47 0 22.2 13.52 33.86 37.26-11.19 3.7-22.44 8-33.86 12.86-11.42-4.86-22.67-9.16-33.86-12.86C201.8 77.52 214.53 64 224 64zm0 384c-9.47 0-22.2-13.52-33.86-37.26 11.19-3.7 22.44-8 33.86-12.86 11.42 4.86 22.67 9.16 33.86 12.86C246.2 434.48 233.47 448 224 448zm62.5-157.33c-26.7 19.08-46.14 29.33-62.5 37.48-16.35-8.14-35.8-18.41-62.5-37.48-1.99-27.79-1.99-41.54 0-69.33 26.67-19.05 46.13-29.32 62.5-37.48 16.39 8.17 35.86 18.44 62.5 37.48 1.98 27.78 1.99 41.53 0 69.33zM384.62 352c-3.67 6.62-19 11.82-43.58 10.95 2.76-13 5.05-26.37 6.76-40.06 7.66-6.29 14.9-12.65 21.87-19.18 15.13 23.49 18.97 41.08 14.95 48.29zm-14.95-143.71c-6.96-6.53-14.2-12.89-21.87-19.18a473.535 473.535 0 0 0-6.79-40.22c1.82-.07 3.97-.37 5.69-.37 21.52 0 34.51 5.34 37.92 11.47 4.02 7.22.18 24.81-14.95 48.3zM224 224c-17.67 0-32 14.33-32 32s14.33 32 32 32 32-14.33 32-32-14.33-32-32-32z"] };
  2750. var faAudioDescription = { prefix: 'fas', iconName: 'audio-description', icon: [512, 512, [], "f29e", "M162.925 238.709l8.822 30.655h-25.606l9.041-30.652c1.277-4.421 2.651-9.994 3.872-15.245 1.22 5.251 2.594 10.823 3.871 15.242zm166.474-32.099h-14.523v98.781h14.523c29.776 0 46.175-17.678 46.175-49.776 0-32.239-17.49-49.005-46.175-49.005zM512 112v288c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48zM245.459 336.139l-57.097-168A12.001 12.001 0 0 0 177 160h-35.894a12.001 12.001 0 0 0-11.362 8.139l-57.097 168C70.003 343.922 75.789 352 84.009 352h29.133a12 12 0 0 0 11.535-8.693l8.574-29.906h51.367l8.793 29.977A12 12 0 0 0 204.926 352h29.172c8.22 0 14.006-8.078 11.361-15.861zm184.701-80.525c0-58.977-37.919-95.614-98.96-95.614h-57.366c-6.627 0-12 5.373-12 12v168c0 6.627 5.373 12 12 12H331.2c61.041 0 98.96-36.933 98.96-96.386z"] };
  2751. var faAward = { prefix: 'fas', iconName: 'award', icon: [384, 512, [], "f559", "M97.12 362.63c-8.69-8.69-4.16-6.24-25.12-11.85-9.51-2.55-17.87-7.45-25.43-13.32L1.2 448.7c-4.39 10.77 3.81 22.47 15.43 22.03l52.69-2.01L105.56 507c8 8.44 22.04 5.81 26.43-4.96l52.05-127.62c-10.84 6.04-22.87 9.58-35.31 9.58-19.5 0-37.82-7.59-51.61-21.37zM382.8 448.7l-45.37-111.24c-7.56 5.88-15.92 10.77-25.43 13.32-21.07 5.64-16.45 3.18-25.12 11.85-13.79 13.78-32.12 21.37-51.62 21.37-12.44 0-24.47-3.55-35.31-9.58L252 502.04c4.39 10.77 18.44 13.4 26.43 4.96l36.25-38.28 52.69 2.01c11.62.44 19.82-11.27 15.43-22.03zM263 340c15.28-15.55 17.03-14.21 38.79-20.14 13.89-3.79 24.75-14.84 28.47-28.98 7.48-28.4 5.54-24.97 25.95-45.75 10.17-10.35 14.14-25.44 10.42-39.58-7.47-28.38-7.48-24.42 0-52.83 3.72-14.14-.25-29.23-10.42-39.58-20.41-20.78-18.47-17.36-25.95-45.75-3.72-14.14-14.58-25.19-28.47-28.98-27.88-7.61-24.52-5.62-44.95-26.41-10.17-10.35-25-14.4-38.89-10.61-27.87 7.6-23.98 7.61-51.9 0-13.89-3.79-28.72.25-38.89 10.61-20.41 20.78-17.05 18.8-44.94 26.41-13.89 3.79-24.75 14.84-28.47 28.98-7.47 28.39-5.54 24.97-25.95 45.75-10.17 10.35-14.15 25.44-10.42 39.58 7.47 28.36 7.48 24.4 0 52.82-3.72 14.14.25 29.23 10.42 39.59 20.41 20.78 18.47 17.35 25.95 45.75 3.72 14.14 14.58 25.19 28.47 28.98C104.6 325.96 106.27 325 121 340c13.23 13.47 33.84 15.88 49.74 5.82a39.676 39.676 0 0 1 42.53 0c15.89 10.06 36.5 7.65 49.73-5.82zM97.66 175.96c0-53.03 42.24-96.02 94.34-96.02s94.34 42.99 94.34 96.02-42.24 96.02-94.34 96.02-94.34-42.99-94.34-96.02z"] };
  2752. var faBackspace = { prefix: 'fas', iconName: 'backspace', icon: [640, 512, [], "f55a", "M576 64H205.26A63.97 63.97 0 0 0 160 82.75L9.37 233.37c-12.5 12.5-12.5 32.76 0 45.25L160 429.25c12 12 28.28 18.75 45.25 18.75H576c35.35 0 64-28.65 64-64V128c0-35.35-28.65-64-64-64zm-84.69 254.06c6.25 6.25 6.25 16.38 0 22.63l-22.62 22.62c-6.25 6.25-16.38 6.25-22.63 0L384 301.25l-62.06 62.06c-6.25 6.25-16.38 6.25-22.63 0l-22.62-22.62c-6.25-6.25-6.25-16.38 0-22.63L338.75 256l-62.06-62.06c-6.25-6.25-6.25-16.38 0-22.63l22.62-22.62c6.25-6.25 16.38-6.25 22.63 0L384 210.75l62.06-62.06c6.25-6.25 16.38-6.25 22.63 0l22.62 22.62c6.25 6.25 6.25 16.38 0 22.63L429.25 256l62.06 62.06z"] };
  2753. var faBackward = { prefix: 'fas', iconName: 'backward', icon: [512, 512, [], "f04a", "M11.5 280.6l192 160c20.6 17.2 52.5 2.8 52.5-24.6V96c0-27.4-31.9-41.8-52.5-24.6l-192 160c-15.3 12.8-15.3 36.4 0 49.2zm256 0l192 160c20.6 17.2 52.5 2.8 52.5-24.6V96c0-27.4-31.9-41.8-52.5-24.6l-192 160c-15.3 12.8-15.3 36.4 0 49.2z"] };
  2754. var faBalanceScale = { prefix: 'fas', iconName: 'balance-scale', icon: [640, 512, [], "f24e", "M256 336h-.02c0-16.18 1.34-8.73-85.05-181.51-17.65-35.29-68.19-35.36-85.87 0C-2.06 328.75.02 320.33.02 336H0c0 44.18 57.31 80 128 80s128-35.82 128-80zM128 176l72 144H56l72-144zm511.98 160c0-16.18 1.34-8.73-85.05-181.51-17.65-35.29-68.19-35.36-85.87 0-87.12 174.26-85.04 165.84-85.04 181.51H384c0 44.18 57.31 80 128 80s128-35.82 128-80h-.02zM440 320l72-144 72 144H440zm88 128H352V153.25c23.51-10.29 41.16-31.48 46.39-57.25H528c8.84 0 16-7.16 16-16V48c0-8.84-7.16-16-16-16H383.64C369.04 12.68 346.09 0 320 0s-49.04 12.68-63.64 32H112c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h129.61c5.23 25.76 22.87 46.96 46.39 57.25V448H112c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h416c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z"] };
  2755. var faBan = { prefix: 'fas', iconName: 'ban', icon: [512, 512, [], "f05e", "M256 8C119.034 8 8 119.033 8 256s111.034 248 248 248 248-111.034 248-248S392.967 8 256 8zm130.108 117.892c65.448 65.448 70 165.481 20.677 235.637L150.47 105.216c70.204-49.356 170.226-44.735 235.638 20.676zM125.892 386.108c-65.448-65.448-70-165.481-20.677-235.637L361.53 406.784c-70.203 49.356-170.226 44.736-235.638-20.676z"] };
  2756. var faBandAid = { prefix: 'fas', iconName: 'band-aid', icon: [640, 512, [], "f462", "M0 160v192c0 35.3 28.7 64 64 64h96V96H64c-35.3 0-64 28.7-64 64zm576-64h-96v320h96c35.3 0 64-28.7 64-64V160c0-35.3-28.7-64-64-64zM192 416h256V96H192v320zm176-232c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24zm0 96c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24zm-96-96c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24zm0 96c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24z"] };
  2757. var faBarcode = { prefix: 'fas', iconName: 'barcode', icon: [512, 512, [], "f02a", "M0 448V64h18v384H0zm26.857-.273V64H36v383.727h-9.143zm27.143 0V64h8.857v383.727H54zm44.857 0V64h8.857v383.727h-8.857zm36 0V64h17.714v383.727h-17.714zm44.857 0V64h8.857v383.727h-8.857zm18 0V64h8.857v383.727h-8.857zm18 0V64h8.857v383.727h-8.857zm35.715 0V64h18v383.727h-18zm44.857 0V64h18v383.727h-18zm35.999 0V64h18.001v383.727h-18.001zm36.001 0V64h18.001v383.727h-18.001zm26.857 0V64h18v383.727h-18zm45.143 0V64h26.857v383.727h-26.857zm35.714 0V64h9.143v383.727H476zm18 .273V64h18v384h-18z"] };
  2758. var faBars = { prefix: 'fas', iconName: 'bars', icon: [448, 512, [], "f0c9", "M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"] };
  2759. var faBaseballBall = { prefix: 'fas', iconName: 'baseball-ball', icon: [496, 512, [], "f433", "M368.5 363.9l28.8-13.9c11.1 22.9 26 43.2 44.1 60.9 34-42.5 54.5-96.3 54.5-154.9 0-58.5-20.4-112.2-54.2-154.6-17.8 17.3-32.6 37.1-43.6 59.5l-28.7-14.1c12.8-26 30-49 50.8-69C375.6 34.7 315 8 248 8 181.1 8 120.5 34.6 75.9 77.7c20.7 19.9 37.9 42.9 50.7 68.8l-28.7 14.1c-11-22.3-25.7-42.1-43.5-59.4C20.4 143.7 0 197.4 0 256c0 58.6 20.4 112.3 54.4 154.7 18.2-17.7 33.2-38 44.3-61l28.8 13.9c-12.9 26.7-30.3 50.3-51.5 70.7 44.5 43.1 105.1 69.7 172 69.7 66.8 0 127.3-26.5 171.9-69.5-21.1-20.4-38.5-43.9-51.4-70.6zm-228.3-32l-30.5-9.8c14.9-46.4 12.7-93.8-.6-134l30.4-10c15 45.6 18 99.9.7 153.8zm216.3-153.4l30.4 10c-13.2 40.1-15.5 87.5-.6 134l-30.5 9.8c-17.3-54-14.3-108.3.7-153.8z"] };
  2760. var faBasketballBall = { prefix: 'fas', iconName: 'basketball-ball', icon: [496, 512, [], "f434", "M212.3 10.3c-43.8 6.3-86.2 24.1-122.2 53.8l77.4 77.4c27.8-35.8 43.3-81.2 44.8-131.2zM248 222L405.9 64.1c-42.4-35-93.6-53.5-145.5-56.1-1.2 63.9-21.5 122.3-58.7 167.7L248 222zM56.1 98.1c-29.7 36-47.5 78.4-53.8 122.2 50-1.5 95.5-17 131.2-44.8L56.1 98.1zm272.2 204.2c45.3-37.1 103.7-57.4 167.7-58.7-2.6-51.9-21.1-103.1-56.1-145.5L282 256l46.3 46.3zM248 290L90.1 447.9c42.4 34.9 93.6 53.5 145.5 56.1 1.3-64 21.6-122.4 58.7-167.7L248 290zm191.9 123.9c29.7-36 47.5-78.4 53.8-122.2-50.1 1.6-95.5 17.1-131.2 44.8l77.4 77.4zM167.7 209.7C122.3 246.9 63.9 267.3 0 268.4c2.6 51.9 21.1 103.1 56.1 145.5L214 256l-46.3-46.3zm116 292c43.8-6.3 86.2-24.1 122.2-53.8l-77.4-77.4c-27.7 35.7-43.2 81.2-44.8 131.2z"] };
  2761. var faBath = { prefix: 'fas', iconName: 'bath', icon: [512, 512, [], "f2cd", "M488 256H80V112c0-17.645 14.355-32 32-32 11.351 0 21.332 5.945 27.015 14.88-16.492 25.207-14.687 59.576 6.838 83.035-4.176 4.713-4.021 11.916.491 16.428l11.314 11.314c4.686 4.686 12.284 4.686 16.971 0l95.03-95.029c4.686-4.686 4.686-12.284 0-16.971l-11.314-11.314c-4.512-4.512-11.715-4.666-16.428-.491-17.949-16.469-42.294-21.429-64.178-15.365C163.281 45.667 139.212 32 112 32c-44.112 0-80 35.888-80 80v144h-8c-13.255 0-24 10.745-24 24v16c0 13.255 10.745 24 24 24h8v32c0 28.43 12.362 53.969 32 71.547V456c0 13.255 10.745 24 24 24h16c13.255 0 24-10.745 24-24v-8h256v8c0 13.255 10.745 24 24 24h16c13.255 0 24-10.745 24-24v-32.453c19.638-17.578 32-43.117 32-71.547v-32h8c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24z"] };
  2762. var faBatteryEmpty = { prefix: 'fas', iconName: 'battery-empty', icon: [640, 512, [], "f244", "M544 160v64h32v64h-32v64H64V160h480m16-64H48c-26.51 0-48 21.49-48 48v224c0 26.51 21.49 48 48 48h512c26.51 0 48-21.49 48-48v-16h8c13.255 0 24-10.745 24-24V184c0-13.255-10.745-24-24-24h-8v-16c0-26.51-21.49-48-48-48z"] };
  2763. var faBatteryFull = { prefix: 'fas', iconName: 'battery-full', icon: [640, 512, [], "f240", "M544 160v64h32v64h-32v64H64V160h480m16-64H48c-26.51 0-48 21.49-48 48v224c0 26.51 21.49 48 48 48h512c26.51 0 48-21.49 48-48v-16h8c13.255 0 24-10.745 24-24V184c0-13.255-10.745-24-24-24h-8v-16c0-26.51-21.49-48-48-48zm-48 96H96v128h416V192z"] };
  2764. var faBatteryHalf = { prefix: 'fas', iconName: 'battery-half', icon: [640, 512, [], "f242", "M544 160v64h32v64h-32v64H64V160h480m16-64H48c-26.51 0-48 21.49-48 48v224c0 26.51 21.49 48 48 48h512c26.51 0 48-21.49 48-48v-16h8c13.255 0 24-10.745 24-24V184c0-13.255-10.745-24-24-24h-8v-16c0-26.51-21.49-48-48-48zm-240 96H96v128h224V192z"] };
  2765. var faBatteryQuarter = { prefix: 'fas', iconName: 'battery-quarter', icon: [640, 512, [], "f243", "M544 160v64h32v64h-32v64H64V160h480m16-64H48c-26.51 0-48 21.49-48 48v224c0 26.51 21.49 48 48 48h512c26.51 0 48-21.49 48-48v-16h8c13.255 0 24-10.745 24-24V184c0-13.255-10.745-24-24-24h-8v-16c0-26.51-21.49-48-48-48zm-336 96H96v128h128V192z"] };
  2766. var faBatteryThreeQuarters = { prefix: 'fas', iconName: 'battery-three-quarters', icon: [640, 512, [], "f241", "M544 160v64h32v64h-32v64H64V160h480m16-64H48c-26.51 0-48 21.49-48 48v224c0 26.51 21.49 48 48 48h512c26.51 0 48-21.49 48-48v-16h8c13.255 0 24-10.745 24-24V184c0-13.255-10.745-24-24-24h-8v-16c0-26.51-21.49-48-48-48zm-144 96H96v128h320V192z"] };
  2767. var faBed = { prefix: 'fas', iconName: 'bed', icon: [640, 512, [], "f236", "M176 256c44.11 0 80-35.89 80-80s-35.89-80-80-80-80 35.89-80 80 35.89 80 80 80zm352-128H304c-8.84 0-16 7.16-16 16v144H64V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v352c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-48h512v48c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16V240c0-61.86-50.14-112-112-112z"] };
  2768. var faBeer = { prefix: 'fas', iconName: 'beer', icon: [448, 512, [], "f0fc", "M368 96h-48V56c0-13.255-10.745-24-24-24H24C10.745 32 0 42.745 0 56v400c0 13.255 10.745 24 24 24h272c13.255 0 24-10.745 24-24v-42.11l80.606-35.977C429.396 365.063 448 336.388 448 304.86V176c0-44.112-35.888-80-80-80zm16 208.86a16.018 16.018 0 0 1-9.479 14.611L320 343.805V160h48c8.822 0 16 7.178 16 16v128.86zM208 384c-8.836 0-16-7.164-16-16V144c0-8.836 7.164-16 16-16s16 7.164 16 16v224c0 8.836-7.164 16-16 16zm-96 0c-8.836 0-16-7.164-16-16V144c0-8.836 7.164-16 16-16s16 7.164 16 16v224c0 8.836-7.164 16-16 16z"] };
  2769. var faBell = { prefix: 'fas', iconName: 'bell', icon: [448, 512, [], "f0f3", "M224 512c35.32 0 63.97-28.65 63.97-64H160.03c0 35.35 28.65 64 63.97 64zm215.39-149.71c-19.32-20.76-55.47-51.99-55.47-154.29 0-77.7-54.48-139.9-127.94-155.16V32c0-17.67-14.32-32-31.98-32s-31.98 14.33-31.98 32v20.84C118.56 68.1 64.08 130.3 64.08 208c0 102.3-36.15 133.53-55.47 154.29-6 6.45-8.66 14.16-8.61 21.71.11 16.4 12.98 32 32.1 32h383.8c19.12 0 32-15.6 32.1-32 .05-7.55-2.61-15.27-8.61-21.71z"] };
  2770. var faBellSlash = { prefix: 'fas', iconName: 'bell-slash', icon: [640, 512, [], "f1f6", "M633.82 458.1l-90.62-70.05c.19-1.38.8-2.66.8-4.06.05-7.55-2.61-15.27-8.61-21.71-19.32-20.76-55.47-51.99-55.47-154.29 0-77.7-54.48-139.9-127.94-155.16V32c0-17.67-14.32-32-31.98-32s-31.98 14.33-31.98 32v20.84c-40.33 8.38-74.66 31.07-97.59 62.57L45.47 3.37C38.49-2.05 28.43-.8 23.01 6.18L3.37 31.45C-2.05 38.42-.8 48.47 6.18 53.9l588.35 454.73c6.98 5.43 17.03 4.17 22.46-2.81l19.64-25.27c5.42-6.97 4.17-17.02-2.81-22.45zM157.23 251.54c-8.61 67.96-36.41 93.33-52.62 110.75-6 6.45-8.66 14.16-8.61 21.71.11 16.4 12.98 32 32.1 32h241.92L157.23 251.54zM320 512c35.32 0 63.97-28.65 63.97-64H256.03c0 35.35 28.65 64 63.97 64z"] };
  2771. var faBezierCurve = { prefix: 'fas', iconName: 'bezier-curve', icon: [640, 512, [], "f55b", "M368 32h-96c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32V64c0-17.67-14.33-32-32-32zM208 88h-84.75C113.75 64.56 90.84 48 64 48 28.66 48 0 76.65 0 112s28.66 64 64 64c26.84 0 49.75-16.56 59.25-40h79.73c-55.37 32.52-95.86 87.32-109.54 152h49.4c11.3-41.61 36.77-77.21 71.04-101.56-3.7-8.08-5.88-16.99-5.88-26.44V88zm-48 232H64c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32v-96c0-17.67-14.33-32-32-32zM576 48c-26.84 0-49.75 16.56-59.25 40H432v72c0 9.45-2.19 18.36-5.88 26.44 34.27 24.35 59.74 59.95 71.04 101.56h49.4c-13.68-64.68-54.17-119.48-109.54-152h79.73c9.5 23.44 32.41 40 59.25 40 35.34 0 64-28.65 64-64s-28.66-64-64-64zm0 272h-96c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32v-96c0-17.67-14.33-32-32-32z"] };
  2772. var faBible = { prefix: 'fas', iconName: 'bible', icon: [448, 512, [], "f647", "M448 358.4V25.6c0-16-9.6-25.6-25.6-25.6H96C41.6 0 0 41.6 0 96v320c0 54.4 41.6 96 96 96h326.4c12.8 0 25.6-9.6 25.6-25.6v-16c0-6.4-3.2-12.8-9.6-19.2-3.2-16-3.2-60.8 0-73.6 6.4-3.2 9.6-9.6 9.6-19.2zM144 144c0-8.84 7.16-16 16-16h48V80c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v48h48c8.84 0 16 7.16 16 16v32c0 8.84-7.16 16-16 16h-48v112c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16V192h-48c-8.84 0-16-7.16-16-16v-32zm236.8 304H96c-19.2 0-32-12.8-32-32s16-32 32-32h284.8v64z"] };
  2773. var faBicycle = { prefix: 'fas', iconName: 'bicycle', icon: [640, 512, [], "f206", "M512.509 192.001c-16.373-.064-32.03 2.955-46.436 8.495l-77.68-125.153A24 24 0 0 0 368.001 64h-64c-8.837 0-16 7.163-16 16v16c0 8.837 7.163 16 16 16h50.649l14.896 24H256.002v-16c0-8.837-7.163-16-16-16h-87.459c-13.441 0-24.777 10.999-24.536 24.437.232 13.044 10.876 23.563 23.995 23.563h48.726l-29.417 47.52c-13.433-4.83-27.904-7.483-42.992-7.52C58.094 191.83.412 249.012.002 319.236-.413 390.279 57.055 448 128.002 448c59.642 0 109.758-40.793 123.967-96h52.033a24 24 0 0 0 20.406-11.367L410.37 201.77l14.938 24.067c-25.455 23.448-41.385 57.081-41.307 94.437.145 68.833 57.899 127.051 126.729 127.719 70.606.685 128.181-55.803 129.255-125.996 1.086-70.941-56.526-129.72-127.476-129.996zM186.75 265.772c9.727 10.529 16.673 23.661 19.642 38.228h-43.306l23.664-38.228zM128.002 400c-44.112 0-80-35.888-80-80s35.888-80 80-80c5.869 0 11.586.653 17.099 1.859l-45.505 73.509C89.715 331.327 101.213 352 120.002 352h81.3c-12.37 28.225-40.562 48-73.3 48zm162.63-96h-35.624c-3.96-31.756-19.556-59.894-42.383-80.026L237.371 184h127.547l-74.286 120zm217.057 95.886c-41.036-2.165-74.049-35.692-75.627-76.755-.812-21.121 6.633-40.518 19.335-55.263l44.433 71.586c4.66 7.508 14.524 9.816 22.032 5.156l13.594-8.437c7.508-4.66 9.817-14.524 5.156-22.032l-44.468-71.643a79.901 79.901 0 0 1 19.858-2.497c44.112 0 80 35.888 80 80-.001 45.54-38.252 82.316-84.313 79.885z"] };
  2774. var faBinoculars = { prefix: 'fas', iconName: 'binoculars', icon: [512, 512, [], "f1e5", "M416 48c0-8.84-7.16-16-16-16h-64c-8.84 0-16 7.16-16 16v48h96V48zM63.91 159.99C61.4 253.84 3.46 274.22 0 404v44c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32V288h32V128H95.84c-17.63 0-31.45 14.37-31.93 31.99zm384.18 0c-.48-17.62-14.3-31.99-31.93-31.99H320v160h32v160c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32v-44c-3.46-129.78-61.4-150.16-63.91-244.01zM176 32h-64c-8.84 0-16 7.16-16 16v48h96V48c0-8.84-7.16-16-16-16zm48 256h64V128h-64v160z"] };
  2775. var faBirthdayCake = { prefix: 'fas', iconName: 'birthday-cake', icon: [448, 512, [], "f1fd", "M448 384c-28.02 0-31.26-32-74.5-32-43.43 0-46.825 32-74.75 32-27.695 0-31.454-32-74.75-32-42.842 0-47.218 32-74.5 32-28.148 0-31.202-32-74.75-32-43.547 0-46.653 32-74.75 32v-80c0-26.5 21.5-48 48-48h16V112h64v144h64V112h64v144h64V112h64v144h16c26.5 0 48 21.5 48 48v80zm0 128H0v-96c43.356 0 46.767-32 74.75-32 27.951 0 31.253 32 74.75 32 42.843 0 47.217-32 74.5-32 28.148 0 31.201 32 74.75 32 43.357 0 46.767-32 74.75-32 27.488 0 31.252 32 74.5 32v96zM96 96c-17.75 0-32-14.25-32-32 0-31 32-23 32-64 12 0 32 29.5 32 56s-14.25 40-32 40zm128 0c-17.75 0-32-14.25-32-32 0-31 32-23 32-64 12 0 32 29.5 32 56s-14.25 40-32 40zm128 0c-17.75 0-32-14.25-32-32 0-31 32-23 32-64 12 0 32 29.5 32 56s-14.25 40-32 40z"] };
  2776. var faBlender = { prefix: 'fas', iconName: 'blender', icon: [512, 512, [], "f517", "M416 384H160c-35.35 0-64 28.65-64 64v32c0 17.67 14.33 32 32 32h320c17.67 0 32-14.33 32-32v-32c0-35.35-28.65-64-64-64zm-128 96c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm40-416h166.54L512 0H48C21.49 0 0 21.49 0 48v160c0 26.51 21.49 48 48 48h103.27l8.73 96h256l17.46-64H328c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h114.18l17.46-64H328c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h140.36l17.46-64H328c-4.42 0-8-3.58-8-8V72c0-4.42 3.58-8 8-8zM64 192V64h69.82l11.64 128H64z"] };
  2777. var faBlenderPhone = { prefix: 'fas', iconName: 'blender-phone', icon: [576, 512, [], "f6b6", "M392 64h166.54L576 0H192v352h288l17.46-64H392c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h114.18l17.46-64H392c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h140.36l17.46-64H392c-4.42 0-8-3.58-8-8V72c0-4.42 3.58-8 8-8zM158.8 335.01l-25.78-63.26c-2.78-6.81-9.8-10.99-17.24-10.26l-45.03 4.42c-17.28-46.94-17.65-99.78 0-147.72l45.03 4.42c7.43.73 14.46-3.46 17.24-10.26l25.78-63.26c3.02-7.39.2-15.85-6.68-20.07l-39.28-24.1C98.51-3.87 80.09-.5 68.95 11.97c-92.57 103.6-92 259.55 2.1 362.49 9.87 10.8 29.12 12.48 41.65 4.8l39.41-24.18c6.89-4.22 9.7-12.67 6.69-20.07zM480 384H192c-35.35 0-64 28.65-64 64v32c0 17.67 14.33 32 32 32h352c17.67 0 32-14.33 32-32v-32c0-35.35-28.65-64-64-64zm-144 96c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"] };
  2778. var faBlind = { prefix: 'fas', iconName: 'blind', icon: [384, 512, [], "f29d", "M380.15 510.837a8 8 0 0 1-10.989-2.687l-125.33-206.427a31.923 31.923 0 0 0 12.958-9.485l126.048 207.608a8 8 0 0 1-2.687 10.991zM142.803 314.338l-32.54 89.485 36.12 88.285c6.693 16.36 25.377 24.192 41.733 17.501 16.357-6.692 24.193-25.376 17.501-41.734l-62.814-153.537zM96 88c24.301 0 44-19.699 44-44S120.301 0 96 0 52 19.699 52 44s19.699 44 44 44zm154.837 169.128l-120-152c-4.733-5.995-11.75-9.108-18.837-9.112V96H80v.026c-7.146.003-14.217 3.161-18.944 9.24L0 183.766v95.694c0 13.455 11.011 24.791 24.464 24.536C37.505 303.748 48 293.1 48 280v-79.766l16-20.571v140.698L9.927 469.055c-6.04 16.609 2.528 34.969 19.138 41.009 16.602 6.039 34.968-2.524 41.009-19.138L136 309.638V202.441l-31.406-39.816a4 4 0 1 1 6.269-4.971l102.3 129.217c9.145 11.584 24.368 11.339 33.708 3.965 10.41-8.216 12.159-23.334 3.966-33.708z"] };
  2779. var faBold = { prefix: 'fas', iconName: 'bold', icon: [384, 512, [], "f032", "M304.793 243.891c33.639-18.537 53.657-54.16 53.657-95.693 0-48.236-26.25-87.626-68.626-104.179C265.138 34.01 240.849 32 209.661 32H24c-8.837 0-16 7.163-16 16v33.049c0 8.837 7.163 16 16 16h33.113v318.53H24c-8.837 0-16 7.163-16 16V464c0 8.837 7.163 16 16 16h195.69c24.203 0 44.834-1.289 66.866-7.584C337.52 457.193 376 410.647 376 350.014c0-52.168-26.573-91.684-71.207-106.123zM142.217 100.809h67.444c16.294 0 27.536 2.019 37.525 6.717 15.828 8.479 24.906 26.502 24.906 49.446 0 35.029-20.32 56.79-53.029 56.79h-76.846V100.809zm112.642 305.475c-10.14 4.056-22.677 4.907-31.409 4.907h-81.233V281.943h84.367c39.645 0 63.057 25.38 63.057 63.057.001 28.425-13.66 52.483-34.782 61.284z"] };
  2780. var faBolt = { prefix: 'fas', iconName: 'bolt', icon: [320, 512, [], "f0e7", "M295.973 160H180.572L215.19 30.184C219.25 14.956 207.756 0 192 0H56C43.971 0 33.8 8.905 32.211 20.828l-31.996 240C-1.704 275.217 9.504 288 24.004 288h118.701L96.646 482.466C93.05 497.649 104.659 512 119.992 512c8.35 0 16.376-4.374 20.778-11.978l175.973-303.997c9.244-15.967-2.288-36.025-20.77-36.025z"] };
  2781. var faBomb = { prefix: 'fas', iconName: 'bomb', icon: [512, 512, [], "f1e2", "M440.5 88.5l-52 52L415 167c9.4 9.4 9.4 24.6 0 33.9l-17.4 17.4c11.8 26.1 18.4 55.1 18.4 85.6 0 114.9-93.1 208-208 208S0 418.9 0 304 93.1 96 208 96c30.5 0 59.5 6.6 85.6 18.4L311 97c9.4-9.4 24.6-9.4 33.9 0l26.5 26.5 52-52 17.1 17zM500 60h-24c-6.6 0-12 5.4-12 12s5.4 12 12 12h24c6.6 0 12-5.4 12-12s-5.4-12-12-12zM440 0c-6.6 0-12 5.4-12 12v24c0 6.6 5.4 12 12 12s12-5.4 12-12V12c0-6.6-5.4-12-12-12zm33.9 55l17-17c4.7-4.7 4.7-12.3 0-17-4.7-4.7-12.3-4.7-17 0l-17 17c-4.7 4.7-4.7 12.3 0 17 4.8 4.7 12.4 4.7 17 0zm-67.8 0c4.7 4.7 12.3 4.7 17 0 4.7-4.7 4.7-12.3 0-17l-17-17c-4.7-4.7-12.3-4.7-17 0-4.7 4.7-4.7 12.3 0 17l17 17zm67.8 34c-4.7-4.7-12.3-4.7-17 0-4.7 4.7-4.7 12.3 0 17l17 17c4.7 4.7 12.3 4.7 17 0 4.7-4.7 4.7-12.3 0-17l-17-17zM112 272c0-35.3 28.7-64 64-64 8.8 0 16-7.2 16-16s-7.2-16-16-16c-52.9 0-96 43.1-96 96 0 8.8 7.2 16 16 16s16-7.2 16-16z"] };
  2782. var faBone = { prefix: 'fas', iconName: 'bone', icon: [640, 512, [], "f5d7", "M598.88 244.56c25.2-12.6 41.12-38.36 41.12-66.53v-7.64C640 129.3 606.7 96 565.61 96c-32.02 0-60.44 20.49-70.57 50.86-7.68 23.03-11.6 45.14-38.11 45.14H183.06c-27.38 0-31.58-25.54-38.11-45.14C134.83 116.49 106.4 96 74.39 96 33.3 96 0 129.3 0 170.39v7.64c0 28.17 15.92 53.93 41.12 66.53 9.43 4.71 9.43 18.17 0 22.88C15.92 280.04 0 305.8 0 333.97v7.64C0 382.7 33.3 416 74.38 416c32.02 0 60.44-20.49 70.57-50.86 7.68-23.03 11.6-45.14 38.11-45.14h273.87c27.38 0 31.58 25.54 38.11 45.14C505.17 395.51 533.6 416 565.61 416c41.08 0 74.38-33.3 74.38-74.39v-7.64c0-28.18-15.92-53.93-41.12-66.53-9.42-4.71-9.42-18.17.01-22.88z"] };
  2783. var faBong = { prefix: 'fas', iconName: 'bong', icon: [448, 512, [], "f55c", "M302.5 512c23.18 0 44.43-12.58 56-32.66C374.69 451.26 384 418.75 384 384c0-36.12-10.08-69.81-27.44-98.62L400 241.94l9.38 9.38c6.25 6.25 16.38 6.25 22.63 0l11.3-11.32c6.25-6.25 6.25-16.38 0-22.63l-52.69-52.69c-6.25-6.25-16.38-6.25-22.63 0l-11.31 11.31c-6.25 6.25-6.25 16.38 0 22.63l9.38 9.38-39.41 39.41c-11.56-11.37-24.53-21.33-38.65-29.51V63.74l15.97-.02c8.82-.01 15.97-7.16 15.98-15.98l.04-31.72C320 7.17 312.82-.01 303.97 0L80.03.26c-8.82.01-15.97 7.16-15.98 15.98l-.04 31.73c-.01 8.85 7.17 16.02 16.02 16.01L96 63.96v153.93C38.67 251.1 0 312.97 0 384c0 34.75 9.31 67.27 25.5 95.34C37.08 499.42 58.33 512 81.5 512h221zM120.06 259.43L144 245.56V63.91l96-.11v181.76l23.94 13.87c24.81 14.37 44.12 35.73 56.56 60.57h-257c12.45-24.84 31.75-46.2 56.56-60.57z"] };
  2784. var faBook = { prefix: 'fas', iconName: 'book', icon: [448, 512, [], "f02d", "M448 360V24c0-13.3-10.7-24-24-24H96C43 0 0 43 0 96v320c0 53 43 96 96 96h328c13.3 0 24-10.7 24-24v-16c0-7.5-3.5-14.3-8.9-18.7-4.2-15.4-4.2-59.3 0-74.7 5.4-4.3 8.9-11.1 8.9-18.6zM128 134c0-3.3 2.7-6 6-6h212c3.3 0 6 2.7 6 6v20c0 3.3-2.7 6-6 6H134c-3.3 0-6-2.7-6-6v-20zm0 64c0-3.3 2.7-6 6-6h212c3.3 0 6 2.7 6 6v20c0 3.3-2.7 6-6 6H134c-3.3 0-6-2.7-6-6v-20zm253.4 250H96c-17.7 0-32-14.3-32-32 0-17.6 14.4-32 32-32h285.4c-1.9 17.1-1.9 46.9 0 64z"] };
  2785. var faBookDead = { prefix: 'fas', iconName: 'book-dead', icon: [448, 512, [], "f6b7", "M272 136c8.84 0 16-7.16 16-16s-7.16-16-16-16-16 7.16-16 16 7.16 16 16 16zm176 222.4V25.6c0-16-9.6-25.6-25.6-25.6H96C41.6 0 0 41.6 0 96v320c0 54.4 41.6 96 96 96h326.4c12.8 0 25.6-9.6 25.6-25.6v-16c0-6.4-3.2-12.8-9.6-19.2-3.2-16-3.2-60.8 0-73.6 6.4-3.2 9.6-9.6 9.6-19.2zM240 56c44.18 0 80 28.65 80 64 0 20.87-12.68 39.23-32 50.91V184c0 8.84-7.16 16-16 16h-64c-8.84 0-16-7.16-16-16v-13.09c-19.32-11.68-32-30.04-32-50.91 0-35.35 35.82-64 80-64zM129.05 233.85a7.996 7.996 0 0 1-4.2-10.5l6.29-14.7a7.995 7.995 0 0 1 10.51-4.2L240 246.6l98.35-42.15c4.06-1.74 8.77.14 10.51 4.2l6.29 14.7a7.996 7.996 0 0 1-4.2 10.5L280.6 264l70.34 30.15a7.996 7.996 0 0 1 4.2 10.5l-6.29 14.7a8.008 8.008 0 0 1-10.51 4.21L240 281.4l-98.35 42.15a8.003 8.003 0 0 1-10.51-4.21l-6.29-14.7a7.996 7.996 0 0 1 4.2-10.5L199.4 264l-70.35-30.15zM380.8 448H96c-19.2 0-32-12.8-32-32s16-32 32-32h284.8v64zM208 136c8.84 0 16-7.16 16-16s-7.16-16-16-16-16 7.16-16 16 7.16 16 16 16z"] };
  2786. var faBookOpen = { prefix: 'fas', iconName: 'book-open', icon: [576, 512, [], "f518", "M542.22 32.05c-54.8 3.11-163.72 14.43-230.96 55.59-4.64 2.84-7.27 7.89-7.27 13.17v363.87c0 11.55 12.63 18.85 23.28 13.49 69.18-34.82 169.23-44.32 218.7-46.92 16.89-.89 30.02-14.43 30.02-30.66V62.75c.01-17.71-15.35-31.74-33.77-30.7zM264.73 87.64C197.5 46.48 88.58 35.17 33.78 32.05 15.36 31.01 0 45.04 0 62.75V400.6c0 16.24 13.13 29.78 30.02 30.66 49.49 2.6 149.59 12.11 218.77 46.95 10.62 5.35 23.21-1.94 23.21-13.46V100.63c0-5.29-2.62-10.14-7.27-12.99z"] };
  2787. var faBookReader = { prefix: 'fas', iconName: 'book-reader', icon: [512, 512, [], "f5da", "M352 96c0-53.02-42.98-96-96-96s-96 42.98-96 96 42.98 96 96 96 96-42.98 96-96zM233.59 241.1c-59.33-36.32-155.43-46.3-203.79-49.05C13.55 191.13 0 203.51 0 219.14v222.8c0 14.33 11.59 26.28 26.49 27.05 43.66 2.29 131.99 10.68 193.04 41.43 9.37 4.72 20.48-1.71 20.48-11.87V252.56c-.01-4.67-2.32-8.95-6.42-11.46zm248.61-49.05c-48.35 2.74-144.46 12.73-203.78 49.05-4.1 2.51-6.41 6.96-6.41 11.63v245.79c0 10.19 11.14 16.63 20.54 11.9 61.04-30.72 149.32-39.11 192.97-41.4 14.9-.78 26.49-12.73 26.49-27.06V219.14c-.01-15.63-13.56-28.01-29.81-27.09z"] };
  2788. var faBookmark = { prefix: 'fas', iconName: 'bookmark', icon: [384, 512, [], "f02e", "M0 512V48C0 21.49 21.49 0 48 0h288c26.51 0 48 21.49 48 48v464L192 400 0 512z"] };
  2789. var faBowlingBall = { prefix: 'fas', iconName: 'bowling-ball', icon: [496, 512, [], "f436", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM120 192c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm64-96c0-17.7 14.3-32 32-32s32 14.3 32 32-14.3 32-32 32-32-14.3-32-32zm48 144c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"] };
  2790. var faBox = { prefix: 'fas', iconName: 'box', icon: [512, 512, [], "f466", "M509.5 184.6L458.9 32.8C452.4 13.2 434.1 0 413.4 0H272v192h238.7c-.4-2.5-.4-5-1.2-7.4zM240 0H98.6c-20.7 0-39 13.2-45.5 32.8L2.5 184.6c-.8 2.4-.8 4.9-1.2 7.4H240V0zM0 224v240c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V224H0z"] };
  2791. var faBoxOpen = { prefix: 'fas', iconName: 'box-open', icon: [640, 512, [], "f49e", "M53.2 41L1.7 143.8c-4.6 9.2.3 20.2 10.1 23l197.9 56.5c7.1 2 14.7-1 18.5-7.3L320 64 69.8 32.1c-6.9-.8-13.5 2.7-16.6 8.9zm585.1 102.8L586.8 41c-3.1-6.2-9.8-9.8-16.7-8.9L320 64l91.7 152.1c3.8 6.3 11.4 9.3 18.5 7.3l197.9-56.5c9.9-2.9 14.7-13.9 10.2-23.1zM425.7 256c-16.9 0-32.8-9-41.4-23.4L320 126l-64.2 106.6c-8.7 14.5-24.6 23.5-41.5 23.5-4.5 0-9-.6-13.3-1.9L64 215v178c0 14.7 10 27.5 24.2 31l216.2 54.1c10.2 2.5 20.9 2.5 31 0L551.8 424c14.2-3.6 24.2-16.4 24.2-31V215l-137 39.1c-4.3 1.3-8.8 1.9-13.3 1.9z"] };
  2792. var faBoxes = { prefix: 'fas', iconName: 'boxes', icon: [576, 512, [], "f468", "M560 288h-80v96l-32-21.3-32 21.3v-96h-80c-8.8 0-16 7.2-16 16v192c0 8.8 7.2 16 16 16h224c8.8 0 16-7.2 16-16V304c0-8.8-7.2-16-16-16zm-384-64h224c8.8 0 16-7.2 16-16V16c0-8.8-7.2-16-16-16h-80v96l-32-21.3L256 96V0h-80c-8.8 0-16 7.2-16 16v192c0 8.8 7.2 16 16 16zm64 64h-80v96l-32-21.3L96 384v-96H16c-8.8 0-16 7.2-16 16v192c0 8.8 7.2 16 16 16h224c8.8 0 16-7.2 16-16V304c0-8.8-7.2-16-16-16z"] };
  2793. var faBraille = { prefix: 'fas', iconName: 'braille', icon: [640, 512, [], "f2a1", "M128 256c0 35.346-28.654 64-64 64S0 291.346 0 256s28.654-64 64-64 64 28.654 64 64zM64 384c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0-352C28.654 32 0 60.654 0 96s28.654 64 64 64 64-28.654 64-64-28.654-64-64-64zm160 192c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0 160c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0-352c-35.346 0-64 28.654-64 64s28.654 64 64 64 64-28.654 64-64-28.654-64-64-64zm224 192c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0 160c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0-352c-35.346 0-64 28.654-64 64s28.654 64 64 64 64-28.654 64-64-28.654-64-64-64zm160 192c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0 160c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0-320c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32z"] };
  2794. var faBrain = { prefix: 'fas', iconName: 'brain', icon: [576, 512, [], "f5dc", "M208 0c-29.87 0-54.74 20.55-61.8 48.22-.75-.02-1.45-.22-2.2-.22-35.34 0-64 28.65-64 64 0 4.84.64 9.51 1.66 14.04C52.54 138 32 166.57 32 200c0 12.58 3.16 24.32 8.34 34.91C16.34 248.72 0 274.33 0 304c0 33.34 20.42 61.88 49.42 73.89-.9 4.57-1.42 9.28-1.42 14.11 0 39.76 32.23 72 72 72 4.12 0 8.1-.55 12.03-1.21C141.61 491.31 168.25 512 200 512c39.77 0 72-32.24 72-72V205.45c-10.91 8.98-23.98 15.45-38.36 18.39-4.97 1.02-9.64-2.82-9.64-7.89v-16.18c0-3.57 2.35-6.78 5.8-7.66 24.2-6.16 42.2-27.95 42.2-54.04V64c0-35.35-28.66-64-64-64zm368 304c0-29.67-16.34-55.28-40.34-69.09 5.17-10.59 8.34-22.33 8.34-34.91 0-33.43-20.54-62-49.66-73.96 1.02-4.53 1.66-9.2 1.66-14.04 0-35.35-28.66-64-64-64-.75 0-1.45.2-2.2.22C422.74 20.55 397.87 0 368 0c-35.34 0-64 28.65-64 64v74.07c0 26.09 17.99 47.88 42.2 54.04 3.46.88 5.8 4.09 5.8 7.66v16.18c0 5.07-4.68 8.91-9.64 7.89-14.38-2.94-27.44-9.41-38.36-18.39V440c0 39.76 32.23 72 72 72 31.75 0 58.39-20.69 67.97-49.21 3.93.67 7.91 1.21 12.03 1.21 39.77 0 72-32.24 72-72 0-4.83-.52-9.54-1.42-14.11 29-12.01 49.42-40.55 49.42-73.89z"] };
  2795. var faBriefcase = { prefix: 'fas', iconName: 'briefcase', icon: [512, 512, [], "f0b1", "M320 336c0 8.84-7.16 16-16 16h-96c-8.84 0-16-7.16-16-16v-48H0v144c0 25.6 22.4 48 48 48h416c25.6 0 48-22.4 48-48V288H320v48zm144-208h-80V80c0-25.6-22.4-48-48-48H176c-25.6 0-48 22.4-48 48v48H48c-25.6 0-48 22.4-48 48v80h512v-80c0-25.6-22.4-48-48-48zm-144 0H192V96h128v32z"] };
  2796. var faBriefcaseMedical = { prefix: 'fas', iconName: 'briefcase-medical', icon: [512, 512, [], "f469", "M464 128h-80V80c0-26.5-21.5-48-48-48H176c-26.5 0-48 21.5-48 48v48H48c-26.5 0-48 21.5-48 48v288c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V176c0-26.5-21.5-48-48-48zM192 96h128v32H192V96zm160 248c0 4.4-3.6 8-8 8h-56v56c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-56h-56c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h56v-56c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v56h56c4.4 0 8 3.6 8 8v48z"] };
  2797. var faBroadcastTower = { prefix: 'fas', iconName: 'broadcast-tower', icon: [640, 512, [], "f519", "M150.94 192h33.73c11.01 0 18.61-10.83 14.86-21.18-4.93-13.58-7.55-27.98-7.55-42.82s2.62-29.24 7.55-42.82C203.29 74.83 195.68 64 184.67 64h-33.73c-7.01 0-13.46 4.49-15.41 11.23C130.64 92.21 128 109.88 128 128c0 18.12 2.64 35.79 7.54 52.76 1.94 6.74 8.39 11.24 15.4 11.24zM89.92 23.34C95.56 12.72 87.97 0 75.96 0H40.63c-6.27 0-12.14 3.59-14.74 9.31C9.4 45.54 0 85.65 0 128c0 24.75 3.12 68.33 26.69 118.86 2.62 5.63 8.42 9.14 14.61 9.14h34.84c12.02 0 19.61-12.74 13.95-23.37-49.78-93.32-16.71-178.15-.17-209.29zM614.06 9.29C611.46 3.58 605.6 0 599.33 0h-35.42c-11.98 0-19.66 12.66-14.02 23.25 18.27 34.29 48.42 119.42.28 209.23-5.72 10.68 1.8 23.52 13.91 23.52h35.23c6.27 0 12.13-3.58 14.73-9.29C630.57 210.48 640 170.36 640 128s-9.42-82.48-25.94-118.71zM489.06 64h-33.73c-11.01 0-18.61 10.83-14.86 21.18 4.93 13.58 7.55 27.98 7.55 42.82s-2.62 29.24-7.55 42.82c-3.76 10.35 3.85 21.18 14.86 21.18h33.73c7.02 0 13.46-4.49 15.41-11.24 4.9-16.97 7.53-34.64 7.53-52.76 0-18.12-2.64-35.79-7.54-52.76-1.94-6.75-8.39-11.24-15.4-11.24zm-116.3 100.12c7.05-10.29 11.2-22.71 11.2-36.12 0-35.35-28.63-64-63.96-64-35.32 0-63.96 28.65-63.96 64 0 13.41 4.15 25.83 11.2 36.12l-130.5 313.41c-3.4 8.15.46 17.52 8.61 20.92l29.51 12.31c8.15 3.4 17.52-.46 20.91-8.61L244.96 384h150.07l49.2 118.15c3.4 8.16 12.76 12.01 20.91 8.61l29.51-12.31c8.15-3.4 12-12.77 8.61-20.92l-130.5-313.41zM271.62 320L320 203.81 368.38 320h-96.76z"] };
  2798. var faBroom = { prefix: 'fas', iconName: 'broom', icon: [640, 512, [], "f51a", "M256.47 216.77l86.73 109.18s-16.6 102.36-76.57 150.12C206.66 523.85 0 510.19 0 510.19s3.8-23.14 11-55.43l94.62-112.17c3.97-4.7-.87-11.62-6.65-9.5l-60.4 22.09c14.44-41.66 32.72-80.04 54.6-97.47 59.97-47.76 163.3-40.94 163.3-40.94zM636.53 31.03l-19.86-25c-5.49-6.9-15.52-8.05-22.41-2.56l-232.48 177.8-34.14-42.97c-5.09-6.41-15.14-5.21-18.59 2.21l-25.33 54.55 86.73 109.18 58.8-12.45c8-1.69 11.42-11.2 6.34-17.6l-34.09-42.92 232.48-177.8c6.89-5.48 8.04-15.53 2.55-22.44z"] };
  2799. var faBrush = { prefix: 'fas', iconName: 'brush', icon: [384, 512, [], "f55d", "M352 0H32C14.33 0 0 14.33 0 32v224h384V32c0-17.67-14.33-32-32-32zM0 320c0 35.35 28.66 64 64 64h64v64c0 35.35 28.66 64 64 64s64-28.65 64-64v-64h64c35.34 0 64-28.65 64-64v-32H0v32zm192 104c13.25 0 24 10.74 24 24 0 13.25-10.75 24-24 24s-24-10.75-24-24c0-13.26 10.75-24 24-24z"] };
  2800. var faBug = { prefix: 'fas', iconName: 'bug', icon: [512, 512, [], "f188", "M511.988 288.9c-.478 17.43-15.217 31.1-32.653 31.1H424v16c0 21.864-4.882 42.584-13.6 61.145l60.228 60.228c12.496 12.497 12.496 32.758 0 45.255-12.498 12.497-32.759 12.496-45.256 0l-54.736-54.736C345.886 467.965 314.351 480 280 480V236c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v244c-34.351 0-65.886-12.035-90.636-32.108l-54.736 54.736c-12.498 12.497-32.759 12.496-45.256 0-12.496-12.497-12.496-32.758 0-45.255l60.228-60.228C92.882 378.584 88 357.864 88 336v-16H32.666C15.23 320 .491 306.33.013 288.9-.484 270.816 14.028 256 32 256h56v-58.745l-46.628-46.628c-12.496-12.497-12.496-32.758 0-45.255 12.498-12.497 32.758-12.497 45.256 0L141.255 160h229.489l54.627-54.627c12.498-12.497 32.758-12.497 45.256 0 12.496 12.497 12.496 32.758 0 45.255L424 197.255V256h56c17.972 0 32.484 14.816 31.988 32.9zM257 0c-61.856 0-112 50.144-112 112h224C369 50.144 318.856 0 257 0z"] };
  2801. var faBuilding = { prefix: 'fas', iconName: 'building', icon: [448, 512, [], "f1ad", "M436 480h-20V24c0-13.255-10.745-24-24-24H56C42.745 0 32 10.745 32 24v456H12c-6.627 0-12 5.373-12 12v20h448v-20c0-6.627-5.373-12-12-12zM128 76c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40c0 6.627-5.373 12-12 12h-40c-6.627 0-12-5.373-12-12V76zm0 96c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40c0 6.627-5.373 12-12 12h-40c-6.627 0-12-5.373-12-12v-40zm52 148h-40c-6.627 0-12-5.373-12-12v-40c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40c0 6.627-5.373 12-12 12zm76 160h-64v-84c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v84zm64-172c0 6.627-5.373 12-12 12h-40c-6.627 0-12-5.373-12-12v-40c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40zm0-96c0 6.627-5.373 12-12 12h-40c-6.627 0-12-5.373-12-12v-40c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40zm0-96c0 6.627-5.373 12-12 12h-40c-6.627 0-12-5.373-12-12V76c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40z"] };
  2802. var faBullhorn = { prefix: 'fas', iconName: 'bullhorn', icon: [576, 512, [], "f0a1", "M576 240c0-23.63-12.95-44.04-32-55.12V32.01C544 23.26 537.02 0 512 0c-7.12 0-14.19 2.38-19.98 7.02l-85.03 68.03C364.28 109.19 310.66 128 256 128H64c-35.35 0-64 28.65-64 64v96c0 35.35 28.65 64 64 64h33.7c-1.39 10.48-2.18 21.14-2.18 32 0 39.77 9.26 77.35 25.56 110.94 5.19 10.69 16.52 17.06 28.4 17.06h74.28c26.05 0 41.69-29.84 25.9-50.56-16.4-21.52-26.15-48.36-26.15-77.44 0-11.11 1.62-21.79 4.41-32H256c54.66 0 108.28 18.81 150.98 52.95l85.03 68.03a32.023 32.023 0 0 0 19.98 7.02c24.92 0 32-22.78 32-32V295.13C563.05 284.04 576 263.63 576 240zm-96 141.42l-33.05-26.44C392.95 311.78 325.12 288 256 288v-96c69.12 0 136.95-23.78 190.95-66.98L480 98.58v282.84z"] };
  2803. var faBullseye = { prefix: 'fas', iconName: 'bullseye', icon: [496, 512, [], "f140", "M248 8C111.03 8 0 119.03 0 256s111.03 248 248 248 248-111.03 248-248S384.97 8 248 8zm0 432c-101.69 0-184-82.29-184-184 0-101.69 82.29-184 184-184 101.69 0 184 82.29 184 184 0 101.69-82.29 184-184 184zm0-312c-70.69 0-128 57.31-128 128s57.31 128 128 128 128-57.31 128-128-57.31-128-128-128zm0 192c-35.29 0-64-28.71-64-64s28.71-64 64-64 64 28.71 64 64-28.71 64-64 64z"] };
  2804. var faBurn = { prefix: 'fas', iconName: 'burn', icon: [384, 512, [], "f46a", "M192 0C79.7 101.3 0 220.9 0 300.5 0 425 79 512 192 512s192-87 192-211.5c0-79.9-80.2-199.6-192-300.5zm0 448c-56.5 0-96-39-96-94.8 0-13.5 4.6-61.5 96-161.2 91.4 99.7 96 147.7 96 161.2 0 55.8-39.5 94.8-96 94.8z"] };
  2805. var faBus = { prefix: 'fas', iconName: 'bus', icon: [512, 512, [], "f207", "M488 128h-8V80c0-44.8-99.2-80-224-80S32 35.2 32 80v48h-8c-13.25 0-24 10.74-24 24v80c0 13.25 10.75 24 24 24h8v160c0 17.67 14.33 32 32 32v32c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-32h192v32c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-32h6.4c16 0 25.6-12.8 25.6-25.6V256h8c13.25 0 24-10.75 24-24v-80c0-13.26-10.75-24-24-24zM112 400c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm16-112c-17.67 0-32-14.33-32-32V128c0-17.67 14.33-32 32-32h256c17.67 0 32 14.33 32 32v128c0 17.67-14.33 32-32 32H128zm272 112c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"] };
  2806. var faBusAlt = { prefix: 'fas', iconName: 'bus-alt', icon: [512, 512, [], "f55e", "M488 128h-8V80c0-44.8-99.2-80-224-80S32 35.2 32 80v48h-8c-13.25 0-24 10.74-24 24v80c0 13.25 10.75 24 24 24h8v160c0 17.67 14.33 32 32 32v32c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-32h192v32c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-32h6.4c16 0 25.6-12.8 25.6-25.6V256h8c13.25 0 24-10.75 24-24v-80c0-13.26-10.75-24-24-24zM160 72c0-4.42 3.58-8 8-8h176c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H168c-4.42 0-8-3.58-8-8V72zm-48 328c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm128-112H128c-17.67 0-32-14.33-32-32v-96c0-17.67 14.33-32 32-32h112v160zm32 0V128h112c17.67 0 32 14.33 32 32v96c0 17.67-14.33 32-32 32H272zm128 112c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"] };
  2807. var faBusinessTime = { prefix: 'fas', iconName: 'business-time', icon: [640, 512, [], "f64a", "M496 224c-79.59 0-144 64.41-144 144s64.41 144 144 144 144-64.41 144-144-64.41-144-144-144zm64 150.29c0 5.34-4.37 9.71-9.71 9.71h-60.57c-5.34 0-9.71-4.37-9.71-9.71v-76.57c0-5.34 4.37-9.71 9.71-9.71h12.57c5.34 0 9.71 4.37 9.71 9.71V352h38.29c5.34 0 9.71 4.37 9.71 9.71v12.58zM496 192c5.4 0 10.72.33 16 .81V144c0-25.6-22.4-48-48-48h-80V48c0-25.6-22.4-48-48-48H176c-25.6 0-48 22.4-48 48v48H48c-25.6 0-48 22.4-48 48v80h395.12c28.6-20.09 63.35-32 100.88-32zM320 96H192V64h128v32zm6.82 224H208c-8.84 0-16-7.16-16-16v-48H0v144c0 25.6 22.4 48 48 48h291.43C327.1 423.96 320 396.82 320 368c0-16.66 2.48-32.72 6.82-48z"] };
  2808. var faCalculator = { prefix: 'fas', iconName: 'calculator', icon: [448, 512, [], "f1ec", "M400 0H48C22.4 0 0 22.4 0 48v416c0 25.6 22.4 48 48 48h352c25.6 0 48-22.4 48-48V48c0-25.6-22.4-48-48-48zM128 435.2c0 6.4-6.4 12.8-12.8 12.8H76.8c-6.4 0-12.8-6.4-12.8-12.8v-38.4c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4zm0-128c0 6.4-6.4 12.8-12.8 12.8H76.8c-6.4 0-12.8-6.4-12.8-12.8v-38.4c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4zm128 128c0 6.4-6.4 12.8-12.8 12.8h-38.4c-6.4 0-12.8-6.4-12.8-12.8v-38.4c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4zm0-128c0 6.4-6.4 12.8-12.8 12.8h-38.4c-6.4 0-12.8-6.4-12.8-12.8v-38.4c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4zm128 128c0 6.4-6.4 12.8-12.8 12.8h-38.4c-6.4 0-12.8-6.4-12.8-12.8V268.8c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v166.4zm0-256c0 6.4-6.4 12.8-12.8 12.8H76.8c-6.4 0-12.8-6.4-12.8-12.8V76.8C64 70.4 70.4 64 76.8 64h294.4c6.4 0 12.8 6.4 12.8 12.8v102.4z"] };
  2809. var faCalendar = { prefix: 'fas', iconName: 'calendar', icon: [448, 512, [], "f133", "M12 192h424c6.6 0 12 5.4 12 12v260c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V204c0-6.6 5.4-12 12-12zm436-44v-36c0-26.5-21.5-48-48-48h-48V12c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v52H160V12c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v52H48C21.5 64 0 85.5 0 112v36c0 6.6 5.4 12 12 12h424c6.6 0 12-5.4 12-12z"] };
  2810. var faCalendarAlt = { prefix: 'fas', iconName: 'calendar-alt', icon: [448, 512, [], "f073", "M436 160H12c-6.6 0-12-5.4-12-12v-36c0-26.5 21.5-48 48-48h48V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h128V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h48c26.5 0 48 21.5 48 48v36c0 6.6-5.4 12-12 12zM12 192h424c6.6 0 12 5.4 12 12v260c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V204c0-6.6 5.4-12 12-12zm116 204c0-6.6-5.4-12-12-12H76c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-40zm0-128c0-6.6-5.4-12-12-12H76c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-40zm128 128c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-40zm0-128c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-40zm128 128c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-40zm0-128c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-40z"] };
  2811. var faCalendarCheck = { prefix: 'fas', iconName: 'calendar-check', icon: [448, 512, [], "f274", "M436 160H12c-6.627 0-12-5.373-12-12v-36c0-26.51 21.49-48 48-48h48V12c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v52h128V12c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v52h48c26.51 0 48 21.49 48 48v36c0 6.627-5.373 12-12 12zM12 192h424c6.627 0 12 5.373 12 12v260c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V204c0-6.627 5.373-12 12-12zm333.296 95.947l-28.169-28.398c-4.667-4.705-12.265-4.736-16.97-.068L194.12 364.665l-45.98-46.352c-4.667-4.705-12.266-4.736-16.971-.068l-28.397 28.17c-4.705 4.667-4.736 12.265-.068 16.97l82.601 83.269c4.667 4.705 12.265 4.736 16.97.068l142.953-141.805c4.705-4.667 4.736-12.265.068-16.97z"] };
  2812. var faCalendarMinus = { prefix: 'fas', iconName: 'calendar-minus', icon: [448, 512, [], "f272", "M436 160H12c-6.6 0-12-5.4-12-12v-36c0-26.5 21.5-48 48-48h48V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h128V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h48c26.5 0 48 21.5 48 48v36c0 6.6-5.4 12-12 12zM12 192h424c6.6 0 12 5.4 12 12v260c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V204c0-6.6 5.4-12 12-12zm304 192c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12H132c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h184z"] };
  2813. var faCalendarPlus = { prefix: 'fas', iconName: 'calendar-plus', icon: [448, 512, [], "f271", "M436 160H12c-6.6 0-12-5.4-12-12v-36c0-26.5 21.5-48 48-48h48V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h128V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h48c26.5 0 48 21.5 48 48v36c0 6.6-5.4 12-12 12zM12 192h424c6.6 0 12 5.4 12 12v260c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V204c0-6.6 5.4-12 12-12zm316 140c0-6.6-5.4-12-12-12h-60v-60c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v60h-60c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h60v60c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-60h60c6.6 0 12-5.4 12-12v-40z"] };
  2814. var faCalendarTimes = { prefix: 'fas', iconName: 'calendar-times', icon: [448, 512, [], "f273", "M436 160H12c-6.6 0-12-5.4-12-12v-36c0-26.5 21.5-48 48-48h48V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h128V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h48c26.5 0 48 21.5 48 48v36c0 6.6-5.4 12-12 12zM12 192h424c6.6 0 12 5.4 12 12v260c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V204c0-6.6 5.4-12 12-12zm257.3 160l48.1-48.1c4.7-4.7 4.7-12.3 0-17l-28.3-28.3c-4.7-4.7-12.3-4.7-17 0L224 306.7l-48.1-48.1c-4.7-4.7-12.3-4.7-17 0l-28.3 28.3c-4.7 4.7-4.7 12.3 0 17l48.1 48.1-48.1 48.1c-4.7 4.7-4.7 12.3 0 17l28.3 28.3c4.7 4.7 12.3 4.7 17 0l48.1-48.1 48.1 48.1c4.7 4.7 12.3 4.7 17 0l28.3-28.3c4.7-4.7 4.7-12.3 0-17L269.3 352z"] };
  2815. var faCamera = { prefix: 'fas', iconName: 'camera', icon: [512, 512, [], "f030", "M512 144v288c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V144c0-26.5 21.5-48 48-48h88l12.3-32.9c7-18.7 24.9-31.1 44.9-31.1h125.5c20 0 37.9 12.4 44.9 31.1L376 96h88c26.5 0 48 21.5 48 48zM376 288c0-66.2-53.8-120-120-120s-120 53.8-120 120 53.8 120 120 120 120-53.8 120-120zm-32 0c0 48.5-39.5 88-88 88s-88-39.5-88-88 39.5-88 88-88 88 39.5 88 88z"] };
  2816. var faCameraRetro = { prefix: 'fas', iconName: 'camera-retro', icon: [512, 512, [], "f083", "M48 32C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48H48zm0 32h106c3.3 0 6 2.7 6 6v20c0 3.3-2.7 6-6 6H38c-3.3 0-6-2.7-6-6V80c0-8.8 7.2-16 16-16zm426 96H38c-3.3 0-6-2.7-6-6v-36c0-3.3 2.7-6 6-6h138l30.2-45.3c1.1-1.7 3-2.7 5-2.7H464c8.8 0 16 7.2 16 16v74c0 3.3-2.7 6-6 6zM256 424c-66.2 0-120-53.8-120-120s53.8-120 120-120 120 53.8 120 120-53.8 120-120 120zm0-208c-48.5 0-88 39.5-88 88s39.5 88 88 88 88-39.5 88-88-39.5-88-88-88zm-48 104c-8.8 0-16-7.2-16-16 0-35.3 28.7-64 64-64 8.8 0 16 7.2 16 16s-7.2 16-16 16c-17.6 0-32 14.4-32 32 0 8.8-7.2 16-16 16z"] };
  2817. var faCampground = { prefix: 'fas', iconName: 'campground', icon: [640, 512, [], "f6bb", "M624 448h-24.68L359.54 117.75l53.41-73.55c5.19-7.15 3.61-17.16-3.54-22.35l-25.9-18.79c-7.15-5.19-17.15-3.61-22.35 3.55L320 63.3 278.83 6.6c-5.19-7.15-15.2-8.74-22.35-3.55l-25.88 18.8c-7.15 5.19-8.74 15.2-3.54 22.35l53.41 73.55L40.68 448H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h608c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zM320 288l116.36 160H203.64L320 288z"] };
  2818. var faCannabis = { prefix: 'fas', iconName: 'cannabis', icon: [512, 512, [], "f55f", "M503.47 360.25c-1.56-.82-32.39-16.89-76.78-25.81 64.25-75.12 84.05-161.67 84.93-165.64 1.18-5.33-.44-10.9-4.3-14.77-3.03-3.04-7.12-4.7-11.32-4.7-1.14 0-2.29.12-3.44.38-3.88.85-86.54 19.59-160.58 79.76.01-1.46.01-2.93.01-4.4 0-118.79-59.98-213.72-62.53-217.7A15.973 15.973 0 0 0 256 0c-5.45 0-10.53 2.78-13.47 7.37-2.55 3.98-62.53 98.91-62.53 217.7 0 1.47.01 2.94.01 4.4-74.03-60.16-156.69-78.9-160.58-79.76-1.14-.25-2.29-.38-3.44-.38-4.2 0-8.29 1.66-11.32 4.7A15.986 15.986 0 0 0 .38 168.8c.88 3.97 20.68 90.52 84.93 165.64-44.39 8.92-75.21 24.99-76.78 25.81a16.003 16.003 0 0 0-.02 28.29c2.45 1.29 60.76 31.72 133.49 31.72 6.14 0 11.96-.1 17.5-.31-11.37 22.23-16.52 38.31-16.81 39.22-1.8 5.68-.29 11.89 3.91 16.11a16.019 16.019 0 0 0 16.1 3.99c1.83-.57 37.72-11.99 77.3-39.29V504c0 4.42 3.58 8 8 8h16c4.42 0 8-3.58 8-8v-64.01c39.58 27.3 75.47 38.71 77.3 39.29a16.019 16.019 0 0 0 16.1-3.99c4.2-4.22 5.71-10.43 3.91-16.11-.29-.91-5.45-16.99-16.81-39.22 5.54.21 11.37.31 17.5.31 72.72 0 131.04-30.43 133.49-31.72 5.24-2.78 8.52-8.22 8.51-14.15-.01-5.94-3.29-11.39-8.53-14.15z"] };
  2819. var faCapsules = { prefix: 'fas', iconName: 'capsules', icon: [576, 512, [], "f46b", "M555.3 300.1L424.2 112.8C401.9 81 366.4 64 330.4 64c-22.6 0-45.5 6.7-65.5 20.7-19.7 13.8-33.7 32.8-41.5 53.8C220.5 79.2 172 32 112 32 50.1 32 0 82.1 0 144v224c0 61.9 50.1 112 112 112s112-50.1 112-112V218.9c3.3 8.6 7.3 17.1 12.8 25L368 431.2c22.2 31.8 57.7 48.8 93.8 48.8 22.7 0 45.5-6.7 65.5-20.7 51.7-36.2 64.2-107.5 28-159.2zM160 256H64V144c0-26.5 21.5-48 48-48s48 21.5 48 48v112zm194.8 44.9l-65.6-93.7c-7.7-11-10.7-24.4-8.3-37.6 2.3-13.2 9.7-24.8 20.7-32.5 8.5-6 18.5-9.1 28.8-9.1 16.5 0 31.9 8 41.3 21.5l65.6 93.7-82.5 57.7z"] };
  2820. var faCar = { prefix: 'fas', iconName: 'car', icon: [512, 512, [], "f1b9", "M499.99 176h-59.87l-16.64-41.6C406.38 91.63 365.57 64 319.5 64h-127c-46.06 0-86.88 27.63-103.99 70.4L71.87 176H12.01C4.2 176-1.53 183.34.37 190.91l6 24C7.7 220.25 12.5 224 18.01 224h20.07C24.65 235.73 16 252.78 16 272v48c0 16.12 6.16 30.67 16 41.93V416c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-32h256v32c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-54.07c9.84-11.25 16-25.8 16-41.93v-48c0-19.22-8.65-36.27-22.07-48H494c5.51 0 10.31-3.75 11.64-9.09l6-24c1.89-7.57-3.84-14.91-11.65-14.91zm-352.06-17.83c7.29-18.22 24.94-30.17 44.57-30.17h127c19.63 0 37.28 11.95 44.57 30.17L384 208H128l19.93-49.83zM96 319.8c-19.2 0-32-12.76-32-31.9S76.8 256 96 256s48 28.71 48 47.85-28.8 15.95-48 15.95zm320 0c-19.2 0-48 3.19-48-15.95S396.8 256 416 256s32 12.76 32 31.9-12.8 31.9-32 31.9z"] };
  2821. var faCarAlt = { prefix: 'fas', iconName: 'car-alt', icon: [480, 512, [], "f5de", "M438.66 212.33l-11.24-28.1-19.93-49.83C390.38 91.63 349.57 64 303.5 64h-127c-46.06 0-86.88 27.63-103.99 70.4l-19.93 49.83-11.24 28.1C17.22 221.5 0 244.66 0 272v48c0 16.12 6.16 30.67 16 41.93V416c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-32h256v32c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-54.07c9.84-11.25 16-25.8 16-41.93v-48c0-27.34-17.22-50.5-41.34-59.67zm-306.73-54.16c7.29-18.22 24.94-30.17 44.57-30.17h127c19.63 0 37.28 11.95 44.57 30.17L368 208H112l19.93-49.83zM80 319.8c-19.2 0-32-12.76-32-31.9S60.8 256 80 256s48 28.71 48 47.85-28.8 15.95-48 15.95zm320 0c-19.2 0-48 3.19-48-15.95S380.8 256 400 256s32 12.76 32 31.9-12.8 31.9-32 31.9z"] };
  2822. var faCarBattery = { prefix: 'fas', iconName: 'car-battery', icon: [512, 512, [], "f5df", "M480 128h-32V80c0-8.84-7.16-16-16-16h-96c-8.84 0-16 7.16-16 16v48H192V80c0-8.84-7.16-16-16-16H80c-8.84 0-16 7.16-16 16v48H32c-17.67 0-32 14.33-32 32v256c0 17.67 14.33 32 32 32h448c17.67 0 32-14.33 32-32V160c0-17.67-14.33-32-32-32zM192 264c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h112c4.42 0 8 3.58 8 8v16zm256 0c0 4.42-3.58 8-8 8h-40v40c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-40h-40c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h40v-40c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v40h40c4.42 0 8 3.58 8 8v16z"] };
  2823. var faCarCrash = { prefix: 'fas', iconName: 'car-crash', icon: [640, 512, [], "f5e1", "M143.25 220.81l-12.42 46.37c-3.01 11.25-3.63 22.89-2.41 34.39l-35.2 28.98c-6.57 5.41-16.31-.43-14.62-8.77l15.44-76.68c1.06-5.26-2.66-10.28-8-10.79l-77.86-7.55c-8.47-.82-11.23-11.83-4.14-16.54l65.15-43.3c4.46-2.97 5.38-9.15 1.98-13.29L21.46 93.22c-5.41-6.57.43-16.3 8.78-14.62l76.68 15.44c5.26 1.06 10.28-2.66 10.8-8l7.55-77.86c.82-8.48 11.83-11.23 16.55-4.14l43.3 65.14c2.97 4.46 9.15 5.38 13.29 1.98l60.4-49.71c6.57-5.41 16.3.43 14.62 8.77L262.1 86.38c-2.71 3.05-5.43 6.09-7.91 9.4l-32.15 42.97-10.71 14.32c-32.73 8.76-59.18 34.53-68.08 67.74zm494.57 132.51l-12.42 46.36c-3.13 11.68-9.38 21.61-17.55 29.36a66.876 66.876 0 0 1-8.76 7l-13.99 52.23c-1.14 4.27-3.1 8.1-5.65 11.38-7.67 9.84-20.74 14.68-33.54 11.25L515 502.62c-17.07-4.57-27.2-22.12-22.63-39.19l8.28-30.91-247.28-66.26-8.28 30.91c-4.57 17.07-22.12 27.2-39.19 22.63l-30.91-8.28c-12.8-3.43-21.7-14.16-23.42-26.51-.57-4.12-.35-8.42.79-12.68l13.99-52.23a66.62 66.62 0 0 1-4.09-10.45c-3.2-10.79-3.65-22.52-.52-34.2l12.42-46.37c5.31-19.8 19.36-34.83 36.89-42.21a64.336 64.336 0 0 1 18.49-4.72l18.13-24.23 32.15-42.97c3.45-4.61 7.19-8.9 11.2-12.84 8-7.89 17.03-14.44 26.74-19.51 4.86-2.54 9.89-4.71 15.05-6.49 10.33-3.58 21.19-5.63 32.24-6.04 11.05-.41 22.31.82 33.43 3.8l122.68 32.87c11.12 2.98 21.48 7.54 30.85 13.43a111.11 111.11 0 0 1 34.69 34.5c8.82 13.88 14.64 29.84 16.68 46.99l6.36 53.29 3.59 30.05a64.49 64.49 0 0 1 22.74 29.93c4.39 11.88 5.29 25.19 1.75 38.39zM255.58 234.34c-18.55-4.97-34.21 4.04-39.17 22.53-4.96 18.49 4.11 34.12 22.65 39.09 18.55 4.97 45.54 15.51 50.49-2.98 4.96-18.49-15.43-53.67-33.97-58.64zm290.61 28.17l-6.36-53.29c-.58-4.87-1.89-9.53-3.82-13.86-5.8-12.99-17.2-23.01-31.42-26.82l-122.68-32.87a48.008 48.008 0 0 0-50.86 17.61l-32.15 42.97 172 46.08 75.29 20.18zm18.49 54.65c-18.55-4.97-53.8 15.31-58.75 33.79-4.95 18.49 23.69 22.86 42.24 27.83 18.55 4.97 34.21-4.04 39.17-22.53 4.95-18.48-4.11-34.12-22.66-39.09z"] };
  2824. var faCarSide = { prefix: 'fas', iconName: 'car-side', icon: [640, 512, [], "f5e4", "M544 192h-16L419.22 56.02A64.025 64.025 0 0 0 369.24 32H155.33c-26.17 0-49.7 15.93-59.42 40.23L48 194.26C20.44 201.4 0 226.21 0 256v112c0 8.84 7.16 16 16 16h48c0 53.02 42.98 96 96 96s96-42.98 96-96h128c0 53.02 42.98 96 96 96s96-42.98 96-96h48c8.84 0 16-7.16 16-16v-80c0-53.02-42.98-96-96-96zM160 432c-26.47 0-48-21.53-48-48s21.53-48 48-48 48 21.53 48 48-21.53 48-48 48zm72-240H116.93l38.4-96H232v96zm48 0V96h89.24l76.8 96H280zm200 240c-26.47 0-48-21.53-48-48s21.53-48 48-48 48 21.53 48 48-21.53 48-48 48z"] };
  2825. var faCaretDown = { prefix: 'fas', iconName: 'caret-down', icon: [320, 512, [], "f0d7", "M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z"] };
  2826. var faCaretLeft = { prefix: 'fas', iconName: 'caret-left', icon: [192, 512, [], "f0d9", "M192 127.338v257.324c0 17.818-21.543 26.741-34.142 14.142L29.196 270.142c-7.81-7.81-7.81-20.474 0-28.284l128.662-128.662c12.599-12.6 34.142-3.676 34.142 14.142z"] };
  2827. var faCaretRight = { prefix: 'fas', iconName: 'caret-right', icon: [192, 512, [], "f0da", "M0 384.662V127.338c0-17.818 21.543-26.741 34.142-14.142l128.662 128.662c7.81 7.81 7.81 20.474 0 28.284L34.142 398.804C21.543 411.404 0 402.48 0 384.662z"] };
  2828. var faCaretSquareDown = { prefix: 'fas', iconName: 'caret-square-down', icon: [448, 512, [], "f150", "M448 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zM92.5 220.5l123 123c4.7 4.7 12.3 4.7 17 0l123-123c7.6-7.6 2.2-20.5-8.5-20.5H101c-10.7 0-16.1 12.9-8.5 20.5z"] };
  2829. var faCaretSquareLeft = { prefix: 'fas', iconName: 'caret-square-left', icon: [448, 512, [], "f191", "M400 480H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h352c26.51 0 48 21.49 48 48v352c0 26.51-21.49 48-48 48zM259.515 124.485l-123.03 123.03c-4.686 4.686-4.686 12.284 0 16.971l123.029 123.029c7.56 7.56 20.485 2.206 20.485-8.485V132.971c.001-10.691-12.925-16.045-20.484-8.486z"] };
  2830. var faCaretSquareRight = { prefix: 'fas', iconName: 'caret-square-right', icon: [448, 512, [], "f152", "M48 32h352c26.51 0 48 21.49 48 48v352c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48zm140.485 355.515l123.029-123.029c4.686-4.686 4.686-12.284 0-16.971l-123.029-123.03c-7.56-7.56-20.485-2.206-20.485 8.485v246.059c0 10.691 12.926 16.045 20.485 8.486z"] };
  2831. var faCaretSquareUp = { prefix: 'fas', iconName: 'caret-square-up', icon: [448, 512, [], "f151", "M0 432V80c0-26.51 21.49-48 48-48h352c26.51 0 48 21.49 48 48v352c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48zm355.515-140.485l-123.03-123.03c-4.686-4.686-12.284-4.686-16.971 0L92.485 291.515c-7.56 7.56-2.206 20.485 8.485 20.485h246.059c10.691 0 16.045-12.926 8.486-20.485z"] };
  2832. var faCaretUp = { prefix: 'fas', iconName: 'caret-up', icon: [320, 512, [], "f0d8", "M288.662 352H31.338c-17.818 0-26.741-21.543-14.142-34.142l128.662-128.662c7.81-7.81 20.474-7.81 28.284 0l128.662 128.662c12.6 12.599 3.676 34.142-14.142 34.142z"] };
  2833. var faCartArrowDown = { prefix: 'fas', iconName: 'cart-arrow-down', icon: [576, 512, [], "f218", "M504.717 320H211.572l6.545 32h268.418c15.401 0 26.816 14.301 23.403 29.319l-5.517 24.276C523.112 414.668 536 433.828 536 456c0 31.202-25.519 56.444-56.824 55.994-29.823-.429-54.35-24.631-55.155-54.447-.44-16.287 6.085-31.049 16.803-41.548H231.176C241.553 426.165 248 440.326 248 456c0 31.813-26.528 57.431-58.67 55.938-28.54-1.325-51.751-24.385-53.251-52.917-1.158-22.034 10.436-41.455 28.051-51.586L93.883 64H24C10.745 64 0 53.255 0 40V24C0 10.745 10.745 0 24 0h102.529c11.401 0 21.228 8.021 23.513 19.19L159.208 64H551.99c15.401 0 26.816 14.301 23.403 29.319l-47.273 208C525.637 312.246 515.923 320 504.717 320zM403.029 192H360v-60c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v60h-43.029c-10.691 0-16.045 12.926-8.485 20.485l67.029 67.029c4.686 4.686 12.284 4.686 16.971 0l67.029-67.029c7.559-7.559 2.205-20.485-8.486-20.485z"] };
  2834. var faCartPlus = { prefix: 'fas', iconName: 'cart-plus', icon: [576, 512, [], "f217", "M504.717 320H211.572l6.545 32h268.418c15.401 0 26.816 14.301 23.403 29.319l-5.517 24.276C523.112 414.668 536 433.828 536 456c0 31.202-25.519 56.444-56.824 55.994-29.823-.429-54.35-24.631-55.155-54.447-.44-16.287 6.085-31.049 16.803-41.548H231.176C241.553 426.165 248 440.326 248 456c0 31.813-26.528 57.431-58.67 55.938-28.54-1.325-51.751-24.385-53.251-52.917-1.158-22.034 10.436-41.455 28.051-51.586L93.883 64H24C10.745 64 0 53.255 0 40V24C0 10.745 10.745 0 24 0h102.529c11.401 0 21.228 8.021 23.513 19.19L159.208 64H551.99c15.401 0 26.816 14.301 23.403 29.319l-47.273 208C525.637 312.246 515.923 320 504.717 320zM408 168h-48v-40c0-8.837-7.163-16-16-16h-16c-8.837 0-16 7.163-16 16v40h-48c-8.837 0-16 7.163-16 16v16c0 8.837 7.163 16 16 16h48v40c0 8.837 7.163 16 16 16h16c8.837 0 16-7.163 16-16v-40h48c8.837 0 16-7.163 16-16v-16c0-8.837-7.163-16-16-16z"] };
  2835. var faCat = { prefix: 'fas', iconName: 'cat', icon: [512, 512, [], "f6be", "M290.59 192c-20.18 0-106.82 1.98-162.59 85.95V192c0-52.94-43.06-96-96-96-17.67 0-32 14.33-32 32s14.33 32 32 32c17.64 0 32 14.36 32 32v256c0 35.3 28.7 64 64 64h176c8.84 0 16-7.16 16-16v-16c0-17.67-14.33-32-32-32h-32l128-96v144c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16V289.86c-10.29 2.67-20.89 4.54-32 4.54-61.81 0-113.52-44.05-125.41-102.4zM448 96h-64l-64-64v134.4c0 53.02 42.98 96 96 96s96-42.98 96-96V32l-64 64zm-72 80c-8.84 0-16-7.16-16-16s7.16-16 16-16 16 7.16 16 16-7.16 16-16 16zm80 0c-8.84 0-16-7.16-16-16s7.16-16 16-16 16 7.16 16 16-7.16 16-16 16z"] };
  2836. var faCertificate = { prefix: 'fas', iconName: 'certificate', icon: [512, 512, [], "f0a3", "M458.622 255.92l45.985-45.005c13.708-12.977 7.316-36.039-10.664-40.339l-62.65-15.99 17.661-62.015c4.991-17.838-11.829-34.663-29.661-29.671l-61.994 17.667-15.984-62.671C337.085.197 313.765-6.276 300.99 7.228L256 53.57 211.011 7.229c-12.63-13.351-36.047-7.234-40.325 10.668l-15.984 62.671-61.995-17.667C74.87 57.907 58.056 74.738 63.046 92.572l17.661 62.015-62.65 15.99C.069 174.878-6.31 197.944 7.392 210.915l45.985 45.005-45.985 45.004c-13.708 12.977-7.316 36.039 10.664 40.339l62.65 15.99-17.661 62.015c-4.991 17.838 11.829 34.663 29.661 29.671l61.994-17.667 15.984 62.671c4.439 18.575 27.696 24.018 40.325 10.668L256 458.61l44.989 46.001c12.5 13.488 35.987 7.486 40.325-10.668l15.984-62.671 61.994 17.667c17.836 4.994 34.651-11.837 29.661-29.671l-17.661-62.015 62.65-15.99c17.987-4.302 24.366-27.367 10.664-40.339l-45.984-45.004z"] };
  2837. var faChair = { prefix: 'fas', iconName: 'chair', icon: [448, 512, [], "f6c0", "M446.33 341.88l-10.67-32A31.996 31.996 0 0 0 405.3 288H42.69c-13.77 0-26 8.81-30.36 21.88l-10.67 32C-5.24 362.6 10.18 384 32.03 384H32v112c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16V384h256v112c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16V384h-.03c21.85 0 37.27-21.4 30.36-42.12zM112 128c0-29.48 16.2-54.99 40-68.87V256h48V48h48v208h48V59.13c23.8 13.88 40 39.39 40 68.87v128h48V128C384 57.31 326.69 0 256 0h-64C121.31 0 64 57.31 64 128v128h48V128z"] };
  2838. var faChalkboard = { prefix: 'fas', iconName: 'chalkboard', icon: [640, 512, [], "f51b", "M96 64h448v352h64V40c0-22.06-17.94-40-40-40H72C49.94 0 32 17.94 32 40v376h64V64zm528 384H480v-64H288v64H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h608c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z"] };
  2839. var faChalkboardTeacher = { prefix: 'fas', iconName: 'chalkboard-teacher', icon: [640, 512, [], "f51c", "M208 352c-2.39 0-4.78.35-7.06 1.09C187.98 357.3 174.35 360 160 360c-14.35 0-27.98-2.7-40.95-6.91-2.28-.74-4.66-1.09-7.05-1.09C49.94 352-.33 402.48 0 464.62.14 490.88 21.73 512 48 512h224c26.27 0 47.86-21.12 48-47.38.33-62.14-49.94-112.62-112-112.62zm-48-32c53.02 0 96-42.98 96-96s-42.98-96-96-96-96 42.98-96 96 42.98 96 96 96zM592 0H208c-26.47 0-48 22.25-48 49.59V96c23.42 0 45.1 6.78 64 17.8V64h352v288h-64v-64H384v64h-76.24c19.1 16.69 33.12 38.73 39.69 64H592c26.47 0 48-22.25 48-49.59V49.59C640 22.25 618.47 0 592 0z"] };
  2840. var faChargingStation = { prefix: 'fas', iconName: 'charging-station', icon: [576, 512, [], "f5e7", "M336 448H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h320c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zm208-320V80c0-8.84-7.16-16-16-16s-16 7.16-16 16v48h-32V80c0-8.84-7.16-16-16-16s-16 7.16-16 16v48h-16c-8.84 0-16 7.16-16 16v32c0 35.76 23.62 65.69 56 75.93v118.49c0 13.95-9.5 26.92-23.26 29.19C431.22 402.5 416 388.99 416 372v-28c0-48.6-39.4-88-88-88h-8V64c0-35.35-28.65-64-64-64H96C60.65 0 32 28.65 32 64v352h288V304h8c22.09 0 40 17.91 40 40v24.61c0 39.67 28.92 75.16 68.41 79.01C481.71 452.05 520 416.41 520 372V251.93c32.38-10.24 56-40.17 56-75.93v-32c0-8.84-7.16-16-16-16h-16zm-283.91 47.76l-93.7 139c-2.2 3.33-6.21 5.24-10.39 5.24-7.67 0-13.47-6.28-11.67-12.92L167.35 224H108c-7.25 0-12.85-5.59-11.89-11.89l16-107C112.9 99.9 117.98 96 124 96h68c7.88 0 13.62 6.54 11.6 13.21L192 160h57.7c9.24 0 15.01 8.78 10.39 15.76z"] };
  2841. var faChartArea = { prefix: 'fas', iconName: 'chart-area', icon: [512, 512, [], "f1fe", "M500 384c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H12c-6.6 0-12-5.4-12-12V76c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v308h436zM372.7 159.5L288 216l-85.3-113.7c-5.1-6.8-15.5-6.3-19.9 1L96 248v104h384l-89.9-187.8c-3.2-6.5-11.4-8.7-17.4-4.7z"] };
  2842. var faChartBar = { prefix: 'fas', iconName: 'chart-bar', icon: [512, 512, [], "f080", "M332.8 320h38.4c6.4 0 12.8-6.4 12.8-12.8V172.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h38.4c6.4 0 12.8-6.4 12.8-12.8V76.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-288 0h38.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h38.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zM496 384H64V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z"] };
  2843. var faChartLine = { prefix: 'fas', iconName: 'chart-line', icon: [512, 512, [], "f201", "M496 384H64V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zM464 96H345.94c-21.38 0-32.09 25.85-16.97 40.97l32.4 32.4L288 242.75l-73.37-73.37c-12.5-12.5-32.76-12.5-45.25 0l-68.69 68.69c-6.25 6.25-6.25 16.38 0 22.63l22.62 22.62c6.25 6.25 16.38 6.25 22.63 0L192 237.25l73.37 73.37c12.5 12.5 32.76 12.5 45.25 0l96-96 32.4 32.4c15.12 15.12 40.97 4.41 40.97-16.97V112c.01-8.84-7.15-16-15.99-16z"] };
  2844. var faChartPie = { prefix: 'fas', iconName: 'chart-pie', icon: [544, 512, [], "f200", "M527.79 288H290.5l158.03 158.03c6.04 6.04 15.98 6.53 22.19.68 38.7-36.46 65.32-85.61 73.13-140.86 1.34-9.46-6.51-17.85-16.06-17.85zm-15.83-64.8C503.72 103.74 408.26 8.28 288.8.04 279.68-.59 272 7.1 272 16.24V240h223.77c9.14 0 16.82-7.68 16.19-16.8zM224 288V50.71c0-9.55-8.39-17.4-17.84-16.06C86.99 51.49-4.1 155.6.14 280.37 4.5 408.51 114.83 513.59 243.03 511.98c50.4-.63 96.97-16.87 135.26-44.03 7.9-5.6 8.42-17.23 1.57-24.08L224 288z"] };
  2845. var faCheck = { prefix: 'fas', iconName: 'check', icon: [512, 512, [], "f00c", "M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"] };
  2846. var faCheckCircle = { prefix: 'fas', iconName: 'check-circle', icon: [512, 512, [], "f058", "M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"] };
  2847. var faCheckDouble = { prefix: 'fas', iconName: 'check-double', icon: [512, 512, [], "f560", "M504.5 171.95l-36.2-36.41c-10-10.05-26.21-10.05-36.2 0L192 377.02 79.9 264.28c-10-10.06-26.21-10.06-36.2 0L7.5 300.69c-10 10.05-10 26.36 0 36.41l166.4 167.36c10 10.06 26.21 10.06 36.2 0l294.4-296.09c10-10.06 10-26.36 0-36.42zM166.57 282.71c6.84 7.02 18.18 7.02 25.21.18L403.85 72.62c7.02-6.84 7.02-18.18.18-25.21L362.08 5.29c-6.84-7.02-18.18-7.02-25.21-.18L179.71 161.19l-68.23-68.77c-6.84-7.02-18.18-7.02-25.2-.18l-42.13 41.77c-7.02 6.84-7.02 18.18-.18 25.2l122.6 123.5z"] };
  2848. var faCheckSquare = { prefix: 'fas', iconName: 'check-square', icon: [448, 512, [], "f14a", "M400 480H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h352c26.51 0 48 21.49 48 48v352c0 26.51-21.49 48-48 48zm-204.686-98.059l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.248-16.379-6.249-22.628 0L184 302.745l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.25 16.379 6.25 22.628.001z"] };
  2849. var faChess = { prefix: 'fas', iconName: 'chess', icon: [512, 512, [], "f439", "M199.821 217.633a6 6 0 0 1 6 6l-.001 20.766a6 6 0 0 1-6 6h-25.805c0 31.715-2.153 96.201 17.398 153.229H64.597C84.54 345.452 82.02 279.245 82.02 250.399H56.183a6 6 0 0 1-6-6l.002-20.766a6 6 0 0 1 6-6h143.636zM41.554 115.088l34.58 95.071h103.734l34.572-95.072c2.846-7.826-2.95-16.101-11.278-16.101H152v-30.22h21.57a6 6 0 0 0 6-6V40.383a6 6 0 0 0-6-6h-28.367V6a6 6 0 0 0-6-6H116.82a6 6 0 0 0-6 6v28.383H82.421a6 6 0 0 0-6 6v22.383a6 6 0 0 0 6 6H104v30.219H52.831c-8.328.001-14.124 8.276-11.277 16.103zM222.678 445.17v-28.067a6 6 0 0 0-6-6H39.322a6 6 0 0 0-6 6v28.067l-22.148 14.164a6 6 0 0 0-2.767 5.055V506a6 6 0 0 0 6 6h227.187a6 6 0 0 0 6-6v-41.612a6 6 0 0 0-2.767-5.055l-22.149-14.163zm90.578-144.225l24.88 16.963c.09 18.124-.167 63.904-11.905 114.522h147.526c-11.713-50.475-11.969-96.324-11.882-114.537l24.859-16.949a3.856 3.856 0 0 0 1.684-3.187v-69.901a3.857 3.857 0 0 0-3.857-3.857h-27.655a3.857 3.857 0 0 0-3.857 3.857v31.514h-22.737v-31.514a3.857 3.857 0 0 0-3.858-3.857h-52.918a3.857 3.857 0 0 0-3.857 3.857v31.514h-22.737v-31.514a3.857 3.857 0 0 0-3.857-3.857H315.43a3.857 3.857 0 0 0-3.857 3.857v69.901a3.855 3.855 0 0 0 1.683 3.188zm71.585 51.906c0-8.372 6.787-15.158 15.159-15.158s15.158 6.787 15.158 15.158v30.318h-30.317v-30.318zM504.62 470.059l-13.664-10.639v-15.552a3.857 3.857 0 0 0-3.857-3.857H312.915a3.857 3.857 0 0 0-3.857 3.857v15.552l-13.677 10.639a3.857 3.857 0 0 0-1.488 3.044v35.039a3.857 3.857 0 0 0 3.857 3.857h204.5a3.857 3.857 0 0 0 3.857-3.857v-35.04a3.859 3.859 0 0 0-1.487-3.043z"] };
  2850. var faChessBishop = { prefix: 'fas', iconName: 'chess-bishop', icon: [320, 512, [], "f43a", "M123.158 77.881C107.369 72.53 96 57.597 96 40c0-22.091 17.909-40 40-40h47.796c22.091 0 40 17.909 40 40 0 17.541-11.295 32.434-27.005 37.829 23.993 16.657 48.577 46.839 68.703 82.05L144.929 280.443a6 6 0 0 0 0 8.485l14.142 14.142a6 6 0 0 0 8.485 0L280.9 189.726c17.758 38.297 29.371 79.443 29.371 114.273 0 53.786-22.897 75.788-58.446 86.033V448H68.174v-57.97C32.631 379.784 9.739 357.781 9.739 304c0-78.029 58.281-187.766 113.419-226.119zM320 500v-24c0-6.627-5.373-12-12-12H12c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h296c6.627 0 12-5.373 12-12z"] };
  2851. var faChessBoard = { prefix: 'fas', iconName: 'chess-board', icon: [512, 512, [], "f43c", "M256 256v64h-64v-64h64zm0-256h-64v64h64V0zm0 256h64v-64h-64v64zM384 0h-64v64h64V0zm0 512h64v-64h-64v64zm128-64v-64h-64v64h64zm-384 64h64v-64h-64v64zm0-512H64v64h64V0zm384 192v-64h-64v64h64zm0 128v-64h-64v64h64zM0 512h64v-64H0v64zM0 64v64h64V64H0zm0 128v64h64v-64H0zm0 128v64h64v-64H0zm256 192h64v-64h-64v64zm-64-128v64h64v-64h-64zm64-192v-64h-64v64h64zM64 384v64h64v-64H64zm64-128H64v64h64v-64zm256 128h64v-64h-64v64zM512 0h-64v64h64V0zM384 256h64v-64h-64v64zm0-192v64h64V64h-64zm-64 320v64h64v-64h-64zm-192-64v64h64v-64h-64zm128 0v64h64v-64h-64zm-64-128h-64v64h64v-64zm-64-64H64v64h64v-64zm192 192h64v-64h-64v64zM192 128V64h-64v64h64zm128 0V64h-64v64h64zm0 64h64v-64h-64v64z"] };
  2852. var faChessKing = { prefix: 'fas', iconName: 'chess-king', icon: [448, 512, [], "f43f", "M416 476v24c0 6.627-5.373 12-12 12H44c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h360c6.627 0 12 5.373 12 12zm-8.033-324H248v-48h50a6 6 0 0 0 6-6V62a6 6 0 0 0-6-6h-50V6a6 6 0 0 0-6-6h-36a6 6 0 0 0-6 6v50h-50a6 6 0 0 0-6 6v36a6 6 0 0 0 6 6h50v48H40.033c-27.574 0-46.879 27.244-37.738 53.259L87.582 448h272.836l85.287-242.741C454.846 179.244 435.541 152 407.967 152z"] };
  2853. var faChessKnight = { prefix: 'fas', iconName: 'chess-knight', icon: [384, 512, [], "f441", "M352 224v224H32v-46.557c0-30.302 17.12-58.003 44.223-71.554l57.243-28.622A48 48 0 0 0 160 258.334V208l-22.127 11.063a23.996 23.996 0 0 0-12.55 15.645l-11.835 47.338a12 12 0 0 1-7.185 8.231l-29.601 11.84a11.998 11.998 0 0 1-9.33-.176L7.126 275.167A12 12 0 0 1 0 264.201v-158.26c0-6.365 2.529-12.47 7.03-16.971L16 80 1.789 51.578A16.937 16.937 0 0 1 0 44c0-6.627 5.373-12 12-12h148c106.039 0 192 85.961 192 192zm20 240H12c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h360c6.627 0 12-5.373 12-12v-24c0-6.627-5.373-12-12-12zM52 128c-11.046 0-20 8.954-20 20s8.954 20 20 20 20-8.954 20-20-8.954-20-20-20z"] };
  2854. var faChessPawn = { prefix: 'fas', iconName: 'chess-pawn', icon: [320, 512, [], "f443", "M264 448H56s60-42.743 60-176H84c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h40.209C95.721 210.56 76 181.588 76 148c0-46.392 37.608-84 84-84s84 37.608 84 84c0 33.588-19.721 62.56-48.209 76H236c6.627 0 12 5.373 12 12v24c0 6.627-5.373 12-12 12h-32c0 133.257 60 176 60 176zm28 16H28c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h264c6.627 0 12-5.373 12-12v-24c0-6.627-5.373-12-12-12z"] };
  2855. var faChessQueen = { prefix: 'fas', iconName: 'chess-queen', icon: [512, 512, [], "f445", "M436 512H76c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h360c6.627 0 12 5.373 12 12v24c0 6.627-5.373 12-12 12zM255.579 0c-30.928 0-56 25.072-56 56s25.072 56 56 56 56-25.072 56-56-25.072-56-56-56zm204.568 154.634c-5.768-3.045-12.916-.932-16.082 4.77-8.616 15.516-22.747 37.801-44.065 37.801-28.714 0-30.625-19.804-31.686-57.542-.183-6.492-5.501-11.664-11.995-11.664h-41.006c-5.175 0-9.754 3.328-11.388 8.238-8.89 26.709-26.073 40.992-47.925 40.992s-39.034-14.283-47.925-40.992c-1.634-4.91-6.213-8.238-11.388-8.238h-41.005c-6.495 0-11.813 5.174-11.995 11.667-1.052 37.642-2.934 57.539-31.688 57.539-20.691 0-33.817-20.224-44.425-38.025-3.266-5.48-10.258-7.431-15.899-4.453l-39.179 20.679a12 12 0 0 0-5.51 15.145L112 448h288l105.014-257.448a12 12 0 0 0-5.51-15.145l-39.357-20.773z"] };
  2856. var faChessRook = { prefix: 'fas', iconName: 'chess-rook', icon: [384, 512, [], "f447", "M81.241 215.027C80.957 258.92 77.411 348.076 48 448h287.982c-29.4-99.604-32.936-188.912-33.221-232.975l45.418-42.312a11.998 11.998 0 0 0 3.82-8.78V44c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v44h-48V44c0-6.627-5.373-12-12-12h-72c-6.627 0-12 5.373-12 12v44H96V44c0-6.627-5.373-12-12-12H44c-6.627 0-12 5.373-12 12v119.932c0 3.33 1.384 6.51 3.82 8.78l45.421 42.315zM160 256c0-17.673 14.327-32 32-32 17.673 0 32 14.327 32 32v64.004h-64V256zm224 220v24c0 6.627-5.373 12-12 12H12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h360c6.627 0 12 5.373 12 12z"] };
  2857. var faChevronCircleDown = { prefix: 'fas', iconName: 'chevron-circle-down', icon: [512, 512, [], "f13a", "M504 256c0 137-111 248-248 248S8 393 8 256 119 8 256 8s248 111 248 248zM273 369.9l135.5-135.5c9.4-9.4 9.4-24.6 0-33.9l-17-17c-9.4-9.4-24.6-9.4-33.9 0L256 285.1 154.4 183.5c-9.4-9.4-24.6-9.4-33.9 0l-17 17c-9.4 9.4-9.4 24.6 0 33.9L239 369.9c9.4 9.4 24.6 9.4 34 0z"] };
  2858. var faChevronCircleLeft = { prefix: 'fas', iconName: 'chevron-circle-left', icon: [512, 512, [], "f137", "M256 504C119 504 8 393 8 256S119 8 256 8s248 111 248 248-111 248-248 248zM142.1 273l135.5 135.5c9.4 9.4 24.6 9.4 33.9 0l17-17c9.4-9.4 9.4-24.6 0-33.9L226.9 256l101.6-101.6c9.4-9.4 9.4-24.6 0-33.9l-17-17c-9.4-9.4-24.6-9.4-33.9 0L142.1 239c-9.4 9.4-9.4 24.6 0 34z"] };
  2859. var faChevronCircleRight = { prefix: 'fas', iconName: 'chevron-circle-right', icon: [512, 512, [], "f138", "M256 8c137 0 248 111 248 248S393 504 256 504 8 393 8 256 119 8 256 8zm113.9 231L234.4 103.5c-9.4-9.4-24.6-9.4-33.9 0l-17 17c-9.4 9.4-9.4 24.6 0 33.9L285.1 256 183.5 357.6c-9.4 9.4-9.4 24.6 0 33.9l17 17c9.4 9.4 24.6 9.4 33.9 0L369.9 273c9.4-9.4 9.4-24.6 0-34z"] };
  2860. var faChevronCircleUp = { prefix: 'fas', iconName: 'chevron-circle-up', icon: [512, 512, [], "f139", "M8 256C8 119 119 8 256 8s248 111 248 248-111 248-248 248S8 393 8 256zm231-113.9L103.5 277.6c-9.4 9.4-9.4 24.6 0 33.9l17 17c9.4 9.4 24.6 9.4 33.9 0L256 226.9l101.6 101.6c9.4 9.4 24.6 9.4 33.9 0l17-17c9.4-9.4 9.4-24.6 0-33.9L273 142.1c-9.4-9.4-24.6-9.4-34 0z"] };
  2861. var faChevronDown = { prefix: 'fas', iconName: 'chevron-down', icon: [448, 512, [], "f078", "M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"] };
  2862. var faChevronLeft = { prefix: 'fas', iconName: 'chevron-left', icon: [320, 512, [], "f053", "M34.52 239.03L228.87 44.69c9.37-9.37 24.57-9.37 33.94 0l22.67 22.67c9.36 9.36 9.37 24.52.04 33.9L131.49 256l154.02 154.75c9.34 9.38 9.32 24.54-.04 33.9l-22.67 22.67c-9.37 9.37-24.57 9.37-33.94 0L34.52 272.97c-9.37-9.37-9.37-24.57 0-33.94z"] };
  2863. var faChevronRight = { prefix: 'fas', iconName: 'chevron-right', icon: [320, 512, [], "f054", "M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"] };
  2864. var faChevronUp = { prefix: 'fas', iconName: 'chevron-up', icon: [448, 512, [], "f077", "M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z"] };
  2865. var faChild = { prefix: 'fas', iconName: 'child', icon: [384, 512, [], "f1ae", "M120 72c0-39.765 32.235-72 72-72s72 32.235 72 72c0 39.764-32.235 72-72 72s-72-32.236-72-72zm254.627 1.373c-12.496-12.497-32.758-12.497-45.254 0L242.745 160H141.254L54.627 73.373c-12.496-12.497-32.758-12.497-45.254 0-12.497 12.497-12.497 32.758 0 45.255L104 213.254V480c0 17.673 14.327 32 32 32h16c17.673 0 32-14.327 32-32V368h16v112c0 17.673 14.327 32 32 32h16c17.673 0 32-14.327 32-32V213.254l94.627-94.627c12.497-12.497 12.497-32.757 0-45.254z"] };
  2866. var faChurch = { prefix: 'fas', iconName: 'church', icon: [640, 512, [], "f51d", "M464.46 246.68L352 179.2V128h48c8.84 0 16-7.16 16-16V80c0-8.84-7.16-16-16-16h-48V16c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v48h-48c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h48v51.2l-112.46 67.48A31.997 31.997 0 0 0 160 274.12V512h96v-96c0-35.35 28.65-64 64-64s64 28.65 64 64v96h96V274.12c0-11.24-5.9-21.66-15.54-27.44zM0 395.96V496c0 8.84 7.16 16 16 16h112V320L19.39 366.54A32.024 32.024 0 0 0 0 395.96zm620.61-29.42L512 320v192h112c8.84 0 16-7.16 16-16V395.96c0-12.8-7.63-24.37-19.39-29.42z"] };
  2867. var faCircle = { prefix: 'fas', iconName: 'circle', icon: [512, 512, [], "f111", "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8z"] };
  2868. var faCircleNotch = { prefix: 'fas', iconName: 'circle-notch', icon: [512, 512, [], "f1ce", "M288 39.056v16.659c0 10.804 7.281 20.159 17.686 23.066C383.204 100.434 440 171.518 440 256c0 101.689-82.295 184-184 184-101.689 0-184-82.295-184-184 0-84.47 56.786-155.564 134.312-177.219C216.719 75.874 224 66.517 224 55.712V39.064c0-15.709-14.834-27.153-30.046-23.234C86.603 43.482 7.394 141.206 8.003 257.332c.72 137.052 111.477 246.956 248.531 246.667C393.255 503.711 504 392.788 504 256c0-115.633-79.14-212.779-186.211-240.236C302.678 11.889 288 23.456 288 39.056z"] };
  2869. var faCity = { prefix: 'fas', iconName: 'city', icon: [640, 512, [], "f64f", "M616 192H480V24c0-13.26-10.74-24-24-24H312c-13.26 0-24 10.74-24 24v72h-64V16c0-8.84-7.16-16-16-16h-16c-8.84 0-16 7.16-16 16v80h-64V16c0-8.84-7.16-16-16-16H80c-8.84 0-16 7.16-16 16v80H24c-13.26 0-24 10.74-24 24v360c0 17.67 14.33 32 32 32h576c17.67 0 32-14.33 32-32V216c0-13.26-10.75-24-24-24zM128 404c0 6.63-5.37 12-12 12H76c-6.63 0-12-5.37-12-12v-40c0-6.63 5.37-12 12-12h40c6.63 0 12 5.37 12 12v40zm0-96c0 6.63-5.37 12-12 12H76c-6.63 0-12-5.37-12-12v-40c0-6.63 5.37-12 12-12h40c6.63 0 12 5.37 12 12v40zm0-96c0 6.63-5.37 12-12 12H76c-6.63 0-12-5.37-12-12v-40c0-6.63 5.37-12 12-12h40c6.63 0 12 5.37 12 12v40zm128 192c0 6.63-5.37 12-12 12h-40c-6.63 0-12-5.37-12-12v-40c0-6.63 5.37-12 12-12h40c6.63 0 12 5.37 12 12v40zm0-96c0 6.63-5.37 12-12 12h-40c-6.63 0-12-5.37-12-12v-40c0-6.63 5.37-12 12-12h40c6.63 0 12 5.37 12 12v40zm0-96c0 6.63-5.37 12-12 12h-40c-6.63 0-12-5.37-12-12v-40c0-6.63 5.37-12 12-12h40c6.63 0 12 5.37 12 12v40zm160 96c0 6.63-5.37 12-12 12h-40c-6.63 0-12-5.37-12-12v-40c0-6.63 5.37-12 12-12h40c6.63 0 12 5.37 12 12v40zm0-96c0 6.63-5.37 12-12 12h-40c-6.63 0-12-5.37-12-12v-40c0-6.63 5.37-12 12-12h40c6.63 0 12 5.37 12 12v40zm0-96c0 6.63-5.37 12-12 12h-40c-6.63 0-12-5.37-12-12V76c0-6.63 5.37-12 12-12h40c6.63 0 12 5.37 12 12v40zm160 288c0 6.63-5.37 12-12 12h-40c-6.63 0-12-5.37-12-12v-40c0-6.63 5.37-12 12-12h40c6.63 0 12 5.37 12 12v40zm0-96c0 6.63-5.37 12-12 12h-40c-6.63 0-12-5.37-12-12v-40c0-6.63 5.37-12 12-12h40c6.63 0 12 5.37 12 12v40z"] };
  2870. var faClipboard = { prefix: 'fas', iconName: 'clipboard', icon: [384, 512, [], "f328", "M384 112v352c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h80c0-35.29 28.71-64 64-64s64 28.71 64 64h80c26.51 0 48 21.49 48 48zM192 40c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24m96 114v-20a6 6 0 0 0-6-6H102a6 6 0 0 0-6 6v20a6 6 0 0 0 6 6h180a6 6 0 0 0 6-6z"] };
  2871. var faClipboardCheck = { prefix: 'fas', iconName: 'clipboard-check', icon: [384, 512, [], "f46c", "M336 64h-80c0-35.3-28.7-64-64-64s-64 28.7-64 64H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zM192 40c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24zm121.2 231.8l-143 141.8c-4.7 4.7-12.3 4.6-17-.1l-82.6-83.3c-4.7-4.7-4.6-12.3.1-17L99.1 285c4.7-4.7 12.3-4.6 17 .1l46 46.4 106-105.2c4.7-4.7 12.3-4.6 17 .1l28.2 28.4c4.7 4.8 4.6 12.3-.1 17z"] };
  2872. var faClipboardList = { prefix: 'fas', iconName: 'clipboard-list', icon: [384, 512, [], "f46d", "M336 64h-80c0-35.3-28.7-64-64-64s-64 28.7-64 64H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zM96 424c-13.3 0-24-10.7-24-24s10.7-24 24-24 24 10.7 24 24-10.7 24-24 24zm0-96c-13.3 0-24-10.7-24-24s10.7-24 24-24 24 10.7 24 24-10.7 24-24 24zm0-96c-13.3 0-24-10.7-24-24s10.7-24 24-24 24 10.7 24 24-10.7 24-24 24zm96-192c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24zm128 368c0 4.4-3.6 8-8 8H168c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16zm0-96c0 4.4-3.6 8-8 8H168c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16zm0-96c0 4.4-3.6 8-8 8H168c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16z"] };
  2873. var faClock = { prefix: 'fas', iconName: 'clock', icon: [512, 512, [], "f017", "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm57.1 350.1L224.9 294c-3.1-2.3-4.9-5.9-4.9-9.7V116c0-6.6 5.4-12 12-12h48c6.6 0 12 5.4 12 12v137.7l63.5 46.2c5.4 3.9 6.5 11.4 2.6 16.8l-28.2 38.8c-3.9 5.3-11.4 6.5-16.8 2.6z"] };
  2874. var faClone = { prefix: 'fas', iconName: 'clone', icon: [512, 512, [], "f24d", "M464 0c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48H176c-26.51 0-48-21.49-48-48V48c0-26.51 21.49-48 48-48h288M176 416c-44.112 0-80-35.888-80-80V128H48c-26.51 0-48 21.49-48 48v288c0 26.51 21.49 48 48 48h288c26.51 0 48-21.49 48-48v-48H176z"] };
  2875. var faClosedCaptioning = { prefix: 'fas', iconName: 'closed-captioning', icon: [512, 512, [], "f20a", "M464 64H48C21.5 64 0 85.5 0 112v288c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zM218.1 287.7c2.8-2.5 7.1-2.1 9.2.9l19.5 27.7c1.7 2.4 1.5 5.6-.5 7.7-53.6 56.8-172.8 32.1-172.8-67.9 0-97.3 121.7-119.5 172.5-70.1 2.1 2 2.5 3.2 1 5.7l-17.5 30.5c-1.9 3.1-6.2 4-9.1 1.7-40.8-32-94.6-14.9-94.6 31.2.1 48 51.1 70.5 92.3 32.6zm190.4 0c2.8-2.5 7.1-2.1 9.2.9l19.5 27.7c1.7 2.4 1.5 5.6-.5 7.7-53.5 56.9-172.7 32.1-172.7-67.9 0-97.3 121.7-119.5 172.5-70.1 2.1 2 2.5 3.2 1 5.7L420 222.2c-1.9 3.1-6.2 4-9.1 1.7-40.8-32-94.6-14.9-94.6 31.2 0 48 51 70.5 92.2 32.6z"] };
  2876. var faCloud = { prefix: 'fas', iconName: 'cloud', icon: [640, 512, [], "f0c2", "M537.6 226.6c4.1-10.7 6.4-22.4 6.4-34.6 0-53-43-96-96-96-19.7 0-38.1 6-53.3 16.2C367 64.2 315.3 32 256 32c-88.4 0-160 71.6-160 160 0 2.7.1 5.4.2 8.1C40.2 219.8 0 273.2 0 336c0 79.5 64.5 144 144 144h368c70.7 0 128-57.3 128-128 0-61.9-44-113.6-102.4-125.4z"] };
  2877. var faCloudDownloadAlt = { prefix: 'fas', iconName: 'cloud-download-alt', icon: [640, 512, [], "f381", "M537.6 226.6c4.1-10.7 6.4-22.4 6.4-34.6 0-53-43-96-96-96-19.7 0-38.1 6-53.3 16.2C367 64.2 315.3 32 256 32c-88.4 0-160 71.6-160 160 0 2.7.1 5.4.2 8.1C40.2 219.8 0 273.2 0 336c0 79.5 64.5 144 144 144h368c70.7 0 128-57.3 128-128 0-61.9-44-113.6-102.4-125.4zm-132.9 88.7L299.3 420.7c-6.2 6.2-16.4 6.2-22.6 0L171.3 315.3c-10.1-10.1-2.9-27.3 11.3-27.3H248V176c0-8.8 7.2-16 16-16h48c8.8 0 16 7.2 16 16v112h65.4c14.2 0 21.4 17.2 11.3 27.3z"] };
  2878. var faCloudMoon = { prefix: 'fas', iconName: 'cloud-moon', icon: [640, 512, [], "f6c3", "M342.75 352.68c5.74-9.59 9.25-20.69 9.25-32.68 0-35.35-28.65-64-64-64-17.21 0-32.77 6.88-44.27 17.93C227.39 244.3 196.23 224 160 224c-53.02 0-96 42.98-96 96 0 1.95.46 3.78.57 5.7C27.08 338.77 0 374.05 0 416c0 53.02 42.98 96 96 96h240c44.18 0 80-35.82 80-80 0-41.87-32.28-75.84-73.25-79.32zm285.26-29.42c-104.23 19.22-199.95-58.16-199.95-160.03 0-58.68 32.45-112.64 85.18-141.7 8.13-4.48 6.08-16.41-3.15-18.06C497.14 1.17 484 0 470.84 0 352.25 0 256 93.04 256 208c0 7.26.4 14.44 1.15 21.51 9.87-3.38 20.18-5.51 30.85-5.51 52.94 0 96 43.06 96 96 0 3.59-.21 7.17-.63 10.73 33.49 15.39 57.47 46.55 63.24 83.86 7.96.87 16.03 1.41 24.23 1.41 66.26 0 126.79-29.19 166.88-77.02 5.93-7.07-.54-17.41-9.71-15.72z"] };
  2879. var faCloudSun = { prefix: 'fas', iconName: 'cloud-sun', icon: [640, 512, [], "f6c4", "M342.75 352.68c5.74-9.59 9.25-20.69 9.25-32.68 0-35.35-28.65-64-64-64-17.21 0-32.77 6.88-44.27 17.93C227.39 244.31 196.23 224 160 224c-53.02 0-96 42.98-96 96 0 1.95.46 3.78.57 5.7C27.08 338.77 0 374.05 0 416c0 53.02 42.98 96 96 96h240c44.18 0 80-35.82 80-80 0-41.87-32.28-75.84-73.25-79.32zm243.19-99.8c-7.85-6.79-7.85-18.97 0-25.76L633.41 186c12.76-11.05 5.84-32.02-11-33.3l-61.59-4.67c-10.19-.78-17.28-10.49-14.9-20.43l14.95-62.48c3.89-16.26-13.96-29.02-28.08-20.07l-52.51 33.26c-8.61 5.46-20.06 1.75-23.85-7.72l-23.47-58.74c-6.32-15.81-28.19-15.81-34.51 0l-23.38 58.49c-3.83 9.59-15.44 13.35-24.17 7.82l-52.29-33.12c-14.13-8.95-31.98 3.81-28.08 20.07l14.95 62.48c2.38 9.94-4.7 19.65-14.9 20.43l-61.15 4.64c-17 1.29-23.99 22.46-11.1 33.62l31.23 27.05c7.82 5.17 15.21 11.01 21.78 17.84 11.42-4.71 23.73-7.18 36.37-7.18 5.97 0 11.77.71 17.44 1.76 7.09-54.98 53.68-97.76 110.56-97.76 61.76 0 112 50.24 112 112s-50.24 112-112 112c-.95 0-1.83-.26-2.77-.28 13.83 13.2 24.61 29.47 30.16 48.28h27.02c6.25 0 12.37 1.83 17.6 5.27l45.08 29.68c14.19 8.99 31.89-4.17 27.92-20.76l-14.69-61.38c-2.43-10.16 4.8-20.08 15.22-20.87l61.16-4.64c16.84-1.28 23.76-22.25 11-33.3l-47.47-41.11zm-202.66 59.94C393.3 317.34 404.32 320 416 320c44.11 0 80-35.89 80-80s-35.89-80-80-80c-43.25 0-78.39 34.56-79.75 77.49 26.44 15.53 44.59 43.13 47.03 75.33z"] };
  2880. var faCloudUploadAlt = { prefix: 'fas', iconName: 'cloud-upload-alt', icon: [640, 512, [], "f382", "M537.6 226.6c4.1-10.7 6.4-22.4 6.4-34.6 0-53-43-96-96-96-19.7 0-38.1 6-53.3 16.2C367 64.2 315.3 32 256 32c-88.4 0-160 71.6-160 160 0 2.7.1 5.4.2 8.1C40.2 219.8 0 273.2 0 336c0 79.5 64.5 144 144 144h368c70.7 0 128-57.3 128-128 0-61.9-44-113.6-102.4-125.4zM393.4 288H328v112c0 8.8-7.2 16-16 16h-48c-8.8 0-16-7.2-16-16V288h-65.4c-14.3 0-21.4-17.2-11.3-27.3l105.4-105.4c6.2-6.2 16.4-6.2 22.6 0l105.4 105.4c10.1 10.1 2.9 27.3-11.3 27.3z"] };
  2881. var faCocktail = { prefix: 'fas', iconName: 'cocktail', icon: [576, 512, [], "f561", "M296 464h-56V338.78l168.74-168.73c15.52-15.52 4.53-42.05-17.42-42.05H24.68c-21.95 0-32.94 26.53-17.42 42.05L176 338.78V464h-56c-22.09 0-40 17.91-40 40 0 4.42 3.58 8 8 8h240c4.42 0 8-3.58 8-8 0-22.09-17.91-40-40-40zM432 0c-62.61 0-115.35 40.2-135.18 96h52.54c16.65-28.55 47.27-48 82.64-48 52.93 0 96 43.06 96 96s-43.07 96-96 96c-14.04 0-27.29-3.2-39.32-8.64l-35.26 35.26C379.23 279.92 404.59 288 432 288c79.53 0 144-64.47 144-144S511.53 0 432 0z"] };
  2882. var faCode = { prefix: 'fas', iconName: 'code', icon: [640, 512, [], "f121", "M278.9 511.5l-61-17.7c-6.4-1.8-10-8.5-8.2-14.9L346.2 8.7c1.8-6.4 8.5-10 14.9-8.2l61 17.7c6.4 1.8 10 8.5 8.2 14.9L293.8 503.3c-1.9 6.4-8.5 10.1-14.9 8.2zm-114-112.2l43.5-46.4c4.6-4.9 4.3-12.7-.8-17.2L117 256l90.6-79.7c5.1-4.5 5.5-12.3.8-17.2l-43.5-46.4c-4.5-4.8-12.1-5.1-17-.5L3.8 247.2c-5.1 4.7-5.1 12.8 0 17.5l144.1 135.1c4.9 4.6 12.5 4.4 17-.5zm327.2.6l144.1-135.1c5.1-4.7 5.1-12.8 0-17.5L492.1 112.1c-4.8-4.5-12.4-4.3-17 .5L431.6 159c-4.6 4.9-4.3 12.7.8 17.2L523 256l-90.6 79.7c-5.1 4.5-5.5 12.3-.8 17.2l43.5 46.4c4.5 4.9 12.1 5.1 17 .6z"] };
  2883. var faCodeBranch = { prefix: 'fas', iconName: 'code-branch', icon: [384, 512, [], "f126", "M384 144c0-44.2-35.8-80-80-80s-80 35.8-80 80c0 36.4 24.3 67.1 57.5 76.8-.6 16.1-4.2 28.5-11 36.9-15.4 19.2-49.3 22.4-85.2 25.7-28.2 2.6-57.4 5.4-81.3 16.9v-144c32.5-10.2 56-40.5 56-76.3 0-44.2-35.8-80-80-80S0 35.8 0 80c0 35.8 23.5 66.1 56 76.3v199.3C23.5 365.9 0 396.2 0 432c0 44.2 35.8 80 80 80s80-35.8 80-80c0-34-21.2-63.1-51.2-74.6 3.1-5.2 7.8-9.8 14.9-13.4 16.2-8.2 40.4-10.4 66.1-12.8 42.2-3.9 90-8.4 118.2-43.4 14-17.4 21.1-39.8 21.6-67.9 31.6-10.8 54.4-40.7 54.4-75.9zM80 64c8.8 0 16 7.2 16 16s-7.2 16-16 16-16-7.2-16-16 7.2-16 16-16zm0 384c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm224-320c8.8 0 16 7.2 16 16s-7.2 16-16 16-16-7.2-16-16 7.2-16 16-16z"] };
  2884. var faCoffee = { prefix: 'fas', iconName: 'coffee', icon: [640, 512, [], "f0f4", "M192 384h192c53 0 96-43 96-96h32c70.6 0 128-57.4 128-128S582.6 32 512 32H120c-13.3 0-24 10.7-24 24v232c0 53 43 96 96 96zM512 96c35.3 0 64 28.7 64 64s-28.7 64-64 64h-32V96h32zm47.7 384H48.3c-47.6 0-61-64-36-64h583.3c25 0 11.8 64-35.9 64z"] };
  2885. var faCog = { prefix: 'fas', iconName: 'cog', icon: [512, 512, [], "f013", "M444.788 291.1l42.616 24.599c4.867 2.809 7.126 8.618 5.459 13.985-11.07 35.642-29.97 67.842-54.689 94.586a12.016 12.016 0 0 1-14.832 2.254l-42.584-24.595a191.577 191.577 0 0 1-60.759 35.13v49.182a12.01 12.01 0 0 1-9.377 11.718c-34.956 7.85-72.499 8.256-109.219.007-5.49-1.233-9.403-6.096-9.403-11.723v-49.184a191.555 191.555 0 0 1-60.759-35.13l-42.584 24.595a12.016 12.016 0 0 1-14.832-2.254c-24.718-26.744-43.619-58.944-54.689-94.586-1.667-5.366.592-11.175 5.459-13.985L67.212 291.1a193.48 193.48 0 0 1 0-70.199l-42.616-24.599c-4.867-2.809-7.126-8.618-5.459-13.985 11.07-35.642 29.97-67.842 54.689-94.586a12.016 12.016 0 0 1 14.832-2.254l42.584 24.595a191.577 191.577 0 0 1 60.759-35.13V25.759a12.01 12.01 0 0 1 9.377-11.718c34.956-7.85 72.499-8.256 109.219-.007 5.49 1.233 9.403 6.096 9.403 11.723v49.184a191.555 191.555 0 0 1 60.759 35.13l42.584-24.595a12.016 12.016 0 0 1 14.832 2.254c24.718 26.744 43.619 58.944 54.689 94.586 1.667 5.366-.592 11.175-5.459 13.985L444.788 220.9a193.485 193.485 0 0 1 0 70.2zM336 256c0-44.112-35.888-80-80-80s-80 35.888-80 80 35.888 80 80 80 80-35.888 80-80z"] };
  2886. var faCogs = { prefix: 'fas', iconName: 'cogs', icon: [640, 512, [], "f085", "M512.1 191l-8.2 14.3c-3 5.3-9.4 7.5-15.1 5.4-11.8-4.4-22.6-10.7-32.1-18.6-4.6-3.8-5.8-10.5-2.8-15.7l8.2-14.3c-6.9-8-12.3-17.3-15.9-27.4h-16.5c-6 0-11.2-4.3-12.2-10.3-2-12-2.1-24.6 0-37.1 1-6 6.2-10.4 12.2-10.4h16.5c3.6-10.1 9-19.4 15.9-27.4l-8.2-14.3c-3-5.2-1.9-11.9 2.8-15.7 9.5-7.9 20.4-14.2 32.1-18.6 5.7-2.1 12.1.1 15.1 5.4l8.2 14.3c10.5-1.9 21.2-1.9 31.7 0L552 6.3c3-5.3 9.4-7.5 15.1-5.4 11.8 4.4 22.6 10.7 32.1 18.6 4.6 3.8 5.8 10.5 2.8 15.7l-8.2 14.3c6.9 8 12.3 17.3 15.9 27.4h16.5c6 0 11.2 4.3 12.2 10.3 2 12 2.1 24.6 0 37.1-1 6-6.2 10.4-12.2 10.4h-16.5c-3.6 10.1-9 19.4-15.9 27.4l8.2 14.3c3 5.2 1.9 11.9-2.8 15.7-9.5 7.9-20.4 14.2-32.1 18.6-5.7 2.1-12.1-.1-15.1-5.4l-8.2-14.3c-10.4 1.9-21.2 1.9-31.7 0zm-10.5-58.8c38.5 29.6 82.4-14.3 52.8-52.8-38.5-29.7-82.4 14.3-52.8 52.8zM386.3 286.1l33.7 16.8c10.1 5.8 14.5 18.1 10.5 29.1-8.9 24.2-26.4 46.4-42.6 65.8-7.4 8.9-20.2 11.1-30.3 5.3l-29.1-16.8c-16 13.7-34.6 24.6-54.9 31.7v33.6c0 11.6-8.3 21.6-19.7 23.6-24.6 4.2-50.4 4.4-75.9 0-11.5-2-20-11.9-20-23.6V418c-20.3-7.2-38.9-18-54.9-31.7L74 403c-10 5.8-22.9 3.6-30.3-5.3-16.2-19.4-33.3-41.6-42.2-65.7-4-10.9.4-23.2 10.5-29.1l33.3-16.8c-3.9-20.9-3.9-42.4 0-63.4L12 205.8c-10.1-5.8-14.6-18.1-10.5-29 8.9-24.2 26-46.4 42.2-65.8 7.4-8.9 20.2-11.1 30.3-5.3l29.1 16.8c16-13.7 34.6-24.6 54.9-31.7V57.1c0-11.5 8.2-21.5 19.6-23.5 24.6-4.2 50.5-4.4 76-.1 11.5 2 20 11.9 20 23.6v33.6c20.3 7.2 38.9 18 54.9 31.7l29.1-16.8c10-5.8 22.9-3.6 30.3 5.3 16.2 19.4 33.2 41.6 42.1 65.8 4 10.9.1 23.2-10 29.1l-33.7 16.8c3.9 21 3.9 42.5 0 63.5zm-117.6 21.1c59.2-77-28.7-164.9-105.7-105.7-59.2 77 28.7 164.9 105.7 105.7zm243.4 182.7l-8.2 14.3c-3 5.3-9.4 7.5-15.1 5.4-11.8-4.4-22.6-10.7-32.1-18.6-4.6-3.8-5.8-10.5-2.8-15.7l8.2-14.3c-6.9-8-12.3-17.3-15.9-27.4h-16.5c-6 0-11.2-4.3-12.2-10.3-2-12-2.1-24.6 0-37.1 1-6 6.2-10.4 12.2-10.4h16.5c3.6-10.1 9-19.4 15.9-27.4l-8.2-14.3c-3-5.2-1.9-11.9 2.8-15.7 9.5-7.9 20.4-14.2 32.1-18.6 5.7-2.1 12.1.1 15.1 5.4l8.2 14.3c10.5-1.9 21.2-1.9 31.7 0l8.2-14.3c3-5.3 9.4-7.5 15.1-5.4 11.8 4.4 22.6 10.7 32.1 18.6 4.6 3.8 5.8 10.5 2.8 15.7l-8.2 14.3c6.9 8 12.3 17.3 15.9 27.4h16.5c6 0 11.2 4.3 12.2 10.3 2 12 2.1 24.6 0 37.1-1 6-6.2 10.4-12.2 10.4h-16.5c-3.6 10.1-9 19.4-15.9 27.4l8.2 14.3c3 5.2 1.9 11.9-2.8 15.7-9.5 7.9-20.4 14.2-32.1 18.6-5.7 2.1-12.1-.1-15.1-5.4l-8.2-14.3c-10.4 1.9-21.2 1.9-31.7 0zM501.6 431c38.5 29.6 82.4-14.3 52.8-52.8-38.5-29.6-82.4 14.3-52.8 52.8z"] };
  2887. var faCoins = { prefix: 'fas', iconName: 'coins', icon: [512, 512, [], "f51e", "M0 405.3V448c0 35.3 86 64 192 64s192-28.7 192-64v-42.7C342.7 434.4 267.2 448 192 448S41.3 434.4 0 405.3zM320 128c106 0 192-28.7 192-64S426 0 320 0 128 28.7 128 64s86 64 192 64zM0 300.4V352c0 35.3 86 64 192 64s192-28.7 192-64v-51.6c-41.3 34-116.9 51.6-192 51.6S41.3 334.4 0 300.4zm416 11c57.3-11.1 96-31.7 96-55.4v-42.7c-23.2 16.4-57.3 27.6-96 34.5v63.6zM192 160C86 160 0 195.8 0 240s86 80 192 80 192-35.8 192-80-86-80-192-80zm219.3 56.3c60-10.8 100.7-32 100.7-56.3v-42.7c-35.5 25.1-96.5 38.6-160.7 41.8 29.5 14.3 51.2 33.5 60 57.2z"] };
  2888. var faColumns = { prefix: 'fas', iconName: 'columns', icon: [512, 512, [], "f0db", "M464 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zM224 416H64V160h160v256zm224 0H288V160h160v256z"] };
  2889. var faComment = { prefix: 'fas', iconName: 'comment', icon: [512, 512, [], "f075", "M256 32C114.6 32 0 125.1 0 240c0 49.6 21.4 95 57 130.7C44.5 421.1 2.7 466 2.2 466.5c-2.2 2.3-2.8 5.7-1.5 8.7S4.8 480 8 480c66.3 0 116-31.8 140.6-51.4 32.7 12.3 69 19.4 107.4 19.4 141.4 0 256-93.1 256-208S397.4 32 256 32z"] };
  2890. var faCommentAlt = { prefix: 'fas', iconName: 'comment-alt', icon: [512, 512, [], "f27a", "M448 0H64C28.7 0 0 28.7 0 64v288c0 35.3 28.7 64 64 64h96v84c0 9.8 11.2 15.5 19.1 9.7L304 416h144c35.3 0 64-28.7 64-64V64c0-35.3-28.7-64-64-64z"] };
  2891. var faCommentDollar = { prefix: 'fas', iconName: 'comment-dollar', icon: [512, 512, [], "f651", "M256 32C114.62 32 0 125.12 0 240c0 49.56 21.41 95.01 57.02 130.74C44.46 421.05 2.7 465.97 2.2 466.5A7.995 7.995 0 0 0 8 480c66.26 0 115.99-31.75 140.6-51.38C181.29 440.93 217.59 448 256 448c141.38 0 256-93.12 256-208S397.38 32 256 32zm24 302.44V352c0 8.84-7.16 16-16 16h-16c-8.84 0-16-7.16-16-16v-17.73c-11.42-1.35-22.28-5.19-31.78-11.46-6.22-4.11-6.82-13.11-1.55-18.38l17.52-17.52c3.74-3.74 9.31-4.24 14.11-2.03 3.18 1.46 6.66 2.22 10.26 2.22h32.78c4.66 0 8.44-3.78 8.44-8.42 0-3.75-2.52-7.08-6.12-8.11l-50.07-14.3c-22.25-6.35-40.01-24.71-42.91-47.67-4.05-32.07 19.03-59.43 49.32-63.05V128c0-8.84 7.16-16 16-16h16c8.84 0 16 7.16 16 16v17.73c11.42 1.35 22.28 5.19 31.78 11.46 6.22 4.11 6.82 13.11 1.55 18.38l-17.52 17.52c-3.74 3.74-9.31 4.24-14.11 2.03a24.516 24.516 0 0 0-10.26-2.22h-32.78c-4.66 0-8.44 3.78-8.44 8.42 0 3.75 2.52 7.08 6.12 8.11l50.07 14.3c22.25 6.36 40.01 24.71 42.91 47.67 4.05 32.06-19.03 59.42-49.32 63.04z"] };
  2892. var faCommentDots = { prefix: 'fas', iconName: 'comment-dots', icon: [512, 512, [], "f4ad", "M256 32C114.6 32 0 125.1 0 240c0 49.6 21.4 95 57 130.7C44.5 421.1 2.7 466 2.2 466.5c-2.2 2.3-2.8 5.7-1.5 8.7S4.8 480 8 480c66.3 0 116-31.8 140.6-51.4 32.7 12.3 69 19.4 107.4 19.4 141.4 0 256-93.1 256-208S397.4 32 256 32zM128 272c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm128 0c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm128 0c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"] };
  2893. var faCommentSlash = { prefix: 'fas', iconName: 'comment-slash', icon: [640, 512, [], "f4b3", "M64 240c0 49.6 21.4 95 57 130.7-12.6 50.3-54.3 95.2-54.8 95.8-2.2 2.3-2.8 5.7-1.5 8.7 1.3 2.9 4.1 4.8 7.3 4.8 66.3 0 116-31.8 140.6-51.4 32.7 12.3 69 19.4 107.4 19.4 27.4 0 53.7-3.6 78.4-10L72.9 186.4c-5.6 17.1-8.9 35-8.9 53.6zm569.8 218.1l-114.4-88.4C554.6 334.1 576 289.2 576 240c0-114.9-114.6-208-256-208-65.1 0-124.2 20.1-169.4 52.7L45.5 3.4C38.5-2 28.5-.8 23 6.2L3.4 31.4c-5.4 7-4.2 17 2.8 22.4l588.4 454.7c7 5.4 17 4.2 22.5-2.8l19.6-25.3c5.4-6.8 4.1-16.9-2.9-22.3z"] };
  2894. var faComments = { prefix: 'fas', iconName: 'comments', icon: [576, 512, [], "f086", "M416 192c0-88.4-93.1-160-208-160S0 103.6 0 192c0 34.3 14.1 65.9 38 92-13.4 30.2-35.5 54.2-35.8 54.5-2.2 2.3-2.8 5.7-1.5 8.7S4.8 352 8 352c36.6 0 66.9-12.3 88.7-25 32.2 15.7 70.3 25 111.3 25 114.9 0 208-71.6 208-160zm122 220c23.9-26 38-57.7 38-92 0-66.9-53.5-124.2-129.3-148.1.9 6.6 1.3 13.3 1.3 20.1 0 105.9-107.7 192-240 192-10.8 0-21.3-.8-31.7-1.9C207.8 439.6 281.8 480 368 480c41 0 79.1-9.2 111.3-25 21.8 12.7 52.1 25 88.7 25 3.2 0 6.1-1.9 7.3-4.8 1.3-2.9.7-6.3-1.5-8.7-.3-.3-22.4-24.2-35.8-54.5z"] };
  2895. var faCommentsDollar = { prefix: 'fas', iconName: 'comments-dollar', icon: [576, 512, [], "f653", "M416 192c0-88.37-93.12-160-208-160S0 103.63 0 192c0 34.27 14.13 65.95 37.97 91.98C24.61 314.22 2.52 338.16 2.2 338.5A7.995 7.995 0 0 0 8 352c36.58 0 66.93-12.25 88.73-24.98C128.93 342.76 167.02 352 208 352c114.88 0 208-71.63 208-160zm-224 96v-16.29c-11.29-.58-22.27-4.52-31.37-11.35-3.9-2.93-4.1-8.77-.57-12.14l11.75-11.21c2.77-2.64 6.89-2.76 10.13-.73 3.87 2.42 8.26 3.72 12.82 3.72h28.11c6.5 0 11.8-5.92 11.8-13.19 0-5.95-3.61-11.19-8.77-12.73l-45-13.5c-18.59-5.58-31.58-23.42-31.58-43.39 0-24.52 19.05-44.44 42.67-45.07V96c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v16.29c11.29.58 22.27 4.51 31.37 11.35 3.9 2.93 4.1 8.77.57 12.14l-11.75 11.21c-2.77 2.64-6.89 2.76-10.13.73-3.87-2.43-8.26-3.72-12.82-3.72h-28.11c-6.5 0-11.8 5.92-11.8 13.19 0 5.95 3.61 11.19 8.77 12.73l45 13.5c18.59 5.58 31.58 23.42 31.58 43.39 0 24.53-19.05 44.44-42.67 45.07V288c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8zm346.01 123.99C561.87 385.96 576 354.27 576 320c0-66.94-53.49-124.2-129.33-148.07.86 6.6 1.33 13.29 1.33 20.07 0 105.87-107.66 192-240 192-10.78 0-21.32-.77-31.73-1.88C207.8 439.63 281.77 480 368 480c40.98 0 79.07-9.24 111.27-24.98C501.07 467.75 531.42 480 568 480c3.2 0 6.09-1.91 7.34-4.84 1.27-2.94.66-6.34-1.55-8.67-.31-.33-22.42-24.24-35.78-54.5z"] };
  2896. var faCompactDisc = { prefix: 'fas', iconName: 'compact-disc', icon: [496, 512, [], "f51f", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM88 256H56c0-105.9 86.1-192 192-192v32c-88.2 0-160 71.8-160 160zm160 96c-53 0-96-43-96-96s43-96 96-96 96 43 96 96-43 96-96 96zm0-128c-17.7 0-32 14.3-32 32s14.3 32 32 32 32-14.3 32-32-14.3-32-32-32z"] };
  2897. var faCompass = { prefix: 'fas', iconName: 'compass', icon: [496, 512, [], "f14e", "M225.38 233.37c-12.5 12.5-12.5 32.76 0 45.25 12.49 12.5 32.76 12.5 45.25 0 12.5-12.5 12.5-32.76 0-45.25-12.5-12.49-32.76-12.49-45.25 0zM248 8C111.03 8 0 119.03 0 256s111.03 248 248 248 248-111.03 248-248S384.97 8 248 8zm126.14 148.05L308.17 300.4a31.938 31.938 0 0 1-15.77 15.77l-144.34 65.97c-16.65 7.61-33.81-9.55-26.2-26.2l65.98-144.35a31.938 31.938 0 0 1 15.77-15.77l144.34-65.97c16.65-7.6 33.8 9.55 26.19 26.2z"] };
  2898. var faCompress = { prefix: 'fas', iconName: 'compress', icon: [448, 512, [], "f066", "M436 192H312c-13.3 0-24-10.7-24-24V44c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v84h84c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12zm-276-24V44c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v84H12c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h124c13.3 0 24-10.7 24-24zm0 300V344c0-13.3-10.7-24-24-24H12c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h84v84c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm192 0v-84h84c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12H312c-13.3 0-24 10.7-24 24v124c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12z"] };
  2899. var faConciergeBell = { prefix: 'fas', iconName: 'concierge-bell', icon: [512, 512, [], "f562", "M288 130.54V112h16c8.84 0 16-7.16 16-16V80c0-8.84-7.16-16-16-16h-96c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16h16v18.54C115.49 146.11 32 239.18 32 352h448c0-112.82-83.49-205.89-192-221.46zM496 384H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h480c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z"] };
  2900. var faCookie = { prefix: 'fas', iconName: 'cookie', icon: [512, 512, [], "f563", "M510.37 254.79l-12.08-76.26a132.493 132.493 0 0 0-37.16-72.95l-54.76-54.75c-19.73-19.72-45.18-32.7-72.71-37.05l-76.7-12.15c-27.51-4.36-55.69.11-80.52 12.76L107.32 49.6a132.25 132.25 0 0 0-57.79 57.8l-35.1 68.88a132.602 132.602 0 0 0-12.82 80.94l12.08 76.27a132.493 132.493 0 0 0 37.16 72.95l54.76 54.75a132.087 132.087 0 0 0 72.71 37.05l76.7 12.14c27.51 4.36 55.69-.11 80.52-12.75l69.12-35.21a132.302 132.302 0 0 0 57.79-57.8l35.1-68.87c12.71-24.96 17.2-53.3 12.82-80.96zM176 368c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm32-160c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm160 128c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"] };
  2901. var faCookieBite = { prefix: 'fas', iconName: 'cookie-bite', icon: [512, 512, [], "f564", "M510.52 255.82c-69.97-.85-126.47-57.69-126.47-127.86-70.17 0-127-56.49-127.86-126.45-27.26-4.14-55.13.3-79.72 12.82l-69.13 35.22a132.221 132.221 0 0 0-57.79 57.81l-35.1 68.88a132.645 132.645 0 0 0-12.82 80.95l12.08 76.27a132.521 132.521 0 0 0 37.16 72.96l54.77 54.76a132.036 132.036 0 0 0 72.71 37.06l76.71 12.15c27.51 4.36 55.7-.11 80.53-12.76l69.13-35.21a132.273 132.273 0 0 0 57.79-57.81l35.1-68.88c12.56-24.64 17.01-52.58 12.91-79.91zM176 368c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm32-160c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm160 128c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"] };
  2902. var faCopy = { prefix: 'fas', iconName: 'copy', icon: [448, 512, [], "f0c5", "M320 448v40c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V120c0-13.255 10.745-24 24-24h72v296c0 30.879 25.121 56 56 56h168zm0-344V0H152c-13.255 0-24 10.745-24 24v368c0 13.255 10.745 24 24 24h272c13.255 0 24-10.745 24-24V128H344c-13.2 0-24-10.8-24-24zm120.971-31.029L375.029 7.029A24 24 0 0 0 358.059 0H352v96h96v-6.059a24 24 0 0 0-7.029-16.97z"] };
  2903. var faCopyright = { prefix: 'fas', iconName: 'copyright', icon: [512, 512, [], "f1f9", "M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm117.134 346.753c-1.592 1.867-39.776 45.731-109.851 45.731-84.692 0-144.484-63.26-144.484-145.567 0-81.303 62.004-143.401 143.762-143.401 66.957 0 101.965 37.315 103.422 38.904a12 12 0 0 1 1.238 14.623l-22.38 34.655c-4.049 6.267-12.774 7.351-18.234 2.295-.233-.214-26.529-23.88-61.88-23.88-46.116 0-73.916 33.575-73.916 76.082 0 39.602 25.514 79.692 74.277 79.692 38.697 0 65.28-28.338 65.544-28.625 5.132-5.565 14.059-5.033 18.508 1.053l24.547 33.572a12.001 12.001 0 0 1-.553 14.866z"] };
  2904. var faCouch = { prefix: 'fas', iconName: 'couch', icon: [640, 512, [], "f4b8", "M160 224v64h320v-64c0-35.3 28.7-64 64-64h32c0-53-43-96-96-96H160c-53 0-96 43-96 96h32c35.3 0 64 28.7 64 64zm416-32h-32c-17.7 0-32 14.3-32 32v96H128v-96c0-17.7-14.3-32-32-32H64c-35.3 0-64 28.7-64 64 0 23.6 13 44 32 55.1V432c0 8.8 7.2 16 16 16h64c8.8 0 16-7.2 16-16v-16h384v16c0 8.8 7.2 16 16 16h64c8.8 0 16-7.2 16-16V311.1c19-11.1 32-31.5 32-55.1 0-35.3-28.7-64-64-64z"] };
  2905. var faCreditCard = { prefix: 'fas', iconName: 'credit-card', icon: [576, 512, [], "f09d", "M0 432c0 26.5 21.5 48 48 48h480c26.5 0 48-21.5 48-48V256H0v176zm192-68c0-6.6 5.4-12 12-12h136c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H204c-6.6 0-12-5.4-12-12v-40zm-128 0c0-6.6 5.4-12 12-12h72c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H76c-6.6 0-12-5.4-12-12v-40zM576 80v48H0V80c0-26.5 21.5-48 48-48h480c26.5 0 48 21.5 48 48z"] };
  2906. var faCrop = { prefix: 'fas', iconName: 'crop', icon: [512, 512, [], "f125", "M488 352h-40V109.25l59.31-59.31c6.25-6.25 6.25-16.38 0-22.63L484.69 4.69c-6.25-6.25-16.38-6.25-22.63 0L402.75 64H192v96h114.75L160 306.75V24c0-13.26-10.75-24-24-24H88C74.75 0 64 10.74 64 24v40H24C10.75 64 0 74.74 0 88v48c0 13.25 10.75 24 24 24h40v264c0 13.25 10.75 24 24 24h232v-96H205.25L352 205.25V488c0 13.25 10.75 24 24 24h48c13.25 0 24-10.75 24-24v-40h40c13.25 0 24-10.75 24-24v-48c0-13.26-10.75-24-24-24z"] };
  2907. var faCropAlt = { prefix: 'fas', iconName: 'crop-alt', icon: [512, 512, [], "f565", "M488 352h-40V96c0-17.67-14.33-32-32-32H192v96h160v328c0 13.25 10.75 24 24 24h48c13.25 0 24-10.75 24-24v-40h40c13.25 0 24-10.75 24-24v-48c0-13.26-10.75-24-24-24zM160 24c0-13.26-10.75-24-24-24H88C74.75 0 64 10.74 64 24v40H24C10.75 64 0 74.74 0 88v48c0 13.25 10.75 24 24 24h40v256c0 17.67 14.33 32 32 32h224v-96H160V24z"] };
  2908. var faCross = { prefix: 'fas', iconName: 'cross', icon: [384, 512, [], "f654", "M352 128h-96V32c0-17.67-14.33-32-32-32h-64c-17.67 0-32 14.33-32 32v96H32c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h96v224c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32V256h96c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32z"] };
  2909. var faCrosshairs = { prefix: 'fas', iconName: 'crosshairs', icon: [512, 512, [], "f05b", "M500 224h-30.364C455.724 130.325 381.675 56.276 288 42.364V12c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v30.364C130.325 56.276 56.276 130.325 42.364 224H12c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h30.364C56.276 381.675 130.325 455.724 224 469.636V500c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12v-30.364C381.675 455.724 455.724 381.675 469.636 288H500c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12zM288 404.634V364c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40.634C165.826 392.232 119.783 346.243 107.366 288H148c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-40.634C119.768 165.826 165.757 119.783 224 107.366V148c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12v-40.634C346.174 119.768 392.217 165.757 404.634 224H364c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40.634C392.232 346.174 346.243 392.217 288 404.634zM288 256c0 17.673-14.327 32-32 32s-32-14.327-32-32c0-17.673 14.327-32 32-32s32 14.327 32 32z"] };
  2910. var faCrow = { prefix: 'fas', iconName: 'crow', icon: [640, 512, [], "f520", "M544 32h-16.36C513.04 12.68 490.09 0 464 0c-44.18 0-80 35.82-80 80v20.98L12.09 393.57A30.216 30.216 0 0 0 0 417.74c0 22.46 23.64 37.07 43.73 27.03L165.27 384h96.49l44.41 120.1c2.27 6.23 9.15 9.44 15.38 7.17l22.55-8.21c6.23-2.27 9.44-9.15 7.17-15.38L312.94 384H352c1.91 0 3.76-.23 5.66-.29l44.51 120.38c2.27 6.23 9.15 9.44 15.38 7.17l22.55-8.21c6.23-2.27 9.44-9.15 7.17-15.38l-41.24-111.53C485.74 352.8 544 279.26 544 192v-80l96-16c0-35.35-42.98-64-96-64zm-80 72c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24z"] };
  2911. var faCrown = { prefix: 'fas', iconName: 'crown', icon: [640, 512, [], "f521", "M528 448H112c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h416c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm64-320c-26.5 0-48 21.5-48 48 0 7.1 1.6 13.7 4.4 19.8L476 239.2c-15.4 9.2-35.3 4-44.2-11.6L350.3 85C361 76.2 368 63 368 48c0-26.5-21.5-48-48-48s-48 21.5-48 48c0 15 7 28.2 17.7 37l-81.5 142.6c-8.9 15.6-28.9 20.8-44.2 11.6l-72.3-43.4c2.7-6 4.4-12.7 4.4-19.8 0-26.5-21.5-48-48-48S0 149.5 0 176s21.5 48 48 48c2.6 0 5.2-.4 7.7-.8L128 416h384l72.3-192.8c2.5.4 5.1.8 7.7.8 26.5 0 48-21.5 48-48s-21.5-48-48-48z"] };
  2912. var faCube = { prefix: 'fas', iconName: 'cube', icon: [512, 512, [], "f1b2", "M239.1 6.3l-208 78c-18.7 7-31.1 25-31.1 45v225.1c0 18.2 10.3 34.8 26.5 42.9l208 104c13.5 6.8 29.4 6.8 42.9 0l208-104c16.3-8.1 26.5-24.8 26.5-42.9V129.3c0-20-12.4-37.9-31.1-44.9l-208-78C262 2.2 250 2.2 239.1 6.3zM256 68.4l192 72v1.1l-192 78-192-78v-1.1l192-72zm32 356V275.5l160-65v133.9l-160 80z"] };
  2913. var faCubes = { prefix: 'fas', iconName: 'cubes', icon: [512, 512, [], "f1b3", "M488.6 250.2L392 214V105.5c0-15-9.3-28.4-23.4-33.7l-100-37.5c-8.1-3.1-17.1-3.1-25.3 0l-100 37.5c-14.1 5.3-23.4 18.7-23.4 33.7V214l-96.6 36.2C9.3 255.5 0 268.9 0 283.9V394c0 13.6 7.7 26.1 19.9 32.2l100 50c10.1 5.1 22.1 5.1 32.2 0l103.9-52 103.9 52c10.1 5.1 22.1 5.1 32.2 0l100-50c12.2-6.1 19.9-18.6 19.9-32.2V283.9c0-15-9.3-28.4-23.4-33.7zM358 214.8l-85 31.9v-68.2l85-37v73.3zM154 104.1l102-38.2 102 38.2v.6l-102 41.4-102-41.4v-.6zm84 291.1l-85 42.5v-79.1l85-38.8v75.4zm0-112l-102 41.4-102-41.4v-.6l102-38.2 102 38.2v.6zm240 112l-85 42.5v-79.1l85-38.8v75.4zm0-112l-102 41.4-102-41.4v-.6l102-38.2 102 38.2v.6z"] };
  2914. var faCut = { prefix: 'fas', iconName: 'cut', icon: [448, 512, [], "f0c4", "M278.06 256L444.48 89.57c4.69-4.69 4.69-12.29 0-16.97-32.8-32.8-85.99-32.8-118.79 0L210.18 188.12l-24.86-24.86c4.31-10.92 6.68-22.81 6.68-35.26 0-53.02-42.98-96-96-96S0 74.98 0 128s42.98 96 96 96c4.54 0 8.99-.32 13.36-.93L142.29 256l-32.93 32.93c-4.37-.61-8.83-.93-13.36-.93-53.02 0-96 42.98-96 96s42.98 96 96 96 96-42.98 96-96c0-12.45-2.37-24.34-6.68-35.26l24.86-24.86L325.69 439.4c32.8 32.8 85.99 32.8 118.79 0 4.69-4.68 4.69-12.28 0-16.97L278.06 256zM96 160c-17.64 0-32-14.36-32-32s14.36-32 32-32 32 14.36 32 32-14.36 32-32 32zm0 256c-17.64 0-32-14.36-32-32s14.36-32 32-32 32 14.36 32 32-14.36 32-32 32z"] };
  2915. var faDatabase = { prefix: 'fas', iconName: 'database', icon: [448, 512, [], "f1c0", "M448 73.143v45.714C448 159.143 347.667 192 224 192S0 159.143 0 118.857V73.143C0 32.857 100.333 0 224 0s224 32.857 224 73.143zM448 176v102.857C448 319.143 347.667 352 224 352S0 319.143 0 278.857V176c48.125 33.143 136.208 48.572 224 48.572S399.874 209.143 448 176zm0 160v102.857C448 479.143 347.667 512 224 512S0 479.143 0 438.857V336c48.125 33.143 136.208 48.572 224 48.572S399.874 369.143 448 336z"] };
  2916. var faDeaf = { prefix: 'fas', iconName: 'deaf', icon: [512, 512, [], "f2a4", "M216 260c0 15.464-12.536 28-28 28s-28-12.536-28-28c0-44.112 35.888-80 80-80s80 35.888 80 80c0 15.464-12.536 28-28 28s-28-12.536-28-28c0-13.234-10.767-24-24-24s-24 10.766-24 24zm24-176c-97.047 0-176 78.953-176 176 0 15.464 12.536 28 28 28s28-12.536 28-28c0-66.168 53.832-120 120-120s120 53.832 120 120c0 75.164-71.009 70.311-71.997 143.622L288 404c0 28.673-23.327 52-52 52-15.464 0-28 12.536-28 28s12.536 28 28 28c59.475 0 107.876-48.328 108-107.774.595-34.428 72-48.24 72-144.226 0-97.047-78.953-176-176-176zm268.485-52.201L480.2 3.515c-4.687-4.686-12.284-4.686-16.971 0L376.2 90.544c-4.686 4.686-4.686 12.284 0 16.971l28.285 28.285c4.686 4.686 12.284 4.686 16.97 0l87.03-87.029c4.687-4.688 4.687-12.286 0-16.972zM168.97 314.745c-4.686-4.686-12.284-4.686-16.97 0L3.515 463.23c-4.686 4.686-4.686 12.284 0 16.971L31.8 508.485c4.687 4.686 12.284 4.686 16.971 0L197.256 360c4.686-4.686 4.686-12.284 0-16.971l-28.286-28.284z"] };
  2917. var faDesktop = { prefix: 'fas', iconName: 'desktop', icon: [576, 512, [], "f108", "M528 0H48C21.5 0 0 21.5 0 48v320c0 26.5 21.5 48 48 48h192l-16 48h-72c-13.3 0-24 10.7-24 24s10.7 24 24 24h272c13.3 0 24-10.7 24-24s-10.7-24-24-24h-72l-16-48h192c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zm-16 352H64V64h448v288z"] };
  2918. var faDharmachakra = { prefix: 'fas', iconName: 'dharmachakra', icon: [512, 512, [], "f655", "M495 225.06l-17.22 1.08c-5.27-39.49-20.79-75.64-43.86-105.84l12.95-11.43c6.92-6.11 7.25-16.79.73-23.31L426.44 64.4c-6.53-6.53-17.21-6.19-23.31.73L391.7 78.07c-30.2-23.06-66.35-38.58-105.83-43.86L286.94 17c.58-9.21-6.74-17-15.97-17h-29.94c-9.23 0-16.54 7.79-15.97 17l1.08 17.22c-39.49 5.27-75.64 20.79-105.83 43.86l-11.43-12.95c-6.11-6.92-16.79-7.25-23.31-.73L64.4 85.56c-6.53 6.53-6.19 17.21.73 23.31l12.95 11.43c-23.06 30.2-38.58 66.35-43.86 105.84L17 225.06c-9.21-.58-17 6.74-17 15.97v29.94c0 9.23 7.79 16.54 17 15.97l17.22-1.08c5.27 39.49 20.79 75.64 43.86 105.83l-12.95 11.43c-6.92 6.11-7.25 16.79-.73 23.31l21.17 21.17c6.53 6.53 17.21 6.19 23.31-.73l11.43-12.95c30.2 23.06 66.35 38.58 105.84 43.86L225.06 495c-.58 9.21 6.74 17 15.97 17h29.94c9.23 0 16.54-7.79 15.97-17l-1.08-17.22c39.49-5.27 75.64-20.79 105.84-43.86l11.43 12.95c6.11 6.92 16.79 7.25 23.31.73l21.17-21.17c6.53-6.53 6.19-17.21-.73-23.31l-12.95-11.43c23.06-30.2 38.58-66.35 43.86-105.83l17.22 1.08c9.21.58 17-6.74 17-15.97v-29.94c-.01-9.23-7.8-16.54-17.01-15.97zM281.84 98.61c24.81 4.07 47.63 13.66 67.23 27.78l-42.62 48.29c-8.73-5.44-18.32-9.54-28.62-11.95l4.01-64.12zm-51.68 0l4.01 64.12c-10.29 2.41-19.89 6.52-28.62 11.95l-42.62-48.29c19.6-14.12 42.42-23.71 67.23-27.78zm-103.77 64.33l48.3 42.61c-5.44 8.73-9.54 18.33-11.96 28.62l-64.12-4.01c4.07-24.81 13.66-47.62 27.78-67.22zm-27.78 118.9l64.12-4.01c2.41 10.29 6.52 19.89 11.95 28.62l-48.29 42.62c-14.12-19.6-23.71-42.42-27.78-67.23zm131.55 131.55c-24.81-4.07-47.63-13.66-67.23-27.78l42.61-48.3c8.73 5.44 18.33 9.54 28.62 11.96l-4 64.12zM256 288c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm25.84 125.39l-4.01-64.12c10.29-2.41 19.89-6.52 28.62-11.96l42.61 48.3c-19.6 14.12-42.41 23.71-67.22 27.78zm103.77-64.33l-48.29-42.62c5.44-8.73 9.54-18.32 11.95-28.62l64.12 4.01c-4.07 24.82-13.66 47.64-27.78 67.23zm-36.34-114.89c-2.41-10.29-6.52-19.89-11.96-28.62l48.3-42.61c14.12 19.6 23.71 42.42 27.78 67.23l-64.12 4z"] };
  2919. var faDiagnoses = { prefix: 'fas', iconName: 'diagnoses', icon: [640, 512, [], "f470", "M496 256c8.8 0 16-7.2 16-16s-7.2-16-16-16-16 7.2-16 16 7.2 16 16 16zm-176-80c48.5 0 88-39.5 88-88S368.5 0 320 0s-88 39.5-88 88 39.5 88 88 88zM59.8 364c10.2 15.3 29.3 17.8 42.9 9.8 16.2-9.6 56.2-31.7 105.3-48.6V416h224v-90.7c49.1 16.8 89.1 39 105.3 48.6 13.6 8 32.7 5.3 42.9-9.8l17.8-26.7c8.8-13.2 7.6-34.6-10-45.1-11.9-7.1-29.7-17-51.1-27.4-28.1 46.1-99.4 17.8-87.7-35.1C409.3 217.2 365.1 208 320 208c-57 0-112.9 14.5-160 32.2-.2 40.2-47.6 63.3-79.2 36-11.2 6-21.3 11.6-28.7 16-17.6 10.5-18.8 31.8-10 45.1L59.8 364zM368 344c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24zm-96-96c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24zm-160 8c8.8 0 16-7.2 16-16s-7.2-16-16-16-16 7.2-16 16 7.2 16 16 16zm512 192H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h608c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16z"] };
  2920. var faDice = { prefix: 'fas', iconName: 'dice', icon: [640, 512, [], "f522", "M592 192H473.26c12.69 29.59 7.12 65.2-17 89.32L320 417.58V464c0 26.51 21.49 48 48 48h224c26.51 0 48-21.49 48-48V240c0-26.51-21.49-48-48-48zM480 376c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24zm-46.37-186.7L258.7 14.37c-19.16-19.16-50.23-19.16-69.39 0L14.37 189.3c-19.16 19.16-19.16 50.23 0 69.39L189.3 433.63c19.16 19.16 50.23 19.16 69.39 0L433.63 258.7c19.16-19.17 19.16-50.24 0-69.4zM96 248c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24zm128 128c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24zm0-128c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24zm0-128c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24zm128 128c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24z"] };
  2921. var faDiceD20 = { prefix: 'fas', iconName: 'dice-d20', icon: [480, 512, [], "f6cf", "M106.75 215.06L1.2 370.95c-3.08 5 .1 11.5 5.93 12.14l208.26 22.07-108.64-190.1zM7.41 315.43L82.7 193.08 6.06 147.1c-2.67-1.6-6.06.32-6.06 3.43v162.81c0 4.03 5.29 5.53 7.41 2.09zM18.25 423.6l194.4 87.66c5.3 2.45 11.35-1.43 11.35-7.26v-65.67l-203.55-22.3c-4.45-.5-6.23 5.59-2.2 7.57zm81.22-257.78L179.4 22.88c4.34-7.06-3.59-15.25-10.78-11.14L17.81 110.35c-2.47 1.62-2.39 5.26.13 6.78l81.53 48.69zM240 176h109.21L253.63 7.62C250.5 2.54 245.25 0 240 0s-10.5 2.54-13.63 7.62L130.79 176H240zm233.94-28.9l-76.64 45.99 75.29 122.35c2.11 3.44 7.41 1.94 7.41-2.1V150.53c0-3.11-3.39-5.03-6.06-3.43zm-93.41 18.72l81.53-48.7c2.53-1.52 2.6-5.16.13-6.78l-150.81-98.6c-7.19-4.11-15.12 4.08-10.78 11.14l79.93 142.94zm79.02 250.21L256 438.32v65.67c0 5.84 6.05 9.71 11.35 7.26l194.4-87.66c4.03-1.97 2.25-8.06-2.2-7.56zm-86.3-200.97l-108.63 190.1 208.26-22.07c5.83-.65 9.01-7.14 5.93-12.14L373.25 215.06zM240 208H139.57L240 383.75 340.43 208H240z"] };
  2922. var faDiceD6 = { prefix: 'fas', iconName: 'dice-d6', icon: [448, 512, [], "f6d1", "M422.19 109.95L256.21 9.07c-19.91-12.1-44.52-12.1-64.43 0L25.81 109.95c-5.32 3.23-5.29 11.27.06 14.46L224 242.55l198.14-118.14c5.35-3.19 5.38-11.22.05-14.46zm13.84 44.63L240 271.46v223.82c0 12.88 13.39 20.91 24.05 14.43l152.16-92.48c19.68-11.96 31.79-33.94 31.79-57.7v-197.7c0-6.41-6.64-10.43-11.97-7.25zM0 161.83v197.7c0 23.77 12.11 45.74 31.79 57.7l152.16 92.47c10.67 6.48 24.05-1.54 24.05-14.43V271.46L11.97 154.58C6.64 151.4 0 155.42 0 161.83z"] };
  2923. var faDiceFive = { prefix: 'fas', iconName: 'dice-five', icon: [448, 512, [], "f523", "M384 32H64C28.65 32 0 60.65 0 96v320c0 35.35 28.65 64 64 64h320c35.35 0 64-28.65 64-64V96c0-35.35-28.65-64-64-64zM128 384c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm0-192c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm96 96c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm96 96c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm0-192c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"] };
  2924. var faDiceFour = { prefix: 'fas', iconName: 'dice-four', icon: [448, 512, [], "f524", "M384 32H64C28.65 32 0 60.65 0 96v320c0 35.35 28.65 64 64 64h320c35.35 0 64-28.65 64-64V96c0-35.35-28.65-64-64-64zM128 384c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm0-192c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm192 192c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm0-192c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"] };
  2925. var faDiceOne = { prefix: 'fas', iconName: 'dice-one', icon: [448, 512, [], "f525", "M384 32H64C28.65 32 0 60.65 0 96v320c0 35.35 28.65 64 64 64h320c35.35 0 64-28.65 64-64V96c0-35.35-28.65-64-64-64zM224 288c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"] };
  2926. var faDiceSix = { prefix: 'fas', iconName: 'dice-six', icon: [448, 512, [], "f526", "M384 32H64C28.65 32 0 60.65 0 96v320c0 35.35 28.65 64 64 64h320c35.35 0 64-28.65 64-64V96c0-35.35-28.65-64-64-64zM128 384c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm0-96c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm0-96c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm192 192c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm0-96c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm0-96c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"] };
  2927. var faDiceThree = { prefix: 'fas', iconName: 'dice-three', icon: [448, 512, [], "f527", "M384 32H64C28.65 32 0 60.65 0 96v320c0 35.35 28.65 64 64 64h320c35.35 0 64-28.65 64-64V96c0-35.35-28.65-64-64-64zM128 192c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm96 96c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm96 96c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"] };
  2928. var faDiceTwo = { prefix: 'fas', iconName: 'dice-two', icon: [448, 512, [], "f528", "M384 32H64C28.65 32 0 60.65 0 96v320c0 35.35 28.65 64 64 64h320c35.35 0 64-28.65 64-64V96c0-35.35-28.65-64-64-64zM128 192c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm192 192c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"] };
  2929. var faDigitalTachograph = { prefix: 'fas', iconName: 'digital-tachograph', icon: [640, 512, [], "f566", "M608 96H32c-17.67 0-32 14.33-32 32v256c0 17.67 14.33 32 32 32h576c17.67 0 32-14.33 32-32V128c0-17.67-14.33-32-32-32zM304 352c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8v-8c0-4.42 3.58-8 8-8h224c4.42 0 8 3.58 8 8v8zM72 288v-16c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H80c-4.42 0-8-3.58-8-8zm64 0v-16c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8zm64 0v-16c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8zm64 0v-16c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8zm40-64c0 8.84-7.16 16-16 16H80c-8.84 0-16-7.16-16-16v-48c0-8.84 7.16-16 16-16h208c8.84 0 16 7.16 16 16v48zm272 128c0 4.42-3.58 8-8 8H344c-4.42 0-8-3.58-8-8v-8c0-4.42 3.58-8 8-8h224c4.42 0 8 3.58 8 8v8z"] };
  2930. var faDirections = { prefix: 'fas', iconName: 'directions', icon: [512, 512, [], "f5eb", "M502.61 233.32L278.68 9.39c-12.52-12.52-32.83-12.52-45.36 0L9.39 233.32c-12.52 12.53-12.52 32.83 0 45.36l223.93 223.93c12.52 12.53 32.83 12.53 45.36 0l223.93-223.93c12.52-12.53 12.52-32.83 0-45.36zm-100.98 12.56l-84.21 77.73c-5.12 4.73-13.43 1.1-13.43-5.88V264h-96v64c0 4.42-3.58 8-8 8h-32c-4.42 0-8-3.58-8-8v-80c0-17.67 14.33-32 32-32h112v-53.73c0-6.97 8.3-10.61 13.43-5.88l84.21 77.73c3.43 3.17 3.43 8.59 0 11.76z"] };
  2931. var faDivide = { prefix: 'fas', iconName: 'divide', icon: [448, 512, [], "f529", "M224 352c-35.35 0-64 28.65-64 64s28.65 64 64 64 64-28.65 64-64-28.65-64-64-64zm0-192c35.35 0 64-28.65 64-64s-28.65-64-64-64-64 28.65-64 64 28.65 64 64 64zm192 48H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"] };
  2932. var faDizzy = { prefix: 'fas', iconName: 'dizzy', icon: [496, 512, [], "f567", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm-96 206.6l-28.7 28.7c-14.8 14.8-37.8-7.5-22.6-22.6l28.7-28.7-28.7-28.7c-15-15 7.7-37.6 22.6-22.6l28.7 28.7 28.7-28.7c15-15 37.6 7.7 22.6 22.6L174.6 192l28.7 28.7c15.2 15.2-7.9 37.4-22.6 22.6L152 214.6zM248 416c-35.3 0-64-28.7-64-64s28.7-64 64-64 64 28.7 64 64-28.7 64-64 64zm147.3-195.3c15.2 15.2-7.9 37.4-22.6 22.6L344 214.6l-28.7 28.7c-14.8 14.8-37.8-7.5-22.6-22.6l28.7-28.7-28.7-28.7c-15-15 7.7-37.6 22.6-22.6l28.7 28.7 28.7-28.7c15-15 37.6 7.7 22.6 22.6L366.6 192l28.7 28.7z"] };
  2933. var faDna = { prefix: 'fas', iconName: 'dna', icon: [448, 512, [], "f471", "M.1 494.1c-1.1 9.5 6.3 17.8 15.9 17.8l32.3.1c8.1 0 14.9-5.9 16-13.9.7-4.9 1.8-11.1 3.4-18.1H380c1.6 6.9 2.9 13.2 3.5 18.1 1.1 8 7.9 14 16 13.9l32.3-.1c9.6 0 17.1-8.3 15.9-17.8-4.6-37.9-25.6-129-118.9-207.7-17.6 12.4-37.1 24.2-58.5 35.4 6.2 4.6 11.4 9.4 17 14.2H159.7c21.3-18.1 47-35.6 78.7-51.4C410.5 199.1 442.1 65.8 447.9 17.9 449 8.4 441.6.1 432 .1L399.6 0c-8.1 0-14.9 5.9-16 13.9-.7 4.9-1.8 11.1-3.4 18.1H67.8c-1.6-7-2.7-13.1-3.4-18.1-1.1-8-7.9-14-16-13.9L16.1.1C6.5.1-1 8.4.1 17.9 5.3 60.8 31.4 171.8 160 256 31.5 340.2 5.3 451.2.1 494.1zM224 219.6c-25.1-13.7-46.4-28.4-64.3-43.6h128.5c-17.8 15.2-39.1 30-64.2 43.6zM355.1 96c-5.8 10.4-12.8 21.1-21 32H114c-8.3-10.9-15.3-21.6-21-32h262.1zM92.9 416c5.8-10.4 12.8-21.1 21-32h219.4c8.3 10.9 15.4 21.6 21.2 32H92.9z"] };
  2934. var faDog = { prefix: 'fas', iconName: 'dog', icon: [512, 512, [], "f6d3", "M496 96h-64l-7.16-14.31A32 32 0 0 0 396.22 64H342.6l-27.28-27.28C305.23 26.64 288 33.78 288 48.03v149.84l128 45.71V208h32c35.35 0 64-28.65 64-64v-32c0-8.84-7.16-16-16-16zm-112 48c-8.84 0-16-7.16-16-16s7.16-16 16-16 16 7.16 16 16-7.16 16-16 16zM96 224c-17.64 0-32-14.36-32-32 0-17.67-14.33-32-32-32S0 174.33 0 192c0 41.66 26.83 76.85 64 90.1V496c0 8.84 7.16 16 16 16h64c8.84 0 16-7.16 16-16V384h160v112c0 8.84 7.16 16 16 16h64c8.84 0 16-7.16 16-16V277.55L266.05 224H96z"] };
  2935. var faDollarSign = { prefix: 'fas', iconName: 'dollar-sign', icon: [288, 512, [], "f155", "M209.2 233.4l-108-31.6C88.7 198.2 80 186.5 80 173.5c0-16.3 13.2-29.5 29.5-29.5h66.3c12.2 0 24.2 3.7 34.2 10.5 6.1 4.1 14.3 3.1 19.5-2l34.8-34c7.1-6.9 6.1-18.4-1.8-24.5C238 74.8 207.4 64.1 176 64V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v48h-2.5C45.8 64-5.4 118.7.5 183.6c4.2 46.1 39.4 83.6 83.8 96.6l102.5 30c12.5 3.7 21.2 15.3 21.2 28.3 0 16.3-13.2 29.5-29.5 29.5h-66.3C100 368 88 364.3 78 357.5c-6.1-4.1-14.3-3.1-19.5 2l-34.8 34c-7.1 6.9-6.1 18.4 1.8 24.5 24.5 19.2 55.1 29.9 86.5 30v48c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-48.2c46.6-.9 90.3-28.6 105.7-72.7 21.5-61.6-14.6-124.8-72.5-141.7z"] };
  2936. var faDolly = { prefix: 'fas', iconName: 'dolly', icon: [576, 512, [], "f472", "M294.2 277.7c18 5 34.7 13.4 49.5 24.7l161.5-53.8c8.4-2.8 12.9-11.9 10.1-20.2L454.9 47.2c-2.8-8.4-11.9-12.9-20.2-10.1l-61.1 20.4 33.1 99.4L346 177l-33.1-99.4-61.6 20.5c-8.4 2.8-12.9 11.9-10.1 20.2l53 159.4zm281 48.7L565 296c-2.8-8.4-11.9-12.9-20.2-10.1l-213.5 71.2c-17.2-22-43.6-36.4-73.5-37L158.4 21.9C154 8.8 141.8 0 128 0H16C7.2 0 0 7.2 0 16v32c0 8.8 7.2 16 16 16h88.9l92.2 276.7c-26.1 20.4-41.7 53.6-36 90.5 6.1 39.4 37.9 72.3 77.3 79.2 60.2 10.7 112.3-34.8 113.4-92.6l213.3-71.2c8.3-2.8 12.9-11.8 10.1-20.2zM256 464c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48z"] };
  2937. var faDollyFlatbed = { prefix: 'fas', iconName: 'dolly-flatbed', icon: [640, 512, [], "f474", "M208 320h384c8.8 0 16-7.2 16-16V48c0-8.8-7.2-16-16-16H448v128l-48-32-48 32V32H208c-8.8 0-16 7.2-16 16v256c0 8.8 7.2 16 16 16zm416 64H128V16c0-8.8-7.2-16-16-16H16C7.2 0 0 7.2 0 16v32c0 8.8 7.2 16 16 16h48v368c0 8.8 7.2 16 16 16h82.9c-1.8 5-2.9 10.4-2.9 16 0 26.5 21.5 48 48 48s48-21.5 48-48c0-5.6-1.2-11-2.9-16H451c-1.8 5-2.9 10.4-2.9 16 0 26.5 21.5 48 48 48s48-21.5 48-48c0-5.6-1.2-11-2.9-16H624c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16z"] };
  2938. var faDonate = { prefix: 'fas', iconName: 'donate', icon: [512, 512, [], "f4b9", "M256 416c114.9 0 208-93.1 208-208S370.9 0 256 0 48 93.1 48 208s93.1 208 208 208zM233.8 97.4V80.6c0-9.2 7.4-16.6 16.6-16.6h11.1c9.2 0 16.6 7.4 16.6 16.6v17c15.5.8 30.5 6.1 43 15.4 5.6 4.1 6.2 12.3 1.2 17.1L306 145.6c-3.8 3.7-9.5 3.8-14 1-5.4-3.4-11.4-5.1-17.8-5.1h-38.9c-9 0-16.3 8.2-16.3 18.3 0 8.2 5 15.5 12.1 17.6l62.3 18.7c25.7 7.7 43.7 32.4 43.7 60.1 0 34-26.4 61.5-59.1 62.4v16.8c0 9.2-7.4 16.6-16.6 16.6h-11.1c-9.2 0-16.6-7.4-16.6-16.6v-17c-15.5-.8-30.5-6.1-43-15.4-5.6-4.1-6.2-12.3-1.2-17.1l16.3-15.5c3.8-3.7 9.5-3.8 14-1 5.4 3.4 11.4 5.1 17.8 5.1h38.9c9 0 16.3-8.2 16.3-18.3 0-8.2-5-15.5-12.1-17.6l-62.3-18.7c-25.7-7.7-43.7-32.4-43.7-60.1.1-34 26.4-61.5 59.1-62.4zM480 352h-32.5c-19.6 26-44.6 47.7-73 64h63.8c5.3 0 9.6 3.6 9.6 8v16c0 4.4-4.3 8-9.6 8H73.6c-5.3 0-9.6-3.6-9.6-8v-16c0-4.4 4.3-8 9.6-8h63.8c-28.4-16.3-53.3-38-73-64H32c-17.7 0-32 14.3-32 32v96c0 17.7 14.3 32 32 32h448c17.7 0 32-14.3 32-32v-96c0-17.7-14.3-32-32-32z"] };
  2939. var faDoorClosed = { prefix: 'fas', iconName: 'door-closed', icon: [640, 512, [], "f52a", "M624 448H512V50.8C512 22.78 490.47 0 464 0H175.99c-26.47 0-48 22.78-48 50.8V448H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h608c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zM415.99 288c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32c.01 17.67-14.32 32-32 32z"] };
  2940. var faDoorOpen = { prefix: 'fas', iconName: 'door-open', icon: [640, 512, [], "f52b", "M624 448h-80V113.45C544 86.19 522.47 64 496 64H384v64h96v384h144c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zM312.24 1.01l-192 49.74C105.99 54.44 96 67.7 96 82.92V448H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h336V33.18c0-21.58-19.56-37.41-39.76-32.17zM264 288c-13.25 0-24-14.33-24-32s10.75-32 24-32 24 14.33 24 32-10.75 32-24 32z"] };
  2941. var faDotCircle = { prefix: 'fas', iconName: 'dot-circle', icon: [512, 512, [], "f192", "M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm80 248c0 44.112-35.888 80-80 80s-80-35.888-80-80 35.888-80 80-80 80 35.888 80 80z"] };
  2942. var faDove = { prefix: 'fas', iconName: 'dove', icon: [512, 512, [], "f4ba", "M288 167.2v-28.1c-28.2-36.3-47.1-79.3-54.1-125.2-2.1-13.5-19-18.8-27.8-8.3-21.1 24.9-37.7 54.1-48.9 86.5 34.2 38.3 80 64.6 130.8 75.1zM400 64c-44.2 0-80 35.9-80 80.1v59.4C215.6 197.3 127 133 87 41.8c-5.5-12.5-23.2-13.2-29-.9C41.4 76 32 115.2 32 156.6c0 70.8 34.1 136.9 85.1 185.9 13.2 12.7 26.1 23.2 38.9 32.8l-143.9 36C1.4 414-3.4 426.4 2.6 435.7 20 462.6 63 508.2 155.8 512c8 .3 16-2.6 22.1-7.9l65.2-56.1H320c88.4 0 160-71.5 160-159.9V128l32-64H400zm0 96.1c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16z"] };
  2943. var faDownload = { prefix: 'fas', iconName: 'download', icon: [512, 512, [], "f019", "M216 0h80c13.3 0 24 10.7 24 24v168h87.7c17.8 0 26.7 21.5 14.1 34.1L269.7 378.3c-7.5 7.5-19.8 7.5-27.3 0L90.1 226.1c-12.6-12.6-3.7-34.1 14.1-34.1H192V24c0-13.3 10.7-24 24-24zm296 376v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h146.7l49 49c20.1 20.1 52.5 20.1 72.6 0l49-49H488c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z"] };
  2944. var faDraftingCompass = { prefix: 'fas', iconName: 'drafting-compass', icon: [512, 512, [], "f568", "M457.01 344.42c-25.05 20.33-52.63 37.18-82.54 49.05l54.38 94.19 53.95 23.04c9.81 4.19 20.89-2.21 22.17-12.8l7.02-58.25-54.98-95.23zm42.49-94.56c4.86-7.67 1.89-17.99-6.05-22.39l-28.07-15.57c-7.48-4.15-16.61-1.46-21.26 5.72C403.01 281.15 332.25 320 256 320c-23.93 0-47.23-4.25-69.41-11.53l67.36-116.68c.7.02 1.34.21 2.04.21s1.35-.19 2.04-.21l51.09 88.5c31.23-8.96 59.56-25.75 82.61-48.92l-51.79-89.71C347.39 128.03 352 112.63 352 96c0-53.02-42.98-96-96-96s-96 42.98-96 96c0 16.63 4.61 32.03 12.05 45.66l-68.3 118.31c-12.55-11.61-23.96-24.59-33.68-39-4.79-7.1-13.97-9.62-21.38-5.33l-27.75 16.07c-7.85 4.54-10.63 14.9-5.64 22.47 15.57 23.64 34.69 44.21 55.98 62.02L0 439.66l7.02 58.25c1.28 10.59 12.36 16.99 22.17 12.8l53.95-23.04 70.8-122.63C186.13 377.28 220.62 384 256 384c99.05 0 190.88-51.01 243.5-134.14zM256 64c17.67 0 32 14.33 32 32s-14.33 32-32 32-32-14.33-32-32 14.33-32 32-32z"] };
  2945. var faDragon = { prefix: 'fas', iconName: 'dragon', icon: [640, 512, [], "f6d5", "M18.32 255.78L192 223.96l-91.28 68.69c-10.08 10.08-2.94 27.31 11.31 27.31h222.7c-9.44-26.4-14.73-54.47-14.73-83.38v-42.27l-119.73-87.6c-23.82-15.88-55.29-14.01-77.06 4.59L5.81 227.64c-12.38 10.33-3.45 30.42 12.51 28.14zm556.87 34.1l-100.66-50.31A47.992 47.992 0 0 1 448 196.65v-36.69h64l28.09 22.63c6 6 14.14 9.37 22.63 9.37h30.97a32 32 0 0 0 28.62-17.69l14.31-28.62a32.005 32.005 0 0 0-3.02-33.51l-74.53-99.38C553.02 4.7 543.54 0 533.47 0H296.02c-7.13 0-10.7 8.57-5.66 13.61L352 63.96 292.42 88.8c-5.9 2.95-5.9 11.36 0 14.31L352 127.96v108.62c0 72.08 36.03 139.39 96 179.38-195.59 6.81-344.56 41.01-434.1 60.91C5.78 478.67 0 485.88 0 494.2 0 504 7.95 512 17.76 512h499.08c63.29.01 119.61-47.56 122.99-110.76 2.52-47.28-22.73-90.4-64.64-111.36zM489.18 66.25l45.65 11.41c-2.75 10.91-12.47 18.89-24.13 18.26-12.96-.71-25.85-12.53-21.52-29.67z"] };
  2946. var faDrawPolygon = { prefix: 'fas', iconName: 'draw-polygon', icon: [448, 512, [], "f5ee", "M384 352c-.35 0-.67.1-1.02.1l-39.2-65.32c5.07-9.17 8.22-19.56 8.22-30.78s-3.14-21.61-8.22-30.78l39.2-65.32c.35.01.67.1 1.02.1 35.35 0 64-28.65 64-64s-28.65-64-64-64c-23.63 0-44.04 12.95-55.12 32H119.12C108.04 44.95 87.63 32 64 32 28.65 32 0 60.65 0 96c0 23.63 12.95 44.04 32 55.12v209.75C12.95 371.96 0 392.37 0 416c0 35.35 28.65 64 64 64 23.63 0 44.04-12.95 55.12-32h209.75c11.09 19.05 31.49 32 55.12 32 35.35 0 64-28.65 64-64 .01-35.35-28.64-64-63.99-64zm-288 8.88V151.12A63.825 63.825 0 0 0 119.12 128h208.36l-38.46 64.1c-.35-.01-.67-.1-1.02-.1-35.35 0-64 28.65-64 64s28.65 64 64 64c.35 0 .67-.1 1.02-.1l38.46 64.1H119.12A63.748 63.748 0 0 0 96 360.88zM272 256c0-8.82 7.18-16 16-16s16 7.18 16 16-7.18 16-16 16-16-7.18-16-16zM400 96c0 8.82-7.18 16-16 16s-16-7.18-16-16 7.18-16 16-16 16 7.18 16 16zM64 80c8.82 0 16 7.18 16 16s-7.18 16-16 16-16-7.18-16-16 7.18-16 16-16zM48 416c0-8.82 7.18-16 16-16s16 7.18 16 16-7.18 16-16 16-16-7.18-16-16zm336 16c-8.82 0-16-7.18-16-16s7.18-16 16-16 16 7.18 16 16-7.18 16-16 16z"] };
  2947. var faDrum = { prefix: 'fas', iconName: 'drum', icon: [576, 512, [], "f569", "M458.08 120.88l102.39-61.43c15.16-9.09 20.06-28.75 10.97-43.91C562.34.39 542.7-4.53 527.53 4.57l-160.69 96.41A629.32 629.32 0 0 0 288 96C128.94 96 0 153.31 0 224v160.83c0 30.46 24.03 58.4 64 80.37v-96.37c0-17.6 14.4-32 32-32s32 14.4 32 32v122.41c37.4 11.13 81 18.44 128 20.75V400.84c0-17.6 14.4-32 32-32s32 14.4 32 32V512c47-2.31 90.6-9.62 128-20.75V368.84c0-17.6 14.4-32 32-32s32 14.4 32 32v96.37c39.97-21.97 64-49.91 64-80.37V224.01c-.01-42.38-46.54-79.84-117.92-103.13zM288 304c-132.55 0-240-35.82-240-80s107.45-80 240-80c2.34 0 4.62.1 6.94.12l-87.41 52.44c-15.16 9.09-20.06 28.75-10.97 43.91 9.56 15.93 29.51 19.61 43.91 10.97l162.71-97.62C477.55 167.41 528 193.74 528 224.01 528 268.19 420.54 304 288 304z"] };
  2948. var faDrumSteelpan = { prefix: 'fas', iconName: 'drum-steelpan', icon: [576, 512, [], "f56a", "M288 32C128.94 32 0 89.31 0 160v192c0 70.69 128.94 128 288 128s288-57.31 288-128V160c0-70.69-128.94-128-288-128zm-82.99 158.36c-4.45 16.61-14.54 30.57-28.31 40.48C100.23 217.46 48 190.78 48 160c0-30.16 50.11-56.39 124.04-70.03l25.6 44.34c9.86 17.09 12.48 36.99 7.37 56.05zM288 240c-21.08 0-41.41-1-60.89-2.7 8.06-26.13 32.15-45.3 60.89-45.3s52.83 19.17 60.89 45.3C329.41 239 309.08 240 288 240zm64-144c0 35.29-28.71 64-64 64s-64-28.71-64-64V82.96c20.4-1.88 41.8-2.96 64-2.96s43.6 1.08 64 2.96V96zm46.93 134.9c-13.81-9.91-23.94-23.9-28.4-40.54-5.11-19.06-2.49-38.96 7.38-56.04l25.65-44.42C477.72 103.5 528 129.79 528 160c0 30.83-52.4 57.54-129.07 70.9z"] };
  2949. var faDrumstickBite = { prefix: 'fas', iconName: 'drumstick-bite', icon: [512, 512, [], "f6d7", "M462.79 49.57c-66.14-66.09-173.36-66.09-239.5 0C187.81 85.02 160.12 128 160.12 192v85.83l-40.62 40.59c-9.7 9.69-24.04 11.07-36.78 5.98-21.72-8.68-47.42-4.29-65.02 13.29-23.61 23.59-23.61 61.84 0 85.43 15.28 15.27 36.53 19.58 56.14 15.09-4.5 19.6-.18 40.83 15.1 56.1 23.61 23.59 61.88 23.59 85.49 0 17.6-17.58 21.99-43.26 13.31-64.97-5.09-12.73-3.72-27.05 5.99-36.75L234.35 352h85.89c23.2 0 43.57-3.72 61.89-10.03-39.64-43.89-39.83-110.23 1.05-151.07 34.38-34.36 86.76-39.46 128.74-16.8 1.3-44.93-14.81-90.25-49.13-124.53z"] };
  2950. var faDumbbell = { prefix: 'fas', iconName: 'dumbbell', icon: [640, 512, [], "f44b", "M104 96H56c-13.3 0-24 10.7-24 24v104H8c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h24v104c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V120c0-13.3-10.7-24-24-24zm528 128h-24V120c0-13.3-10.7-24-24-24h-48c-13.3 0-24 10.7-24 24v272c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V288h24c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM456 32h-48c-13.3 0-24 10.7-24 24v168H256V56c0-13.3-10.7-24-24-24h-48c-13.3 0-24 10.7-24 24v400c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V288h128v168c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24z"] };
  2951. var faDungeon = { prefix: 'fas', iconName: 'dungeon', icon: [512, 512, [], "f6d9", "M128.73 195.32l-82.81-51.76c-8.04-5.02-18.99-2.17-22.93 6.45A254.19 254.19 0 0 0 .54 239.28C-.05 248.37 7.59 256 16.69 256h97.13c7.96 0 14.08-6.25 15.01-14.16 1.09-9.33 3.24-18.33 6.24-26.94 2.56-7.34.25-15.46-6.34-19.58zM319.03 8C298.86 2.82 277.77 0 256 0s-42.86 2.82-63.03 8c-9.17 2.35-13.91 12.6-10.39 21.39l37.47 104.03A16.003 16.003 0 0 0 235.1 144h41.8c6.75 0 12.77-4.23 15.05-10.58l37.47-104.03c3.52-8.79-1.22-19.03-10.39-21.39zM112 288H16c-8.84 0-16 7.16-16 16v64c0 8.84 7.16 16 16 16h96c8.84 0 16-7.16 16-16v-64c0-8.84-7.16-16-16-16zm0 128H16c-8.84 0-16 7.16-16 16v64c0 8.84 7.16 16 16 16h96c8.84 0 16-7.16 16-16v-64c0-8.84-7.16-16-16-16zm77.31-283.67l-36.32-90.8c-3.53-8.83-14.13-12.99-22.42-8.31a257.308 257.308 0 0 0-71.61 59.89c-6.06 7.32-3.85 18.48 4.22 23.52l82.93 51.83c6.51 4.07 14.66 2.62 20.11-2.79 5.18-5.15 10.79-9.85 16.79-14.05 6.28-4.41 9.15-12.17 6.3-19.29zM398.18 256h97.13c9.1 0 16.74-7.63 16.15-16.72a254.135 254.135 0 0 0-22.45-89.27c-3.94-8.62-14.89-11.47-22.93-6.45l-82.81 51.76c-6.59 4.12-8.9 12.24-6.34 19.58 3.01 8.61 5.15 17.62 6.24 26.94.93 7.91 7.05 14.16 15.01 14.16zm54.85-162.89a257.308 257.308 0 0 0-71.61-59.89c-8.28-4.68-18.88-.52-22.42 8.31l-36.32 90.8c-2.85 7.12.02 14.88 6.3 19.28 6 4.2 11.61 8.9 16.79 14.05 5.44 5.41 13.6 6.86 20.11 2.79l82.93-51.83c8.07-5.03 10.29-16.19 4.22-23.51zM496 288h-96c-8.84 0-16 7.16-16 16v64c0 8.84 7.16 16 16 16h96c8.84 0 16-7.16 16-16v-64c0-8.84-7.16-16-16-16zm0 128h-96c-8.84 0-16 7.16-16 16v64c0 8.84 7.16 16 16 16h96c8.84 0 16-7.16 16-16v-64c0-8.84-7.16-16-16-16zM240 177.62V472c0 4.42 3.58 8 8 8h16c4.42 0 8-3.58 8-8V177.62c-5.23-.89-10.52-1.62-16-1.62s-10.77.73-16 1.62zm-64 41.51V472c0 4.42 3.58 8 8 8h16c4.42 0 8-3.58 8-8V189.36c-12.78 7.45-23.84 17.47-32 29.77zm128-29.77V472c0 4.42 3.58 8 8 8h16c4.42 0 8-3.58 8-8V219.13c-8.16-12.3-19.22-22.32-32-29.77z"] };
  2952. var faEdit = { prefix: 'fas', iconName: 'edit', icon: [576, 512, [], "f044", "M402.6 83.2l90.2 90.2c3.8 3.8 3.8 10 0 13.8L274.4 405.6l-92.8 10.3c-12.4 1.4-22.9-9.1-21.5-21.5l10.3-92.8L388.8 83.2c3.8-3.8 10-3.8 13.8 0zm162-22.9l-48.8-48.8c-15.2-15.2-39.9-15.2-55.2 0l-35.4 35.4c-3.8 3.8-3.8 10 0 13.8l90.2 90.2c3.8 3.8 10 3.8 13.8 0l35.4-35.4c15.2-15.3 15.2-40 0-55.2zM384 346.2V448H64V128h229.8c3.2 0 6.2-1.3 8.5-3.5l40-40c7.6-7.6 2.2-20.5-8.5-20.5H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V306.2c0-10.7-12.9-16-20.5-8.5l-40 40c-2.2 2.3-3.5 5.3-3.5 8.5z"] };
  2953. var faEject = { prefix: 'fas', iconName: 'eject', icon: [448, 512, [], "f052", "M448 384v64c0 17.673-14.327 32-32 32H32c-17.673 0-32-14.327-32-32v-64c0-17.673 14.327-32 32-32h384c17.673 0 32 14.327 32 32zM48.053 320h351.886c41.651 0 63.581-49.674 35.383-80.435L259.383 47.558c-19.014-20.743-51.751-20.744-70.767 0L12.67 239.565C-15.475 270.268 6.324 320 48.053 320z"] };
  2954. var faEllipsisH = { prefix: 'fas', iconName: 'ellipsis-h', icon: [512, 512, [], "f141", "M328 256c0 39.8-32.2 72-72 72s-72-32.2-72-72 32.2-72 72-72 72 32.2 72 72zm104-72c-39.8 0-72 32.2-72 72s32.2 72 72 72 72-32.2 72-72-32.2-72-72-72zm-352 0c-39.8 0-72 32.2-72 72s32.2 72 72 72 72-32.2 72-72-32.2-72-72-72z"] };
  2955. var faEllipsisV = { prefix: 'fas', iconName: 'ellipsis-v', icon: [192, 512, [], "f142", "M96 184c39.8 0 72 32.2 72 72s-32.2 72-72 72-72-32.2-72-72 32.2-72 72-72zM24 80c0 39.8 32.2 72 72 72s72-32.2 72-72S135.8 8 96 8 24 40.2 24 80zm0 352c0 39.8 32.2 72 72 72s72-32.2 72-72-32.2-72-72-72-72 32.2-72 72z"] };
  2956. var faEnvelope = { prefix: 'fas', iconName: 'envelope', icon: [512, 512, [], "f0e0", "M502.3 190.8c3.9-3.1 9.7-.2 9.7 4.7V400c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V195.6c0-5 5.7-7.8 9.7-4.7 22.4 17.4 52.1 39.5 154.1 113.6 21.1 15.4 56.7 47.8 92.2 47.6 35.7.3 72-32.8 92.3-47.6 102-74.1 131.6-96.3 154-113.7zM256 320c23.2.4 56.6-29.2 73.4-41.4 132.7-96.3 142.8-104.7 173.4-128.7 5.8-4.5 9.2-11.5 9.2-18.9v-19c0-26.5-21.5-48-48-48H48C21.5 64 0 85.5 0 112v19c0 7.4 3.4 14.3 9.2 18.9 30.6 23.9 40.7 32.4 173.4 128.7 16.8 12.2 50.2 41.8 73.4 41.4z"] };
  2957. var faEnvelopeOpen = { prefix: 'fas', iconName: 'envelope-open', icon: [512, 512, [], "f2b6", "M512 464c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V200.724a48 48 0 0 1 18.387-37.776c24.913-19.529 45.501-35.365 164.2-121.511C199.412 29.17 232.797-.347 256 .003c23.198-.354 56.596 29.172 73.413 41.433 118.687 86.137 139.303 101.995 164.2 121.512A48 48 0 0 1 512 200.724V464zm-65.666-196.605c-2.563-3.728-7.7-4.595-11.339-1.907-22.845 16.873-55.462 40.705-105.582 77.079-16.825 12.266-50.21 41.781-73.413 41.43-23.211.344-56.559-29.143-73.413-41.43-50.114-36.37-82.734-60.204-105.582-77.079-3.639-2.688-8.776-1.821-11.339 1.907l-9.072 13.196a7.998 7.998 0 0 0 1.839 10.967c22.887 16.899 55.454 40.69 105.303 76.868 20.274 14.781 56.524 47.813 92.264 47.573 35.724.242 71.961-32.771 92.263-47.573 49.85-36.179 82.418-59.97 105.303-76.868a7.998 7.998 0 0 0 1.839-10.967l-9.071-13.196z"] };
  2958. var faEnvelopeOpenText = { prefix: 'fas', iconName: 'envelope-open-text', icon: [512, 512, [], "f658", "M176 216h160c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16H176c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16zm-16 80c0 8.84 7.16 16 16 16h160c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16H176c-8.84 0-16 7.16-16 16v16zm96 121.13c-16.42 0-32.84-5.06-46.86-15.19L0 250.86V464c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V250.86L302.86 401.94c-14.02 10.12-30.44 15.19-46.86 15.19zm237.61-254.18c-8.85-6.94-17.24-13.47-29.61-22.81V96c0-26.51-21.49-48-48-48h-77.55c-3.04-2.2-5.87-4.26-9.04-6.56C312.6 29.17 279.2-.35 256 0c-23.2-.35-56.59 29.17-73.41 41.44-3.17 2.3-6 4.36-9.04 6.56H96c-26.51 0-48 21.49-48 48v44.14c-12.37 9.33-20.76 15.87-29.61 22.81A47.995 47.995 0 0 0 0 200.72v10.65l96 69.35V96h320v184.72l96-69.35v-10.65c0-14.74-6.78-28.67-18.39-37.77z"] };
  2959. var faEnvelopeSquare = { prefix: 'fas', iconName: 'envelope-square', icon: [448, 512, [], "f199", "M400 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zM178.117 262.104C87.429 196.287 88.353 196.121 64 177.167V152c0-13.255 10.745-24 24-24h272c13.255 0 24 10.745 24 24v25.167c-24.371 18.969-23.434 19.124-114.117 84.938-10.5 7.655-31.392 26.12-45.883 25.894-14.503.218-35.367-18.227-45.883-25.895zM384 217.775V360c0 13.255-10.745 24-24 24H88c-13.255 0-24-10.745-24-24V217.775c13.958 10.794 33.329 25.236 95.303 70.214 14.162 10.341 37.975 32.145 64.694 32.01 26.887.134 51.037-22.041 64.72-32.025 61.958-44.965 81.325-59.406 95.283-70.199z"] };
  2960. var faEquals = { prefix: 'fas', iconName: 'equals', icon: [448, 512, [], "f52c", "M416 304H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32zm0-192H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"] };
  2961. var faEraser = { prefix: 'fas', iconName: 'eraser', icon: [512, 512, [], "f12d", "M497.941 273.941c18.745-18.745 18.745-49.137 0-67.882l-160-160c-18.745-18.745-49.136-18.746-67.883 0l-256 256c-18.745 18.745-18.745 49.137 0 67.882l96 96A48.004 48.004 0 0 0 144 480h356c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12H355.883l142.058-142.059zm-302.627-62.627l137.373 137.373L265.373 416H150.628l-80-80 124.686-124.686z"] };
  2962. var faEuroSign = { prefix: 'fas', iconName: 'euro-sign', icon: [320, 512, [], "f153", "M310.706 413.765c-1.314-6.63-7.835-10.872-14.424-9.369-10.692 2.439-27.422 5.413-45.426 5.413-56.763 0-101.929-34.79-121.461-85.449h113.689a12 12 0 0 0 11.708-9.369l6.373-28.36c1.686-7.502-4.019-14.631-11.708-14.631H115.22c-1.21-14.328-1.414-28.287.137-42.245H261.95a12 12 0 0 0 11.723-9.434l6.512-29.755c1.638-7.484-4.061-14.566-11.723-14.566H130.184c20.633-44.991 62.69-75.03 117.619-75.03 14.486 0 28.564 2.25 37.851 4.145 6.216 1.268 12.347-2.498 14.002-8.623l11.991-44.368c1.822-6.741-2.465-13.616-9.326-14.917C290.217 34.912 270.71 32 249.635 32 152.451 32 74.03 92.252 45.075 176H12c-6.627 0-12 5.373-12 12v29.755c0 6.627 5.373 12 12 12h21.569c-1.009 13.607-1.181 29.287-.181 42.245H12c-6.627 0-12 5.373-12 12v28.36c0 6.627 5.373 12 12 12h30.114C67.139 414.692 145.264 480 249.635 480c26.301 0 48.562-4.544 61.101-7.788 6.167-1.595 10.027-7.708 8.788-13.957l-8.818-44.49z"] };
  2963. var faExchangeAlt = { prefix: 'fas', iconName: 'exchange-alt', icon: [512, 512, [], "f362", "M0 168v-16c0-13.255 10.745-24 24-24h360V80c0-21.367 25.899-32.042 40.971-16.971l80 80c9.372 9.373 9.372 24.569 0 33.941l-80 80C409.956 271.982 384 261.456 384 240v-48H24c-13.255 0-24-10.745-24-24zm488 152H128v-48c0-21.314-25.862-32.08-40.971-16.971l-80 80c-9.372 9.373-9.372 24.569 0 33.941l80 80C102.057 463.997 128 453.437 128 432v-48h360c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24z"] };
  2964. var faExclamation = { prefix: 'fas', iconName: 'exclamation', icon: [192, 512, [], "f12a", "M176 432c0 44.112-35.888 80-80 80s-80-35.888-80-80 35.888-80 80-80 80 35.888 80 80zM25.26 25.199l13.6 272C39.499 309.972 50.041 320 62.83 320h66.34c12.789 0 23.331-10.028 23.97-22.801l13.6-272C167.425 11.49 156.496 0 142.77 0H49.23C35.504 0 24.575 11.49 25.26 25.199z"] };
  2965. var faExclamationCircle = { prefix: 'fas', iconName: 'exclamation-circle', icon: [512, 512, [], "f06a", "M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"] };
  2966. var faExclamationTriangle = { prefix: 'fas', iconName: 'exclamation-triangle', icon: [576, 512, [], "f071", "M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"] };
  2967. var faExpand = { prefix: 'fas', iconName: 'expand', icon: [448, 512, [], "f065", "M0 180V56c0-13.3 10.7-24 24-24h124c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H64v84c0 6.6-5.4 12-12 12H12c-6.6 0-12-5.4-12-12zM288 44v40c0 6.6 5.4 12 12 12h84v84c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12V56c0-13.3-10.7-24-24-24H300c-6.6 0-12 5.4-12 12zm148 276h-40c-6.6 0-12 5.4-12 12v84h-84c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h124c13.3 0 24-10.7 24-24V332c0-6.6-5.4-12-12-12zM160 468v-40c0-6.6-5.4-12-12-12H64v-84c0-6.6-5.4-12-12-12H12c-6.6 0-12 5.4-12 12v124c0 13.3 10.7 24 24 24h124c6.6 0 12-5.4 12-12z"] };
  2968. var faExpandArrowsAlt = { prefix: 'fas', iconName: 'expand-arrows-alt', icon: [448, 512, [], "f31e", "M448.1 344v112c0 13.3-10.7 24-24 24h-112c-21.4 0-32.1-25.9-17-41l36.2-36.2L224 295.6 116.8 402.9 153 439c15.1 15.1 4.4 41-17 41H24c-13.3 0-24-10.7-24-24V344c0-21.4 25.9-32.1 41-17l36.2 36.2L184.5 256 77.2 148.7 41 185c-15.1 15.1-41 4.4-41-17V56c0-13.3 10.7-24 24-24h112c21.4 0 32.1 25.9 17 41l-36.2 36.2L224 216.4l107.3-107.3L295.1 73c-15.1-15.1-4.4-41 17-41h112c13.3 0 24 10.7 24 24v112c0 21.4-25.9 32.1-41 17l-36.2-36.2L263.6 256l107.3 107.3 36.2-36.2c15.1-15.2 41-4.5 41 16.9z"] };
  2969. var faExternalLinkAlt = { prefix: 'fas', iconName: 'external-link-alt', icon: [576, 512, [], "f35d", "M576 24v127.984c0 21.461-25.96 31.98-40.971 16.971l-35.707-35.709-243.523 243.523c-9.373 9.373-24.568 9.373-33.941 0l-22.627-22.627c-9.373-9.373-9.373-24.569 0-33.941L442.756 76.676l-35.703-35.705C391.982 25.9 402.656 0 424.024 0H552c13.255 0 24 10.745 24 24zM407.029 270.794l-16 16A23.999 23.999 0 0 0 384 303.765V448H64V128h264a24.003 24.003 0 0 0 16.97-7.029l16-16C376.089 89.851 365.381 64 344 64H48C21.49 64 0 85.49 0 112v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V287.764c0-21.382-25.852-32.09-40.971-16.97z"] };
  2970. var faExternalLinkSquareAlt = { prefix: 'fas', iconName: 'external-link-square-alt', icon: [448, 512, [], "f360", "M448 80v352c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h352c26.51 0 48 21.49 48 48zm-88 16H248.029c-21.313 0-32.08 25.861-16.971 40.971l31.984 31.987L67.515 364.485c-4.686 4.686-4.686 12.284 0 16.971l31.029 31.029c4.687 4.686 12.285 4.686 16.971 0l195.526-195.526 31.988 31.991C358.058 263.977 384 253.425 384 231.979V120c0-13.255-10.745-24-24-24z"] };
  2971. var faEye = { prefix: 'fas', iconName: 'eye', icon: [576, 512, [], "f06e", "M569.354 231.631C512.969 135.949 407.81 72 288 72 168.14 72 63.004 135.994 6.646 231.631a47.999 47.999 0 0 0 0 48.739C63.031 376.051 168.19 440 288 440c119.86 0 224.996-63.994 281.354-159.631a47.997 47.997 0 0 0 0-48.738zM288 392c-75.162 0-136-60.827-136-136 0-75.162 60.826-136 136-136 75.162 0 136 60.826 136 136 0 75.162-60.826 136-136 136zm104-136c0 57.438-46.562 104-104 104s-104-46.562-104-104c0-17.708 4.431-34.379 12.236-48.973l-.001.032c0 23.651 19.173 42.823 42.824 42.823s42.824-19.173 42.824-42.823c0-23.651-19.173-42.824-42.824-42.824l-.032.001C253.621 156.431 270.292 152 288 152c57.438 0 104 46.562 104 104z"] };
  2972. var faEyeDropper = { prefix: 'fas', iconName: 'eye-dropper', icon: [512, 512, [], "f1fb", "M50.75 333.25c-12 12-18.75 28.28-18.75 45.26V424L0 480l32 32 56-32h45.49c16.97 0 33.25-6.74 45.25-18.74l126.64-126.62-128-128L50.75 333.25zM483.88 28.12c-37.47-37.5-98.28-37.5-135.75 0l-77.09 77.09-13.1-13.1c-9.44-9.44-24.65-9.31-33.94 0l-40.97 40.97c-9.37 9.37-9.37 24.57 0 33.94l161.94 161.94c9.44 9.44 24.65 9.31 33.94 0L419.88 288c9.37-9.37 9.37-24.57 0-33.94l-13.1-13.1 77.09-77.09c37.51-37.48 37.51-98.26.01-135.75z"] };
  2973. var faEyeSlash = { prefix: 'fas', iconName: 'eye-slash', icon: [576, 512, [], "f070", "M286.693 391.984l32.579 46.542A333.958 333.958 0 0 1 288 440C168.19 440 63.031 376.051 6.646 280.369a47.999 47.999 0 0 1 0-48.739c24.023-40.766 56.913-75.775 96.024-102.537l57.077 81.539C154.736 224.82 152 240.087 152 256c0 74.736 60.135 135.282 134.693 135.984zm282.661-111.615c-31.667 53.737-78.747 97.46-135.175 125.475l.011.015 41.47 59.2c7.6 10.86 4.96 25.82-5.9 33.42l-13.11 9.18c-10.86 7.6-25.82 4.96-33.42-5.9L100.34 46.94c-7.6-10.86-4.96-25.82 5.9-33.42l13.11-9.18c10.86-7.6 25.82-4.96 33.42 5.9l51.038 72.617C230.68 75.776 258.905 72 288 72c119.81 0 224.969 63.949 281.354 159.631a48.002 48.002 0 0 1 0 48.738zM424 256c0-75.174-60.838-136-136-136-17.939 0-35.056 3.473-50.729 9.772l19.299 27.058c25.869-8.171 55.044-6.163 80.4 7.41h-.03c-23.65 0-42.82 19.17-42.82 42.82 0 23.626 19.147 42.82 42.82 42.82 23.65 0 42.82-19.17 42.82-42.82v-.03c18.462 34.49 16.312 77.914-8.25 110.95v.01l19.314 27.061C411.496 321.2 424 290.074 424 256zM262.014 356.727l-77.53-110.757c-5.014 52.387 29.314 98.354 77.53 110.757z"] };
  2974. var faFastBackward = { prefix: 'fas', iconName: 'fast-backward', icon: [512, 512, [], "f049", "M0 436V76c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v151.9L235.5 71.4C256.1 54.3 288 68.6 288 96v131.9L459.5 71.4C480.1 54.3 512 68.6 512 96v320c0 27.4-31.9 41.7-52.5 24.6L288 285.3V416c0 27.4-31.9 41.7-52.5 24.6L64 285.3V436c0 6.6-5.4 12-12 12H12c-6.6 0-12-5.4-12-12z"] };
  2975. var faFastForward = { prefix: 'fas', iconName: 'fast-forward', icon: [512, 512, [], "f050", "M512 76v360c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12V284.1L276.5 440.6c-20.6 17.2-52.5 2.8-52.5-24.6V284.1L52.5 440.6C31.9 457.8 0 443.4 0 416V96c0-27.4 31.9-41.7 52.5-24.6L224 226.8V96c0-27.4 31.9-41.7 52.5-24.6L448 226.8V76c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12z"] };
  2976. var faFax = { prefix: 'fas', iconName: 'fax', icon: [512, 512, [], "f1ac", "M64 128H32c-17.67 0-32 14.33-32 32v320c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V160c0-17.67-14.33-32-32-32zm416 32V77.25c0-8.49-3.37-16.62-9.37-22.63L425.37 9.37c-6-6-14.14-9.37-22.63-9.37H160c-17.67 0-32 14.33-32 32v448c0 17.67 14.33 32 32 32h320c17.67 0 32-14.33 32-32V192c0-17.67-14.33-32-32-32zM288 432c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16v-32c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v32zm0-128c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16v-32c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v32zm128 128c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16v-32c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v32zm0-128c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16v-32c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v32zm16-112H176V48h208v32c0 8.84 7.16 16 16 16h32v96z"] };
  2977. var faFeather = { prefix: 'fas', iconName: 'feather', icon: [512, 512, [], "f52d", "M467.14 44.84c-62.55-62.48-161.67-64.78-252.28 25.73-78.61 78.52-60.98 60.92-85.75 85.66-60.46 60.39-70.39 150.83-63.64 211.17l178.44-178.25c6.26-6.25 16.4-6.25 22.65 0s6.25 16.38 0 22.63L7.04 471.03c-9.38 9.37-9.38 24.57 0 33.94 9.38 9.37 24.6 9.37 33.98 0l66.1-66.03C159.42 454.65 279 457.11 353.95 384h-98.19l147.57-49.14c49.99-49.93 36.38-36.18 46.31-46.86h-97.78l131.54-43.8c45.44-74.46 34.31-148.84-16.26-199.36z"] };
  2978. var faFeatherAlt = { prefix: 'fas', iconName: 'feather-alt', icon: [512, 512, [], "f56b", "M512 0C460.22 3.56 96.44 38.2 71.01 287.61c-3.09 26.66-4.84 53.44-5.99 80.24l178.87-178.69c6.25-6.25 16.4-6.25 22.65 0s6.25 16.38 0 22.63L7.04 471.03c-9.38 9.37-9.38 24.57 0 33.94 9.38 9.37 24.59 9.37 33.98 0l57.13-57.07c42.09-.14 84.15-2.53 125.96-7.36 53.48-5.44 97.02-26.47 132.58-56.54H255.74l146.79-48.88c11.25-14.89 21.37-30.71 30.45-47.12h-81.14l106.54-53.21C500.29 132.86 510.19 26.26 512 0z"] };
  2979. var faFemale = { prefix: 'fas', iconName: 'female', icon: [256, 512, [], "f182", "M128 0c35.346 0 64 28.654 64 64s-28.654 64-64 64c-35.346 0-64-28.654-64-64S92.654 0 128 0m119.283 354.179l-48-192A24 24 0 0 0 176 144h-11.36c-22.711 10.443-49.59 10.894-73.28 0H80a24 24 0 0 0-23.283 18.179l-48 192C4.935 369.305 16.383 384 32 384h56v104c0 13.255 10.745 24 24 24h32c13.255 0 24-10.745 24-24V384h56c15.591 0 27.071-14.671 23.283-29.821z"] };
  2980. var faFighterJet = { prefix: 'fas', iconName: 'fighter-jet', icon: [640, 512, [], "f0fb", "M544 224l-128-16-48-16h-24L227.158 44h39.509C278.333 44 288 41.375 288 38s-9.667-6-21.333-6H152v12h16v164h-48l-66.667-80H18.667L8 138.667V208h8v16h48v2.666l-64 8v42.667l64 8V288H16v16H8v69.333L18.667 384h34.667L120 304h48v164h-16v12h114.667c11.667 0 21.333-2.625 21.333-6s-9.667-6-21.333-6h-39.509L344 320h24l48-16 128-16c96-21.333 96-26.583 96-32 0-5.417 0-10.667-96-32z"] };
  2981. var faFile = { prefix: 'fas', iconName: 'file', icon: [384, 512, [], "f15b", "M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm160-14.1v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"] };
  2982. var faFileAlt = { prefix: 'fas', iconName: 'file-alt', icon: [384, 512, [], "f15c", "M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm64 236c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12v8zm0-64c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12v8zm0-72v8c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12zm96-114.1v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"] };
  2983. var faFileArchive = { prefix: 'fas', iconName: 'file-archive', icon: [384, 512, [], "f1c6", "M224 136V0h-63.6v32h-32V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zM95.9 32h32v32h-32V32zm32.3 384c-33.2 0-58-30.4-51.4-62.9L96.4 256v-32h32v-32h-32v-32h32v-32h-32V96h32V64h32v32h-32v32h32v32h-32v32h32v32h-32v32h22.1c5.7 0 10.7 4.1 11.8 9.7l17.3 87.7c6.4 32.4-18.4 62.6-51.4 62.6zm32.7-53c0 14.9-14.5 27-32.4 27S96 378 96 363c0-14.9 14.5-27 32.4-27s32.5 12.1 32.5 27zM384 121.9v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"] };
  2984. var faFileAudio = { prefix: 'fas', iconName: 'file-audio', icon: [384, 512, [], "f1c7", "M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm-64 268c0 10.7-12.9 16-20.5 8.5L104 376H76c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h28l35.5-36.5c7.6-7.6 20.5-2.2 20.5 8.5v136zm33.2-47.6c9.1-9.3 9.1-24.1 0-33.4-22.1-22.8 12.2-56.2 34.4-33.5 27.2 27.9 27.2 72.4 0 100.4-21.8 22.3-56.9-10.4-34.4-33.5zm86-117.1c54.4 55.9 54.4 144.8 0 200.8-21.8 22.4-57-10.3-34.4-33.5 36.2-37.2 36.3-96.5 0-133.8-22.1-22.8 12.3-56.3 34.4-33.5zM384 121.9v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"] };
  2985. var faFileCode = { prefix: 'fas', iconName: 'file-code', icon: [384, 512, [], "f1c9", "M384 121.941V128H256V0h6.059c6.365 0 12.47 2.529 16.971 7.029l97.941 97.941A24.005 24.005 0 0 1 384 121.941zM248 160c-13.2 0-24-10.8-24-24V0H24C10.745 0 0 10.745 0 24v464c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24V160H248zM123.206 400.505a5.4 5.4 0 0 1-7.633.246l-64.866-60.812a5.4 5.4 0 0 1 0-7.879l64.866-60.812a5.4 5.4 0 0 1 7.633.246l19.579 20.885a5.4 5.4 0 0 1-.372 7.747L101.65 336l40.763 35.874a5.4 5.4 0 0 1 .372 7.747l-19.579 20.884zm51.295 50.479l-27.453-7.97a5.402 5.402 0 0 1-3.681-6.692l61.44-211.626a5.402 5.402 0 0 1 6.692-3.681l27.452 7.97a5.4 5.4 0 0 1 3.68 6.692l-61.44 211.626a5.397 5.397 0 0 1-6.69 3.681zm160.792-111.045l-64.866 60.812a5.4 5.4 0 0 1-7.633-.246l-19.58-20.885a5.4 5.4 0 0 1 .372-7.747L284.35 336l-40.763-35.874a5.4 5.4 0 0 1-.372-7.747l19.58-20.885a5.4 5.4 0 0 1 7.633-.246l64.866 60.812a5.4 5.4 0 0 1-.001 7.879z"] };
  2986. var faFileContract = { prefix: 'fas', iconName: 'file-contract', icon: [384, 512, [], "f56c", "M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zM64 72c0-4.42 3.58-8 8-8h80c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8V72zm0 64c0-4.42 3.58-8 8-8h80c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8v-16zm192.81 248H304c8.84 0 16 7.16 16 16s-7.16 16-16 16h-47.19c-16.45 0-31.27-9.14-38.64-23.86-2.95-5.92-8.09-6.52-10.17-6.52s-7.22.59-10.02 6.19l-7.67 15.34a15.986 15.986 0 0 1-14.31 8.84c-.38 0-.75-.02-1.14-.05-6.45-.45-12-4.75-14.03-10.89L144 354.59l-10.61 31.88c-5.89 17.66-22.38 29.53-41 29.53H80c-8.84 0-16-7.16-16-16s7.16-16 16-16h12.39c4.83 0 9.11-3.08 10.64-7.66l18.19-54.64c3.3-9.81 12.44-16.41 22.78-16.41s19.48 6.59 22.77 16.41l13.88 41.64c19.77-16.19 54.05-9.7 66 14.16 2.02 4.06 5.96 6.5 10.16 6.5zM377 105L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1c0-6.3-2.5-12.4-7-16.9z"] };
  2987. var faFileCsv = { prefix: 'fas', iconName: 'file-csv', icon: [384, 512, [], "f6dd", "M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm-96 144c0 4.42-3.58 8-8 8h-8c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h8c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8h-8c-26.51 0-48-21.49-48-48v-32c0-26.51 21.49-48 48-48h8c4.42 0 8 3.58 8 8v16zm44.27 104H160c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h12.27c5.95 0 10.41-3.5 10.41-6.62 0-1.3-.75-2.66-2.12-3.84l-21.89-18.77c-8.47-7.22-13.33-17.48-13.33-28.14 0-21.3 19.02-38.62 42.41-38.62H200c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8h-12.27c-5.95 0-10.41 3.5-10.41 6.62 0 1.3.75 2.66 2.12 3.84l21.89 18.77c8.47 7.22 13.33 17.48 13.33 28.14.01 21.29-19 38.62-42.39 38.62zM256 264v20.8c0 20.27 5.7 40.17 16 56.88 10.3-16.7 16-36.61 16-56.88V264c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v20.8c0 35.48-12.88 68.89-36.28 94.09-3.02 3.25-7.27 5.11-11.72 5.11s-8.7-1.86-11.72-5.11c-23.4-25.2-36.28-58.61-36.28-94.09V264c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8zm121-159L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1c0-6.3-2.5-12.4-7-16.9z"] };
  2988. var faFileDownload = { prefix: 'fas', iconName: 'file-download', icon: [384, 512, [], "f56d", "M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm76.45 211.36l-96.42 95.7c-6.65 6.61-17.39 6.61-24.04 0l-96.42-95.7C73.42 337.29 80.54 320 94.82 320H160v-80c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v80h65.18c14.28 0 21.4 17.29 11.27 27.36zM377 105L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1c0-6.3-2.5-12.4-7-16.9z"] };
  2989. var faFileExcel = { prefix: 'fas', iconName: 'file-excel', icon: [384, 512, [], "f1c3", "M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm60.1 106.5L224 336l60.1 93.5c5.1 8-.6 18.5-10.1 18.5h-34.9c-4.4 0-8.5-2.4-10.6-6.3C208.9 405.5 192 373 192 373c-6.4 14.8-10 20-36.6 68.8-2.1 3.9-6.1 6.3-10.5 6.3H110c-9.5 0-15.2-10.5-10.1-18.5l60.3-93.5-60.3-93.5c-5.2-8 .6-18.5 10.1-18.5h34.8c4.4 0 8.5 2.4 10.6 6.3 26.1 48.8 20 33.6 36.6 68.5 0 0 6.1-11.7 36.6-68.5 2.1-3.9 6.2-6.3 10.6-6.3H274c9.5-.1 15.2 10.4 10.1 18.4zM384 121.9v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"] };
  2990. var faFileExport = { prefix: 'fas', iconName: 'file-export', icon: [576, 512, [], "f56e", "M384 121.9c0-6.3-2.5-12.4-7-16.9L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1zM192 336v-32c0-8.84 7.16-16 16-16h176V160H248c-13.2 0-24-10.8-24-24V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V352H208c-8.84 0-16-7.16-16-16zm379.05-28.02l-95.7-96.43c-10.06-10.14-27.36-3.01-27.36 11.27V288H384v64h63.99v65.18c0 14.28 17.29 21.41 27.36 11.27l95.7-96.42c6.6-6.66 6.6-17.4 0-24.05z"] };
  2991. var faFileImage = { prefix: 'fas', iconName: 'file-image', icon: [384, 512, [], "f1c5", "M384 121.941V128H256V0h6.059a24 24 0 0 1 16.97 7.029l97.941 97.941a24.002 24.002 0 0 1 7.03 16.971zM248 160c-13.2 0-24-10.8-24-24V0H24C10.745 0 0 10.745 0 24v464c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24V160H248zm-135.455 16c26.51 0 48 21.49 48 48s-21.49 48-48 48-48-21.49-48-48 21.491-48 48-48zm208 240h-256l.485-48.485L104.545 328c4.686-4.686 11.799-4.201 16.485.485L160.545 368 264.06 264.485c4.686-4.686 12.284-4.686 16.971 0L320.545 304v112z"] };
  2992. var faFileImport = { prefix: 'fas', iconName: 'file-import', icon: [512, 512, [], "f56f", "M16 288c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h112v-64H16zm336-152V0H152c-13.3 0-24 10.7-24 24v264h127.99v-65.18c0-14.28 17.29-21.41 27.36-11.27l95.7 96.43c6.6 6.65 6.6 17.39 0 24.04l-95.7 96.42c-10.06 10.14-27.36 3.01-27.36-11.27V352H128v136c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H376c-13.2 0-24-10.8-24-24zm153-31L407.1 7c-4.5-4.5-10.6-7-17-7H384v128h128v-6.1c0-6.3-2.5-12.4-7-16.9z"] };
  2993. var faFileInvoice = { prefix: 'fas', iconName: 'file-invoice', icon: [384, 512, [], "f570", "M288 256H96v64h192v-64zm89-151L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1c0-6.3-2.5-12.4-7-16.9zm-153 31V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zM64 72c0-4.42 3.58-8 8-8h80c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8V72zm0 64c0-4.42 3.58-8 8-8h80c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8v-16zm256 304c0 4.42-3.58 8-8 8h-80c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h80c4.42 0 8 3.58 8 8v16zm0-200v96c0 8.84-7.16 16-16 16H80c-8.84 0-16-7.16-16-16v-96c0-8.84 7.16-16 16-16h224c8.84 0 16 7.16 16 16z"] };
  2994. var faFileInvoiceDollar = { prefix: 'fas', iconName: 'file-invoice-dollar', icon: [384, 512, [], "f571", "M377 105L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1c0-6.3-2.5-12.4-7-16.9zm-153 31V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zM64 72c0-4.42 3.58-8 8-8h80c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8V72zm0 80v-16c0-4.42 3.58-8 8-8h80c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8zm144 263.88V440c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-24.29c-11.29-.58-22.27-4.52-31.37-11.35-3.9-2.93-4.1-8.77-.57-12.14l11.75-11.21c2.77-2.64 6.89-2.76 10.13-.73 3.87 2.42 8.26 3.72 12.82 3.72h28.11c6.5 0 11.8-5.92 11.8-13.19 0-5.95-3.61-11.19-8.77-12.73l-45-13.5c-18.59-5.58-31.58-23.42-31.58-43.39 0-24.52 19.05-44.44 42.67-45.07V232c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v24.29c11.29.58 22.27 4.51 31.37 11.35 3.9 2.93 4.1 8.77.57 12.14l-11.75 11.21c-2.77 2.64-6.89 2.76-10.13.73-3.87-2.43-8.26-3.72-12.82-3.72h-28.11c-6.5 0-11.8 5.92-11.8 13.19 0 5.95 3.61 11.19 8.77 12.73l45 13.5c18.59 5.58 31.58 23.42 31.58 43.39 0 24.53-19.05 44.44-42.67 45.07z"] };
  2995. var faFileMedical = { prefix: 'fas', iconName: 'file-medical', icon: [384, 512, [], "f477", "M377 105L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1c0-6.3-2.5-12.4-7-16.9zm-153 31V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm64 160v48c0 4.4-3.6 8-8 8h-56v56c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-56h-56c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h56v-56c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v56h56c4.4 0 8 3.6 8 8z"] };
  2996. var faFileMedicalAlt = { prefix: 'fas', iconName: 'file-medical-alt', icon: [448, 512, [], "f478", "M288 136V0H88C74.7 0 64 10.7 64 24v232H8c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8h140.9c3 0 5.8 1.7 7.2 4.4l19.9 39.8 56.8-113.7c2.9-5.9 11.4-5.9 14.3 0l34.7 69.5H352c8.8 0 16 7.2 16 16s-7.2 16-16 16h-89.9L240 275.8l-56.8 113.7c-2.9 5.9-11.4 5.9-14.3 0L134.1 320H64v168c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H312c-13.2 0-24-10.8-24-24zm153-31L343.1 7c-4.5-4.5-10.6-7-17-7H320v128h128v-6.1c0-6.3-2.5-12.4-7-16.9z"] };
  2997. var faFilePdf = { prefix: 'fas', iconName: 'file-pdf', icon: [384, 512, [], "f1c1", "M181.9 256.1c-5-16-4.9-46.9-2-46.9 8.4 0 7.6 36.9 2 46.9zm-1.7 47.2c-7.7 20.2-17.3 43.3-28.4 62.7 18.3-7 39-17.2 62.9-21.9-12.7-9.6-24.9-23.4-34.5-40.8zM86.1 428.1c0 .8 13.2-5.4 34.9-40.2-6.7 6.3-29.1 24.5-34.9 40.2zM248 160h136v328c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V24C0 10.7 10.7 0 24 0h200v136c0 13.2 10.8 24 24 24zm-8 171.8c-20-12.2-33.3-29-42.7-53.8 4.5-18.5 11.6-46.6 6.2-64.2-4.7-29.4-42.4-26.5-47.8-6.8-5 18.3-.4 44.1 8.1 77-11.6 27.6-28.7 64.6-40.8 85.8-.1 0-.1.1-.2.1-27.1 13.9-73.6 44.5-54.5 68 5.6 6.9 16 10 21.5 10 17.9 0 35.7-18 61.1-61.8 25.8-8.5 54.1-19.1 79-23.2 21.7 11.8 47.1 19.5 64 19.5 29.2 0 31.2-32 19.7-43.4-13.9-13.6-54.3-9.7-73.6-7.2zM377 105L279 7c-4.5-4.5-10.6-7-17-7h-6v128h128v-6.1c0-6.3-2.5-12.4-7-16.9zm-74.1 255.3c4.1-2.7-2.5-11.9-42.8-9 37.1 15.8 42.8 9 42.8 9z"] };
  2998. var faFilePowerpoint = { prefix: 'fas', iconName: 'file-powerpoint', icon: [384, 512, [], "f1c4", "M193.7 271.2c8.8 0 15.5 2.7 20.3 8.1 9.6 10.9 9.8 32.7-.2 44.1-4.9 5.6-11.9 8.5-21.1 8.5h-26.9v-60.7h27.9zM377 105L279 7c-4.5-4.5-10.6-7-17-7h-6v128h128v-6.1c0-6.3-2.5-12.4-7-16.9zm-153 31V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm53 165.2c0 90.3-88.8 77.6-111.1 77.6V436c0 6.6-5.4 12-12 12h-30.8c-6.6 0-12-5.4-12-12V236.2c0-6.6 5.4-12 12-12h81c44.5 0 72.9 32.8 72.9 77z"] };
  2999. var faFilePrescription = { prefix: 'fas', iconName: 'file-prescription', icon: [384, 512, [], "f572", "M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm68.53 179.48l11.31 11.31c6.25 6.25 6.25 16.38 0 22.63l-29.9 29.9L304 409.38c6.25 6.25 6.25 16.38 0 22.63l-11.31 11.31c-6.25 6.25-16.38 6.25-22.63 0L240 413.25l-30.06 30.06c-6.25 6.25-16.38 6.25-22.63 0L176 432c-6.25-6.25-6.25-16.38 0-22.63l30.06-30.06L146.74 320H128v48c0 8.84-7.16 16-16 16H96c-8.84 0-16-7.16-16-16V208c0-8.84 7.16-16 16-16h80c35.35 0 64 28.65 64 64 0 24.22-13.62 45.05-33.46 55.92L240 345.38l29.9-29.9c6.25-6.25 16.38-6.25 22.63 0zM176 272h-48v-32h48c8.82 0 16 7.18 16 16s-7.18 16-16 16zm208-150.1v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"] };
  3000. var faFileSignature = { prefix: 'fas', iconName: 'file-signature', icon: [576, 512, [], "f573", "M218.17 424.14c-2.95-5.92-8.09-6.52-10.17-6.52s-7.22.59-10.02 6.19l-7.67 15.34c-6.37 12.78-25.03 11.37-29.48-2.09L144 386.59l-10.61 31.88c-5.89 17.66-22.38 29.53-41 29.53H80c-8.84 0-16-7.16-16-16s7.16-16 16-16h12.39c4.83 0 9.11-3.08 10.64-7.66l18.19-54.64c3.3-9.81 12.44-16.41 22.78-16.41s19.48 6.59 22.77 16.41l13.88 41.64c19.75-16.19 54.06-9.7 66 14.16 1.89 3.78 5.49 5.95 9.36 6.26v-82.12l128-127.09V160H248c-13.2 0-24-10.8-24-24V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24v-40l-128-.11c-16.12-.31-30.58-9.28-37.83-23.75zM384 121.9c0-6.3-2.5-12.4-7-16.9L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1zm-96 225.06V416h68.99l161.68-162.78-67.88-67.88L288 346.96zm280.54-179.63l-31.87-31.87c-9.94-9.94-26.07-9.94-36.01 0l-27.25 27.25 67.88 67.88 27.25-27.25c9.95-9.94 9.95-26.07 0-36.01z"] };
  3001. var faFileUpload = { prefix: 'fas', iconName: 'file-upload', icon: [384, 512, [], "f574", "M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm65.18 216.01H224v80c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16v-80H94.82c-14.28 0-21.41-17.29-11.27-27.36l96.42-95.7c6.65-6.61 17.39-6.61 24.04 0l96.42 95.7c10.15 10.07 3.03 27.36-11.25 27.36zM377 105L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1c0-6.3-2.5-12.4-7-16.9z"] };
  3002. var faFileVideo = { prefix: 'fas', iconName: 'file-video', icon: [384, 512, [], "f1c8", "M384 121.941V128H256V0h6.059c6.365 0 12.47 2.529 16.971 7.029l97.941 97.941A24.005 24.005 0 0 1 384 121.941zM224 136V0H24C10.745 0 0 10.745 0 24v464c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24V160H248c-13.2 0-24-10.8-24-24zm96 144.016v111.963c0 21.445-25.943 31.998-40.971 16.971L224 353.941V392c0 13.255-10.745 24-24 24H88c-13.255 0-24-10.745-24-24V280c0-13.255 10.745-24 24-24h112c13.255 0 24 10.745 24 24v38.059l55.029-55.013c15.011-15.01 40.971-4.491 40.971 16.97z"] };
  3003. var faFileWord = { prefix: 'fas', iconName: 'file-word', icon: [384, 512, [], "f1c2", "M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm57.1 120H305c7.7 0 13.4 7.1 11.7 14.7l-38 168c-1.2 5.5-6.1 9.3-11.7 9.3h-38c-5.5 0-10.3-3.8-11.6-9.1-25.8-103.5-20.8-81.2-25.6-110.5h-.5c-1.1 14.3-2.4 17.4-25.6 110.5-1.3 5.3-6.1 9.1-11.6 9.1H117c-5.6 0-10.5-3.9-11.7-9.4l-37.8-168c-1.7-7.5 4-14.6 11.7-14.6h24.5c5.7 0 10.7 4 11.8 9.7 15.6 78 20.1 109.5 21 122.2 1.6-10.2 7.3-32.7 29.4-122.7 1.3-5.4 6.1-9.1 11.7-9.1h29.1c5.6 0 10.4 3.8 11.7 9.2 24 100.4 28.8 124 29.6 129.4-.2-11.2-2.6-17.8 21.6-129.2 1-5.6 5.9-9.5 11.5-9.5zM384 121.9v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"] };
  3004. var faFill = { prefix: 'fas', iconName: 'fill', icon: [512, 512, [], "f575", "M502.63 217.06L294.94 9.37C288.69 3.12 280.5 0 272.31 0s-16.38 3.12-22.62 9.37l-81.58 81.58L81.93 4.77c-6.24-6.25-16.38-6.25-22.62 0L36.69 27.38c-6.24 6.25-6.24 16.38 0 22.63l86.19 86.18-94.76 94.76c-37.49 37.49-37.49 98.26 0 135.75l117.19 117.19c18.75 18.74 43.31 28.12 67.87 28.12 24.57 0 49.13-9.37 67.88-28.12l221.57-221.57c12.49-12.5 12.49-32.76 0-45.26zm-116.22 70.97H65.93c1.36-3.84 3.57-7.98 7.43-11.83l13.15-13.15 81.61-81.61 58.61 58.6c12.49 12.49 32.75 12.49 45.24 0 12.49-12.49 12.49-32.75 0-45.24l-58.61-58.6 58.95-58.95 162.45 162.44-48.35 48.34z"] };
  3005. var faFillDrip = { prefix: 'fas', iconName: 'fill-drip', icon: [576, 512, [], "f576", "M512 320s-64 92.65-64 128c0 35.35 28.66 64 64 64s64-28.65 64-64-64-128-64-128zm-9.37-102.94L294.94 9.37C288.69 3.12 280.5 0 272.31 0s-16.38 3.12-22.62 9.37l-81.58 81.58L81.93 4.76c-6.25-6.25-16.38-6.25-22.62 0L36.69 27.38c-6.24 6.25-6.24 16.38 0 22.62l86.19 86.18-94.76 94.76c-37.49 37.48-37.49 98.26 0 135.75l117.19 117.19c18.74 18.74 43.31 28.12 67.87 28.12 24.57 0 49.13-9.37 67.87-28.12l221.57-221.57c12.5-12.5 12.5-32.75.01-45.25zm-116.22 70.97H65.93c1.36-3.84 3.57-7.98 7.43-11.83l13.15-13.15 81.61-81.61 58.6 58.6c12.49 12.49 32.75 12.49 45.24 0s12.49-32.75 0-45.24l-58.6-58.6 58.95-58.95 162.44 162.44-48.34 48.34z"] };
  3006. var faFilm = { prefix: 'fas', iconName: 'film', icon: [512, 512, [], "f008", "M488 64h-8v20c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12V64H96v20c0 6.6-5.4 12-12 12H44c-6.6 0-12-5.4-12-12V64h-8C10.7 64 0 74.7 0 88v336c0 13.3 10.7 24 24 24h8v-20c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v20h320v-20c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v20h8c13.3 0 24-10.7 24-24V88c0-13.3-10.7-24-24-24zM96 372c0 6.6-5.4 12-12 12H44c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-96c0 6.6-5.4 12-12 12H44c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-96c0 6.6-5.4 12-12 12H44c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm272 208c0 6.6-5.4 12-12 12H156c-6.6 0-12-5.4-12-12v-96c0-6.6 5.4-12 12-12h200c6.6 0 12 5.4 12 12v96zm0-168c0 6.6-5.4 12-12 12H156c-6.6 0-12-5.4-12-12v-96c0-6.6 5.4-12 12-12h200c6.6 0 12 5.4 12 12v96zm112 152c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-96c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-96c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40z"] };
  3007. var faFilter = { prefix: 'fas', iconName: 'filter', icon: [512, 512, [], "f0b0", "M487.976 0H24.028C2.71 0-8.047 25.866 7.058 40.971L192 225.941V432c0 7.831 3.821 15.17 10.237 19.662l80 55.98C298.02 518.69 320 507.493 320 487.98V225.941l184.947-184.97C520.021 25.896 509.338 0 487.976 0z"] };
  3008. var faFingerprint = { prefix: 'fas', iconName: 'fingerprint', icon: [512, 512, [], "f577", "M256.12 245.96c-13.25 0-24 10.74-24 24 1.14 72.25-8.14 141.9-27.7 211.55-2.73 9.72 2.15 30.49 23.12 30.49 10.48 0 20.11-6.92 23.09-17.52 13.53-47.91 31.04-125.41 29.48-224.52.01-13.25-10.73-24-23.99-24zm-.86-81.73C194 164.16 151.25 211.3 152.1 265.32c.75 47.94-3.75 95.91-13.37 142.55-2.69 12.98 5.67 25.69 18.64 28.36 13.05 2.67 25.67-5.66 28.36-18.64 10.34-50.09 15.17-101.58 14.37-153.02-.41-25.95 19.92-52.49 54.45-52.34 31.31.47 57.15 25.34 57.62 55.47.77 48.05-2.81 96.33-10.61 143.55-2.17 13.06 6.69 25.42 19.76 27.58 19.97 3.33 26.81-15.1 27.58-19.77 8.28-50.03 12.06-101.21 11.27-152.11-.88-55.8-47.94-101.88-104.91-102.72zm-110.69-19.78c-10.3-8.34-25.37-6.8-33.76 3.48-25.62 31.5-39.39 71.28-38.75 112 .59 37.58-2.47 75.27-9.11 112.05-2.34 13.05 6.31 25.53 19.36 27.89 20.11 3.5 27.07-14.81 27.89-19.36 7.19-39.84 10.5-80.66 9.86-121.33-.47-29.88 9.2-57.88 28-80.97 8.35-10.28 6.79-25.39-3.49-33.76zm109.47-62.33c-15.41-.41-30.87 1.44-45.78 4.97-12.89 3.06-20.87 15.98-17.83 28.89 3.06 12.89 16 20.83 28.89 17.83 11.05-2.61 22.47-3.77 34-3.69 75.43 1.13 137.73 61.5 138.88 134.58.59 37.88-1.28 76.11-5.58 113.63-1.5 13.17 7.95 25.08 21.11 26.58 16.72 1.95 25.51-11.88 26.58-21.11a929.06 929.06 0 0 0 5.89-119.85c-1.56-98.75-85.07-180.33-186.16-181.83zm252.07 121.45c-2.86-12.92-15.51-21.2-28.61-18.27-12.94 2.86-21.12 15.66-18.26 28.61 4.71 21.41 4.91 37.41 4.7 61.6-.11 13.27 10.55 24.09 23.8 24.2h.2c13.17 0 23.89-10.61 24-23.8.18-22.18.4-44.11-5.83-72.34zm-40.12-90.72C417.29 43.46 337.6 1.29 252.81.02 183.02-.82 118.47 24.91 70.46 72.94 24.09 119.37-.9 181.04.14 246.65l-.12 21.47c-.39 13.25 10.03 24.31 23.28 24.69.23.02.48.02.72.02 12.92 0 23.59-10.3 23.97-23.3l.16-23.64c-.83-52.5 19.16-101.86 56.28-139 38.76-38.8 91.34-59.67 147.68-58.86 69.45 1.03 134.73 35.56 174.62 92.39 7.61 10.86 22.56 13.45 33.42 5.86 10.84-7.62 13.46-22.59 5.84-33.43z"] };
  3009. var faFire = { prefix: 'fas', iconName: 'fire', icon: [384, 512, [], "f06d", "M216 23.858c0-23.802-30.653-32.765-44.149-13.038C48 191.851 224 200 224 288c0 35.629-29.114 64.458-64.85 63.994C123.98 351.538 96 322.22 96 287.046v-85.51c0-21.703-26.471-32.225-41.432-16.504C27.801 213.158 0 261.332 0 320c0 105.869 86.131 192 192 192s192-86.131 192-192c0-170.29-168-193.003-168-296.142z"] };
  3010. var faFireExtinguisher = { prefix: 'fas', iconName: 'fire-extinguisher', icon: [448, 512, [], "f134", "M434.027 26.329l-168 28C254.693 56.218 256 67.8 256 72h-58.332C208.353 36.108 181.446 0 144 0c-39.435 0-66.368 39.676-52.228 76.203-52.039 13.051-75.381 54.213-90.049 90.884-4.923 12.307 1.063 26.274 13.37 31.197 12.317 4.926 26.279-1.075 31.196-13.37C75.058 112.99 106.964 120 168 120v27.076c-41.543 10.862-72 49.235-72 94.129V488c0 13.255 10.745 24 24 24h144c13.255 0 24-10.745 24-24V240c0-44.731-30.596-82.312-72-92.97V120h40c0 2.974-1.703 15.716 10.027 17.671l168 28C441.342 166.89 448 161.25 448 153.834V38.166c0-7.416-6.658-13.056-13.973-11.837zM144 72c-8.822 0-16-7.178-16-16s7.178-16 16-16 16 7.178 16 16-7.178 16-16 16z"] };
  3011. var faFirstAid = { prefix: 'fas', iconName: 'first-aid', icon: [576, 512, [], "f479", "M0 80v352c0 26.5 21.5 48 48 48h48V32H48C21.5 32 0 53.5 0 80zm128 400h320V32H128v448zm64-248c0-4.4 3.6-8 8-8h56v-56c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v56h56c4.4 0 8 3.6 8 8v48c0 4.4-3.6 8-8 8h-56v56c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-56h-56c-4.4 0-8-3.6-8-8v-48zM528 32h-48v448h48c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48z"] };
  3012. var faFish = { prefix: 'fas', iconName: 'fish', icon: [576, 512, [], "f578", "M327.1 96c-89.97 0-168.54 54.77-212.27 101.63L27.5 131.58c-12.13-9.18-30.24.6-27.14 14.66L24.54 256 .35 365.77c-3.1 14.06 15.01 23.83 27.14 14.66l87.33-66.05C158.55 361.23 237.13 416 327.1 416 464.56 416 576 288 576 256S464.56 96 327.1 96zm87.43 184c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24 13.26 0 24 10.74 24 24 0 13.25-10.75 24-24 24z"] };
  3013. var faFistRaised = { prefix: 'fas', iconName: 'fist-raised', icon: [384, 512, [], "f6de", "M255.98 160V16c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v146.93c5.02-1.78 10.34-2.93 15.97-2.93h48.03zm128 95.99c-.01-35.34-28.66-63.99-63.99-63.99H207.85c-8.78 0-15.9 7.07-15.9 15.85v.56c0 26.27 21.3 47.59 47.57 47.59h35.26c9.68 0 13.2 3.58 13.2 8v16.2c0 4.29-3.59 7.78-7.88 8-44.52 2.28-64.16 24.71-96.05 72.55l-6.31 9.47a7.994 7.994 0 0 1-11.09 2.22l-13.31-8.88a7.994 7.994 0 0 1-2.22-11.09l6.31-9.47c15.73-23.6 30.2-43.26 47.31-58.08-17.27-5.51-31.4-18.12-38.87-34.45-6.59 3.41-13.96 5.52-21.87 5.52h-32c-12.34 0-23.49-4.81-32-12.48C71.48 251.19 60.33 256 48 256H16c-5.64 0-10.97-1.15-16-2.95v77.93c0 33.95 13.48 66.5 37.49 90.51L63.99 448v64h255.98v-63.96l35.91-35.92A96.035 96.035 0 0 0 384 344.21l-.02-88.22zm-32.01-90.09V48c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v112h32c11.28 0 21.94 2.31 32 5.9zM16 224h32c8.84 0 16-7.16 16-16V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v128c0 8.84 7.16 16 16 16zm95.99 0h32c8.84 0 16-7.16 16-16V48c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v160c0 8.84 7.16 16 16 16z"] };
  3014. var faFlag = { prefix: 'fas', iconName: 'flag', icon: [512, 512, [], "f024", "M349.565 98.783C295.978 98.783 251.721 64 184.348 64c-24.955 0-47.309 4.384-68.045 12.013a55.947 55.947 0 0 0 3.586-23.562C118.117 24.015 94.806 1.206 66.338.048 34.345-1.254 8 24.296 8 56c0 19.026 9.497 35.825 24 45.945V488c0 13.255 10.745 24 24 24h16c13.255 0 24-10.745 24-24v-94.4c28.311-12.064 63.582-22.122 114.435-22.122 53.588 0 97.844 34.783 165.217 34.783 48.169 0 86.667-16.294 122.505-40.858C506.84 359.452 512 349.571 512 339.045v-243.1c0-23.393-24.269-38.87-45.485-29.016-34.338 15.948-76.454 31.854-116.95 31.854z"] };
  3015. var faFlagCheckered = { prefix: 'fas', iconName: 'flag-checkered', icon: [512, 512, [], "f11e", "M466.515 66.928C487.731 57.074 512 72.551 512 95.944v243.1c0 10.526-5.161 20.407-13.843 26.358-35.837 24.564-74.335 40.858-122.505 40.858-67.373 0-111.63-34.783-165.217-34.783-50.853 0-86.124 10.058-114.435 22.122V488c0 13.255-10.745 24-24 24H56c-13.255 0-24-10.745-24-24V101.945C17.497 91.825 8 75.026 8 56 8 24.296 34.345-1.254 66.338.048c28.468 1.158 51.779 23.968 53.551 52.404.52 8.342-.81 16.31-3.586 23.562C137.039 68.384 159.393 64 184.348 64c67.373 0 111.63 34.783 165.217 34.783 40.496 0 82.612-15.906 116.95-31.855zM96 134.63v70.49c29-10.67 51.18-17.83 73.6-20.91v-71.57c-23.5 2.17-40.44 9.79-73.6 21.99zm220.8 9.19c-26.417-4.672-49.886-13.979-73.6-21.34v67.42c24.175 6.706 47.566 16.444 73.6 22.31v-68.39zm-147.2 40.39v70.04c32.796-2.978 53.91-.635 73.6 3.8V189.9c-25.247-7.035-46.581-9.423-73.6-5.69zm73.6 142.23c26.338 4.652 49.732 13.927 73.6 21.34v-67.41c-24.277-6.746-47.54-16.45-73.6-22.32v68.39zM96 342.1c23.62-8.39 47.79-13.84 73.6-16.56v-71.29c-26.11 2.35-47.36 8.04-73.6 17.36v70.49zm368-221.6c-21.3 8.85-46.59 17.64-73.6 22.47v71.91c27.31-4.36 50.03-14.1 73.6-23.89V120.5zm0 209.96v-70.49c-22.19 14.2-48.78 22.61-73.6 26.02v71.58c25.07-2.38 48.49-11.04 73.6-27.11zM316.8 212.21v68.16c25.664 7.134 46.616 9.342 73.6 5.62v-71.11c-25.999 4.187-49.943 2.676-73.6-2.67z"] };
  3016. var faFlask = { prefix: 'fas', iconName: 'flask', icon: [448, 512, [], "f0c3", "M437.2 403.5L320 215V64h8c13.3 0 24-10.7 24-24V24c0-13.3-10.7-24-24-24H120c-13.3 0-24 10.7-24 24v16c0 13.3 10.7 24 24 24h8v151L10.8 403.5C-18.5 450.6 15.3 512 70.9 512h306.2c55.7 0 89.4-61.5 60.1-108.5zM137.9 320l48.2-77.6c3.7-5.2 5.8-11.6 5.8-18.4V64h64v160c0 6.9 2.2 13.2 5.8 18.4l48.2 77.6h-172z"] };
  3017. var faFlushed = { prefix: 'fas', iconName: 'flushed', icon: [496, 512, [], "f579", "M344 200c-13.3 0-24 10.7-24 24s10.7 24 24 24 24-10.7 24-24-10.7-24-24-24zm-192 0c-13.3 0-24 10.7-24 24s10.7 24 24 24 24-10.7 24-24-10.7-24-24-24zM248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM80 224c0-39.8 32.2-72 72-72s72 32.2 72 72-32.2 72-72 72-72-32.2-72-72zm232 176H184c-21.2 0-21.2-32 0-32h128c21.2 0 21.2 32 0 32zm32-104c-39.8 0-72-32.2-72-72s32.2-72 72-72 72 32.2 72 72-32.2 72-72 72z"] };
  3018. var faFolder = { prefix: 'fas', iconName: 'folder', icon: [512, 512, [], "f07b", "M464 128H272l-64-64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V176c0-26.51-21.49-48-48-48z"] };
  3019. var faFolderMinus = { prefix: 'fas', iconName: 'folder-minus', icon: [512, 512, [], "f65d", "M464 128H272l-64-64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V176c0-26.51-21.49-48-48-48zm-96 168c0 8.84-7.16 16-16 16H160c-8.84 0-16-7.16-16-16v-16c0-8.84 7.16-16 16-16h192c8.84 0 16 7.16 16 16v16z"] };
  3020. var faFolderOpen = { prefix: 'fas', iconName: 'folder-open', icon: [576, 512, [], "f07c", "M572.694 292.093L500.27 416.248A63.997 63.997 0 0 1 444.989 448H45.025c-18.523 0-30.064-20.093-20.731-36.093l72.424-124.155A64 64 0 0 1 152 256h399.964c18.523 0 30.064 20.093 20.73 36.093zM152 224h328v-48c0-26.51-21.49-48-48-48H272l-64-64H48C21.49 64 0 85.49 0 112v278.046l69.077-118.418C86.214 242.25 117.989 224 152 224z"] };
  3021. var faFolderPlus = { prefix: 'fas', iconName: 'folder-plus', icon: [512, 512, [], "f65e", "M464 128H272l-64-64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V176c0-26.51-21.49-48-48-48zm-96 168c0 8.84-7.16 16-16 16h-72v72c0 8.84-7.16 16-16 16h-16c-8.84 0-16-7.16-16-16v-72h-72c-8.84 0-16-7.16-16-16v-16c0-8.84 7.16-16 16-16h72v-72c0-8.84 7.16-16 16-16h16c8.84 0 16 7.16 16 16v72h72c8.84 0 16 7.16 16 16v16z"] };
  3022. var faFont = { prefix: 'fas', iconName: 'font', icon: [448, 512, [], "f031", "M152 416h-24.013l26.586-80.782H292.8L319.386 416H296c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h136c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16h-26.739L275.495 42.746A16 16 0 0 0 260.382 32h-72.766a16 16 0 0 0-15.113 10.746L42.739 416H16c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h136c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16zm64.353-271.778c4.348-15.216 6.61-28.156 7.586-34.644.839 6.521 2.939 19.476 7.727 34.706l41.335 124.006h-98.619l41.971-124.068z"] };
  3023. var faFontAwesomeLogoFull = { prefix: 'fas', iconName: 'font-awesome-logo-full', icon: [3992, 512, ["Font Awesome"], "f4e6", "M454.6 0H57.4C25.9 0 0 25.9 0 57.4v397.3C0 486.1 25.9 512 57.4 512h397.3c31.4 0 57.4-25.9 57.4-57.4V57.4C512 25.9 486.1 0 454.6 0zm-58.9 324.9c0 4.8-4.1 6.9-8.9 8.9-19.2 8.1-39.7 15.7-61.5 15.7-40.5 0-68.7-44.8-163.2 2.5v51.8c0 30.3-45.7 30.2-45.7 0v-250c-9-7-15-17.9-15-30.3 0-21 17.1-38.2 38.2-38.2 21 0 38.2 17.1 38.2 38.2 0 12.2-5.8 23.2-14.9 30.2v21c37.1-12 65.5-34.4 146.1-3.4 26.6 11.4 68.7-15.7 76.5-15.7 5.5 0 10.3 4.1 10.3 8.9v160.4zm432.9-174.2h-137v70.1H825c39.8 0 40.4 62.2 0 62.2H691.6v105.6c0 45.5-70.7 46.4-70.7 0V128.3c0-22 18-39.8 39.8-39.8h167.8c39.6 0 40.5 62.2.1 62.2zm191.1 23.4c-169.3 0-169.1 252.4 0 252.4 169.9 0 169.9-252.4 0-252.4zm0 196.1c-81.6 0-82.1-139.8 0-139.8 82.5 0 82.4 139.8 0 139.8zm372.4 53.4c-17.5 0-31.4-13.9-31.4-31.4v-117c0-62.4-72.6-52.5-99.1-16.4v133.4c0 41.5-63.3 41.8-63.3 0V208c0-40 63.1-41.6 63.1 0v3.4c43.3-51.6 162.4-60.4 162.4 39.3v141.5c.3 30.4-31.5 31.4-31.7 31.4zm179.7 2.9c-44.3 0-68.3-22.9-68.3-65.8V235.2H1488c-35.6 0-36.7-55.3 0-55.3h15.5v-37.3c0-41.3 63.8-42.1 63.8 0v37.5h24.9c35.4 0 35.7 55.3 0 55.3h-24.9v108.5c0 29.6 26.1 26.3 27.4 26.3 31.4 0 52.6 56.3-22.9 56.3zM1992 123c-19.5-50.2-95.5-50-114.5 0-107.3 275.7-99.5 252.7-99.5 262.8 0 42.8 58.3 51.2 72.1 14.4l13.5-35.9H2006l13 35.9c14.2 37.7 72.1 27.2 72.1-14.4 0-10.1 5.3 6.8-99.1-262.8zm-108.9 179.1l51.7-142.9 51.8 142.9h-103.5zm591.3-85.6l-53.7 176.3c-12.4 41.2-72 41-84 0l-42.3-135.9-42.3 135.9c-12.4 40.9-72 41.2-84.5 0l-54.2-176.3c-12.5-39.4 49.8-56.1 60.2-16.9L2213 342l45.3-139.5c10.9-32.7 59.6-34.7 71.2 0l45.3 139.5 39.3-142.4c10.3-38.3 72.6-23.8 60.3 16.9zm275.4 75.1c0-42.4-33.9-117.5-119.5-117.5-73.2 0-124.4 56.3-124.4 126 0 77.2 55.3 126.4 128.5 126.4 31.7 0 93-11.5 93-39.8 0-18.3-21.1-31.5-39.3-22.4-49.4 26.2-109 8.4-115.9-43.8h148.3c16.3 0 29.3-13.4 29.3-28.9zM2571 277.7c9.5-73.4 113.9-68.6 118.6 0H2571zm316.7 148.8c-31.4 0-81.6-10.5-96.6-31.9-12.4-17 2.5-39.8 21.8-39.8 16.3 0 36.8 22.9 77.7 22.9 27.4 0 40.4-11 40.4-25.8 0-39.8-142.9-7.4-142.9-102 0-40.4 35.3-75.7 98.6-75.7 31.4 0 74.1 9.9 87.6 29.4 10.8 14.8-1.4 36.2-20.9 36.2-15.1 0-26.7-17.3-66.2-17.3-22.9 0-37.8 10.5-37.8 23.8 0 35.9 142.4 6 142.4 103.1-.1 43.7-37.4 77.1-104.1 77.1zm266.8-252.4c-169.3 0-169.1 252.4 0 252.4 170.1 0 169.6-252.4 0-252.4zm0 196.1c-81.8 0-82-139.8 0-139.8 82.5 0 82.4 139.8 0 139.8zm476.9 22V268.7c0-53.8-61.4-45.8-85.7-10.5v134c0 41.3-63.8 42.1-63.8 0V268.7c0-52.1-59.5-47.4-85.7-10.1v133.6c0 41.5-63.3 41.8-63.3 0V208c0-40 63.1-41.6 63.1 0v3.4c9.9-14.4 41.8-37.3 78.6-37.3 35.3 0 57.7 16.4 66.7 43.8 13.9-21.8 45.8-43.8 82.6-43.8 44.3 0 70.7 23.4 70.7 72.7v145.3c.5 17.3-13.5 31.4-31.9 31.4 3.5.1-31.3 1.1-31.3-31.3zM3992 291.6c0-42.4-32.4-117.5-117.9-117.5-73.2 0-127.5 56.3-127.5 126 0 77.2 58.3 126.4 131.6 126.4 31.7 0 91.5-11.5 91.5-39.8 0-18.3-21.1-31.5-39.3-22.4-49.4 26.2-110.5 8.4-117.5-43.8h149.8c16.3 0 29.1-13.4 29.3-28.9zm-180.5-13.9c9.7-74.4 115.9-68.3 120.1 0h-120.1z"] };
  3024. var faFootballBall = { prefix: 'fas', iconName: 'football-ball', icon: [496, 512, [], "f44e", "M481.5 60.3c-4.8-18.2-19.1-32.5-37.3-37.4C420.3 16.5 383 8.9 339.4 8L496 164.8c-.8-43.5-8.2-80.6-14.5-104.5zm-467 391.4c4.8 18.2 19.1 32.5 37.3 37.4 23.9 6.4 61.2 14 104.8 14.9L0 347.2c.8 43.5 8.2 80.6 14.5 104.5zM4.2 283.4L220.4 500c132.5-19.4 248.8-118.7 271.5-271.4L275.6 12C143.1 31.4 26.8 130.7 4.2 283.4zm317.3-123.6c3.1-3.1 8.2-3.1 11.3 0l11.3 11.3c3.1 3.1 3.1 8.2 0 11.3l-28.3 28.3 28.3 28.3c3.1 3.1 3.1 8.2 0 11.3l-11.3 11.3c-3.1 3.1-8.2 3.1-11.3 0l-28.3-28.3-22.6 22.7 28.3 28.3c3.1 3.1 3.1 8.2 0 11.3l-11.3 11.3c-3.1 3.1-8.2 3.1-11.3 0L248 278.6l-22.6 22.6 28.3 28.3c3.1 3.1 3.1 8.2 0 11.3l-11.3 11.3c-3.1 3.1-8.2 3.1-11.3 0l-28.3-28.3-28.3 28.3c-3.1 3.1-8.2 3.1-11.3 0l-11.3-11.3c-3.1-3.1-3.1-8.2 0-11.3l28.3-28.3-28.3-28.2c-3.1-3.1-3.1-8.2 0-11.3l11.3-11.3c3.1-3.1 8.2-3.1 11.3 0l28.3 28.3 22.6-22.6-28.3-28.3c-3.1-3.1-3.1-8.2 0-11.3l11.3-11.3c3.1-3.1 8.2-3.1 11.3 0l28.3 28.3 22.6-22.6-28.3-28.3c-3.1-3.1-3.1-8.2 0-11.3l11.3-11.3c3.1-3.1 8.2-3.1 11.3 0l28.3 28.3 28.3-28.5z"] };
  3025. var faForward = { prefix: 'fas', iconName: 'forward', icon: [512, 512, [], "f04e", "M500.5 231.4l-192-160C287.9 54.3 256 68.6 256 96v320c0 27.4 31.9 41.8 52.5 24.6l192-160c15.3-12.8 15.3-36.4 0-49.2zm-256 0l-192-160C31.9 54.3 0 68.6 0 96v320c0 27.4 31.9 41.8 52.5 24.6l192-160c15.3-12.8 15.3-36.4 0-49.2z"] };
  3026. var faFrog = { prefix: 'fas', iconName: 'frog', icon: [576, 512, [], "f52e", "M446.53 97.43C439.67 60.23 407.19 32 368 32c-39.23 0-71.72 28.29-78.54 65.54C126.75 112.96-.5 250.12 0 416.98.11 451.9 29.08 480 64 480h304c8.84 0 16-7.16 16-16 0-17.67-14.33-32-32-32h-79.49l35.8-48.33c24.14-36.23 10.35-88.28-33.71-106.6-23.89-9.93-51.55-4.65-72.24 10.88l-32.76 24.59c-7.06 5.31-17.09 3.91-22.41-3.19-5.3-7.08-3.88-17.11 3.19-22.41l34.78-26.09c36.84-27.66 88.28-27.62 125.13 0 10.87 8.15 45.87 39.06 40.8 93.21L469.62 480H560c8.84 0 16-7.16 16-16 0-17.67-14.33-32-32-32h-53.63l-98.52-104.68 154.44-86.65A58.16 58.16 0 0 0 576 189.94c0-21.4-11.72-40.95-30.48-51.23-40.56-22.22-98.99-41.28-98.99-41.28zM368 136c-13.26 0-24-10.75-24-24 0-13.26 10.74-24 24-24 13.25 0 24 10.74 24 24 0 13.25-10.75 24-24 24z"] };
  3027. var faFrown = { prefix: 'fas', iconName: 'frown', icon: [496, 512, [], "f119", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm80 168c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm-160 0c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm170.2 218.2C315.8 367.4 282.9 352 248 352s-67.8 15.4-90.2 42.2c-13.5 16.3-38.1-4.2-24.6-20.5C161.7 339.6 203.6 320 248 320s86.3 19.6 114.7 53.8c13.6 16.2-11 36.7-24.5 20.4z"] };
  3028. var faFrownOpen = { prefix: 'fas', iconName: 'frown-open', icon: [496, 512, [], "f57a", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM136 208c0-17.7 14.3-32 32-32s32 14.3 32 32-14.3 32-32 32-32-14.3-32-32zm187.3 183.3c-31.2-9.6-59.4-15.3-75.3-15.3s-44.1 5.7-75.3 15.3c-11.5 3.5-22.5-6.3-20.5-18.1 7-40 60.1-61.2 95.8-61.2s88.8 21.3 95.8 61.2c2 11.9-9.1 21.6-20.5 18.1zM328 240c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"] };
  3029. var faFunnelDollar = { prefix: 'fas', iconName: 'funnel-dollar', icon: [640, 512, [], "f662", "M433.46 165.94l101.2-111.87C554.61 34.12 540.48 0 512.26 0H31.74C3.52 0-10.61 34.12 9.34 54.07L192 256v155.92c0 12.59 5.93 24.44 16 32l79.99 60c20.86 15.64 48.47 6.97 59.22-13.57C310.8 455.38 288 406.35 288 352c0-89.79 62.05-165.17 145.46-186.06zM480 192c-88.37 0-160 71.63-160 160s71.63 160 160 160 160-71.63 160-160-71.63-160-160-160zm16 239.88V448c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-16.29c-11.29-.58-22.27-4.52-31.37-11.35-3.9-2.93-4.1-8.77-.57-12.14l11.75-11.21c2.77-2.64 6.89-2.76 10.13-.73 3.87 2.42 8.26 3.72 12.82 3.72h28.11c6.5 0 11.8-5.92 11.8-13.19 0-5.95-3.61-11.19-8.77-12.73l-45-13.5c-18.59-5.58-31.58-23.42-31.58-43.39 0-24.52 19.05-44.44 42.67-45.07V256c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v16.29c11.29.58 22.27 4.51 31.37 11.35 3.9 2.93 4.1 8.77.57 12.14l-11.75 11.21c-2.77 2.64-6.89 2.76-10.13.73-3.87-2.43-8.26-3.72-12.82-3.72h-28.11c-6.5 0-11.8 5.92-11.8 13.19 0 5.95 3.61 11.19 8.77 12.73l45 13.5c18.59 5.58 31.58 23.42 31.58 43.39 0 24.53-19.04 44.44-42.67 45.07z"] };
  3030. var faFutbol = { prefix: 'fas', iconName: 'futbol', icon: [512, 512, [], "f1e3", "M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zm-48 0l-.003-.282-26.064 22.741-62.679-58.5 16.454-84.355 34.303 3.072c-24.889-34.216-60.004-60.089-100.709-73.141l13.651 31.939L256 139l-74.953-41.525 13.651-31.939c-40.631 13.028-75.78 38.87-100.709 73.141l34.565-3.073 16.192 84.355-62.678 58.5-26.064-22.741-.003.282c0 43.015 13.497 83.952 38.472 117.991l7.704-33.897 85.138 10.447 36.301 77.826-29.902 17.786c40.202 13.122 84.29 13.148 124.572 0l-29.902-17.786 36.301-77.826 85.138-10.447 7.704 33.897C442.503 339.952 456 299.015 456 256zm-248.102 69.571l-29.894-91.312L256 177.732l77.996 56.527-29.622 91.312h-96.476z"] };
  3031. var faGamepad = { prefix: 'fas', iconName: 'gamepad', icon: [640, 512, [], "f11b", "M480 96H160C71.6 96 0 167.6 0 256s71.6 160 160 160c44.8 0 85.2-18.4 114.2-48h91.5c29 29.6 69.5 48 114.2 48 88.4 0 160-71.6 160-160S568.4 96 480 96zM256 276c0 6.6-5.4 12-12 12h-52v52c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-52H76c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h52v-52c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h52c6.6 0 12 5.4 12 12v40zm184 68c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm80-80c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48z"] };
  3032. var faGasPump = { prefix: 'fas', iconName: 'gas-pump', icon: [512, 512, [], "f52f", "M336 448H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h320c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm157.2-340.7l-81-81c-6.2-6.2-16.4-6.2-22.6 0l-11.3 11.3c-6.2 6.2-6.2 16.4 0 22.6L416 97.9V160c0 28.1 20.9 51.3 48 55.2V376c0 13.2-10.8 24-24 24s-24-10.8-24-24v-32c0-48.6-39.4-88-88-88h-8V64c0-35.3-28.7-64-64-64H96C60.7 0 32 28.7 32 64v352h288V304h8c22.1 0 40 17.9 40 40v27.8c0 37.7 27 72 64.5 75.9 43 4.3 79.5-29.5 79.5-71.7V152.6c0-17-6.8-33.3-18.8-45.3zM256 192H96V64h160v128z"] };
  3033. var faGavel = { prefix: 'fas', iconName: 'gavel', icon: [512, 512, [], "f0e3", "M504.971 199.362l-22.627-22.627c-9.373-9.373-24.569-9.373-33.941 0l-5.657 5.657L329.608 69.255l5.657-5.657c9.373-9.373 9.373-24.569 0-33.941L312.638 7.029c-9.373-9.373-24.569-9.373-33.941 0L154.246 131.48c-9.373 9.373-9.373 24.569 0 33.941l22.627 22.627c9.373 9.373 24.569 9.373 33.941 0l5.657-5.657 39.598 39.598-81.04 81.04-5.657-5.657c-12.497-12.497-32.758-12.497-45.255 0L9.373 412.118c-12.497 12.497-12.497 32.758 0 45.255l45.255 45.255c12.497 12.497 32.758 12.497 45.255 0l114.745-114.745c12.497-12.497 12.497-32.758 0-45.255l-5.657-5.657 81.04-81.04 39.598 39.598-5.657 5.657c-9.373 9.373-9.373 24.569 0 33.941l22.627 22.627c9.373 9.373 24.569 9.373 33.941 0l124.451-124.451c9.372-9.372 9.372-24.568 0-33.941z"] };
  3034. var faGem = { prefix: 'fas', iconName: 'gem', icon: [576, 512, [], "f3a5", "M485.5 0L576 160H474.9L405.7 0h79.8zm-128 0l69.2 160H149.3L218.5 0h139zm-267 0h79.8l-69.2 160H0L90.5 0zM0 192h100.7l123 251.7c1.5 3.1-2.7 5.9-5 3.3L0 192zm148.2 0h279.6l-137 318.2c-1 2.4-4.5 2.4-5.5 0L148.2 192zm204.1 251.7l123-251.7H576L357.3 446.9c-2.3 2.7-6.5-.1-5-3.2z"] };
  3035. var faGenderless = { prefix: 'fas', iconName: 'genderless', icon: [288, 512, [], "f22d", "M144 176c44.1 0 80 35.9 80 80s-35.9 80-80 80-80-35.9-80-80 35.9-80 80-80m0-64C64.5 112 0 176.5 0 256s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144z"] };
  3036. var faGhost = { prefix: 'fas', iconName: 'ghost', icon: [384, 512, [], "f6e2", "M186.1.09C81.01 3.24 0 94.92 0 200.05v263.92c0 14.26 17.23 21.39 27.31 11.31l24.92-18.53c6.66-4.95 16-3.99 21.51 2.21l42.95 48.35c6.25 6.25 16.38 6.25 22.63 0l40.72-45.85c6.37-7.17 17.56-7.17 23.92 0l40.72 45.85c6.25 6.25 16.38 6.25 22.63 0l42.95-48.35c5.51-6.2 14.85-7.17 21.51-2.21l24.92 18.53c10.08 10.08 27.31 2.94 27.31-11.31V192C384 84 294.83-3.17 186.1.09zM128 224c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm128 0c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"] };
  3037. var faGift = { prefix: 'fas', iconName: 'gift', icon: [512, 512, [], "f06b", "M32 448c0 17.7 14.3 32 32 32h160V320H32v128zm448-288h-42.1c6.2-12.1 10.1-25.5 10.1-40 0-48.5-39.5-88-88-88-41.6 0-68.5 21.3-103 68.3-34.5-47-61.4-68.3-103-68.3-48.5 0-88 39.5-88 88 0 14.5 3.8 27.9 10.1 40H32c-17.7 0-32 14.3-32 32v80c0 8.8 7.2 16 16 16h480c8.8 0 16-7.2 16-16v-80c0-17.7-14.3-32-32-32zm-326.1 0c-22.1 0-40-17.9-40-40s17.9-40 40-40c19.9 0 34.6 3.3 86.1 80h-86.1zm206.1 0h-86.1c51.4-76.5 65.7-80 86.1-80 22.1 0 40 17.9 40 40s-17.9 40-40 40zm-72 320h160c17.7 0 32-14.3 32-32V320H288v160z"] };
  3038. var faGlassMartini = { prefix: 'fas', iconName: 'glass-martini', icon: [512, 512, [], "f000", "M502.05 57.6C523.3 36.34 508.25 0 478.2 0H33.8C3.75 0-11.3 36.34 9.95 57.6L224 271.64V464h-56c-22.09 0-40 17.91-40 40 0 4.42 3.58 8 8 8h240c4.42 0 8-3.58 8-8 0-22.09-17.91-40-40-40h-56V271.64L502.05 57.6z"] };
  3039. var faGlassMartiniAlt = { prefix: 'fas', iconName: 'glass-martini-alt', icon: [512, 512, [], "f57b", "M502.05 57.6C523.3 36.34 508.25 0 478.2 0H33.8C3.75 0-11.3 36.34 9.95 57.6L224 271.64V464h-56c-22.09 0-40 17.91-40 40 0 4.42 3.58 8 8 8h240c4.42 0 8-3.58 8-8 0-22.09-17.91-40-40-40h-56V271.64L502.05 57.6zM443.77 48l-48 48H116.24l-48-48h375.53z"] };
  3040. var faGlasses = { prefix: 'fas', iconName: 'glasses', icon: [576, 512, [], "f530", "M574.1 280.37L528.75 98.66c-5.91-23.7-21.59-44.05-43-55.81-21.44-11.73-46.97-14.11-70.19-6.33l-15.25 5.08c-8.39 2.79-12.92 11.86-10.12 20.24l5.06 15.18c2.79 8.38 11.85 12.91 20.23 10.12l13.18-4.39c10.87-3.62 23-3.57 33.16 1.73 10.29 5.37 17.57 14.56 20.37 25.82l38.46 153.82c-22.19-6.81-49.79-12.46-81.2-12.46-34.77 0-73.98 7.02-114.85 26.74h-73.18c-40.87-19.74-80.08-26.75-114.86-26.75-31.42 0-59.02 5.65-81.21 12.46l38.46-153.83c2.79-11.25 10.09-20.45 20.38-25.81 10.16-5.3 22.28-5.35 33.15-1.73l13.17 4.39c8.38 2.79 17.44-1.74 20.23-10.12l5.06-15.18c2.8-8.38-1.73-17.45-10.12-20.24l-15.25-5.08c-23.22-7.78-48.75-5.41-70.19 6.33-21.41 11.77-37.09 32.11-43 55.8L1.9 280.37A64.218 64.218 0 0 0 0 295.86v70.25C0 429.01 51.58 480 115.2 480h37.12c60.28 0 110.37-45.94 114.88-105.37l2.93-38.63h35.75l2.93 38.63C313.31 434.06 363.4 480 423.68 480h37.12c63.62 0 115.2-50.99 115.2-113.88v-70.25c0-5.23-.64-10.43-1.9-15.5zm-370.72 89.42c-1.97 25.91-24.4 46.21-51.06 46.21H115.2C86.97 416 64 393.62 64 366.11v-37.54c18.12-6.49 43.42-12.92 72.58-12.92 23.86 0 47.26 4.33 69.93 12.92l-3.13 41.22zM512 366.12c0 27.51-22.97 49.88-51.2 49.88h-37.12c-26.67 0-49.1-20.3-51.06-46.21l-3.13-41.22c22.67-8.59 46.08-12.92 69.95-12.92 29.12 0 54.43 6.44 72.55 12.93v37.54z"] };
  3041. var faGlobe = { prefix: 'fas', iconName: 'globe', icon: [496, 512, [], "f0ac", "M336.5 160C322 70.7 287.8 8 248 8s-74 62.7-88.5 152h177zM152 256c0 22.2 1.2 43.5 3.3 64h185.3c2.1-20.5 3.3-41.8 3.3-64s-1.2-43.5-3.3-64H155.3c-2.1 20.5-3.3 41.8-3.3 64zm324.7-96c-28.6-67.9-86.5-120.4-158-141.6 24.4 33.8 41.2 84.7 50 141.6h108zM177.2 18.4C105.8 39.6 47.8 92.1 19.3 160h108c8.7-56.9 25.5-107.8 49.9-141.6zM487.4 192H372.7c2.1 21 3.3 42.5 3.3 64s-1.2 43-3.3 64h114.6c5.5-20.5 8.6-41.8 8.6-64s-3.1-43.5-8.5-64zM120 256c0-21.5 1.2-43 3.3-64H8.6C3.2 212.5 0 233.8 0 256s3.2 43.5 8.6 64h114.6c-2-21-3.2-42.5-3.2-64zm39.5 96c14.5 89.3 48.7 152 88.5 152s74-62.7 88.5-152h-177zm159.3 141.6c71.4-21.2 129.4-73.7 158-141.6h-108c-8.8 56.9-25.6 107.8-50 141.6zM19.3 352c28.6 67.9 86.5 120.4 158 141.6-24.4-33.8-41.2-84.7-50-141.6h-108z"] };
  3042. var faGlobeAfrica = { prefix: 'fas', iconName: 'globe-africa', icon: [496, 512, [], "f57c", "M248 8C111.03 8 0 119.03 0 256s111.03 248 248 248 248-111.03 248-248S384.97 8 248 8zm160 215.5v6.93c0 5.87-3.32 11.24-8.57 13.86l-15.39 7.7a15.485 15.485 0 0 1-15.53-.97l-18.21-12.14a15.52 15.52 0 0 0-13.5-1.81l-2.65.88c-9.7 3.23-13.66 14.79-7.99 23.3l13.24 19.86c2.87 4.31 7.71 6.9 12.89 6.9h8.21c8.56 0 15.5 6.94 15.5 15.5v11.34c0 3.35-1.09 6.62-3.1 9.3l-18.74 24.98c-1.42 1.9-2.39 4.1-2.83 6.43l-4.3 22.83c-.62 3.29-2.29 6.29-4.76 8.56a159.608 159.608 0 0 0-25 29.16l-13.03 19.55a27.756 27.756 0 0 1-23.09 12.36c-10.51 0-20.12-5.94-24.82-15.34a78.902 78.902 0 0 1-8.33-35.29V367.5c0-8.56-6.94-15.5-15.5-15.5h-25.88c-14.49 0-28.38-5.76-38.63-16a54.659 54.659 0 0 1-16-38.63v-14.06c0-17.19 8.1-33.38 21.85-43.7l27.58-20.69a54.663 54.663 0 0 1 32.78-10.93h.89c8.48 0 16.85 1.97 24.43 5.77l14.72 7.36c3.68 1.84 7.93 2.14 11.83.84l47.31-15.77c6.33-2.11 10.6-8.03 10.6-14.7 0-8.56-6.94-15.5-15.5-15.5h-10.09c-4.11 0-8.05-1.63-10.96-4.54l-6.92-6.92a15.493 15.493 0 0 0-10.96-4.54H199.5c-8.56 0-15.5-6.94-15.5-15.5v-4.4c0-7.11 4.84-13.31 11.74-15.04l14.45-3.61c3.74-.94 7-3.23 9.14-6.44l8.08-12.11c2.87-4.31 7.71-6.9 12.89-6.9h24.21c8.56 0 15.5-6.94 15.5-15.5v-21.7C359.23 71.63 422.86 131.02 441.93 208H423.5c-8.56 0-15.5 6.94-15.5 15.5z"] };
  3043. var faGlobeAmericas = { prefix: 'fas', iconName: 'globe-americas', icon: [496, 512, [], "f57d", "M248 8C111.03 8 0 119.03 0 256s111.03 248 248 248 248-111.03 248-248S384.97 8 248 8zm82.29 357.6c-3.9 3.88-7.99 7.95-11.31 11.28-2.99 3-5.1 6.7-6.17 10.71-1.51 5.66-2.73 11.38-4.77 16.87l-17.39 46.85c-13.76 3-28 4.69-42.65 4.69v-27.38c1.69-12.62-7.64-36.26-22.63-51.25-6-6-9.37-14.14-9.37-22.63v-32.01c0-11.64-6.27-22.34-16.46-27.97-14.37-7.95-34.81-19.06-48.81-26.11-11.48-5.78-22.1-13.14-31.65-21.75l-.8-.72a114.792 114.792 0 0 1-18.06-20.74c-9.38-13.77-24.66-36.42-34.59-51.14 20.47-45.5 57.36-82.04 103.2-101.89l24.01 12.01C203.48 89.74 216 82.01 216 70.11v-11.3c7.99-1.29 16.12-2.11 24.39-2.42l28.3 28.3c6.25 6.25 6.25 16.38 0 22.63L264 112l-10.34 10.34c-3.12 3.12-3.12 8.19 0 11.31l4.69 4.69c3.12 3.12 3.12 8.19 0 11.31l-8 8a8.008 8.008 0 0 1-5.66 2.34h-8.99c-2.08 0-4.08.81-5.58 2.27l-9.92 9.65a8.008 8.008 0 0 0-1.58 9.31l15.59 31.19c2.66 5.32-1.21 11.58-7.15 11.58h-5.64c-1.93 0-3.79-.7-5.24-1.96l-9.28-8.06a16.017 16.017 0 0 0-15.55-3.1l-31.17 10.39a11.95 11.95 0 0 0-8.17 11.34c0 4.53 2.56 8.66 6.61 10.69l11.08 5.54c9.41 4.71 19.79 7.16 30.31 7.16s22.59 27.29 32 32h66.75c8.49 0 16.62 3.37 22.63 9.37l13.69 13.69a30.503 30.503 0 0 1 8.93 21.57 46.536 46.536 0 0 1-13.72 32.98zM417 274.25c-5.79-1.45-10.84-5-14.15-9.97l-17.98-26.97a23.97 23.97 0 0 1 0-26.62l19.59-29.38c2.32-3.47 5.5-6.29 9.24-8.15l12.98-6.49C440.2 193.59 448 223.87 448 256c0 8.67-.74 17.16-1.82 25.54L417 274.25z"] };
  3044. var faGlobeAsia = { prefix: 'fas', iconName: 'globe-asia', icon: [496, 512, [], "f57e", "M248 8C111.03 8 0 119.03 0 256s111.03 248 248 248 248-111.03 248-248S384.97 8 248 8zm-11.34 240.23c-2.89 4.82-8.1 7.77-13.72 7.77h-.31c-4.24 0-8.31 1.69-11.31 4.69l-5.66 5.66c-3.12 3.12-3.12 8.19 0 11.31l5.66 5.66c3 3 4.69 7.07 4.69 11.31V304c0 8.84-7.16 16-16 16h-6.11c-6.06 0-11.6-3.42-14.31-8.85l-22.62-45.23c-2.44-4.88-8.95-5.94-12.81-2.08l-19.47 19.46c-3 3-7.07 4.69-11.31 4.69H50.81C49.12 277.55 48 266.92 48 256c0-110.28 89.72-200 200-200 21.51 0 42.2 3.51 61.63 9.82l-50.16 38.53c-5.11 3.41-4.63 11.06.86 13.81l10.83 5.41c5.42 2.71 8.84 8.25 8.84 14.31V216c0 4.42-3.58 8-8 8h-3.06c-3.03 0-5.8-1.71-7.15-4.42-1.56-3.12-5.96-3.29-7.76-.3l-17.37 28.95zM408 358.43c0 4.24-1.69 8.31-4.69 11.31l-9.57 9.57c-3 3-7.07 4.69-11.31 4.69h-15.16c-4.24 0-8.31-1.69-11.31-4.69l-13.01-13.01a26.767 26.767 0 0 0-25.42-7.04l-21.27 5.32c-1.27.32-2.57.48-3.88.48h-10.34c-4.24 0-8.31-1.69-11.31-4.69l-11.91-11.91a8.008 8.008 0 0 1-2.34-5.66v-10.2c0-3.27 1.99-6.21 5.03-7.43l39.34-15.74c1.98-.79 3.86-1.82 5.59-3.05l23.71-16.89a7.978 7.978 0 0 1 4.64-1.48h12.09c3.23 0 6.15 1.94 7.39 4.93l5.35 12.85a4 4 0 0 0 3.69 2.46h3.8c1.78 0 3.35-1.18 3.84-2.88l4.2-14.47c.5-1.71 2.06-2.88 3.84-2.88h6.06c2.21 0 4 1.79 4 4v12.93c0 2.12.84 4.16 2.34 5.66l11.91 11.91c3 3 4.69 7.07 4.69 11.31v24.6z"] };
  3045. var faGolfBall = { prefix: 'fas', iconName: 'golf-ball', icon: [416, 512, [], "f450", "M96 416h224c0 17.7-14.3 32-32 32h-16c-17.7 0-32 14.3-32 32v20c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-20c0-17.7-14.3-32-32-32h-16c-17.7 0-32-14.3-32-32zm320-208c0 74.2-39 139.2-97.5 176h-221C39 347.2 0 282.2 0 208 0 93.1 93.1 0 208 0s208 93.1 208 208zm-180.1 43.9c18.3 0 33.1-14.8 33.1-33.1 0-14.4-9.3-26.3-22.1-30.9 9.6 26.8-15.6 51.3-41.9 41.9 4.6 12.8 16.5 22.1 30.9 22.1zm49.1 46.9c0-14.4-9.3-26.3-22.1-30.9 9.6 26.8-15.6 51.3-41.9 41.9 4.6 12.8 16.5 22.1 30.9 22.1 18.3 0 33.1-14.9 33.1-33.1zm64-64c0-14.4-9.3-26.3-22.1-30.9 9.6 26.8-15.6 51.3-41.9 41.9 4.6 12.8 16.5 22.1 30.9 22.1 18.3 0 33.1-14.9 33.1-33.1z"] };
  3046. var faGopuram = { prefix: 'fas', iconName: 'gopuram', icon: [512, 512, [], "f664", "M496 352h-16V240c0-8.84-7.16-16-16-16h-16v-80c0-8.84-7.16-16-16-16h-16V16c0-8.84-7.16-16-16-16s-16 7.16-16 16v16h-64V16c0-8.84-7.16-16-16-16s-16 7.16-16 16v16h-64V16c0-8.84-7.16-16-16-16s-16 7.16-16 16v16h-64V16c0-8.84-7.16-16-16-16S96 7.16 96 16v112H80c-8.84 0-16 7.16-16 16v80H48c-8.84 0-16 7.16-16 16v112H16c-8.84 0-16 7.16-16 16v128c0 8.84 7.16 16 16 16h80V352h32V224h32v-96h32v96h-32v128h-32v160h80v-80c0-8.84 7.16-16 16-16h64c8.84 0 16 7.16 16 16v80h80V352h-32V224h-32v-96h32v96h32v128h32v160h80c8.84 0 16-7.16 16-16V368c0-8.84-7.16-16-16-16zm-272 0v-64c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v64h-64zm8-128v-48c0-8.84 7.16-16 16-16h16c8.84 0 16 7.16 16 16v48h-48z"] };
  3047. var faGraduationCap = { prefix: 'fas', iconName: 'graduation-cap', icon: [640, 512, [], "f19d", "M622.34 153.2L343.4 67.5c-15.2-4.67-31.6-4.67-46.79 0L17.66 153.2c-23.54 7.23-23.54 38.36 0 45.59l48.63 14.94c-10.67 13.19-17.23 29.28-17.88 46.9C38.78 266.15 32 276.11 32 288c0 10.78 5.68 19.85 13.86 25.65L20.33 428.53C18.11 438.52 25.71 448 35.94 448h56.11c10.24 0 17.84-9.48 15.62-19.47L82.14 313.65C90.32 307.85 96 298.78 96 288c0-11.57-6.47-21.25-15.66-26.87.76-15.02 8.44-28.3 20.69-36.72L296.6 284.5c9.06 2.78 26.44 6.25 46.79 0l278.95-85.7c23.55-7.24 23.55-38.36 0-45.6zM352.79 315.09c-28.53 8.76-52.84 3.92-65.59 0l-145.02-44.55L128 384c0 35.35 85.96 64 192 64s192-28.65 192-64l-14.18-113.47-145.03 44.56z"] };
  3048. var faGreaterThan = { prefix: 'fas', iconName: 'greater-than', icon: [384, 512, [], "f531", "M365.52 209.85L59.22 67.01c-16.06-7.49-35.15-.54-42.64 15.52L3.01 111.61c-7.49 16.06-.54 35.15 15.52 42.64L236.96 256.1 18.49 357.99C2.47 365.46-4.46 384.5 3.01 400.52l13.52 29C24 445.54 43.04 452.47 59.06 445l306.47-142.91a32.003 32.003 0 0 0 18.48-29v-34.23c-.01-12.45-7.21-23.76-18.49-29.01z"] };
  3049. var faGreaterThanEqual = { prefix: 'fas', iconName: 'greater-than-equal', icon: [448, 512, [], "f532", "M55.22 107.69l175.56 68.09-175.44 68.05c-18.39 6.03-27.88 24.39-21.2 41l12.09 30.08c6.68 16.61 26.99 25.19 45.38 19.15L393.02 214.2c13.77-4.52 22.98-16.61 22.98-30.17v-15.96c0-13.56-9.21-25.65-22.98-30.17L91.3 17.92c-18.29-6-38.51 2.53-45.15 19.06L34.12 66.9c-6.64 16.53 2.81 34.79 21.1 40.79zM424 400H24c-13.25 0-24 10.74-24 24v48c0 13.25 10.75 24 24 24h400c13.25 0 24-10.75 24-24v-48c0-13.26-10.75-24-24-24z"] };
  3050. var faGrimace = { prefix: 'fas', iconName: 'grimace', icon: [496, 512, [], "f57f", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM144 400h-8c-17.7 0-32-14.3-32-32v-8h40v40zm0-56h-40v-8c0-17.7 14.3-32 32-32h8v40zm-8-136c0-17.7 14.3-32 32-32s32 14.3 32 32-14.3 32-32 32-32-14.3-32-32zm72 192h-48v-40h48v40zm0-56h-48v-40h48v40zm64 56h-48v-40h48v40zm0-56h-48v-40h48v40zm64 56h-48v-40h48v40zm0-56h-48v-40h48v40zm-8-104c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm64 128c0 17.7-14.3 32-32 32h-8v-40h40v8zm0-24h-40v-40h8c17.7 0 32 14.3 32 32v8z"] };
  3051. var faGrin = { prefix: 'fas', iconName: 'grin', icon: [496, 512, [], "f580", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm80 168c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm-160 0c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm80 256c-60.6 0-134.5-38.3-143.8-93.3-2-11.8 9.3-21.6 20.7-17.9C155.1 330.5 200 336 248 336s92.9-5.5 123.1-15.2c11.3-3.7 22.6 6.1 20.7 17.9-9.3 55-83.2 93.3-143.8 93.3z"] };
  3052. var faGrinAlt = { prefix: 'fas', iconName: 'grin-alt', icon: [496, 512, [], "f581", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm63.7 128.7c7.6-11.4 24.7-11.7 32.7 0 12.4 18.4 15.1 36.9 15.7 55.3-.5 18.4-3.3 36.9-15.7 55.3-7.6 11.4-24.7 11.7-32.7 0-12.4-18.4-15.1-36.9-15.7-55.3.5-18.4 3.3-36.9 15.7-55.3zm-160 0c7.6-11.4 24.7-11.7 32.7 0 12.4 18.4 15.1 36.9 15.7 55.3-.5 18.4-3.3 36.9-15.7 55.3-7.6 11.4-24.7 11.7-32.7 0-12.4-18.4-15.1-36.9-15.7-55.3.5-18.4 3.3-36.9 15.7-55.3zM248 432c-60.6 0-134.5-38.3-143.8-93.3-2-11.8 9.3-21.6 20.7-17.9C155.1 330.5 200 336 248 336s92.9-5.5 123.1-15.2c11.4-3.7 22.6 6.1 20.7 17.9-9.3 55-83.2 93.3-143.8 93.3z"] };
  3053. var faGrinBeam = { prefix: 'fas', iconName: 'grin-beam', icon: [496, 512, [], "f582", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm80 144c23.8 0 52.7 29.3 56 71.4.7 8.6-10.8 11.9-14.9 4.5l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.1 7.3-15.6 4-14.9-4.5 3.1-42.1 32-71.4 55.8-71.4zm-160 0c23.8 0 52.7 29.3 56 71.4.7 8.6-10.8 11.9-14.9 4.5l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.2 7.4-15.6 4-14.9-4.5 3.1-42.1 32-71.4 55.8-71.4zm80 280c-60.6 0-134.5-38.3-143.8-93.3-2-11.9 9.4-21.6 20.7-17.9C155.1 330.5 200 336 248 336s92.9-5.5 123.1-15.2c11.4-3.7 22.6 6.1 20.7 17.9-9.3 55-83.2 93.3-143.8 93.3z"] };
  3054. var faGrinBeamSweat = { prefix: 'fas', iconName: 'grin-beam-sweat', icon: [504, 512, [], "f583", "M456 128c26.5 0 48-21 48-47 0-20-28.5-60.4-41.6-77.8-3.2-4.3-9.6-4.3-12.8 0C436.5 20.6 408 61 408 81c0 26 21.5 47 48 47zm0 32c-44.1 0-80-35.4-80-79 0-4.4.3-14.2 8.1-32.2C345 23.1 298.3 8 248 8 111 8 0 119 0 256s111 248 248 248 248-111 248-248c0-35.1-7.4-68.4-20.5-98.6-6.3 1.5-12.7 2.6-19.5 2.6zm-128-8c23.8 0 52.7 29.3 56 71.4.7 8.6-10.8 12-14.9 4.5l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.1 7.4-15.6 4-14.9-4.5 3.1-42.1 32-71.4 55.8-71.4zm-160 0c23.8 0 52.7 29.3 56 71.4.7 8.6-10.8 12-14.9 4.5l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.2 7.4-15.6 4-14.9-4.5 3.1-42.1 32-71.4 55.8-71.4zm80 280c-60.6 0-134.5-38.3-143.8-93.3-2-11.8 9.3-21.6 20.7-17.9C155.1 330.5 200 336 248 336s92.9-5.5 123.1-15.2c11.5-3.7 22.6 6.2 20.7 17.9-9.3 55-83.2 93.3-143.8 93.3z"] };
  3055. var faGrinHearts = { prefix: 'fas', iconName: 'grin-hearts', icon: [496, 512, [], "f584", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM90.4 183.6c6.7-17.6 26.7-26.7 44.9-21.9l7.1 1.9 2-7.1c5-18.1 22.8-30.9 41.5-27.9 21.4 3.4 34.4 24.2 28.8 44.5L195.3 243c-1.2 4.5-5.9 7.2-10.5 6l-70.2-18.2c-20.4-5.4-31.9-27-24.2-47.2zM248 432c-60.6 0-134.5-38.3-143.8-93.3-2-11.8 9.2-21.5 20.7-17.9C155.1 330.5 200 336 248 336s92.9-5.5 123.1-15.2c11.4-3.6 22.6 6.1 20.7 17.9-9.3 55-83.2 93.3-143.8 93.3zm133.4-201.3l-70.2 18.2c-4.5 1.2-9.2-1.5-10.5-6L281.3 173c-5.6-20.3 7.4-41.1 28.8-44.5 18.6-3 36.4 9.8 41.5 27.9l2 7.1 7.1-1.9c18.2-4.7 38.2 4.3 44.9 21.9 7.7 20.3-3.8 41.9-24.2 47.2z"] };
  3056. var faGrinSquint = { prefix: 'fas', iconName: 'grin-squint', icon: [496, 512, [], "f585", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm33.8 189.7l80-48c11.6-6.9 24 7.7 15.4 18L343.6 208l33.6 40.3c8.7 10.4-3.9 24.8-15.4 18l-80-48c-7.7-4.7-7.7-15.9 0-20.6zm-163-30c-8.6-10.3 3.8-24.9 15.4-18l80 48c7.8 4.7 7.8 15.9 0 20.6l-80 48c-11.5 6.8-24-7.6-15.4-18l33.6-40.3-33.6-40.3zM248 432c-60.6 0-134.5-38.3-143.8-93.3-2-11.9 9.4-21.6 20.7-17.9C155.1 330.5 200 336 248 336s92.9-5.5 123.1-15.2c11.5-3.7 22.6 6.2 20.7 17.9-9.3 55-83.2 93.3-143.8 93.3z"] };
  3057. var faGrinSquintTears = { prefix: 'fas', iconName: 'grin-squint-tears', icon: [512, 512, [], "f586", "M409.6 111.9c22.6-3.2 73.5-12 88.3-26.8 19.2-19.2 18.9-50.6-.7-70.2S446-5 426.9 14.2c-14.8 14.8-23.5 65.7-26.8 88.3-.8 5.5 3.9 10.2 9.5 9.4zM102.4 400.1c-22.6 3.2-73.5 12-88.3 26.8-19.1 19.1-18.8 50.6.8 70.2s51 19.9 70.2.7c14.8-14.8 23.5-65.7 26.8-88.3.8-5.5-3.9-10.2-9.5-9.4zm311.7-256.5c-33 3.9-48.6-25.1-45.7-45.7 3.4-24 7.4-42.1 11.5-56.5C285.1-13.4 161.8-.5 80.6 80.6-.5 161.7-13.4 285 41.4 379.9c14.4-4.1 32.4-8 56.5-11.5 33.2-3.9 48.6 25.2 45.7 45.7-3.4 24-7.4 42.1-11.5 56.5 94.8 54.8 218.1 41.9 299.3-39.2s94-204.4 39.2-299.3c-14.4 4.1-32.5 8-56.5 11.5zM255.7 106c3.3-13.2 22.4-11.5 23.6 1.8l4.8 52.3 52.3 4.8c13.4 1.2 14.9 20.3 1.8 23.6l-90.5 22.6c-8.9 2.2-16.7-5.9-14.5-14.5l22.5-90.6zm-90.9 230.3L160 284l-52.3-4.8c-13.4-1.2-14.9-20.3-1.8-23.6l90.5-22.6c8.8-2.2 16.7 5.8 14.5 14.5L188.3 338c-3.1 13.2-22.2 11.7-23.5-1.7zm215.7 44.2c-29.3 29.3-75.7 50.4-116.7 50.4-18.9 0-36.6-4.5-51-14.7-9.8-6.9-8.7-21.8 2-27.2 28.3-14.6 63.9-42.4 97.8-76.3s61.7-69.6 76.3-97.8c5.4-10.5 20.2-11.9 27.3-2 32.3 45.3 7.1 124.7-35.7 167.6z"] };
  3058. var faGrinStars = { prefix: 'fas', iconName: 'grin-stars', icon: [496, 512, [], "f587", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM94.6 168.9l34.9-5 15.5-31.6c2.9-5.8 11-5.8 13.9 0l15.5 31.6 34.9 5c6.2 1 8.9 8.6 4.3 13.2l-25.4 24.6 6 34.9c1 6.2-5.3 11-11 7.9L152 233.3l-31.3 16.3c-5.7 3.1-12-1.7-11-7.9l6-34.9-25.4-24.6c-4.6-4.7-1.9-12.3 4.3-13.3zM248 432c-60.6 0-134.5-38.3-143.8-93.3-2-11.8 9.3-21.5 20.7-17.9C155.1 330.5 200 336 248 336s92.9-5.5 123.1-15.2c11.5-3.7 22.6 6.1 20.7 17.9-9.3 55-83.2 93.3-143.8 93.3zm157.7-249.9l-25.4 24.6 6 34.9c1 6.2-5.3 11-11 7.9L344 233.3l-31.3 16.3c-5.7 3.1-12-1.7-11-7.9l6-34.9-25.4-24.6c-4.5-4.6-1.9-12.2 4.3-13.2l34.9-5 15.5-31.6c2.9-5.8 11-5.8 13.9 0l15.5 31.6 34.9 5c6.3.9 9 8.5 4.4 13.1z"] };
  3059. var faGrinTears = { prefix: 'fas', iconName: 'grin-tears', icon: [640, 512, [], "f588", "M102.4 256.1c-22.6 3.2-73.5 12-88.3 26.8-19.1 19.1-18.8 50.6.8 70.2s51 19.9 70.2.7c14.8-14.8 23.5-65.7 26.8-88.3.8-5.5-3.9-10.2-9.5-9.4zm523.4 26.8c-14.8-14.8-65.7-23.5-88.3-26.8-5.5-.8-10.3 3.9-9.5 9.5 3.2 22.6 12 73.5 26.8 88.3 19.2 19.2 50.6 18.9 70.2-.7s20-51.2.8-70.3zm-129.4-12.8c-3.8-26.6 19.1-49.5 45.7-45.7 8.9 1.3 16.8 2.7 24.3 4.1C552.7 104.5 447.7 8 320 8S87.3 104.5 73.6 228.5c7.5-1.4 15.4-2.8 24.3-4.1 33.2-3.9 48.6 25.3 45.7 45.7-11.8 82.3-29.9 100.4-35.8 106.4-.9.9-2 1.6-3 2.5 42.7 74.6 123 125 215.2 125s172.5-50.4 215.2-125.1c-1-.9-2.1-1.5-3-2.5-5.9-5.9-24-24-35.8-106.3zM400 152c23.8 0 52.7 29.3 56 71.4.7 8.6-10.8 12-14.9 4.5l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.2 7.4-15.6 4-14.9-4.5 3.1-42.1 32-71.4 55.8-71.4zm-160 0c23.8 0 52.7 29.3 56 71.4.7 8.6-10.8 12-14.9 4.5l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.2 7.4-15.6 4-14.9-4.5 3.1-42.1 32-71.4 55.8-71.4zm80 280c-60.6 0-134.5-38.3-143.8-93.3-2-11.7 9.2-21.6 20.7-17.9C227.1 330.5 272 336 320 336s92.9-5.5 123.1-15.2c11.4-3.7 22.6 6.1 20.7 17.9-9.3 55-83.2 93.3-143.8 93.3z"] };
  3060. var faGrinTongue = { prefix: 'fas', iconName: 'grin-tongue', icon: [496, 512, [], "f589", "M248 8C111 8 0 119 0 256c0 106.3 67 196.7 161 232-5.6-12.2-9-25.7-9-40v-45.5c-24.7-16.2-43.5-38.1-47.8-63.8-2-11.8 9.3-21.5 20.7-17.9C155.1 330.5 200 336 248 336s92.9-5.5 123.1-15.2c11.4-3.6 22.6 6.1 20.7 17.9-4.3 25.7-23.1 47.6-47.8 63.8V448c0 14.3-3.4 27.8-9 40 94-35.3 161-125.7 161-232C496 119 385 8 248 8zm-80 232c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm160 0c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm-34.9 134.6c-14.4-6.5-31.1 2.2-34.6 17.6l-1.8 7.8c-2.1 9.2-15.2 9.2-17.3 0l-1.8-7.8c-3.5-15.4-20.2-24.1-34.6-17.6-.9.4.3-.2-18.9 9.4v63c0 35.2 28 64.5 63.1 64.9 35.7.5 64.9-28.4 64.9-64v-64c-19.5-9.6-18.2-8.9-19-9.3z"] };
  3061. var faGrinTongueSquint = { prefix: 'fas', iconName: 'grin-tongue-squint', icon: [496, 512, [], "f58a", "M293.1 374.6c-14.4-6.5-31.1 2.2-34.6 17.6l-1.8 7.8c-2.1 9.2-15.2 9.2-17.3 0l-1.8-7.8c-3.5-15.4-20.2-24.1-34.6-17.6-.9.4.3-.2-18.9 9.4v63c0 35.2 28 64.5 63.1 64.9 35.7.5 64.9-28.4 64.9-64v-64c-19.5-9.6-18.2-8.9-19-9.3zM248 8C111 8 0 119 0 256c0 106.3 67 196.7 161 232-5.6-12.2-9-25.7-9-40v-45.5c-24.7-16.2-43.5-38.1-47.8-63.8-2-11.8 9.2-21.5 20.7-17.9C155.1 330.5 200 336 248 336s92.9-5.5 123.1-15.2c11.4-3.7 22.6 6.1 20.7 17.9-4.3 25.7-23.1 47.6-47.8 63.8V448c0 14.3-3.4 27.8-9 40 94-35.3 161-125.7 161-232C496 119 385 8 248 8zm-33.8 210.3l-80 48c-11.5 6.8-24-7.6-15.4-18l33.6-40.3-33.6-40.3c-8.6-10.3 3.8-24.9 15.4-18l80 48c7.7 4.7 7.7 15.9 0 20.6zm163 30c8.7 10.4-3.9 24.8-15.4 18l-80-48c-7.8-4.7-7.8-15.9 0-20.6l80-48c11.7-6.9 23.9 7.7 15.4 18L343.6 208l33.6 40.3z"] };
  3062. var faGrinTongueWink = { prefix: 'fas', iconName: 'grin-tongue-wink', icon: [496, 512, [], "f58b", "M344 184c-13.3 0-24 10.7-24 24s10.7 24 24 24 24-10.7 24-24-10.7-24-24-24zM248 8C111 8 0 119 0 256c0 106.3 67 196.7 161 232-5.6-12.2-9-25.7-9-40v-45.5c-24.7-16.2-43.5-38.1-47.8-63.8-2-11.8 9.3-21.5 20.7-17.9C155.1 330.5 200 336 248 336s92.9-5.5 123.1-15.2c11.5-3.7 22.6 6.1 20.7 17.9-4.3 25.7-23.1 47.6-47.8 63.8V448c0 14.3-3.4 27.8-9 40 94-35.3 161-125.7 161-232C496 119 385 8 248 8zm-56 225l-9.5-8.5c-14.8-13.2-46.2-13.2-61 0L112 233c-8.5 7.4-21.6.3-19.8-10.8 4-25.2 34.2-42.1 59.9-42.1S208 197 212 222.2c1.6 11.1-11.6 18.2-20 10.8zm152 39c-35.3 0-64-28.7-64-64s28.7-64 64-64 64 28.7 64 64-28.7 64-64 64zm-50.9 102.6c-14.4-6.5-31.1 2.2-34.6 17.6l-1.8 7.8c-2.1 9.2-15.2 9.2-17.3 0l-1.8-7.8c-3.5-15.4-20.2-24.1-34.6-17.6-.9.4.3-.2-18.9 9.4v63c0 35.2 28 64.5 63.1 64.9 35.7.5 64.9-28.4 64.9-64v-64c-19.5-9.6-18.2-8.9-19-9.3z"] };
  3063. var faGrinWink = { prefix: 'fas', iconName: 'grin-wink', icon: [496, 512, [], "f58c", "M0 256c0 137 111 248 248 248s248-111 248-248S385 8 248 8 0 119 0 256zm200-48c0 17.7-14.3 32-32 32s-32-14.3-32-32 14.3-32 32-32 32 14.3 32 32zm168 25l-9.5-8.5c-14.8-13.2-46.2-13.2-61 0L288 233c-8.3 7.4-21.6.4-19.8-10.8 4-25.2 34.2-42.1 59.9-42.1S384 197 388 222.2c1.6 11-11.5 18.2-20 10.8zm-243.1 87.8C155.1 330.5 200 336 248 336s92.9-5.5 123.1-15.2c11.3-3.7 22.6 6 20.7 17.9-9.2 55-83.2 93.3-143.8 93.3s-134.5-38.3-143.8-93.3c-2-11.9 9.3-21.6 20.7-17.9z"] };
  3064. var faGripHorizontal = { prefix: 'fas', iconName: 'grip-horizontal', icon: [448, 512, [], "f58d", "M96 288H32c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zm160 0h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zm160 0h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zM96 96H32c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zm160 0h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zm160 0h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32z"] };
  3065. var faGripVertical = { prefix: 'fas', iconName: 'grip-vertical', icon: [320, 512, [], "f58e", "M96 32H32C14.33 32 0 46.33 0 64v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32V64c0-17.67-14.33-32-32-32zm0 160H32c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zm0 160H32c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zM288 32h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32V64c0-17.67-14.33-32-32-32zm0 160h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zm0 160h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32z"] };
  3066. var faHSquare = { prefix: 'fas', iconName: 'h-square', icon: [448, 512, [], "f0fd", "M448 80v352c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h352c26.51 0 48 21.49 48 48zm-112 48h-32c-8.837 0-16 7.163-16 16v80H160v-80c0-8.837-7.163-16-16-16h-32c-8.837 0-16 7.163-16 16v224c0 8.837 7.163 16 16 16h32c8.837 0 16-7.163 16-16v-80h128v80c0 8.837 7.163 16 16 16h32c8.837 0 16-7.163 16-16V144c0-8.837-7.163-16-16-16z"] };
  3067. var faHammer = { prefix: 'fas', iconName: 'hammer', icon: [576, 512, [], "f6e3", "M571.31 193.94l-22.63-22.63c-6.25-6.25-16.38-6.25-22.63 0l-11.31 11.31-28.9-28.9c5.63-21.31.36-44.9-16.35-61.61l-45.25-45.25c-62.48-62.48-163.79-62.48-226.28 0l90.51 45.25v18.75c0 16.97 6.74 33.25 18.75 45.25l49.14 49.14c16.71 16.71 40.3 21.98 61.61 16.35l28.9 28.9-11.31 11.31c-6.25 6.25-6.25 16.38 0 22.63l22.63 22.63c6.25 6.25 16.38 6.25 22.63 0l90.51-90.51c6.23-6.24 6.23-16.37-.02-22.62zm-286.72-15.2c-3.7-3.7-6.84-7.79-9.85-11.95L19.64 404.96c-25.57 23.88-26.26 64.19-1.53 88.93s65.05 24.05 88.93-1.53l238.13-255.07c-3.96-2.91-7.9-5.87-11.44-9.41l-49.14-49.14z"] };
  3068. var faHamsa = { prefix: 'fas', iconName: 'hamsa', icon: [512, 512, [], "f665", "M509.34 307.25C504.28 295.56 492.75 288 480 288h-64V80c0-22-18-40-40-40s-40 18-40 40v134c0 5.52-4.48 10-10 10h-20c-5.52 0-10-4.48-10-10V40c0-22-18-40-40-40s-40 18-40 40v174c0 5.52-4.48 10-10 10h-20c-5.52 0-10-4.48-10-10V80c0-22-18-40-40-40S96 58 96 80v208H32c-12.75 0-24.28 7.56-29.34 19.25a31.966 31.966 0 0 0 5.94 34.58l102.69 110.03C146.97 490.08 199.69 512 256 512s109.03-21.92 144.72-60.14L503.4 341.83a31.966 31.966 0 0 0 5.94-34.58zM256 416c-53.02 0-96-64-96-64s42.98-64 96-64 96 64 96 64-42.98 64-96 64zm0-96c-17.67 0-32 14.33-32 32s14.33 32 32 32 32-14.33 32-32-14.33-32-32-32z"] };
  3069. var faHandHolding = { prefix: 'fas', iconName: 'hand-holding', icon: [576, 512, [], "f4bd", "M565.3 328.1c-11.8-10.7-30.2-10-42.6 0L430.3 402c-11.3 9.1-25.4 14-40 14H272c-8.8 0-16-7.2-16-16s7.2-16 16-16h78.3c15.9 0 30.7-10.9 33.3-26.6 3.3-20-12.1-37.4-31.6-37.4H192c-27 0-53.1 9.3-74.1 26.3L71.4 384H16c-8.8 0-16 7.2-16 16v96c0 8.8 7.2 16 16 16h356.8c14.5 0 28.6-4.9 40-14L564 377c15.2-12.1 16.4-35.3 1.3-48.9z"] };
  3070. var faHandHoldingHeart = { prefix: 'fas', iconName: 'hand-holding-heart', icon: [576, 512, [], "f4be", "M275.3 250.5c7 7.4 18.4 7.4 25.5 0l108.9-114.2c31.6-33.2 29.8-88.2-5.6-118.8-30.8-26.7-76.7-21.9-104.9 7.7L288 36.9l-11.1-11.6C248.7-4.4 202.8-9.2 172 17.5c-35.3 30.6-37.2 85.6-5.6 118.8l108.9 114.2zm290 77.6c-11.8-10.7-30.2-10-42.6 0L430.3 402c-11.3 9.1-25.4 14-40 14H272c-8.8 0-16-7.2-16-16s7.2-16 16-16h78.3c15.9 0 30.7-10.9 33.3-26.6 3.3-20-12.1-37.4-31.6-37.4H192c-27 0-53.1 9.3-74.1 26.3L71.4 384H16c-8.8 0-16 7.2-16 16v96c0 8.8 7.2 16 16 16h356.8c14.5 0 28.6-4.9 40-14L564 377c15.2-12.1 16.4-35.3 1.3-48.9z"] };
  3071. var faHandHoldingUsd = { prefix: 'fas', iconName: 'hand-holding-usd', icon: [544, 512, [], "f4c0", "M257.6 144.3l50 14.3c3.6 1 6.1 4.4 6.1 8.1 0 4.6-3.8 8.4-8.4 8.4h-32.8c-3.6 0-7.1-.8-10.3-2.2-4.8-2.2-10.4-1.7-14.1 2l-17.5 17.5c-5.3 5.3-4.7 14.3 1.5 18.4 9.5 6.3 20.3 10.1 31.8 11.5V240c0 8.8 7.2 16 16 16h16c8.8 0 16-7.2 16-16v-17.6c30.3-3.6 53.3-31 49.3-63-2.9-23-20.7-41.3-42.9-47.7l-50-14.3c-3.6-1-6.1-4.4-6.1-8.1 0-4.6 3.8-8.4 8.4-8.4h32.8c3.6 0 7.1.8 10.3 2.2 4.8 2.2 10.4 1.7 14.1-2l17.5-17.5c5.3-5.3 4.7-14.3-1.5-18.4-9.5-6.3-20.3-10.1-31.8-11.5V16c0-8.8-7.2-16-16-16h-16c-8.8 0-16 7.2-16 16v17.6c-30.3 3.6-53.3 31-49.3 63 2.9 23 20.7 41.3 42.9 47.7zm276.3 183.8c-11.2-10.7-28.5-10-40.3 0L406.4 402c-10.7 9.1-24 14-37.8 14H256.9c-8.3 0-15.1-7.2-15.1-16s6.8-16 15.1-16h73.9c15.1 0 29-10.9 31.4-26.6 3.1-20-11.5-37.4-29.8-37.4H181.3c-25.5 0-50.2 9.3-69.9 26.3L67.5 384H15.1C6.8 384 0 391.2 0 400v96c0 8.8 6.8 16 15.1 16H352c13.7 0 27-4.9 37.8-14l142.8-121c14.4-12.1 15.5-35.3 1.3-48.9z"] };
  3072. var faHandLizard = { prefix: 'fas', iconName: 'hand-lizard', icon: [576, 512, [], "f258", "M384 480h192V363.778a95.998 95.998 0 0 0-14.833-51.263L398.127 54.368A48 48 0 0 0 357.544 32H24C10.745 32 0 42.745 0 56v16c0 30.928 25.072 56 56 56h229.981c12.844 0 21.556 13.067 16.615 24.923l-21.41 51.385A32 32 0 0 1 251.648 224H128c-35.346 0-64 28.654-64 64v8c0 13.255 10.745 24 24 24h147.406a47.995 47.995 0 0 1 25.692 7.455l111.748 70.811A24.001 24.001 0 0 1 384 418.539V480z"] };
  3073. var faHandPaper = { prefix: 'fas', iconName: 'hand-paper', icon: [448, 512, [], "f256", "M408.781 128.007C386.356 127.578 368 146.36 368 168.79V256h-8V79.79c0-22.43-18.356-41.212-40.781-40.783C297.488 39.423 280 57.169 280 79v177h-8V40.79C272 18.36 253.644-.422 231.219.007 209.488.423 192 18.169 192 40v216h-8V80.79c0-22.43-18.356-41.212-40.781-40.783C121.488 40.423 104 58.169 104 80v235.992l-31.648-43.519c-12.993-17.866-38.009-21.817-55.877-8.823-17.865 12.994-21.815 38.01-8.822 55.877l125.601 172.705A48 48 0 0 0 172.073 512h197.59c22.274 0 41.622-15.324 46.724-37.006l26.508-112.66a192.011 192.011 0 0 0 5.104-43.975V168c.001-21.831-17.487-39.577-39.218-39.993z"] };
  3074. var faHandPeace = { prefix: 'fas', iconName: 'hand-peace', icon: [448, 512, [], "f25b", "M408 216c-22.092 0-40 17.909-40 40h-8v-32c0-22.091-17.908-40-40-40s-40 17.909-40 40v32h-8V48c0-26.51-21.49-48-48-48s-48 21.49-48 48v208h-13.572L92.688 78.449C82.994 53.774 55.134 41.63 30.461 51.324 5.787 61.017-6.356 88.877 3.337 113.551l74.765 190.342-31.09 24.872c-15.381 12.306-19.515 33.978-9.741 51.081l64 112A39.998 39.998 0 0 0 136 512h240c18.562 0 34.686-12.77 38.937-30.838l32-136A39.97 39.97 0 0 0 448 336v-80c0-22.091-17.908-40-40-40z"] };
  3075. var faHandPointDown = { prefix: 'fas', iconName: 'hand-point-down', icon: [384, 512, [], "f0a7", "M91.826 467.2V317.966c-8.248 5.841-16.558 10.57-24.918 14.153C35.098 345.752-.014 322.222 0 288c.008-18.616 10.897-32.203 29.092-40 28.286-12.122 64.329-78.648 77.323-107.534 7.956-17.857 25.479-28.453 43.845-28.464l.001-.002h171.526c11.812 0 21.897 8.596 23.703 20.269 7.25 46.837 38.483 61.76 38.315 123.731-.007 2.724.195 13.254.195 16 0 50.654-22.122 81.574-71.263 72.6-9.297 18.597-39.486 30.738-62.315 16.45-21.177 24.645-53.896 22.639-70.944 6.299V467.2c0 24.15-20.201 44.8-43.826 44.8-23.283 0-43.826-21.35-43.826-44.8zM112 72V24c0-13.255 10.745-24 24-24h192c13.255 0 24 10.745 24 24v48c0 13.255-10.745 24-24 24H136c-13.255 0-24-10.745-24-24zm212-24c0-11.046-8.954-20-20-20s-20 8.954-20 20 8.954 20 20 20 20-8.954 20-20z"] };
  3076. var faHandPointLeft = { prefix: 'fas', iconName: 'hand-point-left', icon: [512, 512, [], "f0a5", "M44.8 155.826h149.234c-5.841-8.248-10.57-16.558-14.153-24.918C166.248 99.098 189.778 63.986 224 64c18.616.008 32.203 10.897 40 29.092 12.122 28.286 78.648 64.329 107.534 77.323 17.857 7.956 28.453 25.479 28.464 43.845l.002.001v171.526c0 11.812-8.596 21.897-20.269 23.703-46.837 7.25-61.76 38.483-123.731 38.315-2.724-.007-13.254.195-16 .195-50.654 0-81.574-22.122-72.6-71.263-18.597-9.297-30.738-39.486-16.45-62.315-24.645-21.177-22.639-53.896-6.299-70.944H44.8c-24.15 0-44.8-20.201-44.8-43.826 0-23.283 21.35-43.826 44.8-43.826zM440 176h48c13.255 0 24 10.745 24 24v192c0 13.255-10.745 24-24 24h-48c-13.255 0-24-10.745-24-24V200c0-13.255 10.745-24 24-24zm24 212c11.046 0 20-8.954 20-20s-8.954-20-20-20-20 8.954-20 20 8.954 20 20 20z"] };
  3077. var faHandPointRight = { prefix: 'fas', iconName: 'hand-point-right', icon: [512, 512, [], "f0a4", "M512 199.652c0 23.625-20.65 43.826-44.8 43.826h-99.851c16.34 17.048 18.346 49.766-6.299 70.944 14.288 22.829 2.147 53.017-16.45 62.315C353.574 425.878 322.654 448 272 448c-2.746 0-13.276-.203-16-.195-61.971.168-76.894-31.065-123.731-38.315C120.596 407.683 112 397.599 112 385.786V214.261l.002-.001c.011-18.366 10.607-35.889 28.464-43.845 28.886-12.994 95.413-49.038 107.534-77.323 7.797-18.194 21.384-29.084 40-29.092 34.222-.014 57.752 35.098 44.119 66.908-3.583 8.359-8.312 16.67-14.153 24.918H467.2c23.45 0 44.8 20.543 44.8 43.826zM96 200v192c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V200c0-13.255 10.745-24 24-24h48c13.255 0 24 10.745 24 24zM68 368c0-11.046-8.954-20-20-20s-20 8.954-20 20 8.954 20 20 20 20-8.954 20-20z"] };
  3078. var faHandPointUp = { prefix: 'fas', iconName: 'hand-point-up', icon: [384, 512, [], "f0a6", "M135.652 0c23.625 0 43.826 20.65 43.826 44.8v99.851c17.048-16.34 49.766-18.346 70.944 6.299 22.829-14.288 53.017-2.147 62.315 16.45C361.878 158.426 384 189.346 384 240c0 2.746-.203 13.276-.195 16 .168 61.971-31.065 76.894-38.315 123.731C343.683 391.404 333.599 400 321.786 400H150.261l-.001-.002c-18.366-.011-35.889-10.607-43.845-28.464C93.421 342.648 57.377 276.122 29.092 264 10.897 256.203.008 242.616 0 224c-.014-34.222 35.098-57.752 66.908-44.119 8.359 3.583 16.67 8.312 24.918 14.153V44.8c0-23.45 20.543-44.8 43.826-44.8zM136 416h192c13.255 0 24 10.745 24 24v48c0 13.255-10.745 24-24 24H136c-13.255 0-24-10.745-24-24v-48c0-13.255 10.745-24 24-24zm168 28c-11.046 0-20 8.954-20 20s8.954 20 20 20 20-8.954 20-20-8.954-20-20-20z"] };
  3079. var faHandPointer = { prefix: 'fas', iconName: 'hand-pointer', icon: [448, 512, [], "f25a", "M448 240v96c0 3.084-.356 6.159-1.063 9.162l-32 136C410.686 499.23 394.562 512 376 512H168a40.004 40.004 0 0 1-32.35-16.473l-127.997-176c-12.993-17.866-9.043-42.883 8.822-55.876 17.867-12.994 42.884-9.043 55.877 8.823L104 315.992V40c0-22.091 17.908-40 40-40s40 17.909 40 40v200h8v-40c0-22.091 17.908-40 40-40s40 17.909 40 40v40h8v-24c0-22.091 17.908-40 40-40s40 17.909 40 40v24h8c0-22.091 17.908-40 40-40s40 17.909 40 40zm-256 80h-8v96h8v-96zm88 0h-8v96h8v-96zm88 0h-8v96h8v-96z"] };
  3080. var faHandRock = { prefix: 'fas', iconName: 'hand-rock', icon: [512, 512, [], "f255", "M512 128.79c0-26.322-20.861-48.344-47.18-48.783C437.935 79.558 416 101.217 416 128h-8V96.79c0-26.322-20.861-48.344-47.18-48.783C333.935 47.558 312 69.217 312 96v32h-8V80.79c0-26.322-20.861-48.344-47.18-48.783C229.935 31.558 208 53.217 208 80v48h-8V96.79c0-26.322-20.861-48.344-47.18-48.783C125.935 47.558 104 69.217 104 96v136l-8-7.111V176.79c0-26.322-20.861-48.344-47.18-48.783C21.935 127.558 0 149.217 0 176v66.445a95.998 95.998 0 0 0 32.221 71.751l111.668 99.261A47.999 47.999 0 0 1 160 449.333V456c0 13.255 10.745 24 24 24h240c13.255 0 24-10.745 24-24v-2.921a96.01 96.01 0 0 1 7.523-37.254l48.954-116.265A96.002 96.002 0 0 0 512 262.306V128.79z"] };
  3081. var faHandScissors = { prefix: 'fas', iconName: 'hand-scissors', icon: [512, 512, [], "f257", "M216 440c0-22.092 17.909-40 40-40v-8h-32c-22.091 0-40-17.908-40-40s17.909-40 40-40h32v-8H48c-26.51 0-48-21.49-48-48s21.49-48 48-48h208v-13.572l-177.551-69.74c-24.674-9.694-36.818-37.555-27.125-62.228 9.693-24.674 37.554-36.817 62.228-27.124l190.342 74.765 24.872-31.09c12.306-15.381 33.978-19.515 51.081-9.741l112 64A40.002 40.002 0 0 1 512 168v240c0 18.562-12.77 34.686-30.838 38.937l-136 32A39.982 39.982 0 0 1 336 480h-80c-22.091 0-40-17.908-40-40z"] };
  3082. var faHandSpock = { prefix: 'fas', iconName: 'hand-spock', icon: [512, 512, [], "f259", "M10.872 316.585c15.139-16.086 40.454-16.854 56.543-1.713L128 371.893v-79.405L88.995 120.865c-4.896-21.542 8.598-42.974 30.14-47.87 21.549-4.894 42.975 8.599 47.87 30.141L201.747 256h9.833L164.016 48.966c-4.946-21.531 8.498-42.994 30.028-47.94 21.532-4.95 42.994 8.498 47.94 30.028L293.664 256h15.105l48.425-193.702c5.357-21.432 27.075-34.462 48.507-29.104 21.432 5.358 34.463 27.075 29.104 48.507L391.231 256h11.08l30.768-129.265c5.117-21.491 26.685-34.768 48.177-29.647 21.491 5.117 34.765 26.686 29.647 48.177l-36.292 152.467A96.024 96.024 0 0 0 472 319.967v42.102a96.002 96.002 0 0 1-3.96 27.287l-26.174 88.287C435.825 498.022 417.101 512 395.846 512H179.172a48.002 48.002 0 0 1-32.898-13.046L12.585 373.128c-16.087-15.141-16.853-40.456-1.713-56.543z"] };
  3083. var faHands = { prefix: 'fas', iconName: 'hands', icon: [640, 512, [], "f4c2", "M204.8 230.4c-10.6-14.1-30.7-17-44.8-6.4-14.1 10.6-17 30.7-6.4 44.8l38.1 50.8c4.8 6.4 4.1 15.3-1.5 20.9l-12.8 12.8c-6.7 6.7-17.6 6.2-23.6-1.1L64 244.4V96c0-17.7-14.3-32-32-32S0 78.3 0 96v218.4c0 10.9 3.7 21.5 10.5 30l104.1 134.3c5 6.5 8.4 13.9 10.4 21.7 1.8 6.9 8.1 11.6 15.3 11.6H272c8.8 0 16-7.2 16-16V384c0-27.7-9-54.6-25.6-76.8l-57.6-76.8zM608 64c-17.7 0-32 14.3-32 32v148.4l-89.8 107.8c-6 7.2-17 7.7-23.6 1.1l-12.8-12.8c-5.6-5.6-6.3-14.5-1.5-20.9l38.1-50.8c10.6-14.1 7.7-34.2-6.4-44.8-14.1-10.6-34.2-7.7-44.8 6.4l-57.6 76.8C361 329.4 352 356.3 352 384v112c0 8.8 7.2 16 16 16h131.7c7.1 0 13.5-4.7 15.3-11.6 2-7.8 5.4-15.2 10.4-21.7l104.1-134.3c6.8-8.5 10.5-19.1 10.5-30V96c0-17.7-14.3-32-32-32z"] };
  3084. var faHandsHelping = { prefix: 'fas', iconName: 'hands-helping', icon: [640, 512, [], "f4c4", "M488 192H336v56c0 39.7-32.3 72-72 72s-72-32.3-72-72V126.4l-64.9 39C107.8 176.9 96 197.8 96 220.2v47.3l-80 46.2C.7 322.5-4.6 342.1 4.3 357.4l80 138.6c8.8 15.3 28.4 20.5 43.7 11.7L231.4 448H368c35.3 0 64-28.7 64-64h16c17.7 0 32-14.3 32-32v-64h8c13.3 0 24-10.7 24-24v-48c0-13.3-10.7-24-24-24zm147.7-37.4L555.7 16C546.9.7 527.3-4.5 512 4.3L408.6 64H306.4c-12 0-23.7 3.4-33.9 9.7L239 94.6c-9.4 5.8-15 16.1-15 27.1V248c0 22.1 17.9 40 40 40s40-17.9 40-40v-88h184c30.9 0 56 25.1 56 56v28.5l80-46.2c15.3-8.9 20.5-28.4 11.7-43.7z"] };
  3085. var faHandshake = { prefix: 'fas', iconName: 'handshake', icon: [640, 512, [], "f2b5", "M434.7 64h-85.9c-8 0-15.7 3-21.6 8.4l-98.3 90c-.1.1-.2.3-.3.4-16.6 15.6-16.3 40.5-2.1 56 12.7 13.9 39.4 17.6 56.1 2.7.1-.1.3-.1.4-.2l79.9-73.2c6.5-5.9 16.7-5.5 22.6 1 6 6.5 5.5 16.6-1 22.6l-26.1 23.9L504 313.8c2.9 2.4 5.5 5 7.9 7.7V128l-54.6-54.6c-5.9-6-14.1-9.4-22.6-9.4zM544 128.2v223.9c0 17.7 14.3 32 32 32h64V128.2h-96zm48 223.9c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zM0 384h64c17.7 0 32-14.3 32-32V128.2H0V384zm48-63.9c8.8 0 16 7.2 16 16s-7.2 16-16 16-16-7.2-16-16c0-8.9 7.2-16 16-16zm435.9 18.6L334.6 217.5l-30 27.5c-29.7 27.1-75.2 24.5-101.7-4.4-26.9-29.4-24.8-74.9 4.4-101.7L289.1 64h-83.8c-8.5 0-16.6 3.4-22.6 9.4L128 128v223.9h18.3l90.5 81.9c27.4 22.3 67.7 18.1 90-9.3l.2-.2 17.9 15.5c15.9 13 39.4 10.5 52.3-5.4l31.4-38.6 5.4 4.4c13.7 11.1 33.9 9.1 45-4.7l9.5-11.7c11.2-13.8 9.1-33.9-4.6-45.1z"] };
  3086. var faHanukiah = { prefix: 'fas', iconName: 'hanukiah', icon: [640, 512, [], "f6e6", "M232 160c-4.42 0-8 3.58-8 8v120h32V168c0-4.42-3.58-8-8-8h-16zm-64 0c-4.42 0-8 3.58-8 8v120h32V168c0-4.42-3.58-8-8-8h-16zm224 0c-4.42 0-8 3.58-8 8v120h32V168c0-4.42-3.58-8-8-8h-16zm64 0c-4.42 0-8 3.58-8 8v120h32V168c0-4.42-3.58-8-8-8h-16zm88 8c0-4.42-3.58-8-8-8h-16c-4.42 0-8 3.58-8 8v120h32V168zm-440-8c-4.42 0-8 3.58-8 8v120h32V168c0-4.42-3.58-8-8-8h-16zm520 0h-32c-8.84 0-16 7.16-16 16v112c0 17.67-14.33 32-32 32H352V128c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v192H96c-17.67 0-32-14.33-32-32V176c0-8.84-7.16-16-16-16H16c-8.84 0-16 7.16-16 16v112c0 53.02 42.98 96 96 96h192v64H112c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h416c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16H352v-64h192c53.02 0 96-42.98 96-96V176c0-8.84-7.16-16-16-16zm-16-32c13.25 0 24-11.94 24-26.67S608 48 608 48s-24 38.61-24 53.33S594.75 128 608 128zm-576 0c13.25 0 24-11.94 24-26.67S32 48 32 48 8 86.61 8 101.33 18.75 128 32 128zm288-48c13.25 0 24-11.94 24-26.67S320 0 320 0s-24 38.61-24 53.33S306.75 80 320 80zm-208 48c13.25 0 24-11.94 24-26.67S112 48 112 48s-24 38.61-24 53.33S98.75 128 112 128zm64 0c13.25 0 24-11.94 24-26.67S176 48 176 48s-24 38.61-24 53.33S162.75 128 176 128zm64 0c13.25 0 24-11.94 24-26.67S240 48 240 48s-24 38.61-24 53.33S226.75 128 240 128zm160 0c13.25 0 24-11.94 24-26.67S400 48 400 48s-24 38.61-24 53.33S386.75 128 400 128zm64 0c13.25 0 24-11.94 24-26.67S464 48 464 48s-24 38.61-24 53.33S450.75 128 464 128zm64 0c13.25 0 24-11.94 24-26.67S528 48 528 48s-24 38.61-24 53.33S514.75 128 528 128z"] };
  3087. var faHashtag = { prefix: 'fas', iconName: 'hashtag', icon: [448, 512, [], "f292", "M440.667 182.109l7.143-40c1.313-7.355-4.342-14.109-11.813-14.109h-74.81l14.623-81.891C377.123 38.754 371.468 32 363.997 32h-40.632a12 12 0 0 0-11.813 9.891L296.175 128H197.54l14.623-81.891C213.477 38.754 207.822 32 200.35 32h-40.632a12 12 0 0 0-11.813 9.891L132.528 128H53.432a12 12 0 0 0-11.813 9.891l-7.143 40C33.163 185.246 38.818 192 46.289 192h74.81L98.242 320H19.146a12 12 0 0 0-11.813 9.891l-7.143 40C-1.123 377.246 4.532 384 12.003 384h74.81L72.19 465.891C70.877 473.246 76.532 480 84.003 480h40.632a12 12 0 0 0 11.813-9.891L151.826 384h98.634l-14.623 81.891C234.523 473.246 240.178 480 247.65 480h40.632a12 12 0 0 0 11.813-9.891L315.472 384h79.096a12 12 0 0 0 11.813-9.891l7.143-40c1.313-7.355-4.342-14.109-11.813-14.109h-74.81l22.857-128h79.096a12 12 0 0 0 11.813-9.891zM261.889 320h-98.634l22.857-128h98.634l-22.857 128z"] };
  3088. var faHatWizard = { prefix: 'fas', iconName: 'hat-wizard', icon: [512, 512, [], "f6e8", "M496 448H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h480c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zm-304-64l-64-32 64-32 32-64 32 64 64 32-64 32-16 32h208l-86.41-201.63a63.955 63.955 0 0 1-1.89-45.45L416 0 228.42 107.19a127.989 127.989 0 0 0-53.46 59.15L64 416h144l-16-32zm64-224l16-32 16 32 32 16-32 16-16 32-16-32-32-16 32-16z"] };
  3089. var faHaykal = { prefix: 'fas', iconName: 'haykal', icon: [512, 512, [], "f666", "M496.25 202.52l-110-15.44 41.82-104.34c6.67-16.64-11.6-32.18-26.59-22.63L307.44 120 273.35 12.82C270.64 4.27 263.32 0 256 0c-7.32 0-14.64 4.27-17.35 12.82l-34.09 107.19-94.04-59.89c-14.99-9.55-33.25 5.99-26.59 22.63l41.82 104.34-110 15.43c-17.54 2.46-21.68 26.27-6.03 34.67l98.16 52.66-74.48 83.54c-10.92 12.25-1.72 30.93 13.29 30.93 1.31 0 2.67-.14 4.07-.45l108.57-23.65-4.11 112.55c-.43 11.65 8.87 19.22 18.41 19.22 5.15 0 10.39-2.21 14.2-7.18l68.18-88.9 68.18 88.9c3.81 4.97 9.04 7.18 14.2 7.18 9.54 0 18.84-7.57 18.41-19.22l-4.11-112.55 108.57 23.65c17.36 3.76 29.21-17.2 17.35-30.49l-74.48-83.54 98.16-52.66c15.64-8.39 11.5-32.2-6.04-34.66zM338.51 311.68l-51.89-11.3 1.97 53.79L256 311.68l-32.59 42.49 1.96-53.79-51.89 11.3 35.6-39.93-46.92-25.17 52.57-7.38-19.99-49.87 44.95 28.62L256 166.72l16.29 51.23 44.95-28.62-19.99 49.87 52.57 7.38-46.92 25.17 35.61 39.93z"] };
  3090. var faHdd = { prefix: 'fas', iconName: 'hdd', icon: [576, 512, [], "f0a0", "M576 304v96c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48v-96c0-26.51 21.49-48 48-48h480c26.51 0 48 21.49 48 48zm-48-80a79.557 79.557 0 0 1 30.777 6.165L462.25 85.374A48.003 48.003 0 0 0 422.311 64H153.689a48 48 0 0 0-39.938 21.374L17.223 230.165A79.557 79.557 0 0 1 48 224h480zm-48 96c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm-96 0c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32z"] };
  3091. var faHeading = { prefix: 'fas', iconName: 'heading', icon: [512, 512, [], "f1dc", "M496 80V48c0-8.837-7.163-16-16-16H320c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h37.621v128H154.379V96H192c8.837 0 16-7.163 16-16V48c0-8.837-7.163-16-16-16H32c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h37.275v320H32c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h160c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16h-37.621V288H357.62v128H320c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h160c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16h-37.275V96H480c8.837 0 16-7.163 16-16z"] };
  3092. var faHeadphones = { prefix: 'fas', iconName: 'headphones', icon: [512, 512, [], "f025", "M256 32C114.52 32 0 146.496 0 288v48a32 32 0 0 0 17.689 28.622l14.383 7.191C34.083 431.903 83.421 480 144 480h24c13.255 0 24-10.745 24-24V280c0-13.255-10.745-24-24-24h-24c-31.342 0-59.671 12.879-80 33.627V288c0-105.869 86.131-192 192-192s192 86.131 192 192v1.627C427.671 268.879 399.342 256 368 256h-24c-13.255 0-24 10.745-24 24v176c0 13.255 10.745 24 24 24h24c60.579 0 109.917-48.098 111.928-108.187l14.382-7.191A32 32 0 0 0 512 336v-48c0-141.479-114.496-256-256-256z"] };
  3093. var faHeadphonesAlt = { prefix: 'fas', iconName: 'headphones-alt', icon: [512, 512, [], "f58f", "M160 288h-16c-35.35 0-64 28.7-64 64.12v63.76c0 35.41 28.65 64.12 64 64.12h16c17.67 0 32-14.36 32-32.06V320.06c0-17.71-14.33-32.06-32-32.06zm208 0h-16c-17.67 0-32 14.35-32 32.06v127.88c0 17.7 14.33 32.06 32 32.06h16c35.35 0 64-28.71 64-64.12v-63.76c0-35.41-28.65-64.12-64-64.12zM256 32C112.91 32 4.57 151.13 0 288v112c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16V288c0-114.67 93.33-207.8 208-207.82 114.67.02 208 93.15 208 207.82v112c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16V288C507.43 151.13 399.09 32 256 32z"] };
  3094. var faHeadset = { prefix: 'fas', iconName: 'headset', icon: [512, 512, [], "f590", "M192 208c0-17.67-14.33-32-32-32h-16c-35.35 0-64 28.65-64 64v48c0 35.35 28.65 64 64 64h16c17.67 0 32-14.33 32-32V208zm176 144c35.35 0 64-28.65 64-64v-48c0-35.35-28.65-64-64-64h-16c-17.67 0-32 14.33-32 32v112c0 17.67 14.33 32 32 32h16zM256 0C113.18 0 4.58 118.83 0 256v16c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16v-16c0-114.69 93.31-208 208-208s208 93.31 208 208h-.12c.08 2.43.12 165.72.12 165.72 0 23.35-18.93 42.28-42.28 42.28H320c0-26.51-21.49-48-48-48h-32c-26.51 0-48 21.49-48 48s21.49 48 48 48h181.72c49.86 0 90.28-40.42 90.28-90.28V256C507.42 118.83 398.82 0 256 0z"] };
  3095. var faHeart = { prefix: 'fas', iconName: 'heart', icon: [512, 512, [], "f004", "M462.3 62.6C407.5 15.9 326 24.3 275.7 76.2L256 96.5l-19.7-20.3C186.1 24.3 104.5 15.9 49.7 62.6c-62.8 53.6-66.1 149.8-9.9 207.9l193.5 199.8c12.5 12.9 32.8 12.9 45.3 0l193.5-199.8c56.3-58.1 53-154.3-9.8-207.9z"] };
  3096. var faHeartbeat = { prefix: 'fas', iconName: 'heartbeat', icon: [512, 512, [], "f21e", "M320.2 243.8l-49.7 99.4c-6 12.1-23.4 11.7-28.9-.6l-56.9-126.3-30 71.7H60.6l182.5 186.5c7.1 7.3 18.6 7.3 25.7 0L451.4 288H342.3l-22.1-44.2zM473.7 73.9l-2.4-2.5c-51.5-52.6-135.8-52.6-187.4 0L256 100l-27.9-28.5c-51.5-52.7-135.9-52.7-187.4 0l-2.4 2.4C-10.4 123.7-12.5 203 31 256h102.4l35.9-86.2c5.4-12.9 23.6-13.2 29.4-.4l58.2 129.3 49-97.9c5.9-11.8 22.7-11.8 28.6 0l27.6 55.2H481c43.5-53 41.4-132.3-7.3-182.1z"] };
  3097. var faHelicopter = { prefix: 'fas', iconName: 'helicopter', icon: [640, 512, [], "f533", "M304 384h272c17.67 0 32-14.33 32-32 0-123.71-100.29-224-224-224V64h176c8.84 0 16-7.16 16-16V16c0-8.84-7.16-16-16-16H144c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h176v64H112L68.8 70.4C65.78 66.37 61.03 64 56 64H16.01C5.6 64-2.04 73.78.49 83.88L32 192l160 64 86.4 115.2A31.992 31.992 0 0 0 304 384zm112-188.49C478.55 208.3 528.03 257.44 540.79 320H416V195.51zm219.37 263.3l-22.15-22.2c-6.25-6.26-16.24-6.1-22.64.01-7.09 6.77-13.84 11.25-24.64 11.25H240c-8.84 0-16 7.18-16 16.03v32.06c0 8.85 7.16 16.03 16 16.03h325.94c14.88 0 35.3-.47 68.45-29.52 7.02-6.14 7.57-17.05.98-23.66z"] };
  3098. var faHighlighter = { prefix: 'fas', iconName: 'highlighter', icon: [544, 512, [], "f591", "M0 479.98L99.92 512l35.45-35.45-67.04-67.04L0 479.98zm124.61-240.01a36.592 36.592 0 0 0-10.79 38.1l13.05 42.83-50.93 50.94 96.23 96.23 50.86-50.86 42.74 13.08c13.73 4.2 28.65-.01 38.15-10.78l35.55-41.64-173.34-173.34-41.52 35.44zm403.31-160.7l-63.2-63.2c-20.49-20.49-53.38-21.52-75.12-2.35L190.55 183.68l169.77 169.78L530.27 154.4c19.18-21.74 18.15-54.63-2.35-75.13z"] };
  3099. var faHiking = { prefix: 'fas', iconName: 'hiking', icon: [384, 512, [], "f6ec", "M80.95 472.23c-4.28 17.16 6.14 34.53 23.28 38.81 2.61.66 5.22.95 7.8.95 14.33 0 27.37-9.7 31.02-24.23l25.24-100.97-52.78-52.78-34.56 138.22zm14.89-196.12L137 117c2.19-8.42-3.14-16.95-11.92-19.06-43.88-10.52-88.35 15.07-99.32 57.17L.49 253.24c-2.19 8.42 3.14 16.95 11.92 19.06l63.56 15.25c8.79 2.1 17.68-3.02 19.87-11.44zM368 160h-16c-8.84 0-16 7.16-16 16v16h-34.75l-46.78-46.78C243.38 134.11 228.61 128 212.91 128c-27.02 0-50.47 18.3-57.03 44.52l-26.92 107.72a32.012 32.012 0 0 0 8.42 30.39L224 397.25V480c0 17.67 14.33 32 32 32s32-14.33 32-32v-82.75c0-17.09-6.66-33.16-18.75-45.25l-46.82-46.82c.15-.5.49-.89.62-1.41l19.89-79.57 22.43 22.43c6 6 14.14 9.38 22.62 9.38h48v240c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16V176c.01-8.84-7.15-16-15.99-16zM240 96c26.51 0 48-21.49 48-48S266.51 0 240 0s-48 21.49-48 48 21.49 48 48 48z"] };
  3100. var faHippo = { prefix: 'fas', iconName: 'hippo', icon: [640, 512, [], "f6ed", "M581.12 96.2c-27.67-.15-52.5 17.58-76.6 26.62C489.98 88.27 455.83 64 416 64c-11.28 0-21.95 2.3-32 5.88V56c0-13.26-10.75-24-24-24h-16c-13.25 0-24 10.74-24 24v48.98C286.01 79.58 241.24 64 192 64 85.96 64 0 135.64 0 224v240c0 8.84 7.16 16 16 16h64c8.84 0 16-7.16 16-16v-70.79C128.35 407.57 166.72 416 208 416s79.65-8.43 112-22.79V464c0 8.84 7.16 16 16 16h64c8.84 0 16-7.16 16-16V288h128v32c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-32c17.67 0 32-14.33 32-32v-92.02c0-34.09-24.79-67.59-58.88-67.78zM448 176c-8.84 0-16-7.16-16-16s7.16-16 16-16 16 7.16 16 16-7.16 16-16 16z"] };
  3101. var faHistory = { prefix: 'fas', iconName: 'history', icon: [512, 512, [], "f1da", "M504 255.531c.253 136.64-111.18 248.372-247.82 248.468-59.015.042-113.223-20.53-155.822-54.911-11.077-8.94-11.905-25.541-1.839-35.607l11.267-11.267c8.609-8.609 22.353-9.551 31.891-1.984C173.062 425.135 212.781 440 256 440c101.705 0 184-82.311 184-184 0-101.705-82.311-184-184-184-48.814 0-93.149 18.969-126.068 49.932l50.754 50.754c10.08 10.08 2.941 27.314-11.313 27.314H24c-8.837 0-16-7.163-16-16V38.627c0-14.254 17.234-21.393 27.314-11.314l49.372 49.372C129.209 34.136 189.552 8 256 8c136.81 0 247.747 110.78 248 247.531zm-180.912 78.784l9.823-12.63c8.138-10.463 6.253-25.542-4.21-33.679L288 256.349V152c0-13.255-10.745-24-24-24h-16c-13.255 0-24 10.745-24 24v135.651l65.409 50.874c10.463 8.137 25.541 6.253 33.679-4.21z"] };
  3102. var faHockeyPuck = { prefix: 'fas', iconName: 'hockey-puck', icon: [512, 512, [], "f453", "M0 160c0-53 114.6-96 256-96s256 43 256 96-114.6 96-256 96S0 213 0 160zm0 82.2V352c0 53 114.6 96 256 96s256-43 256-96V242.2c-113.4 82.3-398.5 82.4-512 0z"] };
  3103. var faHome = { prefix: 'fas', iconName: 'home', icon: [576, 512, [], "f015", "M488 312.7V456c0 13.3-10.7 24-24 24H348c-6.6 0-12-5.4-12-12V356c0-6.6-5.4-12-12-12h-72c-6.6 0-12 5.4-12 12v112c0 6.6-5.4 12-12 12H112c-13.3 0-24-10.7-24-24V312.7c0-3.6 1.6-7 4.4-9.3l188-154.8c4.4-3.6 10.8-3.6 15.3 0l188 154.8c2.7 2.3 4.3 5.7 4.3 9.3zm83.6-60.9L488 182.9V44.4c0-6.6-5.4-12-12-12h-56c-6.6 0-12 5.4-12 12V117l-89.5-73.7c-17.7-14.6-43.3-14.6-61 0L4.4 251.8c-5.1 4.2-5.8 11.8-1.6 16.9l25.5 31c4.2 5.1 11.8 5.8 16.9 1.6l235.2-193.7c4.4-3.6 10.8-3.6 15.3 0l235.2 193.7c5.1 4.2 12.7 3.5 16.9-1.6l25.5-31c4.2-5.2 3.4-12.7-1.7-16.9z"] };
  3104. var faHorse = { prefix: 'fas', iconName: 'horse', icon: [576, 512, [], "f6f0", "M575.92 76.6c-.01-8.13-3.02-15.87-8.58-21.8-3.78-4.03-8.58-9.12-13.69-14.5 11.06-6.84 19.5-17.49 22.18-30.66C576.85 4.68 572.96 0 567.9 0H447.92c-70.69 0-128 57.31-128 128H160c-28.84 0-54.4 12.98-72 33.11V160c-48.53 0-88 39.47-88 88v56c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16v-56c0-13.22 6.87-24.39 16.78-31.68-.21 2.58-.78 5.05-.78 7.68 0 27.64 11.84 52.36 30.54 69.88l-25.72 68.6a63.945 63.945 0 0 0-2.16 37.99l24.85 99.41A15.982 15.982 0 0 0 107.02 512h65.96c10.41 0 18.05-9.78 15.52-19.88l-26.31-105.26 23.84-63.59L320 345.6V496c0 8.84 7.16 16 16 16h64c8.84 0 16-7.16 16-16V318.22c19.74-20.19 32-47.75 32-78.22 0-.22-.07-.42-.08-.64V136.89l16 7.11 18.9 37.7c7.45 14.87 25.05 21.55 40.49 15.37l32.55-13.02a31.997 31.997 0 0 0 20.12-29.74l-.06-77.71zm-64 19.4c-8.84 0-16-7.16-16-16s7.16-16 16-16 16 7.16 16 16-7.16 16-16 16z"] };
  3105. var faHospital = { prefix: 'fas', iconName: 'hospital', icon: [448, 512, [], "f0f8", "M448 492v20H0v-20c0-6.627 5.373-12 12-12h20V120c0-13.255 10.745-24 24-24h88V24c0-13.255 10.745-24 24-24h112c13.255 0 24 10.745 24 24v72h88c13.255 0 24 10.745 24 24v360h20c6.627 0 12 5.373 12 12zM308 192h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12zm-168 64h40c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12zm104 128h-40c-6.627 0-12 5.373-12 12v84h64v-84c0-6.627-5.373-12-12-12zm64-96h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12zm-116 12c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12v-40zM182 96h26v26a6 6 0 0 0 6 6h20a6 6 0 0 0 6-6V96h26a6 6 0 0 0 6-6V70a6 6 0 0 0-6-6h-26V38a6 6 0 0 0-6-6h-20a6 6 0 0 0-6 6v26h-26a6 6 0 0 0-6 6v20a6 6 0 0 0 6 6z"] };
  3106. var faHospitalAlt = { prefix: 'fas', iconName: 'hospital-alt', icon: [576, 512, [], "f47d", "M544 96H416V32c0-17.7-14.3-32-32-32H192c-17.7 0-32 14.3-32 32v64H32c-17.7 0-32 14.3-32 32v368c0 8.8 7.2 16 16 16h544c8.8 0 16-7.2 16-16V128c0-17.7-14.3-32-32-32zM160 436c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-128c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm160 128c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-128c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm16-170c0 3.3-2.7 6-6 6h-26v26c0 3.3-2.7 6-6 6h-20c-3.3 0-6-2.7-6-6v-26h-26c-3.3 0-6-2.7-6-6v-20c0-3.3 2.7-6 6-6h26V86c0-3.3 2.7-6 6-6h20c3.3 0 6 2.7 6 6v26h26c3.3 0 6 2.7 6 6v20zm144 298c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-128c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40z"] };
  3107. var faHospitalSymbol = { prefix: 'fas', iconName: 'hospital-symbol', icon: [512, 512, [], "f47e", "M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256 256-114.6 256-256S397.4 0 256 0zm112 376c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-88h-96v88c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V136c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v88h96v-88c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v240z"] };
  3108. var faHotTub = { prefix: 'fas', iconName: 'hot-tub', icon: [512, 512, [], "f593", "M414.21 177.65c1.02 8.21 7.75 14.35 15.75 14.35h16.12c9.51 0 17.08-8.57 16-18.35-4.34-39.11-22.4-74.53-50.13-97.16-17.37-14.17-28.82-36.75-31.98-62.15C378.96 6.14 372.22 0 364.23 0h-16.12c-9.51 0-17.09 8.57-16 18.35 4.34 39.11 22.4 74.53 50.13 97.16 17.36 14.17 28.82 36.75 31.97 62.14zm-108 0c1.02 8.21 7.75 14.35 15.75 14.35h16.12c9.51 0 17.08-8.57 16-18.35-4.34-39.11-22.4-74.53-50.13-97.16-17.37-14.17-28.82-36.75-31.98-62.15C270.96 6.14 264.22 0 256.23 0h-16.12c-9.51 0-17.09 8.57-16 18.35 4.34 39.11 22.4 74.53 50.13 97.16 17.36 14.17 28.82 36.75 31.97 62.14zM480 256H256l-110.93-83.2a63.99 63.99 0 0 0-38.4-12.8H64c-35.35 0-64 28.65-64 64v224c0 35.35 28.65 64 64 64h384c35.35 0 64-28.65 64-64V288c0-17.67-14.33-32-32-32zM128 440c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8V328c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v112zm96 0c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8V328c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v112zm96 0c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8V328c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v112zm96 0c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8V328c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v112zM64 128c35.35 0 64-28.65 64-64S99.35 0 64 0 0 28.65 0 64s28.65 64 64 64z"] };
  3109. var faHotel = { prefix: 'fas', iconName: 'hotel', icon: [576, 512, [], "f594", "M560 64c8.84 0 16-7.16 16-16V16c0-8.84-7.16-16-16-16H16C7.16 0 0 7.16 0 16v32c0 8.84 7.16 16 16 16h15.98v384H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h240v-80c0-8.8 7.2-16 16-16h32c8.8 0 16 7.2 16 16v80h240c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16h-16V64h16zm-304 44.8c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4c0 6.4-6.4 12.8-12.8 12.8h-38.4c-6.4 0-12.8-6.4-12.8-12.8v-38.4zm0 96c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4c0 6.4-6.4 12.8-12.8 12.8h-38.4c-6.4 0-12.8-6.4-12.8-12.8v-38.4zm-128-96c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4c0 6.4-6.4 12.8-12.8 12.8h-38.4c-6.4 0-12.8-6.4-12.8-12.8v-38.4zM179.2 256h-38.4c-6.4 0-12.8-6.4-12.8-12.8v-38.4c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4c0 6.4-6.4 12.8-12.8 12.8zM192 384c0-53.02 42.98-96 96-96s96 42.98 96 96H192zm256-140.8c0 6.4-6.4 12.8-12.8 12.8h-38.4c-6.4 0-12.8-6.4-12.8-12.8v-38.4c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4zm0-96c0 6.4-6.4 12.8-12.8 12.8h-38.4c-6.4 0-12.8-6.4-12.8-12.8v-38.4c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4z"] };
  3110. var faHourglass = { prefix: 'fas', iconName: 'hourglass', icon: [384, 512, [], "f254", "M360 64c13.255 0 24-10.745 24-24V24c0-13.255-10.745-24-24-24H24C10.745 0 0 10.745 0 24v16c0 13.255 10.745 24 24 24 0 90.965 51.016 167.734 120.842 192C75.016 280.266 24 357.035 24 448c-13.255 0-24 10.745-24 24v16c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24 0-90.965-51.016-167.734-120.842-192C308.984 231.734 360 154.965 360 64z"] };
  3111. var faHourglassEnd = { prefix: 'fas', iconName: 'hourglass-end', icon: [384, 512, [], "f253", "M360 64c13.255 0 24-10.745 24-24V24c0-13.255-10.745-24-24-24H24C10.745 0 0 10.745 0 24v16c0 13.255 10.745 24 24 24 0 90.965 51.016 167.734 120.842 192C75.016 280.266 24 357.035 24 448c-13.255 0-24 10.745-24 24v16c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24 0-90.965-51.016-167.734-120.842-192C308.984 231.734 360 154.965 360 64zM192 208c-57.787 0-104-66.518-104-144h208c0 77.945-46.51 144-104 144z"] };
  3112. var faHourglassHalf = { prefix: 'fas', iconName: 'hourglass-half', icon: [384, 512, [], "f252", "M360 0H24C10.745 0 0 10.745 0 24v16c0 13.255 10.745 24 24 24 0 90.965 51.016 167.734 120.842 192C75.016 280.266 24 357.035 24 448c-13.255 0-24 10.745-24 24v16c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24 0-90.965-51.016-167.734-120.842-192C308.984 231.734 360 154.965 360 64c13.255 0 24-10.745 24-24V24c0-13.255-10.745-24-24-24zm-75.078 384H99.08c17.059-46.797 52.096-80 92.92-80 40.821 0 75.862 33.196 92.922 80zm.019-256H99.078C91.988 108.548 88 86.748 88 64h208c0 22.805-3.987 44.587-11.059 64z"] };
  3113. var faHourglassStart = { prefix: 'fas', iconName: 'hourglass-start', icon: [384, 512, [], "f251", "M360 0H24C10.745 0 0 10.745 0 24v16c0 13.255 10.745 24 24 24 0 90.965 51.016 167.734 120.842 192C75.016 280.266 24 357.035 24 448c-13.255 0-24 10.745-24 24v16c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24 0-90.965-51.016-167.734-120.842-192C308.984 231.734 360 154.965 360 64c13.255 0 24-10.745 24-24V24c0-13.255-10.745-24-24-24zm-64 448H88c0-77.458 46.204-144 104-144 57.786 0 104 66.517 104 144z"] };
  3114. var faHouseDamage = { prefix: 'fas', iconName: 'house-damage', icon: [576, 512, [], "f6f1", "M288 114.96L69.47 307.71c-1.62 1.46-3.69 2.14-5.47 3.35V496c0 8.84 7.16 16 16 16h149.23L192 439.19l104.11-64-60.16-119.22L384 392.75l-104.11 64L319.81 512H496c8.84 0 16-7.16 16-16V311.1c-1.7-1.16-3.72-1.82-5.26-3.2L288 114.96zm282.69 121.32L512 184.45V48c0-8.84-7.16-16-16-16h-64c-8.84 0-16 7.16-16 16v51.69L314.75 10.31C307.12 3.45 297.56.01 288 0s-19.1 3.41-26.7 10.27L5.31 236.28c-6.57 5.91-7.12 16.02-1.21 22.6l21.4 23.82c5.9 6.57 16.02 7.12 22.6 1.21L277.42 81.63c6.05-5.33 15.12-5.33 21.17 0L527.91 283.9c6.57 5.9 16.69 5.36 22.6-1.21l21.4-23.82c5.9-6.57 5.36-16.69-1.22-22.59z"] };
  3115. var faHryvnia = { prefix: 'fas', iconName: 'hryvnia', icon: [384, 512, [], "f6f2", "M368 240c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16h-41.86c13.41-28.63 13.74-63.33-4.13-94.05C303.34 49.84 267.1 32 229.96 32h-78.82c-24.32 0-47.86 8.53-66.54 24.09L72.83 65.9c-10.18 8.49-11.56 23.62-3.07 33.8l20.49 24.59c8.49 10.19 23.62 11.56 33.81 3.07l11.73-9.78c4.32-3.6 9.77-5.57 15.39-5.57h83.62c11.69 0 21.2 9.52 21.2 21.2 0 5.91-2.48 11.58-6.81 15.58L219.7 176H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h134.37l-34.67 32H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h41.86c-13.41 28.63-13.74 63.33 4.13 94.05C80.66 462.15 116.9 480 154.04 480h78.82c24.32 0 47.86-8.53 66.54-24.09l11.77-9.81c10.18-8.49 11.56-23.62 3.07-33.8l-20.49-24.59c-8.49-10.19-23.62-11.56-33.81-3.07l-11.75 9.8a23.992 23.992 0 0 1-15.36 5.56H149.2c-11.69 0-21.2-9.52-21.2-21.2 0-5.91 2.48-11.58 6.81-15.58L164.3 336H368c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16H233.63l34.67-32H368z"] };
  3116. var faICursor = { prefix: 'fas', iconName: 'i-cursor', icon: [256, 512, [], "f246", "M256 52.048V12.065C256 5.496 250.726.148 244.158.066 211.621-.344 166.469.011 128 37.959 90.266.736 46.979-.114 11.913.114 5.318.157 0 5.519 0 12.114v39.645c0 6.687 5.458 12.078 12.145 11.998C38.111 63.447 96 67.243 96 112.182V224H60c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h36v112c0 44.932-56.075 48.031-83.95 47.959C5.404 447.942 0 453.306 0 459.952v39.983c0 6.569 5.274 11.917 11.842 11.999 32.537.409 77.689.054 116.158-37.894 37.734 37.223 81.021 38.073 116.087 37.845 6.595-.043 11.913-5.405 11.913-12V460.24c0-6.687-5.458-12.078-12.145-11.998C217.889 448.553 160 444.939 160 400V288h36c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-36V112.182c0-44.932 56.075-48.213 83.95-48.142 6.646.018 12.05-5.346 12.05-11.992z"] };
  3117. var faIdBadge = { prefix: 'fas', iconName: 'id-badge', icon: [384, 512, [], "f2c1", "M336 0H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zM144 32h96c8.8 0 16 7.2 16 16s-7.2 16-16 16h-96c-8.8 0-16-7.2-16-16s7.2-16 16-16zm48 128c35.3 0 64 28.7 64 64s-28.7 64-64 64-64-28.7-64-64 28.7-64 64-64zm112 236.8c0 10.6-10 19.2-22.4 19.2H102.4C90 416 80 407.4 80 396.8v-19.2c0-31.8 30.1-57.6 67.2-57.6h5c12.3 5.1 25.7 8 39.8 8s27.6-2.9 39.8-8h5c37.1 0 67.2 25.8 67.2 57.6v19.2z"] };
  3118. var faIdCard = { prefix: 'fas', iconName: 'id-card', icon: [576, 512, [], "f2c2", "M528 32H48C21.5 32 0 53.5 0 80v16h576V80c0-26.5-21.5-48-48-48zM0 432c0 26.5 21.5 48 48 48h480c26.5 0 48-21.5 48-48V128H0v304zm352-232c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H360c-4.4 0-8-3.6-8-8v-16zm0 64c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H360c-4.4 0-8-3.6-8-8v-16zm0 64c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H360c-4.4 0-8-3.6-8-8v-16zM176 192c35.3 0 64 28.7 64 64s-28.7 64-64 64-64-28.7-64-64 28.7-64 64-64zM67.1 396.2C75.5 370.5 99.6 352 128 352h8.2c12.3 5.1 25.7 8 39.8 8s27.6-2.9 39.8-8h8.2c28.4 0 52.5 18.5 60.9 44.2 3.2 9.9-5.2 19.8-15.6 19.8H82.7c-10.4 0-18.8-10-15.6-19.8z"] };
  3119. var faIdCardAlt = { prefix: 'fas', iconName: 'id-card-alt', icon: [576, 512, [], "f47f", "M528 64H384v96H192V64H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h480c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zM288 224c35.3 0 64 28.7 64 64s-28.7 64-64 64-64-28.7-64-64 28.7-64 64-64zm93.3 224H194.7c-10.4 0-18.8-10-15.6-19.8 8.3-25.6 32.4-44.2 60.9-44.2h8.2c12.3 5.1 25.7 8 39.8 8s27.6-2.9 39.8-8h8.2c28.4 0 52.5 18.5 60.9 44.2 3.2 9.8-5.2 19.8-15.6 19.8zM352 32c0-17.7-14.3-32-32-32h-64c-17.7 0-32 14.3-32 32v96h128V32z"] };
  3120. var faImage = { prefix: 'fas', iconName: 'image', icon: [512, 512, [], "f03e", "M464 448H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48zM112 120c-30.928 0-56 25.072-56 56s25.072 56 56 56 56-25.072 56-56-25.072-56-56-56zM64 384h384V272l-87.515-87.515c-4.686-4.686-12.284-4.686-16.971 0L208 320l-55.515-55.515c-4.686-4.686-12.284-4.686-16.971 0L64 336v48z"] };
  3121. var faImages = { prefix: 'fas', iconName: 'images', icon: [576, 512, [], "f302", "M480 416v16c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V176c0-26.51 21.49-48 48-48h16v208c0 44.112 35.888 80 80 80h336zm96-80V80c0-26.51-21.49-48-48-48H144c-26.51 0-48 21.49-48 48v256c0 26.51 21.49 48 48 48h384c26.51 0 48-21.49 48-48zM256 128c0 26.51-21.49 48-48 48s-48-21.49-48-48 21.49-48 48-48 48 21.49 48 48zm-96 144l55.515-55.515c4.686-4.686 12.284-4.686 16.971 0L272 256l135.515-135.515c4.686-4.686 12.284-4.686 16.971 0L512 208v112H160v-48z"] };
  3122. var faInbox = { prefix: 'fas', iconName: 'inbox', icon: [576, 512, [], "f01c", "M567.938 243.908L462.25 85.374A48.003 48.003 0 0 0 422.311 64H153.689a48 48 0 0 0-39.938 21.374L8.062 243.908A47.994 47.994 0 0 0 0 270.533V400c0 26.51 21.49 48 48 48h480c26.51 0 48-21.49 48-48V270.533a47.994 47.994 0 0 0-8.062-26.625zM162.252 128h251.497l85.333 128H376l-32 64H232l-32-64H76.918l85.334-128z"] };
  3123. var faIndent = { prefix: 'fas', iconName: 'indent', icon: [448, 512, [], "f03c", "M0 84V44c0-8.837 7.163-16 16-16h416c8.837 0 16 7.163 16 16v40c0 8.837-7.163 16-16 16H16c-8.837 0-16-7.163-16-16zm176 144h256c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H176c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zM16 484h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm160-128h256c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H176c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm-52.687-111.313l-96-95.984C17.266 138.652 0 145.776 0 160.016v191.975c0 14.329 17.325 21.304 27.313 11.313l96-95.992c6.249-6.247 6.249-16.377 0-22.625z"] };
  3124. var faIndustry = { prefix: 'fas', iconName: 'industry', icon: [512, 512, [], "f275", "M475.115 163.781L336 252.309v-68.28c0-18.916-20.931-30.399-36.885-20.248L160 252.309V56c0-13.255-10.745-24-24-24H24C10.745 32 0 42.745 0 56v400c0 13.255 10.745 24 24 24h464c13.255 0 24-10.745 24-24V184.029c0-18.917-20.931-30.399-36.885-20.248z"] };
  3125. var faInfinity = { prefix: 'fas', iconName: 'infinity', icon: [640, 512, [], "f534", "M471.1 96C405 96 353.3 137.3 320 174.6 286.7 137.3 235 96 168.9 96 75.8 96 0 167.8 0 256s75.8 160 168.9 160c66.1 0 117.8-41.3 151.1-78.6 33.3 37.3 85 78.6 151.1 78.6 93.1 0 168.9-71.8 168.9-160S564.2 96 471.1 96zM168.9 320c-40.2 0-72.9-28.7-72.9-64s32.7-64 72.9-64c38.2 0 73.4 36.1 94 64-20.4 27.6-55.9 64-94 64zm302.2 0c-38.2 0-73.4-36.1-94-64 20.4-27.6 55.9-64 94-64 40.2 0 72.9 28.7 72.9 64s-32.7 64-72.9 64z"] };
  3126. var faInfo = { prefix: 'fas', iconName: 'info', icon: [192, 512, [], "f129", "M20 424.229h20V279.771H20c-11.046 0-20-8.954-20-20V212c0-11.046 8.954-20 20-20h112c11.046 0 20 8.954 20 20v212.229h20c11.046 0 20 8.954 20 20V492c0 11.046-8.954 20-20 20H20c-11.046 0-20-8.954-20-20v-47.771c0-11.046 8.954-20 20-20zM96 0C56.235 0 24 32.235 24 72s32.235 72 72 72 72-32.235 72-72S135.764 0 96 0z"] };
  3127. var faInfoCircle = { prefix: 'fas', iconName: 'info-circle', icon: [512, 512, [], "f05a", "M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z"] };
  3128. var faItalic = { prefix: 'fas', iconName: 'italic', icon: [320, 512, [], "f033", "M204.758 416h-33.849l62.092-320h40.725a16 16 0 0 0 15.704-12.937l6.242-32C297.599 41.184 290.034 32 279.968 32H120.235a16 16 0 0 0-15.704 12.937l-6.242 32C96.362 86.816 103.927 96 113.993 96h33.846l-62.09 320H46.278a16 16 0 0 0-15.704 12.935l-6.245 32C22.402 470.815 29.967 480 40.034 480h158.479a16 16 0 0 0 15.704-12.935l6.245-32c1.927-9.88-5.638-19.065-15.704-19.065z"] };
  3129. var faJedi = { prefix: 'fas', iconName: 'jedi', icon: [544, 512, [], "f669", "M479.99 352l58.88-58.87c3.29-16.8 5.13-34.12 5.13-51.86 0-5.81-.68-11.51-1.05-17.27H496l41.25-41.24c-14.5-64.79-52.43-123.05-107.91-162.27-2.77-1.96-5.97-2.99-9.25-2.99-5.37 0-10.41 2.71-13.49 7.24-3.05 4.49-3.64 9.99-1.61 15.09 6.55 16.46 9.86 33.73 9.86 51.31 0 45.12-21.03 86.57-57.69 113.73-4.02 2.98-6.46 7.5-6.7 12.4-.24 4.92 1.76 9.66 5.49 13.03 32.93 29.75 47.35 73.51 38.57 117.07-9.74 48.35-48.84 87.1-97.31 96.5l-2.5-65.34L321.88 397c2.98 2.06 7.39 1.69 10.02-.8a8.002 8.002 0 0 0 1.34-9.92l-20.11-33.73 42.07-8.72c3.7-.75 6.38-4.05 6.38-7.83 0-3.77-2.69-7.06-6.38-7.83l-42.07-8.73 20.13-33.77c1.92-3.23 1.34-7.31-1.38-9.91-2.7-2.55-6.97-2.89-10-.8l-30.39 20.67L279.96 7.7a7.964 7.964 0 0 0-8-7.7c-4.33 0-7.84 3.38-8 7.67l-11.52 287.97-30.39-20.66c-3.14-2.12-7.27-1.83-10 .78-2.72 2.59-3.3 6.67-1.36 9.94l20.11 33.73-42.07 8.73c-3.7.75-6.38 4.05-6.38 7.83s2.67 7.08 6.38 7.83l42.07 8.72-20.13 33.77c-1.92 3.23-1.34 7.33 1.39 9.94 2.59 2.45 7.03 2.75 10 .75l27.16-18.48-2.5 65.26c-56.94-11.64-99.89-61.89-99.89-121.92 0-35.08 14.62-67.6 41.17-91.58 3.72-3.36 5.72-8.11 5.48-13.01-.24-4.9-2.68-9.41-6.69-12.38-36.67-27.16-57.71-68.62-57.71-113.74 0-17.56 3.31-34.81 9.84-51.26 2.02-5.09 1.43-10.59-1.62-15.09-3.08-4.54-8.13-7.25-13.51-7.25-3.3 0-6.5 1.04-9.27 3-55.87 39.52-93.6 97.37-107.97 162.07L47.93 224H.72c-.63 9.92-.97 19.91-.5 29.99.62 13.43 2.54 26.53 5.11 39.41l58.6 58.6H24.02c41.25 90.23 131.13 154.94 235.1 159.71 4.3.2 8.59.29 12.85.29 110.34 0 205.35-65.83 247.98-160h-39.96z"] };
  3130. var faJoint = { prefix: 'fas', iconName: 'joint', icon: [640, 512, [], "f595", "M444.34 181.1c22.38 15.68 35.66 41.16 35.66 68.59V280c0 4.42 3.58 8 8 8h48c4.42 0 8-3.58 8-8v-30.31c0-43.24-21.01-83.41-56.34-108.06C463.85 125.02 448 99.34 448 70.31V8c0-4.42-3.58-8-8-8h-48c-4.42 0-8 3.58-8 8v66.4c0 43.69 24.56 81.63 60.34 106.7zM194.97 358.98C126.03 370.07 59.69 394.69 0 432c83.65 52.28 180.3 80 278.94 80h88.57L254.79 380.49c-14.74-17.2-37.45-25.11-59.82-21.51zM553.28 87.09c-5.67-3.8-9.28-9.96-9.28-16.78V8c0-4.42-3.58-8-8-8h-48c-4.42 0-8 3.58-8 8v62.31c0 22.02 10.17 43.41 28.64 55.39C550.79 153.04 576 199.54 576 249.69V280c0 4.42 3.58 8 8 8h48c4.42 0 8-3.58 8-8v-30.31c0-65.44-32.41-126.19-86.72-162.6zM360.89 352.05c-34.4.06-86.81.15-88.21.17l117.8 137.43A63.987 63.987 0 0 0 439.07 512h88.45L409.57 374.4a63.955 63.955 0 0 0-48.68-22.35zM616 352H432l117.99 137.65A63.987 63.987 0 0 0 598.58 512H616c13.25 0 24-10.75 24-24V376c0-13.26-10.75-24-24-24z"] };
  3131. var faJournalWhills = { prefix: 'fas', iconName: 'journal-whills', icon: [448, 512, [], "f66a", "M448 358.4V25.6c0-16-9.6-25.6-25.6-25.6H96C41.6 0 0 41.6 0 96v320c0 54.4 41.6 96 96 96h326.4c12.8 0 25.6-9.6 25.6-25.6v-16c0-6.4-3.2-12.8-9.6-19.2-3.2-16-3.2-60.8 0-73.6 6.4-3.2 9.6-9.6 9.6-19.2zM133.08 144.39l21.26 21.26c1.56 1.56 3.61 2.34 5.66 2.34s4.09-.78 5.66-2.34c3.12-3.12 3.12-8.19 0-11.31l-26.42-26.42c10-20.9 26.24-37.97 46.37-49.26C179.62 88.4 176 99.74 176 112c0 19.96 9.33 37.57 23.66 49.31C190.01 171.37 184 184.96 184 200c0 26.94 19.04 49.4 44.38 54.76l1.36-32.71-10.37 7.04c-.69.45-1.47.69-2.25.69-1 0-1.98-.38-2.75-1.09a4.006 4.006 0 0 1-.69-4.95l8.54-14.31-17.91-3.72c-1.86-.39-3.19-2.03-3.19-3.92s1.33-3.53 3.19-3.92l17.91-3.72-8.54-14.31c-.95-1.61-.67-3.67.69-4.95 1.36-1.3 3.44-1.44 5-.41l12.01 8.16L236 71.83c.09-2.14 1.86-3.83 4-3.83s3.91 1.69 4 3.83l4.68 112.29 14.2-9.65a4.067 4.067 0 0 1 5 .41 4.006 4.006 0 0 1 .69 4.95l-8.54 14.31 17.91 3.72c1.86.39 3.19 2.03 3.19 3.92s-1.33 3.53-3.19 3.92l-17.91 3.72 8.54 14.31c.95 1.61.67 3.67-.69 4.95-.77.72-1.77 1.09-2.75 1.09-.78 0-1.56-.23-2.25-.69l-12.68-8.62 1.43 34.28C276.96 249.4 296 226.94 296 200c0-15.04-6.01-28.63-15.66-38.69C294.67 149.57 304 131.96 304 112c0-12.26-3.62-23.6-9.6-33.33 20.13 11.28 36.37 28.36 46.37 49.26l-26.42 26.42c-3.12 3.12-3.12 8.19 0 11.31 1.56 1.56 3.61 2.34 5.66 2.34s4.09-.78 5.66-2.34l21.26-21.26c2.97 10.08 5.07 20.55 5.07 31.6 0 .52-.14.99-.15 1.51l-37.11 32.47a7.975 7.975 0 0 0-.75 11.28 7.97 7.97 0 0 0 6.02 2.73c1.88 0 3.75-.66 5.27-1.98l23.59-20.64C337.32 250.96 293.09 288 240 288s-97.32-37.04-108.86-86.62l23.59 20.64A7.957 7.957 0 0 0 160 224c2.22 0 4.44-.92 6.02-2.73 2.92-3.33 2.58-8.38-.75-11.28l-37.11-32.47c-.01-.52-.15-.99-.15-1.51-.01-11.06 2.09-21.53 5.07-31.62zM380.8 448H96c-19.2 0-32-12.8-32-32s16-32 32-32h284.8v64z"] };
  3132. var faKaaba = { prefix: 'fas', iconName: 'kaaba', icon: [576, 512, [], "f66b", "M554.12 83.51L318.36 4.93a95.962 95.962 0 0 0-60.71 0L21.88 83.51A32.006 32.006 0 0 0 0 113.87v49.01l265.02-79.51c15.03-4.5 30.92-4.5 45.98 0l265 79.51v-49.01c0-13.77-8.81-26-21.88-30.36zm-279.9 30.52L0 196.3v228.38c0 15 10.42 27.98 25.06 31.24l242.12 53.8a95.937 95.937 0 0 0 41.65 0l242.12-53.8c14.64-3.25 25.06-16.24 25.06-31.24V196.29l-274.2-82.26c-9.04-2.72-18.59-2.72-27.59 0zM128 230.11c0 3.61-2.41 6.77-5.89 7.72l-80 21.82C37.02 261.03 32 257.2 32 251.93v-16.58c0-3.61 2.41-6.77 5.89-7.72l80-21.82c5.09-1.39 10.11 2.44 10.11 7.72v16.58zm144-39.28c0 3.61-2.41 6.77-5.89 7.72l-96 26.18c-5.09 1.39-10.11-2.44-10.11-7.72v-16.58c0-3.61 2.41-6.77 5.89-7.72l96-26.18c5.09-1.39 10.11 2.44 10.11 7.72v16.58zm176 22.7c0-5.28 5.02-9.11 10.11-7.72l80 21.82c3.48.95 5.89 4.11 5.89 7.72v16.58c0 5.28-5.02 9.11-10.11 7.72l-80-21.82a7.997 7.997 0 0 1-5.89-7.72v-16.58zm-144-39.27c0-5.28 5.02-9.11 10.11-7.72l96 26.18c3.48.95 5.89 4.11 5.89 7.72v16.58c0 5.28-5.02 9.11-10.11 7.72l-96-26.18a7.997 7.997 0 0 1-5.89-7.72v-16.58z"] };
  3133. var faKey = { prefix: 'fas', iconName: 'key', icon: [512, 512, [], "f084", "M512 176.001C512 273.203 433.202 352 336 352c-11.22 0-22.19-1.062-32.827-3.069l-24.012 27.014A23.999 23.999 0 0 1 261.223 384H224v40c0 13.255-10.745 24-24 24h-40v40c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24v-78.059c0-6.365 2.529-12.47 7.029-16.971l161.802-161.802C163.108 213.814 160 195.271 160 176 160 78.798 238.797.001 335.999 0 433.488-.001 512 78.511 512 176.001zM336 128c0 26.51 21.49 48 48 48s48-21.49 48-48-21.49-48-48-48-48 21.49-48 48z"] };
  3134. var faKeyboard = { prefix: 'fas', iconName: 'keyboard', icon: [576, 512, [], "f11c", "M528 448H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h480c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48zM128 180v-40c0-6.627-5.373-12-12-12H76c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm-336 96v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm-336 96v-40c0-6.627-5.373-12-12-12H76c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm288 0v-40c0-6.627-5.373-12-12-12H172c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h232c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12z"] };
  3135. var faKhanda = { prefix: 'fas', iconName: 'khanda', icon: [512, 512, [], "f66d", "M415.81 66c-6.37-3.5-14.37-2.33-19.36 3.02a15.974 15.974 0 0 0-1.91 19.52c16.49 26.16 25.2 56.39 25.2 87.41-.19 53.25-26.77 102.69-71.27 132.41l-76.63 53.35v-20.1l44.05-36.09c3.92-4.2 5-10.09 2.81-15.28L310.85 273c33.84-19.26 56.94-55.25 56.94-96.99 0-40.79-22.02-76.13-54.59-95.71l5.22-11.44c2.34-5.53.93-11.83-3.57-16.04L255.86 0l-58.99 52.81c-4.5 4.21-5.9 10.51-3.57 16.04l5.22 11.44c-32.57 19.58-54.59 54.93-54.59 95.72 0 41.75 23.09 77.73 56.94 96.99l-7.85 17.24c-2.19 5.18-1.1 11.07 2.81 15.28l44.05 36.09v19.9l-76.59-53.33C119.02 278.62 92.44 229.19 92.26 176c0-31.08 8.71-61.31 25.2-87.47 3.87-6.16 2.4-13.77-2.59-19.08-5-5.34-13.68-6.2-20.02-2.7C16.32 109.6-22.3 205.3 13.36 295.99c7.07 17.99 17.89 34.38 30.46 49.06l55.97 65.36c4.87 5.69 13.04 7.24 19.65 3.72l79.35-42.23L228 392.23l-47.08 32.78c-1.67-.37-3.23-1.01-5.01-1.01-13.25 0-23.99 10.74-23.99 24 0 13.25 10.74 24 23.99 24 12.1 0 21.69-9.11 23.33-20.76l40.63-28.28v29.95c-9.39 5.57-15.99 15.38-15.99 27.1 0 17.67 14.32 32 31.98 32s31.98-14.33 31.98-32c0-11.71-6.61-21.52-15.99-27.1v-30.15l40.91 28.48C314.41 462.89 324 472 336.09 472c13.25 0 23.99-10.75 23.99-24 0-13.26-10.74-24-23.99-24-1.78 0-3.34.64-5.01 1.01L284 392.23l29.21-20.34 79.35 42.23c6.61 3.52 14.78 1.97 19.65-3.71l52.51-61.31c18.87-22.02 34-47.5 41.25-75.59 21.62-83.66-16.45-167.27-90.16-207.51zm-95.99 110c0 22.3-11.49 41.92-28.83 53.38l-5.65-12.41c-8.75-24.52-8.75-51.04 0-75.56l7.83-17.18c16.07 11.65 26.65 30.45 26.65 51.77zm-127.93 0c0-21.32 10.58-40.12 26.66-51.76l7.83 17.18c8.75 24.52 8.75 51.03 0 75.56l-5.65 12.41c-17.34-11.46-28.84-31.09-28.84-53.39z"] };
  3136. var faKiss = { prefix: 'fas', iconName: 'kiss', icon: [496, 512, [], "f596", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm-80 232c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm136 156c0 19.2-28.7 41.5-71.5 44-8.5.8-12.1-11.8-3.6-15.4l17-7.2c13-5.5 20.8-13.5 20.8-21.5s-7.8-16-20.8-21.5l-17-7.2c-6-2.5-6.1-12.2 0-14.8l17-7.2c13-5.5 20.8-13.5 20.8-21.5s-7.8-16-20.8-21.5l-17-7.2c-8.6-3.6-4.8-16.5 3.6-15.4 42.8 2.5 71.5 24.8 71.5 44 0 13-13.4 27.3-35.2 36C290.6 368.7 304 383 304 396zm24-156c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"] };
  3137. var faKissBeam = { prefix: 'fas', iconName: 'kiss-beam', icon: [496, 512, [], "f597", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm-39 219.9l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.2 7.4-15.6 4-14.9-4.5 3.3-42.1 32.2-71.4 56-71.4s52.7 29.3 56 71.4c.5 8.5-10.9 12-15.1 4.5zM304 396c0 19.2-28.7 41.5-71.5 44-8.5.8-12.1-11.8-3.6-15.4l17-7.2c13-5.5 20.8-13.5 20.8-21.5s-7.8-16-20.8-21.5l-17-7.2c-6-2.5-6.1-12.2 0-14.8l17-7.2c13-5.5 20.8-13.5 20.8-21.5s-7.8-16-20.8-21.5l-17-7.2c-8.6-3.6-4.8-16.5 3.6-15.4 42.8 2.5 71.5 24.8 71.5 44 0 13-13.4 27.3-35.2 36C290.6 368.7 304 383 304 396zm65-168.1l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.1 7.3-15.6 4-14.9-4.5 3.3-42.1 32.2-71.4 56-71.4s52.7 29.3 56 71.4c.5 8.5-10.9 12-15.1 4.5z"] };
  3138. var faKissWinkHeart = { prefix: 'fas', iconName: 'kiss-wink-heart', icon: [504, 512, [], "f598", "M501.1 402.5c-8-20.8-31.5-31.5-53.1-25.9l-8.4 2.2-2.3-8.4c-5.9-21.4-27-36.5-49-33-25.2 4-40.6 28.6-34 52.6l22.9 82.6c1.5 5.3 7 8.5 12.4 7.1l83-21.5c24.1-6.3 37.7-31.8 28.5-55.7zm-177.6-4c-5.6-20.3-2.3-42 9-59.7 29.7-46.3 98.7-45.5 127.8 4.3 6.4.1 12.6 1.4 18.6 2.9 10.9-27.9 17.1-58.2 17.1-90C496 119 385 8 248 8S0 119 0 256s111 248 248 248c35.4 0 68.9-7.5 99.4-20.9-.3-.7-23.9-84.6-23.9-84.6zM168 240c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm120 156c0 19.2-28.7 41.5-71.5 44-8.5.8-12.1-11.8-3.6-15.4l17-7.2c13-5.5 20.8-13.5 20.8-21.5s-7.8-16-20.8-21.5l-17-7.2c-6-2.5-5.7-12.3 0-14.8l17-7.2c13-5.5 20.8-13.5 20.8-21.5s-7.8-16-20.8-21.5l-17-7.2c-8.8-3.7-4.6-16.6 3.6-15.4 42.8 2.5 71.5 24.8 71.5 44 0 13-13.4 27.3-35.2 36C274.6 368.7 288 383 288 396zm16-179c-8.3 7.4-21.6.4-19.8-10.8 4-25.2 34.2-42.1 59.9-42.1S400 181 404 206.2c1.7 11.1-11.3 18.3-19.8 10.8l-9.5-8.5c-14.8-13.2-46.2-13.2-61 0L304 217z"] };
  3139. var faKiwiBird = { prefix: 'fas', iconName: 'kiwi-bird', icon: [576, 512, [], "f535", "M575.81 217.98C572.64 157.41 518.28 112 457.63 112h-9.37c-52.82 0-104.25-16.25-147.74-46.24-41.99-28.96-96.04-41.62-153.21-28.7C129.3 41.12-.08 78.24 0 224c.04 70.95 38.68 132.8 95.99 166.01V464c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16v-54.26c15.36 3.96 31.4 6.26 48 6.26 5.44 0 10.68-.73 16-1.18V464c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16v-59.43c14.24-5.06 27.88-11.39 40.34-19.51C342.07 355.25 393.86 336 448.46 336c25.48 0 16.01-.31 23.05-.78l74.41 136.44c2.86 5.23 8.3 8.34 14.05 8.34 1.31 0 2.64-.16 3.95-.5 7.09-1.8 12.05-8.19 12.05-15.5 0 0 .14-240.24-.16-246.02zM463.97 248c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24zm80 153.25l-39.86-73.08c15.12-5.83 28.73-14.6 39.86-25.98v99.06z"] };
  3140. var faLandmark = { prefix: 'fas', iconName: 'landmark', icon: [512, 512, [], "f66f", "M501.62 92.11L267.24 2.04a31.958 31.958 0 0 0-22.47 0L10.38 92.11A16.001 16.001 0 0 0 0 107.09V144c0 8.84 7.16 16 16 16h480c8.84 0 16-7.16 16-16v-36.91c0-6.67-4.14-12.64-10.38-14.98zM64 192v160H48c-8.84 0-16 7.16-16 16v48h448v-48c0-8.84-7.16-16-16-16h-16V192h-64v160h-96V192h-64v160h-96V192H64zm432 256H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h480c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z"] };
  3141. var faLanguage = { prefix: 'fas', iconName: 'language', icon: [640, 512, [], "f1ab", "M304 416H24c-13.255 0-24-10.745-24-24V120c0-13.255 10.745-24 24-24h280v320zm-120.676-72.622A12 12 0 0 0 194.839 352h22.863c8.22 0 14.007-8.078 11.362-15.861L171.61 167.085a12 12 0 0 0-11.362-8.139h-32.489a12.001 12.001 0 0 0-11.362 8.139L58.942 336.139C56.297 343.922 62.084 352 70.304 352h22.805a12 12 0 0 0 11.535-8.693l9.118-31.807h60.211l9.351 31.878zm-39.051-140.42s4.32 21.061 7.83 33.21l10.8 37.531h-38.07l11.07-37.531c3.51-12.15 7.83-33.21 7.83-33.21h.54zM616 416H336V96h280c13.255 0 24 10.745 24 24v272c0 13.255-10.745 24-24 24zm-36-228h-64v-16c0-6.627-5.373-12-12-12h-16c-6.627 0-12 5.373-12 12v16h-64c-6.627 0-12 5.373-12 12v16c0 6.627 5.373 12 12 12h114.106c-6.263 14.299-16.518 28.972-30.023 43.206-6.56-6.898-12.397-13.91-17.365-20.933-3.639-5.144-10.585-6.675-15.995-3.446l-7.28 4.346-6.498 3.879c-5.956 3.556-7.693 11.421-3.735 17.117 6.065 8.729 13.098 17.336 20.984 25.726-8.122 6.226-16.841 12.244-26.103 17.964-5.521 3.41-7.381 10.556-4.162 16.19l7.941 13.896c3.362 5.883 10.935 7.826 16.706 4.276 12.732-7.831 24.571-16.175 35.443-24.891 10.917 8.761 22.766 17.102 35.396 24.881 5.774 3.556 13.353 1.618 16.717-4.27l7.944-13.903c3.213-5.623 1.37-12.76-4.135-16.171a312.737 312.737 0 0 1-26.06-18.019c21.024-22.425 35.768-46.289 42.713-69.85H580c6.627 0 12-5.373 12-12v-16c0-6.625-5.373-11.998-12-11.998z"] };
  3142. var faLaptop = { prefix: 'fas', iconName: 'laptop', icon: [640, 512, [], "f109", "M624 416H381.54c-.74 19.81-14.71 32-32.74 32H288c-18.69 0-33.02-17.47-32.77-32H16c-8.8 0-16 7.2-16 16v16c0 35.2 28.8 64 64 64h512c35.2 0 64-28.8 64-64v-16c0-8.8-7.2-16-16-16zM576 48c0-26.4-21.6-48-48-48H112C85.6 0 64 21.6 64 48v336h512V48zm-64 272H128V64h384v256z"] };
  3143. var faLaptopCode = { prefix: 'fas', iconName: 'laptop-code', icon: [640, 512, [], "f5fc", "M255.03 261.65c6.25 6.25 16.38 6.25 22.63 0l11.31-11.31c6.25-6.25 6.25-16.38 0-22.63L253.25 192l35.71-35.72c6.25-6.25 6.25-16.38 0-22.63l-11.31-11.31c-6.25-6.25-16.38-6.25-22.63 0l-58.34 58.34c-6.25 6.25-6.25 16.38 0 22.63l58.35 58.34zm96.01-11.3l11.31 11.31c6.25 6.25 16.38 6.25 22.63 0l58.34-58.34c6.25-6.25 6.25-16.38 0-22.63l-58.34-58.34c-6.25-6.25-16.38-6.25-22.63 0l-11.31 11.31c-6.25 6.25-6.25 16.38 0 22.63L386.75 192l-35.71 35.72c-6.25 6.25-6.25 16.38 0 22.63zM624 416H381.54c-.74 19.81-14.71 32-32.74 32H288c-18.69 0-33.02-17.47-32.77-32H16c-8.8 0-16 7.2-16 16v16c0 35.2 28.8 64 64 64h512c35.2 0 64-28.8 64-64v-16c0-8.8-7.2-16-16-16zM576 48c0-26.4-21.6-48-48-48H112C85.6 0 64 21.6 64 48v336h512V48zm-64 272H128V64h384v256z"] };
  3144. var faLaugh = { prefix: 'fas', iconName: 'laugh', icon: [496, 512, [], "f599", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm80 152c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm-160 0c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm88 272h-16c-73.4 0-134-55-142.9-126-1.2-9.5 6.3-18 15.9-18h270c9.6 0 17.1 8.4 15.9 18-8.9 71-69.5 126-142.9 126z"] };
  3145. var faLaughBeam = { prefix: 'fas', iconName: 'laugh-beam', icon: [496, 512, [], "f59a", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm24 199.4c3.3-42.1 32.2-71.4 56-71.4s52.7 29.3 56 71.4c.7 8.6-10.8 11.9-14.9 4.5l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.2 7.4-15.8 4.1-15.1-4.5zm-160 0c3.3-42.1 32.2-71.4 56-71.4s52.7 29.3 56 71.4c.7 8.6-10.8 11.9-14.9 4.5l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.3 7.4-15.8 4-15.1-4.5zM398.9 306C390 377 329.4 432 256 432h-16c-73.4 0-134-55-142.9-126-1.2-9.5 6.3-18 15.9-18h270c9.6 0 17.1 8.4 15.9 18z"] };
  3146. var faLaughSquint = { prefix: 'fas', iconName: 'laugh-squint', icon: [496, 512, [], "f59b", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm33.8 161.7l80-48c11.6-6.9 24 7.7 15.4 18L343.6 180l33.6 40.3c8.7 10.4-3.9 24.8-15.4 18l-80-48c-7.7-4.7-7.7-15.9 0-20.6zm-163-30c-8.6-10.3 3.8-24.9 15.4-18l80 48c7.8 4.7 7.8 15.9 0 20.6l-80 48c-11.5 6.8-24-7.6-15.4-18l33.6-40.3-33.6-40.3zM398.9 306C390 377 329.4 432 256 432h-16c-73.4 0-134-55-142.9-126-1.2-9.5 6.3-18 15.9-18h270c9.6 0 17.1 8.4 15.9 18z"] };
  3147. var faLaughWink = { prefix: 'fas', iconName: 'laugh-wink', icon: [496, 512, [], "f59c", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm20.1 198.1c4-25.2 34.2-42.1 59.9-42.1s55.9 16.9 59.9 42.1c1.7 11.1-11.4 18.3-19.8 10.8l-9.5-8.5c-14.8-13.2-46.2-13.2-61 0L288 217c-8.4 7.4-21.6.3-19.9-10.9zM168 160c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm230.9 146C390 377 329.4 432 256 432h-16c-73.4 0-134-55-142.9-126-1.2-9.5 6.3-18 15.9-18h270c9.6 0 17.1 8.4 15.9 18z"] };
  3148. var faLayerGroup = { prefix: 'fas', iconName: 'layer-group', icon: [512, 512, [], "f5fd", "M12.41 148.02l232.94 105.67c6.8 3.09 14.49 3.09 21.29 0l232.94-105.67c16.55-7.51 16.55-32.52 0-40.03L266.65 2.31a25.607 25.607 0 0 0-21.29 0L12.41 107.98c-16.55 7.51-16.55 32.53 0 40.04zm487.18 88.28l-58.09-26.33-161.64 73.27c-7.56 3.43-15.59 5.17-23.86 5.17s-16.29-1.74-23.86-5.17L70.51 209.97l-58.1 26.33c-16.55 7.5-16.55 32.5 0 40l232.94 105.59c6.8 3.08 14.49 3.08 21.29 0L499.59 276.3c16.55-7.5 16.55-32.5 0-40zm0 127.8l-57.87-26.23-161.86 73.37c-7.56 3.43-15.59 5.17-23.86 5.17s-16.29-1.74-23.86-5.17L70.29 337.87 12.41 364.1c-16.55 7.5-16.55 32.5 0 40l232.94 105.59c6.8 3.08 14.49 3.08 21.29 0L499.59 404.1c16.55-7.5 16.55-32.5 0-40z"] };
  3149. var faLeaf = { prefix: 'fas', iconName: 'leaf', icon: [576, 512, [], "f06c", "M546.2 9.7c-5.6-12.5-21.6-13-28.3-1.2C486.9 62.4 431.4 96 368 96h-80C182 96 96 182 96 288c0 7 .8 13.7 1.5 20.5C161.3 262.8 253.4 224 384 224c8.8 0 16 7.2 16 16s-7.2 16-16 16C132.6 256 26 410.1 2.4 468c-6.6 16.3 1.2 34.9 17.5 41.6 16.4 6.8 35-1.1 41.8-17.3 1.5-3.6 20.9-47.9 71.9-90.6 32.4 43.9 94 85.8 174.9 77.2C465.5 467.5 576 326.7 576 154.3c0-50.2-10.8-102.2-29.8-144.6z"] };
  3150. var faLemon = { prefix: 'fas', iconName: 'lemon', icon: [512, 512, [], "f094", "M489.038 22.963C465.944-.13 434.648-5.93 413.947 6.129c-58.906 34.312-181.25-53.077-321.073 86.746S40.441 355.041 6.129 413.945c-12.059 20.702-6.26 51.999 16.833 75.093 23.095 23.095 54.392 28.891 75.095 16.832 58.901-34.31 181.246 53.079 321.068-86.743S471.56 156.96 505.871 98.056c12.059-20.702 6.261-51.999-16.833-75.093zM243.881 95.522c-58.189 14.547-133.808 90.155-148.358 148.358-1.817 7.27-8.342 12.124-15.511 12.124-1.284 0-2.59-.156-3.893-.481-8.572-2.144-13.784-10.83-11.642-19.403C81.901 166.427 166.316 81.93 236.119 64.478c8.575-2.143 17.261 3.069 19.403 11.642s-3.069 17.259-11.641 19.402z"] };
  3151. var faLessThan = { prefix: 'fas', iconName: 'less-than', icon: [384, 512, [], "f536", "M365.46 357.74L147.04 255.89l218.47-101.88c16.02-7.47 22.95-26.51 15.48-42.53l-13.52-29C360 66.46 340.96 59.53 324.94 67L18.48 209.91a32.014 32.014 0 0 0-18.48 29v34.24c0 12.44 7.21 23.75 18.48 29l306.31 142.83c16.06 7.49 35.15.54 42.64-15.52l13.56-29.08c7.49-16.06.54-35.15-15.53-42.64z"] };
  3152. var faLessThanEqual = { prefix: 'fas', iconName: 'less-than-equal', icon: [448, 512, [], "f537", "M54.98 214.2l301.41 119.87c18.39 6.03 38.71-2.54 45.38-19.15l12.09-30.08c6.68-16.61-2.82-34.97-21.21-41l-175.44-68.05 175.56-68.09c18.29-6 27.74-24.27 21.1-40.79l-12.03-29.92c-6.64-16.53-26.86-25.06-45.15-19.06L54.98 137.89C41.21 142.41 32 154.5 32 168.07v15.96c0 13.56 9.21 25.65 22.98 30.17zM424 400H24c-13.25 0-24 10.74-24 24v48c0 13.25 10.75 24 24 24h400c13.25 0 24-10.75 24-24v-48c0-13.26-10.75-24-24-24z"] };
  3153. var faLevelDownAlt = { prefix: 'fas', iconName: 'level-down-alt', icon: [320, 512, [], "f3be", "M313.553 392.331L209.587 504.334c-9.485 10.214-25.676 10.229-35.174 0L70.438 392.331C56.232 377.031 67.062 352 88.025 352H152V80H68.024a11.996 11.996 0 0 1-8.485-3.515l-56-56C-4.021 12.926 1.333 0 12.024 0H208c13.255 0 24 10.745 24 24v328h63.966c20.878 0 31.851 24.969 17.587 40.331z"] };
  3154. var faLevelUpAlt = { prefix: 'fas', iconName: 'level-up-alt', icon: [320, 512, [], "f3bf", "M313.553 119.669L209.587 7.666c-9.485-10.214-25.676-10.229-35.174 0L70.438 119.669C56.232 134.969 67.062 160 88.025 160H152v272H68.024a11.996 11.996 0 0 0-8.485 3.515l-56 56C-4.021 499.074 1.333 512 12.024 512H208c13.255 0 24-10.745 24-24V160h63.966c20.878 0 31.851-24.969 17.587-40.331z"] };
  3155. var faLifeRing = { prefix: 'fas', iconName: 'life-ring', icon: [512, 512, [], "f1cd", "M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm173.696 119.559l-63.399 63.399c-10.987-18.559-26.67-34.252-45.255-45.255l63.399-63.399a218.396 218.396 0 0 1 45.255 45.255zM256 352c-53.019 0-96-42.981-96-96s42.981-96 96-96 96 42.981 96 96-42.981 96-96 96zM127.559 82.304l63.399 63.399c-18.559 10.987-34.252 26.67-45.255 45.255l-63.399-63.399a218.372 218.372 0 0 1 45.255-45.255zM82.304 384.441l63.399-63.399c10.987 18.559 26.67 34.252 45.255 45.255l-63.399 63.399a218.396 218.396 0 0 1-45.255-45.255zm302.137 45.255l-63.399-63.399c18.559-10.987 34.252-26.67 45.255-45.255l63.399 63.399a218.403 218.403 0 0 1-45.255 45.255z"] };
  3156. var faLightbulb = { prefix: 'fas', iconName: 'lightbulb', icon: [352, 512, [], "f0eb", "M96.06 454.35c.01 6.29 1.87 12.45 5.36 17.69l17.09 25.69a31.99 31.99 0 0 0 26.64 14.28h61.71a31.99 31.99 0 0 0 26.64-14.28l17.09-25.69a31.989 31.989 0 0 0 5.36-17.69l.04-38.35H96.01l.05 38.35zM0 176c0 44.37 16.45 84.85 43.56 115.78 16.52 18.85 42.36 58.23 52.21 91.45.04.26.07.52.11.78h160.24c.04-.26.07-.51.11-.78 9.85-33.22 35.69-72.6 52.21-91.45C335.55 260.85 352 220.37 352 176 352 78.61 272.91-.3 175.45 0 73.44.31 0 82.97 0 176zm176-80c-44.11 0-80 35.89-80 80 0 8.84-7.16 16-16 16s-16-7.16-16-16c0-61.76 50.24-112 112-112 8.84 0 16 7.16 16 16s-7.16 16-16 16z"] };
  3157. var faLink = { prefix: 'fas', iconName: 'link', icon: [512, 512, [], "f0c1", "M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"] };
  3158. var faLiraSign = { prefix: 'fas', iconName: 'lira-sign', icon: [384, 512, [], "f195", "M371.994 256h-48.019C317.64 256 312 260.912 312 267.246 312 368 230.179 416 144 416V256.781l134.603-29.912A12 12 0 0 0 288 215.155v-40.976c0-7.677-7.109-13.38-14.603-11.714L144 191.219V160.78l134.603-29.912A12 12 0 0 0 288 119.154V78.179c0-7.677-7.109-13.38-14.603-11.714L144 95.219V44c0-6.627-5.373-12-12-12H76c-6.627 0-12 5.373-12 12v68.997L9.397 125.131A12 12 0 0 0 0 136.845v40.976c0 7.677 7.109 13.38 14.603 11.714L64 178.558v30.439L9.397 221.131A12 12 0 0 0 0 232.845v40.976c0 7.677 7.109 13.38 14.603 11.714L64 274.558V468c0 6.627 5.373 12 12 12h79.583c134.091 0 223.255-77.834 228.408-211.592.261-6.782-5.211-12.408-11.997-12.408z"] };
  3159. var faList = { prefix: 'fas', iconName: 'list', icon: [512, 512, [], "f03a", "M128 116V76c0-8.837 7.163-16 16-16h352c8.837 0 16 7.163 16 16v40c0 8.837-7.163 16-16 16H144c-8.837 0-16-7.163-16-16zm16 176h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zM16 144h64c8.837 0 16-7.163 16-16V64c0-8.837-7.163-16-16-16H16C7.163 48 0 55.163 0 64v64c0 8.837 7.163 16 16 16zm0 160h64c8.837 0 16-7.163 16-16v-64c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v64c0 8.837 7.163 16 16 16zm0 160h64c8.837 0 16-7.163 16-16v-64c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v64c0 8.837 7.163 16 16 16z"] };
  3160. var faListAlt = { prefix: 'fas', iconName: 'list-alt', icon: [512, 512, [], "f022", "M464 480H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48v352c0 26.51-21.49 48-48 48zM128 120c-22.091 0-40 17.909-40 40s17.909 40 40 40 40-17.909 40-40-17.909-40-40-40zm0 96c-22.091 0-40 17.909-40 40s17.909 40 40 40 40-17.909 40-40-17.909-40-40-40zm0 96c-22.091 0-40 17.909-40 40s17.909 40 40 40 40-17.909 40-40-17.909-40-40-40zm288-136v-32c0-6.627-5.373-12-12-12H204c-6.627 0-12 5.373-12 12v32c0 6.627 5.373 12 12 12h200c6.627 0 12-5.373 12-12zm0 96v-32c0-6.627-5.373-12-12-12H204c-6.627 0-12 5.373-12 12v32c0 6.627 5.373 12 12 12h200c6.627 0 12-5.373 12-12zm0 96v-32c0-6.627-5.373-12-12-12H204c-6.627 0-12 5.373-12 12v32c0 6.627 5.373 12 12 12h200c6.627 0 12-5.373 12-12z"] };
  3161. var faListOl = { prefix: 'fas', iconName: 'list-ol', icon: [512, 512, [], "f0cb", "M3.263 139.527c0-7.477 3.917-11.572 11.573-11.572h15.131V88.078c0-5.163.534-10.503.534-10.503h-.356s-1.779 2.67-2.848 3.738c-4.451 4.273-10.504 4.451-15.666-1.068l-5.518-6.231c-5.342-5.341-4.984-11.216.534-16.379l21.72-19.938C32.815 33.602 36.732 32 42.785 32H54.89c7.656 0 11.749 3.916 11.749 11.572v84.384h15.488c7.655 0 11.572 4.094 11.572 11.572v8.901c0 7.477-3.917 11.572-11.572 11.572H14.836c-7.656 0-11.573-4.095-11.573-11.572v-8.902zM2.211 304.591c0-47.278 50.955-56.383 50.955-69.165 0-7.18-5.954-8.755-9.28-8.755-3.153 0-6.479 1.051-9.455 3.852-5.079 4.903-10.507 7.004-16.111 2.451l-8.579-6.829c-5.779-4.553-7.18-9.805-2.803-15.409C13.592 201.981 26.025 192 47.387 192c19.437 0 44.476 10.506 44.476 39.573 0 38.347-46.753 46.402-48.679 56.909h39.049c7.529 0 11.557 4.027 11.557 11.382v8.755c0 7.354-4.028 11.382-11.557 11.382h-67.94c-7.005 0-12.083-4.028-12.083-11.382v-4.028zM5.654 454.61l5.603-9.28c3.853-6.654 9.105-7.004 15.584-3.152 4.903 2.101 9.63 3.152 14.359 3.152 10.155 0 14.358-3.502 14.358-8.23 0-6.654-5.604-9.106-15.934-9.106h-4.728c-5.954 0-9.28-2.101-12.258-7.88l-1.05-1.926c-2.451-4.728-1.226-9.806 2.801-14.884l5.604-7.004c6.829-8.405 12.257-13.483 12.257-13.483v-.35s-4.203 1.051-12.608 1.051H16.685c-7.53 0-11.383-4.028-11.383-11.382v-8.755c0-7.53 3.853-11.382 11.383-11.382h58.484c7.529 0 11.382 4.027 11.382 11.382v3.327c0 5.778-1.401 9.806-5.079 14.183l-17.509 20.137c19.611 5.078 28.716 20.487 28.716 34.845 0 21.363-14.358 44.126-48.503 44.126-16.636 0-28.192-4.728-35.896-9.455-5.779-4.202-6.304-9.805-2.626-15.934zM144 132h352c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"] };
  3162. var faListUl = { prefix: 'fas', iconName: 'list-ul', icon: [512, 512, [], "f0ca", "M96 96c0 26.51-21.49 48-48 48S0 122.51 0 96s21.49-48 48-48 48 21.49 48 48zM48 208c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm0 160c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm96-236h352c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"] };
  3163. var faLocationArrow = { prefix: 'fas', iconName: 'location-arrow', icon: [512, 512, [], "f124", "M444.52 3.52L28.74 195.42c-47.97 22.39-31.98 92.75 19.19 92.75h175.91v175.91c0 51.17 70.36 67.17 92.75 19.19l191.9-415.78c15.99-38.39-25.59-79.97-63.97-63.97z"] };
  3164. var faLock = { prefix: 'fas', iconName: 'lock', icon: [448, 512, [], "f023", "M400 224h-24v-72C376 68.2 307.8 0 224 0S72 68.2 72 152v72H48c-26.5 0-48 21.5-48 48v192c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48zm-104 0H152v-72c0-39.7 32.3-72 72-72s72 32.3 72 72v72z"] };
  3165. var faLockOpen = { prefix: 'fas', iconName: 'lock-open', icon: [576, 512, [], "f3c1", "M423.5 0C339.5.3 272 69.5 272 153.5V224H48c-26.5 0-48 21.5-48 48v192c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48h-48v-71.1c0-39.6 31.7-72.5 71.3-72.9 40-.4 72.7 32.1 72.7 72v80c0 13.3 10.7 24 24 24h32c13.3 0 24-10.7 24-24v-80C576 68 507.5-.3 423.5 0z"] };
  3166. var faLongArrowAltDown = { prefix: 'fas', iconName: 'long-arrow-alt-down', icon: [256, 512, [], "f309", "M168 345.941V44c0-6.627-5.373-12-12-12h-56c-6.627 0-12 5.373-12 12v301.941H41.941c-21.382 0-32.09 25.851-16.971 40.971l86.059 86.059c9.373 9.373 24.569 9.373 33.941 0l86.059-86.059c15.119-15.119 4.411-40.971-16.971-40.971H168z"] };
  3167. var faLongArrowAltLeft = { prefix: 'fas', iconName: 'long-arrow-alt-left', icon: [448, 512, [], "f30a", "M134.059 296H436c6.627 0 12-5.373 12-12v-56c0-6.627-5.373-12-12-12H134.059v-46.059c0-21.382-25.851-32.09-40.971-16.971L7.029 239.029c-9.373 9.373-9.373 24.569 0 33.941l86.059 86.059c15.119 15.119 40.971 4.411 40.971-16.971V296z"] };
  3168. var faLongArrowAltRight = { prefix: 'fas', iconName: 'long-arrow-alt-right', icon: [448, 512, [], "f30b", "M313.941 216H12c-6.627 0-12 5.373-12 12v56c0 6.627 5.373 12 12 12h301.941v46.059c0 21.382 25.851 32.09 40.971 16.971l86.059-86.059c9.373-9.373 9.373-24.569 0-33.941l-86.059-86.059c-15.119-15.119-40.971-4.411-40.971 16.971V216z"] };
  3169. var faLongArrowAltUp = { prefix: 'fas', iconName: 'long-arrow-alt-up', icon: [256, 512, [], "f30c", "M88 166.059V468c0 6.627 5.373 12 12 12h56c6.627 0 12-5.373 12-12V166.059h46.059c21.382 0 32.09-25.851 16.971-40.971l-86.059-86.059c-9.373-9.373-24.569-9.373-33.941 0l-86.059 86.059c-15.119 15.119-4.411 40.971 16.971 40.971H88z"] };
  3170. var faLowVision = { prefix: 'fas', iconName: 'low-vision', icon: [576, 512, [], "f2a8", "M569.344 231.631C512.96 135.949 407.81 72 288 72c-28.468 0-56.102 3.619-82.451 10.409L152.778 10.24c-7.601-10.858-22.564-13.5-33.423-5.9l-13.114 9.178c-10.86 7.601-13.502 22.566-5.9 33.426l43.131 58.395C89.449 131.73 40.228 174.683 6.682 231.581c-.01.017-.023.033-.034.05-8.765 14.875-8.964 33.528 0 48.739 38.5 65.332 99.742 115.862 172.859 141.349L55.316 244.302A272.194 272.194 0 0 1 83.61 208.39l119.4 170.58h.01l40.63 58.04a330.055 330.055 0 0 0 78.94 1.17l-189.98-271.4a277.628 277.628 0 0 1 38.777-21.563l251.836 356.544c7.601 10.858 22.564 13.499 33.423 5.9l13.114-9.178c10.86-7.601 13.502-22.567 5.9-33.426l-43.12-58.377-.007-.009c57.161-27.978 104.835-72.04 136.81-126.301a47.938 47.938 0 0 0 .001-48.739zM390.026 345.94l-19.066-27.23c24.682-32.567 27.711-76.353 8.8-111.68v.03c0 23.65-19.17 42.82-42.82 42.82-23.828 0-42.82-19.349-42.82-42.82 0-23.65 19.17-42.82 42.82-42.82h.03c-24.75-13.249-53.522-15.643-79.51-7.68l-19.068-27.237C253.758 123.306 270.488 120 288 120c75.162 0 136 60.826 136 136 0 34.504-12.833 65.975-33.974 89.94z"] };
  3171. var faLuggageCart = { prefix: 'fas', iconName: 'luggage-cart', icon: [640, 512, [], "f59d", "M224 320h32V96h-32c-17.67 0-32 14.33-32 32v160c0 17.67 14.33 32 32 32zm352-32V128c0-17.67-14.33-32-32-32h-32v224h32c17.67 0 32-14.33 32-32zm48 96H128V16c0-8.84-7.16-16-16-16H16C7.16 0 0 7.16 0 16v32c0 8.84 7.16 16 16 16h48v368c0 8.84 7.16 16 16 16h82.94c-1.79 5.03-2.94 10.36-2.94 16 0 26.51 21.49 48 48 48s48-21.49 48-48c0-5.64-1.15-10.97-2.94-16h197.88c-1.79 5.03-2.94 10.36-2.94 16 0 26.51 21.49 48 48 48s48-21.49 48-48c0-5.64-1.15-10.97-2.94-16H624c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zM480 96V48c0-26.51-21.49-48-48-48h-96c-26.51 0-48 21.49-48 48v272h192V96zm-48 0h-96V48h96v48z"] };
  3172. var faMagic = { prefix: 'fas', iconName: 'magic', icon: [512, 512, [], "f0d0", "M224 96l16-32 32-16-32-16-16-32-16 32-32 16 32 16 16 32zM80 160l26.66-53.33L160 80l-53.34-26.67L80 0 53.34 53.33 0 80l53.34 26.67L80 160zm352 128l-26.66 53.33L352 368l53.34 26.67L432 448l26.66-53.33L512 368l-53.34-26.67L432 288zm70.62-193.77L417.77 9.38C411.53 3.12 403.34 0 395.15 0c-8.19 0-16.38 3.12-22.63 9.38L9.38 372.52c-12.5 12.5-12.5 32.76 0 45.25l84.85 84.85c6.25 6.25 14.44 9.37 22.62 9.37 8.19 0 16.38-3.12 22.63-9.37l363.14-363.15c12.5-12.48 12.5-32.75 0-45.24zM359.45 203.46l-50.91-50.91 86.6-86.6 50.91 50.91-86.6 86.6z"] };
  3173. var faMagnet = { prefix: 'fas', iconName: 'magnet', icon: [512, 512, [], "f076", "M164.1 160H12c-6.6 0-12-5.4-12-12V68c0-19.9 16.1-36 36-36h104c19.9 0 36 16.1 36 36v80c.1 6.6-5.3 12-11.9 12zm348-12V67.9c0-19.9-16.1-36-36-36h-104c-19.9 0-36 16.1-36 36v80c0 6.6 5.4 12 12 12h152c6.6.1 12-5.3 12-11.9zm-164 44c-6.6 0-12 5.4-12 12v52c0 128.1-160 127.9-160 0v-52c0-6.6-5.4-12-12-12h-152c-6.7 0-12 5.4-12 12.1.1 21.4.6 40.3 0 53.3C.1 408 136.3 504 256.9 504 377.5 504 512 408 512 257.3c-.6-12.8-.2-33 0-53.2 0-6.7-5.3-12.1-12-12.1H348.1z"] };
  3174. var faMailBulk = { prefix: 'fas', iconName: 'mail-bulk', icon: [576, 512, [], "f674", "M160 448c-25.6 0-51.2-22.4-64-32-64-44.8-83.2-60.8-96-70.4V480c0 17.67 14.33 32 32 32h256c17.67 0 32-14.33 32-32V345.6c-12.8 9.6-32 25.6-96 70.4-12.8 9.6-38.4 32-64 32zm128-192H32c-17.67 0-32 14.33-32 32v16c25.6 19.2 22.4 19.2 115.2 86.4 9.6 6.4 28.8 25.6 44.8 25.6s35.2-19.2 44.8-22.4c92.8-67.2 89.6-67.2 115.2-86.4V288c0-17.67-14.33-32-32-32zm256-96H224c-17.67 0-32 14.33-32 32v32h96c33.21 0 60.59 25.42 63.71 57.82l.29-.22V416h192c17.67 0 32-14.33 32-32V192c0-17.67-14.33-32-32-32zm-32 128h-64v-64h64v64zm-352-96c0-35.29 28.71-64 64-64h224V32c0-17.67-14.33-32-32-32H96C78.33 0 64 14.33 64 32v192h96v-32z"] };
  3175. var faMale = { prefix: 'fas', iconName: 'male', icon: [192, 512, [], "f183", "M96 0c35.346 0 64 28.654 64 64s-28.654 64-64 64-64-28.654-64-64S60.654 0 96 0m48 144h-11.36c-22.711 10.443-49.59 10.894-73.28 0H48c-26.51 0-48 21.49-48 48v136c0 13.255 10.745 24 24 24h16v136c0 13.255 10.745 24 24 24h64c13.255 0 24-10.745 24-24V352h16c13.255 0 24-10.745 24-24V192c0-26.51-21.49-48-48-48z"] };
  3176. var faMap = { prefix: 'fas', iconName: 'map', icon: [576, 512, [], "f279", "M0 117.66v346.32c0 11.32 11.43 19.06 21.94 14.86L160 416V32L20.12 87.95A32.006 32.006 0 0 0 0 117.66zM192 416l192 64V96L192 32v384zM554.06 33.16L416 96v384l139.88-55.95A31.996 31.996 0 0 0 576 394.34V48.02c0-11.32-11.43-19.06-21.94-14.86z"] };
  3177. var faMapMarked = { prefix: 'fas', iconName: 'map-marked', icon: [576, 512, [], "f59f", "M288 0c-69.59 0-126 56.41-126 126 0 56.26 82.35 158.8 113.9 196.02 6.39 7.54 17.82 7.54 24.2 0C331.65 284.8 414 182.26 414 126 414 56.41 357.59 0 288 0zM20.12 215.95A32.006 32.006 0 0 0 0 245.66v250.32c0 11.32 11.43 19.06 21.94 14.86L160 448V214.92c-8.84-15.98-16.07-31.54-21.25-46.42L20.12 215.95zM288 359.67c-14.07 0-27.38-6.18-36.51-16.96-19.66-23.2-40.57-49.62-59.49-76.72v182l192 64V266c-18.92 27.09-39.82 53.52-59.49 76.72-9.13 10.77-22.44 16.95-36.51 16.95zm266.06-198.51L416 224v288l139.88-55.95A31.996 31.996 0 0 0 576 426.34V176.02c0-11.32-11.43-19.06-21.94-14.86z"] };
  3178. var faMapMarkedAlt = { prefix: 'fas', iconName: 'map-marked-alt', icon: [576, 512, [], "f5a0", "M288 0c-69.59 0-126 56.41-126 126 0 56.26 82.35 158.8 113.9 196.02 6.39 7.54 17.82 7.54 24.2 0C331.65 284.8 414 182.26 414 126 414 56.41 357.59 0 288 0zm0 168c-23.2 0-42-18.8-42-42s18.8-42 42-42 42 18.8 42 42-18.8 42-42 42zM20.12 215.95A32.006 32.006 0 0 0 0 245.66v250.32c0 11.32 11.43 19.06 21.94 14.86L160 448V214.92c-8.84-15.98-16.07-31.54-21.25-46.42L20.12 215.95zM288 359.67c-14.07 0-27.38-6.18-36.51-16.96-19.66-23.2-40.57-49.62-59.49-76.72v182l192 64V266c-18.92 27.09-39.82 53.52-59.49 76.72-9.13 10.77-22.44 16.95-36.51 16.95zm266.06-198.51L416 224v288l139.88-55.95A31.996 31.996 0 0 0 576 426.34V176.02c0-11.32-11.43-19.06-21.94-14.86z"] };
  3179. var faMapMarker = { prefix: 'fas', iconName: 'map-marker', icon: [384, 512, [], "f041", "M172.268 501.67C26.97 291.031 0 269.413 0 192 0 85.961 85.961 0 192 0s192 85.961 192 192c0 77.413-26.97 99.031-172.268 309.67-9.535 13.774-29.93 13.773-39.464 0z"] };
  3180. var faMapMarkerAlt = { prefix: 'fas', iconName: 'map-marker-alt', icon: [384, 512, [], "f3c5", "M172.268 501.67C26.97 291.031 0 269.413 0 192 0 85.961 85.961 0 192 0s192 85.961 192 192c0 77.413-26.97 99.031-172.268 309.67-9.535 13.774-29.93 13.773-39.464 0zM192 272c44.183 0 80-35.817 80-80s-35.817-80-80-80-80 35.817-80 80 35.817 80 80 80z"] };
  3181. var faMapPin = { prefix: 'fas', iconName: 'map-pin', icon: [288, 512, [], "f276", "M112 316.94v156.69l22.02 33.02c4.75 7.12 15.22 7.12 19.97 0L176 473.63V316.94c-10.39 1.92-21.06 3.06-32 3.06s-21.61-1.14-32-3.06zM144 0C64.47 0 0 64.47 0 144s64.47 144 144 144 144-64.47 144-144S223.53 0 144 0zm0 76c-37.5 0-68 30.5-68 68 0 6.62-5.38 12-12 12s-12-5.38-12-12c0-50.73 41.28-92 92-92 6.62 0 12 5.38 12 12s-5.38 12-12 12z"] };
  3182. var faMapSigns = { prefix: 'fas', iconName: 'map-signs', icon: [512, 512, [], "f277", "M507.31 84.69L464 41.37c-6-6-14.14-9.37-22.63-9.37H288V16c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v16H56c-13.25 0-24 10.75-24 24v80c0 13.25 10.75 24 24 24h385.37c8.49 0 16.62-3.37 22.63-9.37l43.31-43.31c6.25-6.26 6.25-16.38 0-22.63zM224 496c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16V384h-64v112zm232-272H288v-32h-64v32H70.63c-8.49 0-16.62 3.37-22.63 9.37L4.69 276.69c-6.25 6.25-6.25 16.38 0 22.63L48 342.63c6 6 14.14 9.37 22.63 9.37H456c13.25 0 24-10.75 24-24v-80c0-13.25-10.75-24-24-24z"] };
  3183. var faMarker = { prefix: 'fas', iconName: 'marker', icon: [512, 512, [], "f5a1", "M93.95 290.03A327.038 327.038 0 0 0 .17 485.11l-.03.23c-1.7 15.28 11.21 28.2 26.49 26.51a327.02 327.02 0 0 0 195.34-93.8l75.4-75.4-128.02-128.02-75.4 75.4zM485.49 26.51c-35.35-35.35-92.67-35.35-128.02 0l-21.76 21.76-36.56-36.55c-15.62-15.62-40.95-15.62-56.56 0L138.47 115.84c-6.25 6.25-6.25 16.38 0 22.63l22.62 22.62c6.25 6.25 16.38 6.25 22.63 0l87.15-87.15 19.59 19.59L191.98 192 320 320.02l165.49-165.49c35.35-35.35 35.35-92.66 0-128.02z"] };
  3184. var faMars = { prefix: 'fas', iconName: 'mars', icon: [384, 512, [], "f222", "M372 64h-79c-10.7 0-16 12.9-8.5 20.5l16.9 16.9-80.7 80.7c-22.2-14-48.5-22.1-76.7-22.1C64.5 160 0 224.5 0 304s64.5 144 144 144 144-64.5 144-144c0-28.2-8.1-54.5-22.1-76.7l80.7-80.7 16.9 16.9c7.6 7.6 20.5 2.2 20.5-8.5V76c0-6.6-5.4-12-12-12zM144 384c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"] };
  3185. var faMarsDouble = { prefix: 'fas', iconName: 'mars-double', icon: [512, 512, [], "f227", "M340 0h-79c-10.7 0-16 12.9-8.5 20.5l16.9 16.9-48.7 48.7C198.5 72.1 172.2 64 144 64 64.5 64 0 128.5 0 208s64.5 144 144 144 144-64.5 144-144c0-28.2-8.1-54.5-22.1-76.7l48.7-48.7 16.9 16.9c2.4 2.4 5.5 3.5 8.4 3.5 6.2 0 12.1-4.8 12.1-12V12c0-6.6-5.4-12-12-12zM144 288c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80zm356-128.1h-79c-10.7 0-16 12.9-8.5 20.5l16.9 16.9-48.7 48.7c-18.2-11.4-39-18.9-61.5-21.3-2.1 21.8-8.2 43.3-18.4 63.3 1.1 0 2.2-.1 3.2-.1 44.1 0 80 35.9 80 80s-35.9 80-80 80-80-35.9-80-80c0-1.1 0-2.2.1-3.2-20 10.2-41.5 16.4-63.3 18.4C168.4 455.6 229.6 512 304 512c79.5 0 144-64.5 144-144 0-28.2-8.1-54.5-22.1-76.7l48.7-48.7 16.9 16.9c2.4 2.4 5.4 3.5 8.4 3.5 6.2 0 12.1-4.8 12.1-12v-79c0-6.7-5.4-12.1-12-12.1z"] };
  3186. var faMarsStroke = { prefix: 'fas', iconName: 'mars-stroke', icon: [384, 512, [], "f229", "M372 64h-79c-10.7 0-16 12.9-8.5 20.5l16.9 16.9-17.5 17.5-14.1-14.1c-4.7-4.7-12.3-4.7-17 0L224.5 133c-4.7 4.7-4.7 12.3 0 17l14.1 14.1-18 18c-22.2-14-48.5-22.1-76.7-22.1C64.5 160 0 224.5 0 304s64.5 144 144 144 144-64.5 144-144c0-28.2-8.1-54.5-22.1-76.7l18-18 14.1 14.1c4.7 4.7 12.3 4.7 17 0l28.3-28.3c4.7-4.7 4.7-12.3 0-17L329.2 164l17.5-17.5 16.9 16.9c7.6 7.6 20.5 2.2 20.5-8.5V76c-.1-6.6-5.5-12-12.1-12zM144 384c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"] };
  3187. var faMarsStrokeH = { prefix: 'fas', iconName: 'mars-stroke-h', icon: [480, 512, [], "f22b", "M476.2 247.5l-55.9-55.9c-7.6-7.6-20.5-2.2-20.5 8.5V224H376v-20c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v20h-27.6c-5.8-25.6-18.7-49.9-38.6-69.8C189.6 98 98.4 98 42.2 154.2c-56.2 56.2-56.2 147.4 0 203.6 56.2 56.2 147.4 56.2 203.6 0 19.9-19.9 32.8-44.2 38.6-69.8H312v20c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-20h23.9v23.9c0 10.7 12.9 16 20.5 8.5l55.9-55.9c4.6-4.7 4.6-12.3-.1-17zm-275.6 65.1c-31.2 31.2-81.9 31.2-113.1 0-31.2-31.2-31.2-81.9 0-113.1 31.2-31.2 81.9-31.2 113.1 0 31.2 31.1 31.2 81.9 0 113.1z"] };
  3188. var faMarsStrokeV = { prefix: 'fas', iconName: 'mars-stroke-v', icon: [288, 512, [], "f22a", "M245.8 234.2c-19.9-19.9-44.2-32.8-69.8-38.6v-25.4h20c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20V81.4h23.9c10.7 0 16-12.9 8.5-20.5L152.5 5.1c-4.7-4.7-12.3-4.7-17 0L79.6 61c-7.6 7.6-2.2 20.5 8.5 20.5H112v24.7H92c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h20v25.4c-25.6 5.8-49.9 18.7-69.8 38.6-56.2 56.2-56.2 147.4 0 203.6 56.2 56.2 147.4 56.2 203.6 0 56.3-56.2 56.3-147.4 0-203.6zm-45.2 158.4c-31.2 31.2-81.9 31.2-113.1 0-31.2-31.2-31.2-81.9 0-113.1 31.2-31.2 81.9-31.2 113.1 0 31.2 31.1 31.2 81.9 0 113.1z"] };
  3189. var faMask = { prefix: 'fas', iconName: 'mask', icon: [640, 512, [], "f6fa", "M320.67 64c-442.6 0-357.57 384-158.46 384 39.9 0 77.47-20.69 101.42-55.86l25.73-37.79c15.66-22.99 46.97-22.99 62.63 0l25.73 37.79C401.66 427.31 439.23 448 479.13 448c189.86 0 290.63-384-158.46-384zM184 308.36c-41.06 0-67.76-25.66-80.08-41.05-5.23-6.53-5.23-16.09 0-22.63 12.32-15.4 39.01-41.05 80.08-41.05s67.76 25.66 80.08 41.05c5.23 6.53 5.23 16.09 0 22.63-12.32 15.4-39.02 41.05-80.08 41.05zm272 0c-41.06 0-67.76-25.66-80.08-41.05-5.23-6.53-5.23-16.09 0-22.63 12.32-15.4 39.01-41.05 80.08-41.05s67.76 25.66 80.08 41.05c5.23 6.53 5.23 16.09 0 22.63-12.32 15.4-39.02 41.05-80.08 41.05z"] };
  3190. var faMedal = { prefix: 'fas', iconName: 'medal', icon: [512, 512, [], "f5a2", "M223.75 130.75L154.62 15.54A31.997 31.997 0 0 0 127.18 0H16.03C3.08 0-4.5 14.57 2.92 25.18l111.27 158.96c29.72-27.77 67.52-46.83 109.56-53.39zM495.97 0H384.82c-11.24 0-21.66 5.9-27.44 15.54l-69.13 115.21c42.04 6.56 79.84 25.62 109.56 53.38L509.08 25.18C516.5 14.57 508.92 0 495.97 0zM256 160c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm92.52 157.26l-37.93 36.96 8.97 52.22c1.6 9.36-8.26 16.51-16.65 12.09L256 393.88l-46.9 24.65c-8.4 4.45-18.25-2.74-16.65-12.09l8.97-52.22-37.93-36.96c-6.82-6.64-3.05-18.23 6.35-19.59l52.43-7.64 23.43-47.52c2.11-4.28 6.19-6.39 10.28-6.39 4.11 0 8.22 2.14 10.33 6.39l23.43 47.52 52.43 7.64c9.4 1.36 13.17 12.95 6.35 19.59z"] };
  3191. var faMedkit = { prefix: 'fas', iconName: 'medkit', icon: [512, 512, [], "f0fa", "M96 480h320V128h-32V80c0-26.51-21.49-48-48-48H176c-26.51 0-48 21.49-48 48v48H96v352zm96-384h128v32H192V96zm320 80v256c0 26.51-21.49 48-48 48h-16V128h16c26.51 0 48 21.49 48 48zM64 480H48c-26.51 0-48-21.49-48-48V176c0-26.51 21.49-48 48-48h16v352zm288-208v32c0 8.837-7.163 16-16 16h-48v48c0 8.837-7.163 16-16 16h-32c-8.837 0-16-7.163-16-16v-48h-48c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16h48v-48c0-8.837 7.163-16 16-16h32c8.837 0 16 7.163 16 16v48h48c8.837 0 16 7.163 16 16z"] };
  3192. var faMeh = { prefix: 'fas', iconName: 'meh', icon: [496, 512, [], "f11a", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm-80 168c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm176 192H152c-21.2 0-21.2-32 0-32h192c21.2 0 21.2 32 0 32zm-16-128c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"] };
  3193. var faMehBlank = { prefix: 'fas', iconName: 'meh-blank', icon: [496, 512, [], "f5a4", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm-80 232c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm160 0c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"] };
  3194. var faMehRollingEyes = { prefix: 'fas', iconName: 'meh-rolling-eyes', icon: [496, 512, [], "f5a5", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM88 224c0-24.3 13.7-45.2 33.6-56-.7 2.6-1.6 5.2-1.6 8 0 17.7 14.3 32 32 32s32-14.3 32-32c0-2.8-.9-5.4-1.6-8 19.9 10.8 33.6 31.7 33.6 56 0 35.3-28.7 64-64 64s-64-28.7-64-64zm224 176H184c-21.2 0-21.2-32 0-32h128c21.2 0 21.2 32 0 32zm32-112c-35.3 0-64-28.7-64-64 0-24.3 13.7-45.2 33.6-56-.7 2.6-1.6 5.2-1.6 8 0 17.7 14.3 32 32 32s32-14.3 32-32c0-2.8-.9-5.4-1.6-8 19.9 10.8 33.6 31.7 33.6 56 0 35.3-28.7 64-64 64z"] };
  3195. var faMemory = { prefix: 'fas', iconName: 'memory', icon: [640, 512, [], "f538", "M640 130.94V96c0-17.67-14.33-32-32-32H32C14.33 64 0 78.33 0 96v34.94c18.6 6.61 32 24.19 32 45.06s-13.4 38.45-32 45.06V320h640v-98.94c-18.6-6.61-32-24.19-32-45.06s13.4-38.45 32-45.06zM224 256h-64V128h64v128zm128 0h-64V128h64v128zm128 0h-64V128h64v128zM0 448h64v-26.67c0-8.84 7.16-16 16-16s16 7.16 16 16V448h128v-26.67c0-8.84 7.16-16 16-16s16 7.16 16 16V448h128v-26.67c0-8.84 7.16-16 16-16s16 7.16 16 16V448h128v-26.67c0-8.84 7.16-16 16-16s16 7.16 16 16V448h64v-96H0v96z"] };
  3196. var faMenorah = { prefix: 'fas', iconName: 'menorah', icon: [640, 512, [], "f676", "M144 128h-32c-8.84 0-16 7.16-16 16v144h64V144c0-8.84-7.16-16-16-16zm96 0h-32c-8.84 0-16 7.16-16 16v144h64V144c0-8.84-7.16-16-16-16zm192 0h-32c-8.84 0-16 7.16-16 16v144h64V144c0-8.84-7.16-16-16-16zm96 0h-32c-8.84 0-16 7.16-16 16v144h64V144c0-8.84-7.16-16-16-16zm80-32c17.67 0 32-14.33 32-32S608 0 608 0s-32 46.33-32 64 14.33 32 32 32zm-96 0c17.67 0 32-14.33 32-32S512 0 512 0s-32 46.33-32 64 14.33 32 32 32zm-96 0c17.67 0 32-14.33 32-32S416 0 416 0s-32 46.33-32 64 14.33 32 32 32zm-96 0c17.67 0 32-14.33 32-32S320 0 320 0s-32 46.33-32 64 14.33 32 32 32zm-96 0c17.67 0 32-14.33 32-32S224 0 224 0s-32 46.33-32 64 14.33 32 32 32zm-96 0c17.67 0 32-14.33 32-32S128 0 128 0 96 46.33 96 64s14.33 32 32 32zm-96 0c17.67 0 32-14.33 32-32S32 0 32 0 0 46.33 0 64s14.33 32 32 32zm544 192c0 17.67-14.33 32-32 32H352V144c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v176H96c-17.67 0-32-14.33-32-32V144c0-8.84-7.16-16-16-16H16c-8.84 0-16 7.16-16 16v144c0 53.02 42.98 96 96 96h192v64H112c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h416c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16H352v-64h192c53.02 0 96-42.98 96-96V144c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v144z"] };
  3197. var faMercury = { prefix: 'fas', iconName: 'mercury', icon: [288, 512, [], "f223", "M288 208c0-44.2-19.9-83.7-51.2-110.1 2.5-1.8 4.9-3.8 7.2-5.8 24.7-21.2 39.8-48.8 43.2-78.8.9-7.1-4.7-13.3-11.9-13.3h-40.5C229 0 224.1 4.1 223 9.8c-2.4 12.5-9.6 24.3-20.7 33.8C187 56.8 166.3 64 144 64s-43-7.2-58.4-20.4C74.5 34.1 67.4 22.3 64.9 9.8 63.8 4.1 58.9 0 53.2 0H12.7C5.5 0-.1 6.2.8 13.3 4.2 43.4 19.2 71 44 92.2c2.3 2 4.7 3.9 7.2 5.8C19.9 124.3 0 163.8 0 208c0 68.5 47.9 125.9 112 140.4V400H76c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h36v36c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-36h36c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-36v-51.6c64.1-14.5 112-71.9 112-140.4zm-224 0c0-44.1 35.9-80 80-80s80 35.9 80 80-35.9 80-80 80-80-35.9-80-80z"] };
  3198. var faMicrochip = { prefix: 'fas', iconName: 'microchip', icon: [512, 512, [], "f2db", "M416 48v416c0 26.51-21.49 48-48 48H144c-26.51 0-48-21.49-48-48V48c0-26.51 21.49-48 48-48h224c26.51 0 48 21.49 48 48zm96 58v12a6 6 0 0 1-6 6h-18v6a6 6 0 0 1-6 6h-42V88h42a6 6 0 0 1 6 6v6h18a6 6 0 0 1 6 6zm0 96v12a6 6 0 0 1-6 6h-18v6a6 6 0 0 1-6 6h-42v-48h42a6 6 0 0 1 6 6v6h18a6 6 0 0 1 6 6zm0 96v12a6 6 0 0 1-6 6h-18v6a6 6 0 0 1-6 6h-42v-48h42a6 6 0 0 1 6 6v6h18a6 6 0 0 1 6 6zm0 96v12a6 6 0 0 1-6 6h-18v6a6 6 0 0 1-6 6h-42v-48h42a6 6 0 0 1 6 6v6h18a6 6 0 0 1 6 6zM30 376h42v48H30a6 6 0 0 1-6-6v-6H6a6 6 0 0 1-6-6v-12a6 6 0 0 1 6-6h18v-6a6 6 0 0 1 6-6zm0-96h42v48H30a6 6 0 0 1-6-6v-6H6a6 6 0 0 1-6-6v-12a6 6 0 0 1 6-6h18v-6a6 6 0 0 1 6-6zm0-96h42v48H30a6 6 0 0 1-6-6v-6H6a6 6 0 0 1-6-6v-12a6 6 0 0 1 6-6h18v-6a6 6 0 0 1 6-6zm0-96h42v48H30a6 6 0 0 1-6-6v-6H6a6 6 0 0 1-6-6v-12a6 6 0 0 1 6-6h18v-6a6 6 0 0 1 6-6z"] };
  3199. var faMicrophone = { prefix: 'fas', iconName: 'microphone', icon: [352, 512, [], "f130", "M176 352c53.02 0 96-42.98 96-96V96c0-53.02-42.98-96-96-96S80 42.98 80 96v160c0 53.02 42.98 96 96 96zm160-160h-16c-8.84 0-16 7.16-16 16v48c0 74.8-64.49 134.82-140.79 127.38C96.71 376.89 48 317.11 48 250.3V208c0-8.84-7.16-16-16-16H16c-8.84 0-16 7.16-16 16v40.16c0 89.64 63.97 169.55 152 181.69V464H96c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16h160c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16h-56v-33.77C285.71 418.47 352 344.9 352 256v-48c0-8.84-7.16-16-16-16z"] };
  3200. var faMicrophoneAlt = { prefix: 'fas', iconName: 'microphone-alt', icon: [352, 512, [], "f3c9", "M336 192h-16c-8.84 0-16 7.16-16 16v48c0 74.8-64.49 134.82-140.79 127.38C96.71 376.89 48 317.11 48 250.3V208c0-8.84-7.16-16-16-16H16c-8.84 0-16 7.16-16 16v40.16c0 89.64 63.97 169.55 152 181.69V464H96c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16h160c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16h-56v-33.77C285.71 418.47 352 344.9 352 256v-48c0-8.84-7.16-16-16-16zM176 352c53.02 0 96-42.98 96-96h-85.33c-5.89 0-10.67-3.58-10.67-8v-16c0-4.42 4.78-8 10.67-8H272v-32h-85.33c-5.89 0-10.67-3.58-10.67-8v-16c0-4.42 4.78-8 10.67-8H272v-32h-85.33c-5.89 0-10.67-3.58-10.67-8v-16c0-4.42 4.78-8 10.67-8H272c0-53.02-42.98-96-96-96S80 42.98 80 96v160c0 53.02 42.98 96 96 96z"] };
  3201. var faMicrophoneAltSlash = { prefix: 'fas', iconName: 'microphone-alt-slash', icon: [640, 512, [], "f539", "M633.82 458.1L476.26 336.33C488.74 312.21 496 284.98 496 256v-48c0-8.84-7.16-16-16-16h-16c-8.84 0-16 7.16-16 16v48c0 17.92-3.96 34.8-10.72 50.2l-26.55-20.52c3.1-9.4 5.28-19.22 5.28-29.67h-43.67l-41.4-32H416v-32h-85.33c-5.89 0-10.67-3.58-10.67-8v-16c0-4.42 4.78-8 10.67-8H416v-32h-85.33c-5.89 0-10.67-3.58-10.67-8v-16c0-4.42 4.78-8 10.67-8H416c0-53.02-42.98-96-96-96s-96 42.98-96 96v45.36L45.47 3.37C38.49-2.05 28.43-.8 23.01 6.18L3.37 31.45C-2.05 38.42-.8 48.47 6.18 53.9l588.36 454.73c6.98 5.43 17.03 4.17 22.46-2.81l19.64-25.27c5.41-6.97 4.16-17.02-2.82-22.45zM400 464h-56v-33.78c11.71-1.62 23.1-4.28 33.96-8.08l-50.4-38.96c-6.71.4-13.41.87-20.35.2-55.85-5.45-98.74-48.63-111.18-101.85L144 241.31v6.85c0 89.64 63.97 169.55 152 181.69V464h-56c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16h160c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16z"] };
  3202. var faMicrophoneSlash = { prefix: 'fas', iconName: 'microphone-slash', icon: [640, 512, [], "f131", "M633.82 458.1l-157.8-121.96C488.61 312.13 496 285.01 496 256v-48c0-8.84-7.16-16-16-16h-16c-8.84 0-16 7.16-16 16v48c0 17.92-3.96 34.8-10.72 50.2l-26.55-20.52c3.1-9.4 5.28-19.22 5.28-29.67V96c0-53.02-42.98-96-96-96s-96 42.98-96 96v45.36L45.47 3.37C38.49-2.05 28.43-.8 23.01 6.18L3.37 31.45C-2.05 38.42-.8 48.47 6.18 53.9l588.36 454.73c6.98 5.43 17.03 4.17 22.46-2.81l19.64-25.27c5.41-6.97 4.16-17.02-2.82-22.45zM400 464h-56v-33.77c11.66-1.6 22.85-4.54 33.67-8.31l-50.11-38.73c-6.71.4-13.41.87-20.35.2-55.85-5.45-98.74-48.63-111.18-101.85L144 241.31v6.85c0 89.64 63.97 169.55 152 181.69V464h-56c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16h160c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16z"] };
  3203. var faMicroscope = { prefix: 'fas', iconName: 'microscope', icon: [512, 512, [], "f610", "M160 320h12v16c0 8.84 7.16 16 16 16h40c8.84 0 16-7.16 16-16v-16h12c17.67 0 32-14.33 32-32V64c0-17.67-14.33-32-32-32V16c0-8.84-7.16-16-16-16h-64c-8.84 0-16 7.16-16 16v16c-17.67 0-32 14.33-32 32v224c0 17.67 14.33 32 32 32zm304 128h-1.29C493.24 413.99 512 369.2 512 320c0-105.88-86.12-192-192-192v64c70.58 0 128 57.42 128 128s-57.42 128-128 128H48c-26.51 0-48 21.49-48 48 0 8.84 7.16 16 16 16h480c8.84 0 16-7.16 16-16 0-26.51-21.49-48-48-48zm-360-32h208c4.42 0 8-3.58 8-8v-16c0-4.42-3.58-8-8-8H104c-4.42 0-8 3.58-8 8v16c0 4.42 3.58 8 8 8z"] };
  3204. var faMinus = { prefix: 'fas', iconName: 'minus', icon: [448, 512, [], "f068", "M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"] };
  3205. var faMinusCircle = { prefix: 'fas', iconName: 'minus-circle', icon: [512, 512, [], "f056", "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zM124 296c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h264c6.6 0 12 5.4 12 12v56c0 6.6-5.4 12-12 12H124z"] };
  3206. var faMinusSquare = { prefix: 'fas', iconName: 'minus-square', icon: [448, 512, [], "f146", "M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zM92 296c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h264c6.6 0 12 5.4 12 12v56c0 6.6-5.4 12-12 12H92z"] };
  3207. var faMobile = { prefix: 'fas', iconName: 'mobile', icon: [320, 512, [], "f10b", "M272 0H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h224c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zM160 480c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"] };
  3208. var faMobileAlt = { prefix: 'fas', iconName: 'mobile-alt', icon: [320, 512, [], "f3cd", "M272 0H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h224c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zM160 480c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm112-108c0 6.6-5.4 12-12 12H60c-6.6 0-12-5.4-12-12V60c0-6.6 5.4-12 12-12h200c6.6 0 12 5.4 12 12v312z"] };
  3209. var faMoneyBill = { prefix: 'fas', iconName: 'money-bill', icon: [640, 512, [], "f0d6", "M608 64H32C14.33 64 0 78.33 0 96v320c0 17.67 14.33 32 32 32h576c17.67 0 32-14.33 32-32V96c0-17.67-14.33-32-32-32zM48 400v-64c35.35 0 64 28.65 64 64H48zm0-224v-64h64c0 35.35-28.65 64-64 64zm272 176c-44.19 0-80-42.99-80-96 0-53.02 35.82-96 80-96s80 42.98 80 96c0 53.03-35.83 96-80 96zm272 48h-64c0-35.35 28.65-64 64-64v64zm0-224c-35.35 0-64-28.65-64-64h64v64z"] };
  3210. var faMoneyBillAlt = { prefix: 'fas', iconName: 'money-bill-alt', icon: [640, 512, [], "f3d1", "M352 288h-16v-88c0-4.42-3.58-8-8-8h-13.58c-4.74 0-9.37 1.4-13.31 4.03l-15.33 10.22a7.994 7.994 0 0 0-2.22 11.09l8.88 13.31a7.994 7.994 0 0 0 11.09 2.22l.47-.31V288h-16c-4.42 0-8 3.58-8 8v16c0 4.42 3.58 8 8 8h64c4.42 0 8-3.58 8-8v-16c0-4.42-3.58-8-8-8zM608 64H32C14.33 64 0 78.33 0 96v320c0 17.67 14.33 32 32 32h576c17.67 0 32-14.33 32-32V96c0-17.67-14.33-32-32-32zM48 400v-64c35.35 0 64 28.65 64 64H48zm0-224v-64h64c0 35.35-28.65 64-64 64zm272 192c-53.02 0-96-50.15-96-112 0-61.86 42.98-112 96-112s96 50.14 96 112c0 61.87-43 112-96 112zm272 32h-64c0-35.35 28.65-64 64-64v64zm0-224c-35.35 0-64-28.65-64-64h64v64z"] };
  3211. var faMoneyBillWave = { prefix: 'fas', iconName: 'money-bill-wave', icon: [640, 512, [], "f53a", "M621.16 54.46C582.37 38.19 543.55 32 504.75 32c-123.17-.01-246.33 62.34-369.5 62.34-30.89 0-61.76-3.92-92.65-13.72-3.47-1.1-6.95-1.62-10.35-1.62C15.04 79 0 92.32 0 110.81v317.26c0 12.63 7.23 24.6 18.84 29.46C57.63 473.81 96.45 480 135.25 480c123.17 0 246.34-62.35 369.51-62.35 30.89 0 61.76 3.92 92.65 13.72 3.47 1.1 6.95 1.62 10.35 1.62 17.21 0 32.25-13.32 32.25-31.81V83.93c-.01-12.64-7.24-24.6-18.85-29.47zM48 132.22c20.12 5.04 41.12 7.57 62.72 8.93C104.84 170.54 79 192.69 48 192.69v-60.47zm0 285v-47.78c34.37 0 62.18 27.27 63.71 61.4-22.53-1.81-43.59-6.31-63.71-13.62zM320 352c-44.19 0-80-42.99-80-96 0-53.02 35.82-96 80-96s80 42.98 80 96c0 53.03-35.83 96-80 96zm272 27.78c-17.52-4.39-35.71-6.85-54.32-8.44 5.87-26.08 27.5-45.88 54.32-49.28v57.72zm0-236.11c-30.89-3.91-54.86-29.7-55.81-61.55 19.54 2.17 38.09 6.23 55.81 12.66v48.89z"] };
  3212. var faMoneyBillWaveAlt = { prefix: 'fas', iconName: 'money-bill-wave-alt', icon: [640, 512, [], "f53b", "M621.16 54.46C582.37 38.19 543.55 32 504.75 32c-123.17-.01-246.33 62.34-369.5 62.34-30.89 0-61.76-3.92-92.65-13.72-3.47-1.1-6.95-1.62-10.35-1.62C15.04 79 0 92.32 0 110.81v317.26c0 12.63 7.23 24.6 18.84 29.46C57.63 473.81 96.45 480 135.25 480c123.17 0 246.34-62.35 369.51-62.35 30.89 0 61.76 3.92 92.65 13.72 3.47 1.1 6.95 1.62 10.35 1.62 17.21 0 32.25-13.32 32.25-31.81V83.93c-.01-12.64-7.24-24.6-18.85-29.47zM320 352c-44.19 0-80-42.99-80-96 0-53.02 35.82-96 80-96s80 42.98 80 96c0 53.03-35.83 96-80 96z"] };
  3213. var faMoneyCheck = { prefix: 'fas', iconName: 'money-check', icon: [640, 512, [], "f53c", "M0 448c0 17.67 14.33 32 32 32h576c17.67 0 32-14.33 32-32V128H0v320zm448-208c0-8.84 7.16-16 16-16h96c8.84 0 16 7.16 16 16v32c0 8.84-7.16 16-16 16h-96c-8.84 0-16-7.16-16-16v-32zm0 120c0-4.42 3.58-8 8-8h112c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H456c-4.42 0-8-3.58-8-8v-16zM64 264c0-4.42 3.58-8 8-8h304c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8v-16zm0 96c0-4.42 3.58-8 8-8h176c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8v-16zM624 32H16C7.16 32 0 39.16 0 48v48h640V48c0-8.84-7.16-16-16-16z"] };
  3214. var faMoneyCheckAlt = { prefix: 'fas', iconName: 'money-check-alt', icon: [640, 512, [], "f53d", "M608 32H32C14.33 32 0 46.33 0 64v384c0 17.67 14.33 32 32 32h576c17.67 0 32-14.33 32-32V64c0-17.67-14.33-32-32-32zM176 327.88V344c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-16.29c-11.29-.58-22.27-4.52-31.37-11.35-3.9-2.93-4.1-8.77-.57-12.14l11.75-11.21c2.77-2.64 6.89-2.76 10.13-.73 3.87 2.42 8.26 3.72 12.82 3.72h28.11c6.5 0 11.8-5.92 11.8-13.19 0-5.95-3.61-11.19-8.77-12.73l-45-13.5c-18.59-5.58-31.58-23.42-31.58-43.39 0-24.52 19.05-44.44 42.67-45.07V152c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v16.29c11.29.58 22.27 4.51 31.37 11.35 3.9 2.93 4.1 8.77.57 12.14l-11.75 11.21c-2.77 2.64-6.89 2.76-10.13.73-3.87-2.43-8.26-3.72-12.82-3.72h-28.11c-6.5 0-11.8 5.92-11.8 13.19 0 5.95 3.61 11.19 8.77 12.73l45 13.5c18.59 5.58 31.58 23.42 31.58 43.39 0 24.53-19.05 44.44-42.67 45.07zM416 312c0 4.42-3.58 8-8 8H296c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h112c4.42 0 8 3.58 8 8v16zm160 0c0 4.42-3.58 8-8 8h-80c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h80c4.42 0 8 3.58 8 8v16zm0-96c0 4.42-3.58 8-8 8H296c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h272c4.42 0 8 3.58 8 8v16z"] };
  3215. var faMonument = { prefix: 'fas', iconName: 'monument', icon: [384, 512, [], "f5a6", "M368 448H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h352c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zm-78.86-347.26a31.97 31.97 0 0 0-9.21-19.44L203.31 4.69c-6.25-6.25-16.38-6.25-22.63 0l-76.6 76.61a31.97 31.97 0 0 0-9.21 19.44L64 416h256l-30.86-315.26zM240 307.2c0 6.4-6.4 12.8-12.8 12.8h-70.4c-6.4 0-12.8-6.4-12.8-12.8v-38.4c0-6.4 6.4-12.8 12.8-12.8h70.4c6.4 0 12.8 6.4 12.8 12.8v38.4z"] };
  3216. var faMoon = { prefix: 'fas', iconName: 'moon', icon: [512, 512, [], "f186", "M283.211 512c78.962 0 151.079-35.925 198.857-94.792 7.068-8.708-.639-21.43-11.562-19.35-124.203 23.654-238.262-71.576-238.262-196.954 0-72.222 38.662-138.635 101.498-174.394 9.686-5.512 7.25-20.197-3.756-22.23A258.156 258.156 0 0 0 283.211 0c-141.309 0-256 114.511-256 256 0 141.309 114.511 256 256 256z"] };
  3217. var faMortarPestle = { prefix: 'fas', iconName: 'mortar-pestle', icon: [512, 512, [], "f5a7", "M501.54 60.91c17.22-17.22 12.51-46.25-9.27-57.14a35.696 35.696 0 0 0-37.37 3.37L251.09 160h151.37l99.08-99.09zM496 192H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h16c0 80.98 50.2 150.11 121.13 178.32-12.76 16.87-21.72 36.8-24.95 58.69-1.46 9.92 6.04 18.98 16.07 18.98h223.5c10.03 0 17.53-9.06 16.07-18.98-3.22-21.89-12.18-41.82-24.95-58.69C429.8 406.11 480 336.98 480 256h16c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z"] };
  3218. var faMosque = { prefix: 'fas', iconName: 'mosque', icon: [640, 512, [], "f678", "M0 480c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32V160H0v320zm579.16-192c17.86-17.39 28.84-37.34 28.84-58.91 0-52.86-41.79-93.79-87.92-122.9-41.94-26.47-80.63-57.77-111.96-96.22L400 0l-8.12 9.97c-31.33 38.45-70.01 69.76-111.96 96.22C233.79 135.3 192 176.23 192 229.09c0 21.57 10.98 41.52 28.84 58.91h358.32zM608 320H192c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h32v-64c0-17.67 14.33-32 32-32s32 14.33 32 32v64h64v-72c0-48 48-72 48-72s48 24 48 72v72h64v-64c0-17.67 14.33-32 32-32s32 14.33 32 32v64h32c17.67 0 32-14.33 32-32V352c0-17.67-14.33-32-32-32zM64 0S0 32 0 96v32h128V96c0-64-64-96-64-96z"] };
  3219. var faMotorcycle = { prefix: 'fas', iconName: 'motorcycle', icon: [640, 512, [], "f21c", "M512.949 192.003c-14.862-.108-29.14 2.322-42.434 6.874L437.589 144H520c13.255 0 24-10.745 24-24V88c0-13.255-10.745-24-24-24h-45.311a24 24 0 0 0-17.839 7.945l-37.496 41.663-22.774-37.956A24 24 0 0 0 376 64h-80c-8.837 0-16 7.163-16 16v16c0 8.837 7.163 16 16 16h66.411l19.2 32H227.904c-17.727-23.073-44.924-40-99.904-40H72.54c-13.455 0-24.791 11.011-24.536 24.464C48.252 141.505 58.9 152 72 152h56c24.504 0 38.686 10.919 47.787 24.769l-11.291 20.529c-13.006-3.865-26.871-5.736-41.251-5.21C55.857 194.549 1.565 249.605.034 317.021-1.603 389.076 56.317 448 128 448c59.642 0 109.744-40.794 123.953-96h84.236c13.673 0 24.589-11.421 23.976-25.077-2.118-47.12 17.522-93.665 56.185-125.026l12.485 20.808c-27.646 23.654-45.097 58.88-44.831 98.179.47 69.556 57.203 126.452 126.758 127.11 71.629.678 129.839-57.487 129.234-129.099-.588-69.591-57.455-126.386-127.047-126.892zM128 400c-44.112 0-80-35.888-80-80s35.888-80 80-80c4.242 0 8.405.341 12.469.982L98.97 316.434C90.187 332.407 101.762 352 120 352h81.297c-12.37 28.225-40.56 48-73.297 48zm388.351-.116C470.272 402.337 432 365.554 432 320c0-21.363 8.434-40.781 22.125-55.144l49.412 82.352c4.546 7.577 14.375 10.034 21.952 5.488l13.72-8.232c7.577-4.546 10.034-14.375 5.488-21.952l-48.556-80.927A80.005 80.005 0 0 1 512 240c45.554 0 82.338 38.273 79.884 84.352-2.16 40.558-34.974 73.372-75.533 75.532z"] };
  3220. var faMountain = { prefix: 'fas', iconName: 'mountain', icon: [640, 512, [], "f6fc", "M634.92 462.7l-288-448C341.03 5.54 330.89 0 320 0s-21.03 5.54-26.92 14.7l-288 448a32.001 32.001 0 0 0-1.17 32.64A32.004 32.004 0 0 0 32 512h576c11.71 0 22.48-6.39 28.09-16.67a31.983 31.983 0 0 0-1.17-32.63zM320 91.18L405.39 224H320l-64 64-38.06-38.06L320 91.18z"] };
  3221. var faMousePointer = { prefix: 'fas', iconName: 'mouse-pointer', icon: [320, 512, [], "f245", "M302.189 329.126H196.105l55.831 135.993c3.889 9.428-.555 19.999-9.444 23.999l-49.165 21.427c-9.165 4-19.443-.571-23.332-9.714l-53.053-129.136-86.664 89.138C18.729 472.71 0 463.554 0 447.977V18.299C0 1.899 19.921-6.096 30.277 5.443l284.412 292.542c11.472 11.179 3.007 31.141-12.5 31.141z"] };
  3222. var faMusic = { prefix: 'fas', iconName: 'music', icon: [512, 512, [], "f001", "M511.99 32.01c0-21.71-21.1-37.01-41.6-30.51L150.4 96c-13.3 4.2-22.4 16.5-22.4 30.5v261.42c-10.05-2.38-20.72-3.92-32-3.92-53.02 0-96 28.65-96 64s42.98 64 96 64 96-28.65 96-64V214.31l256-75.02v184.63c-10.05-2.38-20.72-3.92-32-3.92-53.02 0-96 28.65-96 64s42.98 64 96 64 96-28.65 96-64l-.01-351.99z"] };
  3223. var faNetworkWired = { prefix: 'fas', iconName: 'network-wired', icon: [640, 512, [], "f6ff", "M640 264v-16c0-8.84-7.16-16-16-16H344v-40h72c17.67 0 32-14.33 32-32V32c0-17.67-14.33-32-32-32H224c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h72v40H16c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16h104v40H64c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h160c17.67 0 32-14.33 32-32V352c0-17.67-14.33-32-32-32h-56v-40h304v40h-56c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h160c17.67 0 32-14.33 32-32V352c0-17.67-14.33-32-32-32h-56v-40h104c8.84 0 16-7.16 16-16zM256 128V64h128v64H256zm-64 320H96v-64h96v64zm352 0h-96v-64h96v64z"] };
  3224. var faNeuter = { prefix: 'fas', iconName: 'neuter', icon: [288, 512, [], "f22c", "M288 176c0-79.5-64.5-144-144-144S0 96.5 0 176c0 68.5 47.9 125.9 112 140.4V468c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12V316.4c64.1-14.5 112-71.9 112-140.4zm-144 80c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"] };
  3225. var faNewspaper = { prefix: 'fas', iconName: 'newspaper', icon: [576, 512, [], "f1ea", "M552 64H88c-13.255 0-24 10.745-24 24v8H24c-13.255 0-24 10.745-24 24v272c0 30.928 25.072 56 56 56h472c26.51 0 48-21.49 48-48V88c0-13.255-10.745-24-24-24zM56 400a8 8 0 0 1-8-8V144h16v248a8 8 0 0 1-8 8zm236-16H140c-6.627 0-12-5.373-12-12v-8c0-6.627 5.373-12 12-12h152c6.627 0 12 5.373 12 12v8c0 6.627-5.373 12-12 12zm208 0H348c-6.627 0-12-5.373-12-12v-8c0-6.627 5.373-12 12-12h152c6.627 0 12 5.373 12 12v8c0 6.627-5.373 12-12 12zm-208-96H140c-6.627 0-12-5.373-12-12v-8c0-6.627 5.373-12 12-12h152c6.627 0 12 5.373 12 12v8c0 6.627-5.373 12-12 12zm208 0H348c-6.627 0-12-5.373-12-12v-8c0-6.627 5.373-12 12-12h152c6.627 0 12 5.373 12 12v8c0 6.627-5.373 12-12 12zm0-96H140c-6.627 0-12-5.373-12-12v-40c0-6.627 5.373-12 12-12h360c6.627 0 12 5.373 12 12v40c0 6.627-5.373 12-12 12z"] };
  3226. var faNotEqual = { prefix: 'fas', iconName: 'not-equal', icon: [448, 512, [], "f53e", "M416 208c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32h-23.88l51.87-66.81c5.37-7.02 4.04-17.06-2.97-22.43L415.61 3.3c-7.02-5.38-17.06-4.04-22.44 2.97L311.09 112H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h204.56l-74.53 96H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h55.49l-51.87 66.81c-5.37 7.01-4.04 17.05 2.97 22.43L64 508.7c7.02 5.38 17.06 4.04 22.43-2.97L168.52 400H416c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32H243.05l74.53-96H416z"] };
  3227. var faNotesMedical = { prefix: 'fas', iconName: 'notes-medical', icon: [384, 512, [], "f481", "M336 64h-80c0-35.3-28.7-64-64-64s-64 28.7-64 64H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zM192 40c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24zm96 304c0 4.4-3.6 8-8 8h-56v56c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-56h-56c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h56v-56c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v56h56c4.4 0 8 3.6 8 8v48zm0-192c0 4.4-3.6 8-8 8H104c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h176c4.4 0 8 3.6 8 8v16z"] };
  3228. var faObjectGroup = { prefix: 'fas', iconName: 'object-group', icon: [512, 512, [], "f247", "M480 128V96h20c6.627 0 12-5.373 12-12V44c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v20H64V44c0-6.627-5.373-12-12-12H12C5.373 32 0 37.373 0 44v40c0 6.627 5.373 12 12 12h20v320H12c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12v-20h384v20c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-20V128zM96 276V140c0-6.627 5.373-12 12-12h168c6.627 0 12 5.373 12 12v136c0 6.627-5.373 12-12 12H108c-6.627 0-12-5.373-12-12zm320 96c0 6.627-5.373 12-12 12H236c-6.627 0-12-5.373-12-12v-52h72c13.255 0 24-10.745 24-24v-72h84c6.627 0 12 5.373 12 12v136z"] };
  3229. var faObjectUngroup = { prefix: 'fas', iconName: 'object-ungroup', icon: [576, 512, [], "f248", "M64 320v26a6 6 0 0 1-6 6H6a6 6 0 0 1-6-6v-52a6 6 0 0 1 6-6h26V96H6a6 6 0 0 1-6-6V38a6 6 0 0 1 6-6h52a6 6 0 0 1 6 6v26h288V38a6 6 0 0 1 6-6h52a6 6 0 0 1 6 6v52a6 6 0 0 1-6 6h-26v192h26a6 6 0 0 1 6 6v52a6 6 0 0 1-6 6h-52a6 6 0 0 1-6-6v-26H64zm480-64v-32h26a6 6 0 0 0 6-6v-52a6 6 0 0 0-6-6h-52a6 6 0 0 0-6 6v26H408v72h8c13.255 0 24 10.745 24 24v64c0 13.255-10.745 24-24 24h-64c-13.255 0-24-10.745-24-24v-8H192v72h-26a6 6 0 0 0-6 6v52a6 6 0 0 0 6 6h52a6 6 0 0 0 6-6v-26h288v26a6 6 0 0 0 6 6h52a6 6 0 0 0 6-6v-52a6 6 0 0 0-6-6h-26V256z"] };
  3230. var faOilCan = { prefix: 'fas', iconName: 'oil-can', icon: [640, 512, [], "f613", "M629.8 160.31L416 224l-50.49-25.24a64.07 64.07 0 0 0-28.62-6.76H280v-48h56c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16H176c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16h56v48h-56L37.72 166.86a31.9 31.9 0 0 0-5.79-.53C14.67 166.33 0 180.36 0 198.34v94.95c0 15.46 11.06 28.72 26.28 31.48L96 337.46V384c0 17.67 14.33 32 32 32h274.63c8.55 0 16.75-3.42 22.76-9.51l212.26-214.75c1.5-1.5 2.34-3.54 2.34-5.66V168c.01-5.31-5.08-9.15-10.19-7.69zM96 288.67l-48-8.73v-62.43l48 8.73v62.43zm453.33 84.66c0 23.56 19.1 42.67 42.67 42.67s42.67-19.1 42.67-42.67S592 288 592 288s-42.67 61.77-42.67 85.33z"] };
  3231. var faOm = { prefix: 'fas', iconName: 'om', icon: [512, 512, [], "f679", "M360.6 60.94a10.43 10.43 0 0 0 14.76 0l21.57-21.56a10.43 10.43 0 0 0 0-14.76L375.35 3.06c-4.08-4.07-10.68-4.07-14.76 0l-21.57 21.56a10.43 10.43 0 0 0 0 14.76l21.58 21.56zM412.11 192c-26.69 0-51.77 10.39-70.64 29.25l-24.25 24.25c-6.78 6.77-15.78 10.5-25.38 10.5H245c10.54-22.1 14.17-48.11 7.73-75.23-10.1-42.55-46.36-76.11-89.52-83.19-36.15-5.93-70.9 5.04-96.01 28.78-7.36 6.96-6.97 18.85 1.12 24.93l26.15 19.63c5.72 4.3 13.66 4.32 19.2-.21 8.45-6.9 19.02-10.71 30.27-10.71 26.47 0 48.01 21.53 48.01 48s-21.54 48-48.01 48h-31.9c-11.96 0-19.74 12.58-14.39 23.28l16.09 32.17c2.53 5.06 7.6 8.1 13.17 8.55h33.03c35.3 0 64.01 28.7 64.01 64s-28.71 64-64.01 64c-96.02 0-122.35-54.02-145.15-92.03-4.53-7.55-14.77-3.58-14.79 5.22C-.09 416 41.13 512 159.94 512c70.59 0 128.02-57.42 128.02-128 0-23.42-6.78-45.1-17.81-64h21.69c26.69 0 51.77-10.39 70.64-29.25l24.25-24.25c6.78-6.77 15.78-10.5 25.38-10.5 19.78 0 35.88 16.09 35.88 35.88V392c0 13.23-18.77 24-32.01 24-39.4 0-66.67-24.24-81.82-42.89-4.77-5.87-14.2-2.54-14.2 5.02V416s0 64 96.02 64c48.54 0 96.02-39.47 96.02-88V291.88c0-55.08-44.8-99.88-99.89-99.88zm42.18-124.73c-85.55 65.12-169.05 2.75-172.58.05-6.02-4.62-14.44-4.38-20.14.55-5.74 4.92-7.27 13.17-3.66 19.8 1.61 2.95 40.37 72.34 118.8 72.34 79.92 0 98.78-31.36 101.75-37.66 1.02-2.12 1.53-4.47 1.53-6.83V80c0-13.22-15.14-20.69-25.7-12.73z"] };
  3232. var faOtter = { prefix: 'fas', iconName: 'otter', icon: [640, 512, [], "f700", "M608 32h-32l-13.25-13.25A63.97 63.97 0 0 0 517.49 0H497c-11.14 0-22.08 2.91-31.75 8.43L312 96h-56C149.96 96 64 181.96 64 288v1.61c0 32.75-16 62.14-39.56 84.89-18.19 17.58-28.1 43.68-23.19 71.8 6.76 38.8 42.9 65.7 82.28 65.7H192c17.67 0 32-14.33 32-32s-14.33-32-32-32H80c-8.83 0-16-7.17-16-16s7.17-16 16-16h224c8.84 0 16-7.16 16-16v-16c0-17.67-14.33-32-32-32h-64l149.49-80.5L448 416h80c8.84 0 16-7.16 16-16v-16c0-17.67-14.33-32-32-32h-28.22l-55.11-110.21L521.14 192H544c53.02 0 96-42.98 96-96V64c0-17.67-14.33-32-32-32zm-96 16c8.84 0 16 7.16 16 16s-7.16 16-16 16-16-7.16-16-16 7.16-16 16-16zm32 96h-34.96L407.2 198.84l-13.77-27.55L512 112h77.05c-6.62 18.58-24.22 32-45.05 32z"] };
  3233. var faOutdent = { prefix: 'fas', iconName: 'outdent', icon: [448, 512, [], "f03b", "M0 84V44c0-8.837 7.163-16 16-16h416c8.837 0 16 7.163 16 16v40c0 8.837-7.163 16-16 16H16c-8.837 0-16-7.163-16-16zm208 144h224c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H208c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zM16 484h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm192-128h224c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H208c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zM4.687 267.313l96 95.984C110.734 373.348 128 366.224 128 351.984V160.008c0-14.329-17.325-21.304-27.313-11.313l-96 95.992c-6.249 6.248-6.249 16.378 0 22.626z"] };
  3234. var faPaintBrush = { prefix: 'fas', iconName: 'paint-brush', icon: [512, 512, [], "f1fc", "M167.02 309.34c-40.12 2.58-76.53 17.86-97.19 72.3-2.35 6.21-8 9.98-14.59 9.98-11.11 0-45.46-27.67-55.25-34.35C0 439.62 37.93 512 128 512c75.86 0 128-43.77 128-120.19 0-3.11-.65-6.08-.97-9.13l-88.01-73.34zM457.89 0c-15.16 0-29.37 6.71-40.21 16.45C213.27 199.05 192 203.34 192 257.09c0 13.7 3.25 26.76 8.73 38.7l63.82 53.18c7.21 1.8 14.64 3.03 22.39 3.03 62.11 0 98.11-45.47 211.16-256.46 7.38-14.35 13.9-29.85 13.9-45.99C512 20.64 486 0 457.89 0z"] };
  3235. var faPaintRoller = { prefix: 'fas', iconName: 'paint-roller', icon: [512, 512, [], "f5aa", "M416 128V32c0-17.67-14.33-32-32-32H32C14.33 0 0 14.33 0 32v96c0 17.67 14.33 32 32 32h352c17.67 0 32-14.33 32-32zm32-64v128c0 17.67-14.33 32-32 32H256c-35.35 0-64 28.65-64 64v32c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32V352c0-17.67-14.33-32-32-32v-32h160c53.02 0 96-42.98 96-96v-64c0-35.35-28.65-64-64-64z"] };
  3236. var faPalette = { prefix: 'fas', iconName: 'palette', icon: [512, 512, [], "f53f", "M204.3 5C104.9 24.4 24.8 104.3 5.2 203.4c-37 187 131.7 326.4 258.8 306.7 41.2-6.4 61.4-54.6 42.5-91.7-23.1-45.4 9.9-98.4 60.9-98.4h79.7c35.8 0 64.8-29.6 64.9-65.3C511.5 97.1 368.1-26.9 204.3 5zM96 320c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm32-128c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm128-64c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm128 64c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"] };
  3237. var faPallet = { prefix: 'fas', iconName: 'pallet', icon: [640, 512, [], "f482", "M144 256h352c8.8 0 16-7.2 16-16V16c0-8.8-7.2-16-16-16H384v128l-64-32-64 32V0H144c-8.8 0-16 7.2-16 16v224c0 8.8 7.2 16 16 16zm480 128c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h48v64H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h608c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16h-48v-64h48zm-336 64H128v-64h160v64zm224 0H352v-64h160v64z"] };
  3238. var faPaperPlane = { prefix: 'fas', iconName: 'paper-plane', icon: [512, 512, [], "f1d8", "M476 3.2L12.5 270.6c-18.1 10.4-15.8 35.6 2.2 43.2L121 358.4l287.3-253.2c5.5-4.9 13.3 2.6 8.6 8.3L176 407v80.5c0 23.6 28.5 32.9 42.5 15.8L282 426l124.6 52.2c14.2 6 30.4-2.9 33-18.2l72-432C515 7.8 493.3-6.8 476 3.2z"] };
  3239. var faPaperclip = { prefix: 'fas', iconName: 'paperclip', icon: [448, 512, [], "f0c6", "M43.246 466.142c-58.43-60.289-57.341-157.511 1.386-217.581L254.392 34c44.316-45.332 116.351-45.336 160.671 0 43.89 44.894 43.943 117.329 0 162.276L232.214 383.128c-29.855 30.537-78.633 30.111-107.982-.998-28.275-29.97-27.368-77.473 1.452-106.953l143.743-146.835c6.182-6.314 16.312-6.422 22.626-.241l22.861 22.379c6.315 6.182 6.422 16.312.241 22.626L171.427 319.927c-4.932 5.045-5.236 13.428-.648 18.292 4.372 4.634 11.245 4.711 15.688.165l182.849-186.851c19.613-20.062 19.613-52.725-.011-72.798-19.189-19.627-49.957-19.637-69.154 0L90.39 293.295c-34.763 35.56-35.299 93.12-1.191 128.313 34.01 35.093 88.985 35.137 123.058.286l172.06-175.999c6.177-6.319 16.307-6.433 22.626-.256l22.877 22.364c6.319 6.177 6.434 16.307.256 22.626l-172.06 175.998c-59.576 60.938-155.943 60.216-214.77-.485z"] };
  3240. var faParachuteBox = { prefix: 'fas', iconName: 'parachute-box', icon: [512, 512, [], "f4cd", "M511.9 175c-9.1-75.6-78.4-132.4-158.3-158.7C390 55.7 416 116.9 416 192h28.1L327.5 321.5c-2.5-.6-4.8-1.5-7.5-1.5h-48V192h112C384 76.8 315.1 0 256 0S128 76.8 128 192h112v128h-48c-2.7 0-5 .9-7.5 1.5L67.9 192H96c0-75.1 26-136.3 62.4-175.7C78.5 42.7 9.2 99.5.1 175c-1.1 9.1 6.8 17 16 17h8.7l136.7 151.9c-.7 2.6-1.6 5.2-1.6 8.1v128c0 17.7 14.3 32 32 32h128c17.7 0 32-14.3 32-32V352c0-2.9-.9-5.4-1.6-8.1L487.1 192h8.7c9.3 0 17.2-7.8 16.1-17z"] };
  3241. var faParagraph = { prefix: 'fas', iconName: 'paragraph', icon: [448, 512, [], "f1dd", "M408 32H177.531C88.948 32 16.045 103.335 16 191.918 15.956 280.321 87.607 352 176 352v104c0 13.255 10.745 24 24 24h32c13.255 0 24-10.745 24-24V112h32v344c0 13.255 10.745 24 24 24h32c13.255 0 24-10.745 24-24V112h40c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24z"] };
  3242. var faParking = { prefix: 'fas', iconName: 'parking', icon: [448, 512, [], "f540", "M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zM240 320h-48v48c0 8.8-7.2 16-16 16h-32c-8.8 0-16-7.2-16-16V144c0-8.8 7.2-16 16-16h96c52.9 0 96 43.1 96 96s-43.1 96-96 96zm0-128h-48v64h48c17.6 0 32-14.4 32-32s-14.4-32-32-32z"] };
  3243. var faPassport = { prefix: 'fas', iconName: 'passport', icon: [448, 512, [], "f5ab", "M129.62 176h39.09c1.49-27.03 6.54-51.35 14.21-70.41-27.71 13.24-48.02 39.19-53.3 70.41zm0 32c5.29 31.22 25.59 57.17 53.3 70.41-7.68-19.06-12.72-43.38-14.21-70.41h-39.09zM224 286.69c7.69-7.45 20.77-34.42 23.43-78.69h-46.87c2.67 44.26 15.75 71.24 23.44 78.69zM200.57 176h46.87c-2.66-44.26-15.74-71.24-23.43-78.69-7.7 7.45-20.78 34.43-23.44 78.69zm64.51 102.41c27.71-13.24 48.02-39.19 53.3-70.41h-39.09c-1.49 27.03-6.53 51.35-14.21 70.41zM416 0H64C28.65 0 0 28.65 0 64v384c0 35.35 28.65 64 64 64h352c17.67 0 32-14.33 32-32V32c0-17.67-14.33-32-32-32zm-80 416H112c-8.8 0-16-7.2-16-16s7.2-16 16-16h224c8.8 0 16 7.2 16 16s-7.2 16-16 16zm-112-96c-70.69 0-128-57.31-128-128S153.31 64 224 64s128 57.31 128 128-57.31 128-128 128zm41.08-214.41c7.68 19.06 12.72 43.38 14.21 70.41h39.09c-5.28-31.22-25.59-57.17-53.3-70.41z"] };
  3244. var faPastafarianism = { prefix: 'fas', iconName: 'pastafarianism', icon: [640, 512, [], "f67b", "M624.54 347.67c-32.7-12.52-57.36 4.25-75.37 16.45-17.06 11.53-23.25 14.42-31.41 11.36-8.12-3.09-10.83-9.38-15.89-29.38-3.33-13.15-7.44-29.32-17.95-42.65 2.24-2.91 4.43-5.79 6.38-8.57C500.47 304.45 513.71 312 532 312c33.95 0 50.87-25.78 62.06-42.83 10.59-16.14 15-21.17 21.94-21.17 13.25 0 24-10.75 24-24s-10.75-24-24-24c-33.95 0-50.87 25.78-62.06 42.83-10.6 16.14-15 21.17-21.94 21.17-17.31 0-37.48-61.43-97.26-101.91l17.25-34.5C485.43 125.5 512 97.98 512 64c0-35.35-28.65-64-64-64s-64 28.65-64 64c0 13.02 3.94 25.1 10.62 35.21l-18.15 36.3c-16.98-4.6-35.6-7.51-56.46-7.51s-39.49 2.91-56.46 7.51l-18.15-36.3C252.06 89.1 256 77.02 256 64c0-35.35-28.65-64-64-64s-64 28.65-64 64c0 33.98 26.56 61.5 60.02 63.6l17.25 34.5C145.68 202.44 125.15 264 108 264c-6.94 0-11.34-5.03-21.94-21.17C74.88 225.78 57.96 200 24 200c-13.25 0-24 10.75-24 24s10.75 24 24 24c6.94 0 11.34 5.03 21.94 21.17C57.13 286.22 74.05 312 108 312c18.29 0 31.53-7.55 41.7-17.11 1.95 2.79 4.14 5.66 6.38 8.57-10.51 13.33-14.62 29.5-17.95 42.65-5.06 20-7.77 26.28-15.89 29.38-8.11 3.06-14.33.17-31.41-11.36-18.03-12.2-42.72-28.92-75.37-16.45-12.39 4.72-18.59 18.58-13.87 30.97 4.72 12.41 18.61 18.61 30.97 13.88 8.16-3.09 14.34-.19 31.39 11.36 13.55 9.16 30.83 20.86 52.42 20.84 7.17 0 14.83-1.28 22.97-4.39 32.66-12.44 39.98-41.33 45.33-62.44 2.21-8.72 3.99-14.49 5.95-18.87 16.62 13.61 36.95 25.88 61.64 34.17-9.96 37-32.18 90.8-60.26 90.8-13.25 0-24 10.75-24 24s10.75 24 24 24c66.74 0 97.05-88.63 107.42-129.14 6.69.6 13.42 1.14 20.58 1.14s13.89-.54 20.58-1.14C350.95 423.37 381.26 512 448 512c13.25 0 24-10.75 24-24s-10.75-24-24-24c-27.94 0-50.21-53.81-60.22-90.81 24.69-8.29 45-20.56 61.62-34.16 1.96 4.38 3.74 10.15 5.95 18.87 5.34 21.11 12.67 50 45.33 62.44 8.14 3.11 15.8 4.39 22.97 4.39 21.59 0 38.87-11.69 52.42-20.84 17.05-11.55 23.28-14.45 31.39-11.36 12.39 4.75 26.27-1.47 30.97-13.88 4.71-12.4-1.49-26.26-13.89-30.98zM448 48c8.82 0 16 7.18 16 16s-7.18 16-16 16-16-7.18-16-16 7.18-16 16-16zm-256 0c8.82 0 16 7.18 16 16s-7.18 16-16 16-16-7.18-16-16 7.18-16 16-16z"] };
  3245. var faPaste = { prefix: 'fas', iconName: 'paste', icon: [448, 512, [], "f0ea", "M128 184c0-30.879 25.122-56 56-56h136V56c0-13.255-10.745-24-24-24h-80.61C204.306 12.89 183.637 0 160 0s-44.306 12.89-55.39 32H24C10.745 32 0 42.745 0 56v336c0 13.255 10.745 24 24 24h104V184zm32-144c13.255 0 24 10.745 24 24s-10.745 24-24 24-24-10.745-24-24 10.745-24 24-24zm184 248h104v200c0 13.255-10.745 24-24 24H184c-13.255 0-24-10.745-24-24V184c0-13.255 10.745-24 24-24h136v104c0 13.2 10.8 24 24 24zm104-38.059V256h-96v-96h6.059a24 24 0 0 1 16.97 7.029l65.941 65.941a24.002 24.002 0 0 1 7.03 16.971z"] };
  3246. var faPause = { prefix: 'fas', iconName: 'pause', icon: [448, 512, [], "f04c", "M144 479H48c-26.5 0-48-21.5-48-48V79c0-26.5 21.5-48 48-48h96c26.5 0 48 21.5 48 48v352c0 26.5-21.5 48-48 48zm304-48V79c0-26.5-21.5-48-48-48h-96c-26.5 0-48 21.5-48 48v352c0 26.5 21.5 48 48 48h96c26.5 0 48-21.5 48-48z"] };
  3247. var faPauseCircle = { prefix: 'fas', iconName: 'pause-circle', icon: [512, 512, [], "f28b", "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm-16 328c0 8.8-7.2 16-16 16h-48c-8.8 0-16-7.2-16-16V176c0-8.8 7.2-16 16-16h48c8.8 0 16 7.2 16 16v160zm112 0c0 8.8-7.2 16-16 16h-48c-8.8 0-16-7.2-16-16V176c0-8.8 7.2-16 16-16h48c8.8 0 16 7.2 16 16v160z"] };
  3248. var faPaw = { prefix: 'fas', iconName: 'paw', icon: [512, 512, [], "f1b0", "M256 224c-79.41 0-192 122.76-192 200.25 0 34.9 26.81 55.75 71.74 55.75 48.84 0 81.09-25.08 120.26-25.08 39.51 0 71.85 25.08 120.26 25.08 44.93 0 71.74-20.85 71.74-55.75C448 346.76 335.41 224 256 224zm-147.28-12.61c-10.4-34.65-42.44-57.09-71.56-50.13-29.12 6.96-44.29 40.69-33.89 75.34 10.4 34.65 42.44 57.09 71.56 50.13 29.12-6.96 44.29-40.69 33.89-75.34zm84.72-20.78c30.94-8.14 46.42-49.94 34.58-93.36s-46.52-72.01-77.46-63.87-46.42 49.94-34.58 93.36c11.84 43.42 46.53 72.02 77.46 63.87zm281.39-29.34c-29.12-6.96-61.15 15.48-71.56 50.13-10.4 34.65 4.77 68.38 33.89 75.34 29.12 6.96 61.15-15.48 71.56-50.13 10.4-34.65-4.77-68.38-33.89-75.34zm-156.27 29.34c30.94 8.14 65.62-20.45 77.46-63.87 11.84-43.42-3.64-85.21-34.58-93.36s-65.62 20.45-77.46 63.87c-11.84 43.42 3.64 85.22 34.58 93.36z"] };
  3249. var faPeace = { prefix: 'fas', iconName: 'peace', icon: [496, 512, [], "f67c", "M248 8C111.03 8 0 119.03 0 256s111.03 248 248 248 248-111.03 248-248S384.97 8 248 8zm184 248c0 31.93-8.2 61.97-22.57 88.17L280 240.63V74.97c86.23 15.21 152 90.5 152 181.03zM216 437.03c-33.86-5.97-64.49-21.2-89.29-43.02L216 322.57v114.46zm64-114.46L369.29 394c-24.8 21.82-55.43 37.05-89.29 43.02V322.57zm-64-247.6v165.66L86.57 344.17C72.2 317.97 64 287.93 64 256c0-90.53 65.77-165.82 152-181.03z"] };
  3250. var faPen = { prefix: 'fas', iconName: 'pen', icon: [512, 512, [], "f304", "M290.74 93.24l128.02 128.02-277.99 277.99-114.14 12.6C11.35 513.54-1.56 500.62.14 485.34l12.7-114.22 277.9-277.88zm207.2-19.06l-60.11-60.11c-18.75-18.75-49.16-18.75-67.91 0l-56.55 56.55 128.02 128.02 56.55-56.55c18.75-18.76 18.75-49.16 0-67.91z"] };
  3251. var faPenAlt = { prefix: 'fas', iconName: 'pen-alt', icon: [512, 512, [], "f305", "M497.94 74.17l-60.11-60.11c-18.75-18.75-49.16-18.75-67.91 0l-56.55 56.55 128.02 128.02 56.55-56.55c18.75-18.75 18.75-49.15 0-67.91zm-246.8-20.53c-15.62-15.62-40.94-15.62-56.56 0L75.8 172.43c-6.25 6.25-6.25 16.38 0 22.62l22.63 22.63c6.25 6.25 16.38 6.25 22.63 0l101.82-101.82 22.63 22.62L93.95 290.03A327.038 327.038 0 0 0 .17 485.11l-.03.23c-1.7 15.28 11.21 28.2 26.49 26.51a327.02 327.02 0 0 0 195.34-93.8l196.79-196.79-82.77-82.77-84.85-84.85z"] };
  3252. var faPenFancy = { prefix: 'fas', iconName: 'pen-fancy', icon: [512, 512, [], "f5ac", "M79.18 282.94a32.005 32.005 0 0 0-20.24 20.24L0 480l4.69 4.69 92.89-92.89c-.66-2.56-1.57-5.03-1.57-7.8 0-17.67 14.33-32 32-32s32 14.33 32 32-14.33 32-32 32c-2.77 0-5.24-.91-7.8-1.57l-92.89 92.89L32 512l176.82-58.94a31.983 31.983 0 0 0 20.24-20.24l33.07-84.07-98.88-98.88-84.07 33.07zM369.25 28.32L186.14 227.81l97.85 97.85 199.49-183.11C568.4 67.48 443.73-55.94 369.25 28.32z"] };
  3253. var faPenNib = { prefix: 'fas', iconName: 'pen-nib', icon: [512, 512, [], "f5ad", "M136.6 138.79a64.003 64.003 0 0 0-43.31 41.35L0 460l14.69 14.69L164.8 324.58c-2.99-6.26-4.8-13.18-4.8-20.58 0-26.51 21.49-48 48-48s48 21.49 48 48-21.49 48-48 48c-7.4 0-14.32-1.81-20.58-4.8L37.31 497.31 52 512l279.86-93.29a64.003 64.003 0 0 0 41.35-43.31L416 224 288 96l-151.4 42.79zm361.34-64.62l-60.11-60.11c-18.75-18.75-49.16-18.75-67.91 0l-56.55 56.55 128.02 128.02 56.55-56.55c18.75-18.75 18.75-49.15 0-67.91z"] };
  3254. var faPenSquare = { prefix: 'fas', iconName: 'pen-square', icon: [448, 512, [], "f14b", "M400 480H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48v352c0 26.5-21.5 48-48 48zM238.1 177.9L102.4 313.6l-6.3 57.1c-.8 7.6 5.6 14.1 13.3 13.3l57.1-6.3L302.2 242c2.3-2.3 2.3-6.1 0-8.5L246.7 178c-2.5-2.4-6.3-2.4-8.6-.1zM345 165.1L314.9 135c-9.4-9.4-24.6-9.4-33.9 0l-23.1 23.1c-2.3 2.3-2.3 6.1 0 8.5l55.5 55.5c2.3 2.3 6.1 2.3 8.5 0L345 199c9.3-9.3 9.3-24.5 0-33.9z"] };
  3255. var faPencilAlt = { prefix: 'fas', iconName: 'pencil-alt', icon: [512, 512, [], "f303", "M497.9 142.1l-46.1 46.1c-4.7 4.7-12.3 4.7-17 0l-111-111c-4.7-4.7-4.7-12.3 0-17l46.1-46.1c18.7-18.7 49.1-18.7 67.9 0l60.1 60.1c18.8 18.7 18.8 49.1 0 67.9zM284.2 99.8L21.6 362.4.4 483.9c-2.9 16.4 11.4 30.6 27.8 27.8l121.5-21.3 262.6-262.6c4.7-4.7 4.7-12.3 0-17l-111-111c-4.8-4.7-12.4-4.7-17.1 0zM124.1 339.9c-5.5-5.5-5.5-14.3 0-19.8l154-154c5.5-5.5 14.3-5.5 19.8 0s5.5 14.3 0 19.8l-154 154c-5.5 5.5-14.3 5.5-19.8 0zM88 424h48v36.3l-64.5 11.3-31.1-31.1L51.7 376H88v48z"] };
  3256. var faPencilRuler = { prefix: 'fas', iconName: 'pencil-ruler', icon: [512, 512, [], "f5ae", "M109.46 244.04l134.58-134.56-44.12-44.12-61.68 61.68a7.919 7.919 0 0 1-11.21 0l-11.21-11.21c-3.1-3.1-3.1-8.12 0-11.21l61.68-61.68-33.64-33.65C131.47-3.1 111.39-3.1 99 9.29L9.29 99c-12.38 12.39-12.39 32.47 0 44.86l100.17 100.18zm388.47-116.8c18.76-18.76 18.75-49.17 0-67.93l-45.25-45.25c-18.76-18.76-49.18-18.76-67.95 0l-46.02 46.01 113.2 113.2 46.02-46.03zM316.08 82.71l-297 296.96L.32 487.11c-2.53 14.49 10.09 27.11 24.59 24.56l107.45-18.84L429.28 195.9 316.08 82.71zm186.63 285.43l-33.64-33.64-61.68 61.68c-3.1 3.1-8.12 3.1-11.21 0l-11.21-11.21c-3.09-3.1-3.09-8.12 0-11.21l61.68-61.68-44.14-44.14L267.93 402.5l100.21 100.2c12.39 12.39 32.47 12.39 44.86 0l89.71-89.7c12.39-12.39 12.39-32.47 0-44.86z"] };
  3257. var faPeopleCarry = { prefix: 'fas', iconName: 'people-carry', icon: [640, 512, [], "f4ce", "M128 96c26.5 0 48-21.5 48-48S154.5 0 128 0 80 21.5 80 48s21.5 48 48 48zm384 0c26.5 0 48-21.5 48-48S538.5 0 512 0s-48 21.5-48 48 21.5 48 48 48zm125.7 372.1l-44-110-41.1 46.4-2 18.2 27.7 69.2c5 12.5 17 20.1 29.7 20.1 4 0 8-.7 11.9-2.3 16.4-6.6 24.4-25.2 17.8-41.6zm-34.2-209.8L585 178.1c-4.6-20-18.6-36.8-37.5-44.9-18.5-8-39-6.7-56.1 3.3-22.7 13.4-39.7 34.5-48.1 59.4L432 229.8 416 240v-96c0-8.8-7.2-16-16-16H240c-8.8 0-16 7.2-16 16v96l-16.1-10.2-11.3-33.9c-8.3-25-25.4-46-48.1-59.4-17.2-10-37.6-11.3-56.1-3.3-18.9 8.1-32.9 24.9-37.5 44.9l-18.4 80.2c-4.6 20 .7 41.2 14.4 56.7l67.2 75.9 10.1 92.6C130 499.8 143.8 512 160 512c1.2 0 2.3-.1 3.5-.2 17.6-1.9 30.2-17.7 28.3-35.3l-10.1-92.8c-1.5-13-6.9-25.1-15.6-35l-43.3-49 17.6-70.3 6.8 20.4c4.1 12.5 11.9 23.4 24.5 32.6l51.1 32.5c4.6 2.9 12.1 4.6 17.2 5h160c5.1-.4 12.6-2.1 17.2-5l51.1-32.5c12.6-9.2 20.4-20 24.5-32.6l6.8-20.4 17.6 70.3-43.3 49c-8.7 9.9-14.1 22-15.6 35l-10.1 92.8c-1.9 17.6 10.8 33.4 28.3 35.3 1.2.1 2.3.2 3.5.2 16.1 0 30-12.1 31.8-28.5l10.1-92.6 67.2-75.9c13.6-15.5 19-36.7 14.4-56.7zM46.3 358.1l-44 110c-6.6 16.4 1.4 35 17.8 41.6 16.8 6.6 35.1-1.7 41.6-17.8l27.7-69.2-2-18.2-41.1-46.4z"] };
  3258. var faPercent = { prefix: 'fas', iconName: 'percent', icon: [448, 512, [], "f295", "M112 224c61.9 0 112-50.1 112-112S173.9 0 112 0 0 50.1 0 112s50.1 112 112 112zm0-160c26.5 0 48 21.5 48 48s-21.5 48-48 48-48-21.5-48-48 21.5-48 48-48zm224 224c-61.9 0-112 50.1-112 112s50.1 112 112 112 112-50.1 112-112-50.1-112-112-112zm0 160c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zM392.3.2l31.6-.1c19.4-.1 30.9 21.8 19.7 37.8L77.4 501.6a23.95 23.95 0 0 1-19.6 10.2l-33.4.1c-19.5 0-30.9-21.9-19.7-37.8l368-463.7C377.2 4 384.5.2 392.3.2z"] };
  3259. var faPercentage = { prefix: 'fas', iconName: 'percentage', icon: [384, 512, [], "f541", "M109.25 173.25c24.99-24.99 24.99-65.52 0-90.51-24.99-24.99-65.52-24.99-90.51 0-24.99 24.99-24.99 65.52 0 90.51 25 25 65.52 25 90.51 0zm256 165.49c-24.99-24.99-65.52-24.99-90.51 0-24.99 24.99-24.99 65.52 0 90.51 24.99 24.99 65.52 24.99 90.51 0 25-24.99 25-65.51 0-90.51zm-1.94-231.43l-22.62-22.62c-12.5-12.5-32.76-12.5-45.25 0L20.69 359.44c-12.5 12.5-12.5 32.76 0 45.25l22.62 22.62c12.5 12.5 32.76 12.5 45.25 0l274.75-274.75c12.5-12.49 12.5-32.75 0-45.25z"] };
  3260. var faPhone = { prefix: 'fas', iconName: 'phone', icon: [512, 512, [], "f095", "M493.4 24.6l-104-24c-11.3-2.6-22.9 3.3-27.5 13.9l-48 112c-4.2 9.8-1.4 21.3 6.9 28l60.6 49.6c-36 76.7-98.9 140.5-177.2 177.2l-49.6-60.6c-6.8-8.3-18.2-11.1-28-6.9l-112 48C3.9 366.5-2 378.1.6 389.4l24 104C27.1 504.2 36.7 512 48 512c256.1 0 464-207.5 464-464 0-11.2-7.7-20.9-18.6-23.4z"] };
  3261. var faPhoneSlash = { prefix: 'fas', iconName: 'phone-slash', icon: [640, 512, [], "f3dd", "M268.2 381.4l-49.6-60.6c-6.8-8.3-18.2-11.1-28-6.9l-112 48c-10.7 4.6-16.5 16.1-13.9 27.5l24 104c2.5 10.8 12.1 18.6 23.4 18.6 100.7 0 193.7-32.4 269.7-86.9l-80-61.8c-10.9 6.5-22.1 12.7-33.6 18.1zm365.6 76.7L475.1 335.5C537.9 256.4 576 156.9 576 48c0-11.2-7.7-20.9-18.6-23.4l-104-24c-11.3-2.6-22.9 3.3-27.5 13.9l-48 112c-4.2 9.8-1.4 21.3 6.9 28l60.6 49.6c-12.2 26.1-27.9 50.3-46 72.8L45.5 3.4C38.5-2 28.5-.8 23 6.2L3.4 31.4c-5.4 7-4.2 17 2.8 22.4l588.4 454.7c7 5.4 17 4.2 22.5-2.8l19.6-25.3c5.4-6.8 4.1-16.9-2.9-22.3z"] };
  3262. var faPhoneSquare = { prefix: 'fas', iconName: 'phone-square', icon: [448, 512, [], "f098", "M400 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zM94 416c-7.033 0-13.057-4.873-14.616-11.627l-14.998-65a15 15 0 0 1 8.707-17.16l69.998-29.999a15 15 0 0 1 17.518 4.289l30.997 37.885c48.944-22.963 88.297-62.858 110.781-110.78l-37.886-30.997a15.001 15.001 0 0 1-4.289-17.518l30-69.998a15 15 0 0 1 17.16-8.707l65 14.998A14.997 14.997 0 0 1 384 126c0 160.292-129.945 290-290 290z"] };
  3263. var faPhoneVolume = { prefix: 'fas', iconName: 'phone-volume', icon: [384, 512, [], "f2a0", "M97.333 506.966c-129.874-129.874-129.681-340.252 0-469.933 5.698-5.698 14.527-6.632 21.263-2.422l64.817 40.513a17.187 17.187 0 0 1 6.849 20.958l-32.408 81.021a17.188 17.188 0 0 1-17.669 10.719l-55.81-5.58c-21.051 58.261-20.612 122.471 0 179.515l55.811-5.581a17.188 17.188 0 0 1 17.669 10.719l32.408 81.022a17.188 17.188 0 0 1-6.849 20.958l-64.817 40.513a17.19 17.19 0 0 1-21.264-2.422zM247.126 95.473c11.832 20.047 11.832 45.008 0 65.055-3.95 6.693-13.108 7.959-18.718 2.581l-5.975-5.726c-3.911-3.748-4.793-9.622-2.261-14.41a32.063 32.063 0 0 0 0-29.945c-2.533-4.788-1.65-10.662 2.261-14.41l5.975-5.726c5.61-5.378 14.768-4.112 18.718 2.581zm91.787-91.187c60.14 71.604 60.092 175.882 0 247.428-4.474 5.327-12.53 5.746-17.552.933l-5.798-5.557c-4.56-4.371-4.977-11.529-.93-16.379 49.687-59.538 49.646-145.933 0-205.422-4.047-4.85-3.631-12.008.93-16.379l5.798-5.557c5.022-4.813 13.078-4.394 17.552.933zm-45.972 44.941c36.05 46.322 36.108 111.149 0 157.546-4.39 5.641-12.697 6.251-17.856 1.304l-5.818-5.579c-4.4-4.219-4.998-11.095-1.285-15.931 26.536-34.564 26.534-82.572 0-117.134-3.713-4.836-3.115-11.711 1.285-15.931l5.818-5.579c5.159-4.947 13.466-4.337 17.856 1.304z"] };
  3264. var faPiggyBank = { prefix: 'fas', iconName: 'piggy-bank', icon: [576, 512, [], "f4d3", "M560 224h-29.5c-8.8-20-21.6-37.7-37.4-52.5L512 96h-32c-29.4 0-55.4 13.5-73 34.3-7.6-1.1-15.1-2.3-23-2.3H256c-77.4 0-141.9 55-156.8 128H56c-14.8 0-26.5-13.5-23.5-28.8C34.7 215.8 45.4 208 57 208h1c3.3 0 6-2.7 6-6v-20c0-3.3-2.7-6-6-6-28.5 0-53.9 20.4-57.5 48.6C-3.9 258.8 22.7 288 56 288h40c0 52.2 25.4 98.1 64 127.3V496c0 8.8 7.2 16 16 16h64c8.8 0 16-7.2 16-16v-48h128v48c0 8.8 7.2 16 16 16h64c8.8 0 16-7.2 16-16v-80.7c11.8-8.9 22.3-19.4 31.3-31.3H560c8.8 0 16-7.2 16-16V240c0-8.8-7.2-16-16-16zm-128 64c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zM256 96h128c5.4 0 10.7.4 15.9.8 0-.3.1-.5.1-.8 0-53-43-96-96-96s-96 43-96 96c0 2.1.5 4.1.6 6.2 15.2-3.9 31-6.2 47.4-6.2z"] };
  3265. var faPills = { prefix: 'fas', iconName: 'pills', icon: [576, 512, [], "f484", "M112 32C50.1 32 0 82.1 0 144v224c0 61.9 50.1 112 112 112s112-50.1 112-112V144c0-61.9-50.1-112-112-112zm48 224H64V144c0-26.5 21.5-48 48-48s48 21.5 48 48v112zm139.7-29.7c-3.5-3.5-9.4-3.1-12.3.8-45.3 62.5-40.4 150.1 15.9 206.4 56.3 56.3 143.9 61.2 206.4 15.9 4-2.9 4.3-8.8.8-12.3L299.7 226.3zm229.8-19c-56.3-56.3-143.9-61.2-206.4-15.9-4 2.9-4.3 8.8-.8 12.3l210.8 210.8c3.5 3.5 9.4 3.1 12.3-.8 45.3-62.6 40.5-150.1-15.9-206.4z"] };
  3266. var faPlaceOfWorship = { prefix: 'fas', iconName: 'place-of-worship', icon: [640, 512, [], "f67f", "M620.61 366.55L512 320v192h112c8.84 0 16-7.16 16-16V395.96a32 32 0 0 0-19.39-29.41zM0 395.96V496c0 8.84 7.16 16 16 16h112V320L19.39 366.55A32 32 0 0 0 0 395.96zm464.46-149.28L416 217.6V102.63c0-8.49-3.37-16.62-9.38-22.63L331.31 4.69c-6.25-6.25-16.38-6.25-22.62 0L233.38 80c-6 6-9.38 14.14-9.38 22.63V217.6l-48.46 29.08A31.997 31.997 0 0 0 160 274.12V512h96v-96c0-35.35 28.66-64 64-64s64 28.65 64 64v96h96V274.12c0-11.24-5.9-21.66-15.54-27.44z"] };
  3267. var faPlane = { prefix: 'fas', iconName: 'plane', icon: [576, 512, [], "f072", "M480 192H365.71L260.61 8.06A16.014 16.014 0 0 0 246.71 0h-65.5c-10.63 0-18.3 10.17-15.38 20.39L214.86 192H112l-43.2-57.6c-3.02-4.03-7.77-6.4-12.8-6.4H16.01C5.6 128-2.04 137.78.49 147.88L32 256 .49 364.12C-2.04 374.22 5.6 384 16.01 384H56c5.04 0 9.78-2.37 12.8-6.4L112 320h102.86l-49.03 171.6c-2.92 10.22 4.75 20.4 15.38 20.4h65.5c5.74 0 11.04-3.08 13.89-8.06L365.71 320H480c35.35 0 96-28.65 96-64s-60.65-64-96-64z"] };
  3268. var faPlaneArrival = { prefix: 'fas', iconName: 'plane-arrival', icon: [640, 512, [], "f5af", "M624 448H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h608c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zM44.81 205.66l88.74 80a62.607 62.607 0 0 0 25.47 13.93l287.6 78.35c26.48 7.21 54.56 8.72 81 1.36 29.67-8.27 43.44-21.21 47.25-35.71 3.83-14.5-1.73-32.71-23.37-54.96-19.28-19.82-44.35-32.79-70.83-40l-97.51-26.56L282.8 30.22c-1.51-5.81-5.95-10.35-11.66-11.91L206.05.58c-10.56-2.88-20.9 5.32-20.71 16.44l47.92 164.21-102.2-27.84-27.59-67.88c-1.93-4.89-6.01-8.57-11.02-9.93L52.72 64.75c-10.34-2.82-20.53 5-20.72 15.88l.23 101.78c.19 8.91 6.03 17.34 12.58 23.25z"] };
  3269. var faPlaneDeparture = { prefix: 'fas', iconName: 'plane-departure', icon: [640, 512, [], "f5b0", "M624 448H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h608c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zM80.55 341.27c6.28 6.84 15.1 10.72 24.33 10.71l130.54-.18a65.62 65.62 0 0 0 29.64-7.12l290.96-147.65c26.74-13.57 50.71-32.94 67.02-58.31 18.31-28.48 20.3-49.09 13.07-63.65-7.21-14.57-24.74-25.27-58.25-27.45-29.85-1.94-59.54 5.92-86.28 19.48l-98.51 49.99-218.7-82.06a17.799 17.799 0 0 0-18-1.11L90.62 67.29c-10.67 5.41-13.25 19.65-5.17 28.53l156.22 98.1-103.21 52.38-72.35-36.47a17.804 17.804 0 0 0-16.07.02L9.91 230.22c-10.44 5.3-13.19 19.12-5.57 28.08l76.21 82.97z"] };
  3270. var faPlay = { prefix: 'fas', iconName: 'play', icon: [448, 512, [], "f04b", "M424.4 214.7L72.4 6.6C43.8-10.3 0 6.1 0 47.9V464c0 37.5 40.7 60.1 72.4 41.3l352-208c31.4-18.5 31.5-64.1 0-82.6z"] };
  3271. var faPlayCircle = { prefix: 'fas', iconName: 'play-circle', icon: [512, 512, [], "f144", "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm115.7 272l-176 101c-15.8 8.8-35.7-2.5-35.7-21V152c0-18.4 19.8-29.8 35.7-21l176 107c16.4 9.2 16.4 32.9 0 42z"] };
  3272. var faPlug = { prefix: 'fas', iconName: 'plug', icon: [384, 512, [], "f1e6", "M256 144V32c0-17.673 14.327-32 32-32s32 14.327 32 32v112h-64zm112 16H16c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h16v32c0 77.406 54.969 141.971 128 156.796V512h64v-99.204c73.031-14.825 128-79.39 128-156.796v-32h16c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16zm-240-16V32c0-17.673-14.327-32-32-32S64 14.327 64 32v112h64z"] };
  3273. var faPlus = { prefix: 'fas', iconName: 'plus', icon: [448, 512, [], "f067", "M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"] };
  3274. var faPlusCircle = { prefix: 'fas', iconName: 'plus-circle', icon: [512, 512, [], "f055", "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm144 276c0 6.6-5.4 12-12 12h-92v92c0 6.6-5.4 12-12 12h-56c-6.6 0-12-5.4-12-12v-92h-92c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h92v-92c0-6.6 5.4-12 12-12h56c6.6 0 12 5.4 12 12v92h92c6.6 0 12 5.4 12 12v56z"] };
  3275. var faPlusSquare = { prefix: 'fas', iconName: 'plus-square', icon: [448, 512, [], "f0fe", "M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-32 252c0 6.6-5.4 12-12 12h-92v92c0 6.6-5.4 12-12 12h-56c-6.6 0-12-5.4-12-12v-92H92c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h92v-92c0-6.6 5.4-12 12-12h56c6.6 0 12 5.4 12 12v92h92c6.6 0 12 5.4 12 12v56z"] };
  3276. var faPodcast = { prefix: 'fas', iconName: 'podcast', icon: [448, 512, [], "f2ce", "M267.429 488.563C262.286 507.573 242.858 512 224 512c-18.857 0-38.286-4.427-43.428-23.437C172.927 460.134 160 388.898 160 355.75c0-35.156 31.142-43.75 64-43.75s64 8.594 64 43.75c0 32.949-12.871 104.179-20.571 132.813zM156.867 288.554c-18.693-18.308-29.958-44.173-28.784-72.599 2.054-49.724 42.395-89.956 92.124-91.881C274.862 121.958 320 165.807 320 220c0 26.827-11.064 51.116-28.866 68.552-2.675 2.62-2.401 6.986.628 9.187 9.312 6.765 16.46 15.343 21.234 25.363 1.741 3.654 6.497 4.66 9.449 1.891 28.826-27.043 46.553-65.783 45.511-108.565-1.855-76.206-63.595-138.208-139.793-140.369C146.869 73.753 80 139.215 80 220c0 41.361 17.532 78.7 45.55 104.989 2.953 2.771 7.711 1.77 9.453-1.887 4.774-10.021 11.923-18.598 21.235-25.363 3.029-2.2 3.304-6.566.629-9.185zM224 0C100.204 0 0 100.185 0 224c0 89.992 52.602 165.647 125.739 201.408 4.333 2.118 9.267-1.544 8.535-6.31-2.382-15.512-4.342-30.946-5.406-44.339-.146-1.836-1.149-3.486-2.678-4.512-47.4-31.806-78.564-86.016-78.187-147.347.592-96.237 79.29-174.648 175.529-174.899C320.793 47.747 400 126.797 400 224c0 61.932-32.158 116.49-80.65 147.867-.999 14.037-3.069 30.588-5.624 47.23-.732 4.767 4.203 8.429 8.535 6.31C395.227 389.727 448 314.187 448 224 448 100.205 347.815 0 224 0zm0 160c-35.346 0-64 28.654-64 64s28.654 64 64 64 64-28.654 64-64-28.654-64-64-64z"] };
  3277. var faPoll = { prefix: 'fas', iconName: 'poll', icon: [448, 512, [], "f681", "M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zM160 368c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16V240c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v128zm96 0c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16V144c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v224zm96 0c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16v-64c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v64z"] };
  3278. var faPollH = { prefix: 'fas', iconName: 'poll-h', icon: [448, 512, [], "f682", "M448 432V80c0-26.5-21.5-48-48-48H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48zM112 192c-8.84 0-16-7.16-16-16v-32c0-8.84 7.16-16 16-16h128c8.84 0 16 7.16 16 16v32c0 8.84-7.16 16-16 16H112zm0 96c-8.84 0-16-7.16-16-16v-32c0-8.84 7.16-16 16-16h224c8.84 0 16 7.16 16 16v32c0 8.84-7.16 16-16 16H112zm0 96c-8.84 0-16-7.16-16-16v-32c0-8.84 7.16-16 16-16h64c8.84 0 16 7.16 16 16v32c0 8.84-7.16 16-16 16h-64z"] };
  3279. var faPoo = { prefix: 'fas', iconName: 'poo', icon: [512, 512, [], "f2fe", "M451.4 369.1C468.7 356 480 335.4 480 312c0-39.8-32.2-72-72-72h-14.1c13.4-11.7 22.1-28.8 22.1-48 0-35.3-28.7-64-64-64h-5.9c3.6-10.1 5.9-20.7 5.9-32 0-53-43-96-96-96-5.2 0-10.2.7-15.1 1.5C250.3 14.6 256 30.6 256 48c0 44.2-35.8 80-80 80h-16c-35.3 0-64 28.7-64 64 0 19.2 8.7 36.3 22.1 48H104c-39.8 0-72 32.2-72 72 0 23.4 11.3 44 28.6 57.1C26.3 374.6 0 404.1 0 440c0 39.8 32.2 72 72 72h368c39.8 0 72-32.2 72-72 0-35.9-26.3-65.4-60.6-70.9zM192 256c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm159.5 139C341 422.9 293 448 256 448s-85-25.1-95.5-53c-2-5.3 2-11 7.8-11h175.4c5.8 0 9.8 5.7 7.8 11zM320 320c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"] };
  3280. var faPoop = { prefix: 'fas', iconName: 'poop', icon: [512, 512, [], "f619", "M451.36 369.14C468.66 355.99 480 335.41 480 312c0-39.77-32.24-72-72-72h-14.07c13.42-11.73 22.07-28.78 22.07-48 0-35.35-28.65-64-64-64h-5.88c3.57-10.05 5.88-20.72 5.88-32 0-53.02-42.98-96-96-96-5.17 0-10.15.74-15.11 1.52C250.31 14.64 256 30.62 256 48c0 44.18-35.82 80-80 80h-16c-35.35 0-64 28.65-64 64 0 19.22 8.65 36.27 22.07 48H104c-39.76 0-72 32.23-72 72 0 23.41 11.34 43.99 28.64 57.14C26.31 374.62 0 404.12 0 440c0 39.76 32.24 72 72 72h368c39.76 0 72-32.24 72-72 0-35.88-26.31-65.38-60.64-70.86z"] };
  3281. var faPortrait = { prefix: 'fas', iconName: 'portrait', icon: [384, 512, [], "f3e0", "M336 0H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zM192 128c35.3 0 64 28.7 64 64s-28.7 64-64 64-64-28.7-64-64 28.7-64 64-64zm112 236.8c0 10.6-10 19.2-22.4 19.2H102.4C90 384 80 375.4 80 364.8v-19.2c0-31.8 30.1-57.6 67.2-57.6h5c12.3 5.1 25.7 8 39.8 8s27.6-2.9 39.8-8h5c37.1 0 67.2 25.8 67.2 57.6v19.2z"] };
  3282. var faPoundSign = { prefix: 'fas', iconName: 'pound-sign', icon: [320, 512, [], "f154", "M308 352h-45.495c-6.627 0-12 5.373-12 12v50.848H128V288h84c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-84v-63.556c0-32.266 24.562-57.086 61.792-57.086 23.658 0 45.878 11.505 57.652 18.849 5.151 3.213 11.888 2.051 15.688-2.685l28.493-35.513c4.233-5.276 3.279-13.005-2.119-17.081C273.124 54.56 236.576 32 187.931 32 106.026 32 48 84.742 48 157.961V224H20c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h28v128H12c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h296c6.627 0 12-5.373 12-12V364c0-6.627-5.373-12-12-12z"] };
  3283. var faPowerOff = { prefix: 'fas', iconName: 'power-off', icon: [512, 512, [], "f011", "M400 54.1c63 45 104 118.6 104 201.9 0 136.8-110.8 247.7-247.5 248C120 504.3 8.2 393 8 256.4 7.9 173.1 48.9 99.3 111.8 54.2c11.7-8.3 28-4.8 35 7.7L162.6 90c5.9 10.5 3.1 23.8-6.6 31-41.5 30.8-68 79.6-68 134.9-.1 92.3 74.5 168.1 168 168.1 91.6 0 168.6-74.2 168-169.1-.3-51.8-24.7-101.8-68.1-134-9.7-7.2-12.4-20.5-6.5-30.9l15.8-28.1c7-12.4 23.2-16.1 34.8-7.8zM296 264V24c0-13.3-10.7-24-24-24h-32c-13.3 0-24 10.7-24 24v240c0 13.3 10.7 24 24 24h32c13.3 0 24-10.7 24-24z"] };
  3284. var faPray = { prefix: 'fas', iconName: 'pray', icon: [384, 512, [], "f683", "M256 128c35.35 0 64-28.65 64-64S291.35 0 256 0s-64 28.65-64 64 28.65 64 64 64zm-30.63 169.75c14.06 16.72 39 19.09 55.97 5.22l88-72.02c17.09-13.98 19.59-39.19 5.62-56.28-13.97-17.11-39.19-19.59-56.31-5.62l-57.44 47-38.91-46.31c-15.44-18.39-39.22-27.92-64-25.33-24.19 2.48-45.25 16.27-56.37 36.92l-49.37 92.03c-23.4 43.64-8.69 96.37 34.19 123.75L131.56 432H40c-22.09 0-40 17.91-40 40s17.91 40 40 40h208c34.08 0 53.77-42.79 28.28-68.28L166.42 333.86l34.8-64.87 24.15 28.76z"] };
  3285. var faPrayingHands = { prefix: 'fas', iconName: 'praying-hands', icon: [640, 512, [], "f684", "M272 191.91c-17.6 0-32 14.4-32 32v80c0 8.84-7.16 16-16 16s-16-7.16-16-16v-76.55c0-17.39 4.72-34.47 13.69-49.39l77.75-129.59c9.09-15.16 4.19-34.81-10.97-43.91-14.45-8.67-32.72-4.3-42.3 9.21-.2.23-.62.21-.79.48l-117.26 175.9C117.56 205.9 112 224.31 112 243.29v80.23l-90.12 30.04A31.974 31.974 0 0 0 0 383.91v96c0 10.82 8.52 32 32 32 2.69 0 5.41-.34 8.06-1.03l179.19-46.62C269.16 449.99 304 403.8 304 351.91v-128c0-17.6-14.4-32-32-32zm346.12 161.73L528 323.6v-80.23c0-18.98-5.56-37.39-16.12-53.23L394.62 14.25c-.18-.27-.59-.24-.79-.48-9.58-13.51-27.85-17.88-42.3-9.21-15.16 9.09-20.06 28.75-10.97 43.91l77.75 129.59c8.97 14.92 13.69 32 13.69 49.39V304c0 8.84-7.16 16-16 16s-16-7.16-16-16v-80c0-17.6-14.4-32-32-32s-32 14.4-32 32v128c0 51.89 34.84 98.08 84.75 112.34l179.19 46.62c2.66.69 5.38 1.03 8.06 1.03 23.48 0 32-21.18 32-32v-96c0-13.77-8.81-25.99-21.88-30.35z"] };
  3286. var faPrescription = { prefix: 'fas', iconName: 'prescription', icon: [384, 512, [], "f5b1", "M301.26 352l78.06-78.06c6.25-6.25 6.25-16.38 0-22.63l-22.63-22.63c-6.25-6.25-16.38-6.25-22.63 0L256 306.74l-83.96-83.96C219.31 216.8 256 176.89 256 128c0-53.02-42.98-96-96-96H16C7.16 32 0 39.16 0 48v256c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-80h18.75l128 128-78.06 78.06c-6.25 6.25-6.25 16.38 0 22.63l22.63 22.63c6.25 6.25 16.38 6.25 22.63 0L256 397.25l78.06 78.06c6.25 6.25 16.38 6.25 22.63 0l22.63-22.63c6.25-6.25 6.25-16.38 0-22.63L301.26 352zM64 96h96c17.64 0 32 14.36 32 32s-14.36 32-32 32H64V96z"] };
  3287. var faPrescriptionBottle = { prefix: 'fas', iconName: 'prescription-bottle', icon: [384, 512, [], "f485", "M32 192h120c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H32v64h120c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H32v64h120c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H32v64c0 17.6 14.4 32 32 32h256c17.6 0 32-14.4 32-32V128H32v64zM360 0H24C10.8 0 0 10.8 0 24v48c0 13.2 10.8 24 24 24h336c13.2 0 24-10.8 24-24V24c0-13.2-10.8-24-24-24z"] };
  3288. var faPrescriptionBottleAlt = { prefix: 'fas', iconName: 'prescription-bottle-alt', icon: [384, 512, [], "f486", "M360 0H24C10.8 0 0 10.8 0 24v48c0 13.2 10.8 24 24 24h336c13.2 0 24-10.8 24-24V24c0-13.2-10.8-24-24-24zM32 480c0 17.6 14.4 32 32 32h256c17.6 0 32-14.4 32-32V128H32v352zm64-184c0-4.4 3.6-8 8-8h56v-56c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v56h56c4.4 0 8 3.6 8 8v48c0 4.4-3.6 8-8 8h-56v56c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-56h-56c-4.4 0-8-3.6-8-8v-48z"] };
  3289. var faPrint = { prefix: 'fas', iconName: 'print', icon: [512, 512, [], "f02f", "M448 192V77.25c0-8.49-3.37-16.62-9.37-22.63L393.37 9.37c-6-6-14.14-9.37-22.63-9.37H96C78.33 0 64 14.33 64 32v160c-35.35 0-64 28.65-64 64v112c0 8.84 7.16 16 16 16h48v96c0 17.67 14.33 32 32 32h320c17.67 0 32-14.33 32-32v-96h48c8.84 0 16-7.16 16-16V256c0-35.35-28.65-64-64-64zm-64 256H128v-96h256v96zm0-224H128V64h192v48c0 8.84 7.16 16 16 16h48v96zm48 72c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24z"] };
  3290. var faProcedures = { prefix: 'fas', iconName: 'procedures', icon: [640, 512, [], "f487", "M528 224H272c-8.8 0-16 7.2-16 16v144H64V144c0-8.8-7.2-16-16-16H16c-8.8 0-16 7.2-16 16v352c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-48h512v48c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V336c0-61.9-50.1-112-112-112zM136 96h126.1l27.6 55.2c5.9 11.8 22.7 11.8 28.6 0L368 51.8 390.1 96H512c8.8 0 16-7.2 16-16s-7.2-16-16-16H409.9L382.3 8.8C376.4-3 359.6-3 353.7 8.8L304 108.2l-19.9-39.8c-1.4-2.7-4.1-4.4-7.2-4.4H136c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8zm24 256c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64z"] };
  3291. var faProjectDiagram = { prefix: 'fas', iconName: 'project-diagram', icon: [640, 512, [], "f542", "M384 320H256c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h128c17.67 0 32-14.33 32-32V352c0-17.67-14.33-32-32-32zM192 32c0-17.67-14.33-32-32-32H32C14.33 0 0 14.33 0 32v128c0 17.67 14.33 32 32 32h95.72l73.16 128.04C211.98 300.98 232.4 288 256 288h.28L192 175.51V128h224V64H192V32zM608 0H480c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h128c17.67 0 32-14.33 32-32V32c0-17.67-14.33-32-32-32z"] };
  3292. var faPuzzlePiece = { prefix: 'fas', iconName: 'puzzle-piece', icon: [576, 512, [], "f12e", "M519.442 288.651c-41.519 0-59.5 31.593-82.058 31.593C377.409 320.244 432 144 432 144s-196.288 80-196.288-3.297c0-35.827 36.288-46.25 36.288-85.985C272 19.216 243.885 0 210.539 0c-34.654 0-66.366 18.891-66.366 56.346 0 41.364 31.711 59.277 31.711 81.75C175.885 207.719 0 166.758 0 166.758v333.237s178.635 41.047 178.635-28.662c0-22.473-40-40.107-40-81.471 0-37.456 29.25-56.346 63.577-56.346 33.673 0 61.788 19.216 61.788 54.717 0 39.735-36.288 50.158-36.288 85.985 0 60.803 129.675 25.73 181.23 25.73 0 0-34.725-120.101 25.827-120.101 35.962 0 46.423 36.152 86.308 36.152C556.712 416 576 387.99 576 354.443c0-34.199-18.962-65.792-56.558-65.792z"] };
  3293. var faQrcode = { prefix: 'fas', iconName: 'qrcode', icon: [448, 512, [], "f029", "M0 224h192V32H0v192zM64 96h64v64H64V96zm192-64v192h192V32H256zm128 128h-64V96h64v64zM0 480h192V288H0v192zm64-128h64v64H64v-64zm352-64h32v128h-96v-32h-32v96h-64V288h96v32h64v-32zm0 160h32v32h-32v-32zm-64 0h32v32h-32v-32z"] };
  3294. var faQuestion = { prefix: 'fas', iconName: 'question', icon: [384, 512, [], "f128", "M202.021 0C122.202 0 70.503 32.703 29.914 91.026c-7.363 10.58-5.093 25.086 5.178 32.874l43.138 32.709c10.373 7.865 25.132 6.026 33.253-4.148 25.049-31.381 43.63-49.449 82.757-49.449 30.764 0 68.816 19.799 68.816 49.631 0 22.552-18.617 34.134-48.993 51.164-35.423 19.86-82.299 44.576-82.299 106.405V320c0 13.255 10.745 24 24 24h72.471c13.255 0 24-10.745 24-24v-5.773c0-42.86 125.268-44.645 125.268-160.627C377.504 66.256 286.902 0 202.021 0zM192 373.459c-38.196 0-69.271 31.075-69.271 69.271 0 38.195 31.075 69.27 69.271 69.27s69.271-31.075 69.271-69.271-31.075-69.27-69.271-69.27z"] };
  3295. var faQuestionCircle = { prefix: 'fas', iconName: 'question-circle', icon: [512, 512, [], "f059", "M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zM262.655 90c-54.497 0-89.255 22.957-116.549 63.758-3.536 5.286-2.353 12.415 2.715 16.258l34.699 26.31c5.205 3.947 12.621 3.008 16.665-2.122 17.864-22.658 30.113-35.797 57.303-35.797 20.429 0 45.698 13.148 45.698 32.958 0 14.976-12.363 22.667-32.534 33.976C247.128 238.528 216 254.941 216 296v4c0 6.627 5.373 12 12 12h56c6.627 0 12-5.373 12-12v-1.333c0-28.462 83.186-29.647 83.186-106.667 0-58.002-60.165-102-116.531-102zM256 338c-25.365 0-46 20.635-46 46 0 25.364 20.635 46 46 46s46-20.636 46-46c0-25.365-20.635-46-46-46z"] };
  3296. var faQuidditch = { prefix: 'fas', iconName: 'quidditch', icon: [640, 512, [], "f458", "M256.5 216.8L343.2 326s-16.6 102.4-76.6 150.1C206.7 523.8 0 510.2 0 510.2s3.8-23.1 11-55.4l94.6-112.2c4-4.7-.9-11.6-6.6-9.5l-60.4 22.1c14.4-41.7 32.7-80 54.6-97.5 59.9-47.8 163.3-40.9 163.3-40.9zm238 135c-44 0-79.8 35.8-79.8 79.9 0 44.1 35.7 79.9 79.8 79.9 44.1 0 79.8-35.8 79.8-79.9 0-44.2-35.8-79.9-79.8-79.9zM636.5 31L616.7 6c-5.5-6.9-15.5-8-22.4-2.6L361.8 181.3l-34.1-43c-5.1-6.4-15.1-5.2-18.6 2.2l-25.3 54.6 86.7 109.2 58.8-12.4c8-1.7 11.4-11.2 6.3-17.6l-34.1-42.9L634 53.5c6.9-5.5 8-15.6 2.5-22.5z"] };
  3297. var faQuoteLeft = { prefix: 'fas', iconName: 'quote-left', icon: [512, 512, [], "f10d", "M464 256h-80v-64c0-35.3 28.7-64 64-64h8c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24h-8c-88.4 0-160 71.6-160 160v240c0 26.5 21.5 48 48 48h128c26.5 0 48-21.5 48-48V304c0-26.5-21.5-48-48-48zm-288 0H96v-64c0-35.3 28.7-64 64-64h8c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24h-8C71.6 32 0 103.6 0 192v240c0 26.5 21.5 48 48 48h128c26.5 0 48-21.5 48-48V304c0-26.5-21.5-48-48-48z"] };
  3298. var faQuoteRight = { prefix: 'fas', iconName: 'quote-right', icon: [512, 512, [], "f10e", "M464 32H336c-26.5 0-48 21.5-48 48v128c0 26.5 21.5 48 48 48h80v64c0 35.3-28.7 64-64 64h-8c-13.3 0-24 10.7-24 24v48c0 13.3 10.7 24 24 24h8c88.4 0 160-71.6 160-160V80c0-26.5-21.5-48-48-48zm-288 0H48C21.5 32 0 53.5 0 80v128c0 26.5 21.5 48 48 48h80v64c0 35.3-28.7 64-64 64h-8c-13.3 0-24 10.7-24 24v48c0 13.3 10.7 24 24 24h8c88.4 0 160-71.6 160-160V80c0-26.5-21.5-48-48-48z"] };
  3299. var faQuran = { prefix: 'fas', iconName: 'quran', icon: [448, 512, [], "f687", "M448 358.4V25.6c0-16-9.6-25.6-25.6-25.6H96C41.6 0 0 41.6 0 96v320c0 54.4 41.6 96 96 96h326.4c12.8 0 25.6-9.6 25.6-25.6v-16c0-6.4-3.2-12.8-9.6-19.2-3.2-16-3.2-60.8 0-73.6 6.4-3.2 9.6-9.6 9.6-19.2zM301.08 145.82c.6-1.21 1.76-1.82 2.92-1.82s2.32.61 2.92 1.82l11.18 22.65 25 3.63c2.67.39 3.74 3.67 1.81 5.56l-18.09 17.63 4.27 24.89c.36 2.11-1.31 3.82-3.21 3.82-.5 0-1.02-.12-1.52-.38L304 211.87l-22.36 11.75c-.5.26-1.02.38-1.52.38-1.9 0-3.57-1.71-3.21-3.82l4.27-24.89-18.09-17.63c-1.94-1.89-.87-5.17 1.81-5.56l24.99-3.63 11.19-22.65zm-57.89-69.01c13.67 0 27.26 2.49 40.38 7.41a6.775 6.775 0 1 1-2.38 13.12c-.67 0-3.09-.21-4.13-.21-52.31 0-94.86 42.55-94.86 94.86 0 52.3 42.55 94.86 94.86 94.86 1.03 0 3.48-.21 4.13-.21 3.93 0 6.8 3.14 6.8 6.78 0 2.98-1.94 5.51-4.62 6.42-13.07 4.87-26.59 7.34-40.19 7.34C179.67 307.19 128 255.51 128 192c0-63.52 51.67-115.19 115.19-115.19zM380.8 448H96c-19.2 0-32-12.8-32-32s16-32 32-32h284.8v64z"] };
  3300. var faRandom = { prefix: 'fas', iconName: 'random', icon: [512, 512, [], "f074", "M504.971 359.029c9.373 9.373 9.373 24.569 0 33.941l-80 79.984c-15.01 15.01-40.971 4.49-40.971-16.971V416h-58.785a12.004 12.004 0 0 1-8.773-3.812l-70.556-75.596 53.333-57.143L352 336h32v-39.981c0-21.438 25.943-31.998 40.971-16.971l80 79.981zM12 176h84l52.781 56.551 53.333-57.143-70.556-75.596A11.999 11.999 0 0 0 122.785 96H12c-6.627 0-12 5.373-12 12v56c0 6.627 5.373 12 12 12zm372 0v39.984c0 21.46 25.961 31.98 40.971 16.971l80-79.984c9.373-9.373 9.373-24.569 0-33.941l-80-79.981C409.943 24.021 384 34.582 384 56.019V96h-58.785a12.004 12.004 0 0 0-8.773 3.812L96 336H12c-6.627 0-12 5.373-12 12v56c0 6.627 5.373 12 12 12h110.785c3.326 0 6.503-1.381 8.773-3.812L352 176h32z"] };
  3301. var faReceipt = { prefix: 'fas', iconName: 'receipt', icon: [384, 512, [], "f543", "M358.4 3.2L320 48 265.6 3.2a15.9 15.9 0 0 0-19.2 0L192 48 137.6 3.2a15.9 15.9 0 0 0-19.2 0L64 48 25.6 3.2C15-4.7 0 2.8 0 16v480c0 13.2 15 20.7 25.6 12.8L64 464l54.4 44.8a15.9 15.9 0 0 0 19.2 0L192 464l54.4 44.8a15.9 15.9 0 0 0 19.2 0L320 464l38.4 44.8c10.5 7.9 25.6.4 25.6-12.8V16c0-13.2-15-20.7-25.6-12.8zM320 360c0 4.4-3.6 8-8 8H72c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h240c4.4 0 8 3.6 8 8v16zm0-96c0 4.4-3.6 8-8 8H72c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h240c4.4 0 8 3.6 8 8v16zm0-96c0 4.4-3.6 8-8 8H72c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h240c4.4 0 8 3.6 8 8v16z"] };
  3302. var faRecycle = { prefix: 'fas', iconName: 'recycle', icon: [512, 512, [], "f1b8", "M184.561 261.903c3.232 13.997-12.123 24.635-24.068 17.168l-40.736-25.455-50.867 81.402C55.606 356.273 70.96 384 96.012 384H148c6.627 0 12 5.373 12 12v40c0 6.627-5.373 12-12 12H96.115c-75.334 0-121.302-83.048-81.408-146.88l50.822-81.388-40.725-25.448c-12.081-7.547-8.966-25.961 4.879-29.158l110.237-25.45c8.611-1.988 17.201 3.381 19.189 11.99l25.452 110.237zm98.561-182.915l41.289 66.076-40.74 25.457c-12.051 7.528-9 25.953 4.879 29.158l110.237 25.45c8.672 1.999 17.215-3.438 19.189-11.99l25.45-110.237c3.197-13.844-11.99-24.719-24.068-17.168l-40.687 25.424-41.263-66.082c-37.521-60.033-125.209-60.171-162.816 0l-17.963 28.766c-3.51 5.62-1.8 13.021 3.82 16.533l33.919 21.195c5.62 3.512 13.024 1.803 16.536-3.817l17.961-28.743c12.712-20.341 41.973-19.676 54.257-.022zM497.288 301.12l-27.515-44.065c-3.511-5.623-10.916-7.334-16.538-3.821l-33.861 21.159c-5.62 3.512-7.33 10.915-3.818 16.536l27.564 44.112c13.257 21.211-2.057 48.96-27.136 48.96H320V336.02c0-14.213-17.242-21.383-27.313-11.313l-80 79.981c-6.249 6.248-6.249 16.379 0 22.627l80 79.989C302.689 517.308 320 510.3 320 495.989V448h95.88c75.274 0 121.335-82.997 81.408-146.88z"] };
  3303. var faRedo = { prefix: 'fas', iconName: 'redo', icon: [512, 512, [], "f01e", "M500.333 0h-47.411c-6.853 0-12.314 5.729-11.986 12.574l3.966 82.759C399.416 41.899 331.672 8 256.001 8 119.34 8 7.899 119.526 8 256.187 8.101 393.068 119.096 504 256 504c63.926 0 122.202-24.187 166.178-63.908 5.113-4.618 5.354-12.561.482-17.433l-33.971-33.971c-4.466-4.466-11.64-4.717-16.38-.543C341.308 415.448 300.606 432 256 432c-97.267 0-176-78.716-176-176 0-97.267 78.716-176 176-176 60.892 0 114.506 30.858 146.099 77.8l-101.525-4.865c-6.845-.328-12.574 5.133-12.574 11.986v47.411c0 6.627 5.373 12 12 12h200.333c6.627 0 12-5.373 12-12V12c0-6.627-5.373-12-12-12z"] };
  3304. var faRedoAlt = { prefix: 'fas', iconName: 'redo-alt', icon: [512, 512, [], "f2f9", "M256.455 8c66.269.119 126.437 26.233 170.859 68.685l35.715-35.715C478.149 25.851 504 36.559 504 57.941V192c0 13.255-10.745 24-24 24H345.941c-21.382 0-32.09-25.851-16.971-40.971l41.75-41.75c-30.864-28.899-70.801-44.907-113.23-45.273-92.398-.798-170.283 73.977-169.484 169.442C88.764 348.009 162.184 424 256 424c41.127 0 79.997-14.678 110.629-41.556 4.743-4.161 11.906-3.908 16.368.553l39.662 39.662c4.872 4.872 4.631 12.815-.482 17.433C378.202 479.813 319.926 504 256 504 119.034 504 8.001 392.967 8 256.002 7.999 119.193 119.646 7.755 256.455 8z"] };
  3305. var faRegistered = { prefix: 'fas', iconName: 'registered', icon: [512, 512, [], "f25d", "M285.363 207.475c0 18.6-9.831 28.431-28.431 28.431h-29.876v-56.14h23.378c28.668 0 34.929 8.773 34.929 27.709zM504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM363.411 360.414c-46.729-84.825-43.299-78.636-44.702-80.98 23.432-15.172 37.945-42.979 37.945-74.486 0-54.244-31.5-89.252-105.498-89.252h-70.667c-13.255 0-24 10.745-24 24V372c0 13.255 10.745 24 24 24h22.567c13.255 0 24-10.745 24-24v-71.663h25.556l44.129 82.937a24.001 24.001 0 0 0 21.188 12.727h24.464c18.261-.001 29.829-19.591 21.018-35.587z"] };
  3306. var faReply = { prefix: 'fas', iconName: 'reply', icon: [512, 512, [], "f3e5", "M8.309 189.836L184.313 37.851C199.719 24.546 224 35.347 224 56.015v80.053c160.629 1.839 288 34.032 288 186.258 0 61.441-39.581 122.309-83.333 154.132-13.653 9.931-33.111-2.533-28.077-18.631 45.344-145.012-21.507-183.51-176.59-185.742V360c0 20.7-24.3 31.453-39.687 18.164l-176.004-152c-11.071-9.562-11.086-26.753 0-36.328z"] };
  3307. var faReplyAll = { prefix: 'fas', iconName: 'reply-all', icon: [576, 512, [], "f122", "M136.309 189.836L312.313 37.851C327.72 24.546 352 35.348 352 56.015v82.763c129.182 10.231 224 52.212 224 183.548 0 61.441-39.582 122.309-83.333 154.132-13.653 9.931-33.111-2.533-28.077-18.631 38.512-123.162-3.922-169.482-112.59-182.015v84.175c0 20.701-24.3 31.453-39.687 18.164L136.309 226.164c-11.071-9.561-11.086-26.753 0-36.328zm-128 36.328L184.313 378.15C199.7 391.439 224 380.687 224 359.986v-15.818l-108.606-93.785A55.96 55.96 0 0 1 96 207.998a55.953 55.953 0 0 1 19.393-42.38L224 71.832V56.015c0-20.667-24.28-31.469-39.687-18.164L8.309 189.836c-11.086 9.575-11.071 26.767 0 36.328z"] };
  3308. var faRetweet = { prefix: 'fas', iconName: 'retweet', icon: [640, 512, [], "f079", "M629.657 343.598L528.971 444.284c-9.373 9.372-24.568 9.372-33.941 0L394.343 343.598c-9.373-9.373-9.373-24.569 0-33.941l10.823-10.823c9.562-9.562 25.133-9.34 34.419.492L480 342.118V160H292.451a24.005 24.005 0 0 1-16.971-7.029l-16-16C244.361 121.851 255.069 96 276.451 96H520c13.255 0 24 10.745 24 24v222.118l40.416-42.792c9.285-9.831 24.856-10.054 34.419-.492l10.823 10.823c9.372 9.372 9.372 24.569-.001 33.941zm-265.138 15.431A23.999 23.999 0 0 0 347.548 352H160V169.881l40.416 42.792c9.286 9.831 24.856 10.054 34.419.491l10.822-10.822c9.373-9.373 9.373-24.569 0-33.941L144.971 67.716c-9.373-9.373-24.569-9.373-33.941 0L10.343 168.402c-9.373 9.373-9.373 24.569 0 33.941l10.822 10.822c9.562 9.562 25.133 9.34 34.419-.491L96 169.881V392c0 13.255 10.745 24 24 24h243.549c21.382 0 32.09-25.851 16.971-40.971l-16.001-16z"] };
  3309. var faRibbon = { prefix: 'fas', iconName: 'ribbon', icon: [448, 512, [], "f4d6", "M6.1 444.3c-9.6 10.8-7.5 27.6 4.5 35.7l68.8 27.9c9.9 6.7 23.3 5 31.3-3.8l91.8-101.9-79.2-87.9-117.2 130zm435.8 0s-292-324.6-295.4-330.1c15.4-8.4 40.2-17.9 77.5-17.9s62.1 9.5 77.5 17.9c-3.3 5.6-56 64.6-56 64.6l79.1 87.7 34.2-38c28.7-31.9 33.3-78.6 11.4-115.5l-43.7-73.5c-4.3-7.2-9.9-13.3-16.8-18-40.7-27.6-127.4-29.7-171.4 0-6.9 4.7-12.5 10.8-16.8 18l-43.6 73.2c-1.5 2.5-37.1 62.2 11.5 116L337.5 504c8 8.9 21.4 10.5 31.3 3.8l68.8-27.9c11.9-8 14-24.8 4.3-35.6z"] };
  3310. var faRing = { prefix: 'fas', iconName: 'ring', icon: [512, 512, [], "f70b", "M256 64C110.06 64 0 125.91 0 208v98.13C0 384.48 114.62 448 256 448s256-63.52 256-141.87V208c0-82.09-110.06-144-256-144zm0 64c106.04 0 192 35.82 192 80 0 9.26-3.97 18.12-10.91 26.39C392.15 208.21 328.23 192 256 192s-136.15 16.21-181.09 42.39C67.97 226.12 64 217.26 64 208c0-44.18 85.96-80 192-80zM120.43 264.64C155.04 249.93 201.64 240 256 240s100.96 9.93 135.57 24.64C356.84 279.07 308.93 288 256 288s-100.84-8.93-135.57-23.36z"] };
  3311. var faRoad = { prefix: 'fas', iconName: 'road', icon: [576, 512, [], "f018", "M573.19 402.67l-139.79-320C428.43 71.29 417.6 64 405.68 64h-97.59l2.45 23.16c.5 4.72-3.21 8.84-7.96 8.84h-29.16c-4.75 0-8.46-4.12-7.96-8.84L267.91 64h-97.59c-11.93 0-22.76 7.29-27.73 18.67L2.8 402.67C-6.45 423.86 8.31 448 30.54 448h196.84l10.31-97.68c.86-8.14 7.72-14.32 15.91-14.32h68.8c8.19 0 15.05 6.18 15.91 14.32L348.62 448h196.84c22.23 0 36.99-24.14 27.73-45.33zM260.4 135.16a8 8 0 0 1 7.96-7.16h39.29c4.09 0 7.53 3.09 7.96 7.16l4.6 43.58c.75 7.09-4.81 13.26-11.93 13.26h-40.54c-7.13 0-12.68-6.17-11.93-13.26l4.59-43.58zM315.64 304h-55.29c-9.5 0-16.91-8.23-15.91-17.68l5.07-48c.86-8.14 7.72-14.32 15.91-14.32h45.15c8.19 0 15.05 6.18 15.91 14.32l5.07 48c1 9.45-6.41 17.68-15.91 17.68z"] };
  3312. var faRobot = { prefix: 'fas', iconName: 'robot', icon: [640, 512, [], "f544", "M0 256v128c0 17.7 14.3 32 32 32h32V224H32c-17.7 0-32 14.3-32 32zM464 96H352V32c0-17.7-14.3-32-32-32s-32 14.3-32 32v64H176c-44.2 0-80 35.8-80 80v272c0 35.3 28.7 64 64 64h320c35.3 0 64-28.7 64-64V176c0-44.2-35.8-80-80-80zM256 416h-64v-32h64v32zm-32-120c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zm128 120h-64v-32h64v32zm96 0h-64v-32h64v32zm-32-120c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zm192-72h-32v192h32c17.7 0 32-14.3 32-32V256c0-17.7-14.3-32-32-32z"] };
  3313. var faRocket = { prefix: 'fas', iconName: 'rocket', icon: [512, 512, [], "f135", "M505.1 19.1C503.8 13 499 8.2 492.9 6.9 460.7 0 435.5 0 410.4 0 307.2 0 245.3 55.2 199.1 128H94.9c-18.2 0-34.8 10.3-42.9 26.5L2.6 253.3c-8 16 3.6 34.7 21.5 34.7h95.1c-5.9 12.8-11.9 25.5-18 37.7-3.1 6.2-1.9 13.6 3 18.5l63.6 63.6c4.9 4.9 12.3 6.1 18.5 3 12.2-6.1 24.9-12 37.7-17.9V488c0 17.8 18.8 29.4 34.7 21.5l98.7-49.4c16.3-8.1 26.5-24.8 26.5-42.9V312.8c72.6-46.3 128-108.4 128-211.1.1-25.2.1-50.4-6.8-82.6zM400 160c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48z"] };
  3314. var faRoute = { prefix: 'fas', iconName: 'route', icon: [512, 512, [], "f4d7", "M416 320h-96c-17.6 0-32-14.4-32-32s14.4-32 32-32h96s96-107 96-160-43-96-96-96-96 43-96 96c0 25.5 22.2 63.4 45.3 96H320c-52.9 0-96 43.1-96 96s43.1 96 96 96h96c17.6 0 32 14.4 32 32s-14.4 32-32 32H185.5c-16 24.8-33.8 47.7-47.3 64H416c52.9 0 96-43.1 96-96s-43.1-96-96-96zm0-256c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zM96 256c-53 0-96 43-96 96s96 160 96 160 96-107 96-160-43-96-96-96zm0 128c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"] };
  3315. var faRss = { prefix: 'fas', iconName: 'rss', icon: [448, 512, [], "f09e", "M128.081 415.959c0 35.369-28.672 64.041-64.041 64.041S0 451.328 0 415.959s28.672-64.041 64.041-64.041 64.04 28.673 64.04 64.041zm175.66 47.25c-8.354-154.6-132.185-278.587-286.95-286.95C7.656 175.765 0 183.105 0 192.253v48.069c0 8.415 6.49 15.472 14.887 16.018 111.832 7.284 201.473 96.702 208.772 208.772.547 8.397 7.604 14.887 16.018 14.887h48.069c9.149.001 16.489-7.655 15.995-16.79zm144.249.288C439.596 229.677 251.465 40.445 16.503 32.01 7.473 31.686 0 38.981 0 48.016v48.068c0 8.625 6.835 15.645 15.453 15.999 191.179 7.839 344.627 161.316 352.465 352.465.353 8.618 7.373 15.453 15.999 15.453h48.068c9.034-.001 16.329-7.474 16.005-16.504z"] };
  3316. var faRssSquare = { prefix: 'fas', iconName: 'rss-square', icon: [448, 512, [], "f143", "M400 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zM112 416c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48zm157.533 0h-34.335c-6.011 0-11.051-4.636-11.442-10.634-5.214-80.05-69.243-143.92-149.123-149.123-5.997-.39-10.633-5.431-10.633-11.441v-34.335c0-6.535 5.468-11.777 11.994-11.425 110.546 5.974 198.997 94.536 204.964 204.964.352 6.526-4.89 11.994-11.425 11.994zm103.027 0h-34.334c-6.161 0-11.175-4.882-11.427-11.038-5.598-136.535-115.204-246.161-251.76-251.76C68.882 152.949 64 147.935 64 141.774V107.44c0-6.454 5.338-11.664 11.787-11.432 167.83 6.025 302.21 141.191 308.205 308.205.232 6.449-4.978 11.787-11.432 11.787z"] };
  3317. var faRubleSign = { prefix: 'fas', iconName: 'ruble-sign', icon: [384, 512, [], "f158", "M239.36 320C324.48 320 384 260.542 384 175.071S324.48 32 239.36 32H76c-6.627 0-12 5.373-12 12v206.632H12c-6.627 0-12 5.373-12 12V308c0 6.627 5.373 12 12 12h52v32H12c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h52v52c0 6.627 5.373 12 12 12h58.56c6.627 0 12-5.373 12-12v-52H308c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12H146.56v-32h92.8zm-92.8-219.252h78.72c46.72 0 74.88 29.11 74.88 74.323 0 45.832-28.16 75.561-76.16 75.561h-77.44V100.748z"] };
  3318. var faRuler = { prefix: 'fas', iconName: 'ruler', icon: [640, 512, [], "f545", "M635.7 167.2L556.1 31.7c-8.8-15-28.3-20.1-43.5-11.5l-69 39.1L503.3 161c2.2 3.8.9 8.5-2.9 10.7l-13.8 7.8c-3.8 2.2-8.7.9-10.9-2.9L416 75l-55.2 31.3 27.9 47.4c2.2 3.8.9 8.5-2.9 10.7l-13.8 7.8c-3.8 2.2-8.7.9-10.9-2.9L333.2 122 278 153.3 337.8 255c2.2 3.7.9 8.5-2.9 10.7l-13.8 7.8c-3.8 2.2-8.7.9-10.9-2.9l-59.7-101.7-55.2 31.3 27.9 47.4c2.2 3.8.9 8.5-2.9 10.7l-13.8 7.8c-3.8 2.2-8.7.9-10.9-2.9l-27.9-47.5-55.2 31.3 59.7 101.7c2.2 3.7.9 8.5-2.9 10.7l-13.8 7.8c-3.8 2.2-8.7.9-10.9-2.9L84.9 262.9l-69 39.1C.7 310.7-4.6 329.8 4.2 344.8l79.6 135.6c8.8 15 28.3 20.1 43.5 11.5L624.1 210c15.2-8.6 20.4-27.8 11.6-42.8z"] };
  3319. var faRulerCombined = { prefix: 'fas', iconName: 'ruler-combined', icon: [512, 512, [], "f546", "M160 288h-56c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h56v-64h-56c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h56V96h-56c-4.42 0-8-3.58-8-8V72c0-4.42 3.58-8 8-8h56V32c0-17.67-14.33-32-32-32H32C14.33 0 0 14.33 0 32v448c0 2.77.91 5.24 1.57 7.8L160 329.38V288zm320 64h-32v56c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-56h-64v56c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-56h-64v56c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-56h-41.37L24.2 510.43c2.56.66 5.04 1.57 7.8 1.57h448c17.67 0 32-14.33 32-32v-96c0-17.67-14.33-32-32-32z"] };
  3320. var faRulerHorizontal = { prefix: 'fas', iconName: 'ruler-horizontal', icon: [576, 512, [], "f547", "M544 128h-48v88c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-88h-64v88c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-88h-64v88c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-88h-64v88c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-88h-64v88c0 4.42-3.58 8-8 8H88c-4.42 0-8-3.58-8-8v-88H32c-17.67 0-32 14.33-32 32v192c0 17.67 14.33 32 32 32h512c17.67 0 32-14.33 32-32V160c0-17.67-14.33-32-32-32z"] };
  3321. var faRulerVertical = { prefix: 'fas', iconName: 'ruler-vertical', icon: [256, 512, [], "f548", "M168 416c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h88v-64h-88c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h88v-64h-88c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h88v-64h-88c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h88V32c0-17.67-14.33-32-32-32H32C14.33 0 0 14.33 0 32v448c0 17.67 14.33 32 32 32h192c17.67 0 32-14.33 32-32v-64h-88z"] };
  3322. var faRunning = { prefix: 'fas', iconName: 'running', icon: [416, 512, [], "f70c", "M272 96c26.51 0 48-21.49 48-48S298.51 0 272 0s-48 21.49-48 48 21.49 48 48 48zM113.69 317.47l-14.8 34.52H32c-17.67 0-32 14.33-32 32s14.33 32 32 32h77.45c19.25 0 36.58-11.44 44.11-29.09l8.79-20.52-10.67-6.3c-17.32-10.23-30.06-25.37-37.99-42.61zM384 223.99h-44.03l-26.06-53.25c-12.5-25.55-35.45-44.23-61.78-50.94l-71.08-21.14c-28.3-6.8-57.77-.55-80.84 17.14l-39.67 30.41c-14.03 10.75-16.69 30.83-5.92 44.86s30.84 16.66 44.86 5.92l39.69-30.41c7.67-5.89 17.44-8 25.27-6.14l14.7 4.37-37.46 87.39c-12.62 29.48-1.31 64.01 26.3 80.31l84.98 50.17-27.47 87.73c-5.28 16.86 4.11 34.81 20.97 40.09 3.19 1 6.41 1.48 9.58 1.48 13.61 0 26.23-8.77 30.52-22.45l31.64-101.06c5.91-20.77-2.89-43.08-21.64-54.39l-61.24-36.14 31.31-78.28 20.27 41.43c8 16.34 24.92 26.89 43.11 26.89H384c17.67 0 32-14.33 32-32s-14.33-31.99-32-31.99z"] };
  3323. var faRupeeSign = { prefix: 'fas', iconName: 'rupee-sign', icon: [320, 512, [], "f156", "M308 96c6.627 0 12-5.373 12-12V44c0-6.627-5.373-12-12-12H12C5.373 32 0 37.373 0 44v44.748c0 6.627 5.373 12 12 12h85.28c27.308 0 48.261 9.958 60.97 27.252H12c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h158.757c-6.217 36.086-32.961 58.632-74.757 58.632H12c-6.627 0-12 5.373-12 12v53.012c0 3.349 1.4 6.546 3.861 8.818l165.052 152.356a12.001 12.001 0 0 0 8.139 3.182h82.562c10.924 0 16.166-13.408 8.139-20.818L116.871 319.906c76.499-2.34 131.144-53.395 138.318-127.906H308c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-58.69c-3.486-11.541-8.28-22.246-14.252-32H308z"] };
  3324. var faSadCry = { prefix: 'fas', iconName: 'sad-cry', icon: [496, 512, [], "f5b3", "M248 8C111 8 0 119 0 256c0 90.1 48.2 168.7 120 212.1V288c0-8.8 7.2-16 16-16s16 7.2 16 16v196.7c29.5 12.4 62 19.3 96 19.3s66.5-6.9 96-19.3V288c0-8.8 7.2-16 16-16s16 7.2 16 16v180.1C447.8 424.7 496 346 496 256 496 119 385 8 248 8zm-65.5 216.5c-14.8-13.2-46.2-13.2-61 0L112 233c-3.8 3.3-9.3 4-13.7 1.6-4.4-2.4-6.9-7.4-6.1-12.4 4-25.2 34.2-42.1 59.9-42.1S208 197 212 222.2c.8 5-1.7 10-6.1 12.4-5.8 3.1-11.2.7-13.7-1.6l-9.7-8.5zM248 416c-26.5 0-48-28.7-48-64s21.5-64 48-64 48 28.7 48 64-21.5 64-48 64zm149.8-181.5c-5.8 3.1-11.2.7-13.7-1.6l-9.5-8.5c-14.8-13.2-46.2-13.2-61 0L304 233c-3.8 3.3-9.3 4-13.7 1.6-4.4-2.4-6.9-7.4-6.1-12.4 4-25.2 34.2-42.1 59.9-42.1S400 197 404 222.2c.6 4.9-1.8 9.9-6.2 12.3z"] };
  3325. var faSadTear = { prefix: 'fas', iconName: 'sad-tear', icon: [496, 512, [], "f5b4", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm80 168c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zM152 416c-26.5 0-48-21-48-47 0-20 28.5-60.4 41.6-77.8 3.2-4.3 9.6-4.3 12.8 0C171.5 308.6 200 349 200 369c0 26-21.5 47-48 47zm16-176c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm170.2 154.2C315.8 367.4 282.9 352 248 352c-21.2 0-21.2-32 0-32 44.4 0 86.3 19.6 114.7 53.8 13.8 16.4-11.2 36.5-24.5 20.4z"] };
  3326. var faSave = { prefix: 'fas', iconName: 'save', icon: [448, 512, [], "f0c7", "M433.941 129.941l-83.882-83.882A48 48 0 0 0 316.118 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V163.882a48 48 0 0 0-14.059-33.941zM224 416c-35.346 0-64-28.654-64-64 0-35.346 28.654-64 64-64s64 28.654 64 64c0 35.346-28.654 64-64 64zm96-304.52V212c0 6.627-5.373 12-12 12H76c-6.627 0-12-5.373-12-12V108c0-6.627 5.373-12 12-12h228.52c3.183 0 6.235 1.264 8.485 3.515l3.48 3.48A11.996 11.996 0 0 1 320 111.48z"] };
  3327. var faSchool = { prefix: 'fas', iconName: 'school', icon: [640, 512, [], "f549", "M0 224v272c0 8.84 7.16 16 16 16h80V192H32c-17.67 0-32 14.33-32 32zm360-48h-24v-40c0-4.42-3.58-8-8-8h-16c-4.42 0-8 3.58-8 8v64c0 4.42 3.58 8 8 8h48c4.42 0 8-3.58 8-8v-16c0-4.42-3.58-8-8-8zm137.75-63.96l-160-106.67a32.02 32.02 0 0 0-35.5 0l-160 106.67A32.002 32.002 0 0 0 128 138.66V512h128V368c0-8.84 7.16-16 16-16h96c8.84 0 16 7.16 16 16v144h128V138.67c0-10.7-5.35-20.7-14.25-26.63zM320 256c-44.18 0-80-35.82-80-80s35.82-80 80-80 80 35.82 80 80-35.82 80-80 80zm288-64h-64v320h80c8.84 0 16-7.16 16-16V224c0-17.67-14.33-32-32-32z"] };
  3328. var faScrewdriver = { prefix: 'fas', iconName: 'screwdriver', icon: [512, 512, [], "f54a", "M448 0L320 96v62.06l-83.03 83.03c6.79 4.25 13.27 9.06 19.07 14.87 5.8 5.8 10.62 12.28 14.87 19.07L353.94 192H416l96-128-64-64zM128 278.59L10.92 395.67c-14.55 14.55-14.55 38.15 0 52.71l52.7 52.7c14.56 14.56 38.15 14.56 52.71 0L233.41 384c29.11-29.11 29.11-76.3 0-105.41s-76.3-29.11-105.41 0z"] };
  3329. var faScroll = { prefix: 'fas', iconName: 'scroll', icon: [640, 512, [], "f70e", "M48 0C21.53 0 0 21.53 0 48v64c0 8.84 7.16 16 16 16h80V48C96 21.53 74.47 0 48 0zm208 412.57V352h288V96c0-52.94-43.06-96-96-96H111.59C121.74 13.41 128 29.92 128 48v368c0 38.87 34.65 69.65 74.75 63.12C234.22 474 256 444.46 256 412.57zM288 384v32c0 52.93-43.06 96-96 96h336c61.86 0 112-50.14 112-112 0-8.84-7.16-16-16-16H288z"] };
  3330. var faSearch = { prefix: 'fas', iconName: 'search', icon: [512, 512, [], "f002", "M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"] };
  3331. var faSearchDollar = { prefix: 'fas', iconName: 'search-dollar', icon: [512, 512, [], "f688", "M505.04 442.66l-99.71-99.69c-4.5-4.5-10.6-7-17-7h-16.3c27.6-35.3 44-79.69 44-127.99C416.03 93.09 322.92 0 208.02 0S0 93.09 0 207.98s93.11 207.98 208.02 207.98c48.3 0 92.71-16.4 128.01-44v16.3c0 6.4 2.5 12.5 7 17l99.71 99.69c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.59.1-33.99zm-297.02-90.7c-79.54 0-144-64.34-144-143.98 0-79.53 64.35-143.98 144-143.98 79.54 0 144 64.34 144 143.98 0 79.53-64.35 143.98-144 143.98zm27.11-152.54l-45.01-13.5c-5.16-1.55-8.77-6.78-8.77-12.73 0-7.27 5.3-13.19 11.8-13.19h28.11c4.56 0 8.96 1.29 12.82 3.72 3.24 2.03 7.36 1.91 10.13-.73l11.75-11.21c3.53-3.37 3.33-9.21-.57-12.14-9.1-6.83-20.08-10.77-31.37-11.35V112c0-4.42-3.58-8-8-8h-16c-4.42 0-8 3.58-8 8v16.12c-23.63.63-42.68 20.55-42.68 45.07 0 19.97 12.99 37.81 31.58 43.39l45.01 13.5c5.16 1.55 8.77 6.78 8.77 12.73 0 7.27-5.3 13.19-11.8 13.19h-28.1c-4.56 0-8.96-1.29-12.82-3.72-3.24-2.03-7.36-1.91-10.13.73l-11.75 11.21c-3.53 3.37-3.33 9.21.57 12.14 9.1 6.83 20.08 10.77 31.37 11.35V304c0 4.42 3.58 8 8 8h16c4.42 0 8-3.58 8-8v-16.12c23.63-.63 42.68-20.54 42.68-45.07 0-19.97-12.99-37.81-31.59-43.39z"] };
  3332. var faSearchLocation = { prefix: 'fas', iconName: 'search-location', icon: [512, 512, [], "f689", "M505.04 442.66l-99.71-99.69c-4.5-4.5-10.6-7-17-7h-16.3c27.6-35.3 44-79.69 44-127.99C416.03 93.09 322.92 0 208.02 0S0 93.09 0 207.98s93.11 207.98 208.02 207.98c48.3 0 92.71-16.4 128.01-44v16.3c0 6.4 2.5 12.5 7 17l99.71 99.69c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.59.1-33.99zm-297.02-90.7c-79.54 0-144-64.34-144-143.98 0-79.53 64.35-143.98 144-143.98 79.54 0 144 64.34 144 143.98 0 79.53-64.35 143.98-144 143.98zm.02-239.96c-40.78 0-73.84 33.05-73.84 73.83 0 32.96 48.26 93.05 66.75 114.86a9.24 9.24 0 0 0 14.18 0c18.49-21.81 66.75-81.89 66.75-114.86 0-40.78-33.06-73.83-73.84-73.83zm0 96c-13.26 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24z"] };
  3333. var faSearchMinus = { prefix: 'fas', iconName: 'search-minus', icon: [512, 512, [], "f010", "M304 192v32c0 6.6-5.4 12-12 12H124c-6.6 0-12-5.4-12-12v-32c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12zm201 284.7L476.7 505c-9.4 9.4-24.6 9.4-33.9 0L343 405.3c-4.5-4.5-7-10.6-7-17V372c-35.3 27.6-79.7 44-128 44C93.1 416 0 322.9 0 208S93.1 0 208 0s208 93.1 208 208c0 48.3-16.4 92.7-44 128h16.3c6.4 0 12.5 2.5 17 7l99.7 99.7c9.3 9.4 9.3 24.6 0 34zM344 208c0-75.2-60.8-136-136-136S72 132.8 72 208s60.8 136 136 136 136-60.8 136-136z"] };
  3334. var faSearchPlus = { prefix: 'fas', iconName: 'search-plus', icon: [512, 512, [], "f00e", "M304 192v32c0 6.6-5.4 12-12 12h-56v56c0 6.6-5.4 12-12 12h-32c-6.6 0-12-5.4-12-12v-56h-56c-6.6 0-12-5.4-12-12v-32c0-6.6 5.4-12 12-12h56v-56c0-6.6 5.4-12 12-12h32c6.6 0 12 5.4 12 12v56h56c6.6 0 12 5.4 12 12zm201 284.7L476.7 505c-9.4 9.4-24.6 9.4-33.9 0L343 405.3c-4.5-4.5-7-10.6-7-17V372c-35.3 27.6-79.7 44-128 44C93.1 416 0 322.9 0 208S93.1 0 208 0s208 93.1 208 208c0 48.3-16.4 92.7-44 128h16.3c6.4 0 12.5 2.5 17 7l99.7 99.7c9.3 9.4 9.3 24.6 0 34zM344 208c0-75.2-60.8-136-136-136S72 132.8 72 208s60.8 136 136 136 136-60.8 136-136z"] };
  3335. var faSeedling = { prefix: 'fas', iconName: 'seedling', icon: [512, 512, [], "f4d8", "M64 96H0c0 123.7 100.3 224 224 224v144c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V320C288 196.3 187.7 96 64 96zm384-64c-84.2 0-157.4 46.5-195.7 115.2 27.7 30.2 48.2 66.9 59 107.6C424 243.1 512 147.9 512 32h-64z"] };
  3336. var faServer = { prefix: 'fas', iconName: 'server', icon: [512, 512, [], "f233", "M480 160H32c-17.673 0-32-14.327-32-32V64c0-17.673 14.327-32 32-32h448c17.673 0 32 14.327 32 32v64c0 17.673-14.327 32-32 32zm-48-88c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm-64 0c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm112 248H32c-17.673 0-32-14.327-32-32v-64c0-17.673 14.327-32 32-32h448c17.673 0 32 14.327 32 32v64c0 17.673-14.327 32-32 32zm-48-88c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm-64 0c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm112 248H32c-17.673 0-32-14.327-32-32v-64c0-17.673 14.327-32 32-32h448c17.673 0 32 14.327 32 32v64c0 17.673-14.327 32-32 32zm-48-88c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm-64 0c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24z"] };
  3337. var faShapes = { prefix: 'fas', iconName: 'shapes', icon: [512, 512, [], "f61f", "M512 320v160c0 17.67-14.33 32-32 32H320c-17.67 0-32-14.33-32-32V320c0-17.67 14.33-32 32-32h160c17.67 0 32 14.33 32 32zm-384-64C57.31 256 0 313.31 0 384s57.31 128 128 128 128-57.31 128-128-57.31-128-128-128zm351.03-32c25.34 0 41.18-26.67 28.51-48L412.51 16c-12.67-21.33-44.35-21.33-57.02 0l-95.03 160c-12.67 21.33 3.17 48 28.51 48h190.06z"] };
  3338. var faShare = { prefix: 'fas', iconName: 'share', icon: [512, 512, [], "f064", "M503.691 189.836L327.687 37.851C312.281 24.546 288 35.347 288 56.015v80.053C127.371 137.907 0 170.1 0 322.326c0 61.441 39.581 122.309 83.333 154.132 13.653 9.931 33.111-2.533 28.077-18.631C66.066 312.814 132.917 274.316 288 272.085V360c0 20.7 24.3 31.453 39.687 18.164l176.004-152c11.071-9.562 11.086-26.753 0-36.328z"] };
  3339. var faShareAlt = { prefix: 'fas', iconName: 'share-alt', icon: [448, 512, [], "f1e0", "M352 320c-22.608 0-43.387 7.819-59.79 20.895l-102.486-64.054a96.551 96.551 0 0 0 0-41.683l102.486-64.054C308.613 184.181 329.392 192 352 192c53.019 0 96-42.981 96-96S405.019 0 352 0s-96 42.981-96 96c0 7.158.79 14.13 2.276 20.841L155.79 180.895C139.387 167.819 118.608 160 96 160c-53.019 0-96 42.981-96 96s42.981 96 96 96c22.608 0 43.387-7.819 59.79-20.895l102.486 64.054A96.301 96.301 0 0 0 256 416c0 53.019 42.981 96 96 96s96-42.981 96-96-42.981-96-96-96z"] };
  3340. var faShareAltSquare = { prefix: 'fas', iconName: 'share-alt-square', icon: [448, 512, [], "f1e1", "M448 80v352c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h352c26.51 0 48 21.49 48 48zM304 296c-14.562 0-27.823 5.561-37.783 14.671l-67.958-40.775a56.339 56.339 0 0 0 0-27.793l67.958-40.775C276.177 210.439 289.438 216 304 216c30.928 0 56-25.072 56-56s-25.072-56-56-56-56 25.072-56 56c0 4.797.605 9.453 1.74 13.897l-67.958 40.775C171.823 205.561 158.562 200 144 200c-30.928 0-56 25.072-56 56s25.072 56 56 56c14.562 0 27.823-5.561 37.783-14.671l67.958 40.775a56.088 56.088 0 0 0-1.74 13.897c0 30.928 25.072 56 56 56s56-25.072 56-56C360 321.072 334.928 296 304 296z"] };
  3341. var faShareSquare = { prefix: 'fas', iconName: 'share-square', icon: [576, 512, [], "f14d", "M568.482 177.448L424.479 313.433C409.3 327.768 384 317.14 384 295.985v-71.963c-144.575.97-205.566 35.113-164.775 171.353 4.483 14.973-12.846 26.567-25.006 17.33C155.252 383.105 120 326.488 120 269.339c0-143.937 117.599-172.5 264-173.312V24.012c0-21.174 25.317-31.768 40.479-17.448l144.003 135.988c10.02 9.463 10.028 25.425 0 34.896zM384 379.128V448H64V128h50.916a11.99 11.99 0 0 0 8.648-3.693c14.953-15.568 32.237-27.89 51.014-37.676C185.708 80.83 181.584 64 169.033 64H48C21.49 64 0 85.49 0 112v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48v-88.806c0-8.288-8.197-14.066-16.011-11.302a71.83 71.83 0 0 1-34.189 3.377c-7.27-1.046-13.8 4.514-13.8 11.859z"] };
  3342. var faShekelSign = { prefix: 'fas', iconName: 'shekel-sign', icon: [448, 512, [], "f20b", "M248 168v168c0 8.84 7.16 16 16 16h48c8.84 0 16-7.16 16-16V168c0-75.11-60.89-136-136-136H24C10.75 32 0 42.74 0 56v408c0 8.84 7.16 16 16 16h48c8.84 0 16-7.16 16-16V112h112c30.93 0 56 25.07 56 56zM432 32h-48c-8.84 0-16 7.16-16 16v296c0 30.93-25.07 56-56 56H200V176c0-8.84-7.16-16-16-16h-48c-8.84 0-16 7.16-16 16v280c0 13.25 10.75 24 24 24h168c75.11 0 136-60.89 136-136V48c0-8.84-7.16-16-16-16z"] };
  3343. var faShieldAlt = { prefix: 'fas', iconName: 'shield-alt', icon: [512, 512, [], "f3ed", "M496 128c0 221.282-135.934 344.645-221.539 380.308a48 48 0 0 1-36.923 0C130.495 463.713 16 326.487 16 128a48 48 0 0 1 29.539-44.308l192-80a48 48 0 0 1 36.923 0l192 80A48 48 0 0 1 496 128zM256 446.313l.066.034c93.735-46.689 172.497-156.308 175.817-307.729L256 65.333v380.98z"] };
  3344. var faShip = { prefix: 'fas', iconName: 'ship', icon: [640, 512, [], "f21a", "M496.616 372.639l70.012-70.012c16.899-16.9 9.942-45.771-12.836-53.092L512 236.102V96c0-17.673-14.327-32-32-32h-64V24c0-13.255-10.745-24-24-24H248c-13.255 0-24 10.745-24 24v40h-64c-17.673 0-32 14.327-32 32v140.102l-41.792 13.433c-22.753 7.313-29.754 36.173-12.836 53.092l70.012 70.012C125.828 416.287 85.587 448 24 448c-13.255 0-24 10.745-24 24v16c0 13.255 10.745 24 24 24 61.023 0 107.499-20.61 143.258-59.396C181.677 487.432 216.021 512 256 512h128c39.979 0 74.323-24.568 88.742-59.396C508.495 491.384 554.968 512 616 512c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24-60.817 0-101.542-31.001-119.384-75.361zM192 128h256v87.531l-118.208-37.995a31.995 31.995 0 0 0-19.584 0L192 215.531V128z"] };
  3345. var faShippingFast = { prefix: 'fas', iconName: 'shipping-fast', icon: [640, 512, [], "f48b", "M624 352h-16V243.9c0-12.7-5.1-24.9-14.1-33.9L494 110.1c-9-9-21.2-14.1-33.9-14.1H416V48c0-26.5-21.5-48-48-48H112C85.5 0 64 21.5 64 48v48H8c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8h272c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H40c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8h208c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H8c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8h208c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H64v128c0 53 43 96 96 96s96-43 96-96h128c0 53 43 96 96 96s96-43 96-96h48c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zM160 464c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm320 0c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm80-208H416V144h44.1l99.9 99.9V256z"] };
  3346. var faShoePrints = { prefix: 'fas', iconName: 'shoe-prints', icon: [640, 512, [], "f54b", "M192 160h32V32h-32c-35.35 0-64 28.65-64 64s28.65 64 64 64zM0 416c0 35.35 28.65 64 64 64h32V352H64c-35.35 0-64 28.65-64 64zm337.46-128c-34.91 0-76.16 13.12-104.73 32-24.79 16.38-44.52 32-104.73 32v128l57.53 15.97c26.21 7.28 53.01 13.12 80.31 15.05 32.69 2.31 65.6.67 97.58-6.2C472.9 481.3 512 429.22 512 384c0-64-84.18-96-174.54-96zM491.42 7.19C459.44.32 426.53-1.33 393.84.99c-27.3 1.93-54.1 7.77-80.31 15.04L256 32v128c60.2 0 79.94 15.62 104.73 32 28.57 18.88 69.82 32 104.73 32C555.82 224 640 192 640 128c0-45.22-39.1-97.3-148.58-120.81z"] };
  3347. var faShoppingBag = { prefix: 'fas', iconName: 'shopping-bag', icon: [448, 512, [], "f290", "M352 160v-32C352 57.42 294.579 0 224 0 153.42 0 96 57.42 96 128v32H0v272c0 44.183 35.817 80 80 80h288c44.183 0 80-35.817 80-80V160h-96zm-192-32c0-35.29 28.71-64 64-64s64 28.71 64 64v32H160v-32zm160 120c-13.255 0-24-10.745-24-24s10.745-24 24-24 24 10.745 24 24-10.745 24-24 24zm-192 0c-13.255 0-24-10.745-24-24s10.745-24 24-24 24 10.745 24 24-10.745 24-24 24z"] };
  3348. var faShoppingBasket = { prefix: 'fas', iconName: 'shopping-basket', icon: [576, 512, [], "f291", "M576 216v16c0 13.255-10.745 24-24 24h-8l-26.113 182.788C514.509 462.435 494.257 480 470.37 480H105.63c-23.887 0-44.139-17.565-47.518-41.212L32 256h-8c-13.255 0-24-10.745-24-24v-16c0-13.255 10.745-24 24-24h67.341l106.78-146.821c10.395-14.292 30.407-17.453 44.701-7.058 14.293 10.395 17.453 30.408 7.058 44.701L170.477 192h235.046L326.12 82.821c-10.395-14.292-7.234-34.306 7.059-44.701 14.291-10.395 34.306-7.235 44.701 7.058L484.659 192H552c13.255 0 24 10.745 24 24zM312 392V280c0-13.255-10.745-24-24-24s-24 10.745-24 24v112c0 13.255 10.745 24 24 24s24-10.745 24-24zm112 0V280c0-13.255-10.745-24-24-24s-24 10.745-24 24v112c0 13.255 10.745 24 24 24s24-10.745 24-24zm-224 0V280c0-13.255-10.745-24-24-24s-24 10.745-24 24v112c0 13.255 10.745 24 24 24s24-10.745 24-24z"] };
  3349. var faShoppingCart = { prefix: 'fas', iconName: 'shopping-cart', icon: [576, 512, [], "f07a", "M528.12 301.319l47.273-208C578.806 78.301 567.391 64 551.99 64H159.208l-9.166-44.81C147.758 8.021 137.93 0 126.529 0H24C10.745 0 0 10.745 0 24v16c0 13.255 10.745 24 24 24h69.883l70.248 343.435C147.325 417.1 136 435.222 136 456c0 30.928 25.072 56 56 56s56-25.072 56-56c0-15.674-6.447-29.835-16.824-40h209.647C430.447 426.165 424 440.326 424 456c0 30.928 25.072 56 56 56s56-25.072 56-56c0-22.172-12.888-41.332-31.579-50.405l5.517-24.276c3.413-15.018-8.002-29.319-23.403-29.319H218.117l-6.545-32h293.145c11.206 0 20.92-7.754 23.403-18.681z"] };
  3350. var faShower = { prefix: 'fas', iconName: 'shower', icon: [512, 512, [], "f2cc", "M389.66 135.6L231.6 293.66c-9.37 9.37-24.57 9.37-33.94 0l-11.32-11.32c-9.37-9.37-9.37-24.57 0-33.94l.11-.11c-34.03-40.21-35.16-98.94-3.39-140.38-11.97-7.55-26.14-11.91-41.3-11.91C98.88 96 64 130.88 64 173.76V480H0V173.76C0 95.59 63.59 32 141.76 32c36.93 0 70.61 14.2 95.86 37.42 35.9-11.51 76.5-4.5 106.67 21.03l.11-.11c9.37-9.37 24.57-9.37 33.94 0l11.32 11.32c9.37 9.37 9.37 24.57 0 33.94zM384 208c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm32 0c0-8.837 7.163-16 16-16s16 7.163 16 16-7.163 16-16 16-16-7.163-16-16zm96 0c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm-160 32c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm48-16c8.837 0 16 7.163 16 16s-7.163 16-16 16-16-7.163-16-16 7.163-16 16-16zm80 16c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm-160 32c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm32 0c0-8.837 7.163-16 16-16s16 7.163 16 16-7.163 16-16 16-16-7.163-16-16zm96 0c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm-128 32c0-8.837 7.163-16 16-16s16 7.163 16 16-7.163 16-16 16-16-7.163-16-16zm96 0c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm-96 32c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm64 0c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm-32 32c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16zm-32 32c0 8.837-7.163 16-16 16s-16-7.163-16-16 7.163-16 16-16 16 7.163 16 16z"] };
  3351. var faShuttleVan = { prefix: 'fas', iconName: 'shuttle-van', icon: [640, 512, [], "f5b6", "M628.88 210.65L494.39 49.27A48.01 48.01 0 0 0 457.52 32H32C14.33 32 0 46.33 0 64v288c0 17.67 14.33 32 32 32h32c0 53.02 42.98 96 96 96s96-42.98 96-96h128c0 53.02 42.98 96 96 96s96-42.98 96-96h32c17.67 0 32-14.33 32-32V241.38c0-11.23-3.94-22.1-11.12-30.73zM64 192V96h96v96H64zm96 240c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48zm160-240h-96V96h96v96zm160 240c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48zm-96-240V96h66.02l80 96H384z"] };
  3352. var faSign = { prefix: 'fas', iconName: 'sign', icon: [512, 512, [], "f4d9", "M496 64H128V16c0-8.8-7.2-16-16-16H80c-8.8 0-16 7.2-16 16v48H16C7.2 64 0 71.2 0 80v32c0 8.8 7.2 16 16 16h48v368c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V128h368c8.8 0 16-7.2 16-16V80c0-8.8-7.2-16-16-16zM160 384h320V160H160v224z"] };
  3353. var faSignInAlt = { prefix: 'fas', iconName: 'sign-in-alt', icon: [512, 512, [], "f2f6", "M416 448h-84c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h84c17.7 0 32-14.3 32-32V160c0-17.7-14.3-32-32-32h-84c-6.6 0-12-5.4-12-12V76c0-6.6 5.4-12 12-12h84c53 0 96 43 96 96v192c0 53-43 96-96 96zm-47-201L201 79c-15-15-41-4.5-41 17v96H24c-13.3 0-24 10.7-24 24v96c0 13.3 10.7 24 24 24h136v96c0 21.5 26 32 41 17l168-168c9.3-9.4 9.3-24.6 0-34z"] };
  3354. var faSignLanguage = { prefix: 'fas', iconName: 'sign-language', icon: [448, 512, [], "f2a7", "M91.434 483.987c-.307-16.018 13.109-29.129 29.13-29.129h62.293v-5.714H56.993c-16.021 0-29.437-13.111-29.13-29.129C28.16 404.491 40.835 392 56.428 392h126.429v-5.714H29.136c-16.021 0-29.437-13.111-29.13-29.129.297-15.522 12.973-28.013 28.566-28.013h154.286v-5.714H57.707c-16.021 0-29.437-13.111-29.13-29.129.297-15.522 12.973-28.013 28.566-28.013h168.566l-31.085-22.606c-12.762-9.281-15.583-27.149-6.302-39.912 9.281-12.761 27.15-15.582 39.912-6.302l123.361 89.715a34.287 34.287 0 0 1 14.12 27.728v141.136c0 15.91-10.946 29.73-26.433 33.374l-80.471 18.934a137.16 137.16 0 0 1-31.411 3.646H120c-15.593-.001-28.269-12.492-28.566-28.014zm73.249-225.701h36.423l-11.187-8.136c-18.579-13.511-20.313-40.887-3.17-56.536l-13.004-16.7c-9.843-12.641-28.43-15.171-40.88-5.088-12.065 9.771-14.133 27.447-4.553 39.75l36.371 46.71zm283.298-2.103l-5.003-152.452c-.518-15.771-13.722-28.136-29.493-27.619-15.773.518-28.137 13.722-27.619 29.493l1.262 38.415L283.565 11.019c-9.58-12.303-27.223-14.63-39.653-5.328-12.827 9.599-14.929 28.24-5.086 40.881l76.889 98.745-4.509 3.511-94.79-121.734c-9.58-12.303-27.223-14.63-39.653-5.328-12.827 9.599-14.929 28.24-5.086 40.881l94.443 121.288-4.509 3.511-77.675-99.754c-9.58-12.303-27.223-14.63-39.653-5.328-12.827 9.599-14.929 28.24-5.086 40.881l52.053 66.849c12.497-8.257 29.055-8.285 41.69.904l123.36 89.714c10.904 7.93 17.415 20.715 17.415 34.198v16.999l61.064-47.549a34.285 34.285 0 0 0 13.202-28.177z"] };
  3355. var faSignOutAlt = { prefix: 'fas', iconName: 'sign-out-alt', icon: [512, 512, [], "f2f5", "M497 273L329 441c-15 15-41 4.5-41-17v-96H152c-13.3 0-24-10.7-24-24v-96c0-13.3 10.7-24 24-24h136V88c0-21.4 25.9-32 41-17l168 168c9.3 9.4 9.3 24.6 0 34zM192 436v-40c0-6.6-5.4-12-12-12H96c-17.7 0-32-14.3-32-32V160c0-17.7 14.3-32 32-32h84c6.6 0 12-5.4 12-12V76c0-6.6-5.4-12-12-12H96c-53 0-96 43-96 96v192c0 53 43 96 96 96h84c6.6 0 12-5.4 12-12z"] };
  3356. var faSignal = { prefix: 'fas', iconName: 'signal', icon: [640, 512, [], "f012", "M216 288h-48c-8.84 0-16 7.16-16 16v192c0 8.84 7.16 16 16 16h48c8.84 0 16-7.16 16-16V304c0-8.84-7.16-16-16-16zM88 384H40c-8.84 0-16 7.16-16 16v96c0 8.84 7.16 16 16 16h48c8.84 0 16-7.16 16-16v-96c0-8.84-7.16-16-16-16zm256-192h-48c-8.84 0-16 7.16-16 16v288c0 8.84 7.16 16 16 16h48c8.84 0 16-7.16 16-16V208c0-8.84-7.16-16-16-16zm128-96h-48c-8.84 0-16 7.16-16 16v384c0 8.84 7.16 16 16 16h48c8.84 0 16-7.16 16-16V112c0-8.84-7.16-16-16-16zM600 0h-48c-8.84 0-16 7.16-16 16v480c0 8.84 7.16 16 16 16h48c8.84 0 16-7.16 16-16V16c0-8.84-7.16-16-16-16z"] };
  3357. var faSignature = { prefix: 'fas', iconName: 'signature', icon: [512, 512, [], "f5b7", "M496 320h-91.86c-9.27 0-19.72-11.31-25.78-28.52-15.23-43.36-48.11-70.3-85.8-70.3-30.84 0-58.47 18.05-76.11 49.23L194.8 106.5C188.84 81.08 169.34 64 146.28 64c-23.05 0-42.55 17.08-48.5 42.5L56.16 284.2C50.7 307.45 37.75 320 28.33 320H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h12.33c41.97 0 78.19-34.23 90.14-85.2l23.84-101.78 29.25 222.11c1.98 15.05 13.82 27.45 28.94 28.75.99.09 1.96.13 2.93.13 14.08 0 26.64-9.27 30.69-22.95l33.03-112.34c5.88-16.72 15.84-27.52 25.41-27.52 9.58 0 19.55 10.8 25.78 28.52 15.23 43.36 48.11 70.3 85.8 70.3H496c8.84 0 16-7.16 16-16v-32c0-8.86-7.16-16.02-16-16.02z"] };
  3358. var faSitemap = { prefix: 'fas', iconName: 'sitemap', icon: [640, 512, [], "f0e8", "M128 352H32c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32v-96c0-17.67-14.33-32-32-32zm-24-80h192v48h48v-48h192v48h48v-57.59c0-21.17-17.23-38.41-38.41-38.41H344v-64h40c17.67 0 32-14.33 32-32V32c0-17.67-14.33-32-32-32H256c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h40v64H94.41C73.23 224 56 241.23 56 262.41V320h48v-48zm264 80h-96c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32v-96c0-17.67-14.33-32-32-32zm240 0h-96c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32v-96c0-17.67-14.33-32-32-32z"] };
  3359. var faSkull = { prefix: 'fas', iconName: 'skull', icon: [512, 512, [], "f54c", "M256 0C114.6 0 0 100.3 0 224c0 70.1 36.9 132.6 94.5 173.7 9.6 6.9 15.2 18.1 13.5 29.9l-9.4 66.2c-1.4 9.6 6 18.2 15.7 18.2H192v-56c0-4.4 3.6-8 8-8h16c4.4 0 8 3.6 8 8v56h64v-56c0-4.4 3.6-8 8-8h16c4.4 0 8 3.6 8 8v56h77.7c9.7 0 17.1-8.6 15.7-18.2l-9.4-66.2c-1.7-11.7 3.8-23 13.5-29.9C475.1 356.6 512 294.1 512 224 512 100.3 397.4 0 256 0zm-96 320c-35.3 0-64-28.7-64-64s28.7-64 64-64 64 28.7 64 64-28.7 64-64 64zm192 0c-35.3 0-64-28.7-64-64s28.7-64 64-64 64 28.7 64 64-28.7 64-64 64z"] };
  3360. var faSkullCrossbones = { prefix: 'fas', iconName: 'skull-crossbones', icon: [448, 512, [], "f714", "M439.15 453.06L297.17 384l141.99-69.06c7.9-3.95 11.11-13.56 7.15-21.46L432 264.85c-3.95-7.9-13.56-11.11-21.47-7.16L224 348.41 37.47 257.69c-7.9-3.95-17.51-.75-21.47 7.16L1.69 293.48c-3.95 7.9-.75 17.51 7.15 21.46L150.83 384 8.85 453.06c-7.9 3.95-11.11 13.56-7.15 21.47l14.31 28.63c3.95 7.9 13.56 11.11 21.47 7.15L224 419.59l186.53 90.72c7.9 3.95 17.51.75 21.47-7.15l14.31-28.63c3.95-7.91.74-17.52-7.16-21.47zM150 237.28l-5.48 25.87c-2.67 12.62 5.42 24.85 16.45 24.85h126.08c11.03 0 19.12-12.23 16.45-24.85l-5.5-25.87c41.78-22.41 70-62.75 70-109.28C368 57.31 303.53 0 224 0S80 57.31 80 128c0 46.53 28.22 86.87 70 109.28zM280 112c17.65 0 32 14.35 32 32s-14.35 32-32 32-32-14.35-32-32 14.35-32 32-32zm-112 0c17.65 0 32 14.35 32 32s-14.35 32-32 32-32-14.35-32-32 14.35-32 32-32z"] };
  3361. var faSlash = { prefix: 'fas', iconName: 'slash', icon: [640, 512, [], "f715", "M594.53 508.63L6.18 53.9c-6.97-5.42-8.23-15.47-2.81-22.45L23.01 6.18C28.43-.8 38.49-2.06 45.47 3.37L633.82 458.1c6.97 5.42 8.23 15.47 2.81 22.45l-19.64 25.27c-5.42 6.98-15.48 8.23-22.46 2.81z"] };
  3362. var faSlidersH = { prefix: 'fas', iconName: 'sliders-h', icon: [512, 512, [], "f1de", "M496 384H160v-16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v16H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h80v16c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-16h336c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm0-160h-80v-16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v16H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h336v16c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-16h80c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm0-160H288V48c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v16H16C7.2 64 0 71.2 0 80v32c0 8.8 7.2 16 16 16h208v16c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-16h208c8.8 0 16-7.2 16-16V80c0-8.8-7.2-16-16-16z"] };
  3363. var faSmile = { prefix: 'fas', iconName: 'smile', icon: [496, 512, [], "f118", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm80 168c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm-160 0c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm194.8 170.2C334.3 380.4 292.5 400 248 400s-86.3-19.6-114.8-53.8c-13.6-16.3 11-36.7 24.6-20.5 22.4 26.9 55.2 42.2 90.2 42.2s67.8-15.4 90.2-42.2c13.4-16.2 38.1 4.2 24.6 20.5z"] };
  3364. var faSmileBeam = { prefix: 'fas', iconName: 'smile-beam', icon: [496, 512, [], "f5b8", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM112 223.4c3.3-42.1 32.2-71.4 56-71.4s52.7 29.3 56 71.4c.7 8.6-10.8 11.9-14.9 4.5l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.3 7.4-15.8 4-15.1-4.5zm250.8 122.8C334.3 380.4 292.5 400 248 400s-86.3-19.6-114.8-53.8c-13.5-16.3 11-36.7 24.6-20.5 22.4 26.9 55.2 42.2 90.2 42.2s67.8-15.4 90.2-42.2c13.6-16.2 38.1 4.3 24.6 20.5zm6.2-118.3l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.1 7.3-15.6 4-14.9-4.5 3.3-42.1 32.2-71.4 56-71.4s52.7 29.3 56 71.4c.6 8.6-11 11.9-15.1 4.5z"] };
  3365. var faSmileWink = { prefix: 'fas', iconName: 'smile-wink', icon: [496, 512, [], "f4da", "M0 256c0 137 111 248 248 248s248-111 248-248S385 8 248 8 0 119 0 256zm200-48c0 17.7-14.3 32-32 32s-32-14.3-32-32 14.3-32 32-32 32 14.3 32 32zm158.5 16.5c-14.8-13.2-46.2-13.2-61 0L288 233c-8.3 7.4-21.6.4-19.8-10.8 4-25.2 34.2-42.1 59.9-42.1S384 197 388 222.2c1.7 11.1-11.4 18.3-19.8 10.8l-9.7-8.5zM157.8 325.8C180.2 352.7 213 368 248 368s67.8-15.4 90.2-42.2c13.6-16.2 38.1 4.2 24.6 20.5C334.3 380.4 292.5 400 248 400s-86.3-19.6-114.8-53.8c-13.5-16.3 11.2-36.7 24.6-20.4z"] };
  3366. var faSmoking = { prefix: 'fas', iconName: 'smoking', icon: [640, 512, [], "f48d", "M632 352h-48c-4.4 0-8 3.6-8 8v144c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8zM553.3 87.1c-5.7-3.8-9.3-10-9.3-16.8V8c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v62.3c0 22 10.2 43.4 28.6 55.4 42.2 27.3 67.4 73.8 67.4 124V280c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-30.3c0-65.5-32.4-126.2-86.7-162.6zM432 352H48c-26.5 0-48 21.5-48 48v64c0 26.5 21.5 48 48 48h384c8.8 0 16-7.2 16-16V368c0-8.8-7.2-16-16-16zm-32 112H224v-64h176v64zm87.7-322.4C463.8 125 448 99.3 448 70.3V8c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v66.4c0 43.7 24.6 81.6 60.3 106.7 22.4 15.7 35.7 41.2 35.7 68.6V280c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-30.3c0-43.3-21-83.4-56.3-108.1zM536 352h-48c-4.4 0-8 3.6-8 8v144c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8z"] };
  3367. var faSmokingBan = { prefix: 'fas', iconName: 'smoking-ban', icon: [512, 512, [], "f54d", "M96 304c0 8.8 7.2 16 16 16h117.5l-96-96H112c-8.8 0-16 7.2-16 16v64zM256 0C114.6 0 0 114.6 0 256s114.6 256 256 256 256-114.6 256-256S397.4 0 256 0zm0 448c-105.9 0-192-86.1-192-192 0-41.4 13.3-79.7 35.7-111.1l267.4 267.4C335.7 434.7 297.4 448 256 448zm45.2-192H384v32h-50.8l-32-32zm111.1 111.1L365.2 320H400c8.8 0 16-7.2 16-16v-64c0-8.8-7.2-16-16-16H269.2L144.9 99.7C176.3 77.3 214.6 64 256 64c105.9 0 192 86.1 192 192 0 41.4-13.3 79.7-35.7 111.1zM320.6 128c-15.6 0-28.6-11.2-31.4-25.9-.7-3.6-4-6.1-7.7-6.1h-16.2c-5 0-8.7 4.5-8 9.4 4.6 30.9 31.2 54.6 63.3 54.6 15.6 0 28.6 11.2 31.4 25.9.7 3.6 4 6.1 7.7 6.1h16.2c5 0 8.7-4.5 8-9.4-4.6-30.9-31.2-54.6-63.3-54.6z"] };
  3368. var faSnowflake = { prefix: 'fas', iconName: 'snowflake', icon: [448, 512, [], "f2dc", "M444.816 301.639a24.12 24.12 0 0 0 2.661-16.978c-2.725-12.966-15.339-21.245-28.174-18.492l-87.407 25.046L264 256l67.896-35.215 87.407 25.046c12.835 2.753 25.449-5.526 28.174-18.492 2.725-12.966-5.471-25.708-18.305-28.461l-47.477-7.137 53.077-30.956c11.363-6.627 15.257-21.306 8.696-32.785-6.561-11.479-21.091-15.412-32.454-8.785l-53.077 30.956 17.621-45.104c4.057-12.606-2.768-26.146-15.247-30.245-12.478-4.099-25.883 2.797-29.94 15.402l-22.232 88.99-60.38 35.215V144l65.175-63.945c8.778-9.852 7.987-25.027-1.766-33.894-9.753-8.867-24.775-8.068-33.552 1.784l-29.857 37.967V24c0-13.255-10.637-24-23.758-24s-23.758 10.745-23.758 24v61.912l-29.857-37.967c-8.779-9.852-23.799-10.652-33.552-1.784-9.753 8.867-10.543 24.042-1.766 33.894L200.242 144v70.431l-60.38-35.215-22.232-88.99c-4.057-12.605-17.462-19.501-29.94-15.402-12.478 4.099-19.304 17.64-15.247 30.245l17.62 45.104-53.077-30.956c-11.363-6.627-25.893-2.694-32.454 8.785s-2.667 26.157 8.696 32.785l53.077 30.956-47.477 7.137C5.993 201.634-2.203 214.375.523 227.341c2.725 12.965 15.339 21.245 28.174 18.492l87.407-25.046L184 256l-67.896 35.215-87.406-25.045c-12.835-2.753-25.449 5.526-28.174 18.492-2.725 12.967 5.47 25.708 18.305 28.461l47.477 7.137-53.077 30.956C1.866 357.843-2.027 372.521 4.533 384s21.091 15.412 32.454 8.785l53.077-30.956-17.62 45.104a24.157 24.157 0 0 0 2.022 19.428c2.831 4.953 7.416 8.909 13.224 10.816 12.478 4.099 25.883-2.797 29.94-15.402l22.232-88.99 60.38-35.215V368l-65.175 63.945c-8.778 9.852-7.987 25.027 1.766 33.894 9.754 8.868 24.774 8.068 33.552-1.784l29.857-37.967V488c0 13.255 10.637 24 23.758 24s23.758-10.745 23.758-24v-61.912l29.857 37.967A23.59 23.59 0 0 0 295.282 472a23.534 23.534 0 0 0 15.885-6.161c9.753-8.867 10.544-24.042 1.766-33.894L247.758 368v-70.431l60.38 35.215 22.232 88.99c4.057 12.605 17.462 19.501 29.94 15.402 12.479-4.099 19.304-17.64 15.247-30.245l-17.621-45.104 53.077 30.956c11.363 6.627 25.893 2.694 32.454-8.785s2.667-26.157-8.696-32.785l-53.077-30.956 47.477-7.137c6.86-1.469 12.394-5.793 15.645-11.481z"] };
  3369. var faSocks = { prefix: 'fas', iconName: 'socks', icon: [512, 512, [], "f696", "M214.66 311.01L288 256V96H128v176l-86.65 64.61c-39.4 29.56-53.86 84.42-29.21 127.06C30.39 495.25 63.27 512 96.08 512c20.03 0 40.25-6.25 57.52-19.2l21.86-16.39c-29.85-55.38-13.54-125.84 39.2-165.4zM288 32c0-11.05 3.07-21.3 8.02-30.38C293.4.92 290.85 0 288 0H160c-17.67 0-32 14.33-32 32v32h160V32zM480 0H352c-17.67 0-32 14.33-32 32v32h192V32c0-17.67-14.33-32-32-32zM320 272l-86.13 64.61c-39.4 29.56-53.86 84.42-29.21 127.06 18.25 31.58 50.61 48.33 83.42 48.33 20.03 0 40.25-6.25 57.52-19.2l115.2-86.4A127.997 127.997 0 0 0 512 304V96H320v176z"] };
  3370. var faSolarPanel = { prefix: 'fas', iconName: 'solar-panel', icon: [640, 512, [], "f5ba", "M431.98 448.01l-47.97.05V416h-128v32.21l-47.98.05c-8.82.01-15.97 7.16-15.98 15.99l-.05 31.73c-.01 8.85 7.17 16.03 16.02 16.02l223.96-.26c8.82-.01 15.97-7.16 15.98-15.98l.04-31.73c.01-8.85-7.17-16.03-16.02-16.02zM585.2 26.74C582.58 11.31 568.99 0 553.06 0H86.93C71 0 57.41 11.31 54.79 26.74-3.32 369.16.04 348.08.03 352c-.03 17.32 14.29 32 32.6 32h574.74c18.23 0 32.51-14.56 32.59-31.79.02-4.08 3.35 16.95-54.76-325.47zM259.83 64h120.33l9.77 96H250.06l9.77-96zm-75.17 256H71.09L90.1 208h105.97l-11.41 112zm16.29-160H98.24l16.29-96h96.19l-9.77 96zm32.82 160l11.4-112h149.65l11.4 112H233.77zm195.5-256h96.19l16.29 96H439.04l-9.77-96zm26.06 256l-11.4-112H549.9l19.01 112H455.33z"] };
  3371. var faSort = { prefix: 'fas', iconName: 'sort', icon: [320, 512, [], "f0dc", "M41 288h238c21.4 0 32.1 25.9 17 41L177 448c-9.4 9.4-24.6 9.4-33.9 0L24 329c-15.1-15.1-4.4-41 17-41zm255-105L177 64c-9.4-9.4-24.6-9.4-33.9 0L24 183c-15.1 15.1-4.4 41 17 41h238c21.4 0 32.1-25.9 17-41z"] };
  3372. var faSortAlphaDown = { prefix: 'fas', iconName: 'sort-alpha-down', icon: [448, 512, [], "f15d", "M187.298 395.314l-79.984 80.002c-6.248 6.247-16.383 6.245-22.627 0L4.705 395.314C-5.365 385.244 1.807 368 16.019 368H64V48c0-8.837 7.163-16 16-16h32c8.837 0 16 7.163 16 16v320h47.984c14.241 0 21.363 17.264 11.314 27.314zm119.075-180.007A12 12 0 0 1 294.838 224h-35.717c-8.22 0-14.007-8.078-11.362-15.861l57.096-168A12 12 0 0 1 316.217 32h39.566c5.139 0 9.708 3.273 11.362 8.139l57.096 168C426.886 215.922 421.1 224 412.879 224h-35.735a12 12 0 0 1-11.515-8.622l-8.301-28.299h-42.863l-8.092 28.228zm22.857-78.697h13.367l-6.6-22.937-6.767 22.937zm12.575 287.323l67.451-95.698a12 12 0 0 0 2.192-6.913V300c0-6.627-5.373-12-12-12H274.522c-6.627 0-12 5.373-12 12v28.93c0 6.627 5.373 12 12 12h56.469c-.739.991-1.497 2.036-2.27 3.133l-67.203 95.205a12.001 12.001 0 0 0-2.196 6.92V468c0 6.627 5.373 12 12 12h129.355c6.627 0 12-5.373 12-12v-28.93c0-6.627-5.373-12-12-12h-61.146c.74-.993 1.5-2.039 2.274-3.137z"] };
  3373. var faSortAlphaUp = { prefix: 'fas', iconName: 'sort-alpha-up', icon: [448, 512, [], "f15e", "M4.702 116.686l79.984-80.002c6.248-6.247 16.383-6.245 22.627 0l79.981 80.002c10.07 10.07 2.899 27.314-11.314 27.314H128v320c0 8.837-7.163 16-16 16H80c-8.837 0-16-7.163-16-16V144H16.016c-14.241 0-21.363-17.264-11.314-27.314zm301.671 98.621A12 12 0 0 1 294.838 224h-35.717c-8.22 0-14.007-8.078-11.362-15.861l57.096-168A12 12 0 0 1 316.217 32h39.566c5.139 0 9.708 3.273 11.362 8.139l57.096 168C426.886 215.922 421.1 224 412.879 224h-35.735a12 12 0 0 1-11.515-8.622l-8.301-28.299h-42.863l-8.092 28.228zm22.857-78.697h13.367l-6.6-22.937-6.767 22.937zm12.575 287.323l67.451-95.698a12 12 0 0 0 2.192-6.913V300c0-6.627-5.373-12-12-12H274.522c-6.627 0-12 5.373-12 12v28.93c0 6.627 5.373 12 12 12h56.469c-.739.991-1.497 2.036-2.27 3.133l-67.203 95.205a12.001 12.001 0 0 0-2.196 6.92V468c0 6.627 5.373 12 12 12h129.355c6.627 0 12-5.373 12-12v-28.93c0-6.627-5.373-12-12-12h-61.146c.74-.993 1.5-2.039 2.274-3.137z"] };
  3374. var faSortAmountDown = { prefix: 'fas', iconName: 'sort-amount-down', icon: [512, 512, [], "f160", "M187.298 395.314l-79.984 80.002c-6.248 6.247-16.383 6.245-22.627 0L4.705 395.314C-5.365 385.244 1.807 368 16.019 368H64V48c0-8.837 7.163-16 16-16h32c8.837 0 16 7.163 16 16v320h47.984c14.241 0 21.363 17.264 11.314 27.314zM240 96h256c8.837 0 16-7.163 16-16V48c0-8.837-7.163-16-16-16H240c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16zm-16 112v-32c0-8.837 7.163-16 16-16h192c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16H240c-8.837 0-16-7.163-16-16zm0 256v-32c0-8.837 7.163-16 16-16h64c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16h-64c-8.837 0-16-7.163-16-16zm0-128v-32c0-8.837 7.163-16 16-16h128c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16H240c-8.837 0-16-7.163-16-16z"] };
  3375. var faSortAmountUp = { prefix: 'fas', iconName: 'sort-amount-up', icon: [512, 512, [], "f161", "M4.702 116.686l79.984-80.002c6.248-6.247 16.383-6.245 22.627 0l79.981 80.002c10.07 10.07 2.899 27.314-11.314 27.314H128v320c0 8.837-7.163 16-16 16H80c-8.837 0-16-7.163-16-16V144H16.016c-14.241 0-21.363-17.264-11.314-27.314zM240 96h256c8.837 0 16-7.163 16-16V48c0-8.837-7.163-16-16-16H240c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16zm-16 112v-32c0-8.837 7.163-16 16-16h192c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16H240c-8.837 0-16-7.163-16-16zm0 256v-32c0-8.837 7.163-16 16-16h64c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16h-64c-8.837 0-16-7.163-16-16zm0-128v-32c0-8.837 7.163-16 16-16h128c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16H240c-8.837 0-16-7.163-16-16z"] };
  3376. var faSortDown = { prefix: 'fas', iconName: 'sort-down', icon: [320, 512, [], "f0dd", "M41 288h238c21.4 0 32.1 25.9 17 41L177 448c-9.4 9.4-24.6 9.4-33.9 0L24 329c-15.1-15.1-4.4-41 17-41z"] };
  3377. var faSortNumericDown = { prefix: 'fas', iconName: 'sort-numeric-down', icon: [448, 512, [], "f162", "M308.811 113.787l-19.448-20.795c-4.522-4.836-4.274-12.421.556-16.95l43.443-40.741a11.999 11.999 0 0 1 8.209-3.247h31.591c6.627 0 12 5.373 12 12v127.07h25.66c6.627 0 12 5.373 12 12v28.93c0 6.627-5.373 12-12 12H301.649c-6.627 0-12-5.373-12-12v-28.93c0-6.627 5.373-12 12-12h25.414v-57.938c-7.254 6.58-14.211 4.921-18.252.601zm-30.57 238.569c0-32.653 23.865-67.356 68.094-67.356 38.253 0 79.424 28.861 79.424 92.228 0 51.276-32.237 105.772-91.983 105.772-17.836 0-30.546-3.557-38.548-6.781-5.79-2.333-8.789-8.746-6.922-14.703l9.237-29.48c2.035-6.496 9.049-9.983 15.467-7.716 13.029 4.602 27.878 5.275 38.103-4.138-38.742 5.072-72.872-25.36-72.872-67.826zm92.273 19.338c0-22.285-15.302-36.505-25.835-36.505-8.642 0-13.164 7.965-13.164 15.832 0 5.669 1.815 24.168 25.168 24.168 9.973 0 13.377-2.154 13.744-2.731.021-.046.087-.291.087-.764zM175.984 368H128V48c0-8.837-7.163-16-16-16H80c-8.837 0-16 7.163-16 16v320H16.019c-14.212 0-21.384 17.244-11.314 27.314l79.981 80.002c6.245 6.245 16.38 6.247 22.627 0l79.984-80.002c10.05-10.05 2.928-27.314-11.313-27.314z"] };
  3378. var faSortNumericUp = { prefix: 'fas', iconName: 'sort-numeric-up', icon: [448, 512, [], "f163", "M308.811 113.787l-19.448-20.795c-4.522-4.836-4.274-12.421.556-16.95l43.443-40.741a11.999 11.999 0 0 1 8.209-3.247h31.591c6.627 0 12 5.373 12 12v127.07h25.66c6.627 0 12 5.373 12 12v28.93c0 6.627-5.373 12-12 12H301.649c-6.627 0-12-5.373-12-12v-28.93c0-6.627 5.373-12 12-12h25.414v-57.938c-7.254 6.58-14.211 4.921-18.252.601zm-30.57 238.569c0-32.653 23.865-67.356 68.094-67.356 38.253 0 79.424 28.861 79.424 92.228 0 51.276-32.237 105.772-91.983 105.772-17.836 0-30.546-3.557-38.548-6.781-5.79-2.333-8.789-8.746-6.922-14.703l9.237-29.48c2.035-6.496 9.049-9.983 15.467-7.716 13.029 4.602 27.878 5.275 38.103-4.138-38.742 5.072-72.872-25.36-72.872-67.826zm92.273 19.338c0-22.285-15.302-36.505-25.835-36.505-8.642 0-13.164 7.965-13.164 15.832 0 5.669 1.815 24.168 25.168 24.168 9.973 0 13.377-2.154 13.744-2.731.021-.046.087-.291.087-.764zM16.016 144H64v320c0 8.837 7.163 16 16 16h32c8.837 0 16-7.163 16-16V144h47.981c14.212 0 21.384-17.244 11.314-27.314l-79.981-80.002c-6.245-6.245-16.38-6.247-22.627 0L4.702 116.686C-5.347 126.736 1.775 144 16.016 144z"] };
  3379. var faSortUp = { prefix: 'fas', iconName: 'sort-up', icon: [320, 512, [], "f0de", "M279 224H41c-21.4 0-32.1-25.9-17-41L143 64c9.4-9.4 24.6-9.4 33.9 0l119 119c15.2 15.1 4.5 41-16.9 41z"] };
  3380. var faSpa = { prefix: 'fas', iconName: 'spa', icon: [576, 512, [], "f5bb", "M568.25 192c-29.04.13-135.01 6.16-213.84 83-33.12 29.63-53.36 63.3-66.41 94.86-13.05-31.56-33.29-65.23-66.41-94.86-78.83-76.84-184.8-82.87-213.84-83-4.41-.02-7.79 3.4-7.75 7.82.23 27.92 7.14 126.14 88.77 199.3C172.79 480.94 256 480 288 480s115.19.95 199.23-80.88c81.64-73.17 88.54-171.38 88.77-199.3.04-4.42-3.34-7.84-7.75-7.82zM287.98 302.6c12.82-18.85 27.6-35.78 44.09-50.52 19.09-18.61 39.58-33.3 60.26-45.18-16.44-70.5-51.72-133.05-96.73-172.22-4.11-3.58-11.02-3.58-15.14 0-44.99 39.14-80.27 101.63-96.74 172.07 20.37 11.7 40.5 26.14 59.22 44.39a282.768 282.768 0 0 1 45.04 51.46z"] };
  3381. var faSpaceShuttle = { prefix: 'fas', iconName: 'space-shuttle', icon: [640, 512, [], "f197", "M592.604 208.244C559.735 192.836 515.777 184 472 184H186.327c-4.952-6.555-10.585-11.978-16.72-16H376C229.157 137.747 219.403 32 96.003 32H96v128H80V32c-26.51 0-48 28.654-48 64v64c-23.197 0-32 10.032-32 24v40c0 13.983 8.819 24 32 24v16c-23.197 0-32 10.032-32 24v40c0 13.983 8.819 24 32 24v64c0 35.346 21.49 64 48 64V352h16v128h.003c123.4 0 133.154-105.747 279.997-136H169.606c6.135-4.022 11.768-9.445 16.72-16H472c43.777 0 87.735-8.836 120.604-24.244C622.282 289.845 640 271.992 640 256s-17.718-33.845-47.396-47.756zM488 296a8 8 0 0 1-8-8v-64a8 8 0 0 1 8-8c31.909 0 31.942 80 0 80z"] };
  3382. var faSpider = { prefix: 'fas', iconName: 'spider', icon: [576, 512, [], "f717", "M151.17 167.35L177.1 176h4.67l5.22-26.12c.72-3.58 1.8-7.58 3.21-11.79l-20.29-40.58 23.8-71.39c2.79-8.38-1.73-17.44-10.12-20.24L168.42.82c-8.38-2.8-17.45 1.73-20.24 10.12l-25.89 77.68a32.04 32.04 0 0 0 1.73 24.43l27.15 54.3zm422.14 182.03l-52.75-79.12a32.002 32.002 0 0 0-26.62-14.25H416l68.99-24.36a32.03 32.03 0 0 0 16.51-12.61l53.6-80.41c4.9-7.35 2.91-17.29-4.44-22.19l-13.31-8.88c-7.35-4.9-17.29-2.91-22.19 4.44l-50.56 75.83L404.1 208H368l-10.37-51.85C355.44 145.18 340.26 96 288 96c-52.26 0-67.44 49.18-69.63 60.15L208 208h-36.1l-60.49-20.17L60.84 112c-4.9-7.35-14.83-9.34-22.19-4.44l-13.31 8.88c-7.35 4.9-9.34 14.83-4.44 22.19l53.6 80.41a32.03 32.03 0 0 0 16.51 12.61L160 256H82.06a32.02 32.02 0 0 0-26.63 14.25L2.69 349.38c-4.9 7.35-2.92 17.29 4.44 22.19l13.31 8.88c7.35 4.9 17.29 2.91 22.19-4.44l48-72h47.06l-60.83 97.33A31.988 31.988 0 0 0 72 418.3V496c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16v-73.11l74.08-118.53c-1.01 14.05-2.08 28.11-2.08 42.21C192 399.64 232.76 448 288 448s96-48.36 96-101.43c0-14.1-1.08-28.16-2.08-42.21L456 422.89V496c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16v-77.71c0-6-1.69-11.88-4.86-16.96L438.31 304h47.06l48 72c4.9 7.35 14.84 9.34 22.19 4.44l13.31-8.88c7.36-4.9 9.34-14.83 4.44-22.18zM406.09 97.51l-20.29 40.58c1.41 4.21 2.49 8.21 3.21 11.79l5.22 26.12h4.67l25.93-8.65 27.15-54.3a31.995 31.995 0 0 0 1.73-24.43l-25.89-77.68C425.03 2.56 415.96-1.98 407.58.82l-15.17 5.06c-8.38 2.8-12.91 11.86-10.12 20.24l23.8 71.39z"] };
  3383. var faSpinner = { prefix: 'fas', iconName: 'spinner', icon: [512, 512, [], "f110", "M304 48c0 26.51-21.49 48-48 48s-48-21.49-48-48 21.49-48 48-48 48 21.49 48 48zm-48 368c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm208-208c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zM96 256c0-26.51-21.49-48-48-48S0 229.49 0 256s21.49 48 48 48 48-21.49 48-48zm12.922 99.078c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.491-48-48-48zm294.156 0c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.49-48-48-48zM108.922 60.922c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.491-48-48-48z"] };
  3384. var faSplotch = { prefix: 'fas', iconName: 'splotch', icon: [512, 512, [], "f5bc", "M472.29 195.89l-67.06-22.95c-19.28-6.6-33.54-20.92-38.14-38.3L351.1 74.19c-11.58-43.77-76.57-57.13-109.98-22.62l-46.14 47.67c-13.26 13.71-33.54 20.93-54.2 19.31l-71.88-5.62c-52.05-4.07-86.93 44.88-59.03 82.83l38.54 52.42c11.08 15.07 12.82 33.86 4.64 50.24L24.62 355.4c-20.59 41.25 22.84 84.87 73.49 73.81l69.96-15.28c20.11-4.39 41.45 0 57.07 11.73l54.32 40.83c39.32 29.56 101.04 7.57 104.45-37.22l4.7-61.86c1.35-17.79 12.8-33.86 30.63-42.99l62-31.74c44.88-22.96 39.59-80.17-8.95-96.79z"] };
  3385. var faSprayCan = { prefix: 'fas', iconName: 'spray-can', icon: [512, 512, [], "f5bd", "M224 32c0-17.67-14.33-32-32-32h-64c-17.67 0-32 14.33-32 32v96h128V32zm256 96c-17.67 0-32 14.33-32 32s14.33 32 32 32 32-14.33 32-32-14.33-32-32-32zm-256 32H96c-53.02 0-96 42.98-96 96v224c0 17.67 14.33 32 32 32h256c17.67 0 32-14.33 32-32V256c0-53.02-42.98-96-96-96zm-64 256c-44.18 0-80-35.82-80-80s35.82-80 80-80 80 35.82 80 80-35.82 80-80 80zM480 96c17.67 0 32-14.33 32-32s-14.33-32-32-32-32 14.33-32 32 14.33 32 32 32zm-96 32c-17.67 0-32 14.33-32 32s14.33 32 32 32 32-14.33 32-32-14.33-32-32-32zm-96-96c-17.67 0-32 14.33-32 32s14.33 32 32 32 32-14.33 32-32-14.33-32-32-32zm96 0c-17.67 0-32 14.33-32 32s14.33 32 32 32 32-14.33 32-32-14.33-32-32-32zm96 192c-17.67 0-32 14.33-32 32s14.33 32 32 32 32-14.33 32-32-14.33-32-32-32z"] };
  3386. var faSquare = { prefix: 'fas', iconName: 'square', icon: [448, 512, [], "f0c8", "M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48z"] };
  3387. var faSquareFull = { prefix: 'fas', iconName: 'square-full', icon: [512, 512, [], "f45c", "M512 512H0V0h512v512z"] };
  3388. var faSquareRootAlt = { prefix: 'fas', iconName: 'square-root-alt', icon: [576, 512, [], "f698", "M571.31 251.31l-22.62-22.62c-6.25-6.25-16.38-6.25-22.63 0L480 274.75l-46.06-46.06c-6.25-6.25-16.38-6.25-22.63 0l-22.62 22.62c-6.25 6.25-6.25 16.38 0 22.63L434.75 320l-46.06 46.06c-6.25 6.25-6.25 16.38 0 22.63l22.62 22.62c6.25 6.25 16.38 6.25 22.63 0L480 365.25l46.06 46.06c6.25 6.25 16.38 6.25 22.63 0l22.62-22.62c6.25-6.25 6.25-16.38 0-22.63L525.25 320l46.06-46.06c6.25-6.25 6.25-16.38 0-22.63zM552 0H307.65c-14.54 0-27.26 9.8-30.95 23.87l-84.79 322.8-58.41-106.1A32.008 32.008 0 0 0 105.47 224H24c-13.25 0-24 10.74-24 24v48c0 13.25 10.75 24 24 24h43.62l88.88 163.73C168.99 503.5 186.3 512 204.94 512c17.27 0 44.44-9 54.28-41.48L357.03 96H552c13.25 0 24-10.75 24-24V24c0-13.26-10.75-24-24-24z"] };
  3389. var faStamp = { prefix: 'fas', iconName: 'stamp', icon: [512, 512, [], "f5bf", "M32 512h448v-64H32v64zm384-256h-66.56c-16.26 0-29.44-13.18-29.44-29.44v-9.46c0-27.37 8.88-53.41 21.46-77.72 9.11-17.61 12.9-38.39 9.05-60.42-6.77-38.78-38.47-70.7-77.26-77.45C212.62-9.04 160 37.33 160 96c0 14.16 3.12 27.54 8.69 39.58C182.02 164.43 192 194.7 192 226.49v.07c0 16.26-13.18 29.44-29.44 29.44H96c-53.02 0-96 42.98-96 96v32c0 17.67 14.33 32 32 32h448c17.67 0 32-14.33 32-32v-32c0-53.02-42.98-96-96-96z"] };
  3390. var faStar = { prefix: 'fas', iconName: 'star', icon: [576, 512, [], "f005", "M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z"] };
  3391. var faStarAndCrescent = { prefix: 'fas', iconName: 'star-and-crescent', icon: [512, 512, [], "f699", "M340.47 466.36c-1.45 0-6.89.46-9.18.46-116.25 0-210.82-94.57-210.82-210.82S215.04 45.18 331.29 45.18c2.32 0 7.7.46 9.18.46 7.13 0 13.33-5.03 14.75-12.07 1.46-7.25-2.55-14.49-9.47-17.09C316.58 5.54 286.39 0 256 0 114.84 0 0 114.84 0 256s114.84 256 256 256c30.23 0 60.28-5.49 89.32-16.32 5.96-2.02 10.28-7.64 10.28-14.26 0-8.09-6.39-15.06-15.13-15.06zm162.99-252.5l-76.38-11.1-34.16-69.21c-1.83-3.7-5.38-5.55-8.93-5.55s-7.1 1.85-8.93 5.55l-34.16 69.21-76.38 11.1c-8.17 1.18-11.43 11.22-5.52 16.99l55.27 53.87-13.05 76.07c-1.11 6.44 4.01 11.66 9.81 11.66 1.53 0 3.11-.36 4.64-1.17L384 335.37l68.31 35.91c1.53.8 3.11 1.17 4.64 1.17 5.8 0 10.92-5.23 9.81-11.66l-13.05-76.07 55.27-53.87c5.91-5.77 2.65-15.81-5.52-16.99z"] };
  3392. var faStarHalf = { prefix: 'fas', iconName: 'star-half', icon: [576, 512, [], "f089", "M288 0c-11.4 0-22.8 5.9-28.7 17.8L194 150.2 47.9 171.4c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.1 23 46 46.4 33.7L288 439.6V0z"] };
  3393. var faStarHalfAlt = { prefix: 'fas', iconName: 'star-half-alt', icon: [536, 512, [], "f5c0", "M508.55 171.51L362.18 150.2 296.77 17.81C290.89 5.98 279.42 0 267.95 0c-11.4 0-22.79 5.9-28.69 17.81l-65.43 132.38-146.38 21.29c-26.25 3.8-36.77 36.09-17.74 54.59l105.89 103-25.06 145.48C86.98 495.33 103.57 512 122.15 512c4.93 0 10-1.17 14.87-3.75l130.95-68.68 130.94 68.7c4.86 2.55 9.92 3.71 14.83 3.71 18.6 0 35.22-16.61 31.66-37.4l-25.03-145.49 105.91-102.98c19.04-18.5 8.52-50.8-17.73-54.6zm-121.74 123.2l-18.12 17.62 4.28 24.88 19.52 113.45-102.13-53.59-22.38-11.74.03-317.19 51.03 103.29 11.18 22.63 25.01 3.64 114.23 16.63-82.65 80.38z"] };
  3394. var faStarOfDavid = { prefix: 'fas', iconName: 'star-of-david', icon: [464, 512, [], "f69a", "M405.68 256l53.21-89.39C473.3 142.4 455.48 112 426.88 112H319.96l-55.95-93.98C256.86 6.01 244.43 0 232 0s-24.86 6.01-32.01 18.02L144.04 112H37.11c-28.6 0-46.42 30.4-32.01 54.61L58.32 256 5.1 345.39C-9.31 369.6 8.51 400 37.11 400h106.93l55.95 93.98C207.14 505.99 219.57 512 232 512s24.86-6.01 32.01-18.02L319.96 400h106.93c28.6 0 46.42-30.4 32.01-54.61L405.68 256zm-12.78-88l-19.8 33.26L353.3 168h39.6zm-52.39 88l-52.39 88H175.88l-52.39-88 52.38-88h112.25l52.39 88zM232 73.72L254.79 112h-45.57L232 73.72zM71.1 168h39.6l-19.8 33.26L71.1 168zm0 176l19.8-33.26L110.7 344H71.1zM232 438.28L209.21 400h45.57L232 438.28zM353.29 344l19.8-33.26L392.9 344h-39.61z"] };
  3395. var faStarOfLife = { prefix: 'fas', iconName: 'star-of-life', icon: [480, 512, [], "f621", "M471.99 334.43L336.06 256l135.93-78.43c7.66-4.42 10.28-14.2 5.86-21.86l-32.02-55.43c-4.42-7.65-14.21-10.28-21.87-5.86l-135.93 78.43V16c0-8.84-7.17-16-16.01-16h-64.04c-8.84 0-16.01 7.16-16.01 16v156.86L56.04 94.43c-7.66-4.42-17.45-1.79-21.87 5.86L2.15 155.71c-4.42 7.65-1.8 17.44 5.86 21.86L143.94 256 8.01 334.43c-7.66 4.42-10.28 14.21-5.86 21.86l32.02 55.43c4.42 7.65 14.21 10.27 21.87 5.86l135.93-78.43V496c0 8.84 7.17 16 16.01 16h64.04c8.84 0 16.01-7.16 16.01-16V339.14l135.93 78.43c7.66 4.42 17.45 1.8 21.87-5.86l32.02-55.43c4.42-7.65 1.8-17.43-5.86-21.85z"] };
  3396. var faStepBackward = { prefix: 'fas', iconName: 'step-backward', icon: [448, 512, [], "f048", "M64 468V44c0-6.6 5.4-12 12-12h48c6.6 0 12 5.4 12 12v176.4l195.5-181C352.1 22.3 384 36.6 384 64v384c0 27.4-31.9 41.7-52.5 24.6L136 292.7V468c0 6.6-5.4 12-12 12H76c-6.6 0-12-5.4-12-12z"] };
  3397. var faStepForward = { prefix: 'fas', iconName: 'step-forward', icon: [448, 512, [], "f051", "M384 44v424c0 6.6-5.4 12-12 12h-48c-6.6 0-12-5.4-12-12V291.6l-195.5 181C95.9 489.7 64 475.4 64 448V64c0-27.4 31.9-41.7 52.5-24.6L312 219.3V44c0-6.6 5.4-12 12-12h48c6.6 0 12 5.4 12 12z"] };
  3398. var faStethoscope = { prefix: 'fas', iconName: 'stethoscope', icon: [512, 512, [], "f0f1", "M447.1 112c-34.2.5-62.3 28.4-63 62.6-.5 24.3 12.5 45.6 32 56.8V344c0 57.3-50.2 104-112 104-60 0-109.2-44.1-111.9-99.2C265 333.8 320 269.2 320 192V36.6c0-11.4-8.1-21.3-19.3-23.5L237.8.5c-13-2.6-25.6 5.8-28.2 18.8L206.4 35c-2.6 13 5.8 25.6 18.8 28.2l30.7 6.1v121.4c0 52.9-42.2 96.7-95.1 97.2-53.4.5-96.9-42.7-96.9-96V69.4l30.7-6.1c13-2.6 21.4-15.2 18.8-28.2l-3.1-15.7C107.7 6.4 95.1-2 82.1.6L19.3 13C8.1 15.3 0 25.1 0 36.6V192c0 77.3 55.1 142 128.1 156.8C130.7 439.2 208.6 512 304 512c97 0 176-75.4 176-168V231.4c19.1-11.1 32-31.7 32-55.4 0-35.7-29.2-64.5-64.9-64zm.9 80c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16z"] };
  3399. var faStickyNote = { prefix: 'fas', iconName: 'sticky-note', icon: [448, 512, [], "f249", "M312 320h136V56c0-13.3-10.7-24-24-24H24C10.7 32 0 42.7 0 56v400c0 13.3 10.7 24 24 24h264V344c0-13.2 10.8-24 24-24zm129 55l-98 98c-4.5 4.5-10.6 7-17 7h-6V352h128v6.1c0 6.3-2.5 12.4-7 16.9z"] };
  3400. var faStop = { prefix: 'fas', iconName: 'stop', icon: [448, 512, [], "f04d", "M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48z"] };
  3401. var faStopCircle = { prefix: 'fas', iconName: 'stop-circle', icon: [512, 512, [], "f28d", "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm96 328c0 8.8-7.2 16-16 16H176c-8.8 0-16-7.2-16-16V176c0-8.8 7.2-16 16-16h160c8.8 0 16 7.2 16 16v160z"] };
  3402. var faStopwatch = { prefix: 'fas', iconName: 'stopwatch', icon: [448, 512, [], "f2f2", "M432 304c0 114.9-93.1 208-208 208S16 418.9 16 304c0-104 76.3-190.2 176-205.5V64h-28c-6.6 0-12-5.4-12-12V12c0-6.6 5.4-12 12-12h120c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-28v34.5c37.5 5.8 71.7 21.6 99.7 44.6l27.5-27.5c4.7-4.7 12.3-4.7 17 0l28.3 28.3c4.7 4.7 4.7 12.3 0 17l-29.4 29.4-.6.6C419.7 223.3 432 262.2 432 304zm-176 36V188.5c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12V340c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12z"] };
  3403. var faStore = { prefix: 'fas', iconName: 'store', icon: [616, 512, [], "f54e", "M602 118.6L537.1 15C531.3 5.7 521 0 510 0H106C95 0 84.7 5.7 78.9 15L14 118.6c-33.5 53.5-3.8 127.9 58.8 136.4 4.5.6 9.1.9 13.7.9 29.6 0 55.8-13 73.8-33.1 18 20.1 44.3 33.1 73.8 33.1 29.6 0 55.8-13 73.8-33.1 18 20.1 44.3 33.1 73.8 33.1 29.6 0 55.8-13 73.8-33.1 18.1 20.1 44.3 33.1 73.8 33.1 4.7 0 9.2-.3 13.7-.9 62.8-8.4 92.6-82.8 59-136.4zM529.5 288c-10 0-19.9-1.5-29.5-3.8V384H116v-99.8c-9.6 2.2-19.5 3.8-29.5 3.8-6 0-12.1-.4-18-1.2-5.6-.8-11.1-2.1-16.4-3.6V480c0 17.7 14.3 32 32 32h448c17.7 0 32-14.3 32-32V283.2c-5.4 1.6-10.8 2.9-16.4 3.6-6.1.8-12.1 1.2-18.2 1.2z"] };
  3404. var faStoreAlt = { prefix: 'fas', iconName: 'store-alt', icon: [640, 512, [], "f54f", "M320 384H128V224H64v256c0 17.7 14.3 32 32 32h256c17.7 0 32-14.3 32-32V224h-64v160zm314.6-241.8l-85.3-128c-6-8.9-16-14.2-26.7-14.2H117.4c-10.7 0-20.7 5.3-26.6 14.2l-85.3 128c-14.2 21.3 1 49.8 26.6 49.8H608c25.5 0 40.7-28.5 26.6-49.8zM512 496c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V224h-64v272z"] };
  3405. var faStream = { prefix: 'fas', iconName: 'stream', icon: [512, 512, [], "f550", "M16 128h416c8.84 0 16-7.16 16-16V48c0-8.84-7.16-16-16-16H16C7.16 32 0 39.16 0 48v64c0 8.84 7.16 16 16 16zm480 80H80c-8.84 0-16 7.16-16 16v64c0 8.84 7.16 16 16 16h416c8.84 0 16-7.16 16-16v-64c0-8.84-7.16-16-16-16zm-64 176H16c-8.84 0-16 7.16-16 16v64c0 8.84 7.16 16 16 16h416c8.84 0 16-7.16 16-16v-64c0-8.84-7.16-16-16-16z"] };
  3406. var faStreetView = { prefix: 'fas', iconName: 'street-view', icon: [512, 512, [], "f21d", "M367.9 329.76c-4.62 5.3-9.78 10.1-15.9 13.65v22.94c66.52 9.34 112 28.05 112 49.65 0 30.93-93.12 56-208 56S48 446.93 48 416c0-21.6 45.48-40.3 112-49.65v-22.94c-6.12-3.55-11.28-8.35-15.9-13.65C58.87 345.34 0 378.05 0 416c0 53.02 114.62 96 256 96s256-42.98 256-96c0-37.95-58.87-70.66-144.1-86.24zM256 128c35.35 0 64-28.65 64-64S291.35 0 256 0s-64 28.65-64 64 28.65 64 64 64zm-64 192v96c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-96c17.67 0 32-14.33 32-32v-96c0-26.51-21.49-48-48-48h-11.8c-11.07 5.03-23.26 8-36.2 8s-25.13-2.97-36.2-8H208c-26.51 0-48 21.49-48 48v96c0 17.67 14.33 32 32 32z"] };
  3407. var faStrikethrough = { prefix: 'fas', iconName: 'strikethrough', icon: [512, 512, [], "f0cc", "M496 288H16c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16h480c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16zm-214.666 16c27.258 12.937 46.524 28.683 46.524 56.243 0 33.108-28.977 53.676-75.621 53.676-32.325 0-76.874-12.08-76.874-44.271V368c0-8.837-7.164-16-16-16H113.75c-8.836 0-16 7.163-16 16v19.204c0 66.845 77.717 101.82 154.487 101.82 88.578 0 162.013-45.438 162.013-134.424 0-19.815-3.618-36.417-10.143-50.6H281.334zm-30.952-96c-32.422-13.505-56.836-28.946-56.836-59.683 0-33.92 30.901-47.406 64.962-47.406 42.647 0 64.962 16.593 64.962 32.985V136c0 8.837 7.164 16 16 16h45.613c8.836 0 16-7.163 16-16v-30.318c0-52.438-71.725-79.875-142.575-79.875-85.203 0-150.726 40.972-150.726 125.646 0 22.71 4.665 41.176 12.777 56.547h129.823z"] };
  3408. var faStroopwafel = { prefix: 'fas', iconName: 'stroopwafel', icon: [512, 512, [], "f551", "M188.12 210.74L142.86 256l45.25 45.25L233.37 256l-45.25-45.26zm113.13-22.62L256 142.86l-45.25 45.25L256 233.37l45.25-45.25zm-90.5 135.76L256 369.14l45.26-45.26L256 278.63l-45.25 45.25zM256 0C114.62 0 0 114.62 0 256s114.62 256 256 256 256-114.62 256-256S397.38 0 256 0zm186.68 295.6l-11.31 11.31c-3.12 3.12-8.19 3.12-11.31 0l-28.29-28.29-45.25 45.25 33.94 33.94 16.97-16.97c3.12-3.12 8.19-3.12 11.31 0l11.31 11.31c3.12 3.12 3.12 8.19 0 11.31l-16.97 16.97 16.97 16.97c3.12 3.12 3.12 8.19 0 11.31l-11.31 11.31c-3.12 3.12-8.19 3.12-11.31 0l-16.97-16.97-16.97 16.97c-3.12 3.12-8.19 3.12-11.31 0l-11.31-11.31c-3.12-3.12-3.12-8.19 0-11.31l16.97-16.97-33.94-33.94-45.26 45.26 28.29 28.29c3.12 3.12 3.12 8.19 0 11.31l-11.31 11.31c-3.12 3.12-8.19 3.12-11.31 0L256 414.39l-28.29 28.29c-3.12 3.12-8.19 3.12-11.31 0l-11.31-11.31c-3.12-3.12-3.12-8.19 0-11.31l28.29-28.29-45.25-45.26-33.94 33.94 16.97 16.97c3.12 3.12 3.12 8.19 0 11.31l-11.31 11.31c-3.12 3.12-8.19 3.12-11.31 0l-16.97-16.97-16.97 16.97c-3.12 3.12-8.19 3.12-11.31 0l-11.31-11.31c-3.12-3.12-3.12-8.19 0-11.31l16.97-16.97-16.97-16.97c-3.12-3.12-3.12-8.19 0-11.31l11.31-11.31c3.12-3.12 8.19-3.12 11.31 0l16.97 16.97 33.94-33.94-45.25-45.25-28.29 28.29c-3.12 3.12-8.19 3.12-11.31 0L69.32 295.6c-3.12-3.12-3.12-8.19 0-11.31L97.61 256l-28.29-28.29c-3.12-3.12-3.12-8.19 0-11.31l11.31-11.31c3.12-3.12 8.19-3.12 11.31 0l28.29 28.29 45.25-45.26-33.94-33.94-16.97 16.97c-3.12 3.12-8.19 3.12-11.31 0l-11.31-11.31c-3.12-3.12-3.12-8.19 0-11.31l16.97-16.97-16.97-16.97c-3.12-3.12-3.12-8.19 0-11.31l11.31-11.31c3.12-3.12 8.19-3.12 11.31 0l16.97 16.97 16.97-16.97c3.12-3.12 8.19-3.12 11.31 0l11.31 11.31c3.12 3.12 3.12 8.19 0 11.31l-16.97 16.97 33.94 33.94 45.26-45.25-28.29-28.29c-3.12-3.12-3.12-8.19 0-11.31l11.31-11.31c3.12-3.12 8.19-3.12 11.31 0L256 97.61l28.29-28.29c3.12-3.12 8.19-3.12 11.31 0l11.31 11.31c3.12 3.12 3.12 8.19 0 11.31l-28.29 28.29 45.26 45.25 33.94-33.94-16.97-16.97c-3.12-3.12-3.12-8.19 0-11.31l11.31-11.31c3.12-3.12 8.19-3.12 11.31 0l16.97 16.97 16.97-16.97c3.12-3.12 8.19-3.12 11.31 0l11.31 11.31c3.12 3.12 3.12 8.19 0 11.31l-16.97 16.97 16.97 16.97c3.12 3.12 3.12 8.19 0 11.31l-11.31 11.31c-3.12 3.12-8.19 3.12-11.31 0l-16.97-16.97-33.94 33.94 45.25 45.26 28.29-28.29c3.12-3.12 8.19-3.12 11.31 0l11.31 11.31c3.12 3.12 3.12 8.19 0 11.31L414.39 256l28.29 28.28a8.015 8.015 0 0 1 0 11.32zM278.63 256l45.26 45.25L369.14 256l-45.25-45.26L278.63 256z"] };
  3409. var faSubscript = { prefix: 'fas', iconName: 'subscript', icon: [512, 512, [], "f12c", "M395.198 416c3.461-10.526 18.796-21.28 36.265-32.425 16.625-10.605 35.467-22.626 50.341-38.862 17.458-19.054 25.944-40.175 25.944-64.567 0-60.562-50.702-88.146-97.81-88.146-42.491 0-76.378 22.016-94.432 50.447-4.654 7.329-2.592 17.036 4.623 21.865l30.328 20.296c7.032 4.706 16.46 3.084 21.63-3.614 8.022-10.394 18.818-18.225 31.667-18.225 19.387 0 26.266 12.901 26.266 23.948 0 36.159-119.437 57.023-119.437 160.024 0 6.654.561 13.014 1.415 19.331 1.076 7.964 7.834 13.928 15.87 13.928H496c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16H395.198zM272 256c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16h-62.399a16 16 0 0 1-13.541-7.478l-45.701-72.615c-2.297-3.352-4.422-6.969-6.195-10.209-1.65 3.244-3.647 6.937-5.874 10.582l-44.712 72.147a15.999 15.999 0 0 1-13.6 7.572H16c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16h26.325l56.552-82.709L46.111 96H16C7.163 96 0 88.837 0 80V48c0-8.837 7.163-16 16-16h68.806a16 16 0 0 1 13.645 7.644l39.882 65.126c2.072 3.523 4.053 7.171 5.727 10.37 1.777-3.244 3.92-6.954 6.237-10.537l40.332-65.035A15.999 15.999 0 0 1 204.226 32H272c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16h-27.979l-52.69 75.671L249.974 256H272z"] };
  3410. var faSubway = { prefix: 'fas', iconName: 'subway', icon: [448, 512, [], "f239", "M448 96v256c0 51.815-61.624 96-130.022 96l62.98 49.721C386.905 502.417 383.562 512 376 512H72c-7.578 0-10.892-9.594-4.957-14.279L130.022 448C61.82 448 0 403.954 0 352V96C0 42.981 64 0 128 0h192c65 0 128 42.981 128 96zM200 232V120c0-13.255-10.745-24-24-24H72c-13.255 0-24 10.745-24 24v112c0 13.255 10.745 24 24 24h104c13.255 0 24-10.745 24-24zm200 0V120c0-13.255-10.745-24-24-24H272c-13.255 0-24 10.745-24 24v112c0 13.255 10.745 24 24 24h104c13.255 0 24-10.745 24-24zm-48 56c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm-256 0c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48z"] };
  3411. var faSuitcase = { prefix: 'fas', iconName: 'suitcase', icon: [512, 512, [], "f0f2", "M128 480h256V80c0-26.5-21.5-48-48-48H176c-26.5 0-48 21.5-48 48v400zm64-384h128v32H192V96zm320 80v256c0 26.5-21.5 48-48 48h-48V128h48c26.5 0 48 21.5 48 48zM96 480H48c-26.5 0-48-21.5-48-48V176c0-26.5 21.5-48 48-48h48v352z"] };
  3412. var faSuitcaseRolling = { prefix: 'fas', iconName: 'suitcase-rolling', icon: [384, 512, [], "f5c1", "M336 160H48c-26.51 0-48 21.49-48 48v224c0 26.51 21.49 48 48 48h16v16c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-16h128v16c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-16h16c26.51 0 48-21.49 48-48V208c0-26.51-21.49-48-48-48zm-16 216c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h240c4.42 0 8 3.58 8 8v16zm0-96c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h240c4.42 0 8 3.58 8 8v16zM144 48h96v80h48V48c0-26.51-21.49-48-48-48h-96c-26.51 0-48 21.49-48 48v80h48V48z"] };
  3413. var faSun = { prefix: 'fas', iconName: 'sun', icon: [512, 512, [], "f185", "M274.835 12.646l25.516 62.393c4.213 10.301 16.671 14.349 26.134 8.492l57.316-35.479c15.49-9.588 34.808 4.447 30.475 22.142l-16.03 65.475c-2.647 10.81 5.053 21.408 16.152 22.231l67.224 4.987c18.167 1.348 25.546 24.057 11.641 35.826L441.81 242.26c-8.495 7.19-8.495 20.289 0 27.479l51.454 43.548c13.906 11.769 6.527 34.478-11.641 35.826l-67.224 4.987c-11.099.823-18.799 11.421-16.152 22.231l16.03 65.475c4.332 17.695-14.986 31.73-30.475 22.142l-57.316-35.479c-9.463-5.858-21.922-1.81-26.134 8.492l-25.516 62.393c-6.896 16.862-30.774 16.862-37.67 0l-25.516-62.393c-4.213-10.301-16.671-14.349-26.134-8.492l-57.317 35.479c-15.49 9.588-34.808-4.447-30.475-22.142l16.03-65.475c2.647-10.81-5.053-21.408-16.152-22.231l-67.224-4.987c-18.167-1.348-25.546-24.057-11.641-35.826L70.19 269.74c8.495-7.19 8.495-20.289 0-27.479l-51.454-43.548c-13.906-11.769-6.527-34.478 11.641-35.826l67.224-4.987c11.099-.823 18.799-11.421 16.152-22.231l-16.03-65.475c-4.332-17.695 14.986-31.73 30.475-22.142l57.317 35.479c9.463 5.858 21.921 1.81 26.134-8.492l25.516-62.393c6.896-16.861 30.774-16.861 37.67 0zM392 256c0-74.991-61.01-136-136-136-74.991 0-136 61.009-136 136s61.009 136 136 136c74.99 0 136-61.009 136-136zm-32 0c0 57.346-46.654 104-104 104s-104-46.654-104-104 46.654-104 104-104 104 46.654 104 104z"] };
  3414. var faSuperscript = { prefix: 'fas', iconName: 'superscript', icon: [512, 512, [], "f12b", "M395.198 256c3.461-10.526 18.796-21.28 36.265-32.425 16.625-10.605 35.467-22.626 50.341-38.862 17.458-19.054 25.944-40.175 25.944-64.567 0-60.562-50.702-88.146-97.81-88.146-42.491 0-76.378 22.016-94.432 50.447-4.654 7.329-2.592 17.036 4.623 21.865l30.328 20.296c7.032 4.706 16.46 3.084 21.63-3.614 8.022-10.394 18.818-18.225 31.667-18.225 19.387 0 26.266 12.901 26.266 23.948 0 36.159-119.437 57.023-119.437 160.024 0 6.654.561 13.014 1.415 19.331 1.076 7.964 7.834 13.928 15.87 13.928H496c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16H395.198zM272 416c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16h-62.399a16 16 0 0 1-13.541-7.478l-45.701-72.615c-2.297-3.352-4.422-6.969-6.195-10.209-1.65 3.244-3.647 6.937-5.874 10.582l-44.712 72.147a15.999 15.999 0 0 1-13.6 7.572H16c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16h26.325l56.552-82.709L46.111 256H16c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16h68.806a16 16 0 0 1 13.645 7.644l39.882 65.126c2.072 3.523 4.053 7.171 5.727 10.37 1.777-3.244 3.92-6.954 6.237-10.537l40.332-65.035a16 16 0 0 1 13.598-7.567H272c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16h-27.979l-52.69 75.671L249.974 416H272z"] };
  3415. var faSurprise = { prefix: 'fas', iconName: 'surprise', icon: [496, 512, [], "f5c2", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM136 208c0-17.7 14.3-32 32-32s32 14.3 32 32-14.3 32-32 32-32-14.3-32-32zm112 208c-35.3 0-64-28.7-64-64s28.7-64 64-64 64 28.7 64 64-28.7 64-64 64zm80-176c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"] };
  3416. var faSwatchbook = { prefix: 'fas', iconName: 'swatchbook', icon: [511, 512, [], "f5c3", "M479.06 320H372.29L186.15 506.51c-2.06 2.07-4.49 3.58-6.67 5.49h299.58c17.64 0 31.94-14.33 31.94-32V352c0-17.67-14.3-32-31.94-32zm-44.5-152.9l-90.33-90.51c-12.47-12.5-32.69-12.5-45.17 0l-75.5 75.65V416c0 2.96-.67 5.73-.87 8.64l211.87-212.28c12.47-12.5 12.47-32.77 0-45.26zM191.62 32c0-17.67-14.3-32-31.94-32H31.94C14.3 0 0 14.33 0 32v384c0 53.02 42.9 96 95.81 96s95.81-42.98 95.81-96V32zM95.81 440c-13.23 0-23.95-10.75-23.95-24 0-13.26 10.73-24 23.95-24s23.95 10.74 23.95 24c.01 13.25-10.72 24-23.95 24zm31.94-184H63.88v-64h63.88v64zm0-128H63.88V64h63.88v64z"] };
  3417. var faSwimmer = { prefix: 'fas', iconName: 'swimmer', icon: [640, 512, [], "f5c4", "M189.61 310.58c3.54 3.26 15.27 9.42 34.39 9.42s30.86-6.16 34.39-9.42c16.02-14.77 34.5-22.58 53.46-22.58h16.3c18.96 0 37.45 7.81 53.46 22.58 3.54 3.26 15.27 9.42 34.39 9.42s30.86-6.16 34.39-9.42c14.86-13.71 31.88-21.12 49.39-22.16l-112.84-80.6 18-12.86c3.64-2.58 8.28-3.52 12.62-2.61l100.35 21.53c25.91 5.53 51.44-10.97 57-36.88 5.55-25.92-10.95-51.44-36.88-57L437.68 98.47c-30.73-6.58-63.02.12-88.56 18.38l-80.02 57.17c-10.38 7.39-19.36 16.44-26.72 26.94L173.75 299c5.47 3.23 10.82 6.93 15.86 11.58zM624 352h-16c-26.04 0-45.8-8.42-56.09-17.9-8.9-8.21-19.66-14.1-31.77-14.1h-16.3c-12.11 0-22.87 5.89-31.77 14.1C461.8 343.58 442.04 352 416 352s-45.8-8.42-56.09-17.9c-8.9-8.21-19.66-14.1-31.77-14.1h-16.3c-12.11 0-22.87 5.89-31.77 14.1C269.8 343.58 250.04 352 224 352s-45.8-8.42-56.09-17.9c-8.9-8.21-19.66-14.1-31.77-14.1h-16.3c-12.11 0-22.87 5.89-31.77 14.1C77.8 343.58 58.04 352 32 352H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h16c38.62 0 72.72-12.19 96-31.84 23.28 19.66 57.38 31.84 96 31.84s72.72-12.19 96-31.84c23.28 19.66 57.38 31.84 96 31.84s72.72-12.19 96-31.84c23.28 19.66 57.38 31.84 96 31.84h16c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zm-512-96c44.18 0 80-35.82 80-80s-35.82-80-80-80-80 35.82-80 80 35.82 80 80 80z"] };
  3418. var faSwimmingPool = { prefix: 'fas', iconName: 'swimming-pool', icon: [640, 512, [], "f5c5", "M624 416h-16c-26.04 0-45.8-8.42-56.09-17.9-8.9-8.21-19.66-14.1-31.77-14.1h-16.3c-12.11 0-22.87 5.89-31.77 14.1C461.8 407.58 442.04 416 416 416s-45.8-8.42-56.09-17.9c-8.9-8.21-19.66-14.1-31.77-14.1h-16.3c-12.11 0-22.87 5.89-31.77 14.1C269.8 407.58 250.04 416 224 416s-45.8-8.42-56.09-17.9c-8.9-8.21-19.66-14.1-31.77-14.1h-16.3c-12.11 0-22.87 5.89-31.77 14.1C77.8 407.58 58.04 416 32 416H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h16c38.62 0 72.72-12.19 96-31.84 23.28 19.66 57.38 31.84 96 31.84s72.72-12.19 96-31.84c23.28 19.66 57.38 31.84 96 31.84s72.72-12.19 96-31.84c23.28 19.66 57.38 31.84 96 31.84h16c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zm-400-32v-96h192v96c19.12 0 30.86-6.16 34.39-9.42 9.17-8.46 19.2-14.34 29.61-18.07V128c0-17.64 14.36-32 32-32s32 14.36 32 32v16c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-16c0-52.94-43.06-96-96-96s-96 43.06-96 96v96H224v-96c0-17.64 14.36-32 32-32s32 14.36 32 32v16c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-16c0-52.94-43.06-96-96-96s-96 43.06-96 96v228.5c10.41 3.73 20.44 9.62 29.61 18.07 3.53 3.27 15.27 9.43 34.39 9.43z"] };
  3419. var faSynagogue = { prefix: 'fas', iconName: 'synagogue', icon: [640, 512, [], "f69b", "M70 196.51L6.67 268.29A26.643 26.643 0 0 0 0 285.93V512h128V239.58l-38-43.07c-5.31-6.01-14.69-6.01-20 0zm563.33 71.78L570 196.51c-5.31-6.02-14.69-6.02-20 0l-38 43.07V512h128V285.93c0-6.5-2.37-12.77-6.67-17.64zM339.99 7.01c-11.69-9.35-28.29-9.35-39.98 0l-128 102.4A32.005 32.005 0 0 0 160 134.4V512h96v-92.57c0-31.88 21.78-61.43 53.25-66.55C349.34 346.35 384 377.13 384 416v96h96V134.4c0-9.72-4.42-18.92-12.01-24.99l-128-102.4zm52.07 215.55c1.98 3.15-.29 7.24-4 7.24h-38.94L324 269.79c-1.85 2.95-6.15 2.95-8 0l-25.12-39.98h-38.94c-3.72 0-5.98-4.09-4-7.24l19.2-30.56-19.2-30.56c-1.98-3.15.29-7.24 4-7.24h38.94l25.12-40c1.85-2.95 6.15-2.95 8 0l25.12 39.98h38.95c3.71 0 5.98 4.09 4 7.24L372.87 192l19.19 30.56z"] };
  3420. var faSync = { prefix: 'fas', iconName: 'sync', icon: [512, 512, [], "f021", "M440.935 12.574l3.966 82.766C399.416 41.904 331.674 8 256 8 134.813 8 33.933 94.924 12.296 209.824 10.908 217.193 16.604 224 24.103 224h49.084c5.57 0 10.377-3.842 11.676-9.259C103.407 137.408 172.931 80 256 80c60.893 0 114.512 30.856 146.104 77.801l-101.53-4.865c-6.845-.328-12.574 5.133-12.574 11.986v47.411c0 6.627 5.373 12 12 12h200.333c6.627 0 12-5.373 12-12V12c0-6.627-5.373-12-12-12h-47.411c-6.853 0-12.315 5.729-11.987 12.574zM256 432c-60.895 0-114.517-30.858-146.109-77.805l101.868 4.871c6.845.327 12.573-5.134 12.573-11.986v-47.412c0-6.627-5.373-12-12-12H12c-6.627 0-12 5.373-12 12V500c0 6.627 5.373 12 12 12h47.385c6.863 0 12.328-5.745 11.985-12.599l-4.129-82.575C112.725 470.166 180.405 504 256 504c121.187 0 222.067-86.924 243.704-201.824 1.388-7.369-4.308-14.176-11.807-14.176h-49.084c-5.57 0-10.377 3.842-11.676 9.259C408.593 374.592 339.069 432 256 432z"] };
  3421. var faSyncAlt = { prefix: 'fas', iconName: 'sync-alt', icon: [512, 512, [], "f2f1", "M370.72 133.28C339.458 104.008 298.888 87.962 255.848 88c-77.458.068-144.328 53.178-162.791 126.85-1.344 5.363-6.122 9.15-11.651 9.15H24.103c-7.498 0-13.194-6.807-11.807-14.176C33.933 94.924 134.813 8 256 8c66.448 0 126.791 26.136 171.315 68.685L463.03 40.97C478.149 25.851 504 36.559 504 57.941V192c0 13.255-10.745 24-24 24H345.941c-21.382 0-32.09-25.851-16.971-40.971l41.75-41.749zM32 296h134.059c21.382 0 32.09 25.851 16.971 40.971l-41.75 41.75c31.262 29.273 71.835 45.319 114.876 45.28 77.418-.07 144.315-53.144 162.787-126.849 1.344-5.363 6.122-9.15 11.651-9.15h57.304c7.498 0 13.194 6.807 11.807 14.176C478.067 417.076 377.187 504 256 504c-66.448 0-126.791-26.136-171.315-68.685L48.97 471.03C33.851 486.149 8 475.441 8 454.059V320c0-13.255 10.745-24 24-24z"] };
  3422. var faSyringe = { prefix: 'fas', iconName: 'syringe', icon: [512, 512, [], "f48e", "M201.5 174.8l55.7 55.8c3.1 3.1 3.1 8.2 0 11.3l-11.3 11.3c-3.1 3.1-8.2 3.1-11.3 0l-55.7-55.8-45.3 45.3 55.8 55.8c3.1 3.1 3.1 8.2 0 11.3l-11.3 11.3c-3.1 3.1-8.2 3.1-11.3 0L111 265.2l-26.4 26.4c-17.3 17.3-25.6 41.1-23 65.4l7.1 63.6L2.3 487c-3.1 3.1-3.1 8.2 0 11.3l11.3 11.3c3.1 3.1 8.2 3.1 11.3 0l66.3-66.3 63.6 7.1c23.9 2.6 47.9-5.4 65.4-23l181.9-181.9-135.7-135.7-64.9 65zm308.2-93.3L430.5 2.3c-3.1-3.1-8.2-3.1-11.3 0l-11.3 11.3c-3.1 3.1-3.1 8.2 0 11.3l28.3 28.3-45.3 45.3-56.6-56.6-17-17c-3.1-3.1-8.2-3.1-11.3 0l-33.9 33.9c-3.1 3.1-3.1 8.2 0 11.3l17 17L424.8 223l17 17c3.1 3.1 8.2 3.1 11.3 0l33.9-34c3.1-3.1 3.1-8.2 0-11.3l-73.5-73.5 45.3-45.3 28.3 28.3c3.1 3.1 8.2 3.1 11.3 0l11.3-11.3c3.1-3.2 3.1-8.2 0-11.4z"] };
  3423. var faTable = { prefix: 'fas', iconName: 'table', icon: [512, 512, [], "f0ce", "M464 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zM224 416H64v-96h160v96zm0-160H64v-96h160v96zm224 160H288v-96h160v96zm0-160H288v-96h160v96z"] };
  3424. var faTableTennis = { prefix: 'fas', iconName: 'table-tennis', icon: [512, 512, [], "f45d", "M496.2 296.5C527.7 218.7 512 126.2 449 63.1 365.1-21 229-21 145.1 63.1l-56 56.1 211.5 211.5c46.1-62.1 131.5-77.4 195.6-34.2zm-217.9 79.7L57.9 155.9c-27.3 45.3-21.7 105 17.3 144.1l34.5 34.6L6.7 424c-8.6 7.5-9.1 20.7-1 28.8l53.4 53.5c8 8.1 21.2 7.6 28.7-1L177.1 402l35.7 35.7c19.7 19.7 44.6 30.5 70.3 33.3-7.1-17-11-35.6-11-55.1-.1-13.8 2.5-27 6.2-39.7zM416 320c-53 0-96 43-96 96s43 96 96 96 96-43 96-96-43-96-96-96z"] };
  3425. var faTablet = { prefix: 'fas', iconName: 'tablet', icon: [448, 512, [], "f10a", "M400 0H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zM224 480c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"] };
  3426. var faTabletAlt = { prefix: 'fas', iconName: 'tablet-alt', icon: [448, 512, [], "f3fa", "M400 0H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zM224 480c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm176-108c0 6.6-5.4 12-12 12H60c-6.6 0-12-5.4-12-12V60c0-6.6 5.4-12 12-12h328c6.6 0 12 5.4 12 12v312z"] };
  3427. var faTablets = { prefix: 'fas', iconName: 'tablets', icon: [640, 512, [], "f490", "M160 192C78.9 192 12.5 250.5.1 326.7c-.8 4.8 3.3 9.3 8.3 9.3h303.3c5 0 9.1-4.5 8.3-9.3C307.5 250.5 241.1 192 160 192zm151.6 176H8.4c-5 0-9.1 4.5-8.3 9.3C12.5 453.5 78.9 512 160 512s147.5-58.5 159.9-134.7c.8-4.8-3.3-9.3-8.3-9.3zM593.4 46.6c-56.5-56.5-144.2-61.4-206.9-16-4 2.9-4.3 8.9-.8 12.3L597 254.3c3.5 3.5 9.5 3.2 12.3-.8 45.5-62.7 40.6-150.4-15.9-206.9zM363 65.7c-3.5-3.5-9.5-3.2-12.3.8-45.4 62.7-40.5 150.4 15.9 206.9 56.5 56.5 144.2 61.4 206.9 15.9 4-2.9 4.3-8.9.8-12.3L363 65.7z"] };
  3428. var faTachometerAlt = { prefix: 'fas', iconName: 'tachometer-alt', icon: [576, 512, [], "f3fd", "M288 32C128.94 32 0 160.94 0 320c0 52.8 14.25 102.26 39.06 144.8 5.61 9.62 16.3 15.2 27.44 15.2h443c11.14 0 21.83-5.58 27.44-15.2C561.75 422.26 576 372.8 576 320c0-159.06-128.94-288-288-288zm0 64c14.71 0 26.58 10.13 30.32 23.65-1.11 2.26-2.64 4.23-3.45 6.67l-9.22 27.67c-5.13 3.49-10.97 6.01-17.64 6.01-17.67 0-32-14.33-32-32S270.33 96 288 96zM96 384c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm48-160c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm246.77-72.41l-61.33 184C343.13 347.33 352 364.54 352 384c0 11.72-3.38 22.55-8.88 32H232.88c-5.5-9.45-8.88-20.28-8.88-32 0-33.94 26.5-61.43 59.9-63.59l61.34-184.01c4.17-12.56 17.73-19.45 30.36-15.17 12.57 4.19 19.35 17.79 15.17 30.36zm14.66 57.2l15.52-46.55c3.47-1.29 7.13-2.23 11.05-2.23 17.67 0 32 14.33 32 32s-14.33 32-32 32c-11.38-.01-20.89-6.28-26.57-15.22zM480 384c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"] };
  3429. var faTag = { prefix: 'fas', iconName: 'tag', icon: [512, 512, [], "f02b", "M0 252.118V48C0 21.49 21.49 0 48 0h204.118a48 48 0 0 1 33.941 14.059l211.882 211.882c18.745 18.745 18.745 49.137 0 67.882L293.823 497.941c-18.745 18.745-49.137 18.745-67.882 0L14.059 286.059A48 48 0 0 1 0 252.118zM112 64c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48z"] };
  3430. var faTags = { prefix: 'fas', iconName: 'tags', icon: [640, 512, [], "f02c", "M497.941 225.941L286.059 14.059A48 48 0 0 0 252.118 0H48C21.49 0 0 21.49 0 48v204.118a48 48 0 0 0 14.059 33.941l211.882 211.882c18.744 18.745 49.136 18.746 67.882 0l204.118-204.118c18.745-18.745 18.745-49.137 0-67.882zM112 160c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48zm513.941 133.823L421.823 497.941c-18.745 18.745-49.137 18.745-67.882 0l-.36-.36L527.64 323.522c16.999-16.999 26.36-39.6 26.36-63.64s-9.362-46.641-26.36-63.64L331.397 0h48.721a48 48 0 0 1 33.941 14.059l211.882 211.882c18.745 18.745 18.745 49.137 0 67.882z"] };
  3431. var faTape = { prefix: 'fas', iconName: 'tape', icon: [640, 512, [], "f4db", "M224 192c-35.3 0-64 28.7-64 64s28.7 64 64 64 64-28.7 64-64-28.7-64-64-64zm400 224H380.6c41.5-40.7 67.4-97.3 67.4-160 0-123.7-100.3-224-224-224S0 132.3 0 256s100.3 224 224 224h400c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm-400-64c-53 0-96-43-96-96s43-96 96-96 96 43 96 96-43 96-96 96z"] };
  3432. var faTasks = { prefix: 'fas', iconName: 'tasks', icon: [512, 512, [], "f0ae", "M208 132h288c8.8 0 16-7.2 16-16V76c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16zm0 160h288c8.8 0 16-7.2 16-16v-40c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16zm0 160h288c8.8 0 16-7.2 16-16v-40c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16zM64 368c-26.5 0-48.6 21.5-48.6 48s22.1 48 48.6 48 48-21.5 48-48-21.5-48-48-48zm92.5-299l-72.2 72.2-15.6 15.6c-4.7 4.7-12.9 4.7-17.6 0L3.5 109.4c-4.7-4.7-4.7-12.3 0-17l15.7-15.7c4.7-4.7 12.3-4.7 17 0l22.7 22.1 63.7-63.3c4.7-4.7 12.3-4.7 17 0l17 16.5c4.6 4.7 4.6 12.3-.1 17zm0 159.6l-72.2 72.2-15.7 15.7c-4.7 4.7-12.9 4.7-17.6 0L3.5 269c-4.7-4.7-4.7-12.3 0-17l15.7-15.7c4.7-4.7 12.3-4.7 17 0l22.7 22.1 63.7-63.7c4.7-4.7 12.3-4.7 17 0l17 17c4.6 4.6 4.6 12.2-.1 16.9z"] };
  3433. var faTaxi = { prefix: 'fas', iconName: 'taxi', icon: [512, 512, [], "f1ba", "M462 241.64l-22-84.84c-9.6-35.2-41.6-60.8-76.8-60.8H352V64c0-17.67-14.33-32-32-32H192c-17.67 0-32 14.33-32 32v32h-11.2c-35.2 0-67.2 25.6-76.8 60.8l-22 84.84C21.41 248.04 0 273.47 0 304v48c0 23.63 12.95 44.04 32 55.12V448c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-32h256v32c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-40.88c19.05-11.09 32-31.5 32-55.12v-48c0-30.53-21.41-55.96-50-62.36zM96 352c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm20.55-112l17.2-66.36c2.23-8.16 9.59-13.64 15.06-13.64h214.4c5.47 0 12.83 5.48 14.85 12.86L395.45 240h-278.9zM416 352c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"] };
  3434. var faTeeth = { prefix: 'fas', iconName: 'teeth', icon: [640, 512, [], "f62e", "M544 0H96C42.98 0 0 42.98 0 96v320c0 53.02 42.98 96 96 96h448c53.02 0 96-42.98 96-96V96c0-53.02-42.98-96-96-96zM160 368c0 26.51-21.49 48-48 48s-48-21.49-48-48v-64c0-8.84 7.16-16 16-16h64c8.84 0 16 7.16 16 16v64zm0-128c0 8.84-7.16 16-16 16H80c-8.84 0-16-7.16-16-16v-64c0-26.51 21.49-48 48-48s48 21.49 48 48v64zm144 120c0 30.93-25.07 56-56 56s-56-25.07-56-56v-56c0-8.84 7.16-16 16-16h80c8.84 0 16 7.16 16 16v56zm0-120c0 8.84-7.16 16-16 16h-80c-8.84 0-16-7.16-16-16v-88c0-30.93 25.07-56 56-56s56 25.07 56 56v88zm144 120c0 30.93-25.07 56-56 56s-56-25.07-56-56v-56c0-8.84 7.16-16 16-16h80c8.84 0 16 7.16 16 16v56zm0-120c0 8.84-7.16 16-16 16h-80c-8.84 0-16-7.16-16-16v-88c0-30.93 25.07-56 56-56s56 25.07 56 56v88zm128 128c0 26.51-21.49 48-48 48s-48-21.49-48-48v-64c0-8.84 7.16-16 16-16h64c8.84 0 16 7.16 16 16v64zm0-128c0 8.84-7.16 16-16 16h-64c-8.84 0-16-7.16-16-16v-64c0-26.51 21.49-48 48-48s48 21.49 48 48v64z"] };
  3435. var faTeethOpen = { prefix: 'fas', iconName: 'teeth-open', icon: [640, 512, [], "f62f", "M544 0H96C42.98 0 0 42.98 0 96v64c0 35.35 28.66 64 64 64h512c35.34 0 64-28.65 64-64V96c0-53.02-42.98-96-96-96zM160 176c0 8.84-7.16 16-16 16H80c-8.84 0-16-7.16-16-16v-32c0-26.51 21.49-48 48-48s48 21.49 48 48v32zm144 0c0 8.84-7.16 16-16 16h-80c-8.84 0-16-7.16-16-16v-56c0-30.93 25.07-56 56-56s56 25.07 56 56v56zm144 0c0 8.84-7.16 16-16 16h-80c-8.84 0-16-7.16-16-16v-56c0-30.93 25.07-56 56-56s56 25.07 56 56v56zm128 0c0 8.84-7.16 16-16 16h-64c-8.84 0-16-7.16-16-16v-32c0-26.51 21.49-48 48-48s48 21.49 48 48v32zm0 144H64c-35.34 0-64 28.65-64 64v32c0 53.02 42.98 96 96 96h448c53.02 0 96-42.98 96-96v-32c0-35.35-28.66-64-64-64zm-416 80c0 26.51-21.49 48-48 48s-48-21.49-48-48v-32c0-8.84 7.16-16 16-16h64c8.84 0 16 7.16 16 16v32zm144-8c0 30.93-25.07 56-56 56s-56-25.07-56-56v-24c0-8.84 7.16-16 16-16h80c8.84 0 16 7.16 16 16v24zm144 0c0 30.93-25.07 56-56 56s-56-25.07-56-56v-24c0-8.84 7.16-16 16-16h80c8.84 0 16 7.16 16 16v24zm128 8c0 26.51-21.49 48-48 48s-48-21.49-48-48v-32c0-8.84 7.16-16 16-16h64c8.84 0 16 7.16 16 16v32z"] };
  3436. var faTerminal = { prefix: 'fas', iconName: 'terminal', icon: [640, 512, [], "f120", "M257.981 272.971L63.638 467.314c-9.373 9.373-24.569 9.373-33.941 0L7.029 444.647c-9.357-9.357-9.375-24.522-.04-33.901L161.011 256 6.99 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L257.981 239.03c9.373 9.372 9.373 24.568 0 33.941zM640 456v-32c0-13.255-10.745-24-24-24H312c-13.255 0-24 10.745-24 24v32c0 13.255 10.745 24 24 24h304c13.255 0 24-10.745 24-24z"] };
  3437. var faTextHeight = { prefix: 'fas', iconName: 'text-height', icon: [576, 512, [], "f034", "M16 32h288c8.837 0 16 7.163 16 16v96c0 8.837-7.163 16-16 16h-35.496c-8.837 0-16-7.163-16-16V96h-54.761v320H232c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16H88c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16h34.257V96H67.496v48c0 8.837-7.163 16-16 16H16c-8.837 0-16-7.163-16-16V48c0-8.837 7.163-16 16-16zm475.308 4.685l79.995 80.001C581.309 126.693 574.297 144 559.99 144H512v224h48c15.639 0 20.635 17.991 11.313 27.314l-79.995 80.001c-6.247 6.247-16.381 6.245-22.626 0l-79.995-80.001C378.691 385.307 385.703 368 400.01 368H448V144h-48c-15.639 0-20.635-17.991-11.313-27.314l79.995-80.001c6.247-6.248 16.381-6.245 22.626 0z"] };
  3438. var faTextWidth = { prefix: 'fas', iconName: 'text-width', icon: [448, 512, [], "f035", "M16 32h416c8.837 0 16 7.163 16 16v96c0 8.837-7.163 16-16 16h-35.496c-8.837 0-16-7.163-16-16V96H261.743v128H296c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16H152c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16h34.257V96H67.496v48c0 8.837-7.163 16-16 16H16c-8.837 0-16-7.163-16-16V48c0-8.837 7.163-16 16-16zm427.315 340.682l-80.001-79.995C353.991 283.365 336 288.362 336 304v48H112v-47.99c0-14.307-17.307-21.319-27.314-11.313L4.685 372.692c-6.245 6.245-6.247 16.379 0 22.626l80.001 79.995C94.009 484.635 112 479.638 112 464v-48h224v47.99c0 14.307 17.307 21.319 27.314 11.313l80.001-79.995c6.245-6.245 6.248-16.379 0-22.626z"] };
  3439. var faTh = { prefix: 'fas', iconName: 'th', icon: [512, 512, [], "f00a", "M149.333 56v80c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V56c0-13.255 10.745-24 24-24h101.333c13.255 0 24 10.745 24 24zm181.334 240v-80c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24h101.333c13.256 0 24.001-10.745 24.001-24zm32-240v80c0 13.255 10.745 24 24 24H488c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24H386.667c-13.255 0-24 10.745-24 24zm-32 80V56c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24h101.333c13.256 0 24.001-10.745 24.001-24zm-205.334 56H24c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24zM0 376v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H24c-13.255 0-24 10.745-24 24zm386.667-56H488c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H386.667c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24zm0 160H488c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H386.667c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24zM181.333 376v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24z"] };
  3440. var faThLarge = { prefix: 'fas', iconName: 'th-large', icon: [512, 512, [], "f009", "M296 32h192c13.255 0 24 10.745 24 24v160c0 13.255-10.745 24-24 24H296c-13.255 0-24-10.745-24-24V56c0-13.255 10.745-24 24-24zm-80 0H24C10.745 32 0 42.745 0 56v160c0 13.255 10.745 24 24 24h192c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24zM0 296v160c0 13.255 10.745 24 24 24h192c13.255 0 24-10.745 24-24V296c0-13.255-10.745-24-24-24H24c-13.255 0-24 10.745-24 24zm296 184h192c13.255 0 24-10.745 24-24V296c0-13.255-10.745-24-24-24H296c-13.255 0-24 10.745-24 24v160c0 13.255 10.745 24 24 24z"] };
  3441. var faThList = { prefix: 'fas', iconName: 'th-list', icon: [512, 512, [], "f00b", "M149.333 216v80c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24v-80c0-13.255 10.745-24 24-24h101.333c13.255 0 24 10.745 24 24zM0 376v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H24c-13.255 0-24 10.745-24 24zM125.333 32H24C10.745 32 0 42.745 0 56v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24zm80 448H488c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24zm-24-424v80c0 13.255 10.745 24 24 24H488c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24zm24 264H488c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24z"] };
  3442. var faTheaterMasks = { prefix: 'fas', iconName: 'theater-masks', icon: [640, 512, [], "f630", "M206.86 245.15c-35.88 10.45-59.95 41.2-57.53 74.1 11.4-12.72 28.81-23.7 49.9-30.92l7.63-43.18zM95.81 295L64.08 115.49c-.29-1.62.28-2.62.24-2.65 57.76-32.06 123.12-49.01 189.01-49.01 1.61 0 3.23.17 4.85.19 13.95-13.47 31.73-22.83 51.59-26 18.89-3.02 38.05-4.55 57.18-5.32-9.99-13.95-24.48-24.23-41.77-27C301.27 1.89 277.24 0 253.32 0 176.66 0 101.02 19.42 33.2 57.06 9.03 70.48-3.92 98.48 1.05 126.58l31.73 179.51c14.23 80.52 136.33 142.08 204.45 142.08 3.59 0 6.75-.46 10.01-.8-13.52-17.08-28.94-40.48-39.5-67.58-47.61-12.98-106.06-51.62-111.93-84.79zm97.55-137.46c-.73-4.12-2.23-7.87-4.07-11.4-8.25 8.91-20.67 15.75-35.32 18.32-14.65 2.58-28.67.4-39.48-5.17-.52 3.94-.64 7.98.09 12.1 3.84 21.7 24.58 36.19 46.34 32.37 21.75-3.82 36.28-24.52 32.44-46.22zM606.8 120.9c-88.98-49.38-191.43-67.41-291.98-51.35-27.31 4.36-49.08 26.26-54.04 54.36l-31.73 179.51c-15.39 87.05 95.28 196.27 158.31 207.35 63.03 11.09 204.47-53.79 219.86-140.84l31.73-179.51c4.97-28.11-7.98-56.11-32.15-69.52zm-273.24 96.8c3.84-21.7 24.58-36.19 46.34-32.36 21.76 3.83 36.28 24.52 32.45 46.22-.73 4.12-2.23 7.87-4.07 11.4-8.25-8.91-20.67-15.75-35.32-18.32-14.65-2.58-28.67-.4-39.48 5.17-.53-3.95-.65-7.99.08-12.11zm70.47 198.76c-55.68-9.79-93.52-59.27-89.04-112.9 20.6 25.54 56.21 46.17 99.49 53.78 43.28 7.61 83.82.37 111.93-16.6-14.18 51.94-66.71 85.51-122.38 75.72zm130.3-151.34c-8.25-8.91-20.68-15.75-35.33-18.32-14.65-2.58-28.67-.4-39.48 5.17-.52-3.94-.64-7.98.09-12.1 3.84-21.7 24.58-36.19 46.34-32.37 21.75 3.83 36.28 24.52 32.45 46.22-.73 4.13-2.23 7.88-4.07 11.4z"] };
  3443. var faThermometer = { prefix: 'fas', iconName: 'thermometer', icon: [512, 512, [], "f491", "M476.8 20.4c-37.5-30.7-95.5-26.3-131.9 10.2l-45.7 46 50.5 50.5c3.1 3.1 3.1 8.2 0 11.3l-11.3 11.3c-3.1 3.1-8.2 3.1-11.3 0l-50.4-50.5-45.1 45.4 50.3 50.4c3.1 3.1 3.1 8.2 0 11.3l-11.3 11.3c-3.1 3.1-8.2 3.1-11.3 0L209 167.4l-45.1 45.4L214 263c3.1 3.1 3.1 8.2 0 11.3l-11.3 11.3c-3.1 3.1-8.2 3.1-11.3 0l-50.1-50.2L96 281.1V382L7 471c-9.4 9.4-9.4 24.6 0 33.9 9.4 9.4 24.6 9.4 33.9 0l89-89h99.9L484 162.6c34.9-34.9 42.2-101.5-7.2-142.2z"] };
  3444. var faThermometerEmpty = { prefix: 'fas', iconName: 'thermometer-empty', icon: [256, 512, [], "f2cb", "M192 384c0 35.346-28.654 64-64 64s-64-28.654-64-64c0-35.346 28.654-64 64-64s64 28.654 64 64zm32-84.653c19.912 22.563 32 52.194 32 84.653 0 70.696-57.303 128-128 128-.299 0-.609-.001-.909-.003C56.789 511.509-.357 453.636.002 383.333.166 351.135 12.225 321.755 32 299.347V96c0-53.019 42.981-96 96-96s96 42.981 96 96v203.347zM208 384c0-34.339-19.37-52.19-32-66.502V96c0-26.467-21.533-48-48-48S80 69.533 80 96v221.498c-12.732 14.428-31.825 32.1-31.999 66.08-.224 43.876 35.563 80.116 79.423 80.42L128 464c44.112 0 80-35.888 80-80z"] };
  3445. var faThermometerFull = { prefix: 'fas', iconName: 'thermometer-full', icon: [256, 512, [], "f2c7", "M224 96c0-53.019-42.981-96-96-96S32 42.981 32 96v203.347C12.225 321.756.166 351.136.002 383.333c-.359 70.303 56.787 128.176 127.089 128.664.299.002.61.003.909.003 70.698 0 128-57.304 128-128 0-32.459-12.088-62.09-32-84.653V96zm-96 368l-.576-.002c-43.86-.304-79.647-36.544-79.423-80.42.173-33.98 19.266-51.652 31.999-66.08V96c0-26.467 21.533-48 48-48s48 21.533 48 48v221.498c12.63 14.312 32 32.164 32 66.502 0 44.112-35.888 80-80 80zm64-80c0 35.346-28.654 64-64 64s-64-28.654-64-64c0-23.685 12.876-44.349 32-55.417V96c0-17.673 14.327-32 32-32s32 14.327 32 32v232.583c19.124 11.068 32 31.732 32 55.417z"] };
  3446. var faThermometerHalf = { prefix: 'fas', iconName: 'thermometer-half', icon: [256, 512, [], "f2c9", "M192 384c0 35.346-28.654 64-64 64s-64-28.654-64-64c0-23.685 12.876-44.349 32-55.417V224c0-17.673 14.327-32 32-32s32 14.327 32 32v104.583c19.124 11.068 32 31.732 32 55.417zm32-84.653c19.912 22.563 32 52.194 32 84.653 0 70.696-57.303 128-128 128-.299 0-.609-.001-.909-.003C56.789 511.509-.357 453.636.002 383.333.166 351.135 12.225 321.755 32 299.347V96c0-53.019 42.981-96 96-96s96 42.981 96 96v203.347zM208 384c0-34.339-19.37-52.19-32-66.502V96c0-26.467-21.533-48-48-48S80 69.533 80 96v221.498c-12.732 14.428-31.825 32.1-31.999 66.08-.224 43.876 35.563 80.116 79.423 80.42L128 464c44.112 0 80-35.888 80-80z"] };
  3447. var faThermometerQuarter = { prefix: 'fas', iconName: 'thermometer-quarter', icon: [256, 512, [], "f2ca", "M192 384c0 35.346-28.654 64-64 64s-64-28.654-64-64c0-23.685 12.876-44.349 32-55.417V288c0-17.673 14.327-32 32-32s32 14.327 32 32v40.583c19.124 11.068 32 31.732 32 55.417zm32-84.653c19.912 22.563 32 52.194 32 84.653 0 70.696-57.303 128-128 128-.299 0-.609-.001-.909-.003C56.789 511.509-.357 453.636.002 383.333.166 351.135 12.225 321.755 32 299.347V96c0-53.019 42.981-96 96-96s96 42.981 96 96v203.347zM208 384c0-34.339-19.37-52.19-32-66.502V96c0-26.467-21.533-48-48-48S80 69.533 80 96v221.498c-12.732 14.428-31.825 32.1-31.999 66.08-.224 43.876 35.563 80.116 79.423 80.42L128 464c44.112 0 80-35.888 80-80z"] };
  3448. var faThermometerThreeQuarters = { prefix: 'fas', iconName: 'thermometer-three-quarters', icon: [256, 512, [], "f2c8", "M192 384c0 35.346-28.654 64-64 64-35.346 0-64-28.654-64-64 0-23.685 12.876-44.349 32-55.417V160c0-17.673 14.327-32 32-32s32 14.327 32 32v168.583c19.124 11.068 32 31.732 32 55.417zm32-84.653c19.912 22.563 32 52.194 32 84.653 0 70.696-57.303 128-128 128-.299 0-.609-.001-.909-.003C56.789 511.509-.357 453.636.002 383.333.166 351.135 12.225 321.755 32 299.347V96c0-53.019 42.981-96 96-96s96 42.981 96 96v203.347zM208 384c0-34.339-19.37-52.19-32-66.502V96c0-26.467-21.533-48-48-48S80 69.533 80 96v221.498c-12.732 14.428-31.825 32.1-31.999 66.08-.224 43.876 35.563 80.116 79.423 80.42L128 464c44.112 0 80-35.888 80-80z"] };
  3449. var faThumbsDown = { prefix: 'fas', iconName: 'thumbs-down', icon: [512, 512, [], "f165", "M0 56v240c0 13.255 10.745 24 24 24h80c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24H24C10.745 32 0 42.745 0 56zm40 200c0-13.255 10.745-24 24-24s24 10.745 24 24-10.745 24-24 24-24-10.745-24-24zm272 256c-20.183 0-29.485-39.293-33.931-57.795-5.206-21.666-10.589-44.07-25.393-58.902-32.469-32.524-49.503-73.967-89.117-113.111a11.98 11.98 0 0 1-3.558-8.521V59.901c0-6.541 5.243-11.878 11.783-11.998 15.831-.29 36.694-9.079 52.651-16.178C256.189 17.598 295.709.017 343.995 0h2.844c42.777 0 93.363.413 113.774 29.737 8.392 12.057 10.446 27.034 6.148 44.632 16.312 17.053 25.063 48.863 16.382 74.757 17.544 23.432 19.143 56.132 9.308 79.469l.11.11c11.893 11.949 19.523 31.259 19.439 49.197-.156 30.352-26.157 58.098-59.553 58.098H350.723C358.03 364.34 384 388.132 384 430.548 384 504 336 512 312 512z"] };
  3450. var faThumbsUp = { prefix: 'fas', iconName: 'thumbs-up', icon: [512, 512, [], "f164", "M104 224H24c-13.255 0-24 10.745-24 24v240c0 13.255 10.745 24 24 24h80c13.255 0 24-10.745 24-24V248c0-13.255-10.745-24-24-24zM64 472c-13.255 0-24-10.745-24-24s10.745-24 24-24 24 10.745 24 24-10.745 24-24 24zM384 81.452c0 42.416-25.97 66.208-33.277 94.548h101.723c33.397 0 59.397 27.746 59.553 58.098.084 17.938-7.546 37.249-19.439 49.197l-.11.11c9.836 23.337 8.237 56.037-9.308 79.469 8.681 25.895-.069 57.704-16.382 74.757 4.298 17.598 2.244 32.575-6.148 44.632C440.202 511.587 389.616 512 346.839 512l-2.845-.001c-48.287-.017-87.806-17.598-119.56-31.725-15.957-7.099-36.821-15.887-52.651-16.178-6.54-.12-11.783-5.457-11.783-11.998v-213.77c0-3.2 1.282-6.271 3.558-8.521 39.614-39.144 56.648-80.587 89.117-113.111 14.804-14.832 20.188-37.236 25.393-58.902C282.515 39.293 291.817 0 312 0c24 0 72 8 72 81.452z"] };
  3451. var faThumbtack = { prefix: 'fas', iconName: 'thumbtack', icon: [384, 512, [], "f08d", "M298.028 214.267L285.793 96H328c13.255 0 24-10.745 24-24V24c0-13.255-10.745-24-24-24H56C42.745 0 32 10.745 32 24v48c0 13.255 10.745 24 24 24h42.207L85.972 214.267C37.465 236.82 0 277.261 0 328c0 13.255 10.745 24 24 24h136v104.007c0 1.242.289 2.467.845 3.578l24 48c2.941 5.882 11.364 5.893 14.311 0l24-48a8.008 8.008 0 0 0 .845-3.578V352h136c13.255 0 24-10.745 24-24-.001-51.183-37.983-91.42-85.973-113.733z"] };
  3452. var faTicketAlt = { prefix: 'fas', iconName: 'ticket-alt', icon: [576, 512, [], "f3ff", "M128 160h320v192H128V160zm400 96c0 26.51 21.49 48 48 48v96c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48v-96c26.51 0 48-21.49 48-48s-21.49-48-48-48v-96c0-26.51 21.49-48 48-48h480c26.51 0 48 21.49 48 48v96c-26.51 0-48 21.49-48 48zm-48-104c0-13.255-10.745-24-24-24H120c-13.255 0-24 10.745-24 24v208c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24V152z"] };
  3453. var faTimes = { prefix: 'fas', iconName: 'times', icon: [352, 512, [], "f00d", "M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"] };
  3454. var faTimesCircle = { prefix: 'fas', iconName: 'times-circle', icon: [512, 512, [], "f057", "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm121.6 313.1c4.7 4.7 4.7 12.3 0 17L338 377.6c-4.7 4.7-12.3 4.7-17 0L256 312l-65.1 65.6c-4.7 4.7-12.3 4.7-17 0L134.4 338c-4.7-4.7-4.7-12.3 0-17l65.6-65-65.6-65.1c-4.7-4.7-4.7-12.3 0-17l39.6-39.6c4.7-4.7 12.3-4.7 17 0l65 65.7 65.1-65.6c4.7-4.7 12.3-4.7 17 0l39.6 39.6c4.7 4.7 4.7 12.3 0 17L312 256l65.6 65.1z"] };
  3455. var faTint = { prefix: 'fas', iconName: 'tint', icon: [352, 512, [], "f043", "M205.22 22.09c-7.94-28.78-49.44-30.12-58.44 0C100.01 179.85 0 222.72 0 333.91 0 432.35 78.72 512 176 512s176-79.65 176-178.09c0-111.75-99.79-153.34-146.78-311.82zM176 448c-61.75 0-112-50.25-112-112 0-8.84 7.16-16 16-16s16 7.16 16 16c0 44.11 35.89 80 80 80 8.84 0 16 7.16 16 16s-7.16 16-16 16z"] };
  3456. var faTintSlash = { prefix: 'fas', iconName: 'tint-slash', icon: [640, 512, [], "f5c7", "M633.82 458.1L494.97 350.78c.52-5.57 1.03-11.16 1.03-16.87 0-111.76-99.79-153.34-146.78-311.82-7.94-28.78-49.44-30.12-58.44 0-15.52 52.34-36.87 91.96-58.49 125.68L45.47 3.37C38.49-2.05 28.43-.8 23.01 6.18L3.37 31.45C-2.05 38.42-.8 48.47 6.18 53.9l588.36 454.73c6.98 5.43 17.03 4.17 22.46-2.81l19.64-25.27c5.41-6.97 4.16-17.02-2.82-22.45zM144 333.91C144 432.35 222.72 512 320 512c44.71 0 85.37-16.96 116.4-44.7L162.72 255.78c-11.41 23.5-18.72 48.35-18.72 78.13z"] };
  3457. var faTired = { prefix: 'fas', iconName: 'tired', icon: [496, 512, [], "f5c8", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm33.8 189.7l80-48c11.6-6.9 24 7.7 15.4 18L343.6 208l33.6 40.3c8.7 10.4-3.9 24.8-15.4 18l-80-48c-7.7-4.7-7.7-15.9 0-20.6zm-163-30c-8.6-10.3 3.8-24.9 15.4-18l80 48c7.8 4.7 7.8 15.9 0 20.6l-80 48c-11.5 6.8-24-7.6-15.4-18l33.6-40.3-33.6-40.3zM248 288c51.9 0 115.3 43.8 123.2 106.7 1.7 13.6-8 24.6-17.7 20.4-25.9-11.1-64.4-17.4-105.5-17.4s-79.6 6.3-105.5 17.4c-9.8 4.2-19.4-7-17.7-20.4C132.7 331.8 196.1 288 248 288z"] };
  3458. var faToggleOff = { prefix: 'fas', iconName: 'toggle-off', icon: [576, 512, [], "f204", "M384 64H192C85.961 64 0 149.961 0 256s85.961 192 192 192h192c106.039 0 192-85.961 192-192S490.039 64 384 64zM64 256c0-70.741 57.249-128 128-128 70.741 0 128 57.249 128 128 0 70.741-57.249 128-128 128-70.741 0-128-57.249-128-128zm320 128h-48.905c65.217-72.858 65.236-183.12 0-256H384c70.741 0 128 57.249 128 128 0 70.74-57.249 128-128 128z"] };
  3459. var faToggleOn = { prefix: 'fas', iconName: 'toggle-on', icon: [576, 512, [], "f205", "M576 256c0 106.039-85.961 192-192 192H192C85.961 448 0 362.039 0 256S85.961 64 192 64h192c106.039 0 192 85.961 192 192zM384 128c-70.741 0-128 57.249-128 128 0 70.741 57.249 128 128 128 70.741 0 128-57.249 128-128 0-70.741-57.249-128-128-128"] };
  3460. var faToiletPaper = { prefix: 'fas', iconName: 'toilet-paper', icon: [576, 512, [], "f71e", "M128 0C74.98 0 32 85.96 32 192v172.07c0 41.12-9.8 62.77-31.17 126.87C-2.62 501.3 5.09 512 16.01 512h280.92c13.77 0 26-8.81 30.36-21.88 12.83-38.48 24.71-72.4 24.71-126.05V192c0-83.6 23.67-153.52 60.44-192H128zM96 224c-8.84 0-16-7.16-16-16s7.16-16 16-16 16 7.16 16 16-7.16 16-16 16zm64 0c-8.84 0-16-7.16-16-16s7.16-16 16-16 16 7.16 16 16-7.16 16-16 16zm64 0c-8.84 0-16-7.16-16-16s7.16-16 16-16 16 7.16 16 16-7.16 16-16 16zm64 0c-8.84 0-16-7.16-16-16s7.16-16 16-16 16 7.16 16 16-7.16 16-16 16zM480 0c-53.02 0-96 85.96-96 192s42.98 192 96 192 96-85.96 96-192S533.02 0 480 0zm0 256c-17.67 0-32-28.65-32-64s14.33-64 32-64 32 28.65 32 64-14.33 64-32 64z"] };
  3461. var faToolbox = { prefix: 'fas', iconName: 'toolbox', icon: [512, 512, [], "f552", "M502.63 214.63l-45.25-45.25c-6-6-14.14-9.37-22.63-9.37H384V80c0-26.51-21.49-48-48-48H176c-26.51 0-48 21.49-48 48v80H77.25c-8.49 0-16.62 3.37-22.63 9.37L9.37 214.63c-6 6-9.37 14.14-9.37 22.63V320h128v-16c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v16h128v-16c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v16h128v-82.75c0-8.48-3.37-16.62-9.37-22.62zM320 160H192V96h128v64zm64 208c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16v-16H192v16c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16v-16H0v96c0 17.67 14.33 32 32 32h448c17.67 0 32-14.33 32-32v-96H384v16z"] };
  3462. var faTooth = { prefix: 'fas', iconName: 'tooth', icon: [448, 512, [], "f5c9", "M443.98 96.25c-11.01-45.22-47.11-82.06-92.01-93.72-32.19-8.36-63 5.1-89.14 24.33-3.25 2.39-6.96 3.73-10.5 5.48l28.32 18.21c7.42 4.77 9.58 14.67 4.8 22.11-4.46 6.95-14.27 9.86-22.11 4.8L162.83 12.84c-20.7-10.85-43.38-16.4-66.81-10.31-44.9 11.67-81 48.5-92.01 93.72-10.13 41.62-.42 80.81 21.5 110.43 23.36 31.57 32.68 68.66 36.29 107.35 4.4 47.16 10.33 94.16 20.94 140.32l7.8 33.95c3.19 13.87 15.49 23.7 29.67 23.7 13.97 0 26.15-9.55 29.54-23.16l34.47-138.42c4.56-18.32 20.96-31.16 39.76-31.16s35.2 12.85 39.76 31.16l34.47 138.42c3.39 13.61 15.57 23.16 29.54 23.16 14.18 0 26.48-9.83 29.67-23.7l7.8-33.95c10.61-46.15 16.53-93.16 20.94-140.32 3.61-38.7 12.93-75.78 36.29-107.35 21.95-29.61 31.66-68.8 21.53-110.43z"] };
  3463. var faTorah = { prefix: 'fas', iconName: 'torah', icon: [448, 512, [], "f6a0", "M448 358.4V25.6c0-16-9.6-25.6-25.6-25.6H96C41.6 0 0 41.6 0 96v320c0 54.4 41.6 96 96 96h326.4c12.8 0 25.6-9.6 25.6-25.6v-16c0-6.4-3.2-12.8-9.6-19.2-3.2-16-3.2-60.8 0-73.6 6.4-3.2 9.6-9.6 9.6-19.2zM139.11 141.21c-2.77-4.41.4-10.14 5.6-10.14h53.08c.9 0 1.73-.46 2.21-1.22l34.4-54.76c2.6-4.13 8.61-4.13 11.21 0l34.4 54.76a2.61 2.61 0 0 0 2.21 1.22h53.08c5.2 0 8.37 5.73 5.6 10.14L314.01 184l26.88 42.79c2.77 4.4-.4 10.13-5.6 10.13h-53.08c-.9 0-1.73.46-2.21 1.22l-34.4 54.76c-2.6 4.13-8.61 4.13-11.21 0L200 238.15a2.61 2.61 0 0 0-2.21-1.22h-53.08c-5.2 0-8.37-5.73-5.6-10.13l26.88-42.8-26.88-42.79zM380.8 448H96c-19.2 0-32-12.8-32-32s16-32 32-32h284.8v64z"] };
  3464. var faToriiGate = { prefix: 'fas', iconName: 'torii-gate', icon: [512, 512, [], "f6a1", "M376.45 32h-240.9A303.17 303.17 0 0 1 0 0v96c0 17.67 14.33 32 32 32h32v64H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h48v240c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16V256h256v240c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16V256h48c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16h-48v-64h32c17.67 0 32-14.33 32-32V0a303.17 303.17 0 0 1-135.55 32zM128 128h96v64h-96v-64zm256 64h-96v-64h96v64z"] };
  3465. var faTractor = { prefix: 'fas', iconName: 'tractor', icon: [640, 512, [], "f722", "M528 336c-48.6 0-88 39.4-88 88s39.4 88 88 88 88-39.4 88-88-39.4-88-88-88zm0 112c-13.23 0-24-10.77-24-24s10.77-24 24-24 24 10.77 24 24-10.77 24-24 24zm80-288h-64v-40.2c0-14.12 4.7-27.76 13.15-38.84 4.42-5.8 3.55-14.06-1.32-19.49L534.2 37.3c-6.66-7.45-18.32-6.92-24.7.78C490.58 60.9 480 89.81 480 119.8V160H377.67L321.58 29.14A47.914 47.914 0 0 0 277.45 0H144c-26.47 0-48 21.53-48 48v146.52c-8.63-6.73-20.96-6.46-28.89 1.47L36 227.1c-8.59 8.59-8.59 22.52 0 31.11l5.06 5.06c-4.99 9.26-8.96 18.82-11.91 28.72H22c-12.15 0-22 9.85-22 22v44c0 12.15 9.85 22 22 22h7.14c2.96 9.91 6.92 19.46 11.91 28.73l-5.06 5.06c-8.59 8.59-8.59 22.52 0 31.11L67.1 476c8.59 8.59 22.52 8.59 31.11 0l5.06-5.06c9.26 4.99 18.82 8.96 28.72 11.91V490c0 12.15 9.85 22 22 22h44c12.15 0 22-9.85 22-22v-7.14c9.9-2.95 19.46-6.92 28.72-11.91l5.06 5.06c8.59 8.59 22.52 8.59 31.11 0l31.11-31.11c8.59-8.59 8.59-22.52 0-31.11l-5.06-5.06c4.99-9.26 8.96-18.82 11.91-28.72H330c12.15 0 22-9.85 22-22v-6h80.54c21.91-28.99 56.32-48 95.46-48 18.64 0 36.07 4.61 51.8 12.2l50.82-50.82c6-6 9.37-14.14 9.37-22.63V192c.01-17.67-14.32-32-31.99-32zM176 416c-44.18 0-80-35.82-80-80s35.82-80 80-80 80 35.82 80 80-35.82 80-80 80zm22-256h-38V64h106.89l41.15 96H198z"] };
  3466. var faTrademark = { prefix: 'fas', iconName: 'trademark', icon: [640, 512, [], "f25c", "M97.119 163.133H12c-6.627 0-12-5.373-12-12V108c0-6.627 5.373-12 12-12h248.559c6.627 0 12 5.373 12 12v43.133c0 6.627-5.373 12-12 12H175.44V404c0 6.627-5.373 12-12 12h-54.322c-6.627 0-12-5.373-12-12V163.133zM329.825 96h65.425a12 12 0 0 1 11.346 8.093l43.759 127.068c7.161 20.588 16.111 52.812 16.111 52.812h.896s8.95-32.224 16.111-52.812l43.758-127.068A12 12 0 0 1 538.577 96h65.41a12 12 0 0 1 11.961 11.03l24.012 296c.567 6.987-4.951 12.97-11.961 12.97h-54.101a12 12 0 0 1-11.972-11.182l-9.082-132.93c-1.79-24.168 0-53.706 0-53.706h-.896s-10.741 33.566-17.902 53.706l-30.7 84.731a12 12 0 0 1-11.282 7.912h-50.302a12 12 0 0 1-11.282-7.912l-30.7-84.731c-7.161-20.14-17.903-53.706-17.903-53.706h-.895s1.79 29.538 0 53.706l-9.082 132.93c-.428 6.295-5.66 11.182-11.97 11.182H305.4c-7.017 0-12.536-5.994-11.959-12.987l24.425-296A11.999 11.999 0 0 1 329.825 96z"] };
  3467. var faTrafficLight = { prefix: 'fas', iconName: 'traffic-light', icon: [384, 512, [], "f637", "M384 192h-64v-37.88c37.2-13.22 64-48.38 64-90.12h-64V32c0-17.67-14.33-32-32-32H96C78.33 0 64 14.33 64 32v32H0c0 41.74 26.8 76.9 64 90.12V192H0c0 41.74 26.8 76.9 64 90.12V320H0c0 42.84 28.25 78.69 66.99 91.05C79.42 468.72 130.6 512 192 512s112.58-43.28 125.01-100.95C355.75 398.69 384 362.84 384 320h-64v-37.88c37.2-13.22 64-48.38 64-90.12zM192 416c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48zm0-128c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48zm0-128c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48z"] };
  3468. var faTrain = { prefix: 'fas', iconName: 'train', icon: [448, 512, [], "f238", "M448 96v256c0 51.815-61.624 96-130.022 96l62.98 49.721C386.905 502.417 383.562 512 376 512H72c-7.578 0-10.892-9.594-4.957-14.279L130.022 448C61.82 448 0 403.954 0 352V96C0 42.981 64 0 128 0h192c65 0 128 42.981 128 96zm-48 136V120c0-13.255-10.745-24-24-24H72c-13.255 0-24 10.745-24 24v112c0 13.255 10.745 24 24 24h304c13.255 0 24-10.745 24-24zm-176 64c-30.928 0-56 25.072-56 56s25.072 56 56 56 56-25.072 56-56-25.072-56-56-56z"] };
  3469. var faTransgender = { prefix: 'fas', iconName: 'transgender', icon: [384, 512, [], "f224", "M372 0h-79c-10.7 0-16 12.9-8.5 20.5l16.9 16.9-80.7 80.7C198.5 104.1 172.2 96 144 96 64.5 96 0 160.5 0 240c0 68.5 47.9 125.9 112 140.4V408H76c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h36v28c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-28h36c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-36v-27.6c64.1-14.6 112-71.9 112-140.4 0-28.2-8.1-54.5-22.1-76.7l80.7-80.7 16.9 16.9c7.6 7.6 20.5 2.2 20.5-8.5V12c0-6.6-5.4-12-12-12zM144 320c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"] };
  3470. var faTransgenderAlt = { prefix: 'fas', iconName: 'transgender-alt', icon: [480, 512, [], "f225", "M468 0h-79c-10.7 0-16 12.9-8.5 20.5l16.9 16.9-80.7 80.7C294.5 104.1 268.2 96 240 96c-28.2 0-54.5 8.1-76.7 22.1l-16.5-16.5 19.8-19.8c4.7-4.7 4.7-12.3 0-17l-28.3-28.3c-4.7-4.7-12.3-4.7-17 0l-19.8 19.8-19-19 16.9-16.9C107.1 12.9 101.7 0 91 0H12C5.4 0 0 5.4 0 12v79c0 10.7 12.9 16 20.5 8.5l16.9-16.9 19 19-19.8 19.8c-4.7 4.7-4.7 12.3 0 17l28.3 28.3c4.7 4.7 12.3 4.7 17 0l19.8-19.8 16.5 16.5C104.1 185.5 96 211.8 96 240c0 68.5 47.9 125.9 112 140.4V408h-36c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h36v28c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-28h36c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-36v-27.6c64.1-14.6 112-71.9 112-140.4 0-28.2-8.1-54.5-22.1-76.7l80.7-80.7 16.9 16.9c7.6 7.6 20.5 2.2 20.5-8.5V12c0-6.6-5.4-12-12-12zM240 320c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"] };
  3471. var faTrash = { prefix: 'fas', iconName: 'trash', icon: [448, 512, [], "f1f8", "M0 84V56c0-13.3 10.7-24 24-24h112l9.4-18.7c4-8.2 12.3-13.3 21.4-13.3h114.3c9.1 0 17.4 5.1 21.5 13.3L312 32h112c13.3 0 24 10.7 24 24v28c0 6.6-5.4 12-12 12H12C5.4 96 0 90.6 0 84zm415.2 56.7L394.8 467c-1.6 25.3-22.6 45-47.9 45H101.1c-25.3 0-46.3-19.7-47.9-45L32.8 140.7c-.4-6.9 5.1-12.7 12-12.7h358.5c6.8 0 12.3 5.8 11.9 12.7z"] };
  3472. var faTrashAlt = { prefix: 'fas', iconName: 'trash-alt', icon: [448, 512, [], "f2ed", "M0 84V56c0-13.3 10.7-24 24-24h112l9.4-18.7c4-8.2 12.3-13.3 21.4-13.3h114.3c9.1 0 17.4 5.1 21.5 13.3L312 32h112c13.3 0 24 10.7 24 24v28c0 6.6-5.4 12-12 12H12C5.4 96 0 90.6 0 84zm416 56v324c0 26.5-21.5 48-48 48H80c-26.5 0-48-21.5-48-48V140c0-6.6 5.4-12 12-12h360c6.6 0 12 5.4 12 12zm-272 68c0-8.8-7.2-16-16-16s-16 7.2-16 16v224c0 8.8 7.2 16 16 16s16-7.2 16-16V208zm96 0c0-8.8-7.2-16-16-16s-16 7.2-16 16v224c0 8.8 7.2 16 16 16s16-7.2 16-16V208zm96 0c0-8.8-7.2-16-16-16s-16 7.2-16 16v224c0 8.8 7.2 16 16 16s16-7.2 16-16V208z"] };
  3473. var faTree = { prefix: 'fas', iconName: 'tree', icon: [384, 512, [], "f1bb", "M378.31 378.49L298.42 288h30.63c9.01 0 16.98-5 20.78-13.06 3.8-8.04 2.55-17.26-3.28-24.05L268.42 160h28.89c9.1 0 17.3-5.35 20.86-13.61 3.52-8.13 1.86-17.59-4.24-24.08L203.66 4.83c-6.03-6.45-17.28-6.45-23.32 0L70.06 122.31c-6.1 6.49-7.75 15.95-4.24 24.08C69.38 154.65 77.59 160 86.69 160h28.89l-78.14 90.91c-5.81 6.78-7.06 15.99-3.27 24.04C37.97 283 45.93 288 54.95 288h30.63L5.69 378.49c-6 6.79-7.36 16.09-3.56 24.26 3.75 8.05 12 13.25 21.01 13.25H160v24.45l-30.29 48.4c-5.32 10.64 2.42 23.16 14.31 23.16h95.96c11.89 0 19.63-12.52 14.31-23.16L224 440.45V416h136.86c9.01 0 17.26-5.2 21.01-13.25 3.8-8.17 2.44-17.47-3.56-24.26z"] };
  3474. var faTrophy = { prefix: 'fas', iconName: 'trophy', icon: [576, 512, [], "f091", "M552 64H448V24c0-13.3-10.7-24-24-24H152c-13.3 0-24 10.7-24 24v40H24C10.7 64 0 74.7 0 88v56c0 35.7 22.5 72.4 61.9 100.7 31.5 22.7 69.8 37.1 110 41.7C203.3 338.5 240 360 240 360v72h-48c-35.3 0-64 20.7-64 56v12c0 6.6 5.4 12 12 12h296c6.6 0 12-5.4 12-12v-12c0-35.3-28.7-56-64-56h-48v-72s36.7-21.5 68.1-73.6c40.3-4.6 78.6-19 110-41.7 39.3-28.3 61.9-65 61.9-100.7V88c0-13.3-10.7-24-24-24zM99.3 192.8C74.9 175.2 64 155.6 64 144v-16h64.2c1 32.6 5.8 61.2 12.8 86.2-15.1-5.2-29.2-12.4-41.7-21.4zM512 144c0 16.1-17.7 36.1-35.3 48.8-12.5 9-26.7 16.2-41.8 21.4 7-25 11.8-53.6 12.8-86.2H512v16z"] };
  3475. var faTruck = { prefix: 'fas', iconName: 'truck', icon: [640, 512, [], "f0d1", "M624 352h-16V243.9c0-12.7-5.1-24.9-14.1-33.9L494 110.1c-9-9-21.2-14.1-33.9-14.1H416V48c0-26.5-21.5-48-48-48H48C21.5 0 0 21.5 0 48v320c0 26.5 21.5 48 48 48h16c0 53 43 96 96 96s96-43 96-96h128c0 53 43 96 96 96s96-43 96-96h48c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zM160 464c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm320 0c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm80-208H416V144h44.1l99.9 99.9V256z"] };
  3476. var faTruckLoading = { prefix: 'fas', iconName: 'truck-loading', icon: [640, 512, [], "f4de", "M50.2 375.6c2.3 8.5 11.1 13.6 19.6 11.3l216.4-58c8.5-2.3 13.6-11.1 11.3-19.6l-49.7-185.5c-2.3-8.5-11.1-13.6-19.6-11.3L151 133.3l24.8 92.7-61.8 16.5-24.8-92.7-77.3 20.7C3.4 172.8-1.7 181.6.6 190.1l49.6 185.5zM384 0c-17.7 0-32 14.3-32 32v323.6L5.9 450c-4.3 1.2-6.8 5.6-5.6 9.8l12.6 46.3c1.2 4.3 5.6 6.8 9.8 5.6l393.7-107.4C418.8 464.1 467.6 512 528 512c61.9 0 112-50.1 112-112V0H384zm144 448c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48z"] };
  3477. var faTruckMonster = { prefix: 'fas', iconName: 'truck-monster', icon: [640, 512, [], "f63b", "M624 224h-16v-64c0-17.67-14.33-32-32-32h-73.6L419.22 24.02A64.025 64.025 0 0 0 369.24 0H256c-17.67 0-32 14.33-32 32v96H48c-8.84 0-16 7.16-16 16v80H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h16.72c29.21-38.65 75.1-64 127.28-64s98.07 25.35 127.28 64h65.45c29.21-38.65 75.1-64 127.28-64s98.07 25.35 127.28 64H624c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zm-336-96V64h81.24l51.2 64H288zm304 224h-5.2c-2.2-7.33-5.07-14.28-8.65-20.89l3.67-3.67c6.25-6.25 6.25-16.38 0-22.63l-22.63-22.63c-6.25-6.25-16.38-6.25-22.63 0l-3.67 3.67A110.85 110.85 0 0 0 512 277.2V272c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v5.2c-7.33 2.2-14.28 5.07-20.89 8.65l-3.67-3.67c-6.25-6.25-16.38-6.25-22.63 0l-22.63 22.63c-6.25 6.25-6.25 16.38 0 22.63l3.67 3.67A110.85 110.85 0 0 0 373.2 352H368c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h5.2c2.2 7.33 5.07 14.28 8.65 20.89l-3.67 3.67c-6.25 6.25-6.25 16.38 0 22.63l22.63 22.63c6.25 6.25 16.38 6.25 22.63 0l3.67-3.67c6.61 3.57 13.57 6.45 20.9 8.65v5.2c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-5.2c7.33-2.2 14.28-5.07 20.9-8.65l3.67 3.67c6.25 6.25 16.38 6.25 22.63 0l22.63-22.63c6.25-6.25 6.25-16.38 0-22.63l-3.67-3.67a110.85 110.85 0 0 0 8.65-20.89h5.2c8.84 0 16-7.16 16-16v-32c-.02-8.84-7.18-16-16.02-16zm-112 80c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48zm-208-80h-5.2c-2.2-7.33-5.07-14.28-8.65-20.89l3.67-3.67c6.25-6.25 6.25-16.38 0-22.63l-22.63-22.63c-6.25-6.25-16.38-6.25-22.63 0l-3.67 3.67A110.85 110.85 0 0 0 192 277.2V272c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v5.2c-7.33 2.2-14.28 5.07-20.89 8.65l-3.67-3.67c-6.25-6.25-16.38-6.25-22.63 0L58.18 304.8c-6.25 6.25-6.25 16.38 0 22.63l3.67 3.67a110.85 110.85 0 0 0-8.65 20.89H48c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h5.2c2.2 7.33 5.07 14.28 8.65 20.89l-3.67 3.67c-6.25 6.25-6.25 16.38 0 22.63l22.63 22.63c6.25 6.25 16.38 6.25 22.63 0l3.67-3.67c6.61 3.57 13.57 6.45 20.9 8.65v5.2c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-5.2c7.33-2.2 14.28-5.07 20.9-8.65l3.67 3.67c6.25 6.25 16.38 6.25 22.63 0l22.63-22.63c6.25-6.25 6.25-16.38 0-22.63l-3.67-3.67a110.85 110.85 0 0 0 8.65-20.89h5.2c8.84 0 16-7.16 16-16v-32C288 359.16 280.84 352 272 352zm-112 80c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48z"] };
  3478. var faTruckMoving = { prefix: 'fas', iconName: 'truck-moving', icon: [640, 512, [], "f4df", "M621.3 237.3l-58.5-58.5c-12-12-28.3-18.7-45.3-18.7H480V64c0-17.7-14.3-32-32-32H32C14.3 32 0 46.3 0 64v336c0 44.2 35.8 80 80 80 26.3 0 49.4-12.9 64-32.4 14.6 19.6 37.7 32.4 64 32.4 44.2 0 80-35.8 80-80 0-5.5-.6-10.8-1.6-16h163.2c-1.1 5.2-1.6 10.5-1.6 16 0 44.2 35.8 80 80 80s80-35.8 80-80c0-5.5-.6-10.8-1.6-16H624c8.8 0 16-7.2 16-16v-85.5c0-17-6.7-33.2-18.7-45.2zM80 432c-17.6 0-32-14.4-32-32s14.4-32 32-32 32 14.4 32 32-14.4 32-32 32zm128 0c-17.6 0-32-14.4-32-32s14.4-32 32-32 32 14.4 32 32-14.4 32-32 32zm272-224h37.5c4.3 0 8.3 1.7 11.3 4.7l43.3 43.3H480v-48zm48 224c-17.6 0-32-14.4-32-32s14.4-32 32-32 32 14.4 32 32-14.4 32-32 32z"] };
  3479. var faTruckPickup = { prefix: 'fas', iconName: 'truck-pickup', icon: [640, 512, [], "f63c", "M624 288h-16v-64c0-17.67-14.33-32-32-32h-48L419.22 56.02A64.025 64.025 0 0 0 369.24 32H256c-17.67 0-32 14.33-32 32v128H64c-17.67 0-32 14.33-32 32v64H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h49.61c-.76 5.27-1.61 10.52-1.61 16 0 61.86 50.14 112 112 112s112-50.14 112-112c0-5.48-.85-10.73-1.61-16h67.23c-.76 5.27-1.61 10.52-1.61 16 0 61.86 50.14 112 112 112s112-50.14 112-112c0-5.48-.85-10.73-1.61-16H624c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zM288 96h81.24l76.8 96H288V96zM176 416c-26.47 0-48-21.53-48-48s21.53-48 48-48 48 21.53 48 48-21.53 48-48 48zm288 0c-26.47 0-48-21.53-48-48s21.53-48 48-48 48 21.53 48 48-21.53 48-48 48z"] };
  3480. var faTshirt = { prefix: 'fas', iconName: 'tshirt', icon: [640, 512, [], "f553", "M631.2 96.5L436.5 0C416.4 27.8 371.9 47.2 320 47.2S223.6 27.8 203.5 0L8.8 96.5c-7.9 4-11.1 13.6-7.2 21.5l57.2 114.5c4 7.9 13.6 11.1 21.5 7.2l56.6-27.7c10.6-5.2 23 2.5 23 14.4V480c0 17.7 14.3 32 32 32h256c17.7 0 32-14.3 32-32V226.3c0-11.8 12.4-19.6 23-14.4l56.6 27.7c7.9 4 17.5.8 21.5-7.2L638.3 118c4-7.9.8-17.6-7.1-21.5z"] };
  3481. var faTty = { prefix: 'fas', iconName: 'tty', icon: [512, 512, [], "f1e4", "M5.37 103.822c138.532-138.532 362.936-138.326 501.262 0 6.078 6.078 7.074 15.496 2.583 22.681l-43.214 69.138a18.332 18.332 0 0 1-22.356 7.305l-86.422-34.569a18.335 18.335 0 0 1-11.434-18.846L351.741 90c-62.145-22.454-130.636-21.986-191.483 0l5.953 59.532a18.331 18.331 0 0 1-11.434 18.846l-86.423 34.568a18.334 18.334 0 0 1-22.356-7.305L2.787 126.502a18.333 18.333 0 0 1 2.583-22.68zM96 308v-40c0-6.627-5.373-12-12-12H44c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm-336 96v-40c0-6.627-5.373-12-12-12H92c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zM96 500v-40c0-6.627-5.373-12-12-12H44c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm288 0v-40c0-6.627-5.373-12-12-12H140c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h232c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12z"] };
  3482. var faTv = { prefix: 'fas', iconName: 'tv', icon: [640, 512, [], "f26c", "M592 0H48C21.5 0 0 21.5 0 48v320c0 26.5 21.5 48 48 48h245.1v32h-160c-17.7 0-32 14.3-32 32s14.3 32 32 32h384c17.7 0 32-14.3 32-32s-14.3-32-32-32h-160v-32H592c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zm-16 352H64V64h512v288z"] };
  3483. var faUmbrella = { prefix: 'fas', iconName: 'umbrella', icon: [576, 512, [], "f0e9", "M557.011 267.631c-51.432-45.217-107.572-43.698-158.567 30.731-5.298 7.861-14.906 7.165-19.736 0-2.483-3.624-32.218-60.808-90.708-60.808-45.766 0-70.542 31.378-90.709 60.808-4.829 7.165-14.436 7.861-19.734 0-50.904-74.285-106.613-76.406-158.567-30.731-10.21 8.264-20.912-1.109-18.696-9.481C32.146 134.573 158.516 64.612 288.001 64.612c128.793 0 256.546 69.961 287.706 193.538 2.206 8.322-8.426 17.793-18.696 9.481zM256 261.001V416c0 17.645-14.355 32-32 32s-32-14.355-32-32c0-17.673-14.327-32-32-32s-32 14.327-32 32c0 52.935 43.065 96 96 96s96-43.065 96-96V261.288c-21.836-10.806-45.425-9.737-64-.287zm64-211.007V32c0-17.673-14.327-32-32-32s-32 14.327-32 32v17.987a372.105 372.105 0 0 1 64 .007z"] };
  3484. var faUmbrellaBeach = { prefix: 'fas', iconName: 'umbrella-beach', icon: [640, 512, [], "f5ca", "M115.38 136.9l102.11 37.18c35.19-81.54 86.21-144.29 139-173.7-95.88-4.89-188.78 36.96-248.53 111.8-6.69 8.4-2.66 21.05 7.42 24.72zm132.25 48.16l238.48 86.83c35.76-121.38 18.7-231.66-42.63-253.98-7.4-2.7-15.13-4-23.09-4-58.02.01-128.27 69.17-172.76 171.15zM521.48 60.5c6.22 16.3 10.83 34.6 13.2 55.19 5.74 49.89-1.42 108.23-18.95 166.98l102.62 37.36c10.09 3.67 21.31-3.43 21.57-14.17 2.32-95.69-41.91-187.44-118.44-245.36zM560 447.98H321.06L386 269.5l-60.14-21.9-72.9 200.37H16c-8.84 0-16 7.16-16 16.01v32.01C0 504.83 7.16 512 16 512h544c8.84 0 16-7.17 16-16.01v-32.01c0-8.84-7.16-16-16-16z"] };
  3485. var faUnderline = { prefix: 'fas', iconName: 'underline', icon: [448, 512, [], "f0cd", "M224.264 388.24c-91.669 0-156.603-51.165-156.603-151.392V64H39.37c-8.837 0-16-7.163-16-16V16c0-8.837 7.163-16 16-16h137.39c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16h-28.813v172.848c0 53.699 28.314 79.444 76.317 79.444 46.966 0 75.796-25.434 75.796-79.965V64h-28.291c-8.837 0-16-7.163-16-16V16c0-8.837 7.163-16 16-16h136.868c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16h-28.291v172.848c0 99.405-64.881 151.392-156.082 151.392zM16 448h416c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16H16c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16z"] };
  3486. var faUndo = { prefix: 'fas', iconName: 'undo', icon: [512, 512, [], "f0e2", "M212.333 224.333H12c-6.627 0-12-5.373-12-12V12C0 5.373 5.373 0 12 0h48c6.627 0 12 5.373 12 12v78.112C117.773 39.279 184.26 7.47 258.175 8.007c136.906.994 246.448 111.623 246.157 248.532C504.041 393.258 393.12 504 256.333 504c-64.089 0-122.496-24.313-166.51-64.215-5.099-4.622-5.334-12.554-.467-17.42l33.967-33.967c4.474-4.474 11.662-4.717 16.401-.525C170.76 415.336 211.58 432 256.333 432c97.268 0 176-78.716 176-176 0-97.267-78.716-176-176-176-58.496 0-110.28 28.476-142.274 72.333h98.274c6.627 0 12 5.373 12 12v48c0 6.627-5.373 12-12 12z"] };
  3487. var faUndoAlt = { prefix: 'fas', iconName: 'undo-alt', icon: [512, 512, [], "f2ea", "M255.545 8c-66.269.119-126.438 26.233-170.86 68.685L48.971 40.971C33.851 25.851 8 36.559 8 57.941V192c0 13.255 10.745 24 24 24h134.059c21.382 0 32.09-25.851 16.971-40.971l-41.75-41.75c30.864-28.899 70.801-44.907 113.23-45.273 92.398-.798 170.283 73.977 169.484 169.442C423.236 348.009 349.816 424 256 424c-41.127 0-79.997-14.678-110.63-41.556-4.743-4.161-11.906-3.908-16.368.553L89.34 422.659c-4.872 4.872-4.631 12.815.482 17.433C133.798 479.813 192.074 504 256 504c136.966 0 247.999-111.033 248-247.998C504.001 119.193 392.354 7.755 255.545 8z"] };
  3488. var faUniversalAccess = { prefix: 'fas', iconName: 'universal-access', icon: [512, 512, [], "f29a", "M256 48c114.953 0 208 93.029 208 208 0 114.953-93.029 208-208 208-114.953 0-208-93.029-208-208 0-114.953 93.029-208 208-208m0-40C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm0 56C149.961 64 64 149.961 64 256s85.961 192 192 192 192-85.961 192-192S362.039 64 256 64zm0 44c19.882 0 36 16.118 36 36s-16.118 36-36 36-36-16.118-36-36 16.118-36 36-36zm117.741 98.023c-28.712 6.779-55.511 12.748-82.14 15.807.851 101.023 12.306 123.052 25.037 155.621 3.617 9.26-.957 19.698-10.217 23.315-9.261 3.617-19.699-.957-23.316-10.217-8.705-22.308-17.086-40.636-22.261-78.549h-9.686c-5.167 37.851-13.534 56.208-22.262 78.549-3.615 9.255-14.05 13.836-23.315 10.217-9.26-3.617-13.834-14.056-10.217-23.315 12.713-32.541 24.185-54.541 25.037-155.621-26.629-3.058-53.428-9.027-82.141-15.807-8.6-2.031-13.926-10.648-11.895-19.249s10.647-13.926 19.249-11.895c96.686 22.829 124.283 22.783 220.775 0 8.599-2.03 17.218 3.294 19.249 11.895 2.029 8.601-3.297 17.219-11.897 19.249z"] };
  3489. var faUniversity = { prefix: 'fas', iconName: 'university', icon: [512, 512, [], "f19c", "M496 128v16a8 8 0 0 1-8 8h-24v12c0 6.627-5.373 12-12 12H60c-6.627 0-12-5.373-12-12v-12H24a8 8 0 0 1-8-8v-16a8 8 0 0 1 4.941-7.392l232-88a7.996 7.996 0 0 1 6.118 0l232 88A8 8 0 0 1 496 128zm-24 304H40c-13.255 0-24 10.745-24 24v16a8 8 0 0 0 8 8h464a8 8 0 0 0 8-8v-16c0-13.255-10.745-24-24-24zM96 192v192H60c-6.627 0-12 5.373-12 12v20h416v-20c0-6.627-5.373-12-12-12h-36V192h-64v192h-64V192h-64v192h-64V192H96z"] };
  3490. var faUnlink = { prefix: 'fas', iconName: 'unlink', icon: [512, 512, [], "f127", "M304.083 405.907c4.686 4.686 4.686 12.284 0 16.971l-44.674 44.674c-59.263 59.262-155.693 59.266-214.961 0-59.264-59.265-59.264-155.696 0-214.96l44.675-44.675c4.686-4.686 12.284-4.686 16.971 0l39.598 39.598c4.686 4.686 4.686 12.284 0 16.971l-44.675 44.674c-28.072 28.073-28.072 73.75 0 101.823 28.072 28.072 73.75 28.073 101.824 0l44.674-44.674c4.686-4.686 12.284-4.686 16.971 0l39.597 39.598zm-56.568-260.216c4.686 4.686 12.284 4.686 16.971 0l44.674-44.674c28.072-28.075 73.75-28.073 101.824 0 28.072 28.073 28.072 73.75 0 101.823l-44.675 44.674c-4.686 4.686-4.686 12.284 0 16.971l39.598 39.598c4.686 4.686 12.284 4.686 16.971 0l44.675-44.675c59.265-59.265 59.265-155.695 0-214.96-59.266-59.264-155.695-59.264-214.961 0l-44.674 44.674c-4.686 4.686-4.686 12.284 0 16.971l39.597 39.598zm234.828 359.28l22.627-22.627c9.373-9.373 9.373-24.569 0-33.941L63.598 7.029c-9.373-9.373-24.569-9.373-33.941 0L7.029 29.657c-9.373 9.373-9.373 24.569 0 33.941l441.373 441.373c9.373 9.372 24.569 9.372 33.941 0z"] };
  3491. var faUnlock = { prefix: 'fas', iconName: 'unlock', icon: [448, 512, [], "f09c", "M400 256H152V152.9c0-39.6 31.7-72.5 71.3-72.9 40-.4 72.7 32.1 72.7 72v16c0 13.3 10.7 24 24 24h32c13.3 0 24-10.7 24-24v-16C376 68 307.5-.3 223.5 0 139.5.3 72 69.5 72 153.5V256H48c-26.5 0-48 21.5-48 48v160c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V304c0-26.5-21.5-48-48-48z"] };
  3492. var faUnlockAlt = { prefix: 'fas', iconName: 'unlock-alt', icon: [448, 512, [], "f13e", "M400 256H152V152.9c0-39.6 31.7-72.5 71.3-72.9 40-.4 72.7 32.1 72.7 72v16c0 13.3 10.7 24 24 24h32c13.3 0 24-10.7 24-24v-16C376 68 307.5-.3 223.5 0 139.5.3 72 69.5 72 153.5V256H48c-26.5 0-48 21.5-48 48v160c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V304c0-26.5-21.5-48-48-48zM264 408c0 22.1-17.9 40-40 40s-40-17.9-40-40v-48c0-22.1 17.9-40 40-40s40 17.9 40 40v48z"] };
  3493. var faUpload = { prefix: 'fas', iconName: 'upload', icon: [512, 512, [], "f093", "M296 384h-80c-13.3 0-24-10.7-24-24V192h-87.7c-17.8 0-26.7-21.5-14.1-34.1L242.3 5.7c7.5-7.5 19.8-7.5 27.3 0l152.2 152.2c12.6 12.6 3.7 34.1-14.1 34.1H320v168c0 13.3-10.7 24-24 24zm216-8v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h136v8c0 30.9 25.1 56 56 56h80c30.9 0 56-25.1 56-56v-8h136c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z"] };
  3494. var faUser = { prefix: 'fas', iconName: 'user', icon: [448, 512, [], "f007", "M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"] };
  3495. var faUserAlt = { prefix: 'fas', iconName: 'user-alt', icon: [512, 512, [], "f406", "M256 288c79.5 0 144-64.5 144-144S335.5 0 256 0 112 64.5 112 144s64.5 144 144 144zm128 32h-55.1c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16H128C57.3 320 0 377.3 0 448v16c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48v-16c0-70.7-57.3-128-128-128z"] };
  3496. var faUserAltSlash = { prefix: 'fas', iconName: 'user-alt-slash', icon: [640, 512, [], "f4fa", "M633.8 458.1L389.6 269.3C433.8 244.7 464 198.1 464 144 464 64.5 399.5 0 320 0c-67.1 0-123 46.1-139 108.2L45.5 3.4C38.5-2 28.5-.8 23 6.2L3.4 31.4c-5.4 7-4.2 17 2.8 22.4l588.4 454.7c7 5.4 17 4.2 22.5-2.8l19.6-25.3c5.4-6.8 4.1-16.9-2.9-22.3zM198.4 320C124.2 320 64 380.2 64 454.4v9.6c0 26.5 21.5 48 48 48h382.2L245.8 320h-47.4z"] };
  3497. var faUserAstronaut = { prefix: 'fas', iconName: 'user-astronaut', icon: [448, 512, [], "f4fb", "M64 224h13.5c24.7 56.5 80.9 96 146.5 96s121.8-39.5 146.5-96H384c8.8 0 16-7.2 16-16v-96c0-8.8-7.2-16-16-16h-13.5C345.8 39.5 289.6 0 224 0S102.2 39.5 77.5 96H64c-8.8 0-16 7.2-16 16v96c0 8.8 7.2 16 16 16zm40-88c0-22.1 21.5-40 48-40h144c26.5 0 48 17.9 48 40v24c0 53-43 96-96 96h-48c-53 0-96-43-96-96v-24zm72 72l12-36 36-12-36-12-12-36-12 36-36 12 36 12 12 36zm151.6 113.4C297.7 340.7 262.2 352 224 352s-73.7-11.3-103.6-30.6C52.9 328.5 0 385 0 454.4v9.6c0 26.5 21.5 48 48 48h80v-64c0-17.7 14.3-32 32-32h128c17.7 0 32 14.3 32 32v64h80c26.5 0 48-21.5 48-48v-9.6c0-69.4-52.9-125.9-120.4-133zM272 448c-8.8 0-16 7.2-16 16s7.2 16 16 16 16-7.2 16-16-7.2-16-16-16zm-96 0c-8.8 0-16 7.2-16 16v48h32v-48c0-8.8-7.2-16-16-16z"] };
  3498. var faUserCheck = { prefix: 'fas', iconName: 'user-check', icon: [640, 512, [], "f4fc", "M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4zm323-128.4l-27.8-28.1c-4.6-4.7-12.1-4.7-16.8-.1l-104.8 104-45.5-45.8c-4.6-4.7-12.1-4.7-16.8-.1l-28.1 27.9c-4.7 4.6-4.7 12.1-.1 16.8l81.7 82.3c4.6 4.7 12.1 4.7 16.8.1l141.3-140.2c4.6-4.7 4.7-12.2.1-16.8z"] };
  3499. var faUserCircle = { prefix: 'fas', iconName: 'user-circle', icon: [496, 512, [], "f2bd", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 96c48.6 0 88 39.4 88 88s-39.4 88-88 88-88-39.4-88-88 39.4-88 88-88zm0 344c-58.7 0-111.3-26.6-146.5-68.2 18.8-35.4 55.6-59.8 98.5-59.8 2.4 0 4.8.4 7.1 1.1 13 4.2 26.6 6.9 40.9 6.9 14.3 0 28-2.7 40.9-6.9 2.3-.7 4.7-1.1 7.1-1.1 42.9 0 79.7 24.4 98.5 59.8C359.3 421.4 306.7 448 248 448z"] };
  3500. var faUserClock = { prefix: 'fas', iconName: 'user-clock', icon: [640, 512, [], "f4fd", "M496 224c-79.6 0-144 64.4-144 144s64.4 144 144 144 144-64.4 144-144-64.4-144-144-144zm64 150.3c0 5.3-4.4 9.7-9.7 9.7h-60.6c-5.3 0-9.7-4.4-9.7-9.7v-76.6c0-5.3 4.4-9.7 9.7-9.7h12.6c5.3 0 9.7 4.4 9.7 9.7V352h38.3c5.3 0 9.7 4.4 9.7 9.7v12.6zM320 368c0-27.8 6.7-54.1 18.2-77.5-8-1.5-16.2-2.5-24.6-2.5h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h347.1c-45.3-31.9-75.1-84.5-75.1-144zm-96-112c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128z"] };
  3501. var faUserCog = { prefix: 'fas', iconName: 'user-cog', icon: [640, 512, [], "f4fe", "M610.5 373.3c2.6-14.1 2.6-28.5 0-42.6l25.8-14.9c3-1.7 4.3-5.2 3.3-8.5-6.7-21.6-18.2-41.2-33.2-57.4-2.3-2.5-6-3.1-9-1.4l-25.8 14.9c-10.9-9.3-23.4-16.5-36.9-21.3v-29.8c0-3.4-2.4-6.4-5.7-7.1-22.3-5-45-4.8-66.2 0-3.3.7-5.7 3.7-5.7 7.1v29.8c-13.5 4.8-26 12-36.9 21.3l-25.8-14.9c-2.9-1.7-6.7-1.1-9 1.4-15 16.2-26.5 35.8-33.2 57.4-1 3.3.4 6.8 3.3 8.5l25.8 14.9c-2.6 14.1-2.6 28.5 0 42.6l-25.8 14.9c-3 1.7-4.3 5.2-3.3 8.5 6.7 21.6 18.2 41.1 33.2 57.4 2.3 2.5 6 3.1 9 1.4l25.8-14.9c10.9 9.3 23.4 16.5 36.9 21.3v29.8c0 3.4 2.4 6.4 5.7 7.1 22.3 5 45 4.8 66.2 0 3.3-.7 5.7-3.7 5.7-7.1v-29.8c13.5-4.8 26-12 36.9-21.3l25.8 14.9c2.9 1.7 6.7 1.1 9-1.4 15-16.2 26.5-35.8 33.2-57.4 1-3.3-.4-6.8-3.3-8.5l-25.8-14.9zM496 400.5c-26.8 0-48.5-21.8-48.5-48.5s21.8-48.5 48.5-48.5 48.5 21.8 48.5 48.5-21.7 48.5-48.5 48.5zM224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm201.2 226.5c-2.3-1.2-4.6-2.6-6.8-3.9l-7.9 4.6c-6 3.4-12.8 5.3-19.6 5.3-10.9 0-21.4-4.6-28.9-12.6-18.3-19.8-32.3-43.9-40.2-69.6-5.5-17.7 1.9-36.4 17.9-45.7l7.9-4.6c-.1-2.6-.1-5.2 0-7.8l-7.9-4.6c-16-9.2-23.4-28-17.9-45.7.9-2.9 2.2-5.8 3.2-8.7-3.8-.3-7.5-1.2-11.4-1.2h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c10.1 0 19.5-3.2 27.2-8.5-1.2-3.8-2-7.7-2-11.8v-9.2z"] };
  3502. var faUserEdit = { prefix: 'fas', iconName: 'user-edit', icon: [640, 512, [], "f4ff", "M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h274.9c-2.4-6.8-3.4-14-2.6-21.3l6.8-60.9 1.2-11.1 7.9-7.9 77.3-77.3c-24.5-27.7-60-45.5-99.9-45.5zm45.3 145.3l-6.8 61c-1.1 10.2 7.5 18.8 17.6 17.6l60.9-6.8 137.9-137.9-71.7-71.7-137.9 137.8zM633 268.9L595.1 231c-9.3-9.3-24.5-9.3-33.8 0l-37.8 37.8-4.1 4.1 71.8 71.7 41.8-41.8c9.3-9.4 9.3-24.5 0-33.9z"] };
  3503. var faUserFriends = { prefix: 'fas', iconName: 'user-friends', icon: [640, 512, [], "f500", "M192 256c61.9 0 112-50.1 112-112S253.9 32 192 32 80 82.1 80 144s50.1 112 112 112zm76.8 32h-8.3c-20.8 10-43.9 16-68.5 16s-47.6-6-68.5-16h-8.3C51.6 288 0 339.6 0 403.2V432c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48v-28.8c0-63.6-51.6-115.2-115.2-115.2zM480 256c53 0 96-43 96-96s-43-96-96-96-96 43-96 96 43 96 96 96zm48 32h-3.8c-13.9 4.8-28.6 8-44.2 8s-30.3-3.2-44.2-8H432c-20.4 0-39.2 5.9-55.7 15.4 24.4 26.3 39.7 61.2 39.7 99.8v38.4c0 2.2-.5 4.3-.6 6.4H592c26.5 0 48-21.5 48-48 0-61.9-50.1-112-112-112z"] };
  3504. var faUserGraduate = { prefix: 'fas', iconName: 'user-graduate', icon: [448, 512, [], "f501", "M319.4 320.6L224 416l-95.4-95.4C57.1 323.7 0 382.2 0 454.4v9.6c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-9.6c0-72.2-57.1-130.7-128.6-133.8zM13.6 79.8l6.4 1.5v58.4c-7 4.2-12 11.5-12 20.3 0 8.4 4.6 15.4 11.1 19.7L3.5 242c-1.7 6.9 2.1 14 7.6 14h41.8c5.5 0 9.3-7.1 7.6-14l-15.6-62.3C51.4 175.4 56 168.4 56 160c0-8.8-5-16.1-12-20.3V87.1l66 15.9c-8.6 17.2-14 36.4-14 57 0 70.7 57.3 128 128 128s128-57.3 128-128c0-20.6-5.3-39.8-14-57l96.3-23.2c18.2-4.4 18.2-27.1 0-31.5l-190.4-46c-13-3.1-26.7-3.1-39.7 0L13.6 48.2c-18.1 4.4-18.1 27.2 0 31.6z"] };
  3505. var faUserInjured = { prefix: 'fas', iconName: 'user-injured', icon: [448, 512, [], "f728", "M277.37 11.98C261.08 4.47 243.11 0 224 0c-53.69 0-99.5 33.13-118.51 80h81.19l90.69-68.02zM342.51 80c-7.9-19.47-20.67-36.2-36.49-49.52L239.99 80h102.52zM224 256c70.69 0 128-57.31 128-128 0-5.48-.95-10.7-1.61-16H97.61c-.67 5.3-1.61 10.52-1.61 16 0 70.69 57.31 128 128 128zM80 299.7V512h128.26l-98.45-221.52A132.835 132.835 0 0 0 80 299.7zM0 464c0 26.51 21.49 48 48 48V320.24C18.88 344.89 0 381.26 0 422.4V464zm256-48h-55.38l42.67 96H256c26.47 0 48-21.53 48-48s-21.53-48-48-48zm57.6-128h-16.71c-22.24 10.18-46.88 16-72.89 16s-50.65-5.82-72.89-16h-7.37l42.67 96H256c44.11 0 80 35.89 80 80 0 18.08-6.26 34.59-16.41 48H400c26.51 0 48-21.49 48-48v-41.6c0-74.23-60.17-134.4-134.4-134.4z"] };
  3506. var faUserLock = { prefix: 'fas', iconName: 'user-lock', icon: [640, 512, [], "f502", "M320 320c0-11.1 3.1-21.4 8.1-30.5-4.8-.5-9.5-1.5-14.5-1.5h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h280.9c-5.5-9.5-8.9-20.3-8.9-32V320zm-96-64c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm384 32h-32v-48c0-44.2-35.8-80-80-80s-80 35.8-80 80v48h-32c-17.7 0-32 14.3-32 32v160c0 17.7 14.3 32 32 32h224c17.7 0 32-14.3 32-32V320c0-17.7-14.3-32-32-32zm-80 0h-64v-48c0-17.6 14.4-32 32-32s32 14.4 32 32v48z"] };
  3507. var faUserMd = { prefix: 'fas', iconName: 'user-md', icon: [448, 512, [], "f0f0", "M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zM104 424c0 13.3 10.7 24 24 24s24-10.7 24-24-10.7-24-24-24-24 10.7-24 24zm216-135.4v49c36.5 7.4 64 39.8 64 78.4v41.7c0 7.6-5.4 14.2-12.9 15.7l-32.2 6.4c-4.3.9-8.5-1.9-9.4-6.3l-3.1-15.7c-.9-4.3 1.9-8.6 6.3-9.4l19.3-3.9V416c0-62.8-96-65.1-96 1.9v26.7l19.3 3.9c4.3.9 7.1 5.1 6.3 9.4l-3.1 15.7c-.9 4.3-5.1 7.1-9.4 6.3l-31.2-4.2c-7.9-1.1-13.8-7.8-13.8-15.9V416c0-38.6 27.5-70.9 64-78.4v-45.2c-2.2.7-4.4 1.1-6.6 1.9-18 6.3-37.3 9.8-57.4 9.8s-39.4-3.5-57.4-9.8c-7.4-2.6-14.9-4.2-22.6-5.2v81.6c23.1 6.9 40 28.1 40 53.4 0 30.9-25.1 56-56 56s-56-25.1-56-56c0-25.3 16.9-46.5 40-53.4v-80.4C48.5 301 0 355.8 0 422.4v44.8C0 491.9 20.1 512 44.8 512h358.4c24.7 0 44.8-20.1 44.8-44.8v-44.8c0-72-56.8-130.3-128-133.8z"] };
  3508. var faUserMinus = { prefix: 'fas', iconName: 'user-minus', icon: [640, 512, [], "f503", "M624 208H432c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h192c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm-400 48c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"] };
  3509. var faUserNinja = { prefix: 'fas', iconName: 'user-ninja', icon: [448, 512, [], "f504", "M325.4 289.2L224 390.6 122.6 289.2C54 295.3 0 352.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-70.2-54-127.1-122.6-133.2zM32 192c27.3 0 51.8-11.5 69.2-29.7 15.1 53.9 64 93.7 122.8 93.7 70.7 0 128-57.3 128-128S294.7 0 224 0c-50.4 0-93.6 29.4-114.5 71.8C92.1 47.8 64 32 32 32c0 33.4 17.1 62.8 43.1 80-26 17.2-43.1 46.6-43.1 80zm144-96h96c17.7 0 32 14.3 32 32H144c0-17.7 14.3-32 32-32z"] };
  3510. var faUserPlus = { prefix: 'fas', iconName: 'user-plus', icon: [640, 512, [], "f234", "M624 208h-64v-64c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v64h-64c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h64v64c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-64h64c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm-400 48c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"] };
  3511. var faUserSecret = { prefix: 'fas', iconName: 'user-secret', icon: [448, 512, [], "f21b", "M383.9 308.3l23.9-62.6c4-10.5-3.7-21.7-15-21.7h-58.5c11-18.9 17.8-40.6 17.8-64v-.3c39.2-7.8 64-19.1 64-31.7 0-13.3-27.3-25.1-70.1-33-9.2-32.8-27-65.8-40.6-82.8-9.5-11.9-25.9-15.6-39.5-8.8l-27.6 13.8c-9 4.5-19.6 4.5-28.6 0L182.1 3.4c-13.6-6.8-30-3.1-39.5 8.8-13.5 17-31.4 50-40.6 82.8-42.7 7.9-70 19.7-70 33 0 12.6 24.8 23.9 64 31.7v.3c0 23.4 6.8 45.1 17.8 64H56.3c-11.5 0-19.2 11.7-14.7 22.3l25.8 60.2C27.3 329.8 0 372.7 0 422.4v44.8C0 491.9 20.1 512 44.8 512h358.4c24.7 0 44.8-20.1 44.8-44.8v-44.8c0-48.4-25.8-90.4-64.1-114.1zM176 480l-41.6-192 49.6 32 24 40-32 120zm96 0l-32-120 24-40 49.6-32L272 480zm41.7-298.5c-3.9 11.9-7 24.6-16.5 33.4-10.1 9.3-48 22.4-64-25-2.8-8.4-15.4-8.4-18.3 0-17 50.2-56 32.4-64 25-9.5-8.8-12.7-21.5-16.5-33.4-.8-2.5-6.3-5.7-6.3-5.8v-10.8c28.3 3.6 61 5.8 96 5.8s67.7-2.1 96-5.8v10.8c-.1.1-5.6 3.2-6.4 5.8z"] };
  3512. var faUserShield = { prefix: 'fas', iconName: 'user-shield', icon: [640, 512, [], "f505", "M622.3 271.1l-115.2-45c-4.1-1.6-12.6-3.7-22.2 0l-115.2 45c-10.7 4.2-17.7 14-17.7 24.9 0 111.6 68.7 188.8 132.9 213.9 9.6 3.7 18 1.6 22.2 0C558.4 489.9 640 420.5 640 296c0-10.9-7-20.7-17.7-24.9zM496 462.4V273.3l95.5 37.3c-5.6 87.1-60.9 135.4-95.5 151.8zM224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm96 40c0-2.5.8-4.8 1.1-7.2-2.5-.1-4.9-.8-7.5-.8h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c6.8 0 13.3-1.5 19.2-4-54-42.9-99.2-116.7-99.2-212z"] };
  3513. var faUserSlash = { prefix: 'fas', iconName: 'user-slash', icon: [640, 512, [], "f506", "M633.8 458.1L362.3 248.3C412.1 230.7 448 183.8 448 128 448 57.3 390.7 0 320 0c-67.1 0-121.5 51.8-126.9 117.4L45.5 3.4C38.5-2 28.5-.8 23 6.2L3.4 31.4c-5.4 7-4.2 17 2.8 22.4l588.4 454.7c7 5.4 17 4.2 22.5-2.8l19.6-25.3c5.4-6.8 4.1-16.9-2.9-22.3zM96 422.4V464c0 26.5 21.5 48 48 48h350.2L207.4 290.3C144.2 301.3 96 356 96 422.4z"] };
  3514. var faUserTag = { prefix: 'fas', iconName: 'user-tag', icon: [640, 512, [], "f507", "M630.6 364.9l-90.3-90.2c-12-12-28.3-18.7-45.3-18.7h-79.3c-17.7 0-32 14.3-32 32v79.2c0 17 6.7 33.2 18.7 45.2l90.3 90.2c12.5 12.5 32.8 12.5 45.3 0l92.5-92.5c12.6-12.5 12.6-32.7.1-45.2zm-182.8-21c-13.3 0-24-10.7-24-24s10.7-24 24-24 24 10.7 24 24c0 13.2-10.7 24-24 24zm-223.8-88c70.7 0 128-57.3 128-128C352 57.3 294.7 0 224 0S96 57.3 96 128c0 70.6 57.3 127.9 128 127.9zm127.8 111.2V294c-12.2-3.6-24.9-6.2-38.2-6.2h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 287.9 0 348.1 0 422.3v41.6c0 26.5 21.5 48 48 48h352c15.5 0 29.1-7.5 37.9-18.9l-58-58c-18.1-18.1-28.1-42.2-28.1-67.9z"] };
  3515. var faUserTie = { prefix: 'fas', iconName: 'user-tie', icon: [448, 512, [], "f508", "M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm95.8 32.6L272 480l-32-136 32-56h-96l32 56-32 136-47.8-191.4C56.9 292 0 350.3 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-72.1-56.9-130.4-128.2-133.8z"] };
  3516. var faUserTimes = { prefix: 'fas', iconName: 'user-times', icon: [640, 512, [], "f235", "M589.6 240l45.6-45.6c6.3-6.3 6.3-16.5 0-22.8l-22.8-22.8c-6.3-6.3-16.5-6.3-22.8 0L544 194.4l-45.6-45.6c-6.3-6.3-16.5-6.3-22.8 0l-22.8 22.8c-6.3 6.3-6.3 16.5 0 22.8l45.6 45.6-45.6 45.6c-6.3 6.3-6.3 16.5 0 22.8l22.8 22.8c6.3 6.3 16.5 6.3 22.8 0l45.6-45.6 45.6 45.6c6.3 6.3 16.5 6.3 22.8 0l22.8-22.8c6.3-6.3 6.3-16.5 0-22.8L589.6 240zM224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"] };
  3517. var faUsers = { prefix: 'fas', iconName: 'users', icon: [640, 512, [], "f0c0", "M96 224c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm448 0c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm32 32h-64c-17.6 0-33.5 7.1-45.1 18.6 40.3 22.1 68.9 62 75.1 109.4h66c17.7 0 32-14.3 32-32v-32c0-35.3-28.7-64-64-64zm-256 0c61.9 0 112-50.1 112-112S381.9 32 320 32 208 82.1 208 144s50.1 112 112 112zm76.8 32h-8.3c-20.8 10-43.9 16-68.5 16s-47.6-6-68.5-16h-8.3C179.6 288 128 339.6 128 403.2V432c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48v-28.8c0-63.6-51.6-115.2-115.2-115.2zm-223.7-13.4C161.5 263.1 145.6 256 128 256H64c-35.3 0-64 28.7-64 64v32c0 17.7 14.3 32 32 32h65.9c6.3-47.4 34.9-87.3 75.2-109.4z"] };
  3518. var faUsersCog = { prefix: 'fas', iconName: 'users-cog', icon: [640, 512, [], "f509", "M610.5 341.3c2.6-14.1 2.6-28.5 0-42.6l25.8-14.9c3-1.7 4.3-5.2 3.3-8.5-6.7-21.6-18.2-41.2-33.2-57.4-2.3-2.5-6-3.1-9-1.4l-25.8 14.9c-10.9-9.3-23.4-16.5-36.9-21.3v-29.8c0-3.4-2.4-6.4-5.7-7.1-22.3-5-45-4.8-66.2 0-3.3.7-5.7 3.7-5.7 7.1v29.8c-13.5 4.8-26 12-36.9 21.3l-25.8-14.9c-2.9-1.7-6.7-1.1-9 1.4-15 16.2-26.5 35.8-33.2 57.4-1 3.3.4 6.8 3.3 8.5l25.8 14.9c-2.6 14.1-2.6 28.5 0 42.6l-25.8 14.9c-3 1.7-4.3 5.2-3.3 8.5 6.7 21.6 18.2 41.1 33.2 57.4 2.3 2.5 6 3.1 9 1.4l25.8-14.9c10.9 9.3 23.4 16.5 36.9 21.3v29.8c0 3.4 2.4 6.4 5.7 7.1 22.3 5 45 4.8 66.2 0 3.3-.7 5.7-3.7 5.7-7.1v-29.8c13.5-4.8 26-12 36.9-21.3l25.8 14.9c2.9 1.7 6.7 1.1 9-1.4 15-16.2 26.5-35.8 33.2-57.4 1-3.3-.4-6.8-3.3-8.5l-25.8-14.9zM496 368.5c-26.8 0-48.5-21.8-48.5-48.5s21.8-48.5 48.5-48.5 48.5 21.8 48.5 48.5-21.7 48.5-48.5 48.5zM96 224c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm224 32c1.9 0 3.7-.5 5.6-.6 8.3-21.7 20.5-42.1 36.3-59.2 7.4-8 17.9-12.6 28.9-12.6 6.9 0 13.7 1.8 19.6 5.3l7.9 4.6c.8-.5 1.6-.9 2.4-1.4 7-14.6 11.2-30.8 11.2-48 0-61.9-50.1-112-112-112S208 82.1 208 144c0 61.9 50.1 112 112 112zm105.2 194.5c-2.3-1.2-4.6-2.6-6.8-3.9-8.2 4.8-15.3 9.8-27.5 9.8-10.9 0-21.4-4.6-28.9-12.6-18.3-19.8-32.3-43.9-40.2-69.6-10.7-34.5 24.9-49.7 25.8-50.3-.1-2.6-.1-5.2 0-7.8l-7.9-4.6c-3.8-2.2-7-5-9.8-8.1-3.3.2-6.5.6-9.8.6-24.6 0-47.6-6-68.5-16h-8.3C179.6 288 128 339.6 128 403.2V432c0 26.5 21.5 48 48 48h255.4c-3.7-6-6.2-12.8-6.2-20.3v-9.2zM173.1 274.6C161.5 263.1 145.6 256 128 256H64c-35.3 0-64 28.7-64 64v32c0 17.7 14.3 32 32 32h65.9c6.3-47.4 34.9-87.3 75.2-109.4z"] };
  3519. var faUtensilSpoon = { prefix: 'fas', iconName: 'utensil-spoon', icon: [512, 512, [], "f2e5", "M480.1 31.9c-55-55.1-164.9-34.5-227.8 28.5-49.3 49.3-55.1 110-28.8 160.4L9 413.2c-11.6 10.5-12.1 28.5-1 39.5L59.3 504c11 11 29.1 10.5 39.5-1.1l192.4-214.4c50.4 26.3 111.1 20.5 160.4-28.8 63-62.9 83.6-172.8 28.5-227.8z"] };
  3520. var faUtensils = { prefix: 'fas', iconName: 'utensils', icon: [416, 512, [], "f2e7", "M207.9 15.2c.8 4.7 16.1 94.5 16.1 128.8 0 52.3-27.8 89.6-68.9 104.6L168 486.7c.7 13.7-10.2 25.3-24 25.3H80c-13.7 0-24.7-11.5-24-25.3l12.9-238.1C27.7 233.6 0 196.2 0 144 0 109.6 15.3 19.9 16.1 15.2 19.3-5.1 61.4-5.4 64 16.3v141.2c1.3 3.4 15.1 3.2 16 0 1.4-25.3 7.9-139.2 8-141.8 3.3-20.8 44.7-20.8 47.9 0 .2 2.7 6.6 116.5 8 141.8.9 3.2 14.8 3.4 16 0V16.3c2.6-21.6 44.8-21.4 48-1.1zm119.2 285.7l-15 185.1c-1.2 14 9.9 26 23.9 26h56c13.3 0 24-10.7 24-24V24c0-13.2-10.7-24-24-24-82.5 0-221.4 178.5-64.9 300.9z"] };
  3521. var faVectorSquare = { prefix: 'fas', iconName: 'vector-square', icon: [512, 512, [], "f5cb", "M512 128V32c0-17.67-14.33-32-32-32h-96c-17.67 0-32 14.33-32 32H160c0-17.67-14.33-32-32-32H32C14.33 0 0 14.33 0 32v96c0 17.67 14.33 32 32 32v192c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32h192c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32v-96c0-17.67-14.33-32-32-32V160c17.67 0 32-14.33 32-32zm-96-64h32v32h-32V64zM64 64h32v32H64V64zm32 384H64v-32h32v32zm352 0h-32v-32h32v32zm-32-96h-32c-17.67 0-32 14.33-32 32v32H160v-32c0-17.67-14.33-32-32-32H96V160h32c17.67 0 32-14.33 32-32V96h192v32c0 17.67 14.33 32 32 32h32v192z"] };
  3522. var faVenus = { prefix: 'fas', iconName: 'venus', icon: [288, 512, [], "f221", "M288 176c0-79.5-64.5-144-144-144S0 96.5 0 176c0 68.5 47.9 125.9 112 140.4V368H76c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h36v36c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-36h36c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-36v-51.6c64.1-14.5 112-71.9 112-140.4zm-224 0c0-44.1 35.9-80 80-80s80 35.9 80 80-35.9 80-80 80-80-35.9-80-80z"] };
  3523. var faVenusDouble = { prefix: 'fas', iconName: 'venus-double', icon: [512, 512, [], "f226", "M288 176c0-79.5-64.5-144-144-144S0 96.5 0 176c0 68.5 47.9 125.9 112 140.4V368H76c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h36v36c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-36h36c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-36v-51.6c64.1-14.5 112-71.9 112-140.4zm-224 0c0-44.1 35.9-80 80-80s80 35.9 80 80-35.9 80-80 80-80-35.9-80-80zm336 140.4V368h36c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-36v36c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-36h-36c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h36v-51.6c-21.2-4.8-40.6-14.3-57.2-27.3 14-16.7 25-36 32.1-57.1 14.5 14.8 34.7 24 57.1 24 44.1 0 80-35.9 80-80s-35.9-80-80-80c-22.3 0-42.6 9.2-57.1 24-7.1-21.1-18-40.4-32.1-57.1C303.4 43.6 334.3 32 368 32c79.5 0 144 64.5 144 144 0 68.5-47.9 125.9-112 140.4z"] };
  3524. var faVenusMars = { prefix: 'fas', iconName: 'venus-mars', icon: [576, 512, [], "f228", "M564 0h-79c-10.7 0-16 12.9-8.5 20.5l16.9 16.9-48.7 48.7C422.5 72.1 396.2 64 368 64c-33.7 0-64.6 11.6-89.2 30.9 14 16.7 25 36 32.1 57.1 14.5-14.8 34.7-24 57.1-24 44.1 0 80 35.9 80 80s-35.9 80-80 80c-22.3 0-42.6-9.2-57.1-24-7.1 21.1-18 40.4-32.1 57.1 24.5 19.4 55.5 30.9 89.2 30.9 79.5 0 144-64.5 144-144 0-28.2-8.1-54.5-22.1-76.7l48.7-48.7 16.9 16.9c2.4 2.4 5.4 3.5 8.4 3.5 6.2 0 12.1-4.8 12.1-12V12c0-6.6-5.4-12-12-12zM144 64C64.5 64 0 128.5 0 208c0 68.5 47.9 125.9 112 140.4V400H76c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h36v36c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-36h36c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-36v-51.6c64.1-14.6 112-71.9 112-140.4 0-79.5-64.5-144-144-144zm0 224c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"] };
  3525. var faVial = { prefix: 'fas', iconName: 'vial', icon: [480, 512, [], "f492", "M477.7 186.1L309.5 18.3c-3.1-3.1-8.2-3.1-11.3 0l-34 33.9c-3.1 3.1-3.1 8.2 0 11.3l11.2 11.1L33 316.5c-38.8 38.7-45.1 102-9.4 143.5 20.6 24 49.5 36 78.4 35.9 26.4 0 52.8-10 72.9-30.1l246.3-245.7 11.2 11.1c3.1 3.1 8.2 3.1 11.3 0l34-33.9c3.1-3 3.1-8.1 0-11.2zM318 256H161l148-147.7 78.5 78.3L318 256z"] };
  3526. var faVials = { prefix: 'fas', iconName: 'vials', icon: [640, 512, [], "f493", "M72 64h24v240c0 44.1 35.9 80 80 80s80-35.9 80-80V64h24c4.4 0 8-3.6 8-8V8c0-4.4-3.6-8-8-8H72c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm72 0h64v96h-64V64zm480 384H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h608c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zM360 64h24v240c0 44.1 35.9 80 80 80s80-35.9 80-80V64h24c4.4 0 8-3.6 8-8V8c0-4.4-3.6-8-8-8H360c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm72 0h64v96h-64V64z"] };
  3527. var faVideo = { prefix: 'fas', iconName: 'video', icon: [576, 512, [], "f03d", "M336.2 64H47.8C21.4 64 0 85.4 0 111.8v288.4C0 426.6 21.4 448 47.8 448h288.4c26.4 0 47.8-21.4 47.8-47.8V111.8c0-26.4-21.4-47.8-47.8-47.8zm189.4 37.7L416 177.3v157.4l109.6 75.5c21.2 14.6 50.4-.3 50.4-25.8V127.5c0-25.4-29.1-40.4-50.4-25.8z"] };
  3528. var faVideoSlash = { prefix: 'fas', iconName: 'video-slash', icon: [640, 512, [], "f4e2", "M633.8 458.1l-55-42.5c15.4-1.4 29.2-13.7 29.2-31.1v-257c0-25.5-29.1-40.4-50.4-25.8L448 177.3v137.2l-32-24.7v-178c0-26.4-21.4-47.8-47.8-47.8H123.9L45.5 3.4C38.5-2 28.5-.8 23 6.2L3.4 31.4c-5.4 7-4.2 17 2.8 22.4L42.7 82 416 370.6l178.5 138c7 5.4 17 4.2 22.5-2.8l19.6-25.3c5.5-6.9 4.2-17-2.8-22.4zM32 400.2c0 26.4 21.4 47.8 47.8 47.8h288.4c11.2 0 21.4-4 29.6-10.5L32 154.7v245.5z"] };
  3529. var faVihara = { prefix: 'fas', iconName: 'vihara', icon: [640, 512, [], "f6a7", "M632.88 400.71L544 352v-64l55.16-17.69c11.79-5.9 11.79-22.72 0-28.62L480 192v-64l27.31-16.3c7.72-7.72 5.61-20.74-4.16-25.62L320 0 136.85 86.07c-9.77 4.88-11.88 17.9-4.16 25.62L160 128v64L40.84 241.69c-11.79 5.9-11.79 22.72 0 28.62L96 288v64L7.12 400.71c-5.42 3.62-7.7 9.63-7 15.29.62 5.01 3.57 9.75 8.72 12.33L64 448v48c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-48h160v48c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-48h160v48c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-48l55.15-19.67c5.16-2.58 8.1-7.32 8.72-12.33.71-5.67-1.57-11.68-6.99-15.29zM224 128h192v64H224v-64zm-64 224v-64h320v64H160z"] };
  3530. var faVolleyballBall = { prefix: 'fas', iconName: 'volleyball-ball', icon: [495, 512, [], "f45f", "M223.3 243.4c-.9-37-8.6-72.8-22.7-105.7-90.8 42.4-157.5 122.4-180.3 216.8 13.4 30.8 32.9 58.3 56.9 81.1 22.7-79.2 74.2-147.8 146.1-192.2zM186.4 109c-15-26.4-34.5-50.1-57.4-70.7C38 88.1-15.8 191.2 4 300.5c33.4-83.1 98.4-152 182.4-191.5zM374 274.1c8.6-99.8-27.3-197.5-97.5-264.4-14.7-1.7-51.6-5.5-98.9 8.5 57.3 59.3 91 138.2 93.5 222.7 32.5 17.7 67.3 29 102.9 33.2zm-124.7 9.5c-31.6 19.3-58.7 43.9-80.2 72.6 82 57.3 184.5 75.1 277.5 47.8 19.7-26.4 34.2-56.8 42.2-89.9-26.6 6.6-53.7 10.4-80.9 10.4-54.6-.1-108.9-14.1-158.6-40.9zM151 383.3c-15.2 26-25.7 54.4-32.1 84.2 37.6 23 81.7 36.5 129.1 36.5 61 0 116.7-22.1 159.9-58.6C295 461.5 204.6 420.6 151 383.3zM331.3 22.7c55.3 70.4 82.5 161.2 74.6 253.6 30.3.2 60.5-4.8 89.7-14.2 0-2 .3-4 .3-6 0-107.8-68.7-199.1-164.6-233.4z"] };
  3531. var faVolumeDown = { prefix: 'fas', iconName: 'volume-down', icon: [384, 512, [], "f027", "M215.03 72.04L126.06 161H24c-13.26 0-24 10.74-24 24v144c0 13.25 10.74 24 24 24h102.06l88.97 88.95c15.03 15.03 40.97 4.47 40.97-16.97V89.02c0-21.47-25.96-31.98-40.97-16.98zm123.2 108.08c-11.58-6.33-26.19-2.16-32.61 9.45-6.39 11.61-2.16 26.2 9.45 32.61C327.98 229.28 336 242.62 336 257c0 14.38-8.02 27.72-20.92 34.81-11.61 6.41-15.84 21-9.45 32.61 6.43 11.66 21.05 15.8 32.61 9.45 28.23-15.55 45.77-45 45.77-76.88s-17.54-61.32-45.78-76.87z"] };
  3532. var faVolumeMute = { prefix: 'fas', iconName: 'volume-mute', icon: [512, 512, [], "f6a9", "M215.03 71.05L126.06 160H24c-13.26 0-24 10.74-24 24v144c0 13.25 10.74 24 24 24h102.06l88.97 88.95c15.03 15.03 40.97 4.47 40.97-16.97V88.02c0-21.46-25.96-31.98-40.97-16.97zM461.64 256l45.64-45.64c6.3-6.3 6.3-16.52 0-22.82l-22.82-22.82c-6.3-6.3-16.52-6.3-22.82 0L416 210.36l-45.64-45.64c-6.3-6.3-16.52-6.3-22.82 0l-22.82 22.82c-6.3 6.3-6.3 16.52 0 22.82L370.36 256l-45.63 45.63c-6.3 6.3-6.3 16.52 0 22.82l22.82 22.82c6.3 6.3 16.52 6.3 22.82 0L416 301.64l45.64 45.64c6.3 6.3 16.52 6.3 22.82 0l22.82-22.82c6.3-6.3 6.3-16.52 0-22.82L461.64 256z"] };
  3533. var faVolumeOff = { prefix: 'fas', iconName: 'volume-off', icon: [257, 512, [], "f026", "M216.36 71.04L127.39 160H25.33c-13.26 0-24 10.74-24 24v144c0 13.25 10.74 24 24 24h102.06l88.97 88.95c15.03 15.03 40.97 4.47 40.97-16.97V88.02c0-21.47-25.96-31.98-40.97-16.98z"] };
  3534. var faVolumeUp = { prefix: 'fas', iconName: 'volume-up', icon: [576, 512, [], "f028", "M215.03 71.05L126.06 160H24c-13.26 0-24 10.74-24 24v144c0 13.25 10.74 24 24 24h102.06l88.97 88.95c15.03 15.03 40.97 4.47 40.97-16.97V88.02c0-21.46-25.96-31.98-40.97-16.97zm233.32-51.08c-11.17-7.33-26.18-4.24-33.51 6.95-7.34 11.17-4.22 26.18 6.95 33.51 66.27 43.49 105.82 116.6 105.82 195.58 0 78.98-39.55 152.09-105.82 195.58-11.17 7.32-14.29 22.34-6.95 33.5 7.04 10.71 21.93 14.56 33.51 6.95C528.27 439.58 576 351.33 576 256S528.27 72.43 448.35 19.97zM480 256c0-63.53-32.06-121.94-85.77-156.24-11.19-7.14-26.03-3.82-33.12 7.46s-3.78 26.21 7.41 33.36C408.27 165.97 432 209.11 432 256s-23.73 90.03-63.48 115.42c-11.19 7.14-14.5 22.07-7.41 33.36 6.51 10.36 21.12 15.14 33.12 7.46C447.94 377.94 480 319.54 480 256zm-141.77-76.87c-11.58-6.33-26.19-2.16-32.61 9.45-6.39 11.61-2.16 26.2 9.45 32.61C327.98 228.28 336 241.63 336 256c0 14.38-8.02 27.72-20.92 34.81-11.61 6.41-15.84 21-9.45 32.61 6.43 11.66 21.05 15.8 32.61 9.45 28.23-15.55 45.77-45 45.77-76.88s-17.54-61.32-45.78-76.86z"] };
  3535. var faVrCardboard = { prefix: 'fas', iconName: 'vr-cardboard', icon: [640, 512, [], "f729", "M608 64H32C14.33 64 0 78.33 0 96v320c0 17.67 14.33 32 32 32h160.22c25.19 0 48.03-14.77 58.36-37.74l27.74-61.64C286.21 331.08 302.35 320 320 320s33.79 11.08 41.68 28.62l27.74 61.64C399.75 433.23 422.6 448 447.78 448H608c17.67 0 32-14.33 32-32V96c0-17.67-14.33-32-32-32zM160 304c-35.35 0-64-28.65-64-64s28.65-64 64-64 64 28.65 64 64-28.65 64-64 64zm320 0c-35.35 0-64-28.65-64-64s28.65-64 64-64 64 28.65 64 64-28.65 64-64 64z"] };
  3536. var faWalking = { prefix: 'fas', iconName: 'walking', icon: [320, 512, [], "f554", "M208 96c26.5 0 48-21.5 48-48S234.5 0 208 0s-48 21.5-48 48 21.5 48 48 48zm94.5 149.1l-23.3-11.8-9.7-29.4c-14.7-44.6-55.7-75.8-102.2-75.9-36-.1-55.9 10.1-93.3 25.2-21.6 8.7-39.3 25.2-49.7 46.2L17.6 213c-7.8 15.8-1.5 35 14.2 42.9 15.6 7.9 34.6 1.5 42.5-14.3L81 228c3.5-7 9.3-12.5 16.5-15.4l26.8-10.8-15.2 60.7c-5.2 20.8.4 42.9 14.9 58.8l59.9 65.4c7.2 7.9 12.3 17.4 14.9 27.7l18.3 73.3c4.3 17.1 21.7 27.6 38.8 23.3 17.1-4.3 27.6-21.7 23.3-38.8l-22.2-89c-2.6-10.3-7.7-19.9-14.9-27.7l-45.5-49.7 17.2-68.7 5.5 16.5c5.3 16.1 16.7 29.4 31.7 37l23.3 11.8c15.6 7.9 34.6 1.5 42.5-14.3 7.7-15.7 1.4-35.1-14.3-43zM73.6 385.8c-3.2 8.1-8 15.4-14.2 21.5l-50 50.1c-12.5 12.5-12.5 32.8 0 45.3s32.7 12.5 45.2 0l59.4-59.4c6.1-6.1 10.9-13.4 14.2-21.5l13.5-33.8c-55.3-60.3-38.7-41.8-47.4-53.7l-20.7 51.5z"] };
  3537. var faWallet = { prefix: 'fas', iconName: 'wallet', icon: [512, 512, [], "f555", "M461.2 128H80c-8.84 0-16-7.16-16-16s7.16-16 16-16h384c8.84 0 16-7.16 16-16 0-26.51-21.49-48-48-48H64C28.65 32 0 60.65 0 96v320c0 35.35 28.65 64 64 64h397.2c28.02 0 50.8-21.53 50.8-48V176c0-26.47-22.78-48-50.8-48zM416 336c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"] };
  3538. var faWarehouse = { prefix: 'fas', iconName: 'warehouse', icon: [640, 512, [], "f494", "M504 352H136.4c-4.4 0-8 3.6-8 8l-.1 48c0 4.4 3.6 8 8 8H504c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm0 96H136.1c-4.4 0-8 3.6-8 8l-.1 48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm0-192H136.6c-4.4 0-8 3.6-8 8l-.1 48c0 4.4 3.6 8 8 8H504c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm106.5-139L338.4 3.7a48.15 48.15 0 0 0-36.9 0L29.5 117C11.7 124.5 0 141.9 0 161.3V504c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8V256c0-17.6 14.6-32 32.6-32h382.8c18 0 32.6 14.4 32.6 32v248c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8V161.3c0-19.4-11.7-36.8-29.5-44.3z"] };
  3539. var faWeight = { prefix: 'fas', iconName: 'weight', icon: [512, 512, [], "f496", "M448 64h-25.98C438.44 92.28 448 125.01 448 160c0 105.87-86.13 192-192 192S64 265.87 64 160c0-34.99 9.56-67.72 25.98-96H64C28.71 64 0 92.71 0 128v320c0 35.29 28.71 64 64 64h384c35.29 0 64-28.71 64-64V128c0-35.29-28.71-64-64-64zM256 320c88.37 0 160-71.63 160-160S344.37 0 256 0 96 71.63 96 160s71.63 160 160 160zm-.3-151.94l33.58-78.36c3.5-8.17 12.94-11.92 21.03-8.41 8.12 3.48 11.88 12.89 8.41 21l-33.67 78.55C291.73 188 296 197.45 296 208c0 22.09-17.91 40-40 40s-40-17.91-40-40c0-21.98 17.76-39.77 39.7-39.94z"] };
  3540. var faWeightHanging = { prefix: 'fas', iconName: 'weight-hanging', icon: [512, 512, [], "f5cd", "M510.28 445.86l-73.03-292.13c-3.8-15.19-16.44-25.72-30.87-25.72h-60.25c3.57-10.05 5.88-20.72 5.88-32 0-53.02-42.98-96-96-96s-96 42.98-96 96c0 11.28 2.3 21.95 5.88 32h-60.25c-14.43 0-27.08 10.54-30.87 25.72L1.72 445.86C-6.61 479.17 16.38 512 48.03 512h415.95c31.64 0 54.63-32.83 46.3-66.14zM256 128c-17.64 0-32-14.36-32-32s14.36-32 32-32 32 14.36 32 32-14.36 32-32 32z"] };
  3541. var faWheelchair = { prefix: 'fas', iconName: 'wheelchair', icon: [512, 512, [], "f193", "M496.101 385.669l14.227 28.663c3.929 7.915.697 17.516-7.218 21.445l-65.465 32.886c-16.049 7.967-35.556 1.194-43.189-15.055L331.679 320H192c-15.925 0-29.426-11.71-31.679-27.475C126.433 55.308 128.38 70.044 128 64c0-36.358 30.318-65.635 67.052-63.929 33.271 1.545 60.048 28.905 60.925 62.201.868 32.933-23.152 60.423-54.608 65.039l4.67 32.69H336c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16H215.182l4.572 32H352a32 32 0 0 1 28.962 18.392L438.477 396.8l36.178-18.349c7.915-3.929 17.517-.697 21.446 7.218zM311.358 352h-24.506c-7.788 54.204-54.528 96-110.852 96-61.757 0-112-50.243-112-112 0-41.505 22.694-77.809 56.324-97.156-3.712-25.965-6.844-47.86-9.488-66.333C45.956 198.464 0 261.963 0 336c0 97.047 78.953 176 176 176 71.87 0 133.806-43.308 161.11-105.192L311.358 352z"] };
  3542. var faWifi = { prefix: 'fas', iconName: 'wifi', icon: [640, 512, [], "f1eb", "M634.91 154.88C457.74-8.99 182.19-8.93 5.09 154.88c-6.66 6.16-6.79 16.59-.35 22.98l34.24 33.97c6.14 6.1 16.02 6.23 22.4.38 145.92-133.68 371.3-133.71 517.25 0 6.38 5.85 16.26 5.71 22.4-.38l34.24-33.97c6.43-6.39 6.3-16.82-.36-22.98zM320 352c-35.35 0-64 28.65-64 64s28.65 64 64 64 64-28.65 64-64-28.65-64-64-64zm202.67-83.59c-115.26-101.93-290.21-101.82-405.34 0-6.9 6.1-7.12 16.69-.57 23.15l34.44 33.99c6 5.92 15.66 6.32 22.05.8 83.95-72.57 209.74-72.41 293.49 0 6.39 5.52 16.05 5.13 22.05-.8l34.44-33.99c6.56-6.46 6.33-17.06-.56-23.15z"] };
  3543. var faWind = { prefix: 'fas', iconName: 'wind', icon: [512, 512, [], "f72e", "M156.66 256H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h142.19c15.95 0 30.77 10.85 33.37 26.58C194.86 366.6 179.42 384 160 384c-14.11 0-26.13-9.19-30.37-21.9-2.11-6.31-8.6-10.1-15.25-10.1H81.63c-9.8 0-17.73 8.81-15.86 18.43C74.39 414.58 113.37 448 160 448c57.09 0 102.7-50.09 95.19-108.63-6.21-48.39-49.74-83.37-98.53-83.37zM16 224h336c59.7 0 106.83-54.76 93.83-116.69-7.61-36.23-36.91-65.53-73.14-73.14-55.44-11.64-105.13 24.91-114.93 75.53-1.86 9.57 6.09 18.3 15.84 18.3h32.8c6.65 0 13.14-3.79 15.25-10.1C325.88 105.19 337.89 96 352 96c19.42 0 34.86 17.39 31.55 37.41-2.6 15.73-17.42 26.59-33.37 26.59H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16zm384 32H243.68c19.34 16.57 33.19 38.79 39.77 64H400c26.47 0 48 21.53 48 48s-21.53 48-48 48c-17.86 0-33.33-9.86-41.56-24.38-2.85-5.03-8.69-7.62-14.47-7.62h-33.82c-10.91 0-18.96 10.81-15.35 21.1 17.77 50.6 70.54 84.75 129.41 72.35 41.22-8.69 75.1-41.65 84.67-82.68C525.98 321.46 470.48 256 400 256z"] };
  3544. var faWindowClose = { prefix: 'fas', iconName: 'window-close', icon: [512, 512, [], "f410", "M464 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-83.6 290.5c4.8 4.8 4.8 12.6 0 17.4l-40.5 40.5c-4.8 4.8-12.6 4.8-17.4 0L256 313.3l-66.5 67.1c-4.8 4.8-12.6 4.8-17.4 0l-40.5-40.5c-4.8-4.8-4.8-12.6 0-17.4l67.1-66.5-67.1-66.5c-4.8-4.8-4.8-12.6 0-17.4l40.5-40.5c4.8-4.8 12.6-4.8 17.4 0l66.5 67.1 66.5-67.1c4.8-4.8 12.6-4.8 17.4 0l40.5 40.5c4.8 4.8 4.8 12.6 0 17.4L313.3 256l67.1 66.5z"] };
  3545. var faWindowMaximize = { prefix: 'fas', iconName: 'window-maximize', icon: [512, 512, [], "f2d0", "M464 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-16 160H64v-84c0-6.6 5.4-12 12-12h360c6.6 0 12 5.4 12 12v84z"] };
  3546. var faWindowMinimize = { prefix: 'fas', iconName: 'window-minimize', icon: [512, 512, [], "f2d1", "M464 352H48c-26.5 0-48 21.5-48 48v32c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48v-32c0-26.5-21.5-48-48-48z"] };
  3547. var faWindowRestore = { prefix: 'fas', iconName: 'window-restore', icon: [512, 512, [], "f2d2", "M512 48v288c0 26.5-21.5 48-48 48h-48V176c0-44.1-35.9-80-80-80H128V48c0-26.5 21.5-48 48-48h288c26.5 0 48 21.5 48 48zM384 176v288c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V176c0-26.5 21.5-48 48-48h288c26.5 0 48 21.5 48 48zm-68 28c0-6.6-5.4-12-12-12H76c-6.6 0-12 5.4-12 12v52h252v-52z"] };
  3548. var faWineBottle = { prefix: 'fas', iconName: 'wine-bottle', icon: [512, 512, [], "f72f", "M507.31 72.57L439.43 4.69c-6.25-6.25-16.38-6.25-22.63 0l-22.63 22.63c-6.25 6.25-6.25 16.38 0 22.63l-76.67 76.67c-46.58-19.7-102.4-10.73-140.37 27.23L18.75 312.23c-24.99 24.99-24.99 65.52 0 90.51l90.51 90.51c24.99 24.99 65.52 24.99 90.51 0l158.39-158.39c37.96-37.96 46.93-93.79 27.23-140.37l76.67-76.67c6.25 6.25 16.38 6.25 22.63 0l22.63-22.63c6.24-6.24 6.24-16.37-.01-22.62zM179.22 423.29l-90.51-90.51 122.04-122.04 90.51 90.51-122.04 122.04z"] };
  3549. var faWineGlass = { prefix: 'fas', iconName: 'wine-glass', icon: [288, 512, [], "f4e3", "M216 464h-40V346.81c68.47-15.89 118.05-79.91 111.4-154.16l-15.95-178.1C270.71 6.31 263.9 0 255.74 0H32.26c-8.15 0-14.97 6.31-15.7 14.55L.6 192.66C-6.05 266.91 43.53 330.93 112 346.82V464H72c-22.09 0-40 17.91-40 40 0 4.42 3.58 8 8 8h208c4.42 0 8-3.58 8-8 0-22.09-17.91-40-40-40z"] };
  3550. var faWineGlassAlt = { prefix: 'fas', iconName: 'wine-glass-alt', icon: [288, 512, [], "f5ce", "M216 464h-40V346.81c68.47-15.89 118.05-79.91 111.4-154.16l-15.95-178.1C270.71 6.31 263.9 0 255.74 0H32.26c-8.15 0-14.97 6.31-15.7 14.55L.6 192.66C-6.05 266.91 43.53 330.93 112 346.82V464H72c-22.09 0-40 17.91-40 40 0 4.42 3.58 8 8 8h208c4.42 0 8-3.58 8-8 0-22.09-17.91-40-40-40zM61.75 48h164.5l7.17 80H54.58l7.17-80z"] };
  3551. var faWonSign = { prefix: 'fas', iconName: 'won-sign', icon: [576, 512, [], "f159", "M564 192c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-48.028l18.572-80.61c1.732-7.518-3.978-14.694-11.693-14.694h-46.107a11.998 11.998 0 0 0-11.736 9.5L450.73 128H340.839l-19.725-85.987a12 12 0 0 0-11.696-9.317H265.43a12 12 0 0 0-11.687 9.277L233.696 128H124.975L107.5 42.299a12 12 0 0 0-11.758-9.602H53.628c-7.686 0-13.39 7.124-11.709 14.624L60 128H12c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h62.342l7.171 32H12c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h83.856l40.927 182.624A12 12 0 0 0 148.492 480h56.767c5.583 0 10.428-3.85 11.689-9.288L259.335 288h55.086l42.386 182.712A12 12 0 0 0 368.496 480h56.826a12 12 0 0 0 11.694-9.306L479.108 288H564c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-70.146l7.373-32H564zm-425.976 0h80.757l-7.457 32h-66.776l-6.524-32zm45.796 150.029c-6.194 25.831-6.758 47.25-7.321 47.25h-1.126s-1.689-22.05-6.758-47.25L157.599 288h38.812l-12.591 54.029zM274.182 224l1.996-8.602c1.856-7.962 3.457-15.968 4.803-23.398h11.794c1.347 7.43 2.947 15.436 4.803 23.398l1.996 8.602h-25.392zm130.959 118.029c-5.068 25.2-6.758 47.25-6.758 47.25h-1.126c-.563 0-1.126-21.42-7.321-47.25L377.542 288h39.107l-11.508 54.029zM430.281 224h-67.42l-7.34-32h81.577l-6.817 32z"] };
  3552. var faWrench = { prefix: 'fas', iconName: 'wrench', icon: [512, 512, [], "f0ad", "M507.73 109.1c-2.24-9.03-13.54-12.09-20.12-5.51l-74.36 74.36-67.88-11.31-11.31-67.88 74.36-74.36c6.62-6.62 3.43-17.9-5.66-20.16-47.38-11.74-99.55.91-136.58 37.93-39.64 39.64-50.55 97.1-34.05 147.2L18.74 402.76c-24.99 24.99-24.99 65.51 0 90.5 24.99 24.99 65.51 24.99 90.5 0l213.21-213.21c50.12 16.71 107.47 5.68 147.37-34.22 37.07-37.07 49.7-89.32 37.91-136.73zM64 472c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24z"] };
  3553. var faXRay = { prefix: 'fas', iconName: 'x-ray', icon: [640, 512, [], "f497", "M240 384c-8.8 0-16 7.2-16 16s7.2 16 16 16 16-7.2 16-16-7.2-16-16-16zm160 32c8.8 0 16-7.2 16-16s-7.2-16-16-16-16 7.2-16 16 7.2 16 16 16zM624 0H16C7.2 0 0 7.2 0 16v32c0 8.8 7.2 16 16 16h608c8.8 0 16-7.2 16-16V16c0-8.8-7.2-16-16-16zm0 448h-48V96H64v352H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h608c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zM480 248c0 4.4-3.6 8-8 8H336v32h104c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H336v32h64c26.5 0 48 21.5 48 48s-21.5 48-48 48-48-21.5-48-48v-16h-64v16c0 26.5-21.5 48-48 48s-48-21.5-48-48 21.5-48 48-48h64v-32H200c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h104v-32H168c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h136v-32H200c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h104v-24c0-4.4 3.6-8 8-8h16c4.4 0 8 3.6 8 8v24h104c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H336v32h136c4.4 0 8 3.6 8 8v16z"] };
  3554. var faYenSign = { prefix: 'fas', iconName: 'yen-sign', icon: [384, 512, [], "f157", "M351.208 32h-65.277a12 12 0 0 0-10.778 6.724l-55.39 113.163c-14.513 34.704-27.133 71.932-27.133 71.932h-1.262s-12.62-37.228-27.133-71.932l-55.39-113.163A11.997 11.997 0 0 0 98.068 32H32.792c-9.057 0-14.85 9.65-10.59 17.643L102.322 200H44c-6.627 0-12 5.373-12 12v32c0 6.627 5.373 12 12 12h88.162L152 293.228V320H44c-6.627 0-12 5.373-12 12v32c0 6.627 5.373 12 12 12h108v92c0 6.627 5.373 12 12 12h56c6.627 0 12-5.373 12-12v-92h108c6.627 0 12-5.373 12-12v-32c0-6.627-5.373-12-12-12H232v-26.772L251.838 256H340c6.627 0 12-5.373 12-12v-32c0-6.627-5.373-12-12-12h-58.322l80.12-150.357C366.058 41.65 360.266 32 351.208 32z"] };
  3555. var faYinYang = { prefix: 'fas', iconName: 'yin-yang', icon: [496, 512, [], "f6ad", "M248 8C111.03 8 0 119.03 0 256s111.03 248 248 248 248-111.03 248-248S384.97 8 248 8zm0 376c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm0-128c-53.02 0-96 42.98-96 96s42.98 96 96 96c-106.04 0-192-85.96-192-192S141.96 64 248 64c53.02 0 96 42.98 96 96s-42.98 96-96 96zm0-128c-17.67 0-32 14.33-32 32s14.33 32 32 32 32-14.33 32-32-14.33-32-32-32z"] };
  3556. var _iconsCache = {
  3557. faAd: faAd,
  3558. faAddressBook: faAddressBook,
  3559. faAddressCard: faAddressCard,
  3560. faAdjust: faAdjust,
  3561. faAirFreshener: faAirFreshener,
  3562. faAlignCenter: faAlignCenter,
  3563. faAlignJustify: faAlignJustify,
  3564. faAlignLeft: faAlignLeft,
  3565. faAlignRight: faAlignRight,
  3566. faAllergies: faAllergies,
  3567. faAmbulance: faAmbulance,
  3568. faAmericanSignLanguageInterpreting: faAmericanSignLanguageInterpreting,
  3569. faAnchor: faAnchor,
  3570. faAngleDoubleDown: faAngleDoubleDown,
  3571. faAngleDoubleLeft: faAngleDoubleLeft,
  3572. faAngleDoubleRight: faAngleDoubleRight,
  3573. faAngleDoubleUp: faAngleDoubleUp,
  3574. faAngleDown: faAngleDown,
  3575. faAngleLeft: faAngleLeft,
  3576. faAngleRight: faAngleRight,
  3577. faAngleUp: faAngleUp,
  3578. faAngry: faAngry,
  3579. faAnkh: faAnkh,
  3580. faAppleAlt: faAppleAlt,
  3581. faArchive: faArchive,
  3582. faArchway: faArchway,
  3583. faArrowAltCircleDown: faArrowAltCircleDown,
  3584. faArrowAltCircleLeft: faArrowAltCircleLeft,
  3585. faArrowAltCircleRight: faArrowAltCircleRight,
  3586. faArrowAltCircleUp: faArrowAltCircleUp,
  3587. faArrowCircleDown: faArrowCircleDown,
  3588. faArrowCircleLeft: faArrowCircleLeft,
  3589. faArrowCircleRight: faArrowCircleRight,
  3590. faArrowCircleUp: faArrowCircleUp,
  3591. faArrowDown: faArrowDown,
  3592. faArrowLeft: faArrowLeft,
  3593. faArrowRight: faArrowRight,
  3594. faArrowUp: faArrowUp,
  3595. faArrowsAlt: faArrowsAlt,
  3596. faArrowsAltH: faArrowsAltH,
  3597. faArrowsAltV: faArrowsAltV,
  3598. faAssistiveListeningSystems: faAssistiveListeningSystems,
  3599. faAsterisk: faAsterisk,
  3600. faAt: faAt,
  3601. faAtlas: faAtlas,
  3602. faAtom: faAtom,
  3603. faAudioDescription: faAudioDescription,
  3604. faAward: faAward,
  3605. faBackspace: faBackspace,
  3606. faBackward: faBackward,
  3607. faBalanceScale: faBalanceScale,
  3608. faBan: faBan,
  3609. faBandAid: faBandAid,
  3610. faBarcode: faBarcode,
  3611. faBars: faBars,
  3612. faBaseballBall: faBaseballBall,
  3613. faBasketballBall: faBasketballBall,
  3614. faBath: faBath,
  3615. faBatteryEmpty: faBatteryEmpty,
  3616. faBatteryFull: faBatteryFull,
  3617. faBatteryHalf: faBatteryHalf,
  3618. faBatteryQuarter: faBatteryQuarter,
  3619. faBatteryThreeQuarters: faBatteryThreeQuarters,
  3620. faBed: faBed,
  3621. faBeer: faBeer,
  3622. faBell: faBell,
  3623. faBellSlash: faBellSlash,
  3624. faBezierCurve: faBezierCurve,
  3625. faBible: faBible,
  3626. faBicycle: faBicycle,
  3627. faBinoculars: faBinoculars,
  3628. faBirthdayCake: faBirthdayCake,
  3629. faBlender: faBlender,
  3630. faBlenderPhone: faBlenderPhone,
  3631. faBlind: faBlind,
  3632. faBold: faBold,
  3633. faBolt: faBolt,
  3634. faBomb: faBomb,
  3635. faBone: faBone,
  3636. faBong: faBong,
  3637. faBook: faBook,
  3638. faBookDead: faBookDead,
  3639. faBookOpen: faBookOpen,
  3640. faBookReader: faBookReader,
  3641. faBookmark: faBookmark,
  3642. faBowlingBall: faBowlingBall,
  3643. faBox: faBox,
  3644. faBoxOpen: faBoxOpen,
  3645. faBoxes: faBoxes,
  3646. faBraille: faBraille,
  3647. faBrain: faBrain,
  3648. faBriefcase: faBriefcase,
  3649. faBriefcaseMedical: faBriefcaseMedical,
  3650. faBroadcastTower: faBroadcastTower,
  3651. faBroom: faBroom,
  3652. faBrush: faBrush,
  3653. faBug: faBug,
  3654. faBuilding: faBuilding,
  3655. faBullhorn: faBullhorn,
  3656. faBullseye: faBullseye,
  3657. faBurn: faBurn,
  3658. faBus: faBus,
  3659. faBusAlt: faBusAlt,
  3660. faBusinessTime: faBusinessTime,
  3661. faCalculator: faCalculator,
  3662. faCalendar: faCalendar,
  3663. faCalendarAlt: faCalendarAlt,
  3664. faCalendarCheck: faCalendarCheck,
  3665. faCalendarMinus: faCalendarMinus,
  3666. faCalendarPlus: faCalendarPlus,
  3667. faCalendarTimes: faCalendarTimes,
  3668. faCamera: faCamera,
  3669. faCameraRetro: faCameraRetro,
  3670. faCampground: faCampground,
  3671. faCannabis: faCannabis,
  3672. faCapsules: faCapsules,
  3673. faCar: faCar,
  3674. faCarAlt: faCarAlt,
  3675. faCarBattery: faCarBattery,
  3676. faCarCrash: faCarCrash,
  3677. faCarSide: faCarSide,
  3678. faCaretDown: faCaretDown,
  3679. faCaretLeft: faCaretLeft,
  3680. faCaretRight: faCaretRight,
  3681. faCaretSquareDown: faCaretSquareDown,
  3682. faCaretSquareLeft: faCaretSquareLeft,
  3683. faCaretSquareRight: faCaretSquareRight,
  3684. faCaretSquareUp: faCaretSquareUp,
  3685. faCaretUp: faCaretUp,
  3686. faCartArrowDown: faCartArrowDown,
  3687. faCartPlus: faCartPlus,
  3688. faCat: faCat,
  3689. faCertificate: faCertificate,
  3690. faChair: faChair,
  3691. faChalkboard: faChalkboard,
  3692. faChalkboardTeacher: faChalkboardTeacher,
  3693. faChargingStation: faChargingStation,
  3694. faChartArea: faChartArea,
  3695. faChartBar: faChartBar,
  3696. faChartLine: faChartLine,
  3697. faChartPie: faChartPie,
  3698. faCheck: faCheck,
  3699. faCheckCircle: faCheckCircle,
  3700. faCheckDouble: faCheckDouble,
  3701. faCheckSquare: faCheckSquare,
  3702. faChess: faChess,
  3703. faChessBishop: faChessBishop,
  3704. faChessBoard: faChessBoard,
  3705. faChessKing: faChessKing,
  3706. faChessKnight: faChessKnight,
  3707. faChessPawn: faChessPawn,
  3708. faChessQueen: faChessQueen,
  3709. faChessRook: faChessRook,
  3710. faChevronCircleDown: faChevronCircleDown,
  3711. faChevronCircleLeft: faChevronCircleLeft,
  3712. faChevronCircleRight: faChevronCircleRight,
  3713. faChevronCircleUp: faChevronCircleUp,
  3714. faChevronDown: faChevronDown,
  3715. faChevronLeft: faChevronLeft,
  3716. faChevronRight: faChevronRight,
  3717. faChevronUp: faChevronUp,
  3718. faChild: faChild,
  3719. faChurch: faChurch,
  3720. faCircle: faCircle,
  3721. faCircleNotch: faCircleNotch,
  3722. faCity: faCity,
  3723. faClipboard: faClipboard,
  3724. faClipboardCheck: faClipboardCheck,
  3725. faClipboardList: faClipboardList,
  3726. faClock: faClock,
  3727. faClone: faClone,
  3728. faClosedCaptioning: faClosedCaptioning,
  3729. faCloud: faCloud,
  3730. faCloudDownloadAlt: faCloudDownloadAlt,
  3731. faCloudMoon: faCloudMoon,
  3732. faCloudSun: faCloudSun,
  3733. faCloudUploadAlt: faCloudUploadAlt,
  3734. faCocktail: faCocktail,
  3735. faCode: faCode,
  3736. faCodeBranch: faCodeBranch,
  3737. faCoffee: faCoffee,
  3738. faCog: faCog,
  3739. faCogs: faCogs,
  3740. faCoins: faCoins,
  3741. faColumns: faColumns,
  3742. faComment: faComment,
  3743. faCommentAlt: faCommentAlt,
  3744. faCommentDollar: faCommentDollar,
  3745. faCommentDots: faCommentDots,
  3746. faCommentSlash: faCommentSlash,
  3747. faComments: faComments,
  3748. faCommentsDollar: faCommentsDollar,
  3749. faCompactDisc: faCompactDisc,
  3750. faCompass: faCompass,
  3751. faCompress: faCompress,
  3752. faConciergeBell: faConciergeBell,
  3753. faCookie: faCookie,
  3754. faCookieBite: faCookieBite,
  3755. faCopy: faCopy,
  3756. faCopyright: faCopyright,
  3757. faCouch: faCouch,
  3758. faCreditCard: faCreditCard,
  3759. faCrop: faCrop,
  3760. faCropAlt: faCropAlt,
  3761. faCross: faCross,
  3762. faCrosshairs: faCrosshairs,
  3763. faCrow: faCrow,
  3764. faCrown: faCrown,
  3765. faCube: faCube,
  3766. faCubes: faCubes,
  3767. faCut: faCut,
  3768. faDatabase: faDatabase,
  3769. faDeaf: faDeaf,
  3770. faDesktop: faDesktop,
  3771. faDharmachakra: faDharmachakra,
  3772. faDiagnoses: faDiagnoses,
  3773. faDice: faDice,
  3774. faDiceD20: faDiceD20,
  3775. faDiceD6: faDiceD6,
  3776. faDiceFive: faDiceFive,
  3777. faDiceFour: faDiceFour,
  3778. faDiceOne: faDiceOne,
  3779. faDiceSix: faDiceSix,
  3780. faDiceThree: faDiceThree,
  3781. faDiceTwo: faDiceTwo,
  3782. faDigitalTachograph: faDigitalTachograph,
  3783. faDirections: faDirections,
  3784. faDivide: faDivide,
  3785. faDizzy: faDizzy,
  3786. faDna: faDna,
  3787. faDog: faDog,
  3788. faDollarSign: faDollarSign,
  3789. faDolly: faDolly,
  3790. faDollyFlatbed: faDollyFlatbed,
  3791. faDonate: faDonate,
  3792. faDoorClosed: faDoorClosed,
  3793. faDoorOpen: faDoorOpen,
  3794. faDotCircle: faDotCircle,
  3795. faDove: faDove,
  3796. faDownload: faDownload,
  3797. faDraftingCompass: faDraftingCompass,
  3798. faDragon: faDragon,
  3799. faDrawPolygon: faDrawPolygon,
  3800. faDrum: faDrum,
  3801. faDrumSteelpan: faDrumSteelpan,
  3802. faDrumstickBite: faDrumstickBite,
  3803. faDumbbell: faDumbbell,
  3804. faDungeon: faDungeon,
  3805. faEdit: faEdit,
  3806. faEject: faEject,
  3807. faEllipsisH: faEllipsisH,
  3808. faEllipsisV: faEllipsisV,
  3809. faEnvelope: faEnvelope,
  3810. faEnvelopeOpen: faEnvelopeOpen,
  3811. faEnvelopeOpenText: faEnvelopeOpenText,
  3812. faEnvelopeSquare: faEnvelopeSquare,
  3813. faEquals: faEquals,
  3814. faEraser: faEraser,
  3815. faEuroSign: faEuroSign,
  3816. faExchangeAlt: faExchangeAlt,
  3817. faExclamation: faExclamation,
  3818. faExclamationCircle: faExclamationCircle,
  3819. faExclamationTriangle: faExclamationTriangle,
  3820. faExpand: faExpand,
  3821. faExpandArrowsAlt: faExpandArrowsAlt,
  3822. faExternalLinkAlt: faExternalLinkAlt,
  3823. faExternalLinkSquareAlt: faExternalLinkSquareAlt,
  3824. faEye: faEye,
  3825. faEyeDropper: faEyeDropper,
  3826. faEyeSlash: faEyeSlash,
  3827. faFastBackward: faFastBackward,
  3828. faFastForward: faFastForward,
  3829. faFax: faFax,
  3830. faFeather: faFeather,
  3831. faFeatherAlt: faFeatherAlt,
  3832. faFemale: faFemale,
  3833. faFighterJet: faFighterJet,
  3834. faFile: faFile,
  3835. faFileAlt: faFileAlt,
  3836. faFileArchive: faFileArchive,
  3837. faFileAudio: faFileAudio,
  3838. faFileCode: faFileCode,
  3839. faFileContract: faFileContract,
  3840. faFileCsv: faFileCsv,
  3841. faFileDownload: faFileDownload,
  3842. faFileExcel: faFileExcel,
  3843. faFileExport: faFileExport,
  3844. faFileImage: faFileImage,
  3845. faFileImport: faFileImport,
  3846. faFileInvoice: faFileInvoice,
  3847. faFileInvoiceDollar: faFileInvoiceDollar,
  3848. faFileMedical: faFileMedical,
  3849. faFileMedicalAlt: faFileMedicalAlt,
  3850. faFilePdf: faFilePdf,
  3851. faFilePowerpoint: faFilePowerpoint,
  3852. faFilePrescription: faFilePrescription,
  3853. faFileSignature: faFileSignature,
  3854. faFileUpload: faFileUpload,
  3855. faFileVideo: faFileVideo,
  3856. faFileWord: faFileWord,
  3857. faFill: faFill,
  3858. faFillDrip: faFillDrip,
  3859. faFilm: faFilm,
  3860. faFilter: faFilter,
  3861. faFingerprint: faFingerprint,
  3862. faFire: faFire,
  3863. faFireExtinguisher: faFireExtinguisher,
  3864. faFirstAid: faFirstAid,
  3865. faFish: faFish,
  3866. faFistRaised: faFistRaised,
  3867. faFlag: faFlag,
  3868. faFlagCheckered: faFlagCheckered,
  3869. faFlask: faFlask,
  3870. faFlushed: faFlushed,
  3871. faFolder: faFolder,
  3872. faFolderMinus: faFolderMinus,
  3873. faFolderOpen: faFolderOpen,
  3874. faFolderPlus: faFolderPlus,
  3875. faFont: faFont,
  3876. faFontAwesomeLogoFull: faFontAwesomeLogoFull,
  3877. faFootballBall: faFootballBall,
  3878. faForward: faForward,
  3879. faFrog: faFrog,
  3880. faFrown: faFrown,
  3881. faFrownOpen: faFrownOpen,
  3882. faFunnelDollar: faFunnelDollar,
  3883. faFutbol: faFutbol,
  3884. faGamepad: faGamepad,
  3885. faGasPump: faGasPump,
  3886. faGavel: faGavel,
  3887. faGem: faGem,
  3888. faGenderless: faGenderless,
  3889. faGhost: faGhost,
  3890. faGift: faGift,
  3891. faGlassMartini: faGlassMartini,
  3892. faGlassMartiniAlt: faGlassMartiniAlt,
  3893. faGlasses: faGlasses,
  3894. faGlobe: faGlobe,
  3895. faGlobeAfrica: faGlobeAfrica,
  3896. faGlobeAmericas: faGlobeAmericas,
  3897. faGlobeAsia: faGlobeAsia,
  3898. faGolfBall: faGolfBall,
  3899. faGopuram: faGopuram,
  3900. faGraduationCap: faGraduationCap,
  3901. faGreaterThan: faGreaterThan,
  3902. faGreaterThanEqual: faGreaterThanEqual,
  3903. faGrimace: faGrimace,
  3904. faGrin: faGrin,
  3905. faGrinAlt: faGrinAlt,
  3906. faGrinBeam: faGrinBeam,
  3907. faGrinBeamSweat: faGrinBeamSweat,
  3908. faGrinHearts: faGrinHearts,
  3909. faGrinSquint: faGrinSquint,
  3910. faGrinSquintTears: faGrinSquintTears,
  3911. faGrinStars: faGrinStars,
  3912. faGrinTears: faGrinTears,
  3913. faGrinTongue: faGrinTongue,
  3914. faGrinTongueSquint: faGrinTongueSquint,
  3915. faGrinTongueWink: faGrinTongueWink,
  3916. faGrinWink: faGrinWink,
  3917. faGripHorizontal: faGripHorizontal,
  3918. faGripVertical: faGripVertical,
  3919. faHSquare: faHSquare,
  3920. faHammer: faHammer,
  3921. faHamsa: faHamsa,
  3922. faHandHolding: faHandHolding,
  3923. faHandHoldingHeart: faHandHoldingHeart,
  3924. faHandHoldingUsd: faHandHoldingUsd,
  3925. faHandLizard: faHandLizard,
  3926. faHandPaper: faHandPaper,
  3927. faHandPeace: faHandPeace,
  3928. faHandPointDown: faHandPointDown,
  3929. faHandPointLeft: faHandPointLeft,
  3930. faHandPointRight: faHandPointRight,
  3931. faHandPointUp: faHandPointUp,
  3932. faHandPointer: faHandPointer,
  3933. faHandRock: faHandRock,
  3934. faHandScissors: faHandScissors,
  3935. faHandSpock: faHandSpock,
  3936. faHands: faHands,
  3937. faHandsHelping: faHandsHelping,
  3938. faHandshake: faHandshake,
  3939. faHanukiah: faHanukiah,
  3940. faHashtag: faHashtag,
  3941. faHatWizard: faHatWizard,
  3942. faHaykal: faHaykal,
  3943. faHdd: faHdd,
  3944. faHeading: faHeading,
  3945. faHeadphones: faHeadphones,
  3946. faHeadphonesAlt: faHeadphonesAlt,
  3947. faHeadset: faHeadset,
  3948. faHeart: faHeart,
  3949. faHeartbeat: faHeartbeat,
  3950. faHelicopter: faHelicopter,
  3951. faHighlighter: faHighlighter,
  3952. faHiking: faHiking,
  3953. faHippo: faHippo,
  3954. faHistory: faHistory,
  3955. faHockeyPuck: faHockeyPuck,
  3956. faHome: faHome,
  3957. faHorse: faHorse,
  3958. faHospital: faHospital,
  3959. faHospitalAlt: faHospitalAlt,
  3960. faHospitalSymbol: faHospitalSymbol,
  3961. faHotTub: faHotTub,
  3962. faHotel: faHotel,
  3963. faHourglass: faHourglass,
  3964. faHourglassEnd: faHourglassEnd,
  3965. faHourglassHalf: faHourglassHalf,
  3966. faHourglassStart: faHourglassStart,
  3967. faHouseDamage: faHouseDamage,
  3968. faHryvnia: faHryvnia,
  3969. faICursor: faICursor,
  3970. faIdBadge: faIdBadge,
  3971. faIdCard: faIdCard,
  3972. faIdCardAlt: faIdCardAlt,
  3973. faImage: faImage,
  3974. faImages: faImages,
  3975. faInbox: faInbox,
  3976. faIndent: faIndent,
  3977. faIndustry: faIndustry,
  3978. faInfinity: faInfinity,
  3979. faInfo: faInfo,
  3980. faInfoCircle: faInfoCircle,
  3981. faItalic: faItalic,
  3982. faJedi: faJedi,
  3983. faJoint: faJoint,
  3984. faJournalWhills: faJournalWhills,
  3985. faKaaba: faKaaba,
  3986. faKey: faKey,
  3987. faKeyboard: faKeyboard,
  3988. faKhanda: faKhanda,
  3989. faKiss: faKiss,
  3990. faKissBeam: faKissBeam,
  3991. faKissWinkHeart: faKissWinkHeart,
  3992. faKiwiBird: faKiwiBird,
  3993. faLandmark: faLandmark,
  3994. faLanguage: faLanguage,
  3995. faLaptop: faLaptop,
  3996. faLaptopCode: faLaptopCode,
  3997. faLaugh: faLaugh,
  3998. faLaughBeam: faLaughBeam,
  3999. faLaughSquint: faLaughSquint,
  4000. faLaughWink: faLaughWink,
  4001. faLayerGroup: faLayerGroup,
  4002. faLeaf: faLeaf,
  4003. faLemon: faLemon,
  4004. faLessThan: faLessThan,
  4005. faLessThanEqual: faLessThanEqual,
  4006. faLevelDownAlt: faLevelDownAlt,
  4007. faLevelUpAlt: faLevelUpAlt,
  4008. faLifeRing: faLifeRing,
  4009. faLightbulb: faLightbulb,
  4010. faLink: faLink,
  4011. faLiraSign: faLiraSign,
  4012. faList: faList,
  4013. faListAlt: faListAlt,
  4014. faListOl: faListOl,
  4015. faListUl: faListUl,
  4016. faLocationArrow: faLocationArrow,
  4017. faLock: faLock,
  4018. faLockOpen: faLockOpen,
  4019. faLongArrowAltDown: faLongArrowAltDown,
  4020. faLongArrowAltLeft: faLongArrowAltLeft,
  4021. faLongArrowAltRight: faLongArrowAltRight,
  4022. faLongArrowAltUp: faLongArrowAltUp,
  4023. faLowVision: faLowVision,
  4024. faLuggageCart: faLuggageCart,
  4025. faMagic: faMagic,
  4026. faMagnet: faMagnet,
  4027. faMailBulk: faMailBulk,
  4028. faMale: faMale,
  4029. faMap: faMap,
  4030. faMapMarked: faMapMarked,
  4031. faMapMarkedAlt: faMapMarkedAlt,
  4032. faMapMarker: faMapMarker,
  4033. faMapMarkerAlt: faMapMarkerAlt,
  4034. faMapPin: faMapPin,
  4035. faMapSigns: faMapSigns,
  4036. faMarker: faMarker,
  4037. faMars: faMars,
  4038. faMarsDouble: faMarsDouble,
  4039. faMarsStroke: faMarsStroke,
  4040. faMarsStrokeH: faMarsStrokeH,
  4041. faMarsStrokeV: faMarsStrokeV,
  4042. faMask: faMask,
  4043. faMedal: faMedal,
  4044. faMedkit: faMedkit,
  4045. faMeh: faMeh,
  4046. faMehBlank: faMehBlank,
  4047. faMehRollingEyes: faMehRollingEyes,
  4048. faMemory: faMemory,
  4049. faMenorah: faMenorah,
  4050. faMercury: faMercury,
  4051. faMicrochip: faMicrochip,
  4052. faMicrophone: faMicrophone,
  4053. faMicrophoneAlt: faMicrophoneAlt,
  4054. faMicrophoneAltSlash: faMicrophoneAltSlash,
  4055. faMicrophoneSlash: faMicrophoneSlash,
  4056. faMicroscope: faMicroscope,
  4057. faMinus: faMinus,
  4058. faMinusCircle: faMinusCircle,
  4059. faMinusSquare: faMinusSquare,
  4060. faMobile: faMobile,
  4061. faMobileAlt: faMobileAlt,
  4062. faMoneyBill: faMoneyBill,
  4063. faMoneyBillAlt: faMoneyBillAlt,
  4064. faMoneyBillWave: faMoneyBillWave,
  4065. faMoneyBillWaveAlt: faMoneyBillWaveAlt,
  4066. faMoneyCheck: faMoneyCheck,
  4067. faMoneyCheckAlt: faMoneyCheckAlt,
  4068. faMonument: faMonument,
  4069. faMoon: faMoon,
  4070. faMortarPestle: faMortarPestle,
  4071. faMosque: faMosque,
  4072. faMotorcycle: faMotorcycle,
  4073. faMountain: faMountain,
  4074. faMousePointer: faMousePointer,
  4075. faMusic: faMusic,
  4076. faNetworkWired: faNetworkWired,
  4077. faNeuter: faNeuter,
  4078. faNewspaper: faNewspaper,
  4079. faNotEqual: faNotEqual,
  4080. faNotesMedical: faNotesMedical,
  4081. faObjectGroup: faObjectGroup,
  4082. faObjectUngroup: faObjectUngroup,
  4083. faOilCan: faOilCan,
  4084. faOm: faOm,
  4085. faOtter: faOtter,
  4086. faOutdent: faOutdent,
  4087. faPaintBrush: faPaintBrush,
  4088. faPaintRoller: faPaintRoller,
  4089. faPalette: faPalette,
  4090. faPallet: faPallet,
  4091. faPaperPlane: faPaperPlane,
  4092. faPaperclip: faPaperclip,
  4093. faParachuteBox: faParachuteBox,
  4094. faParagraph: faParagraph,
  4095. faParking: faParking,
  4096. faPassport: faPassport,
  4097. faPastafarianism: faPastafarianism,
  4098. faPaste: faPaste,
  4099. faPause: faPause,
  4100. faPauseCircle: faPauseCircle,
  4101. faPaw: faPaw,
  4102. faPeace: faPeace,
  4103. faPen: faPen,
  4104. faPenAlt: faPenAlt,
  4105. faPenFancy: faPenFancy,
  4106. faPenNib: faPenNib,
  4107. faPenSquare: faPenSquare,
  4108. faPencilAlt: faPencilAlt,
  4109. faPencilRuler: faPencilRuler,
  4110. faPeopleCarry: faPeopleCarry,
  4111. faPercent: faPercent,
  4112. faPercentage: faPercentage,
  4113. faPhone: faPhone,
  4114. faPhoneSlash: faPhoneSlash,
  4115. faPhoneSquare: faPhoneSquare,
  4116. faPhoneVolume: faPhoneVolume,
  4117. faPiggyBank: faPiggyBank,
  4118. faPills: faPills,
  4119. faPlaceOfWorship: faPlaceOfWorship,
  4120. faPlane: faPlane,
  4121. faPlaneArrival: faPlaneArrival,
  4122. faPlaneDeparture: faPlaneDeparture,
  4123. faPlay: faPlay,
  4124. faPlayCircle: faPlayCircle,
  4125. faPlug: faPlug,
  4126. faPlus: faPlus,
  4127. faPlusCircle: faPlusCircle,
  4128. faPlusSquare: faPlusSquare,
  4129. faPodcast: faPodcast,
  4130. faPoll: faPoll,
  4131. faPollH: faPollH,
  4132. faPoo: faPoo,
  4133. faPoop: faPoop,
  4134. faPortrait: faPortrait,
  4135. faPoundSign: faPoundSign,
  4136. faPowerOff: faPowerOff,
  4137. faPray: faPray,
  4138. faPrayingHands: faPrayingHands,
  4139. faPrescription: faPrescription,
  4140. faPrescriptionBottle: faPrescriptionBottle,
  4141. faPrescriptionBottleAlt: faPrescriptionBottleAlt,
  4142. faPrint: faPrint,
  4143. faProcedures: faProcedures,
  4144. faProjectDiagram: faProjectDiagram,
  4145. faPuzzlePiece: faPuzzlePiece,
  4146. faQrcode: faQrcode,
  4147. faQuestion: faQuestion,
  4148. faQuestionCircle: faQuestionCircle,
  4149. faQuidditch: faQuidditch,
  4150. faQuoteLeft: faQuoteLeft,
  4151. faQuoteRight: faQuoteRight,
  4152. faQuran: faQuran,
  4153. faRandom: faRandom,
  4154. faReceipt: faReceipt,
  4155. faRecycle: faRecycle,
  4156. faRedo: faRedo,
  4157. faRedoAlt: faRedoAlt,
  4158. faRegistered: faRegistered,
  4159. faReply: faReply,
  4160. faReplyAll: faReplyAll,
  4161. faRetweet: faRetweet,
  4162. faRibbon: faRibbon,
  4163. faRing: faRing,
  4164. faRoad: faRoad,
  4165. faRobot: faRobot,
  4166. faRocket: faRocket,
  4167. faRoute: faRoute,
  4168. faRss: faRss,
  4169. faRssSquare: faRssSquare,
  4170. faRubleSign: faRubleSign,
  4171. faRuler: faRuler,
  4172. faRulerCombined: faRulerCombined,
  4173. faRulerHorizontal: faRulerHorizontal,
  4174. faRulerVertical: faRulerVertical,
  4175. faRunning: faRunning,
  4176. faRupeeSign: faRupeeSign,
  4177. faSadCry: faSadCry,
  4178. faSadTear: faSadTear,
  4179. faSave: faSave,
  4180. faSchool: faSchool,
  4181. faScrewdriver: faScrewdriver,
  4182. faScroll: faScroll,
  4183. faSearch: faSearch,
  4184. faSearchDollar: faSearchDollar,
  4185. faSearchLocation: faSearchLocation,
  4186. faSearchMinus: faSearchMinus,
  4187. faSearchPlus: faSearchPlus,
  4188. faSeedling: faSeedling,
  4189. faServer: faServer,
  4190. faShapes: faShapes,
  4191. faShare: faShare,
  4192. faShareAlt: faShareAlt,
  4193. faShareAltSquare: faShareAltSquare,
  4194. faShareSquare: faShareSquare,
  4195. faShekelSign: faShekelSign,
  4196. faShieldAlt: faShieldAlt,
  4197. faShip: faShip,
  4198. faShippingFast: faShippingFast,
  4199. faShoePrints: faShoePrints,
  4200. faShoppingBag: faShoppingBag,
  4201. faShoppingBasket: faShoppingBasket,
  4202. faShoppingCart: faShoppingCart,
  4203. faShower: faShower,
  4204. faShuttleVan: faShuttleVan,
  4205. faSign: faSign,
  4206. faSignInAlt: faSignInAlt,
  4207. faSignLanguage: faSignLanguage,
  4208. faSignOutAlt: faSignOutAlt,
  4209. faSignal: faSignal,
  4210. faSignature: faSignature,
  4211. faSitemap: faSitemap,
  4212. faSkull: faSkull,
  4213. faSkullCrossbones: faSkullCrossbones,
  4214. faSlash: faSlash,
  4215. faSlidersH: faSlidersH,
  4216. faSmile: faSmile,
  4217. faSmileBeam: faSmileBeam,
  4218. faSmileWink: faSmileWink,
  4219. faSmoking: faSmoking,
  4220. faSmokingBan: faSmokingBan,
  4221. faSnowflake: faSnowflake,
  4222. faSocks: faSocks,
  4223. faSolarPanel: faSolarPanel,
  4224. faSort: faSort,
  4225. faSortAlphaDown: faSortAlphaDown,
  4226. faSortAlphaUp: faSortAlphaUp,
  4227. faSortAmountDown: faSortAmountDown,
  4228. faSortAmountUp: faSortAmountUp,
  4229. faSortDown: faSortDown,
  4230. faSortNumericDown: faSortNumericDown,
  4231. faSortNumericUp: faSortNumericUp,
  4232. faSortUp: faSortUp,
  4233. faSpa: faSpa,
  4234. faSpaceShuttle: faSpaceShuttle,
  4235. faSpider: faSpider,
  4236. faSpinner: faSpinner,
  4237. faSplotch: faSplotch,
  4238. faSprayCan: faSprayCan,
  4239. faSquare: faSquare,
  4240. faSquareFull: faSquareFull,
  4241. faSquareRootAlt: faSquareRootAlt,
  4242. faStamp: faStamp,
  4243. faStar: faStar,
  4244. faStarAndCrescent: faStarAndCrescent,
  4245. faStarHalf: faStarHalf,
  4246. faStarHalfAlt: faStarHalfAlt,
  4247. faStarOfDavid: faStarOfDavid,
  4248. faStarOfLife: faStarOfLife,
  4249. faStepBackward: faStepBackward,
  4250. faStepForward: faStepForward,
  4251. faStethoscope: faStethoscope,
  4252. faStickyNote: faStickyNote,
  4253. faStop: faStop,
  4254. faStopCircle: faStopCircle,
  4255. faStopwatch: faStopwatch,
  4256. faStore: faStore,
  4257. faStoreAlt: faStoreAlt,
  4258. faStream: faStream,
  4259. faStreetView: faStreetView,
  4260. faStrikethrough: faStrikethrough,
  4261. faStroopwafel: faStroopwafel,
  4262. faSubscript: faSubscript,
  4263. faSubway: faSubway,
  4264. faSuitcase: faSuitcase,
  4265. faSuitcaseRolling: faSuitcaseRolling,
  4266. faSun: faSun,
  4267. faSuperscript: faSuperscript,
  4268. faSurprise: faSurprise,
  4269. faSwatchbook: faSwatchbook,
  4270. faSwimmer: faSwimmer,
  4271. faSwimmingPool: faSwimmingPool,
  4272. faSynagogue: faSynagogue,
  4273. faSync: faSync,
  4274. faSyncAlt: faSyncAlt,
  4275. faSyringe: faSyringe,
  4276. faTable: faTable,
  4277. faTableTennis: faTableTennis,
  4278. faTablet: faTablet,
  4279. faTabletAlt: faTabletAlt,
  4280. faTablets: faTablets,
  4281. faTachometerAlt: faTachometerAlt,
  4282. faTag: faTag,
  4283. faTags: faTags,
  4284. faTape: faTape,
  4285. faTasks: faTasks,
  4286. faTaxi: faTaxi,
  4287. faTeeth: faTeeth,
  4288. faTeethOpen: faTeethOpen,
  4289. faTerminal: faTerminal,
  4290. faTextHeight: faTextHeight,
  4291. faTextWidth: faTextWidth,
  4292. faTh: faTh,
  4293. faThLarge: faThLarge,
  4294. faThList: faThList,
  4295. faTheaterMasks: faTheaterMasks,
  4296. faThermometer: faThermometer,
  4297. faThermometerEmpty: faThermometerEmpty,
  4298. faThermometerFull: faThermometerFull,
  4299. faThermometerHalf: faThermometerHalf,
  4300. faThermometerQuarter: faThermometerQuarter,
  4301. faThermometerThreeQuarters: faThermometerThreeQuarters,
  4302. faThumbsDown: faThumbsDown,
  4303. faThumbsUp: faThumbsUp,
  4304. faThumbtack: faThumbtack,
  4305. faTicketAlt: faTicketAlt,
  4306. faTimes: faTimes,
  4307. faTimesCircle: faTimesCircle,
  4308. faTint: faTint,
  4309. faTintSlash: faTintSlash,
  4310. faTired: faTired,
  4311. faToggleOff: faToggleOff,
  4312. faToggleOn: faToggleOn,
  4313. faToiletPaper: faToiletPaper,
  4314. faToolbox: faToolbox,
  4315. faTooth: faTooth,
  4316. faTorah: faTorah,
  4317. faToriiGate: faToriiGate,
  4318. faTractor: faTractor,
  4319. faTrademark: faTrademark,
  4320. faTrafficLight: faTrafficLight,
  4321. faTrain: faTrain,
  4322. faTransgender: faTransgender,
  4323. faTransgenderAlt: faTransgenderAlt,
  4324. faTrash: faTrash,
  4325. faTrashAlt: faTrashAlt,
  4326. faTree: faTree,
  4327. faTrophy: faTrophy,
  4328. faTruck: faTruck,
  4329. faTruckLoading: faTruckLoading,
  4330. faTruckMonster: faTruckMonster,
  4331. faTruckMoving: faTruckMoving,
  4332. faTruckPickup: faTruckPickup,
  4333. faTshirt: faTshirt,
  4334. faTty: faTty,
  4335. faTv: faTv,
  4336. faUmbrella: faUmbrella,
  4337. faUmbrellaBeach: faUmbrellaBeach,
  4338. faUnderline: faUnderline,
  4339. faUndo: faUndo,
  4340. faUndoAlt: faUndoAlt,
  4341. faUniversalAccess: faUniversalAccess,
  4342. faUniversity: faUniversity,
  4343. faUnlink: faUnlink,
  4344. faUnlock: faUnlock,
  4345. faUnlockAlt: faUnlockAlt,
  4346. faUpload: faUpload,
  4347. faUser: faUser,
  4348. faUserAlt: faUserAlt,
  4349. faUserAltSlash: faUserAltSlash,
  4350. faUserAstronaut: faUserAstronaut,
  4351. faUserCheck: faUserCheck,
  4352. faUserCircle: faUserCircle,
  4353. faUserClock: faUserClock,
  4354. faUserCog: faUserCog,
  4355. faUserEdit: faUserEdit,
  4356. faUserFriends: faUserFriends,
  4357. faUserGraduate: faUserGraduate,
  4358. faUserInjured: faUserInjured,
  4359. faUserLock: faUserLock,
  4360. faUserMd: faUserMd,
  4361. faUserMinus: faUserMinus,
  4362. faUserNinja: faUserNinja,
  4363. faUserPlus: faUserPlus,
  4364. faUserSecret: faUserSecret,
  4365. faUserShield: faUserShield,
  4366. faUserSlash: faUserSlash,
  4367. faUserTag: faUserTag,
  4368. faUserTie: faUserTie,
  4369. faUserTimes: faUserTimes,
  4370. faUsers: faUsers,
  4371. faUsersCog: faUsersCog,
  4372. faUtensilSpoon: faUtensilSpoon,
  4373. faUtensils: faUtensils,
  4374. faVectorSquare: faVectorSquare,
  4375. faVenus: faVenus,
  4376. faVenusDouble: faVenusDouble,
  4377. faVenusMars: faVenusMars,
  4378. faVial: faVial,
  4379. faVials: faVials,
  4380. faVideo: faVideo,
  4381. faVideoSlash: faVideoSlash,
  4382. faVihara: faVihara,
  4383. faVolleyballBall: faVolleyballBall,
  4384. faVolumeDown: faVolumeDown,
  4385. faVolumeMute: faVolumeMute,
  4386. faVolumeOff: faVolumeOff,
  4387. faVolumeUp: faVolumeUp,
  4388. faVrCardboard: faVrCardboard,
  4389. faWalking: faWalking,
  4390. faWallet: faWallet,
  4391. faWarehouse: faWarehouse,
  4392. faWeight: faWeight,
  4393. faWeightHanging: faWeightHanging,
  4394. faWheelchair: faWheelchair,
  4395. faWifi: faWifi,
  4396. faWind: faWind,
  4397. faWindowClose: faWindowClose,
  4398. faWindowMaximize: faWindowMaximize,
  4399. faWindowMinimize: faWindowMinimize,
  4400. faWindowRestore: faWindowRestore,
  4401. faWineBottle: faWineBottle,
  4402. faWineGlass: faWineGlass,
  4403. faWineGlassAlt: faWineGlassAlt,
  4404. faWonSign: faWonSign,
  4405. faWrench: faWrench,
  4406. faXRay: faXRay,
  4407. faYenSign: faYenSign,
  4408. faYinYang: faYinYang
  4409. };
  4410. /***/ }),
  4411. /***/ "../../node_modules/@fortawesome/react-fontawesome/index.es.js":
  4412. /*!*****************************************************************************************!*\
  4413. !*** C:/Dev/Babylon/Babylon.js/node_modules/@fortawesome/react-fontawesome/index.es.js ***!
  4414. \*****************************************************************************************/
  4415. /*! exports provided: FontAwesomeIcon */
  4416. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4417. "use strict";
  4418. __webpack_require__.r(__webpack_exports__);
  4419. /* WEBPACK VAR INJECTION */(function(global) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FontAwesomeIcon", function() { return FontAwesomeIcon; });
  4420. /* harmony import */ var _fortawesome_fontawesome_svg_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @fortawesome/fontawesome-svg-core */ "../../node_modules/@fortawesome/fontawesome-svg-core/index.es.js");
  4421. /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "../../node_modules/prop-types/index.js");
  4422. /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
  4423. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  4424. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
  4425. var commonjsGlobal = typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
  4426. function createCommonjsModule(fn, module) {
  4427. return module = { exports: {} }, fn(module, module.exports), module.exports;
  4428. }
  4429. var humps = createCommonjsModule(function (module) {
  4430. (function(global) {
  4431. var _processKeys = function(convert, obj, options) {
  4432. if(!_isObject(obj) || _isDate(obj) || _isRegExp(obj) || _isBoolean(obj) || _isFunction(obj)) {
  4433. return obj;
  4434. }
  4435. var output,
  4436. i = 0,
  4437. l = 0;
  4438. if(_isArray(obj)) {
  4439. output = [];
  4440. for(l=obj.length; i<l; i++) {
  4441. output.push(_processKeys(convert, obj[i], options));
  4442. }
  4443. }
  4444. else {
  4445. output = {};
  4446. for(var key in obj) {
  4447. if(Object.prototype.hasOwnProperty.call(obj, key)) {
  4448. output[convert(key, options)] = _processKeys(convert, obj[key], options);
  4449. }
  4450. }
  4451. }
  4452. return output;
  4453. };
  4454. // String conversion methods
  4455. var separateWords = function(string, options) {
  4456. options = options || {};
  4457. var separator = options.separator || '_';
  4458. var split = options.split || /(?=[A-Z])/;
  4459. return string.split(split).join(separator);
  4460. };
  4461. var camelize = function(string) {
  4462. if (_isNumerical(string)) {
  4463. return string;
  4464. }
  4465. string = string.replace(/[\-_\s]+(.)?/g, function(match, chr) {
  4466. return chr ? chr.toUpperCase() : '';
  4467. });
  4468. // Ensure 1st char is always lowercase
  4469. return string.substr(0, 1).toLowerCase() + string.substr(1);
  4470. };
  4471. var pascalize = function(string) {
  4472. var camelized = camelize(string);
  4473. // Ensure 1st char is always uppercase
  4474. return camelized.substr(0, 1).toUpperCase() + camelized.substr(1);
  4475. };
  4476. var decamelize = function(string, options) {
  4477. return separateWords(string, options).toLowerCase();
  4478. };
  4479. // Utilities
  4480. // Taken from Underscore.js
  4481. var toString = Object.prototype.toString;
  4482. var _isFunction = function(obj) {
  4483. return typeof(obj) === 'function';
  4484. };
  4485. var _isObject = function(obj) {
  4486. return obj === Object(obj);
  4487. };
  4488. var _isArray = function(obj) {
  4489. return toString.call(obj) == '[object Array]';
  4490. };
  4491. var _isDate = function(obj) {
  4492. return toString.call(obj) == '[object Date]';
  4493. };
  4494. var _isRegExp = function(obj) {
  4495. return toString.call(obj) == '[object RegExp]';
  4496. };
  4497. var _isBoolean = function(obj) {
  4498. return toString.call(obj) == '[object Boolean]';
  4499. };
  4500. // Performant way to determine if obj coerces to a number
  4501. var _isNumerical = function(obj) {
  4502. obj = obj - 0;
  4503. return obj === obj;
  4504. };
  4505. // Sets up function which handles processing keys
  4506. // allowing the convert function to be modified by a callback
  4507. var _processor = function(convert, options) {
  4508. var callback = options && 'process' in options ? options.process : options;
  4509. if(typeof(callback) !== 'function') {
  4510. return convert;
  4511. }
  4512. return function(string, options) {
  4513. return callback(string, convert, options);
  4514. }
  4515. };
  4516. var humps = {
  4517. camelize: camelize,
  4518. decamelize: decamelize,
  4519. pascalize: pascalize,
  4520. depascalize: decamelize,
  4521. camelizeKeys: function(object, options) {
  4522. return _processKeys(_processor(camelize, options), object);
  4523. },
  4524. decamelizeKeys: function(object, options) {
  4525. return _processKeys(_processor(decamelize, options), object, options);
  4526. },
  4527. pascalizeKeys: function(object, options) {
  4528. return _processKeys(_processor(pascalize, options), object);
  4529. },
  4530. depascalizeKeys: function () {
  4531. return this.decamelizeKeys.apply(this, arguments);
  4532. }
  4533. };
  4534. if (module.exports) {
  4535. module.exports = humps;
  4536. } else {
  4537. global.humps = humps;
  4538. }
  4539. })(commonjsGlobal);
  4540. });
  4541. var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
  4542. return typeof obj;
  4543. } : function (obj) {
  4544. return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
  4545. };
  4546. var defineProperty = function (obj, key, value) {
  4547. if (key in obj) {
  4548. Object.defineProperty(obj, key, {
  4549. value: value,
  4550. enumerable: true,
  4551. configurable: true,
  4552. writable: true
  4553. });
  4554. } else {
  4555. obj[key] = value;
  4556. }
  4557. return obj;
  4558. };
  4559. var _extends = Object.assign || function (target) {
  4560. for (var i = 1; i < arguments.length; i++) {
  4561. var source = arguments[i];
  4562. for (var key in source) {
  4563. if (Object.prototype.hasOwnProperty.call(source, key)) {
  4564. target[key] = source[key];
  4565. }
  4566. }
  4567. }
  4568. return target;
  4569. };
  4570. var objectWithoutProperties = function (obj, keys) {
  4571. var target = {};
  4572. for (var i in obj) {
  4573. if (keys.indexOf(i) >= 0) continue;
  4574. if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;
  4575. target[i] = obj[i];
  4576. }
  4577. return target;
  4578. };
  4579. var toConsumableArray = function (arr) {
  4580. if (Array.isArray(arr)) {
  4581. for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];
  4582. return arr2;
  4583. } else {
  4584. return Array.from(arr);
  4585. }
  4586. };
  4587. function capitalize(val) {
  4588. return val.charAt(0).toUpperCase() + val.slice(1);
  4589. }
  4590. function styleToObject(style) {
  4591. return style.split(';').map(function (s) {
  4592. return s.trim();
  4593. }).filter(function (s) {
  4594. return s;
  4595. }).reduce(function (acc, pair) {
  4596. var i = pair.indexOf(':');
  4597. var prop = humps.camelize(pair.slice(0, i));
  4598. var value = pair.slice(i + 1).trim();
  4599. prop.startsWith('webkit') ? acc[capitalize(prop)] = value : acc[prop] = value;
  4600. return acc;
  4601. }, {});
  4602. }
  4603. function convert(createElement, element) {
  4604. var extraProps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  4605. if (typeof element === 'string') {
  4606. return element;
  4607. }
  4608. var children = (element.children || []).map(convert.bind(null, createElement));
  4609. var mixins = Object.keys(element.attributes || {}).reduce(function (acc, key) {
  4610. var val = element.attributes[key];
  4611. switch (key) {
  4612. case 'class':
  4613. acc.attrs['className'] = val;
  4614. delete element.attributes['class'];
  4615. break;
  4616. case 'style':
  4617. acc.attrs['style'] = styleToObject(val);
  4618. break;
  4619. default:
  4620. if (key.indexOf('aria-') === 0 || key.indexOf('data-') === 0) {
  4621. acc.attrs[key.toLowerCase()] = val;
  4622. } else {
  4623. acc.attrs[humps.camelize(key)] = val;
  4624. }
  4625. }
  4626. return acc;
  4627. }, { attrs: {} });
  4628. var _extraProps$style = extraProps.style,
  4629. existingStyle = _extraProps$style === undefined ? {} : _extraProps$style,
  4630. remaining = objectWithoutProperties(extraProps, ['style']);
  4631. mixins.attrs['style'] = _extends({}, mixins.attrs['style'], existingStyle);
  4632. return createElement.apply(undefined, [element.tag, _extends({}, mixins.attrs, remaining)].concat(toConsumableArray(children)));
  4633. }
  4634. var PRODUCTION = false;
  4635. try {
  4636. PRODUCTION = "development" === 'production';
  4637. } catch (e) {}
  4638. function log () {
  4639. if (!PRODUCTION && console && typeof console.error === 'function') {
  4640. var _console;
  4641. (_console = console).error.apply(_console, arguments);
  4642. }
  4643. }
  4644. function objectWithKey(key, value) {
  4645. return Array.isArray(value) && value.length > 0 || !Array.isArray(value) && value ? defineProperty({}, key, value) : {};
  4646. }
  4647. function classList(props) {
  4648. var _classes;
  4649. var classes = (_classes = {
  4650. 'fa-spin': props.spin,
  4651. 'fa-pulse': props.pulse,
  4652. 'fa-fw': props.fixedWidth,
  4653. 'fa-inverse': props.inverse,
  4654. 'fa-border': props.border,
  4655. 'fa-li': props.listItem,
  4656. 'fa-flip-horizontal': props.flip === 'horizontal' || props.flip === 'both',
  4657. 'fa-flip-vertical': props.flip === 'vertical' || props.flip === 'both'
  4658. }, defineProperty(_classes, 'fa-' + props.size, props.size !== null), defineProperty(_classes, 'fa-rotate-' + props.rotation, props.rotation !== null), defineProperty(_classes, 'fa-pull-' + props.pull, props.pull !== null), _classes);
  4659. return Object.keys(classes).map(function (key) {
  4660. return classes[key] ? key : null;
  4661. }).filter(function (key) {
  4662. return key;
  4663. });
  4664. }
  4665. function normalizeIconArgs(icon$$1) {
  4666. if (icon$$1 === null) {
  4667. return null;
  4668. }
  4669. if ((typeof icon$$1 === 'undefined' ? 'undefined' : _typeof(icon$$1)) === 'object' && icon$$1.prefix && icon$$1.iconName) {
  4670. return icon$$1;
  4671. }
  4672. if (Array.isArray(icon$$1) && icon$$1.length === 2) {
  4673. return { prefix: icon$$1[0], iconName: icon$$1[1] };
  4674. }
  4675. if (typeof icon$$1 === 'string') {
  4676. return { prefix: 'fas', iconName: icon$$1 };
  4677. }
  4678. }
  4679. function FontAwesomeIcon(props) {
  4680. var iconArgs = props.icon,
  4681. maskArgs = props.mask,
  4682. symbol = props.symbol,
  4683. className = props.className,
  4684. title = props.title;
  4685. var iconLookup = normalizeIconArgs(iconArgs);
  4686. var classes = objectWithKey('classes', [].concat(toConsumableArray(classList(props)), toConsumableArray(className.split(' '))));
  4687. var transform = objectWithKey('transform', typeof props.transform === 'string' ? _fortawesome_fontawesome_svg_core__WEBPACK_IMPORTED_MODULE_0__["parse"].transform(props.transform) : props.transform);
  4688. var mask = objectWithKey('mask', normalizeIconArgs(maskArgs));
  4689. var renderedIcon = Object(_fortawesome_fontawesome_svg_core__WEBPACK_IMPORTED_MODULE_0__["icon"])(iconLookup, _extends({}, classes, transform, mask, {
  4690. symbol: symbol,
  4691. title: title
  4692. }));
  4693. if (!renderedIcon) {
  4694. log('Could not find icon', iconLookup);
  4695. return null;
  4696. }
  4697. var abstract = renderedIcon.abstract;
  4698. var extraProps = {};
  4699. Object.keys(props).forEach(function (key) {
  4700. if (!FontAwesomeIcon.defaultProps.hasOwnProperty(key)) {
  4701. extraProps[key] = props[key];
  4702. }
  4703. });
  4704. return convertCurry(abstract[0], extraProps);
  4705. }
  4706. FontAwesomeIcon.displayName = 'FontAwesomeIcon';
  4707. FontAwesomeIcon.propTypes = {
  4708. border: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  4709. className: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  4710. mask: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.array, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string]),
  4711. fixedWidth: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  4712. inverse: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  4713. flip: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(['horizontal', 'vertical', 'both']),
  4714. icon: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.array, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string]),
  4715. listItem: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  4716. pull: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(['right', 'left']),
  4717. pulse: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  4718. rotation: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf([90, 180, 270]),
  4719. size: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOf(['lg', 'xs', 'sm', '1x', '2x', '3x', '4x', '5x', '6x', '7x', '8x', '9x', '10x']),
  4720. spin: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool,
  4721. symbol: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.bool, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string]),
  4722. title: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string,
  4723. transform: prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.string, prop_types__WEBPACK_IMPORTED_MODULE_1___default.a.object])
  4724. };
  4725. FontAwesomeIcon.defaultProps = {
  4726. border: false,
  4727. className: '',
  4728. mask: null,
  4729. fixedWidth: false,
  4730. inverse: false,
  4731. flip: null,
  4732. icon: null,
  4733. listItem: false,
  4734. pull: null,
  4735. pulse: false,
  4736. rotation: null,
  4737. size: null,
  4738. spin: false,
  4739. symbol: false,
  4740. title: '',
  4741. transform: null
  4742. };
  4743. var convertCurry = convert.bind(null, react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement);
  4744. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../webpack/buildin/global.js */ "../../node_modules/webpack/buildin/global.js")))
  4745. /***/ }),
  4746. /***/ "../../node_modules/css-loader/index.js!../../node_modules/sass-loader/lib/loader.js!./components/log/log.scss":
  4747. /*!****************************************************************************************************************************************************!*\
  4748. !*** C:/Dev/Babylon/Babylon.js/node_modules/css-loader!C:/Dev/Babylon/Babylon.js/node_modules/sass-loader/lib/loader.js!./components/log/log.scss ***!
  4749. \****************************************************************************************************************************************************/
  4750. /*! no static exports found */
  4751. /***/ (function(module, exports, __webpack_require__) {
  4752. exports = module.exports = __webpack_require__(/*! ../../../../node_modules/css-loader/lib/css-base.js */ "../../node_modules/css-loader/lib/css-base.js")(false);
  4753. // imports
  4754. // module
  4755. exports.push([module.i, "#log-console {\n background: #333333;\n height: 120px;\n box-sizing: border-box;\n margin: 0;\n padding: 10px;\n width: 100%;\n overflow: hidden;\n overflow-y: auto; }\n #log-console .log {\n color: white;\n font-size: 14px;\n font-family: 'Courier New', Courier, monospace; }\n #log-console .log.error {\n color: red; }\n", ""]);
  4756. // exports
  4757. /***/ }),
  4758. /***/ "../../node_modules/css-loader/index.js!../../node_modules/sass-loader/lib/loader.js!./components/nodeList/nodeList.scss":
  4759. /*!**************************************************************************************************************************************************************!*\
  4760. !*** C:/Dev/Babylon/Babylon.js/node_modules/css-loader!C:/Dev/Babylon/Babylon.js/node_modules/sass-loader/lib/loader.js!./components/nodeList/nodeList.scss ***!
  4761. \**************************************************************************************************************************************************************/
  4762. /*! no static exports found */
  4763. /***/ (function(module, exports, __webpack_require__) {
  4764. exports = module.exports = __webpack_require__(/*! ../../../../node_modules/css-loader/lib/css-base.js */ "../../node_modules/css-loader/lib/css-base.js")(false);
  4765. // imports
  4766. // module
  4767. exports.push([module.i, "#nodeList {\n background: #333333;\n height: 100%;\n margin: 0;\n padding: 0;\n display: grid;\n width: 100%;\n overflow: hidden; }\n #nodeList .panes {\n overflow: hidden; }\n #nodeList .panes .pane {\n color: white;\n overflow: hidden;\n height: 100%;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none; }\n #nodeList .panes .pane .filter {\n display: flex;\n align-items: stretch; }\n #nodeList .panes .pane .filter input {\n width: 100%;\n margin: 10px 10px 5px 10px;\n display: block;\n border: none;\n padding: 0;\n border-bottom: solid 1px #337ab7;\n background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 96%, #337ab7 4%);\n background-position: -1000px 0;\n background-size: 1000px 100%;\n background-repeat: no-repeat;\n color: white; }\n #nodeList .panes .pane .filter input:focus {\n box-shadow: none;\n outline: none;\n background-position: 0 0; }\n #nodeList .panes .pane .filter input::placeholder {\n color: gray; }\n #nodeList .panes .pane .list-container {\n overflow-x: hidden;\n overflow-y: auto;\n height: calc(100% - 32px); }\n #nodeList .panes .pane .list-container .underline {\n border-bottom: 0.5px solid rgba(255, 255, 255, 0.5); }\n #nodeList .panes .pane .list-container .draggableLine {\n height: 30px;\n display: grid;\n align-items: center;\n justify-items: stretch;\n background: #222222;\n cursor: grab;\n text-align: center;\n margin: 0;\n box-sizing: border-box; }\n #nodeList .panes .pane .list-container .draggableLine:hover {\n background: #337ab7;\n color: white; }\n #nodeList .panes .pane .list-container .buttonLine {\n height: 30px;\n display: grid;\n align-items: center;\n justify-items: stretch; }\n #nodeList .panes .pane .list-container .buttonLine button {\n background: #222222;\n margin: 5px 10px 5px 10px;\n color: white;\n padding: 4px 5px;\n opacity: 0.9; }\n #nodeList .panes .pane .list-container .buttonLine button:hover {\n opacity: 1.0; }\n #nodeList .panes .pane .list-container .buttonLine button:active {\n background: #282828; }\n #nodeList .panes .pane .list-container .buttonLine button:focus {\n outline: 0px; }\n #nodeList .panes .pane .list-container .paneContainer {\n margin-top: 3px;\n display: grid;\n grid-template-rows: 100%;\n grid-template-columns: 100%; }\n #nodeList .panes .pane .list-container .paneContainer .paneContainer-content {\n grid-row: 1;\n grid-column: 1; }\n #nodeList .panes .pane .list-container .paneContainer .paneContainer-content .header {\n display: grid;\n grid-template-columns: 1fr auto;\n background: #555555;\n height: 30px;\n padding-right: 5px;\n cursor: pointer; }\n #nodeList .panes .pane .list-container .paneContainer .paneContainer-content .header .title {\n border-left: 3px solid transparent;\n padding-left: 5px;\n grid-column: 1;\n display: flex;\n align-items: center; }\n #nodeList .panes .pane .list-container .paneContainer .paneContainer-content .header .collapse {\n grid-column: 2;\n display: flex;\n align-items: center;\n justify-items: center;\n transform-origin: center; }\n #nodeList .panes .pane .list-container .paneContainer .paneContainer-content .header .collapse.closed {\n transform: rotate(180deg); }\n #nodeList .panes .pane .list-container .paneContainer .paneContainer-content .paneList > div:not(:last-child) {\n border-bottom: 1px solid rgba(255, 255, 255, 0.3); }\n", ""]);
  4768. // exports
  4769. /***/ }),
  4770. /***/ "../../node_modules/css-loader/index.js!../../node_modules/sass-loader/lib/loader.js!./components/propertyTab/propertyTab.scss":
  4771. /*!********************************************************************************************************************************************************************!*\
  4772. !*** C:/Dev/Babylon/Babylon.js/node_modules/css-loader!C:/Dev/Babylon/Babylon.js/node_modules/sass-loader/lib/loader.js!./components/propertyTab/propertyTab.scss ***!
  4773. \********************************************************************************************************************************************************************/
  4774. /*! no static exports found */
  4775. /***/ (function(module, exports, __webpack_require__) {
  4776. exports = module.exports = __webpack_require__(/*! ../../../../node_modules/css-loader/lib/css-base.js */ "../../node_modules/css-loader/lib/css-base.js")(false);
  4777. // imports
  4778. // module
  4779. exports.push([module.i, "#propertyTab {\n color: white;\n background: #333333; }\n #propertyTab #header {\n height: 30px;\n font-size: 16px;\n color: white;\n background: #222222;\n grid-row: 1;\n text-align: center;\n display: grid;\n grid-template-columns: 30px 1fr;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none; }\n #propertyTab #header #logo {\n position: relative;\n grid-column: 1;\n width: 24px;\n height: 24px;\n left: 0;\n display: flex;\n align-self: center;\n justify-self: center; }\n #propertyTab #header #title {\n grid-column: 2;\n display: grid;\n align-items: center;\n text-align: center; }\n #propertyTab .range {\n -webkit-appearance: none;\n width: 120px;\n height: 6px;\n background: #d3d3d3;\n border-radius: 5px;\n outline: none;\n opacity: 0.7;\n -webkit-transition: .2s;\n transition: opacity .2s; }\n #propertyTab .range:hover {\n opacity: 1; }\n #propertyTab .range::-webkit-slider-thumb {\n -webkit-appearance: none;\n appearance: none;\n width: 14px;\n height: 14px;\n border-radius: 50%;\n background: #337ab7;\n cursor: pointer; }\n #propertyTab .range::-moz-range-thumb {\n width: 14px;\n height: 14px;\n border-radius: 50%;\n background: #337ab7;\n cursor: pointer; }\n #propertyTab input[type=\"color\"] {\n -webkit-appearance: none;\n border: 1px solid rgba(255, 255, 255, 0.5);\n padding: 0;\n width: 30px;\n height: 20px; }\n #propertyTab input[type=\"color\"]::-webkit-color-swatch-wrapper {\n padding: 0; }\n #propertyTab input[type=\"color\"]::-webkit-color-swatch {\n border: none; }\n #propertyTab .sliderLine {\n padding-left: 5px;\n height: 30px;\n display: grid;\n grid-template-columns: 1fr auto; }\n #propertyTab .sliderLine .label {\n grid-column: 1;\n display: flex;\n align-items: center; }\n #propertyTab .sliderLine .slider {\n grid-column: 2;\n margin-right: 5px;\n display: flex;\n align-items: center; }\n #propertyTab .textInputLine {\n padding-left: 5px;\n height: 30px;\n display: grid;\n grid-template-columns: 1fr 120px; }\n #propertyTab .textInputLine .label {\n grid-column: 1;\n display: flex;\n align-items: center; }\n #propertyTab .textInputLine .value {\n display: flex;\n align-items: center;\n grid-column: 2; }\n #propertyTab .textInputLine .value input {\n width: calc(100% - 5px); }\n #propertyTab .paneContainer {\n margin-top: 3px;\n display: grid;\n grid-template-rows: 100%;\n grid-template-columns: 100%; }\n #propertyTab .paneContainer .paneList {\n border-left: 3px solid transparent; }\n #propertyTab .paneContainer:hover .paneList {\n border-left: 3px solid rgba(51, 122, 183, 0.8); }\n #propertyTab .paneContainer:hover .paneContainer-content .header .title {\n border-left: 3px solid #337ab7; }\n #propertyTab .paneContainer .paneContainer-highlight-border {\n grid-row: 1;\n grid-column: 1;\n opacity: 1;\n border: 3px solid red;\n transition: opacity 250ms;\n pointer-events: none; }\n #propertyTab .paneContainer .paneContainer-highlight-border.transparent {\n opacity: 0; }\n #propertyTab .paneContainer .paneContainer-content {\n grid-row: 1;\n grid-column: 1; }\n #propertyTab .paneContainer .paneContainer-content .header {\n display: grid;\n grid-template-columns: 1fr auto;\n background: #555555;\n height: 30px;\n padding-right: 5px;\n cursor: pointer; }\n #propertyTab .paneContainer .paneContainer-content .header .title {\n border-left: 3px solid transparent;\n padding-left: 5px;\n grid-column: 1;\n display: flex;\n align-items: center; }\n #propertyTab .paneContainer .paneContainer-content .header .collapse {\n grid-column: 2;\n display: flex;\n align-items: center;\n justify-items: center;\n transform-origin: center; }\n #propertyTab .paneContainer .paneContainer-content .header .collapse.closed {\n transform: rotate(180deg); }\n #propertyTab .paneContainer .paneContainer-content .paneList > div:not(:last-child) {\n border-bottom: 0.5px solid rgba(255, 255, 255, 0.1); }\n #propertyTab .paneContainer .paneContainer-content .fragment > div:not(:last-child) {\n border-bottom: 0.5px solid rgba(255, 255, 255, 0.1); }\n #propertyTab .gradient-step {\n display: grid;\n grid-template-rows: 100%;\n grid-template-columns: 30px 30px 40px auto 20px 5px;\n padding-top: 5px;\n padding-left: 5px;\n padding-bottom: 5px; }\n #propertyTab .gradient-step .step {\n grid-row: 1;\n grid-column: 1; }\n #propertyTab .gradient-step .color {\n grid-row: 1;\n grid-column: 2;\n cursor: pointer; }\n #propertyTab .gradient-step .step-value {\n margin-left: 5px;\n grid-row: 1;\n grid-column: 3;\n text-align: right;\n margin-right: 5px; }\n #propertyTab .gradient-step .step-slider {\n grid-row: 1;\n grid-column: 4;\n display: grid;\n justify-content: stretch;\n align-content: center;\n margin-right: 5px; }\n #propertyTab .gradient-step .step-slider input {\n width: unset; }\n #propertyTab .gradient-step .gradient-delete {\n grid-row: 1;\n grid-column: 5;\n display: grid;\n align-content: center;\n justify-content: center; }\n #propertyTab .floatLine {\n padding-left: 5px;\n height: 30px;\n display: grid;\n grid-template-columns: 1fr 120px; }\n #propertyTab .floatLine .label {\n grid-column: 1;\n display: flex;\n align-items: center; }\n #propertyTab .floatLine .value {\n grid-column: 2;\n display: flex;\n align-items: center; }\n #propertyTab .floatLine .value input {\n width: 110px; }\n #propertyTab .vector3Line {\n padding-left: 5px;\n display: grid; }\n #propertyTab .vector3Line .firstLine {\n display: grid;\n grid-template-columns: 1fr auto 20px;\n height: 30px; }\n #propertyTab .vector3Line .firstLine .label {\n grid-column: 1;\n display: flex;\n align-items: center; }\n #propertyTab .vector3Line .firstLine .vector {\n grid-column: 2;\n display: flex;\n align-items: center;\n text-align: right;\n opacity: 0.8; }\n #propertyTab .vector3Line .firstLine .expand {\n grid-column: 3;\n display: grid;\n align-items: center;\n justify-items: center;\n cursor: pointer; }\n #propertyTab .vector3Line .secondLine {\n display: grid;\n padding-right: 5px;\n border-left: 1px solid #337ab7; }\n #propertyTab .vector3Line .secondLine .no-right-margin {\n margin-right: 0; }\n #propertyTab .vector3Line .secondLine .numeric {\n display: grid;\n grid-template-columns: 1fr auto; }\n #propertyTab .vector3Line .secondLine .numeric-label {\n text-align: right;\n grid-column: 1;\n display: flex;\n align-items: center;\n justify-self: right;\n margin-right: 10px; }\n #propertyTab .vector3Line .secondLine .numeric-value {\n width: 120px;\n grid-column: 2;\n display: flex;\n align-items: center;\n border: 1px solid #337ab7; }\n #propertyTab .buttonLine {\n height: 30px;\n display: grid;\n align-items: center;\n justify-items: stretch;\n padding-bottom: 5px; }\n #propertyTab .buttonLine input[type=\"file\"] {\n display: none; }\n #propertyTab .buttonLine .file-upload {\n background: #222222;\n border: 1px solid #337ab7;\n margin: 5px 10px;\n color: white;\n padding: 4px 5px;\n padding-top: 0px;\n opacity: 0.9;\n cursor: pointer;\n text-align: center; }\n #propertyTab .buttonLine .file-upload:hover {\n opacity: 1.0; }\n #propertyTab .buttonLine .file-upload:active {\n transform: scale(0.98);\n transform-origin: 0.5 0.5; }\n #propertyTab .buttonLine button {\n background: #222222;\n border: 1px solid #337ab7;\n margin: 5px 10px 5px 10px;\n color: white;\n padding: 4px 5px;\n opacity: 0.9; }\n #propertyTab .buttonLine button:hover {\n opacity: 1.0; }\n #propertyTab .buttonLine button:active {\n background: #282828; }\n #propertyTab .buttonLine button:focus {\n border: 1px solid #337ab7;\n outline: 0px; }\n #propertyTab .checkBoxLine {\n padding-left: 5px;\n height: 30px;\n display: grid;\n grid-template-columns: 1fr auto; }\n #propertyTab .checkBoxLine .label {\n grid-column: 1;\n display: flex;\n align-items: center; }\n #propertyTab .checkBoxLine .checkBox {\n grid-column: 2;\n display: flex;\n align-items: center; }\n #propertyTab .checkBoxLine .checkBox .lbl {\n position: relative;\n display: block;\n height: 14px;\n width: 34px;\n margin-right: 5px;\n background: #898989;\n border-radius: 100px;\n cursor: pointer;\n transition: all 0.3s ease; }\n #propertyTab .checkBoxLine .checkBox .lbl:after {\n position: absolute;\n left: 3px;\n top: 2px;\n display: block;\n width: 10px;\n height: 10px;\n border-radius: 100px;\n background: #fff;\n box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.05);\n content: '';\n transition: all 0.15s ease; }\n #propertyTab .checkBoxLine .checkBox .lbl:active:after {\n transform: scale(1.15, 0.85); }\n #propertyTab .checkBoxLine .checkBox .cbx:checked ~ label {\n background: #337ab7; }\n #propertyTab .checkBoxLine .checkBox .cbx:checked ~ label:after {\n left: 20px;\n background: #164975; }\n #propertyTab .checkBoxLine .checkBox .hidden {\n display: none; }\n #propertyTab .listLine {\n padding-left: 5px;\n height: 30px;\n display: grid;\n grid-template-columns: 1fr auto; }\n #propertyTab .listLine .label {\n grid-column: 1;\n display: flex;\n align-items: center; }\n #propertyTab .listLine .options {\n grid-column: 2;\n display: flex;\n align-items: center;\n margin-right: 5px; }\n #propertyTab .listLine .options select {\n width: 115px; }\n #propertyTab .color3Line {\n padding-left: 5px;\n display: grid; }\n #propertyTab .color3Line .firstLine {\n height: 30px;\n display: grid;\n grid-template-columns: 1fr auto 20px 20px; }\n #propertyTab .color3Line .firstLine .label {\n grid-column: 1;\n display: flex;\n align-items: center; }\n #propertyTab .color3Line .firstLine .color3 {\n grid-column: 2;\n display: flex;\n align-items: center; }\n #propertyTab .color3Line .firstLine .color3 input {\n margin-right: 5px; }\n #propertyTab .color3Line .firstLine .copy {\n grid-column: 3;\n display: grid;\n align-items: center;\n justify-items: center;\n cursor: pointer; }\n #propertyTab .color3Line .firstLine .expand {\n grid-column: 4;\n display: grid;\n align-items: center;\n justify-items: center;\n cursor: pointer; }\n #propertyTab .color3Line .secondLine {\n display: grid;\n padding-right: 5px;\n border-left: 1px solid #337ab7; }\n #propertyTab .color3Line .secondLine .numeric {\n display: grid;\n grid-template-columns: 1fr auto; }\n #propertyTab .color3Line .secondLine .numeric-label {\n text-align: right;\n grid-column: 1;\n display: flex;\n align-items: center;\n justify-self: right;\n margin-right: 10px; }\n #propertyTab .color3Line .secondLine .numeric-value {\n width: 120px;\n grid-column: 2;\n display: flex;\n align-items: center;\n border: 1px solid #337ab7; }\n #propertyTab .textLine {\n padding-left: 5px;\n height: 30px;\n display: grid;\n grid-template-columns: 1fr auto; }\n #propertyTab .textLine .label {\n grid-column: 1;\n display: flex;\n align-items: center; }\n #propertyTab .textLine .link-value {\n grid-column: 2;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n text-align: end;\n opacity: 0.8;\n margin: 5px;\n margin-top: 6px;\n max-width: 140px;\n text-decoration: underline;\n cursor: pointer; }\n #propertyTab .textLine .value {\n grid-column: 2;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n text-align: end;\n opacity: 0.8;\n margin: 5px;\n margin-top: 6px;\n max-width: 200px;\n -webkit-user-select: text;\n -moz-user-select: text;\n -ms-user-select: text;\n user-select: text; }\n #propertyTab .textLine .value.check {\n color: green; }\n #propertyTab .textLine .value.uncheck {\n color: red; }\n", ""]);
  4780. // exports
  4781. /***/ }),
  4782. /***/ "../../node_modules/css-loader/index.js!../../node_modules/sass-loader/lib/loader.js!./diagram/graphCanvas.scss":
  4783. /*!*****************************************************************************************************************************************************!*\
  4784. !*** C:/Dev/Babylon/Babylon.js/node_modules/css-loader!C:/Dev/Babylon/Babylon.js/node_modules/sass-loader/lib/loader.js!./diagram/graphCanvas.scss ***!
  4785. \*****************************************************************************************************************************************************/
  4786. /*! no static exports found */
  4787. /***/ (function(module, exports, __webpack_require__) {
  4788. exports = module.exports = __webpack_require__(/*! ../../../node_modules/css-loader/lib/css-base.js */ "../../node_modules/css-loader/lib/css-base.js")(false);
  4789. // imports
  4790. // module
  4791. exports.push([module.i, "#graph-canvas {\n width: 100%;\n height: 100%;\n margin: 0;\n padding: 0;\n font: 14px \"acumin-pro\";\n user-select: none;\n overflow: hidden;\n cursor: move;\n background-image: linear-gradient(to right, #4F4E4F 1px, transparent 1px), linear-gradient(to bottom, #4F4E4F 1px, transparent 1px); }\n #graph-canvas #selection-container {\n pointer-events: none; }\n #graph-canvas #selection-container .selection-box {\n z-index: 10;\n position: absolute;\n background: rgba(72, 72, 196, 0.5);\n border: blue solid 2px; }\n #graph-canvas .port {\n border-radius: 20px;\n width: 20px;\n height: 20px;\n align-self: center; }\n #graph-canvas .port .img {\n width: 100%; }\n #graph-canvas .port:hover, #graph-canvas .port.selected {\n filter: brightness(2); }\n #graph-canvas .portLine {\n height: 24px;\n display: grid;\n grid-template-rows: 100%; }\n #graph-canvas .port-label {\n align-items: center; }\n #graph-canvas .inputsContainer {\n grid-row: 1;\n grid-column: 1; }\n #graph-canvas .inputsContainer .portLine {\n grid-template-columns: 12px calc(100% - 15px); }\n #graph-canvas .inputsContainer .portLine .port-label {\n grid-row: 1;\n grid-column: 2; }\n #graph-canvas .inputsContainer .portLine .port {\n grid-row: 1;\n grid-column: 1;\n transform: translateX(-12px); }\n #graph-canvas .outputsContainer {\n grid-row: 1;\n grid-column: 2; }\n #graph-canvas .outputsContainer .portLine {\n grid-template-columns: calc(100% - 10px) 12px; }\n #graph-canvas .outputsContainer .portLine .port-label {\n grid-row: 1;\n grid-column: 1;\n text-align: right; }\n #graph-canvas .outputsContainer .portLine .port {\n grid-row: 1;\n grid-column: 2;\n transform: translateX(2px); }\n #graph-canvas #graph-container {\n width: 100%;\n height: 100%;\n left: 0;\n top: 0;\n transform-origin: left top;\n display: grid;\n grid-template-rows: 100%;\n grid-template-columns: 100%; }\n #graph-canvas #graph-container #frame-container {\n overflow: visible;\n grid-row: 1;\n grid-column: 1;\n position: relative;\n width: 100%;\n height: 100%; }\n #graph-canvas #graph-container .frame-box {\n position: absolute;\n background: rgba(72, 72, 72, 0.7);\n display: grid;\n grid-template-rows: 40px calc(100% - 40px);\n grid-template-columns: 100%;\n box-sizing: border-box; }\n #graph-canvas #graph-container .frame-box.collapsed {\n height: auto !important;\n width: 200px !important; }\n #graph-canvas #graph-container .frame-box.collapsed .frame-box-header {\n font-size: 16px;\n grid-template-columns: calc(100% - 37px) 30px 7px; }\n #graph-canvas #graph-container .frame-box.collapsed .frame-box-header .frame-box-header-collapse {\n margin-top: -2px; }\n #graph-canvas #graph-container .frame-box.collapsed .frame-box-header .frame-box-header-close {\n display: none; }\n #graph-canvas #graph-container .frame-box .frame-box-border {\n grid-row: 1 / span 2;\n grid-column: 1;\n width: 100%;\n height: 100%;\n border: transparent solid 4px;\n pointer-events: none;\n box-sizing: border-box; }\n #graph-canvas #graph-container .frame-box .frame-box-header {\n grid-row: 1;\n grid-column: 1;\n background: #484848;\n color: white;\n font-size: 24px;\n text-align: center;\n display: grid;\n grid-template-rows: 100%;\n grid-template-columns: calc(100% - 74px) 30px 7px 30px 7px;\n align-content: center;\n overflow: hidden; }\n #graph-canvas #graph-container .frame-box .frame-box-header .frame-box-header-button {\n cursor: pointer;\n align-self: center;\n transform-origin: 50% 50%;\n transform: scale(1);\n stroke: transparent;\n fill: white;\n display: grid; }\n #graph-canvas #graph-container .frame-box .frame-box-header .frame-box-header-button.down {\n transform: scale(0.9); }\n #graph-canvas #graph-container .frame-box .frame-box-header .frame-box-header-collapse {\n grid-column: 2;\n grid-row: 1; }\n #graph-canvas #graph-container .frame-box .frame-box-header .frame-box-header-close {\n grid-column: 4;\n grid-row: 1; }\n #graph-canvas #graph-container .frame-box .frame-box-header .frame-box-header-title {\n grid-column: 1;\n grid-row: 1;\n display: grid;\n height: 100%;\n width: 100%;\n align-self: stretch;\n align-items: center;\n margin-top: -2px; }\n #graph-canvas #graph-container .frame-box .port-container {\n margin-top: 6px;\n margin-bottom: 6px;\n margin-left: 4px;\n margin-right: 4px;\n color: white;\n grid-row: 2;\n grid-column: 1;\n display: grid;\n grid-template-rows: 100%;\n grid-template-columns: 50% 50%;\n z-index: 2; }\n #graph-canvas #graph-container .frame-box.selected .frame-box-border {\n border-color: white; }\n #graph-canvas #graph-container #graph-svg-container {\n grid-row: 1;\n grid-column: 1;\n position: relative;\n width: 100%;\n height: 100%;\n overflow: visible;\n pointer-events: none;\n z-index: 1; }\n #graph-canvas #graph-container #graph-svg-container .link {\n stroke-width: 4px; }\n #graph-canvas #graph-container #graph-svg-container .link.selected {\n stroke: white !important;\n stroke-dasharray: 10, 2; }\n #graph-canvas #graph-container #graph-svg-container .link.hidden {\n display: none; }\n #graph-canvas #graph-container #graph-svg-container .selection-link {\n pointer-events: all;\n stroke-width: 16px;\n opacity: 0;\n transition: opacity 75ms;\n stroke: transparent;\n cursor: pointer; }\n #graph-canvas #graph-container #graph-svg-container .selection-link.hidden {\n display: none; }\n #graph-canvas #graph-container #graph-svg-container .selection-link:hover, #graph-canvas #graph-container #graph-svg-container .selection-link.selected {\n stroke: white !important;\n opacity: 0.4; }\n #graph-canvas #graph-container #graph-canvas-container {\n grid-row: 1;\n grid-column: 1;\n position: relative;\n width: 100%;\n height: 100%; }\n #graph-canvas #graph-container #graph-canvas-container .visual {\n z-index: 3;\n width: 200px;\n position: absolute;\n left: 0;\n top: 0;\n background: gray;\n border: 4px solid black;\n border-radius: 12px;\n display: grid;\n grid-template-rows: 30px auto;\n grid-template-columns: 100%;\n color: white; }\n #graph-canvas #graph-container #graph-canvas-container .visual.hidden {\n display: none; }\n #graph-canvas #graph-container #graph-canvas-container .visual .comments {\n position: absolute;\n top: -50px;\n width: 200px;\n height: 45px;\n overflow: hidden;\n font-style: italic;\n opacity: 0.8;\n display: grid;\n align-items: flex-end;\n pointer-events: none; }\n #graph-canvas #graph-container #graph-canvas-container .visual .selection-border {\n grid-row: 1 / span 3;\n grid-column: 1;\n margin: -4px;\n transition: border-color 100ms;\n border: 4px solid black;\n border-radius: 12px; }\n #graph-canvas #graph-container #graph-canvas-container .visual.selected .selection-border {\n border-color: white; }\n #graph-canvas #graph-container #graph-canvas-container .visual .header {\n grid-row: 1;\n grid-column: 1;\n border: 4px solid black;\n border-top-right-radius: 7px;\n border-top-left-radius: 7px;\n font-size: 16px;\n text-align: center;\n margin-top: -1px;\n margin-left: -1px;\n margin-right: -1px;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n background: black;\n color: white; }\n #graph-canvas #graph-container #graph-canvas-container .visual .header.constant {\n border-color: #4E5C74;\n background: #4E5C74; }\n #graph-canvas #graph-container #graph-canvas-container .visual .header.inspector {\n border-color: #396437;\n background: #396437; }\n #graph-canvas #graph-container #graph-canvas-container .visual .connections {\n grid-row: 2;\n grid-column: 1;\n display: grid;\n grid-template-columns: 50% 50%; }\n #graph-canvas #graph-container #graph-canvas-container .visual .content {\n min-height: 20px;\n grid-row: 3;\n grid-column: 1; }\n #graph-canvas #graph-container #graph-canvas-container .visual .content.input-block {\n grid-row: 2;\n height: 34px;\n text-align: center;\n font-size: 18px;\n font-weight: bold;\n margin: 0 10px; }\n #graph-canvas #graph-container #graph-canvas-container .visual .content.output-block {\n min-height: 0px;\n height: 5px; }\n #graph-canvas #graph-container #graph-canvas-container .visual .content.clamp-block {\n grid-row: 2;\n height: 34px;\n text-align: center;\n font-size: 18px;\n font-weight: bold;\n margin: 0 10px; }\n #graph-canvas #graph-container #graph-canvas-container .visual .content.gradient-block {\n grid-row: 2;\n height: 34px; }\n #graph-canvas #graph-container #graph-canvas-container .visual .content.texture-block {\n grid-row: 3;\n height: 140px;\n width: 140px;\n margin-top: -115px;\n overflow: hidden;\n border-bottom-left-radius: 7px;\n border: black 4px solid;\n border-left: 0px;\n border-bottom: 0px; }\n #graph-canvas #graph-container #graph-canvas-container .visual .content.texture-block img {\n width: 100%;\n height: 100%;\n pointer-events: none; }\n #graph-canvas #graph-container #graph-canvas-container .visual .content.texture-block img.empty {\n display: none; }\n #graph-canvas #graph-container #graph-canvas-container .visual .content.remap-block {\n height: 34px;\n text-align: center;\n font-size: 18px;\n font-weight: bold;\n margin: 0 10px; }\n #graph-canvas #graph-container #graph-canvas-container .visual .content.trigonometry-block {\n grid-row: 2;\n height: 34px;\n text-align: center;\n font-size: 18px;\n font-weight: bold;\n margin: 0 10px; }\n", ""]);
  4792. // exports
  4793. /***/ }),
  4794. /***/ "../../node_modules/css-loader/index.js!../../node_modules/sass-loader/lib/loader.js!./main.scss":
  4795. /*!**************************************************************************************************************************************!*\
  4796. !*** C:/Dev/Babylon/Babylon.js/node_modules/css-loader!C:/Dev/Babylon/Babylon.js/node_modules/sass-loader/lib/loader.js!./main.scss ***!
  4797. \**************************************************************************************************************************************/
  4798. /*! no static exports found */
  4799. /***/ (function(module, exports, __webpack_require__) {
  4800. exports = module.exports = __webpack_require__(/*! ../../node_modules/css-loader/lib/css-base.js */ "../../node_modules/css-loader/lib/css-base.js")(false);
  4801. // imports
  4802. // module
  4803. exports.push([module.i, "#node-editor-graph-root {\n display: grid;\n grid-template-rows: calc(100% - 120px) 120px;\n height: 100%;\n width: 100%;\n background: #464646;\n font: 14px \"acumin-pro\"; }\n\n#nodeList {\n grid-row: 1 / span 2;\n grid-column: 1; }\n\n#leftGrab {\n grid-row: 1 / span 2;\n grid-column: 2;\n cursor: ew-resize; }\n\n#rightGrab {\n grid-row: 1 / span 2;\n grid-column: 4;\n cursor: ew-resize; }\n\n.diagram-container {\n grid-row: 1;\n grid-column: 3;\n background: #5f5b60;\n width: 100%;\n height: 100%; }\n .diagram-container .diagram {\n display: none;\n width: 100%;\n height: 100%; }\n\n.right-panel {\n grid-row: 1 / span 2;\n grid-column: 5;\n display: grid;\n grid-template-rows: 1fr 30px auto 30px;\n grid-template-columns: 100%;\n height: 100%;\n overflow-y: auto; }\n .right-panel #propertyTab {\n grid-row: 1;\n grid-column: 1; }\n .right-panel .button {\n display: grid;\n justify-content: center;\n align-content: center;\n height: 30px;\n width: calc(100% / 7);\n cursor: pointer; }\n .right-panel .button:hover {\n background: #337ab7;\n color: white;\n opacity: 0.8; }\n .right-panel .button.selected {\n background: #337ab7;\n color: white; }\n .right-panel .button.align {\n justify-content: stretch;\n text-align: center; }\n .right-panel #preview-mesh-bar {\n grid-row: 2;\n grid-column: 1;\n display: flex;\n color: white;\n align-items: center;\n font-size: 18px; }\n .right-panel #preview-mesh-bar #file-picker {\n display: none; }\n .right-panel #preview-mesh-bar #file-picker-label {\n width: 100%;\n background: transparent;\n cursor: pointer; }\n .right-panel #preview-config-bar {\n grid-row: 4;\n grid-column: 1;\n display: flex;\n flex-direction: row-reverse;\n color: white;\n align-items: center;\n font-size: 18px; }\n .right-panel #preview-config-bar .button {\n width: 60px; }\n .right-panel #preview-config-bar #color-picker {\n display: none; }\n .right-panel #preview-config-bar #color-picker-label {\n width: 100%;\n background: transparent;\n cursor: pointer; }\n .right-panel #preview {\n border-top: 1px solid #555555;\n grid-row: 3;\n grid-column: 1;\n width: 100%;\n display: grid;\n outline: 0 !important;\n user-select: none; }\n .right-panel #preview #preview-canvas {\n width: 100%;\n height: 100%;\n outline: 0 !important;\n grid-row: 1;\n grid-column: 1; }\n .right-panel #preview .waitPanel {\n width: 100%;\n height: 100%;\n grid-row: 1;\n grid-column: 1;\n color: white;\n font-size: 18px;\n align-content: center;\n justify-content: center;\n background: rgba(20, 20, 20, 0.95);\n z-index: 10;\n display: grid;\n transition: opacity 250ms; }\n .right-panel #preview .waitPanel.hidden {\n opacity: 0;\n pointer-events: none; }\n\n.blocker {\n visibility: hidden;\n position: absolute;\n width: calc(100% - 40px);\n height: 100%;\n top: 0;\n left: 0;\n background: rgba(20, 20, 20, 0.95);\n font-family: \"acumin-pro\";\n color: white;\n font-size: 24px;\n display: grid;\n align-content: center;\n justify-content: center;\n user-select: none;\n padding: 20px;\n text-align: center; }\n\n#log-console {\n grid-row: 2;\n grid-column: 3; }\n\n.dialog-container {\n position: absolute;\n width: 100%;\n height: 100%;\n background: rgba(0, 0, 0, 0.6);\n display: grid;\n font-family: \"acumin-pro\";\n top: 0; }\n .dialog-container .dialog {\n align-self: center;\n justify-self: center;\n min-height: 140px;\n max-width: 400px;\n border-radius: 10px;\n background: white;\n display: grid;\n grid-template-columns: 100%;\n grid-template-rows: calc(100% - 50px) 50px; }\n .dialog-container .dialog .dialog-message {\n grid-row: 1;\n grid-column: 1;\n margin-top: 20px;\n padding: 10px;\n font-size: 18px;\n color: black; }\n .dialog-container .dialog .dialog-buttons {\n grid-row: 2;\n grid-column: 1;\n display: grid;\n grid-template-rows: 100%;\n grid-template-columns: 100%;\n color: white; }\n .dialog-container .dialog .dialog-buttons .dialog-button-ok {\n cursor: pointer;\n justify-self: center;\n background: green;\n min-width: 80px;\n justify-content: center;\n display: grid;\n align-content: center;\n align-self: center;\n height: 35px;\n border-radius: 10px; }\n .dialog-container .dialog .dialog-buttons .dialog-button-ok:hover {\n opacity: 0.8; }\n .dialog-container .dialog .dialog-buttons .dialog-button-ok.error {\n background: red; }\n", ""]);
  4804. // exports
  4805. /***/ }),
  4806. /***/ "../../node_modules/css-loader/lib/css-base.js":
  4807. /*!*************************************************************************!*\
  4808. !*** C:/Dev/Babylon/Babylon.js/node_modules/css-loader/lib/css-base.js ***!
  4809. \*************************************************************************/
  4810. /*! no static exports found */
  4811. /***/ (function(module, exports) {
  4812. /*
  4813. MIT License http://www.opensource.org/licenses/mit-license.php
  4814. Author Tobias Koppers @sokra
  4815. */
  4816. // css base code, injected by the css-loader
  4817. module.exports = function(useSourceMap) {
  4818. var list = [];
  4819. // return the list of modules as css string
  4820. list.toString = function toString() {
  4821. return this.map(function (item) {
  4822. var content = cssWithMappingToString(item, useSourceMap);
  4823. if(item[2]) {
  4824. return "@media " + item[2] + "{" + content + "}";
  4825. } else {
  4826. return content;
  4827. }
  4828. }).join("");
  4829. };
  4830. // import a list of modules into the list
  4831. list.i = function(modules, mediaQuery) {
  4832. if(typeof modules === "string")
  4833. modules = [[null, modules, ""]];
  4834. var alreadyImportedModules = {};
  4835. for(var i = 0; i < this.length; i++) {
  4836. var id = this[i][0];
  4837. if(typeof id === "number")
  4838. alreadyImportedModules[id] = true;
  4839. }
  4840. for(i = 0; i < modules.length; i++) {
  4841. var item = modules[i];
  4842. // skip already imported module
  4843. // this implementation is not 100% perfect for weird media query combinations
  4844. // when a module is imported multiple times with different media queries.
  4845. // I hope this will never occur (Hey this way we have smaller bundles)
  4846. if(typeof item[0] !== "number" || !alreadyImportedModules[item[0]]) {
  4847. if(mediaQuery && !item[2]) {
  4848. item[2] = mediaQuery;
  4849. } else if(mediaQuery) {
  4850. item[2] = "(" + item[2] + ") and (" + mediaQuery + ")";
  4851. }
  4852. list.push(item);
  4853. }
  4854. }
  4855. };
  4856. return list;
  4857. };
  4858. function cssWithMappingToString(item, useSourceMap) {
  4859. var content = item[1] || '';
  4860. var cssMapping = item[3];
  4861. if (!cssMapping) {
  4862. return content;
  4863. }
  4864. if (useSourceMap && typeof btoa === 'function') {
  4865. var sourceMapping = toComment(cssMapping);
  4866. var sourceURLs = cssMapping.sources.map(function (source) {
  4867. return '/*# sourceURL=' + cssMapping.sourceRoot + source + ' */'
  4868. });
  4869. return [content].concat(sourceURLs).concat([sourceMapping]).join('\n');
  4870. }
  4871. return [content].join('\n');
  4872. }
  4873. // Adapted from convert-source-map (MIT)
  4874. function toComment(sourceMap) {
  4875. // eslint-disable-next-line no-undef
  4876. var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));
  4877. var data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64;
  4878. return '/*# ' + data + ' */';
  4879. }
  4880. /***/ }),
  4881. /***/ "../../node_modules/dagre/index.js":
  4882. /*!*************************************************************!*\
  4883. !*** C:/Dev/Babylon/Babylon.js/node_modules/dagre/index.js ***!
  4884. \*************************************************************/
  4885. /*! no static exports found */
  4886. /***/ (function(module, exports, __webpack_require__) {
  4887. /*
  4888. Copyright (c) 2012-2014 Chris Pettitt
  4889. Permission is hereby granted, free of charge, to any person obtaining a copy
  4890. of this software and associated documentation files (the "Software"), to deal
  4891. in the Software without restriction, including without limitation the rights
  4892. to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  4893. copies of the Software, and to permit persons to whom the Software is
  4894. furnished to do so, subject to the following conditions:
  4895. The above copyright notice and this permission notice shall be included in
  4896. all copies or substantial portions of the Software.
  4897. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  4898. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  4899. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  4900. AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  4901. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  4902. OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  4903. THE SOFTWARE.
  4904. */
  4905. module.exports = {
  4906. graphlib: __webpack_require__(/*! ./lib/graphlib */ "../../node_modules/dagre/lib/graphlib.js"),
  4907. layout: __webpack_require__(/*! ./lib/layout */ "../../node_modules/dagre/lib/layout.js"),
  4908. debug: __webpack_require__(/*! ./lib/debug */ "../../node_modules/dagre/lib/debug.js"),
  4909. util: {
  4910. time: __webpack_require__(/*! ./lib/util */ "../../node_modules/dagre/lib/util.js").time,
  4911. notime: __webpack_require__(/*! ./lib/util */ "../../node_modules/dagre/lib/util.js").notime
  4912. },
  4913. version: __webpack_require__(/*! ./lib/version */ "../../node_modules/dagre/lib/version.js")
  4914. };
  4915. /***/ }),
  4916. /***/ "../../node_modules/dagre/lib/acyclic.js":
  4917. /*!*******************************************************************!*\
  4918. !*** C:/Dev/Babylon/Babylon.js/node_modules/dagre/lib/acyclic.js ***!
  4919. \*******************************************************************/
  4920. /*! no static exports found */
  4921. /***/ (function(module, exports, __webpack_require__) {
  4922. "use strict";
  4923. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/dagre/lib/lodash.js"),
  4924. greedyFAS = __webpack_require__(/*! ./greedy-fas */ "../../node_modules/dagre/lib/greedy-fas.js");
  4925. module.exports = {
  4926. run: run,
  4927. undo: undo
  4928. };
  4929. function run(g) {
  4930. var fas = (g.graph().acyclicer === "greedy"
  4931. ? greedyFAS(g, weightFn(g))
  4932. : dfsFAS(g));
  4933. _.forEach(fas, function(e) {
  4934. var label = g.edge(e);
  4935. g.removeEdge(e);
  4936. label.forwardName = e.name;
  4937. label.reversed = true;
  4938. g.setEdge(e.w, e.v, label, _.uniqueId("rev"));
  4939. });
  4940. function weightFn(g) {
  4941. return function(e) {
  4942. return g.edge(e).weight;
  4943. };
  4944. }
  4945. }
  4946. function dfsFAS(g) {
  4947. var fas = [],
  4948. stack = {},
  4949. visited = {};
  4950. function dfs(v) {
  4951. if (_.has(visited, v)) {
  4952. return;
  4953. }
  4954. visited[v] = true;
  4955. stack[v] = true;
  4956. _.forEach(g.outEdges(v), function(e) {
  4957. if (_.has(stack, e.w)) {
  4958. fas.push(e);
  4959. } else {
  4960. dfs(e.w);
  4961. }
  4962. });
  4963. delete stack[v];
  4964. }
  4965. _.forEach(g.nodes(), dfs);
  4966. return fas;
  4967. }
  4968. function undo(g) {
  4969. _.forEach(g.edges(), function(e) {
  4970. var label = g.edge(e);
  4971. if (label.reversed) {
  4972. g.removeEdge(e);
  4973. var forwardName = label.forwardName;
  4974. delete label.reversed;
  4975. delete label.forwardName;
  4976. g.setEdge(e.w, e.v, label, forwardName);
  4977. }
  4978. });
  4979. }
  4980. /***/ }),
  4981. /***/ "../../node_modules/dagre/lib/add-border-segments.js":
  4982. /*!*******************************************************************************!*\
  4983. !*** C:/Dev/Babylon/Babylon.js/node_modules/dagre/lib/add-border-segments.js ***!
  4984. \*******************************************************************************/
  4985. /*! no static exports found */
  4986. /***/ (function(module, exports, __webpack_require__) {
  4987. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/dagre/lib/lodash.js"),
  4988. util = __webpack_require__(/*! ./util */ "../../node_modules/dagre/lib/util.js");
  4989. module.exports = addBorderSegments;
  4990. function addBorderSegments(g) {
  4991. function dfs(v) {
  4992. var children = g.children(v),
  4993. node = g.node(v);
  4994. if (children.length) {
  4995. _.forEach(children, dfs);
  4996. }
  4997. if (_.has(node, "minRank")) {
  4998. node.borderLeft = [];
  4999. node.borderRight = [];
  5000. for (var rank = node.minRank, maxRank = node.maxRank + 1;
  5001. rank < maxRank;
  5002. ++rank) {
  5003. addBorderNode(g, "borderLeft", "_bl", v, node, rank);
  5004. addBorderNode(g, "borderRight", "_br", v, node, rank);
  5005. }
  5006. }
  5007. }
  5008. _.forEach(g.children(), dfs);
  5009. }
  5010. function addBorderNode(g, prop, prefix, sg, sgNode, rank) {
  5011. var label = { width: 0, height: 0, rank: rank, borderType: prop },
  5012. prev = sgNode[prop][rank - 1],
  5013. curr = util.addDummyNode(g, "border", label, prefix);
  5014. sgNode[prop][rank] = curr;
  5015. g.setParent(curr, sg);
  5016. if (prev) {
  5017. g.setEdge(prev, curr, { weight: 1 });
  5018. }
  5019. }
  5020. /***/ }),
  5021. /***/ "../../node_modules/dagre/lib/coordinate-system.js":
  5022. /*!*****************************************************************************!*\
  5023. !*** C:/Dev/Babylon/Babylon.js/node_modules/dagre/lib/coordinate-system.js ***!
  5024. \*****************************************************************************/
  5025. /*! no static exports found */
  5026. /***/ (function(module, exports, __webpack_require__) {
  5027. "use strict";
  5028. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/dagre/lib/lodash.js");
  5029. module.exports = {
  5030. adjust: adjust,
  5031. undo: undo
  5032. };
  5033. function adjust(g) {
  5034. var rankDir = g.graph().rankdir.toLowerCase();
  5035. if (rankDir === "lr" || rankDir === "rl") {
  5036. swapWidthHeight(g);
  5037. }
  5038. }
  5039. function undo(g) {
  5040. var rankDir = g.graph().rankdir.toLowerCase();
  5041. if (rankDir === "bt" || rankDir === "rl") {
  5042. reverseY(g);
  5043. }
  5044. if (rankDir === "lr" || rankDir === "rl") {
  5045. swapXY(g);
  5046. swapWidthHeight(g);
  5047. }
  5048. }
  5049. function swapWidthHeight(g) {
  5050. _.forEach(g.nodes(), function(v) { swapWidthHeightOne(g.node(v)); });
  5051. _.forEach(g.edges(), function(e) { swapWidthHeightOne(g.edge(e)); });
  5052. }
  5053. function swapWidthHeightOne(attrs) {
  5054. var w = attrs.width;
  5055. attrs.width = attrs.height;
  5056. attrs.height = w;
  5057. }
  5058. function reverseY(g) {
  5059. _.forEach(g.nodes(), function(v) { reverseYOne(g.node(v)); });
  5060. _.forEach(g.edges(), function(e) {
  5061. var edge = g.edge(e);
  5062. _.forEach(edge.points, reverseYOne);
  5063. if (_.has(edge, "y")) {
  5064. reverseYOne(edge);
  5065. }
  5066. });
  5067. }
  5068. function reverseYOne(attrs) {
  5069. attrs.y = -attrs.y;
  5070. }
  5071. function swapXY(g) {
  5072. _.forEach(g.nodes(), function(v) { swapXYOne(g.node(v)); });
  5073. _.forEach(g.edges(), function(e) {
  5074. var edge = g.edge(e);
  5075. _.forEach(edge.points, swapXYOne);
  5076. if (_.has(edge, "x")) {
  5077. swapXYOne(edge);
  5078. }
  5079. });
  5080. }
  5081. function swapXYOne(attrs) {
  5082. var x = attrs.x;
  5083. attrs.x = attrs.y;
  5084. attrs.y = x;
  5085. }
  5086. /***/ }),
  5087. /***/ "../../node_modules/dagre/lib/data/list.js":
  5088. /*!*********************************************************************!*\
  5089. !*** C:/Dev/Babylon/Babylon.js/node_modules/dagre/lib/data/list.js ***!
  5090. \*********************************************************************/
  5091. /*! no static exports found */
  5092. /***/ (function(module, exports) {
  5093. /*
  5094. * Simple doubly linked list implementation derived from Cormen, et al.,
  5095. * "Introduction to Algorithms".
  5096. */
  5097. module.exports = List;
  5098. function List() {
  5099. var sentinel = {};
  5100. sentinel._next = sentinel._prev = sentinel;
  5101. this._sentinel = sentinel;
  5102. }
  5103. List.prototype.dequeue = function() {
  5104. var sentinel = this._sentinel,
  5105. entry = sentinel._prev;
  5106. if (entry !== sentinel) {
  5107. unlink(entry);
  5108. return entry;
  5109. }
  5110. };
  5111. List.prototype.enqueue = function(entry) {
  5112. var sentinel = this._sentinel;
  5113. if (entry._prev && entry._next) {
  5114. unlink(entry);
  5115. }
  5116. entry._next = sentinel._next;
  5117. sentinel._next._prev = entry;
  5118. sentinel._next = entry;
  5119. entry._prev = sentinel;
  5120. };
  5121. List.prototype.toString = function() {
  5122. var strs = [],
  5123. sentinel = this._sentinel,
  5124. curr = sentinel._prev;
  5125. while (curr !== sentinel) {
  5126. strs.push(JSON.stringify(curr, filterOutLinks));
  5127. curr = curr._prev;
  5128. }
  5129. return "[" + strs.join(", ") + "]";
  5130. };
  5131. function unlink(entry) {
  5132. entry._prev._next = entry._next;
  5133. entry._next._prev = entry._prev;
  5134. delete entry._next;
  5135. delete entry._prev;
  5136. }
  5137. function filterOutLinks(k, v) {
  5138. if (k !== "_next" && k !== "_prev") {
  5139. return v;
  5140. }
  5141. }
  5142. /***/ }),
  5143. /***/ "../../node_modules/dagre/lib/debug.js":
  5144. /*!*****************************************************************!*\
  5145. !*** C:/Dev/Babylon/Babylon.js/node_modules/dagre/lib/debug.js ***!
  5146. \*****************************************************************/
  5147. /*! no static exports found */
  5148. /***/ (function(module, exports, __webpack_require__) {
  5149. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/dagre/lib/lodash.js"),
  5150. util = __webpack_require__(/*! ./util */ "../../node_modules/dagre/lib/util.js"),
  5151. Graph = __webpack_require__(/*! ./graphlib */ "../../node_modules/dagre/lib/graphlib.js").Graph;
  5152. module.exports = {
  5153. debugOrdering: debugOrdering
  5154. };
  5155. /* istanbul ignore next */
  5156. function debugOrdering(g) {
  5157. var layerMatrix = util.buildLayerMatrix(g);
  5158. var h = new Graph({ compound: true, multigraph: true }).setGraph({});
  5159. _.forEach(g.nodes(), function(v) {
  5160. h.setNode(v, { label: v });
  5161. h.setParent(v, "layer" + g.node(v).rank);
  5162. });
  5163. _.forEach(g.edges(), function(e) {
  5164. h.setEdge(e.v, e.w, {}, e.name);
  5165. });
  5166. _.forEach(layerMatrix, function(layer, i) {
  5167. var layerV = "layer" + i;
  5168. h.setNode(layerV, { rank: "same" });
  5169. _.reduce(layer, function(u, v) {
  5170. h.setEdge(u, v, { style: "invis" });
  5171. return v;
  5172. });
  5173. });
  5174. return h;
  5175. }
  5176. /***/ }),
  5177. /***/ "../../node_modules/dagre/lib/graphlib.js":
  5178. /*!********************************************************************!*\
  5179. !*** C:/Dev/Babylon/Babylon.js/node_modules/dagre/lib/graphlib.js ***!
  5180. \********************************************************************/
  5181. /*! no static exports found */
  5182. /***/ (function(module, exports, __webpack_require__) {
  5183. /* global window */
  5184. var graphlib;
  5185. if (true) {
  5186. try {
  5187. graphlib = __webpack_require__(/*! graphlib */ "../../node_modules/graphlib/index.js");
  5188. } catch (e) {}
  5189. }
  5190. if (!graphlib) {
  5191. graphlib = window.graphlib;
  5192. }
  5193. module.exports = graphlib;
  5194. /***/ }),
  5195. /***/ "../../node_modules/dagre/lib/greedy-fas.js":
  5196. /*!**********************************************************************!*\
  5197. !*** C:/Dev/Babylon/Babylon.js/node_modules/dagre/lib/greedy-fas.js ***!
  5198. \**********************************************************************/
  5199. /*! no static exports found */
  5200. /***/ (function(module, exports, __webpack_require__) {
  5201. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/dagre/lib/lodash.js"),
  5202. Graph = __webpack_require__(/*! ./graphlib */ "../../node_modules/dagre/lib/graphlib.js").Graph,
  5203. List = __webpack_require__(/*! ./data/list */ "../../node_modules/dagre/lib/data/list.js");
  5204. /*
  5205. * A greedy heuristic for finding a feedback arc set for a graph. A feedback
  5206. * arc set is a set of edges that can be removed to make a graph acyclic.
  5207. * The algorithm comes from: P. Eades, X. Lin, and W. F. Smyth, "A fast and
  5208. * effective heuristic for the feedback arc set problem." This implementation
  5209. * adjusts that from the paper to allow for weighted edges.
  5210. */
  5211. module.exports = greedyFAS;
  5212. var DEFAULT_WEIGHT_FN = _.constant(1);
  5213. function greedyFAS(g, weightFn) {
  5214. if (g.nodeCount() <= 1) {
  5215. return [];
  5216. }
  5217. var state = buildState(g, weightFn || DEFAULT_WEIGHT_FN);
  5218. var results = doGreedyFAS(state.graph, state.buckets, state.zeroIdx);
  5219. // Expand multi-edges
  5220. return _.flatten(_.map(results, function(e) {
  5221. return g.outEdges(e.v, e.w);
  5222. }), true);
  5223. }
  5224. function doGreedyFAS(g, buckets, zeroIdx) {
  5225. var results = [],
  5226. sources = buckets[buckets.length - 1],
  5227. sinks = buckets[0];
  5228. var entry;
  5229. while (g.nodeCount()) {
  5230. while ((entry = sinks.dequeue())) { removeNode(g, buckets, zeroIdx, entry); }
  5231. while ((entry = sources.dequeue())) { removeNode(g, buckets, zeroIdx, entry); }
  5232. if (g.nodeCount()) {
  5233. for (var i = buckets.length - 2; i > 0; --i) {
  5234. entry = buckets[i].dequeue();
  5235. if (entry) {
  5236. results = results.concat(removeNode(g, buckets, zeroIdx, entry, true));
  5237. break;
  5238. }
  5239. }
  5240. }
  5241. }
  5242. return results;
  5243. }
  5244. function removeNode(g, buckets, zeroIdx, entry, collectPredecessors) {
  5245. var results = collectPredecessors ? [] : undefined;
  5246. _.forEach(g.inEdges(entry.v), function(edge) {
  5247. var weight = g.edge(edge),
  5248. uEntry = g.node(edge.v);
  5249. if (collectPredecessors) {
  5250. results.push({ v: edge.v, w: edge.w });
  5251. }
  5252. uEntry.out -= weight;
  5253. assignBucket(buckets, zeroIdx, uEntry);
  5254. });
  5255. _.forEach(g.outEdges(entry.v), function(edge) {
  5256. var weight = g.edge(edge),
  5257. w = edge.w,
  5258. wEntry = g.node(w);
  5259. wEntry["in"] -= weight;
  5260. assignBucket(buckets, zeroIdx, wEntry);
  5261. });
  5262. g.removeNode(entry.v);
  5263. return results;
  5264. }
  5265. function buildState(g, weightFn) {
  5266. var fasGraph = new Graph(),
  5267. maxIn = 0,
  5268. maxOut = 0;
  5269. _.forEach(g.nodes(), function(v) {
  5270. fasGraph.setNode(v, { v: v, "in": 0, out: 0 });
  5271. });
  5272. // Aggregate weights on nodes, but also sum the weights across multi-edges
  5273. // into a single edge for the fasGraph.
  5274. _.forEach(g.edges(), function(e) {
  5275. var prevWeight = fasGraph.edge(e.v, e.w) || 0,
  5276. weight = weightFn(e),
  5277. edgeWeight = prevWeight + weight;
  5278. fasGraph.setEdge(e.v, e.w, edgeWeight);
  5279. maxOut = Math.max(maxOut, fasGraph.node(e.v).out += weight);
  5280. maxIn = Math.max(maxIn, fasGraph.node(e.w)["in"] += weight);
  5281. });
  5282. var buckets = _.range(maxOut + maxIn + 3).map(function() { return new List(); });
  5283. var zeroIdx = maxIn + 1;
  5284. _.forEach(fasGraph.nodes(), function(v) {
  5285. assignBucket(buckets, zeroIdx, fasGraph.node(v));
  5286. });
  5287. return { graph: fasGraph, buckets: buckets, zeroIdx: zeroIdx };
  5288. }
  5289. function assignBucket(buckets, zeroIdx, entry) {
  5290. if (!entry.out) {
  5291. buckets[0].enqueue(entry);
  5292. } else if (!entry["in"]) {
  5293. buckets[buckets.length - 1].enqueue(entry);
  5294. } else {
  5295. buckets[entry.out - entry["in"] + zeroIdx].enqueue(entry);
  5296. }
  5297. }
  5298. /***/ }),
  5299. /***/ "../../node_modules/dagre/lib/layout.js":
  5300. /*!******************************************************************!*\
  5301. !*** C:/Dev/Babylon/Babylon.js/node_modules/dagre/lib/layout.js ***!
  5302. \******************************************************************/
  5303. /*! no static exports found */
  5304. /***/ (function(module, exports, __webpack_require__) {
  5305. "use strict";
  5306. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/dagre/lib/lodash.js"),
  5307. acyclic = __webpack_require__(/*! ./acyclic */ "../../node_modules/dagre/lib/acyclic.js"),
  5308. normalize = __webpack_require__(/*! ./normalize */ "../../node_modules/dagre/lib/normalize.js"),
  5309. rank = __webpack_require__(/*! ./rank */ "../../node_modules/dagre/lib/rank/index.js"),
  5310. normalizeRanks = __webpack_require__(/*! ./util */ "../../node_modules/dagre/lib/util.js").normalizeRanks,
  5311. parentDummyChains = __webpack_require__(/*! ./parent-dummy-chains */ "../../node_modules/dagre/lib/parent-dummy-chains.js"),
  5312. removeEmptyRanks = __webpack_require__(/*! ./util */ "../../node_modules/dagre/lib/util.js").removeEmptyRanks,
  5313. nestingGraph = __webpack_require__(/*! ./nesting-graph */ "../../node_modules/dagre/lib/nesting-graph.js"),
  5314. addBorderSegments = __webpack_require__(/*! ./add-border-segments */ "../../node_modules/dagre/lib/add-border-segments.js"),
  5315. coordinateSystem = __webpack_require__(/*! ./coordinate-system */ "../../node_modules/dagre/lib/coordinate-system.js"),
  5316. order = __webpack_require__(/*! ./order */ "../../node_modules/dagre/lib/order/index.js"),
  5317. position = __webpack_require__(/*! ./position */ "../../node_modules/dagre/lib/position/index.js"),
  5318. util = __webpack_require__(/*! ./util */ "../../node_modules/dagre/lib/util.js"),
  5319. Graph = __webpack_require__(/*! ./graphlib */ "../../node_modules/dagre/lib/graphlib.js").Graph;
  5320. module.exports = layout;
  5321. function layout(g, opts) {
  5322. var time = opts && opts.debugTiming ? util.time : util.notime;
  5323. time("layout", function() {
  5324. var layoutGraph = time(" buildLayoutGraph",
  5325. function() { return buildLayoutGraph(g); });
  5326. time(" runLayout", function() { runLayout(layoutGraph, time); });
  5327. time(" updateInputGraph", function() { updateInputGraph(g, layoutGraph); });
  5328. });
  5329. }
  5330. function runLayout(g, time) {
  5331. time(" makeSpaceForEdgeLabels", function() { makeSpaceForEdgeLabels(g); });
  5332. time(" removeSelfEdges", function() { removeSelfEdges(g); });
  5333. time(" acyclic", function() { acyclic.run(g); });
  5334. time(" nestingGraph.run", function() { nestingGraph.run(g); });
  5335. time(" rank", function() { rank(util.asNonCompoundGraph(g)); });
  5336. time(" injectEdgeLabelProxies", function() { injectEdgeLabelProxies(g); });
  5337. time(" removeEmptyRanks", function() { removeEmptyRanks(g); });
  5338. time(" nestingGraph.cleanup", function() { nestingGraph.cleanup(g); });
  5339. time(" normalizeRanks", function() { normalizeRanks(g); });
  5340. time(" assignRankMinMax", function() { assignRankMinMax(g); });
  5341. time(" removeEdgeLabelProxies", function() { removeEdgeLabelProxies(g); });
  5342. time(" normalize.run", function() { normalize.run(g); });
  5343. time(" parentDummyChains", function() { parentDummyChains(g); });
  5344. time(" addBorderSegments", function() { addBorderSegments(g); });
  5345. time(" order", function() { order(g); });
  5346. time(" insertSelfEdges", function() { insertSelfEdges(g); });
  5347. time(" adjustCoordinateSystem", function() { coordinateSystem.adjust(g); });
  5348. time(" position", function() { position(g); });
  5349. time(" positionSelfEdges", function() { positionSelfEdges(g); });
  5350. time(" removeBorderNodes", function() { removeBorderNodes(g); });
  5351. time(" normalize.undo", function() { normalize.undo(g); });
  5352. time(" fixupEdgeLabelCoords", function() { fixupEdgeLabelCoords(g); });
  5353. time(" undoCoordinateSystem", function() { coordinateSystem.undo(g); });
  5354. time(" translateGraph", function() { translateGraph(g); });
  5355. time(" assignNodeIntersects", function() { assignNodeIntersects(g); });
  5356. time(" reversePoints", function() { reversePointsForReversedEdges(g); });
  5357. time(" acyclic.undo", function() { acyclic.undo(g); });
  5358. }
  5359. /*
  5360. * Copies final layout information from the layout graph back to the input
  5361. * graph. This process only copies whitelisted attributes from the layout graph
  5362. * to the input graph, so it serves as a good place to determine what
  5363. * attributes can influence layout.
  5364. */
  5365. function updateInputGraph(inputGraph, layoutGraph) {
  5366. _.forEach(inputGraph.nodes(), function(v) {
  5367. var inputLabel = inputGraph.node(v),
  5368. layoutLabel = layoutGraph.node(v);
  5369. if (inputLabel) {
  5370. inputLabel.x = layoutLabel.x;
  5371. inputLabel.y = layoutLabel.y;
  5372. if (layoutGraph.children(v).length) {
  5373. inputLabel.width = layoutLabel.width;
  5374. inputLabel.height = layoutLabel.height;
  5375. }
  5376. }
  5377. });
  5378. _.forEach(inputGraph.edges(), function(e) {
  5379. var inputLabel = inputGraph.edge(e),
  5380. layoutLabel = layoutGraph.edge(e);
  5381. inputLabel.points = layoutLabel.points;
  5382. if (_.has(layoutLabel, "x")) {
  5383. inputLabel.x = layoutLabel.x;
  5384. inputLabel.y = layoutLabel.y;
  5385. }
  5386. });
  5387. inputGraph.graph().width = layoutGraph.graph().width;
  5388. inputGraph.graph().height = layoutGraph.graph().height;
  5389. }
  5390. var graphNumAttrs = ["nodesep", "edgesep", "ranksep", "marginx", "marginy"],
  5391. graphDefaults = { ranksep: 50, edgesep: 20, nodesep: 50, rankdir: "tb" },
  5392. graphAttrs = ["acyclicer", "ranker", "rankdir", "align"],
  5393. nodeNumAttrs = ["width", "height"],
  5394. nodeDefaults = { width: 0, height: 0 },
  5395. edgeNumAttrs = ["minlen", "weight", "width", "height", "labeloffset"],
  5396. edgeDefaults = {
  5397. minlen: 1, weight: 1, width: 0, height: 0,
  5398. labeloffset: 10, labelpos: "r"
  5399. },
  5400. edgeAttrs = ["labelpos"];
  5401. /*
  5402. * Constructs a new graph from the input graph, which can be used for layout.
  5403. * This process copies only whitelisted attributes from the input graph to the
  5404. * layout graph. Thus this function serves as a good place to determine what
  5405. * attributes can influence layout.
  5406. */
  5407. function buildLayoutGraph(inputGraph) {
  5408. var g = new Graph({ multigraph: true, compound: true }),
  5409. graph = canonicalize(inputGraph.graph());
  5410. g.setGraph(_.merge({},
  5411. graphDefaults,
  5412. selectNumberAttrs(graph, graphNumAttrs),
  5413. _.pick(graph, graphAttrs)));
  5414. _.forEach(inputGraph.nodes(), function(v) {
  5415. var node = canonicalize(inputGraph.node(v));
  5416. g.setNode(v, _.defaults(selectNumberAttrs(node, nodeNumAttrs), nodeDefaults));
  5417. g.setParent(v, inputGraph.parent(v));
  5418. });
  5419. _.forEach(inputGraph.edges(), function(e) {
  5420. var edge = canonicalize(inputGraph.edge(e));
  5421. g.setEdge(e, _.merge({},
  5422. edgeDefaults,
  5423. selectNumberAttrs(edge, edgeNumAttrs),
  5424. _.pick(edge, edgeAttrs)));
  5425. });
  5426. return g;
  5427. }
  5428. /*
  5429. * This idea comes from the Gansner paper: to account for edge labels in our
  5430. * layout we split each rank in half by doubling minlen and halving ranksep.
  5431. * Then we can place labels at these mid-points between nodes.
  5432. *
  5433. * We also add some minimal padding to the width to push the label for the edge
  5434. * away from the edge itself a bit.
  5435. */
  5436. function makeSpaceForEdgeLabels(g) {
  5437. var graph = g.graph();
  5438. graph.ranksep /= 2;
  5439. _.forEach(g.edges(), function(e) {
  5440. var edge = g.edge(e);
  5441. edge.minlen *= 2;
  5442. if (edge.labelpos.toLowerCase() !== "c") {
  5443. if (graph.rankdir === "TB" || graph.rankdir === "BT") {
  5444. edge.width += edge.labeloffset;
  5445. } else {
  5446. edge.height += edge.labeloffset;
  5447. }
  5448. }
  5449. });
  5450. }
  5451. /*
  5452. * Creates temporary dummy nodes that capture the rank in which each edge's
  5453. * label is going to, if it has one of non-zero width and height. We do this
  5454. * so that we can safely remove empty ranks while preserving balance for the
  5455. * label's position.
  5456. */
  5457. function injectEdgeLabelProxies(g) {
  5458. _.forEach(g.edges(), function(e) {
  5459. var edge = g.edge(e);
  5460. if (edge.width && edge.height) {
  5461. var v = g.node(e.v),
  5462. w = g.node(e.w),
  5463. label = { rank: (w.rank - v.rank) / 2 + v.rank, e: e };
  5464. util.addDummyNode(g, "edge-proxy", label, "_ep");
  5465. }
  5466. });
  5467. }
  5468. function assignRankMinMax(g) {
  5469. var maxRank = 0;
  5470. _.forEach(g.nodes(), function(v) {
  5471. var node = g.node(v);
  5472. if (node.borderTop) {
  5473. node.minRank = g.node(node.borderTop).rank;
  5474. node.maxRank = g.node(node.borderBottom).rank;
  5475. maxRank = _.max(maxRank, node.maxRank);
  5476. }
  5477. });
  5478. g.graph().maxRank = maxRank;
  5479. }
  5480. function removeEdgeLabelProxies(g) {
  5481. _.forEach(g.nodes(), function(v) {
  5482. var node = g.node(v);
  5483. if (node.dummy === "edge-proxy") {
  5484. g.edge(node.e).labelRank = node.rank;
  5485. g.removeNode(v);
  5486. }
  5487. });
  5488. }
  5489. function translateGraph(g) {
  5490. var minX = Number.POSITIVE_INFINITY,
  5491. maxX = 0,
  5492. minY = Number.POSITIVE_INFINITY,
  5493. maxY = 0,
  5494. graphLabel = g.graph(),
  5495. marginX = graphLabel.marginx || 0,
  5496. marginY = graphLabel.marginy || 0;
  5497. function getExtremes(attrs) {
  5498. var x = attrs.x,
  5499. y = attrs.y,
  5500. w = attrs.width,
  5501. h = attrs.height;
  5502. minX = Math.min(minX, x - w / 2);
  5503. maxX = Math.max(maxX, x + w / 2);
  5504. minY = Math.min(minY, y - h / 2);
  5505. maxY = Math.max(maxY, y + h / 2);
  5506. }
  5507. _.forEach(g.nodes(), function(v) { getExtremes(g.node(v)); });
  5508. _.forEach(g.edges(), function(e) {
  5509. var edge = g.edge(e);
  5510. if (_.has(edge, "x")) {
  5511. getExtremes(edge);
  5512. }
  5513. });
  5514. minX -= marginX;
  5515. minY -= marginY;
  5516. _.forEach(g.nodes(), function(v) {
  5517. var node = g.node(v);
  5518. node.x -= minX;
  5519. node.y -= minY;
  5520. });
  5521. _.forEach(g.edges(), function(e) {
  5522. var edge = g.edge(e);
  5523. _.forEach(edge.points, function(p) {
  5524. p.x -= minX;
  5525. p.y -= minY;
  5526. });
  5527. if (_.has(edge, "x")) { edge.x -= minX; }
  5528. if (_.has(edge, "y")) { edge.y -= minY; }
  5529. });
  5530. graphLabel.width = maxX - minX + marginX;
  5531. graphLabel.height = maxY - minY + marginY;
  5532. }
  5533. function assignNodeIntersects(g) {
  5534. _.forEach(g.edges(), function(e) {
  5535. var edge = g.edge(e),
  5536. nodeV = g.node(e.v),
  5537. nodeW = g.node(e.w),
  5538. p1, p2;
  5539. if (!edge.points) {
  5540. edge.points = [];
  5541. p1 = nodeW;
  5542. p2 = nodeV;
  5543. } else {
  5544. p1 = edge.points[0];
  5545. p2 = edge.points[edge.points.length - 1];
  5546. }
  5547. edge.points.unshift(util.intersectRect(nodeV, p1));
  5548. edge.points.push(util.intersectRect(nodeW, p2));
  5549. });
  5550. }
  5551. function fixupEdgeLabelCoords(g) {
  5552. _.forEach(g.edges(), function(e) {
  5553. var edge = g.edge(e);
  5554. if (_.has(edge, "x")) {
  5555. if (edge.labelpos === "l" || edge.labelpos === "r") {
  5556. edge.width -= edge.labeloffset;
  5557. }
  5558. switch (edge.labelpos) {
  5559. case "l": edge.x -= edge.width / 2 + edge.labeloffset; break;
  5560. case "r": edge.x += edge.width / 2 + edge.labeloffset; break;
  5561. }
  5562. }
  5563. });
  5564. }
  5565. function reversePointsForReversedEdges(g) {
  5566. _.forEach(g.edges(), function(e) {
  5567. var edge = g.edge(e);
  5568. if (edge.reversed) {
  5569. edge.points.reverse();
  5570. }
  5571. });
  5572. }
  5573. function removeBorderNodes(g) {
  5574. _.forEach(g.nodes(), function(v) {
  5575. if (g.children(v).length) {
  5576. var node = g.node(v),
  5577. t = g.node(node.borderTop),
  5578. b = g.node(node.borderBottom),
  5579. l = g.node(_.last(node.borderLeft)),
  5580. r = g.node(_.last(node.borderRight));
  5581. node.width = Math.abs(r.x - l.x);
  5582. node.height = Math.abs(b.y - t.y);
  5583. node.x = l.x + node.width / 2;
  5584. node.y = t.y + node.height / 2;
  5585. }
  5586. });
  5587. _.forEach(g.nodes(), function(v) {
  5588. if (g.node(v).dummy === "border") {
  5589. g.removeNode(v);
  5590. }
  5591. });
  5592. }
  5593. function removeSelfEdges(g) {
  5594. _.forEach(g.edges(), function(e) {
  5595. if (e.v === e.w) {
  5596. var node = g.node(e.v);
  5597. if (!node.selfEdges) {
  5598. node.selfEdges = [];
  5599. }
  5600. node.selfEdges.push({ e: e, label: g.edge(e) });
  5601. g.removeEdge(e);
  5602. }
  5603. });
  5604. }
  5605. function insertSelfEdges(g) {
  5606. var layers = util.buildLayerMatrix(g);
  5607. _.forEach(layers, function(layer) {
  5608. var orderShift = 0;
  5609. _.forEach(layer, function(v, i) {
  5610. var node = g.node(v);
  5611. node.order = i + orderShift;
  5612. _.forEach(node.selfEdges, function(selfEdge) {
  5613. util.addDummyNode(g, "selfedge", {
  5614. width: selfEdge.label.width,
  5615. height: selfEdge.label.height,
  5616. rank: node.rank,
  5617. order: i + (++orderShift),
  5618. e: selfEdge.e,
  5619. label: selfEdge.label
  5620. }, "_se");
  5621. });
  5622. delete node.selfEdges;
  5623. });
  5624. });
  5625. }
  5626. function positionSelfEdges(g) {
  5627. _.forEach(g.nodes(), function(v) {
  5628. var node = g.node(v);
  5629. if (node.dummy === "selfedge") {
  5630. var selfNode = g.node(node.e.v),
  5631. x = selfNode.x + selfNode.width / 2,
  5632. y = selfNode.y,
  5633. dx = node.x - x,
  5634. dy = selfNode.height / 2;
  5635. g.setEdge(node.e, node.label);
  5636. g.removeNode(v);
  5637. node.label.points = [
  5638. { x: x + 2 * dx / 3, y: y - dy },
  5639. { x: x + 5 * dx / 6, y: y - dy },
  5640. { x: x + dx , y: y },
  5641. { x: x + 5 * dx / 6, y: y + dy },
  5642. { x: x + 2 * dx / 3, y: y + dy }
  5643. ];
  5644. node.label.x = node.x;
  5645. node.label.y = node.y;
  5646. }
  5647. });
  5648. }
  5649. function selectNumberAttrs(obj, attrs) {
  5650. return _.mapValues(_.pick(obj, attrs), Number);
  5651. }
  5652. function canonicalize(attrs) {
  5653. var newAttrs = {};
  5654. _.forEach(attrs, function(v, k) {
  5655. newAttrs[k.toLowerCase()] = v;
  5656. });
  5657. return newAttrs;
  5658. }
  5659. /***/ }),
  5660. /***/ "../../node_modules/dagre/lib/lodash.js":
  5661. /*!******************************************************************!*\
  5662. !*** C:/Dev/Babylon/Babylon.js/node_modules/dagre/lib/lodash.js ***!
  5663. \******************************************************************/
  5664. /*! no static exports found */
  5665. /***/ (function(module, exports, __webpack_require__) {
  5666. /* global window */
  5667. var lodash;
  5668. if (true) {
  5669. try {
  5670. lodash = {
  5671. cloneDeep: __webpack_require__(/*! lodash/cloneDeep */ "../../node_modules/lodash/cloneDeep.js"),
  5672. constant: __webpack_require__(/*! lodash/constant */ "../../node_modules/lodash/constant.js"),
  5673. defaults: __webpack_require__(/*! lodash/defaults */ "../../node_modules/lodash/defaults.js"),
  5674. each: __webpack_require__(/*! lodash/each */ "../../node_modules/lodash/each.js"),
  5675. filter: __webpack_require__(/*! lodash/filter */ "../../node_modules/lodash/filter.js"),
  5676. find: __webpack_require__(/*! lodash/find */ "../../node_modules/lodash/find.js"),
  5677. flatten: __webpack_require__(/*! lodash/flatten */ "../../node_modules/lodash/flatten.js"),
  5678. forEach: __webpack_require__(/*! lodash/forEach */ "../../node_modules/lodash/forEach.js"),
  5679. forIn: __webpack_require__(/*! lodash/forIn */ "../../node_modules/lodash/forIn.js"),
  5680. has: __webpack_require__(/*! lodash/has */ "../../node_modules/lodash/has.js"),
  5681. isUndefined: __webpack_require__(/*! lodash/isUndefined */ "../../node_modules/lodash/isUndefined.js"),
  5682. last: __webpack_require__(/*! lodash/last */ "../../node_modules/lodash/last.js"),
  5683. map: __webpack_require__(/*! lodash/map */ "../../node_modules/lodash/map.js"),
  5684. mapValues: __webpack_require__(/*! lodash/mapValues */ "../../node_modules/lodash/mapValues.js"),
  5685. max: __webpack_require__(/*! lodash/max */ "../../node_modules/lodash/max.js"),
  5686. merge: __webpack_require__(/*! lodash/merge */ "../../node_modules/lodash/merge.js"),
  5687. min: __webpack_require__(/*! lodash/min */ "../../node_modules/lodash/min.js"),
  5688. minBy: __webpack_require__(/*! lodash/minBy */ "../../node_modules/lodash/minBy.js"),
  5689. now: __webpack_require__(/*! lodash/now */ "../../node_modules/lodash/now.js"),
  5690. pick: __webpack_require__(/*! lodash/pick */ "../../node_modules/lodash/pick.js"),
  5691. range: __webpack_require__(/*! lodash/range */ "../../node_modules/lodash/range.js"),
  5692. reduce: __webpack_require__(/*! lodash/reduce */ "../../node_modules/lodash/reduce.js"),
  5693. sortBy: __webpack_require__(/*! lodash/sortBy */ "../../node_modules/lodash/sortBy.js"),
  5694. uniqueId: __webpack_require__(/*! lodash/uniqueId */ "../../node_modules/lodash/uniqueId.js"),
  5695. values: __webpack_require__(/*! lodash/values */ "../../node_modules/lodash/values.js"),
  5696. zipObject: __webpack_require__(/*! lodash/zipObject */ "../../node_modules/lodash/zipObject.js"),
  5697. };
  5698. } catch (e) {}
  5699. }
  5700. if (!lodash) {
  5701. lodash = window._;
  5702. }
  5703. module.exports = lodash;
  5704. /***/ }),
  5705. /***/ "../../node_modules/dagre/lib/nesting-graph.js":
  5706. /*!*************************************************************************!*\
  5707. !*** C:/Dev/Babylon/Babylon.js/node_modules/dagre/lib/nesting-graph.js ***!
  5708. \*************************************************************************/
  5709. /*! no static exports found */
  5710. /***/ (function(module, exports, __webpack_require__) {
  5711. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/dagre/lib/lodash.js"),
  5712. util = __webpack_require__(/*! ./util */ "../../node_modules/dagre/lib/util.js");
  5713. module.exports = {
  5714. run: run,
  5715. cleanup: cleanup
  5716. };
  5717. /*
  5718. * A nesting graph creates dummy nodes for the tops and bottoms of subgraphs,
  5719. * adds appropriate edges to ensure that all cluster nodes are placed between
  5720. * these boundries, and ensures that the graph is connected.
  5721. *
  5722. * In addition we ensure, through the use of the minlen property, that nodes
  5723. * and subgraph border nodes to not end up on the same rank.
  5724. *
  5725. * Preconditions:
  5726. *
  5727. * 1. Input graph is a DAG
  5728. * 2. Nodes in the input graph has a minlen attribute
  5729. *
  5730. * Postconditions:
  5731. *
  5732. * 1. Input graph is connected.
  5733. * 2. Dummy nodes are added for the tops and bottoms of subgraphs.
  5734. * 3. The minlen attribute for nodes is adjusted to ensure nodes do not
  5735. * get placed on the same rank as subgraph border nodes.
  5736. *
  5737. * The nesting graph idea comes from Sander, "Layout of Compound Directed
  5738. * Graphs."
  5739. */
  5740. function run(g) {
  5741. var root = util.addDummyNode(g, "root", {}, "_root");
  5742. var depths = treeDepths(g);
  5743. var height = _.max(_.values(depths)) - 1; // Note: depths is an Object not an array
  5744. var nodeSep = 2 * height + 1;
  5745. g.graph().nestingRoot = root;
  5746. // Multiply minlen by nodeSep to align nodes on non-border ranks.
  5747. _.forEach(g.edges(), function(e) { g.edge(e).minlen *= nodeSep; });
  5748. // Calculate a weight that is sufficient to keep subgraphs vertically compact
  5749. var weight = sumWeights(g) + 1;
  5750. // Create border nodes and link them up
  5751. _.forEach(g.children(), function(child) {
  5752. dfs(g, root, nodeSep, weight, height, depths, child);
  5753. });
  5754. // Save the multiplier for node layers for later removal of empty border
  5755. // layers.
  5756. g.graph().nodeRankFactor = nodeSep;
  5757. }
  5758. function dfs(g, root, nodeSep, weight, height, depths, v) {
  5759. var children = g.children(v);
  5760. if (!children.length) {
  5761. if (v !== root) {
  5762. g.setEdge(root, v, { weight: 0, minlen: nodeSep });
  5763. }
  5764. return;
  5765. }
  5766. var top = util.addBorderNode(g, "_bt"),
  5767. bottom = util.addBorderNode(g, "_bb"),
  5768. label = g.node(v);
  5769. g.setParent(top, v);
  5770. label.borderTop = top;
  5771. g.setParent(bottom, v);
  5772. label.borderBottom = bottom;
  5773. _.forEach(children, function(child) {
  5774. dfs(g, root, nodeSep, weight, height, depths, child);
  5775. var childNode = g.node(child),
  5776. childTop = childNode.borderTop ? childNode.borderTop : child,
  5777. childBottom = childNode.borderBottom ? childNode.borderBottom : child,
  5778. thisWeight = childNode.borderTop ? weight : 2 * weight,
  5779. minlen = childTop !== childBottom ? 1 : height - depths[v] + 1;
  5780. g.setEdge(top, childTop, {
  5781. weight: thisWeight,
  5782. minlen: minlen,
  5783. nestingEdge: true
  5784. });
  5785. g.setEdge(childBottom, bottom, {
  5786. weight: thisWeight,
  5787. minlen: minlen,
  5788. nestingEdge: true
  5789. });
  5790. });
  5791. if (!g.parent(v)) {
  5792. g.setEdge(root, top, { weight: 0, minlen: height + depths[v] });
  5793. }
  5794. }
  5795. function treeDepths(g) {
  5796. var depths = {};
  5797. function dfs(v, depth) {
  5798. var children = g.children(v);
  5799. if (children && children.length) {
  5800. _.forEach(children, function(child) {
  5801. dfs(child, depth + 1);
  5802. });
  5803. }
  5804. depths[v] = depth;
  5805. }
  5806. _.forEach(g.children(), function(v) { dfs(v, 1); });
  5807. return depths;
  5808. }
  5809. function sumWeights(g) {
  5810. return _.reduce(g.edges(), function(acc, e) {
  5811. return acc + g.edge(e).weight;
  5812. }, 0);
  5813. }
  5814. function cleanup(g) {
  5815. var graphLabel = g.graph();
  5816. g.removeNode(graphLabel.nestingRoot);
  5817. delete graphLabel.nestingRoot;
  5818. _.forEach(g.edges(), function(e) {
  5819. var edge = g.edge(e);
  5820. if (edge.nestingEdge) {
  5821. g.removeEdge(e);
  5822. }
  5823. });
  5824. }
  5825. /***/ }),
  5826. /***/ "../../node_modules/dagre/lib/normalize.js":
  5827. /*!*********************************************************************!*\
  5828. !*** C:/Dev/Babylon/Babylon.js/node_modules/dagre/lib/normalize.js ***!
  5829. \*********************************************************************/
  5830. /*! no static exports found */
  5831. /***/ (function(module, exports, __webpack_require__) {
  5832. "use strict";
  5833. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/dagre/lib/lodash.js"),
  5834. util = __webpack_require__(/*! ./util */ "../../node_modules/dagre/lib/util.js");
  5835. module.exports = {
  5836. run: run,
  5837. undo: undo
  5838. };
  5839. /*
  5840. * Breaks any long edges in the graph into short segments that span 1 layer
  5841. * each. This operation is undoable with the denormalize function.
  5842. *
  5843. * Pre-conditions:
  5844. *
  5845. * 1. The input graph is a DAG.
  5846. * 2. Each node in the graph has a "rank" property.
  5847. *
  5848. * Post-condition:
  5849. *
  5850. * 1. All edges in the graph have a length of 1.
  5851. * 2. Dummy nodes are added where edges have been split into segments.
  5852. * 3. The graph is augmented with a "dummyChains" attribute which contains
  5853. * the first dummy in each chain of dummy nodes produced.
  5854. */
  5855. function run(g) {
  5856. g.graph().dummyChains = [];
  5857. _.forEach(g.edges(), function(edge) { normalizeEdge(g, edge); });
  5858. }
  5859. function normalizeEdge(g, e) {
  5860. var v = e.v,
  5861. vRank = g.node(v).rank,
  5862. w = e.w,
  5863. wRank = g.node(w).rank,
  5864. name = e.name,
  5865. edgeLabel = g.edge(e),
  5866. labelRank = edgeLabel.labelRank;
  5867. if (wRank === vRank + 1) return;
  5868. g.removeEdge(e);
  5869. var dummy, attrs, i;
  5870. for (i = 0, ++vRank; vRank < wRank; ++i, ++vRank) {
  5871. edgeLabel.points = [];
  5872. attrs = {
  5873. width: 0, height: 0,
  5874. edgeLabel: edgeLabel, edgeObj: e,
  5875. rank: vRank
  5876. };
  5877. dummy = util.addDummyNode(g, "edge", attrs, "_d");
  5878. if (vRank === labelRank) {
  5879. attrs.width = edgeLabel.width;
  5880. attrs.height = edgeLabel.height;
  5881. attrs.dummy = "edge-label";
  5882. attrs.labelpos = edgeLabel.labelpos;
  5883. }
  5884. g.setEdge(v, dummy, { weight: edgeLabel.weight }, name);
  5885. if (i === 0) {
  5886. g.graph().dummyChains.push(dummy);
  5887. }
  5888. v = dummy;
  5889. }
  5890. g.setEdge(v, w, { weight: edgeLabel.weight }, name);
  5891. }
  5892. function undo(g) {
  5893. _.forEach(g.graph().dummyChains, function(v) {
  5894. var node = g.node(v),
  5895. origLabel = node.edgeLabel,
  5896. w;
  5897. g.setEdge(node.edgeObj, origLabel);
  5898. while (node.dummy) {
  5899. w = g.successors(v)[0];
  5900. g.removeNode(v);
  5901. origLabel.points.push({ x: node.x, y: node.y });
  5902. if (node.dummy === "edge-label") {
  5903. origLabel.x = node.x;
  5904. origLabel.y = node.y;
  5905. origLabel.width = node.width;
  5906. origLabel.height = node.height;
  5907. }
  5908. v = w;
  5909. node = g.node(v);
  5910. }
  5911. });
  5912. }
  5913. /***/ }),
  5914. /***/ "../../node_modules/dagre/lib/order/add-subgraph-constraints.js":
  5915. /*!******************************************************************************************!*\
  5916. !*** C:/Dev/Babylon/Babylon.js/node_modules/dagre/lib/order/add-subgraph-constraints.js ***!
  5917. \******************************************************************************************/
  5918. /*! no static exports found */
  5919. /***/ (function(module, exports, __webpack_require__) {
  5920. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js");
  5921. module.exports = addSubgraphConstraints;
  5922. function addSubgraphConstraints(g, cg, vs) {
  5923. var prev = {},
  5924. rootPrev;
  5925. _.forEach(vs, function(v) {
  5926. var child = g.parent(v),
  5927. parent,
  5928. prevChild;
  5929. while (child) {
  5930. parent = g.parent(child);
  5931. if (parent) {
  5932. prevChild = prev[parent];
  5933. prev[parent] = child;
  5934. } else {
  5935. prevChild = rootPrev;
  5936. rootPrev = child;
  5937. }
  5938. if (prevChild && prevChild !== child) {
  5939. cg.setEdge(prevChild, child);
  5940. return;
  5941. }
  5942. child = parent;
  5943. }
  5944. });
  5945. /*
  5946. function dfs(v) {
  5947. var children = v ? g.children(v) : g.children();
  5948. if (children.length) {
  5949. var min = Number.POSITIVE_INFINITY,
  5950. subgraphs = [];
  5951. _.each(children, function(child) {
  5952. var childMin = dfs(child);
  5953. if (g.children(child).length) {
  5954. subgraphs.push({ v: child, order: childMin });
  5955. }
  5956. min = Math.min(min, childMin);
  5957. });
  5958. _.reduce(_.sortBy(subgraphs, "order"), function(prev, curr) {
  5959. cg.setEdge(prev.v, curr.v);
  5960. return curr;
  5961. });
  5962. return min;
  5963. }
  5964. return g.node(v).order;
  5965. }
  5966. dfs(undefined);
  5967. */
  5968. }
  5969. /***/ }),
  5970. /***/ "../../node_modules/dagre/lib/order/barycenter.js":
  5971. /*!****************************************************************************!*\
  5972. !*** C:/Dev/Babylon/Babylon.js/node_modules/dagre/lib/order/barycenter.js ***!
  5973. \****************************************************************************/
  5974. /*! no static exports found */
  5975. /***/ (function(module, exports, __webpack_require__) {
  5976. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js");
  5977. module.exports = barycenter;
  5978. function barycenter(g, movable) {
  5979. return _.map(movable, function(v) {
  5980. var inV = g.inEdges(v);
  5981. if (!inV.length) {
  5982. return { v: v };
  5983. } else {
  5984. var result = _.reduce(inV, function(acc, e) {
  5985. var edge = g.edge(e),
  5986. nodeU = g.node(e.v);
  5987. return {
  5988. sum: acc.sum + (edge.weight * nodeU.order),
  5989. weight: acc.weight + edge.weight
  5990. };
  5991. }, { sum: 0, weight: 0 });
  5992. return {
  5993. v: v,
  5994. barycenter: result.sum / result.weight,
  5995. weight: result.weight
  5996. };
  5997. }
  5998. });
  5999. }
  6000. /***/ }),
  6001. /***/ "../../node_modules/dagre/lib/order/build-layer-graph.js":
  6002. /*!***********************************************************************************!*\
  6003. !*** C:/Dev/Babylon/Babylon.js/node_modules/dagre/lib/order/build-layer-graph.js ***!
  6004. \***********************************************************************************/
  6005. /*! no static exports found */
  6006. /***/ (function(module, exports, __webpack_require__) {
  6007. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js"),
  6008. Graph = __webpack_require__(/*! ../graphlib */ "../../node_modules/dagre/lib/graphlib.js").Graph;
  6009. module.exports = buildLayerGraph;
  6010. /*
  6011. * Constructs a graph that can be used to sort a layer of nodes. The graph will
  6012. * contain all base and subgraph nodes from the request layer in their original
  6013. * hierarchy and any edges that are incident on these nodes and are of the type
  6014. * requested by the "relationship" parameter.
  6015. *
  6016. * Nodes from the requested rank that do not have parents are assigned a root
  6017. * node in the output graph, which is set in the root graph attribute. This
  6018. * makes it easy to walk the hierarchy of movable nodes during ordering.
  6019. *
  6020. * Pre-conditions:
  6021. *
  6022. * 1. Input graph is a DAG
  6023. * 2. Base nodes in the input graph have a rank attribute
  6024. * 3. Subgraph nodes in the input graph has minRank and maxRank attributes
  6025. * 4. Edges have an assigned weight
  6026. *
  6027. * Post-conditions:
  6028. *
  6029. * 1. Output graph has all nodes in the movable rank with preserved
  6030. * hierarchy.
  6031. * 2. Root nodes in the movable layer are made children of the node
  6032. * indicated by the root attribute of the graph.
  6033. * 3. Non-movable nodes incident on movable nodes, selected by the
  6034. * relationship parameter, are included in the graph (without hierarchy).
  6035. * 4. Edges incident on movable nodes, selected by the relationship
  6036. * parameter, are added to the output graph.
  6037. * 5. The weights for copied edges are aggregated as need, since the output
  6038. * graph is not a multi-graph.
  6039. */
  6040. function buildLayerGraph(g, rank, relationship) {
  6041. var root = createRootNode(g),
  6042. result = new Graph({ compound: true }).setGraph({ root: root })
  6043. .setDefaultNodeLabel(function(v) { return g.node(v); });
  6044. _.forEach(g.nodes(), function(v) {
  6045. var node = g.node(v),
  6046. parent = g.parent(v);
  6047. if (node.rank === rank || node.minRank <= rank && rank <= node.maxRank) {
  6048. result.setNode(v);
  6049. result.setParent(v, parent || root);
  6050. // This assumes we have only short edges!
  6051. _.forEach(g[relationship](v), function(e) {
  6052. var u = e.v === v ? e.w : e.v,
  6053. edge = result.edge(u, v),
  6054. weight = !_.isUndefined(edge) ? edge.weight : 0;
  6055. result.setEdge(u, v, { weight: g.edge(e).weight + weight });
  6056. });
  6057. if (_.has(node, "minRank")) {
  6058. result.setNode(v, {
  6059. borderLeft: node.borderLeft[rank],
  6060. borderRight: node.borderRight[rank]
  6061. });
  6062. }
  6063. }
  6064. });
  6065. return result;
  6066. }
  6067. function createRootNode(g) {
  6068. var v;
  6069. while (g.hasNode((v = _.uniqueId("_root"))));
  6070. return v;
  6071. }
  6072. /***/ }),
  6073. /***/ "../../node_modules/dagre/lib/order/cross-count.js":
  6074. /*!*****************************************************************************!*\
  6075. !*** C:/Dev/Babylon/Babylon.js/node_modules/dagre/lib/order/cross-count.js ***!
  6076. \*****************************************************************************/
  6077. /*! no static exports found */
  6078. /***/ (function(module, exports, __webpack_require__) {
  6079. "use strict";
  6080. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js");
  6081. module.exports = crossCount;
  6082. /*
  6083. * A function that takes a layering (an array of layers, each with an array of
  6084. * ordererd nodes) and a graph and returns a weighted crossing count.
  6085. *
  6086. * Pre-conditions:
  6087. *
  6088. * 1. Input graph must be simple (not a multigraph), directed, and include
  6089. * only simple edges.
  6090. * 2. Edges in the input graph must have assigned weights.
  6091. *
  6092. * Post-conditions:
  6093. *
  6094. * 1. The graph and layering matrix are left unchanged.
  6095. *
  6096. * This algorithm is derived from Barth, et al., "Bilayer Cross Counting."
  6097. */
  6098. function crossCount(g, layering) {
  6099. var cc = 0;
  6100. for (var i = 1; i < layering.length; ++i) {
  6101. cc += twoLayerCrossCount(g, layering[i-1], layering[i]);
  6102. }
  6103. return cc;
  6104. }
  6105. function twoLayerCrossCount(g, northLayer, southLayer) {
  6106. // Sort all of the edges between the north and south layers by their position
  6107. // in the north layer and then the south. Map these edges to the position of
  6108. // their head in the south layer.
  6109. var southPos = _.zipObject(southLayer,
  6110. _.map(southLayer, function (v, i) { return i; }));
  6111. var southEntries = _.flatten(_.map(northLayer, function(v) {
  6112. return _.sortBy(_.map(g.outEdges(v), function(e) {
  6113. return { pos: southPos[e.w], weight: g.edge(e).weight };
  6114. }), "pos");
  6115. }), true);
  6116. // Build the accumulator tree
  6117. var firstIndex = 1;
  6118. while (firstIndex < southLayer.length) firstIndex <<= 1;
  6119. var treeSize = 2 * firstIndex - 1;
  6120. firstIndex -= 1;
  6121. var tree = _.map(new Array(treeSize), function() { return 0; });
  6122. // Calculate the weighted crossings
  6123. var cc = 0;
  6124. _.forEach(southEntries.forEach(function(entry) {
  6125. var index = entry.pos + firstIndex;
  6126. tree[index] += entry.weight;
  6127. var weightSum = 0;
  6128. while (index > 0) {
  6129. if (index % 2) {
  6130. weightSum += tree[index + 1];
  6131. }
  6132. index = (index - 1) >> 1;
  6133. tree[index] += entry.weight;
  6134. }
  6135. cc += entry.weight * weightSum;
  6136. }));
  6137. return cc;
  6138. }
  6139. /***/ }),
  6140. /***/ "../../node_modules/dagre/lib/order/index.js":
  6141. /*!***********************************************************************!*\
  6142. !*** C:/Dev/Babylon/Babylon.js/node_modules/dagre/lib/order/index.js ***!
  6143. \***********************************************************************/
  6144. /*! no static exports found */
  6145. /***/ (function(module, exports, __webpack_require__) {
  6146. "use strict";
  6147. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js"),
  6148. initOrder = __webpack_require__(/*! ./init-order */ "../../node_modules/dagre/lib/order/init-order.js"),
  6149. crossCount = __webpack_require__(/*! ./cross-count */ "../../node_modules/dagre/lib/order/cross-count.js"),
  6150. sortSubgraph = __webpack_require__(/*! ./sort-subgraph */ "../../node_modules/dagre/lib/order/sort-subgraph.js"),
  6151. buildLayerGraph = __webpack_require__(/*! ./build-layer-graph */ "../../node_modules/dagre/lib/order/build-layer-graph.js"),
  6152. addSubgraphConstraints = __webpack_require__(/*! ./add-subgraph-constraints */ "../../node_modules/dagre/lib/order/add-subgraph-constraints.js"),
  6153. Graph = __webpack_require__(/*! ../graphlib */ "../../node_modules/dagre/lib/graphlib.js").Graph,
  6154. util = __webpack_require__(/*! ../util */ "../../node_modules/dagre/lib/util.js");
  6155. module.exports = order;
  6156. /*
  6157. * Applies heuristics to minimize edge crossings in the graph and sets the best
  6158. * order solution as an order attribute on each node.
  6159. *
  6160. * Pre-conditions:
  6161. *
  6162. * 1. Graph must be DAG
  6163. * 2. Graph nodes must be objects with a "rank" attribute
  6164. * 3. Graph edges must have the "weight" attribute
  6165. *
  6166. * Post-conditions:
  6167. *
  6168. * 1. Graph nodes will have an "order" attribute based on the results of the
  6169. * algorithm.
  6170. */
  6171. function order(g) {
  6172. var maxRank = util.maxRank(g),
  6173. downLayerGraphs = buildLayerGraphs(g, _.range(1, maxRank + 1), "inEdges"),
  6174. upLayerGraphs = buildLayerGraphs(g, _.range(maxRank - 1, -1, -1), "outEdges");
  6175. var layering = initOrder(g);
  6176. assignOrder(g, layering);
  6177. var bestCC = Number.POSITIVE_INFINITY,
  6178. best;
  6179. for (var i = 0, lastBest = 0; lastBest < 4; ++i, ++lastBest) {
  6180. sweepLayerGraphs(i % 2 ? downLayerGraphs : upLayerGraphs, i % 4 >= 2);
  6181. layering = util.buildLayerMatrix(g);
  6182. var cc = crossCount(g, layering);
  6183. if (cc < bestCC) {
  6184. lastBest = 0;
  6185. best = _.cloneDeep(layering);
  6186. bestCC = cc;
  6187. }
  6188. }
  6189. assignOrder(g, best);
  6190. }
  6191. function buildLayerGraphs(g, ranks, relationship) {
  6192. return _.map(ranks, function(rank) {
  6193. return buildLayerGraph(g, rank, relationship);
  6194. });
  6195. }
  6196. function sweepLayerGraphs(layerGraphs, biasRight) {
  6197. var cg = new Graph();
  6198. _.forEach(layerGraphs, function(lg) {
  6199. var root = lg.graph().root;
  6200. var sorted = sortSubgraph(lg, root, cg, biasRight);
  6201. _.forEach(sorted.vs, function(v, i) {
  6202. lg.node(v).order = i;
  6203. });
  6204. addSubgraphConstraints(lg, cg, sorted.vs);
  6205. });
  6206. }
  6207. function assignOrder(g, layering) {
  6208. _.forEach(layering, function(layer) {
  6209. _.forEach(layer, function(v, i) {
  6210. g.node(v).order = i;
  6211. });
  6212. });
  6213. }
  6214. /***/ }),
  6215. /***/ "../../node_modules/dagre/lib/order/init-order.js":
  6216. /*!****************************************************************************!*\
  6217. !*** C:/Dev/Babylon/Babylon.js/node_modules/dagre/lib/order/init-order.js ***!
  6218. \****************************************************************************/
  6219. /*! no static exports found */
  6220. /***/ (function(module, exports, __webpack_require__) {
  6221. "use strict";
  6222. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js");
  6223. module.exports = initOrder;
  6224. /*
  6225. * Assigns an initial order value for each node by performing a DFS search
  6226. * starting from nodes in the first rank. Nodes are assigned an order in their
  6227. * rank as they are first visited.
  6228. *
  6229. * This approach comes from Gansner, et al., "A Technique for Drawing Directed
  6230. * Graphs."
  6231. *
  6232. * Returns a layering matrix with an array per layer and each layer sorted by
  6233. * the order of its nodes.
  6234. */
  6235. function initOrder(g) {
  6236. var visited = {},
  6237. simpleNodes = _.filter(g.nodes(), function(v) {
  6238. return !g.children(v).length;
  6239. }),
  6240. maxRank = _.max(_.map(simpleNodes, function(v) { return g.node(v).rank; })),
  6241. layers = _.map(_.range(maxRank + 1), function() { return []; });
  6242. function dfs(v) {
  6243. if (_.has(visited, v)) return;
  6244. visited[v] = true;
  6245. var node = g.node(v);
  6246. layers[node.rank].push(v);
  6247. _.forEach(g.successors(v), dfs);
  6248. }
  6249. var orderedVs = _.sortBy(simpleNodes, function(v) { return g.node(v).rank; });
  6250. _.forEach(orderedVs, dfs);
  6251. return layers;
  6252. }
  6253. /***/ }),
  6254. /***/ "../../node_modules/dagre/lib/order/resolve-conflicts.js":
  6255. /*!***********************************************************************************!*\
  6256. !*** C:/Dev/Babylon/Babylon.js/node_modules/dagre/lib/order/resolve-conflicts.js ***!
  6257. \***********************************************************************************/
  6258. /*! no static exports found */
  6259. /***/ (function(module, exports, __webpack_require__) {
  6260. "use strict";
  6261. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js");
  6262. module.exports = resolveConflicts;
  6263. /*
  6264. * Given a list of entries of the form {v, barycenter, weight} and a
  6265. * constraint graph this function will resolve any conflicts between the
  6266. * constraint graph and the barycenters for the entries. If the barycenters for
  6267. * an entry would violate a constraint in the constraint graph then we coalesce
  6268. * the nodes in the conflict into a new node that respects the contraint and
  6269. * aggregates barycenter and weight information.
  6270. *
  6271. * This implementation is based on the description in Forster, "A Fast and
  6272. * Simple Hueristic for Constrained Two-Level Crossing Reduction," thought it
  6273. * differs in some specific details.
  6274. *
  6275. * Pre-conditions:
  6276. *
  6277. * 1. Each entry has the form {v, barycenter, weight}, or if the node has
  6278. * no barycenter, then {v}.
  6279. *
  6280. * Returns:
  6281. *
  6282. * A new list of entries of the form {vs, i, barycenter, weight}. The list
  6283. * `vs` may either be a singleton or it may be an aggregation of nodes
  6284. * ordered such that they do not violate constraints from the constraint
  6285. * graph. The property `i` is the lowest original index of any of the
  6286. * elements in `vs`.
  6287. */
  6288. function resolveConflicts(entries, cg) {
  6289. var mappedEntries = {};
  6290. _.forEach(entries, function(entry, i) {
  6291. var tmp = mappedEntries[entry.v] = {
  6292. indegree: 0,
  6293. "in": [],
  6294. out: [],
  6295. vs: [entry.v],
  6296. i: i
  6297. };
  6298. if (!_.isUndefined(entry.barycenter)) {
  6299. tmp.barycenter = entry.barycenter;
  6300. tmp.weight = entry.weight;
  6301. }
  6302. });
  6303. _.forEach(cg.edges(), function(e) {
  6304. var entryV = mappedEntries[e.v],
  6305. entryW = mappedEntries[e.w];
  6306. if (!_.isUndefined(entryV) && !_.isUndefined(entryW)) {
  6307. entryW.indegree++;
  6308. entryV.out.push(mappedEntries[e.w]);
  6309. }
  6310. });
  6311. var sourceSet = _.filter(mappedEntries, function(entry) {
  6312. return !entry.indegree;
  6313. });
  6314. return doResolveConflicts(sourceSet);
  6315. }
  6316. function doResolveConflicts(sourceSet) {
  6317. var entries = [];
  6318. function handleIn(vEntry) {
  6319. return function(uEntry) {
  6320. if (uEntry.merged) {
  6321. return;
  6322. }
  6323. if (_.isUndefined(uEntry.barycenter) ||
  6324. _.isUndefined(vEntry.barycenter) ||
  6325. uEntry.barycenter >= vEntry.barycenter) {
  6326. mergeEntries(vEntry, uEntry);
  6327. }
  6328. };
  6329. }
  6330. function handleOut(vEntry) {
  6331. return function(wEntry) {
  6332. wEntry["in"].push(vEntry);
  6333. if (--wEntry.indegree === 0) {
  6334. sourceSet.push(wEntry);
  6335. }
  6336. };
  6337. }
  6338. while (sourceSet.length) {
  6339. var entry = sourceSet.pop();
  6340. entries.push(entry);
  6341. _.forEach(entry["in"].reverse(), handleIn(entry));
  6342. _.forEach(entry.out, handleOut(entry));
  6343. }
  6344. return _.map(_.filter(entries, function(entry) { return !entry.merged; }),
  6345. function(entry) {
  6346. return _.pick(entry, ["vs", "i", "barycenter", "weight"]);
  6347. });
  6348. }
  6349. function mergeEntries(target, source) {
  6350. var sum = 0,
  6351. weight = 0;
  6352. if (target.weight) {
  6353. sum += target.barycenter * target.weight;
  6354. weight += target.weight;
  6355. }
  6356. if (source.weight) {
  6357. sum += source.barycenter * source.weight;
  6358. weight += source.weight;
  6359. }
  6360. target.vs = source.vs.concat(target.vs);
  6361. target.barycenter = sum / weight;
  6362. target.weight = weight;
  6363. target.i = Math.min(source.i, target.i);
  6364. source.merged = true;
  6365. }
  6366. /***/ }),
  6367. /***/ "../../node_modules/dagre/lib/order/sort-subgraph.js":
  6368. /*!*******************************************************************************!*\
  6369. !*** C:/Dev/Babylon/Babylon.js/node_modules/dagre/lib/order/sort-subgraph.js ***!
  6370. \*******************************************************************************/
  6371. /*! no static exports found */
  6372. /***/ (function(module, exports, __webpack_require__) {
  6373. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js"),
  6374. barycenter = __webpack_require__(/*! ./barycenter */ "../../node_modules/dagre/lib/order/barycenter.js"),
  6375. resolveConflicts = __webpack_require__(/*! ./resolve-conflicts */ "../../node_modules/dagre/lib/order/resolve-conflicts.js"),
  6376. sort = __webpack_require__(/*! ./sort */ "../../node_modules/dagre/lib/order/sort.js");
  6377. module.exports = sortSubgraph;
  6378. function sortSubgraph(g, v, cg, biasRight) {
  6379. var movable = g.children(v),
  6380. node = g.node(v),
  6381. bl = node ? node.borderLeft : undefined,
  6382. br = node ? node.borderRight: undefined,
  6383. subgraphs = {};
  6384. if (bl) {
  6385. movable = _.filter(movable, function(w) {
  6386. return w !== bl && w !== br;
  6387. });
  6388. }
  6389. var barycenters = barycenter(g, movable);
  6390. _.forEach(barycenters, function(entry) {
  6391. if (g.children(entry.v).length) {
  6392. var subgraphResult = sortSubgraph(g, entry.v, cg, biasRight);
  6393. subgraphs[entry.v] = subgraphResult;
  6394. if (_.has(subgraphResult, "barycenter")) {
  6395. mergeBarycenters(entry, subgraphResult);
  6396. }
  6397. }
  6398. });
  6399. var entries = resolveConflicts(barycenters, cg);
  6400. expandSubgraphs(entries, subgraphs);
  6401. var result = sort(entries, biasRight);
  6402. if (bl) {
  6403. result.vs = _.flatten([bl, result.vs, br], true);
  6404. if (g.predecessors(bl).length) {
  6405. var blPred = g.node(g.predecessors(bl)[0]),
  6406. brPred = g.node(g.predecessors(br)[0]);
  6407. if (!_.has(result, "barycenter")) {
  6408. result.barycenter = 0;
  6409. result.weight = 0;
  6410. }
  6411. result.barycenter = (result.barycenter * result.weight +
  6412. blPred.order + brPred.order) / (result.weight + 2);
  6413. result.weight += 2;
  6414. }
  6415. }
  6416. return result;
  6417. }
  6418. function expandSubgraphs(entries, subgraphs) {
  6419. _.forEach(entries, function(entry) {
  6420. entry.vs = _.flatten(entry.vs.map(function(v) {
  6421. if (subgraphs[v]) {
  6422. return subgraphs[v].vs;
  6423. }
  6424. return v;
  6425. }), true);
  6426. });
  6427. }
  6428. function mergeBarycenters(target, other) {
  6429. if (!_.isUndefined(target.barycenter)) {
  6430. target.barycenter = (target.barycenter * target.weight +
  6431. other.barycenter * other.weight) /
  6432. (target.weight + other.weight);
  6433. target.weight += other.weight;
  6434. } else {
  6435. target.barycenter = other.barycenter;
  6436. target.weight = other.weight;
  6437. }
  6438. }
  6439. /***/ }),
  6440. /***/ "../../node_modules/dagre/lib/order/sort.js":
  6441. /*!**********************************************************************!*\
  6442. !*** C:/Dev/Babylon/Babylon.js/node_modules/dagre/lib/order/sort.js ***!
  6443. \**********************************************************************/
  6444. /*! no static exports found */
  6445. /***/ (function(module, exports, __webpack_require__) {
  6446. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js"),
  6447. util = __webpack_require__(/*! ../util */ "../../node_modules/dagre/lib/util.js");
  6448. module.exports = sort;
  6449. function sort(entries, biasRight) {
  6450. var parts = util.partition(entries, function(entry) {
  6451. return _.has(entry, "barycenter");
  6452. });
  6453. var sortable = parts.lhs,
  6454. unsortable = _.sortBy(parts.rhs, function(entry) { return -entry.i; }),
  6455. vs = [],
  6456. sum = 0,
  6457. weight = 0,
  6458. vsIndex = 0;
  6459. sortable.sort(compareWithBias(!!biasRight));
  6460. vsIndex = consumeUnsortable(vs, unsortable, vsIndex);
  6461. _.forEach(sortable, function (entry) {
  6462. vsIndex += entry.vs.length;
  6463. vs.push(entry.vs);
  6464. sum += entry.barycenter * entry.weight;
  6465. weight += entry.weight;
  6466. vsIndex = consumeUnsortable(vs, unsortable, vsIndex);
  6467. });
  6468. var result = { vs: _.flatten(vs, true) };
  6469. if (weight) {
  6470. result.barycenter = sum / weight;
  6471. result.weight = weight;
  6472. }
  6473. return result;
  6474. }
  6475. function consumeUnsortable(vs, unsortable, index) {
  6476. var last;
  6477. while (unsortable.length && (last = _.last(unsortable)).i <= index) {
  6478. unsortable.pop();
  6479. vs.push(last.vs);
  6480. index++;
  6481. }
  6482. return index;
  6483. }
  6484. function compareWithBias(bias) {
  6485. return function(entryV, entryW) {
  6486. if (entryV.barycenter < entryW.barycenter) {
  6487. return -1;
  6488. } else if (entryV.barycenter > entryW.barycenter) {
  6489. return 1;
  6490. }
  6491. return !bias ? entryV.i - entryW.i : entryW.i - entryV.i;
  6492. };
  6493. }
  6494. /***/ }),
  6495. /***/ "../../node_modules/dagre/lib/parent-dummy-chains.js":
  6496. /*!*******************************************************************************!*\
  6497. !*** C:/Dev/Babylon/Babylon.js/node_modules/dagre/lib/parent-dummy-chains.js ***!
  6498. \*******************************************************************************/
  6499. /*! no static exports found */
  6500. /***/ (function(module, exports, __webpack_require__) {
  6501. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/dagre/lib/lodash.js");
  6502. module.exports = parentDummyChains;
  6503. function parentDummyChains(g) {
  6504. var postorderNums = postorder(g);
  6505. _.forEach(g.graph().dummyChains, function(v) {
  6506. var node = g.node(v),
  6507. edgeObj = node.edgeObj,
  6508. pathData = findPath(g, postorderNums, edgeObj.v, edgeObj.w),
  6509. path = pathData.path,
  6510. lca = pathData.lca,
  6511. pathIdx = 0,
  6512. pathV = path[pathIdx],
  6513. ascending = true;
  6514. while (v !== edgeObj.w) {
  6515. node = g.node(v);
  6516. if (ascending) {
  6517. while ((pathV = path[pathIdx]) !== lca &&
  6518. g.node(pathV).maxRank < node.rank) {
  6519. pathIdx++;
  6520. }
  6521. if (pathV === lca) {
  6522. ascending = false;
  6523. }
  6524. }
  6525. if (!ascending) {
  6526. while (pathIdx < path.length - 1 &&
  6527. g.node(pathV = path[pathIdx + 1]).minRank <= node.rank) {
  6528. pathIdx++;
  6529. }
  6530. pathV = path[pathIdx];
  6531. }
  6532. g.setParent(v, pathV);
  6533. v = g.successors(v)[0];
  6534. }
  6535. });
  6536. }
  6537. // Find a path from v to w through the lowest common ancestor (LCA). Return the
  6538. // full path and the LCA.
  6539. function findPath(g, postorderNums, v, w) {
  6540. var vPath = [],
  6541. wPath = [],
  6542. low = Math.min(postorderNums[v].low, postorderNums[w].low),
  6543. lim = Math.max(postorderNums[v].lim, postorderNums[w].lim),
  6544. parent,
  6545. lca;
  6546. // Traverse up from v to find the LCA
  6547. parent = v;
  6548. do {
  6549. parent = g.parent(parent);
  6550. vPath.push(parent);
  6551. } while (parent &&
  6552. (postorderNums[parent].low > low || lim > postorderNums[parent].lim));
  6553. lca = parent;
  6554. // Traverse from w to LCA
  6555. parent = w;
  6556. while ((parent = g.parent(parent)) !== lca) {
  6557. wPath.push(parent);
  6558. }
  6559. return { path: vPath.concat(wPath.reverse()), lca: lca };
  6560. }
  6561. function postorder(g) {
  6562. var result = {},
  6563. lim = 0;
  6564. function dfs(v) {
  6565. var low = lim;
  6566. _.forEach(g.children(v), dfs);
  6567. result[v] = { low: low, lim: lim++ };
  6568. }
  6569. _.forEach(g.children(), dfs);
  6570. return result;
  6571. }
  6572. /***/ }),
  6573. /***/ "../../node_modules/dagre/lib/position/bk.js":
  6574. /*!***********************************************************************!*\
  6575. !*** C:/Dev/Babylon/Babylon.js/node_modules/dagre/lib/position/bk.js ***!
  6576. \***********************************************************************/
  6577. /*! no static exports found */
  6578. /***/ (function(module, exports, __webpack_require__) {
  6579. "use strict";
  6580. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js"),
  6581. Graph = __webpack_require__(/*! ../graphlib */ "../../node_modules/dagre/lib/graphlib.js").Graph,
  6582. util = __webpack_require__(/*! ../util */ "../../node_modules/dagre/lib/util.js");
  6583. /*
  6584. * This module provides coordinate assignment based on Brandes and Köpf, "Fast
  6585. * and Simple Horizontal Coordinate Assignment."
  6586. */
  6587. module.exports = {
  6588. positionX: positionX,
  6589. findType1Conflicts: findType1Conflicts,
  6590. findType2Conflicts: findType2Conflicts,
  6591. addConflict: addConflict,
  6592. hasConflict: hasConflict,
  6593. verticalAlignment: verticalAlignment,
  6594. horizontalCompaction: horizontalCompaction,
  6595. alignCoordinates: alignCoordinates,
  6596. findSmallestWidthAlignment: findSmallestWidthAlignment,
  6597. balance: balance
  6598. };
  6599. /*
  6600. * Marks all edges in the graph with a type-1 conflict with the "type1Conflict"
  6601. * property. A type-1 conflict is one where a non-inner segment crosses an
  6602. * inner segment. An inner segment is an edge with both incident nodes marked
  6603. * with the "dummy" property.
  6604. *
  6605. * This algorithm scans layer by layer, starting with the second, for type-1
  6606. * conflicts between the current layer and the previous layer. For each layer
  6607. * it scans the nodes from left to right until it reaches one that is incident
  6608. * on an inner segment. It then scans predecessors to determine if they have
  6609. * edges that cross that inner segment. At the end a final scan is done for all
  6610. * nodes on the current rank to see if they cross the last visited inner
  6611. * segment.
  6612. *
  6613. * This algorithm (safely) assumes that a dummy node will only be incident on a
  6614. * single node in the layers being scanned.
  6615. */
  6616. function findType1Conflicts(g, layering) {
  6617. var conflicts = {};
  6618. function visitLayer(prevLayer, layer) {
  6619. var
  6620. // last visited node in the previous layer that is incident on an inner
  6621. // segment.
  6622. k0 = 0,
  6623. // Tracks the last node in this layer scanned for crossings with a type-1
  6624. // segment.
  6625. scanPos = 0,
  6626. prevLayerLength = prevLayer.length,
  6627. lastNode = _.last(layer);
  6628. _.forEach(layer, function(v, i) {
  6629. var w = findOtherInnerSegmentNode(g, v),
  6630. k1 = w ? g.node(w).order : prevLayerLength;
  6631. if (w || v === lastNode) {
  6632. _.forEach(layer.slice(scanPos, i +1), function(scanNode) {
  6633. _.forEach(g.predecessors(scanNode), function(u) {
  6634. var uLabel = g.node(u),
  6635. uPos = uLabel.order;
  6636. if ((uPos < k0 || k1 < uPos) &&
  6637. !(uLabel.dummy && g.node(scanNode).dummy)) {
  6638. addConflict(conflicts, u, scanNode);
  6639. }
  6640. });
  6641. });
  6642. scanPos = i + 1;
  6643. k0 = k1;
  6644. }
  6645. });
  6646. return layer;
  6647. }
  6648. _.reduce(layering, visitLayer);
  6649. return conflicts;
  6650. }
  6651. function findType2Conflicts(g, layering) {
  6652. var conflicts = {};
  6653. function scan(south, southPos, southEnd, prevNorthBorder, nextNorthBorder) {
  6654. var v;
  6655. _.forEach(_.range(southPos, southEnd), function(i) {
  6656. v = south[i];
  6657. if (g.node(v).dummy) {
  6658. _.forEach(g.predecessors(v), function(u) {
  6659. var uNode = g.node(u);
  6660. if (uNode.dummy &&
  6661. (uNode.order < prevNorthBorder || uNode.order > nextNorthBorder)) {
  6662. addConflict(conflicts, u, v);
  6663. }
  6664. });
  6665. }
  6666. });
  6667. }
  6668. function visitLayer(north, south) {
  6669. var prevNorthPos = -1,
  6670. nextNorthPos,
  6671. southPos = 0;
  6672. _.forEach(south, function(v, southLookahead) {
  6673. if (g.node(v).dummy === "border") {
  6674. var predecessors = g.predecessors(v);
  6675. if (predecessors.length) {
  6676. nextNorthPos = g.node(predecessors[0]).order;
  6677. scan(south, southPos, southLookahead, prevNorthPos, nextNorthPos);
  6678. southPos = southLookahead;
  6679. prevNorthPos = nextNorthPos;
  6680. }
  6681. }
  6682. scan(south, southPos, south.length, nextNorthPos, north.length);
  6683. });
  6684. return south;
  6685. }
  6686. _.reduce(layering, visitLayer);
  6687. return conflicts;
  6688. }
  6689. function findOtherInnerSegmentNode(g, v) {
  6690. if (g.node(v).dummy) {
  6691. return _.find(g.predecessors(v), function(u) {
  6692. return g.node(u).dummy;
  6693. });
  6694. }
  6695. }
  6696. function addConflict(conflicts, v, w) {
  6697. if (v > w) {
  6698. var tmp = v;
  6699. v = w;
  6700. w = tmp;
  6701. }
  6702. var conflictsV = conflicts[v];
  6703. if (!conflictsV) {
  6704. conflicts[v] = conflictsV = {};
  6705. }
  6706. conflictsV[w] = true;
  6707. }
  6708. function hasConflict(conflicts, v, w) {
  6709. if (v > w) {
  6710. var tmp = v;
  6711. v = w;
  6712. w = tmp;
  6713. }
  6714. return _.has(conflicts[v], w);
  6715. }
  6716. /*
  6717. * Try to align nodes into vertical "blocks" where possible. This algorithm
  6718. * attempts to align a node with one of its median neighbors. If the edge
  6719. * connecting a neighbor is a type-1 conflict then we ignore that possibility.
  6720. * If a previous node has already formed a block with a node after the node
  6721. * we're trying to form a block with, we also ignore that possibility - our
  6722. * blocks would be split in that scenario.
  6723. */
  6724. function verticalAlignment(g, layering, conflicts, neighborFn) {
  6725. var root = {},
  6726. align = {},
  6727. pos = {};
  6728. // We cache the position here based on the layering because the graph and
  6729. // layering may be out of sync. The layering matrix is manipulated to
  6730. // generate different extreme alignments.
  6731. _.forEach(layering, function(layer) {
  6732. _.forEach(layer, function(v, order) {
  6733. root[v] = v;
  6734. align[v] = v;
  6735. pos[v] = order;
  6736. });
  6737. });
  6738. _.forEach(layering, function(layer) {
  6739. var prevIdx = -1;
  6740. _.forEach(layer, function(v) {
  6741. var ws = neighborFn(v);
  6742. if (ws.length) {
  6743. ws = _.sortBy(ws, function(w) { return pos[w]; });
  6744. var mp = (ws.length - 1) / 2;
  6745. for (var i = Math.floor(mp), il = Math.ceil(mp); i <= il; ++i) {
  6746. var w = ws[i];
  6747. if (align[v] === v &&
  6748. prevIdx < pos[w] &&
  6749. !hasConflict(conflicts, v, w)) {
  6750. align[w] = v;
  6751. align[v] = root[v] = root[w];
  6752. prevIdx = pos[w];
  6753. }
  6754. }
  6755. }
  6756. });
  6757. });
  6758. return { root: root, align: align };
  6759. }
  6760. function horizontalCompaction(g, layering, root, align, reverseSep) {
  6761. // This portion of the algorithm differs from BK due to a number of problems.
  6762. // Instead of their algorithm we construct a new block graph and do two
  6763. // sweeps. The first sweep places blocks with the smallest possible
  6764. // coordinates. The second sweep removes unused space by moving blocks to the
  6765. // greatest coordinates without violating separation.
  6766. var xs = {},
  6767. blockG = buildBlockGraph(g, layering, root, reverseSep),
  6768. borderType = reverseSep ? "borderLeft" : "borderRight";
  6769. function iterate(setXsFunc, nextNodesFunc) {
  6770. var stack = blockG.nodes();
  6771. var elem = stack.pop();
  6772. var visited = {};
  6773. while (elem) {
  6774. if (visited[elem]) {
  6775. setXsFunc(elem);
  6776. } else {
  6777. visited[elem] = true;
  6778. stack.push(elem);
  6779. stack = stack.concat(nextNodesFunc(elem));
  6780. }
  6781. elem = stack.pop();
  6782. }
  6783. }
  6784. // First pass, assign smallest coordinates
  6785. function pass1(elem) {
  6786. xs[elem] = blockG.inEdges(elem).reduce(function(acc, e) {
  6787. return Math.max(acc, xs[e.v] + blockG.edge(e));
  6788. }, 0);
  6789. }
  6790. // Second pass, assign greatest coordinates
  6791. function pass2(elem) {
  6792. var min = blockG.outEdges(elem).reduce(function(acc, e) {
  6793. return Math.min(acc, xs[e.w] - blockG.edge(e));
  6794. }, Number.POSITIVE_INFINITY);
  6795. var node = g.node(elem);
  6796. if (min !== Number.POSITIVE_INFINITY && node.borderType !== borderType) {
  6797. xs[elem] = Math.max(xs[elem], min);
  6798. }
  6799. }
  6800. iterate(pass1, blockG.predecessors.bind(blockG));
  6801. iterate(pass2, blockG.successors.bind(blockG));
  6802. // Assign x coordinates to all nodes
  6803. _.forEach(align, function(v) {
  6804. xs[v] = xs[root[v]];
  6805. });
  6806. return xs;
  6807. }
  6808. function buildBlockGraph(g, layering, root, reverseSep) {
  6809. var blockGraph = new Graph(),
  6810. graphLabel = g.graph(),
  6811. sepFn = sep(graphLabel.nodesep, graphLabel.edgesep, reverseSep);
  6812. _.forEach(layering, function(layer) {
  6813. var u;
  6814. _.forEach(layer, function(v) {
  6815. var vRoot = root[v];
  6816. blockGraph.setNode(vRoot);
  6817. if (u) {
  6818. var uRoot = root[u],
  6819. prevMax = blockGraph.edge(uRoot, vRoot);
  6820. blockGraph.setEdge(uRoot, vRoot, Math.max(sepFn(g, v, u), prevMax || 0));
  6821. }
  6822. u = v;
  6823. });
  6824. });
  6825. return blockGraph;
  6826. }
  6827. /*
  6828. * Returns the alignment that has the smallest width of the given alignments.
  6829. */
  6830. function findSmallestWidthAlignment(g, xss) {
  6831. return _.minBy(_.values(xss), function (xs) {
  6832. var max = Number.NEGATIVE_INFINITY;
  6833. var min = Number.POSITIVE_INFINITY;
  6834. _.forIn(xs, function (x, v) {
  6835. var halfWidth = width(g, v) / 2;
  6836. max = Math.max(x + halfWidth, max);
  6837. min = Math.min(x - halfWidth, min);
  6838. });
  6839. return max - min;
  6840. });
  6841. }
  6842. /*
  6843. * Align the coordinates of each of the layout alignments such that
  6844. * left-biased alignments have their minimum coordinate at the same point as
  6845. * the minimum coordinate of the smallest width alignment and right-biased
  6846. * alignments have their maximum coordinate at the same point as the maximum
  6847. * coordinate of the smallest width alignment.
  6848. */
  6849. function alignCoordinates(xss, alignTo) {
  6850. var alignToVals = _.values(alignTo),
  6851. alignToMin = _.min(alignToVals),
  6852. alignToMax = _.max(alignToVals);
  6853. _.forEach(["u", "d"], function(vert) {
  6854. _.forEach(["l", "r"], function(horiz) {
  6855. var alignment = vert + horiz,
  6856. xs = xss[alignment],
  6857. delta;
  6858. if (xs === alignTo) return;
  6859. var xsVals = _.values(xs);
  6860. delta = horiz === "l" ? alignToMin - _.min(xsVals) : alignToMax - _.max(xsVals);
  6861. if (delta) {
  6862. xss[alignment] = _.mapValues(xs, function(x) { return x + delta; });
  6863. }
  6864. });
  6865. });
  6866. }
  6867. function balance(xss, align) {
  6868. return _.mapValues(xss.ul, function(ignore, v) {
  6869. if (align) {
  6870. return xss[align.toLowerCase()][v];
  6871. } else {
  6872. var xs = _.sortBy(_.map(xss, v));
  6873. return (xs[1] + xs[2]) / 2;
  6874. }
  6875. });
  6876. }
  6877. function positionX(g) {
  6878. var layering = util.buildLayerMatrix(g),
  6879. conflicts = _.merge(findType1Conflicts(g, layering),
  6880. findType2Conflicts(g, layering));
  6881. var xss = {},
  6882. adjustedLayering;
  6883. _.forEach(["u", "d"], function(vert) {
  6884. adjustedLayering = vert === "u" ? layering : _.values(layering).reverse();
  6885. _.forEach(["l", "r"], function(horiz) {
  6886. if (horiz === "r") {
  6887. adjustedLayering = _.map(adjustedLayering, function(inner) {
  6888. return _.values(inner).reverse();
  6889. });
  6890. }
  6891. var neighborFn = (vert === "u" ? g.predecessors : g.successors).bind(g);
  6892. var align = verticalAlignment(g, adjustedLayering, conflicts, neighborFn);
  6893. var xs = horizontalCompaction(g, adjustedLayering,
  6894. align.root, align.align,
  6895. horiz === "r");
  6896. if (horiz === "r") {
  6897. xs = _.mapValues(xs, function(x) { return -x; });
  6898. }
  6899. xss[vert + horiz] = xs;
  6900. });
  6901. });
  6902. var smallestWidth = findSmallestWidthAlignment(g, xss);
  6903. alignCoordinates(xss, smallestWidth);
  6904. return balance(xss, g.graph().align);
  6905. }
  6906. function sep(nodeSep, edgeSep, reverseSep) {
  6907. return function(g, v, w) {
  6908. var vLabel = g.node(v),
  6909. wLabel = g.node(w),
  6910. sum = 0,
  6911. delta;
  6912. sum += vLabel.width / 2;
  6913. if (_.has(vLabel, "labelpos")) {
  6914. switch (vLabel.labelpos.toLowerCase()) {
  6915. case "l": delta = -vLabel.width / 2; break;
  6916. case "r": delta = vLabel.width / 2; break;
  6917. }
  6918. }
  6919. if (delta) {
  6920. sum += reverseSep ? delta : -delta;
  6921. }
  6922. delta = 0;
  6923. sum += (vLabel.dummy ? edgeSep : nodeSep) / 2;
  6924. sum += (wLabel.dummy ? edgeSep : nodeSep) / 2;
  6925. sum += wLabel.width / 2;
  6926. if (_.has(wLabel, "labelpos")) {
  6927. switch (wLabel.labelpos.toLowerCase()) {
  6928. case "l": delta = wLabel.width / 2; break;
  6929. case "r": delta = -wLabel.width / 2; break;
  6930. }
  6931. }
  6932. if (delta) {
  6933. sum += reverseSep ? delta : -delta;
  6934. }
  6935. delta = 0;
  6936. return sum;
  6937. };
  6938. }
  6939. function width(g, v) {
  6940. return g.node(v).width;
  6941. }
  6942. /***/ }),
  6943. /***/ "../../node_modules/dagre/lib/position/index.js":
  6944. /*!**************************************************************************!*\
  6945. !*** C:/Dev/Babylon/Babylon.js/node_modules/dagre/lib/position/index.js ***!
  6946. \**************************************************************************/
  6947. /*! no static exports found */
  6948. /***/ (function(module, exports, __webpack_require__) {
  6949. "use strict";
  6950. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js"),
  6951. util = __webpack_require__(/*! ../util */ "../../node_modules/dagre/lib/util.js"),
  6952. positionX = __webpack_require__(/*! ./bk */ "../../node_modules/dagre/lib/position/bk.js").positionX;
  6953. module.exports = position;
  6954. function position(g) {
  6955. g = util.asNonCompoundGraph(g);
  6956. positionY(g);
  6957. _.forEach(positionX(g), function(x, v) {
  6958. g.node(v).x = x;
  6959. });
  6960. }
  6961. function positionY(g) {
  6962. var layering = util.buildLayerMatrix(g),
  6963. rankSep = g.graph().ranksep,
  6964. prevY = 0;
  6965. _.forEach(layering, function(layer) {
  6966. var maxHeight = _.max(_.map(layer, function(v) { return g.node(v).height; }));
  6967. _.forEach(layer, function(v) {
  6968. g.node(v).y = prevY + maxHeight / 2;
  6969. });
  6970. prevY += maxHeight + rankSep;
  6971. });
  6972. }
  6973. /***/ }),
  6974. /***/ "../../node_modules/dagre/lib/rank/feasible-tree.js":
  6975. /*!******************************************************************************!*\
  6976. !*** C:/Dev/Babylon/Babylon.js/node_modules/dagre/lib/rank/feasible-tree.js ***!
  6977. \******************************************************************************/
  6978. /*! no static exports found */
  6979. /***/ (function(module, exports, __webpack_require__) {
  6980. "use strict";
  6981. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js"),
  6982. Graph = __webpack_require__(/*! ../graphlib */ "../../node_modules/dagre/lib/graphlib.js").Graph,
  6983. slack = __webpack_require__(/*! ./util */ "../../node_modules/dagre/lib/rank/util.js").slack;
  6984. module.exports = feasibleTree;
  6985. /*
  6986. * Constructs a spanning tree with tight edges and adjusted the input node's
  6987. * ranks to achieve this. A tight edge is one that is has a length that matches
  6988. * its "minlen" attribute.
  6989. *
  6990. * The basic structure for this function is derived from Gansner, et al., "A
  6991. * Technique for Drawing Directed Graphs."
  6992. *
  6993. * Pre-conditions:
  6994. *
  6995. * 1. Graph must be a DAG.
  6996. * 2. Graph must be connected.
  6997. * 3. Graph must have at least one node.
  6998. * 5. Graph nodes must have been previously assigned a "rank" property that
  6999. * respects the "minlen" property of incident edges.
  7000. * 6. Graph edges must have a "minlen" property.
  7001. *
  7002. * Post-conditions:
  7003. *
  7004. * - Graph nodes will have their rank adjusted to ensure that all edges are
  7005. * tight.
  7006. *
  7007. * Returns a tree (undirected graph) that is constructed using only "tight"
  7008. * edges.
  7009. */
  7010. function feasibleTree(g) {
  7011. var t = new Graph({ directed: false });
  7012. // Choose arbitrary node from which to start our tree
  7013. var start = g.nodes()[0],
  7014. size = g.nodeCount();
  7015. t.setNode(start, {});
  7016. var edge, delta;
  7017. while (tightTree(t, g) < size) {
  7018. edge = findMinSlackEdge(t, g);
  7019. delta = t.hasNode(edge.v) ? slack(g, edge) : -slack(g, edge);
  7020. shiftRanks(t, g, delta);
  7021. }
  7022. return t;
  7023. }
  7024. /*
  7025. * Finds a maximal tree of tight edges and returns the number of nodes in the
  7026. * tree.
  7027. */
  7028. function tightTree(t, g) {
  7029. function dfs(v) {
  7030. _.forEach(g.nodeEdges(v), function(e) {
  7031. var edgeV = e.v,
  7032. w = (v === edgeV) ? e.w : edgeV;
  7033. if (!t.hasNode(w) && !slack(g, e)) {
  7034. t.setNode(w, {});
  7035. t.setEdge(v, w, {});
  7036. dfs(w);
  7037. }
  7038. });
  7039. }
  7040. _.forEach(t.nodes(), dfs);
  7041. return t.nodeCount();
  7042. }
  7043. /*
  7044. * Finds the edge with the smallest slack that is incident on tree and returns
  7045. * it.
  7046. */
  7047. function findMinSlackEdge(t, g) {
  7048. return _.minBy(g.edges(), function(e) {
  7049. if (t.hasNode(e.v) !== t.hasNode(e.w)) {
  7050. return slack(g, e);
  7051. }
  7052. });
  7053. }
  7054. function shiftRanks(t, g, delta) {
  7055. _.forEach(t.nodes(), function(v) {
  7056. g.node(v).rank += delta;
  7057. });
  7058. }
  7059. /***/ }),
  7060. /***/ "../../node_modules/dagre/lib/rank/index.js":
  7061. /*!**********************************************************************!*\
  7062. !*** C:/Dev/Babylon/Babylon.js/node_modules/dagre/lib/rank/index.js ***!
  7063. \**********************************************************************/
  7064. /*! no static exports found */
  7065. /***/ (function(module, exports, __webpack_require__) {
  7066. "use strict";
  7067. var rankUtil = __webpack_require__(/*! ./util */ "../../node_modules/dagre/lib/rank/util.js"),
  7068. longestPath = rankUtil.longestPath,
  7069. feasibleTree = __webpack_require__(/*! ./feasible-tree */ "../../node_modules/dagre/lib/rank/feasible-tree.js"),
  7070. networkSimplex = __webpack_require__(/*! ./network-simplex */ "../../node_modules/dagre/lib/rank/network-simplex.js");
  7071. module.exports = rank;
  7072. /*
  7073. * Assigns a rank to each node in the input graph that respects the "minlen"
  7074. * constraint specified on edges between nodes.
  7075. *
  7076. * This basic structure is derived from Gansner, et al., "A Technique for
  7077. * Drawing Directed Graphs."
  7078. *
  7079. * Pre-conditions:
  7080. *
  7081. * 1. Graph must be a connected DAG
  7082. * 2. Graph nodes must be objects
  7083. * 3. Graph edges must have "weight" and "minlen" attributes
  7084. *
  7085. * Post-conditions:
  7086. *
  7087. * 1. Graph nodes will have a "rank" attribute based on the results of the
  7088. * algorithm. Ranks can start at any index (including negative), we'll
  7089. * fix them up later.
  7090. */
  7091. function rank(g) {
  7092. switch(g.graph().ranker) {
  7093. case "network-simplex": networkSimplexRanker(g); break;
  7094. case "tight-tree": tightTreeRanker(g); break;
  7095. case "longest-path": longestPathRanker(g); break;
  7096. default: networkSimplexRanker(g);
  7097. }
  7098. }
  7099. // A fast and simple ranker, but results are far from optimal.
  7100. var longestPathRanker = longestPath;
  7101. function tightTreeRanker(g) {
  7102. longestPath(g);
  7103. feasibleTree(g);
  7104. }
  7105. function networkSimplexRanker(g) {
  7106. networkSimplex(g);
  7107. }
  7108. /***/ }),
  7109. /***/ "../../node_modules/dagre/lib/rank/network-simplex.js":
  7110. /*!********************************************************************************!*\
  7111. !*** C:/Dev/Babylon/Babylon.js/node_modules/dagre/lib/rank/network-simplex.js ***!
  7112. \********************************************************************************/
  7113. /*! no static exports found */
  7114. /***/ (function(module, exports, __webpack_require__) {
  7115. "use strict";
  7116. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js"),
  7117. feasibleTree = __webpack_require__(/*! ./feasible-tree */ "../../node_modules/dagre/lib/rank/feasible-tree.js"),
  7118. slack = __webpack_require__(/*! ./util */ "../../node_modules/dagre/lib/rank/util.js").slack,
  7119. initRank = __webpack_require__(/*! ./util */ "../../node_modules/dagre/lib/rank/util.js").longestPath,
  7120. preorder = __webpack_require__(/*! ../graphlib */ "../../node_modules/dagre/lib/graphlib.js").alg.preorder,
  7121. postorder = __webpack_require__(/*! ../graphlib */ "../../node_modules/dagre/lib/graphlib.js").alg.postorder,
  7122. simplify = __webpack_require__(/*! ../util */ "../../node_modules/dagre/lib/util.js").simplify;
  7123. module.exports = networkSimplex;
  7124. // Expose some internals for testing purposes
  7125. networkSimplex.initLowLimValues = initLowLimValues;
  7126. networkSimplex.initCutValues = initCutValues;
  7127. networkSimplex.calcCutValue = calcCutValue;
  7128. networkSimplex.leaveEdge = leaveEdge;
  7129. networkSimplex.enterEdge = enterEdge;
  7130. networkSimplex.exchangeEdges = exchangeEdges;
  7131. /*
  7132. * The network simplex algorithm assigns ranks to each node in the input graph
  7133. * and iteratively improves the ranking to reduce the length of edges.
  7134. *
  7135. * Preconditions:
  7136. *
  7137. * 1. The input graph must be a DAG.
  7138. * 2. All nodes in the graph must have an object value.
  7139. * 3. All edges in the graph must have "minlen" and "weight" attributes.
  7140. *
  7141. * Postconditions:
  7142. *
  7143. * 1. All nodes in the graph will have an assigned "rank" attribute that has
  7144. * been optimized by the network simplex algorithm. Ranks start at 0.
  7145. *
  7146. *
  7147. * A rough sketch of the algorithm is as follows:
  7148. *
  7149. * 1. Assign initial ranks to each node. We use the longest path algorithm,
  7150. * which assigns ranks to the lowest position possible. In general this
  7151. * leads to very wide bottom ranks and unnecessarily long edges.
  7152. * 2. Construct a feasible tight tree. A tight tree is one such that all
  7153. * edges in the tree have no slack (difference between length of edge
  7154. * and minlen for the edge). This by itself greatly improves the assigned
  7155. * rankings by shorting edges.
  7156. * 3. Iteratively find edges that have negative cut values. Generally a
  7157. * negative cut value indicates that the edge could be removed and a new
  7158. * tree edge could be added to produce a more compact graph.
  7159. *
  7160. * Much of the algorithms here are derived from Gansner, et al., "A Technique
  7161. * for Drawing Directed Graphs." The structure of the file roughly follows the
  7162. * structure of the overall algorithm.
  7163. */
  7164. function networkSimplex(g) {
  7165. g = simplify(g);
  7166. initRank(g);
  7167. var t = feasibleTree(g);
  7168. initLowLimValues(t);
  7169. initCutValues(t, g);
  7170. var e, f;
  7171. while ((e = leaveEdge(t))) {
  7172. f = enterEdge(t, g, e);
  7173. exchangeEdges(t, g, e, f);
  7174. }
  7175. }
  7176. /*
  7177. * Initializes cut values for all edges in the tree.
  7178. */
  7179. function initCutValues(t, g) {
  7180. var vs = postorder(t, t.nodes());
  7181. vs = vs.slice(0, vs.length - 1);
  7182. _.forEach(vs, function(v) {
  7183. assignCutValue(t, g, v);
  7184. });
  7185. }
  7186. function assignCutValue(t, g, child) {
  7187. var childLab = t.node(child),
  7188. parent = childLab.parent;
  7189. t.edge(child, parent).cutvalue = calcCutValue(t, g, child);
  7190. }
  7191. /*
  7192. * Given the tight tree, its graph, and a child in the graph calculate and
  7193. * return the cut value for the edge between the child and its parent.
  7194. */
  7195. function calcCutValue(t, g, child) {
  7196. var childLab = t.node(child),
  7197. parent = childLab.parent,
  7198. // True if the child is on the tail end of the edge in the directed graph
  7199. childIsTail = true,
  7200. // The graph's view of the tree edge we're inspecting
  7201. graphEdge = g.edge(child, parent),
  7202. // The accumulated cut value for the edge between this node and its parent
  7203. cutValue = 0;
  7204. if (!graphEdge) {
  7205. childIsTail = false;
  7206. graphEdge = g.edge(parent, child);
  7207. }
  7208. cutValue = graphEdge.weight;
  7209. _.forEach(g.nodeEdges(child), function(e) {
  7210. var isOutEdge = e.v === child,
  7211. other = isOutEdge ? e.w : e.v;
  7212. if (other !== parent) {
  7213. var pointsToHead = isOutEdge === childIsTail,
  7214. otherWeight = g.edge(e).weight;
  7215. cutValue += pointsToHead ? otherWeight : -otherWeight;
  7216. if (isTreeEdge(t, child, other)) {
  7217. var otherCutValue = t.edge(child, other).cutvalue;
  7218. cutValue += pointsToHead ? -otherCutValue : otherCutValue;
  7219. }
  7220. }
  7221. });
  7222. return cutValue;
  7223. }
  7224. function initLowLimValues(tree, root) {
  7225. if (arguments.length < 2) {
  7226. root = tree.nodes()[0];
  7227. }
  7228. dfsAssignLowLim(tree, {}, 1, root);
  7229. }
  7230. function dfsAssignLowLim(tree, visited, nextLim, v, parent) {
  7231. var low = nextLim,
  7232. label = tree.node(v);
  7233. visited[v] = true;
  7234. _.forEach(tree.neighbors(v), function(w) {
  7235. if (!_.has(visited, w)) {
  7236. nextLim = dfsAssignLowLim(tree, visited, nextLim, w, v);
  7237. }
  7238. });
  7239. label.low = low;
  7240. label.lim = nextLim++;
  7241. if (parent) {
  7242. label.parent = parent;
  7243. } else {
  7244. // TODO should be able to remove this when we incrementally update low lim
  7245. delete label.parent;
  7246. }
  7247. return nextLim;
  7248. }
  7249. function leaveEdge(tree) {
  7250. return _.find(tree.edges(), function(e) {
  7251. return tree.edge(e).cutvalue < 0;
  7252. });
  7253. }
  7254. function enterEdge(t, g, edge) {
  7255. var v = edge.v,
  7256. w = edge.w;
  7257. // For the rest of this function we assume that v is the tail and w is the
  7258. // head, so if we don't have this edge in the graph we should flip it to
  7259. // match the correct orientation.
  7260. if (!g.hasEdge(v, w)) {
  7261. v = edge.w;
  7262. w = edge.v;
  7263. }
  7264. var vLabel = t.node(v),
  7265. wLabel = t.node(w),
  7266. tailLabel = vLabel,
  7267. flip = false;
  7268. // If the root is in the tail of the edge then we need to flip the logic that
  7269. // checks for the head and tail nodes in the candidates function below.
  7270. if (vLabel.lim > wLabel.lim) {
  7271. tailLabel = wLabel;
  7272. flip = true;
  7273. }
  7274. var candidates = _.filter(g.edges(), function(edge) {
  7275. return flip === isDescendant(t, t.node(edge.v), tailLabel) &&
  7276. flip !== isDescendant(t, t.node(edge.w), tailLabel);
  7277. });
  7278. return _.minBy(candidates, function(edge) { return slack(g, edge); });
  7279. }
  7280. function exchangeEdges(t, g, e, f) {
  7281. var v = e.v,
  7282. w = e.w;
  7283. t.removeEdge(v, w);
  7284. t.setEdge(f.v, f.w, {});
  7285. initLowLimValues(t);
  7286. initCutValues(t, g);
  7287. updateRanks(t, g);
  7288. }
  7289. function updateRanks(t, g) {
  7290. var root = _.find(t.nodes(), function(v) { return !g.node(v).parent; }),
  7291. vs = preorder(t, root);
  7292. vs = vs.slice(1);
  7293. _.forEach(vs, function(v) {
  7294. var parent = t.node(v).parent,
  7295. edge = g.edge(v, parent),
  7296. flipped = false;
  7297. if (!edge) {
  7298. edge = g.edge(parent, v);
  7299. flipped = true;
  7300. }
  7301. g.node(v).rank = g.node(parent).rank + (flipped ? edge.minlen : -edge.minlen);
  7302. });
  7303. }
  7304. /*
  7305. * Returns true if the edge is in the tree.
  7306. */
  7307. function isTreeEdge(tree, u, v) {
  7308. return tree.hasEdge(u, v);
  7309. }
  7310. /*
  7311. * Returns true if the specified node is descendant of the root node per the
  7312. * assigned low and lim attributes in the tree.
  7313. */
  7314. function isDescendant(tree, vLabel, rootLabel) {
  7315. return rootLabel.low <= vLabel.lim && vLabel.lim <= rootLabel.lim;
  7316. }
  7317. /***/ }),
  7318. /***/ "../../node_modules/dagre/lib/rank/util.js":
  7319. /*!*********************************************************************!*\
  7320. !*** C:/Dev/Babylon/Babylon.js/node_modules/dagre/lib/rank/util.js ***!
  7321. \*********************************************************************/
  7322. /*! no static exports found */
  7323. /***/ (function(module, exports, __webpack_require__) {
  7324. "use strict";
  7325. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/dagre/lib/lodash.js");
  7326. module.exports = {
  7327. longestPath: longestPath,
  7328. slack: slack
  7329. };
  7330. /*
  7331. * Initializes ranks for the input graph using the longest path algorithm. This
  7332. * algorithm scales well and is fast in practice, it yields rather poor
  7333. * solutions. Nodes are pushed to the lowest layer possible, leaving the bottom
  7334. * ranks wide and leaving edges longer than necessary. However, due to its
  7335. * speed, this algorithm is good for getting an initial ranking that can be fed
  7336. * into other algorithms.
  7337. *
  7338. * This algorithm does not normalize layers because it will be used by other
  7339. * algorithms in most cases. If using this algorithm directly, be sure to
  7340. * run normalize at the end.
  7341. *
  7342. * Pre-conditions:
  7343. *
  7344. * 1. Input graph is a DAG.
  7345. * 2. Input graph node labels can be assigned properties.
  7346. *
  7347. * Post-conditions:
  7348. *
  7349. * 1. Each node will be assign an (unnormalized) "rank" property.
  7350. */
  7351. function longestPath(g) {
  7352. var visited = {};
  7353. function dfs(v) {
  7354. var label = g.node(v);
  7355. if (_.has(visited, v)) {
  7356. return label.rank;
  7357. }
  7358. visited[v] = true;
  7359. var rank = _.min(_.map(g.outEdges(v), function(e) {
  7360. return dfs(e.w) - g.edge(e).minlen;
  7361. }));
  7362. if (rank === Number.POSITIVE_INFINITY || // return value of _.map([]) for Lodash 3
  7363. rank === undefined || // return value of _.map([]) for Lodash 4
  7364. rank === null) { // return value of _.map([null])
  7365. rank = 0;
  7366. }
  7367. return (label.rank = rank);
  7368. }
  7369. _.forEach(g.sources(), dfs);
  7370. }
  7371. /*
  7372. * Returns the amount of slack for the given edge. The slack is defined as the
  7373. * difference between the length of the edge and its minimum length.
  7374. */
  7375. function slack(g, e) {
  7376. return g.node(e.w).rank - g.node(e.v).rank - g.edge(e).minlen;
  7377. }
  7378. /***/ }),
  7379. /***/ "../../node_modules/dagre/lib/util.js":
  7380. /*!****************************************************************!*\
  7381. !*** C:/Dev/Babylon/Babylon.js/node_modules/dagre/lib/util.js ***!
  7382. \****************************************************************/
  7383. /*! no static exports found */
  7384. /***/ (function(module, exports, __webpack_require__) {
  7385. "use strict";
  7386. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/dagre/lib/lodash.js"),
  7387. Graph = __webpack_require__(/*! ./graphlib */ "../../node_modules/dagre/lib/graphlib.js").Graph;
  7388. module.exports = {
  7389. addDummyNode: addDummyNode,
  7390. simplify: simplify,
  7391. asNonCompoundGraph: asNonCompoundGraph,
  7392. successorWeights: successorWeights,
  7393. predecessorWeights: predecessorWeights,
  7394. intersectRect: intersectRect,
  7395. buildLayerMatrix: buildLayerMatrix,
  7396. normalizeRanks: normalizeRanks,
  7397. removeEmptyRanks: removeEmptyRanks,
  7398. addBorderNode: addBorderNode,
  7399. maxRank: maxRank,
  7400. partition: partition,
  7401. time: time,
  7402. notime: notime
  7403. };
  7404. /*
  7405. * Adds a dummy node to the graph and return v.
  7406. */
  7407. function addDummyNode(g, type, attrs, name) {
  7408. var v;
  7409. do {
  7410. v = _.uniqueId(name);
  7411. } while (g.hasNode(v));
  7412. attrs.dummy = type;
  7413. g.setNode(v, attrs);
  7414. return v;
  7415. }
  7416. /*
  7417. * Returns a new graph with only simple edges. Handles aggregation of data
  7418. * associated with multi-edges.
  7419. */
  7420. function simplify(g) {
  7421. var simplified = new Graph().setGraph(g.graph());
  7422. _.forEach(g.nodes(), function(v) { simplified.setNode(v, g.node(v)); });
  7423. _.forEach(g.edges(), function(e) {
  7424. var simpleLabel = simplified.edge(e.v, e.w) || { weight: 0, minlen: 1 },
  7425. label = g.edge(e);
  7426. simplified.setEdge(e.v, e.w, {
  7427. weight: simpleLabel.weight + label.weight,
  7428. minlen: Math.max(simpleLabel.minlen, label.minlen)
  7429. });
  7430. });
  7431. return simplified;
  7432. }
  7433. function asNonCompoundGraph(g) {
  7434. var simplified = new Graph({ multigraph: g.isMultigraph() }).setGraph(g.graph());
  7435. _.forEach(g.nodes(), function(v) {
  7436. if (!g.children(v).length) {
  7437. simplified.setNode(v, g.node(v));
  7438. }
  7439. });
  7440. _.forEach(g.edges(), function(e) {
  7441. simplified.setEdge(e, g.edge(e));
  7442. });
  7443. return simplified;
  7444. }
  7445. function successorWeights(g) {
  7446. var weightMap = _.map(g.nodes(), function(v) {
  7447. var sucs = {};
  7448. _.forEach(g.outEdges(v), function(e) {
  7449. sucs[e.w] = (sucs[e.w] || 0) + g.edge(e).weight;
  7450. });
  7451. return sucs;
  7452. });
  7453. return _.zipObject(g.nodes(), weightMap);
  7454. }
  7455. function predecessorWeights(g) {
  7456. var weightMap = _.map(g.nodes(), function(v) {
  7457. var preds = {};
  7458. _.forEach(g.inEdges(v), function(e) {
  7459. preds[e.v] = (preds[e.v] || 0) + g.edge(e).weight;
  7460. });
  7461. return preds;
  7462. });
  7463. return _.zipObject(g.nodes(), weightMap);
  7464. }
  7465. /*
  7466. * Finds where a line starting at point ({x, y}) would intersect a rectangle
  7467. * ({x, y, width, height}) if it were pointing at the rectangle's center.
  7468. */
  7469. function intersectRect(rect, point) {
  7470. var x = rect.x;
  7471. var y = rect.y;
  7472. // Rectangle intersection algorithm from:
  7473. // http://math.stackexchange.com/questions/108113/find-edge-between-two-boxes
  7474. var dx = point.x - x;
  7475. var dy = point.y - y;
  7476. var w = rect.width / 2;
  7477. var h = rect.height / 2;
  7478. if (!dx && !dy) {
  7479. throw new Error("Not possible to find intersection inside of the rectangle");
  7480. }
  7481. var sx, sy;
  7482. if (Math.abs(dy) * w > Math.abs(dx) * h) {
  7483. // Intersection is top or bottom of rect.
  7484. if (dy < 0) {
  7485. h = -h;
  7486. }
  7487. sx = h * dx / dy;
  7488. sy = h;
  7489. } else {
  7490. // Intersection is left or right of rect.
  7491. if (dx < 0) {
  7492. w = -w;
  7493. }
  7494. sx = w;
  7495. sy = w * dy / dx;
  7496. }
  7497. return { x: x + sx, y: y + sy };
  7498. }
  7499. /*
  7500. * Given a DAG with each node assigned "rank" and "order" properties, this
  7501. * function will produce a matrix with the ids of each node.
  7502. */
  7503. function buildLayerMatrix(g) {
  7504. var layering = _.map(_.range(maxRank(g) + 1), function() { return []; });
  7505. _.forEach(g.nodes(), function(v) {
  7506. var node = g.node(v),
  7507. rank = node.rank;
  7508. if (!_.isUndefined(rank)) {
  7509. layering[rank][node.order] = v;
  7510. }
  7511. });
  7512. return layering;
  7513. }
  7514. /*
  7515. * Adjusts the ranks for all nodes in the graph such that all nodes v have
  7516. * rank(v) >= 0 and at least one node w has rank(w) = 0.
  7517. */
  7518. function normalizeRanks(g) {
  7519. var min = _.min(_.map(g.nodes(), function(v) { return g.node(v).rank; }));
  7520. _.forEach(g.nodes(), function(v) {
  7521. var node = g.node(v);
  7522. if (_.has(node, "rank")) {
  7523. node.rank -= min;
  7524. }
  7525. });
  7526. }
  7527. function removeEmptyRanks(g) {
  7528. // Ranks may not start at 0, so we need to offset them
  7529. var offset = _.min(_.map(g.nodes(), function(v) { return g.node(v).rank; }));
  7530. var layers = [];
  7531. _.forEach(g.nodes(), function(v) {
  7532. var rank = g.node(v).rank - offset;
  7533. if (!layers[rank]) {
  7534. layers[rank] = [];
  7535. }
  7536. layers[rank].push(v);
  7537. });
  7538. var delta = 0,
  7539. nodeRankFactor = g.graph().nodeRankFactor;
  7540. _.forEach(layers, function(vs, i) {
  7541. if (_.isUndefined(vs) && i % nodeRankFactor !== 0) {
  7542. --delta;
  7543. } else if (delta) {
  7544. _.forEach(vs, function(v) { g.node(v).rank += delta; });
  7545. }
  7546. });
  7547. }
  7548. function addBorderNode(g, prefix, rank, order) {
  7549. var node = {
  7550. width: 0,
  7551. height: 0
  7552. };
  7553. if (arguments.length >= 4) {
  7554. node.rank = rank;
  7555. node.order = order;
  7556. }
  7557. return addDummyNode(g, "border", node, prefix);
  7558. }
  7559. function maxRank(g) {
  7560. return _.max(_.map(g.nodes(), function(v) {
  7561. var rank = g.node(v).rank;
  7562. if (!_.isUndefined(rank)) {
  7563. return rank;
  7564. }
  7565. }));
  7566. }
  7567. /*
  7568. * Partition a collection into two groups: `lhs` and `rhs`. If the supplied
  7569. * function returns true for an entry it goes into `lhs`. Otherwise it goes
  7570. * into `rhs.
  7571. */
  7572. function partition(collection, fn) {
  7573. var result = { lhs: [], rhs: [] };
  7574. _.forEach(collection, function(value) {
  7575. if (fn(value)) {
  7576. result.lhs.push(value);
  7577. } else {
  7578. result.rhs.push(value);
  7579. }
  7580. });
  7581. return result;
  7582. }
  7583. /*
  7584. * Returns a new function that wraps `fn` with a timer. The wrapper logs the
  7585. * time it takes to execute the function.
  7586. */
  7587. function time(name, fn) {
  7588. var start = _.now();
  7589. try {
  7590. return fn();
  7591. } finally {
  7592. console.log(name + " time: " + (_.now() - start) + "ms");
  7593. }
  7594. }
  7595. function notime(name, fn) {
  7596. return fn();
  7597. }
  7598. /***/ }),
  7599. /***/ "../../node_modules/dagre/lib/version.js":
  7600. /*!*******************************************************************!*\
  7601. !*** C:/Dev/Babylon/Babylon.js/node_modules/dagre/lib/version.js ***!
  7602. \*******************************************************************/
  7603. /*! no static exports found */
  7604. /***/ (function(module, exports) {
  7605. module.exports = "0.8.4";
  7606. /***/ }),
  7607. /***/ "../../node_modules/graphlib/index.js":
  7608. /*!****************************************************************!*\
  7609. !*** C:/Dev/Babylon/Babylon.js/node_modules/graphlib/index.js ***!
  7610. \****************************************************************/
  7611. /*! no static exports found */
  7612. /***/ (function(module, exports, __webpack_require__) {
  7613. /**
  7614. * Copyright (c) 2014, Chris Pettitt
  7615. * All rights reserved.
  7616. *
  7617. * Redistribution and use in source and binary forms, with or without
  7618. * modification, are permitted provided that the following conditions are met:
  7619. *
  7620. * 1. Redistributions of source code must retain the above copyright notice, this
  7621. * list of conditions and the following disclaimer.
  7622. *
  7623. * 2. Redistributions in binary form must reproduce the above copyright notice,
  7624. * this list of conditions and the following disclaimer in the documentation
  7625. * and/or other materials provided with the distribution.
  7626. *
  7627. * 3. Neither the name of the copyright holder nor the names of its contributors
  7628. * may be used to endorse or promote products derived from this software without
  7629. * specific prior written permission.
  7630. *
  7631. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
  7632. * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  7633. * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  7634. * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
  7635. * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  7636. * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
  7637. * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
  7638. * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  7639. * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  7640. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  7641. */
  7642. var lib = __webpack_require__(/*! ./lib */ "../../node_modules/graphlib/lib/index.js");
  7643. module.exports = {
  7644. Graph: lib.Graph,
  7645. json: __webpack_require__(/*! ./lib/json */ "../../node_modules/graphlib/lib/json.js"),
  7646. alg: __webpack_require__(/*! ./lib/alg */ "../../node_modules/graphlib/lib/alg/index.js"),
  7647. version: lib.version
  7648. };
  7649. /***/ }),
  7650. /***/ "../../node_modules/graphlib/lib/alg/components.js":
  7651. /*!*****************************************************************************!*\
  7652. !*** C:/Dev/Babylon/Babylon.js/node_modules/graphlib/lib/alg/components.js ***!
  7653. \*****************************************************************************/
  7654. /*! no static exports found */
  7655. /***/ (function(module, exports, __webpack_require__) {
  7656. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/graphlib/lib/lodash.js");
  7657. module.exports = components;
  7658. function components(g) {
  7659. var visited = {},
  7660. cmpts = [],
  7661. cmpt;
  7662. function dfs(v) {
  7663. if (_.has(visited, v)) return;
  7664. visited[v] = true;
  7665. cmpt.push(v);
  7666. _.each(g.successors(v), dfs);
  7667. _.each(g.predecessors(v), dfs);
  7668. }
  7669. _.each(g.nodes(), function(v) {
  7670. cmpt = [];
  7671. dfs(v);
  7672. if (cmpt.length) {
  7673. cmpts.push(cmpt);
  7674. }
  7675. });
  7676. return cmpts;
  7677. }
  7678. /***/ }),
  7679. /***/ "../../node_modules/graphlib/lib/alg/dfs.js":
  7680. /*!**********************************************************************!*\
  7681. !*** C:/Dev/Babylon/Babylon.js/node_modules/graphlib/lib/alg/dfs.js ***!
  7682. \**********************************************************************/
  7683. /*! no static exports found */
  7684. /***/ (function(module, exports, __webpack_require__) {
  7685. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/graphlib/lib/lodash.js");
  7686. module.exports = dfs;
  7687. /*
  7688. * A helper that preforms a pre- or post-order traversal on the input graph
  7689. * and returns the nodes in the order they were visited. If the graph is
  7690. * undirected then this algorithm will navigate using neighbors. If the graph
  7691. * is directed then this algorithm will navigate using successors.
  7692. *
  7693. * Order must be one of "pre" or "post".
  7694. */
  7695. function dfs(g, vs, order) {
  7696. if (!_.isArray(vs)) {
  7697. vs = [vs];
  7698. }
  7699. var navigation = (g.isDirected() ? g.successors : g.neighbors).bind(g);
  7700. var acc = [],
  7701. visited = {};
  7702. _.each(vs, function(v) {
  7703. if (!g.hasNode(v)) {
  7704. throw new Error("Graph does not have node: " + v);
  7705. }
  7706. doDfs(g, v, order === "post", visited, navigation, acc);
  7707. });
  7708. return acc;
  7709. }
  7710. function doDfs(g, v, postorder, visited, navigation, acc) {
  7711. if (!_.has(visited, v)) {
  7712. visited[v] = true;
  7713. if (!postorder) { acc.push(v); }
  7714. _.each(navigation(v), function(w) {
  7715. doDfs(g, w, postorder, visited, navigation, acc);
  7716. });
  7717. if (postorder) { acc.push(v); }
  7718. }
  7719. }
  7720. /***/ }),
  7721. /***/ "../../node_modules/graphlib/lib/alg/dijkstra-all.js":
  7722. /*!*******************************************************************************!*\
  7723. !*** C:/Dev/Babylon/Babylon.js/node_modules/graphlib/lib/alg/dijkstra-all.js ***!
  7724. \*******************************************************************************/
  7725. /*! no static exports found */
  7726. /***/ (function(module, exports, __webpack_require__) {
  7727. var dijkstra = __webpack_require__(/*! ./dijkstra */ "../../node_modules/graphlib/lib/alg/dijkstra.js"),
  7728. _ = __webpack_require__(/*! ../lodash */ "../../node_modules/graphlib/lib/lodash.js");
  7729. module.exports = dijkstraAll;
  7730. function dijkstraAll(g, weightFunc, edgeFunc) {
  7731. return _.transform(g.nodes(), function(acc, v) {
  7732. acc[v] = dijkstra(g, v, weightFunc, edgeFunc);
  7733. }, {});
  7734. }
  7735. /***/ }),
  7736. /***/ "../../node_modules/graphlib/lib/alg/dijkstra.js":
  7737. /*!***************************************************************************!*\
  7738. !*** C:/Dev/Babylon/Babylon.js/node_modules/graphlib/lib/alg/dijkstra.js ***!
  7739. \***************************************************************************/
  7740. /*! no static exports found */
  7741. /***/ (function(module, exports, __webpack_require__) {
  7742. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/graphlib/lib/lodash.js"),
  7743. PriorityQueue = __webpack_require__(/*! ../data/priority-queue */ "../../node_modules/graphlib/lib/data/priority-queue.js");
  7744. module.exports = dijkstra;
  7745. var DEFAULT_WEIGHT_FUNC = _.constant(1);
  7746. function dijkstra(g, source, weightFn, edgeFn) {
  7747. return runDijkstra(g, String(source),
  7748. weightFn || DEFAULT_WEIGHT_FUNC,
  7749. edgeFn || function(v) { return g.outEdges(v); });
  7750. }
  7751. function runDijkstra(g, source, weightFn, edgeFn) {
  7752. var results = {},
  7753. pq = new PriorityQueue(),
  7754. v, vEntry;
  7755. var updateNeighbors = function(edge) {
  7756. var w = edge.v !== v ? edge.v : edge.w,
  7757. wEntry = results[w],
  7758. weight = weightFn(edge),
  7759. distance = vEntry.distance + weight;
  7760. if (weight < 0) {
  7761. throw new Error("dijkstra does not allow negative edge weights. " +
  7762. "Bad edge: " + edge + " Weight: " + weight);
  7763. }
  7764. if (distance < wEntry.distance) {
  7765. wEntry.distance = distance;
  7766. wEntry.predecessor = v;
  7767. pq.decrease(w, distance);
  7768. }
  7769. };
  7770. g.nodes().forEach(function(v) {
  7771. var distance = v === source ? 0 : Number.POSITIVE_INFINITY;
  7772. results[v] = { distance: distance };
  7773. pq.add(v, distance);
  7774. });
  7775. while (pq.size() > 0) {
  7776. v = pq.removeMin();
  7777. vEntry = results[v];
  7778. if (vEntry.distance === Number.POSITIVE_INFINITY) {
  7779. break;
  7780. }
  7781. edgeFn(v).forEach(updateNeighbors);
  7782. }
  7783. return results;
  7784. }
  7785. /***/ }),
  7786. /***/ "../../node_modules/graphlib/lib/alg/find-cycles.js":
  7787. /*!******************************************************************************!*\
  7788. !*** C:/Dev/Babylon/Babylon.js/node_modules/graphlib/lib/alg/find-cycles.js ***!
  7789. \******************************************************************************/
  7790. /*! no static exports found */
  7791. /***/ (function(module, exports, __webpack_require__) {
  7792. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/graphlib/lib/lodash.js"),
  7793. tarjan = __webpack_require__(/*! ./tarjan */ "../../node_modules/graphlib/lib/alg/tarjan.js");
  7794. module.exports = findCycles;
  7795. function findCycles(g) {
  7796. return _.filter(tarjan(g), function(cmpt) {
  7797. return cmpt.length > 1 || (cmpt.length === 1 && g.hasEdge(cmpt[0], cmpt[0]));
  7798. });
  7799. }
  7800. /***/ }),
  7801. /***/ "../../node_modules/graphlib/lib/alg/floyd-warshall.js":
  7802. /*!*********************************************************************************!*\
  7803. !*** C:/Dev/Babylon/Babylon.js/node_modules/graphlib/lib/alg/floyd-warshall.js ***!
  7804. \*********************************************************************************/
  7805. /*! no static exports found */
  7806. /***/ (function(module, exports, __webpack_require__) {
  7807. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/graphlib/lib/lodash.js");
  7808. module.exports = floydWarshall;
  7809. var DEFAULT_WEIGHT_FUNC = _.constant(1);
  7810. function floydWarshall(g, weightFn, edgeFn) {
  7811. return runFloydWarshall(g,
  7812. weightFn || DEFAULT_WEIGHT_FUNC,
  7813. edgeFn || function(v) { return g.outEdges(v); });
  7814. }
  7815. function runFloydWarshall(g, weightFn, edgeFn) {
  7816. var results = {},
  7817. nodes = g.nodes();
  7818. nodes.forEach(function(v) {
  7819. results[v] = {};
  7820. results[v][v] = { distance: 0 };
  7821. nodes.forEach(function(w) {
  7822. if (v !== w) {
  7823. results[v][w] = { distance: Number.POSITIVE_INFINITY };
  7824. }
  7825. });
  7826. edgeFn(v).forEach(function(edge) {
  7827. var w = edge.v === v ? edge.w : edge.v,
  7828. d = weightFn(edge);
  7829. results[v][w] = { distance: d, predecessor: v };
  7830. });
  7831. });
  7832. nodes.forEach(function(k) {
  7833. var rowK = results[k];
  7834. nodes.forEach(function(i) {
  7835. var rowI = results[i];
  7836. nodes.forEach(function(j) {
  7837. var ik = rowI[k];
  7838. var kj = rowK[j];
  7839. var ij = rowI[j];
  7840. var altDistance = ik.distance + kj.distance;
  7841. if (altDistance < ij.distance) {
  7842. ij.distance = altDistance;
  7843. ij.predecessor = kj.predecessor;
  7844. }
  7845. });
  7846. });
  7847. });
  7848. return results;
  7849. }
  7850. /***/ }),
  7851. /***/ "../../node_modules/graphlib/lib/alg/index.js":
  7852. /*!************************************************************************!*\
  7853. !*** C:/Dev/Babylon/Babylon.js/node_modules/graphlib/lib/alg/index.js ***!
  7854. \************************************************************************/
  7855. /*! no static exports found */
  7856. /***/ (function(module, exports, __webpack_require__) {
  7857. module.exports = {
  7858. components: __webpack_require__(/*! ./components */ "../../node_modules/graphlib/lib/alg/components.js"),
  7859. dijkstra: __webpack_require__(/*! ./dijkstra */ "../../node_modules/graphlib/lib/alg/dijkstra.js"),
  7860. dijkstraAll: __webpack_require__(/*! ./dijkstra-all */ "../../node_modules/graphlib/lib/alg/dijkstra-all.js"),
  7861. findCycles: __webpack_require__(/*! ./find-cycles */ "../../node_modules/graphlib/lib/alg/find-cycles.js"),
  7862. floydWarshall: __webpack_require__(/*! ./floyd-warshall */ "../../node_modules/graphlib/lib/alg/floyd-warshall.js"),
  7863. isAcyclic: __webpack_require__(/*! ./is-acyclic */ "../../node_modules/graphlib/lib/alg/is-acyclic.js"),
  7864. postorder: __webpack_require__(/*! ./postorder */ "../../node_modules/graphlib/lib/alg/postorder.js"),
  7865. preorder: __webpack_require__(/*! ./preorder */ "../../node_modules/graphlib/lib/alg/preorder.js"),
  7866. prim: __webpack_require__(/*! ./prim */ "../../node_modules/graphlib/lib/alg/prim.js"),
  7867. tarjan: __webpack_require__(/*! ./tarjan */ "../../node_modules/graphlib/lib/alg/tarjan.js"),
  7868. topsort: __webpack_require__(/*! ./topsort */ "../../node_modules/graphlib/lib/alg/topsort.js")
  7869. };
  7870. /***/ }),
  7871. /***/ "../../node_modules/graphlib/lib/alg/is-acyclic.js":
  7872. /*!*****************************************************************************!*\
  7873. !*** C:/Dev/Babylon/Babylon.js/node_modules/graphlib/lib/alg/is-acyclic.js ***!
  7874. \*****************************************************************************/
  7875. /*! no static exports found */
  7876. /***/ (function(module, exports, __webpack_require__) {
  7877. var topsort = __webpack_require__(/*! ./topsort */ "../../node_modules/graphlib/lib/alg/topsort.js");
  7878. module.exports = isAcyclic;
  7879. function isAcyclic(g) {
  7880. try {
  7881. topsort(g);
  7882. } catch (e) {
  7883. if (e instanceof topsort.CycleException) {
  7884. return false;
  7885. }
  7886. throw e;
  7887. }
  7888. return true;
  7889. }
  7890. /***/ }),
  7891. /***/ "../../node_modules/graphlib/lib/alg/postorder.js":
  7892. /*!****************************************************************************!*\
  7893. !*** C:/Dev/Babylon/Babylon.js/node_modules/graphlib/lib/alg/postorder.js ***!
  7894. \****************************************************************************/
  7895. /*! no static exports found */
  7896. /***/ (function(module, exports, __webpack_require__) {
  7897. var dfs = __webpack_require__(/*! ./dfs */ "../../node_modules/graphlib/lib/alg/dfs.js");
  7898. module.exports = postorder;
  7899. function postorder(g, vs) {
  7900. return dfs(g, vs, "post");
  7901. }
  7902. /***/ }),
  7903. /***/ "../../node_modules/graphlib/lib/alg/preorder.js":
  7904. /*!***************************************************************************!*\
  7905. !*** C:/Dev/Babylon/Babylon.js/node_modules/graphlib/lib/alg/preorder.js ***!
  7906. \***************************************************************************/
  7907. /*! no static exports found */
  7908. /***/ (function(module, exports, __webpack_require__) {
  7909. var dfs = __webpack_require__(/*! ./dfs */ "../../node_modules/graphlib/lib/alg/dfs.js");
  7910. module.exports = preorder;
  7911. function preorder(g, vs) {
  7912. return dfs(g, vs, "pre");
  7913. }
  7914. /***/ }),
  7915. /***/ "../../node_modules/graphlib/lib/alg/prim.js":
  7916. /*!***********************************************************************!*\
  7917. !*** C:/Dev/Babylon/Babylon.js/node_modules/graphlib/lib/alg/prim.js ***!
  7918. \***********************************************************************/
  7919. /*! no static exports found */
  7920. /***/ (function(module, exports, __webpack_require__) {
  7921. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/graphlib/lib/lodash.js"),
  7922. Graph = __webpack_require__(/*! ../graph */ "../../node_modules/graphlib/lib/graph.js"),
  7923. PriorityQueue = __webpack_require__(/*! ../data/priority-queue */ "../../node_modules/graphlib/lib/data/priority-queue.js");
  7924. module.exports = prim;
  7925. function prim(g, weightFunc) {
  7926. var result = new Graph(),
  7927. parents = {},
  7928. pq = new PriorityQueue(),
  7929. v;
  7930. function updateNeighbors(edge) {
  7931. var w = edge.v === v ? edge.w : edge.v,
  7932. pri = pq.priority(w);
  7933. if (pri !== undefined) {
  7934. var edgeWeight = weightFunc(edge);
  7935. if (edgeWeight < pri) {
  7936. parents[w] = v;
  7937. pq.decrease(w, edgeWeight);
  7938. }
  7939. }
  7940. }
  7941. if (g.nodeCount() === 0) {
  7942. return result;
  7943. }
  7944. _.each(g.nodes(), function(v) {
  7945. pq.add(v, Number.POSITIVE_INFINITY);
  7946. result.setNode(v);
  7947. });
  7948. // Start from an arbitrary node
  7949. pq.decrease(g.nodes()[0], 0);
  7950. var init = false;
  7951. while (pq.size() > 0) {
  7952. v = pq.removeMin();
  7953. if (_.has(parents, v)) {
  7954. result.setEdge(v, parents[v]);
  7955. } else if (init) {
  7956. throw new Error("Input graph is not connected: " + g);
  7957. } else {
  7958. init = true;
  7959. }
  7960. g.nodeEdges(v).forEach(updateNeighbors);
  7961. }
  7962. return result;
  7963. }
  7964. /***/ }),
  7965. /***/ "../../node_modules/graphlib/lib/alg/tarjan.js":
  7966. /*!*************************************************************************!*\
  7967. !*** C:/Dev/Babylon/Babylon.js/node_modules/graphlib/lib/alg/tarjan.js ***!
  7968. \*************************************************************************/
  7969. /*! no static exports found */
  7970. /***/ (function(module, exports, __webpack_require__) {
  7971. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/graphlib/lib/lodash.js");
  7972. module.exports = tarjan;
  7973. function tarjan(g) {
  7974. var index = 0,
  7975. stack = [],
  7976. visited = {}, // node id -> { onStack, lowlink, index }
  7977. results = [];
  7978. function dfs(v) {
  7979. var entry = visited[v] = {
  7980. onStack: true,
  7981. lowlink: index,
  7982. index: index++
  7983. };
  7984. stack.push(v);
  7985. g.successors(v).forEach(function(w) {
  7986. if (!_.has(visited, w)) {
  7987. dfs(w);
  7988. entry.lowlink = Math.min(entry.lowlink, visited[w].lowlink);
  7989. } else if (visited[w].onStack) {
  7990. entry.lowlink = Math.min(entry.lowlink, visited[w].index);
  7991. }
  7992. });
  7993. if (entry.lowlink === entry.index) {
  7994. var cmpt = [],
  7995. w;
  7996. do {
  7997. w = stack.pop();
  7998. visited[w].onStack = false;
  7999. cmpt.push(w);
  8000. } while (v !== w);
  8001. results.push(cmpt);
  8002. }
  8003. }
  8004. g.nodes().forEach(function(v) {
  8005. if (!_.has(visited, v)) {
  8006. dfs(v);
  8007. }
  8008. });
  8009. return results;
  8010. }
  8011. /***/ }),
  8012. /***/ "../../node_modules/graphlib/lib/alg/topsort.js":
  8013. /*!**************************************************************************!*\
  8014. !*** C:/Dev/Babylon/Babylon.js/node_modules/graphlib/lib/alg/topsort.js ***!
  8015. \**************************************************************************/
  8016. /*! no static exports found */
  8017. /***/ (function(module, exports, __webpack_require__) {
  8018. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/graphlib/lib/lodash.js");
  8019. module.exports = topsort;
  8020. topsort.CycleException = CycleException;
  8021. function topsort(g) {
  8022. var visited = {},
  8023. stack = {},
  8024. results = [];
  8025. function visit(node) {
  8026. if (_.has(stack, node)) {
  8027. throw new CycleException();
  8028. }
  8029. if (!_.has(visited, node)) {
  8030. stack[node] = true;
  8031. visited[node] = true;
  8032. _.each(g.predecessors(node), visit);
  8033. delete stack[node];
  8034. results.push(node);
  8035. }
  8036. }
  8037. _.each(g.sinks(), visit);
  8038. if (_.size(visited) !== g.nodeCount()) {
  8039. throw new CycleException();
  8040. }
  8041. return results;
  8042. }
  8043. function CycleException() {}
  8044. CycleException.prototype = new Error(); // must be an instance of Error to pass testing
  8045. /***/ }),
  8046. /***/ "../../node_modules/graphlib/lib/data/priority-queue.js":
  8047. /*!**********************************************************************************!*\
  8048. !*** C:/Dev/Babylon/Babylon.js/node_modules/graphlib/lib/data/priority-queue.js ***!
  8049. \**********************************************************************************/
  8050. /*! no static exports found */
  8051. /***/ (function(module, exports, __webpack_require__) {
  8052. var _ = __webpack_require__(/*! ../lodash */ "../../node_modules/graphlib/lib/lodash.js");
  8053. module.exports = PriorityQueue;
  8054. /**
  8055. * A min-priority queue data structure. This algorithm is derived from Cormen,
  8056. * et al., "Introduction to Algorithms". The basic idea of a min-priority
  8057. * queue is that you can efficiently (in O(1) time) get the smallest key in
  8058. * the queue. Adding and removing elements takes O(log n) time. A key can
  8059. * have its priority decreased in O(log n) time.
  8060. */
  8061. function PriorityQueue() {
  8062. this._arr = [];
  8063. this._keyIndices = {};
  8064. }
  8065. /**
  8066. * Returns the number of elements in the queue. Takes `O(1)` time.
  8067. */
  8068. PriorityQueue.prototype.size = function() {
  8069. return this._arr.length;
  8070. };
  8071. /**
  8072. * Returns the keys that are in the queue. Takes `O(n)` time.
  8073. */
  8074. PriorityQueue.prototype.keys = function() {
  8075. return this._arr.map(function(x) { return x.key; });
  8076. };
  8077. /**
  8078. * Returns `true` if **key** is in the queue and `false` if not.
  8079. */
  8080. PriorityQueue.prototype.has = function(key) {
  8081. return _.has(this._keyIndices, key);
  8082. };
  8083. /**
  8084. * Returns the priority for **key**. If **key** is not present in the queue
  8085. * then this function returns `undefined`. Takes `O(1)` time.
  8086. *
  8087. * @param {Object} key
  8088. */
  8089. PriorityQueue.prototype.priority = function(key) {
  8090. var index = this._keyIndices[key];
  8091. if (index !== undefined) {
  8092. return this._arr[index].priority;
  8093. }
  8094. };
  8095. /**
  8096. * Returns the key for the minimum element in this queue. If the queue is
  8097. * empty this function throws an Error. Takes `O(1)` time.
  8098. */
  8099. PriorityQueue.prototype.min = function() {
  8100. if (this.size() === 0) {
  8101. throw new Error("Queue underflow");
  8102. }
  8103. return this._arr[0].key;
  8104. };
  8105. /**
  8106. * Inserts a new key into the priority queue. If the key already exists in
  8107. * the queue this function returns `false`; otherwise it will return `true`.
  8108. * Takes `O(n)` time.
  8109. *
  8110. * @param {Object} key the key to add
  8111. * @param {Number} priority the initial priority for the key
  8112. */
  8113. PriorityQueue.prototype.add = function(key, priority) {
  8114. var keyIndices = this._keyIndices;
  8115. key = String(key);
  8116. if (!_.has(keyIndices, key)) {
  8117. var arr = this._arr;
  8118. var index = arr.length;
  8119. keyIndices[key] = index;
  8120. arr.push({key: key, priority: priority});
  8121. this._decrease(index);
  8122. return true;
  8123. }
  8124. return false;
  8125. };
  8126. /**
  8127. * Removes and returns the smallest key in the queue. Takes `O(log n)` time.
  8128. */
  8129. PriorityQueue.prototype.removeMin = function() {
  8130. this._swap(0, this._arr.length - 1);
  8131. var min = this._arr.pop();
  8132. delete this._keyIndices[min.key];
  8133. this._heapify(0);
  8134. return min.key;
  8135. };
  8136. /**
  8137. * Decreases the priority for **key** to **priority**. If the new priority is
  8138. * greater than the previous priority, this function will throw an Error.
  8139. *
  8140. * @param {Object} key the key for which to raise priority
  8141. * @param {Number} priority the new priority for the key
  8142. */
  8143. PriorityQueue.prototype.decrease = function(key, priority) {
  8144. var index = this._keyIndices[key];
  8145. if (priority > this._arr[index].priority) {
  8146. throw new Error("New priority is greater than current priority. " +
  8147. "Key: " + key + " Old: " + this._arr[index].priority + " New: " + priority);
  8148. }
  8149. this._arr[index].priority = priority;
  8150. this._decrease(index);
  8151. };
  8152. PriorityQueue.prototype._heapify = function(i) {
  8153. var arr = this._arr;
  8154. var l = 2 * i,
  8155. r = l + 1,
  8156. largest = i;
  8157. if (l < arr.length) {
  8158. largest = arr[l].priority < arr[largest].priority ? l : largest;
  8159. if (r < arr.length) {
  8160. largest = arr[r].priority < arr[largest].priority ? r : largest;
  8161. }
  8162. if (largest !== i) {
  8163. this._swap(i, largest);
  8164. this._heapify(largest);
  8165. }
  8166. }
  8167. };
  8168. PriorityQueue.prototype._decrease = function(index) {
  8169. var arr = this._arr;
  8170. var priority = arr[index].priority;
  8171. var parent;
  8172. while (index !== 0) {
  8173. parent = index >> 1;
  8174. if (arr[parent].priority < priority) {
  8175. break;
  8176. }
  8177. this._swap(index, parent);
  8178. index = parent;
  8179. }
  8180. };
  8181. PriorityQueue.prototype._swap = function(i, j) {
  8182. var arr = this._arr;
  8183. var keyIndices = this._keyIndices;
  8184. var origArrI = arr[i];
  8185. var origArrJ = arr[j];
  8186. arr[i] = origArrJ;
  8187. arr[j] = origArrI;
  8188. keyIndices[origArrJ.key] = i;
  8189. keyIndices[origArrI.key] = j;
  8190. };
  8191. /***/ }),
  8192. /***/ "../../node_modules/graphlib/lib/graph.js":
  8193. /*!********************************************************************!*\
  8194. !*** C:/Dev/Babylon/Babylon.js/node_modules/graphlib/lib/graph.js ***!
  8195. \********************************************************************/
  8196. /*! no static exports found */
  8197. /***/ (function(module, exports, __webpack_require__) {
  8198. "use strict";
  8199. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/graphlib/lib/lodash.js");
  8200. module.exports = Graph;
  8201. var DEFAULT_EDGE_NAME = "\x00",
  8202. GRAPH_NODE = "\x00",
  8203. EDGE_KEY_DELIM = "\x01";
  8204. // Implementation notes:
  8205. //
  8206. // * Node id query functions should return string ids for the nodes
  8207. // * Edge id query functions should return an "edgeObj", edge object, that is
  8208. // composed of enough information to uniquely identify an edge: {v, w, name}.
  8209. // * Internally we use an "edgeId", a stringified form of the edgeObj, to
  8210. // reference edges. This is because we need a performant way to look these
  8211. // edges up and, object properties, which have string keys, are the closest
  8212. // we're going to get to a performant hashtable in JavaScript.
  8213. function Graph(opts) {
  8214. this._isDirected = _.has(opts, "directed") ? opts.directed : true;
  8215. this._isMultigraph = _.has(opts, "multigraph") ? opts.multigraph : false;
  8216. this._isCompound = _.has(opts, "compound") ? opts.compound : false;
  8217. // Label for the graph itself
  8218. this._label = undefined;
  8219. // Defaults to be set when creating a new node
  8220. this._defaultNodeLabelFn = _.constant(undefined);
  8221. // Defaults to be set when creating a new edge
  8222. this._defaultEdgeLabelFn = _.constant(undefined);
  8223. // v -> label
  8224. this._nodes = {};
  8225. if (this._isCompound) {
  8226. // v -> parent
  8227. this._parent = {};
  8228. // v -> children
  8229. this._children = {};
  8230. this._children[GRAPH_NODE] = {};
  8231. }
  8232. // v -> edgeObj
  8233. this._in = {};
  8234. // u -> v -> Number
  8235. this._preds = {};
  8236. // v -> edgeObj
  8237. this._out = {};
  8238. // v -> w -> Number
  8239. this._sucs = {};
  8240. // e -> edgeObj
  8241. this._edgeObjs = {};
  8242. // e -> label
  8243. this._edgeLabels = {};
  8244. }
  8245. /* Number of nodes in the graph. Should only be changed by the implementation. */
  8246. Graph.prototype._nodeCount = 0;
  8247. /* Number of edges in the graph. Should only be changed by the implementation. */
  8248. Graph.prototype._edgeCount = 0;
  8249. /* === Graph functions ========= */
  8250. Graph.prototype.isDirected = function() {
  8251. return this._isDirected;
  8252. };
  8253. Graph.prototype.isMultigraph = function() {
  8254. return this._isMultigraph;
  8255. };
  8256. Graph.prototype.isCompound = function() {
  8257. return this._isCompound;
  8258. };
  8259. Graph.prototype.setGraph = function(label) {
  8260. this._label = label;
  8261. return this;
  8262. };
  8263. Graph.prototype.graph = function() {
  8264. return this._label;
  8265. };
  8266. /* === Node functions ========== */
  8267. Graph.prototype.setDefaultNodeLabel = function(newDefault) {
  8268. if (!_.isFunction(newDefault)) {
  8269. newDefault = _.constant(newDefault);
  8270. }
  8271. this._defaultNodeLabelFn = newDefault;
  8272. return this;
  8273. };
  8274. Graph.prototype.nodeCount = function() {
  8275. return this._nodeCount;
  8276. };
  8277. Graph.prototype.nodes = function() {
  8278. return _.keys(this._nodes);
  8279. };
  8280. Graph.prototype.sources = function() {
  8281. var self = this;
  8282. return _.filter(this.nodes(), function(v) {
  8283. return _.isEmpty(self._in[v]);
  8284. });
  8285. };
  8286. Graph.prototype.sinks = function() {
  8287. var self = this;
  8288. return _.filter(this.nodes(), function(v) {
  8289. return _.isEmpty(self._out[v]);
  8290. });
  8291. };
  8292. Graph.prototype.setNodes = function(vs, value) {
  8293. var args = arguments;
  8294. var self = this;
  8295. _.each(vs, function(v) {
  8296. if (args.length > 1) {
  8297. self.setNode(v, value);
  8298. } else {
  8299. self.setNode(v);
  8300. }
  8301. });
  8302. return this;
  8303. };
  8304. Graph.prototype.setNode = function(v, value) {
  8305. if (_.has(this._nodes, v)) {
  8306. if (arguments.length > 1) {
  8307. this._nodes[v] = value;
  8308. }
  8309. return this;
  8310. }
  8311. this._nodes[v] = arguments.length > 1 ? value : this._defaultNodeLabelFn(v);
  8312. if (this._isCompound) {
  8313. this._parent[v] = GRAPH_NODE;
  8314. this._children[v] = {};
  8315. this._children[GRAPH_NODE][v] = true;
  8316. }
  8317. this._in[v] = {};
  8318. this._preds[v] = {};
  8319. this._out[v] = {};
  8320. this._sucs[v] = {};
  8321. ++this._nodeCount;
  8322. return this;
  8323. };
  8324. Graph.prototype.node = function(v) {
  8325. return this._nodes[v];
  8326. };
  8327. Graph.prototype.hasNode = function(v) {
  8328. return _.has(this._nodes, v);
  8329. };
  8330. Graph.prototype.removeNode = function(v) {
  8331. var self = this;
  8332. if (_.has(this._nodes, v)) {
  8333. var removeEdge = function(e) { self.removeEdge(self._edgeObjs[e]); };
  8334. delete this._nodes[v];
  8335. if (this._isCompound) {
  8336. this._removeFromParentsChildList(v);
  8337. delete this._parent[v];
  8338. _.each(this.children(v), function(child) {
  8339. self.setParent(child);
  8340. });
  8341. delete this._children[v];
  8342. }
  8343. _.each(_.keys(this._in[v]), removeEdge);
  8344. delete this._in[v];
  8345. delete this._preds[v];
  8346. _.each(_.keys(this._out[v]), removeEdge);
  8347. delete this._out[v];
  8348. delete this._sucs[v];
  8349. --this._nodeCount;
  8350. }
  8351. return this;
  8352. };
  8353. Graph.prototype.setParent = function(v, parent) {
  8354. if (!this._isCompound) {
  8355. throw new Error("Cannot set parent in a non-compound graph");
  8356. }
  8357. if (_.isUndefined(parent)) {
  8358. parent = GRAPH_NODE;
  8359. } else {
  8360. // Coerce parent to string
  8361. parent += "";
  8362. for (var ancestor = parent;
  8363. !_.isUndefined(ancestor);
  8364. ancestor = this.parent(ancestor)) {
  8365. if (ancestor === v) {
  8366. throw new Error("Setting " + parent+ " as parent of " + v +
  8367. " would create a cycle");
  8368. }
  8369. }
  8370. this.setNode(parent);
  8371. }
  8372. this.setNode(v);
  8373. this._removeFromParentsChildList(v);
  8374. this._parent[v] = parent;
  8375. this._children[parent][v] = true;
  8376. return this;
  8377. };
  8378. Graph.prototype._removeFromParentsChildList = function(v) {
  8379. delete this._children[this._parent[v]][v];
  8380. };
  8381. Graph.prototype.parent = function(v) {
  8382. if (this._isCompound) {
  8383. var parent = this._parent[v];
  8384. if (parent !== GRAPH_NODE) {
  8385. return parent;
  8386. }
  8387. }
  8388. };
  8389. Graph.prototype.children = function(v) {
  8390. if (_.isUndefined(v)) {
  8391. v = GRAPH_NODE;
  8392. }
  8393. if (this._isCompound) {
  8394. var children = this._children[v];
  8395. if (children) {
  8396. return _.keys(children);
  8397. }
  8398. } else if (v === GRAPH_NODE) {
  8399. return this.nodes();
  8400. } else if (this.hasNode(v)) {
  8401. return [];
  8402. }
  8403. };
  8404. Graph.prototype.predecessors = function(v) {
  8405. var predsV = this._preds[v];
  8406. if (predsV) {
  8407. return _.keys(predsV);
  8408. }
  8409. };
  8410. Graph.prototype.successors = function(v) {
  8411. var sucsV = this._sucs[v];
  8412. if (sucsV) {
  8413. return _.keys(sucsV);
  8414. }
  8415. };
  8416. Graph.prototype.neighbors = function(v) {
  8417. var preds = this.predecessors(v);
  8418. if (preds) {
  8419. return _.union(preds, this.successors(v));
  8420. }
  8421. };
  8422. Graph.prototype.isLeaf = function (v) {
  8423. var neighbors;
  8424. if (this.isDirected()) {
  8425. neighbors = this.successors(v);
  8426. } else {
  8427. neighbors = this.neighbors(v);
  8428. }
  8429. return neighbors.length === 0;
  8430. };
  8431. Graph.prototype.filterNodes = function(filter) {
  8432. var copy = new this.constructor({
  8433. directed: this._isDirected,
  8434. multigraph: this._isMultigraph,
  8435. compound: this._isCompound
  8436. });
  8437. copy.setGraph(this.graph());
  8438. var self = this;
  8439. _.each(this._nodes, function(value, v) {
  8440. if (filter(v)) {
  8441. copy.setNode(v, value);
  8442. }
  8443. });
  8444. _.each(this._edgeObjs, function(e) {
  8445. if (copy.hasNode(e.v) && copy.hasNode(e.w)) {
  8446. copy.setEdge(e, self.edge(e));
  8447. }
  8448. });
  8449. var parents = {};
  8450. function findParent(v) {
  8451. var parent = self.parent(v);
  8452. if (parent === undefined || copy.hasNode(parent)) {
  8453. parents[v] = parent;
  8454. return parent;
  8455. } else if (parent in parents) {
  8456. return parents[parent];
  8457. } else {
  8458. return findParent(parent);
  8459. }
  8460. }
  8461. if (this._isCompound) {
  8462. _.each(copy.nodes(), function(v) {
  8463. copy.setParent(v, findParent(v));
  8464. });
  8465. }
  8466. return copy;
  8467. };
  8468. /* === Edge functions ========== */
  8469. Graph.prototype.setDefaultEdgeLabel = function(newDefault) {
  8470. if (!_.isFunction(newDefault)) {
  8471. newDefault = _.constant(newDefault);
  8472. }
  8473. this._defaultEdgeLabelFn = newDefault;
  8474. return this;
  8475. };
  8476. Graph.prototype.edgeCount = function() {
  8477. return this._edgeCount;
  8478. };
  8479. Graph.prototype.edges = function() {
  8480. return _.values(this._edgeObjs);
  8481. };
  8482. Graph.prototype.setPath = function(vs, value) {
  8483. var self = this,
  8484. args = arguments;
  8485. _.reduce(vs, function(v, w) {
  8486. if (args.length > 1) {
  8487. self.setEdge(v, w, value);
  8488. } else {
  8489. self.setEdge(v, w);
  8490. }
  8491. return w;
  8492. });
  8493. return this;
  8494. };
  8495. /*
  8496. * setEdge(v, w, [value, [name]])
  8497. * setEdge({ v, w, [name] }, [value])
  8498. */
  8499. Graph.prototype.setEdge = function() {
  8500. var v, w, name, value,
  8501. valueSpecified = false,
  8502. arg0 = arguments[0];
  8503. if (typeof arg0 === "object" && arg0 !== null && "v" in arg0) {
  8504. v = arg0.v;
  8505. w = arg0.w;
  8506. name = arg0.name;
  8507. if (arguments.length === 2) {
  8508. value = arguments[1];
  8509. valueSpecified = true;
  8510. }
  8511. } else {
  8512. v = arg0;
  8513. w = arguments[1];
  8514. name = arguments[3];
  8515. if (arguments.length > 2) {
  8516. value = arguments[2];
  8517. valueSpecified = true;
  8518. }
  8519. }
  8520. v = "" + v;
  8521. w = "" + w;
  8522. if (!_.isUndefined(name)) {
  8523. name = "" + name;
  8524. }
  8525. var e = edgeArgsToId(this._isDirected, v, w, name);
  8526. if (_.has(this._edgeLabels, e)) {
  8527. if (valueSpecified) {
  8528. this._edgeLabels[e] = value;
  8529. }
  8530. return this;
  8531. }
  8532. if (!_.isUndefined(name) && !this._isMultigraph) {
  8533. throw new Error("Cannot set a named edge when isMultigraph = false");
  8534. }
  8535. // It didn't exist, so we need to create it.
  8536. // First ensure the nodes exist.
  8537. this.setNode(v);
  8538. this.setNode(w);
  8539. this._edgeLabels[e] = valueSpecified ? value : this._defaultEdgeLabelFn(v, w, name);
  8540. var edgeObj = edgeArgsToObj(this._isDirected, v, w, name);
  8541. // Ensure we add undirected edges in a consistent way.
  8542. v = edgeObj.v;
  8543. w = edgeObj.w;
  8544. Object.freeze(edgeObj);
  8545. this._edgeObjs[e] = edgeObj;
  8546. incrementOrInitEntry(this._preds[w], v);
  8547. incrementOrInitEntry(this._sucs[v], w);
  8548. this._in[w][e] = edgeObj;
  8549. this._out[v][e] = edgeObj;
  8550. this._edgeCount++;
  8551. return this;
  8552. };
  8553. Graph.prototype.edge = function(v, w, name) {
  8554. var e = (arguments.length === 1
  8555. ? edgeObjToId(this._isDirected, arguments[0])
  8556. : edgeArgsToId(this._isDirected, v, w, name));
  8557. return this._edgeLabels[e];
  8558. };
  8559. Graph.prototype.hasEdge = function(v, w, name) {
  8560. var e = (arguments.length === 1
  8561. ? edgeObjToId(this._isDirected, arguments[0])
  8562. : edgeArgsToId(this._isDirected, v, w, name));
  8563. return _.has(this._edgeLabels, e);
  8564. };
  8565. Graph.prototype.removeEdge = function(v, w, name) {
  8566. var e = (arguments.length === 1
  8567. ? edgeObjToId(this._isDirected, arguments[0])
  8568. : edgeArgsToId(this._isDirected, v, w, name)),
  8569. edge = this._edgeObjs[e];
  8570. if (edge) {
  8571. v = edge.v;
  8572. w = edge.w;
  8573. delete this._edgeLabels[e];
  8574. delete this._edgeObjs[e];
  8575. decrementOrRemoveEntry(this._preds[w], v);
  8576. decrementOrRemoveEntry(this._sucs[v], w);
  8577. delete this._in[w][e];
  8578. delete this._out[v][e];
  8579. this._edgeCount--;
  8580. }
  8581. return this;
  8582. };
  8583. Graph.prototype.inEdges = function(v, u) {
  8584. var inV = this._in[v];
  8585. if (inV) {
  8586. var edges = _.values(inV);
  8587. if (!u) {
  8588. return edges;
  8589. }
  8590. return _.filter(edges, function(edge) { return edge.v === u; });
  8591. }
  8592. };
  8593. Graph.prototype.outEdges = function(v, w) {
  8594. var outV = this._out[v];
  8595. if (outV) {
  8596. var edges = _.values(outV);
  8597. if (!w) {
  8598. return edges;
  8599. }
  8600. return _.filter(edges, function(edge) { return edge.w === w; });
  8601. }
  8602. };
  8603. Graph.prototype.nodeEdges = function(v, w) {
  8604. var inEdges = this.inEdges(v, w);
  8605. if (inEdges) {
  8606. return inEdges.concat(this.outEdges(v, w));
  8607. }
  8608. };
  8609. function incrementOrInitEntry(map, k) {
  8610. if (map[k]) {
  8611. map[k]++;
  8612. } else {
  8613. map[k] = 1;
  8614. }
  8615. }
  8616. function decrementOrRemoveEntry(map, k) {
  8617. if (!--map[k]) { delete map[k]; }
  8618. }
  8619. function edgeArgsToId(isDirected, v_, w_, name) {
  8620. var v = "" + v_;
  8621. var w = "" + w_;
  8622. if (!isDirected && v > w) {
  8623. var tmp = v;
  8624. v = w;
  8625. w = tmp;
  8626. }
  8627. return v + EDGE_KEY_DELIM + w + EDGE_KEY_DELIM +
  8628. (_.isUndefined(name) ? DEFAULT_EDGE_NAME : name);
  8629. }
  8630. function edgeArgsToObj(isDirected, v_, w_, name) {
  8631. var v = "" + v_;
  8632. var w = "" + w_;
  8633. if (!isDirected && v > w) {
  8634. var tmp = v;
  8635. v = w;
  8636. w = tmp;
  8637. }
  8638. var edgeObj = { v: v, w: w };
  8639. if (name) {
  8640. edgeObj.name = name;
  8641. }
  8642. return edgeObj;
  8643. }
  8644. function edgeObjToId(isDirected, edgeObj) {
  8645. return edgeArgsToId(isDirected, edgeObj.v, edgeObj.w, edgeObj.name);
  8646. }
  8647. /***/ }),
  8648. /***/ "../../node_modules/graphlib/lib/index.js":
  8649. /*!********************************************************************!*\
  8650. !*** C:/Dev/Babylon/Babylon.js/node_modules/graphlib/lib/index.js ***!
  8651. \********************************************************************/
  8652. /*! no static exports found */
  8653. /***/ (function(module, exports, __webpack_require__) {
  8654. // Includes only the "core" of graphlib
  8655. module.exports = {
  8656. Graph: __webpack_require__(/*! ./graph */ "../../node_modules/graphlib/lib/graph.js"),
  8657. version: __webpack_require__(/*! ./version */ "../../node_modules/graphlib/lib/version.js")
  8658. };
  8659. /***/ }),
  8660. /***/ "../../node_modules/graphlib/lib/json.js":
  8661. /*!*******************************************************************!*\
  8662. !*** C:/Dev/Babylon/Babylon.js/node_modules/graphlib/lib/json.js ***!
  8663. \*******************************************************************/
  8664. /*! no static exports found */
  8665. /***/ (function(module, exports, __webpack_require__) {
  8666. var _ = __webpack_require__(/*! ./lodash */ "../../node_modules/graphlib/lib/lodash.js"),
  8667. Graph = __webpack_require__(/*! ./graph */ "../../node_modules/graphlib/lib/graph.js");
  8668. module.exports = {
  8669. write: write,
  8670. read: read
  8671. };
  8672. function write(g) {
  8673. var json = {
  8674. options: {
  8675. directed: g.isDirected(),
  8676. multigraph: g.isMultigraph(),
  8677. compound: g.isCompound()
  8678. },
  8679. nodes: writeNodes(g),
  8680. edges: writeEdges(g)
  8681. };
  8682. if (!_.isUndefined(g.graph())) {
  8683. json.value = _.clone(g.graph());
  8684. }
  8685. return json;
  8686. }
  8687. function writeNodes(g) {
  8688. return _.map(g.nodes(), function(v) {
  8689. var nodeValue = g.node(v),
  8690. parent = g.parent(v),
  8691. node = { v: v };
  8692. if (!_.isUndefined(nodeValue)) {
  8693. node.value = nodeValue;
  8694. }
  8695. if (!_.isUndefined(parent)) {
  8696. node.parent = parent;
  8697. }
  8698. return node;
  8699. });
  8700. }
  8701. function writeEdges(g) {
  8702. return _.map(g.edges(), function(e) {
  8703. var edgeValue = g.edge(e),
  8704. edge = { v: e.v, w: e.w };
  8705. if (!_.isUndefined(e.name)) {
  8706. edge.name = e.name;
  8707. }
  8708. if (!_.isUndefined(edgeValue)) {
  8709. edge.value = edgeValue;
  8710. }
  8711. return edge;
  8712. });
  8713. }
  8714. function read(json) {
  8715. var g = new Graph(json.options).setGraph(json.value);
  8716. _.each(json.nodes, function(entry) {
  8717. g.setNode(entry.v, entry.value);
  8718. if (entry.parent) {
  8719. g.setParent(entry.v, entry.parent);
  8720. }
  8721. });
  8722. _.each(json.edges, function(entry) {
  8723. g.setEdge({ v: entry.v, w: entry.w, name: entry.name }, entry.value);
  8724. });
  8725. return g;
  8726. }
  8727. /***/ }),
  8728. /***/ "../../node_modules/graphlib/lib/lodash.js":
  8729. /*!*********************************************************************!*\
  8730. !*** C:/Dev/Babylon/Babylon.js/node_modules/graphlib/lib/lodash.js ***!
  8731. \*********************************************************************/
  8732. /*! no static exports found */
  8733. /***/ (function(module, exports, __webpack_require__) {
  8734. /* global window */
  8735. var lodash;
  8736. if (true) {
  8737. try {
  8738. lodash = {
  8739. clone: __webpack_require__(/*! lodash/clone */ "../../node_modules/lodash/clone.js"),
  8740. constant: __webpack_require__(/*! lodash/constant */ "../../node_modules/lodash/constant.js"),
  8741. each: __webpack_require__(/*! lodash/each */ "../../node_modules/lodash/each.js"),
  8742. filter: __webpack_require__(/*! lodash/filter */ "../../node_modules/lodash/filter.js"),
  8743. has: __webpack_require__(/*! lodash/has */ "../../node_modules/lodash/has.js"),
  8744. isArray: __webpack_require__(/*! lodash/isArray */ "../../node_modules/lodash/isArray.js"),
  8745. isEmpty: __webpack_require__(/*! lodash/isEmpty */ "../../node_modules/lodash/isEmpty.js"),
  8746. isFunction: __webpack_require__(/*! lodash/isFunction */ "../../node_modules/lodash/isFunction.js"),
  8747. isUndefined: __webpack_require__(/*! lodash/isUndefined */ "../../node_modules/lodash/isUndefined.js"),
  8748. keys: __webpack_require__(/*! lodash/keys */ "../../node_modules/lodash/keys.js"),
  8749. map: __webpack_require__(/*! lodash/map */ "../../node_modules/lodash/map.js"),
  8750. reduce: __webpack_require__(/*! lodash/reduce */ "../../node_modules/lodash/reduce.js"),
  8751. size: __webpack_require__(/*! lodash/size */ "../../node_modules/lodash/size.js"),
  8752. transform: __webpack_require__(/*! lodash/transform */ "../../node_modules/lodash/transform.js"),
  8753. union: __webpack_require__(/*! lodash/union */ "../../node_modules/lodash/union.js"),
  8754. values: __webpack_require__(/*! lodash/values */ "../../node_modules/lodash/values.js")
  8755. };
  8756. } catch (e) {}
  8757. }
  8758. if (!lodash) {
  8759. lodash = window._;
  8760. }
  8761. module.exports = lodash;
  8762. /***/ }),
  8763. /***/ "../../node_modules/graphlib/lib/version.js":
  8764. /*!**********************************************************************!*\
  8765. !*** C:/Dev/Babylon/Babylon.js/node_modules/graphlib/lib/version.js ***!
  8766. \**********************************************************************/
  8767. /*! no static exports found */
  8768. /***/ (function(module, exports) {
  8769. module.exports = '2.1.7';
  8770. /***/ }),
  8771. /***/ "../../node_modules/lodash/_DataView.js":
  8772. /*!******************************************************************!*\
  8773. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_DataView.js ***!
  8774. \******************************************************************/
  8775. /*! no static exports found */
  8776. /***/ (function(module, exports, __webpack_require__) {
  8777. var getNative = __webpack_require__(/*! ./_getNative */ "../../node_modules/lodash/_getNative.js"),
  8778. root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  8779. /* Built-in method references that are verified to be native. */
  8780. var DataView = getNative(root, 'DataView');
  8781. module.exports = DataView;
  8782. /***/ }),
  8783. /***/ "../../node_modules/lodash/_Hash.js":
  8784. /*!**************************************************************!*\
  8785. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_Hash.js ***!
  8786. \**************************************************************/
  8787. /*! no static exports found */
  8788. /***/ (function(module, exports, __webpack_require__) {
  8789. var hashClear = __webpack_require__(/*! ./_hashClear */ "../../node_modules/lodash/_hashClear.js"),
  8790. hashDelete = __webpack_require__(/*! ./_hashDelete */ "../../node_modules/lodash/_hashDelete.js"),
  8791. hashGet = __webpack_require__(/*! ./_hashGet */ "../../node_modules/lodash/_hashGet.js"),
  8792. hashHas = __webpack_require__(/*! ./_hashHas */ "../../node_modules/lodash/_hashHas.js"),
  8793. hashSet = __webpack_require__(/*! ./_hashSet */ "../../node_modules/lodash/_hashSet.js");
  8794. /**
  8795. * Creates a hash object.
  8796. *
  8797. * @private
  8798. * @constructor
  8799. * @param {Array} [entries] The key-value pairs to cache.
  8800. */
  8801. function Hash(entries) {
  8802. var index = -1,
  8803. length = entries == null ? 0 : entries.length;
  8804. this.clear();
  8805. while (++index < length) {
  8806. var entry = entries[index];
  8807. this.set(entry[0], entry[1]);
  8808. }
  8809. }
  8810. // Add methods to `Hash`.
  8811. Hash.prototype.clear = hashClear;
  8812. Hash.prototype['delete'] = hashDelete;
  8813. Hash.prototype.get = hashGet;
  8814. Hash.prototype.has = hashHas;
  8815. Hash.prototype.set = hashSet;
  8816. module.exports = Hash;
  8817. /***/ }),
  8818. /***/ "../../node_modules/lodash/_ListCache.js":
  8819. /*!*******************************************************************!*\
  8820. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_ListCache.js ***!
  8821. \*******************************************************************/
  8822. /*! no static exports found */
  8823. /***/ (function(module, exports, __webpack_require__) {
  8824. var listCacheClear = __webpack_require__(/*! ./_listCacheClear */ "../../node_modules/lodash/_listCacheClear.js"),
  8825. listCacheDelete = __webpack_require__(/*! ./_listCacheDelete */ "../../node_modules/lodash/_listCacheDelete.js"),
  8826. listCacheGet = __webpack_require__(/*! ./_listCacheGet */ "../../node_modules/lodash/_listCacheGet.js"),
  8827. listCacheHas = __webpack_require__(/*! ./_listCacheHas */ "../../node_modules/lodash/_listCacheHas.js"),
  8828. listCacheSet = __webpack_require__(/*! ./_listCacheSet */ "../../node_modules/lodash/_listCacheSet.js");
  8829. /**
  8830. * Creates an list cache object.
  8831. *
  8832. * @private
  8833. * @constructor
  8834. * @param {Array} [entries] The key-value pairs to cache.
  8835. */
  8836. function ListCache(entries) {
  8837. var index = -1,
  8838. length = entries == null ? 0 : entries.length;
  8839. this.clear();
  8840. while (++index < length) {
  8841. var entry = entries[index];
  8842. this.set(entry[0], entry[1]);
  8843. }
  8844. }
  8845. // Add methods to `ListCache`.
  8846. ListCache.prototype.clear = listCacheClear;
  8847. ListCache.prototype['delete'] = listCacheDelete;
  8848. ListCache.prototype.get = listCacheGet;
  8849. ListCache.prototype.has = listCacheHas;
  8850. ListCache.prototype.set = listCacheSet;
  8851. module.exports = ListCache;
  8852. /***/ }),
  8853. /***/ "../../node_modules/lodash/_Map.js":
  8854. /*!*************************************************************!*\
  8855. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_Map.js ***!
  8856. \*************************************************************/
  8857. /*! no static exports found */
  8858. /***/ (function(module, exports, __webpack_require__) {
  8859. var getNative = __webpack_require__(/*! ./_getNative */ "../../node_modules/lodash/_getNative.js"),
  8860. root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  8861. /* Built-in method references that are verified to be native. */
  8862. var Map = getNative(root, 'Map');
  8863. module.exports = Map;
  8864. /***/ }),
  8865. /***/ "../../node_modules/lodash/_MapCache.js":
  8866. /*!******************************************************************!*\
  8867. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_MapCache.js ***!
  8868. \******************************************************************/
  8869. /*! no static exports found */
  8870. /***/ (function(module, exports, __webpack_require__) {
  8871. var mapCacheClear = __webpack_require__(/*! ./_mapCacheClear */ "../../node_modules/lodash/_mapCacheClear.js"),
  8872. mapCacheDelete = __webpack_require__(/*! ./_mapCacheDelete */ "../../node_modules/lodash/_mapCacheDelete.js"),
  8873. mapCacheGet = __webpack_require__(/*! ./_mapCacheGet */ "../../node_modules/lodash/_mapCacheGet.js"),
  8874. mapCacheHas = __webpack_require__(/*! ./_mapCacheHas */ "../../node_modules/lodash/_mapCacheHas.js"),
  8875. mapCacheSet = __webpack_require__(/*! ./_mapCacheSet */ "../../node_modules/lodash/_mapCacheSet.js");
  8876. /**
  8877. * Creates a map cache object to store key-value pairs.
  8878. *
  8879. * @private
  8880. * @constructor
  8881. * @param {Array} [entries] The key-value pairs to cache.
  8882. */
  8883. function MapCache(entries) {
  8884. var index = -1,
  8885. length = entries == null ? 0 : entries.length;
  8886. this.clear();
  8887. while (++index < length) {
  8888. var entry = entries[index];
  8889. this.set(entry[0], entry[1]);
  8890. }
  8891. }
  8892. // Add methods to `MapCache`.
  8893. MapCache.prototype.clear = mapCacheClear;
  8894. MapCache.prototype['delete'] = mapCacheDelete;
  8895. MapCache.prototype.get = mapCacheGet;
  8896. MapCache.prototype.has = mapCacheHas;
  8897. MapCache.prototype.set = mapCacheSet;
  8898. module.exports = MapCache;
  8899. /***/ }),
  8900. /***/ "../../node_modules/lodash/_Promise.js":
  8901. /*!*****************************************************************!*\
  8902. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_Promise.js ***!
  8903. \*****************************************************************/
  8904. /*! no static exports found */
  8905. /***/ (function(module, exports, __webpack_require__) {
  8906. var getNative = __webpack_require__(/*! ./_getNative */ "../../node_modules/lodash/_getNative.js"),
  8907. root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  8908. /* Built-in method references that are verified to be native. */
  8909. var Promise = getNative(root, 'Promise');
  8910. module.exports = Promise;
  8911. /***/ }),
  8912. /***/ "../../node_modules/lodash/_Set.js":
  8913. /*!*************************************************************!*\
  8914. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_Set.js ***!
  8915. \*************************************************************/
  8916. /*! no static exports found */
  8917. /***/ (function(module, exports, __webpack_require__) {
  8918. var getNative = __webpack_require__(/*! ./_getNative */ "../../node_modules/lodash/_getNative.js"),
  8919. root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  8920. /* Built-in method references that are verified to be native. */
  8921. var Set = getNative(root, 'Set');
  8922. module.exports = Set;
  8923. /***/ }),
  8924. /***/ "../../node_modules/lodash/_SetCache.js":
  8925. /*!******************************************************************!*\
  8926. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_SetCache.js ***!
  8927. \******************************************************************/
  8928. /*! no static exports found */
  8929. /***/ (function(module, exports, __webpack_require__) {
  8930. var MapCache = __webpack_require__(/*! ./_MapCache */ "../../node_modules/lodash/_MapCache.js"),
  8931. setCacheAdd = __webpack_require__(/*! ./_setCacheAdd */ "../../node_modules/lodash/_setCacheAdd.js"),
  8932. setCacheHas = __webpack_require__(/*! ./_setCacheHas */ "../../node_modules/lodash/_setCacheHas.js");
  8933. /**
  8934. *
  8935. * Creates an array cache object to store unique values.
  8936. *
  8937. * @private
  8938. * @constructor
  8939. * @param {Array} [values] The values to cache.
  8940. */
  8941. function SetCache(values) {
  8942. var index = -1,
  8943. length = values == null ? 0 : values.length;
  8944. this.__data__ = new MapCache;
  8945. while (++index < length) {
  8946. this.add(values[index]);
  8947. }
  8948. }
  8949. // Add methods to `SetCache`.
  8950. SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
  8951. SetCache.prototype.has = setCacheHas;
  8952. module.exports = SetCache;
  8953. /***/ }),
  8954. /***/ "../../node_modules/lodash/_Stack.js":
  8955. /*!***************************************************************!*\
  8956. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_Stack.js ***!
  8957. \***************************************************************/
  8958. /*! no static exports found */
  8959. /***/ (function(module, exports, __webpack_require__) {
  8960. var ListCache = __webpack_require__(/*! ./_ListCache */ "../../node_modules/lodash/_ListCache.js"),
  8961. stackClear = __webpack_require__(/*! ./_stackClear */ "../../node_modules/lodash/_stackClear.js"),
  8962. stackDelete = __webpack_require__(/*! ./_stackDelete */ "../../node_modules/lodash/_stackDelete.js"),
  8963. stackGet = __webpack_require__(/*! ./_stackGet */ "../../node_modules/lodash/_stackGet.js"),
  8964. stackHas = __webpack_require__(/*! ./_stackHas */ "../../node_modules/lodash/_stackHas.js"),
  8965. stackSet = __webpack_require__(/*! ./_stackSet */ "../../node_modules/lodash/_stackSet.js");
  8966. /**
  8967. * Creates a stack cache object to store key-value pairs.
  8968. *
  8969. * @private
  8970. * @constructor
  8971. * @param {Array} [entries] The key-value pairs to cache.
  8972. */
  8973. function Stack(entries) {
  8974. var data = this.__data__ = new ListCache(entries);
  8975. this.size = data.size;
  8976. }
  8977. // Add methods to `Stack`.
  8978. Stack.prototype.clear = stackClear;
  8979. Stack.prototype['delete'] = stackDelete;
  8980. Stack.prototype.get = stackGet;
  8981. Stack.prototype.has = stackHas;
  8982. Stack.prototype.set = stackSet;
  8983. module.exports = Stack;
  8984. /***/ }),
  8985. /***/ "../../node_modules/lodash/_Symbol.js":
  8986. /*!****************************************************************!*\
  8987. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_Symbol.js ***!
  8988. \****************************************************************/
  8989. /*! no static exports found */
  8990. /***/ (function(module, exports, __webpack_require__) {
  8991. var root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  8992. /** Built-in value references. */
  8993. var Symbol = root.Symbol;
  8994. module.exports = Symbol;
  8995. /***/ }),
  8996. /***/ "../../node_modules/lodash/_Uint8Array.js":
  8997. /*!********************************************************************!*\
  8998. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_Uint8Array.js ***!
  8999. \********************************************************************/
  9000. /*! no static exports found */
  9001. /***/ (function(module, exports, __webpack_require__) {
  9002. var root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  9003. /** Built-in value references. */
  9004. var Uint8Array = root.Uint8Array;
  9005. module.exports = Uint8Array;
  9006. /***/ }),
  9007. /***/ "../../node_modules/lodash/_WeakMap.js":
  9008. /*!*****************************************************************!*\
  9009. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_WeakMap.js ***!
  9010. \*****************************************************************/
  9011. /*! no static exports found */
  9012. /***/ (function(module, exports, __webpack_require__) {
  9013. var getNative = __webpack_require__(/*! ./_getNative */ "../../node_modules/lodash/_getNative.js"),
  9014. root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  9015. /* Built-in method references that are verified to be native. */
  9016. var WeakMap = getNative(root, 'WeakMap');
  9017. module.exports = WeakMap;
  9018. /***/ }),
  9019. /***/ "../../node_modules/lodash/_apply.js":
  9020. /*!***************************************************************!*\
  9021. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_apply.js ***!
  9022. \***************************************************************/
  9023. /*! no static exports found */
  9024. /***/ (function(module, exports) {
  9025. /**
  9026. * A faster alternative to `Function#apply`, this function invokes `func`
  9027. * with the `this` binding of `thisArg` and the arguments of `args`.
  9028. *
  9029. * @private
  9030. * @param {Function} func The function to invoke.
  9031. * @param {*} thisArg The `this` binding of `func`.
  9032. * @param {Array} args The arguments to invoke `func` with.
  9033. * @returns {*} Returns the result of `func`.
  9034. */
  9035. function apply(func, thisArg, args) {
  9036. switch (args.length) {
  9037. case 0: return func.call(thisArg);
  9038. case 1: return func.call(thisArg, args[0]);
  9039. case 2: return func.call(thisArg, args[0], args[1]);
  9040. case 3: return func.call(thisArg, args[0], args[1], args[2]);
  9041. }
  9042. return func.apply(thisArg, args);
  9043. }
  9044. module.exports = apply;
  9045. /***/ }),
  9046. /***/ "../../node_modules/lodash/_arrayEach.js":
  9047. /*!*******************************************************************!*\
  9048. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_arrayEach.js ***!
  9049. \*******************************************************************/
  9050. /*! no static exports found */
  9051. /***/ (function(module, exports) {
  9052. /**
  9053. * A specialized version of `_.forEach` for arrays without support for
  9054. * iteratee shorthands.
  9055. *
  9056. * @private
  9057. * @param {Array} [array] The array to iterate over.
  9058. * @param {Function} iteratee The function invoked per iteration.
  9059. * @returns {Array} Returns `array`.
  9060. */
  9061. function arrayEach(array, iteratee) {
  9062. var index = -1,
  9063. length = array == null ? 0 : array.length;
  9064. while (++index < length) {
  9065. if (iteratee(array[index], index, array) === false) {
  9066. break;
  9067. }
  9068. }
  9069. return array;
  9070. }
  9071. module.exports = arrayEach;
  9072. /***/ }),
  9073. /***/ "../../node_modules/lodash/_arrayFilter.js":
  9074. /*!*********************************************************************!*\
  9075. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_arrayFilter.js ***!
  9076. \*********************************************************************/
  9077. /*! no static exports found */
  9078. /***/ (function(module, exports) {
  9079. /**
  9080. * A specialized version of `_.filter` for arrays without support for
  9081. * iteratee shorthands.
  9082. *
  9083. * @private
  9084. * @param {Array} [array] The array to iterate over.
  9085. * @param {Function} predicate The function invoked per iteration.
  9086. * @returns {Array} Returns the new filtered array.
  9087. */
  9088. function arrayFilter(array, predicate) {
  9089. var index = -1,
  9090. length = array == null ? 0 : array.length,
  9091. resIndex = 0,
  9092. result = [];
  9093. while (++index < length) {
  9094. var value = array[index];
  9095. if (predicate(value, index, array)) {
  9096. result[resIndex++] = value;
  9097. }
  9098. }
  9099. return result;
  9100. }
  9101. module.exports = arrayFilter;
  9102. /***/ }),
  9103. /***/ "../../node_modules/lodash/_arrayIncludes.js":
  9104. /*!***********************************************************************!*\
  9105. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_arrayIncludes.js ***!
  9106. \***********************************************************************/
  9107. /*! no static exports found */
  9108. /***/ (function(module, exports, __webpack_require__) {
  9109. var baseIndexOf = __webpack_require__(/*! ./_baseIndexOf */ "../../node_modules/lodash/_baseIndexOf.js");
  9110. /**
  9111. * A specialized version of `_.includes` for arrays without support for
  9112. * specifying an index to search from.
  9113. *
  9114. * @private
  9115. * @param {Array} [array] The array to inspect.
  9116. * @param {*} target The value to search for.
  9117. * @returns {boolean} Returns `true` if `target` is found, else `false`.
  9118. */
  9119. function arrayIncludes(array, value) {
  9120. var length = array == null ? 0 : array.length;
  9121. return !!length && baseIndexOf(array, value, 0) > -1;
  9122. }
  9123. module.exports = arrayIncludes;
  9124. /***/ }),
  9125. /***/ "../../node_modules/lodash/_arrayIncludesWith.js":
  9126. /*!***************************************************************************!*\
  9127. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_arrayIncludesWith.js ***!
  9128. \***************************************************************************/
  9129. /*! no static exports found */
  9130. /***/ (function(module, exports) {
  9131. /**
  9132. * This function is like `arrayIncludes` except that it accepts a comparator.
  9133. *
  9134. * @private
  9135. * @param {Array} [array] The array to inspect.
  9136. * @param {*} target The value to search for.
  9137. * @param {Function} comparator The comparator invoked per element.
  9138. * @returns {boolean} Returns `true` if `target` is found, else `false`.
  9139. */
  9140. function arrayIncludesWith(array, value, comparator) {
  9141. var index = -1,
  9142. length = array == null ? 0 : array.length;
  9143. while (++index < length) {
  9144. if (comparator(value, array[index])) {
  9145. return true;
  9146. }
  9147. }
  9148. return false;
  9149. }
  9150. module.exports = arrayIncludesWith;
  9151. /***/ }),
  9152. /***/ "../../node_modules/lodash/_arrayLikeKeys.js":
  9153. /*!***********************************************************************!*\
  9154. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_arrayLikeKeys.js ***!
  9155. \***********************************************************************/
  9156. /*! no static exports found */
  9157. /***/ (function(module, exports, __webpack_require__) {
  9158. var baseTimes = __webpack_require__(/*! ./_baseTimes */ "../../node_modules/lodash/_baseTimes.js"),
  9159. isArguments = __webpack_require__(/*! ./isArguments */ "../../node_modules/lodash/isArguments.js"),
  9160. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  9161. isBuffer = __webpack_require__(/*! ./isBuffer */ "../../node_modules/lodash/isBuffer.js"),
  9162. isIndex = __webpack_require__(/*! ./_isIndex */ "../../node_modules/lodash/_isIndex.js"),
  9163. isTypedArray = __webpack_require__(/*! ./isTypedArray */ "../../node_modules/lodash/isTypedArray.js");
  9164. /** Used for built-in method references. */
  9165. var objectProto = Object.prototype;
  9166. /** Used to check objects for own properties. */
  9167. var hasOwnProperty = objectProto.hasOwnProperty;
  9168. /**
  9169. * Creates an array of the enumerable property names of the array-like `value`.
  9170. *
  9171. * @private
  9172. * @param {*} value The value to query.
  9173. * @param {boolean} inherited Specify returning inherited property names.
  9174. * @returns {Array} Returns the array of property names.
  9175. */
  9176. function arrayLikeKeys(value, inherited) {
  9177. var isArr = isArray(value),
  9178. isArg = !isArr && isArguments(value),
  9179. isBuff = !isArr && !isArg && isBuffer(value),
  9180. isType = !isArr && !isArg && !isBuff && isTypedArray(value),
  9181. skipIndexes = isArr || isArg || isBuff || isType,
  9182. result = skipIndexes ? baseTimes(value.length, String) : [],
  9183. length = result.length;
  9184. for (var key in value) {
  9185. if ((inherited || hasOwnProperty.call(value, key)) &&
  9186. !(skipIndexes && (
  9187. // Safari 9 has enumerable `arguments.length` in strict mode.
  9188. key == 'length' ||
  9189. // Node.js 0.10 has enumerable non-index properties on buffers.
  9190. (isBuff && (key == 'offset' || key == 'parent')) ||
  9191. // PhantomJS 2 has enumerable non-index properties on typed arrays.
  9192. (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||
  9193. // Skip index properties.
  9194. isIndex(key, length)
  9195. ))) {
  9196. result.push(key);
  9197. }
  9198. }
  9199. return result;
  9200. }
  9201. module.exports = arrayLikeKeys;
  9202. /***/ }),
  9203. /***/ "../../node_modules/lodash/_arrayMap.js":
  9204. /*!******************************************************************!*\
  9205. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_arrayMap.js ***!
  9206. \******************************************************************/
  9207. /*! no static exports found */
  9208. /***/ (function(module, exports) {
  9209. /**
  9210. * A specialized version of `_.map` for arrays without support for iteratee
  9211. * shorthands.
  9212. *
  9213. * @private
  9214. * @param {Array} [array] The array to iterate over.
  9215. * @param {Function} iteratee The function invoked per iteration.
  9216. * @returns {Array} Returns the new mapped array.
  9217. */
  9218. function arrayMap(array, iteratee) {
  9219. var index = -1,
  9220. length = array == null ? 0 : array.length,
  9221. result = Array(length);
  9222. while (++index < length) {
  9223. result[index] = iteratee(array[index], index, array);
  9224. }
  9225. return result;
  9226. }
  9227. module.exports = arrayMap;
  9228. /***/ }),
  9229. /***/ "../../node_modules/lodash/_arrayPush.js":
  9230. /*!*******************************************************************!*\
  9231. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_arrayPush.js ***!
  9232. \*******************************************************************/
  9233. /*! no static exports found */
  9234. /***/ (function(module, exports) {
  9235. /**
  9236. * Appends the elements of `values` to `array`.
  9237. *
  9238. * @private
  9239. * @param {Array} array The array to modify.
  9240. * @param {Array} values The values to append.
  9241. * @returns {Array} Returns `array`.
  9242. */
  9243. function arrayPush(array, values) {
  9244. var index = -1,
  9245. length = values.length,
  9246. offset = array.length;
  9247. while (++index < length) {
  9248. array[offset + index] = values[index];
  9249. }
  9250. return array;
  9251. }
  9252. module.exports = arrayPush;
  9253. /***/ }),
  9254. /***/ "../../node_modules/lodash/_arrayReduce.js":
  9255. /*!*********************************************************************!*\
  9256. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_arrayReduce.js ***!
  9257. \*********************************************************************/
  9258. /*! no static exports found */
  9259. /***/ (function(module, exports) {
  9260. /**
  9261. * A specialized version of `_.reduce` for arrays without support for
  9262. * iteratee shorthands.
  9263. *
  9264. * @private
  9265. * @param {Array} [array] The array to iterate over.
  9266. * @param {Function} iteratee The function invoked per iteration.
  9267. * @param {*} [accumulator] The initial value.
  9268. * @param {boolean} [initAccum] Specify using the first element of `array` as
  9269. * the initial value.
  9270. * @returns {*} Returns the accumulated value.
  9271. */
  9272. function arrayReduce(array, iteratee, accumulator, initAccum) {
  9273. var index = -1,
  9274. length = array == null ? 0 : array.length;
  9275. if (initAccum && length) {
  9276. accumulator = array[++index];
  9277. }
  9278. while (++index < length) {
  9279. accumulator = iteratee(accumulator, array[index], index, array);
  9280. }
  9281. return accumulator;
  9282. }
  9283. module.exports = arrayReduce;
  9284. /***/ }),
  9285. /***/ "../../node_modules/lodash/_arraySome.js":
  9286. /*!*******************************************************************!*\
  9287. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_arraySome.js ***!
  9288. \*******************************************************************/
  9289. /*! no static exports found */
  9290. /***/ (function(module, exports) {
  9291. /**
  9292. * A specialized version of `_.some` for arrays without support for iteratee
  9293. * shorthands.
  9294. *
  9295. * @private
  9296. * @param {Array} [array] The array to iterate over.
  9297. * @param {Function} predicate The function invoked per iteration.
  9298. * @returns {boolean} Returns `true` if any element passes the predicate check,
  9299. * else `false`.
  9300. */
  9301. function arraySome(array, predicate) {
  9302. var index = -1,
  9303. length = array == null ? 0 : array.length;
  9304. while (++index < length) {
  9305. if (predicate(array[index], index, array)) {
  9306. return true;
  9307. }
  9308. }
  9309. return false;
  9310. }
  9311. module.exports = arraySome;
  9312. /***/ }),
  9313. /***/ "../../node_modules/lodash/_asciiSize.js":
  9314. /*!*******************************************************************!*\
  9315. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_asciiSize.js ***!
  9316. \*******************************************************************/
  9317. /*! no static exports found */
  9318. /***/ (function(module, exports, __webpack_require__) {
  9319. var baseProperty = __webpack_require__(/*! ./_baseProperty */ "../../node_modules/lodash/_baseProperty.js");
  9320. /**
  9321. * Gets the size of an ASCII `string`.
  9322. *
  9323. * @private
  9324. * @param {string} string The string inspect.
  9325. * @returns {number} Returns the string size.
  9326. */
  9327. var asciiSize = baseProperty('length');
  9328. module.exports = asciiSize;
  9329. /***/ }),
  9330. /***/ "../../node_modules/lodash/_assignMergeValue.js":
  9331. /*!**************************************************************************!*\
  9332. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_assignMergeValue.js ***!
  9333. \**************************************************************************/
  9334. /*! no static exports found */
  9335. /***/ (function(module, exports, __webpack_require__) {
  9336. var baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ "../../node_modules/lodash/_baseAssignValue.js"),
  9337. eq = __webpack_require__(/*! ./eq */ "../../node_modules/lodash/eq.js");
  9338. /**
  9339. * This function is like `assignValue` except that it doesn't assign
  9340. * `undefined` values.
  9341. *
  9342. * @private
  9343. * @param {Object} object The object to modify.
  9344. * @param {string} key The key of the property to assign.
  9345. * @param {*} value The value to assign.
  9346. */
  9347. function assignMergeValue(object, key, value) {
  9348. if ((value !== undefined && !eq(object[key], value)) ||
  9349. (value === undefined && !(key in object))) {
  9350. baseAssignValue(object, key, value);
  9351. }
  9352. }
  9353. module.exports = assignMergeValue;
  9354. /***/ }),
  9355. /***/ "../../node_modules/lodash/_assignValue.js":
  9356. /*!*********************************************************************!*\
  9357. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_assignValue.js ***!
  9358. \*********************************************************************/
  9359. /*! no static exports found */
  9360. /***/ (function(module, exports, __webpack_require__) {
  9361. var baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ "../../node_modules/lodash/_baseAssignValue.js"),
  9362. eq = __webpack_require__(/*! ./eq */ "../../node_modules/lodash/eq.js");
  9363. /** Used for built-in method references. */
  9364. var objectProto = Object.prototype;
  9365. /** Used to check objects for own properties. */
  9366. var hasOwnProperty = objectProto.hasOwnProperty;
  9367. /**
  9368. * Assigns `value` to `key` of `object` if the existing value is not equivalent
  9369. * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  9370. * for equality comparisons.
  9371. *
  9372. * @private
  9373. * @param {Object} object The object to modify.
  9374. * @param {string} key The key of the property to assign.
  9375. * @param {*} value The value to assign.
  9376. */
  9377. function assignValue(object, key, value) {
  9378. var objValue = object[key];
  9379. if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||
  9380. (value === undefined && !(key in object))) {
  9381. baseAssignValue(object, key, value);
  9382. }
  9383. }
  9384. module.exports = assignValue;
  9385. /***/ }),
  9386. /***/ "../../node_modules/lodash/_assocIndexOf.js":
  9387. /*!**********************************************************************!*\
  9388. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_assocIndexOf.js ***!
  9389. \**********************************************************************/
  9390. /*! no static exports found */
  9391. /***/ (function(module, exports, __webpack_require__) {
  9392. var eq = __webpack_require__(/*! ./eq */ "../../node_modules/lodash/eq.js");
  9393. /**
  9394. * Gets the index at which the `key` is found in `array` of key-value pairs.
  9395. *
  9396. * @private
  9397. * @param {Array} array The array to inspect.
  9398. * @param {*} key The key to search for.
  9399. * @returns {number} Returns the index of the matched value, else `-1`.
  9400. */
  9401. function assocIndexOf(array, key) {
  9402. var length = array.length;
  9403. while (length--) {
  9404. if (eq(array[length][0], key)) {
  9405. return length;
  9406. }
  9407. }
  9408. return -1;
  9409. }
  9410. module.exports = assocIndexOf;
  9411. /***/ }),
  9412. /***/ "../../node_modules/lodash/_baseAssign.js":
  9413. /*!********************************************************************!*\
  9414. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_baseAssign.js ***!
  9415. \********************************************************************/
  9416. /*! no static exports found */
  9417. /***/ (function(module, exports, __webpack_require__) {
  9418. var copyObject = __webpack_require__(/*! ./_copyObject */ "../../node_modules/lodash/_copyObject.js"),
  9419. keys = __webpack_require__(/*! ./keys */ "../../node_modules/lodash/keys.js");
  9420. /**
  9421. * The base implementation of `_.assign` without support for multiple sources
  9422. * or `customizer` functions.
  9423. *
  9424. * @private
  9425. * @param {Object} object The destination object.
  9426. * @param {Object} source The source object.
  9427. * @returns {Object} Returns `object`.
  9428. */
  9429. function baseAssign(object, source) {
  9430. return object && copyObject(source, keys(source), object);
  9431. }
  9432. module.exports = baseAssign;
  9433. /***/ }),
  9434. /***/ "../../node_modules/lodash/_baseAssignIn.js":
  9435. /*!**********************************************************************!*\
  9436. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_baseAssignIn.js ***!
  9437. \**********************************************************************/
  9438. /*! no static exports found */
  9439. /***/ (function(module, exports, __webpack_require__) {
  9440. var copyObject = __webpack_require__(/*! ./_copyObject */ "../../node_modules/lodash/_copyObject.js"),
  9441. keysIn = __webpack_require__(/*! ./keysIn */ "../../node_modules/lodash/keysIn.js");
  9442. /**
  9443. * The base implementation of `_.assignIn` without support for multiple sources
  9444. * or `customizer` functions.
  9445. *
  9446. * @private
  9447. * @param {Object} object The destination object.
  9448. * @param {Object} source The source object.
  9449. * @returns {Object} Returns `object`.
  9450. */
  9451. function baseAssignIn(object, source) {
  9452. return object && copyObject(source, keysIn(source), object);
  9453. }
  9454. module.exports = baseAssignIn;
  9455. /***/ }),
  9456. /***/ "../../node_modules/lodash/_baseAssignValue.js":
  9457. /*!*************************************************************************!*\
  9458. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_baseAssignValue.js ***!
  9459. \*************************************************************************/
  9460. /*! no static exports found */
  9461. /***/ (function(module, exports, __webpack_require__) {
  9462. var defineProperty = __webpack_require__(/*! ./_defineProperty */ "../../node_modules/lodash/_defineProperty.js");
  9463. /**
  9464. * The base implementation of `assignValue` and `assignMergeValue` without
  9465. * value checks.
  9466. *
  9467. * @private
  9468. * @param {Object} object The object to modify.
  9469. * @param {string} key The key of the property to assign.
  9470. * @param {*} value The value to assign.
  9471. */
  9472. function baseAssignValue(object, key, value) {
  9473. if (key == '__proto__' && defineProperty) {
  9474. defineProperty(object, key, {
  9475. 'configurable': true,
  9476. 'enumerable': true,
  9477. 'value': value,
  9478. 'writable': true
  9479. });
  9480. } else {
  9481. object[key] = value;
  9482. }
  9483. }
  9484. module.exports = baseAssignValue;
  9485. /***/ }),
  9486. /***/ "../../node_modules/lodash/_baseClone.js":
  9487. /*!*******************************************************************!*\
  9488. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_baseClone.js ***!
  9489. \*******************************************************************/
  9490. /*! no static exports found */
  9491. /***/ (function(module, exports, __webpack_require__) {
  9492. var Stack = __webpack_require__(/*! ./_Stack */ "../../node_modules/lodash/_Stack.js"),
  9493. arrayEach = __webpack_require__(/*! ./_arrayEach */ "../../node_modules/lodash/_arrayEach.js"),
  9494. assignValue = __webpack_require__(/*! ./_assignValue */ "../../node_modules/lodash/_assignValue.js"),
  9495. baseAssign = __webpack_require__(/*! ./_baseAssign */ "../../node_modules/lodash/_baseAssign.js"),
  9496. baseAssignIn = __webpack_require__(/*! ./_baseAssignIn */ "../../node_modules/lodash/_baseAssignIn.js"),
  9497. cloneBuffer = __webpack_require__(/*! ./_cloneBuffer */ "../../node_modules/lodash/_cloneBuffer.js"),
  9498. copyArray = __webpack_require__(/*! ./_copyArray */ "../../node_modules/lodash/_copyArray.js"),
  9499. copySymbols = __webpack_require__(/*! ./_copySymbols */ "../../node_modules/lodash/_copySymbols.js"),
  9500. copySymbolsIn = __webpack_require__(/*! ./_copySymbolsIn */ "../../node_modules/lodash/_copySymbolsIn.js"),
  9501. getAllKeys = __webpack_require__(/*! ./_getAllKeys */ "../../node_modules/lodash/_getAllKeys.js"),
  9502. getAllKeysIn = __webpack_require__(/*! ./_getAllKeysIn */ "../../node_modules/lodash/_getAllKeysIn.js"),
  9503. getTag = __webpack_require__(/*! ./_getTag */ "../../node_modules/lodash/_getTag.js"),
  9504. initCloneArray = __webpack_require__(/*! ./_initCloneArray */ "../../node_modules/lodash/_initCloneArray.js"),
  9505. initCloneByTag = __webpack_require__(/*! ./_initCloneByTag */ "../../node_modules/lodash/_initCloneByTag.js"),
  9506. initCloneObject = __webpack_require__(/*! ./_initCloneObject */ "../../node_modules/lodash/_initCloneObject.js"),
  9507. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  9508. isBuffer = __webpack_require__(/*! ./isBuffer */ "../../node_modules/lodash/isBuffer.js"),
  9509. isMap = __webpack_require__(/*! ./isMap */ "../../node_modules/lodash/isMap.js"),
  9510. isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js"),
  9511. isSet = __webpack_require__(/*! ./isSet */ "../../node_modules/lodash/isSet.js"),
  9512. keys = __webpack_require__(/*! ./keys */ "../../node_modules/lodash/keys.js");
  9513. /** Used to compose bitmasks for cloning. */
  9514. var CLONE_DEEP_FLAG = 1,
  9515. CLONE_FLAT_FLAG = 2,
  9516. CLONE_SYMBOLS_FLAG = 4;
  9517. /** `Object#toString` result references. */
  9518. var argsTag = '[object Arguments]',
  9519. arrayTag = '[object Array]',
  9520. boolTag = '[object Boolean]',
  9521. dateTag = '[object Date]',
  9522. errorTag = '[object Error]',
  9523. funcTag = '[object Function]',
  9524. genTag = '[object GeneratorFunction]',
  9525. mapTag = '[object Map]',
  9526. numberTag = '[object Number]',
  9527. objectTag = '[object Object]',
  9528. regexpTag = '[object RegExp]',
  9529. setTag = '[object Set]',
  9530. stringTag = '[object String]',
  9531. symbolTag = '[object Symbol]',
  9532. weakMapTag = '[object WeakMap]';
  9533. var arrayBufferTag = '[object ArrayBuffer]',
  9534. dataViewTag = '[object DataView]',
  9535. float32Tag = '[object Float32Array]',
  9536. float64Tag = '[object Float64Array]',
  9537. int8Tag = '[object Int8Array]',
  9538. int16Tag = '[object Int16Array]',
  9539. int32Tag = '[object Int32Array]',
  9540. uint8Tag = '[object Uint8Array]',
  9541. uint8ClampedTag = '[object Uint8ClampedArray]',
  9542. uint16Tag = '[object Uint16Array]',
  9543. uint32Tag = '[object Uint32Array]';
  9544. /** Used to identify `toStringTag` values supported by `_.clone`. */
  9545. var cloneableTags = {};
  9546. cloneableTags[argsTag] = cloneableTags[arrayTag] =
  9547. cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =
  9548. cloneableTags[boolTag] = cloneableTags[dateTag] =
  9549. cloneableTags[float32Tag] = cloneableTags[float64Tag] =
  9550. cloneableTags[int8Tag] = cloneableTags[int16Tag] =
  9551. cloneableTags[int32Tag] = cloneableTags[mapTag] =
  9552. cloneableTags[numberTag] = cloneableTags[objectTag] =
  9553. cloneableTags[regexpTag] = cloneableTags[setTag] =
  9554. cloneableTags[stringTag] = cloneableTags[symbolTag] =
  9555. cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =
  9556. cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
  9557. cloneableTags[errorTag] = cloneableTags[funcTag] =
  9558. cloneableTags[weakMapTag] = false;
  9559. /**
  9560. * The base implementation of `_.clone` and `_.cloneDeep` which tracks
  9561. * traversed objects.
  9562. *
  9563. * @private
  9564. * @param {*} value The value to clone.
  9565. * @param {boolean} bitmask The bitmask flags.
  9566. * 1 - Deep clone
  9567. * 2 - Flatten inherited properties
  9568. * 4 - Clone symbols
  9569. * @param {Function} [customizer] The function to customize cloning.
  9570. * @param {string} [key] The key of `value`.
  9571. * @param {Object} [object] The parent object of `value`.
  9572. * @param {Object} [stack] Tracks traversed objects and their clone counterparts.
  9573. * @returns {*} Returns the cloned value.
  9574. */
  9575. function baseClone(value, bitmask, customizer, key, object, stack) {
  9576. var result,
  9577. isDeep = bitmask & CLONE_DEEP_FLAG,
  9578. isFlat = bitmask & CLONE_FLAT_FLAG,
  9579. isFull = bitmask & CLONE_SYMBOLS_FLAG;
  9580. if (customizer) {
  9581. result = object ? customizer(value, key, object, stack) : customizer(value);
  9582. }
  9583. if (result !== undefined) {
  9584. return result;
  9585. }
  9586. if (!isObject(value)) {
  9587. return value;
  9588. }
  9589. var isArr = isArray(value);
  9590. if (isArr) {
  9591. result = initCloneArray(value);
  9592. if (!isDeep) {
  9593. return copyArray(value, result);
  9594. }
  9595. } else {
  9596. var tag = getTag(value),
  9597. isFunc = tag == funcTag || tag == genTag;
  9598. if (isBuffer(value)) {
  9599. return cloneBuffer(value, isDeep);
  9600. }
  9601. if (tag == objectTag || tag == argsTag || (isFunc && !object)) {
  9602. result = (isFlat || isFunc) ? {} : initCloneObject(value);
  9603. if (!isDeep) {
  9604. return isFlat
  9605. ? copySymbolsIn(value, baseAssignIn(result, value))
  9606. : copySymbols(value, baseAssign(result, value));
  9607. }
  9608. } else {
  9609. if (!cloneableTags[tag]) {
  9610. return object ? value : {};
  9611. }
  9612. result = initCloneByTag(value, tag, isDeep);
  9613. }
  9614. }
  9615. // Check for circular references and return its corresponding clone.
  9616. stack || (stack = new Stack);
  9617. var stacked = stack.get(value);
  9618. if (stacked) {
  9619. return stacked;
  9620. }
  9621. stack.set(value, result);
  9622. if (isSet(value)) {
  9623. value.forEach(function(subValue) {
  9624. result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
  9625. });
  9626. } else if (isMap(value)) {
  9627. value.forEach(function(subValue, key) {
  9628. result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));
  9629. });
  9630. }
  9631. var keysFunc = isFull
  9632. ? (isFlat ? getAllKeysIn : getAllKeys)
  9633. : (isFlat ? keysIn : keys);
  9634. var props = isArr ? undefined : keysFunc(value);
  9635. arrayEach(props || value, function(subValue, key) {
  9636. if (props) {
  9637. key = subValue;
  9638. subValue = value[key];
  9639. }
  9640. // Recursively populate clone (susceptible to call stack limits).
  9641. assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));
  9642. });
  9643. return result;
  9644. }
  9645. module.exports = baseClone;
  9646. /***/ }),
  9647. /***/ "../../node_modules/lodash/_baseCreate.js":
  9648. /*!********************************************************************!*\
  9649. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_baseCreate.js ***!
  9650. \********************************************************************/
  9651. /*! no static exports found */
  9652. /***/ (function(module, exports, __webpack_require__) {
  9653. var isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js");
  9654. /** Built-in value references. */
  9655. var objectCreate = Object.create;
  9656. /**
  9657. * The base implementation of `_.create` without support for assigning
  9658. * properties to the created object.
  9659. *
  9660. * @private
  9661. * @param {Object} proto The object to inherit from.
  9662. * @returns {Object} Returns the new object.
  9663. */
  9664. var baseCreate = (function() {
  9665. function object() {}
  9666. return function(proto) {
  9667. if (!isObject(proto)) {
  9668. return {};
  9669. }
  9670. if (objectCreate) {
  9671. return objectCreate(proto);
  9672. }
  9673. object.prototype = proto;
  9674. var result = new object;
  9675. object.prototype = undefined;
  9676. return result;
  9677. };
  9678. }());
  9679. module.exports = baseCreate;
  9680. /***/ }),
  9681. /***/ "../../node_modules/lodash/_baseEach.js":
  9682. /*!******************************************************************!*\
  9683. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_baseEach.js ***!
  9684. \******************************************************************/
  9685. /*! no static exports found */
  9686. /***/ (function(module, exports, __webpack_require__) {
  9687. var baseForOwn = __webpack_require__(/*! ./_baseForOwn */ "../../node_modules/lodash/_baseForOwn.js"),
  9688. createBaseEach = __webpack_require__(/*! ./_createBaseEach */ "../../node_modules/lodash/_createBaseEach.js");
  9689. /**
  9690. * The base implementation of `_.forEach` without support for iteratee shorthands.
  9691. *
  9692. * @private
  9693. * @param {Array|Object} collection The collection to iterate over.
  9694. * @param {Function} iteratee The function invoked per iteration.
  9695. * @returns {Array|Object} Returns `collection`.
  9696. */
  9697. var baseEach = createBaseEach(baseForOwn);
  9698. module.exports = baseEach;
  9699. /***/ }),
  9700. /***/ "../../node_modules/lodash/_baseExtremum.js":
  9701. /*!**********************************************************************!*\
  9702. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_baseExtremum.js ***!
  9703. \**********************************************************************/
  9704. /*! no static exports found */
  9705. /***/ (function(module, exports, __webpack_require__) {
  9706. var isSymbol = __webpack_require__(/*! ./isSymbol */ "../../node_modules/lodash/isSymbol.js");
  9707. /**
  9708. * The base implementation of methods like `_.max` and `_.min` which accepts a
  9709. * `comparator` to determine the extremum value.
  9710. *
  9711. * @private
  9712. * @param {Array} array The array to iterate over.
  9713. * @param {Function} iteratee The iteratee invoked per iteration.
  9714. * @param {Function} comparator The comparator used to compare values.
  9715. * @returns {*} Returns the extremum value.
  9716. */
  9717. function baseExtremum(array, iteratee, comparator) {
  9718. var index = -1,
  9719. length = array.length;
  9720. while (++index < length) {
  9721. var value = array[index],
  9722. current = iteratee(value);
  9723. if (current != null && (computed === undefined
  9724. ? (current === current && !isSymbol(current))
  9725. : comparator(current, computed)
  9726. )) {
  9727. var computed = current,
  9728. result = value;
  9729. }
  9730. }
  9731. return result;
  9732. }
  9733. module.exports = baseExtremum;
  9734. /***/ }),
  9735. /***/ "../../node_modules/lodash/_baseFilter.js":
  9736. /*!********************************************************************!*\
  9737. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_baseFilter.js ***!
  9738. \********************************************************************/
  9739. /*! no static exports found */
  9740. /***/ (function(module, exports, __webpack_require__) {
  9741. var baseEach = __webpack_require__(/*! ./_baseEach */ "../../node_modules/lodash/_baseEach.js");
  9742. /**
  9743. * The base implementation of `_.filter` without support for iteratee shorthands.
  9744. *
  9745. * @private
  9746. * @param {Array|Object} collection The collection to iterate over.
  9747. * @param {Function} predicate The function invoked per iteration.
  9748. * @returns {Array} Returns the new filtered array.
  9749. */
  9750. function baseFilter(collection, predicate) {
  9751. var result = [];
  9752. baseEach(collection, function(value, index, collection) {
  9753. if (predicate(value, index, collection)) {
  9754. result.push(value);
  9755. }
  9756. });
  9757. return result;
  9758. }
  9759. module.exports = baseFilter;
  9760. /***/ }),
  9761. /***/ "../../node_modules/lodash/_baseFindIndex.js":
  9762. /*!***********************************************************************!*\
  9763. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_baseFindIndex.js ***!
  9764. \***********************************************************************/
  9765. /*! no static exports found */
  9766. /***/ (function(module, exports) {
  9767. /**
  9768. * The base implementation of `_.findIndex` and `_.findLastIndex` without
  9769. * support for iteratee shorthands.
  9770. *
  9771. * @private
  9772. * @param {Array} array The array to inspect.
  9773. * @param {Function} predicate The function invoked per iteration.
  9774. * @param {number} fromIndex The index to search from.
  9775. * @param {boolean} [fromRight] Specify iterating from right to left.
  9776. * @returns {number} Returns the index of the matched value, else `-1`.
  9777. */
  9778. function baseFindIndex(array, predicate, fromIndex, fromRight) {
  9779. var length = array.length,
  9780. index = fromIndex + (fromRight ? 1 : -1);
  9781. while ((fromRight ? index-- : ++index < length)) {
  9782. if (predicate(array[index], index, array)) {
  9783. return index;
  9784. }
  9785. }
  9786. return -1;
  9787. }
  9788. module.exports = baseFindIndex;
  9789. /***/ }),
  9790. /***/ "../../node_modules/lodash/_baseFlatten.js":
  9791. /*!*********************************************************************!*\
  9792. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_baseFlatten.js ***!
  9793. \*********************************************************************/
  9794. /*! no static exports found */
  9795. /***/ (function(module, exports, __webpack_require__) {
  9796. var arrayPush = __webpack_require__(/*! ./_arrayPush */ "../../node_modules/lodash/_arrayPush.js"),
  9797. isFlattenable = __webpack_require__(/*! ./_isFlattenable */ "../../node_modules/lodash/_isFlattenable.js");
  9798. /**
  9799. * The base implementation of `_.flatten` with support for restricting flattening.
  9800. *
  9801. * @private
  9802. * @param {Array} array The array to flatten.
  9803. * @param {number} depth The maximum recursion depth.
  9804. * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.
  9805. * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.
  9806. * @param {Array} [result=[]] The initial result value.
  9807. * @returns {Array} Returns the new flattened array.
  9808. */
  9809. function baseFlatten(array, depth, predicate, isStrict, result) {
  9810. var index = -1,
  9811. length = array.length;
  9812. predicate || (predicate = isFlattenable);
  9813. result || (result = []);
  9814. while (++index < length) {
  9815. var value = array[index];
  9816. if (depth > 0 && predicate(value)) {
  9817. if (depth > 1) {
  9818. // Recursively flatten arrays (susceptible to call stack limits).
  9819. baseFlatten(value, depth - 1, predicate, isStrict, result);
  9820. } else {
  9821. arrayPush(result, value);
  9822. }
  9823. } else if (!isStrict) {
  9824. result[result.length] = value;
  9825. }
  9826. }
  9827. return result;
  9828. }
  9829. module.exports = baseFlatten;
  9830. /***/ }),
  9831. /***/ "../../node_modules/lodash/_baseFor.js":
  9832. /*!*****************************************************************!*\
  9833. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_baseFor.js ***!
  9834. \*****************************************************************/
  9835. /*! no static exports found */
  9836. /***/ (function(module, exports, __webpack_require__) {
  9837. var createBaseFor = __webpack_require__(/*! ./_createBaseFor */ "../../node_modules/lodash/_createBaseFor.js");
  9838. /**
  9839. * The base implementation of `baseForOwn` which iterates over `object`
  9840. * properties returned by `keysFunc` and invokes `iteratee` for each property.
  9841. * Iteratee functions may exit iteration early by explicitly returning `false`.
  9842. *
  9843. * @private
  9844. * @param {Object} object The object to iterate over.
  9845. * @param {Function} iteratee The function invoked per iteration.
  9846. * @param {Function} keysFunc The function to get the keys of `object`.
  9847. * @returns {Object} Returns `object`.
  9848. */
  9849. var baseFor = createBaseFor();
  9850. module.exports = baseFor;
  9851. /***/ }),
  9852. /***/ "../../node_modules/lodash/_baseForOwn.js":
  9853. /*!********************************************************************!*\
  9854. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_baseForOwn.js ***!
  9855. \********************************************************************/
  9856. /*! no static exports found */
  9857. /***/ (function(module, exports, __webpack_require__) {
  9858. var baseFor = __webpack_require__(/*! ./_baseFor */ "../../node_modules/lodash/_baseFor.js"),
  9859. keys = __webpack_require__(/*! ./keys */ "../../node_modules/lodash/keys.js");
  9860. /**
  9861. * The base implementation of `_.forOwn` without support for iteratee shorthands.
  9862. *
  9863. * @private
  9864. * @param {Object} object The object to iterate over.
  9865. * @param {Function} iteratee The function invoked per iteration.
  9866. * @returns {Object} Returns `object`.
  9867. */
  9868. function baseForOwn(object, iteratee) {
  9869. return object && baseFor(object, iteratee, keys);
  9870. }
  9871. module.exports = baseForOwn;
  9872. /***/ }),
  9873. /***/ "../../node_modules/lodash/_baseGet.js":
  9874. /*!*****************************************************************!*\
  9875. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_baseGet.js ***!
  9876. \*****************************************************************/
  9877. /*! no static exports found */
  9878. /***/ (function(module, exports, __webpack_require__) {
  9879. var castPath = __webpack_require__(/*! ./_castPath */ "../../node_modules/lodash/_castPath.js"),
  9880. toKey = __webpack_require__(/*! ./_toKey */ "../../node_modules/lodash/_toKey.js");
  9881. /**
  9882. * The base implementation of `_.get` without support for default values.
  9883. *
  9884. * @private
  9885. * @param {Object} object The object to query.
  9886. * @param {Array|string} path The path of the property to get.
  9887. * @returns {*} Returns the resolved value.
  9888. */
  9889. function baseGet(object, path) {
  9890. path = castPath(path, object);
  9891. var index = 0,
  9892. length = path.length;
  9893. while (object != null && index < length) {
  9894. object = object[toKey(path[index++])];
  9895. }
  9896. return (index && index == length) ? object : undefined;
  9897. }
  9898. module.exports = baseGet;
  9899. /***/ }),
  9900. /***/ "../../node_modules/lodash/_baseGetAllKeys.js":
  9901. /*!************************************************************************!*\
  9902. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_baseGetAllKeys.js ***!
  9903. \************************************************************************/
  9904. /*! no static exports found */
  9905. /***/ (function(module, exports, __webpack_require__) {
  9906. var arrayPush = __webpack_require__(/*! ./_arrayPush */ "../../node_modules/lodash/_arrayPush.js"),
  9907. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js");
  9908. /**
  9909. * The base implementation of `getAllKeys` and `getAllKeysIn` which uses
  9910. * `keysFunc` and `symbolsFunc` to get the enumerable property names and
  9911. * symbols of `object`.
  9912. *
  9913. * @private
  9914. * @param {Object} object The object to query.
  9915. * @param {Function} keysFunc The function to get the keys of `object`.
  9916. * @param {Function} symbolsFunc The function to get the symbols of `object`.
  9917. * @returns {Array} Returns the array of property names and symbols.
  9918. */
  9919. function baseGetAllKeys(object, keysFunc, symbolsFunc) {
  9920. var result = keysFunc(object);
  9921. return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
  9922. }
  9923. module.exports = baseGetAllKeys;
  9924. /***/ }),
  9925. /***/ "../../node_modules/lodash/_baseGetTag.js":
  9926. /*!********************************************************************!*\
  9927. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_baseGetTag.js ***!
  9928. \********************************************************************/
  9929. /*! no static exports found */
  9930. /***/ (function(module, exports, __webpack_require__) {
  9931. var Symbol = __webpack_require__(/*! ./_Symbol */ "../../node_modules/lodash/_Symbol.js"),
  9932. getRawTag = __webpack_require__(/*! ./_getRawTag */ "../../node_modules/lodash/_getRawTag.js"),
  9933. objectToString = __webpack_require__(/*! ./_objectToString */ "../../node_modules/lodash/_objectToString.js");
  9934. /** `Object#toString` result references. */
  9935. var nullTag = '[object Null]',
  9936. undefinedTag = '[object Undefined]';
  9937. /** Built-in value references. */
  9938. var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
  9939. /**
  9940. * The base implementation of `getTag` without fallbacks for buggy environments.
  9941. *
  9942. * @private
  9943. * @param {*} value The value to query.
  9944. * @returns {string} Returns the `toStringTag`.
  9945. */
  9946. function baseGetTag(value) {
  9947. if (value == null) {
  9948. return value === undefined ? undefinedTag : nullTag;
  9949. }
  9950. return (symToStringTag && symToStringTag in Object(value))
  9951. ? getRawTag(value)
  9952. : objectToString(value);
  9953. }
  9954. module.exports = baseGetTag;
  9955. /***/ }),
  9956. /***/ "../../node_modules/lodash/_baseGt.js":
  9957. /*!****************************************************************!*\
  9958. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_baseGt.js ***!
  9959. \****************************************************************/
  9960. /*! no static exports found */
  9961. /***/ (function(module, exports) {
  9962. /**
  9963. * The base implementation of `_.gt` which doesn't coerce arguments.
  9964. *
  9965. * @private
  9966. * @param {*} value The value to compare.
  9967. * @param {*} other The other value to compare.
  9968. * @returns {boolean} Returns `true` if `value` is greater than `other`,
  9969. * else `false`.
  9970. */
  9971. function baseGt(value, other) {
  9972. return value > other;
  9973. }
  9974. module.exports = baseGt;
  9975. /***/ }),
  9976. /***/ "../../node_modules/lodash/_baseHas.js":
  9977. /*!*****************************************************************!*\
  9978. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_baseHas.js ***!
  9979. \*****************************************************************/
  9980. /*! no static exports found */
  9981. /***/ (function(module, exports) {
  9982. /** Used for built-in method references. */
  9983. var objectProto = Object.prototype;
  9984. /** Used to check objects for own properties. */
  9985. var hasOwnProperty = objectProto.hasOwnProperty;
  9986. /**
  9987. * The base implementation of `_.has` without support for deep paths.
  9988. *
  9989. * @private
  9990. * @param {Object} [object] The object to query.
  9991. * @param {Array|string} key The key to check.
  9992. * @returns {boolean} Returns `true` if `key` exists, else `false`.
  9993. */
  9994. function baseHas(object, key) {
  9995. return object != null && hasOwnProperty.call(object, key);
  9996. }
  9997. module.exports = baseHas;
  9998. /***/ }),
  9999. /***/ "../../node_modules/lodash/_baseHasIn.js":
  10000. /*!*******************************************************************!*\
  10001. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_baseHasIn.js ***!
  10002. \*******************************************************************/
  10003. /*! no static exports found */
  10004. /***/ (function(module, exports) {
  10005. /**
  10006. * The base implementation of `_.hasIn` without support for deep paths.
  10007. *
  10008. * @private
  10009. * @param {Object} [object] The object to query.
  10010. * @param {Array|string} key The key to check.
  10011. * @returns {boolean} Returns `true` if `key` exists, else `false`.
  10012. */
  10013. function baseHasIn(object, key) {
  10014. return object != null && key in Object(object);
  10015. }
  10016. module.exports = baseHasIn;
  10017. /***/ }),
  10018. /***/ "../../node_modules/lodash/_baseIndexOf.js":
  10019. /*!*********************************************************************!*\
  10020. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_baseIndexOf.js ***!
  10021. \*********************************************************************/
  10022. /*! no static exports found */
  10023. /***/ (function(module, exports, __webpack_require__) {
  10024. var baseFindIndex = __webpack_require__(/*! ./_baseFindIndex */ "../../node_modules/lodash/_baseFindIndex.js"),
  10025. baseIsNaN = __webpack_require__(/*! ./_baseIsNaN */ "../../node_modules/lodash/_baseIsNaN.js"),
  10026. strictIndexOf = __webpack_require__(/*! ./_strictIndexOf */ "../../node_modules/lodash/_strictIndexOf.js");
  10027. /**
  10028. * The base implementation of `_.indexOf` without `fromIndex` bounds checks.
  10029. *
  10030. * @private
  10031. * @param {Array} array The array to inspect.
  10032. * @param {*} value The value to search for.
  10033. * @param {number} fromIndex The index to search from.
  10034. * @returns {number} Returns the index of the matched value, else `-1`.
  10035. */
  10036. function baseIndexOf(array, value, fromIndex) {
  10037. return value === value
  10038. ? strictIndexOf(array, value, fromIndex)
  10039. : baseFindIndex(array, baseIsNaN, fromIndex);
  10040. }
  10041. module.exports = baseIndexOf;
  10042. /***/ }),
  10043. /***/ "../../node_modules/lodash/_baseIsArguments.js":
  10044. /*!*************************************************************************!*\
  10045. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_baseIsArguments.js ***!
  10046. \*************************************************************************/
  10047. /*! no static exports found */
  10048. /***/ (function(module, exports, __webpack_require__) {
  10049. var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../node_modules/lodash/_baseGetTag.js"),
  10050. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  10051. /** `Object#toString` result references. */
  10052. var argsTag = '[object Arguments]';
  10053. /**
  10054. * The base implementation of `_.isArguments`.
  10055. *
  10056. * @private
  10057. * @param {*} value The value to check.
  10058. * @returns {boolean} Returns `true` if `value` is an `arguments` object,
  10059. */
  10060. function baseIsArguments(value) {
  10061. return isObjectLike(value) && baseGetTag(value) == argsTag;
  10062. }
  10063. module.exports = baseIsArguments;
  10064. /***/ }),
  10065. /***/ "../../node_modules/lodash/_baseIsEqual.js":
  10066. /*!*********************************************************************!*\
  10067. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_baseIsEqual.js ***!
  10068. \*********************************************************************/
  10069. /*! no static exports found */
  10070. /***/ (function(module, exports, __webpack_require__) {
  10071. var baseIsEqualDeep = __webpack_require__(/*! ./_baseIsEqualDeep */ "../../node_modules/lodash/_baseIsEqualDeep.js"),
  10072. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  10073. /**
  10074. * The base implementation of `_.isEqual` which supports partial comparisons
  10075. * and tracks traversed objects.
  10076. *
  10077. * @private
  10078. * @param {*} value The value to compare.
  10079. * @param {*} other The other value to compare.
  10080. * @param {boolean} bitmask The bitmask flags.
  10081. * 1 - Unordered comparison
  10082. * 2 - Partial comparison
  10083. * @param {Function} [customizer] The function to customize comparisons.
  10084. * @param {Object} [stack] Tracks traversed `value` and `other` objects.
  10085. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  10086. */
  10087. function baseIsEqual(value, other, bitmask, customizer, stack) {
  10088. if (value === other) {
  10089. return true;
  10090. }
  10091. if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {
  10092. return value !== value && other !== other;
  10093. }
  10094. return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
  10095. }
  10096. module.exports = baseIsEqual;
  10097. /***/ }),
  10098. /***/ "../../node_modules/lodash/_baseIsEqualDeep.js":
  10099. /*!*************************************************************************!*\
  10100. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_baseIsEqualDeep.js ***!
  10101. \*************************************************************************/
  10102. /*! no static exports found */
  10103. /***/ (function(module, exports, __webpack_require__) {
  10104. var Stack = __webpack_require__(/*! ./_Stack */ "../../node_modules/lodash/_Stack.js"),
  10105. equalArrays = __webpack_require__(/*! ./_equalArrays */ "../../node_modules/lodash/_equalArrays.js"),
  10106. equalByTag = __webpack_require__(/*! ./_equalByTag */ "../../node_modules/lodash/_equalByTag.js"),
  10107. equalObjects = __webpack_require__(/*! ./_equalObjects */ "../../node_modules/lodash/_equalObjects.js"),
  10108. getTag = __webpack_require__(/*! ./_getTag */ "../../node_modules/lodash/_getTag.js"),
  10109. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  10110. isBuffer = __webpack_require__(/*! ./isBuffer */ "../../node_modules/lodash/isBuffer.js"),
  10111. isTypedArray = __webpack_require__(/*! ./isTypedArray */ "../../node_modules/lodash/isTypedArray.js");
  10112. /** Used to compose bitmasks for value comparisons. */
  10113. var COMPARE_PARTIAL_FLAG = 1;
  10114. /** `Object#toString` result references. */
  10115. var argsTag = '[object Arguments]',
  10116. arrayTag = '[object Array]',
  10117. objectTag = '[object Object]';
  10118. /** Used for built-in method references. */
  10119. var objectProto = Object.prototype;
  10120. /** Used to check objects for own properties. */
  10121. var hasOwnProperty = objectProto.hasOwnProperty;
  10122. /**
  10123. * A specialized version of `baseIsEqual` for arrays and objects which performs
  10124. * deep comparisons and tracks traversed objects enabling objects with circular
  10125. * references to be compared.
  10126. *
  10127. * @private
  10128. * @param {Object} object The object to compare.
  10129. * @param {Object} other The other object to compare.
  10130. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  10131. * @param {Function} customizer The function to customize comparisons.
  10132. * @param {Function} equalFunc The function to determine equivalents of values.
  10133. * @param {Object} [stack] Tracks traversed `object` and `other` objects.
  10134. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  10135. */
  10136. function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
  10137. var objIsArr = isArray(object),
  10138. othIsArr = isArray(other),
  10139. objTag = objIsArr ? arrayTag : getTag(object),
  10140. othTag = othIsArr ? arrayTag : getTag(other);
  10141. objTag = objTag == argsTag ? objectTag : objTag;
  10142. othTag = othTag == argsTag ? objectTag : othTag;
  10143. var objIsObj = objTag == objectTag,
  10144. othIsObj = othTag == objectTag,
  10145. isSameTag = objTag == othTag;
  10146. if (isSameTag && isBuffer(object)) {
  10147. if (!isBuffer(other)) {
  10148. return false;
  10149. }
  10150. objIsArr = true;
  10151. objIsObj = false;
  10152. }
  10153. if (isSameTag && !objIsObj) {
  10154. stack || (stack = new Stack);
  10155. return (objIsArr || isTypedArray(object))
  10156. ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)
  10157. : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
  10158. }
  10159. if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
  10160. var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),
  10161. othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');
  10162. if (objIsWrapped || othIsWrapped) {
  10163. var objUnwrapped = objIsWrapped ? object.value() : object,
  10164. othUnwrapped = othIsWrapped ? other.value() : other;
  10165. stack || (stack = new Stack);
  10166. return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
  10167. }
  10168. }
  10169. if (!isSameTag) {
  10170. return false;
  10171. }
  10172. stack || (stack = new Stack);
  10173. return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
  10174. }
  10175. module.exports = baseIsEqualDeep;
  10176. /***/ }),
  10177. /***/ "../../node_modules/lodash/_baseIsMap.js":
  10178. /*!*******************************************************************!*\
  10179. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_baseIsMap.js ***!
  10180. \*******************************************************************/
  10181. /*! no static exports found */
  10182. /***/ (function(module, exports, __webpack_require__) {
  10183. var getTag = __webpack_require__(/*! ./_getTag */ "../../node_modules/lodash/_getTag.js"),
  10184. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  10185. /** `Object#toString` result references. */
  10186. var mapTag = '[object Map]';
  10187. /**
  10188. * The base implementation of `_.isMap` without Node.js optimizations.
  10189. *
  10190. * @private
  10191. * @param {*} value The value to check.
  10192. * @returns {boolean} Returns `true` if `value` is a map, else `false`.
  10193. */
  10194. function baseIsMap(value) {
  10195. return isObjectLike(value) && getTag(value) == mapTag;
  10196. }
  10197. module.exports = baseIsMap;
  10198. /***/ }),
  10199. /***/ "../../node_modules/lodash/_baseIsMatch.js":
  10200. /*!*********************************************************************!*\
  10201. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_baseIsMatch.js ***!
  10202. \*********************************************************************/
  10203. /*! no static exports found */
  10204. /***/ (function(module, exports, __webpack_require__) {
  10205. var Stack = __webpack_require__(/*! ./_Stack */ "../../node_modules/lodash/_Stack.js"),
  10206. baseIsEqual = __webpack_require__(/*! ./_baseIsEqual */ "../../node_modules/lodash/_baseIsEqual.js");
  10207. /** Used to compose bitmasks for value comparisons. */
  10208. var COMPARE_PARTIAL_FLAG = 1,
  10209. COMPARE_UNORDERED_FLAG = 2;
  10210. /**
  10211. * The base implementation of `_.isMatch` without support for iteratee shorthands.
  10212. *
  10213. * @private
  10214. * @param {Object} object The object to inspect.
  10215. * @param {Object} source The object of property values to match.
  10216. * @param {Array} matchData The property names, values, and compare flags to match.
  10217. * @param {Function} [customizer] The function to customize comparisons.
  10218. * @returns {boolean} Returns `true` if `object` is a match, else `false`.
  10219. */
  10220. function baseIsMatch(object, source, matchData, customizer) {
  10221. var index = matchData.length,
  10222. length = index,
  10223. noCustomizer = !customizer;
  10224. if (object == null) {
  10225. return !length;
  10226. }
  10227. object = Object(object);
  10228. while (index--) {
  10229. var data = matchData[index];
  10230. if ((noCustomizer && data[2])
  10231. ? data[1] !== object[data[0]]
  10232. : !(data[0] in object)
  10233. ) {
  10234. return false;
  10235. }
  10236. }
  10237. while (++index < length) {
  10238. data = matchData[index];
  10239. var key = data[0],
  10240. objValue = object[key],
  10241. srcValue = data[1];
  10242. if (noCustomizer && data[2]) {
  10243. if (objValue === undefined && !(key in object)) {
  10244. return false;
  10245. }
  10246. } else {
  10247. var stack = new Stack;
  10248. if (customizer) {
  10249. var result = customizer(objValue, srcValue, key, object, source, stack);
  10250. }
  10251. if (!(result === undefined
  10252. ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)
  10253. : result
  10254. )) {
  10255. return false;
  10256. }
  10257. }
  10258. }
  10259. return true;
  10260. }
  10261. module.exports = baseIsMatch;
  10262. /***/ }),
  10263. /***/ "../../node_modules/lodash/_baseIsNaN.js":
  10264. /*!*******************************************************************!*\
  10265. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_baseIsNaN.js ***!
  10266. \*******************************************************************/
  10267. /*! no static exports found */
  10268. /***/ (function(module, exports) {
  10269. /**
  10270. * The base implementation of `_.isNaN` without support for number objects.
  10271. *
  10272. * @private
  10273. * @param {*} value The value to check.
  10274. * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
  10275. */
  10276. function baseIsNaN(value) {
  10277. return value !== value;
  10278. }
  10279. module.exports = baseIsNaN;
  10280. /***/ }),
  10281. /***/ "../../node_modules/lodash/_baseIsNative.js":
  10282. /*!**********************************************************************!*\
  10283. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_baseIsNative.js ***!
  10284. \**********************************************************************/
  10285. /*! no static exports found */
  10286. /***/ (function(module, exports, __webpack_require__) {
  10287. var isFunction = __webpack_require__(/*! ./isFunction */ "../../node_modules/lodash/isFunction.js"),
  10288. isMasked = __webpack_require__(/*! ./_isMasked */ "../../node_modules/lodash/_isMasked.js"),
  10289. isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js"),
  10290. toSource = __webpack_require__(/*! ./_toSource */ "../../node_modules/lodash/_toSource.js");
  10291. /**
  10292. * Used to match `RegExp`
  10293. * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
  10294. */
  10295. var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
  10296. /** Used to detect host constructors (Safari). */
  10297. var reIsHostCtor = /^\[object .+?Constructor\]$/;
  10298. /** Used for built-in method references. */
  10299. var funcProto = Function.prototype,
  10300. objectProto = Object.prototype;
  10301. /** Used to resolve the decompiled source of functions. */
  10302. var funcToString = funcProto.toString;
  10303. /** Used to check objects for own properties. */
  10304. var hasOwnProperty = objectProto.hasOwnProperty;
  10305. /** Used to detect if a method is native. */
  10306. var reIsNative = RegExp('^' +
  10307. funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
  10308. .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
  10309. );
  10310. /**
  10311. * The base implementation of `_.isNative` without bad shim checks.
  10312. *
  10313. * @private
  10314. * @param {*} value The value to check.
  10315. * @returns {boolean} Returns `true` if `value` is a native function,
  10316. * else `false`.
  10317. */
  10318. function baseIsNative(value) {
  10319. if (!isObject(value) || isMasked(value)) {
  10320. return false;
  10321. }
  10322. var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
  10323. return pattern.test(toSource(value));
  10324. }
  10325. module.exports = baseIsNative;
  10326. /***/ }),
  10327. /***/ "../../node_modules/lodash/_baseIsSet.js":
  10328. /*!*******************************************************************!*\
  10329. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_baseIsSet.js ***!
  10330. \*******************************************************************/
  10331. /*! no static exports found */
  10332. /***/ (function(module, exports, __webpack_require__) {
  10333. var getTag = __webpack_require__(/*! ./_getTag */ "../../node_modules/lodash/_getTag.js"),
  10334. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  10335. /** `Object#toString` result references. */
  10336. var setTag = '[object Set]';
  10337. /**
  10338. * The base implementation of `_.isSet` without Node.js optimizations.
  10339. *
  10340. * @private
  10341. * @param {*} value The value to check.
  10342. * @returns {boolean} Returns `true` if `value` is a set, else `false`.
  10343. */
  10344. function baseIsSet(value) {
  10345. return isObjectLike(value) && getTag(value) == setTag;
  10346. }
  10347. module.exports = baseIsSet;
  10348. /***/ }),
  10349. /***/ "../../node_modules/lodash/_baseIsTypedArray.js":
  10350. /*!**************************************************************************!*\
  10351. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_baseIsTypedArray.js ***!
  10352. \**************************************************************************/
  10353. /*! no static exports found */
  10354. /***/ (function(module, exports, __webpack_require__) {
  10355. var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../node_modules/lodash/_baseGetTag.js"),
  10356. isLength = __webpack_require__(/*! ./isLength */ "../../node_modules/lodash/isLength.js"),
  10357. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  10358. /** `Object#toString` result references. */
  10359. var argsTag = '[object Arguments]',
  10360. arrayTag = '[object Array]',
  10361. boolTag = '[object Boolean]',
  10362. dateTag = '[object Date]',
  10363. errorTag = '[object Error]',
  10364. funcTag = '[object Function]',
  10365. mapTag = '[object Map]',
  10366. numberTag = '[object Number]',
  10367. objectTag = '[object Object]',
  10368. regexpTag = '[object RegExp]',
  10369. setTag = '[object Set]',
  10370. stringTag = '[object String]',
  10371. weakMapTag = '[object WeakMap]';
  10372. var arrayBufferTag = '[object ArrayBuffer]',
  10373. dataViewTag = '[object DataView]',
  10374. float32Tag = '[object Float32Array]',
  10375. float64Tag = '[object Float64Array]',
  10376. int8Tag = '[object Int8Array]',
  10377. int16Tag = '[object Int16Array]',
  10378. int32Tag = '[object Int32Array]',
  10379. uint8Tag = '[object Uint8Array]',
  10380. uint8ClampedTag = '[object Uint8ClampedArray]',
  10381. uint16Tag = '[object Uint16Array]',
  10382. uint32Tag = '[object Uint32Array]';
  10383. /** Used to identify `toStringTag` values of typed arrays. */
  10384. var typedArrayTags = {};
  10385. typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
  10386. typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
  10387. typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
  10388. typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
  10389. typedArrayTags[uint32Tag] = true;
  10390. typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
  10391. typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
  10392. typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =
  10393. typedArrayTags[errorTag] = typedArrayTags[funcTag] =
  10394. typedArrayTags[mapTag] = typedArrayTags[numberTag] =
  10395. typedArrayTags[objectTag] = typedArrayTags[regexpTag] =
  10396. typedArrayTags[setTag] = typedArrayTags[stringTag] =
  10397. typedArrayTags[weakMapTag] = false;
  10398. /**
  10399. * The base implementation of `_.isTypedArray` without Node.js optimizations.
  10400. *
  10401. * @private
  10402. * @param {*} value The value to check.
  10403. * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
  10404. */
  10405. function baseIsTypedArray(value) {
  10406. return isObjectLike(value) &&
  10407. isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
  10408. }
  10409. module.exports = baseIsTypedArray;
  10410. /***/ }),
  10411. /***/ "../../node_modules/lodash/_baseIteratee.js":
  10412. /*!**********************************************************************!*\
  10413. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_baseIteratee.js ***!
  10414. \**********************************************************************/
  10415. /*! no static exports found */
  10416. /***/ (function(module, exports, __webpack_require__) {
  10417. var baseMatches = __webpack_require__(/*! ./_baseMatches */ "../../node_modules/lodash/_baseMatches.js"),
  10418. baseMatchesProperty = __webpack_require__(/*! ./_baseMatchesProperty */ "../../node_modules/lodash/_baseMatchesProperty.js"),
  10419. identity = __webpack_require__(/*! ./identity */ "../../node_modules/lodash/identity.js"),
  10420. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  10421. property = __webpack_require__(/*! ./property */ "../../node_modules/lodash/property.js");
  10422. /**
  10423. * The base implementation of `_.iteratee`.
  10424. *
  10425. * @private
  10426. * @param {*} [value=_.identity] The value to convert to an iteratee.
  10427. * @returns {Function} Returns the iteratee.
  10428. */
  10429. function baseIteratee(value) {
  10430. // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.
  10431. // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.
  10432. if (typeof value == 'function') {
  10433. return value;
  10434. }
  10435. if (value == null) {
  10436. return identity;
  10437. }
  10438. if (typeof value == 'object') {
  10439. return isArray(value)
  10440. ? baseMatchesProperty(value[0], value[1])
  10441. : baseMatches(value);
  10442. }
  10443. return property(value);
  10444. }
  10445. module.exports = baseIteratee;
  10446. /***/ }),
  10447. /***/ "../../node_modules/lodash/_baseKeys.js":
  10448. /*!******************************************************************!*\
  10449. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_baseKeys.js ***!
  10450. \******************************************************************/
  10451. /*! no static exports found */
  10452. /***/ (function(module, exports, __webpack_require__) {
  10453. var isPrototype = __webpack_require__(/*! ./_isPrototype */ "../../node_modules/lodash/_isPrototype.js"),
  10454. nativeKeys = __webpack_require__(/*! ./_nativeKeys */ "../../node_modules/lodash/_nativeKeys.js");
  10455. /** Used for built-in method references. */
  10456. var objectProto = Object.prototype;
  10457. /** Used to check objects for own properties. */
  10458. var hasOwnProperty = objectProto.hasOwnProperty;
  10459. /**
  10460. * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
  10461. *
  10462. * @private
  10463. * @param {Object} object The object to query.
  10464. * @returns {Array} Returns the array of property names.
  10465. */
  10466. function baseKeys(object) {
  10467. if (!isPrototype(object)) {
  10468. return nativeKeys(object);
  10469. }
  10470. var result = [];
  10471. for (var key in Object(object)) {
  10472. if (hasOwnProperty.call(object, key) && key != 'constructor') {
  10473. result.push(key);
  10474. }
  10475. }
  10476. return result;
  10477. }
  10478. module.exports = baseKeys;
  10479. /***/ }),
  10480. /***/ "../../node_modules/lodash/_baseKeysIn.js":
  10481. /*!********************************************************************!*\
  10482. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_baseKeysIn.js ***!
  10483. \********************************************************************/
  10484. /*! no static exports found */
  10485. /***/ (function(module, exports, __webpack_require__) {
  10486. var isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js"),
  10487. isPrototype = __webpack_require__(/*! ./_isPrototype */ "../../node_modules/lodash/_isPrototype.js"),
  10488. nativeKeysIn = __webpack_require__(/*! ./_nativeKeysIn */ "../../node_modules/lodash/_nativeKeysIn.js");
  10489. /** Used for built-in method references. */
  10490. var objectProto = Object.prototype;
  10491. /** Used to check objects for own properties. */
  10492. var hasOwnProperty = objectProto.hasOwnProperty;
  10493. /**
  10494. * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
  10495. *
  10496. * @private
  10497. * @param {Object} object The object to query.
  10498. * @returns {Array} Returns the array of property names.
  10499. */
  10500. function baseKeysIn(object) {
  10501. if (!isObject(object)) {
  10502. return nativeKeysIn(object);
  10503. }
  10504. var isProto = isPrototype(object),
  10505. result = [];
  10506. for (var key in object) {
  10507. if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {
  10508. result.push(key);
  10509. }
  10510. }
  10511. return result;
  10512. }
  10513. module.exports = baseKeysIn;
  10514. /***/ }),
  10515. /***/ "../../node_modules/lodash/_baseLt.js":
  10516. /*!****************************************************************!*\
  10517. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_baseLt.js ***!
  10518. \****************************************************************/
  10519. /*! no static exports found */
  10520. /***/ (function(module, exports) {
  10521. /**
  10522. * The base implementation of `_.lt` which doesn't coerce arguments.
  10523. *
  10524. * @private
  10525. * @param {*} value The value to compare.
  10526. * @param {*} other The other value to compare.
  10527. * @returns {boolean} Returns `true` if `value` is less than `other`,
  10528. * else `false`.
  10529. */
  10530. function baseLt(value, other) {
  10531. return value < other;
  10532. }
  10533. module.exports = baseLt;
  10534. /***/ }),
  10535. /***/ "../../node_modules/lodash/_baseMap.js":
  10536. /*!*****************************************************************!*\
  10537. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_baseMap.js ***!
  10538. \*****************************************************************/
  10539. /*! no static exports found */
  10540. /***/ (function(module, exports, __webpack_require__) {
  10541. var baseEach = __webpack_require__(/*! ./_baseEach */ "../../node_modules/lodash/_baseEach.js"),
  10542. isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js");
  10543. /**
  10544. * The base implementation of `_.map` without support for iteratee shorthands.
  10545. *
  10546. * @private
  10547. * @param {Array|Object} collection The collection to iterate over.
  10548. * @param {Function} iteratee The function invoked per iteration.
  10549. * @returns {Array} Returns the new mapped array.
  10550. */
  10551. function baseMap(collection, iteratee) {
  10552. var index = -1,
  10553. result = isArrayLike(collection) ? Array(collection.length) : [];
  10554. baseEach(collection, function(value, key, collection) {
  10555. result[++index] = iteratee(value, key, collection);
  10556. });
  10557. return result;
  10558. }
  10559. module.exports = baseMap;
  10560. /***/ }),
  10561. /***/ "../../node_modules/lodash/_baseMatches.js":
  10562. /*!*********************************************************************!*\
  10563. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_baseMatches.js ***!
  10564. \*********************************************************************/
  10565. /*! no static exports found */
  10566. /***/ (function(module, exports, __webpack_require__) {
  10567. var baseIsMatch = __webpack_require__(/*! ./_baseIsMatch */ "../../node_modules/lodash/_baseIsMatch.js"),
  10568. getMatchData = __webpack_require__(/*! ./_getMatchData */ "../../node_modules/lodash/_getMatchData.js"),
  10569. matchesStrictComparable = __webpack_require__(/*! ./_matchesStrictComparable */ "../../node_modules/lodash/_matchesStrictComparable.js");
  10570. /**
  10571. * The base implementation of `_.matches` which doesn't clone `source`.
  10572. *
  10573. * @private
  10574. * @param {Object} source The object of property values to match.
  10575. * @returns {Function} Returns the new spec function.
  10576. */
  10577. function baseMatches(source) {
  10578. var matchData = getMatchData(source);
  10579. if (matchData.length == 1 && matchData[0][2]) {
  10580. return matchesStrictComparable(matchData[0][0], matchData[0][1]);
  10581. }
  10582. return function(object) {
  10583. return object === source || baseIsMatch(object, source, matchData);
  10584. };
  10585. }
  10586. module.exports = baseMatches;
  10587. /***/ }),
  10588. /***/ "../../node_modules/lodash/_baseMatchesProperty.js":
  10589. /*!*****************************************************************************!*\
  10590. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_baseMatchesProperty.js ***!
  10591. \*****************************************************************************/
  10592. /*! no static exports found */
  10593. /***/ (function(module, exports, __webpack_require__) {
  10594. var baseIsEqual = __webpack_require__(/*! ./_baseIsEqual */ "../../node_modules/lodash/_baseIsEqual.js"),
  10595. get = __webpack_require__(/*! ./get */ "../../node_modules/lodash/get.js"),
  10596. hasIn = __webpack_require__(/*! ./hasIn */ "../../node_modules/lodash/hasIn.js"),
  10597. isKey = __webpack_require__(/*! ./_isKey */ "../../node_modules/lodash/_isKey.js"),
  10598. isStrictComparable = __webpack_require__(/*! ./_isStrictComparable */ "../../node_modules/lodash/_isStrictComparable.js"),
  10599. matchesStrictComparable = __webpack_require__(/*! ./_matchesStrictComparable */ "../../node_modules/lodash/_matchesStrictComparable.js"),
  10600. toKey = __webpack_require__(/*! ./_toKey */ "../../node_modules/lodash/_toKey.js");
  10601. /** Used to compose bitmasks for value comparisons. */
  10602. var COMPARE_PARTIAL_FLAG = 1,
  10603. COMPARE_UNORDERED_FLAG = 2;
  10604. /**
  10605. * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
  10606. *
  10607. * @private
  10608. * @param {string} path The path of the property to get.
  10609. * @param {*} srcValue The value to match.
  10610. * @returns {Function} Returns the new spec function.
  10611. */
  10612. function baseMatchesProperty(path, srcValue) {
  10613. if (isKey(path) && isStrictComparable(srcValue)) {
  10614. return matchesStrictComparable(toKey(path), srcValue);
  10615. }
  10616. return function(object) {
  10617. var objValue = get(object, path);
  10618. return (objValue === undefined && objValue === srcValue)
  10619. ? hasIn(object, path)
  10620. : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
  10621. };
  10622. }
  10623. module.exports = baseMatchesProperty;
  10624. /***/ }),
  10625. /***/ "../../node_modules/lodash/_baseMerge.js":
  10626. /*!*******************************************************************!*\
  10627. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_baseMerge.js ***!
  10628. \*******************************************************************/
  10629. /*! no static exports found */
  10630. /***/ (function(module, exports, __webpack_require__) {
  10631. var Stack = __webpack_require__(/*! ./_Stack */ "../../node_modules/lodash/_Stack.js"),
  10632. assignMergeValue = __webpack_require__(/*! ./_assignMergeValue */ "../../node_modules/lodash/_assignMergeValue.js"),
  10633. baseFor = __webpack_require__(/*! ./_baseFor */ "../../node_modules/lodash/_baseFor.js"),
  10634. baseMergeDeep = __webpack_require__(/*! ./_baseMergeDeep */ "../../node_modules/lodash/_baseMergeDeep.js"),
  10635. isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js"),
  10636. keysIn = __webpack_require__(/*! ./keysIn */ "../../node_modules/lodash/keysIn.js"),
  10637. safeGet = __webpack_require__(/*! ./_safeGet */ "../../node_modules/lodash/_safeGet.js");
  10638. /**
  10639. * The base implementation of `_.merge` without support for multiple sources.
  10640. *
  10641. * @private
  10642. * @param {Object} object The destination object.
  10643. * @param {Object} source The source object.
  10644. * @param {number} srcIndex The index of `source`.
  10645. * @param {Function} [customizer] The function to customize merged values.
  10646. * @param {Object} [stack] Tracks traversed source values and their merged
  10647. * counterparts.
  10648. */
  10649. function baseMerge(object, source, srcIndex, customizer, stack) {
  10650. if (object === source) {
  10651. return;
  10652. }
  10653. baseFor(source, function(srcValue, key) {
  10654. stack || (stack = new Stack);
  10655. if (isObject(srcValue)) {
  10656. baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
  10657. }
  10658. else {
  10659. var newValue = customizer
  10660. ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)
  10661. : undefined;
  10662. if (newValue === undefined) {
  10663. newValue = srcValue;
  10664. }
  10665. assignMergeValue(object, key, newValue);
  10666. }
  10667. }, keysIn);
  10668. }
  10669. module.exports = baseMerge;
  10670. /***/ }),
  10671. /***/ "../../node_modules/lodash/_baseMergeDeep.js":
  10672. /*!***********************************************************************!*\
  10673. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_baseMergeDeep.js ***!
  10674. \***********************************************************************/
  10675. /*! no static exports found */
  10676. /***/ (function(module, exports, __webpack_require__) {
  10677. var assignMergeValue = __webpack_require__(/*! ./_assignMergeValue */ "../../node_modules/lodash/_assignMergeValue.js"),
  10678. cloneBuffer = __webpack_require__(/*! ./_cloneBuffer */ "../../node_modules/lodash/_cloneBuffer.js"),
  10679. cloneTypedArray = __webpack_require__(/*! ./_cloneTypedArray */ "../../node_modules/lodash/_cloneTypedArray.js"),
  10680. copyArray = __webpack_require__(/*! ./_copyArray */ "../../node_modules/lodash/_copyArray.js"),
  10681. initCloneObject = __webpack_require__(/*! ./_initCloneObject */ "../../node_modules/lodash/_initCloneObject.js"),
  10682. isArguments = __webpack_require__(/*! ./isArguments */ "../../node_modules/lodash/isArguments.js"),
  10683. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  10684. isArrayLikeObject = __webpack_require__(/*! ./isArrayLikeObject */ "../../node_modules/lodash/isArrayLikeObject.js"),
  10685. isBuffer = __webpack_require__(/*! ./isBuffer */ "../../node_modules/lodash/isBuffer.js"),
  10686. isFunction = __webpack_require__(/*! ./isFunction */ "../../node_modules/lodash/isFunction.js"),
  10687. isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js"),
  10688. isPlainObject = __webpack_require__(/*! ./isPlainObject */ "../../node_modules/lodash/isPlainObject.js"),
  10689. isTypedArray = __webpack_require__(/*! ./isTypedArray */ "../../node_modules/lodash/isTypedArray.js"),
  10690. safeGet = __webpack_require__(/*! ./_safeGet */ "../../node_modules/lodash/_safeGet.js"),
  10691. toPlainObject = __webpack_require__(/*! ./toPlainObject */ "../../node_modules/lodash/toPlainObject.js");
  10692. /**
  10693. * A specialized version of `baseMerge` for arrays and objects which performs
  10694. * deep merges and tracks traversed objects enabling objects with circular
  10695. * references to be merged.
  10696. *
  10697. * @private
  10698. * @param {Object} object The destination object.
  10699. * @param {Object} source The source object.
  10700. * @param {string} key The key of the value to merge.
  10701. * @param {number} srcIndex The index of `source`.
  10702. * @param {Function} mergeFunc The function to merge values.
  10703. * @param {Function} [customizer] The function to customize assigned values.
  10704. * @param {Object} [stack] Tracks traversed source values and their merged
  10705. * counterparts.
  10706. */
  10707. function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
  10708. var objValue = safeGet(object, key),
  10709. srcValue = safeGet(source, key),
  10710. stacked = stack.get(srcValue);
  10711. if (stacked) {
  10712. assignMergeValue(object, key, stacked);
  10713. return;
  10714. }
  10715. var newValue = customizer
  10716. ? customizer(objValue, srcValue, (key + ''), object, source, stack)
  10717. : undefined;
  10718. var isCommon = newValue === undefined;
  10719. if (isCommon) {
  10720. var isArr = isArray(srcValue),
  10721. isBuff = !isArr && isBuffer(srcValue),
  10722. isTyped = !isArr && !isBuff && isTypedArray(srcValue);
  10723. newValue = srcValue;
  10724. if (isArr || isBuff || isTyped) {
  10725. if (isArray(objValue)) {
  10726. newValue = objValue;
  10727. }
  10728. else if (isArrayLikeObject(objValue)) {
  10729. newValue = copyArray(objValue);
  10730. }
  10731. else if (isBuff) {
  10732. isCommon = false;
  10733. newValue = cloneBuffer(srcValue, true);
  10734. }
  10735. else if (isTyped) {
  10736. isCommon = false;
  10737. newValue = cloneTypedArray(srcValue, true);
  10738. }
  10739. else {
  10740. newValue = [];
  10741. }
  10742. }
  10743. else if (isPlainObject(srcValue) || isArguments(srcValue)) {
  10744. newValue = objValue;
  10745. if (isArguments(objValue)) {
  10746. newValue = toPlainObject(objValue);
  10747. }
  10748. else if (!isObject(objValue) || isFunction(objValue)) {
  10749. newValue = initCloneObject(srcValue);
  10750. }
  10751. }
  10752. else {
  10753. isCommon = false;
  10754. }
  10755. }
  10756. if (isCommon) {
  10757. // Recursively merge objects and arrays (susceptible to call stack limits).
  10758. stack.set(srcValue, newValue);
  10759. mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
  10760. stack['delete'](srcValue);
  10761. }
  10762. assignMergeValue(object, key, newValue);
  10763. }
  10764. module.exports = baseMergeDeep;
  10765. /***/ }),
  10766. /***/ "../../node_modules/lodash/_baseOrderBy.js":
  10767. /*!*********************************************************************!*\
  10768. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_baseOrderBy.js ***!
  10769. \*********************************************************************/
  10770. /*! no static exports found */
  10771. /***/ (function(module, exports, __webpack_require__) {
  10772. var arrayMap = __webpack_require__(/*! ./_arrayMap */ "../../node_modules/lodash/_arrayMap.js"),
  10773. baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../node_modules/lodash/_baseIteratee.js"),
  10774. baseMap = __webpack_require__(/*! ./_baseMap */ "../../node_modules/lodash/_baseMap.js"),
  10775. baseSortBy = __webpack_require__(/*! ./_baseSortBy */ "../../node_modules/lodash/_baseSortBy.js"),
  10776. baseUnary = __webpack_require__(/*! ./_baseUnary */ "../../node_modules/lodash/_baseUnary.js"),
  10777. compareMultiple = __webpack_require__(/*! ./_compareMultiple */ "../../node_modules/lodash/_compareMultiple.js"),
  10778. identity = __webpack_require__(/*! ./identity */ "../../node_modules/lodash/identity.js");
  10779. /**
  10780. * The base implementation of `_.orderBy` without param guards.
  10781. *
  10782. * @private
  10783. * @param {Array|Object} collection The collection to iterate over.
  10784. * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.
  10785. * @param {string[]} orders The sort orders of `iteratees`.
  10786. * @returns {Array} Returns the new sorted array.
  10787. */
  10788. function baseOrderBy(collection, iteratees, orders) {
  10789. var index = -1;
  10790. iteratees = arrayMap(iteratees.length ? iteratees : [identity], baseUnary(baseIteratee));
  10791. var result = baseMap(collection, function(value, key, collection) {
  10792. var criteria = arrayMap(iteratees, function(iteratee) {
  10793. return iteratee(value);
  10794. });
  10795. return { 'criteria': criteria, 'index': ++index, 'value': value };
  10796. });
  10797. return baseSortBy(result, function(object, other) {
  10798. return compareMultiple(object, other, orders);
  10799. });
  10800. }
  10801. module.exports = baseOrderBy;
  10802. /***/ }),
  10803. /***/ "../../node_modules/lodash/_basePick.js":
  10804. /*!******************************************************************!*\
  10805. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_basePick.js ***!
  10806. \******************************************************************/
  10807. /*! no static exports found */
  10808. /***/ (function(module, exports, __webpack_require__) {
  10809. var basePickBy = __webpack_require__(/*! ./_basePickBy */ "../../node_modules/lodash/_basePickBy.js"),
  10810. hasIn = __webpack_require__(/*! ./hasIn */ "../../node_modules/lodash/hasIn.js");
  10811. /**
  10812. * The base implementation of `_.pick` without support for individual
  10813. * property identifiers.
  10814. *
  10815. * @private
  10816. * @param {Object} object The source object.
  10817. * @param {string[]} paths The property paths to pick.
  10818. * @returns {Object} Returns the new object.
  10819. */
  10820. function basePick(object, paths) {
  10821. return basePickBy(object, paths, function(value, path) {
  10822. return hasIn(object, path);
  10823. });
  10824. }
  10825. module.exports = basePick;
  10826. /***/ }),
  10827. /***/ "../../node_modules/lodash/_basePickBy.js":
  10828. /*!********************************************************************!*\
  10829. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_basePickBy.js ***!
  10830. \********************************************************************/
  10831. /*! no static exports found */
  10832. /***/ (function(module, exports, __webpack_require__) {
  10833. var baseGet = __webpack_require__(/*! ./_baseGet */ "../../node_modules/lodash/_baseGet.js"),
  10834. baseSet = __webpack_require__(/*! ./_baseSet */ "../../node_modules/lodash/_baseSet.js"),
  10835. castPath = __webpack_require__(/*! ./_castPath */ "../../node_modules/lodash/_castPath.js");
  10836. /**
  10837. * The base implementation of `_.pickBy` without support for iteratee shorthands.
  10838. *
  10839. * @private
  10840. * @param {Object} object The source object.
  10841. * @param {string[]} paths The property paths to pick.
  10842. * @param {Function} predicate The function invoked per property.
  10843. * @returns {Object} Returns the new object.
  10844. */
  10845. function basePickBy(object, paths, predicate) {
  10846. var index = -1,
  10847. length = paths.length,
  10848. result = {};
  10849. while (++index < length) {
  10850. var path = paths[index],
  10851. value = baseGet(object, path);
  10852. if (predicate(value, path)) {
  10853. baseSet(result, castPath(path, object), value);
  10854. }
  10855. }
  10856. return result;
  10857. }
  10858. module.exports = basePickBy;
  10859. /***/ }),
  10860. /***/ "../../node_modules/lodash/_baseProperty.js":
  10861. /*!**********************************************************************!*\
  10862. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_baseProperty.js ***!
  10863. \**********************************************************************/
  10864. /*! no static exports found */
  10865. /***/ (function(module, exports) {
  10866. /**
  10867. * The base implementation of `_.property` without support for deep paths.
  10868. *
  10869. * @private
  10870. * @param {string} key The key of the property to get.
  10871. * @returns {Function} Returns the new accessor function.
  10872. */
  10873. function baseProperty(key) {
  10874. return function(object) {
  10875. return object == null ? undefined : object[key];
  10876. };
  10877. }
  10878. module.exports = baseProperty;
  10879. /***/ }),
  10880. /***/ "../../node_modules/lodash/_basePropertyDeep.js":
  10881. /*!**************************************************************************!*\
  10882. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_basePropertyDeep.js ***!
  10883. \**************************************************************************/
  10884. /*! no static exports found */
  10885. /***/ (function(module, exports, __webpack_require__) {
  10886. var baseGet = __webpack_require__(/*! ./_baseGet */ "../../node_modules/lodash/_baseGet.js");
  10887. /**
  10888. * A specialized version of `baseProperty` which supports deep paths.
  10889. *
  10890. * @private
  10891. * @param {Array|string} path The path of the property to get.
  10892. * @returns {Function} Returns the new accessor function.
  10893. */
  10894. function basePropertyDeep(path) {
  10895. return function(object) {
  10896. return baseGet(object, path);
  10897. };
  10898. }
  10899. module.exports = basePropertyDeep;
  10900. /***/ }),
  10901. /***/ "../../node_modules/lodash/_baseRange.js":
  10902. /*!*******************************************************************!*\
  10903. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_baseRange.js ***!
  10904. \*******************************************************************/
  10905. /*! no static exports found */
  10906. /***/ (function(module, exports) {
  10907. /* Built-in method references for those with the same name as other `lodash` methods. */
  10908. var nativeCeil = Math.ceil,
  10909. nativeMax = Math.max;
  10910. /**
  10911. * The base implementation of `_.range` and `_.rangeRight` which doesn't
  10912. * coerce arguments.
  10913. *
  10914. * @private
  10915. * @param {number} start The start of the range.
  10916. * @param {number} end The end of the range.
  10917. * @param {number} step The value to increment or decrement by.
  10918. * @param {boolean} [fromRight] Specify iterating from right to left.
  10919. * @returns {Array} Returns the range of numbers.
  10920. */
  10921. function baseRange(start, end, step, fromRight) {
  10922. var index = -1,
  10923. length = nativeMax(nativeCeil((end - start) / (step || 1)), 0),
  10924. result = Array(length);
  10925. while (length--) {
  10926. result[fromRight ? length : ++index] = start;
  10927. start += step;
  10928. }
  10929. return result;
  10930. }
  10931. module.exports = baseRange;
  10932. /***/ }),
  10933. /***/ "../../node_modules/lodash/_baseReduce.js":
  10934. /*!********************************************************************!*\
  10935. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_baseReduce.js ***!
  10936. \********************************************************************/
  10937. /*! no static exports found */
  10938. /***/ (function(module, exports) {
  10939. /**
  10940. * The base implementation of `_.reduce` and `_.reduceRight`, without support
  10941. * for iteratee shorthands, which iterates over `collection` using `eachFunc`.
  10942. *
  10943. * @private
  10944. * @param {Array|Object} collection The collection to iterate over.
  10945. * @param {Function} iteratee The function invoked per iteration.
  10946. * @param {*} accumulator The initial value.
  10947. * @param {boolean} initAccum Specify using the first or last element of
  10948. * `collection` as the initial value.
  10949. * @param {Function} eachFunc The function to iterate over `collection`.
  10950. * @returns {*} Returns the accumulated value.
  10951. */
  10952. function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {
  10953. eachFunc(collection, function(value, index, collection) {
  10954. accumulator = initAccum
  10955. ? (initAccum = false, value)
  10956. : iteratee(accumulator, value, index, collection);
  10957. });
  10958. return accumulator;
  10959. }
  10960. module.exports = baseReduce;
  10961. /***/ }),
  10962. /***/ "../../node_modules/lodash/_baseRest.js":
  10963. /*!******************************************************************!*\
  10964. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_baseRest.js ***!
  10965. \******************************************************************/
  10966. /*! no static exports found */
  10967. /***/ (function(module, exports, __webpack_require__) {
  10968. var identity = __webpack_require__(/*! ./identity */ "../../node_modules/lodash/identity.js"),
  10969. overRest = __webpack_require__(/*! ./_overRest */ "../../node_modules/lodash/_overRest.js"),
  10970. setToString = __webpack_require__(/*! ./_setToString */ "../../node_modules/lodash/_setToString.js");
  10971. /**
  10972. * The base implementation of `_.rest` which doesn't validate or coerce arguments.
  10973. *
  10974. * @private
  10975. * @param {Function} func The function to apply a rest parameter to.
  10976. * @param {number} [start=func.length-1] The start position of the rest parameter.
  10977. * @returns {Function} Returns the new function.
  10978. */
  10979. function baseRest(func, start) {
  10980. return setToString(overRest(func, start, identity), func + '');
  10981. }
  10982. module.exports = baseRest;
  10983. /***/ }),
  10984. /***/ "../../node_modules/lodash/_baseSet.js":
  10985. /*!*****************************************************************!*\
  10986. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_baseSet.js ***!
  10987. \*****************************************************************/
  10988. /*! no static exports found */
  10989. /***/ (function(module, exports, __webpack_require__) {
  10990. var assignValue = __webpack_require__(/*! ./_assignValue */ "../../node_modules/lodash/_assignValue.js"),
  10991. castPath = __webpack_require__(/*! ./_castPath */ "../../node_modules/lodash/_castPath.js"),
  10992. isIndex = __webpack_require__(/*! ./_isIndex */ "../../node_modules/lodash/_isIndex.js"),
  10993. isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js"),
  10994. toKey = __webpack_require__(/*! ./_toKey */ "../../node_modules/lodash/_toKey.js");
  10995. /**
  10996. * The base implementation of `_.set`.
  10997. *
  10998. * @private
  10999. * @param {Object} object The object to modify.
  11000. * @param {Array|string} path The path of the property to set.
  11001. * @param {*} value The value to set.
  11002. * @param {Function} [customizer] The function to customize path creation.
  11003. * @returns {Object} Returns `object`.
  11004. */
  11005. function baseSet(object, path, value, customizer) {
  11006. if (!isObject(object)) {
  11007. return object;
  11008. }
  11009. path = castPath(path, object);
  11010. var index = -1,
  11011. length = path.length,
  11012. lastIndex = length - 1,
  11013. nested = object;
  11014. while (nested != null && ++index < length) {
  11015. var key = toKey(path[index]),
  11016. newValue = value;
  11017. if (index != lastIndex) {
  11018. var objValue = nested[key];
  11019. newValue = customizer ? customizer(objValue, key, nested) : undefined;
  11020. if (newValue === undefined) {
  11021. newValue = isObject(objValue)
  11022. ? objValue
  11023. : (isIndex(path[index + 1]) ? [] : {});
  11024. }
  11025. }
  11026. assignValue(nested, key, newValue);
  11027. nested = nested[key];
  11028. }
  11029. return object;
  11030. }
  11031. module.exports = baseSet;
  11032. /***/ }),
  11033. /***/ "../../node_modules/lodash/_baseSetToString.js":
  11034. /*!*************************************************************************!*\
  11035. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_baseSetToString.js ***!
  11036. \*************************************************************************/
  11037. /*! no static exports found */
  11038. /***/ (function(module, exports, __webpack_require__) {
  11039. var constant = __webpack_require__(/*! ./constant */ "../../node_modules/lodash/constant.js"),
  11040. defineProperty = __webpack_require__(/*! ./_defineProperty */ "../../node_modules/lodash/_defineProperty.js"),
  11041. identity = __webpack_require__(/*! ./identity */ "../../node_modules/lodash/identity.js");
  11042. /**
  11043. * The base implementation of `setToString` without support for hot loop shorting.
  11044. *
  11045. * @private
  11046. * @param {Function} func The function to modify.
  11047. * @param {Function} string The `toString` result.
  11048. * @returns {Function} Returns `func`.
  11049. */
  11050. var baseSetToString = !defineProperty ? identity : function(func, string) {
  11051. return defineProperty(func, 'toString', {
  11052. 'configurable': true,
  11053. 'enumerable': false,
  11054. 'value': constant(string),
  11055. 'writable': true
  11056. });
  11057. };
  11058. module.exports = baseSetToString;
  11059. /***/ }),
  11060. /***/ "../../node_modules/lodash/_baseSortBy.js":
  11061. /*!********************************************************************!*\
  11062. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_baseSortBy.js ***!
  11063. \********************************************************************/
  11064. /*! no static exports found */
  11065. /***/ (function(module, exports) {
  11066. /**
  11067. * The base implementation of `_.sortBy` which uses `comparer` to define the
  11068. * sort order of `array` and replaces criteria objects with their corresponding
  11069. * values.
  11070. *
  11071. * @private
  11072. * @param {Array} array The array to sort.
  11073. * @param {Function} comparer The function to define sort order.
  11074. * @returns {Array} Returns `array`.
  11075. */
  11076. function baseSortBy(array, comparer) {
  11077. var length = array.length;
  11078. array.sort(comparer);
  11079. while (length--) {
  11080. array[length] = array[length].value;
  11081. }
  11082. return array;
  11083. }
  11084. module.exports = baseSortBy;
  11085. /***/ }),
  11086. /***/ "../../node_modules/lodash/_baseTimes.js":
  11087. /*!*******************************************************************!*\
  11088. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_baseTimes.js ***!
  11089. \*******************************************************************/
  11090. /*! no static exports found */
  11091. /***/ (function(module, exports) {
  11092. /**
  11093. * The base implementation of `_.times` without support for iteratee shorthands
  11094. * or max array length checks.
  11095. *
  11096. * @private
  11097. * @param {number} n The number of times to invoke `iteratee`.
  11098. * @param {Function} iteratee The function invoked per iteration.
  11099. * @returns {Array} Returns the array of results.
  11100. */
  11101. function baseTimes(n, iteratee) {
  11102. var index = -1,
  11103. result = Array(n);
  11104. while (++index < n) {
  11105. result[index] = iteratee(index);
  11106. }
  11107. return result;
  11108. }
  11109. module.exports = baseTimes;
  11110. /***/ }),
  11111. /***/ "../../node_modules/lodash/_baseToString.js":
  11112. /*!**********************************************************************!*\
  11113. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_baseToString.js ***!
  11114. \**********************************************************************/
  11115. /*! no static exports found */
  11116. /***/ (function(module, exports, __webpack_require__) {
  11117. var Symbol = __webpack_require__(/*! ./_Symbol */ "../../node_modules/lodash/_Symbol.js"),
  11118. arrayMap = __webpack_require__(/*! ./_arrayMap */ "../../node_modules/lodash/_arrayMap.js"),
  11119. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  11120. isSymbol = __webpack_require__(/*! ./isSymbol */ "../../node_modules/lodash/isSymbol.js");
  11121. /** Used as references for various `Number` constants. */
  11122. var INFINITY = 1 / 0;
  11123. /** Used to convert symbols to primitives and strings. */
  11124. var symbolProto = Symbol ? Symbol.prototype : undefined,
  11125. symbolToString = symbolProto ? symbolProto.toString : undefined;
  11126. /**
  11127. * The base implementation of `_.toString` which doesn't convert nullish
  11128. * values to empty strings.
  11129. *
  11130. * @private
  11131. * @param {*} value The value to process.
  11132. * @returns {string} Returns the string.
  11133. */
  11134. function baseToString(value) {
  11135. // Exit early for strings to avoid a performance hit in some environments.
  11136. if (typeof value == 'string') {
  11137. return value;
  11138. }
  11139. if (isArray(value)) {
  11140. // Recursively convert values (susceptible to call stack limits).
  11141. return arrayMap(value, baseToString) + '';
  11142. }
  11143. if (isSymbol(value)) {
  11144. return symbolToString ? symbolToString.call(value) : '';
  11145. }
  11146. var result = (value + '');
  11147. return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
  11148. }
  11149. module.exports = baseToString;
  11150. /***/ }),
  11151. /***/ "../../node_modules/lodash/_baseUnary.js":
  11152. /*!*******************************************************************!*\
  11153. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_baseUnary.js ***!
  11154. \*******************************************************************/
  11155. /*! no static exports found */
  11156. /***/ (function(module, exports) {
  11157. /**
  11158. * The base implementation of `_.unary` without support for storing metadata.
  11159. *
  11160. * @private
  11161. * @param {Function} func The function to cap arguments for.
  11162. * @returns {Function} Returns the new capped function.
  11163. */
  11164. function baseUnary(func) {
  11165. return function(value) {
  11166. return func(value);
  11167. };
  11168. }
  11169. module.exports = baseUnary;
  11170. /***/ }),
  11171. /***/ "../../node_modules/lodash/_baseUniq.js":
  11172. /*!******************************************************************!*\
  11173. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_baseUniq.js ***!
  11174. \******************************************************************/
  11175. /*! no static exports found */
  11176. /***/ (function(module, exports, __webpack_require__) {
  11177. var SetCache = __webpack_require__(/*! ./_SetCache */ "../../node_modules/lodash/_SetCache.js"),
  11178. arrayIncludes = __webpack_require__(/*! ./_arrayIncludes */ "../../node_modules/lodash/_arrayIncludes.js"),
  11179. arrayIncludesWith = __webpack_require__(/*! ./_arrayIncludesWith */ "../../node_modules/lodash/_arrayIncludesWith.js"),
  11180. cacheHas = __webpack_require__(/*! ./_cacheHas */ "../../node_modules/lodash/_cacheHas.js"),
  11181. createSet = __webpack_require__(/*! ./_createSet */ "../../node_modules/lodash/_createSet.js"),
  11182. setToArray = __webpack_require__(/*! ./_setToArray */ "../../node_modules/lodash/_setToArray.js");
  11183. /** Used as the size to enable large array optimizations. */
  11184. var LARGE_ARRAY_SIZE = 200;
  11185. /**
  11186. * The base implementation of `_.uniqBy` without support for iteratee shorthands.
  11187. *
  11188. * @private
  11189. * @param {Array} array The array to inspect.
  11190. * @param {Function} [iteratee] The iteratee invoked per element.
  11191. * @param {Function} [comparator] The comparator invoked per element.
  11192. * @returns {Array} Returns the new duplicate free array.
  11193. */
  11194. function baseUniq(array, iteratee, comparator) {
  11195. var index = -1,
  11196. includes = arrayIncludes,
  11197. length = array.length,
  11198. isCommon = true,
  11199. result = [],
  11200. seen = result;
  11201. if (comparator) {
  11202. isCommon = false;
  11203. includes = arrayIncludesWith;
  11204. }
  11205. else if (length >= LARGE_ARRAY_SIZE) {
  11206. var set = iteratee ? null : createSet(array);
  11207. if (set) {
  11208. return setToArray(set);
  11209. }
  11210. isCommon = false;
  11211. includes = cacheHas;
  11212. seen = new SetCache;
  11213. }
  11214. else {
  11215. seen = iteratee ? [] : result;
  11216. }
  11217. outer:
  11218. while (++index < length) {
  11219. var value = array[index],
  11220. computed = iteratee ? iteratee(value) : value;
  11221. value = (comparator || value !== 0) ? value : 0;
  11222. if (isCommon && computed === computed) {
  11223. var seenIndex = seen.length;
  11224. while (seenIndex--) {
  11225. if (seen[seenIndex] === computed) {
  11226. continue outer;
  11227. }
  11228. }
  11229. if (iteratee) {
  11230. seen.push(computed);
  11231. }
  11232. result.push(value);
  11233. }
  11234. else if (!includes(seen, computed, comparator)) {
  11235. if (seen !== result) {
  11236. seen.push(computed);
  11237. }
  11238. result.push(value);
  11239. }
  11240. }
  11241. return result;
  11242. }
  11243. module.exports = baseUniq;
  11244. /***/ }),
  11245. /***/ "../../node_modules/lodash/_baseValues.js":
  11246. /*!********************************************************************!*\
  11247. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_baseValues.js ***!
  11248. \********************************************************************/
  11249. /*! no static exports found */
  11250. /***/ (function(module, exports, __webpack_require__) {
  11251. var arrayMap = __webpack_require__(/*! ./_arrayMap */ "../../node_modules/lodash/_arrayMap.js");
  11252. /**
  11253. * The base implementation of `_.values` and `_.valuesIn` which creates an
  11254. * array of `object` property values corresponding to the property names
  11255. * of `props`.
  11256. *
  11257. * @private
  11258. * @param {Object} object The object to query.
  11259. * @param {Array} props The property names to get values for.
  11260. * @returns {Object} Returns the array of property values.
  11261. */
  11262. function baseValues(object, props) {
  11263. return arrayMap(props, function(key) {
  11264. return object[key];
  11265. });
  11266. }
  11267. module.exports = baseValues;
  11268. /***/ }),
  11269. /***/ "../../node_modules/lodash/_baseZipObject.js":
  11270. /*!***********************************************************************!*\
  11271. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_baseZipObject.js ***!
  11272. \***********************************************************************/
  11273. /*! no static exports found */
  11274. /***/ (function(module, exports) {
  11275. /**
  11276. * This base implementation of `_.zipObject` which assigns values using `assignFunc`.
  11277. *
  11278. * @private
  11279. * @param {Array} props The property identifiers.
  11280. * @param {Array} values The property values.
  11281. * @param {Function} assignFunc The function to assign values.
  11282. * @returns {Object} Returns the new object.
  11283. */
  11284. function baseZipObject(props, values, assignFunc) {
  11285. var index = -1,
  11286. length = props.length,
  11287. valsLength = values.length,
  11288. result = {};
  11289. while (++index < length) {
  11290. var value = index < valsLength ? values[index] : undefined;
  11291. assignFunc(result, props[index], value);
  11292. }
  11293. return result;
  11294. }
  11295. module.exports = baseZipObject;
  11296. /***/ }),
  11297. /***/ "../../node_modules/lodash/_cacheHas.js":
  11298. /*!******************************************************************!*\
  11299. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_cacheHas.js ***!
  11300. \******************************************************************/
  11301. /*! no static exports found */
  11302. /***/ (function(module, exports) {
  11303. /**
  11304. * Checks if a `cache` value for `key` exists.
  11305. *
  11306. * @private
  11307. * @param {Object} cache The cache to query.
  11308. * @param {string} key The key of the entry to check.
  11309. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  11310. */
  11311. function cacheHas(cache, key) {
  11312. return cache.has(key);
  11313. }
  11314. module.exports = cacheHas;
  11315. /***/ }),
  11316. /***/ "../../node_modules/lodash/_castFunction.js":
  11317. /*!**********************************************************************!*\
  11318. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_castFunction.js ***!
  11319. \**********************************************************************/
  11320. /*! no static exports found */
  11321. /***/ (function(module, exports, __webpack_require__) {
  11322. var identity = __webpack_require__(/*! ./identity */ "../../node_modules/lodash/identity.js");
  11323. /**
  11324. * Casts `value` to `identity` if it's not a function.
  11325. *
  11326. * @private
  11327. * @param {*} value The value to inspect.
  11328. * @returns {Function} Returns cast function.
  11329. */
  11330. function castFunction(value) {
  11331. return typeof value == 'function' ? value : identity;
  11332. }
  11333. module.exports = castFunction;
  11334. /***/ }),
  11335. /***/ "../../node_modules/lodash/_castPath.js":
  11336. /*!******************************************************************!*\
  11337. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_castPath.js ***!
  11338. \******************************************************************/
  11339. /*! no static exports found */
  11340. /***/ (function(module, exports, __webpack_require__) {
  11341. var isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  11342. isKey = __webpack_require__(/*! ./_isKey */ "../../node_modules/lodash/_isKey.js"),
  11343. stringToPath = __webpack_require__(/*! ./_stringToPath */ "../../node_modules/lodash/_stringToPath.js"),
  11344. toString = __webpack_require__(/*! ./toString */ "../../node_modules/lodash/toString.js");
  11345. /**
  11346. * Casts `value` to a path array if it's not one.
  11347. *
  11348. * @private
  11349. * @param {*} value The value to inspect.
  11350. * @param {Object} [object] The object to query keys on.
  11351. * @returns {Array} Returns the cast property path array.
  11352. */
  11353. function castPath(value, object) {
  11354. if (isArray(value)) {
  11355. return value;
  11356. }
  11357. return isKey(value, object) ? [value] : stringToPath(toString(value));
  11358. }
  11359. module.exports = castPath;
  11360. /***/ }),
  11361. /***/ "../../node_modules/lodash/_cloneArrayBuffer.js":
  11362. /*!**************************************************************************!*\
  11363. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_cloneArrayBuffer.js ***!
  11364. \**************************************************************************/
  11365. /*! no static exports found */
  11366. /***/ (function(module, exports, __webpack_require__) {
  11367. var Uint8Array = __webpack_require__(/*! ./_Uint8Array */ "../../node_modules/lodash/_Uint8Array.js");
  11368. /**
  11369. * Creates a clone of `arrayBuffer`.
  11370. *
  11371. * @private
  11372. * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
  11373. * @returns {ArrayBuffer} Returns the cloned array buffer.
  11374. */
  11375. function cloneArrayBuffer(arrayBuffer) {
  11376. var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
  11377. new Uint8Array(result).set(new Uint8Array(arrayBuffer));
  11378. return result;
  11379. }
  11380. module.exports = cloneArrayBuffer;
  11381. /***/ }),
  11382. /***/ "../../node_modules/lodash/_cloneBuffer.js":
  11383. /*!*********************************************************************!*\
  11384. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_cloneBuffer.js ***!
  11385. \*********************************************************************/
  11386. /*! no static exports found */
  11387. /***/ (function(module, exports, __webpack_require__) {
  11388. /* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  11389. /** Detect free variable `exports`. */
  11390. var freeExports = true && exports && !exports.nodeType && exports;
  11391. /** Detect free variable `module`. */
  11392. var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
  11393. /** Detect the popular CommonJS extension `module.exports`. */
  11394. var moduleExports = freeModule && freeModule.exports === freeExports;
  11395. /** Built-in value references. */
  11396. var Buffer = moduleExports ? root.Buffer : undefined,
  11397. allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined;
  11398. /**
  11399. * Creates a clone of `buffer`.
  11400. *
  11401. * @private
  11402. * @param {Buffer} buffer The buffer to clone.
  11403. * @param {boolean} [isDeep] Specify a deep clone.
  11404. * @returns {Buffer} Returns the cloned buffer.
  11405. */
  11406. function cloneBuffer(buffer, isDeep) {
  11407. if (isDeep) {
  11408. return buffer.slice();
  11409. }
  11410. var length = buffer.length,
  11411. result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
  11412. buffer.copy(result);
  11413. return result;
  11414. }
  11415. module.exports = cloneBuffer;
  11416. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/module.js */ "../../node_modules/webpack/buildin/module.js")(module)))
  11417. /***/ }),
  11418. /***/ "../../node_modules/lodash/_cloneDataView.js":
  11419. /*!***********************************************************************!*\
  11420. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_cloneDataView.js ***!
  11421. \***********************************************************************/
  11422. /*! no static exports found */
  11423. /***/ (function(module, exports, __webpack_require__) {
  11424. var cloneArrayBuffer = __webpack_require__(/*! ./_cloneArrayBuffer */ "../../node_modules/lodash/_cloneArrayBuffer.js");
  11425. /**
  11426. * Creates a clone of `dataView`.
  11427. *
  11428. * @private
  11429. * @param {Object} dataView The data view to clone.
  11430. * @param {boolean} [isDeep] Specify a deep clone.
  11431. * @returns {Object} Returns the cloned data view.
  11432. */
  11433. function cloneDataView(dataView, isDeep) {
  11434. var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;
  11435. return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
  11436. }
  11437. module.exports = cloneDataView;
  11438. /***/ }),
  11439. /***/ "../../node_modules/lodash/_cloneRegExp.js":
  11440. /*!*********************************************************************!*\
  11441. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_cloneRegExp.js ***!
  11442. \*********************************************************************/
  11443. /*! no static exports found */
  11444. /***/ (function(module, exports) {
  11445. /** Used to match `RegExp` flags from their coerced string values. */
  11446. var reFlags = /\w*$/;
  11447. /**
  11448. * Creates a clone of `regexp`.
  11449. *
  11450. * @private
  11451. * @param {Object} regexp The regexp to clone.
  11452. * @returns {Object} Returns the cloned regexp.
  11453. */
  11454. function cloneRegExp(regexp) {
  11455. var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
  11456. result.lastIndex = regexp.lastIndex;
  11457. return result;
  11458. }
  11459. module.exports = cloneRegExp;
  11460. /***/ }),
  11461. /***/ "../../node_modules/lodash/_cloneSymbol.js":
  11462. /*!*********************************************************************!*\
  11463. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_cloneSymbol.js ***!
  11464. \*********************************************************************/
  11465. /*! no static exports found */
  11466. /***/ (function(module, exports, __webpack_require__) {
  11467. var Symbol = __webpack_require__(/*! ./_Symbol */ "../../node_modules/lodash/_Symbol.js");
  11468. /** Used to convert symbols to primitives and strings. */
  11469. var symbolProto = Symbol ? Symbol.prototype : undefined,
  11470. symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
  11471. /**
  11472. * Creates a clone of the `symbol` object.
  11473. *
  11474. * @private
  11475. * @param {Object} symbol The symbol object to clone.
  11476. * @returns {Object} Returns the cloned symbol object.
  11477. */
  11478. function cloneSymbol(symbol) {
  11479. return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
  11480. }
  11481. module.exports = cloneSymbol;
  11482. /***/ }),
  11483. /***/ "../../node_modules/lodash/_cloneTypedArray.js":
  11484. /*!*************************************************************************!*\
  11485. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_cloneTypedArray.js ***!
  11486. \*************************************************************************/
  11487. /*! no static exports found */
  11488. /***/ (function(module, exports, __webpack_require__) {
  11489. var cloneArrayBuffer = __webpack_require__(/*! ./_cloneArrayBuffer */ "../../node_modules/lodash/_cloneArrayBuffer.js");
  11490. /**
  11491. * Creates a clone of `typedArray`.
  11492. *
  11493. * @private
  11494. * @param {Object} typedArray The typed array to clone.
  11495. * @param {boolean} [isDeep] Specify a deep clone.
  11496. * @returns {Object} Returns the cloned typed array.
  11497. */
  11498. function cloneTypedArray(typedArray, isDeep) {
  11499. var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
  11500. return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
  11501. }
  11502. module.exports = cloneTypedArray;
  11503. /***/ }),
  11504. /***/ "../../node_modules/lodash/_compareAscending.js":
  11505. /*!**************************************************************************!*\
  11506. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_compareAscending.js ***!
  11507. \**************************************************************************/
  11508. /*! no static exports found */
  11509. /***/ (function(module, exports, __webpack_require__) {
  11510. var isSymbol = __webpack_require__(/*! ./isSymbol */ "../../node_modules/lodash/isSymbol.js");
  11511. /**
  11512. * Compares values to sort them in ascending order.
  11513. *
  11514. * @private
  11515. * @param {*} value The value to compare.
  11516. * @param {*} other The other value to compare.
  11517. * @returns {number} Returns the sort order indicator for `value`.
  11518. */
  11519. function compareAscending(value, other) {
  11520. if (value !== other) {
  11521. var valIsDefined = value !== undefined,
  11522. valIsNull = value === null,
  11523. valIsReflexive = value === value,
  11524. valIsSymbol = isSymbol(value);
  11525. var othIsDefined = other !== undefined,
  11526. othIsNull = other === null,
  11527. othIsReflexive = other === other,
  11528. othIsSymbol = isSymbol(other);
  11529. if ((!othIsNull && !othIsSymbol && !valIsSymbol && value > other) ||
  11530. (valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol) ||
  11531. (valIsNull && othIsDefined && othIsReflexive) ||
  11532. (!valIsDefined && othIsReflexive) ||
  11533. !valIsReflexive) {
  11534. return 1;
  11535. }
  11536. if ((!valIsNull && !valIsSymbol && !othIsSymbol && value < other) ||
  11537. (othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol) ||
  11538. (othIsNull && valIsDefined && valIsReflexive) ||
  11539. (!othIsDefined && valIsReflexive) ||
  11540. !othIsReflexive) {
  11541. return -1;
  11542. }
  11543. }
  11544. return 0;
  11545. }
  11546. module.exports = compareAscending;
  11547. /***/ }),
  11548. /***/ "../../node_modules/lodash/_compareMultiple.js":
  11549. /*!*************************************************************************!*\
  11550. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_compareMultiple.js ***!
  11551. \*************************************************************************/
  11552. /*! no static exports found */
  11553. /***/ (function(module, exports, __webpack_require__) {
  11554. var compareAscending = __webpack_require__(/*! ./_compareAscending */ "../../node_modules/lodash/_compareAscending.js");
  11555. /**
  11556. * Used by `_.orderBy` to compare multiple properties of a value to another
  11557. * and stable sort them.
  11558. *
  11559. * If `orders` is unspecified, all values are sorted in ascending order. Otherwise,
  11560. * specify an order of "desc" for descending or "asc" for ascending sort order
  11561. * of corresponding values.
  11562. *
  11563. * @private
  11564. * @param {Object} object The object to compare.
  11565. * @param {Object} other The other object to compare.
  11566. * @param {boolean[]|string[]} orders The order to sort by for each property.
  11567. * @returns {number} Returns the sort order indicator for `object`.
  11568. */
  11569. function compareMultiple(object, other, orders) {
  11570. var index = -1,
  11571. objCriteria = object.criteria,
  11572. othCriteria = other.criteria,
  11573. length = objCriteria.length,
  11574. ordersLength = orders.length;
  11575. while (++index < length) {
  11576. var result = compareAscending(objCriteria[index], othCriteria[index]);
  11577. if (result) {
  11578. if (index >= ordersLength) {
  11579. return result;
  11580. }
  11581. var order = orders[index];
  11582. return result * (order == 'desc' ? -1 : 1);
  11583. }
  11584. }
  11585. // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications
  11586. // that causes it, under certain circumstances, to provide the same value for
  11587. // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247
  11588. // for more details.
  11589. //
  11590. // This also ensures a stable sort in V8 and other engines.
  11591. // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.
  11592. return object.index - other.index;
  11593. }
  11594. module.exports = compareMultiple;
  11595. /***/ }),
  11596. /***/ "../../node_modules/lodash/_copyArray.js":
  11597. /*!*******************************************************************!*\
  11598. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_copyArray.js ***!
  11599. \*******************************************************************/
  11600. /*! no static exports found */
  11601. /***/ (function(module, exports) {
  11602. /**
  11603. * Copies the values of `source` to `array`.
  11604. *
  11605. * @private
  11606. * @param {Array} source The array to copy values from.
  11607. * @param {Array} [array=[]] The array to copy values to.
  11608. * @returns {Array} Returns `array`.
  11609. */
  11610. function copyArray(source, array) {
  11611. var index = -1,
  11612. length = source.length;
  11613. array || (array = Array(length));
  11614. while (++index < length) {
  11615. array[index] = source[index];
  11616. }
  11617. return array;
  11618. }
  11619. module.exports = copyArray;
  11620. /***/ }),
  11621. /***/ "../../node_modules/lodash/_copyObject.js":
  11622. /*!********************************************************************!*\
  11623. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_copyObject.js ***!
  11624. \********************************************************************/
  11625. /*! no static exports found */
  11626. /***/ (function(module, exports, __webpack_require__) {
  11627. var assignValue = __webpack_require__(/*! ./_assignValue */ "../../node_modules/lodash/_assignValue.js"),
  11628. baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ "../../node_modules/lodash/_baseAssignValue.js");
  11629. /**
  11630. * Copies properties of `source` to `object`.
  11631. *
  11632. * @private
  11633. * @param {Object} source The object to copy properties from.
  11634. * @param {Array} props The property identifiers to copy.
  11635. * @param {Object} [object={}] The object to copy properties to.
  11636. * @param {Function} [customizer] The function to customize copied values.
  11637. * @returns {Object} Returns `object`.
  11638. */
  11639. function copyObject(source, props, object, customizer) {
  11640. var isNew = !object;
  11641. object || (object = {});
  11642. var index = -1,
  11643. length = props.length;
  11644. while (++index < length) {
  11645. var key = props[index];
  11646. var newValue = customizer
  11647. ? customizer(object[key], source[key], key, object, source)
  11648. : undefined;
  11649. if (newValue === undefined) {
  11650. newValue = source[key];
  11651. }
  11652. if (isNew) {
  11653. baseAssignValue(object, key, newValue);
  11654. } else {
  11655. assignValue(object, key, newValue);
  11656. }
  11657. }
  11658. return object;
  11659. }
  11660. module.exports = copyObject;
  11661. /***/ }),
  11662. /***/ "../../node_modules/lodash/_copySymbols.js":
  11663. /*!*********************************************************************!*\
  11664. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_copySymbols.js ***!
  11665. \*********************************************************************/
  11666. /*! no static exports found */
  11667. /***/ (function(module, exports, __webpack_require__) {
  11668. var copyObject = __webpack_require__(/*! ./_copyObject */ "../../node_modules/lodash/_copyObject.js"),
  11669. getSymbols = __webpack_require__(/*! ./_getSymbols */ "../../node_modules/lodash/_getSymbols.js");
  11670. /**
  11671. * Copies own symbols of `source` to `object`.
  11672. *
  11673. * @private
  11674. * @param {Object} source The object to copy symbols from.
  11675. * @param {Object} [object={}] The object to copy symbols to.
  11676. * @returns {Object} Returns `object`.
  11677. */
  11678. function copySymbols(source, object) {
  11679. return copyObject(source, getSymbols(source), object);
  11680. }
  11681. module.exports = copySymbols;
  11682. /***/ }),
  11683. /***/ "../../node_modules/lodash/_copySymbolsIn.js":
  11684. /*!***********************************************************************!*\
  11685. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_copySymbolsIn.js ***!
  11686. \***********************************************************************/
  11687. /*! no static exports found */
  11688. /***/ (function(module, exports, __webpack_require__) {
  11689. var copyObject = __webpack_require__(/*! ./_copyObject */ "../../node_modules/lodash/_copyObject.js"),
  11690. getSymbolsIn = __webpack_require__(/*! ./_getSymbolsIn */ "../../node_modules/lodash/_getSymbolsIn.js");
  11691. /**
  11692. * Copies own and inherited symbols of `source` to `object`.
  11693. *
  11694. * @private
  11695. * @param {Object} source The object to copy symbols from.
  11696. * @param {Object} [object={}] The object to copy symbols to.
  11697. * @returns {Object} Returns `object`.
  11698. */
  11699. function copySymbolsIn(source, object) {
  11700. return copyObject(source, getSymbolsIn(source), object);
  11701. }
  11702. module.exports = copySymbolsIn;
  11703. /***/ }),
  11704. /***/ "../../node_modules/lodash/_coreJsData.js":
  11705. /*!********************************************************************!*\
  11706. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_coreJsData.js ***!
  11707. \********************************************************************/
  11708. /*! no static exports found */
  11709. /***/ (function(module, exports, __webpack_require__) {
  11710. var root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  11711. /** Used to detect overreaching core-js shims. */
  11712. var coreJsData = root['__core-js_shared__'];
  11713. module.exports = coreJsData;
  11714. /***/ }),
  11715. /***/ "../../node_modules/lodash/_createAssigner.js":
  11716. /*!************************************************************************!*\
  11717. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_createAssigner.js ***!
  11718. \************************************************************************/
  11719. /*! no static exports found */
  11720. /***/ (function(module, exports, __webpack_require__) {
  11721. var baseRest = __webpack_require__(/*! ./_baseRest */ "../../node_modules/lodash/_baseRest.js"),
  11722. isIterateeCall = __webpack_require__(/*! ./_isIterateeCall */ "../../node_modules/lodash/_isIterateeCall.js");
  11723. /**
  11724. * Creates a function like `_.assign`.
  11725. *
  11726. * @private
  11727. * @param {Function} assigner The function to assign values.
  11728. * @returns {Function} Returns the new assigner function.
  11729. */
  11730. function createAssigner(assigner) {
  11731. return baseRest(function(object, sources) {
  11732. var index = -1,
  11733. length = sources.length,
  11734. customizer = length > 1 ? sources[length - 1] : undefined,
  11735. guard = length > 2 ? sources[2] : undefined;
  11736. customizer = (assigner.length > 3 && typeof customizer == 'function')
  11737. ? (length--, customizer)
  11738. : undefined;
  11739. if (guard && isIterateeCall(sources[0], sources[1], guard)) {
  11740. customizer = length < 3 ? undefined : customizer;
  11741. length = 1;
  11742. }
  11743. object = Object(object);
  11744. while (++index < length) {
  11745. var source = sources[index];
  11746. if (source) {
  11747. assigner(object, source, index, customizer);
  11748. }
  11749. }
  11750. return object;
  11751. });
  11752. }
  11753. module.exports = createAssigner;
  11754. /***/ }),
  11755. /***/ "../../node_modules/lodash/_createBaseEach.js":
  11756. /*!************************************************************************!*\
  11757. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_createBaseEach.js ***!
  11758. \************************************************************************/
  11759. /*! no static exports found */
  11760. /***/ (function(module, exports, __webpack_require__) {
  11761. var isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js");
  11762. /**
  11763. * Creates a `baseEach` or `baseEachRight` function.
  11764. *
  11765. * @private
  11766. * @param {Function} eachFunc The function to iterate over a collection.
  11767. * @param {boolean} [fromRight] Specify iterating from right to left.
  11768. * @returns {Function} Returns the new base function.
  11769. */
  11770. function createBaseEach(eachFunc, fromRight) {
  11771. return function(collection, iteratee) {
  11772. if (collection == null) {
  11773. return collection;
  11774. }
  11775. if (!isArrayLike(collection)) {
  11776. return eachFunc(collection, iteratee);
  11777. }
  11778. var length = collection.length,
  11779. index = fromRight ? length : -1,
  11780. iterable = Object(collection);
  11781. while ((fromRight ? index-- : ++index < length)) {
  11782. if (iteratee(iterable[index], index, iterable) === false) {
  11783. break;
  11784. }
  11785. }
  11786. return collection;
  11787. };
  11788. }
  11789. module.exports = createBaseEach;
  11790. /***/ }),
  11791. /***/ "../../node_modules/lodash/_createBaseFor.js":
  11792. /*!***********************************************************************!*\
  11793. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_createBaseFor.js ***!
  11794. \***********************************************************************/
  11795. /*! no static exports found */
  11796. /***/ (function(module, exports) {
  11797. /**
  11798. * Creates a base function for methods like `_.forIn` and `_.forOwn`.
  11799. *
  11800. * @private
  11801. * @param {boolean} [fromRight] Specify iterating from right to left.
  11802. * @returns {Function} Returns the new base function.
  11803. */
  11804. function createBaseFor(fromRight) {
  11805. return function(object, iteratee, keysFunc) {
  11806. var index = -1,
  11807. iterable = Object(object),
  11808. props = keysFunc(object),
  11809. length = props.length;
  11810. while (length--) {
  11811. var key = props[fromRight ? length : ++index];
  11812. if (iteratee(iterable[key], key, iterable) === false) {
  11813. break;
  11814. }
  11815. }
  11816. return object;
  11817. };
  11818. }
  11819. module.exports = createBaseFor;
  11820. /***/ }),
  11821. /***/ "../../node_modules/lodash/_createFind.js":
  11822. /*!********************************************************************!*\
  11823. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_createFind.js ***!
  11824. \********************************************************************/
  11825. /*! no static exports found */
  11826. /***/ (function(module, exports, __webpack_require__) {
  11827. var baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../node_modules/lodash/_baseIteratee.js"),
  11828. isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js"),
  11829. keys = __webpack_require__(/*! ./keys */ "../../node_modules/lodash/keys.js");
  11830. /**
  11831. * Creates a `_.find` or `_.findLast` function.
  11832. *
  11833. * @private
  11834. * @param {Function} findIndexFunc The function to find the collection index.
  11835. * @returns {Function} Returns the new find function.
  11836. */
  11837. function createFind(findIndexFunc) {
  11838. return function(collection, predicate, fromIndex) {
  11839. var iterable = Object(collection);
  11840. if (!isArrayLike(collection)) {
  11841. var iteratee = baseIteratee(predicate, 3);
  11842. collection = keys(collection);
  11843. predicate = function(key) { return iteratee(iterable[key], key, iterable); };
  11844. }
  11845. var index = findIndexFunc(collection, predicate, fromIndex);
  11846. return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined;
  11847. };
  11848. }
  11849. module.exports = createFind;
  11850. /***/ }),
  11851. /***/ "../../node_modules/lodash/_createRange.js":
  11852. /*!*********************************************************************!*\
  11853. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_createRange.js ***!
  11854. \*********************************************************************/
  11855. /*! no static exports found */
  11856. /***/ (function(module, exports, __webpack_require__) {
  11857. var baseRange = __webpack_require__(/*! ./_baseRange */ "../../node_modules/lodash/_baseRange.js"),
  11858. isIterateeCall = __webpack_require__(/*! ./_isIterateeCall */ "../../node_modules/lodash/_isIterateeCall.js"),
  11859. toFinite = __webpack_require__(/*! ./toFinite */ "../../node_modules/lodash/toFinite.js");
  11860. /**
  11861. * Creates a `_.range` or `_.rangeRight` function.
  11862. *
  11863. * @private
  11864. * @param {boolean} [fromRight] Specify iterating from right to left.
  11865. * @returns {Function} Returns the new range function.
  11866. */
  11867. function createRange(fromRight) {
  11868. return function(start, end, step) {
  11869. if (step && typeof step != 'number' && isIterateeCall(start, end, step)) {
  11870. end = step = undefined;
  11871. }
  11872. // Ensure the sign of `-0` is preserved.
  11873. start = toFinite(start);
  11874. if (end === undefined) {
  11875. end = start;
  11876. start = 0;
  11877. } else {
  11878. end = toFinite(end);
  11879. }
  11880. step = step === undefined ? (start < end ? 1 : -1) : toFinite(step);
  11881. return baseRange(start, end, step, fromRight);
  11882. };
  11883. }
  11884. module.exports = createRange;
  11885. /***/ }),
  11886. /***/ "../../node_modules/lodash/_createSet.js":
  11887. /*!*******************************************************************!*\
  11888. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_createSet.js ***!
  11889. \*******************************************************************/
  11890. /*! no static exports found */
  11891. /***/ (function(module, exports, __webpack_require__) {
  11892. var Set = __webpack_require__(/*! ./_Set */ "../../node_modules/lodash/_Set.js"),
  11893. noop = __webpack_require__(/*! ./noop */ "../../node_modules/lodash/noop.js"),
  11894. setToArray = __webpack_require__(/*! ./_setToArray */ "../../node_modules/lodash/_setToArray.js");
  11895. /** Used as references for various `Number` constants. */
  11896. var INFINITY = 1 / 0;
  11897. /**
  11898. * Creates a set object of `values`.
  11899. *
  11900. * @private
  11901. * @param {Array} values The values to add to the set.
  11902. * @returns {Object} Returns the new set.
  11903. */
  11904. var createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) {
  11905. return new Set(values);
  11906. };
  11907. module.exports = createSet;
  11908. /***/ }),
  11909. /***/ "../../node_modules/lodash/_defineProperty.js":
  11910. /*!************************************************************************!*\
  11911. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_defineProperty.js ***!
  11912. \************************************************************************/
  11913. /*! no static exports found */
  11914. /***/ (function(module, exports, __webpack_require__) {
  11915. var getNative = __webpack_require__(/*! ./_getNative */ "../../node_modules/lodash/_getNative.js");
  11916. var defineProperty = (function() {
  11917. try {
  11918. var func = getNative(Object, 'defineProperty');
  11919. func({}, '', {});
  11920. return func;
  11921. } catch (e) {}
  11922. }());
  11923. module.exports = defineProperty;
  11924. /***/ }),
  11925. /***/ "../../node_modules/lodash/_equalArrays.js":
  11926. /*!*********************************************************************!*\
  11927. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_equalArrays.js ***!
  11928. \*********************************************************************/
  11929. /*! no static exports found */
  11930. /***/ (function(module, exports, __webpack_require__) {
  11931. var SetCache = __webpack_require__(/*! ./_SetCache */ "../../node_modules/lodash/_SetCache.js"),
  11932. arraySome = __webpack_require__(/*! ./_arraySome */ "../../node_modules/lodash/_arraySome.js"),
  11933. cacheHas = __webpack_require__(/*! ./_cacheHas */ "../../node_modules/lodash/_cacheHas.js");
  11934. /** Used to compose bitmasks for value comparisons. */
  11935. var COMPARE_PARTIAL_FLAG = 1,
  11936. COMPARE_UNORDERED_FLAG = 2;
  11937. /**
  11938. * A specialized version of `baseIsEqualDeep` for arrays with support for
  11939. * partial deep comparisons.
  11940. *
  11941. * @private
  11942. * @param {Array} array The array to compare.
  11943. * @param {Array} other The other array to compare.
  11944. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  11945. * @param {Function} customizer The function to customize comparisons.
  11946. * @param {Function} equalFunc The function to determine equivalents of values.
  11947. * @param {Object} stack Tracks traversed `array` and `other` objects.
  11948. * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
  11949. */
  11950. function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
  11951. var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
  11952. arrLength = array.length,
  11953. othLength = other.length;
  11954. if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
  11955. return false;
  11956. }
  11957. // Assume cyclic values are equal.
  11958. var stacked = stack.get(array);
  11959. if (stacked && stack.get(other)) {
  11960. return stacked == other;
  11961. }
  11962. var index = -1,
  11963. result = true,
  11964. seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;
  11965. stack.set(array, other);
  11966. stack.set(other, array);
  11967. // Ignore non-index properties.
  11968. while (++index < arrLength) {
  11969. var arrValue = array[index],
  11970. othValue = other[index];
  11971. if (customizer) {
  11972. var compared = isPartial
  11973. ? customizer(othValue, arrValue, index, other, array, stack)
  11974. : customizer(arrValue, othValue, index, array, other, stack);
  11975. }
  11976. if (compared !== undefined) {
  11977. if (compared) {
  11978. continue;
  11979. }
  11980. result = false;
  11981. break;
  11982. }
  11983. // Recursively compare arrays (susceptible to call stack limits).
  11984. if (seen) {
  11985. if (!arraySome(other, function(othValue, othIndex) {
  11986. if (!cacheHas(seen, othIndex) &&
  11987. (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
  11988. return seen.push(othIndex);
  11989. }
  11990. })) {
  11991. result = false;
  11992. break;
  11993. }
  11994. } else if (!(
  11995. arrValue === othValue ||
  11996. equalFunc(arrValue, othValue, bitmask, customizer, stack)
  11997. )) {
  11998. result = false;
  11999. break;
  12000. }
  12001. }
  12002. stack['delete'](array);
  12003. stack['delete'](other);
  12004. return result;
  12005. }
  12006. module.exports = equalArrays;
  12007. /***/ }),
  12008. /***/ "../../node_modules/lodash/_equalByTag.js":
  12009. /*!********************************************************************!*\
  12010. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_equalByTag.js ***!
  12011. \********************************************************************/
  12012. /*! no static exports found */
  12013. /***/ (function(module, exports, __webpack_require__) {
  12014. var Symbol = __webpack_require__(/*! ./_Symbol */ "../../node_modules/lodash/_Symbol.js"),
  12015. Uint8Array = __webpack_require__(/*! ./_Uint8Array */ "../../node_modules/lodash/_Uint8Array.js"),
  12016. eq = __webpack_require__(/*! ./eq */ "../../node_modules/lodash/eq.js"),
  12017. equalArrays = __webpack_require__(/*! ./_equalArrays */ "../../node_modules/lodash/_equalArrays.js"),
  12018. mapToArray = __webpack_require__(/*! ./_mapToArray */ "../../node_modules/lodash/_mapToArray.js"),
  12019. setToArray = __webpack_require__(/*! ./_setToArray */ "../../node_modules/lodash/_setToArray.js");
  12020. /** Used to compose bitmasks for value comparisons. */
  12021. var COMPARE_PARTIAL_FLAG = 1,
  12022. COMPARE_UNORDERED_FLAG = 2;
  12023. /** `Object#toString` result references. */
  12024. var boolTag = '[object Boolean]',
  12025. dateTag = '[object Date]',
  12026. errorTag = '[object Error]',
  12027. mapTag = '[object Map]',
  12028. numberTag = '[object Number]',
  12029. regexpTag = '[object RegExp]',
  12030. setTag = '[object Set]',
  12031. stringTag = '[object String]',
  12032. symbolTag = '[object Symbol]';
  12033. var arrayBufferTag = '[object ArrayBuffer]',
  12034. dataViewTag = '[object DataView]';
  12035. /** Used to convert symbols to primitives and strings. */
  12036. var symbolProto = Symbol ? Symbol.prototype : undefined,
  12037. symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
  12038. /**
  12039. * A specialized version of `baseIsEqualDeep` for comparing objects of
  12040. * the same `toStringTag`.
  12041. *
  12042. * **Note:** This function only supports comparing values with tags of
  12043. * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
  12044. *
  12045. * @private
  12046. * @param {Object} object The object to compare.
  12047. * @param {Object} other The other object to compare.
  12048. * @param {string} tag The `toStringTag` of the objects to compare.
  12049. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  12050. * @param {Function} customizer The function to customize comparisons.
  12051. * @param {Function} equalFunc The function to determine equivalents of values.
  12052. * @param {Object} stack Tracks traversed `object` and `other` objects.
  12053. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  12054. */
  12055. function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
  12056. switch (tag) {
  12057. case dataViewTag:
  12058. if ((object.byteLength != other.byteLength) ||
  12059. (object.byteOffset != other.byteOffset)) {
  12060. return false;
  12061. }
  12062. object = object.buffer;
  12063. other = other.buffer;
  12064. case arrayBufferTag:
  12065. if ((object.byteLength != other.byteLength) ||
  12066. !equalFunc(new Uint8Array(object), new Uint8Array(other))) {
  12067. return false;
  12068. }
  12069. return true;
  12070. case boolTag:
  12071. case dateTag:
  12072. case numberTag:
  12073. // Coerce booleans to `1` or `0` and dates to milliseconds.
  12074. // Invalid dates are coerced to `NaN`.
  12075. return eq(+object, +other);
  12076. case errorTag:
  12077. return object.name == other.name && object.message == other.message;
  12078. case regexpTag:
  12079. case stringTag:
  12080. // Coerce regexes to strings and treat strings, primitives and objects,
  12081. // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
  12082. // for more details.
  12083. return object == (other + '');
  12084. case mapTag:
  12085. var convert = mapToArray;
  12086. case setTag:
  12087. var isPartial = bitmask & COMPARE_PARTIAL_FLAG;
  12088. convert || (convert = setToArray);
  12089. if (object.size != other.size && !isPartial) {
  12090. return false;
  12091. }
  12092. // Assume cyclic values are equal.
  12093. var stacked = stack.get(object);
  12094. if (stacked) {
  12095. return stacked == other;
  12096. }
  12097. bitmask |= COMPARE_UNORDERED_FLAG;
  12098. // Recursively compare objects (susceptible to call stack limits).
  12099. stack.set(object, other);
  12100. var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
  12101. stack['delete'](object);
  12102. return result;
  12103. case symbolTag:
  12104. if (symbolValueOf) {
  12105. return symbolValueOf.call(object) == symbolValueOf.call(other);
  12106. }
  12107. }
  12108. return false;
  12109. }
  12110. module.exports = equalByTag;
  12111. /***/ }),
  12112. /***/ "../../node_modules/lodash/_equalObjects.js":
  12113. /*!**********************************************************************!*\
  12114. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_equalObjects.js ***!
  12115. \**********************************************************************/
  12116. /*! no static exports found */
  12117. /***/ (function(module, exports, __webpack_require__) {
  12118. var getAllKeys = __webpack_require__(/*! ./_getAllKeys */ "../../node_modules/lodash/_getAllKeys.js");
  12119. /** Used to compose bitmasks for value comparisons. */
  12120. var COMPARE_PARTIAL_FLAG = 1;
  12121. /** Used for built-in method references. */
  12122. var objectProto = Object.prototype;
  12123. /** Used to check objects for own properties. */
  12124. var hasOwnProperty = objectProto.hasOwnProperty;
  12125. /**
  12126. * A specialized version of `baseIsEqualDeep` for objects with support for
  12127. * partial deep comparisons.
  12128. *
  12129. * @private
  12130. * @param {Object} object The object to compare.
  12131. * @param {Object} other The other object to compare.
  12132. * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.
  12133. * @param {Function} customizer The function to customize comparisons.
  12134. * @param {Function} equalFunc The function to determine equivalents of values.
  12135. * @param {Object} stack Tracks traversed `object` and `other` objects.
  12136. * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
  12137. */
  12138. function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
  12139. var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
  12140. objProps = getAllKeys(object),
  12141. objLength = objProps.length,
  12142. othProps = getAllKeys(other),
  12143. othLength = othProps.length;
  12144. if (objLength != othLength && !isPartial) {
  12145. return false;
  12146. }
  12147. var index = objLength;
  12148. while (index--) {
  12149. var key = objProps[index];
  12150. if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {
  12151. return false;
  12152. }
  12153. }
  12154. // Assume cyclic values are equal.
  12155. var stacked = stack.get(object);
  12156. if (stacked && stack.get(other)) {
  12157. return stacked == other;
  12158. }
  12159. var result = true;
  12160. stack.set(object, other);
  12161. stack.set(other, object);
  12162. var skipCtor = isPartial;
  12163. while (++index < objLength) {
  12164. key = objProps[index];
  12165. var objValue = object[key],
  12166. othValue = other[key];
  12167. if (customizer) {
  12168. var compared = isPartial
  12169. ? customizer(othValue, objValue, key, other, object, stack)
  12170. : customizer(objValue, othValue, key, object, other, stack);
  12171. }
  12172. // Recursively compare objects (susceptible to call stack limits).
  12173. if (!(compared === undefined
  12174. ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))
  12175. : compared
  12176. )) {
  12177. result = false;
  12178. break;
  12179. }
  12180. skipCtor || (skipCtor = key == 'constructor');
  12181. }
  12182. if (result && !skipCtor) {
  12183. var objCtor = object.constructor,
  12184. othCtor = other.constructor;
  12185. // Non `Object` object instances with different constructors are not equal.
  12186. if (objCtor != othCtor &&
  12187. ('constructor' in object && 'constructor' in other) &&
  12188. !(typeof objCtor == 'function' && objCtor instanceof objCtor &&
  12189. typeof othCtor == 'function' && othCtor instanceof othCtor)) {
  12190. result = false;
  12191. }
  12192. }
  12193. stack['delete'](object);
  12194. stack['delete'](other);
  12195. return result;
  12196. }
  12197. module.exports = equalObjects;
  12198. /***/ }),
  12199. /***/ "../../node_modules/lodash/_flatRest.js":
  12200. /*!******************************************************************!*\
  12201. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_flatRest.js ***!
  12202. \******************************************************************/
  12203. /*! no static exports found */
  12204. /***/ (function(module, exports, __webpack_require__) {
  12205. var flatten = __webpack_require__(/*! ./flatten */ "../../node_modules/lodash/flatten.js"),
  12206. overRest = __webpack_require__(/*! ./_overRest */ "../../node_modules/lodash/_overRest.js"),
  12207. setToString = __webpack_require__(/*! ./_setToString */ "../../node_modules/lodash/_setToString.js");
  12208. /**
  12209. * A specialized version of `baseRest` which flattens the rest array.
  12210. *
  12211. * @private
  12212. * @param {Function} func The function to apply a rest parameter to.
  12213. * @returns {Function} Returns the new function.
  12214. */
  12215. function flatRest(func) {
  12216. return setToString(overRest(func, undefined, flatten), func + '');
  12217. }
  12218. module.exports = flatRest;
  12219. /***/ }),
  12220. /***/ "../../node_modules/lodash/_freeGlobal.js":
  12221. /*!********************************************************************!*\
  12222. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_freeGlobal.js ***!
  12223. \********************************************************************/
  12224. /*! no static exports found */
  12225. /***/ (function(module, exports, __webpack_require__) {
  12226. /* WEBPACK VAR INJECTION */(function(global) {/** Detect free variable `global` from Node.js. */
  12227. var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
  12228. module.exports = freeGlobal;
  12229. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ "../../node_modules/webpack/buildin/global.js")))
  12230. /***/ }),
  12231. /***/ "../../node_modules/lodash/_getAllKeys.js":
  12232. /*!********************************************************************!*\
  12233. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_getAllKeys.js ***!
  12234. \********************************************************************/
  12235. /*! no static exports found */
  12236. /***/ (function(module, exports, __webpack_require__) {
  12237. var baseGetAllKeys = __webpack_require__(/*! ./_baseGetAllKeys */ "../../node_modules/lodash/_baseGetAllKeys.js"),
  12238. getSymbols = __webpack_require__(/*! ./_getSymbols */ "../../node_modules/lodash/_getSymbols.js"),
  12239. keys = __webpack_require__(/*! ./keys */ "../../node_modules/lodash/keys.js");
  12240. /**
  12241. * Creates an array of own enumerable property names and symbols of `object`.
  12242. *
  12243. * @private
  12244. * @param {Object} object The object to query.
  12245. * @returns {Array} Returns the array of property names and symbols.
  12246. */
  12247. function getAllKeys(object) {
  12248. return baseGetAllKeys(object, keys, getSymbols);
  12249. }
  12250. module.exports = getAllKeys;
  12251. /***/ }),
  12252. /***/ "../../node_modules/lodash/_getAllKeysIn.js":
  12253. /*!**********************************************************************!*\
  12254. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_getAllKeysIn.js ***!
  12255. \**********************************************************************/
  12256. /*! no static exports found */
  12257. /***/ (function(module, exports, __webpack_require__) {
  12258. var baseGetAllKeys = __webpack_require__(/*! ./_baseGetAllKeys */ "../../node_modules/lodash/_baseGetAllKeys.js"),
  12259. getSymbolsIn = __webpack_require__(/*! ./_getSymbolsIn */ "../../node_modules/lodash/_getSymbolsIn.js"),
  12260. keysIn = __webpack_require__(/*! ./keysIn */ "../../node_modules/lodash/keysIn.js");
  12261. /**
  12262. * Creates an array of own and inherited enumerable property names and
  12263. * symbols of `object`.
  12264. *
  12265. * @private
  12266. * @param {Object} object The object to query.
  12267. * @returns {Array} Returns the array of property names and symbols.
  12268. */
  12269. function getAllKeysIn(object) {
  12270. return baseGetAllKeys(object, keysIn, getSymbolsIn);
  12271. }
  12272. module.exports = getAllKeysIn;
  12273. /***/ }),
  12274. /***/ "../../node_modules/lodash/_getMapData.js":
  12275. /*!********************************************************************!*\
  12276. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_getMapData.js ***!
  12277. \********************************************************************/
  12278. /*! no static exports found */
  12279. /***/ (function(module, exports, __webpack_require__) {
  12280. var isKeyable = __webpack_require__(/*! ./_isKeyable */ "../../node_modules/lodash/_isKeyable.js");
  12281. /**
  12282. * Gets the data for `map`.
  12283. *
  12284. * @private
  12285. * @param {Object} map The map to query.
  12286. * @param {string} key The reference key.
  12287. * @returns {*} Returns the map data.
  12288. */
  12289. function getMapData(map, key) {
  12290. var data = map.__data__;
  12291. return isKeyable(key)
  12292. ? data[typeof key == 'string' ? 'string' : 'hash']
  12293. : data.map;
  12294. }
  12295. module.exports = getMapData;
  12296. /***/ }),
  12297. /***/ "../../node_modules/lodash/_getMatchData.js":
  12298. /*!**********************************************************************!*\
  12299. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_getMatchData.js ***!
  12300. \**********************************************************************/
  12301. /*! no static exports found */
  12302. /***/ (function(module, exports, __webpack_require__) {
  12303. var isStrictComparable = __webpack_require__(/*! ./_isStrictComparable */ "../../node_modules/lodash/_isStrictComparable.js"),
  12304. keys = __webpack_require__(/*! ./keys */ "../../node_modules/lodash/keys.js");
  12305. /**
  12306. * Gets the property names, values, and compare flags of `object`.
  12307. *
  12308. * @private
  12309. * @param {Object} object The object to query.
  12310. * @returns {Array} Returns the match data of `object`.
  12311. */
  12312. function getMatchData(object) {
  12313. var result = keys(object),
  12314. length = result.length;
  12315. while (length--) {
  12316. var key = result[length],
  12317. value = object[key];
  12318. result[length] = [key, value, isStrictComparable(value)];
  12319. }
  12320. return result;
  12321. }
  12322. module.exports = getMatchData;
  12323. /***/ }),
  12324. /***/ "../../node_modules/lodash/_getNative.js":
  12325. /*!*******************************************************************!*\
  12326. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_getNative.js ***!
  12327. \*******************************************************************/
  12328. /*! no static exports found */
  12329. /***/ (function(module, exports, __webpack_require__) {
  12330. var baseIsNative = __webpack_require__(/*! ./_baseIsNative */ "../../node_modules/lodash/_baseIsNative.js"),
  12331. getValue = __webpack_require__(/*! ./_getValue */ "../../node_modules/lodash/_getValue.js");
  12332. /**
  12333. * Gets the native function at `key` of `object`.
  12334. *
  12335. * @private
  12336. * @param {Object} object The object to query.
  12337. * @param {string} key The key of the method to get.
  12338. * @returns {*} Returns the function if it's native, else `undefined`.
  12339. */
  12340. function getNative(object, key) {
  12341. var value = getValue(object, key);
  12342. return baseIsNative(value) ? value : undefined;
  12343. }
  12344. module.exports = getNative;
  12345. /***/ }),
  12346. /***/ "../../node_modules/lodash/_getPrototype.js":
  12347. /*!**********************************************************************!*\
  12348. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_getPrototype.js ***!
  12349. \**********************************************************************/
  12350. /*! no static exports found */
  12351. /***/ (function(module, exports, __webpack_require__) {
  12352. var overArg = __webpack_require__(/*! ./_overArg */ "../../node_modules/lodash/_overArg.js");
  12353. /** Built-in value references. */
  12354. var getPrototype = overArg(Object.getPrototypeOf, Object);
  12355. module.exports = getPrototype;
  12356. /***/ }),
  12357. /***/ "../../node_modules/lodash/_getRawTag.js":
  12358. /*!*******************************************************************!*\
  12359. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_getRawTag.js ***!
  12360. \*******************************************************************/
  12361. /*! no static exports found */
  12362. /***/ (function(module, exports, __webpack_require__) {
  12363. var Symbol = __webpack_require__(/*! ./_Symbol */ "../../node_modules/lodash/_Symbol.js");
  12364. /** Used for built-in method references. */
  12365. var objectProto = Object.prototype;
  12366. /** Used to check objects for own properties. */
  12367. var hasOwnProperty = objectProto.hasOwnProperty;
  12368. /**
  12369. * Used to resolve the
  12370. * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
  12371. * of values.
  12372. */
  12373. var nativeObjectToString = objectProto.toString;
  12374. /** Built-in value references. */
  12375. var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
  12376. /**
  12377. * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
  12378. *
  12379. * @private
  12380. * @param {*} value The value to query.
  12381. * @returns {string} Returns the raw `toStringTag`.
  12382. */
  12383. function getRawTag(value) {
  12384. var isOwn = hasOwnProperty.call(value, symToStringTag),
  12385. tag = value[symToStringTag];
  12386. try {
  12387. value[symToStringTag] = undefined;
  12388. var unmasked = true;
  12389. } catch (e) {}
  12390. var result = nativeObjectToString.call(value);
  12391. if (unmasked) {
  12392. if (isOwn) {
  12393. value[symToStringTag] = tag;
  12394. } else {
  12395. delete value[symToStringTag];
  12396. }
  12397. }
  12398. return result;
  12399. }
  12400. module.exports = getRawTag;
  12401. /***/ }),
  12402. /***/ "../../node_modules/lodash/_getSymbols.js":
  12403. /*!********************************************************************!*\
  12404. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_getSymbols.js ***!
  12405. \********************************************************************/
  12406. /*! no static exports found */
  12407. /***/ (function(module, exports, __webpack_require__) {
  12408. var arrayFilter = __webpack_require__(/*! ./_arrayFilter */ "../../node_modules/lodash/_arrayFilter.js"),
  12409. stubArray = __webpack_require__(/*! ./stubArray */ "../../node_modules/lodash/stubArray.js");
  12410. /** Used for built-in method references. */
  12411. var objectProto = Object.prototype;
  12412. /** Built-in value references. */
  12413. var propertyIsEnumerable = objectProto.propertyIsEnumerable;
  12414. /* Built-in method references for those with the same name as other `lodash` methods. */
  12415. var nativeGetSymbols = Object.getOwnPropertySymbols;
  12416. /**
  12417. * Creates an array of the own enumerable symbols of `object`.
  12418. *
  12419. * @private
  12420. * @param {Object} object The object to query.
  12421. * @returns {Array} Returns the array of symbols.
  12422. */
  12423. var getSymbols = !nativeGetSymbols ? stubArray : function(object) {
  12424. if (object == null) {
  12425. return [];
  12426. }
  12427. object = Object(object);
  12428. return arrayFilter(nativeGetSymbols(object), function(symbol) {
  12429. return propertyIsEnumerable.call(object, symbol);
  12430. });
  12431. };
  12432. module.exports = getSymbols;
  12433. /***/ }),
  12434. /***/ "../../node_modules/lodash/_getSymbolsIn.js":
  12435. /*!**********************************************************************!*\
  12436. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_getSymbolsIn.js ***!
  12437. \**********************************************************************/
  12438. /*! no static exports found */
  12439. /***/ (function(module, exports, __webpack_require__) {
  12440. var arrayPush = __webpack_require__(/*! ./_arrayPush */ "../../node_modules/lodash/_arrayPush.js"),
  12441. getPrototype = __webpack_require__(/*! ./_getPrototype */ "../../node_modules/lodash/_getPrototype.js"),
  12442. getSymbols = __webpack_require__(/*! ./_getSymbols */ "../../node_modules/lodash/_getSymbols.js"),
  12443. stubArray = __webpack_require__(/*! ./stubArray */ "../../node_modules/lodash/stubArray.js");
  12444. /* Built-in method references for those with the same name as other `lodash` methods. */
  12445. var nativeGetSymbols = Object.getOwnPropertySymbols;
  12446. /**
  12447. * Creates an array of the own and inherited enumerable symbols of `object`.
  12448. *
  12449. * @private
  12450. * @param {Object} object The object to query.
  12451. * @returns {Array} Returns the array of symbols.
  12452. */
  12453. var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {
  12454. var result = [];
  12455. while (object) {
  12456. arrayPush(result, getSymbols(object));
  12457. object = getPrototype(object);
  12458. }
  12459. return result;
  12460. };
  12461. module.exports = getSymbolsIn;
  12462. /***/ }),
  12463. /***/ "../../node_modules/lodash/_getTag.js":
  12464. /*!****************************************************************!*\
  12465. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_getTag.js ***!
  12466. \****************************************************************/
  12467. /*! no static exports found */
  12468. /***/ (function(module, exports, __webpack_require__) {
  12469. var DataView = __webpack_require__(/*! ./_DataView */ "../../node_modules/lodash/_DataView.js"),
  12470. Map = __webpack_require__(/*! ./_Map */ "../../node_modules/lodash/_Map.js"),
  12471. Promise = __webpack_require__(/*! ./_Promise */ "../../node_modules/lodash/_Promise.js"),
  12472. Set = __webpack_require__(/*! ./_Set */ "../../node_modules/lodash/_Set.js"),
  12473. WeakMap = __webpack_require__(/*! ./_WeakMap */ "../../node_modules/lodash/_WeakMap.js"),
  12474. baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../node_modules/lodash/_baseGetTag.js"),
  12475. toSource = __webpack_require__(/*! ./_toSource */ "../../node_modules/lodash/_toSource.js");
  12476. /** `Object#toString` result references. */
  12477. var mapTag = '[object Map]',
  12478. objectTag = '[object Object]',
  12479. promiseTag = '[object Promise]',
  12480. setTag = '[object Set]',
  12481. weakMapTag = '[object WeakMap]';
  12482. var dataViewTag = '[object DataView]';
  12483. /** Used to detect maps, sets, and weakmaps. */
  12484. var dataViewCtorString = toSource(DataView),
  12485. mapCtorString = toSource(Map),
  12486. promiseCtorString = toSource(Promise),
  12487. setCtorString = toSource(Set),
  12488. weakMapCtorString = toSource(WeakMap);
  12489. /**
  12490. * Gets the `toStringTag` of `value`.
  12491. *
  12492. * @private
  12493. * @param {*} value The value to query.
  12494. * @returns {string} Returns the `toStringTag`.
  12495. */
  12496. var getTag = baseGetTag;
  12497. // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
  12498. if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
  12499. (Map && getTag(new Map) != mapTag) ||
  12500. (Promise && getTag(Promise.resolve()) != promiseTag) ||
  12501. (Set && getTag(new Set) != setTag) ||
  12502. (WeakMap && getTag(new WeakMap) != weakMapTag)) {
  12503. getTag = function(value) {
  12504. var result = baseGetTag(value),
  12505. Ctor = result == objectTag ? value.constructor : undefined,
  12506. ctorString = Ctor ? toSource(Ctor) : '';
  12507. if (ctorString) {
  12508. switch (ctorString) {
  12509. case dataViewCtorString: return dataViewTag;
  12510. case mapCtorString: return mapTag;
  12511. case promiseCtorString: return promiseTag;
  12512. case setCtorString: return setTag;
  12513. case weakMapCtorString: return weakMapTag;
  12514. }
  12515. }
  12516. return result;
  12517. };
  12518. }
  12519. module.exports = getTag;
  12520. /***/ }),
  12521. /***/ "../../node_modules/lodash/_getValue.js":
  12522. /*!******************************************************************!*\
  12523. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_getValue.js ***!
  12524. \******************************************************************/
  12525. /*! no static exports found */
  12526. /***/ (function(module, exports) {
  12527. /**
  12528. * Gets the value at `key` of `object`.
  12529. *
  12530. * @private
  12531. * @param {Object} [object] The object to query.
  12532. * @param {string} key The key of the property to get.
  12533. * @returns {*} Returns the property value.
  12534. */
  12535. function getValue(object, key) {
  12536. return object == null ? undefined : object[key];
  12537. }
  12538. module.exports = getValue;
  12539. /***/ }),
  12540. /***/ "../../node_modules/lodash/_hasPath.js":
  12541. /*!*****************************************************************!*\
  12542. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_hasPath.js ***!
  12543. \*****************************************************************/
  12544. /*! no static exports found */
  12545. /***/ (function(module, exports, __webpack_require__) {
  12546. var castPath = __webpack_require__(/*! ./_castPath */ "../../node_modules/lodash/_castPath.js"),
  12547. isArguments = __webpack_require__(/*! ./isArguments */ "../../node_modules/lodash/isArguments.js"),
  12548. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  12549. isIndex = __webpack_require__(/*! ./_isIndex */ "../../node_modules/lodash/_isIndex.js"),
  12550. isLength = __webpack_require__(/*! ./isLength */ "../../node_modules/lodash/isLength.js"),
  12551. toKey = __webpack_require__(/*! ./_toKey */ "../../node_modules/lodash/_toKey.js");
  12552. /**
  12553. * Checks if `path` exists on `object`.
  12554. *
  12555. * @private
  12556. * @param {Object} object The object to query.
  12557. * @param {Array|string} path The path to check.
  12558. * @param {Function} hasFunc The function to check properties.
  12559. * @returns {boolean} Returns `true` if `path` exists, else `false`.
  12560. */
  12561. function hasPath(object, path, hasFunc) {
  12562. path = castPath(path, object);
  12563. var index = -1,
  12564. length = path.length,
  12565. result = false;
  12566. while (++index < length) {
  12567. var key = toKey(path[index]);
  12568. if (!(result = object != null && hasFunc(object, key))) {
  12569. break;
  12570. }
  12571. object = object[key];
  12572. }
  12573. if (result || ++index != length) {
  12574. return result;
  12575. }
  12576. length = object == null ? 0 : object.length;
  12577. return !!length && isLength(length) && isIndex(key, length) &&
  12578. (isArray(object) || isArguments(object));
  12579. }
  12580. module.exports = hasPath;
  12581. /***/ }),
  12582. /***/ "../../node_modules/lodash/_hasUnicode.js":
  12583. /*!********************************************************************!*\
  12584. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_hasUnicode.js ***!
  12585. \********************************************************************/
  12586. /*! no static exports found */
  12587. /***/ (function(module, exports) {
  12588. /** Used to compose unicode character classes. */
  12589. var rsAstralRange = '\\ud800-\\udfff',
  12590. rsComboMarksRange = '\\u0300-\\u036f',
  12591. reComboHalfMarksRange = '\\ufe20-\\ufe2f',
  12592. rsComboSymbolsRange = '\\u20d0-\\u20ff',
  12593. rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,
  12594. rsVarRange = '\\ufe0e\\ufe0f';
  12595. /** Used to compose unicode capture groups. */
  12596. var rsZWJ = '\\u200d';
  12597. /** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */
  12598. var reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + ']');
  12599. /**
  12600. * Checks if `string` contains Unicode symbols.
  12601. *
  12602. * @private
  12603. * @param {string} string The string to inspect.
  12604. * @returns {boolean} Returns `true` if a symbol is found, else `false`.
  12605. */
  12606. function hasUnicode(string) {
  12607. return reHasUnicode.test(string);
  12608. }
  12609. module.exports = hasUnicode;
  12610. /***/ }),
  12611. /***/ "../../node_modules/lodash/_hashClear.js":
  12612. /*!*******************************************************************!*\
  12613. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_hashClear.js ***!
  12614. \*******************************************************************/
  12615. /*! no static exports found */
  12616. /***/ (function(module, exports, __webpack_require__) {
  12617. var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "../../node_modules/lodash/_nativeCreate.js");
  12618. /**
  12619. * Removes all key-value entries from the hash.
  12620. *
  12621. * @private
  12622. * @name clear
  12623. * @memberOf Hash
  12624. */
  12625. function hashClear() {
  12626. this.__data__ = nativeCreate ? nativeCreate(null) : {};
  12627. this.size = 0;
  12628. }
  12629. module.exports = hashClear;
  12630. /***/ }),
  12631. /***/ "../../node_modules/lodash/_hashDelete.js":
  12632. /*!********************************************************************!*\
  12633. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_hashDelete.js ***!
  12634. \********************************************************************/
  12635. /*! no static exports found */
  12636. /***/ (function(module, exports) {
  12637. /**
  12638. * Removes `key` and its value from the hash.
  12639. *
  12640. * @private
  12641. * @name delete
  12642. * @memberOf Hash
  12643. * @param {Object} hash The hash to modify.
  12644. * @param {string} key The key of the value to remove.
  12645. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  12646. */
  12647. function hashDelete(key) {
  12648. var result = this.has(key) && delete this.__data__[key];
  12649. this.size -= result ? 1 : 0;
  12650. return result;
  12651. }
  12652. module.exports = hashDelete;
  12653. /***/ }),
  12654. /***/ "../../node_modules/lodash/_hashGet.js":
  12655. /*!*****************************************************************!*\
  12656. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_hashGet.js ***!
  12657. \*****************************************************************/
  12658. /*! no static exports found */
  12659. /***/ (function(module, exports, __webpack_require__) {
  12660. var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "../../node_modules/lodash/_nativeCreate.js");
  12661. /** Used to stand-in for `undefined` hash values. */
  12662. var HASH_UNDEFINED = '__lodash_hash_undefined__';
  12663. /** Used for built-in method references. */
  12664. var objectProto = Object.prototype;
  12665. /** Used to check objects for own properties. */
  12666. var hasOwnProperty = objectProto.hasOwnProperty;
  12667. /**
  12668. * Gets the hash value for `key`.
  12669. *
  12670. * @private
  12671. * @name get
  12672. * @memberOf Hash
  12673. * @param {string} key The key of the value to get.
  12674. * @returns {*} Returns the entry value.
  12675. */
  12676. function hashGet(key) {
  12677. var data = this.__data__;
  12678. if (nativeCreate) {
  12679. var result = data[key];
  12680. return result === HASH_UNDEFINED ? undefined : result;
  12681. }
  12682. return hasOwnProperty.call(data, key) ? data[key] : undefined;
  12683. }
  12684. module.exports = hashGet;
  12685. /***/ }),
  12686. /***/ "../../node_modules/lodash/_hashHas.js":
  12687. /*!*****************************************************************!*\
  12688. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_hashHas.js ***!
  12689. \*****************************************************************/
  12690. /*! no static exports found */
  12691. /***/ (function(module, exports, __webpack_require__) {
  12692. var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "../../node_modules/lodash/_nativeCreate.js");
  12693. /** Used for built-in method references. */
  12694. var objectProto = Object.prototype;
  12695. /** Used to check objects for own properties. */
  12696. var hasOwnProperty = objectProto.hasOwnProperty;
  12697. /**
  12698. * Checks if a hash value for `key` exists.
  12699. *
  12700. * @private
  12701. * @name has
  12702. * @memberOf Hash
  12703. * @param {string} key The key of the entry to check.
  12704. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  12705. */
  12706. function hashHas(key) {
  12707. var data = this.__data__;
  12708. return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
  12709. }
  12710. module.exports = hashHas;
  12711. /***/ }),
  12712. /***/ "../../node_modules/lodash/_hashSet.js":
  12713. /*!*****************************************************************!*\
  12714. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_hashSet.js ***!
  12715. \*****************************************************************/
  12716. /*! no static exports found */
  12717. /***/ (function(module, exports, __webpack_require__) {
  12718. var nativeCreate = __webpack_require__(/*! ./_nativeCreate */ "../../node_modules/lodash/_nativeCreate.js");
  12719. /** Used to stand-in for `undefined` hash values. */
  12720. var HASH_UNDEFINED = '__lodash_hash_undefined__';
  12721. /**
  12722. * Sets the hash `key` to `value`.
  12723. *
  12724. * @private
  12725. * @name set
  12726. * @memberOf Hash
  12727. * @param {string} key The key of the value to set.
  12728. * @param {*} value The value to set.
  12729. * @returns {Object} Returns the hash instance.
  12730. */
  12731. function hashSet(key, value) {
  12732. var data = this.__data__;
  12733. this.size += this.has(key) ? 0 : 1;
  12734. data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
  12735. return this;
  12736. }
  12737. module.exports = hashSet;
  12738. /***/ }),
  12739. /***/ "../../node_modules/lodash/_initCloneArray.js":
  12740. /*!************************************************************************!*\
  12741. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_initCloneArray.js ***!
  12742. \************************************************************************/
  12743. /*! no static exports found */
  12744. /***/ (function(module, exports) {
  12745. /** Used for built-in method references. */
  12746. var objectProto = Object.prototype;
  12747. /** Used to check objects for own properties. */
  12748. var hasOwnProperty = objectProto.hasOwnProperty;
  12749. /**
  12750. * Initializes an array clone.
  12751. *
  12752. * @private
  12753. * @param {Array} array The array to clone.
  12754. * @returns {Array} Returns the initialized clone.
  12755. */
  12756. function initCloneArray(array) {
  12757. var length = array.length,
  12758. result = new array.constructor(length);
  12759. // Add properties assigned by `RegExp#exec`.
  12760. if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {
  12761. result.index = array.index;
  12762. result.input = array.input;
  12763. }
  12764. return result;
  12765. }
  12766. module.exports = initCloneArray;
  12767. /***/ }),
  12768. /***/ "../../node_modules/lodash/_initCloneByTag.js":
  12769. /*!************************************************************************!*\
  12770. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_initCloneByTag.js ***!
  12771. \************************************************************************/
  12772. /*! no static exports found */
  12773. /***/ (function(module, exports, __webpack_require__) {
  12774. var cloneArrayBuffer = __webpack_require__(/*! ./_cloneArrayBuffer */ "../../node_modules/lodash/_cloneArrayBuffer.js"),
  12775. cloneDataView = __webpack_require__(/*! ./_cloneDataView */ "../../node_modules/lodash/_cloneDataView.js"),
  12776. cloneRegExp = __webpack_require__(/*! ./_cloneRegExp */ "../../node_modules/lodash/_cloneRegExp.js"),
  12777. cloneSymbol = __webpack_require__(/*! ./_cloneSymbol */ "../../node_modules/lodash/_cloneSymbol.js"),
  12778. cloneTypedArray = __webpack_require__(/*! ./_cloneTypedArray */ "../../node_modules/lodash/_cloneTypedArray.js");
  12779. /** `Object#toString` result references. */
  12780. var boolTag = '[object Boolean]',
  12781. dateTag = '[object Date]',
  12782. mapTag = '[object Map]',
  12783. numberTag = '[object Number]',
  12784. regexpTag = '[object RegExp]',
  12785. setTag = '[object Set]',
  12786. stringTag = '[object String]',
  12787. symbolTag = '[object Symbol]';
  12788. var arrayBufferTag = '[object ArrayBuffer]',
  12789. dataViewTag = '[object DataView]',
  12790. float32Tag = '[object Float32Array]',
  12791. float64Tag = '[object Float64Array]',
  12792. int8Tag = '[object Int8Array]',
  12793. int16Tag = '[object Int16Array]',
  12794. int32Tag = '[object Int32Array]',
  12795. uint8Tag = '[object Uint8Array]',
  12796. uint8ClampedTag = '[object Uint8ClampedArray]',
  12797. uint16Tag = '[object Uint16Array]',
  12798. uint32Tag = '[object Uint32Array]';
  12799. /**
  12800. * Initializes an object clone based on its `toStringTag`.
  12801. *
  12802. * **Note:** This function only supports cloning values with tags of
  12803. * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.
  12804. *
  12805. * @private
  12806. * @param {Object} object The object to clone.
  12807. * @param {string} tag The `toStringTag` of the object to clone.
  12808. * @param {boolean} [isDeep] Specify a deep clone.
  12809. * @returns {Object} Returns the initialized clone.
  12810. */
  12811. function initCloneByTag(object, tag, isDeep) {
  12812. var Ctor = object.constructor;
  12813. switch (tag) {
  12814. case arrayBufferTag:
  12815. return cloneArrayBuffer(object);
  12816. case boolTag:
  12817. case dateTag:
  12818. return new Ctor(+object);
  12819. case dataViewTag:
  12820. return cloneDataView(object, isDeep);
  12821. case float32Tag: case float64Tag:
  12822. case int8Tag: case int16Tag: case int32Tag:
  12823. case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:
  12824. return cloneTypedArray(object, isDeep);
  12825. case mapTag:
  12826. return new Ctor;
  12827. case numberTag:
  12828. case stringTag:
  12829. return new Ctor(object);
  12830. case regexpTag:
  12831. return cloneRegExp(object);
  12832. case setTag:
  12833. return new Ctor;
  12834. case symbolTag:
  12835. return cloneSymbol(object);
  12836. }
  12837. }
  12838. module.exports = initCloneByTag;
  12839. /***/ }),
  12840. /***/ "../../node_modules/lodash/_initCloneObject.js":
  12841. /*!*************************************************************************!*\
  12842. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_initCloneObject.js ***!
  12843. \*************************************************************************/
  12844. /*! no static exports found */
  12845. /***/ (function(module, exports, __webpack_require__) {
  12846. var baseCreate = __webpack_require__(/*! ./_baseCreate */ "../../node_modules/lodash/_baseCreate.js"),
  12847. getPrototype = __webpack_require__(/*! ./_getPrototype */ "../../node_modules/lodash/_getPrototype.js"),
  12848. isPrototype = __webpack_require__(/*! ./_isPrototype */ "../../node_modules/lodash/_isPrototype.js");
  12849. /**
  12850. * Initializes an object clone.
  12851. *
  12852. * @private
  12853. * @param {Object} object The object to clone.
  12854. * @returns {Object} Returns the initialized clone.
  12855. */
  12856. function initCloneObject(object) {
  12857. return (typeof object.constructor == 'function' && !isPrototype(object))
  12858. ? baseCreate(getPrototype(object))
  12859. : {};
  12860. }
  12861. module.exports = initCloneObject;
  12862. /***/ }),
  12863. /***/ "../../node_modules/lodash/_isFlattenable.js":
  12864. /*!***********************************************************************!*\
  12865. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_isFlattenable.js ***!
  12866. \***********************************************************************/
  12867. /*! no static exports found */
  12868. /***/ (function(module, exports, __webpack_require__) {
  12869. var Symbol = __webpack_require__(/*! ./_Symbol */ "../../node_modules/lodash/_Symbol.js"),
  12870. isArguments = __webpack_require__(/*! ./isArguments */ "../../node_modules/lodash/isArguments.js"),
  12871. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js");
  12872. /** Built-in value references. */
  12873. var spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined;
  12874. /**
  12875. * Checks if `value` is a flattenable `arguments` object or array.
  12876. *
  12877. * @private
  12878. * @param {*} value The value to check.
  12879. * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.
  12880. */
  12881. function isFlattenable(value) {
  12882. return isArray(value) || isArguments(value) ||
  12883. !!(spreadableSymbol && value && value[spreadableSymbol]);
  12884. }
  12885. module.exports = isFlattenable;
  12886. /***/ }),
  12887. /***/ "../../node_modules/lodash/_isIndex.js":
  12888. /*!*****************************************************************!*\
  12889. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_isIndex.js ***!
  12890. \*****************************************************************/
  12891. /*! no static exports found */
  12892. /***/ (function(module, exports) {
  12893. /** Used as references for various `Number` constants. */
  12894. var MAX_SAFE_INTEGER = 9007199254740991;
  12895. /** Used to detect unsigned integer values. */
  12896. var reIsUint = /^(?:0|[1-9]\d*)$/;
  12897. /**
  12898. * Checks if `value` is a valid array-like index.
  12899. *
  12900. * @private
  12901. * @param {*} value The value to check.
  12902. * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
  12903. * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
  12904. */
  12905. function isIndex(value, length) {
  12906. var type = typeof value;
  12907. length = length == null ? MAX_SAFE_INTEGER : length;
  12908. return !!length &&
  12909. (type == 'number' ||
  12910. (type != 'symbol' && reIsUint.test(value))) &&
  12911. (value > -1 && value % 1 == 0 && value < length);
  12912. }
  12913. module.exports = isIndex;
  12914. /***/ }),
  12915. /***/ "../../node_modules/lodash/_isIterateeCall.js":
  12916. /*!************************************************************************!*\
  12917. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_isIterateeCall.js ***!
  12918. \************************************************************************/
  12919. /*! no static exports found */
  12920. /***/ (function(module, exports, __webpack_require__) {
  12921. var eq = __webpack_require__(/*! ./eq */ "../../node_modules/lodash/eq.js"),
  12922. isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js"),
  12923. isIndex = __webpack_require__(/*! ./_isIndex */ "../../node_modules/lodash/_isIndex.js"),
  12924. isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js");
  12925. /**
  12926. * Checks if the given arguments are from an iteratee call.
  12927. *
  12928. * @private
  12929. * @param {*} value The potential iteratee value argument.
  12930. * @param {*} index The potential iteratee index or key argument.
  12931. * @param {*} object The potential iteratee object argument.
  12932. * @returns {boolean} Returns `true` if the arguments are from an iteratee call,
  12933. * else `false`.
  12934. */
  12935. function isIterateeCall(value, index, object) {
  12936. if (!isObject(object)) {
  12937. return false;
  12938. }
  12939. var type = typeof index;
  12940. if (type == 'number'
  12941. ? (isArrayLike(object) && isIndex(index, object.length))
  12942. : (type == 'string' && index in object)
  12943. ) {
  12944. return eq(object[index], value);
  12945. }
  12946. return false;
  12947. }
  12948. module.exports = isIterateeCall;
  12949. /***/ }),
  12950. /***/ "../../node_modules/lodash/_isKey.js":
  12951. /*!***************************************************************!*\
  12952. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_isKey.js ***!
  12953. \***************************************************************/
  12954. /*! no static exports found */
  12955. /***/ (function(module, exports, __webpack_require__) {
  12956. var isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  12957. isSymbol = __webpack_require__(/*! ./isSymbol */ "../../node_modules/lodash/isSymbol.js");
  12958. /** Used to match property names within property paths. */
  12959. var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
  12960. reIsPlainProp = /^\w*$/;
  12961. /**
  12962. * Checks if `value` is a property name and not a property path.
  12963. *
  12964. * @private
  12965. * @param {*} value The value to check.
  12966. * @param {Object} [object] The object to query keys on.
  12967. * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
  12968. */
  12969. function isKey(value, object) {
  12970. if (isArray(value)) {
  12971. return false;
  12972. }
  12973. var type = typeof value;
  12974. if (type == 'number' || type == 'symbol' || type == 'boolean' ||
  12975. value == null || isSymbol(value)) {
  12976. return true;
  12977. }
  12978. return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
  12979. (object != null && value in Object(object));
  12980. }
  12981. module.exports = isKey;
  12982. /***/ }),
  12983. /***/ "../../node_modules/lodash/_isKeyable.js":
  12984. /*!*******************************************************************!*\
  12985. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_isKeyable.js ***!
  12986. \*******************************************************************/
  12987. /*! no static exports found */
  12988. /***/ (function(module, exports) {
  12989. /**
  12990. * Checks if `value` is suitable for use as unique object key.
  12991. *
  12992. * @private
  12993. * @param {*} value The value to check.
  12994. * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
  12995. */
  12996. function isKeyable(value) {
  12997. var type = typeof value;
  12998. return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
  12999. ? (value !== '__proto__')
  13000. : (value === null);
  13001. }
  13002. module.exports = isKeyable;
  13003. /***/ }),
  13004. /***/ "../../node_modules/lodash/_isMasked.js":
  13005. /*!******************************************************************!*\
  13006. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_isMasked.js ***!
  13007. \******************************************************************/
  13008. /*! no static exports found */
  13009. /***/ (function(module, exports, __webpack_require__) {
  13010. var coreJsData = __webpack_require__(/*! ./_coreJsData */ "../../node_modules/lodash/_coreJsData.js");
  13011. /** Used to detect methods masquerading as native. */
  13012. var maskSrcKey = (function() {
  13013. var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
  13014. return uid ? ('Symbol(src)_1.' + uid) : '';
  13015. }());
  13016. /**
  13017. * Checks if `func` has its source masked.
  13018. *
  13019. * @private
  13020. * @param {Function} func The function to check.
  13021. * @returns {boolean} Returns `true` if `func` is masked, else `false`.
  13022. */
  13023. function isMasked(func) {
  13024. return !!maskSrcKey && (maskSrcKey in func);
  13025. }
  13026. module.exports = isMasked;
  13027. /***/ }),
  13028. /***/ "../../node_modules/lodash/_isPrototype.js":
  13029. /*!*********************************************************************!*\
  13030. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_isPrototype.js ***!
  13031. \*********************************************************************/
  13032. /*! no static exports found */
  13033. /***/ (function(module, exports) {
  13034. /** Used for built-in method references. */
  13035. var objectProto = Object.prototype;
  13036. /**
  13037. * Checks if `value` is likely a prototype object.
  13038. *
  13039. * @private
  13040. * @param {*} value The value to check.
  13041. * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
  13042. */
  13043. function isPrototype(value) {
  13044. var Ctor = value && value.constructor,
  13045. proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
  13046. return value === proto;
  13047. }
  13048. module.exports = isPrototype;
  13049. /***/ }),
  13050. /***/ "../../node_modules/lodash/_isStrictComparable.js":
  13051. /*!****************************************************************************!*\
  13052. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_isStrictComparable.js ***!
  13053. \****************************************************************************/
  13054. /*! no static exports found */
  13055. /***/ (function(module, exports, __webpack_require__) {
  13056. var isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js");
  13057. /**
  13058. * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
  13059. *
  13060. * @private
  13061. * @param {*} value The value to check.
  13062. * @returns {boolean} Returns `true` if `value` if suitable for strict
  13063. * equality comparisons, else `false`.
  13064. */
  13065. function isStrictComparable(value) {
  13066. return value === value && !isObject(value);
  13067. }
  13068. module.exports = isStrictComparable;
  13069. /***/ }),
  13070. /***/ "../../node_modules/lodash/_listCacheClear.js":
  13071. /*!************************************************************************!*\
  13072. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_listCacheClear.js ***!
  13073. \************************************************************************/
  13074. /*! no static exports found */
  13075. /***/ (function(module, exports) {
  13076. /**
  13077. * Removes all key-value entries from the list cache.
  13078. *
  13079. * @private
  13080. * @name clear
  13081. * @memberOf ListCache
  13082. */
  13083. function listCacheClear() {
  13084. this.__data__ = [];
  13085. this.size = 0;
  13086. }
  13087. module.exports = listCacheClear;
  13088. /***/ }),
  13089. /***/ "../../node_modules/lodash/_listCacheDelete.js":
  13090. /*!*************************************************************************!*\
  13091. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_listCacheDelete.js ***!
  13092. \*************************************************************************/
  13093. /*! no static exports found */
  13094. /***/ (function(module, exports, __webpack_require__) {
  13095. var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "../../node_modules/lodash/_assocIndexOf.js");
  13096. /** Used for built-in method references. */
  13097. var arrayProto = Array.prototype;
  13098. /** Built-in value references. */
  13099. var splice = arrayProto.splice;
  13100. /**
  13101. * Removes `key` and its value from the list cache.
  13102. *
  13103. * @private
  13104. * @name delete
  13105. * @memberOf ListCache
  13106. * @param {string} key The key of the value to remove.
  13107. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  13108. */
  13109. function listCacheDelete(key) {
  13110. var data = this.__data__,
  13111. index = assocIndexOf(data, key);
  13112. if (index < 0) {
  13113. return false;
  13114. }
  13115. var lastIndex = data.length - 1;
  13116. if (index == lastIndex) {
  13117. data.pop();
  13118. } else {
  13119. splice.call(data, index, 1);
  13120. }
  13121. --this.size;
  13122. return true;
  13123. }
  13124. module.exports = listCacheDelete;
  13125. /***/ }),
  13126. /***/ "../../node_modules/lodash/_listCacheGet.js":
  13127. /*!**********************************************************************!*\
  13128. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_listCacheGet.js ***!
  13129. \**********************************************************************/
  13130. /*! no static exports found */
  13131. /***/ (function(module, exports, __webpack_require__) {
  13132. var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "../../node_modules/lodash/_assocIndexOf.js");
  13133. /**
  13134. * Gets the list cache value for `key`.
  13135. *
  13136. * @private
  13137. * @name get
  13138. * @memberOf ListCache
  13139. * @param {string} key The key of the value to get.
  13140. * @returns {*} Returns the entry value.
  13141. */
  13142. function listCacheGet(key) {
  13143. var data = this.__data__,
  13144. index = assocIndexOf(data, key);
  13145. return index < 0 ? undefined : data[index][1];
  13146. }
  13147. module.exports = listCacheGet;
  13148. /***/ }),
  13149. /***/ "../../node_modules/lodash/_listCacheHas.js":
  13150. /*!**********************************************************************!*\
  13151. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_listCacheHas.js ***!
  13152. \**********************************************************************/
  13153. /*! no static exports found */
  13154. /***/ (function(module, exports, __webpack_require__) {
  13155. var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "../../node_modules/lodash/_assocIndexOf.js");
  13156. /**
  13157. * Checks if a list cache value for `key` exists.
  13158. *
  13159. * @private
  13160. * @name has
  13161. * @memberOf ListCache
  13162. * @param {string} key The key of the entry to check.
  13163. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  13164. */
  13165. function listCacheHas(key) {
  13166. return assocIndexOf(this.__data__, key) > -1;
  13167. }
  13168. module.exports = listCacheHas;
  13169. /***/ }),
  13170. /***/ "../../node_modules/lodash/_listCacheSet.js":
  13171. /*!**********************************************************************!*\
  13172. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_listCacheSet.js ***!
  13173. \**********************************************************************/
  13174. /*! no static exports found */
  13175. /***/ (function(module, exports, __webpack_require__) {
  13176. var assocIndexOf = __webpack_require__(/*! ./_assocIndexOf */ "../../node_modules/lodash/_assocIndexOf.js");
  13177. /**
  13178. * Sets the list cache `key` to `value`.
  13179. *
  13180. * @private
  13181. * @name set
  13182. * @memberOf ListCache
  13183. * @param {string} key The key of the value to set.
  13184. * @param {*} value The value to set.
  13185. * @returns {Object} Returns the list cache instance.
  13186. */
  13187. function listCacheSet(key, value) {
  13188. var data = this.__data__,
  13189. index = assocIndexOf(data, key);
  13190. if (index < 0) {
  13191. ++this.size;
  13192. data.push([key, value]);
  13193. } else {
  13194. data[index][1] = value;
  13195. }
  13196. return this;
  13197. }
  13198. module.exports = listCacheSet;
  13199. /***/ }),
  13200. /***/ "../../node_modules/lodash/_mapCacheClear.js":
  13201. /*!***********************************************************************!*\
  13202. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_mapCacheClear.js ***!
  13203. \***********************************************************************/
  13204. /*! no static exports found */
  13205. /***/ (function(module, exports, __webpack_require__) {
  13206. var Hash = __webpack_require__(/*! ./_Hash */ "../../node_modules/lodash/_Hash.js"),
  13207. ListCache = __webpack_require__(/*! ./_ListCache */ "../../node_modules/lodash/_ListCache.js"),
  13208. Map = __webpack_require__(/*! ./_Map */ "../../node_modules/lodash/_Map.js");
  13209. /**
  13210. * Removes all key-value entries from the map.
  13211. *
  13212. * @private
  13213. * @name clear
  13214. * @memberOf MapCache
  13215. */
  13216. function mapCacheClear() {
  13217. this.size = 0;
  13218. this.__data__ = {
  13219. 'hash': new Hash,
  13220. 'map': new (Map || ListCache),
  13221. 'string': new Hash
  13222. };
  13223. }
  13224. module.exports = mapCacheClear;
  13225. /***/ }),
  13226. /***/ "../../node_modules/lodash/_mapCacheDelete.js":
  13227. /*!************************************************************************!*\
  13228. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_mapCacheDelete.js ***!
  13229. \************************************************************************/
  13230. /*! no static exports found */
  13231. /***/ (function(module, exports, __webpack_require__) {
  13232. var getMapData = __webpack_require__(/*! ./_getMapData */ "../../node_modules/lodash/_getMapData.js");
  13233. /**
  13234. * Removes `key` and its value from the map.
  13235. *
  13236. * @private
  13237. * @name delete
  13238. * @memberOf MapCache
  13239. * @param {string} key The key of the value to remove.
  13240. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  13241. */
  13242. function mapCacheDelete(key) {
  13243. var result = getMapData(this, key)['delete'](key);
  13244. this.size -= result ? 1 : 0;
  13245. return result;
  13246. }
  13247. module.exports = mapCacheDelete;
  13248. /***/ }),
  13249. /***/ "../../node_modules/lodash/_mapCacheGet.js":
  13250. /*!*********************************************************************!*\
  13251. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_mapCacheGet.js ***!
  13252. \*********************************************************************/
  13253. /*! no static exports found */
  13254. /***/ (function(module, exports, __webpack_require__) {
  13255. var getMapData = __webpack_require__(/*! ./_getMapData */ "../../node_modules/lodash/_getMapData.js");
  13256. /**
  13257. * Gets the map value for `key`.
  13258. *
  13259. * @private
  13260. * @name get
  13261. * @memberOf MapCache
  13262. * @param {string} key The key of the value to get.
  13263. * @returns {*} Returns the entry value.
  13264. */
  13265. function mapCacheGet(key) {
  13266. return getMapData(this, key).get(key);
  13267. }
  13268. module.exports = mapCacheGet;
  13269. /***/ }),
  13270. /***/ "../../node_modules/lodash/_mapCacheHas.js":
  13271. /*!*********************************************************************!*\
  13272. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_mapCacheHas.js ***!
  13273. \*********************************************************************/
  13274. /*! no static exports found */
  13275. /***/ (function(module, exports, __webpack_require__) {
  13276. var getMapData = __webpack_require__(/*! ./_getMapData */ "../../node_modules/lodash/_getMapData.js");
  13277. /**
  13278. * Checks if a map value for `key` exists.
  13279. *
  13280. * @private
  13281. * @name has
  13282. * @memberOf MapCache
  13283. * @param {string} key The key of the entry to check.
  13284. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  13285. */
  13286. function mapCacheHas(key) {
  13287. return getMapData(this, key).has(key);
  13288. }
  13289. module.exports = mapCacheHas;
  13290. /***/ }),
  13291. /***/ "../../node_modules/lodash/_mapCacheSet.js":
  13292. /*!*********************************************************************!*\
  13293. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_mapCacheSet.js ***!
  13294. \*********************************************************************/
  13295. /*! no static exports found */
  13296. /***/ (function(module, exports, __webpack_require__) {
  13297. var getMapData = __webpack_require__(/*! ./_getMapData */ "../../node_modules/lodash/_getMapData.js");
  13298. /**
  13299. * Sets the map `key` to `value`.
  13300. *
  13301. * @private
  13302. * @name set
  13303. * @memberOf MapCache
  13304. * @param {string} key The key of the value to set.
  13305. * @param {*} value The value to set.
  13306. * @returns {Object} Returns the map cache instance.
  13307. */
  13308. function mapCacheSet(key, value) {
  13309. var data = getMapData(this, key),
  13310. size = data.size;
  13311. data.set(key, value);
  13312. this.size += data.size == size ? 0 : 1;
  13313. return this;
  13314. }
  13315. module.exports = mapCacheSet;
  13316. /***/ }),
  13317. /***/ "../../node_modules/lodash/_mapToArray.js":
  13318. /*!********************************************************************!*\
  13319. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_mapToArray.js ***!
  13320. \********************************************************************/
  13321. /*! no static exports found */
  13322. /***/ (function(module, exports) {
  13323. /**
  13324. * Converts `map` to its key-value pairs.
  13325. *
  13326. * @private
  13327. * @param {Object} map The map to convert.
  13328. * @returns {Array} Returns the key-value pairs.
  13329. */
  13330. function mapToArray(map) {
  13331. var index = -1,
  13332. result = Array(map.size);
  13333. map.forEach(function(value, key) {
  13334. result[++index] = [key, value];
  13335. });
  13336. return result;
  13337. }
  13338. module.exports = mapToArray;
  13339. /***/ }),
  13340. /***/ "../../node_modules/lodash/_matchesStrictComparable.js":
  13341. /*!*********************************************************************************!*\
  13342. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_matchesStrictComparable.js ***!
  13343. \*********************************************************************************/
  13344. /*! no static exports found */
  13345. /***/ (function(module, exports) {
  13346. /**
  13347. * A specialized version of `matchesProperty` for source values suitable
  13348. * for strict equality comparisons, i.e. `===`.
  13349. *
  13350. * @private
  13351. * @param {string} key The key of the property to get.
  13352. * @param {*} srcValue The value to match.
  13353. * @returns {Function} Returns the new spec function.
  13354. */
  13355. function matchesStrictComparable(key, srcValue) {
  13356. return function(object) {
  13357. if (object == null) {
  13358. return false;
  13359. }
  13360. return object[key] === srcValue &&
  13361. (srcValue !== undefined || (key in Object(object)));
  13362. };
  13363. }
  13364. module.exports = matchesStrictComparable;
  13365. /***/ }),
  13366. /***/ "../../node_modules/lodash/_memoizeCapped.js":
  13367. /*!***********************************************************************!*\
  13368. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_memoizeCapped.js ***!
  13369. \***********************************************************************/
  13370. /*! no static exports found */
  13371. /***/ (function(module, exports, __webpack_require__) {
  13372. var memoize = __webpack_require__(/*! ./memoize */ "../../node_modules/lodash/memoize.js");
  13373. /** Used as the maximum memoize cache size. */
  13374. var MAX_MEMOIZE_SIZE = 500;
  13375. /**
  13376. * A specialized version of `_.memoize` which clears the memoized function's
  13377. * cache when it exceeds `MAX_MEMOIZE_SIZE`.
  13378. *
  13379. * @private
  13380. * @param {Function} func The function to have its output memoized.
  13381. * @returns {Function} Returns the new memoized function.
  13382. */
  13383. function memoizeCapped(func) {
  13384. var result = memoize(func, function(key) {
  13385. if (cache.size === MAX_MEMOIZE_SIZE) {
  13386. cache.clear();
  13387. }
  13388. return key;
  13389. });
  13390. var cache = result.cache;
  13391. return result;
  13392. }
  13393. module.exports = memoizeCapped;
  13394. /***/ }),
  13395. /***/ "../../node_modules/lodash/_nativeCreate.js":
  13396. /*!**********************************************************************!*\
  13397. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_nativeCreate.js ***!
  13398. \**********************************************************************/
  13399. /*! no static exports found */
  13400. /***/ (function(module, exports, __webpack_require__) {
  13401. var getNative = __webpack_require__(/*! ./_getNative */ "../../node_modules/lodash/_getNative.js");
  13402. /* Built-in method references that are verified to be native. */
  13403. var nativeCreate = getNative(Object, 'create');
  13404. module.exports = nativeCreate;
  13405. /***/ }),
  13406. /***/ "../../node_modules/lodash/_nativeKeys.js":
  13407. /*!********************************************************************!*\
  13408. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_nativeKeys.js ***!
  13409. \********************************************************************/
  13410. /*! no static exports found */
  13411. /***/ (function(module, exports, __webpack_require__) {
  13412. var overArg = __webpack_require__(/*! ./_overArg */ "../../node_modules/lodash/_overArg.js");
  13413. /* Built-in method references for those with the same name as other `lodash` methods. */
  13414. var nativeKeys = overArg(Object.keys, Object);
  13415. module.exports = nativeKeys;
  13416. /***/ }),
  13417. /***/ "../../node_modules/lodash/_nativeKeysIn.js":
  13418. /*!**********************************************************************!*\
  13419. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_nativeKeysIn.js ***!
  13420. \**********************************************************************/
  13421. /*! no static exports found */
  13422. /***/ (function(module, exports) {
  13423. /**
  13424. * This function is like
  13425. * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
  13426. * except that it includes inherited enumerable properties.
  13427. *
  13428. * @private
  13429. * @param {Object} object The object to query.
  13430. * @returns {Array} Returns the array of property names.
  13431. */
  13432. function nativeKeysIn(object) {
  13433. var result = [];
  13434. if (object != null) {
  13435. for (var key in Object(object)) {
  13436. result.push(key);
  13437. }
  13438. }
  13439. return result;
  13440. }
  13441. module.exports = nativeKeysIn;
  13442. /***/ }),
  13443. /***/ "../../node_modules/lodash/_nodeUtil.js":
  13444. /*!******************************************************************!*\
  13445. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_nodeUtil.js ***!
  13446. \******************************************************************/
  13447. /*! no static exports found */
  13448. /***/ (function(module, exports, __webpack_require__) {
  13449. /* WEBPACK VAR INJECTION */(function(module) {var freeGlobal = __webpack_require__(/*! ./_freeGlobal */ "../../node_modules/lodash/_freeGlobal.js");
  13450. /** Detect free variable `exports`. */
  13451. var freeExports = true && exports && !exports.nodeType && exports;
  13452. /** Detect free variable `module`. */
  13453. var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
  13454. /** Detect the popular CommonJS extension `module.exports`. */
  13455. var moduleExports = freeModule && freeModule.exports === freeExports;
  13456. /** Detect free variable `process` from Node.js. */
  13457. var freeProcess = moduleExports && freeGlobal.process;
  13458. /** Used to access faster Node.js helpers. */
  13459. var nodeUtil = (function() {
  13460. try {
  13461. // Use `util.types` for Node.js 10+.
  13462. var types = freeModule && freeModule.require && freeModule.require('util').types;
  13463. if (types) {
  13464. return types;
  13465. }
  13466. // Legacy `process.binding('util')` for Node.js < 10.
  13467. return freeProcess && freeProcess.binding && freeProcess.binding('util');
  13468. } catch (e) {}
  13469. }());
  13470. module.exports = nodeUtil;
  13471. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/module.js */ "../../node_modules/webpack/buildin/module.js")(module)))
  13472. /***/ }),
  13473. /***/ "../../node_modules/lodash/_objectToString.js":
  13474. /*!************************************************************************!*\
  13475. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_objectToString.js ***!
  13476. \************************************************************************/
  13477. /*! no static exports found */
  13478. /***/ (function(module, exports) {
  13479. /** Used for built-in method references. */
  13480. var objectProto = Object.prototype;
  13481. /**
  13482. * Used to resolve the
  13483. * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
  13484. * of values.
  13485. */
  13486. var nativeObjectToString = objectProto.toString;
  13487. /**
  13488. * Converts `value` to a string using `Object.prototype.toString`.
  13489. *
  13490. * @private
  13491. * @param {*} value The value to convert.
  13492. * @returns {string} Returns the converted string.
  13493. */
  13494. function objectToString(value) {
  13495. return nativeObjectToString.call(value);
  13496. }
  13497. module.exports = objectToString;
  13498. /***/ }),
  13499. /***/ "../../node_modules/lodash/_overArg.js":
  13500. /*!*****************************************************************!*\
  13501. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_overArg.js ***!
  13502. \*****************************************************************/
  13503. /*! no static exports found */
  13504. /***/ (function(module, exports) {
  13505. /**
  13506. * Creates a unary function that invokes `func` with its argument transformed.
  13507. *
  13508. * @private
  13509. * @param {Function} func The function to wrap.
  13510. * @param {Function} transform The argument transform.
  13511. * @returns {Function} Returns the new function.
  13512. */
  13513. function overArg(func, transform) {
  13514. return function(arg) {
  13515. return func(transform(arg));
  13516. };
  13517. }
  13518. module.exports = overArg;
  13519. /***/ }),
  13520. /***/ "../../node_modules/lodash/_overRest.js":
  13521. /*!******************************************************************!*\
  13522. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_overRest.js ***!
  13523. \******************************************************************/
  13524. /*! no static exports found */
  13525. /***/ (function(module, exports, __webpack_require__) {
  13526. var apply = __webpack_require__(/*! ./_apply */ "../../node_modules/lodash/_apply.js");
  13527. /* Built-in method references for those with the same name as other `lodash` methods. */
  13528. var nativeMax = Math.max;
  13529. /**
  13530. * A specialized version of `baseRest` which transforms the rest array.
  13531. *
  13532. * @private
  13533. * @param {Function} func The function to apply a rest parameter to.
  13534. * @param {number} [start=func.length-1] The start position of the rest parameter.
  13535. * @param {Function} transform The rest array transform.
  13536. * @returns {Function} Returns the new function.
  13537. */
  13538. function overRest(func, start, transform) {
  13539. start = nativeMax(start === undefined ? (func.length - 1) : start, 0);
  13540. return function() {
  13541. var args = arguments,
  13542. index = -1,
  13543. length = nativeMax(args.length - start, 0),
  13544. array = Array(length);
  13545. while (++index < length) {
  13546. array[index] = args[start + index];
  13547. }
  13548. index = -1;
  13549. var otherArgs = Array(start + 1);
  13550. while (++index < start) {
  13551. otherArgs[index] = args[index];
  13552. }
  13553. otherArgs[start] = transform(array);
  13554. return apply(func, this, otherArgs);
  13555. };
  13556. }
  13557. module.exports = overRest;
  13558. /***/ }),
  13559. /***/ "../../node_modules/lodash/_root.js":
  13560. /*!**************************************************************!*\
  13561. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_root.js ***!
  13562. \**************************************************************/
  13563. /*! no static exports found */
  13564. /***/ (function(module, exports, __webpack_require__) {
  13565. var freeGlobal = __webpack_require__(/*! ./_freeGlobal */ "../../node_modules/lodash/_freeGlobal.js");
  13566. /** Detect free variable `self`. */
  13567. var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
  13568. /** Used as a reference to the global object. */
  13569. var root = freeGlobal || freeSelf || Function('return this')();
  13570. module.exports = root;
  13571. /***/ }),
  13572. /***/ "../../node_modules/lodash/_safeGet.js":
  13573. /*!*****************************************************************!*\
  13574. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_safeGet.js ***!
  13575. \*****************************************************************/
  13576. /*! no static exports found */
  13577. /***/ (function(module, exports) {
  13578. /**
  13579. * Gets the value at `key`, unless `key` is "__proto__" or "constructor".
  13580. *
  13581. * @private
  13582. * @param {Object} object The object to query.
  13583. * @param {string} key The key of the property to get.
  13584. * @returns {*} Returns the property value.
  13585. */
  13586. function safeGet(object, key) {
  13587. if (key === 'constructor' && typeof object[key] === 'function') {
  13588. return;
  13589. }
  13590. if (key == '__proto__') {
  13591. return;
  13592. }
  13593. return object[key];
  13594. }
  13595. module.exports = safeGet;
  13596. /***/ }),
  13597. /***/ "../../node_modules/lodash/_setCacheAdd.js":
  13598. /*!*********************************************************************!*\
  13599. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_setCacheAdd.js ***!
  13600. \*********************************************************************/
  13601. /*! no static exports found */
  13602. /***/ (function(module, exports) {
  13603. /** Used to stand-in for `undefined` hash values. */
  13604. var HASH_UNDEFINED = '__lodash_hash_undefined__';
  13605. /**
  13606. * Adds `value` to the array cache.
  13607. *
  13608. * @private
  13609. * @name add
  13610. * @memberOf SetCache
  13611. * @alias push
  13612. * @param {*} value The value to cache.
  13613. * @returns {Object} Returns the cache instance.
  13614. */
  13615. function setCacheAdd(value) {
  13616. this.__data__.set(value, HASH_UNDEFINED);
  13617. return this;
  13618. }
  13619. module.exports = setCacheAdd;
  13620. /***/ }),
  13621. /***/ "../../node_modules/lodash/_setCacheHas.js":
  13622. /*!*********************************************************************!*\
  13623. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_setCacheHas.js ***!
  13624. \*********************************************************************/
  13625. /*! no static exports found */
  13626. /***/ (function(module, exports) {
  13627. /**
  13628. * Checks if `value` is in the array cache.
  13629. *
  13630. * @private
  13631. * @name has
  13632. * @memberOf SetCache
  13633. * @param {*} value The value to search for.
  13634. * @returns {number} Returns `true` if `value` is found, else `false`.
  13635. */
  13636. function setCacheHas(value) {
  13637. return this.__data__.has(value);
  13638. }
  13639. module.exports = setCacheHas;
  13640. /***/ }),
  13641. /***/ "../../node_modules/lodash/_setToArray.js":
  13642. /*!********************************************************************!*\
  13643. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_setToArray.js ***!
  13644. \********************************************************************/
  13645. /*! no static exports found */
  13646. /***/ (function(module, exports) {
  13647. /**
  13648. * Converts `set` to an array of its values.
  13649. *
  13650. * @private
  13651. * @param {Object} set The set to convert.
  13652. * @returns {Array} Returns the values.
  13653. */
  13654. function setToArray(set) {
  13655. var index = -1,
  13656. result = Array(set.size);
  13657. set.forEach(function(value) {
  13658. result[++index] = value;
  13659. });
  13660. return result;
  13661. }
  13662. module.exports = setToArray;
  13663. /***/ }),
  13664. /***/ "../../node_modules/lodash/_setToString.js":
  13665. /*!*********************************************************************!*\
  13666. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_setToString.js ***!
  13667. \*********************************************************************/
  13668. /*! no static exports found */
  13669. /***/ (function(module, exports, __webpack_require__) {
  13670. var baseSetToString = __webpack_require__(/*! ./_baseSetToString */ "../../node_modules/lodash/_baseSetToString.js"),
  13671. shortOut = __webpack_require__(/*! ./_shortOut */ "../../node_modules/lodash/_shortOut.js");
  13672. /**
  13673. * Sets the `toString` method of `func` to return `string`.
  13674. *
  13675. * @private
  13676. * @param {Function} func The function to modify.
  13677. * @param {Function} string The `toString` result.
  13678. * @returns {Function} Returns `func`.
  13679. */
  13680. var setToString = shortOut(baseSetToString);
  13681. module.exports = setToString;
  13682. /***/ }),
  13683. /***/ "../../node_modules/lodash/_shortOut.js":
  13684. /*!******************************************************************!*\
  13685. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_shortOut.js ***!
  13686. \******************************************************************/
  13687. /*! no static exports found */
  13688. /***/ (function(module, exports) {
  13689. /** Used to detect hot functions by number of calls within a span of milliseconds. */
  13690. var HOT_COUNT = 800,
  13691. HOT_SPAN = 16;
  13692. /* Built-in method references for those with the same name as other `lodash` methods. */
  13693. var nativeNow = Date.now;
  13694. /**
  13695. * Creates a function that'll short out and invoke `identity` instead
  13696. * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`
  13697. * milliseconds.
  13698. *
  13699. * @private
  13700. * @param {Function} func The function to restrict.
  13701. * @returns {Function} Returns the new shortable function.
  13702. */
  13703. function shortOut(func) {
  13704. var count = 0,
  13705. lastCalled = 0;
  13706. return function() {
  13707. var stamp = nativeNow(),
  13708. remaining = HOT_SPAN - (stamp - lastCalled);
  13709. lastCalled = stamp;
  13710. if (remaining > 0) {
  13711. if (++count >= HOT_COUNT) {
  13712. return arguments[0];
  13713. }
  13714. } else {
  13715. count = 0;
  13716. }
  13717. return func.apply(undefined, arguments);
  13718. };
  13719. }
  13720. module.exports = shortOut;
  13721. /***/ }),
  13722. /***/ "../../node_modules/lodash/_stackClear.js":
  13723. /*!********************************************************************!*\
  13724. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_stackClear.js ***!
  13725. \********************************************************************/
  13726. /*! no static exports found */
  13727. /***/ (function(module, exports, __webpack_require__) {
  13728. var ListCache = __webpack_require__(/*! ./_ListCache */ "../../node_modules/lodash/_ListCache.js");
  13729. /**
  13730. * Removes all key-value entries from the stack.
  13731. *
  13732. * @private
  13733. * @name clear
  13734. * @memberOf Stack
  13735. */
  13736. function stackClear() {
  13737. this.__data__ = new ListCache;
  13738. this.size = 0;
  13739. }
  13740. module.exports = stackClear;
  13741. /***/ }),
  13742. /***/ "../../node_modules/lodash/_stackDelete.js":
  13743. /*!*********************************************************************!*\
  13744. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_stackDelete.js ***!
  13745. \*********************************************************************/
  13746. /*! no static exports found */
  13747. /***/ (function(module, exports) {
  13748. /**
  13749. * Removes `key` and its value from the stack.
  13750. *
  13751. * @private
  13752. * @name delete
  13753. * @memberOf Stack
  13754. * @param {string} key The key of the value to remove.
  13755. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  13756. */
  13757. function stackDelete(key) {
  13758. var data = this.__data__,
  13759. result = data['delete'](key);
  13760. this.size = data.size;
  13761. return result;
  13762. }
  13763. module.exports = stackDelete;
  13764. /***/ }),
  13765. /***/ "../../node_modules/lodash/_stackGet.js":
  13766. /*!******************************************************************!*\
  13767. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_stackGet.js ***!
  13768. \******************************************************************/
  13769. /*! no static exports found */
  13770. /***/ (function(module, exports) {
  13771. /**
  13772. * Gets the stack value for `key`.
  13773. *
  13774. * @private
  13775. * @name get
  13776. * @memberOf Stack
  13777. * @param {string} key The key of the value to get.
  13778. * @returns {*} Returns the entry value.
  13779. */
  13780. function stackGet(key) {
  13781. return this.__data__.get(key);
  13782. }
  13783. module.exports = stackGet;
  13784. /***/ }),
  13785. /***/ "../../node_modules/lodash/_stackHas.js":
  13786. /*!******************************************************************!*\
  13787. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_stackHas.js ***!
  13788. \******************************************************************/
  13789. /*! no static exports found */
  13790. /***/ (function(module, exports) {
  13791. /**
  13792. * Checks if a stack value for `key` exists.
  13793. *
  13794. * @private
  13795. * @name has
  13796. * @memberOf Stack
  13797. * @param {string} key The key of the entry to check.
  13798. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
  13799. */
  13800. function stackHas(key) {
  13801. return this.__data__.has(key);
  13802. }
  13803. module.exports = stackHas;
  13804. /***/ }),
  13805. /***/ "../../node_modules/lodash/_stackSet.js":
  13806. /*!******************************************************************!*\
  13807. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_stackSet.js ***!
  13808. \******************************************************************/
  13809. /*! no static exports found */
  13810. /***/ (function(module, exports, __webpack_require__) {
  13811. var ListCache = __webpack_require__(/*! ./_ListCache */ "../../node_modules/lodash/_ListCache.js"),
  13812. Map = __webpack_require__(/*! ./_Map */ "../../node_modules/lodash/_Map.js"),
  13813. MapCache = __webpack_require__(/*! ./_MapCache */ "../../node_modules/lodash/_MapCache.js");
  13814. /** Used as the size to enable large array optimizations. */
  13815. var LARGE_ARRAY_SIZE = 200;
  13816. /**
  13817. * Sets the stack `key` to `value`.
  13818. *
  13819. * @private
  13820. * @name set
  13821. * @memberOf Stack
  13822. * @param {string} key The key of the value to set.
  13823. * @param {*} value The value to set.
  13824. * @returns {Object} Returns the stack cache instance.
  13825. */
  13826. function stackSet(key, value) {
  13827. var data = this.__data__;
  13828. if (data instanceof ListCache) {
  13829. var pairs = data.__data__;
  13830. if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {
  13831. pairs.push([key, value]);
  13832. this.size = ++data.size;
  13833. return this;
  13834. }
  13835. data = this.__data__ = new MapCache(pairs);
  13836. }
  13837. data.set(key, value);
  13838. this.size = data.size;
  13839. return this;
  13840. }
  13841. module.exports = stackSet;
  13842. /***/ }),
  13843. /***/ "../../node_modules/lodash/_strictIndexOf.js":
  13844. /*!***********************************************************************!*\
  13845. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_strictIndexOf.js ***!
  13846. \***********************************************************************/
  13847. /*! no static exports found */
  13848. /***/ (function(module, exports) {
  13849. /**
  13850. * A specialized version of `_.indexOf` which performs strict equality
  13851. * comparisons of values, i.e. `===`.
  13852. *
  13853. * @private
  13854. * @param {Array} array The array to inspect.
  13855. * @param {*} value The value to search for.
  13856. * @param {number} fromIndex The index to search from.
  13857. * @returns {number} Returns the index of the matched value, else `-1`.
  13858. */
  13859. function strictIndexOf(array, value, fromIndex) {
  13860. var index = fromIndex - 1,
  13861. length = array.length;
  13862. while (++index < length) {
  13863. if (array[index] === value) {
  13864. return index;
  13865. }
  13866. }
  13867. return -1;
  13868. }
  13869. module.exports = strictIndexOf;
  13870. /***/ }),
  13871. /***/ "../../node_modules/lodash/_stringSize.js":
  13872. /*!********************************************************************!*\
  13873. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_stringSize.js ***!
  13874. \********************************************************************/
  13875. /*! no static exports found */
  13876. /***/ (function(module, exports, __webpack_require__) {
  13877. var asciiSize = __webpack_require__(/*! ./_asciiSize */ "../../node_modules/lodash/_asciiSize.js"),
  13878. hasUnicode = __webpack_require__(/*! ./_hasUnicode */ "../../node_modules/lodash/_hasUnicode.js"),
  13879. unicodeSize = __webpack_require__(/*! ./_unicodeSize */ "../../node_modules/lodash/_unicodeSize.js");
  13880. /**
  13881. * Gets the number of symbols in `string`.
  13882. *
  13883. * @private
  13884. * @param {string} string The string to inspect.
  13885. * @returns {number} Returns the string size.
  13886. */
  13887. function stringSize(string) {
  13888. return hasUnicode(string)
  13889. ? unicodeSize(string)
  13890. : asciiSize(string);
  13891. }
  13892. module.exports = stringSize;
  13893. /***/ }),
  13894. /***/ "../../node_modules/lodash/_stringToPath.js":
  13895. /*!**********************************************************************!*\
  13896. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_stringToPath.js ***!
  13897. \**********************************************************************/
  13898. /*! no static exports found */
  13899. /***/ (function(module, exports, __webpack_require__) {
  13900. var memoizeCapped = __webpack_require__(/*! ./_memoizeCapped */ "../../node_modules/lodash/_memoizeCapped.js");
  13901. /** Used to match property names within property paths. */
  13902. var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
  13903. /** Used to match backslashes in property paths. */
  13904. var reEscapeChar = /\\(\\)?/g;
  13905. /**
  13906. * Converts `string` to a property path array.
  13907. *
  13908. * @private
  13909. * @param {string} string The string to convert.
  13910. * @returns {Array} Returns the property path array.
  13911. */
  13912. var stringToPath = memoizeCapped(function(string) {
  13913. var result = [];
  13914. if (string.charCodeAt(0) === 46 /* . */) {
  13915. result.push('');
  13916. }
  13917. string.replace(rePropName, function(match, number, quote, subString) {
  13918. result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
  13919. });
  13920. return result;
  13921. });
  13922. module.exports = stringToPath;
  13923. /***/ }),
  13924. /***/ "../../node_modules/lodash/_toKey.js":
  13925. /*!***************************************************************!*\
  13926. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_toKey.js ***!
  13927. \***************************************************************/
  13928. /*! no static exports found */
  13929. /***/ (function(module, exports, __webpack_require__) {
  13930. var isSymbol = __webpack_require__(/*! ./isSymbol */ "../../node_modules/lodash/isSymbol.js");
  13931. /** Used as references for various `Number` constants. */
  13932. var INFINITY = 1 / 0;
  13933. /**
  13934. * Converts `value` to a string key if it's not a string or symbol.
  13935. *
  13936. * @private
  13937. * @param {*} value The value to inspect.
  13938. * @returns {string|symbol} Returns the key.
  13939. */
  13940. function toKey(value) {
  13941. if (typeof value == 'string' || isSymbol(value)) {
  13942. return value;
  13943. }
  13944. var result = (value + '');
  13945. return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
  13946. }
  13947. module.exports = toKey;
  13948. /***/ }),
  13949. /***/ "../../node_modules/lodash/_toSource.js":
  13950. /*!******************************************************************!*\
  13951. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_toSource.js ***!
  13952. \******************************************************************/
  13953. /*! no static exports found */
  13954. /***/ (function(module, exports) {
  13955. /** Used for built-in method references. */
  13956. var funcProto = Function.prototype;
  13957. /** Used to resolve the decompiled source of functions. */
  13958. var funcToString = funcProto.toString;
  13959. /**
  13960. * Converts `func` to its source code.
  13961. *
  13962. * @private
  13963. * @param {Function} func The function to convert.
  13964. * @returns {string} Returns the source code.
  13965. */
  13966. function toSource(func) {
  13967. if (func != null) {
  13968. try {
  13969. return funcToString.call(func);
  13970. } catch (e) {}
  13971. try {
  13972. return (func + '');
  13973. } catch (e) {}
  13974. }
  13975. return '';
  13976. }
  13977. module.exports = toSource;
  13978. /***/ }),
  13979. /***/ "../../node_modules/lodash/_unicodeSize.js":
  13980. /*!*********************************************************************!*\
  13981. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/_unicodeSize.js ***!
  13982. \*********************************************************************/
  13983. /*! no static exports found */
  13984. /***/ (function(module, exports) {
  13985. /** Used to compose unicode character classes. */
  13986. var rsAstralRange = '\\ud800-\\udfff',
  13987. rsComboMarksRange = '\\u0300-\\u036f',
  13988. reComboHalfMarksRange = '\\ufe20-\\ufe2f',
  13989. rsComboSymbolsRange = '\\u20d0-\\u20ff',
  13990. rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,
  13991. rsVarRange = '\\ufe0e\\ufe0f';
  13992. /** Used to compose unicode capture groups. */
  13993. var rsAstral = '[' + rsAstralRange + ']',
  13994. rsCombo = '[' + rsComboRange + ']',
  13995. rsFitz = '\\ud83c[\\udffb-\\udfff]',
  13996. rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',
  13997. rsNonAstral = '[^' + rsAstralRange + ']',
  13998. rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}',
  13999. rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]',
  14000. rsZWJ = '\\u200d';
  14001. /** Used to compose unicode regexes. */
  14002. var reOptMod = rsModifier + '?',
  14003. rsOptVar = '[' + rsVarRange + ']?',
  14004. rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',
  14005. rsSeq = rsOptVar + reOptMod + rsOptJoin,
  14006. rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';
  14007. /** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */
  14008. var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');
  14009. /**
  14010. * Gets the size of a Unicode `string`.
  14011. *
  14012. * @private
  14013. * @param {string} string The string inspect.
  14014. * @returns {number} Returns the string size.
  14015. */
  14016. function unicodeSize(string) {
  14017. var result = reUnicode.lastIndex = 0;
  14018. while (reUnicode.test(string)) {
  14019. ++result;
  14020. }
  14021. return result;
  14022. }
  14023. module.exports = unicodeSize;
  14024. /***/ }),
  14025. /***/ "../../node_modules/lodash/clone.js":
  14026. /*!**************************************************************!*\
  14027. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/clone.js ***!
  14028. \**************************************************************/
  14029. /*! no static exports found */
  14030. /***/ (function(module, exports, __webpack_require__) {
  14031. var baseClone = __webpack_require__(/*! ./_baseClone */ "../../node_modules/lodash/_baseClone.js");
  14032. /** Used to compose bitmasks for cloning. */
  14033. var CLONE_SYMBOLS_FLAG = 4;
  14034. /**
  14035. * Creates a shallow clone of `value`.
  14036. *
  14037. * **Note:** This method is loosely based on the
  14038. * [structured clone algorithm](https://mdn.io/Structured_clone_algorithm)
  14039. * and supports cloning arrays, array buffers, booleans, date objects, maps,
  14040. * numbers, `Object` objects, regexes, sets, strings, symbols, and typed
  14041. * arrays. The own enumerable properties of `arguments` objects are cloned
  14042. * as plain objects. An empty object is returned for uncloneable values such
  14043. * as error objects, functions, DOM nodes, and WeakMaps.
  14044. *
  14045. * @static
  14046. * @memberOf _
  14047. * @since 0.1.0
  14048. * @category Lang
  14049. * @param {*} value The value to clone.
  14050. * @returns {*} Returns the cloned value.
  14051. * @see _.cloneDeep
  14052. * @example
  14053. *
  14054. * var objects = [{ 'a': 1 }, { 'b': 2 }];
  14055. *
  14056. * var shallow = _.clone(objects);
  14057. * console.log(shallow[0] === objects[0]);
  14058. * // => true
  14059. */
  14060. function clone(value) {
  14061. return baseClone(value, CLONE_SYMBOLS_FLAG);
  14062. }
  14063. module.exports = clone;
  14064. /***/ }),
  14065. /***/ "../../node_modules/lodash/cloneDeep.js":
  14066. /*!******************************************************************!*\
  14067. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/cloneDeep.js ***!
  14068. \******************************************************************/
  14069. /*! no static exports found */
  14070. /***/ (function(module, exports, __webpack_require__) {
  14071. var baseClone = __webpack_require__(/*! ./_baseClone */ "../../node_modules/lodash/_baseClone.js");
  14072. /** Used to compose bitmasks for cloning. */
  14073. var CLONE_DEEP_FLAG = 1,
  14074. CLONE_SYMBOLS_FLAG = 4;
  14075. /**
  14076. * This method is like `_.clone` except that it recursively clones `value`.
  14077. *
  14078. * @static
  14079. * @memberOf _
  14080. * @since 1.0.0
  14081. * @category Lang
  14082. * @param {*} value The value to recursively clone.
  14083. * @returns {*} Returns the deep cloned value.
  14084. * @see _.clone
  14085. * @example
  14086. *
  14087. * var objects = [{ 'a': 1 }, { 'b': 2 }];
  14088. *
  14089. * var deep = _.cloneDeep(objects);
  14090. * console.log(deep[0] === objects[0]);
  14091. * // => false
  14092. */
  14093. function cloneDeep(value) {
  14094. return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
  14095. }
  14096. module.exports = cloneDeep;
  14097. /***/ }),
  14098. /***/ "../../node_modules/lodash/constant.js":
  14099. /*!*****************************************************************!*\
  14100. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/constant.js ***!
  14101. \*****************************************************************/
  14102. /*! no static exports found */
  14103. /***/ (function(module, exports) {
  14104. /**
  14105. * Creates a function that returns `value`.
  14106. *
  14107. * @static
  14108. * @memberOf _
  14109. * @since 2.4.0
  14110. * @category Util
  14111. * @param {*} value The value to return from the new function.
  14112. * @returns {Function} Returns the new constant function.
  14113. * @example
  14114. *
  14115. * var objects = _.times(2, _.constant({ 'a': 1 }));
  14116. *
  14117. * console.log(objects);
  14118. * // => [{ 'a': 1 }, { 'a': 1 }]
  14119. *
  14120. * console.log(objects[0] === objects[1]);
  14121. * // => true
  14122. */
  14123. function constant(value) {
  14124. return function() {
  14125. return value;
  14126. };
  14127. }
  14128. module.exports = constant;
  14129. /***/ }),
  14130. /***/ "../../node_modules/lodash/defaults.js":
  14131. /*!*****************************************************************!*\
  14132. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/defaults.js ***!
  14133. \*****************************************************************/
  14134. /*! no static exports found */
  14135. /***/ (function(module, exports, __webpack_require__) {
  14136. var baseRest = __webpack_require__(/*! ./_baseRest */ "../../node_modules/lodash/_baseRest.js"),
  14137. eq = __webpack_require__(/*! ./eq */ "../../node_modules/lodash/eq.js"),
  14138. isIterateeCall = __webpack_require__(/*! ./_isIterateeCall */ "../../node_modules/lodash/_isIterateeCall.js"),
  14139. keysIn = __webpack_require__(/*! ./keysIn */ "../../node_modules/lodash/keysIn.js");
  14140. /** Used for built-in method references. */
  14141. var objectProto = Object.prototype;
  14142. /** Used to check objects for own properties. */
  14143. var hasOwnProperty = objectProto.hasOwnProperty;
  14144. /**
  14145. * Assigns own and inherited enumerable string keyed properties of source
  14146. * objects to the destination object for all destination properties that
  14147. * resolve to `undefined`. Source objects are applied from left to right.
  14148. * Once a property is set, additional values of the same property are ignored.
  14149. *
  14150. * **Note:** This method mutates `object`.
  14151. *
  14152. * @static
  14153. * @since 0.1.0
  14154. * @memberOf _
  14155. * @category Object
  14156. * @param {Object} object The destination object.
  14157. * @param {...Object} [sources] The source objects.
  14158. * @returns {Object} Returns `object`.
  14159. * @see _.defaultsDeep
  14160. * @example
  14161. *
  14162. * _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
  14163. * // => { 'a': 1, 'b': 2 }
  14164. */
  14165. var defaults = baseRest(function(object, sources) {
  14166. object = Object(object);
  14167. var index = -1;
  14168. var length = sources.length;
  14169. var guard = length > 2 ? sources[2] : undefined;
  14170. if (guard && isIterateeCall(sources[0], sources[1], guard)) {
  14171. length = 1;
  14172. }
  14173. while (++index < length) {
  14174. var source = sources[index];
  14175. var props = keysIn(source);
  14176. var propsIndex = -1;
  14177. var propsLength = props.length;
  14178. while (++propsIndex < propsLength) {
  14179. var key = props[propsIndex];
  14180. var value = object[key];
  14181. if (value === undefined ||
  14182. (eq(value, objectProto[key]) && !hasOwnProperty.call(object, key))) {
  14183. object[key] = source[key];
  14184. }
  14185. }
  14186. }
  14187. return object;
  14188. });
  14189. module.exports = defaults;
  14190. /***/ }),
  14191. /***/ "../../node_modules/lodash/each.js":
  14192. /*!*************************************************************!*\
  14193. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/each.js ***!
  14194. \*************************************************************/
  14195. /*! no static exports found */
  14196. /***/ (function(module, exports, __webpack_require__) {
  14197. module.exports = __webpack_require__(/*! ./forEach */ "../../node_modules/lodash/forEach.js");
  14198. /***/ }),
  14199. /***/ "../../node_modules/lodash/eq.js":
  14200. /*!***********************************************************!*\
  14201. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/eq.js ***!
  14202. \***********************************************************/
  14203. /*! no static exports found */
  14204. /***/ (function(module, exports) {
  14205. /**
  14206. * Performs a
  14207. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  14208. * comparison between two values to determine if they are equivalent.
  14209. *
  14210. * @static
  14211. * @memberOf _
  14212. * @since 4.0.0
  14213. * @category Lang
  14214. * @param {*} value The value to compare.
  14215. * @param {*} other The other value to compare.
  14216. * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
  14217. * @example
  14218. *
  14219. * var object = { 'a': 1 };
  14220. * var other = { 'a': 1 };
  14221. *
  14222. * _.eq(object, object);
  14223. * // => true
  14224. *
  14225. * _.eq(object, other);
  14226. * // => false
  14227. *
  14228. * _.eq('a', 'a');
  14229. * // => true
  14230. *
  14231. * _.eq('a', Object('a'));
  14232. * // => false
  14233. *
  14234. * _.eq(NaN, NaN);
  14235. * // => true
  14236. */
  14237. function eq(value, other) {
  14238. return value === other || (value !== value && other !== other);
  14239. }
  14240. module.exports = eq;
  14241. /***/ }),
  14242. /***/ "../../node_modules/lodash/filter.js":
  14243. /*!***************************************************************!*\
  14244. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/filter.js ***!
  14245. \***************************************************************/
  14246. /*! no static exports found */
  14247. /***/ (function(module, exports, __webpack_require__) {
  14248. var arrayFilter = __webpack_require__(/*! ./_arrayFilter */ "../../node_modules/lodash/_arrayFilter.js"),
  14249. baseFilter = __webpack_require__(/*! ./_baseFilter */ "../../node_modules/lodash/_baseFilter.js"),
  14250. baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../node_modules/lodash/_baseIteratee.js"),
  14251. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js");
  14252. /**
  14253. * Iterates over elements of `collection`, returning an array of all elements
  14254. * `predicate` returns truthy for. The predicate is invoked with three
  14255. * arguments: (value, index|key, collection).
  14256. *
  14257. * **Note:** Unlike `_.remove`, this method returns a new array.
  14258. *
  14259. * @static
  14260. * @memberOf _
  14261. * @since 0.1.0
  14262. * @category Collection
  14263. * @param {Array|Object} collection The collection to iterate over.
  14264. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  14265. * @returns {Array} Returns the new filtered array.
  14266. * @see _.reject
  14267. * @example
  14268. *
  14269. * var users = [
  14270. * { 'user': 'barney', 'age': 36, 'active': true },
  14271. * { 'user': 'fred', 'age': 40, 'active': false }
  14272. * ];
  14273. *
  14274. * _.filter(users, function(o) { return !o.active; });
  14275. * // => objects for ['fred']
  14276. *
  14277. * // The `_.matches` iteratee shorthand.
  14278. * _.filter(users, { 'age': 36, 'active': true });
  14279. * // => objects for ['barney']
  14280. *
  14281. * // The `_.matchesProperty` iteratee shorthand.
  14282. * _.filter(users, ['active', false]);
  14283. * // => objects for ['fred']
  14284. *
  14285. * // The `_.property` iteratee shorthand.
  14286. * _.filter(users, 'active');
  14287. * // => objects for ['barney']
  14288. */
  14289. function filter(collection, predicate) {
  14290. var func = isArray(collection) ? arrayFilter : baseFilter;
  14291. return func(collection, baseIteratee(predicate, 3));
  14292. }
  14293. module.exports = filter;
  14294. /***/ }),
  14295. /***/ "../../node_modules/lodash/find.js":
  14296. /*!*************************************************************!*\
  14297. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/find.js ***!
  14298. \*************************************************************/
  14299. /*! no static exports found */
  14300. /***/ (function(module, exports, __webpack_require__) {
  14301. var createFind = __webpack_require__(/*! ./_createFind */ "../../node_modules/lodash/_createFind.js"),
  14302. findIndex = __webpack_require__(/*! ./findIndex */ "../../node_modules/lodash/findIndex.js");
  14303. /**
  14304. * Iterates over elements of `collection`, returning the first element
  14305. * `predicate` returns truthy for. The predicate is invoked with three
  14306. * arguments: (value, index|key, collection).
  14307. *
  14308. * @static
  14309. * @memberOf _
  14310. * @since 0.1.0
  14311. * @category Collection
  14312. * @param {Array|Object} collection The collection to inspect.
  14313. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  14314. * @param {number} [fromIndex=0] The index to search from.
  14315. * @returns {*} Returns the matched element, else `undefined`.
  14316. * @example
  14317. *
  14318. * var users = [
  14319. * { 'user': 'barney', 'age': 36, 'active': true },
  14320. * { 'user': 'fred', 'age': 40, 'active': false },
  14321. * { 'user': 'pebbles', 'age': 1, 'active': true }
  14322. * ];
  14323. *
  14324. * _.find(users, function(o) { return o.age < 40; });
  14325. * // => object for 'barney'
  14326. *
  14327. * // The `_.matches` iteratee shorthand.
  14328. * _.find(users, { 'age': 1, 'active': true });
  14329. * // => object for 'pebbles'
  14330. *
  14331. * // The `_.matchesProperty` iteratee shorthand.
  14332. * _.find(users, ['active', false]);
  14333. * // => object for 'fred'
  14334. *
  14335. * // The `_.property` iteratee shorthand.
  14336. * _.find(users, 'active');
  14337. * // => object for 'barney'
  14338. */
  14339. var find = createFind(findIndex);
  14340. module.exports = find;
  14341. /***/ }),
  14342. /***/ "../../node_modules/lodash/findIndex.js":
  14343. /*!******************************************************************!*\
  14344. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/findIndex.js ***!
  14345. \******************************************************************/
  14346. /*! no static exports found */
  14347. /***/ (function(module, exports, __webpack_require__) {
  14348. var baseFindIndex = __webpack_require__(/*! ./_baseFindIndex */ "../../node_modules/lodash/_baseFindIndex.js"),
  14349. baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../node_modules/lodash/_baseIteratee.js"),
  14350. toInteger = __webpack_require__(/*! ./toInteger */ "../../node_modules/lodash/toInteger.js");
  14351. /* Built-in method references for those with the same name as other `lodash` methods. */
  14352. var nativeMax = Math.max;
  14353. /**
  14354. * This method is like `_.find` except that it returns the index of the first
  14355. * element `predicate` returns truthy for instead of the element itself.
  14356. *
  14357. * @static
  14358. * @memberOf _
  14359. * @since 1.1.0
  14360. * @category Array
  14361. * @param {Array} array The array to inspect.
  14362. * @param {Function} [predicate=_.identity] The function invoked per iteration.
  14363. * @param {number} [fromIndex=0] The index to search from.
  14364. * @returns {number} Returns the index of the found element, else `-1`.
  14365. * @example
  14366. *
  14367. * var users = [
  14368. * { 'user': 'barney', 'active': false },
  14369. * { 'user': 'fred', 'active': false },
  14370. * { 'user': 'pebbles', 'active': true }
  14371. * ];
  14372. *
  14373. * _.findIndex(users, function(o) { return o.user == 'barney'; });
  14374. * // => 0
  14375. *
  14376. * // The `_.matches` iteratee shorthand.
  14377. * _.findIndex(users, { 'user': 'fred', 'active': false });
  14378. * // => 1
  14379. *
  14380. * // The `_.matchesProperty` iteratee shorthand.
  14381. * _.findIndex(users, ['active', false]);
  14382. * // => 0
  14383. *
  14384. * // The `_.property` iteratee shorthand.
  14385. * _.findIndex(users, 'active');
  14386. * // => 2
  14387. */
  14388. function findIndex(array, predicate, fromIndex) {
  14389. var length = array == null ? 0 : array.length;
  14390. if (!length) {
  14391. return -1;
  14392. }
  14393. var index = fromIndex == null ? 0 : toInteger(fromIndex);
  14394. if (index < 0) {
  14395. index = nativeMax(length + index, 0);
  14396. }
  14397. return baseFindIndex(array, baseIteratee(predicate, 3), index);
  14398. }
  14399. module.exports = findIndex;
  14400. /***/ }),
  14401. /***/ "../../node_modules/lodash/flatten.js":
  14402. /*!****************************************************************!*\
  14403. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/flatten.js ***!
  14404. \****************************************************************/
  14405. /*! no static exports found */
  14406. /***/ (function(module, exports, __webpack_require__) {
  14407. var baseFlatten = __webpack_require__(/*! ./_baseFlatten */ "../../node_modules/lodash/_baseFlatten.js");
  14408. /**
  14409. * Flattens `array` a single level deep.
  14410. *
  14411. * @static
  14412. * @memberOf _
  14413. * @since 0.1.0
  14414. * @category Array
  14415. * @param {Array} array The array to flatten.
  14416. * @returns {Array} Returns the new flattened array.
  14417. * @example
  14418. *
  14419. * _.flatten([1, [2, [3, [4]], 5]]);
  14420. * // => [1, 2, [3, [4]], 5]
  14421. */
  14422. function flatten(array) {
  14423. var length = array == null ? 0 : array.length;
  14424. return length ? baseFlatten(array, 1) : [];
  14425. }
  14426. module.exports = flatten;
  14427. /***/ }),
  14428. /***/ "../../node_modules/lodash/forEach.js":
  14429. /*!****************************************************************!*\
  14430. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/forEach.js ***!
  14431. \****************************************************************/
  14432. /*! no static exports found */
  14433. /***/ (function(module, exports, __webpack_require__) {
  14434. var arrayEach = __webpack_require__(/*! ./_arrayEach */ "../../node_modules/lodash/_arrayEach.js"),
  14435. baseEach = __webpack_require__(/*! ./_baseEach */ "../../node_modules/lodash/_baseEach.js"),
  14436. castFunction = __webpack_require__(/*! ./_castFunction */ "../../node_modules/lodash/_castFunction.js"),
  14437. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js");
  14438. /**
  14439. * Iterates over elements of `collection` and invokes `iteratee` for each element.
  14440. * The iteratee is invoked with three arguments: (value, index|key, collection).
  14441. * Iteratee functions may exit iteration early by explicitly returning `false`.
  14442. *
  14443. * **Note:** As with other "Collections" methods, objects with a "length"
  14444. * property are iterated like arrays. To avoid this behavior use `_.forIn`
  14445. * or `_.forOwn` for object iteration.
  14446. *
  14447. * @static
  14448. * @memberOf _
  14449. * @since 0.1.0
  14450. * @alias each
  14451. * @category Collection
  14452. * @param {Array|Object} collection The collection to iterate over.
  14453. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  14454. * @returns {Array|Object} Returns `collection`.
  14455. * @see _.forEachRight
  14456. * @example
  14457. *
  14458. * _.forEach([1, 2], function(value) {
  14459. * console.log(value);
  14460. * });
  14461. * // => Logs `1` then `2`.
  14462. *
  14463. * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) {
  14464. * console.log(key);
  14465. * });
  14466. * // => Logs 'a' then 'b' (iteration order is not guaranteed).
  14467. */
  14468. function forEach(collection, iteratee) {
  14469. var func = isArray(collection) ? arrayEach : baseEach;
  14470. return func(collection, castFunction(iteratee));
  14471. }
  14472. module.exports = forEach;
  14473. /***/ }),
  14474. /***/ "../../node_modules/lodash/forIn.js":
  14475. /*!**************************************************************!*\
  14476. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/forIn.js ***!
  14477. \**************************************************************/
  14478. /*! no static exports found */
  14479. /***/ (function(module, exports, __webpack_require__) {
  14480. var baseFor = __webpack_require__(/*! ./_baseFor */ "../../node_modules/lodash/_baseFor.js"),
  14481. castFunction = __webpack_require__(/*! ./_castFunction */ "../../node_modules/lodash/_castFunction.js"),
  14482. keysIn = __webpack_require__(/*! ./keysIn */ "../../node_modules/lodash/keysIn.js");
  14483. /**
  14484. * Iterates over own and inherited enumerable string keyed properties of an
  14485. * object and invokes `iteratee` for each property. The iteratee is invoked
  14486. * with three arguments: (value, key, object). Iteratee functions may exit
  14487. * iteration early by explicitly returning `false`.
  14488. *
  14489. * @static
  14490. * @memberOf _
  14491. * @since 0.3.0
  14492. * @category Object
  14493. * @param {Object} object The object to iterate over.
  14494. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  14495. * @returns {Object} Returns `object`.
  14496. * @see _.forInRight
  14497. * @example
  14498. *
  14499. * function Foo() {
  14500. * this.a = 1;
  14501. * this.b = 2;
  14502. * }
  14503. *
  14504. * Foo.prototype.c = 3;
  14505. *
  14506. * _.forIn(new Foo, function(value, key) {
  14507. * console.log(key);
  14508. * });
  14509. * // => Logs 'a', 'b', then 'c' (iteration order is not guaranteed).
  14510. */
  14511. function forIn(object, iteratee) {
  14512. return object == null
  14513. ? object
  14514. : baseFor(object, castFunction(iteratee), keysIn);
  14515. }
  14516. module.exports = forIn;
  14517. /***/ }),
  14518. /***/ "../../node_modules/lodash/get.js":
  14519. /*!************************************************************!*\
  14520. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/get.js ***!
  14521. \************************************************************/
  14522. /*! no static exports found */
  14523. /***/ (function(module, exports, __webpack_require__) {
  14524. var baseGet = __webpack_require__(/*! ./_baseGet */ "../../node_modules/lodash/_baseGet.js");
  14525. /**
  14526. * Gets the value at `path` of `object`. If the resolved value is
  14527. * `undefined`, the `defaultValue` is returned in its place.
  14528. *
  14529. * @static
  14530. * @memberOf _
  14531. * @since 3.7.0
  14532. * @category Object
  14533. * @param {Object} object The object to query.
  14534. * @param {Array|string} path The path of the property to get.
  14535. * @param {*} [defaultValue] The value returned for `undefined` resolved values.
  14536. * @returns {*} Returns the resolved value.
  14537. * @example
  14538. *
  14539. * var object = { 'a': [{ 'b': { 'c': 3 } }] };
  14540. *
  14541. * _.get(object, 'a[0].b.c');
  14542. * // => 3
  14543. *
  14544. * _.get(object, ['a', '0', 'b', 'c']);
  14545. * // => 3
  14546. *
  14547. * _.get(object, 'a.b.c', 'default');
  14548. * // => 'default'
  14549. */
  14550. function get(object, path, defaultValue) {
  14551. var result = object == null ? undefined : baseGet(object, path);
  14552. return result === undefined ? defaultValue : result;
  14553. }
  14554. module.exports = get;
  14555. /***/ }),
  14556. /***/ "../../node_modules/lodash/has.js":
  14557. /*!************************************************************!*\
  14558. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/has.js ***!
  14559. \************************************************************/
  14560. /*! no static exports found */
  14561. /***/ (function(module, exports, __webpack_require__) {
  14562. var baseHas = __webpack_require__(/*! ./_baseHas */ "../../node_modules/lodash/_baseHas.js"),
  14563. hasPath = __webpack_require__(/*! ./_hasPath */ "../../node_modules/lodash/_hasPath.js");
  14564. /**
  14565. * Checks if `path` is a direct property of `object`.
  14566. *
  14567. * @static
  14568. * @since 0.1.0
  14569. * @memberOf _
  14570. * @category Object
  14571. * @param {Object} object The object to query.
  14572. * @param {Array|string} path The path to check.
  14573. * @returns {boolean} Returns `true` if `path` exists, else `false`.
  14574. * @example
  14575. *
  14576. * var object = { 'a': { 'b': 2 } };
  14577. * var other = _.create({ 'a': _.create({ 'b': 2 }) });
  14578. *
  14579. * _.has(object, 'a');
  14580. * // => true
  14581. *
  14582. * _.has(object, 'a.b');
  14583. * // => true
  14584. *
  14585. * _.has(object, ['a', 'b']);
  14586. * // => true
  14587. *
  14588. * _.has(other, 'a');
  14589. * // => false
  14590. */
  14591. function has(object, path) {
  14592. return object != null && hasPath(object, path, baseHas);
  14593. }
  14594. module.exports = has;
  14595. /***/ }),
  14596. /***/ "../../node_modules/lodash/hasIn.js":
  14597. /*!**************************************************************!*\
  14598. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/hasIn.js ***!
  14599. \**************************************************************/
  14600. /*! no static exports found */
  14601. /***/ (function(module, exports, __webpack_require__) {
  14602. var baseHasIn = __webpack_require__(/*! ./_baseHasIn */ "../../node_modules/lodash/_baseHasIn.js"),
  14603. hasPath = __webpack_require__(/*! ./_hasPath */ "../../node_modules/lodash/_hasPath.js");
  14604. /**
  14605. * Checks if `path` is a direct or inherited property of `object`.
  14606. *
  14607. * @static
  14608. * @memberOf _
  14609. * @since 4.0.0
  14610. * @category Object
  14611. * @param {Object} object The object to query.
  14612. * @param {Array|string} path The path to check.
  14613. * @returns {boolean} Returns `true` if `path` exists, else `false`.
  14614. * @example
  14615. *
  14616. * var object = _.create({ 'a': _.create({ 'b': 2 }) });
  14617. *
  14618. * _.hasIn(object, 'a');
  14619. * // => true
  14620. *
  14621. * _.hasIn(object, 'a.b');
  14622. * // => true
  14623. *
  14624. * _.hasIn(object, ['a', 'b']);
  14625. * // => true
  14626. *
  14627. * _.hasIn(object, 'b');
  14628. * // => false
  14629. */
  14630. function hasIn(object, path) {
  14631. return object != null && hasPath(object, path, baseHasIn);
  14632. }
  14633. module.exports = hasIn;
  14634. /***/ }),
  14635. /***/ "../../node_modules/lodash/identity.js":
  14636. /*!*****************************************************************!*\
  14637. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/identity.js ***!
  14638. \*****************************************************************/
  14639. /*! no static exports found */
  14640. /***/ (function(module, exports) {
  14641. /**
  14642. * This method returns the first argument it receives.
  14643. *
  14644. * @static
  14645. * @since 0.1.0
  14646. * @memberOf _
  14647. * @category Util
  14648. * @param {*} value Any value.
  14649. * @returns {*} Returns `value`.
  14650. * @example
  14651. *
  14652. * var object = { 'a': 1 };
  14653. *
  14654. * console.log(_.identity(object) === object);
  14655. * // => true
  14656. */
  14657. function identity(value) {
  14658. return value;
  14659. }
  14660. module.exports = identity;
  14661. /***/ }),
  14662. /***/ "../../node_modules/lodash/isArguments.js":
  14663. /*!********************************************************************!*\
  14664. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/isArguments.js ***!
  14665. \********************************************************************/
  14666. /*! no static exports found */
  14667. /***/ (function(module, exports, __webpack_require__) {
  14668. var baseIsArguments = __webpack_require__(/*! ./_baseIsArguments */ "../../node_modules/lodash/_baseIsArguments.js"),
  14669. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  14670. /** Used for built-in method references. */
  14671. var objectProto = Object.prototype;
  14672. /** Used to check objects for own properties. */
  14673. var hasOwnProperty = objectProto.hasOwnProperty;
  14674. /** Built-in value references. */
  14675. var propertyIsEnumerable = objectProto.propertyIsEnumerable;
  14676. /**
  14677. * Checks if `value` is likely an `arguments` object.
  14678. *
  14679. * @static
  14680. * @memberOf _
  14681. * @since 0.1.0
  14682. * @category Lang
  14683. * @param {*} value The value to check.
  14684. * @returns {boolean} Returns `true` if `value` is an `arguments` object,
  14685. * else `false`.
  14686. * @example
  14687. *
  14688. * _.isArguments(function() { return arguments; }());
  14689. * // => true
  14690. *
  14691. * _.isArguments([1, 2, 3]);
  14692. * // => false
  14693. */
  14694. var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
  14695. return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&
  14696. !propertyIsEnumerable.call(value, 'callee');
  14697. };
  14698. module.exports = isArguments;
  14699. /***/ }),
  14700. /***/ "../../node_modules/lodash/isArray.js":
  14701. /*!****************************************************************!*\
  14702. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/isArray.js ***!
  14703. \****************************************************************/
  14704. /*! no static exports found */
  14705. /***/ (function(module, exports) {
  14706. /**
  14707. * Checks if `value` is classified as an `Array` object.
  14708. *
  14709. * @static
  14710. * @memberOf _
  14711. * @since 0.1.0
  14712. * @category Lang
  14713. * @param {*} value The value to check.
  14714. * @returns {boolean} Returns `true` if `value` is an array, else `false`.
  14715. * @example
  14716. *
  14717. * _.isArray([1, 2, 3]);
  14718. * // => true
  14719. *
  14720. * _.isArray(document.body.children);
  14721. * // => false
  14722. *
  14723. * _.isArray('abc');
  14724. * // => false
  14725. *
  14726. * _.isArray(_.noop);
  14727. * // => false
  14728. */
  14729. var isArray = Array.isArray;
  14730. module.exports = isArray;
  14731. /***/ }),
  14732. /***/ "../../node_modules/lodash/isArrayLike.js":
  14733. /*!********************************************************************!*\
  14734. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/isArrayLike.js ***!
  14735. \********************************************************************/
  14736. /*! no static exports found */
  14737. /***/ (function(module, exports, __webpack_require__) {
  14738. var isFunction = __webpack_require__(/*! ./isFunction */ "../../node_modules/lodash/isFunction.js"),
  14739. isLength = __webpack_require__(/*! ./isLength */ "../../node_modules/lodash/isLength.js");
  14740. /**
  14741. * Checks if `value` is array-like. A value is considered array-like if it's
  14742. * not a function and has a `value.length` that's an integer greater than or
  14743. * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
  14744. *
  14745. * @static
  14746. * @memberOf _
  14747. * @since 4.0.0
  14748. * @category Lang
  14749. * @param {*} value The value to check.
  14750. * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
  14751. * @example
  14752. *
  14753. * _.isArrayLike([1, 2, 3]);
  14754. * // => true
  14755. *
  14756. * _.isArrayLike(document.body.children);
  14757. * // => true
  14758. *
  14759. * _.isArrayLike('abc');
  14760. * // => true
  14761. *
  14762. * _.isArrayLike(_.noop);
  14763. * // => false
  14764. */
  14765. function isArrayLike(value) {
  14766. return value != null && isLength(value.length) && !isFunction(value);
  14767. }
  14768. module.exports = isArrayLike;
  14769. /***/ }),
  14770. /***/ "../../node_modules/lodash/isArrayLikeObject.js":
  14771. /*!**************************************************************************!*\
  14772. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/isArrayLikeObject.js ***!
  14773. \**************************************************************************/
  14774. /*! no static exports found */
  14775. /***/ (function(module, exports, __webpack_require__) {
  14776. var isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js"),
  14777. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  14778. /**
  14779. * This method is like `_.isArrayLike` except that it also checks if `value`
  14780. * is an object.
  14781. *
  14782. * @static
  14783. * @memberOf _
  14784. * @since 4.0.0
  14785. * @category Lang
  14786. * @param {*} value The value to check.
  14787. * @returns {boolean} Returns `true` if `value` is an array-like object,
  14788. * else `false`.
  14789. * @example
  14790. *
  14791. * _.isArrayLikeObject([1, 2, 3]);
  14792. * // => true
  14793. *
  14794. * _.isArrayLikeObject(document.body.children);
  14795. * // => true
  14796. *
  14797. * _.isArrayLikeObject('abc');
  14798. * // => false
  14799. *
  14800. * _.isArrayLikeObject(_.noop);
  14801. * // => false
  14802. */
  14803. function isArrayLikeObject(value) {
  14804. return isObjectLike(value) && isArrayLike(value);
  14805. }
  14806. module.exports = isArrayLikeObject;
  14807. /***/ }),
  14808. /***/ "../../node_modules/lodash/isBuffer.js":
  14809. /*!*****************************************************************!*\
  14810. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/isBuffer.js ***!
  14811. \*****************************************************************/
  14812. /*! no static exports found */
  14813. /***/ (function(module, exports, __webpack_require__) {
  14814. /* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js"),
  14815. stubFalse = __webpack_require__(/*! ./stubFalse */ "../../node_modules/lodash/stubFalse.js");
  14816. /** Detect free variable `exports`. */
  14817. var freeExports = true && exports && !exports.nodeType && exports;
  14818. /** Detect free variable `module`. */
  14819. var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
  14820. /** Detect the popular CommonJS extension `module.exports`. */
  14821. var moduleExports = freeModule && freeModule.exports === freeExports;
  14822. /** Built-in value references. */
  14823. var Buffer = moduleExports ? root.Buffer : undefined;
  14824. /* Built-in method references for those with the same name as other `lodash` methods. */
  14825. var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
  14826. /**
  14827. * Checks if `value` is a buffer.
  14828. *
  14829. * @static
  14830. * @memberOf _
  14831. * @since 4.3.0
  14832. * @category Lang
  14833. * @param {*} value The value to check.
  14834. * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
  14835. * @example
  14836. *
  14837. * _.isBuffer(new Buffer(2));
  14838. * // => true
  14839. *
  14840. * _.isBuffer(new Uint8Array(2));
  14841. * // => false
  14842. */
  14843. var isBuffer = nativeIsBuffer || stubFalse;
  14844. module.exports = isBuffer;
  14845. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/module.js */ "../../node_modules/webpack/buildin/module.js")(module)))
  14846. /***/ }),
  14847. /***/ "../../node_modules/lodash/isEmpty.js":
  14848. /*!****************************************************************!*\
  14849. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/isEmpty.js ***!
  14850. \****************************************************************/
  14851. /*! no static exports found */
  14852. /***/ (function(module, exports, __webpack_require__) {
  14853. var baseKeys = __webpack_require__(/*! ./_baseKeys */ "../../node_modules/lodash/_baseKeys.js"),
  14854. getTag = __webpack_require__(/*! ./_getTag */ "../../node_modules/lodash/_getTag.js"),
  14855. isArguments = __webpack_require__(/*! ./isArguments */ "../../node_modules/lodash/isArguments.js"),
  14856. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  14857. isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js"),
  14858. isBuffer = __webpack_require__(/*! ./isBuffer */ "../../node_modules/lodash/isBuffer.js"),
  14859. isPrototype = __webpack_require__(/*! ./_isPrototype */ "../../node_modules/lodash/_isPrototype.js"),
  14860. isTypedArray = __webpack_require__(/*! ./isTypedArray */ "../../node_modules/lodash/isTypedArray.js");
  14861. /** `Object#toString` result references. */
  14862. var mapTag = '[object Map]',
  14863. setTag = '[object Set]';
  14864. /** Used for built-in method references. */
  14865. var objectProto = Object.prototype;
  14866. /** Used to check objects for own properties. */
  14867. var hasOwnProperty = objectProto.hasOwnProperty;
  14868. /**
  14869. * Checks if `value` is an empty object, collection, map, or set.
  14870. *
  14871. * Objects are considered empty if they have no own enumerable string keyed
  14872. * properties.
  14873. *
  14874. * Array-like values such as `arguments` objects, arrays, buffers, strings, or
  14875. * jQuery-like collections are considered empty if they have a `length` of `0`.
  14876. * Similarly, maps and sets are considered empty if they have a `size` of `0`.
  14877. *
  14878. * @static
  14879. * @memberOf _
  14880. * @since 0.1.0
  14881. * @category Lang
  14882. * @param {*} value The value to check.
  14883. * @returns {boolean} Returns `true` if `value` is empty, else `false`.
  14884. * @example
  14885. *
  14886. * _.isEmpty(null);
  14887. * // => true
  14888. *
  14889. * _.isEmpty(true);
  14890. * // => true
  14891. *
  14892. * _.isEmpty(1);
  14893. * // => true
  14894. *
  14895. * _.isEmpty([1, 2, 3]);
  14896. * // => false
  14897. *
  14898. * _.isEmpty({ 'a': 1 });
  14899. * // => false
  14900. */
  14901. function isEmpty(value) {
  14902. if (value == null) {
  14903. return true;
  14904. }
  14905. if (isArrayLike(value) &&
  14906. (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' ||
  14907. isBuffer(value) || isTypedArray(value) || isArguments(value))) {
  14908. return !value.length;
  14909. }
  14910. var tag = getTag(value);
  14911. if (tag == mapTag || tag == setTag) {
  14912. return !value.size;
  14913. }
  14914. if (isPrototype(value)) {
  14915. return !baseKeys(value).length;
  14916. }
  14917. for (var key in value) {
  14918. if (hasOwnProperty.call(value, key)) {
  14919. return false;
  14920. }
  14921. }
  14922. return true;
  14923. }
  14924. module.exports = isEmpty;
  14925. /***/ }),
  14926. /***/ "../../node_modules/lodash/isFunction.js":
  14927. /*!*******************************************************************!*\
  14928. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/isFunction.js ***!
  14929. \*******************************************************************/
  14930. /*! no static exports found */
  14931. /***/ (function(module, exports, __webpack_require__) {
  14932. var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../node_modules/lodash/_baseGetTag.js"),
  14933. isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js");
  14934. /** `Object#toString` result references. */
  14935. var asyncTag = '[object AsyncFunction]',
  14936. funcTag = '[object Function]',
  14937. genTag = '[object GeneratorFunction]',
  14938. proxyTag = '[object Proxy]';
  14939. /**
  14940. * Checks if `value` is classified as a `Function` object.
  14941. *
  14942. * @static
  14943. * @memberOf _
  14944. * @since 0.1.0
  14945. * @category Lang
  14946. * @param {*} value The value to check.
  14947. * @returns {boolean} Returns `true` if `value` is a function, else `false`.
  14948. * @example
  14949. *
  14950. * _.isFunction(_);
  14951. * // => true
  14952. *
  14953. * _.isFunction(/abc/);
  14954. * // => false
  14955. */
  14956. function isFunction(value) {
  14957. if (!isObject(value)) {
  14958. return false;
  14959. }
  14960. // The use of `Object#toString` avoids issues with the `typeof` operator
  14961. // in Safari 9 which returns 'object' for typed arrays and other constructors.
  14962. var tag = baseGetTag(value);
  14963. return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
  14964. }
  14965. module.exports = isFunction;
  14966. /***/ }),
  14967. /***/ "../../node_modules/lodash/isLength.js":
  14968. /*!*****************************************************************!*\
  14969. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/isLength.js ***!
  14970. \*****************************************************************/
  14971. /*! no static exports found */
  14972. /***/ (function(module, exports) {
  14973. /** Used as references for various `Number` constants. */
  14974. var MAX_SAFE_INTEGER = 9007199254740991;
  14975. /**
  14976. * Checks if `value` is a valid array-like length.
  14977. *
  14978. * **Note:** This method is loosely based on
  14979. * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
  14980. *
  14981. * @static
  14982. * @memberOf _
  14983. * @since 4.0.0
  14984. * @category Lang
  14985. * @param {*} value The value to check.
  14986. * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
  14987. * @example
  14988. *
  14989. * _.isLength(3);
  14990. * // => true
  14991. *
  14992. * _.isLength(Number.MIN_VALUE);
  14993. * // => false
  14994. *
  14995. * _.isLength(Infinity);
  14996. * // => false
  14997. *
  14998. * _.isLength('3');
  14999. * // => false
  15000. */
  15001. function isLength(value) {
  15002. return typeof value == 'number' &&
  15003. value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
  15004. }
  15005. module.exports = isLength;
  15006. /***/ }),
  15007. /***/ "../../node_modules/lodash/isMap.js":
  15008. /*!**************************************************************!*\
  15009. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/isMap.js ***!
  15010. \**************************************************************/
  15011. /*! no static exports found */
  15012. /***/ (function(module, exports, __webpack_require__) {
  15013. var baseIsMap = __webpack_require__(/*! ./_baseIsMap */ "../../node_modules/lodash/_baseIsMap.js"),
  15014. baseUnary = __webpack_require__(/*! ./_baseUnary */ "../../node_modules/lodash/_baseUnary.js"),
  15015. nodeUtil = __webpack_require__(/*! ./_nodeUtil */ "../../node_modules/lodash/_nodeUtil.js");
  15016. /* Node.js helper references. */
  15017. var nodeIsMap = nodeUtil && nodeUtil.isMap;
  15018. /**
  15019. * Checks if `value` is classified as a `Map` object.
  15020. *
  15021. * @static
  15022. * @memberOf _
  15023. * @since 4.3.0
  15024. * @category Lang
  15025. * @param {*} value The value to check.
  15026. * @returns {boolean} Returns `true` if `value` is a map, else `false`.
  15027. * @example
  15028. *
  15029. * _.isMap(new Map);
  15030. * // => true
  15031. *
  15032. * _.isMap(new WeakMap);
  15033. * // => false
  15034. */
  15035. var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;
  15036. module.exports = isMap;
  15037. /***/ }),
  15038. /***/ "../../node_modules/lodash/isObject.js":
  15039. /*!*****************************************************************!*\
  15040. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/isObject.js ***!
  15041. \*****************************************************************/
  15042. /*! no static exports found */
  15043. /***/ (function(module, exports) {
  15044. /**
  15045. * Checks if `value` is the
  15046. * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
  15047. * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
  15048. *
  15049. * @static
  15050. * @memberOf _
  15051. * @since 0.1.0
  15052. * @category Lang
  15053. * @param {*} value The value to check.
  15054. * @returns {boolean} Returns `true` if `value` is an object, else `false`.
  15055. * @example
  15056. *
  15057. * _.isObject({});
  15058. * // => true
  15059. *
  15060. * _.isObject([1, 2, 3]);
  15061. * // => true
  15062. *
  15063. * _.isObject(_.noop);
  15064. * // => true
  15065. *
  15066. * _.isObject(null);
  15067. * // => false
  15068. */
  15069. function isObject(value) {
  15070. var type = typeof value;
  15071. return value != null && (type == 'object' || type == 'function');
  15072. }
  15073. module.exports = isObject;
  15074. /***/ }),
  15075. /***/ "../../node_modules/lodash/isObjectLike.js":
  15076. /*!*********************************************************************!*\
  15077. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/isObjectLike.js ***!
  15078. \*********************************************************************/
  15079. /*! no static exports found */
  15080. /***/ (function(module, exports) {
  15081. /**
  15082. * Checks if `value` is object-like. A value is object-like if it's not `null`
  15083. * and has a `typeof` result of "object".
  15084. *
  15085. * @static
  15086. * @memberOf _
  15087. * @since 4.0.0
  15088. * @category Lang
  15089. * @param {*} value The value to check.
  15090. * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
  15091. * @example
  15092. *
  15093. * _.isObjectLike({});
  15094. * // => true
  15095. *
  15096. * _.isObjectLike([1, 2, 3]);
  15097. * // => true
  15098. *
  15099. * _.isObjectLike(_.noop);
  15100. * // => false
  15101. *
  15102. * _.isObjectLike(null);
  15103. * // => false
  15104. */
  15105. function isObjectLike(value) {
  15106. return value != null && typeof value == 'object';
  15107. }
  15108. module.exports = isObjectLike;
  15109. /***/ }),
  15110. /***/ "../../node_modules/lodash/isPlainObject.js":
  15111. /*!**********************************************************************!*\
  15112. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/isPlainObject.js ***!
  15113. \**********************************************************************/
  15114. /*! no static exports found */
  15115. /***/ (function(module, exports, __webpack_require__) {
  15116. var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../node_modules/lodash/_baseGetTag.js"),
  15117. getPrototype = __webpack_require__(/*! ./_getPrototype */ "../../node_modules/lodash/_getPrototype.js"),
  15118. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  15119. /** `Object#toString` result references. */
  15120. var objectTag = '[object Object]';
  15121. /** Used for built-in method references. */
  15122. var funcProto = Function.prototype,
  15123. objectProto = Object.prototype;
  15124. /** Used to resolve the decompiled source of functions. */
  15125. var funcToString = funcProto.toString;
  15126. /** Used to check objects for own properties. */
  15127. var hasOwnProperty = objectProto.hasOwnProperty;
  15128. /** Used to infer the `Object` constructor. */
  15129. var objectCtorString = funcToString.call(Object);
  15130. /**
  15131. * Checks if `value` is a plain object, that is, an object created by the
  15132. * `Object` constructor or one with a `[[Prototype]]` of `null`.
  15133. *
  15134. * @static
  15135. * @memberOf _
  15136. * @since 0.8.0
  15137. * @category Lang
  15138. * @param {*} value The value to check.
  15139. * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
  15140. * @example
  15141. *
  15142. * function Foo() {
  15143. * this.a = 1;
  15144. * }
  15145. *
  15146. * _.isPlainObject(new Foo);
  15147. * // => false
  15148. *
  15149. * _.isPlainObject([1, 2, 3]);
  15150. * // => false
  15151. *
  15152. * _.isPlainObject({ 'x': 0, 'y': 0 });
  15153. * // => true
  15154. *
  15155. * _.isPlainObject(Object.create(null));
  15156. * // => true
  15157. */
  15158. function isPlainObject(value) {
  15159. if (!isObjectLike(value) || baseGetTag(value) != objectTag) {
  15160. return false;
  15161. }
  15162. var proto = getPrototype(value);
  15163. if (proto === null) {
  15164. return true;
  15165. }
  15166. var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
  15167. return typeof Ctor == 'function' && Ctor instanceof Ctor &&
  15168. funcToString.call(Ctor) == objectCtorString;
  15169. }
  15170. module.exports = isPlainObject;
  15171. /***/ }),
  15172. /***/ "../../node_modules/lodash/isSet.js":
  15173. /*!**************************************************************!*\
  15174. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/isSet.js ***!
  15175. \**************************************************************/
  15176. /*! no static exports found */
  15177. /***/ (function(module, exports, __webpack_require__) {
  15178. var baseIsSet = __webpack_require__(/*! ./_baseIsSet */ "../../node_modules/lodash/_baseIsSet.js"),
  15179. baseUnary = __webpack_require__(/*! ./_baseUnary */ "../../node_modules/lodash/_baseUnary.js"),
  15180. nodeUtil = __webpack_require__(/*! ./_nodeUtil */ "../../node_modules/lodash/_nodeUtil.js");
  15181. /* Node.js helper references. */
  15182. var nodeIsSet = nodeUtil && nodeUtil.isSet;
  15183. /**
  15184. * Checks if `value` is classified as a `Set` object.
  15185. *
  15186. * @static
  15187. * @memberOf _
  15188. * @since 4.3.0
  15189. * @category Lang
  15190. * @param {*} value The value to check.
  15191. * @returns {boolean} Returns `true` if `value` is a set, else `false`.
  15192. * @example
  15193. *
  15194. * _.isSet(new Set);
  15195. * // => true
  15196. *
  15197. * _.isSet(new WeakSet);
  15198. * // => false
  15199. */
  15200. var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
  15201. module.exports = isSet;
  15202. /***/ }),
  15203. /***/ "../../node_modules/lodash/isString.js":
  15204. /*!*****************************************************************!*\
  15205. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/isString.js ***!
  15206. \*****************************************************************/
  15207. /*! no static exports found */
  15208. /***/ (function(module, exports, __webpack_require__) {
  15209. var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../node_modules/lodash/_baseGetTag.js"),
  15210. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  15211. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  15212. /** `Object#toString` result references. */
  15213. var stringTag = '[object String]';
  15214. /**
  15215. * Checks if `value` is classified as a `String` primitive or object.
  15216. *
  15217. * @static
  15218. * @since 0.1.0
  15219. * @memberOf _
  15220. * @category Lang
  15221. * @param {*} value The value to check.
  15222. * @returns {boolean} Returns `true` if `value` is a string, else `false`.
  15223. * @example
  15224. *
  15225. * _.isString('abc');
  15226. * // => true
  15227. *
  15228. * _.isString(1);
  15229. * // => false
  15230. */
  15231. function isString(value) {
  15232. return typeof value == 'string' ||
  15233. (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);
  15234. }
  15235. module.exports = isString;
  15236. /***/ }),
  15237. /***/ "../../node_modules/lodash/isSymbol.js":
  15238. /*!*****************************************************************!*\
  15239. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/isSymbol.js ***!
  15240. \*****************************************************************/
  15241. /*! no static exports found */
  15242. /***/ (function(module, exports, __webpack_require__) {
  15243. var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../node_modules/lodash/_baseGetTag.js"),
  15244. isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../node_modules/lodash/isObjectLike.js");
  15245. /** `Object#toString` result references. */
  15246. var symbolTag = '[object Symbol]';
  15247. /**
  15248. * Checks if `value` is classified as a `Symbol` primitive or object.
  15249. *
  15250. * @static
  15251. * @memberOf _
  15252. * @since 4.0.0
  15253. * @category Lang
  15254. * @param {*} value The value to check.
  15255. * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
  15256. * @example
  15257. *
  15258. * _.isSymbol(Symbol.iterator);
  15259. * // => true
  15260. *
  15261. * _.isSymbol('abc');
  15262. * // => false
  15263. */
  15264. function isSymbol(value) {
  15265. return typeof value == 'symbol' ||
  15266. (isObjectLike(value) && baseGetTag(value) == symbolTag);
  15267. }
  15268. module.exports = isSymbol;
  15269. /***/ }),
  15270. /***/ "../../node_modules/lodash/isTypedArray.js":
  15271. /*!*********************************************************************!*\
  15272. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/isTypedArray.js ***!
  15273. \*********************************************************************/
  15274. /*! no static exports found */
  15275. /***/ (function(module, exports, __webpack_require__) {
  15276. var baseIsTypedArray = __webpack_require__(/*! ./_baseIsTypedArray */ "../../node_modules/lodash/_baseIsTypedArray.js"),
  15277. baseUnary = __webpack_require__(/*! ./_baseUnary */ "../../node_modules/lodash/_baseUnary.js"),
  15278. nodeUtil = __webpack_require__(/*! ./_nodeUtil */ "../../node_modules/lodash/_nodeUtil.js");
  15279. /* Node.js helper references. */
  15280. var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
  15281. /**
  15282. * Checks if `value` is classified as a typed array.
  15283. *
  15284. * @static
  15285. * @memberOf _
  15286. * @since 3.0.0
  15287. * @category Lang
  15288. * @param {*} value The value to check.
  15289. * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
  15290. * @example
  15291. *
  15292. * _.isTypedArray(new Uint8Array);
  15293. * // => true
  15294. *
  15295. * _.isTypedArray([]);
  15296. * // => false
  15297. */
  15298. var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
  15299. module.exports = isTypedArray;
  15300. /***/ }),
  15301. /***/ "../../node_modules/lodash/isUndefined.js":
  15302. /*!********************************************************************!*\
  15303. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/isUndefined.js ***!
  15304. \********************************************************************/
  15305. /*! no static exports found */
  15306. /***/ (function(module, exports) {
  15307. /**
  15308. * Checks if `value` is `undefined`.
  15309. *
  15310. * @static
  15311. * @since 0.1.0
  15312. * @memberOf _
  15313. * @category Lang
  15314. * @param {*} value The value to check.
  15315. * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.
  15316. * @example
  15317. *
  15318. * _.isUndefined(void 0);
  15319. * // => true
  15320. *
  15321. * _.isUndefined(null);
  15322. * // => false
  15323. */
  15324. function isUndefined(value) {
  15325. return value === undefined;
  15326. }
  15327. module.exports = isUndefined;
  15328. /***/ }),
  15329. /***/ "../../node_modules/lodash/keys.js":
  15330. /*!*************************************************************!*\
  15331. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/keys.js ***!
  15332. \*************************************************************/
  15333. /*! no static exports found */
  15334. /***/ (function(module, exports, __webpack_require__) {
  15335. var arrayLikeKeys = __webpack_require__(/*! ./_arrayLikeKeys */ "../../node_modules/lodash/_arrayLikeKeys.js"),
  15336. baseKeys = __webpack_require__(/*! ./_baseKeys */ "../../node_modules/lodash/_baseKeys.js"),
  15337. isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js");
  15338. /**
  15339. * Creates an array of the own enumerable property names of `object`.
  15340. *
  15341. * **Note:** Non-object values are coerced to objects. See the
  15342. * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
  15343. * for more details.
  15344. *
  15345. * @static
  15346. * @since 0.1.0
  15347. * @memberOf _
  15348. * @category Object
  15349. * @param {Object} object The object to query.
  15350. * @returns {Array} Returns the array of property names.
  15351. * @example
  15352. *
  15353. * function Foo() {
  15354. * this.a = 1;
  15355. * this.b = 2;
  15356. * }
  15357. *
  15358. * Foo.prototype.c = 3;
  15359. *
  15360. * _.keys(new Foo);
  15361. * // => ['a', 'b'] (iteration order is not guaranteed)
  15362. *
  15363. * _.keys('hi');
  15364. * // => ['0', '1']
  15365. */
  15366. function keys(object) {
  15367. return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
  15368. }
  15369. module.exports = keys;
  15370. /***/ }),
  15371. /***/ "../../node_modules/lodash/keysIn.js":
  15372. /*!***************************************************************!*\
  15373. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/keysIn.js ***!
  15374. \***************************************************************/
  15375. /*! no static exports found */
  15376. /***/ (function(module, exports, __webpack_require__) {
  15377. var arrayLikeKeys = __webpack_require__(/*! ./_arrayLikeKeys */ "../../node_modules/lodash/_arrayLikeKeys.js"),
  15378. baseKeysIn = __webpack_require__(/*! ./_baseKeysIn */ "../../node_modules/lodash/_baseKeysIn.js"),
  15379. isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js");
  15380. /**
  15381. * Creates an array of the own and inherited enumerable property names of `object`.
  15382. *
  15383. * **Note:** Non-object values are coerced to objects.
  15384. *
  15385. * @static
  15386. * @memberOf _
  15387. * @since 3.0.0
  15388. * @category Object
  15389. * @param {Object} object The object to query.
  15390. * @returns {Array} Returns the array of property names.
  15391. * @example
  15392. *
  15393. * function Foo() {
  15394. * this.a = 1;
  15395. * this.b = 2;
  15396. * }
  15397. *
  15398. * Foo.prototype.c = 3;
  15399. *
  15400. * _.keysIn(new Foo);
  15401. * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
  15402. */
  15403. function keysIn(object) {
  15404. return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
  15405. }
  15406. module.exports = keysIn;
  15407. /***/ }),
  15408. /***/ "../../node_modules/lodash/last.js":
  15409. /*!*************************************************************!*\
  15410. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/last.js ***!
  15411. \*************************************************************/
  15412. /*! no static exports found */
  15413. /***/ (function(module, exports) {
  15414. /**
  15415. * Gets the last element of `array`.
  15416. *
  15417. * @static
  15418. * @memberOf _
  15419. * @since 0.1.0
  15420. * @category Array
  15421. * @param {Array} array The array to query.
  15422. * @returns {*} Returns the last element of `array`.
  15423. * @example
  15424. *
  15425. * _.last([1, 2, 3]);
  15426. * // => 3
  15427. */
  15428. function last(array) {
  15429. var length = array == null ? 0 : array.length;
  15430. return length ? array[length - 1] : undefined;
  15431. }
  15432. module.exports = last;
  15433. /***/ }),
  15434. /***/ "../../node_modules/lodash/map.js":
  15435. /*!************************************************************!*\
  15436. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/map.js ***!
  15437. \************************************************************/
  15438. /*! no static exports found */
  15439. /***/ (function(module, exports, __webpack_require__) {
  15440. var arrayMap = __webpack_require__(/*! ./_arrayMap */ "../../node_modules/lodash/_arrayMap.js"),
  15441. baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../node_modules/lodash/_baseIteratee.js"),
  15442. baseMap = __webpack_require__(/*! ./_baseMap */ "../../node_modules/lodash/_baseMap.js"),
  15443. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js");
  15444. /**
  15445. * Creates an array of values by running each element in `collection` thru
  15446. * `iteratee`. The iteratee is invoked with three arguments:
  15447. * (value, index|key, collection).
  15448. *
  15449. * Many lodash methods are guarded to work as iteratees for methods like
  15450. * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.
  15451. *
  15452. * The guarded methods are:
  15453. * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,
  15454. * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,
  15455. * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,
  15456. * `template`, `trim`, `trimEnd`, `trimStart`, and `words`
  15457. *
  15458. * @static
  15459. * @memberOf _
  15460. * @since 0.1.0
  15461. * @category Collection
  15462. * @param {Array|Object} collection The collection to iterate over.
  15463. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  15464. * @returns {Array} Returns the new mapped array.
  15465. * @example
  15466. *
  15467. * function square(n) {
  15468. * return n * n;
  15469. * }
  15470. *
  15471. * _.map([4, 8], square);
  15472. * // => [16, 64]
  15473. *
  15474. * _.map({ 'a': 4, 'b': 8 }, square);
  15475. * // => [16, 64] (iteration order is not guaranteed)
  15476. *
  15477. * var users = [
  15478. * { 'user': 'barney' },
  15479. * { 'user': 'fred' }
  15480. * ];
  15481. *
  15482. * // The `_.property` iteratee shorthand.
  15483. * _.map(users, 'user');
  15484. * // => ['barney', 'fred']
  15485. */
  15486. function map(collection, iteratee) {
  15487. var func = isArray(collection) ? arrayMap : baseMap;
  15488. return func(collection, baseIteratee(iteratee, 3));
  15489. }
  15490. module.exports = map;
  15491. /***/ }),
  15492. /***/ "../../node_modules/lodash/mapValues.js":
  15493. /*!******************************************************************!*\
  15494. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/mapValues.js ***!
  15495. \******************************************************************/
  15496. /*! no static exports found */
  15497. /***/ (function(module, exports, __webpack_require__) {
  15498. var baseAssignValue = __webpack_require__(/*! ./_baseAssignValue */ "../../node_modules/lodash/_baseAssignValue.js"),
  15499. baseForOwn = __webpack_require__(/*! ./_baseForOwn */ "../../node_modules/lodash/_baseForOwn.js"),
  15500. baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../node_modules/lodash/_baseIteratee.js");
  15501. /**
  15502. * Creates an object with the same keys as `object` and values generated
  15503. * by running each own enumerable string keyed property of `object` thru
  15504. * `iteratee`. The iteratee is invoked with three arguments:
  15505. * (value, key, object).
  15506. *
  15507. * @static
  15508. * @memberOf _
  15509. * @since 2.4.0
  15510. * @category Object
  15511. * @param {Object} object The object to iterate over.
  15512. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  15513. * @returns {Object} Returns the new mapped object.
  15514. * @see _.mapKeys
  15515. * @example
  15516. *
  15517. * var users = {
  15518. * 'fred': { 'user': 'fred', 'age': 40 },
  15519. * 'pebbles': { 'user': 'pebbles', 'age': 1 }
  15520. * };
  15521. *
  15522. * _.mapValues(users, function(o) { return o.age; });
  15523. * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
  15524. *
  15525. * // The `_.property` iteratee shorthand.
  15526. * _.mapValues(users, 'age');
  15527. * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
  15528. */
  15529. function mapValues(object, iteratee) {
  15530. var result = {};
  15531. iteratee = baseIteratee(iteratee, 3);
  15532. baseForOwn(object, function(value, key, object) {
  15533. baseAssignValue(result, key, iteratee(value, key, object));
  15534. });
  15535. return result;
  15536. }
  15537. module.exports = mapValues;
  15538. /***/ }),
  15539. /***/ "../../node_modules/lodash/max.js":
  15540. /*!************************************************************!*\
  15541. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/max.js ***!
  15542. \************************************************************/
  15543. /*! no static exports found */
  15544. /***/ (function(module, exports, __webpack_require__) {
  15545. var baseExtremum = __webpack_require__(/*! ./_baseExtremum */ "../../node_modules/lodash/_baseExtremum.js"),
  15546. baseGt = __webpack_require__(/*! ./_baseGt */ "../../node_modules/lodash/_baseGt.js"),
  15547. identity = __webpack_require__(/*! ./identity */ "../../node_modules/lodash/identity.js");
  15548. /**
  15549. * Computes the maximum value of `array`. If `array` is empty or falsey,
  15550. * `undefined` is returned.
  15551. *
  15552. * @static
  15553. * @since 0.1.0
  15554. * @memberOf _
  15555. * @category Math
  15556. * @param {Array} array The array to iterate over.
  15557. * @returns {*} Returns the maximum value.
  15558. * @example
  15559. *
  15560. * _.max([4, 2, 8, 6]);
  15561. * // => 8
  15562. *
  15563. * _.max([]);
  15564. * // => undefined
  15565. */
  15566. function max(array) {
  15567. return (array && array.length)
  15568. ? baseExtremum(array, identity, baseGt)
  15569. : undefined;
  15570. }
  15571. module.exports = max;
  15572. /***/ }),
  15573. /***/ "../../node_modules/lodash/memoize.js":
  15574. /*!****************************************************************!*\
  15575. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/memoize.js ***!
  15576. \****************************************************************/
  15577. /*! no static exports found */
  15578. /***/ (function(module, exports, __webpack_require__) {
  15579. var MapCache = __webpack_require__(/*! ./_MapCache */ "../../node_modules/lodash/_MapCache.js");
  15580. /** Error message constants. */
  15581. var FUNC_ERROR_TEXT = 'Expected a function';
  15582. /**
  15583. * Creates a function that memoizes the result of `func`. If `resolver` is
  15584. * provided, it determines the cache key for storing the result based on the
  15585. * arguments provided to the memoized function. By default, the first argument
  15586. * provided to the memoized function is used as the map cache key. The `func`
  15587. * is invoked with the `this` binding of the memoized function.
  15588. *
  15589. * **Note:** The cache is exposed as the `cache` property on the memoized
  15590. * function. Its creation may be customized by replacing the `_.memoize.Cache`
  15591. * constructor with one whose instances implement the
  15592. * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
  15593. * method interface of `clear`, `delete`, `get`, `has`, and `set`.
  15594. *
  15595. * @static
  15596. * @memberOf _
  15597. * @since 0.1.0
  15598. * @category Function
  15599. * @param {Function} func The function to have its output memoized.
  15600. * @param {Function} [resolver] The function to resolve the cache key.
  15601. * @returns {Function} Returns the new memoized function.
  15602. * @example
  15603. *
  15604. * var object = { 'a': 1, 'b': 2 };
  15605. * var other = { 'c': 3, 'd': 4 };
  15606. *
  15607. * var values = _.memoize(_.values);
  15608. * values(object);
  15609. * // => [1, 2]
  15610. *
  15611. * values(other);
  15612. * // => [3, 4]
  15613. *
  15614. * object.a = 2;
  15615. * values(object);
  15616. * // => [1, 2]
  15617. *
  15618. * // Modify the result cache.
  15619. * values.cache.set(object, ['a', 'b']);
  15620. * values(object);
  15621. * // => ['a', 'b']
  15622. *
  15623. * // Replace `_.memoize.Cache`.
  15624. * _.memoize.Cache = WeakMap;
  15625. */
  15626. function memoize(func, resolver) {
  15627. if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
  15628. throw new TypeError(FUNC_ERROR_TEXT);
  15629. }
  15630. var memoized = function() {
  15631. var args = arguments,
  15632. key = resolver ? resolver.apply(this, args) : args[0],
  15633. cache = memoized.cache;
  15634. if (cache.has(key)) {
  15635. return cache.get(key);
  15636. }
  15637. var result = func.apply(this, args);
  15638. memoized.cache = cache.set(key, result) || cache;
  15639. return result;
  15640. };
  15641. memoized.cache = new (memoize.Cache || MapCache);
  15642. return memoized;
  15643. }
  15644. // Expose `MapCache`.
  15645. memoize.Cache = MapCache;
  15646. module.exports = memoize;
  15647. /***/ }),
  15648. /***/ "../../node_modules/lodash/merge.js":
  15649. /*!**************************************************************!*\
  15650. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/merge.js ***!
  15651. \**************************************************************/
  15652. /*! no static exports found */
  15653. /***/ (function(module, exports, __webpack_require__) {
  15654. var baseMerge = __webpack_require__(/*! ./_baseMerge */ "../../node_modules/lodash/_baseMerge.js"),
  15655. createAssigner = __webpack_require__(/*! ./_createAssigner */ "../../node_modules/lodash/_createAssigner.js");
  15656. /**
  15657. * This method is like `_.assign` except that it recursively merges own and
  15658. * inherited enumerable string keyed properties of source objects into the
  15659. * destination object. Source properties that resolve to `undefined` are
  15660. * skipped if a destination value exists. Array and plain object properties
  15661. * are merged recursively. Other objects and value types are overridden by
  15662. * assignment. Source objects are applied from left to right. Subsequent
  15663. * sources overwrite property assignments of previous sources.
  15664. *
  15665. * **Note:** This method mutates `object`.
  15666. *
  15667. * @static
  15668. * @memberOf _
  15669. * @since 0.5.0
  15670. * @category Object
  15671. * @param {Object} object The destination object.
  15672. * @param {...Object} [sources] The source objects.
  15673. * @returns {Object} Returns `object`.
  15674. * @example
  15675. *
  15676. * var object = {
  15677. * 'a': [{ 'b': 2 }, { 'd': 4 }]
  15678. * };
  15679. *
  15680. * var other = {
  15681. * 'a': [{ 'c': 3 }, { 'e': 5 }]
  15682. * };
  15683. *
  15684. * _.merge(object, other);
  15685. * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }
  15686. */
  15687. var merge = createAssigner(function(object, source, srcIndex) {
  15688. baseMerge(object, source, srcIndex);
  15689. });
  15690. module.exports = merge;
  15691. /***/ }),
  15692. /***/ "../../node_modules/lodash/min.js":
  15693. /*!************************************************************!*\
  15694. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/min.js ***!
  15695. \************************************************************/
  15696. /*! no static exports found */
  15697. /***/ (function(module, exports, __webpack_require__) {
  15698. var baseExtremum = __webpack_require__(/*! ./_baseExtremum */ "../../node_modules/lodash/_baseExtremum.js"),
  15699. baseLt = __webpack_require__(/*! ./_baseLt */ "../../node_modules/lodash/_baseLt.js"),
  15700. identity = __webpack_require__(/*! ./identity */ "../../node_modules/lodash/identity.js");
  15701. /**
  15702. * Computes the minimum value of `array`. If `array` is empty or falsey,
  15703. * `undefined` is returned.
  15704. *
  15705. * @static
  15706. * @since 0.1.0
  15707. * @memberOf _
  15708. * @category Math
  15709. * @param {Array} array The array to iterate over.
  15710. * @returns {*} Returns the minimum value.
  15711. * @example
  15712. *
  15713. * _.min([4, 2, 8, 6]);
  15714. * // => 2
  15715. *
  15716. * _.min([]);
  15717. * // => undefined
  15718. */
  15719. function min(array) {
  15720. return (array && array.length)
  15721. ? baseExtremum(array, identity, baseLt)
  15722. : undefined;
  15723. }
  15724. module.exports = min;
  15725. /***/ }),
  15726. /***/ "../../node_modules/lodash/minBy.js":
  15727. /*!**************************************************************!*\
  15728. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/minBy.js ***!
  15729. \**************************************************************/
  15730. /*! no static exports found */
  15731. /***/ (function(module, exports, __webpack_require__) {
  15732. var baseExtremum = __webpack_require__(/*! ./_baseExtremum */ "../../node_modules/lodash/_baseExtremum.js"),
  15733. baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../node_modules/lodash/_baseIteratee.js"),
  15734. baseLt = __webpack_require__(/*! ./_baseLt */ "../../node_modules/lodash/_baseLt.js");
  15735. /**
  15736. * This method is like `_.min` except that it accepts `iteratee` which is
  15737. * invoked for each element in `array` to generate the criterion by which
  15738. * the value is ranked. The iteratee is invoked with one argument: (value).
  15739. *
  15740. * @static
  15741. * @memberOf _
  15742. * @since 4.0.0
  15743. * @category Math
  15744. * @param {Array} array The array to iterate over.
  15745. * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
  15746. * @returns {*} Returns the minimum value.
  15747. * @example
  15748. *
  15749. * var objects = [{ 'n': 1 }, { 'n': 2 }];
  15750. *
  15751. * _.minBy(objects, function(o) { return o.n; });
  15752. * // => { 'n': 1 }
  15753. *
  15754. * // The `_.property` iteratee shorthand.
  15755. * _.minBy(objects, 'n');
  15756. * // => { 'n': 1 }
  15757. */
  15758. function minBy(array, iteratee) {
  15759. return (array && array.length)
  15760. ? baseExtremum(array, baseIteratee(iteratee, 2), baseLt)
  15761. : undefined;
  15762. }
  15763. module.exports = minBy;
  15764. /***/ }),
  15765. /***/ "../../node_modules/lodash/noop.js":
  15766. /*!*************************************************************!*\
  15767. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/noop.js ***!
  15768. \*************************************************************/
  15769. /*! no static exports found */
  15770. /***/ (function(module, exports) {
  15771. /**
  15772. * This method returns `undefined`.
  15773. *
  15774. * @static
  15775. * @memberOf _
  15776. * @since 2.3.0
  15777. * @category Util
  15778. * @example
  15779. *
  15780. * _.times(2, _.noop);
  15781. * // => [undefined, undefined]
  15782. */
  15783. function noop() {
  15784. // No operation performed.
  15785. }
  15786. module.exports = noop;
  15787. /***/ }),
  15788. /***/ "../../node_modules/lodash/now.js":
  15789. /*!************************************************************!*\
  15790. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/now.js ***!
  15791. \************************************************************/
  15792. /*! no static exports found */
  15793. /***/ (function(module, exports, __webpack_require__) {
  15794. var root = __webpack_require__(/*! ./_root */ "../../node_modules/lodash/_root.js");
  15795. /**
  15796. * Gets the timestamp of the number of milliseconds that have elapsed since
  15797. * the Unix epoch (1 January 1970 00:00:00 UTC).
  15798. *
  15799. * @static
  15800. * @memberOf _
  15801. * @since 2.4.0
  15802. * @category Date
  15803. * @returns {number} Returns the timestamp.
  15804. * @example
  15805. *
  15806. * _.defer(function(stamp) {
  15807. * console.log(_.now() - stamp);
  15808. * }, _.now());
  15809. * // => Logs the number of milliseconds it took for the deferred invocation.
  15810. */
  15811. var now = function() {
  15812. return root.Date.now();
  15813. };
  15814. module.exports = now;
  15815. /***/ }),
  15816. /***/ "../../node_modules/lodash/pick.js":
  15817. /*!*************************************************************!*\
  15818. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/pick.js ***!
  15819. \*************************************************************/
  15820. /*! no static exports found */
  15821. /***/ (function(module, exports, __webpack_require__) {
  15822. var basePick = __webpack_require__(/*! ./_basePick */ "../../node_modules/lodash/_basePick.js"),
  15823. flatRest = __webpack_require__(/*! ./_flatRest */ "../../node_modules/lodash/_flatRest.js");
  15824. /**
  15825. * Creates an object composed of the picked `object` properties.
  15826. *
  15827. * @static
  15828. * @since 0.1.0
  15829. * @memberOf _
  15830. * @category Object
  15831. * @param {Object} object The source object.
  15832. * @param {...(string|string[])} [paths] The property paths to pick.
  15833. * @returns {Object} Returns the new object.
  15834. * @example
  15835. *
  15836. * var object = { 'a': 1, 'b': '2', 'c': 3 };
  15837. *
  15838. * _.pick(object, ['a', 'c']);
  15839. * // => { 'a': 1, 'c': 3 }
  15840. */
  15841. var pick = flatRest(function(object, paths) {
  15842. return object == null ? {} : basePick(object, paths);
  15843. });
  15844. module.exports = pick;
  15845. /***/ }),
  15846. /***/ "../../node_modules/lodash/property.js":
  15847. /*!*****************************************************************!*\
  15848. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/property.js ***!
  15849. \*****************************************************************/
  15850. /*! no static exports found */
  15851. /***/ (function(module, exports, __webpack_require__) {
  15852. var baseProperty = __webpack_require__(/*! ./_baseProperty */ "../../node_modules/lodash/_baseProperty.js"),
  15853. basePropertyDeep = __webpack_require__(/*! ./_basePropertyDeep */ "../../node_modules/lodash/_basePropertyDeep.js"),
  15854. isKey = __webpack_require__(/*! ./_isKey */ "../../node_modules/lodash/_isKey.js"),
  15855. toKey = __webpack_require__(/*! ./_toKey */ "../../node_modules/lodash/_toKey.js");
  15856. /**
  15857. * Creates a function that returns the value at `path` of a given object.
  15858. *
  15859. * @static
  15860. * @memberOf _
  15861. * @since 2.4.0
  15862. * @category Util
  15863. * @param {Array|string} path The path of the property to get.
  15864. * @returns {Function} Returns the new accessor function.
  15865. * @example
  15866. *
  15867. * var objects = [
  15868. * { 'a': { 'b': 2 } },
  15869. * { 'a': { 'b': 1 } }
  15870. * ];
  15871. *
  15872. * _.map(objects, _.property('a.b'));
  15873. * // => [2, 1]
  15874. *
  15875. * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
  15876. * // => [1, 2]
  15877. */
  15878. function property(path) {
  15879. return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
  15880. }
  15881. module.exports = property;
  15882. /***/ }),
  15883. /***/ "../../node_modules/lodash/range.js":
  15884. /*!**************************************************************!*\
  15885. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/range.js ***!
  15886. \**************************************************************/
  15887. /*! no static exports found */
  15888. /***/ (function(module, exports, __webpack_require__) {
  15889. var createRange = __webpack_require__(/*! ./_createRange */ "../../node_modules/lodash/_createRange.js");
  15890. /**
  15891. * Creates an array of numbers (positive and/or negative) progressing from
  15892. * `start` up to, but not including, `end`. A step of `-1` is used if a negative
  15893. * `start` is specified without an `end` or `step`. If `end` is not specified,
  15894. * it's set to `start` with `start` then set to `0`.
  15895. *
  15896. * **Note:** JavaScript follows the IEEE-754 standard for resolving
  15897. * floating-point values which can produce unexpected results.
  15898. *
  15899. * @static
  15900. * @since 0.1.0
  15901. * @memberOf _
  15902. * @category Util
  15903. * @param {number} [start=0] The start of the range.
  15904. * @param {number} end The end of the range.
  15905. * @param {number} [step=1] The value to increment or decrement by.
  15906. * @returns {Array} Returns the range of numbers.
  15907. * @see _.inRange, _.rangeRight
  15908. * @example
  15909. *
  15910. * _.range(4);
  15911. * // => [0, 1, 2, 3]
  15912. *
  15913. * _.range(-4);
  15914. * // => [0, -1, -2, -3]
  15915. *
  15916. * _.range(1, 5);
  15917. * // => [1, 2, 3, 4]
  15918. *
  15919. * _.range(0, 20, 5);
  15920. * // => [0, 5, 10, 15]
  15921. *
  15922. * _.range(0, -4, -1);
  15923. * // => [0, -1, -2, -3]
  15924. *
  15925. * _.range(1, 4, 0);
  15926. * // => [1, 1, 1]
  15927. *
  15928. * _.range(0);
  15929. * // => []
  15930. */
  15931. var range = createRange();
  15932. module.exports = range;
  15933. /***/ }),
  15934. /***/ "../../node_modules/lodash/reduce.js":
  15935. /*!***************************************************************!*\
  15936. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/reduce.js ***!
  15937. \***************************************************************/
  15938. /*! no static exports found */
  15939. /***/ (function(module, exports, __webpack_require__) {
  15940. var arrayReduce = __webpack_require__(/*! ./_arrayReduce */ "../../node_modules/lodash/_arrayReduce.js"),
  15941. baseEach = __webpack_require__(/*! ./_baseEach */ "../../node_modules/lodash/_baseEach.js"),
  15942. baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../node_modules/lodash/_baseIteratee.js"),
  15943. baseReduce = __webpack_require__(/*! ./_baseReduce */ "../../node_modules/lodash/_baseReduce.js"),
  15944. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js");
  15945. /**
  15946. * Reduces `collection` to a value which is the accumulated result of running
  15947. * each element in `collection` thru `iteratee`, where each successive
  15948. * invocation is supplied the return value of the previous. If `accumulator`
  15949. * is not given, the first element of `collection` is used as the initial
  15950. * value. The iteratee is invoked with four arguments:
  15951. * (accumulator, value, index|key, collection).
  15952. *
  15953. * Many lodash methods are guarded to work as iteratees for methods like
  15954. * `_.reduce`, `_.reduceRight`, and `_.transform`.
  15955. *
  15956. * The guarded methods are:
  15957. * `assign`, `defaults`, `defaultsDeep`, `includes`, `merge`, `orderBy`,
  15958. * and `sortBy`
  15959. *
  15960. * @static
  15961. * @memberOf _
  15962. * @since 0.1.0
  15963. * @category Collection
  15964. * @param {Array|Object} collection The collection to iterate over.
  15965. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  15966. * @param {*} [accumulator] The initial value.
  15967. * @returns {*} Returns the accumulated value.
  15968. * @see _.reduceRight
  15969. * @example
  15970. *
  15971. * _.reduce([1, 2], function(sum, n) {
  15972. * return sum + n;
  15973. * }, 0);
  15974. * // => 3
  15975. *
  15976. * _.reduce({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {
  15977. * (result[value] || (result[value] = [])).push(key);
  15978. * return result;
  15979. * }, {});
  15980. * // => { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed)
  15981. */
  15982. function reduce(collection, iteratee, accumulator) {
  15983. var func = isArray(collection) ? arrayReduce : baseReduce,
  15984. initAccum = arguments.length < 3;
  15985. return func(collection, baseIteratee(iteratee, 4), accumulator, initAccum, baseEach);
  15986. }
  15987. module.exports = reduce;
  15988. /***/ }),
  15989. /***/ "../../node_modules/lodash/size.js":
  15990. /*!*************************************************************!*\
  15991. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/size.js ***!
  15992. \*************************************************************/
  15993. /*! no static exports found */
  15994. /***/ (function(module, exports, __webpack_require__) {
  15995. var baseKeys = __webpack_require__(/*! ./_baseKeys */ "../../node_modules/lodash/_baseKeys.js"),
  15996. getTag = __webpack_require__(/*! ./_getTag */ "../../node_modules/lodash/_getTag.js"),
  15997. isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../node_modules/lodash/isArrayLike.js"),
  15998. isString = __webpack_require__(/*! ./isString */ "../../node_modules/lodash/isString.js"),
  15999. stringSize = __webpack_require__(/*! ./_stringSize */ "../../node_modules/lodash/_stringSize.js");
  16000. /** `Object#toString` result references. */
  16001. var mapTag = '[object Map]',
  16002. setTag = '[object Set]';
  16003. /**
  16004. * Gets the size of `collection` by returning its length for array-like
  16005. * values or the number of own enumerable string keyed properties for objects.
  16006. *
  16007. * @static
  16008. * @memberOf _
  16009. * @since 0.1.0
  16010. * @category Collection
  16011. * @param {Array|Object|string} collection The collection to inspect.
  16012. * @returns {number} Returns the collection size.
  16013. * @example
  16014. *
  16015. * _.size([1, 2, 3]);
  16016. * // => 3
  16017. *
  16018. * _.size({ 'a': 1, 'b': 2 });
  16019. * // => 2
  16020. *
  16021. * _.size('pebbles');
  16022. * // => 7
  16023. */
  16024. function size(collection) {
  16025. if (collection == null) {
  16026. return 0;
  16027. }
  16028. if (isArrayLike(collection)) {
  16029. return isString(collection) ? stringSize(collection) : collection.length;
  16030. }
  16031. var tag = getTag(collection);
  16032. if (tag == mapTag || tag == setTag) {
  16033. return collection.size;
  16034. }
  16035. return baseKeys(collection).length;
  16036. }
  16037. module.exports = size;
  16038. /***/ }),
  16039. /***/ "../../node_modules/lodash/sortBy.js":
  16040. /*!***************************************************************!*\
  16041. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/sortBy.js ***!
  16042. \***************************************************************/
  16043. /*! no static exports found */
  16044. /***/ (function(module, exports, __webpack_require__) {
  16045. var baseFlatten = __webpack_require__(/*! ./_baseFlatten */ "../../node_modules/lodash/_baseFlatten.js"),
  16046. baseOrderBy = __webpack_require__(/*! ./_baseOrderBy */ "../../node_modules/lodash/_baseOrderBy.js"),
  16047. baseRest = __webpack_require__(/*! ./_baseRest */ "../../node_modules/lodash/_baseRest.js"),
  16048. isIterateeCall = __webpack_require__(/*! ./_isIterateeCall */ "../../node_modules/lodash/_isIterateeCall.js");
  16049. /**
  16050. * Creates an array of elements, sorted in ascending order by the results of
  16051. * running each element in a collection thru each iteratee. This method
  16052. * performs a stable sort, that is, it preserves the original sort order of
  16053. * equal elements. The iteratees are invoked with one argument: (value).
  16054. *
  16055. * @static
  16056. * @memberOf _
  16057. * @since 0.1.0
  16058. * @category Collection
  16059. * @param {Array|Object} collection The collection to iterate over.
  16060. * @param {...(Function|Function[])} [iteratees=[_.identity]]
  16061. * The iteratees to sort by.
  16062. * @returns {Array} Returns the new sorted array.
  16063. * @example
  16064. *
  16065. * var users = [
  16066. * { 'user': 'fred', 'age': 48 },
  16067. * { 'user': 'barney', 'age': 36 },
  16068. * { 'user': 'fred', 'age': 40 },
  16069. * { 'user': 'barney', 'age': 34 }
  16070. * ];
  16071. *
  16072. * _.sortBy(users, [function(o) { return o.user; }]);
  16073. * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]
  16074. *
  16075. * _.sortBy(users, ['user', 'age']);
  16076. * // => objects for [['barney', 34], ['barney', 36], ['fred', 40], ['fred', 48]]
  16077. */
  16078. var sortBy = baseRest(function(collection, iteratees) {
  16079. if (collection == null) {
  16080. return [];
  16081. }
  16082. var length = iteratees.length;
  16083. if (length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) {
  16084. iteratees = [];
  16085. } else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) {
  16086. iteratees = [iteratees[0]];
  16087. }
  16088. return baseOrderBy(collection, baseFlatten(iteratees, 1), []);
  16089. });
  16090. module.exports = sortBy;
  16091. /***/ }),
  16092. /***/ "../../node_modules/lodash/stubArray.js":
  16093. /*!******************************************************************!*\
  16094. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/stubArray.js ***!
  16095. \******************************************************************/
  16096. /*! no static exports found */
  16097. /***/ (function(module, exports) {
  16098. /**
  16099. * This method returns a new empty array.
  16100. *
  16101. * @static
  16102. * @memberOf _
  16103. * @since 4.13.0
  16104. * @category Util
  16105. * @returns {Array} Returns the new empty array.
  16106. * @example
  16107. *
  16108. * var arrays = _.times(2, _.stubArray);
  16109. *
  16110. * console.log(arrays);
  16111. * // => [[], []]
  16112. *
  16113. * console.log(arrays[0] === arrays[1]);
  16114. * // => false
  16115. */
  16116. function stubArray() {
  16117. return [];
  16118. }
  16119. module.exports = stubArray;
  16120. /***/ }),
  16121. /***/ "../../node_modules/lodash/stubFalse.js":
  16122. /*!******************************************************************!*\
  16123. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/stubFalse.js ***!
  16124. \******************************************************************/
  16125. /*! no static exports found */
  16126. /***/ (function(module, exports) {
  16127. /**
  16128. * This method returns `false`.
  16129. *
  16130. * @static
  16131. * @memberOf _
  16132. * @since 4.13.0
  16133. * @category Util
  16134. * @returns {boolean} Returns `false`.
  16135. * @example
  16136. *
  16137. * _.times(2, _.stubFalse);
  16138. * // => [false, false]
  16139. */
  16140. function stubFalse() {
  16141. return false;
  16142. }
  16143. module.exports = stubFalse;
  16144. /***/ }),
  16145. /***/ "../../node_modules/lodash/toFinite.js":
  16146. /*!*****************************************************************!*\
  16147. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/toFinite.js ***!
  16148. \*****************************************************************/
  16149. /*! no static exports found */
  16150. /***/ (function(module, exports, __webpack_require__) {
  16151. var toNumber = __webpack_require__(/*! ./toNumber */ "../../node_modules/lodash/toNumber.js");
  16152. /** Used as references for various `Number` constants. */
  16153. var INFINITY = 1 / 0,
  16154. MAX_INTEGER = 1.7976931348623157e+308;
  16155. /**
  16156. * Converts `value` to a finite number.
  16157. *
  16158. * @static
  16159. * @memberOf _
  16160. * @since 4.12.0
  16161. * @category Lang
  16162. * @param {*} value The value to convert.
  16163. * @returns {number} Returns the converted number.
  16164. * @example
  16165. *
  16166. * _.toFinite(3.2);
  16167. * // => 3.2
  16168. *
  16169. * _.toFinite(Number.MIN_VALUE);
  16170. * // => 5e-324
  16171. *
  16172. * _.toFinite(Infinity);
  16173. * // => 1.7976931348623157e+308
  16174. *
  16175. * _.toFinite('3.2');
  16176. * // => 3.2
  16177. */
  16178. function toFinite(value) {
  16179. if (!value) {
  16180. return value === 0 ? value : 0;
  16181. }
  16182. value = toNumber(value);
  16183. if (value === INFINITY || value === -INFINITY) {
  16184. var sign = (value < 0 ? -1 : 1);
  16185. return sign * MAX_INTEGER;
  16186. }
  16187. return value === value ? value : 0;
  16188. }
  16189. module.exports = toFinite;
  16190. /***/ }),
  16191. /***/ "../../node_modules/lodash/toInteger.js":
  16192. /*!******************************************************************!*\
  16193. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/toInteger.js ***!
  16194. \******************************************************************/
  16195. /*! no static exports found */
  16196. /***/ (function(module, exports, __webpack_require__) {
  16197. var toFinite = __webpack_require__(/*! ./toFinite */ "../../node_modules/lodash/toFinite.js");
  16198. /**
  16199. * Converts `value` to an integer.
  16200. *
  16201. * **Note:** This method is loosely based on
  16202. * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).
  16203. *
  16204. * @static
  16205. * @memberOf _
  16206. * @since 4.0.0
  16207. * @category Lang
  16208. * @param {*} value The value to convert.
  16209. * @returns {number} Returns the converted integer.
  16210. * @example
  16211. *
  16212. * _.toInteger(3.2);
  16213. * // => 3
  16214. *
  16215. * _.toInteger(Number.MIN_VALUE);
  16216. * // => 0
  16217. *
  16218. * _.toInteger(Infinity);
  16219. * // => 1.7976931348623157e+308
  16220. *
  16221. * _.toInteger('3.2');
  16222. * // => 3
  16223. */
  16224. function toInteger(value) {
  16225. var result = toFinite(value),
  16226. remainder = result % 1;
  16227. return result === result ? (remainder ? result - remainder : result) : 0;
  16228. }
  16229. module.exports = toInteger;
  16230. /***/ }),
  16231. /***/ "../../node_modules/lodash/toNumber.js":
  16232. /*!*****************************************************************!*\
  16233. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/toNumber.js ***!
  16234. \*****************************************************************/
  16235. /*! no static exports found */
  16236. /***/ (function(module, exports, __webpack_require__) {
  16237. var isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js"),
  16238. isSymbol = __webpack_require__(/*! ./isSymbol */ "../../node_modules/lodash/isSymbol.js");
  16239. /** Used as references for various `Number` constants. */
  16240. var NAN = 0 / 0;
  16241. /** Used to match leading and trailing whitespace. */
  16242. var reTrim = /^\s+|\s+$/g;
  16243. /** Used to detect bad signed hexadecimal string values. */
  16244. var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
  16245. /** Used to detect binary string values. */
  16246. var reIsBinary = /^0b[01]+$/i;
  16247. /** Used to detect octal string values. */
  16248. var reIsOctal = /^0o[0-7]+$/i;
  16249. /** Built-in method references without a dependency on `root`. */
  16250. var freeParseInt = parseInt;
  16251. /**
  16252. * Converts `value` to a number.
  16253. *
  16254. * @static
  16255. * @memberOf _
  16256. * @since 4.0.0
  16257. * @category Lang
  16258. * @param {*} value The value to process.
  16259. * @returns {number} Returns the number.
  16260. * @example
  16261. *
  16262. * _.toNumber(3.2);
  16263. * // => 3.2
  16264. *
  16265. * _.toNumber(Number.MIN_VALUE);
  16266. * // => 5e-324
  16267. *
  16268. * _.toNumber(Infinity);
  16269. * // => Infinity
  16270. *
  16271. * _.toNumber('3.2');
  16272. * // => 3.2
  16273. */
  16274. function toNumber(value) {
  16275. if (typeof value == 'number') {
  16276. return value;
  16277. }
  16278. if (isSymbol(value)) {
  16279. return NAN;
  16280. }
  16281. if (isObject(value)) {
  16282. var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
  16283. value = isObject(other) ? (other + '') : other;
  16284. }
  16285. if (typeof value != 'string') {
  16286. return value === 0 ? value : +value;
  16287. }
  16288. value = value.replace(reTrim, '');
  16289. var isBinary = reIsBinary.test(value);
  16290. return (isBinary || reIsOctal.test(value))
  16291. ? freeParseInt(value.slice(2), isBinary ? 2 : 8)
  16292. : (reIsBadHex.test(value) ? NAN : +value);
  16293. }
  16294. module.exports = toNumber;
  16295. /***/ }),
  16296. /***/ "../../node_modules/lodash/toPlainObject.js":
  16297. /*!**********************************************************************!*\
  16298. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/toPlainObject.js ***!
  16299. \**********************************************************************/
  16300. /*! no static exports found */
  16301. /***/ (function(module, exports, __webpack_require__) {
  16302. var copyObject = __webpack_require__(/*! ./_copyObject */ "../../node_modules/lodash/_copyObject.js"),
  16303. keysIn = __webpack_require__(/*! ./keysIn */ "../../node_modules/lodash/keysIn.js");
  16304. /**
  16305. * Converts `value` to a plain object flattening inherited enumerable string
  16306. * keyed properties of `value` to own properties of the plain object.
  16307. *
  16308. * @static
  16309. * @memberOf _
  16310. * @since 3.0.0
  16311. * @category Lang
  16312. * @param {*} value The value to convert.
  16313. * @returns {Object} Returns the converted plain object.
  16314. * @example
  16315. *
  16316. * function Foo() {
  16317. * this.b = 2;
  16318. * }
  16319. *
  16320. * Foo.prototype.c = 3;
  16321. *
  16322. * _.assign({ 'a': 1 }, new Foo);
  16323. * // => { 'a': 1, 'b': 2 }
  16324. *
  16325. * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));
  16326. * // => { 'a': 1, 'b': 2, 'c': 3 }
  16327. */
  16328. function toPlainObject(value) {
  16329. return copyObject(value, keysIn(value));
  16330. }
  16331. module.exports = toPlainObject;
  16332. /***/ }),
  16333. /***/ "../../node_modules/lodash/toString.js":
  16334. /*!*****************************************************************!*\
  16335. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/toString.js ***!
  16336. \*****************************************************************/
  16337. /*! no static exports found */
  16338. /***/ (function(module, exports, __webpack_require__) {
  16339. var baseToString = __webpack_require__(/*! ./_baseToString */ "../../node_modules/lodash/_baseToString.js");
  16340. /**
  16341. * Converts `value` to a string. An empty string is returned for `null`
  16342. * and `undefined` values. The sign of `-0` is preserved.
  16343. *
  16344. * @static
  16345. * @memberOf _
  16346. * @since 4.0.0
  16347. * @category Lang
  16348. * @param {*} value The value to convert.
  16349. * @returns {string} Returns the converted string.
  16350. * @example
  16351. *
  16352. * _.toString(null);
  16353. * // => ''
  16354. *
  16355. * _.toString(-0);
  16356. * // => '-0'
  16357. *
  16358. * _.toString([1, 2, 3]);
  16359. * // => '1,2,3'
  16360. */
  16361. function toString(value) {
  16362. return value == null ? '' : baseToString(value);
  16363. }
  16364. module.exports = toString;
  16365. /***/ }),
  16366. /***/ "../../node_modules/lodash/transform.js":
  16367. /*!******************************************************************!*\
  16368. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/transform.js ***!
  16369. \******************************************************************/
  16370. /*! no static exports found */
  16371. /***/ (function(module, exports, __webpack_require__) {
  16372. var arrayEach = __webpack_require__(/*! ./_arrayEach */ "../../node_modules/lodash/_arrayEach.js"),
  16373. baseCreate = __webpack_require__(/*! ./_baseCreate */ "../../node_modules/lodash/_baseCreate.js"),
  16374. baseForOwn = __webpack_require__(/*! ./_baseForOwn */ "../../node_modules/lodash/_baseForOwn.js"),
  16375. baseIteratee = __webpack_require__(/*! ./_baseIteratee */ "../../node_modules/lodash/_baseIteratee.js"),
  16376. getPrototype = __webpack_require__(/*! ./_getPrototype */ "../../node_modules/lodash/_getPrototype.js"),
  16377. isArray = __webpack_require__(/*! ./isArray */ "../../node_modules/lodash/isArray.js"),
  16378. isBuffer = __webpack_require__(/*! ./isBuffer */ "../../node_modules/lodash/isBuffer.js"),
  16379. isFunction = __webpack_require__(/*! ./isFunction */ "../../node_modules/lodash/isFunction.js"),
  16380. isObject = __webpack_require__(/*! ./isObject */ "../../node_modules/lodash/isObject.js"),
  16381. isTypedArray = __webpack_require__(/*! ./isTypedArray */ "../../node_modules/lodash/isTypedArray.js");
  16382. /**
  16383. * An alternative to `_.reduce`; this method transforms `object` to a new
  16384. * `accumulator` object which is the result of running each of its own
  16385. * enumerable string keyed properties thru `iteratee`, with each invocation
  16386. * potentially mutating the `accumulator` object. If `accumulator` is not
  16387. * provided, a new object with the same `[[Prototype]]` will be used. The
  16388. * iteratee is invoked with four arguments: (accumulator, value, key, object).
  16389. * Iteratee functions may exit iteration early by explicitly returning `false`.
  16390. *
  16391. * @static
  16392. * @memberOf _
  16393. * @since 1.3.0
  16394. * @category Object
  16395. * @param {Object} object The object to iterate over.
  16396. * @param {Function} [iteratee=_.identity] The function invoked per iteration.
  16397. * @param {*} [accumulator] The custom accumulator value.
  16398. * @returns {*} Returns the accumulated value.
  16399. * @example
  16400. *
  16401. * _.transform([2, 3, 4], function(result, n) {
  16402. * result.push(n *= n);
  16403. * return n % 2 == 0;
  16404. * }, []);
  16405. * // => [4, 9]
  16406. *
  16407. * _.transform({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {
  16408. * (result[value] || (result[value] = [])).push(key);
  16409. * }, {});
  16410. * // => { '1': ['a', 'c'], '2': ['b'] }
  16411. */
  16412. function transform(object, iteratee, accumulator) {
  16413. var isArr = isArray(object),
  16414. isArrLike = isArr || isBuffer(object) || isTypedArray(object);
  16415. iteratee = baseIteratee(iteratee, 4);
  16416. if (accumulator == null) {
  16417. var Ctor = object && object.constructor;
  16418. if (isArrLike) {
  16419. accumulator = isArr ? new Ctor : [];
  16420. }
  16421. else if (isObject(object)) {
  16422. accumulator = isFunction(Ctor) ? baseCreate(getPrototype(object)) : {};
  16423. }
  16424. else {
  16425. accumulator = {};
  16426. }
  16427. }
  16428. (isArrLike ? arrayEach : baseForOwn)(object, function(value, index, object) {
  16429. return iteratee(accumulator, value, index, object);
  16430. });
  16431. return accumulator;
  16432. }
  16433. module.exports = transform;
  16434. /***/ }),
  16435. /***/ "../../node_modules/lodash/union.js":
  16436. /*!**************************************************************!*\
  16437. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/union.js ***!
  16438. \**************************************************************/
  16439. /*! no static exports found */
  16440. /***/ (function(module, exports, __webpack_require__) {
  16441. var baseFlatten = __webpack_require__(/*! ./_baseFlatten */ "../../node_modules/lodash/_baseFlatten.js"),
  16442. baseRest = __webpack_require__(/*! ./_baseRest */ "../../node_modules/lodash/_baseRest.js"),
  16443. baseUniq = __webpack_require__(/*! ./_baseUniq */ "../../node_modules/lodash/_baseUniq.js"),
  16444. isArrayLikeObject = __webpack_require__(/*! ./isArrayLikeObject */ "../../node_modules/lodash/isArrayLikeObject.js");
  16445. /**
  16446. * Creates an array of unique values, in order, from all given arrays using
  16447. * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
  16448. * for equality comparisons.
  16449. *
  16450. * @static
  16451. * @memberOf _
  16452. * @since 0.1.0
  16453. * @category Array
  16454. * @param {...Array} [arrays] The arrays to inspect.
  16455. * @returns {Array} Returns the new array of combined values.
  16456. * @example
  16457. *
  16458. * _.union([2], [1, 2]);
  16459. * // => [2, 1]
  16460. */
  16461. var union = baseRest(function(arrays) {
  16462. return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true));
  16463. });
  16464. module.exports = union;
  16465. /***/ }),
  16466. /***/ "../../node_modules/lodash/uniqueId.js":
  16467. /*!*****************************************************************!*\
  16468. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/uniqueId.js ***!
  16469. \*****************************************************************/
  16470. /*! no static exports found */
  16471. /***/ (function(module, exports, __webpack_require__) {
  16472. var toString = __webpack_require__(/*! ./toString */ "../../node_modules/lodash/toString.js");
  16473. /** Used to generate unique IDs. */
  16474. var idCounter = 0;
  16475. /**
  16476. * Generates a unique ID. If `prefix` is given, the ID is appended to it.
  16477. *
  16478. * @static
  16479. * @since 0.1.0
  16480. * @memberOf _
  16481. * @category Util
  16482. * @param {string} [prefix=''] The value to prefix the ID with.
  16483. * @returns {string} Returns the unique ID.
  16484. * @example
  16485. *
  16486. * _.uniqueId('contact_');
  16487. * // => 'contact_104'
  16488. *
  16489. * _.uniqueId();
  16490. * // => '105'
  16491. */
  16492. function uniqueId(prefix) {
  16493. var id = ++idCounter;
  16494. return toString(prefix) + id;
  16495. }
  16496. module.exports = uniqueId;
  16497. /***/ }),
  16498. /***/ "../../node_modules/lodash/values.js":
  16499. /*!***************************************************************!*\
  16500. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/values.js ***!
  16501. \***************************************************************/
  16502. /*! no static exports found */
  16503. /***/ (function(module, exports, __webpack_require__) {
  16504. var baseValues = __webpack_require__(/*! ./_baseValues */ "../../node_modules/lodash/_baseValues.js"),
  16505. keys = __webpack_require__(/*! ./keys */ "../../node_modules/lodash/keys.js");
  16506. /**
  16507. * Creates an array of the own enumerable string keyed property values of `object`.
  16508. *
  16509. * **Note:** Non-object values are coerced to objects.
  16510. *
  16511. * @static
  16512. * @since 0.1.0
  16513. * @memberOf _
  16514. * @category Object
  16515. * @param {Object} object The object to query.
  16516. * @returns {Array} Returns the array of property values.
  16517. * @example
  16518. *
  16519. * function Foo() {
  16520. * this.a = 1;
  16521. * this.b = 2;
  16522. * }
  16523. *
  16524. * Foo.prototype.c = 3;
  16525. *
  16526. * _.values(new Foo);
  16527. * // => [1, 2] (iteration order is not guaranteed)
  16528. *
  16529. * _.values('hi');
  16530. * // => ['h', 'i']
  16531. */
  16532. function values(object) {
  16533. return object == null ? [] : baseValues(object, keys(object));
  16534. }
  16535. module.exports = values;
  16536. /***/ }),
  16537. /***/ "../../node_modules/lodash/zipObject.js":
  16538. /*!******************************************************************!*\
  16539. !*** C:/Dev/Babylon/Babylon.js/node_modules/lodash/zipObject.js ***!
  16540. \******************************************************************/
  16541. /*! no static exports found */
  16542. /***/ (function(module, exports, __webpack_require__) {
  16543. var assignValue = __webpack_require__(/*! ./_assignValue */ "../../node_modules/lodash/_assignValue.js"),
  16544. baseZipObject = __webpack_require__(/*! ./_baseZipObject */ "../../node_modules/lodash/_baseZipObject.js");
  16545. /**
  16546. * This method is like `_.fromPairs` except that it accepts two arrays,
  16547. * one of property identifiers and one of corresponding values.
  16548. *
  16549. * @static
  16550. * @memberOf _
  16551. * @since 0.4.0
  16552. * @category Array
  16553. * @param {Array} [props=[]] The property identifiers.
  16554. * @param {Array} [values=[]] The property values.
  16555. * @returns {Object} Returns the new object.
  16556. * @example
  16557. *
  16558. * _.zipObject(['a', 'b'], [1, 2]);
  16559. * // => { 'a': 1, 'b': 2 }
  16560. */
  16561. function zipObject(props, values) {
  16562. return baseZipObject(props || [], values || [], assignValue);
  16563. }
  16564. module.exports = zipObject;
  16565. /***/ }),
  16566. /***/ "../../node_modules/object-assign/index.js":
  16567. /*!*********************************************************************!*\
  16568. !*** C:/Dev/Babylon/Babylon.js/node_modules/object-assign/index.js ***!
  16569. \*********************************************************************/
  16570. /*! no static exports found */
  16571. /***/ (function(module, exports, __webpack_require__) {
  16572. "use strict";
  16573. /*
  16574. object-assign
  16575. (c) Sindre Sorhus
  16576. @license MIT
  16577. */
  16578. /* eslint-disable no-unused-vars */
  16579. var getOwnPropertySymbols = Object.getOwnPropertySymbols;
  16580. var hasOwnProperty = Object.prototype.hasOwnProperty;
  16581. var propIsEnumerable = Object.prototype.propertyIsEnumerable;
  16582. function toObject(val) {
  16583. if (val === null || val === undefined) {
  16584. throw new TypeError('Object.assign cannot be called with null or undefined');
  16585. }
  16586. return Object(val);
  16587. }
  16588. function shouldUseNative() {
  16589. try {
  16590. if (!Object.assign) {
  16591. return false;
  16592. }
  16593. // Detect buggy property enumeration order in older V8 versions.
  16594. // https://bugs.chromium.org/p/v8/issues/detail?id=4118
  16595. var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
  16596. test1[5] = 'de';
  16597. if (Object.getOwnPropertyNames(test1)[0] === '5') {
  16598. return false;
  16599. }
  16600. // https://bugs.chromium.org/p/v8/issues/detail?id=3056
  16601. var test2 = {};
  16602. for (var i = 0; i < 10; i++) {
  16603. test2['_' + String.fromCharCode(i)] = i;
  16604. }
  16605. var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
  16606. return test2[n];
  16607. });
  16608. if (order2.join('') !== '0123456789') {
  16609. return false;
  16610. }
  16611. // https://bugs.chromium.org/p/v8/issues/detail?id=3056
  16612. var test3 = {};
  16613. 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
  16614. test3[letter] = letter;
  16615. });
  16616. if (Object.keys(Object.assign({}, test3)).join('') !==
  16617. 'abcdefghijklmnopqrst') {
  16618. return false;
  16619. }
  16620. return true;
  16621. } catch (err) {
  16622. // We don't expect any of the above to throw, but better to be safe.
  16623. return false;
  16624. }
  16625. }
  16626. module.exports = shouldUseNative() ? Object.assign : function (target, source) {
  16627. var from;
  16628. var to = toObject(target);
  16629. var symbols;
  16630. for (var s = 1; s < arguments.length; s++) {
  16631. from = Object(arguments[s]);
  16632. for (var key in from) {
  16633. if (hasOwnProperty.call(from, key)) {
  16634. to[key] = from[key];
  16635. }
  16636. }
  16637. if (getOwnPropertySymbols) {
  16638. symbols = getOwnPropertySymbols(from);
  16639. for (var i = 0; i < symbols.length; i++) {
  16640. if (propIsEnumerable.call(from, symbols[i])) {
  16641. to[symbols[i]] = from[symbols[i]];
  16642. }
  16643. }
  16644. }
  16645. }
  16646. return to;
  16647. };
  16648. /***/ }),
  16649. /***/ "../../node_modules/prop-types/checkPropTypes.js":
  16650. /*!***************************************************************************!*\
  16651. !*** C:/Dev/Babylon/Babylon.js/node_modules/prop-types/checkPropTypes.js ***!
  16652. \***************************************************************************/
  16653. /*! no static exports found */
  16654. /***/ (function(module, exports, __webpack_require__) {
  16655. "use strict";
  16656. /**
  16657. * Copyright (c) 2013-present, Facebook, Inc.
  16658. *
  16659. * This source code is licensed under the MIT license found in the
  16660. * LICENSE file in the root directory of this source tree.
  16661. */
  16662. var printWarning = function() {};
  16663. if (true) {
  16664. var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../../node_modules/prop-types/lib/ReactPropTypesSecret.js");
  16665. var loggedTypeFailures = {};
  16666. printWarning = function(text) {
  16667. var message = 'Warning: ' + text;
  16668. if (typeof console !== 'undefined') {
  16669. console.error(message);
  16670. }
  16671. try {
  16672. // --- Welcome to debugging React ---
  16673. // This error was thrown as a convenience so that you can use this stack
  16674. // to find the callsite that caused this warning to fire.
  16675. throw new Error(message);
  16676. } catch (x) {}
  16677. };
  16678. }
  16679. /**
  16680. * Assert that the values match with the type specs.
  16681. * Error messages are memorized and will only be shown once.
  16682. *
  16683. * @param {object} typeSpecs Map of name to a ReactPropType
  16684. * @param {object} values Runtime values that need to be type-checked
  16685. * @param {string} location e.g. "prop", "context", "child context"
  16686. * @param {string} componentName Name of the component for error messages.
  16687. * @param {?Function} getStack Returns the component stack.
  16688. * @private
  16689. */
  16690. function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
  16691. if (true) {
  16692. for (var typeSpecName in typeSpecs) {
  16693. if (typeSpecs.hasOwnProperty(typeSpecName)) {
  16694. var error;
  16695. // Prop type validation may throw. In case they do, we don't want to
  16696. // fail the render phase where it didn't fail before. So we log it.
  16697. // After these have been cleaned up, we'll let them throw.
  16698. try {
  16699. // This is intentionally an invariant that gets caught. It's the same
  16700. // behavior as without this statement except with a better message.
  16701. if (typeof typeSpecs[typeSpecName] !== 'function') {
  16702. var err = Error(
  16703. (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
  16704. 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'
  16705. );
  16706. err.name = 'Invariant Violation';
  16707. throw err;
  16708. }
  16709. error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
  16710. } catch (ex) {
  16711. error = ex;
  16712. }
  16713. if (error && !(error instanceof Error)) {
  16714. printWarning(
  16715. (componentName || 'React class') + ': type specification of ' +
  16716. location + ' `' + typeSpecName + '` is invalid; the type checker ' +
  16717. 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
  16718. 'You may have forgotten to pass an argument to the type checker ' +
  16719. 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
  16720. 'shape all require an argument).'
  16721. )
  16722. }
  16723. if (error instanceof Error && !(error.message in loggedTypeFailures)) {
  16724. // Only monitor this failure once because there tends to be a lot of the
  16725. // same error.
  16726. loggedTypeFailures[error.message] = true;
  16727. var stack = getStack ? getStack() : '';
  16728. printWarning(
  16729. 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
  16730. );
  16731. }
  16732. }
  16733. }
  16734. }
  16735. }
  16736. module.exports = checkPropTypes;
  16737. /***/ }),
  16738. /***/ "../../node_modules/prop-types/factoryWithTypeCheckers.js":
  16739. /*!************************************************************************************!*\
  16740. !*** C:/Dev/Babylon/Babylon.js/node_modules/prop-types/factoryWithTypeCheckers.js ***!
  16741. \************************************************************************************/
  16742. /*! no static exports found */
  16743. /***/ (function(module, exports, __webpack_require__) {
  16744. "use strict";
  16745. /**
  16746. * Copyright (c) 2013-present, Facebook, Inc.
  16747. *
  16748. * This source code is licensed under the MIT license found in the
  16749. * LICENSE file in the root directory of this source tree.
  16750. */
  16751. var assign = __webpack_require__(/*! object-assign */ "../../node_modules/object-assign/index.js");
  16752. var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../../node_modules/prop-types/lib/ReactPropTypesSecret.js");
  16753. var checkPropTypes = __webpack_require__(/*! ./checkPropTypes */ "../../node_modules/prop-types/checkPropTypes.js");
  16754. var printWarning = function() {};
  16755. if (true) {
  16756. printWarning = function(text) {
  16757. var message = 'Warning: ' + text;
  16758. if (typeof console !== 'undefined') {
  16759. console.error(message);
  16760. }
  16761. try {
  16762. // --- Welcome to debugging React ---
  16763. // This error was thrown as a convenience so that you can use this stack
  16764. // to find the callsite that caused this warning to fire.
  16765. throw new Error(message);
  16766. } catch (x) {}
  16767. };
  16768. }
  16769. function emptyFunctionThatReturnsNull() {
  16770. return null;
  16771. }
  16772. module.exports = function(isValidElement, throwOnDirectAccess) {
  16773. /* global Symbol */
  16774. var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
  16775. var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
  16776. /**
  16777. * Returns the iterator method function contained on the iterable object.
  16778. *
  16779. * Be sure to invoke the function with the iterable as context:
  16780. *
  16781. * var iteratorFn = getIteratorFn(myIterable);
  16782. * if (iteratorFn) {
  16783. * var iterator = iteratorFn.call(myIterable);
  16784. * ...
  16785. * }
  16786. *
  16787. * @param {?object} maybeIterable
  16788. * @return {?function}
  16789. */
  16790. function getIteratorFn(maybeIterable) {
  16791. var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
  16792. if (typeof iteratorFn === 'function') {
  16793. return iteratorFn;
  16794. }
  16795. }
  16796. /**
  16797. * Collection of methods that allow declaration and validation of props that are
  16798. * supplied to React components. Example usage:
  16799. *
  16800. * var Props = require('ReactPropTypes');
  16801. * var MyArticle = React.createClass({
  16802. * propTypes: {
  16803. * // An optional string prop named "description".
  16804. * description: Props.string,
  16805. *
  16806. * // A required enum prop named "category".
  16807. * category: Props.oneOf(['News','Photos']).isRequired,
  16808. *
  16809. * // A prop named "dialog" that requires an instance of Dialog.
  16810. * dialog: Props.instanceOf(Dialog).isRequired
  16811. * },
  16812. * render: function() { ... }
  16813. * });
  16814. *
  16815. * A more formal specification of how these methods are used:
  16816. *
  16817. * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
  16818. * decl := ReactPropTypes.{type}(.isRequired)?
  16819. *
  16820. * Each and every declaration produces a function with the same signature. This
  16821. * allows the creation of custom validation functions. For example:
  16822. *
  16823. * var MyLink = React.createClass({
  16824. * propTypes: {
  16825. * // An optional string or URI prop named "href".
  16826. * href: function(props, propName, componentName) {
  16827. * var propValue = props[propName];
  16828. * if (propValue != null && typeof propValue !== 'string' &&
  16829. * !(propValue instanceof URI)) {
  16830. * return new Error(
  16831. * 'Expected a string or an URI for ' + propName + ' in ' +
  16832. * componentName
  16833. * );
  16834. * }
  16835. * }
  16836. * },
  16837. * render: function() {...}
  16838. * });
  16839. *
  16840. * @internal
  16841. */
  16842. var ANONYMOUS = '<<anonymous>>';
  16843. // Important!
  16844. // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
  16845. var ReactPropTypes = {
  16846. array: createPrimitiveTypeChecker('array'),
  16847. bool: createPrimitiveTypeChecker('boolean'),
  16848. func: createPrimitiveTypeChecker('function'),
  16849. number: createPrimitiveTypeChecker('number'),
  16850. object: createPrimitiveTypeChecker('object'),
  16851. string: createPrimitiveTypeChecker('string'),
  16852. symbol: createPrimitiveTypeChecker('symbol'),
  16853. any: createAnyTypeChecker(),
  16854. arrayOf: createArrayOfTypeChecker,
  16855. element: createElementTypeChecker(),
  16856. instanceOf: createInstanceTypeChecker,
  16857. node: createNodeChecker(),
  16858. objectOf: createObjectOfTypeChecker,
  16859. oneOf: createEnumTypeChecker,
  16860. oneOfType: createUnionTypeChecker,
  16861. shape: createShapeTypeChecker,
  16862. exact: createStrictShapeTypeChecker,
  16863. };
  16864. /**
  16865. * inlined Object.is polyfill to avoid requiring consumers ship their own
  16866. * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
  16867. */
  16868. /*eslint-disable no-self-compare*/
  16869. function is(x, y) {
  16870. // SameValue algorithm
  16871. if (x === y) {
  16872. // Steps 1-5, 7-10
  16873. // Steps 6.b-6.e: +0 != -0
  16874. return x !== 0 || 1 / x === 1 / y;
  16875. } else {
  16876. // Step 6.a: NaN == NaN
  16877. return x !== x && y !== y;
  16878. }
  16879. }
  16880. /*eslint-enable no-self-compare*/
  16881. /**
  16882. * We use an Error-like object for backward compatibility as people may call
  16883. * PropTypes directly and inspect their output. However, we don't use real
  16884. * Errors anymore. We don't inspect their stack anyway, and creating them
  16885. * is prohibitively expensive if they are created too often, such as what
  16886. * happens in oneOfType() for any type before the one that matched.
  16887. */
  16888. function PropTypeError(message) {
  16889. this.message = message;
  16890. this.stack = '';
  16891. }
  16892. // Make `instanceof Error` still work for returned errors.
  16893. PropTypeError.prototype = Error.prototype;
  16894. function createChainableTypeChecker(validate) {
  16895. if (true) {
  16896. var manualPropTypeCallCache = {};
  16897. var manualPropTypeWarningCount = 0;
  16898. }
  16899. function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
  16900. componentName = componentName || ANONYMOUS;
  16901. propFullName = propFullName || propName;
  16902. if (secret !== ReactPropTypesSecret) {
  16903. if (throwOnDirectAccess) {
  16904. // New behavior only for users of `prop-types` package
  16905. var err = new Error(
  16906. 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
  16907. 'Use `PropTypes.checkPropTypes()` to call them. ' +
  16908. 'Read more at http://fb.me/use-check-prop-types'
  16909. );
  16910. err.name = 'Invariant Violation';
  16911. throw err;
  16912. } else if ( true && typeof console !== 'undefined') {
  16913. // Old behavior for people using React.PropTypes
  16914. var cacheKey = componentName + ':' + propName;
  16915. if (
  16916. !manualPropTypeCallCache[cacheKey] &&
  16917. // Avoid spamming the console because they are often not actionable except for lib authors
  16918. manualPropTypeWarningCount < 3
  16919. ) {
  16920. printWarning(
  16921. 'You are manually calling a React.PropTypes validation ' +
  16922. 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
  16923. 'and will throw in the standalone `prop-types` package. ' +
  16924. 'You may be seeing this warning due to a third-party PropTypes ' +
  16925. 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
  16926. );
  16927. manualPropTypeCallCache[cacheKey] = true;
  16928. manualPropTypeWarningCount++;
  16929. }
  16930. }
  16931. }
  16932. if (props[propName] == null) {
  16933. if (isRequired) {
  16934. if (props[propName] === null) {
  16935. return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
  16936. }
  16937. return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
  16938. }
  16939. return null;
  16940. } else {
  16941. return validate(props, propName, componentName, location, propFullName);
  16942. }
  16943. }
  16944. var chainedCheckType = checkType.bind(null, false);
  16945. chainedCheckType.isRequired = checkType.bind(null, true);
  16946. return chainedCheckType;
  16947. }
  16948. function createPrimitiveTypeChecker(expectedType) {
  16949. function validate(props, propName, componentName, location, propFullName, secret) {
  16950. var propValue = props[propName];
  16951. var propType = getPropType(propValue);
  16952. if (propType !== expectedType) {
  16953. // `propValue` being instance of, say, date/regexp, pass the 'object'
  16954. // check, but we can offer a more precise error message here rather than
  16955. // 'of type `object`'.
  16956. var preciseType = getPreciseType(propValue);
  16957. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));
  16958. }
  16959. return null;
  16960. }
  16961. return createChainableTypeChecker(validate);
  16962. }
  16963. function createAnyTypeChecker() {
  16964. return createChainableTypeChecker(emptyFunctionThatReturnsNull);
  16965. }
  16966. function createArrayOfTypeChecker(typeChecker) {
  16967. function validate(props, propName, componentName, location, propFullName) {
  16968. if (typeof typeChecker !== 'function') {
  16969. return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
  16970. }
  16971. var propValue = props[propName];
  16972. if (!Array.isArray(propValue)) {
  16973. var propType = getPropType(propValue);
  16974. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
  16975. }
  16976. for (var i = 0; i < propValue.length; i++) {
  16977. var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
  16978. if (error instanceof Error) {
  16979. return error;
  16980. }
  16981. }
  16982. return null;
  16983. }
  16984. return createChainableTypeChecker(validate);
  16985. }
  16986. function createElementTypeChecker() {
  16987. function validate(props, propName, componentName, location, propFullName) {
  16988. var propValue = props[propName];
  16989. if (!isValidElement(propValue)) {
  16990. var propType = getPropType(propValue);
  16991. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
  16992. }
  16993. return null;
  16994. }
  16995. return createChainableTypeChecker(validate);
  16996. }
  16997. function createInstanceTypeChecker(expectedClass) {
  16998. function validate(props, propName, componentName, location, propFullName) {
  16999. if (!(props[propName] instanceof expectedClass)) {
  17000. var expectedClassName = expectedClass.name || ANONYMOUS;
  17001. var actualClassName = getClassName(props[propName]);
  17002. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
  17003. }
  17004. return null;
  17005. }
  17006. return createChainableTypeChecker(validate);
  17007. }
  17008. function createEnumTypeChecker(expectedValues) {
  17009. if (!Array.isArray(expectedValues)) {
  17010. true ? printWarning('Invalid argument supplied to oneOf, expected an instance of array.') : undefined;
  17011. return emptyFunctionThatReturnsNull;
  17012. }
  17013. function validate(props, propName, componentName, location, propFullName) {
  17014. var propValue = props[propName];
  17015. for (var i = 0; i < expectedValues.length; i++) {
  17016. if (is(propValue, expectedValues[i])) {
  17017. return null;
  17018. }
  17019. }
  17020. var valuesString = JSON.stringify(expectedValues);
  17021. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
  17022. }
  17023. return createChainableTypeChecker(validate);
  17024. }
  17025. function createObjectOfTypeChecker(typeChecker) {
  17026. function validate(props, propName, componentName, location, propFullName) {
  17027. if (typeof typeChecker !== 'function') {
  17028. return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
  17029. }
  17030. var propValue = props[propName];
  17031. var propType = getPropType(propValue);
  17032. if (propType !== 'object') {
  17033. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
  17034. }
  17035. for (var key in propValue) {
  17036. if (propValue.hasOwnProperty(key)) {
  17037. var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
  17038. if (error instanceof Error) {
  17039. return error;
  17040. }
  17041. }
  17042. }
  17043. return null;
  17044. }
  17045. return createChainableTypeChecker(validate);
  17046. }
  17047. function createUnionTypeChecker(arrayOfTypeCheckers) {
  17048. if (!Array.isArray(arrayOfTypeCheckers)) {
  17049. true ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : undefined;
  17050. return emptyFunctionThatReturnsNull;
  17051. }
  17052. for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
  17053. var checker = arrayOfTypeCheckers[i];
  17054. if (typeof checker !== 'function') {
  17055. printWarning(
  17056. 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
  17057. 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
  17058. );
  17059. return emptyFunctionThatReturnsNull;
  17060. }
  17061. }
  17062. function validate(props, propName, componentName, location, propFullName) {
  17063. for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
  17064. var checker = arrayOfTypeCheckers[i];
  17065. if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret) == null) {
  17066. return null;
  17067. }
  17068. }
  17069. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));
  17070. }
  17071. return createChainableTypeChecker(validate);
  17072. }
  17073. function createNodeChecker() {
  17074. function validate(props, propName, componentName, location, propFullName) {
  17075. if (!isNode(props[propName])) {
  17076. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
  17077. }
  17078. return null;
  17079. }
  17080. return createChainableTypeChecker(validate);
  17081. }
  17082. function createShapeTypeChecker(shapeTypes) {
  17083. function validate(props, propName, componentName, location, propFullName) {
  17084. var propValue = props[propName];
  17085. var propType = getPropType(propValue);
  17086. if (propType !== 'object') {
  17087. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
  17088. }
  17089. for (var key in shapeTypes) {
  17090. var checker = shapeTypes[key];
  17091. if (!checker) {
  17092. continue;
  17093. }
  17094. var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
  17095. if (error) {
  17096. return error;
  17097. }
  17098. }
  17099. return null;
  17100. }
  17101. return createChainableTypeChecker(validate);
  17102. }
  17103. function createStrictShapeTypeChecker(shapeTypes) {
  17104. function validate(props, propName, componentName, location, propFullName) {
  17105. var propValue = props[propName];
  17106. var propType = getPropType(propValue);
  17107. if (propType !== 'object') {
  17108. return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
  17109. }
  17110. // We need to check all keys in case some are required but missing from
  17111. // props.
  17112. var allKeys = assign({}, props[propName], shapeTypes);
  17113. for (var key in allKeys) {
  17114. var checker = shapeTypes[key];
  17115. if (!checker) {
  17116. return new PropTypeError(
  17117. 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
  17118. '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
  17119. '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
  17120. );
  17121. }
  17122. var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
  17123. if (error) {
  17124. return error;
  17125. }
  17126. }
  17127. return null;
  17128. }
  17129. return createChainableTypeChecker(validate);
  17130. }
  17131. function isNode(propValue) {
  17132. switch (typeof propValue) {
  17133. case 'number':
  17134. case 'string':
  17135. case 'undefined':
  17136. return true;
  17137. case 'boolean':
  17138. return !propValue;
  17139. case 'object':
  17140. if (Array.isArray(propValue)) {
  17141. return propValue.every(isNode);
  17142. }
  17143. if (propValue === null || isValidElement(propValue)) {
  17144. return true;
  17145. }
  17146. var iteratorFn = getIteratorFn(propValue);
  17147. if (iteratorFn) {
  17148. var iterator = iteratorFn.call(propValue);
  17149. var step;
  17150. if (iteratorFn !== propValue.entries) {
  17151. while (!(step = iterator.next()).done) {
  17152. if (!isNode(step.value)) {
  17153. return false;
  17154. }
  17155. }
  17156. } else {
  17157. // Iterator will provide entry [k,v] tuples rather than values.
  17158. while (!(step = iterator.next()).done) {
  17159. var entry = step.value;
  17160. if (entry) {
  17161. if (!isNode(entry[1])) {
  17162. return false;
  17163. }
  17164. }
  17165. }
  17166. }
  17167. } else {
  17168. return false;
  17169. }
  17170. return true;
  17171. default:
  17172. return false;
  17173. }
  17174. }
  17175. function isSymbol(propType, propValue) {
  17176. // Native Symbol.
  17177. if (propType === 'symbol') {
  17178. return true;
  17179. }
  17180. // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
  17181. if (propValue['@@toStringTag'] === 'Symbol') {
  17182. return true;
  17183. }
  17184. // Fallback for non-spec compliant Symbols which are polyfilled.
  17185. if (typeof Symbol === 'function' && propValue instanceof Symbol) {
  17186. return true;
  17187. }
  17188. return false;
  17189. }
  17190. // Equivalent of `typeof` but with special handling for array and regexp.
  17191. function getPropType(propValue) {
  17192. var propType = typeof propValue;
  17193. if (Array.isArray(propValue)) {
  17194. return 'array';
  17195. }
  17196. if (propValue instanceof RegExp) {
  17197. // Old webkits (at least until Android 4.0) return 'function' rather than
  17198. // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
  17199. // passes PropTypes.object.
  17200. return 'object';
  17201. }
  17202. if (isSymbol(propType, propValue)) {
  17203. return 'symbol';
  17204. }
  17205. return propType;
  17206. }
  17207. // This handles more types than `getPropType`. Only used for error messages.
  17208. // See `createPrimitiveTypeChecker`.
  17209. function getPreciseType(propValue) {
  17210. if (typeof propValue === 'undefined' || propValue === null) {
  17211. return '' + propValue;
  17212. }
  17213. var propType = getPropType(propValue);
  17214. if (propType === 'object') {
  17215. if (propValue instanceof Date) {
  17216. return 'date';
  17217. } else if (propValue instanceof RegExp) {
  17218. return 'regexp';
  17219. }
  17220. }
  17221. return propType;
  17222. }
  17223. // Returns a string that is postfixed to a warning about an invalid type.
  17224. // For example, "undefined" or "of type array"
  17225. function getPostfixForTypeWarning(value) {
  17226. var type = getPreciseType(value);
  17227. switch (type) {
  17228. case 'array':
  17229. case 'object':
  17230. return 'an ' + type;
  17231. case 'boolean':
  17232. case 'date':
  17233. case 'regexp':
  17234. return 'a ' + type;
  17235. default:
  17236. return type;
  17237. }
  17238. }
  17239. // Returns class name of the object, if any.
  17240. function getClassName(propValue) {
  17241. if (!propValue.constructor || !propValue.constructor.name) {
  17242. return ANONYMOUS;
  17243. }
  17244. return propValue.constructor.name;
  17245. }
  17246. ReactPropTypes.checkPropTypes = checkPropTypes;
  17247. ReactPropTypes.PropTypes = ReactPropTypes;
  17248. return ReactPropTypes;
  17249. };
  17250. /***/ }),
  17251. /***/ "../../node_modules/prop-types/index.js":
  17252. /*!******************************************************************!*\
  17253. !*** C:/Dev/Babylon/Babylon.js/node_modules/prop-types/index.js ***!
  17254. \******************************************************************/
  17255. /*! no static exports found */
  17256. /***/ (function(module, exports, __webpack_require__) {
  17257. /**
  17258. * Copyright (c) 2013-present, Facebook, Inc.
  17259. *
  17260. * This source code is licensed under the MIT license found in the
  17261. * LICENSE file in the root directory of this source tree.
  17262. */
  17263. if (true) {
  17264. var REACT_ELEMENT_TYPE = (typeof Symbol === 'function' &&
  17265. Symbol.for &&
  17266. Symbol.for('react.element')) ||
  17267. 0xeac7;
  17268. var isValidElement = function(object) {
  17269. return typeof object === 'object' &&
  17270. object !== null &&
  17271. object.$$typeof === REACT_ELEMENT_TYPE;
  17272. };
  17273. // By explicitly using `prop-types` you are opting into new development behavior.
  17274. // http://fb.me/prop-types-in-prod
  17275. var throwOnDirectAccess = true;
  17276. module.exports = __webpack_require__(/*! ./factoryWithTypeCheckers */ "../../node_modules/prop-types/factoryWithTypeCheckers.js")(isValidElement, throwOnDirectAccess);
  17277. } else {}
  17278. /***/ }),
  17279. /***/ "../../node_modules/prop-types/lib/ReactPropTypesSecret.js":
  17280. /*!*************************************************************************************!*\
  17281. !*** C:/Dev/Babylon/Babylon.js/node_modules/prop-types/lib/ReactPropTypesSecret.js ***!
  17282. \*************************************************************************************/
  17283. /*! no static exports found */
  17284. /***/ (function(module, exports, __webpack_require__) {
  17285. "use strict";
  17286. /**
  17287. * Copyright (c) 2013-present, Facebook, Inc.
  17288. *
  17289. * This source code is licensed under the MIT license found in the
  17290. * LICENSE file in the root directory of this source tree.
  17291. */
  17292. var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
  17293. module.exports = ReactPropTypesSecret;
  17294. /***/ }),
  17295. /***/ "../../node_modules/react-dom/cjs/react-dom.development.js":
  17296. /*!*************************************************************************************!*\
  17297. !*** C:/Dev/Babylon/Babylon.js/node_modules/react-dom/cjs/react-dom.development.js ***!
  17298. \*************************************************************************************/
  17299. /*! no static exports found */
  17300. /***/ (function(module, exports, __webpack_require__) {
  17301. "use strict";
  17302. /** @license React v16.9.0
  17303. * react-dom.development.js
  17304. *
  17305. * Copyright (c) Facebook, Inc. and its affiliates.
  17306. *
  17307. * This source code is licensed under the MIT license found in the
  17308. * LICENSE file in the root directory of this source tree.
  17309. */
  17310. if (true) {
  17311. (function() {
  17312. 'use strict';
  17313. var React = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  17314. var _assign = __webpack_require__(/*! object-assign */ "../../node_modules/object-assign/index.js");
  17315. var checkPropTypes = __webpack_require__(/*! prop-types/checkPropTypes */ "../../node_modules/prop-types/checkPropTypes.js");
  17316. var Scheduler = __webpack_require__(/*! scheduler */ "../../node_modules/scheduler/index.js");
  17317. var tracing = __webpack_require__(/*! scheduler/tracing */ "../../node_modules/scheduler/tracing.js");
  17318. // Do not require this module directly! Use normal `invariant` calls with
  17319. // template literal strings. The messages will be converted to ReactError during
  17320. // build, and in production they will be minified.
  17321. // Do not require this module directly! Use normal `invariant` calls with
  17322. // template literal strings. The messages will be converted to ReactError during
  17323. // build, and in production they will be minified.
  17324. function ReactError(error) {
  17325. error.name = 'Invariant Violation';
  17326. return error;
  17327. }
  17328. /**
  17329. * Use invariant() to assert state which your program assumes to be true.
  17330. *
  17331. * Provide sprintf-style format (only %s is supported) and arguments
  17332. * to provide information about what broke and what you were
  17333. * expecting.
  17334. *
  17335. * The invariant message will be stripped in production, but the invariant
  17336. * will remain to ensure logic does not differ in production.
  17337. */
  17338. (function () {
  17339. if (!React) {
  17340. {
  17341. throw ReactError(Error('ReactDOM was loaded before React. Make sure you load the React package before loading ReactDOM.'));
  17342. }
  17343. }
  17344. })();
  17345. /**
  17346. * Injectable ordering of event plugins.
  17347. */
  17348. var eventPluginOrder = null;
  17349. /**
  17350. * Injectable mapping from names to event plugin modules.
  17351. */
  17352. var namesToPlugins = {};
  17353. /**
  17354. * Recomputes the plugin list using the injected plugins and plugin ordering.
  17355. *
  17356. * @private
  17357. */
  17358. function recomputePluginOrdering() {
  17359. if (!eventPluginOrder) {
  17360. // Wait until an `eventPluginOrder` is injected.
  17361. return;
  17362. }
  17363. for (var pluginName in namesToPlugins) {
  17364. var pluginModule = namesToPlugins[pluginName];
  17365. var pluginIndex = eventPluginOrder.indexOf(pluginName);
  17366. (function () {
  17367. if (!(pluginIndex > -1)) {
  17368. {
  17369. throw ReactError(Error('EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `' + pluginName + '`.'));
  17370. }
  17371. }
  17372. })();
  17373. if (plugins[pluginIndex]) {
  17374. continue;
  17375. }
  17376. (function () {
  17377. if (!pluginModule.extractEvents) {
  17378. {
  17379. throw ReactError(Error('EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `' + pluginName + '` does not.'));
  17380. }
  17381. }
  17382. })();
  17383. plugins[pluginIndex] = pluginModule;
  17384. var publishedEvents = pluginModule.eventTypes;
  17385. for (var eventName in publishedEvents) {
  17386. (function () {
  17387. if (!publishEventForPlugin(publishedEvents[eventName], pluginModule, eventName)) {
  17388. {
  17389. throw ReactError(Error('EventPluginRegistry: Failed to publish event `' + eventName + '` for plugin `' + pluginName + '`.'));
  17390. }
  17391. }
  17392. })();
  17393. }
  17394. }
  17395. }
  17396. /**
  17397. * Publishes an event so that it can be dispatched by the supplied plugin.
  17398. *
  17399. * @param {object} dispatchConfig Dispatch configuration for the event.
  17400. * @param {object} PluginModule Plugin publishing the event.
  17401. * @return {boolean} True if the event was successfully published.
  17402. * @private
  17403. */
  17404. function publishEventForPlugin(dispatchConfig, pluginModule, eventName) {
  17405. (function () {
  17406. if (!!eventNameDispatchConfigs.hasOwnProperty(eventName)) {
  17407. {
  17408. throw ReactError(Error('EventPluginHub: More than one plugin attempted to publish the same event name, `' + eventName + '`.'));
  17409. }
  17410. }
  17411. })();
  17412. eventNameDispatchConfigs[eventName] = dispatchConfig;
  17413. var phasedRegistrationNames = dispatchConfig.phasedRegistrationNames;
  17414. if (phasedRegistrationNames) {
  17415. for (var phaseName in phasedRegistrationNames) {
  17416. if (phasedRegistrationNames.hasOwnProperty(phaseName)) {
  17417. var phasedRegistrationName = phasedRegistrationNames[phaseName];
  17418. publishRegistrationName(phasedRegistrationName, pluginModule, eventName);
  17419. }
  17420. }
  17421. return true;
  17422. } else if (dispatchConfig.registrationName) {
  17423. publishRegistrationName(dispatchConfig.registrationName, pluginModule, eventName);
  17424. return true;
  17425. }
  17426. return false;
  17427. }
  17428. /**
  17429. * Publishes a registration name that is used to identify dispatched events.
  17430. *
  17431. * @param {string} registrationName Registration name to add.
  17432. * @param {object} PluginModule Plugin publishing the event.
  17433. * @private
  17434. */
  17435. function publishRegistrationName(registrationName, pluginModule, eventName) {
  17436. (function () {
  17437. if (!!registrationNameModules[registrationName]) {
  17438. {
  17439. throw ReactError(Error('EventPluginHub: More than one plugin attempted to publish the same registration name, `' + registrationName + '`.'));
  17440. }
  17441. }
  17442. })();
  17443. registrationNameModules[registrationName] = pluginModule;
  17444. registrationNameDependencies[registrationName] = pluginModule.eventTypes[eventName].dependencies;
  17445. {
  17446. var lowerCasedName = registrationName.toLowerCase();
  17447. possibleRegistrationNames[lowerCasedName] = registrationName;
  17448. if (registrationName === 'onDoubleClick') {
  17449. possibleRegistrationNames.ondblclick = registrationName;
  17450. }
  17451. }
  17452. }
  17453. /**
  17454. * Registers plugins so that they can extract and dispatch events.
  17455. *
  17456. * @see {EventPluginHub}
  17457. */
  17458. /**
  17459. * Ordered list of injected plugins.
  17460. */
  17461. var plugins = [];
  17462. /**
  17463. * Mapping from event name to dispatch config
  17464. */
  17465. var eventNameDispatchConfigs = {};
  17466. /**
  17467. * Mapping from registration name to plugin module
  17468. */
  17469. var registrationNameModules = {};
  17470. /**
  17471. * Mapping from registration name to event name
  17472. */
  17473. var registrationNameDependencies = {};
  17474. /**
  17475. * Mapping from lowercase registration names to the properly cased version,
  17476. * used to warn in the case of missing event handlers. Available
  17477. * only in true.
  17478. * @type {Object}
  17479. */
  17480. var possibleRegistrationNames = {};
  17481. // Trust the developer to only use possibleRegistrationNames in true
  17482. /**
  17483. * Injects an ordering of plugins (by plugin name). This allows the ordering
  17484. * to be decoupled from injection of the actual plugins so that ordering is
  17485. * always deterministic regardless of packaging, on-the-fly injection, etc.
  17486. *
  17487. * @param {array} InjectedEventPluginOrder
  17488. * @internal
  17489. * @see {EventPluginHub.injection.injectEventPluginOrder}
  17490. */
  17491. function injectEventPluginOrder(injectedEventPluginOrder) {
  17492. (function () {
  17493. if (!!eventPluginOrder) {
  17494. {
  17495. throw ReactError(Error('EventPluginRegistry: Cannot inject event plugin ordering more than once. You are likely trying to load more than one copy of React.'));
  17496. }
  17497. }
  17498. })();
  17499. // Clone the ordering so it cannot be dynamically mutated.
  17500. eventPluginOrder = Array.prototype.slice.call(injectedEventPluginOrder);
  17501. recomputePluginOrdering();
  17502. }
  17503. /**
  17504. * Injects plugins to be used by `EventPluginHub`. The plugin names must be
  17505. * in the ordering injected by `injectEventPluginOrder`.
  17506. *
  17507. * Plugins can be injected as part of page initialization or on-the-fly.
  17508. *
  17509. * @param {object} injectedNamesToPlugins Map from names to plugin modules.
  17510. * @internal
  17511. * @see {EventPluginHub.injection.injectEventPluginsByName}
  17512. */
  17513. function injectEventPluginsByName(injectedNamesToPlugins) {
  17514. var isOrderingDirty = false;
  17515. for (var pluginName in injectedNamesToPlugins) {
  17516. if (!injectedNamesToPlugins.hasOwnProperty(pluginName)) {
  17517. continue;
  17518. }
  17519. var pluginModule = injectedNamesToPlugins[pluginName];
  17520. if (!namesToPlugins.hasOwnProperty(pluginName) || namesToPlugins[pluginName] !== pluginModule) {
  17521. (function () {
  17522. if (!!namesToPlugins[pluginName]) {
  17523. {
  17524. throw ReactError(Error('EventPluginRegistry: Cannot inject two different event plugins using the same name, `' + pluginName + '`.'));
  17525. }
  17526. }
  17527. })();
  17528. namesToPlugins[pluginName] = pluginModule;
  17529. isOrderingDirty = true;
  17530. }
  17531. }
  17532. if (isOrderingDirty) {
  17533. recomputePluginOrdering();
  17534. }
  17535. }
  17536. var invokeGuardedCallbackImpl = function (name, func, context, a, b, c, d, e, f) {
  17537. var funcArgs = Array.prototype.slice.call(arguments, 3);
  17538. try {
  17539. func.apply(context, funcArgs);
  17540. } catch (error) {
  17541. this.onError(error);
  17542. }
  17543. };
  17544. {
  17545. // In DEV mode, we swap out invokeGuardedCallback for a special version
  17546. // that plays more nicely with the browser's DevTools. The idea is to preserve
  17547. // "Pause on exceptions" behavior. Because React wraps all user-provided
  17548. // functions in invokeGuardedCallback, and the production version of
  17549. // invokeGuardedCallback uses a try-catch, all user exceptions are treated
  17550. // like caught exceptions, and the DevTools won't pause unless the developer
  17551. // takes the extra step of enabling pause on caught exceptions. This is
  17552. // unintuitive, though, because even though React has caught the error, from
  17553. // the developer's perspective, the error is uncaught.
  17554. //
  17555. // To preserve the expected "Pause on exceptions" behavior, we don't use a
  17556. // try-catch in DEV. Instead, we synchronously dispatch a fake event to a fake
  17557. // DOM node, and call the user-provided callback from inside an event handler
  17558. // for that fake event. If the callback throws, the error is "captured" using
  17559. // a global event handler. But because the error happens in a different
  17560. // event loop context, it does not interrupt the normal program flow.
  17561. // Effectively, this gives us try-catch behavior without actually using
  17562. // try-catch. Neat!
  17563. // Check that the browser supports the APIs we need to implement our special
  17564. // DEV version of invokeGuardedCallback
  17565. if (typeof window !== 'undefined' && typeof window.dispatchEvent === 'function' && typeof document !== 'undefined' && typeof document.createEvent === 'function') {
  17566. var fakeNode = document.createElement('react');
  17567. var invokeGuardedCallbackDev = function (name, func, context, a, b, c, d, e, f) {
  17568. // If document doesn't exist we know for sure we will crash in this method
  17569. // when we call document.createEvent(). However this can cause confusing
  17570. // errors: https://github.com/facebookincubator/create-react-app/issues/3482
  17571. // So we preemptively throw with a better message instead.
  17572. (function () {
  17573. if (!(typeof document !== 'undefined')) {
  17574. {
  17575. throw ReactError(Error('The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.'));
  17576. }
  17577. }
  17578. })();
  17579. var evt = document.createEvent('Event');
  17580. // Keeps track of whether the user-provided callback threw an error. We
  17581. // set this to true at the beginning, then set it to false right after
  17582. // calling the function. If the function errors, `didError` will never be
  17583. // set to false. This strategy works even if the browser is flaky and
  17584. // fails to call our global error handler, because it doesn't rely on
  17585. // the error event at all.
  17586. var didError = true;
  17587. // Keeps track of the value of window.event so that we can reset it
  17588. // during the callback to let user code access window.event in the
  17589. // browsers that support it.
  17590. var windowEvent = window.event;
  17591. // Keeps track of the descriptor of window.event to restore it after event
  17592. // dispatching: https://github.com/facebook/react/issues/13688
  17593. var windowEventDescriptor = Object.getOwnPropertyDescriptor(window, 'event');
  17594. // Create an event handler for our fake event. We will synchronously
  17595. // dispatch our fake event using `dispatchEvent`. Inside the handler, we
  17596. // call the user-provided callback.
  17597. var funcArgs = Array.prototype.slice.call(arguments, 3);
  17598. function callCallback() {
  17599. // We immediately remove the callback from event listeners so that
  17600. // nested `invokeGuardedCallback` calls do not clash. Otherwise, a
  17601. // nested call would trigger the fake event handlers of any call higher
  17602. // in the stack.
  17603. fakeNode.removeEventListener(evtType, callCallback, false);
  17604. // We check for window.hasOwnProperty('event') to prevent the
  17605. // window.event assignment in both IE <= 10 as they throw an error
  17606. // "Member not found" in strict mode, and in Firefox which does not
  17607. // support window.event.
  17608. if (typeof window.event !== 'undefined' && window.hasOwnProperty('event')) {
  17609. window.event = windowEvent;
  17610. }
  17611. func.apply(context, funcArgs);
  17612. didError = false;
  17613. }
  17614. // Create a global error event handler. We use this to capture the value
  17615. // that was thrown. It's possible that this error handler will fire more
  17616. // than once; for example, if non-React code also calls `dispatchEvent`
  17617. // and a handler for that event throws. We should be resilient to most of
  17618. // those cases. Even if our error event handler fires more than once, the
  17619. // last error event is always used. If the callback actually does error,
  17620. // we know that the last error event is the correct one, because it's not
  17621. // possible for anything else to have happened in between our callback
  17622. // erroring and the code that follows the `dispatchEvent` call below. If
  17623. // the callback doesn't error, but the error event was fired, we know to
  17624. // ignore it because `didError` will be false, as described above.
  17625. var error = void 0;
  17626. // Use this to track whether the error event is ever called.
  17627. var didSetError = false;
  17628. var isCrossOriginError = false;
  17629. function handleWindowError(event) {
  17630. error = event.error;
  17631. didSetError = true;
  17632. if (error === null && event.colno === 0 && event.lineno === 0) {
  17633. isCrossOriginError = true;
  17634. }
  17635. if (event.defaultPrevented) {
  17636. // Some other error handler has prevented default.
  17637. // Browsers silence the error report if this happens.
  17638. // We'll remember this to later decide whether to log it or not.
  17639. if (error != null && typeof error === 'object') {
  17640. try {
  17641. error._suppressLogging = true;
  17642. } catch (inner) {
  17643. // Ignore.
  17644. }
  17645. }
  17646. }
  17647. }
  17648. // Create a fake event type.
  17649. var evtType = 'react-' + (name ? name : 'invokeguardedcallback');
  17650. // Attach our event handlers
  17651. window.addEventListener('error', handleWindowError);
  17652. fakeNode.addEventListener(evtType, callCallback, false);
  17653. // Synchronously dispatch our fake event. If the user-provided function
  17654. // errors, it will trigger our global error handler.
  17655. evt.initEvent(evtType, false, false);
  17656. fakeNode.dispatchEvent(evt);
  17657. if (windowEventDescriptor) {
  17658. Object.defineProperty(window, 'event', windowEventDescriptor);
  17659. }
  17660. if (didError) {
  17661. if (!didSetError) {
  17662. // The callback errored, but the error event never fired.
  17663. error = new Error('An error was thrown inside one of your components, but React ' + "doesn't know what it was. This is likely due to browser " + 'flakiness. React does its best to preserve the "Pause on ' + 'exceptions" behavior of the DevTools, which requires some ' + "DEV-mode only tricks. It's possible that these don't work in " + 'your browser. Try triggering the error in production mode, ' + 'or switching to a modern browser. If you suspect that this is ' + 'actually an issue with React, please file an issue.');
  17664. } else if (isCrossOriginError) {
  17665. error = new Error("A cross-origin error was thrown. React doesn't have access to " + 'the actual error object in development. ' + 'See https://fb.me/react-crossorigin-error for more information.');
  17666. }
  17667. this.onError(error);
  17668. }
  17669. // Remove our event listeners
  17670. window.removeEventListener('error', handleWindowError);
  17671. };
  17672. invokeGuardedCallbackImpl = invokeGuardedCallbackDev;
  17673. }
  17674. }
  17675. var invokeGuardedCallbackImpl$1 = invokeGuardedCallbackImpl;
  17676. // Used by Fiber to simulate a try-catch.
  17677. var hasError = false;
  17678. var caughtError = null;
  17679. // Used by event system to capture/rethrow the first error.
  17680. var hasRethrowError = false;
  17681. var rethrowError = null;
  17682. var reporter = {
  17683. onError: function (error) {
  17684. hasError = true;
  17685. caughtError = error;
  17686. }
  17687. };
  17688. /**
  17689. * Call a function while guarding against errors that happens within it.
  17690. * Returns an error if it throws, otherwise null.
  17691. *
  17692. * In production, this is implemented using a try-catch. The reason we don't
  17693. * use a try-catch directly is so that we can swap out a different
  17694. * implementation in DEV mode.
  17695. *
  17696. * @param {String} name of the guard to use for logging or debugging
  17697. * @param {Function} func The function to invoke
  17698. * @param {*} context The context to use when calling the function
  17699. * @param {...*} args Arguments for function
  17700. */
  17701. function invokeGuardedCallback(name, func, context, a, b, c, d, e, f) {
  17702. hasError = false;
  17703. caughtError = null;
  17704. invokeGuardedCallbackImpl$1.apply(reporter, arguments);
  17705. }
  17706. /**
  17707. * Same as invokeGuardedCallback, but instead of returning an error, it stores
  17708. * it in a global so it can be rethrown by `rethrowCaughtError` later.
  17709. * TODO: See if caughtError and rethrowError can be unified.
  17710. *
  17711. * @param {String} name of the guard to use for logging or debugging
  17712. * @param {Function} func The function to invoke
  17713. * @param {*} context The context to use when calling the function
  17714. * @param {...*} args Arguments for function
  17715. */
  17716. function invokeGuardedCallbackAndCatchFirstError(name, func, context, a, b, c, d, e, f) {
  17717. invokeGuardedCallback.apply(this, arguments);
  17718. if (hasError) {
  17719. var error = clearCaughtError();
  17720. if (!hasRethrowError) {
  17721. hasRethrowError = true;
  17722. rethrowError = error;
  17723. }
  17724. }
  17725. }
  17726. /**
  17727. * During execution of guarded functions we will capture the first error which
  17728. * we will rethrow to be handled by the top level error handler.
  17729. */
  17730. function rethrowCaughtError() {
  17731. if (hasRethrowError) {
  17732. var error = rethrowError;
  17733. hasRethrowError = false;
  17734. rethrowError = null;
  17735. throw error;
  17736. }
  17737. }
  17738. function hasCaughtError() {
  17739. return hasError;
  17740. }
  17741. function clearCaughtError() {
  17742. if (hasError) {
  17743. var error = caughtError;
  17744. hasError = false;
  17745. caughtError = null;
  17746. return error;
  17747. } else {
  17748. (function () {
  17749. {
  17750. {
  17751. throw ReactError(Error('clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.'));
  17752. }
  17753. }
  17754. })();
  17755. }
  17756. }
  17757. /**
  17758. * Similar to invariant but only logs a warning if the condition is not met.
  17759. * This can be used to log issues in development environments in critical
  17760. * paths. Removing the logging code for production environments will keep the
  17761. * same logic and follow the same code paths.
  17762. */
  17763. var warningWithoutStack = function () {};
  17764. {
  17765. warningWithoutStack = function (condition, format) {
  17766. for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
  17767. args[_key - 2] = arguments[_key];
  17768. }
  17769. if (format === undefined) {
  17770. throw new Error('`warningWithoutStack(condition, format, ...args)` requires a warning ' + 'message argument');
  17771. }
  17772. if (args.length > 8) {
  17773. // Check before the condition to catch violations early.
  17774. throw new Error('warningWithoutStack() currently supports at most 8 arguments.');
  17775. }
  17776. if (condition) {
  17777. return;
  17778. }
  17779. if (typeof console !== 'undefined') {
  17780. var argsWithFormat = args.map(function (item) {
  17781. return '' + item;
  17782. });
  17783. argsWithFormat.unshift('Warning: ' + format);
  17784. // We intentionally don't use spread (or .apply) directly because it
  17785. // breaks IE9: https://github.com/facebook/react/issues/13610
  17786. Function.prototype.apply.call(console.error, console, argsWithFormat);
  17787. }
  17788. try {
  17789. // --- Welcome to debugging React ---
  17790. // This error was thrown as a convenience so that you can use this stack
  17791. // to find the callsite that caused this warning to fire.
  17792. var argIndex = 0;
  17793. var message = 'Warning: ' + format.replace(/%s/g, function () {
  17794. return args[argIndex++];
  17795. });
  17796. throw new Error(message);
  17797. } catch (x) {}
  17798. };
  17799. }
  17800. var warningWithoutStack$1 = warningWithoutStack;
  17801. var getFiberCurrentPropsFromNode = null;
  17802. var getInstanceFromNode = null;
  17803. var getNodeFromInstance = null;
  17804. function setComponentTree(getFiberCurrentPropsFromNodeImpl, getInstanceFromNodeImpl, getNodeFromInstanceImpl) {
  17805. getFiberCurrentPropsFromNode = getFiberCurrentPropsFromNodeImpl;
  17806. getInstanceFromNode = getInstanceFromNodeImpl;
  17807. getNodeFromInstance = getNodeFromInstanceImpl;
  17808. {
  17809. !(getNodeFromInstance && getInstanceFromNode) ? warningWithoutStack$1(false, 'EventPluginUtils.setComponentTree(...): Injected ' + 'module is missing getNodeFromInstance or getInstanceFromNode.') : void 0;
  17810. }
  17811. }
  17812. var validateEventDispatches = void 0;
  17813. {
  17814. validateEventDispatches = function (event) {
  17815. var dispatchListeners = event._dispatchListeners;
  17816. var dispatchInstances = event._dispatchInstances;
  17817. var listenersIsArr = Array.isArray(dispatchListeners);
  17818. var listenersLen = listenersIsArr ? dispatchListeners.length : dispatchListeners ? 1 : 0;
  17819. var instancesIsArr = Array.isArray(dispatchInstances);
  17820. var instancesLen = instancesIsArr ? dispatchInstances.length : dispatchInstances ? 1 : 0;
  17821. !(instancesIsArr === listenersIsArr && instancesLen === listenersLen) ? warningWithoutStack$1(false, 'EventPluginUtils: Invalid `event`.') : void 0;
  17822. };
  17823. }
  17824. /**
  17825. * Dispatch the event to the listener.
  17826. * @param {SyntheticEvent} event SyntheticEvent to handle
  17827. * @param {function} listener Application-level callback
  17828. * @param {*} inst Internal component instance
  17829. */
  17830. function executeDispatch(event, listener, inst) {
  17831. var type = event.type || 'unknown-event';
  17832. event.currentTarget = getNodeFromInstance(inst);
  17833. invokeGuardedCallbackAndCatchFirstError(type, listener, undefined, event);
  17834. event.currentTarget = null;
  17835. }
  17836. /**
  17837. * Standard/simple iteration through an event's collected dispatches.
  17838. */
  17839. function executeDispatchesInOrder(event) {
  17840. var dispatchListeners = event._dispatchListeners;
  17841. var dispatchInstances = event._dispatchInstances;
  17842. {
  17843. validateEventDispatches(event);
  17844. }
  17845. if (Array.isArray(dispatchListeners)) {
  17846. for (var i = 0; i < dispatchListeners.length; i++) {
  17847. if (event.isPropagationStopped()) {
  17848. break;
  17849. }
  17850. // Listeners and Instances are two parallel arrays that are always in sync.
  17851. executeDispatch(event, dispatchListeners[i], dispatchInstances[i]);
  17852. }
  17853. } else if (dispatchListeners) {
  17854. executeDispatch(event, dispatchListeners, dispatchInstances);
  17855. }
  17856. event._dispatchListeners = null;
  17857. event._dispatchInstances = null;
  17858. }
  17859. /**
  17860. * @see executeDispatchesInOrderStopAtTrueImpl
  17861. */
  17862. /**
  17863. * Execution of a "direct" dispatch - there must be at most one dispatch
  17864. * accumulated on the event or it is considered an error. It doesn't really make
  17865. * sense for an event with multiple dispatches (bubbled) to keep track of the
  17866. * return values at each dispatch execution, but it does tend to make sense when
  17867. * dealing with "direct" dispatches.
  17868. *
  17869. * @return {*} The return value of executing the single dispatch.
  17870. */
  17871. /**
  17872. * @param {SyntheticEvent} event
  17873. * @return {boolean} True iff number of dispatches accumulated is greater than 0.
  17874. */
  17875. /**
  17876. * Accumulates items that must not be null or undefined into the first one. This
  17877. * is used to conserve memory by avoiding array allocations, and thus sacrifices
  17878. * API cleanness. Since `current` can be null before being passed in and not
  17879. * null after this function, make sure to assign it back to `current`:
  17880. *
  17881. * `a = accumulateInto(a, b);`
  17882. *
  17883. * This API should be sparingly used. Try `accumulate` for something cleaner.
  17884. *
  17885. * @return {*|array<*>} An accumulation of items.
  17886. */
  17887. function accumulateInto(current, next) {
  17888. (function () {
  17889. if (!(next != null)) {
  17890. {
  17891. throw ReactError(Error('accumulateInto(...): Accumulated items must not be null or undefined.'));
  17892. }
  17893. }
  17894. })();
  17895. if (current == null) {
  17896. return next;
  17897. }
  17898. // Both are not empty. Warning: Never call x.concat(y) when you are not
  17899. // certain that x is an Array (x could be a string with concat method).
  17900. if (Array.isArray(current)) {
  17901. if (Array.isArray(next)) {
  17902. current.push.apply(current, next);
  17903. return current;
  17904. }
  17905. current.push(next);
  17906. return current;
  17907. }
  17908. if (Array.isArray(next)) {
  17909. // A bit too dangerous to mutate `next`.
  17910. return [current].concat(next);
  17911. }
  17912. return [current, next];
  17913. }
  17914. /**
  17915. * @param {array} arr an "accumulation" of items which is either an Array or
  17916. * a single item. Useful when paired with the `accumulate` module. This is a
  17917. * simple utility that allows us to reason about a collection of items, but
  17918. * handling the case when there is exactly one item (and we do not need to
  17919. * allocate an array).
  17920. * @param {function} cb Callback invoked with each element or a collection.
  17921. * @param {?} [scope] Scope used as `this` in a callback.
  17922. */
  17923. function forEachAccumulated(arr, cb, scope) {
  17924. if (Array.isArray(arr)) {
  17925. arr.forEach(cb, scope);
  17926. } else if (arr) {
  17927. cb.call(scope, arr);
  17928. }
  17929. }
  17930. /**
  17931. * Internal queue of events that have accumulated their dispatches and are
  17932. * waiting to have their dispatches executed.
  17933. */
  17934. var eventQueue = null;
  17935. /**
  17936. * Dispatches an event and releases it back into the pool, unless persistent.
  17937. *
  17938. * @param {?object} event Synthetic event to be dispatched.
  17939. * @private
  17940. */
  17941. var executeDispatchesAndRelease = function (event) {
  17942. if (event) {
  17943. executeDispatchesInOrder(event);
  17944. if (!event.isPersistent()) {
  17945. event.constructor.release(event);
  17946. }
  17947. }
  17948. };
  17949. var executeDispatchesAndReleaseTopLevel = function (e) {
  17950. return executeDispatchesAndRelease(e);
  17951. };
  17952. function runEventsInBatch(events) {
  17953. if (events !== null) {
  17954. eventQueue = accumulateInto(eventQueue, events);
  17955. }
  17956. // Set `eventQueue` to null before processing it so that we can tell if more
  17957. // events get enqueued while processing.
  17958. var processingEventQueue = eventQueue;
  17959. eventQueue = null;
  17960. if (!processingEventQueue) {
  17961. return;
  17962. }
  17963. forEachAccumulated(processingEventQueue, executeDispatchesAndReleaseTopLevel);
  17964. (function () {
  17965. if (!!eventQueue) {
  17966. {
  17967. throw ReactError(Error('processEventQueue(): Additional events were enqueued while processing an event queue. Support for this has not yet been implemented.'));
  17968. }
  17969. }
  17970. })();
  17971. // This would be a good time to rethrow if any of the event handlers threw.
  17972. rethrowCaughtError();
  17973. }
  17974. function isInteractive(tag) {
  17975. return tag === 'button' || tag === 'input' || tag === 'select' || tag === 'textarea';
  17976. }
  17977. function shouldPreventMouseEvent(name, type, props) {
  17978. switch (name) {
  17979. case 'onClick':
  17980. case 'onClickCapture':
  17981. case 'onDoubleClick':
  17982. case 'onDoubleClickCapture':
  17983. case 'onMouseDown':
  17984. case 'onMouseDownCapture':
  17985. case 'onMouseMove':
  17986. case 'onMouseMoveCapture':
  17987. case 'onMouseUp':
  17988. case 'onMouseUpCapture':
  17989. return !!(props.disabled && isInteractive(type));
  17990. default:
  17991. return false;
  17992. }
  17993. }
  17994. /**
  17995. * This is a unified interface for event plugins to be installed and configured.
  17996. *
  17997. * Event plugins can implement the following properties:
  17998. *
  17999. * `extractEvents` {function(string, DOMEventTarget, string, object): *}
  18000. * Required. When a top-level event is fired, this method is expected to
  18001. * extract synthetic events that will in turn be queued and dispatched.
  18002. *
  18003. * `eventTypes` {object}
  18004. * Optional, plugins that fire events must publish a mapping of registration
  18005. * names that are used to register listeners. Values of this mapping must
  18006. * be objects that contain `registrationName` or `phasedRegistrationNames`.
  18007. *
  18008. * `executeDispatch` {function(object, function, string)}
  18009. * Optional, allows plugins to override how an event gets dispatched. By
  18010. * default, the listener is simply invoked.
  18011. *
  18012. * Each plugin that is injected into `EventsPluginHub` is immediately operable.
  18013. *
  18014. * @public
  18015. */
  18016. /**
  18017. * Methods for injecting dependencies.
  18018. */
  18019. var injection = {
  18020. /**
  18021. * @param {array} InjectedEventPluginOrder
  18022. * @public
  18023. */
  18024. injectEventPluginOrder: injectEventPluginOrder,
  18025. /**
  18026. * @param {object} injectedNamesToPlugins Map from names to plugin modules.
  18027. */
  18028. injectEventPluginsByName: injectEventPluginsByName
  18029. };
  18030. /**
  18031. * @param {object} inst The instance, which is the source of events.
  18032. * @param {string} registrationName Name of listener (e.g. `onClick`).
  18033. * @return {?function} The stored callback.
  18034. */
  18035. function getListener(inst, registrationName) {
  18036. var listener = void 0;
  18037. // TODO: shouldPreventMouseEvent is DOM-specific and definitely should not
  18038. // live here; needs to be moved to a better place soon
  18039. var stateNode = inst.stateNode;
  18040. if (!stateNode) {
  18041. // Work in progress (ex: onload events in incremental mode).
  18042. return null;
  18043. }
  18044. var props = getFiberCurrentPropsFromNode(stateNode);
  18045. if (!props) {
  18046. // Work in progress.
  18047. return null;
  18048. }
  18049. listener = props[registrationName];
  18050. if (shouldPreventMouseEvent(registrationName, inst.type, props)) {
  18051. return null;
  18052. }
  18053. (function () {
  18054. if (!(!listener || typeof listener === 'function')) {
  18055. {
  18056. throw ReactError(Error('Expected `' + registrationName + '` listener to be a function, instead got a value of `' + typeof listener + '` type.'));
  18057. }
  18058. }
  18059. })();
  18060. return listener;
  18061. }
  18062. /**
  18063. * Allows registered plugins an opportunity to extract events from top-level
  18064. * native browser events.
  18065. *
  18066. * @return {*} An accumulation of synthetic events.
  18067. * @internal
  18068. */
  18069. function extractPluginEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  18070. var events = null;
  18071. for (var i = 0; i < plugins.length; i++) {
  18072. // Not every plugin in the ordering may be loaded at runtime.
  18073. var possiblePlugin = plugins[i];
  18074. if (possiblePlugin) {
  18075. var extractedEvents = possiblePlugin.extractEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget);
  18076. if (extractedEvents) {
  18077. events = accumulateInto(events, extractedEvents);
  18078. }
  18079. }
  18080. }
  18081. return events;
  18082. }
  18083. function runExtractedPluginEventsInBatch(topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  18084. var events = extractPluginEvents(topLevelType, targetInst, nativeEvent, nativeEventTarget);
  18085. runEventsInBatch(events);
  18086. }
  18087. var FunctionComponent = 0;
  18088. var ClassComponent = 1;
  18089. var IndeterminateComponent = 2; // Before we know whether it is function or class
  18090. var HostRoot = 3; // Root of a host tree. Could be nested inside another node.
  18091. var HostPortal = 4; // A subtree. Could be an entry point to a different renderer.
  18092. var HostComponent = 5;
  18093. var HostText = 6;
  18094. var Fragment = 7;
  18095. var Mode = 8;
  18096. var ContextConsumer = 9;
  18097. var ContextProvider = 10;
  18098. var ForwardRef = 11;
  18099. var Profiler = 12;
  18100. var SuspenseComponent = 13;
  18101. var MemoComponent = 14;
  18102. var SimpleMemoComponent = 15;
  18103. var LazyComponent = 16;
  18104. var IncompleteClassComponent = 17;
  18105. var DehydratedSuspenseComponent = 18;
  18106. var SuspenseListComponent = 19;
  18107. var FundamentalComponent = 20;
  18108. var randomKey = Math.random().toString(36).slice(2);
  18109. var internalInstanceKey = '__reactInternalInstance$' + randomKey;
  18110. var internalEventHandlersKey = '__reactEventHandlers$' + randomKey;
  18111. function precacheFiberNode(hostInst, node) {
  18112. node[internalInstanceKey] = hostInst;
  18113. }
  18114. /**
  18115. * Given a DOM node, return the closest ReactDOMComponent or
  18116. * ReactDOMTextComponent instance ancestor.
  18117. */
  18118. function getClosestInstanceFromNode(node) {
  18119. if (node[internalInstanceKey]) {
  18120. return node[internalInstanceKey];
  18121. }
  18122. while (!node[internalInstanceKey]) {
  18123. if (node.parentNode) {
  18124. node = node.parentNode;
  18125. } else {
  18126. // Top of the tree. This node must not be part of a React tree (or is
  18127. // unmounted, potentially).
  18128. return null;
  18129. }
  18130. }
  18131. var inst = node[internalInstanceKey];
  18132. if (inst.tag === HostComponent || inst.tag === HostText) {
  18133. // In Fiber, this will always be the deepest root.
  18134. return inst;
  18135. }
  18136. return null;
  18137. }
  18138. /**
  18139. * Given a DOM node, return the ReactDOMComponent or ReactDOMTextComponent
  18140. * instance, or null if the node was not rendered by this React.
  18141. */
  18142. function getInstanceFromNode$1(node) {
  18143. var inst = node[internalInstanceKey];
  18144. if (inst) {
  18145. if (inst.tag === HostComponent || inst.tag === HostText) {
  18146. return inst;
  18147. } else {
  18148. return null;
  18149. }
  18150. }
  18151. return null;
  18152. }
  18153. /**
  18154. * Given a ReactDOMComponent or ReactDOMTextComponent, return the corresponding
  18155. * DOM node.
  18156. */
  18157. function getNodeFromInstance$1(inst) {
  18158. if (inst.tag === HostComponent || inst.tag === HostText) {
  18159. // In Fiber this, is just the state node right now. We assume it will be
  18160. // a host component or host text.
  18161. return inst.stateNode;
  18162. }
  18163. // Without this first invariant, passing a non-DOM-component triggers the next
  18164. // invariant for a missing parent, which is super confusing.
  18165. (function () {
  18166. {
  18167. {
  18168. throw ReactError(Error('getNodeFromInstance: Invalid argument.'));
  18169. }
  18170. }
  18171. })();
  18172. }
  18173. function getFiberCurrentPropsFromNode$1(node) {
  18174. return node[internalEventHandlersKey] || null;
  18175. }
  18176. function updateFiberProps(node, props) {
  18177. node[internalEventHandlersKey] = props;
  18178. }
  18179. function getParent(inst) {
  18180. do {
  18181. inst = inst.return;
  18182. // TODO: If this is a HostRoot we might want to bail out.
  18183. // That is depending on if we want nested subtrees (layers) to bubble
  18184. // events to their parent. We could also go through parentNode on the
  18185. // host node but that wouldn't work for React Native and doesn't let us
  18186. // do the portal feature.
  18187. } while (inst && inst.tag !== HostComponent);
  18188. if (inst) {
  18189. return inst;
  18190. }
  18191. return null;
  18192. }
  18193. /**
  18194. * Return the lowest common ancestor of A and B, or null if they are in
  18195. * different trees.
  18196. */
  18197. function getLowestCommonAncestor(instA, instB) {
  18198. var depthA = 0;
  18199. for (var tempA = instA; tempA; tempA = getParent(tempA)) {
  18200. depthA++;
  18201. }
  18202. var depthB = 0;
  18203. for (var tempB = instB; tempB; tempB = getParent(tempB)) {
  18204. depthB++;
  18205. }
  18206. // If A is deeper, crawl up.
  18207. while (depthA - depthB > 0) {
  18208. instA = getParent(instA);
  18209. depthA--;
  18210. }
  18211. // If B is deeper, crawl up.
  18212. while (depthB - depthA > 0) {
  18213. instB = getParent(instB);
  18214. depthB--;
  18215. }
  18216. // Walk in lockstep until we find a match.
  18217. var depth = depthA;
  18218. while (depth--) {
  18219. if (instA === instB || instA === instB.alternate) {
  18220. return instA;
  18221. }
  18222. instA = getParent(instA);
  18223. instB = getParent(instB);
  18224. }
  18225. return null;
  18226. }
  18227. /**
  18228. * Return if A is an ancestor of B.
  18229. */
  18230. /**
  18231. * Return the parent instance of the passed-in instance.
  18232. */
  18233. /**
  18234. * Simulates the traversal of a two-phase, capture/bubble event dispatch.
  18235. */
  18236. function traverseTwoPhase(inst, fn, arg) {
  18237. var path = [];
  18238. while (inst) {
  18239. path.push(inst);
  18240. inst = getParent(inst);
  18241. }
  18242. var i = void 0;
  18243. for (i = path.length; i-- > 0;) {
  18244. fn(path[i], 'captured', arg);
  18245. }
  18246. for (i = 0; i < path.length; i++) {
  18247. fn(path[i], 'bubbled', arg);
  18248. }
  18249. }
  18250. /**
  18251. * Traverses the ID hierarchy and invokes the supplied `cb` on any IDs that
  18252. * should would receive a `mouseEnter` or `mouseLeave` event.
  18253. *
  18254. * Does not invoke the callback on the nearest common ancestor because nothing
  18255. * "entered" or "left" that element.
  18256. */
  18257. function traverseEnterLeave(from, to, fn, argFrom, argTo) {
  18258. var common = from && to ? getLowestCommonAncestor(from, to) : null;
  18259. var pathFrom = [];
  18260. while (true) {
  18261. if (!from) {
  18262. break;
  18263. }
  18264. if (from === common) {
  18265. break;
  18266. }
  18267. var alternate = from.alternate;
  18268. if (alternate !== null && alternate === common) {
  18269. break;
  18270. }
  18271. pathFrom.push(from);
  18272. from = getParent(from);
  18273. }
  18274. var pathTo = [];
  18275. while (true) {
  18276. if (!to) {
  18277. break;
  18278. }
  18279. if (to === common) {
  18280. break;
  18281. }
  18282. var _alternate = to.alternate;
  18283. if (_alternate !== null && _alternate === common) {
  18284. break;
  18285. }
  18286. pathTo.push(to);
  18287. to = getParent(to);
  18288. }
  18289. for (var i = 0; i < pathFrom.length; i++) {
  18290. fn(pathFrom[i], 'bubbled', argFrom);
  18291. }
  18292. for (var _i = pathTo.length; _i-- > 0;) {
  18293. fn(pathTo[_i], 'captured', argTo);
  18294. }
  18295. }
  18296. /**
  18297. * Some event types have a notion of different registration names for different
  18298. * "phases" of propagation. This finds listeners by a given phase.
  18299. */
  18300. function listenerAtPhase(inst, event, propagationPhase) {
  18301. var registrationName = event.dispatchConfig.phasedRegistrationNames[propagationPhase];
  18302. return getListener(inst, registrationName);
  18303. }
  18304. /**
  18305. * A small set of propagation patterns, each of which will accept a small amount
  18306. * of information, and generate a set of "dispatch ready event objects" - which
  18307. * are sets of events that have already been annotated with a set of dispatched
  18308. * listener functions/ids. The API is designed this way to discourage these
  18309. * propagation strategies from actually executing the dispatches, since we
  18310. * always want to collect the entire set of dispatches before executing even a
  18311. * single one.
  18312. */
  18313. /**
  18314. * Tags a `SyntheticEvent` with dispatched listeners. Creating this function
  18315. * here, allows us to not have to bind or create functions for each event.
  18316. * Mutating the event's members allows us to not have to create a wrapping
  18317. * "dispatch" object that pairs the event with the listener.
  18318. */
  18319. function accumulateDirectionalDispatches(inst, phase, event) {
  18320. {
  18321. !inst ? warningWithoutStack$1(false, 'Dispatching inst must not be null') : void 0;
  18322. }
  18323. var listener = listenerAtPhase(inst, event, phase);
  18324. if (listener) {
  18325. event._dispatchListeners = accumulateInto(event._dispatchListeners, listener);
  18326. event._dispatchInstances = accumulateInto(event._dispatchInstances, inst);
  18327. }
  18328. }
  18329. /**
  18330. * Collect dispatches (must be entirely collected before dispatching - see unit
  18331. * tests). Lazily allocate the array to conserve memory. We must loop through
  18332. * each event and perform the traversal for each one. We cannot perform a
  18333. * single traversal for the entire collection of events because each event may
  18334. * have a different target.
  18335. */
  18336. function accumulateTwoPhaseDispatchesSingle(event) {
  18337. if (event && event.dispatchConfig.phasedRegistrationNames) {
  18338. traverseTwoPhase(event._targetInst, accumulateDirectionalDispatches, event);
  18339. }
  18340. }
  18341. /**
  18342. * Accumulates without regard to direction, does not look for phased
  18343. * registration names. Same as `accumulateDirectDispatchesSingle` but without
  18344. * requiring that the `dispatchMarker` be the same as the dispatched ID.
  18345. */
  18346. function accumulateDispatches(inst, ignoredDirection, event) {
  18347. if (inst && event && event.dispatchConfig.registrationName) {
  18348. var registrationName = event.dispatchConfig.registrationName;
  18349. var listener = getListener(inst, registrationName);
  18350. if (listener) {
  18351. event._dispatchListeners = accumulateInto(event._dispatchListeners, listener);
  18352. event._dispatchInstances = accumulateInto(event._dispatchInstances, inst);
  18353. }
  18354. }
  18355. }
  18356. /**
  18357. * Accumulates dispatches on an `SyntheticEvent`, but only for the
  18358. * `dispatchMarker`.
  18359. * @param {SyntheticEvent} event
  18360. */
  18361. function accumulateDirectDispatchesSingle(event) {
  18362. if (event && event.dispatchConfig.registrationName) {
  18363. accumulateDispatches(event._targetInst, null, event);
  18364. }
  18365. }
  18366. function accumulateTwoPhaseDispatches(events) {
  18367. forEachAccumulated(events, accumulateTwoPhaseDispatchesSingle);
  18368. }
  18369. function accumulateEnterLeaveDispatches(leave, enter, from, to) {
  18370. traverseEnterLeave(from, to, accumulateDispatches, leave, enter);
  18371. }
  18372. function accumulateDirectDispatches(events) {
  18373. forEachAccumulated(events, accumulateDirectDispatchesSingle);
  18374. }
  18375. var canUseDOM = !!(typeof window !== 'undefined' && typeof window.document !== 'undefined' && typeof window.document.createElement !== 'undefined');
  18376. // Do not use the below two methods directly!
  18377. // Instead use constants exported from DOMTopLevelEventTypes in ReactDOM.
  18378. // (It is the only module that is allowed to access these methods.)
  18379. function unsafeCastStringToDOMTopLevelType(topLevelType) {
  18380. return topLevelType;
  18381. }
  18382. function unsafeCastDOMTopLevelTypeToString(topLevelType) {
  18383. return topLevelType;
  18384. }
  18385. /**
  18386. * Generate a mapping of standard vendor prefixes using the defined style property and event name.
  18387. *
  18388. * @param {string} styleProp
  18389. * @param {string} eventName
  18390. * @returns {object}
  18391. */
  18392. function makePrefixMap(styleProp, eventName) {
  18393. var prefixes = {};
  18394. prefixes[styleProp.toLowerCase()] = eventName.toLowerCase();
  18395. prefixes['Webkit' + styleProp] = 'webkit' + eventName;
  18396. prefixes['Moz' + styleProp] = 'moz' + eventName;
  18397. return prefixes;
  18398. }
  18399. /**
  18400. * A list of event names to a configurable list of vendor prefixes.
  18401. */
  18402. var vendorPrefixes = {
  18403. animationend: makePrefixMap('Animation', 'AnimationEnd'),
  18404. animationiteration: makePrefixMap('Animation', 'AnimationIteration'),
  18405. animationstart: makePrefixMap('Animation', 'AnimationStart'),
  18406. transitionend: makePrefixMap('Transition', 'TransitionEnd')
  18407. };
  18408. /**
  18409. * Event names that have already been detected and prefixed (if applicable).
  18410. */
  18411. var prefixedEventNames = {};
  18412. /**
  18413. * Element to check for prefixes on.
  18414. */
  18415. var style = {};
  18416. /**
  18417. * Bootstrap if a DOM exists.
  18418. */
  18419. if (canUseDOM) {
  18420. style = document.createElement('div').style;
  18421. // On some platforms, in particular some releases of Android 4.x,
  18422. // the un-prefixed "animation" and "transition" properties are defined on the
  18423. // style object but the events that fire will still be prefixed, so we need
  18424. // to check if the un-prefixed events are usable, and if not remove them from the map.
  18425. if (!('AnimationEvent' in window)) {
  18426. delete vendorPrefixes.animationend.animation;
  18427. delete vendorPrefixes.animationiteration.animation;
  18428. delete vendorPrefixes.animationstart.animation;
  18429. }
  18430. // Same as above
  18431. if (!('TransitionEvent' in window)) {
  18432. delete vendorPrefixes.transitionend.transition;
  18433. }
  18434. }
  18435. /**
  18436. * Attempts to determine the correct vendor prefixed event name.
  18437. *
  18438. * @param {string} eventName
  18439. * @returns {string}
  18440. */
  18441. function getVendorPrefixedEventName(eventName) {
  18442. if (prefixedEventNames[eventName]) {
  18443. return prefixedEventNames[eventName];
  18444. } else if (!vendorPrefixes[eventName]) {
  18445. return eventName;
  18446. }
  18447. var prefixMap = vendorPrefixes[eventName];
  18448. for (var styleProp in prefixMap) {
  18449. if (prefixMap.hasOwnProperty(styleProp) && styleProp in style) {
  18450. return prefixedEventNames[eventName] = prefixMap[styleProp];
  18451. }
  18452. }
  18453. return eventName;
  18454. }
  18455. /**
  18456. * To identify top level events in ReactDOM, we use constants defined by this
  18457. * module. This is the only module that uses the unsafe* methods to express
  18458. * that the constants actually correspond to the browser event names. This lets
  18459. * us save some bundle size by avoiding a top level type -> event name map.
  18460. * The rest of ReactDOM code should import top level types from this file.
  18461. */
  18462. var TOP_ABORT = unsafeCastStringToDOMTopLevelType('abort');
  18463. var TOP_ANIMATION_END = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('animationend'));
  18464. var TOP_ANIMATION_ITERATION = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('animationiteration'));
  18465. var TOP_ANIMATION_START = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('animationstart'));
  18466. var TOP_BLUR = unsafeCastStringToDOMTopLevelType('blur');
  18467. var TOP_CAN_PLAY = unsafeCastStringToDOMTopLevelType('canplay');
  18468. var TOP_CAN_PLAY_THROUGH = unsafeCastStringToDOMTopLevelType('canplaythrough');
  18469. var TOP_CANCEL = unsafeCastStringToDOMTopLevelType('cancel');
  18470. var TOP_CHANGE = unsafeCastStringToDOMTopLevelType('change');
  18471. var TOP_CLICK = unsafeCastStringToDOMTopLevelType('click');
  18472. var TOP_CLOSE = unsafeCastStringToDOMTopLevelType('close');
  18473. var TOP_COMPOSITION_END = unsafeCastStringToDOMTopLevelType('compositionend');
  18474. var TOP_COMPOSITION_START = unsafeCastStringToDOMTopLevelType('compositionstart');
  18475. var TOP_COMPOSITION_UPDATE = unsafeCastStringToDOMTopLevelType('compositionupdate');
  18476. var TOP_CONTEXT_MENU = unsafeCastStringToDOMTopLevelType('contextmenu');
  18477. var TOP_COPY = unsafeCastStringToDOMTopLevelType('copy');
  18478. var TOP_CUT = unsafeCastStringToDOMTopLevelType('cut');
  18479. var TOP_DOUBLE_CLICK = unsafeCastStringToDOMTopLevelType('dblclick');
  18480. var TOP_AUX_CLICK = unsafeCastStringToDOMTopLevelType('auxclick');
  18481. var TOP_DRAG = unsafeCastStringToDOMTopLevelType('drag');
  18482. var TOP_DRAG_END = unsafeCastStringToDOMTopLevelType('dragend');
  18483. var TOP_DRAG_ENTER = unsafeCastStringToDOMTopLevelType('dragenter');
  18484. var TOP_DRAG_EXIT = unsafeCastStringToDOMTopLevelType('dragexit');
  18485. var TOP_DRAG_LEAVE = unsafeCastStringToDOMTopLevelType('dragleave');
  18486. var TOP_DRAG_OVER = unsafeCastStringToDOMTopLevelType('dragover');
  18487. var TOP_DRAG_START = unsafeCastStringToDOMTopLevelType('dragstart');
  18488. var TOP_DROP = unsafeCastStringToDOMTopLevelType('drop');
  18489. var TOP_DURATION_CHANGE = unsafeCastStringToDOMTopLevelType('durationchange');
  18490. var TOP_EMPTIED = unsafeCastStringToDOMTopLevelType('emptied');
  18491. var TOP_ENCRYPTED = unsafeCastStringToDOMTopLevelType('encrypted');
  18492. var TOP_ENDED = unsafeCastStringToDOMTopLevelType('ended');
  18493. var TOP_ERROR = unsafeCastStringToDOMTopLevelType('error');
  18494. var TOP_FOCUS = unsafeCastStringToDOMTopLevelType('focus');
  18495. var TOP_GOT_POINTER_CAPTURE = unsafeCastStringToDOMTopLevelType('gotpointercapture');
  18496. var TOP_INPUT = unsafeCastStringToDOMTopLevelType('input');
  18497. var TOP_INVALID = unsafeCastStringToDOMTopLevelType('invalid');
  18498. var TOP_KEY_DOWN = unsafeCastStringToDOMTopLevelType('keydown');
  18499. var TOP_KEY_PRESS = unsafeCastStringToDOMTopLevelType('keypress');
  18500. var TOP_KEY_UP = unsafeCastStringToDOMTopLevelType('keyup');
  18501. var TOP_LOAD = unsafeCastStringToDOMTopLevelType('load');
  18502. var TOP_LOAD_START = unsafeCastStringToDOMTopLevelType('loadstart');
  18503. var TOP_LOADED_DATA = unsafeCastStringToDOMTopLevelType('loadeddata');
  18504. var TOP_LOADED_METADATA = unsafeCastStringToDOMTopLevelType('loadedmetadata');
  18505. var TOP_LOST_POINTER_CAPTURE = unsafeCastStringToDOMTopLevelType('lostpointercapture');
  18506. var TOP_MOUSE_DOWN = unsafeCastStringToDOMTopLevelType('mousedown');
  18507. var TOP_MOUSE_MOVE = unsafeCastStringToDOMTopLevelType('mousemove');
  18508. var TOP_MOUSE_OUT = unsafeCastStringToDOMTopLevelType('mouseout');
  18509. var TOP_MOUSE_OVER = unsafeCastStringToDOMTopLevelType('mouseover');
  18510. var TOP_MOUSE_UP = unsafeCastStringToDOMTopLevelType('mouseup');
  18511. var TOP_PASTE = unsafeCastStringToDOMTopLevelType('paste');
  18512. var TOP_PAUSE = unsafeCastStringToDOMTopLevelType('pause');
  18513. var TOP_PLAY = unsafeCastStringToDOMTopLevelType('play');
  18514. var TOP_PLAYING = unsafeCastStringToDOMTopLevelType('playing');
  18515. var TOP_POINTER_CANCEL = unsafeCastStringToDOMTopLevelType('pointercancel');
  18516. var TOP_POINTER_DOWN = unsafeCastStringToDOMTopLevelType('pointerdown');
  18517. var TOP_POINTER_MOVE = unsafeCastStringToDOMTopLevelType('pointermove');
  18518. var TOP_POINTER_OUT = unsafeCastStringToDOMTopLevelType('pointerout');
  18519. var TOP_POINTER_OVER = unsafeCastStringToDOMTopLevelType('pointerover');
  18520. var TOP_POINTER_UP = unsafeCastStringToDOMTopLevelType('pointerup');
  18521. var TOP_PROGRESS = unsafeCastStringToDOMTopLevelType('progress');
  18522. var TOP_RATE_CHANGE = unsafeCastStringToDOMTopLevelType('ratechange');
  18523. var TOP_RESET = unsafeCastStringToDOMTopLevelType('reset');
  18524. var TOP_SCROLL = unsafeCastStringToDOMTopLevelType('scroll');
  18525. var TOP_SEEKED = unsafeCastStringToDOMTopLevelType('seeked');
  18526. var TOP_SEEKING = unsafeCastStringToDOMTopLevelType('seeking');
  18527. var TOP_SELECTION_CHANGE = unsafeCastStringToDOMTopLevelType('selectionchange');
  18528. var TOP_STALLED = unsafeCastStringToDOMTopLevelType('stalled');
  18529. var TOP_SUBMIT = unsafeCastStringToDOMTopLevelType('submit');
  18530. var TOP_SUSPEND = unsafeCastStringToDOMTopLevelType('suspend');
  18531. var TOP_TEXT_INPUT = unsafeCastStringToDOMTopLevelType('textInput');
  18532. var TOP_TIME_UPDATE = unsafeCastStringToDOMTopLevelType('timeupdate');
  18533. var TOP_TOGGLE = unsafeCastStringToDOMTopLevelType('toggle');
  18534. var TOP_TOUCH_CANCEL = unsafeCastStringToDOMTopLevelType('touchcancel');
  18535. var TOP_TOUCH_END = unsafeCastStringToDOMTopLevelType('touchend');
  18536. var TOP_TOUCH_MOVE = unsafeCastStringToDOMTopLevelType('touchmove');
  18537. var TOP_TOUCH_START = unsafeCastStringToDOMTopLevelType('touchstart');
  18538. var TOP_TRANSITION_END = unsafeCastStringToDOMTopLevelType(getVendorPrefixedEventName('transitionend'));
  18539. var TOP_VOLUME_CHANGE = unsafeCastStringToDOMTopLevelType('volumechange');
  18540. var TOP_WAITING = unsafeCastStringToDOMTopLevelType('waiting');
  18541. var TOP_WHEEL = unsafeCastStringToDOMTopLevelType('wheel');
  18542. // List of events that need to be individually attached to media elements.
  18543. // Note that events in this list will *not* be listened to at the top level
  18544. // unless they're explicitly whitelisted in `ReactBrowserEventEmitter.listenTo`.
  18545. var mediaEventTypes = [TOP_ABORT, TOP_CAN_PLAY, TOP_CAN_PLAY_THROUGH, TOP_DURATION_CHANGE, TOP_EMPTIED, TOP_ENCRYPTED, TOP_ENDED, TOP_ERROR, TOP_LOADED_DATA, TOP_LOADED_METADATA, TOP_LOAD_START, TOP_PAUSE, TOP_PLAY, TOP_PLAYING, TOP_PROGRESS, TOP_RATE_CHANGE, TOP_SEEKED, TOP_SEEKING, TOP_STALLED, TOP_SUSPEND, TOP_TIME_UPDATE, TOP_VOLUME_CHANGE, TOP_WAITING];
  18546. function getRawEventName(topLevelType) {
  18547. return unsafeCastDOMTopLevelTypeToString(topLevelType);
  18548. }
  18549. /**
  18550. * These variables store information about text content of a target node,
  18551. * allowing comparison of content before and after a given event.
  18552. *
  18553. * Identify the node where selection currently begins, then observe
  18554. * both its text content and its current position in the DOM. Since the
  18555. * browser may natively replace the target node during composition, we can
  18556. * use its position to find its replacement.
  18557. *
  18558. *
  18559. */
  18560. var root = null;
  18561. var startText = null;
  18562. var fallbackText = null;
  18563. function initialize(nativeEventTarget) {
  18564. root = nativeEventTarget;
  18565. startText = getText();
  18566. return true;
  18567. }
  18568. function reset() {
  18569. root = null;
  18570. startText = null;
  18571. fallbackText = null;
  18572. }
  18573. function getData() {
  18574. if (fallbackText) {
  18575. return fallbackText;
  18576. }
  18577. var start = void 0;
  18578. var startValue = startText;
  18579. var startLength = startValue.length;
  18580. var end = void 0;
  18581. var endValue = getText();
  18582. var endLength = endValue.length;
  18583. for (start = 0; start < startLength; start++) {
  18584. if (startValue[start] !== endValue[start]) {
  18585. break;
  18586. }
  18587. }
  18588. var minEnd = startLength - start;
  18589. for (end = 1; end <= minEnd; end++) {
  18590. if (startValue[startLength - end] !== endValue[endLength - end]) {
  18591. break;
  18592. }
  18593. }
  18594. var sliceTail = end > 1 ? 1 - end : undefined;
  18595. fallbackText = endValue.slice(start, sliceTail);
  18596. return fallbackText;
  18597. }
  18598. function getText() {
  18599. if ('value' in root) {
  18600. return root.value;
  18601. }
  18602. return root.textContent;
  18603. }
  18604. /* eslint valid-typeof: 0 */
  18605. var EVENT_POOL_SIZE = 10;
  18606. /**
  18607. * @interface Event
  18608. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  18609. */
  18610. var EventInterface = {
  18611. type: null,
  18612. target: null,
  18613. // currentTarget is set when dispatching; no use in copying it here
  18614. currentTarget: function () {
  18615. return null;
  18616. },
  18617. eventPhase: null,
  18618. bubbles: null,
  18619. cancelable: null,
  18620. timeStamp: function (event) {
  18621. return event.timeStamp || Date.now();
  18622. },
  18623. defaultPrevented: null,
  18624. isTrusted: null
  18625. };
  18626. function functionThatReturnsTrue() {
  18627. return true;
  18628. }
  18629. function functionThatReturnsFalse() {
  18630. return false;
  18631. }
  18632. /**
  18633. * Synthetic events are dispatched by event plugins, typically in response to a
  18634. * top-level event delegation handler.
  18635. *
  18636. * These systems should generally use pooling to reduce the frequency of garbage
  18637. * collection. The system should check `isPersistent` to determine whether the
  18638. * event should be released into the pool after being dispatched. Users that
  18639. * need a persisted event should invoke `persist`.
  18640. *
  18641. * Synthetic events (and subclasses) implement the DOM Level 3 Events API by
  18642. * normalizing browser quirks. Subclasses do not necessarily have to implement a
  18643. * DOM interface; custom application-specific events can also subclass this.
  18644. *
  18645. * @param {object} dispatchConfig Configuration used to dispatch this event.
  18646. * @param {*} targetInst Marker identifying the event target.
  18647. * @param {object} nativeEvent Native browser event.
  18648. * @param {DOMEventTarget} nativeEventTarget Target node.
  18649. */
  18650. function SyntheticEvent(dispatchConfig, targetInst, nativeEvent, nativeEventTarget) {
  18651. {
  18652. // these have a getter/setter for warnings
  18653. delete this.nativeEvent;
  18654. delete this.preventDefault;
  18655. delete this.stopPropagation;
  18656. delete this.isDefaultPrevented;
  18657. delete this.isPropagationStopped;
  18658. }
  18659. this.dispatchConfig = dispatchConfig;
  18660. this._targetInst = targetInst;
  18661. this.nativeEvent = nativeEvent;
  18662. var Interface = this.constructor.Interface;
  18663. for (var propName in Interface) {
  18664. if (!Interface.hasOwnProperty(propName)) {
  18665. continue;
  18666. }
  18667. {
  18668. delete this[propName]; // this has a getter/setter for warnings
  18669. }
  18670. var normalize = Interface[propName];
  18671. if (normalize) {
  18672. this[propName] = normalize(nativeEvent);
  18673. } else {
  18674. if (propName === 'target') {
  18675. this.target = nativeEventTarget;
  18676. } else {
  18677. this[propName] = nativeEvent[propName];
  18678. }
  18679. }
  18680. }
  18681. var defaultPrevented = nativeEvent.defaultPrevented != null ? nativeEvent.defaultPrevented : nativeEvent.returnValue === false;
  18682. if (defaultPrevented) {
  18683. this.isDefaultPrevented = functionThatReturnsTrue;
  18684. } else {
  18685. this.isDefaultPrevented = functionThatReturnsFalse;
  18686. }
  18687. this.isPropagationStopped = functionThatReturnsFalse;
  18688. return this;
  18689. }
  18690. _assign(SyntheticEvent.prototype, {
  18691. preventDefault: function () {
  18692. this.defaultPrevented = true;
  18693. var event = this.nativeEvent;
  18694. if (!event) {
  18695. return;
  18696. }
  18697. if (event.preventDefault) {
  18698. event.preventDefault();
  18699. } else if (typeof event.returnValue !== 'unknown') {
  18700. event.returnValue = false;
  18701. }
  18702. this.isDefaultPrevented = functionThatReturnsTrue;
  18703. },
  18704. stopPropagation: function () {
  18705. var event = this.nativeEvent;
  18706. if (!event) {
  18707. return;
  18708. }
  18709. if (event.stopPropagation) {
  18710. event.stopPropagation();
  18711. } else if (typeof event.cancelBubble !== 'unknown') {
  18712. // The ChangeEventPlugin registers a "propertychange" event for
  18713. // IE. This event does not support bubbling or cancelling, and
  18714. // any references to cancelBubble throw "Member not found". A
  18715. // typeof check of "unknown" circumvents this issue (and is also
  18716. // IE specific).
  18717. event.cancelBubble = true;
  18718. }
  18719. this.isPropagationStopped = functionThatReturnsTrue;
  18720. },
  18721. /**
  18722. * We release all dispatched `SyntheticEvent`s after each event loop, adding
  18723. * them back into the pool. This allows a way to hold onto a reference that
  18724. * won't be added back into the pool.
  18725. */
  18726. persist: function () {
  18727. this.isPersistent = functionThatReturnsTrue;
  18728. },
  18729. /**
  18730. * Checks if this event should be released back into the pool.
  18731. *
  18732. * @return {boolean} True if this should not be released, false otherwise.
  18733. */
  18734. isPersistent: functionThatReturnsFalse,
  18735. /**
  18736. * `PooledClass` looks for `destructor` on each instance it releases.
  18737. */
  18738. destructor: function () {
  18739. var Interface = this.constructor.Interface;
  18740. for (var propName in Interface) {
  18741. {
  18742. Object.defineProperty(this, propName, getPooledWarningPropertyDefinition(propName, Interface[propName]));
  18743. }
  18744. }
  18745. this.dispatchConfig = null;
  18746. this._targetInst = null;
  18747. this.nativeEvent = null;
  18748. this.isDefaultPrevented = functionThatReturnsFalse;
  18749. this.isPropagationStopped = functionThatReturnsFalse;
  18750. this._dispatchListeners = null;
  18751. this._dispatchInstances = null;
  18752. {
  18753. Object.defineProperty(this, 'nativeEvent', getPooledWarningPropertyDefinition('nativeEvent', null));
  18754. Object.defineProperty(this, 'isDefaultPrevented', getPooledWarningPropertyDefinition('isDefaultPrevented', functionThatReturnsFalse));
  18755. Object.defineProperty(this, 'isPropagationStopped', getPooledWarningPropertyDefinition('isPropagationStopped', functionThatReturnsFalse));
  18756. Object.defineProperty(this, 'preventDefault', getPooledWarningPropertyDefinition('preventDefault', function () {}));
  18757. Object.defineProperty(this, 'stopPropagation', getPooledWarningPropertyDefinition('stopPropagation', function () {}));
  18758. }
  18759. }
  18760. });
  18761. SyntheticEvent.Interface = EventInterface;
  18762. /**
  18763. * Helper to reduce boilerplate when creating subclasses.
  18764. */
  18765. SyntheticEvent.extend = function (Interface) {
  18766. var Super = this;
  18767. var E = function () {};
  18768. E.prototype = Super.prototype;
  18769. var prototype = new E();
  18770. function Class() {
  18771. return Super.apply(this, arguments);
  18772. }
  18773. _assign(prototype, Class.prototype);
  18774. Class.prototype = prototype;
  18775. Class.prototype.constructor = Class;
  18776. Class.Interface = _assign({}, Super.Interface, Interface);
  18777. Class.extend = Super.extend;
  18778. addEventPoolingTo(Class);
  18779. return Class;
  18780. };
  18781. addEventPoolingTo(SyntheticEvent);
  18782. /**
  18783. * Helper to nullify syntheticEvent instance properties when destructing
  18784. *
  18785. * @param {String} propName
  18786. * @param {?object} getVal
  18787. * @return {object} defineProperty object
  18788. */
  18789. function getPooledWarningPropertyDefinition(propName, getVal) {
  18790. var isFunction = typeof getVal === 'function';
  18791. return {
  18792. configurable: true,
  18793. set: set,
  18794. get: get
  18795. };
  18796. function set(val) {
  18797. var action = isFunction ? 'setting the method' : 'setting the property';
  18798. warn(action, 'This is effectively a no-op');
  18799. return val;
  18800. }
  18801. function get() {
  18802. var action = isFunction ? 'accessing the method' : 'accessing the property';
  18803. var result = isFunction ? 'This is a no-op function' : 'This is set to null';
  18804. warn(action, result);
  18805. return getVal;
  18806. }
  18807. function warn(action, result) {
  18808. var warningCondition = false;
  18809. !warningCondition ? warningWithoutStack$1(false, "This synthetic event is reused for performance reasons. If you're seeing this, " + "you're %s `%s` on a released/nullified synthetic event. %s. " + 'If you must keep the original synthetic event around, use event.persist(). ' + 'See https://fb.me/react-event-pooling for more information.', action, propName, result) : void 0;
  18810. }
  18811. }
  18812. function getPooledEvent(dispatchConfig, targetInst, nativeEvent, nativeInst) {
  18813. var EventConstructor = this;
  18814. if (EventConstructor.eventPool.length) {
  18815. var instance = EventConstructor.eventPool.pop();
  18816. EventConstructor.call(instance, dispatchConfig, targetInst, nativeEvent, nativeInst);
  18817. return instance;
  18818. }
  18819. return new EventConstructor(dispatchConfig, targetInst, nativeEvent, nativeInst);
  18820. }
  18821. function releasePooledEvent(event) {
  18822. var EventConstructor = this;
  18823. (function () {
  18824. if (!(event instanceof EventConstructor)) {
  18825. {
  18826. throw ReactError(Error('Trying to release an event instance into a pool of a different type.'));
  18827. }
  18828. }
  18829. })();
  18830. event.destructor();
  18831. if (EventConstructor.eventPool.length < EVENT_POOL_SIZE) {
  18832. EventConstructor.eventPool.push(event);
  18833. }
  18834. }
  18835. function addEventPoolingTo(EventConstructor) {
  18836. EventConstructor.eventPool = [];
  18837. EventConstructor.getPooled = getPooledEvent;
  18838. EventConstructor.release = releasePooledEvent;
  18839. }
  18840. /**
  18841. * @interface Event
  18842. * @see http://www.w3.org/TR/DOM-Level-3-Events/#events-compositionevents
  18843. */
  18844. var SyntheticCompositionEvent = SyntheticEvent.extend({
  18845. data: null
  18846. });
  18847. /**
  18848. * @interface Event
  18849. * @see http://www.w3.org/TR/2013/WD-DOM-Level-3-Events-20131105
  18850. * /#events-inputevents
  18851. */
  18852. var SyntheticInputEvent = SyntheticEvent.extend({
  18853. data: null
  18854. });
  18855. var END_KEYCODES = [9, 13, 27, 32]; // Tab, Return, Esc, Space
  18856. var START_KEYCODE = 229;
  18857. var canUseCompositionEvent = canUseDOM && 'CompositionEvent' in window;
  18858. var documentMode = null;
  18859. if (canUseDOM && 'documentMode' in document) {
  18860. documentMode = document.documentMode;
  18861. }
  18862. // Webkit offers a very useful `textInput` event that can be used to
  18863. // directly represent `beforeInput`. The IE `textinput` event is not as
  18864. // useful, so we don't use it.
  18865. var canUseTextInputEvent = canUseDOM && 'TextEvent' in window && !documentMode;
  18866. // In IE9+, we have access to composition events, but the data supplied
  18867. // by the native compositionend event may be incorrect. Japanese ideographic
  18868. // spaces, for instance (\u3000) are not recorded correctly.
  18869. var useFallbackCompositionData = canUseDOM && (!canUseCompositionEvent || documentMode && documentMode > 8 && documentMode <= 11);
  18870. var SPACEBAR_CODE = 32;
  18871. var SPACEBAR_CHAR = String.fromCharCode(SPACEBAR_CODE);
  18872. // Events and their corresponding property names.
  18873. var eventTypes = {
  18874. beforeInput: {
  18875. phasedRegistrationNames: {
  18876. bubbled: 'onBeforeInput',
  18877. captured: 'onBeforeInputCapture'
  18878. },
  18879. dependencies: [TOP_COMPOSITION_END, TOP_KEY_PRESS, TOP_TEXT_INPUT, TOP_PASTE]
  18880. },
  18881. compositionEnd: {
  18882. phasedRegistrationNames: {
  18883. bubbled: 'onCompositionEnd',
  18884. captured: 'onCompositionEndCapture'
  18885. },
  18886. dependencies: [TOP_BLUR, TOP_COMPOSITION_END, TOP_KEY_DOWN, TOP_KEY_PRESS, TOP_KEY_UP, TOP_MOUSE_DOWN]
  18887. },
  18888. compositionStart: {
  18889. phasedRegistrationNames: {
  18890. bubbled: 'onCompositionStart',
  18891. captured: 'onCompositionStartCapture'
  18892. },
  18893. dependencies: [TOP_BLUR, TOP_COMPOSITION_START, TOP_KEY_DOWN, TOP_KEY_PRESS, TOP_KEY_UP, TOP_MOUSE_DOWN]
  18894. },
  18895. compositionUpdate: {
  18896. phasedRegistrationNames: {
  18897. bubbled: 'onCompositionUpdate',
  18898. captured: 'onCompositionUpdateCapture'
  18899. },
  18900. dependencies: [TOP_BLUR, TOP_COMPOSITION_UPDATE, TOP_KEY_DOWN, TOP_KEY_PRESS, TOP_KEY_UP, TOP_MOUSE_DOWN]
  18901. }
  18902. };
  18903. // Track whether we've ever handled a keypress on the space key.
  18904. var hasSpaceKeypress = false;
  18905. /**
  18906. * Return whether a native keypress event is assumed to be a command.
  18907. * This is required because Firefox fires `keypress` events for key commands
  18908. * (cut, copy, select-all, etc.) even though no character is inserted.
  18909. */
  18910. function isKeypressCommand(nativeEvent) {
  18911. return (nativeEvent.ctrlKey || nativeEvent.altKey || nativeEvent.metaKey) &&
  18912. // ctrlKey && altKey is equivalent to AltGr, and is not a command.
  18913. !(nativeEvent.ctrlKey && nativeEvent.altKey);
  18914. }
  18915. /**
  18916. * Translate native top level events into event types.
  18917. *
  18918. * @param {string} topLevelType
  18919. * @return {object}
  18920. */
  18921. function getCompositionEventType(topLevelType) {
  18922. switch (topLevelType) {
  18923. case TOP_COMPOSITION_START:
  18924. return eventTypes.compositionStart;
  18925. case TOP_COMPOSITION_END:
  18926. return eventTypes.compositionEnd;
  18927. case TOP_COMPOSITION_UPDATE:
  18928. return eventTypes.compositionUpdate;
  18929. }
  18930. }
  18931. /**
  18932. * Does our fallback best-guess model think this event signifies that
  18933. * composition has begun?
  18934. *
  18935. * @param {string} topLevelType
  18936. * @param {object} nativeEvent
  18937. * @return {boolean}
  18938. */
  18939. function isFallbackCompositionStart(topLevelType, nativeEvent) {
  18940. return topLevelType === TOP_KEY_DOWN && nativeEvent.keyCode === START_KEYCODE;
  18941. }
  18942. /**
  18943. * Does our fallback mode think that this event is the end of composition?
  18944. *
  18945. * @param {string} topLevelType
  18946. * @param {object} nativeEvent
  18947. * @return {boolean}
  18948. */
  18949. function isFallbackCompositionEnd(topLevelType, nativeEvent) {
  18950. switch (topLevelType) {
  18951. case TOP_KEY_UP:
  18952. // Command keys insert or clear IME input.
  18953. return END_KEYCODES.indexOf(nativeEvent.keyCode) !== -1;
  18954. case TOP_KEY_DOWN:
  18955. // Expect IME keyCode on each keydown. If we get any other
  18956. // code we must have exited earlier.
  18957. return nativeEvent.keyCode !== START_KEYCODE;
  18958. case TOP_KEY_PRESS:
  18959. case TOP_MOUSE_DOWN:
  18960. case TOP_BLUR:
  18961. // Events are not possible without cancelling IME.
  18962. return true;
  18963. default:
  18964. return false;
  18965. }
  18966. }
  18967. /**
  18968. * Google Input Tools provides composition data via a CustomEvent,
  18969. * with the `data` property populated in the `detail` object. If this
  18970. * is available on the event object, use it. If not, this is a plain
  18971. * composition event and we have nothing special to extract.
  18972. *
  18973. * @param {object} nativeEvent
  18974. * @return {?string}
  18975. */
  18976. function getDataFromCustomEvent(nativeEvent) {
  18977. var detail = nativeEvent.detail;
  18978. if (typeof detail === 'object' && 'data' in detail) {
  18979. return detail.data;
  18980. }
  18981. return null;
  18982. }
  18983. /**
  18984. * Check if a composition event was triggered by Korean IME.
  18985. * Our fallback mode does not work well with IE's Korean IME,
  18986. * so just use native composition events when Korean IME is used.
  18987. * Although CompositionEvent.locale property is deprecated,
  18988. * it is available in IE, where our fallback mode is enabled.
  18989. *
  18990. * @param {object} nativeEvent
  18991. * @return {boolean}
  18992. */
  18993. function isUsingKoreanIME(nativeEvent) {
  18994. return nativeEvent.locale === 'ko';
  18995. }
  18996. // Track the current IME composition status, if any.
  18997. var isComposing = false;
  18998. /**
  18999. * @return {?object} A SyntheticCompositionEvent.
  19000. */
  19001. function extractCompositionEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  19002. var eventType = void 0;
  19003. var fallbackData = void 0;
  19004. if (canUseCompositionEvent) {
  19005. eventType = getCompositionEventType(topLevelType);
  19006. } else if (!isComposing) {
  19007. if (isFallbackCompositionStart(topLevelType, nativeEvent)) {
  19008. eventType = eventTypes.compositionStart;
  19009. }
  19010. } else if (isFallbackCompositionEnd(topLevelType, nativeEvent)) {
  19011. eventType = eventTypes.compositionEnd;
  19012. }
  19013. if (!eventType) {
  19014. return null;
  19015. }
  19016. if (useFallbackCompositionData && !isUsingKoreanIME(nativeEvent)) {
  19017. // The current composition is stored statically and must not be
  19018. // overwritten while composition continues.
  19019. if (!isComposing && eventType === eventTypes.compositionStart) {
  19020. isComposing = initialize(nativeEventTarget);
  19021. } else if (eventType === eventTypes.compositionEnd) {
  19022. if (isComposing) {
  19023. fallbackData = getData();
  19024. }
  19025. }
  19026. }
  19027. var event = SyntheticCompositionEvent.getPooled(eventType, targetInst, nativeEvent, nativeEventTarget);
  19028. if (fallbackData) {
  19029. // Inject data generated from fallback path into the synthetic event.
  19030. // This matches the property of native CompositionEventInterface.
  19031. event.data = fallbackData;
  19032. } else {
  19033. var customData = getDataFromCustomEvent(nativeEvent);
  19034. if (customData !== null) {
  19035. event.data = customData;
  19036. }
  19037. }
  19038. accumulateTwoPhaseDispatches(event);
  19039. return event;
  19040. }
  19041. /**
  19042. * @param {TopLevelType} topLevelType Number from `TopLevelType`.
  19043. * @param {object} nativeEvent Native browser event.
  19044. * @return {?string} The string corresponding to this `beforeInput` event.
  19045. */
  19046. function getNativeBeforeInputChars(topLevelType, nativeEvent) {
  19047. switch (topLevelType) {
  19048. case TOP_COMPOSITION_END:
  19049. return getDataFromCustomEvent(nativeEvent);
  19050. case TOP_KEY_PRESS:
  19051. /**
  19052. * If native `textInput` events are available, our goal is to make
  19053. * use of them. However, there is a special case: the spacebar key.
  19054. * In Webkit, preventing default on a spacebar `textInput` event
  19055. * cancels character insertion, but it *also* causes the browser
  19056. * to fall back to its default spacebar behavior of scrolling the
  19057. * page.
  19058. *
  19059. * Tracking at:
  19060. * https://code.google.com/p/chromium/issues/detail?id=355103
  19061. *
  19062. * To avoid this issue, use the keypress event as if no `textInput`
  19063. * event is available.
  19064. */
  19065. var which = nativeEvent.which;
  19066. if (which !== SPACEBAR_CODE) {
  19067. return null;
  19068. }
  19069. hasSpaceKeypress = true;
  19070. return SPACEBAR_CHAR;
  19071. case TOP_TEXT_INPUT:
  19072. // Record the characters to be added to the DOM.
  19073. var chars = nativeEvent.data;
  19074. // If it's a spacebar character, assume that we have already handled
  19075. // it at the keypress level and bail immediately. Android Chrome
  19076. // doesn't give us keycodes, so we need to ignore it.
  19077. if (chars === SPACEBAR_CHAR && hasSpaceKeypress) {
  19078. return null;
  19079. }
  19080. return chars;
  19081. default:
  19082. // For other native event types, do nothing.
  19083. return null;
  19084. }
  19085. }
  19086. /**
  19087. * For browsers that do not provide the `textInput` event, extract the
  19088. * appropriate string to use for SyntheticInputEvent.
  19089. *
  19090. * @param {number} topLevelType Number from `TopLevelEventTypes`.
  19091. * @param {object} nativeEvent Native browser event.
  19092. * @return {?string} The fallback string for this `beforeInput` event.
  19093. */
  19094. function getFallbackBeforeInputChars(topLevelType, nativeEvent) {
  19095. // If we are currently composing (IME) and using a fallback to do so,
  19096. // try to extract the composed characters from the fallback object.
  19097. // If composition event is available, we extract a string only at
  19098. // compositionevent, otherwise extract it at fallback events.
  19099. if (isComposing) {
  19100. if (topLevelType === TOP_COMPOSITION_END || !canUseCompositionEvent && isFallbackCompositionEnd(topLevelType, nativeEvent)) {
  19101. var chars = getData();
  19102. reset();
  19103. isComposing = false;
  19104. return chars;
  19105. }
  19106. return null;
  19107. }
  19108. switch (topLevelType) {
  19109. case TOP_PASTE:
  19110. // If a paste event occurs after a keypress, throw out the input
  19111. // chars. Paste events should not lead to BeforeInput events.
  19112. return null;
  19113. case TOP_KEY_PRESS:
  19114. /**
  19115. * As of v27, Firefox may fire keypress events even when no character
  19116. * will be inserted. A few possibilities:
  19117. *
  19118. * - `which` is `0`. Arrow keys, Esc key, etc.
  19119. *
  19120. * - `which` is the pressed key code, but no char is available.
  19121. * Ex: 'AltGr + d` in Polish. There is no modified character for
  19122. * this key combination and no character is inserted into the
  19123. * document, but FF fires the keypress for char code `100` anyway.
  19124. * No `input` event will occur.
  19125. *
  19126. * - `which` is the pressed key code, but a command combination is
  19127. * being used. Ex: `Cmd+C`. No character is inserted, and no
  19128. * `input` event will occur.
  19129. */
  19130. if (!isKeypressCommand(nativeEvent)) {
  19131. // IE fires the `keypress` event when a user types an emoji via
  19132. // Touch keyboard of Windows. In such a case, the `char` property
  19133. // holds an emoji character like `\uD83D\uDE0A`. Because its length
  19134. // is 2, the property `which` does not represent an emoji correctly.
  19135. // In such a case, we directly return the `char` property instead of
  19136. // using `which`.
  19137. if (nativeEvent.char && nativeEvent.char.length > 1) {
  19138. return nativeEvent.char;
  19139. } else if (nativeEvent.which) {
  19140. return String.fromCharCode(nativeEvent.which);
  19141. }
  19142. }
  19143. return null;
  19144. case TOP_COMPOSITION_END:
  19145. return useFallbackCompositionData && !isUsingKoreanIME(nativeEvent) ? null : nativeEvent.data;
  19146. default:
  19147. return null;
  19148. }
  19149. }
  19150. /**
  19151. * Extract a SyntheticInputEvent for `beforeInput`, based on either native
  19152. * `textInput` or fallback behavior.
  19153. *
  19154. * @return {?object} A SyntheticInputEvent.
  19155. */
  19156. function extractBeforeInputEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  19157. var chars = void 0;
  19158. if (canUseTextInputEvent) {
  19159. chars = getNativeBeforeInputChars(topLevelType, nativeEvent);
  19160. } else {
  19161. chars = getFallbackBeforeInputChars(topLevelType, nativeEvent);
  19162. }
  19163. // If no characters are being inserted, no BeforeInput event should
  19164. // be fired.
  19165. if (!chars) {
  19166. return null;
  19167. }
  19168. var event = SyntheticInputEvent.getPooled(eventTypes.beforeInput, targetInst, nativeEvent, nativeEventTarget);
  19169. event.data = chars;
  19170. accumulateTwoPhaseDispatches(event);
  19171. return event;
  19172. }
  19173. /**
  19174. * Create an `onBeforeInput` event to match
  19175. * http://www.w3.org/TR/2013/WD-DOM-Level-3-Events-20131105/#events-inputevents.
  19176. *
  19177. * This event plugin is based on the native `textInput` event
  19178. * available in Chrome, Safari, Opera, and IE. This event fires after
  19179. * `onKeyPress` and `onCompositionEnd`, but before `onInput`.
  19180. *
  19181. * `beforeInput` is spec'd but not implemented in any browsers, and
  19182. * the `input` event does not provide any useful information about what has
  19183. * actually been added, contrary to the spec. Thus, `textInput` is the best
  19184. * available event to identify the characters that have actually been inserted
  19185. * into the target node.
  19186. *
  19187. * This plugin is also responsible for emitting `composition` events, thus
  19188. * allowing us to share composition fallback code for both `beforeInput` and
  19189. * `composition` event types.
  19190. */
  19191. var BeforeInputEventPlugin = {
  19192. eventTypes: eventTypes,
  19193. extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  19194. var composition = extractCompositionEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget);
  19195. var beforeInput = extractBeforeInputEvent(topLevelType, targetInst, nativeEvent, nativeEventTarget);
  19196. if (composition === null) {
  19197. return beforeInput;
  19198. }
  19199. if (beforeInput === null) {
  19200. return composition;
  19201. }
  19202. return [composition, beforeInput];
  19203. }
  19204. };
  19205. // Use to restore controlled state after a change event has fired.
  19206. var restoreImpl = null;
  19207. var restoreTarget = null;
  19208. var restoreQueue = null;
  19209. function restoreStateOfTarget(target) {
  19210. // We perform this translation at the end of the event loop so that we
  19211. // always receive the correct fiber here
  19212. var internalInstance = getInstanceFromNode(target);
  19213. if (!internalInstance) {
  19214. // Unmounted
  19215. return;
  19216. }
  19217. (function () {
  19218. if (!(typeof restoreImpl === 'function')) {
  19219. {
  19220. throw ReactError(Error('setRestoreImplementation() needs to be called to handle a target for controlled events. This error is likely caused by a bug in React. Please file an issue.'));
  19221. }
  19222. }
  19223. })();
  19224. var props = getFiberCurrentPropsFromNode(internalInstance.stateNode);
  19225. restoreImpl(internalInstance.stateNode, internalInstance.type, props);
  19226. }
  19227. function setRestoreImplementation(impl) {
  19228. restoreImpl = impl;
  19229. }
  19230. function enqueueStateRestore(target) {
  19231. if (restoreTarget) {
  19232. if (restoreQueue) {
  19233. restoreQueue.push(target);
  19234. } else {
  19235. restoreQueue = [target];
  19236. }
  19237. } else {
  19238. restoreTarget = target;
  19239. }
  19240. }
  19241. function needsStateRestore() {
  19242. return restoreTarget !== null || restoreQueue !== null;
  19243. }
  19244. function restoreStateIfNeeded() {
  19245. if (!restoreTarget) {
  19246. return;
  19247. }
  19248. var target = restoreTarget;
  19249. var queuedTargets = restoreQueue;
  19250. restoreTarget = null;
  19251. restoreQueue = null;
  19252. restoreStateOfTarget(target);
  19253. if (queuedTargets) {
  19254. for (var i = 0; i < queuedTargets.length; i++) {
  19255. restoreStateOfTarget(queuedTargets[i]);
  19256. }
  19257. }
  19258. }
  19259. var enableUserTimingAPI = true;
  19260. // Helps identify side effects in begin-phase lifecycle hooks and setState reducers:
  19261. var debugRenderPhaseSideEffects = false;
  19262. // In some cases, StrictMode should also double-render lifecycles.
  19263. // This can be confusing for tests though,
  19264. // And it can be bad for performance in production.
  19265. // This feature flag can be used to control the behavior:
  19266. var debugRenderPhaseSideEffectsForStrictMode = true;
  19267. // To preserve the "Pause on caught exceptions" behavior of the debugger, we
  19268. // replay the begin phase of a failed component inside invokeGuardedCallback.
  19269. var replayFailedUnitOfWorkWithInvokeGuardedCallback = true;
  19270. // Warn about deprecated, async-unsafe lifecycles; relates to RFC #6:
  19271. var warnAboutDeprecatedLifecycles = true;
  19272. // Gather advanced timing metrics for Profiler subtrees.
  19273. var enableProfilerTimer = true;
  19274. // Trace which interactions trigger each commit.
  19275. var enableSchedulerTracing = true;
  19276. // Only used in www builds.
  19277. var enableSuspenseServerRenderer = false; // TODO: true? Here it might just be false.
  19278. // Only used in www builds.
  19279. // Only used in www builds.
  19280. // Disable javascript: URL strings in href for XSS protection.
  19281. var disableJavaScriptURLs = false;
  19282. // React Fire: prevent the value and checked attributes from syncing
  19283. // with their related DOM properties
  19284. var disableInputAttributeSyncing = false;
  19285. // These APIs will no longer be "unstable" in the upcoming 16.7 release,
  19286. // Control this behavior with a flag to support 16.6 minor releases in the meanwhile.
  19287. var enableStableConcurrentModeAPIs = false;
  19288. var warnAboutShorthandPropertyCollision = false;
  19289. // See https://github.com/react-native-community/discussions-and-proposals/issues/72 for more information
  19290. // This is a flag so we can fix warnings in RN core before turning it on
  19291. // Experimental React Flare event system and event components support.
  19292. var enableFlareAPI = false;
  19293. // Experimental Host Component support.
  19294. var enableFundamentalAPI = false;
  19295. // New API for JSX transforms to target - https://github.com/reactjs/rfcs/pull/107
  19296. // We will enforce mocking scheduler with scheduler/unstable_mock at some point. (v17?)
  19297. // Till then, we warn about the missing mock, but still fallback to a sync mode compatible version
  19298. var warnAboutUnmockedScheduler = false;
  19299. // Temporary flag to revert the fix in #15650
  19300. var revertPassiveEffectsChange = false;
  19301. // For tests, we flush suspense fallbacks in an act scope;
  19302. // *except* in some of our own tests, where we test incremental loading states.
  19303. var flushSuspenseFallbacksInTests = true;
  19304. // Changes priority of some events like mousemove to user-blocking priority,
  19305. // but without making them discrete. The flag exists in case it causes
  19306. // starvation problems.
  19307. var enableUserBlockingEvents = false;
  19308. // Add a callback property to suspense to notify which promises are currently
  19309. // in the update queue. This allows reporting and tracing of what is causing
  19310. // the user to see a loading state.
  19311. var enableSuspenseCallback = false;
  19312. // Part of the simplification of React.createElement so we can eventually move
  19313. // from React.createElement to React.jsx
  19314. // https://github.com/reactjs/rfcs/blob/createlement-rfc/text/0000-create-element-changes.md
  19315. var warnAboutDefaultPropsOnFunctionComponents = false;
  19316. var disableLegacyContext = false;
  19317. var disableSchedulerTimeoutBasedOnReactExpirationTime = false;
  19318. // Used as a way to call batchedUpdates when we don't have a reference to
  19319. // the renderer. Such as when we're dispatching events or if third party
  19320. // libraries need to call batchedUpdates. Eventually, this API will go away when
  19321. // everything is batched by default. We'll then have a similar API to opt-out of
  19322. // scheduled work and instead do synchronous work.
  19323. // Defaults
  19324. var batchedUpdatesImpl = function (fn, bookkeeping) {
  19325. return fn(bookkeeping);
  19326. };
  19327. var discreteUpdatesImpl = function (fn, a, b, c) {
  19328. return fn(a, b, c);
  19329. };
  19330. var flushDiscreteUpdatesImpl = function () {};
  19331. var batchedEventUpdatesImpl = batchedUpdatesImpl;
  19332. var isInsideEventHandler = false;
  19333. function finishEventHandler() {
  19334. // Here we wait until all updates have propagated, which is important
  19335. // when using controlled components within layers:
  19336. // https://github.com/facebook/react/issues/1698
  19337. // Then we restore state of any controlled component.
  19338. var controlledComponentsHavePendingUpdates = needsStateRestore();
  19339. if (controlledComponentsHavePendingUpdates) {
  19340. // If a controlled event was fired, we may need to restore the state of
  19341. // the DOM node back to the controlled value. This is necessary when React
  19342. // bails out of the update without touching the DOM.
  19343. flushDiscreteUpdatesImpl();
  19344. restoreStateIfNeeded();
  19345. }
  19346. }
  19347. function batchedUpdates(fn, bookkeeping) {
  19348. if (isInsideEventHandler) {
  19349. // If we are currently inside another batch, we need to wait until it
  19350. // fully completes before restoring state.
  19351. return fn(bookkeeping);
  19352. }
  19353. isInsideEventHandler = true;
  19354. try {
  19355. return batchedUpdatesImpl(fn, bookkeeping);
  19356. } finally {
  19357. isInsideEventHandler = false;
  19358. finishEventHandler();
  19359. }
  19360. }
  19361. function batchedEventUpdates(fn, a, b) {
  19362. if (isInsideEventHandler) {
  19363. // If we are currently inside another batch, we need to wait until it
  19364. // fully completes before restoring state.
  19365. return fn(a, b);
  19366. }
  19367. isInsideEventHandler = true;
  19368. try {
  19369. return batchedEventUpdatesImpl(fn, a, b);
  19370. } finally {
  19371. isInsideEventHandler = false;
  19372. finishEventHandler();
  19373. }
  19374. }
  19375. function discreteUpdates(fn, a, b, c) {
  19376. var prevIsInsideEventHandler = isInsideEventHandler;
  19377. isInsideEventHandler = true;
  19378. try {
  19379. return discreteUpdatesImpl(fn, a, b, c);
  19380. } finally {
  19381. isInsideEventHandler = prevIsInsideEventHandler;
  19382. if (!isInsideEventHandler) {
  19383. finishEventHandler();
  19384. }
  19385. }
  19386. }
  19387. var lastFlushedEventTimeStamp = 0;
  19388. function flushDiscreteUpdatesIfNeeded(timeStamp) {
  19389. // event.timeStamp isn't overly reliable due to inconsistencies in
  19390. // how different browsers have historically provided the time stamp.
  19391. // Some browsers provide high-resolution time stamps for all events,
  19392. // some provide low-resolution time stamps for all events. FF < 52
  19393. // even mixes both time stamps together. Some browsers even report
  19394. // negative time stamps or time stamps that are 0 (iOS9) in some cases.
  19395. // Given we are only comparing two time stamps with equality (!==),
  19396. // we are safe from the resolution differences. If the time stamp is 0
  19397. // we bail-out of preventing the flush, which can affect semantics,
  19398. // such as if an earlier flush removes or adds event listeners that
  19399. // are fired in the subsequent flush. However, this is the same
  19400. // behaviour as we had before this change, so the risks are low.
  19401. if (!isInsideEventHandler && (!enableFlareAPI || timeStamp === 0 || lastFlushedEventTimeStamp !== timeStamp)) {
  19402. lastFlushedEventTimeStamp = timeStamp;
  19403. flushDiscreteUpdatesImpl();
  19404. }
  19405. }
  19406. function setBatchingImplementation(_batchedUpdatesImpl, _discreteUpdatesImpl, _flushDiscreteUpdatesImpl, _batchedEventUpdatesImpl) {
  19407. batchedUpdatesImpl = _batchedUpdatesImpl;
  19408. discreteUpdatesImpl = _discreteUpdatesImpl;
  19409. flushDiscreteUpdatesImpl = _flushDiscreteUpdatesImpl;
  19410. batchedEventUpdatesImpl = _batchedEventUpdatesImpl;
  19411. }
  19412. /**
  19413. * @see http://www.whatwg.org/specs/web-apps/current-work/multipage/the-input-element.html#input-type-attr-summary
  19414. */
  19415. var supportedInputTypes = {
  19416. color: true,
  19417. date: true,
  19418. datetime: true,
  19419. 'datetime-local': true,
  19420. email: true,
  19421. month: true,
  19422. number: true,
  19423. password: true,
  19424. range: true,
  19425. search: true,
  19426. tel: true,
  19427. text: true,
  19428. time: true,
  19429. url: true,
  19430. week: true
  19431. };
  19432. function isTextInputElement(elem) {
  19433. var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();
  19434. if (nodeName === 'input') {
  19435. return !!supportedInputTypes[elem.type];
  19436. }
  19437. if (nodeName === 'textarea') {
  19438. return true;
  19439. }
  19440. return false;
  19441. }
  19442. /**
  19443. * HTML nodeType values that represent the type of the node
  19444. */
  19445. var ELEMENT_NODE = 1;
  19446. var TEXT_NODE = 3;
  19447. var COMMENT_NODE = 8;
  19448. var DOCUMENT_NODE = 9;
  19449. var DOCUMENT_FRAGMENT_NODE = 11;
  19450. /**
  19451. * Gets the target node from a native browser event by accounting for
  19452. * inconsistencies in browser DOM APIs.
  19453. *
  19454. * @param {object} nativeEvent Native browser event.
  19455. * @return {DOMEventTarget} Target node.
  19456. */
  19457. function getEventTarget(nativeEvent) {
  19458. // Fallback to nativeEvent.srcElement for IE9
  19459. // https://github.com/facebook/react/issues/12506
  19460. var target = nativeEvent.target || nativeEvent.srcElement || window;
  19461. // Normalize SVG <use> element events #4963
  19462. if (target.correspondingUseElement) {
  19463. target = target.correspondingUseElement;
  19464. }
  19465. // Safari may fire events on text nodes (Node.TEXT_NODE is 3).
  19466. // @see http://www.quirksmode.org/js/events_properties.html
  19467. return target.nodeType === TEXT_NODE ? target.parentNode : target;
  19468. }
  19469. /**
  19470. * Checks if an event is supported in the current execution environment.
  19471. *
  19472. * NOTE: This will not work correctly for non-generic events such as `change`,
  19473. * `reset`, `load`, `error`, and `select`.
  19474. *
  19475. * Borrows from Modernizr.
  19476. *
  19477. * @param {string} eventNameSuffix Event name, e.g. "click".
  19478. * @return {boolean} True if the event is supported.
  19479. * @internal
  19480. * @license Modernizr 3.0.0pre (Custom Build) | MIT
  19481. */
  19482. function isEventSupported(eventNameSuffix) {
  19483. if (!canUseDOM) {
  19484. return false;
  19485. }
  19486. var eventName = 'on' + eventNameSuffix;
  19487. var isSupported = eventName in document;
  19488. if (!isSupported) {
  19489. var element = document.createElement('div');
  19490. element.setAttribute(eventName, 'return;');
  19491. isSupported = typeof element[eventName] === 'function';
  19492. }
  19493. return isSupported;
  19494. }
  19495. function isCheckable(elem) {
  19496. var type = elem.type;
  19497. var nodeName = elem.nodeName;
  19498. return nodeName && nodeName.toLowerCase() === 'input' && (type === 'checkbox' || type === 'radio');
  19499. }
  19500. function getTracker(node) {
  19501. return node._valueTracker;
  19502. }
  19503. function detachTracker(node) {
  19504. node._valueTracker = null;
  19505. }
  19506. function getValueFromNode(node) {
  19507. var value = '';
  19508. if (!node) {
  19509. return value;
  19510. }
  19511. if (isCheckable(node)) {
  19512. value = node.checked ? 'true' : 'false';
  19513. } else {
  19514. value = node.value;
  19515. }
  19516. return value;
  19517. }
  19518. function trackValueOnNode(node) {
  19519. var valueField = isCheckable(node) ? 'checked' : 'value';
  19520. var descriptor = Object.getOwnPropertyDescriptor(node.constructor.prototype, valueField);
  19521. var currentValue = '' + node[valueField];
  19522. // if someone has already defined a value or Safari, then bail
  19523. // and don't track value will cause over reporting of changes,
  19524. // but it's better then a hard failure
  19525. // (needed for certain tests that spyOn input values and Safari)
  19526. if (node.hasOwnProperty(valueField) || typeof descriptor === 'undefined' || typeof descriptor.get !== 'function' || typeof descriptor.set !== 'function') {
  19527. return;
  19528. }
  19529. var get = descriptor.get,
  19530. set = descriptor.set;
  19531. Object.defineProperty(node, valueField, {
  19532. configurable: true,
  19533. get: function () {
  19534. return get.call(this);
  19535. },
  19536. set: function (value) {
  19537. currentValue = '' + value;
  19538. set.call(this, value);
  19539. }
  19540. });
  19541. // We could've passed this the first time
  19542. // but it triggers a bug in IE11 and Edge 14/15.
  19543. // Calling defineProperty() again should be equivalent.
  19544. // https://github.com/facebook/react/issues/11768
  19545. Object.defineProperty(node, valueField, {
  19546. enumerable: descriptor.enumerable
  19547. });
  19548. var tracker = {
  19549. getValue: function () {
  19550. return currentValue;
  19551. },
  19552. setValue: function (value) {
  19553. currentValue = '' + value;
  19554. },
  19555. stopTracking: function () {
  19556. detachTracker(node);
  19557. delete node[valueField];
  19558. }
  19559. };
  19560. return tracker;
  19561. }
  19562. function track(node) {
  19563. if (getTracker(node)) {
  19564. return;
  19565. }
  19566. // TODO: Once it's just Fiber we can move this to node._wrapperState
  19567. node._valueTracker = trackValueOnNode(node);
  19568. }
  19569. function updateValueIfChanged(node) {
  19570. if (!node) {
  19571. return false;
  19572. }
  19573. var tracker = getTracker(node);
  19574. // if there is no tracker at this point it's unlikely
  19575. // that trying again will succeed
  19576. if (!tracker) {
  19577. return true;
  19578. }
  19579. var lastValue = tracker.getValue();
  19580. var nextValue = getValueFromNode(node);
  19581. if (nextValue !== lastValue) {
  19582. tracker.setValue(nextValue);
  19583. return true;
  19584. }
  19585. return false;
  19586. }
  19587. var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
  19588. // Prevent newer renderers from RTE when used with older react package versions.
  19589. // Current owner and dispatcher used to share the same ref,
  19590. // but PR #14548 split them out to better support the react-debug-tools package.
  19591. if (!ReactSharedInternals.hasOwnProperty('ReactCurrentDispatcher')) {
  19592. ReactSharedInternals.ReactCurrentDispatcher = {
  19593. current: null
  19594. };
  19595. }
  19596. if (!ReactSharedInternals.hasOwnProperty('ReactCurrentBatchConfig')) {
  19597. ReactSharedInternals.ReactCurrentBatchConfig = {
  19598. suspense: null
  19599. };
  19600. }
  19601. var BEFORE_SLASH_RE = /^(.*)[\\\/]/;
  19602. var describeComponentFrame = function (name, source, ownerName) {
  19603. var sourceInfo = '';
  19604. if (source) {
  19605. var path = source.fileName;
  19606. var fileName = path.replace(BEFORE_SLASH_RE, '');
  19607. {
  19608. // In DEV, include code for a common special case:
  19609. // prefer "folder/index.js" instead of just "index.js".
  19610. if (/^index\./.test(fileName)) {
  19611. var match = path.match(BEFORE_SLASH_RE);
  19612. if (match) {
  19613. var pathBeforeSlash = match[1];
  19614. if (pathBeforeSlash) {
  19615. var folderName = pathBeforeSlash.replace(BEFORE_SLASH_RE, '');
  19616. fileName = folderName + '/' + fileName;
  19617. }
  19618. }
  19619. }
  19620. }
  19621. sourceInfo = ' (at ' + fileName + ':' + source.lineNumber + ')';
  19622. } else if (ownerName) {
  19623. sourceInfo = ' (created by ' + ownerName + ')';
  19624. }
  19625. return '\n in ' + (name || 'Unknown') + sourceInfo;
  19626. };
  19627. // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
  19628. // nor polyfill, then a plain number is used for performance.
  19629. var hasSymbol = typeof Symbol === 'function' && Symbol.for;
  19630. var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
  19631. var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
  19632. var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
  19633. var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
  19634. var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
  19635. var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
  19636. var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace;
  19637. // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
  19638. // (unstable) APIs that have been removed. Can we remove the symbols?
  19639. var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
  19640. var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
  19641. var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
  19642. var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
  19643. var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
  19644. var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
  19645. var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
  19646. var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
  19647. var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
  19648. var FAUX_ITERATOR_SYMBOL = '@@iterator';
  19649. function getIteratorFn(maybeIterable) {
  19650. if (maybeIterable === null || typeof maybeIterable !== 'object') {
  19651. return null;
  19652. }
  19653. var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
  19654. if (typeof maybeIterator === 'function') {
  19655. return maybeIterator;
  19656. }
  19657. return null;
  19658. }
  19659. var Pending = 0;
  19660. var Resolved = 1;
  19661. var Rejected = 2;
  19662. function refineResolvedLazyComponent(lazyComponent) {
  19663. return lazyComponent._status === Resolved ? lazyComponent._result : null;
  19664. }
  19665. function getWrappedName(outerType, innerType, wrapperName) {
  19666. var functionName = innerType.displayName || innerType.name || '';
  19667. return outerType.displayName || (functionName !== '' ? wrapperName + '(' + functionName + ')' : wrapperName);
  19668. }
  19669. function getComponentName(type) {
  19670. if (type == null) {
  19671. // Host root, text node or just invalid type.
  19672. return null;
  19673. }
  19674. {
  19675. if (typeof type.tag === 'number') {
  19676. warningWithoutStack$1(false, 'Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');
  19677. }
  19678. }
  19679. if (typeof type === 'function') {
  19680. return type.displayName || type.name || null;
  19681. }
  19682. if (typeof type === 'string') {
  19683. return type;
  19684. }
  19685. switch (type) {
  19686. case REACT_FRAGMENT_TYPE:
  19687. return 'Fragment';
  19688. case REACT_PORTAL_TYPE:
  19689. return 'Portal';
  19690. case REACT_PROFILER_TYPE:
  19691. return 'Profiler';
  19692. case REACT_STRICT_MODE_TYPE:
  19693. return 'StrictMode';
  19694. case REACT_SUSPENSE_TYPE:
  19695. return 'Suspense';
  19696. case REACT_SUSPENSE_LIST_TYPE:
  19697. return 'SuspenseList';
  19698. }
  19699. if (typeof type === 'object') {
  19700. switch (type.$$typeof) {
  19701. case REACT_CONTEXT_TYPE:
  19702. return 'Context.Consumer';
  19703. case REACT_PROVIDER_TYPE:
  19704. return 'Context.Provider';
  19705. case REACT_FORWARD_REF_TYPE:
  19706. return getWrappedName(type, type.render, 'ForwardRef');
  19707. case REACT_MEMO_TYPE:
  19708. return getComponentName(type.type);
  19709. case REACT_LAZY_TYPE:
  19710. {
  19711. var thenable = type;
  19712. var resolvedThenable = refineResolvedLazyComponent(thenable);
  19713. if (resolvedThenable) {
  19714. return getComponentName(resolvedThenable);
  19715. }
  19716. break;
  19717. }
  19718. }
  19719. }
  19720. return null;
  19721. }
  19722. var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
  19723. function describeFiber(fiber) {
  19724. switch (fiber.tag) {
  19725. case HostRoot:
  19726. case HostPortal:
  19727. case HostText:
  19728. case Fragment:
  19729. case ContextProvider:
  19730. case ContextConsumer:
  19731. return '';
  19732. default:
  19733. var owner = fiber._debugOwner;
  19734. var source = fiber._debugSource;
  19735. var name = getComponentName(fiber.type);
  19736. var ownerName = null;
  19737. if (owner) {
  19738. ownerName = getComponentName(owner.type);
  19739. }
  19740. return describeComponentFrame(name, source, ownerName);
  19741. }
  19742. }
  19743. function getStackByFiberInDevAndProd(workInProgress) {
  19744. var info = '';
  19745. var node = workInProgress;
  19746. do {
  19747. info += describeFiber(node);
  19748. node = node.return;
  19749. } while (node);
  19750. return info;
  19751. }
  19752. var current = null;
  19753. var phase = null;
  19754. function getCurrentFiberOwnerNameInDevOrNull() {
  19755. {
  19756. if (current === null) {
  19757. return null;
  19758. }
  19759. var owner = current._debugOwner;
  19760. if (owner !== null && typeof owner !== 'undefined') {
  19761. return getComponentName(owner.type);
  19762. }
  19763. }
  19764. return null;
  19765. }
  19766. function getCurrentFiberStackInDev() {
  19767. {
  19768. if (current === null) {
  19769. return '';
  19770. }
  19771. // Safe because if current fiber exists, we are reconciling,
  19772. // and it is guaranteed to be the work-in-progress version.
  19773. return getStackByFiberInDevAndProd(current);
  19774. }
  19775. return '';
  19776. }
  19777. function resetCurrentFiber() {
  19778. {
  19779. ReactDebugCurrentFrame.getCurrentStack = null;
  19780. current = null;
  19781. phase = null;
  19782. }
  19783. }
  19784. function setCurrentFiber(fiber) {
  19785. {
  19786. ReactDebugCurrentFrame.getCurrentStack = getCurrentFiberStackInDev;
  19787. current = fiber;
  19788. phase = null;
  19789. }
  19790. }
  19791. function setCurrentPhase(lifeCyclePhase) {
  19792. {
  19793. phase = lifeCyclePhase;
  19794. }
  19795. }
  19796. /**
  19797. * Similar to invariant but only logs a warning if the condition is not met.
  19798. * This can be used to log issues in development environments in critical
  19799. * paths. Removing the logging code for production environments will keep the
  19800. * same logic and follow the same code paths.
  19801. */
  19802. var warning = warningWithoutStack$1;
  19803. {
  19804. warning = function (condition, format) {
  19805. if (condition) {
  19806. return;
  19807. }
  19808. var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
  19809. var stack = ReactDebugCurrentFrame.getStackAddendum();
  19810. // eslint-disable-next-line react-internal/warning-and-invariant-args
  19811. for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
  19812. args[_key - 2] = arguments[_key];
  19813. }
  19814. warningWithoutStack$1.apply(undefined, [false, format + '%s'].concat(args, [stack]));
  19815. };
  19816. }
  19817. var warning$1 = warning;
  19818. // A reserved attribute.
  19819. // It is handled by React separately and shouldn't be written to the DOM.
  19820. var RESERVED = 0;
  19821. // A simple string attribute.
  19822. // Attributes that aren't in the whitelist are presumed to have this type.
  19823. var STRING = 1;
  19824. // A string attribute that accepts booleans in React. In HTML, these are called
  19825. // "enumerated" attributes with "true" and "false" as possible values.
  19826. // When true, it should be set to a "true" string.
  19827. // When false, it should be set to a "false" string.
  19828. var BOOLEANISH_STRING = 2;
  19829. // A real boolean attribute.
  19830. // When true, it should be present (set either to an empty string or its name).
  19831. // When false, it should be omitted.
  19832. var BOOLEAN = 3;
  19833. // An attribute that can be used as a flag as well as with a value.
  19834. // When true, it should be present (set either to an empty string or its name).
  19835. // When false, it should be omitted.
  19836. // For any other value, should be present with that value.
  19837. var OVERLOADED_BOOLEAN = 4;
  19838. // An attribute that must be numeric or parse as a numeric.
  19839. // When falsy, it should be removed.
  19840. var NUMERIC = 5;
  19841. // An attribute that must be positive numeric or parse as a positive numeric.
  19842. // When falsy, it should be removed.
  19843. var POSITIVE_NUMERIC = 6;
  19844. /* eslint-disable max-len */
  19845. var ATTRIBUTE_NAME_START_CHAR = ':A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD';
  19846. /* eslint-enable max-len */
  19847. var ATTRIBUTE_NAME_CHAR = ATTRIBUTE_NAME_START_CHAR + '\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040';
  19848. var ROOT_ATTRIBUTE_NAME = 'data-reactroot';
  19849. var VALID_ATTRIBUTE_NAME_REGEX = new RegExp('^[' + ATTRIBUTE_NAME_START_CHAR + '][' + ATTRIBUTE_NAME_CHAR + ']*$');
  19850. var hasOwnProperty = Object.prototype.hasOwnProperty;
  19851. var illegalAttributeNameCache = {};
  19852. var validatedAttributeNameCache = {};
  19853. function isAttributeNameSafe(attributeName) {
  19854. if (hasOwnProperty.call(validatedAttributeNameCache, attributeName)) {
  19855. return true;
  19856. }
  19857. if (hasOwnProperty.call(illegalAttributeNameCache, attributeName)) {
  19858. return false;
  19859. }
  19860. if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)) {
  19861. validatedAttributeNameCache[attributeName] = true;
  19862. return true;
  19863. }
  19864. illegalAttributeNameCache[attributeName] = true;
  19865. {
  19866. warning$1(false, 'Invalid attribute name: `%s`', attributeName);
  19867. }
  19868. return false;
  19869. }
  19870. function shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag) {
  19871. if (propertyInfo !== null) {
  19872. return propertyInfo.type === RESERVED;
  19873. }
  19874. if (isCustomComponentTag) {
  19875. return false;
  19876. }
  19877. if (name.length > 2 && (name[0] === 'o' || name[0] === 'O') && (name[1] === 'n' || name[1] === 'N')) {
  19878. return true;
  19879. }
  19880. return false;
  19881. }
  19882. function shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag) {
  19883. if (propertyInfo !== null && propertyInfo.type === RESERVED) {
  19884. return false;
  19885. }
  19886. switch (typeof value) {
  19887. case 'function':
  19888. // $FlowIssue symbol is perfectly valid here
  19889. case 'symbol':
  19890. // eslint-disable-line
  19891. return true;
  19892. case 'boolean':
  19893. {
  19894. if (isCustomComponentTag) {
  19895. return false;
  19896. }
  19897. if (propertyInfo !== null) {
  19898. return !propertyInfo.acceptsBooleans;
  19899. } else {
  19900. var prefix = name.toLowerCase().slice(0, 5);
  19901. return prefix !== 'data-' && prefix !== 'aria-';
  19902. }
  19903. }
  19904. default:
  19905. return false;
  19906. }
  19907. }
  19908. function shouldRemoveAttribute(name, value, propertyInfo, isCustomComponentTag) {
  19909. if (value === null || typeof value === 'undefined') {
  19910. return true;
  19911. }
  19912. if (shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag)) {
  19913. return true;
  19914. }
  19915. if (isCustomComponentTag) {
  19916. return false;
  19917. }
  19918. if (propertyInfo !== null) {
  19919. switch (propertyInfo.type) {
  19920. case BOOLEAN:
  19921. return !value;
  19922. case OVERLOADED_BOOLEAN:
  19923. return value === false;
  19924. case NUMERIC:
  19925. return isNaN(value);
  19926. case POSITIVE_NUMERIC:
  19927. return isNaN(value) || value < 1;
  19928. }
  19929. }
  19930. return false;
  19931. }
  19932. function getPropertyInfo(name) {
  19933. return properties.hasOwnProperty(name) ? properties[name] : null;
  19934. }
  19935. function PropertyInfoRecord(name, type, mustUseProperty, attributeName, attributeNamespace, sanitizeURL) {
  19936. this.acceptsBooleans = type === BOOLEANISH_STRING || type === BOOLEAN || type === OVERLOADED_BOOLEAN;
  19937. this.attributeName = attributeName;
  19938. this.attributeNamespace = attributeNamespace;
  19939. this.mustUseProperty = mustUseProperty;
  19940. this.propertyName = name;
  19941. this.type = type;
  19942. this.sanitizeURL = sanitizeURL;
  19943. }
  19944. // When adding attributes to this list, be sure to also add them to
  19945. // the `possibleStandardNames` module to ensure casing and incorrect
  19946. // name warnings.
  19947. var properties = {};
  19948. // These props are reserved by React. They shouldn't be written to the DOM.
  19949. ['children', 'dangerouslySetInnerHTML',
  19950. // TODO: This prevents the assignment of defaultValue to regular
  19951. // elements (not just inputs). Now that ReactDOMInput assigns to the
  19952. // defaultValue property -- do we need this?
  19953. 'defaultValue', 'defaultChecked', 'innerHTML', 'suppressContentEditableWarning', 'suppressHydrationWarning', 'style'].forEach(function (name) {
  19954. properties[name] = new PropertyInfoRecord(name, RESERVED, false, // mustUseProperty
  19955. name, // attributeName
  19956. null, // attributeNamespace
  19957. false);
  19958. } // sanitizeURL
  19959. );
  19960. // A few React string attributes have a different name.
  19961. // This is a mapping from React prop names to the attribute names.
  19962. [['acceptCharset', 'accept-charset'], ['className', 'class'], ['htmlFor', 'for'], ['httpEquiv', 'http-equiv']].forEach(function (_ref) {
  19963. var name = _ref[0],
  19964. attributeName = _ref[1];
  19965. properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
  19966. attributeName, // attributeName
  19967. null, // attributeNamespace
  19968. false);
  19969. } // sanitizeURL
  19970. );
  19971. // These are "enumerated" HTML attributes that accept "true" and "false".
  19972. // In React, we let users pass `true` and `false` even though technically
  19973. // these aren't boolean attributes (they are coerced to strings).
  19974. ['contentEditable', 'draggable', 'spellCheck', 'value'].forEach(function (name) {
  19975. properties[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, false, // mustUseProperty
  19976. name.toLowerCase(), // attributeName
  19977. null, // attributeNamespace
  19978. false);
  19979. } // sanitizeURL
  19980. );
  19981. // These are "enumerated" SVG attributes that accept "true" and "false".
  19982. // In React, we let users pass `true` and `false` even though technically
  19983. // these aren't boolean attributes (they are coerced to strings).
  19984. // Since these are SVG attributes, their attribute names are case-sensitive.
  19985. ['autoReverse', 'externalResourcesRequired', 'focusable', 'preserveAlpha'].forEach(function (name) {
  19986. properties[name] = new PropertyInfoRecord(name, BOOLEANISH_STRING, false, // mustUseProperty
  19987. name, // attributeName
  19988. null, // attributeNamespace
  19989. false);
  19990. } // sanitizeURL
  19991. );
  19992. // These are HTML boolean attributes.
  19993. ['allowFullScreen', 'async',
  19994. // Note: there is a special case that prevents it from being written to the DOM
  19995. // on the client side because the browsers are inconsistent. Instead we call focus().
  19996. 'autoFocus', 'autoPlay', 'controls', 'default', 'defer', 'disabled', 'disablePictureInPicture', 'formNoValidate', 'hidden', 'loop', 'noModule', 'noValidate', 'open', 'playsInline', 'readOnly', 'required', 'reversed', 'scoped', 'seamless',
  19997. // Microdata
  19998. 'itemScope'].forEach(function (name) {
  19999. properties[name] = new PropertyInfoRecord(name, BOOLEAN, false, // mustUseProperty
  20000. name.toLowerCase(), // attributeName
  20001. null, // attributeNamespace
  20002. false);
  20003. } // sanitizeURL
  20004. );
  20005. // These are the few React props that we set as DOM properties
  20006. // rather than attributes. These are all booleans.
  20007. ['checked',
  20008. // Note: `option.selected` is not updated if `select.multiple` is
  20009. // disabled with `removeAttribute`. We have special logic for handling this.
  20010. 'multiple', 'muted', 'selected'].forEach(function (name) {
  20011. properties[name] = new PropertyInfoRecord(name, BOOLEAN, true, // mustUseProperty
  20012. name, // attributeName
  20013. null, // attributeNamespace
  20014. false);
  20015. } // sanitizeURL
  20016. );
  20017. // These are HTML attributes that are "overloaded booleans": they behave like
  20018. // booleans, but can also accept a string value.
  20019. ['capture', 'download'].forEach(function (name) {
  20020. properties[name] = new PropertyInfoRecord(name, OVERLOADED_BOOLEAN, false, // mustUseProperty
  20021. name, // attributeName
  20022. null, // attributeNamespace
  20023. false);
  20024. } // sanitizeURL
  20025. );
  20026. // These are HTML attributes that must be positive numbers.
  20027. ['cols', 'rows', 'size', 'span'].forEach(function (name) {
  20028. properties[name] = new PropertyInfoRecord(name, POSITIVE_NUMERIC, false, // mustUseProperty
  20029. name, // attributeName
  20030. null, // attributeNamespace
  20031. false);
  20032. } // sanitizeURL
  20033. );
  20034. // These are HTML attributes that must be numbers.
  20035. ['rowSpan', 'start'].forEach(function (name) {
  20036. properties[name] = new PropertyInfoRecord(name, NUMERIC, false, // mustUseProperty
  20037. name.toLowerCase(), // attributeName
  20038. null, // attributeNamespace
  20039. false);
  20040. } // sanitizeURL
  20041. );
  20042. var CAMELIZE = /[\-\:]([a-z])/g;
  20043. var capitalize = function (token) {
  20044. return token[1].toUpperCase();
  20045. };
  20046. // This is a list of all SVG attributes that need special casing, namespacing,
  20047. // or boolean value assignment. Regular attributes that just accept strings
  20048. // and have the same names are omitted, just like in the HTML whitelist.
  20049. // Some of these attributes can be hard to find. This list was created by
  20050. // scrapping the MDN documentation.
  20051. ['accent-height', 'alignment-baseline', 'arabic-form', 'baseline-shift', 'cap-height', 'clip-path', 'clip-rule', 'color-interpolation', 'color-interpolation-filters', 'color-profile', 'color-rendering', 'dominant-baseline', 'enable-background', 'fill-opacity', 'fill-rule', 'flood-color', 'flood-opacity', 'font-family', 'font-size', 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 'font-weight', 'glyph-name', 'glyph-orientation-horizontal', 'glyph-orientation-vertical', 'horiz-adv-x', 'horiz-origin-x', 'image-rendering', 'letter-spacing', 'lighting-color', 'marker-end', 'marker-mid', 'marker-start', 'overline-position', 'overline-thickness', 'paint-order', 'panose-1', 'pointer-events', 'rendering-intent', 'shape-rendering', 'stop-color', 'stop-opacity', 'strikethrough-position', 'strikethrough-thickness', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke-width', 'text-anchor', 'text-decoration', 'text-rendering', 'underline-position', 'underline-thickness', 'unicode-bidi', 'unicode-range', 'units-per-em', 'v-alphabetic', 'v-hanging', 'v-ideographic', 'v-mathematical', 'vector-effect', 'vert-adv-y', 'vert-origin-x', 'vert-origin-y', 'word-spacing', 'writing-mode', 'xmlns:xlink', 'x-height'].forEach(function (attributeName) {
  20052. var name = attributeName.replace(CAMELIZE, capitalize);
  20053. properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
  20054. attributeName, null, // attributeNamespace
  20055. false);
  20056. } // sanitizeURL
  20057. );
  20058. // String SVG attributes with the xlink namespace.
  20059. ['xlink:actuate', 'xlink:arcrole', 'xlink:role', 'xlink:show', 'xlink:title', 'xlink:type'].forEach(function (attributeName) {
  20060. var name = attributeName.replace(CAMELIZE, capitalize);
  20061. properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
  20062. attributeName, 'http://www.w3.org/1999/xlink', false);
  20063. } // sanitizeURL
  20064. );
  20065. // String SVG attributes with the xml namespace.
  20066. ['xml:base', 'xml:lang', 'xml:space'].forEach(function (attributeName) {
  20067. var name = attributeName.replace(CAMELIZE, capitalize);
  20068. properties[name] = new PropertyInfoRecord(name, STRING, false, // mustUseProperty
  20069. attributeName, 'http://www.w3.org/XML/1998/namespace', false);
  20070. } // sanitizeURL
  20071. );
  20072. // These attribute exists both in HTML and SVG.
  20073. // The attribute name is case-sensitive in SVG so we can't just use
  20074. // the React name like we do for attributes that exist only in HTML.
  20075. ['tabIndex', 'crossOrigin'].forEach(function (attributeName) {
  20076. properties[attributeName] = new PropertyInfoRecord(attributeName, STRING, false, // mustUseProperty
  20077. attributeName.toLowerCase(), // attributeName
  20078. null, // attributeNamespace
  20079. false);
  20080. } // sanitizeURL
  20081. );
  20082. // These attributes accept URLs. These must not allow javascript: URLS.
  20083. // These will also need to accept Trusted Types object in the future.
  20084. var xlinkHref = 'xlinkHref';
  20085. properties[xlinkHref] = new PropertyInfoRecord('xlinkHref', STRING, false, // mustUseProperty
  20086. 'xlink:href', 'http://www.w3.org/1999/xlink', true);
  20087. ['src', 'href', 'action', 'formAction'].forEach(function (attributeName) {
  20088. properties[attributeName] = new PropertyInfoRecord(attributeName, STRING, false, // mustUseProperty
  20089. attributeName.toLowerCase(), // attributeName
  20090. null, // attributeNamespace
  20091. true);
  20092. } // sanitizeURL
  20093. );
  20094. var ReactDebugCurrentFrame$1 = null;
  20095. {
  20096. ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
  20097. }
  20098. // A javascript: URL can contain leading C0 control or \u0020 SPACE,
  20099. // and any newline or tab are filtered out as if they're not part of the URL.
  20100. // https://url.spec.whatwg.org/#url-parsing
  20101. // Tab or newline are defined as \r\n\t:
  20102. // https://infra.spec.whatwg.org/#ascii-tab-or-newline
  20103. // A C0 control is a code point in the range \u0000 NULL to \u001F
  20104. // INFORMATION SEPARATOR ONE, inclusive:
  20105. // https://infra.spec.whatwg.org/#c0-control-or-space
  20106. /* eslint-disable max-len */
  20107. var isJavaScriptProtocol = /^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i;
  20108. var didWarn = false;
  20109. function sanitizeURL(url) {
  20110. if (disableJavaScriptURLs) {
  20111. (function () {
  20112. if (!!isJavaScriptProtocol.test(url)) {
  20113. {
  20114. throw ReactError(Error('React has blocked a javascript: URL as a security precaution.' + (ReactDebugCurrentFrame$1.getStackAddendum())));
  20115. }
  20116. }
  20117. })();
  20118. } else if ( true && !didWarn && isJavaScriptProtocol.test(url)) {
  20119. didWarn = true;
  20120. warning$1(false, 'A future version of React will block javascript: URLs as a security precaution. ' + 'Use event handlers instead if you can. If you need to generate unsafe HTML try ' + 'using dangerouslySetInnerHTML instead. React was passed %s.', JSON.stringify(url));
  20121. }
  20122. }
  20123. /**
  20124. * Get the value for a property on a node. Only used in DEV for SSR validation.
  20125. * The "expected" argument is used as a hint of what the expected value is.
  20126. * Some properties have multiple equivalent values.
  20127. */
  20128. function getValueForProperty(node, name, expected, propertyInfo) {
  20129. {
  20130. if (propertyInfo.mustUseProperty) {
  20131. var propertyName = propertyInfo.propertyName;
  20132. return node[propertyName];
  20133. } else {
  20134. if (!disableJavaScriptURLs && propertyInfo.sanitizeURL) {
  20135. // If we haven't fully disabled javascript: URLs, and if
  20136. // the hydration is successful of a javascript: URL, we
  20137. // still want to warn on the client.
  20138. sanitizeURL('' + expected);
  20139. }
  20140. var attributeName = propertyInfo.attributeName;
  20141. var stringValue = null;
  20142. if (propertyInfo.type === OVERLOADED_BOOLEAN) {
  20143. if (node.hasAttribute(attributeName)) {
  20144. var value = node.getAttribute(attributeName);
  20145. if (value === '') {
  20146. return true;
  20147. }
  20148. if (shouldRemoveAttribute(name, expected, propertyInfo, false)) {
  20149. return value;
  20150. }
  20151. if (value === '' + expected) {
  20152. return expected;
  20153. }
  20154. return value;
  20155. }
  20156. } else if (node.hasAttribute(attributeName)) {
  20157. if (shouldRemoveAttribute(name, expected, propertyInfo, false)) {
  20158. // We had an attribute but shouldn't have had one, so read it
  20159. // for the error message.
  20160. return node.getAttribute(attributeName);
  20161. }
  20162. if (propertyInfo.type === BOOLEAN) {
  20163. // If this was a boolean, it doesn't matter what the value is
  20164. // the fact that we have it is the same as the expected.
  20165. return expected;
  20166. }
  20167. // Even if this property uses a namespace we use getAttribute
  20168. // because we assume its namespaced name is the same as our config.
  20169. // To use getAttributeNS we need the local name which we don't have
  20170. // in our config atm.
  20171. stringValue = node.getAttribute(attributeName);
  20172. }
  20173. if (shouldRemoveAttribute(name, expected, propertyInfo, false)) {
  20174. return stringValue === null ? expected : stringValue;
  20175. } else if (stringValue === '' + expected) {
  20176. return expected;
  20177. } else {
  20178. return stringValue;
  20179. }
  20180. }
  20181. }
  20182. }
  20183. /**
  20184. * Get the value for a attribute on a node. Only used in DEV for SSR validation.
  20185. * The third argument is used as a hint of what the expected value is. Some
  20186. * attributes have multiple equivalent values.
  20187. */
  20188. function getValueForAttribute(node, name, expected) {
  20189. {
  20190. if (!isAttributeNameSafe(name)) {
  20191. return;
  20192. }
  20193. if (!node.hasAttribute(name)) {
  20194. return expected === undefined ? undefined : null;
  20195. }
  20196. var value = node.getAttribute(name);
  20197. if (value === '' + expected) {
  20198. return expected;
  20199. }
  20200. return value;
  20201. }
  20202. }
  20203. /**
  20204. * Sets the value for a property on a node.
  20205. *
  20206. * @param {DOMElement} node
  20207. * @param {string} name
  20208. * @param {*} value
  20209. */
  20210. function setValueForProperty(node, name, value, isCustomComponentTag) {
  20211. var propertyInfo = getPropertyInfo(name);
  20212. if (shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag)) {
  20213. return;
  20214. }
  20215. if (shouldRemoveAttribute(name, value, propertyInfo, isCustomComponentTag)) {
  20216. value = null;
  20217. }
  20218. // If the prop isn't in the special list, treat it as a simple attribute.
  20219. if (isCustomComponentTag || propertyInfo === null) {
  20220. if (isAttributeNameSafe(name)) {
  20221. var _attributeName = name;
  20222. if (value === null) {
  20223. node.removeAttribute(_attributeName);
  20224. } else {
  20225. node.setAttribute(_attributeName, '' + value);
  20226. }
  20227. }
  20228. return;
  20229. }
  20230. var mustUseProperty = propertyInfo.mustUseProperty;
  20231. if (mustUseProperty) {
  20232. var propertyName = propertyInfo.propertyName;
  20233. if (value === null) {
  20234. var type = propertyInfo.type;
  20235. node[propertyName] = type === BOOLEAN ? false : '';
  20236. } else {
  20237. // Contrary to `setAttribute`, object properties are properly
  20238. // `toString`ed by IE8/9.
  20239. node[propertyName] = value;
  20240. }
  20241. return;
  20242. }
  20243. // The rest are treated as attributes with special cases.
  20244. var attributeName = propertyInfo.attributeName,
  20245. attributeNamespace = propertyInfo.attributeNamespace;
  20246. if (value === null) {
  20247. node.removeAttribute(attributeName);
  20248. } else {
  20249. var _type = propertyInfo.type;
  20250. var attributeValue = void 0;
  20251. if (_type === BOOLEAN || _type === OVERLOADED_BOOLEAN && value === true) {
  20252. attributeValue = '';
  20253. } else {
  20254. // `setAttribute` with objects becomes only `[object]` in IE8/9,
  20255. // ('' + value) makes it output the correct toString()-value.
  20256. attributeValue = '' + value;
  20257. if (propertyInfo.sanitizeURL) {
  20258. sanitizeURL(attributeValue);
  20259. }
  20260. }
  20261. if (attributeNamespace) {
  20262. node.setAttributeNS(attributeNamespace, attributeName, attributeValue);
  20263. } else {
  20264. node.setAttribute(attributeName, attributeValue);
  20265. }
  20266. }
  20267. }
  20268. // Flow does not allow string concatenation of most non-string types. To work
  20269. // around this limitation, we use an opaque type that can only be obtained by
  20270. // passing the value through getToStringValue first.
  20271. function toString(value) {
  20272. return '' + value;
  20273. }
  20274. function getToStringValue(value) {
  20275. switch (typeof value) {
  20276. case 'boolean':
  20277. case 'number':
  20278. case 'object':
  20279. case 'string':
  20280. case 'undefined':
  20281. return value;
  20282. default:
  20283. // function, symbol are assigned as empty strings
  20284. return '';
  20285. }
  20286. }
  20287. var ReactDebugCurrentFrame$2 = null;
  20288. var ReactControlledValuePropTypes = {
  20289. checkPropTypes: null
  20290. };
  20291. {
  20292. ReactDebugCurrentFrame$2 = ReactSharedInternals.ReactDebugCurrentFrame;
  20293. var hasReadOnlyValue = {
  20294. button: true,
  20295. checkbox: true,
  20296. image: true,
  20297. hidden: true,
  20298. radio: true,
  20299. reset: true,
  20300. submit: true
  20301. };
  20302. var propTypes = {
  20303. value: function (props, propName, componentName) {
  20304. if (hasReadOnlyValue[props.type] || props.onChange || props.readOnly || props.disabled || props[propName] == null || enableFlareAPI && props.listeners) {
  20305. return null;
  20306. }
  20307. return new Error('You provided a `value` prop to a form field without an ' + '`onChange` handler. This will render a read-only field. If ' + 'the field should be mutable use `defaultValue`. Otherwise, ' + 'set either `onChange` or `readOnly`.');
  20308. },
  20309. checked: function (props, propName, componentName) {
  20310. if (props.onChange || props.readOnly || props.disabled || props[propName] == null || enableFlareAPI && props.listeners) {
  20311. return null;
  20312. }
  20313. return new Error('You provided a `checked` prop to a form field without an ' + '`onChange` handler. This will render a read-only field. If ' + 'the field should be mutable use `defaultChecked`. Otherwise, ' + 'set either `onChange` or `readOnly`.');
  20314. }
  20315. };
  20316. /**
  20317. * Provide a linked `value` attribute for controlled forms. You should not use
  20318. * this outside of the ReactDOM controlled form components.
  20319. */
  20320. ReactControlledValuePropTypes.checkPropTypes = function (tagName, props) {
  20321. checkPropTypes(propTypes, props, 'prop', tagName, ReactDebugCurrentFrame$2.getStackAddendum);
  20322. };
  20323. }
  20324. // TODO: direct imports like some-package/src/* are bad. Fix me.
  20325. var didWarnValueDefaultValue = false;
  20326. var didWarnCheckedDefaultChecked = false;
  20327. var didWarnControlledToUncontrolled = false;
  20328. var didWarnUncontrolledToControlled = false;
  20329. function isControlled(props) {
  20330. var usesChecked = props.type === 'checkbox' || props.type === 'radio';
  20331. return usesChecked ? props.checked != null : props.value != null;
  20332. }
  20333. /**
  20334. * Implements an <input> host component that allows setting these optional
  20335. * props: `checked`, `value`, `defaultChecked`, and `defaultValue`.
  20336. *
  20337. * If `checked` or `value` are not supplied (or null/undefined), user actions
  20338. * that affect the checked state or value will trigger updates to the element.
  20339. *
  20340. * If they are supplied (and not null/undefined), the rendered element will not
  20341. * trigger updates to the element. Instead, the props must change in order for
  20342. * the rendered element to be updated.
  20343. *
  20344. * The rendered element will be initialized as unchecked (or `defaultChecked`)
  20345. * with an empty value (or `defaultValue`).
  20346. *
  20347. * See http://www.w3.org/TR/2012/WD-html5-20121025/the-input-element.html
  20348. */
  20349. function getHostProps(element, props) {
  20350. var node = element;
  20351. var checked = props.checked;
  20352. var hostProps = _assign({}, props, {
  20353. defaultChecked: undefined,
  20354. defaultValue: undefined,
  20355. value: undefined,
  20356. checked: checked != null ? checked : node._wrapperState.initialChecked
  20357. });
  20358. return hostProps;
  20359. }
  20360. function initWrapperState(element, props) {
  20361. {
  20362. ReactControlledValuePropTypes.checkPropTypes('input', props);
  20363. if (props.checked !== undefined && props.defaultChecked !== undefined && !didWarnCheckedDefaultChecked) {
  20364. warning$1(false, '%s contains an input of type %s with both checked and defaultChecked props. ' + 'Input elements must be either controlled or uncontrolled ' + '(specify either the checked prop, or the defaultChecked prop, but not ' + 'both). Decide between using a controlled or uncontrolled input ' + 'element and remove one of these props. More info: ' + 'https://fb.me/react-controlled-components', getCurrentFiberOwnerNameInDevOrNull() || 'A component', props.type);
  20365. didWarnCheckedDefaultChecked = true;
  20366. }
  20367. if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValueDefaultValue) {
  20368. warning$1(false, '%s contains an input of type %s with both value and defaultValue props. ' + 'Input elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled input ' + 'element and remove one of these props. More info: ' + 'https://fb.me/react-controlled-components', getCurrentFiberOwnerNameInDevOrNull() || 'A component', props.type);
  20369. didWarnValueDefaultValue = true;
  20370. }
  20371. }
  20372. var node = element;
  20373. var defaultValue = props.defaultValue == null ? '' : props.defaultValue;
  20374. node._wrapperState = {
  20375. initialChecked: props.checked != null ? props.checked : props.defaultChecked,
  20376. initialValue: getToStringValue(props.value != null ? props.value : defaultValue),
  20377. controlled: isControlled(props)
  20378. };
  20379. }
  20380. function updateChecked(element, props) {
  20381. var node = element;
  20382. var checked = props.checked;
  20383. if (checked != null) {
  20384. setValueForProperty(node, 'checked', checked, false);
  20385. }
  20386. }
  20387. function updateWrapper(element, props) {
  20388. var node = element;
  20389. {
  20390. var _controlled = isControlled(props);
  20391. if (!node._wrapperState.controlled && _controlled && !didWarnUncontrolledToControlled) {
  20392. warning$1(false, 'A component is changing an uncontrolled input of type %s to be controlled. ' + 'Input elements should not switch from uncontrolled to controlled (or vice versa). ' + 'Decide between using a controlled or uncontrolled input ' + 'element for the lifetime of the component. More info: https://fb.me/react-controlled-components', props.type);
  20393. didWarnUncontrolledToControlled = true;
  20394. }
  20395. if (node._wrapperState.controlled && !_controlled && !didWarnControlledToUncontrolled) {
  20396. warning$1(false, 'A component is changing a controlled input of type %s to be uncontrolled. ' + 'Input elements should not switch from controlled to uncontrolled (or vice versa). ' + 'Decide between using a controlled or uncontrolled input ' + 'element for the lifetime of the component. More info: https://fb.me/react-controlled-components', props.type);
  20397. didWarnControlledToUncontrolled = true;
  20398. }
  20399. }
  20400. updateChecked(element, props);
  20401. var value = getToStringValue(props.value);
  20402. var type = props.type;
  20403. if (value != null) {
  20404. if (type === 'number') {
  20405. if (value === 0 && node.value === '' ||
  20406. // We explicitly want to coerce to number here if possible.
  20407. // eslint-disable-next-line
  20408. node.value != value) {
  20409. node.value = toString(value);
  20410. }
  20411. } else if (node.value !== toString(value)) {
  20412. node.value = toString(value);
  20413. }
  20414. } else if (type === 'submit' || type === 'reset') {
  20415. // Submit/reset inputs need the attribute removed completely to avoid
  20416. // blank-text buttons.
  20417. node.removeAttribute('value');
  20418. return;
  20419. }
  20420. if (disableInputAttributeSyncing) {
  20421. // When not syncing the value attribute, React only assigns a new value
  20422. // whenever the defaultValue React prop has changed. When not present,
  20423. // React does nothing
  20424. if (props.hasOwnProperty('defaultValue')) {
  20425. setDefaultValue(node, props.type, getToStringValue(props.defaultValue));
  20426. }
  20427. } else {
  20428. // When syncing the value attribute, the value comes from a cascade of
  20429. // properties:
  20430. // 1. The value React property
  20431. // 2. The defaultValue React property
  20432. // 3. Otherwise there should be no change
  20433. if (props.hasOwnProperty('value')) {
  20434. setDefaultValue(node, props.type, value);
  20435. } else if (props.hasOwnProperty('defaultValue')) {
  20436. setDefaultValue(node, props.type, getToStringValue(props.defaultValue));
  20437. }
  20438. }
  20439. if (disableInputAttributeSyncing) {
  20440. // When not syncing the checked attribute, the attribute is directly
  20441. // controllable from the defaultValue React property. It needs to be
  20442. // updated as new props come in.
  20443. if (props.defaultChecked == null) {
  20444. node.removeAttribute('checked');
  20445. } else {
  20446. node.defaultChecked = !!props.defaultChecked;
  20447. }
  20448. } else {
  20449. // When syncing the checked attribute, it only changes when it needs
  20450. // to be removed, such as transitioning from a checkbox into a text input
  20451. if (props.checked == null && props.defaultChecked != null) {
  20452. node.defaultChecked = !!props.defaultChecked;
  20453. }
  20454. }
  20455. }
  20456. function postMountWrapper(element, props, isHydrating) {
  20457. var node = element;
  20458. // Do not assign value if it is already set. This prevents user text input
  20459. // from being lost during SSR hydration.
  20460. if (props.hasOwnProperty('value') || props.hasOwnProperty('defaultValue')) {
  20461. var type = props.type;
  20462. var isButton = type === 'submit' || type === 'reset';
  20463. // Avoid setting value attribute on submit/reset inputs as it overrides the
  20464. // default value provided by the browser. See: #12872
  20465. if (isButton && (props.value === undefined || props.value === null)) {
  20466. return;
  20467. }
  20468. var _initialValue = toString(node._wrapperState.initialValue);
  20469. // Do not assign value if it is already set. This prevents user text input
  20470. // from being lost during SSR hydration.
  20471. if (!isHydrating) {
  20472. if (disableInputAttributeSyncing) {
  20473. var value = getToStringValue(props.value);
  20474. // When not syncing the value attribute, the value property points
  20475. // directly to the React prop. Only assign it if it exists.
  20476. if (value != null) {
  20477. // Always assign on buttons so that it is possible to assign an
  20478. // empty string to clear button text.
  20479. //
  20480. // Otherwise, do not re-assign the value property if is empty. This
  20481. // potentially avoids a DOM write and prevents Firefox (~60.0.1) from
  20482. // prematurely marking required inputs as invalid. Equality is compared
  20483. // to the current value in case the browser provided value is not an
  20484. // empty string.
  20485. if (isButton || value !== node.value) {
  20486. node.value = toString(value);
  20487. }
  20488. }
  20489. } else {
  20490. // When syncing the value attribute, the value property should use
  20491. // the wrapperState._initialValue property. This uses:
  20492. //
  20493. // 1. The value React property when present
  20494. // 2. The defaultValue React property when present
  20495. // 3. An empty string
  20496. if (_initialValue !== node.value) {
  20497. node.value = _initialValue;
  20498. }
  20499. }
  20500. }
  20501. if (disableInputAttributeSyncing) {
  20502. // When not syncing the value attribute, assign the value attribute
  20503. // directly from the defaultValue React property (when present)
  20504. var defaultValue = getToStringValue(props.defaultValue);
  20505. if (defaultValue != null) {
  20506. node.defaultValue = toString(defaultValue);
  20507. }
  20508. } else {
  20509. // Otherwise, the value attribute is synchronized to the property,
  20510. // so we assign defaultValue to the same thing as the value property
  20511. // assignment step above.
  20512. node.defaultValue = _initialValue;
  20513. }
  20514. }
  20515. // Normally, we'd just do `node.checked = node.checked` upon initial mount, less this bug
  20516. // this is needed to work around a chrome bug where setting defaultChecked
  20517. // will sometimes influence the value of checked (even after detachment).
  20518. // Reference: https://bugs.chromium.org/p/chromium/issues/detail?id=608416
  20519. // We need to temporarily unset name to avoid disrupting radio button groups.
  20520. var name = node.name;
  20521. if (name !== '') {
  20522. node.name = '';
  20523. }
  20524. if (disableInputAttributeSyncing) {
  20525. // When not syncing the checked attribute, the checked property
  20526. // never gets assigned. It must be manually set. We don't want
  20527. // to do this when hydrating so that existing user input isn't
  20528. // modified
  20529. if (!isHydrating) {
  20530. updateChecked(element, props);
  20531. }
  20532. // Only assign the checked attribute if it is defined. This saves
  20533. // a DOM write when controlling the checked attribute isn't needed
  20534. // (text inputs, submit/reset)
  20535. if (props.hasOwnProperty('defaultChecked')) {
  20536. node.defaultChecked = !node.defaultChecked;
  20537. node.defaultChecked = !!props.defaultChecked;
  20538. }
  20539. } else {
  20540. // When syncing the checked attribute, both the checked property and
  20541. // attribute are assigned at the same time using defaultChecked. This uses:
  20542. //
  20543. // 1. The checked React property when present
  20544. // 2. The defaultChecked React property when present
  20545. // 3. Otherwise, false
  20546. node.defaultChecked = !node.defaultChecked;
  20547. node.defaultChecked = !!node._wrapperState.initialChecked;
  20548. }
  20549. if (name !== '') {
  20550. node.name = name;
  20551. }
  20552. }
  20553. function restoreControlledState(element, props) {
  20554. var node = element;
  20555. updateWrapper(node, props);
  20556. updateNamedCousins(node, props);
  20557. }
  20558. function updateNamedCousins(rootNode, props) {
  20559. var name = props.name;
  20560. if (props.type === 'radio' && name != null) {
  20561. var queryRoot = rootNode;
  20562. while (queryRoot.parentNode) {
  20563. queryRoot = queryRoot.parentNode;
  20564. }
  20565. // If `rootNode.form` was non-null, then we could try `form.elements`,
  20566. // but that sometimes behaves strangely in IE8. We could also try using
  20567. // `form.getElementsByName`, but that will only return direct children
  20568. // and won't include inputs that use the HTML5 `form=` attribute. Since
  20569. // the input might not even be in a form. It might not even be in the
  20570. // document. Let's just use the local `querySelectorAll` to ensure we don't
  20571. // miss anything.
  20572. var group = queryRoot.querySelectorAll('input[name=' + JSON.stringify('' + name) + '][type="radio"]');
  20573. for (var i = 0; i < group.length; i++) {
  20574. var otherNode = group[i];
  20575. if (otherNode === rootNode || otherNode.form !== rootNode.form) {
  20576. continue;
  20577. }
  20578. // This will throw if radio buttons rendered by different copies of React
  20579. // and the same name are rendered into the same form (same as #1939).
  20580. // That's probably okay; we don't support it just as we don't support
  20581. // mixing React radio buttons with non-React ones.
  20582. var otherProps = getFiberCurrentPropsFromNode$1(otherNode);
  20583. (function () {
  20584. if (!otherProps) {
  20585. {
  20586. throw ReactError(Error('ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.'));
  20587. }
  20588. }
  20589. })();
  20590. // We need update the tracked value on the named cousin since the value
  20591. // was changed but the input saw no event or value set
  20592. updateValueIfChanged(otherNode);
  20593. // If this is a controlled radio button group, forcing the input that
  20594. // was previously checked to update will cause it to be come re-checked
  20595. // as appropriate.
  20596. updateWrapper(otherNode, otherProps);
  20597. }
  20598. }
  20599. }
  20600. // In Chrome, assigning defaultValue to certain input types triggers input validation.
  20601. // For number inputs, the display value loses trailing decimal points. For email inputs,
  20602. // Chrome raises "The specified value <x> is not a valid email address".
  20603. //
  20604. // Here we check to see if the defaultValue has actually changed, avoiding these problems
  20605. // when the user is inputting text
  20606. //
  20607. // https://github.com/facebook/react/issues/7253
  20608. function setDefaultValue(node, type, value) {
  20609. if (
  20610. // Focused number inputs synchronize on blur. See ChangeEventPlugin.js
  20611. type !== 'number' || node.ownerDocument.activeElement !== node) {
  20612. if (value == null) {
  20613. node.defaultValue = toString(node._wrapperState.initialValue);
  20614. } else if (node.defaultValue !== toString(value)) {
  20615. node.defaultValue = toString(value);
  20616. }
  20617. }
  20618. }
  20619. var eventTypes$1 = {
  20620. change: {
  20621. phasedRegistrationNames: {
  20622. bubbled: 'onChange',
  20623. captured: 'onChangeCapture'
  20624. },
  20625. dependencies: [TOP_BLUR, TOP_CHANGE, TOP_CLICK, TOP_FOCUS, TOP_INPUT, TOP_KEY_DOWN, TOP_KEY_UP, TOP_SELECTION_CHANGE]
  20626. }
  20627. };
  20628. function createAndAccumulateChangeEvent(inst, nativeEvent, target) {
  20629. var event = SyntheticEvent.getPooled(eventTypes$1.change, inst, nativeEvent, target);
  20630. event.type = 'change';
  20631. // Flag this event loop as needing state restore.
  20632. enqueueStateRestore(target);
  20633. accumulateTwoPhaseDispatches(event);
  20634. return event;
  20635. }
  20636. /**
  20637. * For IE shims
  20638. */
  20639. var activeElement = null;
  20640. var activeElementInst = null;
  20641. /**
  20642. * SECTION: handle `change` event
  20643. */
  20644. function shouldUseChangeEvent(elem) {
  20645. var nodeName = elem.nodeName && elem.nodeName.toLowerCase();
  20646. return nodeName === 'select' || nodeName === 'input' && elem.type === 'file';
  20647. }
  20648. function manualDispatchChangeEvent(nativeEvent) {
  20649. var event = createAndAccumulateChangeEvent(activeElementInst, nativeEvent, getEventTarget(nativeEvent));
  20650. // If change and propertychange bubbled, we'd just bind to it like all the
  20651. // other events and have it go through ReactBrowserEventEmitter. Since it
  20652. // doesn't, we manually listen for the events and so we have to enqueue and
  20653. // process the abstract event manually.
  20654. //
  20655. // Batching is necessary here in order to ensure that all event handlers run
  20656. // before the next rerender (including event handlers attached to ancestor
  20657. // elements instead of directly on the input). Without this, controlled
  20658. // components don't work properly in conjunction with event bubbling because
  20659. // the component is rerendered and the value reverted before all the event
  20660. // handlers can run. See https://github.com/facebook/react/issues/708.
  20661. batchedUpdates(runEventInBatch, event);
  20662. }
  20663. function runEventInBatch(event) {
  20664. runEventsInBatch(event);
  20665. }
  20666. function getInstIfValueChanged(targetInst) {
  20667. var targetNode = getNodeFromInstance$1(targetInst);
  20668. if (updateValueIfChanged(targetNode)) {
  20669. return targetInst;
  20670. }
  20671. }
  20672. function getTargetInstForChangeEvent(topLevelType, targetInst) {
  20673. if (topLevelType === TOP_CHANGE) {
  20674. return targetInst;
  20675. }
  20676. }
  20677. /**
  20678. * SECTION: handle `input` event
  20679. */
  20680. var isInputEventSupported = false;
  20681. if (canUseDOM) {
  20682. // IE9 claims to support the input event but fails to trigger it when
  20683. // deleting text, so we ignore its input events.
  20684. isInputEventSupported = isEventSupported('input') && (!document.documentMode || document.documentMode > 9);
  20685. }
  20686. /**
  20687. * (For IE <=9) Starts tracking propertychange events on the passed-in element
  20688. * and override the value property so that we can distinguish user events from
  20689. * value changes in JS.
  20690. */
  20691. function startWatchingForValueChange(target, targetInst) {
  20692. activeElement = target;
  20693. activeElementInst = targetInst;
  20694. activeElement.attachEvent('onpropertychange', handlePropertyChange);
  20695. }
  20696. /**
  20697. * (For IE <=9) Removes the event listeners from the currently-tracked element,
  20698. * if any exists.
  20699. */
  20700. function stopWatchingForValueChange() {
  20701. if (!activeElement) {
  20702. return;
  20703. }
  20704. activeElement.detachEvent('onpropertychange', handlePropertyChange);
  20705. activeElement = null;
  20706. activeElementInst = null;
  20707. }
  20708. /**
  20709. * (For IE <=9) Handles a propertychange event, sending a `change` event if
  20710. * the value of the active element has changed.
  20711. */
  20712. function handlePropertyChange(nativeEvent) {
  20713. if (nativeEvent.propertyName !== 'value') {
  20714. return;
  20715. }
  20716. if (getInstIfValueChanged(activeElementInst)) {
  20717. manualDispatchChangeEvent(nativeEvent);
  20718. }
  20719. }
  20720. function handleEventsForInputEventPolyfill(topLevelType, target, targetInst) {
  20721. if (topLevelType === TOP_FOCUS) {
  20722. // In IE9, propertychange fires for most input events but is buggy and
  20723. // doesn't fire when text is deleted, but conveniently, selectionchange
  20724. // appears to fire in all of the remaining cases so we catch those and
  20725. // forward the event if the value has changed
  20726. // In either case, we don't want to call the event handler if the value
  20727. // is changed from JS so we redefine a setter for `.value` that updates
  20728. // our activeElementValue variable, allowing us to ignore those changes
  20729. //
  20730. // stopWatching() should be a noop here but we call it just in case we
  20731. // missed a blur event somehow.
  20732. stopWatchingForValueChange();
  20733. startWatchingForValueChange(target, targetInst);
  20734. } else if (topLevelType === TOP_BLUR) {
  20735. stopWatchingForValueChange();
  20736. }
  20737. }
  20738. // For IE8 and IE9.
  20739. function getTargetInstForInputEventPolyfill(topLevelType, targetInst) {
  20740. if (topLevelType === TOP_SELECTION_CHANGE || topLevelType === TOP_KEY_UP || topLevelType === TOP_KEY_DOWN) {
  20741. // On the selectionchange event, the target is just document which isn't
  20742. // helpful for us so just check activeElement instead.
  20743. //
  20744. // 99% of the time, keydown and keyup aren't necessary. IE8 fails to fire
  20745. // propertychange on the first input event after setting `value` from a
  20746. // script and fires only keydown, keypress, keyup. Catching keyup usually
  20747. // gets it and catching keydown lets us fire an event for the first
  20748. // keystroke if user does a key repeat (it'll be a little delayed: right
  20749. // before the second keystroke). Other input methods (e.g., paste) seem to
  20750. // fire selectionchange normally.
  20751. return getInstIfValueChanged(activeElementInst);
  20752. }
  20753. }
  20754. /**
  20755. * SECTION: handle `click` event
  20756. */
  20757. function shouldUseClickEvent(elem) {
  20758. // Use the `click` event to detect changes to checkbox and radio inputs.
  20759. // This approach works across all browsers, whereas `change` does not fire
  20760. // until `blur` in IE8.
  20761. var nodeName = elem.nodeName;
  20762. return nodeName && nodeName.toLowerCase() === 'input' && (elem.type === 'checkbox' || elem.type === 'radio');
  20763. }
  20764. function getTargetInstForClickEvent(topLevelType, targetInst) {
  20765. if (topLevelType === TOP_CLICK) {
  20766. return getInstIfValueChanged(targetInst);
  20767. }
  20768. }
  20769. function getTargetInstForInputOrChangeEvent(topLevelType, targetInst) {
  20770. if (topLevelType === TOP_INPUT || topLevelType === TOP_CHANGE) {
  20771. return getInstIfValueChanged(targetInst);
  20772. }
  20773. }
  20774. function handleControlledInputBlur(node) {
  20775. var state = node._wrapperState;
  20776. if (!state || !state.controlled || node.type !== 'number') {
  20777. return;
  20778. }
  20779. if (!disableInputAttributeSyncing) {
  20780. // If controlled, assign the value attribute to the current value on blur
  20781. setDefaultValue(node, 'number', node.value);
  20782. }
  20783. }
  20784. /**
  20785. * This plugin creates an `onChange` event that normalizes change events
  20786. * across form elements. This event fires at a time when it's possible to
  20787. * change the element's value without seeing a flicker.
  20788. *
  20789. * Supported elements are:
  20790. * - input (see `isTextInputElement`)
  20791. * - textarea
  20792. * - select
  20793. */
  20794. var ChangeEventPlugin = {
  20795. eventTypes: eventTypes$1,
  20796. _isInputEventSupported: isInputEventSupported,
  20797. extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  20798. var targetNode = targetInst ? getNodeFromInstance$1(targetInst) : window;
  20799. var getTargetInstFunc = void 0,
  20800. handleEventFunc = void 0;
  20801. if (shouldUseChangeEvent(targetNode)) {
  20802. getTargetInstFunc = getTargetInstForChangeEvent;
  20803. } else if (isTextInputElement(targetNode)) {
  20804. if (isInputEventSupported) {
  20805. getTargetInstFunc = getTargetInstForInputOrChangeEvent;
  20806. } else {
  20807. getTargetInstFunc = getTargetInstForInputEventPolyfill;
  20808. handleEventFunc = handleEventsForInputEventPolyfill;
  20809. }
  20810. } else if (shouldUseClickEvent(targetNode)) {
  20811. getTargetInstFunc = getTargetInstForClickEvent;
  20812. }
  20813. if (getTargetInstFunc) {
  20814. var inst = getTargetInstFunc(topLevelType, targetInst);
  20815. if (inst) {
  20816. var event = createAndAccumulateChangeEvent(inst, nativeEvent, nativeEventTarget);
  20817. return event;
  20818. }
  20819. }
  20820. if (handleEventFunc) {
  20821. handleEventFunc(topLevelType, targetNode, targetInst);
  20822. }
  20823. // When blurring, set the value attribute for number inputs
  20824. if (topLevelType === TOP_BLUR) {
  20825. handleControlledInputBlur(targetNode);
  20826. }
  20827. }
  20828. };
  20829. /**
  20830. * Module that is injectable into `EventPluginHub`, that specifies a
  20831. * deterministic ordering of `EventPlugin`s. A convenient way to reason about
  20832. * plugins, without having to package every one of them. This is better than
  20833. * having plugins be ordered in the same order that they are injected because
  20834. * that ordering would be influenced by the packaging order.
  20835. * `ResponderEventPlugin` must occur before `SimpleEventPlugin` so that
  20836. * preventing default on events is convenient in `SimpleEventPlugin` handlers.
  20837. */
  20838. var DOMEventPluginOrder = ['ResponderEventPlugin', 'SimpleEventPlugin', 'EnterLeaveEventPlugin', 'ChangeEventPlugin', 'SelectEventPlugin', 'BeforeInputEventPlugin'];
  20839. var SyntheticUIEvent = SyntheticEvent.extend({
  20840. view: null,
  20841. detail: null
  20842. });
  20843. var modifierKeyToProp = {
  20844. Alt: 'altKey',
  20845. Control: 'ctrlKey',
  20846. Meta: 'metaKey',
  20847. Shift: 'shiftKey'
  20848. };
  20849. // Older browsers (Safari <= 10, iOS Safari <= 10.2) do not support
  20850. // getModifierState. If getModifierState is not supported, we map it to a set of
  20851. // modifier keys exposed by the event. In this case, Lock-keys are not supported.
  20852. /**
  20853. * Translation from modifier key to the associated property in the event.
  20854. * @see http://www.w3.org/TR/DOM-Level-3-Events/#keys-Modifiers
  20855. */
  20856. function modifierStateGetter(keyArg) {
  20857. var syntheticEvent = this;
  20858. var nativeEvent = syntheticEvent.nativeEvent;
  20859. if (nativeEvent.getModifierState) {
  20860. return nativeEvent.getModifierState(keyArg);
  20861. }
  20862. var keyProp = modifierKeyToProp[keyArg];
  20863. return keyProp ? !!nativeEvent[keyProp] : false;
  20864. }
  20865. function getEventModifierState(nativeEvent) {
  20866. return modifierStateGetter;
  20867. }
  20868. var previousScreenX = 0;
  20869. var previousScreenY = 0;
  20870. // Use flags to signal movementX/Y has already been set
  20871. var isMovementXSet = false;
  20872. var isMovementYSet = false;
  20873. /**
  20874. * @interface MouseEvent
  20875. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  20876. */
  20877. var SyntheticMouseEvent = SyntheticUIEvent.extend({
  20878. screenX: null,
  20879. screenY: null,
  20880. clientX: null,
  20881. clientY: null,
  20882. pageX: null,
  20883. pageY: null,
  20884. ctrlKey: null,
  20885. shiftKey: null,
  20886. altKey: null,
  20887. metaKey: null,
  20888. getModifierState: getEventModifierState,
  20889. button: null,
  20890. buttons: null,
  20891. relatedTarget: function (event) {
  20892. return event.relatedTarget || (event.fromElement === event.srcElement ? event.toElement : event.fromElement);
  20893. },
  20894. movementX: function (event) {
  20895. if ('movementX' in event) {
  20896. return event.movementX;
  20897. }
  20898. var screenX = previousScreenX;
  20899. previousScreenX = event.screenX;
  20900. if (!isMovementXSet) {
  20901. isMovementXSet = true;
  20902. return 0;
  20903. }
  20904. return event.type === 'mousemove' ? event.screenX - screenX : 0;
  20905. },
  20906. movementY: function (event) {
  20907. if ('movementY' in event) {
  20908. return event.movementY;
  20909. }
  20910. var screenY = previousScreenY;
  20911. previousScreenY = event.screenY;
  20912. if (!isMovementYSet) {
  20913. isMovementYSet = true;
  20914. return 0;
  20915. }
  20916. return event.type === 'mousemove' ? event.screenY - screenY : 0;
  20917. }
  20918. });
  20919. /**
  20920. * @interface PointerEvent
  20921. * @see http://www.w3.org/TR/pointerevents/
  20922. */
  20923. var SyntheticPointerEvent = SyntheticMouseEvent.extend({
  20924. pointerId: null,
  20925. width: null,
  20926. height: null,
  20927. pressure: null,
  20928. tangentialPressure: null,
  20929. tiltX: null,
  20930. tiltY: null,
  20931. twist: null,
  20932. pointerType: null,
  20933. isPrimary: null
  20934. });
  20935. var eventTypes$2 = {
  20936. mouseEnter: {
  20937. registrationName: 'onMouseEnter',
  20938. dependencies: [TOP_MOUSE_OUT, TOP_MOUSE_OVER]
  20939. },
  20940. mouseLeave: {
  20941. registrationName: 'onMouseLeave',
  20942. dependencies: [TOP_MOUSE_OUT, TOP_MOUSE_OVER]
  20943. },
  20944. pointerEnter: {
  20945. registrationName: 'onPointerEnter',
  20946. dependencies: [TOP_POINTER_OUT, TOP_POINTER_OVER]
  20947. },
  20948. pointerLeave: {
  20949. registrationName: 'onPointerLeave',
  20950. dependencies: [TOP_POINTER_OUT, TOP_POINTER_OVER]
  20951. }
  20952. };
  20953. var EnterLeaveEventPlugin = {
  20954. eventTypes: eventTypes$2,
  20955. /**
  20956. * For almost every interaction we care about, there will be both a top-level
  20957. * `mouseover` and `mouseout` event that occurs. Only use `mouseout` so that
  20958. * we do not extract duplicate events. However, moving the mouse into the
  20959. * browser from outside will not fire a `mouseout` event. In this case, we use
  20960. * the `mouseover` top-level event.
  20961. */
  20962. extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  20963. var isOverEvent = topLevelType === TOP_MOUSE_OVER || topLevelType === TOP_POINTER_OVER;
  20964. var isOutEvent = topLevelType === TOP_MOUSE_OUT || topLevelType === TOP_POINTER_OUT;
  20965. if (isOverEvent && (nativeEvent.relatedTarget || nativeEvent.fromElement)) {
  20966. return null;
  20967. }
  20968. if (!isOutEvent && !isOverEvent) {
  20969. // Must not be a mouse or pointer in or out - ignoring.
  20970. return null;
  20971. }
  20972. var win = void 0;
  20973. if (nativeEventTarget.window === nativeEventTarget) {
  20974. // `nativeEventTarget` is probably a window object.
  20975. win = nativeEventTarget;
  20976. } else {
  20977. // TODO: Figure out why `ownerDocument` is sometimes undefined in IE8.
  20978. var doc = nativeEventTarget.ownerDocument;
  20979. if (doc) {
  20980. win = doc.defaultView || doc.parentWindow;
  20981. } else {
  20982. win = window;
  20983. }
  20984. }
  20985. var from = void 0;
  20986. var to = void 0;
  20987. if (isOutEvent) {
  20988. from = targetInst;
  20989. var related = nativeEvent.relatedTarget || nativeEvent.toElement;
  20990. to = related ? getClosestInstanceFromNode(related) : null;
  20991. } else {
  20992. // Moving to a node from outside the window.
  20993. from = null;
  20994. to = targetInst;
  20995. }
  20996. if (from === to) {
  20997. // Nothing pertains to our managed components.
  20998. return null;
  20999. }
  21000. var eventInterface = void 0,
  21001. leaveEventType = void 0,
  21002. enterEventType = void 0,
  21003. eventTypePrefix = void 0;
  21004. if (topLevelType === TOP_MOUSE_OUT || topLevelType === TOP_MOUSE_OVER) {
  21005. eventInterface = SyntheticMouseEvent;
  21006. leaveEventType = eventTypes$2.mouseLeave;
  21007. enterEventType = eventTypes$2.mouseEnter;
  21008. eventTypePrefix = 'mouse';
  21009. } else if (topLevelType === TOP_POINTER_OUT || topLevelType === TOP_POINTER_OVER) {
  21010. eventInterface = SyntheticPointerEvent;
  21011. leaveEventType = eventTypes$2.pointerLeave;
  21012. enterEventType = eventTypes$2.pointerEnter;
  21013. eventTypePrefix = 'pointer';
  21014. }
  21015. var fromNode = from == null ? win : getNodeFromInstance$1(from);
  21016. var toNode = to == null ? win : getNodeFromInstance$1(to);
  21017. var leave = eventInterface.getPooled(leaveEventType, from, nativeEvent, nativeEventTarget);
  21018. leave.type = eventTypePrefix + 'leave';
  21019. leave.target = fromNode;
  21020. leave.relatedTarget = toNode;
  21021. var enter = eventInterface.getPooled(enterEventType, to, nativeEvent, nativeEventTarget);
  21022. enter.type = eventTypePrefix + 'enter';
  21023. enter.target = toNode;
  21024. enter.relatedTarget = fromNode;
  21025. accumulateEnterLeaveDispatches(leave, enter, from, to);
  21026. return [leave, enter];
  21027. }
  21028. };
  21029. /**
  21030. * inlined Object.is polyfill to avoid requiring consumers ship their own
  21031. * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
  21032. */
  21033. function is(x, y) {
  21034. return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y // eslint-disable-line no-self-compare
  21035. ;
  21036. }
  21037. var hasOwnProperty$1 = Object.prototype.hasOwnProperty;
  21038. /**
  21039. * Performs equality by iterating through keys on an object and returning false
  21040. * when any key has values which are not strictly equal between the arguments.
  21041. * Returns true when the values of all keys are strictly equal.
  21042. */
  21043. function shallowEqual(objA, objB) {
  21044. if (is(objA, objB)) {
  21045. return true;
  21046. }
  21047. if (typeof objA !== 'object' || objA === null || typeof objB !== 'object' || objB === null) {
  21048. return false;
  21049. }
  21050. var keysA = Object.keys(objA);
  21051. var keysB = Object.keys(objB);
  21052. if (keysA.length !== keysB.length) {
  21053. return false;
  21054. }
  21055. // Test for A's keys different from B.
  21056. for (var i = 0; i < keysA.length; i++) {
  21057. if (!hasOwnProperty$1.call(objB, keysA[i]) || !is(objA[keysA[i]], objB[keysA[i]])) {
  21058. return false;
  21059. }
  21060. }
  21061. return true;
  21062. }
  21063. var PLUGIN_EVENT_SYSTEM = 1;
  21064. var RESPONDER_EVENT_SYSTEM = 1 << 1;
  21065. var IS_PASSIVE = 1 << 2;
  21066. var IS_ACTIVE = 1 << 3;
  21067. var PASSIVE_NOT_SUPPORTED = 1 << 4;
  21068. function createResponderListener(responder, props) {
  21069. var eventResponderListener = {
  21070. responder: responder,
  21071. props: props
  21072. };
  21073. {
  21074. Object.freeze(eventResponderListener);
  21075. }
  21076. return eventResponderListener;
  21077. }
  21078. function isFiberSuspenseAndTimedOut(fiber) {
  21079. return fiber.tag === SuspenseComponent && fiber.memoizedState !== null;
  21080. }
  21081. function getSuspenseFallbackChild(fiber) {
  21082. return fiber.child.sibling.child;
  21083. }
  21084. function createResponderInstance(responder, responderProps, responderState, target, fiber) {
  21085. return {
  21086. fiber: fiber,
  21087. props: responderProps,
  21088. responder: responder,
  21089. rootEventTypes: null,
  21090. state: responderState,
  21091. target: target
  21092. };
  21093. }
  21094. var DiscreteEvent = 0;
  21095. var UserBlockingEvent = 1;
  21096. var ContinuousEvent = 2;
  21097. // Intentionally not named imports because Rollup would use dynamic dispatch for
  21098. // CommonJS interop named imports.
  21099. var UserBlockingPriority$1 = Scheduler.unstable_UserBlockingPriority;
  21100. var runWithPriority$1 = Scheduler.unstable_runWithPriority;
  21101. var listenToResponderEventTypesImpl = void 0;
  21102. function setListenToResponderEventTypes(_listenToResponderEventTypesImpl) {
  21103. listenToResponderEventTypesImpl = _listenToResponderEventTypesImpl;
  21104. }
  21105. var activeTimeouts = new Map();
  21106. var rootEventTypesToEventResponderInstances = new Map();
  21107. var ownershipChangeListeners = new Set();
  21108. var globalOwner = null;
  21109. var currentTimeStamp = 0;
  21110. var currentTimers = new Map();
  21111. var currentInstance = null;
  21112. var currentEventQueue = null;
  21113. var currentEventQueuePriority = ContinuousEvent;
  21114. var currentTimerIDCounter = 0;
  21115. var currentDocument = null;
  21116. var eventResponderContext = {
  21117. dispatchEvent: function (eventValue, eventListener, eventPriority) {
  21118. validateResponderContext();
  21119. validateEventValue(eventValue);
  21120. if (eventPriority < currentEventQueuePriority) {
  21121. currentEventQueuePriority = eventPriority;
  21122. }
  21123. currentEventQueue.push(createEventQueueItem(eventValue, eventListener));
  21124. },
  21125. isTargetWithinResponder: function (target) {
  21126. validateResponderContext();
  21127. if (target != null) {
  21128. var fiber = getClosestInstanceFromNode(target);
  21129. var responderFiber = currentInstance.fiber;
  21130. while (fiber !== null) {
  21131. if (fiber === responderFiber || fiber.alternate === responderFiber) {
  21132. return true;
  21133. }
  21134. fiber = fiber.return;
  21135. }
  21136. }
  21137. return false;
  21138. },
  21139. isTargetWithinResponderScope: function (target) {
  21140. validateResponderContext();
  21141. var componentInstance = currentInstance;
  21142. var responder = componentInstance.responder;
  21143. if (target != null) {
  21144. var fiber = getClosestInstanceFromNode(target);
  21145. var responderFiber = currentInstance.fiber;
  21146. while (fiber !== null) {
  21147. if (fiber === responderFiber || fiber.alternate === responderFiber) {
  21148. return true;
  21149. }
  21150. if (doesFiberHaveResponder(fiber, responder)) {
  21151. return false;
  21152. }
  21153. fiber = fiber.return;
  21154. }
  21155. }
  21156. return false;
  21157. },
  21158. isTargetWithinNode: function (childTarget, parentTarget) {
  21159. validateResponderContext();
  21160. var childFiber = getClosestInstanceFromNode(childTarget);
  21161. var parentFiber = getClosestInstanceFromNode(parentTarget);
  21162. var parentAlternateFiber = parentFiber.alternate;
  21163. var node = childFiber;
  21164. while (node !== null) {
  21165. if (node === parentFiber || node === parentAlternateFiber) {
  21166. return true;
  21167. }
  21168. node = node.return;
  21169. }
  21170. return false;
  21171. },
  21172. addRootEventTypes: function (rootEventTypes) {
  21173. validateResponderContext();
  21174. var activeDocument = getActiveDocument();
  21175. listenToResponderEventTypesImpl(rootEventTypes, activeDocument);
  21176. for (var i = 0; i < rootEventTypes.length; i++) {
  21177. var rootEventType = rootEventTypes[i];
  21178. var eventResponderInstance = currentInstance;
  21179. registerRootEventType(rootEventType, eventResponderInstance);
  21180. }
  21181. },
  21182. removeRootEventTypes: function (rootEventTypes) {
  21183. validateResponderContext();
  21184. for (var i = 0; i < rootEventTypes.length; i++) {
  21185. var rootEventType = rootEventTypes[i];
  21186. var rootEventResponders = rootEventTypesToEventResponderInstances.get(rootEventType);
  21187. var rootEventTypesSet = currentInstance.rootEventTypes;
  21188. if (rootEventTypesSet !== null) {
  21189. rootEventTypesSet.delete(rootEventType);
  21190. }
  21191. if (rootEventResponders !== undefined) {
  21192. rootEventResponders.delete(currentInstance);
  21193. }
  21194. }
  21195. },
  21196. hasOwnership: function () {
  21197. validateResponderContext();
  21198. return globalOwner === currentInstance;
  21199. },
  21200. requestGlobalOwnership: function () {
  21201. validateResponderContext();
  21202. if (globalOwner !== null) {
  21203. return false;
  21204. }
  21205. globalOwner = currentInstance;
  21206. triggerOwnershipListeners();
  21207. return true;
  21208. },
  21209. releaseOwnership: function () {
  21210. validateResponderContext();
  21211. return releaseOwnershipForEventResponderInstance(currentInstance);
  21212. },
  21213. setTimeout: function (func, delay) {
  21214. validateResponderContext();
  21215. if (currentTimers === null) {
  21216. currentTimers = new Map();
  21217. }
  21218. var timeout = currentTimers.get(delay);
  21219. var timerId = currentTimerIDCounter++;
  21220. if (timeout === undefined) {
  21221. var _timers = new Map();
  21222. var _id = setTimeout(function () {
  21223. processTimers(_timers, delay);
  21224. }, delay);
  21225. timeout = {
  21226. id: _id,
  21227. timers: _timers
  21228. };
  21229. currentTimers.set(delay, timeout);
  21230. }
  21231. timeout.timers.set(timerId, {
  21232. instance: currentInstance,
  21233. func: func,
  21234. id: timerId,
  21235. timeStamp: currentTimeStamp
  21236. });
  21237. activeTimeouts.set(timerId, timeout);
  21238. return timerId;
  21239. },
  21240. clearTimeout: function (timerId) {
  21241. validateResponderContext();
  21242. var timeout = activeTimeouts.get(timerId);
  21243. if (timeout !== undefined) {
  21244. var _timers2 = timeout.timers;
  21245. _timers2.delete(timerId);
  21246. if (_timers2.size === 0) {
  21247. clearTimeout(timeout.id);
  21248. }
  21249. }
  21250. },
  21251. getFocusableElementsInScope: function (deep) {
  21252. validateResponderContext();
  21253. var focusableElements = [];
  21254. var eventResponderInstance = currentInstance;
  21255. var currentResponder = eventResponderInstance.responder;
  21256. var focusScopeFiber = eventResponderInstance.fiber;
  21257. if (deep) {
  21258. var deepNode = focusScopeFiber.return;
  21259. while (deepNode !== null) {
  21260. if (doesFiberHaveResponder(deepNode, currentResponder)) {
  21261. focusScopeFiber = deepNode;
  21262. }
  21263. deepNode = deepNode.return;
  21264. }
  21265. }
  21266. var child = focusScopeFiber.child;
  21267. if (child !== null) {
  21268. collectFocusableElements(child, focusableElements);
  21269. }
  21270. return focusableElements;
  21271. },
  21272. getActiveDocument: getActiveDocument,
  21273. objectAssign: _assign,
  21274. getTimeStamp: function () {
  21275. validateResponderContext();
  21276. return currentTimeStamp;
  21277. },
  21278. isTargetWithinHostComponent: function (target, elementType) {
  21279. validateResponderContext();
  21280. var fiber = getClosestInstanceFromNode(target);
  21281. while (fiber !== null) {
  21282. if (fiber.tag === HostComponent && fiber.type === elementType) {
  21283. return true;
  21284. }
  21285. fiber = fiber.return;
  21286. }
  21287. return false;
  21288. },
  21289. enqueueStateRestore: enqueueStateRestore
  21290. };
  21291. function validateEventValue(eventValue) {
  21292. if (typeof eventValue === 'object' && eventValue !== null) {
  21293. var target = eventValue.target,
  21294. type = eventValue.type,
  21295. _timeStamp = eventValue.timeStamp;
  21296. if (target == null || type == null || _timeStamp == null) {
  21297. throw new Error('context.dispatchEvent: "target", "timeStamp", and "type" fields on event object are required.');
  21298. }
  21299. var showWarning = function (name) {
  21300. {
  21301. warning$1(false, '%s is not available on event objects created from event responder modules (React Flare). ' + 'Try wrapping in a conditional, i.e. `if (event.type !== "press") { event.%s }`', name, name);
  21302. }
  21303. };
  21304. eventValue.preventDefault = function () {
  21305. {
  21306. showWarning('preventDefault()');
  21307. }
  21308. };
  21309. eventValue.stopPropagation = function () {
  21310. {
  21311. showWarning('stopPropagation()');
  21312. }
  21313. };
  21314. eventValue.isDefaultPrevented = function () {
  21315. {
  21316. showWarning('isDefaultPrevented()');
  21317. }
  21318. };
  21319. eventValue.isPropagationStopped = function () {
  21320. {
  21321. showWarning('isPropagationStopped()');
  21322. }
  21323. };
  21324. // $FlowFixMe: we don't need value, Flow thinks we do
  21325. Object.defineProperty(eventValue, 'nativeEvent', {
  21326. get: function () {
  21327. {
  21328. showWarning('nativeEvent');
  21329. }
  21330. }
  21331. });
  21332. }
  21333. }
  21334. function collectFocusableElements(node, focusableElements) {
  21335. if (isFiberSuspenseAndTimedOut(node)) {
  21336. var fallbackChild = getSuspenseFallbackChild(node);
  21337. if (fallbackChild !== null) {
  21338. collectFocusableElements(fallbackChild, focusableElements);
  21339. }
  21340. } else {
  21341. if (isFiberHostComponentFocusable(node)) {
  21342. focusableElements.push(node.stateNode);
  21343. } else {
  21344. var child = node.child;
  21345. if (child !== null) {
  21346. collectFocusableElements(child, focusableElements);
  21347. }
  21348. }
  21349. }
  21350. var sibling = node.sibling;
  21351. if (sibling !== null) {
  21352. collectFocusableElements(sibling, focusableElements);
  21353. }
  21354. }
  21355. function createEventQueueItem(value, listener) {
  21356. return {
  21357. value: value,
  21358. listener: listener
  21359. };
  21360. }
  21361. function doesFiberHaveResponder(fiber, responder) {
  21362. if (fiber.tag === HostComponent) {
  21363. var dependencies = fiber.dependencies;
  21364. if (dependencies !== null) {
  21365. var respondersMap = dependencies.responders;
  21366. if (respondersMap !== null && respondersMap.has(responder)) {
  21367. return true;
  21368. }
  21369. }
  21370. }
  21371. return false;
  21372. }
  21373. function getActiveDocument() {
  21374. return currentDocument;
  21375. }
  21376. function releaseOwnershipForEventResponderInstance(eventResponderInstance) {
  21377. if (globalOwner === eventResponderInstance) {
  21378. globalOwner = null;
  21379. triggerOwnershipListeners();
  21380. return true;
  21381. }
  21382. return false;
  21383. }
  21384. function isFiberHostComponentFocusable(fiber) {
  21385. if (fiber.tag !== HostComponent) {
  21386. return false;
  21387. }
  21388. var type = fiber.type,
  21389. memoizedProps = fiber.memoizedProps;
  21390. if (memoizedProps.tabIndex === -1 || memoizedProps.disabled) {
  21391. return false;
  21392. }
  21393. if (memoizedProps.tabIndex === 0 || memoizedProps.contentEditable === true) {
  21394. return true;
  21395. }
  21396. if (type === 'a' || type === 'area') {
  21397. return !!memoizedProps.href && memoizedProps.rel !== 'ignore';
  21398. }
  21399. if (type === 'input') {
  21400. return memoizedProps.type !== 'hidden' && memoizedProps.type !== 'file';
  21401. }
  21402. return type === 'button' || type === 'textarea' || type === 'object' || type === 'select' || type === 'iframe' || type === 'embed';
  21403. }
  21404. function processTimers(timers, delay) {
  21405. var timersArr = Array.from(timers.values());
  21406. currentEventQueuePriority = ContinuousEvent;
  21407. try {
  21408. for (var i = 0; i < timersArr.length; i++) {
  21409. var _timersArr$i = timersArr[i],
  21410. _instance = _timersArr$i.instance,
  21411. _func = _timersArr$i.func,
  21412. _id2 = _timersArr$i.id,
  21413. _timeStamp2 = _timersArr$i.timeStamp;
  21414. currentInstance = _instance;
  21415. currentEventQueue = [];
  21416. currentTimeStamp = _timeStamp2 + delay;
  21417. try {
  21418. _func();
  21419. } finally {
  21420. activeTimeouts.delete(_id2);
  21421. }
  21422. }
  21423. processEventQueue();
  21424. } finally {
  21425. currentTimers = null;
  21426. currentInstance = null;
  21427. currentEventQueue = null;
  21428. currentTimeStamp = 0;
  21429. }
  21430. }
  21431. function createDOMResponderEvent(topLevelType, nativeEvent, nativeEventTarget, passive, passiveSupported) {
  21432. var _ref = nativeEvent,
  21433. pointerType = _ref.pointerType;
  21434. var eventPointerType = '';
  21435. var pointerId = null;
  21436. if (pointerType !== undefined) {
  21437. eventPointerType = pointerType;
  21438. pointerId = nativeEvent.pointerId;
  21439. } else if (nativeEvent.key !== undefined) {
  21440. eventPointerType = 'keyboard';
  21441. } else if (nativeEvent.button !== undefined) {
  21442. eventPointerType = 'mouse';
  21443. } else if (nativeEvent.changedTouches !== undefined) {
  21444. eventPointerType = 'touch';
  21445. }
  21446. return {
  21447. nativeEvent: nativeEvent,
  21448. passive: passive,
  21449. passiveSupported: passiveSupported,
  21450. pointerId: pointerId,
  21451. pointerType: eventPointerType,
  21452. responderTarget: null,
  21453. target: nativeEventTarget,
  21454. type: topLevelType
  21455. };
  21456. }
  21457. function processEvents(eventQueue) {
  21458. for (var i = 0, length = eventQueue.length; i < length; i++) {
  21459. var _eventQueue$i = eventQueue[i],
  21460. _value = _eventQueue$i.value,
  21461. _listener = _eventQueue$i.listener;
  21462. var type = typeof _value === 'object' && _value !== null ? _value.type : '';
  21463. invokeGuardedCallbackAndCatchFirstError(type, _listener, undefined, _value);
  21464. }
  21465. }
  21466. function processEventQueue() {
  21467. var eventQueue = currentEventQueue;
  21468. if (eventQueue.length === 0) {
  21469. return;
  21470. }
  21471. switch (currentEventQueuePriority) {
  21472. case DiscreteEvent:
  21473. {
  21474. flushDiscreteUpdatesIfNeeded(currentTimeStamp);
  21475. discreteUpdates(function () {
  21476. batchedEventUpdates(processEvents, eventQueue);
  21477. });
  21478. break;
  21479. }
  21480. case UserBlockingEvent:
  21481. {
  21482. if (enableUserBlockingEvents) {
  21483. runWithPriority$1(UserBlockingPriority$1, batchedEventUpdates.bind(null, processEvents, eventQueue));
  21484. } else {
  21485. batchedEventUpdates(processEvents, eventQueue);
  21486. }
  21487. break;
  21488. }
  21489. case ContinuousEvent:
  21490. {
  21491. batchedEventUpdates(processEvents, eventQueue);
  21492. break;
  21493. }
  21494. }
  21495. }
  21496. function responderEventTypesContainType(eventTypes, type) {
  21497. for (var i = 0, len = eventTypes.length; i < len; i++) {
  21498. if (eventTypes[i] === type) {
  21499. return true;
  21500. }
  21501. }
  21502. return false;
  21503. }
  21504. function validateResponderTargetEventTypes(eventType, responder) {
  21505. var targetEventTypes = responder.targetEventTypes;
  21506. // Validate the target event type exists on the responder
  21507. if (targetEventTypes !== null) {
  21508. return responderEventTypesContainType(targetEventTypes, eventType);
  21509. }
  21510. return false;
  21511. }
  21512. function validateOwnership(responderInstance) {
  21513. return globalOwner === null || globalOwner === responderInstance;
  21514. }
  21515. function traverseAndHandleEventResponderInstances(topLevelType, targetFiber, nativeEvent, nativeEventTarget, eventSystemFlags) {
  21516. var isPassiveEvent = (eventSystemFlags & IS_PASSIVE) !== 0;
  21517. var isPassiveSupported = (eventSystemFlags & PASSIVE_NOT_SUPPORTED) === 0;
  21518. var isPassive = isPassiveEvent || !isPassiveSupported;
  21519. var eventType = isPassive ? topLevelType : topLevelType + '_active';
  21520. // Trigger event responders in this order:
  21521. // - Bubble target responder phase
  21522. // - Root responder phase
  21523. var visitedResponders = new Set();
  21524. var responderEvent = createDOMResponderEvent(topLevelType, nativeEvent, nativeEventTarget, isPassiveEvent, isPassiveSupported);
  21525. var node = targetFiber;
  21526. while (node !== null) {
  21527. var _node = node,
  21528. dependencies = _node.dependencies,
  21529. tag = _node.tag;
  21530. if (tag === HostComponent && dependencies !== null) {
  21531. var respondersMap = dependencies.responders;
  21532. if (respondersMap !== null) {
  21533. var responderInstances = Array.from(respondersMap.values());
  21534. for (var i = 0, length = responderInstances.length; i < length; i++) {
  21535. var responderInstance = responderInstances[i];
  21536. if (validateOwnership(responderInstance)) {
  21537. var props = responderInstance.props,
  21538. responder = responderInstance.responder,
  21539. state = responderInstance.state,
  21540. target = responderInstance.target;
  21541. if (!visitedResponders.has(responder) && validateResponderTargetEventTypes(eventType, responder)) {
  21542. visitedResponders.add(responder);
  21543. var onEvent = responder.onEvent;
  21544. if (onEvent !== null) {
  21545. currentInstance = responderInstance;
  21546. responderEvent.responderTarget = target;
  21547. onEvent(responderEvent, eventResponderContext, props, state);
  21548. }
  21549. }
  21550. }
  21551. }
  21552. }
  21553. }
  21554. node = node.return;
  21555. }
  21556. // Root phase
  21557. var rootEventResponderInstances = rootEventTypesToEventResponderInstances.get(eventType);
  21558. if (rootEventResponderInstances !== undefined) {
  21559. var _responderInstances = Array.from(rootEventResponderInstances);
  21560. for (var _i = 0; _i < _responderInstances.length; _i++) {
  21561. var _responderInstance = _responderInstances[_i];
  21562. if (!validateOwnership(_responderInstance)) {
  21563. continue;
  21564. }
  21565. var _props = _responderInstance.props,
  21566. _responder = _responderInstance.responder,
  21567. _state = _responderInstance.state,
  21568. _target = _responderInstance.target;
  21569. var onRootEvent = _responder.onRootEvent;
  21570. if (onRootEvent !== null) {
  21571. currentInstance = _responderInstance;
  21572. responderEvent.responderTarget = _target;
  21573. onRootEvent(responderEvent, eventResponderContext, _props, _state);
  21574. }
  21575. }
  21576. }
  21577. }
  21578. function triggerOwnershipListeners() {
  21579. var listeningInstances = Array.from(ownershipChangeListeners);
  21580. var previousInstance = currentInstance;
  21581. var previousEventQueuePriority = currentEventQueuePriority;
  21582. var previousEventQueue = currentEventQueue;
  21583. try {
  21584. for (var i = 0; i < listeningInstances.length; i++) {
  21585. var _instance2 = listeningInstances[i];
  21586. var props = _instance2.props,
  21587. responder = _instance2.responder,
  21588. state = _instance2.state;
  21589. currentInstance = _instance2;
  21590. currentEventQueuePriority = ContinuousEvent;
  21591. currentEventQueue = [];
  21592. var onOwnershipChange = responder.onOwnershipChange;
  21593. if (onOwnershipChange !== null) {
  21594. onOwnershipChange(eventResponderContext, props, state);
  21595. }
  21596. }
  21597. processEventQueue();
  21598. } finally {
  21599. currentInstance = previousInstance;
  21600. currentEventQueue = previousEventQueue;
  21601. currentEventQueuePriority = previousEventQueuePriority;
  21602. }
  21603. }
  21604. function mountEventResponder(responder, responderInstance, props, state) {
  21605. if (responder.onOwnershipChange !== null) {
  21606. ownershipChangeListeners.add(responderInstance);
  21607. }
  21608. var onMount = responder.onMount;
  21609. if (onMount !== null) {
  21610. currentEventQueuePriority = ContinuousEvent;
  21611. currentInstance = responderInstance;
  21612. currentEventQueue = [];
  21613. try {
  21614. onMount(eventResponderContext, props, state);
  21615. processEventQueue();
  21616. } finally {
  21617. currentEventQueue = null;
  21618. currentInstance = null;
  21619. currentTimers = null;
  21620. }
  21621. }
  21622. }
  21623. function unmountEventResponder(responderInstance) {
  21624. var responder = responderInstance.responder;
  21625. var onUnmount = responder.onUnmount;
  21626. if (onUnmount !== null) {
  21627. var props = responderInstance.props,
  21628. state = responderInstance.state;
  21629. currentEventQueue = [];
  21630. currentEventQueuePriority = ContinuousEvent;
  21631. currentInstance = responderInstance;
  21632. try {
  21633. onUnmount(eventResponderContext, props, state);
  21634. processEventQueue();
  21635. } finally {
  21636. currentEventQueue = null;
  21637. currentInstance = null;
  21638. currentTimers = null;
  21639. }
  21640. }
  21641. releaseOwnershipForEventResponderInstance(responderInstance);
  21642. if (responder.onOwnershipChange !== null) {
  21643. ownershipChangeListeners.delete(responderInstance);
  21644. }
  21645. var rootEventTypesSet = responderInstance.rootEventTypes;
  21646. if (rootEventTypesSet !== null) {
  21647. var rootEventTypes = Array.from(rootEventTypesSet);
  21648. for (var i = 0; i < rootEventTypes.length; i++) {
  21649. var topLevelEventType = rootEventTypes[i];
  21650. var rootEventResponderInstances = rootEventTypesToEventResponderInstances.get(topLevelEventType);
  21651. if (rootEventResponderInstances !== undefined) {
  21652. rootEventResponderInstances.delete(responderInstance);
  21653. }
  21654. }
  21655. }
  21656. }
  21657. function validateResponderContext() {
  21658. (function () {
  21659. if (!(currentInstance !== null)) {
  21660. {
  21661. throw ReactError(Error('An event responder context was used outside of an event cycle. Use context.setTimeout() to use asynchronous responder context outside of event cycle .'));
  21662. }
  21663. }
  21664. })();
  21665. }
  21666. function dispatchEventForResponderEventSystem(topLevelType, targetFiber, nativeEvent, nativeEventTarget, eventSystemFlags) {
  21667. if (enableFlareAPI) {
  21668. var previousEventQueue = currentEventQueue;
  21669. var previousInstance = currentInstance;
  21670. var previousTimers = currentTimers;
  21671. var previousTimeStamp = currentTimeStamp;
  21672. var previousDocument = currentDocument;
  21673. var previousEventQueuePriority = currentEventQueuePriority;
  21674. currentTimers = null;
  21675. currentEventQueue = [];
  21676. currentEventQueuePriority = ContinuousEvent;
  21677. // nodeType 9 is DOCUMENT_NODE
  21678. currentDocument = nativeEventTarget.nodeType === 9 ? nativeEventTarget : nativeEventTarget.ownerDocument;
  21679. // We might want to control timeStamp another way here
  21680. currentTimeStamp = nativeEvent.timeStamp;
  21681. try {
  21682. traverseAndHandleEventResponderInstances(topLevelType, targetFiber, nativeEvent, nativeEventTarget, eventSystemFlags);
  21683. processEventQueue();
  21684. } finally {
  21685. currentTimers = previousTimers;
  21686. currentInstance = previousInstance;
  21687. currentEventQueue = previousEventQueue;
  21688. currentTimeStamp = previousTimeStamp;
  21689. currentDocument = previousDocument;
  21690. currentEventQueuePriority = previousEventQueuePriority;
  21691. }
  21692. }
  21693. }
  21694. function addRootEventTypesForResponderInstance(responderInstance, rootEventTypes) {
  21695. for (var i = 0; i < rootEventTypes.length; i++) {
  21696. var rootEventType = rootEventTypes[i];
  21697. registerRootEventType(rootEventType, responderInstance);
  21698. }
  21699. }
  21700. function registerRootEventType(rootEventType, eventResponderInstance) {
  21701. var rootEventResponderInstances = rootEventTypesToEventResponderInstances.get(rootEventType);
  21702. if (rootEventResponderInstances === undefined) {
  21703. rootEventResponderInstances = new Set();
  21704. rootEventTypesToEventResponderInstances.set(rootEventType, rootEventResponderInstances);
  21705. }
  21706. var rootEventTypesSet = eventResponderInstance.rootEventTypes;
  21707. if (rootEventTypesSet === null) {
  21708. rootEventTypesSet = eventResponderInstance.rootEventTypes = new Set();
  21709. }
  21710. (function () {
  21711. if (!!rootEventTypesSet.has(rootEventType)) {
  21712. {
  21713. throw ReactError(Error('addRootEventTypes() found a duplicate root event type of "' + rootEventType + '". This might be because the event type exists in the event responder "rootEventTypes" array or because of a previous addRootEventTypes() using this root event type.'));
  21714. }
  21715. }
  21716. })();
  21717. rootEventTypesSet.add(rootEventType);
  21718. rootEventResponderInstances.add(eventResponderInstance);
  21719. }
  21720. /**
  21721. * `ReactInstanceMap` maintains a mapping from a public facing stateful
  21722. * instance (key) and the internal representation (value). This allows public
  21723. * methods to accept the user facing instance as an argument and map them back
  21724. * to internal methods.
  21725. *
  21726. * Note that this module is currently shared and assumed to be stateless.
  21727. * If this becomes an actual Map, that will break.
  21728. */
  21729. /**
  21730. * This API should be called `delete` but we'd have to make sure to always
  21731. * transform these to strings for IE support. When this transform is fully
  21732. * supported we can rename it.
  21733. */
  21734. function get(key) {
  21735. return key._reactInternalFiber;
  21736. }
  21737. function has(key) {
  21738. return key._reactInternalFiber !== undefined;
  21739. }
  21740. function set(key, value) {
  21741. key._reactInternalFiber = value;
  21742. }
  21743. // Don't change these two values. They're used by React Dev Tools.
  21744. var NoEffect = /* */0;
  21745. var PerformedWork = /* */1;
  21746. // You can change the rest (and add more).
  21747. var Placement = /* */2;
  21748. var Update = /* */4;
  21749. var PlacementAndUpdate = /* */6;
  21750. var Deletion = /* */8;
  21751. var ContentReset = /* */16;
  21752. var Callback = /* */32;
  21753. var DidCapture = /* */64;
  21754. var Ref = /* */128;
  21755. var Snapshot = /* */256;
  21756. var Passive = /* */512;
  21757. // Passive & Update & Callback & Ref & Snapshot
  21758. var LifecycleEffectMask = /* */932;
  21759. // Union of all host effects
  21760. var HostEffectMask = /* */1023;
  21761. var Incomplete = /* */1024;
  21762. var ShouldCapture = /* */2048;
  21763. var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
  21764. var MOUNTING = 1;
  21765. var MOUNTED = 2;
  21766. var UNMOUNTED = 3;
  21767. function isFiberMountedImpl(fiber) {
  21768. var node = fiber;
  21769. if (!fiber.alternate) {
  21770. // If there is no alternate, this might be a new tree that isn't inserted
  21771. // yet. If it is, then it will have a pending insertion effect on it.
  21772. if ((node.effectTag & Placement) !== NoEffect) {
  21773. return MOUNTING;
  21774. }
  21775. while (node.return) {
  21776. node = node.return;
  21777. if ((node.effectTag & Placement) !== NoEffect) {
  21778. return MOUNTING;
  21779. }
  21780. }
  21781. } else {
  21782. while (node.return) {
  21783. node = node.return;
  21784. }
  21785. }
  21786. if (node.tag === HostRoot) {
  21787. // TODO: Check if this was a nested HostRoot when used with
  21788. // renderContainerIntoSubtree.
  21789. return MOUNTED;
  21790. }
  21791. // If we didn't hit the root, that means that we're in an disconnected tree
  21792. // that has been unmounted.
  21793. return UNMOUNTED;
  21794. }
  21795. function isFiberMounted(fiber) {
  21796. return isFiberMountedImpl(fiber) === MOUNTED;
  21797. }
  21798. function isMounted(component) {
  21799. {
  21800. var owner = ReactCurrentOwner$1.current;
  21801. if (owner !== null && owner.tag === ClassComponent) {
  21802. var ownerFiber = owner;
  21803. var instance = ownerFiber.stateNode;
  21804. !instance._warnedAboutRefsInRender ? warningWithoutStack$1(false, '%s is accessing isMounted inside its render() function. ' + 'render() should be a pure function of props and state. It should ' + 'never access something that requires stale data from the previous ' + 'render, such as refs. Move this logic to componentDidMount and ' + 'componentDidUpdate instead.', getComponentName(ownerFiber.type) || 'A component') : void 0;
  21805. instance._warnedAboutRefsInRender = true;
  21806. }
  21807. }
  21808. var fiber = get(component);
  21809. if (!fiber) {
  21810. return false;
  21811. }
  21812. return isFiberMountedImpl(fiber) === MOUNTED;
  21813. }
  21814. function assertIsMounted(fiber) {
  21815. (function () {
  21816. if (!(isFiberMountedImpl(fiber) === MOUNTED)) {
  21817. {
  21818. throw ReactError(Error('Unable to find node on an unmounted component.'));
  21819. }
  21820. }
  21821. })();
  21822. }
  21823. function findCurrentFiberUsingSlowPath(fiber) {
  21824. var alternate = fiber.alternate;
  21825. if (!alternate) {
  21826. // If there is no alternate, then we only need to check if it is mounted.
  21827. var state = isFiberMountedImpl(fiber);
  21828. (function () {
  21829. if (!(state !== UNMOUNTED)) {
  21830. {
  21831. throw ReactError(Error('Unable to find node on an unmounted component.'));
  21832. }
  21833. }
  21834. })();
  21835. if (state === MOUNTING) {
  21836. return null;
  21837. }
  21838. return fiber;
  21839. }
  21840. // If we have two possible branches, we'll walk backwards up to the root
  21841. // to see what path the root points to. On the way we may hit one of the
  21842. // special cases and we'll deal with them.
  21843. var a = fiber;
  21844. var b = alternate;
  21845. while (true) {
  21846. var parentA = a.return;
  21847. if (parentA === null) {
  21848. // We're at the root.
  21849. break;
  21850. }
  21851. var parentB = parentA.alternate;
  21852. if (parentB === null) {
  21853. // There is no alternate. This is an unusual case. Currently, it only
  21854. // happens when a Suspense component is hidden. An extra fragment fiber
  21855. // is inserted in between the Suspense fiber and its children. Skip
  21856. // over this extra fragment fiber and proceed to the next parent.
  21857. var nextParent = parentA.return;
  21858. if (nextParent !== null) {
  21859. a = b = nextParent;
  21860. continue;
  21861. }
  21862. // If there's no parent, we're at the root.
  21863. break;
  21864. }
  21865. // If both copies of the parent fiber point to the same child, we can
  21866. // assume that the child is current. This happens when we bailout on low
  21867. // priority: the bailed out fiber's child reuses the current child.
  21868. if (parentA.child === parentB.child) {
  21869. var child = parentA.child;
  21870. while (child) {
  21871. if (child === a) {
  21872. // We've determined that A is the current branch.
  21873. assertIsMounted(parentA);
  21874. return fiber;
  21875. }
  21876. if (child === b) {
  21877. // We've determined that B is the current branch.
  21878. assertIsMounted(parentA);
  21879. return alternate;
  21880. }
  21881. child = child.sibling;
  21882. }
  21883. // We should never have an alternate for any mounting node. So the only
  21884. // way this could possibly happen is if this was unmounted, if at all.
  21885. (function () {
  21886. {
  21887. {
  21888. throw ReactError(Error('Unable to find node on an unmounted component.'));
  21889. }
  21890. }
  21891. })();
  21892. }
  21893. if (a.return !== b.return) {
  21894. // The return pointer of A and the return pointer of B point to different
  21895. // fibers. We assume that return pointers never criss-cross, so A must
  21896. // belong to the child set of A.return, and B must belong to the child
  21897. // set of B.return.
  21898. a = parentA;
  21899. b = parentB;
  21900. } else {
  21901. // The return pointers point to the same fiber. We'll have to use the
  21902. // default, slow path: scan the child sets of each parent alternate to see
  21903. // which child belongs to which set.
  21904. //
  21905. // Search parent A's child set
  21906. var didFindChild = false;
  21907. var _child = parentA.child;
  21908. while (_child) {
  21909. if (_child === a) {
  21910. didFindChild = true;
  21911. a = parentA;
  21912. b = parentB;
  21913. break;
  21914. }
  21915. if (_child === b) {
  21916. didFindChild = true;
  21917. b = parentA;
  21918. a = parentB;
  21919. break;
  21920. }
  21921. _child = _child.sibling;
  21922. }
  21923. if (!didFindChild) {
  21924. // Search parent B's child set
  21925. _child = parentB.child;
  21926. while (_child) {
  21927. if (_child === a) {
  21928. didFindChild = true;
  21929. a = parentB;
  21930. b = parentA;
  21931. break;
  21932. }
  21933. if (_child === b) {
  21934. didFindChild = true;
  21935. b = parentB;
  21936. a = parentA;
  21937. break;
  21938. }
  21939. _child = _child.sibling;
  21940. }
  21941. (function () {
  21942. if (!didFindChild) {
  21943. {
  21944. throw ReactError(Error('Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.'));
  21945. }
  21946. }
  21947. })();
  21948. }
  21949. }
  21950. (function () {
  21951. if (!(a.alternate === b)) {
  21952. {
  21953. throw ReactError(Error('Return fibers should always be each others\' alternates. This error is likely caused by a bug in React. Please file an issue.'));
  21954. }
  21955. }
  21956. })();
  21957. }
  21958. // If the root is not a host container, we're in a disconnected tree. I.e.
  21959. // unmounted.
  21960. (function () {
  21961. if (!(a.tag === HostRoot)) {
  21962. {
  21963. throw ReactError(Error('Unable to find node on an unmounted component.'));
  21964. }
  21965. }
  21966. })();
  21967. if (a.stateNode.current === a) {
  21968. // We've determined that A is the current branch.
  21969. return fiber;
  21970. }
  21971. // Otherwise B has to be current branch.
  21972. return alternate;
  21973. }
  21974. function findCurrentHostFiber(parent) {
  21975. var currentParent = findCurrentFiberUsingSlowPath(parent);
  21976. if (!currentParent) {
  21977. return null;
  21978. }
  21979. // Next we'll drill down this component to find the first HostComponent/Text.
  21980. var node = currentParent;
  21981. while (true) {
  21982. if (node.tag === HostComponent || node.tag === HostText) {
  21983. return node;
  21984. } else if (node.child) {
  21985. node.child.return = node;
  21986. node = node.child;
  21987. continue;
  21988. }
  21989. if (node === currentParent) {
  21990. return null;
  21991. }
  21992. while (!node.sibling) {
  21993. if (!node.return || node.return === currentParent) {
  21994. return null;
  21995. }
  21996. node = node.return;
  21997. }
  21998. node.sibling.return = node.return;
  21999. node = node.sibling;
  22000. }
  22001. // Flow needs the return null here, but ESLint complains about it.
  22002. // eslint-disable-next-line no-unreachable
  22003. return null;
  22004. }
  22005. function findCurrentHostFiberWithNoPortals(parent) {
  22006. var currentParent = findCurrentFiberUsingSlowPath(parent);
  22007. if (!currentParent) {
  22008. return null;
  22009. }
  22010. // Next we'll drill down this component to find the first HostComponent/Text.
  22011. var node = currentParent;
  22012. while (true) {
  22013. if (node.tag === HostComponent || node.tag === HostText || node.tag === FundamentalComponent) {
  22014. return node;
  22015. } else if (node.child && node.tag !== HostPortal) {
  22016. node.child.return = node;
  22017. node = node.child;
  22018. continue;
  22019. }
  22020. if (node === currentParent) {
  22021. return null;
  22022. }
  22023. while (!node.sibling) {
  22024. if (!node.return || node.return === currentParent) {
  22025. return null;
  22026. }
  22027. node = node.return;
  22028. }
  22029. node.sibling.return = node.return;
  22030. node = node.sibling;
  22031. }
  22032. // Flow needs the return null here, but ESLint complains about it.
  22033. // eslint-disable-next-line no-unreachable
  22034. return null;
  22035. }
  22036. function addEventBubbleListener(element, eventType, listener) {
  22037. element.addEventListener(eventType, listener, false);
  22038. }
  22039. function addEventCaptureListener(element, eventType, listener) {
  22040. element.addEventListener(eventType, listener, true);
  22041. }
  22042. function addEventCaptureListenerWithPassiveFlag(element, eventType, listener, passive) {
  22043. element.addEventListener(eventType, listener, {
  22044. capture: true,
  22045. passive: passive
  22046. });
  22047. }
  22048. /**
  22049. * @interface Event
  22050. * @see http://www.w3.org/TR/css3-animations/#AnimationEvent-interface
  22051. * @see https://developer.mozilla.org/en-US/docs/Web/API/AnimationEvent
  22052. */
  22053. var SyntheticAnimationEvent = SyntheticEvent.extend({
  22054. animationName: null,
  22055. elapsedTime: null,
  22056. pseudoElement: null
  22057. });
  22058. /**
  22059. * @interface Event
  22060. * @see http://www.w3.org/TR/clipboard-apis/
  22061. */
  22062. var SyntheticClipboardEvent = SyntheticEvent.extend({
  22063. clipboardData: function (event) {
  22064. return 'clipboardData' in event ? event.clipboardData : window.clipboardData;
  22065. }
  22066. });
  22067. /**
  22068. * @interface FocusEvent
  22069. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  22070. */
  22071. var SyntheticFocusEvent = SyntheticUIEvent.extend({
  22072. relatedTarget: null
  22073. });
  22074. /**
  22075. * `charCode` represents the actual "character code" and is safe to use with
  22076. * `String.fromCharCode`. As such, only keys that correspond to printable
  22077. * characters produce a valid `charCode`, the only exception to this is Enter.
  22078. * The Tab-key is considered non-printable and does not have a `charCode`,
  22079. * presumably because it does not produce a tab-character in browsers.
  22080. *
  22081. * @param {object} nativeEvent Native browser event.
  22082. * @return {number} Normalized `charCode` property.
  22083. */
  22084. function getEventCharCode(nativeEvent) {
  22085. var charCode = void 0;
  22086. var keyCode = nativeEvent.keyCode;
  22087. if ('charCode' in nativeEvent) {
  22088. charCode = nativeEvent.charCode;
  22089. // FF does not set `charCode` for the Enter-key, check against `keyCode`.
  22090. if (charCode === 0 && keyCode === 13) {
  22091. charCode = 13;
  22092. }
  22093. } else {
  22094. // IE8 does not implement `charCode`, but `keyCode` has the correct value.
  22095. charCode = keyCode;
  22096. }
  22097. // IE and Edge (on Windows) and Chrome / Safari (on Windows and Linux)
  22098. // report Enter as charCode 10 when ctrl is pressed.
  22099. if (charCode === 10) {
  22100. charCode = 13;
  22101. }
  22102. // Some non-printable keys are reported in `charCode`/`keyCode`, discard them.
  22103. // Must not discard the (non-)printable Enter-key.
  22104. if (charCode >= 32 || charCode === 13) {
  22105. return charCode;
  22106. }
  22107. return 0;
  22108. }
  22109. /**
  22110. * Normalization of deprecated HTML5 `key` values
  22111. * @see https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent#Key_names
  22112. */
  22113. var normalizeKey = {
  22114. Esc: 'Escape',
  22115. Spacebar: ' ',
  22116. Left: 'ArrowLeft',
  22117. Up: 'ArrowUp',
  22118. Right: 'ArrowRight',
  22119. Down: 'ArrowDown',
  22120. Del: 'Delete',
  22121. Win: 'OS',
  22122. Menu: 'ContextMenu',
  22123. Apps: 'ContextMenu',
  22124. Scroll: 'ScrollLock',
  22125. MozPrintableKey: 'Unidentified'
  22126. };
  22127. /**
  22128. * Translation from legacy `keyCode` to HTML5 `key`
  22129. * Only special keys supported, all others depend on keyboard layout or browser
  22130. * @see https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent#Key_names
  22131. */
  22132. var translateToKey = {
  22133. '8': 'Backspace',
  22134. '9': 'Tab',
  22135. '12': 'Clear',
  22136. '13': 'Enter',
  22137. '16': 'Shift',
  22138. '17': 'Control',
  22139. '18': 'Alt',
  22140. '19': 'Pause',
  22141. '20': 'CapsLock',
  22142. '27': 'Escape',
  22143. '32': ' ',
  22144. '33': 'PageUp',
  22145. '34': 'PageDown',
  22146. '35': 'End',
  22147. '36': 'Home',
  22148. '37': 'ArrowLeft',
  22149. '38': 'ArrowUp',
  22150. '39': 'ArrowRight',
  22151. '40': 'ArrowDown',
  22152. '45': 'Insert',
  22153. '46': 'Delete',
  22154. '112': 'F1',
  22155. '113': 'F2',
  22156. '114': 'F3',
  22157. '115': 'F4',
  22158. '116': 'F5',
  22159. '117': 'F6',
  22160. '118': 'F7',
  22161. '119': 'F8',
  22162. '120': 'F9',
  22163. '121': 'F10',
  22164. '122': 'F11',
  22165. '123': 'F12',
  22166. '144': 'NumLock',
  22167. '145': 'ScrollLock',
  22168. '224': 'Meta'
  22169. };
  22170. /**
  22171. * @param {object} nativeEvent Native browser event.
  22172. * @return {string} Normalized `key` property.
  22173. */
  22174. function getEventKey(nativeEvent) {
  22175. if (nativeEvent.key) {
  22176. // Normalize inconsistent values reported by browsers due to
  22177. // implementations of a working draft specification.
  22178. // FireFox implements `key` but returns `MozPrintableKey` for all
  22179. // printable characters (normalized to `Unidentified`), ignore it.
  22180. var key = normalizeKey[nativeEvent.key] || nativeEvent.key;
  22181. if (key !== 'Unidentified') {
  22182. return key;
  22183. }
  22184. }
  22185. // Browser does not implement `key`, polyfill as much of it as we can.
  22186. if (nativeEvent.type === 'keypress') {
  22187. var charCode = getEventCharCode(nativeEvent);
  22188. // The enter-key is technically both printable and non-printable and can
  22189. // thus be captured by `keypress`, no other non-printable key should.
  22190. return charCode === 13 ? 'Enter' : String.fromCharCode(charCode);
  22191. }
  22192. if (nativeEvent.type === 'keydown' || nativeEvent.type === 'keyup') {
  22193. // While user keyboard layout determines the actual meaning of each
  22194. // `keyCode` value, almost all function keys have a universal value.
  22195. return translateToKey[nativeEvent.keyCode] || 'Unidentified';
  22196. }
  22197. return '';
  22198. }
  22199. /**
  22200. * @interface KeyboardEvent
  22201. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  22202. */
  22203. var SyntheticKeyboardEvent = SyntheticUIEvent.extend({
  22204. key: getEventKey,
  22205. location: null,
  22206. ctrlKey: null,
  22207. shiftKey: null,
  22208. altKey: null,
  22209. metaKey: null,
  22210. repeat: null,
  22211. locale: null,
  22212. getModifierState: getEventModifierState,
  22213. // Legacy Interface
  22214. charCode: function (event) {
  22215. // `charCode` is the result of a KeyPress event and represents the value of
  22216. // the actual printable character.
  22217. // KeyPress is deprecated, but its replacement is not yet final and not
  22218. // implemented in any major browser. Only KeyPress has charCode.
  22219. if (event.type === 'keypress') {
  22220. return getEventCharCode(event);
  22221. }
  22222. return 0;
  22223. },
  22224. keyCode: function (event) {
  22225. // `keyCode` is the result of a KeyDown/Up event and represents the value of
  22226. // physical keyboard key.
  22227. // The actual meaning of the value depends on the users' keyboard layout
  22228. // which cannot be detected. Assuming that it is a US keyboard layout
  22229. // provides a surprisingly accurate mapping for US and European users.
  22230. // Due to this, it is left to the user to implement at this time.
  22231. if (event.type === 'keydown' || event.type === 'keyup') {
  22232. return event.keyCode;
  22233. }
  22234. return 0;
  22235. },
  22236. which: function (event) {
  22237. // `which` is an alias for either `keyCode` or `charCode` depending on the
  22238. // type of the event.
  22239. if (event.type === 'keypress') {
  22240. return getEventCharCode(event);
  22241. }
  22242. if (event.type === 'keydown' || event.type === 'keyup') {
  22243. return event.keyCode;
  22244. }
  22245. return 0;
  22246. }
  22247. });
  22248. /**
  22249. * @interface DragEvent
  22250. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  22251. */
  22252. var SyntheticDragEvent = SyntheticMouseEvent.extend({
  22253. dataTransfer: null
  22254. });
  22255. /**
  22256. * @interface TouchEvent
  22257. * @see http://www.w3.org/TR/touch-events/
  22258. */
  22259. var SyntheticTouchEvent = SyntheticUIEvent.extend({
  22260. touches: null,
  22261. targetTouches: null,
  22262. changedTouches: null,
  22263. altKey: null,
  22264. metaKey: null,
  22265. ctrlKey: null,
  22266. shiftKey: null,
  22267. getModifierState: getEventModifierState
  22268. });
  22269. /**
  22270. * @interface Event
  22271. * @see http://www.w3.org/TR/2009/WD-css3-transitions-20090320/#transition-events-
  22272. * @see https://developer.mozilla.org/en-US/docs/Web/API/TransitionEvent
  22273. */
  22274. var SyntheticTransitionEvent = SyntheticEvent.extend({
  22275. propertyName: null,
  22276. elapsedTime: null,
  22277. pseudoElement: null
  22278. });
  22279. /**
  22280. * @interface WheelEvent
  22281. * @see http://www.w3.org/TR/DOM-Level-3-Events/
  22282. */
  22283. var SyntheticWheelEvent = SyntheticMouseEvent.extend({
  22284. deltaX: function (event) {
  22285. return 'deltaX' in event ? event.deltaX : // Fallback to `wheelDeltaX` for Webkit and normalize (right is positive).
  22286. 'wheelDeltaX' in event ? -event.wheelDeltaX : 0;
  22287. },
  22288. deltaY: function (event) {
  22289. return 'deltaY' in event ? event.deltaY : // Fallback to `wheelDeltaY` for Webkit and normalize (down is positive).
  22290. 'wheelDeltaY' in event ? -event.wheelDeltaY : // Fallback to `wheelDelta` for IE<9 and normalize (down is positive).
  22291. 'wheelDelta' in event ? -event.wheelDelta : 0;
  22292. },
  22293. deltaZ: null,
  22294. // Browsers without "deltaMode" is reporting in raw wheel delta where one
  22295. // notch on the scroll is always +/- 120, roughly equivalent to pixels.
  22296. // A good approximation of DOM_DELTA_LINE (1) is 5% of viewport size or
  22297. // ~40 pixels, for DOM_DELTA_SCREEN (2) it is 87.5% of viewport size.
  22298. deltaMode: null
  22299. });
  22300. /**
  22301. * Turns
  22302. * ['abort', ...]
  22303. * into
  22304. * eventTypes = {
  22305. * 'abort': {
  22306. * phasedRegistrationNames: {
  22307. * bubbled: 'onAbort',
  22308. * captured: 'onAbortCapture',
  22309. * },
  22310. * dependencies: [TOP_ABORT],
  22311. * },
  22312. * ...
  22313. * };
  22314. * topLevelEventsToDispatchConfig = new Map([
  22315. * [TOP_ABORT, { sameConfig }],
  22316. * ]);
  22317. */
  22318. var eventTuples = [
  22319. // Discrete events
  22320. [TOP_BLUR, 'blur', DiscreteEvent], [TOP_CANCEL, 'cancel', DiscreteEvent], [TOP_CLICK, 'click', DiscreteEvent], [TOP_CLOSE, 'close', DiscreteEvent], [TOP_CONTEXT_MENU, 'contextMenu', DiscreteEvent], [TOP_COPY, 'copy', DiscreteEvent], [TOP_CUT, 'cut', DiscreteEvent], [TOP_AUX_CLICK, 'auxClick', DiscreteEvent], [TOP_DOUBLE_CLICK, 'doubleClick', DiscreteEvent], [TOP_DRAG_END, 'dragEnd', DiscreteEvent], [TOP_DRAG_START, 'dragStart', DiscreteEvent], [TOP_DROP, 'drop', DiscreteEvent], [TOP_FOCUS, 'focus', DiscreteEvent], [TOP_INPUT, 'input', DiscreteEvent], [TOP_INVALID, 'invalid', DiscreteEvent], [TOP_KEY_DOWN, 'keyDown', DiscreteEvent], [TOP_KEY_PRESS, 'keyPress', DiscreteEvent], [TOP_KEY_UP, 'keyUp', DiscreteEvent], [TOP_MOUSE_DOWN, 'mouseDown', DiscreteEvent], [TOP_MOUSE_UP, 'mouseUp', DiscreteEvent], [TOP_PASTE, 'paste', DiscreteEvent], [TOP_PAUSE, 'pause', DiscreteEvent], [TOP_PLAY, 'play', DiscreteEvent], [TOP_POINTER_CANCEL, 'pointerCancel', DiscreteEvent], [TOP_POINTER_DOWN, 'pointerDown', DiscreteEvent], [TOP_POINTER_UP, 'pointerUp', DiscreteEvent], [TOP_RATE_CHANGE, 'rateChange', DiscreteEvent], [TOP_RESET, 'reset', DiscreteEvent], [TOP_SEEKED, 'seeked', DiscreteEvent], [TOP_SUBMIT, 'submit', DiscreteEvent], [TOP_TOUCH_CANCEL, 'touchCancel', DiscreteEvent], [TOP_TOUCH_END, 'touchEnd', DiscreteEvent], [TOP_TOUCH_START, 'touchStart', DiscreteEvent], [TOP_VOLUME_CHANGE, 'volumeChange', DiscreteEvent],
  22321. // User-blocking events
  22322. [TOP_DRAG, 'drag', UserBlockingEvent], [TOP_DRAG_ENTER, 'dragEnter', UserBlockingEvent], [TOP_DRAG_EXIT, 'dragExit', UserBlockingEvent], [TOP_DRAG_LEAVE, 'dragLeave', UserBlockingEvent], [TOP_DRAG_OVER, 'dragOver', UserBlockingEvent], [TOP_MOUSE_MOVE, 'mouseMove', UserBlockingEvent], [TOP_MOUSE_OUT, 'mouseOut', UserBlockingEvent], [TOP_MOUSE_OVER, 'mouseOver', UserBlockingEvent], [TOP_POINTER_MOVE, 'pointerMove', UserBlockingEvent], [TOP_POINTER_OUT, 'pointerOut', UserBlockingEvent], [TOP_POINTER_OVER, 'pointerOver', UserBlockingEvent], [TOP_SCROLL, 'scroll', UserBlockingEvent], [TOP_TOGGLE, 'toggle', UserBlockingEvent], [TOP_TOUCH_MOVE, 'touchMove', UserBlockingEvent], [TOP_WHEEL, 'wheel', UserBlockingEvent],
  22323. // Continuous events
  22324. [TOP_ABORT, 'abort', ContinuousEvent], [TOP_ANIMATION_END, 'animationEnd', ContinuousEvent], [TOP_ANIMATION_ITERATION, 'animationIteration', ContinuousEvent], [TOP_ANIMATION_START, 'animationStart', ContinuousEvent], [TOP_CAN_PLAY, 'canPlay', ContinuousEvent], [TOP_CAN_PLAY_THROUGH, 'canPlayThrough', ContinuousEvent], [TOP_DURATION_CHANGE, 'durationChange', ContinuousEvent], [TOP_EMPTIED, 'emptied', ContinuousEvent], [TOP_ENCRYPTED, 'encrypted', ContinuousEvent], [TOP_ENDED, 'ended', ContinuousEvent], [TOP_ERROR, 'error', ContinuousEvent], [TOP_GOT_POINTER_CAPTURE, 'gotPointerCapture', ContinuousEvent], [TOP_LOAD, 'load', ContinuousEvent], [TOP_LOADED_DATA, 'loadedData', ContinuousEvent], [TOP_LOADED_METADATA, 'loadedMetadata', ContinuousEvent], [TOP_LOAD_START, 'loadStart', ContinuousEvent], [TOP_LOST_POINTER_CAPTURE, 'lostPointerCapture', ContinuousEvent], [TOP_PLAYING, 'playing', ContinuousEvent], [TOP_PROGRESS, 'progress', ContinuousEvent], [TOP_SEEKING, 'seeking', ContinuousEvent], [TOP_STALLED, 'stalled', ContinuousEvent], [TOP_SUSPEND, 'suspend', ContinuousEvent], [TOP_TIME_UPDATE, 'timeUpdate', ContinuousEvent], [TOP_TRANSITION_END, 'transitionEnd', ContinuousEvent], [TOP_WAITING, 'waiting', ContinuousEvent]];
  22325. var eventTypes$4 = {};
  22326. var topLevelEventsToDispatchConfig = {};
  22327. for (var i = 0; i < eventTuples.length; i++) {
  22328. var eventTuple = eventTuples[i];
  22329. var topEvent = eventTuple[0];
  22330. var event = eventTuple[1];
  22331. var eventPriority = eventTuple[2];
  22332. var capitalizedEvent = event[0].toUpperCase() + event.slice(1);
  22333. var onEvent = 'on' + capitalizedEvent;
  22334. var config = {
  22335. phasedRegistrationNames: {
  22336. bubbled: onEvent,
  22337. captured: onEvent + 'Capture'
  22338. },
  22339. dependencies: [topEvent],
  22340. eventPriority: eventPriority
  22341. };
  22342. eventTypes$4[event] = config;
  22343. topLevelEventsToDispatchConfig[topEvent] = config;
  22344. }
  22345. // Only used in DEV for exhaustiveness validation.
  22346. var knownHTMLTopLevelTypes = [TOP_ABORT, TOP_CANCEL, TOP_CAN_PLAY, TOP_CAN_PLAY_THROUGH, TOP_CLOSE, TOP_DURATION_CHANGE, TOP_EMPTIED, TOP_ENCRYPTED, TOP_ENDED, TOP_ERROR, TOP_INPUT, TOP_INVALID, TOP_LOAD, TOP_LOADED_DATA, TOP_LOADED_METADATA, TOP_LOAD_START, TOP_PAUSE, TOP_PLAY, TOP_PLAYING, TOP_PROGRESS, TOP_RATE_CHANGE, TOP_RESET, TOP_SEEKED, TOP_SEEKING, TOP_STALLED, TOP_SUBMIT, TOP_SUSPEND, TOP_TIME_UPDATE, TOP_TOGGLE, TOP_VOLUME_CHANGE, TOP_WAITING];
  22347. var SimpleEventPlugin = {
  22348. eventTypes: eventTypes$4,
  22349. getEventPriority: function (topLevelType) {
  22350. var config = topLevelEventsToDispatchConfig[topLevelType];
  22351. return config !== undefined ? config.eventPriority : ContinuousEvent;
  22352. },
  22353. extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  22354. var dispatchConfig = topLevelEventsToDispatchConfig[topLevelType];
  22355. if (!dispatchConfig) {
  22356. return null;
  22357. }
  22358. var EventConstructor = void 0;
  22359. switch (topLevelType) {
  22360. case TOP_KEY_PRESS:
  22361. // Firefox creates a keypress event for function keys too. This removes
  22362. // the unwanted keypress events. Enter is however both printable and
  22363. // non-printable. One would expect Tab to be as well (but it isn't).
  22364. if (getEventCharCode(nativeEvent) === 0) {
  22365. return null;
  22366. }
  22367. /* falls through */
  22368. case TOP_KEY_DOWN:
  22369. case TOP_KEY_UP:
  22370. EventConstructor = SyntheticKeyboardEvent;
  22371. break;
  22372. case TOP_BLUR:
  22373. case TOP_FOCUS:
  22374. EventConstructor = SyntheticFocusEvent;
  22375. break;
  22376. case TOP_CLICK:
  22377. // Firefox creates a click event on right mouse clicks. This removes the
  22378. // unwanted click events.
  22379. if (nativeEvent.button === 2) {
  22380. return null;
  22381. }
  22382. /* falls through */
  22383. case TOP_AUX_CLICK:
  22384. case TOP_DOUBLE_CLICK:
  22385. case TOP_MOUSE_DOWN:
  22386. case TOP_MOUSE_MOVE:
  22387. case TOP_MOUSE_UP:
  22388. // TODO: Disabled elements should not respond to mouse events
  22389. /* falls through */
  22390. case TOP_MOUSE_OUT:
  22391. case TOP_MOUSE_OVER:
  22392. case TOP_CONTEXT_MENU:
  22393. EventConstructor = SyntheticMouseEvent;
  22394. break;
  22395. case TOP_DRAG:
  22396. case TOP_DRAG_END:
  22397. case TOP_DRAG_ENTER:
  22398. case TOP_DRAG_EXIT:
  22399. case TOP_DRAG_LEAVE:
  22400. case TOP_DRAG_OVER:
  22401. case TOP_DRAG_START:
  22402. case TOP_DROP:
  22403. EventConstructor = SyntheticDragEvent;
  22404. break;
  22405. case TOP_TOUCH_CANCEL:
  22406. case TOP_TOUCH_END:
  22407. case TOP_TOUCH_MOVE:
  22408. case TOP_TOUCH_START:
  22409. EventConstructor = SyntheticTouchEvent;
  22410. break;
  22411. case TOP_ANIMATION_END:
  22412. case TOP_ANIMATION_ITERATION:
  22413. case TOP_ANIMATION_START:
  22414. EventConstructor = SyntheticAnimationEvent;
  22415. break;
  22416. case TOP_TRANSITION_END:
  22417. EventConstructor = SyntheticTransitionEvent;
  22418. break;
  22419. case TOP_SCROLL:
  22420. EventConstructor = SyntheticUIEvent;
  22421. break;
  22422. case TOP_WHEEL:
  22423. EventConstructor = SyntheticWheelEvent;
  22424. break;
  22425. case TOP_COPY:
  22426. case TOP_CUT:
  22427. case TOP_PASTE:
  22428. EventConstructor = SyntheticClipboardEvent;
  22429. break;
  22430. case TOP_GOT_POINTER_CAPTURE:
  22431. case TOP_LOST_POINTER_CAPTURE:
  22432. case TOP_POINTER_CANCEL:
  22433. case TOP_POINTER_DOWN:
  22434. case TOP_POINTER_MOVE:
  22435. case TOP_POINTER_OUT:
  22436. case TOP_POINTER_OVER:
  22437. case TOP_POINTER_UP:
  22438. EventConstructor = SyntheticPointerEvent;
  22439. break;
  22440. default:
  22441. {
  22442. if (knownHTMLTopLevelTypes.indexOf(topLevelType) === -1) {
  22443. warningWithoutStack$1(false, 'SimpleEventPlugin: Unhandled event type, `%s`. This warning ' + 'is likely caused by a bug in React. Please file an issue.', topLevelType);
  22444. }
  22445. }
  22446. // HTML Events
  22447. // @see http://www.w3.org/TR/html5/index.html#events-0
  22448. EventConstructor = SyntheticEvent;
  22449. break;
  22450. }
  22451. var event = EventConstructor.getPooled(dispatchConfig, targetInst, nativeEvent, nativeEventTarget);
  22452. accumulateTwoPhaseDispatches(event);
  22453. return event;
  22454. }
  22455. };
  22456. var passiveBrowserEventsSupported = false;
  22457. // Check if browser support events with passive listeners
  22458. // https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#Safely_detecting_option_support
  22459. if (enableFlareAPI && canUseDOM) {
  22460. try {
  22461. var options = {};
  22462. // $FlowFixMe: Ignore Flow complaining about needing a value
  22463. Object.defineProperty(options, 'passive', {
  22464. get: function () {
  22465. passiveBrowserEventsSupported = true;
  22466. }
  22467. });
  22468. window.addEventListener('test', options, options);
  22469. window.removeEventListener('test', options, options);
  22470. } catch (e) {
  22471. passiveBrowserEventsSupported = false;
  22472. }
  22473. }
  22474. // Intentionally not named imports because Rollup would use dynamic dispatch for
  22475. // CommonJS interop named imports.
  22476. var UserBlockingPriority = Scheduler.unstable_UserBlockingPriority;
  22477. var runWithPriority = Scheduler.unstable_runWithPriority;
  22478. var getEventPriority = SimpleEventPlugin.getEventPriority;
  22479. var CALLBACK_BOOKKEEPING_POOL_SIZE = 10;
  22480. var callbackBookkeepingPool = [];
  22481. /**
  22482. * Find the deepest React component completely containing the root of the
  22483. * passed-in instance (for use when entire React trees are nested within each
  22484. * other). If React trees are not nested, returns null.
  22485. */
  22486. function findRootContainerNode(inst) {
  22487. // TODO: It may be a good idea to cache this to prevent unnecessary DOM
  22488. // traversal, but caching is difficult to do correctly without using a
  22489. // mutation observer to listen for all DOM changes.
  22490. while (inst.return) {
  22491. inst = inst.return;
  22492. }
  22493. if (inst.tag !== HostRoot) {
  22494. // This can happen if we're in a detached tree.
  22495. return null;
  22496. }
  22497. return inst.stateNode.containerInfo;
  22498. }
  22499. // Used to store ancestor hierarchy in top level callback
  22500. function getTopLevelCallbackBookKeeping(topLevelType, nativeEvent, targetInst) {
  22501. if (callbackBookkeepingPool.length) {
  22502. var instance = callbackBookkeepingPool.pop();
  22503. instance.topLevelType = topLevelType;
  22504. instance.nativeEvent = nativeEvent;
  22505. instance.targetInst = targetInst;
  22506. return instance;
  22507. }
  22508. return {
  22509. topLevelType: topLevelType,
  22510. nativeEvent: nativeEvent,
  22511. targetInst: targetInst,
  22512. ancestors: []
  22513. };
  22514. }
  22515. function releaseTopLevelCallbackBookKeeping(instance) {
  22516. instance.topLevelType = null;
  22517. instance.nativeEvent = null;
  22518. instance.targetInst = null;
  22519. instance.ancestors.length = 0;
  22520. if (callbackBookkeepingPool.length < CALLBACK_BOOKKEEPING_POOL_SIZE) {
  22521. callbackBookkeepingPool.push(instance);
  22522. }
  22523. }
  22524. function handleTopLevel(bookKeeping) {
  22525. var targetInst = bookKeeping.targetInst;
  22526. // Loop through the hierarchy, in case there's any nested components.
  22527. // It's important that we build the array of ancestors before calling any
  22528. // event handlers, because event handlers can modify the DOM, leading to
  22529. // inconsistencies with ReactMount's node cache. See #1105.
  22530. var ancestor = targetInst;
  22531. do {
  22532. if (!ancestor) {
  22533. var _ancestors = bookKeeping.ancestors;
  22534. _ancestors.push(ancestor);
  22535. break;
  22536. }
  22537. var root = findRootContainerNode(ancestor);
  22538. if (!root) {
  22539. break;
  22540. }
  22541. bookKeeping.ancestors.push(ancestor);
  22542. ancestor = getClosestInstanceFromNode(root);
  22543. } while (ancestor);
  22544. for (var i = 0; i < bookKeeping.ancestors.length; i++) {
  22545. targetInst = bookKeeping.ancestors[i];
  22546. var eventTarget = getEventTarget(bookKeeping.nativeEvent);
  22547. var _topLevelType = bookKeeping.topLevelType;
  22548. var _nativeEvent = bookKeeping.nativeEvent;
  22549. runExtractedPluginEventsInBatch(_topLevelType, targetInst, _nativeEvent, eventTarget);
  22550. }
  22551. }
  22552. // TODO: can we stop exporting these?
  22553. var _enabled = true;
  22554. function setEnabled(enabled) {
  22555. _enabled = !!enabled;
  22556. }
  22557. function isEnabled() {
  22558. return _enabled;
  22559. }
  22560. function trapBubbledEvent(topLevelType, element) {
  22561. trapEventForPluginEventSystem(element, topLevelType, false);
  22562. }
  22563. function trapCapturedEvent(topLevelType, element) {
  22564. trapEventForPluginEventSystem(element, topLevelType, true);
  22565. }
  22566. function trapEventForResponderEventSystem(element, topLevelType, passive) {
  22567. if (enableFlareAPI) {
  22568. var rawEventName = getRawEventName(topLevelType);
  22569. var eventFlags = RESPONDER_EVENT_SYSTEM;
  22570. // If passive option is not supported, then the event will be
  22571. // active and not passive, but we flag it as using not being
  22572. // supported too. This way the responder event plugins know,
  22573. // and can provide polyfills if needed.
  22574. if (passive) {
  22575. if (passiveBrowserEventsSupported) {
  22576. eventFlags |= IS_PASSIVE;
  22577. } else {
  22578. eventFlags |= IS_ACTIVE;
  22579. eventFlags |= PASSIVE_NOT_SUPPORTED;
  22580. passive = false;
  22581. }
  22582. } else {
  22583. eventFlags |= IS_ACTIVE;
  22584. }
  22585. // Check if interactive and wrap in discreteUpdates
  22586. var listener = dispatchEvent.bind(null, topLevelType, eventFlags);
  22587. if (passiveBrowserEventsSupported) {
  22588. addEventCaptureListenerWithPassiveFlag(element, rawEventName, listener, passive);
  22589. } else {
  22590. addEventCaptureListener(element, rawEventName, listener);
  22591. }
  22592. }
  22593. }
  22594. function trapEventForPluginEventSystem(element, topLevelType, capture) {
  22595. var listener = void 0;
  22596. switch (getEventPriority(topLevelType)) {
  22597. case DiscreteEvent:
  22598. listener = dispatchDiscreteEvent.bind(null, topLevelType, PLUGIN_EVENT_SYSTEM);
  22599. break;
  22600. case UserBlockingEvent:
  22601. listener = dispatchUserBlockingUpdate.bind(null, topLevelType, PLUGIN_EVENT_SYSTEM);
  22602. break;
  22603. case ContinuousEvent:
  22604. default:
  22605. listener = dispatchEvent.bind(null, topLevelType, PLUGIN_EVENT_SYSTEM);
  22606. break;
  22607. }
  22608. var rawEventName = getRawEventName(topLevelType);
  22609. if (capture) {
  22610. addEventCaptureListener(element, rawEventName, listener);
  22611. } else {
  22612. addEventBubbleListener(element, rawEventName, listener);
  22613. }
  22614. }
  22615. function dispatchDiscreteEvent(topLevelType, eventSystemFlags, nativeEvent) {
  22616. flushDiscreteUpdatesIfNeeded(nativeEvent.timeStamp);
  22617. discreteUpdates(dispatchEvent, topLevelType, eventSystemFlags, nativeEvent);
  22618. }
  22619. function dispatchUserBlockingUpdate(topLevelType, eventSystemFlags, nativeEvent) {
  22620. if (enableUserBlockingEvents) {
  22621. runWithPriority(UserBlockingPriority, dispatchEvent.bind(null, topLevelType, eventSystemFlags, nativeEvent));
  22622. } else {
  22623. dispatchEvent(topLevelType, eventSystemFlags, nativeEvent);
  22624. }
  22625. }
  22626. function dispatchEventForPluginEventSystem(topLevelType, eventSystemFlags, nativeEvent, targetInst) {
  22627. var bookKeeping = getTopLevelCallbackBookKeeping(topLevelType, nativeEvent, targetInst);
  22628. try {
  22629. // Event queue being processed in the same cycle allows
  22630. // `preventDefault`.
  22631. batchedEventUpdates(handleTopLevel, bookKeeping);
  22632. } finally {
  22633. releaseTopLevelCallbackBookKeeping(bookKeeping);
  22634. }
  22635. }
  22636. function dispatchEvent(topLevelType, eventSystemFlags, nativeEvent) {
  22637. if (!_enabled) {
  22638. return;
  22639. }
  22640. var nativeEventTarget = getEventTarget(nativeEvent);
  22641. var targetInst = getClosestInstanceFromNode(nativeEventTarget);
  22642. if (targetInst !== null && typeof targetInst.tag === 'number' && !isFiberMounted(targetInst)) {
  22643. // If we get an event (ex: img onload) before committing that
  22644. // component's mount, ignore it for now (that is, treat it as if it was an
  22645. // event on a non-React tree). We might also consider queueing events and
  22646. // dispatching them after the mount.
  22647. targetInst = null;
  22648. }
  22649. if (enableFlareAPI) {
  22650. if (eventSystemFlags === PLUGIN_EVENT_SYSTEM) {
  22651. dispatchEventForPluginEventSystem(topLevelType, eventSystemFlags, nativeEvent, targetInst);
  22652. } else {
  22653. // React Flare event system
  22654. dispatchEventForResponderEventSystem(topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags);
  22655. }
  22656. } else {
  22657. dispatchEventForPluginEventSystem(topLevelType, eventSystemFlags, nativeEvent, targetInst);
  22658. }
  22659. }
  22660. /**
  22661. * Summary of `ReactBrowserEventEmitter` event handling:
  22662. *
  22663. * - Top-level delegation is used to trap most native browser events. This
  22664. * may only occur in the main thread and is the responsibility of
  22665. * ReactDOMEventListener, which is injected and can therefore support
  22666. * pluggable event sources. This is the only work that occurs in the main
  22667. * thread.
  22668. *
  22669. * - We normalize and de-duplicate events to account for browser quirks. This
  22670. * may be done in the worker thread.
  22671. *
  22672. * - Forward these native events (with the associated top-level type used to
  22673. * trap it) to `EventPluginHub`, which in turn will ask plugins if they want
  22674. * to extract any synthetic events.
  22675. *
  22676. * - The `EventPluginHub` will then process each event by annotating them with
  22677. * "dispatches", a sequence of listeners and IDs that care about that event.
  22678. *
  22679. * - The `EventPluginHub` then dispatches the events.
  22680. *
  22681. * Overview of React and the event system:
  22682. *
  22683. * +------------+ .
  22684. * | DOM | .
  22685. * +------------+ .
  22686. * | .
  22687. * v .
  22688. * +------------+ .
  22689. * | ReactEvent | .
  22690. * | Listener | .
  22691. * +------------+ . +-----------+
  22692. * | . +--------+|SimpleEvent|
  22693. * | . | |Plugin |
  22694. * +-----|------+ . v +-----------+
  22695. * | | | . +--------------+ +------------+
  22696. * | +-----------.--->|EventPluginHub| | Event |
  22697. * | | . | | +-----------+ | Propagators|
  22698. * | ReactEvent | . | | |TapEvent | |------------|
  22699. * | Emitter | . | |<---+|Plugin | |other plugin|
  22700. * | | . | | +-----------+ | utilities |
  22701. * | +-----------.--->| | +------------+
  22702. * | | | . +--------------+
  22703. * +-----|------+ . ^ +-----------+
  22704. * | . | |Enter/Leave|
  22705. * + . +-------+|Plugin |
  22706. * +-------------+ . +-----------+
  22707. * | application | .
  22708. * |-------------| .
  22709. * | | .
  22710. * | | .
  22711. * +-------------+ .
  22712. * .
  22713. * React Core . General Purpose Event Plugin System
  22714. */
  22715. var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;
  22716. var elementListeningSets = new PossiblyWeakMap();
  22717. function getListeningSetForElement(element) {
  22718. var listeningSet = elementListeningSets.get(element);
  22719. if (listeningSet === undefined) {
  22720. listeningSet = new Set();
  22721. elementListeningSets.set(element, listeningSet);
  22722. }
  22723. return listeningSet;
  22724. }
  22725. /**
  22726. * We listen for bubbled touch events on the document object.
  22727. *
  22728. * Firefox v8.01 (and possibly others) exhibited strange behavior when
  22729. * mounting `onmousemove` events at some node that was not the document
  22730. * element. The symptoms were that if your mouse is not moving over something
  22731. * contained within that mount point (for example on the background) the
  22732. * top-level listeners for `onmousemove` won't be called. However, if you
  22733. * register the `mousemove` on the document object, then it will of course
  22734. * catch all `mousemove`s. This along with iOS quirks, justifies restricting
  22735. * top-level listeners to the document object only, at least for these
  22736. * movement types of events and possibly all events.
  22737. *
  22738. * @see http://www.quirksmode.org/blog/archives/2010/09/click_event_del.html
  22739. *
  22740. * Also, `keyup`/`keypress`/`keydown` do not bubble to the window on IE, but
  22741. * they bubble to document.
  22742. *
  22743. * @param {string} registrationName Name of listener (e.g. `onClick`).
  22744. * @param {object} mountAt Container where to mount the listener
  22745. */
  22746. function listenTo(registrationName, mountAt) {
  22747. var listeningSet = getListeningSetForElement(mountAt);
  22748. var dependencies = registrationNameDependencies[registrationName];
  22749. for (var i = 0; i < dependencies.length; i++) {
  22750. var dependency = dependencies[i];
  22751. if (!listeningSet.has(dependency)) {
  22752. switch (dependency) {
  22753. case TOP_SCROLL:
  22754. trapCapturedEvent(TOP_SCROLL, mountAt);
  22755. break;
  22756. case TOP_FOCUS:
  22757. case TOP_BLUR:
  22758. trapCapturedEvent(TOP_FOCUS, mountAt);
  22759. trapCapturedEvent(TOP_BLUR, mountAt);
  22760. // We set the flag for a single dependency later in this function,
  22761. // but this ensures we mark both as attached rather than just one.
  22762. listeningSet.add(TOP_BLUR);
  22763. listeningSet.add(TOP_FOCUS);
  22764. break;
  22765. case TOP_CANCEL:
  22766. case TOP_CLOSE:
  22767. if (isEventSupported(getRawEventName(dependency))) {
  22768. trapCapturedEvent(dependency, mountAt);
  22769. }
  22770. break;
  22771. case TOP_INVALID:
  22772. case TOP_SUBMIT:
  22773. case TOP_RESET:
  22774. // We listen to them on the target DOM elements.
  22775. // Some of them bubble so we don't want them to fire twice.
  22776. break;
  22777. default:
  22778. // By default, listen on the top level to all non-media events.
  22779. // Media events don't bubble so adding the listener wouldn't do anything.
  22780. var isMediaEvent = mediaEventTypes.indexOf(dependency) !== -1;
  22781. if (!isMediaEvent) {
  22782. trapBubbledEvent(dependency, mountAt);
  22783. }
  22784. break;
  22785. }
  22786. listeningSet.add(dependency);
  22787. }
  22788. }
  22789. }
  22790. function isListeningToAllDependencies(registrationName, mountAt) {
  22791. var listeningSet = getListeningSetForElement(mountAt);
  22792. var dependencies = registrationNameDependencies[registrationName];
  22793. for (var i = 0; i < dependencies.length; i++) {
  22794. var dependency = dependencies[i];
  22795. if (!listeningSet.has(dependency)) {
  22796. return false;
  22797. }
  22798. }
  22799. return true;
  22800. }
  22801. function getActiveElement(doc) {
  22802. doc = doc || (typeof document !== 'undefined' ? document : undefined);
  22803. if (typeof doc === 'undefined') {
  22804. return null;
  22805. }
  22806. try {
  22807. return doc.activeElement || doc.body;
  22808. } catch (e) {
  22809. return doc.body;
  22810. }
  22811. }
  22812. /**
  22813. * Given any node return the first leaf node without children.
  22814. *
  22815. * @param {DOMElement|DOMTextNode} node
  22816. * @return {DOMElement|DOMTextNode}
  22817. */
  22818. function getLeafNode(node) {
  22819. while (node && node.firstChild) {
  22820. node = node.firstChild;
  22821. }
  22822. return node;
  22823. }
  22824. /**
  22825. * Get the next sibling within a container. This will walk up the
  22826. * DOM if a node's siblings have been exhausted.
  22827. *
  22828. * @param {DOMElement|DOMTextNode} node
  22829. * @return {?DOMElement|DOMTextNode}
  22830. */
  22831. function getSiblingNode(node) {
  22832. while (node) {
  22833. if (node.nextSibling) {
  22834. return node.nextSibling;
  22835. }
  22836. node = node.parentNode;
  22837. }
  22838. }
  22839. /**
  22840. * Get object describing the nodes which contain characters at offset.
  22841. *
  22842. * @param {DOMElement|DOMTextNode} root
  22843. * @param {number} offset
  22844. * @return {?object}
  22845. */
  22846. function getNodeForCharacterOffset(root, offset) {
  22847. var node = getLeafNode(root);
  22848. var nodeStart = 0;
  22849. var nodeEnd = 0;
  22850. while (node) {
  22851. if (node.nodeType === TEXT_NODE) {
  22852. nodeEnd = nodeStart + node.textContent.length;
  22853. if (nodeStart <= offset && nodeEnd >= offset) {
  22854. return {
  22855. node: node,
  22856. offset: offset - nodeStart
  22857. };
  22858. }
  22859. nodeStart = nodeEnd;
  22860. }
  22861. node = getLeafNode(getSiblingNode(node));
  22862. }
  22863. }
  22864. /**
  22865. * @param {DOMElement} outerNode
  22866. * @return {?object}
  22867. */
  22868. function getOffsets(outerNode) {
  22869. var ownerDocument = outerNode.ownerDocument;
  22870. var win = ownerDocument && ownerDocument.defaultView || window;
  22871. var selection = win.getSelection && win.getSelection();
  22872. if (!selection || selection.rangeCount === 0) {
  22873. return null;
  22874. }
  22875. var anchorNode = selection.anchorNode,
  22876. anchorOffset = selection.anchorOffset,
  22877. focusNode = selection.focusNode,
  22878. focusOffset = selection.focusOffset;
  22879. // In Firefox, anchorNode and focusNode can be "anonymous divs", e.g. the
  22880. // up/down buttons on an <input type="number">. Anonymous divs do not seem to
  22881. // expose properties, triggering a "Permission denied error" if any of its
  22882. // properties are accessed. The only seemingly possible way to avoid erroring
  22883. // is to access a property that typically works for non-anonymous divs and
  22884. // catch any error that may otherwise arise. See
  22885. // https://bugzilla.mozilla.org/show_bug.cgi?id=208427
  22886. try {
  22887. /* eslint-disable no-unused-expressions */
  22888. anchorNode.nodeType;
  22889. focusNode.nodeType;
  22890. /* eslint-enable no-unused-expressions */
  22891. } catch (e) {
  22892. return null;
  22893. }
  22894. return getModernOffsetsFromPoints(outerNode, anchorNode, anchorOffset, focusNode, focusOffset);
  22895. }
  22896. /**
  22897. * Returns {start, end} where `start` is the character/codepoint index of
  22898. * (anchorNode, anchorOffset) within the textContent of `outerNode`, and
  22899. * `end` is the index of (focusNode, focusOffset).
  22900. *
  22901. * Returns null if you pass in garbage input but we should probably just crash.
  22902. *
  22903. * Exported only for testing.
  22904. */
  22905. function getModernOffsetsFromPoints(outerNode, anchorNode, anchorOffset, focusNode, focusOffset) {
  22906. var length = 0;
  22907. var start = -1;
  22908. var end = -1;
  22909. var indexWithinAnchor = 0;
  22910. var indexWithinFocus = 0;
  22911. var node = outerNode;
  22912. var parentNode = null;
  22913. outer: while (true) {
  22914. var next = null;
  22915. while (true) {
  22916. if (node === anchorNode && (anchorOffset === 0 || node.nodeType === TEXT_NODE)) {
  22917. start = length + anchorOffset;
  22918. }
  22919. if (node === focusNode && (focusOffset === 0 || node.nodeType === TEXT_NODE)) {
  22920. end = length + focusOffset;
  22921. }
  22922. if (node.nodeType === TEXT_NODE) {
  22923. length += node.nodeValue.length;
  22924. }
  22925. if ((next = node.firstChild) === null) {
  22926. break;
  22927. }
  22928. // Moving from `node` to its first child `next`.
  22929. parentNode = node;
  22930. node = next;
  22931. }
  22932. while (true) {
  22933. if (node === outerNode) {
  22934. // If `outerNode` has children, this is always the second time visiting
  22935. // it. If it has no children, this is still the first loop, and the only
  22936. // valid selection is anchorNode and focusNode both equal to this node
  22937. // and both offsets 0, in which case we will have handled above.
  22938. break outer;
  22939. }
  22940. if (parentNode === anchorNode && ++indexWithinAnchor === anchorOffset) {
  22941. start = length;
  22942. }
  22943. if (parentNode === focusNode && ++indexWithinFocus === focusOffset) {
  22944. end = length;
  22945. }
  22946. if ((next = node.nextSibling) !== null) {
  22947. break;
  22948. }
  22949. node = parentNode;
  22950. parentNode = node.parentNode;
  22951. }
  22952. // Moving from `node` to its next sibling `next`.
  22953. node = next;
  22954. }
  22955. if (start === -1 || end === -1) {
  22956. // This should never happen. (Would happen if the anchor/focus nodes aren't
  22957. // actually inside the passed-in node.)
  22958. return null;
  22959. }
  22960. return {
  22961. start: start,
  22962. end: end
  22963. };
  22964. }
  22965. /**
  22966. * In modern non-IE browsers, we can support both forward and backward
  22967. * selections.
  22968. *
  22969. * Note: IE10+ supports the Selection object, but it does not support
  22970. * the `extend` method, which means that even in modern IE, it's not possible
  22971. * to programmatically create a backward selection. Thus, for all IE
  22972. * versions, we use the old IE API to create our selections.
  22973. *
  22974. * @param {DOMElement|DOMTextNode} node
  22975. * @param {object} offsets
  22976. */
  22977. function setOffsets(node, offsets) {
  22978. var doc = node.ownerDocument || document;
  22979. var win = doc && doc.defaultView || window;
  22980. // Edge fails with "Object expected" in some scenarios.
  22981. // (For instance: TinyMCE editor used in a list component that supports pasting to add more,
  22982. // fails when pasting 100+ items)
  22983. if (!win.getSelection) {
  22984. return;
  22985. }
  22986. var selection = win.getSelection();
  22987. var length = node.textContent.length;
  22988. var start = Math.min(offsets.start, length);
  22989. var end = offsets.end === undefined ? start : Math.min(offsets.end, length);
  22990. // IE 11 uses modern selection, but doesn't support the extend method.
  22991. // Flip backward selections, so we can set with a single range.
  22992. if (!selection.extend && start > end) {
  22993. var temp = end;
  22994. end = start;
  22995. start = temp;
  22996. }
  22997. var startMarker = getNodeForCharacterOffset(node, start);
  22998. var endMarker = getNodeForCharacterOffset(node, end);
  22999. if (startMarker && endMarker) {
  23000. if (selection.rangeCount === 1 && selection.anchorNode === startMarker.node && selection.anchorOffset === startMarker.offset && selection.focusNode === endMarker.node && selection.focusOffset === endMarker.offset) {
  23001. return;
  23002. }
  23003. var range = doc.createRange();
  23004. range.setStart(startMarker.node, startMarker.offset);
  23005. selection.removeAllRanges();
  23006. if (start > end) {
  23007. selection.addRange(range);
  23008. selection.extend(endMarker.node, endMarker.offset);
  23009. } else {
  23010. range.setEnd(endMarker.node, endMarker.offset);
  23011. selection.addRange(range);
  23012. }
  23013. }
  23014. }
  23015. function isTextNode(node) {
  23016. return node && node.nodeType === TEXT_NODE;
  23017. }
  23018. function containsNode(outerNode, innerNode) {
  23019. if (!outerNode || !innerNode) {
  23020. return false;
  23021. } else if (outerNode === innerNode) {
  23022. return true;
  23023. } else if (isTextNode(outerNode)) {
  23024. return false;
  23025. } else if (isTextNode(innerNode)) {
  23026. return containsNode(outerNode, innerNode.parentNode);
  23027. } else if ('contains' in outerNode) {
  23028. return outerNode.contains(innerNode);
  23029. } else if (outerNode.compareDocumentPosition) {
  23030. return !!(outerNode.compareDocumentPosition(innerNode) & 16);
  23031. } else {
  23032. return false;
  23033. }
  23034. }
  23035. function isInDocument(node) {
  23036. return node && node.ownerDocument && containsNode(node.ownerDocument.documentElement, node);
  23037. }
  23038. function isSameOriginFrame(iframe) {
  23039. try {
  23040. // Accessing the contentDocument of a HTMLIframeElement can cause the browser
  23041. // to throw, e.g. if it has a cross-origin src attribute.
  23042. // Safari will show an error in the console when the access results in "Blocked a frame with origin". e.g:
  23043. // iframe.contentDocument.defaultView;
  23044. // A safety way is to access one of the cross origin properties: Window or Location
  23045. // Which might result in "SecurityError" DOM Exception and it is compatible to Safari.
  23046. // https://html.spec.whatwg.org/multipage/browsers.html#integration-with-idl
  23047. return typeof iframe.contentWindow.location.href === 'string';
  23048. } catch (err) {
  23049. return false;
  23050. }
  23051. }
  23052. function getActiveElementDeep() {
  23053. var win = window;
  23054. var element = getActiveElement();
  23055. while (element instanceof win.HTMLIFrameElement) {
  23056. if (isSameOriginFrame(element)) {
  23057. win = element.contentWindow;
  23058. } else {
  23059. return element;
  23060. }
  23061. element = getActiveElement(win.document);
  23062. }
  23063. return element;
  23064. }
  23065. /**
  23066. * @ReactInputSelection: React input selection module. Based on Selection.js,
  23067. * but modified to be suitable for react and has a couple of bug fixes (doesn't
  23068. * assume buttons have range selections allowed).
  23069. * Input selection module for React.
  23070. */
  23071. /**
  23072. * @hasSelectionCapabilities: we get the element types that support selection
  23073. * from https://html.spec.whatwg.org/#do-not-apply, looking at `selectionStart`
  23074. * and `selectionEnd` rows.
  23075. */
  23076. function hasSelectionCapabilities(elem) {
  23077. var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();
  23078. return nodeName && (nodeName === 'input' && (elem.type === 'text' || elem.type === 'search' || elem.type === 'tel' || elem.type === 'url' || elem.type === 'password') || nodeName === 'textarea' || elem.contentEditable === 'true');
  23079. }
  23080. function getSelectionInformation() {
  23081. var focusedElem = getActiveElementDeep();
  23082. return {
  23083. focusedElem: focusedElem,
  23084. selectionRange: hasSelectionCapabilities(focusedElem) ? getSelection$1(focusedElem) : null
  23085. };
  23086. }
  23087. /**
  23088. * @restoreSelection: If any selection information was potentially lost,
  23089. * restore it. This is useful when performing operations that could remove dom
  23090. * nodes and place them back in, resulting in focus being lost.
  23091. */
  23092. function restoreSelection(priorSelectionInformation) {
  23093. var curFocusedElem = getActiveElementDeep();
  23094. var priorFocusedElem = priorSelectionInformation.focusedElem;
  23095. var priorSelectionRange = priorSelectionInformation.selectionRange;
  23096. if (curFocusedElem !== priorFocusedElem && isInDocument(priorFocusedElem)) {
  23097. if (priorSelectionRange !== null && hasSelectionCapabilities(priorFocusedElem)) {
  23098. setSelection(priorFocusedElem, priorSelectionRange);
  23099. }
  23100. // Focusing a node can change the scroll position, which is undesirable
  23101. var ancestors = [];
  23102. var ancestor = priorFocusedElem;
  23103. while (ancestor = ancestor.parentNode) {
  23104. if (ancestor.nodeType === ELEMENT_NODE) {
  23105. ancestors.push({
  23106. element: ancestor,
  23107. left: ancestor.scrollLeft,
  23108. top: ancestor.scrollTop
  23109. });
  23110. }
  23111. }
  23112. if (typeof priorFocusedElem.focus === 'function') {
  23113. priorFocusedElem.focus();
  23114. }
  23115. for (var i = 0; i < ancestors.length; i++) {
  23116. var info = ancestors[i];
  23117. info.element.scrollLeft = info.left;
  23118. info.element.scrollTop = info.top;
  23119. }
  23120. }
  23121. }
  23122. /**
  23123. * @getSelection: Gets the selection bounds of a focused textarea, input or
  23124. * contentEditable node.
  23125. * -@input: Look up selection bounds of this input
  23126. * -@return {start: selectionStart, end: selectionEnd}
  23127. */
  23128. function getSelection$1(input) {
  23129. var selection = void 0;
  23130. if ('selectionStart' in input) {
  23131. // Modern browser with input or textarea.
  23132. selection = {
  23133. start: input.selectionStart,
  23134. end: input.selectionEnd
  23135. };
  23136. } else {
  23137. // Content editable or old IE textarea.
  23138. selection = getOffsets(input);
  23139. }
  23140. return selection || { start: 0, end: 0 };
  23141. }
  23142. /**
  23143. * @setSelection: Sets the selection bounds of a textarea or input and focuses
  23144. * the input.
  23145. * -@input Set selection bounds of this input or textarea
  23146. * -@offsets Object of same form that is returned from get*
  23147. */
  23148. function setSelection(input, offsets) {
  23149. var start = offsets.start,
  23150. end = offsets.end;
  23151. if (end === undefined) {
  23152. end = start;
  23153. }
  23154. if ('selectionStart' in input) {
  23155. input.selectionStart = start;
  23156. input.selectionEnd = Math.min(end, input.value.length);
  23157. } else {
  23158. setOffsets(input, offsets);
  23159. }
  23160. }
  23161. var skipSelectionChangeEvent = canUseDOM && 'documentMode' in document && document.documentMode <= 11;
  23162. var eventTypes$3 = {
  23163. select: {
  23164. phasedRegistrationNames: {
  23165. bubbled: 'onSelect',
  23166. captured: 'onSelectCapture'
  23167. },
  23168. dependencies: [TOP_BLUR, TOP_CONTEXT_MENU, TOP_DRAG_END, TOP_FOCUS, TOP_KEY_DOWN, TOP_KEY_UP, TOP_MOUSE_DOWN, TOP_MOUSE_UP, TOP_SELECTION_CHANGE]
  23169. }
  23170. };
  23171. var activeElement$1 = null;
  23172. var activeElementInst$1 = null;
  23173. var lastSelection = null;
  23174. var mouseDown = false;
  23175. /**
  23176. * Get an object which is a unique representation of the current selection.
  23177. *
  23178. * The return value will not be consistent across nodes or browsers, but
  23179. * two identical selections on the same node will return identical objects.
  23180. *
  23181. * @param {DOMElement} node
  23182. * @return {object}
  23183. */
  23184. function getSelection(node) {
  23185. if ('selectionStart' in node && hasSelectionCapabilities(node)) {
  23186. return {
  23187. start: node.selectionStart,
  23188. end: node.selectionEnd
  23189. };
  23190. } else {
  23191. var win = node.ownerDocument && node.ownerDocument.defaultView || window;
  23192. var selection = win.getSelection();
  23193. return {
  23194. anchorNode: selection.anchorNode,
  23195. anchorOffset: selection.anchorOffset,
  23196. focusNode: selection.focusNode,
  23197. focusOffset: selection.focusOffset
  23198. };
  23199. }
  23200. }
  23201. /**
  23202. * Get document associated with the event target.
  23203. *
  23204. * @param {object} nativeEventTarget
  23205. * @return {Document}
  23206. */
  23207. function getEventTargetDocument(eventTarget) {
  23208. return eventTarget.window === eventTarget ? eventTarget.document : eventTarget.nodeType === DOCUMENT_NODE ? eventTarget : eventTarget.ownerDocument;
  23209. }
  23210. /**
  23211. * Poll selection to see whether it's changed.
  23212. *
  23213. * @param {object} nativeEvent
  23214. * @param {object} nativeEventTarget
  23215. * @return {?SyntheticEvent}
  23216. */
  23217. function constructSelectEvent(nativeEvent, nativeEventTarget) {
  23218. // Ensure we have the right element, and that the user is not dragging a
  23219. // selection (this matches native `select` event behavior). In HTML5, select
  23220. // fires only on input and textarea thus if there's no focused element we
  23221. // won't dispatch.
  23222. var doc = getEventTargetDocument(nativeEventTarget);
  23223. if (mouseDown || activeElement$1 == null || activeElement$1 !== getActiveElement(doc)) {
  23224. return null;
  23225. }
  23226. // Only fire when selection has actually changed.
  23227. var currentSelection = getSelection(activeElement$1);
  23228. if (!lastSelection || !shallowEqual(lastSelection, currentSelection)) {
  23229. lastSelection = currentSelection;
  23230. var syntheticEvent = SyntheticEvent.getPooled(eventTypes$3.select, activeElementInst$1, nativeEvent, nativeEventTarget);
  23231. syntheticEvent.type = 'select';
  23232. syntheticEvent.target = activeElement$1;
  23233. accumulateTwoPhaseDispatches(syntheticEvent);
  23234. return syntheticEvent;
  23235. }
  23236. return null;
  23237. }
  23238. /**
  23239. * This plugin creates an `onSelect` event that normalizes select events
  23240. * across form elements.
  23241. *
  23242. * Supported elements are:
  23243. * - input (see `isTextInputElement`)
  23244. * - textarea
  23245. * - contentEditable
  23246. *
  23247. * This differs from native browser implementations in the following ways:
  23248. * - Fires on contentEditable fields as well as inputs.
  23249. * - Fires for collapsed selection.
  23250. * - Fires after user input.
  23251. */
  23252. var SelectEventPlugin = {
  23253. eventTypes: eventTypes$3,
  23254. extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
  23255. var doc = getEventTargetDocument(nativeEventTarget);
  23256. // Track whether all listeners exists for this plugin. If none exist, we do
  23257. // not extract events. See #3639.
  23258. if (!doc || !isListeningToAllDependencies('onSelect', doc)) {
  23259. return null;
  23260. }
  23261. var targetNode = targetInst ? getNodeFromInstance$1(targetInst) : window;
  23262. switch (topLevelType) {
  23263. // Track the input node that has focus.
  23264. case TOP_FOCUS:
  23265. if (isTextInputElement(targetNode) || targetNode.contentEditable === 'true') {
  23266. activeElement$1 = targetNode;
  23267. activeElementInst$1 = targetInst;
  23268. lastSelection = null;
  23269. }
  23270. break;
  23271. case TOP_BLUR:
  23272. activeElement$1 = null;
  23273. activeElementInst$1 = null;
  23274. lastSelection = null;
  23275. break;
  23276. // Don't fire the event while the user is dragging. This matches the
  23277. // semantics of the native select event.
  23278. case TOP_MOUSE_DOWN:
  23279. mouseDown = true;
  23280. break;
  23281. case TOP_CONTEXT_MENU:
  23282. case TOP_MOUSE_UP:
  23283. case TOP_DRAG_END:
  23284. mouseDown = false;
  23285. return constructSelectEvent(nativeEvent, nativeEventTarget);
  23286. // Chrome and IE fire non-standard event when selection is changed (and
  23287. // sometimes when it hasn't). IE's event fires out of order with respect
  23288. // to key and input events on deletion, so we discard it.
  23289. //
  23290. // Firefox doesn't support selectionchange, so check selection status
  23291. // after each key entry. The selection changes after keydown and before
  23292. // keyup, but we check on keydown as well in the case of holding down a
  23293. // key, when multiple keydown events are fired but only one keyup is.
  23294. // This is also our approach for IE handling, for the reason above.
  23295. case TOP_SELECTION_CHANGE:
  23296. if (skipSelectionChangeEvent) {
  23297. break;
  23298. }
  23299. // falls through
  23300. case TOP_KEY_DOWN:
  23301. case TOP_KEY_UP:
  23302. return constructSelectEvent(nativeEvent, nativeEventTarget);
  23303. }
  23304. return null;
  23305. }
  23306. };
  23307. /**
  23308. * Inject modules for resolving DOM hierarchy and plugin ordering.
  23309. */
  23310. injection.injectEventPluginOrder(DOMEventPluginOrder);
  23311. setComponentTree(getFiberCurrentPropsFromNode$1, getInstanceFromNode$1, getNodeFromInstance$1);
  23312. /**
  23313. * Some important event plugins included by default (without having to require
  23314. * them).
  23315. */
  23316. injection.injectEventPluginsByName({
  23317. SimpleEventPlugin: SimpleEventPlugin,
  23318. EnterLeaveEventPlugin: EnterLeaveEventPlugin,
  23319. ChangeEventPlugin: ChangeEventPlugin,
  23320. SelectEventPlugin: SelectEventPlugin,
  23321. BeforeInputEventPlugin: BeforeInputEventPlugin
  23322. });
  23323. function endsWith(subject, search) {
  23324. var length = subject.length;
  23325. return subject.substring(length - search.length, length) === search;
  23326. }
  23327. var didWarnSelectedSetOnOption = false;
  23328. var didWarnInvalidChild = false;
  23329. function flattenChildren(children) {
  23330. var content = '';
  23331. // Flatten children. We'll warn if they are invalid
  23332. // during validateProps() which runs for hydration too.
  23333. // Note that this would throw on non-element objects.
  23334. // Elements are stringified (which is normally irrelevant
  23335. // but matters for <fbt>).
  23336. React.Children.forEach(children, function (child) {
  23337. if (child == null) {
  23338. return;
  23339. }
  23340. content += child;
  23341. // Note: we don't warn about invalid children here.
  23342. // Instead, this is done separately below so that
  23343. // it happens during the hydration codepath too.
  23344. });
  23345. return content;
  23346. }
  23347. /**
  23348. * Implements an <option> host component that warns when `selected` is set.
  23349. */
  23350. function validateProps(element, props) {
  23351. {
  23352. // This mirrors the codepath above, but runs for hydration too.
  23353. // Warn about invalid children here so that client and hydration are consistent.
  23354. // TODO: this seems like it could cause a DEV-only throw for hydration
  23355. // if children contains a non-element object. We should try to avoid that.
  23356. if (typeof props.children === 'object' && props.children !== null) {
  23357. React.Children.forEach(props.children, function (child) {
  23358. if (child == null) {
  23359. return;
  23360. }
  23361. if (typeof child === 'string' || typeof child === 'number') {
  23362. return;
  23363. }
  23364. if (typeof child.type !== 'string') {
  23365. return;
  23366. }
  23367. if (!didWarnInvalidChild) {
  23368. didWarnInvalidChild = true;
  23369. warning$1(false, 'Only strings and numbers are supported as <option> children.');
  23370. }
  23371. });
  23372. }
  23373. // TODO: Remove support for `selected` in <option>.
  23374. if (props.selected != null && !didWarnSelectedSetOnOption) {
  23375. warning$1(false, 'Use the `defaultValue` or `value` props on <select> instead of ' + 'setting `selected` on <option>.');
  23376. didWarnSelectedSetOnOption = true;
  23377. }
  23378. }
  23379. }
  23380. function postMountWrapper$1(element, props) {
  23381. // value="" should make a value attribute (#6219)
  23382. if (props.value != null) {
  23383. element.setAttribute('value', toString(getToStringValue(props.value)));
  23384. }
  23385. }
  23386. function getHostProps$1(element, props) {
  23387. var hostProps = _assign({ children: undefined }, props);
  23388. var content = flattenChildren(props.children);
  23389. if (content) {
  23390. hostProps.children = content;
  23391. }
  23392. return hostProps;
  23393. }
  23394. // TODO: direct imports like some-package/src/* are bad. Fix me.
  23395. var didWarnValueDefaultValue$1 = void 0;
  23396. {
  23397. didWarnValueDefaultValue$1 = false;
  23398. }
  23399. function getDeclarationErrorAddendum() {
  23400. var ownerName = getCurrentFiberOwnerNameInDevOrNull();
  23401. if (ownerName) {
  23402. return '\n\nCheck the render method of `' + ownerName + '`.';
  23403. }
  23404. return '';
  23405. }
  23406. var valuePropNames = ['value', 'defaultValue'];
  23407. /**
  23408. * Validation function for `value` and `defaultValue`.
  23409. */
  23410. function checkSelectPropTypes(props) {
  23411. ReactControlledValuePropTypes.checkPropTypes('select', props);
  23412. for (var i = 0; i < valuePropNames.length; i++) {
  23413. var propName = valuePropNames[i];
  23414. if (props[propName] == null) {
  23415. continue;
  23416. }
  23417. var isArray = Array.isArray(props[propName]);
  23418. if (props.multiple && !isArray) {
  23419. warning$1(false, 'The `%s` prop supplied to <select> must be an array if ' + '`multiple` is true.%s', propName, getDeclarationErrorAddendum());
  23420. } else if (!props.multiple && isArray) {
  23421. warning$1(false, 'The `%s` prop supplied to <select> must be a scalar ' + 'value if `multiple` is false.%s', propName, getDeclarationErrorAddendum());
  23422. }
  23423. }
  23424. }
  23425. function updateOptions(node, multiple, propValue, setDefaultSelected) {
  23426. var options = node.options;
  23427. if (multiple) {
  23428. var selectedValues = propValue;
  23429. var selectedValue = {};
  23430. for (var i = 0; i < selectedValues.length; i++) {
  23431. // Prefix to avoid chaos with special keys.
  23432. selectedValue['$' + selectedValues[i]] = true;
  23433. }
  23434. for (var _i = 0; _i < options.length; _i++) {
  23435. var selected = selectedValue.hasOwnProperty('$' + options[_i].value);
  23436. if (options[_i].selected !== selected) {
  23437. options[_i].selected = selected;
  23438. }
  23439. if (selected && setDefaultSelected) {
  23440. options[_i].defaultSelected = true;
  23441. }
  23442. }
  23443. } else {
  23444. // Do not set `select.value` as exact behavior isn't consistent across all
  23445. // browsers for all cases.
  23446. var _selectedValue = toString(getToStringValue(propValue));
  23447. var defaultSelected = null;
  23448. for (var _i2 = 0; _i2 < options.length; _i2++) {
  23449. if (options[_i2].value === _selectedValue) {
  23450. options[_i2].selected = true;
  23451. if (setDefaultSelected) {
  23452. options[_i2].defaultSelected = true;
  23453. }
  23454. return;
  23455. }
  23456. if (defaultSelected === null && !options[_i2].disabled) {
  23457. defaultSelected = options[_i2];
  23458. }
  23459. }
  23460. if (defaultSelected !== null) {
  23461. defaultSelected.selected = true;
  23462. }
  23463. }
  23464. }
  23465. /**
  23466. * Implements a <select> host component that allows optionally setting the
  23467. * props `value` and `defaultValue`. If `multiple` is false, the prop must be a
  23468. * stringable. If `multiple` is true, the prop must be an array of stringables.
  23469. *
  23470. * If `value` is not supplied (or null/undefined), user actions that change the
  23471. * selected option will trigger updates to the rendered options.
  23472. *
  23473. * If it is supplied (and not null/undefined), the rendered options will not
  23474. * update in response to user actions. Instead, the `value` prop must change in
  23475. * order for the rendered options to update.
  23476. *
  23477. * If `defaultValue` is provided, any options with the supplied values will be
  23478. * selected.
  23479. */
  23480. function getHostProps$2(element, props) {
  23481. return _assign({}, props, {
  23482. value: undefined
  23483. });
  23484. }
  23485. function initWrapperState$1(element, props) {
  23486. var node = element;
  23487. {
  23488. checkSelectPropTypes(props);
  23489. }
  23490. node._wrapperState = {
  23491. wasMultiple: !!props.multiple
  23492. };
  23493. {
  23494. if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValueDefaultValue$1) {
  23495. warning$1(false, 'Select elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled select ' + 'element and remove one of these props. More info: ' + 'https://fb.me/react-controlled-components');
  23496. didWarnValueDefaultValue$1 = true;
  23497. }
  23498. }
  23499. }
  23500. function postMountWrapper$2(element, props) {
  23501. var node = element;
  23502. node.multiple = !!props.multiple;
  23503. var value = props.value;
  23504. if (value != null) {
  23505. updateOptions(node, !!props.multiple, value, false);
  23506. } else if (props.defaultValue != null) {
  23507. updateOptions(node, !!props.multiple, props.defaultValue, true);
  23508. }
  23509. }
  23510. function postUpdateWrapper(element, props) {
  23511. var node = element;
  23512. var wasMultiple = node._wrapperState.wasMultiple;
  23513. node._wrapperState.wasMultiple = !!props.multiple;
  23514. var value = props.value;
  23515. if (value != null) {
  23516. updateOptions(node, !!props.multiple, value, false);
  23517. } else if (wasMultiple !== !!props.multiple) {
  23518. // For simplicity, reapply `defaultValue` if `multiple` is toggled.
  23519. if (props.defaultValue != null) {
  23520. updateOptions(node, !!props.multiple, props.defaultValue, true);
  23521. } else {
  23522. // Revert the select back to its default unselected state.
  23523. updateOptions(node, !!props.multiple, props.multiple ? [] : '', false);
  23524. }
  23525. }
  23526. }
  23527. function restoreControlledState$2(element, props) {
  23528. var node = element;
  23529. var value = props.value;
  23530. if (value != null) {
  23531. updateOptions(node, !!props.multiple, value, false);
  23532. }
  23533. }
  23534. var didWarnValDefaultVal = false;
  23535. /**
  23536. * Implements a <textarea> host component that allows setting `value`, and
  23537. * `defaultValue`. This differs from the traditional DOM API because value is
  23538. * usually set as PCDATA children.
  23539. *
  23540. * If `value` is not supplied (or null/undefined), user actions that affect the
  23541. * value will trigger updates to the element.
  23542. *
  23543. * If `value` is supplied (and not null/undefined), the rendered element will
  23544. * not trigger updates to the element. Instead, the `value` prop must change in
  23545. * order for the rendered element to be updated.
  23546. *
  23547. * The rendered element will be initialized with an empty value, the prop
  23548. * `defaultValue` if specified, or the children content (deprecated).
  23549. */
  23550. function getHostProps$3(element, props) {
  23551. var node = element;
  23552. (function () {
  23553. if (!(props.dangerouslySetInnerHTML == null)) {
  23554. {
  23555. throw ReactError(Error('`dangerouslySetInnerHTML` does not make sense on <textarea>.'));
  23556. }
  23557. }
  23558. })();
  23559. // Always set children to the same thing. In IE9, the selection range will
  23560. // get reset if `textContent` is mutated. We could add a check in setTextContent
  23561. // to only set the value if/when the value differs from the node value (which would
  23562. // completely solve this IE9 bug), but Sebastian+Sophie seemed to like this
  23563. // solution. The value can be a boolean or object so that's why it's forced
  23564. // to be a string.
  23565. var hostProps = _assign({}, props, {
  23566. value: undefined,
  23567. defaultValue: undefined,
  23568. children: toString(node._wrapperState.initialValue)
  23569. });
  23570. return hostProps;
  23571. }
  23572. function initWrapperState$2(element, props) {
  23573. var node = element;
  23574. {
  23575. ReactControlledValuePropTypes.checkPropTypes('textarea', props);
  23576. if (props.value !== undefined && props.defaultValue !== undefined && !didWarnValDefaultVal) {
  23577. warning$1(false, '%s contains a textarea with both value and defaultValue props. ' + 'Textarea elements must be either controlled or uncontrolled ' + '(specify either the value prop, or the defaultValue prop, but not ' + 'both). Decide between using a controlled or uncontrolled textarea ' + 'and remove one of these props. More info: ' + 'https://fb.me/react-controlled-components', getCurrentFiberOwnerNameInDevOrNull() || 'A component');
  23578. didWarnValDefaultVal = true;
  23579. }
  23580. }
  23581. var initialValue = props.value;
  23582. // Only bother fetching default value if we're going to use it
  23583. if (initialValue == null) {
  23584. var defaultValue = props.defaultValue;
  23585. // TODO (yungsters): Remove support for children content in <textarea>.
  23586. var children = props.children;
  23587. if (children != null) {
  23588. {
  23589. warning$1(false, 'Use the `defaultValue` or `value` props instead of setting ' + 'children on <textarea>.');
  23590. }
  23591. (function () {
  23592. if (!(defaultValue == null)) {
  23593. {
  23594. throw ReactError(Error('If you supply `defaultValue` on a <textarea>, do not pass children.'));
  23595. }
  23596. }
  23597. })();
  23598. if (Array.isArray(children)) {
  23599. (function () {
  23600. if (!(children.length <= 1)) {
  23601. {
  23602. throw ReactError(Error('<textarea> can only have at most one child.'));
  23603. }
  23604. }
  23605. })();
  23606. children = children[0];
  23607. }
  23608. defaultValue = children;
  23609. }
  23610. if (defaultValue == null) {
  23611. defaultValue = '';
  23612. }
  23613. initialValue = defaultValue;
  23614. }
  23615. node._wrapperState = {
  23616. initialValue: getToStringValue(initialValue)
  23617. };
  23618. }
  23619. function updateWrapper$1(element, props) {
  23620. var node = element;
  23621. var value = getToStringValue(props.value);
  23622. var defaultValue = getToStringValue(props.defaultValue);
  23623. if (value != null) {
  23624. // Cast `value` to a string to ensure the value is set correctly. While
  23625. // browsers typically do this as necessary, jsdom doesn't.
  23626. var newValue = toString(value);
  23627. // To avoid side effects (such as losing text selection), only set value if changed
  23628. if (newValue !== node.value) {
  23629. node.value = newValue;
  23630. }
  23631. if (props.defaultValue == null && node.defaultValue !== newValue) {
  23632. node.defaultValue = newValue;
  23633. }
  23634. }
  23635. if (defaultValue != null) {
  23636. node.defaultValue = toString(defaultValue);
  23637. }
  23638. }
  23639. function postMountWrapper$3(element, props) {
  23640. var node = element;
  23641. // This is in postMount because we need access to the DOM node, which is not
  23642. // available until after the component has mounted.
  23643. var textContent = node.textContent;
  23644. // Only set node.value if textContent is equal to the expected
  23645. // initial value. In IE10/IE11 there is a bug where the placeholder attribute
  23646. // will populate textContent as well.
  23647. // https://developer.microsoft.com/microsoft-edge/platform/issues/101525/
  23648. if (textContent === node._wrapperState.initialValue) {
  23649. node.value = textContent;
  23650. }
  23651. }
  23652. function restoreControlledState$3(element, props) {
  23653. // DOM component is still mounted; update
  23654. updateWrapper$1(element, props);
  23655. }
  23656. var HTML_NAMESPACE$1 = 'http://www.w3.org/1999/xhtml';
  23657. var MATH_NAMESPACE = 'http://www.w3.org/1998/Math/MathML';
  23658. var SVG_NAMESPACE = 'http://www.w3.org/2000/svg';
  23659. var Namespaces = {
  23660. html: HTML_NAMESPACE$1,
  23661. mathml: MATH_NAMESPACE,
  23662. svg: SVG_NAMESPACE
  23663. };
  23664. // Assumes there is no parent namespace.
  23665. function getIntrinsicNamespace(type) {
  23666. switch (type) {
  23667. case 'svg':
  23668. return SVG_NAMESPACE;
  23669. case 'math':
  23670. return MATH_NAMESPACE;
  23671. default:
  23672. return HTML_NAMESPACE$1;
  23673. }
  23674. }
  23675. function getChildNamespace(parentNamespace, type) {
  23676. if (parentNamespace == null || parentNamespace === HTML_NAMESPACE$1) {
  23677. // No (or default) parent namespace: potential entry point.
  23678. return getIntrinsicNamespace(type);
  23679. }
  23680. if (parentNamespace === SVG_NAMESPACE && type === 'foreignObject') {
  23681. // We're leaving SVG.
  23682. return HTML_NAMESPACE$1;
  23683. }
  23684. // By default, pass namespace below.
  23685. return parentNamespace;
  23686. }
  23687. /* globals MSApp */
  23688. /**
  23689. * Create a function which has 'unsafe' privileges (required by windows8 apps)
  23690. */
  23691. var createMicrosoftUnsafeLocalFunction = function (func) {
  23692. if (typeof MSApp !== 'undefined' && MSApp.execUnsafeLocalFunction) {
  23693. return function (arg0, arg1, arg2, arg3) {
  23694. MSApp.execUnsafeLocalFunction(function () {
  23695. return func(arg0, arg1, arg2, arg3);
  23696. });
  23697. };
  23698. } else {
  23699. return func;
  23700. }
  23701. };
  23702. // SVG temp container for IE lacking innerHTML
  23703. var reusableSVGContainer = void 0;
  23704. /**
  23705. * Set the innerHTML property of a node
  23706. *
  23707. * @param {DOMElement} node
  23708. * @param {string} html
  23709. * @internal
  23710. */
  23711. var setInnerHTML = createMicrosoftUnsafeLocalFunction(function (node, html) {
  23712. // IE does not have innerHTML for SVG nodes, so instead we inject the
  23713. // new markup in a temp node and then move the child nodes across into
  23714. // the target node
  23715. if (node.namespaceURI === Namespaces.svg && !('innerHTML' in node)) {
  23716. reusableSVGContainer = reusableSVGContainer || document.createElement('div');
  23717. reusableSVGContainer.innerHTML = '<svg>' + html + '</svg>';
  23718. var svgNode = reusableSVGContainer.firstChild;
  23719. while (node.firstChild) {
  23720. node.removeChild(node.firstChild);
  23721. }
  23722. while (svgNode.firstChild) {
  23723. node.appendChild(svgNode.firstChild);
  23724. }
  23725. } else {
  23726. node.innerHTML = html;
  23727. }
  23728. });
  23729. /**
  23730. * Set the textContent property of a node. For text updates, it's faster
  23731. * to set the `nodeValue` of the Text node directly instead of using
  23732. * `.textContent` which will remove the existing node and create a new one.
  23733. *
  23734. * @param {DOMElement} node
  23735. * @param {string} text
  23736. * @internal
  23737. */
  23738. var setTextContent = function (node, text) {
  23739. if (text) {
  23740. var firstChild = node.firstChild;
  23741. if (firstChild && firstChild === node.lastChild && firstChild.nodeType === TEXT_NODE) {
  23742. firstChild.nodeValue = text;
  23743. return;
  23744. }
  23745. }
  23746. node.textContent = text;
  23747. };
  23748. // List derived from Gecko source code:
  23749. // https://github.com/mozilla/gecko-dev/blob/4e638efc71/layout/style/test/property_database.js
  23750. var shorthandToLonghand = {
  23751. animation: ['animationDelay', 'animationDirection', 'animationDuration', 'animationFillMode', 'animationIterationCount', 'animationName', 'animationPlayState', 'animationTimingFunction'],
  23752. background: ['backgroundAttachment', 'backgroundClip', 'backgroundColor', 'backgroundImage', 'backgroundOrigin', 'backgroundPositionX', 'backgroundPositionY', 'backgroundRepeat', 'backgroundSize'],
  23753. backgroundPosition: ['backgroundPositionX', 'backgroundPositionY'],
  23754. border: ['borderBottomColor', 'borderBottomStyle', 'borderBottomWidth', 'borderImageOutset', 'borderImageRepeat', 'borderImageSlice', 'borderImageSource', 'borderImageWidth', 'borderLeftColor', 'borderLeftStyle', 'borderLeftWidth', 'borderRightColor', 'borderRightStyle', 'borderRightWidth', 'borderTopColor', 'borderTopStyle', 'borderTopWidth'],
  23755. borderBlockEnd: ['borderBlockEndColor', 'borderBlockEndStyle', 'borderBlockEndWidth'],
  23756. borderBlockStart: ['borderBlockStartColor', 'borderBlockStartStyle', 'borderBlockStartWidth'],
  23757. borderBottom: ['borderBottomColor', 'borderBottomStyle', 'borderBottomWidth'],
  23758. borderColor: ['borderBottomColor', 'borderLeftColor', 'borderRightColor', 'borderTopColor'],
  23759. borderImage: ['borderImageOutset', 'borderImageRepeat', 'borderImageSlice', 'borderImageSource', 'borderImageWidth'],
  23760. borderInlineEnd: ['borderInlineEndColor', 'borderInlineEndStyle', 'borderInlineEndWidth'],
  23761. borderInlineStart: ['borderInlineStartColor', 'borderInlineStartStyle', 'borderInlineStartWidth'],
  23762. borderLeft: ['borderLeftColor', 'borderLeftStyle', 'borderLeftWidth'],
  23763. borderRadius: ['borderBottomLeftRadius', 'borderBottomRightRadius', 'borderTopLeftRadius', 'borderTopRightRadius'],
  23764. borderRight: ['borderRightColor', 'borderRightStyle', 'borderRightWidth'],
  23765. borderStyle: ['borderBottomStyle', 'borderLeftStyle', 'borderRightStyle', 'borderTopStyle'],
  23766. borderTop: ['borderTopColor', 'borderTopStyle', 'borderTopWidth'],
  23767. borderWidth: ['borderBottomWidth', 'borderLeftWidth', 'borderRightWidth', 'borderTopWidth'],
  23768. columnRule: ['columnRuleColor', 'columnRuleStyle', 'columnRuleWidth'],
  23769. columns: ['columnCount', 'columnWidth'],
  23770. flex: ['flexBasis', 'flexGrow', 'flexShrink'],
  23771. flexFlow: ['flexDirection', 'flexWrap'],
  23772. font: ['fontFamily', 'fontFeatureSettings', 'fontKerning', 'fontLanguageOverride', 'fontSize', 'fontSizeAdjust', 'fontStretch', 'fontStyle', 'fontVariant', 'fontVariantAlternates', 'fontVariantCaps', 'fontVariantEastAsian', 'fontVariantLigatures', 'fontVariantNumeric', 'fontVariantPosition', 'fontWeight', 'lineHeight'],
  23773. fontVariant: ['fontVariantAlternates', 'fontVariantCaps', 'fontVariantEastAsian', 'fontVariantLigatures', 'fontVariantNumeric', 'fontVariantPosition'],
  23774. gap: ['columnGap', 'rowGap'],
  23775. grid: ['gridAutoColumns', 'gridAutoFlow', 'gridAutoRows', 'gridTemplateAreas', 'gridTemplateColumns', 'gridTemplateRows'],
  23776. gridArea: ['gridColumnEnd', 'gridColumnStart', 'gridRowEnd', 'gridRowStart'],
  23777. gridColumn: ['gridColumnEnd', 'gridColumnStart'],
  23778. gridColumnGap: ['columnGap'],
  23779. gridGap: ['columnGap', 'rowGap'],
  23780. gridRow: ['gridRowEnd', 'gridRowStart'],
  23781. gridRowGap: ['rowGap'],
  23782. gridTemplate: ['gridTemplateAreas', 'gridTemplateColumns', 'gridTemplateRows'],
  23783. listStyle: ['listStyleImage', 'listStylePosition', 'listStyleType'],
  23784. margin: ['marginBottom', 'marginLeft', 'marginRight', 'marginTop'],
  23785. marker: ['markerEnd', 'markerMid', 'markerStart'],
  23786. mask: ['maskClip', 'maskComposite', 'maskImage', 'maskMode', 'maskOrigin', 'maskPositionX', 'maskPositionY', 'maskRepeat', 'maskSize'],
  23787. maskPosition: ['maskPositionX', 'maskPositionY'],
  23788. outline: ['outlineColor', 'outlineStyle', 'outlineWidth'],
  23789. overflow: ['overflowX', 'overflowY'],
  23790. padding: ['paddingBottom', 'paddingLeft', 'paddingRight', 'paddingTop'],
  23791. placeContent: ['alignContent', 'justifyContent'],
  23792. placeItems: ['alignItems', 'justifyItems'],
  23793. placeSelf: ['alignSelf', 'justifySelf'],
  23794. textDecoration: ['textDecorationColor', 'textDecorationLine', 'textDecorationStyle'],
  23795. textEmphasis: ['textEmphasisColor', 'textEmphasisStyle'],
  23796. transition: ['transitionDelay', 'transitionDuration', 'transitionProperty', 'transitionTimingFunction'],
  23797. wordWrap: ['overflowWrap']
  23798. };
  23799. /**
  23800. * CSS properties which accept numbers but are not in units of "px".
  23801. */
  23802. var isUnitlessNumber = {
  23803. animationIterationCount: true,
  23804. borderImageOutset: true,
  23805. borderImageSlice: true,
  23806. borderImageWidth: true,
  23807. boxFlex: true,
  23808. boxFlexGroup: true,
  23809. boxOrdinalGroup: true,
  23810. columnCount: true,
  23811. columns: true,
  23812. flex: true,
  23813. flexGrow: true,
  23814. flexPositive: true,
  23815. flexShrink: true,
  23816. flexNegative: true,
  23817. flexOrder: true,
  23818. gridArea: true,
  23819. gridRow: true,
  23820. gridRowEnd: true,
  23821. gridRowSpan: true,
  23822. gridRowStart: true,
  23823. gridColumn: true,
  23824. gridColumnEnd: true,
  23825. gridColumnSpan: true,
  23826. gridColumnStart: true,
  23827. fontWeight: true,
  23828. lineClamp: true,
  23829. lineHeight: true,
  23830. opacity: true,
  23831. order: true,
  23832. orphans: true,
  23833. tabSize: true,
  23834. widows: true,
  23835. zIndex: true,
  23836. zoom: true,
  23837. // SVG-related properties
  23838. fillOpacity: true,
  23839. floodOpacity: true,
  23840. stopOpacity: true,
  23841. strokeDasharray: true,
  23842. strokeDashoffset: true,
  23843. strokeMiterlimit: true,
  23844. strokeOpacity: true,
  23845. strokeWidth: true
  23846. };
  23847. /**
  23848. * @param {string} prefix vendor-specific prefix, eg: Webkit
  23849. * @param {string} key style name, eg: transitionDuration
  23850. * @return {string} style name prefixed with `prefix`, properly camelCased, eg:
  23851. * WebkitTransitionDuration
  23852. */
  23853. function prefixKey(prefix, key) {
  23854. return prefix + key.charAt(0).toUpperCase() + key.substring(1);
  23855. }
  23856. /**
  23857. * Support style names that may come passed in prefixed by adding permutations
  23858. * of vendor prefixes.
  23859. */
  23860. var prefixes = ['Webkit', 'ms', 'Moz', 'O'];
  23861. // Using Object.keys here, or else the vanilla for-in loop makes IE8 go into an
  23862. // infinite loop, because it iterates over the newly added props too.
  23863. Object.keys(isUnitlessNumber).forEach(function (prop) {
  23864. prefixes.forEach(function (prefix) {
  23865. isUnitlessNumber[prefixKey(prefix, prop)] = isUnitlessNumber[prop];
  23866. });
  23867. });
  23868. /**
  23869. * Convert a value into the proper css writable value. The style name `name`
  23870. * should be logical (no hyphens), as specified
  23871. * in `CSSProperty.isUnitlessNumber`.
  23872. *
  23873. * @param {string} name CSS property name such as `topMargin`.
  23874. * @param {*} value CSS property value such as `10px`.
  23875. * @return {string} Normalized style value with dimensions applied.
  23876. */
  23877. function dangerousStyleValue(name, value, isCustomProperty) {
  23878. // Note that we've removed escapeTextForBrowser() calls here since the
  23879. // whole string will be escaped when the attribute is injected into
  23880. // the markup. If you provide unsafe user data here they can inject
  23881. // arbitrary CSS which may be problematic (I couldn't repro this):
  23882. // https://www.owasp.org/index.php/XSS_Filter_Evasion_Cheat_Sheet
  23883. // http://www.thespanner.co.uk/2007/11/26/ultimate-xss-css-injection/
  23884. // This is not an XSS hole but instead a potential CSS injection issue
  23885. // which has lead to a greater discussion about how we're going to
  23886. // trust URLs moving forward. See #2115901
  23887. var isEmpty = value == null || typeof value === 'boolean' || value === '';
  23888. if (isEmpty) {
  23889. return '';
  23890. }
  23891. if (!isCustomProperty && typeof value === 'number' && value !== 0 && !(isUnitlessNumber.hasOwnProperty(name) && isUnitlessNumber[name])) {
  23892. return value + 'px'; // Presumes implicit 'px' suffix for unitless numbers
  23893. }
  23894. return ('' + value).trim();
  23895. }
  23896. var uppercasePattern = /([A-Z])/g;
  23897. var msPattern = /^ms-/;
  23898. /**
  23899. * Hyphenates a camelcased CSS property name, for example:
  23900. *
  23901. * > hyphenateStyleName('backgroundColor')
  23902. * < "background-color"
  23903. * > hyphenateStyleName('MozTransition')
  23904. * < "-moz-transition"
  23905. * > hyphenateStyleName('msTransition')
  23906. * < "-ms-transition"
  23907. *
  23908. * As Modernizr suggests (http://modernizr.com/docs/#prefixed), an `ms` prefix
  23909. * is converted to `-ms-`.
  23910. */
  23911. function hyphenateStyleName(name) {
  23912. return name.replace(uppercasePattern, '-$1').toLowerCase().replace(msPattern, '-ms-');
  23913. }
  23914. var warnValidStyle = function () {};
  23915. {
  23916. // 'msTransform' is correct, but the other prefixes should be capitalized
  23917. var badVendoredStyleNamePattern = /^(?:webkit|moz|o)[A-Z]/;
  23918. var msPattern$1 = /^-ms-/;
  23919. var hyphenPattern = /-(.)/g;
  23920. // style values shouldn't contain a semicolon
  23921. var badStyleValueWithSemicolonPattern = /;\s*$/;
  23922. var warnedStyleNames = {};
  23923. var warnedStyleValues = {};
  23924. var warnedForNaNValue = false;
  23925. var warnedForInfinityValue = false;
  23926. var camelize = function (string) {
  23927. return string.replace(hyphenPattern, function (_, character) {
  23928. return character.toUpperCase();
  23929. });
  23930. };
  23931. var warnHyphenatedStyleName = function (name) {
  23932. if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) {
  23933. return;
  23934. }
  23935. warnedStyleNames[name] = true;
  23936. warning$1(false, 'Unsupported style property %s. Did you mean %s?', name,
  23937. // As Andi Smith suggests
  23938. // (http://www.andismith.com/blog/2012/02/modernizr-prefixed/), an `-ms` prefix
  23939. // is converted to lowercase `ms`.
  23940. camelize(name.replace(msPattern$1, 'ms-')));
  23941. };
  23942. var warnBadVendoredStyleName = function (name) {
  23943. if (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) {
  23944. return;
  23945. }
  23946. warnedStyleNames[name] = true;
  23947. warning$1(false, 'Unsupported vendor-prefixed style property %s. Did you mean %s?', name, name.charAt(0).toUpperCase() + name.slice(1));
  23948. };
  23949. var warnStyleValueWithSemicolon = function (name, value) {
  23950. if (warnedStyleValues.hasOwnProperty(value) && warnedStyleValues[value]) {
  23951. return;
  23952. }
  23953. warnedStyleValues[value] = true;
  23954. warning$1(false, "Style property values shouldn't contain a semicolon. " + 'Try "%s: %s" instead.', name, value.replace(badStyleValueWithSemicolonPattern, ''));
  23955. };
  23956. var warnStyleValueIsNaN = function (name, value) {
  23957. if (warnedForNaNValue) {
  23958. return;
  23959. }
  23960. warnedForNaNValue = true;
  23961. warning$1(false, '`NaN` is an invalid value for the `%s` css style property.', name);
  23962. };
  23963. var warnStyleValueIsInfinity = function (name, value) {
  23964. if (warnedForInfinityValue) {
  23965. return;
  23966. }
  23967. warnedForInfinityValue = true;
  23968. warning$1(false, '`Infinity` is an invalid value for the `%s` css style property.', name);
  23969. };
  23970. warnValidStyle = function (name, value) {
  23971. if (name.indexOf('-') > -1) {
  23972. warnHyphenatedStyleName(name);
  23973. } else if (badVendoredStyleNamePattern.test(name)) {
  23974. warnBadVendoredStyleName(name);
  23975. } else if (badStyleValueWithSemicolonPattern.test(value)) {
  23976. warnStyleValueWithSemicolon(name, value);
  23977. }
  23978. if (typeof value === 'number') {
  23979. if (isNaN(value)) {
  23980. warnStyleValueIsNaN(name, value);
  23981. } else if (!isFinite(value)) {
  23982. warnStyleValueIsInfinity(name, value);
  23983. }
  23984. }
  23985. };
  23986. }
  23987. var warnValidStyle$1 = warnValidStyle;
  23988. /**
  23989. * Operations for dealing with CSS properties.
  23990. */
  23991. /**
  23992. * This creates a string that is expected to be equivalent to the style
  23993. * attribute generated by server-side rendering. It by-passes warnings and
  23994. * security checks so it's not safe to use this value for anything other than
  23995. * comparison. It is only used in DEV for SSR validation.
  23996. */
  23997. function createDangerousStringForStyles(styles) {
  23998. {
  23999. var serialized = '';
  24000. var delimiter = '';
  24001. for (var styleName in styles) {
  24002. if (!styles.hasOwnProperty(styleName)) {
  24003. continue;
  24004. }
  24005. var styleValue = styles[styleName];
  24006. if (styleValue != null) {
  24007. var isCustomProperty = styleName.indexOf('--') === 0;
  24008. serialized += delimiter + (isCustomProperty ? styleName : hyphenateStyleName(styleName)) + ':';
  24009. serialized += dangerousStyleValue(styleName, styleValue, isCustomProperty);
  24010. delimiter = ';';
  24011. }
  24012. }
  24013. return serialized || null;
  24014. }
  24015. }
  24016. /**
  24017. * Sets the value for multiple styles on a node. If a value is specified as
  24018. * '' (empty string), the corresponding style property will be unset.
  24019. *
  24020. * @param {DOMElement} node
  24021. * @param {object} styles
  24022. */
  24023. function setValueForStyles(node, styles) {
  24024. var style = node.style;
  24025. for (var styleName in styles) {
  24026. if (!styles.hasOwnProperty(styleName)) {
  24027. continue;
  24028. }
  24029. var isCustomProperty = styleName.indexOf('--') === 0;
  24030. {
  24031. if (!isCustomProperty) {
  24032. warnValidStyle$1(styleName, styles[styleName]);
  24033. }
  24034. }
  24035. var styleValue = dangerousStyleValue(styleName, styles[styleName], isCustomProperty);
  24036. if (styleName === 'float') {
  24037. styleName = 'cssFloat';
  24038. }
  24039. if (isCustomProperty) {
  24040. style.setProperty(styleName, styleValue);
  24041. } else {
  24042. style[styleName] = styleValue;
  24043. }
  24044. }
  24045. }
  24046. function isValueEmpty(value) {
  24047. return value == null || typeof value === 'boolean' || value === '';
  24048. }
  24049. /**
  24050. * Given {color: 'red', overflow: 'hidden'} returns {
  24051. * color: 'color',
  24052. * overflowX: 'overflow',
  24053. * overflowY: 'overflow',
  24054. * }. This can be read as "the overflowY property was set by the overflow
  24055. * shorthand". That is, the values are the property that each was derived from.
  24056. */
  24057. function expandShorthandMap(styles) {
  24058. var expanded = {};
  24059. for (var key in styles) {
  24060. var longhands = shorthandToLonghand[key] || [key];
  24061. for (var i = 0; i < longhands.length; i++) {
  24062. expanded[longhands[i]] = key;
  24063. }
  24064. }
  24065. return expanded;
  24066. }
  24067. /**
  24068. * When mixing shorthand and longhand property names, we warn during updates if
  24069. * we expect an incorrect result to occur. In particular, we warn for:
  24070. *
  24071. * Updating a shorthand property (longhand gets overwritten):
  24072. * {font: 'foo', fontVariant: 'bar'} -> {font: 'baz', fontVariant: 'bar'}
  24073. * becomes .style.font = 'baz'
  24074. * Removing a shorthand property (longhand gets lost too):
  24075. * {font: 'foo', fontVariant: 'bar'} -> {fontVariant: 'bar'}
  24076. * becomes .style.font = ''
  24077. * Removing a longhand property (should revert to shorthand; doesn't):
  24078. * {font: 'foo', fontVariant: 'bar'} -> {font: 'foo'}
  24079. * becomes .style.fontVariant = ''
  24080. */
  24081. function validateShorthandPropertyCollisionInDev(styleUpdates, nextStyles) {
  24082. if (!warnAboutShorthandPropertyCollision) {
  24083. return;
  24084. }
  24085. if (!nextStyles) {
  24086. return;
  24087. }
  24088. var expandedUpdates = expandShorthandMap(styleUpdates);
  24089. var expandedStyles = expandShorthandMap(nextStyles);
  24090. var warnedAbout = {};
  24091. for (var key in expandedUpdates) {
  24092. var originalKey = expandedUpdates[key];
  24093. var correctOriginalKey = expandedStyles[key];
  24094. if (correctOriginalKey && originalKey !== correctOriginalKey) {
  24095. var warningKey = originalKey + ',' + correctOriginalKey;
  24096. if (warnedAbout[warningKey]) {
  24097. continue;
  24098. }
  24099. warnedAbout[warningKey] = true;
  24100. warning$1(false, '%s a style property during rerender (%s) when a ' + 'conflicting property is set (%s) can lead to styling bugs. To ' + "avoid this, don't mix shorthand and non-shorthand properties " + 'for the same value; instead, replace the shorthand with ' + 'separate values.', isValueEmpty(styleUpdates[originalKey]) ? 'Removing' : 'Updating', originalKey, correctOriginalKey);
  24101. }
  24102. }
  24103. }
  24104. // For HTML, certain tags should omit their close tag. We keep a whitelist for
  24105. // those special-case tags.
  24106. var omittedCloseTags = {
  24107. area: true,
  24108. base: true,
  24109. br: true,
  24110. col: true,
  24111. embed: true,
  24112. hr: true,
  24113. img: true,
  24114. input: true,
  24115. keygen: true,
  24116. link: true,
  24117. meta: true,
  24118. param: true,
  24119. source: true,
  24120. track: true,
  24121. wbr: true
  24122. // NOTE: menuitem's close tag should be omitted, but that causes problems.
  24123. };
  24124. // For HTML, certain tags cannot have children. This has the same purpose as
  24125. // `omittedCloseTags` except that `menuitem` should still have its closing tag.
  24126. var voidElementTags = _assign({
  24127. menuitem: true
  24128. }, omittedCloseTags);
  24129. // TODO: We can remove this if we add invariantWithStack()
  24130. // or add stack by default to invariants where possible.
  24131. var HTML$1 = '__html';
  24132. var ReactDebugCurrentFrame$3 = null;
  24133. {
  24134. ReactDebugCurrentFrame$3 = ReactSharedInternals.ReactDebugCurrentFrame;
  24135. }
  24136. function assertValidProps(tag, props) {
  24137. if (!props) {
  24138. return;
  24139. }
  24140. // Note the use of `==` which checks for null or undefined.
  24141. if (voidElementTags[tag]) {
  24142. (function () {
  24143. if (!(props.children == null && props.dangerouslySetInnerHTML == null)) {
  24144. {
  24145. throw ReactError(Error(tag + ' is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.' + (ReactDebugCurrentFrame$3.getStackAddendum())));
  24146. }
  24147. }
  24148. })();
  24149. }
  24150. if (props.dangerouslySetInnerHTML != null) {
  24151. (function () {
  24152. if (!(props.children == null)) {
  24153. {
  24154. throw ReactError(Error('Can only set one of `children` or `props.dangerouslySetInnerHTML`.'));
  24155. }
  24156. }
  24157. })();
  24158. (function () {
  24159. if (!(typeof props.dangerouslySetInnerHTML === 'object' && HTML$1 in props.dangerouslySetInnerHTML)) {
  24160. {
  24161. throw ReactError(Error('`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://fb.me/react-invariant-dangerously-set-inner-html for more information.'));
  24162. }
  24163. }
  24164. })();
  24165. }
  24166. {
  24167. !(props.suppressContentEditableWarning || !props.contentEditable || props.children == null) ? warning$1(false, 'A component is `contentEditable` and contains `children` managed by ' + 'React. It is now your responsibility to guarantee that none of ' + 'those nodes are unexpectedly modified or duplicated. This is ' + 'probably not intentional.') : void 0;
  24168. }
  24169. (function () {
  24170. if (!(props.style == null || typeof props.style === 'object')) {
  24171. {
  24172. throw ReactError(Error('The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + \'em\'}} when using JSX.' + (ReactDebugCurrentFrame$3.getStackAddendum())));
  24173. }
  24174. }
  24175. })();
  24176. }
  24177. function isCustomComponent(tagName, props) {
  24178. if (tagName.indexOf('-') === -1) {
  24179. return typeof props.is === 'string';
  24180. }
  24181. switch (tagName) {
  24182. // These are reserved SVG and MathML elements.
  24183. // We don't mind this whitelist too much because we expect it to never grow.
  24184. // The alternative is to track the namespace in a few places which is convoluted.
  24185. // https://w3c.github.io/webcomponents/spec/custom/#custom-elements-core-concepts
  24186. case 'annotation-xml':
  24187. case 'color-profile':
  24188. case 'font-face':
  24189. case 'font-face-src':
  24190. case 'font-face-uri':
  24191. case 'font-face-format':
  24192. case 'font-face-name':
  24193. case 'missing-glyph':
  24194. return false;
  24195. default:
  24196. return true;
  24197. }
  24198. }
  24199. // When adding attributes to the HTML or SVG whitelist, be sure to
  24200. // also add them to this module to ensure casing and incorrect name
  24201. // warnings.
  24202. var possibleStandardNames = {
  24203. // HTML
  24204. accept: 'accept',
  24205. acceptcharset: 'acceptCharset',
  24206. 'accept-charset': 'acceptCharset',
  24207. accesskey: 'accessKey',
  24208. action: 'action',
  24209. allowfullscreen: 'allowFullScreen',
  24210. alt: 'alt',
  24211. as: 'as',
  24212. async: 'async',
  24213. autocapitalize: 'autoCapitalize',
  24214. autocomplete: 'autoComplete',
  24215. autocorrect: 'autoCorrect',
  24216. autofocus: 'autoFocus',
  24217. autoplay: 'autoPlay',
  24218. autosave: 'autoSave',
  24219. capture: 'capture',
  24220. cellpadding: 'cellPadding',
  24221. cellspacing: 'cellSpacing',
  24222. challenge: 'challenge',
  24223. charset: 'charSet',
  24224. checked: 'checked',
  24225. children: 'children',
  24226. cite: 'cite',
  24227. class: 'className',
  24228. classid: 'classID',
  24229. classname: 'className',
  24230. cols: 'cols',
  24231. colspan: 'colSpan',
  24232. content: 'content',
  24233. contenteditable: 'contentEditable',
  24234. contextmenu: 'contextMenu',
  24235. controls: 'controls',
  24236. controlslist: 'controlsList',
  24237. coords: 'coords',
  24238. crossorigin: 'crossOrigin',
  24239. dangerouslysetinnerhtml: 'dangerouslySetInnerHTML',
  24240. data: 'data',
  24241. datetime: 'dateTime',
  24242. default: 'default',
  24243. defaultchecked: 'defaultChecked',
  24244. defaultvalue: 'defaultValue',
  24245. defer: 'defer',
  24246. dir: 'dir',
  24247. disabled: 'disabled',
  24248. disablepictureinpicture: 'disablePictureInPicture',
  24249. download: 'download',
  24250. draggable: 'draggable',
  24251. enctype: 'encType',
  24252. for: 'htmlFor',
  24253. form: 'form',
  24254. formmethod: 'formMethod',
  24255. formaction: 'formAction',
  24256. formenctype: 'formEncType',
  24257. formnovalidate: 'formNoValidate',
  24258. formtarget: 'formTarget',
  24259. frameborder: 'frameBorder',
  24260. headers: 'headers',
  24261. height: 'height',
  24262. hidden: 'hidden',
  24263. high: 'high',
  24264. href: 'href',
  24265. hreflang: 'hrefLang',
  24266. htmlfor: 'htmlFor',
  24267. httpequiv: 'httpEquiv',
  24268. 'http-equiv': 'httpEquiv',
  24269. icon: 'icon',
  24270. id: 'id',
  24271. innerhtml: 'innerHTML',
  24272. inputmode: 'inputMode',
  24273. integrity: 'integrity',
  24274. is: 'is',
  24275. itemid: 'itemID',
  24276. itemprop: 'itemProp',
  24277. itemref: 'itemRef',
  24278. itemscope: 'itemScope',
  24279. itemtype: 'itemType',
  24280. keyparams: 'keyParams',
  24281. keytype: 'keyType',
  24282. kind: 'kind',
  24283. label: 'label',
  24284. lang: 'lang',
  24285. list: 'list',
  24286. loop: 'loop',
  24287. low: 'low',
  24288. manifest: 'manifest',
  24289. marginwidth: 'marginWidth',
  24290. marginheight: 'marginHeight',
  24291. max: 'max',
  24292. maxlength: 'maxLength',
  24293. media: 'media',
  24294. mediagroup: 'mediaGroup',
  24295. method: 'method',
  24296. min: 'min',
  24297. minlength: 'minLength',
  24298. multiple: 'multiple',
  24299. muted: 'muted',
  24300. name: 'name',
  24301. nomodule: 'noModule',
  24302. nonce: 'nonce',
  24303. novalidate: 'noValidate',
  24304. open: 'open',
  24305. optimum: 'optimum',
  24306. pattern: 'pattern',
  24307. placeholder: 'placeholder',
  24308. playsinline: 'playsInline',
  24309. poster: 'poster',
  24310. preload: 'preload',
  24311. profile: 'profile',
  24312. radiogroup: 'radioGroup',
  24313. readonly: 'readOnly',
  24314. referrerpolicy: 'referrerPolicy',
  24315. rel: 'rel',
  24316. required: 'required',
  24317. reversed: 'reversed',
  24318. role: 'role',
  24319. rows: 'rows',
  24320. rowspan: 'rowSpan',
  24321. sandbox: 'sandbox',
  24322. scope: 'scope',
  24323. scoped: 'scoped',
  24324. scrolling: 'scrolling',
  24325. seamless: 'seamless',
  24326. selected: 'selected',
  24327. shape: 'shape',
  24328. size: 'size',
  24329. sizes: 'sizes',
  24330. span: 'span',
  24331. spellcheck: 'spellCheck',
  24332. src: 'src',
  24333. srcdoc: 'srcDoc',
  24334. srclang: 'srcLang',
  24335. srcset: 'srcSet',
  24336. start: 'start',
  24337. step: 'step',
  24338. style: 'style',
  24339. summary: 'summary',
  24340. tabindex: 'tabIndex',
  24341. target: 'target',
  24342. title: 'title',
  24343. type: 'type',
  24344. usemap: 'useMap',
  24345. value: 'value',
  24346. width: 'width',
  24347. wmode: 'wmode',
  24348. wrap: 'wrap',
  24349. // SVG
  24350. about: 'about',
  24351. accentheight: 'accentHeight',
  24352. 'accent-height': 'accentHeight',
  24353. accumulate: 'accumulate',
  24354. additive: 'additive',
  24355. alignmentbaseline: 'alignmentBaseline',
  24356. 'alignment-baseline': 'alignmentBaseline',
  24357. allowreorder: 'allowReorder',
  24358. alphabetic: 'alphabetic',
  24359. amplitude: 'amplitude',
  24360. arabicform: 'arabicForm',
  24361. 'arabic-form': 'arabicForm',
  24362. ascent: 'ascent',
  24363. attributename: 'attributeName',
  24364. attributetype: 'attributeType',
  24365. autoreverse: 'autoReverse',
  24366. azimuth: 'azimuth',
  24367. basefrequency: 'baseFrequency',
  24368. baselineshift: 'baselineShift',
  24369. 'baseline-shift': 'baselineShift',
  24370. baseprofile: 'baseProfile',
  24371. bbox: 'bbox',
  24372. begin: 'begin',
  24373. bias: 'bias',
  24374. by: 'by',
  24375. calcmode: 'calcMode',
  24376. capheight: 'capHeight',
  24377. 'cap-height': 'capHeight',
  24378. clip: 'clip',
  24379. clippath: 'clipPath',
  24380. 'clip-path': 'clipPath',
  24381. clippathunits: 'clipPathUnits',
  24382. cliprule: 'clipRule',
  24383. 'clip-rule': 'clipRule',
  24384. color: 'color',
  24385. colorinterpolation: 'colorInterpolation',
  24386. 'color-interpolation': 'colorInterpolation',
  24387. colorinterpolationfilters: 'colorInterpolationFilters',
  24388. 'color-interpolation-filters': 'colorInterpolationFilters',
  24389. colorprofile: 'colorProfile',
  24390. 'color-profile': 'colorProfile',
  24391. colorrendering: 'colorRendering',
  24392. 'color-rendering': 'colorRendering',
  24393. contentscripttype: 'contentScriptType',
  24394. contentstyletype: 'contentStyleType',
  24395. cursor: 'cursor',
  24396. cx: 'cx',
  24397. cy: 'cy',
  24398. d: 'd',
  24399. datatype: 'datatype',
  24400. decelerate: 'decelerate',
  24401. descent: 'descent',
  24402. diffuseconstant: 'diffuseConstant',
  24403. direction: 'direction',
  24404. display: 'display',
  24405. divisor: 'divisor',
  24406. dominantbaseline: 'dominantBaseline',
  24407. 'dominant-baseline': 'dominantBaseline',
  24408. dur: 'dur',
  24409. dx: 'dx',
  24410. dy: 'dy',
  24411. edgemode: 'edgeMode',
  24412. elevation: 'elevation',
  24413. enablebackground: 'enableBackground',
  24414. 'enable-background': 'enableBackground',
  24415. end: 'end',
  24416. exponent: 'exponent',
  24417. externalresourcesrequired: 'externalResourcesRequired',
  24418. fill: 'fill',
  24419. fillopacity: 'fillOpacity',
  24420. 'fill-opacity': 'fillOpacity',
  24421. fillrule: 'fillRule',
  24422. 'fill-rule': 'fillRule',
  24423. filter: 'filter',
  24424. filterres: 'filterRes',
  24425. filterunits: 'filterUnits',
  24426. floodopacity: 'floodOpacity',
  24427. 'flood-opacity': 'floodOpacity',
  24428. floodcolor: 'floodColor',
  24429. 'flood-color': 'floodColor',
  24430. focusable: 'focusable',
  24431. fontfamily: 'fontFamily',
  24432. 'font-family': 'fontFamily',
  24433. fontsize: 'fontSize',
  24434. 'font-size': 'fontSize',
  24435. fontsizeadjust: 'fontSizeAdjust',
  24436. 'font-size-adjust': 'fontSizeAdjust',
  24437. fontstretch: 'fontStretch',
  24438. 'font-stretch': 'fontStretch',
  24439. fontstyle: 'fontStyle',
  24440. 'font-style': 'fontStyle',
  24441. fontvariant: 'fontVariant',
  24442. 'font-variant': 'fontVariant',
  24443. fontweight: 'fontWeight',
  24444. 'font-weight': 'fontWeight',
  24445. format: 'format',
  24446. from: 'from',
  24447. fx: 'fx',
  24448. fy: 'fy',
  24449. g1: 'g1',
  24450. g2: 'g2',
  24451. glyphname: 'glyphName',
  24452. 'glyph-name': 'glyphName',
  24453. glyphorientationhorizontal: 'glyphOrientationHorizontal',
  24454. 'glyph-orientation-horizontal': 'glyphOrientationHorizontal',
  24455. glyphorientationvertical: 'glyphOrientationVertical',
  24456. 'glyph-orientation-vertical': 'glyphOrientationVertical',
  24457. glyphref: 'glyphRef',
  24458. gradienttransform: 'gradientTransform',
  24459. gradientunits: 'gradientUnits',
  24460. hanging: 'hanging',
  24461. horizadvx: 'horizAdvX',
  24462. 'horiz-adv-x': 'horizAdvX',
  24463. horizoriginx: 'horizOriginX',
  24464. 'horiz-origin-x': 'horizOriginX',
  24465. ideographic: 'ideographic',
  24466. imagerendering: 'imageRendering',
  24467. 'image-rendering': 'imageRendering',
  24468. in2: 'in2',
  24469. in: 'in',
  24470. inlist: 'inlist',
  24471. intercept: 'intercept',
  24472. k1: 'k1',
  24473. k2: 'k2',
  24474. k3: 'k3',
  24475. k4: 'k4',
  24476. k: 'k',
  24477. kernelmatrix: 'kernelMatrix',
  24478. kernelunitlength: 'kernelUnitLength',
  24479. kerning: 'kerning',
  24480. keypoints: 'keyPoints',
  24481. keysplines: 'keySplines',
  24482. keytimes: 'keyTimes',
  24483. lengthadjust: 'lengthAdjust',
  24484. letterspacing: 'letterSpacing',
  24485. 'letter-spacing': 'letterSpacing',
  24486. lightingcolor: 'lightingColor',
  24487. 'lighting-color': 'lightingColor',
  24488. limitingconeangle: 'limitingConeAngle',
  24489. local: 'local',
  24490. markerend: 'markerEnd',
  24491. 'marker-end': 'markerEnd',
  24492. markerheight: 'markerHeight',
  24493. markermid: 'markerMid',
  24494. 'marker-mid': 'markerMid',
  24495. markerstart: 'markerStart',
  24496. 'marker-start': 'markerStart',
  24497. markerunits: 'markerUnits',
  24498. markerwidth: 'markerWidth',
  24499. mask: 'mask',
  24500. maskcontentunits: 'maskContentUnits',
  24501. maskunits: 'maskUnits',
  24502. mathematical: 'mathematical',
  24503. mode: 'mode',
  24504. numoctaves: 'numOctaves',
  24505. offset: 'offset',
  24506. opacity: 'opacity',
  24507. operator: 'operator',
  24508. order: 'order',
  24509. orient: 'orient',
  24510. orientation: 'orientation',
  24511. origin: 'origin',
  24512. overflow: 'overflow',
  24513. overlineposition: 'overlinePosition',
  24514. 'overline-position': 'overlinePosition',
  24515. overlinethickness: 'overlineThickness',
  24516. 'overline-thickness': 'overlineThickness',
  24517. paintorder: 'paintOrder',
  24518. 'paint-order': 'paintOrder',
  24519. panose1: 'panose1',
  24520. 'panose-1': 'panose1',
  24521. pathlength: 'pathLength',
  24522. patterncontentunits: 'patternContentUnits',
  24523. patterntransform: 'patternTransform',
  24524. patternunits: 'patternUnits',
  24525. pointerevents: 'pointerEvents',
  24526. 'pointer-events': 'pointerEvents',
  24527. points: 'points',
  24528. pointsatx: 'pointsAtX',
  24529. pointsaty: 'pointsAtY',
  24530. pointsatz: 'pointsAtZ',
  24531. prefix: 'prefix',
  24532. preservealpha: 'preserveAlpha',
  24533. preserveaspectratio: 'preserveAspectRatio',
  24534. primitiveunits: 'primitiveUnits',
  24535. property: 'property',
  24536. r: 'r',
  24537. radius: 'radius',
  24538. refx: 'refX',
  24539. refy: 'refY',
  24540. renderingintent: 'renderingIntent',
  24541. 'rendering-intent': 'renderingIntent',
  24542. repeatcount: 'repeatCount',
  24543. repeatdur: 'repeatDur',
  24544. requiredextensions: 'requiredExtensions',
  24545. requiredfeatures: 'requiredFeatures',
  24546. resource: 'resource',
  24547. restart: 'restart',
  24548. result: 'result',
  24549. results: 'results',
  24550. rotate: 'rotate',
  24551. rx: 'rx',
  24552. ry: 'ry',
  24553. scale: 'scale',
  24554. security: 'security',
  24555. seed: 'seed',
  24556. shaperendering: 'shapeRendering',
  24557. 'shape-rendering': 'shapeRendering',
  24558. slope: 'slope',
  24559. spacing: 'spacing',
  24560. specularconstant: 'specularConstant',
  24561. specularexponent: 'specularExponent',
  24562. speed: 'speed',
  24563. spreadmethod: 'spreadMethod',
  24564. startoffset: 'startOffset',
  24565. stddeviation: 'stdDeviation',
  24566. stemh: 'stemh',
  24567. stemv: 'stemv',
  24568. stitchtiles: 'stitchTiles',
  24569. stopcolor: 'stopColor',
  24570. 'stop-color': 'stopColor',
  24571. stopopacity: 'stopOpacity',
  24572. 'stop-opacity': 'stopOpacity',
  24573. strikethroughposition: 'strikethroughPosition',
  24574. 'strikethrough-position': 'strikethroughPosition',
  24575. strikethroughthickness: 'strikethroughThickness',
  24576. 'strikethrough-thickness': 'strikethroughThickness',
  24577. string: 'string',
  24578. stroke: 'stroke',
  24579. strokedasharray: 'strokeDasharray',
  24580. 'stroke-dasharray': 'strokeDasharray',
  24581. strokedashoffset: 'strokeDashoffset',
  24582. 'stroke-dashoffset': 'strokeDashoffset',
  24583. strokelinecap: 'strokeLinecap',
  24584. 'stroke-linecap': 'strokeLinecap',
  24585. strokelinejoin: 'strokeLinejoin',
  24586. 'stroke-linejoin': 'strokeLinejoin',
  24587. strokemiterlimit: 'strokeMiterlimit',
  24588. 'stroke-miterlimit': 'strokeMiterlimit',
  24589. strokewidth: 'strokeWidth',
  24590. 'stroke-width': 'strokeWidth',
  24591. strokeopacity: 'strokeOpacity',
  24592. 'stroke-opacity': 'strokeOpacity',
  24593. suppresscontenteditablewarning: 'suppressContentEditableWarning',
  24594. suppresshydrationwarning: 'suppressHydrationWarning',
  24595. surfacescale: 'surfaceScale',
  24596. systemlanguage: 'systemLanguage',
  24597. tablevalues: 'tableValues',
  24598. targetx: 'targetX',
  24599. targety: 'targetY',
  24600. textanchor: 'textAnchor',
  24601. 'text-anchor': 'textAnchor',
  24602. textdecoration: 'textDecoration',
  24603. 'text-decoration': 'textDecoration',
  24604. textlength: 'textLength',
  24605. textrendering: 'textRendering',
  24606. 'text-rendering': 'textRendering',
  24607. to: 'to',
  24608. transform: 'transform',
  24609. typeof: 'typeof',
  24610. u1: 'u1',
  24611. u2: 'u2',
  24612. underlineposition: 'underlinePosition',
  24613. 'underline-position': 'underlinePosition',
  24614. underlinethickness: 'underlineThickness',
  24615. 'underline-thickness': 'underlineThickness',
  24616. unicode: 'unicode',
  24617. unicodebidi: 'unicodeBidi',
  24618. 'unicode-bidi': 'unicodeBidi',
  24619. unicoderange: 'unicodeRange',
  24620. 'unicode-range': 'unicodeRange',
  24621. unitsperem: 'unitsPerEm',
  24622. 'units-per-em': 'unitsPerEm',
  24623. unselectable: 'unselectable',
  24624. valphabetic: 'vAlphabetic',
  24625. 'v-alphabetic': 'vAlphabetic',
  24626. values: 'values',
  24627. vectoreffect: 'vectorEffect',
  24628. 'vector-effect': 'vectorEffect',
  24629. version: 'version',
  24630. vertadvy: 'vertAdvY',
  24631. 'vert-adv-y': 'vertAdvY',
  24632. vertoriginx: 'vertOriginX',
  24633. 'vert-origin-x': 'vertOriginX',
  24634. vertoriginy: 'vertOriginY',
  24635. 'vert-origin-y': 'vertOriginY',
  24636. vhanging: 'vHanging',
  24637. 'v-hanging': 'vHanging',
  24638. videographic: 'vIdeographic',
  24639. 'v-ideographic': 'vIdeographic',
  24640. viewbox: 'viewBox',
  24641. viewtarget: 'viewTarget',
  24642. visibility: 'visibility',
  24643. vmathematical: 'vMathematical',
  24644. 'v-mathematical': 'vMathematical',
  24645. vocab: 'vocab',
  24646. widths: 'widths',
  24647. wordspacing: 'wordSpacing',
  24648. 'word-spacing': 'wordSpacing',
  24649. writingmode: 'writingMode',
  24650. 'writing-mode': 'writingMode',
  24651. x1: 'x1',
  24652. x2: 'x2',
  24653. x: 'x',
  24654. xchannelselector: 'xChannelSelector',
  24655. xheight: 'xHeight',
  24656. 'x-height': 'xHeight',
  24657. xlinkactuate: 'xlinkActuate',
  24658. 'xlink:actuate': 'xlinkActuate',
  24659. xlinkarcrole: 'xlinkArcrole',
  24660. 'xlink:arcrole': 'xlinkArcrole',
  24661. xlinkhref: 'xlinkHref',
  24662. 'xlink:href': 'xlinkHref',
  24663. xlinkrole: 'xlinkRole',
  24664. 'xlink:role': 'xlinkRole',
  24665. xlinkshow: 'xlinkShow',
  24666. 'xlink:show': 'xlinkShow',
  24667. xlinktitle: 'xlinkTitle',
  24668. 'xlink:title': 'xlinkTitle',
  24669. xlinktype: 'xlinkType',
  24670. 'xlink:type': 'xlinkType',
  24671. xmlbase: 'xmlBase',
  24672. 'xml:base': 'xmlBase',
  24673. xmllang: 'xmlLang',
  24674. 'xml:lang': 'xmlLang',
  24675. xmlns: 'xmlns',
  24676. 'xml:space': 'xmlSpace',
  24677. xmlnsxlink: 'xmlnsXlink',
  24678. 'xmlns:xlink': 'xmlnsXlink',
  24679. xmlspace: 'xmlSpace',
  24680. y1: 'y1',
  24681. y2: 'y2',
  24682. y: 'y',
  24683. ychannelselector: 'yChannelSelector',
  24684. z: 'z',
  24685. zoomandpan: 'zoomAndPan'
  24686. };
  24687. var ariaProperties = {
  24688. 'aria-current': 0, // state
  24689. 'aria-details': 0,
  24690. 'aria-disabled': 0, // state
  24691. 'aria-hidden': 0, // state
  24692. 'aria-invalid': 0, // state
  24693. 'aria-keyshortcuts': 0,
  24694. 'aria-label': 0,
  24695. 'aria-roledescription': 0,
  24696. // Widget Attributes
  24697. 'aria-autocomplete': 0,
  24698. 'aria-checked': 0,
  24699. 'aria-expanded': 0,
  24700. 'aria-haspopup': 0,
  24701. 'aria-level': 0,
  24702. 'aria-modal': 0,
  24703. 'aria-multiline': 0,
  24704. 'aria-multiselectable': 0,
  24705. 'aria-orientation': 0,
  24706. 'aria-placeholder': 0,
  24707. 'aria-pressed': 0,
  24708. 'aria-readonly': 0,
  24709. 'aria-required': 0,
  24710. 'aria-selected': 0,
  24711. 'aria-sort': 0,
  24712. 'aria-valuemax': 0,
  24713. 'aria-valuemin': 0,
  24714. 'aria-valuenow': 0,
  24715. 'aria-valuetext': 0,
  24716. // Live Region Attributes
  24717. 'aria-atomic': 0,
  24718. 'aria-busy': 0,
  24719. 'aria-live': 0,
  24720. 'aria-relevant': 0,
  24721. // Drag-and-Drop Attributes
  24722. 'aria-dropeffect': 0,
  24723. 'aria-grabbed': 0,
  24724. // Relationship Attributes
  24725. 'aria-activedescendant': 0,
  24726. 'aria-colcount': 0,
  24727. 'aria-colindex': 0,
  24728. 'aria-colspan': 0,
  24729. 'aria-controls': 0,
  24730. 'aria-describedby': 0,
  24731. 'aria-errormessage': 0,
  24732. 'aria-flowto': 0,
  24733. 'aria-labelledby': 0,
  24734. 'aria-owns': 0,
  24735. 'aria-posinset': 0,
  24736. 'aria-rowcount': 0,
  24737. 'aria-rowindex': 0,
  24738. 'aria-rowspan': 0,
  24739. 'aria-setsize': 0
  24740. };
  24741. var warnedProperties = {};
  24742. var rARIA = new RegExp('^(aria)-[' + ATTRIBUTE_NAME_CHAR + ']*$');
  24743. var rARIACamel = new RegExp('^(aria)[A-Z][' + ATTRIBUTE_NAME_CHAR + ']*$');
  24744. var hasOwnProperty$2 = Object.prototype.hasOwnProperty;
  24745. function validateProperty(tagName, name) {
  24746. if (hasOwnProperty$2.call(warnedProperties, name) && warnedProperties[name]) {
  24747. return true;
  24748. }
  24749. if (rARIACamel.test(name)) {
  24750. var ariaName = 'aria-' + name.slice(4).toLowerCase();
  24751. var correctName = ariaProperties.hasOwnProperty(ariaName) ? ariaName : null;
  24752. // If this is an aria-* attribute, but is not listed in the known DOM
  24753. // DOM properties, then it is an invalid aria-* attribute.
  24754. if (correctName == null) {
  24755. warning$1(false, 'Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.', name);
  24756. warnedProperties[name] = true;
  24757. return true;
  24758. }
  24759. // aria-* attributes should be lowercase; suggest the lowercase version.
  24760. if (name !== correctName) {
  24761. warning$1(false, 'Invalid ARIA attribute `%s`. Did you mean `%s`?', name, correctName);
  24762. warnedProperties[name] = true;
  24763. return true;
  24764. }
  24765. }
  24766. if (rARIA.test(name)) {
  24767. var lowerCasedName = name.toLowerCase();
  24768. var standardName = ariaProperties.hasOwnProperty(lowerCasedName) ? lowerCasedName : null;
  24769. // If this is an aria-* attribute, but is not listed in the known DOM
  24770. // DOM properties, then it is an invalid aria-* attribute.
  24771. if (standardName == null) {
  24772. warnedProperties[name] = true;
  24773. return false;
  24774. }
  24775. // aria-* attributes should be lowercase; suggest the lowercase version.
  24776. if (name !== standardName) {
  24777. warning$1(false, 'Unknown ARIA attribute `%s`. Did you mean `%s`?', name, standardName);
  24778. warnedProperties[name] = true;
  24779. return true;
  24780. }
  24781. }
  24782. return true;
  24783. }
  24784. function warnInvalidARIAProps(type, props) {
  24785. var invalidProps = [];
  24786. for (var key in props) {
  24787. var isValid = validateProperty(type, key);
  24788. if (!isValid) {
  24789. invalidProps.push(key);
  24790. }
  24791. }
  24792. var unknownPropString = invalidProps.map(function (prop) {
  24793. return '`' + prop + '`';
  24794. }).join(', ');
  24795. if (invalidProps.length === 1) {
  24796. warning$1(false, 'Invalid aria prop %s on <%s> tag. ' + 'For details, see https://fb.me/invalid-aria-prop', unknownPropString, type);
  24797. } else if (invalidProps.length > 1) {
  24798. warning$1(false, 'Invalid aria props %s on <%s> tag. ' + 'For details, see https://fb.me/invalid-aria-prop', unknownPropString, type);
  24799. }
  24800. }
  24801. function validateProperties(type, props) {
  24802. if (isCustomComponent(type, props)) {
  24803. return;
  24804. }
  24805. warnInvalidARIAProps(type, props);
  24806. }
  24807. var didWarnValueNull = false;
  24808. function validateProperties$1(type, props) {
  24809. if (type !== 'input' && type !== 'textarea' && type !== 'select') {
  24810. return;
  24811. }
  24812. if (props != null && props.value === null && !didWarnValueNull) {
  24813. didWarnValueNull = true;
  24814. if (type === 'select' && props.multiple) {
  24815. warning$1(false, '`value` prop on `%s` should not be null. ' + 'Consider using an empty array when `multiple` is set to `true` ' + 'to clear the component or `undefined` for uncontrolled components.', type);
  24816. } else {
  24817. warning$1(false, '`value` prop on `%s` should not be null. ' + 'Consider using an empty string to clear the component or `undefined` ' + 'for uncontrolled components.', type);
  24818. }
  24819. }
  24820. }
  24821. var validateProperty$1 = function () {};
  24822. {
  24823. var warnedProperties$1 = {};
  24824. var _hasOwnProperty = Object.prototype.hasOwnProperty;
  24825. var EVENT_NAME_REGEX = /^on./;
  24826. var INVALID_EVENT_NAME_REGEX = /^on[^A-Z]/;
  24827. var rARIA$1 = new RegExp('^(aria)-[' + ATTRIBUTE_NAME_CHAR + ']*$');
  24828. var rARIACamel$1 = new RegExp('^(aria)[A-Z][' + ATTRIBUTE_NAME_CHAR + ']*$');
  24829. validateProperty$1 = function (tagName, name, value, canUseEventSystem) {
  24830. if (_hasOwnProperty.call(warnedProperties$1, name) && warnedProperties$1[name]) {
  24831. return true;
  24832. }
  24833. var lowerCasedName = name.toLowerCase();
  24834. if (lowerCasedName === 'onfocusin' || lowerCasedName === 'onfocusout') {
  24835. warning$1(false, 'React uses onFocus and onBlur instead of onFocusIn and onFocusOut. ' + 'All React events are normalized to bubble, so onFocusIn and onFocusOut ' + 'are not needed/supported by React.');
  24836. warnedProperties$1[name] = true;
  24837. return true;
  24838. }
  24839. // We can't rely on the event system being injected on the server.
  24840. if (canUseEventSystem) {
  24841. if (registrationNameModules.hasOwnProperty(name)) {
  24842. return true;
  24843. }
  24844. var registrationName = possibleRegistrationNames.hasOwnProperty(lowerCasedName) ? possibleRegistrationNames[lowerCasedName] : null;
  24845. if (registrationName != null) {
  24846. warning$1(false, 'Invalid event handler property `%s`. Did you mean `%s`?', name, registrationName);
  24847. warnedProperties$1[name] = true;
  24848. return true;
  24849. }
  24850. if (EVENT_NAME_REGEX.test(name)) {
  24851. warning$1(false, 'Unknown event handler property `%s`. It will be ignored.', name);
  24852. warnedProperties$1[name] = true;
  24853. return true;
  24854. }
  24855. } else if (EVENT_NAME_REGEX.test(name)) {
  24856. // If no event plugins have been injected, we are in a server environment.
  24857. // So we can't tell if the event name is correct for sure, but we can filter
  24858. // out known bad ones like `onclick`. We can't suggest a specific replacement though.
  24859. if (INVALID_EVENT_NAME_REGEX.test(name)) {
  24860. warning$1(false, 'Invalid event handler property `%s`. ' + 'React events use the camelCase naming convention, for example `onClick`.', name);
  24861. }
  24862. warnedProperties$1[name] = true;
  24863. return true;
  24864. }
  24865. // Let the ARIA attribute hook validate ARIA attributes
  24866. if (rARIA$1.test(name) || rARIACamel$1.test(name)) {
  24867. return true;
  24868. }
  24869. if (lowerCasedName === 'innerhtml') {
  24870. warning$1(false, 'Directly setting property `innerHTML` is not permitted. ' + 'For more information, lookup documentation on `dangerouslySetInnerHTML`.');
  24871. warnedProperties$1[name] = true;
  24872. return true;
  24873. }
  24874. if (lowerCasedName === 'aria') {
  24875. warning$1(false, 'The `aria` attribute is reserved for future use in React. ' + 'Pass individual `aria-` attributes instead.');
  24876. warnedProperties$1[name] = true;
  24877. return true;
  24878. }
  24879. if (lowerCasedName === 'is' && value !== null && value !== undefined && typeof value !== 'string') {
  24880. warning$1(false, 'Received a `%s` for a string attribute `is`. If this is expected, cast ' + 'the value to a string.', typeof value);
  24881. warnedProperties$1[name] = true;
  24882. return true;
  24883. }
  24884. if (typeof value === 'number' && isNaN(value)) {
  24885. warning$1(false, 'Received NaN for the `%s` attribute. If this is expected, cast ' + 'the value to a string.', name);
  24886. warnedProperties$1[name] = true;
  24887. return true;
  24888. }
  24889. var propertyInfo = getPropertyInfo(name);
  24890. var isReserved = propertyInfo !== null && propertyInfo.type === RESERVED;
  24891. // Known attributes should match the casing specified in the property config.
  24892. if (possibleStandardNames.hasOwnProperty(lowerCasedName)) {
  24893. var standardName = possibleStandardNames[lowerCasedName];
  24894. if (standardName !== name) {
  24895. warning$1(false, 'Invalid DOM property `%s`. Did you mean `%s`?', name, standardName);
  24896. warnedProperties$1[name] = true;
  24897. return true;
  24898. }
  24899. } else if (!isReserved && name !== lowerCasedName) {
  24900. // Unknown attributes should have lowercase casing since that's how they
  24901. // will be cased anyway with server rendering.
  24902. warning$1(false, 'React does not recognize the `%s` prop on a DOM element. If you ' + 'intentionally want it to appear in the DOM as a custom ' + 'attribute, spell it as lowercase `%s` instead. ' + 'If you accidentally passed it from a parent component, remove ' + 'it from the DOM element.', name, lowerCasedName);
  24903. warnedProperties$1[name] = true;
  24904. return true;
  24905. }
  24906. if (typeof value === 'boolean' && shouldRemoveAttributeWithWarning(name, value, propertyInfo, false)) {
  24907. if (value) {
  24908. warning$1(false, 'Received `%s` for a non-boolean attribute `%s`.\n\n' + 'If you want to write it to the DOM, pass a string instead: ' + '%s="%s" or %s={value.toString()}.', value, name, name, value, name);
  24909. } else {
  24910. warning$1(false, 'Received `%s` for a non-boolean attribute `%s`.\n\n' + 'If you want to write it to the DOM, pass a string instead: ' + '%s="%s" or %s={value.toString()}.\n\n' + 'If you used to conditionally omit it with %s={condition && value}, ' + 'pass %s={condition ? value : undefined} instead.', value, name, name, value, name, name, name);
  24911. }
  24912. warnedProperties$1[name] = true;
  24913. return true;
  24914. }
  24915. // Now that we've validated casing, do not validate
  24916. // data types for reserved props
  24917. if (isReserved) {
  24918. return true;
  24919. }
  24920. // Warn when a known attribute is a bad type
  24921. if (shouldRemoveAttributeWithWarning(name, value, propertyInfo, false)) {
  24922. warnedProperties$1[name] = true;
  24923. return false;
  24924. }
  24925. // Warn when passing the strings 'false' or 'true' into a boolean prop
  24926. if ((value === 'false' || value === 'true') && propertyInfo !== null && propertyInfo.type === BOOLEAN) {
  24927. warning$1(false, 'Received the string `%s` for the boolean attribute `%s`. ' + '%s ' + 'Did you mean %s={%s}?', value, name, value === 'false' ? 'The browser will interpret it as a truthy value.' : 'Although this works, it will not work as expected if you pass the string "false".', name, value);
  24928. warnedProperties$1[name] = true;
  24929. return true;
  24930. }
  24931. return true;
  24932. };
  24933. }
  24934. var warnUnknownProperties = function (type, props, canUseEventSystem) {
  24935. var unknownProps = [];
  24936. for (var key in props) {
  24937. var isValid = validateProperty$1(type, key, props[key], canUseEventSystem);
  24938. if (!isValid) {
  24939. unknownProps.push(key);
  24940. }
  24941. }
  24942. var unknownPropString = unknownProps.map(function (prop) {
  24943. return '`' + prop + '`';
  24944. }).join(', ');
  24945. if (unknownProps.length === 1) {
  24946. warning$1(false, 'Invalid value for prop %s on <%s> tag. Either remove it from the element, ' + 'or pass a string or number value to keep it in the DOM. ' + 'For details, see https://fb.me/react-attribute-behavior', unknownPropString, type);
  24947. } else if (unknownProps.length > 1) {
  24948. warning$1(false, 'Invalid values for props %s on <%s> tag. Either remove them from the element, ' + 'or pass a string or number value to keep them in the DOM. ' + 'For details, see https://fb.me/react-attribute-behavior', unknownPropString, type);
  24949. }
  24950. };
  24951. function validateProperties$2(type, props, canUseEventSystem) {
  24952. if (isCustomComponent(type, props)) {
  24953. return;
  24954. }
  24955. warnUnknownProperties(type, props, canUseEventSystem);
  24956. }
  24957. // TODO: direct imports like some-package/src/* are bad. Fix me.
  24958. var didWarnInvalidHydration = false;
  24959. var didWarnShadyDOM = false;
  24960. var DANGEROUSLY_SET_INNER_HTML = 'dangerouslySetInnerHTML';
  24961. var SUPPRESS_CONTENT_EDITABLE_WARNING = 'suppressContentEditableWarning';
  24962. var SUPPRESS_HYDRATION_WARNING$1 = 'suppressHydrationWarning';
  24963. var AUTOFOCUS = 'autoFocus';
  24964. var CHILDREN = 'children';
  24965. var STYLE$1 = 'style';
  24966. var HTML = '__html';
  24967. var LISTENERS = 'listeners';
  24968. var HTML_NAMESPACE = Namespaces.html;
  24969. var warnedUnknownTags = void 0;
  24970. var suppressHydrationWarning = void 0;
  24971. var validatePropertiesInDevelopment = void 0;
  24972. var warnForTextDifference = void 0;
  24973. var warnForPropDifference = void 0;
  24974. var warnForExtraAttributes = void 0;
  24975. var warnForInvalidEventListener = void 0;
  24976. var canDiffStyleForHydrationWarning = void 0;
  24977. var normalizeMarkupForTextOrAttribute = void 0;
  24978. var normalizeHTML = void 0;
  24979. {
  24980. warnedUnknownTags = {
  24981. // Chrome is the only major browser not shipping <time>. But as of July
  24982. // 2017 it intends to ship it due to widespread usage. We intentionally
  24983. // *don't* warn for <time> even if it's unrecognized by Chrome because
  24984. // it soon will be, and many apps have been using it anyway.
  24985. time: true,
  24986. // There are working polyfills for <dialog>. Let people use it.
  24987. dialog: true,
  24988. // Electron ships a custom <webview> tag to display external web content in
  24989. // an isolated frame and process.
  24990. // This tag is not present in non Electron environments such as JSDom which
  24991. // is often used for testing purposes.
  24992. // @see https://electronjs.org/docs/api/webview-tag
  24993. webview: true
  24994. };
  24995. validatePropertiesInDevelopment = function (type, props) {
  24996. validateProperties(type, props);
  24997. validateProperties$1(type, props);
  24998. validateProperties$2(type, props, /* canUseEventSystem */true);
  24999. };
  25000. // IE 11 parses & normalizes the style attribute as opposed to other
  25001. // browsers. It adds spaces and sorts the properties in some
  25002. // non-alphabetical order. Handling that would require sorting CSS
  25003. // properties in the client & server versions or applying
  25004. // `expectedStyle` to a temporary DOM node to read its `style` attribute
  25005. // normalized. Since it only affects IE, we're skipping style warnings
  25006. // in that browser completely in favor of doing all that work.
  25007. // See https://github.com/facebook/react/issues/11807
  25008. canDiffStyleForHydrationWarning = canUseDOM && !document.documentMode;
  25009. // HTML parsing normalizes CR and CRLF to LF.
  25010. // It also can turn \u0000 into \uFFFD inside attributes.
  25011. // https://www.w3.org/TR/html5/single-page.html#preprocessing-the-input-stream
  25012. // If we have a mismatch, it might be caused by that.
  25013. // We will still patch up in this case but not fire the warning.
  25014. var NORMALIZE_NEWLINES_REGEX = /\r\n?/g;
  25015. var NORMALIZE_NULL_AND_REPLACEMENT_REGEX = /\u0000|\uFFFD/g;
  25016. normalizeMarkupForTextOrAttribute = function (markup) {
  25017. var markupString = typeof markup === 'string' ? markup : '' + markup;
  25018. return markupString.replace(NORMALIZE_NEWLINES_REGEX, '\n').replace(NORMALIZE_NULL_AND_REPLACEMENT_REGEX, '');
  25019. };
  25020. warnForTextDifference = function (serverText, clientText) {
  25021. if (didWarnInvalidHydration) {
  25022. return;
  25023. }
  25024. var normalizedClientText = normalizeMarkupForTextOrAttribute(clientText);
  25025. var normalizedServerText = normalizeMarkupForTextOrAttribute(serverText);
  25026. if (normalizedServerText === normalizedClientText) {
  25027. return;
  25028. }
  25029. didWarnInvalidHydration = true;
  25030. warningWithoutStack$1(false, 'Text content did not match. Server: "%s" Client: "%s"', normalizedServerText, normalizedClientText);
  25031. };
  25032. warnForPropDifference = function (propName, serverValue, clientValue) {
  25033. if (didWarnInvalidHydration) {
  25034. return;
  25035. }
  25036. var normalizedClientValue = normalizeMarkupForTextOrAttribute(clientValue);
  25037. var normalizedServerValue = normalizeMarkupForTextOrAttribute(serverValue);
  25038. if (normalizedServerValue === normalizedClientValue) {
  25039. return;
  25040. }
  25041. didWarnInvalidHydration = true;
  25042. warningWithoutStack$1(false, 'Prop `%s` did not match. Server: %s Client: %s', propName, JSON.stringify(normalizedServerValue), JSON.stringify(normalizedClientValue));
  25043. };
  25044. warnForExtraAttributes = function (attributeNames) {
  25045. if (didWarnInvalidHydration) {
  25046. return;
  25047. }
  25048. didWarnInvalidHydration = true;
  25049. var names = [];
  25050. attributeNames.forEach(function (name) {
  25051. names.push(name);
  25052. });
  25053. warningWithoutStack$1(false, 'Extra attributes from the server: %s', names);
  25054. };
  25055. warnForInvalidEventListener = function (registrationName, listener) {
  25056. if (listener === false) {
  25057. warning$1(false, 'Expected `%s` listener to be a function, instead got `false`.\n\n' + 'If you used to conditionally omit it with %s={condition && value}, ' + 'pass %s={condition ? value : undefined} instead.', registrationName, registrationName, registrationName);
  25058. } else {
  25059. warning$1(false, 'Expected `%s` listener to be a function, instead got a value of `%s` type.', registrationName, typeof listener);
  25060. }
  25061. };
  25062. // Parse the HTML and read it back to normalize the HTML string so that it
  25063. // can be used for comparison.
  25064. normalizeHTML = function (parent, html) {
  25065. // We could have created a separate document here to avoid
  25066. // re-initializing custom elements if they exist. But this breaks
  25067. // how <noscript> is being handled. So we use the same document.
  25068. // See the discussion in https://github.com/facebook/react/pull/11157.
  25069. var testElement = parent.namespaceURI === HTML_NAMESPACE ? parent.ownerDocument.createElement(parent.tagName) : parent.ownerDocument.createElementNS(parent.namespaceURI, parent.tagName);
  25070. testElement.innerHTML = html;
  25071. return testElement.innerHTML;
  25072. };
  25073. }
  25074. function ensureListeningTo(rootContainerElement, registrationName) {
  25075. var isDocumentOrFragment = rootContainerElement.nodeType === DOCUMENT_NODE || rootContainerElement.nodeType === DOCUMENT_FRAGMENT_NODE;
  25076. var doc = isDocumentOrFragment ? rootContainerElement : rootContainerElement.ownerDocument;
  25077. listenTo(registrationName, doc);
  25078. }
  25079. function getOwnerDocumentFromRootContainer(rootContainerElement) {
  25080. return rootContainerElement.nodeType === DOCUMENT_NODE ? rootContainerElement : rootContainerElement.ownerDocument;
  25081. }
  25082. function noop() {}
  25083. function trapClickOnNonInteractiveElement(node) {
  25084. // Mobile Safari does not fire properly bubble click events on
  25085. // non-interactive elements, which means delegated click listeners do not
  25086. // fire. The workaround for this bug involves attaching an empty click
  25087. // listener on the target node.
  25088. // http://www.quirksmode.org/blog/archives/2010/09/click_event_del.html
  25089. // Just set it using the onclick property so that we don't have to manage any
  25090. // bookkeeping for it. Not sure if we need to clear it when the listener is
  25091. // removed.
  25092. // TODO: Only do this for the relevant Safaris maybe?
  25093. node.onclick = noop;
  25094. }
  25095. function setInitialDOMProperties(tag, domElement, rootContainerElement, nextProps, isCustomComponentTag) {
  25096. for (var propKey in nextProps) {
  25097. if (!nextProps.hasOwnProperty(propKey)) {
  25098. continue;
  25099. }
  25100. var nextProp = nextProps[propKey];
  25101. if (propKey === STYLE$1) {
  25102. {
  25103. if (nextProp) {
  25104. // Freeze the next style object so that we can assume it won't be
  25105. // mutated. We have already warned for this in the past.
  25106. Object.freeze(nextProp);
  25107. }
  25108. }
  25109. // Relies on `updateStylesByID` not mutating `styleUpdates`.
  25110. setValueForStyles(domElement, nextProp);
  25111. } else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
  25112. var nextHtml = nextProp ? nextProp[HTML] : undefined;
  25113. if (nextHtml != null) {
  25114. setInnerHTML(domElement, nextHtml);
  25115. }
  25116. } else if (propKey === CHILDREN) {
  25117. if (typeof nextProp === 'string') {
  25118. // Avoid setting initial textContent when the text is empty. In IE11 setting
  25119. // textContent on a <textarea> will cause the placeholder to not
  25120. // show within the <textarea> until it has been focused and blurred again.
  25121. // https://github.com/facebook/react/issues/6731#issuecomment-254874553
  25122. var canSetTextContent = tag !== 'textarea' || nextProp !== '';
  25123. if (canSetTextContent) {
  25124. setTextContent(domElement, nextProp);
  25125. }
  25126. } else if (typeof nextProp === 'number') {
  25127. setTextContent(domElement, '' + nextProp);
  25128. }
  25129. } else if (enableFlareAPI && propKey === LISTENERS || propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING$1) {
  25130. // Noop
  25131. } else if (propKey === AUTOFOCUS) {
  25132. // We polyfill it separately on the client during commit.
  25133. // We could have excluded it in the property list instead of
  25134. // adding a special case here, but then it wouldn't be emitted
  25135. // on server rendering (but we *do* want to emit it in SSR).
  25136. } else if (registrationNameModules.hasOwnProperty(propKey)) {
  25137. if (nextProp != null) {
  25138. if ( true && typeof nextProp !== 'function') {
  25139. warnForInvalidEventListener(propKey, nextProp);
  25140. }
  25141. ensureListeningTo(rootContainerElement, propKey);
  25142. }
  25143. } else if (nextProp != null) {
  25144. setValueForProperty(domElement, propKey, nextProp, isCustomComponentTag);
  25145. }
  25146. }
  25147. }
  25148. function updateDOMProperties(domElement, updatePayload, wasCustomComponentTag, isCustomComponentTag) {
  25149. // TODO: Handle wasCustomComponentTag
  25150. for (var i = 0; i < updatePayload.length; i += 2) {
  25151. var propKey = updatePayload[i];
  25152. var propValue = updatePayload[i + 1];
  25153. if (propKey === STYLE$1) {
  25154. setValueForStyles(domElement, propValue);
  25155. } else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
  25156. setInnerHTML(domElement, propValue);
  25157. } else if (propKey === CHILDREN) {
  25158. setTextContent(domElement, propValue);
  25159. } else {
  25160. setValueForProperty(domElement, propKey, propValue, isCustomComponentTag);
  25161. }
  25162. }
  25163. }
  25164. function createElement(type, props, rootContainerElement, parentNamespace) {
  25165. var isCustomComponentTag = void 0;
  25166. // We create tags in the namespace of their parent container, except HTML
  25167. // tags get no namespace.
  25168. var ownerDocument = getOwnerDocumentFromRootContainer(rootContainerElement);
  25169. var domElement = void 0;
  25170. var namespaceURI = parentNamespace;
  25171. if (namespaceURI === HTML_NAMESPACE) {
  25172. namespaceURI = getIntrinsicNamespace(type);
  25173. }
  25174. if (namespaceURI === HTML_NAMESPACE) {
  25175. {
  25176. isCustomComponentTag = isCustomComponent(type, props);
  25177. // Should this check be gated by parent namespace? Not sure we want to
  25178. // allow <SVG> or <mATH>.
  25179. !(isCustomComponentTag || type === type.toLowerCase()) ? warning$1(false, '<%s /> is using incorrect casing. ' + 'Use PascalCase for React components, ' + 'or lowercase for HTML elements.', type) : void 0;
  25180. }
  25181. if (type === 'script') {
  25182. // Create the script via .innerHTML so its "parser-inserted" flag is
  25183. // set to true and it does not execute
  25184. var div = ownerDocument.createElement('div');
  25185. div.innerHTML = '<script><' + '/script>'; // eslint-disable-line
  25186. // This is guaranteed to yield a script element.
  25187. var firstChild = div.firstChild;
  25188. domElement = div.removeChild(firstChild);
  25189. } else if (typeof props.is === 'string') {
  25190. // $FlowIssue `createElement` should be updated for Web Components
  25191. domElement = ownerDocument.createElement(type, { is: props.is });
  25192. } else {
  25193. // Separate else branch instead of using `props.is || undefined` above because of a Firefox bug.
  25194. // See discussion in https://github.com/facebook/react/pull/6896
  25195. // and discussion in https://bugzilla.mozilla.org/show_bug.cgi?id=1276240
  25196. domElement = ownerDocument.createElement(type);
  25197. // Normally attributes are assigned in `setInitialDOMProperties`, however the `multiple` and `size`
  25198. // attributes on `select`s needs to be added before `option`s are inserted.
  25199. // This prevents:
  25200. // - a bug where the `select` does not scroll to the correct option because singular
  25201. // `select` elements automatically pick the first item #13222
  25202. // - a bug where the `select` set the first item as selected despite the `size` attribute #14239
  25203. // See https://github.com/facebook/react/issues/13222
  25204. // and https://github.com/facebook/react/issues/14239
  25205. if (type === 'select') {
  25206. var node = domElement;
  25207. if (props.multiple) {
  25208. node.multiple = true;
  25209. } else if (props.size) {
  25210. // Setting a size greater than 1 causes a select to behave like `multiple=true`, where
  25211. // it is possible that no option is selected.
  25212. //
  25213. // This is only necessary when a select in "single selection mode".
  25214. node.size = props.size;
  25215. }
  25216. }
  25217. }
  25218. } else {
  25219. domElement = ownerDocument.createElementNS(namespaceURI, type);
  25220. }
  25221. {
  25222. if (namespaceURI === HTML_NAMESPACE) {
  25223. if (!isCustomComponentTag && Object.prototype.toString.call(domElement) === '[object HTMLUnknownElement]' && !Object.prototype.hasOwnProperty.call(warnedUnknownTags, type)) {
  25224. warnedUnknownTags[type] = true;
  25225. warning$1(false, 'The tag <%s> is unrecognized in this browser. ' + 'If you meant to render a React component, start its name with ' + 'an uppercase letter.', type);
  25226. }
  25227. }
  25228. }
  25229. return domElement;
  25230. }
  25231. function createTextNode(text, rootContainerElement) {
  25232. return getOwnerDocumentFromRootContainer(rootContainerElement).createTextNode(text);
  25233. }
  25234. function setInitialProperties(domElement, tag, rawProps, rootContainerElement) {
  25235. var isCustomComponentTag = isCustomComponent(tag, rawProps);
  25236. {
  25237. validatePropertiesInDevelopment(tag, rawProps);
  25238. if (isCustomComponentTag && !didWarnShadyDOM && domElement.shadyRoot) {
  25239. warning$1(false, '%s is using shady DOM. Using shady DOM with React can ' + 'cause things to break subtly.', getCurrentFiberOwnerNameInDevOrNull() || 'A component');
  25240. didWarnShadyDOM = true;
  25241. }
  25242. }
  25243. // TODO: Make sure that we check isMounted before firing any of these events.
  25244. var props = void 0;
  25245. switch (tag) {
  25246. case 'iframe':
  25247. case 'object':
  25248. case 'embed':
  25249. trapBubbledEvent(TOP_LOAD, domElement);
  25250. props = rawProps;
  25251. break;
  25252. case 'video':
  25253. case 'audio':
  25254. // Create listener for each media event
  25255. for (var i = 0; i < mediaEventTypes.length; i++) {
  25256. trapBubbledEvent(mediaEventTypes[i], domElement);
  25257. }
  25258. props = rawProps;
  25259. break;
  25260. case 'source':
  25261. trapBubbledEvent(TOP_ERROR, domElement);
  25262. props = rawProps;
  25263. break;
  25264. case 'img':
  25265. case 'image':
  25266. case 'link':
  25267. trapBubbledEvent(TOP_ERROR, domElement);
  25268. trapBubbledEvent(TOP_LOAD, domElement);
  25269. props = rawProps;
  25270. break;
  25271. case 'form':
  25272. trapBubbledEvent(TOP_RESET, domElement);
  25273. trapBubbledEvent(TOP_SUBMIT, domElement);
  25274. props = rawProps;
  25275. break;
  25276. case 'details':
  25277. trapBubbledEvent(TOP_TOGGLE, domElement);
  25278. props = rawProps;
  25279. break;
  25280. case 'input':
  25281. initWrapperState(domElement, rawProps);
  25282. props = getHostProps(domElement, rawProps);
  25283. trapBubbledEvent(TOP_INVALID, domElement);
  25284. // For controlled components we always need to ensure we're listening
  25285. // to onChange. Even if there is no listener.
  25286. ensureListeningTo(rootContainerElement, 'onChange');
  25287. break;
  25288. case 'option':
  25289. validateProps(domElement, rawProps);
  25290. props = getHostProps$1(domElement, rawProps);
  25291. break;
  25292. case 'select':
  25293. initWrapperState$1(domElement, rawProps);
  25294. props = getHostProps$2(domElement, rawProps);
  25295. trapBubbledEvent(TOP_INVALID, domElement);
  25296. // For controlled components we always need to ensure we're listening
  25297. // to onChange. Even if there is no listener.
  25298. ensureListeningTo(rootContainerElement, 'onChange');
  25299. break;
  25300. case 'textarea':
  25301. initWrapperState$2(domElement, rawProps);
  25302. props = getHostProps$3(domElement, rawProps);
  25303. trapBubbledEvent(TOP_INVALID, domElement);
  25304. // For controlled components we always need to ensure we're listening
  25305. // to onChange. Even if there is no listener.
  25306. ensureListeningTo(rootContainerElement, 'onChange');
  25307. break;
  25308. default:
  25309. props = rawProps;
  25310. }
  25311. assertValidProps(tag, props);
  25312. setInitialDOMProperties(tag, domElement, rootContainerElement, props, isCustomComponentTag);
  25313. switch (tag) {
  25314. case 'input':
  25315. // TODO: Make sure we check if this is still unmounted or do any clean
  25316. // up necessary since we never stop tracking anymore.
  25317. track(domElement);
  25318. postMountWrapper(domElement, rawProps, false);
  25319. break;
  25320. case 'textarea':
  25321. // TODO: Make sure we check if this is still unmounted or do any clean
  25322. // up necessary since we never stop tracking anymore.
  25323. track(domElement);
  25324. postMountWrapper$3(domElement, rawProps);
  25325. break;
  25326. case 'option':
  25327. postMountWrapper$1(domElement, rawProps);
  25328. break;
  25329. case 'select':
  25330. postMountWrapper$2(domElement, rawProps);
  25331. break;
  25332. default:
  25333. if (typeof props.onClick === 'function') {
  25334. // TODO: This cast may not be sound for SVG, MathML or custom elements.
  25335. trapClickOnNonInteractiveElement(domElement);
  25336. }
  25337. break;
  25338. }
  25339. }
  25340. // Calculate the diff between the two objects.
  25341. function diffProperties(domElement, tag, lastRawProps, nextRawProps, rootContainerElement) {
  25342. {
  25343. validatePropertiesInDevelopment(tag, nextRawProps);
  25344. }
  25345. var updatePayload = null;
  25346. var lastProps = void 0;
  25347. var nextProps = void 0;
  25348. switch (tag) {
  25349. case 'input':
  25350. lastProps = getHostProps(domElement, lastRawProps);
  25351. nextProps = getHostProps(domElement, nextRawProps);
  25352. updatePayload = [];
  25353. break;
  25354. case 'option':
  25355. lastProps = getHostProps$1(domElement, lastRawProps);
  25356. nextProps = getHostProps$1(domElement, nextRawProps);
  25357. updatePayload = [];
  25358. break;
  25359. case 'select':
  25360. lastProps = getHostProps$2(domElement, lastRawProps);
  25361. nextProps = getHostProps$2(domElement, nextRawProps);
  25362. updatePayload = [];
  25363. break;
  25364. case 'textarea':
  25365. lastProps = getHostProps$3(domElement, lastRawProps);
  25366. nextProps = getHostProps$3(domElement, nextRawProps);
  25367. updatePayload = [];
  25368. break;
  25369. default:
  25370. lastProps = lastRawProps;
  25371. nextProps = nextRawProps;
  25372. if (typeof lastProps.onClick !== 'function' && typeof nextProps.onClick === 'function') {
  25373. // TODO: This cast may not be sound for SVG, MathML or custom elements.
  25374. trapClickOnNonInteractiveElement(domElement);
  25375. }
  25376. break;
  25377. }
  25378. assertValidProps(tag, nextProps);
  25379. var propKey = void 0;
  25380. var styleName = void 0;
  25381. var styleUpdates = null;
  25382. for (propKey in lastProps) {
  25383. if (nextProps.hasOwnProperty(propKey) || !lastProps.hasOwnProperty(propKey) || lastProps[propKey] == null) {
  25384. continue;
  25385. }
  25386. if (propKey === STYLE$1) {
  25387. var lastStyle = lastProps[propKey];
  25388. for (styleName in lastStyle) {
  25389. if (lastStyle.hasOwnProperty(styleName)) {
  25390. if (!styleUpdates) {
  25391. styleUpdates = {};
  25392. }
  25393. styleUpdates[styleName] = '';
  25394. }
  25395. }
  25396. } else if (propKey === DANGEROUSLY_SET_INNER_HTML || propKey === CHILDREN) {
  25397. // Noop. This is handled by the clear text mechanism.
  25398. } else if (enableFlareAPI && propKey === LISTENERS || propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING$1) {
  25399. // Noop
  25400. } else if (propKey === AUTOFOCUS) {
  25401. // Noop. It doesn't work on updates anyway.
  25402. } else if (registrationNameModules.hasOwnProperty(propKey)) {
  25403. // This is a special case. If any listener updates we need to ensure
  25404. // that the "current" fiber pointer gets updated so we need a commit
  25405. // to update this element.
  25406. if (!updatePayload) {
  25407. updatePayload = [];
  25408. }
  25409. } else {
  25410. // For all other deleted properties we add it to the queue. We use
  25411. // the whitelist in the commit phase instead.
  25412. (updatePayload = updatePayload || []).push(propKey, null);
  25413. }
  25414. }
  25415. for (propKey in nextProps) {
  25416. var nextProp = nextProps[propKey];
  25417. var lastProp = lastProps != null ? lastProps[propKey] : undefined;
  25418. if (!nextProps.hasOwnProperty(propKey) || nextProp === lastProp || nextProp == null && lastProp == null) {
  25419. continue;
  25420. }
  25421. if (propKey === STYLE$1) {
  25422. {
  25423. if (nextProp) {
  25424. // Freeze the next style object so that we can assume it won't be
  25425. // mutated. We have already warned for this in the past.
  25426. Object.freeze(nextProp);
  25427. }
  25428. }
  25429. if (lastProp) {
  25430. // Unset styles on `lastProp` but not on `nextProp`.
  25431. for (styleName in lastProp) {
  25432. if (lastProp.hasOwnProperty(styleName) && (!nextProp || !nextProp.hasOwnProperty(styleName))) {
  25433. if (!styleUpdates) {
  25434. styleUpdates = {};
  25435. }
  25436. styleUpdates[styleName] = '';
  25437. }
  25438. }
  25439. // Update styles that changed since `lastProp`.
  25440. for (styleName in nextProp) {
  25441. if (nextProp.hasOwnProperty(styleName) && lastProp[styleName] !== nextProp[styleName]) {
  25442. if (!styleUpdates) {
  25443. styleUpdates = {};
  25444. }
  25445. styleUpdates[styleName] = nextProp[styleName];
  25446. }
  25447. }
  25448. } else {
  25449. // Relies on `updateStylesByID` not mutating `styleUpdates`.
  25450. if (!styleUpdates) {
  25451. if (!updatePayload) {
  25452. updatePayload = [];
  25453. }
  25454. updatePayload.push(propKey, styleUpdates);
  25455. }
  25456. styleUpdates = nextProp;
  25457. }
  25458. } else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
  25459. var nextHtml = nextProp ? nextProp[HTML] : undefined;
  25460. var lastHtml = lastProp ? lastProp[HTML] : undefined;
  25461. if (nextHtml != null) {
  25462. if (lastHtml !== nextHtml) {
  25463. (updatePayload = updatePayload || []).push(propKey, '' + nextHtml);
  25464. }
  25465. } else {
  25466. // TODO: It might be too late to clear this if we have children
  25467. // inserted already.
  25468. }
  25469. } else if (propKey === CHILDREN) {
  25470. if (lastProp !== nextProp && (typeof nextProp === 'string' || typeof nextProp === 'number')) {
  25471. (updatePayload = updatePayload || []).push(propKey, '' + nextProp);
  25472. }
  25473. } else if (enableFlareAPI && propKey === LISTENERS || propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING$1) {
  25474. // Noop
  25475. } else if (registrationNameModules.hasOwnProperty(propKey)) {
  25476. if (nextProp != null) {
  25477. // We eagerly listen to this even though we haven't committed yet.
  25478. if ( true && typeof nextProp !== 'function') {
  25479. warnForInvalidEventListener(propKey, nextProp);
  25480. }
  25481. ensureListeningTo(rootContainerElement, propKey);
  25482. }
  25483. if (!updatePayload && lastProp !== nextProp) {
  25484. // This is a special case. If any listener updates we need to ensure
  25485. // that the "current" props pointer gets updated so we need a commit
  25486. // to update this element.
  25487. updatePayload = [];
  25488. }
  25489. } else {
  25490. // For any other property we always add it to the queue and then we
  25491. // filter it out using the whitelist during the commit.
  25492. (updatePayload = updatePayload || []).push(propKey, nextProp);
  25493. }
  25494. }
  25495. if (styleUpdates) {
  25496. {
  25497. validateShorthandPropertyCollisionInDev(styleUpdates, nextProps[STYLE$1]);
  25498. }
  25499. (updatePayload = updatePayload || []).push(STYLE$1, styleUpdates);
  25500. }
  25501. return updatePayload;
  25502. }
  25503. // Apply the diff.
  25504. function updateProperties(domElement, updatePayload, tag, lastRawProps, nextRawProps) {
  25505. // Update checked *before* name.
  25506. // In the middle of an update, it is possible to have multiple checked.
  25507. // When a checked radio tries to change name, browser makes another radio's checked false.
  25508. if (tag === 'input' && nextRawProps.type === 'radio' && nextRawProps.name != null) {
  25509. updateChecked(domElement, nextRawProps);
  25510. }
  25511. var wasCustomComponentTag = isCustomComponent(tag, lastRawProps);
  25512. var isCustomComponentTag = isCustomComponent(tag, nextRawProps);
  25513. // Apply the diff.
  25514. updateDOMProperties(domElement, updatePayload, wasCustomComponentTag, isCustomComponentTag);
  25515. // TODO: Ensure that an update gets scheduled if any of the special props
  25516. // changed.
  25517. switch (tag) {
  25518. case 'input':
  25519. // Update the wrapper around inputs *after* updating props. This has to
  25520. // happen after `updateDOMProperties`. Otherwise HTML5 input validations
  25521. // raise warnings and prevent the new value from being assigned.
  25522. updateWrapper(domElement, nextRawProps);
  25523. break;
  25524. case 'textarea':
  25525. updateWrapper$1(domElement, nextRawProps);
  25526. break;
  25527. case 'select':
  25528. // <select> value update needs to occur after <option> children
  25529. // reconciliation
  25530. postUpdateWrapper(domElement, nextRawProps);
  25531. break;
  25532. }
  25533. }
  25534. function getPossibleStandardName(propName) {
  25535. {
  25536. var lowerCasedName = propName.toLowerCase();
  25537. if (!possibleStandardNames.hasOwnProperty(lowerCasedName)) {
  25538. return null;
  25539. }
  25540. return possibleStandardNames[lowerCasedName] || null;
  25541. }
  25542. return null;
  25543. }
  25544. function diffHydratedProperties(domElement, tag, rawProps, parentNamespace, rootContainerElement) {
  25545. var isCustomComponentTag = void 0;
  25546. var extraAttributeNames = void 0;
  25547. {
  25548. suppressHydrationWarning = rawProps[SUPPRESS_HYDRATION_WARNING$1] === true;
  25549. isCustomComponentTag = isCustomComponent(tag, rawProps);
  25550. validatePropertiesInDevelopment(tag, rawProps);
  25551. if (isCustomComponentTag && !didWarnShadyDOM && domElement.shadyRoot) {
  25552. warning$1(false, '%s is using shady DOM. Using shady DOM with React can ' + 'cause things to break subtly.', getCurrentFiberOwnerNameInDevOrNull() || 'A component');
  25553. didWarnShadyDOM = true;
  25554. }
  25555. }
  25556. // TODO: Make sure that we check isMounted before firing any of these events.
  25557. switch (tag) {
  25558. case 'iframe':
  25559. case 'object':
  25560. case 'embed':
  25561. trapBubbledEvent(TOP_LOAD, domElement);
  25562. break;
  25563. case 'video':
  25564. case 'audio':
  25565. // Create listener for each media event
  25566. for (var i = 0; i < mediaEventTypes.length; i++) {
  25567. trapBubbledEvent(mediaEventTypes[i], domElement);
  25568. }
  25569. break;
  25570. case 'source':
  25571. trapBubbledEvent(TOP_ERROR, domElement);
  25572. break;
  25573. case 'img':
  25574. case 'image':
  25575. case 'link':
  25576. trapBubbledEvent(TOP_ERROR, domElement);
  25577. trapBubbledEvent(TOP_LOAD, domElement);
  25578. break;
  25579. case 'form':
  25580. trapBubbledEvent(TOP_RESET, domElement);
  25581. trapBubbledEvent(TOP_SUBMIT, domElement);
  25582. break;
  25583. case 'details':
  25584. trapBubbledEvent(TOP_TOGGLE, domElement);
  25585. break;
  25586. case 'input':
  25587. initWrapperState(domElement, rawProps);
  25588. trapBubbledEvent(TOP_INVALID, domElement);
  25589. // For controlled components we always need to ensure we're listening
  25590. // to onChange. Even if there is no listener.
  25591. ensureListeningTo(rootContainerElement, 'onChange');
  25592. break;
  25593. case 'option':
  25594. validateProps(domElement, rawProps);
  25595. break;
  25596. case 'select':
  25597. initWrapperState$1(domElement, rawProps);
  25598. trapBubbledEvent(TOP_INVALID, domElement);
  25599. // For controlled components we always need to ensure we're listening
  25600. // to onChange. Even if there is no listener.
  25601. ensureListeningTo(rootContainerElement, 'onChange');
  25602. break;
  25603. case 'textarea':
  25604. initWrapperState$2(domElement, rawProps);
  25605. trapBubbledEvent(TOP_INVALID, domElement);
  25606. // For controlled components we always need to ensure we're listening
  25607. // to onChange. Even if there is no listener.
  25608. ensureListeningTo(rootContainerElement, 'onChange');
  25609. break;
  25610. }
  25611. assertValidProps(tag, rawProps);
  25612. {
  25613. extraAttributeNames = new Set();
  25614. var attributes = domElement.attributes;
  25615. for (var _i = 0; _i < attributes.length; _i++) {
  25616. var name = attributes[_i].name.toLowerCase();
  25617. switch (name) {
  25618. // Built-in SSR attribute is whitelisted
  25619. case 'data-reactroot':
  25620. break;
  25621. // Controlled attributes are not validated
  25622. // TODO: Only ignore them on controlled tags.
  25623. case 'value':
  25624. break;
  25625. case 'checked':
  25626. break;
  25627. case 'selected':
  25628. break;
  25629. default:
  25630. // Intentionally use the original name.
  25631. // See discussion in https://github.com/facebook/react/pull/10676.
  25632. extraAttributeNames.add(attributes[_i].name);
  25633. }
  25634. }
  25635. }
  25636. var updatePayload = null;
  25637. for (var propKey in rawProps) {
  25638. if (!rawProps.hasOwnProperty(propKey)) {
  25639. continue;
  25640. }
  25641. var nextProp = rawProps[propKey];
  25642. if (propKey === CHILDREN) {
  25643. // For text content children we compare against textContent. This
  25644. // might match additional HTML that is hidden when we read it using
  25645. // textContent. E.g. "foo" will match "f<span>oo</span>" but that still
  25646. // satisfies our requirement. Our requirement is not to produce perfect
  25647. // HTML and attributes. Ideally we should preserve structure but it's
  25648. // ok not to if the visible content is still enough to indicate what
  25649. // even listeners these nodes might be wired up to.
  25650. // TODO: Warn if there is more than a single textNode as a child.
  25651. // TODO: Should we use domElement.firstChild.nodeValue to compare?
  25652. if (typeof nextProp === 'string') {
  25653. if (domElement.textContent !== nextProp) {
  25654. if ( true && !suppressHydrationWarning) {
  25655. warnForTextDifference(domElement.textContent, nextProp);
  25656. }
  25657. updatePayload = [CHILDREN, nextProp];
  25658. }
  25659. } else if (typeof nextProp === 'number') {
  25660. if (domElement.textContent !== '' + nextProp) {
  25661. if ( true && !suppressHydrationWarning) {
  25662. warnForTextDifference(domElement.textContent, nextProp);
  25663. }
  25664. updatePayload = [CHILDREN, '' + nextProp];
  25665. }
  25666. }
  25667. } else if (registrationNameModules.hasOwnProperty(propKey)) {
  25668. if (nextProp != null) {
  25669. if ( true && typeof nextProp !== 'function') {
  25670. warnForInvalidEventListener(propKey, nextProp);
  25671. }
  25672. ensureListeningTo(rootContainerElement, propKey);
  25673. }
  25674. } else if ( true &&
  25675. // Convince Flow we've calculated it (it's DEV-only in this method.)
  25676. typeof isCustomComponentTag === 'boolean') {
  25677. // Validate that the properties correspond to their expected values.
  25678. var serverValue = void 0;
  25679. var propertyInfo = getPropertyInfo(propKey);
  25680. if (suppressHydrationWarning) {
  25681. // Don't bother comparing. We're ignoring all these warnings.
  25682. } else if (enableFlareAPI && propKey === LISTENERS || propKey === SUPPRESS_CONTENT_EDITABLE_WARNING || propKey === SUPPRESS_HYDRATION_WARNING$1 ||
  25683. // Controlled attributes are not validated
  25684. // TODO: Only ignore them on controlled tags.
  25685. propKey === 'value' || propKey === 'checked' || propKey === 'selected') {
  25686. // Noop
  25687. } else if (propKey === DANGEROUSLY_SET_INNER_HTML) {
  25688. var serverHTML = domElement.innerHTML;
  25689. var nextHtml = nextProp ? nextProp[HTML] : undefined;
  25690. var expectedHTML = normalizeHTML(domElement, nextHtml != null ? nextHtml : '');
  25691. if (expectedHTML !== serverHTML) {
  25692. warnForPropDifference(propKey, serverHTML, expectedHTML);
  25693. }
  25694. } else if (propKey === STYLE$1) {
  25695. // $FlowFixMe - Should be inferred as not undefined.
  25696. extraAttributeNames.delete(propKey);
  25697. if (canDiffStyleForHydrationWarning) {
  25698. var expectedStyle = createDangerousStringForStyles(nextProp);
  25699. serverValue = domElement.getAttribute('style');
  25700. if (expectedStyle !== serverValue) {
  25701. warnForPropDifference(propKey, serverValue, expectedStyle);
  25702. }
  25703. }
  25704. } else if (isCustomComponentTag) {
  25705. // $FlowFixMe - Should be inferred as not undefined.
  25706. extraAttributeNames.delete(propKey.toLowerCase());
  25707. serverValue = getValueForAttribute(domElement, propKey, nextProp);
  25708. if (nextProp !== serverValue) {
  25709. warnForPropDifference(propKey, serverValue, nextProp);
  25710. }
  25711. } else if (!shouldIgnoreAttribute(propKey, propertyInfo, isCustomComponentTag) && !shouldRemoveAttribute(propKey, nextProp, propertyInfo, isCustomComponentTag)) {
  25712. var isMismatchDueToBadCasing = false;
  25713. if (propertyInfo !== null) {
  25714. // $FlowFixMe - Should be inferred as not undefined.
  25715. extraAttributeNames.delete(propertyInfo.attributeName);
  25716. serverValue = getValueForProperty(domElement, propKey, nextProp, propertyInfo);
  25717. } else {
  25718. var ownNamespace = parentNamespace;
  25719. if (ownNamespace === HTML_NAMESPACE) {
  25720. ownNamespace = getIntrinsicNamespace(tag);
  25721. }
  25722. if (ownNamespace === HTML_NAMESPACE) {
  25723. // $FlowFixMe - Should be inferred as not undefined.
  25724. extraAttributeNames.delete(propKey.toLowerCase());
  25725. } else {
  25726. var standardName = getPossibleStandardName(propKey);
  25727. if (standardName !== null && standardName !== propKey) {
  25728. // If an SVG prop is supplied with bad casing, it will
  25729. // be successfully parsed from HTML, but will produce a mismatch
  25730. // (and would be incorrectly rendered on the client).
  25731. // However, we already warn about bad casing elsewhere.
  25732. // So we'll skip the misleading extra mismatch warning in this case.
  25733. isMismatchDueToBadCasing = true;
  25734. // $FlowFixMe - Should be inferred as not undefined.
  25735. extraAttributeNames.delete(standardName);
  25736. }
  25737. // $FlowFixMe - Should be inferred as not undefined.
  25738. extraAttributeNames.delete(propKey);
  25739. }
  25740. serverValue = getValueForAttribute(domElement, propKey, nextProp);
  25741. }
  25742. if (nextProp !== serverValue && !isMismatchDueToBadCasing) {
  25743. warnForPropDifference(propKey, serverValue, nextProp);
  25744. }
  25745. }
  25746. }
  25747. }
  25748. {
  25749. // $FlowFixMe - Should be inferred as not undefined.
  25750. if (extraAttributeNames.size > 0 && !suppressHydrationWarning) {
  25751. // $FlowFixMe - Should be inferred as not undefined.
  25752. warnForExtraAttributes(extraAttributeNames);
  25753. }
  25754. }
  25755. switch (tag) {
  25756. case 'input':
  25757. // TODO: Make sure we check if this is still unmounted or do any clean
  25758. // up necessary since we never stop tracking anymore.
  25759. track(domElement);
  25760. postMountWrapper(domElement, rawProps, true);
  25761. break;
  25762. case 'textarea':
  25763. // TODO: Make sure we check if this is still unmounted or do any clean
  25764. // up necessary since we never stop tracking anymore.
  25765. track(domElement);
  25766. postMountWrapper$3(domElement, rawProps);
  25767. break;
  25768. case 'select':
  25769. case 'option':
  25770. // For input and textarea we current always set the value property at
  25771. // post mount to force it to diverge from attributes. However, for
  25772. // option and select we don't quite do the same thing and select
  25773. // is not resilient to the DOM state changing so we don't do that here.
  25774. // TODO: Consider not doing this for input and textarea.
  25775. break;
  25776. default:
  25777. if (typeof rawProps.onClick === 'function') {
  25778. // TODO: This cast may not be sound for SVG, MathML or custom elements.
  25779. trapClickOnNonInteractiveElement(domElement);
  25780. }
  25781. break;
  25782. }
  25783. return updatePayload;
  25784. }
  25785. function diffHydratedText(textNode, text) {
  25786. var isDifferent = textNode.nodeValue !== text;
  25787. return isDifferent;
  25788. }
  25789. function warnForUnmatchedText(textNode, text) {
  25790. {
  25791. warnForTextDifference(textNode.nodeValue, text);
  25792. }
  25793. }
  25794. function warnForDeletedHydratableElement(parentNode, child) {
  25795. {
  25796. if (didWarnInvalidHydration) {
  25797. return;
  25798. }
  25799. didWarnInvalidHydration = true;
  25800. warningWithoutStack$1(false, 'Did not expect server HTML to contain a <%s> in <%s>.', child.nodeName.toLowerCase(), parentNode.nodeName.toLowerCase());
  25801. }
  25802. }
  25803. function warnForDeletedHydratableText(parentNode, child) {
  25804. {
  25805. if (didWarnInvalidHydration) {
  25806. return;
  25807. }
  25808. didWarnInvalidHydration = true;
  25809. warningWithoutStack$1(false, 'Did not expect server HTML to contain the text node "%s" in <%s>.', child.nodeValue, parentNode.nodeName.toLowerCase());
  25810. }
  25811. }
  25812. function warnForInsertedHydratedElement(parentNode, tag, props) {
  25813. {
  25814. if (didWarnInvalidHydration) {
  25815. return;
  25816. }
  25817. didWarnInvalidHydration = true;
  25818. warningWithoutStack$1(false, 'Expected server HTML to contain a matching <%s> in <%s>.', tag, parentNode.nodeName.toLowerCase());
  25819. }
  25820. }
  25821. function warnForInsertedHydratedText(parentNode, text) {
  25822. {
  25823. if (text === '') {
  25824. // We expect to insert empty text nodes since they're not represented in
  25825. // the HTML.
  25826. // TODO: Remove this special case if we can just avoid inserting empty
  25827. // text nodes.
  25828. return;
  25829. }
  25830. if (didWarnInvalidHydration) {
  25831. return;
  25832. }
  25833. didWarnInvalidHydration = true;
  25834. warningWithoutStack$1(false, 'Expected server HTML to contain a matching text node for "%s" in <%s>.', text, parentNode.nodeName.toLowerCase());
  25835. }
  25836. }
  25837. function restoreControlledState$1(domElement, tag, props) {
  25838. switch (tag) {
  25839. case 'input':
  25840. restoreControlledState(domElement, props);
  25841. return;
  25842. case 'textarea':
  25843. restoreControlledState$3(domElement, props);
  25844. return;
  25845. case 'select':
  25846. restoreControlledState$2(domElement, props);
  25847. return;
  25848. }
  25849. }
  25850. function listenToEventResponderEventTypes(eventTypes, element) {
  25851. if (enableFlareAPI) {
  25852. // Get the listening Set for this element. We use this to track
  25853. // what events we're listening to.
  25854. var listeningSet = getListeningSetForElement(element);
  25855. // Go through each target event type of the event responder
  25856. for (var i = 0, length = eventTypes.length; i < length; ++i) {
  25857. var eventType = eventTypes[i];
  25858. var isPassive = !endsWith(eventType, '_active');
  25859. var eventKey = isPassive ? eventType + '_passive' : eventType;
  25860. var targetEventType = isPassive ? eventType : eventType.substring(0, eventType.length - 7);
  25861. if (!listeningSet.has(eventKey)) {
  25862. trapEventForResponderEventSystem(element, targetEventType, isPassive);
  25863. listeningSet.add(eventKey);
  25864. }
  25865. }
  25866. }
  25867. }
  25868. // We can remove this once the event API is stable and out of a flag
  25869. if (enableFlareAPI) {
  25870. setListenToResponderEventTypes(listenToEventResponderEventTypes);
  25871. }
  25872. // TODO: direct imports like some-package/src/* are bad. Fix me.
  25873. var validateDOMNesting = function () {};
  25874. var updatedAncestorInfo = function () {};
  25875. {
  25876. // This validation code was written based on the HTML5 parsing spec:
  25877. // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-scope
  25878. //
  25879. // Note: this does not catch all invalid nesting, nor does it try to (as it's
  25880. // not clear what practical benefit doing so provides); instead, we warn only
  25881. // for cases where the parser will give a parse tree differing from what React
  25882. // intended. For example, <b><div></div></b> is invalid but we don't warn
  25883. // because it still parses correctly; we do warn for other cases like nested
  25884. // <p> tags where the beginning of the second element implicitly closes the
  25885. // first, causing a confusing mess.
  25886. // https://html.spec.whatwg.org/multipage/syntax.html#special
  25887. var specialTags = ['address', 'applet', 'area', 'article', 'aside', 'base', 'basefont', 'bgsound', 'blockquote', 'body', 'br', 'button', 'caption', 'center', 'col', 'colgroup', 'dd', 'details', 'dir', 'div', 'dl', 'dt', 'embed', 'fieldset', 'figcaption', 'figure', 'footer', 'form', 'frame', 'frameset', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'iframe', 'img', 'input', 'isindex', 'li', 'link', 'listing', 'main', 'marquee', 'menu', 'menuitem', 'meta', 'nav', 'noembed', 'noframes', 'noscript', 'object', 'ol', 'p', 'param', 'plaintext', 'pre', 'script', 'section', 'select', 'source', 'style', 'summary', 'table', 'tbody', 'td', 'template', 'textarea', 'tfoot', 'th', 'thead', 'title', 'tr', 'track', 'ul', 'wbr', 'xmp'];
  25888. // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-scope
  25889. var inScopeTags = ['applet', 'caption', 'html', 'table', 'td', 'th', 'marquee', 'object', 'template',
  25890. // https://html.spec.whatwg.org/multipage/syntax.html#html-integration-point
  25891. // TODO: Distinguish by namespace here -- for <title>, including it here
  25892. // errs on the side of fewer warnings
  25893. 'foreignObject', 'desc', 'title'];
  25894. // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-button-scope
  25895. var buttonScopeTags = inScopeTags.concat(['button']);
  25896. // https://html.spec.whatwg.org/multipage/syntax.html#generate-implied-end-tags
  25897. var impliedEndTags = ['dd', 'dt', 'li', 'option', 'optgroup', 'p', 'rp', 'rt'];
  25898. var emptyAncestorInfo = {
  25899. current: null,
  25900. formTag: null,
  25901. aTagInScope: null,
  25902. buttonTagInScope: null,
  25903. nobrTagInScope: null,
  25904. pTagInButtonScope: null,
  25905. listItemTagAutoclosing: null,
  25906. dlItemTagAutoclosing: null
  25907. };
  25908. updatedAncestorInfo = function (oldInfo, tag) {
  25909. var ancestorInfo = _assign({}, oldInfo || emptyAncestorInfo);
  25910. var info = { tag: tag };
  25911. if (inScopeTags.indexOf(tag) !== -1) {
  25912. ancestorInfo.aTagInScope = null;
  25913. ancestorInfo.buttonTagInScope = null;
  25914. ancestorInfo.nobrTagInScope = null;
  25915. }
  25916. if (buttonScopeTags.indexOf(tag) !== -1) {
  25917. ancestorInfo.pTagInButtonScope = null;
  25918. }
  25919. // See rules for 'li', 'dd', 'dt' start tags in
  25920. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inbody
  25921. if (specialTags.indexOf(tag) !== -1 && tag !== 'address' && tag !== 'div' && tag !== 'p') {
  25922. ancestorInfo.listItemTagAutoclosing = null;
  25923. ancestorInfo.dlItemTagAutoclosing = null;
  25924. }
  25925. ancestorInfo.current = info;
  25926. if (tag === 'form') {
  25927. ancestorInfo.formTag = info;
  25928. }
  25929. if (tag === 'a') {
  25930. ancestorInfo.aTagInScope = info;
  25931. }
  25932. if (tag === 'button') {
  25933. ancestorInfo.buttonTagInScope = info;
  25934. }
  25935. if (tag === 'nobr') {
  25936. ancestorInfo.nobrTagInScope = info;
  25937. }
  25938. if (tag === 'p') {
  25939. ancestorInfo.pTagInButtonScope = info;
  25940. }
  25941. if (tag === 'li') {
  25942. ancestorInfo.listItemTagAutoclosing = info;
  25943. }
  25944. if (tag === 'dd' || tag === 'dt') {
  25945. ancestorInfo.dlItemTagAutoclosing = info;
  25946. }
  25947. return ancestorInfo;
  25948. };
  25949. /**
  25950. * Returns whether
  25951. */
  25952. var isTagValidWithParent = function (tag, parentTag) {
  25953. // First, let's check if we're in an unusual parsing mode...
  25954. switch (parentTag) {
  25955. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inselect
  25956. case 'select':
  25957. return tag === 'option' || tag === 'optgroup' || tag === '#text';
  25958. case 'optgroup':
  25959. return tag === 'option' || tag === '#text';
  25960. // Strictly speaking, seeing an <option> doesn't mean we're in a <select>
  25961. // but
  25962. case 'option':
  25963. return tag === '#text';
  25964. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intd
  25965. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-incaption
  25966. // No special behavior since these rules fall back to "in body" mode for
  25967. // all except special table nodes which cause bad parsing behavior anyway.
  25968. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intr
  25969. case 'tr':
  25970. return tag === 'th' || tag === 'td' || tag === 'style' || tag === 'script' || tag === 'template';
  25971. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intbody
  25972. case 'tbody':
  25973. case 'thead':
  25974. case 'tfoot':
  25975. return tag === 'tr' || tag === 'style' || tag === 'script' || tag === 'template';
  25976. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-incolgroup
  25977. case 'colgroup':
  25978. return tag === 'col' || tag === 'template';
  25979. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intable
  25980. case 'table':
  25981. return tag === 'caption' || tag === 'colgroup' || tag === 'tbody' || tag === 'tfoot' || tag === 'thead' || tag === 'style' || tag === 'script' || tag === 'template';
  25982. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inhead
  25983. case 'head':
  25984. return tag === 'base' || tag === 'basefont' || tag === 'bgsound' || tag === 'link' || tag === 'meta' || tag === 'title' || tag === 'noscript' || tag === 'noframes' || tag === 'style' || tag === 'script' || tag === 'template';
  25985. // https://html.spec.whatwg.org/multipage/semantics.html#the-html-element
  25986. case 'html':
  25987. return tag === 'head' || tag === 'body' || tag === 'frameset';
  25988. case 'frameset':
  25989. return tag === 'frame';
  25990. case '#document':
  25991. return tag === 'html';
  25992. }
  25993. // Probably in the "in body" parsing mode, so we outlaw only tag combos
  25994. // where the parsing rules cause implicit opens or closes to be added.
  25995. // https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inbody
  25996. switch (tag) {
  25997. case 'h1':
  25998. case 'h2':
  25999. case 'h3':
  26000. case 'h4':
  26001. case 'h5':
  26002. case 'h6':
  26003. return parentTag !== 'h1' && parentTag !== 'h2' && parentTag !== 'h3' && parentTag !== 'h4' && parentTag !== 'h5' && parentTag !== 'h6';
  26004. case 'rp':
  26005. case 'rt':
  26006. return impliedEndTags.indexOf(parentTag) === -1;
  26007. case 'body':
  26008. case 'caption':
  26009. case 'col':
  26010. case 'colgroup':
  26011. case 'frameset':
  26012. case 'frame':
  26013. case 'head':
  26014. case 'html':
  26015. case 'tbody':
  26016. case 'td':
  26017. case 'tfoot':
  26018. case 'th':
  26019. case 'thead':
  26020. case 'tr':
  26021. // These tags are only valid with a few parents that have special child
  26022. // parsing rules -- if we're down here, then none of those matched and
  26023. // so we allow it only if we don't know what the parent is, as all other
  26024. // cases are invalid.
  26025. return parentTag == null;
  26026. }
  26027. return true;
  26028. };
  26029. /**
  26030. * Returns whether
  26031. */
  26032. var findInvalidAncestorForTag = function (tag, ancestorInfo) {
  26033. switch (tag) {
  26034. case 'address':
  26035. case 'article':
  26036. case 'aside':
  26037. case 'blockquote':
  26038. case 'center':
  26039. case 'details':
  26040. case 'dialog':
  26041. case 'dir':
  26042. case 'div':
  26043. case 'dl':
  26044. case 'fieldset':
  26045. case 'figcaption':
  26046. case 'figure':
  26047. case 'footer':
  26048. case 'header':
  26049. case 'hgroup':
  26050. case 'main':
  26051. case 'menu':
  26052. case 'nav':
  26053. case 'ol':
  26054. case 'p':
  26055. case 'section':
  26056. case 'summary':
  26057. case 'ul':
  26058. case 'pre':
  26059. case 'listing':
  26060. case 'table':
  26061. case 'hr':
  26062. case 'xmp':
  26063. case 'h1':
  26064. case 'h2':
  26065. case 'h3':
  26066. case 'h4':
  26067. case 'h5':
  26068. case 'h6':
  26069. return ancestorInfo.pTagInButtonScope;
  26070. case 'form':
  26071. return ancestorInfo.formTag || ancestorInfo.pTagInButtonScope;
  26072. case 'li':
  26073. return ancestorInfo.listItemTagAutoclosing;
  26074. case 'dd':
  26075. case 'dt':
  26076. return ancestorInfo.dlItemTagAutoclosing;
  26077. case 'button':
  26078. return ancestorInfo.buttonTagInScope;
  26079. case 'a':
  26080. // Spec says something about storing a list of markers, but it sounds
  26081. // equivalent to this check.
  26082. return ancestorInfo.aTagInScope;
  26083. case 'nobr':
  26084. return ancestorInfo.nobrTagInScope;
  26085. }
  26086. return null;
  26087. };
  26088. var didWarn$1 = {};
  26089. validateDOMNesting = function (childTag, childText, ancestorInfo) {
  26090. ancestorInfo = ancestorInfo || emptyAncestorInfo;
  26091. var parentInfo = ancestorInfo.current;
  26092. var parentTag = parentInfo && parentInfo.tag;
  26093. if (childText != null) {
  26094. !(childTag == null) ? warningWithoutStack$1(false, 'validateDOMNesting: when childText is passed, childTag should be null') : void 0;
  26095. childTag = '#text';
  26096. }
  26097. var invalidParent = isTagValidWithParent(childTag, parentTag) ? null : parentInfo;
  26098. var invalidAncestor = invalidParent ? null : findInvalidAncestorForTag(childTag, ancestorInfo);
  26099. var invalidParentOrAncestor = invalidParent || invalidAncestor;
  26100. if (!invalidParentOrAncestor) {
  26101. return;
  26102. }
  26103. var ancestorTag = invalidParentOrAncestor.tag;
  26104. var addendum = getCurrentFiberStackInDev();
  26105. var warnKey = !!invalidParent + '|' + childTag + '|' + ancestorTag + '|' + addendum;
  26106. if (didWarn$1[warnKey]) {
  26107. return;
  26108. }
  26109. didWarn$1[warnKey] = true;
  26110. var tagDisplayName = childTag;
  26111. var whitespaceInfo = '';
  26112. if (childTag === '#text') {
  26113. if (/\S/.test(childText)) {
  26114. tagDisplayName = 'Text nodes';
  26115. } else {
  26116. tagDisplayName = 'Whitespace text nodes';
  26117. whitespaceInfo = " Make sure you don't have any extra whitespace between tags on " + 'each line of your source code.';
  26118. }
  26119. } else {
  26120. tagDisplayName = '<' + childTag + '>';
  26121. }
  26122. if (invalidParent) {
  26123. var info = '';
  26124. if (ancestorTag === 'table' && childTag === 'tr') {
  26125. info += ' Add a <tbody> to your code to match the DOM tree generated by ' + 'the browser.';
  26126. }
  26127. warningWithoutStack$1(false, 'validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s%s', tagDisplayName, ancestorTag, whitespaceInfo, info, addendum);
  26128. } else {
  26129. warningWithoutStack$1(false, 'validateDOMNesting(...): %s cannot appear as a descendant of ' + '<%s>.%s', tagDisplayName, ancestorTag, addendum);
  26130. }
  26131. };
  26132. }
  26133. // Renderers that don't support persistence
  26134. // can re-export everything from this module.
  26135. function shim() {
  26136. (function () {
  26137. {
  26138. {
  26139. throw ReactError(Error('The current renderer does not support persistence. This error is likely caused by a bug in React. Please file an issue.'));
  26140. }
  26141. }
  26142. })();
  26143. }
  26144. // Persistence (when unsupported)
  26145. var supportsPersistence = false;
  26146. var cloneInstance = shim;
  26147. var cloneFundamentalInstance = shim;
  26148. var createContainerChildSet = shim;
  26149. var appendChildToContainerChildSet = shim;
  26150. var finalizeContainerChildren = shim;
  26151. var replaceContainerChildren = shim;
  26152. var cloneHiddenInstance = shim;
  26153. var cloneHiddenTextInstance = shim;
  26154. var SUPPRESS_HYDRATION_WARNING = void 0;
  26155. {
  26156. SUPPRESS_HYDRATION_WARNING = 'suppressHydrationWarning';
  26157. }
  26158. var SUSPENSE_START_DATA = '$';
  26159. var SUSPENSE_END_DATA = '/$';
  26160. var SUSPENSE_PENDING_START_DATA = '$?';
  26161. var SUSPENSE_FALLBACK_START_DATA = '$!';
  26162. var STYLE = 'style';
  26163. var eventsEnabled = null;
  26164. var selectionInformation = null;
  26165. function shouldAutoFocusHostComponent(type, props) {
  26166. switch (type) {
  26167. case 'button':
  26168. case 'input':
  26169. case 'select':
  26170. case 'textarea':
  26171. return !!props.autoFocus;
  26172. }
  26173. return false;
  26174. }
  26175. function getRootHostContext(rootContainerInstance) {
  26176. var type = void 0;
  26177. var namespace = void 0;
  26178. var nodeType = rootContainerInstance.nodeType;
  26179. switch (nodeType) {
  26180. case DOCUMENT_NODE:
  26181. case DOCUMENT_FRAGMENT_NODE:
  26182. {
  26183. type = nodeType === DOCUMENT_NODE ? '#document' : '#fragment';
  26184. var root = rootContainerInstance.documentElement;
  26185. namespace = root ? root.namespaceURI : getChildNamespace(null, '');
  26186. break;
  26187. }
  26188. default:
  26189. {
  26190. var container = nodeType === COMMENT_NODE ? rootContainerInstance.parentNode : rootContainerInstance;
  26191. var ownNamespace = container.namespaceURI || null;
  26192. type = container.tagName;
  26193. namespace = getChildNamespace(ownNamespace, type);
  26194. break;
  26195. }
  26196. }
  26197. {
  26198. var validatedTag = type.toLowerCase();
  26199. var _ancestorInfo = updatedAncestorInfo(null, validatedTag);
  26200. return { namespace: namespace, ancestorInfo: _ancestorInfo };
  26201. }
  26202. return namespace;
  26203. }
  26204. function getChildHostContext(parentHostContext, type, rootContainerInstance) {
  26205. {
  26206. var parentHostContextDev = parentHostContext;
  26207. var _namespace = getChildNamespace(parentHostContextDev.namespace, type);
  26208. var _ancestorInfo2 = updatedAncestorInfo(parentHostContextDev.ancestorInfo, type);
  26209. return { namespace: _namespace, ancestorInfo: _ancestorInfo2 };
  26210. }
  26211. var parentNamespace = parentHostContext;
  26212. return getChildNamespace(parentNamespace, type);
  26213. }
  26214. function getPublicInstance(instance) {
  26215. return instance;
  26216. }
  26217. function prepareForCommit(containerInfo) {
  26218. eventsEnabled = isEnabled();
  26219. selectionInformation = getSelectionInformation();
  26220. setEnabled(false);
  26221. }
  26222. function resetAfterCommit(containerInfo) {
  26223. restoreSelection(selectionInformation);
  26224. selectionInformation = null;
  26225. setEnabled(eventsEnabled);
  26226. eventsEnabled = null;
  26227. }
  26228. function createInstance(type, props, rootContainerInstance, hostContext, internalInstanceHandle) {
  26229. var parentNamespace = void 0;
  26230. {
  26231. // TODO: take namespace into account when validating.
  26232. var hostContextDev = hostContext;
  26233. validateDOMNesting(type, null, hostContextDev.ancestorInfo);
  26234. if (typeof props.children === 'string' || typeof props.children === 'number') {
  26235. var string = '' + props.children;
  26236. var ownAncestorInfo = updatedAncestorInfo(hostContextDev.ancestorInfo, type);
  26237. validateDOMNesting(null, string, ownAncestorInfo);
  26238. }
  26239. parentNamespace = hostContextDev.namespace;
  26240. }
  26241. var domElement = createElement(type, props, rootContainerInstance, parentNamespace);
  26242. precacheFiberNode(internalInstanceHandle, domElement);
  26243. updateFiberProps(domElement, props);
  26244. return domElement;
  26245. }
  26246. function appendInitialChild(parentInstance, child) {
  26247. parentInstance.appendChild(child);
  26248. }
  26249. function finalizeInitialChildren(domElement, type, props, rootContainerInstance, hostContext) {
  26250. setInitialProperties(domElement, type, props, rootContainerInstance);
  26251. return shouldAutoFocusHostComponent(type, props);
  26252. }
  26253. function prepareUpdate(domElement, type, oldProps, newProps, rootContainerInstance, hostContext) {
  26254. {
  26255. var hostContextDev = hostContext;
  26256. if (typeof newProps.children !== typeof oldProps.children && (typeof newProps.children === 'string' || typeof newProps.children === 'number')) {
  26257. var string = '' + newProps.children;
  26258. var ownAncestorInfo = updatedAncestorInfo(hostContextDev.ancestorInfo, type);
  26259. validateDOMNesting(null, string, ownAncestorInfo);
  26260. }
  26261. }
  26262. return diffProperties(domElement, type, oldProps, newProps, rootContainerInstance);
  26263. }
  26264. function shouldSetTextContent(type, props) {
  26265. return type === 'textarea' || type === 'option' || type === 'noscript' || typeof props.children === 'string' || typeof props.children === 'number' || typeof props.dangerouslySetInnerHTML === 'object' && props.dangerouslySetInnerHTML !== null && props.dangerouslySetInnerHTML.__html != null;
  26266. }
  26267. function shouldDeprioritizeSubtree(type, props) {
  26268. return !!props.hidden;
  26269. }
  26270. function createTextInstance(text, rootContainerInstance, hostContext, internalInstanceHandle) {
  26271. {
  26272. var hostContextDev = hostContext;
  26273. validateDOMNesting(null, text, hostContextDev.ancestorInfo);
  26274. }
  26275. var textNode = createTextNode(text, rootContainerInstance);
  26276. precacheFiberNode(internalInstanceHandle, textNode);
  26277. return textNode;
  26278. }
  26279. var isPrimaryRenderer = true;
  26280. var warnsIfNotActing = true;
  26281. // This initialization code may run even on server environments
  26282. // if a component just imports ReactDOM (e.g. for findDOMNode).
  26283. // Some environments might not have setTimeout or clearTimeout.
  26284. var scheduleTimeout = typeof setTimeout === 'function' ? setTimeout : undefined;
  26285. var cancelTimeout = typeof clearTimeout === 'function' ? clearTimeout : undefined;
  26286. var noTimeout = -1;
  26287. // -------------------
  26288. // Mutation
  26289. // -------------------
  26290. var supportsMutation = true;
  26291. function commitMount(domElement, type, newProps, internalInstanceHandle) {
  26292. // Despite the naming that might imply otherwise, this method only
  26293. // fires if there is an `Update` effect scheduled during mounting.
  26294. // This happens if `finalizeInitialChildren` returns `true` (which it
  26295. // does to implement the `autoFocus` attribute on the client). But
  26296. // there are also other cases when this might happen (such as patching
  26297. // up text content during hydration mismatch). So we'll check this again.
  26298. if (shouldAutoFocusHostComponent(type, newProps)) {
  26299. domElement.focus();
  26300. }
  26301. }
  26302. function commitUpdate(domElement, updatePayload, type, oldProps, newProps, internalInstanceHandle) {
  26303. // Update the props handle so that we know which props are the ones with
  26304. // with current event handlers.
  26305. updateFiberProps(domElement, newProps);
  26306. // Apply the diff to the DOM node.
  26307. updateProperties(domElement, updatePayload, type, oldProps, newProps);
  26308. }
  26309. function resetTextContent(domElement) {
  26310. setTextContent(domElement, '');
  26311. }
  26312. function commitTextUpdate(textInstance, oldText, newText) {
  26313. textInstance.nodeValue = newText;
  26314. }
  26315. function appendChild(parentInstance, child) {
  26316. parentInstance.appendChild(child);
  26317. }
  26318. function appendChildToContainer(container, child) {
  26319. var parentNode = void 0;
  26320. if (container.nodeType === COMMENT_NODE) {
  26321. parentNode = container.parentNode;
  26322. parentNode.insertBefore(child, container);
  26323. } else {
  26324. parentNode = container;
  26325. parentNode.appendChild(child);
  26326. }
  26327. // This container might be used for a portal.
  26328. // If something inside a portal is clicked, that click should bubble
  26329. // through the React tree. However, on Mobile Safari the click would
  26330. // never bubble through the *DOM* tree unless an ancestor with onclick
  26331. // event exists. So we wouldn't see it and dispatch it.
  26332. // This is why we ensure that non React root containers have inline onclick
  26333. // defined.
  26334. // https://github.com/facebook/react/issues/11918
  26335. var reactRootContainer = container._reactRootContainer;
  26336. if ((reactRootContainer === null || reactRootContainer === undefined) && parentNode.onclick === null) {
  26337. // TODO: This cast may not be sound for SVG, MathML or custom elements.
  26338. trapClickOnNonInteractiveElement(parentNode);
  26339. }
  26340. }
  26341. function insertBefore(parentInstance, child, beforeChild) {
  26342. parentInstance.insertBefore(child, beforeChild);
  26343. }
  26344. function insertInContainerBefore(container, child, beforeChild) {
  26345. if (container.nodeType === COMMENT_NODE) {
  26346. container.parentNode.insertBefore(child, beforeChild);
  26347. } else {
  26348. container.insertBefore(child, beforeChild);
  26349. }
  26350. }
  26351. function removeChild(parentInstance, child) {
  26352. parentInstance.removeChild(child);
  26353. }
  26354. function removeChildFromContainer(container, child) {
  26355. if (container.nodeType === COMMENT_NODE) {
  26356. container.parentNode.removeChild(child);
  26357. } else {
  26358. container.removeChild(child);
  26359. }
  26360. }
  26361. function clearSuspenseBoundary(parentInstance, suspenseInstance) {
  26362. var node = suspenseInstance;
  26363. // Delete all nodes within this suspense boundary.
  26364. // There might be nested nodes so we need to keep track of how
  26365. // deep we are and only break out when we're back on top.
  26366. var depth = 0;
  26367. do {
  26368. var nextNode = node.nextSibling;
  26369. parentInstance.removeChild(node);
  26370. if (nextNode && nextNode.nodeType === COMMENT_NODE) {
  26371. var data = nextNode.data;
  26372. if (data === SUSPENSE_END_DATA) {
  26373. if (depth === 0) {
  26374. parentInstance.removeChild(nextNode);
  26375. return;
  26376. } else {
  26377. depth--;
  26378. }
  26379. } else if (data === SUSPENSE_START_DATA || data === SUSPENSE_PENDING_START_DATA || data === SUSPENSE_FALLBACK_START_DATA) {
  26380. depth++;
  26381. }
  26382. }
  26383. node = nextNode;
  26384. } while (node);
  26385. // TODO: Warn, we didn't find the end comment boundary.
  26386. }
  26387. function clearSuspenseBoundaryFromContainer(container, suspenseInstance) {
  26388. if (container.nodeType === COMMENT_NODE) {
  26389. clearSuspenseBoundary(container.parentNode, suspenseInstance);
  26390. } else if (container.nodeType === ELEMENT_NODE) {
  26391. clearSuspenseBoundary(container, suspenseInstance);
  26392. } else {
  26393. // Document nodes should never contain suspense boundaries.
  26394. }
  26395. }
  26396. function hideInstance(instance) {
  26397. // TODO: Does this work for all element types? What about MathML? Should we
  26398. // pass host context to this method?
  26399. instance = instance;
  26400. var style = instance.style;
  26401. if (typeof style.setProperty === 'function') {
  26402. style.setProperty('display', 'none', 'important');
  26403. } else {
  26404. style.display = 'none';
  26405. }
  26406. }
  26407. function hideTextInstance(textInstance) {
  26408. textInstance.nodeValue = '';
  26409. }
  26410. function unhideInstance(instance, props) {
  26411. instance = instance;
  26412. var styleProp = props[STYLE];
  26413. var display = styleProp !== undefined && styleProp !== null && styleProp.hasOwnProperty('display') ? styleProp.display : null;
  26414. instance.style.display = dangerousStyleValue('display', display);
  26415. }
  26416. function unhideTextInstance(textInstance, text) {
  26417. textInstance.nodeValue = text;
  26418. }
  26419. // -------------------
  26420. // Hydration
  26421. // -------------------
  26422. var supportsHydration = true;
  26423. function canHydrateInstance(instance, type, props) {
  26424. if (instance.nodeType !== ELEMENT_NODE || type.toLowerCase() !== instance.nodeName.toLowerCase()) {
  26425. return null;
  26426. }
  26427. // This has now been refined to an element node.
  26428. return instance;
  26429. }
  26430. function canHydrateTextInstance(instance, text) {
  26431. if (text === '' || instance.nodeType !== TEXT_NODE) {
  26432. // Empty strings are not parsed by HTML so there won't be a correct match here.
  26433. return null;
  26434. }
  26435. // This has now been refined to a text node.
  26436. return instance;
  26437. }
  26438. function canHydrateSuspenseInstance(instance) {
  26439. if (instance.nodeType !== COMMENT_NODE) {
  26440. // Empty strings are not parsed by HTML so there won't be a correct match here.
  26441. return null;
  26442. }
  26443. // This has now been refined to a suspense node.
  26444. return instance;
  26445. }
  26446. function isSuspenseInstancePending(instance) {
  26447. return instance.data === SUSPENSE_PENDING_START_DATA;
  26448. }
  26449. function isSuspenseInstanceFallback(instance) {
  26450. return instance.data === SUSPENSE_FALLBACK_START_DATA;
  26451. }
  26452. function registerSuspenseInstanceRetry(instance, callback) {
  26453. instance._reactRetry = callback;
  26454. }
  26455. function getNextHydratable(node) {
  26456. // Skip non-hydratable nodes.
  26457. for (; node != null; node = node.nextSibling) {
  26458. var nodeType = node.nodeType;
  26459. if (nodeType === ELEMENT_NODE || nodeType === TEXT_NODE) {
  26460. break;
  26461. }
  26462. if (enableSuspenseServerRenderer) {
  26463. if (nodeType === COMMENT_NODE) {
  26464. break;
  26465. }
  26466. var nodeData = node.data;
  26467. if (nodeData === SUSPENSE_START_DATA || nodeData === SUSPENSE_FALLBACK_START_DATA || nodeData === SUSPENSE_PENDING_START_DATA) {
  26468. break;
  26469. }
  26470. }
  26471. }
  26472. return node;
  26473. }
  26474. function getNextHydratableSibling(instance) {
  26475. return getNextHydratable(instance.nextSibling);
  26476. }
  26477. function getFirstHydratableChild(parentInstance) {
  26478. return getNextHydratable(parentInstance.firstChild);
  26479. }
  26480. function hydrateInstance(instance, type, props, rootContainerInstance, hostContext, internalInstanceHandle) {
  26481. precacheFiberNode(internalInstanceHandle, instance);
  26482. // TODO: Possibly defer this until the commit phase where all the events
  26483. // get attached.
  26484. updateFiberProps(instance, props);
  26485. var parentNamespace = void 0;
  26486. {
  26487. var hostContextDev = hostContext;
  26488. parentNamespace = hostContextDev.namespace;
  26489. }
  26490. return diffHydratedProperties(instance, type, props, parentNamespace, rootContainerInstance);
  26491. }
  26492. function hydrateTextInstance(textInstance, text, internalInstanceHandle) {
  26493. precacheFiberNode(internalInstanceHandle, textInstance);
  26494. return diffHydratedText(textInstance, text);
  26495. }
  26496. function getNextHydratableInstanceAfterSuspenseInstance(suspenseInstance) {
  26497. var node = suspenseInstance.nextSibling;
  26498. // Skip past all nodes within this suspense boundary.
  26499. // There might be nested nodes so we need to keep track of how
  26500. // deep we are and only break out when we're back on top.
  26501. var depth = 0;
  26502. while (node) {
  26503. if (node.nodeType === COMMENT_NODE) {
  26504. var data = node.data;
  26505. if (data === SUSPENSE_END_DATA) {
  26506. if (depth === 0) {
  26507. return getNextHydratableSibling(node);
  26508. } else {
  26509. depth--;
  26510. }
  26511. } else if (data === SUSPENSE_START_DATA) {
  26512. depth++;
  26513. }
  26514. }
  26515. node = node.nextSibling;
  26516. }
  26517. // TODO: Warn, we didn't find the end comment boundary.
  26518. return null;
  26519. }
  26520. function didNotMatchHydratedContainerTextInstance(parentContainer, textInstance, text) {
  26521. {
  26522. warnForUnmatchedText(textInstance, text);
  26523. }
  26524. }
  26525. function didNotMatchHydratedTextInstance(parentType, parentProps, parentInstance, textInstance, text) {
  26526. if ( true && parentProps[SUPPRESS_HYDRATION_WARNING] !== true) {
  26527. warnForUnmatchedText(textInstance, text);
  26528. }
  26529. }
  26530. function didNotHydrateContainerInstance(parentContainer, instance) {
  26531. {
  26532. if (instance.nodeType === ELEMENT_NODE) {
  26533. warnForDeletedHydratableElement(parentContainer, instance);
  26534. } else if (instance.nodeType === COMMENT_NODE) {
  26535. // TODO: warnForDeletedHydratableSuspenseBoundary
  26536. } else {
  26537. warnForDeletedHydratableText(parentContainer, instance);
  26538. }
  26539. }
  26540. }
  26541. function didNotHydrateInstance(parentType, parentProps, parentInstance, instance) {
  26542. if ( true && parentProps[SUPPRESS_HYDRATION_WARNING] !== true) {
  26543. if (instance.nodeType === ELEMENT_NODE) {
  26544. warnForDeletedHydratableElement(parentInstance, instance);
  26545. } else if (instance.nodeType === COMMENT_NODE) {
  26546. // TODO: warnForDeletedHydratableSuspenseBoundary
  26547. } else {
  26548. warnForDeletedHydratableText(parentInstance, instance);
  26549. }
  26550. }
  26551. }
  26552. function didNotFindHydratableContainerInstance(parentContainer, type, props) {
  26553. {
  26554. warnForInsertedHydratedElement(parentContainer, type, props);
  26555. }
  26556. }
  26557. function didNotFindHydratableContainerTextInstance(parentContainer, text) {
  26558. {
  26559. warnForInsertedHydratedText(parentContainer, text);
  26560. }
  26561. }
  26562. function didNotFindHydratableInstance(parentType, parentProps, parentInstance, type, props) {
  26563. if ( true && parentProps[SUPPRESS_HYDRATION_WARNING] !== true) {
  26564. warnForInsertedHydratedElement(parentInstance, type, props);
  26565. }
  26566. }
  26567. function didNotFindHydratableTextInstance(parentType, parentProps, parentInstance, text) {
  26568. if ( true && parentProps[SUPPRESS_HYDRATION_WARNING] !== true) {
  26569. warnForInsertedHydratedText(parentInstance, text);
  26570. }
  26571. }
  26572. function didNotFindHydratableSuspenseInstance(parentType, parentProps, parentInstance) {
  26573. if ( true && parentProps[SUPPRESS_HYDRATION_WARNING] !== true) {
  26574. // TODO: warnForInsertedHydratedSuspense(parentInstance);
  26575. }
  26576. }
  26577. function mountResponderInstance(responder, responderInstance, responderProps, responderState, instance, rootContainerInstance) {
  26578. // Listen to events
  26579. var doc = rootContainerInstance.ownerDocument;
  26580. var documentBody = doc.body || doc;
  26581. var _ref = responder,
  26582. rootEventTypes = _ref.rootEventTypes,
  26583. targetEventTypes = _ref.targetEventTypes;
  26584. if (targetEventTypes !== null) {
  26585. listenToEventResponderEventTypes(targetEventTypes, documentBody);
  26586. }
  26587. if (rootEventTypes !== null) {
  26588. addRootEventTypesForResponderInstance(responderInstance, rootEventTypes);
  26589. listenToEventResponderEventTypes(rootEventTypes, documentBody);
  26590. }
  26591. mountEventResponder(responder, responderInstance, responderProps, responderState);
  26592. return responderInstance;
  26593. }
  26594. function unmountResponderInstance(responderInstance) {
  26595. if (enableFlareAPI) {
  26596. // TODO stop listening to targetEventTypes
  26597. unmountEventResponder(responderInstance);
  26598. }
  26599. }
  26600. function getFundamentalComponentInstance(fundamentalInstance) {
  26601. if (enableFundamentalAPI) {
  26602. var currentFiber = fundamentalInstance.currentFiber,
  26603. impl = fundamentalInstance.impl,
  26604. _props = fundamentalInstance.props,
  26605. state = fundamentalInstance.state;
  26606. var instance = impl.getInstance(null, _props, state);
  26607. precacheFiberNode(currentFiber, instance);
  26608. return instance;
  26609. }
  26610. // Because of the flag above, this gets around the Flow error;
  26611. return null;
  26612. }
  26613. function mountFundamentalComponent(fundamentalInstance) {
  26614. if (enableFundamentalAPI) {
  26615. var impl = fundamentalInstance.impl,
  26616. instance = fundamentalInstance.instance,
  26617. _props2 = fundamentalInstance.props,
  26618. state = fundamentalInstance.state;
  26619. var onMount = impl.onMount;
  26620. if (onMount !== undefined) {
  26621. onMount(null, instance, _props2, state);
  26622. }
  26623. }
  26624. }
  26625. function shouldUpdateFundamentalComponent(fundamentalInstance) {
  26626. if (enableFundamentalAPI) {
  26627. var impl = fundamentalInstance.impl,
  26628. prevProps = fundamentalInstance.prevProps,
  26629. _props3 = fundamentalInstance.props,
  26630. state = fundamentalInstance.state;
  26631. var shouldUpdate = impl.shouldUpdate;
  26632. if (shouldUpdate !== undefined) {
  26633. return shouldUpdate(null, prevProps, _props3, state);
  26634. }
  26635. }
  26636. return true;
  26637. }
  26638. function updateFundamentalComponent(fundamentalInstance) {
  26639. if (enableFundamentalAPI) {
  26640. var impl = fundamentalInstance.impl,
  26641. instance = fundamentalInstance.instance,
  26642. prevProps = fundamentalInstance.prevProps,
  26643. _props4 = fundamentalInstance.props,
  26644. state = fundamentalInstance.state;
  26645. var onUpdate = impl.onUpdate;
  26646. if (onUpdate !== undefined) {
  26647. onUpdate(null, instance, prevProps, _props4, state);
  26648. }
  26649. }
  26650. }
  26651. function unmountFundamentalComponent(fundamentalInstance) {
  26652. if (enableFundamentalAPI) {
  26653. var impl = fundamentalInstance.impl,
  26654. instance = fundamentalInstance.instance,
  26655. _props5 = fundamentalInstance.props,
  26656. state = fundamentalInstance.state;
  26657. var onUnmount = impl.onUnmount;
  26658. if (onUnmount !== undefined) {
  26659. onUnmount(null, instance, _props5, state);
  26660. }
  26661. }
  26662. }
  26663. // Prefix measurements so that it's possible to filter them.
  26664. // Longer prefixes are hard to read in DevTools.
  26665. var reactEmoji = '\u269B';
  26666. var warningEmoji = '\u26D4';
  26667. var supportsUserTiming = typeof performance !== 'undefined' && typeof performance.mark === 'function' && typeof performance.clearMarks === 'function' && typeof performance.measure === 'function' && typeof performance.clearMeasures === 'function';
  26668. // Keep track of current fiber so that we know the path to unwind on pause.
  26669. // TODO: this looks the same as nextUnitOfWork in scheduler. Can we unify them?
  26670. var currentFiber = null;
  26671. // If we're in the middle of user code, which fiber and method is it?
  26672. // Reusing `currentFiber` would be confusing for this because user code fiber
  26673. // can change during commit phase too, but we don't need to unwind it (since
  26674. // lifecycles in the commit phase don't resemble a tree).
  26675. var currentPhase = null;
  26676. var currentPhaseFiber = null;
  26677. // Did lifecycle hook schedule an update? This is often a performance problem,
  26678. // so we will keep track of it, and include it in the report.
  26679. // Track commits caused by cascading updates.
  26680. var isCommitting = false;
  26681. var hasScheduledUpdateInCurrentCommit = false;
  26682. var hasScheduledUpdateInCurrentPhase = false;
  26683. var commitCountInCurrentWorkLoop = 0;
  26684. var effectCountInCurrentCommit = 0;
  26685. var isWaitingForCallback = false;
  26686. // During commits, we only show a measurement once per method name
  26687. // to avoid stretch the commit phase with measurement overhead.
  26688. var labelsInCurrentCommit = new Set();
  26689. var formatMarkName = function (markName) {
  26690. return reactEmoji + ' ' + markName;
  26691. };
  26692. var formatLabel = function (label, warning) {
  26693. var prefix = warning ? warningEmoji + ' ' : reactEmoji + ' ';
  26694. var suffix = warning ? ' Warning: ' + warning : '';
  26695. return '' + prefix + label + suffix;
  26696. };
  26697. var beginMark = function (markName) {
  26698. performance.mark(formatMarkName(markName));
  26699. };
  26700. var clearMark = function (markName) {
  26701. performance.clearMarks(formatMarkName(markName));
  26702. };
  26703. var endMark = function (label, markName, warning) {
  26704. var formattedMarkName = formatMarkName(markName);
  26705. var formattedLabel = formatLabel(label, warning);
  26706. try {
  26707. performance.measure(formattedLabel, formattedMarkName);
  26708. } catch (err) {}
  26709. // If previous mark was missing for some reason, this will throw.
  26710. // This could only happen if React crashed in an unexpected place earlier.
  26711. // Don't pile on with more errors.
  26712. // Clear marks immediately to avoid growing buffer.
  26713. performance.clearMarks(formattedMarkName);
  26714. performance.clearMeasures(formattedLabel);
  26715. };
  26716. var getFiberMarkName = function (label, debugID) {
  26717. return label + ' (#' + debugID + ')';
  26718. };
  26719. var getFiberLabel = function (componentName, isMounted, phase) {
  26720. if (phase === null) {
  26721. // These are composite component total time measurements.
  26722. return componentName + ' [' + (isMounted ? 'update' : 'mount') + ']';
  26723. } else {
  26724. // Composite component methods.
  26725. return componentName + '.' + phase;
  26726. }
  26727. };
  26728. var beginFiberMark = function (fiber, phase) {
  26729. var componentName = getComponentName(fiber.type) || 'Unknown';
  26730. var debugID = fiber._debugID;
  26731. var isMounted = fiber.alternate !== null;
  26732. var label = getFiberLabel(componentName, isMounted, phase);
  26733. if (isCommitting && labelsInCurrentCommit.has(label)) {
  26734. // During the commit phase, we don't show duplicate labels because
  26735. // there is a fixed overhead for every measurement, and we don't
  26736. // want to stretch the commit phase beyond necessary.
  26737. return false;
  26738. }
  26739. labelsInCurrentCommit.add(label);
  26740. var markName = getFiberMarkName(label, debugID);
  26741. beginMark(markName);
  26742. return true;
  26743. };
  26744. var clearFiberMark = function (fiber, phase) {
  26745. var componentName = getComponentName(fiber.type) || 'Unknown';
  26746. var debugID = fiber._debugID;
  26747. var isMounted = fiber.alternate !== null;
  26748. var label = getFiberLabel(componentName, isMounted, phase);
  26749. var markName = getFiberMarkName(label, debugID);
  26750. clearMark(markName);
  26751. };
  26752. var endFiberMark = function (fiber, phase, warning) {
  26753. var componentName = getComponentName(fiber.type) || 'Unknown';
  26754. var debugID = fiber._debugID;
  26755. var isMounted = fiber.alternate !== null;
  26756. var label = getFiberLabel(componentName, isMounted, phase);
  26757. var markName = getFiberMarkName(label, debugID);
  26758. endMark(label, markName, warning);
  26759. };
  26760. var shouldIgnoreFiber = function (fiber) {
  26761. // Host components should be skipped in the timeline.
  26762. // We could check typeof fiber.type, but does this work with RN?
  26763. switch (fiber.tag) {
  26764. case HostRoot:
  26765. case HostComponent:
  26766. case HostText:
  26767. case HostPortal:
  26768. case Fragment:
  26769. case ContextProvider:
  26770. case ContextConsumer:
  26771. case Mode:
  26772. return true;
  26773. default:
  26774. return false;
  26775. }
  26776. };
  26777. var clearPendingPhaseMeasurement = function () {
  26778. if (currentPhase !== null && currentPhaseFiber !== null) {
  26779. clearFiberMark(currentPhaseFiber, currentPhase);
  26780. }
  26781. currentPhaseFiber = null;
  26782. currentPhase = null;
  26783. hasScheduledUpdateInCurrentPhase = false;
  26784. };
  26785. var pauseTimers = function () {
  26786. // Stops all currently active measurements so that they can be resumed
  26787. // if we continue in a later deferred loop from the same unit of work.
  26788. var fiber = currentFiber;
  26789. while (fiber) {
  26790. if (fiber._debugIsCurrentlyTiming) {
  26791. endFiberMark(fiber, null, null);
  26792. }
  26793. fiber = fiber.return;
  26794. }
  26795. };
  26796. var resumeTimersRecursively = function (fiber) {
  26797. if (fiber.return !== null) {
  26798. resumeTimersRecursively(fiber.return);
  26799. }
  26800. if (fiber._debugIsCurrentlyTiming) {
  26801. beginFiberMark(fiber, null);
  26802. }
  26803. };
  26804. var resumeTimers = function () {
  26805. // Resumes all measurements that were active during the last deferred loop.
  26806. if (currentFiber !== null) {
  26807. resumeTimersRecursively(currentFiber);
  26808. }
  26809. };
  26810. function recordEffect() {
  26811. if (enableUserTimingAPI) {
  26812. effectCountInCurrentCommit++;
  26813. }
  26814. }
  26815. function recordScheduleUpdate() {
  26816. if (enableUserTimingAPI) {
  26817. if (isCommitting) {
  26818. hasScheduledUpdateInCurrentCommit = true;
  26819. }
  26820. if (currentPhase !== null && currentPhase !== 'componentWillMount' && currentPhase !== 'componentWillReceiveProps') {
  26821. hasScheduledUpdateInCurrentPhase = true;
  26822. }
  26823. }
  26824. }
  26825. function startRequestCallbackTimer() {
  26826. if (enableUserTimingAPI) {
  26827. if (supportsUserTiming && !isWaitingForCallback) {
  26828. isWaitingForCallback = true;
  26829. beginMark('(Waiting for async callback...)');
  26830. }
  26831. }
  26832. }
  26833. function stopRequestCallbackTimer(didExpire) {
  26834. if (enableUserTimingAPI) {
  26835. if (supportsUserTiming) {
  26836. isWaitingForCallback = false;
  26837. var warning = didExpire ? 'Update expired; will flush synchronously' : null;
  26838. endMark('(Waiting for async callback...)', '(Waiting for async callback...)', warning);
  26839. }
  26840. }
  26841. }
  26842. function startWorkTimer(fiber) {
  26843. if (enableUserTimingAPI) {
  26844. if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
  26845. return;
  26846. }
  26847. // If we pause, this is the fiber to unwind from.
  26848. currentFiber = fiber;
  26849. if (!beginFiberMark(fiber, null)) {
  26850. return;
  26851. }
  26852. fiber._debugIsCurrentlyTiming = true;
  26853. }
  26854. }
  26855. function cancelWorkTimer(fiber) {
  26856. if (enableUserTimingAPI) {
  26857. if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
  26858. return;
  26859. }
  26860. // Remember we shouldn't complete measurement for this fiber.
  26861. // Otherwise flamechart will be deep even for small updates.
  26862. fiber._debugIsCurrentlyTiming = false;
  26863. clearFiberMark(fiber, null);
  26864. }
  26865. }
  26866. function stopWorkTimer(fiber) {
  26867. if (enableUserTimingAPI) {
  26868. if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
  26869. return;
  26870. }
  26871. // If we pause, its parent is the fiber to unwind from.
  26872. currentFiber = fiber.return;
  26873. if (!fiber._debugIsCurrentlyTiming) {
  26874. return;
  26875. }
  26876. fiber._debugIsCurrentlyTiming = false;
  26877. endFiberMark(fiber, null, null);
  26878. }
  26879. }
  26880. function stopFailedWorkTimer(fiber) {
  26881. if (enableUserTimingAPI) {
  26882. if (!supportsUserTiming || shouldIgnoreFiber(fiber)) {
  26883. return;
  26884. }
  26885. // If we pause, its parent is the fiber to unwind from.
  26886. currentFiber = fiber.return;
  26887. if (!fiber._debugIsCurrentlyTiming) {
  26888. return;
  26889. }
  26890. fiber._debugIsCurrentlyTiming = false;
  26891. var warning = fiber.tag === SuspenseComponent || fiber.tag === DehydratedSuspenseComponent ? 'Rendering was suspended' : 'An error was thrown inside this error boundary';
  26892. endFiberMark(fiber, null, warning);
  26893. }
  26894. }
  26895. function startPhaseTimer(fiber, phase) {
  26896. if (enableUserTimingAPI) {
  26897. if (!supportsUserTiming) {
  26898. return;
  26899. }
  26900. clearPendingPhaseMeasurement();
  26901. if (!beginFiberMark(fiber, phase)) {
  26902. return;
  26903. }
  26904. currentPhaseFiber = fiber;
  26905. currentPhase = phase;
  26906. }
  26907. }
  26908. function stopPhaseTimer() {
  26909. if (enableUserTimingAPI) {
  26910. if (!supportsUserTiming) {
  26911. return;
  26912. }
  26913. if (currentPhase !== null && currentPhaseFiber !== null) {
  26914. var warning = hasScheduledUpdateInCurrentPhase ? 'Scheduled a cascading update' : null;
  26915. endFiberMark(currentPhaseFiber, currentPhase, warning);
  26916. }
  26917. currentPhase = null;
  26918. currentPhaseFiber = null;
  26919. }
  26920. }
  26921. function startWorkLoopTimer(nextUnitOfWork) {
  26922. if (enableUserTimingAPI) {
  26923. currentFiber = nextUnitOfWork;
  26924. if (!supportsUserTiming) {
  26925. return;
  26926. }
  26927. commitCountInCurrentWorkLoop = 0;
  26928. // This is top level call.
  26929. // Any other measurements are performed within.
  26930. beginMark('(React Tree Reconciliation)');
  26931. // Resume any measurements that were in progress during the last loop.
  26932. resumeTimers();
  26933. }
  26934. }
  26935. function stopWorkLoopTimer(interruptedBy, didCompleteRoot) {
  26936. if (enableUserTimingAPI) {
  26937. if (!supportsUserTiming) {
  26938. return;
  26939. }
  26940. var warning = null;
  26941. if (interruptedBy !== null) {
  26942. if (interruptedBy.tag === HostRoot) {
  26943. warning = 'A top-level update interrupted the previous render';
  26944. } else {
  26945. var componentName = getComponentName(interruptedBy.type) || 'Unknown';
  26946. warning = 'An update to ' + componentName + ' interrupted the previous render';
  26947. }
  26948. } else if (commitCountInCurrentWorkLoop > 1) {
  26949. warning = 'There were cascading updates';
  26950. }
  26951. commitCountInCurrentWorkLoop = 0;
  26952. var label = didCompleteRoot ? '(React Tree Reconciliation: Completed Root)' : '(React Tree Reconciliation: Yielded)';
  26953. // Pause any measurements until the next loop.
  26954. pauseTimers();
  26955. endMark(label, '(React Tree Reconciliation)', warning);
  26956. }
  26957. }
  26958. function startCommitTimer() {
  26959. if (enableUserTimingAPI) {
  26960. if (!supportsUserTiming) {
  26961. return;
  26962. }
  26963. isCommitting = true;
  26964. hasScheduledUpdateInCurrentCommit = false;
  26965. labelsInCurrentCommit.clear();
  26966. beginMark('(Committing Changes)');
  26967. }
  26968. }
  26969. function stopCommitTimer() {
  26970. if (enableUserTimingAPI) {
  26971. if (!supportsUserTiming) {
  26972. return;
  26973. }
  26974. var warning = null;
  26975. if (hasScheduledUpdateInCurrentCommit) {
  26976. warning = 'Lifecycle hook scheduled a cascading update';
  26977. } else if (commitCountInCurrentWorkLoop > 0) {
  26978. warning = 'Caused by a cascading update in earlier commit';
  26979. }
  26980. hasScheduledUpdateInCurrentCommit = false;
  26981. commitCountInCurrentWorkLoop++;
  26982. isCommitting = false;
  26983. labelsInCurrentCommit.clear();
  26984. endMark('(Committing Changes)', '(Committing Changes)', warning);
  26985. }
  26986. }
  26987. function startCommitSnapshotEffectsTimer() {
  26988. if (enableUserTimingAPI) {
  26989. if (!supportsUserTiming) {
  26990. return;
  26991. }
  26992. effectCountInCurrentCommit = 0;
  26993. beginMark('(Committing Snapshot Effects)');
  26994. }
  26995. }
  26996. function stopCommitSnapshotEffectsTimer() {
  26997. if (enableUserTimingAPI) {
  26998. if (!supportsUserTiming) {
  26999. return;
  27000. }
  27001. var count = effectCountInCurrentCommit;
  27002. effectCountInCurrentCommit = 0;
  27003. endMark('(Committing Snapshot Effects: ' + count + ' Total)', '(Committing Snapshot Effects)', null);
  27004. }
  27005. }
  27006. function startCommitHostEffectsTimer() {
  27007. if (enableUserTimingAPI) {
  27008. if (!supportsUserTiming) {
  27009. return;
  27010. }
  27011. effectCountInCurrentCommit = 0;
  27012. beginMark('(Committing Host Effects)');
  27013. }
  27014. }
  27015. function stopCommitHostEffectsTimer() {
  27016. if (enableUserTimingAPI) {
  27017. if (!supportsUserTiming) {
  27018. return;
  27019. }
  27020. var count = effectCountInCurrentCommit;
  27021. effectCountInCurrentCommit = 0;
  27022. endMark('(Committing Host Effects: ' + count + ' Total)', '(Committing Host Effects)', null);
  27023. }
  27024. }
  27025. function startCommitLifeCyclesTimer() {
  27026. if (enableUserTimingAPI) {
  27027. if (!supportsUserTiming) {
  27028. return;
  27029. }
  27030. effectCountInCurrentCommit = 0;
  27031. beginMark('(Calling Lifecycle Methods)');
  27032. }
  27033. }
  27034. function stopCommitLifeCyclesTimer() {
  27035. if (enableUserTimingAPI) {
  27036. if (!supportsUserTiming) {
  27037. return;
  27038. }
  27039. var count = effectCountInCurrentCommit;
  27040. effectCountInCurrentCommit = 0;
  27041. endMark('(Calling Lifecycle Methods: ' + count + ' Total)', '(Calling Lifecycle Methods)', null);
  27042. }
  27043. }
  27044. var valueStack = [];
  27045. var fiberStack = void 0;
  27046. {
  27047. fiberStack = [];
  27048. }
  27049. var index = -1;
  27050. function createCursor(defaultValue) {
  27051. return {
  27052. current: defaultValue
  27053. };
  27054. }
  27055. function pop(cursor, fiber) {
  27056. if (index < 0) {
  27057. {
  27058. warningWithoutStack$1(false, 'Unexpected pop.');
  27059. }
  27060. return;
  27061. }
  27062. {
  27063. if (fiber !== fiberStack[index]) {
  27064. warningWithoutStack$1(false, 'Unexpected Fiber popped.');
  27065. }
  27066. }
  27067. cursor.current = valueStack[index];
  27068. valueStack[index] = null;
  27069. {
  27070. fiberStack[index] = null;
  27071. }
  27072. index--;
  27073. }
  27074. function push(cursor, value, fiber) {
  27075. index++;
  27076. valueStack[index] = cursor.current;
  27077. {
  27078. fiberStack[index] = fiber;
  27079. }
  27080. cursor.current = value;
  27081. }
  27082. var warnedAboutMissingGetChildContext = void 0;
  27083. {
  27084. warnedAboutMissingGetChildContext = {};
  27085. }
  27086. var emptyContextObject = {};
  27087. {
  27088. Object.freeze(emptyContextObject);
  27089. }
  27090. // A cursor to the current merged context object on the stack.
  27091. var contextStackCursor = createCursor(emptyContextObject);
  27092. // A cursor to a boolean indicating whether the context has changed.
  27093. var didPerformWorkStackCursor = createCursor(false);
  27094. // Keep track of the previous context object that was on the stack.
  27095. // We use this to get access to the parent context after we have already
  27096. // pushed the next context provider, and now need to merge their contexts.
  27097. var previousContext = emptyContextObject;
  27098. function getUnmaskedContext(workInProgress, Component, didPushOwnContextIfProvider) {
  27099. if (disableLegacyContext) {
  27100. return emptyContextObject;
  27101. } else {
  27102. if (didPushOwnContextIfProvider && isContextProvider(Component)) {
  27103. // If the fiber is a context provider itself, when we read its context
  27104. // we may have already pushed its own child context on the stack. A context
  27105. // provider should not "see" its own child context. Therefore we read the
  27106. // previous (parent) context instead for a context provider.
  27107. return previousContext;
  27108. }
  27109. return contextStackCursor.current;
  27110. }
  27111. }
  27112. function cacheContext(workInProgress, unmaskedContext, maskedContext) {
  27113. if (disableLegacyContext) {
  27114. return;
  27115. } else {
  27116. var instance = workInProgress.stateNode;
  27117. instance.__reactInternalMemoizedUnmaskedChildContext = unmaskedContext;
  27118. instance.__reactInternalMemoizedMaskedChildContext = maskedContext;
  27119. }
  27120. }
  27121. function getMaskedContext(workInProgress, unmaskedContext) {
  27122. if (disableLegacyContext) {
  27123. return emptyContextObject;
  27124. } else {
  27125. var type = workInProgress.type;
  27126. var contextTypes = type.contextTypes;
  27127. if (!contextTypes) {
  27128. return emptyContextObject;
  27129. }
  27130. // Avoid recreating masked context unless unmasked context has changed.
  27131. // Failing to do this will result in unnecessary calls to componentWillReceiveProps.
  27132. // This may trigger infinite loops if componentWillReceiveProps calls setState.
  27133. var instance = workInProgress.stateNode;
  27134. if (instance && instance.__reactInternalMemoizedUnmaskedChildContext === unmaskedContext) {
  27135. return instance.__reactInternalMemoizedMaskedChildContext;
  27136. }
  27137. var context = {};
  27138. for (var key in contextTypes) {
  27139. context[key] = unmaskedContext[key];
  27140. }
  27141. {
  27142. var name = getComponentName(type) || 'Unknown';
  27143. checkPropTypes(contextTypes, context, 'context', name, getCurrentFiberStackInDev);
  27144. }
  27145. // Cache unmasked context so we can avoid recreating masked context unless necessary.
  27146. // Context is created before the class component is instantiated so check for instance.
  27147. if (instance) {
  27148. cacheContext(workInProgress, unmaskedContext, context);
  27149. }
  27150. return context;
  27151. }
  27152. }
  27153. function hasContextChanged() {
  27154. if (disableLegacyContext) {
  27155. return false;
  27156. } else {
  27157. return didPerformWorkStackCursor.current;
  27158. }
  27159. }
  27160. function isContextProvider(type) {
  27161. if (disableLegacyContext) {
  27162. return false;
  27163. } else {
  27164. var childContextTypes = type.childContextTypes;
  27165. return childContextTypes !== null && childContextTypes !== undefined;
  27166. }
  27167. }
  27168. function popContext(fiber) {
  27169. if (disableLegacyContext) {
  27170. return;
  27171. } else {
  27172. pop(didPerformWorkStackCursor, fiber);
  27173. pop(contextStackCursor, fiber);
  27174. }
  27175. }
  27176. function popTopLevelContextObject(fiber) {
  27177. if (disableLegacyContext) {
  27178. return;
  27179. } else {
  27180. pop(didPerformWorkStackCursor, fiber);
  27181. pop(contextStackCursor, fiber);
  27182. }
  27183. }
  27184. function pushTopLevelContextObject(fiber, context, didChange) {
  27185. if (disableLegacyContext) {
  27186. return;
  27187. } else {
  27188. (function () {
  27189. if (!(contextStackCursor.current === emptyContextObject)) {
  27190. {
  27191. throw ReactError(Error('Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.'));
  27192. }
  27193. }
  27194. })();
  27195. push(contextStackCursor, context, fiber);
  27196. push(didPerformWorkStackCursor, didChange, fiber);
  27197. }
  27198. }
  27199. function processChildContext(fiber, type, parentContext) {
  27200. if (disableLegacyContext) {
  27201. return parentContext;
  27202. } else {
  27203. var instance = fiber.stateNode;
  27204. var childContextTypes = type.childContextTypes;
  27205. // TODO (bvaughn) Replace this behavior with an invariant() in the future.
  27206. // It has only been added in Fiber to match the (unintentional) behavior in Stack.
  27207. if (typeof instance.getChildContext !== 'function') {
  27208. {
  27209. var componentName = getComponentName(type) || 'Unknown';
  27210. if (!warnedAboutMissingGetChildContext[componentName]) {
  27211. warnedAboutMissingGetChildContext[componentName] = true;
  27212. warningWithoutStack$1(false, '%s.childContextTypes is specified but there is no getChildContext() method ' + 'on the instance. You can either define getChildContext() on %s or remove ' + 'childContextTypes from it.', componentName, componentName);
  27213. }
  27214. }
  27215. return parentContext;
  27216. }
  27217. var childContext = void 0;
  27218. {
  27219. setCurrentPhase('getChildContext');
  27220. }
  27221. startPhaseTimer(fiber, 'getChildContext');
  27222. childContext = instance.getChildContext();
  27223. stopPhaseTimer();
  27224. {
  27225. setCurrentPhase(null);
  27226. }
  27227. for (var contextKey in childContext) {
  27228. (function () {
  27229. if (!(contextKey in childContextTypes)) {
  27230. {
  27231. throw ReactError(Error((getComponentName(type) || 'Unknown') + '.getChildContext(): key "' + contextKey + '" is not defined in childContextTypes.'));
  27232. }
  27233. }
  27234. })();
  27235. }
  27236. {
  27237. var name = getComponentName(type) || 'Unknown';
  27238. checkPropTypes(childContextTypes, childContext, 'child context', name,
  27239. // In practice, there is one case in which we won't get a stack. It's when
  27240. // somebody calls unstable_renderSubtreeIntoContainer() and we process
  27241. // context from the parent component instance. The stack will be missing
  27242. // because it's outside of the reconciliation, and so the pointer has not
  27243. // been set. This is rare and doesn't matter. We'll also remove that API.
  27244. getCurrentFiberStackInDev);
  27245. }
  27246. return _assign({}, parentContext, childContext);
  27247. }
  27248. }
  27249. function pushContextProvider(workInProgress) {
  27250. if (disableLegacyContext) {
  27251. return false;
  27252. } else {
  27253. var instance = workInProgress.stateNode;
  27254. // We push the context as early as possible to ensure stack integrity.
  27255. // If the instance does not exist yet, we will push null at first,
  27256. // and replace it on the stack later when invalidating the context.
  27257. var memoizedMergedChildContext = instance && instance.__reactInternalMemoizedMergedChildContext || emptyContextObject;
  27258. // Remember the parent context so we can merge with it later.
  27259. // Inherit the parent's did-perform-work value to avoid inadvertently blocking updates.
  27260. previousContext = contextStackCursor.current;
  27261. push(contextStackCursor, memoizedMergedChildContext, workInProgress);
  27262. push(didPerformWorkStackCursor, didPerformWorkStackCursor.current, workInProgress);
  27263. return true;
  27264. }
  27265. }
  27266. function invalidateContextProvider(workInProgress, type, didChange) {
  27267. if (disableLegacyContext) {
  27268. return;
  27269. } else {
  27270. var instance = workInProgress.stateNode;
  27271. (function () {
  27272. if (!instance) {
  27273. {
  27274. throw ReactError(Error('Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.'));
  27275. }
  27276. }
  27277. })();
  27278. if (didChange) {
  27279. // Merge parent and own context.
  27280. // Skip this if we're not updating due to sCU.
  27281. // This avoids unnecessarily recomputing memoized values.
  27282. var mergedContext = processChildContext(workInProgress, type, previousContext);
  27283. instance.__reactInternalMemoizedMergedChildContext = mergedContext;
  27284. // Replace the old (or empty) context with the new one.
  27285. // It is important to unwind the context in the reverse order.
  27286. pop(didPerformWorkStackCursor, workInProgress);
  27287. pop(contextStackCursor, workInProgress);
  27288. // Now push the new context and mark that it has changed.
  27289. push(contextStackCursor, mergedContext, workInProgress);
  27290. push(didPerformWorkStackCursor, didChange, workInProgress);
  27291. } else {
  27292. pop(didPerformWorkStackCursor, workInProgress);
  27293. push(didPerformWorkStackCursor, didChange, workInProgress);
  27294. }
  27295. }
  27296. }
  27297. function findCurrentUnmaskedContext(fiber) {
  27298. if (disableLegacyContext) {
  27299. return emptyContextObject;
  27300. } else {
  27301. // Currently this is only used with renderSubtreeIntoContainer; not sure if it
  27302. // makes sense elsewhere
  27303. (function () {
  27304. if (!(isFiberMounted(fiber) && fiber.tag === ClassComponent)) {
  27305. {
  27306. throw ReactError(Error('Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.'));
  27307. }
  27308. }
  27309. })();
  27310. var node = fiber;
  27311. do {
  27312. switch (node.tag) {
  27313. case HostRoot:
  27314. return node.stateNode.context;
  27315. case ClassComponent:
  27316. {
  27317. var Component = node.type;
  27318. if (isContextProvider(Component)) {
  27319. return node.stateNode.__reactInternalMemoizedMergedChildContext;
  27320. }
  27321. break;
  27322. }
  27323. }
  27324. node = node.return;
  27325. } while (node !== null);
  27326. (function () {
  27327. {
  27328. {
  27329. throw ReactError(Error('Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.'));
  27330. }
  27331. }
  27332. })();
  27333. }
  27334. }
  27335. var LegacyRoot = 0;
  27336. var BatchedRoot = 1;
  27337. var ConcurrentRoot = 2;
  27338. // Intentionally not named imports because Rollup would use dynamic dispatch for
  27339. // CommonJS interop named imports.
  27340. var Scheduler_runWithPriority = Scheduler.unstable_runWithPriority;
  27341. var Scheduler_scheduleCallback = Scheduler.unstable_scheduleCallback;
  27342. var Scheduler_cancelCallback = Scheduler.unstable_cancelCallback;
  27343. var Scheduler_shouldYield = Scheduler.unstable_shouldYield;
  27344. var Scheduler_requestPaint = Scheduler.unstable_requestPaint;
  27345. var Scheduler_now = Scheduler.unstable_now;
  27346. var Scheduler_getCurrentPriorityLevel = Scheduler.unstable_getCurrentPriorityLevel;
  27347. var Scheduler_ImmediatePriority = Scheduler.unstable_ImmediatePriority;
  27348. var Scheduler_UserBlockingPriority = Scheduler.unstable_UserBlockingPriority;
  27349. var Scheduler_NormalPriority = Scheduler.unstable_NormalPriority;
  27350. var Scheduler_LowPriority = Scheduler.unstable_LowPriority;
  27351. var Scheduler_IdlePriority = Scheduler.unstable_IdlePriority;
  27352. if (enableSchedulerTracing) {
  27353. // Provide explicit error message when production+profiling bundle of e.g.
  27354. // react-dom is used with production (non-profiling) bundle of
  27355. // scheduler/tracing
  27356. (function () {
  27357. if (!(tracing.__interactionsRef != null && tracing.__interactionsRef.current != null)) {
  27358. {
  27359. throw ReactError(Error('It is not supported to run the profiling version of a renderer (for example, `react-dom/profiling`) without also replacing the `scheduler/tracing` module with `scheduler/tracing-profiling`. Your bundler might have a setting for aliasing both modules. Learn more at http://fb.me/react-profiling'));
  27360. }
  27361. }
  27362. })();
  27363. }
  27364. var fakeCallbackNode = {};
  27365. // Except for NoPriority, these correspond to Scheduler priorities. We use
  27366. // ascending numbers so we can compare them like numbers. They start at 90 to
  27367. // avoid clashing with Scheduler's priorities.
  27368. var ImmediatePriority = 99;
  27369. var UserBlockingPriority$2 = 98;
  27370. var NormalPriority = 97;
  27371. var LowPriority = 96;
  27372. var IdlePriority = 95;
  27373. // NoPriority is the absence of priority. Also React-only.
  27374. var NoPriority = 90;
  27375. var shouldYield = Scheduler_shouldYield;
  27376. var requestPaint =
  27377. // Fall back gracefully if we're running an older version of Scheduler.
  27378. Scheduler_requestPaint !== undefined ? Scheduler_requestPaint : function () {};
  27379. var syncQueue = null;
  27380. var immediateQueueCallbackNode = null;
  27381. var isFlushingSyncQueue = false;
  27382. var initialTimeMs = Scheduler_now();
  27383. // If the initial timestamp is reasonably small, use Scheduler's `now` directly.
  27384. // This will be the case for modern browsers that support `performance.now`. In
  27385. // older browsers, Scheduler falls back to `Date.now`, which returns a Unix
  27386. // timestamp. In that case, subtract the module initialization time to simulate
  27387. // the behavior of performance.now and keep our times small enough to fit
  27388. // within 32 bits.
  27389. // TODO: Consider lifting this into Scheduler.
  27390. var now = initialTimeMs < 10000 ? Scheduler_now : function () {
  27391. return Scheduler_now() - initialTimeMs;
  27392. };
  27393. function getCurrentPriorityLevel() {
  27394. switch (Scheduler_getCurrentPriorityLevel()) {
  27395. case Scheduler_ImmediatePriority:
  27396. return ImmediatePriority;
  27397. case Scheduler_UserBlockingPriority:
  27398. return UserBlockingPriority$2;
  27399. case Scheduler_NormalPriority:
  27400. return NormalPriority;
  27401. case Scheduler_LowPriority:
  27402. return LowPriority;
  27403. case Scheduler_IdlePriority:
  27404. return IdlePriority;
  27405. default:
  27406. (function () {
  27407. {
  27408. {
  27409. throw ReactError(Error('Unknown priority level.'));
  27410. }
  27411. }
  27412. })();
  27413. }
  27414. }
  27415. function reactPriorityToSchedulerPriority(reactPriorityLevel) {
  27416. switch (reactPriorityLevel) {
  27417. case ImmediatePriority:
  27418. return Scheduler_ImmediatePriority;
  27419. case UserBlockingPriority$2:
  27420. return Scheduler_UserBlockingPriority;
  27421. case NormalPriority:
  27422. return Scheduler_NormalPriority;
  27423. case LowPriority:
  27424. return Scheduler_LowPriority;
  27425. case IdlePriority:
  27426. return Scheduler_IdlePriority;
  27427. default:
  27428. (function () {
  27429. {
  27430. {
  27431. throw ReactError(Error('Unknown priority level.'));
  27432. }
  27433. }
  27434. })();
  27435. }
  27436. }
  27437. function runWithPriority$2(reactPriorityLevel, fn) {
  27438. var priorityLevel = reactPriorityToSchedulerPriority(reactPriorityLevel);
  27439. return Scheduler_runWithPriority(priorityLevel, fn);
  27440. }
  27441. function scheduleCallback(reactPriorityLevel, callback, options) {
  27442. var priorityLevel = reactPriorityToSchedulerPriority(reactPriorityLevel);
  27443. return Scheduler_scheduleCallback(priorityLevel, callback, options);
  27444. }
  27445. function scheduleSyncCallback(callback) {
  27446. // Push this callback into an internal queue. We'll flush these either in
  27447. // the next tick, or earlier if something calls `flushSyncCallbackQueue`.
  27448. if (syncQueue === null) {
  27449. syncQueue = [callback];
  27450. // Flush the queue in the next tick, at the earliest.
  27451. immediateQueueCallbackNode = Scheduler_scheduleCallback(Scheduler_ImmediatePriority, flushSyncCallbackQueueImpl);
  27452. } else {
  27453. // Push onto existing queue. Don't need to schedule a callback because
  27454. // we already scheduled one when we created the queue.
  27455. syncQueue.push(callback);
  27456. }
  27457. return fakeCallbackNode;
  27458. }
  27459. function cancelCallback(callbackNode) {
  27460. if (callbackNode !== fakeCallbackNode) {
  27461. Scheduler_cancelCallback(callbackNode);
  27462. }
  27463. }
  27464. function flushSyncCallbackQueue() {
  27465. if (immediateQueueCallbackNode !== null) {
  27466. Scheduler_cancelCallback(immediateQueueCallbackNode);
  27467. }
  27468. flushSyncCallbackQueueImpl();
  27469. }
  27470. function flushSyncCallbackQueueImpl() {
  27471. if (!isFlushingSyncQueue && syncQueue !== null) {
  27472. // Prevent re-entrancy.
  27473. isFlushingSyncQueue = true;
  27474. var i = 0;
  27475. try {
  27476. var _isSync = true;
  27477. var queue = syncQueue;
  27478. runWithPriority$2(ImmediatePriority, function () {
  27479. for (; i < queue.length; i++) {
  27480. var callback = queue[i];
  27481. do {
  27482. callback = callback(_isSync);
  27483. } while (callback !== null);
  27484. }
  27485. });
  27486. syncQueue = null;
  27487. } catch (error) {
  27488. // If something throws, leave the remaining callbacks on the queue.
  27489. if (syncQueue !== null) {
  27490. syncQueue = syncQueue.slice(i + 1);
  27491. }
  27492. // Resume flushing in the next tick
  27493. Scheduler_scheduleCallback(Scheduler_ImmediatePriority, flushSyncCallbackQueue);
  27494. throw error;
  27495. } finally {
  27496. isFlushingSyncQueue = false;
  27497. }
  27498. }
  27499. }
  27500. var NoMode = 0;
  27501. var StrictMode = 1;
  27502. // TODO: Remove BatchedMode and ConcurrentMode by reading from the root
  27503. // tag instead
  27504. var BatchedMode = 2;
  27505. var ConcurrentMode = 4;
  27506. var ProfileMode = 8;
  27507. // Max 31 bit integer. The max integer size in V8 for 32-bit systems.
  27508. // Math.pow(2, 30) - 1
  27509. // 0b111111111111111111111111111111
  27510. var MAX_SIGNED_31_BIT_INT = 1073741823;
  27511. var NoWork = 0;
  27512. var Never = 1;
  27513. var Sync = MAX_SIGNED_31_BIT_INT;
  27514. var Batched = Sync - 1;
  27515. var UNIT_SIZE = 10;
  27516. var MAGIC_NUMBER_OFFSET = Batched - 1;
  27517. // 1 unit of expiration time represents 10ms.
  27518. function msToExpirationTime(ms) {
  27519. // Always add an offset so that we don't clash with the magic number for NoWork.
  27520. return MAGIC_NUMBER_OFFSET - (ms / UNIT_SIZE | 0);
  27521. }
  27522. function expirationTimeToMs(expirationTime) {
  27523. return (MAGIC_NUMBER_OFFSET - expirationTime) * UNIT_SIZE;
  27524. }
  27525. function ceiling(num, precision) {
  27526. return ((num / precision | 0) + 1) * precision;
  27527. }
  27528. function computeExpirationBucket(currentTime, expirationInMs, bucketSizeMs) {
  27529. return MAGIC_NUMBER_OFFSET - ceiling(MAGIC_NUMBER_OFFSET - currentTime + expirationInMs / UNIT_SIZE, bucketSizeMs / UNIT_SIZE);
  27530. }
  27531. // TODO: This corresponds to Scheduler's NormalPriority, not LowPriority. Update
  27532. // the names to reflect.
  27533. var LOW_PRIORITY_EXPIRATION = 5000;
  27534. var LOW_PRIORITY_BATCH_SIZE = 250;
  27535. function computeAsyncExpiration(currentTime) {
  27536. return computeExpirationBucket(currentTime, LOW_PRIORITY_EXPIRATION, LOW_PRIORITY_BATCH_SIZE);
  27537. }
  27538. function computeSuspenseExpiration(currentTime, timeoutMs) {
  27539. // TODO: Should we warn if timeoutMs is lower than the normal pri expiration time?
  27540. return computeExpirationBucket(currentTime, timeoutMs, LOW_PRIORITY_BATCH_SIZE);
  27541. }
  27542. // We intentionally set a higher expiration time for interactive updates in
  27543. // dev than in production.
  27544. //
  27545. // If the main thread is being blocked so long that you hit the expiration,
  27546. // it's a problem that could be solved with better scheduling.
  27547. //
  27548. // People will be more likely to notice this and fix it with the long
  27549. // expiration time in development.
  27550. //
  27551. // In production we opt for better UX at the risk of masking scheduling
  27552. // problems, by expiring fast.
  27553. var HIGH_PRIORITY_EXPIRATION = 500;
  27554. var HIGH_PRIORITY_BATCH_SIZE = 100;
  27555. function computeInteractiveExpiration(currentTime) {
  27556. return computeExpirationBucket(currentTime, HIGH_PRIORITY_EXPIRATION, HIGH_PRIORITY_BATCH_SIZE);
  27557. }
  27558. function inferPriorityFromExpirationTime(currentTime, expirationTime) {
  27559. if (expirationTime === Sync) {
  27560. return ImmediatePriority;
  27561. }
  27562. if (expirationTime === Never) {
  27563. return IdlePriority;
  27564. }
  27565. var msUntil = expirationTimeToMs(expirationTime) - expirationTimeToMs(currentTime);
  27566. if (msUntil <= 0) {
  27567. return ImmediatePriority;
  27568. }
  27569. if (msUntil <= HIGH_PRIORITY_EXPIRATION + HIGH_PRIORITY_BATCH_SIZE) {
  27570. return UserBlockingPriority$2;
  27571. }
  27572. if (msUntil <= LOW_PRIORITY_EXPIRATION + LOW_PRIORITY_BATCH_SIZE) {
  27573. return NormalPriority;
  27574. }
  27575. // TODO: Handle LowPriority
  27576. // Assume anything lower has idle priority
  27577. return IdlePriority;
  27578. }
  27579. /**
  27580. * Forked from fbjs/warning:
  27581. * https://github.com/facebook/fbjs/blob/e66ba20ad5be433eb54423f2b097d829324d9de6/packages/fbjs/src/__forks__/warning.js
  27582. *
  27583. * Only change is we use console.warn instead of console.error,
  27584. * and do nothing when 'console' is not supported.
  27585. * This really simplifies the code.
  27586. * ---
  27587. * Similar to invariant but only logs a warning if the condition is not met.
  27588. * This can be used to log issues in development environments in critical
  27589. * paths. Removing the logging code for production environments will keep the
  27590. * same logic and follow the same code paths.
  27591. */
  27592. var lowPriorityWarning = function () {};
  27593. {
  27594. var printWarning = function (format) {
  27595. for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
  27596. args[_key - 1] = arguments[_key];
  27597. }
  27598. var argIndex = 0;
  27599. var message = 'Warning: ' + format.replace(/%s/g, function () {
  27600. return args[argIndex++];
  27601. });
  27602. if (typeof console !== 'undefined') {
  27603. console.warn(message);
  27604. }
  27605. try {
  27606. // --- Welcome to debugging React ---
  27607. // This error was thrown as a convenience so that you can use this stack
  27608. // to find the callsite that caused this warning to fire.
  27609. throw new Error(message);
  27610. } catch (x) {}
  27611. };
  27612. lowPriorityWarning = function (condition, format) {
  27613. if (format === undefined) {
  27614. throw new Error('`lowPriorityWarning(condition, format, ...args)` requires a warning ' + 'message argument');
  27615. }
  27616. if (!condition) {
  27617. for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
  27618. args[_key2 - 2] = arguments[_key2];
  27619. }
  27620. printWarning.apply(undefined, [format].concat(args));
  27621. }
  27622. };
  27623. }
  27624. var lowPriorityWarning$1 = lowPriorityWarning;
  27625. var ReactStrictModeWarnings = {
  27626. recordUnsafeLifecycleWarnings: function (fiber, instance) {},
  27627. flushPendingUnsafeLifecycleWarnings: function () {},
  27628. recordLegacyContextWarning: function (fiber, instance) {},
  27629. flushLegacyContextWarning: function () {},
  27630. discardPendingWarnings: function () {}
  27631. };
  27632. {
  27633. var findStrictRoot = function (fiber) {
  27634. var maybeStrictRoot = null;
  27635. var node = fiber;
  27636. while (node !== null) {
  27637. if (node.mode & StrictMode) {
  27638. maybeStrictRoot = node;
  27639. }
  27640. node = node.return;
  27641. }
  27642. return maybeStrictRoot;
  27643. };
  27644. var setToSortedString = function (set) {
  27645. var array = [];
  27646. set.forEach(function (value) {
  27647. array.push(value);
  27648. });
  27649. return array.sort().join(', ');
  27650. };
  27651. var pendingComponentWillMountWarnings = [];
  27652. var pendingUNSAFE_ComponentWillMountWarnings = [];
  27653. var pendingComponentWillReceivePropsWarnings = [];
  27654. var pendingUNSAFE_ComponentWillReceivePropsWarnings = [];
  27655. var pendingComponentWillUpdateWarnings = [];
  27656. var pendingUNSAFE_ComponentWillUpdateWarnings = [];
  27657. // Tracks components we have already warned about.
  27658. var didWarnAboutUnsafeLifecycles = new Set();
  27659. ReactStrictModeWarnings.recordUnsafeLifecycleWarnings = function (fiber, instance) {
  27660. // Dedup strategy: Warn once per component.
  27661. if (didWarnAboutUnsafeLifecycles.has(fiber.type)) {
  27662. return;
  27663. }
  27664. if (typeof instance.componentWillMount === 'function' &&
  27665. // Don't warn about react-lifecycles-compat polyfilled components.
  27666. instance.componentWillMount.__suppressDeprecationWarning !== true) {
  27667. pendingComponentWillMountWarnings.push(fiber);
  27668. }
  27669. if (fiber.mode & StrictMode && typeof instance.UNSAFE_componentWillMount === 'function') {
  27670. pendingUNSAFE_ComponentWillMountWarnings.push(fiber);
  27671. }
  27672. if (typeof instance.componentWillReceiveProps === 'function' && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true) {
  27673. pendingComponentWillReceivePropsWarnings.push(fiber);
  27674. }
  27675. if (fiber.mode & StrictMode && typeof instance.UNSAFE_componentWillReceiveProps === 'function') {
  27676. pendingUNSAFE_ComponentWillReceivePropsWarnings.push(fiber);
  27677. }
  27678. if (typeof instance.componentWillUpdate === 'function' && instance.componentWillUpdate.__suppressDeprecationWarning !== true) {
  27679. pendingComponentWillUpdateWarnings.push(fiber);
  27680. }
  27681. if (fiber.mode & StrictMode && typeof instance.UNSAFE_componentWillUpdate === 'function') {
  27682. pendingUNSAFE_ComponentWillUpdateWarnings.push(fiber);
  27683. }
  27684. };
  27685. ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings = function () {
  27686. // We do an initial pass to gather component names
  27687. var componentWillMountUniqueNames = new Set();
  27688. if (pendingComponentWillMountWarnings.length > 0) {
  27689. pendingComponentWillMountWarnings.forEach(function (fiber) {
  27690. componentWillMountUniqueNames.add(getComponentName(fiber.type) || 'Component');
  27691. didWarnAboutUnsafeLifecycles.add(fiber.type);
  27692. });
  27693. pendingComponentWillMountWarnings = [];
  27694. }
  27695. var UNSAFE_componentWillMountUniqueNames = new Set();
  27696. if (pendingUNSAFE_ComponentWillMountWarnings.length > 0) {
  27697. pendingUNSAFE_ComponentWillMountWarnings.forEach(function (fiber) {
  27698. UNSAFE_componentWillMountUniqueNames.add(getComponentName(fiber.type) || 'Component');
  27699. didWarnAboutUnsafeLifecycles.add(fiber.type);
  27700. });
  27701. pendingUNSAFE_ComponentWillMountWarnings = [];
  27702. }
  27703. var componentWillReceivePropsUniqueNames = new Set();
  27704. if (pendingComponentWillReceivePropsWarnings.length > 0) {
  27705. pendingComponentWillReceivePropsWarnings.forEach(function (fiber) {
  27706. componentWillReceivePropsUniqueNames.add(getComponentName(fiber.type) || 'Component');
  27707. didWarnAboutUnsafeLifecycles.add(fiber.type);
  27708. });
  27709. pendingComponentWillReceivePropsWarnings = [];
  27710. }
  27711. var UNSAFE_componentWillReceivePropsUniqueNames = new Set();
  27712. if (pendingUNSAFE_ComponentWillReceivePropsWarnings.length > 0) {
  27713. pendingUNSAFE_ComponentWillReceivePropsWarnings.forEach(function (fiber) {
  27714. UNSAFE_componentWillReceivePropsUniqueNames.add(getComponentName(fiber.type) || 'Component');
  27715. didWarnAboutUnsafeLifecycles.add(fiber.type);
  27716. });
  27717. pendingUNSAFE_ComponentWillReceivePropsWarnings = [];
  27718. }
  27719. var componentWillUpdateUniqueNames = new Set();
  27720. if (pendingComponentWillUpdateWarnings.length > 0) {
  27721. pendingComponentWillUpdateWarnings.forEach(function (fiber) {
  27722. componentWillUpdateUniqueNames.add(getComponentName(fiber.type) || 'Component');
  27723. didWarnAboutUnsafeLifecycles.add(fiber.type);
  27724. });
  27725. pendingComponentWillUpdateWarnings = [];
  27726. }
  27727. var UNSAFE_componentWillUpdateUniqueNames = new Set();
  27728. if (pendingUNSAFE_ComponentWillUpdateWarnings.length > 0) {
  27729. pendingUNSAFE_ComponentWillUpdateWarnings.forEach(function (fiber) {
  27730. UNSAFE_componentWillUpdateUniqueNames.add(getComponentName(fiber.type) || 'Component');
  27731. didWarnAboutUnsafeLifecycles.add(fiber.type);
  27732. });
  27733. pendingUNSAFE_ComponentWillUpdateWarnings = [];
  27734. }
  27735. // Finally, we flush all the warnings
  27736. // UNSAFE_ ones before the deprecated ones, since they'll be 'louder'
  27737. if (UNSAFE_componentWillMountUniqueNames.size > 0) {
  27738. var sortedNames = setToSortedString(UNSAFE_componentWillMountUniqueNames);
  27739. warningWithoutStack$1(false, 'Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. ' + 'See https://fb.me/react-async-component-lifecycle-hooks for details.\n\n' + '* Move code with side effects to componentDidMount, and set initial state in the constructor.\n' + '\nPlease update the following components: %s', sortedNames);
  27740. }
  27741. if (UNSAFE_componentWillReceivePropsUniqueNames.size > 0) {
  27742. var _sortedNames = setToSortedString(UNSAFE_componentWillReceivePropsUniqueNames);
  27743. warningWithoutStack$1(false, 'Using UNSAFE_componentWillReceiveProps in strict mode is not recommended ' + 'and may indicate bugs in your code. ' + 'See https://fb.me/react-async-component-lifecycle-hooks for details.\n\n' + '* Move data fetching code or side effects to componentDidUpdate.\n' + "* If you're updating state whenever props change, " + 'refactor your code to use memoization techniques or move it to ' + 'static getDerivedStateFromProps. Learn more at: https://fb.me/react-derived-state\n' + '\nPlease update the following components: %s', _sortedNames);
  27744. }
  27745. if (UNSAFE_componentWillUpdateUniqueNames.size > 0) {
  27746. var _sortedNames2 = setToSortedString(UNSAFE_componentWillUpdateUniqueNames);
  27747. warningWithoutStack$1(false, 'Using UNSAFE_componentWillUpdate in strict mode is not recommended ' + 'and may indicate bugs in your code. ' + 'See https://fb.me/react-async-component-lifecycle-hooks for details.\n\n' + '* Move data fetching code or side effects to componentDidUpdate.\n' + '\nPlease update the following components: %s', _sortedNames2);
  27748. }
  27749. if (componentWillMountUniqueNames.size > 0) {
  27750. var _sortedNames3 = setToSortedString(componentWillMountUniqueNames);
  27751. lowPriorityWarning$1(false, 'componentWillMount has been renamed, and is not recommended for use. ' + 'See https://fb.me/react-async-component-lifecycle-hooks for details.\n\n' + '* Move code with side effects to componentDidMount, and set initial state in the constructor.\n' + '* Rename componentWillMount to UNSAFE_componentWillMount to suppress ' + 'this warning in non-strict mode. In React 17.x, only the UNSAFE_ name will work. ' + 'To rename all deprecated lifecycles to their new names, you can run ' + '`npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n' + '\nPlease update the following components: %s', _sortedNames3);
  27752. }
  27753. if (componentWillReceivePropsUniqueNames.size > 0) {
  27754. var _sortedNames4 = setToSortedString(componentWillReceivePropsUniqueNames);
  27755. lowPriorityWarning$1(false, 'componentWillReceiveProps has been renamed, and is not recommended for use. ' + 'See https://fb.me/react-async-component-lifecycle-hooks for details.\n\n' + '* Move data fetching code or side effects to componentDidUpdate.\n' + "* If you're updating state whenever props change, refactor your " + 'code to use memoization techniques or move it to ' + 'static getDerivedStateFromProps. Learn more at: https://fb.me/react-derived-state\n' + '* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress ' + 'this warning in non-strict mode. In React 17.x, only the UNSAFE_ name will work. ' + 'To rename all deprecated lifecycles to their new names, you can run ' + '`npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n' + '\nPlease update the following components: %s', _sortedNames4);
  27756. }
  27757. if (componentWillUpdateUniqueNames.size > 0) {
  27758. var _sortedNames5 = setToSortedString(componentWillUpdateUniqueNames);
  27759. lowPriorityWarning$1(false, 'componentWillUpdate has been renamed, and is not recommended for use. ' + 'See https://fb.me/react-async-component-lifecycle-hooks for details.\n\n' + '* Move data fetching code or side effects to componentDidUpdate.\n' + '* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress ' + 'this warning in non-strict mode. In React 17.x, only the UNSAFE_ name will work. ' + 'To rename all deprecated lifecycles to their new names, you can run ' + '`npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n' + '\nPlease update the following components: %s', _sortedNames5);
  27760. }
  27761. };
  27762. var pendingLegacyContextWarning = new Map();
  27763. // Tracks components we have already warned about.
  27764. var didWarnAboutLegacyContext = new Set();
  27765. ReactStrictModeWarnings.recordLegacyContextWarning = function (fiber, instance) {
  27766. var strictRoot = findStrictRoot(fiber);
  27767. if (strictRoot === null) {
  27768. warningWithoutStack$1(false, 'Expected to find a StrictMode component in a strict mode tree. ' + 'This error is likely caused by a bug in React. Please file an issue.');
  27769. return;
  27770. }
  27771. // Dedup strategy: Warn once per component.
  27772. if (didWarnAboutLegacyContext.has(fiber.type)) {
  27773. return;
  27774. }
  27775. var warningsForRoot = pendingLegacyContextWarning.get(strictRoot);
  27776. if (fiber.type.contextTypes != null || fiber.type.childContextTypes != null || instance !== null && typeof instance.getChildContext === 'function') {
  27777. if (warningsForRoot === undefined) {
  27778. warningsForRoot = [];
  27779. pendingLegacyContextWarning.set(strictRoot, warningsForRoot);
  27780. }
  27781. warningsForRoot.push(fiber);
  27782. }
  27783. };
  27784. ReactStrictModeWarnings.flushLegacyContextWarning = function () {
  27785. pendingLegacyContextWarning.forEach(function (fiberArray, strictRoot) {
  27786. var uniqueNames = new Set();
  27787. fiberArray.forEach(function (fiber) {
  27788. uniqueNames.add(getComponentName(fiber.type) || 'Component');
  27789. didWarnAboutLegacyContext.add(fiber.type);
  27790. });
  27791. var sortedNames = setToSortedString(uniqueNames);
  27792. var strictRootComponentStack = getStackByFiberInDevAndProd(strictRoot);
  27793. warningWithoutStack$1(false, 'Legacy context API has been detected within a strict-mode tree: %s' + '\n\nThe old API will be supported in all 16.x releases, but applications ' + 'using it should migrate to the new version.' + '\n\nPlease update the following components: %s' + '\n\nLearn more about this warning here:' + '\nhttps://fb.me/react-legacy-context', strictRootComponentStack, sortedNames);
  27794. });
  27795. };
  27796. ReactStrictModeWarnings.discardPendingWarnings = function () {
  27797. pendingComponentWillMountWarnings = [];
  27798. pendingUNSAFE_ComponentWillMountWarnings = [];
  27799. pendingComponentWillReceivePropsWarnings = [];
  27800. pendingUNSAFE_ComponentWillReceivePropsWarnings = [];
  27801. pendingComponentWillUpdateWarnings = [];
  27802. pendingUNSAFE_ComponentWillUpdateWarnings = [];
  27803. pendingLegacyContextWarning = new Map();
  27804. };
  27805. }
  27806. // Resolves type to a family.
  27807. // Used by React Refresh runtime through DevTools Global Hook.
  27808. var resolveFamily = null;
  27809. // $FlowFixMe Flow gets confused by a WeakSet feature check below.
  27810. var failedBoundaries = null;
  27811. var setRefreshHandler = function (handler) {
  27812. {
  27813. resolveFamily = handler;
  27814. }
  27815. };
  27816. function resolveFunctionForHotReloading(type) {
  27817. {
  27818. if (resolveFamily === null) {
  27819. // Hot reloading is disabled.
  27820. return type;
  27821. }
  27822. var family = resolveFamily(type);
  27823. if (family === undefined) {
  27824. return type;
  27825. }
  27826. // Use the latest known implementation.
  27827. return family.current;
  27828. }
  27829. }
  27830. function resolveClassForHotReloading(type) {
  27831. // No implementation differences.
  27832. return resolveFunctionForHotReloading(type);
  27833. }
  27834. function resolveForwardRefForHotReloading(type) {
  27835. {
  27836. if (resolveFamily === null) {
  27837. // Hot reloading is disabled.
  27838. return type;
  27839. }
  27840. var family = resolveFamily(type);
  27841. if (family === undefined) {
  27842. // Check if we're dealing with a real forwardRef. Don't want to crash early.
  27843. if (type !== null && type !== undefined && typeof type.render === 'function') {
  27844. // ForwardRef is special because its resolved .type is an object,
  27845. // but it's possible that we only have its inner render function in the map.
  27846. // If that inner render function is different, we'll build a new forwardRef type.
  27847. var currentRender = resolveFunctionForHotReloading(type.render);
  27848. if (type.render !== currentRender) {
  27849. var syntheticType = {
  27850. $$typeof: REACT_FORWARD_REF_TYPE,
  27851. render: currentRender
  27852. };
  27853. if (type.displayName !== undefined) {
  27854. syntheticType.displayName = type.displayName;
  27855. }
  27856. return syntheticType;
  27857. }
  27858. }
  27859. return type;
  27860. }
  27861. // Use the latest known implementation.
  27862. return family.current;
  27863. }
  27864. }
  27865. function isCompatibleFamilyForHotReloading(fiber, element) {
  27866. {
  27867. if (resolveFamily === null) {
  27868. // Hot reloading is disabled.
  27869. return false;
  27870. }
  27871. var prevType = fiber.elementType;
  27872. var nextType = element.type;
  27873. // If we got here, we know types aren't === equal.
  27874. var needsCompareFamilies = false;
  27875. var $$typeofNextType = typeof nextType === 'object' && nextType !== null ? nextType.$$typeof : null;
  27876. switch (fiber.tag) {
  27877. case ClassComponent:
  27878. {
  27879. if (typeof nextType === 'function') {
  27880. needsCompareFamilies = true;
  27881. }
  27882. break;
  27883. }
  27884. case FunctionComponent:
  27885. {
  27886. if (typeof nextType === 'function') {
  27887. needsCompareFamilies = true;
  27888. } else if ($$typeofNextType === REACT_LAZY_TYPE) {
  27889. // We don't know the inner type yet.
  27890. // We're going to assume that the lazy inner type is stable,
  27891. // and so it is sufficient to avoid reconciling it away.
  27892. // We're not going to unwrap or actually use the new lazy type.
  27893. needsCompareFamilies = true;
  27894. }
  27895. break;
  27896. }
  27897. case ForwardRef:
  27898. {
  27899. if ($$typeofNextType === REACT_FORWARD_REF_TYPE) {
  27900. needsCompareFamilies = true;
  27901. } else if ($$typeofNextType === REACT_LAZY_TYPE) {
  27902. needsCompareFamilies = true;
  27903. }
  27904. break;
  27905. }
  27906. case MemoComponent:
  27907. case SimpleMemoComponent:
  27908. {
  27909. if ($$typeofNextType === REACT_MEMO_TYPE) {
  27910. // TODO: if it was but can no longer be simple,
  27911. // we shouldn't set this.
  27912. needsCompareFamilies = true;
  27913. } else if ($$typeofNextType === REACT_LAZY_TYPE) {
  27914. needsCompareFamilies = true;
  27915. }
  27916. break;
  27917. }
  27918. default:
  27919. return false;
  27920. }
  27921. // Check if both types have a family and it's the same one.
  27922. if (needsCompareFamilies) {
  27923. // Note: memo() and forwardRef() we'll compare outer rather than inner type.
  27924. // This means both of them need to be registered to preserve state.
  27925. // If we unwrapped and compared the inner types for wrappers instead,
  27926. // then we would risk falsely saying two separate memo(Foo)
  27927. // calls are equivalent because they wrap the same Foo function.
  27928. var prevFamily = resolveFamily(prevType);
  27929. if (prevFamily !== undefined && prevFamily === resolveFamily(nextType)) {
  27930. return true;
  27931. }
  27932. }
  27933. return false;
  27934. }
  27935. }
  27936. function markFailedErrorBoundaryForHotReloading(fiber) {
  27937. {
  27938. if (resolveFamily === null) {
  27939. // Hot reloading is disabled.
  27940. return;
  27941. }
  27942. if (typeof WeakSet !== 'function') {
  27943. return;
  27944. }
  27945. if (failedBoundaries === null) {
  27946. failedBoundaries = new WeakSet();
  27947. }
  27948. failedBoundaries.add(fiber);
  27949. }
  27950. }
  27951. var scheduleRefresh = function (root, update) {
  27952. {
  27953. if (resolveFamily === null) {
  27954. // Hot reloading is disabled.
  27955. return;
  27956. }
  27957. var _staleFamilies = update.staleFamilies,
  27958. _updatedFamilies = update.updatedFamilies;
  27959. flushPassiveEffects();
  27960. flushSync(function () {
  27961. scheduleFibersWithFamiliesRecursively(root.current, _updatedFamilies, _staleFamilies);
  27962. });
  27963. }
  27964. };
  27965. var scheduleRoot = function (root, element) {
  27966. {
  27967. if (root.context !== emptyContextObject) {
  27968. // Super edge case: root has a legacy _renderSubtree context
  27969. // but we don't know the parentComponent so we can't pass it.
  27970. // Just ignore. We'll delete this with _renderSubtree code path later.
  27971. return;
  27972. }
  27973. flushPassiveEffects();
  27974. updateContainerAtExpirationTime(element, root, null, Sync, null);
  27975. }
  27976. };
  27977. function scheduleFibersWithFamiliesRecursively(fiber, updatedFamilies, staleFamilies) {
  27978. {
  27979. var alternate = fiber.alternate,
  27980. child = fiber.child,
  27981. sibling = fiber.sibling,
  27982. tag = fiber.tag,
  27983. type = fiber.type;
  27984. var candidateType = null;
  27985. switch (tag) {
  27986. case FunctionComponent:
  27987. case SimpleMemoComponent:
  27988. case ClassComponent:
  27989. candidateType = type;
  27990. break;
  27991. case ForwardRef:
  27992. candidateType = type.render;
  27993. break;
  27994. default:
  27995. break;
  27996. }
  27997. if (resolveFamily === null) {
  27998. throw new Error('Expected resolveFamily to be set during hot reload.');
  27999. }
  28000. var needsRender = false;
  28001. var needsRemount = false;
  28002. if (candidateType !== null) {
  28003. var family = resolveFamily(candidateType);
  28004. if (family !== undefined) {
  28005. if (staleFamilies.has(family)) {
  28006. needsRemount = true;
  28007. } else if (updatedFamilies.has(family)) {
  28008. needsRender = true;
  28009. }
  28010. }
  28011. }
  28012. if (failedBoundaries !== null) {
  28013. if (failedBoundaries.has(fiber) || alternate !== null && failedBoundaries.has(alternate)) {
  28014. needsRemount = true;
  28015. }
  28016. }
  28017. if (needsRemount) {
  28018. fiber._debugNeedsRemount = true;
  28019. }
  28020. if (needsRemount || needsRender) {
  28021. scheduleWork(fiber, Sync);
  28022. }
  28023. if (child !== null && !needsRemount) {
  28024. scheduleFibersWithFamiliesRecursively(child, updatedFamilies, staleFamilies);
  28025. }
  28026. if (sibling !== null) {
  28027. scheduleFibersWithFamiliesRecursively(sibling, updatedFamilies, staleFamilies);
  28028. }
  28029. }
  28030. }
  28031. var findHostInstancesForRefresh = function (root, families) {
  28032. {
  28033. var hostInstances = new Set();
  28034. var types = new Set(families.map(function (family) {
  28035. return family.current;
  28036. }));
  28037. findHostInstancesForMatchingFibersRecursively(root.current, types, hostInstances);
  28038. return hostInstances;
  28039. }
  28040. };
  28041. function findHostInstancesForMatchingFibersRecursively(fiber, types, hostInstances) {
  28042. {
  28043. var child = fiber.child,
  28044. sibling = fiber.sibling,
  28045. tag = fiber.tag,
  28046. type = fiber.type;
  28047. var candidateType = null;
  28048. switch (tag) {
  28049. case FunctionComponent:
  28050. case SimpleMemoComponent:
  28051. case ClassComponent:
  28052. candidateType = type;
  28053. break;
  28054. case ForwardRef:
  28055. candidateType = type.render;
  28056. break;
  28057. default:
  28058. break;
  28059. }
  28060. var didMatch = false;
  28061. if (candidateType !== null) {
  28062. if (types.has(candidateType)) {
  28063. didMatch = true;
  28064. }
  28065. }
  28066. if (didMatch) {
  28067. // We have a match. This only drills down to the closest host components.
  28068. // There's no need to search deeper because for the purpose of giving
  28069. // visual feedback, "flashing" outermost parent rectangles is sufficient.
  28070. findHostInstancesForFiberShallowly(fiber, hostInstances);
  28071. } else {
  28072. // If there's no match, maybe there will be one further down in the child tree.
  28073. if (child !== null) {
  28074. findHostInstancesForMatchingFibersRecursively(child, types, hostInstances);
  28075. }
  28076. }
  28077. if (sibling !== null) {
  28078. findHostInstancesForMatchingFibersRecursively(sibling, types, hostInstances);
  28079. }
  28080. }
  28081. }
  28082. function findHostInstancesForFiberShallowly(fiber, hostInstances) {
  28083. {
  28084. var foundHostInstances = findChildHostInstancesForFiberShallowly(fiber, hostInstances);
  28085. if (foundHostInstances) {
  28086. return;
  28087. }
  28088. // If we didn't find any host children, fallback to closest host parent.
  28089. var node = fiber;
  28090. while (true) {
  28091. switch (node.tag) {
  28092. case HostComponent:
  28093. hostInstances.add(node.stateNode);
  28094. return;
  28095. case HostPortal:
  28096. hostInstances.add(node.stateNode.containerInfo);
  28097. return;
  28098. case HostRoot:
  28099. hostInstances.add(node.stateNode.containerInfo);
  28100. return;
  28101. }
  28102. if (node.return === null) {
  28103. throw new Error('Expected to reach root first.');
  28104. }
  28105. node = node.return;
  28106. }
  28107. }
  28108. }
  28109. function findChildHostInstancesForFiberShallowly(fiber, hostInstances) {
  28110. {
  28111. var node = fiber;
  28112. var foundHostInstances = false;
  28113. while (true) {
  28114. if (node.tag === HostComponent) {
  28115. // We got a match.
  28116. foundHostInstances = true;
  28117. hostInstances.add(node.stateNode);
  28118. // There may still be more, so keep searching.
  28119. } else if (node.child !== null) {
  28120. node.child.return = node;
  28121. node = node.child;
  28122. continue;
  28123. }
  28124. if (node === fiber) {
  28125. return foundHostInstances;
  28126. }
  28127. while (node.sibling === null) {
  28128. if (node.return === null || node.return === fiber) {
  28129. return foundHostInstances;
  28130. }
  28131. node = node.return;
  28132. }
  28133. node.sibling.return = node.return;
  28134. node = node.sibling;
  28135. }
  28136. }
  28137. return false;
  28138. }
  28139. function resolveDefaultProps(Component, baseProps) {
  28140. if (Component && Component.defaultProps) {
  28141. // Resolve default props. Taken from ReactElement
  28142. var props = _assign({}, baseProps);
  28143. var defaultProps = Component.defaultProps;
  28144. for (var propName in defaultProps) {
  28145. if (props[propName] === undefined) {
  28146. props[propName] = defaultProps[propName];
  28147. }
  28148. }
  28149. return props;
  28150. }
  28151. return baseProps;
  28152. }
  28153. function readLazyComponentType(lazyComponent) {
  28154. var status = lazyComponent._status;
  28155. var result = lazyComponent._result;
  28156. switch (status) {
  28157. case Resolved:
  28158. {
  28159. var Component = result;
  28160. return Component;
  28161. }
  28162. case Rejected:
  28163. {
  28164. var error = result;
  28165. throw error;
  28166. }
  28167. case Pending:
  28168. {
  28169. var thenable = result;
  28170. throw thenable;
  28171. }
  28172. default:
  28173. {
  28174. lazyComponent._status = Pending;
  28175. var ctor = lazyComponent._ctor;
  28176. var _thenable = ctor();
  28177. _thenable.then(function (moduleObject) {
  28178. if (lazyComponent._status === Pending) {
  28179. var defaultExport = moduleObject.default;
  28180. {
  28181. if (defaultExport === undefined) {
  28182. warning$1(false, 'lazy: Expected the result of a dynamic import() call. ' + 'Instead received: %s\n\nYour code should look like: \n ' + "const MyComponent = lazy(() => import('./MyComponent'))", moduleObject);
  28183. }
  28184. }
  28185. lazyComponent._status = Resolved;
  28186. lazyComponent._result = defaultExport;
  28187. }
  28188. }, function (error) {
  28189. if (lazyComponent._status === Pending) {
  28190. lazyComponent._status = Rejected;
  28191. lazyComponent._result = error;
  28192. }
  28193. });
  28194. // Handle synchronous thenables.
  28195. switch (lazyComponent._status) {
  28196. case Resolved:
  28197. return lazyComponent._result;
  28198. case Rejected:
  28199. throw lazyComponent._result;
  28200. }
  28201. lazyComponent._result = _thenable;
  28202. throw _thenable;
  28203. }
  28204. }
  28205. }
  28206. var valueCursor = createCursor(null);
  28207. var rendererSigil = void 0;
  28208. {
  28209. // Use this to detect multiple renderers using the same context
  28210. rendererSigil = {};
  28211. }
  28212. var currentlyRenderingFiber = null;
  28213. var lastContextDependency = null;
  28214. var lastContextWithAllBitsObserved = null;
  28215. var isDisallowedContextReadInDEV = false;
  28216. function resetContextDependencies() {
  28217. // This is called right before React yields execution, to ensure `readContext`
  28218. // cannot be called outside the render phase.
  28219. currentlyRenderingFiber = null;
  28220. lastContextDependency = null;
  28221. lastContextWithAllBitsObserved = null;
  28222. {
  28223. isDisallowedContextReadInDEV = false;
  28224. }
  28225. }
  28226. function enterDisallowedContextReadInDEV() {
  28227. {
  28228. isDisallowedContextReadInDEV = true;
  28229. }
  28230. }
  28231. function exitDisallowedContextReadInDEV() {
  28232. {
  28233. isDisallowedContextReadInDEV = false;
  28234. }
  28235. }
  28236. function pushProvider(providerFiber, nextValue) {
  28237. var context = providerFiber.type._context;
  28238. if (isPrimaryRenderer) {
  28239. push(valueCursor, context._currentValue, providerFiber);
  28240. context._currentValue = nextValue;
  28241. {
  28242. !(context._currentRenderer === undefined || context._currentRenderer === null || context._currentRenderer === rendererSigil) ? warningWithoutStack$1(false, 'Detected multiple renderers concurrently rendering the ' + 'same context provider. This is currently unsupported.') : void 0;
  28243. context._currentRenderer = rendererSigil;
  28244. }
  28245. } else {
  28246. push(valueCursor, context._currentValue2, providerFiber);
  28247. context._currentValue2 = nextValue;
  28248. {
  28249. !(context._currentRenderer2 === undefined || context._currentRenderer2 === null || context._currentRenderer2 === rendererSigil) ? warningWithoutStack$1(false, 'Detected multiple renderers concurrently rendering the ' + 'same context provider. This is currently unsupported.') : void 0;
  28250. context._currentRenderer2 = rendererSigil;
  28251. }
  28252. }
  28253. }
  28254. function popProvider(providerFiber) {
  28255. var currentValue = valueCursor.current;
  28256. pop(valueCursor, providerFiber);
  28257. var context = providerFiber.type._context;
  28258. if (isPrimaryRenderer) {
  28259. context._currentValue = currentValue;
  28260. } else {
  28261. context._currentValue2 = currentValue;
  28262. }
  28263. }
  28264. function calculateChangedBits(context, newValue, oldValue) {
  28265. if (is(oldValue, newValue)) {
  28266. // No change
  28267. return 0;
  28268. } else {
  28269. var changedBits = typeof context._calculateChangedBits === 'function' ? context._calculateChangedBits(oldValue, newValue) : MAX_SIGNED_31_BIT_INT;
  28270. {
  28271. !((changedBits & MAX_SIGNED_31_BIT_INT) === changedBits) ? warning$1(false, 'calculateChangedBits: Expected the return value to be a ' + '31-bit integer. Instead received: %s', changedBits) : void 0;
  28272. }
  28273. return changedBits | 0;
  28274. }
  28275. }
  28276. function scheduleWorkOnParentPath(parent, renderExpirationTime) {
  28277. // Update the child expiration time of all the ancestors, including
  28278. // the alternates.
  28279. var node = parent;
  28280. while (node !== null) {
  28281. var alternate = node.alternate;
  28282. if (node.childExpirationTime < renderExpirationTime) {
  28283. node.childExpirationTime = renderExpirationTime;
  28284. if (alternate !== null && alternate.childExpirationTime < renderExpirationTime) {
  28285. alternate.childExpirationTime = renderExpirationTime;
  28286. }
  28287. } else if (alternate !== null && alternate.childExpirationTime < renderExpirationTime) {
  28288. alternate.childExpirationTime = renderExpirationTime;
  28289. } else {
  28290. // Neither alternate was updated, which means the rest of the
  28291. // ancestor path already has sufficient priority.
  28292. break;
  28293. }
  28294. node = node.return;
  28295. }
  28296. }
  28297. function propagateContextChange(workInProgress, context, changedBits, renderExpirationTime) {
  28298. var fiber = workInProgress.child;
  28299. if (fiber !== null) {
  28300. // Set the return pointer of the child to the work-in-progress fiber.
  28301. fiber.return = workInProgress;
  28302. }
  28303. while (fiber !== null) {
  28304. var nextFiber = void 0;
  28305. // Visit this fiber.
  28306. var list = fiber.dependencies;
  28307. if (list !== null) {
  28308. nextFiber = fiber.child;
  28309. var dependency = list.firstContext;
  28310. while (dependency !== null) {
  28311. // Check if the context matches.
  28312. if (dependency.context === context && (dependency.observedBits & changedBits) !== 0) {
  28313. // Match! Schedule an update on this fiber.
  28314. if (fiber.tag === ClassComponent) {
  28315. // Schedule a force update on the work-in-progress.
  28316. var update = createUpdate(renderExpirationTime, null);
  28317. update.tag = ForceUpdate;
  28318. // TODO: Because we don't have a work-in-progress, this will add the
  28319. // update to the current fiber, too, which means it will persist even if
  28320. // this render is thrown away. Since it's a race condition, not sure it's
  28321. // worth fixing.
  28322. enqueueUpdate(fiber, update);
  28323. }
  28324. if (fiber.expirationTime < renderExpirationTime) {
  28325. fiber.expirationTime = renderExpirationTime;
  28326. }
  28327. var alternate = fiber.alternate;
  28328. if (alternate !== null && alternate.expirationTime < renderExpirationTime) {
  28329. alternate.expirationTime = renderExpirationTime;
  28330. }
  28331. scheduleWorkOnParentPath(fiber.return, renderExpirationTime);
  28332. // Mark the expiration time on the list, too.
  28333. if (list.expirationTime < renderExpirationTime) {
  28334. list.expirationTime = renderExpirationTime;
  28335. }
  28336. // Since we already found a match, we can stop traversing the
  28337. // dependency list.
  28338. break;
  28339. }
  28340. dependency = dependency.next;
  28341. }
  28342. } else if (fiber.tag === ContextProvider) {
  28343. // Don't scan deeper if this is a matching provider
  28344. nextFiber = fiber.type === workInProgress.type ? null : fiber.child;
  28345. } else if (enableSuspenseServerRenderer && fiber.tag === DehydratedSuspenseComponent) {
  28346. // If a dehydrated suspense component is in this subtree, we don't know
  28347. // if it will have any context consumers in it. The best we can do is
  28348. // mark it as having updates on its children.
  28349. if (fiber.expirationTime < renderExpirationTime) {
  28350. fiber.expirationTime = renderExpirationTime;
  28351. }
  28352. var _alternate = fiber.alternate;
  28353. if (_alternate !== null && _alternate.expirationTime < renderExpirationTime) {
  28354. _alternate.expirationTime = renderExpirationTime;
  28355. }
  28356. // This is intentionally passing this fiber as the parent
  28357. // because we want to schedule this fiber as having work
  28358. // on its children. We'll use the childExpirationTime on
  28359. // this fiber to indicate that a context has changed.
  28360. scheduleWorkOnParentPath(fiber, renderExpirationTime);
  28361. nextFiber = fiber.sibling;
  28362. } else {
  28363. // Traverse down.
  28364. nextFiber = fiber.child;
  28365. }
  28366. if (nextFiber !== null) {
  28367. // Set the return pointer of the child to the work-in-progress fiber.
  28368. nextFiber.return = fiber;
  28369. } else {
  28370. // No child. Traverse to next sibling.
  28371. nextFiber = fiber;
  28372. while (nextFiber !== null) {
  28373. if (nextFiber === workInProgress) {
  28374. // We're back to the root of this subtree. Exit.
  28375. nextFiber = null;
  28376. break;
  28377. }
  28378. var sibling = nextFiber.sibling;
  28379. if (sibling !== null) {
  28380. // Set the return pointer of the sibling to the work-in-progress fiber.
  28381. sibling.return = nextFiber.return;
  28382. nextFiber = sibling;
  28383. break;
  28384. }
  28385. // No more siblings. Traverse up.
  28386. nextFiber = nextFiber.return;
  28387. }
  28388. }
  28389. fiber = nextFiber;
  28390. }
  28391. }
  28392. function prepareToReadContext(workInProgress, renderExpirationTime) {
  28393. currentlyRenderingFiber = workInProgress;
  28394. lastContextDependency = null;
  28395. lastContextWithAllBitsObserved = null;
  28396. var dependencies = workInProgress.dependencies;
  28397. if (dependencies !== null) {
  28398. var firstContext = dependencies.firstContext;
  28399. if (firstContext !== null) {
  28400. if (dependencies.expirationTime >= renderExpirationTime) {
  28401. // Context list has a pending update. Mark that this fiber performed work.
  28402. markWorkInProgressReceivedUpdate();
  28403. }
  28404. // Reset the work-in-progress list
  28405. dependencies.firstContext = null;
  28406. }
  28407. }
  28408. }
  28409. function readContext(context, observedBits) {
  28410. {
  28411. // This warning would fire if you read context inside a Hook like useMemo.
  28412. // Unlike the class check below, it's not enforced in production for perf.
  28413. !!isDisallowedContextReadInDEV ? warning$1(false, 'Context can only be read while React is rendering. ' + 'In classes, you can read it in the render method or getDerivedStateFromProps. ' + 'In function components, you can read it directly in the function body, but not ' + 'inside Hooks like useReducer() or useMemo().') : void 0;
  28414. }
  28415. if (lastContextWithAllBitsObserved === context) {
  28416. // Nothing to do. We already observe everything in this context.
  28417. } else if (observedBits === false || observedBits === 0) {
  28418. // Do not observe any updates.
  28419. } else {
  28420. var resolvedObservedBits = void 0; // Avoid deopting on observable arguments or heterogeneous types.
  28421. if (typeof observedBits !== 'number' || observedBits === MAX_SIGNED_31_BIT_INT) {
  28422. // Observe all updates.
  28423. lastContextWithAllBitsObserved = context;
  28424. resolvedObservedBits = MAX_SIGNED_31_BIT_INT;
  28425. } else {
  28426. resolvedObservedBits = observedBits;
  28427. }
  28428. var contextItem = {
  28429. context: context,
  28430. observedBits: resolvedObservedBits,
  28431. next: null
  28432. };
  28433. if (lastContextDependency === null) {
  28434. (function () {
  28435. if (!(currentlyRenderingFiber !== null)) {
  28436. {
  28437. throw ReactError(Error('Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().'));
  28438. }
  28439. }
  28440. })();
  28441. // This is the first dependency for this component. Create a new list.
  28442. lastContextDependency = contextItem;
  28443. currentlyRenderingFiber.dependencies = {
  28444. expirationTime: NoWork,
  28445. firstContext: contextItem,
  28446. responders: null
  28447. };
  28448. } else {
  28449. // Append a new context item.
  28450. lastContextDependency = lastContextDependency.next = contextItem;
  28451. }
  28452. }
  28453. return isPrimaryRenderer ? context._currentValue : context._currentValue2;
  28454. }
  28455. // UpdateQueue is a linked list of prioritized updates.
  28456. //
  28457. // Like fibers, update queues come in pairs: a current queue, which represents
  28458. // the visible state of the screen, and a work-in-progress queue, which can be
  28459. // mutated and processed asynchronously before it is committed — a form of
  28460. // double buffering. If a work-in-progress render is discarded before finishing,
  28461. // we create a new work-in-progress by cloning the current queue.
  28462. //
  28463. // Both queues share a persistent, singly-linked list structure. To schedule an
  28464. // update, we append it to the end of both queues. Each queue maintains a
  28465. // pointer to first update in the persistent list that hasn't been processed.
  28466. // The work-in-progress pointer always has a position equal to or greater than
  28467. // the current queue, since we always work on that one. The current queue's
  28468. // pointer is only updated during the commit phase, when we swap in the
  28469. // work-in-progress.
  28470. //
  28471. // For example:
  28472. //
  28473. // Current pointer: A - B - C - D - E - F
  28474. // Work-in-progress pointer: D - E - F
  28475. // ^
  28476. // The work-in-progress queue has
  28477. // processed more updates than current.
  28478. //
  28479. // The reason we append to both queues is because otherwise we might drop
  28480. // updates without ever processing them. For example, if we only add updates to
  28481. // the work-in-progress queue, some updates could be lost whenever a work-in
  28482. // -progress render restarts by cloning from current. Similarly, if we only add
  28483. // updates to the current queue, the updates will be lost whenever an already
  28484. // in-progress queue commits and swaps with the current queue. However, by
  28485. // adding to both queues, we guarantee that the update will be part of the next
  28486. // work-in-progress. (And because the work-in-progress queue becomes the
  28487. // current queue once it commits, there's no danger of applying the same
  28488. // update twice.)
  28489. //
  28490. // Prioritization
  28491. // --------------
  28492. //
  28493. // Updates are not sorted by priority, but by insertion; new updates are always
  28494. // appended to the end of the list.
  28495. //
  28496. // The priority is still important, though. When processing the update queue
  28497. // during the render phase, only the updates with sufficient priority are
  28498. // included in the result. If we skip an update because it has insufficient
  28499. // priority, it remains in the queue to be processed later, during a lower
  28500. // priority render. Crucially, all updates subsequent to a skipped update also
  28501. // remain in the queue *regardless of their priority*. That means high priority
  28502. // updates are sometimes processed twice, at two separate priorities. We also
  28503. // keep track of a base state, that represents the state before the first
  28504. // update in the queue is applied.
  28505. //
  28506. // For example:
  28507. //
  28508. // Given a base state of '', and the following queue of updates
  28509. //
  28510. // A1 - B2 - C1 - D2
  28511. //
  28512. // where the number indicates the priority, and the update is applied to the
  28513. // previous state by appending a letter, React will process these updates as
  28514. // two separate renders, one per distinct priority level:
  28515. //
  28516. // First render, at priority 1:
  28517. // Base state: ''
  28518. // Updates: [A1, C1]
  28519. // Result state: 'AC'
  28520. //
  28521. // Second render, at priority 2:
  28522. // Base state: 'A' <- The base state does not include C1,
  28523. // because B2 was skipped.
  28524. // Updates: [B2, C1, D2] <- C1 was rebased on top of B2
  28525. // Result state: 'ABCD'
  28526. //
  28527. // Because we process updates in insertion order, and rebase high priority
  28528. // updates when preceding updates are skipped, the final result is deterministic
  28529. // regardless of priority. Intermediate state may vary according to system
  28530. // resources, but the final state is always the same.
  28531. var UpdateState = 0;
  28532. var ReplaceState = 1;
  28533. var ForceUpdate = 2;
  28534. var CaptureUpdate = 3;
  28535. // Global state that is reset at the beginning of calling `processUpdateQueue`.
  28536. // It should only be read right after calling `processUpdateQueue`, via
  28537. // `checkHasForceUpdateAfterProcessing`.
  28538. var hasForceUpdate = false;
  28539. var didWarnUpdateInsideUpdate = void 0;
  28540. var currentlyProcessingQueue = void 0;
  28541. {
  28542. didWarnUpdateInsideUpdate = false;
  28543. currentlyProcessingQueue = null;
  28544. }
  28545. function createUpdateQueue(baseState) {
  28546. var queue = {
  28547. baseState: baseState,
  28548. firstUpdate: null,
  28549. lastUpdate: null,
  28550. firstCapturedUpdate: null,
  28551. lastCapturedUpdate: null,
  28552. firstEffect: null,
  28553. lastEffect: null,
  28554. firstCapturedEffect: null,
  28555. lastCapturedEffect: null
  28556. };
  28557. return queue;
  28558. }
  28559. function cloneUpdateQueue(currentQueue) {
  28560. var queue = {
  28561. baseState: currentQueue.baseState,
  28562. firstUpdate: currentQueue.firstUpdate,
  28563. lastUpdate: currentQueue.lastUpdate,
  28564. // TODO: With resuming, if we bail out and resuse the child tree, we should
  28565. // keep these effects.
  28566. firstCapturedUpdate: null,
  28567. lastCapturedUpdate: null,
  28568. firstEffect: null,
  28569. lastEffect: null,
  28570. firstCapturedEffect: null,
  28571. lastCapturedEffect: null
  28572. };
  28573. return queue;
  28574. }
  28575. function createUpdate(expirationTime, suspenseConfig) {
  28576. var update = {
  28577. expirationTime: expirationTime,
  28578. suspenseConfig: suspenseConfig,
  28579. tag: UpdateState,
  28580. payload: null,
  28581. callback: null,
  28582. next: null,
  28583. nextEffect: null
  28584. };
  28585. {
  28586. update.priority = getCurrentPriorityLevel();
  28587. }
  28588. return update;
  28589. }
  28590. function appendUpdateToQueue(queue, update) {
  28591. // Append the update to the end of the list.
  28592. if (queue.lastUpdate === null) {
  28593. // Queue is empty
  28594. queue.firstUpdate = queue.lastUpdate = update;
  28595. } else {
  28596. queue.lastUpdate.next = update;
  28597. queue.lastUpdate = update;
  28598. }
  28599. }
  28600. function enqueueUpdate(fiber, update) {
  28601. // Update queues are created lazily.
  28602. var alternate = fiber.alternate;
  28603. var queue1 = void 0;
  28604. var queue2 = void 0;
  28605. if (alternate === null) {
  28606. // There's only one fiber.
  28607. queue1 = fiber.updateQueue;
  28608. queue2 = null;
  28609. if (queue1 === null) {
  28610. queue1 = fiber.updateQueue = createUpdateQueue(fiber.memoizedState);
  28611. }
  28612. } else {
  28613. // There are two owners.
  28614. queue1 = fiber.updateQueue;
  28615. queue2 = alternate.updateQueue;
  28616. if (queue1 === null) {
  28617. if (queue2 === null) {
  28618. // Neither fiber has an update queue. Create new ones.
  28619. queue1 = fiber.updateQueue = createUpdateQueue(fiber.memoizedState);
  28620. queue2 = alternate.updateQueue = createUpdateQueue(alternate.memoizedState);
  28621. } else {
  28622. // Only one fiber has an update queue. Clone to create a new one.
  28623. queue1 = fiber.updateQueue = cloneUpdateQueue(queue2);
  28624. }
  28625. } else {
  28626. if (queue2 === null) {
  28627. // Only one fiber has an update queue. Clone to create a new one.
  28628. queue2 = alternate.updateQueue = cloneUpdateQueue(queue1);
  28629. } else {
  28630. // Both owners have an update queue.
  28631. }
  28632. }
  28633. }
  28634. if (queue2 === null || queue1 === queue2) {
  28635. // There's only a single queue.
  28636. appendUpdateToQueue(queue1, update);
  28637. } else {
  28638. // There are two queues. We need to append the update to both queues,
  28639. // while accounting for the persistent structure of the list — we don't
  28640. // want the same update to be added multiple times.
  28641. if (queue1.lastUpdate === null || queue2.lastUpdate === null) {
  28642. // One of the queues is not empty. We must add the update to both queues.
  28643. appendUpdateToQueue(queue1, update);
  28644. appendUpdateToQueue(queue2, update);
  28645. } else {
  28646. // Both queues are non-empty. The last update is the same in both lists,
  28647. // because of structural sharing. So, only append to one of the lists.
  28648. appendUpdateToQueue(queue1, update);
  28649. // But we still need to update the `lastUpdate` pointer of queue2.
  28650. queue2.lastUpdate = update;
  28651. }
  28652. }
  28653. {
  28654. if (fiber.tag === ClassComponent && (currentlyProcessingQueue === queue1 || queue2 !== null && currentlyProcessingQueue === queue2) && !didWarnUpdateInsideUpdate) {
  28655. warningWithoutStack$1(false, 'An update (setState, replaceState, or forceUpdate) was scheduled ' + 'from inside an update function. Update functions should be pure, ' + 'with zero side-effects. Consider using componentDidUpdate or a ' + 'callback.');
  28656. didWarnUpdateInsideUpdate = true;
  28657. }
  28658. }
  28659. }
  28660. function enqueueCapturedUpdate(workInProgress, update) {
  28661. // Captured updates go into a separate list, and only on the work-in-
  28662. // progress queue.
  28663. var workInProgressQueue = workInProgress.updateQueue;
  28664. if (workInProgressQueue === null) {
  28665. workInProgressQueue = workInProgress.updateQueue = createUpdateQueue(workInProgress.memoizedState);
  28666. } else {
  28667. // TODO: I put this here rather than createWorkInProgress so that we don't
  28668. // clone the queue unnecessarily. There's probably a better way to
  28669. // structure this.
  28670. workInProgressQueue = ensureWorkInProgressQueueIsAClone(workInProgress, workInProgressQueue);
  28671. }
  28672. // Append the update to the end of the list.
  28673. if (workInProgressQueue.lastCapturedUpdate === null) {
  28674. // This is the first render phase update
  28675. workInProgressQueue.firstCapturedUpdate = workInProgressQueue.lastCapturedUpdate = update;
  28676. } else {
  28677. workInProgressQueue.lastCapturedUpdate.next = update;
  28678. workInProgressQueue.lastCapturedUpdate = update;
  28679. }
  28680. }
  28681. function ensureWorkInProgressQueueIsAClone(workInProgress, queue) {
  28682. var current = workInProgress.alternate;
  28683. if (current !== null) {
  28684. // If the work-in-progress queue is equal to the current queue,
  28685. // we need to clone it first.
  28686. if (queue === current.updateQueue) {
  28687. queue = workInProgress.updateQueue = cloneUpdateQueue(queue);
  28688. }
  28689. }
  28690. return queue;
  28691. }
  28692. function getStateFromUpdate(workInProgress, queue, update, prevState, nextProps, instance) {
  28693. switch (update.tag) {
  28694. case ReplaceState:
  28695. {
  28696. var _payload = update.payload;
  28697. if (typeof _payload === 'function') {
  28698. // Updater function
  28699. {
  28700. enterDisallowedContextReadInDEV();
  28701. if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) {
  28702. _payload.call(instance, prevState, nextProps);
  28703. }
  28704. }
  28705. var nextState = _payload.call(instance, prevState, nextProps);
  28706. {
  28707. exitDisallowedContextReadInDEV();
  28708. }
  28709. return nextState;
  28710. }
  28711. // State object
  28712. return _payload;
  28713. }
  28714. case CaptureUpdate:
  28715. {
  28716. workInProgress.effectTag = workInProgress.effectTag & ~ShouldCapture | DidCapture;
  28717. }
  28718. // Intentional fallthrough
  28719. case UpdateState:
  28720. {
  28721. var _payload2 = update.payload;
  28722. var partialState = void 0;
  28723. if (typeof _payload2 === 'function') {
  28724. // Updater function
  28725. {
  28726. enterDisallowedContextReadInDEV();
  28727. if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) {
  28728. _payload2.call(instance, prevState, nextProps);
  28729. }
  28730. }
  28731. partialState = _payload2.call(instance, prevState, nextProps);
  28732. {
  28733. exitDisallowedContextReadInDEV();
  28734. }
  28735. } else {
  28736. // Partial state object
  28737. partialState = _payload2;
  28738. }
  28739. if (partialState === null || partialState === undefined) {
  28740. // Null and undefined are treated as no-ops.
  28741. return prevState;
  28742. }
  28743. // Merge the partial state and the previous state.
  28744. return _assign({}, prevState, partialState);
  28745. }
  28746. case ForceUpdate:
  28747. {
  28748. hasForceUpdate = true;
  28749. return prevState;
  28750. }
  28751. }
  28752. return prevState;
  28753. }
  28754. function processUpdateQueue(workInProgress, queue, props, instance, renderExpirationTime) {
  28755. hasForceUpdate = false;
  28756. queue = ensureWorkInProgressQueueIsAClone(workInProgress, queue);
  28757. {
  28758. currentlyProcessingQueue = queue;
  28759. }
  28760. // These values may change as we process the queue.
  28761. var newBaseState = queue.baseState;
  28762. var newFirstUpdate = null;
  28763. var newExpirationTime = NoWork;
  28764. // Iterate through the list of updates to compute the result.
  28765. var update = queue.firstUpdate;
  28766. var resultState = newBaseState;
  28767. while (update !== null) {
  28768. var updateExpirationTime = update.expirationTime;
  28769. if (updateExpirationTime < renderExpirationTime) {
  28770. // This update does not have sufficient priority. Skip it.
  28771. if (newFirstUpdate === null) {
  28772. // This is the first skipped update. It will be the first update in
  28773. // the new list.
  28774. newFirstUpdate = update;
  28775. // Since this is the first update that was skipped, the current result
  28776. // is the new base state.
  28777. newBaseState = resultState;
  28778. }
  28779. // Since this update will remain in the list, update the remaining
  28780. // expiration time.
  28781. if (newExpirationTime < updateExpirationTime) {
  28782. newExpirationTime = updateExpirationTime;
  28783. }
  28784. } else {
  28785. // This update does have sufficient priority.
  28786. // Mark the event time of this update as relevant to this render pass.
  28787. // TODO: This should ideally use the true event time of this update rather than
  28788. // its priority which is a derived and not reverseable value.
  28789. // TODO: We should skip this update if it was already committed but currently
  28790. // we have no way of detecting the difference between a committed and suspended
  28791. // update here.
  28792. markRenderEventTimeAndConfig(updateExpirationTime, update.suspenseConfig);
  28793. // Process it and compute a new result.
  28794. resultState = getStateFromUpdate(workInProgress, queue, update, resultState, props, instance);
  28795. var _callback = update.callback;
  28796. if (_callback !== null) {
  28797. workInProgress.effectTag |= Callback;
  28798. // Set this to null, in case it was mutated during an aborted render.
  28799. update.nextEffect = null;
  28800. if (queue.lastEffect === null) {
  28801. queue.firstEffect = queue.lastEffect = update;
  28802. } else {
  28803. queue.lastEffect.nextEffect = update;
  28804. queue.lastEffect = update;
  28805. }
  28806. }
  28807. }
  28808. // Continue to the next update.
  28809. update = update.next;
  28810. }
  28811. // Separately, iterate though the list of captured updates.
  28812. var newFirstCapturedUpdate = null;
  28813. update = queue.firstCapturedUpdate;
  28814. while (update !== null) {
  28815. var _updateExpirationTime = update.expirationTime;
  28816. if (_updateExpirationTime < renderExpirationTime) {
  28817. // This update does not have sufficient priority. Skip it.
  28818. if (newFirstCapturedUpdate === null) {
  28819. // This is the first skipped captured update. It will be the first
  28820. // update in the new list.
  28821. newFirstCapturedUpdate = update;
  28822. // If this is the first update that was skipped, the current result is
  28823. // the new base state.
  28824. if (newFirstUpdate === null) {
  28825. newBaseState = resultState;
  28826. }
  28827. }
  28828. // Since this update will remain in the list, update the remaining
  28829. // expiration time.
  28830. if (newExpirationTime < _updateExpirationTime) {
  28831. newExpirationTime = _updateExpirationTime;
  28832. }
  28833. } else {
  28834. // This update does have sufficient priority. Process it and compute
  28835. // a new result.
  28836. resultState = getStateFromUpdate(workInProgress, queue, update, resultState, props, instance);
  28837. var _callback2 = update.callback;
  28838. if (_callback2 !== null) {
  28839. workInProgress.effectTag |= Callback;
  28840. // Set this to null, in case it was mutated during an aborted render.
  28841. update.nextEffect = null;
  28842. if (queue.lastCapturedEffect === null) {
  28843. queue.firstCapturedEffect = queue.lastCapturedEffect = update;
  28844. } else {
  28845. queue.lastCapturedEffect.nextEffect = update;
  28846. queue.lastCapturedEffect = update;
  28847. }
  28848. }
  28849. }
  28850. update = update.next;
  28851. }
  28852. if (newFirstUpdate === null) {
  28853. queue.lastUpdate = null;
  28854. }
  28855. if (newFirstCapturedUpdate === null) {
  28856. queue.lastCapturedUpdate = null;
  28857. } else {
  28858. workInProgress.effectTag |= Callback;
  28859. }
  28860. if (newFirstUpdate === null && newFirstCapturedUpdate === null) {
  28861. // We processed every update, without skipping. That means the new base
  28862. // state is the same as the result state.
  28863. newBaseState = resultState;
  28864. }
  28865. queue.baseState = newBaseState;
  28866. queue.firstUpdate = newFirstUpdate;
  28867. queue.firstCapturedUpdate = newFirstCapturedUpdate;
  28868. // Set the remaining expiration time to be whatever is remaining in the queue.
  28869. // This should be fine because the only two other things that contribute to
  28870. // expiration time are props and context. We're already in the middle of the
  28871. // begin phase by the time we start processing the queue, so we've already
  28872. // dealt with the props. Context in components that specify
  28873. // shouldComponentUpdate is tricky; but we'll have to account for
  28874. // that regardless.
  28875. workInProgress.expirationTime = newExpirationTime;
  28876. workInProgress.memoizedState = resultState;
  28877. {
  28878. currentlyProcessingQueue = null;
  28879. }
  28880. }
  28881. function callCallback(callback, context) {
  28882. (function () {
  28883. if (!(typeof callback === 'function')) {
  28884. {
  28885. throw ReactError(Error('Invalid argument passed as callback. Expected a function. Instead received: ' + callback));
  28886. }
  28887. }
  28888. })();
  28889. callback.call(context);
  28890. }
  28891. function resetHasForceUpdateBeforeProcessing() {
  28892. hasForceUpdate = false;
  28893. }
  28894. function checkHasForceUpdateAfterProcessing() {
  28895. return hasForceUpdate;
  28896. }
  28897. function commitUpdateQueue(finishedWork, finishedQueue, instance, renderExpirationTime) {
  28898. // If the finished render included captured updates, and there are still
  28899. // lower priority updates left over, we need to keep the captured updates
  28900. // in the queue so that they are rebased and not dropped once we process the
  28901. // queue again at the lower priority.
  28902. if (finishedQueue.firstCapturedUpdate !== null) {
  28903. // Join the captured update list to the end of the normal list.
  28904. if (finishedQueue.lastUpdate !== null) {
  28905. finishedQueue.lastUpdate.next = finishedQueue.firstCapturedUpdate;
  28906. finishedQueue.lastUpdate = finishedQueue.lastCapturedUpdate;
  28907. }
  28908. // Clear the list of captured updates.
  28909. finishedQueue.firstCapturedUpdate = finishedQueue.lastCapturedUpdate = null;
  28910. }
  28911. // Commit the effects
  28912. commitUpdateEffects(finishedQueue.firstEffect, instance);
  28913. finishedQueue.firstEffect = finishedQueue.lastEffect = null;
  28914. commitUpdateEffects(finishedQueue.firstCapturedEffect, instance);
  28915. finishedQueue.firstCapturedEffect = finishedQueue.lastCapturedEffect = null;
  28916. }
  28917. function commitUpdateEffects(effect, instance) {
  28918. while (effect !== null) {
  28919. var _callback3 = effect.callback;
  28920. if (_callback3 !== null) {
  28921. effect.callback = null;
  28922. callCallback(_callback3, instance);
  28923. }
  28924. effect = effect.nextEffect;
  28925. }
  28926. }
  28927. var ReactCurrentBatchConfig = ReactSharedInternals.ReactCurrentBatchConfig;
  28928. function requestCurrentSuspenseConfig() {
  28929. return ReactCurrentBatchConfig.suspense;
  28930. }
  28931. var fakeInternalInstance = {};
  28932. var isArray$1 = Array.isArray;
  28933. // React.Component uses a shared frozen object by default.
  28934. // We'll use it to determine whether we need to initialize legacy refs.
  28935. var emptyRefsObject = new React.Component().refs;
  28936. var didWarnAboutStateAssignmentForComponent = void 0;
  28937. var didWarnAboutUninitializedState = void 0;
  28938. var didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate = void 0;
  28939. var didWarnAboutLegacyLifecyclesAndDerivedState = void 0;
  28940. var didWarnAboutUndefinedDerivedState = void 0;
  28941. var warnOnUndefinedDerivedState = void 0;
  28942. var warnOnInvalidCallback$1 = void 0;
  28943. var didWarnAboutDirectlyAssigningPropsToState = void 0;
  28944. var didWarnAboutContextTypeAndContextTypes = void 0;
  28945. var didWarnAboutInvalidateContextType = void 0;
  28946. {
  28947. didWarnAboutStateAssignmentForComponent = new Set();
  28948. didWarnAboutUninitializedState = new Set();
  28949. didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate = new Set();
  28950. didWarnAboutLegacyLifecyclesAndDerivedState = new Set();
  28951. didWarnAboutDirectlyAssigningPropsToState = new Set();
  28952. didWarnAboutUndefinedDerivedState = new Set();
  28953. didWarnAboutContextTypeAndContextTypes = new Set();
  28954. didWarnAboutInvalidateContextType = new Set();
  28955. var didWarnOnInvalidCallback = new Set();
  28956. warnOnInvalidCallback$1 = function (callback, callerName) {
  28957. if (callback === null || typeof callback === 'function') {
  28958. return;
  28959. }
  28960. var key = callerName + '_' + callback;
  28961. if (!didWarnOnInvalidCallback.has(key)) {
  28962. didWarnOnInvalidCallback.add(key);
  28963. warningWithoutStack$1(false, '%s(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callerName, callback);
  28964. }
  28965. };
  28966. warnOnUndefinedDerivedState = function (type, partialState) {
  28967. if (partialState === undefined) {
  28968. var componentName = getComponentName(type) || 'Component';
  28969. if (!didWarnAboutUndefinedDerivedState.has(componentName)) {
  28970. didWarnAboutUndefinedDerivedState.add(componentName);
  28971. warningWithoutStack$1(false, '%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. ' + 'You have returned undefined.', componentName);
  28972. }
  28973. }
  28974. };
  28975. // This is so gross but it's at least non-critical and can be removed if
  28976. // it causes problems. This is meant to give a nicer error message for
  28977. // ReactDOM15.unstable_renderSubtreeIntoContainer(reactDOM16Component,
  28978. // ...)) which otherwise throws a "_processChildContext is not a function"
  28979. // exception.
  28980. Object.defineProperty(fakeInternalInstance, '_processChildContext', {
  28981. enumerable: false,
  28982. value: function () {
  28983. (function () {
  28984. {
  28985. {
  28986. throw ReactError(Error('_processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn\'t supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.createPortal).'));
  28987. }
  28988. }
  28989. })();
  28990. }
  28991. });
  28992. Object.freeze(fakeInternalInstance);
  28993. }
  28994. function applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, nextProps) {
  28995. var prevState = workInProgress.memoizedState;
  28996. {
  28997. if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) {
  28998. // Invoke the function an extra time to help detect side-effects.
  28999. getDerivedStateFromProps(nextProps, prevState);
  29000. }
  29001. }
  29002. var partialState = getDerivedStateFromProps(nextProps, prevState);
  29003. {
  29004. warnOnUndefinedDerivedState(ctor, partialState);
  29005. }
  29006. // Merge the partial state and the previous state.
  29007. var memoizedState = partialState === null || partialState === undefined ? prevState : _assign({}, prevState, partialState);
  29008. workInProgress.memoizedState = memoizedState;
  29009. // Once the update queue is empty, persist the derived state onto the
  29010. // base state.
  29011. var updateQueue = workInProgress.updateQueue;
  29012. if (updateQueue !== null && workInProgress.expirationTime === NoWork) {
  29013. updateQueue.baseState = memoizedState;
  29014. }
  29015. }
  29016. var classComponentUpdater = {
  29017. isMounted: isMounted,
  29018. enqueueSetState: function (inst, payload, callback) {
  29019. var fiber = get(inst);
  29020. var currentTime = requestCurrentTime();
  29021. var suspenseConfig = requestCurrentSuspenseConfig();
  29022. var expirationTime = computeExpirationForFiber(currentTime, fiber, suspenseConfig);
  29023. var update = createUpdate(expirationTime, suspenseConfig);
  29024. update.payload = payload;
  29025. if (callback !== undefined && callback !== null) {
  29026. {
  29027. warnOnInvalidCallback$1(callback, 'setState');
  29028. }
  29029. update.callback = callback;
  29030. }
  29031. if (revertPassiveEffectsChange) {
  29032. flushPassiveEffects();
  29033. }
  29034. enqueueUpdate(fiber, update);
  29035. scheduleWork(fiber, expirationTime);
  29036. },
  29037. enqueueReplaceState: function (inst, payload, callback) {
  29038. var fiber = get(inst);
  29039. var currentTime = requestCurrentTime();
  29040. var suspenseConfig = requestCurrentSuspenseConfig();
  29041. var expirationTime = computeExpirationForFiber(currentTime, fiber, suspenseConfig);
  29042. var update = createUpdate(expirationTime, suspenseConfig);
  29043. update.tag = ReplaceState;
  29044. update.payload = payload;
  29045. if (callback !== undefined && callback !== null) {
  29046. {
  29047. warnOnInvalidCallback$1(callback, 'replaceState');
  29048. }
  29049. update.callback = callback;
  29050. }
  29051. if (revertPassiveEffectsChange) {
  29052. flushPassiveEffects();
  29053. }
  29054. enqueueUpdate(fiber, update);
  29055. scheduleWork(fiber, expirationTime);
  29056. },
  29057. enqueueForceUpdate: function (inst, callback) {
  29058. var fiber = get(inst);
  29059. var currentTime = requestCurrentTime();
  29060. var suspenseConfig = requestCurrentSuspenseConfig();
  29061. var expirationTime = computeExpirationForFiber(currentTime, fiber, suspenseConfig);
  29062. var update = createUpdate(expirationTime, suspenseConfig);
  29063. update.tag = ForceUpdate;
  29064. if (callback !== undefined && callback !== null) {
  29065. {
  29066. warnOnInvalidCallback$1(callback, 'forceUpdate');
  29067. }
  29068. update.callback = callback;
  29069. }
  29070. if (revertPassiveEffectsChange) {
  29071. flushPassiveEffects();
  29072. }
  29073. enqueueUpdate(fiber, update);
  29074. scheduleWork(fiber, expirationTime);
  29075. }
  29076. };
  29077. function checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext) {
  29078. var instance = workInProgress.stateNode;
  29079. if (typeof instance.shouldComponentUpdate === 'function') {
  29080. startPhaseTimer(workInProgress, 'shouldComponentUpdate');
  29081. var shouldUpdate = instance.shouldComponentUpdate(newProps, newState, nextContext);
  29082. stopPhaseTimer();
  29083. {
  29084. !(shouldUpdate !== undefined) ? warningWithoutStack$1(false, '%s.shouldComponentUpdate(): Returned undefined instead of a ' + 'boolean value. Make sure to return true or false.', getComponentName(ctor) || 'Component') : void 0;
  29085. }
  29086. return shouldUpdate;
  29087. }
  29088. if (ctor.prototype && ctor.prototype.isPureReactComponent) {
  29089. return !shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState);
  29090. }
  29091. return true;
  29092. }
  29093. function checkClassInstance(workInProgress, ctor, newProps) {
  29094. var instance = workInProgress.stateNode;
  29095. {
  29096. var name = getComponentName(ctor) || 'Component';
  29097. var renderPresent = instance.render;
  29098. if (!renderPresent) {
  29099. if (ctor.prototype && typeof ctor.prototype.render === 'function') {
  29100. warningWithoutStack$1(false, '%s(...): No `render` method found on the returned component ' + 'instance: did you accidentally return an object from the constructor?', name);
  29101. } else {
  29102. warningWithoutStack$1(false, '%s(...): No `render` method found on the returned component ' + 'instance: you may have forgotten to define `render`.', name);
  29103. }
  29104. }
  29105. var noGetInitialStateOnES6 = !instance.getInitialState || instance.getInitialState.isReactClassApproved || instance.state;
  29106. !noGetInitialStateOnES6 ? warningWithoutStack$1(false, 'getInitialState was defined on %s, a plain JavaScript class. ' + 'This is only supported for classes created using React.createClass. ' + 'Did you mean to define a state property instead?', name) : void 0;
  29107. var noGetDefaultPropsOnES6 = !instance.getDefaultProps || instance.getDefaultProps.isReactClassApproved;
  29108. !noGetDefaultPropsOnES6 ? warningWithoutStack$1(false, 'getDefaultProps was defined on %s, a plain JavaScript class. ' + 'This is only supported for classes created using React.createClass. ' + 'Use a static property to define defaultProps instead.', name) : void 0;
  29109. var noInstancePropTypes = !instance.propTypes;
  29110. !noInstancePropTypes ? warningWithoutStack$1(false, 'propTypes was defined as an instance property on %s. Use a static ' + 'property to define propTypes instead.', name) : void 0;
  29111. var noInstanceContextType = !instance.contextType;
  29112. !noInstanceContextType ? warningWithoutStack$1(false, 'contextType was defined as an instance property on %s. Use a static ' + 'property to define contextType instead.', name) : void 0;
  29113. if (disableLegacyContext) {
  29114. if (ctor.childContextTypes) {
  29115. warningWithoutStack$1(false, '%s uses the legacy childContextTypes API which is no longer supported. ' + 'Use React.createContext() instead.', name);
  29116. }
  29117. if (ctor.contextTypes) {
  29118. warningWithoutStack$1(false, '%s uses the legacy contextTypes API which is no longer supported. ' + 'Use React.createContext() with static contextType instead.', name);
  29119. }
  29120. } else {
  29121. var noInstanceContextTypes = !instance.contextTypes;
  29122. !noInstanceContextTypes ? warningWithoutStack$1(false, 'contextTypes was defined as an instance property on %s. Use a static ' + 'property to define contextTypes instead.', name) : void 0;
  29123. if (ctor.contextType && ctor.contextTypes && !didWarnAboutContextTypeAndContextTypes.has(ctor)) {
  29124. didWarnAboutContextTypeAndContextTypes.add(ctor);
  29125. warningWithoutStack$1(false, '%s declares both contextTypes and contextType static properties. ' + 'The legacy contextTypes property will be ignored.', name);
  29126. }
  29127. }
  29128. var noComponentShouldUpdate = typeof instance.componentShouldUpdate !== 'function';
  29129. !noComponentShouldUpdate ? warningWithoutStack$1(false, '%s has a method called ' + 'componentShouldUpdate(). Did you mean shouldComponentUpdate()? ' + 'The name is phrased as a question because the function is ' + 'expected to return a value.', name) : void 0;
  29130. if (ctor.prototype && ctor.prototype.isPureReactComponent && typeof instance.shouldComponentUpdate !== 'undefined') {
  29131. warningWithoutStack$1(false, '%s has a method called shouldComponentUpdate(). ' + 'shouldComponentUpdate should not be used when extending React.PureComponent. ' + 'Please extend React.Component if shouldComponentUpdate is used.', getComponentName(ctor) || 'A pure component');
  29132. }
  29133. var noComponentDidUnmount = typeof instance.componentDidUnmount !== 'function';
  29134. !noComponentDidUnmount ? warningWithoutStack$1(false, '%s has a method called ' + 'componentDidUnmount(). But there is no such lifecycle method. ' + 'Did you mean componentWillUnmount()?', name) : void 0;
  29135. var noComponentDidReceiveProps = typeof instance.componentDidReceiveProps !== 'function';
  29136. !noComponentDidReceiveProps ? warningWithoutStack$1(false, '%s has a method called ' + 'componentDidReceiveProps(). But there is no such lifecycle method. ' + 'If you meant to update the state in response to changing props, ' + 'use componentWillReceiveProps(). If you meant to fetch data or ' + 'run side-effects or mutations after React has updated the UI, use componentDidUpdate().', name) : void 0;
  29137. var noComponentWillRecieveProps = typeof instance.componentWillRecieveProps !== 'function';
  29138. !noComponentWillRecieveProps ? warningWithoutStack$1(false, '%s has a method called ' + 'componentWillRecieveProps(). Did you mean componentWillReceiveProps()?', name) : void 0;
  29139. var noUnsafeComponentWillRecieveProps = typeof instance.UNSAFE_componentWillRecieveProps !== 'function';
  29140. !noUnsafeComponentWillRecieveProps ? warningWithoutStack$1(false, '%s has a method called ' + 'UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?', name) : void 0;
  29141. var hasMutatedProps = instance.props !== newProps;
  29142. !(instance.props === undefined || !hasMutatedProps) ? warningWithoutStack$1(false, '%s(...): When calling super() in `%s`, make sure to pass ' + "up the same props that your component's constructor was passed.", name, name) : void 0;
  29143. var noInstanceDefaultProps = !instance.defaultProps;
  29144. !noInstanceDefaultProps ? warningWithoutStack$1(false, 'Setting defaultProps as an instance property on %s is not supported and will be ignored.' + ' Instead, define defaultProps as a static property on %s.', name, name) : void 0;
  29145. if (typeof instance.getSnapshotBeforeUpdate === 'function' && typeof instance.componentDidUpdate !== 'function' && !didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.has(ctor)) {
  29146. didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.add(ctor);
  29147. warningWithoutStack$1(false, '%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). ' + 'This component defines getSnapshotBeforeUpdate() only.', getComponentName(ctor));
  29148. }
  29149. var noInstanceGetDerivedStateFromProps = typeof instance.getDerivedStateFromProps !== 'function';
  29150. !noInstanceGetDerivedStateFromProps ? warningWithoutStack$1(false, '%s: getDerivedStateFromProps() is defined as an instance method ' + 'and will be ignored. Instead, declare it as a static method.', name) : void 0;
  29151. var noInstanceGetDerivedStateFromCatch = typeof instance.getDerivedStateFromError !== 'function';
  29152. !noInstanceGetDerivedStateFromCatch ? warningWithoutStack$1(false, '%s: getDerivedStateFromError() is defined as an instance method ' + 'and will be ignored. Instead, declare it as a static method.', name) : void 0;
  29153. var noStaticGetSnapshotBeforeUpdate = typeof ctor.getSnapshotBeforeUpdate !== 'function';
  29154. !noStaticGetSnapshotBeforeUpdate ? warningWithoutStack$1(false, '%s: getSnapshotBeforeUpdate() is defined as a static method ' + 'and will be ignored. Instead, declare it as an instance method.', name) : void 0;
  29155. var _state = instance.state;
  29156. if (_state && (typeof _state !== 'object' || isArray$1(_state))) {
  29157. warningWithoutStack$1(false, '%s.state: must be set to an object or null', name);
  29158. }
  29159. if (typeof instance.getChildContext === 'function') {
  29160. !(typeof ctor.childContextTypes === 'object') ? warningWithoutStack$1(false, '%s.getChildContext(): childContextTypes must be defined in order to ' + 'use getChildContext().', name) : void 0;
  29161. }
  29162. }
  29163. }
  29164. function adoptClassInstance(workInProgress, instance) {
  29165. instance.updater = classComponentUpdater;
  29166. workInProgress.stateNode = instance;
  29167. // The instance needs access to the fiber so that it can schedule updates
  29168. set(instance, workInProgress);
  29169. {
  29170. instance._reactInternalInstance = fakeInternalInstance;
  29171. }
  29172. }
  29173. function constructClassInstance(workInProgress, ctor, props, renderExpirationTime) {
  29174. var isLegacyContextConsumer = false;
  29175. var unmaskedContext = emptyContextObject;
  29176. var context = emptyContextObject;
  29177. var contextType = ctor.contextType;
  29178. {
  29179. if ('contextType' in ctor) {
  29180. var isValid =
  29181. // Allow null for conditional declaration
  29182. contextType === null || contextType !== undefined && contextType.$$typeof === REACT_CONTEXT_TYPE && contextType._context === undefined; // Not a <Context.Consumer>
  29183. if (!isValid && !didWarnAboutInvalidateContextType.has(ctor)) {
  29184. didWarnAboutInvalidateContextType.add(ctor);
  29185. var addendum = '';
  29186. if (contextType === undefined) {
  29187. addendum = ' However, it is set to undefined. ' + 'This can be caused by a typo or by mixing up named and default imports. ' + 'This can also happen due to a circular dependency, so ' + 'try moving the createContext() call to a separate file.';
  29188. } else if (typeof contextType !== 'object') {
  29189. addendum = ' However, it is set to a ' + typeof contextType + '.';
  29190. } else if (contextType.$$typeof === REACT_PROVIDER_TYPE) {
  29191. addendum = ' Did you accidentally pass the Context.Provider instead?';
  29192. } else if (contextType._context !== undefined) {
  29193. // <Context.Consumer>
  29194. addendum = ' Did you accidentally pass the Context.Consumer instead?';
  29195. } else {
  29196. addendum = ' However, it is set to an object with keys {' + Object.keys(contextType).join(', ') + '}.';
  29197. }
  29198. warningWithoutStack$1(false, '%s defines an invalid contextType. ' + 'contextType should point to the Context object returned by React.createContext().%s', getComponentName(ctor) || 'Component', addendum);
  29199. }
  29200. }
  29201. }
  29202. if (typeof contextType === 'object' && contextType !== null) {
  29203. context = readContext(contextType);
  29204. } else if (!disableLegacyContext) {
  29205. unmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
  29206. var contextTypes = ctor.contextTypes;
  29207. isLegacyContextConsumer = contextTypes !== null && contextTypes !== undefined;
  29208. context = isLegacyContextConsumer ? getMaskedContext(workInProgress, unmaskedContext) : emptyContextObject;
  29209. }
  29210. // Instantiate twice to help detect side-effects.
  29211. {
  29212. if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) {
  29213. new ctor(props, context); // eslint-disable-line no-new
  29214. }
  29215. }
  29216. var instance = new ctor(props, context);
  29217. var state = workInProgress.memoizedState = instance.state !== null && instance.state !== undefined ? instance.state : null;
  29218. adoptClassInstance(workInProgress, instance);
  29219. {
  29220. if (typeof ctor.getDerivedStateFromProps === 'function' && state === null) {
  29221. var componentName = getComponentName(ctor) || 'Component';
  29222. if (!didWarnAboutUninitializedState.has(componentName)) {
  29223. didWarnAboutUninitializedState.add(componentName);
  29224. warningWithoutStack$1(false, '`%s` uses `getDerivedStateFromProps` but its initial state is ' + '%s. This is not recommended. Instead, define the initial state by ' + 'assigning an object to `this.state` in the constructor of `%s`. ' + 'This ensures that `getDerivedStateFromProps` arguments have a consistent shape.', componentName, instance.state === null ? 'null' : 'undefined', componentName);
  29225. }
  29226. }
  29227. // If new component APIs are defined, "unsafe" lifecycles won't be called.
  29228. // Warn about these lifecycles if they are present.
  29229. // Don't warn about react-lifecycles-compat polyfilled methods though.
  29230. if (typeof ctor.getDerivedStateFromProps === 'function' || typeof instance.getSnapshotBeforeUpdate === 'function') {
  29231. var foundWillMountName = null;
  29232. var foundWillReceivePropsName = null;
  29233. var foundWillUpdateName = null;
  29234. if (typeof instance.componentWillMount === 'function' && instance.componentWillMount.__suppressDeprecationWarning !== true) {
  29235. foundWillMountName = 'componentWillMount';
  29236. } else if (typeof instance.UNSAFE_componentWillMount === 'function') {
  29237. foundWillMountName = 'UNSAFE_componentWillMount';
  29238. }
  29239. if (typeof instance.componentWillReceiveProps === 'function' && instance.componentWillReceiveProps.__suppressDeprecationWarning !== true) {
  29240. foundWillReceivePropsName = 'componentWillReceiveProps';
  29241. } else if (typeof instance.UNSAFE_componentWillReceiveProps === 'function') {
  29242. foundWillReceivePropsName = 'UNSAFE_componentWillReceiveProps';
  29243. }
  29244. if (typeof instance.componentWillUpdate === 'function' && instance.componentWillUpdate.__suppressDeprecationWarning !== true) {
  29245. foundWillUpdateName = 'componentWillUpdate';
  29246. } else if (typeof instance.UNSAFE_componentWillUpdate === 'function') {
  29247. foundWillUpdateName = 'UNSAFE_componentWillUpdate';
  29248. }
  29249. if (foundWillMountName !== null || foundWillReceivePropsName !== null || foundWillUpdateName !== null) {
  29250. var _componentName = getComponentName(ctor) || 'Component';
  29251. var newApiName = typeof ctor.getDerivedStateFromProps === 'function' ? 'getDerivedStateFromProps()' : 'getSnapshotBeforeUpdate()';
  29252. if (!didWarnAboutLegacyLifecyclesAndDerivedState.has(_componentName)) {
  29253. didWarnAboutLegacyLifecyclesAndDerivedState.add(_componentName);
  29254. warningWithoutStack$1(false, 'Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n' + '%s uses %s but also contains the following legacy lifecycles:%s%s%s\n\n' + 'The above lifecycles should be removed. Learn more about this warning here:\n' + 'https://fb.me/react-async-component-lifecycle-hooks', _componentName, newApiName, foundWillMountName !== null ? '\n ' + foundWillMountName : '', foundWillReceivePropsName !== null ? '\n ' + foundWillReceivePropsName : '', foundWillUpdateName !== null ? '\n ' + foundWillUpdateName : '');
  29255. }
  29256. }
  29257. }
  29258. }
  29259. // Cache unmasked context so we can avoid recreating masked context unless necessary.
  29260. // ReactFiberContext usually updates this cache but can't for newly-created instances.
  29261. if (isLegacyContextConsumer) {
  29262. cacheContext(workInProgress, unmaskedContext, context);
  29263. }
  29264. return instance;
  29265. }
  29266. function callComponentWillMount(workInProgress, instance) {
  29267. startPhaseTimer(workInProgress, 'componentWillMount');
  29268. var oldState = instance.state;
  29269. if (typeof instance.componentWillMount === 'function') {
  29270. instance.componentWillMount();
  29271. }
  29272. if (typeof instance.UNSAFE_componentWillMount === 'function') {
  29273. instance.UNSAFE_componentWillMount();
  29274. }
  29275. stopPhaseTimer();
  29276. if (oldState !== instance.state) {
  29277. {
  29278. warningWithoutStack$1(false, '%s.componentWillMount(): Assigning directly to this.state is ' + "deprecated (except inside a component's " + 'constructor). Use setState instead.', getComponentName(workInProgress.type) || 'Component');
  29279. }
  29280. classComponentUpdater.enqueueReplaceState(instance, instance.state, null);
  29281. }
  29282. }
  29283. function callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext) {
  29284. var oldState = instance.state;
  29285. startPhaseTimer(workInProgress, 'componentWillReceiveProps');
  29286. if (typeof instance.componentWillReceiveProps === 'function') {
  29287. instance.componentWillReceiveProps(newProps, nextContext);
  29288. }
  29289. if (typeof instance.UNSAFE_componentWillReceiveProps === 'function') {
  29290. instance.UNSAFE_componentWillReceiveProps(newProps, nextContext);
  29291. }
  29292. stopPhaseTimer();
  29293. if (instance.state !== oldState) {
  29294. {
  29295. var componentName = getComponentName(workInProgress.type) || 'Component';
  29296. if (!didWarnAboutStateAssignmentForComponent.has(componentName)) {
  29297. didWarnAboutStateAssignmentForComponent.add(componentName);
  29298. warningWithoutStack$1(false, '%s.componentWillReceiveProps(): Assigning directly to ' + "this.state is deprecated (except inside a component's " + 'constructor). Use setState instead.', componentName);
  29299. }
  29300. }
  29301. classComponentUpdater.enqueueReplaceState(instance, instance.state, null);
  29302. }
  29303. }
  29304. // Invokes the mount life-cycles on a previously never rendered instance.
  29305. function mountClassInstance(workInProgress, ctor, newProps, renderExpirationTime) {
  29306. {
  29307. checkClassInstance(workInProgress, ctor, newProps);
  29308. }
  29309. var instance = workInProgress.stateNode;
  29310. instance.props = newProps;
  29311. instance.state = workInProgress.memoizedState;
  29312. instance.refs = emptyRefsObject;
  29313. var contextType = ctor.contextType;
  29314. if (typeof contextType === 'object' && contextType !== null) {
  29315. instance.context = readContext(contextType);
  29316. } else if (disableLegacyContext) {
  29317. instance.context = emptyContextObject;
  29318. } else {
  29319. var unmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
  29320. instance.context = getMaskedContext(workInProgress, unmaskedContext);
  29321. }
  29322. {
  29323. if (instance.state === newProps) {
  29324. var componentName = getComponentName(ctor) || 'Component';
  29325. if (!didWarnAboutDirectlyAssigningPropsToState.has(componentName)) {
  29326. didWarnAboutDirectlyAssigningPropsToState.add(componentName);
  29327. warningWithoutStack$1(false, '%s: It is not recommended to assign props directly to state ' + "because updates to props won't be reflected in state. " + 'In most cases, it is better to use props directly.', componentName);
  29328. }
  29329. }
  29330. if (workInProgress.mode & StrictMode) {
  29331. ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress, instance);
  29332. }
  29333. if (warnAboutDeprecatedLifecycles) {
  29334. ReactStrictModeWarnings.recordUnsafeLifecycleWarnings(workInProgress, instance);
  29335. }
  29336. }
  29337. var updateQueue = workInProgress.updateQueue;
  29338. if (updateQueue !== null) {
  29339. processUpdateQueue(workInProgress, updateQueue, newProps, instance, renderExpirationTime);
  29340. instance.state = workInProgress.memoizedState;
  29341. }
  29342. var getDerivedStateFromProps = ctor.getDerivedStateFromProps;
  29343. if (typeof getDerivedStateFromProps === 'function') {
  29344. applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps);
  29345. instance.state = workInProgress.memoizedState;
  29346. }
  29347. // In order to support react-lifecycles-compat polyfilled components,
  29348. // Unsafe lifecycles should not be invoked for components using the new APIs.
  29349. if (typeof ctor.getDerivedStateFromProps !== 'function' && typeof instance.getSnapshotBeforeUpdate !== 'function' && (typeof instance.UNSAFE_componentWillMount === 'function' || typeof instance.componentWillMount === 'function')) {
  29350. callComponentWillMount(workInProgress, instance);
  29351. // If we had additional state updates during this life-cycle, let's
  29352. // process them now.
  29353. updateQueue = workInProgress.updateQueue;
  29354. if (updateQueue !== null) {
  29355. processUpdateQueue(workInProgress, updateQueue, newProps, instance, renderExpirationTime);
  29356. instance.state = workInProgress.memoizedState;
  29357. }
  29358. }
  29359. if (typeof instance.componentDidMount === 'function') {
  29360. workInProgress.effectTag |= Update;
  29361. }
  29362. }
  29363. function resumeMountClassInstance(workInProgress, ctor, newProps, renderExpirationTime) {
  29364. var instance = workInProgress.stateNode;
  29365. var oldProps = workInProgress.memoizedProps;
  29366. instance.props = oldProps;
  29367. var oldContext = instance.context;
  29368. var contextType = ctor.contextType;
  29369. var nextContext = emptyContextObject;
  29370. if (typeof contextType === 'object' && contextType !== null) {
  29371. nextContext = readContext(contextType);
  29372. } else if (!disableLegacyContext) {
  29373. var nextLegacyUnmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
  29374. nextContext = getMaskedContext(workInProgress, nextLegacyUnmaskedContext);
  29375. }
  29376. var getDerivedStateFromProps = ctor.getDerivedStateFromProps;
  29377. var hasNewLifecycles = typeof getDerivedStateFromProps === 'function' || typeof instance.getSnapshotBeforeUpdate === 'function';
  29378. // Note: During these life-cycles, instance.props/instance.state are what
  29379. // ever the previously attempted to render - not the "current". However,
  29380. // during componentDidUpdate we pass the "current" props.
  29381. // In order to support react-lifecycles-compat polyfilled components,
  29382. // Unsafe lifecycles should not be invoked for components using the new APIs.
  29383. if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillReceiveProps === 'function' || typeof instance.componentWillReceiveProps === 'function')) {
  29384. if (oldProps !== newProps || oldContext !== nextContext) {
  29385. callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext);
  29386. }
  29387. }
  29388. resetHasForceUpdateBeforeProcessing();
  29389. var oldState = workInProgress.memoizedState;
  29390. var newState = instance.state = oldState;
  29391. var updateQueue = workInProgress.updateQueue;
  29392. if (updateQueue !== null) {
  29393. processUpdateQueue(workInProgress, updateQueue, newProps, instance, renderExpirationTime);
  29394. newState = workInProgress.memoizedState;
  29395. }
  29396. if (oldProps === newProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing()) {
  29397. // If an update was already in progress, we should schedule an Update
  29398. // effect even though we're bailing out, so that cWU/cDU are called.
  29399. if (typeof instance.componentDidMount === 'function') {
  29400. workInProgress.effectTag |= Update;
  29401. }
  29402. return false;
  29403. }
  29404. if (typeof getDerivedStateFromProps === 'function') {
  29405. applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps);
  29406. newState = workInProgress.memoizedState;
  29407. }
  29408. var shouldUpdate = checkHasForceUpdateAfterProcessing() || checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext);
  29409. if (shouldUpdate) {
  29410. // In order to support react-lifecycles-compat polyfilled components,
  29411. // Unsafe lifecycles should not be invoked for components using the new APIs.
  29412. if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillMount === 'function' || typeof instance.componentWillMount === 'function')) {
  29413. startPhaseTimer(workInProgress, 'componentWillMount');
  29414. if (typeof instance.componentWillMount === 'function') {
  29415. instance.componentWillMount();
  29416. }
  29417. if (typeof instance.UNSAFE_componentWillMount === 'function') {
  29418. instance.UNSAFE_componentWillMount();
  29419. }
  29420. stopPhaseTimer();
  29421. }
  29422. if (typeof instance.componentDidMount === 'function') {
  29423. workInProgress.effectTag |= Update;
  29424. }
  29425. } else {
  29426. // If an update was already in progress, we should schedule an Update
  29427. // effect even though we're bailing out, so that cWU/cDU are called.
  29428. if (typeof instance.componentDidMount === 'function') {
  29429. workInProgress.effectTag |= Update;
  29430. }
  29431. // If shouldComponentUpdate returned false, we should still update the
  29432. // memoized state to indicate that this work can be reused.
  29433. workInProgress.memoizedProps = newProps;
  29434. workInProgress.memoizedState = newState;
  29435. }
  29436. // Update the existing instance's state, props, and context pointers even
  29437. // if shouldComponentUpdate returns false.
  29438. instance.props = newProps;
  29439. instance.state = newState;
  29440. instance.context = nextContext;
  29441. return shouldUpdate;
  29442. }
  29443. // Invokes the update life-cycles and returns false if it shouldn't rerender.
  29444. function updateClassInstance(current, workInProgress, ctor, newProps, renderExpirationTime) {
  29445. var instance = workInProgress.stateNode;
  29446. var oldProps = workInProgress.memoizedProps;
  29447. instance.props = workInProgress.type === workInProgress.elementType ? oldProps : resolveDefaultProps(workInProgress.type, oldProps);
  29448. var oldContext = instance.context;
  29449. var contextType = ctor.contextType;
  29450. var nextContext = emptyContextObject;
  29451. if (typeof contextType === 'object' && contextType !== null) {
  29452. nextContext = readContext(contextType);
  29453. } else if (!disableLegacyContext) {
  29454. var nextUnmaskedContext = getUnmaskedContext(workInProgress, ctor, true);
  29455. nextContext = getMaskedContext(workInProgress, nextUnmaskedContext);
  29456. }
  29457. var getDerivedStateFromProps = ctor.getDerivedStateFromProps;
  29458. var hasNewLifecycles = typeof getDerivedStateFromProps === 'function' || typeof instance.getSnapshotBeforeUpdate === 'function';
  29459. // Note: During these life-cycles, instance.props/instance.state are what
  29460. // ever the previously attempted to render - not the "current". However,
  29461. // during componentDidUpdate we pass the "current" props.
  29462. // In order to support react-lifecycles-compat polyfilled components,
  29463. // Unsafe lifecycles should not be invoked for components using the new APIs.
  29464. if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillReceiveProps === 'function' || typeof instance.componentWillReceiveProps === 'function')) {
  29465. if (oldProps !== newProps || oldContext !== nextContext) {
  29466. callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext);
  29467. }
  29468. }
  29469. resetHasForceUpdateBeforeProcessing();
  29470. var oldState = workInProgress.memoizedState;
  29471. var newState = instance.state = oldState;
  29472. var updateQueue = workInProgress.updateQueue;
  29473. if (updateQueue !== null) {
  29474. processUpdateQueue(workInProgress, updateQueue, newProps, instance, renderExpirationTime);
  29475. newState = workInProgress.memoizedState;
  29476. }
  29477. if (oldProps === newProps && oldState === newState && !hasContextChanged() && !checkHasForceUpdateAfterProcessing()) {
  29478. // If an update was already in progress, we should schedule an Update
  29479. // effect even though we're bailing out, so that cWU/cDU are called.
  29480. if (typeof instance.componentDidUpdate === 'function') {
  29481. if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) {
  29482. workInProgress.effectTag |= Update;
  29483. }
  29484. }
  29485. if (typeof instance.getSnapshotBeforeUpdate === 'function') {
  29486. if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) {
  29487. workInProgress.effectTag |= Snapshot;
  29488. }
  29489. }
  29490. return false;
  29491. }
  29492. if (typeof getDerivedStateFromProps === 'function') {
  29493. applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, newProps);
  29494. newState = workInProgress.memoizedState;
  29495. }
  29496. var shouldUpdate = checkHasForceUpdateAfterProcessing() || checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext);
  29497. if (shouldUpdate) {
  29498. // In order to support react-lifecycles-compat polyfilled components,
  29499. // Unsafe lifecycles should not be invoked for components using the new APIs.
  29500. if (!hasNewLifecycles && (typeof instance.UNSAFE_componentWillUpdate === 'function' || typeof instance.componentWillUpdate === 'function')) {
  29501. startPhaseTimer(workInProgress, 'componentWillUpdate');
  29502. if (typeof instance.componentWillUpdate === 'function') {
  29503. instance.componentWillUpdate(newProps, newState, nextContext);
  29504. }
  29505. if (typeof instance.UNSAFE_componentWillUpdate === 'function') {
  29506. instance.UNSAFE_componentWillUpdate(newProps, newState, nextContext);
  29507. }
  29508. stopPhaseTimer();
  29509. }
  29510. if (typeof instance.componentDidUpdate === 'function') {
  29511. workInProgress.effectTag |= Update;
  29512. }
  29513. if (typeof instance.getSnapshotBeforeUpdate === 'function') {
  29514. workInProgress.effectTag |= Snapshot;
  29515. }
  29516. } else {
  29517. // If an update was already in progress, we should schedule an Update
  29518. // effect even though we're bailing out, so that cWU/cDU are called.
  29519. if (typeof instance.componentDidUpdate === 'function') {
  29520. if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) {
  29521. workInProgress.effectTag |= Update;
  29522. }
  29523. }
  29524. if (typeof instance.getSnapshotBeforeUpdate === 'function') {
  29525. if (oldProps !== current.memoizedProps || oldState !== current.memoizedState) {
  29526. workInProgress.effectTag |= Snapshot;
  29527. }
  29528. }
  29529. // If shouldComponentUpdate returned false, we should still update the
  29530. // memoized props/state to indicate that this work can be reused.
  29531. workInProgress.memoizedProps = newProps;
  29532. workInProgress.memoizedState = newState;
  29533. }
  29534. // Update the existing instance's state, props, and context pointers even
  29535. // if shouldComponentUpdate returns false.
  29536. instance.props = newProps;
  29537. instance.state = newState;
  29538. instance.context = nextContext;
  29539. return shouldUpdate;
  29540. }
  29541. var didWarnAboutMaps = void 0;
  29542. var didWarnAboutGenerators = void 0;
  29543. var didWarnAboutStringRefInStrictMode = void 0;
  29544. var ownerHasKeyUseWarning = void 0;
  29545. var ownerHasFunctionTypeWarning = void 0;
  29546. var warnForMissingKey = function (child) {};
  29547. {
  29548. didWarnAboutMaps = false;
  29549. didWarnAboutGenerators = false;
  29550. didWarnAboutStringRefInStrictMode = {};
  29551. /**
  29552. * Warn if there's no key explicitly set on dynamic arrays of children or
  29553. * object keys are not valid. This allows us to keep track of children between
  29554. * updates.
  29555. */
  29556. ownerHasKeyUseWarning = {};
  29557. ownerHasFunctionTypeWarning = {};
  29558. warnForMissingKey = function (child) {
  29559. if (child === null || typeof child !== 'object') {
  29560. return;
  29561. }
  29562. if (!child._store || child._store.validated || child.key != null) {
  29563. return;
  29564. }
  29565. (function () {
  29566. if (!(typeof child._store === 'object')) {
  29567. {
  29568. throw ReactError(Error('React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.'));
  29569. }
  29570. }
  29571. })();
  29572. child._store.validated = true;
  29573. var currentComponentErrorInfo = 'Each child in a list should have a unique ' + '"key" prop. See https://fb.me/react-warning-keys for ' + 'more information.' + getCurrentFiberStackInDev();
  29574. if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
  29575. return;
  29576. }
  29577. ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
  29578. warning$1(false, 'Each child in a list should have a unique ' + '"key" prop. See https://fb.me/react-warning-keys for ' + 'more information.');
  29579. };
  29580. }
  29581. var isArray = Array.isArray;
  29582. function coerceRef(returnFiber, current$$1, element) {
  29583. var mixedRef = element.ref;
  29584. if (mixedRef !== null && typeof mixedRef !== 'function' && typeof mixedRef !== 'object') {
  29585. {
  29586. if (returnFiber.mode & StrictMode) {
  29587. var componentName = getComponentName(returnFiber.type) || 'Component';
  29588. if (!didWarnAboutStringRefInStrictMode[componentName]) {
  29589. warningWithoutStack$1(false, 'A string ref, "%s", has been found within a strict mode tree. ' + 'String refs are a source of potential bugs and should be avoided. ' + 'We recommend using createRef() instead.' + '\n%s' + '\n\nLearn more about using refs safely here:' + '\nhttps://fb.me/react-strict-mode-string-ref', mixedRef, getStackByFiberInDevAndProd(returnFiber));
  29590. didWarnAboutStringRefInStrictMode[componentName] = true;
  29591. }
  29592. }
  29593. }
  29594. if (element._owner) {
  29595. var owner = element._owner;
  29596. var inst = void 0;
  29597. if (owner) {
  29598. var ownerFiber = owner;
  29599. (function () {
  29600. if (!(ownerFiber.tag === ClassComponent)) {
  29601. {
  29602. throw ReactError(Error('Function components cannot have refs. Did you mean to use React.forwardRef()?'));
  29603. }
  29604. }
  29605. })();
  29606. inst = ownerFiber.stateNode;
  29607. }
  29608. (function () {
  29609. if (!inst) {
  29610. {
  29611. throw ReactError(Error('Missing owner for string ref ' + mixedRef + '. This error is likely caused by a bug in React. Please file an issue.'));
  29612. }
  29613. }
  29614. })();
  29615. var stringRef = '' + mixedRef;
  29616. // Check if previous string ref matches new string ref
  29617. if (current$$1 !== null && current$$1.ref !== null && typeof current$$1.ref === 'function' && current$$1.ref._stringRef === stringRef) {
  29618. return current$$1.ref;
  29619. }
  29620. var ref = function (value) {
  29621. var refs = inst.refs;
  29622. if (refs === emptyRefsObject) {
  29623. // This is a lazy pooled frozen object, so we need to initialize.
  29624. refs = inst.refs = {};
  29625. }
  29626. if (value === null) {
  29627. delete refs[stringRef];
  29628. } else {
  29629. refs[stringRef] = value;
  29630. }
  29631. };
  29632. ref._stringRef = stringRef;
  29633. return ref;
  29634. } else {
  29635. (function () {
  29636. if (!(typeof mixedRef === 'string')) {
  29637. {
  29638. throw ReactError(Error('Expected ref to be a function, a string, an object returned by React.createRef(), or null.'));
  29639. }
  29640. }
  29641. })();
  29642. (function () {
  29643. if (!element._owner) {
  29644. {
  29645. throw ReactError(Error('Element ref was specified as a string (' + mixedRef + ') but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a function component\n2. You may be adding a ref to a component that was not created inside a component\'s render method\n3. You have multiple copies of React loaded\nSee https://fb.me/react-refs-must-have-owner for more information.'));
  29646. }
  29647. }
  29648. })();
  29649. }
  29650. }
  29651. return mixedRef;
  29652. }
  29653. function throwOnInvalidObjectType(returnFiber, newChild) {
  29654. if (returnFiber.type !== 'textarea') {
  29655. var addendum = '';
  29656. {
  29657. addendum = ' If you meant to render a collection of children, use an array ' + 'instead.' + getCurrentFiberStackInDev();
  29658. }
  29659. (function () {
  29660. {
  29661. {
  29662. throw ReactError(Error('Objects are not valid as a React child (found: ' + (Object.prototype.toString.call(newChild) === '[object Object]' ? 'object with keys {' + Object.keys(newChild).join(', ') + '}' : newChild) + ').' + addendum));
  29663. }
  29664. }
  29665. })();
  29666. }
  29667. }
  29668. function warnOnFunctionType() {
  29669. var currentComponentErrorInfo = 'Functions are not valid as a React child. This may happen if ' + 'you return a Component instead of <Component /> from render. ' + 'Or maybe you meant to call this function rather than return it.' + getCurrentFiberStackInDev();
  29670. if (ownerHasFunctionTypeWarning[currentComponentErrorInfo]) {
  29671. return;
  29672. }
  29673. ownerHasFunctionTypeWarning[currentComponentErrorInfo] = true;
  29674. warning$1(false, 'Functions are not valid as a React child. This may happen if ' + 'you return a Component instead of <Component /> from render. ' + 'Or maybe you meant to call this function rather than return it.');
  29675. }
  29676. // This wrapper function exists because I expect to clone the code in each path
  29677. // to be able to optimize each path individually by branching early. This needs
  29678. // a compiler or we can do it manually. Helpers that don't need this branching
  29679. // live outside of this function.
  29680. function ChildReconciler(shouldTrackSideEffects) {
  29681. function deleteChild(returnFiber, childToDelete) {
  29682. if (!shouldTrackSideEffects) {
  29683. // Noop.
  29684. return;
  29685. }
  29686. // Deletions are added in reversed order so we add it to the front.
  29687. // At this point, the return fiber's effect list is empty except for
  29688. // deletions, so we can just append the deletion to the list. The remaining
  29689. // effects aren't added until the complete phase. Once we implement
  29690. // resuming, this may not be true.
  29691. var last = returnFiber.lastEffect;
  29692. if (last !== null) {
  29693. last.nextEffect = childToDelete;
  29694. returnFiber.lastEffect = childToDelete;
  29695. } else {
  29696. returnFiber.firstEffect = returnFiber.lastEffect = childToDelete;
  29697. }
  29698. childToDelete.nextEffect = null;
  29699. childToDelete.effectTag = Deletion;
  29700. }
  29701. function deleteRemainingChildren(returnFiber, currentFirstChild) {
  29702. if (!shouldTrackSideEffects) {
  29703. // Noop.
  29704. return null;
  29705. }
  29706. // TODO: For the shouldClone case, this could be micro-optimized a bit by
  29707. // assuming that after the first child we've already added everything.
  29708. var childToDelete = currentFirstChild;
  29709. while (childToDelete !== null) {
  29710. deleteChild(returnFiber, childToDelete);
  29711. childToDelete = childToDelete.sibling;
  29712. }
  29713. return null;
  29714. }
  29715. function mapRemainingChildren(returnFiber, currentFirstChild) {
  29716. // Add the remaining children to a temporary map so that we can find them by
  29717. // keys quickly. Implicit (null) keys get added to this set with their index
  29718. var existingChildren = new Map();
  29719. var existingChild = currentFirstChild;
  29720. while (existingChild !== null) {
  29721. if (existingChild.key !== null) {
  29722. existingChildren.set(existingChild.key, existingChild);
  29723. } else {
  29724. existingChildren.set(existingChild.index, existingChild);
  29725. }
  29726. existingChild = existingChild.sibling;
  29727. }
  29728. return existingChildren;
  29729. }
  29730. function useFiber(fiber, pendingProps, expirationTime) {
  29731. // We currently set sibling to null and index to 0 here because it is easy
  29732. // to forget to do before returning it. E.g. for the single child case.
  29733. var clone = createWorkInProgress(fiber, pendingProps, expirationTime);
  29734. clone.index = 0;
  29735. clone.sibling = null;
  29736. return clone;
  29737. }
  29738. function placeChild(newFiber, lastPlacedIndex, newIndex) {
  29739. newFiber.index = newIndex;
  29740. if (!shouldTrackSideEffects) {
  29741. // Noop.
  29742. return lastPlacedIndex;
  29743. }
  29744. var current$$1 = newFiber.alternate;
  29745. if (current$$1 !== null) {
  29746. var oldIndex = current$$1.index;
  29747. if (oldIndex < lastPlacedIndex) {
  29748. // This is a move.
  29749. newFiber.effectTag = Placement;
  29750. return lastPlacedIndex;
  29751. } else {
  29752. // This item can stay in place.
  29753. return oldIndex;
  29754. }
  29755. } else {
  29756. // This is an insertion.
  29757. newFiber.effectTag = Placement;
  29758. return lastPlacedIndex;
  29759. }
  29760. }
  29761. function placeSingleChild(newFiber) {
  29762. // This is simpler for the single child case. We only need to do a
  29763. // placement for inserting new children.
  29764. if (shouldTrackSideEffects && newFiber.alternate === null) {
  29765. newFiber.effectTag = Placement;
  29766. }
  29767. return newFiber;
  29768. }
  29769. function updateTextNode(returnFiber, current$$1, textContent, expirationTime) {
  29770. if (current$$1 === null || current$$1.tag !== HostText) {
  29771. // Insert
  29772. var created = createFiberFromText(textContent, returnFiber.mode, expirationTime);
  29773. created.return = returnFiber;
  29774. return created;
  29775. } else {
  29776. // Update
  29777. var existing = useFiber(current$$1, textContent, expirationTime);
  29778. existing.return = returnFiber;
  29779. return existing;
  29780. }
  29781. }
  29782. function updateElement(returnFiber, current$$1, element, expirationTime) {
  29783. if (current$$1 !== null && (current$$1.elementType === element.type || (
  29784. // Keep this check inline so it only runs on the false path:
  29785. isCompatibleFamilyForHotReloading(current$$1, element)))) {
  29786. // Move based on index
  29787. var existing = useFiber(current$$1, element.props, expirationTime);
  29788. existing.ref = coerceRef(returnFiber, current$$1, element);
  29789. existing.return = returnFiber;
  29790. {
  29791. existing._debugSource = element._source;
  29792. existing._debugOwner = element._owner;
  29793. }
  29794. return existing;
  29795. } else {
  29796. // Insert
  29797. var created = createFiberFromElement(element, returnFiber.mode, expirationTime);
  29798. created.ref = coerceRef(returnFiber, current$$1, element);
  29799. created.return = returnFiber;
  29800. return created;
  29801. }
  29802. }
  29803. function updatePortal(returnFiber, current$$1, portal, expirationTime) {
  29804. if (current$$1 === null || current$$1.tag !== HostPortal || current$$1.stateNode.containerInfo !== portal.containerInfo || current$$1.stateNode.implementation !== portal.implementation) {
  29805. // Insert
  29806. var created = createFiberFromPortal(portal, returnFiber.mode, expirationTime);
  29807. created.return = returnFiber;
  29808. return created;
  29809. } else {
  29810. // Update
  29811. var existing = useFiber(current$$1, portal.children || [], expirationTime);
  29812. existing.return = returnFiber;
  29813. return existing;
  29814. }
  29815. }
  29816. function updateFragment(returnFiber, current$$1, fragment, expirationTime, key) {
  29817. if (current$$1 === null || current$$1.tag !== Fragment) {
  29818. // Insert
  29819. var created = createFiberFromFragment(fragment, returnFiber.mode, expirationTime, key);
  29820. created.return = returnFiber;
  29821. return created;
  29822. } else {
  29823. // Update
  29824. var existing = useFiber(current$$1, fragment, expirationTime);
  29825. existing.return = returnFiber;
  29826. return existing;
  29827. }
  29828. }
  29829. function createChild(returnFiber, newChild, expirationTime) {
  29830. if (typeof newChild === 'string' || typeof newChild === 'number') {
  29831. // Text nodes don't have keys. If the previous node is implicitly keyed
  29832. // we can continue to replace it without aborting even if it is not a text
  29833. // node.
  29834. var created = createFiberFromText('' + newChild, returnFiber.mode, expirationTime);
  29835. created.return = returnFiber;
  29836. return created;
  29837. }
  29838. if (typeof newChild === 'object' && newChild !== null) {
  29839. switch (newChild.$$typeof) {
  29840. case REACT_ELEMENT_TYPE:
  29841. {
  29842. var _created = createFiberFromElement(newChild, returnFiber.mode, expirationTime);
  29843. _created.ref = coerceRef(returnFiber, null, newChild);
  29844. _created.return = returnFiber;
  29845. return _created;
  29846. }
  29847. case REACT_PORTAL_TYPE:
  29848. {
  29849. var _created2 = createFiberFromPortal(newChild, returnFiber.mode, expirationTime);
  29850. _created2.return = returnFiber;
  29851. return _created2;
  29852. }
  29853. }
  29854. if (isArray(newChild) || getIteratorFn(newChild)) {
  29855. var _created3 = createFiberFromFragment(newChild, returnFiber.mode, expirationTime, null);
  29856. _created3.return = returnFiber;
  29857. return _created3;
  29858. }
  29859. throwOnInvalidObjectType(returnFiber, newChild);
  29860. }
  29861. {
  29862. if (typeof newChild === 'function') {
  29863. warnOnFunctionType();
  29864. }
  29865. }
  29866. return null;
  29867. }
  29868. function updateSlot(returnFiber, oldFiber, newChild, expirationTime) {
  29869. // Update the fiber if the keys match, otherwise return null.
  29870. var key = oldFiber !== null ? oldFiber.key : null;
  29871. if (typeof newChild === 'string' || typeof newChild === 'number') {
  29872. // Text nodes don't have keys. If the previous node is implicitly keyed
  29873. // we can continue to replace it without aborting even if it is not a text
  29874. // node.
  29875. if (key !== null) {
  29876. return null;
  29877. }
  29878. return updateTextNode(returnFiber, oldFiber, '' + newChild, expirationTime);
  29879. }
  29880. if (typeof newChild === 'object' && newChild !== null) {
  29881. switch (newChild.$$typeof) {
  29882. case REACT_ELEMENT_TYPE:
  29883. {
  29884. if (newChild.key === key) {
  29885. if (newChild.type === REACT_FRAGMENT_TYPE) {
  29886. return updateFragment(returnFiber, oldFiber, newChild.props.children, expirationTime, key);
  29887. }
  29888. return updateElement(returnFiber, oldFiber, newChild, expirationTime);
  29889. } else {
  29890. return null;
  29891. }
  29892. }
  29893. case REACT_PORTAL_TYPE:
  29894. {
  29895. if (newChild.key === key) {
  29896. return updatePortal(returnFiber, oldFiber, newChild, expirationTime);
  29897. } else {
  29898. return null;
  29899. }
  29900. }
  29901. }
  29902. if (isArray(newChild) || getIteratorFn(newChild)) {
  29903. if (key !== null) {
  29904. return null;
  29905. }
  29906. return updateFragment(returnFiber, oldFiber, newChild, expirationTime, null);
  29907. }
  29908. throwOnInvalidObjectType(returnFiber, newChild);
  29909. }
  29910. {
  29911. if (typeof newChild === 'function') {
  29912. warnOnFunctionType();
  29913. }
  29914. }
  29915. return null;
  29916. }
  29917. function updateFromMap(existingChildren, returnFiber, newIdx, newChild, expirationTime) {
  29918. if (typeof newChild === 'string' || typeof newChild === 'number') {
  29919. // Text nodes don't have keys, so we neither have to check the old nor
  29920. // new node for the key. If both are text nodes, they match.
  29921. var matchedFiber = existingChildren.get(newIdx) || null;
  29922. return updateTextNode(returnFiber, matchedFiber, '' + newChild, expirationTime);
  29923. }
  29924. if (typeof newChild === 'object' && newChild !== null) {
  29925. switch (newChild.$$typeof) {
  29926. case REACT_ELEMENT_TYPE:
  29927. {
  29928. var _matchedFiber = existingChildren.get(newChild.key === null ? newIdx : newChild.key) || null;
  29929. if (newChild.type === REACT_FRAGMENT_TYPE) {
  29930. return updateFragment(returnFiber, _matchedFiber, newChild.props.children, expirationTime, newChild.key);
  29931. }
  29932. return updateElement(returnFiber, _matchedFiber, newChild, expirationTime);
  29933. }
  29934. case REACT_PORTAL_TYPE:
  29935. {
  29936. var _matchedFiber2 = existingChildren.get(newChild.key === null ? newIdx : newChild.key) || null;
  29937. return updatePortal(returnFiber, _matchedFiber2, newChild, expirationTime);
  29938. }
  29939. }
  29940. if (isArray(newChild) || getIteratorFn(newChild)) {
  29941. var _matchedFiber3 = existingChildren.get(newIdx) || null;
  29942. return updateFragment(returnFiber, _matchedFiber3, newChild, expirationTime, null);
  29943. }
  29944. throwOnInvalidObjectType(returnFiber, newChild);
  29945. }
  29946. {
  29947. if (typeof newChild === 'function') {
  29948. warnOnFunctionType();
  29949. }
  29950. }
  29951. return null;
  29952. }
  29953. /**
  29954. * Warns if there is a duplicate or missing key
  29955. */
  29956. function warnOnInvalidKey(child, knownKeys) {
  29957. {
  29958. if (typeof child !== 'object' || child === null) {
  29959. return knownKeys;
  29960. }
  29961. switch (child.$$typeof) {
  29962. case REACT_ELEMENT_TYPE:
  29963. case REACT_PORTAL_TYPE:
  29964. warnForMissingKey(child);
  29965. var key = child.key;
  29966. if (typeof key !== 'string') {
  29967. break;
  29968. }
  29969. if (knownKeys === null) {
  29970. knownKeys = new Set();
  29971. knownKeys.add(key);
  29972. break;
  29973. }
  29974. if (!knownKeys.has(key)) {
  29975. knownKeys.add(key);
  29976. break;
  29977. }
  29978. warning$1(false, 'Encountered two children with the same key, `%s`. ' + 'Keys should be unique so that components maintain their identity ' + 'across updates. Non-unique keys may cause children to be ' + 'duplicated and/or omitted — the behavior is unsupported and ' + 'could change in a future version.', key);
  29979. break;
  29980. default:
  29981. break;
  29982. }
  29983. }
  29984. return knownKeys;
  29985. }
  29986. function reconcileChildrenArray(returnFiber, currentFirstChild, newChildren, expirationTime) {
  29987. // This algorithm can't optimize by searching from both ends since we
  29988. // don't have backpointers on fibers. I'm trying to see how far we can get
  29989. // with that model. If it ends up not being worth the tradeoffs, we can
  29990. // add it later.
  29991. // Even with a two ended optimization, we'd want to optimize for the case
  29992. // where there are few changes and brute force the comparison instead of
  29993. // going for the Map. It'd like to explore hitting that path first in
  29994. // forward-only mode and only go for the Map once we notice that we need
  29995. // lots of look ahead. This doesn't handle reversal as well as two ended
  29996. // search but that's unusual. Besides, for the two ended optimization to
  29997. // work on Iterables, we'd need to copy the whole set.
  29998. // In this first iteration, we'll just live with hitting the bad case
  29999. // (adding everything to a Map) in for every insert/move.
  30000. // If you change this code, also update reconcileChildrenIterator() which
  30001. // uses the same algorithm.
  30002. {
  30003. // First, validate keys.
  30004. var knownKeys = null;
  30005. for (var i = 0; i < newChildren.length; i++) {
  30006. var child = newChildren[i];
  30007. knownKeys = warnOnInvalidKey(child, knownKeys);
  30008. }
  30009. }
  30010. var resultingFirstChild = null;
  30011. var previousNewFiber = null;
  30012. var oldFiber = currentFirstChild;
  30013. var lastPlacedIndex = 0;
  30014. var newIdx = 0;
  30015. var nextOldFiber = null;
  30016. for (; oldFiber !== null && newIdx < newChildren.length; newIdx++) {
  30017. if (oldFiber.index > newIdx) {
  30018. nextOldFiber = oldFiber;
  30019. oldFiber = null;
  30020. } else {
  30021. nextOldFiber = oldFiber.sibling;
  30022. }
  30023. var newFiber = updateSlot(returnFiber, oldFiber, newChildren[newIdx], expirationTime);
  30024. if (newFiber === null) {
  30025. // TODO: This breaks on empty slots like null children. That's
  30026. // unfortunate because it triggers the slow path all the time. We need
  30027. // a better way to communicate whether this was a miss or null,
  30028. // boolean, undefined, etc.
  30029. if (oldFiber === null) {
  30030. oldFiber = nextOldFiber;
  30031. }
  30032. break;
  30033. }
  30034. if (shouldTrackSideEffects) {
  30035. if (oldFiber && newFiber.alternate === null) {
  30036. // We matched the slot, but we didn't reuse the existing fiber, so we
  30037. // need to delete the existing child.
  30038. deleteChild(returnFiber, oldFiber);
  30039. }
  30040. }
  30041. lastPlacedIndex = placeChild(newFiber, lastPlacedIndex, newIdx);
  30042. if (previousNewFiber === null) {
  30043. // TODO: Move out of the loop. This only happens for the first run.
  30044. resultingFirstChild = newFiber;
  30045. } else {
  30046. // TODO: Defer siblings if we're not at the right index for this slot.
  30047. // I.e. if we had null values before, then we want to defer this
  30048. // for each null value. However, we also don't want to call updateSlot
  30049. // with the previous one.
  30050. previousNewFiber.sibling = newFiber;
  30051. }
  30052. previousNewFiber = newFiber;
  30053. oldFiber = nextOldFiber;
  30054. }
  30055. if (newIdx === newChildren.length) {
  30056. // We've reached the end of the new children. We can delete the rest.
  30057. deleteRemainingChildren(returnFiber, oldFiber);
  30058. return resultingFirstChild;
  30059. }
  30060. if (oldFiber === null) {
  30061. // If we don't have any more existing children we can choose a fast path
  30062. // since the rest will all be insertions.
  30063. for (; newIdx < newChildren.length; newIdx++) {
  30064. var _newFiber = createChild(returnFiber, newChildren[newIdx], expirationTime);
  30065. if (_newFiber === null) {
  30066. continue;
  30067. }
  30068. lastPlacedIndex = placeChild(_newFiber, lastPlacedIndex, newIdx);
  30069. if (previousNewFiber === null) {
  30070. // TODO: Move out of the loop. This only happens for the first run.
  30071. resultingFirstChild = _newFiber;
  30072. } else {
  30073. previousNewFiber.sibling = _newFiber;
  30074. }
  30075. previousNewFiber = _newFiber;
  30076. }
  30077. return resultingFirstChild;
  30078. }
  30079. // Add all children to a key map for quick lookups.
  30080. var existingChildren = mapRemainingChildren(returnFiber, oldFiber);
  30081. // Keep scanning and use the map to restore deleted items as moves.
  30082. for (; newIdx < newChildren.length; newIdx++) {
  30083. var _newFiber2 = updateFromMap(existingChildren, returnFiber, newIdx, newChildren[newIdx], expirationTime);
  30084. if (_newFiber2 !== null) {
  30085. if (shouldTrackSideEffects) {
  30086. if (_newFiber2.alternate !== null) {
  30087. // The new fiber is a work in progress, but if there exists a
  30088. // current, that means that we reused the fiber. We need to delete
  30089. // it from the child list so that we don't add it to the deletion
  30090. // list.
  30091. existingChildren.delete(_newFiber2.key === null ? newIdx : _newFiber2.key);
  30092. }
  30093. }
  30094. lastPlacedIndex = placeChild(_newFiber2, lastPlacedIndex, newIdx);
  30095. if (previousNewFiber === null) {
  30096. resultingFirstChild = _newFiber2;
  30097. } else {
  30098. previousNewFiber.sibling = _newFiber2;
  30099. }
  30100. previousNewFiber = _newFiber2;
  30101. }
  30102. }
  30103. if (shouldTrackSideEffects) {
  30104. // Any existing children that weren't consumed above were deleted. We need
  30105. // to add them to the deletion list.
  30106. existingChildren.forEach(function (child) {
  30107. return deleteChild(returnFiber, child);
  30108. });
  30109. }
  30110. return resultingFirstChild;
  30111. }
  30112. function reconcileChildrenIterator(returnFiber, currentFirstChild, newChildrenIterable, expirationTime) {
  30113. // This is the same implementation as reconcileChildrenArray(),
  30114. // but using the iterator instead.
  30115. var iteratorFn = getIteratorFn(newChildrenIterable);
  30116. (function () {
  30117. if (!(typeof iteratorFn === 'function')) {
  30118. {
  30119. throw ReactError(Error('An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.'));
  30120. }
  30121. }
  30122. })();
  30123. {
  30124. // We don't support rendering Generators because it's a mutation.
  30125. // See https://github.com/facebook/react/issues/12995
  30126. if (typeof Symbol === 'function' &&
  30127. // $FlowFixMe Flow doesn't know about toStringTag
  30128. newChildrenIterable[Symbol.toStringTag] === 'Generator') {
  30129. !didWarnAboutGenerators ? warning$1(false, 'Using Generators as children is unsupported and will likely yield ' + 'unexpected results because enumerating a generator mutates it. ' + 'You may convert it to an array with `Array.from()` or the ' + '`[...spread]` operator before rendering. Keep in mind ' + 'you might need to polyfill these features for older browsers.') : void 0;
  30130. didWarnAboutGenerators = true;
  30131. }
  30132. // Warn about using Maps as children
  30133. if (newChildrenIterable.entries === iteratorFn) {
  30134. !didWarnAboutMaps ? warning$1(false, 'Using Maps as children is unsupported and will likely yield ' + 'unexpected results. Convert it to a sequence/iterable of keyed ' + 'ReactElements instead.') : void 0;
  30135. didWarnAboutMaps = true;
  30136. }
  30137. // First, validate keys.
  30138. // We'll get a different iterator later for the main pass.
  30139. var _newChildren = iteratorFn.call(newChildrenIterable);
  30140. if (_newChildren) {
  30141. var knownKeys = null;
  30142. var _step = _newChildren.next();
  30143. for (; !_step.done; _step = _newChildren.next()) {
  30144. var child = _step.value;
  30145. knownKeys = warnOnInvalidKey(child, knownKeys);
  30146. }
  30147. }
  30148. }
  30149. var newChildren = iteratorFn.call(newChildrenIterable);
  30150. (function () {
  30151. if (!(newChildren != null)) {
  30152. {
  30153. throw ReactError(Error('An iterable object provided no iterator.'));
  30154. }
  30155. }
  30156. })();
  30157. var resultingFirstChild = null;
  30158. var previousNewFiber = null;
  30159. var oldFiber = currentFirstChild;
  30160. var lastPlacedIndex = 0;
  30161. var newIdx = 0;
  30162. var nextOldFiber = null;
  30163. var step = newChildren.next();
  30164. for (; oldFiber !== null && !step.done; newIdx++, step = newChildren.next()) {
  30165. if (oldFiber.index > newIdx) {
  30166. nextOldFiber = oldFiber;
  30167. oldFiber = null;
  30168. } else {
  30169. nextOldFiber = oldFiber.sibling;
  30170. }
  30171. var newFiber = updateSlot(returnFiber, oldFiber, step.value, expirationTime);
  30172. if (newFiber === null) {
  30173. // TODO: This breaks on empty slots like null children. That's
  30174. // unfortunate because it triggers the slow path all the time. We need
  30175. // a better way to communicate whether this was a miss or null,
  30176. // boolean, undefined, etc.
  30177. if (oldFiber === null) {
  30178. oldFiber = nextOldFiber;
  30179. }
  30180. break;
  30181. }
  30182. if (shouldTrackSideEffects) {
  30183. if (oldFiber && newFiber.alternate === null) {
  30184. // We matched the slot, but we didn't reuse the existing fiber, so we
  30185. // need to delete the existing child.
  30186. deleteChild(returnFiber, oldFiber);
  30187. }
  30188. }
  30189. lastPlacedIndex = placeChild(newFiber, lastPlacedIndex, newIdx);
  30190. if (previousNewFiber === null) {
  30191. // TODO: Move out of the loop. This only happens for the first run.
  30192. resultingFirstChild = newFiber;
  30193. } else {
  30194. // TODO: Defer siblings if we're not at the right index for this slot.
  30195. // I.e. if we had null values before, then we want to defer this
  30196. // for each null value. However, we also don't want to call updateSlot
  30197. // with the previous one.
  30198. previousNewFiber.sibling = newFiber;
  30199. }
  30200. previousNewFiber = newFiber;
  30201. oldFiber = nextOldFiber;
  30202. }
  30203. if (step.done) {
  30204. // We've reached the end of the new children. We can delete the rest.
  30205. deleteRemainingChildren(returnFiber, oldFiber);
  30206. return resultingFirstChild;
  30207. }
  30208. if (oldFiber === null) {
  30209. // If we don't have any more existing children we can choose a fast path
  30210. // since the rest will all be insertions.
  30211. for (; !step.done; newIdx++, step = newChildren.next()) {
  30212. var _newFiber3 = createChild(returnFiber, step.value, expirationTime);
  30213. if (_newFiber3 === null) {
  30214. continue;
  30215. }
  30216. lastPlacedIndex = placeChild(_newFiber3, lastPlacedIndex, newIdx);
  30217. if (previousNewFiber === null) {
  30218. // TODO: Move out of the loop. This only happens for the first run.
  30219. resultingFirstChild = _newFiber3;
  30220. } else {
  30221. previousNewFiber.sibling = _newFiber3;
  30222. }
  30223. previousNewFiber = _newFiber3;
  30224. }
  30225. return resultingFirstChild;
  30226. }
  30227. // Add all children to a key map for quick lookups.
  30228. var existingChildren = mapRemainingChildren(returnFiber, oldFiber);
  30229. // Keep scanning and use the map to restore deleted items as moves.
  30230. for (; !step.done; newIdx++, step = newChildren.next()) {
  30231. var _newFiber4 = updateFromMap(existingChildren, returnFiber, newIdx, step.value, expirationTime);
  30232. if (_newFiber4 !== null) {
  30233. if (shouldTrackSideEffects) {
  30234. if (_newFiber4.alternate !== null) {
  30235. // The new fiber is a work in progress, but if there exists a
  30236. // current, that means that we reused the fiber. We need to delete
  30237. // it from the child list so that we don't add it to the deletion
  30238. // list.
  30239. existingChildren.delete(_newFiber4.key === null ? newIdx : _newFiber4.key);
  30240. }
  30241. }
  30242. lastPlacedIndex = placeChild(_newFiber4, lastPlacedIndex, newIdx);
  30243. if (previousNewFiber === null) {
  30244. resultingFirstChild = _newFiber4;
  30245. } else {
  30246. previousNewFiber.sibling = _newFiber4;
  30247. }
  30248. previousNewFiber = _newFiber4;
  30249. }
  30250. }
  30251. if (shouldTrackSideEffects) {
  30252. // Any existing children that weren't consumed above were deleted. We need
  30253. // to add them to the deletion list.
  30254. existingChildren.forEach(function (child) {
  30255. return deleteChild(returnFiber, child);
  30256. });
  30257. }
  30258. return resultingFirstChild;
  30259. }
  30260. function reconcileSingleTextNode(returnFiber, currentFirstChild, textContent, expirationTime) {
  30261. // There's no need to check for keys on text nodes since we don't have a
  30262. // way to define them.
  30263. if (currentFirstChild !== null && currentFirstChild.tag === HostText) {
  30264. // We already have an existing node so let's just update it and delete
  30265. // the rest.
  30266. deleteRemainingChildren(returnFiber, currentFirstChild.sibling);
  30267. var existing = useFiber(currentFirstChild, textContent, expirationTime);
  30268. existing.return = returnFiber;
  30269. return existing;
  30270. }
  30271. // The existing first child is not a text node so we need to create one
  30272. // and delete the existing ones.
  30273. deleteRemainingChildren(returnFiber, currentFirstChild);
  30274. var created = createFiberFromText(textContent, returnFiber.mode, expirationTime);
  30275. created.return = returnFiber;
  30276. return created;
  30277. }
  30278. function reconcileSingleElement(returnFiber, currentFirstChild, element, expirationTime) {
  30279. var key = element.key;
  30280. var child = currentFirstChild;
  30281. while (child !== null) {
  30282. // TODO: If key === null and child.key === null, then this only applies to
  30283. // the first item in the list.
  30284. if (child.key === key) {
  30285. if (child.tag === Fragment ? element.type === REACT_FRAGMENT_TYPE : child.elementType === element.type || (
  30286. // Keep this check inline so it only runs on the false path:
  30287. isCompatibleFamilyForHotReloading(child, element))) {
  30288. deleteRemainingChildren(returnFiber, child.sibling);
  30289. var existing = useFiber(child, element.type === REACT_FRAGMENT_TYPE ? element.props.children : element.props, expirationTime);
  30290. existing.ref = coerceRef(returnFiber, child, element);
  30291. existing.return = returnFiber;
  30292. {
  30293. existing._debugSource = element._source;
  30294. existing._debugOwner = element._owner;
  30295. }
  30296. return existing;
  30297. } else {
  30298. deleteRemainingChildren(returnFiber, child);
  30299. break;
  30300. }
  30301. } else {
  30302. deleteChild(returnFiber, child);
  30303. }
  30304. child = child.sibling;
  30305. }
  30306. if (element.type === REACT_FRAGMENT_TYPE) {
  30307. var created = createFiberFromFragment(element.props.children, returnFiber.mode, expirationTime, element.key);
  30308. created.return = returnFiber;
  30309. return created;
  30310. } else {
  30311. var _created4 = createFiberFromElement(element, returnFiber.mode, expirationTime);
  30312. _created4.ref = coerceRef(returnFiber, currentFirstChild, element);
  30313. _created4.return = returnFiber;
  30314. return _created4;
  30315. }
  30316. }
  30317. function reconcileSinglePortal(returnFiber, currentFirstChild, portal, expirationTime) {
  30318. var key = portal.key;
  30319. var child = currentFirstChild;
  30320. while (child !== null) {
  30321. // TODO: If key === null and child.key === null, then this only applies to
  30322. // the first item in the list.
  30323. if (child.key === key) {
  30324. if (child.tag === HostPortal && child.stateNode.containerInfo === portal.containerInfo && child.stateNode.implementation === portal.implementation) {
  30325. deleteRemainingChildren(returnFiber, child.sibling);
  30326. var existing = useFiber(child, portal.children || [], expirationTime);
  30327. existing.return = returnFiber;
  30328. return existing;
  30329. } else {
  30330. deleteRemainingChildren(returnFiber, child);
  30331. break;
  30332. }
  30333. } else {
  30334. deleteChild(returnFiber, child);
  30335. }
  30336. child = child.sibling;
  30337. }
  30338. var created = createFiberFromPortal(portal, returnFiber.mode, expirationTime);
  30339. created.return = returnFiber;
  30340. return created;
  30341. }
  30342. // This API will tag the children with the side-effect of the reconciliation
  30343. // itself. They will be added to the side-effect list as we pass through the
  30344. // children and the parent.
  30345. function reconcileChildFibers(returnFiber, currentFirstChild, newChild, expirationTime) {
  30346. // This function is not recursive.
  30347. // If the top level item is an array, we treat it as a set of children,
  30348. // not as a fragment. Nested arrays on the other hand will be treated as
  30349. // fragment nodes. Recursion happens at the normal flow.
  30350. // Handle top level unkeyed fragments as if they were arrays.
  30351. // This leads to an ambiguity between <>{[...]}</> and <>...</>.
  30352. // We treat the ambiguous cases above the same.
  30353. var isUnkeyedTopLevelFragment = typeof newChild === 'object' && newChild !== null && newChild.type === REACT_FRAGMENT_TYPE && newChild.key === null;
  30354. if (isUnkeyedTopLevelFragment) {
  30355. newChild = newChild.props.children;
  30356. }
  30357. // Handle object types
  30358. var isObject = typeof newChild === 'object' && newChild !== null;
  30359. if (isObject) {
  30360. switch (newChild.$$typeof) {
  30361. case REACT_ELEMENT_TYPE:
  30362. return placeSingleChild(reconcileSingleElement(returnFiber, currentFirstChild, newChild, expirationTime));
  30363. case REACT_PORTAL_TYPE:
  30364. return placeSingleChild(reconcileSinglePortal(returnFiber, currentFirstChild, newChild, expirationTime));
  30365. }
  30366. }
  30367. if (typeof newChild === 'string' || typeof newChild === 'number') {
  30368. return placeSingleChild(reconcileSingleTextNode(returnFiber, currentFirstChild, '' + newChild, expirationTime));
  30369. }
  30370. if (isArray(newChild)) {
  30371. return reconcileChildrenArray(returnFiber, currentFirstChild, newChild, expirationTime);
  30372. }
  30373. if (getIteratorFn(newChild)) {
  30374. return reconcileChildrenIterator(returnFiber, currentFirstChild, newChild, expirationTime);
  30375. }
  30376. if (isObject) {
  30377. throwOnInvalidObjectType(returnFiber, newChild);
  30378. }
  30379. {
  30380. if (typeof newChild === 'function') {
  30381. warnOnFunctionType();
  30382. }
  30383. }
  30384. if (typeof newChild === 'undefined' && !isUnkeyedTopLevelFragment) {
  30385. // If the new child is undefined, and the return fiber is a composite
  30386. // component, throw an error. If Fiber return types are disabled,
  30387. // we already threw above.
  30388. switch (returnFiber.tag) {
  30389. case ClassComponent:
  30390. {
  30391. {
  30392. var instance = returnFiber.stateNode;
  30393. if (instance.render._isMockFunction) {
  30394. // We allow auto-mocks to proceed as if they're returning null.
  30395. break;
  30396. }
  30397. }
  30398. }
  30399. // Intentionally fall through to the next case, which handles both
  30400. // functions and classes
  30401. // eslint-disable-next-lined no-fallthrough
  30402. case FunctionComponent:
  30403. {
  30404. var Component = returnFiber.type;
  30405. (function () {
  30406. {
  30407. {
  30408. throw ReactError(Error((Component.displayName || Component.name || 'Component') + '(...): Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null.'));
  30409. }
  30410. }
  30411. })();
  30412. }
  30413. }
  30414. }
  30415. // Remaining cases are all treated as empty.
  30416. return deleteRemainingChildren(returnFiber, currentFirstChild);
  30417. }
  30418. return reconcileChildFibers;
  30419. }
  30420. var reconcileChildFibers = ChildReconciler(true);
  30421. var mountChildFibers = ChildReconciler(false);
  30422. function cloneChildFibers(current$$1, workInProgress) {
  30423. (function () {
  30424. if (!(current$$1 === null || workInProgress.child === current$$1.child)) {
  30425. {
  30426. throw ReactError(Error('Resuming work not yet implemented.'));
  30427. }
  30428. }
  30429. })();
  30430. if (workInProgress.child === null) {
  30431. return;
  30432. }
  30433. var currentChild = workInProgress.child;
  30434. var newChild = createWorkInProgress(currentChild, currentChild.pendingProps, currentChild.expirationTime);
  30435. workInProgress.child = newChild;
  30436. newChild.return = workInProgress;
  30437. while (currentChild.sibling !== null) {
  30438. currentChild = currentChild.sibling;
  30439. newChild = newChild.sibling = createWorkInProgress(currentChild, currentChild.pendingProps, currentChild.expirationTime);
  30440. newChild.return = workInProgress;
  30441. }
  30442. newChild.sibling = null;
  30443. }
  30444. // Reset a workInProgress child set to prepare it for a second pass.
  30445. function resetChildFibers(workInProgress, renderExpirationTime) {
  30446. var child = workInProgress.child;
  30447. while (child !== null) {
  30448. resetWorkInProgress(child, renderExpirationTime);
  30449. child = child.sibling;
  30450. }
  30451. }
  30452. var NO_CONTEXT = {};
  30453. var contextStackCursor$1 = createCursor(NO_CONTEXT);
  30454. var contextFiberStackCursor = createCursor(NO_CONTEXT);
  30455. var rootInstanceStackCursor = createCursor(NO_CONTEXT);
  30456. function requiredContext(c) {
  30457. (function () {
  30458. if (!(c !== NO_CONTEXT)) {
  30459. {
  30460. throw ReactError(Error('Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.'));
  30461. }
  30462. }
  30463. })();
  30464. return c;
  30465. }
  30466. function getRootHostContainer() {
  30467. var rootInstance = requiredContext(rootInstanceStackCursor.current);
  30468. return rootInstance;
  30469. }
  30470. function pushHostContainer(fiber, nextRootInstance) {
  30471. // Push current root instance onto the stack;
  30472. // This allows us to reset root when portals are popped.
  30473. push(rootInstanceStackCursor, nextRootInstance, fiber);
  30474. // Track the context and the Fiber that provided it.
  30475. // This enables us to pop only Fibers that provide unique contexts.
  30476. push(contextFiberStackCursor, fiber, fiber);
  30477. // Finally, we need to push the host context to the stack.
  30478. // However, we can't just call getRootHostContext() and push it because
  30479. // we'd have a different number of entries on the stack depending on
  30480. // whether getRootHostContext() throws somewhere in renderer code or not.
  30481. // So we push an empty value first. This lets us safely unwind on errors.
  30482. push(contextStackCursor$1, NO_CONTEXT, fiber);
  30483. var nextRootContext = getRootHostContext(nextRootInstance);
  30484. // Now that we know this function doesn't throw, replace it.
  30485. pop(contextStackCursor$1, fiber);
  30486. push(contextStackCursor$1, nextRootContext, fiber);
  30487. }
  30488. function popHostContainer(fiber) {
  30489. pop(contextStackCursor$1, fiber);
  30490. pop(contextFiberStackCursor, fiber);
  30491. pop(rootInstanceStackCursor, fiber);
  30492. }
  30493. function getHostContext() {
  30494. var context = requiredContext(contextStackCursor$1.current);
  30495. return context;
  30496. }
  30497. function pushHostContext(fiber) {
  30498. var rootInstance = requiredContext(rootInstanceStackCursor.current);
  30499. var context = requiredContext(contextStackCursor$1.current);
  30500. var nextContext = getChildHostContext(context, fiber.type, rootInstance);
  30501. // Don't push this Fiber's context unless it's unique.
  30502. if (context === nextContext) {
  30503. return;
  30504. }
  30505. // Track the context and the Fiber that provided it.
  30506. // This enables us to pop only Fibers that provide unique contexts.
  30507. push(contextFiberStackCursor, fiber, fiber);
  30508. push(contextStackCursor$1, nextContext, fiber);
  30509. }
  30510. function popHostContext(fiber) {
  30511. // Do not pop unless this Fiber provided the current context.
  30512. // pushHostContext() only pushes Fibers that provide unique contexts.
  30513. if (contextFiberStackCursor.current !== fiber) {
  30514. return;
  30515. }
  30516. pop(contextStackCursor$1, fiber);
  30517. pop(contextFiberStackCursor, fiber);
  30518. }
  30519. var DefaultSuspenseContext = 0;
  30520. // The Suspense Context is split into two parts. The lower bits is
  30521. // inherited deeply down the subtree. The upper bits only affect
  30522. // this immediate suspense boundary and gets reset each new
  30523. // boundary or suspense list.
  30524. var SubtreeSuspenseContextMask = 1;
  30525. // Subtree Flags:
  30526. // InvisibleParentSuspenseContext indicates that one of our parent Suspense
  30527. // boundaries is not currently showing visible main content.
  30528. // Either because it is already showing a fallback or is not mounted at all.
  30529. // We can use this to determine if it is desirable to trigger a fallback at
  30530. // the parent. If not, then we might need to trigger undesirable boundaries
  30531. // and/or suspend the commit to avoid hiding the parent content.
  30532. var InvisibleParentSuspenseContext = 1;
  30533. // Shallow Flags:
  30534. // ForceSuspenseFallback can be used by SuspenseList to force newly added
  30535. // items into their fallback state during one of the render passes.
  30536. var ForceSuspenseFallback = 2;
  30537. var suspenseStackCursor = createCursor(DefaultSuspenseContext);
  30538. function hasSuspenseContext(parentContext, flag) {
  30539. return (parentContext & flag) !== 0;
  30540. }
  30541. function setDefaultShallowSuspenseContext(parentContext) {
  30542. return parentContext & SubtreeSuspenseContextMask;
  30543. }
  30544. function setShallowSuspenseContext(parentContext, shallowContext) {
  30545. return parentContext & SubtreeSuspenseContextMask | shallowContext;
  30546. }
  30547. function addSubtreeSuspenseContext(parentContext, subtreeContext) {
  30548. return parentContext | subtreeContext;
  30549. }
  30550. function pushSuspenseContext(fiber, newContext) {
  30551. push(suspenseStackCursor, newContext, fiber);
  30552. }
  30553. function popSuspenseContext(fiber) {
  30554. pop(suspenseStackCursor, fiber);
  30555. }
  30556. // TODO: This is now an empty object. Should we switch this to a boolean?
  30557. // Alternatively we can make this use an effect tag similar to SuspenseList.
  30558. function shouldCaptureSuspense(workInProgress, hasInvisibleParent) {
  30559. // If it was the primary children that just suspended, capture and render the
  30560. var nextState = workInProgress.memoizedState;
  30561. if (nextState !== null) {
  30562. return false;
  30563. }
  30564. var props = workInProgress.memoizedProps;
  30565. // In order to capture, the Suspense component must have a fallback prop.
  30566. if (props.fallback === undefined) {
  30567. return false;
  30568. }
  30569. // Regular boundaries always capture.
  30570. if (props.unstable_avoidThisFallback !== true) {
  30571. return true;
  30572. }
  30573. // If it's a boundary we should avoid, then we prefer to bubble up to the
  30574. // parent boundary if it is currently invisible.
  30575. if (hasInvisibleParent) {
  30576. return false;
  30577. }
  30578. // If the parent is not able to handle it, we must handle it.
  30579. return true;
  30580. }
  30581. function findFirstSuspended(row) {
  30582. var node = row;
  30583. while (node !== null) {
  30584. if (node.tag === SuspenseComponent) {
  30585. var state = node.memoizedState;
  30586. if (state !== null) {
  30587. return node;
  30588. }
  30589. } else if (node.tag === SuspenseListComponent &&
  30590. // revealOrder undefined can't be trusted because it don't
  30591. // keep track of whether it suspended or not.
  30592. node.memoizedProps.revealOrder !== undefined) {
  30593. var didSuspend = (node.effectTag & DidCapture) !== NoEffect;
  30594. if (didSuspend) {
  30595. return node;
  30596. }
  30597. } else if (node.child !== null) {
  30598. node.child.return = node;
  30599. node = node.child;
  30600. continue;
  30601. }
  30602. if (node === row) {
  30603. return null;
  30604. }
  30605. while (node.sibling === null) {
  30606. if (node.return === null || node.return === row) {
  30607. return null;
  30608. }
  30609. node = node.return;
  30610. }
  30611. node.sibling.return = node.return;
  30612. node = node.sibling;
  30613. }
  30614. return null;
  30615. }
  30616. var NoEffect$1 = /* */0;
  30617. var UnmountSnapshot = /* */2;
  30618. var UnmountMutation = /* */4;
  30619. var MountMutation = /* */8;
  30620. var UnmountLayout = /* */16;
  30621. var MountLayout = /* */32;
  30622. var MountPassive = /* */64;
  30623. var UnmountPassive = /* */128;
  30624. var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher;
  30625. var didWarnAboutMismatchedHooksForComponent = void 0;
  30626. {
  30627. didWarnAboutMismatchedHooksForComponent = new Set();
  30628. }
  30629. // These are set right before calling the component.
  30630. var renderExpirationTime$1 = NoWork;
  30631. // The work-in-progress fiber. I've named it differently to distinguish it from
  30632. // the work-in-progress hook.
  30633. var currentlyRenderingFiber$1 = null;
  30634. // Hooks are stored as a linked list on the fiber's memoizedState field. The
  30635. // current hook list is the list that belongs to the current fiber. The
  30636. // work-in-progress hook list is a new list that will be added to the
  30637. // work-in-progress fiber.
  30638. var currentHook = null;
  30639. var nextCurrentHook = null;
  30640. var firstWorkInProgressHook = null;
  30641. var workInProgressHook = null;
  30642. var nextWorkInProgressHook = null;
  30643. var remainingExpirationTime = NoWork;
  30644. var componentUpdateQueue = null;
  30645. var sideEffectTag = 0;
  30646. // Updates scheduled during render will trigger an immediate re-render at the
  30647. // end of the current pass. We can't store these updates on the normal queue,
  30648. // because if the work is aborted, they should be discarded. Because this is
  30649. // a relatively rare case, we also don't want to add an additional field to
  30650. // either the hook or queue object types. So we store them in a lazily create
  30651. // map of queue -> render-phase updates, which are discarded once the component
  30652. // completes without re-rendering.
  30653. // Whether an update was scheduled during the currently executing render pass.
  30654. var didScheduleRenderPhaseUpdate = false;
  30655. // Lazily created map of render-phase updates
  30656. var renderPhaseUpdates = null;
  30657. // Counter to prevent infinite loops.
  30658. var numberOfReRenders = 0;
  30659. var RE_RENDER_LIMIT = 25;
  30660. // In DEV, this is the name of the currently executing primitive hook
  30661. var currentHookNameInDev = null;
  30662. // In DEV, this list ensures that hooks are called in the same order between renders.
  30663. // The list stores the order of hooks used during the initial render (mount).
  30664. // Subsequent renders (updates) reference this list.
  30665. var hookTypesDev = null;
  30666. var hookTypesUpdateIndexDev = -1;
  30667. // In DEV, this tracks whether currently rendering component needs to ignore
  30668. // the dependencies for Hooks that need them (e.g. useEffect or useMemo).
  30669. // When true, such Hooks will always be "remounted". Only used during hot reload.
  30670. var ignorePreviousDependencies = false;
  30671. function mountHookTypesDev() {
  30672. {
  30673. var hookName = currentHookNameInDev;
  30674. if (hookTypesDev === null) {
  30675. hookTypesDev = [hookName];
  30676. } else {
  30677. hookTypesDev.push(hookName);
  30678. }
  30679. }
  30680. }
  30681. function updateHookTypesDev() {
  30682. {
  30683. var hookName = currentHookNameInDev;
  30684. if (hookTypesDev !== null) {
  30685. hookTypesUpdateIndexDev++;
  30686. if (hookTypesDev[hookTypesUpdateIndexDev] !== hookName) {
  30687. warnOnHookMismatchInDev(hookName);
  30688. }
  30689. }
  30690. }
  30691. }
  30692. function checkDepsAreArrayDev(deps) {
  30693. {
  30694. if (deps !== undefined && deps !== null && !Array.isArray(deps)) {
  30695. // Verify deps, but only on mount to avoid extra checks.
  30696. // It's unlikely their type would change as usually you define them inline.
  30697. warning$1(false, '%s received a final argument that is not an array (instead, received `%s`). When ' + 'specified, the final argument must be an array.', currentHookNameInDev, typeof deps);
  30698. }
  30699. }
  30700. }
  30701. function warnOnHookMismatchInDev(currentHookName) {
  30702. {
  30703. var componentName = getComponentName(currentlyRenderingFiber$1.type);
  30704. if (!didWarnAboutMismatchedHooksForComponent.has(componentName)) {
  30705. didWarnAboutMismatchedHooksForComponent.add(componentName);
  30706. if (hookTypesDev !== null) {
  30707. var table = '';
  30708. var secondColumnStart = 30;
  30709. for (var i = 0; i <= hookTypesUpdateIndexDev; i++) {
  30710. var oldHookName = hookTypesDev[i];
  30711. var newHookName = i === hookTypesUpdateIndexDev ? currentHookName : oldHookName;
  30712. var row = i + 1 + '. ' + oldHookName;
  30713. // Extra space so second column lines up
  30714. // lol @ IE not supporting String#repeat
  30715. while (row.length < secondColumnStart) {
  30716. row += ' ';
  30717. }
  30718. row += newHookName + '\n';
  30719. table += row;
  30720. }
  30721. warning$1(false, 'React has detected a change in the order of Hooks called by %s. ' + 'This will lead to bugs and errors if not fixed. ' + 'For more information, read the Rules of Hooks: https://fb.me/rules-of-hooks\n\n' + ' Previous render Next render\n' + ' ------------------------------------------------------\n' + '%s' + ' ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n', componentName, table);
  30722. }
  30723. }
  30724. }
  30725. }
  30726. function throwInvalidHookError() {
  30727. (function () {
  30728. {
  30729. {
  30730. throw ReactError(Error('Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.'));
  30731. }
  30732. }
  30733. })();
  30734. }
  30735. function areHookInputsEqual(nextDeps, prevDeps) {
  30736. {
  30737. if (ignorePreviousDependencies) {
  30738. // Only true when this component is being hot reloaded.
  30739. return false;
  30740. }
  30741. }
  30742. if (prevDeps === null) {
  30743. {
  30744. warning$1(false, '%s received a final argument during this render, but not during ' + 'the previous render. Even though the final argument is optional, ' + 'its type cannot change between renders.', currentHookNameInDev);
  30745. }
  30746. return false;
  30747. }
  30748. {
  30749. // Don't bother comparing lengths in prod because these arrays should be
  30750. // passed inline.
  30751. if (nextDeps.length !== prevDeps.length) {
  30752. warning$1(false, 'The final argument passed to %s changed size between renders. The ' + 'order and size of this array must remain constant.\n\n' + 'Previous: %s\n' + 'Incoming: %s', currentHookNameInDev, '[' + prevDeps.join(', ') + ']', '[' + nextDeps.join(', ') + ']');
  30753. }
  30754. }
  30755. for (var i = 0; i < prevDeps.length && i < nextDeps.length; i++) {
  30756. if (is(nextDeps[i], prevDeps[i])) {
  30757. continue;
  30758. }
  30759. return false;
  30760. }
  30761. return true;
  30762. }
  30763. function renderWithHooks(current, workInProgress, Component, props, refOrContext, nextRenderExpirationTime) {
  30764. renderExpirationTime$1 = nextRenderExpirationTime;
  30765. currentlyRenderingFiber$1 = workInProgress;
  30766. nextCurrentHook = current !== null ? current.memoizedState : null;
  30767. {
  30768. hookTypesDev = current !== null ? current._debugHookTypes : null;
  30769. hookTypesUpdateIndexDev = -1;
  30770. // Used for hot reloading:
  30771. ignorePreviousDependencies = current !== null && current.type !== workInProgress.type;
  30772. }
  30773. // The following should have already been reset
  30774. // currentHook = null;
  30775. // workInProgressHook = null;
  30776. // remainingExpirationTime = NoWork;
  30777. // componentUpdateQueue = null;
  30778. // didScheduleRenderPhaseUpdate = false;
  30779. // renderPhaseUpdates = null;
  30780. // numberOfReRenders = 0;
  30781. // sideEffectTag = 0;
  30782. // TODO Warn if no hooks are used at all during mount, then some are used during update.
  30783. // Currently we will identify the update render as a mount because nextCurrentHook === null.
  30784. // This is tricky because it's valid for certain types of components (e.g. React.lazy)
  30785. // Using nextCurrentHook to differentiate between mount/update only works if at least one stateful hook is used.
  30786. // Non-stateful hooks (e.g. context) don't get added to memoizedState,
  30787. // so nextCurrentHook would be null during updates and mounts.
  30788. {
  30789. if (nextCurrentHook !== null) {
  30790. ReactCurrentDispatcher$1.current = HooksDispatcherOnUpdateInDEV;
  30791. } else if (hookTypesDev !== null) {
  30792. // This dispatcher handles an edge case where a component is updating,
  30793. // but no stateful hooks have been used.
  30794. // We want to match the production code behavior (which will use HooksDispatcherOnMount),
  30795. // but with the extra DEV validation to ensure hooks ordering hasn't changed.
  30796. // This dispatcher does that.
  30797. ReactCurrentDispatcher$1.current = HooksDispatcherOnMountWithHookTypesInDEV;
  30798. } else {
  30799. ReactCurrentDispatcher$1.current = HooksDispatcherOnMountInDEV;
  30800. }
  30801. }
  30802. var children = Component(props, refOrContext);
  30803. if (didScheduleRenderPhaseUpdate) {
  30804. do {
  30805. didScheduleRenderPhaseUpdate = false;
  30806. numberOfReRenders += 1;
  30807. // Start over from the beginning of the list
  30808. nextCurrentHook = current !== null ? current.memoizedState : null;
  30809. nextWorkInProgressHook = firstWorkInProgressHook;
  30810. currentHook = null;
  30811. workInProgressHook = null;
  30812. componentUpdateQueue = null;
  30813. {
  30814. // Also validate hook order for cascading updates.
  30815. hookTypesUpdateIndexDev = -1;
  30816. }
  30817. ReactCurrentDispatcher$1.current = HooksDispatcherOnUpdateInDEV;
  30818. children = Component(props, refOrContext);
  30819. } while (didScheduleRenderPhaseUpdate);
  30820. renderPhaseUpdates = null;
  30821. numberOfReRenders = 0;
  30822. }
  30823. // We can assume the previous dispatcher is always this one, since we set it
  30824. // at the beginning of the render phase and there's no re-entrancy.
  30825. ReactCurrentDispatcher$1.current = ContextOnlyDispatcher;
  30826. var renderedWork = currentlyRenderingFiber$1;
  30827. renderedWork.memoizedState = firstWorkInProgressHook;
  30828. renderedWork.expirationTime = remainingExpirationTime;
  30829. renderedWork.updateQueue = componentUpdateQueue;
  30830. renderedWork.effectTag |= sideEffectTag;
  30831. {
  30832. renderedWork._debugHookTypes = hookTypesDev;
  30833. }
  30834. // This check uses currentHook so that it works the same in DEV and prod bundles.
  30835. // hookTypesDev could catch more cases (e.g. context) but only in DEV bundles.
  30836. var didRenderTooFewHooks = currentHook !== null && currentHook.next !== null;
  30837. renderExpirationTime$1 = NoWork;
  30838. currentlyRenderingFiber$1 = null;
  30839. currentHook = null;
  30840. nextCurrentHook = null;
  30841. firstWorkInProgressHook = null;
  30842. workInProgressHook = null;
  30843. nextWorkInProgressHook = null;
  30844. {
  30845. currentHookNameInDev = null;
  30846. hookTypesDev = null;
  30847. hookTypesUpdateIndexDev = -1;
  30848. }
  30849. remainingExpirationTime = NoWork;
  30850. componentUpdateQueue = null;
  30851. sideEffectTag = 0;
  30852. // These were reset above
  30853. // didScheduleRenderPhaseUpdate = false;
  30854. // renderPhaseUpdates = null;
  30855. // numberOfReRenders = 0;
  30856. (function () {
  30857. if (!!didRenderTooFewHooks) {
  30858. {
  30859. throw ReactError(Error('Rendered fewer hooks than expected. This may be caused by an accidental early return statement.'));
  30860. }
  30861. }
  30862. })();
  30863. return children;
  30864. }
  30865. function bailoutHooks(current, workInProgress, expirationTime) {
  30866. workInProgress.updateQueue = current.updateQueue;
  30867. workInProgress.effectTag &= ~(Passive | Update);
  30868. if (current.expirationTime <= expirationTime) {
  30869. current.expirationTime = NoWork;
  30870. }
  30871. }
  30872. function resetHooks() {
  30873. // We can assume the previous dispatcher is always this one, since we set it
  30874. // at the beginning of the render phase and there's no re-entrancy.
  30875. ReactCurrentDispatcher$1.current = ContextOnlyDispatcher;
  30876. // This is used to reset the state of this module when a component throws.
  30877. // It's also called inside mountIndeterminateComponent if we determine the
  30878. // component is a module-style component.
  30879. renderExpirationTime$1 = NoWork;
  30880. currentlyRenderingFiber$1 = null;
  30881. currentHook = null;
  30882. nextCurrentHook = null;
  30883. firstWorkInProgressHook = null;
  30884. workInProgressHook = null;
  30885. nextWorkInProgressHook = null;
  30886. {
  30887. hookTypesDev = null;
  30888. hookTypesUpdateIndexDev = -1;
  30889. currentHookNameInDev = null;
  30890. }
  30891. remainingExpirationTime = NoWork;
  30892. componentUpdateQueue = null;
  30893. sideEffectTag = 0;
  30894. didScheduleRenderPhaseUpdate = false;
  30895. renderPhaseUpdates = null;
  30896. numberOfReRenders = 0;
  30897. }
  30898. function mountWorkInProgressHook() {
  30899. var hook = {
  30900. memoizedState: null,
  30901. baseState: null,
  30902. queue: null,
  30903. baseUpdate: null,
  30904. next: null
  30905. };
  30906. if (workInProgressHook === null) {
  30907. // This is the first hook in the list
  30908. firstWorkInProgressHook = workInProgressHook = hook;
  30909. } else {
  30910. // Append to the end of the list
  30911. workInProgressHook = workInProgressHook.next = hook;
  30912. }
  30913. return workInProgressHook;
  30914. }
  30915. function updateWorkInProgressHook() {
  30916. // This function is used both for updates and for re-renders triggered by a
  30917. // render phase update. It assumes there is either a current hook we can
  30918. // clone, or a work-in-progress hook from a previous render pass that we can
  30919. // use as a base. When we reach the end of the base list, we must switch to
  30920. // the dispatcher used for mounts.
  30921. if (nextWorkInProgressHook !== null) {
  30922. // There's already a work-in-progress. Reuse it.
  30923. workInProgressHook = nextWorkInProgressHook;
  30924. nextWorkInProgressHook = workInProgressHook.next;
  30925. currentHook = nextCurrentHook;
  30926. nextCurrentHook = currentHook !== null ? currentHook.next : null;
  30927. } else {
  30928. // Clone from the current hook.
  30929. (function () {
  30930. if (!(nextCurrentHook !== null)) {
  30931. {
  30932. throw ReactError(Error('Rendered more hooks than during the previous render.'));
  30933. }
  30934. }
  30935. })();
  30936. currentHook = nextCurrentHook;
  30937. var newHook = {
  30938. memoizedState: currentHook.memoizedState,
  30939. baseState: currentHook.baseState,
  30940. queue: currentHook.queue,
  30941. baseUpdate: currentHook.baseUpdate,
  30942. next: null
  30943. };
  30944. if (workInProgressHook === null) {
  30945. // This is the first hook in the list.
  30946. workInProgressHook = firstWorkInProgressHook = newHook;
  30947. } else {
  30948. // Append to the end of the list.
  30949. workInProgressHook = workInProgressHook.next = newHook;
  30950. }
  30951. nextCurrentHook = currentHook.next;
  30952. }
  30953. return workInProgressHook;
  30954. }
  30955. function createFunctionComponentUpdateQueue() {
  30956. return {
  30957. lastEffect: null
  30958. };
  30959. }
  30960. function basicStateReducer(state, action) {
  30961. return typeof action === 'function' ? action(state) : action;
  30962. }
  30963. function mountReducer(reducer, initialArg, init) {
  30964. var hook = mountWorkInProgressHook();
  30965. var initialState = void 0;
  30966. if (init !== undefined) {
  30967. initialState = init(initialArg);
  30968. } else {
  30969. initialState = initialArg;
  30970. }
  30971. hook.memoizedState = hook.baseState = initialState;
  30972. var queue = hook.queue = {
  30973. last: null,
  30974. dispatch: null,
  30975. lastRenderedReducer: reducer,
  30976. lastRenderedState: initialState
  30977. };
  30978. var dispatch = queue.dispatch = dispatchAction.bind(null,
  30979. // Flow doesn't know this is non-null, but we do.
  30980. currentlyRenderingFiber$1, queue);
  30981. return [hook.memoizedState, dispatch];
  30982. }
  30983. function updateReducer(reducer, initialArg, init) {
  30984. var hook = updateWorkInProgressHook();
  30985. var queue = hook.queue;
  30986. (function () {
  30987. if (!(queue !== null)) {
  30988. {
  30989. throw ReactError(Error('Should have a queue. This is likely a bug in React. Please file an issue.'));
  30990. }
  30991. }
  30992. })();
  30993. queue.lastRenderedReducer = reducer;
  30994. if (numberOfReRenders > 0) {
  30995. // This is a re-render. Apply the new render phase updates to the previous
  30996. var _dispatch = queue.dispatch;
  30997. if (renderPhaseUpdates !== null) {
  30998. // Render phase updates are stored in a map of queue -> linked list
  30999. var firstRenderPhaseUpdate = renderPhaseUpdates.get(queue);
  31000. if (firstRenderPhaseUpdate !== undefined) {
  31001. renderPhaseUpdates.delete(queue);
  31002. var newState = hook.memoizedState;
  31003. var update = firstRenderPhaseUpdate;
  31004. do {
  31005. // Process this render phase update. We don't have to check the
  31006. // priority because it will always be the same as the current
  31007. // render's.
  31008. var _action = update.action;
  31009. newState = reducer(newState, _action);
  31010. update = update.next;
  31011. } while (update !== null);
  31012. // Mark that the fiber performed work, but only if the new state is
  31013. // different from the current state.
  31014. if (!is(newState, hook.memoizedState)) {
  31015. markWorkInProgressReceivedUpdate();
  31016. }
  31017. hook.memoizedState = newState;
  31018. // Don't persist the state accumulated from the render phase updates to
  31019. // the base state unless the queue is empty.
  31020. // TODO: Not sure if this is the desired semantics, but it's what we
  31021. // do for gDSFP. I can't remember why.
  31022. if (hook.baseUpdate === queue.last) {
  31023. hook.baseState = newState;
  31024. }
  31025. queue.lastRenderedState = newState;
  31026. return [newState, _dispatch];
  31027. }
  31028. }
  31029. return [hook.memoizedState, _dispatch];
  31030. }
  31031. // The last update in the entire queue
  31032. var last = queue.last;
  31033. // The last update that is part of the base state.
  31034. var baseUpdate = hook.baseUpdate;
  31035. var baseState = hook.baseState;
  31036. // Find the first unprocessed update.
  31037. var first = void 0;
  31038. if (baseUpdate !== null) {
  31039. if (last !== null) {
  31040. // For the first update, the queue is a circular linked list where
  31041. // `queue.last.next = queue.first`. Once the first update commits, and
  31042. // the `baseUpdate` is no longer empty, we can unravel the list.
  31043. last.next = null;
  31044. }
  31045. first = baseUpdate.next;
  31046. } else {
  31047. first = last !== null ? last.next : null;
  31048. }
  31049. if (first !== null) {
  31050. var _newState = baseState;
  31051. var newBaseState = null;
  31052. var newBaseUpdate = null;
  31053. var prevUpdate = baseUpdate;
  31054. var _update = first;
  31055. var didSkip = false;
  31056. do {
  31057. var updateExpirationTime = _update.expirationTime;
  31058. if (updateExpirationTime < renderExpirationTime$1) {
  31059. // Priority is insufficient. Skip this update. If this is the first
  31060. // skipped update, the previous update/state is the new base
  31061. // update/state.
  31062. if (!didSkip) {
  31063. didSkip = true;
  31064. newBaseUpdate = prevUpdate;
  31065. newBaseState = _newState;
  31066. }
  31067. // Update the remaining priority in the queue.
  31068. if (updateExpirationTime > remainingExpirationTime) {
  31069. remainingExpirationTime = updateExpirationTime;
  31070. }
  31071. } else {
  31072. // This update does have sufficient priority.
  31073. // Mark the event time of this update as relevant to this render pass.
  31074. // TODO: This should ideally use the true event time of this update rather than
  31075. // its priority which is a derived and not reverseable value.
  31076. // TODO: We should skip this update if it was already committed but currently
  31077. // we have no way of detecting the difference between a committed and suspended
  31078. // update here.
  31079. markRenderEventTimeAndConfig(updateExpirationTime, _update.suspenseConfig);
  31080. // Process this update.
  31081. if (_update.eagerReducer === reducer) {
  31082. // If this update was processed eagerly, and its reducer matches the
  31083. // current reducer, we can use the eagerly computed state.
  31084. _newState = _update.eagerState;
  31085. } else {
  31086. var _action2 = _update.action;
  31087. _newState = reducer(_newState, _action2);
  31088. }
  31089. }
  31090. prevUpdate = _update;
  31091. _update = _update.next;
  31092. } while (_update !== null && _update !== first);
  31093. if (!didSkip) {
  31094. newBaseUpdate = prevUpdate;
  31095. newBaseState = _newState;
  31096. }
  31097. // Mark that the fiber performed work, but only if the new state is
  31098. // different from the current state.
  31099. if (!is(_newState, hook.memoizedState)) {
  31100. markWorkInProgressReceivedUpdate();
  31101. }
  31102. hook.memoizedState = _newState;
  31103. hook.baseUpdate = newBaseUpdate;
  31104. hook.baseState = newBaseState;
  31105. queue.lastRenderedState = _newState;
  31106. }
  31107. var dispatch = queue.dispatch;
  31108. return [hook.memoizedState, dispatch];
  31109. }
  31110. function mountState(initialState) {
  31111. var hook = mountWorkInProgressHook();
  31112. if (typeof initialState === 'function') {
  31113. initialState = initialState();
  31114. }
  31115. hook.memoizedState = hook.baseState = initialState;
  31116. var queue = hook.queue = {
  31117. last: null,
  31118. dispatch: null,
  31119. lastRenderedReducer: basicStateReducer,
  31120. lastRenderedState: initialState
  31121. };
  31122. var dispatch = queue.dispatch = dispatchAction.bind(null,
  31123. // Flow doesn't know this is non-null, but we do.
  31124. currentlyRenderingFiber$1, queue);
  31125. return [hook.memoizedState, dispatch];
  31126. }
  31127. function updateState(initialState) {
  31128. return updateReducer(basicStateReducer, initialState);
  31129. }
  31130. function pushEffect(tag, create, destroy, deps) {
  31131. var effect = {
  31132. tag: tag,
  31133. create: create,
  31134. destroy: destroy,
  31135. deps: deps,
  31136. // Circular
  31137. next: null
  31138. };
  31139. if (componentUpdateQueue === null) {
  31140. componentUpdateQueue = createFunctionComponentUpdateQueue();
  31141. componentUpdateQueue.lastEffect = effect.next = effect;
  31142. } else {
  31143. var _lastEffect = componentUpdateQueue.lastEffect;
  31144. if (_lastEffect === null) {
  31145. componentUpdateQueue.lastEffect = effect.next = effect;
  31146. } else {
  31147. var firstEffect = _lastEffect.next;
  31148. _lastEffect.next = effect;
  31149. effect.next = firstEffect;
  31150. componentUpdateQueue.lastEffect = effect;
  31151. }
  31152. }
  31153. return effect;
  31154. }
  31155. function mountRef(initialValue) {
  31156. var hook = mountWorkInProgressHook();
  31157. var ref = { current: initialValue };
  31158. {
  31159. Object.seal(ref);
  31160. }
  31161. hook.memoizedState = ref;
  31162. return ref;
  31163. }
  31164. function updateRef(initialValue) {
  31165. var hook = updateWorkInProgressHook();
  31166. return hook.memoizedState;
  31167. }
  31168. function mountEffectImpl(fiberEffectTag, hookEffectTag, create, deps) {
  31169. var hook = mountWorkInProgressHook();
  31170. var nextDeps = deps === undefined ? null : deps;
  31171. sideEffectTag |= fiberEffectTag;
  31172. hook.memoizedState = pushEffect(hookEffectTag, create, undefined, nextDeps);
  31173. }
  31174. function updateEffectImpl(fiberEffectTag, hookEffectTag, create, deps) {
  31175. var hook = updateWorkInProgressHook();
  31176. var nextDeps = deps === undefined ? null : deps;
  31177. var destroy = undefined;
  31178. if (currentHook !== null) {
  31179. var prevEffect = currentHook.memoizedState;
  31180. destroy = prevEffect.destroy;
  31181. if (nextDeps !== null) {
  31182. var prevDeps = prevEffect.deps;
  31183. if (areHookInputsEqual(nextDeps, prevDeps)) {
  31184. pushEffect(NoEffect$1, create, destroy, nextDeps);
  31185. return;
  31186. }
  31187. }
  31188. }
  31189. sideEffectTag |= fiberEffectTag;
  31190. hook.memoizedState = pushEffect(hookEffectTag, create, destroy, nextDeps);
  31191. }
  31192. function mountEffect(create, deps) {
  31193. {
  31194. // $FlowExpectedError - jest isn't a global, and isn't recognized outside of tests
  31195. if ('undefined' !== typeof jest) {
  31196. warnIfNotCurrentlyActingEffectsInDEV(currentlyRenderingFiber$1);
  31197. }
  31198. }
  31199. return mountEffectImpl(Update | Passive, UnmountPassive | MountPassive, create, deps);
  31200. }
  31201. function updateEffect(create, deps) {
  31202. {
  31203. // $FlowExpectedError - jest isn't a global, and isn't recognized outside of tests
  31204. if ('undefined' !== typeof jest) {
  31205. warnIfNotCurrentlyActingEffectsInDEV(currentlyRenderingFiber$1);
  31206. }
  31207. }
  31208. return updateEffectImpl(Update | Passive, UnmountPassive | MountPassive, create, deps);
  31209. }
  31210. function mountLayoutEffect(create, deps) {
  31211. return mountEffectImpl(Update, UnmountMutation | MountLayout, create, deps);
  31212. }
  31213. function updateLayoutEffect(create, deps) {
  31214. return updateEffectImpl(Update, UnmountMutation | MountLayout, create, deps);
  31215. }
  31216. function imperativeHandleEffect(create, ref) {
  31217. if (typeof ref === 'function') {
  31218. var refCallback = ref;
  31219. var _inst = create();
  31220. refCallback(_inst);
  31221. return function () {
  31222. refCallback(null);
  31223. };
  31224. } else if (ref !== null && ref !== undefined) {
  31225. var refObject = ref;
  31226. {
  31227. !refObject.hasOwnProperty('current') ? warning$1(false, 'Expected useImperativeHandle() first argument to either be a ' + 'ref callback or React.createRef() object. Instead received: %s.', 'an object with keys {' + Object.keys(refObject).join(', ') + '}') : void 0;
  31228. }
  31229. var _inst2 = create();
  31230. refObject.current = _inst2;
  31231. return function () {
  31232. refObject.current = null;
  31233. };
  31234. }
  31235. }
  31236. function mountImperativeHandle(ref, create, deps) {
  31237. {
  31238. !(typeof create === 'function') ? warning$1(false, 'Expected useImperativeHandle() second argument to be a function ' + 'that creates a handle. Instead received: %s.', create !== null ? typeof create : 'null') : void 0;
  31239. }
  31240. // TODO: If deps are provided, should we skip comparing the ref itself?
  31241. var effectDeps = deps !== null && deps !== undefined ? deps.concat([ref]) : null;
  31242. return mountEffectImpl(Update, UnmountMutation | MountLayout, imperativeHandleEffect.bind(null, create, ref), effectDeps);
  31243. }
  31244. function updateImperativeHandle(ref, create, deps) {
  31245. {
  31246. !(typeof create === 'function') ? warning$1(false, 'Expected useImperativeHandle() second argument to be a function ' + 'that creates a handle. Instead received: %s.', create !== null ? typeof create : 'null') : void 0;
  31247. }
  31248. // TODO: If deps are provided, should we skip comparing the ref itself?
  31249. var effectDeps = deps !== null && deps !== undefined ? deps.concat([ref]) : null;
  31250. return updateEffectImpl(Update, UnmountMutation | MountLayout, imperativeHandleEffect.bind(null, create, ref), effectDeps);
  31251. }
  31252. function mountDebugValue(value, formatterFn) {
  31253. // This hook is normally a no-op.
  31254. // The react-debug-hooks package injects its own implementation
  31255. // so that e.g. DevTools can display custom hook values.
  31256. }
  31257. var updateDebugValue = mountDebugValue;
  31258. function mountCallback(callback, deps) {
  31259. var hook = mountWorkInProgressHook();
  31260. var nextDeps = deps === undefined ? null : deps;
  31261. hook.memoizedState = [callback, nextDeps];
  31262. return callback;
  31263. }
  31264. function updateCallback(callback, deps) {
  31265. var hook = updateWorkInProgressHook();
  31266. var nextDeps = deps === undefined ? null : deps;
  31267. var prevState = hook.memoizedState;
  31268. if (prevState !== null) {
  31269. if (nextDeps !== null) {
  31270. var prevDeps = prevState[1];
  31271. if (areHookInputsEqual(nextDeps, prevDeps)) {
  31272. return prevState[0];
  31273. }
  31274. }
  31275. }
  31276. hook.memoizedState = [callback, nextDeps];
  31277. return callback;
  31278. }
  31279. function mountMemo(nextCreate, deps) {
  31280. var hook = mountWorkInProgressHook();
  31281. var nextDeps = deps === undefined ? null : deps;
  31282. var nextValue = nextCreate();
  31283. hook.memoizedState = [nextValue, nextDeps];
  31284. return nextValue;
  31285. }
  31286. function updateMemo(nextCreate, deps) {
  31287. var hook = updateWorkInProgressHook();
  31288. var nextDeps = deps === undefined ? null : deps;
  31289. var prevState = hook.memoizedState;
  31290. if (prevState !== null) {
  31291. // Assume these are defined. If they're not, areHookInputsEqual will warn.
  31292. if (nextDeps !== null) {
  31293. var prevDeps = prevState[1];
  31294. if (areHookInputsEqual(nextDeps, prevDeps)) {
  31295. return prevState[0];
  31296. }
  31297. }
  31298. }
  31299. var nextValue = nextCreate();
  31300. hook.memoizedState = [nextValue, nextDeps];
  31301. return nextValue;
  31302. }
  31303. function dispatchAction(fiber, queue, action) {
  31304. (function () {
  31305. if (!(numberOfReRenders < RE_RENDER_LIMIT)) {
  31306. {
  31307. throw ReactError(Error('Too many re-renders. React limits the number of renders to prevent an infinite loop.'));
  31308. }
  31309. }
  31310. })();
  31311. {
  31312. !(arguments.length <= 3) ? warning$1(false, "State updates from the useState() and useReducer() Hooks don't support the " + 'second callback argument. To execute a side effect after ' + 'rendering, declare it in the component body with useEffect().') : void 0;
  31313. }
  31314. var alternate = fiber.alternate;
  31315. if (fiber === currentlyRenderingFiber$1 || alternate !== null && alternate === currentlyRenderingFiber$1) {
  31316. // This is a render phase update. Stash it in a lazily-created map of
  31317. // queue -> linked list of updates. After this render pass, we'll restart
  31318. // and apply the stashed updates on top of the work-in-progress hook.
  31319. didScheduleRenderPhaseUpdate = true;
  31320. var update = {
  31321. expirationTime: renderExpirationTime$1,
  31322. suspenseConfig: null,
  31323. action: action,
  31324. eagerReducer: null,
  31325. eagerState: null,
  31326. next: null
  31327. };
  31328. {
  31329. update.priority = getCurrentPriorityLevel();
  31330. }
  31331. if (renderPhaseUpdates === null) {
  31332. renderPhaseUpdates = new Map();
  31333. }
  31334. var firstRenderPhaseUpdate = renderPhaseUpdates.get(queue);
  31335. if (firstRenderPhaseUpdate === undefined) {
  31336. renderPhaseUpdates.set(queue, update);
  31337. } else {
  31338. // Append the update to the end of the list.
  31339. var lastRenderPhaseUpdate = firstRenderPhaseUpdate;
  31340. while (lastRenderPhaseUpdate.next !== null) {
  31341. lastRenderPhaseUpdate = lastRenderPhaseUpdate.next;
  31342. }
  31343. lastRenderPhaseUpdate.next = update;
  31344. }
  31345. } else {
  31346. if (revertPassiveEffectsChange) {
  31347. flushPassiveEffects();
  31348. }
  31349. var currentTime = requestCurrentTime();
  31350. var _suspenseConfig = requestCurrentSuspenseConfig();
  31351. var _expirationTime = computeExpirationForFiber(currentTime, fiber, _suspenseConfig);
  31352. var _update2 = {
  31353. expirationTime: _expirationTime,
  31354. suspenseConfig: _suspenseConfig,
  31355. action: action,
  31356. eagerReducer: null,
  31357. eagerState: null,
  31358. next: null
  31359. };
  31360. {
  31361. _update2.priority = getCurrentPriorityLevel();
  31362. }
  31363. // Append the update to the end of the list.
  31364. var _last = queue.last;
  31365. if (_last === null) {
  31366. // This is the first update. Create a circular list.
  31367. _update2.next = _update2;
  31368. } else {
  31369. var first = _last.next;
  31370. if (first !== null) {
  31371. // Still circular.
  31372. _update2.next = first;
  31373. }
  31374. _last.next = _update2;
  31375. }
  31376. queue.last = _update2;
  31377. if (fiber.expirationTime === NoWork && (alternate === null || alternate.expirationTime === NoWork)) {
  31378. // The queue is currently empty, which means we can eagerly compute the
  31379. // next state before entering the render phase. If the new state is the
  31380. // same as the current state, we may be able to bail out entirely.
  31381. var _lastRenderedReducer = queue.lastRenderedReducer;
  31382. if (_lastRenderedReducer !== null) {
  31383. var prevDispatcher = void 0;
  31384. {
  31385. prevDispatcher = ReactCurrentDispatcher$1.current;
  31386. ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
  31387. }
  31388. try {
  31389. var currentState = queue.lastRenderedState;
  31390. var _eagerState = _lastRenderedReducer(currentState, action);
  31391. // Stash the eagerly computed state, and the reducer used to compute
  31392. // it, on the update object. If the reducer hasn't changed by the
  31393. // time we enter the render phase, then the eager state can be used
  31394. // without calling the reducer again.
  31395. _update2.eagerReducer = _lastRenderedReducer;
  31396. _update2.eagerState = _eagerState;
  31397. if (is(_eagerState, currentState)) {
  31398. // Fast path. We can bail out without scheduling React to re-render.
  31399. // It's still possible that we'll need to rebase this update later,
  31400. // if the component re-renders for a different reason and by that
  31401. // time the reducer has changed.
  31402. return;
  31403. }
  31404. } catch (error) {
  31405. // Suppress the error. It will throw again in the render phase.
  31406. } finally {
  31407. {
  31408. ReactCurrentDispatcher$1.current = prevDispatcher;
  31409. }
  31410. }
  31411. }
  31412. }
  31413. {
  31414. // $FlowExpectedError - jest isn't a global, and isn't recognized outside of tests
  31415. if ('undefined' !== typeof jest) {
  31416. warnIfNotScopedWithMatchingAct(fiber);
  31417. warnIfNotCurrentlyActingUpdatesInDev(fiber);
  31418. }
  31419. }
  31420. scheduleWork(fiber, _expirationTime);
  31421. }
  31422. }
  31423. var ContextOnlyDispatcher = {
  31424. readContext: readContext,
  31425. useCallback: throwInvalidHookError,
  31426. useContext: throwInvalidHookError,
  31427. useEffect: throwInvalidHookError,
  31428. useImperativeHandle: throwInvalidHookError,
  31429. useLayoutEffect: throwInvalidHookError,
  31430. useMemo: throwInvalidHookError,
  31431. useReducer: throwInvalidHookError,
  31432. useRef: throwInvalidHookError,
  31433. useState: throwInvalidHookError,
  31434. useDebugValue: throwInvalidHookError,
  31435. useResponder: throwInvalidHookError
  31436. };
  31437. var HooksDispatcherOnMountInDEV = null;
  31438. var HooksDispatcherOnMountWithHookTypesInDEV = null;
  31439. var HooksDispatcherOnUpdateInDEV = null;
  31440. var InvalidNestedHooksDispatcherOnMountInDEV = null;
  31441. var InvalidNestedHooksDispatcherOnUpdateInDEV = null;
  31442. {
  31443. var warnInvalidContextAccess = function () {
  31444. warning$1(false, 'Context can only be read while React is rendering. ' + 'In classes, you can read it in the render method or getDerivedStateFromProps. ' + 'In function components, you can read it directly in the function body, but not ' + 'inside Hooks like useReducer() or useMemo().');
  31445. };
  31446. var warnInvalidHookAccess = function () {
  31447. warning$1(false, 'Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. ' + 'You can only call Hooks at the top level of your React function. ' + 'For more information, see ' + 'https://fb.me/rules-of-hooks');
  31448. };
  31449. HooksDispatcherOnMountInDEV = {
  31450. readContext: function (context, observedBits) {
  31451. return readContext(context, observedBits);
  31452. },
  31453. useCallback: function (callback, deps) {
  31454. currentHookNameInDev = 'useCallback';
  31455. mountHookTypesDev();
  31456. checkDepsAreArrayDev(deps);
  31457. return mountCallback(callback, deps);
  31458. },
  31459. useContext: function (context, observedBits) {
  31460. currentHookNameInDev = 'useContext';
  31461. mountHookTypesDev();
  31462. return readContext(context, observedBits);
  31463. },
  31464. useEffect: function (create, deps) {
  31465. currentHookNameInDev = 'useEffect';
  31466. mountHookTypesDev();
  31467. checkDepsAreArrayDev(deps);
  31468. return mountEffect(create, deps);
  31469. },
  31470. useImperativeHandle: function (ref, create, deps) {
  31471. currentHookNameInDev = 'useImperativeHandle';
  31472. mountHookTypesDev();
  31473. checkDepsAreArrayDev(deps);
  31474. return mountImperativeHandle(ref, create, deps);
  31475. },
  31476. useLayoutEffect: function (create, deps) {
  31477. currentHookNameInDev = 'useLayoutEffect';
  31478. mountHookTypesDev();
  31479. checkDepsAreArrayDev(deps);
  31480. return mountLayoutEffect(create, deps);
  31481. },
  31482. useMemo: function (create, deps) {
  31483. currentHookNameInDev = 'useMemo';
  31484. mountHookTypesDev();
  31485. checkDepsAreArrayDev(deps);
  31486. var prevDispatcher = ReactCurrentDispatcher$1.current;
  31487. ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;
  31488. try {
  31489. return mountMemo(create, deps);
  31490. } finally {
  31491. ReactCurrentDispatcher$1.current = prevDispatcher;
  31492. }
  31493. },
  31494. useReducer: function (reducer, initialArg, init) {
  31495. currentHookNameInDev = 'useReducer';
  31496. mountHookTypesDev();
  31497. var prevDispatcher = ReactCurrentDispatcher$1.current;
  31498. ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;
  31499. try {
  31500. return mountReducer(reducer, initialArg, init);
  31501. } finally {
  31502. ReactCurrentDispatcher$1.current = prevDispatcher;
  31503. }
  31504. },
  31505. useRef: function (initialValue) {
  31506. currentHookNameInDev = 'useRef';
  31507. mountHookTypesDev();
  31508. return mountRef(initialValue);
  31509. },
  31510. useState: function (initialState) {
  31511. currentHookNameInDev = 'useState';
  31512. mountHookTypesDev();
  31513. var prevDispatcher = ReactCurrentDispatcher$1.current;
  31514. ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;
  31515. try {
  31516. return mountState(initialState);
  31517. } finally {
  31518. ReactCurrentDispatcher$1.current = prevDispatcher;
  31519. }
  31520. },
  31521. useDebugValue: function (value, formatterFn) {
  31522. currentHookNameInDev = 'useDebugValue';
  31523. mountHookTypesDev();
  31524. return mountDebugValue(value, formatterFn);
  31525. },
  31526. useResponder: function (responder, props) {
  31527. currentHookNameInDev = 'useResponder';
  31528. mountHookTypesDev();
  31529. return createResponderListener(responder, props);
  31530. }
  31531. };
  31532. HooksDispatcherOnMountWithHookTypesInDEV = {
  31533. readContext: function (context, observedBits) {
  31534. return readContext(context, observedBits);
  31535. },
  31536. useCallback: function (callback, deps) {
  31537. currentHookNameInDev = 'useCallback';
  31538. updateHookTypesDev();
  31539. return mountCallback(callback, deps);
  31540. },
  31541. useContext: function (context, observedBits) {
  31542. currentHookNameInDev = 'useContext';
  31543. updateHookTypesDev();
  31544. return readContext(context, observedBits);
  31545. },
  31546. useEffect: function (create, deps) {
  31547. currentHookNameInDev = 'useEffect';
  31548. updateHookTypesDev();
  31549. return mountEffect(create, deps);
  31550. },
  31551. useImperativeHandle: function (ref, create, deps) {
  31552. currentHookNameInDev = 'useImperativeHandle';
  31553. updateHookTypesDev();
  31554. return mountImperativeHandle(ref, create, deps);
  31555. },
  31556. useLayoutEffect: function (create, deps) {
  31557. currentHookNameInDev = 'useLayoutEffect';
  31558. updateHookTypesDev();
  31559. return mountLayoutEffect(create, deps);
  31560. },
  31561. useMemo: function (create, deps) {
  31562. currentHookNameInDev = 'useMemo';
  31563. updateHookTypesDev();
  31564. var prevDispatcher = ReactCurrentDispatcher$1.current;
  31565. ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;
  31566. try {
  31567. return mountMemo(create, deps);
  31568. } finally {
  31569. ReactCurrentDispatcher$1.current = prevDispatcher;
  31570. }
  31571. },
  31572. useReducer: function (reducer, initialArg, init) {
  31573. currentHookNameInDev = 'useReducer';
  31574. updateHookTypesDev();
  31575. var prevDispatcher = ReactCurrentDispatcher$1.current;
  31576. ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;
  31577. try {
  31578. return mountReducer(reducer, initialArg, init);
  31579. } finally {
  31580. ReactCurrentDispatcher$1.current = prevDispatcher;
  31581. }
  31582. },
  31583. useRef: function (initialValue) {
  31584. currentHookNameInDev = 'useRef';
  31585. updateHookTypesDev();
  31586. return mountRef(initialValue);
  31587. },
  31588. useState: function (initialState) {
  31589. currentHookNameInDev = 'useState';
  31590. updateHookTypesDev();
  31591. var prevDispatcher = ReactCurrentDispatcher$1.current;
  31592. ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;
  31593. try {
  31594. return mountState(initialState);
  31595. } finally {
  31596. ReactCurrentDispatcher$1.current = prevDispatcher;
  31597. }
  31598. },
  31599. useDebugValue: function (value, formatterFn) {
  31600. currentHookNameInDev = 'useDebugValue';
  31601. updateHookTypesDev();
  31602. return mountDebugValue(value, formatterFn);
  31603. },
  31604. useResponder: function (responder, props) {
  31605. currentHookNameInDev = 'useResponder';
  31606. updateHookTypesDev();
  31607. return createResponderListener(responder, props);
  31608. }
  31609. };
  31610. HooksDispatcherOnUpdateInDEV = {
  31611. readContext: function (context, observedBits) {
  31612. return readContext(context, observedBits);
  31613. },
  31614. useCallback: function (callback, deps) {
  31615. currentHookNameInDev = 'useCallback';
  31616. updateHookTypesDev();
  31617. return updateCallback(callback, deps);
  31618. },
  31619. useContext: function (context, observedBits) {
  31620. currentHookNameInDev = 'useContext';
  31621. updateHookTypesDev();
  31622. return readContext(context, observedBits);
  31623. },
  31624. useEffect: function (create, deps) {
  31625. currentHookNameInDev = 'useEffect';
  31626. updateHookTypesDev();
  31627. return updateEffect(create, deps);
  31628. },
  31629. useImperativeHandle: function (ref, create, deps) {
  31630. currentHookNameInDev = 'useImperativeHandle';
  31631. updateHookTypesDev();
  31632. return updateImperativeHandle(ref, create, deps);
  31633. },
  31634. useLayoutEffect: function (create, deps) {
  31635. currentHookNameInDev = 'useLayoutEffect';
  31636. updateHookTypesDev();
  31637. return updateLayoutEffect(create, deps);
  31638. },
  31639. useMemo: function (create, deps) {
  31640. currentHookNameInDev = 'useMemo';
  31641. updateHookTypesDev();
  31642. var prevDispatcher = ReactCurrentDispatcher$1.current;
  31643. ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
  31644. try {
  31645. return updateMemo(create, deps);
  31646. } finally {
  31647. ReactCurrentDispatcher$1.current = prevDispatcher;
  31648. }
  31649. },
  31650. useReducer: function (reducer, initialArg, init) {
  31651. currentHookNameInDev = 'useReducer';
  31652. updateHookTypesDev();
  31653. var prevDispatcher = ReactCurrentDispatcher$1.current;
  31654. ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
  31655. try {
  31656. return updateReducer(reducer, initialArg, init);
  31657. } finally {
  31658. ReactCurrentDispatcher$1.current = prevDispatcher;
  31659. }
  31660. },
  31661. useRef: function (initialValue) {
  31662. currentHookNameInDev = 'useRef';
  31663. updateHookTypesDev();
  31664. return updateRef(initialValue);
  31665. },
  31666. useState: function (initialState) {
  31667. currentHookNameInDev = 'useState';
  31668. updateHookTypesDev();
  31669. var prevDispatcher = ReactCurrentDispatcher$1.current;
  31670. ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
  31671. try {
  31672. return updateState(initialState);
  31673. } finally {
  31674. ReactCurrentDispatcher$1.current = prevDispatcher;
  31675. }
  31676. },
  31677. useDebugValue: function (value, formatterFn) {
  31678. currentHookNameInDev = 'useDebugValue';
  31679. updateHookTypesDev();
  31680. return updateDebugValue(value, formatterFn);
  31681. },
  31682. useResponder: function (responder, props) {
  31683. currentHookNameInDev = 'useResponder';
  31684. updateHookTypesDev();
  31685. return createResponderListener(responder, props);
  31686. }
  31687. };
  31688. InvalidNestedHooksDispatcherOnMountInDEV = {
  31689. readContext: function (context, observedBits) {
  31690. warnInvalidContextAccess();
  31691. return readContext(context, observedBits);
  31692. },
  31693. useCallback: function (callback, deps) {
  31694. currentHookNameInDev = 'useCallback';
  31695. warnInvalidHookAccess();
  31696. mountHookTypesDev();
  31697. return mountCallback(callback, deps);
  31698. },
  31699. useContext: function (context, observedBits) {
  31700. currentHookNameInDev = 'useContext';
  31701. warnInvalidHookAccess();
  31702. mountHookTypesDev();
  31703. return readContext(context, observedBits);
  31704. },
  31705. useEffect: function (create, deps) {
  31706. currentHookNameInDev = 'useEffect';
  31707. warnInvalidHookAccess();
  31708. mountHookTypesDev();
  31709. return mountEffect(create, deps);
  31710. },
  31711. useImperativeHandle: function (ref, create, deps) {
  31712. currentHookNameInDev = 'useImperativeHandle';
  31713. warnInvalidHookAccess();
  31714. mountHookTypesDev();
  31715. return mountImperativeHandle(ref, create, deps);
  31716. },
  31717. useLayoutEffect: function (create, deps) {
  31718. currentHookNameInDev = 'useLayoutEffect';
  31719. warnInvalidHookAccess();
  31720. mountHookTypesDev();
  31721. return mountLayoutEffect(create, deps);
  31722. },
  31723. useMemo: function (create, deps) {
  31724. currentHookNameInDev = 'useMemo';
  31725. warnInvalidHookAccess();
  31726. mountHookTypesDev();
  31727. var prevDispatcher = ReactCurrentDispatcher$1.current;
  31728. ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;
  31729. try {
  31730. return mountMemo(create, deps);
  31731. } finally {
  31732. ReactCurrentDispatcher$1.current = prevDispatcher;
  31733. }
  31734. },
  31735. useReducer: function (reducer, initialArg, init) {
  31736. currentHookNameInDev = 'useReducer';
  31737. warnInvalidHookAccess();
  31738. mountHookTypesDev();
  31739. var prevDispatcher = ReactCurrentDispatcher$1.current;
  31740. ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;
  31741. try {
  31742. return mountReducer(reducer, initialArg, init);
  31743. } finally {
  31744. ReactCurrentDispatcher$1.current = prevDispatcher;
  31745. }
  31746. },
  31747. useRef: function (initialValue) {
  31748. currentHookNameInDev = 'useRef';
  31749. warnInvalidHookAccess();
  31750. mountHookTypesDev();
  31751. return mountRef(initialValue);
  31752. },
  31753. useState: function (initialState) {
  31754. currentHookNameInDev = 'useState';
  31755. warnInvalidHookAccess();
  31756. mountHookTypesDev();
  31757. var prevDispatcher = ReactCurrentDispatcher$1.current;
  31758. ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;
  31759. try {
  31760. return mountState(initialState);
  31761. } finally {
  31762. ReactCurrentDispatcher$1.current = prevDispatcher;
  31763. }
  31764. },
  31765. useDebugValue: function (value, formatterFn) {
  31766. currentHookNameInDev = 'useDebugValue';
  31767. warnInvalidHookAccess();
  31768. mountHookTypesDev();
  31769. return mountDebugValue(value, formatterFn);
  31770. },
  31771. useResponder: function (responder, props) {
  31772. currentHookNameInDev = 'useResponder';
  31773. warnInvalidHookAccess();
  31774. mountHookTypesDev();
  31775. return createResponderListener(responder, props);
  31776. }
  31777. };
  31778. InvalidNestedHooksDispatcherOnUpdateInDEV = {
  31779. readContext: function (context, observedBits) {
  31780. warnInvalidContextAccess();
  31781. return readContext(context, observedBits);
  31782. },
  31783. useCallback: function (callback, deps) {
  31784. currentHookNameInDev = 'useCallback';
  31785. warnInvalidHookAccess();
  31786. updateHookTypesDev();
  31787. return updateCallback(callback, deps);
  31788. },
  31789. useContext: function (context, observedBits) {
  31790. currentHookNameInDev = 'useContext';
  31791. warnInvalidHookAccess();
  31792. updateHookTypesDev();
  31793. return readContext(context, observedBits);
  31794. },
  31795. useEffect: function (create, deps) {
  31796. currentHookNameInDev = 'useEffect';
  31797. warnInvalidHookAccess();
  31798. updateHookTypesDev();
  31799. return updateEffect(create, deps);
  31800. },
  31801. useImperativeHandle: function (ref, create, deps) {
  31802. currentHookNameInDev = 'useImperativeHandle';
  31803. warnInvalidHookAccess();
  31804. updateHookTypesDev();
  31805. return updateImperativeHandle(ref, create, deps);
  31806. },
  31807. useLayoutEffect: function (create, deps) {
  31808. currentHookNameInDev = 'useLayoutEffect';
  31809. warnInvalidHookAccess();
  31810. updateHookTypesDev();
  31811. return updateLayoutEffect(create, deps);
  31812. },
  31813. useMemo: function (create, deps) {
  31814. currentHookNameInDev = 'useMemo';
  31815. warnInvalidHookAccess();
  31816. updateHookTypesDev();
  31817. var prevDispatcher = ReactCurrentDispatcher$1.current;
  31818. ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
  31819. try {
  31820. return updateMemo(create, deps);
  31821. } finally {
  31822. ReactCurrentDispatcher$1.current = prevDispatcher;
  31823. }
  31824. },
  31825. useReducer: function (reducer, initialArg, init) {
  31826. currentHookNameInDev = 'useReducer';
  31827. warnInvalidHookAccess();
  31828. updateHookTypesDev();
  31829. var prevDispatcher = ReactCurrentDispatcher$1.current;
  31830. ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
  31831. try {
  31832. return updateReducer(reducer, initialArg, init);
  31833. } finally {
  31834. ReactCurrentDispatcher$1.current = prevDispatcher;
  31835. }
  31836. },
  31837. useRef: function (initialValue) {
  31838. currentHookNameInDev = 'useRef';
  31839. warnInvalidHookAccess();
  31840. updateHookTypesDev();
  31841. return updateRef(initialValue);
  31842. },
  31843. useState: function (initialState) {
  31844. currentHookNameInDev = 'useState';
  31845. warnInvalidHookAccess();
  31846. updateHookTypesDev();
  31847. var prevDispatcher = ReactCurrentDispatcher$1.current;
  31848. ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
  31849. try {
  31850. return updateState(initialState);
  31851. } finally {
  31852. ReactCurrentDispatcher$1.current = prevDispatcher;
  31853. }
  31854. },
  31855. useDebugValue: function (value, formatterFn) {
  31856. currentHookNameInDev = 'useDebugValue';
  31857. warnInvalidHookAccess();
  31858. updateHookTypesDev();
  31859. return updateDebugValue(value, formatterFn);
  31860. },
  31861. useResponder: function (responder, props) {
  31862. currentHookNameInDev = 'useResponder';
  31863. warnInvalidHookAccess();
  31864. updateHookTypesDev();
  31865. return createResponderListener(responder, props);
  31866. }
  31867. };
  31868. }
  31869. // Intentionally not named imports because Rollup would use dynamic dispatch for
  31870. // CommonJS interop named imports.
  31871. var now$1 = Scheduler.unstable_now;
  31872. var commitTime = 0;
  31873. var profilerStartTime = -1;
  31874. function getCommitTime() {
  31875. return commitTime;
  31876. }
  31877. function recordCommitTime() {
  31878. if (!enableProfilerTimer) {
  31879. return;
  31880. }
  31881. commitTime = now$1();
  31882. }
  31883. function startProfilerTimer(fiber) {
  31884. if (!enableProfilerTimer) {
  31885. return;
  31886. }
  31887. profilerStartTime = now$1();
  31888. if (fiber.actualStartTime < 0) {
  31889. fiber.actualStartTime = now$1();
  31890. }
  31891. }
  31892. function stopProfilerTimerIfRunning(fiber) {
  31893. if (!enableProfilerTimer) {
  31894. return;
  31895. }
  31896. profilerStartTime = -1;
  31897. }
  31898. function stopProfilerTimerIfRunningAndRecordDelta(fiber, overrideBaseTime) {
  31899. if (!enableProfilerTimer) {
  31900. return;
  31901. }
  31902. if (profilerStartTime >= 0) {
  31903. var elapsedTime = now$1() - profilerStartTime;
  31904. fiber.actualDuration += elapsedTime;
  31905. if (overrideBaseTime) {
  31906. fiber.selfBaseDuration = elapsedTime;
  31907. }
  31908. profilerStartTime = -1;
  31909. }
  31910. }
  31911. // The deepest Fiber on the stack involved in a hydration context.
  31912. // This may have been an insertion or a hydration.
  31913. var hydrationParentFiber = null;
  31914. var nextHydratableInstance = null;
  31915. var isHydrating = false;
  31916. function enterHydrationState(fiber) {
  31917. if (!supportsHydration) {
  31918. return false;
  31919. }
  31920. var parentInstance = fiber.stateNode.containerInfo;
  31921. nextHydratableInstance = getFirstHydratableChild(parentInstance);
  31922. hydrationParentFiber = fiber;
  31923. isHydrating = true;
  31924. return true;
  31925. }
  31926. function reenterHydrationStateFromDehydratedSuspenseInstance(fiber) {
  31927. if (!supportsHydration) {
  31928. return false;
  31929. }
  31930. var suspenseInstance = fiber.stateNode;
  31931. nextHydratableInstance = getNextHydratableSibling(suspenseInstance);
  31932. popToNextHostParent(fiber);
  31933. isHydrating = true;
  31934. return true;
  31935. }
  31936. function deleteHydratableInstance(returnFiber, instance) {
  31937. {
  31938. switch (returnFiber.tag) {
  31939. case HostRoot:
  31940. didNotHydrateContainerInstance(returnFiber.stateNode.containerInfo, instance);
  31941. break;
  31942. case HostComponent:
  31943. didNotHydrateInstance(returnFiber.type, returnFiber.memoizedProps, returnFiber.stateNode, instance);
  31944. break;
  31945. }
  31946. }
  31947. var childToDelete = createFiberFromHostInstanceForDeletion();
  31948. childToDelete.stateNode = instance;
  31949. childToDelete.return = returnFiber;
  31950. childToDelete.effectTag = Deletion;
  31951. // This might seem like it belongs on progressedFirstDeletion. However,
  31952. // these children are not part of the reconciliation list of children.
  31953. // Even if we abort and rereconcile the children, that will try to hydrate
  31954. // again and the nodes are still in the host tree so these will be
  31955. // recreated.
  31956. if (returnFiber.lastEffect !== null) {
  31957. returnFiber.lastEffect.nextEffect = childToDelete;
  31958. returnFiber.lastEffect = childToDelete;
  31959. } else {
  31960. returnFiber.firstEffect = returnFiber.lastEffect = childToDelete;
  31961. }
  31962. }
  31963. function insertNonHydratedInstance(returnFiber, fiber) {
  31964. fiber.effectTag |= Placement;
  31965. {
  31966. switch (returnFiber.tag) {
  31967. case HostRoot:
  31968. {
  31969. var parentContainer = returnFiber.stateNode.containerInfo;
  31970. switch (fiber.tag) {
  31971. case HostComponent:
  31972. var type = fiber.type;
  31973. var props = fiber.pendingProps;
  31974. didNotFindHydratableContainerInstance(parentContainer, type, props);
  31975. break;
  31976. case HostText:
  31977. var text = fiber.pendingProps;
  31978. didNotFindHydratableContainerTextInstance(parentContainer, text);
  31979. break;
  31980. case SuspenseComponent:
  31981. break;
  31982. }
  31983. break;
  31984. }
  31985. case HostComponent:
  31986. {
  31987. var parentType = returnFiber.type;
  31988. var parentProps = returnFiber.memoizedProps;
  31989. var parentInstance = returnFiber.stateNode;
  31990. switch (fiber.tag) {
  31991. case HostComponent:
  31992. var _type = fiber.type;
  31993. var _props = fiber.pendingProps;
  31994. didNotFindHydratableInstance(parentType, parentProps, parentInstance, _type, _props);
  31995. break;
  31996. case HostText:
  31997. var _text = fiber.pendingProps;
  31998. didNotFindHydratableTextInstance(parentType, parentProps, parentInstance, _text);
  31999. break;
  32000. case SuspenseComponent:
  32001. didNotFindHydratableSuspenseInstance(parentType, parentProps, parentInstance);
  32002. break;
  32003. }
  32004. break;
  32005. }
  32006. default:
  32007. return;
  32008. }
  32009. }
  32010. }
  32011. function tryHydrate(fiber, nextInstance) {
  32012. switch (fiber.tag) {
  32013. case HostComponent:
  32014. {
  32015. var type = fiber.type;
  32016. var props = fiber.pendingProps;
  32017. var instance = canHydrateInstance(nextInstance, type, props);
  32018. if (instance !== null) {
  32019. fiber.stateNode = instance;
  32020. return true;
  32021. }
  32022. return false;
  32023. }
  32024. case HostText:
  32025. {
  32026. var text = fiber.pendingProps;
  32027. var textInstance = canHydrateTextInstance(nextInstance, text);
  32028. if (textInstance !== null) {
  32029. fiber.stateNode = textInstance;
  32030. return true;
  32031. }
  32032. return false;
  32033. }
  32034. case SuspenseComponent:
  32035. {
  32036. if (enableSuspenseServerRenderer) {
  32037. var suspenseInstance = canHydrateSuspenseInstance(nextInstance);
  32038. if (suspenseInstance !== null) {
  32039. // Downgrade the tag to a dehydrated component until we've hydrated it.
  32040. fiber.tag = DehydratedSuspenseComponent;
  32041. fiber.stateNode = suspenseInstance;
  32042. return true;
  32043. }
  32044. }
  32045. return false;
  32046. }
  32047. default:
  32048. return false;
  32049. }
  32050. }
  32051. function tryToClaimNextHydratableInstance(fiber) {
  32052. if (!isHydrating) {
  32053. return;
  32054. }
  32055. var nextInstance = nextHydratableInstance;
  32056. if (!nextInstance) {
  32057. // Nothing to hydrate. Make it an insertion.
  32058. insertNonHydratedInstance(hydrationParentFiber, fiber);
  32059. isHydrating = false;
  32060. hydrationParentFiber = fiber;
  32061. return;
  32062. }
  32063. var firstAttemptedInstance = nextInstance;
  32064. if (!tryHydrate(fiber, nextInstance)) {
  32065. // If we can't hydrate this instance let's try the next one.
  32066. // We use this as a heuristic. It's based on intuition and not data so it
  32067. // might be flawed or unnecessary.
  32068. nextInstance = getNextHydratableSibling(firstAttemptedInstance);
  32069. if (!nextInstance || !tryHydrate(fiber, nextInstance)) {
  32070. // Nothing to hydrate. Make it an insertion.
  32071. insertNonHydratedInstance(hydrationParentFiber, fiber);
  32072. isHydrating = false;
  32073. hydrationParentFiber = fiber;
  32074. return;
  32075. }
  32076. // We matched the next one, we'll now assume that the first one was
  32077. // superfluous and we'll delete it. Since we can't eagerly delete it
  32078. // we'll have to schedule a deletion. To do that, this node needs a dummy
  32079. // fiber associated with it.
  32080. deleteHydratableInstance(hydrationParentFiber, firstAttemptedInstance);
  32081. }
  32082. hydrationParentFiber = fiber;
  32083. nextHydratableInstance = getFirstHydratableChild(nextInstance);
  32084. }
  32085. function prepareToHydrateHostInstance(fiber, rootContainerInstance, hostContext) {
  32086. if (!supportsHydration) {
  32087. (function () {
  32088. {
  32089. {
  32090. throw ReactError(Error('Expected prepareToHydrateHostInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.'));
  32091. }
  32092. }
  32093. })();
  32094. }
  32095. var instance = fiber.stateNode;
  32096. var updatePayload = hydrateInstance(instance, fiber.type, fiber.memoizedProps, rootContainerInstance, hostContext, fiber);
  32097. // TODO: Type this specific to this type of component.
  32098. fiber.updateQueue = updatePayload;
  32099. // If the update payload indicates that there is a change or if there
  32100. // is a new ref we mark this as an update.
  32101. if (updatePayload !== null) {
  32102. return true;
  32103. }
  32104. return false;
  32105. }
  32106. function prepareToHydrateHostTextInstance(fiber) {
  32107. if (!supportsHydration) {
  32108. (function () {
  32109. {
  32110. {
  32111. throw ReactError(Error('Expected prepareToHydrateHostTextInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.'));
  32112. }
  32113. }
  32114. })();
  32115. }
  32116. var textInstance = fiber.stateNode;
  32117. var textContent = fiber.memoizedProps;
  32118. var shouldUpdate = hydrateTextInstance(textInstance, textContent, fiber);
  32119. {
  32120. if (shouldUpdate) {
  32121. // We assume that prepareToHydrateHostTextInstance is called in a context where the
  32122. // hydration parent is the parent host component of this host text.
  32123. var returnFiber = hydrationParentFiber;
  32124. if (returnFiber !== null) {
  32125. switch (returnFiber.tag) {
  32126. case HostRoot:
  32127. {
  32128. var parentContainer = returnFiber.stateNode.containerInfo;
  32129. didNotMatchHydratedContainerTextInstance(parentContainer, textInstance, textContent);
  32130. break;
  32131. }
  32132. case HostComponent:
  32133. {
  32134. var parentType = returnFiber.type;
  32135. var parentProps = returnFiber.memoizedProps;
  32136. var parentInstance = returnFiber.stateNode;
  32137. didNotMatchHydratedTextInstance(parentType, parentProps, parentInstance, textInstance, textContent);
  32138. break;
  32139. }
  32140. }
  32141. }
  32142. }
  32143. }
  32144. return shouldUpdate;
  32145. }
  32146. function skipPastDehydratedSuspenseInstance(fiber) {
  32147. if (!supportsHydration) {
  32148. (function () {
  32149. {
  32150. {
  32151. throw ReactError(Error('Expected skipPastDehydratedSuspenseInstance() to never be called. This error is likely caused by a bug in React. Please file an issue.'));
  32152. }
  32153. }
  32154. })();
  32155. }
  32156. var suspenseInstance = fiber.stateNode;
  32157. (function () {
  32158. if (!suspenseInstance) {
  32159. {
  32160. throw ReactError(Error('Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.'));
  32161. }
  32162. }
  32163. })();
  32164. nextHydratableInstance = getNextHydratableInstanceAfterSuspenseInstance(suspenseInstance);
  32165. }
  32166. function popToNextHostParent(fiber) {
  32167. var parent = fiber.return;
  32168. while (parent !== null && parent.tag !== HostComponent && parent.tag !== HostRoot && parent.tag !== DehydratedSuspenseComponent) {
  32169. parent = parent.return;
  32170. }
  32171. hydrationParentFiber = parent;
  32172. }
  32173. function popHydrationState(fiber) {
  32174. if (!supportsHydration) {
  32175. return false;
  32176. }
  32177. if (fiber !== hydrationParentFiber) {
  32178. // We're deeper than the current hydration context, inside an inserted
  32179. // tree.
  32180. return false;
  32181. }
  32182. if (!isHydrating) {
  32183. // If we're not currently hydrating but we're in a hydration context, then
  32184. // we were an insertion and now need to pop up reenter hydration of our
  32185. // siblings.
  32186. popToNextHostParent(fiber);
  32187. isHydrating = true;
  32188. return false;
  32189. }
  32190. var type = fiber.type;
  32191. // If we have any remaining hydratable nodes, we need to delete them now.
  32192. // We only do this deeper than head and body since they tend to have random
  32193. // other nodes in them. We also ignore components with pure text content in
  32194. // side of them.
  32195. // TODO: Better heuristic.
  32196. if (fiber.tag !== HostComponent || type !== 'head' && type !== 'body' && !shouldSetTextContent(type, fiber.memoizedProps)) {
  32197. var nextInstance = nextHydratableInstance;
  32198. while (nextInstance) {
  32199. deleteHydratableInstance(fiber, nextInstance);
  32200. nextInstance = getNextHydratableSibling(nextInstance);
  32201. }
  32202. }
  32203. popToNextHostParent(fiber);
  32204. nextHydratableInstance = hydrationParentFiber ? getNextHydratableSibling(fiber.stateNode) : null;
  32205. return true;
  32206. }
  32207. function resetHydrationState() {
  32208. if (!supportsHydration) {
  32209. return;
  32210. }
  32211. hydrationParentFiber = null;
  32212. nextHydratableInstance = null;
  32213. isHydrating = false;
  32214. }
  32215. var ReactCurrentOwner$3 = ReactSharedInternals.ReactCurrentOwner;
  32216. var didReceiveUpdate = false;
  32217. var didWarnAboutBadClass = void 0;
  32218. var didWarnAboutModulePatternComponent = void 0;
  32219. var didWarnAboutContextTypeOnFunctionComponent = void 0;
  32220. var didWarnAboutGetDerivedStateOnFunctionComponent = void 0;
  32221. var didWarnAboutFunctionRefs = void 0;
  32222. var didWarnAboutReassigningProps = void 0;
  32223. var didWarnAboutMaxDuration = void 0;
  32224. var didWarnAboutRevealOrder = void 0;
  32225. var didWarnAboutTailOptions = void 0;
  32226. var didWarnAboutDefaultPropsOnFunctionComponent = void 0;
  32227. {
  32228. didWarnAboutBadClass = {};
  32229. didWarnAboutModulePatternComponent = {};
  32230. didWarnAboutContextTypeOnFunctionComponent = {};
  32231. didWarnAboutGetDerivedStateOnFunctionComponent = {};
  32232. didWarnAboutFunctionRefs = {};
  32233. didWarnAboutReassigningProps = false;
  32234. didWarnAboutMaxDuration = false;
  32235. didWarnAboutRevealOrder = {};
  32236. didWarnAboutTailOptions = {};
  32237. didWarnAboutDefaultPropsOnFunctionComponent = {};
  32238. }
  32239. function reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime) {
  32240. if (current$$1 === null) {
  32241. // If this is a fresh new component that hasn't been rendered yet, we
  32242. // won't update its child set by applying minimal side-effects. Instead,
  32243. // we will add them all to the child before it gets rendered. That means
  32244. // we can optimize this reconciliation pass by not tracking side-effects.
  32245. workInProgress.child = mountChildFibers(workInProgress, null, nextChildren, renderExpirationTime);
  32246. } else {
  32247. // If the current child is the same as the work in progress, it means that
  32248. // we haven't yet started any work on these children. Therefore, we use
  32249. // the clone algorithm to create a copy of all the current children.
  32250. // If we had any progressed work already, that is invalid at this point so
  32251. // let's throw it out.
  32252. workInProgress.child = reconcileChildFibers(workInProgress, current$$1.child, nextChildren, renderExpirationTime);
  32253. }
  32254. }
  32255. function forceUnmountCurrentAndReconcile(current$$1, workInProgress, nextChildren, renderExpirationTime) {
  32256. // This function is fork of reconcileChildren. It's used in cases where we
  32257. // want to reconcile without matching against the existing set. This has the
  32258. // effect of all current children being unmounted; even if the type and key
  32259. // are the same, the old child is unmounted and a new child is created.
  32260. //
  32261. // To do this, we're going to go through the reconcile algorithm twice. In
  32262. // the first pass, we schedule a deletion for all the current children by
  32263. // passing null.
  32264. workInProgress.child = reconcileChildFibers(workInProgress, current$$1.child, null, renderExpirationTime);
  32265. // In the second pass, we mount the new children. The trick here is that we
  32266. // pass null in place of where we usually pass the current child set. This has
  32267. // the effect of remounting all children regardless of whether their their
  32268. // identity matches.
  32269. workInProgress.child = reconcileChildFibers(workInProgress, null, nextChildren, renderExpirationTime);
  32270. }
  32271. function updateForwardRef(current$$1, workInProgress, Component, nextProps, renderExpirationTime) {
  32272. // TODO: current can be non-null here even if the component
  32273. // hasn't yet mounted. This happens after the first render suspends.
  32274. // We'll need to figure out if this is fine or can cause issues.
  32275. {
  32276. if (workInProgress.type !== workInProgress.elementType) {
  32277. // Lazy component props can't be validated in createElement
  32278. // because they're only guaranteed to be resolved here.
  32279. var innerPropTypes = Component.propTypes;
  32280. if (innerPropTypes) {
  32281. checkPropTypes(innerPropTypes, nextProps, // Resolved props
  32282. 'prop', getComponentName(Component), getCurrentFiberStackInDev);
  32283. }
  32284. }
  32285. }
  32286. var render = Component.render;
  32287. var ref = workInProgress.ref;
  32288. // The rest is a fork of updateFunctionComponent
  32289. var nextChildren = void 0;
  32290. prepareToReadContext(workInProgress, renderExpirationTime);
  32291. {
  32292. ReactCurrentOwner$3.current = workInProgress;
  32293. setCurrentPhase('render');
  32294. nextChildren = renderWithHooks(current$$1, workInProgress, render, nextProps, ref, renderExpirationTime);
  32295. if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) {
  32296. // Only double-render components with Hooks
  32297. if (workInProgress.memoizedState !== null) {
  32298. nextChildren = renderWithHooks(current$$1, workInProgress, render, nextProps, ref, renderExpirationTime);
  32299. }
  32300. }
  32301. setCurrentPhase(null);
  32302. }
  32303. if (current$$1 !== null && !didReceiveUpdate) {
  32304. bailoutHooks(current$$1, workInProgress, renderExpirationTime);
  32305. return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
  32306. }
  32307. // React DevTools reads this flag.
  32308. workInProgress.effectTag |= PerformedWork;
  32309. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  32310. return workInProgress.child;
  32311. }
  32312. function updateMemoComponent(current$$1, workInProgress, Component, nextProps, updateExpirationTime, renderExpirationTime) {
  32313. if (current$$1 === null) {
  32314. var type = Component.type;
  32315. if (isSimpleFunctionComponent(type) && Component.compare === null &&
  32316. // SimpleMemoComponent codepath doesn't resolve outer props either.
  32317. Component.defaultProps === undefined) {
  32318. var resolvedType = type;
  32319. {
  32320. resolvedType = resolveFunctionForHotReloading(type);
  32321. }
  32322. // If this is a plain function component without default props,
  32323. // and with only the default shallow comparison, we upgrade it
  32324. // to a SimpleMemoComponent to allow fast path updates.
  32325. workInProgress.tag = SimpleMemoComponent;
  32326. workInProgress.type = resolvedType;
  32327. {
  32328. validateFunctionComponentInDev(workInProgress, type);
  32329. }
  32330. return updateSimpleMemoComponent(current$$1, workInProgress, resolvedType, nextProps, updateExpirationTime, renderExpirationTime);
  32331. }
  32332. {
  32333. var innerPropTypes = type.propTypes;
  32334. if (innerPropTypes) {
  32335. // Inner memo component props aren't currently validated in createElement.
  32336. // We could move it there, but we'd still need this for lazy code path.
  32337. checkPropTypes(innerPropTypes, nextProps, // Resolved props
  32338. 'prop', getComponentName(type), getCurrentFiberStackInDev);
  32339. }
  32340. }
  32341. var child = createFiberFromTypeAndProps(Component.type, null, nextProps, null, workInProgress.mode, renderExpirationTime);
  32342. child.ref = workInProgress.ref;
  32343. child.return = workInProgress;
  32344. workInProgress.child = child;
  32345. return child;
  32346. }
  32347. {
  32348. var _type = Component.type;
  32349. var _innerPropTypes = _type.propTypes;
  32350. if (_innerPropTypes) {
  32351. // Inner memo component props aren't currently validated in createElement.
  32352. // We could move it there, but we'd still need this for lazy code path.
  32353. checkPropTypes(_innerPropTypes, nextProps, // Resolved props
  32354. 'prop', getComponentName(_type), getCurrentFiberStackInDev);
  32355. }
  32356. }
  32357. var currentChild = current$$1.child; // This is always exactly one child
  32358. if (updateExpirationTime < renderExpirationTime) {
  32359. // This will be the props with resolved defaultProps,
  32360. // unlike current.memoizedProps which will be the unresolved ones.
  32361. var prevProps = currentChild.memoizedProps;
  32362. // Default to shallow comparison
  32363. var compare = Component.compare;
  32364. compare = compare !== null ? compare : shallowEqual;
  32365. if (compare(prevProps, nextProps) && current$$1.ref === workInProgress.ref) {
  32366. return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
  32367. }
  32368. }
  32369. // React DevTools reads this flag.
  32370. workInProgress.effectTag |= PerformedWork;
  32371. var newChild = createWorkInProgress(currentChild, nextProps, renderExpirationTime);
  32372. newChild.ref = workInProgress.ref;
  32373. newChild.return = workInProgress;
  32374. workInProgress.child = newChild;
  32375. return newChild;
  32376. }
  32377. function updateSimpleMemoComponent(current$$1, workInProgress, Component, nextProps, updateExpirationTime, renderExpirationTime) {
  32378. // TODO: current can be non-null here even if the component
  32379. // hasn't yet mounted. This happens when the inner render suspends.
  32380. // We'll need to figure out if this is fine or can cause issues.
  32381. {
  32382. if (workInProgress.type !== workInProgress.elementType) {
  32383. // Lazy component props can't be validated in createElement
  32384. // because they're only guaranteed to be resolved here.
  32385. var outerMemoType = workInProgress.elementType;
  32386. if (outerMemoType.$$typeof === REACT_LAZY_TYPE) {
  32387. // We warn when you define propTypes on lazy()
  32388. // so let's just skip over it to find memo() outer wrapper.
  32389. // Inner props for memo are validated later.
  32390. outerMemoType = refineResolvedLazyComponent(outerMemoType);
  32391. }
  32392. var outerPropTypes = outerMemoType && outerMemoType.propTypes;
  32393. if (outerPropTypes) {
  32394. checkPropTypes(outerPropTypes, nextProps, // Resolved (SimpleMemoComponent has no defaultProps)
  32395. 'prop', getComponentName(outerMemoType), getCurrentFiberStackInDev);
  32396. }
  32397. // Inner propTypes will be validated in the function component path.
  32398. }
  32399. }
  32400. if (current$$1 !== null) {
  32401. var prevProps = current$$1.memoizedProps;
  32402. if (shallowEqual(prevProps, nextProps) && current$$1.ref === workInProgress.ref && (
  32403. // Prevent bailout if the implementation changed due to hot reload:
  32404. workInProgress.type === current$$1.type)) {
  32405. didReceiveUpdate = false;
  32406. if (updateExpirationTime < renderExpirationTime) {
  32407. return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
  32408. }
  32409. }
  32410. }
  32411. return updateFunctionComponent(current$$1, workInProgress, Component, nextProps, renderExpirationTime);
  32412. }
  32413. function updateFragment(current$$1, workInProgress, renderExpirationTime) {
  32414. var nextChildren = workInProgress.pendingProps;
  32415. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  32416. return workInProgress.child;
  32417. }
  32418. function updateMode(current$$1, workInProgress, renderExpirationTime) {
  32419. var nextChildren = workInProgress.pendingProps.children;
  32420. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  32421. return workInProgress.child;
  32422. }
  32423. function updateProfiler(current$$1, workInProgress, renderExpirationTime) {
  32424. if (enableProfilerTimer) {
  32425. workInProgress.effectTag |= Update;
  32426. }
  32427. var nextProps = workInProgress.pendingProps;
  32428. var nextChildren = nextProps.children;
  32429. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  32430. return workInProgress.child;
  32431. }
  32432. function markRef(current$$1, workInProgress) {
  32433. var ref = workInProgress.ref;
  32434. if (current$$1 === null && ref !== null || current$$1 !== null && current$$1.ref !== ref) {
  32435. // Schedule a Ref effect
  32436. workInProgress.effectTag |= Ref;
  32437. }
  32438. }
  32439. function updateFunctionComponent(current$$1, workInProgress, Component, nextProps, renderExpirationTime) {
  32440. {
  32441. if (workInProgress.type !== workInProgress.elementType) {
  32442. // Lazy component props can't be validated in createElement
  32443. // because they're only guaranteed to be resolved here.
  32444. var innerPropTypes = Component.propTypes;
  32445. if (innerPropTypes) {
  32446. checkPropTypes(innerPropTypes, nextProps, // Resolved props
  32447. 'prop', getComponentName(Component), getCurrentFiberStackInDev);
  32448. }
  32449. }
  32450. }
  32451. var context = void 0;
  32452. if (!disableLegacyContext) {
  32453. var unmaskedContext = getUnmaskedContext(workInProgress, Component, true);
  32454. context = getMaskedContext(workInProgress, unmaskedContext);
  32455. }
  32456. var nextChildren = void 0;
  32457. prepareToReadContext(workInProgress, renderExpirationTime);
  32458. {
  32459. ReactCurrentOwner$3.current = workInProgress;
  32460. setCurrentPhase('render');
  32461. nextChildren = renderWithHooks(current$$1, workInProgress, Component, nextProps, context, renderExpirationTime);
  32462. if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) {
  32463. // Only double-render components with Hooks
  32464. if (workInProgress.memoizedState !== null) {
  32465. nextChildren = renderWithHooks(current$$1, workInProgress, Component, nextProps, context, renderExpirationTime);
  32466. }
  32467. }
  32468. setCurrentPhase(null);
  32469. }
  32470. if (current$$1 !== null && !didReceiveUpdate) {
  32471. bailoutHooks(current$$1, workInProgress, renderExpirationTime);
  32472. return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
  32473. }
  32474. // React DevTools reads this flag.
  32475. workInProgress.effectTag |= PerformedWork;
  32476. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  32477. return workInProgress.child;
  32478. }
  32479. function updateClassComponent(current$$1, workInProgress, Component, nextProps, renderExpirationTime) {
  32480. {
  32481. if (workInProgress.type !== workInProgress.elementType) {
  32482. // Lazy component props can't be validated in createElement
  32483. // because they're only guaranteed to be resolved here.
  32484. var innerPropTypes = Component.propTypes;
  32485. if (innerPropTypes) {
  32486. checkPropTypes(innerPropTypes, nextProps, // Resolved props
  32487. 'prop', getComponentName(Component), getCurrentFiberStackInDev);
  32488. }
  32489. }
  32490. }
  32491. // Push context providers early to prevent context stack mismatches.
  32492. // During mounting we don't know the child context yet as the instance doesn't exist.
  32493. // We will invalidate the child context in finishClassComponent() right after rendering.
  32494. var hasContext = void 0;
  32495. if (isContextProvider(Component)) {
  32496. hasContext = true;
  32497. pushContextProvider(workInProgress);
  32498. } else {
  32499. hasContext = false;
  32500. }
  32501. prepareToReadContext(workInProgress, renderExpirationTime);
  32502. var instance = workInProgress.stateNode;
  32503. var shouldUpdate = void 0;
  32504. if (instance === null) {
  32505. if (current$$1 !== null) {
  32506. // An class component without an instance only mounts if it suspended
  32507. // inside a non- concurrent tree, in an inconsistent state. We want to
  32508. // tree it like a new mount, even though an empty version of it already
  32509. // committed. Disconnect the alternate pointers.
  32510. current$$1.alternate = null;
  32511. workInProgress.alternate = null;
  32512. // Since this is conceptually a new fiber, schedule a Placement effect
  32513. workInProgress.effectTag |= Placement;
  32514. }
  32515. // In the initial pass we might need to construct the instance.
  32516. constructClassInstance(workInProgress, Component, nextProps, renderExpirationTime);
  32517. mountClassInstance(workInProgress, Component, nextProps, renderExpirationTime);
  32518. shouldUpdate = true;
  32519. } else if (current$$1 === null) {
  32520. // In a resume, we'll already have an instance we can reuse.
  32521. shouldUpdate = resumeMountClassInstance(workInProgress, Component, nextProps, renderExpirationTime);
  32522. } else {
  32523. shouldUpdate = updateClassInstance(current$$1, workInProgress, Component, nextProps, renderExpirationTime);
  32524. }
  32525. var nextUnitOfWork = finishClassComponent(current$$1, workInProgress, Component, shouldUpdate, hasContext, renderExpirationTime);
  32526. {
  32527. var inst = workInProgress.stateNode;
  32528. if (inst.props !== nextProps) {
  32529. !didWarnAboutReassigningProps ? warning$1(false, 'It looks like %s is reassigning its own `this.props` while rendering. ' + 'This is not supported and can lead to confusing bugs.', getComponentName(workInProgress.type) || 'a component') : void 0;
  32530. didWarnAboutReassigningProps = true;
  32531. }
  32532. }
  32533. return nextUnitOfWork;
  32534. }
  32535. function finishClassComponent(current$$1, workInProgress, Component, shouldUpdate, hasContext, renderExpirationTime) {
  32536. // Refs should update even if shouldComponentUpdate returns false
  32537. markRef(current$$1, workInProgress);
  32538. var didCaptureError = (workInProgress.effectTag & DidCapture) !== NoEffect;
  32539. if (!shouldUpdate && !didCaptureError) {
  32540. // Context providers should defer to sCU for rendering
  32541. if (hasContext) {
  32542. invalidateContextProvider(workInProgress, Component, false);
  32543. }
  32544. return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
  32545. }
  32546. var instance = workInProgress.stateNode;
  32547. // Rerender
  32548. ReactCurrentOwner$3.current = workInProgress;
  32549. var nextChildren = void 0;
  32550. if (didCaptureError && typeof Component.getDerivedStateFromError !== 'function') {
  32551. // If we captured an error, but getDerivedStateFrom catch is not defined,
  32552. // unmount all the children. componentDidCatch will schedule an update to
  32553. // re-render a fallback. This is temporary until we migrate everyone to
  32554. // the new API.
  32555. // TODO: Warn in a future release.
  32556. nextChildren = null;
  32557. if (enableProfilerTimer) {
  32558. stopProfilerTimerIfRunning(workInProgress);
  32559. }
  32560. } else {
  32561. {
  32562. setCurrentPhase('render');
  32563. nextChildren = instance.render();
  32564. if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) {
  32565. instance.render();
  32566. }
  32567. setCurrentPhase(null);
  32568. }
  32569. }
  32570. // React DevTools reads this flag.
  32571. workInProgress.effectTag |= PerformedWork;
  32572. if (current$$1 !== null && didCaptureError) {
  32573. // If we're recovering from an error, reconcile without reusing any of
  32574. // the existing children. Conceptually, the normal children and the children
  32575. // that are shown on error are two different sets, so we shouldn't reuse
  32576. // normal children even if their identities match.
  32577. forceUnmountCurrentAndReconcile(current$$1, workInProgress, nextChildren, renderExpirationTime);
  32578. } else {
  32579. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  32580. }
  32581. // Memoize state using the values we just used to render.
  32582. // TODO: Restructure so we never read values from the instance.
  32583. workInProgress.memoizedState = instance.state;
  32584. // The context might have changed so we need to recalculate it.
  32585. if (hasContext) {
  32586. invalidateContextProvider(workInProgress, Component, true);
  32587. }
  32588. return workInProgress.child;
  32589. }
  32590. function pushHostRootContext(workInProgress) {
  32591. var root = workInProgress.stateNode;
  32592. if (root.pendingContext) {
  32593. pushTopLevelContextObject(workInProgress, root.pendingContext, root.pendingContext !== root.context);
  32594. } else if (root.context) {
  32595. // Should always be set
  32596. pushTopLevelContextObject(workInProgress, root.context, false);
  32597. }
  32598. pushHostContainer(workInProgress, root.containerInfo);
  32599. }
  32600. function updateHostRoot(current$$1, workInProgress, renderExpirationTime) {
  32601. pushHostRootContext(workInProgress);
  32602. var updateQueue = workInProgress.updateQueue;
  32603. (function () {
  32604. if (!(updateQueue !== null)) {
  32605. {
  32606. throw ReactError(Error('If the root does not have an updateQueue, we should have already bailed out. This error is likely caused by a bug in React. Please file an issue.'));
  32607. }
  32608. }
  32609. })();
  32610. var nextProps = workInProgress.pendingProps;
  32611. var prevState = workInProgress.memoizedState;
  32612. var prevChildren = prevState !== null ? prevState.element : null;
  32613. processUpdateQueue(workInProgress, updateQueue, nextProps, null, renderExpirationTime);
  32614. var nextState = workInProgress.memoizedState;
  32615. // Caution: React DevTools currently depends on this property
  32616. // being called "element".
  32617. var nextChildren = nextState.element;
  32618. if (nextChildren === prevChildren) {
  32619. // If the state is the same as before, that's a bailout because we had
  32620. // no work that expires at this time.
  32621. resetHydrationState();
  32622. return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
  32623. }
  32624. var root = workInProgress.stateNode;
  32625. if ((current$$1 === null || current$$1.child === null) && root.hydrate && enterHydrationState(workInProgress)) {
  32626. // If we don't have any current children this might be the first pass.
  32627. // We always try to hydrate. If this isn't a hydration pass there won't
  32628. // be any children to hydrate which is effectively the same thing as
  32629. // not hydrating.
  32630. // This is a bit of a hack. We track the host root as a placement to
  32631. // know that we're currently in a mounting state. That way isMounted
  32632. // works as expected. We must reset this before committing.
  32633. // TODO: Delete this when we delete isMounted and findDOMNode.
  32634. workInProgress.effectTag |= Placement;
  32635. // Ensure that children mount into this root without tracking
  32636. // side-effects. This ensures that we don't store Placement effects on
  32637. // nodes that will be hydrated.
  32638. workInProgress.child = mountChildFibers(workInProgress, null, nextChildren, renderExpirationTime);
  32639. } else {
  32640. // Otherwise reset hydration state in case we aborted and resumed another
  32641. // root.
  32642. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  32643. resetHydrationState();
  32644. }
  32645. return workInProgress.child;
  32646. }
  32647. function updateHostComponent(current$$1, workInProgress, renderExpirationTime) {
  32648. pushHostContext(workInProgress);
  32649. if (current$$1 === null) {
  32650. tryToClaimNextHydratableInstance(workInProgress);
  32651. }
  32652. var type = workInProgress.type;
  32653. var nextProps = workInProgress.pendingProps;
  32654. var prevProps = current$$1 !== null ? current$$1.memoizedProps : null;
  32655. var nextChildren = nextProps.children;
  32656. var isDirectTextChild = shouldSetTextContent(type, nextProps);
  32657. if (isDirectTextChild) {
  32658. // We special case a direct text child of a host node. This is a common
  32659. // case. We won't handle it as a reified child. We will instead handle
  32660. // this in the host environment that also have access to this prop. That
  32661. // avoids allocating another HostText fiber and traversing it.
  32662. nextChildren = null;
  32663. } else if (prevProps !== null && shouldSetTextContent(type, prevProps)) {
  32664. // If we're switching from a direct text child to a normal child, or to
  32665. // empty, we need to schedule the text content to be reset.
  32666. workInProgress.effectTag |= ContentReset;
  32667. }
  32668. markRef(current$$1, workInProgress);
  32669. // Check the host config to see if the children are offscreen/hidden.
  32670. if (workInProgress.mode & ConcurrentMode && renderExpirationTime !== Never && shouldDeprioritizeSubtree(type, nextProps)) {
  32671. if (enableSchedulerTracing) {
  32672. markSpawnedWork(Never);
  32673. }
  32674. // Schedule this fiber to re-render at offscreen priority. Then bailout.
  32675. workInProgress.expirationTime = workInProgress.childExpirationTime = Never;
  32676. return null;
  32677. }
  32678. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  32679. return workInProgress.child;
  32680. }
  32681. function updateHostText(current$$1, workInProgress) {
  32682. if (current$$1 === null) {
  32683. tryToClaimNextHydratableInstance(workInProgress);
  32684. }
  32685. // Nothing to do here. This is terminal. We'll do the completion step
  32686. // immediately after.
  32687. return null;
  32688. }
  32689. function mountLazyComponent(_current, workInProgress, elementType, updateExpirationTime, renderExpirationTime) {
  32690. if (_current !== null) {
  32691. // An lazy component only mounts if it suspended inside a non-
  32692. // concurrent tree, in an inconsistent state. We want to treat it like
  32693. // a new mount, even though an empty version of it already committed.
  32694. // Disconnect the alternate pointers.
  32695. _current.alternate = null;
  32696. workInProgress.alternate = null;
  32697. // Since this is conceptually a new fiber, schedule a Placement effect
  32698. workInProgress.effectTag |= Placement;
  32699. }
  32700. var props = workInProgress.pendingProps;
  32701. // We can't start a User Timing measurement with correct label yet.
  32702. // Cancel and resume right after we know the tag.
  32703. cancelWorkTimer(workInProgress);
  32704. var Component = readLazyComponentType(elementType);
  32705. // Store the unwrapped component in the type.
  32706. workInProgress.type = Component;
  32707. var resolvedTag = workInProgress.tag = resolveLazyComponentTag(Component);
  32708. startWorkTimer(workInProgress);
  32709. var resolvedProps = resolveDefaultProps(Component, props);
  32710. var child = void 0;
  32711. switch (resolvedTag) {
  32712. case FunctionComponent:
  32713. {
  32714. {
  32715. validateFunctionComponentInDev(workInProgress, Component);
  32716. workInProgress.type = Component = resolveFunctionForHotReloading(Component);
  32717. }
  32718. child = updateFunctionComponent(null, workInProgress, Component, resolvedProps, renderExpirationTime);
  32719. break;
  32720. }
  32721. case ClassComponent:
  32722. {
  32723. {
  32724. workInProgress.type = Component = resolveClassForHotReloading(Component);
  32725. }
  32726. child = updateClassComponent(null, workInProgress, Component, resolvedProps, renderExpirationTime);
  32727. break;
  32728. }
  32729. case ForwardRef:
  32730. {
  32731. {
  32732. workInProgress.type = Component = resolveForwardRefForHotReloading(Component);
  32733. }
  32734. child = updateForwardRef(null, workInProgress, Component, resolvedProps, renderExpirationTime);
  32735. break;
  32736. }
  32737. case MemoComponent:
  32738. {
  32739. {
  32740. if (workInProgress.type !== workInProgress.elementType) {
  32741. var outerPropTypes = Component.propTypes;
  32742. if (outerPropTypes) {
  32743. checkPropTypes(outerPropTypes, resolvedProps, // Resolved for outer only
  32744. 'prop', getComponentName(Component), getCurrentFiberStackInDev);
  32745. }
  32746. }
  32747. }
  32748. child = updateMemoComponent(null, workInProgress, Component, resolveDefaultProps(Component.type, resolvedProps), // The inner type can have defaults too
  32749. updateExpirationTime, renderExpirationTime);
  32750. break;
  32751. }
  32752. default:
  32753. {
  32754. var hint = '';
  32755. {
  32756. if (Component !== null && typeof Component === 'object' && Component.$$typeof === REACT_LAZY_TYPE) {
  32757. hint = ' Did you wrap a component in React.lazy() more than once?';
  32758. }
  32759. }
  32760. // This message intentionally doesn't mention ForwardRef or MemoComponent
  32761. // because the fact that it's a separate type of work is an
  32762. // implementation detail.
  32763. (function () {
  32764. {
  32765. {
  32766. throw ReactError(Error('Element type is invalid. Received a promise that resolves to: ' + Component + '. Lazy element type must resolve to a class or function.' + hint));
  32767. }
  32768. }
  32769. })();
  32770. }
  32771. }
  32772. return child;
  32773. }
  32774. function mountIncompleteClassComponent(_current, workInProgress, Component, nextProps, renderExpirationTime) {
  32775. if (_current !== null) {
  32776. // An incomplete component only mounts if it suspended inside a non-
  32777. // concurrent tree, in an inconsistent state. We want to treat it like
  32778. // a new mount, even though an empty version of it already committed.
  32779. // Disconnect the alternate pointers.
  32780. _current.alternate = null;
  32781. workInProgress.alternate = null;
  32782. // Since this is conceptually a new fiber, schedule a Placement effect
  32783. workInProgress.effectTag |= Placement;
  32784. }
  32785. // Promote the fiber to a class and try rendering again.
  32786. workInProgress.tag = ClassComponent;
  32787. // The rest of this function is a fork of `updateClassComponent`
  32788. // Push context providers early to prevent context stack mismatches.
  32789. // During mounting we don't know the child context yet as the instance doesn't exist.
  32790. // We will invalidate the child context in finishClassComponent() right after rendering.
  32791. var hasContext = void 0;
  32792. if (isContextProvider(Component)) {
  32793. hasContext = true;
  32794. pushContextProvider(workInProgress);
  32795. } else {
  32796. hasContext = false;
  32797. }
  32798. prepareToReadContext(workInProgress, renderExpirationTime);
  32799. constructClassInstance(workInProgress, Component, nextProps, renderExpirationTime);
  32800. mountClassInstance(workInProgress, Component, nextProps, renderExpirationTime);
  32801. return finishClassComponent(null, workInProgress, Component, true, hasContext, renderExpirationTime);
  32802. }
  32803. function mountIndeterminateComponent(_current, workInProgress, Component, renderExpirationTime) {
  32804. if (_current !== null) {
  32805. // An indeterminate component only mounts if it suspended inside a non-
  32806. // concurrent tree, in an inconsistent state. We want to treat it like
  32807. // a new mount, even though an empty version of it already committed.
  32808. // Disconnect the alternate pointers.
  32809. _current.alternate = null;
  32810. workInProgress.alternate = null;
  32811. // Since this is conceptually a new fiber, schedule a Placement effect
  32812. workInProgress.effectTag |= Placement;
  32813. }
  32814. var props = workInProgress.pendingProps;
  32815. var context = void 0;
  32816. if (!disableLegacyContext) {
  32817. var unmaskedContext = getUnmaskedContext(workInProgress, Component, false);
  32818. context = getMaskedContext(workInProgress, unmaskedContext);
  32819. }
  32820. prepareToReadContext(workInProgress, renderExpirationTime);
  32821. var value = void 0;
  32822. {
  32823. if (Component.prototype && typeof Component.prototype.render === 'function') {
  32824. var componentName = getComponentName(Component) || 'Unknown';
  32825. if (!didWarnAboutBadClass[componentName]) {
  32826. warningWithoutStack$1(false, "The <%s /> component appears to have a render method, but doesn't extend React.Component. " + 'This is likely to cause errors. Change %s to extend React.Component instead.', componentName, componentName);
  32827. didWarnAboutBadClass[componentName] = true;
  32828. }
  32829. }
  32830. if (workInProgress.mode & StrictMode) {
  32831. ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress, null);
  32832. }
  32833. ReactCurrentOwner$3.current = workInProgress;
  32834. value = renderWithHooks(null, workInProgress, Component, props, context, renderExpirationTime);
  32835. }
  32836. // React DevTools reads this flag.
  32837. workInProgress.effectTag |= PerformedWork;
  32838. if (typeof value === 'object' && value !== null && typeof value.render === 'function' && value.$$typeof === undefined) {
  32839. {
  32840. var _componentName = getComponentName(Component) || 'Unknown';
  32841. if (!didWarnAboutModulePatternComponent[_componentName]) {
  32842. warningWithoutStack$1(false, 'The <%s /> component appears to be a function component that returns a class instance. ' + 'Change %s to a class that extends React.Component instead. ' + "If you can't use a class try assigning the prototype on the function as a workaround. " + "`%s.prototype = React.Component.prototype`. Don't use an arrow function since it " + 'cannot be called with `new` by React.', _componentName, _componentName, _componentName);
  32843. didWarnAboutModulePatternComponent[_componentName] = true;
  32844. }
  32845. }
  32846. // Proceed under the assumption that this is a class instance
  32847. workInProgress.tag = ClassComponent;
  32848. // Throw out any hooks that were used.
  32849. resetHooks();
  32850. // Push context providers early to prevent context stack mismatches.
  32851. // During mounting we don't know the child context yet as the instance doesn't exist.
  32852. // We will invalidate the child context in finishClassComponent() right after rendering.
  32853. var hasContext = false;
  32854. if (isContextProvider(Component)) {
  32855. hasContext = true;
  32856. pushContextProvider(workInProgress);
  32857. } else {
  32858. hasContext = false;
  32859. }
  32860. workInProgress.memoizedState = value.state !== null && value.state !== undefined ? value.state : null;
  32861. var getDerivedStateFromProps = Component.getDerivedStateFromProps;
  32862. if (typeof getDerivedStateFromProps === 'function') {
  32863. applyDerivedStateFromProps(workInProgress, Component, getDerivedStateFromProps, props);
  32864. }
  32865. adoptClassInstance(workInProgress, value);
  32866. mountClassInstance(workInProgress, Component, props, renderExpirationTime);
  32867. return finishClassComponent(null, workInProgress, Component, true, hasContext, renderExpirationTime);
  32868. } else {
  32869. // Proceed under the assumption that this is a function component
  32870. workInProgress.tag = FunctionComponent;
  32871. {
  32872. if (disableLegacyContext && Component.contextTypes) {
  32873. warningWithoutStack$1(false, '%s uses the legacy contextTypes API which is no longer supported. ' + 'Use React.createContext() with React.useContext() instead.', getComponentName(Component) || 'Unknown');
  32874. }
  32875. if (debugRenderPhaseSideEffects || debugRenderPhaseSideEffectsForStrictMode && workInProgress.mode & StrictMode) {
  32876. // Only double-render components with Hooks
  32877. if (workInProgress.memoizedState !== null) {
  32878. value = renderWithHooks(null, workInProgress, Component, props, context, renderExpirationTime);
  32879. }
  32880. }
  32881. }
  32882. reconcileChildren(null, workInProgress, value, renderExpirationTime);
  32883. {
  32884. validateFunctionComponentInDev(workInProgress, Component);
  32885. }
  32886. return workInProgress.child;
  32887. }
  32888. }
  32889. function validateFunctionComponentInDev(workInProgress, Component) {
  32890. if (Component) {
  32891. !!Component.childContextTypes ? warningWithoutStack$1(false, '%s(...): childContextTypes cannot be defined on a function component.', Component.displayName || Component.name || 'Component') : void 0;
  32892. }
  32893. if (workInProgress.ref !== null) {
  32894. var info = '';
  32895. var ownerName = getCurrentFiberOwnerNameInDevOrNull();
  32896. if (ownerName) {
  32897. info += '\n\nCheck the render method of `' + ownerName + '`.';
  32898. }
  32899. var warningKey = ownerName || workInProgress._debugID || '';
  32900. var debugSource = workInProgress._debugSource;
  32901. if (debugSource) {
  32902. warningKey = debugSource.fileName + ':' + debugSource.lineNumber;
  32903. }
  32904. if (!didWarnAboutFunctionRefs[warningKey]) {
  32905. didWarnAboutFunctionRefs[warningKey] = true;
  32906. warning$1(false, 'Function components cannot be given refs. ' + 'Attempts to access this ref will fail. ' + 'Did you mean to use React.forwardRef()?%s', info);
  32907. }
  32908. }
  32909. if (warnAboutDefaultPropsOnFunctionComponents && Component.defaultProps !== undefined) {
  32910. var componentName = getComponentName(Component) || 'Unknown';
  32911. if (!didWarnAboutDefaultPropsOnFunctionComponent[componentName]) {
  32912. warningWithoutStack$1(false, '%s: Support for defaultProps will be removed from function components ' + 'in a future major release. Use JavaScript default parameters instead.', componentName);
  32913. didWarnAboutDefaultPropsOnFunctionComponent[componentName] = true;
  32914. }
  32915. }
  32916. if (typeof Component.getDerivedStateFromProps === 'function') {
  32917. var _componentName2 = getComponentName(Component) || 'Unknown';
  32918. if (!didWarnAboutGetDerivedStateOnFunctionComponent[_componentName2]) {
  32919. warningWithoutStack$1(false, '%s: Function components do not support getDerivedStateFromProps.', _componentName2);
  32920. didWarnAboutGetDerivedStateOnFunctionComponent[_componentName2] = true;
  32921. }
  32922. }
  32923. if (typeof Component.contextType === 'object' && Component.contextType !== null) {
  32924. var _componentName3 = getComponentName(Component) || 'Unknown';
  32925. if (!didWarnAboutContextTypeOnFunctionComponent[_componentName3]) {
  32926. warningWithoutStack$1(false, '%s: Function components do not support contextType.', _componentName3);
  32927. didWarnAboutContextTypeOnFunctionComponent[_componentName3] = true;
  32928. }
  32929. }
  32930. }
  32931. // TODO: This is now an empty object. Should we just make it a boolean?
  32932. var SUSPENDED_MARKER = {};
  32933. function shouldRemainOnFallback(suspenseContext, current$$1, workInProgress) {
  32934. // If the context is telling us that we should show a fallback, and we're not
  32935. // already showing content, then we should show the fallback instead.
  32936. return hasSuspenseContext(suspenseContext, ForceSuspenseFallback) && (current$$1 === null || current$$1.memoizedState !== null);
  32937. }
  32938. function updateSuspenseComponent(current$$1, workInProgress, renderExpirationTime) {
  32939. var mode = workInProgress.mode;
  32940. var nextProps = workInProgress.pendingProps;
  32941. // This is used by DevTools to force a boundary to suspend.
  32942. {
  32943. if (shouldSuspend(workInProgress)) {
  32944. workInProgress.effectTag |= DidCapture;
  32945. }
  32946. }
  32947. var suspenseContext = suspenseStackCursor.current;
  32948. var nextState = null;
  32949. var nextDidTimeout = false;
  32950. if ((workInProgress.effectTag & DidCapture) !== NoEffect || shouldRemainOnFallback(suspenseContext, current$$1, workInProgress)) {
  32951. // Something in this boundary's subtree already suspended. Switch to
  32952. // rendering the fallback children.
  32953. nextState = SUSPENDED_MARKER;
  32954. nextDidTimeout = true;
  32955. workInProgress.effectTag &= ~DidCapture;
  32956. } else {
  32957. // Attempting the main content
  32958. if (current$$1 === null || current$$1.memoizedState !== null) {
  32959. // This is a new mount or this boundary is already showing a fallback state.
  32960. // Mark this subtree context as having at least one invisible parent that could
  32961. // handle the fallback state.
  32962. // Boundaries without fallbacks or should be avoided are not considered since
  32963. // they cannot handle preferred fallback states.
  32964. if (nextProps.fallback !== undefined && nextProps.unstable_avoidThisFallback !== true) {
  32965. suspenseContext = addSubtreeSuspenseContext(suspenseContext, InvisibleParentSuspenseContext);
  32966. }
  32967. }
  32968. }
  32969. suspenseContext = setDefaultShallowSuspenseContext(suspenseContext);
  32970. pushSuspenseContext(workInProgress, suspenseContext);
  32971. {
  32972. if ('maxDuration' in nextProps) {
  32973. if (!didWarnAboutMaxDuration) {
  32974. didWarnAboutMaxDuration = true;
  32975. warning$1(false, 'maxDuration has been removed from React. ' + 'Remove the maxDuration prop.');
  32976. }
  32977. }
  32978. }
  32979. // This next part is a bit confusing. If the children timeout, we switch to
  32980. // showing the fallback children in place of the "primary" children.
  32981. // However, we don't want to delete the primary children because then their
  32982. // state will be lost (both the React state and the host state, e.g.
  32983. // uncontrolled form inputs). Instead we keep them mounted and hide them.
  32984. // Both the fallback children AND the primary children are rendered at the
  32985. // same time. Once the primary children are un-suspended, we can delete
  32986. // the fallback children — don't need to preserve their state.
  32987. //
  32988. // The two sets of children are siblings in the host environment, but
  32989. // semantically, for purposes of reconciliation, they are two separate sets.
  32990. // So we store them using two fragment fibers.
  32991. //
  32992. // However, we want to avoid allocating extra fibers for every placeholder.
  32993. // They're only necessary when the children time out, because that's the
  32994. // only time when both sets are mounted.
  32995. //
  32996. // So, the extra fragment fibers are only used if the children time out.
  32997. // Otherwise, we render the primary children directly. This requires some
  32998. // custom reconciliation logic to preserve the state of the primary
  32999. // children. It's essentially a very basic form of re-parenting.
  33000. // `child` points to the child fiber. In the normal case, this is the first
  33001. // fiber of the primary children set. In the timed-out case, it's a
  33002. // a fragment fiber containing the primary children.
  33003. var child = void 0;
  33004. // `next` points to the next fiber React should render. In the normal case,
  33005. // it's the same as `child`: the first fiber of the primary children set.
  33006. // In the timed-out case, it's a fragment fiber containing the *fallback*
  33007. // children -- we skip over the primary children entirely.
  33008. var next = void 0;
  33009. if (current$$1 === null) {
  33010. if (enableSuspenseServerRenderer) {
  33011. // If we're currently hydrating, try to hydrate this boundary.
  33012. // But only if this has a fallback.
  33013. if (nextProps.fallback !== undefined) {
  33014. tryToClaimNextHydratableInstance(workInProgress);
  33015. // This could've changed the tag if this was a dehydrated suspense component.
  33016. if (workInProgress.tag === DehydratedSuspenseComponent) {
  33017. popSuspenseContext(workInProgress);
  33018. return updateDehydratedSuspenseComponent(null, workInProgress, renderExpirationTime);
  33019. }
  33020. }
  33021. }
  33022. // This is the initial mount. This branch is pretty simple because there's
  33023. // no previous state that needs to be preserved.
  33024. if (nextDidTimeout) {
  33025. // Mount separate fragments for primary and fallback children.
  33026. var nextFallbackChildren = nextProps.fallback;
  33027. var primaryChildFragment = createFiberFromFragment(null, mode, NoWork, null);
  33028. primaryChildFragment.return = workInProgress;
  33029. if ((workInProgress.mode & BatchedMode) === NoMode) {
  33030. // Outside of batched mode, we commit the effects from the
  33031. var progressedState = workInProgress.memoizedState;
  33032. var progressedPrimaryChild = progressedState !== null ? workInProgress.child.child : workInProgress.child;
  33033. primaryChildFragment.child = progressedPrimaryChild;
  33034. var progressedChild = progressedPrimaryChild;
  33035. while (progressedChild !== null) {
  33036. progressedChild.return = primaryChildFragment;
  33037. progressedChild = progressedChild.sibling;
  33038. }
  33039. }
  33040. var fallbackChildFragment = createFiberFromFragment(nextFallbackChildren, mode, renderExpirationTime, null);
  33041. fallbackChildFragment.return = workInProgress;
  33042. primaryChildFragment.sibling = fallbackChildFragment;
  33043. child = primaryChildFragment;
  33044. // Skip the primary children, and continue working on the
  33045. // fallback children.
  33046. next = fallbackChildFragment;
  33047. } else {
  33048. // Mount the primary children without an intermediate fragment fiber.
  33049. var nextPrimaryChildren = nextProps.children;
  33050. child = next = mountChildFibers(workInProgress, null, nextPrimaryChildren, renderExpirationTime);
  33051. }
  33052. } else {
  33053. // This is an update. This branch is more complicated because we need to
  33054. // ensure the state of the primary children is preserved.
  33055. var prevState = current$$1.memoizedState;
  33056. var prevDidTimeout = prevState !== null;
  33057. if (prevDidTimeout) {
  33058. // The current tree already timed out. That means each child set is
  33059. var currentPrimaryChildFragment = current$$1.child;
  33060. var currentFallbackChildFragment = currentPrimaryChildFragment.sibling;
  33061. if (nextDidTimeout) {
  33062. // Still timed out. Reuse the current primary children by cloning
  33063. // its fragment. We're going to skip over these entirely.
  33064. var _nextFallbackChildren = nextProps.fallback;
  33065. var _primaryChildFragment = createWorkInProgress(currentPrimaryChildFragment, currentPrimaryChildFragment.pendingProps, NoWork);
  33066. _primaryChildFragment.return = workInProgress;
  33067. if ((workInProgress.mode & BatchedMode) === NoMode) {
  33068. // Outside of batched mode, we commit the effects from the
  33069. var _progressedState = workInProgress.memoizedState;
  33070. var _progressedPrimaryChild = _progressedState !== null ? workInProgress.child.child : workInProgress.child;
  33071. if (_progressedPrimaryChild !== currentPrimaryChildFragment.child) {
  33072. _primaryChildFragment.child = _progressedPrimaryChild;
  33073. var _progressedChild = _progressedPrimaryChild;
  33074. while (_progressedChild !== null) {
  33075. _progressedChild.return = _primaryChildFragment;
  33076. _progressedChild = _progressedChild.sibling;
  33077. }
  33078. }
  33079. }
  33080. // Because primaryChildFragment is a new fiber that we're inserting as the
  33081. // parent of a new tree, we need to set its treeBaseDuration.
  33082. if (enableProfilerTimer && workInProgress.mode & ProfileMode) {
  33083. // treeBaseDuration is the sum of all the child tree base durations.
  33084. var treeBaseDuration = 0;
  33085. var hiddenChild = _primaryChildFragment.child;
  33086. while (hiddenChild !== null) {
  33087. treeBaseDuration += hiddenChild.treeBaseDuration;
  33088. hiddenChild = hiddenChild.sibling;
  33089. }
  33090. _primaryChildFragment.treeBaseDuration = treeBaseDuration;
  33091. }
  33092. // Clone the fallback child fragment, too. These we'll continue
  33093. // working on.
  33094. var _fallbackChildFragment = createWorkInProgress(currentFallbackChildFragment, _nextFallbackChildren, currentFallbackChildFragment.expirationTime);
  33095. _fallbackChildFragment.return = workInProgress;
  33096. _primaryChildFragment.sibling = _fallbackChildFragment;
  33097. child = _primaryChildFragment;
  33098. _primaryChildFragment.childExpirationTime = NoWork;
  33099. // Skip the primary children, and continue working on the
  33100. // fallback children.
  33101. next = _fallbackChildFragment;
  33102. } else {
  33103. // No longer suspended. Switch back to showing the primary children,
  33104. // and remove the intermediate fragment fiber.
  33105. var _nextPrimaryChildren = nextProps.children;
  33106. var currentPrimaryChild = currentPrimaryChildFragment.child;
  33107. var primaryChild = reconcileChildFibers(workInProgress, currentPrimaryChild, _nextPrimaryChildren, renderExpirationTime);
  33108. // If this render doesn't suspend, we need to delete the fallback
  33109. // children. Wait until the complete phase, after we've confirmed the
  33110. // fallback is no longer needed.
  33111. // TODO: Would it be better to store the fallback fragment on
  33112. // the stateNode?
  33113. // Continue rendering the children, like we normally do.
  33114. child = next = primaryChild;
  33115. }
  33116. } else {
  33117. // The current tree has not already timed out. That means the primary
  33118. // children are not wrapped in a fragment fiber.
  33119. var _currentPrimaryChild = current$$1.child;
  33120. if (nextDidTimeout) {
  33121. // Timed out. Wrap the children in a fragment fiber to keep them
  33122. // separate from the fallback children.
  33123. var _nextFallbackChildren2 = nextProps.fallback;
  33124. var _primaryChildFragment2 = createFiberFromFragment(
  33125. // It shouldn't matter what the pending props are because we aren't
  33126. // going to render this fragment.
  33127. null, mode, NoWork, null);
  33128. _primaryChildFragment2.return = workInProgress;
  33129. _primaryChildFragment2.child = _currentPrimaryChild;
  33130. if (_currentPrimaryChild !== null) {
  33131. _currentPrimaryChild.return = _primaryChildFragment2;
  33132. }
  33133. // Even though we're creating a new fiber, there are no new children,
  33134. // because we're reusing an already mounted tree. So we don't need to
  33135. // schedule a placement.
  33136. // primaryChildFragment.effectTag |= Placement;
  33137. if ((workInProgress.mode & BatchedMode) === NoMode) {
  33138. // Outside of batched mode, we commit the effects from the
  33139. var _progressedState2 = workInProgress.memoizedState;
  33140. var _progressedPrimaryChild2 = _progressedState2 !== null ? workInProgress.child.child : workInProgress.child;
  33141. _primaryChildFragment2.child = _progressedPrimaryChild2;
  33142. var _progressedChild2 = _progressedPrimaryChild2;
  33143. while (_progressedChild2 !== null) {
  33144. _progressedChild2.return = _primaryChildFragment2;
  33145. _progressedChild2 = _progressedChild2.sibling;
  33146. }
  33147. }
  33148. // Because primaryChildFragment is a new fiber that we're inserting as the
  33149. // parent of a new tree, we need to set its treeBaseDuration.
  33150. if (enableProfilerTimer && workInProgress.mode & ProfileMode) {
  33151. // treeBaseDuration is the sum of all the child tree base durations.
  33152. var _treeBaseDuration = 0;
  33153. var _hiddenChild = _primaryChildFragment2.child;
  33154. while (_hiddenChild !== null) {
  33155. _treeBaseDuration += _hiddenChild.treeBaseDuration;
  33156. _hiddenChild = _hiddenChild.sibling;
  33157. }
  33158. _primaryChildFragment2.treeBaseDuration = _treeBaseDuration;
  33159. }
  33160. // Create a fragment from the fallback children, too.
  33161. var _fallbackChildFragment2 = createFiberFromFragment(_nextFallbackChildren2, mode, renderExpirationTime, null);
  33162. _fallbackChildFragment2.return = workInProgress;
  33163. _primaryChildFragment2.sibling = _fallbackChildFragment2;
  33164. _fallbackChildFragment2.effectTag |= Placement;
  33165. child = _primaryChildFragment2;
  33166. _primaryChildFragment2.childExpirationTime = NoWork;
  33167. // Skip the primary children, and continue working on the
  33168. // fallback children.
  33169. next = _fallbackChildFragment2;
  33170. } else {
  33171. // Still haven't timed out. Continue rendering the children, like we
  33172. // normally do.
  33173. var _nextPrimaryChildren2 = nextProps.children;
  33174. next = child = reconcileChildFibers(workInProgress, _currentPrimaryChild, _nextPrimaryChildren2, renderExpirationTime);
  33175. }
  33176. }
  33177. workInProgress.stateNode = current$$1.stateNode;
  33178. }
  33179. workInProgress.memoizedState = nextState;
  33180. workInProgress.child = child;
  33181. return next;
  33182. }
  33183. function retrySuspenseComponentWithoutHydrating(current$$1, workInProgress, renderExpirationTime) {
  33184. // Detach from the current dehydrated boundary.
  33185. current$$1.alternate = null;
  33186. workInProgress.alternate = null;
  33187. // Insert a deletion in the effect list.
  33188. var returnFiber = workInProgress.return;
  33189. (function () {
  33190. if (!(returnFiber !== null)) {
  33191. {
  33192. throw ReactError(Error('Suspense boundaries are never on the root. This is probably a bug in React.'));
  33193. }
  33194. }
  33195. })();
  33196. var last = returnFiber.lastEffect;
  33197. if (last !== null) {
  33198. last.nextEffect = current$$1;
  33199. returnFiber.lastEffect = current$$1;
  33200. } else {
  33201. returnFiber.firstEffect = returnFiber.lastEffect = current$$1;
  33202. }
  33203. current$$1.nextEffect = null;
  33204. current$$1.effectTag = Deletion;
  33205. popSuspenseContext(workInProgress);
  33206. // Upgrade this work in progress to a real Suspense component.
  33207. workInProgress.tag = SuspenseComponent;
  33208. workInProgress.stateNode = null;
  33209. workInProgress.memoizedState = null;
  33210. // This is now an insertion.
  33211. workInProgress.effectTag |= Placement;
  33212. // Retry as a real Suspense component.
  33213. return updateSuspenseComponent(null, workInProgress, renderExpirationTime);
  33214. }
  33215. function updateDehydratedSuspenseComponent(current$$1, workInProgress, renderExpirationTime) {
  33216. pushSuspenseContext(workInProgress, setDefaultShallowSuspenseContext(suspenseStackCursor.current));
  33217. var suspenseInstance = workInProgress.stateNode;
  33218. if (current$$1 === null) {
  33219. // During the first pass, we'll bail out and not drill into the children.
  33220. // Instead, we'll leave the content in place and try to hydrate it later.
  33221. if (isSuspenseInstanceFallback(suspenseInstance)) {
  33222. // This is a client-only boundary. Since we won't get any content from the server
  33223. // for this, we need to schedule that at a higher priority based on when it would
  33224. // have timed out. In theory we could render it in this pass but it would have the
  33225. // wrong priority associated with it and will prevent hydration of parent path.
  33226. // Instead, we'll leave work left on it to render it in a separate commit.
  33227. // TODO This time should be the time at which the server rendered response that is
  33228. // a parent to this boundary was displayed. However, since we currently don't have
  33229. // a protocol to transfer that time, we'll just estimate it by using the current
  33230. // time. This will mean that Suspense timeouts are slightly shifted to later than
  33231. // they should be.
  33232. var serverDisplayTime = requestCurrentTime();
  33233. // Schedule a normal pri update to render this content.
  33234. workInProgress.expirationTime = computeAsyncExpiration(serverDisplayTime);
  33235. } else {
  33236. // We'll continue hydrating the rest at offscreen priority since we'll already
  33237. // be showing the right content coming from the server, it is no rush.
  33238. workInProgress.expirationTime = Never;
  33239. }
  33240. return null;
  33241. }
  33242. if ((workInProgress.effectTag & DidCapture) !== NoEffect) {
  33243. // Something suspended. Leave the existing children in place.
  33244. // TODO: In non-concurrent mode, should we commit the nodes we have hydrated so far?
  33245. workInProgress.child = null;
  33246. return null;
  33247. }
  33248. if (isSuspenseInstanceFallback(suspenseInstance)) {
  33249. // This boundary is in a permanent fallback state. In this case, we'll never
  33250. // get an update and we'll never be able to hydrate the final content. Let's just try the
  33251. // client side render instead.
  33252. return retrySuspenseComponentWithoutHydrating(current$$1, workInProgress, renderExpirationTime);
  33253. }
  33254. // We use childExpirationTime to indicate that a child might depend on context, so if
  33255. // any context has changed, we need to treat is as if the input might have changed.
  33256. var hasContextChanged$$1 = current$$1.childExpirationTime >= renderExpirationTime;
  33257. if (didReceiveUpdate || hasContextChanged$$1) {
  33258. // This boundary has changed since the first render. This means that we are now unable to
  33259. // hydrate it. We might still be able to hydrate it using an earlier expiration time but
  33260. // during this render we can't. Instead, we're going to delete the whole subtree and
  33261. // instead inject a new real Suspense boundary to take its place, which may render content
  33262. // or fallback. The real Suspense boundary will suspend for a while so we have some time
  33263. // to ensure it can produce real content, but all state and pending events will be lost.
  33264. return retrySuspenseComponentWithoutHydrating(current$$1, workInProgress, renderExpirationTime);
  33265. } else if (isSuspenseInstancePending(suspenseInstance)) {
  33266. // This component is still pending more data from the server, so we can't hydrate its
  33267. // content. We treat it as if this component suspended itself. It might seem as if
  33268. // we could just try to render it client-side instead. However, this will perform a
  33269. // lot of unnecessary work and is unlikely to complete since it often will suspend
  33270. // on missing data anyway. Additionally, the server might be able to render more
  33271. // than we can on the client yet. In that case we'd end up with more fallback states
  33272. // on the client than if we just leave it alone. If the server times out or errors
  33273. // these should update this boundary to the permanent Fallback state instead.
  33274. // Mark it as having captured (i.e. suspended).
  33275. workInProgress.effectTag |= DidCapture;
  33276. // Leave the children in place. I.e. empty.
  33277. workInProgress.child = null;
  33278. // Register a callback to retry this boundary once the server has sent the result.
  33279. registerSuspenseInstanceRetry(suspenseInstance, retryTimedOutBoundary.bind(null, current$$1));
  33280. return null;
  33281. } else {
  33282. // This is the first attempt.
  33283. reenterHydrationStateFromDehydratedSuspenseInstance(workInProgress);
  33284. var nextProps = workInProgress.pendingProps;
  33285. var nextChildren = nextProps.children;
  33286. workInProgress.child = mountChildFibers(workInProgress, null, nextChildren, renderExpirationTime);
  33287. return workInProgress.child;
  33288. }
  33289. }
  33290. function propagateSuspenseContextChange(workInProgress, firstChild, renderExpirationTime) {
  33291. // Mark any Suspense boundaries with fallbacks as having work to do.
  33292. // If they were previously forced into fallbacks, they may now be able
  33293. // to unblock.
  33294. var node = firstChild;
  33295. while (node !== null) {
  33296. if (node.tag === SuspenseComponent) {
  33297. var state = node.memoizedState;
  33298. if (state !== null) {
  33299. if (node.expirationTime < renderExpirationTime) {
  33300. node.expirationTime = renderExpirationTime;
  33301. }
  33302. var alternate = node.alternate;
  33303. if (alternate !== null && alternate.expirationTime < renderExpirationTime) {
  33304. alternate.expirationTime = renderExpirationTime;
  33305. }
  33306. scheduleWorkOnParentPath(node.return, renderExpirationTime);
  33307. }
  33308. } else if (node.child !== null) {
  33309. node.child.return = node;
  33310. node = node.child;
  33311. continue;
  33312. }
  33313. if (node === workInProgress) {
  33314. return;
  33315. }
  33316. while (node.sibling === null) {
  33317. if (node.return === null || node.return === workInProgress) {
  33318. return;
  33319. }
  33320. node = node.return;
  33321. }
  33322. node.sibling.return = node.return;
  33323. node = node.sibling;
  33324. }
  33325. }
  33326. function findLastContentRow(firstChild) {
  33327. // This is going to find the last row among these children that is already
  33328. // showing content on the screen, as opposed to being in fallback state or
  33329. // new. If a row has multiple Suspense boundaries, any of them being in the
  33330. // fallback state, counts as the whole row being in a fallback state.
  33331. // Note that the "rows" will be workInProgress, but any nested children
  33332. // will still be current since we haven't rendered them yet. The mounted
  33333. // order may not be the same as the new order. We use the new order.
  33334. var row = firstChild;
  33335. var lastContentRow = null;
  33336. while (row !== null) {
  33337. var currentRow = row.alternate;
  33338. // New rows can't be content rows.
  33339. if (currentRow !== null && findFirstSuspended(currentRow) === null) {
  33340. lastContentRow = row;
  33341. }
  33342. row = row.sibling;
  33343. }
  33344. return lastContentRow;
  33345. }
  33346. function validateRevealOrder(revealOrder) {
  33347. {
  33348. if (revealOrder !== undefined && revealOrder !== 'forwards' && revealOrder !== 'backwards' && revealOrder !== 'together' && !didWarnAboutRevealOrder[revealOrder]) {
  33349. didWarnAboutRevealOrder[revealOrder] = true;
  33350. if (typeof revealOrder === 'string') {
  33351. switch (revealOrder.toLowerCase()) {
  33352. case 'together':
  33353. case 'forwards':
  33354. case 'backwards':
  33355. {
  33356. warning$1(false, '"%s" is not a valid value for revealOrder on <SuspenseList />. ' + 'Use lowercase "%s" instead.', revealOrder, revealOrder.toLowerCase());
  33357. break;
  33358. }
  33359. case 'forward':
  33360. case 'backward':
  33361. {
  33362. warning$1(false, '"%s" is not a valid value for revealOrder on <SuspenseList />. ' + 'React uses the -s suffix in the spelling. Use "%ss" instead.', revealOrder, revealOrder.toLowerCase());
  33363. break;
  33364. }
  33365. default:
  33366. warning$1(false, '"%s" is not a supported revealOrder on <SuspenseList />. ' + 'Did you mean "together", "forwards" or "backwards"?', revealOrder);
  33367. break;
  33368. }
  33369. } else {
  33370. warning$1(false, '%s is not a supported value for revealOrder on <SuspenseList />. ' + 'Did you mean "together", "forwards" or "backwards"?', revealOrder);
  33371. }
  33372. }
  33373. }
  33374. }
  33375. function validateTailOptions(tailMode, revealOrder) {
  33376. {
  33377. if (tailMode !== undefined && !didWarnAboutTailOptions[tailMode]) {
  33378. if (tailMode !== 'collapsed' && tailMode !== 'hidden') {
  33379. didWarnAboutTailOptions[tailMode] = true;
  33380. warning$1(false, '"%s" is not a supported value for tail on <SuspenseList />. ' + 'Did you mean "collapsed" or "hidden"?', tailMode);
  33381. } else if (revealOrder !== 'forwards' && revealOrder !== 'backwards') {
  33382. didWarnAboutTailOptions[tailMode] = true;
  33383. warning$1(false, '<SuspenseList tail="%s" /> is only valid if revealOrder is ' + '"forwards" or "backwards". ' + 'Did you mean to specify revealOrder="forwards"?', tailMode);
  33384. }
  33385. }
  33386. }
  33387. }
  33388. function validateSuspenseListNestedChild(childSlot, index) {
  33389. {
  33390. var isArray = Array.isArray(childSlot);
  33391. var isIterable = !isArray && typeof getIteratorFn(childSlot) === 'function';
  33392. if (isArray || isIterable) {
  33393. var type = isArray ? 'array' : 'iterable';
  33394. warning$1(false, 'A nested %s was passed to row #%s in <SuspenseList />. Wrap it in ' + 'an additional SuspenseList to configure its revealOrder: ' + '<SuspenseList revealOrder=...> ... ' + '<SuspenseList revealOrder=...>{%s}</SuspenseList> ... ' + '</SuspenseList>', type, index, type);
  33395. return false;
  33396. }
  33397. }
  33398. return true;
  33399. }
  33400. function validateSuspenseListChildren(children, revealOrder) {
  33401. {
  33402. if ((revealOrder === 'forwards' || revealOrder === 'backwards') && children !== undefined && children !== null && children !== false) {
  33403. if (Array.isArray(children)) {
  33404. for (var i = 0; i < children.length; i++) {
  33405. if (!validateSuspenseListNestedChild(children[i], i)) {
  33406. return;
  33407. }
  33408. }
  33409. } else {
  33410. var iteratorFn = getIteratorFn(children);
  33411. if (typeof iteratorFn === 'function') {
  33412. var childrenIterator = iteratorFn.call(children);
  33413. if (childrenIterator) {
  33414. var step = childrenIterator.next();
  33415. var _i = 0;
  33416. for (; !step.done; step = childrenIterator.next()) {
  33417. if (!validateSuspenseListNestedChild(step.value, _i)) {
  33418. return;
  33419. }
  33420. _i++;
  33421. }
  33422. }
  33423. } else {
  33424. warning$1(false, 'A single row was passed to a <SuspenseList revealOrder="%s" />. ' + 'This is not useful since it needs multiple rows. ' + 'Did you mean to pass multiple children or an array?', revealOrder);
  33425. }
  33426. }
  33427. }
  33428. }
  33429. }
  33430. function initSuspenseListRenderState(workInProgress, isBackwards, tail, lastContentRow, tailMode) {
  33431. var renderState = workInProgress.memoizedState;
  33432. if (renderState === null) {
  33433. workInProgress.memoizedState = {
  33434. isBackwards: isBackwards,
  33435. rendering: null,
  33436. last: lastContentRow,
  33437. tail: tail,
  33438. tailExpiration: 0,
  33439. tailMode: tailMode
  33440. };
  33441. } else {
  33442. // We can reuse the existing object from previous renders.
  33443. renderState.isBackwards = isBackwards;
  33444. renderState.rendering = null;
  33445. renderState.last = lastContentRow;
  33446. renderState.tail = tail;
  33447. renderState.tailExpiration = 0;
  33448. renderState.tailMode = tailMode;
  33449. }
  33450. }
  33451. // This can end up rendering this component multiple passes.
  33452. // The first pass splits the children fibers into two sets. A head and tail.
  33453. // We first render the head. If anything is in fallback state, we do another
  33454. // pass through beginWork to rerender all children (including the tail) with
  33455. // the force suspend context. If the first render didn't have anything in
  33456. // in fallback state. Then we render each row in the tail one-by-one.
  33457. // That happens in the completeWork phase without going back to beginWork.
  33458. function updateSuspenseListComponent(current$$1, workInProgress, renderExpirationTime) {
  33459. var nextProps = workInProgress.pendingProps;
  33460. var revealOrder = nextProps.revealOrder;
  33461. var tailMode = nextProps.tail;
  33462. var newChildren = nextProps.children;
  33463. validateRevealOrder(revealOrder);
  33464. validateTailOptions(tailMode, revealOrder);
  33465. validateSuspenseListChildren(newChildren, revealOrder);
  33466. reconcileChildren(current$$1, workInProgress, newChildren, renderExpirationTime);
  33467. var suspenseContext = suspenseStackCursor.current;
  33468. var shouldForceFallback = hasSuspenseContext(suspenseContext, ForceSuspenseFallback);
  33469. if (shouldForceFallback) {
  33470. suspenseContext = setShallowSuspenseContext(suspenseContext, ForceSuspenseFallback);
  33471. workInProgress.effectTag |= DidCapture;
  33472. } else {
  33473. var didSuspendBefore = current$$1 !== null && (current$$1.effectTag & DidCapture) !== NoEffect;
  33474. if (didSuspendBefore) {
  33475. // If we previously forced a fallback, we need to schedule work
  33476. // on any nested boundaries to let them know to try to render
  33477. // again. This is the same as context updating.
  33478. propagateSuspenseContextChange(workInProgress, workInProgress.child, renderExpirationTime);
  33479. }
  33480. suspenseContext = setDefaultShallowSuspenseContext(suspenseContext);
  33481. }
  33482. pushSuspenseContext(workInProgress, suspenseContext);
  33483. if ((workInProgress.mode & BatchedMode) === NoMode) {
  33484. // Outside of batched mode, SuspenseList doesn't work so we just
  33485. // use make it a noop by treating it as the default revealOrder.
  33486. workInProgress.memoizedState = null;
  33487. } else {
  33488. switch (revealOrder) {
  33489. case 'forwards':
  33490. {
  33491. var lastContentRow = findLastContentRow(workInProgress.child);
  33492. var tail = void 0;
  33493. if (lastContentRow === null) {
  33494. // The whole list is part of the tail.
  33495. // TODO: We could fast path by just rendering the tail now.
  33496. tail = workInProgress.child;
  33497. workInProgress.child = null;
  33498. } else {
  33499. // Disconnect the tail rows after the content row.
  33500. // We're going to render them separately later.
  33501. tail = lastContentRow.sibling;
  33502. lastContentRow.sibling = null;
  33503. }
  33504. initSuspenseListRenderState(workInProgress, false, // isBackwards
  33505. tail, lastContentRow, tailMode);
  33506. break;
  33507. }
  33508. case 'backwards':
  33509. {
  33510. // We're going to find the first row that has existing content.
  33511. // At the same time we're going to reverse the list of everything
  33512. // we pass in the meantime. That's going to be our tail in reverse
  33513. // order.
  33514. var _tail = null;
  33515. var row = workInProgress.child;
  33516. workInProgress.child = null;
  33517. while (row !== null) {
  33518. var currentRow = row.alternate;
  33519. // New rows can't be content rows.
  33520. if (currentRow !== null && findFirstSuspended(currentRow) === null) {
  33521. // This is the beginning of the main content.
  33522. workInProgress.child = row;
  33523. break;
  33524. }
  33525. var nextRow = row.sibling;
  33526. row.sibling = _tail;
  33527. _tail = row;
  33528. row = nextRow;
  33529. }
  33530. // TODO: If workInProgress.child is null, we can continue on the tail immediately.
  33531. initSuspenseListRenderState(workInProgress, true, // isBackwards
  33532. _tail, null, // last
  33533. tailMode);
  33534. break;
  33535. }
  33536. case 'together':
  33537. {
  33538. initSuspenseListRenderState(workInProgress, false, // isBackwards
  33539. null, // tail
  33540. null, // last
  33541. undefined);
  33542. break;
  33543. }
  33544. default:
  33545. {
  33546. // The default reveal order is the same as not having
  33547. // a boundary.
  33548. workInProgress.memoizedState = null;
  33549. }
  33550. }
  33551. }
  33552. return workInProgress.child;
  33553. }
  33554. function updatePortalComponent(current$$1, workInProgress, renderExpirationTime) {
  33555. pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo);
  33556. var nextChildren = workInProgress.pendingProps;
  33557. if (current$$1 === null) {
  33558. // Portals are special because we don't append the children during mount
  33559. // but at commit. Therefore we need to track insertions which the normal
  33560. // flow doesn't do during mount. This doesn't happen at the root because
  33561. // the root always starts with a "current" with a null child.
  33562. // TODO: Consider unifying this with how the root works.
  33563. workInProgress.child = reconcileChildFibers(workInProgress, null, nextChildren, renderExpirationTime);
  33564. } else {
  33565. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  33566. }
  33567. return workInProgress.child;
  33568. }
  33569. function updateContextProvider(current$$1, workInProgress, renderExpirationTime) {
  33570. var providerType = workInProgress.type;
  33571. var context = providerType._context;
  33572. var newProps = workInProgress.pendingProps;
  33573. var oldProps = workInProgress.memoizedProps;
  33574. var newValue = newProps.value;
  33575. {
  33576. var providerPropTypes = workInProgress.type.propTypes;
  33577. if (providerPropTypes) {
  33578. checkPropTypes(providerPropTypes, newProps, 'prop', 'Context.Provider', getCurrentFiberStackInDev);
  33579. }
  33580. }
  33581. pushProvider(workInProgress, newValue);
  33582. if (oldProps !== null) {
  33583. var oldValue = oldProps.value;
  33584. var changedBits = calculateChangedBits(context, newValue, oldValue);
  33585. if (changedBits === 0) {
  33586. // No change. Bailout early if children are the same.
  33587. if (oldProps.children === newProps.children && !hasContextChanged()) {
  33588. return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
  33589. }
  33590. } else {
  33591. // The context value changed. Search for matching consumers and schedule
  33592. // them to update.
  33593. propagateContextChange(workInProgress, context, changedBits, renderExpirationTime);
  33594. }
  33595. }
  33596. var newChildren = newProps.children;
  33597. reconcileChildren(current$$1, workInProgress, newChildren, renderExpirationTime);
  33598. return workInProgress.child;
  33599. }
  33600. var hasWarnedAboutUsingContextAsConsumer = false;
  33601. function updateContextConsumer(current$$1, workInProgress, renderExpirationTime) {
  33602. var context = workInProgress.type;
  33603. // The logic below for Context differs depending on PROD or DEV mode. In
  33604. // DEV mode, we create a separate object for Context.Consumer that acts
  33605. // like a proxy to Context. This proxy object adds unnecessary code in PROD
  33606. // so we use the old behaviour (Context.Consumer references Context) to
  33607. // reduce size and overhead. The separate object references context via
  33608. // a property called "_context", which also gives us the ability to check
  33609. // in DEV mode if this property exists or not and warn if it does not.
  33610. {
  33611. if (context._context === undefined) {
  33612. // This may be because it's a Context (rather than a Consumer).
  33613. // Or it may be because it's older React where they're the same thing.
  33614. // We only want to warn if we're sure it's a new React.
  33615. if (context !== context.Consumer) {
  33616. if (!hasWarnedAboutUsingContextAsConsumer) {
  33617. hasWarnedAboutUsingContextAsConsumer = true;
  33618. warning$1(false, 'Rendering <Context> directly is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Consumer> instead?');
  33619. }
  33620. }
  33621. } else {
  33622. context = context._context;
  33623. }
  33624. }
  33625. var newProps = workInProgress.pendingProps;
  33626. var render = newProps.children;
  33627. {
  33628. !(typeof render === 'function') ? warningWithoutStack$1(false, 'A context consumer was rendered with multiple children, or a child ' + "that isn't a function. A context consumer expects a single child " + 'that is a function. If you did pass a function, make sure there ' + 'is no trailing or leading whitespace around it.') : void 0;
  33629. }
  33630. prepareToReadContext(workInProgress, renderExpirationTime);
  33631. var newValue = readContext(context, newProps.unstable_observedBits);
  33632. var newChildren = void 0;
  33633. {
  33634. ReactCurrentOwner$3.current = workInProgress;
  33635. setCurrentPhase('render');
  33636. newChildren = render(newValue);
  33637. setCurrentPhase(null);
  33638. }
  33639. // React DevTools reads this flag.
  33640. workInProgress.effectTag |= PerformedWork;
  33641. reconcileChildren(current$$1, workInProgress, newChildren, renderExpirationTime);
  33642. return workInProgress.child;
  33643. }
  33644. function updateFundamentalComponent$1(current$$1, workInProgress, renderExpirationTime) {
  33645. var fundamentalImpl = workInProgress.type.impl;
  33646. if (fundamentalImpl.reconcileChildren === false) {
  33647. return null;
  33648. }
  33649. var nextProps = workInProgress.pendingProps;
  33650. var nextChildren = nextProps.children;
  33651. reconcileChildren(current$$1, workInProgress, nextChildren, renderExpirationTime);
  33652. return workInProgress.child;
  33653. }
  33654. function markWorkInProgressReceivedUpdate() {
  33655. didReceiveUpdate = true;
  33656. }
  33657. function bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime) {
  33658. cancelWorkTimer(workInProgress);
  33659. if (current$$1 !== null) {
  33660. // Reuse previous dependencies
  33661. workInProgress.dependencies = current$$1.dependencies;
  33662. }
  33663. if (enableProfilerTimer) {
  33664. // Don't update "base" render times for bailouts.
  33665. stopProfilerTimerIfRunning(workInProgress);
  33666. }
  33667. // Check if the children have any pending work.
  33668. var childExpirationTime = workInProgress.childExpirationTime;
  33669. if (childExpirationTime < renderExpirationTime) {
  33670. // The children don't have any work either. We can skip them.
  33671. // TODO: Once we add back resuming, we should check if the children are
  33672. // a work-in-progress set. If so, we need to transfer their effects.
  33673. return null;
  33674. } else {
  33675. // This fiber doesn't have work, but its subtree does. Clone the child
  33676. // fibers and continue.
  33677. cloneChildFibers(current$$1, workInProgress);
  33678. return workInProgress.child;
  33679. }
  33680. }
  33681. function remountFiber(current$$1, oldWorkInProgress, newWorkInProgress) {
  33682. {
  33683. var returnFiber = oldWorkInProgress.return;
  33684. if (returnFiber === null) {
  33685. throw new Error('Cannot swap the root fiber.');
  33686. }
  33687. // Disconnect from the old current.
  33688. // It will get deleted.
  33689. current$$1.alternate = null;
  33690. oldWorkInProgress.alternate = null;
  33691. // Connect to the new tree.
  33692. newWorkInProgress.index = oldWorkInProgress.index;
  33693. newWorkInProgress.sibling = oldWorkInProgress.sibling;
  33694. newWorkInProgress.return = oldWorkInProgress.return;
  33695. newWorkInProgress.ref = oldWorkInProgress.ref;
  33696. // Replace the child/sibling pointers above it.
  33697. if (oldWorkInProgress === returnFiber.child) {
  33698. returnFiber.child = newWorkInProgress;
  33699. } else {
  33700. var prevSibling = returnFiber.child;
  33701. if (prevSibling === null) {
  33702. throw new Error('Expected parent to have a child.');
  33703. }
  33704. while (prevSibling.sibling !== oldWorkInProgress) {
  33705. prevSibling = prevSibling.sibling;
  33706. if (prevSibling === null) {
  33707. throw new Error('Expected to find the previous sibling.');
  33708. }
  33709. }
  33710. prevSibling.sibling = newWorkInProgress;
  33711. }
  33712. // Delete the old fiber and place the new one.
  33713. // Since the old fiber is disconnected, we have to schedule it manually.
  33714. var last = returnFiber.lastEffect;
  33715. if (last !== null) {
  33716. last.nextEffect = current$$1;
  33717. returnFiber.lastEffect = current$$1;
  33718. } else {
  33719. returnFiber.firstEffect = returnFiber.lastEffect = current$$1;
  33720. }
  33721. current$$1.nextEffect = null;
  33722. current$$1.effectTag = Deletion;
  33723. newWorkInProgress.effectTag |= Placement;
  33724. // Restart work from the new fiber.
  33725. return newWorkInProgress;
  33726. }
  33727. }
  33728. function beginWork$1(current$$1, workInProgress, renderExpirationTime) {
  33729. var updateExpirationTime = workInProgress.expirationTime;
  33730. {
  33731. if (workInProgress._debugNeedsRemount && current$$1 !== null) {
  33732. // This will restart the begin phase with a new fiber.
  33733. return remountFiber(current$$1, workInProgress, createFiberFromTypeAndProps(workInProgress.type, workInProgress.key, workInProgress.pendingProps, workInProgress._debugOwner || null, workInProgress.mode, workInProgress.expirationTime));
  33734. }
  33735. }
  33736. if (current$$1 !== null) {
  33737. var oldProps = current$$1.memoizedProps;
  33738. var newProps = workInProgress.pendingProps;
  33739. if (oldProps !== newProps || hasContextChanged() || (
  33740. // Force a re-render if the implementation changed due to hot reload:
  33741. workInProgress.type !== current$$1.type)) {
  33742. // If props or context changed, mark the fiber as having performed work.
  33743. // This may be unset if the props are determined to be equal later (memo).
  33744. didReceiveUpdate = true;
  33745. } else if (updateExpirationTime < renderExpirationTime) {
  33746. didReceiveUpdate = false;
  33747. // This fiber does not have any pending work. Bailout without entering
  33748. // the begin phase. There's still some bookkeeping we that needs to be done
  33749. // in this optimized path, mostly pushing stuff onto the stack.
  33750. switch (workInProgress.tag) {
  33751. case HostRoot:
  33752. pushHostRootContext(workInProgress);
  33753. resetHydrationState();
  33754. break;
  33755. case HostComponent:
  33756. pushHostContext(workInProgress);
  33757. if (workInProgress.mode & ConcurrentMode && renderExpirationTime !== Never && shouldDeprioritizeSubtree(workInProgress.type, newProps)) {
  33758. if (enableSchedulerTracing) {
  33759. markSpawnedWork(Never);
  33760. }
  33761. // Schedule this fiber to re-render at offscreen priority. Then bailout.
  33762. workInProgress.expirationTime = workInProgress.childExpirationTime = Never;
  33763. return null;
  33764. }
  33765. break;
  33766. case ClassComponent:
  33767. {
  33768. var Component = workInProgress.type;
  33769. if (isContextProvider(Component)) {
  33770. pushContextProvider(workInProgress);
  33771. }
  33772. break;
  33773. }
  33774. case HostPortal:
  33775. pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo);
  33776. break;
  33777. case ContextProvider:
  33778. {
  33779. var newValue = workInProgress.memoizedProps.value;
  33780. pushProvider(workInProgress, newValue);
  33781. break;
  33782. }
  33783. case Profiler:
  33784. if (enableProfilerTimer) {
  33785. workInProgress.effectTag |= Update;
  33786. }
  33787. break;
  33788. case SuspenseComponent:
  33789. {
  33790. var state = workInProgress.memoizedState;
  33791. var didTimeout = state !== null;
  33792. if (didTimeout) {
  33793. // If this boundary is currently timed out, we need to decide
  33794. // whether to retry the primary children, or to skip over it and
  33795. // go straight to the fallback. Check the priority of the primary
  33796. var primaryChildFragment = workInProgress.child;
  33797. var primaryChildExpirationTime = primaryChildFragment.childExpirationTime;
  33798. if (primaryChildExpirationTime !== NoWork && primaryChildExpirationTime >= renderExpirationTime) {
  33799. // The primary children have pending work. Use the normal path
  33800. // to attempt to render the primary children again.
  33801. return updateSuspenseComponent(current$$1, workInProgress, renderExpirationTime);
  33802. } else {
  33803. pushSuspenseContext(workInProgress, setDefaultShallowSuspenseContext(suspenseStackCursor.current));
  33804. // The primary children do not have pending work with sufficient
  33805. // priority. Bailout.
  33806. var child = bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
  33807. if (child !== null) {
  33808. // The fallback children have pending work. Skip over the
  33809. // primary children and work on the fallback.
  33810. return child.sibling;
  33811. } else {
  33812. return null;
  33813. }
  33814. }
  33815. } else {
  33816. pushSuspenseContext(workInProgress, setDefaultShallowSuspenseContext(suspenseStackCursor.current));
  33817. }
  33818. break;
  33819. }
  33820. case DehydratedSuspenseComponent:
  33821. {
  33822. if (enableSuspenseServerRenderer) {
  33823. pushSuspenseContext(workInProgress, setDefaultShallowSuspenseContext(suspenseStackCursor.current));
  33824. // We know that this component will suspend again because if it has
  33825. // been unsuspended it has committed as a regular Suspense component.
  33826. // If it needs to be retried, it should have work scheduled on it.
  33827. workInProgress.effectTag |= DidCapture;
  33828. }
  33829. break;
  33830. }
  33831. case SuspenseListComponent:
  33832. {
  33833. var didSuspendBefore = (current$$1.effectTag & DidCapture) !== NoEffect;
  33834. var hasChildWork = workInProgress.childExpirationTime >= renderExpirationTime;
  33835. if (didSuspendBefore) {
  33836. if (hasChildWork) {
  33837. // If something was in fallback state last time, and we have all the
  33838. // same children then we're still in progressive loading state.
  33839. // Something might get unblocked by state updates or retries in the
  33840. // tree which will affect the tail. So we need to use the normal
  33841. // path to compute the correct tail.
  33842. return updateSuspenseListComponent(current$$1, workInProgress, renderExpirationTime);
  33843. }
  33844. // If none of the children had any work, that means that none of
  33845. // them got retried so they'll still be blocked in the same way
  33846. // as before. We can fast bail out.
  33847. workInProgress.effectTag |= DidCapture;
  33848. }
  33849. // If nothing suspended before and we're rendering the same children,
  33850. // then the tail doesn't matter. Anything new that suspends will work
  33851. // in the "together" mode, so we can continue from the state we had.
  33852. var renderState = workInProgress.memoizedState;
  33853. if (renderState !== null) {
  33854. // Reset to the "together" mode in case we've started a different
  33855. // update in the past but didn't complete it.
  33856. renderState.rendering = null;
  33857. renderState.tail = null;
  33858. }
  33859. pushSuspenseContext(workInProgress, suspenseStackCursor.current);
  33860. if (hasChildWork) {
  33861. break;
  33862. } else {
  33863. // If none of the children had any work, that means that none of
  33864. // them got retried so they'll still be blocked in the same way
  33865. // as before. We can fast bail out.
  33866. return null;
  33867. }
  33868. }
  33869. }
  33870. return bailoutOnAlreadyFinishedWork(current$$1, workInProgress, renderExpirationTime);
  33871. }
  33872. } else {
  33873. didReceiveUpdate = false;
  33874. }
  33875. // Before entering the begin phase, clear the expiration time.
  33876. workInProgress.expirationTime = NoWork;
  33877. switch (workInProgress.tag) {
  33878. case IndeterminateComponent:
  33879. {
  33880. return mountIndeterminateComponent(current$$1, workInProgress, workInProgress.type, renderExpirationTime);
  33881. }
  33882. case LazyComponent:
  33883. {
  33884. var elementType = workInProgress.elementType;
  33885. return mountLazyComponent(current$$1, workInProgress, elementType, updateExpirationTime, renderExpirationTime);
  33886. }
  33887. case FunctionComponent:
  33888. {
  33889. var _Component = workInProgress.type;
  33890. var unresolvedProps = workInProgress.pendingProps;
  33891. var resolvedProps = workInProgress.elementType === _Component ? unresolvedProps : resolveDefaultProps(_Component, unresolvedProps);
  33892. return updateFunctionComponent(current$$1, workInProgress, _Component, resolvedProps, renderExpirationTime);
  33893. }
  33894. case ClassComponent:
  33895. {
  33896. var _Component2 = workInProgress.type;
  33897. var _unresolvedProps = workInProgress.pendingProps;
  33898. var _resolvedProps = workInProgress.elementType === _Component2 ? _unresolvedProps : resolveDefaultProps(_Component2, _unresolvedProps);
  33899. return updateClassComponent(current$$1, workInProgress, _Component2, _resolvedProps, renderExpirationTime);
  33900. }
  33901. case HostRoot:
  33902. return updateHostRoot(current$$1, workInProgress, renderExpirationTime);
  33903. case HostComponent:
  33904. return updateHostComponent(current$$1, workInProgress, renderExpirationTime);
  33905. case HostText:
  33906. return updateHostText(current$$1, workInProgress);
  33907. case SuspenseComponent:
  33908. return updateSuspenseComponent(current$$1, workInProgress, renderExpirationTime);
  33909. case HostPortal:
  33910. return updatePortalComponent(current$$1, workInProgress, renderExpirationTime);
  33911. case ForwardRef:
  33912. {
  33913. var type = workInProgress.type;
  33914. var _unresolvedProps2 = workInProgress.pendingProps;
  33915. var _resolvedProps2 = workInProgress.elementType === type ? _unresolvedProps2 : resolveDefaultProps(type, _unresolvedProps2);
  33916. return updateForwardRef(current$$1, workInProgress, type, _resolvedProps2, renderExpirationTime);
  33917. }
  33918. case Fragment:
  33919. return updateFragment(current$$1, workInProgress, renderExpirationTime);
  33920. case Mode:
  33921. return updateMode(current$$1, workInProgress, renderExpirationTime);
  33922. case Profiler:
  33923. return updateProfiler(current$$1, workInProgress, renderExpirationTime);
  33924. case ContextProvider:
  33925. return updateContextProvider(current$$1, workInProgress, renderExpirationTime);
  33926. case ContextConsumer:
  33927. return updateContextConsumer(current$$1, workInProgress, renderExpirationTime);
  33928. case MemoComponent:
  33929. {
  33930. var _type2 = workInProgress.type;
  33931. var _unresolvedProps3 = workInProgress.pendingProps;
  33932. // Resolve outer props first, then resolve inner props.
  33933. var _resolvedProps3 = resolveDefaultProps(_type2, _unresolvedProps3);
  33934. {
  33935. if (workInProgress.type !== workInProgress.elementType) {
  33936. var outerPropTypes = _type2.propTypes;
  33937. if (outerPropTypes) {
  33938. checkPropTypes(outerPropTypes, _resolvedProps3, // Resolved for outer only
  33939. 'prop', getComponentName(_type2), getCurrentFiberStackInDev);
  33940. }
  33941. }
  33942. }
  33943. _resolvedProps3 = resolveDefaultProps(_type2.type, _resolvedProps3);
  33944. return updateMemoComponent(current$$1, workInProgress, _type2, _resolvedProps3, updateExpirationTime, renderExpirationTime);
  33945. }
  33946. case SimpleMemoComponent:
  33947. {
  33948. return updateSimpleMemoComponent(current$$1, workInProgress, workInProgress.type, workInProgress.pendingProps, updateExpirationTime, renderExpirationTime);
  33949. }
  33950. case IncompleteClassComponent:
  33951. {
  33952. var _Component3 = workInProgress.type;
  33953. var _unresolvedProps4 = workInProgress.pendingProps;
  33954. var _resolvedProps4 = workInProgress.elementType === _Component3 ? _unresolvedProps4 : resolveDefaultProps(_Component3, _unresolvedProps4);
  33955. return mountIncompleteClassComponent(current$$1, workInProgress, _Component3, _resolvedProps4, renderExpirationTime);
  33956. }
  33957. case DehydratedSuspenseComponent:
  33958. {
  33959. if (enableSuspenseServerRenderer) {
  33960. return updateDehydratedSuspenseComponent(current$$1, workInProgress, renderExpirationTime);
  33961. }
  33962. break;
  33963. }
  33964. case SuspenseListComponent:
  33965. {
  33966. return updateSuspenseListComponent(current$$1, workInProgress, renderExpirationTime);
  33967. }
  33968. case FundamentalComponent:
  33969. {
  33970. if (enableFundamentalAPI) {
  33971. return updateFundamentalComponent$1(current$$1, workInProgress, renderExpirationTime);
  33972. }
  33973. break;
  33974. }
  33975. }
  33976. (function () {
  33977. {
  33978. {
  33979. throw ReactError(Error('Unknown unit of work tag. This error is likely caused by a bug in React. Please file an issue.'));
  33980. }
  33981. }
  33982. })();
  33983. }
  33984. function createFundamentalStateInstance(currentFiber, props, impl, state) {
  33985. return {
  33986. currentFiber: currentFiber,
  33987. impl: impl,
  33988. instance: null,
  33989. prevProps: null,
  33990. props: props,
  33991. state: state
  33992. };
  33993. }
  33994. var emptyObject = {};
  33995. var isArray$2 = Array.isArray;
  33996. function markUpdate(workInProgress) {
  33997. // Tag the fiber with an update effect. This turns a Placement into
  33998. // a PlacementAndUpdate.
  33999. workInProgress.effectTag |= Update;
  34000. }
  34001. function markRef$1(workInProgress) {
  34002. workInProgress.effectTag |= Ref;
  34003. }
  34004. var appendAllChildren = void 0;
  34005. var updateHostContainer = void 0;
  34006. var updateHostComponent$1 = void 0;
  34007. var updateHostText$1 = void 0;
  34008. if (supportsMutation) {
  34009. // Mutation mode
  34010. appendAllChildren = function (parent, workInProgress, needsVisibilityToggle, isHidden) {
  34011. // We only have the top Fiber that was created but we need recurse down its
  34012. // children to find all the terminal nodes.
  34013. var node = workInProgress.child;
  34014. while (node !== null) {
  34015. if (node.tag === HostComponent || node.tag === HostText) {
  34016. appendInitialChild(parent, node.stateNode);
  34017. } else if (node.tag === FundamentalComponent) {
  34018. appendInitialChild(parent, node.stateNode.instance);
  34019. } else if (node.tag === HostPortal) {
  34020. // If we have a portal child, then we don't want to traverse
  34021. // down its children. Instead, we'll get insertions from each child in
  34022. // the portal directly.
  34023. } else if (node.child !== null) {
  34024. node.child.return = node;
  34025. node = node.child;
  34026. continue;
  34027. }
  34028. if (node === workInProgress) {
  34029. return;
  34030. }
  34031. while (node.sibling === null) {
  34032. if (node.return === null || node.return === workInProgress) {
  34033. return;
  34034. }
  34035. node = node.return;
  34036. }
  34037. node.sibling.return = node.return;
  34038. node = node.sibling;
  34039. }
  34040. };
  34041. updateHostContainer = function (workInProgress) {
  34042. // Noop
  34043. };
  34044. updateHostComponent$1 = function (current, workInProgress, type, newProps, rootContainerInstance) {
  34045. // If we have an alternate, that means this is an update and we need to
  34046. // schedule a side-effect to do the updates.
  34047. var oldProps = current.memoizedProps;
  34048. if (oldProps === newProps) {
  34049. // In mutation mode, this is sufficient for a bailout because
  34050. // we won't touch this node even if children changed.
  34051. return;
  34052. }
  34053. // If we get updated because one of our children updated, we don't
  34054. // have newProps so we'll have to reuse them.
  34055. // TODO: Split the update API as separate for the props vs. children.
  34056. // Even better would be if children weren't special cased at all tho.
  34057. var instance = workInProgress.stateNode;
  34058. var currentHostContext = getHostContext();
  34059. // TODO: Experiencing an error where oldProps is null. Suggests a host
  34060. // component is hitting the resume path. Figure out why. Possibly
  34061. // related to `hidden`.
  34062. var updatePayload = prepareUpdate(instance, type, oldProps, newProps, rootContainerInstance, currentHostContext);
  34063. // TODO: Type this specific to this type of component.
  34064. workInProgress.updateQueue = updatePayload;
  34065. // If the update payload indicates that there is a change or if there
  34066. // is a new ref we mark this as an update. All the work is done in commitWork.
  34067. if (updatePayload) {
  34068. markUpdate(workInProgress);
  34069. }
  34070. };
  34071. updateHostText$1 = function (current, workInProgress, oldText, newText) {
  34072. // If the text differs, mark it as an update. All the work in done in commitWork.
  34073. if (oldText !== newText) {
  34074. markUpdate(workInProgress);
  34075. }
  34076. };
  34077. } else if (supportsPersistence) {
  34078. // Persistent host tree mode
  34079. appendAllChildren = function (parent, workInProgress, needsVisibilityToggle, isHidden) {
  34080. // We only have the top Fiber that was created but we need recurse down its
  34081. // children to find all the terminal nodes.
  34082. var node = workInProgress.child;
  34083. while (node !== null) {
  34084. // eslint-disable-next-line no-labels
  34085. branches: if (node.tag === HostComponent) {
  34086. var instance = node.stateNode;
  34087. if (needsVisibilityToggle && isHidden) {
  34088. // This child is inside a timed out tree. Hide it.
  34089. var props = node.memoizedProps;
  34090. var type = node.type;
  34091. instance = cloneHiddenInstance(instance, type, props, node);
  34092. }
  34093. appendInitialChild(parent, instance);
  34094. } else if (node.tag === HostText) {
  34095. var _instance = node.stateNode;
  34096. if (needsVisibilityToggle && isHidden) {
  34097. // This child is inside a timed out tree. Hide it.
  34098. var text = node.memoizedProps;
  34099. _instance = cloneHiddenTextInstance(_instance, text, node);
  34100. }
  34101. appendInitialChild(parent, _instance);
  34102. } else if (enableFundamentalAPI && node.tag === FundamentalComponent) {
  34103. var _instance2 = node.stateNode.instance;
  34104. if (needsVisibilityToggle && isHidden) {
  34105. // This child is inside a timed out tree. Hide it.
  34106. var _props = node.memoizedProps;
  34107. var _type = node.type;
  34108. _instance2 = cloneHiddenInstance(_instance2, _type, _props, node);
  34109. }
  34110. appendInitialChild(parent, _instance2);
  34111. } else if (node.tag === HostPortal) {
  34112. // If we have a portal child, then we don't want to traverse
  34113. // down its children. Instead, we'll get insertions from each child in
  34114. // the portal directly.
  34115. } else if (node.tag === SuspenseComponent) {
  34116. if ((node.effectTag & Update) !== NoEffect) {
  34117. // Need to toggle the visibility of the primary children.
  34118. var newIsHidden = node.memoizedState !== null;
  34119. if (newIsHidden) {
  34120. var primaryChildParent = node.child;
  34121. if (primaryChildParent !== null) {
  34122. if (primaryChildParent.child !== null) {
  34123. primaryChildParent.child.return = primaryChildParent;
  34124. appendAllChildren(parent, primaryChildParent, true, newIsHidden);
  34125. }
  34126. var fallbackChildParent = primaryChildParent.sibling;
  34127. if (fallbackChildParent !== null) {
  34128. fallbackChildParent.return = node;
  34129. node = fallbackChildParent;
  34130. continue;
  34131. }
  34132. }
  34133. }
  34134. }
  34135. if (node.child !== null) {
  34136. // Continue traversing like normal
  34137. node.child.return = node;
  34138. node = node.child;
  34139. continue;
  34140. }
  34141. } else if (node.child !== null) {
  34142. node.child.return = node;
  34143. node = node.child;
  34144. continue;
  34145. }
  34146. // $FlowFixMe This is correct but Flow is confused by the labeled break.
  34147. node = node;
  34148. if (node === workInProgress) {
  34149. return;
  34150. }
  34151. while (node.sibling === null) {
  34152. if (node.return === null || node.return === workInProgress) {
  34153. return;
  34154. }
  34155. node = node.return;
  34156. }
  34157. node.sibling.return = node.return;
  34158. node = node.sibling;
  34159. }
  34160. };
  34161. // An unfortunate fork of appendAllChildren because we have two different parent types.
  34162. var appendAllChildrenToContainer = function (containerChildSet, workInProgress, needsVisibilityToggle, isHidden) {
  34163. // We only have the top Fiber that was created but we need recurse down its
  34164. // children to find all the terminal nodes.
  34165. var node = workInProgress.child;
  34166. while (node !== null) {
  34167. // eslint-disable-next-line no-labels
  34168. branches: if (node.tag === HostComponent) {
  34169. var instance = node.stateNode;
  34170. if (needsVisibilityToggle && isHidden) {
  34171. // This child is inside a timed out tree. Hide it.
  34172. var props = node.memoizedProps;
  34173. var type = node.type;
  34174. instance = cloneHiddenInstance(instance, type, props, node);
  34175. }
  34176. appendChildToContainerChildSet(containerChildSet, instance);
  34177. } else if (node.tag === HostText) {
  34178. var _instance3 = node.stateNode;
  34179. if (needsVisibilityToggle && isHidden) {
  34180. // This child is inside a timed out tree. Hide it.
  34181. var text = node.memoizedProps;
  34182. _instance3 = cloneHiddenTextInstance(_instance3, text, node);
  34183. }
  34184. appendChildToContainerChildSet(containerChildSet, _instance3);
  34185. } else if (enableFundamentalAPI && node.tag === FundamentalComponent) {
  34186. var _instance4 = node.stateNode.instance;
  34187. if (needsVisibilityToggle && isHidden) {
  34188. // This child is inside a timed out tree. Hide it.
  34189. var _props2 = node.memoizedProps;
  34190. var _type2 = node.type;
  34191. _instance4 = cloneHiddenInstance(_instance4, _type2, _props2, node);
  34192. }
  34193. appendChildToContainerChildSet(containerChildSet, _instance4);
  34194. } else if (node.tag === HostPortal) {
  34195. // If we have a portal child, then we don't want to traverse
  34196. // down its children. Instead, we'll get insertions from each child in
  34197. // the portal directly.
  34198. } else if (node.tag === SuspenseComponent) {
  34199. if ((node.effectTag & Update) !== NoEffect) {
  34200. // Need to toggle the visibility of the primary children.
  34201. var newIsHidden = node.memoizedState !== null;
  34202. if (newIsHidden) {
  34203. var primaryChildParent = node.child;
  34204. if (primaryChildParent !== null) {
  34205. if (primaryChildParent.child !== null) {
  34206. primaryChildParent.child.return = primaryChildParent;
  34207. appendAllChildrenToContainer(containerChildSet, primaryChildParent, true, newIsHidden);
  34208. }
  34209. var fallbackChildParent = primaryChildParent.sibling;
  34210. if (fallbackChildParent !== null) {
  34211. fallbackChildParent.return = node;
  34212. node = fallbackChildParent;
  34213. continue;
  34214. }
  34215. }
  34216. }
  34217. }
  34218. if (node.child !== null) {
  34219. // Continue traversing like normal
  34220. node.child.return = node;
  34221. node = node.child;
  34222. continue;
  34223. }
  34224. } else if (node.child !== null) {
  34225. node.child.return = node;
  34226. node = node.child;
  34227. continue;
  34228. }
  34229. // $FlowFixMe This is correct but Flow is confused by the labeled break.
  34230. node = node;
  34231. if (node === workInProgress) {
  34232. return;
  34233. }
  34234. while (node.sibling === null) {
  34235. if (node.return === null || node.return === workInProgress) {
  34236. return;
  34237. }
  34238. node = node.return;
  34239. }
  34240. node.sibling.return = node.return;
  34241. node = node.sibling;
  34242. }
  34243. };
  34244. updateHostContainer = function (workInProgress) {
  34245. var portalOrRoot = workInProgress.stateNode;
  34246. var childrenUnchanged = workInProgress.firstEffect === null;
  34247. if (childrenUnchanged) {
  34248. // No changes, just reuse the existing instance.
  34249. } else {
  34250. var container = portalOrRoot.containerInfo;
  34251. var newChildSet = createContainerChildSet(container);
  34252. // If children might have changed, we have to add them all to the set.
  34253. appendAllChildrenToContainer(newChildSet, workInProgress, false, false);
  34254. portalOrRoot.pendingChildren = newChildSet;
  34255. // Schedule an update on the container to swap out the container.
  34256. markUpdate(workInProgress);
  34257. finalizeContainerChildren(container, newChildSet);
  34258. }
  34259. };
  34260. updateHostComponent$1 = function (current, workInProgress, type, newProps, rootContainerInstance) {
  34261. var currentInstance = current.stateNode;
  34262. var oldProps = current.memoizedProps;
  34263. // If there are no effects associated with this node, then none of our children had any updates.
  34264. // This guarantees that we can reuse all of them.
  34265. var childrenUnchanged = workInProgress.firstEffect === null;
  34266. if (childrenUnchanged && oldProps === newProps) {
  34267. // No changes, just reuse the existing instance.
  34268. // Note that this might release a previous clone.
  34269. workInProgress.stateNode = currentInstance;
  34270. return;
  34271. }
  34272. var recyclableInstance = workInProgress.stateNode;
  34273. var currentHostContext = getHostContext();
  34274. var updatePayload = null;
  34275. if (oldProps !== newProps) {
  34276. updatePayload = prepareUpdate(recyclableInstance, type, oldProps, newProps, rootContainerInstance, currentHostContext);
  34277. }
  34278. if (childrenUnchanged && updatePayload === null) {
  34279. // No changes, just reuse the existing instance.
  34280. // Note that this might release a previous clone.
  34281. workInProgress.stateNode = currentInstance;
  34282. return;
  34283. }
  34284. var newInstance = cloneInstance(currentInstance, updatePayload, type, oldProps, newProps, workInProgress, childrenUnchanged, recyclableInstance);
  34285. if (finalizeInitialChildren(newInstance, type, newProps, rootContainerInstance, currentHostContext)) {
  34286. markUpdate(workInProgress);
  34287. }
  34288. workInProgress.stateNode = newInstance;
  34289. if (childrenUnchanged) {
  34290. // If there are no other effects in this tree, we need to flag this node as having one.
  34291. // Even though we're not going to use it for anything.
  34292. // Otherwise parents won't know that there are new children to propagate upwards.
  34293. markUpdate(workInProgress);
  34294. } else {
  34295. // If children might have changed, we have to add them all to the set.
  34296. appendAllChildren(newInstance, workInProgress, false, false);
  34297. }
  34298. };
  34299. updateHostText$1 = function (current, workInProgress, oldText, newText) {
  34300. if (oldText !== newText) {
  34301. // If the text content differs, we'll create a new text instance for it.
  34302. var rootContainerInstance = getRootHostContainer();
  34303. var currentHostContext = getHostContext();
  34304. workInProgress.stateNode = createTextInstance(newText, rootContainerInstance, currentHostContext, workInProgress);
  34305. // We'll have to mark it as having an effect, even though we won't use the effect for anything.
  34306. // This lets the parents know that at least one of their children has changed.
  34307. markUpdate(workInProgress);
  34308. }
  34309. };
  34310. } else {
  34311. // No host operations
  34312. updateHostContainer = function (workInProgress) {
  34313. // Noop
  34314. };
  34315. updateHostComponent$1 = function (current, workInProgress, type, newProps, rootContainerInstance) {
  34316. // Noop
  34317. };
  34318. updateHostText$1 = function (current, workInProgress, oldText, newText) {
  34319. // Noop
  34320. };
  34321. }
  34322. function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {
  34323. switch (renderState.tailMode) {
  34324. case 'hidden':
  34325. {
  34326. // Any insertions at the end of the tail list after this point
  34327. // should be invisible. If there are already mounted boundaries
  34328. // anything before them are not considered for collapsing.
  34329. // Therefore we need to go through the whole tail to find if
  34330. // there are any.
  34331. var tailNode = renderState.tail;
  34332. var lastTailNode = null;
  34333. while (tailNode !== null) {
  34334. if (tailNode.alternate !== null) {
  34335. lastTailNode = tailNode;
  34336. }
  34337. tailNode = tailNode.sibling;
  34338. }
  34339. // Next we're simply going to delete all insertions after the
  34340. // last rendered item.
  34341. if (lastTailNode === null) {
  34342. // All remaining items in the tail are insertions.
  34343. renderState.tail = null;
  34344. } else {
  34345. // Detach the insertion after the last node that was already
  34346. // inserted.
  34347. lastTailNode.sibling = null;
  34348. }
  34349. break;
  34350. }
  34351. case 'collapsed':
  34352. {
  34353. // Any insertions at the end of the tail list after this point
  34354. // should be invisible. If there are already mounted boundaries
  34355. // anything before them are not considered for collapsing.
  34356. // Therefore we need to go through the whole tail to find if
  34357. // there are any.
  34358. var _tailNode = renderState.tail;
  34359. var _lastTailNode = null;
  34360. while (_tailNode !== null) {
  34361. if (_tailNode.alternate !== null) {
  34362. _lastTailNode = _tailNode;
  34363. }
  34364. _tailNode = _tailNode.sibling;
  34365. }
  34366. // Next we're simply going to delete all insertions after the
  34367. // last rendered item.
  34368. if (_lastTailNode === null) {
  34369. // All remaining items in the tail are insertions.
  34370. if (!hasRenderedATailFallback && renderState.tail !== null) {
  34371. // We suspended during the head. We want to show at least one
  34372. // row at the tail. So we'll keep on and cut off the rest.
  34373. renderState.tail.sibling = null;
  34374. } else {
  34375. renderState.tail = null;
  34376. }
  34377. } else {
  34378. // Detach the insertion after the last node that was already
  34379. // inserted.
  34380. _lastTailNode.sibling = null;
  34381. }
  34382. break;
  34383. }
  34384. }
  34385. }
  34386. function completeWork(current, workInProgress, renderExpirationTime) {
  34387. var newProps = workInProgress.pendingProps;
  34388. switch (workInProgress.tag) {
  34389. case IndeterminateComponent:
  34390. break;
  34391. case LazyComponent:
  34392. break;
  34393. case SimpleMemoComponent:
  34394. case FunctionComponent:
  34395. break;
  34396. case ClassComponent:
  34397. {
  34398. var Component = workInProgress.type;
  34399. if (isContextProvider(Component)) {
  34400. popContext(workInProgress);
  34401. }
  34402. break;
  34403. }
  34404. case HostRoot:
  34405. {
  34406. popHostContainer(workInProgress);
  34407. popTopLevelContextObject(workInProgress);
  34408. var fiberRoot = workInProgress.stateNode;
  34409. if (fiberRoot.pendingContext) {
  34410. fiberRoot.context = fiberRoot.pendingContext;
  34411. fiberRoot.pendingContext = null;
  34412. }
  34413. if (current === null || current.child === null) {
  34414. // If we hydrated, pop so that we can delete any remaining children
  34415. // that weren't hydrated.
  34416. popHydrationState(workInProgress);
  34417. // This resets the hacky state to fix isMounted before committing.
  34418. // TODO: Delete this when we delete isMounted and findDOMNode.
  34419. workInProgress.effectTag &= ~Placement;
  34420. }
  34421. updateHostContainer(workInProgress);
  34422. break;
  34423. }
  34424. case HostComponent:
  34425. {
  34426. popHostContext(workInProgress);
  34427. var rootContainerInstance = getRootHostContainer();
  34428. var type = workInProgress.type;
  34429. if (current !== null && workInProgress.stateNode != null) {
  34430. updateHostComponent$1(current, workInProgress, type, newProps, rootContainerInstance);
  34431. if (enableFlareAPI) {
  34432. var prevListeners = current.memoizedProps.listeners;
  34433. var nextListeners = newProps.listeners;
  34434. var instance = workInProgress.stateNode;
  34435. if (prevListeners !== nextListeners) {
  34436. updateEventListeners(nextListeners, instance, rootContainerInstance, workInProgress);
  34437. }
  34438. }
  34439. if (current.ref !== workInProgress.ref) {
  34440. markRef$1(workInProgress);
  34441. }
  34442. } else {
  34443. if (!newProps) {
  34444. (function () {
  34445. if (!(workInProgress.stateNode !== null)) {
  34446. {
  34447. throw ReactError(Error('We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.'));
  34448. }
  34449. }
  34450. })();
  34451. // This can happen when we abort work.
  34452. break;
  34453. }
  34454. var currentHostContext = getHostContext();
  34455. // TODO: Move createInstance to beginWork and keep it on a context
  34456. // "stack" as the parent. Then append children as we go in beginWork
  34457. // or completeWork depending on we want to add then top->down or
  34458. // bottom->up. Top->down is faster in IE11.
  34459. var wasHydrated = popHydrationState(workInProgress);
  34460. if (wasHydrated) {
  34461. // TODO: Move this and createInstance step into the beginPhase
  34462. // to consolidate.
  34463. if (prepareToHydrateHostInstance(workInProgress, rootContainerInstance, currentHostContext)) {
  34464. // If changes to the hydrated node needs to be applied at the
  34465. // commit-phase we mark this as such.
  34466. markUpdate(workInProgress);
  34467. }
  34468. } else {
  34469. var _instance5 = createInstance(type, newProps, rootContainerInstance, currentHostContext, workInProgress);
  34470. appendAllChildren(_instance5, workInProgress, false, false);
  34471. if (enableFlareAPI) {
  34472. var listeners = newProps.listeners;
  34473. if (listeners != null) {
  34474. updateEventListeners(listeners, _instance5, rootContainerInstance, workInProgress);
  34475. }
  34476. }
  34477. // Certain renderers require commit-time effects for initial mount.
  34478. // (eg DOM renderer supports auto-focus for certain elements).
  34479. // Make sure such renderers get scheduled for later work.
  34480. if (finalizeInitialChildren(_instance5, type, newProps, rootContainerInstance, currentHostContext)) {
  34481. markUpdate(workInProgress);
  34482. }
  34483. workInProgress.stateNode = _instance5;
  34484. }
  34485. if (workInProgress.ref !== null) {
  34486. // If there is a ref on a host node we need to schedule a callback
  34487. markRef$1(workInProgress);
  34488. }
  34489. }
  34490. break;
  34491. }
  34492. case HostText:
  34493. {
  34494. var newText = newProps;
  34495. if (current && workInProgress.stateNode != null) {
  34496. var oldText = current.memoizedProps;
  34497. // If we have an alternate, that means this is an update and we need
  34498. // to schedule a side-effect to do the updates.
  34499. updateHostText$1(current, workInProgress, oldText, newText);
  34500. } else {
  34501. if (typeof newText !== 'string') {
  34502. (function () {
  34503. if (!(workInProgress.stateNode !== null)) {
  34504. {
  34505. throw ReactError(Error('We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.'));
  34506. }
  34507. }
  34508. })();
  34509. // This can happen when we abort work.
  34510. }
  34511. var _rootContainerInstance = getRootHostContainer();
  34512. var _currentHostContext = getHostContext();
  34513. var _wasHydrated = popHydrationState(workInProgress);
  34514. if (_wasHydrated) {
  34515. if (prepareToHydrateHostTextInstance(workInProgress)) {
  34516. markUpdate(workInProgress);
  34517. }
  34518. } else {
  34519. workInProgress.stateNode = createTextInstance(newText, _rootContainerInstance, _currentHostContext, workInProgress);
  34520. }
  34521. }
  34522. break;
  34523. }
  34524. case ForwardRef:
  34525. break;
  34526. case SuspenseComponent:
  34527. {
  34528. popSuspenseContext(workInProgress);
  34529. var nextState = workInProgress.memoizedState;
  34530. if ((workInProgress.effectTag & DidCapture) !== NoEffect) {
  34531. // Something suspended. Re-render with the fallback children.
  34532. workInProgress.expirationTime = renderExpirationTime;
  34533. // Do not reset the effect list.
  34534. return workInProgress;
  34535. }
  34536. var nextDidTimeout = nextState !== null;
  34537. var prevDidTimeout = false;
  34538. if (current === null) {
  34539. // In cases where we didn't find a suitable hydration boundary we never
  34540. // downgraded this to a DehydratedSuspenseComponent, but we still need to
  34541. // pop the hydration state since we might be inside the insertion tree.
  34542. popHydrationState(workInProgress);
  34543. } else {
  34544. var prevState = current.memoizedState;
  34545. prevDidTimeout = prevState !== null;
  34546. if (!nextDidTimeout && prevState !== null) {
  34547. // We just switched from the fallback to the normal children.
  34548. // Delete the fallback.
  34549. // TODO: Would it be better to store the fallback fragment on
  34550. var currentFallbackChild = current.child.sibling;
  34551. if (currentFallbackChild !== null) {
  34552. // Deletions go at the beginning of the return fiber's effect list
  34553. var first = workInProgress.firstEffect;
  34554. if (first !== null) {
  34555. workInProgress.firstEffect = currentFallbackChild;
  34556. currentFallbackChild.nextEffect = first;
  34557. } else {
  34558. workInProgress.firstEffect = workInProgress.lastEffect = currentFallbackChild;
  34559. currentFallbackChild.nextEffect = null;
  34560. }
  34561. currentFallbackChild.effectTag = Deletion;
  34562. }
  34563. }
  34564. }
  34565. if (nextDidTimeout && !prevDidTimeout) {
  34566. // If this subtreee is running in batched mode we can suspend,
  34567. // otherwise we won't suspend.
  34568. // TODO: This will still suspend a synchronous tree if anything
  34569. // in the concurrent tree already suspended during this render.
  34570. // This is a known bug.
  34571. if ((workInProgress.mode & BatchedMode) !== NoMode) {
  34572. // TODO: Move this back to throwException because this is too late
  34573. // if this is a large tree which is common for initial loads. We
  34574. // don't know if we should restart a render or not until we get
  34575. // this marker, and this is too late.
  34576. // If this render already had a ping or lower pri updates,
  34577. // and this is the first time we know we're going to suspend we
  34578. // should be able to immediately restart from within throwException.
  34579. var hasInvisibleChildContext = current === null && workInProgress.memoizedProps.unstable_avoidThisFallback !== true;
  34580. if (hasInvisibleChildContext || hasSuspenseContext(suspenseStackCursor.current, InvisibleParentSuspenseContext)) {
  34581. // If this was in an invisible tree or a new render, then showing
  34582. // this boundary is ok.
  34583. renderDidSuspend();
  34584. } else {
  34585. // Otherwise, we're going to have to hide content so we should
  34586. // suspend for longer if possible.
  34587. renderDidSuspendDelayIfPossible();
  34588. }
  34589. }
  34590. }
  34591. if (supportsPersistence) {
  34592. // TODO: Only schedule updates if not prevDidTimeout.
  34593. if (nextDidTimeout) {
  34594. // If this boundary just timed out, schedule an effect to attach a
  34595. // retry listener to the proimse. This flag is also used to hide the
  34596. // primary children.
  34597. workInProgress.effectTag |= Update;
  34598. }
  34599. }
  34600. if (supportsMutation) {
  34601. // TODO: Only schedule updates if these values are non equal, i.e. it changed.
  34602. if (nextDidTimeout || prevDidTimeout) {
  34603. // If this boundary just timed out, schedule an effect to attach a
  34604. // retry listener to the proimse. This flag is also used to hide the
  34605. // primary children. In mutation mode, we also need the flag to
  34606. // *unhide* children that were previously hidden, so check if the
  34607. // is currently timed out, too.
  34608. workInProgress.effectTag |= Update;
  34609. }
  34610. }
  34611. if (enableSuspenseCallback && workInProgress.updateQueue !== null && workInProgress.memoizedProps.suspenseCallback != null) {
  34612. // Always notify the callback
  34613. workInProgress.effectTag |= Update;
  34614. }
  34615. break;
  34616. }
  34617. case Fragment:
  34618. break;
  34619. case Mode:
  34620. break;
  34621. case Profiler:
  34622. break;
  34623. case HostPortal:
  34624. popHostContainer(workInProgress);
  34625. updateHostContainer(workInProgress);
  34626. break;
  34627. case ContextProvider:
  34628. // Pop provider fiber
  34629. popProvider(workInProgress);
  34630. break;
  34631. case ContextConsumer:
  34632. break;
  34633. case MemoComponent:
  34634. break;
  34635. case IncompleteClassComponent:
  34636. {
  34637. // Same as class component case. I put it down here so that the tags are
  34638. // sequential to ensure this switch is compiled to a jump table.
  34639. var _Component = workInProgress.type;
  34640. if (isContextProvider(_Component)) {
  34641. popContext(workInProgress);
  34642. }
  34643. break;
  34644. }
  34645. case DehydratedSuspenseComponent:
  34646. {
  34647. if (enableSuspenseServerRenderer) {
  34648. popSuspenseContext(workInProgress);
  34649. if (current === null) {
  34650. var _wasHydrated2 = popHydrationState(workInProgress);
  34651. (function () {
  34652. if (!_wasHydrated2) {
  34653. {
  34654. throw ReactError(Error('A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.'));
  34655. }
  34656. }
  34657. })();
  34658. if (enableSchedulerTracing) {
  34659. markSpawnedWork(Never);
  34660. }
  34661. skipPastDehydratedSuspenseInstance(workInProgress);
  34662. } else if ((workInProgress.effectTag & DidCapture) === NoEffect) {
  34663. // This boundary did not suspend so it's now hydrated.
  34664. // To handle any future suspense cases, we're going to now upgrade it
  34665. // to a Suspense component. We detach it from the existing current fiber.
  34666. current.alternate = null;
  34667. workInProgress.alternate = null;
  34668. workInProgress.tag = SuspenseComponent;
  34669. workInProgress.memoizedState = null;
  34670. workInProgress.stateNode = null;
  34671. }
  34672. }
  34673. break;
  34674. }
  34675. case SuspenseListComponent:
  34676. {
  34677. popSuspenseContext(workInProgress);
  34678. var renderState = workInProgress.memoizedState;
  34679. if (renderState === null) {
  34680. // We're running in the default, "independent" mode. We don't do anything
  34681. // in this mode.
  34682. break;
  34683. }
  34684. var didSuspendAlready = (workInProgress.effectTag & DidCapture) !== NoEffect;
  34685. var renderedTail = renderState.rendering;
  34686. if (renderedTail === null) {
  34687. // We just rendered the head.
  34688. if (!didSuspendAlready) {
  34689. // This is the first pass. We need to figure out if anything is still
  34690. // suspended in the rendered set.
  34691. // If new content unsuspended, but there's still some content that
  34692. // didn't. Then we need to do a second pass that forces everything
  34693. // to keep showing their fallbacks.
  34694. // We might be suspended if something in this render pass suspended, or
  34695. // something in the previous committed pass suspended. Otherwise,
  34696. // there's no chance so we can skip the expensive call to
  34697. // findFirstSuspended.
  34698. var cannotBeSuspended = renderHasNotSuspendedYet() && (current === null || (current.effectTag & DidCapture) === NoEffect);
  34699. if (!cannotBeSuspended) {
  34700. var row = workInProgress.child;
  34701. while (row !== null) {
  34702. var suspended = findFirstSuspended(row);
  34703. if (suspended !== null) {
  34704. didSuspendAlready = true;
  34705. workInProgress.effectTag |= DidCapture;
  34706. cutOffTailIfNeeded(renderState, false);
  34707. // If this is a newly suspended tree, it might not get committed as
  34708. // part of the second pass. In that case nothing will subscribe to
  34709. // its thennables. Instead, we'll transfer its thennables to the
  34710. // SuspenseList so that it can retry if they resolve.
  34711. // There might be multiple of these in the list but since we're
  34712. // going to wait for all of them anyway, it doesn't really matter
  34713. // which ones gets to ping. In theory we could get clever and keep
  34714. // track of how many dependencies remain but it gets tricky because
  34715. // in the meantime, we can add/remove/change items and dependencies.
  34716. // We might bail out of the loop before finding any but that
  34717. // doesn't matter since that means that the other boundaries that
  34718. // we did find already has their listeners attached.
  34719. var newThennables = suspended.updateQueue;
  34720. if (newThennables !== null) {
  34721. workInProgress.updateQueue = newThennables;
  34722. workInProgress.effectTag |= Update;
  34723. }
  34724. // Rerender the whole list, but this time, we'll force fallbacks
  34725. // to stay in place.
  34726. // Reset the effect list before doing the second pass since that's now invalid.
  34727. workInProgress.firstEffect = workInProgress.lastEffect = null;
  34728. // Reset the child fibers to their original state.
  34729. resetChildFibers(workInProgress, renderExpirationTime);
  34730. // Set up the Suspense Context to force suspense and immediately
  34731. // rerender the children.
  34732. pushSuspenseContext(workInProgress, setShallowSuspenseContext(suspenseStackCursor.current, ForceSuspenseFallback));
  34733. return workInProgress.child;
  34734. }
  34735. row = row.sibling;
  34736. }
  34737. }
  34738. } else {
  34739. cutOffTailIfNeeded(renderState, false);
  34740. }
  34741. // Next we're going to render the tail.
  34742. } else {
  34743. // Append the rendered row to the child list.
  34744. if (!didSuspendAlready) {
  34745. var _suspended = findFirstSuspended(renderedTail);
  34746. if (_suspended !== null) {
  34747. workInProgress.effectTag |= DidCapture;
  34748. didSuspendAlready = true;
  34749. cutOffTailIfNeeded(renderState, true);
  34750. // This might have been modified.
  34751. if (renderState.tail === null && renderState.tailMode === 'hidden') {
  34752. // We need to delete the row we just rendered.
  34753. // Ensure we transfer the update queue to the parent.
  34754. var _newThennables = _suspended.updateQueue;
  34755. if (_newThennables !== null) {
  34756. workInProgress.updateQueue = _newThennables;
  34757. workInProgress.effectTag |= Update;
  34758. }
  34759. // Reset the effect list to what it w as before we rendered this
  34760. // child. The nested children have already appended themselves.
  34761. var lastEffect = workInProgress.lastEffect = renderState.lastEffect;
  34762. // Remove any effects that were appended after this point.
  34763. if (lastEffect !== null) {
  34764. lastEffect.nextEffect = null;
  34765. }
  34766. // We're done.
  34767. return null;
  34768. }
  34769. } else if (now() > renderState.tailExpiration && renderExpirationTime > Never) {
  34770. // We have now passed our CPU deadline and we'll just give up further
  34771. // attempts to render the main content and only render fallbacks.
  34772. // The assumption is that this is usually faster.
  34773. workInProgress.effectTag |= DidCapture;
  34774. didSuspendAlready = true;
  34775. cutOffTailIfNeeded(renderState, false);
  34776. // Since nothing actually suspended, there will nothing to ping this
  34777. // to get it started back up to attempt the next item. If we can show
  34778. // them, then they really have the same priority as this render.
  34779. // So we'll pick it back up the very next render pass once we've had
  34780. // an opportunity to yield for paint.
  34781. var nextPriority = renderExpirationTime - 1;
  34782. workInProgress.expirationTime = workInProgress.childExpirationTime = nextPriority;
  34783. if (enableSchedulerTracing) {
  34784. markSpawnedWork(nextPriority);
  34785. }
  34786. }
  34787. }
  34788. if (renderState.isBackwards) {
  34789. // The effect list of the backwards tail will have been added
  34790. // to the end. This breaks the guarantee that life-cycles fire in
  34791. // sibling order but that isn't a strong guarantee promised by React.
  34792. // Especially since these might also just pop in during future commits.
  34793. // Append to the beginning of the list.
  34794. renderedTail.sibling = workInProgress.child;
  34795. workInProgress.child = renderedTail;
  34796. } else {
  34797. var previousSibling = renderState.last;
  34798. if (previousSibling !== null) {
  34799. previousSibling.sibling = renderedTail;
  34800. } else {
  34801. workInProgress.child = renderedTail;
  34802. }
  34803. renderState.last = renderedTail;
  34804. }
  34805. }
  34806. if (renderState.tail !== null) {
  34807. // We still have tail rows to render.
  34808. if (renderState.tailExpiration === 0) {
  34809. // Heuristic for how long we're willing to spend rendering rows
  34810. // until we just give up and show what we have so far.
  34811. var TAIL_EXPIRATION_TIMEOUT_MS = 500;
  34812. renderState.tailExpiration = now() + TAIL_EXPIRATION_TIMEOUT_MS;
  34813. }
  34814. // Pop a row.
  34815. var next = renderState.tail;
  34816. renderState.rendering = next;
  34817. renderState.tail = next.sibling;
  34818. renderState.lastEffect = workInProgress.lastEffect;
  34819. next.sibling = null;
  34820. // Restore the context.
  34821. // TODO: We can probably just avoid popping it instead and only
  34822. // setting it the first time we go from not suspended to suspended.
  34823. var suspenseContext = suspenseStackCursor.current;
  34824. if (didSuspendAlready) {
  34825. suspenseContext = setShallowSuspenseContext(suspenseContext, ForceSuspenseFallback);
  34826. } else {
  34827. suspenseContext = setDefaultShallowSuspenseContext(suspenseContext);
  34828. }
  34829. pushSuspenseContext(workInProgress, suspenseContext);
  34830. // Do a pass over the next row.
  34831. return next;
  34832. }
  34833. break;
  34834. }
  34835. case FundamentalComponent:
  34836. {
  34837. if (enableFundamentalAPI) {
  34838. var fundamentalImpl = workInProgress.type.impl;
  34839. var fundamentalInstance = workInProgress.stateNode;
  34840. if (fundamentalInstance === null) {
  34841. var getInitialState = fundamentalImpl.getInitialState;
  34842. var fundamentalState = void 0;
  34843. if (getInitialState !== undefined) {
  34844. fundamentalState = getInitialState(newProps);
  34845. }
  34846. fundamentalInstance = workInProgress.stateNode = createFundamentalStateInstance(workInProgress, newProps, fundamentalImpl, fundamentalState || {});
  34847. var _instance6 = getFundamentalComponentInstance(fundamentalInstance);
  34848. fundamentalInstance.instance = _instance6;
  34849. if (fundamentalImpl.reconcileChildren === false) {
  34850. return null;
  34851. }
  34852. appendAllChildren(_instance6, workInProgress, false, false);
  34853. mountFundamentalComponent(fundamentalInstance);
  34854. } else {
  34855. // We fire update in commit phase
  34856. var prevProps = fundamentalInstance.props;
  34857. fundamentalInstance.prevProps = prevProps;
  34858. fundamentalInstance.props = newProps;
  34859. fundamentalInstance.currentFiber = workInProgress;
  34860. if (supportsPersistence) {
  34861. var _instance7 = cloneFundamentalInstance(fundamentalInstance);
  34862. fundamentalInstance.instance = _instance7;
  34863. appendAllChildren(_instance7, workInProgress, false, false);
  34864. }
  34865. var shouldUpdate = shouldUpdateFundamentalComponent(fundamentalInstance);
  34866. if (shouldUpdate) {
  34867. markUpdate(workInProgress);
  34868. }
  34869. }
  34870. }
  34871. break;
  34872. }
  34873. default:
  34874. (function () {
  34875. {
  34876. {
  34877. throw ReactError(Error('Unknown unit of work tag. This error is likely caused by a bug in React. Please file an issue.'));
  34878. }
  34879. }
  34880. })();
  34881. }
  34882. return null;
  34883. }
  34884. function mountEventResponder$1(responder, responderProps, instance, rootContainerInstance, fiber, respondersMap) {
  34885. var responderState = emptyObject;
  34886. var getInitialState = responder.getInitialState;
  34887. if (getInitialState !== null) {
  34888. responderState = getInitialState(responderProps);
  34889. }
  34890. var responderInstance = createResponderInstance(responder, responderProps, responderState, instance, fiber);
  34891. mountResponderInstance(responder, responderInstance, responderProps, responderState, instance, rootContainerInstance);
  34892. respondersMap.set(responder, responderInstance);
  34893. }
  34894. function updateEventListener(listener, fiber, visistedResponders, respondersMap, instance, rootContainerInstance) {
  34895. var responder = void 0;
  34896. var props = void 0;
  34897. if (listener) {
  34898. responder = listener.responder;
  34899. props = listener.props;
  34900. }
  34901. (function () {
  34902. if (!(responder && responder.$$typeof === REACT_RESPONDER_TYPE)) {
  34903. {
  34904. throw ReactError(Error('An invalid value was used as an event listener. Expect one or many event listeners created via React.unstable_useResponer().'));
  34905. }
  34906. }
  34907. })();
  34908. var listenerProps = props;
  34909. if (visistedResponders.has(responder)) {
  34910. // show warning
  34911. {
  34912. warning$1(false, 'Duplicate event responder "%s" found in event listeners. ' + 'Event listeners passed to elements cannot use the same event responder more than once.', responder.displayName);
  34913. }
  34914. return;
  34915. }
  34916. visistedResponders.add(responder);
  34917. var responderInstance = respondersMap.get(responder);
  34918. if (responderInstance === undefined) {
  34919. // Mount
  34920. mountEventResponder$1(responder, listenerProps, instance, rootContainerInstance, fiber, respondersMap);
  34921. } else {
  34922. // Update
  34923. responderInstance.props = listenerProps;
  34924. responderInstance.fiber = fiber;
  34925. }
  34926. }
  34927. function updateEventListeners(listeners, instance, rootContainerInstance, fiber) {
  34928. var visistedResponders = new Set();
  34929. var dependencies = fiber.dependencies;
  34930. if (listeners != null) {
  34931. if (dependencies === null) {
  34932. dependencies = fiber.dependencies = {
  34933. expirationTime: NoWork,
  34934. firstContext: null,
  34935. responders: new Map()
  34936. };
  34937. }
  34938. var respondersMap = dependencies.responders;
  34939. if (respondersMap === null) {
  34940. respondersMap = new Map();
  34941. }
  34942. if (isArray$2(listeners)) {
  34943. for (var i = 0, length = listeners.length; i < length; i++) {
  34944. var listener = listeners[i];
  34945. updateEventListener(listener, fiber, visistedResponders, respondersMap, instance, rootContainerInstance);
  34946. }
  34947. } else {
  34948. updateEventListener(listeners, fiber, visistedResponders, respondersMap, instance, rootContainerInstance);
  34949. }
  34950. }
  34951. if (dependencies !== null) {
  34952. var _respondersMap = dependencies.responders;
  34953. if (_respondersMap !== null) {
  34954. // Unmount
  34955. var mountedResponders = Array.from(_respondersMap.keys());
  34956. for (var _i = 0, _length = mountedResponders.length; _i < _length; _i++) {
  34957. var mountedResponder = mountedResponders[_i];
  34958. if (!visistedResponders.has(mountedResponder)) {
  34959. var responderInstance = _respondersMap.get(mountedResponder);
  34960. unmountResponderInstance(responderInstance);
  34961. _respondersMap.delete(mountedResponder);
  34962. }
  34963. }
  34964. }
  34965. }
  34966. }
  34967. function unwindWork(workInProgress, renderExpirationTime) {
  34968. switch (workInProgress.tag) {
  34969. case ClassComponent:
  34970. {
  34971. var Component = workInProgress.type;
  34972. if (isContextProvider(Component)) {
  34973. popContext(workInProgress);
  34974. }
  34975. var effectTag = workInProgress.effectTag;
  34976. if (effectTag & ShouldCapture) {
  34977. workInProgress.effectTag = effectTag & ~ShouldCapture | DidCapture;
  34978. return workInProgress;
  34979. }
  34980. return null;
  34981. }
  34982. case HostRoot:
  34983. {
  34984. popHostContainer(workInProgress);
  34985. popTopLevelContextObject(workInProgress);
  34986. var _effectTag = workInProgress.effectTag;
  34987. (function () {
  34988. if (!((_effectTag & DidCapture) === NoEffect)) {
  34989. {
  34990. throw ReactError(Error('The root failed to unmount after an error. This is likely a bug in React. Please file an issue.'));
  34991. }
  34992. }
  34993. })();
  34994. workInProgress.effectTag = _effectTag & ~ShouldCapture | DidCapture;
  34995. return workInProgress;
  34996. }
  34997. case HostComponent:
  34998. {
  34999. // TODO: popHydrationState
  35000. popHostContext(workInProgress);
  35001. return null;
  35002. }
  35003. case SuspenseComponent:
  35004. {
  35005. popSuspenseContext(workInProgress);
  35006. var _effectTag2 = workInProgress.effectTag;
  35007. if (_effectTag2 & ShouldCapture) {
  35008. workInProgress.effectTag = _effectTag2 & ~ShouldCapture | DidCapture;
  35009. // Captured a suspense effect. Re-render the boundary.
  35010. return workInProgress;
  35011. }
  35012. return null;
  35013. }
  35014. case DehydratedSuspenseComponent:
  35015. {
  35016. if (enableSuspenseServerRenderer) {
  35017. // TODO: popHydrationState
  35018. popSuspenseContext(workInProgress);
  35019. var _effectTag3 = workInProgress.effectTag;
  35020. if (_effectTag3 & ShouldCapture) {
  35021. workInProgress.effectTag = _effectTag3 & ~ShouldCapture | DidCapture;
  35022. // Captured a suspense effect. Re-render the boundary.
  35023. return workInProgress;
  35024. }
  35025. }
  35026. return null;
  35027. }
  35028. case SuspenseListComponent:
  35029. {
  35030. popSuspenseContext(workInProgress);
  35031. // SuspenseList doesn't actually catch anything. It should've been
  35032. // caught by a nested boundary. If not, it should bubble through.
  35033. return null;
  35034. }
  35035. case HostPortal:
  35036. popHostContainer(workInProgress);
  35037. return null;
  35038. case ContextProvider:
  35039. popProvider(workInProgress);
  35040. return null;
  35041. default:
  35042. return null;
  35043. }
  35044. }
  35045. function unwindInterruptedWork(interruptedWork) {
  35046. switch (interruptedWork.tag) {
  35047. case ClassComponent:
  35048. {
  35049. var childContextTypes = interruptedWork.type.childContextTypes;
  35050. if (childContextTypes !== null && childContextTypes !== undefined) {
  35051. popContext(interruptedWork);
  35052. }
  35053. break;
  35054. }
  35055. case HostRoot:
  35056. {
  35057. popHostContainer(interruptedWork);
  35058. popTopLevelContextObject(interruptedWork);
  35059. break;
  35060. }
  35061. case HostComponent:
  35062. {
  35063. popHostContext(interruptedWork);
  35064. break;
  35065. }
  35066. case HostPortal:
  35067. popHostContainer(interruptedWork);
  35068. break;
  35069. case SuspenseComponent:
  35070. popSuspenseContext(interruptedWork);
  35071. break;
  35072. case DehydratedSuspenseComponent:
  35073. if (enableSuspenseServerRenderer) {
  35074. // TODO: popHydrationState
  35075. popSuspenseContext(interruptedWork);
  35076. }
  35077. break;
  35078. case SuspenseListComponent:
  35079. popSuspenseContext(interruptedWork);
  35080. break;
  35081. case ContextProvider:
  35082. popProvider(interruptedWork);
  35083. break;
  35084. default:
  35085. break;
  35086. }
  35087. }
  35088. function createCapturedValue(value, source) {
  35089. // If the value is an error, call this function immediately after it is thrown
  35090. // so the stack is accurate.
  35091. return {
  35092. value: value,
  35093. source: source,
  35094. stack: getStackByFiberInDevAndProd(source)
  35095. };
  35096. }
  35097. // This module is forked in different environments.
  35098. // By default, return `true` to log errors to the console.
  35099. // Forks can return `false` if this isn't desirable.
  35100. function showErrorDialog(capturedError) {
  35101. return true;
  35102. }
  35103. function logCapturedError(capturedError) {
  35104. var logError = showErrorDialog(capturedError);
  35105. // Allow injected showErrorDialog() to prevent default console.error logging.
  35106. // This enables renderers like ReactNative to better manage redbox behavior.
  35107. if (logError === false) {
  35108. return;
  35109. }
  35110. var error = capturedError.error;
  35111. {
  35112. var componentName = capturedError.componentName,
  35113. componentStack = capturedError.componentStack,
  35114. errorBoundaryName = capturedError.errorBoundaryName,
  35115. errorBoundaryFound = capturedError.errorBoundaryFound,
  35116. willRetry = capturedError.willRetry;
  35117. // Browsers support silencing uncaught errors by calling
  35118. // `preventDefault()` in window `error` handler.
  35119. // We record this information as an expando on the error.
  35120. if (error != null && error._suppressLogging) {
  35121. if (errorBoundaryFound && willRetry) {
  35122. // The error is recoverable and was silenced.
  35123. // Ignore it and don't print the stack addendum.
  35124. // This is handy for testing error boundaries without noise.
  35125. return;
  35126. }
  35127. // The error is fatal. Since the silencing might have
  35128. // been accidental, we'll surface it anyway.
  35129. // However, the browser would have silenced the original error
  35130. // so we'll print it first, and then print the stack addendum.
  35131. console.error(error);
  35132. // For a more detailed description of this block, see:
  35133. // https://github.com/facebook/react/pull/13384
  35134. }
  35135. var componentNameMessage = componentName ? 'The above error occurred in the <' + componentName + '> component:' : 'The above error occurred in one of your React components:';
  35136. var errorBoundaryMessage = void 0;
  35137. // errorBoundaryFound check is sufficient; errorBoundaryName check is to satisfy Flow.
  35138. if (errorBoundaryFound && errorBoundaryName) {
  35139. if (willRetry) {
  35140. errorBoundaryMessage = 'React will try to recreate this component tree from scratch ' + ('using the error boundary you provided, ' + errorBoundaryName + '.');
  35141. } else {
  35142. errorBoundaryMessage = 'This error was initially handled by the error boundary ' + errorBoundaryName + '.\n' + 'Recreating the tree from scratch failed so React will unmount the tree.';
  35143. }
  35144. } else {
  35145. errorBoundaryMessage = 'Consider adding an error boundary to your tree to customize error handling behavior.\n' + 'Visit https://fb.me/react-error-boundaries to learn more about error boundaries.';
  35146. }
  35147. var combinedMessage = '' + componentNameMessage + componentStack + '\n\n' + ('' + errorBoundaryMessage);
  35148. // In development, we provide our own message with just the component stack.
  35149. // We don't include the original error message and JS stack because the browser
  35150. // has already printed it. Even if the application swallows the error, it is still
  35151. // displayed by the browser thanks to the DEV-only fake event trick in ReactErrorUtils.
  35152. console.error(combinedMessage);
  35153. }
  35154. }
  35155. var didWarnAboutUndefinedSnapshotBeforeUpdate = null;
  35156. {
  35157. didWarnAboutUndefinedSnapshotBeforeUpdate = new Set();
  35158. }
  35159. var PossiblyWeakSet$1 = typeof WeakSet === 'function' ? WeakSet : Set;
  35160. function logError(boundary, errorInfo) {
  35161. var source = errorInfo.source;
  35162. var stack = errorInfo.stack;
  35163. if (stack === null && source !== null) {
  35164. stack = getStackByFiberInDevAndProd(source);
  35165. }
  35166. var capturedError = {
  35167. componentName: source !== null ? getComponentName(source.type) : null,
  35168. componentStack: stack !== null ? stack : '',
  35169. error: errorInfo.value,
  35170. errorBoundary: null,
  35171. errorBoundaryName: null,
  35172. errorBoundaryFound: false,
  35173. willRetry: false
  35174. };
  35175. if (boundary !== null && boundary.tag === ClassComponent) {
  35176. capturedError.errorBoundary = boundary.stateNode;
  35177. capturedError.errorBoundaryName = getComponentName(boundary.type);
  35178. capturedError.errorBoundaryFound = true;
  35179. capturedError.willRetry = true;
  35180. }
  35181. try {
  35182. logCapturedError(capturedError);
  35183. } catch (e) {
  35184. // This method must not throw, or React internal state will get messed up.
  35185. // If console.error is overridden, or logCapturedError() shows a dialog that throws,
  35186. // we want to report this error outside of the normal stack as a last resort.
  35187. // https://github.com/facebook/react/issues/13188
  35188. setTimeout(function () {
  35189. throw e;
  35190. });
  35191. }
  35192. }
  35193. var callComponentWillUnmountWithTimer = function (current$$1, instance) {
  35194. startPhaseTimer(current$$1, 'componentWillUnmount');
  35195. instance.props = current$$1.memoizedProps;
  35196. instance.state = current$$1.memoizedState;
  35197. instance.componentWillUnmount();
  35198. stopPhaseTimer();
  35199. };
  35200. // Capture errors so they don't interrupt unmounting.
  35201. function safelyCallComponentWillUnmount(current$$1, instance) {
  35202. {
  35203. invokeGuardedCallback(null, callComponentWillUnmountWithTimer, null, current$$1, instance);
  35204. if (hasCaughtError()) {
  35205. var unmountError = clearCaughtError();
  35206. captureCommitPhaseError(current$$1, unmountError);
  35207. }
  35208. }
  35209. }
  35210. function safelyDetachRef(current$$1) {
  35211. var ref = current$$1.ref;
  35212. if (ref !== null) {
  35213. if (typeof ref === 'function') {
  35214. {
  35215. invokeGuardedCallback(null, ref, null, null);
  35216. if (hasCaughtError()) {
  35217. var refError = clearCaughtError();
  35218. captureCommitPhaseError(current$$1, refError);
  35219. }
  35220. }
  35221. } else {
  35222. ref.current = null;
  35223. }
  35224. }
  35225. }
  35226. function safelyCallDestroy(current$$1, destroy) {
  35227. {
  35228. invokeGuardedCallback(null, destroy, null);
  35229. if (hasCaughtError()) {
  35230. var error = clearCaughtError();
  35231. captureCommitPhaseError(current$$1, error);
  35232. }
  35233. }
  35234. }
  35235. function commitBeforeMutationLifeCycles(current$$1, finishedWork) {
  35236. switch (finishedWork.tag) {
  35237. case FunctionComponent:
  35238. case ForwardRef:
  35239. case SimpleMemoComponent:
  35240. {
  35241. commitHookEffectList(UnmountSnapshot, NoEffect$1, finishedWork);
  35242. return;
  35243. }
  35244. case ClassComponent:
  35245. {
  35246. if (finishedWork.effectTag & Snapshot) {
  35247. if (current$$1 !== null) {
  35248. var prevProps = current$$1.memoizedProps;
  35249. var prevState = current$$1.memoizedState;
  35250. startPhaseTimer(finishedWork, 'getSnapshotBeforeUpdate');
  35251. var instance = finishedWork.stateNode;
  35252. // We could update instance props and state here,
  35253. // but instead we rely on them being set during last render.
  35254. // TODO: revisit this when we implement resuming.
  35255. {
  35256. if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) {
  35257. !(instance.props === finishedWork.memoizedProps) ? warning$1(false, 'Expected %s props to match memoized props before ' + 'getSnapshotBeforeUpdate. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance') : void 0;
  35258. !(instance.state === finishedWork.memoizedState) ? warning$1(false, 'Expected %s state to match memoized state before ' + 'getSnapshotBeforeUpdate. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance') : void 0;
  35259. }
  35260. }
  35261. var snapshot = instance.getSnapshotBeforeUpdate(finishedWork.elementType === finishedWork.type ? prevProps : resolveDefaultProps(finishedWork.type, prevProps), prevState);
  35262. {
  35263. var didWarnSet = didWarnAboutUndefinedSnapshotBeforeUpdate;
  35264. if (snapshot === undefined && !didWarnSet.has(finishedWork.type)) {
  35265. didWarnSet.add(finishedWork.type);
  35266. warningWithoutStack$1(false, '%s.getSnapshotBeforeUpdate(): A snapshot value (or null) ' + 'must be returned. You have returned undefined.', getComponentName(finishedWork.type));
  35267. }
  35268. }
  35269. instance.__reactInternalSnapshotBeforeUpdate = snapshot;
  35270. stopPhaseTimer();
  35271. }
  35272. }
  35273. return;
  35274. }
  35275. case HostRoot:
  35276. case HostComponent:
  35277. case HostText:
  35278. case HostPortal:
  35279. case IncompleteClassComponent:
  35280. // Nothing to do for these component types
  35281. return;
  35282. default:
  35283. {
  35284. (function () {
  35285. {
  35286. {
  35287. throw ReactError(Error('This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.'));
  35288. }
  35289. }
  35290. })();
  35291. }
  35292. }
  35293. }
  35294. function commitHookEffectList(unmountTag, mountTag, finishedWork) {
  35295. var updateQueue = finishedWork.updateQueue;
  35296. var lastEffect = updateQueue !== null ? updateQueue.lastEffect : null;
  35297. if (lastEffect !== null) {
  35298. var firstEffect = lastEffect.next;
  35299. var effect = firstEffect;
  35300. do {
  35301. if ((effect.tag & unmountTag) !== NoEffect$1) {
  35302. // Unmount
  35303. var destroy = effect.destroy;
  35304. effect.destroy = undefined;
  35305. if (destroy !== undefined) {
  35306. destroy();
  35307. }
  35308. }
  35309. if ((effect.tag & mountTag) !== NoEffect$1) {
  35310. // Mount
  35311. var create = effect.create;
  35312. effect.destroy = create();
  35313. {
  35314. var _destroy = effect.destroy;
  35315. if (_destroy !== undefined && typeof _destroy !== 'function') {
  35316. var addendum = void 0;
  35317. if (_destroy === null) {
  35318. addendum = ' You returned null. If your effect does not require clean ' + 'up, return undefined (or nothing).';
  35319. } else if (typeof _destroy.then === 'function') {
  35320. addendum = '\n\nIt looks like you wrote useEffect(async () => ...) or returned a Promise. ' + 'Instead, write the async function inside your effect ' + 'and call it immediately:\n\n' + 'useEffect(() => {\n' + ' async function fetchData() {\n' + ' // You can await here\n' + ' const response = await MyAPI.getData(someId);\n' + ' // ...\n' + ' }\n' + ' fetchData();\n' + '}, [someId]); // Or [] if effect doesn\'t need props or state\n\n' + 'Learn more about data fetching with Hooks: https://fb.me/react-hooks-data-fetching';
  35321. } else {
  35322. addendum = ' You returned: ' + _destroy;
  35323. }
  35324. warningWithoutStack$1(false, 'An effect function must not return anything besides a function, ' + 'which is used for clean-up.%s%s', addendum, getStackByFiberInDevAndProd(finishedWork));
  35325. }
  35326. }
  35327. }
  35328. effect = effect.next;
  35329. } while (effect !== firstEffect);
  35330. }
  35331. }
  35332. function commitPassiveHookEffects(finishedWork) {
  35333. if ((finishedWork.effectTag & Passive) !== NoEffect) {
  35334. switch (finishedWork.tag) {
  35335. case FunctionComponent:
  35336. case ForwardRef:
  35337. case SimpleMemoComponent:
  35338. {
  35339. commitHookEffectList(UnmountPassive, NoEffect$1, finishedWork);
  35340. commitHookEffectList(NoEffect$1, MountPassive, finishedWork);
  35341. break;
  35342. }
  35343. default:
  35344. break;
  35345. }
  35346. }
  35347. }
  35348. function commitLifeCycles(finishedRoot, current$$1, finishedWork, committedExpirationTime) {
  35349. switch (finishedWork.tag) {
  35350. case FunctionComponent:
  35351. case ForwardRef:
  35352. case SimpleMemoComponent:
  35353. {
  35354. commitHookEffectList(UnmountLayout, MountLayout, finishedWork);
  35355. break;
  35356. }
  35357. case ClassComponent:
  35358. {
  35359. var instance = finishedWork.stateNode;
  35360. if (finishedWork.effectTag & Update) {
  35361. if (current$$1 === null) {
  35362. startPhaseTimer(finishedWork, 'componentDidMount');
  35363. // We could update instance props and state here,
  35364. // but instead we rely on them being set during last render.
  35365. // TODO: revisit this when we implement resuming.
  35366. {
  35367. if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) {
  35368. !(instance.props === finishedWork.memoizedProps) ? warning$1(false, 'Expected %s props to match memoized props before ' + 'componentDidMount. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance') : void 0;
  35369. !(instance.state === finishedWork.memoizedState) ? warning$1(false, 'Expected %s state to match memoized state before ' + 'componentDidMount. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance') : void 0;
  35370. }
  35371. }
  35372. instance.componentDidMount();
  35373. stopPhaseTimer();
  35374. } else {
  35375. var prevProps = finishedWork.elementType === finishedWork.type ? current$$1.memoizedProps : resolveDefaultProps(finishedWork.type, current$$1.memoizedProps);
  35376. var prevState = current$$1.memoizedState;
  35377. startPhaseTimer(finishedWork, 'componentDidUpdate');
  35378. // We could update instance props and state here,
  35379. // but instead we rely on them being set during last render.
  35380. // TODO: revisit this when we implement resuming.
  35381. {
  35382. if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) {
  35383. !(instance.props === finishedWork.memoizedProps) ? warning$1(false, 'Expected %s props to match memoized props before ' + 'componentDidUpdate. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance') : void 0;
  35384. !(instance.state === finishedWork.memoizedState) ? warning$1(false, 'Expected %s state to match memoized state before ' + 'componentDidUpdate. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance') : void 0;
  35385. }
  35386. }
  35387. instance.componentDidUpdate(prevProps, prevState, instance.__reactInternalSnapshotBeforeUpdate);
  35388. stopPhaseTimer();
  35389. }
  35390. }
  35391. var updateQueue = finishedWork.updateQueue;
  35392. if (updateQueue !== null) {
  35393. {
  35394. if (finishedWork.type === finishedWork.elementType && !didWarnAboutReassigningProps) {
  35395. !(instance.props === finishedWork.memoizedProps) ? warning$1(false, 'Expected %s props to match memoized props before ' + 'processing the update queue. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance') : void 0;
  35396. !(instance.state === finishedWork.memoizedState) ? warning$1(false, 'Expected %s state to match memoized state before ' + 'processing the update queue. ' + 'This might either be because of a bug in React, or because ' + 'a component reassigns its own `this.props`. ' + 'Please file an issue.', getComponentName(finishedWork.type) || 'instance') : void 0;
  35397. }
  35398. }
  35399. // We could update instance props and state here,
  35400. // but instead we rely on them being set during last render.
  35401. // TODO: revisit this when we implement resuming.
  35402. commitUpdateQueue(finishedWork, updateQueue, instance, committedExpirationTime);
  35403. }
  35404. return;
  35405. }
  35406. case HostRoot:
  35407. {
  35408. var _updateQueue = finishedWork.updateQueue;
  35409. if (_updateQueue !== null) {
  35410. var _instance = null;
  35411. if (finishedWork.child !== null) {
  35412. switch (finishedWork.child.tag) {
  35413. case HostComponent:
  35414. _instance = getPublicInstance(finishedWork.child.stateNode);
  35415. break;
  35416. case ClassComponent:
  35417. _instance = finishedWork.child.stateNode;
  35418. break;
  35419. }
  35420. }
  35421. commitUpdateQueue(finishedWork, _updateQueue, _instance, committedExpirationTime);
  35422. }
  35423. return;
  35424. }
  35425. case HostComponent:
  35426. {
  35427. var _instance2 = finishedWork.stateNode;
  35428. // Renderers may schedule work to be done after host components are mounted
  35429. // (eg DOM renderer may schedule auto-focus for inputs and form controls).
  35430. // These effects should only be committed when components are first mounted,
  35431. // aka when there is no current/alternate.
  35432. if (current$$1 === null && finishedWork.effectTag & Update) {
  35433. var type = finishedWork.type;
  35434. var props = finishedWork.memoizedProps;
  35435. commitMount(_instance2, type, props, finishedWork);
  35436. }
  35437. return;
  35438. }
  35439. case HostText:
  35440. {
  35441. // We have no life-cycles associated with text.
  35442. return;
  35443. }
  35444. case HostPortal:
  35445. {
  35446. // We have no life-cycles associated with portals.
  35447. return;
  35448. }
  35449. case Profiler:
  35450. {
  35451. if (enableProfilerTimer) {
  35452. var onRender = finishedWork.memoizedProps.onRender;
  35453. if (typeof onRender === 'function') {
  35454. if (enableSchedulerTracing) {
  35455. onRender(finishedWork.memoizedProps.id, current$$1 === null ? 'mount' : 'update', finishedWork.actualDuration, finishedWork.treeBaseDuration, finishedWork.actualStartTime, getCommitTime(), finishedRoot.memoizedInteractions);
  35456. } else {
  35457. onRender(finishedWork.memoizedProps.id, current$$1 === null ? 'mount' : 'update', finishedWork.actualDuration, finishedWork.treeBaseDuration, finishedWork.actualStartTime, getCommitTime());
  35458. }
  35459. }
  35460. }
  35461. return;
  35462. }
  35463. case SuspenseComponent:
  35464. case SuspenseListComponent:
  35465. case IncompleteClassComponent:
  35466. case FundamentalComponent:
  35467. return;
  35468. default:
  35469. {
  35470. (function () {
  35471. {
  35472. {
  35473. throw ReactError(Error('This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.'));
  35474. }
  35475. }
  35476. })();
  35477. }
  35478. }
  35479. }
  35480. function hideOrUnhideAllChildren(finishedWork, isHidden) {
  35481. if (supportsMutation) {
  35482. // We only have the top Fiber that was inserted but we need to recurse down its
  35483. var node = finishedWork;
  35484. while (true) {
  35485. if (node.tag === HostComponent) {
  35486. var instance = node.stateNode;
  35487. if (isHidden) {
  35488. hideInstance(instance);
  35489. } else {
  35490. unhideInstance(node.stateNode, node.memoizedProps);
  35491. }
  35492. } else if (node.tag === HostText) {
  35493. var _instance3 = node.stateNode;
  35494. if (isHidden) {
  35495. hideTextInstance(_instance3);
  35496. } else {
  35497. unhideTextInstance(_instance3, node.memoizedProps);
  35498. }
  35499. } else if (node.tag === SuspenseComponent && node.memoizedState !== null) {
  35500. // Found a nested Suspense component that timed out. Skip over the
  35501. var fallbackChildFragment = node.child.sibling;
  35502. fallbackChildFragment.return = node;
  35503. node = fallbackChildFragment;
  35504. continue;
  35505. } else if (node.child !== null) {
  35506. node.child.return = node;
  35507. node = node.child;
  35508. continue;
  35509. }
  35510. if (node === finishedWork) {
  35511. return;
  35512. }
  35513. while (node.sibling === null) {
  35514. if (node.return === null || node.return === finishedWork) {
  35515. return;
  35516. }
  35517. node = node.return;
  35518. }
  35519. node.sibling.return = node.return;
  35520. node = node.sibling;
  35521. }
  35522. }
  35523. }
  35524. function commitAttachRef(finishedWork) {
  35525. var ref = finishedWork.ref;
  35526. if (ref !== null) {
  35527. var instance = finishedWork.stateNode;
  35528. var instanceToUse = void 0;
  35529. switch (finishedWork.tag) {
  35530. case HostComponent:
  35531. instanceToUse = getPublicInstance(instance);
  35532. break;
  35533. default:
  35534. instanceToUse = instance;
  35535. }
  35536. if (typeof ref === 'function') {
  35537. ref(instanceToUse);
  35538. } else {
  35539. {
  35540. if (!ref.hasOwnProperty('current')) {
  35541. warningWithoutStack$1(false, 'Unexpected ref object provided for %s. ' + 'Use either a ref-setter function or React.createRef().%s', getComponentName(finishedWork.type), getStackByFiberInDevAndProd(finishedWork));
  35542. }
  35543. }
  35544. ref.current = instanceToUse;
  35545. }
  35546. }
  35547. }
  35548. function commitDetachRef(current$$1) {
  35549. var currentRef = current$$1.ref;
  35550. if (currentRef !== null) {
  35551. if (typeof currentRef === 'function') {
  35552. currentRef(null);
  35553. } else {
  35554. currentRef.current = null;
  35555. }
  35556. }
  35557. }
  35558. // User-originating errors (lifecycles and refs) should not interrupt
  35559. // deletion, so don't let them throw. Host-originating errors should
  35560. // interrupt deletion, so it's okay
  35561. function commitUnmount(current$$1, renderPriorityLevel) {
  35562. onCommitUnmount(current$$1);
  35563. switch (current$$1.tag) {
  35564. case FunctionComponent:
  35565. case ForwardRef:
  35566. case MemoComponent:
  35567. case SimpleMemoComponent:
  35568. {
  35569. var updateQueue = current$$1.updateQueue;
  35570. if (updateQueue !== null) {
  35571. var lastEffect = updateQueue.lastEffect;
  35572. if (lastEffect !== null) {
  35573. var firstEffect = lastEffect.next;
  35574. // When the owner fiber is deleted, the destroy function of a passive
  35575. // effect hook is called during the synchronous commit phase. This is
  35576. // a concession to implementation complexity. Calling it in the
  35577. // passive effect phase (like they usually are, when dependencies
  35578. // change during an update) would require either traversing the
  35579. // children of the deleted fiber again, or including unmount effects
  35580. // as part of the fiber effect list.
  35581. //
  35582. // Because this is during the sync commit phase, we need to change
  35583. // the priority.
  35584. //
  35585. // TODO: Reconsider this implementation trade off.
  35586. var priorityLevel = renderPriorityLevel > NormalPriority ? NormalPriority : renderPriorityLevel;
  35587. runWithPriority$2(priorityLevel, function () {
  35588. var effect = firstEffect;
  35589. do {
  35590. var destroy = effect.destroy;
  35591. if (destroy !== undefined) {
  35592. safelyCallDestroy(current$$1, destroy);
  35593. }
  35594. effect = effect.next;
  35595. } while (effect !== firstEffect);
  35596. });
  35597. }
  35598. }
  35599. break;
  35600. }
  35601. case ClassComponent:
  35602. {
  35603. safelyDetachRef(current$$1);
  35604. var instance = current$$1.stateNode;
  35605. if (typeof instance.componentWillUnmount === 'function') {
  35606. safelyCallComponentWillUnmount(current$$1, instance);
  35607. }
  35608. return;
  35609. }
  35610. case HostComponent:
  35611. {
  35612. if (enableFlareAPI) {
  35613. var dependencies = current$$1.dependencies;
  35614. if (dependencies !== null) {
  35615. var respondersMap = dependencies.responders;
  35616. if (respondersMap !== null) {
  35617. var responderInstances = Array.from(respondersMap.values());
  35618. for (var i = 0, length = responderInstances.length; i < length; i++) {
  35619. var responderInstance = responderInstances[i];
  35620. unmountResponderInstance(responderInstance);
  35621. }
  35622. dependencies.responders = null;
  35623. }
  35624. }
  35625. }
  35626. safelyDetachRef(current$$1);
  35627. return;
  35628. }
  35629. case HostPortal:
  35630. {
  35631. // TODO: this is recursive.
  35632. // We are also not using this parent because
  35633. // the portal will get pushed immediately.
  35634. if (supportsMutation) {
  35635. unmountHostComponents(current$$1, renderPriorityLevel);
  35636. } else if (supportsPersistence) {
  35637. emptyPortalContainer(current$$1);
  35638. }
  35639. return;
  35640. }
  35641. case FundamentalComponent:
  35642. {
  35643. if (enableFundamentalAPI) {
  35644. var fundamentalInstance = current$$1.stateNode;
  35645. if (fundamentalInstance !== null) {
  35646. unmountFundamentalComponent(fundamentalInstance);
  35647. current$$1.stateNode = null;
  35648. }
  35649. }
  35650. }
  35651. }
  35652. }
  35653. function commitNestedUnmounts(root, renderPriorityLevel) {
  35654. // While we're inside a removed host node we don't want to call
  35655. // removeChild on the inner nodes because they're removed by the top
  35656. // call anyway. We also want to call componentWillUnmount on all
  35657. // composites before this host node is removed from the tree. Therefore
  35658. var node = root;
  35659. while (true) {
  35660. commitUnmount(node, renderPriorityLevel);
  35661. // Visit children because they may contain more composite or host nodes.
  35662. // Skip portals because commitUnmount() currently visits them recursively.
  35663. if (node.child !== null && (
  35664. // If we use mutation we drill down into portals using commitUnmount above.
  35665. // If we don't use mutation we drill down into portals here instead.
  35666. !supportsMutation || node.tag !== HostPortal)) {
  35667. node.child.return = node;
  35668. node = node.child;
  35669. continue;
  35670. }
  35671. if (node === root) {
  35672. return;
  35673. }
  35674. while (node.sibling === null) {
  35675. if (node.return === null || node.return === root) {
  35676. return;
  35677. }
  35678. node = node.return;
  35679. }
  35680. node.sibling.return = node.return;
  35681. node = node.sibling;
  35682. }
  35683. }
  35684. function detachFiber(current$$1) {
  35685. // Cut off the return pointers to disconnect it from the tree. Ideally, we
  35686. // should clear the child pointer of the parent alternate to let this
  35687. // get GC:ed but we don't know which for sure which parent is the current
  35688. // one so we'll settle for GC:ing the subtree of this child. This child
  35689. // itself will be GC:ed when the parent updates the next time.
  35690. current$$1.return = null;
  35691. current$$1.child = null;
  35692. current$$1.memoizedState = null;
  35693. current$$1.updateQueue = null;
  35694. current$$1.dependencies = null;
  35695. var alternate = current$$1.alternate;
  35696. if (alternate !== null) {
  35697. alternate.return = null;
  35698. alternate.child = null;
  35699. alternate.memoizedState = null;
  35700. alternate.updateQueue = null;
  35701. alternate.dependencies = null;
  35702. }
  35703. }
  35704. function emptyPortalContainer(current$$1) {
  35705. if (!supportsPersistence) {
  35706. return;
  35707. }
  35708. var portal = current$$1.stateNode;
  35709. var containerInfo = portal.containerInfo;
  35710. var emptyChildSet = createContainerChildSet(containerInfo);
  35711. replaceContainerChildren(containerInfo, emptyChildSet);
  35712. }
  35713. function commitContainer(finishedWork) {
  35714. if (!supportsPersistence) {
  35715. return;
  35716. }
  35717. switch (finishedWork.tag) {
  35718. case ClassComponent:
  35719. case HostComponent:
  35720. case HostText:
  35721. case FundamentalComponent:
  35722. {
  35723. return;
  35724. }
  35725. case HostRoot:
  35726. case HostPortal:
  35727. {
  35728. var portalOrRoot = finishedWork.stateNode;
  35729. var containerInfo = portalOrRoot.containerInfo,
  35730. _pendingChildren = portalOrRoot.pendingChildren;
  35731. replaceContainerChildren(containerInfo, _pendingChildren);
  35732. return;
  35733. }
  35734. default:
  35735. {
  35736. (function () {
  35737. {
  35738. {
  35739. throw ReactError(Error('This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.'));
  35740. }
  35741. }
  35742. })();
  35743. }
  35744. }
  35745. }
  35746. function getHostParentFiber(fiber) {
  35747. var parent = fiber.return;
  35748. while (parent !== null) {
  35749. if (isHostParent(parent)) {
  35750. return parent;
  35751. }
  35752. parent = parent.return;
  35753. }
  35754. (function () {
  35755. {
  35756. {
  35757. throw ReactError(Error('Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.'));
  35758. }
  35759. }
  35760. })();
  35761. }
  35762. function isHostParent(fiber) {
  35763. return fiber.tag === HostComponent || fiber.tag === HostRoot || fiber.tag === HostPortal;
  35764. }
  35765. function getHostSibling(fiber) {
  35766. // We're going to search forward into the tree until we find a sibling host
  35767. // node. Unfortunately, if multiple insertions are done in a row we have to
  35768. // search past them. This leads to exponential search for the next sibling.
  35769. var node = fiber;
  35770. siblings: while (true) {
  35771. // If we didn't find anything, let's try the next sibling.
  35772. while (node.sibling === null) {
  35773. if (node.return === null || isHostParent(node.return)) {
  35774. // If we pop out of the root or hit the parent the fiber we are the
  35775. // last sibling.
  35776. return null;
  35777. }
  35778. node = node.return;
  35779. }
  35780. node.sibling.return = node.return;
  35781. node = node.sibling;
  35782. while (node.tag !== HostComponent && node.tag !== HostText && node.tag !== DehydratedSuspenseComponent) {
  35783. // If it is not host node and, we might have a host node inside it.
  35784. // Try to search down until we find one.
  35785. if (node.effectTag & Placement) {
  35786. // If we don't have a child, try the siblings instead.
  35787. continue siblings;
  35788. }
  35789. // If we don't have a child, try the siblings instead.
  35790. // We also skip portals because they are not part of this host tree.
  35791. if (node.child === null || node.tag === HostPortal) {
  35792. continue siblings;
  35793. } else {
  35794. node.child.return = node;
  35795. node = node.child;
  35796. }
  35797. }
  35798. // Check if this host node is stable or about to be placed.
  35799. if (!(node.effectTag & Placement)) {
  35800. // Found it!
  35801. return node.stateNode;
  35802. }
  35803. }
  35804. }
  35805. function commitPlacement(finishedWork) {
  35806. if (!supportsMutation) {
  35807. return;
  35808. }
  35809. // Recursively insert all host nodes into the parent.
  35810. var parentFiber = getHostParentFiber(finishedWork);
  35811. // Note: these two variables *must* always be updated together.
  35812. var parent = void 0;
  35813. var isContainer = void 0;
  35814. var parentStateNode = parentFiber.stateNode;
  35815. switch (parentFiber.tag) {
  35816. case HostComponent:
  35817. parent = parentStateNode;
  35818. isContainer = false;
  35819. break;
  35820. case HostRoot:
  35821. parent = parentStateNode.containerInfo;
  35822. isContainer = true;
  35823. break;
  35824. case HostPortal:
  35825. parent = parentStateNode.containerInfo;
  35826. isContainer = true;
  35827. break;
  35828. case FundamentalComponent:
  35829. if (enableFundamentalAPI) {
  35830. parent = parentStateNode.instance;
  35831. isContainer = false;
  35832. }
  35833. // eslint-disable-next-line-no-fallthrough
  35834. default:
  35835. (function () {
  35836. {
  35837. {
  35838. throw ReactError(Error('Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.'));
  35839. }
  35840. }
  35841. })();
  35842. }
  35843. if (parentFiber.effectTag & ContentReset) {
  35844. // Reset the text content of the parent before doing any insertions
  35845. resetTextContent(parent);
  35846. // Clear ContentReset from the effect tag
  35847. parentFiber.effectTag &= ~ContentReset;
  35848. }
  35849. var before = getHostSibling(finishedWork);
  35850. // We only have the top Fiber that was inserted but we need to recurse down its
  35851. // children to find all the terminal nodes.
  35852. var node = finishedWork;
  35853. while (true) {
  35854. var isHost = node.tag === HostComponent || node.tag === HostText;
  35855. if (isHost || node.tag === FundamentalComponent) {
  35856. var stateNode = isHost ? node.stateNode : node.stateNode.instance;
  35857. if (before) {
  35858. if (isContainer) {
  35859. insertInContainerBefore(parent, stateNode, before);
  35860. } else {
  35861. insertBefore(parent, stateNode, before);
  35862. }
  35863. } else {
  35864. if (isContainer) {
  35865. appendChildToContainer(parent, stateNode);
  35866. } else {
  35867. appendChild(parent, stateNode);
  35868. }
  35869. }
  35870. } else if (node.tag === HostPortal) {
  35871. // If the insertion itself is a portal, then we don't want to traverse
  35872. // down its children. Instead, we'll get insertions from each child in
  35873. // the portal directly.
  35874. } else if (node.child !== null) {
  35875. node.child.return = node;
  35876. node = node.child;
  35877. continue;
  35878. }
  35879. if (node === finishedWork) {
  35880. return;
  35881. }
  35882. while (node.sibling === null) {
  35883. if (node.return === null || node.return === finishedWork) {
  35884. return;
  35885. }
  35886. node = node.return;
  35887. }
  35888. node.sibling.return = node.return;
  35889. node = node.sibling;
  35890. }
  35891. }
  35892. function unmountHostComponents(current$$1, renderPriorityLevel) {
  35893. // We only have the top Fiber that was deleted but we need to recurse down its
  35894. var node = current$$1;
  35895. // Each iteration, currentParent is populated with node's host parent if not
  35896. // currentParentIsValid.
  35897. var currentParentIsValid = false;
  35898. // Note: these two variables *must* always be updated together.
  35899. var currentParent = void 0;
  35900. var currentParentIsContainer = void 0;
  35901. while (true) {
  35902. if (!currentParentIsValid) {
  35903. var parent = node.return;
  35904. findParent: while (true) {
  35905. (function () {
  35906. if (!(parent !== null)) {
  35907. {
  35908. throw ReactError(Error('Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.'));
  35909. }
  35910. }
  35911. })();
  35912. var parentStateNode = parent.stateNode;
  35913. switch (parent.tag) {
  35914. case HostComponent:
  35915. currentParent = parentStateNode;
  35916. currentParentIsContainer = false;
  35917. break findParent;
  35918. case HostRoot:
  35919. currentParent = parentStateNode.containerInfo;
  35920. currentParentIsContainer = true;
  35921. break findParent;
  35922. case HostPortal:
  35923. currentParent = parentStateNode.containerInfo;
  35924. currentParentIsContainer = true;
  35925. break findParent;
  35926. case FundamentalComponent:
  35927. if (enableFundamentalAPI) {
  35928. currentParent = parentStateNode.instance;
  35929. currentParentIsContainer = false;
  35930. }
  35931. }
  35932. parent = parent.return;
  35933. }
  35934. currentParentIsValid = true;
  35935. }
  35936. if (node.tag === HostComponent || node.tag === HostText) {
  35937. commitNestedUnmounts(node, renderPriorityLevel);
  35938. // After all the children have unmounted, it is now safe to remove the
  35939. // node from the tree.
  35940. if (currentParentIsContainer) {
  35941. removeChildFromContainer(currentParent, node.stateNode);
  35942. } else {
  35943. removeChild(currentParent, node.stateNode);
  35944. }
  35945. // Don't visit children because we already visited them.
  35946. } else if (node.tag === FundamentalComponent) {
  35947. var fundamentalNode = node.stateNode.instance;
  35948. commitNestedUnmounts(node, renderPriorityLevel);
  35949. // After all the children have unmounted, it is now safe to remove the
  35950. // node from the tree.
  35951. if (currentParentIsContainer) {
  35952. removeChildFromContainer(currentParent, fundamentalNode);
  35953. } else {
  35954. removeChild(currentParent, fundamentalNode);
  35955. }
  35956. } else if (enableSuspenseServerRenderer && node.tag === DehydratedSuspenseComponent) {
  35957. // Delete the dehydrated suspense boundary and all of its content.
  35958. if (currentParentIsContainer) {
  35959. clearSuspenseBoundaryFromContainer(currentParent, node.stateNode);
  35960. } else {
  35961. clearSuspenseBoundary(currentParent, node.stateNode);
  35962. }
  35963. } else if (node.tag === HostPortal) {
  35964. if (node.child !== null) {
  35965. // When we go into a portal, it becomes the parent to remove from.
  35966. // We will reassign it back when we pop the portal on the way up.
  35967. currentParent = node.stateNode.containerInfo;
  35968. currentParentIsContainer = true;
  35969. // Visit children because portals might contain host components.
  35970. node.child.return = node;
  35971. node = node.child;
  35972. continue;
  35973. }
  35974. } else {
  35975. commitUnmount(node, renderPriorityLevel);
  35976. // Visit children because we may find more host components below.
  35977. if (node.child !== null) {
  35978. node.child.return = node;
  35979. node = node.child;
  35980. continue;
  35981. }
  35982. }
  35983. if (node === current$$1) {
  35984. return;
  35985. }
  35986. while (node.sibling === null) {
  35987. if (node.return === null || node.return === current$$1) {
  35988. return;
  35989. }
  35990. node = node.return;
  35991. if (node.tag === HostPortal) {
  35992. // When we go out of the portal, we need to restore the parent.
  35993. // Since we don't keep a stack of them, we will search for it.
  35994. currentParentIsValid = false;
  35995. }
  35996. }
  35997. node.sibling.return = node.return;
  35998. node = node.sibling;
  35999. }
  36000. }
  36001. function commitDeletion(current$$1, renderPriorityLevel) {
  36002. if (supportsMutation) {
  36003. // Recursively delete all host nodes from the parent.
  36004. // Detach refs and call componentWillUnmount() on the whole subtree.
  36005. unmountHostComponents(current$$1, renderPriorityLevel);
  36006. } else {
  36007. // Detach refs and call componentWillUnmount() on the whole subtree.
  36008. commitNestedUnmounts(current$$1, renderPriorityLevel);
  36009. }
  36010. detachFiber(current$$1);
  36011. }
  36012. function commitWork(current$$1, finishedWork) {
  36013. if (!supportsMutation) {
  36014. switch (finishedWork.tag) {
  36015. case FunctionComponent:
  36016. case ForwardRef:
  36017. case MemoComponent:
  36018. case SimpleMemoComponent:
  36019. {
  36020. // Note: We currently never use MountMutation, but useLayout uses
  36021. // UnmountMutation.
  36022. commitHookEffectList(UnmountMutation, MountMutation, finishedWork);
  36023. return;
  36024. }
  36025. case Profiler:
  36026. {
  36027. return;
  36028. }
  36029. case SuspenseComponent:
  36030. {
  36031. commitSuspenseComponent(finishedWork);
  36032. attachSuspenseRetryListeners(finishedWork);
  36033. return;
  36034. }
  36035. case SuspenseListComponent:
  36036. {
  36037. attachSuspenseRetryListeners(finishedWork);
  36038. return;
  36039. }
  36040. }
  36041. commitContainer(finishedWork);
  36042. return;
  36043. }
  36044. switch (finishedWork.tag) {
  36045. case FunctionComponent:
  36046. case ForwardRef:
  36047. case MemoComponent:
  36048. case SimpleMemoComponent:
  36049. {
  36050. // Note: We currently never use MountMutation, but useLayout uses
  36051. // UnmountMutation.
  36052. commitHookEffectList(UnmountMutation, MountMutation, finishedWork);
  36053. return;
  36054. }
  36055. case ClassComponent:
  36056. {
  36057. return;
  36058. }
  36059. case HostComponent:
  36060. {
  36061. var instance = finishedWork.stateNode;
  36062. if (instance != null) {
  36063. // Commit the work prepared earlier.
  36064. var newProps = finishedWork.memoizedProps;
  36065. // For hydration we reuse the update path but we treat the oldProps
  36066. // as the newProps. The updatePayload will contain the real change in
  36067. // this case.
  36068. var oldProps = current$$1 !== null ? current$$1.memoizedProps : newProps;
  36069. var type = finishedWork.type;
  36070. // TODO: Type the updateQueue to be specific to host components.
  36071. var updatePayload = finishedWork.updateQueue;
  36072. finishedWork.updateQueue = null;
  36073. if (updatePayload !== null) {
  36074. commitUpdate(instance, updatePayload, type, oldProps, newProps, finishedWork);
  36075. }
  36076. }
  36077. return;
  36078. }
  36079. case HostText:
  36080. {
  36081. (function () {
  36082. if (!(finishedWork.stateNode !== null)) {
  36083. {
  36084. throw ReactError(Error('This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.'));
  36085. }
  36086. }
  36087. })();
  36088. var textInstance = finishedWork.stateNode;
  36089. var newText = finishedWork.memoizedProps;
  36090. // For hydration we reuse the update path but we treat the oldProps
  36091. // as the newProps. The updatePayload will contain the real change in
  36092. // this case.
  36093. var oldText = current$$1 !== null ? current$$1.memoizedProps : newText;
  36094. commitTextUpdate(textInstance, oldText, newText);
  36095. return;
  36096. }
  36097. case HostRoot:
  36098. {
  36099. return;
  36100. }
  36101. case Profiler:
  36102. {
  36103. return;
  36104. }
  36105. case SuspenseComponent:
  36106. {
  36107. commitSuspenseComponent(finishedWork);
  36108. attachSuspenseRetryListeners(finishedWork);
  36109. return;
  36110. }
  36111. case SuspenseListComponent:
  36112. {
  36113. attachSuspenseRetryListeners(finishedWork);
  36114. return;
  36115. }
  36116. case IncompleteClassComponent:
  36117. {
  36118. return;
  36119. }
  36120. case FundamentalComponent:
  36121. {
  36122. if (enableFundamentalAPI) {
  36123. var fundamentalInstance = finishedWork.stateNode;
  36124. updateFundamentalComponent(fundamentalInstance);
  36125. }
  36126. return;
  36127. }
  36128. default:
  36129. {
  36130. (function () {
  36131. {
  36132. {
  36133. throw ReactError(Error('This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.'));
  36134. }
  36135. }
  36136. })();
  36137. }
  36138. }
  36139. }
  36140. function commitSuspenseComponent(finishedWork) {
  36141. var newState = finishedWork.memoizedState;
  36142. var newDidTimeout = void 0;
  36143. var primaryChildParent = finishedWork;
  36144. if (newState === null) {
  36145. newDidTimeout = false;
  36146. } else {
  36147. newDidTimeout = true;
  36148. primaryChildParent = finishedWork.child;
  36149. markCommitTimeOfFallback();
  36150. }
  36151. if (supportsMutation && primaryChildParent !== null) {
  36152. hideOrUnhideAllChildren(primaryChildParent, newDidTimeout);
  36153. }
  36154. if (enableSuspenseCallback && newState !== null) {
  36155. var suspenseCallback = finishedWork.memoizedProps.suspenseCallback;
  36156. if (typeof suspenseCallback === 'function') {
  36157. var thenables = finishedWork.updateQueue;
  36158. if (thenables !== null) {
  36159. suspenseCallback(new Set(thenables));
  36160. }
  36161. } else {
  36162. if (suspenseCallback !== undefined) {
  36163. warning$1(false, 'Unexpected type for suspenseCallback.');
  36164. }
  36165. }
  36166. }
  36167. }
  36168. function attachSuspenseRetryListeners(finishedWork) {
  36169. // If this boundary just timed out, then it will have a set of thenables.
  36170. // For each thenable, attach a listener so that when it resolves, React
  36171. var thenables = finishedWork.updateQueue;
  36172. if (thenables !== null) {
  36173. finishedWork.updateQueue = null;
  36174. var retryCache = finishedWork.stateNode;
  36175. if (retryCache === null) {
  36176. retryCache = finishedWork.stateNode = new PossiblyWeakSet$1();
  36177. }
  36178. thenables.forEach(function (thenable) {
  36179. // Memoize using the boundary fiber to prevent redundant listeners.
  36180. var retry = resolveRetryThenable.bind(null, finishedWork, thenable);
  36181. if (!retryCache.has(thenable)) {
  36182. if (enableSchedulerTracing) {
  36183. retry = tracing.unstable_wrap(retry);
  36184. }
  36185. retryCache.add(thenable);
  36186. thenable.then(retry, retry);
  36187. }
  36188. });
  36189. }
  36190. }
  36191. function commitResetTextContent(current$$1) {
  36192. if (!supportsMutation) {
  36193. return;
  36194. }
  36195. resetTextContent(current$$1.stateNode);
  36196. }
  36197. var PossiblyWeakSet = typeof WeakSet === 'function' ? WeakSet : Set;
  36198. var PossiblyWeakMap$1 = typeof WeakMap === 'function' ? WeakMap : Map;
  36199. function createRootErrorUpdate(fiber, errorInfo, expirationTime) {
  36200. var update = createUpdate(expirationTime, null);
  36201. // Unmount the root by rendering null.
  36202. update.tag = CaptureUpdate;
  36203. // Caution: React DevTools currently depends on this property
  36204. // being called "element".
  36205. update.payload = { element: null };
  36206. var error = errorInfo.value;
  36207. update.callback = function () {
  36208. onUncaughtError(error);
  36209. logError(fiber, errorInfo);
  36210. };
  36211. return update;
  36212. }
  36213. function createClassErrorUpdate(fiber, errorInfo, expirationTime) {
  36214. var update = createUpdate(expirationTime, null);
  36215. update.tag = CaptureUpdate;
  36216. var getDerivedStateFromError = fiber.type.getDerivedStateFromError;
  36217. if (typeof getDerivedStateFromError === 'function') {
  36218. var error = errorInfo.value;
  36219. update.payload = function () {
  36220. logError(fiber, errorInfo);
  36221. return getDerivedStateFromError(error);
  36222. };
  36223. }
  36224. var inst = fiber.stateNode;
  36225. if (inst !== null && typeof inst.componentDidCatch === 'function') {
  36226. update.callback = function callback() {
  36227. {
  36228. markFailedErrorBoundaryForHotReloading(fiber);
  36229. }
  36230. if (typeof getDerivedStateFromError !== 'function') {
  36231. // To preserve the preexisting retry behavior of error boundaries,
  36232. // we keep track of which ones already failed during this batch.
  36233. // This gets reset before we yield back to the browser.
  36234. // TODO: Warn in strict mode if getDerivedStateFromError is
  36235. // not defined.
  36236. markLegacyErrorBoundaryAsFailed(this);
  36237. // Only log here if componentDidCatch is the only error boundary method defined
  36238. logError(fiber, errorInfo);
  36239. }
  36240. var error = errorInfo.value;
  36241. var stack = errorInfo.stack;
  36242. this.componentDidCatch(error, {
  36243. componentStack: stack !== null ? stack : ''
  36244. });
  36245. {
  36246. if (typeof getDerivedStateFromError !== 'function') {
  36247. // If componentDidCatch is the only error boundary method defined,
  36248. // then it needs to call setState to recover from errors.
  36249. // If no state update is scheduled then the boundary will swallow the error.
  36250. !(fiber.expirationTime === Sync) ? warningWithoutStack$1(false, '%s: Error boundaries should implement getDerivedStateFromError(). ' + 'In that method, return a state update to display an error message or fallback UI.', getComponentName(fiber.type) || 'Unknown') : void 0;
  36251. }
  36252. }
  36253. };
  36254. } else {
  36255. update.callback = function () {
  36256. markFailedErrorBoundaryForHotReloading(fiber);
  36257. };
  36258. }
  36259. return update;
  36260. }
  36261. function attachPingListener(root, renderExpirationTime, thenable) {
  36262. // Attach a listener to the promise to "ping" the root and retry. But
  36263. // only if one does not already exist for the current render expiration
  36264. // time (which acts like a "thread ID" here).
  36265. var pingCache = root.pingCache;
  36266. var threadIDs = void 0;
  36267. if (pingCache === null) {
  36268. pingCache = root.pingCache = new PossiblyWeakMap$1();
  36269. threadIDs = new Set();
  36270. pingCache.set(thenable, threadIDs);
  36271. } else {
  36272. threadIDs = pingCache.get(thenable);
  36273. if (threadIDs === undefined) {
  36274. threadIDs = new Set();
  36275. pingCache.set(thenable, threadIDs);
  36276. }
  36277. }
  36278. if (!threadIDs.has(renderExpirationTime)) {
  36279. // Memoize using the thread ID to prevent redundant listeners.
  36280. threadIDs.add(renderExpirationTime);
  36281. var ping = pingSuspendedRoot.bind(null, root, thenable, renderExpirationTime);
  36282. if (enableSchedulerTracing) {
  36283. ping = tracing.unstable_wrap(ping);
  36284. }
  36285. thenable.then(ping, ping);
  36286. }
  36287. }
  36288. function throwException(root, returnFiber, sourceFiber, value, renderExpirationTime) {
  36289. // The source fiber did not complete.
  36290. sourceFiber.effectTag |= Incomplete;
  36291. // Its effect list is no longer valid.
  36292. sourceFiber.firstEffect = sourceFiber.lastEffect = null;
  36293. if (value !== null && typeof value === 'object' && typeof value.then === 'function') {
  36294. // This is a thenable.
  36295. var thenable = value;
  36296. checkForWrongSuspensePriorityInDEV(sourceFiber);
  36297. var hasInvisibleParentBoundary = hasSuspenseContext(suspenseStackCursor.current, InvisibleParentSuspenseContext);
  36298. // Schedule the nearest Suspense to re-render the timed out view.
  36299. var _workInProgress = returnFiber;
  36300. do {
  36301. if (_workInProgress.tag === SuspenseComponent && shouldCaptureSuspense(_workInProgress, hasInvisibleParentBoundary)) {
  36302. // Found the nearest boundary.
  36303. // Stash the promise on the boundary fiber. If the boundary times out, we'll
  36304. var thenables = _workInProgress.updateQueue;
  36305. if (thenables === null) {
  36306. var updateQueue = new Set();
  36307. updateQueue.add(thenable);
  36308. _workInProgress.updateQueue = updateQueue;
  36309. } else {
  36310. thenables.add(thenable);
  36311. }
  36312. // If the boundary is outside of batched mode, we should *not*
  36313. // suspend the commit. Pretend as if the suspended component rendered
  36314. // null and keep rendering. In the commit phase, we'll schedule a
  36315. // subsequent synchronous update to re-render the Suspense.
  36316. //
  36317. // Note: It doesn't matter whether the component that suspended was
  36318. // inside a batched mode tree. If the Suspense is outside of it, we
  36319. // should *not* suspend the commit.
  36320. if ((_workInProgress.mode & BatchedMode) === NoMode) {
  36321. _workInProgress.effectTag |= DidCapture;
  36322. // We're going to commit this fiber even though it didn't complete.
  36323. // But we shouldn't call any lifecycle methods or callbacks. Remove
  36324. // all lifecycle effect tags.
  36325. sourceFiber.effectTag &= ~(LifecycleEffectMask | Incomplete);
  36326. if (sourceFiber.tag === ClassComponent) {
  36327. var currentSourceFiber = sourceFiber.alternate;
  36328. if (currentSourceFiber === null) {
  36329. // This is a new mount. Change the tag so it's not mistaken for a
  36330. // completed class component. For example, we should not call
  36331. // componentWillUnmount if it is deleted.
  36332. sourceFiber.tag = IncompleteClassComponent;
  36333. } else {
  36334. // When we try rendering again, we should not reuse the current fiber,
  36335. // since it's known to be in an inconsistent state. Use a force update to
  36336. // prevent a bail out.
  36337. var update = createUpdate(Sync, null);
  36338. update.tag = ForceUpdate;
  36339. enqueueUpdate(sourceFiber, update);
  36340. }
  36341. }
  36342. // The source fiber did not complete. Mark it with Sync priority to
  36343. // indicate that it still has pending work.
  36344. sourceFiber.expirationTime = Sync;
  36345. // Exit without suspending.
  36346. return;
  36347. }
  36348. // Confirmed that the boundary is in a concurrent mode tree. Continue
  36349. // with the normal suspend path.
  36350. //
  36351. // After this we'll use a set of heuristics to determine whether this
  36352. // render pass will run to completion or restart or "suspend" the commit.
  36353. // The actual logic for this is spread out in different places.
  36354. //
  36355. // This first principle is that if we're going to suspend when we complete
  36356. // a root, then we should also restart if we get an update or ping that
  36357. // might unsuspend it, and vice versa. The only reason to suspend is
  36358. // because you think you might want to restart before committing. However,
  36359. // it doesn't make sense to restart only while in the period we're suspended.
  36360. //
  36361. // Restarting too aggressively is also not good because it starves out any
  36362. // intermediate loading state. So we use heuristics to determine when.
  36363. // Suspense Heuristics
  36364. //
  36365. // If nothing threw a Promise or all the same fallbacks are already showing,
  36366. // then don't suspend/restart.
  36367. //
  36368. // If this is an initial render of a new tree of Suspense boundaries and
  36369. // those trigger a fallback, then don't suspend/restart. We want to ensure
  36370. // that we can show the initial loading state as quickly as possible.
  36371. //
  36372. // If we hit a "Delayed" case, such as when we'd switch from content back into
  36373. // a fallback, then we should always suspend/restart. SuspenseConfig applies to
  36374. // this case. If none is defined, JND is used instead.
  36375. //
  36376. // If we're already showing a fallback and it gets "retried", allowing us to show
  36377. // another level, but there's still an inner boundary that would show a fallback,
  36378. // then we suspend/restart for 500ms since the last time we showed a fallback
  36379. // anywhere in the tree. This effectively throttles progressive loading into a
  36380. // consistent train of commits. This also gives us an opportunity to restart to
  36381. // get to the completed state slightly earlier.
  36382. //
  36383. // If there's ambiguity due to batching it's resolved in preference of:
  36384. // 1) "delayed", 2) "initial render", 3) "retry".
  36385. //
  36386. // We want to ensure that a "busy" state doesn't get force committed. We want to
  36387. // ensure that new initial loading states can commit as soon as possible.
  36388. attachPingListener(root, renderExpirationTime, thenable);
  36389. _workInProgress.effectTag |= ShouldCapture;
  36390. _workInProgress.expirationTime = renderExpirationTime;
  36391. return;
  36392. } else if (enableSuspenseServerRenderer && _workInProgress.tag === DehydratedSuspenseComponent) {
  36393. attachPingListener(root, renderExpirationTime, thenable);
  36394. // Since we already have a current fiber, we can eagerly add a retry listener.
  36395. var retryCache = _workInProgress.memoizedState;
  36396. if (retryCache === null) {
  36397. retryCache = _workInProgress.memoizedState = new PossiblyWeakSet();
  36398. var current$$1 = _workInProgress.alternate;
  36399. (function () {
  36400. if (!current$$1) {
  36401. {
  36402. throw ReactError(Error('A dehydrated suspense boundary must commit before trying to render. This is probably a bug in React.'));
  36403. }
  36404. }
  36405. })();
  36406. current$$1.memoizedState = retryCache;
  36407. }
  36408. // Memoize using the boundary fiber to prevent redundant listeners.
  36409. if (!retryCache.has(thenable)) {
  36410. retryCache.add(thenable);
  36411. var retry = resolveRetryThenable.bind(null, _workInProgress, thenable);
  36412. if (enableSchedulerTracing) {
  36413. retry = tracing.unstable_wrap(retry);
  36414. }
  36415. thenable.then(retry, retry);
  36416. }
  36417. _workInProgress.effectTag |= ShouldCapture;
  36418. _workInProgress.expirationTime = renderExpirationTime;
  36419. return;
  36420. }
  36421. // This boundary already captured during this render. Continue to the next
  36422. // boundary.
  36423. _workInProgress = _workInProgress.return;
  36424. } while (_workInProgress !== null);
  36425. // No boundary was found. Fallthrough to error mode.
  36426. // TODO: Use invariant so the message is stripped in prod?
  36427. value = new Error((getComponentName(sourceFiber.type) || 'A React component') + ' suspended while rendering, but no fallback UI was specified.\n' + '\n' + 'Add a <Suspense fallback=...> component higher in the tree to ' + 'provide a loading indicator or placeholder to display.' + getStackByFiberInDevAndProd(sourceFiber));
  36428. }
  36429. // We didn't find a boundary that could handle this type of exception. Start
  36430. // over and traverse parent path again, this time treating the exception
  36431. // as an error.
  36432. renderDidError();
  36433. value = createCapturedValue(value, sourceFiber);
  36434. var workInProgress = returnFiber;
  36435. do {
  36436. switch (workInProgress.tag) {
  36437. case HostRoot:
  36438. {
  36439. var _errorInfo = value;
  36440. workInProgress.effectTag |= ShouldCapture;
  36441. workInProgress.expirationTime = renderExpirationTime;
  36442. var _update = createRootErrorUpdate(workInProgress, _errorInfo, renderExpirationTime);
  36443. enqueueCapturedUpdate(workInProgress, _update);
  36444. return;
  36445. }
  36446. case ClassComponent:
  36447. // Capture and retry
  36448. var errorInfo = value;
  36449. var ctor = workInProgress.type;
  36450. var instance = workInProgress.stateNode;
  36451. if ((workInProgress.effectTag & DidCapture) === NoEffect && (typeof ctor.getDerivedStateFromError === 'function' || instance !== null && typeof instance.componentDidCatch === 'function' && !isAlreadyFailedLegacyErrorBoundary(instance))) {
  36452. workInProgress.effectTag |= ShouldCapture;
  36453. workInProgress.expirationTime = renderExpirationTime;
  36454. // Schedule the error boundary to re-render using updated state
  36455. var _update2 = createClassErrorUpdate(workInProgress, errorInfo, renderExpirationTime);
  36456. enqueueCapturedUpdate(workInProgress, _update2);
  36457. return;
  36458. }
  36459. break;
  36460. default:
  36461. break;
  36462. }
  36463. workInProgress = workInProgress.return;
  36464. } while (workInProgress !== null);
  36465. }
  36466. // The scheduler is imported here *only* to detect whether it's been mocked
  36467. // DEV stuff
  36468. var ceil = Math.ceil;
  36469. var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
  36470. var ReactCurrentOwner$2 = ReactSharedInternals.ReactCurrentOwner;
  36471. var IsSomeRendererActing = ReactSharedInternals.IsSomeRendererActing;
  36472. var NoContext = /* */0;
  36473. var BatchedContext = /* */1;
  36474. var EventContext = /* */2;
  36475. var DiscreteEventContext = /* */4;
  36476. var LegacyUnbatchedContext = /* */8;
  36477. var RenderContext = /* */16;
  36478. var CommitContext = /* */32;
  36479. var RootIncomplete = 0;
  36480. var RootErrored = 1;
  36481. var RootSuspended = 2;
  36482. var RootSuspendedWithDelay = 3;
  36483. var RootCompleted = 4;
  36484. // Describes where we are in the React execution stack
  36485. var executionContext = NoContext;
  36486. // The root we're working on
  36487. var workInProgressRoot = null;
  36488. // The fiber we're working on
  36489. var workInProgress = null;
  36490. // The expiration time we're rendering
  36491. var renderExpirationTime = NoWork;
  36492. // Whether to root completed, errored, suspended, etc.
  36493. var workInProgressRootExitStatus = RootIncomplete;
  36494. // Most recent event time among processed updates during this render.
  36495. // This is conceptually a time stamp but expressed in terms of an ExpirationTime
  36496. // because we deal mostly with expiration times in the hot path, so this avoids
  36497. // the conversion happening in the hot path.
  36498. var workInProgressRootLatestProcessedExpirationTime = Sync;
  36499. var workInProgressRootLatestSuspenseTimeout = Sync;
  36500. var workInProgressRootCanSuspendUsingConfig = null;
  36501. // If we're pinged while rendering we don't always restart immediately.
  36502. // This flag determines if it might be worthwhile to restart if an opportunity
  36503. // happens latere.
  36504. var workInProgressRootHasPendingPing = false;
  36505. // The most recent time we committed a fallback. This lets us ensure a train
  36506. // model where we don't commit new loading states in too quick succession.
  36507. var globalMostRecentFallbackTime = 0;
  36508. var FALLBACK_THROTTLE_MS = 500;
  36509. var nextEffect = null;
  36510. var hasUncaughtError = false;
  36511. var firstUncaughtError = null;
  36512. var legacyErrorBoundariesThatAlreadyFailed = null;
  36513. var rootDoesHavePassiveEffects = false;
  36514. var rootWithPendingPassiveEffects = null;
  36515. var pendingPassiveEffectsRenderPriority = NoPriority;
  36516. var pendingPassiveEffectsExpirationTime = NoWork;
  36517. var rootsWithPendingDiscreteUpdates = null;
  36518. // Use these to prevent an infinite loop of nested updates
  36519. var NESTED_UPDATE_LIMIT = 50;
  36520. var nestedUpdateCount = 0;
  36521. var rootWithNestedUpdates = null;
  36522. var NESTED_PASSIVE_UPDATE_LIMIT = 50;
  36523. var nestedPassiveUpdateCount = 0;
  36524. var interruptedBy = null;
  36525. // Marks the need to reschedule pending interactions at these expiration times
  36526. // during the commit phase. This enables them to be traced across components
  36527. // that spawn new work during render. E.g. hidden boundaries, suspended SSR
  36528. // hydration or SuspenseList.
  36529. var spawnedWorkDuringRender = null;
  36530. // Expiration times are computed by adding to the current time (the start
  36531. // time). However, if two updates are scheduled within the same event, we
  36532. // should treat their start times as simultaneous, even if the actual clock
  36533. // time has advanced between the first and second call.
  36534. // In other words, because expiration times determine how updates are batched,
  36535. // we want all updates of like priority that occur within the same event to
  36536. // receive the same expiration time. Otherwise we get tearing.
  36537. var currentEventTime = NoWork;
  36538. function requestCurrentTime() {
  36539. if ((executionContext & (RenderContext | CommitContext)) !== NoContext) {
  36540. // We're inside React, so it's fine to read the actual time.
  36541. return msToExpirationTime(now());
  36542. }
  36543. // We're not inside React, so we may be in the middle of a browser event.
  36544. if (currentEventTime !== NoWork) {
  36545. // Use the same start time for all updates until we enter React again.
  36546. return currentEventTime;
  36547. }
  36548. // This is the first update since React yielded. Compute a new start time.
  36549. currentEventTime = msToExpirationTime(now());
  36550. return currentEventTime;
  36551. }
  36552. function computeExpirationForFiber(currentTime, fiber, suspenseConfig) {
  36553. var mode = fiber.mode;
  36554. if ((mode & BatchedMode) === NoMode) {
  36555. return Sync;
  36556. }
  36557. var priorityLevel = getCurrentPriorityLevel();
  36558. if ((mode & ConcurrentMode) === NoMode) {
  36559. return priorityLevel === ImmediatePriority ? Sync : Batched;
  36560. }
  36561. if ((executionContext & RenderContext) !== NoContext) {
  36562. // Use whatever time we're already rendering
  36563. return renderExpirationTime;
  36564. }
  36565. var expirationTime = void 0;
  36566. if (suspenseConfig !== null) {
  36567. // Compute an expiration time based on the Suspense timeout.
  36568. expirationTime = computeSuspenseExpiration(currentTime, suspenseConfig.timeoutMs | 0 || LOW_PRIORITY_EXPIRATION);
  36569. } else {
  36570. // Compute an expiration time based on the Scheduler priority.
  36571. switch (priorityLevel) {
  36572. case ImmediatePriority:
  36573. expirationTime = Sync;
  36574. break;
  36575. case UserBlockingPriority$2:
  36576. // TODO: Rename this to computeUserBlockingExpiration
  36577. expirationTime = computeInteractiveExpiration(currentTime);
  36578. break;
  36579. case NormalPriority:
  36580. case LowPriority:
  36581. // TODO: Handle LowPriority
  36582. // TODO: Rename this to... something better.
  36583. expirationTime = computeAsyncExpiration(currentTime);
  36584. break;
  36585. case IdlePriority:
  36586. expirationTime = Never;
  36587. break;
  36588. default:
  36589. (function () {
  36590. {
  36591. {
  36592. throw ReactError(Error('Expected a valid priority level'));
  36593. }
  36594. }
  36595. })();
  36596. }
  36597. }
  36598. // If we're in the middle of rendering a tree, do not update at the same
  36599. // expiration time that is already rendering.
  36600. // TODO: We shouldn't have to do this if the update is on a different root.
  36601. // Refactor computeExpirationForFiber + scheduleUpdate so we have access to
  36602. // the root when we check for this condition.
  36603. if (workInProgressRoot !== null && expirationTime === renderExpirationTime) {
  36604. // This is a trick to move this update into a separate batch
  36605. expirationTime -= 1;
  36606. }
  36607. return expirationTime;
  36608. }
  36609. var lastUniqueAsyncExpiration = NoWork;
  36610. function computeUniqueAsyncExpiration() {
  36611. var currentTime = requestCurrentTime();
  36612. var result = computeAsyncExpiration(currentTime);
  36613. if (result <= lastUniqueAsyncExpiration) {
  36614. // Since we assume the current time monotonically increases, we only hit
  36615. // this branch when computeUniqueAsyncExpiration is fired multiple times
  36616. // within a 200ms window (or whatever the async bucket size is).
  36617. result -= 1;
  36618. }
  36619. lastUniqueAsyncExpiration = result;
  36620. return result;
  36621. }
  36622. function scheduleUpdateOnFiber(fiber, expirationTime) {
  36623. checkForNestedUpdates();
  36624. warnAboutInvalidUpdatesOnClassComponentsInDEV(fiber);
  36625. var root = markUpdateTimeFromFiberToRoot(fiber, expirationTime);
  36626. if (root === null) {
  36627. warnAboutUpdateOnUnmountedFiberInDEV(fiber);
  36628. return;
  36629. }
  36630. root.pingTime = NoWork;
  36631. checkForInterruption(fiber, expirationTime);
  36632. recordScheduleUpdate();
  36633. // TODO: computeExpirationForFiber also reads the priority. Pass the
  36634. // priority as an argument to that function and this one.
  36635. var priorityLevel = getCurrentPriorityLevel();
  36636. if (expirationTime === Sync) {
  36637. if (
  36638. // Check if we're inside unbatchedUpdates
  36639. (executionContext & LegacyUnbatchedContext) !== NoContext &&
  36640. // Check if we're not already rendering
  36641. (executionContext & (RenderContext | CommitContext)) === NoContext) {
  36642. // Register pending interactions on the root to avoid losing traced interaction data.
  36643. schedulePendingInteractions(root, expirationTime);
  36644. // This is a legacy edge case. The initial mount of a ReactDOM.render-ed
  36645. // root inside of batchedUpdates should be synchronous, but layout updates
  36646. // should be deferred until the end of the batch.
  36647. var callback = renderRoot(root, Sync, true);
  36648. while (callback !== null) {
  36649. callback = callback(true);
  36650. }
  36651. } else {
  36652. scheduleCallbackForRoot(root, ImmediatePriority, Sync);
  36653. if (executionContext === NoContext) {
  36654. // Flush the synchronous work now, wnless we're already working or inside
  36655. // a batch. This is intentionally inside scheduleUpdateOnFiber instead of
  36656. // scheduleCallbackForFiber to preserve the ability to schedule a callback
  36657. // without immediately flushing it. We only do this for user-initiated
  36658. // updates, to preserve historical behavior of sync mode.
  36659. flushSyncCallbackQueue();
  36660. }
  36661. }
  36662. } else {
  36663. scheduleCallbackForRoot(root, priorityLevel, expirationTime);
  36664. }
  36665. if ((executionContext & DiscreteEventContext) !== NoContext && (
  36666. // Only updates at user-blocking priority or greater are considered
  36667. // discrete, even inside a discrete event.
  36668. priorityLevel === UserBlockingPriority$2 || priorityLevel === ImmediatePriority)) {
  36669. // This is the result of a discrete event. Track the lowest priority
  36670. // discrete update per root so we can flush them early, if needed.
  36671. if (rootsWithPendingDiscreteUpdates === null) {
  36672. rootsWithPendingDiscreteUpdates = new Map([[root, expirationTime]]);
  36673. } else {
  36674. var lastDiscreteTime = rootsWithPendingDiscreteUpdates.get(root);
  36675. if (lastDiscreteTime === undefined || lastDiscreteTime > expirationTime) {
  36676. rootsWithPendingDiscreteUpdates.set(root, expirationTime);
  36677. }
  36678. }
  36679. }
  36680. }
  36681. var scheduleWork = scheduleUpdateOnFiber;
  36682. // This is split into a separate function so we can mark a fiber with pending
  36683. // work without treating it as a typical update that originates from an event;
  36684. // e.g. retrying a Suspense boundary isn't an update, but it does schedule work
  36685. // on a fiber.
  36686. function markUpdateTimeFromFiberToRoot(fiber, expirationTime) {
  36687. // Update the source fiber's expiration time
  36688. if (fiber.expirationTime < expirationTime) {
  36689. fiber.expirationTime = expirationTime;
  36690. }
  36691. var alternate = fiber.alternate;
  36692. if (alternate !== null && alternate.expirationTime < expirationTime) {
  36693. alternate.expirationTime = expirationTime;
  36694. }
  36695. // Walk the parent path to the root and update the child expiration time.
  36696. var node = fiber.return;
  36697. var root = null;
  36698. if (node === null && fiber.tag === HostRoot) {
  36699. root = fiber.stateNode;
  36700. } else {
  36701. while (node !== null) {
  36702. alternate = node.alternate;
  36703. if (node.childExpirationTime < expirationTime) {
  36704. node.childExpirationTime = expirationTime;
  36705. if (alternate !== null && alternate.childExpirationTime < expirationTime) {
  36706. alternate.childExpirationTime = expirationTime;
  36707. }
  36708. } else if (alternate !== null && alternate.childExpirationTime < expirationTime) {
  36709. alternate.childExpirationTime = expirationTime;
  36710. }
  36711. if (node.return === null && node.tag === HostRoot) {
  36712. root = node.stateNode;
  36713. break;
  36714. }
  36715. node = node.return;
  36716. }
  36717. }
  36718. if (root !== null) {
  36719. // Update the first and last pending expiration times in this root
  36720. var firstPendingTime = root.firstPendingTime;
  36721. if (expirationTime > firstPendingTime) {
  36722. root.firstPendingTime = expirationTime;
  36723. }
  36724. var lastPendingTime = root.lastPendingTime;
  36725. if (lastPendingTime === NoWork || expirationTime < lastPendingTime) {
  36726. root.lastPendingTime = expirationTime;
  36727. }
  36728. }
  36729. return root;
  36730. }
  36731. // Use this function, along with runRootCallback, to ensure that only a single
  36732. // callback per root is scheduled. It's still possible to call renderRoot
  36733. // directly, but scheduling via this function helps avoid excessive callbacks.
  36734. // It works by storing the callback node and expiration time on the root. When a
  36735. // new callback comes in, it compares the expiration time to determine if it
  36736. // should cancel the previous one. It also relies on commitRoot scheduling a
  36737. // callback to render the next level, because that means we don't need a
  36738. // separate callback per expiration time.
  36739. function scheduleCallbackForRoot(root, priorityLevel, expirationTime) {
  36740. var existingCallbackExpirationTime = root.callbackExpirationTime;
  36741. if (existingCallbackExpirationTime < expirationTime) {
  36742. // New callback has higher priority than the existing one.
  36743. var existingCallbackNode = root.callbackNode;
  36744. if (existingCallbackNode !== null) {
  36745. cancelCallback(existingCallbackNode);
  36746. }
  36747. root.callbackExpirationTime = expirationTime;
  36748. if (expirationTime === Sync) {
  36749. // Sync React callbacks are scheduled on a special internal queue
  36750. root.callbackNode = scheduleSyncCallback(runRootCallback.bind(null, root, renderRoot.bind(null, root, expirationTime)));
  36751. } else {
  36752. var options = null;
  36753. if (!disableSchedulerTimeoutBasedOnReactExpirationTime && expirationTime !== Never) {
  36754. var timeout = expirationTimeToMs(expirationTime) - now();
  36755. options = { timeout: timeout };
  36756. }
  36757. root.callbackNode = scheduleCallback(priorityLevel, runRootCallback.bind(null, root, renderRoot.bind(null, root, expirationTime)), options);
  36758. if (enableUserTimingAPI && expirationTime !== Sync && (executionContext & (RenderContext | CommitContext)) === NoContext) {
  36759. // Scheduled an async callback, and we're not already working. Add an
  36760. // entry to the flamegraph that shows we're waiting for a callback
  36761. // to fire.
  36762. startRequestCallbackTimer();
  36763. }
  36764. }
  36765. }
  36766. // Associate the current interactions with this new root+priority.
  36767. schedulePendingInteractions(root, expirationTime);
  36768. }
  36769. function runRootCallback(root, callback, isSync) {
  36770. var prevCallbackNode = root.callbackNode;
  36771. var continuation = null;
  36772. try {
  36773. continuation = callback(isSync);
  36774. if (continuation !== null) {
  36775. return runRootCallback.bind(null, root, continuation);
  36776. } else {
  36777. return null;
  36778. }
  36779. } finally {
  36780. // If the callback exits without returning a continuation, remove the
  36781. // corresponding callback node from the root. Unless the callback node
  36782. // has changed, which implies that it was already cancelled by a high
  36783. // priority update.
  36784. if (continuation === null && prevCallbackNode === root.callbackNode) {
  36785. root.callbackNode = null;
  36786. root.callbackExpirationTime = NoWork;
  36787. }
  36788. }
  36789. }
  36790. function flushRoot(root, expirationTime) {
  36791. if ((executionContext & (RenderContext | CommitContext)) !== NoContext) {
  36792. (function () {
  36793. {
  36794. {
  36795. throw ReactError(Error('work.commit(): Cannot commit while already rendering. This likely means you attempted to commit from inside a lifecycle method.'));
  36796. }
  36797. }
  36798. })();
  36799. }
  36800. scheduleSyncCallback(renderRoot.bind(null, root, expirationTime));
  36801. flushSyncCallbackQueue();
  36802. }
  36803. function flushDiscreteUpdates() {
  36804. // TODO: Should be able to flush inside batchedUpdates, but not inside `act`.
  36805. // However, `act` uses `batchedUpdates`, so there's no way to distinguish
  36806. // those two cases. Need to fix this before exposing flushDiscreteUpdates
  36807. // as a public API.
  36808. if ((executionContext & (BatchedContext | RenderContext | CommitContext)) !== NoContext) {
  36809. if ( true && (executionContext & RenderContext) !== NoContext) {
  36810. warning$1(false, 'unstable_flushDiscreteUpdates: Cannot flush updates when React is ' + 'already rendering.');
  36811. }
  36812. // We're already rendering, so we can't synchronously flush pending work.
  36813. // This is probably a nested event dispatch triggered by a lifecycle/effect,
  36814. // like `el.focus()`. Exit.
  36815. return;
  36816. }
  36817. flushPendingDiscreteUpdates();
  36818. if (!revertPassiveEffectsChange) {
  36819. // If the discrete updates scheduled passive effects, flush them now so that
  36820. // they fire before the next serial event.
  36821. flushPassiveEffects();
  36822. }
  36823. }
  36824. function resolveLocksOnRoot(root, expirationTime) {
  36825. var firstBatch = root.firstBatch;
  36826. if (firstBatch !== null && firstBatch._defer && firstBatch._expirationTime >= expirationTime) {
  36827. scheduleCallback(NormalPriority, function () {
  36828. firstBatch._onComplete();
  36829. return null;
  36830. });
  36831. return true;
  36832. } else {
  36833. return false;
  36834. }
  36835. }
  36836. function flushPendingDiscreteUpdates() {
  36837. if (rootsWithPendingDiscreteUpdates !== null) {
  36838. // For each root with pending discrete updates, schedule a callback to
  36839. // immediately flush them.
  36840. var roots = rootsWithPendingDiscreteUpdates;
  36841. rootsWithPendingDiscreteUpdates = null;
  36842. roots.forEach(function (expirationTime, root) {
  36843. scheduleSyncCallback(renderRoot.bind(null, root, expirationTime));
  36844. });
  36845. // Now flush the immediate queue.
  36846. flushSyncCallbackQueue();
  36847. }
  36848. }
  36849. function batchedUpdates$1(fn, a) {
  36850. var prevExecutionContext = executionContext;
  36851. executionContext |= BatchedContext;
  36852. try {
  36853. return fn(a);
  36854. } finally {
  36855. executionContext = prevExecutionContext;
  36856. if (executionContext === NoContext) {
  36857. // Flush the immediate callbacks that were scheduled during this batch
  36858. flushSyncCallbackQueue();
  36859. }
  36860. }
  36861. }
  36862. function batchedEventUpdates$1(fn, a) {
  36863. var prevExecutionContext = executionContext;
  36864. executionContext |= EventContext;
  36865. try {
  36866. return fn(a);
  36867. } finally {
  36868. executionContext = prevExecutionContext;
  36869. if (executionContext === NoContext) {
  36870. // Flush the immediate callbacks that were scheduled during this batch
  36871. flushSyncCallbackQueue();
  36872. }
  36873. }
  36874. }
  36875. function discreteUpdates$1(fn, a, b, c) {
  36876. var prevExecutionContext = executionContext;
  36877. executionContext |= DiscreteEventContext;
  36878. try {
  36879. // Should this
  36880. return runWithPriority$2(UserBlockingPriority$2, fn.bind(null, a, b, c));
  36881. } finally {
  36882. executionContext = prevExecutionContext;
  36883. if (executionContext === NoContext) {
  36884. // Flush the immediate callbacks that were scheduled during this batch
  36885. flushSyncCallbackQueue();
  36886. }
  36887. }
  36888. }
  36889. function unbatchedUpdates(fn, a) {
  36890. var prevExecutionContext = executionContext;
  36891. executionContext &= ~BatchedContext;
  36892. executionContext |= LegacyUnbatchedContext;
  36893. try {
  36894. return fn(a);
  36895. } finally {
  36896. executionContext = prevExecutionContext;
  36897. if (executionContext === NoContext) {
  36898. // Flush the immediate callbacks that were scheduled during this batch
  36899. flushSyncCallbackQueue();
  36900. }
  36901. }
  36902. }
  36903. function flushSync(fn, a) {
  36904. if ((executionContext & (RenderContext | CommitContext)) !== NoContext) {
  36905. (function () {
  36906. {
  36907. {
  36908. throw ReactError(Error('flushSync was called from inside a lifecycle method. It cannot be called when React is already rendering.'));
  36909. }
  36910. }
  36911. })();
  36912. }
  36913. var prevExecutionContext = executionContext;
  36914. executionContext |= BatchedContext;
  36915. try {
  36916. return runWithPriority$2(ImmediatePriority, fn.bind(null, a));
  36917. } finally {
  36918. executionContext = prevExecutionContext;
  36919. // Flush the immediate callbacks that were scheduled during this batch.
  36920. // Note that this will happen even if batchedUpdates is higher up
  36921. // the stack.
  36922. flushSyncCallbackQueue();
  36923. }
  36924. }
  36925. function flushControlled(fn) {
  36926. var prevExecutionContext = executionContext;
  36927. executionContext |= BatchedContext;
  36928. try {
  36929. runWithPriority$2(ImmediatePriority, fn);
  36930. } finally {
  36931. executionContext = prevExecutionContext;
  36932. if (executionContext === NoContext) {
  36933. // Flush the immediate callbacks that were scheduled during this batch
  36934. flushSyncCallbackQueue();
  36935. }
  36936. }
  36937. }
  36938. function prepareFreshStack(root, expirationTime) {
  36939. root.finishedWork = null;
  36940. root.finishedExpirationTime = NoWork;
  36941. var timeoutHandle = root.timeoutHandle;
  36942. if (timeoutHandle !== noTimeout) {
  36943. // The root previous suspended and scheduled a timeout to commit a fallback
  36944. // state. Now that we have additional work, cancel the timeout.
  36945. root.timeoutHandle = noTimeout;
  36946. // $FlowFixMe Complains noTimeout is not a TimeoutID, despite the check above
  36947. cancelTimeout(timeoutHandle);
  36948. }
  36949. if (workInProgress !== null) {
  36950. var interruptedWork = workInProgress.return;
  36951. while (interruptedWork !== null) {
  36952. unwindInterruptedWork(interruptedWork);
  36953. interruptedWork = interruptedWork.return;
  36954. }
  36955. }
  36956. workInProgressRoot = root;
  36957. workInProgress = createWorkInProgress(root.current, null, expirationTime);
  36958. renderExpirationTime = expirationTime;
  36959. workInProgressRootExitStatus = RootIncomplete;
  36960. workInProgressRootLatestProcessedExpirationTime = Sync;
  36961. workInProgressRootLatestSuspenseTimeout = Sync;
  36962. workInProgressRootCanSuspendUsingConfig = null;
  36963. workInProgressRootHasPendingPing = false;
  36964. if (enableSchedulerTracing) {
  36965. spawnedWorkDuringRender = null;
  36966. }
  36967. {
  36968. ReactStrictModeWarnings.discardPendingWarnings();
  36969. componentsThatTriggeredHighPriSuspend = null;
  36970. }
  36971. }
  36972. function renderRoot(root, expirationTime, isSync) {
  36973. (function () {
  36974. if (!((executionContext & (RenderContext | CommitContext)) === NoContext)) {
  36975. {
  36976. throw ReactError(Error('Should not already be working.'));
  36977. }
  36978. }
  36979. })();
  36980. if (enableUserTimingAPI && expirationTime !== Sync) {
  36981. var didExpire = isSync;
  36982. stopRequestCallbackTimer(didExpire);
  36983. }
  36984. if (root.firstPendingTime < expirationTime) {
  36985. // If there's no work left at this expiration time, exit immediately. This
  36986. // happens when multiple callbacks are scheduled for a single root, but an
  36987. // earlier callback flushes the work of a later one.
  36988. return null;
  36989. }
  36990. if (isSync && root.finishedExpirationTime === expirationTime) {
  36991. // There's already a pending commit at this expiration time.
  36992. // TODO: This is poorly factored. This case only exists for the
  36993. // batch.commit() API.
  36994. return commitRoot.bind(null, root);
  36995. }
  36996. flushPassiveEffects();
  36997. // If the root or expiration time have changed, throw out the existing stack
  36998. // and prepare a fresh one. Otherwise we'll continue where we left off.
  36999. if (root !== workInProgressRoot || expirationTime !== renderExpirationTime) {
  37000. prepareFreshStack(root, expirationTime);
  37001. startWorkOnPendingInteractions(root, expirationTime);
  37002. } else if (workInProgressRootExitStatus === RootSuspendedWithDelay) {
  37003. // We could've received an update at a lower priority while we yielded.
  37004. // We're suspended in a delayed state. Once we complete this render we're
  37005. // just going to try to recover at the last pending time anyway so we might
  37006. // as well start doing that eagerly.
  37007. // Ideally we should be able to do this even for retries but we don't yet
  37008. // know if we're going to process an update which wants to commit earlier,
  37009. // and this path happens very early so it would happen too often. Instead,
  37010. // for that case, we'll wait until we complete.
  37011. if (workInProgressRootHasPendingPing) {
  37012. // We have a ping at this expiration. Let's restart to see if we get unblocked.
  37013. prepareFreshStack(root, expirationTime);
  37014. } else {
  37015. var lastPendingTime = root.lastPendingTime;
  37016. if (lastPendingTime < expirationTime) {
  37017. // There's lower priority work. It might be unsuspended. Try rendering
  37018. // at that level immediately, while preserving the position in the queue.
  37019. return renderRoot.bind(null, root, lastPendingTime);
  37020. }
  37021. }
  37022. }
  37023. // If we have a work-in-progress fiber, it means there's still work to do
  37024. // in this root.
  37025. if (workInProgress !== null) {
  37026. var prevExecutionContext = executionContext;
  37027. executionContext |= RenderContext;
  37028. var prevDispatcher = ReactCurrentDispatcher.current;
  37029. if (prevDispatcher === null) {
  37030. // The React isomorphic package does not include a default dispatcher.
  37031. // Instead the first renderer will lazily attach one, in order to give
  37032. // nicer error messages.
  37033. prevDispatcher = ContextOnlyDispatcher;
  37034. }
  37035. ReactCurrentDispatcher.current = ContextOnlyDispatcher;
  37036. var prevInteractions = null;
  37037. if (enableSchedulerTracing) {
  37038. prevInteractions = tracing.__interactionsRef.current;
  37039. tracing.__interactionsRef.current = root.memoizedInteractions;
  37040. }
  37041. startWorkLoopTimer(workInProgress);
  37042. // TODO: Fork renderRoot into renderRootSync and renderRootAsync
  37043. if (isSync) {
  37044. if (expirationTime !== Sync) {
  37045. // An async update expired. There may be other expired updates on
  37046. // this root. We should render all the expired work in a
  37047. // single batch.
  37048. var currentTime = requestCurrentTime();
  37049. if (currentTime < expirationTime) {
  37050. // Restart at the current time.
  37051. executionContext = prevExecutionContext;
  37052. resetContextDependencies();
  37053. ReactCurrentDispatcher.current = prevDispatcher;
  37054. if (enableSchedulerTracing) {
  37055. tracing.__interactionsRef.current = prevInteractions;
  37056. }
  37057. return renderRoot.bind(null, root, currentTime);
  37058. }
  37059. }
  37060. } else {
  37061. // Since we know we're in a React event, we can clear the current
  37062. // event time. The next update will compute a new event time.
  37063. currentEventTime = NoWork;
  37064. }
  37065. do {
  37066. try {
  37067. if (isSync) {
  37068. workLoopSync();
  37069. } else {
  37070. workLoop();
  37071. }
  37072. break;
  37073. } catch (thrownValue) {
  37074. // Reset module-level state that was set during the render phase.
  37075. resetContextDependencies();
  37076. resetHooks();
  37077. var sourceFiber = workInProgress;
  37078. if (sourceFiber === null || sourceFiber.return === null) {
  37079. // Expected to be working on a non-root fiber. This is a fatal error
  37080. // because there's no ancestor that can handle it; the root is
  37081. // supposed to capture all errors that weren't caught by an error
  37082. // boundary.
  37083. prepareFreshStack(root, expirationTime);
  37084. executionContext = prevExecutionContext;
  37085. throw thrownValue;
  37086. }
  37087. if (enableProfilerTimer && sourceFiber.mode & ProfileMode) {
  37088. // Record the time spent rendering before an error was thrown. This
  37089. // avoids inaccurate Profiler durations in the case of a
  37090. // suspended render.
  37091. stopProfilerTimerIfRunningAndRecordDelta(sourceFiber, true);
  37092. }
  37093. var returnFiber = sourceFiber.return;
  37094. throwException(root, returnFiber, sourceFiber, thrownValue, renderExpirationTime);
  37095. workInProgress = completeUnitOfWork(sourceFiber);
  37096. }
  37097. } while (true);
  37098. executionContext = prevExecutionContext;
  37099. resetContextDependencies();
  37100. ReactCurrentDispatcher.current = prevDispatcher;
  37101. if (enableSchedulerTracing) {
  37102. tracing.__interactionsRef.current = prevInteractions;
  37103. }
  37104. if (workInProgress !== null) {
  37105. // There's still work left over. Return a continuation.
  37106. stopInterruptedWorkLoopTimer();
  37107. if (expirationTime !== Sync) {
  37108. startRequestCallbackTimer();
  37109. }
  37110. return renderRoot.bind(null, root, expirationTime);
  37111. }
  37112. }
  37113. // We now have a consistent tree. The next step is either to commit it, or, if
  37114. // something suspended, wait to commit it after a timeout.
  37115. stopFinishedWorkLoopTimer();
  37116. root.finishedWork = root.current.alternate;
  37117. root.finishedExpirationTime = expirationTime;
  37118. var isLocked = resolveLocksOnRoot(root, expirationTime);
  37119. if (isLocked) {
  37120. // This root has a lock that prevents it from committing. Exit. If we begin
  37121. // work on the root again, without any intervening updates, it will finish
  37122. // without doing additional work.
  37123. return null;
  37124. }
  37125. // Set this to null to indicate there's no in-progress render.
  37126. workInProgressRoot = null;
  37127. switch (workInProgressRootExitStatus) {
  37128. case RootIncomplete:
  37129. {
  37130. (function () {
  37131. {
  37132. {
  37133. throw ReactError(Error('Should have a work-in-progress.'));
  37134. }
  37135. }
  37136. })();
  37137. }
  37138. // Flow knows about invariant, so it complains if I add a break statement,
  37139. // but eslint doesn't know about invariant, so it complains if I do.
  37140. // eslint-disable-next-line no-fallthrough
  37141. case RootErrored:
  37142. {
  37143. // An error was thrown. First check if there is lower priority work
  37144. // scheduled on this root.
  37145. var _lastPendingTime = root.lastPendingTime;
  37146. if (_lastPendingTime < expirationTime) {
  37147. // There's lower priority work. Before raising the error, try rendering
  37148. // at the lower priority to see if it fixes it. Use a continuation to
  37149. // maintain the existing priority and position in the queue.
  37150. return renderRoot.bind(null, root, _lastPendingTime);
  37151. }
  37152. if (!isSync) {
  37153. // If we're rendering asynchronously, it's possible the error was
  37154. // caused by tearing due to a mutation during an event. Try rendering
  37155. // one more time without yiedling to events.
  37156. prepareFreshStack(root, expirationTime);
  37157. scheduleSyncCallback(renderRoot.bind(null, root, expirationTime));
  37158. return null;
  37159. }
  37160. // If we're already rendering synchronously, commit the root in its
  37161. // errored state.
  37162. return commitRoot.bind(null, root);
  37163. }
  37164. case RootSuspended:
  37165. {
  37166. flushSuspensePriorityWarningInDEV();
  37167. // We have an acceptable loading state. We need to figure out if we should
  37168. // immediately commit it or wait a bit.
  37169. // If we have processed new updates during this render, we may now have a
  37170. // new loading state ready. We want to ensure that we commit that as soon as
  37171. // possible.
  37172. var hasNotProcessedNewUpdates = workInProgressRootLatestProcessedExpirationTime === Sync;
  37173. if (hasNotProcessedNewUpdates && !isSync &&
  37174. // do not delay if we're inside an act() scope
  37175. !( true && flushSuspenseFallbacksInTests && IsThisRendererActing.current)) {
  37176. // If we have not processed any new updates during this pass, then this is
  37177. // either a retry of an existing fallback state or a hidden tree.
  37178. // Hidden trees shouldn't be batched with other work and after that's
  37179. // fixed it can only be a retry.
  37180. // We're going to throttle committing retries so that we don't show too
  37181. // many loading states too quickly.
  37182. var msUntilTimeout = globalMostRecentFallbackTime + FALLBACK_THROTTLE_MS - now();
  37183. // Don't bother with a very short suspense time.
  37184. if (msUntilTimeout > 10) {
  37185. if (workInProgressRootHasPendingPing) {
  37186. // This render was pinged but we didn't get to restart earlier so try
  37187. // restarting now instead.
  37188. prepareFreshStack(root, expirationTime);
  37189. return renderRoot.bind(null, root, expirationTime);
  37190. }
  37191. var _lastPendingTime2 = root.lastPendingTime;
  37192. if (_lastPendingTime2 < expirationTime) {
  37193. // There's lower priority work. It might be unsuspended. Try rendering
  37194. // at that level.
  37195. return renderRoot.bind(null, root, _lastPendingTime2);
  37196. }
  37197. // The render is suspended, it hasn't timed out, and there's no lower
  37198. // priority work to do. Instead of committing the fallback
  37199. // immediately, wait for more data to arrive.
  37200. root.timeoutHandle = scheduleTimeout(commitRoot.bind(null, root), msUntilTimeout);
  37201. return null;
  37202. }
  37203. }
  37204. // The work expired. Commit immediately.
  37205. return commitRoot.bind(null, root);
  37206. }
  37207. case RootSuspendedWithDelay:
  37208. {
  37209. flushSuspensePriorityWarningInDEV();
  37210. if (!isSync &&
  37211. // do not delay if we're inside an act() scope
  37212. !( true && flushSuspenseFallbacksInTests && IsThisRendererActing.current)) {
  37213. // We're suspended in a state that should be avoided. We'll try to avoid committing
  37214. // it for as long as the timeouts let us.
  37215. if (workInProgressRootHasPendingPing) {
  37216. // This render was pinged but we didn't get to restart earlier so try
  37217. // restarting now instead.
  37218. prepareFreshStack(root, expirationTime);
  37219. return renderRoot.bind(null, root, expirationTime);
  37220. }
  37221. var _lastPendingTime3 = root.lastPendingTime;
  37222. if (_lastPendingTime3 < expirationTime) {
  37223. // There's lower priority work. It might be unsuspended. Try rendering
  37224. // at that level immediately.
  37225. return renderRoot.bind(null, root, _lastPendingTime3);
  37226. }
  37227. var _msUntilTimeout = void 0;
  37228. if (workInProgressRootLatestSuspenseTimeout !== Sync) {
  37229. // We have processed a suspense config whose expiration time we can use as
  37230. // the timeout.
  37231. _msUntilTimeout = expirationTimeToMs(workInProgressRootLatestSuspenseTimeout) - now();
  37232. } else if (workInProgressRootLatestProcessedExpirationTime === Sync) {
  37233. // This should never normally happen because only new updates cause
  37234. // delayed states, so we should have processed something. However,
  37235. // this could also happen in an offscreen tree.
  37236. _msUntilTimeout = 0;
  37237. } else {
  37238. // If we don't have a suspense config, we're going to use a heuristic to
  37239. var eventTimeMs = inferTimeFromExpirationTime(workInProgressRootLatestProcessedExpirationTime);
  37240. var currentTimeMs = now();
  37241. var timeUntilExpirationMs = expirationTimeToMs(expirationTime) - currentTimeMs;
  37242. var timeElapsed = currentTimeMs - eventTimeMs;
  37243. if (timeElapsed < 0) {
  37244. // We get this wrong some time since we estimate the time.
  37245. timeElapsed = 0;
  37246. }
  37247. _msUntilTimeout = jnd(timeElapsed) - timeElapsed;
  37248. // Clamp the timeout to the expiration time.
  37249. // TODO: Once the event time is exact instead of inferred from expiration time
  37250. // we don't need this.
  37251. if (timeUntilExpirationMs < _msUntilTimeout) {
  37252. _msUntilTimeout = timeUntilExpirationMs;
  37253. }
  37254. }
  37255. // Don't bother with a very short suspense time.
  37256. if (_msUntilTimeout > 10) {
  37257. // The render is suspended, it hasn't timed out, and there's no lower
  37258. // priority work to do. Instead of committing the fallback
  37259. // immediately, wait for more data to arrive.
  37260. root.timeoutHandle = scheduleTimeout(commitRoot.bind(null, root), _msUntilTimeout);
  37261. return null;
  37262. }
  37263. }
  37264. // The work expired. Commit immediately.
  37265. return commitRoot.bind(null, root);
  37266. }
  37267. case RootCompleted:
  37268. {
  37269. // The work completed. Ready to commit.
  37270. if (!isSync &&
  37271. // do not delay if we're inside an act() scope
  37272. !( true && flushSuspenseFallbacksInTests && IsThisRendererActing.current) && workInProgressRootLatestProcessedExpirationTime !== Sync && workInProgressRootCanSuspendUsingConfig !== null) {
  37273. // If we have exceeded the minimum loading delay, which probably
  37274. // means we have shown a spinner already, we might have to suspend
  37275. // a bit longer to ensure that the spinner is shown for enough time.
  37276. var _msUntilTimeout2 = computeMsUntilSuspenseLoadingDelay(workInProgressRootLatestProcessedExpirationTime, expirationTime, workInProgressRootCanSuspendUsingConfig);
  37277. if (_msUntilTimeout2 > 10) {
  37278. root.timeoutHandle = scheduleTimeout(commitRoot.bind(null, root), _msUntilTimeout2);
  37279. return null;
  37280. }
  37281. }
  37282. return commitRoot.bind(null, root);
  37283. }
  37284. default:
  37285. {
  37286. (function () {
  37287. {
  37288. {
  37289. throw ReactError(Error('Unknown root exit status.'));
  37290. }
  37291. }
  37292. })();
  37293. }
  37294. }
  37295. }
  37296. function markCommitTimeOfFallback() {
  37297. globalMostRecentFallbackTime = now();
  37298. }
  37299. function markRenderEventTimeAndConfig(expirationTime, suspenseConfig) {
  37300. if (expirationTime < workInProgressRootLatestProcessedExpirationTime && expirationTime > Never) {
  37301. workInProgressRootLatestProcessedExpirationTime = expirationTime;
  37302. }
  37303. if (suspenseConfig !== null) {
  37304. if (expirationTime < workInProgressRootLatestSuspenseTimeout && expirationTime > Never) {
  37305. workInProgressRootLatestSuspenseTimeout = expirationTime;
  37306. // Most of the time we only have one config and getting wrong is not bad.
  37307. workInProgressRootCanSuspendUsingConfig = suspenseConfig;
  37308. }
  37309. }
  37310. }
  37311. function renderDidSuspend() {
  37312. if (workInProgressRootExitStatus === RootIncomplete) {
  37313. workInProgressRootExitStatus = RootSuspended;
  37314. }
  37315. }
  37316. function renderDidSuspendDelayIfPossible() {
  37317. if (workInProgressRootExitStatus === RootIncomplete || workInProgressRootExitStatus === RootSuspended) {
  37318. workInProgressRootExitStatus = RootSuspendedWithDelay;
  37319. }
  37320. }
  37321. function renderDidError() {
  37322. if (workInProgressRootExitStatus !== RootCompleted) {
  37323. workInProgressRootExitStatus = RootErrored;
  37324. }
  37325. }
  37326. // Called during render to determine if anything has suspended.
  37327. // Returns false if we're not sure.
  37328. function renderHasNotSuspendedYet() {
  37329. // If something errored or completed, we can't really be sure,
  37330. // so those are false.
  37331. return workInProgressRootExitStatus === RootIncomplete;
  37332. }
  37333. function inferTimeFromExpirationTime(expirationTime) {
  37334. // We don't know exactly when the update was scheduled, but we can infer an
  37335. // approximate start time from the expiration time.
  37336. var earliestExpirationTimeMs = expirationTimeToMs(expirationTime);
  37337. return earliestExpirationTimeMs - LOW_PRIORITY_EXPIRATION;
  37338. }
  37339. function inferTimeFromExpirationTimeWithSuspenseConfig(expirationTime, suspenseConfig) {
  37340. // We don't know exactly when the update was scheduled, but we can infer an
  37341. // approximate start time from the expiration time by subtracting the timeout
  37342. // that was added to the event time.
  37343. var earliestExpirationTimeMs = expirationTimeToMs(expirationTime);
  37344. return earliestExpirationTimeMs - (suspenseConfig.timeoutMs | 0 || LOW_PRIORITY_EXPIRATION);
  37345. }
  37346. function workLoopSync() {
  37347. // Already timed out, so perform work without checking if we need to yield.
  37348. while (workInProgress !== null) {
  37349. workInProgress = performUnitOfWork(workInProgress);
  37350. }
  37351. }
  37352. function workLoop() {
  37353. // Perform work until Scheduler asks us to yield
  37354. while (workInProgress !== null && !shouldYield()) {
  37355. workInProgress = performUnitOfWork(workInProgress);
  37356. }
  37357. }
  37358. function performUnitOfWork(unitOfWork) {
  37359. // The current, flushed, state of this fiber is the alternate. Ideally
  37360. // nothing should rely on this, but relying on it here means that we don't
  37361. // need an additional field on the work in progress.
  37362. var current$$1 = unitOfWork.alternate;
  37363. startWorkTimer(unitOfWork);
  37364. setCurrentFiber(unitOfWork);
  37365. var next = void 0;
  37366. if (enableProfilerTimer && (unitOfWork.mode & ProfileMode) !== NoMode) {
  37367. startProfilerTimer(unitOfWork);
  37368. next = beginWork$$1(current$$1, unitOfWork, renderExpirationTime);
  37369. stopProfilerTimerIfRunningAndRecordDelta(unitOfWork, true);
  37370. } else {
  37371. next = beginWork$$1(current$$1, unitOfWork, renderExpirationTime);
  37372. }
  37373. resetCurrentFiber();
  37374. unitOfWork.memoizedProps = unitOfWork.pendingProps;
  37375. if (next === null) {
  37376. // If this doesn't spawn new work, complete the current work.
  37377. next = completeUnitOfWork(unitOfWork);
  37378. }
  37379. ReactCurrentOwner$2.current = null;
  37380. return next;
  37381. }
  37382. function completeUnitOfWork(unitOfWork) {
  37383. // Attempt to complete the current unit of work, then move to the next
  37384. // sibling. If there are no more siblings, return to the parent fiber.
  37385. workInProgress = unitOfWork;
  37386. do {
  37387. // The current, flushed, state of this fiber is the alternate. Ideally
  37388. // nothing should rely on this, but relying on it here means that we don't
  37389. // need an additional field on the work in progress.
  37390. var current$$1 = workInProgress.alternate;
  37391. var returnFiber = workInProgress.return;
  37392. // Check if the work completed or if something threw.
  37393. if ((workInProgress.effectTag & Incomplete) === NoEffect) {
  37394. setCurrentFiber(workInProgress);
  37395. var next = void 0;
  37396. if (!enableProfilerTimer || (workInProgress.mode & ProfileMode) === NoMode) {
  37397. next = completeWork(current$$1, workInProgress, renderExpirationTime);
  37398. } else {
  37399. startProfilerTimer(workInProgress);
  37400. next = completeWork(current$$1, workInProgress, renderExpirationTime);
  37401. // Update render duration assuming we didn't error.
  37402. stopProfilerTimerIfRunningAndRecordDelta(workInProgress, false);
  37403. }
  37404. stopWorkTimer(workInProgress);
  37405. resetCurrentFiber();
  37406. resetChildExpirationTime(workInProgress);
  37407. if (next !== null) {
  37408. // Completing this fiber spawned new work. Work on that next.
  37409. return next;
  37410. }
  37411. if (returnFiber !== null &&
  37412. // Do not append effects to parents if a sibling failed to complete
  37413. (returnFiber.effectTag & Incomplete) === NoEffect) {
  37414. // Append all the effects of the subtree and this fiber onto the effect
  37415. // list of the parent. The completion order of the children affects the
  37416. // side-effect order.
  37417. if (returnFiber.firstEffect === null) {
  37418. returnFiber.firstEffect = workInProgress.firstEffect;
  37419. }
  37420. if (workInProgress.lastEffect !== null) {
  37421. if (returnFiber.lastEffect !== null) {
  37422. returnFiber.lastEffect.nextEffect = workInProgress.firstEffect;
  37423. }
  37424. returnFiber.lastEffect = workInProgress.lastEffect;
  37425. }
  37426. // If this fiber had side-effects, we append it AFTER the children's
  37427. // side-effects. We can perform certain side-effects earlier if needed,
  37428. // by doing multiple passes over the effect list. We don't want to
  37429. // schedule our own side-effect on our own list because if end up
  37430. // reusing children we'll schedule this effect onto itself since we're
  37431. // at the end.
  37432. var effectTag = workInProgress.effectTag;
  37433. // Skip both NoWork and PerformedWork tags when creating the effect
  37434. // list. PerformedWork effect is read by React DevTools but shouldn't be
  37435. // committed.
  37436. if (effectTag > PerformedWork) {
  37437. if (returnFiber.lastEffect !== null) {
  37438. returnFiber.lastEffect.nextEffect = workInProgress;
  37439. } else {
  37440. returnFiber.firstEffect = workInProgress;
  37441. }
  37442. returnFiber.lastEffect = workInProgress;
  37443. }
  37444. }
  37445. } else {
  37446. // This fiber did not complete because something threw. Pop values off
  37447. // the stack without entering the complete phase. If this is a boundary,
  37448. // capture values if possible.
  37449. var _next = unwindWork(workInProgress, renderExpirationTime);
  37450. // Because this fiber did not complete, don't reset its expiration time.
  37451. if (enableProfilerTimer && (workInProgress.mode & ProfileMode) !== NoMode) {
  37452. // Record the render duration for the fiber that errored.
  37453. stopProfilerTimerIfRunningAndRecordDelta(workInProgress, false);
  37454. // Include the time spent working on failed children before continuing.
  37455. var actualDuration = workInProgress.actualDuration;
  37456. var child = workInProgress.child;
  37457. while (child !== null) {
  37458. actualDuration += child.actualDuration;
  37459. child = child.sibling;
  37460. }
  37461. workInProgress.actualDuration = actualDuration;
  37462. }
  37463. if (_next !== null) {
  37464. // If completing this work spawned new work, do that next. We'll come
  37465. // back here again.
  37466. // Since we're restarting, remove anything that is not a host effect
  37467. // from the effect tag.
  37468. // TODO: The name stopFailedWorkTimer is misleading because Suspense
  37469. // also captures and restarts.
  37470. stopFailedWorkTimer(workInProgress);
  37471. _next.effectTag &= HostEffectMask;
  37472. return _next;
  37473. }
  37474. stopWorkTimer(workInProgress);
  37475. if (returnFiber !== null) {
  37476. // Mark the parent fiber as incomplete and clear its effect list.
  37477. returnFiber.firstEffect = returnFiber.lastEffect = null;
  37478. returnFiber.effectTag |= Incomplete;
  37479. }
  37480. }
  37481. var siblingFiber = workInProgress.sibling;
  37482. if (siblingFiber !== null) {
  37483. // If there is more work to do in this returnFiber, do that next.
  37484. return siblingFiber;
  37485. }
  37486. // Otherwise, return to the parent
  37487. workInProgress = returnFiber;
  37488. } while (workInProgress !== null);
  37489. // We've reached the root.
  37490. if (workInProgressRootExitStatus === RootIncomplete) {
  37491. workInProgressRootExitStatus = RootCompleted;
  37492. }
  37493. return null;
  37494. }
  37495. function resetChildExpirationTime(completedWork) {
  37496. if (renderExpirationTime !== Never && completedWork.childExpirationTime === Never) {
  37497. // The children of this component are hidden. Don't bubble their
  37498. // expiration times.
  37499. return;
  37500. }
  37501. var newChildExpirationTime = NoWork;
  37502. // Bubble up the earliest expiration time.
  37503. if (enableProfilerTimer && (completedWork.mode & ProfileMode) !== NoMode) {
  37504. // In profiling mode, resetChildExpirationTime is also used to reset
  37505. // profiler durations.
  37506. var actualDuration = completedWork.actualDuration;
  37507. var treeBaseDuration = completedWork.selfBaseDuration;
  37508. // When a fiber is cloned, its actualDuration is reset to 0. This value will
  37509. // only be updated if work is done on the fiber (i.e. it doesn't bailout).
  37510. // When work is done, it should bubble to the parent's actualDuration. If
  37511. // the fiber has not been cloned though, (meaning no work was done), then
  37512. // this value will reflect the amount of time spent working on a previous
  37513. // render. In that case it should not bubble. We determine whether it was
  37514. // cloned by comparing the child pointer.
  37515. var shouldBubbleActualDurations = completedWork.alternate === null || completedWork.child !== completedWork.alternate.child;
  37516. var child = completedWork.child;
  37517. while (child !== null) {
  37518. var childUpdateExpirationTime = child.expirationTime;
  37519. var childChildExpirationTime = child.childExpirationTime;
  37520. if (childUpdateExpirationTime > newChildExpirationTime) {
  37521. newChildExpirationTime = childUpdateExpirationTime;
  37522. }
  37523. if (childChildExpirationTime > newChildExpirationTime) {
  37524. newChildExpirationTime = childChildExpirationTime;
  37525. }
  37526. if (shouldBubbleActualDurations) {
  37527. actualDuration += child.actualDuration;
  37528. }
  37529. treeBaseDuration += child.treeBaseDuration;
  37530. child = child.sibling;
  37531. }
  37532. completedWork.actualDuration = actualDuration;
  37533. completedWork.treeBaseDuration = treeBaseDuration;
  37534. } else {
  37535. var _child = completedWork.child;
  37536. while (_child !== null) {
  37537. var _childUpdateExpirationTime = _child.expirationTime;
  37538. var _childChildExpirationTime = _child.childExpirationTime;
  37539. if (_childUpdateExpirationTime > newChildExpirationTime) {
  37540. newChildExpirationTime = _childUpdateExpirationTime;
  37541. }
  37542. if (_childChildExpirationTime > newChildExpirationTime) {
  37543. newChildExpirationTime = _childChildExpirationTime;
  37544. }
  37545. _child = _child.sibling;
  37546. }
  37547. }
  37548. completedWork.childExpirationTime = newChildExpirationTime;
  37549. }
  37550. function commitRoot(root) {
  37551. var renderPriorityLevel = getCurrentPriorityLevel();
  37552. runWithPriority$2(ImmediatePriority, commitRootImpl.bind(null, root, renderPriorityLevel));
  37553. // If there are passive effects, schedule a callback to flush them. This goes
  37554. // outside commitRootImpl so that it inherits the priority of the render.
  37555. if (rootWithPendingPassiveEffects !== null) {
  37556. scheduleCallback(NormalPriority, function () {
  37557. flushPassiveEffects();
  37558. return null;
  37559. });
  37560. }
  37561. return null;
  37562. }
  37563. function commitRootImpl(root, renderPriorityLevel) {
  37564. flushPassiveEffects();
  37565. flushRenderPhaseStrictModeWarningsInDEV();
  37566. (function () {
  37567. if (!((executionContext & (RenderContext | CommitContext)) === NoContext)) {
  37568. {
  37569. throw ReactError(Error('Should not already be working.'));
  37570. }
  37571. }
  37572. })();
  37573. var finishedWork = root.finishedWork;
  37574. var expirationTime = root.finishedExpirationTime;
  37575. if (finishedWork === null) {
  37576. return null;
  37577. }
  37578. root.finishedWork = null;
  37579. root.finishedExpirationTime = NoWork;
  37580. (function () {
  37581. if (!(finishedWork !== root.current)) {
  37582. {
  37583. throw ReactError(Error('Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.'));
  37584. }
  37585. }
  37586. })();
  37587. // commitRoot never returns a continuation; it always finishes synchronously.
  37588. // So we can clear these now to allow a new callback to be scheduled.
  37589. root.callbackNode = null;
  37590. root.callbackExpirationTime = NoWork;
  37591. startCommitTimer();
  37592. // Update the first and last pending times on this root. The new first
  37593. // pending time is whatever is left on the root fiber.
  37594. var updateExpirationTimeBeforeCommit = finishedWork.expirationTime;
  37595. var childExpirationTimeBeforeCommit = finishedWork.childExpirationTime;
  37596. var firstPendingTimeBeforeCommit = childExpirationTimeBeforeCommit > updateExpirationTimeBeforeCommit ? childExpirationTimeBeforeCommit : updateExpirationTimeBeforeCommit;
  37597. root.firstPendingTime = firstPendingTimeBeforeCommit;
  37598. if (firstPendingTimeBeforeCommit < root.lastPendingTime) {
  37599. // This usually means we've finished all the work, but it can also happen
  37600. // when something gets downprioritized during render, like a hidden tree.
  37601. root.lastPendingTime = firstPendingTimeBeforeCommit;
  37602. }
  37603. if (root === workInProgressRoot) {
  37604. // We can reset these now that they are finished.
  37605. workInProgressRoot = null;
  37606. workInProgress = null;
  37607. renderExpirationTime = NoWork;
  37608. } else {}
  37609. // This indicates that the last root we worked on is not the same one that
  37610. // we're committing now. This most commonly happens when a suspended root
  37611. // times out.
  37612. // Get the list of effects.
  37613. var firstEffect = void 0;
  37614. if (finishedWork.effectTag > PerformedWork) {
  37615. // A fiber's effect list consists only of its children, not itself. So if
  37616. // the root has an effect, we need to add it to the end of the list. The
  37617. // resulting list is the set that would belong to the root's parent, if it
  37618. // had one; that is, all the effects in the tree including the root.
  37619. if (finishedWork.lastEffect !== null) {
  37620. finishedWork.lastEffect.nextEffect = finishedWork;
  37621. firstEffect = finishedWork.firstEffect;
  37622. } else {
  37623. firstEffect = finishedWork;
  37624. }
  37625. } else {
  37626. // There is no effect on the root.
  37627. firstEffect = finishedWork.firstEffect;
  37628. }
  37629. if (firstEffect !== null) {
  37630. var prevExecutionContext = executionContext;
  37631. executionContext |= CommitContext;
  37632. var prevInteractions = null;
  37633. if (enableSchedulerTracing) {
  37634. prevInteractions = tracing.__interactionsRef.current;
  37635. tracing.__interactionsRef.current = root.memoizedInteractions;
  37636. }
  37637. // Reset this to null before calling lifecycles
  37638. ReactCurrentOwner$2.current = null;
  37639. // The commit phase is broken into several sub-phases. We do a separate pass
  37640. // of the effect list for each phase: all mutation effects come before all
  37641. // layout effects, and so on.
  37642. // The first phase a "before mutation" phase. We use this phase to read the
  37643. // state of the host tree right before we mutate it. This is where
  37644. // getSnapshotBeforeUpdate is called.
  37645. startCommitSnapshotEffectsTimer();
  37646. prepareForCommit(root.containerInfo);
  37647. nextEffect = firstEffect;
  37648. do {
  37649. {
  37650. invokeGuardedCallback(null, commitBeforeMutationEffects, null);
  37651. if (hasCaughtError()) {
  37652. (function () {
  37653. if (!(nextEffect !== null)) {
  37654. {
  37655. throw ReactError(Error('Should be working on an effect.'));
  37656. }
  37657. }
  37658. })();
  37659. var error = clearCaughtError();
  37660. captureCommitPhaseError(nextEffect, error);
  37661. nextEffect = nextEffect.nextEffect;
  37662. }
  37663. }
  37664. } while (nextEffect !== null);
  37665. stopCommitSnapshotEffectsTimer();
  37666. if (enableProfilerTimer) {
  37667. // Mark the current commit time to be shared by all Profilers in this
  37668. // batch. This enables them to be grouped later.
  37669. recordCommitTime();
  37670. }
  37671. // The next phase is the mutation phase, where we mutate the host tree.
  37672. startCommitHostEffectsTimer();
  37673. nextEffect = firstEffect;
  37674. do {
  37675. {
  37676. invokeGuardedCallback(null, commitMutationEffects, null, renderPriorityLevel);
  37677. if (hasCaughtError()) {
  37678. (function () {
  37679. if (!(nextEffect !== null)) {
  37680. {
  37681. throw ReactError(Error('Should be working on an effect.'));
  37682. }
  37683. }
  37684. })();
  37685. var _error = clearCaughtError();
  37686. captureCommitPhaseError(nextEffect, _error);
  37687. nextEffect = nextEffect.nextEffect;
  37688. }
  37689. }
  37690. } while (nextEffect !== null);
  37691. stopCommitHostEffectsTimer();
  37692. resetAfterCommit(root.containerInfo);
  37693. // The work-in-progress tree is now the current tree. This must come after
  37694. // the mutation phase, so that the previous tree is still current during
  37695. // componentWillUnmount, but before the layout phase, so that the finished
  37696. // work is current during componentDidMount/Update.
  37697. root.current = finishedWork;
  37698. // The next phase is the layout phase, where we call effects that read
  37699. // the host tree after it's been mutated. The idiomatic use case for this is
  37700. // layout, but class component lifecycles also fire here for legacy reasons.
  37701. startCommitLifeCyclesTimer();
  37702. nextEffect = firstEffect;
  37703. do {
  37704. {
  37705. invokeGuardedCallback(null, commitLayoutEffects, null, root, expirationTime);
  37706. if (hasCaughtError()) {
  37707. (function () {
  37708. if (!(nextEffect !== null)) {
  37709. {
  37710. throw ReactError(Error('Should be working on an effect.'));
  37711. }
  37712. }
  37713. })();
  37714. var _error2 = clearCaughtError();
  37715. captureCommitPhaseError(nextEffect, _error2);
  37716. nextEffect = nextEffect.nextEffect;
  37717. }
  37718. }
  37719. } while (nextEffect !== null);
  37720. stopCommitLifeCyclesTimer();
  37721. nextEffect = null;
  37722. // Tell Scheduler to yield at the end of the frame, so the browser has an
  37723. // opportunity to paint.
  37724. requestPaint();
  37725. if (enableSchedulerTracing) {
  37726. tracing.__interactionsRef.current = prevInteractions;
  37727. }
  37728. executionContext = prevExecutionContext;
  37729. } else {
  37730. // No effects.
  37731. root.current = finishedWork;
  37732. // Measure these anyway so the flamegraph explicitly shows that there were
  37733. // no effects.
  37734. // TODO: Maybe there's a better way to report this.
  37735. startCommitSnapshotEffectsTimer();
  37736. stopCommitSnapshotEffectsTimer();
  37737. if (enableProfilerTimer) {
  37738. recordCommitTime();
  37739. }
  37740. startCommitHostEffectsTimer();
  37741. stopCommitHostEffectsTimer();
  37742. startCommitLifeCyclesTimer();
  37743. stopCommitLifeCyclesTimer();
  37744. }
  37745. stopCommitTimer();
  37746. var rootDidHavePassiveEffects = rootDoesHavePassiveEffects;
  37747. if (rootDoesHavePassiveEffects) {
  37748. // This commit has passive effects. Stash a reference to them. But don't
  37749. // schedule a callback until after flushing layout work.
  37750. rootDoesHavePassiveEffects = false;
  37751. rootWithPendingPassiveEffects = root;
  37752. pendingPassiveEffectsExpirationTime = expirationTime;
  37753. pendingPassiveEffectsRenderPriority = renderPriorityLevel;
  37754. } else {
  37755. // We are done with the effect chain at this point so let's clear the
  37756. // nextEffect pointers to assist with GC. If we have passive effects, we'll
  37757. // clear this in flushPassiveEffects.
  37758. nextEffect = firstEffect;
  37759. while (nextEffect !== null) {
  37760. var nextNextEffect = nextEffect.nextEffect;
  37761. nextEffect.nextEffect = null;
  37762. nextEffect = nextNextEffect;
  37763. }
  37764. }
  37765. // Check if there's remaining work on this root
  37766. var remainingExpirationTime = root.firstPendingTime;
  37767. if (remainingExpirationTime !== NoWork) {
  37768. var currentTime = requestCurrentTime();
  37769. var priorityLevel = inferPriorityFromExpirationTime(currentTime, remainingExpirationTime);
  37770. if (enableSchedulerTracing) {
  37771. if (spawnedWorkDuringRender !== null) {
  37772. var expirationTimes = spawnedWorkDuringRender;
  37773. spawnedWorkDuringRender = null;
  37774. for (var i = 0; i < expirationTimes.length; i++) {
  37775. scheduleInteractions(root, expirationTimes[i], root.memoizedInteractions);
  37776. }
  37777. }
  37778. }
  37779. scheduleCallbackForRoot(root, priorityLevel, remainingExpirationTime);
  37780. } else {
  37781. // If there's no remaining work, we can clear the set of already failed
  37782. // error boundaries.
  37783. legacyErrorBoundariesThatAlreadyFailed = null;
  37784. }
  37785. if (enableSchedulerTracing) {
  37786. if (!rootDidHavePassiveEffects) {
  37787. // If there are no passive effects, then we can complete the pending interactions.
  37788. // Otherwise, we'll wait until after the passive effects are flushed.
  37789. // Wait to do this until after remaining work has been scheduled,
  37790. // so that we don't prematurely signal complete for interactions when there's e.g. hidden work.
  37791. finishPendingInteractions(root, expirationTime);
  37792. }
  37793. }
  37794. onCommitRoot(finishedWork.stateNode, expirationTime);
  37795. if (remainingExpirationTime === Sync) {
  37796. // Count the number of times the root synchronously re-renders without
  37797. // finishing. If there are too many, it indicates an infinite update loop.
  37798. if (root === rootWithNestedUpdates) {
  37799. nestedUpdateCount++;
  37800. } else {
  37801. nestedUpdateCount = 0;
  37802. rootWithNestedUpdates = root;
  37803. }
  37804. } else {
  37805. nestedUpdateCount = 0;
  37806. }
  37807. if (hasUncaughtError) {
  37808. hasUncaughtError = false;
  37809. var _error3 = firstUncaughtError;
  37810. firstUncaughtError = null;
  37811. throw _error3;
  37812. }
  37813. if ((executionContext & LegacyUnbatchedContext) !== NoContext) {
  37814. // This is a legacy edge case. We just committed the initial mount of
  37815. // a ReactDOM.render-ed root inside of batchedUpdates. The commit fired
  37816. // synchronously, but layout updates should be deferred until the end
  37817. // of the batch.
  37818. return null;
  37819. }
  37820. // If layout work was scheduled, flush it now.
  37821. flushSyncCallbackQueue();
  37822. return null;
  37823. }
  37824. function commitBeforeMutationEffects() {
  37825. while (nextEffect !== null) {
  37826. if ((nextEffect.effectTag & Snapshot) !== NoEffect) {
  37827. setCurrentFiber(nextEffect);
  37828. recordEffect();
  37829. var current$$1 = nextEffect.alternate;
  37830. commitBeforeMutationLifeCycles(current$$1, nextEffect);
  37831. resetCurrentFiber();
  37832. }
  37833. nextEffect = nextEffect.nextEffect;
  37834. }
  37835. }
  37836. function commitMutationEffects(renderPriorityLevel) {
  37837. // TODO: Should probably move the bulk of this function to commitWork.
  37838. while (nextEffect !== null) {
  37839. setCurrentFiber(nextEffect);
  37840. var effectTag = nextEffect.effectTag;
  37841. if (effectTag & ContentReset) {
  37842. commitResetTextContent(nextEffect);
  37843. }
  37844. if (effectTag & Ref) {
  37845. var current$$1 = nextEffect.alternate;
  37846. if (current$$1 !== null) {
  37847. commitDetachRef(current$$1);
  37848. }
  37849. }
  37850. // The following switch statement is only concerned about placement,
  37851. // updates, and deletions. To avoid needing to add a case for every possible
  37852. // bitmap value, we remove the secondary effects from the effect tag and
  37853. // switch on that value.
  37854. var primaryEffectTag = effectTag & (Placement | Update | Deletion);
  37855. switch (primaryEffectTag) {
  37856. case Placement:
  37857. {
  37858. commitPlacement(nextEffect);
  37859. // Clear the "placement" from effect tag so that we know that this is
  37860. // inserted, before any life-cycles like componentDidMount gets called.
  37861. // TODO: findDOMNode doesn't rely on this any more but isMounted does
  37862. // and isMounted is deprecated anyway so we should be able to kill this.
  37863. nextEffect.effectTag &= ~Placement;
  37864. break;
  37865. }
  37866. case PlacementAndUpdate:
  37867. {
  37868. // Placement
  37869. commitPlacement(nextEffect);
  37870. // Clear the "placement" from effect tag so that we know that this is
  37871. // inserted, before any life-cycles like componentDidMount gets called.
  37872. nextEffect.effectTag &= ~Placement;
  37873. // Update
  37874. var _current = nextEffect.alternate;
  37875. commitWork(_current, nextEffect);
  37876. break;
  37877. }
  37878. case Update:
  37879. {
  37880. var _current2 = nextEffect.alternate;
  37881. commitWork(_current2, nextEffect);
  37882. break;
  37883. }
  37884. case Deletion:
  37885. {
  37886. commitDeletion(nextEffect, renderPriorityLevel);
  37887. break;
  37888. }
  37889. }
  37890. // TODO: Only record a mutation effect if primaryEffectTag is non-zero.
  37891. recordEffect();
  37892. resetCurrentFiber();
  37893. nextEffect = nextEffect.nextEffect;
  37894. }
  37895. }
  37896. function commitLayoutEffects(root, committedExpirationTime) {
  37897. // TODO: Should probably move the bulk of this function to commitWork.
  37898. while (nextEffect !== null) {
  37899. setCurrentFiber(nextEffect);
  37900. var effectTag = nextEffect.effectTag;
  37901. if (effectTag & (Update | Callback)) {
  37902. recordEffect();
  37903. var current$$1 = nextEffect.alternate;
  37904. commitLifeCycles(root, current$$1, nextEffect, committedExpirationTime);
  37905. }
  37906. if (effectTag & Ref) {
  37907. recordEffect();
  37908. commitAttachRef(nextEffect);
  37909. }
  37910. if (effectTag & Passive) {
  37911. rootDoesHavePassiveEffects = true;
  37912. }
  37913. resetCurrentFiber();
  37914. nextEffect = nextEffect.nextEffect;
  37915. }
  37916. }
  37917. function flushPassiveEffects() {
  37918. if (rootWithPendingPassiveEffects === null) {
  37919. return false;
  37920. }
  37921. var root = rootWithPendingPassiveEffects;
  37922. var expirationTime = pendingPassiveEffectsExpirationTime;
  37923. var renderPriorityLevel = pendingPassiveEffectsRenderPriority;
  37924. rootWithPendingPassiveEffects = null;
  37925. pendingPassiveEffectsExpirationTime = NoWork;
  37926. pendingPassiveEffectsRenderPriority = NoPriority;
  37927. var priorityLevel = renderPriorityLevel > NormalPriority ? NormalPriority : renderPriorityLevel;
  37928. return runWithPriority$2(priorityLevel, flushPassiveEffectsImpl.bind(null, root, expirationTime));
  37929. }
  37930. function flushPassiveEffectsImpl(root, expirationTime) {
  37931. var prevInteractions = null;
  37932. if (enableSchedulerTracing) {
  37933. prevInteractions = tracing.__interactionsRef.current;
  37934. tracing.__interactionsRef.current = root.memoizedInteractions;
  37935. }
  37936. (function () {
  37937. if (!((executionContext & (RenderContext | CommitContext)) === NoContext)) {
  37938. {
  37939. throw ReactError(Error('Cannot flush passive effects while already rendering.'));
  37940. }
  37941. }
  37942. })();
  37943. var prevExecutionContext = executionContext;
  37944. executionContext |= CommitContext;
  37945. // Note: This currently assumes there are no passive effects on the root
  37946. // fiber, because the root is not part of its own effect list. This could
  37947. // change in the future.
  37948. var effect = root.current.firstEffect;
  37949. while (effect !== null) {
  37950. {
  37951. setCurrentFiber(effect);
  37952. invokeGuardedCallback(null, commitPassiveHookEffects, null, effect);
  37953. if (hasCaughtError()) {
  37954. (function () {
  37955. if (!(effect !== null)) {
  37956. {
  37957. throw ReactError(Error('Should be working on an effect.'));
  37958. }
  37959. }
  37960. })();
  37961. var error = clearCaughtError();
  37962. captureCommitPhaseError(effect, error);
  37963. }
  37964. resetCurrentFiber();
  37965. }
  37966. var nextNextEffect = effect.nextEffect;
  37967. // Remove nextEffect pointer to assist GC
  37968. effect.nextEffect = null;
  37969. effect = nextNextEffect;
  37970. }
  37971. if (enableSchedulerTracing) {
  37972. tracing.__interactionsRef.current = prevInteractions;
  37973. finishPendingInteractions(root, expirationTime);
  37974. }
  37975. executionContext = prevExecutionContext;
  37976. flushSyncCallbackQueue();
  37977. // If additional passive effects were scheduled, increment a counter. If this
  37978. // exceeds the limit, we'll fire a warning.
  37979. nestedPassiveUpdateCount = rootWithPendingPassiveEffects === null ? 0 : nestedPassiveUpdateCount + 1;
  37980. return true;
  37981. }
  37982. function isAlreadyFailedLegacyErrorBoundary(instance) {
  37983. return legacyErrorBoundariesThatAlreadyFailed !== null && legacyErrorBoundariesThatAlreadyFailed.has(instance);
  37984. }
  37985. function markLegacyErrorBoundaryAsFailed(instance) {
  37986. if (legacyErrorBoundariesThatAlreadyFailed === null) {
  37987. legacyErrorBoundariesThatAlreadyFailed = new Set([instance]);
  37988. } else {
  37989. legacyErrorBoundariesThatAlreadyFailed.add(instance);
  37990. }
  37991. }
  37992. function prepareToThrowUncaughtError(error) {
  37993. if (!hasUncaughtError) {
  37994. hasUncaughtError = true;
  37995. firstUncaughtError = error;
  37996. }
  37997. }
  37998. var onUncaughtError = prepareToThrowUncaughtError;
  37999. function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) {
  38000. var errorInfo = createCapturedValue(error, sourceFiber);
  38001. var update = createRootErrorUpdate(rootFiber, errorInfo, Sync);
  38002. enqueueUpdate(rootFiber, update);
  38003. var root = markUpdateTimeFromFiberToRoot(rootFiber, Sync);
  38004. if (root !== null) {
  38005. scheduleCallbackForRoot(root, ImmediatePriority, Sync);
  38006. }
  38007. }
  38008. function captureCommitPhaseError(sourceFiber, error) {
  38009. if (sourceFiber.tag === HostRoot) {
  38010. // Error was thrown at the root. There is no parent, so the root
  38011. // itself should capture it.
  38012. captureCommitPhaseErrorOnRoot(sourceFiber, sourceFiber, error);
  38013. return;
  38014. }
  38015. var fiber = sourceFiber.return;
  38016. while (fiber !== null) {
  38017. if (fiber.tag === HostRoot) {
  38018. captureCommitPhaseErrorOnRoot(fiber, sourceFiber, error);
  38019. return;
  38020. } else if (fiber.tag === ClassComponent) {
  38021. var ctor = fiber.type;
  38022. var instance = fiber.stateNode;
  38023. if (typeof ctor.getDerivedStateFromError === 'function' || typeof instance.componentDidCatch === 'function' && !isAlreadyFailedLegacyErrorBoundary(instance)) {
  38024. var errorInfo = createCapturedValue(error, sourceFiber);
  38025. var update = createClassErrorUpdate(fiber, errorInfo,
  38026. // TODO: This is always sync
  38027. Sync);
  38028. enqueueUpdate(fiber, update);
  38029. var root = markUpdateTimeFromFiberToRoot(fiber, Sync);
  38030. if (root !== null) {
  38031. scheduleCallbackForRoot(root, ImmediatePriority, Sync);
  38032. }
  38033. return;
  38034. }
  38035. }
  38036. fiber = fiber.return;
  38037. }
  38038. }
  38039. function pingSuspendedRoot(root, thenable, suspendedTime) {
  38040. var pingCache = root.pingCache;
  38041. if (pingCache !== null) {
  38042. // The thenable resolved, so we no longer need to memoize, because it will
  38043. // never be thrown again.
  38044. pingCache.delete(thenable);
  38045. }
  38046. if (workInProgressRoot === root && renderExpirationTime === suspendedTime) {
  38047. // Received a ping at the same priority level at which we're currently
  38048. // rendering. We might want to restart this render. This should mirror
  38049. // the logic of whether or not a root suspends once it completes.
  38050. // TODO: If we're rendering sync either due to Sync, Batched or expired,
  38051. // we should probably never restart.
  38052. // If we're suspended with delay, we'll always suspend so we can always
  38053. // restart. If we're suspended without any updates, it might be a retry.
  38054. // If it's early in the retry we can restart. We can't know for sure
  38055. // whether we'll eventually process an update during this render pass,
  38056. // but it's somewhat unlikely that we get to a ping before that, since
  38057. // getting to the root most update is usually very fast.
  38058. if (workInProgressRootExitStatus === RootSuspendedWithDelay || workInProgressRootExitStatus === RootSuspended && workInProgressRootLatestProcessedExpirationTime === Sync && now() - globalMostRecentFallbackTime < FALLBACK_THROTTLE_MS) {
  38059. // Restart from the root. Don't need to schedule a ping because
  38060. // we're already working on this tree.
  38061. prepareFreshStack(root, renderExpirationTime);
  38062. } else {
  38063. // Even though we can't restart right now, we might get an
  38064. // opportunity later. So we mark this render as having a ping.
  38065. workInProgressRootHasPendingPing = true;
  38066. }
  38067. return;
  38068. }
  38069. var lastPendingTime = root.lastPendingTime;
  38070. if (lastPendingTime < suspendedTime) {
  38071. // The root is no longer suspended at this time.
  38072. return;
  38073. }
  38074. var pingTime = root.pingTime;
  38075. if (pingTime !== NoWork && pingTime < suspendedTime) {
  38076. // There's already a lower priority ping scheduled.
  38077. return;
  38078. }
  38079. // Mark the time at which this ping was scheduled.
  38080. root.pingTime = suspendedTime;
  38081. if (root.finishedExpirationTime === suspendedTime) {
  38082. // If there's a pending fallback waiting to commit, throw it away.
  38083. root.finishedExpirationTime = NoWork;
  38084. root.finishedWork = null;
  38085. }
  38086. var currentTime = requestCurrentTime();
  38087. var priorityLevel = inferPriorityFromExpirationTime(currentTime, suspendedTime);
  38088. scheduleCallbackForRoot(root, priorityLevel, suspendedTime);
  38089. }
  38090. function retryTimedOutBoundary(boundaryFiber) {
  38091. // The boundary fiber (a Suspense component or SuspenseList component)
  38092. // previously was rendered in its fallback state. One of the promises that
  38093. // suspended it has resolved, which means at least part of the tree was
  38094. // likely unblocked. Try rendering again, at a new expiration time.
  38095. var currentTime = requestCurrentTime();
  38096. var suspenseConfig = null; // Retries don't carry over the already committed update.
  38097. var retryTime = computeExpirationForFiber(currentTime, boundaryFiber, suspenseConfig);
  38098. // TODO: Special case idle priority?
  38099. var priorityLevel = inferPriorityFromExpirationTime(currentTime, retryTime);
  38100. var root = markUpdateTimeFromFiberToRoot(boundaryFiber, retryTime);
  38101. if (root !== null) {
  38102. scheduleCallbackForRoot(root, priorityLevel, retryTime);
  38103. }
  38104. }
  38105. function resolveRetryThenable(boundaryFiber, thenable) {
  38106. var retryCache = void 0;
  38107. if (enableSuspenseServerRenderer) {
  38108. switch (boundaryFiber.tag) {
  38109. case SuspenseComponent:
  38110. retryCache = boundaryFiber.stateNode;
  38111. break;
  38112. case DehydratedSuspenseComponent:
  38113. retryCache = boundaryFiber.memoizedState;
  38114. break;
  38115. default:
  38116. (function () {
  38117. {
  38118. {
  38119. throw ReactError(Error('Pinged unknown suspense boundary type. This is probably a bug in React.'));
  38120. }
  38121. }
  38122. })();
  38123. }
  38124. } else {
  38125. retryCache = boundaryFiber.stateNode;
  38126. }
  38127. if (retryCache !== null) {
  38128. // The thenable resolved, so we no longer need to memoize, because it will
  38129. // never be thrown again.
  38130. retryCache.delete(thenable);
  38131. }
  38132. retryTimedOutBoundary(boundaryFiber);
  38133. }
  38134. // Computes the next Just Noticeable Difference (JND) boundary.
  38135. // The theory is that a person can't tell the difference between small differences in time.
  38136. // Therefore, if we wait a bit longer than necessary that won't translate to a noticeable
  38137. // difference in the experience. However, waiting for longer might mean that we can avoid
  38138. // showing an intermediate loading state. The longer we have already waited, the harder it
  38139. // is to tell small differences in time. Therefore, the longer we've already waited,
  38140. // the longer we can wait additionally. At some point we have to give up though.
  38141. // We pick a train model where the next boundary commits at a consistent schedule.
  38142. // These particular numbers are vague estimates. We expect to adjust them based on research.
  38143. function jnd(timeElapsed) {
  38144. return timeElapsed < 120 ? 120 : timeElapsed < 480 ? 480 : timeElapsed < 1080 ? 1080 : timeElapsed < 1920 ? 1920 : timeElapsed < 3000 ? 3000 : timeElapsed < 4320 ? 4320 : ceil(timeElapsed / 1960) * 1960;
  38145. }
  38146. function computeMsUntilSuspenseLoadingDelay(mostRecentEventTime, committedExpirationTime, suspenseConfig) {
  38147. var busyMinDurationMs = suspenseConfig.busyMinDurationMs | 0;
  38148. if (busyMinDurationMs <= 0) {
  38149. return 0;
  38150. }
  38151. var busyDelayMs = suspenseConfig.busyDelayMs | 0;
  38152. // Compute the time until this render pass would expire.
  38153. var currentTimeMs = now();
  38154. var eventTimeMs = inferTimeFromExpirationTimeWithSuspenseConfig(mostRecentEventTime, suspenseConfig);
  38155. var timeElapsed = currentTimeMs - eventTimeMs;
  38156. if (timeElapsed <= busyDelayMs) {
  38157. // If we haven't yet waited longer than the initial delay, we don't
  38158. // have to wait any additional time.
  38159. return 0;
  38160. }
  38161. var msUntilTimeout = busyDelayMs + busyMinDurationMs - timeElapsed;
  38162. // This is the value that is passed to `setTimeout`.
  38163. return msUntilTimeout;
  38164. }
  38165. function checkForNestedUpdates() {
  38166. if (nestedUpdateCount > NESTED_UPDATE_LIMIT) {
  38167. nestedUpdateCount = 0;
  38168. rootWithNestedUpdates = null;
  38169. (function () {
  38170. {
  38171. {
  38172. throw ReactError(Error('Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.'));
  38173. }
  38174. }
  38175. })();
  38176. }
  38177. {
  38178. if (nestedPassiveUpdateCount > NESTED_PASSIVE_UPDATE_LIMIT) {
  38179. nestedPassiveUpdateCount = 0;
  38180. warning$1(false, 'Maximum update depth exceeded. This can happen when a component ' + "calls setState inside useEffect, but useEffect either doesn't " + 'have a dependency array, or one of the dependencies changes on ' + 'every render.');
  38181. }
  38182. }
  38183. }
  38184. function flushRenderPhaseStrictModeWarningsInDEV() {
  38185. {
  38186. ReactStrictModeWarnings.flushLegacyContextWarning();
  38187. if (warnAboutDeprecatedLifecycles) {
  38188. ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings();
  38189. }
  38190. }
  38191. }
  38192. function stopFinishedWorkLoopTimer() {
  38193. var didCompleteRoot = true;
  38194. stopWorkLoopTimer(interruptedBy, didCompleteRoot);
  38195. interruptedBy = null;
  38196. }
  38197. function stopInterruptedWorkLoopTimer() {
  38198. // TODO: Track which fiber caused the interruption.
  38199. var didCompleteRoot = false;
  38200. stopWorkLoopTimer(interruptedBy, didCompleteRoot);
  38201. interruptedBy = null;
  38202. }
  38203. function checkForInterruption(fiberThatReceivedUpdate, updateExpirationTime) {
  38204. if (enableUserTimingAPI && workInProgressRoot !== null && updateExpirationTime > renderExpirationTime) {
  38205. interruptedBy = fiberThatReceivedUpdate;
  38206. }
  38207. }
  38208. var didWarnStateUpdateForUnmountedComponent = null;
  38209. function warnAboutUpdateOnUnmountedFiberInDEV(fiber) {
  38210. {
  38211. var tag = fiber.tag;
  38212. if (tag !== HostRoot && tag !== ClassComponent && tag !== FunctionComponent && tag !== ForwardRef && tag !== MemoComponent && tag !== SimpleMemoComponent) {
  38213. // Only warn for user-defined components, not internal ones like Suspense.
  38214. return;
  38215. }
  38216. // We show the whole stack but dedupe on the top component's name because
  38217. // the problematic code almost always lies inside that component.
  38218. var componentName = getComponentName(fiber.type) || 'ReactComponent';
  38219. if (didWarnStateUpdateForUnmountedComponent !== null) {
  38220. if (didWarnStateUpdateForUnmountedComponent.has(componentName)) {
  38221. return;
  38222. }
  38223. didWarnStateUpdateForUnmountedComponent.add(componentName);
  38224. } else {
  38225. didWarnStateUpdateForUnmountedComponent = new Set([componentName]);
  38226. }
  38227. warningWithoutStack$1(false, "Can't perform a React state update on an unmounted component. This " + 'is a no-op, but it indicates a memory leak in your application. To ' + 'fix, cancel all subscriptions and asynchronous tasks in %s.%s', tag === ClassComponent ? 'the componentWillUnmount method' : 'a useEffect cleanup function', getStackByFiberInDevAndProd(fiber));
  38228. }
  38229. }
  38230. var beginWork$$1 = void 0;
  38231. if ( true && replayFailedUnitOfWorkWithInvokeGuardedCallback) {
  38232. var dummyFiber = null;
  38233. beginWork$$1 = function (current$$1, unitOfWork, expirationTime) {
  38234. // If a component throws an error, we replay it again in a synchronously
  38235. // dispatched event, so that the debugger will treat it as an uncaught
  38236. // error See ReactErrorUtils for more information.
  38237. // Before entering the begin phase, copy the work-in-progress onto a dummy
  38238. // fiber. If beginWork throws, we'll use this to reset the state.
  38239. var originalWorkInProgressCopy = assignFiberPropertiesInDEV(dummyFiber, unitOfWork);
  38240. try {
  38241. return beginWork$1(current$$1, unitOfWork, expirationTime);
  38242. } catch (originalError) {
  38243. if (originalError !== null && typeof originalError === 'object' && typeof originalError.then === 'function') {
  38244. // Don't replay promises. Treat everything else like an error.
  38245. throw originalError;
  38246. }
  38247. // Keep this code in sync with renderRoot; any changes here must have
  38248. // corresponding changes there.
  38249. resetContextDependencies();
  38250. resetHooks();
  38251. // Unwind the failed stack frame
  38252. unwindInterruptedWork(unitOfWork);
  38253. // Restore the original properties of the fiber.
  38254. assignFiberPropertiesInDEV(unitOfWork, originalWorkInProgressCopy);
  38255. if (enableProfilerTimer && unitOfWork.mode & ProfileMode) {
  38256. // Reset the profiler timer.
  38257. startProfilerTimer(unitOfWork);
  38258. }
  38259. // Run beginWork again.
  38260. invokeGuardedCallback(null, beginWork$1, null, current$$1, unitOfWork, expirationTime);
  38261. if (hasCaughtError()) {
  38262. var replayError = clearCaughtError();
  38263. // `invokeGuardedCallback` sometimes sets an expando `_suppressLogging`.
  38264. // Rethrow this error instead of the original one.
  38265. throw replayError;
  38266. } else {
  38267. // This branch is reachable if the render phase is impure.
  38268. throw originalError;
  38269. }
  38270. }
  38271. };
  38272. } else {
  38273. beginWork$$1 = beginWork$1;
  38274. }
  38275. var didWarnAboutUpdateInRender = false;
  38276. var didWarnAboutUpdateInGetChildContext = false;
  38277. function warnAboutInvalidUpdatesOnClassComponentsInDEV(fiber) {
  38278. {
  38279. if (fiber.tag === ClassComponent) {
  38280. switch (phase) {
  38281. case 'getChildContext':
  38282. if (didWarnAboutUpdateInGetChildContext) {
  38283. return;
  38284. }
  38285. warningWithoutStack$1(false, 'setState(...): Cannot call setState() inside getChildContext()');
  38286. didWarnAboutUpdateInGetChildContext = true;
  38287. break;
  38288. case 'render':
  38289. if (didWarnAboutUpdateInRender) {
  38290. return;
  38291. }
  38292. warningWithoutStack$1(false, 'Cannot update during an existing state transition (such as ' + 'within `render`). Render methods should be a pure function of ' + 'props and state.');
  38293. didWarnAboutUpdateInRender = true;
  38294. break;
  38295. }
  38296. }
  38297. }
  38298. }
  38299. // a 'shared' variable that changes when act() opens/closes in tests.
  38300. var IsThisRendererActing = { current: false };
  38301. function warnIfNotScopedWithMatchingAct(fiber) {
  38302. {
  38303. if (warnsIfNotActing === true && IsSomeRendererActing.current === true && IsThisRendererActing.current !== true) {
  38304. warningWithoutStack$1(false, "It looks like you're using the wrong act() around your test interactions.\n" + 'Be sure to use the matching version of act() corresponding to your renderer:\n\n' + '// for react-dom:\n' + "import {act} from 'react-dom/test-utils';\n" + '//...\n' + 'act(() => ...);\n\n' + '// for react-test-renderer:\n' + "import TestRenderer from 'react-test-renderer';\n" + 'const {act} = TestRenderer;\n' + '//...\n' + 'act(() => ...);' + '%s', getStackByFiberInDevAndProd(fiber));
  38305. }
  38306. }
  38307. }
  38308. function warnIfNotCurrentlyActingEffectsInDEV(fiber) {
  38309. {
  38310. if (warnsIfNotActing === true && (fiber.mode & StrictMode) !== NoMode && IsSomeRendererActing.current === false && IsThisRendererActing.current === false) {
  38311. warningWithoutStack$1(false, 'An update to %s ran an effect, but was not wrapped in act(...).\n\n' + 'When testing, code that causes React state updates should be ' + 'wrapped into act(...):\n\n' + 'act(() => {\n' + ' /* fire events that update state */\n' + '});\n' + '/* assert on the output */\n\n' + "This ensures that you're testing the behavior the user would see " + 'in the browser.' + ' Learn more at https://fb.me/react-wrap-tests-with-act' + '%s', getComponentName(fiber.type), getStackByFiberInDevAndProd(fiber));
  38312. }
  38313. }
  38314. }
  38315. function warnIfNotCurrentlyActingUpdatesInDEV(fiber) {
  38316. {
  38317. if (warnsIfNotActing === true && executionContext === NoContext && IsSomeRendererActing.current === false && IsThisRendererActing.current === false) {
  38318. warningWithoutStack$1(false, 'An update to %s inside a test was not wrapped in act(...).\n\n' + 'When testing, code that causes React state updates should be ' + 'wrapped into act(...):\n\n' + 'act(() => {\n' + ' /* fire events that update state */\n' + '});\n' + '/* assert on the output */\n\n' + "This ensures that you're testing the behavior the user would see " + 'in the browser.' + ' Learn more at https://fb.me/react-wrap-tests-with-act' + '%s', getComponentName(fiber.type), getStackByFiberInDevAndProd(fiber));
  38319. }
  38320. }
  38321. }
  38322. var warnIfNotCurrentlyActingUpdatesInDev = warnIfNotCurrentlyActingUpdatesInDEV;
  38323. // In tests, we want to enforce a mocked scheduler.
  38324. var didWarnAboutUnmockedScheduler = false;
  38325. // TODO Before we release concurrent mode, revisit this and decide whether a mocked
  38326. // scheduler is the actual recommendation. The alternative could be a testing build,
  38327. // a new lib, or whatever; we dunno just yet. This message is for early adopters
  38328. // to get their tests right.
  38329. function warnIfUnmockedScheduler(fiber) {
  38330. {
  38331. if (didWarnAboutUnmockedScheduler === false && Scheduler.unstable_flushAllWithoutAsserting === undefined) {
  38332. if (fiber.mode & BatchedMode || fiber.mode & ConcurrentMode) {
  38333. didWarnAboutUnmockedScheduler = true;
  38334. warningWithoutStack$1(false, 'In Concurrent or Sync modes, the "scheduler" module needs to be mocked ' + 'to guarantee consistent behaviour across tests and browsers. ' + 'For example, with jest: \n' + "jest.mock('scheduler', () => require('scheduler/unstable_mock'));\n\n" + 'For more info, visit https://fb.me/react-mock-scheduler');
  38335. } else if (warnAboutUnmockedScheduler === true) {
  38336. didWarnAboutUnmockedScheduler = true;
  38337. warningWithoutStack$1(false, 'Starting from React v17, the "scheduler" module will need to be mocked ' + 'to guarantee consistent behaviour across tests and browsers. ' + 'For example, with jest: \n' + "jest.mock('scheduler', () => require('scheduler/unstable_mock'));\n\n" + 'For more info, visit https://fb.me/react-mock-scheduler');
  38338. }
  38339. }
  38340. }
  38341. }
  38342. var componentsThatTriggeredHighPriSuspend = null;
  38343. function checkForWrongSuspensePriorityInDEV(sourceFiber) {
  38344. {
  38345. var currentPriorityLevel = getCurrentPriorityLevel();
  38346. if ((sourceFiber.mode & ConcurrentMode) !== NoEffect && (currentPriorityLevel === UserBlockingPriority$2 || currentPriorityLevel === ImmediatePriority)) {
  38347. var workInProgressNode = sourceFiber;
  38348. while (workInProgressNode !== null) {
  38349. // Add the component that triggered the suspense
  38350. var current$$1 = workInProgressNode.alternate;
  38351. if (current$$1 !== null) {
  38352. // TODO: warn component that triggers the high priority
  38353. // suspend is the HostRoot
  38354. switch (workInProgressNode.tag) {
  38355. case ClassComponent:
  38356. // Loop through the component's update queue and see whether the component
  38357. // has triggered any high priority updates
  38358. var updateQueue = current$$1.updateQueue;
  38359. if (updateQueue !== null) {
  38360. var update = updateQueue.firstUpdate;
  38361. while (update !== null) {
  38362. var priorityLevel = update.priority;
  38363. if (priorityLevel === UserBlockingPriority$2 || priorityLevel === ImmediatePriority) {
  38364. if (componentsThatTriggeredHighPriSuspend === null) {
  38365. componentsThatTriggeredHighPriSuspend = new Set([getComponentName(workInProgressNode.type)]);
  38366. } else {
  38367. componentsThatTriggeredHighPriSuspend.add(getComponentName(workInProgressNode.type));
  38368. }
  38369. break;
  38370. }
  38371. update = update.next;
  38372. }
  38373. }
  38374. break;
  38375. case FunctionComponent:
  38376. case ForwardRef:
  38377. case SimpleMemoComponent:
  38378. if (workInProgressNode.memoizedState !== null && workInProgressNode.memoizedState.baseUpdate !== null) {
  38379. var _update = workInProgressNode.memoizedState.baseUpdate;
  38380. // Loop through the functional component's memoized state to see whether
  38381. // the component has triggered any high pri updates
  38382. while (_update !== null) {
  38383. var priority = _update.priority;
  38384. if (priority === UserBlockingPriority$2 || priority === ImmediatePriority) {
  38385. if (componentsThatTriggeredHighPriSuspend === null) {
  38386. componentsThatTriggeredHighPriSuspend = new Set([getComponentName(workInProgressNode.type)]);
  38387. } else {
  38388. componentsThatTriggeredHighPriSuspend.add(getComponentName(workInProgressNode.type));
  38389. }
  38390. break;
  38391. }
  38392. if (_update.next === workInProgressNode.memoizedState.baseUpdate) {
  38393. break;
  38394. }
  38395. _update = _update.next;
  38396. }
  38397. }
  38398. break;
  38399. default:
  38400. break;
  38401. }
  38402. }
  38403. workInProgressNode = workInProgressNode.return;
  38404. }
  38405. }
  38406. }
  38407. }
  38408. function flushSuspensePriorityWarningInDEV() {
  38409. {
  38410. if (componentsThatTriggeredHighPriSuspend !== null) {
  38411. var componentNames = [];
  38412. componentsThatTriggeredHighPriSuspend.forEach(function (name) {
  38413. return componentNames.push(name);
  38414. });
  38415. componentsThatTriggeredHighPriSuspend = null;
  38416. if (componentNames.length > 0) {
  38417. warningWithoutStack$1(false, '%s triggered a user-blocking update that suspended.' + '\n\n' + 'The fix is to split the update into multiple parts: a user-blocking ' + 'update to provide immediate feedback, and another update that ' + 'triggers the bulk of the changes.' + '\n\n' + 'Refer to the documentation for useSuspenseTransition to learn how ' + 'to implement this pattern.',
  38418. // TODO: Add link to React docs with more information, once it exists
  38419. componentNames.sort().join(', '));
  38420. }
  38421. }
  38422. }
  38423. }
  38424. function computeThreadID(root, expirationTime) {
  38425. // Interaction threads are unique per root and expiration time.
  38426. return expirationTime * 1000 + root.interactionThreadID;
  38427. }
  38428. function markSpawnedWork(expirationTime) {
  38429. if (!enableSchedulerTracing) {
  38430. return;
  38431. }
  38432. if (spawnedWorkDuringRender === null) {
  38433. spawnedWorkDuringRender = [expirationTime];
  38434. } else {
  38435. spawnedWorkDuringRender.push(expirationTime);
  38436. }
  38437. }
  38438. function scheduleInteractions(root, expirationTime, interactions) {
  38439. if (!enableSchedulerTracing) {
  38440. return;
  38441. }
  38442. if (interactions.size > 0) {
  38443. var pendingInteractionMap = root.pendingInteractionMap;
  38444. var pendingInteractions = pendingInteractionMap.get(expirationTime);
  38445. if (pendingInteractions != null) {
  38446. interactions.forEach(function (interaction) {
  38447. if (!pendingInteractions.has(interaction)) {
  38448. // Update the pending async work count for previously unscheduled interaction.
  38449. interaction.__count++;
  38450. }
  38451. pendingInteractions.add(interaction);
  38452. });
  38453. } else {
  38454. pendingInteractionMap.set(expirationTime, new Set(interactions));
  38455. // Update the pending async work count for the current interactions.
  38456. interactions.forEach(function (interaction) {
  38457. interaction.__count++;
  38458. });
  38459. }
  38460. var subscriber = tracing.__subscriberRef.current;
  38461. if (subscriber !== null) {
  38462. var threadID = computeThreadID(root, expirationTime);
  38463. subscriber.onWorkScheduled(interactions, threadID);
  38464. }
  38465. }
  38466. }
  38467. function schedulePendingInteractions(root, expirationTime) {
  38468. // This is called when work is scheduled on a root.
  38469. // It associates the current interactions with the newly-scheduled expiration.
  38470. // They will be restored when that expiration is later committed.
  38471. if (!enableSchedulerTracing) {
  38472. return;
  38473. }
  38474. scheduleInteractions(root, expirationTime, tracing.__interactionsRef.current);
  38475. }
  38476. function startWorkOnPendingInteractions(root, expirationTime) {
  38477. // This is called when new work is started on a root.
  38478. if (!enableSchedulerTracing) {
  38479. return;
  38480. }
  38481. // Determine which interactions this batch of work currently includes, So that
  38482. // we can accurately attribute time spent working on it, And so that cascading
  38483. // work triggered during the render phase will be associated with it.
  38484. var interactions = new Set();
  38485. root.pendingInteractionMap.forEach(function (scheduledInteractions, scheduledExpirationTime) {
  38486. if (scheduledExpirationTime >= expirationTime) {
  38487. scheduledInteractions.forEach(function (interaction) {
  38488. return interactions.add(interaction);
  38489. });
  38490. }
  38491. });
  38492. // Store the current set of interactions on the FiberRoot for a few reasons:
  38493. // We can re-use it in hot functions like renderRoot() without having to
  38494. // recalculate it. We will also use it in commitWork() to pass to any Profiler
  38495. // onRender() hooks. This also provides DevTools with a way to access it when
  38496. // the onCommitRoot() hook is called.
  38497. root.memoizedInteractions = interactions;
  38498. if (interactions.size > 0) {
  38499. var subscriber = tracing.__subscriberRef.current;
  38500. if (subscriber !== null) {
  38501. var threadID = computeThreadID(root, expirationTime);
  38502. try {
  38503. subscriber.onWorkStarted(interactions, threadID);
  38504. } catch (error) {
  38505. // If the subscriber throws, rethrow it in a separate task
  38506. scheduleCallback(ImmediatePriority, function () {
  38507. throw error;
  38508. });
  38509. }
  38510. }
  38511. }
  38512. }
  38513. function finishPendingInteractions(root, committedExpirationTime) {
  38514. if (!enableSchedulerTracing) {
  38515. return;
  38516. }
  38517. var earliestRemainingTimeAfterCommit = root.firstPendingTime;
  38518. var subscriber = void 0;
  38519. try {
  38520. subscriber = tracing.__subscriberRef.current;
  38521. if (subscriber !== null && root.memoizedInteractions.size > 0) {
  38522. var threadID = computeThreadID(root, committedExpirationTime);
  38523. subscriber.onWorkStopped(root.memoizedInteractions, threadID);
  38524. }
  38525. } catch (error) {
  38526. // If the subscriber throws, rethrow it in a separate task
  38527. scheduleCallback(ImmediatePriority, function () {
  38528. throw error;
  38529. });
  38530. } finally {
  38531. // Clear completed interactions from the pending Map.
  38532. // Unless the render was suspended or cascading work was scheduled,
  38533. // In which case– leave pending interactions until the subsequent render.
  38534. var pendingInteractionMap = root.pendingInteractionMap;
  38535. pendingInteractionMap.forEach(function (scheduledInteractions, scheduledExpirationTime) {
  38536. // Only decrement the pending interaction count if we're done.
  38537. // If there's still work at the current priority,
  38538. // That indicates that we are waiting for suspense data.
  38539. if (scheduledExpirationTime > earliestRemainingTimeAfterCommit) {
  38540. pendingInteractionMap.delete(scheduledExpirationTime);
  38541. scheduledInteractions.forEach(function (interaction) {
  38542. interaction.__count--;
  38543. if (subscriber !== null && interaction.__count === 0) {
  38544. try {
  38545. subscriber.onInteractionScheduledWorkCompleted(interaction);
  38546. } catch (error) {
  38547. // If the subscriber throws, rethrow it in a separate task
  38548. scheduleCallback(ImmediatePriority, function () {
  38549. throw error;
  38550. });
  38551. }
  38552. }
  38553. });
  38554. }
  38555. });
  38556. }
  38557. }
  38558. var onCommitFiberRoot = null;
  38559. var onCommitFiberUnmount = null;
  38560. var hasLoggedError = false;
  38561. var isDevToolsPresent = typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined';
  38562. function injectInternals(internals) {
  38563. if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined') {
  38564. // No DevTools
  38565. return false;
  38566. }
  38567. var hook = __REACT_DEVTOOLS_GLOBAL_HOOK__;
  38568. if (hook.isDisabled) {
  38569. // This isn't a real property on the hook, but it can be set to opt out
  38570. // of DevTools integration and associated warnings and logs.
  38571. // https://github.com/facebook/react/issues/3877
  38572. return true;
  38573. }
  38574. if (!hook.supportsFiber) {
  38575. {
  38576. warningWithoutStack$1(false, 'The installed version of React DevTools is too old and will not work ' + 'with the current version of React. Please update React DevTools. ' + 'https://fb.me/react-devtools');
  38577. }
  38578. // DevTools exists, even though it doesn't support Fiber.
  38579. return true;
  38580. }
  38581. try {
  38582. var rendererID = hook.inject(internals);
  38583. // We have successfully injected, so now it is safe to set up hooks.
  38584. onCommitFiberRoot = function (root, expirationTime) {
  38585. try {
  38586. var didError = (root.current.effectTag & DidCapture) === DidCapture;
  38587. if (enableProfilerTimer) {
  38588. var currentTime = requestCurrentTime();
  38589. var priorityLevel = inferPriorityFromExpirationTime(currentTime, expirationTime);
  38590. hook.onCommitFiberRoot(rendererID, root, priorityLevel, didError);
  38591. } else {
  38592. hook.onCommitFiberRoot(rendererID, root, undefined, didError);
  38593. }
  38594. } catch (err) {
  38595. if ( true && !hasLoggedError) {
  38596. hasLoggedError = true;
  38597. warningWithoutStack$1(false, 'React DevTools encountered an error: %s', err);
  38598. }
  38599. }
  38600. };
  38601. onCommitFiberUnmount = function (fiber) {
  38602. try {
  38603. hook.onCommitFiberUnmount(rendererID, fiber);
  38604. } catch (err) {
  38605. if ( true && !hasLoggedError) {
  38606. hasLoggedError = true;
  38607. warningWithoutStack$1(false, 'React DevTools encountered an error: %s', err);
  38608. }
  38609. }
  38610. };
  38611. } catch (err) {
  38612. // Catch all errors because it is unsafe to throw during initialization.
  38613. {
  38614. warningWithoutStack$1(false, 'React DevTools encountered an error: %s.', err);
  38615. }
  38616. }
  38617. // DevTools exists
  38618. return true;
  38619. }
  38620. function onCommitRoot(root, expirationTime) {
  38621. if (typeof onCommitFiberRoot === 'function') {
  38622. onCommitFiberRoot(root, expirationTime);
  38623. }
  38624. }
  38625. function onCommitUnmount(fiber) {
  38626. if (typeof onCommitFiberUnmount === 'function') {
  38627. onCommitFiberUnmount(fiber);
  38628. }
  38629. }
  38630. var hasBadMapPolyfill = void 0;
  38631. {
  38632. hasBadMapPolyfill = false;
  38633. try {
  38634. var nonExtensibleObject = Object.preventExtensions({});
  38635. var testMap = new Map([[nonExtensibleObject, null]]);
  38636. var testSet = new Set([nonExtensibleObject]);
  38637. // This is necessary for Rollup to not consider these unused.
  38638. // https://github.com/rollup/rollup/issues/1771
  38639. // TODO: we can remove these if Rollup fixes the bug.
  38640. testMap.set(0, 0);
  38641. testSet.add(0);
  38642. } catch (e) {
  38643. // TODO: Consider warning about bad polyfills
  38644. hasBadMapPolyfill = true;
  38645. }
  38646. }
  38647. // A Fiber is work on a Component that needs to be done or was done. There can
  38648. // be more than one per component.
  38649. var debugCounter = void 0;
  38650. {
  38651. debugCounter = 1;
  38652. }
  38653. function FiberNode(tag, pendingProps, key, mode) {
  38654. // Instance
  38655. this.tag = tag;
  38656. this.key = key;
  38657. this.elementType = null;
  38658. this.type = null;
  38659. this.stateNode = null;
  38660. // Fiber
  38661. this.return = null;
  38662. this.child = null;
  38663. this.sibling = null;
  38664. this.index = 0;
  38665. this.ref = null;
  38666. this.pendingProps = pendingProps;
  38667. this.memoizedProps = null;
  38668. this.updateQueue = null;
  38669. this.memoizedState = null;
  38670. this.dependencies = null;
  38671. this.mode = mode;
  38672. // Effects
  38673. this.effectTag = NoEffect;
  38674. this.nextEffect = null;
  38675. this.firstEffect = null;
  38676. this.lastEffect = null;
  38677. this.expirationTime = NoWork;
  38678. this.childExpirationTime = NoWork;
  38679. this.alternate = null;
  38680. if (enableProfilerTimer) {
  38681. // Note: The following is done to avoid a v8 performance cliff.
  38682. //
  38683. // Initializing the fields below to smis and later updating them with
  38684. // double values will cause Fibers to end up having separate shapes.
  38685. // This behavior/bug has something to do with Object.preventExtension().
  38686. // Fortunately this only impacts DEV builds.
  38687. // Unfortunately it makes React unusably slow for some applications.
  38688. // To work around this, initialize the fields below with doubles.
  38689. //
  38690. // Learn more about this here:
  38691. // https://github.com/facebook/react/issues/14365
  38692. // https://bugs.chromium.org/p/v8/issues/detail?id=8538
  38693. this.actualDuration = Number.NaN;
  38694. this.actualStartTime = Number.NaN;
  38695. this.selfBaseDuration = Number.NaN;
  38696. this.treeBaseDuration = Number.NaN;
  38697. // It's okay to replace the initial doubles with smis after initialization.
  38698. // This won't trigger the performance cliff mentioned above,
  38699. // and it simplifies other profiler code (including DevTools).
  38700. this.actualDuration = 0;
  38701. this.actualStartTime = -1;
  38702. this.selfBaseDuration = 0;
  38703. this.treeBaseDuration = 0;
  38704. }
  38705. {
  38706. this._debugID = debugCounter++;
  38707. this._debugSource = null;
  38708. this._debugOwner = null;
  38709. this._debugIsCurrentlyTiming = false;
  38710. this._debugNeedsRemount = false;
  38711. this._debugHookTypes = null;
  38712. if (!hasBadMapPolyfill && typeof Object.preventExtensions === 'function') {
  38713. Object.preventExtensions(this);
  38714. }
  38715. }
  38716. }
  38717. // This is a constructor function, rather than a POJO constructor, still
  38718. // please ensure we do the following:
  38719. // 1) Nobody should add any instance methods on this. Instance methods can be
  38720. // more difficult to predict when they get optimized and they are almost
  38721. // never inlined properly in static compilers.
  38722. // 2) Nobody should rely on `instanceof Fiber` for type testing. We should
  38723. // always know when it is a fiber.
  38724. // 3) We might want to experiment with using numeric keys since they are easier
  38725. // to optimize in a non-JIT environment.
  38726. // 4) We can easily go from a constructor to a createFiber object literal if that
  38727. // is faster.
  38728. // 5) It should be easy to port this to a C struct and keep a C implementation
  38729. // compatible.
  38730. var createFiber = function (tag, pendingProps, key, mode) {
  38731. // $FlowFixMe: the shapes are exact here but Flow doesn't like constructors
  38732. return new FiberNode(tag, pendingProps, key, mode);
  38733. };
  38734. function shouldConstruct(Component) {
  38735. var prototype = Component.prototype;
  38736. return !!(prototype && prototype.isReactComponent);
  38737. }
  38738. function isSimpleFunctionComponent(type) {
  38739. return typeof type === 'function' && !shouldConstruct(type) && type.defaultProps === undefined;
  38740. }
  38741. function resolveLazyComponentTag(Component) {
  38742. if (typeof Component === 'function') {
  38743. return shouldConstruct(Component) ? ClassComponent : FunctionComponent;
  38744. } else if (Component !== undefined && Component !== null) {
  38745. var $$typeof = Component.$$typeof;
  38746. if ($$typeof === REACT_FORWARD_REF_TYPE) {
  38747. return ForwardRef;
  38748. }
  38749. if ($$typeof === REACT_MEMO_TYPE) {
  38750. return MemoComponent;
  38751. }
  38752. }
  38753. return IndeterminateComponent;
  38754. }
  38755. // This is used to create an alternate fiber to do work on.
  38756. function createWorkInProgress(current, pendingProps, expirationTime) {
  38757. var workInProgress = current.alternate;
  38758. if (workInProgress === null) {
  38759. // We use a double buffering pooling technique because we know that we'll
  38760. // only ever need at most two versions of a tree. We pool the "other" unused
  38761. // node that we're free to reuse. This is lazily created to avoid allocating
  38762. // extra objects for things that are never updated. It also allow us to
  38763. // reclaim the extra memory if needed.
  38764. workInProgress = createFiber(current.tag, pendingProps, current.key, current.mode);
  38765. workInProgress.elementType = current.elementType;
  38766. workInProgress.type = current.type;
  38767. workInProgress.stateNode = current.stateNode;
  38768. {
  38769. // DEV-only fields
  38770. workInProgress._debugID = current._debugID;
  38771. workInProgress._debugSource = current._debugSource;
  38772. workInProgress._debugOwner = current._debugOwner;
  38773. workInProgress._debugHookTypes = current._debugHookTypes;
  38774. }
  38775. workInProgress.alternate = current;
  38776. current.alternate = workInProgress;
  38777. } else {
  38778. workInProgress.pendingProps = pendingProps;
  38779. // We already have an alternate.
  38780. // Reset the effect tag.
  38781. workInProgress.effectTag = NoEffect;
  38782. // The effect list is no longer valid.
  38783. workInProgress.nextEffect = null;
  38784. workInProgress.firstEffect = null;
  38785. workInProgress.lastEffect = null;
  38786. if (enableProfilerTimer) {
  38787. // We intentionally reset, rather than copy, actualDuration & actualStartTime.
  38788. // This prevents time from endlessly accumulating in new commits.
  38789. // This has the downside of resetting values for different priority renders,
  38790. // But works for yielding (the common case) and should support resuming.
  38791. workInProgress.actualDuration = 0;
  38792. workInProgress.actualStartTime = -1;
  38793. }
  38794. }
  38795. workInProgress.childExpirationTime = current.childExpirationTime;
  38796. workInProgress.expirationTime = current.expirationTime;
  38797. workInProgress.child = current.child;
  38798. workInProgress.memoizedProps = current.memoizedProps;
  38799. workInProgress.memoizedState = current.memoizedState;
  38800. workInProgress.updateQueue = current.updateQueue;
  38801. // Clone the dependencies object. This is mutated during the render phase, so
  38802. // it cannot be shared with the current fiber.
  38803. var currentDependencies = current.dependencies;
  38804. workInProgress.dependencies = currentDependencies === null ? null : {
  38805. expirationTime: currentDependencies.expirationTime,
  38806. firstContext: currentDependencies.firstContext,
  38807. responders: currentDependencies.responders
  38808. };
  38809. // These will be overridden during the parent's reconciliation
  38810. workInProgress.sibling = current.sibling;
  38811. workInProgress.index = current.index;
  38812. workInProgress.ref = current.ref;
  38813. if (enableProfilerTimer) {
  38814. workInProgress.selfBaseDuration = current.selfBaseDuration;
  38815. workInProgress.treeBaseDuration = current.treeBaseDuration;
  38816. }
  38817. {
  38818. workInProgress._debugNeedsRemount = current._debugNeedsRemount;
  38819. switch (workInProgress.tag) {
  38820. case IndeterminateComponent:
  38821. case FunctionComponent:
  38822. case SimpleMemoComponent:
  38823. workInProgress.type = resolveFunctionForHotReloading(current.type);
  38824. break;
  38825. case ClassComponent:
  38826. workInProgress.type = resolveClassForHotReloading(current.type);
  38827. break;
  38828. case ForwardRef:
  38829. workInProgress.type = resolveForwardRefForHotReloading(current.type);
  38830. break;
  38831. default:
  38832. break;
  38833. }
  38834. }
  38835. return workInProgress;
  38836. }
  38837. // Used to reuse a Fiber for a second pass.
  38838. function resetWorkInProgress(workInProgress, renderExpirationTime) {
  38839. // This resets the Fiber to what createFiber or createWorkInProgress would
  38840. // have set the values to before during the first pass. Ideally this wouldn't
  38841. // be necessary but unfortunately many code paths reads from the workInProgress
  38842. // when they should be reading from current and writing to workInProgress.
  38843. // We assume pendingProps, index, key, ref, return are still untouched to
  38844. // avoid doing another reconciliation.
  38845. // Reset the effect tag but keep any Placement tags, since that's something
  38846. // that child fiber is setting, not the reconciliation.
  38847. workInProgress.effectTag &= Placement;
  38848. // The effect list is no longer valid.
  38849. workInProgress.nextEffect = null;
  38850. workInProgress.firstEffect = null;
  38851. workInProgress.lastEffect = null;
  38852. var current = workInProgress.alternate;
  38853. if (current === null) {
  38854. // Reset to createFiber's initial values.
  38855. workInProgress.childExpirationTime = NoWork;
  38856. workInProgress.expirationTime = renderExpirationTime;
  38857. workInProgress.child = null;
  38858. workInProgress.memoizedProps = null;
  38859. workInProgress.memoizedState = null;
  38860. workInProgress.updateQueue = null;
  38861. workInProgress.dependencies = null;
  38862. if (enableProfilerTimer) {
  38863. // Note: We don't reset the actualTime counts. It's useful to accumulate
  38864. // actual time across multiple render passes.
  38865. workInProgress.selfBaseDuration = 0;
  38866. workInProgress.treeBaseDuration = 0;
  38867. }
  38868. } else {
  38869. // Reset to the cloned values that createWorkInProgress would've.
  38870. workInProgress.childExpirationTime = current.childExpirationTime;
  38871. workInProgress.expirationTime = current.expirationTime;
  38872. workInProgress.child = current.child;
  38873. workInProgress.memoizedProps = current.memoizedProps;
  38874. workInProgress.memoizedState = current.memoizedState;
  38875. workInProgress.updateQueue = current.updateQueue;
  38876. // Clone the dependencies object. This is mutated during the render phase, so
  38877. // it cannot be shared with the current fiber.
  38878. var currentDependencies = current.dependencies;
  38879. workInProgress.dependencies = currentDependencies === null ? null : {
  38880. expirationTime: currentDependencies.expirationTime,
  38881. firstContext: currentDependencies.firstContext,
  38882. responders: currentDependencies.responders
  38883. };
  38884. if (enableProfilerTimer) {
  38885. // Note: We don't reset the actualTime counts. It's useful to accumulate
  38886. // actual time across multiple render passes.
  38887. workInProgress.selfBaseDuration = current.selfBaseDuration;
  38888. workInProgress.treeBaseDuration = current.treeBaseDuration;
  38889. }
  38890. }
  38891. return workInProgress;
  38892. }
  38893. function createHostRootFiber(tag) {
  38894. var mode = void 0;
  38895. if (tag === ConcurrentRoot) {
  38896. mode = ConcurrentMode | BatchedMode | StrictMode;
  38897. } else if (tag === BatchedRoot) {
  38898. mode = BatchedMode | StrictMode;
  38899. } else {
  38900. mode = NoMode;
  38901. }
  38902. if (enableProfilerTimer && isDevToolsPresent) {
  38903. // Always collect profile timings when DevTools are present.
  38904. // This enables DevTools to start capturing timing at any point–
  38905. // Without some nodes in the tree having empty base times.
  38906. mode |= ProfileMode;
  38907. }
  38908. return createFiber(HostRoot, null, null, mode);
  38909. }
  38910. function createFiberFromTypeAndProps(type, // React$ElementType
  38911. key, pendingProps, owner, mode, expirationTime) {
  38912. var fiber = void 0;
  38913. var fiberTag = IndeterminateComponent;
  38914. // The resolved type is set if we know what the final type will be. I.e. it's not lazy.
  38915. var resolvedType = type;
  38916. if (typeof type === 'function') {
  38917. if (shouldConstruct(type)) {
  38918. fiberTag = ClassComponent;
  38919. {
  38920. resolvedType = resolveClassForHotReloading(resolvedType);
  38921. }
  38922. } else {
  38923. {
  38924. resolvedType = resolveFunctionForHotReloading(resolvedType);
  38925. }
  38926. }
  38927. } else if (typeof type === 'string') {
  38928. fiberTag = HostComponent;
  38929. } else {
  38930. getTag: switch (type) {
  38931. case REACT_FRAGMENT_TYPE:
  38932. return createFiberFromFragment(pendingProps.children, mode, expirationTime, key);
  38933. case REACT_CONCURRENT_MODE_TYPE:
  38934. fiberTag = Mode;
  38935. mode |= ConcurrentMode | BatchedMode | StrictMode;
  38936. break;
  38937. case REACT_STRICT_MODE_TYPE:
  38938. fiberTag = Mode;
  38939. mode |= StrictMode;
  38940. break;
  38941. case REACT_PROFILER_TYPE:
  38942. return createFiberFromProfiler(pendingProps, mode, expirationTime, key);
  38943. case REACT_SUSPENSE_TYPE:
  38944. return createFiberFromSuspense(pendingProps, mode, expirationTime, key);
  38945. case REACT_SUSPENSE_LIST_TYPE:
  38946. return createFiberFromSuspenseList(pendingProps, mode, expirationTime, key);
  38947. default:
  38948. {
  38949. if (typeof type === 'object' && type !== null) {
  38950. switch (type.$$typeof) {
  38951. case REACT_PROVIDER_TYPE:
  38952. fiberTag = ContextProvider;
  38953. break getTag;
  38954. case REACT_CONTEXT_TYPE:
  38955. // This is a consumer
  38956. fiberTag = ContextConsumer;
  38957. break getTag;
  38958. case REACT_FORWARD_REF_TYPE:
  38959. fiberTag = ForwardRef;
  38960. {
  38961. resolvedType = resolveForwardRefForHotReloading(resolvedType);
  38962. }
  38963. break getTag;
  38964. case REACT_MEMO_TYPE:
  38965. fiberTag = MemoComponent;
  38966. break getTag;
  38967. case REACT_LAZY_TYPE:
  38968. fiberTag = LazyComponent;
  38969. resolvedType = null;
  38970. break getTag;
  38971. case REACT_FUNDAMENTAL_TYPE:
  38972. if (enableFundamentalAPI) {
  38973. return createFiberFromFundamental(type, pendingProps, mode, expirationTime, key);
  38974. }
  38975. break;
  38976. }
  38977. }
  38978. var info = '';
  38979. {
  38980. if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
  38981. info += ' You likely forgot to export your component from the file ' + "it's defined in, or you might have mixed up default and " + 'named imports.';
  38982. }
  38983. var ownerName = owner ? getComponentName(owner.type) : null;
  38984. if (ownerName) {
  38985. info += '\n\nCheck the render method of `' + ownerName + '`.';
  38986. }
  38987. }
  38988. (function () {
  38989. {
  38990. {
  38991. throw ReactError(Error('Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: ' + (type == null ? type : typeof type) + '.' + info));
  38992. }
  38993. }
  38994. })();
  38995. }
  38996. }
  38997. }
  38998. fiber = createFiber(fiberTag, pendingProps, key, mode);
  38999. fiber.elementType = type;
  39000. fiber.type = resolvedType;
  39001. fiber.expirationTime = expirationTime;
  39002. return fiber;
  39003. }
  39004. function createFiberFromElement(element, mode, expirationTime) {
  39005. var owner = null;
  39006. {
  39007. owner = element._owner;
  39008. }
  39009. var type = element.type;
  39010. var key = element.key;
  39011. var pendingProps = element.props;
  39012. var fiber = createFiberFromTypeAndProps(type, key, pendingProps, owner, mode, expirationTime);
  39013. {
  39014. fiber._debugSource = element._source;
  39015. fiber._debugOwner = element._owner;
  39016. }
  39017. return fiber;
  39018. }
  39019. function createFiberFromFragment(elements, mode, expirationTime, key) {
  39020. var fiber = createFiber(Fragment, elements, key, mode);
  39021. fiber.expirationTime = expirationTime;
  39022. return fiber;
  39023. }
  39024. function createFiberFromFundamental(fundamentalComponent, pendingProps, mode, expirationTime, key) {
  39025. var fiber = createFiber(FundamentalComponent, pendingProps, key, mode);
  39026. fiber.elementType = fundamentalComponent;
  39027. fiber.type = fundamentalComponent;
  39028. fiber.expirationTime = expirationTime;
  39029. return fiber;
  39030. }
  39031. function createFiberFromProfiler(pendingProps, mode, expirationTime, key) {
  39032. {
  39033. if (typeof pendingProps.id !== 'string' || typeof pendingProps.onRender !== 'function') {
  39034. warningWithoutStack$1(false, 'Profiler must specify an "id" string and "onRender" function as props');
  39035. }
  39036. }
  39037. var fiber = createFiber(Profiler, pendingProps, key, mode | ProfileMode);
  39038. // TODO: The Profiler fiber shouldn't have a type. It has a tag.
  39039. fiber.elementType = REACT_PROFILER_TYPE;
  39040. fiber.type = REACT_PROFILER_TYPE;
  39041. fiber.expirationTime = expirationTime;
  39042. return fiber;
  39043. }
  39044. function createFiberFromSuspense(pendingProps, mode, expirationTime, key) {
  39045. var fiber = createFiber(SuspenseComponent, pendingProps, key, mode);
  39046. // TODO: The SuspenseComponent fiber shouldn't have a type. It has a tag.
  39047. // This needs to be fixed in getComponentName so that it relies on the tag
  39048. // instead.
  39049. fiber.type = REACT_SUSPENSE_TYPE;
  39050. fiber.elementType = REACT_SUSPENSE_TYPE;
  39051. fiber.expirationTime = expirationTime;
  39052. return fiber;
  39053. }
  39054. function createFiberFromSuspenseList(pendingProps, mode, expirationTime, key) {
  39055. var fiber = createFiber(SuspenseListComponent, pendingProps, key, mode);
  39056. {
  39057. // TODO: The SuspenseListComponent fiber shouldn't have a type. It has a tag.
  39058. // This needs to be fixed in getComponentName so that it relies on the tag
  39059. // instead.
  39060. fiber.type = REACT_SUSPENSE_LIST_TYPE;
  39061. }
  39062. fiber.elementType = REACT_SUSPENSE_LIST_TYPE;
  39063. fiber.expirationTime = expirationTime;
  39064. return fiber;
  39065. }
  39066. function createFiberFromText(content, mode, expirationTime) {
  39067. var fiber = createFiber(HostText, content, null, mode);
  39068. fiber.expirationTime = expirationTime;
  39069. return fiber;
  39070. }
  39071. function createFiberFromHostInstanceForDeletion() {
  39072. var fiber = createFiber(HostComponent, null, null, NoMode);
  39073. // TODO: These should not need a type.
  39074. fiber.elementType = 'DELETED';
  39075. fiber.type = 'DELETED';
  39076. return fiber;
  39077. }
  39078. function createFiberFromPortal(portal, mode, expirationTime) {
  39079. var pendingProps = portal.children !== null ? portal.children : [];
  39080. var fiber = createFiber(HostPortal, pendingProps, portal.key, mode);
  39081. fiber.expirationTime = expirationTime;
  39082. fiber.stateNode = {
  39083. containerInfo: portal.containerInfo,
  39084. pendingChildren: null, // Used by persistent updates
  39085. implementation: portal.implementation
  39086. };
  39087. return fiber;
  39088. }
  39089. // Used for stashing WIP properties to replay failed work in DEV.
  39090. function assignFiberPropertiesInDEV(target, source) {
  39091. if (target === null) {
  39092. // This Fiber's initial properties will always be overwritten.
  39093. // We only use a Fiber to ensure the same hidden class so DEV isn't slow.
  39094. target = createFiber(IndeterminateComponent, null, null, NoMode);
  39095. }
  39096. // This is intentionally written as a list of all properties.
  39097. // We tried to use Object.assign() instead but this is called in
  39098. // the hottest path, and Object.assign() was too slow:
  39099. // https://github.com/facebook/react/issues/12502
  39100. // This code is DEV-only so size is not a concern.
  39101. target.tag = source.tag;
  39102. target.key = source.key;
  39103. target.elementType = source.elementType;
  39104. target.type = source.type;
  39105. target.stateNode = source.stateNode;
  39106. target.return = source.return;
  39107. target.child = source.child;
  39108. target.sibling = source.sibling;
  39109. target.index = source.index;
  39110. target.ref = source.ref;
  39111. target.pendingProps = source.pendingProps;
  39112. target.memoizedProps = source.memoizedProps;
  39113. target.updateQueue = source.updateQueue;
  39114. target.memoizedState = source.memoizedState;
  39115. target.dependencies = source.dependencies;
  39116. target.mode = source.mode;
  39117. target.effectTag = source.effectTag;
  39118. target.nextEffect = source.nextEffect;
  39119. target.firstEffect = source.firstEffect;
  39120. target.lastEffect = source.lastEffect;
  39121. target.expirationTime = source.expirationTime;
  39122. target.childExpirationTime = source.childExpirationTime;
  39123. target.alternate = source.alternate;
  39124. if (enableProfilerTimer) {
  39125. target.actualDuration = source.actualDuration;
  39126. target.actualStartTime = source.actualStartTime;
  39127. target.selfBaseDuration = source.selfBaseDuration;
  39128. target.treeBaseDuration = source.treeBaseDuration;
  39129. }
  39130. target._debugID = source._debugID;
  39131. target._debugSource = source._debugSource;
  39132. target._debugOwner = source._debugOwner;
  39133. target._debugIsCurrentlyTiming = source._debugIsCurrentlyTiming;
  39134. target._debugNeedsRemount = source._debugNeedsRemount;
  39135. target._debugHookTypes = source._debugHookTypes;
  39136. return target;
  39137. }
  39138. // TODO: This should be lifted into the renderer.
  39139. // The following attributes are only used by interaction tracing builds.
  39140. // They enable interactions to be associated with their async work,
  39141. // And expose interaction metadata to the React DevTools Profiler plugin.
  39142. // Note that these attributes are only defined when the enableSchedulerTracing flag is enabled.
  39143. // Exported FiberRoot type includes all properties,
  39144. // To avoid requiring potentially error-prone :any casts throughout the project.
  39145. // Profiling properties are only safe to access in profiling builds (when enableSchedulerTracing is true).
  39146. // The types are defined separately within this file to ensure they stay in sync.
  39147. // (We don't have to use an inline :any cast when enableSchedulerTracing is disabled.)
  39148. function FiberRootNode(containerInfo, tag, hydrate) {
  39149. this.tag = tag;
  39150. this.current = null;
  39151. this.containerInfo = containerInfo;
  39152. this.pendingChildren = null;
  39153. this.pingCache = null;
  39154. this.finishedExpirationTime = NoWork;
  39155. this.finishedWork = null;
  39156. this.timeoutHandle = noTimeout;
  39157. this.context = null;
  39158. this.pendingContext = null;
  39159. this.hydrate = hydrate;
  39160. this.firstBatch = null;
  39161. this.callbackNode = null;
  39162. this.callbackExpirationTime = NoWork;
  39163. this.firstPendingTime = NoWork;
  39164. this.lastPendingTime = NoWork;
  39165. this.pingTime = NoWork;
  39166. if (enableSchedulerTracing) {
  39167. this.interactionThreadID = tracing.unstable_getThreadID();
  39168. this.memoizedInteractions = new Set();
  39169. this.pendingInteractionMap = new Map();
  39170. }
  39171. }
  39172. function createFiberRoot(containerInfo, tag, hydrate) {
  39173. var root = new FiberRootNode(containerInfo, tag, hydrate);
  39174. // Cyclic construction. This cheats the type system right now because
  39175. // stateNode is any.
  39176. var uninitializedFiber = createHostRootFiber(tag);
  39177. root.current = uninitializedFiber;
  39178. uninitializedFiber.stateNode = root;
  39179. return root;
  39180. }
  39181. // This lets us hook into Fiber to debug what it's doing.
  39182. // See https://github.com/facebook/react/pull/8033.
  39183. // This is not part of the public API, not even for React DevTools.
  39184. // You may only inject a debugTool if you work on React Fiber itself.
  39185. var ReactFiberInstrumentation = {
  39186. debugTool: null
  39187. };
  39188. var ReactFiberInstrumentation_1 = ReactFiberInstrumentation;
  39189. // 0 is PROD, 1 is DEV.
  39190. // Might add PROFILE later.
  39191. var didWarnAboutNestedUpdates = void 0;
  39192. var didWarnAboutFindNodeInStrictMode = void 0;
  39193. {
  39194. didWarnAboutNestedUpdates = false;
  39195. didWarnAboutFindNodeInStrictMode = {};
  39196. }
  39197. function getContextForSubtree(parentComponent) {
  39198. if (!parentComponent) {
  39199. return emptyContextObject;
  39200. }
  39201. var fiber = get(parentComponent);
  39202. var parentContext = findCurrentUnmaskedContext(fiber);
  39203. if (fiber.tag === ClassComponent) {
  39204. var Component = fiber.type;
  39205. if (isContextProvider(Component)) {
  39206. return processChildContext(fiber, Component, parentContext);
  39207. }
  39208. }
  39209. return parentContext;
  39210. }
  39211. function scheduleRootUpdate(current$$1, element, expirationTime, suspenseConfig, callback) {
  39212. {
  39213. if (phase === 'render' && current !== null && !didWarnAboutNestedUpdates) {
  39214. didWarnAboutNestedUpdates = true;
  39215. warningWithoutStack$1(false, 'Render methods should be a pure function of props and state; ' + 'triggering nested component updates from render is not allowed. ' + 'If necessary, trigger nested updates in componentDidUpdate.\n\n' + 'Check the render method of %s.', getComponentName(current.type) || 'Unknown');
  39216. }
  39217. }
  39218. var update = createUpdate(expirationTime, suspenseConfig);
  39219. // Caution: React DevTools currently depends on this property
  39220. // being called "element".
  39221. update.payload = { element: element };
  39222. callback = callback === undefined ? null : callback;
  39223. if (callback !== null) {
  39224. !(typeof callback === 'function') ? warningWithoutStack$1(false, 'render(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callback) : void 0;
  39225. update.callback = callback;
  39226. }
  39227. if (revertPassiveEffectsChange) {
  39228. flushPassiveEffects();
  39229. }
  39230. enqueueUpdate(current$$1, update);
  39231. scheduleWork(current$$1, expirationTime);
  39232. return expirationTime;
  39233. }
  39234. function updateContainerAtExpirationTime(element, container, parentComponent, expirationTime, suspenseConfig, callback) {
  39235. // TODO: If this is a nested container, this won't be the root.
  39236. var current$$1 = container.current;
  39237. {
  39238. if (ReactFiberInstrumentation_1.debugTool) {
  39239. if (current$$1.alternate === null) {
  39240. ReactFiberInstrumentation_1.debugTool.onMountContainer(container);
  39241. } else if (element === null) {
  39242. ReactFiberInstrumentation_1.debugTool.onUnmountContainer(container);
  39243. } else {
  39244. ReactFiberInstrumentation_1.debugTool.onUpdateContainer(container);
  39245. }
  39246. }
  39247. }
  39248. var context = getContextForSubtree(parentComponent);
  39249. if (container.context === null) {
  39250. container.context = context;
  39251. } else {
  39252. container.pendingContext = context;
  39253. }
  39254. return scheduleRootUpdate(current$$1, element, expirationTime, suspenseConfig, callback);
  39255. }
  39256. function findHostInstance(component) {
  39257. var fiber = get(component);
  39258. if (fiber === undefined) {
  39259. if (typeof component.render === 'function') {
  39260. (function () {
  39261. {
  39262. {
  39263. throw ReactError(Error('Unable to find node on an unmounted component.'));
  39264. }
  39265. }
  39266. })();
  39267. } else {
  39268. (function () {
  39269. {
  39270. {
  39271. throw ReactError(Error('Argument appears to not be a ReactComponent. Keys: ' + Object.keys(component)));
  39272. }
  39273. }
  39274. })();
  39275. }
  39276. }
  39277. var hostFiber = findCurrentHostFiber(fiber);
  39278. if (hostFiber === null) {
  39279. return null;
  39280. }
  39281. return hostFiber.stateNode;
  39282. }
  39283. function findHostInstanceWithWarning(component, methodName) {
  39284. {
  39285. var fiber = get(component);
  39286. if (fiber === undefined) {
  39287. if (typeof component.render === 'function') {
  39288. (function () {
  39289. {
  39290. {
  39291. throw ReactError(Error('Unable to find node on an unmounted component.'));
  39292. }
  39293. }
  39294. })();
  39295. } else {
  39296. (function () {
  39297. {
  39298. {
  39299. throw ReactError(Error('Argument appears to not be a ReactComponent. Keys: ' + Object.keys(component)));
  39300. }
  39301. }
  39302. })();
  39303. }
  39304. }
  39305. var hostFiber = findCurrentHostFiber(fiber);
  39306. if (hostFiber === null) {
  39307. return null;
  39308. }
  39309. if (hostFiber.mode & StrictMode) {
  39310. var componentName = getComponentName(fiber.type) || 'Component';
  39311. if (!didWarnAboutFindNodeInStrictMode[componentName]) {
  39312. didWarnAboutFindNodeInStrictMode[componentName] = true;
  39313. if (fiber.mode & StrictMode) {
  39314. warningWithoutStack$1(false, '%s is deprecated in StrictMode. ' + '%s was passed an instance of %s which is inside StrictMode. ' + 'Instead, add a ref directly to the element you want to reference.' + '\n%s' + '\n\nLearn more about using refs safely here:' + '\nhttps://fb.me/react-strict-mode-find-node', methodName, methodName, componentName, getStackByFiberInDevAndProd(hostFiber));
  39315. } else {
  39316. warningWithoutStack$1(false, '%s is deprecated in StrictMode. ' + '%s was passed an instance of %s which renders StrictMode children. ' + 'Instead, add a ref directly to the element you want to reference.' + '\n%s' + '\n\nLearn more about using refs safely here:' + '\nhttps://fb.me/react-strict-mode-find-node', methodName, methodName, componentName, getStackByFiberInDevAndProd(hostFiber));
  39317. }
  39318. }
  39319. }
  39320. return hostFiber.stateNode;
  39321. }
  39322. return findHostInstance(component);
  39323. }
  39324. function createContainer(containerInfo, tag, hydrate) {
  39325. return createFiberRoot(containerInfo, tag, hydrate);
  39326. }
  39327. function updateContainer(element, container, parentComponent, callback) {
  39328. var current$$1 = container.current;
  39329. var currentTime = requestCurrentTime();
  39330. {
  39331. // $FlowExpectedError - jest isn't a global, and isn't recognized outside of tests
  39332. if ('undefined' !== typeof jest) {
  39333. warnIfUnmockedScheduler(current$$1);
  39334. warnIfNotScopedWithMatchingAct(current$$1);
  39335. }
  39336. }
  39337. var suspenseConfig = requestCurrentSuspenseConfig();
  39338. var expirationTime = computeExpirationForFiber(currentTime, current$$1, suspenseConfig);
  39339. return updateContainerAtExpirationTime(element, container, parentComponent, expirationTime, suspenseConfig, callback);
  39340. }
  39341. function getPublicRootInstance(container) {
  39342. var containerFiber = container.current;
  39343. if (!containerFiber.child) {
  39344. return null;
  39345. }
  39346. switch (containerFiber.child.tag) {
  39347. case HostComponent:
  39348. return getPublicInstance(containerFiber.child.stateNode);
  39349. default:
  39350. return containerFiber.child.stateNode;
  39351. }
  39352. }
  39353. function findHostInstanceWithNoPortals(fiber) {
  39354. var hostFiber = findCurrentHostFiberWithNoPortals(fiber);
  39355. if (hostFiber === null) {
  39356. return null;
  39357. }
  39358. if (hostFiber.tag === FundamentalComponent) {
  39359. return hostFiber.stateNode.instance;
  39360. }
  39361. return hostFiber.stateNode;
  39362. }
  39363. var shouldSuspendImpl = function (fiber) {
  39364. return false;
  39365. };
  39366. function shouldSuspend(fiber) {
  39367. return shouldSuspendImpl(fiber);
  39368. }
  39369. var overrideHookState = null;
  39370. var overrideProps = null;
  39371. var scheduleUpdate = null;
  39372. var setSuspenseHandler = null;
  39373. {
  39374. var copyWithSetImpl = function (obj, path, idx, value) {
  39375. if (idx >= path.length) {
  39376. return value;
  39377. }
  39378. var key = path[idx];
  39379. var updated = Array.isArray(obj) ? obj.slice() : _assign({}, obj);
  39380. // $FlowFixMe number or string is fine here
  39381. updated[key] = copyWithSetImpl(obj[key], path, idx + 1, value);
  39382. return updated;
  39383. };
  39384. var copyWithSet = function (obj, path, value) {
  39385. return copyWithSetImpl(obj, path, 0, value);
  39386. };
  39387. // Support DevTools editable values for useState and useReducer.
  39388. overrideHookState = function (fiber, id, path, value) {
  39389. // For now, the "id" of stateful hooks is just the stateful hook index.
  39390. // This may change in the future with e.g. nested hooks.
  39391. var currentHook = fiber.memoizedState;
  39392. while (currentHook !== null && id > 0) {
  39393. currentHook = currentHook.next;
  39394. id--;
  39395. }
  39396. if (currentHook !== null) {
  39397. if (revertPassiveEffectsChange) {
  39398. flushPassiveEffects();
  39399. }
  39400. var newState = copyWithSet(currentHook.memoizedState, path, value);
  39401. currentHook.memoizedState = newState;
  39402. currentHook.baseState = newState;
  39403. // We aren't actually adding an update to the queue,
  39404. // because there is no update we can add for useReducer hooks that won't trigger an error.
  39405. // (There's no appropriate action type for DevTools overrides.)
  39406. // As a result though, React will see the scheduled update as a noop and bailout.
  39407. // Shallow cloning props works as a workaround for now to bypass the bailout check.
  39408. fiber.memoizedProps = _assign({}, fiber.memoizedProps);
  39409. scheduleWork(fiber, Sync);
  39410. }
  39411. };
  39412. // Support DevTools props for function components, forwardRef, memo, host components, etc.
  39413. overrideProps = function (fiber, path, value) {
  39414. if (revertPassiveEffectsChange) {
  39415. flushPassiveEffects();
  39416. }
  39417. fiber.pendingProps = copyWithSet(fiber.memoizedProps, path, value);
  39418. if (fiber.alternate) {
  39419. fiber.alternate.pendingProps = fiber.pendingProps;
  39420. }
  39421. scheduleWork(fiber, Sync);
  39422. };
  39423. scheduleUpdate = function (fiber) {
  39424. if (revertPassiveEffectsChange) {
  39425. flushPassiveEffects();
  39426. }
  39427. scheduleWork(fiber, Sync);
  39428. };
  39429. setSuspenseHandler = function (newShouldSuspendImpl) {
  39430. shouldSuspendImpl = newShouldSuspendImpl;
  39431. };
  39432. }
  39433. function injectIntoDevTools(devToolsConfig) {
  39434. var findFiberByHostInstance = devToolsConfig.findFiberByHostInstance;
  39435. var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
  39436. return injectInternals(_assign({}, devToolsConfig, {
  39437. overrideHookState: overrideHookState,
  39438. overrideProps: overrideProps,
  39439. setSuspenseHandler: setSuspenseHandler,
  39440. scheduleUpdate: scheduleUpdate,
  39441. currentDispatcherRef: ReactCurrentDispatcher,
  39442. findHostInstanceByFiber: function (fiber) {
  39443. var hostFiber = findCurrentHostFiber(fiber);
  39444. if (hostFiber === null) {
  39445. return null;
  39446. }
  39447. return hostFiber.stateNode;
  39448. },
  39449. findFiberByHostInstance: function (instance) {
  39450. if (!findFiberByHostInstance) {
  39451. // Might not be implemented by the renderer.
  39452. return null;
  39453. }
  39454. return findFiberByHostInstance(instance);
  39455. },
  39456. // React Refresh
  39457. findHostInstancesForRefresh: findHostInstancesForRefresh,
  39458. scheduleRefresh: scheduleRefresh,
  39459. scheduleRoot: scheduleRoot,
  39460. setRefreshHandler: setRefreshHandler,
  39461. // Enables DevTools to append owner stacks to error messages in DEV mode.
  39462. getCurrentFiber: function () {
  39463. return current;
  39464. }
  39465. }));
  39466. }
  39467. // This file intentionally does *not* have the Flow annotation.
  39468. // Don't add it. See `./inline-typed.js` for an explanation.
  39469. function createPortal$1(children, containerInfo,
  39470. // TODO: figure out the API for cross-renderer implementation.
  39471. implementation) {
  39472. var key = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
  39473. return {
  39474. // This tag allow us to uniquely identify this as a React Portal
  39475. $$typeof: REACT_PORTAL_TYPE,
  39476. key: key == null ? null : '' + key,
  39477. children: children,
  39478. containerInfo: containerInfo,
  39479. implementation: implementation
  39480. };
  39481. }
  39482. // TODO: this is special because it gets imported during build.
  39483. var ReactVersion = '16.9.0';
  39484. // TODO: This type is shared between the reconciler and ReactDOM, but will
  39485. // eventually be lifted out to the renderer.
  39486. var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
  39487. var topLevelUpdateWarnings = void 0;
  39488. var warnOnInvalidCallback = void 0;
  39489. var didWarnAboutUnstableCreatePortal = false;
  39490. {
  39491. if (typeof Map !== 'function' ||
  39492. // $FlowIssue Flow incorrectly thinks Map has no prototype
  39493. Map.prototype == null || typeof Map.prototype.forEach !== 'function' || typeof Set !== 'function' ||
  39494. // $FlowIssue Flow incorrectly thinks Set has no prototype
  39495. Set.prototype == null || typeof Set.prototype.clear !== 'function' || typeof Set.prototype.forEach !== 'function') {
  39496. warningWithoutStack$1(false, 'React depends on Map and Set built-in types. Make sure that you load a ' + 'polyfill in older browsers. https://fb.me/react-polyfills');
  39497. }
  39498. topLevelUpdateWarnings = function (container) {
  39499. if (container._reactRootContainer && container.nodeType !== COMMENT_NODE) {
  39500. var hostInstance = findHostInstanceWithNoPortals(container._reactRootContainer._internalRoot.current);
  39501. if (hostInstance) {
  39502. !(hostInstance.parentNode === container) ? warningWithoutStack$1(false, 'render(...): It looks like the React-rendered content of this ' + 'container was removed without using React. This is not ' + 'supported and will cause errors. Instead, call ' + 'ReactDOM.unmountComponentAtNode to empty a container.') : void 0;
  39503. }
  39504. }
  39505. var isRootRenderedBySomeReact = !!container._reactRootContainer;
  39506. var rootEl = getReactRootElementInContainer(container);
  39507. var hasNonRootReactChild = !!(rootEl && getInstanceFromNode$1(rootEl));
  39508. !(!hasNonRootReactChild || isRootRenderedBySomeReact) ? warningWithoutStack$1(false, 'render(...): Replacing React-rendered children with a new root ' + 'component. If you intended to update the children of this node, ' + 'you should instead have the existing children update their state ' + 'and render the new components instead of calling ReactDOM.render.') : void 0;
  39509. !(container.nodeType !== ELEMENT_NODE || !container.tagName || container.tagName.toUpperCase() !== 'BODY') ? warningWithoutStack$1(false, 'render(): Rendering components directly into document.body is ' + 'discouraged, since its children are often manipulated by third-party ' + 'scripts and browser extensions. This may lead to subtle ' + 'reconciliation issues. Try rendering into a container element created ' + 'for your app.') : void 0;
  39510. };
  39511. warnOnInvalidCallback = function (callback, callerName) {
  39512. !(callback === null || typeof callback === 'function') ? warningWithoutStack$1(false, '%s(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callerName, callback) : void 0;
  39513. };
  39514. }
  39515. setRestoreImplementation(restoreControlledState$1);
  39516. function ReactBatch(root) {
  39517. var expirationTime = computeUniqueAsyncExpiration();
  39518. this._expirationTime = expirationTime;
  39519. this._root = root;
  39520. this._next = null;
  39521. this._callbacks = null;
  39522. this._didComplete = false;
  39523. this._hasChildren = false;
  39524. this._children = null;
  39525. this._defer = true;
  39526. }
  39527. ReactBatch.prototype.render = function (children) {
  39528. var _this = this;
  39529. (function () {
  39530. if (!_this._defer) {
  39531. {
  39532. throw ReactError(Error('batch.render: Cannot render a batch that already committed.'));
  39533. }
  39534. }
  39535. })();
  39536. this._hasChildren = true;
  39537. this._children = children;
  39538. var internalRoot = this._root._internalRoot;
  39539. var expirationTime = this._expirationTime;
  39540. var work = new ReactWork();
  39541. updateContainerAtExpirationTime(children, internalRoot, null, expirationTime, null, work._onCommit);
  39542. return work;
  39543. };
  39544. ReactBatch.prototype.then = function (onComplete) {
  39545. if (this._didComplete) {
  39546. onComplete();
  39547. return;
  39548. }
  39549. var callbacks = this._callbacks;
  39550. if (callbacks === null) {
  39551. callbacks = this._callbacks = [];
  39552. }
  39553. callbacks.push(onComplete);
  39554. };
  39555. ReactBatch.prototype.commit = function () {
  39556. var _this2 = this;
  39557. var internalRoot = this._root._internalRoot;
  39558. var firstBatch = internalRoot.firstBatch;
  39559. (function () {
  39560. if (!(_this2._defer && firstBatch !== null)) {
  39561. {
  39562. throw ReactError(Error('batch.commit: Cannot commit a batch multiple times.'));
  39563. }
  39564. }
  39565. })();
  39566. if (!this._hasChildren) {
  39567. // This batch is empty. Return.
  39568. this._next = null;
  39569. this._defer = false;
  39570. return;
  39571. }
  39572. var expirationTime = this._expirationTime;
  39573. // Ensure this is the first batch in the list.
  39574. if (firstBatch !== this) {
  39575. // This batch is not the earliest batch. We need to move it to the front.
  39576. // Update its expiration time to be the expiration time of the earliest
  39577. // batch, so that we can flush it without flushing the other batches.
  39578. if (this._hasChildren) {
  39579. expirationTime = this._expirationTime = firstBatch._expirationTime;
  39580. // Rendering this batch again ensures its children will be the final state
  39581. // when we flush (updates are processed in insertion order: last
  39582. // update wins).
  39583. // TODO: This forces a restart. Should we print a warning?
  39584. this.render(this._children);
  39585. }
  39586. // Remove the batch from the list.
  39587. var previous = null;
  39588. var batch = firstBatch;
  39589. while (batch !== this) {
  39590. previous = batch;
  39591. batch = batch._next;
  39592. }
  39593. (function () {
  39594. if (!(previous !== null)) {
  39595. {
  39596. throw ReactError(Error('batch.commit: Cannot commit a batch multiple times.'));
  39597. }
  39598. }
  39599. })();
  39600. previous._next = batch._next;
  39601. // Add it to the front.
  39602. this._next = firstBatch;
  39603. firstBatch = internalRoot.firstBatch = this;
  39604. }
  39605. // Synchronously flush all the work up to this batch's expiration time.
  39606. this._defer = false;
  39607. flushRoot(internalRoot, expirationTime);
  39608. // Pop the batch from the list.
  39609. var next = this._next;
  39610. this._next = null;
  39611. firstBatch = internalRoot.firstBatch = next;
  39612. // Append the next earliest batch's children to the update queue.
  39613. if (firstBatch !== null && firstBatch._hasChildren) {
  39614. firstBatch.render(firstBatch._children);
  39615. }
  39616. };
  39617. ReactBatch.prototype._onComplete = function () {
  39618. if (this._didComplete) {
  39619. return;
  39620. }
  39621. this._didComplete = true;
  39622. var callbacks = this._callbacks;
  39623. if (callbacks === null) {
  39624. return;
  39625. }
  39626. // TODO: Error handling.
  39627. for (var i = 0; i < callbacks.length; i++) {
  39628. var _callback = callbacks[i];
  39629. _callback();
  39630. }
  39631. };
  39632. function ReactWork() {
  39633. this._callbacks = null;
  39634. this._didCommit = false;
  39635. // TODO: Avoid need to bind by replacing callbacks in the update queue with
  39636. // list of Work objects.
  39637. this._onCommit = this._onCommit.bind(this);
  39638. }
  39639. ReactWork.prototype.then = function (onCommit) {
  39640. if (this._didCommit) {
  39641. onCommit();
  39642. return;
  39643. }
  39644. var callbacks = this._callbacks;
  39645. if (callbacks === null) {
  39646. callbacks = this._callbacks = [];
  39647. }
  39648. callbacks.push(onCommit);
  39649. };
  39650. ReactWork.prototype._onCommit = function () {
  39651. if (this._didCommit) {
  39652. return;
  39653. }
  39654. this._didCommit = true;
  39655. var callbacks = this._callbacks;
  39656. if (callbacks === null) {
  39657. return;
  39658. }
  39659. // TODO: Error handling.
  39660. for (var i = 0; i < callbacks.length; i++) {
  39661. var _callback2 = callbacks[i];
  39662. (function () {
  39663. if (!(typeof _callback2 === 'function')) {
  39664. {
  39665. throw ReactError(Error('Invalid argument passed as callback. Expected a function. Instead received: ' + _callback2));
  39666. }
  39667. }
  39668. })();
  39669. _callback2();
  39670. }
  39671. };
  39672. function ReactSyncRoot(container, tag, hydrate) {
  39673. // Tag is either LegacyRoot or Concurrent Root
  39674. var root = createContainer(container, tag, hydrate);
  39675. this._internalRoot = root;
  39676. }
  39677. function ReactRoot(container, hydrate) {
  39678. var root = createContainer(container, ConcurrentRoot, hydrate);
  39679. this._internalRoot = root;
  39680. }
  39681. ReactRoot.prototype.render = ReactSyncRoot.prototype.render = function (children, callback) {
  39682. var root = this._internalRoot;
  39683. var work = new ReactWork();
  39684. callback = callback === undefined ? null : callback;
  39685. {
  39686. warnOnInvalidCallback(callback, 'render');
  39687. }
  39688. if (callback !== null) {
  39689. work.then(callback);
  39690. }
  39691. updateContainer(children, root, null, work._onCommit);
  39692. return work;
  39693. };
  39694. ReactRoot.prototype.unmount = ReactSyncRoot.prototype.unmount = function (callback) {
  39695. var root = this._internalRoot;
  39696. var work = new ReactWork();
  39697. callback = callback === undefined ? null : callback;
  39698. {
  39699. warnOnInvalidCallback(callback, 'render');
  39700. }
  39701. if (callback !== null) {
  39702. work.then(callback);
  39703. }
  39704. updateContainer(null, root, null, work._onCommit);
  39705. return work;
  39706. };
  39707. // Sync roots cannot create batches. Only concurrent ones.
  39708. ReactRoot.prototype.createBatch = function () {
  39709. var batch = new ReactBatch(this);
  39710. var expirationTime = batch._expirationTime;
  39711. var internalRoot = this._internalRoot;
  39712. var firstBatch = internalRoot.firstBatch;
  39713. if (firstBatch === null) {
  39714. internalRoot.firstBatch = batch;
  39715. batch._next = null;
  39716. } else {
  39717. // Insert sorted by expiration time then insertion order
  39718. var insertAfter = null;
  39719. var insertBefore = firstBatch;
  39720. while (insertBefore !== null && insertBefore._expirationTime >= expirationTime) {
  39721. insertAfter = insertBefore;
  39722. insertBefore = insertBefore._next;
  39723. }
  39724. batch._next = insertBefore;
  39725. if (insertAfter !== null) {
  39726. insertAfter._next = batch;
  39727. }
  39728. }
  39729. return batch;
  39730. };
  39731. /**
  39732. * True if the supplied DOM node is a valid node element.
  39733. *
  39734. * @param {?DOMElement} node The candidate DOM node.
  39735. * @return {boolean} True if the DOM is a valid DOM node.
  39736. * @internal
  39737. */
  39738. function isValidContainer(node) {
  39739. return !!(node && (node.nodeType === ELEMENT_NODE || node.nodeType === DOCUMENT_NODE || node.nodeType === DOCUMENT_FRAGMENT_NODE || node.nodeType === COMMENT_NODE && node.nodeValue === ' react-mount-point-unstable '));
  39740. }
  39741. function getReactRootElementInContainer(container) {
  39742. if (!container) {
  39743. return null;
  39744. }
  39745. if (container.nodeType === DOCUMENT_NODE) {
  39746. return container.documentElement;
  39747. } else {
  39748. return container.firstChild;
  39749. }
  39750. }
  39751. function shouldHydrateDueToLegacyHeuristic(container) {
  39752. var rootElement = getReactRootElementInContainer(container);
  39753. return !!(rootElement && rootElement.nodeType === ELEMENT_NODE && rootElement.hasAttribute(ROOT_ATTRIBUTE_NAME));
  39754. }
  39755. setBatchingImplementation(batchedUpdates$1, discreteUpdates$1, flushDiscreteUpdates, batchedEventUpdates$1);
  39756. var warnedAboutHydrateAPI = false;
  39757. function legacyCreateRootFromDOMContainer(container, forceHydrate) {
  39758. var shouldHydrate = forceHydrate || shouldHydrateDueToLegacyHeuristic(container);
  39759. // First clear any existing content.
  39760. if (!shouldHydrate) {
  39761. var warned = false;
  39762. var rootSibling = void 0;
  39763. while (rootSibling = container.lastChild) {
  39764. {
  39765. if (!warned && rootSibling.nodeType === ELEMENT_NODE && rootSibling.hasAttribute(ROOT_ATTRIBUTE_NAME)) {
  39766. warned = true;
  39767. warningWithoutStack$1(false, 'render(): Target node has markup rendered by React, but there ' + 'are unrelated nodes as well. This is most commonly caused by ' + 'white-space inserted around server-rendered markup.');
  39768. }
  39769. }
  39770. container.removeChild(rootSibling);
  39771. }
  39772. }
  39773. {
  39774. if (shouldHydrate && !forceHydrate && !warnedAboutHydrateAPI) {
  39775. warnedAboutHydrateAPI = true;
  39776. lowPriorityWarning$1(false, 'render(): Calling ReactDOM.render() to hydrate server-rendered markup ' + 'will stop working in React v17. Replace the ReactDOM.render() call ' + 'with ReactDOM.hydrate() if you want React to attach to the server HTML.');
  39777. }
  39778. }
  39779. // Legacy roots are not batched.
  39780. return new ReactSyncRoot(container, LegacyRoot, shouldHydrate);
  39781. }
  39782. function legacyRenderSubtreeIntoContainer(parentComponent, children, container, forceHydrate, callback) {
  39783. {
  39784. topLevelUpdateWarnings(container);
  39785. warnOnInvalidCallback(callback === undefined ? null : callback, 'render');
  39786. }
  39787. // TODO: Without `any` type, Flow says "Property cannot be accessed on any
  39788. // member of intersection type." Whyyyyyy.
  39789. var root = container._reactRootContainer;
  39790. var fiberRoot = void 0;
  39791. if (!root) {
  39792. // Initial mount
  39793. root = container._reactRootContainer = legacyCreateRootFromDOMContainer(container, forceHydrate);
  39794. fiberRoot = root._internalRoot;
  39795. if (typeof callback === 'function') {
  39796. var originalCallback = callback;
  39797. callback = function () {
  39798. var instance = getPublicRootInstance(fiberRoot);
  39799. originalCallback.call(instance);
  39800. };
  39801. }
  39802. // Initial mount should not be batched.
  39803. unbatchedUpdates(function () {
  39804. updateContainer(children, fiberRoot, parentComponent, callback);
  39805. });
  39806. } else {
  39807. fiberRoot = root._internalRoot;
  39808. if (typeof callback === 'function') {
  39809. var _originalCallback = callback;
  39810. callback = function () {
  39811. var instance = getPublicRootInstance(fiberRoot);
  39812. _originalCallback.call(instance);
  39813. };
  39814. }
  39815. // Update
  39816. updateContainer(children, fiberRoot, parentComponent, callback);
  39817. }
  39818. return getPublicRootInstance(fiberRoot);
  39819. }
  39820. function createPortal$$1(children, container) {
  39821. var key = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
  39822. (function () {
  39823. if (!isValidContainer(container)) {
  39824. {
  39825. throw ReactError(Error('Target container is not a DOM element.'));
  39826. }
  39827. }
  39828. })();
  39829. // TODO: pass ReactDOM portal implementation as third argument
  39830. return createPortal$1(children, container, null, key);
  39831. }
  39832. var ReactDOM = {
  39833. createPortal: createPortal$$1,
  39834. findDOMNode: function (componentOrElement) {
  39835. {
  39836. var owner = ReactCurrentOwner.current;
  39837. if (owner !== null && owner.stateNode !== null) {
  39838. var warnedAboutRefsInRender = owner.stateNode._warnedAboutRefsInRender;
  39839. !warnedAboutRefsInRender ? warningWithoutStack$1(false, '%s is accessing findDOMNode inside its render(). ' + 'render() should be a pure function of props and state. It should ' + 'never access something that requires stale data from the previous ' + 'render, such as refs. Move this logic to componentDidMount and ' + 'componentDidUpdate instead.', getComponentName(owner.type) || 'A component') : void 0;
  39840. owner.stateNode._warnedAboutRefsInRender = true;
  39841. }
  39842. }
  39843. if (componentOrElement == null) {
  39844. return null;
  39845. }
  39846. if (componentOrElement.nodeType === ELEMENT_NODE) {
  39847. return componentOrElement;
  39848. }
  39849. {
  39850. return findHostInstanceWithWarning(componentOrElement, 'findDOMNode');
  39851. }
  39852. return findHostInstance(componentOrElement);
  39853. },
  39854. hydrate: function (element, container, callback) {
  39855. (function () {
  39856. if (!isValidContainer(container)) {
  39857. {
  39858. throw ReactError(Error('Target container is not a DOM element.'));
  39859. }
  39860. }
  39861. })();
  39862. {
  39863. !!container._reactHasBeenPassedToCreateRootDEV ? warningWithoutStack$1(false, 'You are calling ReactDOM.hydrate() on a container that was previously ' + 'passed to ReactDOM.%s(). This is not supported. ' + 'Did you mean to call createRoot(container, {hydrate: true}).render(element)?', enableStableConcurrentModeAPIs ? 'createRoot' : 'unstable_createRoot') : void 0;
  39864. }
  39865. // TODO: throw or warn if we couldn't hydrate?
  39866. return legacyRenderSubtreeIntoContainer(null, element, container, true, callback);
  39867. },
  39868. render: function (element, container, callback) {
  39869. (function () {
  39870. if (!isValidContainer(container)) {
  39871. {
  39872. throw ReactError(Error('Target container is not a DOM element.'));
  39873. }
  39874. }
  39875. })();
  39876. {
  39877. !!container._reactHasBeenPassedToCreateRootDEV ? warningWithoutStack$1(false, 'You are calling ReactDOM.render() on a container that was previously ' + 'passed to ReactDOM.%s(). This is not supported. ' + 'Did you mean to call root.render(element)?', enableStableConcurrentModeAPIs ? 'createRoot' : 'unstable_createRoot') : void 0;
  39878. }
  39879. return legacyRenderSubtreeIntoContainer(null, element, container, false, callback);
  39880. },
  39881. unstable_renderSubtreeIntoContainer: function (parentComponent, element, containerNode, callback) {
  39882. (function () {
  39883. if (!isValidContainer(containerNode)) {
  39884. {
  39885. throw ReactError(Error('Target container is not a DOM element.'));
  39886. }
  39887. }
  39888. })();
  39889. (function () {
  39890. if (!(parentComponent != null && has(parentComponent))) {
  39891. {
  39892. throw ReactError(Error('parentComponent must be a valid React Component'));
  39893. }
  39894. }
  39895. })();
  39896. return legacyRenderSubtreeIntoContainer(parentComponent, element, containerNode, false, callback);
  39897. },
  39898. unmountComponentAtNode: function (container) {
  39899. (function () {
  39900. if (!isValidContainer(container)) {
  39901. {
  39902. throw ReactError(Error('unmountComponentAtNode(...): Target container is not a DOM element.'));
  39903. }
  39904. }
  39905. })();
  39906. {
  39907. !!container._reactHasBeenPassedToCreateRootDEV ? warningWithoutStack$1(false, 'You are calling ReactDOM.unmountComponentAtNode() on a container that was previously ' + 'passed to ReactDOM.%s(). This is not supported. Did you mean to call root.unmount()?', enableStableConcurrentModeAPIs ? 'createRoot' : 'unstable_createRoot') : void 0;
  39908. }
  39909. if (container._reactRootContainer) {
  39910. {
  39911. var rootEl = getReactRootElementInContainer(container);
  39912. var renderedByDifferentReact = rootEl && !getInstanceFromNode$1(rootEl);
  39913. !!renderedByDifferentReact ? warningWithoutStack$1(false, "unmountComponentAtNode(): The node you're attempting to unmount " + 'was rendered by another copy of React.') : void 0;
  39914. }
  39915. // Unmount should not be batched.
  39916. unbatchedUpdates(function () {
  39917. legacyRenderSubtreeIntoContainer(null, null, container, false, function () {
  39918. container._reactRootContainer = null;
  39919. });
  39920. });
  39921. // If you call unmountComponentAtNode twice in quick succession, you'll
  39922. // get `true` twice. That's probably fine?
  39923. return true;
  39924. } else {
  39925. {
  39926. var _rootEl = getReactRootElementInContainer(container);
  39927. var hasNonRootReactChild = !!(_rootEl && getInstanceFromNode$1(_rootEl));
  39928. // Check if the container itself is a React root node.
  39929. var isContainerReactRoot = container.nodeType === ELEMENT_NODE && isValidContainer(container.parentNode) && !!container.parentNode._reactRootContainer;
  39930. !!hasNonRootReactChild ? warningWithoutStack$1(false, "unmountComponentAtNode(): The node you're attempting to unmount " + 'was rendered by React and is not a top-level container. %s', isContainerReactRoot ? 'You may have accidentally passed in a React root node instead ' + 'of its container.' : 'Instead, have the parent component update its state and ' + 'rerender in order to remove this component.') : void 0;
  39931. }
  39932. return false;
  39933. }
  39934. },
  39935. // Temporary alias since we already shipped React 16 RC with it.
  39936. // TODO: remove in React 17.
  39937. unstable_createPortal: function () {
  39938. if (!didWarnAboutUnstableCreatePortal) {
  39939. didWarnAboutUnstableCreatePortal = true;
  39940. lowPriorityWarning$1(false, 'The ReactDOM.unstable_createPortal() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactDOM.createPortal() instead. It has the exact same API, ' + 'but without the "unstable_" prefix.');
  39941. }
  39942. return createPortal$$1.apply(undefined, arguments);
  39943. },
  39944. unstable_batchedUpdates: batchedUpdates$1,
  39945. // TODO remove this legacy method, unstable_discreteUpdates replaces it
  39946. unstable_interactiveUpdates: function (fn, a, b, c) {
  39947. flushDiscreteUpdates();
  39948. return discreteUpdates$1(fn, a, b, c);
  39949. },
  39950. unstable_discreteUpdates: discreteUpdates$1,
  39951. unstable_flushDiscreteUpdates: flushDiscreteUpdates,
  39952. flushSync: flushSync,
  39953. unstable_createRoot: createRoot,
  39954. unstable_createSyncRoot: createSyncRoot,
  39955. unstable_flushControlled: flushControlled,
  39956. __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: {
  39957. // Keep in sync with ReactDOMUnstableNativeDependencies.js
  39958. // ReactTestUtils.js, and ReactTestUtilsAct.js. This is an array for better minification.
  39959. Events: [getInstanceFromNode$1, getNodeFromInstance$1, getFiberCurrentPropsFromNode$1, injection.injectEventPluginsByName, eventNameDispatchConfigs, accumulateTwoPhaseDispatches, accumulateDirectDispatches, enqueueStateRestore, restoreStateIfNeeded, dispatchEvent, runEventsInBatch, flushPassiveEffects, IsThisRendererActing]
  39960. }
  39961. };
  39962. function createRoot(container, options) {
  39963. var functionName = enableStableConcurrentModeAPIs ? 'createRoot' : 'unstable_createRoot';
  39964. (function () {
  39965. if (!isValidContainer(container)) {
  39966. {
  39967. throw ReactError(Error(functionName + '(...): Target container is not a DOM element.'));
  39968. }
  39969. }
  39970. })();
  39971. warnIfReactDOMContainerInDEV(container);
  39972. var hydrate = options != null && options.hydrate === true;
  39973. return new ReactRoot(container, hydrate);
  39974. }
  39975. function createSyncRoot(container, options) {
  39976. var functionName = enableStableConcurrentModeAPIs ? 'createRoot' : 'unstable_createRoot';
  39977. (function () {
  39978. if (!isValidContainer(container)) {
  39979. {
  39980. throw ReactError(Error(functionName + '(...): Target container is not a DOM element.'));
  39981. }
  39982. }
  39983. })();
  39984. warnIfReactDOMContainerInDEV(container);
  39985. var hydrate = options != null && options.hydrate === true;
  39986. return new ReactSyncRoot(container, BatchedRoot, hydrate);
  39987. }
  39988. function warnIfReactDOMContainerInDEV(container) {
  39989. {
  39990. !!container._reactRootContainer ? warningWithoutStack$1(false, 'You are calling ReactDOM.%s() on a container that was previously ' + 'passed to ReactDOM.render(). This is not supported.', enableStableConcurrentModeAPIs ? 'createRoot' : 'unstable_createRoot') : void 0;
  39991. container._reactHasBeenPassedToCreateRootDEV = true;
  39992. }
  39993. }
  39994. if (enableStableConcurrentModeAPIs) {
  39995. ReactDOM.createRoot = createRoot;
  39996. ReactDOM.createSyncRoot = createSyncRoot;
  39997. }
  39998. var foundDevTools = injectIntoDevTools({
  39999. findFiberByHostInstance: getClosestInstanceFromNode,
  40000. bundleType: 1,
  40001. version: ReactVersion,
  40002. rendererPackageName: 'react-dom'
  40003. });
  40004. {
  40005. if (!foundDevTools && canUseDOM && window.top === window.self) {
  40006. // If we're in Chrome or Firefox, provide a download link if not installed.
  40007. if (navigator.userAgent.indexOf('Chrome') > -1 && navigator.userAgent.indexOf('Edge') === -1 || navigator.userAgent.indexOf('Firefox') > -1) {
  40008. var protocol = window.location.protocol;
  40009. // Don't warn in exotic cases like chrome-extension://.
  40010. if (/^(https?|file):$/.test(protocol)) {
  40011. console.info('%cDownload the React DevTools ' + 'for a better development experience: ' + 'https://fb.me/react-devtools' + (protocol === 'file:' ? '\nYou might need to use a local HTTP server (instead of file://): ' + 'https://fb.me/react-devtools-faq' : ''), 'font-weight:bold');
  40012. }
  40013. }
  40014. }
  40015. }
  40016. var ReactDOM$2 = Object.freeze({
  40017. default: ReactDOM
  40018. });
  40019. var ReactDOM$3 = ( ReactDOM$2 && ReactDOM ) || ReactDOM$2;
  40020. // TODO: decide on the top-level export form.
  40021. // This is hacky but makes it work with both Rollup and Jest.
  40022. var reactDom = ReactDOM$3.default || ReactDOM$3;
  40023. module.exports = reactDom;
  40024. })();
  40025. }
  40026. /***/ }),
  40027. /***/ "../../node_modules/react-dom/index.js":
  40028. /*!*****************************************************************!*\
  40029. !*** C:/Dev/Babylon/Babylon.js/node_modules/react-dom/index.js ***!
  40030. \*****************************************************************/
  40031. /*! no static exports found */
  40032. /***/ (function(module, exports, __webpack_require__) {
  40033. "use strict";
  40034. function checkDCE() {
  40035. /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
  40036. if (
  40037. typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' ||
  40038. typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function'
  40039. ) {
  40040. return;
  40041. }
  40042. if (true) {
  40043. // This branch is unreachable because this function is only called
  40044. // in production, but the condition is true only in development.
  40045. // Therefore if the branch is still here, dead code elimination wasn't
  40046. // properly applied.
  40047. // Don't change the message. React DevTools relies on it. Also make sure
  40048. // this message doesn't occur elsewhere in this function, or it will cause
  40049. // a false positive.
  40050. throw new Error('^_^');
  40051. }
  40052. try {
  40053. // Verify that the code above has been dead code eliminated (DCE'd).
  40054. __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);
  40055. } catch (err) {
  40056. // DevTools shouldn't crash React, no matter what.
  40057. // We should still report in case we break this code.
  40058. console.error(err);
  40059. }
  40060. }
  40061. if (false) {} else {
  40062. module.exports = __webpack_require__(/*! ./cjs/react-dom.development.js */ "../../node_modules/react-dom/cjs/react-dom.development.js");
  40063. }
  40064. /***/ }),
  40065. /***/ "../../node_modules/react/cjs/react.development.js":
  40066. /*!*****************************************************************************!*\
  40067. !*** C:/Dev/Babylon/Babylon.js/node_modules/react/cjs/react.development.js ***!
  40068. \*****************************************************************************/
  40069. /*! no static exports found */
  40070. /***/ (function(module, exports, __webpack_require__) {
  40071. "use strict";
  40072. /** @license React v16.9.0
  40073. * react.development.js
  40074. *
  40075. * Copyright (c) Facebook, Inc. and its affiliates.
  40076. *
  40077. * This source code is licensed under the MIT license found in the
  40078. * LICENSE file in the root directory of this source tree.
  40079. */
  40080. if (true) {
  40081. (function() {
  40082. 'use strict';
  40083. var _assign = __webpack_require__(/*! object-assign */ "../../node_modules/object-assign/index.js");
  40084. var checkPropTypes = __webpack_require__(/*! prop-types/checkPropTypes */ "../../node_modules/prop-types/checkPropTypes.js");
  40085. // TODO: this is special because it gets imported during build.
  40086. var ReactVersion = '16.9.0';
  40087. // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
  40088. // nor polyfill, then a plain number is used for performance.
  40089. var hasSymbol = typeof Symbol === 'function' && Symbol.for;
  40090. var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
  40091. var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
  40092. var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
  40093. var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
  40094. var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
  40095. var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
  40096. var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace;
  40097. // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
  40098. // (unstable) APIs that have been removed. Can we remove the symbols?
  40099. var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
  40100. var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
  40101. var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
  40102. var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
  40103. var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
  40104. var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
  40105. var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
  40106. var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
  40107. var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
  40108. var FAUX_ITERATOR_SYMBOL = '@@iterator';
  40109. function getIteratorFn(maybeIterable) {
  40110. if (maybeIterable === null || typeof maybeIterable !== 'object') {
  40111. return null;
  40112. }
  40113. var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
  40114. if (typeof maybeIterator === 'function') {
  40115. return maybeIterator;
  40116. }
  40117. return null;
  40118. }
  40119. // Do not require this module directly! Use normal `invariant` calls with
  40120. // template literal strings. The messages will be converted to ReactError during
  40121. // build, and in production they will be minified.
  40122. // Do not require this module directly! Use normal `invariant` calls with
  40123. // template literal strings. The messages will be converted to ReactError during
  40124. // build, and in production they will be minified.
  40125. function ReactError(error) {
  40126. error.name = 'Invariant Violation';
  40127. return error;
  40128. }
  40129. /**
  40130. * Use invariant() to assert state which your program assumes to be true.
  40131. *
  40132. * Provide sprintf-style format (only %s is supported) and arguments
  40133. * to provide information about what broke and what you were
  40134. * expecting.
  40135. *
  40136. * The invariant message will be stripped in production, but the invariant
  40137. * will remain to ensure logic does not differ in production.
  40138. */
  40139. /**
  40140. * Forked from fbjs/warning:
  40141. * https://github.com/facebook/fbjs/blob/e66ba20ad5be433eb54423f2b097d829324d9de6/packages/fbjs/src/__forks__/warning.js
  40142. *
  40143. * Only change is we use console.warn instead of console.error,
  40144. * and do nothing when 'console' is not supported.
  40145. * This really simplifies the code.
  40146. * ---
  40147. * Similar to invariant but only logs a warning if the condition is not met.
  40148. * This can be used to log issues in development environments in critical
  40149. * paths. Removing the logging code for production environments will keep the
  40150. * same logic and follow the same code paths.
  40151. */
  40152. var lowPriorityWarning = function () {};
  40153. {
  40154. var printWarning = function (format) {
  40155. for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
  40156. args[_key - 1] = arguments[_key];
  40157. }
  40158. var argIndex = 0;
  40159. var message = 'Warning: ' + format.replace(/%s/g, function () {
  40160. return args[argIndex++];
  40161. });
  40162. if (typeof console !== 'undefined') {
  40163. console.warn(message);
  40164. }
  40165. try {
  40166. // --- Welcome to debugging React ---
  40167. // This error was thrown as a convenience so that you can use this stack
  40168. // to find the callsite that caused this warning to fire.
  40169. throw new Error(message);
  40170. } catch (x) {}
  40171. };
  40172. lowPriorityWarning = function (condition, format) {
  40173. if (format === undefined) {
  40174. throw new Error('`lowPriorityWarning(condition, format, ...args)` requires a warning ' + 'message argument');
  40175. }
  40176. if (!condition) {
  40177. for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
  40178. args[_key2 - 2] = arguments[_key2];
  40179. }
  40180. printWarning.apply(undefined, [format].concat(args));
  40181. }
  40182. };
  40183. }
  40184. var lowPriorityWarning$1 = lowPriorityWarning;
  40185. /**
  40186. * Similar to invariant but only logs a warning if the condition is not met.
  40187. * This can be used to log issues in development environments in critical
  40188. * paths. Removing the logging code for production environments will keep the
  40189. * same logic and follow the same code paths.
  40190. */
  40191. var warningWithoutStack = function () {};
  40192. {
  40193. warningWithoutStack = function (condition, format) {
  40194. for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
  40195. args[_key - 2] = arguments[_key];
  40196. }
  40197. if (format === undefined) {
  40198. throw new Error('`warningWithoutStack(condition, format, ...args)` requires a warning ' + 'message argument');
  40199. }
  40200. if (args.length > 8) {
  40201. // Check before the condition to catch violations early.
  40202. throw new Error('warningWithoutStack() currently supports at most 8 arguments.');
  40203. }
  40204. if (condition) {
  40205. return;
  40206. }
  40207. if (typeof console !== 'undefined') {
  40208. var argsWithFormat = args.map(function (item) {
  40209. return '' + item;
  40210. });
  40211. argsWithFormat.unshift('Warning: ' + format);
  40212. // We intentionally don't use spread (or .apply) directly because it
  40213. // breaks IE9: https://github.com/facebook/react/issues/13610
  40214. Function.prototype.apply.call(console.error, console, argsWithFormat);
  40215. }
  40216. try {
  40217. // --- Welcome to debugging React ---
  40218. // This error was thrown as a convenience so that you can use this stack
  40219. // to find the callsite that caused this warning to fire.
  40220. var argIndex = 0;
  40221. var message = 'Warning: ' + format.replace(/%s/g, function () {
  40222. return args[argIndex++];
  40223. });
  40224. throw new Error(message);
  40225. } catch (x) {}
  40226. };
  40227. }
  40228. var warningWithoutStack$1 = warningWithoutStack;
  40229. var didWarnStateUpdateForUnmountedComponent = {};
  40230. function warnNoop(publicInstance, callerName) {
  40231. {
  40232. var _constructor = publicInstance.constructor;
  40233. var componentName = _constructor && (_constructor.displayName || _constructor.name) || 'ReactClass';
  40234. var warningKey = componentName + '.' + callerName;
  40235. if (didWarnStateUpdateForUnmountedComponent[warningKey]) {
  40236. return;
  40237. }
  40238. warningWithoutStack$1(false, "Can't call %s on a component that is not yet mounted. " + 'This is a no-op, but it might indicate a bug in your application. ' + 'Instead, assign to `this.state` directly or define a `state = {};` ' + 'class property with the desired state in the %s component.', callerName, componentName);
  40239. didWarnStateUpdateForUnmountedComponent[warningKey] = true;
  40240. }
  40241. }
  40242. /**
  40243. * This is the abstract API for an update queue.
  40244. */
  40245. var ReactNoopUpdateQueue = {
  40246. /**
  40247. * Checks whether or not this composite component is mounted.
  40248. * @param {ReactClass} publicInstance The instance we want to test.
  40249. * @return {boolean} True if mounted, false otherwise.
  40250. * @protected
  40251. * @final
  40252. */
  40253. isMounted: function (publicInstance) {
  40254. return false;
  40255. },
  40256. /**
  40257. * Forces an update. This should only be invoked when it is known with
  40258. * certainty that we are **not** in a DOM transaction.
  40259. *
  40260. * You may want to call this when you know that some deeper aspect of the
  40261. * component's state has changed but `setState` was not called.
  40262. *
  40263. * This will not invoke `shouldComponentUpdate`, but it will invoke
  40264. * `componentWillUpdate` and `componentDidUpdate`.
  40265. *
  40266. * @param {ReactClass} publicInstance The instance that should rerender.
  40267. * @param {?function} callback Called after component is updated.
  40268. * @param {?string} callerName name of the calling function in the public API.
  40269. * @internal
  40270. */
  40271. enqueueForceUpdate: function (publicInstance, callback, callerName) {
  40272. warnNoop(publicInstance, 'forceUpdate');
  40273. },
  40274. /**
  40275. * Replaces all of the state. Always use this or `setState` to mutate state.
  40276. * You should treat `this.state` as immutable.
  40277. *
  40278. * There is no guarantee that `this.state` will be immediately updated, so
  40279. * accessing `this.state` after calling this method may return the old value.
  40280. *
  40281. * @param {ReactClass} publicInstance The instance that should rerender.
  40282. * @param {object} completeState Next state.
  40283. * @param {?function} callback Called after component is updated.
  40284. * @param {?string} callerName name of the calling function in the public API.
  40285. * @internal
  40286. */
  40287. enqueueReplaceState: function (publicInstance, completeState, callback, callerName) {
  40288. warnNoop(publicInstance, 'replaceState');
  40289. },
  40290. /**
  40291. * Sets a subset of the state. This only exists because _pendingState is
  40292. * internal. This provides a merging strategy that is not available to deep
  40293. * properties which is confusing. TODO: Expose pendingState or don't use it
  40294. * during the merge.
  40295. *
  40296. * @param {ReactClass} publicInstance The instance that should rerender.
  40297. * @param {object} partialState Next partial state to be merged with state.
  40298. * @param {?function} callback Called after component is updated.
  40299. * @param {?string} Name of the calling function in the public API.
  40300. * @internal
  40301. */
  40302. enqueueSetState: function (publicInstance, partialState, callback, callerName) {
  40303. warnNoop(publicInstance, 'setState');
  40304. }
  40305. };
  40306. var emptyObject = {};
  40307. {
  40308. Object.freeze(emptyObject);
  40309. }
  40310. /**
  40311. * Base class helpers for the updating state of a component.
  40312. */
  40313. function Component(props, context, updater) {
  40314. this.props = props;
  40315. this.context = context;
  40316. // If a component has string refs, we will assign a different object later.
  40317. this.refs = emptyObject;
  40318. // We initialize the default updater but the real one gets injected by the
  40319. // renderer.
  40320. this.updater = updater || ReactNoopUpdateQueue;
  40321. }
  40322. Component.prototype.isReactComponent = {};
  40323. /**
  40324. * Sets a subset of the state. Always use this to mutate
  40325. * state. You should treat `this.state` as immutable.
  40326. *
  40327. * There is no guarantee that `this.state` will be immediately updated, so
  40328. * accessing `this.state` after calling this method may return the old value.
  40329. *
  40330. * There is no guarantee that calls to `setState` will run synchronously,
  40331. * as they may eventually be batched together. You can provide an optional
  40332. * callback that will be executed when the call to setState is actually
  40333. * completed.
  40334. *
  40335. * When a function is provided to setState, it will be called at some point in
  40336. * the future (not synchronously). It will be called with the up to date
  40337. * component arguments (state, props, context). These values can be different
  40338. * from this.* because your function may be called after receiveProps but before
  40339. * shouldComponentUpdate, and this new state, props, and context will not yet be
  40340. * assigned to this.
  40341. *
  40342. * @param {object|function} partialState Next partial state or function to
  40343. * produce next partial state to be merged with current state.
  40344. * @param {?function} callback Called after state is updated.
  40345. * @final
  40346. * @protected
  40347. */
  40348. Component.prototype.setState = function (partialState, callback) {
  40349. (function () {
  40350. if (!(typeof partialState === 'object' || typeof partialState === 'function' || partialState == null)) {
  40351. {
  40352. throw ReactError(Error('setState(...): takes an object of state variables to update or a function which returns an object of state variables.'));
  40353. }
  40354. }
  40355. })();
  40356. this.updater.enqueueSetState(this, partialState, callback, 'setState');
  40357. };
  40358. /**
  40359. * Forces an update. This should only be invoked when it is known with
  40360. * certainty that we are **not** in a DOM transaction.
  40361. *
  40362. * You may want to call this when you know that some deeper aspect of the
  40363. * component's state has changed but `setState` was not called.
  40364. *
  40365. * This will not invoke `shouldComponentUpdate`, but it will invoke
  40366. * `componentWillUpdate` and `componentDidUpdate`.
  40367. *
  40368. * @param {?function} callback Called after update is complete.
  40369. * @final
  40370. * @protected
  40371. */
  40372. Component.prototype.forceUpdate = function (callback) {
  40373. this.updater.enqueueForceUpdate(this, callback, 'forceUpdate');
  40374. };
  40375. /**
  40376. * Deprecated APIs. These APIs used to exist on classic React classes but since
  40377. * we would like to deprecate them, we're not going to move them over to this
  40378. * modern base class. Instead, we define a getter that warns if it's accessed.
  40379. */
  40380. {
  40381. var deprecatedAPIs = {
  40382. isMounted: ['isMounted', 'Instead, make sure to clean up subscriptions and pending requests in ' + 'componentWillUnmount to prevent memory leaks.'],
  40383. replaceState: ['replaceState', 'Refactor your code to use setState instead (see ' + 'https://github.com/facebook/react/issues/3236).']
  40384. };
  40385. var defineDeprecationWarning = function (methodName, info) {
  40386. Object.defineProperty(Component.prototype, methodName, {
  40387. get: function () {
  40388. lowPriorityWarning$1(false, '%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]);
  40389. return undefined;
  40390. }
  40391. });
  40392. };
  40393. for (var fnName in deprecatedAPIs) {
  40394. if (deprecatedAPIs.hasOwnProperty(fnName)) {
  40395. defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
  40396. }
  40397. }
  40398. }
  40399. function ComponentDummy() {}
  40400. ComponentDummy.prototype = Component.prototype;
  40401. /**
  40402. * Convenience component with default shallow equality check for sCU.
  40403. */
  40404. function PureComponent(props, context, updater) {
  40405. this.props = props;
  40406. this.context = context;
  40407. // If a component has string refs, we will assign a different object later.
  40408. this.refs = emptyObject;
  40409. this.updater = updater || ReactNoopUpdateQueue;
  40410. }
  40411. var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
  40412. pureComponentPrototype.constructor = PureComponent;
  40413. // Avoid an extra prototype jump for these methods.
  40414. _assign(pureComponentPrototype, Component.prototype);
  40415. pureComponentPrototype.isPureReactComponent = true;
  40416. // an immutable object with a single mutable value
  40417. function createRef() {
  40418. var refObject = {
  40419. current: null
  40420. };
  40421. {
  40422. Object.seal(refObject);
  40423. }
  40424. return refObject;
  40425. }
  40426. /**
  40427. * Keeps track of the current dispatcher.
  40428. */
  40429. var ReactCurrentDispatcher = {
  40430. /**
  40431. * @internal
  40432. * @type {ReactComponent}
  40433. */
  40434. current: null
  40435. };
  40436. /**
  40437. * Keeps track of the current batch's configuration such as how long an update
  40438. * should suspend for if it needs to.
  40439. */
  40440. var ReactCurrentBatchConfig = {
  40441. suspense: null
  40442. };
  40443. /**
  40444. * Keeps track of the current owner.
  40445. *
  40446. * The current owner is the component who should own any components that are
  40447. * currently being constructed.
  40448. */
  40449. var ReactCurrentOwner = {
  40450. /**
  40451. * @internal
  40452. * @type {ReactComponent}
  40453. */
  40454. current: null
  40455. };
  40456. var BEFORE_SLASH_RE = /^(.*)[\\\/]/;
  40457. var describeComponentFrame = function (name, source, ownerName) {
  40458. var sourceInfo = '';
  40459. if (source) {
  40460. var path = source.fileName;
  40461. var fileName = path.replace(BEFORE_SLASH_RE, '');
  40462. {
  40463. // In DEV, include code for a common special case:
  40464. // prefer "folder/index.js" instead of just "index.js".
  40465. if (/^index\./.test(fileName)) {
  40466. var match = path.match(BEFORE_SLASH_RE);
  40467. if (match) {
  40468. var pathBeforeSlash = match[1];
  40469. if (pathBeforeSlash) {
  40470. var folderName = pathBeforeSlash.replace(BEFORE_SLASH_RE, '');
  40471. fileName = folderName + '/' + fileName;
  40472. }
  40473. }
  40474. }
  40475. }
  40476. sourceInfo = ' (at ' + fileName + ':' + source.lineNumber + ')';
  40477. } else if (ownerName) {
  40478. sourceInfo = ' (created by ' + ownerName + ')';
  40479. }
  40480. return '\n in ' + (name || 'Unknown') + sourceInfo;
  40481. };
  40482. var Resolved = 1;
  40483. function refineResolvedLazyComponent(lazyComponent) {
  40484. return lazyComponent._status === Resolved ? lazyComponent._result : null;
  40485. }
  40486. function getWrappedName(outerType, innerType, wrapperName) {
  40487. var functionName = innerType.displayName || innerType.name || '';
  40488. return outerType.displayName || (functionName !== '' ? wrapperName + '(' + functionName + ')' : wrapperName);
  40489. }
  40490. function getComponentName(type) {
  40491. if (type == null) {
  40492. // Host root, text node or just invalid type.
  40493. return null;
  40494. }
  40495. {
  40496. if (typeof type.tag === 'number') {
  40497. warningWithoutStack$1(false, 'Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');
  40498. }
  40499. }
  40500. if (typeof type === 'function') {
  40501. return type.displayName || type.name || null;
  40502. }
  40503. if (typeof type === 'string') {
  40504. return type;
  40505. }
  40506. switch (type) {
  40507. case REACT_FRAGMENT_TYPE:
  40508. return 'Fragment';
  40509. case REACT_PORTAL_TYPE:
  40510. return 'Portal';
  40511. case REACT_PROFILER_TYPE:
  40512. return 'Profiler';
  40513. case REACT_STRICT_MODE_TYPE:
  40514. return 'StrictMode';
  40515. case REACT_SUSPENSE_TYPE:
  40516. return 'Suspense';
  40517. case REACT_SUSPENSE_LIST_TYPE:
  40518. return 'SuspenseList';
  40519. }
  40520. if (typeof type === 'object') {
  40521. switch (type.$$typeof) {
  40522. case REACT_CONTEXT_TYPE:
  40523. return 'Context.Consumer';
  40524. case REACT_PROVIDER_TYPE:
  40525. return 'Context.Provider';
  40526. case REACT_FORWARD_REF_TYPE:
  40527. return getWrappedName(type, type.render, 'ForwardRef');
  40528. case REACT_MEMO_TYPE:
  40529. return getComponentName(type.type);
  40530. case REACT_LAZY_TYPE:
  40531. {
  40532. var thenable = type;
  40533. var resolvedThenable = refineResolvedLazyComponent(thenable);
  40534. if (resolvedThenable) {
  40535. return getComponentName(resolvedThenable);
  40536. }
  40537. break;
  40538. }
  40539. }
  40540. }
  40541. return null;
  40542. }
  40543. var ReactDebugCurrentFrame = {};
  40544. var currentlyValidatingElement = null;
  40545. function setCurrentlyValidatingElement(element) {
  40546. {
  40547. currentlyValidatingElement = element;
  40548. }
  40549. }
  40550. {
  40551. // Stack implementation injected by the current renderer.
  40552. ReactDebugCurrentFrame.getCurrentStack = null;
  40553. ReactDebugCurrentFrame.getStackAddendum = function () {
  40554. var stack = '';
  40555. // Add an extra top frame while an element is being validated
  40556. if (currentlyValidatingElement) {
  40557. var name = getComponentName(currentlyValidatingElement.type);
  40558. var owner = currentlyValidatingElement._owner;
  40559. stack += describeComponentFrame(name, currentlyValidatingElement._source, owner && getComponentName(owner.type));
  40560. }
  40561. // Delegate to the injected renderer-specific implementation
  40562. var impl = ReactDebugCurrentFrame.getCurrentStack;
  40563. if (impl) {
  40564. stack += impl() || '';
  40565. }
  40566. return stack;
  40567. };
  40568. }
  40569. /**
  40570. * Used by act() to track whether you're inside an act() scope.
  40571. */
  40572. var IsSomeRendererActing = {
  40573. current: false
  40574. };
  40575. var ReactSharedInternals = {
  40576. ReactCurrentDispatcher: ReactCurrentDispatcher,
  40577. ReactCurrentBatchConfig: ReactCurrentBatchConfig,
  40578. ReactCurrentOwner: ReactCurrentOwner,
  40579. IsSomeRendererActing: IsSomeRendererActing,
  40580. // Used by renderers to avoid bundling object-assign twice in UMD bundles:
  40581. assign: _assign
  40582. };
  40583. {
  40584. _assign(ReactSharedInternals, {
  40585. // These should not be included in production.
  40586. ReactDebugCurrentFrame: ReactDebugCurrentFrame,
  40587. // Shim for React DOM 16.0.0 which still destructured (but not used) this.
  40588. // TODO: remove in React 17.0.
  40589. ReactComponentTreeHook: {}
  40590. });
  40591. }
  40592. /**
  40593. * Similar to invariant but only logs a warning if the condition is not met.
  40594. * This can be used to log issues in development environments in critical
  40595. * paths. Removing the logging code for production environments will keep the
  40596. * same logic and follow the same code paths.
  40597. */
  40598. var warning = warningWithoutStack$1;
  40599. {
  40600. warning = function (condition, format) {
  40601. if (condition) {
  40602. return;
  40603. }
  40604. var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
  40605. var stack = ReactDebugCurrentFrame.getStackAddendum();
  40606. // eslint-disable-next-line react-internal/warning-and-invariant-args
  40607. for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
  40608. args[_key - 2] = arguments[_key];
  40609. }
  40610. warningWithoutStack$1.apply(undefined, [false, format + '%s'].concat(args, [stack]));
  40611. };
  40612. }
  40613. var warning$1 = warning;
  40614. var hasOwnProperty = Object.prototype.hasOwnProperty;
  40615. var RESERVED_PROPS = {
  40616. key: true,
  40617. ref: true,
  40618. __self: true,
  40619. __source: true
  40620. };
  40621. var specialPropKeyWarningShown = void 0;
  40622. var specialPropRefWarningShown = void 0;
  40623. function hasValidRef(config) {
  40624. {
  40625. if (hasOwnProperty.call(config, 'ref')) {
  40626. var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
  40627. if (getter && getter.isReactWarning) {
  40628. return false;
  40629. }
  40630. }
  40631. }
  40632. return config.ref !== undefined;
  40633. }
  40634. function hasValidKey(config) {
  40635. {
  40636. if (hasOwnProperty.call(config, 'key')) {
  40637. var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
  40638. if (getter && getter.isReactWarning) {
  40639. return false;
  40640. }
  40641. }
  40642. }
  40643. return config.key !== undefined;
  40644. }
  40645. function defineKeyPropWarningGetter(props, displayName) {
  40646. var warnAboutAccessingKey = function () {
  40647. if (!specialPropKeyWarningShown) {
  40648. specialPropKeyWarningShown = true;
  40649. warningWithoutStack$1(false, '%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName);
  40650. }
  40651. };
  40652. warnAboutAccessingKey.isReactWarning = true;
  40653. Object.defineProperty(props, 'key', {
  40654. get: warnAboutAccessingKey,
  40655. configurable: true
  40656. });
  40657. }
  40658. function defineRefPropWarningGetter(props, displayName) {
  40659. var warnAboutAccessingRef = function () {
  40660. if (!specialPropRefWarningShown) {
  40661. specialPropRefWarningShown = true;
  40662. warningWithoutStack$1(false, '%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName);
  40663. }
  40664. };
  40665. warnAboutAccessingRef.isReactWarning = true;
  40666. Object.defineProperty(props, 'ref', {
  40667. get: warnAboutAccessingRef,
  40668. configurable: true
  40669. });
  40670. }
  40671. /**
  40672. * Factory method to create a new React element. This no longer adheres to
  40673. * the class pattern, so do not use new to call it. Also, no instanceof check
  40674. * will work. Instead test $$typeof field against Symbol.for('react.element') to check
  40675. * if something is a React Element.
  40676. *
  40677. * @param {*} type
  40678. * @param {*} props
  40679. * @param {*} key
  40680. * @param {string|object} ref
  40681. * @param {*} owner
  40682. * @param {*} self A *temporary* helper to detect places where `this` is
  40683. * different from the `owner` when React.createElement is called, so that we
  40684. * can warn. We want to get rid of owner and replace string `ref`s with arrow
  40685. * functions, and as long as `this` and owner are the same, there will be no
  40686. * change in behavior.
  40687. * @param {*} source An annotation object (added by a transpiler or otherwise)
  40688. * indicating filename, line number, and/or other information.
  40689. * @internal
  40690. */
  40691. var ReactElement = function (type, key, ref, self, source, owner, props) {
  40692. var element = {
  40693. // This tag allows us to uniquely identify this as a React Element
  40694. $$typeof: REACT_ELEMENT_TYPE,
  40695. // Built-in properties that belong on the element
  40696. type: type,
  40697. key: key,
  40698. ref: ref,
  40699. props: props,
  40700. // Record the component responsible for creating this element.
  40701. _owner: owner
  40702. };
  40703. {
  40704. // The validation flag is currently mutative. We put it on
  40705. // an external backing store so that we can freeze the whole object.
  40706. // This can be replaced with a WeakMap once they are implemented in
  40707. // commonly used development environments.
  40708. element._store = {};
  40709. // To make comparing ReactElements easier for testing purposes, we make
  40710. // the validation flag non-enumerable (where possible, which should
  40711. // include every environment we run tests in), so the test framework
  40712. // ignores it.
  40713. Object.defineProperty(element._store, 'validated', {
  40714. configurable: false,
  40715. enumerable: false,
  40716. writable: true,
  40717. value: false
  40718. });
  40719. // self and source are DEV only properties.
  40720. Object.defineProperty(element, '_self', {
  40721. configurable: false,
  40722. enumerable: false,
  40723. writable: false,
  40724. value: self
  40725. });
  40726. // Two elements created in two different places should be considered
  40727. // equal for testing purposes and therefore we hide it from enumeration.
  40728. Object.defineProperty(element, '_source', {
  40729. configurable: false,
  40730. enumerable: false,
  40731. writable: false,
  40732. value: source
  40733. });
  40734. if (Object.freeze) {
  40735. Object.freeze(element.props);
  40736. Object.freeze(element);
  40737. }
  40738. }
  40739. return element;
  40740. };
  40741. /**
  40742. * https://github.com/reactjs/rfcs/pull/107
  40743. * @param {*} type
  40744. * @param {object} props
  40745. * @param {string} key
  40746. */
  40747. /**
  40748. * https://github.com/reactjs/rfcs/pull/107
  40749. * @param {*} type
  40750. * @param {object} props
  40751. * @param {string} key
  40752. */
  40753. function jsxDEV(type, config, maybeKey, source, self) {
  40754. var propName = void 0;
  40755. // Reserved names are extracted
  40756. var props = {};
  40757. var key = null;
  40758. var ref = null;
  40759. if (hasValidRef(config)) {
  40760. ref = config.ref;
  40761. }
  40762. if (hasValidKey(config)) {
  40763. key = '' + config.key;
  40764. }
  40765. // Remaining properties are added to a new props object
  40766. for (propName in config) {
  40767. if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
  40768. props[propName] = config[propName];
  40769. }
  40770. }
  40771. // intentionally not checking if key was set above
  40772. // this key is higher priority as it's static
  40773. if (maybeKey !== undefined) {
  40774. key = '' + maybeKey;
  40775. }
  40776. // Resolve default props
  40777. if (type && type.defaultProps) {
  40778. var defaultProps = type.defaultProps;
  40779. for (propName in defaultProps) {
  40780. if (props[propName] === undefined) {
  40781. props[propName] = defaultProps[propName];
  40782. }
  40783. }
  40784. }
  40785. if (key || ref) {
  40786. var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
  40787. if (key) {
  40788. defineKeyPropWarningGetter(props, displayName);
  40789. }
  40790. if (ref) {
  40791. defineRefPropWarningGetter(props, displayName);
  40792. }
  40793. }
  40794. return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
  40795. }
  40796. /**
  40797. * Create and return a new ReactElement of the given type.
  40798. * See https://reactjs.org/docs/react-api.html#createelement
  40799. */
  40800. function createElement(type, config, children) {
  40801. var propName = void 0;
  40802. // Reserved names are extracted
  40803. var props = {};
  40804. var key = null;
  40805. var ref = null;
  40806. var self = null;
  40807. var source = null;
  40808. if (config != null) {
  40809. if (hasValidRef(config)) {
  40810. ref = config.ref;
  40811. }
  40812. if (hasValidKey(config)) {
  40813. key = '' + config.key;
  40814. }
  40815. self = config.__self === undefined ? null : config.__self;
  40816. source = config.__source === undefined ? null : config.__source;
  40817. // Remaining properties are added to a new props object
  40818. for (propName in config) {
  40819. if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
  40820. props[propName] = config[propName];
  40821. }
  40822. }
  40823. }
  40824. // Children can be more than one argument, and those are transferred onto
  40825. // the newly allocated props object.
  40826. var childrenLength = arguments.length - 2;
  40827. if (childrenLength === 1) {
  40828. props.children = children;
  40829. } else if (childrenLength > 1) {
  40830. var childArray = Array(childrenLength);
  40831. for (var i = 0; i < childrenLength; i++) {
  40832. childArray[i] = arguments[i + 2];
  40833. }
  40834. {
  40835. if (Object.freeze) {
  40836. Object.freeze(childArray);
  40837. }
  40838. }
  40839. props.children = childArray;
  40840. }
  40841. // Resolve default props
  40842. if (type && type.defaultProps) {
  40843. var defaultProps = type.defaultProps;
  40844. for (propName in defaultProps) {
  40845. if (props[propName] === undefined) {
  40846. props[propName] = defaultProps[propName];
  40847. }
  40848. }
  40849. }
  40850. {
  40851. if (key || ref) {
  40852. var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
  40853. if (key) {
  40854. defineKeyPropWarningGetter(props, displayName);
  40855. }
  40856. if (ref) {
  40857. defineRefPropWarningGetter(props, displayName);
  40858. }
  40859. }
  40860. }
  40861. return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
  40862. }
  40863. /**
  40864. * Return a function that produces ReactElements of a given type.
  40865. * See https://reactjs.org/docs/react-api.html#createfactory
  40866. */
  40867. function cloneAndReplaceKey(oldElement, newKey) {
  40868. var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);
  40869. return newElement;
  40870. }
  40871. /**
  40872. * Clone and return a new ReactElement using element as the starting point.
  40873. * See https://reactjs.org/docs/react-api.html#cloneelement
  40874. */
  40875. function cloneElement(element, config, children) {
  40876. (function () {
  40877. if (!!(element === null || element === undefined)) {
  40878. {
  40879. throw ReactError(Error('React.cloneElement(...): The argument must be a React element, but you passed ' + element + '.'));
  40880. }
  40881. }
  40882. })();
  40883. var propName = void 0;
  40884. // Original props are copied
  40885. var props = _assign({}, element.props);
  40886. // Reserved names are extracted
  40887. var key = element.key;
  40888. var ref = element.ref;
  40889. // Self is preserved since the owner is preserved.
  40890. var self = element._self;
  40891. // Source is preserved since cloneElement is unlikely to be targeted by a
  40892. // transpiler, and the original source is probably a better indicator of the
  40893. // true owner.
  40894. var source = element._source;
  40895. // Owner will be preserved, unless ref is overridden
  40896. var owner = element._owner;
  40897. if (config != null) {
  40898. if (hasValidRef(config)) {
  40899. // Silently steal the ref from the parent.
  40900. ref = config.ref;
  40901. owner = ReactCurrentOwner.current;
  40902. }
  40903. if (hasValidKey(config)) {
  40904. key = '' + config.key;
  40905. }
  40906. // Remaining properties override existing props
  40907. var defaultProps = void 0;
  40908. if (element.type && element.type.defaultProps) {
  40909. defaultProps = element.type.defaultProps;
  40910. }
  40911. for (propName in config) {
  40912. if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
  40913. if (config[propName] === undefined && defaultProps !== undefined) {
  40914. // Resolve default props
  40915. props[propName] = defaultProps[propName];
  40916. } else {
  40917. props[propName] = config[propName];
  40918. }
  40919. }
  40920. }
  40921. }
  40922. // Children can be more than one argument, and those are transferred onto
  40923. // the newly allocated props object.
  40924. var childrenLength = arguments.length - 2;
  40925. if (childrenLength === 1) {
  40926. props.children = children;
  40927. } else if (childrenLength > 1) {
  40928. var childArray = Array(childrenLength);
  40929. for (var i = 0; i < childrenLength; i++) {
  40930. childArray[i] = arguments[i + 2];
  40931. }
  40932. props.children = childArray;
  40933. }
  40934. return ReactElement(element.type, key, ref, self, source, owner, props);
  40935. }
  40936. /**
  40937. * Verifies the object is a ReactElement.
  40938. * See https://reactjs.org/docs/react-api.html#isvalidelement
  40939. * @param {?object} object
  40940. * @return {boolean} True if `object` is a ReactElement.
  40941. * @final
  40942. */
  40943. function isValidElement(object) {
  40944. return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
  40945. }
  40946. var SEPARATOR = '.';
  40947. var SUBSEPARATOR = ':';
  40948. /**
  40949. * Escape and wrap key so it is safe to use as a reactid
  40950. *
  40951. * @param {string} key to be escaped.
  40952. * @return {string} the escaped key.
  40953. */
  40954. function escape(key) {
  40955. var escapeRegex = /[=:]/g;
  40956. var escaperLookup = {
  40957. '=': '=0',
  40958. ':': '=2'
  40959. };
  40960. var escapedString = ('' + key).replace(escapeRegex, function (match) {
  40961. return escaperLookup[match];
  40962. });
  40963. return '$' + escapedString;
  40964. }
  40965. /**
  40966. * TODO: Test that a single child and an array with one item have the same key
  40967. * pattern.
  40968. */
  40969. var didWarnAboutMaps = false;
  40970. var userProvidedKeyEscapeRegex = /\/+/g;
  40971. function escapeUserProvidedKey(text) {
  40972. return ('' + text).replace(userProvidedKeyEscapeRegex, '$&/');
  40973. }
  40974. var POOL_SIZE = 10;
  40975. var traverseContextPool = [];
  40976. function getPooledTraverseContext(mapResult, keyPrefix, mapFunction, mapContext) {
  40977. if (traverseContextPool.length) {
  40978. var traverseContext = traverseContextPool.pop();
  40979. traverseContext.result = mapResult;
  40980. traverseContext.keyPrefix = keyPrefix;
  40981. traverseContext.func = mapFunction;
  40982. traverseContext.context = mapContext;
  40983. traverseContext.count = 0;
  40984. return traverseContext;
  40985. } else {
  40986. return {
  40987. result: mapResult,
  40988. keyPrefix: keyPrefix,
  40989. func: mapFunction,
  40990. context: mapContext,
  40991. count: 0
  40992. };
  40993. }
  40994. }
  40995. function releaseTraverseContext(traverseContext) {
  40996. traverseContext.result = null;
  40997. traverseContext.keyPrefix = null;
  40998. traverseContext.func = null;
  40999. traverseContext.context = null;
  41000. traverseContext.count = 0;
  41001. if (traverseContextPool.length < POOL_SIZE) {
  41002. traverseContextPool.push(traverseContext);
  41003. }
  41004. }
  41005. /**
  41006. * @param {?*} children Children tree container.
  41007. * @param {!string} nameSoFar Name of the key path so far.
  41008. * @param {!function} callback Callback to invoke with each child found.
  41009. * @param {?*} traverseContext Used to pass information throughout the traversal
  41010. * process.
  41011. * @return {!number} The number of children in this subtree.
  41012. */
  41013. function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext) {
  41014. var type = typeof children;
  41015. if (type === 'undefined' || type === 'boolean') {
  41016. // All of the above are perceived as null.
  41017. children = null;
  41018. }
  41019. var invokeCallback = false;
  41020. if (children === null) {
  41021. invokeCallback = true;
  41022. } else {
  41023. switch (type) {
  41024. case 'string':
  41025. case 'number':
  41026. invokeCallback = true;
  41027. break;
  41028. case 'object':
  41029. switch (children.$$typeof) {
  41030. case REACT_ELEMENT_TYPE:
  41031. case REACT_PORTAL_TYPE:
  41032. invokeCallback = true;
  41033. }
  41034. }
  41035. }
  41036. if (invokeCallback) {
  41037. callback(traverseContext, children,
  41038. // If it's the only child, treat the name as if it was wrapped in an array
  41039. // so that it's consistent if the number of children grows.
  41040. nameSoFar === '' ? SEPARATOR + getComponentKey(children, 0) : nameSoFar);
  41041. return 1;
  41042. }
  41043. var child = void 0;
  41044. var nextName = void 0;
  41045. var subtreeCount = 0; // Count of children found in the current subtree.
  41046. var nextNamePrefix = nameSoFar === '' ? SEPARATOR : nameSoFar + SUBSEPARATOR;
  41047. if (Array.isArray(children)) {
  41048. for (var i = 0; i < children.length; i++) {
  41049. child = children[i];
  41050. nextName = nextNamePrefix + getComponentKey(child, i);
  41051. subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
  41052. }
  41053. } else {
  41054. var iteratorFn = getIteratorFn(children);
  41055. if (typeof iteratorFn === 'function') {
  41056. {
  41057. // Warn about using Maps as children
  41058. if (iteratorFn === children.entries) {
  41059. !didWarnAboutMaps ? warning$1(false, 'Using Maps as children is unsupported and will likely yield ' + 'unexpected results. Convert it to a sequence/iterable of keyed ' + 'ReactElements instead.') : void 0;
  41060. didWarnAboutMaps = true;
  41061. }
  41062. }
  41063. var iterator = iteratorFn.call(children);
  41064. var step = void 0;
  41065. var ii = 0;
  41066. while (!(step = iterator.next()).done) {
  41067. child = step.value;
  41068. nextName = nextNamePrefix + getComponentKey(child, ii++);
  41069. subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
  41070. }
  41071. } else if (type === 'object') {
  41072. var addendum = '';
  41073. {
  41074. addendum = ' If you meant to render a collection of children, use an array ' + 'instead.' + ReactDebugCurrentFrame.getStackAddendum();
  41075. }
  41076. var childrenString = '' + children;
  41077. (function () {
  41078. {
  41079. {
  41080. throw ReactError(Error('Objects are not valid as a React child (found: ' + (childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString) + ').' + addendum));
  41081. }
  41082. }
  41083. })();
  41084. }
  41085. }
  41086. return subtreeCount;
  41087. }
  41088. /**
  41089. * Traverses children that are typically specified as `props.children`, but
  41090. * might also be specified through attributes:
  41091. *
  41092. * - `traverseAllChildren(this.props.children, ...)`
  41093. * - `traverseAllChildren(this.props.leftPanelChildren, ...)`
  41094. *
  41095. * The `traverseContext` is an optional argument that is passed through the
  41096. * entire traversal. It can be used to store accumulations or anything else that
  41097. * the callback might find relevant.
  41098. *
  41099. * @param {?*} children Children tree object.
  41100. * @param {!function} callback To invoke upon traversing each child.
  41101. * @param {?*} traverseContext Context for traversal.
  41102. * @return {!number} The number of children in this subtree.
  41103. */
  41104. function traverseAllChildren(children, callback, traverseContext) {
  41105. if (children == null) {
  41106. return 0;
  41107. }
  41108. return traverseAllChildrenImpl(children, '', callback, traverseContext);
  41109. }
  41110. /**
  41111. * Generate a key string that identifies a component within a set.
  41112. *
  41113. * @param {*} component A component that could contain a manual key.
  41114. * @param {number} index Index that is used if a manual key is not provided.
  41115. * @return {string}
  41116. */
  41117. function getComponentKey(component, index) {
  41118. // Do some typechecking here since we call this blindly. We want to ensure
  41119. // that we don't block potential future ES APIs.
  41120. if (typeof component === 'object' && component !== null && component.key != null) {
  41121. // Explicit key
  41122. return escape(component.key);
  41123. }
  41124. // Implicit key determined by the index in the set
  41125. return index.toString(36);
  41126. }
  41127. function forEachSingleChild(bookKeeping, child, name) {
  41128. var func = bookKeeping.func,
  41129. context = bookKeeping.context;
  41130. func.call(context, child, bookKeeping.count++);
  41131. }
  41132. /**
  41133. * Iterates through children that are typically specified as `props.children`.
  41134. *
  41135. * See https://reactjs.org/docs/react-api.html#reactchildrenforeach
  41136. *
  41137. * The provided forEachFunc(child, index) will be called for each
  41138. * leaf child.
  41139. *
  41140. * @param {?*} children Children tree container.
  41141. * @param {function(*, int)} forEachFunc
  41142. * @param {*} forEachContext Context for forEachContext.
  41143. */
  41144. function forEachChildren(children, forEachFunc, forEachContext) {
  41145. if (children == null) {
  41146. return children;
  41147. }
  41148. var traverseContext = getPooledTraverseContext(null, null, forEachFunc, forEachContext);
  41149. traverseAllChildren(children, forEachSingleChild, traverseContext);
  41150. releaseTraverseContext(traverseContext);
  41151. }
  41152. function mapSingleChildIntoContext(bookKeeping, child, childKey) {
  41153. var result = bookKeeping.result,
  41154. keyPrefix = bookKeeping.keyPrefix,
  41155. func = bookKeeping.func,
  41156. context = bookKeeping.context;
  41157. var mappedChild = func.call(context, child, bookKeeping.count++);
  41158. if (Array.isArray(mappedChild)) {
  41159. mapIntoWithKeyPrefixInternal(mappedChild, result, childKey, function (c) {
  41160. return c;
  41161. });
  41162. } else if (mappedChild != null) {
  41163. if (isValidElement(mappedChild)) {
  41164. mappedChild = cloneAndReplaceKey(mappedChild,
  41165. // Keep both the (mapped) and old keys if they differ, just as
  41166. // traverseAllChildren used to do for objects as children
  41167. keyPrefix + (mappedChild.key && (!child || child.key !== mappedChild.key) ? escapeUserProvidedKey(mappedChild.key) + '/' : '') + childKey);
  41168. }
  41169. result.push(mappedChild);
  41170. }
  41171. }
  41172. function mapIntoWithKeyPrefixInternal(children, array, prefix, func, context) {
  41173. var escapedPrefix = '';
  41174. if (prefix != null) {
  41175. escapedPrefix = escapeUserProvidedKey(prefix) + '/';
  41176. }
  41177. var traverseContext = getPooledTraverseContext(array, escapedPrefix, func, context);
  41178. traverseAllChildren(children, mapSingleChildIntoContext, traverseContext);
  41179. releaseTraverseContext(traverseContext);
  41180. }
  41181. /**
  41182. * Maps children that are typically specified as `props.children`.
  41183. *
  41184. * See https://reactjs.org/docs/react-api.html#reactchildrenmap
  41185. *
  41186. * The provided mapFunction(child, key, index) will be called for each
  41187. * leaf child.
  41188. *
  41189. * @param {?*} children Children tree container.
  41190. * @param {function(*, int)} func The map function.
  41191. * @param {*} context Context for mapFunction.
  41192. * @return {object} Object containing the ordered map of results.
  41193. */
  41194. function mapChildren(children, func, context) {
  41195. if (children == null) {
  41196. return children;
  41197. }
  41198. var result = [];
  41199. mapIntoWithKeyPrefixInternal(children, result, null, func, context);
  41200. return result;
  41201. }
  41202. /**
  41203. * Count the number of children that are typically specified as
  41204. * `props.children`.
  41205. *
  41206. * See https://reactjs.org/docs/react-api.html#reactchildrencount
  41207. *
  41208. * @param {?*} children Children tree container.
  41209. * @return {number} The number of children.
  41210. */
  41211. function countChildren(children) {
  41212. return traverseAllChildren(children, function () {
  41213. return null;
  41214. }, null);
  41215. }
  41216. /**
  41217. * Flatten a children object (typically specified as `props.children`) and
  41218. * return an array with appropriately re-keyed children.
  41219. *
  41220. * See https://reactjs.org/docs/react-api.html#reactchildrentoarray
  41221. */
  41222. function toArray(children) {
  41223. var result = [];
  41224. mapIntoWithKeyPrefixInternal(children, result, null, function (child) {
  41225. return child;
  41226. });
  41227. return result;
  41228. }
  41229. /**
  41230. * Returns the first child in a collection of children and verifies that there
  41231. * is only one child in the collection.
  41232. *
  41233. * See https://reactjs.org/docs/react-api.html#reactchildrenonly
  41234. *
  41235. * The current implementation of this function assumes that a single child gets
  41236. * passed without a wrapper, but the purpose of this helper function is to
  41237. * abstract away the particular structure of children.
  41238. *
  41239. * @param {?object} children Child collection structure.
  41240. * @return {ReactElement} The first and only `ReactElement` contained in the
  41241. * structure.
  41242. */
  41243. function onlyChild(children) {
  41244. (function () {
  41245. if (!isValidElement(children)) {
  41246. {
  41247. throw ReactError(Error('React.Children.only expected to receive a single React element child.'));
  41248. }
  41249. }
  41250. })();
  41251. return children;
  41252. }
  41253. function createContext(defaultValue, calculateChangedBits) {
  41254. if (calculateChangedBits === undefined) {
  41255. calculateChangedBits = null;
  41256. } else {
  41257. {
  41258. !(calculateChangedBits === null || typeof calculateChangedBits === 'function') ? warningWithoutStack$1(false, 'createContext: Expected the optional second argument to be a ' + 'function. Instead received: %s', calculateChangedBits) : void 0;
  41259. }
  41260. }
  41261. var context = {
  41262. $$typeof: REACT_CONTEXT_TYPE,
  41263. _calculateChangedBits: calculateChangedBits,
  41264. // As a workaround to support multiple concurrent renderers, we categorize
  41265. // some renderers as primary and others as secondary. We only expect
  41266. // there to be two concurrent renderers at most: React Native (primary) and
  41267. // Fabric (secondary); React DOM (primary) and React ART (secondary).
  41268. // Secondary renderers store their context values on separate fields.
  41269. _currentValue: defaultValue,
  41270. _currentValue2: defaultValue,
  41271. // Used to track how many concurrent renderers this context currently
  41272. // supports within in a single renderer. Such as parallel server rendering.
  41273. _threadCount: 0,
  41274. // These are circular
  41275. Provider: null,
  41276. Consumer: null
  41277. };
  41278. context.Provider = {
  41279. $$typeof: REACT_PROVIDER_TYPE,
  41280. _context: context
  41281. };
  41282. var hasWarnedAboutUsingNestedContextConsumers = false;
  41283. var hasWarnedAboutUsingConsumerProvider = false;
  41284. {
  41285. // A separate object, but proxies back to the original context object for
  41286. // backwards compatibility. It has a different $$typeof, so we can properly
  41287. // warn for the incorrect usage of Context as a Consumer.
  41288. var Consumer = {
  41289. $$typeof: REACT_CONTEXT_TYPE,
  41290. _context: context,
  41291. _calculateChangedBits: context._calculateChangedBits
  41292. };
  41293. // $FlowFixMe: Flow complains about not setting a value, which is intentional here
  41294. Object.defineProperties(Consumer, {
  41295. Provider: {
  41296. get: function () {
  41297. if (!hasWarnedAboutUsingConsumerProvider) {
  41298. hasWarnedAboutUsingConsumerProvider = true;
  41299. warning$1(false, 'Rendering <Context.Consumer.Provider> is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Provider> instead?');
  41300. }
  41301. return context.Provider;
  41302. },
  41303. set: function (_Provider) {
  41304. context.Provider = _Provider;
  41305. }
  41306. },
  41307. _currentValue: {
  41308. get: function () {
  41309. return context._currentValue;
  41310. },
  41311. set: function (_currentValue) {
  41312. context._currentValue = _currentValue;
  41313. }
  41314. },
  41315. _currentValue2: {
  41316. get: function () {
  41317. return context._currentValue2;
  41318. },
  41319. set: function (_currentValue2) {
  41320. context._currentValue2 = _currentValue2;
  41321. }
  41322. },
  41323. _threadCount: {
  41324. get: function () {
  41325. return context._threadCount;
  41326. },
  41327. set: function (_threadCount) {
  41328. context._threadCount = _threadCount;
  41329. }
  41330. },
  41331. Consumer: {
  41332. get: function () {
  41333. if (!hasWarnedAboutUsingNestedContextConsumers) {
  41334. hasWarnedAboutUsingNestedContextConsumers = true;
  41335. warning$1(false, 'Rendering <Context.Consumer.Consumer> is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Consumer> instead?');
  41336. }
  41337. return context.Consumer;
  41338. }
  41339. }
  41340. });
  41341. // $FlowFixMe: Flow complains about missing properties because it doesn't understand defineProperty
  41342. context.Consumer = Consumer;
  41343. }
  41344. {
  41345. context._currentRenderer = null;
  41346. context._currentRenderer2 = null;
  41347. }
  41348. return context;
  41349. }
  41350. function lazy(ctor) {
  41351. var lazyType = {
  41352. $$typeof: REACT_LAZY_TYPE,
  41353. _ctor: ctor,
  41354. // React uses these fields to store the result.
  41355. _status: -1,
  41356. _result: null
  41357. };
  41358. {
  41359. // In production, this would just set it on the object.
  41360. var defaultProps = void 0;
  41361. var propTypes = void 0;
  41362. Object.defineProperties(lazyType, {
  41363. defaultProps: {
  41364. configurable: true,
  41365. get: function () {
  41366. return defaultProps;
  41367. },
  41368. set: function (newDefaultProps) {
  41369. warning$1(false, 'React.lazy(...): It is not supported to assign `defaultProps` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.');
  41370. defaultProps = newDefaultProps;
  41371. // Match production behavior more closely:
  41372. Object.defineProperty(lazyType, 'defaultProps', {
  41373. enumerable: true
  41374. });
  41375. }
  41376. },
  41377. propTypes: {
  41378. configurable: true,
  41379. get: function () {
  41380. return propTypes;
  41381. },
  41382. set: function (newPropTypes) {
  41383. warning$1(false, 'React.lazy(...): It is not supported to assign `propTypes` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.');
  41384. propTypes = newPropTypes;
  41385. // Match production behavior more closely:
  41386. Object.defineProperty(lazyType, 'propTypes', {
  41387. enumerable: true
  41388. });
  41389. }
  41390. }
  41391. });
  41392. }
  41393. return lazyType;
  41394. }
  41395. function forwardRef(render) {
  41396. {
  41397. if (render != null && render.$$typeof === REACT_MEMO_TYPE) {
  41398. warningWithoutStack$1(false, 'forwardRef requires a render function but received a `memo` ' + 'component. Instead of forwardRef(memo(...)), use ' + 'memo(forwardRef(...)).');
  41399. } else if (typeof render !== 'function') {
  41400. warningWithoutStack$1(false, 'forwardRef requires a render function but was given %s.', render === null ? 'null' : typeof render);
  41401. } else {
  41402. !(
  41403. // Do not warn for 0 arguments because it could be due to usage of the 'arguments' object
  41404. render.length === 0 || render.length === 2) ? warningWithoutStack$1(false, 'forwardRef render functions accept exactly two parameters: props and ref. %s', render.length === 1 ? 'Did you forget to use the ref parameter?' : 'Any additional parameter will be undefined.') : void 0;
  41405. }
  41406. if (render != null) {
  41407. !(render.defaultProps == null && render.propTypes == null) ? warningWithoutStack$1(false, 'forwardRef render functions do not support propTypes or defaultProps. ' + 'Did you accidentally pass a React component?') : void 0;
  41408. }
  41409. }
  41410. return {
  41411. $$typeof: REACT_FORWARD_REF_TYPE,
  41412. render: render
  41413. };
  41414. }
  41415. function isValidElementType(type) {
  41416. return typeof type === 'string' || typeof type === 'function' ||
  41417. // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
  41418. type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE);
  41419. }
  41420. function memo(type, compare) {
  41421. {
  41422. if (!isValidElementType(type)) {
  41423. warningWithoutStack$1(false, 'memo: The first argument must be a component. Instead ' + 'received: %s', type === null ? 'null' : typeof type);
  41424. }
  41425. }
  41426. return {
  41427. $$typeof: REACT_MEMO_TYPE,
  41428. type: type,
  41429. compare: compare === undefined ? null : compare
  41430. };
  41431. }
  41432. function resolveDispatcher() {
  41433. var dispatcher = ReactCurrentDispatcher.current;
  41434. (function () {
  41435. if (!(dispatcher !== null)) {
  41436. {
  41437. throw ReactError(Error('Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.'));
  41438. }
  41439. }
  41440. })();
  41441. return dispatcher;
  41442. }
  41443. function useContext(Context, unstable_observedBits) {
  41444. var dispatcher = resolveDispatcher();
  41445. {
  41446. !(unstable_observedBits === undefined) ? warning$1(false, 'useContext() second argument is reserved for future ' + 'use in React. Passing it is not supported. ' + 'You passed: %s.%s', unstable_observedBits, typeof unstable_observedBits === 'number' && Array.isArray(arguments[2]) ? '\n\nDid you call array.map(useContext)? ' + 'Calling Hooks inside a loop is not supported. ' + 'Learn more at https://fb.me/rules-of-hooks' : '') : void 0;
  41447. // TODO: add a more generic warning for invalid values.
  41448. if (Context._context !== undefined) {
  41449. var realContext = Context._context;
  41450. // Don't deduplicate because this legitimately causes bugs
  41451. // and nobody should be using this in existing code.
  41452. if (realContext.Consumer === Context) {
  41453. warning$1(false, 'Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be ' + 'removed in a future major release. Did you mean to call useContext(Context) instead?');
  41454. } else if (realContext.Provider === Context) {
  41455. warning$1(false, 'Calling useContext(Context.Provider) is not supported. ' + 'Did you mean to call useContext(Context) instead?');
  41456. }
  41457. }
  41458. }
  41459. return dispatcher.useContext(Context, unstable_observedBits);
  41460. }
  41461. function useState(initialState) {
  41462. var dispatcher = resolveDispatcher();
  41463. return dispatcher.useState(initialState);
  41464. }
  41465. function useReducer(reducer, initialArg, init) {
  41466. var dispatcher = resolveDispatcher();
  41467. return dispatcher.useReducer(reducer, initialArg, init);
  41468. }
  41469. function useRef(initialValue) {
  41470. var dispatcher = resolveDispatcher();
  41471. return dispatcher.useRef(initialValue);
  41472. }
  41473. function useEffect(create, inputs) {
  41474. var dispatcher = resolveDispatcher();
  41475. return dispatcher.useEffect(create, inputs);
  41476. }
  41477. function useLayoutEffect(create, inputs) {
  41478. var dispatcher = resolveDispatcher();
  41479. return dispatcher.useLayoutEffect(create, inputs);
  41480. }
  41481. function useCallback(callback, inputs) {
  41482. var dispatcher = resolveDispatcher();
  41483. return dispatcher.useCallback(callback, inputs);
  41484. }
  41485. function useMemo(create, inputs) {
  41486. var dispatcher = resolveDispatcher();
  41487. return dispatcher.useMemo(create, inputs);
  41488. }
  41489. function useImperativeHandle(ref, create, inputs) {
  41490. var dispatcher = resolveDispatcher();
  41491. return dispatcher.useImperativeHandle(ref, create, inputs);
  41492. }
  41493. function useDebugValue(value, formatterFn) {
  41494. {
  41495. var dispatcher = resolveDispatcher();
  41496. return dispatcher.useDebugValue(value, formatterFn);
  41497. }
  41498. }
  41499. var emptyObject$1 = {};
  41500. function useResponder(responder, listenerProps) {
  41501. var dispatcher = resolveDispatcher();
  41502. {
  41503. if (responder == null || responder.$$typeof !== REACT_RESPONDER_TYPE) {
  41504. warning$1(false, 'useResponder: invalid first argument. Expected an event responder, but instead got %s', responder);
  41505. return;
  41506. }
  41507. }
  41508. return dispatcher.useResponder(responder, listenerProps || emptyObject$1);
  41509. }
  41510. // Within the scope of the callback, mark all updates as being allowed to suspend.
  41511. function withSuspenseConfig(scope, config) {
  41512. var previousConfig = ReactCurrentBatchConfig.suspense;
  41513. ReactCurrentBatchConfig.suspense = config === undefined ? null : config;
  41514. try {
  41515. scope();
  41516. } finally {
  41517. ReactCurrentBatchConfig.suspense = previousConfig;
  41518. }
  41519. }
  41520. /**
  41521. * ReactElementValidator provides a wrapper around a element factory
  41522. * which validates the props passed to the element. This is intended to be
  41523. * used only in DEV and could be replaced by a static type checker for languages
  41524. * that support it.
  41525. */
  41526. var propTypesMisspellWarningShown = void 0;
  41527. {
  41528. propTypesMisspellWarningShown = false;
  41529. }
  41530. function getDeclarationErrorAddendum() {
  41531. if (ReactCurrentOwner.current) {
  41532. var name = getComponentName(ReactCurrentOwner.current.type);
  41533. if (name) {
  41534. return '\n\nCheck the render method of `' + name + '`.';
  41535. }
  41536. }
  41537. return '';
  41538. }
  41539. function getSourceInfoErrorAddendum(source) {
  41540. if (source !== undefined) {
  41541. var fileName = source.fileName.replace(/^.*[\\\/]/, '');
  41542. var lineNumber = source.lineNumber;
  41543. return '\n\nCheck your code at ' + fileName + ':' + lineNumber + '.';
  41544. }
  41545. return '';
  41546. }
  41547. function getSourceInfoErrorAddendumForProps(elementProps) {
  41548. if (elementProps !== null && elementProps !== undefined) {
  41549. return getSourceInfoErrorAddendum(elementProps.__source);
  41550. }
  41551. return '';
  41552. }
  41553. /**
  41554. * Warn if there's no key explicitly set on dynamic arrays of children or
  41555. * object keys are not valid. This allows us to keep track of children between
  41556. * updates.
  41557. */
  41558. var ownerHasKeyUseWarning = {};
  41559. function getCurrentComponentErrorInfo(parentType) {
  41560. var info = getDeclarationErrorAddendum();
  41561. if (!info) {
  41562. var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;
  41563. if (parentName) {
  41564. info = '\n\nCheck the top-level render call using <' + parentName + '>.';
  41565. }
  41566. }
  41567. return info;
  41568. }
  41569. /**
  41570. * Warn if the element doesn't have an explicit key assigned to it.
  41571. * This element is in an array. The array could grow and shrink or be
  41572. * reordered. All children that haven't already been validated are required to
  41573. * have a "key" property assigned to it. Error statuses are cached so a warning
  41574. * will only be shown once.
  41575. *
  41576. * @internal
  41577. * @param {ReactElement} element Element that requires a key.
  41578. * @param {*} parentType element's parent's type.
  41579. */
  41580. function validateExplicitKey(element, parentType) {
  41581. if (!element._store || element._store.validated || element.key != null) {
  41582. return;
  41583. }
  41584. element._store.validated = true;
  41585. var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
  41586. if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
  41587. return;
  41588. }
  41589. ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
  41590. // Usually the current owner is the offender, but if it accepts children as a
  41591. // property, it may be the creator of the child that's responsible for
  41592. // assigning it a key.
  41593. var childOwner = '';
  41594. if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
  41595. // Give the component that originally created this child.
  41596. childOwner = ' It was passed a child from ' + getComponentName(element._owner.type) + '.';
  41597. }
  41598. setCurrentlyValidatingElement(element);
  41599. {
  41600. warning$1(false, 'Each child in a list should have a unique "key" prop.' + '%s%s See https://fb.me/react-warning-keys for more information.', currentComponentErrorInfo, childOwner);
  41601. }
  41602. setCurrentlyValidatingElement(null);
  41603. }
  41604. /**
  41605. * Ensure that every element either is passed in a static location, in an
  41606. * array with an explicit keys property defined, or in an object literal
  41607. * with valid key property.
  41608. *
  41609. * @internal
  41610. * @param {ReactNode} node Statically passed child of any type.
  41611. * @param {*} parentType node's parent's type.
  41612. */
  41613. function validateChildKeys(node, parentType) {
  41614. if (typeof node !== 'object') {
  41615. return;
  41616. }
  41617. if (Array.isArray(node)) {
  41618. for (var i = 0; i < node.length; i++) {
  41619. var child = node[i];
  41620. if (isValidElement(child)) {
  41621. validateExplicitKey(child, parentType);
  41622. }
  41623. }
  41624. } else if (isValidElement(node)) {
  41625. // This element was passed in a valid location.
  41626. if (node._store) {
  41627. node._store.validated = true;
  41628. }
  41629. } else if (node) {
  41630. var iteratorFn = getIteratorFn(node);
  41631. if (typeof iteratorFn === 'function') {
  41632. // Entry iterators used to provide implicit keys,
  41633. // but now we print a separate warning for them later.
  41634. if (iteratorFn !== node.entries) {
  41635. var iterator = iteratorFn.call(node);
  41636. var step = void 0;
  41637. while (!(step = iterator.next()).done) {
  41638. if (isValidElement(step.value)) {
  41639. validateExplicitKey(step.value, parentType);
  41640. }
  41641. }
  41642. }
  41643. }
  41644. }
  41645. }
  41646. /**
  41647. * Given an element, validate that its props follow the propTypes definition,
  41648. * provided by the type.
  41649. *
  41650. * @param {ReactElement} element
  41651. */
  41652. function validatePropTypes(element) {
  41653. var type = element.type;
  41654. if (type === null || type === undefined || typeof type === 'string') {
  41655. return;
  41656. }
  41657. var name = getComponentName(type);
  41658. var propTypes = void 0;
  41659. if (typeof type === 'function') {
  41660. propTypes = type.propTypes;
  41661. } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE ||
  41662. // Note: Memo only checks outer props here.
  41663. // Inner props are checked in the reconciler.
  41664. type.$$typeof === REACT_MEMO_TYPE)) {
  41665. propTypes = type.propTypes;
  41666. } else {
  41667. return;
  41668. }
  41669. if (propTypes) {
  41670. setCurrentlyValidatingElement(element);
  41671. checkPropTypes(propTypes, element.props, 'prop', name, ReactDebugCurrentFrame.getStackAddendum);
  41672. setCurrentlyValidatingElement(null);
  41673. } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
  41674. propTypesMisspellWarningShown = true;
  41675. warningWithoutStack$1(false, 'Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', name || 'Unknown');
  41676. }
  41677. if (typeof type.getDefaultProps === 'function') {
  41678. !type.getDefaultProps.isReactClassApproved ? warningWithoutStack$1(false, 'getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.') : void 0;
  41679. }
  41680. }
  41681. /**
  41682. * Given a fragment, validate that it can only be provided with fragment props
  41683. * @param {ReactElement} fragment
  41684. */
  41685. function validateFragmentProps(fragment) {
  41686. setCurrentlyValidatingElement(fragment);
  41687. var keys = Object.keys(fragment.props);
  41688. for (var i = 0; i < keys.length; i++) {
  41689. var key = keys[i];
  41690. if (key !== 'children' && key !== 'key') {
  41691. warning$1(false, 'Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);
  41692. break;
  41693. }
  41694. }
  41695. if (fragment.ref !== null) {
  41696. warning$1(false, 'Invalid attribute `ref` supplied to `React.Fragment`.');
  41697. }
  41698. setCurrentlyValidatingElement(null);
  41699. }
  41700. function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
  41701. var validType = isValidElementType(type);
  41702. // We warn in this case but don't throw. We expect the element creation to
  41703. // succeed and there will likely be errors in render.
  41704. if (!validType) {
  41705. var info = '';
  41706. if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
  41707. info += ' You likely forgot to export your component from the file ' + "it's defined in, or you might have mixed up default and named imports.";
  41708. }
  41709. var sourceInfo = getSourceInfoErrorAddendum(source);
  41710. if (sourceInfo) {
  41711. info += sourceInfo;
  41712. } else {
  41713. info += getDeclarationErrorAddendum();
  41714. }
  41715. var typeString = void 0;
  41716. if (type === null) {
  41717. typeString = 'null';
  41718. } else if (Array.isArray(type)) {
  41719. typeString = 'array';
  41720. } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
  41721. typeString = '<' + (getComponentName(type.type) || 'Unknown') + ' />';
  41722. info = ' Did you accidentally export a JSX literal instead of a component?';
  41723. } else {
  41724. typeString = typeof type;
  41725. }
  41726. warning$1(false, 'React.jsx: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);
  41727. }
  41728. var element = jsxDEV(type, props, key, source, self);
  41729. // The result can be nullish if a mock or a custom function is used.
  41730. // TODO: Drop this when these are no longer allowed as the type argument.
  41731. if (element == null) {
  41732. return element;
  41733. }
  41734. // Skip key warning if the type isn't valid since our key validation logic
  41735. // doesn't expect a non-string/function type and can throw confusing errors.
  41736. // We don't want exception behavior to differ between dev and prod.
  41737. // (Rendering will throw with a helpful message and as soon as the type is
  41738. // fixed, the key warnings will appear.)
  41739. if (validType) {
  41740. var children = props.children;
  41741. if (children !== undefined) {
  41742. if (isStaticChildren) {
  41743. for (var i = 0; i < children.length; i++) {
  41744. validateChildKeys(children[i], type);
  41745. }
  41746. } else {
  41747. validateChildKeys(children, type);
  41748. }
  41749. }
  41750. }
  41751. if (props.key !== undefined) {
  41752. warning$1(false, 'React.jsx: Spreading a key to JSX is a deprecated pattern. ' + 'Explicitly pass a key after spreading props in your JSX call. ' + 'E.g. <ComponentName {...props} key={key} />');
  41753. }
  41754. if (type === REACT_FRAGMENT_TYPE) {
  41755. validateFragmentProps(element);
  41756. } else {
  41757. validatePropTypes(element);
  41758. }
  41759. return element;
  41760. }
  41761. // These two functions exist to still get child warnings in dev
  41762. // even with the prod transform. This means that jsxDEV is purely
  41763. // opt-in behavior for better messages but that we won't stop
  41764. // giving you warnings if you use production apis.
  41765. function jsxWithValidationStatic(type, props, key) {
  41766. return jsxWithValidation(type, props, key, true);
  41767. }
  41768. function jsxWithValidationDynamic(type, props, key) {
  41769. return jsxWithValidation(type, props, key, false);
  41770. }
  41771. function createElementWithValidation(type, props, children) {
  41772. var validType = isValidElementType(type);
  41773. // We warn in this case but don't throw. We expect the element creation to
  41774. // succeed and there will likely be errors in render.
  41775. if (!validType) {
  41776. var info = '';
  41777. if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
  41778. info += ' You likely forgot to export your component from the file ' + "it's defined in, or you might have mixed up default and named imports.";
  41779. }
  41780. var sourceInfo = getSourceInfoErrorAddendumForProps(props);
  41781. if (sourceInfo) {
  41782. info += sourceInfo;
  41783. } else {
  41784. info += getDeclarationErrorAddendum();
  41785. }
  41786. var typeString = void 0;
  41787. if (type === null) {
  41788. typeString = 'null';
  41789. } else if (Array.isArray(type)) {
  41790. typeString = 'array';
  41791. } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
  41792. typeString = '<' + (getComponentName(type.type) || 'Unknown') + ' />';
  41793. info = ' Did you accidentally export a JSX literal instead of a component?';
  41794. } else {
  41795. typeString = typeof type;
  41796. }
  41797. warning$1(false, 'React.createElement: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);
  41798. }
  41799. var element = createElement.apply(this, arguments);
  41800. // The result can be nullish if a mock or a custom function is used.
  41801. // TODO: Drop this when these are no longer allowed as the type argument.
  41802. if (element == null) {
  41803. return element;
  41804. }
  41805. // Skip key warning if the type isn't valid since our key validation logic
  41806. // doesn't expect a non-string/function type and can throw confusing errors.
  41807. // We don't want exception behavior to differ between dev and prod.
  41808. // (Rendering will throw with a helpful message and as soon as the type is
  41809. // fixed, the key warnings will appear.)
  41810. if (validType) {
  41811. for (var i = 2; i < arguments.length; i++) {
  41812. validateChildKeys(arguments[i], type);
  41813. }
  41814. }
  41815. if (type === REACT_FRAGMENT_TYPE) {
  41816. validateFragmentProps(element);
  41817. } else {
  41818. validatePropTypes(element);
  41819. }
  41820. return element;
  41821. }
  41822. function createFactoryWithValidation(type) {
  41823. var validatedFactory = createElementWithValidation.bind(null, type);
  41824. validatedFactory.type = type;
  41825. // Legacy hook: remove it
  41826. {
  41827. Object.defineProperty(validatedFactory, 'type', {
  41828. enumerable: false,
  41829. get: function () {
  41830. lowPriorityWarning$1(false, 'Factory.type is deprecated. Access the class directly ' + 'before passing it to createFactory.');
  41831. Object.defineProperty(this, 'type', {
  41832. value: type
  41833. });
  41834. return type;
  41835. }
  41836. });
  41837. }
  41838. return validatedFactory;
  41839. }
  41840. function cloneElementWithValidation(element, props, children) {
  41841. var newElement = cloneElement.apply(this, arguments);
  41842. for (var i = 2; i < arguments.length; i++) {
  41843. validateChildKeys(arguments[i], newElement.type);
  41844. }
  41845. validatePropTypes(newElement);
  41846. return newElement;
  41847. }
  41848. var hasBadMapPolyfill = void 0;
  41849. {
  41850. hasBadMapPolyfill = false;
  41851. try {
  41852. var frozenObject = Object.freeze({});
  41853. var testMap = new Map([[frozenObject, null]]);
  41854. var testSet = new Set([frozenObject]);
  41855. // This is necessary for Rollup to not consider these unused.
  41856. // https://github.com/rollup/rollup/issues/1771
  41857. // TODO: we can remove these if Rollup fixes the bug.
  41858. testMap.set(0, 0);
  41859. testSet.add(0);
  41860. } catch (e) {
  41861. // TODO: Consider warning about bad polyfills
  41862. hasBadMapPolyfill = true;
  41863. }
  41864. }
  41865. function createFundamentalComponent(impl) {
  41866. // We use responder as a Map key later on. When we have a bad
  41867. // polyfill, then we can't use it as a key as the polyfill tries
  41868. // to add a property to the object.
  41869. if ( true && !hasBadMapPolyfill) {
  41870. Object.freeze(impl);
  41871. }
  41872. var fundamantalComponent = {
  41873. $$typeof: REACT_FUNDAMENTAL_TYPE,
  41874. impl: impl
  41875. };
  41876. {
  41877. Object.freeze(fundamantalComponent);
  41878. }
  41879. return fundamantalComponent;
  41880. }
  41881. function createEventResponder(displayName, responderConfig) {
  41882. var getInitialState = responderConfig.getInitialState,
  41883. onEvent = responderConfig.onEvent,
  41884. onMount = responderConfig.onMount,
  41885. onUnmount = responderConfig.onUnmount,
  41886. onOwnershipChange = responderConfig.onOwnershipChange,
  41887. onRootEvent = responderConfig.onRootEvent,
  41888. rootEventTypes = responderConfig.rootEventTypes,
  41889. targetEventTypes = responderConfig.targetEventTypes;
  41890. var eventResponder = {
  41891. $$typeof: REACT_RESPONDER_TYPE,
  41892. displayName: displayName,
  41893. getInitialState: getInitialState || null,
  41894. onEvent: onEvent || null,
  41895. onMount: onMount || null,
  41896. onOwnershipChange: onOwnershipChange || null,
  41897. onRootEvent: onRootEvent || null,
  41898. onUnmount: onUnmount || null,
  41899. rootEventTypes: rootEventTypes || null,
  41900. targetEventTypes: targetEventTypes || null
  41901. };
  41902. // We use responder as a Map key later on. When we have a bad
  41903. // polyfill, then we can't use it as a key as the polyfill tries
  41904. // to add a property to the object.
  41905. if ( true && !hasBadMapPolyfill) {
  41906. Object.freeze(eventResponder);
  41907. }
  41908. return eventResponder;
  41909. }
  41910. // Helps identify side effects in begin-phase lifecycle hooks and setState reducers:
  41911. // In some cases, StrictMode should also double-render lifecycles.
  41912. // This can be confusing for tests though,
  41913. // And it can be bad for performance in production.
  41914. // This feature flag can be used to control the behavior:
  41915. // To preserve the "Pause on caught exceptions" behavior of the debugger, we
  41916. // replay the begin phase of a failed component inside invokeGuardedCallback.
  41917. // Warn about deprecated, async-unsafe lifecycles; relates to RFC #6:
  41918. // Gather advanced timing metrics for Profiler subtrees.
  41919. // Trace which interactions trigger each commit.
  41920. // Only used in www builds.
  41921. // TODO: true? Here it might just be false.
  41922. // Only used in www builds.
  41923. // Only used in www builds.
  41924. // Disable javascript: URL strings in href for XSS protection.
  41925. // React Fire: prevent the value and checked attributes from syncing
  41926. // with their related DOM properties
  41927. // These APIs will no longer be "unstable" in the upcoming 16.7 release,
  41928. // Control this behavior with a flag to support 16.6 minor releases in the meanwhile.
  41929. // See https://github.com/react-native-community/discussions-and-proposals/issues/72 for more information
  41930. // This is a flag so we can fix warnings in RN core before turning it on
  41931. // Experimental React Flare event system and event components support.
  41932. var enableFlareAPI = false;
  41933. // Experimental Host Component support.
  41934. var enableFundamentalAPI = false;
  41935. // New API for JSX transforms to target - https://github.com/reactjs/rfcs/pull/107
  41936. var enableJSXTransformAPI = false;
  41937. // We will enforce mocking scheduler with scheduler/unstable_mock at some point. (v17?)
  41938. // Till then, we warn about the missing mock, but still fallback to a sync mode compatible version
  41939. // Temporary flag to revert the fix in #15650
  41940. // For tests, we flush suspense fallbacks in an act scope;
  41941. // *except* in some of our own tests, where we test incremental loading states.
  41942. // Changes priority of some events like mousemove to user-blocking priority,
  41943. // but without making them discrete. The flag exists in case it causes
  41944. // starvation problems.
  41945. // Add a callback property to suspense to notify which promises are currently
  41946. // in the update queue. This allows reporting and tracing of what is causing
  41947. // the user to see a loading state.
  41948. // Part of the simplification of React.createElement so we can eventually move
  41949. // from React.createElement to React.jsx
  41950. // https://github.com/reactjs/rfcs/blob/createlement-rfc/text/0000-create-element-changes.md
  41951. var React = {
  41952. Children: {
  41953. map: mapChildren,
  41954. forEach: forEachChildren,
  41955. count: countChildren,
  41956. toArray: toArray,
  41957. only: onlyChild
  41958. },
  41959. createRef: createRef,
  41960. Component: Component,
  41961. PureComponent: PureComponent,
  41962. createContext: createContext,
  41963. forwardRef: forwardRef,
  41964. lazy: lazy,
  41965. memo: memo,
  41966. useCallback: useCallback,
  41967. useContext: useContext,
  41968. useEffect: useEffect,
  41969. useImperativeHandle: useImperativeHandle,
  41970. useDebugValue: useDebugValue,
  41971. useLayoutEffect: useLayoutEffect,
  41972. useMemo: useMemo,
  41973. useReducer: useReducer,
  41974. useRef: useRef,
  41975. useState: useState,
  41976. Fragment: REACT_FRAGMENT_TYPE,
  41977. Profiler: REACT_PROFILER_TYPE,
  41978. StrictMode: REACT_STRICT_MODE_TYPE,
  41979. Suspense: REACT_SUSPENSE_TYPE,
  41980. unstable_SuspenseList: REACT_SUSPENSE_LIST_TYPE,
  41981. createElement: createElementWithValidation,
  41982. cloneElement: cloneElementWithValidation,
  41983. createFactory: createFactoryWithValidation,
  41984. isValidElement: isValidElement,
  41985. version: ReactVersion,
  41986. unstable_withSuspenseConfig: withSuspenseConfig,
  41987. __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: ReactSharedInternals
  41988. };
  41989. if (enableFlareAPI) {
  41990. React.unstable_useResponder = useResponder;
  41991. React.unstable_createResponder = createEventResponder;
  41992. }
  41993. if (enableFundamentalAPI) {
  41994. React.unstable_createFundamental = createFundamentalComponent;
  41995. }
  41996. // Note: some APIs are added with feature flags.
  41997. // Make sure that stable builds for open source
  41998. // don't modify the React object to avoid deopts.
  41999. // Also let's not expose their names in stable builds.
  42000. if (enableJSXTransformAPI) {
  42001. {
  42002. React.jsxDEV = jsxWithValidation;
  42003. React.jsx = jsxWithValidationDynamic;
  42004. React.jsxs = jsxWithValidationStatic;
  42005. }
  42006. }
  42007. var React$2 = Object.freeze({
  42008. default: React
  42009. });
  42010. var React$3 = ( React$2 && React ) || React$2;
  42011. // TODO: decide on the top-level export form.
  42012. // This is hacky but makes it work with both Rollup and Jest.
  42013. var react = React$3.default || React$3;
  42014. module.exports = react;
  42015. })();
  42016. }
  42017. /***/ }),
  42018. /***/ "../../node_modules/react/index.js":
  42019. /*!*************************************************************!*\
  42020. !*** C:/Dev/Babylon/Babylon.js/node_modules/react/index.js ***!
  42021. \*************************************************************/
  42022. /*! no static exports found */
  42023. /***/ (function(module, exports, __webpack_require__) {
  42024. "use strict";
  42025. if (false) {} else {
  42026. module.exports = __webpack_require__(/*! ./cjs/react.development.js */ "../../node_modules/react/cjs/react.development.js");
  42027. }
  42028. /***/ }),
  42029. /***/ "../../node_modules/scheduler/cjs/scheduler-tracing.development.js":
  42030. /*!*********************************************************************************************!*\
  42031. !*** C:/Dev/Babylon/Babylon.js/node_modules/scheduler/cjs/scheduler-tracing.development.js ***!
  42032. \*********************************************************************************************/
  42033. /*! no static exports found */
  42034. /***/ (function(module, exports, __webpack_require__) {
  42035. "use strict";
  42036. /** @license React v0.15.0
  42037. * scheduler-tracing.development.js
  42038. *
  42039. * Copyright (c) Facebook, Inc. and its affiliates.
  42040. *
  42041. * This source code is licensed under the MIT license found in the
  42042. * LICENSE file in the root directory of this source tree.
  42043. */
  42044. if (true) {
  42045. (function() {
  42046. 'use strict';
  42047. Object.defineProperty(exports, '__esModule', { value: true });
  42048. // Helps identify side effects in begin-phase lifecycle hooks and setState reducers:
  42049. // In some cases, StrictMode should also double-render lifecycles.
  42050. // This can be confusing for tests though,
  42051. // And it can be bad for performance in production.
  42052. // This feature flag can be used to control the behavior:
  42053. // To preserve the "Pause on caught exceptions" behavior of the debugger, we
  42054. // replay the begin phase of a failed component inside invokeGuardedCallback.
  42055. // Warn about deprecated, async-unsafe lifecycles; relates to RFC #6:
  42056. // Gather advanced timing metrics for Profiler subtrees.
  42057. // Trace which interactions trigger each commit.
  42058. var enableSchedulerTracing = true;
  42059. // Only used in www builds.
  42060. // TODO: true? Here it might just be false.
  42061. // Only used in www builds.
  42062. // Only used in www builds.
  42063. // Disable javascript: URL strings in href for XSS protection.
  42064. // React Fire: prevent the value and checked attributes from syncing
  42065. // with their related DOM properties
  42066. // These APIs will no longer be "unstable" in the upcoming 16.7 release,
  42067. // Control this behavior with a flag to support 16.6 minor releases in the meanwhile.
  42068. // See https://github.com/react-native-community/discussions-and-proposals/issues/72 for more information
  42069. // This is a flag so we can fix warnings in RN core before turning it on
  42070. // Experimental React Flare event system and event components support.
  42071. // Experimental Host Component support.
  42072. // New API for JSX transforms to target - https://github.com/reactjs/rfcs/pull/107
  42073. // We will enforce mocking scheduler with scheduler/unstable_mock at some point. (v17?)
  42074. // Till then, we warn about the missing mock, but still fallback to a sync mode compatible version
  42075. // Temporary flag to revert the fix in #15650
  42076. // For tests, we flush suspense fallbacks in an act scope;
  42077. // *except* in some of our own tests, where we test incremental loading states.
  42078. // Changes priority of some events like mousemove to user-blocking priority,
  42079. // but without making them discrete. The flag exists in case it causes
  42080. // starvation problems.
  42081. // Add a callback property to suspense to notify which promises are currently
  42082. // in the update queue. This allows reporting and tracing of what is causing
  42083. // the user to see a loading state.
  42084. // Part of the simplification of React.createElement so we can eventually move
  42085. // from React.createElement to React.jsx
  42086. // https://github.com/reactjs/rfcs/blob/createlement-rfc/text/0000-create-element-changes.md
  42087. var DEFAULT_THREAD_ID = 0;
  42088. // Counters used to generate unique IDs.
  42089. var interactionIDCounter = 0;
  42090. var threadIDCounter = 0;
  42091. // Set of currently traced interactions.
  42092. // Interactions "stack"–
  42093. // Meaning that newly traced interactions are appended to the previously active set.
  42094. // When an interaction goes out of scope, the previous set (if any) is restored.
  42095. exports.__interactionsRef = null;
  42096. // Listener(s) to notify when interactions begin and end.
  42097. exports.__subscriberRef = null;
  42098. if (enableSchedulerTracing) {
  42099. exports.__interactionsRef = {
  42100. current: new Set()
  42101. };
  42102. exports.__subscriberRef = {
  42103. current: null
  42104. };
  42105. }
  42106. function unstable_clear(callback) {
  42107. if (!enableSchedulerTracing) {
  42108. return callback();
  42109. }
  42110. var prevInteractions = exports.__interactionsRef.current;
  42111. exports.__interactionsRef.current = new Set();
  42112. try {
  42113. return callback();
  42114. } finally {
  42115. exports.__interactionsRef.current = prevInteractions;
  42116. }
  42117. }
  42118. function unstable_getCurrent() {
  42119. if (!enableSchedulerTracing) {
  42120. return null;
  42121. } else {
  42122. return exports.__interactionsRef.current;
  42123. }
  42124. }
  42125. function unstable_getThreadID() {
  42126. return ++threadIDCounter;
  42127. }
  42128. function unstable_trace(name, timestamp, callback) {
  42129. var threadID = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : DEFAULT_THREAD_ID;
  42130. if (!enableSchedulerTracing) {
  42131. return callback();
  42132. }
  42133. var interaction = {
  42134. __count: 1,
  42135. id: interactionIDCounter++,
  42136. name: name,
  42137. timestamp: timestamp
  42138. };
  42139. var prevInteractions = exports.__interactionsRef.current;
  42140. // Traced interactions should stack/accumulate.
  42141. // To do that, clone the current interactions.
  42142. // The previous set will be restored upon completion.
  42143. var interactions = new Set(prevInteractions);
  42144. interactions.add(interaction);
  42145. exports.__interactionsRef.current = interactions;
  42146. var subscriber = exports.__subscriberRef.current;
  42147. var returnValue = void 0;
  42148. try {
  42149. if (subscriber !== null) {
  42150. subscriber.onInteractionTraced(interaction);
  42151. }
  42152. } finally {
  42153. try {
  42154. if (subscriber !== null) {
  42155. subscriber.onWorkStarted(interactions, threadID);
  42156. }
  42157. } finally {
  42158. try {
  42159. returnValue = callback();
  42160. } finally {
  42161. exports.__interactionsRef.current = prevInteractions;
  42162. try {
  42163. if (subscriber !== null) {
  42164. subscriber.onWorkStopped(interactions, threadID);
  42165. }
  42166. } finally {
  42167. interaction.__count--;
  42168. // If no async work was scheduled for this interaction,
  42169. // Notify subscribers that it's completed.
  42170. if (subscriber !== null && interaction.__count === 0) {
  42171. subscriber.onInteractionScheduledWorkCompleted(interaction);
  42172. }
  42173. }
  42174. }
  42175. }
  42176. }
  42177. return returnValue;
  42178. }
  42179. function unstable_wrap(callback) {
  42180. var threadID = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : DEFAULT_THREAD_ID;
  42181. if (!enableSchedulerTracing) {
  42182. return callback;
  42183. }
  42184. var wrappedInteractions = exports.__interactionsRef.current;
  42185. var subscriber = exports.__subscriberRef.current;
  42186. if (subscriber !== null) {
  42187. subscriber.onWorkScheduled(wrappedInteractions, threadID);
  42188. }
  42189. // Update the pending async work count for the current interactions.
  42190. // Update after calling subscribers in case of error.
  42191. wrappedInteractions.forEach(function (interaction) {
  42192. interaction.__count++;
  42193. });
  42194. var hasRun = false;
  42195. function wrapped() {
  42196. var prevInteractions = exports.__interactionsRef.current;
  42197. exports.__interactionsRef.current = wrappedInteractions;
  42198. subscriber = exports.__subscriberRef.current;
  42199. try {
  42200. var returnValue = void 0;
  42201. try {
  42202. if (subscriber !== null) {
  42203. subscriber.onWorkStarted(wrappedInteractions, threadID);
  42204. }
  42205. } finally {
  42206. try {
  42207. returnValue = callback.apply(undefined, arguments);
  42208. } finally {
  42209. exports.__interactionsRef.current = prevInteractions;
  42210. if (subscriber !== null) {
  42211. subscriber.onWorkStopped(wrappedInteractions, threadID);
  42212. }
  42213. }
  42214. }
  42215. return returnValue;
  42216. } finally {
  42217. if (!hasRun) {
  42218. // We only expect a wrapped function to be executed once,
  42219. // But in the event that it's executed more than once–
  42220. // Only decrement the outstanding interaction counts once.
  42221. hasRun = true;
  42222. // Update pending async counts for all wrapped interactions.
  42223. // If this was the last scheduled async work for any of them,
  42224. // Mark them as completed.
  42225. wrappedInteractions.forEach(function (interaction) {
  42226. interaction.__count--;
  42227. if (subscriber !== null && interaction.__count === 0) {
  42228. subscriber.onInteractionScheduledWorkCompleted(interaction);
  42229. }
  42230. });
  42231. }
  42232. }
  42233. }
  42234. wrapped.cancel = function cancel() {
  42235. subscriber = exports.__subscriberRef.current;
  42236. try {
  42237. if (subscriber !== null) {
  42238. subscriber.onWorkCanceled(wrappedInteractions, threadID);
  42239. }
  42240. } finally {
  42241. // Update pending async counts for all wrapped interactions.
  42242. // If this was the last scheduled async work for any of them,
  42243. // Mark them as completed.
  42244. wrappedInteractions.forEach(function (interaction) {
  42245. interaction.__count--;
  42246. if (subscriber && interaction.__count === 0) {
  42247. subscriber.onInteractionScheduledWorkCompleted(interaction);
  42248. }
  42249. });
  42250. }
  42251. };
  42252. return wrapped;
  42253. }
  42254. var subscribers = null;
  42255. if (enableSchedulerTracing) {
  42256. subscribers = new Set();
  42257. }
  42258. function unstable_subscribe(subscriber) {
  42259. if (enableSchedulerTracing) {
  42260. subscribers.add(subscriber);
  42261. if (subscribers.size === 1) {
  42262. exports.__subscriberRef.current = {
  42263. onInteractionScheduledWorkCompleted: onInteractionScheduledWorkCompleted,
  42264. onInteractionTraced: onInteractionTraced,
  42265. onWorkCanceled: onWorkCanceled,
  42266. onWorkScheduled: onWorkScheduled,
  42267. onWorkStarted: onWorkStarted,
  42268. onWorkStopped: onWorkStopped
  42269. };
  42270. }
  42271. }
  42272. }
  42273. function unstable_unsubscribe(subscriber) {
  42274. if (enableSchedulerTracing) {
  42275. subscribers.delete(subscriber);
  42276. if (subscribers.size === 0) {
  42277. exports.__subscriberRef.current = null;
  42278. }
  42279. }
  42280. }
  42281. function onInteractionTraced(interaction) {
  42282. var didCatchError = false;
  42283. var caughtError = null;
  42284. subscribers.forEach(function (subscriber) {
  42285. try {
  42286. subscriber.onInteractionTraced(interaction);
  42287. } catch (error) {
  42288. if (!didCatchError) {
  42289. didCatchError = true;
  42290. caughtError = error;
  42291. }
  42292. }
  42293. });
  42294. if (didCatchError) {
  42295. throw caughtError;
  42296. }
  42297. }
  42298. function onInteractionScheduledWorkCompleted(interaction) {
  42299. var didCatchError = false;
  42300. var caughtError = null;
  42301. subscribers.forEach(function (subscriber) {
  42302. try {
  42303. subscriber.onInteractionScheduledWorkCompleted(interaction);
  42304. } catch (error) {
  42305. if (!didCatchError) {
  42306. didCatchError = true;
  42307. caughtError = error;
  42308. }
  42309. }
  42310. });
  42311. if (didCatchError) {
  42312. throw caughtError;
  42313. }
  42314. }
  42315. function onWorkScheduled(interactions, threadID) {
  42316. var didCatchError = false;
  42317. var caughtError = null;
  42318. subscribers.forEach(function (subscriber) {
  42319. try {
  42320. subscriber.onWorkScheduled(interactions, threadID);
  42321. } catch (error) {
  42322. if (!didCatchError) {
  42323. didCatchError = true;
  42324. caughtError = error;
  42325. }
  42326. }
  42327. });
  42328. if (didCatchError) {
  42329. throw caughtError;
  42330. }
  42331. }
  42332. function onWorkStarted(interactions, threadID) {
  42333. var didCatchError = false;
  42334. var caughtError = null;
  42335. subscribers.forEach(function (subscriber) {
  42336. try {
  42337. subscriber.onWorkStarted(interactions, threadID);
  42338. } catch (error) {
  42339. if (!didCatchError) {
  42340. didCatchError = true;
  42341. caughtError = error;
  42342. }
  42343. }
  42344. });
  42345. if (didCatchError) {
  42346. throw caughtError;
  42347. }
  42348. }
  42349. function onWorkStopped(interactions, threadID) {
  42350. var didCatchError = false;
  42351. var caughtError = null;
  42352. subscribers.forEach(function (subscriber) {
  42353. try {
  42354. subscriber.onWorkStopped(interactions, threadID);
  42355. } catch (error) {
  42356. if (!didCatchError) {
  42357. didCatchError = true;
  42358. caughtError = error;
  42359. }
  42360. }
  42361. });
  42362. if (didCatchError) {
  42363. throw caughtError;
  42364. }
  42365. }
  42366. function onWorkCanceled(interactions, threadID) {
  42367. var didCatchError = false;
  42368. var caughtError = null;
  42369. subscribers.forEach(function (subscriber) {
  42370. try {
  42371. subscriber.onWorkCanceled(interactions, threadID);
  42372. } catch (error) {
  42373. if (!didCatchError) {
  42374. didCatchError = true;
  42375. caughtError = error;
  42376. }
  42377. }
  42378. });
  42379. if (didCatchError) {
  42380. throw caughtError;
  42381. }
  42382. }
  42383. exports.unstable_clear = unstable_clear;
  42384. exports.unstable_getCurrent = unstable_getCurrent;
  42385. exports.unstable_getThreadID = unstable_getThreadID;
  42386. exports.unstable_trace = unstable_trace;
  42387. exports.unstable_wrap = unstable_wrap;
  42388. exports.unstable_subscribe = unstable_subscribe;
  42389. exports.unstable_unsubscribe = unstable_unsubscribe;
  42390. })();
  42391. }
  42392. /***/ }),
  42393. /***/ "../../node_modules/scheduler/cjs/scheduler.development.js":
  42394. /*!*************************************************************************************!*\
  42395. !*** C:/Dev/Babylon/Babylon.js/node_modules/scheduler/cjs/scheduler.development.js ***!
  42396. \*************************************************************************************/
  42397. /*! no static exports found */
  42398. /***/ (function(module, exports, __webpack_require__) {
  42399. "use strict";
  42400. /** @license React v0.15.0
  42401. * scheduler.development.js
  42402. *
  42403. * Copyright (c) Facebook, Inc. and its affiliates.
  42404. *
  42405. * This source code is licensed under the MIT license found in the
  42406. * LICENSE file in the root directory of this source tree.
  42407. */
  42408. if (true) {
  42409. (function() {
  42410. 'use strict';
  42411. Object.defineProperty(exports, '__esModule', { value: true });
  42412. var enableSchedulerDebugging = false;
  42413. var enableIsInputPending = false;
  42414. var requestIdleCallbackBeforeFirstFrame = false;
  42415. var requestTimerEventBeforeFirstFrame = false;
  42416. var enableMessageLoopImplementation = false;
  42417. // The DOM Scheduler implementation is similar to requestIdleCallback. It
  42418. // works by scheduling a requestAnimationFrame, storing the time for the start
  42419. // of the frame, then scheduling a postMessage which gets scheduled after paint.
  42420. // Within the postMessage handler do as much work as possible until time + frame
  42421. // rate. By separating the idle call into a separate event tick we ensure that
  42422. // layout, paint and other browser work is counted against the available time.
  42423. // The frame rate is dynamically adjusted.
  42424. var requestHostCallback = void 0;
  42425. var requestHostTimeout = void 0;
  42426. var cancelHostTimeout = void 0;
  42427. var shouldYieldToHost = void 0;
  42428. var requestPaint = void 0;
  42429. exports.unstable_now = void 0;
  42430. exports.unstable_forceFrameRate = void 0;
  42431. if (
  42432. // If Scheduler runs in a non-DOM environment, it falls back to a naive
  42433. // implementation using setTimeout.
  42434. typeof window === 'undefined' ||
  42435. // Check if MessageChannel is supported, too.
  42436. typeof MessageChannel !== 'function') {
  42437. // If this accidentally gets imported in a non-browser environment, e.g. JavaScriptCore,
  42438. // fallback to a naive implementation.
  42439. var _callback = null;
  42440. var _timeoutID = null;
  42441. var _flushCallback = function () {
  42442. if (_callback !== null) {
  42443. try {
  42444. var currentTime = exports.unstable_now();
  42445. var hasRemainingTime = true;
  42446. _callback(hasRemainingTime, currentTime);
  42447. _callback = null;
  42448. } catch (e) {
  42449. setTimeout(_flushCallback, 0);
  42450. throw e;
  42451. }
  42452. }
  42453. };
  42454. exports.unstable_now = function () {
  42455. return Date.now();
  42456. };
  42457. requestHostCallback = function (cb) {
  42458. if (_callback !== null) {
  42459. // Protect against re-entrancy.
  42460. setTimeout(requestHostCallback, 0, cb);
  42461. } else {
  42462. _callback = cb;
  42463. setTimeout(_flushCallback, 0);
  42464. }
  42465. };
  42466. requestHostTimeout = function (cb, ms) {
  42467. _timeoutID = setTimeout(cb, ms);
  42468. };
  42469. cancelHostTimeout = function () {
  42470. clearTimeout(_timeoutID);
  42471. };
  42472. shouldYieldToHost = function () {
  42473. return false;
  42474. };
  42475. requestPaint = exports.unstable_forceFrameRate = function () {};
  42476. } else {
  42477. // Capture local references to native APIs, in case a polyfill overrides them.
  42478. var performance = window.performance;
  42479. var _Date = window.Date;
  42480. var _setTimeout = window.setTimeout;
  42481. var _clearTimeout = window.clearTimeout;
  42482. var requestAnimationFrame = window.requestAnimationFrame;
  42483. var cancelAnimationFrame = window.cancelAnimationFrame;
  42484. var requestIdleCallback = window.requestIdleCallback;
  42485. if (typeof console !== 'undefined') {
  42486. // TODO: Remove fb.me link
  42487. if (typeof requestAnimationFrame !== 'function') {
  42488. console.error("This browser doesn't support requestAnimationFrame. " + 'Make sure that you load a ' + 'polyfill in older browsers. https://fb.me/react-polyfills');
  42489. }
  42490. if (typeof cancelAnimationFrame !== 'function') {
  42491. console.error("This browser doesn't support cancelAnimationFrame. " + 'Make sure that you load a ' + 'polyfill in older browsers. https://fb.me/react-polyfills');
  42492. }
  42493. }
  42494. var requestIdleCallbackBeforeFirstFrame$1 = requestIdleCallbackBeforeFirstFrame && typeof requestIdleCallback === 'function' && typeof cancelIdleCallback === 'function';
  42495. exports.unstable_now = typeof performance === 'object' && typeof performance.now === 'function' ? function () {
  42496. return performance.now();
  42497. } : function () {
  42498. return _Date.now();
  42499. };
  42500. var isRAFLoopRunning = false;
  42501. var isMessageLoopRunning = false;
  42502. var scheduledHostCallback = null;
  42503. var rAFTimeoutID = -1;
  42504. var taskTimeoutID = -1;
  42505. var frameLength = enableMessageLoopImplementation ? // We won't attempt to align with the vsync. Instead we'll yield multiple
  42506. // times per frame, often enough to keep it responsive even at really
  42507. // high frame rates > 120.
  42508. 5 : // Use a heuristic to measure the frame rate and yield at the end of the
  42509. // frame. We start out assuming that we run at 30fps but then the
  42510. // heuristic tracking will adjust this value to a faster fps if we get
  42511. // more frequent animation frames.
  42512. 33.33;
  42513. var prevRAFTime = -1;
  42514. var prevRAFInterval = -1;
  42515. var frameDeadline = 0;
  42516. var fpsLocked = false;
  42517. // TODO: Make this configurable
  42518. // TODO: Adjust this based on priority?
  42519. var maxFrameLength = 300;
  42520. var needsPaint = false;
  42521. if (enableIsInputPending && navigator !== undefined && navigator.scheduling !== undefined && navigator.scheduling.isInputPending !== undefined) {
  42522. var scheduling = navigator.scheduling;
  42523. shouldYieldToHost = function () {
  42524. var currentTime = exports.unstable_now();
  42525. if (currentTime >= frameDeadline) {
  42526. // There's no time left in the frame. We may want to yield control of
  42527. // the main thread, so the browser can perform high priority tasks. The
  42528. // main ones are painting and user input. If there's a pending paint or
  42529. // a pending input, then we should yield. But if there's neither, then
  42530. // we can yield less often while remaining responsive. We'll eventually
  42531. // yield regardless, since there could be a pending paint that wasn't
  42532. // accompanied by a call to `requestPaint`, or other main thread tasks
  42533. // like network events.
  42534. if (needsPaint || scheduling.isInputPending()) {
  42535. // There is either a pending paint or a pending input.
  42536. return true;
  42537. }
  42538. // There's no pending input. Only yield if we've reached the max
  42539. // frame length.
  42540. return currentTime >= frameDeadline + maxFrameLength;
  42541. } else {
  42542. // There's still time left in the frame.
  42543. return false;
  42544. }
  42545. };
  42546. requestPaint = function () {
  42547. needsPaint = true;
  42548. };
  42549. } else {
  42550. // `isInputPending` is not available. Since we have no way of knowing if
  42551. // there's pending input, always yield at the end of the frame.
  42552. shouldYieldToHost = function () {
  42553. return exports.unstable_now() >= frameDeadline;
  42554. };
  42555. // Since we yield every frame regardless, `requestPaint` has no effect.
  42556. requestPaint = function () {};
  42557. }
  42558. exports.unstable_forceFrameRate = function (fps) {
  42559. if (fps < 0 || fps > 125) {
  42560. console.error('forceFrameRate takes a positive int between 0 and 125, ' + 'forcing framerates higher than 125 fps is not unsupported');
  42561. return;
  42562. }
  42563. if (fps > 0) {
  42564. frameLength = Math.floor(1000 / fps);
  42565. fpsLocked = true;
  42566. } else {
  42567. // reset the framerate
  42568. frameLength = 33.33;
  42569. fpsLocked = false;
  42570. }
  42571. };
  42572. var performWorkUntilDeadline = function () {
  42573. if (enableMessageLoopImplementation) {
  42574. if (scheduledHostCallback !== null) {
  42575. var currentTime = exports.unstable_now();
  42576. // Yield after `frameLength` ms, regardless of where we are in the vsync
  42577. // cycle. This means there's always time remaining at the beginning of
  42578. // the message event.
  42579. frameDeadline = currentTime + frameLength;
  42580. var hasTimeRemaining = true;
  42581. try {
  42582. var hasMoreWork = scheduledHostCallback(hasTimeRemaining, currentTime);
  42583. if (!hasMoreWork) {
  42584. isMessageLoopRunning = false;
  42585. scheduledHostCallback = null;
  42586. } else {
  42587. // If there's more work, schedule the next message event at the end
  42588. // of the preceding one.
  42589. port.postMessage(null);
  42590. }
  42591. } catch (error) {
  42592. // If a scheduler task throws, exit the current browser task so the
  42593. // error can be observed.
  42594. port.postMessage(null);
  42595. throw error;
  42596. }
  42597. }
  42598. // Yielding to the browser will give it a chance to paint, so we can
  42599. // reset this.
  42600. needsPaint = false;
  42601. } else {
  42602. if (scheduledHostCallback !== null) {
  42603. var _currentTime = exports.unstable_now();
  42604. var _hasTimeRemaining = frameDeadline - _currentTime > 0;
  42605. try {
  42606. var _hasMoreWork = scheduledHostCallback(_hasTimeRemaining, _currentTime);
  42607. if (!_hasMoreWork) {
  42608. scheduledHostCallback = null;
  42609. }
  42610. } catch (error) {
  42611. // If a scheduler task throws, exit the current browser task so the
  42612. // error can be observed, and post a new task as soon as possible
  42613. // so we can continue where we left off.
  42614. port.postMessage(null);
  42615. throw error;
  42616. }
  42617. }
  42618. // Yielding to the browser will give it a chance to paint, so we can
  42619. // reset this.
  42620. needsPaint = false;
  42621. }
  42622. };
  42623. var channel = new MessageChannel();
  42624. var port = channel.port2;
  42625. channel.port1.onmessage = performWorkUntilDeadline;
  42626. var onAnimationFrame = function (rAFTime) {
  42627. if (scheduledHostCallback === null) {
  42628. // No scheduled work. Exit.
  42629. prevRAFTime = -1;
  42630. prevRAFInterval = -1;
  42631. isRAFLoopRunning = false;
  42632. return;
  42633. }
  42634. // Eagerly schedule the next animation callback at the beginning of the
  42635. // frame. If the scheduler queue is not empty at the end of the frame, it
  42636. // will continue flushing inside that callback. If the queue *is* empty,
  42637. // then it will exit immediately. Posting the callback at the start of the
  42638. // frame ensures it's fired within the earliest possible frame. If we
  42639. // waited until the end of the frame to post the callback, we risk the
  42640. // browser skipping a frame and not firing the callback until the frame
  42641. // after that.
  42642. isRAFLoopRunning = true;
  42643. requestAnimationFrame(function (nextRAFTime) {
  42644. _clearTimeout(rAFTimeoutID);
  42645. onAnimationFrame(nextRAFTime);
  42646. });
  42647. // requestAnimationFrame is throttled when the tab is backgrounded. We
  42648. // don't want to stop working entirely. So we'll fallback to a timeout loop.
  42649. // TODO: Need a better heuristic for backgrounded work.
  42650. var onTimeout = function () {
  42651. frameDeadline = exports.unstable_now() + frameLength / 2;
  42652. performWorkUntilDeadline();
  42653. rAFTimeoutID = _setTimeout(onTimeout, frameLength * 3);
  42654. };
  42655. rAFTimeoutID = _setTimeout(onTimeout, frameLength * 3);
  42656. if (prevRAFTime !== -1 &&
  42657. // Make sure this rAF time is different from the previous one. This check
  42658. // could fail if two rAFs fire in the same frame.
  42659. rAFTime - prevRAFTime > 0.1) {
  42660. var rAFInterval = rAFTime - prevRAFTime;
  42661. if (!fpsLocked && prevRAFInterval !== -1) {
  42662. // We've observed two consecutive frame intervals. We'll use this to
  42663. // dynamically adjust the frame rate.
  42664. //
  42665. // If one frame goes long, then the next one can be short to catch up.
  42666. // If two frames are short in a row, then that's an indication that we
  42667. // actually have a higher frame rate than what we're currently
  42668. // optimizing. For example, if we're running on 120hz display or 90hz VR
  42669. // display. Take the max of the two in case one of them was an anomaly
  42670. // due to missed frame deadlines.
  42671. if (rAFInterval < frameLength && prevRAFInterval < frameLength) {
  42672. frameLength = rAFInterval < prevRAFInterval ? prevRAFInterval : rAFInterval;
  42673. if (frameLength < 8.33) {
  42674. // Defensive coding. We don't support higher frame rates than 120hz.
  42675. // If the calculated frame length gets lower than 8, it is probably
  42676. // a bug.
  42677. frameLength = 8.33;
  42678. }
  42679. }
  42680. }
  42681. prevRAFInterval = rAFInterval;
  42682. }
  42683. prevRAFTime = rAFTime;
  42684. frameDeadline = rAFTime + frameLength;
  42685. // We use the postMessage trick to defer idle work until after the repaint.
  42686. port.postMessage(null);
  42687. };
  42688. requestHostCallback = function (callback) {
  42689. scheduledHostCallback = callback;
  42690. if (enableMessageLoopImplementation) {
  42691. if (!isMessageLoopRunning) {
  42692. isMessageLoopRunning = true;
  42693. port.postMessage(null);
  42694. }
  42695. } else {
  42696. if (!isRAFLoopRunning) {
  42697. // Start a rAF loop.
  42698. isRAFLoopRunning = true;
  42699. requestAnimationFrame(function (rAFTime) {
  42700. if (requestIdleCallbackBeforeFirstFrame$1) {
  42701. cancelIdleCallback(idleCallbackID);
  42702. }
  42703. if (requestTimerEventBeforeFirstFrame) {
  42704. _clearTimeout(idleTimeoutID);
  42705. }
  42706. onAnimationFrame(rAFTime);
  42707. });
  42708. // If we just missed the last vsync, the next rAF might not happen for
  42709. // another frame. To claim as much idle time as possible, post a
  42710. // callback with `requestIdleCallback`, which should fire if there's
  42711. // idle time left in the frame.
  42712. //
  42713. // This should only be an issue for the first rAF in the loop;
  42714. // subsequent rAFs are scheduled at the beginning of the
  42715. // preceding frame.
  42716. var idleCallbackID = void 0;
  42717. if (requestIdleCallbackBeforeFirstFrame$1) {
  42718. idleCallbackID = requestIdleCallback(function onIdleCallbackBeforeFirstFrame() {
  42719. if (requestTimerEventBeforeFirstFrame) {
  42720. _clearTimeout(idleTimeoutID);
  42721. }
  42722. frameDeadline = exports.unstable_now() + frameLength;
  42723. performWorkUntilDeadline();
  42724. });
  42725. }
  42726. // Alternate strategy to address the same problem. Scheduler a timer
  42727. // with no delay. If this fires before the rAF, that likely indicates
  42728. // that there's idle time before the next vsync. This isn't always the
  42729. // case, but we'll be aggressive and assume it is, as a trade off to
  42730. // prevent idle periods.
  42731. var idleTimeoutID = void 0;
  42732. if (requestTimerEventBeforeFirstFrame) {
  42733. idleTimeoutID = _setTimeout(function onTimerEventBeforeFirstFrame() {
  42734. if (requestIdleCallbackBeforeFirstFrame$1) {
  42735. cancelIdleCallback(idleCallbackID);
  42736. }
  42737. frameDeadline = exports.unstable_now() + frameLength;
  42738. performWorkUntilDeadline();
  42739. }, 0);
  42740. }
  42741. }
  42742. }
  42743. };
  42744. requestHostTimeout = function (callback, ms) {
  42745. taskTimeoutID = _setTimeout(function () {
  42746. callback(exports.unstable_now());
  42747. }, ms);
  42748. };
  42749. cancelHostTimeout = function () {
  42750. _clearTimeout(taskTimeoutID);
  42751. taskTimeoutID = -1;
  42752. };
  42753. }
  42754. /* eslint-disable no-var */
  42755. // TODO: Use symbols?
  42756. var ImmediatePriority = 1;
  42757. var UserBlockingPriority = 2;
  42758. var NormalPriority = 3;
  42759. var LowPriority = 4;
  42760. var IdlePriority = 5;
  42761. // Max 31 bit integer. The max integer size in V8 for 32-bit systems.
  42762. // Math.pow(2, 30) - 1
  42763. // 0b111111111111111111111111111111
  42764. var maxSigned31BitInt = 1073741823;
  42765. // Times out immediately
  42766. var IMMEDIATE_PRIORITY_TIMEOUT = -1;
  42767. // Eventually times out
  42768. var USER_BLOCKING_PRIORITY = 250;
  42769. var NORMAL_PRIORITY_TIMEOUT = 5000;
  42770. var LOW_PRIORITY_TIMEOUT = 10000;
  42771. // Never times out
  42772. var IDLE_PRIORITY = maxSigned31BitInt;
  42773. // Tasks are stored as a circular, doubly linked list.
  42774. var firstTask = null;
  42775. var firstDelayedTask = null;
  42776. // Pausing the scheduler is useful for debugging.
  42777. var isSchedulerPaused = false;
  42778. var currentTask = null;
  42779. var currentPriorityLevel = NormalPriority;
  42780. // This is set while performing work, to prevent re-entrancy.
  42781. var isPerformingWork = false;
  42782. var isHostCallbackScheduled = false;
  42783. var isHostTimeoutScheduled = false;
  42784. function scheduler_flushTaskAtPriority_Immediate(callback, didTimeout) {
  42785. return callback(didTimeout);
  42786. }
  42787. function scheduler_flushTaskAtPriority_UserBlocking(callback, didTimeout) {
  42788. return callback(didTimeout);
  42789. }
  42790. function scheduler_flushTaskAtPriority_Normal(callback, didTimeout) {
  42791. return callback(didTimeout);
  42792. }
  42793. function scheduler_flushTaskAtPriority_Low(callback, didTimeout) {
  42794. return callback(didTimeout);
  42795. }
  42796. function scheduler_flushTaskAtPriority_Idle(callback, didTimeout) {
  42797. return callback(didTimeout);
  42798. }
  42799. function flushTask(task, currentTime) {
  42800. // Remove the task from the list before calling the callback. That way the
  42801. // list is in a consistent state even if the callback throws.
  42802. var next = task.next;
  42803. if (next === task) {
  42804. // This is the only scheduled task. Clear the list.
  42805. firstTask = null;
  42806. } else {
  42807. // Remove the task from its position in the list.
  42808. if (task === firstTask) {
  42809. firstTask = next;
  42810. }
  42811. var previous = task.previous;
  42812. previous.next = next;
  42813. next.previous = previous;
  42814. }
  42815. task.next = task.previous = null;
  42816. // Now it's safe to execute the task.
  42817. var callback = task.callback;
  42818. var previousPriorityLevel = currentPriorityLevel;
  42819. var previousTask = currentTask;
  42820. currentPriorityLevel = task.priorityLevel;
  42821. currentTask = task;
  42822. var continuationCallback;
  42823. try {
  42824. var didUserCallbackTimeout = task.expirationTime <= currentTime;
  42825. // Add an extra function to the callstack. Profiling tools can use this
  42826. // to infer the priority of work that appears higher in the stack.
  42827. switch (currentPriorityLevel) {
  42828. case ImmediatePriority:
  42829. continuationCallback = scheduler_flushTaskAtPriority_Immediate(callback, didUserCallbackTimeout);
  42830. break;
  42831. case UserBlockingPriority:
  42832. continuationCallback = scheduler_flushTaskAtPriority_UserBlocking(callback, didUserCallbackTimeout);
  42833. break;
  42834. case NormalPriority:
  42835. continuationCallback = scheduler_flushTaskAtPriority_Normal(callback, didUserCallbackTimeout);
  42836. break;
  42837. case LowPriority:
  42838. continuationCallback = scheduler_flushTaskAtPriority_Low(callback, didUserCallbackTimeout);
  42839. break;
  42840. case IdlePriority:
  42841. continuationCallback = scheduler_flushTaskAtPriority_Idle(callback, didUserCallbackTimeout);
  42842. break;
  42843. }
  42844. } catch (error) {
  42845. throw error;
  42846. } finally {
  42847. currentPriorityLevel = previousPriorityLevel;
  42848. currentTask = previousTask;
  42849. }
  42850. // A callback may return a continuation. The continuation should be scheduled
  42851. // with the same priority and expiration as the just-finished callback.
  42852. if (typeof continuationCallback === 'function') {
  42853. var expirationTime = task.expirationTime;
  42854. var continuationTask = task;
  42855. continuationTask.callback = continuationCallback;
  42856. // Insert the new callback into the list, sorted by its timeout. This is
  42857. // almost the same as the code in `scheduleCallback`, except the callback
  42858. // is inserted into the list *before* callbacks of equal timeout instead
  42859. // of after.
  42860. if (firstTask === null) {
  42861. // This is the first callback in the list.
  42862. firstTask = continuationTask.next = continuationTask.previous = continuationTask;
  42863. } else {
  42864. var nextAfterContinuation = null;
  42865. var t = firstTask;
  42866. do {
  42867. if (expirationTime <= t.expirationTime) {
  42868. // This task times out at or after the continuation. We will insert
  42869. // the continuation *before* this task.
  42870. nextAfterContinuation = t;
  42871. break;
  42872. }
  42873. t = t.next;
  42874. } while (t !== firstTask);
  42875. if (nextAfterContinuation === null) {
  42876. // No equal or lower priority task was found, which means the new task
  42877. // is the lowest priority task in the list.
  42878. nextAfterContinuation = firstTask;
  42879. } else if (nextAfterContinuation === firstTask) {
  42880. // The new task is the highest priority task in the list.
  42881. firstTask = continuationTask;
  42882. }
  42883. var _previous = nextAfterContinuation.previous;
  42884. _previous.next = nextAfterContinuation.previous = continuationTask;
  42885. continuationTask.next = nextAfterContinuation;
  42886. continuationTask.previous = _previous;
  42887. }
  42888. }
  42889. }
  42890. function advanceTimers(currentTime) {
  42891. // Check for tasks that are no longer delayed and add them to the queue.
  42892. if (firstDelayedTask !== null && firstDelayedTask.startTime <= currentTime) {
  42893. do {
  42894. var task = firstDelayedTask;
  42895. var next = task.next;
  42896. if (task === next) {
  42897. firstDelayedTask = null;
  42898. } else {
  42899. firstDelayedTask = next;
  42900. var previous = task.previous;
  42901. previous.next = next;
  42902. next.previous = previous;
  42903. }
  42904. task.next = task.previous = null;
  42905. insertScheduledTask(task, task.expirationTime);
  42906. } while (firstDelayedTask !== null && firstDelayedTask.startTime <= currentTime);
  42907. }
  42908. }
  42909. function handleTimeout(currentTime) {
  42910. isHostTimeoutScheduled = false;
  42911. advanceTimers(currentTime);
  42912. if (!isHostCallbackScheduled) {
  42913. if (firstTask !== null) {
  42914. isHostCallbackScheduled = true;
  42915. requestHostCallback(flushWork);
  42916. } else if (firstDelayedTask !== null) {
  42917. requestHostTimeout(handleTimeout, firstDelayedTask.startTime - currentTime);
  42918. }
  42919. }
  42920. }
  42921. function flushWork(hasTimeRemaining, initialTime) {
  42922. // Exit right away if we're currently paused
  42923. if (enableSchedulerDebugging && isSchedulerPaused) {
  42924. return;
  42925. }
  42926. // We'll need a host callback the next time work is scheduled.
  42927. isHostCallbackScheduled = false;
  42928. if (isHostTimeoutScheduled) {
  42929. // We scheduled a timeout but it's no longer needed. Cancel it.
  42930. isHostTimeoutScheduled = false;
  42931. cancelHostTimeout();
  42932. }
  42933. var currentTime = initialTime;
  42934. advanceTimers(currentTime);
  42935. isPerformingWork = true;
  42936. try {
  42937. if (!hasTimeRemaining) {
  42938. // Flush all the expired callbacks without yielding.
  42939. // TODO: Split flushWork into two separate functions instead of using
  42940. // a boolean argument?
  42941. while (firstTask !== null && firstTask.expirationTime <= currentTime && !(enableSchedulerDebugging && isSchedulerPaused)) {
  42942. flushTask(firstTask, currentTime);
  42943. currentTime = exports.unstable_now();
  42944. advanceTimers(currentTime);
  42945. }
  42946. } else {
  42947. // Keep flushing callbacks until we run out of time in the frame.
  42948. if (firstTask !== null) {
  42949. do {
  42950. flushTask(firstTask, currentTime);
  42951. currentTime = exports.unstable_now();
  42952. advanceTimers(currentTime);
  42953. } while (firstTask !== null && !shouldYieldToHost() && !(enableSchedulerDebugging && isSchedulerPaused));
  42954. }
  42955. }
  42956. // Return whether there's additional work
  42957. if (firstTask !== null) {
  42958. return true;
  42959. } else {
  42960. if (firstDelayedTask !== null) {
  42961. requestHostTimeout(handleTimeout, firstDelayedTask.startTime - currentTime);
  42962. }
  42963. return false;
  42964. }
  42965. } finally {
  42966. isPerformingWork = false;
  42967. }
  42968. }
  42969. function unstable_runWithPriority(priorityLevel, eventHandler) {
  42970. switch (priorityLevel) {
  42971. case ImmediatePriority:
  42972. case UserBlockingPriority:
  42973. case NormalPriority:
  42974. case LowPriority:
  42975. case IdlePriority:
  42976. break;
  42977. default:
  42978. priorityLevel = NormalPriority;
  42979. }
  42980. var previousPriorityLevel = currentPriorityLevel;
  42981. currentPriorityLevel = priorityLevel;
  42982. try {
  42983. return eventHandler();
  42984. } finally {
  42985. currentPriorityLevel = previousPriorityLevel;
  42986. }
  42987. }
  42988. function unstable_next(eventHandler) {
  42989. var priorityLevel;
  42990. switch (currentPriorityLevel) {
  42991. case ImmediatePriority:
  42992. case UserBlockingPriority:
  42993. case NormalPriority:
  42994. // Shift down to normal priority
  42995. priorityLevel = NormalPriority;
  42996. break;
  42997. default:
  42998. // Anything lower than normal priority should remain at the current level.
  42999. priorityLevel = currentPriorityLevel;
  43000. break;
  43001. }
  43002. var previousPriorityLevel = currentPriorityLevel;
  43003. currentPriorityLevel = priorityLevel;
  43004. try {
  43005. return eventHandler();
  43006. } finally {
  43007. currentPriorityLevel = previousPriorityLevel;
  43008. }
  43009. }
  43010. function unstable_wrapCallback(callback) {
  43011. var parentPriorityLevel = currentPriorityLevel;
  43012. return function () {
  43013. // This is a fork of runWithPriority, inlined for performance.
  43014. var previousPriorityLevel = currentPriorityLevel;
  43015. currentPriorityLevel = parentPriorityLevel;
  43016. try {
  43017. return callback.apply(this, arguments);
  43018. } finally {
  43019. currentPriorityLevel = previousPriorityLevel;
  43020. }
  43021. };
  43022. }
  43023. function timeoutForPriorityLevel(priorityLevel) {
  43024. switch (priorityLevel) {
  43025. case ImmediatePriority:
  43026. return IMMEDIATE_PRIORITY_TIMEOUT;
  43027. case UserBlockingPriority:
  43028. return USER_BLOCKING_PRIORITY;
  43029. case IdlePriority:
  43030. return IDLE_PRIORITY;
  43031. case LowPriority:
  43032. return LOW_PRIORITY_TIMEOUT;
  43033. case NormalPriority:
  43034. default:
  43035. return NORMAL_PRIORITY_TIMEOUT;
  43036. }
  43037. }
  43038. function unstable_scheduleCallback(priorityLevel, callback, options) {
  43039. var currentTime = exports.unstable_now();
  43040. var startTime;
  43041. var timeout;
  43042. if (typeof options === 'object' && options !== null) {
  43043. var delay = options.delay;
  43044. if (typeof delay === 'number' && delay > 0) {
  43045. startTime = currentTime + delay;
  43046. } else {
  43047. startTime = currentTime;
  43048. }
  43049. timeout = typeof options.timeout === 'number' ? options.timeout : timeoutForPriorityLevel(priorityLevel);
  43050. } else {
  43051. timeout = timeoutForPriorityLevel(priorityLevel);
  43052. startTime = currentTime;
  43053. }
  43054. var expirationTime = startTime + timeout;
  43055. var newTask = {
  43056. callback: callback,
  43057. priorityLevel: priorityLevel,
  43058. startTime: startTime,
  43059. expirationTime: expirationTime,
  43060. next: null,
  43061. previous: null
  43062. };
  43063. if (startTime > currentTime) {
  43064. // This is a delayed task.
  43065. insertDelayedTask(newTask, startTime);
  43066. if (firstTask === null && firstDelayedTask === newTask) {
  43067. // All tasks are delayed, and this is the task with the earliest delay.
  43068. if (isHostTimeoutScheduled) {
  43069. // Cancel an existing timeout.
  43070. cancelHostTimeout();
  43071. } else {
  43072. isHostTimeoutScheduled = true;
  43073. }
  43074. // Schedule a timeout.
  43075. requestHostTimeout(handleTimeout, startTime - currentTime);
  43076. }
  43077. } else {
  43078. insertScheduledTask(newTask, expirationTime);
  43079. // Schedule a host callback, if needed. If we're already performing work,
  43080. // wait until the next time we yield.
  43081. if (!isHostCallbackScheduled && !isPerformingWork) {
  43082. isHostCallbackScheduled = true;
  43083. requestHostCallback(flushWork);
  43084. }
  43085. }
  43086. return newTask;
  43087. }
  43088. function insertScheduledTask(newTask, expirationTime) {
  43089. // Insert the new task into the list, ordered first by its timeout, then by
  43090. // insertion. So the new task is inserted after any other task the
  43091. // same timeout
  43092. if (firstTask === null) {
  43093. // This is the first task in the list.
  43094. firstTask = newTask.next = newTask.previous = newTask;
  43095. } else {
  43096. var next = null;
  43097. var task = firstTask;
  43098. do {
  43099. if (expirationTime < task.expirationTime) {
  43100. // The new task times out before this one.
  43101. next = task;
  43102. break;
  43103. }
  43104. task = task.next;
  43105. } while (task !== firstTask);
  43106. if (next === null) {
  43107. // No task with a later timeout was found, which means the new task has
  43108. // the latest timeout in the list.
  43109. next = firstTask;
  43110. } else if (next === firstTask) {
  43111. // The new task has the earliest expiration in the entire list.
  43112. firstTask = newTask;
  43113. }
  43114. var previous = next.previous;
  43115. previous.next = next.previous = newTask;
  43116. newTask.next = next;
  43117. newTask.previous = previous;
  43118. }
  43119. }
  43120. function insertDelayedTask(newTask, startTime) {
  43121. // Insert the new task into the list, ordered by its start time.
  43122. if (firstDelayedTask === null) {
  43123. // This is the first task in the list.
  43124. firstDelayedTask = newTask.next = newTask.previous = newTask;
  43125. } else {
  43126. var next = null;
  43127. var task = firstDelayedTask;
  43128. do {
  43129. if (startTime < task.startTime) {
  43130. // The new task times out before this one.
  43131. next = task;
  43132. break;
  43133. }
  43134. task = task.next;
  43135. } while (task !== firstDelayedTask);
  43136. if (next === null) {
  43137. // No task with a later timeout was found, which means the new task has
  43138. // the latest timeout in the list.
  43139. next = firstDelayedTask;
  43140. } else if (next === firstDelayedTask) {
  43141. // The new task has the earliest expiration in the entire list.
  43142. firstDelayedTask = newTask;
  43143. }
  43144. var previous = next.previous;
  43145. previous.next = next.previous = newTask;
  43146. newTask.next = next;
  43147. newTask.previous = previous;
  43148. }
  43149. }
  43150. function unstable_pauseExecution() {
  43151. isSchedulerPaused = true;
  43152. }
  43153. function unstable_continueExecution() {
  43154. isSchedulerPaused = false;
  43155. if (!isHostCallbackScheduled && !isPerformingWork) {
  43156. isHostCallbackScheduled = true;
  43157. requestHostCallback(flushWork);
  43158. }
  43159. }
  43160. function unstable_getFirstCallbackNode() {
  43161. return firstTask;
  43162. }
  43163. function unstable_cancelCallback(task) {
  43164. var next = task.next;
  43165. if (next === null) {
  43166. // Already cancelled.
  43167. return;
  43168. }
  43169. if (task === next) {
  43170. if (task === firstTask) {
  43171. firstTask = null;
  43172. } else if (task === firstDelayedTask) {
  43173. firstDelayedTask = null;
  43174. }
  43175. } else {
  43176. if (task === firstTask) {
  43177. firstTask = next;
  43178. } else if (task === firstDelayedTask) {
  43179. firstDelayedTask = next;
  43180. }
  43181. var previous = task.previous;
  43182. previous.next = next;
  43183. next.previous = previous;
  43184. }
  43185. task.next = task.previous = null;
  43186. }
  43187. function unstable_getCurrentPriorityLevel() {
  43188. return currentPriorityLevel;
  43189. }
  43190. function unstable_shouldYield() {
  43191. var currentTime = exports.unstable_now();
  43192. advanceTimers(currentTime);
  43193. return currentTask !== null && firstTask !== null && firstTask.startTime <= currentTime && firstTask.expirationTime < currentTask.expirationTime || shouldYieldToHost();
  43194. }
  43195. var unstable_requestPaint = requestPaint;
  43196. exports.unstable_ImmediatePriority = ImmediatePriority;
  43197. exports.unstable_UserBlockingPriority = UserBlockingPriority;
  43198. exports.unstable_NormalPriority = NormalPriority;
  43199. exports.unstable_IdlePriority = IdlePriority;
  43200. exports.unstable_LowPriority = LowPriority;
  43201. exports.unstable_runWithPriority = unstable_runWithPriority;
  43202. exports.unstable_next = unstable_next;
  43203. exports.unstable_scheduleCallback = unstable_scheduleCallback;
  43204. exports.unstable_cancelCallback = unstable_cancelCallback;
  43205. exports.unstable_wrapCallback = unstable_wrapCallback;
  43206. exports.unstable_getCurrentPriorityLevel = unstable_getCurrentPriorityLevel;
  43207. exports.unstable_shouldYield = unstable_shouldYield;
  43208. exports.unstable_requestPaint = unstable_requestPaint;
  43209. exports.unstable_continueExecution = unstable_continueExecution;
  43210. exports.unstable_pauseExecution = unstable_pauseExecution;
  43211. exports.unstable_getFirstCallbackNode = unstable_getFirstCallbackNode;
  43212. })();
  43213. }
  43214. /***/ }),
  43215. /***/ "../../node_modules/scheduler/index.js":
  43216. /*!*****************************************************************!*\
  43217. !*** C:/Dev/Babylon/Babylon.js/node_modules/scheduler/index.js ***!
  43218. \*****************************************************************/
  43219. /*! no static exports found */
  43220. /***/ (function(module, exports, __webpack_require__) {
  43221. "use strict";
  43222. if (false) {} else {
  43223. module.exports = __webpack_require__(/*! ./cjs/scheduler.development.js */ "../../node_modules/scheduler/cjs/scheduler.development.js");
  43224. }
  43225. /***/ }),
  43226. /***/ "../../node_modules/scheduler/tracing.js":
  43227. /*!*******************************************************************!*\
  43228. !*** C:/Dev/Babylon/Babylon.js/node_modules/scheduler/tracing.js ***!
  43229. \*******************************************************************/
  43230. /*! no static exports found */
  43231. /***/ (function(module, exports, __webpack_require__) {
  43232. "use strict";
  43233. if (false) {} else {
  43234. module.exports = __webpack_require__(/*! ./cjs/scheduler-tracing.development.js */ "../../node_modules/scheduler/cjs/scheduler-tracing.development.js");
  43235. }
  43236. /***/ }),
  43237. /***/ "../../node_modules/style-loader/lib/addStyles.js":
  43238. /*!****************************************************************************!*\
  43239. !*** C:/Dev/Babylon/Babylon.js/node_modules/style-loader/lib/addStyles.js ***!
  43240. \****************************************************************************/
  43241. /*! no static exports found */
  43242. /***/ (function(module, exports, __webpack_require__) {
  43243. /*
  43244. MIT License http://www.opensource.org/licenses/mit-license.php
  43245. Author Tobias Koppers @sokra
  43246. */
  43247. var stylesInDom = {};
  43248. var memoize = function (fn) {
  43249. var memo;
  43250. return function () {
  43251. if (typeof memo === "undefined") memo = fn.apply(this, arguments);
  43252. return memo;
  43253. };
  43254. };
  43255. var isOldIE = memoize(function () {
  43256. // Test for IE <= 9 as proposed by Browserhacks
  43257. // @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805
  43258. // Tests for existence of standard globals is to allow style-loader
  43259. // to operate correctly into non-standard environments
  43260. // @see https://github.com/webpack-contrib/style-loader/issues/177
  43261. return window && document && document.all && !window.atob;
  43262. });
  43263. var getTarget = function (target) {
  43264. return document.querySelector(target);
  43265. };
  43266. var getElement = (function (fn) {
  43267. var memo = {};
  43268. return function(target) {
  43269. // If passing function in options, then use it for resolve "head" element.
  43270. // Useful for Shadow Root style i.e
  43271. // {
  43272. // insertInto: function () { return document.querySelector("#foo").shadowRoot }
  43273. // }
  43274. if (typeof target === 'function') {
  43275. return target();
  43276. }
  43277. if (typeof memo[target] === "undefined") {
  43278. var styleTarget = getTarget.call(this, target);
  43279. // Special case to return head of iframe instead of iframe itself
  43280. if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {
  43281. try {
  43282. // This will throw an exception if access to iframe is blocked
  43283. // due to cross-origin restrictions
  43284. styleTarget = styleTarget.contentDocument.head;
  43285. } catch(e) {
  43286. styleTarget = null;
  43287. }
  43288. }
  43289. memo[target] = styleTarget;
  43290. }
  43291. return memo[target]
  43292. };
  43293. })();
  43294. var singleton = null;
  43295. var singletonCounter = 0;
  43296. var stylesInsertedAtTop = [];
  43297. var fixUrls = __webpack_require__(/*! ./urls */ "../../node_modules/style-loader/lib/urls.js");
  43298. module.exports = function(list, options) {
  43299. if (typeof DEBUG !== "undefined" && DEBUG) {
  43300. if (typeof document !== "object") throw new Error("The style-loader cannot be used in a non-browser environment");
  43301. }
  43302. options = options || {};
  43303. options.attrs = typeof options.attrs === "object" ? options.attrs : {};
  43304. // Force single-tag solution on IE6-9, which has a hard limit on the # of <style>
  43305. // tags it will allow on a page
  43306. if (!options.singleton && typeof options.singleton !== "boolean") options.singleton = isOldIE();
  43307. // By default, add <style> tags to the <head> element
  43308. if (!options.insertInto) options.insertInto = "head";
  43309. // By default, add <style> tags to the bottom of the target
  43310. if (!options.insertAt) options.insertAt = "bottom";
  43311. var styles = listToStyles(list, options);
  43312. addStylesToDom(styles, options);
  43313. return function update (newList) {
  43314. var mayRemove = [];
  43315. for (var i = 0; i < styles.length; i++) {
  43316. var item = styles[i];
  43317. var domStyle = stylesInDom[item.id];
  43318. domStyle.refs--;
  43319. mayRemove.push(domStyle);
  43320. }
  43321. if(newList) {
  43322. var newStyles = listToStyles(newList, options);
  43323. addStylesToDom(newStyles, options);
  43324. }
  43325. for (var i = 0; i < mayRemove.length; i++) {
  43326. var domStyle = mayRemove[i];
  43327. if(domStyle.refs === 0) {
  43328. for (var j = 0; j < domStyle.parts.length; j++) domStyle.parts[j]();
  43329. delete stylesInDom[domStyle.id];
  43330. }
  43331. }
  43332. };
  43333. };
  43334. function addStylesToDom (styles, options) {
  43335. for (var i = 0; i < styles.length; i++) {
  43336. var item = styles[i];
  43337. var domStyle = stylesInDom[item.id];
  43338. if(domStyle) {
  43339. domStyle.refs++;
  43340. for(var j = 0; j < domStyle.parts.length; j++) {
  43341. domStyle.parts[j](item.parts[j]);
  43342. }
  43343. for(; j < item.parts.length; j++) {
  43344. domStyle.parts.push(addStyle(item.parts[j], options));
  43345. }
  43346. } else {
  43347. var parts = [];
  43348. for(var j = 0; j < item.parts.length; j++) {
  43349. parts.push(addStyle(item.parts[j], options));
  43350. }
  43351. stylesInDom[item.id] = {id: item.id, refs: 1, parts: parts};
  43352. }
  43353. }
  43354. }
  43355. function listToStyles (list, options) {
  43356. var styles = [];
  43357. var newStyles = {};
  43358. for (var i = 0; i < list.length; i++) {
  43359. var item = list[i];
  43360. var id = options.base ? item[0] + options.base : item[0];
  43361. var css = item[1];
  43362. var media = item[2];
  43363. var sourceMap = item[3];
  43364. var part = {css: css, media: media, sourceMap: sourceMap};
  43365. if(!newStyles[id]) styles.push(newStyles[id] = {id: id, parts: [part]});
  43366. else newStyles[id].parts.push(part);
  43367. }
  43368. return styles;
  43369. }
  43370. function insertStyleElement (options, style) {
  43371. var target = getElement(options.insertInto)
  43372. if (!target) {
  43373. throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");
  43374. }
  43375. var lastStyleElementInsertedAtTop = stylesInsertedAtTop[stylesInsertedAtTop.length - 1];
  43376. if (options.insertAt === "top") {
  43377. if (!lastStyleElementInsertedAtTop) {
  43378. target.insertBefore(style, target.firstChild);
  43379. } else if (lastStyleElementInsertedAtTop.nextSibling) {
  43380. target.insertBefore(style, lastStyleElementInsertedAtTop.nextSibling);
  43381. } else {
  43382. target.appendChild(style);
  43383. }
  43384. stylesInsertedAtTop.push(style);
  43385. } else if (options.insertAt === "bottom") {
  43386. target.appendChild(style);
  43387. } else if (typeof options.insertAt === "object" && options.insertAt.before) {
  43388. var nextSibling = getElement(options.insertInto + " " + options.insertAt.before);
  43389. target.insertBefore(style, nextSibling);
  43390. } else {
  43391. throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");
  43392. }
  43393. }
  43394. function removeStyleElement (style) {
  43395. if (style.parentNode === null) return false;
  43396. style.parentNode.removeChild(style);
  43397. var idx = stylesInsertedAtTop.indexOf(style);
  43398. if(idx >= 0) {
  43399. stylesInsertedAtTop.splice(idx, 1);
  43400. }
  43401. }
  43402. function createStyleElement (options) {
  43403. var style = document.createElement("style");
  43404. if(options.attrs.type === undefined) {
  43405. options.attrs.type = "text/css";
  43406. }
  43407. addAttrs(style, options.attrs);
  43408. insertStyleElement(options, style);
  43409. return style;
  43410. }
  43411. function createLinkElement (options) {
  43412. var link = document.createElement("link");
  43413. if(options.attrs.type === undefined) {
  43414. options.attrs.type = "text/css";
  43415. }
  43416. options.attrs.rel = "stylesheet";
  43417. addAttrs(link, options.attrs);
  43418. insertStyleElement(options, link);
  43419. return link;
  43420. }
  43421. function addAttrs (el, attrs) {
  43422. Object.keys(attrs).forEach(function (key) {
  43423. el.setAttribute(key, attrs[key]);
  43424. });
  43425. }
  43426. function addStyle (obj, options) {
  43427. var style, update, remove, result;
  43428. // If a transform function was defined, run it on the css
  43429. if (options.transform && obj.css) {
  43430. result = options.transform(obj.css);
  43431. if (result) {
  43432. // If transform returns a value, use that instead of the original css.
  43433. // This allows running runtime transformations on the css.
  43434. obj.css = result;
  43435. } else {
  43436. // If the transform function returns a falsy value, don't add this css.
  43437. // This allows conditional loading of css
  43438. return function() {
  43439. // noop
  43440. };
  43441. }
  43442. }
  43443. if (options.singleton) {
  43444. var styleIndex = singletonCounter++;
  43445. style = singleton || (singleton = createStyleElement(options));
  43446. update = applyToSingletonTag.bind(null, style, styleIndex, false);
  43447. remove = applyToSingletonTag.bind(null, style, styleIndex, true);
  43448. } else if (
  43449. obj.sourceMap &&
  43450. typeof URL === "function" &&
  43451. typeof URL.createObjectURL === "function" &&
  43452. typeof URL.revokeObjectURL === "function" &&
  43453. typeof Blob === "function" &&
  43454. typeof btoa === "function"
  43455. ) {
  43456. style = createLinkElement(options);
  43457. update = updateLink.bind(null, style, options);
  43458. remove = function () {
  43459. removeStyleElement(style);
  43460. if(style.href) URL.revokeObjectURL(style.href);
  43461. };
  43462. } else {
  43463. style = createStyleElement(options);
  43464. update = applyToTag.bind(null, style);
  43465. remove = function () {
  43466. removeStyleElement(style);
  43467. };
  43468. }
  43469. update(obj);
  43470. return function updateStyle (newObj) {
  43471. if (newObj) {
  43472. if (
  43473. newObj.css === obj.css &&
  43474. newObj.media === obj.media &&
  43475. newObj.sourceMap === obj.sourceMap
  43476. ) {
  43477. return;
  43478. }
  43479. update(obj = newObj);
  43480. } else {
  43481. remove();
  43482. }
  43483. };
  43484. }
  43485. var replaceText = (function () {
  43486. var textStore = [];
  43487. return function (index, replacement) {
  43488. textStore[index] = replacement;
  43489. return textStore.filter(Boolean).join('\n');
  43490. };
  43491. })();
  43492. function applyToSingletonTag (style, index, remove, obj) {
  43493. var css = remove ? "" : obj.css;
  43494. if (style.styleSheet) {
  43495. style.styleSheet.cssText = replaceText(index, css);
  43496. } else {
  43497. var cssNode = document.createTextNode(css);
  43498. var childNodes = style.childNodes;
  43499. if (childNodes[index]) style.removeChild(childNodes[index]);
  43500. if (childNodes.length) {
  43501. style.insertBefore(cssNode, childNodes[index]);
  43502. } else {
  43503. style.appendChild(cssNode);
  43504. }
  43505. }
  43506. }
  43507. function applyToTag (style, obj) {
  43508. var css = obj.css;
  43509. var media = obj.media;
  43510. if(media) {
  43511. style.setAttribute("media", media)
  43512. }
  43513. if(style.styleSheet) {
  43514. style.styleSheet.cssText = css;
  43515. } else {
  43516. while(style.firstChild) {
  43517. style.removeChild(style.firstChild);
  43518. }
  43519. style.appendChild(document.createTextNode(css));
  43520. }
  43521. }
  43522. function updateLink (link, options, obj) {
  43523. var css = obj.css;
  43524. var sourceMap = obj.sourceMap;
  43525. /*
  43526. If convertToAbsoluteUrls isn't defined, but sourcemaps are enabled
  43527. and there is no publicPath defined then lets turn convertToAbsoluteUrls
  43528. on by default. Otherwise default to the convertToAbsoluteUrls option
  43529. directly
  43530. */
  43531. var autoFixUrls = options.convertToAbsoluteUrls === undefined && sourceMap;
  43532. if (options.convertToAbsoluteUrls || autoFixUrls) {
  43533. css = fixUrls(css);
  43534. }
  43535. if (sourceMap) {
  43536. // http://stackoverflow.com/a/26603875
  43537. css += "\n/*# sourceMappingURL=data:application/json;base64," + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + " */";
  43538. }
  43539. var blob = new Blob([css], { type: "text/css" });
  43540. var oldSrc = link.href;
  43541. link.href = URL.createObjectURL(blob);
  43542. if(oldSrc) URL.revokeObjectURL(oldSrc);
  43543. }
  43544. /***/ }),
  43545. /***/ "../../node_modules/style-loader/lib/urls.js":
  43546. /*!***********************************************************************!*\
  43547. !*** C:/Dev/Babylon/Babylon.js/node_modules/style-loader/lib/urls.js ***!
  43548. \***********************************************************************/
  43549. /*! no static exports found */
  43550. /***/ (function(module, exports) {
  43551. /**
  43552. * When source maps are enabled, `style-loader` uses a link element with a data-uri to
  43553. * embed the css on the page. This breaks all relative urls because now they are relative to a
  43554. * bundle instead of the current page.
  43555. *
  43556. * One solution is to only use full urls, but that may be impossible.
  43557. *
  43558. * Instead, this function "fixes" the relative urls to be absolute according to the current page location.
  43559. *
  43560. * A rudimentary test suite is located at `test/fixUrls.js` and can be run via the `npm test` command.
  43561. *
  43562. */
  43563. module.exports = function (css) {
  43564. // get current location
  43565. var location = typeof window !== "undefined" && window.location;
  43566. if (!location) {
  43567. throw new Error("fixUrls requires window.location");
  43568. }
  43569. // blank or null?
  43570. if (!css || typeof css !== "string") {
  43571. return css;
  43572. }
  43573. var baseUrl = location.protocol + "//" + location.host;
  43574. var currentDir = baseUrl + location.pathname.replace(/\/[^\/]*$/, "/");
  43575. // convert each url(...)
  43576. /*
  43577. This regular expression is just a way to recursively match brackets within
  43578. a string.
  43579. /url\s*\( = Match on the word "url" with any whitespace after it and then a parens
  43580. ( = Start a capturing group
  43581. (?: = Start a non-capturing group
  43582. [^)(] = Match anything that isn't a parentheses
  43583. | = OR
  43584. \( = Match a start parentheses
  43585. (?: = Start another non-capturing groups
  43586. [^)(]+ = Match anything that isn't a parentheses
  43587. | = OR
  43588. \( = Match a start parentheses
  43589. [^)(]* = Match anything that isn't a parentheses
  43590. \) = Match a end parentheses
  43591. ) = End Group
  43592. *\) = Match anything and then a close parens
  43593. ) = Close non-capturing group
  43594. * = Match anything
  43595. ) = Close capturing group
  43596. \) = Match a close parens
  43597. /gi = Get all matches, not the first. Be case insensitive.
  43598. */
  43599. var fixedCss = css.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi, function(fullMatch, origUrl) {
  43600. // strip quotes (if they exist)
  43601. var unquotedOrigUrl = origUrl
  43602. .trim()
  43603. .replace(/^"(.*)"$/, function(o, $1){ return $1; })
  43604. .replace(/^'(.*)'$/, function(o, $1){ return $1; });
  43605. // already a full url? no change
  43606. if (/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(unquotedOrigUrl)) {
  43607. return fullMatch;
  43608. }
  43609. // convert the url to a full url
  43610. var newUrl;
  43611. if (unquotedOrigUrl.indexOf("//") === 0) {
  43612. //TODO: should we add protocol?
  43613. newUrl = unquotedOrigUrl;
  43614. } else if (unquotedOrigUrl.indexOf("/") === 0) {
  43615. // path should be relative to the base url
  43616. newUrl = baseUrl + unquotedOrigUrl; // already starts with '/'
  43617. } else {
  43618. // path should be relative to current directory
  43619. newUrl = currentDir + unquotedOrigUrl.replace(/^\.\//, ""); // Strip leading './'
  43620. }
  43621. // send back the fixed url(...)
  43622. return "url(" + JSON.stringify(newUrl) + ")";
  43623. });
  43624. // send back the fixed css
  43625. return fixedCss;
  43626. };
  43627. /***/ }),
  43628. /***/ "../../node_modules/tslib/tslib.es6.js":
  43629. /*!*****************************************************************!*\
  43630. !*** C:/Dev/Babylon/Babylon.js/node_modules/tslib/tslib.es6.js ***!
  43631. \*****************************************************************/
  43632. /*! exports provided: __extends, __assign, __rest, __decorate, __param, __metadata, __awaiter, __generator, __exportStar, __values, __read, __spread, __spreadArrays, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault */
  43633. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  43634. "use strict";
  43635. __webpack_require__.r(__webpack_exports__);
  43636. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__extends", function() { return __extends; });
  43637. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__assign", function() { return __assign; });
  43638. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__rest", function() { return __rest; });
  43639. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__decorate", function() { return __decorate; });
  43640. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__param", function() { return __param; });
  43641. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__metadata", function() { return __metadata; });
  43642. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__awaiter", function() { return __awaiter; });
  43643. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__generator", function() { return __generator; });
  43644. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__exportStar", function() { return __exportStar; });
  43645. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__values", function() { return __values; });
  43646. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__read", function() { return __read; });
  43647. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__spread", function() { return __spread; });
  43648. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__spreadArrays", function() { return __spreadArrays; });
  43649. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__await", function() { return __await; });
  43650. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncGenerator", function() { return __asyncGenerator; });
  43651. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncDelegator", function() { return __asyncDelegator; });
  43652. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncValues", function() { return __asyncValues; });
  43653. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__makeTemplateObject", function() { return __makeTemplateObject; });
  43654. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__importStar", function() { return __importStar; });
  43655. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__importDefault", function() { return __importDefault; });
  43656. /*! *****************************************************************************
  43657. Copyright (c) Microsoft Corporation. All rights reserved.
  43658. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  43659. this file except in compliance with the License. You may obtain a copy of the
  43660. License at http://www.apache.org/licenses/LICENSE-2.0
  43661. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  43662. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  43663. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  43664. MERCHANTABLITY OR NON-INFRINGEMENT.
  43665. See the Apache Version 2.0 License for specific language governing permissions
  43666. and limitations under the License.
  43667. ***************************************************************************** */
  43668. /* global Reflect, Promise */
  43669. var extendStatics = function(d, b) {
  43670. extendStatics = Object.setPrototypeOf ||
  43671. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  43672. function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
  43673. return extendStatics(d, b);
  43674. };
  43675. function __extends(d, b) {
  43676. extendStatics(d, b);
  43677. function __() { this.constructor = d; }
  43678. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  43679. }
  43680. var __assign = function() {
  43681. __assign = Object.assign || function __assign(t) {
  43682. for (var s, i = 1, n = arguments.length; i < n; i++) {
  43683. s = arguments[i];
  43684. for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
  43685. }
  43686. return t;
  43687. }
  43688. return __assign.apply(this, arguments);
  43689. }
  43690. function __rest(s, e) {
  43691. var t = {};
  43692. for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
  43693. t[p] = s[p];
  43694. if (s != null && typeof Object.getOwnPropertySymbols === "function")
  43695. for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
  43696. if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
  43697. t[p[i]] = s[p[i]];
  43698. }
  43699. return t;
  43700. }
  43701. function __decorate(decorators, target, key, desc) {
  43702. var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
  43703. if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
  43704. else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
  43705. return c > 3 && r && Object.defineProperty(target, key, r), r;
  43706. }
  43707. function __param(paramIndex, decorator) {
  43708. return function (target, key) { decorator(target, key, paramIndex); }
  43709. }
  43710. function __metadata(metadataKey, metadataValue) {
  43711. if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
  43712. }
  43713. function __awaiter(thisArg, _arguments, P, generator) {
  43714. return new (P || (P = Promise))(function (resolve, reject) {
  43715. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  43716. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  43717. function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
  43718. step((generator = generator.apply(thisArg, _arguments || [])).next());
  43719. });
  43720. }
  43721. function __generator(thisArg, body) {
  43722. var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
  43723. return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
  43724. function verb(n) { return function (v) { return step([n, v]); }; }
  43725. function step(op) {
  43726. if (f) throw new TypeError("Generator is already executing.");
  43727. while (_) try {
  43728. if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
  43729. if (y = 0, t) op = [op[0] & 2, t.value];
  43730. switch (op[0]) {
  43731. case 0: case 1: t = op; break;
  43732. case 4: _.label++; return { value: op[1], done: false };
  43733. case 5: _.label++; y = op[1]; op = [0]; continue;
  43734. case 7: op = _.ops.pop(); _.trys.pop(); continue;
  43735. default:
  43736. if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
  43737. if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
  43738. if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
  43739. if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
  43740. if (t[2]) _.ops.pop();
  43741. _.trys.pop(); continue;
  43742. }
  43743. op = body.call(thisArg, _);
  43744. } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
  43745. if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
  43746. }
  43747. }
  43748. function __exportStar(m, exports) {
  43749. for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
  43750. }
  43751. function __values(o) {
  43752. var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0;
  43753. if (m) return m.call(o);
  43754. return {
  43755. next: function () {
  43756. if (o && i >= o.length) o = void 0;
  43757. return { value: o && o[i++], done: !o };
  43758. }
  43759. };
  43760. }
  43761. function __read(o, n) {
  43762. var m = typeof Symbol === "function" && o[Symbol.iterator];
  43763. if (!m) return o;
  43764. var i = m.call(o), r, ar = [], e;
  43765. try {
  43766. while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
  43767. }
  43768. catch (error) { e = { error: error }; }
  43769. finally {
  43770. try {
  43771. if (r && !r.done && (m = i["return"])) m.call(i);
  43772. }
  43773. finally { if (e) throw e.error; }
  43774. }
  43775. return ar;
  43776. }
  43777. function __spread() {
  43778. for (var ar = [], i = 0; i < arguments.length; i++)
  43779. ar = ar.concat(__read(arguments[i]));
  43780. return ar;
  43781. }
  43782. function __spreadArrays() {
  43783. for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
  43784. for (var r = Array(s), k = 0, i = 0; i < il; i++)
  43785. for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
  43786. r[k] = a[j];
  43787. return r;
  43788. };
  43789. function __await(v) {
  43790. return this instanceof __await ? (this.v = v, this) : new __await(v);
  43791. }
  43792. function __asyncGenerator(thisArg, _arguments, generator) {
  43793. if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
  43794. var g = generator.apply(thisArg, _arguments || []), i, q = [];
  43795. return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
  43796. function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
  43797. function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
  43798. function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
  43799. function fulfill(value) { resume("next", value); }
  43800. function reject(value) { resume("throw", value); }
  43801. function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
  43802. }
  43803. function __asyncDelegator(o) {
  43804. var i, p;
  43805. return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
  43806. function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
  43807. }
  43808. function __asyncValues(o) {
  43809. if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
  43810. var m = o[Symbol.asyncIterator], i;
  43811. return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
  43812. function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
  43813. function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
  43814. }
  43815. function __makeTemplateObject(cooked, raw) {
  43816. if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
  43817. return cooked;
  43818. };
  43819. function __importStar(mod) {
  43820. if (mod && mod.__esModule) return mod;
  43821. var result = {};
  43822. if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
  43823. result.default = mod;
  43824. return result;
  43825. }
  43826. function __importDefault(mod) {
  43827. return (mod && mod.__esModule) ? mod : { default: mod };
  43828. }
  43829. /***/ }),
  43830. /***/ "../../node_modules/webpack/buildin/global.js":
  43831. /*!***********************************!*\
  43832. !*** (webpack)/buildin/global.js ***!
  43833. \***********************************/
  43834. /*! no static exports found */
  43835. /***/ (function(module, exports) {
  43836. var g;
  43837. // This works in non-strict mode
  43838. g = (function() {
  43839. return this;
  43840. })();
  43841. try {
  43842. // This works if eval is allowed (see CSP)
  43843. g = g || new Function("return this")();
  43844. } catch (e) {
  43845. // This works if the window reference is available
  43846. if (typeof window === "object") g = window;
  43847. }
  43848. // g can still be undefined, but nothing to do about it...
  43849. // We return undefined, instead of nothing here, so it's
  43850. // easier to handle this case. if(!global) { ...}
  43851. module.exports = g;
  43852. /***/ }),
  43853. /***/ "../../node_modules/webpack/buildin/module.js":
  43854. /*!***********************************!*\
  43855. !*** (webpack)/buildin/module.js ***!
  43856. \***********************************/
  43857. /*! no static exports found */
  43858. /***/ (function(module, exports) {
  43859. module.exports = function(module) {
  43860. if (!module.webpackPolyfill) {
  43861. module.deprecate = function() {};
  43862. module.paths = [];
  43863. // module.parent = undefined by default
  43864. if (!module.children) module.children = [];
  43865. Object.defineProperty(module, "loaded", {
  43866. enumerable: true,
  43867. get: function() {
  43868. return module.l;
  43869. }
  43870. });
  43871. Object.defineProperty(module, "id", {
  43872. enumerable: true,
  43873. get: function() {
  43874. return module.i;
  43875. }
  43876. });
  43877. module.webpackPolyfill = 1;
  43878. }
  43879. return module;
  43880. };
  43881. /***/ }),
  43882. /***/ "./blockTools.ts":
  43883. /*!***********************!*\
  43884. !*** ./blockTools.ts ***!
  43885. \***********************/
  43886. /*! exports provided: BlockTools */
  43887. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  43888. "use strict";
  43889. __webpack_require__.r(__webpack_exports__);
  43890. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BlockTools", function() { return BlockTools; });
  43891. /* harmony import */ var babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babylonjs/Materials/Node/Blocks/Fragment/discardBlock */ "babylonjs/Materials/Textures/texture");
  43892. /* harmony import */ var babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__);
  43893. var BlockTools = /** @class */ (function () {
  43894. function BlockTools() {
  43895. }
  43896. BlockTools.GetBlockFromString = function (data, scene, nodeMaterial) {
  43897. switch (data) {
  43898. case "DesaturateBlock":
  43899. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["DesaturateBlock"]("Desaturate");
  43900. case "RefractBlock":
  43901. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["RefractBlock"]("Refract");
  43902. case "ReflectBlock":
  43903. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["ReflectBlock"]("Reflect");
  43904. case "DerivativeBlock":
  43905. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["DerivativeBlock"]("Derivative");
  43906. case "Rotate2dBlock":
  43907. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["Rotate2dBlock"]("Rotate2d");
  43908. case "NormalBlendBlock":
  43909. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NormalBlendBlock"]("NormalBlend");
  43910. case "WorleyNoise3DBlock":
  43911. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["WorleyNoise3DBlock"]("WorleyNoise3D");
  43912. case "SimplexPerlin3DBlock":
  43913. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["SimplexPerlin3DBlock"]("SimplexPerlin3D");
  43914. case "BonesBlock":
  43915. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["BonesBlock"]("Bones");
  43916. case "InstancesBlock":
  43917. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InstancesBlock"]("Instances");
  43918. case "MorphTargetsBlock":
  43919. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["MorphTargetsBlock"]("MorphTargets");
  43920. case "DiscardBlock":
  43921. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["DiscardBlock"]("Discard");
  43922. case "ImageProcessingBlock":
  43923. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["ImageProcessingBlock"]("ImageProcessing");
  43924. case "ColorMergerBlock":
  43925. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["ColorMergerBlock"]("ColorMerger");
  43926. case "VectorMergerBlock":
  43927. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["VectorMergerBlock"]("VectorMerger");
  43928. case "ColorSplitterBlock":
  43929. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["ColorSplitterBlock"]("ColorSplitter");
  43930. case "VectorSplitterBlock":
  43931. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["VectorSplitterBlock"]("VectorSplitter");
  43932. case "TextureBlock":
  43933. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TextureBlock"]("Texture");
  43934. case "ReflectionTextureBlock":
  43935. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["ReflectionTextureBlock"]("Reflection texture");
  43936. case "LightBlock":
  43937. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["LightBlock"]("Lights");
  43938. case "FogBlock":
  43939. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["FogBlock"]("Fog");
  43940. case "VertexOutputBlock":
  43941. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["VertexOutputBlock"]("VertexOutput");
  43942. case "FragmentOutputBlock":
  43943. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["FragmentOutputBlock"]("FragmentOutput");
  43944. case "AddBlock":
  43945. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["AddBlock"]("Add");
  43946. case "ClampBlock":
  43947. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["ClampBlock"]("Clamp");
  43948. case "ScaleBlock":
  43949. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["ScaleBlock"]("Scale");
  43950. case "CrossBlock":
  43951. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["CrossBlock"]("Cross");
  43952. case "DotBlock":
  43953. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["DotBlock"]("Dot");
  43954. case "PowBlock":
  43955. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["PowBlock"]("Pow");
  43956. case "MultiplyBlock":
  43957. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["MultiplyBlock"]("Multiply");
  43958. case "TransformBlock":
  43959. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TransformBlock"]("Transform");
  43960. case "TrigonometryBlock":
  43961. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Trigonometry");
  43962. case "RemapBlock":
  43963. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["RemapBlock"]("Remap");
  43964. case "NormalizeBlock":
  43965. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NormalizeBlock"]("Normalize");
  43966. case "FresnelBlock":
  43967. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["FresnelBlock"]("Fresnel");
  43968. case "LerpBlock":
  43969. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["LerpBlock"]("Lerp");
  43970. case "NLerpBlock":
  43971. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NLerpBlock"]("NLerp");
  43972. case "DivideBlock":
  43973. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["DivideBlock"]("Divide");
  43974. case "SubtractBlock":
  43975. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["SubtractBlock"]("Subtract");
  43976. case "StepBlock":
  43977. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["StepBlock"]("Step");
  43978. case "SmoothStepBlock":
  43979. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["SmoothStepBlock"]("Smooth step");
  43980. case "OneMinusBlock":
  43981. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["OneMinusBlock"]("One minus");
  43982. case "ReciprocalBlock":
  43983. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["ReciprocalBlock"]("Reciprocal");
  43984. case "ViewDirectionBlock":
  43985. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["ViewDirectionBlock"]("View direction");
  43986. case "LightInformationBlock":
  43987. var lightInformationBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["LightInformationBlock"]("Light information");
  43988. lightInformationBlock.light = scene.lights.length ? scene.lights[0] : null;
  43989. return lightInformationBlock;
  43990. case "MaxBlock":
  43991. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["MaxBlock"]("Max");
  43992. case "MinBlock":
  43993. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["MinBlock"]("Min");
  43994. case "LengthBlock":
  43995. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["LengthBlock"]("Length");
  43996. case "DistanceBlock":
  43997. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["DistanceBlock"]("Distance");
  43998. case "NegateBlock":
  43999. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NegateBlock"]("Negate");
  44000. case "PerturbNormalBlock":
  44001. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["PerturbNormalBlock"]("Perturb normal");
  44002. case "RandomNumberBlock":
  44003. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["RandomNumberBlock"]("Random number");
  44004. case "ReplaceColorBlock":
  44005. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["ReplaceColorBlock"]("Replace color");
  44006. case "PosterizeBlock":
  44007. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["PosterizeBlock"]("Posterize");
  44008. case "ArcTan2Block":
  44009. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["ArcTan2Block"]("ArcTan2");
  44010. case "GradientBlock":
  44011. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["GradientBlock"]("Gradient");
  44012. case "FrontFacingBlock":
  44013. return new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["FrontFacingBlock"]("Front facing");
  44014. case "CosBlock": {
  44015. var cosBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Cos");
  44016. cosBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Cos;
  44017. return cosBlock;
  44018. }
  44019. case "SinBlock": {
  44020. var sinBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Sin");
  44021. sinBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Sin;
  44022. return sinBlock;
  44023. }
  44024. case "AbsBlock": {
  44025. var absBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Abs");
  44026. absBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Abs;
  44027. return absBlock;
  44028. }
  44029. case "SqrtBlock": {
  44030. var sqrtBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Sqrt");
  44031. sqrtBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Sqrt;
  44032. return sqrtBlock;
  44033. }
  44034. case "ArcCosBlock": {
  44035. var acosBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("ArcCos");
  44036. acosBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].ArcCos;
  44037. return acosBlock;
  44038. }
  44039. case "ArcSinBlock": {
  44040. var asinBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("ArcSin");
  44041. asinBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].ArcSin;
  44042. return asinBlock;
  44043. }
  44044. case "TanBlock": {
  44045. var tanBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Tan");
  44046. tanBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Tan;
  44047. return tanBlock;
  44048. }
  44049. case "ArcTanBlock": {
  44050. var atanBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("ArcTan");
  44051. atanBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].ArcTan;
  44052. return atanBlock;
  44053. }
  44054. case "FractBlock": {
  44055. var fractBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Fract");
  44056. fractBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Fract;
  44057. return fractBlock;
  44058. }
  44059. case "SignBlock": {
  44060. var signBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Sign");
  44061. signBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Sign;
  44062. return signBlock;
  44063. }
  44064. case "LogBlock": {
  44065. var logBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Log");
  44066. logBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Log;
  44067. return logBlock;
  44068. }
  44069. case "ExpBlock": {
  44070. var expBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Exp");
  44071. expBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Exp;
  44072. return expBlock;
  44073. }
  44074. case "Exp2Block": {
  44075. var exp2Block = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Exp2");
  44076. exp2Block.operation = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Exp2;
  44077. return exp2Block;
  44078. }
  44079. case "DegreesToRadiansBlock": {
  44080. var degreesToRadiansBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Degrees to radians");
  44081. degreesToRadiansBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Radians;
  44082. return degreesToRadiansBlock;
  44083. }
  44084. case "RadiansToDegreesBlock": {
  44085. var radiansToDegreesBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Radians to degrees");
  44086. radiansToDegreesBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Degrees;
  44087. return radiansToDegreesBlock;
  44088. }
  44089. case "RoundBlock": {
  44090. var roundBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Round");
  44091. roundBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Round;
  44092. return roundBlock;
  44093. }
  44094. case "CeilingBlock": {
  44095. var ceilingBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Ceiling");
  44096. ceilingBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Ceiling;
  44097. return ceilingBlock;
  44098. }
  44099. case "FloorBlock": {
  44100. var floorBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlock"]("Floor");
  44101. floorBlock.operation = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"].Floor;
  44102. return floorBlock;
  44103. }
  44104. case "SawToothWaveBlock": {
  44105. var sawToothWaveBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["WaveBlock"]("SawTooth wave");
  44106. sawToothWaveBlock.kind = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["WaveBlockKind"].SawTooth;
  44107. return sawToothWaveBlock;
  44108. }
  44109. case "SquareWaveBlock": {
  44110. var squareWaveBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["WaveBlock"]("Square wave");
  44111. squareWaveBlock.kind = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["WaveBlockKind"].Square;
  44112. return squareWaveBlock;
  44113. }
  44114. case "TriangleWaveBlock": {
  44115. var triangleWaveBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["WaveBlock"]("Triangle wave");
  44116. triangleWaveBlock.kind = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["WaveBlockKind"].Triangle;
  44117. return triangleWaveBlock;
  44118. }
  44119. case "WorldMatrixBlock": {
  44120. var worldMatrixBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("World");
  44121. worldMatrixBlock.setAsSystemValue(babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].World);
  44122. return worldMatrixBlock;
  44123. }
  44124. case "WorldViewMatrixBlock": {
  44125. var worldViewMatrixBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("World x View");
  44126. worldViewMatrixBlock.setAsSystemValue(babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].WorldView);
  44127. return worldViewMatrixBlock;
  44128. }
  44129. case "WorldViewProjectionMatrixBlock": {
  44130. var worldViewProjectionMatrixBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("World x View x Projection");
  44131. worldViewProjectionMatrixBlock.setAsSystemValue(babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].WorldViewProjection);
  44132. return worldViewProjectionMatrixBlock;
  44133. }
  44134. case "ViewMatrixBlock": {
  44135. var viewMatrixBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("View");
  44136. viewMatrixBlock.setAsSystemValue(babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].View);
  44137. return viewMatrixBlock;
  44138. }
  44139. case "ViewProjectionMatrixBlock": {
  44140. var viewProjectionMatrixBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("View x Projection");
  44141. viewProjectionMatrixBlock.setAsSystemValue(babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].ViewProjection);
  44142. return viewProjectionMatrixBlock;
  44143. }
  44144. case "ProjectionMatrixBlock": {
  44145. var projectionMatrixBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("Projection");
  44146. projectionMatrixBlock.setAsSystemValue(babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].Projection);
  44147. return projectionMatrixBlock;
  44148. }
  44149. case "CameraPositionBlock": {
  44150. var cameraPosition = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("Camera position");
  44151. cameraPosition.setAsSystemValue(babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].CameraPosition);
  44152. return cameraPosition;
  44153. }
  44154. case "FogColorBlock": {
  44155. var FogColor = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("Fog color");
  44156. FogColor.setAsSystemValue(babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].FogColor);
  44157. return FogColor;
  44158. }
  44159. case "PositionBlock": {
  44160. var meshPosition = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("position");
  44161. meshPosition.setAsAttribute("position");
  44162. return meshPosition;
  44163. }
  44164. case "UVBlock": {
  44165. var meshUV = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("uv");
  44166. meshUV.setAsAttribute("uv");
  44167. return meshUV;
  44168. }
  44169. case "ColorBlock": {
  44170. var meshColor = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("color");
  44171. meshColor.setAsAttribute("color");
  44172. return meshColor;
  44173. }
  44174. case "NormalBlock": {
  44175. var meshNormal = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("normal");
  44176. meshNormal.setAsAttribute("normal");
  44177. return meshNormal;
  44178. }
  44179. case "TangentBlock": {
  44180. var meshTangent = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("tangent");
  44181. meshTangent.setAsAttribute("tangent");
  44182. return meshTangent;
  44183. }
  44184. case "MatrixIndicesBlock": {
  44185. var meshMatrixIndices = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("matricesIndices");
  44186. meshMatrixIndices.setAsAttribute("matricesIndices");
  44187. return meshMatrixIndices;
  44188. }
  44189. case "MatrixWeightsBlock": {
  44190. var meshMatrixWeights = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("matricesWeights");
  44191. meshMatrixWeights.setAsAttribute("matricesWeights");
  44192. return meshMatrixWeights;
  44193. }
  44194. case "TimeBlock": {
  44195. var timeBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("Time", undefined, babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Float);
  44196. timeBlock.animationType = babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["AnimatedInputBlockTypes"].Time;
  44197. return timeBlock;
  44198. }
  44199. case "DeltaTimeBlock": {
  44200. var deltaTimeBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("Delta time");
  44201. deltaTimeBlock.setAsSystemValue(babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].DeltaTime);
  44202. return deltaTimeBlock;
  44203. }
  44204. case "WorldPositionBlock": {
  44205. var worldPositionBlock = nodeMaterial.getInputBlockByPredicate(function (b) { return b.isAttribute && b.name === "position"; });
  44206. if (!worldPositionBlock) {
  44207. worldPositionBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("position");
  44208. worldPositionBlock.setAsAttribute("position");
  44209. }
  44210. var worldMatrixBlock = nodeMaterial.getInputBlockByPredicate(function (b) { return b.isSystemValue && b.systemValue === babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].World; });
  44211. if (!worldMatrixBlock) {
  44212. worldMatrixBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("World");
  44213. worldMatrixBlock.setAsSystemValue(babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].World);
  44214. }
  44215. var transformBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TransformBlock"]("World position");
  44216. worldPositionBlock.connectTo(transformBlock);
  44217. worldMatrixBlock.connectTo(transformBlock);
  44218. return transformBlock;
  44219. }
  44220. case "WorldNormalBlock": {
  44221. var worldNormalBlock = nodeMaterial.getInputBlockByPredicate(function (b) { return b.isAttribute && b.name === "normal"; });
  44222. if (!worldNormalBlock) {
  44223. worldNormalBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("normal");
  44224. worldNormalBlock.setAsAttribute("normal");
  44225. }
  44226. var worldMatrixBlock = nodeMaterial.getInputBlockByPredicate(function (b) { return b.isSystemValue && b.systemValue === babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].World; });
  44227. if (!worldMatrixBlock) {
  44228. worldMatrixBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["InputBlock"]("World");
  44229. worldMatrixBlock.setAsSystemValue(babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].World);
  44230. }
  44231. var transformBlock = new babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["TransformBlock"]("World normal");
  44232. worldNormalBlock.connectTo(transformBlock);
  44233. worldMatrixBlock.connectTo(transformBlock);
  44234. return transformBlock;
  44235. }
  44236. }
  44237. return null;
  44238. };
  44239. BlockTools.GetColorFromConnectionNodeType = function (type) {
  44240. var color = "#880000";
  44241. switch (type) {
  44242. case babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Float:
  44243. color = "#cb9e27";
  44244. break;
  44245. case babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector2:
  44246. color = "#16bcb1";
  44247. break;
  44248. case babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector3:
  44249. case babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Color3:
  44250. color = "#b786cb";
  44251. break;
  44252. case babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector4:
  44253. case babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Color4:
  44254. color = "#be5126";
  44255. break;
  44256. case babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Matrix:
  44257. color = "#591990";
  44258. break;
  44259. }
  44260. return color;
  44261. };
  44262. BlockTools.GetConnectionNodeTypeFromString = function (type) {
  44263. switch (type) {
  44264. case "Float":
  44265. return babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Float;
  44266. case "Vector2":
  44267. return babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector2;
  44268. case "Vector3":
  44269. return babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector3;
  44270. case "Vector4":
  44271. return babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector4;
  44272. case "Matrix":
  44273. return babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Matrix;
  44274. case "Color3":
  44275. return babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Color3;
  44276. case "Color4":
  44277. return babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Color4;
  44278. }
  44279. return babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].AutoDetect;
  44280. };
  44281. BlockTools.GetStringFromConnectionNodeType = function (type) {
  44282. switch (type) {
  44283. case babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Float:
  44284. return "Float";
  44285. case babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector2:
  44286. return "Vector2";
  44287. case babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector3:
  44288. return "Vector3";
  44289. case babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector4:
  44290. return "Vector4";
  44291. case babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Color3:
  44292. return "Color3";
  44293. case babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Color4:
  44294. return "Color4";
  44295. case babylonjs_Materials_Node_Blocks_Fragment_discardBlock__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Matrix:
  44296. return "Matrix";
  44297. }
  44298. return "";
  44299. };
  44300. return BlockTools;
  44301. }());
  44302. /***/ }),
  44303. /***/ "./components/log/log.scss":
  44304. /*!*********************************!*\
  44305. !*** ./components/log/log.scss ***!
  44306. \*********************************/
  44307. /*! no static exports found */
  44308. /***/ (function(module, exports, __webpack_require__) {
  44309. var content = __webpack_require__(/*! !../../../../node_modules/css-loader!../../../../node_modules/sass-loader/lib/loader.js!./log.scss */ "../../node_modules/css-loader/index.js!../../node_modules/sass-loader/lib/loader.js!./components/log/log.scss");
  44310. if(typeof content === 'string') content = [[module.i, content, '']];
  44311. var transform;
  44312. var insertInto;
  44313. var options = {"hmr":true}
  44314. options.transform = transform
  44315. options.insertInto = undefined;
  44316. var update = __webpack_require__(/*! ../../../../node_modules/style-loader/lib/addStyles.js */ "../../node_modules/style-loader/lib/addStyles.js")(content, options);
  44317. if(content.locals) module.exports = content.locals;
  44318. if(false) {}
  44319. /***/ }),
  44320. /***/ "./components/log/logComponent.tsx":
  44321. /*!*****************************************!*\
  44322. !*** ./components/log/logComponent.tsx ***!
  44323. \*****************************************/
  44324. /*! exports provided: LogEntry, LogComponent */
  44325. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  44326. "use strict";
  44327. __webpack_require__.r(__webpack_exports__);
  44328. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LogEntry", function() { return LogEntry; });
  44329. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LogComponent", function() { return LogComponent; });
  44330. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  44331. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  44332. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  44333. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-dom */ "../../node_modules/react-dom/index.js");
  44334. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_2__);
  44335. __webpack_require__(/*! ./log.scss */ "./components/log/log.scss");
  44336. var LogEntry = /** @class */ (function () {
  44337. function LogEntry(message, isError) {
  44338. this.message = message;
  44339. this.isError = isError;
  44340. }
  44341. return LogEntry;
  44342. }());
  44343. var LogComponent = /** @class */ (function (_super) {
  44344. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(LogComponent, _super);
  44345. function LogComponent(props) {
  44346. var _this = _super.call(this, props) || this;
  44347. _this.state = { logs: [] };
  44348. return _this;
  44349. }
  44350. LogComponent.prototype.componentDidMount = function () {
  44351. var _this = this;
  44352. this.props.globalState.onLogRequiredObservable.add(function (log) {
  44353. var currentLogs = _this.state.logs;
  44354. currentLogs.push(log);
  44355. _this.setState({ logs: currentLogs });
  44356. });
  44357. };
  44358. LogComponent.prototype.componentDidUpdate = function () {
  44359. var logConsole = react_dom__WEBPACK_IMPORTED_MODULE_2__["findDOMNode"](this.refs["log-console"]);
  44360. if (!logConsole) {
  44361. return;
  44362. }
  44363. logConsole.scrollTop = logConsole.scrollHeight;
  44364. };
  44365. LogComponent.prototype.render = function () {
  44366. var today = new Date();
  44367. var h = today.getHours();
  44368. var m = today.getMinutes();
  44369. var s = today.getSeconds();
  44370. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "log-console", ref: "log-console" }, this.state.logs.map(function (l, i) {
  44371. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { key: i, className: "log" + (l.isError ? " error" : "") }, h + ":" + m + ":" + s + ": " + l.message));
  44372. })));
  44373. };
  44374. return LogComponent;
  44375. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  44376. /***/ }),
  44377. /***/ "./components/nodeList/nodeList.scss":
  44378. /*!*******************************************!*\
  44379. !*** ./components/nodeList/nodeList.scss ***!
  44380. \*******************************************/
  44381. /*! no static exports found */
  44382. /***/ (function(module, exports, __webpack_require__) {
  44383. var content = __webpack_require__(/*! !../../../../node_modules/css-loader!../../../../node_modules/sass-loader/lib/loader.js!./nodeList.scss */ "../../node_modules/css-loader/index.js!../../node_modules/sass-loader/lib/loader.js!./components/nodeList/nodeList.scss");
  44384. if(typeof content === 'string') content = [[module.i, content, '']];
  44385. var transform;
  44386. var insertInto;
  44387. var options = {"hmr":true}
  44388. options.transform = transform
  44389. options.insertInto = undefined;
  44390. var update = __webpack_require__(/*! ../../../../node_modules/style-loader/lib/addStyles.js */ "../../node_modules/style-loader/lib/addStyles.js")(content, options);
  44391. if(content.locals) module.exports = content.locals;
  44392. if(false) {}
  44393. /***/ }),
  44394. /***/ "./components/nodeList/nodeListComponent.tsx":
  44395. /*!***************************************************!*\
  44396. !*** ./components/nodeList/nodeListComponent.tsx ***!
  44397. \***************************************************/
  44398. /*! exports provided: NodeListComponent */
  44399. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  44400. "use strict";
  44401. __webpack_require__.r(__webpack_exports__);
  44402. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NodeListComponent", function() { return NodeListComponent; });
  44403. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  44404. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  44405. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  44406. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  44407. /* harmony import */ var _sharedComponents_draggableLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../sharedComponents/draggableLineComponent */ "./sharedComponents/draggableLineComponent.tsx");
  44408. __webpack_require__(/*! ./nodeList.scss */ "./components/nodeList/nodeList.scss");
  44409. var NodeListComponent = /** @class */ (function (_super) {
  44410. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(NodeListComponent, _super);
  44411. function NodeListComponent(props) {
  44412. var _this = _super.call(this, props) || this;
  44413. _this.state = { filter: "" };
  44414. return _this;
  44415. }
  44416. NodeListComponent.prototype.filterContent = function (filter) {
  44417. this.setState({ filter: filter });
  44418. };
  44419. NodeListComponent.prototype.render = function () {
  44420. var _this = this;
  44421. // Block types used to create the menu from
  44422. var allBlocks = {
  44423. Animation: ["BonesBlock", "MorphTargetsBlock"],
  44424. Color_Management: ["ReplaceColorBlock", "PosterizeBlock", "GradientBlock", "DesaturateBlock"],
  44425. Conversion_Blocks: ["ColorMergerBlock", "ColorSplitterBlock", "VectorMergerBlock", "VectorSplitterBlock"],
  44426. Inputs: ["Float", "Vector2", "Vector3", "Vector4", "Color3", "Color4", "TextureBlock", "ReflectionTextureBlock", "TimeBlock", "DeltaTimeBlock"],
  44427. Interpolation: ["LerpBlock", "StepBlock", "SmoothStepBlock", "NLerpBlock"],
  44428. Math__Standard: ["AddBlock", "DivideBlock", "MaxBlock", "MinBlock", "MultiplyBlock", "NegateBlock", "OneMinusBlock", "ReciprocalBlock", "ScaleBlock", "SignBlock", "SqrtBlock", "SubtractBlock"],
  44429. Math__Scientific: ["AbsBlock", "ArcCosBlock", "ArcSinBlock", "ArcTanBlock", "ArcTan2Block", "CosBlock", "DegreesToRadiansBlock", "ExpBlock", "Exp2Block", "FractBlock", "LogBlock", "PowBlock", "RadiansToDegreesBlock", "SawToothWaveBlock", "SinBlock", "SquareWaveBlock", "TanBlock", "TriangleWaveBlock"],
  44430. Math__Vector: ["CrossBlock", "DerivativeBlock", "DistanceBlock", "DotBlock", "FresnelBlock", "LengthBlock", "ReflectBlock", "RefractBlock", "Rotate2dBlock", "TransformBlock",],
  44431. Matrices: ["Matrix", "WorldMatrixBlock", "WorldViewMatrixBlock", "WorldViewProjectionMatrixBlock", "ViewMatrixBlock", "ViewProjectionMatrixBlock", "ProjectionMatrixBlock"],
  44432. Mesh: ["InstancesBlock", "PositionBlock", "UVBlock", "ColorBlock", "NormalBlock", "PerturbNormalBlock", "NormalBlendBlock", "TangentBlock", "MatrixIndicesBlock", "MatrixWeightsBlock", "WorldPositionBlock", "WorldNormalBlock", "FrontFacingBlock"],
  44433. Noises: ["RandomNumberBlock", "SimplexPerlin3DBlock", "WorleyNoise3DBlock"],
  44434. Output_Blocks: ["VertexOutputBlock", "FragmentOutputBlock", "DiscardBlock"],
  44435. Range: ["ClampBlock", "RemapBlock", "NormalizeBlock"],
  44436. Round: ["RoundBlock", "CeilingBlock", "FloorBlock"],
  44437. Scene: ["FogBlock", "CameraPositionBlock", "FogColorBlock", "ImageProcessingBlock", "LightBlock", "LightInformationBlock", "ViewDirectionBlock"],
  44438. };
  44439. // Create node menu
  44440. var blockMenu = [];
  44441. for (var key in allBlocks) {
  44442. var blockList = allBlocks[key].filter(function (b) { return !_this.state.filter || b.toLowerCase().indexOf(_this.state.filter.toLowerCase()) !== -1; })
  44443. .sort(function (a, b) { return a.localeCompare(b); })
  44444. .map(function (block, i) {
  44445. var tooltip = NodeListComponent._Tooltips[block] || "";
  44446. return react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_draggableLineComponent__WEBPACK_IMPORTED_MODULE_3__["DraggableLineComponent"], { key: block, data: block, tooltip: tooltip });
  44447. });
  44448. if (blockList.length) {
  44449. blockMenu.push(react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { key: key + " blocks", title: key.replace("__", ": ").replace("_", " "), closed: false }, blockList));
  44450. }
  44451. }
  44452. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "nodeList" },
  44453. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "panes" },
  44454. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "pane" },
  44455. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "filter" },
  44456. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { type: "text", placeholder: "Filter", onChange: function (evt) { return _this.filterContent(evt.target.value); } })),
  44457. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "list-container" }, blockMenu)))));
  44458. };
  44459. NodeListComponent._Tooltips = {
  44460. "BonesBlock": "Provides a world matrix for each vertex, based on skeletal (bone/joint) animation",
  44461. "MorphTargetsBlock": "Provides the final positions, normals, tangents, and uvs based on morph targets in a mesh",
  44462. "AddBlock": "Adds the left and right inputs of the same type together",
  44463. "DistanceBlock": "Provides a distance vector based on the left and right input vectors",
  44464. "DivideBlock": "Divides the left input by the right input of the same type",
  44465. "LengthBlock": "Outputs the length of an input vector",
  44466. "MaxBlock": "Outputs the largest value between the left and right inputs of the same type",
  44467. "MinBlock": "Outputs the smallest value between the left and right inputs of the same type",
  44468. "MultiplyBlock": "Multiplies the left and right inputs of the same type together",
  44469. "NegateBlock": "Multiplies the input by -1",
  44470. "OneMinusBlock": "Subtracts each channel of the input value from 1 (1 - input)",
  44471. "RandomNumberBlock": "Provides a random number based on an input seed",
  44472. "ReciprocalBlock": "Quotient of 1 divided by the input",
  44473. "ScaleBlock": "Multiplies the input channels by a float factor",
  44474. "SubtractBlock": "Subtracts the right input from the left input of the same type",
  44475. "GradientBlock": "Returns the color in the gradient represented by the target value of the input",
  44476. "PosterizeBlock": "Reduces the number of values in each channel to the number in the corresponding channel of steps",
  44477. "ReplaceColorBlock": "Replaces a reference color in value with the color in replacement blended by distance",
  44478. "ColorMergerBlock": "Combines float input channels into a color",
  44479. "ColorSplitterBlock": "Separates color input channels into individual floats",
  44480. "VectorMergerBlock": "Combines up to four input floats into a vector",
  44481. "VectorSplitterBlock": "Separates vectors input channels into individual floats",
  44482. "Color3": "A color made up of red, green, and blue channel values",
  44483. "Color4": "A color made up of red, green, blue, and alpha channel values",
  44484. "DeltaTimeBlock": "A float representing the time that has passed since the last frame was rendered",
  44485. "Float": "A floating point number representing a value with a fractional component",
  44486. "TextureBlock": "A node for reading a linked or embedded texture file",
  44487. "TimeBlock": "A float value that represents the time that has passed since the scene was loaded",
  44488. "Vector2": "a vector composed of X and Y channels",
  44489. "Vector3": "a vector composed of X, Y, and Z channels",
  44490. "Vector4": "a vector composed of X, Y, Z, and W channels",
  44491. "LerpBlock": "Outputs a value that is a mix of the left and right inputs based on the target value",
  44492. "NLerpBlock": "Outputs a value that is a mix of the left and right inputs based on the target's normalized value",
  44493. "SmoothStepBlock": "Outputs a value based on a the input value's position on a curve between the two edge values",
  44494. "StepBlock": "Outputs 1 for any input value above the edge input, outputs 0 for any input value below the edge input",
  44495. "Matrix": "A 4x4 table of related values",
  44496. "ProjectionMatrixBlock": "A matrix to remap points in 3D space to 2D plane relative to the screen",
  44497. "ViewMatrixBlock": "A matrix to remap points in 3D space to 2D plane relative to the view of the scene camera",
  44498. "ViewProjectionMatrixBlock": "A matrix to remap points in 3D space to 2D view space before remapping to 2D screen space",
  44499. "WorldMatrixBlock": "A matrix to remap points in 3D local space to 3D world space",
  44500. "WorldViewProjectionMatrixBlock": "A matrix to remap points in 3D local space to 3D world space, then to 2D camera space, and ending in 2D screen space",
  44501. "ColorBlock": "Outputs the RGBA color of each vertex in the mesh",
  44502. "InstancesBlock": "Provides the world matrix for each instance to apply this material to all instances",
  44503. "MatrixIndicesBlock": "A Vector4 representing the vertex to bone skinning assignments",
  44504. "MatrixWeightsBlock": "A Vector4 representing the vertex to bone skinning weights",
  44505. "NormalBlock": "A Vector3 representing the normal of each vertex of the attached mesh",
  44506. "PositionBlock": "A Vector3 representing the position of each vertex of the attached mesh",
  44507. "TangentBlock": "A Vector3 representing the tangent of each vertex of the attached mesh",
  44508. "UVBlock": "A Vector2 representing the UV coordinates of each vertex of the attached mesh",
  44509. "WorldNormal": "A Vector4 representing the normal of each vertex of the attached mesh transformed into world space",
  44510. "PerturbNormalBlock": "Creates high-frequency detail normal vectors based on a normal map, the world position, and world normal",
  44511. "NormalBlend": "Outputs the result of blending two normal maps together using a per-channel screen",
  44512. "WorldPosition": "A Vector4 representing the position of each vertex of the attached mesh transformed into world space",
  44513. "DiscardBlock": "A final node that will not output a pixel below the cutoff value",
  44514. "FragmentOutputBlock": "A mandatory final node for outputing the color of each pixel",
  44515. "VertexOutputBlock": "A mandatory final node for outputing the position of each vertex",
  44516. "ClampBlock": "Outputs values above the maximum or below minimum as maximum or minimum values respectively",
  44517. "NormalizeBlock": "Remaps the length of a vector or color to 1",
  44518. "RemapBlock": "Remaps input value between sourceMin and sourceMax to a new range between targetMin and targetMax",
  44519. "CeilingBlock": "Outputs fractional values as the next higher whole number",
  44520. "FloorBlock": "Outputs fractional values as the next lower whole number",
  44521. "RoundBlock": "Outputs fractional values rounded to the nearest whole number",
  44522. "CameraPositionBlock": "Outputs a Vector3 position of the active scene camera",
  44523. "FogBlock": "Applies fog to the scene with an increasing opacity based on distance from the camera",
  44524. "FogColorBlock": "The system value for fog color pulled from the scene",
  44525. "ImageProcessingBlock": "Provides access to all of the Babylon image processing properties",
  44526. "LightBlock": "Outputs diffuse and specular contributions from one or more scene lights",
  44527. "LightInformationBlock": "Provides the direction, color and intensity of a selected light based on its world position",
  44528. "ReflectionTextureBlock": "Creates a reflection from the input texture",
  44529. "ViewDirectionBlock": "Outputs the direction vector of where the camera is aimed",
  44530. "AbsBlock": "Outputs the absolute value of the input value",
  44531. "ArcCosBlock": "Outputs the inverse of the cosine value based on the input value",
  44532. "ArcSinBlock": "Outputs the inverse of the sine value based on the input value",
  44533. "ArcTan2Block": "Outputs the inverse of the tangent value based on the input value",
  44534. "ArcTanBlock": "Outputs the inverse of the tangent value based on the input value",
  44535. "CosBlock": "Outputs the cosine value based on the input value",
  44536. "DegreesToRadiansBlock": "Converts the input degrees value to radians",
  44537. "Exp2Block": "Outputs the input value multiplied by itself 1 time. (Exponent of 2)",
  44538. "ExpBlock": "Outputs the input value multiplied by itself 9 time. (Exponent of 10)",
  44539. "FractBlock": "Outputs only the fractional value of a floating point number",
  44540. "LogBlock": "The logarithmic value based on the input value",
  44541. "PowBlock": "Outputs the input value multiplied by itself the number of times equal to the power input (Exponent of power)",
  44542. "RadiansToDegreesBlock": "Converts the input radians value to degrees",
  44543. "SawToothWaveBlock": "Outputs a sawtooth pattern value between -1 and 1 based on the input value",
  44544. "SignBlock": "returns 1 if the input is positive, 0 if input is equal to 0, or -1 if the input is negative",
  44545. "SinBlock": "Outputs the the sine value based on the input value",
  44546. "SqrtBlock": "Outputs the the square root of the input value",
  44547. "SquareWaveBlock": "Outputs a stepped pattern value between -1 and 1 based on the input value",
  44548. "TanBlock": "Outputs the the tangent value based on the input value",
  44549. "TriangleWaveBlock": "Outputs a sawtooth pattern value between 0 and 1 based on the input value",
  44550. "CrossBlock": "Outputs a vector that is perpendicular to two input vectors",
  44551. "DotBlock": "Outputs the cos of the angle between two vectors",
  44552. "FresnelBlock": "Outputs the grazing angle of the surface of the mesh, relative to a camera influenced by the bias and power inputs",
  44553. "TransformBlock": "Transforms a input vector based on the input matrix",
  44554. "DerivativeBlock": "FRAGMENT SHADER ONLY. Provides the rate of change for an input on a given axis (x,y).",
  44555. "DesaturateBlock": "Convert a color input into a grayscale representation.",
  44556. "WorldViewMatrixBlock": "A matrix to remap points in 3D local space to 3D world space, and ending in 2D camera space.",
  44557. "FrontFacingBlock": "Returns 1 if a mesh triangle faces the normal direction and 0 if it does not.",
  44558. "SimplexPerlin3DBlock": "Creates a type of gradient noise with few directional artifacts.",
  44559. "WorleyNoise3DBlock": "Creates a random pattern resembling cells.",
  44560. "ReflectBlock": "Outputs the direction of the input vector reflected across the surface normal.",
  44561. "RefractBlock": "Outputs a direction simulating a deflection of the input vector.",
  44562. "Rotate2dBlock": "Rotates UV coordinates around the W axis."
  44563. };
  44564. return NodeListComponent;
  44565. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  44566. /***/ }),
  44567. /***/ "./components/preview/previewAreaComponent.tsx":
  44568. /*!*****************************************************!*\
  44569. !*** ./components/preview/previewAreaComponent.tsx ***!
  44570. \*****************************************************/
  44571. /*! exports provided: PreviewAreaComponent */
  44572. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  44573. "use strict";
  44574. __webpack_require__.r(__webpack_exports__);
  44575. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PreviewAreaComponent", function() { return PreviewAreaComponent; });
  44576. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  44577. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  44578. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  44579. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  44580. /* harmony import */ var _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @fortawesome/free-solid-svg-icons */ "../../node_modules/@fortawesome/free-solid-svg-icons/index.es.js");
  44581. /* harmony import */ var babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! babylonjs/Maths/math.color */ "babylonjs/Materials/Textures/texture");
  44582. /* harmony import */ var babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_4__);
  44583. /* harmony import */ var _dataStorage__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../dataStorage */ "./dataStorage.ts");
  44584. var PreviewAreaComponent = /** @class */ (function (_super) {
  44585. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PreviewAreaComponent, _super);
  44586. function PreviewAreaComponent(props) {
  44587. var _this = _super.call(this, props) || this;
  44588. _this.state = { isLoading: true };
  44589. _this.props.globalState.onIsLoadingChanged.add(function (state) { return _this.setState({ isLoading: state }); });
  44590. return _this;
  44591. }
  44592. PreviewAreaComponent.prototype.changeAnimation = function () {
  44593. this.props.globalState.rotatePreview = !this.props.globalState.rotatePreview;
  44594. this.props.globalState.onAnimationCommandActivated.notifyObservers();
  44595. this.forceUpdate();
  44596. };
  44597. PreviewAreaComponent.prototype.changeBackground = function (value) {
  44598. var newColor = babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_4__["Color3"].FromHexString(value);
  44599. _dataStorage__WEBPACK_IMPORTED_MODULE_5__["DataStorage"].StoreNumber("BackgroundColorR", newColor.r);
  44600. _dataStorage__WEBPACK_IMPORTED_MODULE_5__["DataStorage"].StoreNumber("BackgroundColorG", newColor.g);
  44601. _dataStorage__WEBPACK_IMPORTED_MODULE_5__["DataStorage"].StoreNumber("BackgroundColorB", newColor.b);
  44602. this.props.globalState.backgroundColor = babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_4__["Color4"].FromColor3(newColor, 1.0);
  44603. this.props.globalState.onPreviewBackgroundChanged.notifyObservers();
  44604. };
  44605. PreviewAreaComponent.prototype.changeBackFaceCulling = function (value) {
  44606. this.props.globalState.backFaceCulling = value;
  44607. _dataStorage__WEBPACK_IMPORTED_MODULE_5__["DataStorage"].StoreBoolean("BackFaceCulling", value);
  44608. this.props.globalState.onBackFaceCullingChanged.notifyObservers();
  44609. this.forceUpdate();
  44610. };
  44611. PreviewAreaComponent.prototype.changeDepthPrePass = function (value) {
  44612. this.props.globalState.depthPrePass = value;
  44613. _dataStorage__WEBPACK_IMPORTED_MODULE_5__["DataStorage"].StoreBoolean("DepthPrePass", value);
  44614. this.props.globalState.onDepthPrePassChanged.notifyObservers();
  44615. this.forceUpdate();
  44616. };
  44617. PreviewAreaComponent.prototype.render = function () {
  44618. var _this = this;
  44619. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  44620. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "preview", style: { height: this.props.width + "px" } },
  44621. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("canvas", { id: "preview-canvas" }),
  44622. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "waitPanel" + (this.state.isLoading ? "" : " hidden") }, "Please wait, loading...")),
  44623. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "preview-config-bar" },
  44624. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { title: "Turn-table animation", onClick: function () { return _this.changeAnimation(); }, className: "button" },
  44625. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__["FontAwesomeIcon"], { icon: this.props.globalState.rotatePreview ? _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_3__["faStop"] : _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_3__["faPlay"] })),
  44626. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { title: "Background color", className: "button align" },
  44627. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("label", { htmlFor: "color-picker", id: "color-picker-label" },
  44628. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_3__["faPalette"] })),
  44629. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { ref: "color-picker", id: "color-picker", type: "color", onChange: function (evt) { return _this.changeBackground(evt.target.value); } })),
  44630. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { title: "Render without back face culling", onClick: function () { return _this.changeBackFaceCulling(!_this.props.globalState.backFaceCulling); }, className: "button" + (!this.props.globalState.backFaceCulling ? " selected" : "") },
  44631. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_3__["faCheckDouble"] })),
  44632. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { title: "Render with depth pre-pass", onClick: function () { return _this.changeDepthPrePass(!_this.props.globalState.depthPrePass); }, className: "button" + (this.props.globalState.depthPrePass ? " selected" : "") },
  44633. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_3__["faClone"] })),
  44634. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { title: "Turn on/off hemispheric light", onClick: function () {
  44635. _this.props.globalState.hemisphericLight = !_this.props.globalState.hemisphericLight;
  44636. _dataStorage__WEBPACK_IMPORTED_MODULE_5__["DataStorage"].StoreBoolean("HemisphericLight", _this.props.globalState.hemisphericLight);
  44637. _this.props.globalState.onLightUpdated.notifyObservers();
  44638. _this.forceUpdate();
  44639. }, className: "button" + (this.props.globalState.hemisphericLight ? " selected" : "") },
  44640. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_3__["faSun"] })),
  44641. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { title: "Turn on/off direction light #0", onClick: function () {
  44642. _this.props.globalState.directionalLight0 = !_this.props.globalState.directionalLight0;
  44643. _dataStorage__WEBPACK_IMPORTED_MODULE_5__["DataStorage"].StoreBoolean("DirectionalLight0", _this.props.globalState.directionalLight0);
  44644. _this.props.globalState.onLightUpdated.notifyObservers();
  44645. _this.forceUpdate();
  44646. }, className: "button" + (this.props.globalState.directionalLight0 ? " selected" : "") },
  44647. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_3__["faLocationArrow"] })),
  44648. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { title: "Turn on/off direction light #1", onClick: function () {
  44649. _this.props.globalState.directionalLight1 = !_this.props.globalState.directionalLight1;
  44650. _dataStorage__WEBPACK_IMPORTED_MODULE_5__["DataStorage"].StoreBoolean("DirectionalLight1", _this.props.globalState.directionalLight1);
  44651. _this.props.globalState.onLightUpdated.notifyObservers();
  44652. _this.forceUpdate();
  44653. }, className: "button" + (this.props.globalState.directionalLight1 ? " selected" : "") },
  44654. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_3__["faLocationArrow"] })))));
  44655. };
  44656. return PreviewAreaComponent;
  44657. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  44658. /***/ }),
  44659. /***/ "./components/preview/previewManager.ts":
  44660. /*!**********************************************!*\
  44661. !*** ./components/preview/previewManager.ts ***!
  44662. \**********************************************/
  44663. /*! exports provided: PreviewManager */
  44664. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  44665. "use strict";
  44666. __webpack_require__.r(__webpack_exports__);
  44667. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PreviewManager", function() { return PreviewManager; });
  44668. /* harmony import */ var babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babylonjs/Materials/Node/nodeMaterial */ "babylonjs/Materials/Textures/texture");
  44669. /* harmony import */ var babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__);
  44670. /* harmony import */ var _previewMeshType__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./previewMeshType */ "./components/preview/previewMeshType.ts");
  44671. /* harmony import */ var _log_logComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../log/logComponent */ "./components/log/logComponent.tsx");
  44672. var PreviewManager = /** @class */ (function () {
  44673. function PreviewManager(targetCanvas, globalState) {
  44674. var _this = this;
  44675. this._nodeMaterial = globalState.nodeMaterial;
  44676. this._globalState = globalState;
  44677. this._onBuildObserver = this._nodeMaterial.onBuildObservable.add(function (nodeMaterial) {
  44678. var serializationObject = nodeMaterial.serialize();
  44679. _this._updatePreview(serializationObject);
  44680. });
  44681. this._onPreviewCommandActivatedObserver = globalState.onPreviewCommandActivated.add(function () {
  44682. _this._refreshPreviewMesh();
  44683. });
  44684. this._onLightUpdatedObserver = globalState.onLightUpdated.add(function () {
  44685. _this._prepareLights();
  44686. });
  44687. this._onUpdateRequiredObserver = globalState.onUpdateRequiredObservable.add(function () {
  44688. var serializationObject = _this._nodeMaterial.serialize();
  44689. _this._updatePreview(serializationObject);
  44690. });
  44691. this._onPreviewBackgroundChangedObserver = globalState.onPreviewBackgroundChanged.add(function () {
  44692. _this._scene.clearColor = _this._globalState.backgroundColor;
  44693. });
  44694. this._onAnimationCommandActivatedObserver = globalState.onAnimationCommandActivated.add(function () {
  44695. _this._handleAnimations();
  44696. });
  44697. this._onBackFaceCullingChangedObserver = globalState.onBackFaceCullingChanged.add(function () {
  44698. _this._material.backFaceCulling = _this._globalState.backFaceCulling;
  44699. });
  44700. this._onDepthPrePassChangedObserver = globalState.onDepthPrePassChanged.add(function () {
  44701. _this._material.needDepthPrePass = _this._globalState.depthPrePass;
  44702. });
  44703. this._engine = new babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Engine"](targetCanvas, true);
  44704. this._scene = new babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Scene"](this._engine);
  44705. this._camera = new babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["ArcRotateCamera"]("Camera", 0, 0.8, 4, babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Vector3"].Zero(), this._scene);
  44706. this._camera.lowerRadiusLimit = 3;
  44707. this._camera.upperRadiusLimit = 10;
  44708. this._camera.wheelPrecision = 20;
  44709. this._camera.minZ = 0.1;
  44710. this._camera.attachControl(targetCanvas, false);
  44711. this._lightParent = new babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["TransformNode"]("LightParent", this._scene);
  44712. this._refreshPreviewMesh();
  44713. this._engine.runRenderLoop(function () {
  44714. _this._engine.resize();
  44715. _this._scene.render();
  44716. });
  44717. // let cameraLastRotation = 0;
  44718. var lastOffsetX = undefined;
  44719. // const lightRotationParallaxSpeed = 0.5;
  44720. var lightRotationSpeed = 0.01;
  44721. this._scene.onPointerObservable.add(function (evt) {
  44722. if (_this._globalState.controlCamera) {
  44723. return;
  44724. }
  44725. if (evt.type === babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["PointerEventTypes"].POINTERUP) {
  44726. lastOffsetX = undefined;
  44727. return;
  44728. }
  44729. if (evt.event.buttons !== 1) {
  44730. return;
  44731. }
  44732. if (lastOffsetX === undefined) {
  44733. lastOffsetX = evt.event.offsetX;
  44734. }
  44735. var rotateLighting = (lastOffsetX - evt.event.offsetX) * lightRotationSpeed;
  44736. _this._lightParent.rotation.y += rotateLighting;
  44737. lastOffsetX = evt.event.offsetX;
  44738. });
  44739. // this._scene.registerBeforeRender(() => {
  44740. // if (this._camera.alpha === cameraLastRotation) {
  44741. // return;
  44742. // }
  44743. // if (!this._globalState.controlCamera) {
  44744. // return;
  44745. // }
  44746. // var rotateLighting = (this._camera.alpha - cameraLastRotation) * lightRotationParallaxSpeed;
  44747. // this._lightParent.rotate(Vector3.Up(), rotateLighting);
  44748. // cameraLastRotation = this._camera.alpha;
  44749. // });
  44750. }
  44751. PreviewManager.prototype._handleAnimations = function () {
  44752. this._scene.stopAllAnimations();
  44753. if (this._globalState.rotatePreview) {
  44754. for (var _i = 0, _a = this._scene.rootNodes; _i < _a.length; _i++) {
  44755. var root = _a[_i];
  44756. var transformNode = root;
  44757. if (transformNode.getClassName() === "TransformNode" || transformNode.getClassName() === "Mesh" || transformNode.getClassName() === "GroundMesh") {
  44758. if (transformNode.rotationQuaternion) {
  44759. transformNode.rotation = transformNode.rotationQuaternion.toEulerAngles();
  44760. transformNode.rotationQuaternion = null;
  44761. }
  44762. babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Animation"].CreateAndStartAnimation("turnTable", root, "rotation.y", 60, 1200, transformNode.rotation.y, transformNode.rotation.y + 2 * Math.PI, 1);
  44763. }
  44764. }
  44765. }
  44766. };
  44767. PreviewManager.prototype._prepareLights = function () {
  44768. // Remove current lights
  44769. var currentLights = this._scene.lights.slice(0);
  44770. for (var _i = 0, currentLights_1 = currentLights; _i < currentLights_1.length; _i++) {
  44771. var light = currentLights_1[_i];
  44772. light.dispose();
  44773. }
  44774. // Create new lights based on settings
  44775. if (this._globalState.hemisphericLight) {
  44776. new babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["HemisphericLight"]("Hemispheric light", new babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Vector3"](0, 1, 0), this._scene);
  44777. }
  44778. if (this._globalState.directionalLight0) {
  44779. var dir0 = new babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["DirectionalLight"]("Directional light #0", new babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Vector3"](0.841626576496605, -0.2193391004130599, -0.49351298337996535), this._scene);
  44780. dir0.intensity = 0.9;
  44781. dir0.diffuse = new babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Color3"](0.9294117647058824, 0.9725490196078431, 0.996078431372549);
  44782. dir0.specular = new babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Color3"](0.9294117647058824, 0.9725490196078431, 0.996078431372549);
  44783. dir0.parent = this._lightParent;
  44784. }
  44785. if (this._globalState.directionalLight1) {
  44786. var dir1 = new babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["DirectionalLight"]("Directional light #1", new babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Vector3"](-0.9519937437504213, -0.24389315636999764, -0.1849974057546125), this._scene);
  44787. dir1.intensity = 1.2;
  44788. dir1.specular = new babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Color3"](0.9803921568627451, 0.9529411764705882, 0.7725490196078432);
  44789. dir1.diffuse = new babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Color3"](0.9803921568627451, 0.9529411764705882, 0.7725490196078432);
  44790. dir1.parent = this._lightParent;
  44791. }
  44792. };
  44793. PreviewManager.prototype._prepareMeshes = function () {
  44794. this._prepareLights();
  44795. // Framing
  44796. this._camera.useFramingBehavior = true;
  44797. var framingBehavior = this._camera.getBehaviorByName("Framing");
  44798. framingBehavior.framingTime = 0;
  44799. framingBehavior.elevationReturnTime = -1;
  44800. if (this._scene.meshes.length) {
  44801. var worldExtends = this._scene.getWorldExtends();
  44802. this._camera.lowerRadiusLimit = null;
  44803. this._camera.upperRadiusLimit = null;
  44804. framingBehavior.zoomOnBoundingInfo(worldExtends.min, worldExtends.max);
  44805. }
  44806. this._camera.pinchPrecision = 200 / this._camera.radius;
  44807. this._camera.upperRadiusLimit = 5 * this._camera.radius;
  44808. this._camera.wheelDeltaPercentage = 0.01;
  44809. this._camera.pinchDeltaPercentage = 0.01;
  44810. // Animations
  44811. this._handleAnimations();
  44812. // Material
  44813. var serializationObject = this._nodeMaterial.serialize();
  44814. this._updatePreview(serializationObject);
  44815. };
  44816. PreviewManager.prototype._refreshPreviewMesh = function () {
  44817. var _this = this;
  44818. if (this._currentType !== this._globalState.previewMeshType || this._currentType === _previewMeshType__WEBPACK_IMPORTED_MODULE_1__["PreviewMeshType"].Custom) {
  44819. this._currentType = this._globalState.previewMeshType;
  44820. if (this._meshes && this._meshes.length) {
  44821. for (var _i = 0, _a = this._meshes; _i < _a.length; _i++) {
  44822. var mesh = _a[_i];
  44823. mesh.dispose();
  44824. }
  44825. }
  44826. this._meshes = [];
  44827. var lights = this._scene.lights.slice(0);
  44828. for (var _b = 0, lights_1 = lights; _b < lights_1.length; _b++) {
  44829. var light = lights_1[_b];
  44830. light.dispose();
  44831. }
  44832. this._engine.releaseEffects();
  44833. babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["SceneLoader"].ShowLoadingScreen = false;
  44834. this._globalState.onIsLoadingChanged.notifyObservers(true);
  44835. switch (this._globalState.previewMeshType) {
  44836. case _previewMeshType__WEBPACK_IMPORTED_MODULE_1__["PreviewMeshType"].Box:
  44837. babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["SceneLoader"].AppendAsync("https://models.babylonjs.com/", "roundedCube.glb", this._scene).then(function () {
  44838. var _a;
  44839. (_a = _this._meshes).push.apply(_a, _this._scene.meshes);
  44840. _this._prepareMeshes();
  44841. });
  44842. break;
  44843. case _previewMeshType__WEBPACK_IMPORTED_MODULE_1__["PreviewMeshType"].Sphere:
  44844. this._meshes.push(babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Mesh"].CreateSphere("dummy-sphere", 32, 2, this._scene));
  44845. break;
  44846. case _previewMeshType__WEBPACK_IMPORTED_MODULE_1__["PreviewMeshType"].Torus:
  44847. this._meshes.push(babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Mesh"].CreateTorus("dummy-torus", 2, 0.5, 32, this._scene));
  44848. break;
  44849. case _previewMeshType__WEBPACK_IMPORTED_MODULE_1__["PreviewMeshType"].Cylinder:
  44850. babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["SceneLoader"].AppendAsync("https://models.babylonjs.com/", "roundedCylinder.glb", this._scene).then(function () {
  44851. var _a;
  44852. (_a = _this._meshes).push.apply(_a, _this._scene.meshes);
  44853. _this._prepareMeshes();
  44854. });
  44855. return;
  44856. case _previewMeshType__WEBPACK_IMPORTED_MODULE_1__["PreviewMeshType"].Plane:
  44857. this._meshes.push(babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["Mesh"].CreateGround("dummy-plane", 2, 2, 128, this._scene));
  44858. break;
  44859. case _previewMeshType__WEBPACK_IMPORTED_MODULE_1__["PreviewMeshType"].ShaderBall:
  44860. babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["SceneLoader"].AppendAsync("https://models.babylonjs.com/", "shaderBall.glb", this._scene).then(function () {
  44861. var _a;
  44862. (_a = _this._meshes).push.apply(_a, _this._scene.meshes);
  44863. _this._prepareMeshes();
  44864. });
  44865. return;
  44866. case _previewMeshType__WEBPACK_IMPORTED_MODULE_1__["PreviewMeshType"].Custom:
  44867. babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["SceneLoader"].AppendAsync("file:", this._globalState.previewMeshFile, this._scene).then(function () {
  44868. var _a;
  44869. (_a = _this._meshes).push.apply(_a, _this._scene.meshes);
  44870. _this._prepareMeshes();
  44871. });
  44872. return;
  44873. }
  44874. this._prepareMeshes();
  44875. }
  44876. };
  44877. PreviewManager.prototype._forceCompilationAsync = function (material, mesh) {
  44878. return material.forceCompilationAsync(mesh);
  44879. };
  44880. PreviewManager.prototype._updatePreview = function (serializationObject) {
  44881. var _this = this;
  44882. try {
  44883. var tempMaterial_1 = babylonjs_Materials_Node_nodeMaterial__WEBPACK_IMPORTED_MODULE_0__["NodeMaterial"].Parse(serializationObject, this._scene);
  44884. tempMaterial_1.backFaceCulling = this._globalState.backFaceCulling;
  44885. tempMaterial_1.needDepthPrePass = this._globalState.depthPrePass;
  44886. if (this._meshes.length) {
  44887. var tasks = this._meshes.map(function (m) { return _this._forceCompilationAsync(tempMaterial_1, m); });
  44888. Promise.all(tasks).then(function () {
  44889. for (var _i = 0, _a = _this._meshes; _i < _a.length; _i++) {
  44890. var mesh = _a[_i];
  44891. mesh.material = tempMaterial_1;
  44892. }
  44893. if (_this._material) {
  44894. _this._material.dispose();
  44895. }
  44896. _this._material = tempMaterial_1;
  44897. _this._globalState.onIsLoadingChanged.notifyObservers(false);
  44898. }).catch(function (reason) {
  44899. _this._globalState.onLogRequiredObservable.notifyObservers(new _log_logComponent__WEBPACK_IMPORTED_MODULE_2__["LogEntry"]("Shader compilation error:\r\n" + reason, true));
  44900. _this._globalState.onIsLoadingChanged.notifyObservers(false);
  44901. });
  44902. }
  44903. else {
  44904. this._material = tempMaterial_1;
  44905. }
  44906. }
  44907. catch (err) {
  44908. // Ignore the error
  44909. }
  44910. };
  44911. PreviewManager.prototype.dispose = function () {
  44912. this._nodeMaterial.onBuildObservable.remove(this._onBuildObserver);
  44913. this._globalState.onPreviewCommandActivated.remove(this._onPreviewCommandActivatedObserver);
  44914. this._globalState.onUpdateRequiredObservable.remove(this._onUpdateRequiredObserver);
  44915. this._globalState.onAnimationCommandActivated.remove(this._onAnimationCommandActivatedObserver);
  44916. this._globalState.onPreviewBackgroundChanged.remove(this._onPreviewBackgroundChangedObserver);
  44917. this._globalState.onBackFaceCullingChanged.remove(this._onBackFaceCullingChangedObserver);
  44918. this._globalState.onDepthPrePassChanged.remove(this._onDepthPrePassChangedObserver);
  44919. this._globalState.onLightUpdated.remove(this._onLightUpdatedObserver);
  44920. if (this._material) {
  44921. this._material.dispose();
  44922. }
  44923. this._camera.dispose();
  44924. for (var _i = 0, _a = this._meshes; _i < _a.length; _i++) {
  44925. var mesh = _a[_i];
  44926. mesh.dispose();
  44927. }
  44928. this._scene.dispose();
  44929. this._engine.dispose();
  44930. };
  44931. return PreviewManager;
  44932. }());
  44933. /***/ }),
  44934. /***/ "./components/preview/previewMeshControlComponent.tsx":
  44935. /*!************************************************************!*\
  44936. !*** ./components/preview/previewMeshControlComponent.tsx ***!
  44937. \************************************************************/
  44938. /*! exports provided: PreviewMeshControlComponent */
  44939. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  44940. "use strict";
  44941. __webpack_require__.r(__webpack_exports__);
  44942. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PreviewMeshControlComponent", function() { return PreviewMeshControlComponent; });
  44943. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  44944. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  44945. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  44946. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  44947. /* harmony import */ var _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @fortawesome/free-solid-svg-icons */ "../../node_modules/@fortawesome/free-solid-svg-icons/index.es.js");
  44948. /* harmony import */ var _previewMeshType__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./previewMeshType */ "./components/preview/previewMeshType.ts");
  44949. /* harmony import */ var _dataStorage__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../dataStorage */ "./dataStorage.ts");
  44950. var PreviewMeshControlComponent = /** @class */ (function (_super) {
  44951. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PreviewMeshControlComponent, _super);
  44952. function PreviewMeshControlComponent() {
  44953. return _super !== null && _super.apply(this, arguments) || this;
  44954. }
  44955. PreviewMeshControlComponent.prototype.changeMeshType = function (newOne) {
  44956. if (this.props.globalState.previewMeshType === newOne) {
  44957. return;
  44958. }
  44959. this.props.globalState.previewMeshType = newOne;
  44960. this.props.globalState.onPreviewCommandActivated.notifyObservers();
  44961. _dataStorage__WEBPACK_IMPORTED_MODULE_5__["DataStorage"].StoreNumber("PreviewMeshType", newOne);
  44962. this.forceUpdate();
  44963. };
  44964. PreviewMeshControlComponent.prototype.useCustomMesh = function (evt) {
  44965. var files = evt.target.files;
  44966. if (files && files.length) {
  44967. var file = files[0];
  44968. this.props.globalState.previewMeshFile = file;
  44969. this.props.globalState.previewMeshType = _previewMeshType__WEBPACK_IMPORTED_MODULE_4__["PreviewMeshType"].Custom;
  44970. this.props.globalState.onPreviewCommandActivated.notifyObservers();
  44971. this.forceUpdate();
  44972. }
  44973. document.getElementById("file-picker").value = "";
  44974. };
  44975. PreviewMeshControlComponent.prototype.render = function () {
  44976. var _this = this;
  44977. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "preview-mesh-bar" },
  44978. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { title: "Preview with a cube", onClick: function () { return _this.changeMeshType(_previewMeshType__WEBPACK_IMPORTED_MODULE_4__["PreviewMeshType"].Box); }, className: "button" + (this.props.globalState.previewMeshType === _previewMeshType__WEBPACK_IMPORTED_MODULE_4__["PreviewMeshType"].Box ? " selected" : "") },
  44979. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_3__["faCube"] })),
  44980. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { title: "Preview with a sphere", onClick: function () { return _this.changeMeshType(_previewMeshType__WEBPACK_IMPORTED_MODULE_4__["PreviewMeshType"].Sphere); }, className: "button" + (this.props.globalState.previewMeshType === _previewMeshType__WEBPACK_IMPORTED_MODULE_4__["PreviewMeshType"].Sphere ? " selected" : "") },
  44981. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_3__["faCircle"] })),
  44982. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { title: "Preview with a torus", onClick: function () { return _this.changeMeshType(_previewMeshType__WEBPACK_IMPORTED_MODULE_4__["PreviewMeshType"].Torus); }, className: "button" + (this.props.globalState.previewMeshType === _previewMeshType__WEBPACK_IMPORTED_MODULE_4__["PreviewMeshType"].Torus ? " selected" : "") },
  44983. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_3__["faRing"] })),
  44984. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { title: "Preview with a cylinder", onClick: function () { return _this.changeMeshType(_previewMeshType__WEBPACK_IMPORTED_MODULE_4__["PreviewMeshType"].Cylinder); }, className: "button" + (this.props.globalState.previewMeshType === _previewMeshType__WEBPACK_IMPORTED_MODULE_4__["PreviewMeshType"].Cylinder ? " selected" : "") },
  44985. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_3__["faHockeyPuck"] })),
  44986. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { title: "Preview with a plane", onClick: function () { return _this.changeMeshType(_previewMeshType__WEBPACK_IMPORTED_MODULE_4__["PreviewMeshType"].Plane); }, className: "button" + (this.props.globalState.previewMeshType === _previewMeshType__WEBPACK_IMPORTED_MODULE_4__["PreviewMeshType"].Plane ? " selected" : "") },
  44987. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_3__["faSquareFull"] })),
  44988. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { title: "Preview with a shader ball", onClick: function () { return _this.changeMeshType(_previewMeshType__WEBPACK_IMPORTED_MODULE_4__["PreviewMeshType"].ShaderBall); }, className: "button" + (this.props.globalState.previewMeshType === _previewMeshType__WEBPACK_IMPORTED_MODULE_4__["PreviewMeshType"].ShaderBall ? " selected" : "") },
  44989. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_3__["faDotCircle"] })),
  44990. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "button align", title: "Preview with a custom mesh" },
  44991. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("label", { htmlFor: "file-picker", id: "file-picker-label" },
  44992. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_3__["faPlus"] })),
  44993. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { ref: "file-picker", id: "file-picker", type: "file", onChange: function (evt) { return _this.useCustomMesh(evt); }, accept: ".gltf, .glb, .babylon, .obj" }))));
  44994. };
  44995. return PreviewMeshControlComponent;
  44996. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  44997. /***/ }),
  44998. /***/ "./components/preview/previewMeshType.ts":
  44999. /*!***********************************************!*\
  45000. !*** ./components/preview/previewMeshType.ts ***!
  45001. \***********************************************/
  45002. /*! exports provided: PreviewMeshType */
  45003. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  45004. "use strict";
  45005. __webpack_require__.r(__webpack_exports__);
  45006. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PreviewMeshType", function() { return PreviewMeshType; });
  45007. var PreviewMeshType;
  45008. (function (PreviewMeshType) {
  45009. PreviewMeshType[PreviewMeshType["Sphere"] = 0] = "Sphere";
  45010. PreviewMeshType[PreviewMeshType["Box"] = 1] = "Box";
  45011. PreviewMeshType[PreviewMeshType["Torus"] = 2] = "Torus";
  45012. PreviewMeshType[PreviewMeshType["Cylinder"] = 3] = "Cylinder";
  45013. PreviewMeshType[PreviewMeshType["Plane"] = 4] = "Plane";
  45014. PreviewMeshType[PreviewMeshType["ShaderBall"] = 5] = "ShaderBall";
  45015. PreviewMeshType[PreviewMeshType["Custom"] = 6] = "Custom";
  45016. })(PreviewMeshType || (PreviewMeshType = {}));
  45017. /***/ }),
  45018. /***/ "./components/propertyTab/properties/color3PropertyTabComponent.tsx":
  45019. /*!**************************************************************************!*\
  45020. !*** ./components/propertyTab/properties/color3PropertyTabComponent.tsx ***!
  45021. \**************************************************************************/
  45022. /*! exports provided: Color3PropertyTabComponent */
  45023. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  45024. "use strict";
  45025. __webpack_require__.r(__webpack_exports__);
  45026. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Color3PropertyTabComponent", function() { return Color3PropertyTabComponent; });
  45027. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  45028. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  45029. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  45030. /* harmony import */ var _sharedComponents_color3LineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharedComponents/color3LineComponent */ "./sharedComponents/color3LineComponent.tsx");
  45031. var Color3PropertyTabComponent = /** @class */ (function (_super) {
  45032. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(Color3PropertyTabComponent, _super);
  45033. function Color3PropertyTabComponent() {
  45034. return _super !== null && _super.apply(this, arguments) || this;
  45035. }
  45036. Color3PropertyTabComponent.prototype.render = function () {
  45037. var _this = this;
  45038. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_color3LineComponent__WEBPACK_IMPORTED_MODULE_2__["Color3LineComponent"], { label: "Value", target: this.props.inputBlock, propertyName: "value", onChange: function () {
  45039. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  45040. } }));
  45041. };
  45042. return Color3PropertyTabComponent;
  45043. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  45044. /***/ }),
  45045. /***/ "./components/propertyTab/properties/floatPropertyTabComponent.tsx":
  45046. /*!*************************************************************************!*\
  45047. !*** ./components/propertyTab/properties/floatPropertyTabComponent.tsx ***!
  45048. \*************************************************************************/
  45049. /*! exports provided: FloatPropertyTabComponent */
  45050. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  45051. "use strict";
  45052. __webpack_require__.r(__webpack_exports__);
  45053. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FloatPropertyTabComponent", function() { return FloatPropertyTabComponent; });
  45054. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  45055. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  45056. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  45057. /* harmony import */ var _sharedComponents_floatLineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharedComponents/floatLineComponent */ "./sharedComponents/floatLineComponent.tsx");
  45058. var FloatPropertyTabComponent = /** @class */ (function (_super) {
  45059. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(FloatPropertyTabComponent, _super);
  45060. function FloatPropertyTabComponent() {
  45061. return _super !== null && _super.apply(this, arguments) || this;
  45062. }
  45063. FloatPropertyTabComponent.prototype.render = function () {
  45064. var _this = this;
  45065. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_floatLineComponent__WEBPACK_IMPORTED_MODULE_2__["FloatLineComponent"], { label: "Value", target: this.props.inputBlock, propertyName: "value", onChange: function () {
  45066. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  45067. } }));
  45068. };
  45069. return FloatPropertyTabComponent;
  45070. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  45071. /***/ }),
  45072. /***/ "./components/propertyTab/properties/matrixPropertyTabComponent.tsx":
  45073. /*!**************************************************************************!*\
  45074. !*** ./components/propertyTab/properties/matrixPropertyTabComponent.tsx ***!
  45075. \**************************************************************************/
  45076. /*! exports provided: MatrixPropertyTabComponent */
  45077. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  45078. "use strict";
  45079. __webpack_require__.r(__webpack_exports__);
  45080. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MatrixPropertyTabComponent", function() { return MatrixPropertyTabComponent; });
  45081. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  45082. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  45083. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  45084. /* harmony import */ var _sharedComponents_matrixLineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharedComponents/matrixLineComponent */ "./sharedComponents/matrixLineComponent.tsx");
  45085. var MatrixPropertyTabComponent = /** @class */ (function (_super) {
  45086. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(MatrixPropertyTabComponent, _super);
  45087. function MatrixPropertyTabComponent() {
  45088. return _super !== null && _super.apply(this, arguments) || this;
  45089. }
  45090. MatrixPropertyTabComponent.prototype.render = function () {
  45091. var _this = this;
  45092. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_matrixLineComponent__WEBPACK_IMPORTED_MODULE_2__["MatrixLineComponent"], { label: "Value", target: this.props.inputBlock, propertyName: "value", onChange: function () {
  45093. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  45094. }, mode: this.props.inputBlock.matrixMode, onModeChange: function (mode) {
  45095. _this.props.inputBlock.matrixMode = mode;
  45096. } }));
  45097. };
  45098. return MatrixPropertyTabComponent;
  45099. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  45100. /***/ }),
  45101. /***/ "./components/propertyTab/properties/vector2PropertyTabComponent.tsx":
  45102. /*!***************************************************************************!*\
  45103. !*** ./components/propertyTab/properties/vector2PropertyTabComponent.tsx ***!
  45104. \***************************************************************************/
  45105. /*! exports provided: Vector2PropertyTabComponent */
  45106. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  45107. "use strict";
  45108. __webpack_require__.r(__webpack_exports__);
  45109. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vector2PropertyTabComponent", function() { return Vector2PropertyTabComponent; });
  45110. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  45111. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  45112. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  45113. /* harmony import */ var _sharedComponents_vector2LineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharedComponents/vector2LineComponent */ "./sharedComponents/vector2LineComponent.tsx");
  45114. var Vector2PropertyTabComponent = /** @class */ (function (_super) {
  45115. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(Vector2PropertyTabComponent, _super);
  45116. function Vector2PropertyTabComponent() {
  45117. return _super !== null && _super.apply(this, arguments) || this;
  45118. }
  45119. Vector2PropertyTabComponent.prototype.render = function () {
  45120. var _this = this;
  45121. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_vector2LineComponent__WEBPACK_IMPORTED_MODULE_2__["Vector2LineComponent"], { label: "Value", target: this.props.inputBlock, propertyName: "value", onChange: function () {
  45122. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  45123. } }));
  45124. };
  45125. return Vector2PropertyTabComponent;
  45126. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  45127. /***/ }),
  45128. /***/ "./components/propertyTab/properties/vector3PropertyTabComponent.tsx":
  45129. /*!***************************************************************************!*\
  45130. !*** ./components/propertyTab/properties/vector3PropertyTabComponent.tsx ***!
  45131. \***************************************************************************/
  45132. /*! exports provided: Vector3PropertyTabComponent */
  45133. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  45134. "use strict";
  45135. __webpack_require__.r(__webpack_exports__);
  45136. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vector3PropertyTabComponent", function() { return Vector3PropertyTabComponent; });
  45137. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  45138. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  45139. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  45140. /* harmony import */ var _sharedComponents_vector3LineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharedComponents/vector3LineComponent */ "./sharedComponents/vector3LineComponent.tsx");
  45141. var Vector3PropertyTabComponent = /** @class */ (function (_super) {
  45142. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(Vector3PropertyTabComponent, _super);
  45143. function Vector3PropertyTabComponent() {
  45144. return _super !== null && _super.apply(this, arguments) || this;
  45145. }
  45146. Vector3PropertyTabComponent.prototype.render = function () {
  45147. var _this = this;
  45148. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_vector3LineComponent__WEBPACK_IMPORTED_MODULE_2__["Vector3LineComponent"], { label: "Value", target: this.props.inputBlock, propertyName: "value", onChange: function () {
  45149. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  45150. } }));
  45151. };
  45152. return Vector3PropertyTabComponent;
  45153. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  45154. /***/ }),
  45155. /***/ "./components/propertyTab/properties/vector4PropertyTabComponent.tsx":
  45156. /*!***************************************************************************!*\
  45157. !*** ./components/propertyTab/properties/vector4PropertyTabComponent.tsx ***!
  45158. \***************************************************************************/
  45159. /*! exports provided: Vector4PropertyTabComponent */
  45160. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  45161. "use strict";
  45162. __webpack_require__.r(__webpack_exports__);
  45163. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vector4PropertyTabComponent", function() { return Vector4PropertyTabComponent; });
  45164. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  45165. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  45166. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  45167. /* harmony import */ var _sharedComponents_vector4LineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharedComponents/vector4LineComponent */ "./sharedComponents/vector4LineComponent.tsx");
  45168. var Vector4PropertyTabComponent = /** @class */ (function (_super) {
  45169. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(Vector4PropertyTabComponent, _super);
  45170. function Vector4PropertyTabComponent() {
  45171. return _super !== null && _super.apply(this, arguments) || this;
  45172. }
  45173. Vector4PropertyTabComponent.prototype.render = function () {
  45174. var _this = this;
  45175. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_vector4LineComponent__WEBPACK_IMPORTED_MODULE_2__["Vector4LineComponent"], { label: "Value", target: this.props.inputBlock, propertyName: "value", onChange: function () {
  45176. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  45177. } }));
  45178. };
  45179. return Vector4PropertyTabComponent;
  45180. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  45181. /***/ }),
  45182. /***/ "./components/propertyTab/propertyTab.scss":
  45183. /*!*************************************************!*\
  45184. !*** ./components/propertyTab/propertyTab.scss ***!
  45185. \*************************************************/
  45186. /*! no static exports found */
  45187. /***/ (function(module, exports, __webpack_require__) {
  45188. var content = __webpack_require__(/*! !../../../../node_modules/css-loader!../../../../node_modules/sass-loader/lib/loader.js!./propertyTab.scss */ "../../node_modules/css-loader/index.js!../../node_modules/sass-loader/lib/loader.js!./components/propertyTab/propertyTab.scss");
  45189. if(typeof content === 'string') content = [[module.i, content, '']];
  45190. var transform;
  45191. var insertInto;
  45192. var options = {"hmr":true}
  45193. options.transform = transform
  45194. options.insertInto = undefined;
  45195. var update = __webpack_require__(/*! ../../../../node_modules/style-loader/lib/addStyles.js */ "../../node_modules/style-loader/lib/addStyles.js")(content, options);
  45196. if(content.locals) module.exports = content.locals;
  45197. if(false) {}
  45198. /***/ }),
  45199. /***/ "./components/propertyTab/propertyTabComponent.tsx":
  45200. /*!*********************************************************!*\
  45201. !*** ./components/propertyTab/propertyTabComponent.tsx ***!
  45202. \*********************************************************/
  45203. /*! exports provided: PropertyTabComponent */
  45204. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  45205. "use strict";
  45206. __webpack_require__.r(__webpack_exports__);
  45207. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PropertyTabComponent", function() { return PropertyTabComponent; });
  45208. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  45209. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  45210. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  45211. /* harmony import */ var _sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../sharedComponents/buttonLineComponent */ "./sharedComponents/buttonLineComponent.tsx");
  45212. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  45213. /* harmony import */ var _stringTools__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../stringTools */ "./stringTools.ts");
  45214. /* harmony import */ var _sharedComponents_fileButtonLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../sharedComponents/fileButtonLineComponent */ "./sharedComponents/fileButtonLineComponent.tsx");
  45215. /* harmony import */ var babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! babylonjs/Misc/tools */ "babylonjs/Materials/Textures/texture");
  45216. /* harmony import */ var babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__);
  45217. /* harmony import */ var _serializationTools__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../serializationTools */ "./serializationTools.ts");
  45218. /* harmony import */ var _sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../sharedComponents/checkBoxLineComponent */ "./sharedComponents/checkBoxLineComponent.tsx");
  45219. /* harmony import */ var _dataStorage__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../dataStorage */ "./dataStorage.ts");
  45220. /* harmony import */ var _diagram_graphNode__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../diagram/graphNode */ "./diagram/graphNode.ts");
  45221. /* harmony import */ var _sharedComponents_sliderLineComponent__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../sharedComponents/sliderLineComponent */ "./sharedComponents/sliderLineComponent.tsx");
  45222. /* harmony import */ var _diagram_graphFrame__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../diagram/graphFrame */ "./diagram/graphFrame.ts");
  45223. /* harmony import */ var _sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../sharedComponents/textInputLineComponent */ "./sharedComponents/textInputLineComponent.tsx");
  45224. /* harmony import */ var _sharedComponents_color3LineComponent__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../sharedComponents/color3LineComponent */ "./sharedComponents/color3LineComponent.tsx");
  45225. /* harmony import */ var _sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../sharedComponents/textLineComponent */ "./sharedComponents/textLineComponent.tsx");
  45226. __webpack_require__(/*! ./propertyTab.scss */ "./components/propertyTab/propertyTab.scss");
  45227. var PropertyTabComponent = /** @class */ (function (_super) {
  45228. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PropertyTabComponent, _super);
  45229. function PropertyTabComponent(props) {
  45230. var _this = _super.call(this, props) || this;
  45231. _this.state = { currentNode: null, currentFrame: null };
  45232. return _this;
  45233. }
  45234. PropertyTabComponent.prototype.componentDidMount = function () {
  45235. var _this = this;
  45236. this.props.globalState.onSelectionChangedObservable.add(function (selection) {
  45237. if (selection instanceof _diagram_graphNode__WEBPACK_IMPORTED_MODULE_10__["GraphNode"]) {
  45238. _this.setState({ currentNode: selection, currentFrame: null });
  45239. }
  45240. else if (selection instanceof _diagram_graphFrame__WEBPACK_IMPORTED_MODULE_12__["GraphFrame"]) {
  45241. _this.setState({ currentNode: null, currentFrame: selection });
  45242. }
  45243. else {
  45244. _this.setState({ currentNode: null, currentFrame: null });
  45245. }
  45246. });
  45247. };
  45248. PropertyTabComponent.prototype.load = function (file) {
  45249. var _this = this;
  45250. babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["Tools"].ReadFile(file, function (data) {
  45251. var decoder = new TextDecoder("utf-8");
  45252. _serializationTools__WEBPACK_IMPORTED_MODULE_7__["SerializationTools"].Deserialize(JSON.parse(decoder.decode(data)), _this.props.globalState);
  45253. }, undefined, true);
  45254. };
  45255. PropertyTabComponent.prototype.save = function () {
  45256. var json = _serializationTools__WEBPACK_IMPORTED_MODULE_7__["SerializationTools"].Serialize(this.props.globalState.nodeMaterial, this.props.globalState);
  45257. _stringTools__WEBPACK_IMPORTED_MODULE_4__["StringTools"].DownloadAsFile(this.props.globalState.hostDocument, json, "nodeMaterial.json");
  45258. };
  45259. PropertyTabComponent.prototype.customSave = function () {
  45260. var _this = this;
  45261. this.props.globalState.onLogRequiredObservable.notifyObservers({ message: "Saving your material to Babylon.js snippet server...", isError: false });
  45262. this.props.globalState.customSave.action(_serializationTools__WEBPACK_IMPORTED_MODULE_7__["SerializationTools"].Serialize(this.props.globalState.nodeMaterial, this.props.globalState)).then(function () {
  45263. _this.props.globalState.onLogRequiredObservable.notifyObservers({ message: "Material saved successfully", isError: false });
  45264. }).catch(function (err) {
  45265. _this.props.globalState.onLogRequiredObservable.notifyObservers({ message: err, isError: true });
  45266. });
  45267. };
  45268. PropertyTabComponent.prototype.render = function () {
  45269. var _this = this;
  45270. if (this.state.currentNode) {
  45271. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "propertyTab" },
  45272. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "header" },
  45273. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { id: "logo", src: "https://www.babylonjs.com/Assets/logo-babylonjs-social-twitter.png" }),
  45274. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "title" }, "NODE MATERIAL EDITOR")),
  45275. this.state.currentNode.renderProperties()));
  45276. }
  45277. if (this.state.currentFrame) {
  45278. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "propertyTab" },
  45279. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "header" },
  45280. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { id: "logo", src: "https://www.babylonjs.com/Assets/logo-babylonjs-social-twitter.png" }),
  45281. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "title" }, "NODE MATERIAL EDITOR")),
  45282. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  45283. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { title: "GENERAL" },
  45284. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_13__["TextInputLineComponent"], { globalState: this.props.globalState, label: "Name", propertyName: "name", target: this.state.currentFrame }),
  45285. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_color3LineComponent__WEBPACK_IMPORTED_MODULE_14__["Color3LineComponent"], { label: "Color", target: this.state.currentFrame, propertyName: "color" }),
  45286. !this.state.currentFrame.isCollapsed &&
  45287. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__["ButtonLineComponent"], { label: "Collapse", onClick: function () {
  45288. _this.state.currentFrame.isCollapsed = true;
  45289. _this.forceUpdate();
  45290. } }),
  45291. this.state.currentFrame.isCollapsed &&
  45292. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__["ButtonLineComponent"], { label: "Expand", onClick: function () {
  45293. _this.state.currentFrame.isCollapsed = false;
  45294. _this.forceUpdate();
  45295. } })))));
  45296. }
  45297. var gridSize = _dataStorage__WEBPACK_IMPORTED_MODULE_9__["DataStorage"].ReadNumber("GridSize", 20);
  45298. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "propertyTab" },
  45299. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "header" },
  45300. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("img", { id: "logo", src: "https://www.babylonjs.com/Assets/logo-babylonjs-social-twitter.png" }),
  45301. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "title" }, "NODE MATERIAL EDITOR")),
  45302. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  45303. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { title: "GENERAL" },
  45304. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_15__["TextLineComponent"], { label: "Version", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_6__["Engine"].Version }),
  45305. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__["ButtonLineComponent"], { label: "Reset to default", onClick: function () {
  45306. _this.props.globalState.nodeMaterial.setToDefault();
  45307. _this.props.globalState.onResetRequiredObservable.notifyObservers();
  45308. } })),
  45309. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { title: "UI" },
  45310. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__["ButtonLineComponent"], { label: "Zoom to fit", onClick: function () {
  45311. _this.props.globalState.onZoomToFitRequiredObservable.notifyObservers();
  45312. } }),
  45313. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__["ButtonLineComponent"], { label: "Reorganize", onClick: function () {
  45314. _this.props.globalState.onReOrganizedRequiredObservable.notifyObservers();
  45315. } })),
  45316. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { title: "OPTIONS" },
  45317. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_8__["CheckBoxLineComponent"], { label: "Embed textures when saving", isSelected: function () { return _dataStorage__WEBPACK_IMPORTED_MODULE_9__["DataStorage"].ReadBoolean("EmbedTextures", true); }, onSelect: function (value) {
  45318. _dataStorage__WEBPACK_IMPORTED_MODULE_9__["DataStorage"].StoreBoolean("EmbedTextures", value);
  45319. } }),
  45320. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_sliderLineComponent__WEBPACK_IMPORTED_MODULE_11__["SliderLineComponent"], { label: "Grid size", minimum: 0, maximum: 100, step: 5, decimalCount: 0, directValue: gridSize, onChange: function (value) {
  45321. _dataStorage__WEBPACK_IMPORTED_MODULE_9__["DataStorage"].StoreNumber("GridSize", value);
  45322. _this.props.globalState.onGridSizeChanged.notifyObservers();
  45323. _this.forceUpdate();
  45324. } }),
  45325. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_8__["CheckBoxLineComponent"], { label: "Show grid", isSelected: function () { return _dataStorage__WEBPACK_IMPORTED_MODULE_9__["DataStorage"].ReadBoolean("ShowGrid", true); }, onSelect: function (value) {
  45326. _dataStorage__WEBPACK_IMPORTED_MODULE_9__["DataStorage"].StoreBoolean("ShowGrid", value);
  45327. _this.props.globalState.onGridSizeChanged.notifyObservers();
  45328. } })),
  45329. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_3__["LineContainerComponent"], { title: "FILE" },
  45330. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_fileButtonLineComponent__WEBPACK_IMPORTED_MODULE_5__["FileButtonLineComponent"], { label: "Load", onClick: function (file) { return _this.load(file); }, accept: ".json" }),
  45331. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__["ButtonLineComponent"], { label: "Save", onClick: function () {
  45332. _this.save();
  45333. } }),
  45334. this.props.globalState.customSave &&
  45335. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__["ButtonLineComponent"], { label: this.props.globalState.customSave.label, onClick: function () {
  45336. _this.customSave();
  45337. } }),
  45338. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__["ButtonLineComponent"], { label: "Generate code", onClick: function () {
  45339. _stringTools__WEBPACK_IMPORTED_MODULE_4__["StringTools"].DownloadAsFile(_this.props.globalState.hostDocument, _this.props.globalState.nodeMaterial.generateCode(), "code.txt");
  45340. } }),
  45341. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_2__["ButtonLineComponent"], { label: "Export shaders", onClick: function () {
  45342. _stringTools__WEBPACK_IMPORTED_MODULE_4__["StringTools"].DownloadAsFile(_this.props.globalState.hostDocument, _this.props.globalState.nodeMaterial.compiledShaders, "shaders.txt");
  45343. } })))));
  45344. };
  45345. return PropertyTabComponent;
  45346. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  45347. /***/ }),
  45348. /***/ "./dataStorage.ts":
  45349. /*!************************!*\
  45350. !*** ./dataStorage.ts ***!
  45351. \************************/
  45352. /*! exports provided: DataStorage */
  45353. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  45354. "use strict";
  45355. __webpack_require__.r(__webpack_exports__);
  45356. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DataStorage", function() { return DataStorage; });
  45357. var DataStorage = /** @class */ (function () {
  45358. function DataStorage() {
  45359. }
  45360. DataStorage.ReadBoolean = function (key, defaultValue) {
  45361. try {
  45362. if (this._InMemoryStorage && this._InMemoryStorage[key] !== undefined) {
  45363. return this._InMemoryStorage[key];
  45364. }
  45365. else if (typeof (Storage) !== "undefined" && localStorage.getItem(key) !== null) {
  45366. return localStorage.getItem(key) === "true";
  45367. }
  45368. else {
  45369. return defaultValue;
  45370. }
  45371. }
  45372. catch (e) {
  45373. this._InMemoryStorage = {};
  45374. this._InMemoryStorage[key] = defaultValue;
  45375. return defaultValue;
  45376. }
  45377. };
  45378. DataStorage.StoreBoolean = function (key, value) {
  45379. try {
  45380. if (this._InMemoryStorage) {
  45381. this._InMemoryStorage[key] = value;
  45382. }
  45383. else if (typeof (Storage) !== "undefined") {
  45384. localStorage.setItem(key, value ? "true" : "false");
  45385. }
  45386. }
  45387. catch (e) {
  45388. this._InMemoryStorage = {};
  45389. this._InMemoryStorage[key] = value;
  45390. }
  45391. };
  45392. DataStorage.ReadNumber = function (key, defaultValue) {
  45393. try {
  45394. if (this._InMemoryStorage && this._InMemoryStorage[key] !== undefined) {
  45395. return this._InMemoryStorage[key];
  45396. }
  45397. else if (typeof (Storage) !== "undefined" && localStorage.getItem(key) !== null) {
  45398. return parseFloat(localStorage.getItem(key));
  45399. }
  45400. else {
  45401. return defaultValue;
  45402. }
  45403. }
  45404. catch (e) {
  45405. this._InMemoryStorage = {};
  45406. this._InMemoryStorage[key] = defaultValue;
  45407. return defaultValue;
  45408. }
  45409. };
  45410. DataStorage.StoreNumber = function (key, value) {
  45411. try {
  45412. if (this._InMemoryStorage) {
  45413. this._InMemoryStorage[key] = value;
  45414. }
  45415. else if (typeof (Storage) !== "undefined") {
  45416. localStorage.setItem(key, value.toString());
  45417. }
  45418. }
  45419. catch (e) {
  45420. this._InMemoryStorage = {};
  45421. this._InMemoryStorage[key] = value;
  45422. }
  45423. };
  45424. return DataStorage;
  45425. }());
  45426. /***/ }),
  45427. /***/ "./diagram/display/clampDisplayManager.ts":
  45428. /*!************************************************!*\
  45429. !*** ./diagram/display/clampDisplayManager.ts ***!
  45430. \************************************************/
  45431. /*! exports provided: ClampDisplayManager */
  45432. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  45433. "use strict";
  45434. __webpack_require__.r(__webpack_exports__);
  45435. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClampDisplayManager", function() { return ClampDisplayManager; });
  45436. var ClampDisplayManager = /** @class */ (function () {
  45437. function ClampDisplayManager() {
  45438. }
  45439. ClampDisplayManager.prototype.getHeaderClass = function (block) {
  45440. return "";
  45441. };
  45442. ClampDisplayManager.prototype.shouldDisplayPortLabels = function (block) {
  45443. return false;
  45444. };
  45445. ClampDisplayManager.prototype.getHeaderText = function (block) {
  45446. return block.name;
  45447. };
  45448. ClampDisplayManager.prototype.getBackgroundColor = function (block) {
  45449. return "#4086BB";
  45450. };
  45451. ClampDisplayManager.prototype.updatePreviewContent = function (block, contentArea) {
  45452. var clampBlock = block;
  45453. contentArea.classList.add("clamp-block");
  45454. contentArea.innerHTML = "[" + clampBlock.minimum + ", " + clampBlock.maximum + "]";
  45455. };
  45456. return ClampDisplayManager;
  45457. }());
  45458. /***/ }),
  45459. /***/ "./diagram/display/gradientDisplayManager.ts":
  45460. /*!***************************************************!*\
  45461. !*** ./diagram/display/gradientDisplayManager.ts ***!
  45462. \***************************************************/
  45463. /*! exports provided: GradientDisplayManager */
  45464. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  45465. "use strict";
  45466. __webpack_require__.r(__webpack_exports__);
  45467. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GradientDisplayManager", function() { return GradientDisplayManager; });
  45468. var GradientDisplayManager = /** @class */ (function () {
  45469. function GradientDisplayManager() {
  45470. }
  45471. GradientDisplayManager.prototype.getHeaderClass = function (block) {
  45472. return "";
  45473. };
  45474. GradientDisplayManager.prototype.shouldDisplayPortLabels = function (block) {
  45475. return false;
  45476. };
  45477. GradientDisplayManager.prototype.getHeaderText = function (block) {
  45478. return block.name;
  45479. };
  45480. GradientDisplayManager.prototype.getBackgroundColor = function (block) {
  45481. var gradientBlock = block;
  45482. var gradients = gradientBlock.colorSteps.map(function (c) { return "rgb(" + c.color.r * 255 + ", " + c.color.g * 255 + ", " + c.color.b * 255 + ") " + c.step * 100 + "%"; });
  45483. return gradients.length ? "linear-gradient(90deg, " + gradients.join(", ") + ")" : 'black';
  45484. };
  45485. GradientDisplayManager.prototype.updatePreviewContent = function (block, contentArea) {
  45486. contentArea.classList.add("gradient-block");
  45487. };
  45488. return GradientDisplayManager;
  45489. }());
  45490. /***/ }),
  45491. /***/ "./diagram/display/inputDisplayManager.ts":
  45492. /*!************************************************!*\
  45493. !*** ./diagram/display/inputDisplayManager.ts ***!
  45494. \************************************************/
  45495. /*! exports provided: InputDisplayManager */
  45496. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  45497. "use strict";
  45498. __webpack_require__.r(__webpack_exports__);
  45499. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InputDisplayManager", function() { return InputDisplayManager; });
  45500. /* harmony import */ var babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babylonjs/Materials/Node/Enums/nodeMaterialSystemValues */ "babylonjs/Materials/Textures/texture");
  45501. /* harmony import */ var babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_0__);
  45502. /* harmony import */ var _blockTools__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../blockTools */ "./blockTools.ts");
  45503. /* harmony import */ var _stringTools__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../stringTools */ "./stringTools.ts");
  45504. var InputDisplayManager = /** @class */ (function () {
  45505. function InputDisplayManager() {
  45506. }
  45507. InputDisplayManager.prototype.getHeaderClass = function (block) {
  45508. var inputBlock = block;
  45509. if (inputBlock.isConstant) {
  45510. return "constant";
  45511. }
  45512. if (inputBlock.visibleInInspector) {
  45513. return "inspector";
  45514. }
  45515. return "";
  45516. };
  45517. InputDisplayManager.prototype.shouldDisplayPortLabels = function (block) {
  45518. return false;
  45519. };
  45520. InputDisplayManager.prototype.getHeaderText = function (block) {
  45521. var inputBlock = block;
  45522. var name = inputBlock.name + " (" + _stringTools__WEBPACK_IMPORTED_MODULE_2__["StringTools"].GetBaseType(inputBlock.output.type) + ")";
  45523. if (inputBlock.isAttribute) {
  45524. name = _stringTools__WEBPACK_IMPORTED_MODULE_2__["StringTools"].GetBaseType(inputBlock.output.type);
  45525. }
  45526. return name;
  45527. };
  45528. InputDisplayManager.prototype.getBackgroundColor = function (block) {
  45529. var color = "";
  45530. var inputBlock = block;
  45531. switch (inputBlock.type) {
  45532. case babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Color3:
  45533. case babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Color4: {
  45534. if (inputBlock.value) {
  45535. color = inputBlock.value.toHexString();
  45536. break;
  45537. }
  45538. }
  45539. default:
  45540. color = _blockTools__WEBPACK_IMPORTED_MODULE_1__["BlockTools"].GetColorFromConnectionNodeType(inputBlock.type);
  45541. break;
  45542. }
  45543. return color;
  45544. };
  45545. InputDisplayManager.prototype.updatePreviewContent = function (block, contentArea) {
  45546. var value = "";
  45547. var inputBlock = block;
  45548. if (inputBlock.isAttribute) {
  45549. value = "mesh." + inputBlock.name;
  45550. }
  45551. else if (inputBlock.isSystemValue) {
  45552. switch (inputBlock.systemValue) {
  45553. case babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].World:
  45554. value = "World";
  45555. break;
  45556. case babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].WorldView:
  45557. value = "World x View";
  45558. break;
  45559. case babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].WorldViewProjection:
  45560. value = "World x View x Projection";
  45561. break;
  45562. case babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].View:
  45563. value = "View";
  45564. break;
  45565. case babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].ViewProjection:
  45566. value = "View x Projection";
  45567. break;
  45568. case babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].Projection:
  45569. value = "Projection";
  45570. break;
  45571. case babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].CameraPosition:
  45572. value = "Camera position";
  45573. break;
  45574. case babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].FogColor:
  45575. value = "Fog color";
  45576. break;
  45577. case babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialSystemValues"].DeltaTime:
  45578. value = "Delta time";
  45579. break;
  45580. }
  45581. }
  45582. else {
  45583. switch (inputBlock.type) {
  45584. case babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Float:
  45585. if (inputBlock.animationType !== babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_0__["AnimatedInputBlockTypes"].None) {
  45586. value = babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_0__["AnimatedInputBlockTypes"][inputBlock.animationType];
  45587. }
  45588. else {
  45589. value = inputBlock.value.toFixed(2);
  45590. }
  45591. break;
  45592. case babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector2:
  45593. var vec2Value = inputBlock.value;
  45594. value = "(" + vec2Value.x.toFixed(2) + ", " + vec2Value.y.toFixed(2) + ")";
  45595. break;
  45596. case babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector3:
  45597. var vec3Value = inputBlock.value;
  45598. value = "(" + vec3Value.x.toFixed(2) + ", " + vec3Value.y.toFixed(2) + ", " + vec3Value.z.toFixed(2) + ")";
  45599. break;
  45600. case babylonjs_Materials_Node_Enums_nodeMaterialSystemValues__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"].Vector4:
  45601. var vec4Value = inputBlock.value;
  45602. value = "(" + vec4Value.x.toFixed(2) + ", " + vec4Value.y.toFixed(2) + ", " + vec4Value.z.toFixed(2) + ", " + vec4Value.w.toFixed(2) + ")";
  45603. break;
  45604. }
  45605. }
  45606. contentArea.innerHTML = value;
  45607. contentArea.classList.add("input-block");
  45608. };
  45609. return InputDisplayManager;
  45610. }());
  45611. /***/ }),
  45612. /***/ "./diagram/display/outputDisplayManager.ts":
  45613. /*!*************************************************!*\
  45614. !*** ./diagram/display/outputDisplayManager.ts ***!
  45615. \*************************************************/
  45616. /*! exports provided: OutputDisplayManager */
  45617. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  45618. "use strict";
  45619. __webpack_require__.r(__webpack_exports__);
  45620. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OutputDisplayManager", function() { return OutputDisplayManager; });
  45621. var OutputDisplayManager = /** @class */ (function () {
  45622. function OutputDisplayManager() {
  45623. }
  45624. OutputDisplayManager.prototype.getHeaderClass = function (block) {
  45625. return "";
  45626. };
  45627. OutputDisplayManager.prototype.shouldDisplayPortLabels = function (block) {
  45628. return true;
  45629. };
  45630. OutputDisplayManager.prototype.getHeaderText = function (block) {
  45631. return block.name;
  45632. };
  45633. OutputDisplayManager.prototype.getBackgroundColor = function (block) {
  45634. return "rgb(106, 44, 131)";
  45635. };
  45636. OutputDisplayManager.prototype.updatePreviewContent = function (block, contentArea) {
  45637. contentArea.classList.add("output-block");
  45638. };
  45639. return OutputDisplayManager;
  45640. }());
  45641. /***/ }),
  45642. /***/ "./diagram/display/remapDisplayManager.ts":
  45643. /*!************************************************!*\
  45644. !*** ./diagram/display/remapDisplayManager.ts ***!
  45645. \************************************************/
  45646. /*! exports provided: RemapDisplayManager */
  45647. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  45648. "use strict";
  45649. __webpack_require__.r(__webpack_exports__);
  45650. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RemapDisplayManager", function() { return RemapDisplayManager; });
  45651. var RemapDisplayManager = /** @class */ (function () {
  45652. function RemapDisplayManager() {
  45653. }
  45654. RemapDisplayManager.prototype.getHeaderClass = function (block) {
  45655. return "";
  45656. };
  45657. RemapDisplayManager.prototype.shouldDisplayPortLabels = function (block) {
  45658. return true;
  45659. };
  45660. RemapDisplayManager.prototype.getHeaderText = function (block) {
  45661. return block.name;
  45662. };
  45663. RemapDisplayManager.prototype.getBackgroundColor = function (block) {
  45664. return "#4086BB";
  45665. };
  45666. RemapDisplayManager.prototype._extractInputValue = function (connectionPoint) {
  45667. var connectedBlock = connectionPoint.connectedPoint.ownerBlock;
  45668. if (connectedBlock.isInput) {
  45669. var inputBlock = connectedBlock;
  45670. if (inputBlock.isUniform && !inputBlock.isSystemValue) {
  45671. return inputBlock.value;
  45672. }
  45673. }
  45674. return "?";
  45675. };
  45676. RemapDisplayManager.prototype.updatePreviewContent = function (block, contentArea) {
  45677. var remapBlock = block;
  45678. var sourceRangeX = remapBlock.sourceMin.isConnected ? this._extractInputValue(remapBlock.sourceMin) : remapBlock.sourceRange.x;
  45679. var sourceRangeY = remapBlock.sourceMax.isConnected ? this._extractInputValue(remapBlock.sourceMax) : remapBlock.sourceRange.y;
  45680. var targetRangeX = remapBlock.targetMin.isConnected ? this._extractInputValue(remapBlock.targetMin) : remapBlock.targetRange.x;
  45681. var targetRangeY = remapBlock.targetMax.isConnected ? this._extractInputValue(remapBlock.targetMax) : remapBlock.targetRange.y;
  45682. contentArea.classList.add("remap-block");
  45683. contentArea.innerHTML = "[" + sourceRangeX + ", " + sourceRangeY + "] -> [" + targetRangeX + ", " + targetRangeY + "]";
  45684. };
  45685. return RemapDisplayManager;
  45686. }());
  45687. /***/ }),
  45688. /***/ "./diagram/display/textureDisplayManager.ts":
  45689. /*!**************************************************!*\
  45690. !*** ./diagram/display/textureDisplayManager.ts ***!
  45691. \**************************************************/
  45692. /*! exports provided: TextureDisplayManager */
  45693. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  45694. "use strict";
  45695. __webpack_require__.r(__webpack_exports__);
  45696. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextureDisplayManager", function() { return TextureDisplayManager; });
  45697. /* harmony import */ var _sharedComponents_textureLineComponent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../sharedComponents/textureLineComponent */ "./sharedComponents/textureLineComponent.tsx");
  45698. var TextureDisplayManager = /** @class */ (function () {
  45699. function TextureDisplayManager() {
  45700. }
  45701. TextureDisplayManager.prototype.getHeaderClass = function (block) {
  45702. return "";
  45703. };
  45704. TextureDisplayManager.prototype.shouldDisplayPortLabels = function (block) {
  45705. return true;
  45706. };
  45707. TextureDisplayManager.prototype.getHeaderText = function (block) {
  45708. return block.name;
  45709. };
  45710. TextureDisplayManager.prototype.getBackgroundColor = function (block) {
  45711. return "#323232";
  45712. };
  45713. TextureDisplayManager.prototype.updatePreviewContent = function (block, contentArea) {
  45714. var _this = this;
  45715. var textureBlock = block;
  45716. if (!this._previewCanvas) {
  45717. contentArea.classList.add("texture-block");
  45718. this._previewCanvas = contentArea.ownerDocument.createElement("canvas");
  45719. this._previewImage = contentArea.ownerDocument.createElement("img");
  45720. contentArea.appendChild(this._previewImage);
  45721. this._previewImage.classList.add("empty");
  45722. }
  45723. if (textureBlock.texture) {
  45724. _sharedComponents_textureLineComponent__WEBPACK_IMPORTED_MODULE_0__["TextureLineComponent"].UpdatePreview(this._previewCanvas, textureBlock.texture, 140, {
  45725. face: 0,
  45726. displayRed: true,
  45727. displayAlpha: true,
  45728. displayBlue: true,
  45729. displayGreen: true
  45730. }, function () {
  45731. _this._previewImage.src = _this._previewCanvas.toDataURL("image/png");
  45732. _this._previewImage.classList.remove("empty");
  45733. });
  45734. }
  45735. else {
  45736. this._previewImage.classList.add("empty");
  45737. }
  45738. };
  45739. return TextureDisplayManager;
  45740. }());
  45741. /***/ }),
  45742. /***/ "./diagram/display/trigonometryDisplayManager.ts":
  45743. /*!*******************************************************!*\
  45744. !*** ./diagram/display/trigonometryDisplayManager.ts ***!
  45745. \*******************************************************/
  45746. /*! exports provided: TrigonometryDisplayManager */
  45747. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  45748. "use strict";
  45749. __webpack_require__.r(__webpack_exports__);
  45750. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TrigonometryDisplayManager", function() { return TrigonometryDisplayManager; });
  45751. /* harmony import */ var babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babylonjs/Materials/Node/Blocks/trigonometryBlock */ "babylonjs/Materials/Textures/texture");
  45752. /* harmony import */ var babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_0__);
  45753. var TrigonometryDisplayManager = /** @class */ (function () {
  45754. function TrigonometryDisplayManager() {
  45755. }
  45756. TrigonometryDisplayManager.prototype.getHeaderClass = function (block) {
  45757. return "";
  45758. };
  45759. TrigonometryDisplayManager.prototype.shouldDisplayPortLabels = function (block) {
  45760. return false;
  45761. };
  45762. TrigonometryDisplayManager.prototype.getHeaderText = function (block) {
  45763. return block.name;
  45764. };
  45765. TrigonometryDisplayManager.prototype.getBackgroundColor = function (block) {
  45766. return "#405C86";
  45767. };
  45768. TrigonometryDisplayManager.prototype.updatePreviewContent = function (block, contentArea) {
  45769. var trigonometryBlock = block;
  45770. contentArea.classList.add("trigonometry-block");
  45771. contentArea.innerHTML = babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_0__["TrigonometryBlockOperations"][trigonometryBlock.operation];
  45772. };
  45773. return TrigonometryDisplayManager;
  45774. }());
  45775. /***/ }),
  45776. /***/ "./diagram/displayLedger.ts":
  45777. /*!**********************************!*\
  45778. !*** ./diagram/displayLedger.ts ***!
  45779. \**********************************/
  45780. /*! exports provided: DisplayLedger */
  45781. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  45782. "use strict";
  45783. __webpack_require__.r(__webpack_exports__);
  45784. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DisplayLedger", function() { return DisplayLedger; });
  45785. /* harmony import */ var _display_inputDisplayManager__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./display/inputDisplayManager */ "./diagram/display/inputDisplayManager.ts");
  45786. /* harmony import */ var _display_outputDisplayManager__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./display/outputDisplayManager */ "./diagram/display/outputDisplayManager.ts");
  45787. /* harmony import */ var _display_clampDisplayManager__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./display/clampDisplayManager */ "./diagram/display/clampDisplayManager.ts");
  45788. /* harmony import */ var _display_gradientDisplayManager__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./display/gradientDisplayManager */ "./diagram/display/gradientDisplayManager.ts");
  45789. /* harmony import */ var _display_remapDisplayManager__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./display/remapDisplayManager */ "./diagram/display/remapDisplayManager.ts");
  45790. /* harmony import */ var _display_trigonometryDisplayManager__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./display/trigonometryDisplayManager */ "./diagram/display/trigonometryDisplayManager.ts");
  45791. /* harmony import */ var _display_textureDisplayManager__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./display/textureDisplayManager */ "./diagram/display/textureDisplayManager.ts");
  45792. var DisplayLedger = /** @class */ (function () {
  45793. function DisplayLedger() {
  45794. }
  45795. DisplayLedger.RegisteredControls = {};
  45796. return DisplayLedger;
  45797. }());
  45798. DisplayLedger.RegisteredControls["InputBlock"] = _display_inputDisplayManager__WEBPACK_IMPORTED_MODULE_0__["InputDisplayManager"];
  45799. DisplayLedger.RegisteredControls["VertexOutputBlock"] = _display_outputDisplayManager__WEBPACK_IMPORTED_MODULE_1__["OutputDisplayManager"];
  45800. DisplayLedger.RegisteredControls["FragmentOutputBlock"] = _display_outputDisplayManager__WEBPACK_IMPORTED_MODULE_1__["OutputDisplayManager"];
  45801. DisplayLedger.RegisteredControls["ClampBlock"] = _display_clampDisplayManager__WEBPACK_IMPORTED_MODULE_2__["ClampDisplayManager"];
  45802. DisplayLedger.RegisteredControls["GradientBlock"] = _display_gradientDisplayManager__WEBPACK_IMPORTED_MODULE_3__["GradientDisplayManager"];
  45803. DisplayLedger.RegisteredControls["RemapBlock"] = _display_remapDisplayManager__WEBPACK_IMPORTED_MODULE_4__["RemapDisplayManager"];
  45804. DisplayLedger.RegisteredControls["TrigonometryBlock"] = _display_trigonometryDisplayManager__WEBPACK_IMPORTED_MODULE_5__["TrigonometryDisplayManager"];
  45805. DisplayLedger.RegisteredControls["TextureBlock"] = _display_textureDisplayManager__WEBPACK_IMPORTED_MODULE_6__["TextureDisplayManager"];
  45806. DisplayLedger.RegisteredControls["ReflectionTextureBlock"] = _display_textureDisplayManager__WEBPACK_IMPORTED_MODULE_6__["TextureDisplayManager"];
  45807. /***/ }),
  45808. /***/ "./diagram/graphCanvas.scss":
  45809. /*!**********************************!*\
  45810. !*** ./diagram/graphCanvas.scss ***!
  45811. \**********************************/
  45812. /*! no static exports found */
  45813. /***/ (function(module, exports, __webpack_require__) {
  45814. var content = __webpack_require__(/*! !../../../node_modules/css-loader!../../../node_modules/sass-loader/lib/loader.js!./graphCanvas.scss */ "../../node_modules/css-loader/index.js!../../node_modules/sass-loader/lib/loader.js!./diagram/graphCanvas.scss");
  45815. if(typeof content === 'string') content = [[module.i, content, '']];
  45816. var transform;
  45817. var insertInto;
  45818. var options = {"hmr":true}
  45819. options.transform = transform
  45820. options.insertInto = undefined;
  45821. var update = __webpack_require__(/*! ../../../node_modules/style-loader/lib/addStyles.js */ "../../node_modules/style-loader/lib/addStyles.js")(content, options);
  45822. if(content.locals) module.exports = content.locals;
  45823. if(false) {}
  45824. /***/ }),
  45825. /***/ "./diagram/graphCanvas.tsx":
  45826. /*!*********************************!*\
  45827. !*** ./diagram/graphCanvas.tsx ***!
  45828. \*********************************/
  45829. /*! exports provided: GraphCanvasComponent */
  45830. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  45831. "use strict";
  45832. __webpack_require__.r(__webpack_exports__);
  45833. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GraphCanvasComponent", function() { return GraphCanvasComponent; });
  45834. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  45835. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  45836. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  45837. /* harmony import */ var _graphNode__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./graphNode */ "./diagram/graphNode.ts");
  45838. /* harmony import */ var dagre__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! dagre */ "../../node_modules/dagre/index.js");
  45839. /* harmony import */ var dagre__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(dagre__WEBPACK_IMPORTED_MODULE_3__);
  45840. /* harmony import */ var _nodeLink__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./nodeLink */ "./diagram/nodeLink.ts");
  45841. /* harmony import */ var babylonjs_Materials_Node_nodeMaterialBlockConnectionPoint__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! babylonjs/Materials/Node/nodeMaterialBlockConnectionPoint */ "babylonjs/Materials/Textures/texture");
  45842. /* harmony import */ var babylonjs_Materials_Node_nodeMaterialBlockConnectionPoint__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Materials_Node_nodeMaterialBlockConnectionPoint__WEBPACK_IMPORTED_MODULE_5__);
  45843. /* harmony import */ var _dataStorage__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../dataStorage */ "./dataStorage.ts");
  45844. /* harmony import */ var _graphFrame__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./graphFrame */ "./diagram/graphFrame.ts");
  45845. __webpack_require__(/*! ./graphCanvas.scss */ "./diagram/graphCanvas.scss");
  45846. var GraphCanvasComponent = /** @class */ (function (_super) {
  45847. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GraphCanvasComponent, _super);
  45848. function GraphCanvasComponent(props) {
  45849. var _this = _super.call(this, props) || this;
  45850. _this.MinZoom = 0.1;
  45851. _this.MaxZoom = 4;
  45852. _this._nodes = [];
  45853. _this._links = [];
  45854. _this._mouseStartPointX = null;
  45855. _this._mouseStartPointY = null;
  45856. _this._dropPointX = 0;
  45857. _this._dropPointY = 0;
  45858. _this._selectionStartX = 0;
  45859. _this._selectionStartY = 0;
  45860. _this._x = 0;
  45861. _this._y = 0;
  45862. _this._zoom = 1;
  45863. _this._selectedNodes = [];
  45864. _this._selectedLink = null;
  45865. _this._candidateLink = null;
  45866. _this._candidatePort = null;
  45867. _this._gridSize = 20;
  45868. _this._selectionBox = null;
  45869. _this._selectedFrame = null;
  45870. _this._frameCandidate = null;
  45871. _this._frames = [];
  45872. _this._altKeyIsPressed = false;
  45873. _this._ctrlKeyIsPressed = false;
  45874. _this._oldY = -1;
  45875. _this._frameIsMoving = false;
  45876. props.globalState.onSelectionChangedObservable.add(function (selection) {
  45877. if (!selection) {
  45878. _this._selectedNodes = [];
  45879. _this._selectedLink = null;
  45880. _this._selectedFrame = null;
  45881. }
  45882. else {
  45883. if (selection instanceof _nodeLink__WEBPACK_IMPORTED_MODULE_4__["NodeLink"]) {
  45884. _this._selectedNodes = [];
  45885. _this._selectedFrame = null;
  45886. _this._selectedLink = selection;
  45887. }
  45888. else if (selection instanceof _graphFrame__WEBPACK_IMPORTED_MODULE_7__["GraphFrame"]) {
  45889. _this._selectedNodes = [];
  45890. _this._selectedFrame = selection;
  45891. _this._selectedLink = null;
  45892. }
  45893. else {
  45894. if (_this._ctrlKeyIsPressed) {
  45895. if (_this._selectedNodes.indexOf(selection) === -1) {
  45896. _this._selectedNodes.push(selection);
  45897. }
  45898. }
  45899. else {
  45900. _this._selectedNodes = [selection];
  45901. }
  45902. }
  45903. }
  45904. });
  45905. props.globalState.onCandidatePortSelected.add(function (port) {
  45906. _this._candidatePort = port;
  45907. });
  45908. props.globalState.onGridSizeChanged.add(function () {
  45909. _this.gridSize = _dataStorage__WEBPACK_IMPORTED_MODULE_6__["DataStorage"].ReadNumber("GridSize", 20);
  45910. });
  45911. _this.props.globalState.hostDocument.addEventListener("keyup", function () { return _this.onKeyUp(); }, false);
  45912. _this.props.globalState.hostDocument.addEventListener("keydown", function (evt) {
  45913. _this._altKeyIsPressed = evt.altKey;
  45914. _this._ctrlKeyIsPressed = evt.ctrlKey;
  45915. }, false);
  45916. _this.props.globalState.hostDocument.defaultView.addEventListener("blur", function () {
  45917. _this._altKeyIsPressed = false;
  45918. _this._ctrlKeyIsPressed = false;
  45919. }, false);
  45920. // Store additional data to serialization object
  45921. _this.props.globalState.storeEditorData = function (editorData) {
  45922. editorData.zoom = _this.zoom;
  45923. editorData.x = _this.x;
  45924. editorData.y = _this.y;
  45925. editorData.frames = [];
  45926. for (var _i = 0, _a = _this._frames; _i < _a.length; _i++) {
  45927. var frame = _a[_i];
  45928. editorData.frames.push(frame.serialize());
  45929. }
  45930. };
  45931. return _this;
  45932. }
  45933. Object.defineProperty(GraphCanvasComponent.prototype, "gridSize", {
  45934. get: function () {
  45935. return this._gridSize;
  45936. },
  45937. set: function (value) {
  45938. this._gridSize = value;
  45939. this.updateTransform();
  45940. },
  45941. enumerable: true,
  45942. configurable: true
  45943. });
  45944. Object.defineProperty(GraphCanvasComponent.prototype, "globalState", {
  45945. get: function () {
  45946. return this.props.globalState;
  45947. },
  45948. enumerable: true,
  45949. configurable: true
  45950. });
  45951. Object.defineProperty(GraphCanvasComponent.prototype, "nodes", {
  45952. get: function () {
  45953. return this._nodes;
  45954. },
  45955. enumerable: true,
  45956. configurable: true
  45957. });
  45958. Object.defineProperty(GraphCanvasComponent.prototype, "links", {
  45959. get: function () {
  45960. return this._links;
  45961. },
  45962. enumerable: true,
  45963. configurable: true
  45964. });
  45965. Object.defineProperty(GraphCanvasComponent.prototype, "frames", {
  45966. get: function () {
  45967. return this._frames;
  45968. },
  45969. enumerable: true,
  45970. configurable: true
  45971. });
  45972. Object.defineProperty(GraphCanvasComponent.prototype, "zoom", {
  45973. get: function () {
  45974. return this._zoom;
  45975. },
  45976. set: function (value) {
  45977. if (this._zoom === value) {
  45978. return;
  45979. }
  45980. this._zoom = value;
  45981. this.updateTransform();
  45982. },
  45983. enumerable: true,
  45984. configurable: true
  45985. });
  45986. Object.defineProperty(GraphCanvasComponent.prototype, "x", {
  45987. get: function () {
  45988. return this._x;
  45989. },
  45990. set: function (value) {
  45991. this._x = value;
  45992. this.updateTransform();
  45993. },
  45994. enumerable: true,
  45995. configurable: true
  45996. });
  45997. Object.defineProperty(GraphCanvasComponent.prototype, "y", {
  45998. get: function () {
  45999. return this._y;
  46000. },
  46001. set: function (value) {
  46002. this._y = value;
  46003. this.updateTransform();
  46004. },
  46005. enumerable: true,
  46006. configurable: true
  46007. });
  46008. Object.defineProperty(GraphCanvasComponent.prototype, "selectedNodes", {
  46009. get: function () {
  46010. return this._selectedNodes;
  46011. },
  46012. enumerable: true,
  46013. configurable: true
  46014. });
  46015. Object.defineProperty(GraphCanvasComponent.prototype, "selectedLink", {
  46016. get: function () {
  46017. return this._selectedLink;
  46018. },
  46019. enumerable: true,
  46020. configurable: true
  46021. });
  46022. Object.defineProperty(GraphCanvasComponent.prototype, "selectedFrame", {
  46023. get: function () {
  46024. return this._selectedFrame;
  46025. },
  46026. enumerable: true,
  46027. configurable: true
  46028. });
  46029. Object.defineProperty(GraphCanvasComponent.prototype, "canvasContainer", {
  46030. get: function () {
  46031. return this._graphCanvas;
  46032. },
  46033. enumerable: true,
  46034. configurable: true
  46035. });
  46036. Object.defineProperty(GraphCanvasComponent.prototype, "svgCanvas", {
  46037. get: function () {
  46038. return this._svgCanvas;
  46039. },
  46040. enumerable: true,
  46041. configurable: true
  46042. });
  46043. Object.defineProperty(GraphCanvasComponent.prototype, "selectionContainer", {
  46044. get: function () {
  46045. return this._selectionContainer;
  46046. },
  46047. enumerable: true,
  46048. configurable: true
  46049. });
  46050. Object.defineProperty(GraphCanvasComponent.prototype, "frameContainer", {
  46051. get: function () {
  46052. return this._frameContainer;
  46053. },
  46054. enumerable: true,
  46055. configurable: true
  46056. });
  46057. GraphCanvasComponent.prototype.getGridPosition = function (position, useCeil) {
  46058. if (useCeil === void 0) { useCeil = false; }
  46059. var gridSize = this.gridSize;
  46060. if (gridSize === 0) {
  46061. return position;
  46062. }
  46063. if (useCeil) {
  46064. return gridSize * Math.ceil(position / gridSize);
  46065. }
  46066. return gridSize * Math.floor(position / gridSize);
  46067. };
  46068. GraphCanvasComponent.prototype.getGridPositionCeil = function (position) {
  46069. var gridSize = this.gridSize;
  46070. if (gridSize === 0) {
  46071. return position;
  46072. }
  46073. return gridSize * Math.ceil(position / gridSize);
  46074. };
  46075. GraphCanvasComponent.prototype.updateTransform = function () {
  46076. this._rootContainer.style.transform = "translate(" + this._x + "px, " + this._y + "px) scale(" + this._zoom + ")";
  46077. if (_dataStorage__WEBPACK_IMPORTED_MODULE_6__["DataStorage"].ReadBoolean("ShowGrid", true)) {
  46078. this._hostCanvas.style.backgroundSize = this._gridSize * this._zoom + "px " + this._gridSize * this._zoom + "px";
  46079. this._hostCanvas.style.backgroundPosition = this._x + "px " + this._y + "px";
  46080. }
  46081. else {
  46082. this._hostCanvas.style.backgroundSize = "0";
  46083. }
  46084. };
  46085. GraphCanvasComponent.prototype.onKeyUp = function () {
  46086. this._altKeyIsPressed = false;
  46087. this._ctrlKeyIsPressed = false;
  46088. this._oldY = -1;
  46089. };
  46090. GraphCanvasComponent.prototype.findNodeFromBlock = function (block) {
  46091. return this.nodes.filter(function (n) { return n.block === block; })[0];
  46092. };
  46093. GraphCanvasComponent.prototype.reset = function () {
  46094. for (var _i = 0, _a = this._nodes; _i < _a.length; _i++) {
  46095. var node = _a[_i];
  46096. node.dispose();
  46097. }
  46098. var frames = this._frames.splice(0);
  46099. for (var _b = 0, frames_1 = frames; _b < frames_1.length; _b++) {
  46100. var frame = frames_1[_b];
  46101. frame.dispose();
  46102. }
  46103. this._nodes = [];
  46104. this._frames = [];
  46105. this._links = [];
  46106. this._graphCanvas.innerHTML = "";
  46107. this._svgCanvas.innerHTML = "";
  46108. };
  46109. GraphCanvasComponent.prototype.connectPorts = function (pointA, pointB) {
  46110. var blockA = pointA.ownerBlock;
  46111. var blockB = pointB.ownerBlock;
  46112. var nodeA = this.findNodeFromBlock(blockA);
  46113. var nodeB = this.findNodeFromBlock(blockB);
  46114. if (!nodeA || !nodeB) {
  46115. return;
  46116. }
  46117. var portA = nodeA.getPortForConnectionPoint(pointA);
  46118. var portB = nodeB.getPortForConnectionPoint(pointB);
  46119. if (!portA || !portB) {
  46120. return;
  46121. }
  46122. for (var _i = 0, _a = this._links; _i < _a.length; _i++) {
  46123. var currentLink = _a[_i];
  46124. if (currentLink.portA === portA && currentLink.portB === portB) {
  46125. return;
  46126. }
  46127. if (currentLink.portA === portB && currentLink.portB === portA) {
  46128. return;
  46129. }
  46130. }
  46131. var link = new _nodeLink__WEBPACK_IMPORTED_MODULE_4__["NodeLink"](this, portA, nodeA, portB, nodeB);
  46132. this._links.push(link);
  46133. nodeA.links.push(link);
  46134. nodeB.links.push(link);
  46135. };
  46136. GraphCanvasComponent.prototype.removeLink = function (link) {
  46137. var index = this._links.indexOf(link);
  46138. if (index > -1) {
  46139. this._links.splice(index, 1);
  46140. }
  46141. link.dispose();
  46142. };
  46143. GraphCanvasComponent.prototype.appendBlock = function (block) {
  46144. var newNode = new _graphNode__WEBPACK_IMPORTED_MODULE_2__["GraphNode"](block, this.props.globalState);
  46145. newNode.appendVisual(this._graphCanvas, this);
  46146. this._nodes.push(newNode);
  46147. return newNode;
  46148. };
  46149. GraphCanvasComponent.prototype.distributeGraph = function () {
  46150. var _this = this;
  46151. this.x = 0;
  46152. this.y = 0;
  46153. this.zoom = 1;
  46154. var graph = new dagre__WEBPACK_IMPORTED_MODULE_3__["graphlib"].Graph();
  46155. graph.setGraph({});
  46156. graph.setDefaultEdgeLabel(function () { return ({}); });
  46157. graph.graph().rankdir = "LR";
  46158. // Build dagre graph
  46159. this._nodes.forEach(function (node) {
  46160. if (_this._frames.some(function (f) { return f.nodes.indexOf(node) !== -1; })) {
  46161. return;
  46162. }
  46163. graph.setNode(node.id.toString(), {
  46164. id: node.id,
  46165. type: "node",
  46166. width: node.width,
  46167. height: node.height
  46168. });
  46169. });
  46170. this._frames.forEach(function (frame) {
  46171. graph.setNode(frame.id.toString(), {
  46172. id: frame.id,
  46173. type: "frame",
  46174. width: frame.element.clientWidth,
  46175. height: frame.element.clientHeight
  46176. });
  46177. });
  46178. this._nodes.forEach(function (node) {
  46179. node.block.outputs.forEach(function (output) {
  46180. if (!output.hasEndpoints) {
  46181. return;
  46182. }
  46183. output.endpoints.forEach(function (endpoint) {
  46184. var sourceFrames = _this._frames.filter(function (f) { return f.nodes.indexOf(node) !== -1; });
  46185. var targetFrames = _this._frames.filter(function (f) { return f.nodes.some(function (n) { return n.block === endpoint.ownerBlock; }); });
  46186. var sourceId = sourceFrames.length > 0 ? sourceFrames[0].id : node.id;
  46187. var targetId = targetFrames.length > 0 ? targetFrames[0].id : endpoint.ownerBlock.uniqueId;
  46188. graph.setEdge(sourceId.toString(), targetId.toString());
  46189. });
  46190. });
  46191. });
  46192. // Distribute
  46193. dagre__WEBPACK_IMPORTED_MODULE_3__["layout"](graph);
  46194. // Update graph
  46195. var dagreNodes = graph.nodes().map(function (node) { return graph.node(node); });
  46196. dagreNodes.forEach(function (dagreNode) {
  46197. if (dagreNode.type === "node") {
  46198. for (var _i = 0, _a = _this._nodes; _i < _a.length; _i++) {
  46199. var node = _a[_i];
  46200. if (node.id === dagreNode.id) {
  46201. node.x = dagreNode.x - dagreNode.width / 2;
  46202. node.y = dagreNode.y - dagreNode.height / 2;
  46203. node.cleanAccumulation();
  46204. return;
  46205. }
  46206. }
  46207. return;
  46208. }
  46209. for (var _b = 0, _c = _this._frames; _b < _c.length; _b++) {
  46210. var frame = _c[_b];
  46211. if (frame.id === dagreNode.id) {
  46212. frame.move(dagreNode.x - dagreNode.width / 2, dagreNode.y - dagreNode.height / 2, false);
  46213. frame.cleanAccumulation();
  46214. return;
  46215. }
  46216. }
  46217. });
  46218. };
  46219. GraphCanvasComponent.prototype.componentDidMount = function () {
  46220. this._hostCanvas = this.props.globalState.hostDocument.getElementById("graph-canvas");
  46221. this._rootContainer = this.props.globalState.hostDocument.getElementById("graph-container");
  46222. this._graphCanvas = this.props.globalState.hostDocument.getElementById("graph-canvas-container");
  46223. this._svgCanvas = this.props.globalState.hostDocument.getElementById("graph-svg-container");
  46224. this._selectionContainer = this.props.globalState.hostDocument.getElementById("selection-container");
  46225. this._frameContainer = this.props.globalState.hostDocument.getElementById("frame-container");
  46226. this.gridSize = _dataStorage__WEBPACK_IMPORTED_MODULE_6__["DataStorage"].ReadNumber("GridSize", 20);
  46227. this.updateTransform();
  46228. };
  46229. GraphCanvasComponent.prototype.onMove = function (evt) {
  46230. // Selection box
  46231. if (this._selectionBox) {
  46232. var rootRect = this.canvasContainer.getBoundingClientRect();
  46233. var localX = evt.pageX - rootRect.left;
  46234. var localY = evt.pageY - rootRect.top;
  46235. if (localX > this._selectionStartX) {
  46236. this._selectionBox.style.left = this._selectionStartX / this.zoom + "px";
  46237. this._selectionBox.style.width = (localX - this._selectionStartX) / this.zoom + "px";
  46238. }
  46239. else {
  46240. this._selectionBox.style.left = localX / this.zoom + "px";
  46241. this._selectionBox.style.width = (this._selectionStartX - localX) / this.zoom + "px";
  46242. }
  46243. if (localY > this._selectionStartY) {
  46244. this._selectionBox.style.top = this._selectionStartY / this.zoom + "px";
  46245. this._selectionBox.style.height = (localY - this._selectionStartY) / this.zoom + "px";
  46246. }
  46247. else {
  46248. this._selectionBox.style.top = localY / this.zoom + "px";
  46249. this._selectionBox.style.height = (this._selectionStartY - localY) / this.zoom + "px";
  46250. }
  46251. this.props.globalState.onSelectionBoxMoved.notifyObservers(this._selectionBox.getBoundingClientRect());
  46252. return;
  46253. }
  46254. // Candidate frame box
  46255. if (this._frameCandidate) {
  46256. var rootRect = this.canvasContainer.getBoundingClientRect();
  46257. var localX = evt.pageX - rootRect.left;
  46258. var localY = evt.pageY - rootRect.top;
  46259. if (localX > this._selectionStartX) {
  46260. this._frameCandidate.style.left = this._selectionStartX / this.zoom + "px";
  46261. this._frameCandidate.style.width = (localX - this._selectionStartX) / this.zoom + "px";
  46262. }
  46263. else {
  46264. this._frameCandidate.style.left = localX / this.zoom + "px";
  46265. this._frameCandidate.style.width = (this._selectionStartX - localX) / this.zoom + "px";
  46266. }
  46267. if (localY > this._selectionStartY) {
  46268. this._frameCandidate.style.top = this._selectionStartY / this.zoom + "px";
  46269. this._frameCandidate.style.height = (localY - this._selectionStartY) / this.zoom + "px";
  46270. }
  46271. else {
  46272. this._frameCandidate.style.top = localY / this.zoom + "px";
  46273. this._frameCandidate.style.height = (this._selectionStartY - localY) / this.zoom + "px";
  46274. }
  46275. return;
  46276. }
  46277. // Candidate link
  46278. if (this._candidateLink) {
  46279. var rootRect = this.canvasContainer.getBoundingClientRect();
  46280. this._candidatePort = null;
  46281. this.props.globalState.onCandidateLinkMoved.notifyObservers(new babylonjs_Materials_Node_nodeMaterialBlockConnectionPoint__WEBPACK_IMPORTED_MODULE_5__["Vector2"](evt.pageX, evt.pageY));
  46282. this._dropPointX = (evt.pageX - rootRect.left) / this.zoom;
  46283. this._dropPointY = (evt.pageY - rootRect.top) / this.zoom;
  46284. this._candidateLink.update(this._dropPointX, this._dropPointY, true);
  46285. return;
  46286. }
  46287. // Zoom with mouse + alt
  46288. if (this._altKeyIsPressed && evt.buttons === 1) {
  46289. if (this._oldY < 0) {
  46290. this._oldY = evt.pageY;
  46291. }
  46292. var zoomDelta = (evt.pageY - this._oldY) / 10;
  46293. if (Math.abs(zoomDelta) > 5) {
  46294. var oldZoom = this.zoom;
  46295. this.zoom = Math.max(Math.min(this.MaxZoom, this.zoom + zoomDelta / 100), this.MinZoom);
  46296. var boundingRect = evt.currentTarget.getBoundingClientRect();
  46297. var clientWidth = boundingRect.width;
  46298. var widthDiff = clientWidth * this.zoom - clientWidth * oldZoom;
  46299. var clientX = evt.clientX - boundingRect.left;
  46300. var xFactor = (clientX - this.x) / oldZoom / clientWidth;
  46301. this.x = this.x - widthDiff * xFactor;
  46302. this._oldY = evt.pageY;
  46303. }
  46304. return;
  46305. }
  46306. // Move canvas
  46307. this._rootContainer.style.cursor = "move";
  46308. if (this._mouseStartPointX === null || this._mouseStartPointY === null) {
  46309. return;
  46310. }
  46311. this.x += evt.clientX - this._mouseStartPointX;
  46312. this.y += evt.clientY - this._mouseStartPointY;
  46313. this._mouseStartPointX = evt.clientX;
  46314. this._mouseStartPointY = evt.clientY;
  46315. };
  46316. GraphCanvasComponent.prototype.onDown = function (evt) {
  46317. this._rootContainer.setPointerCapture(evt.pointerId);
  46318. // Selection?
  46319. if (evt.currentTarget === this._hostCanvas && evt.ctrlKey) {
  46320. this._selectionBox = this.props.globalState.hostDocument.createElement("div");
  46321. this._selectionBox.classList.add("selection-box");
  46322. this._selectionContainer.appendChild(this._selectionBox);
  46323. var rootRect = this.canvasContainer.getBoundingClientRect();
  46324. this._selectionStartX = (evt.pageX - rootRect.left);
  46325. this._selectionStartY = (evt.pageY - rootRect.top);
  46326. this._selectionBox.style.left = this._selectionStartX / this.zoom + "px";
  46327. this._selectionBox.style.top = this._selectionStartY / this.zoom + "px";
  46328. this._selectionBox.style.width = "0px";
  46329. this._selectionBox.style.height = "0px";
  46330. return;
  46331. }
  46332. // Frame?
  46333. if (evt.currentTarget === this._hostCanvas && evt.shiftKey) {
  46334. this._frameCandidate = this.props.globalState.hostDocument.createElement("div");
  46335. this._frameCandidate.classList.add("frame-box");
  46336. this._frameContainer.appendChild(this._frameCandidate);
  46337. var rootRect = this.canvasContainer.getBoundingClientRect();
  46338. this._selectionStartX = (evt.pageX - rootRect.left);
  46339. this._selectionStartY = (evt.pageY - rootRect.top);
  46340. this._frameCandidate.style.left = this._selectionStartX / this.zoom + "px";
  46341. this._frameCandidate.style.top = this._selectionStartY / this.zoom + "px";
  46342. this._frameCandidate.style.width = "0px";
  46343. this._frameCandidate.style.height = "0px";
  46344. return;
  46345. }
  46346. // Port dragging
  46347. if (evt.nativeEvent.srcElement && evt.nativeEvent.srcElement.nodeName === "IMG") {
  46348. if (!this._candidateLink) {
  46349. var portElement = evt.nativeEvent.srcElement.parentElement.port;
  46350. this._candidateLink = new _nodeLink__WEBPACK_IMPORTED_MODULE_4__["NodeLink"](this, portElement, portElement.node);
  46351. }
  46352. return;
  46353. }
  46354. this.props.globalState.onSelectionChangedObservable.notifyObservers(null);
  46355. this._mouseStartPointX = evt.clientX;
  46356. this._mouseStartPointY = evt.clientY;
  46357. };
  46358. GraphCanvasComponent.prototype.onUp = function (evt) {
  46359. this._mouseStartPointX = null;
  46360. this._mouseStartPointY = null;
  46361. this._rootContainer.releasePointerCapture(evt.pointerId);
  46362. this._oldY = -1;
  46363. if (this._candidateLink) {
  46364. this.processCandidatePort();
  46365. this.props.globalState.onCandidateLinkMoved.notifyObservers(null);
  46366. this._candidateLink.dispose();
  46367. this._candidateLink = null;
  46368. this._candidatePort = null;
  46369. }
  46370. if (this._selectionBox) {
  46371. this._selectionBox.parentElement.removeChild(this._selectionBox);
  46372. this._selectionBox = null;
  46373. }
  46374. if (this._frameCandidate) {
  46375. var newFrame = new _graphFrame__WEBPACK_IMPORTED_MODULE_7__["GraphFrame"](this._frameCandidate, this);
  46376. this._frames.push(newFrame);
  46377. this._frameCandidate.parentElement.removeChild(this._frameCandidate);
  46378. this._frameCandidate = null;
  46379. }
  46380. };
  46381. GraphCanvasComponent.prototype.onWheel = function (evt) {
  46382. var delta = evt.deltaY < 0 ? 0.1 : -0.1;
  46383. var oldZoom = this.zoom;
  46384. this.zoom = Math.min(Math.max(this.MinZoom, this.zoom + delta * this.zoom), this.MaxZoom);
  46385. var boundingRect = evt.currentTarget.getBoundingClientRect();
  46386. var clientWidth = boundingRect.width;
  46387. var clientHeight = boundingRect.height;
  46388. var widthDiff = clientWidth * this.zoom - clientWidth * oldZoom;
  46389. var heightDiff = clientHeight * this.zoom - clientHeight * oldZoom;
  46390. var clientX = evt.clientX - boundingRect.left;
  46391. var clientY = evt.clientY - boundingRect.top;
  46392. var xFactor = (clientX - this.x) / oldZoom / clientWidth;
  46393. var yFactor = (clientY - this.y) / oldZoom / clientHeight;
  46394. this.x = this.x - widthDiff * xFactor;
  46395. this.y = this.y - heightDiff * yFactor;
  46396. evt.stopPropagation();
  46397. };
  46398. GraphCanvasComponent.prototype.zoomToFit = function () {
  46399. var xFactor = this._rootContainer.clientWidth / this._rootContainer.scrollWidth;
  46400. var yFactor = this._rootContainer.clientHeight / this._rootContainer.scrollHeight;
  46401. var zoomFactor = xFactor < yFactor ? xFactor : yFactor;
  46402. this.zoom = zoomFactor;
  46403. this.x = 0;
  46404. this.y = 0;
  46405. };
  46406. GraphCanvasComponent.prototype.processCandidatePort = function () {
  46407. var pointB = this._candidateLink.portA.connectionPoint;
  46408. var nodeB = this._candidateLink.portA.node;
  46409. var pointA;
  46410. var nodeA;
  46411. if (this._candidatePort) {
  46412. pointA = this._candidatePort.connectionPoint;
  46413. nodeA = this._candidatePort.node;
  46414. }
  46415. else {
  46416. if (pointB.direction === babylonjs_Materials_Node_nodeMaterialBlockConnectionPoint__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialConnectionPointDirection"].Output) {
  46417. return;
  46418. }
  46419. // No destination so let's spin a new input block
  46420. var inputBlock = new babylonjs_Materials_Node_nodeMaterialBlockConnectionPoint__WEBPACK_IMPORTED_MODULE_5__["InputBlock"]("", undefined, this._candidateLink.portA.connectionPoint.type);
  46421. pointA = inputBlock.output;
  46422. nodeA = this.appendBlock(inputBlock);
  46423. nodeA.x = this._dropPointX - 200;
  46424. nodeA.y = this._dropPointY - 50;
  46425. }
  46426. if (pointA.direction === babylonjs_Materials_Node_nodeMaterialBlockConnectionPoint__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialConnectionPointDirection"].Input) {
  46427. var temp = pointB;
  46428. pointB = pointA;
  46429. pointA = temp;
  46430. var tempNode = nodeA;
  46431. nodeA = nodeB;
  46432. nodeB = tempNode;
  46433. }
  46434. if (pointB.connectedPoint === pointA) {
  46435. return;
  46436. }
  46437. if (pointB === pointA) {
  46438. return;
  46439. }
  46440. if (pointB.direction === pointA.direction) {
  46441. return;
  46442. }
  46443. if (pointB.ownerBlock === pointA.ownerBlock) {
  46444. return;
  46445. }
  46446. // Check compatibility
  46447. var isFragmentOutput = pointB.ownerBlock.getClassName() === "FragmentOutputBlock";
  46448. var compatibilityState = pointA.checkCompatibilityState(pointB);
  46449. if (compatibilityState === babylonjs_Materials_Node_nodeMaterialBlockConnectionPoint__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialConnectionPointCompatibilityStates"].Compatible) {
  46450. if (isFragmentOutput) {
  46451. var fragmentBlock = pointB.ownerBlock;
  46452. if (pointB.name === "rgb" && fragmentBlock.rgba.isConnected) {
  46453. nodeB.getLinksForConnectionPoint(fragmentBlock.rgba)[0].dispose();
  46454. }
  46455. else if (pointB.name === "rgba" && fragmentBlock.rgb.isConnected) {
  46456. nodeB.getLinksForConnectionPoint(fragmentBlock.rgb)[0].dispose();
  46457. }
  46458. }
  46459. }
  46460. else {
  46461. var message = "";
  46462. switch (compatibilityState) {
  46463. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPoint__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialConnectionPointCompatibilityStates"].TypeIncompatible:
  46464. message = "Cannot connect two different connection types";
  46465. break;
  46466. case babylonjs_Materials_Node_nodeMaterialBlockConnectionPoint__WEBPACK_IMPORTED_MODULE_5__["NodeMaterialConnectionPointCompatibilityStates"].TargetIncompatible:
  46467. message = "Source block can only work in fragment shader whereas destination block is currently aimed for the vertex shader";
  46468. break;
  46469. }
  46470. this.props.globalState.onErrorMessageDialogRequiredObservable.notifyObservers(message);
  46471. return;
  46472. }
  46473. if (pointB.isConnected) {
  46474. var links = nodeB.getLinksForConnectionPoint(pointB);
  46475. links.forEach(function (link) {
  46476. link.dispose();
  46477. });
  46478. }
  46479. pointA.connectTo(pointB);
  46480. this.connectPorts(pointA, pointB);
  46481. nodeB.refresh();
  46482. this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  46483. };
  46484. GraphCanvasComponent.prototype.processEditorData = function (editorData) {
  46485. var frames = this._frames.splice(0);
  46486. for (var _i = 0, frames_2 = frames; _i < frames_2.length; _i++) {
  46487. var frame = frames_2[_i];
  46488. frame.dispose();
  46489. }
  46490. this._frames = [];
  46491. this.x = editorData.x || 0;
  46492. this.y = editorData.y || 0;
  46493. this.zoom = editorData.zoom || 1;
  46494. // Frames
  46495. if (editorData.frames) {
  46496. for (var _a = 0, _b = editorData.frames; _a < _b.length; _a++) {
  46497. var frameData = _b[_a];
  46498. var frame = _graphFrame__WEBPACK_IMPORTED_MODULE_7__["GraphFrame"].Parse(frameData, this, editorData.map);
  46499. this._frames.push(frame);
  46500. }
  46501. }
  46502. };
  46503. GraphCanvasComponent.prototype.render = function () {
  46504. var _this = this;
  46505. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "graph-canvas", onWheel: function (evt) { return _this.onWheel(evt); }, onPointerMove: function (evt) { return _this.onMove(evt); }, onPointerDown: function (evt) { return _this.onDown(evt); }, onPointerUp: function (evt) { return _this.onUp(evt); } },
  46506. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "graph-container" },
  46507. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "graph-canvas-container" }),
  46508. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "frame-container" }),
  46509. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("svg", { id: "graph-svg-container" }),
  46510. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "selection-container" }))));
  46511. };
  46512. return GraphCanvasComponent;
  46513. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  46514. /***/ }),
  46515. /***/ "./diagram/graphFrame.ts":
  46516. /*!*******************************!*\
  46517. !*** ./diagram/graphFrame.ts ***!
  46518. \*******************************/
  46519. /*! exports provided: GraphFrame */
  46520. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  46521. "use strict";
  46522. __webpack_require__.r(__webpack_exports__);
  46523. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GraphFrame", function() { return GraphFrame; });
  46524. /* harmony import */ var babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babylonjs/Maths/math.color */ "babylonjs/Materials/Textures/texture");
  46525. /* harmony import */ var babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_0__);
  46526. /* harmony import */ var _nodePort__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./nodePort */ "./diagram/nodePort.ts");
  46527. var GraphFrame = /** @class */ (function () {
  46528. function GraphFrame(candidate, canvas, doNotCaptureNodes) {
  46529. var _this = this;
  46530. if (doNotCaptureNodes === void 0) { doNotCaptureNodes = false; }
  46531. this._x = 0;
  46532. this._y = 0;
  46533. this._gridAlignedX = 0;
  46534. this._gridAlignedY = 0;
  46535. this._nodes = [];
  46536. this._mouseStartPointX = null;
  46537. this._mouseStartPointY = null;
  46538. this._isCollapsed = false;
  46539. this._ports = [];
  46540. this._controlledPorts = [];
  46541. this.CloseSVG = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 30 30\"><g id=\"Layer_2\" data-name=\"Layer 2\"><path d=\"M16,15l5.85,5.84-1,1L15,15.93,9.15,21.78l-1-1L14,15,8.19,9.12l1-1L15,14l5.84-5.84,1,1Z\"/></g></svg>";
  46542. this.ExpandSVG = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 30 30\"><g id=\"Layer_2\" data-name=\"Layer 2\"><path d=\"M22.31,7.69V22.31H7.69V7.69ZM21.19,8.81H8.81V21.19H21.19Zm-6.75,6.75H11.06V14.44h3.38V11.06h1.12v3.38h3.38v1.12H15.56v3.38H14.44Z\"/></g></svg>";
  46543. this.CollapseSVG = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 30 30\"><g id=\"Layer_2\" data-name=\"Layer 2\"><path d=\"M22.31,7.69V22.31H7.69V7.69ZM21.19,8.81H8.81V21.19H21.19Zm-2.25,6.75H11.06V14.44h7.88Z\"/></g></svg>";
  46544. this._id = GraphFrame._FrameCounter++;
  46545. this._ownerCanvas = canvas;
  46546. var root = canvas.frameContainer;
  46547. this.element = root.ownerDocument.createElement("div");
  46548. this.element.classList.add("frame-box");
  46549. root.appendChild(this.element);
  46550. this._headerElement = root.ownerDocument.createElement("div");
  46551. this._headerElement.classList.add("frame-box-header");
  46552. this._headerElement.addEventListener("dblclick", function () {
  46553. _this.isCollapsed = !_this.isCollapsed;
  46554. });
  46555. this.element.appendChild(this._headerElement);
  46556. this._borderElement = root.ownerDocument.createElement("div");
  46557. this._borderElement.classList.add("frame-box-border");
  46558. this.element.appendChild(this._borderElement);
  46559. this._headerTextElement = root.ownerDocument.createElement("div");
  46560. this._headerTextElement.classList.add("frame-box-header-title");
  46561. this._headerElement.appendChild(this._headerTextElement);
  46562. this._headerCollapseElement = root.ownerDocument.createElement("div");
  46563. this._headerCollapseElement.classList.add("frame-box-header-collapse");
  46564. this._headerCollapseElement.classList.add("frame-box-header-button");
  46565. this._headerCollapseElement.title = "Collapse";
  46566. this._headerCollapseElement.ondragstart = function () { return false; };
  46567. this._headerCollapseElement.addEventListener("pointerdown", function (evt) {
  46568. _this._headerCollapseElement.classList.add("down");
  46569. evt.stopPropagation();
  46570. });
  46571. this._headerCollapseElement.addEventListener("pointerup", function (evt) {
  46572. evt.stopPropagation();
  46573. _this._headerCollapseElement.classList.remove("down");
  46574. _this.isCollapsed = !_this.isCollapsed;
  46575. });
  46576. this._headerCollapseElement.innerHTML = this.CollapseSVG;
  46577. this._headerElement.appendChild(this._headerCollapseElement);
  46578. this._headerCloseElement = root.ownerDocument.createElement("div");
  46579. this._headerCloseElement.classList.add("frame-box-header-close");
  46580. this._headerCloseElement.classList.add("frame-box-header-button");
  46581. this._headerCloseElement.title = "Close";
  46582. this._headerCloseElement.ondragstart = function () { return false; };
  46583. this._headerCloseElement.addEventListener("pointerdown", function (evt) {
  46584. evt.stopPropagation();
  46585. });
  46586. this._headerCloseElement.addEventListener("pointerup", function (evt) {
  46587. evt.stopPropagation();
  46588. _this.dispose();
  46589. });
  46590. this._headerCloseElement.innerHTML = this.CloseSVG;
  46591. this._headerElement.appendChild(this._headerCloseElement);
  46592. this._portContainer = root.ownerDocument.createElement("div");
  46593. this._portContainer.classList.add("port-container");
  46594. this.element.appendChild(this._portContainer);
  46595. this._outputPortContainer = root.ownerDocument.createElement("div");
  46596. this._outputPortContainer.classList.add("outputsContainer");
  46597. this._portContainer.appendChild(this._outputPortContainer);
  46598. this._inputPortContainer = root.ownerDocument.createElement("div");
  46599. this._inputPortContainer.classList.add("inputsContainer");
  46600. this._portContainer.appendChild(this._inputPortContainer);
  46601. this.name = "Frame";
  46602. this.color = babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_0__["Color3"].FromInts(72, 72, 72);
  46603. if (candidate) {
  46604. this.x = parseFloat(candidate.style.left.replace("px", ""));
  46605. this.y = parseFloat(candidate.style.top.replace("px", ""));
  46606. this.width = parseFloat(candidate.style.width.replace("px", ""));
  46607. this.height = parseFloat(candidate.style.height.replace("px", ""));
  46608. this.cleanAccumulation();
  46609. }
  46610. this._headerTextElement.addEventListener("pointerdown", function (evt) { return _this._onDown(evt); });
  46611. this._headerTextElement.addEventListener("pointerup", function (evt) { return _this._onUp(evt); });
  46612. this._headerTextElement.addEventListener("pointermove", function (evt) { return _this._onMove(evt); });
  46613. this._onSelectionChangedObserver = canvas.globalState.onSelectionChangedObservable.add(function (node) {
  46614. if (node === _this) {
  46615. _this.element.classList.add("selected");
  46616. }
  46617. else {
  46618. _this.element.classList.remove("selected");
  46619. }
  46620. });
  46621. // Get nodes
  46622. if (!doNotCaptureNodes) {
  46623. this.refresh();
  46624. }
  46625. }
  46626. Object.defineProperty(GraphFrame.prototype, "id", {
  46627. get: function () {
  46628. return this._id;
  46629. },
  46630. enumerable: true,
  46631. configurable: true
  46632. });
  46633. Object.defineProperty(GraphFrame.prototype, "isCollapsed", {
  46634. get: function () {
  46635. return this._isCollapsed;
  46636. },
  46637. set: function (value) {
  46638. if (this._isCollapsed === value) {
  46639. return;
  46640. }
  46641. this._isCollapsed = value;
  46642. this._ownerCanvas._frameIsMoving = true;
  46643. // Need to delegate the outside ports to the frame
  46644. if (value) {
  46645. this.element.classList.add("collapsed");
  46646. this._moveFrame((this.width - 200) / 2, 0);
  46647. for (var _i = 0, _a = this._nodes; _i < _a.length; _i++) {
  46648. var node = _a[_i];
  46649. node.isVisible = false;
  46650. for (var _b = 0, _c = node.outputPorts; _b < _c.length; _b++) { // Output
  46651. var port = _c[_b];
  46652. if (port.connectionPoint.hasEndpoints) {
  46653. var portAdded = false;
  46654. for (var _d = 0, _e = node.links; _d < _e.length; _d++) {
  46655. var link = _e[_d];
  46656. if (link.portA === port && this.nodes.indexOf(link.nodeB) === -1) {
  46657. var localPort = void 0;
  46658. if (!portAdded) {
  46659. portAdded = true;
  46660. localPort = _nodePort__WEBPACK_IMPORTED_MODULE_1__["NodePort"].CreatePortElement(port.connectionPoint, link.nodeB, this._outputPortContainer, null, this._ownerCanvas.globalState);
  46661. this._ports.push(localPort);
  46662. }
  46663. else {
  46664. localPort = this._ports.filter(function (p) { return p.connectionPoint === port.connectionPoint; })[0];
  46665. }
  46666. port.delegatedPort = localPort;
  46667. this._controlledPorts.push(port);
  46668. link.isVisible = true;
  46669. }
  46670. }
  46671. }
  46672. else {
  46673. var localPort = _nodePort__WEBPACK_IMPORTED_MODULE_1__["NodePort"].CreatePortElement(port.connectionPoint, node, this._outputPortContainer, null, this._ownerCanvas.globalState);
  46674. this._ports.push(localPort);
  46675. port.delegatedPort = localPort;
  46676. this._controlledPorts.push(port);
  46677. }
  46678. }
  46679. for (var _f = 0, _g = node.inputPorts; _f < _g.length; _f++) { // Input
  46680. var port = _g[_f];
  46681. if (port.connectionPoint.isConnected) {
  46682. for (var _h = 0, _j = node.links; _h < _j.length; _h++) {
  46683. var link = _j[_h];
  46684. if (link.portB === port && this.nodes.indexOf(link.nodeA) === -1) {
  46685. this._createInputPort(port, node);
  46686. link.isVisible = true;
  46687. }
  46688. }
  46689. }
  46690. else {
  46691. this._createInputPort(port, node);
  46692. }
  46693. }
  46694. }
  46695. }
  46696. else {
  46697. this.element.classList.remove("collapsed");
  46698. this._outputPortContainer.innerHTML = "";
  46699. this._inputPortContainer.innerHTML = "";
  46700. this._ports.forEach(function (p) {
  46701. p.dispose();
  46702. });
  46703. this._controlledPorts.forEach(function (port) {
  46704. port.delegatedPort = null;
  46705. port.refresh();
  46706. });
  46707. this._ports = [];
  46708. this._controlledPorts = [];
  46709. for (var _k = 0, _l = this._nodes; _k < _l.length; _k++) {
  46710. var node = _l[_k];
  46711. node.isVisible = true;
  46712. }
  46713. this._moveFrame(-(this.width - 200) / 2, 0);
  46714. }
  46715. this.cleanAccumulation();
  46716. this._ownerCanvas._frameIsMoving = false;
  46717. // UI
  46718. if (this._isCollapsed) {
  46719. this._headerCollapseElement.innerHTML = this.ExpandSVG;
  46720. this._headerCollapseElement.title = "Expand";
  46721. }
  46722. else {
  46723. this._headerCollapseElement.innerHTML = this.CollapseSVG;
  46724. this._headerCollapseElement.title = "Collapse";
  46725. }
  46726. },
  46727. enumerable: true,
  46728. configurable: true
  46729. });
  46730. GraphFrame.prototype._createInputPort = function (port, node) {
  46731. var localPort = _nodePort__WEBPACK_IMPORTED_MODULE_1__["NodePort"].CreatePortElement(port.connectionPoint, node, this._inputPortContainer, null, this._ownerCanvas.globalState);
  46732. this._ports.push(localPort);
  46733. port.delegatedPort = localPort;
  46734. this._controlledPorts.push(port);
  46735. };
  46736. Object.defineProperty(GraphFrame.prototype, "nodes", {
  46737. get: function () {
  46738. return this._nodes;
  46739. },
  46740. enumerable: true,
  46741. configurable: true
  46742. });
  46743. Object.defineProperty(GraphFrame.prototype, "name", {
  46744. get: function () {
  46745. return this._name;
  46746. },
  46747. set: function (value) {
  46748. this._name = value;
  46749. this._headerTextElement.innerHTML = value;
  46750. },
  46751. enumerable: true,
  46752. configurable: true
  46753. });
  46754. Object.defineProperty(GraphFrame.prototype, "color", {
  46755. get: function () {
  46756. return this._color;
  46757. },
  46758. set: function (value) {
  46759. this._color = value;
  46760. this._headerElement.style.background = "rgba(" + value.r * 255 + ", " + value.g * 255 + ", " + value.b * 255 + ", 1)";
  46761. this._headerElement.style.borderColor = "rgba(" + value.r * 255 + ", " + value.g * 255 + ", " + value.b * 255 + ", 1)";
  46762. this.element.style.background = "rgba(" + value.r * 255 + ", " + value.g * 255 + ", " + value.b * 255 + ", 0.7)";
  46763. },
  46764. enumerable: true,
  46765. configurable: true
  46766. });
  46767. Object.defineProperty(GraphFrame.prototype, "x", {
  46768. get: function () {
  46769. return this._x;
  46770. },
  46771. set: function (value) {
  46772. if (this._x === value) {
  46773. return;
  46774. }
  46775. this._x = value;
  46776. this._gridAlignedX = this._ownerCanvas.getGridPosition(value);
  46777. this.element.style.left = this._gridAlignedX + "px";
  46778. },
  46779. enumerable: true,
  46780. configurable: true
  46781. });
  46782. Object.defineProperty(GraphFrame.prototype, "y", {
  46783. get: function () {
  46784. return this._y;
  46785. },
  46786. set: function (value) {
  46787. if (this._y === value) {
  46788. return;
  46789. }
  46790. this._y = value;
  46791. this._gridAlignedY = this._ownerCanvas.getGridPosition(value);
  46792. this.element.style.top = this._gridAlignedY + "px";
  46793. },
  46794. enumerable: true,
  46795. configurable: true
  46796. });
  46797. Object.defineProperty(GraphFrame.prototype, "width", {
  46798. get: function () {
  46799. return this._width;
  46800. },
  46801. set: function (value) {
  46802. if (this._width === value) {
  46803. return;
  46804. }
  46805. this._width = value;
  46806. var gridAlignedRight = this._ownerCanvas.getGridPositionCeil(value + this._gridAlignedX);
  46807. this.element.style.width = gridAlignedRight - this._gridAlignedX + "px";
  46808. },
  46809. enumerable: true,
  46810. configurable: true
  46811. });
  46812. Object.defineProperty(GraphFrame.prototype, "height", {
  46813. get: function () {
  46814. return this._height;
  46815. },
  46816. set: function (value) {
  46817. if (this._height === value) {
  46818. return;
  46819. }
  46820. this._height = value;
  46821. var gridAlignedBottom = this._ownerCanvas.getGridPositionCeil(value + this._gridAlignedY);
  46822. this.element.style.height = gridAlignedBottom - this._gridAlignedY + "px";
  46823. },
  46824. enumerable: true,
  46825. configurable: true
  46826. });
  46827. GraphFrame.prototype.refresh = function () {
  46828. this._nodes = [];
  46829. this._ownerCanvas.globalState.onFrameCreated.notifyObservers(this);
  46830. };
  46831. GraphFrame.prototype.addNode = function (node) {
  46832. var index = this.nodes.indexOf(node);
  46833. if (index === -1) {
  46834. this.nodes.push(node);
  46835. }
  46836. };
  46837. GraphFrame.prototype.removeNode = function (node) {
  46838. var index = this.nodes.indexOf(node);
  46839. if (index > -1) {
  46840. this.nodes.splice(index, 1);
  46841. }
  46842. };
  46843. GraphFrame.prototype.syncNode = function (node) {
  46844. if (this.isCollapsed) {
  46845. return;
  46846. }
  46847. if (node.isOverlappingFrame(this)) {
  46848. this.addNode(node);
  46849. }
  46850. else {
  46851. this.removeNode(node);
  46852. }
  46853. };
  46854. GraphFrame.prototype.cleanAccumulation = function () {
  46855. for (var _i = 0, _a = this._nodes; _i < _a.length; _i++) {
  46856. var selectedNode = _a[_i];
  46857. selectedNode.cleanAccumulation();
  46858. }
  46859. this.x = this._ownerCanvas.getGridPosition(this.x);
  46860. this.y = this._ownerCanvas.getGridPosition(this.y);
  46861. };
  46862. GraphFrame.prototype._onDown = function (evt) {
  46863. evt.stopPropagation();
  46864. this._mouseStartPointX = evt.clientX;
  46865. this._mouseStartPointY = evt.clientY;
  46866. this._headerTextElement.setPointerCapture(evt.pointerId);
  46867. this._ownerCanvas.globalState.onSelectionChangedObservable.notifyObservers(this);
  46868. this._ownerCanvas._frameIsMoving = true;
  46869. this.move(this._ownerCanvas.getGridPosition(this.x), this._ownerCanvas.getGridPosition(this.y));
  46870. };
  46871. GraphFrame.prototype.move = function (newX, newY, align) {
  46872. if (align === void 0) { align = true; }
  46873. var oldX = this.x;
  46874. var oldY = this.y;
  46875. this.x = newX;
  46876. this.y = newY;
  46877. for (var _i = 0, _a = this._nodes; _i < _a.length; _i++) {
  46878. var selectedNode = _a[_i];
  46879. selectedNode.x += this.x - oldX;
  46880. selectedNode.y += this.y - oldY;
  46881. if (align) {
  46882. selectedNode.cleanAccumulation(true);
  46883. }
  46884. }
  46885. };
  46886. GraphFrame.prototype._onUp = function (evt) {
  46887. evt.stopPropagation();
  46888. this.cleanAccumulation();
  46889. this._mouseStartPointX = null;
  46890. this._mouseStartPointY = null;
  46891. this._headerTextElement.releasePointerCapture(evt.pointerId);
  46892. this._ownerCanvas._frameIsMoving = false;
  46893. };
  46894. GraphFrame.prototype._moveFrame = function (offsetX, offsetY) {
  46895. for (var _i = 0, _a = this._nodes; _i < _a.length; _i++) {
  46896. var selectedNode = _a[_i];
  46897. selectedNode.x += offsetX;
  46898. selectedNode.y += offsetY;
  46899. }
  46900. this.x += offsetX;
  46901. this.y += offsetY;
  46902. };
  46903. GraphFrame.prototype._onMove = function (evt) {
  46904. if (this._mouseStartPointX === null || this._mouseStartPointY === null || evt.ctrlKey) {
  46905. return;
  46906. }
  46907. var newX = (evt.clientX - this._mouseStartPointX) / this._ownerCanvas.zoom;
  46908. var newY = (evt.clientY - this._mouseStartPointY) / this._ownerCanvas.zoom;
  46909. this._moveFrame(newX, newY);
  46910. this._mouseStartPointX = evt.clientX;
  46911. this._mouseStartPointY = evt.clientY;
  46912. evt.stopPropagation();
  46913. };
  46914. GraphFrame.prototype.dispose = function () {
  46915. this.isCollapsed = false;
  46916. if (this._onSelectionChangedObserver) {
  46917. this._ownerCanvas.globalState.onSelectionChangedObservable.remove(this._onSelectionChangedObserver);
  46918. }
  46919. this.element.parentElement.removeChild(this.element);
  46920. this._ownerCanvas.frames.splice(this._ownerCanvas.frames.indexOf(this), 1);
  46921. };
  46922. GraphFrame.prototype.serialize = function () {
  46923. return {
  46924. x: this._x,
  46925. y: this._y,
  46926. width: this._width,
  46927. height: this._height,
  46928. color: this._color.asArray(),
  46929. name: this.name,
  46930. isCollapsed: this.isCollapsed,
  46931. blocks: this.nodes.map(function (n) { return n.block.uniqueId; })
  46932. };
  46933. };
  46934. GraphFrame.Parse = function (serializationData, canvas, map) {
  46935. var newFrame = new GraphFrame(null, canvas, true);
  46936. newFrame.x = serializationData.x;
  46937. newFrame.y = serializationData.y;
  46938. newFrame.width = serializationData.width;
  46939. newFrame.height = serializationData.height;
  46940. newFrame.name = serializationData.name;
  46941. newFrame.color = babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_0__["Color3"].FromArray(serializationData.color);
  46942. if (serializationData.blocks && map) {
  46943. var _loop_1 = function () {
  46944. var actualId = map[blockId];
  46945. var node = canvas.nodes.filter(function (n) { return n.block.uniqueId === actualId; });
  46946. if (node.length) {
  46947. newFrame.nodes.push(node[0]);
  46948. }
  46949. };
  46950. for (var _i = 0, _a = serializationData.blocks; _i < _a.length; _i++) {
  46951. var blockId = _a[_i];
  46952. _loop_1();
  46953. }
  46954. }
  46955. else {
  46956. newFrame.refresh();
  46957. }
  46958. newFrame.isCollapsed = !!serializationData.isCollapsed;
  46959. return newFrame;
  46960. };
  46961. GraphFrame._FrameCounter = 0;
  46962. return GraphFrame;
  46963. }());
  46964. /***/ }),
  46965. /***/ "./diagram/graphNode.ts":
  46966. /*!******************************!*\
  46967. !*** ./diagram/graphNode.ts ***!
  46968. \******************************/
  46969. /*! exports provided: GraphNode */
  46970. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  46971. "use strict";
  46972. __webpack_require__.r(__webpack_exports__);
  46973. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GraphNode", function() { return GraphNode; });
  46974. /* harmony import */ var _propertyLedger__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./propertyLedger */ "./diagram/propertyLedger.ts");
  46975. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  46976. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  46977. /* harmony import */ var _properties_genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./properties/genericNodePropertyComponent */ "./diagram/properties/genericNodePropertyComponent.tsx");
  46978. /* harmony import */ var _displayLedger__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./displayLedger */ "./diagram/displayLedger.ts");
  46979. /* harmony import */ var _nodePort__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./nodePort */ "./diagram/nodePort.ts");
  46980. var GraphNode = /** @class */ (function () {
  46981. function GraphNode(block, globalState) {
  46982. var _this = this;
  46983. this.block = block;
  46984. this._inputPorts = [];
  46985. this._outputPorts = [];
  46986. this._links = [];
  46987. this._x = 0;
  46988. this._y = 0;
  46989. this._gridAlignedX = 0;
  46990. this._gridAlignedY = 0;
  46991. this._mouseStartPointX = null;
  46992. this._mouseStartPointY = null;
  46993. this._displayManager = null;
  46994. this._isVisible = true;
  46995. this._globalState = globalState;
  46996. this._onSelectionChangedObserver = this._globalState.onSelectionChangedObservable.add(function (node) {
  46997. if (node === _this) {
  46998. _this._visual.classList.add("selected");
  46999. }
  47000. else {
  47001. setTimeout(function () {
  47002. if (_this._ownerCanvas.selectedNodes.indexOf(_this) === -1) {
  47003. _this._visual.classList.remove("selected");
  47004. }
  47005. });
  47006. }
  47007. });
  47008. this._onUpdateRequiredObserver = this._globalState.onUpdateRequiredObservable.add(function () {
  47009. _this.refresh();
  47010. });
  47011. this._onSelectionBoxMovedObserver = this._globalState.onSelectionBoxMoved.add(function (rect1) {
  47012. var rect2 = _this._visual.getBoundingClientRect();
  47013. var overlap = !(rect1.right < rect2.left ||
  47014. rect1.left > rect2.right ||
  47015. rect1.bottom < rect2.top ||
  47016. rect1.top > rect2.bottom);
  47017. _this.isSelected = overlap;
  47018. });
  47019. this._onFrameCreatedObserver = this._globalState.onFrameCreated.add(function (frame) {
  47020. if (_this._ownerCanvas.frames.some(function (f) { return f.nodes.indexOf(_this) !== -1; })) {
  47021. return;
  47022. }
  47023. if (_this.isOverlappingFrame(frame)) {
  47024. frame.nodes.push(_this);
  47025. }
  47026. });
  47027. }
  47028. Object.defineProperty(GraphNode.prototype, "isVisible", {
  47029. get: function () {
  47030. return this._isVisible;
  47031. },
  47032. set: function (value) {
  47033. this._isVisible = value;
  47034. if (!value) {
  47035. this._visual.classList.add("hidden");
  47036. }
  47037. else {
  47038. this._visual.classList.remove("hidden");
  47039. }
  47040. for (var _i = 0, _a = this._links; _i < _a.length; _i++) {
  47041. var link = _a[_i];
  47042. link.isVisible = value;
  47043. }
  47044. this._refreshLinks();
  47045. },
  47046. enumerable: true,
  47047. configurable: true
  47048. });
  47049. Object.defineProperty(GraphNode.prototype, "outputPorts", {
  47050. get: function () {
  47051. return this._outputPorts;
  47052. },
  47053. enumerable: true,
  47054. configurable: true
  47055. });
  47056. Object.defineProperty(GraphNode.prototype, "inputPorts", {
  47057. get: function () {
  47058. return this._inputPorts;
  47059. },
  47060. enumerable: true,
  47061. configurable: true
  47062. });
  47063. Object.defineProperty(GraphNode.prototype, "links", {
  47064. get: function () {
  47065. return this._links;
  47066. },
  47067. enumerable: true,
  47068. configurable: true
  47069. });
  47070. Object.defineProperty(GraphNode.prototype, "gridAlignedX", {
  47071. get: function () {
  47072. return this._gridAlignedX;
  47073. },
  47074. enumerable: true,
  47075. configurable: true
  47076. });
  47077. Object.defineProperty(GraphNode.prototype, "gridAlignedY", {
  47078. get: function () {
  47079. return this._gridAlignedY;
  47080. },
  47081. enumerable: true,
  47082. configurable: true
  47083. });
  47084. Object.defineProperty(GraphNode.prototype, "x", {
  47085. get: function () {
  47086. return this._x;
  47087. },
  47088. set: function (value) {
  47089. if (this._x === value) {
  47090. return;
  47091. }
  47092. this._x = value;
  47093. this._gridAlignedX = this._ownerCanvas.getGridPosition(value);
  47094. this._visual.style.left = this._gridAlignedX + "px";
  47095. this._refreshLinks();
  47096. this._refreshFrames();
  47097. },
  47098. enumerable: true,
  47099. configurable: true
  47100. });
  47101. Object.defineProperty(GraphNode.prototype, "y", {
  47102. get: function () {
  47103. return this._y;
  47104. },
  47105. set: function (value) {
  47106. if (this._y === value) {
  47107. return;
  47108. }
  47109. this._y = value;
  47110. this._gridAlignedY = this._ownerCanvas.getGridPosition(value);
  47111. this._visual.style.top = this._gridAlignedY + "px";
  47112. this._refreshLinks();
  47113. this._refreshFrames();
  47114. },
  47115. enumerable: true,
  47116. configurable: true
  47117. });
  47118. Object.defineProperty(GraphNode.prototype, "width", {
  47119. get: function () {
  47120. return this._visual.clientWidth;
  47121. },
  47122. enumerable: true,
  47123. configurable: true
  47124. });
  47125. Object.defineProperty(GraphNode.prototype, "height", {
  47126. get: function () {
  47127. return this._visual.clientHeight;
  47128. },
  47129. enumerable: true,
  47130. configurable: true
  47131. });
  47132. Object.defineProperty(GraphNode.prototype, "id", {
  47133. get: function () {
  47134. return this.block.uniqueId;
  47135. },
  47136. enumerable: true,
  47137. configurable: true
  47138. });
  47139. Object.defineProperty(GraphNode.prototype, "name", {
  47140. get: function () {
  47141. return this.block.name;
  47142. },
  47143. enumerable: true,
  47144. configurable: true
  47145. });
  47146. Object.defineProperty(GraphNode.prototype, "isSelected", {
  47147. get: function () {
  47148. return this._isSelected;
  47149. },
  47150. set: function (value) {
  47151. if (this._isSelected === value) {
  47152. return;
  47153. }
  47154. this._isSelected = value;
  47155. if (!value) {
  47156. this._visual.classList.remove("selected");
  47157. var indexInSelection = this._ownerCanvas.selectedNodes.indexOf(this);
  47158. if (indexInSelection > -1) {
  47159. this._ownerCanvas.selectedNodes.splice(indexInSelection, 1);
  47160. }
  47161. }
  47162. else {
  47163. this._globalState.onSelectionChangedObservable.notifyObservers(this);
  47164. }
  47165. },
  47166. enumerable: true,
  47167. configurable: true
  47168. });
  47169. GraphNode.prototype.isOverlappingFrame = function (frame) {
  47170. var rect2 = this._visual.getBoundingClientRect();
  47171. var rect1 = frame.element.getBoundingClientRect();
  47172. return !(rect1.right < rect2.left ||
  47173. rect1.left > rect2.right ||
  47174. rect1.bottom < rect2.top ||
  47175. rect1.top > rect2.bottom);
  47176. };
  47177. GraphNode.prototype.getPortForConnectionPoint = function (point) {
  47178. for (var _i = 0, _a = this._inputPorts; _i < _a.length; _i++) {
  47179. var port = _a[_i];
  47180. var attachedPoint = port.connectionPoint;
  47181. if (attachedPoint === point) {
  47182. return port;
  47183. }
  47184. }
  47185. for (var _b = 0, _c = this._outputPorts; _b < _c.length; _b++) {
  47186. var port = _c[_b];
  47187. var attachedPoint = port.connectionPoint;
  47188. if (attachedPoint === point) {
  47189. return port;
  47190. }
  47191. }
  47192. return null;
  47193. };
  47194. GraphNode.prototype.getLinksForConnectionPoint = function (point) {
  47195. return this._links.filter(function (link) { return link.portA.connectionPoint === point || link.portB.connectionPoint === point; });
  47196. };
  47197. GraphNode.prototype._refreshFrames = function () {
  47198. if (this._ownerCanvas._frameIsMoving) {
  47199. return;
  47200. }
  47201. // Frames
  47202. for (var _i = 0, _a = this._ownerCanvas.frames; _i < _a.length; _i++) {
  47203. var frame = _a[_i];
  47204. frame.syncNode(this);
  47205. }
  47206. };
  47207. GraphNode.prototype._refreshLinks = function () {
  47208. for (var _i = 0, _a = this._links; _i < _a.length; _i++) {
  47209. var link = _a[_i];
  47210. link.update();
  47211. }
  47212. };
  47213. GraphNode.prototype.refresh = function () {
  47214. if (this._displayManager) {
  47215. this._header.innerHTML = this._displayManager.getHeaderText(this.block);
  47216. this._displayManager.updatePreviewContent(this.block, this._content);
  47217. this._visual.style.background = this._displayManager.getBackgroundColor(this.block);
  47218. var additionalClass = this._displayManager.getHeaderClass(this.block);
  47219. if (additionalClass) {
  47220. this._header.classList.value = "header";
  47221. this._header.classList.add(additionalClass);
  47222. }
  47223. }
  47224. else {
  47225. this._header.innerHTML = this.block.name;
  47226. }
  47227. for (var _i = 0, _a = this._inputPorts; _i < _a.length; _i++) {
  47228. var port = _a[_i];
  47229. port.refresh();
  47230. }
  47231. for (var _b = 0, _c = this._outputPorts; _b < _c.length; _b++) {
  47232. var port = _c[_b];
  47233. port.refresh();
  47234. }
  47235. this._comments.innerHTML = this.block.comments || "";
  47236. this._comments.title = this.block.comments || "";
  47237. };
  47238. GraphNode.prototype._onDown = function (evt) {
  47239. // Check if this is coming from the port
  47240. if (evt.srcElement && evt.srcElement.nodeName === "IMG") {
  47241. return;
  47242. }
  47243. var indexInSelection = this._ownerCanvas.selectedNodes.indexOf(this);
  47244. if (indexInSelection === -1) {
  47245. this._globalState.onSelectionChangedObservable.notifyObservers(this);
  47246. }
  47247. else if (evt.ctrlKey) {
  47248. this.isSelected = false;
  47249. }
  47250. evt.stopPropagation();
  47251. for (var _i = 0, _a = this._ownerCanvas.selectedNodes; _i < _a.length; _i++) {
  47252. var selectedNode = _a[_i];
  47253. selectedNode.cleanAccumulation();
  47254. }
  47255. this._mouseStartPointX = evt.clientX;
  47256. this._mouseStartPointY = evt.clientY;
  47257. this._visual.setPointerCapture(evt.pointerId);
  47258. };
  47259. GraphNode.prototype.cleanAccumulation = function (useCeil) {
  47260. if (useCeil === void 0) { useCeil = false; }
  47261. this.x = this._ownerCanvas.getGridPosition(this.x, useCeil);
  47262. this.y = this._ownerCanvas.getGridPosition(this.y, useCeil);
  47263. };
  47264. GraphNode.prototype._onUp = function (evt) {
  47265. evt.stopPropagation();
  47266. for (var _i = 0, _a = this._ownerCanvas.selectedNodes; _i < _a.length; _i++) {
  47267. var selectedNode = _a[_i];
  47268. selectedNode.cleanAccumulation();
  47269. }
  47270. this._mouseStartPointX = null;
  47271. this._mouseStartPointY = null;
  47272. this._visual.releasePointerCapture(evt.pointerId);
  47273. };
  47274. GraphNode.prototype._onMove = function (evt) {
  47275. if (this._mouseStartPointX === null || this._mouseStartPointY === null || evt.ctrlKey) {
  47276. return;
  47277. }
  47278. var newX = (evt.clientX - this._mouseStartPointX) / this._ownerCanvas.zoom;
  47279. var newY = (evt.clientY - this._mouseStartPointY) / this._ownerCanvas.zoom;
  47280. for (var _i = 0, _a = this._ownerCanvas.selectedNodes; _i < _a.length; _i++) {
  47281. var selectedNode = _a[_i];
  47282. selectedNode.x += newX;
  47283. selectedNode.y += newY;
  47284. }
  47285. this._mouseStartPointX = evt.clientX;
  47286. this._mouseStartPointY = evt.clientY;
  47287. evt.stopPropagation();
  47288. };
  47289. GraphNode.prototype.renderProperties = function () {
  47290. var control = _propertyLedger__WEBPACK_IMPORTED_MODULE_0__["PropertyLedger"].RegisteredControls[this.block.getClassName()];
  47291. if (!control) {
  47292. control = _properties_genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_2__["GenericPropertyTabComponent"];
  47293. }
  47294. return react__WEBPACK_IMPORTED_MODULE_1__["createElement"](control, {
  47295. globalState: this._globalState,
  47296. block: this.block
  47297. });
  47298. };
  47299. GraphNode.prototype.appendVisual = function (root, owner) {
  47300. var _this = this;
  47301. this._ownerCanvas = owner;
  47302. // Display manager
  47303. var displayManagerClass = _displayLedger__WEBPACK_IMPORTED_MODULE_3__["DisplayLedger"].RegisteredControls[this.block.getClassName()];
  47304. if (displayManagerClass) {
  47305. this._displayManager = new displayManagerClass();
  47306. }
  47307. // DOM
  47308. this._visual = root.ownerDocument.createElement("div");
  47309. this._visual.classList.add("visual");
  47310. this._visual.addEventListener("pointerdown", function (evt) { return _this._onDown(evt); });
  47311. this._visual.addEventListener("pointerup", function (evt) { return _this._onUp(evt); });
  47312. this._visual.addEventListener("pointermove", function (evt) { return _this._onMove(evt); });
  47313. this._header = root.ownerDocument.createElement("div");
  47314. this._header.classList.add("header");
  47315. this._visual.appendChild(this._header);
  47316. this._connections = root.ownerDocument.createElement("div");
  47317. this._connections.classList.add("connections");
  47318. this._visual.appendChild(this._connections);
  47319. this._inputsContainer = root.ownerDocument.createElement("div");
  47320. this._inputsContainer.classList.add("inputsContainer");
  47321. this._connections.appendChild(this._inputsContainer);
  47322. this._outputsContainer = root.ownerDocument.createElement("div");
  47323. this._outputsContainer.classList.add("outputsContainer");
  47324. this._connections.appendChild(this._outputsContainer);
  47325. this._content = root.ownerDocument.createElement("div");
  47326. this._content.classList.add("content");
  47327. this._visual.appendChild(this._content);
  47328. var selectionBorder = root.ownerDocument.createElement("div");
  47329. selectionBorder.classList.add("selection-border");
  47330. this._visual.appendChild(selectionBorder);
  47331. root.appendChild(this._visual);
  47332. // Comments
  47333. this._comments = root.ownerDocument.createElement("div");
  47334. this._comments.classList.add("comments");
  47335. this._visual.appendChild(this._comments);
  47336. // Connections
  47337. for (var _i = 0, _a = this.block.inputs; _i < _a.length; _i++) {
  47338. var input = _a[_i];
  47339. this._inputPorts.push(_nodePort__WEBPACK_IMPORTED_MODULE_4__["NodePort"].CreatePortElement(input, this, this._inputsContainer, this._displayManager, this._globalState));
  47340. }
  47341. for (var _b = 0, _c = this.block.outputs; _b < _c.length; _b++) {
  47342. var output = _c[_b];
  47343. this._outputPorts.push(_nodePort__WEBPACK_IMPORTED_MODULE_4__["NodePort"].CreatePortElement(output, this, this._outputsContainer, this._displayManager, this._globalState));
  47344. }
  47345. this.refresh();
  47346. };
  47347. GraphNode.prototype.dispose = function () {
  47348. if (this._onSelectionChangedObserver) {
  47349. this._globalState.onSelectionChangedObservable.remove(this._onSelectionChangedObserver);
  47350. }
  47351. if (this._onUpdateRequiredObserver) {
  47352. this._globalState.onUpdateRequiredObservable.remove(this._onUpdateRequiredObserver);
  47353. }
  47354. if (this._onSelectionBoxMovedObserver) {
  47355. this._globalState.onSelectionBoxMoved.remove(this._onSelectionBoxMovedObserver);
  47356. }
  47357. if (this._visual.parentElement) {
  47358. this._visual.parentElement.removeChild(this._visual);
  47359. }
  47360. if (this._onFrameCreatedObserver) {
  47361. this._globalState.onFrameCreated.remove(this._onFrameCreatedObserver);
  47362. }
  47363. for (var _i = 0, _a = this._inputPorts; _i < _a.length; _i++) {
  47364. var port = _a[_i];
  47365. port.dispose();
  47366. }
  47367. for (var _b = 0, _c = this._outputPorts; _b < _c.length; _b++) {
  47368. var port = _c[_b];
  47369. port.dispose();
  47370. }
  47371. var links = this._links.slice(0);
  47372. for (var _d = 0, links_1 = links; _d < links_1.length; _d++) {
  47373. var link = links_1[_d];
  47374. link.dispose();
  47375. }
  47376. this.block.dispose();
  47377. };
  47378. return GraphNode;
  47379. }());
  47380. /***/ }),
  47381. /***/ "./diagram/nodeLink.ts":
  47382. /*!*****************************!*\
  47383. !*** ./diagram/nodeLink.ts ***!
  47384. \*****************************/
  47385. /*! exports provided: NodeLink */
  47386. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  47387. "use strict";
  47388. __webpack_require__.r(__webpack_exports__);
  47389. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NodeLink", function() { return NodeLink; });
  47390. /* harmony import */ var babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babylonjs/Misc/observable */ "babylonjs/Materials/Textures/texture");
  47391. /* harmony import */ var babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__);
  47392. var NodeLink = /** @class */ (function () {
  47393. function NodeLink(graphCanvas, portA, nodeA, portB, nodeB) {
  47394. var _this = this;
  47395. this._isVisible = true;
  47396. this.onDisposedObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  47397. this._portA = portA;
  47398. this._portB = portB;
  47399. this._nodeA = nodeA;
  47400. this._nodeB = nodeB;
  47401. this._graphCanvas = graphCanvas;
  47402. var document = portA.element.ownerDocument;
  47403. var svg = graphCanvas.svgCanvas;
  47404. // Create path
  47405. this._path = document.createElementNS('http://www.w3.org/2000/svg', "path");
  47406. this._path.setAttribute("fill", "none");
  47407. this._path.classList.add("link");
  47408. svg.appendChild(this._path);
  47409. this._selectionPath = document.createElementNS('http://www.w3.org/2000/svg', "path");
  47410. this._selectionPath.setAttribute("fill", "none");
  47411. this._selectionPath.classList.add("selection-link");
  47412. svg.appendChild(this._selectionPath);
  47413. this._selectionPath.onmousedown = function () { return _this.onClick(); };
  47414. if (this._portB) {
  47415. // Update
  47416. this.update();
  47417. }
  47418. this._onSelectionChangedObserver = this._graphCanvas.globalState.onSelectionChangedObservable.add(function (selection) {
  47419. if (selection === _this) {
  47420. _this._path.classList.add("selected");
  47421. _this._selectionPath.classList.add("selected");
  47422. }
  47423. else {
  47424. _this._path.classList.remove("selected");
  47425. _this._selectionPath.classList.remove("selected");
  47426. }
  47427. });
  47428. }
  47429. Object.defineProperty(NodeLink.prototype, "isVisible", {
  47430. get: function () {
  47431. return this._isVisible;
  47432. },
  47433. set: function (value) {
  47434. this._isVisible = value;
  47435. if (!value) {
  47436. this._path.classList.add("hidden");
  47437. this._selectionPath.classList.add("hidden");
  47438. }
  47439. else {
  47440. this._path.classList.remove("hidden");
  47441. this._selectionPath.classList.remove("hidden");
  47442. }
  47443. this.update();
  47444. },
  47445. enumerable: true,
  47446. configurable: true
  47447. });
  47448. Object.defineProperty(NodeLink.prototype, "portA", {
  47449. get: function () {
  47450. return this._portA;
  47451. },
  47452. enumerable: true,
  47453. configurable: true
  47454. });
  47455. Object.defineProperty(NodeLink.prototype, "portB", {
  47456. get: function () {
  47457. return this._portB;
  47458. },
  47459. enumerable: true,
  47460. configurable: true
  47461. });
  47462. Object.defineProperty(NodeLink.prototype, "nodeA", {
  47463. get: function () {
  47464. return this._nodeA;
  47465. },
  47466. enumerable: true,
  47467. configurable: true
  47468. });
  47469. Object.defineProperty(NodeLink.prototype, "nodeB", {
  47470. get: function () {
  47471. return this._nodeB;
  47472. },
  47473. enumerable: true,
  47474. configurable: true
  47475. });
  47476. NodeLink.prototype.update = function (endX, endY, straight) {
  47477. if (endX === void 0) { endX = 0; }
  47478. if (endY === void 0) { endY = 0; }
  47479. if (straight === void 0) { straight = false; }
  47480. var rectA = this._portA.element.getBoundingClientRect();
  47481. var rootRect = this._graphCanvas.canvasContainer.getBoundingClientRect();
  47482. var zoom = this._graphCanvas.zoom;
  47483. var xOffset = rootRect.left;
  47484. var yOffset = rootRect.top;
  47485. var startX = (rectA.left - xOffset + 0.5 * rectA.width) / zoom;
  47486. var startY = (rectA.top - yOffset + 0.5 * rectA.height) / zoom;
  47487. if (this._portB) {
  47488. var rectB = this._portB.element.getBoundingClientRect();
  47489. endX = (rectB.left - xOffset + 0.5 * rectB.width) / zoom;
  47490. endY = (rectB.top - yOffset + 0.5 * rectB.height) / zoom;
  47491. }
  47492. if (straight) {
  47493. this._path.setAttribute("d", "M" + startX + "," + startY + " L" + endX + "," + endY);
  47494. this._path.setAttribute("stroke-dasharray", "10, 10");
  47495. this._path.setAttribute("stroke-linecap", "round");
  47496. }
  47497. else {
  47498. this._path.setAttribute("d", "M" + startX + "," + startY + " C" + (startX + 80) + "," + startY + " " + (endX - 80) + "," + endY + " " + endX + "," + endY);
  47499. this._selectionPath.setAttribute("d", "M" + startX + "," + startY + " C" + (startX + 80) + "," + startY + " " + (endX - 80) + "," + endY + " " + endX + "," + endY);
  47500. }
  47501. this._path.setAttribute("stroke", this._portA.element.style.backgroundColor);
  47502. };
  47503. NodeLink.prototype.onClick = function () {
  47504. this._graphCanvas.globalState.onSelectionChangedObservable.notifyObservers(this);
  47505. };
  47506. NodeLink.prototype.dispose = function () {
  47507. this._graphCanvas.globalState.onSelectionChangedObservable.remove(this._onSelectionChangedObserver);
  47508. if (this._path.parentElement) {
  47509. this._path.parentElement.removeChild(this._path);
  47510. }
  47511. if (this._selectionPath.parentElement) {
  47512. this._selectionPath.parentElement.removeChild(this._selectionPath);
  47513. }
  47514. if (this._nodeB) {
  47515. this._nodeA.links.splice(this._nodeA.links.indexOf(this), 1);
  47516. this._nodeB.links.splice(this._nodeB.links.indexOf(this), 1);
  47517. this._graphCanvas.links.splice(this._graphCanvas.links.indexOf(this), 1);
  47518. this._portA.connectionPoint.disconnectFrom(this._portB.connectionPoint);
  47519. }
  47520. this.onDisposedObservable.notifyObservers(this);
  47521. };
  47522. return NodeLink;
  47523. }());
  47524. /***/ }),
  47525. /***/ "./diagram/nodePort.ts":
  47526. /*!*****************************!*\
  47527. !*** ./diagram/nodePort.ts ***!
  47528. \*****************************/
  47529. /*! exports provided: NodePort */
  47530. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  47531. "use strict";
  47532. __webpack_require__.r(__webpack_exports__);
  47533. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NodePort", function() { return NodePort; });
  47534. /* harmony import */ var _blockTools__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../blockTools */ "./blockTools.ts");
  47535. /* harmony import */ var babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! babylonjs/Materials/Node/Enums/nodeMaterialBlockConnectionPointTypes */ "babylonjs/Materials/Textures/texture");
  47536. /* harmony import */ var babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1__);
  47537. var NodePort = /** @class */ (function () {
  47538. function NodePort(portContainer, connectionPoint, node, globalState) {
  47539. var _this = this;
  47540. this.connectionPoint = connectionPoint;
  47541. this.node = node;
  47542. this.delegatedPort = null;
  47543. this._element = portContainer.ownerDocument.createElement("div");
  47544. this._element.classList.add("port");
  47545. portContainer.appendChild(this._element);
  47546. this._globalState = globalState;
  47547. this._img = portContainer.ownerDocument.createElement("img");
  47548. this._element.appendChild(this._img);
  47549. this._element.port = this;
  47550. // Drag support
  47551. this._element.ondragstart = function () { return false; };
  47552. this._onCandidateLinkMovedObserver = globalState.onCandidateLinkMoved.add(function (coords) {
  47553. var rect = _this._element.getBoundingClientRect();
  47554. if (!coords || rect.left > coords.x || rect.right < coords.x || rect.top > coords.y || rect.bottom < coords.y) {
  47555. _this._element.classList.remove("selected");
  47556. return;
  47557. }
  47558. _this._element.classList.add("selected");
  47559. _this._globalState.onCandidatePortSelected.notifyObservers(_this);
  47560. });
  47561. this.refresh();
  47562. }
  47563. Object.defineProperty(NodePort.prototype, "element", {
  47564. get: function () {
  47565. if (this.delegatedPort) {
  47566. return this.delegatedPort.element;
  47567. }
  47568. return this._element;
  47569. },
  47570. enumerable: true,
  47571. configurable: true
  47572. });
  47573. NodePort.prototype.refresh = function () {
  47574. this._element.style.background = _blockTools__WEBPACK_IMPORTED_MODULE_0__["BlockTools"].GetColorFromConnectionNodeType(this.connectionPoint.type);
  47575. switch (this.connectionPoint.type) {
  47576. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1__["NodeMaterialBlockConnectionPointTypes"].Float:
  47577. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1__["NodeMaterialBlockConnectionPointTypes"].Int:
  47578. this._img.src = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMSAyMSI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiNmZmY7fTwvc3R5bGU+PC9kZWZzPjx0aXRsZT5WZWN0b3IxPC90aXRsZT48ZyBpZD0iTGF5ZXJfNSIgZGF0YS1uYW1lPSJMYXllciA1Ij48Y2lyY2xlIGNsYXNzPSJjbHMtMSIgY3g9IjEwLjUiIGN5PSIxMC41IiByPSI3LjUiLz48L2c+PC9zdmc+";
  47579. break;
  47580. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1__["NodeMaterialBlockConnectionPointTypes"].Vector2:
  47581. this._img.src = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMSAyMSI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiNmZmY7fTwvc3R5bGU+PC9kZWZzPjx0aXRsZT5WZWN0b3IyPC90aXRsZT48ZyBpZD0iTGF5ZXJfNSIgZGF0YS1uYW1lPSJMYXllciA1Ij48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik0zLDEwLjVhNy41Miw3LjUyLDAsMCwwLDYuNSw3LjQzVjMuMDdBNy41Miw3LjUyLDAsMCwwLDMsMTAuNVoiLz48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik0xMS41LDMuMDdWMTcuOTNhNy41LDcuNSwwLDAsMCwwLTE0Ljg2WiIvPjwvZz48L3N2Zz4=";
  47582. break;
  47583. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1__["NodeMaterialBlockConnectionPointTypes"].Vector3:
  47584. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1__["NodeMaterialBlockConnectionPointTypes"].Color3:
  47585. this._img.src = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMSAyMSI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiNmZmY7fTwvc3R5bGU+PC9kZWZzPjx0aXRsZT5WZWN0b3IzPC90aXRsZT48ZyBpZD0iTGF5ZXJfNSIgZGF0YS1uYW1lPSJMYXllciA1Ij48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik0zLjU3LDEzLjMxLDkuNSw5Ljg5VjNBNy41MSw3LjUxLDAsMCwwLDMsMTAuNDYsNy4zMiw3LjMyLDAsMCwwLDMuNTcsMTMuMzFaIi8+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNMTYuNDMsMTUsMTAuNSwxMS42Miw0LjU3LDE1YTcuNDgsNy40OCwwLDAsMCwxMS44NiwwWiIvPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTE4LDEwLjQ2QTcuNTEsNy41MSwwLDAsMCwxMS41LDNWOS44OWw1LjkzLDMuNDJBNy4zMiw3LjMyLDAsMCwwLDE4LDEwLjQ2WiIvPjwvZz48L3N2Zz4=";
  47586. break;
  47587. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1__["NodeMaterialBlockConnectionPointTypes"].Vector4:
  47588. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1__["NodeMaterialBlockConnectionPointTypes"].Color4:
  47589. this._img.src = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMSAyMSI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiNmZmY7fTwvc3R5bGU+PC9kZWZzPjx0aXRsZT5WZWN0b3I0PC90aXRsZT48ZyBpZD0iTGF5ZXJfNSIgZGF0YS1uYW1lPSJMYXllciA1Ij48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik0xMS41LDExLjV2Ni40M2E3LjUxLDcuNTEsMCwwLDAsNi40My02LjQzWiIvPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTExLjUsMy4wN1Y5LjVoNi40M0E3LjUxLDcuNTEsMCwwLDAsMTEuNSwzLjA3WiIvPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTkuNSwxNy45M1YxMS41SDMuMDdBNy41MSw3LjUxLDAsMCwwLDkuNSwxNy45M1oiLz48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik05LjUsMy4wN0E3LjUxLDcuNTEsMCwwLDAsMy4wNyw5LjVIOS41WiIvPjwvZz48L3N2Zz4=";
  47590. break;
  47591. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_1__["NodeMaterialBlockConnectionPointTypes"].Matrix:
  47592. this._img.src = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMSAyMSI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiNmZmY7fTwvc3R5bGU+PC9kZWZzPjx0aXRsZT5NYXRyaXg8L3RpdGxlPjxnIGlkPSJMYXllcl81IiBkYXRhLW5hbWU9IkxheWVyIDUiPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTExLjUsNi4xMVY5LjVoMy4zOUE0LjUxLDQuNTEsMCwwLDAsMTEuNSw2LjExWiIvPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTExLjUsMTQuODlhNC41MSw0LjUxLDAsMCwwLDMuMzktMy4zOUgxMS41WiIvPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTExLjUsMy4wN3YyQTUuNTQsNS41NCwwLDAsMSwxNS45Miw5LjVoMkE3LjUxLDcuNTEsMCwwLDAsMTEuNSwzLjA3WiIvPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTE1LjkyLDExLjVhNS41NCw1LjU0LDAsMCwxLTQuNDIsNC40MnYyYTcuNTEsNy41MSwwLDAsMCw2LjQzLTYuNDNaIi8+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNNS4wOCwxMS41aC0yQTcuNTEsNy41MSwwLDAsMCw5LjUsMTcuOTN2LTJBNS41NCw1LjU0LDAsMCwxLDUuMDgsMTEuNVoiLz48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik05LjUsMy4wN0E3LjUxLDcuNTEsMCwwLDAsMy4wNyw5LjVoMkE1LjU0LDUuNTQsMCwwLDEsOS41LDUuMDhaIi8+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNOS41LDExLjVINi4xMUE0LjUxLDQuNTEsMCwwLDAsOS41LDE0Ljg5WiIvPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTkuNSw2LjExQTQuNTEsNC41MSwwLDAsMCw2LjExLDkuNUg5LjVaIi8+PC9nPjwvc3ZnPg==";
  47593. break;
  47594. }
  47595. };
  47596. NodePort.prototype.dispose = function () {
  47597. this._globalState.onCandidateLinkMoved.remove(this._onCandidateLinkMovedObserver);
  47598. };
  47599. NodePort.CreatePortElement = function (connectionPoint, node, root, displayManager, globalState) {
  47600. var portContainer = root.ownerDocument.createElement("div");
  47601. var block = connectionPoint.ownerBlock;
  47602. portContainer.classList.add("portLine");
  47603. root.appendChild(portContainer);
  47604. if (!displayManager || displayManager.shouldDisplayPortLabels(block)) {
  47605. var portLabel = root.ownerDocument.createElement("div");
  47606. portLabel.classList.add("port-label");
  47607. portLabel.innerHTML = connectionPoint.name;
  47608. portContainer.appendChild(portLabel);
  47609. }
  47610. return new NodePort(portContainer, connectionPoint, node, globalState);
  47611. };
  47612. return NodePort;
  47613. }());
  47614. /***/ }),
  47615. /***/ "./diagram/properties/PerturbNormalNodePropertyComponent.tsx":
  47616. /*!*******************************************************************!*\
  47617. !*** ./diagram/properties/PerturbNormalNodePropertyComponent.tsx ***!
  47618. \*******************************************************************/
  47619. /*! exports provided: PerturbNormalPropertyTabComponent */
  47620. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  47621. "use strict";
  47622. __webpack_require__.r(__webpack_exports__);
  47623. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PerturbNormalPropertyTabComponent", function() { return PerturbNormalPropertyTabComponent; });
  47624. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  47625. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  47626. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  47627. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  47628. /* harmony import */ var _sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../sharedComponents/checkBoxLineComponent */ "./sharedComponents/checkBoxLineComponent.tsx");
  47629. /* harmony import */ var _genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./genericNodePropertyComponent */ "./diagram/properties/genericNodePropertyComponent.tsx");
  47630. var PerturbNormalPropertyTabComponent = /** @class */ (function (_super) {
  47631. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PerturbNormalPropertyTabComponent, _super);
  47632. function PerturbNormalPropertyTabComponent(props) {
  47633. return _super.call(this, props) || this;
  47634. }
  47635. PerturbNormalPropertyTabComponent.prototype.render = function () {
  47636. var _this = this;
  47637. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  47638. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_4__["GenericPropertyTabComponent"], { globalState: this.props.globalState, block: this.props.block }),
  47639. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { title: "PROPERTIES" },
  47640. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "Invert X axis", target: this.props.block, propertyName: "invertX", onValueChanged: function () { return _this.props.globalState.onRebuildRequiredObservable.notifyObservers(); } }),
  47641. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "Invert Y axis", target: this.props.block, propertyName: "invertY", onValueChanged: function () { return _this.props.globalState.onRebuildRequiredObservable.notifyObservers(); } }))));
  47642. };
  47643. return PerturbNormalPropertyTabComponent;
  47644. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  47645. /***/ }),
  47646. /***/ "./diagram/properties/clampNodePropertyComponent.tsx":
  47647. /*!***********************************************************!*\
  47648. !*** ./diagram/properties/clampNodePropertyComponent.tsx ***!
  47649. \***********************************************************/
  47650. /*! exports provided: ClampPropertyTabComponent */
  47651. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  47652. "use strict";
  47653. __webpack_require__.r(__webpack_exports__);
  47654. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClampPropertyTabComponent", function() { return ClampPropertyTabComponent; });
  47655. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  47656. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  47657. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  47658. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  47659. /* harmony import */ var _sharedComponents_floatLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../sharedComponents/floatLineComponent */ "./sharedComponents/floatLineComponent.tsx");
  47660. /* harmony import */ var _genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./genericNodePropertyComponent */ "./diagram/properties/genericNodePropertyComponent.tsx");
  47661. var ClampPropertyTabComponent = /** @class */ (function (_super) {
  47662. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ClampPropertyTabComponent, _super);
  47663. function ClampPropertyTabComponent(props) {
  47664. return _super.call(this, props) || this;
  47665. }
  47666. ClampPropertyTabComponent.prototype.forceRebuild = function () {
  47667. this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  47668. this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  47669. };
  47670. ClampPropertyTabComponent.prototype.render = function () {
  47671. var _this = this;
  47672. var clampBlock = this.props.block;
  47673. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  47674. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_4__["GenericPropertyTabComponent"], { globalState: this.props.globalState, block: this.props.block }),
  47675. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { title: "PROPERTIES" },
  47676. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_floatLineComponent__WEBPACK_IMPORTED_MODULE_3__["FloatLineComponent"], { label: "Minimum", propertyName: "minimum", target: clampBlock, onChange: function () { return _this.forceRebuild(); } }),
  47677. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_floatLineComponent__WEBPACK_IMPORTED_MODULE_3__["FloatLineComponent"], { label: "Maximum", propertyName: "maximum", target: clampBlock, onChange: function () { return _this.forceRebuild(); } }))));
  47678. };
  47679. return ClampPropertyTabComponent;
  47680. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  47681. /***/ }),
  47682. /***/ "./diagram/properties/genericNodePropertyComponent.tsx":
  47683. /*!*************************************************************!*\
  47684. !*** ./diagram/properties/genericNodePropertyComponent.tsx ***!
  47685. \*************************************************************/
  47686. /*! exports provided: GenericPropertyTabComponent */
  47687. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  47688. "use strict";
  47689. __webpack_require__.r(__webpack_exports__);
  47690. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GenericPropertyTabComponent", function() { return GenericPropertyTabComponent; });
  47691. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  47692. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  47693. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  47694. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  47695. /* harmony import */ var _sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../sharedComponents/textInputLineComponent */ "./sharedComponents/textInputLineComponent.tsx");
  47696. /* harmony import */ var _sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../sharedComponents/textLineComponent */ "./sharedComponents/textLineComponent.tsx");
  47697. var GenericPropertyTabComponent = /** @class */ (function (_super) {
  47698. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GenericPropertyTabComponent, _super);
  47699. function GenericPropertyTabComponent(props) {
  47700. return _super.call(this, props) || this;
  47701. }
  47702. GenericPropertyTabComponent.prototype.render = function () {
  47703. var _this = this;
  47704. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  47705. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { title: "GENERAL" },
  47706. (!this.props.block.isInput || !this.props.block.isAttribute) &&
  47707. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_3__["TextInputLineComponent"], { globalState: this.props.globalState, label: "Name", propertyName: "name", target: this.props.block, onChange: function () { return _this.props.globalState.onUpdateRequiredObservable.notifyObservers(); } }),
  47708. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_textLineComponent__WEBPACK_IMPORTED_MODULE_4__["TextLineComponent"], { label: "Type", value: this.props.block.getClassName() }),
  47709. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_3__["TextInputLineComponent"], { globalState: this.props.globalState, label: "Comments", propertyName: "comments", target: this.props.block, onChange: function () { return _this.props.globalState.onUpdateRequiredObservable.notifyObservers(); } }))));
  47710. };
  47711. return GenericPropertyTabComponent;
  47712. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  47713. /***/ }),
  47714. /***/ "./diagram/properties/gradientNodePropertyComponent.tsx":
  47715. /*!**************************************************************!*\
  47716. !*** ./diagram/properties/gradientNodePropertyComponent.tsx ***!
  47717. \**************************************************************/
  47718. /*! exports provided: GradientPropertyTabComponent */
  47719. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  47720. "use strict";
  47721. __webpack_require__.r(__webpack_exports__);
  47722. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GradientPropertyTabComponent", function() { return GradientPropertyTabComponent; });
  47723. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  47724. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  47725. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  47726. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  47727. /* harmony import */ var babylonjs_Materials_Node_Blocks_gradientBlock__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babylonjs/Materials/Node/Blocks/gradientBlock */ "babylonjs/Materials/Textures/texture");
  47728. /* harmony import */ var babylonjs_Materials_Node_Blocks_gradientBlock__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Materials_Node_Blocks_gradientBlock__WEBPACK_IMPORTED_MODULE_3__);
  47729. /* harmony import */ var _gradientStepComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./gradientStepComponent */ "./diagram/properties/gradientStepComponent.tsx");
  47730. /* harmony import */ var _sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../sharedComponents/buttonLineComponent */ "./sharedComponents/buttonLineComponent.tsx");
  47731. /* harmony import */ var _genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./genericNodePropertyComponent */ "./diagram/properties/genericNodePropertyComponent.tsx");
  47732. var GradientPropertyTabComponent = /** @class */ (function (_super) {
  47733. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GradientPropertyTabComponent, _super);
  47734. function GradientPropertyTabComponent(props) {
  47735. return _super.call(this, props) || this;
  47736. }
  47737. GradientPropertyTabComponent.prototype.forceRebuild = function () {
  47738. this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  47739. this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  47740. };
  47741. GradientPropertyTabComponent.prototype.deleteStep = function (step) {
  47742. var gradientBlock = this.props.block;
  47743. var index = gradientBlock.colorSteps.indexOf(step);
  47744. if (index > -1) {
  47745. gradientBlock.colorSteps.splice(index, 1);
  47746. this.forceRebuild();
  47747. this.forceUpdate();
  47748. }
  47749. };
  47750. GradientPropertyTabComponent.prototype.addNewStep = function () {
  47751. var gradientBlock = this.props.block;
  47752. var newStep = new babylonjs_Materials_Node_Blocks_gradientBlock__WEBPACK_IMPORTED_MODULE_3__["GradientBlockColorStep"](1.0, babylonjs_Materials_Node_Blocks_gradientBlock__WEBPACK_IMPORTED_MODULE_3__["Color3"].White());
  47753. gradientBlock.colorSteps.push(newStep);
  47754. this.forceRebuild();
  47755. this.forceUpdate();
  47756. };
  47757. GradientPropertyTabComponent.prototype.render = function () {
  47758. var _this = this;
  47759. var gradientBlock = this.props.block;
  47760. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  47761. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_6__["GenericPropertyTabComponent"], { globalState: this.props.globalState, block: this.props.block }),
  47762. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { title: "STEPS" },
  47763. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_5__["ButtonLineComponent"], { label: "Add new step", onClick: function () { return _this.addNewStep(); } }),
  47764. gradientBlock.colorSteps.map(function (c, i) {
  47765. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_gradientStepComponent__WEBPACK_IMPORTED_MODULE_4__["GradientStepComponent"], { globalState: _this.props.globalState, onUpdateStep: function () { return _this.forceRebuild(); }, key: c.step, lineIndex: i, step: c, onDelete: function () { return _this.deleteStep(c); } }));
  47766. }))));
  47767. };
  47768. return GradientPropertyTabComponent;
  47769. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  47770. /***/ }),
  47771. /***/ "./diagram/properties/gradientStepComponent.tsx":
  47772. /*!******************************************************!*\
  47773. !*** ./diagram/properties/gradientStepComponent.tsx ***!
  47774. \******************************************************/
  47775. /*! exports provided: GradientStepComponent */
  47776. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  47777. "use strict";
  47778. __webpack_require__.r(__webpack_exports__);
  47779. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GradientStepComponent", function() { return GradientStepComponent; });
  47780. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  47781. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  47782. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  47783. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  47784. /* harmony import */ var _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @fortawesome/free-solid-svg-icons */ "../../node_modules/@fortawesome/free-solid-svg-icons/index.es.js");
  47785. /* harmony import */ var babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! babylonjs/Maths/math.color */ "babylonjs/Materials/Textures/texture");
  47786. /* harmony import */ var babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_4__);
  47787. var GradientStepComponent = /** @class */ (function (_super) {
  47788. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GradientStepComponent, _super);
  47789. function GradientStepComponent(props) {
  47790. var _this = _super.call(this, props) || this;
  47791. _this.state = { gradient: props.step.step };
  47792. return _this;
  47793. }
  47794. GradientStepComponent.prototype.updateColor = function (color) {
  47795. this.props.step.color = babylonjs_Maths_math_color__WEBPACK_IMPORTED_MODULE_4__["Color3"].FromHexString(color);
  47796. this.props.onUpdateStep();
  47797. this.forceUpdate();
  47798. };
  47799. GradientStepComponent.prototype.updateStep = function (gradient) {
  47800. this.props.step.step = gradient;
  47801. this.setState({ gradient: gradient });
  47802. this.props.onUpdateStep();
  47803. };
  47804. GradientStepComponent.prototype.render = function () {
  47805. var _this = this;
  47806. var step = this.props.step;
  47807. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "gradient-step" },
  47808. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "step" }, "#" + this.props.lineIndex),
  47809. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { type: "color", value: step.color.toHexString(), onChange: function (evt) { return _this.updateColor(evt.target.value); } }),
  47810. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "step-value" }, step.step.toFixed(2)),
  47811. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "step-slider" },
  47812. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { className: "range", type: "range", step: 0.01, min: 0, max: 1.0, value: step.step, onChange: function (evt) { return _this.updateStep(parseFloat(evt.target.value)); } })),
  47813. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "gradient-delete", onClick: function () { return _this.props.onDelete(); } },
  47814. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_3__["faTrash"] }))));
  47815. };
  47816. return GradientStepComponent;
  47817. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  47818. /***/ }),
  47819. /***/ "./diagram/properties/inputNodePropertyComponent.tsx":
  47820. /*!***********************************************************!*\
  47821. !*** ./diagram/properties/inputNodePropertyComponent.tsx ***!
  47822. \***********************************************************/
  47823. /*! exports provided: InputPropertyTabComponent */
  47824. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  47825. "use strict";
  47826. __webpack_require__.r(__webpack_exports__);
  47827. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InputPropertyTabComponent", function() { return InputPropertyTabComponent; });
  47828. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  47829. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  47830. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  47831. /* harmony import */ var _sharedComponents_floatLineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../sharedComponents/floatLineComponent */ "./sharedComponents/floatLineComponent.tsx");
  47832. /* harmony import */ var _components_propertyTab_properties_floatPropertyTabComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../components/propertyTab/properties/floatPropertyTabComponent */ "./components/propertyTab/properties/floatPropertyTabComponent.tsx");
  47833. /* harmony import */ var _sharedComponents_sliderLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../sharedComponents/sliderLineComponent */ "./sharedComponents/sliderLineComponent.tsx");
  47834. /* harmony import */ var _components_propertyTab_properties_vector2PropertyTabComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../components/propertyTab/properties/vector2PropertyTabComponent */ "./components/propertyTab/properties/vector2PropertyTabComponent.tsx");
  47835. /* harmony import */ var _components_propertyTab_properties_color3PropertyTabComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../components/propertyTab/properties/color3PropertyTabComponent */ "./components/propertyTab/properties/color3PropertyTabComponent.tsx");
  47836. /* harmony import */ var _components_propertyTab_properties_vector3PropertyTabComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../components/propertyTab/properties/vector3PropertyTabComponent */ "./components/propertyTab/properties/vector3PropertyTabComponent.tsx");
  47837. /* harmony import */ var _components_propertyTab_properties_vector4PropertyTabComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../components/propertyTab/properties/vector4PropertyTabComponent */ "./components/propertyTab/properties/vector4PropertyTabComponent.tsx");
  47838. /* harmony import */ var _components_propertyTab_properties_matrixPropertyTabComponent__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../components/propertyTab/properties/matrixPropertyTabComponent */ "./components/propertyTab/properties/matrixPropertyTabComponent.tsx");
  47839. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  47840. /* harmony import */ var _sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../sharedComponents/optionsLineComponent */ "./sharedComponents/optionsLineComponent.tsx");
  47841. /* harmony import */ var babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! babylonjs/Materials/Node/Enums/nodeMaterialBlockConnectionPointTypes */ "babylonjs/Materials/Textures/texture");
  47842. /* harmony import */ var babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__);
  47843. /* harmony import */ var _genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./genericNodePropertyComponent */ "./diagram/properties/genericNodePropertyComponent.tsx");
  47844. /* harmony import */ var _sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../sharedComponents/textInputLineComponent */ "./sharedComponents/textInputLineComponent.tsx");
  47845. var InputPropertyTabComponent = /** @class */ (function (_super) {
  47846. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(InputPropertyTabComponent, _super);
  47847. function InputPropertyTabComponent(props) {
  47848. return _super.call(this, props) || this;
  47849. }
  47850. InputPropertyTabComponent.prototype.renderValue = function (globalState) {
  47851. var _this = this;
  47852. var inputBlock = this.props.block;
  47853. switch (inputBlock.type) {
  47854. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialBlockConnectionPointTypes"].Float: {
  47855. var cantDisplaySlider = (isNaN(inputBlock.min) || isNaN(inputBlock.max) || inputBlock.min === inputBlock.max);
  47856. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  47857. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_floatLineComponent__WEBPACK_IMPORTED_MODULE_2__["FloatLineComponent"], { label: "Min", target: inputBlock, propertyName: "min", onChange: function () {
  47858. _this.forceUpdate();
  47859. } }),
  47860. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_floatLineComponent__WEBPACK_IMPORTED_MODULE_2__["FloatLineComponent"], { label: "Max", target: inputBlock, propertyName: "max", onChange: function () {
  47861. _this.forceUpdate();
  47862. } }),
  47863. cantDisplaySlider &&
  47864. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_components_propertyTab_properties_floatPropertyTabComponent__WEBPACK_IMPORTED_MODULE_3__["FloatPropertyTabComponent"], { globalState: globalState, inputBlock: inputBlock }),
  47865. !cantDisplaySlider &&
  47866. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_sliderLineComponent__WEBPACK_IMPORTED_MODULE_4__["SliderLineComponent"], { label: "Value", target: inputBlock, propertyName: "value", step: (inputBlock.max - inputBlock.min) / 100.0, minimum: inputBlock.min, maximum: inputBlock.max, onChange: function () {
  47867. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  47868. } })));
  47869. }
  47870. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialBlockConnectionPointTypes"].Vector2:
  47871. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_components_propertyTab_properties_vector2PropertyTabComponent__WEBPACK_IMPORTED_MODULE_5__["Vector2PropertyTabComponent"], { globalState: globalState, inputBlock: inputBlock }));
  47872. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialBlockConnectionPointTypes"].Color3:
  47873. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialBlockConnectionPointTypes"].Color4:
  47874. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_components_propertyTab_properties_color3PropertyTabComponent__WEBPACK_IMPORTED_MODULE_6__["Color3PropertyTabComponent"], { globalState: globalState, inputBlock: inputBlock }));
  47875. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialBlockConnectionPointTypes"].Vector3:
  47876. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_components_propertyTab_properties_vector3PropertyTabComponent__WEBPACK_IMPORTED_MODULE_7__["Vector3PropertyTabComponent"], { globalState: globalState, inputBlock: inputBlock }));
  47877. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialBlockConnectionPointTypes"].Vector4:
  47878. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_components_propertyTab_properties_vector4PropertyTabComponent__WEBPACK_IMPORTED_MODULE_8__["Vector4PropertyTabComponent"], { globalState: globalState, inputBlock: inputBlock }));
  47879. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialBlockConnectionPointTypes"].Matrix:
  47880. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_components_propertyTab_properties_matrixPropertyTabComponent__WEBPACK_IMPORTED_MODULE_9__["MatrixPropertyTabComponent"], { globalState: globalState, inputBlock: inputBlock }));
  47881. }
  47882. return null;
  47883. };
  47884. InputPropertyTabComponent.prototype.setDefaultValue = function () {
  47885. var inputBlock = this.props.block;
  47886. inputBlock.setDefaultValue();
  47887. };
  47888. InputPropertyTabComponent.prototype.render = function () {
  47889. var _this = this;
  47890. var inputBlock = this.props.block;
  47891. var systemValuesOptions = [];
  47892. var attributeOptions = [];
  47893. var animationOptions = [];
  47894. switch (inputBlock.type) {
  47895. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialBlockConnectionPointTypes"].Float:
  47896. animationOptions = [
  47897. { label: "None", value: babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["AnimatedInputBlockTypes"].None },
  47898. { label: "Time", value: babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["AnimatedInputBlockTypes"].Time },
  47899. ];
  47900. systemValuesOptions = [
  47901. { label: "Delta time", value: babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialSystemValues"].DeltaTime }
  47902. ];
  47903. break;
  47904. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialBlockConnectionPointTypes"].Matrix:
  47905. systemValuesOptions = [
  47906. { label: "World", value: babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialSystemValues"].World },
  47907. { label: "World x View", value: babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialSystemValues"].WorldView },
  47908. { label: "World x ViewxProjection", value: babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialSystemValues"].WorldViewProjection },
  47909. { label: "View", value: babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialSystemValues"].View },
  47910. { label: "View x Projection", value: babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialSystemValues"].ViewProjection },
  47911. { label: "Projection", value: babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialSystemValues"].Projection }
  47912. ];
  47913. break;
  47914. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialBlockConnectionPointTypes"].Color3:
  47915. systemValuesOptions = [
  47916. { label: "Fog color", value: babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialSystemValues"].FogColor }
  47917. ];
  47918. break;
  47919. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialBlockConnectionPointTypes"].Color4:
  47920. attributeOptions = [
  47921. { label: "color", value: "color" }
  47922. ];
  47923. break;
  47924. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialBlockConnectionPointTypes"].Vector2:
  47925. attributeOptions = [
  47926. { label: "uv", value: "uv" },
  47927. { label: "uv2", value: "uv2" },
  47928. ];
  47929. break;
  47930. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialBlockConnectionPointTypes"].Vector3:
  47931. systemValuesOptions = [
  47932. { label: "Camera position", value: babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialSystemValues"].CameraPosition }
  47933. ];
  47934. attributeOptions = [
  47935. { label: "position", value: "position" },
  47936. { label: "normal", value: "normal" },
  47937. { label: "tangent", value: "tangent" },
  47938. ];
  47939. break;
  47940. case babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["NodeMaterialBlockConnectionPointTypes"].Vector4:
  47941. attributeOptions = [
  47942. { label: "matricesIndices", value: "matricesIndices" },
  47943. { label: "matricesWeights", value: "matricesWeights" }
  47944. ];
  47945. break;
  47946. }
  47947. var modeOptions = [
  47948. { label: "User-defined", value: 0 }
  47949. ];
  47950. if (attributeOptions.length > 0) {
  47951. modeOptions.push({ label: "Mesh attribute", value: 1 });
  47952. }
  47953. if (systemValuesOptions.length > 0) {
  47954. modeOptions.push({ label: "System value", value: 2 });
  47955. }
  47956. var typeOptions = [
  47957. { label: "None", value: 0 },
  47958. { label: "Visible in the inspector", value: 1 },
  47959. { label: "Constant", value: 2 }
  47960. ];
  47961. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  47962. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_13__["GenericPropertyTabComponent"], { globalState: this.props.globalState, block: this.props.block }),
  47963. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_10__["LineContainerComponent"], { title: "PROPERTIES" },
  47964. inputBlock.isUniform && !inputBlock.isSystemValue && inputBlock.animationType === babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["AnimatedInputBlockTypes"].None &&
  47965. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_11__["OptionsLineComponent"], { label: "Type", options: typeOptions, target: inputBlock, noDirectUpdate: true, getSelection: function (block) {
  47966. if (block.visibleInInspector) {
  47967. return 1;
  47968. }
  47969. if (block.isConstant) {
  47970. return 2;
  47971. }
  47972. return 0;
  47973. }, onSelect: function (value) {
  47974. switch (value) {
  47975. case 0:
  47976. inputBlock.visibleInInspector = false;
  47977. inputBlock.isConstant = false;
  47978. break;
  47979. case 1:
  47980. inputBlock.visibleInInspector = true;
  47981. inputBlock.isConstant = false;
  47982. break;
  47983. case 2:
  47984. inputBlock.visibleInInspector = false;
  47985. inputBlock.isConstant = true;
  47986. break;
  47987. }
  47988. _this.forceUpdate();
  47989. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  47990. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  47991. } }),
  47992. inputBlock.visibleInInspector &&
  47993. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_14__["TextInputLineComponent"], { globalState: this.props.globalState, label: "Group", propertyName: "groupInInspector", target: this.props.block, onChange: function () {
  47994. _this.forceUpdate();
  47995. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  47996. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  47997. } }),
  47998. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_11__["OptionsLineComponent"], { label: "Mode", options: modeOptions, target: inputBlock, noDirectUpdate: true, getSelection: function (block) {
  47999. if (block.isAttribute) {
  48000. return 1;
  48001. }
  48002. if (block.isSystemValue) {
  48003. return 2;
  48004. }
  48005. return 0;
  48006. }, onSelect: function (value) {
  48007. switch (value) {
  48008. case 0:
  48009. inputBlock.isUniform = true;
  48010. inputBlock.setAsSystemValue(null);
  48011. _this.setDefaultValue();
  48012. break;
  48013. case 1:
  48014. inputBlock.setAsAttribute(attributeOptions[0].value);
  48015. break;
  48016. case 2:
  48017. inputBlock.setAsSystemValue(systemValuesOptions[0].value);
  48018. break;
  48019. }
  48020. _this.forceUpdate();
  48021. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  48022. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  48023. } }),
  48024. inputBlock.isAttribute &&
  48025. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_11__["OptionsLineComponent"], { label: "Attribute", valuesAreStrings: true, options: attributeOptions, target: inputBlock, propertyName: "name", onSelect: function (value) {
  48026. inputBlock.setAsAttribute(value);
  48027. _this.forceUpdate();
  48028. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  48029. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  48030. } }),
  48031. inputBlock.isUniform && animationOptions.length > 0 &&
  48032. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_11__["OptionsLineComponent"], { label: "Animation type", options: animationOptions, target: inputBlock, propertyName: "animationType", onSelect: function (value) {
  48033. _this.forceUpdate();
  48034. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  48035. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  48036. } }),
  48037. inputBlock.isUniform && !inputBlock.isSystemValue && inputBlock.animationType === babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_12__["AnimatedInputBlockTypes"].None &&
  48038. this.renderValue(this.props.globalState),
  48039. inputBlock.isUniform && inputBlock.isSystemValue &&
  48040. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_11__["OptionsLineComponent"], { label: "System value", options: systemValuesOptions, target: inputBlock, propertyName: "systemValue", onSelect: function (value) {
  48041. inputBlock.setAsSystemValue(value);
  48042. _this.forceUpdate();
  48043. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  48044. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  48045. } }))));
  48046. };
  48047. return InputPropertyTabComponent;
  48048. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  48049. /***/ }),
  48050. /***/ "./diagram/properties/lightInformationPropertyTabComponent.tsx":
  48051. /*!*********************************************************************!*\
  48052. !*** ./diagram/properties/lightInformationPropertyTabComponent.tsx ***!
  48053. \*********************************************************************/
  48054. /*! exports provided: LightInformationPropertyTabComponent */
  48055. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  48056. "use strict";
  48057. __webpack_require__.r(__webpack_exports__);
  48058. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LightInformationPropertyTabComponent", function() { return LightInformationPropertyTabComponent; });
  48059. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  48060. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  48061. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  48062. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  48063. /* harmony import */ var _sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../sharedComponents/optionsLineComponent */ "./sharedComponents/optionsLineComponent.tsx");
  48064. /* harmony import */ var _genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./genericNodePropertyComponent */ "./diagram/properties/genericNodePropertyComponent.tsx");
  48065. var LightInformationPropertyTabComponent = /** @class */ (function (_super) {
  48066. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(LightInformationPropertyTabComponent, _super);
  48067. function LightInformationPropertyTabComponent() {
  48068. return _super !== null && _super.apply(this, arguments) || this;
  48069. }
  48070. LightInformationPropertyTabComponent.prototype.render = function () {
  48071. var _this = this;
  48072. var scene = this.props.globalState.nodeMaterial.getScene();
  48073. var lightOptions = scene.lights.map(function (l) {
  48074. return { label: l.name, value: l.name };
  48075. });
  48076. var lightInformationBlock = this.props.block;
  48077. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  48078. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_4__["GenericPropertyTabComponent"], { globalState: this.props.globalState, block: this.props.block }),
  48079. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { title: "PROPERTIES" },
  48080. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_3__["OptionsLineComponent"], { label: "Light", noDirectUpdate: true, valuesAreStrings: true, options: lightOptions, target: lightInformationBlock, propertyName: "name", onSelect: function (name) {
  48081. lightInformationBlock.light = scene.getLightByName(name);
  48082. _this.forceUpdate();
  48083. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  48084. } }))));
  48085. };
  48086. return LightInformationPropertyTabComponent;
  48087. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  48088. /***/ }),
  48089. /***/ "./diagram/properties/lightPropertyTabComponent.tsx":
  48090. /*!**********************************************************!*\
  48091. !*** ./diagram/properties/lightPropertyTabComponent.tsx ***!
  48092. \**********************************************************/
  48093. /*! exports provided: LightPropertyTabComponent */
  48094. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  48095. "use strict";
  48096. __webpack_require__.r(__webpack_exports__);
  48097. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LightPropertyTabComponent", function() { return LightPropertyTabComponent; });
  48098. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  48099. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  48100. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  48101. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  48102. /* harmony import */ var _sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../sharedComponents/optionsLineComponent */ "./sharedComponents/optionsLineComponent.tsx");
  48103. /* harmony import */ var _genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./genericNodePropertyComponent */ "./diagram/properties/genericNodePropertyComponent.tsx");
  48104. var LightPropertyTabComponent = /** @class */ (function (_super) {
  48105. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(LightPropertyTabComponent, _super);
  48106. function LightPropertyTabComponent() {
  48107. return _super !== null && _super.apply(this, arguments) || this;
  48108. }
  48109. LightPropertyTabComponent.prototype.render = function () {
  48110. var _this = this;
  48111. var scene = this.props.globalState.nodeMaterial.getScene();
  48112. var lightOptions = scene.lights.map(function (l) {
  48113. return { label: l.name, value: l.name };
  48114. });
  48115. lightOptions.splice(0, 0, { label: "All", value: "" });
  48116. var lightBlock = this.props.block;
  48117. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  48118. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_4__["GenericPropertyTabComponent"], { globalState: this.props.globalState, block: this.props.block }),
  48119. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { title: "PROPERTIES" },
  48120. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_3__["OptionsLineComponent"], { label: "Light", defaultIfNull: 0, noDirectUpdate: true, valuesAreStrings: true, options: lightOptions, target: lightBlock, propertyName: "name", onSelect: function (name) {
  48121. if (name === "") {
  48122. lightBlock.light = null;
  48123. }
  48124. else {
  48125. lightBlock.light = scene.getLightByName(name);
  48126. }
  48127. _this.forceUpdate();
  48128. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  48129. } }))));
  48130. };
  48131. return LightPropertyTabComponent;
  48132. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  48133. /***/ }),
  48134. /***/ "./diagram/properties/remapNodePropertyComponent.tsx":
  48135. /*!***********************************************************!*\
  48136. !*** ./diagram/properties/remapNodePropertyComponent.tsx ***!
  48137. \***********************************************************/
  48138. /*! exports provided: RemapPropertyTabComponent */
  48139. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  48140. "use strict";
  48141. __webpack_require__.r(__webpack_exports__);
  48142. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RemapPropertyTabComponent", function() { return RemapPropertyTabComponent; });
  48143. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  48144. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  48145. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  48146. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  48147. /* harmony import */ var _sharedComponents_vector2LineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../sharedComponents/vector2LineComponent */ "./sharedComponents/vector2LineComponent.tsx");
  48148. /* harmony import */ var _genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./genericNodePropertyComponent */ "./diagram/properties/genericNodePropertyComponent.tsx");
  48149. var RemapPropertyTabComponent = /** @class */ (function (_super) {
  48150. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(RemapPropertyTabComponent, _super);
  48151. function RemapPropertyTabComponent(props) {
  48152. return _super.call(this, props) || this;
  48153. }
  48154. RemapPropertyTabComponent.prototype.forceRebuild = function () {
  48155. this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  48156. this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  48157. };
  48158. RemapPropertyTabComponent.prototype.render = function () {
  48159. var _this = this;
  48160. var remapBlock = this.props.block;
  48161. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  48162. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_4__["GenericPropertyTabComponent"], { globalState: this.props.globalState, block: this.props.block }),
  48163. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { title: "PROPERTIES" },
  48164. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_vector2LineComponent__WEBPACK_IMPORTED_MODULE_3__["Vector2LineComponent"], { label: "From", propertyName: "sourceRange", target: remapBlock, onChange: function () { return _this.forceRebuild(); } }),
  48165. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_vector2LineComponent__WEBPACK_IMPORTED_MODULE_3__["Vector2LineComponent"], { label: "To", propertyName: "targetRange", target: remapBlock, onChange: function () { return _this.forceRebuild(); } }))));
  48166. };
  48167. return RemapPropertyTabComponent;
  48168. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  48169. /***/ }),
  48170. /***/ "./diagram/properties/texturePropertyTabComponent.tsx":
  48171. /*!************************************************************!*\
  48172. !*** ./diagram/properties/texturePropertyTabComponent.tsx ***!
  48173. \************************************************************/
  48174. /*! exports provided: TexturePropertyTabComponent */
  48175. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  48176. "use strict";
  48177. __webpack_require__.r(__webpack_exports__);
  48178. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TexturePropertyTabComponent", function() { return TexturePropertyTabComponent; });
  48179. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  48180. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  48181. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  48182. /* harmony import */ var _sharedComponents_fileButtonLineComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../sharedComponents/fileButtonLineComponent */ "./sharedComponents/fileButtonLineComponent.tsx");
  48183. /* harmony import */ var babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! babylonjs/Misc/tools */ "babylonjs/Materials/Textures/texture");
  48184. /* harmony import */ var babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__);
  48185. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  48186. /* harmony import */ var _sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../sharedComponents/textInputLineComponent */ "./sharedComponents/textInputLineComponent.tsx");
  48187. /* harmony import */ var _sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../sharedComponents/checkBoxLineComponent */ "./sharedComponents/checkBoxLineComponent.tsx");
  48188. /* harmony import */ var _sharedComponents_sliderLineComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../sharedComponents/sliderLineComponent */ "./sharedComponents/sliderLineComponent.tsx");
  48189. /* harmony import */ var _sharedComponents_floatLineComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../sharedComponents/floatLineComponent */ "./sharedComponents/floatLineComponent.tsx");
  48190. /* harmony import */ var _sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../sharedComponents/buttonLineComponent */ "./sharedComponents/buttonLineComponent.tsx");
  48191. /* harmony import */ var _sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../sharedComponents/optionsLineComponent */ "./sharedComponents/optionsLineComponent.tsx");
  48192. /* harmony import */ var _genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./genericNodePropertyComponent */ "./diagram/properties/genericNodePropertyComponent.tsx");
  48193. var TexturePropertyTabComponent = /** @class */ (function (_super) {
  48194. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TexturePropertyTabComponent, _super);
  48195. function TexturePropertyTabComponent(props) {
  48196. var _this = _super.call(this, props) || this;
  48197. var texture = _this.textureBlock.texture;
  48198. _this.state = { isEmbedded: !texture || texture.name.substring(0, 4) === "data", loadAsCubeTexture: texture && texture.isCube };
  48199. return _this;
  48200. }
  48201. Object.defineProperty(TexturePropertyTabComponent.prototype, "textureBlock", {
  48202. get: function () {
  48203. return this.props.block;
  48204. },
  48205. enumerable: true,
  48206. configurable: true
  48207. });
  48208. TexturePropertyTabComponent.prototype.UNSAFE_componentWillUpdate = function (nextProps, nextState) {
  48209. if (nextProps.block !== this.props.block) {
  48210. var texture = nextProps.block.texture;
  48211. nextState.isEmbedded = !texture || texture.name.substring(0, 4) === "data";
  48212. nextState.loadAsCubeTexture = texture && texture.isCube;
  48213. }
  48214. };
  48215. TexturePropertyTabComponent.prototype._generateRandomForCache = function () {
  48216. return 'xxxxxxxxxxxxxxxxxxxx'.replace(/[x]/g, function (c) {
  48217. var r = Math.random() * 10 | 0;
  48218. return r.toString();
  48219. });
  48220. };
  48221. TexturePropertyTabComponent.prototype.updateAfterTextureLoad = function () {
  48222. this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  48223. this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  48224. this.forceUpdate();
  48225. };
  48226. TexturePropertyTabComponent.prototype.removeTexture = function () {
  48227. var texture = this.textureBlock.texture;
  48228. if (texture) {
  48229. texture.dispose();
  48230. texture = null;
  48231. this.textureBlock.texture = null;
  48232. }
  48233. this.updateAfterTextureLoad();
  48234. };
  48235. TexturePropertyTabComponent.prototype._prepareTexture = function () {
  48236. var texture = this.textureBlock.texture;
  48237. if (texture && texture.isCube !== this.state.loadAsCubeTexture) {
  48238. texture.dispose();
  48239. texture = null;
  48240. }
  48241. if (!texture) {
  48242. if (!this.state.loadAsCubeTexture) {
  48243. this.textureBlock.texture = new babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"](null, this.props.globalState.nodeMaterial.getScene(), false, this.textureBlock instanceof babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["ReflectionTextureBlock"]);
  48244. texture = this.textureBlock.texture;
  48245. texture.coordinatesMode = babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"].EQUIRECTANGULAR_MODE;
  48246. }
  48247. else {
  48248. this.textureBlock.texture = new babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["CubeTexture"]("", this.props.globalState.nodeMaterial.getScene());
  48249. texture = this.textureBlock.texture;
  48250. texture.coordinatesMode = babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"].CUBIC_MODE;
  48251. }
  48252. }
  48253. };
  48254. /**
  48255. * Replaces the texture of the node
  48256. * @param file the file of the texture to use
  48257. */
  48258. TexturePropertyTabComponent.prototype.replaceTexture = function (file) {
  48259. var _this = this;
  48260. this._prepareTexture();
  48261. var texture = this.textureBlock.texture;
  48262. babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Tools"].ReadFile(file, function (data) {
  48263. var blob = new Blob([data], { type: "octet/stream" });
  48264. var reader = new FileReader();
  48265. reader.readAsDataURL(blob);
  48266. reader.onloadend = function () {
  48267. var base64data = reader.result;
  48268. var extension = undefined;
  48269. if (file.name.toLowerCase().indexOf(".dds") > 0) {
  48270. extension = ".dds";
  48271. }
  48272. else if (file.name.toLowerCase().indexOf(".env") > 0) {
  48273. extension = ".env";
  48274. }
  48275. texture.updateURL(base64data, extension, function () { return _this.updateAfterTextureLoad(); });
  48276. };
  48277. }, undefined, true);
  48278. };
  48279. TexturePropertyTabComponent.prototype.replaceTextureWithUrl = function (url) {
  48280. var _this = this;
  48281. this._prepareTexture();
  48282. var texture = this.textureBlock.texture;
  48283. if (texture.isCube || this.textureBlock instanceof babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["ReflectionTextureBlock"]) {
  48284. var extension = undefined;
  48285. if (url.toLowerCase().indexOf(".dds") > 0) {
  48286. extension = ".dds";
  48287. }
  48288. else if (url.toLowerCase().indexOf(".env") > 0) {
  48289. extension = ".env";
  48290. }
  48291. texture.updateURL(url, extension, function () { return _this.updateAfterTextureLoad(); });
  48292. }
  48293. else {
  48294. texture.updateURL(url, null, function () { return _this.updateAfterTextureLoad(); });
  48295. }
  48296. };
  48297. TexturePropertyTabComponent.prototype.render = function () {
  48298. var _this = this;
  48299. var url = "";
  48300. var texture = this.textureBlock.texture;
  48301. if (texture && texture.name && texture.name.substring(0, 4) !== "data") {
  48302. url = texture.name;
  48303. }
  48304. url = url.replace(/\?nocache=\d+/, "");
  48305. var isInReflectionMode = this.textureBlock instanceof babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["ReflectionTextureBlock"];
  48306. var reflectionModeOptions = [
  48307. {
  48308. label: "Cubic", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"].CUBIC_MODE
  48309. },
  48310. {
  48311. label: "Equirectangular", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"].EQUIRECTANGULAR_MODE
  48312. },
  48313. {
  48314. label: "Explicit", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"].EXPLICIT_MODE
  48315. },
  48316. {
  48317. label: "Fixed equirectangular", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"].FIXED_EQUIRECTANGULAR_MODE
  48318. },
  48319. {
  48320. label: "Fixed mirrored equirectangular", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"].FIXED_EQUIRECTANGULAR_MIRRORED_MODE
  48321. },
  48322. {
  48323. label: "Planar", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"].PLANAR_MODE
  48324. },
  48325. {
  48326. label: "Projection", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"].PROJECTION_MODE
  48327. },
  48328. {
  48329. label: "Skybox", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"].SKYBOX_MODE
  48330. },
  48331. {
  48332. label: "Spherical", value: babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"].SPHERICAL_MODE
  48333. },
  48334. ];
  48335. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  48336. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_11__["GenericPropertyTabComponent"], { globalState: this.props.globalState, block: this.props.block }),
  48337. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__["LineContainerComponent"], { title: "PROPERTIES" },
  48338. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_6__["CheckBoxLineComponent"], { label: "Auto select UV", propertyName: "autoSelectUV", target: this.props.block, onValueChanged: function () {
  48339. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  48340. } }),
  48341. texture && isInReflectionMode &&
  48342. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_10__["OptionsLineComponent"], { label: "Reflection mode", options: reflectionModeOptions, target: texture, propertyName: "coordinatesMode", onSelect: function (value) {
  48343. texture.coordinatesMode = value;
  48344. _this.forceUpdate();
  48345. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  48346. } }),
  48347. texture && !isInReflectionMode &&
  48348. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_6__["CheckBoxLineComponent"], { label: "Gamma space", propertyName: "gammaSpace", target: texture, onValueChanged: function () {
  48349. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  48350. } }),
  48351. texture && !isInReflectionMode &&
  48352. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_6__["CheckBoxLineComponent"], { label: "Clamp U", isSelected: function () { return texture.wrapU === babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"].CLAMP_ADDRESSMODE; }, onSelect: function (value) {
  48353. texture.wrapU = value ? babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"].CLAMP_ADDRESSMODE : babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"].WRAP_ADDRESSMODE;
  48354. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  48355. } }),
  48356. texture && !isInReflectionMode &&
  48357. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_6__["CheckBoxLineComponent"], { label: "Clamp V", isSelected: function () { return texture.wrapV === babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"].CLAMP_ADDRESSMODE; }, onSelect: function (value) {
  48358. texture.wrapV = value ? babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"].CLAMP_ADDRESSMODE : babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_3__["Texture"].WRAP_ADDRESSMODE;
  48359. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  48360. } }),
  48361. texture && !isInReflectionMode &&
  48362. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_floatLineComponent__WEBPACK_IMPORTED_MODULE_8__["FloatLineComponent"], { label: "Offset U", target: texture, propertyName: "uOffset", onChange: function () {
  48363. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  48364. } }),
  48365. texture && !isInReflectionMode &&
  48366. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_floatLineComponent__WEBPACK_IMPORTED_MODULE_8__["FloatLineComponent"], { label: "Offset V", target: texture, propertyName: "vOffset", onChange: function () {
  48367. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  48368. } }),
  48369. texture && !isInReflectionMode &&
  48370. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_floatLineComponent__WEBPACK_IMPORTED_MODULE_8__["FloatLineComponent"], { label: "Scale U", target: texture, propertyName: "uScale", onChange: function () {
  48371. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  48372. } }),
  48373. texture && !isInReflectionMode &&
  48374. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_floatLineComponent__WEBPACK_IMPORTED_MODULE_8__["FloatLineComponent"], { label: "Scale V", target: texture, propertyName: "vScale", onChange: function () {
  48375. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  48376. } }),
  48377. texture && !isInReflectionMode &&
  48378. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_sliderLineComponent__WEBPACK_IMPORTED_MODULE_7__["SliderLineComponent"], { label: "Rotation U", target: texture, propertyName: "uAng", minimum: 0, maximum: Math.PI * 2, useEuler: true, step: 0.1, onChange: function () {
  48379. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  48380. } }),
  48381. texture && !isInReflectionMode &&
  48382. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_sliderLineComponent__WEBPACK_IMPORTED_MODULE_7__["SliderLineComponent"], { label: "Rotation V", target: texture, propertyName: "vAng", minimum: 0, maximum: Math.PI * 2, useEuler: true, step: 0.1, onChange: function () {
  48383. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  48384. } }),
  48385. texture && !isInReflectionMode &&
  48386. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_sliderLineComponent__WEBPACK_IMPORTED_MODULE_7__["SliderLineComponent"], { label: "Rotation W", target: texture, propertyName: "wAng", minimum: 0, maximum: Math.PI * 2, useEuler: true, step: 0.1, onChange: function () {
  48387. _this.props.globalState.onUpdateRequiredObservable.notifyObservers();
  48388. } })),
  48389. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_4__["LineContainerComponent"], { title: "SOURCE" },
  48390. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_6__["CheckBoxLineComponent"], { label: "Embed static texture", isSelected: function () { return _this.state.isEmbedded; }, onSelect: function (value) {
  48391. _this.setState({ isEmbedded: value });
  48392. _this.textureBlock.texture = null;
  48393. _this.updateAfterTextureLoad();
  48394. } }),
  48395. isInReflectionMode &&
  48396. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_6__["CheckBoxLineComponent"], { label: "Load as cube texture", isSelected: function () { return _this.state.loadAsCubeTexture; }, onSelect: function (value) { return _this.setState({ loadAsCubeTexture: value }); } }),
  48397. this.state.isEmbedded &&
  48398. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_fileButtonLineComponent__WEBPACK_IMPORTED_MODULE_2__["FileButtonLineComponent"], { label: "Upload", onClick: function (file) { return _this.replaceTexture(file); }, accept: ".jpg, .png, .tga, .dds, .env" }),
  48399. !this.state.isEmbedded &&
  48400. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_textInputLineComponent__WEBPACK_IMPORTED_MODULE_5__["TextInputLineComponent"], { label: "Link", globalState: this.props.globalState, value: url, onChange: function (newUrl) { return _this.replaceTextureWithUrl(newUrl); } }),
  48401. !this.state.isEmbedded && url &&
  48402. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_9__["ButtonLineComponent"], { label: "Refresh", onClick: function () { return _this.replaceTextureWithUrl(url + "?nocache=" + _this._generateRandomForCache()); } }),
  48403. texture &&
  48404. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_buttonLineComponent__WEBPACK_IMPORTED_MODULE_9__["ButtonLineComponent"], { label: "Remove", onClick: function () { return _this.removeTexture(); } }))));
  48405. };
  48406. return TexturePropertyTabComponent;
  48407. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  48408. /***/ }),
  48409. /***/ "./diagram/properties/transformNodePropertyComponent.tsx":
  48410. /*!***************************************************************!*\
  48411. !*** ./diagram/properties/transformNodePropertyComponent.tsx ***!
  48412. \***************************************************************/
  48413. /*! exports provided: TransformPropertyTabComponent */
  48414. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  48415. "use strict";
  48416. __webpack_require__.r(__webpack_exports__);
  48417. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransformPropertyTabComponent", function() { return TransformPropertyTabComponent; });
  48418. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  48419. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  48420. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  48421. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  48422. /* harmony import */ var _sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../sharedComponents/checkBoxLineComponent */ "./sharedComponents/checkBoxLineComponent.tsx");
  48423. /* harmony import */ var _genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./genericNodePropertyComponent */ "./diagram/properties/genericNodePropertyComponent.tsx");
  48424. var TransformPropertyTabComponent = /** @class */ (function (_super) {
  48425. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TransformPropertyTabComponent, _super);
  48426. function TransformPropertyTabComponent(props) {
  48427. return _super.call(this, props) || this;
  48428. }
  48429. TransformPropertyTabComponent.prototype.render = function () {
  48430. var _this = this;
  48431. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  48432. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_4__["GenericPropertyTabComponent"], { globalState: this.props.globalState, block: this.props.block }),
  48433. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { title: "PROPERTIES" },
  48434. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "Transform as direction", onSelect: function (value) {
  48435. var transformBlock = _this.props.block;
  48436. if (value) {
  48437. transformBlock.complementW = 0;
  48438. }
  48439. else {
  48440. transformBlock.complementW = 1;
  48441. }
  48442. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  48443. }, isSelected: function () { return _this.props.block.complementW === 0; } }))));
  48444. };
  48445. return TransformPropertyTabComponent;
  48446. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  48447. /***/ }),
  48448. /***/ "./diagram/properties/trigonometryNodePropertyComponent.tsx":
  48449. /*!******************************************************************!*\
  48450. !*** ./diagram/properties/trigonometryNodePropertyComponent.tsx ***!
  48451. \******************************************************************/
  48452. /*! exports provided: TrigonometryPropertyTabComponent */
  48453. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  48454. "use strict";
  48455. __webpack_require__.r(__webpack_exports__);
  48456. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TrigonometryPropertyTabComponent", function() { return TrigonometryPropertyTabComponent; });
  48457. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  48458. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  48459. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  48460. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  48461. /* harmony import */ var _sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../sharedComponents/optionsLineComponent */ "./sharedComponents/optionsLineComponent.tsx");
  48462. /* harmony import */ var babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! babylonjs/Materials/Node/Blocks/trigonometryBlock */ "babylonjs/Materials/Textures/texture");
  48463. /* harmony import */ var babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_4__);
  48464. /* harmony import */ var _genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./genericNodePropertyComponent */ "./diagram/properties/genericNodePropertyComponent.tsx");
  48465. var TrigonometryPropertyTabComponent = /** @class */ (function (_super) {
  48466. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TrigonometryPropertyTabComponent, _super);
  48467. function TrigonometryPropertyTabComponent(props) {
  48468. return _super.call(this, props) || this;
  48469. }
  48470. TrigonometryPropertyTabComponent.prototype.render = function () {
  48471. var _this = this;
  48472. var trigonometryBlock = this.props.block;
  48473. var operationOptions = [
  48474. { label: "Cos", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_4__["TrigonometryBlockOperations"].Cos },
  48475. { label: "Sin", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_4__["TrigonometryBlockOperations"].Sin },
  48476. { label: "Abs", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_4__["TrigonometryBlockOperations"].Abs },
  48477. { label: "Exp", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_4__["TrigonometryBlockOperations"].Exp },
  48478. { label: "Exp2", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_4__["TrigonometryBlockOperations"].Exp2 },
  48479. { label: "Round", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_4__["TrigonometryBlockOperations"].Round },
  48480. { label: "Ceiling", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_4__["TrigonometryBlockOperations"].Ceiling },
  48481. { label: "Floor", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_4__["TrigonometryBlockOperations"].Floor },
  48482. { label: "ArcCos", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_4__["TrigonometryBlockOperations"].ArcCos },
  48483. { label: "ArcSin", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_4__["TrigonometryBlockOperations"].ArcSin },
  48484. { label: "ArcTan", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_4__["TrigonometryBlockOperations"].ArcTan },
  48485. { label: "Tan", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_4__["TrigonometryBlockOperations"].Tan },
  48486. { label: "Log", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_4__["TrigonometryBlockOperations"].Log },
  48487. { label: "Fract", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_4__["TrigonometryBlockOperations"].Fract },
  48488. { label: "Sign", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_4__["TrigonometryBlockOperations"].Sign },
  48489. { label: "Radians to degrees", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_4__["TrigonometryBlockOperations"].Degrees },
  48490. { label: "Degrees to radians", value: babylonjs_Materials_Node_Blocks_trigonometryBlock__WEBPACK_IMPORTED_MODULE_4__["TrigonometryBlockOperations"].Radians }
  48491. ];
  48492. operationOptions.sort(function (a, b) {
  48493. return a.label.localeCompare(b.label);
  48494. });
  48495. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null,
  48496. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_5__["GenericPropertyTabComponent"], { globalState: this.props.globalState, block: this.props.block }),
  48497. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { title: "PROPERTIES" },
  48498. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_optionsLineComponent__WEBPACK_IMPORTED_MODULE_3__["OptionsLineComponent"], { label: "Operation", options: operationOptions, target: trigonometryBlock, propertyName: "operation", onSelect: function (value) {
  48499. _this.forceUpdate();
  48500. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  48501. } }))));
  48502. };
  48503. return TrigonometryPropertyTabComponent;
  48504. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  48505. /***/ }),
  48506. /***/ "./diagram/properties/worleyNoise3DNodePropertyComponent.tsx":
  48507. /*!*******************************************************************!*\
  48508. !*** ./diagram/properties/worleyNoise3DNodePropertyComponent.tsx ***!
  48509. \*******************************************************************/
  48510. /*! exports provided: WorleyNoise3DNodePropertyComponent */
  48511. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  48512. "use strict";
  48513. __webpack_require__.r(__webpack_exports__);
  48514. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "WorleyNoise3DNodePropertyComponent", function() { return WorleyNoise3DNodePropertyComponent; });
  48515. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  48516. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  48517. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  48518. /* harmony import */ var _sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../sharedComponents/lineContainerComponent */ "./sharedComponents/lineContainerComponent.tsx");
  48519. /* harmony import */ var _sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../sharedComponents/checkBoxLineComponent */ "./sharedComponents/checkBoxLineComponent.tsx");
  48520. /* harmony import */ var _genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./genericNodePropertyComponent */ "./diagram/properties/genericNodePropertyComponent.tsx");
  48521. var WorleyNoise3DNodePropertyComponent = /** @class */ (function (_super) {
  48522. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(WorleyNoise3DNodePropertyComponent, _super);
  48523. function WorleyNoise3DNodePropertyComponent(props) {
  48524. return _super.call(this, props) || this;
  48525. }
  48526. WorleyNoise3DNodePropertyComponent.prototype.render = function () {
  48527. var _this = this;
  48528. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
  48529. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_genericNodePropertyComponent__WEBPACK_IMPORTED_MODULE_4__["GenericPropertyTabComponent"], { globalState: this.props.globalState, block: this.props.block }),
  48530. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_lineContainerComponent__WEBPACK_IMPORTED_MODULE_2__["LineContainerComponent"], { title: "PROPERTIES" },
  48531. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_checkBoxLineComponent__WEBPACK_IMPORTED_MODULE_3__["CheckBoxLineComponent"], { label: "Use Manhattan Distance", target: this.props.block, propertyName: "manhattanDistance", onValueChanged: function () { return _this.props.globalState.onRebuildRequiredObservable.notifyObservers(); } }))));
  48532. };
  48533. return WorleyNoise3DNodePropertyComponent;
  48534. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  48535. /***/ }),
  48536. /***/ "./diagram/propertyLedger.ts":
  48537. /*!***********************************!*\
  48538. !*** ./diagram/propertyLedger.ts ***!
  48539. \***********************************/
  48540. /*! exports provided: PropertyLedger */
  48541. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  48542. "use strict";
  48543. __webpack_require__.r(__webpack_exports__);
  48544. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PropertyLedger", function() { return PropertyLedger; });
  48545. /* harmony import */ var _properties_inputNodePropertyComponent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./properties/inputNodePropertyComponent */ "./diagram/properties/inputNodePropertyComponent.tsx");
  48546. /* harmony import */ var _properties_transformNodePropertyComponent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./properties/transformNodePropertyComponent */ "./diagram/properties/transformNodePropertyComponent.tsx");
  48547. /* harmony import */ var _properties_PerturbNormalNodePropertyComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./properties/PerturbNormalNodePropertyComponent */ "./diagram/properties/PerturbNormalNodePropertyComponent.tsx");
  48548. /* harmony import */ var _properties_worleyNoise3DNodePropertyComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./properties/worleyNoise3DNodePropertyComponent */ "./diagram/properties/worleyNoise3DNodePropertyComponent.tsx");
  48549. /* harmony import */ var _properties_clampNodePropertyComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./properties/clampNodePropertyComponent */ "./diagram/properties/clampNodePropertyComponent.tsx");
  48550. /* harmony import */ var _properties_gradientNodePropertyComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./properties/gradientNodePropertyComponent */ "./diagram/properties/gradientNodePropertyComponent.tsx");
  48551. /* harmony import */ var _properties_lightPropertyTabComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./properties/lightPropertyTabComponent */ "./diagram/properties/lightPropertyTabComponent.tsx");
  48552. /* harmony import */ var _properties_lightInformationPropertyTabComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./properties/lightInformationPropertyTabComponent */ "./diagram/properties/lightInformationPropertyTabComponent.tsx");
  48553. /* harmony import */ var _properties_remapNodePropertyComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./properties/remapNodePropertyComponent */ "./diagram/properties/remapNodePropertyComponent.tsx");
  48554. /* harmony import */ var _properties_texturePropertyTabComponent__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./properties/texturePropertyTabComponent */ "./diagram/properties/texturePropertyTabComponent.tsx");
  48555. /* harmony import */ var _properties_trigonometryNodePropertyComponent__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./properties/trigonometryNodePropertyComponent */ "./diagram/properties/trigonometryNodePropertyComponent.tsx");
  48556. var PropertyLedger = /** @class */ (function () {
  48557. function PropertyLedger() {
  48558. }
  48559. PropertyLedger.RegisteredControls = {};
  48560. return PropertyLedger;
  48561. }());
  48562. PropertyLedger.RegisteredControls["TransformBlock"] = _properties_transformNodePropertyComponent__WEBPACK_IMPORTED_MODULE_1__["TransformPropertyTabComponent"];
  48563. PropertyLedger.RegisteredControls["InputBlock"] = _properties_inputNodePropertyComponent__WEBPACK_IMPORTED_MODULE_0__["InputPropertyTabComponent"];
  48564. PropertyLedger.RegisteredControls["PerturbNormalBlock"] = _properties_PerturbNormalNodePropertyComponent__WEBPACK_IMPORTED_MODULE_2__["PerturbNormalPropertyTabComponent"];
  48565. PropertyLedger.RegisteredControls["WorleyNoise3DBlock"] = _properties_worleyNoise3DNodePropertyComponent__WEBPACK_IMPORTED_MODULE_3__["WorleyNoise3DNodePropertyComponent"];
  48566. PropertyLedger.RegisteredControls["ClampBlock"] = _properties_clampNodePropertyComponent__WEBPACK_IMPORTED_MODULE_4__["ClampPropertyTabComponent"];
  48567. PropertyLedger.RegisteredControls["GradientBlock"] = _properties_gradientNodePropertyComponent__WEBPACK_IMPORTED_MODULE_5__["GradientPropertyTabComponent"];
  48568. PropertyLedger.RegisteredControls["LightBlock"] = _properties_lightPropertyTabComponent__WEBPACK_IMPORTED_MODULE_6__["LightPropertyTabComponent"];
  48569. PropertyLedger.RegisteredControls["LightInformationBlock"] = _properties_lightInformationPropertyTabComponent__WEBPACK_IMPORTED_MODULE_7__["LightInformationPropertyTabComponent"];
  48570. PropertyLedger.RegisteredControls["RemapBlock"] = _properties_remapNodePropertyComponent__WEBPACK_IMPORTED_MODULE_8__["RemapPropertyTabComponent"];
  48571. PropertyLedger.RegisteredControls["TextureBlock"] = _properties_texturePropertyTabComponent__WEBPACK_IMPORTED_MODULE_9__["TexturePropertyTabComponent"];
  48572. PropertyLedger.RegisteredControls["ReflectionTextureBlock"] = _properties_texturePropertyTabComponent__WEBPACK_IMPORTED_MODULE_9__["TexturePropertyTabComponent"];
  48573. PropertyLedger.RegisteredControls["TrigonometryBlock"] = _properties_trigonometryNodePropertyComponent__WEBPACK_IMPORTED_MODULE_10__["TrigonometryPropertyTabComponent"];
  48574. /***/ }),
  48575. /***/ "./globalState.ts":
  48576. /*!************************!*\
  48577. !*** ./globalState.ts ***!
  48578. \************************/
  48579. /*! exports provided: GlobalState */
  48580. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  48581. "use strict";
  48582. __webpack_require__.r(__webpack_exports__);
  48583. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GlobalState", function() { return GlobalState; });
  48584. /* harmony import */ var babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babylonjs/Misc/observable */ "babylonjs/Materials/Textures/texture");
  48585. /* harmony import */ var babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__);
  48586. /* harmony import */ var _components_preview_previewMeshType__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./components/preview/previewMeshType */ "./components/preview/previewMeshType.ts");
  48587. /* harmony import */ var _dataStorage__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./dataStorage */ "./dataStorage.ts");
  48588. var GlobalState = /** @class */ (function () {
  48589. function GlobalState() {
  48590. this.onSelectionChangedObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  48591. this.onRebuildRequiredObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  48592. this.onResetRequiredObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  48593. this.onUpdateRequiredObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  48594. this.onZoomToFitRequiredObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  48595. this.onReOrganizedRequiredObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  48596. this.onLogRequiredObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  48597. this.onErrorMessageDialogRequiredObservable = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  48598. this.onIsLoadingChanged = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  48599. this.onPreviewCommandActivated = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  48600. this.onLightUpdated = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  48601. this.onPreviewBackgroundChanged = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  48602. this.onBackFaceCullingChanged = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  48603. this.onDepthPrePassChanged = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  48604. this.onAnimationCommandActivated = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  48605. this.onCandidateLinkMoved = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  48606. this.onSelectionBoxMoved = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  48607. this.onFrameCreated = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  48608. this.onCandidatePortSelected = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  48609. this.onGridSizeChanged = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  48610. this.blockKeyboardEvents = false;
  48611. this.previewMeshType = _dataStorage__WEBPACK_IMPORTED_MODULE_2__["DataStorage"].ReadNumber("PreviewMeshType", _components_preview_previewMeshType__WEBPACK_IMPORTED_MODULE_1__["PreviewMeshType"].Box);
  48612. this.backFaceCulling = _dataStorage__WEBPACK_IMPORTED_MODULE_2__["DataStorage"].ReadBoolean("BackFaceCulling", true);
  48613. this.depthPrePass = _dataStorage__WEBPACK_IMPORTED_MODULE_2__["DataStorage"].ReadBoolean("DepthPrePass", false);
  48614. this.hemisphericLight = _dataStorage__WEBPACK_IMPORTED_MODULE_2__["DataStorage"].ReadBoolean("HemisphericLight", true);
  48615. this.directionalLight0 = _dataStorage__WEBPACK_IMPORTED_MODULE_2__["DataStorage"].ReadBoolean("DirectionalLight0", false);
  48616. this.directionalLight1 = _dataStorage__WEBPACK_IMPORTED_MODULE_2__["DataStorage"].ReadBoolean("DirectionalLight1", false);
  48617. this.controlCamera = _dataStorage__WEBPACK_IMPORTED_MODULE_2__["DataStorage"].ReadBoolean("ControlCamera", true);
  48618. var r = _dataStorage__WEBPACK_IMPORTED_MODULE_2__["DataStorage"].ReadNumber("BackgroundColorR", 0.37);
  48619. var g = _dataStorage__WEBPACK_IMPORTED_MODULE_2__["DataStorage"].ReadNumber("BackgroundColorG", 0.37);
  48620. var b = _dataStorage__WEBPACK_IMPORTED_MODULE_2__["DataStorage"].ReadNumber("BackgroundColorB", 0.37);
  48621. this.backgroundColor = new babylonjs_Misc_observable__WEBPACK_IMPORTED_MODULE_0__["Color4"](r, g, b, 1.0);
  48622. }
  48623. return GlobalState;
  48624. }());
  48625. /***/ }),
  48626. /***/ "./graphEditor.tsx":
  48627. /*!*************************!*\
  48628. !*** ./graphEditor.tsx ***!
  48629. \*************************/
  48630. /*! exports provided: GraphEditor */
  48631. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  48632. "use strict";
  48633. __webpack_require__.r(__webpack_exports__);
  48634. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GraphEditor", function() { return GraphEditor; });
  48635. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  48636. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  48637. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  48638. /* harmony import */ var _components_nodeList_nodeListComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./components/nodeList/nodeListComponent */ "./components/nodeList/nodeListComponent.tsx");
  48639. /* harmony import */ var _components_propertyTab_propertyTabComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./components/propertyTab/propertyTabComponent */ "./components/propertyTab/propertyTabComponent.tsx");
  48640. /* harmony import */ var _portal__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./portal */ "./portal.tsx");
  48641. /* harmony import */ var _components_log_logComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./components/log/logComponent */ "./components/log/logComponent.tsx");
  48642. /* harmony import */ var _dataStorage__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./dataStorage */ "./dataStorage.ts");
  48643. /* harmony import */ var babylonjs_Materials_Node_Blocks_Input_inputBlock__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! babylonjs/Materials/Node/Blocks/Input/inputBlock */ "babylonjs/Materials/Textures/texture");
  48644. /* harmony import */ var babylonjs_Materials_Node_Blocks_Input_inputBlock__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Materials_Node_Blocks_Input_inputBlock__WEBPACK_IMPORTED_MODULE_7__);
  48645. /* harmony import */ var _sharedComponents_messageDialog__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./sharedComponents/messageDialog */ "./sharedComponents/messageDialog.tsx");
  48646. /* harmony import */ var _blockTools__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./blockTools */ "./blockTools.ts");
  48647. /* harmony import */ var _components_preview_previewManager__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./components/preview/previewManager */ "./components/preview/previewManager.ts");
  48648. /* harmony import */ var _components_preview_previewMeshControlComponent__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./components/preview/previewMeshControlComponent */ "./components/preview/previewMeshControlComponent.tsx");
  48649. /* harmony import */ var _components_preview_previewAreaComponent__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./components/preview/previewAreaComponent */ "./components/preview/previewAreaComponent.tsx");
  48650. /* harmony import */ var _serializationTools__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./serializationTools */ "./serializationTools.ts");
  48651. /* harmony import */ var _diagram_graphCanvas__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./diagram/graphCanvas */ "./diagram/graphCanvas.tsx");
  48652. /* harmony import */ var _diagram_graphFrame__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./diagram/graphFrame */ "./diagram/graphFrame.ts");
  48653. __webpack_require__(/*! ./main.scss */ "./main.scss");
  48654. var GraphEditor = /** @class */ (function (_super) {
  48655. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(GraphEditor, _super);
  48656. function GraphEditor(props) {
  48657. var _this = _super.call(this, props) || this;
  48658. _this.NodeWidth = 100;
  48659. _this._leftWidth = _dataStorage__WEBPACK_IMPORTED_MODULE_6__["DataStorage"].ReadNumber("LeftWidth", 200);
  48660. _this._rightWidth = _dataStorage__WEBPACK_IMPORTED_MODULE_6__["DataStorage"].ReadNumber("RightWidth", 300);
  48661. _this._blocks = new Array();
  48662. _this._copiedNodes = [];
  48663. _this._copiedFrame = null;
  48664. _this._mouseLocationX = 0;
  48665. _this._mouseLocationY = 0;
  48666. _this.props.globalState.onRebuildRequiredObservable.add(function () {
  48667. if (_this.props.globalState.nodeMaterial) {
  48668. _this.buildMaterial();
  48669. }
  48670. });
  48671. _this.props.globalState.onResetRequiredObservable.add(function () {
  48672. _this.build();
  48673. if (_this.props.globalState.nodeMaterial) {
  48674. _this.buildMaterial();
  48675. }
  48676. });
  48677. _this.props.globalState.onZoomToFitRequiredObservable.add(function () {
  48678. _this.zoomToFit();
  48679. });
  48680. _this.props.globalState.onReOrganizedRequiredObservable.add(function () {
  48681. _this.reOrganize();
  48682. });
  48683. _this.props.globalState.onGetNodeFromBlock = function (block) {
  48684. return _this._graphCanvas.findNodeFromBlock(block);
  48685. };
  48686. _this.props.globalState.hostDocument.addEventListener("keydown", function (evt) {
  48687. if (evt.keyCode === 46 && !_this.props.globalState.blockKeyboardEvents) { // Delete
  48688. var selectedItems = _this._graphCanvas.selectedNodes;
  48689. for (var _i = 0, selectedItems_1 = selectedItems; _i < selectedItems_1.length; _i++) {
  48690. var selectedItem = selectedItems_1[_i];
  48691. selectedItem.dispose();
  48692. var targetBlock = selectedItem.block;
  48693. _this.props.globalState.nodeMaterial.removeBlock(targetBlock);
  48694. var blockIndex = _this._blocks.indexOf(targetBlock);
  48695. if (blockIndex > -1) {
  48696. _this._blocks.splice(blockIndex, 1);
  48697. }
  48698. }
  48699. if (_this._graphCanvas.selectedLink) {
  48700. _this._graphCanvas.selectedLink.dispose();
  48701. }
  48702. if (_this._graphCanvas.selectedFrame) {
  48703. _this._graphCanvas.selectedFrame.dispose();
  48704. }
  48705. _this.props.globalState.onSelectionChangedObservable.notifyObservers(null);
  48706. _this.props.globalState.onRebuildRequiredObservable.notifyObservers();
  48707. return;
  48708. }
  48709. if (!evt.ctrlKey || _this.props.globalState.blockKeyboardEvents) {
  48710. return;
  48711. }
  48712. if (evt.key === "c") { // Copy
  48713. _this._copiedNodes = [];
  48714. _this._copiedFrame = null;
  48715. if (_this._graphCanvas.selectedFrame) {
  48716. _this._copiedFrame = _this._graphCanvas.selectedFrame;
  48717. return;
  48718. }
  48719. var selectedItems = _this._graphCanvas.selectedNodes;
  48720. if (!selectedItems.length) {
  48721. return;
  48722. }
  48723. var selectedItem_1 = selectedItems[0];
  48724. if (!selectedItem_1.block) {
  48725. return;
  48726. }
  48727. _this._copiedNodes = selectedItems.slice(0);
  48728. }
  48729. else if (evt.key === "v") { // Paste
  48730. var rootElement = _this.props.globalState.hostDocument.querySelector(".diagram-container");
  48731. var zoomLevel = _this._graphCanvas.zoom;
  48732. var currentY = (_this._mouseLocationY - rootElement.offsetTop - _this._graphCanvas.y - 20) / zoomLevel;
  48733. if (_this._copiedFrame) {
  48734. // New frame
  48735. var newFrame = new _diagram_graphFrame__WEBPACK_IMPORTED_MODULE_15__["GraphFrame"](null, _this._graphCanvas, true);
  48736. _this._graphCanvas.frames.push(newFrame);
  48737. newFrame.width = _this._copiedFrame.width;
  48738. newFrame.height = _this._copiedFrame.height;
  48739. newFrame.width / 2;
  48740. newFrame.name = _this._copiedFrame.name;
  48741. newFrame.color = _this._copiedFrame.color;
  48742. var currentX_1 = (_this._mouseLocationX - rootElement.offsetLeft - _this._graphCanvas.x) / zoomLevel;
  48743. newFrame.x = currentX_1 - newFrame.width / 2;
  48744. newFrame.y = currentY;
  48745. // Paste nodes
  48746. if (_this._copiedFrame.nodes.length) {
  48747. currentX_1 = newFrame.x + _this._copiedFrame.nodes[0].x - _this._copiedFrame.x;
  48748. currentY = newFrame.y + _this._copiedFrame.nodes[0].y - _this._copiedFrame.y;
  48749. _this.pasteSelection(_this._copiedFrame.nodes, currentX_1, currentY);
  48750. }
  48751. if (_this._copiedFrame.isCollapsed) {
  48752. newFrame.isCollapsed = true;
  48753. }
  48754. return;
  48755. }
  48756. if (!_this._copiedNodes.length) {
  48757. return;
  48758. }
  48759. var currentX = (_this._mouseLocationX - rootElement.offsetLeft - _this._graphCanvas.x - _this.NodeWidth) / zoomLevel;
  48760. _this.pasteSelection(_this._copiedNodes, currentX, currentY);
  48761. }
  48762. }, false);
  48763. return _this;
  48764. }
  48765. /**
  48766. * Creates a node and recursivly creates its parent nodes from it's input
  48767. * @param nodeMaterialBlock
  48768. */
  48769. GraphEditor.prototype.createNodeFromObject = function (block) {
  48770. if (this._blocks.indexOf(block) !== -1) {
  48771. return this._graphCanvas.nodes.filter(function (n) { return n.block === block; })[0];
  48772. }
  48773. this._blocks.push(block);
  48774. if (this.props.globalState.nodeMaterial.attachedBlocks.indexOf(block) === -1) {
  48775. this.props.globalState.nodeMaterial.attachedBlocks.push(block);
  48776. }
  48777. if (block.isFinalMerger) {
  48778. this.props.globalState.nodeMaterial.addOutputNode(block);
  48779. }
  48780. // Connections
  48781. if (block.inputs.length) {
  48782. for (var _i = 0, _a = block.inputs; _i < _a.length; _i++) {
  48783. var input = _a[_i];
  48784. if (input.isConnected) {
  48785. this.createNodeFromObject(input.sourceBlock);
  48786. }
  48787. }
  48788. }
  48789. // Graph
  48790. var node = this._graphCanvas.appendBlock(block);
  48791. // Links
  48792. if (block.inputs.length) {
  48793. for (var _b = 0, _c = block.inputs; _b < _c.length; _b++) {
  48794. var input = _c[_b];
  48795. if (input.isConnected) {
  48796. this._graphCanvas.connectPorts(input.connectedPoint, input);
  48797. }
  48798. }
  48799. }
  48800. return node;
  48801. };
  48802. GraphEditor.prototype.addValueNode = function (type) {
  48803. var nodeType = _blockTools__WEBPACK_IMPORTED_MODULE_9__["BlockTools"].GetConnectionNodeTypeFromString(type);
  48804. var newInputBlock = new babylonjs_Materials_Node_Blocks_Input_inputBlock__WEBPACK_IMPORTED_MODULE_7__["InputBlock"](type, undefined, nodeType);
  48805. return this.createNodeFromObject(newInputBlock);
  48806. };
  48807. GraphEditor.prototype.componentDidMount = function () {
  48808. if (this.props.globalState.hostDocument) {
  48809. this._graphCanvas = this.refs["graphCanvas"];
  48810. this._previewManager = new _components_preview_previewManager__WEBPACK_IMPORTED_MODULE_10__["PreviewManager"](this.props.globalState.hostDocument.getElementById("preview-canvas"), this.props.globalState);
  48811. }
  48812. if (navigator.userAgent.indexOf("Mobile") !== -1) {
  48813. (this.props.globalState.hostDocument || document).querySelector(".blocker").style.visibility = "visible";
  48814. }
  48815. this.build();
  48816. };
  48817. GraphEditor.prototype.componentWillUnmount = function () {
  48818. if (this.props.globalState.hostDocument) {
  48819. this.props.globalState.hostDocument.removeEventListener("keyup", this._onWidgetKeyUpPointer, false);
  48820. }
  48821. if (this._previewManager) {
  48822. this._previewManager.dispose();
  48823. }
  48824. };
  48825. GraphEditor.prototype.reconnectNewNodes = function (nodeIndex, newNodes, sourceNodes, done) {
  48826. if (done[nodeIndex]) {
  48827. return;
  48828. }
  48829. var currentNode = newNodes[nodeIndex];
  48830. var block = currentNode.block;
  48831. var sourceNode = sourceNodes[nodeIndex];
  48832. var _loop_1 = function () {
  48833. var sourceInput = sourceNode.block.inputs[inputIndex];
  48834. var currentInput = block.inputs[inputIndex];
  48835. if (!sourceInput.isConnected) {
  48836. return "continue";
  48837. }
  48838. var sourceBlock = sourceInput.connectedPoint.ownerBlock;
  48839. var activeNodes = sourceNodes.filter(function (s) { return s.block === sourceBlock; });
  48840. if (activeNodes.length > 0) {
  48841. var activeNode = activeNodes[0];
  48842. var indexInList = sourceNodes.indexOf(activeNode);
  48843. // First make sure to connect the other one
  48844. this_1.reconnectNewNodes(indexInList, newNodes, sourceNodes, done);
  48845. // Then reconnect
  48846. var outputIndex = sourceBlock.outputs.indexOf(sourceInput.connectedPoint);
  48847. var newOutput = newNodes[indexInList].block.outputs[outputIndex];
  48848. newOutput.connectTo(currentInput);
  48849. }
  48850. else {
  48851. // Connect with outside blocks
  48852. sourceInput._connectedPoint.connectTo(currentInput);
  48853. }
  48854. this_1._graphCanvas.connectPorts(currentInput.connectedPoint, currentInput);
  48855. };
  48856. var this_1 = this;
  48857. for (var inputIndex = 0; inputIndex < sourceNode.block.inputs.length; inputIndex++) {
  48858. _loop_1();
  48859. }
  48860. currentNode.refresh();
  48861. done[nodeIndex] = true;
  48862. };
  48863. GraphEditor.prototype.pasteSelection = function (copiedNodes, currentX, currentY) {
  48864. var originalNode = null;
  48865. var newNodes = [];
  48866. // Create new nodes
  48867. for (var _i = 0, copiedNodes_1 = copiedNodes; _i < copiedNodes_1.length; _i++) {
  48868. var node = copiedNodes_1[_i];
  48869. var block = node.block;
  48870. if (!block) {
  48871. continue;
  48872. }
  48873. var clone = block.clone(this.props.globalState.nodeMaterial.getScene());
  48874. if (!clone) {
  48875. return;
  48876. }
  48877. var newNode = this.createNodeFromObject(clone);
  48878. var x = 0;
  48879. var y = 0;
  48880. if (originalNode) {
  48881. x = currentX + node.x - originalNode.x;
  48882. y = currentY + node.y - originalNode.y;
  48883. }
  48884. else {
  48885. originalNode = node;
  48886. x = currentX;
  48887. y = currentY;
  48888. }
  48889. newNode.x = x;
  48890. newNode.y = y;
  48891. newNode.cleanAccumulation();
  48892. newNodes.push(newNode);
  48893. }
  48894. // Relink
  48895. var done = new Array(newNodes.length);
  48896. for (var index = 0; index < newNodes.length; index++) {
  48897. this.reconnectNewNodes(index, newNodes, copiedNodes, done);
  48898. }
  48899. };
  48900. GraphEditor.prototype.zoomToFit = function () {
  48901. this._graphCanvas.zoomToFit();
  48902. };
  48903. GraphEditor.prototype.buildMaterial = function () {
  48904. if (!this.props.globalState.nodeMaterial) {
  48905. return;
  48906. }
  48907. try {
  48908. this.props.globalState.nodeMaterial.build(true);
  48909. this.props.globalState.onLogRequiredObservable.notifyObservers(new _components_log_logComponent__WEBPACK_IMPORTED_MODULE_5__["LogEntry"]("Node material build successful", false));
  48910. }
  48911. catch (err) {
  48912. this.props.globalState.onLogRequiredObservable.notifyObservers(new _components_log_logComponent__WEBPACK_IMPORTED_MODULE_5__["LogEntry"](err, true));
  48913. }
  48914. _serializationTools__WEBPACK_IMPORTED_MODULE_13__["SerializationTools"].UpdateLocations(this.props.globalState.nodeMaterial, this.props.globalState);
  48915. };
  48916. GraphEditor.prototype.build = function () {
  48917. var _this = this;
  48918. var editorData = this.props.globalState.nodeMaterial.editorData;
  48919. if (editorData instanceof Array) {
  48920. editorData = {
  48921. locations: editorData
  48922. };
  48923. }
  48924. // setup the diagram model
  48925. this._blocks = [];
  48926. this._graphCanvas.reset();
  48927. // Load graph of nodes from the material
  48928. if (this.props.globalState.nodeMaterial) {
  48929. var material = this.props.globalState.nodeMaterial;
  48930. material._vertexOutputNodes.forEach(function (n) {
  48931. _this.createNodeFromObject(n);
  48932. });
  48933. material._fragmentOutputNodes.forEach(function (n) {
  48934. _this.createNodeFromObject(n);
  48935. });
  48936. material.attachedBlocks.forEach(function (n) {
  48937. _this.createNodeFromObject(n);
  48938. });
  48939. // Links
  48940. material.attachedBlocks.forEach(function (n) {
  48941. if (n.inputs.length) {
  48942. for (var _i = 0, _a = n.inputs; _i < _a.length; _i++) {
  48943. var input = _a[_i];
  48944. if (input.isConnected) {
  48945. _this._graphCanvas.connectPorts(input.connectedPoint, input);
  48946. }
  48947. }
  48948. }
  48949. });
  48950. }
  48951. this.reOrganize(editorData);
  48952. };
  48953. GraphEditor.prototype.reOrganize = function (editorData) {
  48954. if (editorData === void 0) { editorData = null; }
  48955. if (!editorData || !editorData.locations) {
  48956. this._graphCanvas.distributeGraph();
  48957. }
  48958. else {
  48959. // Locations
  48960. for (var _i = 0, _a = editorData.locations; _i < _a.length; _i++) {
  48961. var location = _a[_i];
  48962. for (var _b = 0, _c = this._graphCanvas.nodes; _b < _c.length; _b++) {
  48963. var node = _c[_b];
  48964. if (node.block && node.block.uniqueId === location.blockId) {
  48965. node.x = location.x;
  48966. node.y = location.y;
  48967. node.cleanAccumulation();
  48968. break;
  48969. }
  48970. }
  48971. }
  48972. this._graphCanvas.processEditorData(editorData);
  48973. }
  48974. };
  48975. GraphEditor.prototype.onPointerDown = function (evt) {
  48976. this._startX = evt.clientX;
  48977. this._moveInProgress = true;
  48978. evt.currentTarget.setPointerCapture(evt.pointerId);
  48979. };
  48980. GraphEditor.prototype.onPointerUp = function (evt) {
  48981. this._moveInProgress = false;
  48982. evt.currentTarget.releasePointerCapture(evt.pointerId);
  48983. };
  48984. GraphEditor.prototype.resizeColumns = function (evt, forLeft) {
  48985. if (forLeft === void 0) { forLeft = true; }
  48986. if (!this._moveInProgress) {
  48987. return;
  48988. }
  48989. var deltaX = evt.clientX - this._startX;
  48990. var rootElement = evt.currentTarget.ownerDocument.getElementById("node-editor-graph-root");
  48991. if (forLeft) {
  48992. this._leftWidth += deltaX;
  48993. this._leftWidth = Math.max(150, Math.min(400, this._leftWidth));
  48994. _dataStorage__WEBPACK_IMPORTED_MODULE_6__["DataStorage"].StoreNumber("LeftWidth", this._leftWidth);
  48995. }
  48996. else {
  48997. this._rightWidth -= deltaX;
  48998. this._rightWidth = Math.max(250, Math.min(500, this._rightWidth));
  48999. _dataStorage__WEBPACK_IMPORTED_MODULE_6__["DataStorage"].StoreNumber("RightWidth", this._rightWidth);
  49000. rootElement.ownerDocument.getElementById("preview").style.height = this._rightWidth + "px";
  49001. }
  49002. rootElement.style.gridTemplateColumns = this.buildColumnLayout();
  49003. this._startX = evt.clientX;
  49004. };
  49005. GraphEditor.prototype.buildColumnLayout = function () {
  49006. return this._leftWidth + "px 4px calc(100% - " + (this._leftWidth + 8 + this._rightWidth) + "px) 4px " + this._rightWidth + "px";
  49007. };
  49008. GraphEditor.prototype.emitNewBlock = function (event) {
  49009. var _this = this;
  49010. var data = event.dataTransfer.getData("babylonjs-material-node");
  49011. var newNode;
  49012. if (data.indexOf("Block") === -1) {
  49013. newNode = this.addValueNode(data);
  49014. }
  49015. else {
  49016. var block_1 = _blockTools__WEBPACK_IMPORTED_MODULE_9__["BlockTools"].GetBlockFromString(data, this.props.globalState.nodeMaterial.getScene(), this.props.globalState.nodeMaterial);
  49017. if (block_1.isUnique) {
  49018. var className = block_1.getClassName();
  49019. for (var _i = 0, _a = this._blocks; _i < _a.length; _i++) {
  49020. var other = _a[_i];
  49021. if (other !== block_1 && other.getClassName() === className) {
  49022. this.props.globalState.onErrorMessageDialogRequiredObservable.notifyObservers("You can only have one " + className + " per graph");
  49023. return;
  49024. }
  49025. }
  49026. }
  49027. block_1.autoConfigure(this.props.globalState.nodeMaterial);
  49028. newNode = this.createNodeFromObject(block_1);
  49029. }
  49030. ;
  49031. var x = event.clientX - event.currentTarget.offsetLeft - this._graphCanvas.x - this.NodeWidth;
  49032. var y = event.clientY - event.currentTarget.offsetTop - this._graphCanvas.y - 20;
  49033. newNode.x = x / this._graphCanvas.zoom;
  49034. newNode.y = y / this._graphCanvas.zoom;
  49035. newNode.cleanAccumulation();
  49036. this.props.globalState.onSelectionChangedObservable.notifyObservers(null);
  49037. this.props.globalState.onSelectionChangedObservable.notifyObservers(newNode);
  49038. var block = newNode.block;
  49039. x -= this.NodeWidth + 150;
  49040. block.inputs.forEach(function (connection) {
  49041. if (connection.connectedPoint) {
  49042. var existingNodes = _this._graphCanvas.nodes.filter(function (n) { return n.block === connection.connectedPoint.ownerBlock; });
  49043. var connectedNode = existingNodes[0];
  49044. if (connectedNode.x === 0 && connectedNode.y === 0) {
  49045. connectedNode.x = x / _this._graphCanvas.zoom;
  49046. connectedNode.y = y / _this._graphCanvas.zoom;
  49047. connectedNode.cleanAccumulation();
  49048. y += 80;
  49049. }
  49050. }
  49051. });
  49052. this.forceUpdate();
  49053. };
  49054. GraphEditor.prototype.render = function () {
  49055. var _this = this;
  49056. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_portal__WEBPACK_IMPORTED_MODULE_4__["Portal"], { globalState: this.props.globalState },
  49057. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "node-editor-graph-root", style: {
  49058. gridTemplateColumns: this.buildColumnLayout()
  49059. }, onMouseMove: function (evt) {
  49060. _this._mouseLocationX = evt.pageX;
  49061. _this._mouseLocationY = evt.pageY;
  49062. }, onMouseDown: function (evt) {
  49063. if (evt.target.nodeName === "INPUT") {
  49064. return;
  49065. }
  49066. _this.props.globalState.blockKeyboardEvents = false;
  49067. } },
  49068. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_components_nodeList_nodeListComponent__WEBPACK_IMPORTED_MODULE_2__["NodeListComponent"], { globalState: this.props.globalState }),
  49069. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "leftGrab", onPointerDown: function (evt) { return _this.onPointerDown(evt); }, onPointerUp: function (evt) { return _this.onPointerUp(evt); }, onPointerMove: function (evt) { return _this.resizeColumns(evt); } }),
  49070. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "diagram-container", onDrop: function (event) {
  49071. _this.emitNewBlock(event);
  49072. }, onDragOver: function (event) {
  49073. event.preventDefault();
  49074. } },
  49075. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_diagram_graphCanvas__WEBPACK_IMPORTED_MODULE_14__["GraphCanvasComponent"], { ref: "graphCanvas", globalState: this.props.globalState })),
  49076. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: "rightGrab", onPointerDown: function (evt) { return _this.onPointerDown(evt); }, onPointerUp: function (evt) { return _this.onPointerUp(evt); }, onPointerMove: function (evt) { return _this.resizeColumns(evt, false); } }),
  49077. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "right-panel" },
  49078. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_components_propertyTab_propertyTabComponent__WEBPACK_IMPORTED_MODULE_3__["PropertyTabComponent"], { globalState: this.props.globalState }),
  49079. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_components_preview_previewMeshControlComponent__WEBPACK_IMPORTED_MODULE_11__["PreviewMeshControlComponent"], { globalState: this.props.globalState }),
  49080. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_components_preview_previewAreaComponent__WEBPACK_IMPORTED_MODULE_12__["PreviewAreaComponent"], { globalState: this.props.globalState, width: this._rightWidth })),
  49081. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_components_log_logComponent__WEBPACK_IMPORTED_MODULE_5__["LogComponent"], { globalState: this.props.globalState })),
  49082. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sharedComponents_messageDialog__WEBPACK_IMPORTED_MODULE_8__["MessageDialogComponent"], { globalState: this.props.globalState }),
  49083. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "blocker" }, "Node Material Editor runs only on desktop")));
  49084. };
  49085. return GraphEditor;
  49086. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  49087. /***/ }),
  49088. /***/ "./index.ts":
  49089. /*!******************!*\
  49090. !*** ./index.ts ***!
  49091. \******************/
  49092. /*! exports provided: NodeEditor */
  49093. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  49094. "use strict";
  49095. __webpack_require__.r(__webpack_exports__);
  49096. /* harmony import */ var _nodeEditor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./nodeEditor */ "./nodeEditor.ts");
  49097. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NodeEditor", function() { return _nodeEditor__WEBPACK_IMPORTED_MODULE_0__["NodeEditor"]; });
  49098. /***/ }),
  49099. /***/ "./legacy/legacy.ts":
  49100. /*!**************************!*\
  49101. !*** ./legacy/legacy.ts ***!
  49102. \**************************/
  49103. /*! exports provided: NodeEditor */
  49104. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  49105. "use strict";
  49106. __webpack_require__.r(__webpack_exports__);
  49107. /* WEBPACK VAR INJECTION */(function(global) {/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../index */ "./index.ts");
  49108. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NodeEditor", function() { return _index__WEBPACK_IMPORTED_MODULE_0__["NodeEditor"]; });
  49109. var globalObject = (typeof global !== 'undefined') ? global : ((typeof window !== 'undefined') ? window : undefined);
  49110. if (typeof globalObject !== "undefined") {
  49111. globalObject.BABYLON = globalObject.BABYLON || {};
  49112. globalObject.BABYLON.NodeEditor = _index__WEBPACK_IMPORTED_MODULE_0__["NodeEditor"];
  49113. }
  49114. /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../node_modules/webpack/buildin/global.js */ "../../node_modules/webpack/buildin/global.js")))
  49115. /***/ }),
  49116. /***/ "./main.scss":
  49117. /*!*******************!*\
  49118. !*** ./main.scss ***!
  49119. \*******************/
  49120. /*! no static exports found */
  49121. /***/ (function(module, exports, __webpack_require__) {
  49122. var content = __webpack_require__(/*! !../../node_modules/css-loader!../../node_modules/sass-loader/lib/loader.js!./main.scss */ "../../node_modules/css-loader/index.js!../../node_modules/sass-loader/lib/loader.js!./main.scss");
  49123. if(typeof content === 'string') content = [[module.i, content, '']];
  49124. var transform;
  49125. var insertInto;
  49126. var options = {"hmr":true}
  49127. options.transform = transform
  49128. options.insertInto = undefined;
  49129. var update = __webpack_require__(/*! ../../node_modules/style-loader/lib/addStyles.js */ "../../node_modules/style-loader/lib/addStyles.js")(content, options);
  49130. if(content.locals) module.exports = content.locals;
  49131. if(false) {}
  49132. /***/ }),
  49133. /***/ "./nodeEditor.ts":
  49134. /*!***********************!*\
  49135. !*** ./nodeEditor.ts ***!
  49136. \***********************/
  49137. /*! exports provided: NodeEditor */
  49138. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  49139. "use strict";
  49140. __webpack_require__.r(__webpack_exports__);
  49141. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NodeEditor", function() { return NodeEditor; });
  49142. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  49143. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
  49144. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-dom */ "../../node_modules/react-dom/index.js");
  49145. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_1__);
  49146. /* harmony import */ var _globalState__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./globalState */ "./globalState.ts");
  49147. /* harmony import */ var _graphEditor__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./graphEditor */ "./graphEditor.tsx");
  49148. /* harmony import */ var _src_sharedComponents_popup__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../src/sharedComponents/popup */ "./sharedComponents/popup.ts");
  49149. /* harmony import */ var _serializationTools__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./serializationTools */ "./serializationTools.ts");
  49150. /**
  49151. * Class used to create a node editor
  49152. */
  49153. var NodeEditor = /** @class */ (function () {
  49154. function NodeEditor() {
  49155. }
  49156. /**
  49157. * Show the node editor
  49158. * @param options defines the options to use to configure the node editor
  49159. */
  49160. NodeEditor.Show = function (options) {
  49161. if (this._CurrentState) {
  49162. var popupWindow = _src_sharedComponents_popup__WEBPACK_IMPORTED_MODULE_4__["Popup"]["node-editor"];
  49163. if (popupWindow) {
  49164. popupWindow.close();
  49165. }
  49166. }
  49167. var hostElement = options.hostElement;
  49168. if (!hostElement) {
  49169. hostElement = _src_sharedComponents_popup__WEBPACK_IMPORTED_MODULE_4__["Popup"].CreatePopup("BABYLON.JS NODE EDITOR", "node-editor", 1000, 800);
  49170. }
  49171. var globalState = new _globalState__WEBPACK_IMPORTED_MODULE_2__["GlobalState"]();
  49172. globalState.nodeMaterial = options.nodeMaterial;
  49173. globalState.hostElement = hostElement;
  49174. globalState.hostDocument = hostElement.ownerDocument;
  49175. globalState.customSave = options.customSave;
  49176. var graphEditor = react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_graphEditor__WEBPACK_IMPORTED_MODULE_3__["GraphEditor"], {
  49177. globalState: globalState
  49178. });
  49179. react_dom__WEBPACK_IMPORTED_MODULE_1__["render"](graphEditor, hostElement);
  49180. if (options.customLoadObservable) {
  49181. options.customLoadObservable.add(function (data) {
  49182. _serializationTools__WEBPACK_IMPORTED_MODULE_5__["SerializationTools"].Deserialize(data, globalState);
  49183. });
  49184. }
  49185. this._CurrentState = globalState;
  49186. // Close the popup window when the page is refreshed or scene is disposed
  49187. var popupWindow = _src_sharedComponents_popup__WEBPACK_IMPORTED_MODULE_4__["Popup"]["node-editor"];
  49188. if (globalState.nodeMaterial && popupWindow) {
  49189. globalState.nodeMaterial.getScene().onDisposeObservable.addOnce(function () {
  49190. if (popupWindow) {
  49191. popupWindow.close();
  49192. }
  49193. });
  49194. window.onbeforeunload = function () {
  49195. var popupWindow = _src_sharedComponents_popup__WEBPACK_IMPORTED_MODULE_4__["Popup"]["node-editor"];
  49196. if (popupWindow) {
  49197. popupWindow.close();
  49198. }
  49199. };
  49200. }
  49201. };
  49202. return NodeEditor;
  49203. }());
  49204. /***/ }),
  49205. /***/ "./portal.tsx":
  49206. /*!********************!*\
  49207. !*** ./portal.tsx ***!
  49208. \********************/
  49209. /*! exports provided: Portal */
  49210. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  49211. "use strict";
  49212. __webpack_require__.r(__webpack_exports__);
  49213. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Portal", function() { return Portal; });
  49214. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  49215. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  49216. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  49217. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-dom */ "../../node_modules/react-dom/index.js");
  49218. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_2__);
  49219. var Portal = /** @class */ (function (_super) {
  49220. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(Portal, _super);
  49221. function Portal() {
  49222. return _super !== null && _super.apply(this, arguments) || this;
  49223. }
  49224. Portal.prototype.render = function () {
  49225. return react_dom__WEBPACK_IMPORTED_MODULE_2__["createPortal"](this.props.children, this.props.globalState.hostElement);
  49226. };
  49227. return Portal;
  49228. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  49229. /***/ }),
  49230. /***/ "./serializationTools.ts":
  49231. /*!*******************************!*\
  49232. !*** ./serializationTools.ts ***!
  49233. \*******************************/
  49234. /*! exports provided: SerializationTools */
  49235. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  49236. "use strict";
  49237. __webpack_require__.r(__webpack_exports__);
  49238. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SerializationTools", function() { return SerializationTools; });
  49239. /* harmony import */ var babylonjs_Materials_Textures_texture__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babylonjs/Materials/Textures/texture */ "babylonjs/Materials/Textures/texture");
  49240. /* harmony import */ var babylonjs_Materials_Textures_texture__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Materials_Textures_texture__WEBPACK_IMPORTED_MODULE_0__);
  49241. /* harmony import */ var _dataStorage__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./dataStorage */ "./dataStorage.ts");
  49242. var SerializationTools = /** @class */ (function () {
  49243. function SerializationTools() {
  49244. }
  49245. SerializationTools.UpdateLocations = function (material, globalState) {
  49246. material.editorData = {
  49247. locations: []
  49248. };
  49249. // Store node locations
  49250. for (var _i = 0, _a = material.attachedBlocks; _i < _a.length; _i++) {
  49251. var block = _a[_i];
  49252. var node = globalState.onGetNodeFromBlock(block);
  49253. material.editorData.locations.push({
  49254. blockId: block.uniqueId,
  49255. x: node ? node.x : 0,
  49256. y: node ? node.y : 0
  49257. });
  49258. }
  49259. globalState.storeEditorData(material.editorData);
  49260. };
  49261. SerializationTools.Serialize = function (material, globalState) {
  49262. var bufferSerializationState = babylonjs_Materials_Textures_texture__WEBPACK_IMPORTED_MODULE_0__["Texture"].SerializeBuffers;
  49263. babylonjs_Materials_Textures_texture__WEBPACK_IMPORTED_MODULE_0__["Texture"].SerializeBuffers = _dataStorage__WEBPACK_IMPORTED_MODULE_1__["DataStorage"].ReadBoolean("EmbedTextures", true);
  49264. this.UpdateLocations(material, globalState);
  49265. var serializationObject = material.serialize();
  49266. babylonjs_Materials_Textures_texture__WEBPACK_IMPORTED_MODULE_0__["Texture"].SerializeBuffers = bufferSerializationState;
  49267. return JSON.stringify(serializationObject, undefined, 2);
  49268. };
  49269. SerializationTools.Deserialize = function (serializationObject, globalState) {
  49270. globalState.onIsLoadingChanged.notifyObservers(true);
  49271. globalState.nodeMaterial.loadFromSerialization(serializationObject, "");
  49272. globalState.onResetRequiredObservable.notifyObservers();
  49273. };
  49274. return SerializationTools;
  49275. }());
  49276. /***/ }),
  49277. /***/ "./sharedComponents/buttonLineComponent.tsx":
  49278. /*!**************************************************!*\
  49279. !*** ./sharedComponents/buttonLineComponent.tsx ***!
  49280. \**************************************************/
  49281. /*! exports provided: ButtonLineComponent */
  49282. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  49283. "use strict";
  49284. __webpack_require__.r(__webpack_exports__);
  49285. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ButtonLineComponent", function() { return ButtonLineComponent; });
  49286. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  49287. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  49288. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  49289. var ButtonLineComponent = /** @class */ (function (_super) {
  49290. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ButtonLineComponent, _super);
  49291. function ButtonLineComponent(props) {
  49292. return _super.call(this, props) || this;
  49293. }
  49294. ButtonLineComponent.prototype.render = function () {
  49295. var _this = this;
  49296. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "buttonLine" },
  49297. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { onClick: function () { return _this.props.onClick(); } }, this.props.label)));
  49298. };
  49299. return ButtonLineComponent;
  49300. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  49301. /***/ }),
  49302. /***/ "./sharedComponents/checkBoxLineComponent.tsx":
  49303. /*!****************************************************!*\
  49304. !*** ./sharedComponents/checkBoxLineComponent.tsx ***!
  49305. \****************************************************/
  49306. /*! exports provided: CheckBoxLineComponent */
  49307. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  49308. "use strict";
  49309. __webpack_require__.r(__webpack_exports__);
  49310. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CheckBoxLineComponent", function() { return CheckBoxLineComponent; });
  49311. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  49312. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  49313. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  49314. var CheckBoxLineComponent = /** @class */ (function (_super) {
  49315. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CheckBoxLineComponent, _super);
  49316. function CheckBoxLineComponent(props) {
  49317. var _this = _super.call(this, props) || this;
  49318. _this._localChange = false;
  49319. _this._uniqueId = CheckBoxLineComponent._UniqueIdSeed++;
  49320. if (_this.props.isSelected) {
  49321. _this.state = { isSelected: _this.props.isSelected() };
  49322. }
  49323. else {
  49324. _this.state = { isSelected: _this.props.target[_this.props.propertyName] === true };
  49325. }
  49326. return _this;
  49327. }
  49328. CheckBoxLineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  49329. var currentState;
  49330. if (nextProps.isSelected) {
  49331. currentState = nextProps.isSelected();
  49332. }
  49333. else {
  49334. currentState = nextProps.target[nextProps.propertyName] === true;
  49335. }
  49336. if (currentState !== nextState.isSelected || this._localChange) {
  49337. nextState.isSelected = currentState;
  49338. this._localChange = false;
  49339. return true;
  49340. }
  49341. return nextProps.label !== this.props.label;
  49342. };
  49343. CheckBoxLineComponent.prototype.onChange = function () {
  49344. this._localChange = true;
  49345. if (this.props.onSelect) {
  49346. this.props.onSelect(!this.state.isSelected);
  49347. }
  49348. else {
  49349. if (this.props.onPropertyChangedObservable) {
  49350. this.props.onPropertyChangedObservable.notifyObservers({
  49351. object: this.props.target,
  49352. property: this.props.propertyName,
  49353. value: !this.state.isSelected,
  49354. initialValue: this.state.isSelected
  49355. });
  49356. }
  49357. this.props.target[this.props.propertyName] = !this.state.isSelected;
  49358. }
  49359. if (this.props.onValueChanged) {
  49360. this.props.onValueChanged();
  49361. }
  49362. this.setState({ isSelected: !this.state.isSelected });
  49363. };
  49364. CheckBoxLineComponent.prototype.render = function () {
  49365. var _this = this;
  49366. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "checkBoxLine" },
  49367. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  49368. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "checkBox" },
  49369. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { type: "checkbox", id: "checkbox" + this._uniqueId, className: "cbx hidden", checked: this.state.isSelected, onChange: function () { return _this.onChange(); } }),
  49370. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("label", { htmlFor: "checkbox" + this._uniqueId, className: "lbl" }))));
  49371. };
  49372. CheckBoxLineComponent._UniqueIdSeed = 0;
  49373. return CheckBoxLineComponent;
  49374. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  49375. /***/ }),
  49376. /***/ "./sharedComponents/color3LineComponent.tsx":
  49377. /*!**************************************************!*\
  49378. !*** ./sharedComponents/color3LineComponent.tsx ***!
  49379. \**************************************************/
  49380. /*! exports provided: Color3LineComponent */
  49381. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  49382. "use strict";
  49383. __webpack_require__.r(__webpack_exports__);
  49384. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Color3LineComponent", function() { return Color3LineComponent; });
  49385. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  49386. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  49387. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  49388. /* harmony import */ var babylonjs_Maths_math__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Maths/math */ "babylonjs/Materials/Textures/texture");
  49389. /* harmony import */ var babylonjs_Maths_math__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Maths_math__WEBPACK_IMPORTED_MODULE_2__);
  49390. /* harmony import */ var _numericInputComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./numericInputComponent */ "./sharedComponents/numericInputComponent.tsx");
  49391. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  49392. /* harmony import */ var _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @fortawesome/free-solid-svg-icons */ "../../node_modules/@fortawesome/free-solid-svg-icons/index.es.js");
  49393. var Color3LineComponent = /** @class */ (function (_super) {
  49394. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(Color3LineComponent, _super);
  49395. function Color3LineComponent(props) {
  49396. var _this = _super.call(this, props) || this;
  49397. _this._localChange = false;
  49398. _this.state = { isExpanded: false, color: _this.props.target[_this.props.propertyName].clone() };
  49399. return _this;
  49400. }
  49401. Color3LineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  49402. var currentState = nextProps.target[nextProps.propertyName];
  49403. if (!currentState.equals(nextState.color) || this._localChange) {
  49404. nextState.color = currentState.clone();
  49405. this._localChange = false;
  49406. return true;
  49407. }
  49408. return false;
  49409. };
  49410. Color3LineComponent.prototype.onChange = function (newValue) {
  49411. this._localChange = true;
  49412. var newColor = babylonjs_Maths_math__WEBPACK_IMPORTED_MODULE_2__["Color3"].FromHexString(newValue);
  49413. if (this.props.onPropertyChangedObservable) {
  49414. this.props.onPropertyChangedObservable.notifyObservers({
  49415. object: this.props.target,
  49416. property: this.props.propertyName,
  49417. value: newColor,
  49418. initialValue: this.state.color
  49419. });
  49420. }
  49421. if (this.props.target[this.props.propertyName].getClassName() === "Color4") {
  49422. this.props.target[this.props.propertyName] = new babylonjs_Maths_math__WEBPACK_IMPORTED_MODULE_2__["Color4"](newColor.r, newColor.g, newColor.b, 1.0);
  49423. }
  49424. else {
  49425. this.props.target[this.props.propertyName] = newColor;
  49426. }
  49427. this.setState({ color: newColor });
  49428. if (this.props.onChange) {
  49429. this.props.onChange();
  49430. }
  49431. };
  49432. Color3LineComponent.prototype.switchExpandState = function () {
  49433. this._localChange = true;
  49434. this.setState({ isExpanded: !this.state.isExpanded });
  49435. };
  49436. Color3LineComponent.prototype.raiseOnPropertyChanged = function (previousValue) {
  49437. if (!this.props.onPropertyChangedObservable) {
  49438. return;
  49439. }
  49440. this.props.onPropertyChangedObservable.notifyObservers({
  49441. object: this.props.target,
  49442. property: this.props.propertyName,
  49443. value: this.state.color,
  49444. initialValue: previousValue
  49445. });
  49446. };
  49447. Color3LineComponent.prototype.updateStateR = function (value) {
  49448. this._localChange = true;
  49449. var store = this.state.color.clone();
  49450. this.props.target[this.props.propertyName].x = value;
  49451. this.state.color.r = value;
  49452. this.props.target[this.props.propertyName] = this.state.color;
  49453. this.setState({ color: this.state.color });
  49454. this.raiseOnPropertyChanged(store);
  49455. };
  49456. Color3LineComponent.prototype.updateStateG = function (value) {
  49457. this._localChange = true;
  49458. var store = this.state.color.clone();
  49459. this.props.target[this.props.propertyName].g = value;
  49460. this.state.color.g = value;
  49461. this.props.target[this.props.propertyName] = this.state.color;
  49462. this.setState({ color: this.state.color });
  49463. this.raiseOnPropertyChanged(store);
  49464. };
  49465. Color3LineComponent.prototype.updateStateB = function (value) {
  49466. this._localChange = true;
  49467. var store = this.state.color.clone();
  49468. this.props.target[this.props.propertyName].b = value;
  49469. this.state.color.b = value;
  49470. this.props.target[this.props.propertyName] = this.state.color;
  49471. this.setState({ color: this.state.color });
  49472. this.raiseOnPropertyChanged(store);
  49473. };
  49474. Color3LineComponent.prototype.copyToClipboard = function () {
  49475. var element = document.createElement('div');
  49476. element.textContent = this.state.color.toHexString();
  49477. document.body.appendChild(element);
  49478. if (window.getSelection) {
  49479. var range = document.createRange();
  49480. range.selectNode(element);
  49481. window.getSelection().removeAllRanges();
  49482. window.getSelection().addRange(range);
  49483. }
  49484. document.execCommand('copy');
  49485. element.remove();
  49486. };
  49487. Color3LineComponent.prototype.render = function () {
  49488. var _this = this;
  49489. var chevron = this.state.isExpanded ? react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_4__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_5__["faMinus"] }) : react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_4__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_5__["faPlus"] });
  49490. var colorAsColor3 = this.state.color.getClassName() === "Color3" ? this.state.color : new babylonjs_Maths_math__WEBPACK_IMPORTED_MODULE_2__["Color3"](this.state.color.r, this.state.color.g, this.state.color.b);
  49491. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "color3Line" },
  49492. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "firstLine" },
  49493. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  49494. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "color3" },
  49495. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { type: "color", value: colorAsColor3.toHexString(), onChange: function (evt) { return _this.onChange(evt.target.value); } })),
  49496. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "copy hoverIcon", onClick: function () { return _this.copyToClipboard(); }, title: "Copy to clipboard" },
  49497. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_4__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_5__["faCopy"] })),
  49498. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "expand hoverIcon", onClick: function () { return _this.switchExpandState(); }, title: "Expand" }, chevron)),
  49499. this.state.isExpanded &&
  49500. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "secondLine" },
  49501. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_numericInputComponent__WEBPACK_IMPORTED_MODULE_3__["NumericInputComponent"], { label: "r", value: this.state.color.r, onChange: function (value) { return _this.updateStateR(value); } }),
  49502. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_numericInputComponent__WEBPACK_IMPORTED_MODULE_3__["NumericInputComponent"], { label: "g", value: this.state.color.g, onChange: function (value) { return _this.updateStateG(value); } }),
  49503. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_numericInputComponent__WEBPACK_IMPORTED_MODULE_3__["NumericInputComponent"], { label: "b", value: this.state.color.b, onChange: function (value) { return _this.updateStateB(value); } }))));
  49504. };
  49505. return Color3LineComponent;
  49506. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  49507. /***/ }),
  49508. /***/ "./sharedComponents/draggableLineComponent.tsx":
  49509. /*!*****************************************************!*\
  49510. !*** ./sharedComponents/draggableLineComponent.tsx ***!
  49511. \*****************************************************/
  49512. /*! exports provided: DraggableLineComponent */
  49513. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  49514. "use strict";
  49515. __webpack_require__.r(__webpack_exports__);
  49516. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DraggableLineComponent", function() { return DraggableLineComponent; });
  49517. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  49518. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  49519. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  49520. var DraggableLineComponent = /** @class */ (function (_super) {
  49521. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DraggableLineComponent, _super);
  49522. function DraggableLineComponent(props) {
  49523. return _super.call(this, props) || this;
  49524. }
  49525. DraggableLineComponent.prototype.render = function () {
  49526. var _this = this;
  49527. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "draggableLine", title: this.props.tooltip, draggable: true, onDragStart: function (event) {
  49528. event.dataTransfer.setData("babylonjs-material-node", _this.props.data);
  49529. } }, this.props.data.replace("Block", "")));
  49530. };
  49531. return DraggableLineComponent;
  49532. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  49533. /***/ }),
  49534. /***/ "./sharedComponents/fileButtonLineComponent.tsx":
  49535. /*!******************************************************!*\
  49536. !*** ./sharedComponents/fileButtonLineComponent.tsx ***!
  49537. \******************************************************/
  49538. /*! exports provided: FileButtonLineComponent */
  49539. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  49540. "use strict";
  49541. __webpack_require__.r(__webpack_exports__);
  49542. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FileButtonLineComponent", function() { return FileButtonLineComponent; });
  49543. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  49544. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  49545. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  49546. var FileButtonLineComponent = /** @class */ (function (_super) {
  49547. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(FileButtonLineComponent, _super);
  49548. function FileButtonLineComponent(props) {
  49549. return _super.call(this, props) || this;
  49550. }
  49551. FileButtonLineComponent.prototype.onChange = function (evt) {
  49552. var files = evt.target.files;
  49553. if (files && files.length) {
  49554. this.props.onClick(files[0]);
  49555. }
  49556. evt.target.value = "";
  49557. };
  49558. FileButtonLineComponent.prototype.render = function () {
  49559. var _this = this;
  49560. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "buttonLine" },
  49561. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("label", { htmlFor: "file-upload", className: "file-upload" }, this.props.label),
  49562. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { ref: "upload", id: "file-upload", type: "file", accept: this.props.accept, onChange: function (evt) { return _this.onChange(evt); } })));
  49563. };
  49564. return FileButtonLineComponent;
  49565. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  49566. /***/ }),
  49567. /***/ "./sharedComponents/floatLineComponent.tsx":
  49568. /*!*************************************************!*\
  49569. !*** ./sharedComponents/floatLineComponent.tsx ***!
  49570. \*************************************************/
  49571. /*! exports provided: FloatLineComponent */
  49572. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  49573. "use strict";
  49574. __webpack_require__.r(__webpack_exports__);
  49575. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FloatLineComponent", function() { return FloatLineComponent; });
  49576. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  49577. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  49578. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  49579. var FloatLineComponent = /** @class */ (function (_super) {
  49580. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(FloatLineComponent, _super);
  49581. function FloatLineComponent(props) {
  49582. var _this = _super.call(this, props) || this;
  49583. _this._localChange = false;
  49584. var currentValue = _this.props.target[_this.props.propertyName];
  49585. _this.state = { value: currentValue ? (_this.props.isInteger ? currentValue.toFixed(0) : currentValue.toFixed(_this.props.digits || 2)) : "0" };
  49586. _this._store = currentValue;
  49587. return _this;
  49588. }
  49589. FloatLineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  49590. if (this._localChange) {
  49591. this._localChange = false;
  49592. return true;
  49593. }
  49594. var newValue = nextProps.target[nextProps.propertyName];
  49595. var newValueString = newValue ? this.props.isInteger ? newValue.toFixed(0) : newValue.toFixed(this.props.digits || 2) : "0";
  49596. if (newValueString !== nextState.value) {
  49597. nextState.value = newValueString;
  49598. return true;
  49599. }
  49600. return false;
  49601. };
  49602. FloatLineComponent.prototype.raiseOnPropertyChanged = function (newValue, previousValue) {
  49603. if (this.props.onChange) {
  49604. this.props.onChange(newValue);
  49605. }
  49606. if (!this.props.onPropertyChangedObservable) {
  49607. return;
  49608. }
  49609. this.props.onPropertyChangedObservable.notifyObservers({
  49610. object: this.props.target,
  49611. property: this.props.propertyName,
  49612. value: newValue,
  49613. initialValue: previousValue
  49614. });
  49615. };
  49616. FloatLineComponent.prototype.updateValue = function (valueString) {
  49617. if (/[^0-9\.\-]/g.test(valueString)) {
  49618. return;
  49619. }
  49620. valueString = valueString.replace(/(.+\...).+/, "$1");
  49621. var valueAsNumber;
  49622. if (this.props.isInteger) {
  49623. valueAsNumber = parseInt(valueString);
  49624. }
  49625. else {
  49626. valueAsNumber = parseFloat(valueString);
  49627. }
  49628. this._localChange = true;
  49629. this.setState({ value: valueString });
  49630. if (isNaN(valueAsNumber)) {
  49631. return;
  49632. }
  49633. this.props.target[this.props.propertyName] = valueAsNumber;
  49634. this.raiseOnPropertyChanged(valueAsNumber, this._store);
  49635. this._store = valueAsNumber;
  49636. };
  49637. FloatLineComponent.prototype.render = function () {
  49638. var _this = this;
  49639. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", null, react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: this.props.additionalClass ? this.props.additionalClass + " floatLine" : "floatLine" },
  49640. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  49641. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "value" },
  49642. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { type: "number", step: this.props.step || "0.01", className: "numeric-input", value: this.state.value, onChange: function (evt) { return _this.updateValue(evt.target.value); } })))));
  49643. };
  49644. return FloatLineComponent;
  49645. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  49646. /***/ }),
  49647. /***/ "./sharedComponents/lineContainerComponent.tsx":
  49648. /*!*****************************************************!*\
  49649. !*** ./sharedComponents/lineContainerComponent.tsx ***!
  49650. \*****************************************************/
  49651. /*! exports provided: LineContainerComponent */
  49652. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  49653. "use strict";
  49654. __webpack_require__.r(__webpack_exports__);
  49655. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LineContainerComponent", function() { return LineContainerComponent; });
  49656. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  49657. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  49658. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  49659. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  49660. /* harmony import */ var _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @fortawesome/free-solid-svg-icons */ "../../node_modules/@fortawesome/free-solid-svg-icons/index.es.js");
  49661. /* harmony import */ var _dataStorage__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../dataStorage */ "./dataStorage.ts");
  49662. var LineContainerComponent = /** @class */ (function (_super) {
  49663. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(LineContainerComponent, _super);
  49664. function LineContainerComponent(props) {
  49665. var _this = _super.call(this, props) || this;
  49666. var initialState = _dataStorage__WEBPACK_IMPORTED_MODULE_4__["DataStorage"].ReadBoolean(_this.props.title, !_this.props.closed);
  49667. _this.state = { isExpanded: initialState };
  49668. return _this;
  49669. }
  49670. LineContainerComponent.prototype.switchExpandedState = function () {
  49671. var newState = !this.state.isExpanded;
  49672. _dataStorage__WEBPACK_IMPORTED_MODULE_4__["DataStorage"].StoreBoolean(this.props.title, newState);
  49673. this.setState({ isExpanded: newState });
  49674. };
  49675. LineContainerComponent.prototype.renderHeader = function () {
  49676. var _this = this;
  49677. var className = this.state.isExpanded ? "collapse" : "collapse closed";
  49678. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "header", onClick: function () { return _this.switchExpandedState(); } },
  49679. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "title" }, this.props.title),
  49680. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: className },
  49681. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_2__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_3__["faChevronDown"] }))));
  49682. };
  49683. LineContainerComponent.prototype.render = function () {
  49684. if (!this.state.isExpanded) {
  49685. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "paneContainer" },
  49686. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "paneContainer-content" }, this.renderHeader())));
  49687. }
  49688. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "paneContainer" },
  49689. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "paneContainer-content" },
  49690. this.renderHeader(),
  49691. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "paneList" }, this.props.children))));
  49692. };
  49693. return LineContainerComponent;
  49694. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  49695. /***/ }),
  49696. /***/ "./sharedComponents/matrixLineComponent.tsx":
  49697. /*!**************************************************!*\
  49698. !*** ./sharedComponents/matrixLineComponent.tsx ***!
  49699. \**************************************************/
  49700. /*! exports provided: MatrixLineComponent */
  49701. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  49702. "use strict";
  49703. __webpack_require__.r(__webpack_exports__);
  49704. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MatrixLineComponent", function() { return MatrixLineComponent; });
  49705. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  49706. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  49707. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  49708. /* harmony import */ var babylonjs_Maths_math__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Maths/math */ "babylonjs/Materials/Textures/texture");
  49709. /* harmony import */ var babylonjs_Maths_math__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Maths_math__WEBPACK_IMPORTED_MODULE_2__);
  49710. /* harmony import */ var _vector4LineComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./vector4LineComponent */ "./sharedComponents/vector4LineComponent.tsx");
  49711. /* harmony import */ var _optionsLineComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./optionsLineComponent */ "./sharedComponents/optionsLineComponent.tsx");
  49712. /* harmony import */ var _sliderLineComponent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./sliderLineComponent */ "./sharedComponents/sliderLineComponent.tsx");
  49713. var MatrixLineComponent = /** @class */ (function (_super) {
  49714. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(MatrixLineComponent, _super);
  49715. function MatrixLineComponent(props) {
  49716. var _this = _super.call(this, props) || this;
  49717. _this._localChange = false;
  49718. var matrix = _this.props.target[_this.props.propertyName].clone();
  49719. var angle = 0;
  49720. if (_this.props.mode) {
  49721. var quat = new babylonjs_Maths_math__WEBPACK_IMPORTED_MODULE_2__["Quaternion"]();
  49722. matrix.decompose(undefined, quat);
  49723. var euler = quat.toEulerAngles();
  49724. switch (_this.props.mode) {
  49725. case 1:
  49726. angle = euler.x;
  49727. break;
  49728. case 2:
  49729. angle = euler.y;
  49730. break;
  49731. case 3:
  49732. angle = euler.z;
  49733. break;
  49734. }
  49735. }
  49736. _this.state = { value: matrix, mode: _this.props.mode || 0, angle: angle };
  49737. return _this;
  49738. }
  49739. MatrixLineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  49740. var nextPropsValue = nextProps.target[nextProps.propertyName];
  49741. if (!nextPropsValue.equals(nextState.value) || this._localChange) {
  49742. nextState.value = nextPropsValue.clone();
  49743. this._localChange = false;
  49744. return true;
  49745. }
  49746. return nextState.mode !== this.state.mode || nextState.angle !== this.state.angle;
  49747. };
  49748. MatrixLineComponent.prototype.raiseOnPropertyChanged = function (previousValue) {
  49749. if (this.props.onChange) {
  49750. this.props.onChange(this.state.value);
  49751. }
  49752. if (!this.props.onPropertyChangedObservable) {
  49753. return;
  49754. }
  49755. this.props.onPropertyChangedObservable.notifyObservers({
  49756. object: this.props.target,
  49757. property: this.props.propertyName,
  49758. value: this.state.value,
  49759. initialValue: previousValue
  49760. });
  49761. };
  49762. MatrixLineComponent.prototype.updateMatrix = function () {
  49763. var store = this.props.target[this.props.propertyName].clone();
  49764. this.props.target[this.props.propertyName] = this.state.value;
  49765. this.setState({ value: store });
  49766. this.raiseOnPropertyChanged(store);
  49767. };
  49768. MatrixLineComponent.prototype.updateRow = function (value, row) {
  49769. this._localChange = true;
  49770. this.state.value.setRow(row, value);
  49771. this.updateMatrix();
  49772. };
  49773. MatrixLineComponent.prototype.updateBasedOnMode = function (value) {
  49774. switch (this.state.mode) {
  49775. case 1: {
  49776. babylonjs_Maths_math__WEBPACK_IMPORTED_MODULE_2__["Matrix"].RotationXToRef(this.state.angle, this.state.value);
  49777. break;
  49778. }
  49779. case 2: {
  49780. babylonjs_Maths_math__WEBPACK_IMPORTED_MODULE_2__["Matrix"].RotationYToRef(this.state.angle, this.state.value);
  49781. break;
  49782. }
  49783. case 3: {
  49784. babylonjs_Maths_math__WEBPACK_IMPORTED_MODULE_2__["Matrix"].RotationZToRef(this.state.angle, this.state.value);
  49785. break;
  49786. }
  49787. }
  49788. this.updateMatrix();
  49789. this.setState({ angle: value });
  49790. };
  49791. MatrixLineComponent.prototype.render = function () {
  49792. var _this = this;
  49793. var modeOptions = [
  49794. { label: "User-defined", value: 0 },
  49795. { label: "Rotation over X axis", value: 1 },
  49796. { label: "Rotation over Y axis", value: 2 },
  49797. { label: "Rotation over Z axis", value: 3 },
  49798. ];
  49799. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "vector3Line" },
  49800. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "firstLine" },
  49801. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label)),
  49802. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "secondLine" },
  49803. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_optionsLineComponent__WEBPACK_IMPORTED_MODULE_4__["OptionsLineComponent"], { label: "Mode", className: "no-right-margin", options: modeOptions, target: this, noDirectUpdate: true, getSelection: function () {
  49804. return _this.state.mode;
  49805. }, onSelect: function (value) {
  49806. _this.props.target[_this.props.propertyName] = babylonjs_Maths_math__WEBPACK_IMPORTED_MODULE_2__["Matrix"].Identity();
  49807. babylonjs_Maths_math__WEBPACK_IMPORTED_MODULE_2__["Matrix"].IdentityToRef(_this.state.value);
  49808. _this.setState({ mode: value, angle: 0 });
  49809. _this.updateMatrix();
  49810. if (_this.props.onModeChange) {
  49811. _this.props.onModeChange(value);
  49812. }
  49813. } })),
  49814. this.state.mode === 0 &&
  49815. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "secondLine" },
  49816. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_vector4LineComponent__WEBPACK_IMPORTED_MODULE_3__["Vector4LineComponent"], { label: "Row #0", value: this.state.value.getRow(0), onChange: function (value) { return _this.updateRow(value, 0); } }),
  49817. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_vector4LineComponent__WEBPACK_IMPORTED_MODULE_3__["Vector4LineComponent"], { label: "Row #1", value: this.state.value.getRow(1), onChange: function (value) { return _this.updateRow(value, 1); } }),
  49818. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_vector4LineComponent__WEBPACK_IMPORTED_MODULE_3__["Vector4LineComponent"], { label: "Row #2", value: this.state.value.getRow(2), onChange: function (value) { return _this.updateRow(value, 2); } }),
  49819. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_vector4LineComponent__WEBPACK_IMPORTED_MODULE_3__["Vector4LineComponent"], { label: "Row #3", value: this.state.value.getRow(3), onChange: function (value) { return _this.updateRow(value, 3); } })),
  49820. this.state.mode !== 0 &&
  49821. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "secondLine" },
  49822. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_sliderLineComponent__WEBPACK_IMPORTED_MODULE_5__["SliderLineComponent"], { label: "Angle", minimum: 0, maximum: 2 * Math.PI, useEuler: true, step: 0.1, directValue: this.state.angle, onChange: function (value) { return _this.updateBasedOnMode(value); } }))));
  49823. };
  49824. return MatrixLineComponent;
  49825. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  49826. /***/ }),
  49827. /***/ "./sharedComponents/messageDialog.tsx":
  49828. /*!********************************************!*\
  49829. !*** ./sharedComponents/messageDialog.tsx ***!
  49830. \********************************************/
  49831. /*! exports provided: MessageDialogComponent */
  49832. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  49833. "use strict";
  49834. __webpack_require__.r(__webpack_exports__);
  49835. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MessageDialogComponent", function() { return MessageDialogComponent; });
  49836. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  49837. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  49838. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  49839. var MessageDialogComponent = /** @class */ (function (_super) {
  49840. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(MessageDialogComponent, _super);
  49841. function MessageDialogComponent(props) {
  49842. var _this = _super.call(this, props) || this;
  49843. _this.state = { message: "", isError: false };
  49844. _this.props.globalState.onErrorMessageDialogRequiredObservable.add(function (message) {
  49845. _this.setState({ message: message, isError: true });
  49846. });
  49847. return _this;
  49848. }
  49849. MessageDialogComponent.prototype.render = function () {
  49850. var _this = this;
  49851. if (!this.state.message) {
  49852. return null;
  49853. }
  49854. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "dialog-container" },
  49855. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "dialog" },
  49856. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "dialog-message" }, this.state.message),
  49857. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "dialog-buttons" },
  49858. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "dialog-button-ok" + (this.state.isError ? " error" : ""), onClick: function () { return _this.setState({ message: "" }); } }, "OK")))));
  49859. };
  49860. return MessageDialogComponent;
  49861. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  49862. /***/ }),
  49863. /***/ "./sharedComponents/numericInputComponent.tsx":
  49864. /*!****************************************************!*\
  49865. !*** ./sharedComponents/numericInputComponent.tsx ***!
  49866. \****************************************************/
  49867. /*! exports provided: NumericInputComponent */
  49868. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  49869. "use strict";
  49870. __webpack_require__.r(__webpack_exports__);
  49871. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NumericInputComponent", function() { return NumericInputComponent; });
  49872. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  49873. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  49874. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  49875. var NumericInputComponent = /** @class */ (function (_super) {
  49876. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(NumericInputComponent, _super);
  49877. function NumericInputComponent(props) {
  49878. var _this = _super.call(this, props) || this;
  49879. _this._localChange = false;
  49880. _this.state = { value: _this.props.value.toFixed(3) };
  49881. return _this;
  49882. }
  49883. NumericInputComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  49884. if (this._localChange) {
  49885. this._localChange = false;
  49886. return true;
  49887. }
  49888. if (nextProps.value.toString() !== nextState.value) {
  49889. nextState.value = nextProps.value.toFixed(3);
  49890. return true;
  49891. }
  49892. return false;
  49893. };
  49894. NumericInputComponent.prototype.updateValue = function (evt) {
  49895. var value = evt.target.value;
  49896. if (/[^0-9\.\-]/g.test(value)) {
  49897. return;
  49898. }
  49899. var valueAsNumber = parseFloat(value);
  49900. this._localChange = true;
  49901. this.setState({ value: value });
  49902. if (isNaN(valueAsNumber)) {
  49903. return;
  49904. }
  49905. this.props.onChange(valueAsNumber);
  49906. };
  49907. NumericInputComponent.prototype.render = function () {
  49908. var _this = this;
  49909. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "numeric" },
  49910. this.props.label &&
  49911. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "numeric-label" }, this.props.label + ": "),
  49912. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { type: "number", step: this.props.step, className: "numeric-input", value: this.state.value, onChange: function (evt) { return _this.updateValue(evt); } })));
  49913. };
  49914. NumericInputComponent.defaultProps = {
  49915. step: 1,
  49916. };
  49917. return NumericInputComponent;
  49918. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  49919. /***/ }),
  49920. /***/ "./sharedComponents/optionsLineComponent.tsx":
  49921. /*!***************************************************!*\
  49922. !*** ./sharedComponents/optionsLineComponent.tsx ***!
  49923. \***************************************************/
  49924. /*! exports provided: OptionsLineComponent */
  49925. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  49926. "use strict";
  49927. __webpack_require__.r(__webpack_exports__);
  49928. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OptionsLineComponent", function() { return OptionsLineComponent; });
  49929. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  49930. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  49931. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  49932. var ListLineOption = /** @class */ (function () {
  49933. function ListLineOption() {
  49934. }
  49935. return ListLineOption;
  49936. }());
  49937. var OptionsLineComponent = /** @class */ (function (_super) {
  49938. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(OptionsLineComponent, _super);
  49939. function OptionsLineComponent(props) {
  49940. var _this = _super.call(this, props) || this;
  49941. _this._localChange = false;
  49942. _this.state = { value: _this._getValue(props) };
  49943. return _this;
  49944. }
  49945. OptionsLineComponent.prototype._getValue = function (props) {
  49946. if (props.getSelection) {
  49947. return props.getSelection(props.target);
  49948. }
  49949. return (props.target && props.propertyName) ? props.target[props.propertyName] : props.options[props.defaultIfNull || 0];
  49950. };
  49951. OptionsLineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  49952. if (this._localChange) {
  49953. this._localChange = false;
  49954. return true;
  49955. }
  49956. var newValue = this._getValue(nextProps);
  49957. if (newValue != null && newValue !== nextState.value) {
  49958. nextState.value = newValue;
  49959. return true;
  49960. }
  49961. return false;
  49962. };
  49963. OptionsLineComponent.prototype.raiseOnPropertyChanged = function (newValue, previousValue) {
  49964. if (!this.props.onPropertyChangedObservable) {
  49965. return;
  49966. }
  49967. this.props.onPropertyChangedObservable.notifyObservers({
  49968. object: this.props.target,
  49969. property: this.props.propertyName,
  49970. value: newValue,
  49971. initialValue: previousValue
  49972. });
  49973. };
  49974. OptionsLineComponent.prototype.updateValue = function (valueString) {
  49975. var value = this.props.valuesAreStrings ? valueString : parseInt(valueString);
  49976. this._localChange = true;
  49977. var store = this.state.value;
  49978. if (!this.props.noDirectUpdate) {
  49979. this.props.target[this.props.propertyName] = value;
  49980. }
  49981. this.setState({ value: value });
  49982. this.raiseOnPropertyChanged(value, store);
  49983. if (this.props.onSelect) {
  49984. this.props.onSelect(value);
  49985. }
  49986. };
  49987. OptionsLineComponent.prototype.render = function () {
  49988. var _this = this;
  49989. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "listLine" },
  49990. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  49991. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "options" + (this.props.className ? " " + this.props.className : "") },
  49992. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("select", { onChange: function (evt) { return _this.updateValue(evt.target.value); }, value: this.state.value || "" }, this.props.options.map(function (option) {
  49993. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("option", { key: option.label, value: option.value }, option.label));
  49994. })))));
  49995. };
  49996. return OptionsLineComponent;
  49997. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  49998. /***/ }),
  49999. /***/ "./sharedComponents/popup.ts":
  50000. /*!***********************************!*\
  50001. !*** ./sharedComponents/popup.ts ***!
  50002. \***********************************/
  50003. /*! exports provided: Popup */
  50004. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  50005. "use strict";
  50006. __webpack_require__.r(__webpack_exports__);
  50007. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Popup", function() { return Popup; });
  50008. var Popup = /** @class */ (function () {
  50009. function Popup() {
  50010. }
  50011. Popup.CreatePopup = function (title, windowVariableName, width, height) {
  50012. var _this = this;
  50013. if (width === void 0) { width = 300; }
  50014. if (height === void 0) { height = 800; }
  50015. var windowCreationOptionsList = {
  50016. width: width,
  50017. height: height,
  50018. top: (window.innerHeight - width) / 2 + window.screenY,
  50019. left: (window.innerWidth - height) / 2 + window.screenX
  50020. };
  50021. var windowCreationOptions = Object.keys(windowCreationOptionsList)
  50022. .map(function (key) { return key + '=' + windowCreationOptionsList[key]; })
  50023. .join(',');
  50024. var popupWindow = window.open("", title, windowCreationOptions);
  50025. if (!popupWindow) {
  50026. return null;
  50027. }
  50028. var parentDocument = popupWindow.document;
  50029. // Font
  50030. var newLinkEl = parentDocument.createElement('link');
  50031. newLinkEl.rel = 'stylesheet';
  50032. newLinkEl.href = "https://use.typekit.net/cta4xsb.css";
  50033. parentDocument.head.appendChild(newLinkEl);
  50034. parentDocument.title = title;
  50035. parentDocument.body.style.width = "100%";
  50036. parentDocument.body.style.height = "100%";
  50037. parentDocument.body.style.margin = "0";
  50038. parentDocument.body.style.padding = "0";
  50039. var parentControl = parentDocument.createElement("div");
  50040. parentControl.style.width = "100%";
  50041. parentControl.style.height = "100%";
  50042. parentControl.style.margin = "0";
  50043. parentControl.style.padding = "0";
  50044. popupWindow.document.body.appendChild(parentControl);
  50045. this._CopyStyles(window.document, parentDocument);
  50046. setTimeout(function () {
  50047. _this._CopyStyles(window.document, parentDocument);
  50048. }, 0);
  50049. this[windowVariableName] = popupWindow;
  50050. return parentControl;
  50051. };
  50052. Popup._CopyStyles = function (sourceDoc, targetDoc) {
  50053. for (var index = 0; index < sourceDoc.styleSheets.length; index++) {
  50054. var styleSheet = sourceDoc.styleSheets[index];
  50055. try {
  50056. if (styleSheet.cssRules) { // for <style> elements
  50057. var newStyleEl = sourceDoc.createElement('style');
  50058. for (var _i = 0, _a = styleSheet.cssRules; _i < _a.length; _i++) {
  50059. var cssRule = _a[_i];
  50060. // write the text of each rule into the body of the style element
  50061. newStyleEl.appendChild(sourceDoc.createTextNode(cssRule.cssText));
  50062. }
  50063. targetDoc.head.appendChild(newStyleEl);
  50064. }
  50065. else if (styleSheet.href) { // for <link> elements loading CSS from a URL
  50066. var newLinkEl = sourceDoc.createElement('link');
  50067. newLinkEl.rel = 'stylesheet';
  50068. newLinkEl.href = styleSheet.href;
  50069. targetDoc.head.appendChild(newLinkEl);
  50070. }
  50071. }
  50072. catch (e) {
  50073. console.log(e);
  50074. }
  50075. }
  50076. };
  50077. return Popup;
  50078. }());
  50079. /***/ }),
  50080. /***/ "./sharedComponents/sliderLineComponent.tsx":
  50081. /*!**************************************************!*\
  50082. !*** ./sharedComponents/sliderLineComponent.tsx ***!
  50083. \**************************************************/
  50084. /*! exports provided: SliderLineComponent */
  50085. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  50086. "use strict";
  50087. __webpack_require__.r(__webpack_exports__);
  50088. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SliderLineComponent", function() { return SliderLineComponent; });
  50089. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  50090. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  50091. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  50092. /* harmony import */ var babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Misc/tools */ "babylonjs/Materials/Textures/texture");
  50093. /* harmony import */ var babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__);
  50094. var SliderLineComponent = /** @class */ (function (_super) {
  50095. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SliderLineComponent, _super);
  50096. function SliderLineComponent(props) {
  50097. var _this = _super.call(this, props) || this;
  50098. _this._localChange = false;
  50099. if (_this.props.directValue !== undefined) {
  50100. _this.state = {
  50101. value: _this.props.directValue
  50102. };
  50103. }
  50104. else {
  50105. var value = _this.props.target[_this.props.propertyName];
  50106. if (value === undefined) {
  50107. value = _this.props.maximum;
  50108. }
  50109. _this.state = { value: value };
  50110. }
  50111. return _this;
  50112. }
  50113. SliderLineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  50114. if (nextProps.directValue !== undefined) {
  50115. nextState.value = nextProps.directValue;
  50116. return true;
  50117. }
  50118. var currentState = nextProps.target[nextProps.propertyName];
  50119. if (currentState === undefined) {
  50120. currentState = nextProps.maximum;
  50121. }
  50122. if (currentState !== nextState.value || nextProps.minimum !== this.props.minimum || nextProps.maximum !== this.props.maximum || this._localChange) {
  50123. nextState.value = currentState;
  50124. this._localChange = false;
  50125. return true;
  50126. }
  50127. return false;
  50128. };
  50129. SliderLineComponent.prototype.onChange = function (newValueString) {
  50130. this._localChange = true;
  50131. var newValue = parseFloat(newValueString);
  50132. if (this.props.useEuler) {
  50133. newValue = babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["Tools"].ToRadians(newValue);
  50134. }
  50135. if (this.props.target) {
  50136. if (this.props.onPropertyChangedObservable) {
  50137. this.props.onPropertyChangedObservable.notifyObservers({
  50138. object: this.props.target,
  50139. property: this.props.propertyName,
  50140. value: newValue,
  50141. initialValue: this.state.value
  50142. });
  50143. }
  50144. this.props.target[this.props.propertyName] = newValue;
  50145. }
  50146. if (this.props.onChange) {
  50147. this.props.onChange(newValue);
  50148. }
  50149. this.setState({ value: newValue });
  50150. };
  50151. SliderLineComponent.prototype.onInput = function (newValueString) {
  50152. var newValue = parseFloat(newValueString);
  50153. if (this.props.onInput) {
  50154. this.props.onInput(newValue);
  50155. }
  50156. };
  50157. SliderLineComponent.prototype.prepareDataToRead = function (value) {
  50158. if (this.props.useEuler) {
  50159. return babylonjs_Misc_tools__WEBPACK_IMPORTED_MODULE_2__["Tools"].ToDegrees(value);
  50160. }
  50161. return value;
  50162. };
  50163. SliderLineComponent.prototype.render = function () {
  50164. var _this = this;
  50165. var decimalCount = this.props.decimalCount !== undefined ? this.props.decimalCount : 2;
  50166. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "sliderLine" },
  50167. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  50168. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "slider" },
  50169. this.state.value ? this.prepareDataToRead(this.state.value).toFixed(decimalCount) : "0",
  50170. "\u00A0",
  50171. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { className: "range", type: "range", step: this.props.step, min: this.prepareDataToRead(this.props.minimum), max: this.prepareDataToRead(this.props.maximum), value: this.prepareDataToRead(this.state.value), onInput: function (evt) { return _this.onInput(evt.target.value); }, onChange: function (evt) { return _this.onChange(evt.target.value); } }))));
  50172. };
  50173. return SliderLineComponent;
  50174. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  50175. /***/ }),
  50176. /***/ "./sharedComponents/textInputLineComponent.tsx":
  50177. /*!*****************************************************!*\
  50178. !*** ./sharedComponents/textInputLineComponent.tsx ***!
  50179. \*****************************************************/
  50180. /*! exports provided: TextInputLineComponent */
  50181. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  50182. "use strict";
  50183. __webpack_require__.r(__webpack_exports__);
  50184. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextInputLineComponent", function() { return TextInputLineComponent; });
  50185. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  50186. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  50187. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  50188. var TextInputLineComponent = /** @class */ (function (_super) {
  50189. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TextInputLineComponent, _super);
  50190. function TextInputLineComponent(props) {
  50191. var _this = _super.call(this, props) || this;
  50192. _this._localChange = false;
  50193. _this.state = { value: _this.props.value !== undefined ? _this.props.value : _this.props.target[_this.props.propertyName] || "" };
  50194. return _this;
  50195. }
  50196. TextInputLineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  50197. if (this._localChange) {
  50198. this._localChange = false;
  50199. return true;
  50200. }
  50201. var newValue = nextProps.value !== undefined ? nextProps.value : nextProps.target[nextProps.propertyName];
  50202. if (newValue !== nextState.value) {
  50203. nextState.value = newValue || "";
  50204. return true;
  50205. }
  50206. return false;
  50207. };
  50208. TextInputLineComponent.prototype.raiseOnPropertyChanged = function (newValue, previousValue) {
  50209. if (this.props.onChange) {
  50210. this.props.onChange(newValue);
  50211. return;
  50212. }
  50213. if (!this.props.onPropertyChangedObservable) {
  50214. return;
  50215. }
  50216. this.props.onPropertyChangedObservable.notifyObservers({
  50217. object: this.props.target,
  50218. property: this.props.propertyName,
  50219. value: newValue,
  50220. initialValue: previousValue
  50221. });
  50222. };
  50223. TextInputLineComponent.prototype.updateValue = function (value, raisePropertyChanged) {
  50224. this._localChange = true;
  50225. var store = this.props.value !== undefined ? this.props.value : this.props.target[this.props.propertyName];
  50226. this.setState({ value: value });
  50227. if (raisePropertyChanged) {
  50228. this.raiseOnPropertyChanged(value, store);
  50229. }
  50230. if (this.props.propertyName) {
  50231. this.props.target[this.props.propertyName] = value;
  50232. }
  50233. };
  50234. TextInputLineComponent.prototype.render = function () {
  50235. var _this = this;
  50236. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "textInputLine" },
  50237. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  50238. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "value" },
  50239. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { value: this.state.value, onFocus: function () { return _this.props.globalState.blockKeyboardEvents = true; }, onChange: function (evt) { return _this.updateValue(evt.target.value, false); }, onKeyDown: function (evt) {
  50240. if (evt.keyCode !== 13) {
  50241. return;
  50242. }
  50243. _this.updateValue(_this.state.value, true);
  50244. }, onBlur: function (evt) {
  50245. _this.updateValue(evt.target.value, true);
  50246. _this.props.globalState.blockKeyboardEvents = false;
  50247. } }))));
  50248. };
  50249. return TextInputLineComponent;
  50250. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  50251. /***/ }),
  50252. /***/ "./sharedComponents/textLineComponent.tsx":
  50253. /*!************************************************!*\
  50254. !*** ./sharedComponents/textLineComponent.tsx ***!
  50255. \************************************************/
  50256. /*! exports provided: TextLineComponent */
  50257. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  50258. "use strict";
  50259. __webpack_require__.r(__webpack_exports__);
  50260. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextLineComponent", function() { return TextLineComponent; });
  50261. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  50262. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  50263. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  50264. var TextLineComponent = /** @class */ (function (_super) {
  50265. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TextLineComponent, _super);
  50266. function TextLineComponent(props) {
  50267. return _super.call(this, props) || this;
  50268. }
  50269. TextLineComponent.prototype.onLink = function () {
  50270. if (!this.props.onLink) {
  50271. return;
  50272. }
  50273. this.props.onLink();
  50274. };
  50275. TextLineComponent.prototype.renderContent = function () {
  50276. var _this = this;
  50277. if (this.props.onLink) {
  50278. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "link-value", title: this.props.value, onClick: function () { return _this.onLink(); } }, this.props.value || "no name"));
  50279. }
  50280. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "value", title: this.props.value, style: { color: this.props.color ? this.props.color : "" } }, this.props.value || "no name"));
  50281. };
  50282. TextLineComponent.prototype.render = function () {
  50283. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: this.props.underline ? "textLine underline" : "textLine" },
  50284. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  50285. this.renderContent()));
  50286. };
  50287. return TextLineComponent;
  50288. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  50289. /***/ }),
  50290. /***/ "./sharedComponents/textureLineComponent.tsx":
  50291. /*!***************************************************!*\
  50292. !*** ./sharedComponents/textureLineComponent.tsx ***!
  50293. \***************************************************/
  50294. /*! exports provided: TextureLineComponent */
  50295. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  50296. "use strict";
  50297. __webpack_require__.r(__webpack_exports__);
  50298. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextureLineComponent", function() { return TextureLineComponent; });
  50299. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  50300. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  50301. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  50302. /* harmony import */ var babylonjs_Engines_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! babylonjs/Engines/constants */ "babylonjs/Materials/Textures/texture");
  50303. /* harmony import */ var babylonjs_Engines_constants__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Engines_constants__WEBPACK_IMPORTED_MODULE_2__);
  50304. var TextureLineComponent = /** @class */ (function (_super) {
  50305. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TextureLineComponent, _super);
  50306. function TextureLineComponent(props) {
  50307. var _this = _super.call(this, props) || this;
  50308. _this.state = {
  50309. displayRed: true,
  50310. displayGreen: true,
  50311. displayBlue: true,
  50312. displayAlpha: true,
  50313. face: 0
  50314. };
  50315. return _this;
  50316. }
  50317. TextureLineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  50318. return true;
  50319. };
  50320. TextureLineComponent.prototype.componentDidMount = function () {
  50321. this.updatePreview();
  50322. };
  50323. TextureLineComponent.prototype.componentDidUpdate = function () {
  50324. this.updatePreview();
  50325. };
  50326. TextureLineComponent.prototype.updatePreview = function () {
  50327. TextureLineComponent.UpdatePreview(this.refs.canvas, this.props.texture, this.props.width, this.state, undefined, this.props.globalState);
  50328. };
  50329. TextureLineComponent.UpdatePreview = function (previewCanvas, texture, width, options, onReady, globalState) {
  50330. if (!texture.isReady() && texture._texture) {
  50331. texture._texture.onLoadedObservable.addOnce(function () {
  50332. TextureLineComponent.UpdatePreview(previewCanvas, texture, width, options, onReady, globalState);
  50333. });
  50334. }
  50335. var scene = texture.getScene();
  50336. var engine = scene.getEngine();
  50337. var size = texture.getSize();
  50338. var ratio = size.width / size.height;
  50339. var height = (width / ratio) | 1;
  50340. var passPostProcess;
  50341. if (!texture.isCube) {
  50342. passPostProcess = new babylonjs_Engines_constants__WEBPACK_IMPORTED_MODULE_2__["PassPostProcess"]("pass", 1, null, babylonjs_Engines_constants__WEBPACK_IMPORTED_MODULE_2__["Texture"].NEAREST_SAMPLINGMODE, engine, false, babylonjs_Engines_constants__WEBPACK_IMPORTED_MODULE_2__["Constants"].TEXTURETYPE_UNSIGNED_INT);
  50343. }
  50344. else {
  50345. var passCubePostProcess = new babylonjs_Engines_constants__WEBPACK_IMPORTED_MODULE_2__["PassCubePostProcess"]("pass", 1, null, babylonjs_Engines_constants__WEBPACK_IMPORTED_MODULE_2__["Texture"].NEAREST_SAMPLINGMODE, engine, false, babylonjs_Engines_constants__WEBPACK_IMPORTED_MODULE_2__["Constants"].TEXTURETYPE_UNSIGNED_INT);
  50346. passCubePostProcess.face = options.face;
  50347. passPostProcess = passCubePostProcess;
  50348. }
  50349. if (!passPostProcess.getEffect().isReady()) {
  50350. // Try again later
  50351. passPostProcess.dispose();
  50352. setTimeout(function () { return TextureLineComponent.UpdatePreview(previewCanvas, texture, width, options, onReady, globalState); }, 250);
  50353. return;
  50354. }
  50355. if (globalState) {
  50356. globalState.blockMutationUpdates = true;
  50357. }
  50358. var rtt = new babylonjs_Engines_constants__WEBPACK_IMPORTED_MODULE_2__["RenderTargetTexture"]("temp", { width: width, height: height }, scene, false);
  50359. passPostProcess.onApply = function (effect) {
  50360. effect.setTexture("textureSampler", texture);
  50361. };
  50362. var internalTexture = rtt.getInternalTexture();
  50363. if (internalTexture) {
  50364. scene.postProcessManager.directRender([passPostProcess], internalTexture);
  50365. // Read the contents of the framebuffer
  50366. var numberOfChannelsByLine = width * 4;
  50367. var halfHeight = height / 2;
  50368. //Reading datas from WebGL
  50369. var data = engine.readPixels(0, 0, width, height);
  50370. if (!texture.isCube) {
  50371. if (!options.displayRed || !options.displayGreen || !options.displayBlue) {
  50372. for (var i = 0; i < width * height * 4; i += 4) {
  50373. if (!options.displayRed) {
  50374. data[i] = 0;
  50375. }
  50376. if (!options.displayGreen) {
  50377. data[i + 1] = 0;
  50378. }
  50379. if (!options.displayBlue) {
  50380. data[i + 2] = 0;
  50381. }
  50382. if (options.displayAlpha) {
  50383. var alpha = data[i + 2];
  50384. data[i] = alpha;
  50385. data[i + 1] = alpha;
  50386. data[i + 2] = alpha;
  50387. data[i + 2] = 0;
  50388. }
  50389. }
  50390. }
  50391. }
  50392. //To flip image on Y axis.
  50393. if (texture.invertY || texture.isCube) {
  50394. for (var i = 0; i < halfHeight; i++) {
  50395. for (var j = 0; j < numberOfChannelsByLine; j++) {
  50396. var currentCell = j + i * numberOfChannelsByLine;
  50397. var targetLine = height - i - 1;
  50398. var targetCell = j + targetLine * numberOfChannelsByLine;
  50399. var temp = data[currentCell];
  50400. data[currentCell] = data[targetCell];
  50401. data[targetCell] = temp;
  50402. }
  50403. }
  50404. }
  50405. previewCanvas.width = width;
  50406. previewCanvas.height = height;
  50407. var context = previewCanvas.getContext('2d');
  50408. if (context) {
  50409. // Copy the pixels to the preview canvas
  50410. var imageData = context.createImageData(width, height);
  50411. var castData = imageData.data;
  50412. castData.set(data);
  50413. context.putImageData(imageData, 0, 0);
  50414. if (onReady) {
  50415. onReady();
  50416. }
  50417. }
  50418. // Unbind
  50419. engine.unBindFramebuffer(internalTexture);
  50420. }
  50421. rtt.dispose();
  50422. passPostProcess.dispose();
  50423. previewCanvas.style.height = height + "px";
  50424. if (globalState) {
  50425. globalState.blockMutationUpdates = false;
  50426. }
  50427. };
  50428. TextureLineComponent.prototype.render = function () {
  50429. var _this = this;
  50430. var texture = this.props.texture;
  50431. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "textureLine" },
  50432. !this.props.hideChannelSelect && texture.isCube &&
  50433. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "control3D" },
  50434. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { className: this.state.face === 0 ? "px command selected" : "px command", onClick: function () { return _this.setState({ face: 0 }); } }, "PX"),
  50435. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { className: this.state.face === 1 ? "nx command selected" : "nx command", onClick: function () { return _this.setState({ face: 1 }); } }, "NX"),
  50436. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { className: this.state.face === 2 ? "py command selected" : "py command", onClick: function () { return _this.setState({ face: 2 }); } }, "PY"),
  50437. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { className: this.state.face === 3 ? "ny command selected" : "ny command", onClick: function () { return _this.setState({ face: 3 }); } }, "NY"),
  50438. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { className: this.state.face === 4 ? "pz command selected" : "pz command", onClick: function () { return _this.setState({ face: 4 }); } }, "PZ"),
  50439. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { className: this.state.face === 5 ? "nz command selected" : "nz command", onClick: function () { return _this.setState({ face: 5 }); } }, "NZ")),
  50440. !this.props.hideChannelSelect && !texture.isCube &&
  50441. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "control" },
  50442. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { className: this.state.displayRed && !this.state.displayGreen ? "red command selected" : "red command", onClick: function () { return _this.setState({ displayRed: true, displayGreen: false, displayBlue: false, displayAlpha: false }); } }, "R"),
  50443. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { className: this.state.displayGreen && !this.state.displayBlue ? "green command selected" : "green command", onClick: function () { return _this.setState({ displayRed: false, displayGreen: true, displayBlue: false, displayAlpha: false }); } }, "G"),
  50444. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { className: this.state.displayBlue && !this.state.displayAlpha ? "blue command selected" : "blue command", onClick: function () { return _this.setState({ displayRed: false, displayGreen: false, displayBlue: true, displayAlpha: false }); } }, "B"),
  50445. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { className: this.state.displayAlpha && !this.state.displayRed ? "alpha command selected" : "alpha command", onClick: function () { return _this.setState({ displayRed: false, displayGreen: false, displayBlue: false, displayAlpha: true }); } }, "A"),
  50446. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { className: this.state.displayRed && this.state.displayGreen ? "all command selected" : "all command", onClick: function () { return _this.setState({ displayRed: true, displayGreen: true, displayBlue: true, displayAlpha: true }); } }, "ALL")),
  50447. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("canvas", { ref: "canvas", className: "preview" })));
  50448. };
  50449. return TextureLineComponent;
  50450. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  50451. /***/ }),
  50452. /***/ "./sharedComponents/vector2LineComponent.tsx":
  50453. /*!***************************************************!*\
  50454. !*** ./sharedComponents/vector2LineComponent.tsx ***!
  50455. \***************************************************/
  50456. /*! exports provided: Vector2LineComponent */
  50457. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  50458. "use strict";
  50459. __webpack_require__.r(__webpack_exports__);
  50460. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vector2LineComponent", function() { return Vector2LineComponent; });
  50461. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  50462. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  50463. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  50464. /* harmony import */ var _numericInputComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./numericInputComponent */ "./sharedComponents/numericInputComponent.tsx");
  50465. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  50466. /* harmony import */ var _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @fortawesome/free-solid-svg-icons */ "../../node_modules/@fortawesome/free-solid-svg-icons/index.es.js");
  50467. var Vector2LineComponent = /** @class */ (function (_super) {
  50468. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(Vector2LineComponent, _super);
  50469. function Vector2LineComponent(props) {
  50470. var _this = _super.call(this, props) || this;
  50471. _this._localChange = false;
  50472. _this.state = { isExpanded: false, value: _this.props.target[_this.props.propertyName].clone() };
  50473. return _this;
  50474. }
  50475. Vector2LineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  50476. var nextPropsValue = nextProps.target[nextProps.propertyName];
  50477. if (!nextPropsValue.equals(nextState.value) || this._localChange) {
  50478. nextState.value = nextPropsValue.clone();
  50479. this._localChange = false;
  50480. return true;
  50481. }
  50482. return false;
  50483. };
  50484. Vector2LineComponent.prototype.switchExpandState = function () {
  50485. this._localChange = true;
  50486. this.setState({ isExpanded: !this.state.isExpanded });
  50487. };
  50488. Vector2LineComponent.prototype.raiseOnPropertyChanged = function (previousValue) {
  50489. if (this.props.onChange) {
  50490. this.props.onChange(this.state.value);
  50491. }
  50492. if (!this.props.onPropertyChangedObservable) {
  50493. return;
  50494. }
  50495. this.props.onPropertyChangedObservable.notifyObservers({
  50496. object: this.props.target,
  50497. property: this.props.propertyName,
  50498. value: this.state.value,
  50499. initialValue: previousValue
  50500. });
  50501. };
  50502. Vector2LineComponent.prototype.updateStateX = function (value) {
  50503. this._localChange = true;
  50504. var store = this.state.value.clone();
  50505. this.props.target[this.props.propertyName].x = value;
  50506. this.state.value.x = value;
  50507. this.setState({ value: this.state.value });
  50508. this.raiseOnPropertyChanged(store);
  50509. };
  50510. Vector2LineComponent.prototype.updateStateY = function (value) {
  50511. this._localChange = true;
  50512. var store = this.state.value.clone();
  50513. this.props.target[this.props.propertyName].y = value;
  50514. this.state.value.y = value;
  50515. this.setState({ value: this.state.value });
  50516. this.raiseOnPropertyChanged(store);
  50517. };
  50518. Vector2LineComponent.prototype.render = function () {
  50519. var _this = this;
  50520. var chevron = this.state.isExpanded ? react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_4__["faMinus"] }) : react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_4__["faPlus"] });
  50521. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "vector3Line" },
  50522. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "firstLine" },
  50523. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  50524. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "vector" }, "X: " + this.state.value.x.toFixed(2) + ", Y: " + this.state.value.y.toFixed(2)),
  50525. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "expand hoverIcon", onClick: function () { return _this.switchExpandState(); }, title: "Expand" }, chevron)),
  50526. this.state.isExpanded &&
  50527. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "secondLine" },
  50528. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_numericInputComponent__WEBPACK_IMPORTED_MODULE_2__["NumericInputComponent"], { label: "x", step: this.props.step, value: this.state.value.x, onChange: function (value) { return _this.updateStateX(value); } }),
  50529. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_numericInputComponent__WEBPACK_IMPORTED_MODULE_2__["NumericInputComponent"], { label: "y", step: this.props.step, value: this.state.value.y, onChange: function (value) { return _this.updateStateY(value); } }))));
  50530. };
  50531. Vector2LineComponent.defaultProps = {
  50532. step: 0.001,
  50533. };
  50534. return Vector2LineComponent;
  50535. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  50536. /***/ }),
  50537. /***/ "./sharedComponents/vector3LineComponent.tsx":
  50538. /*!***************************************************!*\
  50539. !*** ./sharedComponents/vector3LineComponent.tsx ***!
  50540. \***************************************************/
  50541. /*! exports provided: Vector3LineComponent */
  50542. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  50543. "use strict";
  50544. __webpack_require__.r(__webpack_exports__);
  50545. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vector3LineComponent", function() { return Vector3LineComponent; });
  50546. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  50547. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  50548. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  50549. /* harmony import */ var _numericInputComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./numericInputComponent */ "./sharedComponents/numericInputComponent.tsx");
  50550. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  50551. /* harmony import */ var _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @fortawesome/free-solid-svg-icons */ "../../node_modules/@fortawesome/free-solid-svg-icons/index.es.js");
  50552. var Vector3LineComponent = /** @class */ (function (_super) {
  50553. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(Vector3LineComponent, _super);
  50554. function Vector3LineComponent(props) {
  50555. var _this = _super.call(this, props) || this;
  50556. _this._localChange = false;
  50557. _this.state = { isExpanded: false, value: _this.props.target[_this.props.propertyName].clone() };
  50558. return _this;
  50559. }
  50560. Vector3LineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  50561. var nextPropsValue = nextProps.target[nextProps.propertyName];
  50562. if (!nextPropsValue.equals(nextState.value) || this._localChange) {
  50563. nextState.value = nextPropsValue.clone();
  50564. this._localChange = false;
  50565. return true;
  50566. }
  50567. return false;
  50568. };
  50569. Vector3LineComponent.prototype.switchExpandState = function () {
  50570. this._localChange = true;
  50571. this.setState({ isExpanded: !this.state.isExpanded });
  50572. };
  50573. Vector3LineComponent.prototype.raiseOnPropertyChanged = function (previousValue) {
  50574. if (this.props.onChange) {
  50575. this.props.onChange(this.state.value);
  50576. }
  50577. if (!this.props.onPropertyChangedObservable) {
  50578. return;
  50579. }
  50580. this.props.onPropertyChangedObservable.notifyObservers({
  50581. object: this.props.target,
  50582. property: this.props.propertyName,
  50583. value: this.state.value,
  50584. initialValue: previousValue
  50585. });
  50586. };
  50587. Vector3LineComponent.prototype.updateVector3 = function () {
  50588. var store = this.props.target[this.props.propertyName].clone();
  50589. this.props.target[this.props.propertyName] = this.state.value;
  50590. this.setState({ value: store });
  50591. this.raiseOnPropertyChanged(store);
  50592. };
  50593. Vector3LineComponent.prototype.updateStateX = function (value) {
  50594. this._localChange = true;
  50595. this.state.value.x = value;
  50596. this.updateVector3();
  50597. };
  50598. Vector3LineComponent.prototype.updateStateY = function (value) {
  50599. this._localChange = true;
  50600. this.state.value.y = value;
  50601. this.updateVector3();
  50602. };
  50603. Vector3LineComponent.prototype.updateStateZ = function (value) {
  50604. this._localChange = true;
  50605. this.state.value.z = value;
  50606. this.updateVector3();
  50607. };
  50608. Vector3LineComponent.prototype.render = function () {
  50609. var _this = this;
  50610. var chevron = this.state.isExpanded ? react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_4__["faMinus"] }) : react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_4__["faPlus"] });
  50611. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "vector3Line" },
  50612. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "firstLine" },
  50613. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  50614. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "vector" }, "X: " + this.state.value.x.toFixed(2) + ", Y: " + this.state.value.y.toFixed(2) + ", Z: " + this.state.value.z.toFixed(2)),
  50615. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "expand hoverIcon", onClick: function () { return _this.switchExpandState(); }, title: "Expand" }, chevron)),
  50616. this.state.isExpanded &&
  50617. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "secondLine" },
  50618. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_numericInputComponent__WEBPACK_IMPORTED_MODULE_2__["NumericInputComponent"], { label: "x", step: this.props.step, value: this.state.value.x, onChange: function (value) { return _this.updateStateX(value); } }),
  50619. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_numericInputComponent__WEBPACK_IMPORTED_MODULE_2__["NumericInputComponent"], { label: "y", step: this.props.step, value: this.state.value.y, onChange: function (value) { return _this.updateStateY(value); } }),
  50620. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_numericInputComponent__WEBPACK_IMPORTED_MODULE_2__["NumericInputComponent"], { label: "z", step: this.props.step, value: this.state.value.z, onChange: function (value) { return _this.updateStateZ(value); } }))));
  50621. };
  50622. Vector3LineComponent.defaultProps = {
  50623. step: 0.001,
  50624. };
  50625. return Vector3LineComponent;
  50626. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  50627. /***/ }),
  50628. /***/ "./sharedComponents/vector4LineComponent.tsx":
  50629. /*!***************************************************!*\
  50630. !*** ./sharedComponents/vector4LineComponent.tsx ***!
  50631. \***************************************************/
  50632. /*! exports provided: Vector4LineComponent */
  50633. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  50634. "use strict";
  50635. __webpack_require__.r(__webpack_exports__);
  50636. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Vector4LineComponent", function() { return Vector4LineComponent; });
  50637. /* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
  50638. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
  50639. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  50640. /* harmony import */ var _numericInputComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./numericInputComponent */ "./sharedComponents/numericInputComponent.tsx");
  50641. /* harmony import */ var _fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @fortawesome/react-fontawesome */ "../../node_modules/@fortawesome/react-fontawesome/index.es.js");
  50642. /* harmony import */ var _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @fortawesome/free-solid-svg-icons */ "../../node_modules/@fortawesome/free-solid-svg-icons/index.es.js");
  50643. var Vector4LineComponent = /** @class */ (function (_super) {
  50644. Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(Vector4LineComponent, _super);
  50645. function Vector4LineComponent(props) {
  50646. var _this = _super.call(this, props) || this;
  50647. _this._localChange = false;
  50648. _this.state = { isExpanded: false, value: (_this.props.value || _this.props.target[_this.props.propertyName]).clone() };
  50649. return _this;
  50650. }
  50651. Vector4LineComponent.prototype.shouldComponentUpdate = function (nextProps, nextState) {
  50652. var nextPropsValue = nextProps.value || nextProps.target[nextProps.propertyName];
  50653. if (!nextPropsValue.equals(nextState.value) || this._localChange) {
  50654. nextState.value = nextPropsValue.clone();
  50655. this._localChange = false;
  50656. return true;
  50657. }
  50658. return false;
  50659. };
  50660. Vector4LineComponent.prototype.switchExpandState = function () {
  50661. this._localChange = true;
  50662. this.setState({ isExpanded: !this.state.isExpanded });
  50663. };
  50664. Vector4LineComponent.prototype.raiseOnPropertyChanged = function (previousValue) {
  50665. if (this.props.onChange) {
  50666. this.props.onChange(this.state.value);
  50667. }
  50668. if (!this.props.onPropertyChangedObservable || !this.props.propertyName) {
  50669. return;
  50670. }
  50671. this.props.onPropertyChangedObservable.notifyObservers({
  50672. object: this.props.target,
  50673. property: this.props.propertyName,
  50674. value: this.state.value,
  50675. initialValue: previousValue
  50676. });
  50677. };
  50678. Vector4LineComponent.prototype.updateVector4 = function () {
  50679. var store = (this.props.value || this.props.target[this.props.propertyName]).clone();
  50680. if (this.props.value) {
  50681. this.props.value.copyFrom(this.state.value);
  50682. }
  50683. else {
  50684. this.props.target[this.props.propertyName] = this.state.value;
  50685. }
  50686. this.forceUpdate();
  50687. this.raiseOnPropertyChanged(store);
  50688. };
  50689. Vector4LineComponent.prototype.updateStateX = function (value) {
  50690. this._localChange = true;
  50691. this.state.value.x = value;
  50692. this.updateVector4();
  50693. };
  50694. Vector4LineComponent.prototype.updateStateY = function (value) {
  50695. this._localChange = true;
  50696. this.state.value.y = value;
  50697. this.updateVector4();
  50698. };
  50699. Vector4LineComponent.prototype.updateStateZ = function (value) {
  50700. this._localChange = true;
  50701. this.state.value.z = value;
  50702. this.updateVector4();
  50703. };
  50704. Vector4LineComponent.prototype.updateStateW = function (value) {
  50705. this._localChange = true;
  50706. this.state.value.w = value;
  50707. this.updateVector4();
  50708. };
  50709. Vector4LineComponent.prototype.render = function () {
  50710. var _this = this;
  50711. var chevron = this.state.isExpanded ? react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_4__["faMinus"] }) : react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fortawesome_react_fontawesome__WEBPACK_IMPORTED_MODULE_3__["FontAwesomeIcon"], { icon: _fortawesome_free_solid_svg_icons__WEBPACK_IMPORTED_MODULE_4__["faPlus"] });
  50712. return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "vector3Line" },
  50713. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "firstLine" },
  50714. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "label" }, this.props.label),
  50715. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "vector" }, "X: " + this.state.value.x.toFixed(2) + ", Y: " + this.state.value.y.toFixed(2) + ", Z: " + this.state.value.z.toFixed(2) + ", W: " + this.state.value.w.toFixed(2)),
  50716. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "expand hoverIcon", onClick: function () { return _this.switchExpandState(); }, title: "Expand" }, chevron)),
  50717. this.state.isExpanded &&
  50718. react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: "secondLine" },
  50719. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_numericInputComponent__WEBPACK_IMPORTED_MODULE_2__["NumericInputComponent"], { label: "x", step: this.props.step, value: this.state.value.x, onChange: function (value) { return _this.updateStateX(value); } }),
  50720. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_numericInputComponent__WEBPACK_IMPORTED_MODULE_2__["NumericInputComponent"], { label: "y", step: this.props.step, value: this.state.value.y, onChange: function (value) { return _this.updateStateY(value); } }),
  50721. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_numericInputComponent__WEBPACK_IMPORTED_MODULE_2__["NumericInputComponent"], { label: "z", step: this.props.step, value: this.state.value.z, onChange: function (value) { return _this.updateStateZ(value); } }),
  50722. react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_numericInputComponent__WEBPACK_IMPORTED_MODULE_2__["NumericInputComponent"], { label: "w", step: this.props.step, value: this.state.value.w, onChange: function (value) { return _this.updateStateW(value); } }))));
  50723. };
  50724. Vector4LineComponent.defaultProps = {
  50725. step: 0.001,
  50726. };
  50727. return Vector4LineComponent;
  50728. }(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
  50729. /***/ }),
  50730. /***/ "./stringTools.ts":
  50731. /*!************************!*\
  50732. !*** ./stringTools.ts ***!
  50733. \************************/
  50734. /*! exports provided: StringTools */
  50735. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  50736. "use strict";
  50737. __webpack_require__.r(__webpack_exports__);
  50738. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StringTools", function() { return StringTools; });
  50739. /* harmony import */ var babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! babylonjs/Materials/Node/Enums/nodeMaterialBlockConnectionPointTypes */ "babylonjs/Materials/Textures/texture");
  50740. /* harmony import */ var babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_0__);
  50741. var StringTools = /** @class */ (function () {
  50742. function StringTools() {
  50743. }
  50744. /*
  50745. * Based on FileSaver.js
  50746. * A saveAs() FileSaver implementation.
  50747. *
  50748. * By Eli Grey, http://eligrey.com
  50749. *
  50750. * License : https://github.com/eligrey/FileSaver.js/blob/master/LICENSE.md (MIT)
  50751. * source : http://purl.eligrey.com/github/FileSaver.js
  50752. */
  50753. StringTools._SaveAs = function (blob, name, document) {
  50754. var _this = this;
  50755. if ('download' in HTMLAnchorElement.prototype) {
  50756. var URL = window.URL || window.webkitURL;
  50757. var a = document.createElement('a');
  50758. a.download = name;
  50759. a.rel = 'noopener'; // tabnabbing
  50760. a.href = URL.createObjectURL(blob);
  50761. setTimeout(function () { URL.revokeObjectURL(a.href); }, 4E4); // 40s
  50762. setTimeout(function () { _this._Click(a, document); }, 0);
  50763. return;
  50764. }
  50765. // Open a popup immediately do go around popup blocker
  50766. // Mostly only available on user interaction and the fileReader is async so...
  50767. var popup = open('', '_blank');
  50768. if (popup) {
  50769. popup.document.title = popup.document.body.innerText = 'downloading...';
  50770. }
  50771. var force = blob.type === 'application/octet-stream';
  50772. var isSafari = /constructor/i.test(window.HTMLElement) || window.safari;
  50773. var isChromeIOS = /CriOS\/[\d]+/.test(navigator.userAgent);
  50774. if ((isChromeIOS || (force && isSafari)) && typeof FileReader !== 'undefined') {
  50775. // Safari doesn't allow downloading of blob URLs
  50776. var reader = new FileReader();
  50777. reader.onloadend = function () {
  50778. var url = reader.result;
  50779. url = isChromeIOS ? url : url.replace(/^data:[^;]*;/, 'data:attachment/file;');
  50780. if (popup) {
  50781. popup.location.href = url;
  50782. }
  50783. else {
  50784. location = url;
  50785. }
  50786. popup = null;
  50787. };
  50788. reader.readAsDataURL(blob);
  50789. }
  50790. else {
  50791. var URL = window.URL || window.webkitURL;
  50792. var url = URL.createObjectURL(blob);
  50793. if (popup) {
  50794. popup.location.href = url;
  50795. }
  50796. else {
  50797. location.href = url;
  50798. }
  50799. popup = null;
  50800. setTimeout(function () { URL.revokeObjectURL(url); }, 4E4);
  50801. }
  50802. };
  50803. StringTools._Click = function (node, document) {
  50804. try {
  50805. node.dispatchEvent(new MouseEvent('click'));
  50806. }
  50807. catch (e) {
  50808. var evt = document.createEvent('MouseEvents');
  50809. evt.initMouseEvent('click', true, true, window, 0, 0, 0, 80, 20, false, false, false, false, 0, null);
  50810. node.dispatchEvent(evt);
  50811. }
  50812. };
  50813. /**
  50814. * Gets the base math type of node material block connection point.
  50815. * @param type Type to parse.
  50816. */
  50817. StringTools.GetBaseType = function (type) {
  50818. return babylonjs_Materials_Node_Enums_nodeMaterialBlockConnectionPointTypes__WEBPACK_IMPORTED_MODULE_0__["NodeMaterialBlockConnectionPointTypes"][type];
  50819. };
  50820. /**
  50821. * Download a string into a file that will be saved locally by the browser
  50822. * @param content defines the string to download locally as a file
  50823. */
  50824. StringTools.DownloadAsFile = function (document, content, filename) {
  50825. var blob = new Blob([content], {
  50826. type: "application/octet-stream"
  50827. });
  50828. this._SaveAs(blob, filename, document);
  50829. };
  50830. return StringTools;
  50831. }());
  50832. /***/ }),
  50833. /***/ "babylonjs/Materials/Textures/texture":
  50834. /*!****************************************************************************************************!*\
  50835. !*** external {"root":"BABYLON","commonjs":"babylonjs","commonjs2":"babylonjs","amd":"babylonjs"} ***!
  50836. \****************************************************************************************************/
  50837. /*! no static exports found */
  50838. /***/ (function(module, exports) {
  50839. module.exports = __WEBPACK_EXTERNAL_MODULE_babylonjs_Materials_Textures_texture__;
  50840. /***/ })
  50841. /******/ });
  50842. });
  50843. //# sourceMappingURL=babylon.nodeEditor.max.js.map